1!function(t){function e(e){for(var r,s,a=e[0],c=e[1],l=e[2],h=0,f=[];h<a.length;h++)s=a[h],Object.prototype.hasOwnProperty.call(i,s)&&i[s]&&f.push(i[s][0]),i[s]=0;for(r in c)Object.prototype.hasOwnProperty.call(c,r)&&(t[r]=c[r]);for(u&&u(e);f.length;)f.shift()();return o.push.apply(o,l||[]),n()}function n(){for(var t,e=0;e<o.length;e++){for(var n=o[e],r=!0,a=1;a<n.length;a++){var c=n[a];0!==i[c]&&(r=!1)}r&&(o.splice(e--,1),t=s(s.s=n[0]))}return t}var r={},i={3:0},o=[];function s(e){if(r[e])return r[e].exports;var n=r[e]={i:e,l:!1,exports:{}};return t[e].call(n.exports,n,n.exports,s),n.l=!0,n.exports}s.m=t,s.c=r,s.d=function(t,e,n){s.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},s.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},s.t=function(t,e){if(1&e&&(t=s(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(s.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)s.d(n,r,function(e){return t[e]}.bind(null,r));return n},s.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return s.d(e,"a",e),e},s.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},s.p="";var a=window.webpackJsonp=window.webpackJsonp||[],c=a.push.bind(a);a.push=e,a=a.slice();for(var l=0;l<a.length;l++)e(a[l]);var u=c;o.push([3415,0]),n()}([,,function(t,e,n){var r; 2/*! 3 Copyright (c) 2017 Jed Watson. 4 Licensed under the MIT License (MIT), see 5 http://jedwatson.github.io/classnames 6*/!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var t=[],e=0;e<arguments.length;e++){var r=arguments[e];if(r){var o=typeof r;if("string"===o||"number"===o)t.push(r);else if(Array.isArray(r)&&r.length){var s=i.apply(null,r);s&&t.push(s)}else if("object"===o)for(var a in r)n.call(r,a)&&r[a]&&t.push(a)}}return t.join(" ")}t.exports?(i.default=i,t.exports=i):void 0===(r=function(){return i}.apply(e,[]))||(t.exports=r)}()},,,function(t,e,n){"use strict";n.r(e),n.d(e,"create",(function(){return gt})),n.d(e,"creator",(function(){return c})),n.d(e,"local",(function(){return yt})),n.d(e,"matcher",(function(){return d})),n.d(e,"mouse",(function(){return xt})),n.d(e,"namespace",(function(){return o})),n.d(e,"namespaces",(function(){return i})),n.d(e,"clientPoint",(function(){return bt})),n.d(e,"select",(function(){return pt})),n.d(e,"selectAll",(function(){return wt})),n.d(e,"selection",(function(){return dt})),n.d(e,"selector",(function(){return u})),n.d(e,"selectorAll",(function(){return f})),n.d(e,"style",(function(){return M})),n.d(e,"touch",(function(){return Et})),n.d(e,"touches",(function(){return St})),n.d(e,"window",(function(){return C})),n.d(e,"event",(function(){return tt})),n.d(e,"customEvent",(function(){return st}));var r="http://www.w3.org/1999/xhtml",i={svg:"http://www.w3.org/2000/svg",xhtml:r,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},o=function(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),i.hasOwnProperty(e)?{space:i[e],local:t}:t};function s(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===r&&e.documentElement.namespaceURI===r?e.createElement(t):e.createElementNS(n,t)}}function a(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}var c=function(t){var e=o(t);return(e.local?a:s)(e)};function l(){}var u=function(t){return null==t?l:function(){return this.querySelector(t)}};function h(){return[]}var f=function(t){return null==t?h:function(){return this.querySelectorAll(t)}},d=function(t){return function(){return this.matches(t)}},p=function(t){return new Array(t.length)};function g(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}g.prototype={constructor:g,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function m(t,e,n,r,i,o){for(var s,a=0,c=e.length,l=o.length;a<l;++a)(s=e[a])?(s.__data__=o[a],r[a]=s):n[a]=new g(t,o[a]);for(;a<c;++a)(s=e[a])&&(i[a]=s)}function y(t,e,n,r,i,o,s){var a,c,l,u={},h=e.length,f=o.length,d=new Array(h);for(a=0;a<h;++a)(c=e[a])&&(d[a]=l="$"+s.call(c,c.__data__,a,e),l in u?i[a]=c:u[l]=c);for(a=0;a<f;++a)(c=u[l="$"+s.call(t,o[a],a,o)])?(r[a]=c,c.__data__=o[a],u[l]=null):n[a]=new g(t,o[a]);for(a=0;a<h;++a)(c=e[a])&&u[d[a]]===c&&(i[a]=c)}function _(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function v(t){return function(){this.removeAttribute(t)}}function b(t){return function(){this.removeAttributeNS(t.space,t.local)}}function x(t,e){return function(){this.setAttribute(t,e)}}function w(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function E(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function S(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}var C=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView};function A(t){return function(){this.style.removeProperty(t)}}function I(t,e,n){return function(){this.style.setProperty(t,e,n)}}function T(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function M(t,e){return t.style.getPropertyValue(e)||C(t).getComputedStyle(t,null).getPropertyValue(e)}function F(t){return function(){delete this[t]}}function B(t,e){return function(){this[t]=e}}function L(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function O(t){return t.trim().split(/^|\s+/)}function U(t){return t.classList||new k(t)}function k(t){this._node=t,this._names=O(t.getAttribute("class")||"")}function P(t,e){for(var n=U(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function D(t,e){for(var n=U(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function R(t){return function(){P(this,t)}}function j(t){return function(){D(this,t)}}function z(t,e){return function(){(e.apply(this,arguments)?P:D)(this,t)}}k.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function Q(){this.textContent=""}function N(t){return function(){this.textContent=t}}function V(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function G(){this.innerHTML=""}function H(t){return function(){this.innerHTML=t}}function Z(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function W(){this.nextSibling&&this.parentNode.appendChild(this)}function X(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Y(){return null}function q(){var t=this.parentNode;t&&t.removeChild(this)}function K(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function J(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}var $={},tt=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||($={mouseenter:"mouseover",mouseleave:"mou
6seout"}));function et(t,e,n){return t=nt(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function nt(t,e,n){return function(r){var i=tt;tt=r;try{t.call(this,this.__data__,e,n)}finally{tt=i}}}function rt(t){return t.trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}function it(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,o=e.length;r<o;++r)n=e[r],t.type&&n.type!==t.type||n.name!==t.name?e[++i]=n:this.removeEventListener(n.type,n.listener,n.capture);++i?e.length=i:delete this.__on}}}function ot(t,e,n){var r=$.hasOwnProperty(t.type)?et:nt;return function(i,o,s){var a,c=this.__on,l=r(e,o,s);if(c)for(var u=0,h=c.length;u<h;++u)if((a=c[u]).type===t.type&&a.name===t.name)return this.removeEventListener(a.type,a.listener,a.capture),this.addEventListener(a.type,a.listener=l,a.capture=n),void(a.value=e);this.addEventListener(t.type,l,n),a={type:t.type,name:t.name,value:e,listener:l,capture:n},c?c.push(a):this.__on=[a]}}function st(t,e,n,r){var i=tt;t.sourceEvent=tt,tt=t;try{return e.apply(n,r)}finally{tt=i}}function at(t,e,n){var r=C(t),i=r.CustomEvent;"function"==typeof i?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function ct(t,e){return function(){return at(this,t,e)}}function lt(t,e){return function(){return at(this,t,e.apply(this,arguments))}}var ut=[null];function ht(t,e){this._groups=t,this._parents=e}function ft(){return new ht([[document.documentElement]],ut)}ht.prototype=ft.prototype={constructor:ht,select:function(t){"function"!=typeof t&&(t=u(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,s,a=e[i],c=a.length,l=r[i]=new Array(c),h=0;h<c;++h)(o=a[h])&&(s=t.call(o,o.__data__,h,a))&&("__data__"in o&&(s.__data__=o.__data__),l[h]=s);return new ht(r,this._parents)},selectAll:function(t){"function"!=typeof t&&(t=f(t));for(var e=this._groups,n=e.length,r=[],i=[],o=0;o<n;++o)for(var s,a=e[o],c=a.length,l=0;l<c;++l)(s=a[l])&&(r.push(t.call(s,s.__data__,l,a)),i.push(s));return new ht(r,i)},filter:function(t){"function"!=typeof t&&(t=d(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,s=e[i],a=s.length,c=r[i]=[],l=0;l<a;++l)(o=s[l])&&t.call(o,o.__data__,l,s)&&c.push(o);return new ht(r,this._parents)},data:function(t,e){if(!t)return p=new Array(this.size()),u=-1,this.each((function(t){p[++u]=t})),p;var n,r=e?y:m,i=this._parents,o=this._groups;"function"!=typeof t&&(n=t,t=function(){return n});for(var s=o.length,a=new Array(s),c=new Array(s),l=new Array(s),u=0;u<s;++u){var h=i[u],f=o[u],d=f.length,p=t.call(h,h&&h.__data__,u,i),g=p.length,_=c[u]=new Array(g),v=a[u]=new Array(g);r(h,f,_,v,l[u]=new Array(d),p,e);for(var b,x,w=0,E=0;w<g;++w)if(b=_[w]){for(w>=E&&(E=w+1);!(x=v[E])&&++E<g;);b._next=x||null}}return(a=new ht(a,i))._enter=c,a._exit=l,a},enter:function(){return new ht(this._enter||this._groups.map(p),this._parents)},exit:function(){return new ht(this._exit||this._groups.map(p),this._parents)},join:function(t,e,n){var r=this.enter(),i=this,o=this.exit();return r="function"==typeof t?t(r):r.append(t+""),null!=e&&(i=e(i)),null==n?o.remove():n(o),r&&i?r.merge(i).order():i},merge:function(t){for(var e=this._groups,n=t._groups,r=e.length,i=n.length,o=Math.min(r,i),s=new Array(r),a=0;a<o;++a)for(var c,l=e[a],u=n[a],h=l.length,f=s[a]=new Array(h),d=0;d<h;++d)(c=l[d]||u[d])&&(f[d]=c);for(;a<r;++a)s[a]=e[a];return new ht(s,this._parents)},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,i=t[e],o=i.length-1,s=i[o];--o>=0;)(r=i[o])&&(s&&4^r.compareDocumentPosition(s)&&s.parentNode.insertBefore(r,s),s=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=_);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var s,a=n[o],c=a.length,l=i[o]=new Array(c),u=0;u<c;++u)(s=a[u])&&(l[u]=s);l.sort(e)}return new ht(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){var t=new Array(this.size()),e=-1;return this.each((function(){t[++e]=this})),t},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length;i<o;++i){var s=r[i];if(s)return s}return null},size:function(){var t=0;return this.each((function(){++t})),t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i,o=e[n],s=0,a=o.length;s<a;++s)(i=o[s])&&t.call(i,i.__data__,s,o);return this},attr:function(t,e){var n=o(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==e?n.local?b:v:"function"==typeof e?n.local?S:E:n.local?w:x)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?A:"function"==typeof e?T:I)(t,e,null==n?"":n)):M(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?F:"function"==typeof e?L:B)(t,e)):this.node()[t]},classed:function(t,e){var n=O(t+"");
6if(arguments.length<2){for(var r=U(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof e?z:e?R:j)(n,e))},text:function(t){return arguments.length?this.each(null==t?Q:("function"==typeof t?V:N)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?G:("function"==typeof t?Z:H)(t)):this.node().innerHTML},raise:function(){return this.each(W)},lower:function(){return this.each(X)},append:function(t){var e="function"==typeof t?t:c(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var n="function"==typeof t?t:c(t),r=null==e?Y:"function"==typeof e?e:u(e);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(q)},clone:function(t){return this.select(t?J:K)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var r,i,o=rt(t+""),s=o.length;if(!(arguments.length<2)){for(a=e?ot:it,null==n&&(n=!1),r=0;r<s;++r)this.each(a(o[r],e,n));return this}var a=this.node().__on;if(a)for(var c,l=0,u=a.length;l<u;++l)for(r=0,c=a[l];r<s;++r)if((i=o[r]).type===c.type&&i.name===c.name)return c.value},dispatch:function(t,e){return this.each(("function"==typeof e?lt:ct)(t,e))}};var dt=ft,pt=function(t){return"string"==typeof t?new ht([[document.querySelector(t)]],[document.documentElement]):new ht([[t]],ut)},gt=function(t){return pt(c(t).call(document.documentElement))},mt=0;function yt(){return new _t}function _t(){this._="@"+(++mt).toString(36)}_t.prototype=yt.prototype={constructor:_t,get:function(t){for(var e=this._;!(e in t);)if(!(t=t.parentNode))return;return t[e]},set:function(t,e){return t[this._]=e},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}};var vt=function(){for(var t,e=tt;t=e.sourceEvent;)e=t;return e},bt=function(t,e){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,[(r=r.matrixTransform(t.getScreenCTM().inverse())).x,r.y]}var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]},xt=function(t){var e=vt();return e.changedTouches&&(e=e.changedTouches[0]),bt(t,e)},wt=function(t){return"string"==typeof t?new ht([document.querySelectorAll(t)],[document.documentElement]):new ht([null==t?[]:t],ut)},Et=function(t,e,n){arguments.length<3&&(n=e,e=vt().changedTouches);for(var r,i=0,o=e?e.length:0;i<o;++i)if((r=e[i]).identifier===n)return bt(t,r);return null},St=function(t,e){null==e&&(e=vt().touches);for(var n=0,r=e?e.length:0,i=new Array(r);n<r;++n)i[n]=bt(t,e[n]);return i}},function(t,e,n){"use strict";var r;n.d(e,"d",(function(){return r})),n.d(e,"E",(function(){return a.a})),n.d(e,"v",(function(){return c.h})),n.d(e,"D",(function(){return c.k})),n.d(e,"u",(function(){return c.g})),n.d(e,"o",(function(){return c.d})),n.d(e,"p",(function(){return c.e})),n.d(e,"j",(function(){return c.b})),n.d(e,"k",(function(){return c.c})),n.d(e,"B",(function(){return c.j})),n.d(e,"e",(function(){return c.a})),n.d(e,"w",(function(){return c.i})),n.d(e,"t",(function(){return c.f})),n.d(e,"i",(function(){return l.d})),n.d(e,"h",(function(){return l.c})),n.d(e,"f",(function(){return l.a})),n.d(e,"g",(function(){return l.b})),n.d(e,"A",(function(){return u.a})),n.d(e,"z",(function(){return o})),n.d(e,"y",(function(){return s})),n.d(e,"x",(function(){return f})),n.d(e,"C",(function(){return h})),n.d(e,"b",(function(){return d.b})),n.d(e,"c",(function(){return d.c})),n.d(e,"a",(function(){return d.a})),n.d(e,"r",(function(){return p.e})),n.d(e,"s",(function(){return p.f})),n.d(e,"q",(function(){return p.d})),n.d(e,"m",(function(){return p.b})),n.d(e,"n",(function(){return p.c})),n.d(e,"l",(function(){return p.a})),function(t){t.PRIVATE="private",t.TEAM="team",t.PUBLIC="public"}(r||(r={}));var i,o,s,a=n(509),c=n(310),l=n(560),u=n(561);!function(t){t.ROW_NUMBER="meta::row_number",t.TICKER="meta::ticker",t.COMPANY_NAME="meta::display_name",t.SUMMARY="meta::summary",t.LOCATION="meta::location",t.DOMAIN="meta::domain",t.CATEGORY="meta::category",t.CEO_ETHNICITY="meta::ceo_ethnicity",t.CEO_GENDER="meta::ceo_gender",t.MARKET="meta::market",t.INDUSTRY="meta::market_industry",t.SECTOR="meta::market_sector",t.ISIN="meta::isin",t.CUSIP="meta::cusip",t.SEDOL="meta::sedol",t.DUNS="meta::duns",t.FIGI="meta::figi"}(o||(o={})),function(t){t.EQUALS="=",t.NOT_EQUALS="!=",t.CONTAINS="...",t.BETWEEN="[]"}(s||(s={}));var h,f=((i={})[s.EQUALS]="Equals",i[s.NOT_EQUALS]="Not Equals",i[s.CONTAINS]="Contains",i[s.BETWEEN]="Between",i);!function(t){t.TICKER="ticker",t.DISPLAY_NAME="display_name",t.DOMAIN="domain",t.ISIN="isin",t.CUSIP="cusip",t.SEDOL="sedol",t.DUNS="duns",t.FIGI="figi"}(h||(h={}));var d=n(472),p=n(416)},,,function(t,e,n){"use strict";n.d(e,"c",(function(){return _})),n.d(e,"d",(function(){return b})),n.d(e,"a",(function(){return x})),n.d(e,"e",(function(){return w})),n.d(e,"f",(function(){return E})),n.d(e,"b",(function(){return S}));var r=n(42),i=n(486),o=n.n(i),s=(n(997),n(394)),a=n(164),c=n(58),l=function(){return(l=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)}
6,u=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(t){o(t)}}function a(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))},h=function(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};function f(t){void 0===t&&(t={});var e=new FormData;for(var n in t)t.hasOwnProperty(n)&&e.append(n,t[n]instanceof Blob?t[n]:"object"==typeof t[n]?JSON.stringify(t[n]):""+t[n]);return e}function d(t,e,n,r){void 0===r&&(r={});var i=""+t+n;return e===c.a.GET&&(i+="?"+a.stringify(r)),i}var p={Accept:"application/json","X-API-Version":"20151130"},g={Accept:"application/json",Authorization:"token "+r.f.authToken,"X-API-Version":"20151130"};function m(t){var e;return void 0===t&&(t={}),l(l(l({},g),((e={}).Authorization=r.f.authToken&&r.f.authToken.length>0?"token "+r.f.authToken:r.f.tmpAuthToken&&r.f.tmpAuthToken.length>0?"token "+r.f.tmpAuthToken:void 0,e)),t)}function y(t,e,n,i,s){return void 0===i&&(i={}),u(this,void 0,void 0,(function(){var a,l,u,f,d,p,g,y,_,v;return h(this,(function(h){switch(h.label){case 0:if(!r.f.authToken&&!r.f.tmpAuthToken)throw new Error("Missing authToken for request");return a=m(s),[4,o()(e,Object.assign({body:t===c.a.HEAD?void 0:n,headers:a,method:t,referrer:document.location.origin+document.location.pathname},i))];case 1:return l=h.sent(),u=l.ok,f=l.headers,d=l.status,g="application/json"===f.get("content-type"),y="Request "+d+": "+l.statusText.toLowerCase(),u?[3,12]:401!==d?[3,3]:[4,l.text()];case 2:if("Authorization expired"===(_=h.sent()))throw window.location.reload(),new Error(_);h.label=3;case 3:if(!g)return[3,8];h.label=4;case 4:return h.trys.push([4,6,,7]),[4,l.json()];case 5:return p=h.sent(),y=p.message||p.error||y,[3,7];case 6:throw h.sent(),new Error(y);case 7:return[3,11];case 8:return h.trys.push([8,10,,11]),[4,l.text()];case 9:return v=h.sent(),y=v||y,[3,11];case 10:throw h.sent(),new Error(y);case 11:throw new Error(y);case 12:return t!==c.a.HEAD?[3,13]:(p=void 0,[3,15]);case 13:return[4,g?l.json():l.text()];case 14:p=h.sent(),h.label=15;case 15:return[2,{body:p,headers:f,status:d}]}}))}))}function _(t,e,n,i,s,a){return void 0===i&&(i={}),u(this,void 0,void 0,(function(){var u,f,d,g;return h(this,(function(h){switch(h.label){case 0:return u=function(t,e){return void 0===t&&(t={}),r.f.authToken&&!e?m(t):l(l({},p),t)}(s,a),[4,o()(e,Object.assign({body:t===c.a.HEAD?void 0:n,headers:u,method:t,referrer:document.location.origin+document.location.pathname},i))];case 1:return f=h.sent(),f.ok,d=f.headers,g=f.status,[4,"application/json"===d.get("content-type")?f.json():f.text()];case 2:return[2,{body:h.sent(),headers:d,status:g}]}}))}))}function v(t){return t.headers&&"application/json"===t.headers["Content-Type"]}function b(t){return u(this,void 0,void 0,(function(){var e;return h(this,(function(n){switch(n.label){case 0:return e=d(r.a,t.method,t.path,t.data),[4,y(t.method,e,t.method===c.a.GET?void 0:v(t)?JSON.stringify(t.data):f(t.data),{},t.headers)];case 1:return[2,n.sent()]}}))}))}function x(t,e){return u(this,void 0,void 0,(function(){var n;return h(this,(function(i){switch(i.label){case 0:return n=d(r.a,t.method,t.path,t.data),[4,_(t.method,n,t.method===c.a.GET?void 0:v(t)?JSON.stringify(t.data):f(t.data),{},t.headers||{},e||!1)];case 1:return[2,i.sent()]}}))}))}function w(t){return u(this,void 0,void 0,(function(){return h(this,(function(e){switch(e.label){case 0:return[4,y(t.method,d(r.a,c.a.GET,t.path,t.data),void 0,{},t.headers)];case 1:return[2,e.sent()]}}))}))}function E(t,e,n){return u(this,void 0,void 0,(function(){var i,o,a,l;return h(this,(function(u){switch(u.label){case 0:return i=Object(s.default)("csrftoken"),o=t.headers||{},!(t.method===c.a.GET||t.method===c.a.HEAD)&&i&&i.length>0&&(o["X-CSRFToken"]=i),a=e?JSON.stringify(e):void 0,l=n?f(n):void 0,[4,y(t.method,d(r.c,c.a.GET,t.path,t.data),l||a,{credentials:"include"},o)];case 1:return[2,u.sent()]}}))}))}function S(t,e,n){return u(this,void 0,void 0,(function(){return h(this,(function(i){switch(i.label){case 0:return[4,_(t.method,d(r.c,c.a.GET,t.path,t.data),e?JSON.stringify(e):void 0,{},t.headers,n||!1)];case 1:return[2,i.sent()]}}))}))}},function(t,e,n){"use strict";var r=n(428);n.d(e,"a",(function(){return r.a})),n.d(e,"b",(function(){return r.b}))},,function(t,e,n){var r=n(57),i=n(211).f,o=n(184),s=n(212),a=n(931),c=n(1148),l=n(582);t.exports=function(t,e){var n,u,h,f,d,p=t.target,g=t.global,m=t.stat;if(n=g?r:m?r[p]||a(p,{}):(r[p]||{}).prototype)for(u in e){if(f=e[u],h=t.noTargetGet?(d=i(n,u))&&d.value:n[u],!l(g?u:p+(m?".":"#")+u,t.forced)&&void 0!==h){if(typeof f==typeof h)continue;c(f,h)}(t.sham||h&&h.sham)&&o(f,"sham",!0),s(n,u,f,t)}}},,function(t,e,n){"use strict";n.r(e),n.d(e,"bisect",(function(){return c})),n.d(e,"bisectRight",(function(){return s})),n.d(e,"bisectLeft",(function(){return a})),n.d(e,"ascending",(function(){return r})),n.d(e,"bisector",(function(){return i})),n.d(e,"cross",(function(){return h})),n.d(e,"descending",(function(){return f})),n.d(e,"deviation",(function(){return g})),n.d(e,"extent",(function(){return m})),n.d(e,"histogram",(function(){return R})),n.d(e,"thresholdFreedmanDiaconis",(function(){return N})),n.d(e,"thresholdScott",(function(){return V})),n.d(e,"thresholdSturges",(function(){return D})),n.d(e,"max",(function(){return G})),n.d(e,"mean",(function(){return H})),n.d(e,"median",(function(){return Z})),n.d(e,"merge",(function(){return W})),n.d(e,"min",(function(){return X})),n.d(e,"pairs",(function(){return l})),n.d(e,"permute",(function(){return Y})),n.d(e,"quantile",(function(){return Q})),n.d(e,"range",(function(){return T})),n.d(e,"scan",(function(){return q})),n.d(e,"shuffle",(function(){return K})),n.d(e,"sum",(function(){return J})),n.d(e,"ticks",(function(){return U})),n.d(e,"tickIncrement",(function(){return k})),n.d(e,"tickStep",(function(){return P})),n.d(e,"transpose",(function(){return $})),n.d(e,"variance",(function(){return p})),n.d(e,"zip",(function(){return et}));var r=function(t,e){return t<e?-1:t>e?1:t>=e?0:NaN},i=function(t){var e;return 1===t.length&&(e=t,t=function(t,n){return r(e(t),n)}),{left:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r<i;){var o=r+i>>>1;t(e[o],n)<0?r=o+1:i=o}return r},right:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r<i;){var o=r+i>>>1;t(e[o],n)>0?i=o:r=o+1}return r}}};var o=i(r),s=o.right,a=o.left,c=s,l=function(t,e){null==e&&(e=u);for(var n=0,r=t.length-1,i=t[0],o=new Array(r<0?0:r);n<r;)o[n]=e(i,i=t[++n]);return o};function u(t,e){return[t,e]}var h=function(t,e,n){var r,i,o,s,a=t.length,c=e.length,l=new Array(a*c);for(null==n&&(n=u),r=o=0;r<a;++r)for(s=t[r],i=0;i<c;++i,++o)l[o]=n(s,e[i]);return l},f=function(t,e){return e<t?-1:e>t?1:e>=t?0:NaN},d=function(t){return null===t?NaN:+t},p=function(t,e){var n,r,i=t.length,o=0,s=-1,a=0,c=0;if(null==e)for(;++s<i;)isNaN(n=d(t[s]))||(c+=(r=n-a)*(n-(a+=r/++o)));else for(;++s<i;)isNaN(n=d(e(t[s],s,t)))||(c+=(r=n-a)*(n-(a+=r/++o)));if(o>1)return c/(o-1)},g=function(t,e){var n=p(t,e);return n?Math.sqrt(n):n},m=function(t,e){var n,r,i,o=t.length,s=-1;if(null==e){for(;++s<o;)if(null!=(n=t[s])&&n>=n)for(r=i=n;++s<o;)null!=(n=t[s])&&(r>n&&(r=n),i<n&&(i=n))}else for(;++s<o;)if(null!=(n=e(t[s],s,t))&&n>=n)for(r=i=n;++s<o;)null!=(n=e(t[s],s,t))&&(r>n&&(r=n),i<n&&(i=n));return[r,i]},y=n(431),_=n.n(y),v=n(421),b=n.n(v),x=n(493),w=n.n(x),E=Array.prototype,S=w()(E),C=b()(E),A=function(t){return function(){return t}},I=function(t){return t},T=function(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),o=new Array(i);++r<i;)o[r]=t+r*n;return o},M=n(592),F=n.n(M),B=Math.sqrt(50),L=Math.sqrt(10),O=Math.sqrt(2),U=function(t,e,n){var r,i,o,s,a=-1;
6if(n=+n,(t=+t)===(e=+e)&&n>0)return[t];if((r=e<t)&&(i=t,t=e,e=i),0===(s=k(t,e,n))||!isFinite(s))return[];if(s>0)for(t=Math.ceil(t/s),e=Math.floor(e/s),o=new Array(i=Math.ceil(e-t+1));++a<i;)o[a]=(t+a)*s;else for(t=Math.floor(t*s),e=Math.ceil(e*s),o=new Array(i=Math.ceil(t-e+1));++a<i;)o[a]=(t-a)/s;return r&&F()(o).call(o),o};function k(t,e,n){var r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=B?10:o>=L?5:o>=O?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=B?10:o>=L?5:o>=O?2:1)}function P(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=B?i*=10:o>=L?i*=5:o>=O&&(i*=2),e<t?-i:i}var D=function(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1},R=function(){var t=I,e=m,n=D;function r(r){var i,o,s=r.length,a=new Array(s);for(i=0;i<s;++i)a[i]=t(r[i],i,r);var l=e(a),u=l[0],h=l[1],f=n(a,u,h);_()(f)||(f=P(u,h,f),f=T(Math.ceil(u/f)*f,h,f));for(var d=f.length;f[0]<=u;)f.shift(),--d;for(;f[d-1]>h;)f.pop(),--d;var p,g=new Array(d+1);for(i=0;i<=d;++i)(p=g[i]=[]).x0=i>0?f[i-1]:u,p.x1=i<d?f[i]:h;for(i=0;i<s;++i)u<=(o=a[i])&&o<=h&&g[c(f,o,0,d)].push(r[i]);return g}return r.value=function(e){return arguments.length?(t="function"==typeof e?e:A(e),r):t},r.domain=function(t){return arguments.length?(e="function"==typeof t?t:A([t[0],t[1]]),r):e},r.thresholds=function(t){return arguments.length?(n="function"==typeof t?t:_()(t)?A(S.call(t)):A(t),r):n},r},j=n(356),z=n.n(j),Q=function(t,e,n){if(null==n&&(n=d),r=t.length){if((e=+e)<=0||r<2)return+n(t[0],0,t);if(e>=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,o=Math.floor(i),s=+n(t[o],o,t);return s+(+n(t[o+1],o+1,t)-s)*(i-o)}},N=function(t,e,n){var i;return t=z()(i=C.call(t,d)).call(i,r),Math.ceil((n-e)/(2*(Q(t,.75)-Q(t,.25))*Math.pow(t.length,-1/3)))},V=function(t,e,n){return Math.ceil((n-e)/(3.5*g(t)*Math.pow(t.length,-1/3)))},G=function(t,e){var n,r,i=t.length,o=-1;if(null==e){for(;++o<i;)if(null!=(n=t[o])&&n>=n)for(r=n;++o<i;)null!=(n=t[o])&&n>r&&(r=n)}else for(;++o<i;)if(null!=(n=e(t[o],o,t))&&n>=n)for(r=n;++o<i;)null!=(n=e(t[o],o,t))&&n>r&&(r=n);return r},H=function(t,e){var n,r=t.length,i=r,o=-1,s=0;if(null==e)for(;++o<r;)isNaN(n=d(t[o]))?--i:s+=n;else for(;++o<r;)isNaN(n=d(e(t[o],o,t)))?--i:s+=n;if(i)return s/i},Z=function(t,e){var n,i=t.length,o=-1,s=[];if(null==e)for(;++o<i;)isNaN(n=d(t[o]))||s.push(n);else for(;++o<i;)isNaN(n=d(e(t[o],o,t)))||s.push(n);return Q(z()(s).call(s,r),.5)},W=function(t){for(var e,n,r,i=t.length,o=-1,s=0;++o<i;)s+=t[o].length;for(n=new Array(s);--i>=0;)for(e=(r=t[i]).length;--e>=0;)n[--s]=r[e];return n},X=function(t,e){var n,r,i=t.length,o=-1;if(null==e){for(;++o<i;)if(null!=(n=t[o])&&n>=n)for(r=n;++o<i;)null!=(n=t[o])&&r>n&&(r=n)}else for(;++o<i;)if(null!=(n=e(t[o],o,t))&&n>=n)for(r=n;++o<i;)null!=(n=e(t[o],o,t))&&r>n&&(r=n);return r},Y=function(t,e){for(var n=e.length,r=new Array(n);n--;)r[n]=t[e[n]];return r},q=function(t,e){if(n=t.length){var n,i,o=0,s=0,a=t[s];for(null==e&&(e=r);++o<n;)(e(i=t[o],a)<0||0!==e(a,a))&&(a=i,s=o);return 0===e(a,a)?s:void 0}},K=function(t,e,n){for(var r,i,o=(null==n?t.length:n)-(e=null==e?0:+e);o;)i=Math.random()*o--|0,r=t[o+e],t[o+e]=t[i+e],t[i+e]=r;return t},J=function(t,e){var n,r=t.length,i=-1,o=0;if(null==e)for(;++i<r;)(n=+t[i])&&(o+=n);else for(;++i<r;)(n=+e(t[i],i,t))&&(o+=n);return o},$=function(t){if(!(i=t.length))return[];for(var e=-1,n=X(t,tt),r=new Array(n);++e<n;)for(var i,o=-1,s=r[e]=new Array(i);++o<i;)s[o]=t[o][e];return r};function tt(t){return t.length}var et=function(){return $(arguments)}},function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return o})),n.d(e,"e",(function(){return s})),n.d(e,"c",(function(){return a})),n.d(e,"d",(function(){return c})); 7/*! ***************************************************************************** 8Copyright (c) Microsoft Corporation. All rights reserved. 9Licensed under the Apache License, Version 2.0 (the "License"); you may not use 10this file except in compliance with the License. You may obtain a copy of the 11License at http://www.apache.org/licenses/LICENSE-2.0 12 13THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 15WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 16MERCHANTABLITY OR NON-INFRINGEMENT. 17 18See the Apache Version 2.0 License for specific language governing permissions 19and limitations under the License. 20***************************************************************************** */ 21var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function i(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function s(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function a(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function c(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(a(arguments[e]));return t}},function(t,e,n){"use strict";n.d(e,"j",(function(){return r})),n.d(e,"h",(function(){return o})),n.d(e,"i",(function(){return s})),n.d(e,"f",(function(){return a})),n.d(e,"b",(function(){return c})),n.d(e,"a",(function(){return l})),n.d(e,"m",(function(){return R})),n.d(e,"k",(function(){return j})),n.d(e,"n",(function(){return z})),n.d(e,"c",(function(){return K})),n.d(e,"l",(function(){return $})),n.d(e,"g",(function(){return J})),n.d(e,"e",(function(){return N})),n.d(e,"d",(function(){return V}));const r=new(n(1902).a)({id:"luma.gl"});function i(t,e){if(!t)throw new Error(e||"luma.gl: assertion failed.")}function o(t){return"undefined"!=typeof WebGLRenderingContext&&t instanceof WebGLRenderingContext||("undefined"!=typeof WebGL2RenderingContext&&t instanceof WebGL2RenderingContext||Boolean(t&&Number.isFinite(t._version)))}function s(t){return"undefined"!=typeof WebGL2RenderingContext&&t instanceof WebGL2RenderingContext||Boolean(t&&2===t._version)}function a(t){return s(t)?t:null}function c(t){return i(o(t),"Invalid WebGLRenderingContext"),t}function l(t){return i(s(t),"Requires WebGL2"),t}const u={};function h(t,e){var n;u[t]=!0,void 0!==e&&(n=e,globalThis.console&&globalThis.console.error&&globalThis.console.error(n))}const f=function t(e){const n=e.gl;this.ext=e,this.isAlive=!0,this.hasBeenBound=!1,this.elementArrayBuffer=null,this.attribs=new Array(e.maxVertexAttribs);for(let e=0;e<this.attribs.length;e++){const r=new t.VertexAttrib(n);this.attribs[e]=r}this.maxAttrib=0};(f.VertexAttrib=function(t){this.enabled=!1,this.buffer=null,this.size=4,this.type=5126,this.normalized=!1,this.stride=16,this.offset=0,this.cached="",this.recache()}).prototype.recache=function(){this.cached=[this.size,this.type,this.normalized,this.stride,this.offset].join(":")};const d=function(t){const e=this;this.gl=t,function(t){const e=t.getError;t.getError=function(){let n;do{n=e.apply(t),0!==n&&(u[n]=!0)}while(0!==n);for(n in u)if(u[n])return delete u[n],parseInt(n,10);return 0}}(t);const n=this.original={getParameter:t.getParameter,enableVertexAttribArray:t.enableVertexAttribArray,disableVertexAttribArray:t.disableVertexAttribArray,bindBuffer:t.bindBuffer,getVertexAttrib:t.getVertexAttrib,vertexAttribPointer:t.vertexAttribPointer};t.getParameter=function(t){return t===e.VERTEX_ARRAY_BINDING_OES?e.currentVertexArrayObject===e.defaultVertexArrayObject?null:e.currentVertexArrayObject:n.getParameter.apply(this,arguments)},t.enableVertexAttribArray=function(t){const r=e.currentVertexArrayObject;r.maxAttrib=Math.max(r.maxAttrib,t);const i=r.attribs[t];return i.enabled=!0,n.enableVertexAttribArray.apply(this,arguments)},t.disableVertexAttribArray=function(t){const r=e.currentVertexArrayObject;r.maxAttrib=Math.max(r.maxAttrib,t);const i=r.attribs[t];return i.enabled=!1,n.disableVertexAttribArray.apply(this,arguments)},t.bindBuffer=function(t,r){switch(t){case 34962:e.currentArrayBuffer=r;break;case 34963:e.currentVertexArrayObject.elementArrayBuffer=r}return n.bindBuffer.apply(this,arguments)},t.getVertexAttrib=function(t,r){const i=e.currentVertexArrayObject,o=i.attribs[t];switch(r){case 34975:return o.buffer;case 34338:return o.enabled;case 34339:return o.size;case 34340:return o.stride;case 34341:return o.type;case 34922:return o.normalized;default:return n.getVertexAttrib.apply(this,arguments)}},t.vertexAttribPointer=function(t,r,i,o,s,a){const c=e.currentVertexArrayObject;c.maxAttrib=Math.max(c.maxAttrib,t);const l=c.attribs[t];return l.buffer=e.currentArrayBuffer,l.size=r,l.type=i,l.normalized=o,l.stride=s,l.offset=a,l.recache(),n.vertexAttribPointer.apply(this,arguments)},t.instrumentExtension&&t.instrumentExtension(this,"OES_vertex_array_object"),t.canvas&&t.canvas.addEventListener("webglcontextrestored",()=>{var t;t="OESVertexArrayObject emulation library context restored",globalThis.console&&globalThis.console.log&&globalThis.console.log(t),e.reset_()},!0),this.reset_()};d.prototype.VERTEX_ARRAY_BINDING_OES=34229,d.prototype.reset_=function(){if(void 0!==this.vertexArrayObjects)for(let t=0;t<this.vertexArrayObjects.length;++t)this.vertexArrayObjects.isAlive=!1;const t=this.gl;this.maxVertexAttribs=t.getParameter(34921),this.defaultVertexArrayObject=ne
21w f(this),this.currentVertexArrayObject=null,this.currentArrayBuffer=null,this.vertexArrayObjects=[this.defaultVertexArrayObject],this.bindVertexArrayOES(null)},d.prototype.createVertexArrayOES=function(){const t=new f(this);return this.vertexArrayObjects.push(t),t},d.prototype.deleteVertexArrayOES=function(t){t.isAlive=!1,this.vertexArrayObjects.splice(this.vertexArrayObjects.indexOf(t),1),this.currentVertexArrayObject===t&&this.bindVertexArrayOES(null)},d.prototype.isVertexArrayOES=function(t){return!!(t&&t instanceof f&&t.hasBeenBound&&t.ext===this)},d.prototype.bindVertexArrayOES=function(t){const e=this.gl;if(t&&!t.isAlive)return void h(1282,"bindVertexArrayOES: attempt to bind deleted arrayObject");const n=this.original,r=this.currentVertexArrayObject;this.currentVertexArrayObject=t||this.defaultVertexArrayObject,this.currentVertexArrayObject.hasBeenBound=!0;const i=this.currentVertexArrayObject;if(r===i)return;r&&i.elementArrayBuffer===r.elementArrayBuffer||n.bindBuffer.call(e,34963,i.elementArrayBuffer);let o=this.currentArrayBuffer;const s=Math.max(r?r.maxAttrib:0,i.maxAttrib);for(let t=0;t<=s;t++){const s=i.attribs[t],a=r?r.attribs[t]:null;if(r&&s.enabled===a.enabled||(s.enabled?n.enableVertexAttribArray.call(e,t):n.disableVertexAttribArray.call(e,t)),s.enabled){let i=!1;r&&s.buffer===a.buffer||(o!==s.buffer&&(n.bindBuffer.call(e,34962,s.buffer),o=s.buffer),i=!0),(i||s.cached!==a.cached)&&n.vertexAttribPointer.call(e,t,s.size,s.type,s.normalized,s.stride,s.offset)}}this.currentArrayBuffer!==o&&n.bindBuffer.call(e,34962,this.currentArrayBuffer)};const p=t=>s(t)?void 0:0,g={3074:t=>s(t)?void 0:36064,35723:t=>s(t)?void 0:4352,35977:p,32937:p,36795:(t,e)=>{const n=s(t)?t.getExtension("EXT_disjoint_timer_query_webgl2"):t.getExtension("EXT_disjoint_timer_query");return n&&n.GPU_DISJOINT_EXT?e(n.GPU_DISJOINT_EXT):0},37445:(t,e)=>{const n=t.getExtension("WEBGL_debug_renderer_info");return e(n&&n.UNMASKED_VENDOR_WEBGL||7936)},37446:(t,e)=>{const n=t.getExtension("WEBGL_debug_renderer_info");return e(n&&n.UNMASKED_RENDERER_WEBGL||7937)},34047:(t,e)=>{const n=t.luma.extensions.EXT_texture_filter_anisotropic;return n?e(n.MAX_TEXTURE_MAX_ANISOTROPY_EXT):1},32883:p,35071:p,37447:p,36063:(t,e)=>{if(!s(t)){const n=t.getExtension("WEBGL_draw_buffers");return n?e(n.MAX_COLOR_ATTACHMENTS_WEBGL):0}},35379:p,35374:p,35377:p,34852:t=>{if(!s(t)){const e=t.getExtension("WEBGL_draw_buffers");return e?e.MAX_DRAW_BUFFERS_WEBGL:0}},36203:t=>t.getExtension("OES_element_index")?2147483647:65535,33001:t=>t.getExtension("OES_element_index")?16777216:65535,33e3:t=>16777216,37157:p,35373:p,35657:p,36183:p,37137:p,34045:p,35978:p,35979:p,35968:p,35376:p,35375:p,35659:p,37154:p,35371:p,35658:p,35076:p,35077:p,35380:p};const m={OES_vertex_array_object:{meta:{suffix:"OES"},createVertexArray:()=>{i(!1,"VertexArray requires WebGL2 or OES_vertex_array_object extension")},deleteVertexArray:()=>{},bindVertexArray:()=>{},isVertexArray:()=>!1},ANGLE_instanced_arrays:{meta:{suffix:"ANGLE"},vertexAttribDivisor(t,e){i(0===e,"WebGL instanced rendering not supported")},drawElementsInstanced:()=>{},drawArraysInstanced:()=>{}},WEBGL_draw_buffers:{meta:{suffix:"WEBGL"},drawBuffers:()=>{i(!1)}},EXT_disjoint_timer_query:{meta:{suffix:"EXT"},createQuery:()=>{i(!1)},deleteQuery:()=>{i(!1)},beginQuery:()=>{i(!1)},endQuery:()=>{},getQuery(t,e){return this.getQueryObject(t,e)},getQueryParameter(t,e){return this.getQueryObject(t,e)},getQueryObject:()=>{}}},y={readBuffer:(t,e,n)=>{s(t)&&e(n)},getVertexAttrib:(t,e,n,r)=>{const{webgl2:i,ext:o}=function(t,e){return{webgl2:s(t),ext:t.getExtension(e)}}(t,"ANGLE_instanced_arrays");let a;switch(r){case 35069:a=!!i&&void 0;break;case 35070:a=i||o?void 0:0}return void 0!==a?a:e(n,r)},getProgramParameter:(t,e,n,r)=>{if(!s(t))switch(r){case 35967:return 35981;case 35971:case 35382:return 0}return e(n,r)},getInternalformatParameter:(t,e,n,r,i)=>{if(!s(t))switch(i){case 32937:return new Int32Array([0])}return t.getInternalformatParameter(n,r,i)},getTexParameter(t,e,n,r){switch(r){case 34046:const{extensions:e}=t.luma,n=e.EXT_texture_filter_anisotropic;r=n&&n.TEXTURE_MAX_ANISOTROPY_EXT||34046}return e(n,r)},getParameter:function(t,e,n){const r=g[n],i="function"==typeof r?r(t,e,n):r;return void 0!==i?i:e(n)},hint:(t,e,n,r)=>e(n,r)};function _(t,e){let{extension:n,target:r,target2:o}=e;const s=m[n];i(s);const{meta:a={}}=s,{suffix:c=""}=a,l=t.getExtension(n);for(const e of Object.keys(s)){const n="".concat(e).concat(c);let i=null;"meta"===e||"function"==typeof t[e]||(l&&"function"==typeof l[n]?i=function(){return l[n](...arguments)}:"function"==typeof s[e]&&(i=s[e].bind(r))),i&&(r[e]=i,o[e]=i)}}globalThis.polyfillContext=function(t){t.luma=t.luma||{};const{luma:e}=t;return e.polyfilled||(!function(t){if("function"==typeof t.createVertexArray)return;
21const e=t.getSupportedExtensions;t.getSupportedExtensions=function(){const t=e.call(this)||[];return t.indexOf("OES_vertex_array_object")<0&&t.push("OES_vertex_array_object"),t};const n=t.getExtension;t.getExtension=function(e){const r=n.call(this,e);return r||("OES_vertex_array_object"!==e?null:(t.__OESVertexArrayObject||(this.__OESVertexArrayObject=new d(this)),this.__OESVertexArrayObject))}}(t),function(t){t.luma.extensions={};const e=t.getSupportedExtensions()||[];for(const n of e)t.luma[n]=t.getExtension(n)}(t),function(t,e){for(const n of Object.getOwnPropertyNames(e))"overrides"!==n&&_(t,{extension:n,target:t.luma,target2:t})}(t,m),function(t,e){let{target:n,target2:r}=e;Object.keys(y).forEach(e=>{if("function"==typeof y[e]){const i=t[e]?t[e].bind(t):()=>{},o=y[e].bind(null,t,i);n[e]=o,r[e]=o}})}(t,{target:e,target2:t}),e.polyfilled=!0),t};const v={3042:!1,32773:new Float32Array([0,0,0,0]),32777:32774,34877:32774,32969:1,32968:0,32971:1,32970:0,3106:new Float32Array([0,0,0,0]),3107:[!0,!0,!0,!0],2884:!1,2885:1029,2929:!1,2931:1,2932:513,2928:new Float32Array([0,1]),2930:!0,3024:!0,36006:null,2886:2305,33170:4352,2849:1,32823:!1,32824:0,10752:0,32938:1,32939:!1,3089:!1,3088:new Int32Array([0,0,1024,1024]),2960:!1,2961:0,2968:4294967295,36005:4294967295,2962:519,2967:0,2963:4294967295,34816:519,36003:0,36004:4294967295,2964:7680,2965:7680,2966:7680,34817:7680,34818:7680,34819:7680,2978:[0,0,1024,1024],3333:4,3317:4,37440:!1,37441:!1,37443:37444,35723:4352,36010:null,35977:!1,3330:0,3332:0,3331:0,3314:0,32878:0,3316:0,3315:0,32877:0},b=(t,e,n)=>e?t.enable(n):t.disable(n),x=(t,e,n)=>t.hint(n,e),w=(t,e,n)=>t.pixelStorei(n,e);function E(t){return Array.isArray(t)||ArrayBuffer.isView(t)}const S={3042:b,32773:(t,e)=>t.blendColor(...e),32777:"blendEquation",34877:"blendEquation",32969:"blendFunc",32968:"blendFunc",32971:"blendFunc",32970:"blendFunc",3106:(t,e)=>t.clearColor(...e),3107:(t,e)=>t.colorMask(...e),2884:b,2885:(t,e)=>t.cullFace(e),2929:b,2931:(t,e)=>t.clearDepth(e),2932:(t,e)=>t.depthFunc(e),2928:(t,e)=>t.depthRange(...e),2930:(t,e)=>t.depthMask(e),3024:b,35723:x,36006:(t,e)=>{const n=s(t)?36009:36160;return t.bindFramebuffer(n,e)},2886:(t,e)=>t.frontFace(e),33170:x,2849:(t,e)=>t.lineWidth(e),32823:b,32824:"polygonOffset",10752:"polygonOffset",35977:b,32938:"sampleCoverage",32939:"sampleCoverage",3089:b,3088:(t,e)=>t.scissor(...e),2960:b,2961:(t,e)=>t.clearStencil(e),2968:(t,e)=>t.stencilMaskSeparate(1028,e),36005:(t,e)=>t.stencilMaskSeparate(1029,e),2962:"stencilFuncFront",2967:"stencilFuncFront",2963:"stencilFuncFront",34816:"stencilFuncBack",36003:"stencilFuncBack",36004:"stencilFuncBack",2964:"stencilOpFront",2965:"stencilOpFront",2966:"stencilOpFront",34817:"stencilOpBack",34818:"stencilOpBack",34819:"stencilOpBack",2978:(t,e)=>t.viewport(...e),3333:w,3317:w,37440:w,37441:w,37443:w,3330:w,3332:w,3331:w,36010:(t,e)=>t.bindFramebuffer(36008,e),3314:w,32878:w,3316:w,3315:w,32877:w,framebuffer:(t,e)=>{const n=e&&"handle"in e?e.handle:e;return t.bindFramebuffer(36160,n)},blend:(t,e)=>e?t.enable(3042):t.disable(3042),blendColor:(t,e)=>t.blendColor(...e),blendEquation:(t,e)=>{e=E(e)?e:[e,e],t.blendEquationSeparate(...e)},blendFunc:(t,e)=>{e=E(e)&&2===e.length?[...e,...e]:e,t.blendFuncSeparate(...e)},clearColor:(t,e)=>t.clearColor(...e),clearDepth:(t,e)=>t.clearDepth(e),clearStencil:(t,e)=>t.clearStencil(e),colorMask:(t,e)=>t.colorMask(...e),cull:(t,e)=>e?t.enable(2884):t.disable(2884),cullFace:(t,e)=>t.cullFace(e),depthTest:(t,e)=>e?t.enable(2929):t.disable(2929),depthFunc:(t,e)=>t.depthFunc(e),depthMask:(t,e)=>t.depthMask(e),depthRange:(t,e)=>t.depthRange(...e),dither:(t,e)=>e?t.enable(3024):t.disable(3024),derivativeHint:(t,e)=>{t.hint(35723,e)},frontFace:(t,e)=>t.frontFace(e),mipmapHint:(t,e)=>t.hint(33170,e),lineWidth:(t,e)=>t.lineWidth(e),polygonOffsetFill:(t,e)=>e?t.enable(32823):t.disable(32823),polygonOffset:(t,e)=>t.polygonOffset(...e),sampleCoverage:(t,e)=>t.sampleCoverage(...e),scissorTest:(t,e)=>e?t.enable(3089):t.disable(3089),scissor:(t,e)=>t.scissor(...e),stencilTest:(t,e)=>e?t.enable(2960):t.disable(2960),stencilMask:(t,e)=>{e=E(e)?e:[e,e];const[n,r]=e;t.stencilMaskSeparate(1028,n),t.stencilMaskSeparate(1029,r)},stencilFunc:(t,e)=>{e=E(e)&&3===e.length?[...e,...e]:e;const[n,r,i,o,s,a]=e;t.stencilFuncSeparate(1028,n,r,i),t.stencilFuncSeparate(1029,o,s,a)},stencilOp:(t,e)=>{e=E(e)&&3===e.length?[...e,...e]:e;const[n,r,i,o,s,a]=e;t.stencilOpSeparate(1028,n,r,i),t.stencilOpSeparate(1029,o,s,a)},viewport:(t,e)=>t.viewport(...e)};function C(t,e,n){return void 0!==e[t]?e[t]:n[t]}const A={blendEquation:(t,e,n)=>t.blendEquationSeparate(C(32777,e,n),C(34877,e,n)),blendFunc:(t,e,n)=>t.blendFuncSeparate(C(32969,e,n),C(32968,e,n),C(32971,e,n),C(32970,e,n)),polygonOffset:(t,e,n)=>t.polygonOffset(C(32824,e,n),C(10752,e,n)),sampleCoverage:(t,e,n)=>
21t.sampleCoverage(C(32938,e,n),C(32939,e,n)),stencilFuncFront:(t,e,n)=>t.stencilFuncSeparate(1028,C(2962,e,n),C(2967,e,n),C(2963,e,n)),stencilFuncBack:(t,e,n)=>t.stencilFuncSeparate(1029,C(34816,e,n),C(36003,e,n),C(36004,e,n)),stencilOpFront:(t,e,n)=>t.stencilOpSeparate(1028,C(2964,e,n),C(2965,e,n),C(2966,e,n)),stencilOpBack:(t,e,n)=>t.stencilOpSeparate(1029,C(34817,e,n),C(34818,e,n),C(34819,e,n))},I={enable:(t,e)=>t({[e]:!0}),disable:(t,e)=>t({[e]:!1}),pixelStorei:(t,e,n)=>t({[e]:n}),hint:(t,e,n)=>t({[e]:n}),bindFramebuffer:(t,e,n)=>{switch(e){case 36160:return t({36006:n,36010:n});case 36009:return t({36006:n});case 36008:return t({36010:n});default:return null}},blendColor:(t,e,n,r,i)=>t({32773:new Float32Array([e,n,r,i])}),blendEquation:(t,e)=>t({32777:e,34877:e}),blendEquationSeparate:(t,e,n)=>t({32777:e,34877:n}),blendFunc:(t,e,n)=>t({32969:e,32968:n,32971:e,32970:n}),blendFuncSeparate:(t,e,n,r,i)=>t({32969:e,32968:n,32971:r,32970:i}),clearColor:(t,e,n,r,i)=>t({3106:new Float32Array([e,n,r,i])}),clearDepth:(t,e)=>t({2931:e}),clearStencil:(t,e)=>t({2961:e}),colorMask:(t,e,n,r,i)=>t({3107:[e,n,r,i]}),cullFace:(t,e)=>t({2885:e}),depthFunc:(t,e)=>t({2932:e}),depthRange:(t,e,n)=>t({2928:new Float32Array([e,n])}),depthMask:(t,e)=>t({2930:e}),frontFace:(t,e)=>t({2886:e}),lineWidth:(t,e)=>t({2849:e}),polygonOffset:(t,e,n)=>t({32824:e,10752:n}),sampleCoverage:(t,e,n)=>t({32938:e,32939:n}),scissor:(t,e,n,r,i)=>t({3088:new Int32Array([e,n,r,i])}),stencilMask:(t,e)=>t({2968:e,36005:e}),stencilMaskSeparate:(t,e,n)=>t({[1028===e?2968:36005]:n}),stencilFunc:(t,e,n,r)=>t({2962:e,2967:n,2963:r,34816:e,36003:n,36004:r}),stencilFuncSeparate:(t,e,n,r,i)=>t({[1028===e?2962:34816]:n,[1028===e?2967:36003]:r,[1028===e?2963:36004]:i}),stencilOp:(t,e,n,r)=>t({2964:e,2965:n,2966:r,34817:e,34818:n,34819:r}),stencilOpSeparate:(t,e,n,r,i)=>t({[1028===e?2964:34817]:n,[1028===e?2965:34818]:r,[1028===e?2966:34819]:i}),viewport:(t,e,n,r,i)=>t({2978:[e,n,r,i]})},T=(t,e)=>t.isEnabled(e),M={3042:T,2884:T,2929:T,3024:T,32823:T,32926:T,32928:T,3089:T,2960:T,35977:T};function F(t){for(const e in t)return!1;return!0}function B(t,e){if(t===e)return!0;const n=Array.isArray(t)||ArrayBuffer.isView(t),r=Array.isArray(e)||ArrayBuffer.isView(e);if(n&&r&&t.length===e.length){for(let n=0;n<t.length;++n)if(t[n]!==e[n])return!1;return!0}return!1}function L(t,e){const n=t[e].bind(t);t[e]=function(){const e=arguments.length<=0?void 0:arguments[0];return e in t.state.cache&&t.state.enable?t.state.cache[e]:n(...arguments)},Object.defineProperty(t[e],"name",{value:"".concat(e,"-from-cache"),configurable:!1})}function O(t,e,n){const r=t[e].bind(t);t[e]=function(){for(var e=arguments.length,i=new Array(e),o=0;o<e;o++)i[o]=arguments[o];const{valueChanged:s,oldValue:a}=n(t.state._updateCache,...i);return s&&r(...i),a},Object.defineProperty(t[e],"name",{value:"".concat(e,"-to-cache"),configurable:!1})}function U(t){const e=t.useProgram.bind(t);t.useProgram=function(n){t.state.program!==n&&(e(n),t.state.program=n)}}class k{constructor(t){let{copyState:e=!1,log:n=(()=>{})}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.gl=t,this.program=null,this.stateStack=[],this.enable=!0,this.cache=e?function(t,e){if("number"==typeof(e=e||v)){const n=e,r=M[n];return r?r(t,n):t.getParameter(n)}const n=Array.isArray(e)?e:Object.keys(e),r={};for(const e of n){const n=M[e];r[e]=n?n(t,Number(e)):t.getParameter(Number(e))}return r}(t):Object.assign({},v),this.log=n,this._updateCache=this._updateCache.bind(this),Object.seal(this)}push(){this.stateStack.push({})}pop(){i(this.stateStack.length>0);const t=this.stateStack[this.stateStack.length-1];R(this.gl,t),this.stateStack.pop()}_updateCache(t){let e,n=!1;const r=this.stateStack.length>0&&this.stateStack[this.stateStack.length-1];for(const o in t){i(void 0!==o);const s=t[o],a=this.cache[o];B(s,a)||(n=!0,e=a,r&&!(o in r)&&(r[o]=a),this.cache[o]=s)}return{valueChanged:n,oldValue:e}}}function P(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{enable:n=!0,copyState:r}=e;if(i(void 0!==r),!t.state){const{polyfillContext:e}=globalThis;e&&e(t),t.state=new k(t,{copyState:r}),U(t);for(const e in I){O(t,e,I[e])}L(t,"getParameter"),L(t,"isEnabled")}return t.state.enable=n,t}function D(t){i(t.state),t.state.pop()}function R(t,e){if(i(o(t),"setParameters requires a WebGL context"),F(e))return;const n={};for(const r in e){const i=Number(r),o=S[r];o&&("string"==typeof o?n[o]=!0:o(t,e[r],i))}const r=t.state&&t.state.cache;if(r)for(const i in n){(0,A[i])(t,e,r)}}function j(t){R(t,v)}function z(t,e,n){if(F(e))return n(t);const{nocatch:r=!0}=e;let i;if(function(t){t.state||P(t,{copyState:!1}),t.state.push()}(t),R(t,e),r)i=n(t),D(t);else try{i=n(t)}finally{D(t)}return i}var Q=n(411);function N(t){const{luma:e}=t;if(t.canvas&&e){const n=e.canvasSizeInfo,r="clientWidth"in n?n.clientWidth:t.canvas.clientWidth;return r?t.drawingBufferWidth/r:1}return 1}function V(t,e){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const r=N(t),i=t.drawingBufferWidth,o=t.drawingBufferHeight;return H(e,r,i,o,n)}function G(t){const e="undefined"==typeof window?1:window.devicePixelRatio||1;return Number.isFinite(t)?t<=0?1:t:t?e:1}function H(t,e,n,r,i){const o=Z(t[0],e,n);let s=W(t[1],e,r,i),a=Z(t[0]+1,e,n);const c=a===n-1?a:a-1;let l;return a=W(t[1]+1,e,r,i),i?(a=0===a?a:a+1,l=s,s=a):l=a===r-1?a:a-1,{x:o,y:s,width:Math.max(c-o+1,1),height:Math.max(l-s+1,1)}}function Z(t,e,n){return Math.min(Math.round(t*e),n-1)}function W(t,e,n,r){return r?Math.max(0,n-1-Math.round(t*e)):Math.min(Math.round(t*e),n-1)}const X=Object(Q.a)(),Y=X&&"undefined"!=typeof document,q={webgl2:!0,webgl1:!0,throwOnError:!0,manageState:!0,canvas:null,debug:!1,width:800,height:600};function K(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i(X,"createGLContext only available in the browser.\nCreate your own headless context or use 'createHeadlessContext' from @luma.gl/test-utils"),t=Object.assign({},q,t);const{width:e,height:n}=t;function r(e){if(t.throwOnError)throw new Error(e);return console.error(e),null}let o;t.onError=r;const{canvas:s}=t,a=et({canvas:s,width:e,height:n,onError:r});return o=tt(a,t),o?(o=J(o,t),nt(o),o):null}function J(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t||t._instrumented)return t;t._version=t._version||rt(t),t.luma=t.luma||{},t.luma.canvasSizeInfo=t.luma.canvasSizeInfo||{},e=Object.assign({},q,e);const{manageState:n,debug:i}=e;return n&&P(t,{copyState:!1,log:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return r.log(1,...e)()}}),X&&i&&(globalThis.makeDebugContext?(t=globalThis.makeDebugContext(t,e),r.level=Math.max(r.level,1)):r.warn('WebGL debug mode not activated. import "@luma.gl/debug" to enable.')()),t._instrumented=!0,t}function $(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t.canvas){return void it(t,G(e.useDevicePixels),e)}const n=t.getExtension("STACKGL_resize_drawingbuffer");n&&"width"in e&&"height"in e&&n.resize(e.width,e.height)}function tt(t,e){const{onError:n}=e;let r=null;const i=t=>r=t.statusMessage||r;t.addEventListener("webglcontextcreationerror",i,!1);const{webgl1:o=!0,webgl2:s=!0}
21=e;let a=null;return s&&(a=a||t.getContext("webgl2",e),a=a||t.getContext("experimental-webgl2",e)),o&&(a=a||t.getContext("webgl",e),a=a||t.getContext("experimental-webgl",e)),t.removeEventListener("webglcontextcreationerror",i,!1),a?(e.onContextLost&&t.addEventListener("webglcontextlost",e.onContextLost,!1),e.onContextRestored&&t.addEventListener("webglcontextrestored",e.onContextRestored,!1),a):n("Failed to create ".concat(s&&!o?"WebGL2":"WebGL"," context: ").concat(r||"Unknown error"))}function et(t){let e,{canvas:n,width:r=800,height:i=600,onError:o}=t;if("string"==typeof n){Y&&"complete"===document.readyState||o("createGLContext called on canvas '".concat(n,"' before page was loaded")),e=document.getElementById(n)}else n?e=n:(e=document.createElement("canvas"),e.id="lumagl-canvas",e.style.width=Number.isFinite(r)?"".concat(r,"px"):"100%",e.style.height=Number.isFinite(i)?"".concat(i,"px"):"100%",document.body.insertBefore(e,document.body.firstChild));return e}function nt(t){const e=s(t)?"WebGL2":"WebGL1",n=function(t){const e=t.getParameter(7936),n=t.getParameter(7937),r=t.getExtension("WEBGL_debug_renderer_info");return{vendor:r&&t.getParameter(r.UNMASKED_VENDOR_WEBGL||7936)||e,renderer:r&&t.getParameter(r.UNMASKED_RENDERER_WEBGL||7937)||n,vendorMasked:e,rendererMasked:n,version:t.getParameter(7938),shadingLanguageVersion:t.getParameter(35724)}}(t),i=n?"(".concat(n.vendor,",").concat(n.renderer,")"):"",o=t.debug?" debug":"";r.info(1,"".concat(e).concat(o," context ").concat(i))()}function rt(t){return"undefined"!=typeof WebGL2RenderingContext&&t instanceof WebGL2RenderingContext?2:1}function it(t,e,n){let i="width"in n?n.width:t.canvas.clientWidth,o="height"in n?n.height:t.canvas.clientHeight;i&&o||(r.log(1,"Canvas clientWidth/clientHeight is 0")(),e=1,i=t.canvas.width||1,o=t.canvas.height||1),t.luma=t.luma||{},t.luma.canvasSizeInfo=t.luma.canvasSizeInfo||{};const s=t.luma.canvasSizeInfo;if(s.clientWidth!==i||s.clientHeight!==o||s.devicePixelRatio!==e){let n=e;const s=Math.floor(i*n),a=Math.floor(o*n);t.canvas.width=s,t.canvas.height=a,t.drawingBufferWidth===s&&t.drawingBufferHeight===a||(r.warn("Device pixel ratio clamped")(),n=Math.min(t.drawingBufferWidth/i,t.drawingBufferHeight/o),t.canvas.width=Math.floor(i*n),t.canvas.height=Math.floor(o*n)),Object.assign(t.luma.canvasSizeInfo,{clientWidth:i,clientHeight:o,devicePixelRatio:e})}}},function(t,e,n){"use strict";var r,i;n.d(e,"f",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"g",(function(){return s.c})),n.d(e,"h",(function(){return s.d})),n.d(e,"a",(function(){return s.a})),n.d(e,"b",(function(){return s.b})),n.d(e,"e",(function(){return a.b})),n.d(e,"d",(function(){return a.a})),n.d(e,"i",(function(){return o})),function(t){t.COMPLETED="completed",t.DELAYED="delayed"}(r||(r={})),function(t){t.RUNNING="running",t.COMPLETE="complete",t.ERROR="error",t.CANCELLED="cancelled"}(i||(i={}));var o,s=n(247),a=n(396);!function(t){t.PUBLIC="public",t.PRIVATE="private"}(o||(o={}))},function(t,e,n){"use strict";n.d(e,"c",(function(){return a})),n.d(e,"n",(function(){return a})),n.d(e,"g",(function(){return l})),n.d(e,"r",(function(){return l})),n.d(e,"d",(function(){return h})),n.d(e,"b",(function(){return d})),n.d(e,"a",(function(){return g})),n.d(e,"j",(function(){return y})),n.d(e,"h",(function(){return y})),n.d(e,"e",(function(){return _})),n.d(e,"i",(function(){return x})),n.d(e,"f",(function(){return C})),n.d(e,"k",(function(){return I})),n.d(e,"o",(function(){return M})),n.d(e,"m",(function(){return B})),n.d(e,"l",(function(){return O})),n.d(e,"u",(function(){return k})),n.d(e,"s",(function(){return k})),n.d(e,"p",(function(){return P})),n.d(e,"t",(function(){return j})),n.d(e,"q",(function(){return V})),n.d(e,"v",(function(){return H}));var r=new Date,i=new Date;function o(t,e,n,s){function a(e){return t(e=new Date(+e)),e}return a.floor=a,a.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},a.round=function(t){var e=a(t),n=a.ceil(t);return t-e<n-t?e:n},a.offset=function(t,n){return e(t=new Date(+t),null==n?1:Math.floor(n)),t},a.range=function(n,r,i){var o,s=[];if(n=a.ceil(n),i=null==i?1:Math.floor(i),!(n<r&&i>0))return s;do{s.push(o=new Date(+n)),e(n,i),t(n)}while(o<n&&n<r);return s},a.filter=function(n){return o((function(e){if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}))},n&&(a.count=function(e,o){return r.setTime(+e),i.setTime(+o),t(r),t(i),Math.floor(n(r,i))},a.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?a.filter(s?function(e){return s(e)%t==0}:function(e){return a.count(0,e)%t==0}):a:null}),a}var s=o((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t}));s.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?o((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):s:null};var a=s,c=(s.range,o((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+1e3*e)}),(function(t,e){return(e-t)/1e3}),(function(t){return t.getUTCSeconds()}))),l=c,u=(c.range,o((function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())}),(function(t,e){t.setTime(+t+6e4*e)}),(function(t,e){return(e-t)/6e4}),(function(t){return t.getMinutes()}))),h=u,f=(u.range,o((function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-6e4*t.getMinutes())}),(function(t,e){t.setTime(+t+36e5*e)}),(function(t,e){return(e-t)/36e5}),(function(t){return t.getHours()}))),d=f,p=(f.range,o((function(t){t.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+e)}),(function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/864e5}),(function(t){return t.getDate()-1}))),g=p;p.range;function m(t){return o((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/6048e5}))}var y=m(0),_=m(1),v=m(2),b=m(3),x=m(4),w=m(5),E=m(6),S=(y.range,_.range,v.range,b.range,x.range,w.range,E.range,o((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()}))),C=S,A=(S.range,o((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()})));A.every=function(t){return isFinite(t=Math.floor(t))&&t>0?o((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null};var I=A,T=(A.range,o((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+6e4*e)}),(function(t,e){return(e-t)/6e4}),(function(t){return t.getUTCMinutes()}))),M=T,F=(T.range,o((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+36e5*e)}),(function(t,e){return(e-t)/36e5}),(function(t){return t.getUTCHours()}))),B=F,L=(F.range,o((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/864e5}),(function(t){return t.getUTCDate()-1}
21))),O=L;L.range;function U(t){return o((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/6048e5}))}var k=U(0),P=U(1),D=U(2),R=U(3),j=U(4),z=U(5),Q=U(6),N=(k.range,P.range,D.range,R.range,j.range,z.range,Q.range,o((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()}))),V=N,G=(N.range,o((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()})));G.every=function(t){return isFinite(t=Math.floor(t))&&t>0?o((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null};var H=G;G.range},,function(t,e,n){"use strict";function r(t,e){if(!t)throw new Error(e||"luma.gl: assertion failed.")}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"d",(function(){return o})),n.d(e,"c",(function(){return s})),n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return i}));var r,i,o=window.Thinknum.MAP_SUPPORTED_DATASETS,s=window.Thinknum.MAP_DEFAULT_DATASETS;!function(t){t.Table="table",t.Map="map",t.Chart="charts",t.Heatmap="heatmap"}(r||(r={})),function(t){t.ADD_DATASET_QUERY="Router - Add Dataset Query",t.REMOVE_DATASET_QUERY="Router - Remove Dataset Query",t.SELECT_DATASET_QUERY="Router - Select Dataset Query",t.ADD_DATASET_QUERY_COMPANIES="Router - Add Dataset Query Companies",t.REMOVE_DATASET_QUERY_COMPANY="Router - Remove Dataset Query Company",t.SET_DATASET_QUERY_COMPANIES="Router - Set Dataset Query Companies",t.CLEAR_DATASET_QUERY_COMPANIES="Router - Clear Dataset Query Companies",t.ADD_DATASET_QUERY_ENTITY="Router - Add Dataset Query Entity",t.REMOVE_DATASET_QUERY_ENTITY="Router - Remove Dataset Query Entity",t.UPDATE_DATASET_QUERY_ENTITY="Router - Update Dataset Query Entity",t.SWITCH_ROOT_FILTER_MATCH="Router - Switch Root Filter Match",t.ADD_ROOT_FILTER_FILTER_CONDITION="Router - Add Root Filter Condition",t.REMOVE_ROOT_FILTER_FILTER_CONDITION="Router - Remove Root Filter Condition",t.UPDATE_ROOT_FILTER_FILTER_CONDITION="Router - Update Root Filter Condition",t.SWITCH_TO_TABLE_FILTERING="Router - Switch To Table While Filtering By",t.ADD_DATASET_QUERY_FUNCTION="Router - Add Dataset Query Function",t.REMOVE_DATASET_QUERY_FUNCTION="Router - Remove Dataset Query Function",t.UPDATE_DATASET_QUERY_FUNCTION="Router - Update Dataset Query Function",t.ADD_WHITESPACE="Router - Add Whitespace",t.REMOVE_WHITESPACE="Router - Remove Whitespace",t.UPDATE_WHITESPACE="Router - Update Whitespace",t.SET_SORTS="Router - Set Sorts",t.SET="Router - Set Dataset Queries",t.SET_ALL="Router - Set All",t.CLEAR="Router - Clear",t.SET_EXTRA_OPTIONS="Router - Set Extra Options",t.BROWSE_CHARTS="Router - Browse Charts",t.OPEN_CUSTOM_CHART="Router - Open Custom Chart",t.BROWSE_HEATMAPS="Router - Browse Heatmaps",t.OPEN_CUSTOM_HEATMAP="Router - Open Custom Heatmap",t.SET_SCREENER_CONFIG="Router - Set Screener Config",t.REMOVE_SCREENER_CONFIG="Router - Remove Screener Config"}(i||(i={}))},,function(t,e,n){"use strict";n.d(e,"a",(function(){return _})),n.d(e,"f",(function(){return w})),n.d(e,"d",(function(){return I})),n.d(e,"e",(function(){return k})),n.d(e,"c",(function(){return N})),n.d(e,"b",(function(){return $}));var r=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t};function i(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function o(){}var s="\\s*([+-]?\\d+)\\s*",a="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",c="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",l=/^#([0-9a-f]{3})$/,u=/^#([0-9a-f]{6})$/,h=new RegExp("^rgb\\("+[s,s,s]+"\\)$"),f=new RegExp("^rgb\\("+[c,c,c]+"\\)$"),d=new RegExp("^rgba\\("+[s,s,s,a]+"\\)$"),p=new RegExp("^rgba\\("+[c,c,c,a]+"\\)$"),g=new RegExp("^hsl\\("+[a,c,c]+"\\)$"),m=new RegExp("^hsla\\("+[a,c,c,a]+"\\)$"),y={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function _(t){var e;return t=(t+"").trim().toLowerCase(),(e=l.exec(t))?new E((e=parseInt(e[1],16))>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):(e=u.exec(t))?v(parseInt(e[1],16)):(e=h.exec(t))?new E(e[1],e[2],e[3],1):(e=f.exec(t))?new E(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=d.exec(t))?b(e[1],e[2],e[3],e[4]):(e=p.exec(t))?b(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=g.exec(t))?C(e[1],e[2]/100,e[3]/100,1):(e=m.exec(t))?C(e[1],e[2]/100,e[3]/100,e[4]):y.hasOwnProperty(t)?v(y[t]):"transparent"===t?new E(NaN,NaN,NaN,0):null}function v(t){return new E(t>>16&255,t>>8&255,255&t,1)}function b(t,e,n,r){return r<=0&&(t=e=n=NaN),new E(t,e,n,r)}function x(t){return t instanceof o||(t=_(t)),t?new E((t=t.rgb()).r,t.g,t.b,t.opacity):new E}function w(t,e,n,r){return 1===arguments.length?x(t):new E(t,e,n,null==r?1:r)}function E(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function S(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function C(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new T(t,e,n,r)}function A(t){if(t instanceof T)return new T(t.h,t.s,t.l,t.opacity);if(t instanceof o||(t=_(t)),!t)return new T;if(t instanceof T)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),s=Math.max(e,n,r),a=NaN,c=s-i,l=(s+i)/2;return c?(a=e===s?(n-r)/c+6*(n<r):n===s?(r-e)/c+2:(e-n)/c+4,c/=l<.5?s+i:2-s-i,a*=60):c=l>0&&l<1?0:a,new T(a,c,l,t.opacity)}function I(t,e,n,r){return 1===arguments.length?A(t):new T(t,e,n,null==r?1:r)}function T(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function M(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}r(o,_,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),r(E,w,i(o,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new E(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new E(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},hex:function(){return"#"+S(this.r)+S(this.g)+S(this.b)},toString:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||
210))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}})),r(T,I,i(o,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new T(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new T(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new E(M(t>=240?t-240:t+120,i,r),M(t,i,r),M(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var F=Math.PI/180,B=180/Math.PI,L=6/29,O=3*L*L;function U(t){if(t instanceof P)return new P(t.l,t.a,t.b,t.opacity);if(t instanceof V){if(isNaN(t.h))return new P(t.l,0,0,t.opacity);var e=t.h*F;return new P(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}t instanceof E||(t=x(t));var n,r,i=z(t.r),o=z(t.g),s=z(t.b),a=D((.2225045*i+.7168786*o+.0606169*s)/1);return i===o&&o===s?n=r=a:(n=D((.4360747*i+.3850649*o+.1430804*s)/.96422),r=D((.0139322*i+.0971045*o+.7141733*s)/.82521)),new P(116*a-16,500*(n-a),200*(a-r),t.opacity)}function k(t,e,n,r){return 1===arguments.length?U(t):new P(t,e,n,null==r?1:r)}function P(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function D(t){return t>.008856451679035631?Math.pow(t,1/3):t/O+4/29}function R(t){return t>L?t*t*t:O*(t-4/29)}
21function j(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function z(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Q(t){if(t instanceof V)return new V(t.h,t.c,t.l,t.opacity);if(t instanceof P||(t=U(t)),0===t.a&&0===t.b)return new V(NaN,0,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*B;return new V(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function N(t,e,n,r){return 1===arguments.length?Q(t):new V(t,e,n,null==r?1:r)}function V(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}r(P,k,i(o,{brighter:function(t){return new P(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new P(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return new E(j(3.1338561*(e=.96422*R(e))-1.6168667*(t=1*R(t))-.4906146*(n=.82521*R(n))),j(-.9787684*e+1.9161415*t+.033454*n),j(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}})),r(V,N,i(o,{brighter:function(t){return new V(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new V(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return U(this).rgb()}}));var G=-.14861,H=1.78277,Z=-.29227,W=-.90649,X=1.97294,Y=X*W,q=X*H,K=H*Z-W*G;function J(t){if(t instanceof tt)return new tt(t.h,t.s,t.l,t.opacity);t instanceof E||(t=x(t));var e=t.r/255,n=t.g/255,r=t.b/255,i=(K*r+Y*e-q*n)/(K+Y-q),o=r-i,s=(X*(n-i)-Z*o)/W,a=Math.sqrt(s*s+o*o)/(X*i*(1-i)),c=a?Math.atan2(s,o)*B-120:NaN;return new tt(c<0?c+360:c,a,i,t.opacity)}function $(t,e,n,r){return 1===arguments.length?J(t):new tt(t,e,n,null==r?1:r)}function tt(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}r(tt,$,i(o,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new tt(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new tt(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*F,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),i=Math.sin(t);return new E(255*(e+n*(G*r+H*i)),255*(e+n*(Z*r+W*i)),255*(e+n*(X*r)),this.opacity)}}))},function(t,e,n){"use strict";(function(t,r,i){n.d(e,"i",(function(){return s})),n.d(e,"f",(function(){return c})),n.d(e,"m",(function(){return l})),n.d(e,"k",(function(){return u})),n.d(e,"d",(function(){return h})),n.d(e,"c",(function(){return f})),n.d(e,"b",(function(){return d})),n.d(e,"a",(function(){return p})),n.d(e,"g",(function(){return g})),n.d(e,"h",(function(){return m})),n.d(e,"l",(function(){return w})),n.d(e,"j",(function(){return E})),n.d(e,"e",(function(){return S}));var o=n(40);n(218);function s(){return"[object process]"===Object.prototype.toString.call(void 0!==t?t:0)}var a={};function c(){return s()?r:"undefined"!=typeof window?window:"undefined"!=typeof self?self:a}function l(){var t=c(),e=t.crypto||t.msCrypto;if(void 0!==e&&e.getRandomValues){var n=new Uint16Array(8);e.getRandomValues(n),n[3]=4095&n[3]|16384,n[4]=16383&n[4]|32768;var r=function(t){for(var e=t.toString(16);e.length<4;)e="0"+e;return e};return r(n[0])+r(n[1])+r(n[2])+r(n[3])+r(n[4])+r(n[5])+r(n[6])+r(n[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}))}function u(t){if(!t)return{};var e=t.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};var n=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],relative:e[5]+n+r}}function h(t){if(t.message)return t.message;if(t.exception&&t.exception.values&&t.exception.values[0]){var e=t.exception.values[0];return e.type&&e.value?e.type+": "+e.value:e.type||e.value||t.event_id||"<unknown>"}return t.event_id||"<unknown>"}function f(t){var e=c();if(!("console"in e))return t();var n=e.console,r={};["debug","info","warn","error","log","assert"].forEach((function(t){t in e.console&&n[t].__sentry_original__&&(r[t]=n[t],n[t]=n[t].__sentry_original__)}));var i=t();return Object.keys(r).forEach((function(t){n[t]=r[t]})),i}function d(t,e,n){t.exception=t.exception||{},t.exception.values=t.exception.values||[],t.exception.values[0]=t.exception.values[0]||{},t.exception.values[0].value=t.exception.values[0].value||e||"",t.exception.values[0].type=t.exception.values[0].type||n||"Error"}function p(t,e){void 0===e&&(e={});try{t.exception.values[0].mechanism=t.exception.values[0].mechanism||{},Object.keys(e).forEach((function(n){t.exception.values[0].mechanism[n]=e[n]}))}catch(t){}}function g(){try{return document.location.href}catch(t){return""}}function m(t){try{for(var e=t,n=[],r=0,i=0,o=" > ".length,s=void 0;e&&r++<5&&!("html"===(s=y(e))||r>1&&i+n.length*o+s.length>=80);)n.push(s),i+=s.length,e=e.parentNode;return n.reverse().join(" > ")}catch(t){return"<unknown>"}}function y(t){var e,n,r,i,s,a=t,c=[];if(!a||!a.tagName)return"";if(c.push(a.tagName.toLowerCase()),a.id&&c.push("#"+a.id),(e=a.className)&&Object(o.k)(e))for(n=e.split(/\s+/),s=0;s<n.length;s++)c.push("."+n[s]);var l=["type","name","title","alt"];for(s=0;s<l.length;
21s++)r=l[s],(i=a.getAttribute(r))&&c.push("["+r+'="'+i+'"]');return c.join("")}var _=Date.now(),v=0,b={now:function(){var t=Date.now()-_;return t<v&&(t=v),v=t,t},timeOrigin:_},x=function(){if(s())try{return(t="perf_hooks",i.require(t)).performance}catch(t){return b}var t;return c().performance&&void 0===performance.timeOrigin&&(performance.timeOrigin=performance.timing&&performance.timing.navigationStart||_),c().performance||b}();function w(){return(x.timeOrigin+x.now())/1e3}function E(t,e){if(!e)return 6e4;var n=parseInt(""+e,10);if(!isNaN(n))return 1e3*n;var r=Date.parse(""+e);return isNaN(r)?6e4:r-t}function S(t){try{return t&&"function"==typeof t&&t.name||"<anonymous>"}catch(t){return"<anonymous>"}}}).call(this,n(297),n(121),n(439)(t))},function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"a",(function(){return r}))},function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||function(){return this}()||Function("return this")()}).call(this,n(121))},,,function(t,e,n){var r;window,r=function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){t.VERTICAL="vertical",t.HORIZONTAL="horizontal"}(e.ChartOrientation||(e.ChartOrientation={})),function(t){t.LINE="line",t.BAR="bar",t.HISTOGRAM="histogram",t.PIE="pie",t.MAP="map",t.SCATTERPLOT="scatterplot"}(e.ChartType||(e.ChartType={})),function(t){t.ROUNDED="rounded",t.EDGY="edgy"}(e.RoundingStyle||(e.RoundingStyle={}));var r=n(1);e.BarChart=r.BarChart;var i=n(54);e.Chart=i.Chart;var o=n(59);e.createLegendBuckets=o.createLegendBuckets;var s=n(60);e.LineChart=s.LineChart;var a=n(72);e.MapChart=a.MapChart;var c=n(79);e.PieChart=c.PieChart;var l=n(85);e.HistogramChart=l.HistogramChart;var u=n(91);e.ScatterplotChart=u.ScatterplotChart},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(2),s=n(12),a=n(50),c=n(52),l=n(54),u=n(57),h=n(58),f=n(14),d=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.div.classed(f[e.orientation],!0),i.leftAxis=new u.LeftAxis(i.state),i.leftAxis.create(i.mainGroup.append("g")),i.bottomAxis=new c.BottomAxis(i.state),i.bottomAxis.create(i.mainGroup.append("g")),i.barLayer=new a.BarLayer(i.state),i.barLayer.create(i.mainGroup.append("g")),i.barLayer.onCategoryMouseEnter=function(t,e){i.tooltip.showForCategory(t,e)},i.barLayer.onCategoryMouseMove=function(t,e){i.tooltip.moveTo(t,e)},i.barLayer.onCategoryMouseLeave=function(t){i.tooltip.hide()},i.barLayer.onCategoryClick=function(t,e,n){var r=i.state.onCategoryClicked;r&&r(t,e,n)},i.legend=new h.Legend(i.state),i.legend.create(i.legendRow.append("div")),i.tooltip=new s.BarChartTooltip(i.state),i.tooltip.create(i.mainGroup.append("g")),i}return i(e,t),e.prototype.createState=function(t){return new o.BarChartState(t,this.getOuterSize())},e.prototype.update=function(){t.prototype.update.call(this),this.div.classed(f.mobile,this.state.isMobile);var e=this.mainGroup.node(),n=null!==e?e.getBoundingClientRect():void 0;void 0!==n&&0===n.width&&0===n.height||(this.state.updateScales(),this.leftAxis.update(),this.bottomAxis.update(),this.legend.update(),this.barLayer.update(
21))},e}(l.Chart);e.BarChart=d},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(3),s=n(4),a=n(0),c=n(5),l=n(10),u=n(10),h=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.onCategoryClicked=e.onCategoryClicked,r.setBarChartConfig(e,n),r}return i(e,t),e.prototype.updateConfig=function(e,n){t.prototype.updateConfig.call(this,e,n),this.setBarChartConfig(e,n)},e.prototype.setBarChartConfig=function(t,e){this.orientation=t.orientation,this.series=t.series,this.axesConfig=t.axesConfig,this.createScales()},Object.defineProperty(e.prototype,"isMobile",{get:function(){return this.outerSize.width<400},enumerable:!0,configurable:!0}),e.prototype.createScales=function(){this.valueScale=this.createValueScale(this.series,this.getValueRange());var t=this.getCategories();this.categoryScale0=o.scaleBand().paddingInner(.1).domain(t.map((function(t){return t.key})));var e=this.series.map((function(t){return t.title}));this.categoryScale1=o.scaleBand().padding(.05).domain(e),this.updateScales()},e.prototype.getCategories=function(){var t=[],e={};return this.series.forEach((function(n,r){n.data.forEach((function(n){e[n.category]||(e[n.category]={values:[],colors:[]}),e[n.category].values[r]=n.value,e[n.category].colors[r]=n.color,t.push(n.category)}))})),s.default(t).map((function(t){return{key:t,values:e[t].values,colors:e[t].colors}}))},e.prototype.updateScales=function(){this.valueScale.rangeRound(this.getValueRange()),this.categoryScale0.rangeRound(this.getCategoryRange()),this.categoryScale1.rangeRound([0,this.categoryScale0.bandwidth()])},e.prototype.getLeftAxisScale=function(){return this.orientation===a.ChartOrientation.HORIZONTAL?this.categoryScale0:this.valueScale},e.prototype.getBottomAxisScale=function(){return this.orientation===a.ChartOrientation.HORIZONTAL?this.valueScale:this.categoryScale0},e.prototype.getLeftAxisFormatter=function(){var t,e;return this.orientation===a.ChartOrientation.HORIZONTAL?this.getStringFormatter():(null===(e=null===(t=this.axesConfig)||void 0===t?void 0:t.primary)||void 0===e?void 0:e.usePercent)?u.formatPercentage:u.formatNatural},e.prototype.getStringFormatter=function(){var t=this.theme;return t&&t.axisTextFontWeight&&t.axisTextFontWeight>400?l.formatBoldString:l.formatString},e.prototype.getBottomAxisFormatter=function(){var t,e;if(this.orientation===a.ChartOrientation.HORIZONTAL)return(null===(e=null===(t=this.axesConfig)||void 0===t?void 0:t.primary)||void 0===e?void 0:e.usePercent)?u.formatPercentage:u.formatNatural},e.prototype.getCategoryRange=function(){var t=this.orientation===a.ChartOrientation.HORIZONTAL,e=this.getInnerSize();return t?[0,e.height]:[0,e.width]},e.prototype.getValueRange=function(){var t=this.orientation===a.ChartOrientation.HORIZONTAL,e=this.getInnerSize();return t?[0,e.width]:[e.height,0]},e}(c.ChartState);e.BarChartState=h},function(t,e){t.exports=n(92)},function(t,e){t.exports=n(183)},function(t,e,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=n(6),o=n(3),s=n(7),a=n(8),c=n(9),l=n(0),u=n(10),h=function(){function t(t,e){this.orientation=l.ChartOrientation.VERTICAL,this.setBaseChartConfig(t,e)}return t.prototype.updateConfig=function(t,e){this.setBaseChartConfig(t,e)},t.prototype.setBaseChartConfig=function(t,e){this.title=t.title,this.url=t.url,this.type=t.type,this.sourceLink=void 0===t.wantsSourceLink||t.wantsSourceLink,this.outerSize=e,this.userSize=t.size||{},this.forceCompact=!!t.wantsCompact,this.wantsAxis=!1!==t.wantsAxis,this.legend=void 0===t.wantsLegend||t.wantsLegend,this.forcedDomain=t.domain,this.theme=t.theme,this.isCompact?this.formatValue=u.formatNaturalCompact:this.formatValue=u.formatNatural,this.margin=r({top:this.isCompact?10:80,right:this.isCompact?10:35,bottom:this.isCompact?10:18,left:this.isCompact?10:60},c.default(t.margin||{},a.default)),!this.wantsAxis||this.type!==l.ChartType.BAR&&this.type!==l.ChartType.LINE||(this.margin.bottom=this.margin.bottom+18)},t.prototype.getOuterSize=function(){var t=this.outerSize.width,e=this.outerSize.height,n=this.userSize.width,r=this.userSize.height;return{width:void 0!==n?n:t,height:void 0!==r?r:e}},t.prototype.getInnerSize=function(){var t=this.getOuterSize(),e=t.width,n=t.height,r=this.margin,i=r.top,o=r.right,s=r.bottom;return{width:e-(r.left+o),height:n-(i+s)}},Object.defineProperty(t.prototype,"isCompact",{get:function(){return!!this.forceCompact||this.outerSize.width<270},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isMobile",{get:function(){return this.outerSize.width<400},enumerable:!0,configurable:!0}),t.prototype.toggleSeriesAt=function(t){this.series=this.series.map((function(e,n){return n===t?r(r({},e),{isDisabled:!e.isDisabled}):e})),this.onChange&&this.onChange()},t.prototype.createValueScale=function(t,e,n){var r=this.createDomain(t,n),i=o.scaleLinear().rangeRound(e).domain(r);return this.extendScaleIfNeeded(i)},t.prototype.createDomain=function(t,e){var n,r,o=s.default(t.map((function(t){return t.data.map((function(t){return t.value}))}))),a=this.forcedDomain;return n=a&&void 0!==a.min?a.min:i.min(o),r=a&&void 0!==a.max?a.max:i.max(o),void 0===n||void 0===r?[0,0]:e?[r,n]:[n,r]},t.prototype.extendScaleIfNeeded=function(t){var e=this.getValueAxisTickCount(),n=t.ticks(e);if(n.length>=2){var r=n[1]-n[0],i=[n[0]-r,n[n.length-1]+r];t.domain(i)}return t},t.prototype.getValueAxisTickCount=function(){var t=this.getInnerSize();return this.isCompact||t.height<140?3:5},t.prototype.getPrimarySeries=function(){return this.series.filter((function(t){return"left"===t.axis}))},t.prototype.getSecondarySeries=function(){return this.series.filter((function(t){return"right"===t.axis}))}
21,t.prototype.needsSecondaryAxis=function(){return this.getSecondarySeries().length>0},t.prototype.getPrimaryAxisColor=function(){if(this.type===l.ChartType.LINE){var t=this.getPrimarySeries(),e=this.getSecondarySeries();return 1===t.length&&1===e.length?t[0].color:void 0}},t.prototype.getSecondaryAxisColor=function(){var t=this.getPrimarySeries(),e=this.getSecondarySeries();if(1===t.length&&1===e.length)return e[0].color},t.prototype.getLeftAxisScale=function(){throw new Error("abstract method getLeftAxisScale called")},t.prototype.getRightAxisScale=function(){throw new Error("abstract method getRightAxisScale called")},t.prototype.getBottomAxisScale=function(){throw new Error("abstract method getBottomAxisScale called")},t.prototype.getLeftAxisFormatter=function(){return u.formatNatural},t.prototype.getRightAxisFormatter=function(){return u.formatNatural},t.prototype.getBottomAxisFormatter=function(){},t.prototype.isTitleVisible=function(){return!this.isCompact&&void 0!==this.title},t}();e.ChartState=h,e.orderOfMagnitude=function(t){var e=Math.floor(Math.log(t)/Math.LN10+1e-9);return Math.pow(10,e)}},function(t,e){t.exports=n(14)},function(t,e){t.exports=n(366)},function(t,e){t.exports=n(524)},function(t,e){t.exports=n(155)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(11);e.overflownLabelEnding="...",e.formatScientific=r.format(".3~s"),e.formatFloat=r.format("0.3~f"),e.formatFloatOneDecimal=r.format("0.1f"),e.formatScientificCompact=r.format(".3~s"),e.formatFloatCompact=r.format("0.4~f"),e.formatPercentage=function(t){var n=Math.floor(Math.log(t)/Math.LN10+1e-9);return t*=100,n>=2?e.formatScientific(t)+" %":e.formatFloat(t)+"%"},e.formatNatural=function(t){if(0===t)return"0";var n,r=Math.abs(t),i=t%1==0;if(r>=1e3)n=e.formatScientific(t);else if(i)n=t.toString();else if(r>=100)n=e.formatFloatOneDecimal(t);else{if(!(r>=1))return e.formatFloat(t);n=e.formatFloatCompact(t)}return n.replace(/G$/,"Bn")},e.formatNaturalCompact=function(t){if(0===t)return"0";var n=Math.abs(t),r=t%1==0;return(n>=1e3?e.formatScientificCompact(t):r?t.toString():n>=100?e.formatFloatOneDecimal(t):e.formatFloatCompact(t)).replace(/G$/,"Bn")};var i=function(t,n){return t.length<=n?t:t.substring(0,n-2)+e.overflownLabelEnding};e.formatString=function(t){return i(t,24)},e.formatBoldString=function(t){return i(t,20)}},function(t,e){t.exports=n(66)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(10),i=n(0),o=n(13),s=n(14),a=function(){function t(t){var e=this;this.create=function(t){e.g=t,e.g.attr("class",s.BarChartTooltip),e.bubble=new o.TooltipBubble(e.state)},this.update=function(){},this.state=t}return t.prototype.showForCategory=function(t,e){var n=this,o=this.state,s=o.series,a=o.orientation,c=o.axesConfig,l=e.x,u=e.y,h=a===i.ChartOrientation.HORIZONTAL,f=this.state.getCategories()[t],d=f.key,p=s.map((function(t,e){var i,o=t.color,s=f.values[e],a=f.colors[e]||o;return{value:void 0!==s?(null===(i=null==c?void 0:c.primary)||void 0===i?void 0:i.usePercent)?r.formatPercentage(s):n.state.formatValue(s):"N/A",color:a}}));this.bubble.setLabels(d,p);var g=h&&t>0,m=this.getYPosition(t,u,g),y=this.getAlign(h,t);this.bubble.show(),this.bubble.setAbsolutePosition({x:l,y:m,width:160,align:y})},t.prototype.moveTo=function(t,e){var n=this.state.orientation===i.ChartOrientation.HORIZONTAL,r=n&&t>0,o=e.x,s=this.getYPosition(t,e.y,r),a=this.getAlign(n,t);this.bubble.setAbsolutePosition({x:o,y:s,width:160,align:a})},t.prototype.getAlign=function(t,e){return t?e<3?o.TooltipAlign.TOP:o.TooltipAlign.BOTTOM:o.TooltipAlign.CENTER_ON_MOUSE},t.prototype.getYPosition=function(t,e,n){var r,o=this.state,s=o.categoryScale0,a=o.categoryScale1,c=(o.orientation,this.state.orientation===i.ChartOrientation.HORIZONTAL),l=this.state.getCategories()[t].key;return c?(r=s(l),n||(r+=a.bandwidth())):r=e,r},t.prototype.hide=function(){this.bubble.hide()},t}();e.BarChartTooltip=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(14),o={Argentina:n(19),Australia:n(20),Belgium:n(21),Brazil:n(22),Canada:n(23),Chile:n(24),China:n(25),Colombia:n(26),Egypt:n(27),France:n(28),Germany:n(29),India:n(30),Indonesia:n(31),Italy:n(32),Mexico:n(33),Netherlands:n(34),Nigeria:n(35),Pakistan:n(36),Peru:n(37),Poland:n(38),Portugal:n(39),Russia:n(40),"South Africa":n(41),Spain:n(42),Sweden:n(43),Turkey:n(44),Ukraine:n(45),"United Arab Emirates":n(46),England:n(47),USA:n(48),Venezuela:n(49)};!function(t){t.TOP="TOP",t.BOTTOM="BOTTOM",t.CENTER_ON_MOUSE="CENTER_ON_MOUSE"}(r=e.TooltipAlign||(e.TooltipAlign={}));var s=function(){function t(t){this.state=t;var e=this.state.theme;this.bubble=this.state.container.append("div").classed(i["common-tooltip-bubble"],!0).classed(i["tooltip-bubble"],!0),e&&e.roundingStyle&&this.bubble.classed(i[e.roundingStyle],!0),this.keyLabel=this.bubble.append("div").attr("class",i["key-label"]),this.keyLabel.append("span").attr("class",i.label),this.keyLabel.append("span").attr("class",i.flag)}return t.prototype.show=function(){this.bubble.style("display","block")},t.prototype.hide=function(){this.bubble.style("display","none")},t.prototype.setPosition=function(t){var e=t.x,n=t.y,r=t.width,i=t.noAdjust,o=this.state.margin,s=this.state.getOuterSize();void 0===r&&(r=120),i||(n+=o.top,e+=o.left);var a=e-r/2+o.left-10,c=s.width-e-r-o.right-10,l=i?0:this.getAdjust(a,c);this.bubble.style("transform","translate("+(e+l)+"px, "+n+"px)").style("width",(function(){return void 0!==r?r+"px":null}))},t.prototype.setAbsolutePosition=function(t){var e=t.x,n=t.y,i=t.width,o=t.align,s=this.state.margin,a=this.state.getOuterSize();void 0===i&&(i=120),o===r.BOTTOM?n=a.height-n-5:o===r.TOP&&(n+=s.top+10);var c=(e+=s.left)-i/2+s.left,l=a.width-e-i-s.right,u=o===r.CENTER_ON_MOUSE?0:this.getAdjust(c,l);this.bubble.style("left",e+u+"px").style("bottom",n+"px").style("top","initial").style("max-width",(function(){return void 0!==i?i+"px":null})),o===r.BOTTOM?this.bubble.style("bottom",n+"px").style("top","initial"):this.bubble.style("bottom","initial").style("top",n+"px"),o===r.CENTER_ON_MOUSE?this.bubble.style("transform","translate(-50%, -100%)"):this.bubble.style("transform","translateX(-50%)")},t.prototype.getAdjust=function(t,e){return t<0?-1*t:e<0?e:0},t.prototype.setLabels=function(t,e){this.keyLabel.select("span."+i.label).text(t);var n=o[t];n?this.keyLabel.select("span."+i.flag).html(n):this.keyLabel.select("span."+i.flag).text("");var r=e.filter((function(t){return void 0===t.axis||"left"===t.axis})),s=e.filter((function(t){return"right"===t.axis})),a=r.length>0&&s.length>0?[{label:"Left Axis-y",items:r},{label:"Right Axis-y",items:s}]:[{label:void 0,items:e}],c=this.bubble.selectAll("div."+i["values-section"]).data(a),l=c.enter().append("div").attr("class",i["values-section"]);l.append("span").attr("class",i.sectionTitle);var u=l.merge(c);u.select("span."+i.sectionTitle).text((function(t){return t.label||""})).classed(i.hidden,(function(t){return void 0===t.label}
21)),this.setupSectionItems(u),c.exit().remove()},t.prototype.setupSectionItems=function(t){var e=t.selectAll("div."+i["value-label"]).data((function(t){return t.items})),n=e.enter().append("div").attr("class",i["value-label"]);n.append("span").attr("class",i.color),n.append("span").attr("class",i.value),n.append("span").attr("class",i.label);var r=n.merge(e);r.select("span."+i.value).text((function(t){return t.label?"right"===t.axis?" "+t.value:t.value+" -":t.value})),r.select("span."+i.label).text((function(t){return t.label||""})),r.select("span."+i.color).style("display",(function(t){return t.color?"inline-block":"none"})).style("background",(function(t){return t.color||"transparent"})),e.exit().remove()},t}();e.TooltipBubble=s},function(t,e,n){var r=n(15);"string"==typeof r&&(r=[[t.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n(17)(r,i),r.locals&&(t.exports=r.locals)},function(t,e,n){(e=t.exports=n(16)(!1)).push([t.i,'.chart_25sG- {\n height: 100%;\n font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;\n display: flex;\n flex-direction: column;\n position: relative;\n}\n.chart_25sG- svg {\n flex-grow: 1;\n flex-shrink: 1;\n border: 1px solid #e9f0f5;\n border-radius: 3px;\n width: 100%;\n height: 100%;\n}\n.chart_25sG- svg text {\n fill: #8da0b8;\n font-size: 12px;\n font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;\n}\n.chart_25sG- svg path.domain, .chart_25sG- svg g.tick line {\n stroke: #e9f0f5;\n}\n.chart_25sG- svg path.line_3TvKP {\n fill: none;\n stroke-linejoin: round;\n stroke-linecap: round;\n stroke-width: 2;\n}\n.chart_25sG- svg path.area_1oIKW {\n opacity: 0.04;\n}\n.chart_25sG- svg line.horizontalLine_3y-MF {\n stroke: #b4c8d3;\n stroke-width: 1px;\n stroke-dasharray: 2, 2;\n}\n.chart_25sG- svg .hover-capture-rect_IU3IP {\n fill: transparent;\n}\n.chart_25sG- svg .BarLayer_398wJ {\n background: default;\n}\n.chart_25sG- svg .BarLayer_398wJ .clickable_1xAZK {\n cursor: pointer;\n}\n.chart_25sG- svg .LineLayer_2kC_F {\n background: default;\n pointer-events: none;\n}\n.chart_25sG- svg .DotsLayer_1ehd2 .verticalLines_1npZW {\n pointer-events: none;\n}\n.chart_25sG- svg .PieLayer_3njam {\n background: default;\n}\n.chart_25sG- svg .PieLayer_3njam .slice {\n transition: 0.2s opacity;\n}\n.chart_25sG- svg .PieLayer_3njam .slice.clickable {\n cursor: pointer;\n}\n.chart_25sG- svg .PieLayer_3njam .slice:not(.expanded).hover, .chart_25sG- svg .PieLayer_3njam .slice:not(.expanded):hover {\n opacity: 0.75;\n}\n.chart_25sG- svg .PieLayer_3njam .centerLabels {\n -webkit-touch-callout: none;\n /* iOS Safari */\n -webkit-user-select: none;\n /* Chrome/Safari/Opera */\n -khtml-user-select: none;\n /* Konqueror */\n -moz-user-select: none;\n /* Firefox */\n -ms-user-select: none;\n /* Internet Explorer/Edge */\n user-select: none;\n}\n.chart_25sG- svg .PieLayer_3njam .centerLabels.onlyValueLabel > div {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.chart_25sG- svg .PieLayer_3njam .centerLabels.onlyValueLabel > div div.valueContainer {\n height: initial;\n}\n.chart_25sG- svg .PieLayer_3njam .centerLabels.onlyValueLabel > div div.valueContainer span.valueLabel {\n font-size: 18px;\n margin-bottom: 0;\n}\n.chart_25sG- svg .PieLayer_3njam .centerLabels.onlyValueLabel > div p.categoryLabel {\n display: none;\n}\n.chart_25sG- svg .PieLayer_3njam .centerLabels > div {\n width: 100%;\n height: 100%;\n color: #000;\n text-align: center;\n}\n.chart_25sG- svg .PieLayer_3njam .centerLabels div.valueContainer {\n height: 50%;\n display: flex;\n align-items: flex-end;\n justify-content: center;\n}\n.chart_25sG- svg .PieLayer_3njam .centerLabels div.valueContainer span.valueLabel {\n font-size: 38px;\n font-weight: 900;\n margin: 0;\n padding: 0;\n margin-bottom: -4px;\n}\n.chart_25sG- svg .PieLayer_3njam .centerLabels p.categoryLabel {\n text-align: center;\n font-size: 17px;\n line-height: 22px;\n font-weight: 500;\n margin: 0 5px;\n color: #778fa9;\n}\n.chart_25sG- svg .PieLayer_3njam.edgy_2zvsC .centerLabels span.valueLabel {\n font-size: 36px;\n font-weight: 800;\n}\n.chart_25sG- svg .PieLayer_3njam.edgy_2zvsC .centerLabels p.categoryLabel {\n font-weight: 600;\n font-size: 16px;\n line-height: 19px;\n color: #000;\n}\n.chart_25sG- svg .ScatterplotLayer_3ZulB {\n /*! keep */\n}\n.chart_25sG- svg .hover_2lbiM {\n fill: transparent;\n pointer-events: none;\n}\n.chart_25sG- svg .hover-circles_3DZn9 {\n fill: transparent;\n}\n.chart_25sG- svg .hover-circles_3DZn9 circle {\n stroke-width: 1px;\n}\n.chart_25sG- svg .hover-line_1Pfs1 {\n stroke: #e5ebef;\n stroke-width: 1px;\n transform: translate(0.5px, 0px);\n}\n.chart_25sG- .title_3vI8i text {\n fill: #2a3744;\n font-size: 18px;\n font-weight: 600;\n}\n.chart_25sG- .map-legend_2qDj0 text {\n fill: #2a3744;\n font-size: 11px;\n font-weight: 600;\n}\n.chart_25sG- .map-legend_2qDj0 text.title_3vI8i {\n font-size: 12px;\n}\n.chart_25sG- .countries_2J8_j {\n cursor: default;\n}\n.chart_25sG- .countries_2J8_j path {\n cursor: default;\n}\n.chart_25sG- circle.value-label-circle_3tEc8 {\n stroke: none;\n}\n.chart_25sG- .legend-row_3MlMC {\n padding: 10px 10px 10px 12px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n line-height: 1.5;\n border-top: 1px solid #e9f0f5;\n}\n.chart_25sG-.mobile_1W3VX .legend-row_3MlMC {\n flex-direction: column;\n align-items: center;\n}\n.chart_25sG-.mobile_1W3VX .legend-row_3MlMC .legend_2ugI1 {\n margin-bottom: 20px;\n}\n.chart_25sG-.mobile_1W3VX .legend-row_3MlMC.edgy_2zvsC .source-link_lvQLp span {\n font-size: 12px;\n display: block;\n margin-bottom: 10px;\n}\n.chart_25sG- .source-link_lvQLp {\n font-size: 12px;\n color: #acbed4;\n font-weight: 400;\n font-style: italic;\n flex-shrink: 0;\n margin-right: 16px;\n}\n.chart_25sG- .source-link_lvQLp a {\n color: #0055de;\n font-weight: 600;\n text-decoration: none;\n}\n.chart_25sG- .legend_2ugI1 {\n line-height: 2;\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n}\n.chart_25sG- .legend_2ugI1 .legend-item_26ve- {\n min-height: 26p
21x;\n margin-right: 15px;\n user-select: none;\n cursor: pointer;\n display: flex;\n align-items: center;\n}\n.chart_25sG- .legend_2ugI1 .legend-item_26ve-:not(.disabled_2RadA) span:hover {\n opacity: 0.75;\n}\n.chart_25sG- .legend_2ugI1 .legend-item_26ve-:not(.disabled_2RadA) i:hover {\n border-color: #d0dde6;\n}\n.chart_25sG- .legend_2ugI1 .legend-item_26ve-.disabled_2RadA i small {\n background: red;\n}\n.chart_25sG- .legend_2ugI1 .legend-item_26ve-.disabled_2RadA span {\n color: #abc4d3;\n}\n.chart_25sG- .legend_2ugI1 .legend-item_26ve-.no-text_Tci88 i {\n margin-right: 0;\n}\n.chart_25sG- .legend_2ugI1 .legend-item_26ve-:last-child {\n margin-right: 0;\n}\n.chart_25sG- .legend_2ugI1 .legend-item_26ve- i, .chart_25sG- .legend_2ugI1 .legend-item_26ve- span {\n vertical-align: middle;\n}\n.chart_25sG- .legend_2ugI1 .legend-item_26ve- i {\n display: inline-block;\n width: 13px;\n height: 13px;\n box-sizing: border-box;\n border-radius: 50%;\n border: 1px solid transparent;\n position: relative;\n margin-right: 4px;\n}\n.chart_25sG- .legend_2ugI1 .legend-item_26ve- i small {\n display: inline-block;\n position: absolute;\n left: 2px;\n top: 2px;\n width: 7px;\n height: 7px;\n border-radius: 50%;\n}\n.chart_25sG- .legend_2ugI1 .legend-item_26ve- span {\n color: #1d242f;\n font-size: 13px;\n font-weight: 500;\n display: inline-block;\n max-width: 220px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.chart_25sG- .legend-row_3MlMC.edgy_2zvsC {\n padding: 10px 20px 10px 20px;\n}\n.chart_25sG- .legend-row_3MlMC.edgy_2zvsC .source-link_lvQLp span {\n font-style: normal;\n font-size: 15px;\n font-weight: 500;\n color: #000000;\n}\n.chart_25sG- .legend-row_3MlMC.edgy_2zvsC .source-link_lvQLp span a {\n font-weight: 600;\n}\n.chart_25sG- .legend-row_3MlMC.edgy_2zvsC .legend_2ugI1 .legend-item_26ve- i {\n width: 18px;\n height: 18px;\n border-radius: 0;\n margin-right: 10px;\n margin-top: 2px;\n}\n.chart_25sG- .legend-row_3MlMC.edgy_2zvsC .legend_2ugI1 .legend-item_26ve- i small {\n width: 12px;\n height: 12px;\n border-radius: 0;\n}\n.chart_25sG- .legend-row_3MlMC.edgy_2zvsC .legend_2ugI1 .legend-item_26ve- span {\n font-size: 15px;\n}\n.chart_25sG- .PieLegend_23IDx > div {\n padding-left: 15px;\n padding-top: 10px;\n padding-bottom: 10px;\n overflow-y: auto;\n box-sizing: border-box;\n}\n.chart_25sG- .PieLegend_23IDx > div::-webkit-scrollbar {\n display: none;\n}\n.chart_25sG- .PieLegend_23IDx > div > div {\n user-select: none;\n display: flex;\n align-items: center;\n height: 27px;\n}\n.chart_25sG- .PieLegend_23IDx > div > div i {\n width: 14px;\n height: 14px;\n box-sizing: border-box;\n border-radius: 50%;\n border: 1px solid transparent;\n margin-right: 8px;\n flex: 0 0 14px;\n position: relative;\n}\n.chart_25sG- .PieLegend_23IDx > div > div i:hover {\n border-color: #d0dde6;\n}\n.chart_25sG- .PieLegend_23IDx > div > div i small {\n position: absolute;\n left: 1px;\n top: 1px;\n width: 10px;\n height: 10px;\n border-radius: 50%;\n}\n.chart_25sG- .PieLegend_23IDx > div > div span {\n flex: 1;\n color: #1d242f;\n font-size: 14px;\n font-weight: 500;\n max-width: 220px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n cursor: pointer;\n}\n.chart_25sG- .PieLegend_23IDx.edgy_2zvsC > div > div i {\n width: 16px;\n height: 16px;\n border-radius: 0;\n flex-basis: 16px;\n}\n.chart_25sG- .PieLegend_23IDx.edgy_2zvsC > div > div i small {\n width: 12px;\n height: 12px;\n border-radius: 0;\n}\n.chart_25sG- .BarChartTooltip_5eZ9j {\n /*! keep */\n}\n.chart_25sG- .PieChartTooltip_1fZyD {\n /*! keep */\n}\n.chart_25sG- div.common-tooltip-bubble_1azQ0 {\n display: none;\n border-radius: 4px;\n background-color: #0b0f15;\n box-shadow: 0px 2px 10px 0px rgba(21, 50, 76, 0.15);\n position: absolute;\n left: 0;\n top: 0;\n box-sizing: border-box;\n pointer-events: none;\n z-index: 1;\n}\n.chart_25sG- div.common-tooltip-bubble_1azQ0.edgy_2zvsC {\n box-shadow: none;\n border-radius: 0;\n}\n.chart_25sG- div.tooltip-bubble_2cwjB {\n font-size: 13px;\n font-weight: 400;\n color: #1d242f;\n padding: 12px 12px;\n padding-top: 5px;\n line-height: 1.7;\n}\n.chart_25sG- div.tooltip-bubble_2cwjB .key-label_3Kc2U {\n color: #fff;\n overflow: hidden;\n margin-bottom: 4px;\n font-weight: 600;\n display: flex;\n align-items: center;\n}\n.chart_25sG- div.tooltip-bubble_2cwjB .key-label_3Kc2U span {\n vertical-align: middle;\n line-height: 20px;\n margin-top: 3px;\n margin-bottom: 2px;\n}\n.chart_25sG- div.tooltip-bubble_2cwjB .key-label_3Kc2U .label_3Ypk1 {\n /*! keep */\n}\n.chart_25sG- div.tooltip-bubble_2cwjB .key-label_3Kc2U .flag_2NKqG {\n /*! keep */\n display: inline-block;\n margin-left: 5px;\n margin-bottom: -6px;\n}\n.chart_25sG- div.tooltip-bubble_2cwjB .values-section_1yuz4 {\n display: block;\n}\n.chart_25sG- div.tooltip-bubble_2cwjB .values-section_1yuz4 span.sectionTitle_1BPHl {\n font-size: 12px;\n line-height: 20px;\n color: #747a82;\n display: block;\n}\n.chart_25sG- div.tooltip-bubble_2cwjB .values-section_1yuz4 span.sectionTitle_1BPHl.hidden_2ujUG {\n display: none;\n}\n.chart_25sG- div.tooltip-bubble_2cwjB .value-label_3fc8x {\n color: #fff;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n display: flex;\n align-items: center;\n}\n.chart_25sG- div.tooltip-bubble_2cwjB .value-label_3fc8x span {\n line-height: 1.65;\n}\n.chart_25sG- div.tooltip-bubble_2cwjB .value-label_3fc8x .color_3mWio {\n /*! keep */\n display: inline-block;\n width: 8px;\n height: 8px;\n background: #00f;\n border-radius: 4px;\n margin-bottom: 0;\n margin-left: 1px;\n margin-right: 12px;\n flex-shrink: 0;\n}\n.chart_25sG- div.tooltip-bubble_2cwjB .value-label_3fc8x .value_wz2cN {\n /*! keep */\n font-weight: 600;\n margin-right: 4px;\n flex-shrink: 0;\n}\n.chart_25sG- div.tooltip-bubble_2cwjB .value-label_3fc8x .label_3Ypk1 {\n /*! keep */\n font-weight: 400;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n}\n.chart_25sG- div.tooltip-bubble_2cwjB.edgy_2zvsC .key-label_3Kc2U span {\n font-size: 16px;\n line-height: 23px;\n margin-bottom: 0;\n}\n.chart_25sG- div.tooltip-bubble_2cwjB.edgy_2zvsC .values-section_1yuz4 span {\n font-size: 13px;\n line-height: 23px;\n}\n.chart_25sG- div.tooltip-bubble_2cwjB.edgy_2zvsC .values-section_1yuz4 .value-label_3fc8x span {\n font-size: 15px;\n line-height: 34px;\n}\n.chart_25sG- div.tooltip-bubble_2cwjB.edgy_2zvsC .color_3mWio {\n border-radius: 0;\n width: 12px;\n height: 12px;\n}\n.chart_25sG- div.histogram-tooltip-bubble_3WIzO {\n padding: 6px 10px;\n transform: translate(0, -100%);\n}\n.chart_25sG- div.histogram-tooltip-bubble_3WIzO span {\n width: 100%;\n display: block;\n text-align: center;
21\n color: #fff;\n overflow: hidden;\n}\n.chart_25sG- div.histogram-tooltip-bubble_3WIzO .value-label_3fc8x span {\n font-weight: 600;\n font-size: 13px;\n line-height: 18px;\n}\n.chart_25sG- div.histogram-tooltip-bubble_3WIzO .range-label_jwL4h span {\n font-weight: 400;\n font-size: 12px;\n line-height: 16px;\n}\n.chart_25sG-.compact_3oJj8 svg {\n border: none;\n}\n.chart_25sG-.compact_3oJj8 .hover_2lbiM {\n visibility: hidden;\n}\n.chart_25sG-.compact_3oJj8 .tooltip-bubble_2cwjB {\n display: none;\n}\n.chart_25sG-.compact_3oJj8 .hover-circles_3DZn9 circle {\n stroke-width: 2px;\n}\n.chart_25sG-.compact_3oJj8 path.line_3TvKP {\n stroke-width: 2.5px;\n}\n.chart_25sG-.compact_3oJj8 path.area_1oIKW {\n visibility: hidden;\n}\n.chart_25sG-.compact_3oJj8 g.tick text {\n font-size: 11px;\n}\n\ndiv.axisTooltip_2uFxA {\n position: absolute;\n text-align: center;\n padding: 10px 15px;\n font-size: 12px;\n background-color: #0b0f15;\n color: #fff;\n border-radius: 4px;\n pointer-events: none;\n opacity: 0;\n}\ndiv.axisTooltip_2uFxA.edgy_2zvsC {\n border-radius: 0;\n font-weight: 600;\n font-size: 13px;\n transform: translate(0, -10px);\n}\n\n.HistogramLayer_14QMW rect {\n transition: 0.15s opacity;\n}\n.HistogramLayer_14QMW .faded_39ikN {\n opacity: 0.5;\n}',""]),e.locals={chart:"chart_25sG-",line:"line_3TvKP",area:"area_1oIKW",horizontalLine:"horizontalLine_3y-MF","hover-capture-rect":"hover-capture-rect_IU3IP",BarLayer:"BarLayer_398wJ",clickable:"clickable_1xAZK",LineLayer:"LineLayer_2kC_F",DotsLayer:"DotsLayer_1ehd2",verticalLines:"verticalLines_1npZW",PieLayer:"PieLayer_3njam",edgy:"edgy_2zvsC",ScatterplotLayer:"ScatterplotLayer_3ZulB",hover:"hover_2lbiM","hover-circles":"hover-circles_3DZn9","hover-line":"hover-line_1Pfs1",title:"title_3vI8i","map-legend":"map-legend_2qDj0",countries:"countries_2J8_j","value-label-circle":"value-label-circle_3tEc8","legend-row":"legend-row_3MlMC",mobile:"mobile_1W3VX",legend:"legend_2ugI1","source-link":"source-link_lvQLp","legend-item":"legend-item_26ve-",disabled:"disabled_2RadA","no-text":"no-text_Tci88",PieLegend:"PieLegend_23IDx",BarChartTooltip:"BarChartTooltip_5eZ9j",PieChartTooltip:"PieChartTooltip_1fZyD","common-tooltip-bubble":"common-tooltip-bubble_1azQ0","tooltip-bubble":"tooltip-bubble_2cwjB","key-label":"key-label_3Kc2U",label:"label_3Ypk1",flag:"flag_2NKqG","values-section":"values-section_1yuz4",sectionTitle:"sectionTitle_1BPHl",hidden:"hidden_2ujUG","value-label":"value-label_3fc8x",color:"color_3mWio",value:"value_wz2cN","histogram-tooltip-bubble":"histogram-tooltip-bubble_3WIzO","range-label":"range-label_jwL4h",compact:"compact_3oJj8",axisTooltip:"axisTooltip_2uFxA",HistogramLayer:"HistogramLayer_14QMW",faded:"faded_39ikN"}},function(t,e){t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n,r=t[1]||"",i=t[3];if(!i)return r;if(e&&"function"==typeof btoa){var o=(n=i,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */"),s=i.sources.map((function(t){return"/*# sourceURL="+i.sourceRoot+t+" */"}));return[r].concat(s).concat([o]).join("\n")}return[r].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+n+"}":n})).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(r[o]=!0)}for(i=0;i<t.length;i++){var s=t[i];"number"==typeof s[0]&&r[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="("+s[2]+") and ("+n+")"),e.push(s))}},e}},function(t,e,n){var r,i,o={},s=(r=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===i&&(i=r.apply(this,arguments)),i}),a=function(t){return document.querySelector(t)},c=function(t){var e={};return function(t){if("function"==typeof t)return t();if(void 0===e[t]){var n=a.call(this,t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}}(),l=null,u=0,h=[],f=n(18);function d(t,e){for(var n=0;n<t.length;n++){var r=t[n],i=o[r.id];if(i){i.refs++;for(var s=0;s<i.parts.length;s++)i.parts[s](r.parts[s]);for(;s<r.parts.length;s++)i.parts.push(v(r.parts[s],e))}else{var a=[];for(s=0;s<r.parts.length;s++)a.push(v(r.parts[s],e));o[r.id]={id:r.id,refs:1,parts:a}}}}function p(t,e){for(var n=[],r={},i=0;i<t.length;
vendor: 5,062 bytes, line 21
21i++){var o=t[i],s=e.base?o[0]+e.base:o[0],a={css:o[1],media:o[2],sourceMap:o[3]};r[s]?r[s].parts.push(a):n.push(r[s]={id:s,parts:[a]})}return n}function g(t,e){var n=c(t.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=h[h.length-1];if("top"===t.insertAt)r?r.nextSibling?n.insertBefore(e,r.nextSibling):n.appendChild(e):n.insertBefore(e,n.firstChild),h.push(e);else if("bottom"===t.insertAt)n.appendChild(e);else{if("object"!=typeof t.insertAt||!t.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var i=c(t.insertInto+" "+t.insertAt.before);n.insertBefore(e,i)}}function m(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t);var e=h.indexOf(t);e>=0&&h.splice(e,1)}function y(t){var e=document.createElement("style");return void 0===t.attrs.type&&(t.attrs.type="text/css"),_(e,t.attrs),g(t,e),e}function _(t,e){Object.keys(e).forEach((function(n){t.setAttribute(n,e[n])}))}function v(t,e){var n,r,i,o;if(e.transform&&t.css){if(!(o=e.transform(t.css)))return function(){};t.css=o}if(e.singleton){var s=u++;n=l||(l=y(e)),r=w.bind(null,n,s,!1),i=w.bind(null,n,s,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(t){var e=document.createElement("link");return void 0===t.attrs.type&&(t.attrs.type="text/css"),t.attrs.rel="stylesheet",_(e,t.attrs),g(t,e),e}(e),r=S.bind(null,n,e),i=function(){m(n),n.href&&URL.revokeObjectURL(n.href)}):(n=y(e),r=E.bind(null,n),i=function(){m(n)});return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else i()}}t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=s()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var n=p(t,e);return d(n,e),function(t){for(var r=[],i=0;i<n.length;i++){var s=n[i];(a=o[s.id]).refs--,r.push(a)}for(t&&d(p(t,e),e),i=0;i<r.length;i++){var a;if(0===(a=r[i]).refs){for(var c=0;c<a.parts.length;c++)a.parts[c]();delete o[a.id]}}}};var b,x=(b=[],function(t,e){return b[t]=e,b.filter(Boolean).join("\n")});function w(t,e,n,r){var i=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=x(e,i);else{var o=document.createTextNode(i),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(o,s[e]):t.appendChild(o)}}function E(t,e){var n=e.css,r=e.media;if(r&&t.setAttribute("media",r),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}function S(t,e,n){var r=n.css,i=n.sourceMap,o=void 0===e.convertToAbsoluteUrls&&i;(e.convertToAbsoluteUrls||o)&&(r=f(r)),i&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var s=new Blob([r],{type:"text/css"}),a=t.href;t.href=URL.createObjectURL(s),a&&URL.revokeObjectURL(a)}},function(t,e){t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var n=e.protocol+"//"+e.host,r=n+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(t,e){var i,o=e.trim().replace(/^"(.*)"$/,(function(t,e){return e})).replace(/^'(.*)'$/,(function(t,e){return e}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(o)?t:(i=0===o.indexOf("//")?o:0===o.indexOf("/")?n+o:r+o.replace(/^\.\//,""),"url("+JSON.stringify(i)+")")}))}},function(t,e){t.exports='<svg width="21" height="15" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><filter x="-50%" y="-50%" width="200%" height="200%" filterUnits="objectBoundingBox" id="b"><feMorphology radius="1" in="SourceAlpha" operator="dilate" result="shadowSpreadInner1"></feMorphology><feOffset in="shadowSpreadInner1" result="shadowOffsetInner1"></feOffset><feGaussianBlur in="shadowOffsetInner1" result="shadowBlurInner1"></feGaussianBlur><feComposite in="shadowBlurInner1" in2="SourceAlpha" operator="arithmetic" k2="-1" k3="1" result="shadowInnerInner1"></feComposite><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.0851619112 0" in="shadowInnerInner1" result="shadowMatrixInner1"></feColorMatrix><feMerge><feMergeNode in="SourceGraphic"></feMergeNode><feMergeNode in="shadowMatrixInner1"></feMergeNode></feMerge></filter><rect id="a" width="21" height="15" rx="2"></rect><rect id="d" x=".5" y=".5" width="20" height="14" rx="1"></rect></defs><g fill="none" fill-rule="evenodd"><mask id="c" fill="#fff"><use xlink:href="#a"></use></mask>
21<use fill="#FFF" filter="url(#b)" xlink:href="#a"></use><path fill="#8AB9E4" mask="url(#c)" d="M0 10h21v5H0z"></path><circle fill="#EBA810" mask="url(#c)" cx="10.5" cy="7.5" r="1.5"></circle><path fill="#8AB9E4" mask="url(#c)" d="M0 0h21v5H0z"></path><use stroke-opacity=".157" stroke="#2F343A" xlink:href="#d"></use></g></svg>'},function(t,e){t.exports='<svg width="21" height="15" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><filter x="-50%" y="-50%" width="200%" height="200%" filterUnits="objectBoundingBox" id="b"><feMorphology radius="1" in="SourceAlpha" operator="dilate" result="shadowSpreadInner1"></feMorphology><feOffset in="shadowSpreadInner1" result="shadowOffsetInner1"></feOffset><feGaussianBlur in="shadowOffsetInner1" result="shadowBlurInner1"></feGaussianBlur><feComposite in="shadowBlurInner1" in2="SourceAlpha" operator="arithmetic" k2="-1" k3="1" result="shadowInnerInner1"></feComposite><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.0851619112 0" in="shadowInnerInner1" result="shadowMatrixInner1"></feColorMatrix><feMerge><feMergeNode in="SourceGraphic"></feMergeNode><feMergeNode in="shadowMatrixInner1"></feMergeNode></feMerge></filter><rect id="a" width="21" height="15" rx="2"></rect><rect id="d" x=".5" y=".5" width="20" height="14" rx="1"></rect></defs><g fill="none" fill-rule="evenodd"><mask id="c" fill="#fff"><use xlink:href="#a"></use></mask><use fill="#1C36AD" filter="url(#b)" xlink:href="#a"></use><path d="M5 11v-1h1v1h1v1H6v1H5v-1H4v-1h1zM14 3v1h1V3h-1zm3 1v1h1V4h-1zm-4 2v1h1V6h-1zm3 1v1h1V7h-1zm-1 3v1h1v-1h-1z" fill="#BDC4E7" mask="url(#c)"></path><rect fill="#FFF" mask="url(#c)" x="1" y="1" width="9" height="7" rx="1"></rect><path d="M5 5H2V4h3V2h1v2h3v1H6v2H5V5zm2.5 1v1H9V6H7.5zm0-4v1H9V2H7.5zM2 6v1h1.5V6H2zm0-4v1h1.5V2H2z" fill="#D72342" mask="url(#c)"></path><use stroke-opacity=".157" stroke="#2F343A" xlink:href="#d"></use></g></svg>'},function(t,e){t.exports='<svg width="21" height="15" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><rect id="a" width="21" height="15" rx="2"></rect><rect id="c" x=".5" y=".5" width="20" height="14" rx="1"></rect></defs><g fill="none" fill-rule="evenodd"><mask id="b" fill="#fff"><use xlink:href="#a"></use></mask><use fill="#FFD128" xlink:href="#a"></use><path fill="#292929" mask="url(#b)" d="M0 0h7v15H0z"></path><path fill="#ED4C49" mask="url(#b)" d="M14 0h7v15h-7z"></path><use stroke-opacity=".157" stroke="#2F343A" xlink:href="#c"></use></g></svg>'},function(t,e){t.exports='<svg width="21" height="15" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><filter x="-50%" y="-50%" width="200%" height="200%" filterUnits="objectBoundingBox" id="b"><feMorphology radius="1" in="SourceAlpha" operator="dilate" result="shadowSpreadInner1"></feMorphology><feOffset in="shadowSpreadInner1" result="shadowOffsetInner1"></feOffset><feGaussianBlur in="shadowOffsetInner1" result="shadowBlurInner1"></feGaussianBlur><feComposite in="shadowBlurInner1" in2="SourceAlpha" operator="arithmetic" k2="-1" k3="1" result="shadowInnerInner1"></feComposite><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.0851619112 0" in="shadowInnerInner1" result="shadowMatrixInner1"></feColorMatrix><feMerge><feMergeNode in="SourceGraphic"></feMergeNode><feMergeNode in="shadowMatrixInner1"></feMergeNode></feMerge></filter><rect id="a" width="21" height="15" rx="2"></rect><rect id="d" x=".5" y=".5" width="20" height="14" rx="1"></rect></defs><g fill="none" fill-rule="evenodd"><mask id="c" fill="#fff"><use xlink:href="#a"></use></mask><use fill="#229F4A" filter="url(#b)" xlink:href="#a"></use><path fill="#F8E23D" mask="url(#c)" d="M10.5 2L18 7.5 10.5 13 3 7.5z"></path><circle fill="#032A74" mask="url(#c)" cx="10.5" cy="7.5" r="3.5"></circle><path d="M9 9v1h1V9H9zm2 0v1h1V9h-1z" fill="#91A1C3" mask="url(#c)"></path><path d="M8 6s2.264.399 3.896 1.098L14 8" stroke="#C9D0E0" mask="url(#c)"></path><use stroke-opacity=".157" stroke="#2F343A" xlink:href="#d"></use></g></svg>'},function(t,e){t.exports='<svg width="21" height="15" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><rect id="a" width="21" height="15" rx="2"></rect><rect id="c" x=".5" y=".5" width="20" height="14" rx="1"></rect></defs><g fill="none" fill-rule="evenodd"><mask id="b" fill="#fff"><use xlink:href="#a"></use></mask><use fill="#FFF" xlink:href="#a"></use><path fill="#E82E2E" mask="url(#b)" d="M0 0h6v15H0zM15 0h6v15h-6zM13 8H8l.556-.889L8 6l1.034.345L10.5 4l1.466 2.345L13 6l-.556 1.111L13 8zm1 0H7l3 1.714V11h1V9.714L14 8z"></path><use stroke-opacity=".157" stroke="#2F343A" xlink:href="#c"></use></g></svg>'},function(t,e){t.exports='<svg width="21" height="15" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><rect id="a" width="21" height="15" rx="2"></rect><rect id="c" x=".5" y=".5" width="20" height="14" rx="1"></rect></defs><g fill="none" fill-rule="evenodd"><mask id="b" fill="#fff"><use xlink:href="#a"></use></mask><use fill="#FFF" xlink:href="#a"></use><path fill="#D63F3A" mask="url(#b)" d="M0 8h21v7H0z"></path><path fill="#1C4DAA" mask="url(#b)" d="M0 0h9v8H0z"></path>
21<path d="M2 4l1.71 1.108L3.11 7 4.5 5.6 5.889 7 5.29 5.108 7 4H2zm3 0H4l.5-2L5 4z" fill="#FFF" mask="url(#b)"></path><use stroke-opacity=".157" stroke="#2F343A" xlink:href="#c"></use></g></svg>'},function(t,e){t.exports='<svg width="21" height="15" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><rect id="a" width="21" height="15" rx="2"></rect><rect id="c" x=".5" y=".5" width="20" height="14" rx="1"></rect></defs><g fill="none" fill-rule="evenodd"><mask id="b" fill="#fff"><use xlink:href="#a"></use></mask><use fill="#CF2338" xlink:href="#a"></use><path d="M2 5l3.077 1.846L4 10l2.5-2.333L9 10 7.923 6.846 11 5H2zm6 0H5l1.5-3L8 5z" fill="#FFD128" mask="url(#b)"></path><path d="M12 3v1h1V3h-1zm1 2v1h1V5h-1zm0 2v1h1V7h-1zm-1 2v1h1V9h-1z" fill="#F8B92A" mask="url(#b)"></path><use stroke-opacity=".157" stroke="#2F343A" xlink:href="#c"></use></g></svg>'},function(t,e){t.exports='<svg width="21" height="15" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><filter x="-50%" y="-50%" width="200%" height="200%" filterUnits="objectBoundingBox" id="b"><feMorphology radius="1" in="SourceAlpha" operator="dilate" result="shadowSpreadInner1"></feMorphology><feOffset in="shadowSpreadInner1" result="shadowOffsetInner1"></feOffset><feGaussianBlur in="shadowOffsetInner1" result="shadowBlurInner1"></feGaussianBlur><feComposite in="shadowBlurInner1" in2="SourceAlpha" operator="arithmetic" k2="-1" k3="1" result="shadowInnerInner1"></feComposite><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.0851619112 0" in="shadowInnerInner1" result="shadowMatrixInner1"></feColorMatrix><feMerge><feMergeNode in="SourceGraphic"></feMergeNode><feMergeNode in="shadowMatrixInner1"></feMergeNode></feMerge></filter><rect id="a" width="21" height="15" rx="2"></rect><rect id="d" x=".5" y=".5" width="20" height="14" rx="1"></rect></defs><g fill="none" fill-rule="evenodd"><mask id="c" fill="#fff"><use xlink:href="#a"></use></mask><use fill="#2D59A2" filter="url(#b)" xlink:href="#a"></use><path fill="#D33548" mask="url(#c)" d="M0 11h21v4H0z"></path><path fill="#FBD54E" mask="url(#c)" d="M0 0h21v7H0z"></path><use stroke-opacity=".157" stroke="#2F343A" xlink:href="#d"></use></g></svg>'},function(t,e){t.exports='<svg width="21" height="15" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><filter x="-50%" y="-50%" width="200%" height="200%" filterUnits="objectBoundingBox" id="b"><feMorphology radius="1" in="SourceAlpha" operator="dilate" result="shadowSpreadInner1"></feMorphology><feOffset in="shadowSpreadInner1" result="shadowOffsetInner1"></feOffset><feGaussianBlur in="shadowOffsetInner1" result="shadowBlurInner1"></feGaussianBlur><feComposite in="shadowBlurInner1" in2="SourceAlpha" operator="arithmetic" k2="-1" k3="1" result="shadowInnerInner1"></feComposite><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.0851619112 0" in="shadowInnerInner1" result="shadowMatrixInner1"></feColorMatrix><feMerge><feMergeNode in="SourceGraphic"></feMergeNode><feMergeNode in="shadowMatrixInner1"></feMergeNode></feMerge></filter><rect id="a" width="21" height="15" rx="2"></rect><rect id="d" x=".5" y=".5" width="20" height="14" rx="1"></rect></defs><g fill="none" fill-rule="evenodd"><mask id="c" fill="#fff"><use xlink:href="#a"></use></mask><use fill="#FFF" filter="url(#b)" xlink:href="#a"></use><path fill="#292929" mask="url(#c)" d="M0 10h21v5H0z"></path><path fill="#D43B4D" mask="url(#c)" d="M0 0h21v5H0z"></path><path d="M10 8v1h1V8h-1zm0 0L7 9V6l3 2zm1 0l3 1V6l-3 2z" fill="#BF921F" mask="url(#c)"></path><use stroke-opacity=".157" stroke="#2F343A" xlink:href="#d"></use></g></svg>'},function(t,e){t.exports='<svg width="21" height="15" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><rect id="a" width="21" height="15" rx="2"></rect><rect id="c" x=".5" y=".5" width="20" height="14" rx="1"></rect></defs><g fill="none" fill-rule="evenodd"><mask id="b" fill="#fff"><use xlink:href="#a"></use></mask><use fill="#FFF" xlink:href="#a"></use><path fill="#435DB0" mask="url(#b)" d="M0 0h7v15H0z"></path><path fill="#ED4C49" mask="url(#b)" d="M14 0h7v15h-7z"></path><use stroke-opacity=".157" stroke="#2F343A" xlink:href="#c"></use></g></svg>'},function(t,e){t.exports='<svg width="21" height="15" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><filter x="-50%" y="-50%" width="200%" height="200%" filterUnits="objectBoundingBox" id="b"><feMorphology radius="1" in="SourceAlpha" operator="dilate" result="shadowSpreadInner1"></feMorphology><feOffset in="shadowSpreadInner1" result="shadowOffsetInner1"></feOffset><feGaussianBlur in="shadowOffsetInner1" result="shadowBlurInner1"></feGaussianBlur><feComposite in="shadowBlurInner1" in2="SourceAlpha" operator="arithmetic" k2="-1" k3="1" result="shadowInnerInner1"></feComposite><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.0851619112 0" in="shadowInnerInner1" result="shadowMatrixInner1"></feColorMatrix><feMerge><feMergeNode in="SourceGraphic"></feMergeNode><feMergeNode in="shadowMatrixInner1"></feMergeNode></feMerge></filter><rect id="a" width="21" height="15" rx="2"></rect><rect id="d" x=".5" y=".5" width="20" height="14" rx="1"></rect></defs><g fill="none" fill-rule="evenodd"><mask id="c" fill="#fff"><use xlink:href="#a"></use></mask>
21<use fill="#ED4C49" filter="url(#b)" xlink:href="#a"></use><path fill="#FFD128" mask="url(#c)" d="M0 10h21v5H0z"></path><path fill="#292929" mask="url(#c)" d="M0 0h21v5H0z"></path><use stroke-opacity=".157" stroke="#2F343A" xlink:href="#d"></use></g></svg>'},function(t,e){t.exports='<svg width="21" height="15" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><filter x="-50%" y="-50%" width="200%" height="200%" filterUnits="objectBoundingBox" id="b"><feMorphology radius="1" in="SourceAlpha" operator="dilate" result="shadowSpreadInner1"></feMorphology><feOffset in="shadowSpreadInner1" result="shadowOffsetInner1"></feOffset><feGaussianBlur in="shadowOffsetInner1" result="shadowBlurInner1"></feGaussianBlur><feComposite in="shadowBlurInner1" in2="SourceAlpha" operator="arithmetic" k2="-1" k3="1" result="shadowInnerInner1"></feComposite><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.0851619112 0" in="shadowInnerInner1" result="shadowMatrixInner1"></feColorMatrix><feMerge><feMergeNode in="SourceGraphic"></feMergeNode><feMergeNode in="shadowMatrixInner1"></feMergeNode></feMerge></filter><rect id="a" width="21" height="15" rx="2"></rect><rect id="d" x=".5" y=".5" width="20" height="14" rx="1"></rect></defs><g fill="none" fill-rule="evenodd"><mask id="c" fill="#fff"><use xlink:href="#a"></use></mask><use fill="#FFF" filter="url(#b)" xlink:href="#a"></use><path fill="#3F9A3C" mask="url(#c)" d="M0 10h21v5H0z"></path><path fill="#EF680F" mask="url(#c)" d="M0 0h21v5H0z"></path><circle stroke="#626CFB" mask="url(#c)" cx="10.5" cy="7.5" r="1"></circle><use stroke-opacity=".157" stroke="#2F343A" xlink:href="#d"></use></g></svg>'},function(t,e){t.exports='<svg width="21" height="15" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><filter x="-50%" y="-50%" width="200%" height="200%" filterUnits="objectBoundingBox" id="b"><feMorphology radius="1" in="SourceAlpha" operator="dilate" result="shadowSpreadInner1"></feMorphology><feOffset in="shadowSpreadInner1" result="shadowOffsetInner1"></feOffset><feGaussianBlur in="shadowOffsetInner1" result="shadowBlurInner1"></feGaussianBlur><feComposite in="shadowBlurInner1" in2="SourceAlpha" operator="arithmetic" k2="-1" k3="1" result="shadowInnerInner1"></feComposite><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.0851619112 0" in="shadowInnerInner1" result="shadowMatrixInner1"></feColorMatrix><feMerge><feMergeNode in="SourceGraphic"></feMergeNode><feMergeNode in="shadowMatrixInner1"></feMergeNode></feMerge></filter><rect id="a" width="21" height="15" rx="2"></rect><rect id="d" x=".5" y=".5" width="20" height="14" rx="1"></rect></defs><g fill="none" fill-rule="evenodd"><mask id="c" fill="#fff"><use xlink:href="#a"></use></mask><use fill="#FFF" filter="url(#b)" xlink:href="#a"></use><path fill="#E82E2E" mask="url(#c)" d="M0 0h21v8H0z"></path><use stroke-opacity=".157" stroke="#2F343A" xlink:href="#d"></use></g></svg>'},function(t,e){t.exports='<svg width="21" height="15" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><rect id="a" width="21" height="15" rx="2"></rect><rect id="c" x=".5" y=".5" width="20" height="14" rx="1"></rect></defs><g fill="none" fill-rule="evenodd"><mask id="b" fill="#fff"><use xlink:href="#a"></use></mask><use fill="#FFF" xlink:href="#a"></use><path fill="#229F55" mask="url(#b)" d="M0 0h7v15H0z"></path><path fill="#CF3946" mask="url(#b)" d="M14 0h7v15h-7z"></path><use stroke-opacity=".157" stroke="#2F343A" xlink:href="#c"></use></g></svg>'},function(t,e){t.exports='<svg width="21" height="15" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><rect id="a" width="21" height="15" rx="2"></rect><rect id="c" x=".5" y=".5" width="20" height="14" rx="1"></rect></defs><g fill="none" fill-rule="evenodd"><mask id="b" fill="#fff"><use xlink:href="#a"></use></mask><use fill="#FFF" xlink:href="#a"></use><path fill="#196F52" mask="url(#b)" d="M0 0h7v15H0z"></path><circle fill="#9B7745" mask="url(#b)" cx="10.5" cy="6.5" r="1.5"></circle><path d="M12.95 9a2.5 2.5 0 0 1-4.9 0H7V8h2.085a1.5 1.5 0 1 0 2.83 0H14v1h-1.05z" fill="#B2B593" mask="url(#b)"></path><path fill="#CF3946" mask="url(#b)" d="M14 0h7v15h-7z"></path><use stroke-opacity=".157" stroke="#2F343A" xlink:href="#c"></use></g></svg>'},function(t,e){t.exports='<svg width="21" height="15" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><filter x="-50%" y="-50%" width="200%" height="200%" filterUnits="objectBoundingBox" id="b"><feMorphology radius="1" in="SourceAlpha" operator="dilate" result="shadowSpreadInner1"></feMorphology><feOffset in="shadowSpreadInner1" result="shadowOffsetInner1"></feOffset><feGaussianBlur in="shadowOffsetInner1" result="shadowBlurInner1"></feGaussianBlur><feComposite in="shadowBlurInner1" in2="SourceAlpha" operator="arithmetic" k2="-1" k3="1" result="shadowInnerInner1"></feComposite><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.0851619112 0" in="shadowInnerInner1" result="shadowMatrixInner1"></feColorMatrix><feMerge><feMergeNode in="SourceGraphic"></feMergeNode><feMergeNode in="shadowMatrixInner1"></feMergeNode></feMerge></filter><rect id="a" width="21" height="15" rx="2"></rect><rect id="d" x=".5" y=".5" width="20" height="14" rx="1"></rect></defs><g fill="none" fill-rule="evenodd"><mask id="c" fill="#fff"><use xlink:href="#a"></use></mask>
21<use fill="#FFF" filter="url(#b)" xlink:href="#a"></use><path fill="#3581CC" mask="url(#c)" d="M0 10h21v5H0z"></path><path fill="#C93846" mask="url(#c)" d="M0 0h21v5H0z"></path><use stroke-opacity=".157" stroke="#2F343A" xlink:href="#d"></use></g></svg>'},function(t,e){t.exports='<svg width="21" height="15" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><rect id="a" width="21" height="15" rx="2"></rect><rect id="c" x=".5" y=".5" width="20" height="14" rx="1"></rect></defs><g fill="none" fill-rule="evenodd"><mask id="b" fill="#fff"><use xlink:href="#a"></use></mask><use fill="#FFF" xlink:href="#a"></use><path fill="#1F8D5D" mask="url(#b)" d="M0 0h7v15H0zM14 0h7v15h-7z"></path><use stroke-opacity=".157" stroke="#2F343A" xlink:href="#c"></use></g></svg>'},function(t,e){t.exports='<svg width="21" height="15" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><rect id="a" width="21" height="15" rx="2"></rect><rect id="c" x=".5" y=".5" width="20" height="14" rx="1"></rect></defs><g fill="none" fill-rule="evenodd"><mask id="b" fill="#fff"><use xlink:href="#a"></use></mask><use fill="#FFF" xlink:href="#a"></use><path fill="#32733C" mask="url(#b)" d="M6 0h15v15H6z"></path><path d="M17.966 8.06a4.5 4.5 0 1 1-5.935-4.815A4.131 4.131 0 0 0 11 6c0 2.21 1.679 4 3.75 4 1.365 0 2.56-.778 3.216-1.94z" fill="#EFF1F0" mask="url(#b)"></path><path d="M16 3v1h1V3h-1zm0 2v1h1V5h-1zm1-1v1h1V4h-1zm-2 0v1h1V4h-1z" stroke="#A7BCAB" mask="url(#b)"></path><path fill="#FFF" mask="url(#b)" d="M16 4h1v1h-1z"></path><use stroke-opacity=".157" stroke="#2F343A" xlink:href="#c"></use></g></svg>'},function(t,e){t.exports='<svg width="21" height="15" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><rect id="a" width="21" height="15" rx="2"></rect><rect id="c" x=".5" y=".5" width="20" height="14" rx="1"></rect></defs><g fill="none" fill-rule="evenodd"><mask id="b" fill="#fff"><use xlink:href="#a"></use></mask><use fill="#FFF" xlink:href="#a"></use><path fill="#D92337" mask="url(#b)" d="M0 0h7v15H0zM14 0h7v15h-7z"></path><use stroke-opacity=".157" stroke="#2F343A" xlink:href="#c"></use></g></svg>'},function(t,e){t.exports='<svg width="21" height="15" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><rect id="a" width="21" height="15" rx="2"></rect><rect id="c" x=".5" y=".5" width="20" height="14" rx="1"></rect></defs><g fill="none" fill-rule="evenodd"><mask id="b" fill="#fff"><use xlink:href="#a"></use></mask><use fill="#FFF" xlink:href="#a"></use><path fill="#CF2338" mask="url(#b)" d="M0 7h21v8H0z"></path><use stroke-opacity=".157" stroke="#2F343A" xlink:href="#c"></use></g></svg>'},function(t,e){t.exports='<svg width="21" height="15" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><rect id="a" width="21" height="15" rx="2"></rect><rect id="c" x=".5" y=".5" width="20" height="14" rx="1"></rect></defs><g fill="none" fill-rule="evenodd"><mask id="b" fill="#fff"><use xlink:href="#a"></use></mask><use fill="#186E1A" xlink:href="#a"></use><path fill="#FC1B28" mask="url(#b)" d="M7 0h14v15H7z"></path><mask id="d" fill="#fff"><use xlink:href="#c"></use></mask><use stroke-opacity=".157" stroke="#2F343A" xlink:href="#c"></use><circle fill="#FFFA4A" mask="url(#d)" cx="7" cy="7" r="2"></circle></g></svg>'},function(t,e){t.exports='<svg width="21" height="15" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><filter x="-50%" y="-50%" width="200%" height="200%" filterUnits="objectBoundingBox" id="b"><feMorphology radius="1" in="SourceAlpha" operator="dilate" result="shadowSpreadInner1"></feMorphology><feOffset in="shadowSpreadInner1" result="shadowOffsetInner1"></feOffset><feGaussianBlur in="shadowOffsetInner1" result="shadowBlurInner1"></feGaussianBlur><feComposite in="shadowBlurInner1" in2="SourceAlpha" operator="arithmetic" k2="-1" k3="1" result="shadowInnerInner1"></feComposite><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.0851619112 0" in="shadowInnerInner1" result="shadowMatrixInner1"></feColorMatrix><feMerge><feMergeNode in="SourceGraphic"></feMergeNode><feMergeNode in="shadowMatrixInner1"></feMergeNode></feMerge></filter><rect id="a" width="21" height="15" rx="2"></rect><rect id="d" x=".5" y=".5" width="20" height="14" rx="1"></rect></defs><g fill="none" fill-rule="evenodd"><mask id="c" fill="#fff"><use xlink:href="#a"></use></mask>
21<use fill="#2E5BB3" filter="url(#b)" xlink:href="#a"></use><path fill="#CF2338" mask="url(#c)" d="M0 10h21v5H0z"></path><path fill="#FFF" mask="url(#c)" d="M0 0h21v5H0z"></path><use stroke-opacity=".157" stroke="#2F343A" xlink:href="#d"></use></g></svg>'},function(t,e){t.exports='<svg width="21" height="15" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><filter x="-50%" y="-50%" width="200%" height="200%" filterUnits="objectBoundingBox" id="b"><feMorphology radius="1" in="SourceAlpha" operator="dilate" result="shadowSpreadInner1"></feMorphology><feOffset in="shadowSpreadInner1" result="shadowOffsetInner1"></feOffset><feGaussianBlur in="shadowOffsetInner1" result="shadowBlurInner1"></feGaussianBlur><feComposite in="shadowBlurInner1" in2="SourceAlpha" operator="arithmetic" k2="-1" k3="1" result="shadowInnerInner1"></feComposite><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.0851619112 0" in="shadowInnerInner1" result="shadowMatrixInner1"></feColorMatrix><feMerge><feMergeNode in="SourceGraphic"></feMergeNode><feMergeNode in="shadowMatrixInner1"></feMergeNode></feMerge></filter><rect id="a" width="21" height="15" rx="2"></rect><rect id="d" x=".5" y=".5" width="20" height="14" rx="1"></rect></defs><g fill="none" fill-rule="evenodd"><mask id="c" fill="#fff"><use xlink:href="#a"></use></mask><use fill="#DE3831" filter="url(#b)" xlink:href="#a"></use><path fill="#012395" mask="url(#c)" d="M0 7h21v8H0z"></path><g mask="url(#c)"><path fill="#FFF" d="M2.83 18.112l11.274-8.808-.81-1.037L2.02 17.074zM3.935-1.13l9 5.844-.516.796-9-5.845z"></path><path stroke="#FFF" fill="#017A4D" d="M5 5.619h16v3.81H5z"></path><path fill="#017A4D" d="M1.06-1.913L13.06 5.88l-2.075 3.195-11.998-7.791z"></path><path fill="#017A4D" d="M2.404 17.22l11.274-8.808-2.346-3.002L.059 14.217z"></path><path fill="#FFB612" d="M-1.094.73L9.638 7.44l-10.732 7.83z"></path><path fill="#000" d="M-.485 2.415L7.67 7.57l-8.155 6.015z"></path></g><use stroke-opacity=".157" stroke="#2F343A" xlink:href="#d"></use></g></svg>'},function(t,e){t.exports='<svg width="21" height="15" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><filter x="-50%" y="-50%" width="200%" height="200%" filterUnits="objectBoundingBox" id="b"><feMorphology radius="1" in="SourceAlpha" operator="dilate" result="shadowSpreadInner1"></feMorphology><feOffset in="shadowSpreadInner1" result="shadowOffsetInner1"></feOffset><feGaussianBlur in="shadowOffsetInner1" result="shadowBlurInner1"></feGaussianBlur><feComposite in="shadowBlurInner1" in2="SourceAlpha" operator="arithmetic" k2="-1" k3="1" result="shadowInnerInner1"></feComposite><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.0851619112 0" in="shadowInnerInner1" result="shadowMatrixInner1"></feColorMatrix><feMerge><feMergeNode in="SourceGraphic"></feMergeNode><feMergeNode in="shadowMatrixInner1"></feMergeNode></feMerge></filter><rect id="a" width="21" height="15" rx="2"></rect><rect id="d" x=".5" y=".5" width="20" height="14" rx="1"></rect></defs><g fill="none" fill-rule="evenodd"><mask id="c" fill="#fff"><use xlink:href="#a"></use></mask><use fill="#FFD128" filter="url(#b)" xlink:href="#a"></use><path fill="#CF3F4F" mask="url(#c)" d="M0 11h21v4H0zM0 0h21v4H0zM4 5c-.552 0-1 .444-1 1v3c0 .552.444 1 1 1h3c.552 0 1-.444 1-1V6c0-.552-.444-1-1-1H4zm0 1v3h3V6H4zm1 0v3h1V6H5z"></path><path d="M6 7v1h1V7H6zM4 6v1h1V6H4z" fill="#DC6943" mask="url(#c)"></path><use stroke-opacity=".157" stroke="#2F343A" xlink:href="#d"></use></g></svg>'},function(t,e){t.exports='<svg width="21" height="15" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><rect id="a" width="21" height="15" rx="2"></rect><rect id="c" x=".5" y=".5" width="20" height="14" rx="1"></rect></defs><g fill="none" fill-rule="evenodd"><mask id="b" fill="#fff"><use xlink:href="#a"></use></mask><use fill="#0F5D9F" xlink:href="#a"></use><path d="M6 1h3v5h11v3H9v5H6V9H1V6h5V1z" fill="#FDDA3D" mask="url(#b)"></path><use stroke-opacity=".157" stroke="#2F343A" xlink:href="#c"></use></g></svg>'},function(t,e){t.exports='<svg width="21" height="15" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><rect id="a" width="21" height="15" rx="2"></rect><rect id="c" x=".5" y=".5" width="20" height="14" rx="1"></rect></defs><g fill="none" fill-rule="evenodd"><mask id="b" fill="#fff"><use xlink:href="#a"></use></mask><use fill="#E82E2E" xlink:href="#a"></use><path d="M12.052 10.263a4.5 4.5 0 1 1 0-5.526A3.907 3.907 0 0 0 9.75 4C7.679 4 6 5.567 6 7.5S7.679 11 9.75 11c.868 0 1.667-.275 2.302-.737z" fill="#FFF" mask="url(#b)"></path><path d="M13 6v1h1V6h-1zm0 2v1h1V8h-1zm1-1v1h1V7h-1zm-2 0v1h1V7h-1z" stroke="#E6B6B7" mask="url(#b)"></path><path fill="#FFF" mask="url(#b)" d="M13 7h1v1h-1z"></path><use stroke-opacity=".157" stroke="#2F343A" xlink:href="#c"></use></g></svg>'},function(t,e){t.exports='<svg width="21" height="15" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><rect id="a" width="21" height="15" rx="2"></rect><rect id="c" x=".5" y=".5" width="20" height="14" rx="1"></rect></defs><g fill="none" fill-rule="evenodd"><mask id="b" fill="#fff"><use xlink:href="#a"></use></mask><use fill="#126CCF" xlink:href="#a"></use><path fill="#FED949" mask="url(#b)" d="M0 8h21v7H0z"></path><use stroke-opacity=".157" stroke="#2F343A" xlink:href="#c"></use></g></svg>'},function(t,e){t.exports='<svg width="21" height="15" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><filter x="-50%" y="-50%" width="200%" height="200%" filterUnits="objectBoundingBox" id="b"><feMorphology radius="1" in="SourceAlpha" operator="dilate" result="shadowSpreadInner1"></feMorphology><feOffset in="shadowSpreadInner1" result="shadowOffsetInner1"></feOffset><feGaussianBlur in="shadowOffsetInner1" result="shadowBlurInner1"></feGaussianBlur><feComposite in="shadowBlurInner1" in2="SourceAlpha" operator="arithmetic" k2="-1" k3="1" result="shadowInnerInner1"></feComposite><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.0851619112 0" in="shadowInnerInner1" result="shadowMatrixInner1"></feColorMatrix><feMerge><feMergeNode in="SourceGraphic"></feMergeNode><feMergeNode in="shadowMatrixInner1"></feMergeNode></feMerge></filter><rect id="a" width="21" height="15" rx="2"></rect><rect id="d" x=".5" y=".5" width="20" height="14" rx="1"></rect></defs><g fill="none" fill-rule="evenodd"><mask id="c" fill="#fff"><use xlink:href="#a"></use></mask>
21<use fill="#FFF" filter="url(#b)" xlink:href="#a"></use><path fill="#D74A5B" mask="url(#c)" d="M0 0h5v15H0z"></path><path fill="#292929" mask="url(#c)" d="M5 10h16v5H5z"></path><path fill="#3BAC69" mask="url(#c)" d="M5 0h16v5H5z"></path><use stroke-opacity=".157" stroke="#2F343A" xlink:href="#d"></use></g></svg>'},function(t,e){t.exports='<svg width="21" height="15" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><rect id="a" width="21" height="15" rx="2"></rect><rect id="c" x=".5" y=".5" width="20" height="14" rx="1"></rect></defs><g fill="none" fill-rule="evenodd"><mask id="b" fill="#fff"><use xlink:href="#a"></use></mask><use fill="#22438B" xlink:href="#a"></use><path d="M3 1l-2.026.026L1 3l16.982 11.028 2.037-.037-.037-1.963L3 1z" fill="#FFF" mask="url(#b)"></path><path d="M2 1L1 2l18 12 1-1L2 1z" fill="#C7152A" mask="url(#b)"></path><path d="M18 1h2v2S8.25 10.396 3.018 14.028c-.063.044-1.998.003-1.998.003l-.155-1.903L18 1z" fill="#FFF" mask="url(#b)"></path><path d="M19.043.972L20 2 2 14l-1-1L19.043.972z" fill="#C7152A" mask="url(#b)"></path><path d="M8 1h5v4h7v5h-7v4H8v-4H1V5h7V1z" fill="#FFF" mask="url(#b)"></path><path d="M9 1h3v5h8v3h-8v5H9V9H1V6h8V1z" fill="#C7152A" mask="url(#b)"></path><use stroke-opacity=".157" stroke="#2F343A" xlink:href="#c"></use></g></svg>'},function(t,e){t.exports='<svg width="21" height="15" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><rect id="a" width="21" height="15" rx="2"></rect><filter x="-50%" y="-50%" width="200%" height="200%" filterUnits="objectBoundingBox" id="b"><feMorphology radius="1" in="SourceAlpha" operator="dilate" result="shadowSpreadInner1"></feMorphology><feOffset in="shadowSpreadInner1" result="shadowOffsetInner1"></feOffset><feGaussianBlur in="shadowOffsetInner1" result="shadowBlurInner1"></feGaussianBlur><feComposite in="shadowBlurInner1" in2="SourceAlpha" operator="arithmetic" k2="-1" k3="1" result="shadowInnerInner1"></feComposite><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.14 0" in="shadowInnerInner1" result="shadowMatrixInner1"></feColorMatrix><feMerge><feMergeNode in="SourceGraphic"></feMergeNode><feMergeNode in="shadowMatrixInner1"></feMergeNode></feMerge></filter><rect id="d" x=".5" y=".5" width="20" height="14" rx="1"></rect></defs><g fill="none" fill-rule="evenodd"><mask id="c" fill="#fff"><use xlink:href="#a"></use></mask><use fill="#FFF" xlink:href="#a"></use><path fill="#435DB0" filter="url(#b)" mask="url(#c)" d="M0 0h9v7H0z"></path><path d="M1 1v1h1V1H1zm2 0v1h1V1H3zm2 0v1h1V1H5zm2 0v1h1V1H7zM6 2v1h1V2H6zM4 2v1h1V2H4zM2 2v1h1V2H2zM1 3v1h1V3H1zm2 0v1h1V3H3zm2 0v1h1V3H5zm2 0v1h1V3H7zM1 5v1h1V5H1zm2 0v1h1V5H3zm2 0v1h1V5H5zm2 0v1h1V5H7zM6 4v1h1V4H6zM4 4v1h1V4H4zM2 4v1h1V4H2z" fill="#A7B6E7" mask="url(#c)"></path><path d="M9 0v1h12V0H9zm0 2v1h12V2H9zm0 2v1h12V4H9zm0 2v1h12V6H9zM0 8v1h21V8H0zm0 2v1h21v-1H0zm0 2v1h21v-1H0zm0 2v1h21v-1H0z" fill="#ED4C49" mask="url(#c)"></path><use stroke-opacity=".157" stroke="#2F343A" xlink:href="#d"></use></g></svg>'},function(t,e){t.exports='<svg width="21" height="15" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><filter x="-50%" y="-50%" width="200%" height="200%" filterUnits="objectBoundingBox" id="b"><feMorphology radius="1" in="SourceAlpha" operator="dilate" result="shadowSpreadInner1"></feMorphology><feOffset in="shadowSpreadInner1" result="shadowOffsetInner1"></feOffset><feGaussianBlur in="shadowOffsetInner1" result="shadowBlurInner1"></feGaussianBlur><feComposite in="shadowBlurInner1" in2="SourceAlpha" operator="arithmetic" k2="-1" k3="1" result="shadowInnerInner1"></feComposite><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.0851619112 0" in="shadowInnerInner1" result="shadowMatrixInner1"></feColorMatrix><feMerge><feMergeNode in="SourceGraphic"></feMergeNode><feMergeNode in="shadowMatrixInner1"></feMergeNode></feMerge></filter><rect id="a" width="21" height="15" rx="2"></rect><rect id="d" x=".5" y=".5" width="20" height="14" rx="1"></rect></defs><g fill="none" fill-rule="evenodd"><mask id="c" fill="#fff"><use xlink:href="#a"></use></mask>
21<use fill="#1B3D87" filter="url(#b)" xlink:href="#a"></use><path fill="#D22F39" mask="url(#c)" d="M0 11h21v4H0z"></path><path fill="#FEC631" mask="url(#c)" d="M0 0h21v5H0z"></path><path d="M10 6v1h1V6h-1zm3 1v1h1V7h-1zm1 2v1h1V9h-1zM7 7v1h1V7H7zM6 9v1h1V9H6z" fill="#E8EBF3" mask="url(#c)"></path><use stroke-opacity=".157" stroke="#2F343A" xlink:href="#d"></use></g></svg>'},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(51),i=n(0),o=n(14),s=function(){function t(t){var e=this;this.create=function(t){e.g=t,e.g.attr("class",o.BarLayer)},this.update=function(){var t=e.state.getCategories(),n=e.state,s=n.series,a=n.categoryScale0,c=n.categoryScale1,l=n.valueScale,u=n.orientation,h=n.theme,f=u===i.ChartOrientation.HORIZONTAL,d=e.state.getInnerSize(),p=function(t,e,n){if(t.attr("x",(function(t){return f?0:c(t.seriesTitle)||0})).attr("y",(function(t){var n=e?d.height:l(t.value);return f?c(t.seriesTitle):n})).attr("width",(function(t){var n=e?0:l(t.value);return f?n:c.bandwidth()})).attr("height",(function(t){var n=e?0:d.height-l(t.value);return f?c.bandwidth():n})).attr("fill",(function(t,e){return t.color||s[e].color||"red"})),n&&n.barStroke){var r=n.barStroke,i=r.color,o=r.width;t.style("stroke-width",o).style("stroke",i)}},g=function(t){return t.selectAll("rect").data((function(t,e){return s.map((function(e,n){return{seriesTitle:e.title,seriesId:e.id,value:t.values[n],key:t.key,color:t.colors[n]}}))}),(function(t){return t.seriesTitle}))},m=e.g.selectAll("g").data(t,(function(t){return t.key})),y=m.empty(),_=y?0:250,v=y?0:250,b=y?0:v+_;m.exit().remove();var x=m.enter().append("g"),w=x.merge(m),E=w.node();w.on("mouseenter",(function(t,n){if(E){var i=r.mouse(E);e.onCategoryMouseEnter(n,{x:i[0],y:i[1]})}})).on("mouseleave",(function(t,n){e.onCategoryMouseLeave(n)})).on("mousemove",(function(t,n){if(E){var i=r.mouse(E);e.onCategoryMouseMove(n,{x:i[0],y:i[1]})}})).transition().delay(v).duration(_).attr("transform",(function(t){return f?"translate(0,"+a(t.key)+")":"translate("+a(t.key)+",0)"})),g(x).enter().append("rect").call(p,!0,h).on("click",(function(t,n){if(void 0!==e.state.onCategoryClicked&&void 0!==t.seriesId){r.event.stopPropagation();var i={x:r.event.x,y:r.event.y};e.onCategoryClick(t.seriesId,t.key,i)}})).classed(o.clickable,void 0!==e.state.onCategoryClicked).transition().delay(b).duration(250).attr("width",(function(t){return f?l(t.value):c.bandwidth()})).attr("height",(function(t){return f?c.bandwidth():d.height-l(t.value)})).attr("y",(function(t){return f?c(t.seriesTitle):l(t.value)}));var S=g(m);S.exit().remove();var C=S.enter().append("rect").call(p,!0,h);(S=C.merge(S)).transition().duration(250).call(p,!1)},this.state=t}return t.prototype.getGroups=function(){return this.g.selectAll("g")},t}();e.BarLayer=s},function(t,e){t.exports=n(5)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(53),i=n(0),o=n(14),s=function(t){var e=this;this.create=function(t){e.g=t.classed(o.bottomAxis,!0).classed("Axis",!0),e.update()},this.update=function(){var t=e.state.getBottomAxisScale();if(!t)throw"missing scale";if(!e.g)throw"missing group";e.g.style("visibility",e.state.wantsAxis?"visible":"hidden");var n,o=e.state,s=o.orientation,a=o.theme,c=e.state.getInnerSize(),l=e.state.isMobile?4:6;n=s===i.ChartOrientation.HORIZONTAL?-1*c.height:5;var u=r.axisBottom(t).ticks(l).tickSize(n);a&&a.hideAxisTicks&&u.tickSizeOuter(0);var h=e.state.getInnerSize(),f=e.state.getBottomAxisFormatter();if(f&&u.tickFormat(f),e.g.attr("transform","translate(0,"+h.height+")").call(u),a){var d=e.g.selectAll("g text");d.style("fill",a.axisTextColor).style("font-size",a.axisTextFontSize+"px"),a.axisLineWidth&&e.g.selectAll("path.domain").style("transform","translate(0, 0.5px)"),a.axisTextFontWeight&&d.style("font-weight",""+a.axisTextFontWeight),a.fontFamily&&d.style("font-family",a.fontFamily),a.hideAxisTicks&&e.g.selectAll("g.tick line").style("display","none")}},this.state=t};e.BottomAxis=s},function(t,e){t.exports=n(278)},function(t,e,n){"use strict";
21Object.defineProperty(e,"__esModule",{value:!0});var r=n(51),i=n(0),o=n(55),s=n(56),a=n(14),c=function(){function t(t,e,n){var i=this;this.div=r.select(e).append("div"),this.div.classed(a.chart,!0);var c=this.div.append("svg");c.style("font-family",'"Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif'),this.svg=c,this.state=this.createState(t),this.state.container=this.div,this.div.classed(a.compact,this.state.isCompact),this.div.classed(a[this.state.orientation],!0),this.mainGroup=c.append("g"),this.title=new s.Title(this.state),this.title.create(c.append("g")),n&&this.div.append("div").attr("class",a["extra-row"]).insert((function(){return n})),this.legendRow=this.div.append("div").attr("class",a["legend-row"]),this.sourceLink=new o.SourceLink(this.state),this.sourceLink.create(this.legendRow.append("div")),window.addEventListener("resize",(function(){return i.update()}));var l=this.state.theme;l&&(l.fontFamily&&(this.state.container.style("font-family",l.fontFamily),this.svg.style("font-family",l.fontFamily)),l.roundingStyle&&this.legendRow.classed(a[l.roundingStyle],!0),l.footerLineColor&&this.legendRow.style("border-color",l.footerLineColor)),setTimeout((function(){i.update()}),0)}return t.prototype.getOuterSize=function(){var t=this.state&&this.state.userSize.width,e=this.state&&this.state.userSize.height,n=this.svg.node().getBoundingClientRect();return{width:void 0!==t?t:n.width,height:void 0!==e?e:n.height}},t.prototype.updateConfig=function(t){this.state.updateConfig(t,this.getOuterSize()),this.update()},t.prototype.update=function(){var t=this.state.theme;this.state.outerSize=this.getOuterSize();var e=this.state.getOuterSize(),n=this.state.getInnerSize(),r=this.state.margin;if(this.svg.attr("width",e.width),this.svg.attr("height",e.height),this.mainGroup.attr("transform","translate("+r.left+","+r.top+")").attr("width",n.width).attr("height",n.height),this.div.classed(a.compact,this.state.isCompact),this.title.update(),this.sourceLink.update(),this.wantsBottomLegendRow()?this.legendRow.style("display",null):this.legendRow.style("display","none"),t){var i=this.svg.selectAll(".Axis path"),o=this.svg.selectAll(".Axis g.tick line"),s=this.svg.selectAll(".Axis g text");o.style("stroke",t.axisLineColor),i.style("stroke",t.axisLineColor),s.style("fill",t.axisTextColor).style("font-size",t.axisTextFontSize+"px"),t.axisTextFontWeight&&s.style("font-weight",""+t.axisTextFontWeight),t.fontFamily&&this.svg.selectAll("text").style("font-family",t.fontFamily),t.axisLineWidth&&(o.style("stroke-width",t.axisLineWidth),i.style("stroke-width",t.axisLineWidth)),t.hideAxisTicks&&o.style("display","none")}},t.prototype.wantsBottomLegendRow=function(){return!!(this.state.type!==i.ChartType.PIE&&this.state.type!==i.ChartType.HISTOGRAM||this.state.sourceLink)&&!this.state.isCompact&&(this.state.legend||this.state.sourceLink)},t}();e.Chart=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(14);function i(t){var e="utm_source=thinknum_media";return-1!==t.indexOf("?")?t+"&"+e:t+"?"+e}e.addUtmSourceToUrl=i;var o=function(){function t(t){var e=this;this.update=function(){e.state.sourceLink?e.selection.style("display",null):e.selection.style("display","none")},this.state=t}return t.prototype.create=function(t){this.selection=t,t.attr("class",r["source-link"]);var e=i(this.state.url||"https://www.thinknum.com");t.append("span").text("Source: Thinknum Alternative Data - ").append("a").attr("href",e).attr("target","_blank").text("Open dataset")},t}();e.SourceLink=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(14);e.titleHeight=50;var i=function(){function t(t){var e=this;this.update=function(){var t=e.state.isTitleVisible();e.selection.attr("display",t?"initial":"none");var n=e.state.outerSize.width;e.rect.attr("width",n),e.line.attr("x2",n)},this.state=t}return t.prototype.create=function(t){this.selection=t;var n=this.state.outerSize.width;t.attr("class",r.title),this.rect=t.append("rect").attr("width",n).attr("height",e.titleHeight).style("fill","none"),t.append("text").attr("text-anchor","start").attr("x",12).attr("y",30).html(this.state.title||""),this.line=t.append("line").attr("stroke","#eef3f7").attr("stroke-width",1).attr("x1",0).attr("y1",e.titleHeight+.5).attr("x2",n).attr("y2",e.titleHeight+.5);var i=this.state.theme;i&&(i.dividerColor&&this.line.style("stroke",i.dividerColor),i.dividerWidth&&this.line.style("stroke-width",i.dividerWidth).style("transform","translate(0, -0.5px)"))},t}();e.Title=i},function(t,e,n){"use strict";
21Object.defineProperty(e,"__esModule",{value:!0});var r=n(53),i=n(51),o=n(0),s=n(10),a=n(14),c=function(t){var e=this;this.create=function(t){e.g=t.classed("Axis",!0).classed(a.leftAxis,!0),e.tooltip=e.state.container.append("div").classed(a.axisTooltip,!0);var n=e.state.theme;n&&n.roundingStyle===o.RoundingStyle.EDGY&&e.tooltip.classed(a[n.roundingStyle],!0),e.update()},this.update=function(){var t=e.state.getLeftAxisScale();if(!t)throw"missing scale";if(!e.g)throw"missing group";var n,i=e.state,s=i.orientation,a=i.isCompact,c=i.theme;n=s===o.ChartOrientation.HORIZONTAL?0:a?5:4,e.g.style("visibility",e.state.wantsAxis?"visible":"hidden");var l=e.state.getValueAxisTickCount(),u=r.axisLeft(t).ticks(l).tickSizeInner(n);c&&c.hideAxisTicks&&u.tickSizeOuter(0);var h=e.state.getLeftAxisFormatter();h&&u.tickFormat(h),e.g.transition().call(u.bind(e));var f=e.state.getPrimaryAxisColor();if(f&&(e.g.selectAll("line").style("stroke",f),e.g.selectAll("path").style("stroke",f),e.g.selectAll("g text").style("fill",f)),e.state.type===o.ChartType.BAR&&s===o.ChartOrientation.HORIZONTAL&&e.updateTooltip(),c){var d=e.g.selectAll("g text");d.style("fill",c.axisTextColor).style("font-size",c.axisTextFontSize+"px"),c.axisLineWidth&&e.g.selectAll("path.domain").style("transform","translate(-0.5px, 0)"),c.axisTextFontWeight&&d.style("font-weight",""+c.axisTextFontWeight),c.fontFamily&&d.style("font-family",c.fontFamily)}},this.updateTooltip=function(){var t=e.state,n=t.margin,r=t.categoryScale0;e.g.selectAll(".tick").each((function(t,o,s){var a=s[o];i.select(a).on("mouseover",(function(t){if(e.isTruncated(a)){var i=t,o=e.tooltip;if(void 0!==o){o.transition().duration(250).style("opacity",1);var s=n.left+5,c=n.top+r(i);o.html(i).style("left",s+"px").style("top",c+"px")}}})).on("mouseout",(function(t){var n=e.tooltip;void 0!==n&&n.transition().duration(150).style("opacity",0)}))}))},this.isTruncated=function(t){var e=i.select(t).select("text");return null!=e&&e.nodes()[0].innerHTML.endsWith(s.overflownLabelEnding)},this.state=t};e.LeftAxis=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(51),i=n(14),o=function(){function t(t){var e=this;this.create=function(t){e.selection=t,t.attr("class",i.legend),e.update()},this.handleClickItem=function(t,n){e.state.toggleSeriesAt(n)},this.handleCircleClick=function(t,n,r){var i=e.state.onLegendDotClicked;i&&void 0!==t.id?i(t.id,r):e.state.toggleSeriesAt(n)},this.state=t}return t.prototype.update=function(){var t=this.selection;this.state.legend?this.selection.style("display",null):this.selection.style("display","none"),t.selectAll("div").remove();var e=t.selectAll("div").data(this.state.series);e.exit().remove();var n=e.enter().append("div").attr("class",i["legend-item"]).classed(i.disabled,(function(t){return!!t.isDisabled})).classed(i["no-text"],(function(t){return!t.title})),o=this.handleCircleClick;n.append("i").on("click",(function(t,e){r.event.stopPropagation();var n=r.select(this).node();if(n){var i=n.getBoundingClientRect();o(t,e,{x:i.left+6.5,y:i.top+5.7})}})).append("small").style("background-color",(function(t){return!0===t.isDisabled?"#c0d7e5":t.color||"#000"})),n.append("span").text((function(t){return t.title})).on("click",this.handleClickItem)},t}();e.Legend=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(14);e.createLegendBuckets=function(t,e){for(var n=t[0],r=t[1]-n,i=r/4,o=[],s=r>1?1:.01,a=0;a<4;a++){var c=i*a,l=i*(a+1);o.push({min:0===a?c:c+s,max:l})}return o};var i=function(){function t(t,e,n,i){this.seriesIndex=e,this.state=t,this.scale=n,this.g=i.append("g").attr("class",r["map-legend"]),this.g.append("text").attr("class",r.title).text("title goes here").attr("text-anchor","middle").attr("x",115)}return t.prototype.update=function(){var t=this,n=this.state.series[this.seriesIndex],i=n.title;this.g.select("text."+r.title).text(i);var o=this.state.getInnerSize(),s=n.legend||e.createLegendBuckets(this.scale.domain(),4),a=function(e){return void 0===e||isNaN(e)?"":t.state.formatValue(e)},c=s.map((function(e,n){var r,i=0===n;s.length,r=i&&0===e.min?"<"+a(e.max):a(e.min).replace(/[^0-9\.]/g,"")+"-"+a(e.max);var o=e.min+(e.max-e.min)/2;return{idx:n,label:r,color:t.scale(o)}})),l=this.g.selectAll("g.legend-part").data(c),u=l.enter().append("g").attr("class","legend-part");u.append("rect").attr("width",57.5).attr("height",15).attr("x",.5).attr("y",.5).style("stroke-width",1.5).style("stroke","#fff").style("rx",2).style("ry",2),u.append("text").attr("x",28.75).attr("y",30).attr("text-anchor","middle").text((function(t){return t.label})),u.merge(l).attr("transform",(function(t,e){return"translate("+57.5*e+", 15)"})).select("rect").style("fill",(function(t){return t.color})),this.g.attr("transform","translate(20, "+(o.height-50-20)+")")},t}();e.ColorScaleLegend=i},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});
21Object.defineProperty(e,"__esModule",{value:!0});var o=n(52),s=n(54),a=n(61),c=n(62),l=n(57),u=n(58),h=n(63),f=n(67),d=n(68),p=n(71),g=n(14),m=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.leftAxis=new l.LeftAxis(i.state),i.leftAxis.create(i.mainGroup.append("g")),i.rightAxis=new p.RightAxis(i.state),i.rightAxis.create(i.mainGroup.append("g")),i.bottomAxis=new o.BottomAxis(i.state),i.bottomAxis.create(i.mainGroup.append("g")),i.state.wantsHorizontalLine&&(i.horizontalLineLayer=new c.HorizontalLineLayer(i.state),i.horizontalLineLayer.create(i.mainGroup.append("g"))),i.tooltip=new f.LineChartTooltip(i.state),i.tooltipCaptureRectGroup=i.mainGroup.append("g"),i.tooltipGroup=i.mainGroup.append("g"),i.lineLayers=e.series.map((function(t,e){var n=t.useDots?new a.DotsLayer(i.state,e,i.tooltip):new d.LineLayer(i.state,e);return n.create(i.mainGroup.append("g")),n})),i.legend=new u.Legend(i.state),i.legend.create(i.legendRow.append("div")),setTimeout((function(){i.update()}),0),i.state.onChange=function(){i.update()},i}return i(e,t),e.prototype.createState=function(t){return new h.LineChartState(t,this.getOuterSize())},e.prototype.update=function(){t.prototype.update.call(this),this.tooltip.createHoverCaptureRectIfNeeded(this.tooltipCaptureRectGroup),this.tooltip.createIfNeeded(this.tooltipGroup),this.div.classed(g.mobile,this.state.isMobile);var e=this.state.getInnerSize();this.state.timeScale.rangeRound([0,e.width]),this.state.primaryValueScale.rangeRound([e.height,0]),this.state.secondaryValueScale.rangeRound([e.height,0]),this.leftAxis.update(),this.rightAxis.update(),this.bottomAxis.update(),this.tooltip.update(),this.legend.update(),this.horizontalLineLayer&&this.horizontalLineLayer.update();for(var n=0,r=this.lineLayers;n<r.length;n++)r[n].update()},e}(s.Chart);e.LineChart=m},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(14),i=function(){function t(t,e,n){var i=this;this.create=function(t){i.g=t,i.g.attr("class",r.DotsLayer),i.circles=i.g.append("g").attr("class",r.circlesLayer),i.verticalLines=i.g.append("g").attr("class",r.verticalLines),i.update()},this.handleMouseOver=function(t,e){i.tooltip.changeDate(t.date)},this.state=t,this.seriesIndex=e,this.tooltip=n}return t.prototype.update=function(){var t=this.state.timeScale,e=this.state.series[this.seriesIndex],n=this.state.getValueScaleForAxis(e.axis),r=e.data,i=e.color,o=this.state.getInnerSize(),s=this.circles.selectAll("circle").data(r);s.exit().remove();var a=s.enter().append("circle");a.attr("r",4).style("transform","translate(0.5px, 0px)").on("mouseover",this.handleMouseOver),a.merge(s).attr("fill",i).attr("cx",(function(e){return t(e.date)})).attr("cy",(function(t){return n(t.value)}));var c=this.verticalLines.selectAll("line").data(r);c.exit().remove();var l=c.enter().append("line");l.style("stroke-width","1px").style("transform","translate(0.5px, 0px)"),l.merge(c).style("stroke",i).attr("x1",(function(e){return t(e.date)})).attr("y1",o.height).attr("x2",(function(e){return t(e.date)})).attr("y2",(function(t){return n(t.value)})),this.g.attr("visibility",e.isDisabled?"hidden":"visible")},t}();e.DotsLayer=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(14),i=function(t){var e=this;this.create=function(t){e.g=t,e.line=e.g.append("line").classed(r.horizontalLine,!0)},this.update=function(){var t=e.state.series[0];if(t){var n=t.data;if(n&&0!==n.length){var r=n[n.length-1],i=e.state,o=i.timeScale,s=i.primaryValueScale,a=o.range(),c=s(r.value)+.5;e.line.attr("x1",a[0]-e.state.margin.left).attr("y1",c).attr("x2",a[1]+e.state.margin.right).attr("y2",c)}}},this.state=t};e.HorizontalLineLayer=i},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};
21Object.defineProperty(e,"__esModule",{value:!0});var s=n(6),a=n(3),c=n(64),l=n(7),u=n(65),h=n(5),f=n(10),d=n(66),p=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.showHourlyLegend=!1,r.showHourlyTooltip=!1,r.onLegendDotClicked=e.onLegendDotClicked,r.setLineChartConfig(e,n),r}return i(e,t),e.prototype.updateConfig=function(e,n){t.prototype.updateConfig.call(this,e,n),this.setLineChartConfig(e,n)},e.prototype.setLineChartConfig=function(t,e){this.series=t.series.map((function(t){return o(o({},t),{axis:t.axis||"left"})})),this.axesConfig=t.axesConfig,this.wantsHorizontalLine=!!t.wantsHorizontalLine;var n=this.getInnerSize();this.timeScale=this.createTimeScale(this.series,n);var r=this.series.filter((function(t){return"left"===t.axis})),i=this.series.filter((function(t){return"right"===t.axis})),s=0===r.filter((function(t){return!0!==t.flipValueAxis})).length,a=0===i.filter((function(t){return!0!==t.flipValueAxis})).length;this.primaryValueScale=this.createValueScale(r,[n.height,0],s),this.secondaryValueScale=this.createValueScale(i,[n.height,0],a),this.evaluateHourlyData()},e.prototype.evaluateHourlyData=function(){this.showHourlyLegend=!1,this.showHourlyTooltip=!1;var t=c.default(this.series);if(t){var e=this.timeScale.domain(),n=u(e[0]),r=u(e[1]).diff(n,"days"),i=c.default(t.data);if(i){for(var o=i.date.getUTCHours(),s=!1,a=0;a<t.data.length-1;a++){var l=t.data[a].date.getUTCHours();if(l!==o){s=!0;break}o=l}this.showHourlyTooltip=s,this.showHourlyLegend=s&&r<=7}}},e.prototype.createTimeScale=function(t,e){var n=t.map((function(t){return s.extent(t.data,(function(t){return t.date}))})),r=s.extent(l.default(n));if(r[0]===r[1]){var i=r[0];r=[u(i).subtract(1,"day").toDate(),u(i).add(1,"day").toDate()]}return a.scaleUtc().rangeRound([0,e.width]).domain(r)},e.prototype.getValueScaleForAxis=function(t){return"left"===t?this.primaryValueScale:this.secondaryValueScale},e.prototype.getLeftAxisScale=function(){return this.primaryValueScale},e.prototype.getRightAxisScale=function(){return this.secondaryValueScale},e.prototype.getBottomAxisScale=function(){return this.timeScale},e.prototype.getLeftAxisFormatter=function(){var t,e;return(null===(e=null===(t=this.axesConfig)||void 0===t?void 0:t.primary)||void 0===e?void 0:e.usePercent)?f.formatPercentage:this.formatValue},e.prototype.getRightAxisFormatter=function(){var t,e;return(null===(e=null===(t=this.axesConfig)||void 0===t?void 0:t.secondary)||void 0===e?void 0:e.usePercent)?f.formatPercentage:f.formatNatural},e.prototype.getBottomAxisFormatter=function(){var t=this.getBottomAxisScale(),e=this.getInnerSize().width<=250;if(this.isCompact||e){var n=t.domain(),r=u(n[0]),i=r.year(),o=u(n[1]),s=o.year();return o.diff(r,"days")>90?i!==s?d.utcFormat("%b %y"):d.utcFormat("%b"):d.utcFormat("%m/%d")}if(!0===this.showHourlyLegend)return d.utcFormat("%a %d, %I%p")},e}(h.ChartState);e.LineChartState=p},function(t,e){t.exports=n(198)},function(t,e){t.exports=n(43)},function(t,e){t.exports=n(139)},function(t,e,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},i=this&&this.__spreadArrays||function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],s=0,a=o.length;s<a;s++,i++)r[i]=o[s];return r};Object.defineProperty(e,"__esModule",{value:!0});var o=n(6),s=n(51),a=n(66),c=n(0),l=n(13),u=n(14),h=function(){function t(t){var e=this;this.bisectDate=o.bisector((function(t){return t.date})).left,this.createHoverCaptureRectIfNeeded=function(t){e.state.isCompact||(e.g=t,e.captureRect=e.g.append("rect").attr("class",u["hover-capture-rect"]).style("fill","transparent").on("mouseover",e.handleMouseOver).on("mouseout",e.handleMouseOut).on("mousemove",e.handleMouseMove))},this.createIfNeeded=function(t){if(!e.state.isCompact){e.g=t;var n=e.state.getInnerSize();e.tooltip=e.g.append("g").attr("class",u.hover).attr("transform","translate(0, 0)").style("display","none"),e.verticalLine=e.tooltip.append("line"),e.verticalLine.attr("class",u["hover-line"]).attr("x1",0).attr("y1",0).attr("x2",0).attr("y2",n.height),e.circles=e.tooltip.append("g").attr("class",u["hover-circles"]),e.bubble=new l.TooltipBubble(e.state);var r=e.state.theme;r&&(r.tooltipLineColor&&e.verticalLine.style("stroke",r.tooltipLineColor),r.tooltipLineWidth&&e.verticalLine.style("transform","none").style("stroke-width",r.tooltipLineWidth),r.tooltipLineDash&&e.verticalLine.style("stroke-dasharray",r.tooltipLineDash)),e.update(
21)}},this.handleMouseOver=function(){e.handleMouseMove(),e.tooltip.style("display",null),e.bubble.show()},this.handleMouseOut=function(){e.tooltip.style("display","none"),e.bubble.hide()},this.update=function(){if(!e.state.isCompact){var t=e.state.getInnerSize();e.captureRect.attr("x",-30).attr("width",t.width+60).attr("height",t.height),e.verticalLine.attr("y2",t.height)}},this.changeDate=function(t){e.state.showHourlyTooltip||t.setUTCHours(0,0,0,0),e.date=t,e.tooltip.style("display",null),e.handleTooltipUpdate()},this.handleMouseMove=function(){var t=s.mouse(e.captureRect.node()),n=e.state.timeScale.invert(t[0]);e.state.showHourlyTooltip||n.setUTCHours(0,0,0,0),e.date=n,e.handleTooltipUpdate()},this.state=t}return t.prototype.handleTooltipUpdate=function(){var t=this.date;if(t){var e=function(t,e){var n=f(t,e),o=n.result;if(n.isAnySerieValueDefined)return{result:o,targetDate:e};var s=i(o.primary,o.secondary).reduce((function(t,e){return e.lowerItem&&t.push(e.lowerItem),e.upperItem&&t.push(e.upperItem),t}),[]).map((function(t){return t.date}));if(0===s.length){var a=function(t,e){var n=t.filter((function(t){return t.data.length>0}));if(0!==n.length){var i=n.map((function(t){return t.data[0].date})),o=n.map((function(t){return t.data[t.data.length-1].date})),s=i.reduce((function(t,e){return t.getTime()<e.getTime()?t:e}),i[0]);if(e<s){var a=f(t,s);return r({targetDate:s},a)}var c=o.reduce((function(t,e){return t.getTime()>e.getTime()?t:e}),o[0]);return e>c?(a=f(t,c),r({targetDate:c},a)):void 0}}(t,e);if(a&&a.isAnySerieValueDefined){var c=a.result,l=a.targetDate;return{result:c,targetDate:l}}return{result:o,targetDate:e}}var u=e.getTime(),h=s.reduce((function(t,e){var n=t.getTime(),r=e.getTime();return Math.abs(r-u)<Math.abs(n-u)?e:t}),s[0]);return{result:f(t,h).result,targetDate:h}}(this.state.series,t),n=e.result,s=e.targetDate,a=this.state.getValueScaleForAxis("left"),c=this.state.getValueScaleForAxis("right"),l={left:this.state.getLeftAxisFormatter(),right:this.state.getRightAxisFormatter()},u=i(n.primary,n.secondary),h=function(t,e,n){for(var r=[],i=0,o=t;i<o.length;i++){var s=o[i],a=d(s.dataItem.value,y(s.axis,e,n));r.push(a)}return r}(u,a,c),p=h.filter((function(t){return void 0!==t}));if(0!==p.length){var g=this.state.timeScale(s),m=Math.round(function(t){var e=o.extent(t),n=e[0],r=e[1];return n===r?n:n+(r-n)/2}(p));this.tooltip.attr("transform","translate("+g+", 0)");var _=this.getTimeFormat(),v=(this.state.formatValue,_(s)),b=p.length>1,x=u.map((function(t,e){var n=t.dataItem.value,r=l[t.axis];return{value:void 0!==n?r(n):"N/A",label:b?t.title:void 0,color:t.color,axis:"right"===t.axis?"right":void 0}}));this.bubble.setLabels(v,x);var w,E=this.getTooltipWidths(),S=b?E[0]:E[1];w=g>S+20?g-S-20:g+20,this.bubble.setPosition({x:w,y:m,width:S}),this.bubble.show();var C=this.circles.selectAll("circle").data(u);C.exit().remove();var A=C.enter().append("circle");A.attr("r",4),A.merge(C).attr("fill",(function(t){return t.isDefined?t.color:"transparent"})).attr("cx",0).attr("cy",(function(t,e){if(!t.isDefined)return-50;var n=h[e];return void 0!==n?n:-50}))}else this.bubble.hide()}},t.prototype.getTimeFormat=function(){return!0===this.state.showHourlyTooltip?a.utcFormat("%B %d, %Y %I%p"):a.utcFormat("%B %d, %Y")},t.prototype.getTooltipWidths=function(){var t=this.state.theme;return t&&t.roundingStyle===c.RoundingStyle.EDGY?[250,250]:[210,160]},t}();function f(t,e){for(var n=!1,r={primary:[],secondary:[]},i=0,o=t;i<o.length;i++){var s=o[i],a=!0,c=g(s.data,e),l=void 0,u=void 0;if(void 0!==c)n=!0;else{a=!1;var h=m(s.data,e),f=h[0];l=f,u=h[1],c=f}if(void 0!==c){var d={color:s.color||"",axis:s.axis,title:s.title,dataItem:c,lowerItem:l,upperItem:u,isDefined:a};"left"===s.axis?r.primary.push(d):r.secondary.push(d)}}return{result:r,isAnySerieValueDefined:n}}function d(t,e){if(e)return e(t)}e.LineChartTooltip=h;var p=o.bisector((function(t){return t.date})).right;function g(t,e){for(var n,r,i=e.getTime(),o=0,s=t.length-1;o<=s;){if((r=t[n=Math.floor((o+s)/2)].date.getTime())===i)return t[n];r<i?o=n+1:s=n-1}}function m(t,e){var n=p(t,e);if(n>=t.length)return[void 0,void 0];var r=n,i=n-1;return[i>=0?t[i]:void 0,r<t.length?t[r]:void 0]}function y(t,e,n){return"left"===t?e:n}},function(t,e,n){"use strict";
21Object.defineProperty(e,"__esModule",{value:!0});var r=n(69),i=n(70),o=n(0),s=n(14),a=function(){function t(t,e){var n=this;this.create=function(t){n.g=t,n.g.attr("class",s.LineLayer);var e=n.state.series[n.seriesIndex],i=n.state.getValueScaleForAxis(e.axis);n.lineGenerator=r.line().x((function(t){return t.x})).y((function(t){return t.y})),n.areaGenerator=r.area().x((function(t){return t.x})).y1((function(t){return t.y})).y0(i.range()[0]),n.areaPath=n.g.append("path").classed(s.area,!0),n.linePath=n.g.append("path").classed(s.line,!0).style("fill","none").style("stroke-linejoin","round").style("stroke-linecap","round").style("stroke-width","2.0");var a=n.state.theme;a&&(a.lineWidth&&n.linePath.style("stroke-width",a.lineWidth),a.roundingStyle&&a.roundingStyle===o.RoundingStyle.EDGY&&n.linePath.style("stroke-linejoin","bevel").style("stroke-linecap","square")),n.update()},this.state=t,this.seriesIndex=e}return t.prototype.update=function(){var t=this.state.timeScale,e=this.state.series[this.seriesIndex],n=this.state.getValueScaleForAxis(e.axis),r=e.data,o=e.color,s=r.map((function(e){return{x:t(e.date),y:n(e.value)}}));s=i(s,1),this.areaGenerator.y0(n.range()[0]),this.areaPath.datum(s).attr("d",this.areaGenerator).style("fill",o),this.linePath.datum(s).attr("d",this.lineGenerator).style("stroke",o),this.linePath.attr("visibility",e.isDisabled?"hidden":"visible"),this.areaPath.attr("visibility","hidden")},t}();e.LineLayer=a},function(t,e){t.exports=n(347)},function(t,e){t.exports=n(722)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(53),i=n(14),o=function(t){var e=this;this.create=function(t){e.g=t.classed(i.rightAxis,!0).classed("Axis",!0),e.update()},this.update=function(){var t=e.state.theme,n=e.state.getRightAxisScale();if(!n)throw"missing scale";if(!e.g)throw"missing group";var i=e.state.wantsAxis&&e.state.needsSecondaryAxis();e.g.style("visibility",i?"visible":"hidden");var o=e.state.isCompact?3:4,s=e.state.getInnerSize(),a=r.axisRight(n).tickSizeOuter(0).ticks(o);t&&t.hideAxisTicks&&a.tickSizeOuter(0);var c=e.state.getRightAxisFormatter();c&&a.tickFormat(c),e.g.attr("transform","translate("+s.width+",0)").transition().call(a.bind(e));var l=e.state.getSecondaryAxisColor();l&&(e.g.selectAll("line").style("stroke",l),e.g.selectAll("path").style("stroke",l),e.g.selectAll("g text").style("fill",l)),t&&t.axisLineWidth&&e.g.selectAll("path.domain").style("transform","translate(0.5px, 0)")},this.state=t};e.RightAxis=o},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(54),s=n(73),a=n(74),c=function(t){function e(e,n){var r=this;return e.margin={top:50,right:0,bottom:0,left:0},(r=t.call(this,e,n)||this).mapLayers=e.series.map((function(t,e){var n=new a.MapLayer(r.state,e);return n.create(r.mainGroup.append("g")),n})),r}return i(e,t),e.prototype.createState=function(t){return new s.MapChartState(t,this.getOuterSize())},e.prototype.update=function(){t.prototype.update.call(this);for(var e=0,n=this.mapLayers;e<n.length;e++)n[e].update()},e}(o.Chart);e.MapChart=c},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.series=e.series,r}return i(e,t),e}(n(5).ChartState);e.MapChartState=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n(75);var r=n(6),i=n(76),o=n(3),s=n(51),a=n(77),c=n(59),l=n(13),u=n(14),h=n(78),f=function(){function t(t,e){this.state=t,this.seriesIndex=e}return t.prototype.create=function(t){this.g=t,this.countries=this.g.append("g").attr("class",u.countries),this.scale=o.scaleLinear(),this.bubble=new l.TooltipBubble(this.state),this.legend=new c.ColorScaleLegend(this.state,this.seriesIndex,this.scale,this.g)},t.prototype.update=function(){var t=this,e=this.state.getInnerSize(),n=e.width,o=e.height,s=i.geoMercator().scale(110).translate([n/2,o/1.5]),c=i.geoPath().projection(s);this.dataValues=this.prepareData(this.state.series[this.seriesIndex]);var l=r.extent(a.default(this.dataValues));this.scale.domain(l).range(["#71a4f4","#093e8c"]);var u=this.moveTooltip.bind(this),f=this.countries.selectAll("path").data(h.features);f.enter().append("path").on("mouseover",(function(e){t.showTooltip(e)})).on("mousemove",(function(t){u(this,t)})).on("mouseout",(function(){t.hideTooltip()})).merge(f).attr("d",c).style("fill",(function(e){var n=e.properties.name,r=t.dataValues[n];return void 0!==r?t.scale(r):"#e2edf2"})).style("stroke","#fff").style("stroke-width",1.5),f.exit().remove(),this.legend.update()},t.prototype.prepareData=function(t){var e={};return t.data.forEach((function(t){e[t.country]=t.value})),e.USA=e["United States"],e.England=e["United Kingdom"],e},t.prototype.showTooltip=function(t){var e=t.properties.name,n=this.dataValues[e];if(n){var r=this.state.formatValue(n);this.bubble.setLabels(e,[{value:r}]),this.bubble.show()}else this.bubble.hide()}
21,t.prototype.moveTooltip=function(t,e){var n=s.mouse(t),r=n[0],i=n[1];this.bubble.setPosition({x:r+10,y:i+10})},t.prototype.hideTooltip=function(){this.bubble.hide()},t}();e.MapLayer=f},function(t,e){t.exports=n(125)},function(t,e){t.exports=n(477)},function(t,e){t.exports=n(169)},function(t){t.exports=JSON.parse('{"type":"FeatureCollection","features":[{"type":"Feature","properties":{"name":"Afghanistan"},"geometry":{"type":"Polygon","coordinates":[[[61.210817,35.650072],[62.230651,35.270664],[62.984662,35.404041],[63.193538,35.857166],[63.982896,36.007957],[64.546479,36.312073],[64.746105,37.111818],[65.588948,37.305217],[65.745631,37.661164],[66.217385,37.39379],[66.518607,37.362784],[67.075782,37.356144],[67.83,37.144994],[68.135562,37.023115],[68.859446,37.344336],[69.196273,37.151144],[69.518785,37.608997],[70.116578,37.588223],[70.270574,37.735165],[70.376304,38.138396],[70.806821,38.486282],[71.348131,38.258905],[71.239404,37.953265],[71.541918,37.905774],[71.448693,37.065645],[71.844638,36.738171],[72.193041,36.948288],[72.63689,37.047558],[73.260056,37.495257],[73.948696,37.421566],[74.980002,37.41999],[75.158028,37.133031],[74.575893,37.020841],[74.067552,36.836176],[72.920025,36.720007],[71.846292,36.509942],[71.262348,36.074388],[71.498768,35.650563],[71.613076,35.153203],[71.115019,34.733126],[71.156773,34.348911],[70.881803,33.988856],[69.930543,34.02012],[70.323594,33.358533],[69.687147,33.105499],[69.262522,32.501944],[69.317764,31.901412],[68.926677,31.620189],[68.556932,31.71331],[67.792689,31.58293],[67.683394,31.303154],[66.938891,31.304911],[66.381458,30.738899],[66.346473,29.887943],[65.046862,29.472181],[64.350419,29.560031],[64.148002,29.340819],[63.550261,29.468331],[62.549857,29.318572],[60.874248,29.829239],[61.781222,30.73585],[61.699314,31.379506],[60.941945,31.548075],[60.863655,32.18292],[60.536078,32.981269],[60.9637,33.528832],[60.52843,33.676446],[60.803193,34.404102],[61.210817,35.650072]]]},"id":"AFG"},{"type":"Feature","properties":{"name":"Angola"},"geometry":{"type":"MultiPolygon","coordinates":[[[[16.326528,-5.87747],[16.57318,-6.622645],[16.860191,-7.222298],[17.089996,-7.545689],[17.47297,-8.068551],[18.134222,-7.987678],[18.464176,-7.847014],[19.016752,-7.988246],[19.166613,-7.738184],[19.417502,-7.155429],[20.037723,-7.116361],[20.091622,-6.94309],[20.601823,-6.939318],[20.514748,-7.299606],[21.728111,-7.290872],[21.746456,-7.920085],[21.949131,-8.305901],[21.801801,-8.908707],[21.875182,-9.523708],[22.208753,-9.894796],[22.155268,-11.084801],[22.402798,-10.993075],[22.837345,-11.017622],[23.456791,-10.867863],[23.912215,-10.926826],[24.017894,-11.237298],[23.904154,-11.722282],[24.079905,-12.191297],[23.930922,-12.565848],[24.016137,-12.911046],[21.933886,-12.898437],[21.887843,-16.08031],[22.562478,-16.898451],[23.215048,-17.523116],[21.377176,-17.930636],[18.956187,-17.789095],[18.263309,-17.309951],[14.209707,-17.353101],[14.058501,-17.423381],[13.462362,-16.971212],[12.814081,-16.941343],[12.215461,-17.111668],[11.734199,-17.301889],[11.640096,-16.673142],[11.778537,-15.793816],[12.123581,-14.878316],[12.175619,-14.449144],[12.500095,-13.5477],[12.738479,-13.137906],[13.312914,-12.48363],[13.633721,-12.038645],[13.738728,-11.297863],[13.686379,-10.731076],[13.387328,-10.373578],[13.120988,-9.766897],[12.87537,-9.166934],[12.929061,-8.959091],[13.236433,-8.562629],[12.93304,-7.596539],[12.728298,-6.927122],[12.227347,-6.294448],[12.322432,-6.100092],[12.735171,-5.965682],[13.024869,-5.984389],[13.375597,-5.864241],[16.326528,-5.87747]]],[[[12.436688,-5.684304],[12.182337,-5.789931],[11.914963,-5.037987],[12.318608,-4.60623],[12.62076,-4.438023],[12.995517,-4.781103],[12.631612,-4.991271],[12.468004,-5.248362],[12.436688,-5.684304]]]]},"id":"AGO"},{"type":"Feature","properties":{"name":"Albania"},"geometry":{"type":"Polygon","coordinates":[[[20.590247,41.855404],[20.463175,41.515089],[20.605182,41.086226],[21.02004,40.842727],[20.99999,40.580004],[20.674997,40.435],[20.615,40.110007],[20.150016,39.624998],[19.98,39.694993],[19.960002,39.915006],[19.406082,40.250773],[19.319059,40.72723],[19.40355,41.409566],[19.540027,41.719986],[19.371769,41.877548],[19.304486,42.195745],[19.738051,42.688247],[19.801613,42.500093],[20.0707,42.58863],[20.283755,42.32026],[20.52295,42.21787],[20.590247,41.855404]]]},"id":"ALB"},{"type":"Feature","properties":{"name":"United Arab Emirates"},"geometry":{"type":"Polygon","coordinates":[[[51.579519,24.245497],[51.757441,24.294073],[51.794389,24.019826],[52.577081,24.177439],[53.404007,24.151317],[54.008001,24.121758],[54.693024,24.797892],[55.439025,25.439145],[56.070821,26.055464],[56.261042,25.714606],[56.39
216847,24.924732],[55.886233,24.920831],[55.804119,24.269604],[55.981214,24.130543],[55.528632,23.933604],[55.525841,23.524869],[55.234489,23.110993],[55.208341,22.70833],[55.006803,22.496948],[52.000733,23.001154],[51.617708,24.014219],[51.579519,24.245497]]]},"id":"ARE"},{"type":"Feature","properties":{"name":"Argentina"},"geometry":{"type":"MultiPolygon","coordinates":[[[[-65.5,-55.2],[-66.45,-55.25],[-66.95992,-54.89681],[-67.56244,-54.87001],[-68.63335,-54.8695],[-68.63401,-52.63637],[-68.25,-53.1],[-67.75,-53.85],[-66.45,-54.45],[-65.05,-54.7],[-65.5,-55.2]]],[[[-64.964892,-22.075862],[-64.377021,-22.798091],[-63.986838,-21.993644],[-62.846468,-22.034985],[-62.685057,-22.249029],[-60.846565,-23.880713],[-60.028966,-24.032796],[-58.807128,-24.771459],[-57.777217,-25.16234],[-57.63366,-25.603657],[-58.618174,-27.123719],[-57.60976,-27.395899],[-56.486702,-27.548499],[-55.695846,-27.387837],[-54.788795,-26.621786],[-54.625291,-25.739255],[-54.13005,-25.547639],[-53.628349,-26.124865],[-53.648735,-26.923473],[-54.490725,-27.474757],[-55.162286,-27.881915],[-56.2909,-28.852761],[-57.625133,-30.216295],[-57.874937,-31.016556],[-58.14244,-32.044504],[-58.132648,-33.040567],[-58.349611,-33.263189],[-58.427074,-33.909454],[-58.495442,-34.43149],[-57.22583,-35.288027],[-57.362359,-35.97739],[-56.737487,-36.413126],[-56.788285,-36.901572],[-57.749157,-38.183871],[-59.231857,-38.72022],[-61.237445,-38.928425],[-62.335957,-38.827707],[-62.125763,-39.424105],[-62.330531,-40.172586],[-62.145994,-40.676897],[-62.745803,-41.028761],[-63.770495,-41.166789],[-64.73209,-40.802677],[-65.118035,-41.064315],[-64.978561,-42.058001],[-64.303408,-42.359016],[-63.755948,-42.043687],[-63.458059,-42.563138],[-64.378804,-42.873558],[-65.181804,-43.495381],[-65.328823,-44.501366],[-65.565269,-45.036786],[-66.509966,-45.039628],[-67.293794,-45.551896],[-67.580546,-46.301773],[-66.597066,-47.033925],[-65.641027,-47.236135],[-65.985088,-48.133289],[-67.166179,-48.697337],[-67.816088,-49.869669],[-68.728745,-50.264218],[-69.138539,-50.73251],[-68.815561,-51.771104],[-68.149995,-52.349983],[-68.571545,-52.299444],[-69.498362,-52.142761],[-71.914804,-52.009022],[-72.329404,-51.425956],[-72.309974,-50.67701],[-72.975747,-50.74145],[-73.328051,-50.378785],[-73.415436,-49.318436],[-72.648247,-48.878618],[-72.331161,-48.244238],[-72.447355,-47.738533],[-71.917258,-46.884838],[-71.552009,-45.560733],[-71.659316,-44.973689],[-71.222779,-44.784243],[-71.329801,-44.407522],[-71.793623,-44.207172],[-71.464056,-43.787611],[-71.915424,-43.408565],[-72.148898,-42.254888],[-71.746804,-42.051386],[-71.915734,-40.832339],[-71.680761,-39.808164],[-71.413517,-38.916022],[-70.814664,-38.552995],[-71.118625,-37.576827],[-71.121881,-36.658124],[-70.364769,-36.005089],[-70.388049,-35.169688],[-69.817309,-34.193571],[-69.814777,-33.273886],[-70.074399,-33.09121],[-70.535069,-31.36501],[-69.919008,-30.336339],[-70.01355,-29.367923],[-69.65613,-28.459141],[-69.001235,-27.521214],[-68.295542,-26.89934],[-68.5948,-26.506909],[-68.386001,-26.185016],[-68.417653,-24.518555],[-67.328443,-24.025303],[-66.985234,-22.986349],[-67.106674,-22.735925],[-66.273339,-21.83231],[-64.964892,-22.075862]]]]},"id":"ARG"},{"type":"Feature","properties":{"name":"Armenia"},"geometry":{"type":"Polygon","coordinates":[[[43.582746,41.092143],[44.97248,41.248129],[45.179496,40.985354],[45.560351,40.81229],[45.359175,40.561504],[45.891907,40.218476],[45.610012,39.899994],[46.034534,39.628021],[46.483499,39.464155],[46.50572,38.770605],[46.143623,38.741201],[45.735379,39.319719],[45.739978,39.473999],[45.298145,39.471751],[45.001987,39.740004],[44.79399,39.713003],[44.400009,40.005],[43.656436,40.253564],[43.752658,40.740201],[43.582746,41.092143]]]},"id":"ARM"},{"type":"Feature","properties":{"name":"Antarctica"},"geometry":{"type":"MultiPolygon","coordinates":[[[[-59.572095,-80.040179],[-59.865849,-80.549657],[-60.159656,-81.000327],[-62.255393,-80.863178],[-64.488125,-80.921934],[-65.741666,-80.588827],[-65.741666,-80.549657],[-66.290031,-80.255773],[-64.037688,-80.294944],[-61.883246,-80.39287],[-61.138976,-79.981371],[-60.610119,-79.628679],[-59.572095,-80.040179]]],[[[-159.208184,-79.497059],[-161.127601,-79.634209],[-162.439847,-79.281465],[-163.027408,-78.928774],[-163.066604,-78.869966],[-163.712896,-78.595667],[-163.712896,-78.595667],[-163.105801,-78.223338],[-161.245113,-78.3801
2176],[-160.246208,-78.693645],[-159.482405,-79.046338],[-159.208184,-79.497059]]],[[[-45.154758,-78.04707],[-43.920828,-78.478103],[-43.48995,-79.08556],[-43.372438,-79.516645],[-43.333267,-80.026123],[-44.880537,-80.339644],[-46.506174,-80.594357],[-48.386421,-80.829485],[-50.482107,-81.025442],[-52.851988,-80.966685],[-54.164259,-80.633528],[-53.987991,-80.222028],[-51.853134,-79.94773],[-50.991326,-79.614623],[-50.364595,-79.183487],[-49.914131,-78.811209],[-49.306959,-78.458569],[-48.660616,-78.047018],[-48.660616,-78.047019],[-48.151396,-78.04707],[-46.662857,-77.831476],[-45.154758,-78.04707]]],[[[-121.211511,-73.50099],[-119.918851,-73.657725],[-118.724143,-73.481353],[-119.292119,-73.834097],[-120.232217,-74.08881],[-121.62283,-74.010468],[-122.621735,-73.657778],[-122.621735,-73.657777],[-122.406245,-73.324619],[-121.211511,-73.50099]]],[[[-125.559566,-73.481353],[-124.031882,-73.873268],[-124.619469,-73.834097],[-125.912181,-73.736118],[-127.28313,-73.461769],[-127.28313,-73.461768],[-126.558472,-73.246226],[-125.559566,-73.481353]]],[[[-98.98155,-71.933334],[-97.884743,-72.070535],[-96.787937,-71.952971],[-96.20035,-72.521205],[-96.983765,-72.442864],[-98.198083,-72.482035],[-99.432013,-72.442864],[-100.783455,-72.50162],[-101.801868,-72.305663],[-102.330725,-71.894164],[-102.330725,-71.894164],[-101.703967,-71.717792],[-100.430919,-71.854993],[-98.98155,-71.933334]]],[[[-68.451346,-70.955823],[-68.333834,-71.406493],[-68.510128,-71.798407],[-68.784297,-72.170736],[-69.959471,-72.307885],[-71.075889,-72.503842],[-72.388134,-72.484257],[-71.8985,-72.092343],[-73.073622,-72.229492],[-74.19004,-72.366693],[-74.953895,-72.072757],[-75.012625,-71.661258],[-73.915819,-71.269345],[-73.915819,-71.269344],[-73.230331,-71.15178],[-72.074717,-71.190951],[-71.780962,-70.681473],[-71.72218,-70.309196],[-71.741791,-69.505782],[-71.173815,-69.035475],[-70.253252,-68.87874],[-69.724447,-69.251017],[-69.489422,-69.623346],[-69.058518,-70.074016],[-68.725541,-70.505153],[-68.451346,-70.955823]]],[[[-58.614143,-64.152467],[-59.045073,-64.36801],[-59.789342,-64.211223],[-60.611928,-64.309202],[-61.297416,-64.54433],[-62.0221,-64.799094],[-62.51176,-65.09303],[-62.648858,-65.484942],[-62.590128,-65.857219],[-62.120079,-66.190326],[-62.805567,-66.425505],[-63.74569,-66.503847],[-64.294106,-66.837004],[-64.881693,-67.150474],[-65.508425,-67.58161],[-65.665082,-67.953887],[-65.312545,-68.365335],[-64.783715,-68.678908],[-63.961103,-68.913984],[-63.1973,-69.227556],[-62.785955,-69.619419],[-62.570516,-69.991747],[-62.276736,-70.383661],[-61.806661,-70.716768],[-61.512906,-71.089045],[-61.375809,-72.010074],[-61.081977,-72.382351],[-61.003661,-72.774265],[-60.690269,-73.166179],[-60.827367,-73.695242],[-61.375809,-74.106742],[-61.96337,-74.439848],[-63.295201,-74.576997],[-63.74569,-74.92974],[-64.352836,-75.262847],[-65.860987,-75.635124],[-67.192818,-75.79191],[-68.446282,-76.007452],[-69.797724,-76.222995],[-70.600724,-76.634494],[-72.206776,-76.673665],[-73.969536,-76.634494],[-75.555977,-76.712887],[-77.24037,-76.712887],[-76.926979,-77.104802],[-75.399294,-77.28107],[-74.282876,-77.55542],[-73.656119,-77.908112],[-74.772536,-78.221633],[-76.4961,-78.123654],[-77.925858,-78.378419],[-77.984666,-78.789918],[-78.023785,-79.181833],[-76.848637,-79.514939],[-76.633224,-79.887216],[-75.360097,-80.259545],[-73.244852,-80.416331],[-71.442946,-80.69063],[-70.013163,-81.004151],[-68.191646,-81.317672],[-65.704279,-81.474458],[-63.25603,-81.748757],[-61.552026,-82.042692],[-59.691416,-82.37585],[-58.712121,-82.846106],[-58.222487,-83.218434],[-57.008117,-82.865691],[-55.362894,-82.571755],[-53.619771,-82.258235],[-51.543644,-82.003521],[-49.76135,-81.729171],[-47.273931,-81.709586],[-44.825708,-81.846735],[-42.808363,-82.081915],[-42.16202,-81.65083],[-40.771433,-81.356894],[-38.244818,-81.337309],[-36.26667,-81.121715],[-34.386397,-80.906172],[-32.310296,-80.769023],[-30.097098,-80.592651],[-28.549802,-80.337938],[-29.254901,-79.985195],[-29.685805,-79.632503],[-29.685805,-79.260226],[-31.624808,-79.299397],[-33.681324,-79.456132],[-35.639912,-79.456132],[-35.914107,-79.083855],[-35.77701,-78.339248],[-35.326546,-78.123654],[-33.896763,-77.888526],[-32.212369,-77.65345],[-30.998051,-77.359515],[-29.783732,-77.065579],[-28.882779,-76.673665],[-27.511752,-76.497345],[-26.160336,-76.360144],[-25.474822,-76.281803],[-23.927552,-76.24258],[-22.458598,-76.105431],[-21.224694,-75.909474],[-20.010375,-75.674346],[-18.913543,-75.439218],[-17.522982,-75.125698],[-16.641589,-74.79254],[-15.701491,-74.498604],[-15.40771,-74.106742],[-16.46532,-73.871614],[-16.112784,-73.460114],[-15.446855,-73.146542],[-14.408805,-72.950585],[-13.311973,-72.715457],[-12.293508,-72.401936],[-11.510067,-72.010074],[-11.020433,-71.539767],[-10.295774,-71.265416],[-9.101015,-71.324224],[-8.611381,-71.65733],[-7.416622,-71.696501],[-7.377451,-71.324224],[-6.868232,-70.93231],[-5.790985,-71.030289],[-5.536375,-71.402617],[-4.341667,-71.461373],[-3.048981,-71.285053],[-1.795492,-71.167438],[-0.659489,-71.226246],[-0.228637,-71.637745],[0.868195,-71.304639],[1.886686,-71.128267],[3.022638,-70.991118],[4.139055,-70.853917],[5.157546,-70.618789],[6.273912,-70.462055],[7.13572,-70.246512],[7.742866,-69.893769],[8.48711,-70.148534],[9.525135,-70.011333],[10.249845,-70.48164],[10.817821,-70.834332],[11.953824,-70.638375],[12.404287,-70.246512],[13.422778,-69.972162],[14.734998,-70.030918],[15.126757,-70.403247],[15.949342,-70.030918],[17.026589,-69.913354],[18.201711,-69.874183],[19.259373,-69.893769],[20.375739,-70.011333],[21.452985,-70.07014],[21.923034,-70.403247],[22.569403,-70.697182],[23.666184,-70.520811],[24.841357,-70.48164],[25.977309,-70.48164],[27.093726,-70.462055],[28.09258,-70.324854],[29.150242,-70.20729],[30.031583,-69.93294],[30.971733,-69.75662],[31.990172,-69.658641],[32.754053,-69.384291],[33.302443,-68.835642],[33.870419,-68.502588],[34.908495,-68.659271],[35.300202,-69.012014],[36.16201,-69.247142],[37.200035,-69.168748],[37.905108,-69.52144],[38.649404,-69.776205],[39.667894,-69.541077],[40.020431,-69.109941],[40.921358,-68.93362
211],[41.959434,-68.600514],[42.938702,-68.463313],[44.113876,-68.267408],[44.897291,-68.051866],[45.719928,-67.816738],[46.503343,-67.601196],[47.44344,-67.718759],[48.344419,-67.366068],[48.990736,-67.091718],[49.930885,-67.111303],[50.753471,-66.876175],[50.949325,-66.523484],[51.791547,-66.249133],[52.614133,-66.053176],[53.613038,-65.89639],[54.53355,-65.818049],[55.414943,-65.876805],[56.355041,-65.974783],[57.158093,-66.249133],[57.255968,-66.680218],[58.137361,-67.013324],[58.744508,-67.287675],[59.939318,-67.405239],[60.605221,-67.679589],[61.427806,-67.953887],[62.387489,-68.012695],[63.19049,-67.816738],[64.052349,-67.405239],[64.992447,-67.620729],[65.971715,-67.738345],[66.911864,-67.855909],[67.891133,-67.934302],[68.890038,-67.934302],[69.712624,-68.972791],[69.673453,-69.227556],[69.555941,-69.678226],[68.596258,-69.93294],[67.81274,-70.305268],[67.949889,-70.697182],[69.066307,-70.677545],[68.929157,-71.069459],[68.419989,-71.441788],[67.949889,-71.853287],[68.71377,-72.166808],[69.869307,-72.264787],[71.024895,-72.088415],[71.573285,-71.696501],[71.906288,-71.324224],[72.454627,-71.010703],[73.08141,-70.716768],[73.33602,-70.364024],[73.864877,-69.874183],[74.491557,-69.776205],[75.62756,-69.737034],[76.626465,-69.619419],[77.644904,-69.462684],[78.134539,-69.07077],[78.428371,-68.698441],[79.113859,-68.326216],[80.093127,-68.071503],[80.93535,-67.875546],[81.483792,-67.542388],[82.051767,-67.366068],[82.776426,-67.209282],[83.775331,-67.30726],[84.676206,-67.209282],[85.655527,-67.091718],[86.752359,-67.150474],[87.477017,-66.876175],[87.986289,-66.209911],[88.358411,-66.484261],[88.828408,-66.954568],[89.67063,-67.150474],[90.630365,-67.228867],[91.5901,-67.111303],[92.608539,-67.189696],[93.548637,-67.209282],[94.17542,-67.111303],[95.017591,-67.170111],[95.781472,-67.385653],[96.682399,-67.248504],[97.759646,-67.248504],[98.68021,-67.111303],[99.718182,-67.248504],[100.384188,-66.915346],[100.893356,-66.58224],[101.578896,-66.30789],[102.832411,-65.563284],[103.478676,-65.700485],[104.242557,-65.974783],[104.90846,-66.327527],[106.181561,-66.934931],[107.160881,-66.954568],[108.081393,-66.954568],[109.15864,-66.837004],[110.235835,-66.699804],[111.058472,-66.425505],[111.74396,-66.13157],[112.860378,-66.092347],[113.604673,-65.876805],[114.388088,-66.072762],[114.897308,-66.386283],[115.602381,-66.699804],[116.699161,-66.660633],[117.384701,-66.915346],[118.57946,-67.170111],[119.832924,-67.268089],[120.871,-67.189696],[121.654415,-66.876175],[122.320369,-66.562654],[123.221296,-66.484261],[124.122274,-66.621462],[125.160247,-66.719389],[126.100396,-66.562654],[127.001427,-66.562654],[127.882768,-66.660633],[128.80328,-66.758611],[129.704259,-66.58224],[130.781454,-66.425505],[131.799945,-66.386283],[132.935896,-66.386283],[133.85646,-66.288304],[134.757387,-66.209963],[135.031582,-65.72007],[135.070753,-65.308571],[135.697485,-65.582869],[135.873805,-66.033591],[136.206705,-66.44509],[136.618049,-66.778197],[137.460271,-66.954568],[138.596223,-66.895761],[139.908442,-66.876175],[140.809421,-66.817367],[142.121692,-66.817367],[143.061842,-66.797782],[144.374061,-66.837004],[145.490427,-66.915346],[146.195552,-67.228867],[145.999699,-67.601196],[146.646067,-67.895131],[147.723263,-68.130259],[148.839629,-68.385024],[150.132314,-68.561292],[151.483705,-68.71813],[152.502247,-68.874813],[153.638199,-68.894502],[154.284567,-68.561292],[155.165857,-68.835642],[155.92979,-69.149215],[156.811132,-69.384291],[158.025528,-69.482269],[159.181013,-69.599833],[159.670699,-69.991747],[160.80665,-70.226875],[161.570479,-70.579618],[162.686897,-70.736353],[163.842434,-70.716768],[164.919681,-70.775524],[166.11444,-70.755938],[167.309095,-70.834332],[168.425616,-70.971481],[169.463589,-71.20666],[170.501665,-71.402617],[171.20679,-71.696501],[171.089227,-72.088415],[170.560422,-72.441159],[170.109958,-72.891829],[169.75737,-73.24452],[169.287321,-73.65602],[167.975101,-73.812806],[167.387489,-74.165498],[166.094803,-74.38104],[165.644391,-74.772954],[164.958851,-75.145283],[164.234193,-75.458804],[163.822797,-75.870303],[163.568239,-76.24258],[163.47026,-76.693302],[163.489897,-77.065579],[164.057873,-77.457442],[164.273363,-77.82977],[164.743464,-78.182514],[166.604126,-78.319611],[166.995781,-78.750748],[165.193876,-78.907483],[163.666217,-79.123025],[161.766385,-79.162248],[160.924162,-79.730482],[160.747894,-80.200737],[160.316964,-80.573066],[159.788211,-80.945395],[161.120016,-81.278501],[161.629287,-81.690001],[162.490992,-82.062278],[163.705336,-82.395435
21],[165.095949,-82.708956],[166.604126,-83.022477],[168.895665,-83.335998],[169.404782,-83.825891],[172.283934,-84.041433],[172.477049,-84.117914],[173.224083,-84.41371],[175.985672,-84.158997],[178.277212,-84.472518],[180,-84.71338],[-179.942499,-84.721443],[-179.058677,-84.139412],[-177.256772,-84.452933],[-177.140807,-84.417941],[-176.084673,-84.099259],[-175.947235,-84.110449],[-175.829882,-84.117914],[-174.382503,-84.534323],[-173.116559,-84.117914],[-172.889106,-84.061019],[-169.951223,-83.884647],[-168.999989,-84.117914],[-168.530199,-84.23739],[-167.022099,-84.570497],[-164.182144,-84.82521],[-161.929775,-85.138731],[-158.07138,-85.37391],[-155.192253,-85.09956],[-150.942099,-85.295517],[-148.533073,-85.609038],[-145.888918,-85.315102],[-143.107718,-85.040752],[-142.892279,-84.570497],[-146.829068,-84.531274],[-150.060732,-84.296146],[-150.902928,-83.904232],[-153.586201,-83.68869],[-153.409907,-83.23802],[-153.037759,-82.82652],[-152.665637,-82.454192],[-152.861517,-82.042692],[-154.526299,-81.768394],[-155.29018,-81.41565],[-156.83745,-81.102129],[-154.408787,-81.160937],[-152.097662,-81.004151],[-150.648293,-81.337309],[-148.865998,-81.043373],[-147.22075,-80.671045],[-146.417749,-80.337938],[-146.770286,-79.926439],[-148.062947,-79.652089],[-149.531901,-79.358205],[-151.588416,-79.299397],[-153.390322,-79.162248],[-155.329376,-79.064269],[-155.975668,-78.69194],[-157.268302,-78.378419],[-158.051768,-78.025676],[-158.365134,-76.889207],[-157.875474,-76.987238],[-156.974573,-77.300759],[-155.329376,-77.202728],[-153.742832,-77.065579],[-152.920247,-77.496664],[-151.33378,-77.398737],[-150.00195,-77.183143],[-148.748486,-76.908845],[-147.612483,-76.575738],[-146.104409,-76.47776],[-146.143528,-76.105431],[-146.496091,-75.733154],[-146.20231,-75.380411],[-144.909624,-75.204039],[-144.322037,-75.537197],[-142.794353,-75.34124],[-141.638764,-75.086475],[-140.209007,-75.06689],[-138.85759,-74.968911],[-137.5062,-74.733783],[-136.428901,-74.518241],[-135.214583,-74.302699],[-134.431194,-74.361455],[-133.745654,-74.439848],[-132.257168,-74.302699],[-130.925311,-74.479019],[-129.554284,-74.459433],[-128.242038,-74.322284],[-126.890622,-74.420263],[-125.402082,-74.518241],[-124.011496,-74.479019],[-122.562152,-74.498604],[-121.073613,-74.518241],[-119.70256,-74.479019],[-118.684145,-74.185083],[-117.469801,-74.028348],[-116.216312,-74.243891],[-115.021552,-74.067519],[-113.944331,-73.714828],[-113.297988,-74.028348],[-112.945452,-74.38104],[-112.299083,-74.714198],[-111.261059,-74.420263],[-110.066325,-74.79254],[-108.714909,-74.910103],[-107.559346,-75.184454],[-106.149148,-75.125698],[-104.876074,-74.949326],[-103.367949,-74.988497],[-102.016507,-75.125698],[-100.645531,-75.302018],[-100.1167,-74.870933],[-100.763043,-74.537826],[-101.252703,-74.185083],[-102.545337,-74.106742],[-103.113313,-73.734413],[-103.328752,-73.362084],[-103.681289,-72.61753],[-102.917485,-72.754679],[-101.60524,-72.813436],[-100.312528,-72.754679],[-99.13738,-72.911414],[-98.118889,-73.20535],[-97.688037,-73.558041],[-96.336595,-73.616849],[-95.043961,-73.4797],[-93.672907,-73.283743],[-92.439003,-73.166179],[-91.420564,-73.401307],[-90.088733,-73.322914],[-89.226951,-72.558722],[-88.423951,-73.009393],[-87.268337,-73.185764],[-86.014822,-73.087786],[-85.192236,-73.4797],[-83.879991,-73.518871],[-82.665646,-73.636434],[-81.470913,-73.851977],[-80.687447,-73.4797],[-80.295791,-73.126956],[-79.296886,-73.518871],[-77.925858,-73.420892],[-76.907367,-73.636434],[-76.221879,-73.969541],[-74.890049,-73.871614],[-73.852024,-73.65602],[-72.833533,-73.401307],[-71.619215,-73.264157],[-70.209042,-73.146542],[-68.935916,-73.009393],[-67.956622,-72.79385],[-67.369061,-72.480329],[-67.134036,-72.049244],[-67.251548,-71.637745],[-67.56494,-71.245831],[-67.917477,-70.853917],[-68.230843,-70.462055],[-68.485452,-70.109311],[-68.544209,-69.717397],[-68.446282,-69.325535],[-67.976233,-68.953206],[-67.5845,-68.541707],[-67.427843,-68.149844],[-67.62367,-67.718759],[-67.741183,-67.326845],[-67.251548,-66.876175],[-66.703184,-66.58224],[-66.056815,-66.209963],[-65.371327,-65.89639],[-64.568276,-65.602506],[-64.176542,-65.171423],[-63.628152,-64.897073],[-63.001394,-64.642308],[-62.041686,-64.583552],[-61.414928,-64.270031],[-60.709855,-64.074074],[-59.887269,-63.95651],[-59.162585,-63.701745],[-58.594557,-63.388224],[-57.811143,-63.27066],[-57.223582,-63.525425],[-57.59573,-63.858532],[-58.614143,-64.152467]]]]},"id":"ATA"},{"type":"Feature","properties":{"name":"French Southern and Antarctic Lands"},"geometry":{"type":"Polygon","coordinates":[[[68.935,-48.625],[69.58,-48.94],[70.525,-49.065],[70.56,-49.255],[70.28,-49.71],[68.745,-49.775],[68.72,-49.2425],[68.8675,-48.83],[68.935,-48.625]]]},"id":"ATF"},{"type":"Feature","properties":{"name":"Australia"},"geometry":{"type":"MultiPolygon","coordinates":[[[[145.397978,
21-40.792549],[146.364121,-41.137695],[146.908584,-41.000546],[147.689259,-40.808258],[148.289068,-40.875438],[148.359865,-42.062445],[148.017301,-42.407024],[147.914052,-43.211522],[147.564564,-42.937689],[146.870343,-43.634597],[146.663327,-43.580854],[146.048378,-43.549745],[145.43193,-42.693776],[145.29509,-42.03361],[144.718071,-41.162552],[144.743755,-40.703975],[145.397978,-40.792549]]],[[[143.561811,-13.763656],[143.922099,-14.548311],[144.563714,-14.171176],[144.894908,-14.594458],[145.374724,-14.984976],[145.271991,-15.428205],[145.48526,-16.285672],[145.637033,-16.784918],[145.888904,-16.906926],[146.160309,-17.761655],[146.063674,-18.280073],[146.387478,-18.958274],[147.471082,-19.480723],[148.177602,-19.955939],[148.848414,-20.39121],[148.717465,-20.633469],[149.28942,-21.260511],[149.678337,-22.342512],[150.077382,-22.122784],[150.482939,-22.556142],[150.727265,-22.402405],[150.899554,-23.462237],[151.609175,-24.076256],[152.07354,-24.457887],[152.855197,-25.267501],[153.136162,-26.071173],[153.161949,-26.641319],[153.092909,-27.2603],[153.569469,-28.110067],[153.512108,-28.995077],[153.339095,-29.458202],[153.069241,-30.35024],[153.089602,-30.923642],[152.891578,-31.640446],[152.450002,-32.550003],[151.709117,-33.041342],[151.343972,-33.816023],[151.010555,-34.31036],[150.714139,-35.17346],[150.32822,-35.671879],[150.075212,-36.420206],[149.946124,-37.109052],[149.997284,-37.425261],[149.423882,-37.772681],[148.304622,-37.809061],[147.381733,-38.219217],[146.922123,-38.606532],[146.317922,-39.035757],[145.489652,-38.593768],[144.876976,-38.417448],[145.032212,-37.896188],[144.485682,-38.085324],[143.609974,-38.809465],[142.745427,-38.538268],[142.17833,-38.380034],[141.606582,-38.308514],[140.638579,-38.019333],[139.992158,-37.402936],[139.806588,-36.643603],[139.574148,-36.138362],[139.082808,-35.732754],[138.120748,-35.612296],[138.449462,-35.127261],[138.207564,-34.384723],[137.71917,-35.076825],[136.829406,-35.260535],[137.352371,-34.707339],[137.503886,-34.130268],[137.890116,-33.640479],[137.810328,-32.900007],[136.996837,-33.752771],[136.372069,-34.094766],[135.989043,-34.890118],[135.208213,-34.47867],[135.239218,-33.947953],[134.613417,-33.222778],[134.085904,-32.848072],[134.273903,-32.617234],[132.990777,-32.011224],[132.288081,-31.982647],[131.326331,-31.495803],[129.535794,-31.590423],[128.240938,-31.948489],[127.102867,-32.282267],[126.148714,-32.215966],[125.088623,-32.728751],[124.221648,-32.959487],[124.028947,-33.483847],[123.659667,-33.890179],[122.811036,-33.914467],[122.183064,-34.003402],[121.299191,-33.821036],[120.580268,-33.930177],[119.893695,-33.976065],[119.298899,-34.509366],[119.007341,-34.464149],[118.505718,-34.746819],[118.024972,-35.064733],[117.295507,-35.025459],[116.625109,-35.025097],[115.564347,-34.386428],[115.026809,-34.196517],[115.048616,-33.623425],[115.545123,-33.487258],[115.714674,-33.259572],[115.679379,-32.900369],[115.801645,-32.205062],[115.689611,-31.612437],[115.160909,-30.601594],[114.997043,-30.030725],[115.040038,-29.461095],[114.641974,-28.810231],[114.616498,-28.516399],[114.173579,-28.118077],[114.048884,-27.334765],[113.477498,-26.543134],[113.338953,-26.116545],[113.778358,-26.549025],[113.440962,-25.621278],[113.936901,-25.911235],[114.232852,-26.298446],[114.216161,-25.786281],[113.721255,-24.998939],[113.625344,-24.683971],[113.393523,-24.384764],[113.502044,-23.80635],[113.706993,-23.560215],[113.843418,-23.059987],[113.736552,-22.475475],[114.149756,-21.755881],[114.225307,-22.517488],[114.647762,-21.82952],[115.460167,-21.495173],[115.947373,-21.068688],[116.711615,-20.701682],[117.166316,-20.623599],[117.441545,-20.746899],[118.229559,-20.374208],[118.836085,-20.263311],[118.987807,-20.044203],[119.252494,-19.952942],[119.805225,-19.976506],[120.85622,-19.683708],[121.399856,-19.239756],[121.655138,-18.705318],[122.241665,-18.197649],[122.286624,-17.798603],[122.312772,-17.254967],[123.012574,-16.4052],[123.433789,-17.268558],[123.859345,-17.069035],[123.503242,-16.596506],[123.817073,-16.111316],[124.258287,-16.327944],[124.379726,-15.56706],[124.926153,-15.0751],[125.167275,-14.680396],[125.670087,-14.51007],[125.685796,-14.230656],[126.125149,-14.347341],[126.142823,-14.095987],[126.582589,-13.952791],[127.065867,-13.817968],[127.804633,-14.276906],[128.35969,-14.86917],[128.985543,-14.875991],[129.621473,-14.969784],[129.4096,-14.42067],[129.888641,-13.618703],[130.339466,-13.357376],[130.183506,-13.10752],[130.617795,-12.536392],[131.223495,-12.183649],[131.735091,-12.302453],[132.575298,-12.114041],[132.557212,-11.603012],[131.824698,-11.273782],[132.357224,-11.128519],[133.019561,-11.376411],[133.550846,-11.786515],[134.393068,-12.042365],[134.678632,-11.941183],[135.298491,-12.248606],[135.882693,-11.962267],[136.258381,-12.049342],[136.492475,-11.857209],[136.95162,-12.351959],[136.685125,-12.887223],[136.305407,-13.29123],[135.961758,-13.324509],[136.077617,-13.724278],[135.783836,-14.223989],[135.428664,-14.715432],[135.500184,-14.997741],[136.295175,-15.550265],[137.06536,-15.870762],[137.580471,-16.215082],[138.303217,-16.807604],[138.585164,-16.806622],[139.108543,-17.062679],[139.260575,-17.371601],[140.215245,-17.710805],[140.875463,-17.369069],[141.07111,-16.832047],[141.274095,-16.38887],[141.398222,-15.840532],[141.702183,-15.044921],[141.56338,-14.561333],[141.63552,-14.270395],[141.519869,-13.698078],[141.65092,-12.944688],[141.842691,-12.741548],[141.68699,-12.407614],[141.928629,-11.877466],[142.118488,-11.328042],[142.143706,-11.042737],[142.51526,-10.668186],[142.79731,-11.157355],[142.866763,-11.784707],[143.115947,-11.90563],[143.158632,-12.325656],[143.522124,-12.834358],[143.597158,-13.400422],[143.561811,-13.763656]]]]},"id":"AUS"},{"type":"Feature","properties":{"name":"Austria"},"geometry":{"type":"Polygon","coordinates":[[[16.979667,48.123497],[16.903754,47.714866],[16.340584,47.712902],[16.534268,47.496171],[16.202298,46.852386],[16.011664,46.683611],[15.137092,46.658703],[14.632472,46.431817],[13.806475,46.509306],[12.376485,46.767559],[12.153088,47.115393],[11.164828,46.941579],[11.048556,46.751359],[10.442701,46.893546],[9.932448,46.920728],[9.47997,47.10281],[9.632932,47.347601],[9.594226,47.525058],[9.896068,47.580197],[10.402084,47.302488],[10.544504,47.566399],[11.426414,47.523766],[12.141357,47.703083],[12.62076,47.672388],[12.932627,47.467646],[13.025851,47.637584],[12.884103,48.289146],[13.243357,48.416115],[13.595946,48.877172],[14.338898,48.555305],[14.901447,48.964402],[15.253416,49.039074],[16.029647,48.733899],[16.499283,48.785808],[16.960288,48.596982],[16.879983,48.470013],[16.979667,48.123497]]]},"id":"AUT"},{"type":"Feature","properties":{"name":"Azerbaijan"},"geometry":{"type":"MultiPolygon","coordinates":[[[[45.001987,39.740004],[45.298145,39.471751],[45.739978,39.473999],[45.735379,39.319719],[46.143623,38.741201],[45.457722,38.874139],[44.952688,39.335765],[44.79399,39.713003],[45.001987,39.740004]]],[[[47.373315,41.219732],[47.815666,41.151416],[47.987283,41.405819],[48.584353,41.80887],[49.110264,41.282287],[49.618915,40.572924],[50.08483,40.526157],[50.392821,40.256561],[49.569202,40.176101],[49.395259,39.399482],[49.223228,39.049219],[48.856532,38.815486],[48.883249,38.320245],[48.634375,38.270378],[48.010744,38.794015],[48.355529,39.288765],[48.060095,39.582235],[47.685079,39.508364],[46.50
21572,38.770605],[46.483499,39.464155],[46.034534,39.628021],[45.610012,39.899994],[45.891907,40.218476],[45.359175,40.561504],[45.560351,40.81229],[45.179496,40.985354],[44.97248,41.248129],[45.217426,41.411452],[45.962601,41.123873],[46.501637,41.064445],[46.637908,41.181673],[46.145432,41.722802],[46.404951,41.860675],[46.686071,41.827137],[47.373315,41.219732]]]]},"id":"AZE"},{"type":"Feature","properties":{"name":"Burundi"},"geometry":{"type":"Polygon","coordinates":[[[29.339998,-4.499983],[29.276384,-3.293907],[29.024926,-2.839258],[29.632176,-2.917858],[29.938359,-2.348487],[30.469696,-2.413858],[30.527677,-2.807632],[30.743013,-3.034285],[30.752263,-3.35933],[30.50556,-3.568567],[30.116333,-4.090138],[29.753512,-4.452389],[29.339998,-4.499983]]]},"id":"BDI"},{"type":"Feature","properties":{"name":"Belgium"},"geometry":{"type":"Polygon","coordinates":[[[3.314971,51.345781],[4.047071,51.267259],[4.973991,51.475024],[5.606976,51.037298],[6.156658,50.803721],[6.043073,50.128052],[5.782417,50.090328],[5.674052,49.529484],[4.799222,49.985373],[4.286023,49.907497],[3.588184,50.378992],[3.123252,50.780363],[2.658422,50.796848],[2.513573,51.148506],[3.314971,51.345781]]]},"id":"BEL"},{"type":"Feature","properties":{"name":"Benin"},"geometry":{"type":"Polygon","coordinates":[[[2.691702,6.258817],[1.865241,6.142158],[1.618951,6.832038],[1.664478,9.12859],[1.463043,9.334624],[1.425061,9.825395],[1.077795,10.175607],[0.772336,10.470808],[0.899563,10.997339],[1.24347,11.110511],[1.447178,11.547719],[1.935986,11.64115],[2.154474,11.94015],[2.490164,12.233052],[2.848643,12.235636],[3.61118,11.660167],[3.572216,11.327939],[3.797112,10.734746],[3.60007,10.332186],[3.705438,10.06321],[3.220352,9.444153],[2.912308,9.137608],[2.723793,8.506845],[2.749063,7.870734],[2.691702,6.258817]]]},"id":"BEN"},{"type":"Feature","properties":{"name":"Burkina Faso"},"geometry":{"type":"Polygon","coordinates":[[[-2.827496,9.642461],[-3.511899,9.900326],[-3.980449,9.862344],[-4.330247,9.610835],[-4.779884,9.821985],[-4.954653,10.152714],[-5.404342,10.370737],[-5.470565,10.95127],[-5.197843,11.375146],[-5.220942,11.713859],[-4.427166,12.542646],[-4.280405,13.228444],[-4.006391,13.472485],[-3.522803,13.337662],[-3.103707,13.541267],[-2.967694,13.79815],[-2.191825,14.246418],[-2.001035,14.559008],[-1.066363,14.973815],[-0.515854,15.116158],[-0.266257,14.924309],[0.374892,14.928908],[0.295646,14.444235],[0.429928,13.988733],[0.993046,13.33575],[1.024103,12.851826],[2.177108,12.625018],[2.154474,11.94015],[1.935986,11.64115],[1.447178,11.547719],[1.24347,11.110511],[0.899563,10.997339],[0.023803,11.018682],[-0.438702,11.098341],[-0.761576,10.93693],[-1.203358,11.009819],[-2.940409,10.96269],[-2.963896,10.395335],[-2.827496,9.642461]]]},"id":"BFA"},{"type":"Feature","properties":{"name":"Bangladesh"},"geometry":{"type":"Polygon","coordinates":[[[92.672721,22.041239],[92.652257,21.324048],[92.303234,21.475485],[92.368554,20.670883],[92.082886,21.192195],[92.025215,21.70157],[91.834891,22.182936],[91.417087,22.765019],[90.496006,22.805017],[90.586957,22.392794],[90.272971,21.836368],[89.847467,22.039146],[89.70205,21.857116],[89.418863,21.966179],[89.031961,22.055708],[88.876312,22.879146],[88.52977,23.631142],[88.69994,24.233715],[88.084422,24.501657],[88.306373,24.866079],[88.931554,25.238692],[88.209789,25.768066],[88.563049,26.446526],[89.355094,26.014407],[89.832481,25.965082],[89.920693,25.26975],[90.872211,25.132601],[91.799596,25.147432],[92.376202,24.976693],[91.915093,24.130414],[91.46773,24.072639],[91.158963,23.503527],[91.706475,22.985264],[91.869928,23.624346],[92.146035,23.627499],[92.672721,22.041239]]]},"id":"BGD"},{"type":"Feature","properties":{"name":"Bulgaria"},"geometry":{"type":"Polygon","coordinates":[[[22.65715,44.234923],[22.944832,43.823785],[23.332302,43.897011],[24.100679,43.741051],[25.569272,43.688445],[26.065159,43.943494],[27.2424,44.175986],[27.970107,43.812468],[28.558081,43.707462],[28.039095,43.293172],[27.673898,42.577892],[27.99672,42.007359],[27.135739,42.141485],[26.117042,41.826905],[26.106138,41.328899],[25.197201,41.234486],[24.492645,41.583896],[23.692074,41.309081],[22.952377,41.337994],[22.881374,41.999297],[22.380526,42.32026],[22.545012,42.461362],[22.436595,42.580321],[22.604801,42.898519],[22.986019,43.211161],[22.500157,43.642814],[22.410446,44.008063],[22.65715,44.234923]]]},"id":"BGR"},{"type":"Feature","properties":{"name":"The Bahamas"},"geometry":{"type":"MultiPolygon","coordinates":[[[[-77.53466,23.75975],[-77.78,23.71],[-78.03405,24.28615],[-78.40848,24.57564],[-78.19087,25.2103],[-77.89,25.17],[
21-77.54,24.34],[-77.53466,23.75975]]],[[[-77.82,26.58],[-78.91,26.42],[-78.98,26.79],[-78.51,26.87],[-77.85,26.84],[-77.82,26.58]]],[[[-77,26.59],[-77.17255,25.87918],[-77.35641,26.00735],[-77.34,26.53],[-77.78802,26.92516],[-77.79,27.04],[-77,26.59]]]]},"id":"BHS"},{"type":"Feature","properties":{"name":"Bosnia and Herzegovina"},"geometry":{"type":"Polygon","coordinates":[[[19.005486,44.860234],[19.36803,44.863],[19.11761,44.42307],[19.59976,44.03847],[19.454,43.5681],[19.21852,43.52384],[19.03165,43.43253],[18.70648,43.20011],[18.56,42.65],[17.674922,43.028563],[17.297373,43.446341],[16.916156,43.667722],[16.456443,44.04124],[16.23966,44.351143],[15.750026,44.818712],[15.959367,45.233777],[16.318157,45.004127],[16.534939,45.211608],[17.002146,45.233777],[17.861783,45.06774],[18.553214,45.08159],[19.005486,44.860234]]]},"id":"BIH"},{"type":"Feature","properties":{"name":"Belarus"},"geometry":{"type":"Polygon","coordinates":[[[23.484128,53.912498],[24.450684,53.905702],[25.536354,54.282423],[25.768433,54.846963],[26.588279,55.167176],[26.494331,55.615107],[27.10246,55.783314],[28.176709,56.16913],[29.229513,55.918344],[29.371572,55.670091],[29.896294,55.789463],[30.873909,55.550976],[30.971836,55.081548],[30.757534,54.811771],[31.384472,54.157056],[31.791424,53.974639],[31.731273,53.794029],[32.405599,53.618045],[32.693643,53.351421],[32.304519,53.132726],[31.497644,53.167427],[31.305201,53.073996],[31.540018,52.742052],[31.785998,52.101678],[30.927549,52.042353],[30.619454,51.822806],[30.555117,51.319503],[30.157364,51.416138],[29.254938,51.368234],[28.992835,51.602044],[28.617613,51.427714],[28.241615,51.572227],[27.454066,51.592303],[26.337959,51.832289],[25.327788,51.910656],[24.553106,51.888461],[24.005078,51.617444],[23.527071,51.578454],[23.508002,52.023647],[23.199494,52.486977],[23.799199,52.691099],[23.804935,53.089731],[23.527536,53.470122],[23.484128,53.912498]]]},"id":"BLR"},{"type":"Feature","properties":{"name":"Belize"},"geometry":{"type":"Polygon","coordinates":[[[-89.14308,17.808319],[-89.150909,17.955468],[-89.029857,18.001511],[-88.848344,17.883198],[-88.490123,18.486831],[-88.300031,18.499982],[-88.296336,18.353273],[-88.106813,18.348674],[-88.123479,18.076675],[-88.285355,17.644143],[-88.197867,17.489475],[-88.302641,17.131694],[-88.239518,17.036066],[-88.355428,16.530774],[-88.551825,16.265467],[-88.732434,16.233635],[-88.930613,15.887273],[-89.229122,15.886938],[-89.150806,17.015577],[-89.14308,17.808319]]]},"id":"BLZ"},{"type":"Feature","properties":{"name":"Bolivia"},"geometry":{"type":"Polygon","coordinates":[[[-62.846468,-22.034985],[-63.986838,-21.993644],[-64.377021,-22.798091],[-64.964892,-22.075862],[-66.273339,-21.83231],[-67.106674,-22.735925],[-67.82818,-22.872919],[-68.219913,-21.494347],[-68.757167,-20.372658],[-68.442225,-19.405068],[-68.966818,-18.981683],[-69.100247,-18.260125],[-69.590424,-17.580012],[-68.959635,-16.500698],[-69.389764,-15.660129],[-69.160347,-15.323974],[-69.339535,-14.953195],[-68.948887,-14.453639],[-68.929224,-13.602684],[-68.88008,-12.899729],[-68.66508,-12.5613],[-69.529678,-10.951734],[-68.786158,-11.03638],[-68.271254,-11.014521],[-68.048192,-10.712059],[-67.173801,-10.306812],[-66.646908,-9.931331],[-65.338435,-9.761988],[-65.444837,-10.511451],[-65.321899,-10.895872],[-65.402281,-11.56627],[-64.316353,-12.461978],[-63.196499,-12.627033],[-62.80306,-13.000653],[-62.127081,-13.198781],[-61.713204,-13.489202],[-61.084121,-13.479384],[-60.503304,-13.775955],[-60.459198,-14.354007],[-60.264326,-14.645979],[-60.251149,-15.077219],[-60.542966,-15.09391],[-60.15839,-16.258284],[-58.24122,-16.299573],[-58.388058,-16.877109],[-58.280804,-17.27171],[-57.734558,-17.552468],[-57.498371,-18.174188],[-57.676009,-18.96184],[-57.949997,-19.400004],[-57.853802,-19.969995],[-58.166392,-20.176701],[-58.183471,-19.868399],[-59.115042,-19.356906],[-60.043565,-19.342747],[-61.786326,-19.633737],[-62.265961,-20.513735],[-62.291179,-21.051635],[-62.685057,-22.249029],[-62.846468,-22.034985]]]},"id":"BOL"},{"type":"Feature","properties":{"name":"Brazil"},"geometry":{"type":"Polygon","coordinates":[[[-57.625133,-30.216295],[-56.2909,-28.852761],[-55.162286,-27.881915],[-54.490725,-27.474757],[-53.648735,-26.923473],[-53.628349,-26.124865],[-54.13005,-25.547639],[-54.625291,-25.739255],[-54.428946,-25.162185],[-54.293476,-24.5708],[-54.29296,-24.021014],[-54.652834,-23.839578],[-55.027902,-24.001274],[-55.400747,-23.956935],[-55.517639,-23.571998],[-55.610683,-22.655619],[-55.797958,-22.35693],[-56.473317,-22.0863],[-56.88151,-22.282154],[-57.937156,-22.090176],[-57.870674,-20.732688],[-58.166392,-20.176701],[-57.853802,-19.969995],[-57.949997,-19.400004],[-57.676009,-18.96184],[-57.498371,-18.174188],[-57.734558,-17.552468],[-58.280804,-17.27171],[-58.388058,-16.877109],[-58.24122,-16.299573],[-60.15839,-16.258284],[-60.542966,-15.09391],[-60.251149,-15.077219],[-60.264326,-14.645979],[-60.459198,-14.354007],[-60.503304,-13.775955],[-61.084121,-13.479384],[-61.713204,-13.489202],[-62.127081,-13.198781],[-62.80306,-13.000653],[-63.196499,-12.627033],[-64.316353,-12.461978],[-65.402281,-11.56627],[-65.321899,-10.895872],[-65.444837,-10.511451],[-65.338435,-9.761988],[-66.646908,-9.931331],[-67.173801,-10.306812],[-68.048192,-10.712059],[-68.271254,-11.014521],[-68.786158,-11.03638],[-69.529678,-10.951734],[-70.093752,-11.123972],[-70.548686,-11.009147],[-70.481894,-9.490118],[-71.302412,-10.079436],[-72.184891,-10.053598],[-72.563033,-9.520194],[-73.226713,-9.462213],[-73.015383,-9.032833],[-73.571059,-8.424447],[-73.987235,-7.52383],[-73.723401,-7.340999],[-73.724487,-6.918595],[-73.120027,-6.629931],[-73.219711,-6.089189],[-72.964507,-5.741251],[-72.891928,-5.274561],[-71.748406,-4.593983],[-70.928843,-4.401591],[-70.794769,-4.251265],[-69.893635,-4.298187],[-69.444102,-1.556287],[-69.420486,-1.122619],[-69.577065,-0.549992],[-70.020656,-0.185156],[-70.015566,0.541414],[-69.452396,0.706159],[-69.252434,0.602651],[-69.218638,0.985677],[-69.804597,1.089081],[-69.816973,1.714805],[-67.868565,1.692455],[-67.53781,2.037163],[-67.259998,1.719999],[-67.065048,1.130112],[-66.876326,1.253361],[-66.325765,0.724452],[-65.548267,0.789254],[-65.354713,1.095282],[-64.611012,1.328731],[-64.199306,1.492855],[-64.083085,1.916369],[-63.368788,2.2009],[-63.422867,2.411068],[-64.269999,2.497006],[-64.408828,3.126786],[
21-64.368494,3.79721],[-64.816064,4.056445],[-64.628659,4.148481],[-63.888343,4.02053],[-63.093198,3.770571],[-62.804533,4.006965],[-62.08543,4.162124],[-60.966893,4.536468],[-60.601179,4.918098],[-60.733574,5.200277],[-60.213683,5.244486],[-59.980959,5.014061],[-60.111002,4.574967],[-59.767406,4.423503],[-59.53804,3.958803],[-59.815413,3.606499],[-59.974525,2.755233],[-59.718546,2.24963],[-59.646044,1.786894],[-59.030862,1.317698],[-58.540013,1.268088],[-58.429477,1.463942],[-58.11345,1.507195],[-57.660971,1.682585],[-57.335823,1.948538],[-56.782704,1.863711],[-56.539386,1.899523],[-55.995698,1.817667],[-55.9056,2.021996],[-56.073342,2.220795],[-55.973322,2.510364],[-55.569755,2.421506],[-55.097587,2.523748],[-54.524754,2.311849],[-54.088063,2.105557],[-53.778521,2.376703],[-53.554839,2.334897],[-53.418465,2.053389],[-52.939657,2.124858],[-52.556425,2.504705],[-52.249338,3.241094],[-51.657797,4.156232],[-51.317146,4.203491],[-51.069771,3.650398],[-50.508875,1.901564],[-49.974076,1.736483],[-49.947101,1.04619],[-50.699251,0.222984],[-50.388211,-0.078445],[-48.620567,-0.235489],[-48.584497,-1.237805],[-47.824956,-0.581618],[-46.566584,-0.941028],[-44.905703,-1.55174],[-44.417619,-2.13775],[-44.581589,-2.691308],[-43.418791,-2.38311],[-41.472657,-2.912018],[-39.978665,-2.873054],[-38.500383,-3.700652],[-37.223252,-4.820946],[-36.452937,-5.109404],[-35.597796,-5.149504],[-35.235389,-5.464937],[-34.89603,-6.738193],[-34.729993,-7.343221],[-35.128212,-8.996401],[-35.636967,-9.649282],[-37.046519,-11.040721],[-37.683612,-12.171195],[-38.423877,-13.038119],[-38.673887,-13.057652],[-38.953276,-13.79337],[-38.882298,-15.667054],[-39.161092,-17.208407],[-39.267339,-17.867746],[-39.583521,-18.262296],[-39.760823,-19.599113],[-40.774741,-20.904512],[-40.944756,-21.937317],[-41.754164,-22.370676],[-41.988284,-22.97007],[-43.074704,-22.967693],[-44.647812,-23.351959],[-45.352136,-23.796842],[-46.472093,-24.088969],[-47.648972,-24.885199],[-48.495458,-25.877025],[-48.641005,-26.623698],[-48.474736,-27.175912],[-48.66152,-28.186135],[-48.888457,-28.674115],[-49.587329,-29.224469],[-50.696874,-30.984465],[-51.576226,-31.777698],[-52.256081,-32.24537],[-52.7121,-33.196578],[-53.373662,-33.768378],[-53.650544,-33.202004],[-53.209589,-32.727666],[-53.787952,-32.047243],[-54.572452,-31.494511],[-55.60151,-30.853879],[-55.973245,-30.883076],[-56.976026,-30.109686],[-57.625133,-30.216295]]]},"id":"BRA"},{"type":"Feature","properties":{"name":"Brunei"},"geometry":{"type":"Polygon","coordinates":[[[114.204017,4.525874],[114.599961,4.900011],[115.45071,5.44773],[115.4057,4.955228],[115.347461,4.316636],[114.869557,4.348314],[114.659596,4.007637],[114.204017,4.525874]]]},"id":"BRN"},{"type":"Feature","properties":{"name":"Bhutan"},"geometry":{"type":"Polygon","coordinates":[[[91.696657,27.771742],[92.103712,27.452614],[92.033484,26.83831],[91.217513,26.808648],[90.373275,26.875724],[89.744528,26.719403],[88.835643,27.098966],[88.814248,27.299316],[89.47581,28.042759],[90.015829,28.296439],[90.730514,28.064954],[91.258854,28.040614],[91.696657,27.771742]]]},"id":"BTN"},{"type":"Feature","properties":{"name":"Botswana"},"geometry":{"type":"Polygon","coordinates":[[[25.649163,-18.536026],[25.850391,-18.714413],[26.164791,-19.293086],[27.296505,-20.39152],[27.724747,-20.499059],[27.727228,-20.851802],[28.02137,-21.485975],[28.794656,-21.639454],[29.432188,-22.091313],[28.017236,-22.827754],[27.11941,-23.574323],[26.786407,-24.240691],[26.485753,-24.616327],[25.941652,-24.696373],[25.765849,-25.174845],[25.664666,-25.486816],[25.025171,-25.71967],[24.211267,-25.670216],[23.73357,-25.390129],[23.312097,-25.26869],[22.824271,-25.500459],[22.579532,-25.979448],[22.105969,-26.280256],[21.605896,-26.726534],[20.889609,-26.828543],[20.66647,-26.477453],[20.758609,-25.868136],[20.165726,-24.917962],[19.895768,-24.76779],[19.895458,-21.849157],[20.881134,-21.814327],[20.910641,-18.252219],[21.65504,-18.219146],[23.196858,-17.869038],[23.579006,-18.281261],[24.217365,-17.889347],[24.520705,-17.887125],[25.084443,-17.661816],[25.264226,-17.73654],[25.649163,-18.536026]]]},"id":"BWA"},{"type":"Feature","properties":{"name":"Central African Republic"},"geometry":{"type":"Polygon","coordinates":[[[15.27946,7.421925],[16.106232,7.497088],[16.290562,7.754307],[16.456185,7.734774],[16.705988,7.508328],[17.96493,7.890914],[18.389555,8.281304],[18.911022,8.630895],[18.81201,8.982915],[19.094008,9.074847],[20.059685,9.012706],[21.000868,9.475985],[21.723822,10.567056],[22.231129,10.971889],[22.864165,11.142395],[22.977544,10.714463],[23.554304,10.089255],[23.55725,9.681218],[23.394779,9.265068],[23.459013,8.954286],[23.805813,8.666319],[24.567369,8.229188],[25.114932,7.825104],[25.124131,7.500085],[25.796648,6.979316],[26.213418,6.546603],[26.465909,5.946717],[27.213409,5.550953],[27.374226,5.233944],[27.044065,5.127853],[26.402761,5.150875],[25.650455,5.256088],[25.278798,5.170408],[25.128833,4.927245],[24.805029,4.897247],[24.410531,5.108784],[23.297214,4.609693],[22.84148,4.710126],[22.704124,4.633051],[22.405124,4.02916],[21.659123,4.224342],[20.927591,4.322786],[20.290679,4.691678],[19.467784,5.031528],[18.932312,4.709506],[18.542982,4.201785],[18.453065,3.504386],[17.8099,3.560196],[17.133042,3.728197],[16.537058,3.198255],[16.012852,2.26764],[15.907381,2.557389],[15.862732,3.013537],[15.405396,3.335301],[15.03622,3.851367],[14.950953,4.210389],[14.478372,4.732605],[14.558936,5.030598],[14.459407,5.451761],[14.53656,6.226959],[14.776545,6.408498],[15.27946,7.421925]]]},"id":"CAF"},{"type":"Feature","properties":{"name":"Canada"},"geometry":{"type":"MultiPolygon","coordinates":[[[[-63.6645,46.55001],[-62.9393,46.41587],[-62.01208,46.44314],[-62.50391,46.03339],[-62.87433,45.96818],[-64.1428,46.39265],[-64.39261,46.72747],[-64.01486,47.03601],[-63.6645,46.55001]]],[[[-61.806305,49.10506],[-62.29318,49.08717],[-63.58926,49.40069],[-64.51912,49.87304],[-64.17322,49.95718],[-62.85829,49.70641],[-61.835585,49.28855],[-61.806305,49.10506]]],[[[-123.510002,48.510011],[-124.012891,48.370846],[-125.655013,48.825005],[-125.954994,49.17999
216],[-126.850004,49.53],[-127.029993,49.814996],[-128.059336,49.994959],[-128.444584,50.539138],[-128.358414,50.770648],[-127.308581,50.552574],[-126.695001,50.400903],[-125.755007,50.295018],[-125.415002,49.950001],[-124.920768,49.475275],[-123.922509,49.062484],[-123.510002,48.510011]]],[[[-56.134036,50.68701],[-56.795882,49.812309],[-56.143105,50.150117],[-55.471492,49.935815],[-55.822401,49.587129],[-54.935143,49.313011],[-54.473775,49.556691],[-53.476549,49.249139],[-53.786014,48.516781],[-53.086134,48.687804],[-52.958648,48.157164],[-52.648099,47.535548],[-53.069158,46.655499],[-53.521456,46.618292],[-54.178936,46.807066],[-53.961869,47.625207],[-54.240482,47.752279],[-55.400773,46.884994],[-55.997481,46.91972],[-55.291219,47.389562],[-56.250799,47.632545],[-57.325229,47.572807],[-59.266015,47.603348],[-59.419494,47.899454],[-58.796586,48.251525],[-59.231625,48.523188],[-58.391805,49.125581],[-57.35869,50.718274],[-56.73865,51.287438],[-55.870977,51.632094],[-55.406974,51.588273],[-55.600218,51.317075],[-56.134036,50.68701]]],[[[-132.710008,54.040009],[-132.710009,54.040009],[-132.710008,54.040009],[-132.710008,54.040009],[-131.74999,54.120004],[-132.04948,52.984621],[-131.179043,52.180433],[-131.57783,52.182371],[-132.180428,52.639707],[-132.549992,53.100015],[-133.054611,53.411469],[-133.239664,53.85108],[-133.180004,54.169975],[-132.710008,54.040009]]],[[[-79.26582,62.158675],[-79.65752,61.63308],[-80.09956,61.7181],[-80.36215,62.01649],[-80.315395,62.085565],[-79.92939,62.3856],[-79.52002,62.36371],[-79.26582,62.158675]]],[[[-81.89825,62.7108],[-83.06857,62.15922],[-83.77462,62.18231],[-83.99367,62.4528],[-83.25048,62.91409],[-81.87699,62.90458],[-81.89825,62.7108]]],[[[-85.161308,65.657285],[-84.975764,65.217518],[-84.464012,65.371772],[-83.882626,65.109618],[-82.787577,64.766693],[-81.642014,64.455136],[-81.55344,63.979609],[-80.817361,64.057486],[-80.103451,63.725981],[-80.99102,63.411246],[-82.547178,63.651722],[-83.108798,64.101876],[-84.100417,63.569712],[-85.523405,63.052379],[-85.866769,63.637253],[-87.221983,63.541238],[-86.35276,64.035833],[-86.224886,64.822917],[-85.883848,65.738778],[-85.161308,65.657285]]],[[[-75.86588,67.14886],[-76.98687,67.09873],[-77.2364,67.58809],[-76.81166,68.14856],[-75.89521,68.28721],[-75.1145,68.01036],[-75.10333,67.58202],[-75.21597,67.44425],[-75.86588,67.14886]]],[[[-95.647681,69.10769],[-96.269521,68.75704],[-97.617401,69.06003],[-98.431801,68.9507],[-99.797401,69.40003],[-98.917401,69.71003],[-98.218261,70.14354],[-97.157401,69.86003],[-96.557401,69.68003],[-96.257401,69.49003],[-95.647681,69.10769]]],[[[-90.5471,69.49766],[-90.55151,68.47499],[-89.21515,69.25873],[-88.01966,68.61508],[-88.31749,67.87338],[-87.35017,67.19872],[-86.30607,67.92146],[-85.57664,68.78456],[-85.52197,69.88211],[-84.10081,69.80539],[-82.62258,69.65826],[-81.28043,69.16202],[-81.2202,68.66567],[-81.96436,68.13253],[-81.25928,67.59716],[-81.38653,67.11078],[-83.34456,66.41154],[-84.73542,66.2573],[-85.76943,66.55833],[-86.0676,66.05625],[-87.03143,65.21297],[-87.32324,64.77563],[-88.48296,64.09897],[-89.91444,64.03273],[-90.70398,63.61017],[-90.77004,62.96021],[-91.93342,62.83508],[-93.15698,62.02469],[-94.24153,60.89865],[-94.62931,60.11021],[-94.6846,58.94882],[-93.21502,58.78212],[-92.76462,57.84571],[-92.29703,57.08709],[-90.89769,57.28468],[-89.03953,56.85172],[-88.03978,56.47162],[-87.32421,55.99914],[-86.07121,55.72383],[-85.01181,55.3026],[-83.36055,55.24489],[-82.27285,55.14832],[-82.4362,54.28227],[-82.12502,53.27703],[-81.40075,52.15788],[-79.91289,51.20842],[-79.14301,51.53393],[-78.60191,52.56208],[-79.12421,54.14145],[-79.82958,54.66772],[-78.22874,55.13645],[-77.0956,55.83741],[-76.54137,56.53423],[-76.62319,57.20263],[-77.30226,58.05209],[-78.51688,58.80458],[-77.33676,59.85261],[-77.77272,60.75788],[-78.10687,62.31964],[-77.41067,62.55053],[-75.69621,62.2784],[-74.6682,62.18111],[-73.83988,62.4438],[-72.90853,62.10507],[-71.67708,61.52535],[-71.37369,61.13717],[-69.59042,61.06141],[-69.62033,60.22125],[-69.2879,58.95736],[-68.37455,58.80106],[-67.64976,58.21206],[-66.20178,58.76731],[-65.24517,59.87071],[-64.58352,60.33558],[-63.80475,59.4426],[-62.50236,58.16708],[-61.39655,56.96745],[-61.79866,56.33945],[-60.46853,55.77548],[-59.56962,5
215.20407],[-57.97508,54.94549],[-57.3332,54.6265],[-56.93689,53.78032],[-56.15811,53.64749],[-55.75632,53.27036],[-55.68338,52.14664],[-56.40916,51.7707],[-57.12691,51.41972],[-58.77482,51.0643],[-60.03309,50.24277],[-61.72366,50.08046],[-63.86251,50.29099],[-65.36331,50.2982],[-66.39905,50.22897],[-67.23631,49.51156],[-68.51114,49.06836],[-69.95362,47.74488],[-71.10458,46.82171],[-70.25522,46.98606],[-68.65,48.3],[-66.55243,49.1331],[-65.05626,49.23278],[-64.17099,48.74248],[-65.11545,48.07085],[-64.79854,46.99297],[-64.47219,46.23849],[-63.17329,45.73902],[-61.52072,45.88377],[-60.51815,47.00793],[-60.4486,46.28264],[-59.80287,45.9204],[-61.03988,45.26525],[-63.25471,44.67014],[-64.24656,44.26553],[-65.36406,43.54523],[-66.1234,43.61867],[-66.16173,44.46512],[-64.42549,45.29204],[-66.02605,45.25931],[-67.13741,45.13753],[-67.79134,45.70281],[-67.79046,47.06636],[-68.23444,47.35486],[-68.905,47.185],[-69.237216,47.447781],[-69.99997,46.69307],[-70.305,45.915],[-70.66,45.46],[-71.08482,45.30524],[-71.405,45.255],[-71.50506,45.0082],[-73.34783,45.00738],[-74.867,45.00048],[-75.31821,44.81645],[-76.375,44.09631],[-76.5,44.018459],[-76.820034,43.628784],[-77.737885,43.629056],[-78.72028,43.625089],[-79.171674,43.466339],[-79.01,43.27],[-78.92,42.965],[-78.939362,42.863611],[-80.247448,42.3662],[-81.277747,42.209026],[-82.439278,41.675105],[-82.690089,41.675105],[-83.02981,41.832796],[-83.142,41.975681],[-83.12,42.08],[-82.9,42.43],[-82.43,42.98],[-82.137642,43.571088],[-82.337763,44.44],[-82.550925,45.347517],[-83.592851,45.816894],[-83.469551,45.994686],[-83.616131,46.116927],[-83.890765,46.116927],[-84.091851,46.275419],[-84.14212,46.512226],[-84.3367,46.40877],[-84.6049,46.4396],[-84.543749,46.538684],[-84.779238,46.637102],[-84.87608,46.900083],[-85.652363,47.220219],[-86.461991,47.553338],[-87.439793,47.94],[-88.378114,48.302918],[-89.272917,48.019808],[-89.6,48.01],[-90.83,48.27],[-91.64,48.14],[-92.61,48.45],[-93.63087,48.60926],[-94.32914,48.67074],[-94.64,48.84],[-94.81758,49.38905],[-95.15609,49.38425],[-95.15907,49],[-97.22872,49.0007],[-100.65,49],[-104.04826,48.99986],[-107.05,49],[-110.05,49],[-113,49],[-116.04818,49],[-117.03121,49],[-120,49],[-122.84,49],[-122.97421,49.002538],[-124.91024,49.98456],[-125.62461,50.41656],[-127.43561,50.83061],[-127.99276,51.71583],[-127.85032,52.32961],[-129.12979,52.75538],[-129.30523,53.56159],[-130.51497,54.28757],[-130.53611,54.80278],[-129.98,55.285],[-130.00778,55.91583],[-131.70781,56.55212],[-132.73042,57.69289],[-133.35556,58.41028],[-134.27111,58.86111],[-134.945,59.27056],[-135.47583,59.78778],[-136.47972,59.46389],[-137.4525,58.905],[-138.34089,59.56211],[-139.039,60],[-140.013,60.27682],[-140.99778,60.30639],[-140.9925,66.00003],[-140.986,69.712],[-139.12052,69.47102],[-137.54636,68.99002],[-136.50358,68.89804],[-135.62576,69.31512],[-134.41464,69.62743],[-132.92925,69.50534],[-131.43136,69.94451],[-129.79471,70.19369],[-129.10773,69.77927],[-128.36156,70.01286],[-128.13817,70.48384],[-127.44712,70.37721],[-125.75632,69.48058],[-124.42483,70.1584],[-124.28968,69.39969],[-123.06108,69.56372],[-122.6835,69.85553],[-121.47226,69.79778],[-119.94288,69.37786],[-117.60268,69.01128],[-116.22643,68.84151],[-115.2469,68.90591],[-113.89794,68.3989],[-115.30489,67.90261],[-113.49727,67.68815],[-110.798,67.80612],[-109.94619,67.98104],[-108.8802,67.38144],[-107.79239,67.88736],[-108.81299,68.31164],[-108.16721,68.65392],[-106.95,68.7],[-106.15,68.8],[-105.34282,68.56122],[-104.33791,68.018],[-103.22115,68.09775],[-101.45433,67.64689],[-99.90195,67.80566],[-98.4432,67.78165],[-98.5586,68.40394],[-97.66948,68.57864],[-96.11991,68.23939],[-96.12588,67.29338],[-95.48943,68.0907],[-94.685,68.06383],[-94.23282,69.06903],[-95.30408,69.68571],[-96.47131,70.08976],[-96.39115,71.19482],[-95.2088,71.92053],[-93.88997,71.76015],[-92.87818,71.31869],[-91.51964,70.19129],[-92.40692,69.69997],[-90.5471,69.49766]]],[[[-114.16717,73.12145],[-114.66634,72.65277],[-112.44102,72.9554],[-111.05039,72.4504],[-109.92035,72.96113],[-109.00654,72.63335],[-108.18835,71.65089],[-107.68599,72.06548],[-108.39639,73.08953],[-107.51645,73.23598],[-106.52259,73.07601],[-105.40246,72.67259],[-104.77484,71.6984],[-104.46476,70.99297],[-102.78537,70.49776],[-100.98078,70.02432],[-101.08929,69.58447],[-102.73116,69.50402],[-102.09329,69.11962],[-102.43024,68.75282],[-104.24,68.91],[-105.96,69.18],[-107.12254,69.11922],[-109,68.78],[-111.534149,68.630059],[-113.3132,68.53554],[-113.85496,69.00744],[-115.22,69.28],[-116.10794,69.16821],[-117.34,69.96],[-116.67473,70.06655],[-115.13112,70.2373],[-113.72141,70.19237],[-112.4161,70.36638],[-114.35,70.6],[-116.48684,70.52045],[-117.9048,70.54056],[-118.43238,70.9092],[-116.11311,71.30918],[-117.65568,71.2952],[-119.40199,71.55859],[-118.56267,72.30785],[-117.86642,72.70594],[-115.18909,73.31459],[-114.16717,73.12145]]],[[[-104.5,73.42],[-105.38,72.76],[-106.94,73.46],[
21-106.6,73.6],[-105.26,73.64],[-104.5,73.42]]],[[[-76.34,73.102685],[-76.251404,72.826385],[-77.314438,72.855545],[-78.39167,72.876656],[-79.486252,72.742203],[-79.775833,72.802902],[-80.876099,73.333183],[-80.833885,73.693184],[-80.353058,73.75972],[-78.064438,73.651932],[-76.34,73.102685]]],[[[-86.562179,73.157447],[-85.774371,72.534126],[-84.850112,73.340278],[-82.31559,73.750951],[-80.600088,72.716544],[-80.748942,72.061907],[-78.770639,72.352173],[-77.824624,72.749617],[-75.605845,72.243678],[-74.228616,71.767144],[-74.099141,71.33084],[-72.242226,71.556925],[-71.200015,70.920013],[-68.786054,70.525024],[-67.91497,70.121948],[-66.969033,69.186087],[-68.805123,68.720198],[-66.449866,68.067163],[-64.862314,67.847539],[-63.424934,66.928473],[-61.851981,66.862121],[-62.163177,66.160251],[-63.918444,64.998669],[-65.14886,65.426033],[-66.721219,66.388041],[-68.015016,66.262726],[-68.141287,65.689789],[-67.089646,65.108455],[-65.73208,64.648406],[-65.320168,64.382737],[-64.669406,63.392927],[-65.013804,62.674185],[-66.275045,62.945099],[-68.783186,63.74567],[-67.369681,62.883966],[-66.328297,62.280075],[-66.165568,61.930897],[-68.877367,62.330149],[-71.023437,62.910
21708],[-72.235379,63.397836],[-71.886278,63.679989],[-73.378306,64.193963],[-74.834419,64.679076],[-74.818503,64.389093],[-77.70998,64.229542],[-78.555949,64.572906],[-77.897281,65.309192],[-76.018274,65.326969],[-73.959795,65.454765],[-74.293883,65.811771],[-73.944912,66.310578],[-72.651167,67.284576],[-72.92606,67.726926],[-73.311618,68.069437],[-74.843307,68.554627],[-76.869101,68.894736],[-76.228649,69.147769],[-77.28737,69.76954],[-78.168634,69.826488],[-78.957242,70.16688],[-79.492455,69.871808],[-81.305471,69.743185],[-84.944706,69.966634],[-87.060003,70.260001],[-88.681713,70.410741],[-89.51342,70.762038],[-88.467721,71.218186],[-89.888151,71.222552],[-90.20516,72.235074],[-89.436577,73.129464],[-88.408242,73.537889],[-85.826151,73.803816],[-86.562179,73.157447]]],[[[-100.35642,73.84389],[-99.16387,73.63339],[-97.38,73.76],[-97.12,73.47],[-98.05359,72.99052],[-96.54,72.56],[-96.72,71.66],[-98.35966,71.27285],[-99.32286,71.35639],[-100.01482,71.73827],[-102.5,72.51],[-102.48,72.83],[-100.43836,72.70588],[-101.54,73.36],[-100.35642,73.84389]]],[[[-93.196296,72.771992],[-94.269047,72.024596],[-95.409856,72.061881],[-96.033745,72.940277],[-96.018268,73.43743],[-95.495793,73.862417],[-94.503658,74.134907],[-92.420012,74.100025],[-90.509793,73.856732],[-92.003965,72.966244],[-93.196296,72.771992]]],[[[-120.46,71.383602],[-123.09219,70.90164],[-123.62,71.34],[-125.928949,71.868688],[-125.5,72.292261],[-124.80729,73.02256],[-123.94,73.68],[-124.91775,74.29275],[-121.53788,74.44893],[-120.10978,74.24135],[-117.55564,74.18577],[-116.58442,73.89607],[-115.51081,73.47519],[-116.76794,73.22292],[-119.22,72.52],[-120.46,71.82],[-120.46,71.383602]]],[[[-93.612756,74.979997],[-94.156909,74.592347],[-95.608681,74.666864],[-96.820932,74.927623],[-96.288587,75.377828],[-94.85082,75.647218],[-93.977747,75.29649],[-93.612756,74.979997]]],[[[-98.5,76.72],[-97.735585,76.25656],[-97.704415,75.74344],[-98.16,75],[-99.80874,74.89744],[-100.88366,75.05736],[-100.86292,75.64075],[-102.50209,75.5638],[-102.56552,76.3366],[-101.48973,76.30537],[-99.98349,76.64634],[-98.57699,76.58859],[-98.5,76.72]]],[[[-108.21141,76.20168],[-107.81943,75.84552],[-106.92893,76.01282],[-105.881,75.9694],[-105.70498,75.47951],[-106.31347,75.00527],[-109.7,74.85],[-112.22307,74.41696],[-113.74381,74.39427],[-113.87135,74.72029],[-111.79421,75.1625],[-116.31221,75.04343],[-117.7104,75.2222],[-116.34602,76.19903],[-115.40487,76.47887],[-112.59056,76.14134],[-110.81422,75.54919],[-109.0671,75.47321],[-110.49726,76.42982],[-109.5811,76.79417],[-108.54859,76.67832],[-108.21141,76.20168]]],[[[-94.684086,77.097878],[-93.573921,76.776296],[-91.605023,76.778518],[-90.741846,76.449597],[-90.969661,76.074013],[-89.822238,75.847774],[-89.187083,75.610166],[-87.838276,75.566189],[-86.379192,75.482421],[-84.789625,75.699204],[-82.753445,75.784315],[-81.128531,75.713983],[-80.057511,75.336849],[-79.833933,74.923127],[-80.457771,74.657304],[-81.948843,74.442459],[-83.228894,74.564028],[-86.097452,74.410032],[-88.15035,74.392307],[-89.764722,74.515555],[-92.422441,74.837758],[-92.768285,75.38682],[-92.889906,75.882655],[-93.893824,76.319244],[-95.962457,76.441381],[-97.121379,76.751078],[-96.745123,77.161389],[-94.684086,77.097878]]],[[[-116.198587,77.645287],[-116.335813,76.876962],[-117.106051,76.530032],[-118.040412,76.481172],[-119.899318,76.053213],[-121.499995,75.900019],[-122.854924,76.116543],[-122.854925,76.116543],[-121.157535,76.864508],[-119.103939,77.51222],[-117.570131,77.498319],[-116.198587,77.645287]]],[[[-93.840003,77.519997],[-94.295608,77.491343],[-96.169654,77.555111],[-96.436304,77.834629],[-94.422577,77.820005],[-93.720656,77.634331],[-93.840003,77.519997]]],[[[-110.186938,77.697015],[-112.051191,77.409229],[-113.534279,77.732207],[-112.724587,78.05105],[-111.264443,78.152956],[-109.854452,77.996325],[-110.186938,77.697015]]],[[[-109.663146,78.601973],[-110.881314,78.40692],[-112.542091,78.407902],[-112.525891,78.550555],[-111.50001,78.849994],[-110.963661,78.804441],[-109.663146,78.601973]]],[[[-95.830295,78.056941],[-97.309843,77.850597],[-98.124289,78.082857],[-98.552868,78.458105],[-98.631984,78.87193],[-97.337231,78.831984],[-96.754399,78.765813],[-95.559278,78.418315],[-95.830295,78.056941]]],[[[-100.060192,78.324754],[-99.670939,77.907545],[-101.30394,78.018985],[-102.949809,78.343229],[-105.176133,78.380332],[-104.210429,78.67742],[-105.41958,78.918336],[-105.492289,79.301594],[-103.529282,79.165349],[-100.825158,78.800462],[-100.060192,78.324754]]],[[[-87.02,79.66],[-85.81435,79.3369],[-87.18756,79.0393],[-89.03535,78.28723],[-90.80436,78.21533],[-92.87669,78.34333],[-93.95116,78.75099],[-93.93574,79.11373],[-93.14524,79.3801],[-94.974,79.37248],[-96.07614,79.70502],[-96.70972,80.15777],[-96.01644,80.60233],[-95.32345,80.90729],[-94.29843,80.97727],[-94.73542,81.20646],[-92.40984,81.25739],[-91.13289,80.72345],[-89.45,80.509322],[-87.81,80.32],[-87.02,79.66]]],[[[-68.5,83.106322],[-65.82735,83.02801],[-63.68,82.9],[-61.85,82.6286],[-61.89388,82.36165],[-64.334,81.92775],[-66.75342,81.72527],[-67.65755,81.50141],[-65.48031,81.50657],[
21-67.84,80.9],[-69.4697,80.61683],[-71.18,79.8],[-73.2428,79.63415],[-73.88,79.430162],[-76.90773,79.32309],[-75.52924,79.19766],[-76.22046,79.01907],[-75.39345,78.52581],[-76.34354,78.18296],[-77.88851,77.89991],[-78.36269,77.50859],[-79.75951,77.20968],[-79.61965,76.98336],[-77.91089,77.022045],[-77.88911,76.777955],[-80.56125,76.17812],[-83.17439,76.45403],[-86.11184,76.29901],[-87.6,76.42],[-89.49068,76.47239],[-89.6161,76.95213],[-87.76739,77.17833],[-88.26,77.9],[-87.65,77.970222],[-84.97634,77.53873],[-86.34,78.18],[-87.96192,78.37181],[-87.15198,78.75867],[-85.37868,78.9969],[-85.09495,79.34543],[-86.50734,79.73624],[-86.93179,80.25145],[-84.19844,80.20836],[-83.408696,80.1],[-81.84823,80.46442],[-84.1,80.58],[-87.59895,80.51627],[-89.36663,80.85569],[-90.2,81.26],[-91.36786,81.5531],[-91.58702,81.89429],[-90.1,82.085],[-88.93227,82.11751],[-86.97024,82.27961],[-85.5,82.652273],[-84.260005,82.6],[-83.18,82.32],[-82.42,82.86],[-81.1,83.02],[-79.30664,83.13056],[-76.25,83.172059],[-75.71878,83.06404],[-72.83153,83.23324],[-70.665765,83.169781],[-68.5,83.106322]]]]},"id":"CAN"},{"type":"Feature","properties":{"name":"Switzerland"},"geometry":{"type":"Polygon","coordinates":[[[9.594226,47.525058],[9.632932,47.347601],[9.47997,47.10281],[9.932448,46.920728],[10.442701,46.893546],[10.363378,46.483571],[9.922837,46.314899],[9.182882,46.440215],[8.966306,46.036932],[8.489952,46.005151],[8.31663,46.163642],[7.755992,45.82449],[7.273851,45.776948],[6.843593,45.991147],[6.5001,46.429673],[6.022609,46.27299],[6.037389,46.725779],[6.768714,47.287708],[6.736571,47.541801],[7.192202,47.449766],[7.466759,47.620582],[8.317301,47.61358],[8.522612,47.830828],[9.594226,47.525058]]]},"id":"CHE"},{"type":"Feature","properties":{"name":"Chile"},"geometry":{"type":"MultiPolygon","coordinates":[[[[-68.63401,-52.63637],[-68.63335,-54.8695],[-67.56244,-54.87001],[-66.95992,-54.89681],[-67.29103,-55.30124],[-68.14863,-55.61183],[-68.639991,-55.580018],[-69.2321,-55.49906],[-69.95809,-55.19843],[-71.00568,-55.05383],[-72.2639,-54.49514],[-73.2852,-53.95752],[-74.66253,-52.83749],[-73.8381,-53.04743],[-72.43418,-53.7154],[-71.10773,-54.07433],[-70.59178,-53.61583],[-70.26748,-52.93123],[-69.34565,-52.5183],[-68.63401,-52.63637]]],[[[-68.219913,-21.494347],[-67.82818,-22.872919],[-67.106674,-22.735925],[-66.985234,-22.986349],[-67.328443,-24.025303],[-68.417653,-24.518555],[-68.386001,-26.185016],[-68.5948,-26.506909],[-68.295542,-26.89934],[-69.001235,-27.521214],[-69.65613,-28.459141],[-70.01355,-29.367923],[-69.919008,-30.336339],[-70.535069,-31.36501],[-70.074399,-33.09121],[-69.814777,-33.273886],[-69.817309,-34.193571],[-70.388049,-35.169688],[-70.364769,-36.005089],[-71.121881,-36.658124],[-71.118625,-37.576827],[-70.814664,-38.552995],[-71.413517,-38.916022],[-71.680761,-39.808164],[-71.915734,-40.832339],[-71.746804,-42.051386],[-72.148898,-42.254888],[-71.915424,-43.408565],[-71.464056,-43.787611],[-71.793623,-44.207172],[-71.329801,-44.407522],[-71.222779,-44.784243],[-71.659316,-44.973689],[-71.552009,-45.560733],[-71.917258,-46.884838],[-72.447355,-47.738533],[-72.331161,-48.244238],[-72.648247,-48.878618],[-73.415436,-49.318436],[-73.328051,-50.378785],[-72.975747,-50.74145],[-72.309974,-50.67701],[-72.329404,-51.425956],[-71.914804,-52.009022],[-69.498362,-52.142761],[-68.571545,-52.299444],[-69.461284,-52.291951],[-69.94278,-52.537931],[-70.845102,-52.899201],[-71.006332,-53.833252],[-71.429795,-53.856455],[-72.557943,-53.53141],[-73.702757,-52.835069],[-73.702757,-52.83507],[-74.946763,-52.262754],[-75.260026,-51.629355],[-74.976632,-51.043396],[-75.479754,-50.378372],[-75.608015,-48.673773],[-75.18277,-47.711919],[-74.126581,-46.939253],[-75.644395,-46.647643],[-74.692154,-45.763976],[-74.351709,-44.103044],[-73.240356,-44.454961],[-72.717804,-42.383356],[-73.3889,-42.117532],[-73.701336,-43.365776],[-74.331943,-43.224958],[-74.017957,-41.794813],[-73.677099,-39.942213],[-73.217593,-39.258689],[-73.505559,-38.282883],[-73.588061,-37.156285],[-73.166717,-37.12378],[-72.553137,-35.50884],[-71.861732,-33.909093],[-71.43845,-32.418899],[-71.668721,-30.920645],[-71.370083,-30.095682],[-71.489894,-28.861442],[-70.9
2105124,-27.64038],[-70.724954,-25.705924],[-70.403966,-23.628997],[-70.091246,-21.393319],[-70.16442,-19.756468],[-70.372572,-18.347975],[-69.858444,-18.092694],[-69.590424,-17.580012],[-69.100247,-18.260125],[-68.966818,-18.981683],[-68.442225,-19.405068],[-68.757167,-20.372658],[-68.219913,-21.494347]]]]},"id":"CHL"},{"type":"Feature","properties":{"name":"China"},"geometry":{"type":"MultiPolygon","coordinates":[[[[110.339188,18.678395],[109.47521,18.197701],[108.655208,18.507682],[108.626217,19.367888],[109.119056,19.821039],[110.211599,20.101254],[110.786551,20.077534],[111.010051,19.69593],[110.570647,19.255879],[110.339188,18.678395]]],[[[127.657407,49.76027],[129.397818,49.4406],[130.582293,48.729687],[130.987282,47.790132],[132.506672,47.78897],[133.373596,48.183442],[135.026311,48.47823],[134.500814,47.57844],[134.112362,47.212467],[133.769644,46.116927],[133.097127,45.144066],[131.883454,45.321162],[131.025212,44.967953],[131.288555,44.11152],[131.144688,42.92999],[130.633866,42.903015],[130.640016,42.395009],[129.994267,42.985387],[129.596669,42.424982],[128.052215,41.994285],[128.208433,41.466772],[127.343783,41.503152],[126.869083,41.816569],[126.182045,41.107336],[125.079942,40.569824],[124.265625,39.928493],[122.86757,39.637788],[122.131388,39.170452],[121.054554,38.897471],[121.585995,39.360854],[121.376757,39.750261],[122.168595,40.422443],[121.640359,40.94639],[120.768629,40.593388],[119.639602,39.898056],[119.023464,39.252333],[118.042749,39.204274],[117.532702,38.737636],[118.059699,38.061476],[118.87815,37.897325],[118.911636,37.448464],[119.702802,37.156389],[120.823457,37.870428],[121.711259,37.481123],[122.357937,37.454484],[122.519995,36.930614],[121.104164,36.651329],[120.637009,36.11144],[119.664562,35.609791],[119.151208,34.909859],[120.227525,34.360332],[120.620369,33.376723],[121.229014,32.460319],[121.908146,31.692174],[121.891919,30.949352],[121.264257,30.676267],[121.503519,30.142915],[122.092114,29.83252],[121.938428,29.018022],[121.684439,28.225513],[121.125661,28.135673],[120.395473,27.053207],[119.585497,25.740781],[118.656871,24.547391],[117.281606,23.624501],[115.890735,22.782873],[114.763827,22.668074],[114.152547,22.22376],[113.80678,22.54834],[113.241078,22.051367],[111.843592,21.550494],[110.785466,21.397144],[110.444039,20.341033],[109.889861,20.282457],[109.627655,21.008227],[109.864488,21.395051],[108.522813,21.715212],[108.05018,21.55238],[107.04342,21.811899],[106.567273,22.218205],[106.725403,22.794268],[105.811247,22.976892],[105.329209,23.352063],[104.476858,22.81915],[103.504515,22.703757],[102.706992,22.708795],[102.170436,22.464753],[101.652018,22.318199],[101.80312,21.174367],[101.270026,21.201652],[101.180005,21.436573],[101.150033,21.849984],[100.416538,21.558839],[99.983489,21.742937],[99.240899,22.118314],[99.531992,22.949039],[98.898749,23.142722],[98.660262,24.063286],[97.60472,23.897405],[97.724609,25.083637],[98.671838,25.918703],[98.712094,26.743536],[98.68269,27.508812],[98.246231,27.747221],[97.911988,28.335945],[97.327114,28.261583],[96.248833,28.411031],[96.586591,28.83098],[96.117679,29.452802],[95.404802,29.031717],[94.56599,29.277438],[93.413348,28.640629],[92.503119,27.896876],[91.696657,27.771742],[91.258854,28.040614],[90.730514,28.064954],[90.015829,28.296439],[89.47581,28.042759],[88.814248,27.299316],[88.730326,28.086865],[88.120441,27.876542],[86.954517,27.974262],[85.82332,28.203576],[85.011638,28.642774],[84.23458,28.839894],[83.898993,29.320226],[83.337115,29.463732],[82.327513,30.115268],[81.525804,30.422717],[81.111256,30.183481],[79.721367,30.882715],[78.738894,31.515906],[78.458446,32.618164],[79.176129,32.48378],[79.208892,32.994395],[78.811086,33.506198],[78.912269,34.321936],[77.837451,35.49401],[76.192848,35.898403],[75.896897,36.666806],[75.158028,37.133031],[74.980002,37.41999],[74.829986,37.990007],[74.864816,38.378846],[74.257514,38.606507],[73.928852,38.505815],[73.675379,39.431237],[73.960013,39.660008],[73.822244,39.893973],[74.776862,40.366425],[75.467828,40.562072],[76.526368,40.427946],[76.904484,41.066486],[78.187197,41.185316],[78.543661,41.582243],[80.11943,42.123941],[80.25999,42.349999],[80.18015,42.920068],[80.866206,43.180362],[79.966106,44.917517],[81.947071,45.317027],[82.458926,45.53965],[83.180484,47.330031],[85.16429,47.000956],[85.720484,47.452969],[85.768233,48.455751],[86.598776,48.549182],[87.35997,49.214981],[87.751264,49.297198],[88.013832,48.599463],[88.854298,48.069082],[90.280826,47.693549],[90.970809,46.888146],[90.585768,45.719716],[90.94554,45.286073],[92.133891,45.115076],[93.480734,44.975472],[94.688929,44.352332],[95.306875,44.241331],[95.762455,43.319449],[96.349396,42.725635],[97.451757,42.74889],[99.515817,42.524691],[100.845866,42.663804],[101.83304,42.514873],[103.312278,41.907468],[104.522282,41.908347],[104.964994,41.59741],[106.129316,42.134328],[107.744773,42.481516],[109.243596,42.519446],[110.412103,42.871234],[111.129682,43.406834],[111.829588,43.743118],[111.667737,44.073176],[111.348377,44.457442],[111.873306,45.102079],[112.436062,45.011646],[113.463907,44.808893],[114.460332,45.339817],[115.985096,45.727235],[116.717868,46.388202],[117.421701,46.672733],[118.874326,46.805412],[119.66327,46.69268],[119.772824,47.048059],[118.866574,47.74706],[118.064143,48.06673],[117.295507,47.697709],[116.308953,47.85341],[115.742837,47.726545],[115.485282,48.135383],[116.191802,49.134598],[116.678801,49.888531],[117.879244,49.510983],[119.288461,50.142883],[119.279366,50.582908],[120.18205,51.643566],[120.738191,51.964115],[120.725789,52.516226],[120.177089,52.753886],[121.003085,53.251401],[122.245748,53.431726],[123.571507,53.458804],[125.068211,53.161045],[125.946349,52.792799],[126.564399,51.784255],[126.939157,51.353894],[127.287456,50.739797],[127.657407,49.76027]]]]},"id":"CHN"},{"type":"Feature","properties":{"name":"Ivory Coast"},"geometry":{"type":"Polygon","coordinates":[[[-2.856125,4.994476],[-3.311084,4.984296],[-4.00882,5.179813],[-4.649917,5.168264],[-5.834496,4.993701],[-6.528769,4.705088],[-7.518941,4.338288],[-7.712159,4.364566],[-7.635368,5.188159],[-7.539715,5.313345],[-7.570153,5.707352],[-7.993693,6.12619],[-8.311348,6.193033],[-8.60288,6.467564],[-8.385452,6.911801],[-8.485446,7.395208],[-8.439298,7.686043],[-8.280703,7.68718],[-8.221792,8.123329],[-8.299049,8.316444],[-8.203499,8.455453],[-7.8321,8.575704],[-8.079114,9.376224],[-8.309616,9.789532],[-8.229337,10.12902],[-8.029944,10.206535],[-7.89959,10.297382],[-7.622759,10.147236],[-6.850507,10.138994],[-6.666461,10.430811],[-6.493965,10.411303],[-6.205223,10.524061],[-6.
21050452,10.096361],[-5.816926,10.222555],[-5.404342,10.370737],[-4.954653,10.152714],[-4.779884,9.821985],[-4.330247,9.610835],[-3.980449,9.862344],[-3.511899,9.900326],[-2.827496,9.642461],[-2.56219,8.219628],[-2.983585,7.379705],[-3.24437,6.250472],[-2.810701,5.389051],[-2.856125,4.994476]]]},"id":"CIV"},{"type":"Feature","properties":{"name":"Cameroon"},"geometry":{"type":"Polygon","coordinates":[[[13.075822,2.267097],[12.951334,2.321616],[12.35938,2.192812],[11.751665,2.326758],[11.276449,2.261051],[9.649158,2.283866],[9.795196,3.073404],[9.404367,3.734527],[8.948116,3.904129],[8.744924,4.352215],[8.488816,4.495617],[8.500288,4.771983],[8.757533,5.479666],[9.233163,6.444491],[9.522706,6.453482],[10.118277,7.03877],[10.497375,7.055358],[11.058788,6.644427],[11.745774,6.981383],[11.839309,7.397042],[12.063946,7.799808],[12.218872,8.305824],[12.753672,8.717763],[12.955468,9.417772],[13.1676,9.640626],[13.308676,10.160362],[13.57295,10.798566],[14.415379,11.572369],[14.468192,11.904752],[14.577178,12.085361],[14.181336,12.483657],[14.213531,12.802035],[14.495787,12.859396],[14.893386,12.219048],[14.960152,11.555574],[14.923565,10.891325],[15.467873,9.982337],[14.909354,9.992129],[14.627201,9.920919],[14.171466,10.021378],[13.954218,9.549495],[14.544467,8.965861],[14.979996,8.796104],[15.120866,8.38215],[15.436092,7.692812],[15.27946,7.421925],[14.776545,6.408498],[14.53656,6.226959],[14.459407,5.451761],[14.558936,5.030598],[14.478372,4.732605],[14.950953,4.210389],[15.03622,3.851367],[15.405396,3.335301],[15.862732,3.013537],[15.907381,2.557389],[16.012852,2.26764],[15.940919,1.727673],[15.146342,1.964015],[14.337813,2.227875],[13.075822,2.267097]]]},"id":"CMR"},{"type":"Feature","properties":{"name":"Democratic Republic of the Congo"},"geometry":{"type":"Polygon","coordinates":[[[30.83386,3.509166],[30.773347,2.339883],[31.174149,2.204465],[30.85267,1.849396],[30.468508,1.583805],[30.086154,1.062313],[29.875779,0.59738],[29.819503,-0.20531],[29.587838,-0.587406],[29.579466,-1.341313],[29.291887,-1.620056],[29.254835,-2.21511],[29.117479,-2.292211],[29.024926,-2.839258],[29.276384,-3.293907],[29.339998,-4.499983],[29.519987,-5.419979],[29.419993,-5.939999],[29.620032,-6.520015],[30.199997,-7.079981],[30.740015,-8.340007],[30.346086,-8.238257],[29.002912,-8.407032],[28.734867,-8.526559],[28.449871,-9.164918],[28.673682,-9.605925],[28.49607,-10.789884],[28.372253,-11.793647],[28.642417,-11.971569],[29.341548,-12.360744],[29.616001,-12.178895],[29.699614,-13.257227],[28.934286,-13.248958],[28.523562,-12.698604],[28.155109,-12.272481],[27.388799,-12.132747],[27.16442,-11.608748],[26.553088,-11.92444],[25.75231,-11.784965],[25.418118,-11.330936],[24.78317,-11.238694],[24.314516,-11.262826],[24.257155,-10.951993],[23.912215,-10.926826],[23.456791,-10.867863],[22.837345,-11.017622],[22.402798,-10.993075],[22.155268,-11.084801],[22.208753,-9.894796],[21.875182,-9.523708],[21.801801,-8.908707],[21.949131,-8.305901],[21.746456,-7.920085],[21.728111,-7.290872],[20.514748,-7.299606],[20.601823,-6.939318],[20.091622,-6.94309],[20.037723,-7.116361],[19.417502,-7.155429],[19.166613,-7.738184],[19.016752,-7.988246],[18.464176,-7.847014],[18.134222,-7.987678],[17.47297,-8.068551],[17.089996,-7.545689],[16.860191,-7.222298],[16.57318,-6.622645],[16.326528,-5.87747],[13.375597,-5.864241],[13.024869,-5.984389],[12.735171,-5.965682],[12.322432,-6.100092],[12.182337,-5.789931],[12.436688,-5.684304],[12.468004,-5.248362],[12.631612,-4.991271],[12.995517,-4.781103],[13.25824,-4.882957],[13.600235,-4.500138],[14.144956,-4.510009],[14.209035,-4.793092],[14.582604,-4.970239],[15.170992,-4.343507],[15.75354,-3.855165],[16.00629,-3.535133],[15.972803,-2.712392],[16.407092,-1.740927],[16.865307,-1.225816],[17.523716,-0.74383],[17.638645,-0.424832],[17.663553,-0.058084],[17.82654,0.288923],[17.774192,0.855659],[17.898835,1.741832],[18.094276,2.365722],[18.393792,2.900443],[18.453065,3.504386],[18.542982,4.201785],[18.932312,4.709506],[19.467784,5.031528],[20.290679,4.691678],[20.927591,4.322786],[21.659123,4.224342],[22.405124,4.02916],[22.704124,4.633051],[22.84148,4.710126],[23.297214,4.609693],[24.410531,5.108784],[24.805029,4.897247],[25.128833,4.927245],[25.278798,5.170408],[25.650455,5.256088],[26.402761,5.150875],[27.044065,5.127853],[27.374226,5.233944],[27.979977,4.408413],[28.428994,4.287155],[28.696678,4.455077],[29.159078,4.389267],[29.715995,4.600805],[29.9535,4.173699],[30.83386,3.509166]]]},"id":"COD"},{"type":"Feature","properties":{"name":"Republic of the Congo"}
21,"geometry":{"type":"Polygon","coordinates":[[[12.995517,-4.781103],[12.62076,-4.438023],[12.318608,-4.60623],[11.914963,-5.037987],[11.093773,-3.978827],[11.855122,-3.426871],[11.478039,-2.765619],[11.820964,-2.514161],[12.495703,-2.391688],[12.575284,-1.948511],[13.109619,-2.42874],[13.992407,-2.470805],[14.29921,-1.998276],[14.425456,-1.333407],[14.316418,-0.552627],[13.843321,0.038758],[14.276266,1.19693],[14.026669,1.395677],[13.282631,1.314184],[13.003114,1.830896],[13.075822,2.267097],[14.337813,2.227875],[15.146342,1.964015],[15.940919,1.727673],[16.012852,2.26764],[16.537058,3.198255],[17.133042,3.728197],[17.8099,3.560196],[18.453065,3.504386],[18.393792,2.900443],[18.094276,2.365722],[17.898835,1.741832],[17.774192,0.855659],[17.82654,0.288923],[17.663553,-0.058084],[17.638645,-0.424832],[17.523716,-0.74383],[16.865307,-1.225816],[16.407092,-1.740927],[15.972803,-2.712392],[16.00629,-3.535133],[15.75354,-3.855165],[15.170992,-4.343507],[14.582604,-4.970239],[14.209035,-4.793092],[14.144956,-4.510009],[13.600235,-4.500138],[13.25824,-4.882957],[12.995517,-4.781103]]]},"id":"COG"},{"type":"Feature","properties":{"name":"Colombia"},"geometry":{"type":"Polygon","coordinates":[[[-75.373223,-0.152032],[-75.801466,0.084801],[-76.292314,0.416047],[-76.57638,0.256936],[-77.424984,0.395687],[-77.668613,0.825893],[-77.855061,0.809925],[-78.855259,1.380924],[-78.990935,1.69137],[-78.617831,1.766404],[-78.662118,2.267355],[-78.42761,2.629556],[-77.931543,2.696606],[-77.510431,3.325017],[-77.12769,3.849636],[-77.496272,4.087606],[-77.307601,4.667984],[-77.533221,5.582812],[-77.318815,5.845354],[-77.476661,6.691116],[-77.881571,7.223771],[-77.753414,7.70984],[-77.431108,7.638061],[-77.242566,7.935278],[-77.474723,8.524286],[-77.353361,8.670505],[-76.836674,8.638749],[-76.086384,9.336821],[-75.6746,9.443248],[-75.664704,9.774003],[-75.480426,10.61899],[-74.906895,11.083045],[-74.276753,11.102036],[-74.197223,11.310473],[-73.414764,11.227015],[-72.627835,11.731972],[-72.238195,11.95555],[-71.75409,12.437303],[-71.399822,12.376041],[-71.137461,12.112982],[-71.331584,11.776284],[-71.973922,11.608672],[-72.227575,11.108702],[-72.614658,10.821975],[-72.905286,10.450344],[-73.027604,9.73677],[-73.304952,9.152],[-72.78873,9.085027],[-72.660495,8.625288],[-72.439862,8.405275],[-72.360901,8.002638],[-72.479679,7.632506],[-72.444487,7.423785],[-72.198352,7.340431],[-71.960176,6.991615],[-70.674234,7.087785],[-70.093313,6.9
2160376],[-69.38948,6.099861],[-68.985319,6.206805],[-68.265052,6.153268],[-67.695087,6.267318],[-67.34144,6.095468],[-67.521532,5.55687],[-67.744697,5.221129],[-67.823012,4.503937],[-67.621836,3.839482],[-67.337564,3.542342],[-67.303173,3.318454],[-67.809938,2.820655],[-67.447092,2.600281],[-67.181294,2.250638],[-66.876326,1.253361],[-67.065048,1.130112],[-67.259998,1.719999],[-67.53781,2.037163],[-67.868565,1.692455],[-69.816973,1.714805],[-69.804597,1.089081],[-69.218638,0.985677],[-69.252434,0.602651],[-69.452396,0.706159],[-70.015566,0.541414],[-70.020656,-0.185156],[-69.577065,-0.549992],[-69.420486,-1.122619],[-69.444102,-1.556287],[-69.893635,-4.298187],[-70.394044,-3.766591],[-70.692682,-3.742872],[-70.047709,-2.725156],[-70.813476,-2.256865],[-71.413646,-2.342802],[-71.774761,-2.16979],[-72.325787,-2.434218],[-73.070392,-2.308954],[-73.659504,-1.260491],[-74.122395,-1.002833],[-74.441601,-0.53082],[-75.106625,-0.057205],[-75.373223,-0.152032]]]},"id":"COL"},{"type":"Feature","properties":{"name":"Costa Rica"},"geometry":{"type":"Polygon","coordinates":[[[-82.965783,8.225028],[-83.508437,8.446927],[-83.711474,8.656836],[-83.596313,8.830443],[-83.632642,9.051386],[-83.909886,9.290803],[-84.303402,9.487354],[-84.647644,9.615537],[-84.713351,9.908052],[-84.97566,10.086723],[-84.911375,9.795992],[-85.110923,9.55704],[-85.339488,9.834542],[-85.660787,9.933347],[-85.797445,10.134886],[-85.791709,10.439337],[-85.659314,10.754331],[-85.941725,10.895278],[-85.71254,11.088445],[-85.561852,11.217119],[-84.903003,10.952303],[-84.673069,11.082657],[-84.355931,10.999226],[-84.190179,10.79345],[-83.895054,10.726839],[-83.655612,10.938764],[-83.40232,10.395438],[-83.015677,9.992982],[-82.546196,9.566135],[-82.932891,9.476812],[-82.927155,9.07433],[-82.719183,8.925709],[-82.868657,8.807266],[-82.829771,8.626295],[-82.913176,8.423517],[-82.965783,8.225028]]]},"id":"CRI"},{"type":"Feature","properties":{"name":"Cuba"},"geometry":{"type":"Polygon","coordinates":[[[-82.268151,23.188611],[-81.404457,23.117271],[-80.618769,23.10598],[-79.679524,22.765303],[-79.281486,22.399202],[-78.347434,22.512166],[-77.993296,22.277194],[-77.146422,21.657851],[-76.523825,21.20682],[-76.19462,21.220565],[-75.598222,21.016624],[-75.67106,20.735091],[-74.933896,20.693905],[-74.178025,20.284628],[-74.296648,20.050379],[-74.961595,19.923435],[-75.63468,19.873774],[-76.323656,19.952891],[-77.755481,19.855481],[-77.085108,20.413354],[-77.492655,20.673105],[-78.137292,20.739949],[-78.482827,21.028613],[-78.719867,21.598114],[-79.285,21.559175],[-80.217475,21.827324],[-80.517535,22.037079],[-81.820943,22.192057],[-82.169992,22.387109],[-81.795002,22.636965],[-82.775898,22.68815],[-83.494459,22.168518],[-83.9088,22.154565],[-84.052151,21.910575],[-84.54703,21.801228],[-84.974911,21.896028],[-84.447062,22.20495],[-84.230357,22.565755],[-83.77824,22.788118],[-83.267548,22.983042],[-82.510436,23.078747],[-82.268151,23.188611]]]},"id":"CUB"},{"type":"Feature","properties":{"name":"Northern Cyprus"},"geometry":{"type":"Polygon","coordinates":[[[32.73178,35.140026],[32.802474,35.145504],[32.946961,35.386703],[33.667227,35.373216],[34.576474,35.671596],[33.900804,35.245756],[33.973617,35.058506],[33.86644,35.093595],[33.675392,35.017863],[33.525685,35.038688],[33.475817,35.000345],[33.455922,35.101424],[33.383833,35.162712],[33.190977,35.173125],[32.919572,35.087833],[32.73178,35.140026]]]},"id":"-99"},{"type":"Feature","properties":{"name":"Cyprus"},"geometry":{"type":"Polygon","coordinates":[[[33.973617,35.058506],[34.004881,34.978098],[32.979827,34.571869],[32.490296,34.701655],[32.256667,35.103232],[32.73178,35.140026],[32.919572,35.087833],[33.190977,35.173125],[33.383833,35.162712],[33.455922,35.101424],[33.475817,35.000345],[33.525685,35.038688],[33.675392,35.017863],[33.86644,35.093595],[33.973617,35.058506]]]},"id":"CYP"},{"type":"Feature","properties":{"name":"Czech Republic"},"geometry":{"type":"Polygon","coordinates":[[[16.960288,48.596982],[16.499283,48.785808],[16.029647,48.733899],[15.253416,49.039074],[14.901447,48.964402],[14.338898,48.555305],[13.595946,48.877172],[13.031329,49.307068],[12.521024,49.547415],[12.415191,49.969121],[12.240111,50.266338],[12.966837,50.484076],[13.338132,50.733234],[14.056228,50.926918],[14.307013,51.117268],[14.570
21718,51.002339],[15.016996,51.106674],[15.490972,50.78473],[16.238627,50.697733],[16.176253,50.422607],[16.719476,50.215747],[16.868769,50.473974],[17.554567,50.362146],[17.649445,50.049038],[18.392914,49.988629],[18.853144,49.49623],[18.554971,49.495015],[18.399994,49.315001],[18.170498,49.271515],[18.104973,49.043983],[17.913512,48.996493],[17.886485,48.903475],[17.545007,48.800019],[17.101985,48.816969],[16.960288,48.596982]]]},"id":"CZE"},{"type":"Feature","properties":{"name":"Germany"},"geometry":{"type":"Polygon","coordinates":[[[9.921906,54.983104],[9.93958,54.596642],[10.950112,54.363607],[10.939467,54.008693],[11.956252,54.196486],[12.51844,54.470371],[13.647467,54.075511],[14.119686,53.757029],[14.353315,53.248171],[14.074521,52.981263],[14.4376,52.62485],[14.685026,52.089947],[14.607098,51.745188],[15.016996,51.106674],[14.570718,51.002339],[14.307013,51.117268],[14.056228,50.926918],[13.338132,50.733234],[12.966837,50.484076],[12.240111,50.266338],[12.415191,49.969121],[12.521024,49.547415],[13.031329,49.307068],[13.595946,48.877172],[13.243357,48.416115],[12.884103,48.289146],[13.025851,47.637584],[12.932627,47.467646],[12.62076,47.672388],[12.141357,47.703083],[11.426414,47.523766],[10.544504,47.566399],[10.402084,47.302488],[9.896068,47.580197],[9.594226,47.525058],[8.522612,47.830828],[8.317301,47.61358],[7.466759,47.620582],[7.593676,48.333019],[8.099279,49.017784],[6.65823,49.201958],[6.18632,49.463803],[6.242751,49.902226],[6.043073,50.128052],[6.156658,50.803721],[5.988658,51.851616],[6.589397,51.852029],[6.84287,52.22844],[7.092053,53.144043],[6.90514,53.482162],[7.100425,53.693932],[7.936239,53.748296],[8.121706,53.527792],[8.800734,54.020786],[8.572118,54.395646],[8.526229,54.962744],[9.282049,54.830865],[9.921906,54.983104]]]},"id":"DEU"},{"type":"Feature","properties":{"name":"Djibouti"},"geometry":{"type":"Polygon","coordinates":[[[43.081226,12.699639],[43.317852,12.390148],[43.286381,11.974928],[42.715874,11.735641],[43.145305,11.46204],[42.776852,10.926879],[42.55493,11.10511],[42.31414,11.0342],[41.75557,11.05091],[41.73959,11.35511],[41.66176,11.6312],[42,12.1],[42.35156,12.54223],[42.779642,12.455416],[43.081226,12.699639]]]},"id":"DJI"},{"type":"Feature","properties":{"name":"Denmark"},"geometry":{"type":"MultiPolygon","coordinates":[[[[12.690006,55.609991],[12.089991,54.800015],[11.043543,55.364864],[10.903914,55.779955],[12.370904,56.111407],[12.690006,55.609991]]],[[[10.912182,56.458621],[10.667804,56.081383],[10.369993,56.190007],[9.649985,55.469999],[9.921906,54.983104],[9.282049,54.830865],[8.526229,54.962744],[8.120311,55.517723],[8.089977,56.540012],[8.256582,56.809969],[8.543438,57.110003],[9.424469,57.172066],[9.775559,57.447941],[10.580006,57.730017],[10.546106,57.215733],[10.25,56.890016],[10.369993,56.609982],[10.912182,56.458621]]]]},"id":"DNK"},{"type":"Feature","properties":{"name":"Dominican Republic"},"geometry":{"type":"Polygon","coordinates":[[[-71.712361,19.714456],[-71.587304,19.884911],[-70.806706,19.880286],[-70.214365,19.622885],[-69.950815,19.648],[-69.76925,19.293267],[-69.222126,19.313214],[-69.254346,19.015196],[
21-68.809412,18.979074],[-68.317943,18.612198],[-68.689316,18.205142],[-69.164946,18.422648],[-69.623988,18.380713],[-69.952934,18.428307],[-70.133233,18.245915],[-70.517137,18.184291],[-70.669298,18.426886],[-70.99995,18.283329],[-71.40021,17.598564],[-71.657662,17.757573],[-71.708305,18.044997],[-71.687738,18.31666],[-71.945112,18.6169],[-71.701303,18.785417],[-71.624873,19.169838],[-71.712361,19.714456]]]},"id":"DOM"},{"type":"Feature","properties":{"name":"Algeria"},"geometry":{"type":"Polygon","coordinates":[[[11.999506,23.471668],[8.572893,21.565661],[5.677566,19.601207],[4.267419,19.155265],[3.158133,19.057364],[3.146661,19.693579],[2.683588,19.85623],[2.060991,20.142233],[1.823228,20.610809],[-1.550055,22.792666],[-4.923337,24.974574],[-8.6844,27.395744],[-8.665124,27.589479],[-8.66559,27.656426],[-8.674116,28.841289],[-7.059228,29.579228],[-6.060632,29.7317],[-5.242129,30.000443],[-4.859646,30.501188],[-3.690441,30.896952],[-3.647498,31.637294],[-3.06898,31.724498],[-2.616605,32.094346],[-1.307899,32.262889],[-1.124551,32.651522],[-1.388049,32.864015],[-1.733455,33.919713],[-1.792986,34.527919],[-2.169914,35.168396],[-1.208603,35.714849],[-0.127454,35.888662],[0.503877,36.301273],[1.466919,36.605647],[3.161699,36.783905],[4.815758,36.865037],[5.32012,36.716519],[6.26182,37.110655],[7.330385,37.118381],[7.737078,36.885708],[8.420964,36.946427],[8.217824,36.433177],[8.376368,35.479876],[8.140981,34.655146],[7.524482,34.097376],[7.612642,33.344115],[8.430473,32.748337],[8.439103,32.506285],[9.055603,32.102692],[9.48214,30.307556],[9.805634,29.424638],[9.859998,28.95999],[9.683885,28.144174],[9.756128,27.688259],[9.629056,27.140953],[9.716286,26.512206],[9.319411,26.094325],[9.910693,25.365455],[9.948261,24.936954],[10.303847,24.379313],[10.771364,24.562532],[11.560669,24.097909],[11.999506,23.471668]]]},"id":"DZA"},{"type":"Feature","properties":{"name":"Ecuador"},"geometry":{"type":"Polygon","coordinates":[[[-80.302561,-3.404856],[-79.770293,-2.657512],[-79.986559,-2.220794],[-80.368784,-2.685159],[-80.967765,-2.246943],[-80.764806,-1.965048],[-80.933659,-1.057455],[-80.58337,-0.906663],[-80.399325,-0.283703],[-80.020898,0.36034],[-80.09061,0.768429],[-79.542762,0.982938],[-78.855259,1.380924],[-77.855061,0.809925],[-77.668613,0.825893],[-77.424984,0.395687],[-76.57638,0.256936],[-76.292314,0.416047],[-75.801466,0.084801],[-75.373223,-0.152032],[-75.233723,-0.911417],[-75.544996,-1.56161],[-76.635394,-2.608678],[-77.837905,-3.003021],[-78.450684,-3.873097],[-78.639897,-4.547784],[-79.205289,-4.959129],[-79.624979,-4.454198],[-80.028908,-4.346091],[-80.442242,-4.425724],[-80.469295,-4.059287],[-80.184015,-3.821162],[-80.302561,-3.404856]]]},"id":"ECU"},{"type":"Feature","properties":{"name":"Egypt"},"geometry":{"type":"Polygon","coordinates":[[[34.9226,29.50133],[34.64174,29.09942],[34.42655,28.34399],[34.15451,27.8233],[33.92136,27.6487],[33.58811,27.97136],[33.13676,28.41765],[32.42323,29.85108],[32.32046,29.76043],[32.73482,28.70523],[33.34876,27.69989],[34.10455,26.14227],[34.47387,25.59856],[34.79507,25.03375],[35.69241,23.92671],[35.49372,23.75237],[35.52598,23.10244],[36.69069,22.20485],[36.86623,22],[32.9,22],[29.02,22],[25,22],[25,25.6825],[25,29.238655],[24.70007,30.04419],[24.95762,30.6616],[24.80287,31.08929],[25.16482,31.56915],[26.49533,31.58568],[27.45762,31.32126],[28.45048,31.02577],[28.91353,30.87005],[29.68342,31.18686],[30.09503,31.4734],[30.97693,31.55586],[31.68796,31.4296],[31.96041,30.9336],[32.19247,31.26034],[32.99392,31.02407],[33.7734,30.96746],[34.26544,31.21936],[34.9226,29.50133]]]},"id":"EGY"},{"type":"Feature","properties":{"name":"Eritrea"},"geometry":{"type":"Polygon","coordinates":[[[42.35156,12.54223],[42.00975,12.86582],[41.59856,13.45209],[41.155194,13.77332],[40.8966,14.11864],[40.026219,14.519579],[39.34061,14.53155],[39.0994,14.74064],[38.51295,14.50547],[37.90607,14.95943],[37.59377,14.2131],[36.42951,14.42211],[36.323189,14.822481],[36.75386,16.291874],[36.85253,16.95655],[37.16747,17.26314],[37.904,17.42754],[38.41009,17.998307],[38.990623,16.840626],[39.26611,15.922723],[39.814294,15.435647],[41.179275,14.49108],[41.734952,13.921037],[42.276831,13.343992],[42.589576,13.000421],[43.081226,12.699639],[42.779642,12.455416],[42.35156,12.54223]]]},"id":"ERI"},{"type":"Feature","properties":{"name":"Spain"},"geometry":{"type":"Polygon","coordinates":[[[-9.034818,41.880571],[-8.984433,42.592775],[-9.392884,43.026625],[-7.97819,43.748338],[-6.754492,43.567909],[-5.411886,43.57424],[-4.347843,43.403449],[-3.517532,43.455901],[-1.901351,43.422802],[-1.502771,43.034014],[0.338047,42.579546],[0.701591,42.795734],[1.826793,42.343385],[2.985999,42.473015],[3.039484,41.89212],[2.091842,41.226089],[0.810525,41.014732],[0.721331,40.678318],[0.106692,40.123934],[-0.278711,39.309978],[0.111291,38.738514],[-0.467124,38.292366],[-0.683389,37.642354],[-1.438382,37.443064],[-2.146453,36.674144],[-3.415781,36.6589],[-4.368901,36.677839],[-4.995219,36.324708],[-5.37716,35.94685],[-5.866432,36.029817],[-6.236694,36.367677],[
21-6.520191,36.942913],[-7.453726,37.097788],[-7.537105,37.428904],[-7.166508,37.803894],[-7.029281,38.075764],[-7.374092,38.373059],[-7.098037,39.030073],[-7.498632,39.629571],[-7.066592,39.711892],[-7.026413,40.184524],[-6.86402,40.330872],[-6.851127,41.111083],[-6.389088,41.381815],[-6.668606,41.883387],[-7.251309,41.918346],[-7.422513,41.792075],[-8.013175,41.790886],[-8.263857,42.280469],[-8.671946,42.134689],[-9.034818,41.880571]]]},"id":"ESP"},{"type":"Feature","properties":{"name":"Estonia"},"geometry":{"type":"Polygon","coordinates":[[[24.312863,57.793424],[24.428928,58.383413],[24.061198,58.257375],[23.42656,58.612753],[23.339795,59.18724],[24.604214,59.465854],[25.864189,59.61109],[26.949136,59.445803],[27.981114,59.475388],[28.131699,59.300825],[27.420166,58.724581],[27.716686,57.791899],[27.288185,57.474528],[26.463532,57.476389],[25.60281,57.847529],[25.164594,57.970157],[24.312863,57.793424]]]},"id":"EST"},{"type":"Feature","properties":{"name":"Ethiopia"},"geometry":{"type":"Polygon","coordinates":[[[37.90607,14.95943],[38.51295,14.50547],[39.0994,14.74064],[39.34061,14.53155],[40.02625,14.51959],[40.8966,14.11864],[41.1552,13.77333],[41.59856,13.45209],[42.00975,12.86582],[42.35156,12.54223],[42,12.1],[41.66176,11.6312],[41.73959,11.35511],[41.75557,11.05091],[42.31414,11.0342],[42.55493,11.10511],[42.776852,10.926879],[42.55876,10.57258],[42.92812,10.02194],[43.29699,9.54048],[43.67875,9.18358],[46.94834,7.99688],[47.78942,8.003],[44.9636,5.00162],[43.66087,4.95755],[42.76967,4.25259],[42.12861,4.23413],[41.855083,3.918912],[41.1718,3.91909],[40.76848,4.25702],[39.85494,3.83879],[39.559384,3.42206],[38.89251,3.50074],[38.67114,3.61607],[38.43697,3.58851],[38.120915,3.598605],[36.855093,4.447864],[36.159079,4.447864],[35.817448,4.776966],[35.817448,5.338232],[35.298007,5.506],[34.70702,6.59422],[34.25032,6.82607],[34.0751,7.22595],[33.56829,7.71334],[32.95418,7.78497],[33.2948,8.35458],[33.8255,8.37916],[33.97498,8.68456],[33.96162,9.58358],[34.25745,10.63009],[34.73115,10.91017],[34.83163,11.31896],[35.26049,12.08286],[35.86363,12.57828],[36.27022,13.56333],[36.42951,14.42211],[37.59377,14.2131],[37.90607,14.95943]]]},"id":"ETH"},{"type":"Feature","properties":{"name":"Finland"},"geometry":{"type":"Polygon","coordinates":[[[28.59193,69.064777],[28.445944,68.364613],[29.977426,67.698297],[29.054589,66.944286],[30.21765,65.80598],[29.54443,64.948672],[30.444685,64.204453],[30.035872,63.552814],[31.516092,62.867687],[31.139991,62.357693],[30.211107,61.780028],[28.069998,60.503517],[26.255173,60.423961],[24.496624,60.057316],[22.869695,59.846373],[22.290764,60.391921],[21.322244,60.72017],[21.544866,61.705329],[21.059211,62.607393],[21.536029,63.189735],[22.442744,63.81781],[24.730512,64.902344],[25.398068,65.111427],[25.294043,65.534346],[23.903379,66.006927],[23.56588,66.396051],[23.539473,67.936009],[21.978535,68.616846],[20.645593,69.106247],[21.244936,69.370443],[22.356238,68.841741],[23.66205,68.891247],[24.735679,68.649557],[25.689213,69.092114],[26.179622,69.825299],[27.732292,70.164193],[29.015573,69.766491],[28.59193,69.064777]]]},"id":"FIN"},{"type":"Feature","properties":{"name":"Fiji"},"geometry":{"type":"MultiPolygon","coordinates":[[[[178.3736,-17.33992],[178.71806,-17.62846],[178.55271,-18.15059],[177.93266,-18.28799],[177.38146,-18.16432],[177.28504,-17.72465],[177.67087,-17.38114],[178.12557,-17.50481],[178.3736,-17.33992]]],[[[179.364143,-16.801354],[178.725059,-17.012042],[178.596839,-16.63915],[179.096609,-16.433984],[179.413509,-16.379054],[180,-16.067133],[180,-16.555217],[179.364143,-16.801354]]],[[[-179.917369,-16.501783],[-180,-16.555217],[-180,-16.067133],[-179.79332,-16.020882],[-179.917369,-16.501783]]]]},"id":"FJI"},{"type":"Feature","properties":{"name":"Falkland Islands"},"geometry":{"type":"Polygon","coordinates":[[[-61.2,-51.85],[-60,-51.25],[-59.15,-51.5],[-58.55,-51.1],[-57.75,-51.55],[-58.05,-51.9],[-59.4,-52.2],[-59.85,-51.85],[-60.7,-52.3],[-61.2,-51.85]]]},"id":"FLK"},{"type":"Feature","properties":{"name":"France"},"geometry":{"type":"MultiPolygon","coordinates":[[[[-52.556425,2.504705],[-52.939657,2.124858],[-53.418465,2.053389],[-53.554839,2.334897
21],[-53.778521,2.376703],[-54.088063,2.105557],[-54.524754,2.311849],[-54.27123,2.738748],[-54.184284,3.194172],[-54.011504,3.62257],[-54.399542,4.212611],[-54.478633,4.896756],[-53.958045,5.756548],[-53.618453,5.646529],[-52.882141,5.409851],[-51.823343,4.565768],[-51.657797,4.156232],[-52.249338,3.241094],[-52.556425,2.504705]]],[[[9.560016,42.152492],[9.229752,41.380007],[8.775723,41.583612],[8.544213,42.256517],[8.746009,42.628122],[9.390001,43.009985],[9.560016,42.152492]]],[[[3.588184,50.378992],[4.286023,49.907497],[4.799222,49.985373],[5.674052,49.529484],[5.897759,49.442667],[6.18632,49.463803],[6.65823,49.201958],[8.099279,49.017784],[7.593676,48.333019],[7.466759,47.620582],[7.192202,47.449766],[6.736571,47.541801],[6.768714,47.287708],[6.037389,46.725779],[6.022609,46.27299],[6.5001,46.429673],[6.843593,45.991147],[6.802355,45.70858],[7.096652,45.333099],[6.749955,45.028518],[7.007562,44.254767],[7.549596,44.127901],[7.435185,43.693845],[6.529245,43.128892],[4.556963,43.399651],[3.100411,43.075201],[2.985999,42.473015],[1.826793,42.343385],[0.701591,42.795734],[0.338047,42.579546],[-1.502771,43.034014],[-1.901351,43.422802],[-1.384225,44.02261],[-1.193798,46.014918],[-2.225724,47.064363],[-2.963276,47.570327],[-4.491555,47.954954],[-4.59235,48.68416],[-3.295814,48.901692],[-1.616511,48.644421],[-1.933494,49.776342],[-0.989469,49.347376],[1.338761,50.127173],[1.639001,50.946606],[2.513573,51.148506],[2.658422,50.796848],[3.123252,50.780363],[3.588184,50.378992]]]]},"id":"FRA"},{"type":"Feature","properties":{"name":"Gabon"},"geometry":{"type":"Polygon","coordinates":[[[11.093773,-3.978827],[10.066135,-2.969483],[9.405245,-2.144313],[8.797996,-1.111301],[8.830087,-0.779074],[9.04842,-0.459351],[9.291351,0.268666],[9.492889,1.01012],[9.830284,1.067894],[11.285079,1.057662],[11.276449,2.261051],[11.751665,2.326758],[12.35938,2.192812],[12.951334,2.321616],[13.075822,2.267097],[13.003114,1.830896],[13.282631,1.314184],[14.026669,1.395677],[14.276266,1.19693],[13.843321,0.038758],[14.316418,-0.552627],[14.425456,-1.333407],[14.29921,-1.998276],[13.992407,-2.470805],[13.109619,-2.42874],[12.575284,-1.948511],[12.495703,-2.391688],[11.820964,-2.514161],[11.478039,-2.765619],[11.855122,-3.426871],[11.093773,-3.978827]]]},"id":"GAB"},{"type":"Feature","properties":{"name":"England"},"geometry":{"type":"MultiPolygon","coordinates":[[[[-5.661949,54.554603],[-6.197885,53.867565],[-6.95373,54.073702],[-7.572168,54.059956],[-7.366031,54.595841],[-7.572168,55.131622],[-6.733847,55.17286],[-5.661949,54.554603]]],[[[-3.005005,58.635],[-4.073828,57.553025],[-3.055002,57.690019],[-1.959281,57.6848],[-2.219988,56.870017],[-3.119003,55.973793],[-2.085009,55.909998],[-2.005676,55.804903],[-1.114991,54.624986],[-0.430485,54.464376],[0.184981,53.325014],[0.469977,52.929999],[1.681531,52.73952],[1.559988,52.099998],[1.050562,51.806761],[1.449865,51.289428],[0.550334,50.765739],[-0.787517,50.774989],[-2.489998,50.500019],[-2.956274,50.69688],[-3.617448,50.228356],[-4.542508,50.341837],[-5.245023,49.96],[-5.776567,50.159678],[-4.30999,51.210001],[-3.414851,51.426009],[-3.422719,51.426848],[-4.984367,51.593466],[-5.267296,51.9914],[-4.222347,52.301356],[-4.770013,52.840005],[-4.579999,53.495004],[-3.093831,53.404547],[-3.09208,53.404441],[-2.945009,53.985],[-3.614701,54.600937],[-3.630005,54.615013],[-4.844169,54.790971],[-5.082527,55.061601],[-4.719112,55.508473],[-5.047981,55.783986],[-5.586398,55.311146],[-5.644999,56.275015],[-6.149981,56.78501],[-5.786825,57.818848],[-5.009999,58.630013],[-4.211495,58.550845],[-3.005005,58.635]]]]},"id":"GBR"},{"type":"Feature","properties":{"name":"Georgia"},"geometry":{"type":"Polygon","coordinates":[[[41.554084,41.535656],[41.703171,41.962943],[41.45347,42.645123],[40.875469,43.013628],[40.321394,43.128634],[39.955009,43.434998],[40.076965,43.553104],[40.922185,43.382159],[42.394395,43.220308],[43.756017,42.740828],[43.9312,42.554974],[44.537623,42.711993],[45.470279,42.502781],[45.77641,42.092444],[46.404951,41.860675],[46.145432,41.722802],[46.637908,41.181673],[46.501637,41.064445],[45.962601,41.123873],[45.217426,41.411452],[44.97248,41.248129],[43.582746,41.092143],[42.619549,41.583173],[41.554084,41.535656]]]},"id":"GEO"},{"type":"Feature","properties":{"name":"Ghana"},"geometry":{"type":"Polygon","coordinates":[[[1.060122,5.928837],[-0.507638,5.343473],[-1.063625,5.000548],[-1.964707,4.710462],[-2.856125,4.994476],[-2.810701,5.389051],[-3.24437,6.250472],[-2.983585,7.379705],[-2.56219,8.219628],[-2.827496,9.642461],[-2.963896,10.395335],[-2.940409,10.96269],[-1.203358,11.009819],[-0.761576,10.93693],[-0.438702,11.098341],[0.023803,11.018682],[-0.049785,10.706918],[0.36758,10.191213],[0.365901,9.465004],[0.461192,8.677223],[0.712029,8.312465],[0.490957,7.411744],[0.570384,6.914359],[0.836931,6.279979],[1.060122,5.928837]]]},"id":"GHA"},{"type":"Feature","properties":{"name":"Guinea"},"geometry":{"type":"Polygon","coordinates":[[[-8.439298,7.686043],[-8.722124,7.711674],[-8.926065,7.309037],[-9.208786,7.313921],[-9.403348,7.526905],[-9.33728,7.928534],[-9.755342,8.541055],[-10.016567,8.428504],[-10.230094,8.406206],[-10.505477,8.348896],[-10.494315,8.715541],[-10.65477,8.977178],[-10.622395,9.26791],[-10.839152,9.688246],[
21-11.117481,10.045873],[-11.917277,10.046984],[-12.150338,9.858572],[-12.425929,9.835834],[-12.596719,9.620188],[-12.711958,9.342712],[-13.24655,8.903049],[-13.685154,9.494744],[-14.074045,9.886167],[-14.330076,10.01572],[-14.579699,10.214467],[-14.693232,10.656301],[-14.839554,10.876572],[-15.130311,11.040412],[-14.685687,11.527824],[-14.382192,11.509272],[-14.121406,11.677117],[-13.9008,11.678719],[-13.743161,11.811269],[-13.828272,12.142644],[-13.718744,12.247186],[-13.700476,12.586183],[-13.217818,12.575874],[-12.499051,12.33209],[-12.278599,12.35444],[-12.203565,12.465648],[-11.658301,12.386583],[-11.513943,12.442988],[-11.456169,12.076834],[-11.297574,12.077971],[-11.036556,12.211245],[-10.87083,12.177887],[-10.593224,11.923975],[-10.165214,11.844084],[-9.890993,12.060479],[-9.567912,12.194243],[-9.327616,12.334286],[-9.127474,12.30806],[-8.905265,12.088358],[-8.786099,11.812561],[-8.376305,11.393646],[-8.581305,11.136246],[-8.620321,10.810891],[-8.407311,10.909257],[-8.282357,10.792597],[-8.335377,10.494812],[-8.029944,10.206535],[-8.229337,10.12902],[-8.309616,9.789532],[-8.079114,9.376224],[-7.8321,8.575704],[-8.203499,8.455453],[-8.299049,8.316444],[-8.221792,8.123329],[-8.280703,7.68718],[-8.439298,7.686043]]]},"id":"GIN"},{"type":"Feature","properties":{"name":"Gambia"},"geometry":{"type":"Polygon","coordinates":[[[-16.841525,13.151394],[-16.713729,13.594959],[-15.624596,13.623587],[-15.39877,13.860369],[-15.081735,13.876492],[-14.687031,13.630357],[-14.376714,13.62568],[-14.046992,13.794068],[-13.844963,13.505042],[-14.277702,13.280585],[-14.712197,13.298207],[-15.141163,13.509512],[-15.511813,13.27857],[-15.691001,13.270353],[-15.931296,13.130284],[-16.841525,13.151394]]]},"id":"GMB"},{"type":"Feature","properties":{"name":"Guinea Bissau"},"geometry":{"type":"Polygon","coordinates":[[[-15.130311,11.040412],[-15.66418,11.458474],[-16.085214,11.524594],[-16.314787,11.806515],[-16.308947,11.958702],[-16.613838,12.170911],[-16.677452,12.384852],[-16.147717,12.547762],[-15.816574,12.515567],[-15.548477,12.62817],[-13.700476,12.586183],[-13.718744,12.247186],[-13.828272,12.142644],[-13.743161,11.811269],[-13.9008,11.678719],[-14.121406,11.677117],[-14.382192,11.509272],[-14.685687,11.527824],[-15.130311,11.040412]]]},"id":"GNB"},{"type":"Feature","properties":{"name":"Equatorial Guinea"},"geometry":{"type":"Polygon","coordinates":[[[9.492889,1.01012],[9.305613,1.160911],[9.649158,2.283866],[11.276449,2.261051],[11.285079,1.057662],[9.830284,1.067894],[9.492889,1.01012]]]},"id":"GNQ"},{"type":"Feature","properties":{"name":"Greece"},"geometry":{"type":"MultiPolygon","coordinates":[[[[23.69998,35.705004],[24.246665,35.368022],[25.025015,35.424996],[25.769208,35.354018],[25.745023,35.179998],[26.290003,35.29999],[26.164998,35.004995],[24.724982,34.919988],[24.735007,35.084991],[23.514978,35.279992],[23.69998,35.705004]]],[[[26.604196,41.562115],[26.294602,40.936261],[26.056942,40.824123],[25.447677,40.852545],[24.925848,40.947062],[23.714811,40.687129],[24.407999,40.124993],[23.899968,39.962006],[23.342999,39.960998],[22.813988,40.476005],[22.626299,40.256561],[22.849748,39.659311],[23.350027,39.190011],[22.973099,38.970903],[23.530016,38.510001],[24.025025,38.219993],[24.040011,37.655015],[23.115003,37.920011],[23.409972,37.409991],[22.774972,37.30501],[23.154225,36.422506],[22.490028,36.41],[21.670026,36.844986],[21.295011,37.644989],[21.120034,38.310323],[20.730032,38.769985],[20.217712,39.340235],[20.150016,39.624998],[20.615,40.110007],[20.674997,40.435],[20.99999,40.580004],[21.02004,40.842727],[21.674161,40.931275],[22.055378,41.149866],[22.597308,41.130487],[22.76177,41.3048],[22.952377,41.337994],[23.692074,41.309081],[24.492645,41.583896],[25.197201,41.234486],[26.106138,41.328899],[26.117042,41.826905],[26.604196,41.562115]]]]},"id":"GRC"},{"type":"Feature","properties":{"name":"Greenland"},"geometry":{"type":"Polygon","coordinates":[[[-46.76379,82.62796],[-43.40644,83.22516],[-39.89753,83.18018],[-38.62214,83.54905],[-35.08787,83.64513],[-27.10046,83.51966],[-20.84539,82.72669],[-22.69182,82.34165],[-26.51753,82.29765],[-31.9,82.2],[-31.39646,82.02154],[-27.85666,82.13178],[-24.84448,81.78697],[-22.90328,82.09317],[
21-22.07175,81.73449],[-23.16961,81.15271],[-20.62363,81.52462],[-15.76818,81.91245],[-12.77018,81.71885],[-12.20855,81.29154],[-16.28533,80.58004],[-16.85,80.35],[-20.04624,80.17708],[-17.73035,80.12912],[-18.9,79.4],[-19.70499,78.75128],[-19.67353,77.63859],[-18.47285,76.98565],[-20.03503,76.94434],[-21.67944,76.62795],[-19.83407,76.09808],[-19.59896,75.24838],[-20.66818,75.15585],[-19.37281,74.29561],[-21.59422,74.22382],[-20.43454,73.81713],[-20.76234,73.46436],[-22.17221,73.30955],[-23.56593,73.30663],[-22.31311,72.62928],[-22.29954,72.18409],[-24.27834,72.59788],[-24.79296,72.3302],[-23.44296,72.08016],[-22.13281,71.46898],[-21.75356,70.66369],[-23.53603,70.471],[-24.30702,70.85649],[-25.54341,71.43094],[-25.20135,70.75226],[-26.36276,70.22646],[-23.72742,70.18401],[-22.34902,70.12946],[-25.02927,69.2588],[-27.74737,68.47046],[-30.67371,68.12503],[-31.77665,68.12078],[-32.81105,67.73547],[-34.20196,66.67974],[-36.35284,65.9789],[-37.04378,65.93768],[-38.37505,65.69213],[-39.81222,65.45848],[-40.66899,64.83997],[-40.68281,64.13902],[-41.1887,63.48246],[-42.81938,62.68233],[-42.41666,61.90093],[-42.86619,61.07404],[-43.3784,60.09772],[-44.7875,60.03676],[-46.26364,60.85328],[-48.26294,60.85843],[-49.23308,61.40681],[-49.90039,62.38336],[-51.63325,63.62691],[-52.14014,64.27842],[-52.27659,65.1767],[-53.66166,66.09957],[-53.30161,66.8365],[-53.96911,67.18899],[-52.9804,68.35759],[-51.47536,68.72958],[-51.08041,69.14781],[-50.87122,69.9291],[-52.013585,69.574925],[-52.55792,69.42616],[-53.45629,69.283625],[-54.68336,69.61003],[-54.75001,70.28932],[-54.35884,70.821315],[-53.431315,70.835755],[-51.39014,70.56978],[-53.10937,71.20485],[-54.00422,71.54719],[-55,71.406537],[-55.83468,71.65444],[-54.71819,72.58625],[-55.32634,72.95861],[-56.12
21003,73.64977],[-57.32363,74.71026],[-58.59679,75.09861],[-58.58516,75.51727],[-61.26861,76.10238],[-63.39165,76.1752],[-66.06427,76.13486],[-68.50438,76.06141],[-69.66485,76.37975],[-71.40257,77.00857],[-68.77671,77.32312],[-66.76397,77.37595],[-71.04293,77.63595],[-73.297,78.04419],[-73.15938,78.43271],[-69.37345,78.91388],[-65.7107,79.39436],[-65.3239,79.75814],[-68.02298,80.11721],[-67.15129,80.51582],[-63.68925,81.21396],[-62.23444,81.3211],[-62.65116,81.77042],[-60.28249,82.03363],[-57.20744,82.19074],[-54.13442,82.19962],[-53.04328,81.88833],[-50.39061,82.43883],[-48.00386,82.06481],[-46.59984,81.985945],[-44.523,81.6607],[-46.9007,82.19979],[-46.76379,82.62796]]]},"id":"GRL"},{"type":"Feature","properties":{"name":"Guatemala"},"geometry":{"type":"Polygon","coordinates":[[[-90.095555,13.735338],[-90.608624,13.909771],[-91.23241,13.927832],[-91.689747,14.126218],[-92.22775,14.538829],[-92.20323,14.830103],[-92.087216,15.064585],[-92.229249,15.251447],[-91.74796,16.066565],[-90.464473,16.069562],[-90.438867,16.41011],[-90.600847,16.470778],[-90.711822,16.687483],[-91.08167,16.918477],[-91.453921,17.252177],[-91.002269,17.254658],[-91.00152,17.817595],[-90.067934,17.819326],[-89.14308,17.808319],[-89.150806,17.015577],[-89.229122,15.886938],[-88.930613,15.887273],[-88.604586,15.70638],[-88.518364,15.855389],[-88.225023,15.727722],[-88.68068,15.346247],[-89.154811,15.066419],[-89.22522,14.874286],[-89.145535,14.678019],[-89.353326,14.424133],[-89.587343,14.362586],[-89.534219,14.244816],[-89.721934,14.134228],[-90.064678,13.88197],[-90.095555,13.735338]]]},"id":"GTM"},{"type":"Feature","properties":{"name":"Guyana"},"geometry":{"type":"Polygon","coordinates":[[[-59.758285,8.367035],[-59.101684,7.999202],[-58.482962,7.347691],[-58.454876,6.832787],[-58.078103,6.809094],[-57.542219,6.321268],[-57.147436,5.97315],[-57.307246,5.073567],[-57.914289,4.812626],[-57.86021,4.576801],[-58.044694,4.060864],[-57.601569,3.334655],[-57.281433,3.333492],[-57.150098,2.768927],[-56.539386,1.899523],[-56.782704,1.863711],[-57.335823,1.948538],[-57.660971,1.682585],[-58.11345,1.507195],[-58.429477,1.463942],[-58.540013,1.268088],[-59.030862,1.317698],[-59.646044,1.786894],[-59.718546,2.24963],[-59.974525,2.755233],[-59.815413,3.606499],[-59.53804,3.958803],[-59.767406,4.423503],[-60.111002,4.574967],[-59.980959,5.014061],[-60.213683,5.244486],[-60.733574,5.200277],[-61.410303,5.959068],[-61.139415,6.234297],[-61.159336,6.696077],[-60.543999,6.856584],[-60.295668,7.043911],[-60.637973,7.415],[-60.550588,7.779603],[-59.758285,8.367035]]]},"id":"GUY"},{"type":"Feature","properties":{"name":"Honduras"},"geometry":{"type":"Polygon","coordinates":[[[-87.316654,12.984686],[-87.489409,13.297535],[-87.793111,13.38448],[-87.723503,13.78505],[-87.859515,13.893312],[-88.065343,13.964626],[-88.503998,13.845486],[-88.541231,13.980155],[-88.843073,14.140507],[-89.058512,14.340029],[-89.353326,14.424133],[-89.145535,14.678019],[-89.22522,14.874286],[-89.154811,15.066419],[-88.68068,15.346247],[-88.225023,15.727722],[-88.121153,15.688655],[-87.901813,15.864458],[-87.61568,15.878799],[-87.522921,15.797279],[-87.367762,15.84694],[-86.903191,15.756713],[-86.440946,15.782835],[-86.119234,15.893449],[-86.001954,16.005406],[-85.683317,15.953652],[-85.444004,15.885749],[-85.182444,15.909158],[-84.983722,15.995923],[-84.52698,15.857224],[-84.368256,15.835158],[-84.063055,15.648244],[-83.773977,15.424072],[-83.410381,15.270903],[-83.147219,14.995829],[-83.489989,15.016267],[-83.628585,14.880074],[-83.975721,14.749436],[-84.228342,14.748764],[-84.449336,14.621614],[-84.649582,14.666805],[-84.820037,14.819587],[-84.924501,14.790493],[-85.052787,14.551541],[-85.148751,14.560197],[-85.165365,14.35437],[-85.514413,14.079012],[-85.698665,13.960078],[-85.801295,13.836055],[-86.096264,14.038187],[-86.312142,13.771356],[-86.520708,13.778487],[-86.755087,13.754845],[-86.733822,13.263093],[-86.880557,13.254204],[-87.005769,13.025794],[-87.3166
2154,12.984686]]]},"id":"HND"},{"type":"Feature","properties":{"name":"Croatia"},"geometry":{"type":"Polygon","coordinates":[[[18.829838,45.908878],[19.072769,45.521511],[19.390476,45.236516],[19.005486,44.860234],[18.553214,45.08159],[17.861783,45.06774],[17.002146,45.233777],[16.534939,45.211608],[16.318157,45.004127],[15.959367,45.233777],[15.750026,44.818712],[16.23966,44.351143],[16.456443,44.04124],[16.916156,43.667722],[17.297373,43.446341],[17.674922,43.028563],[18.56,42.65],[18.450016,42.479991],[17.50997,42.849995],[16.930006,43.209998],[16.015385,43.507215],[15.174454,44.243191],[15.37625,44.317915],[14.920309,44.738484],[14.901602,45.07606],[14.258748,45.233777],[13.952255,44.802124],[13.656976,45.136935],[13.679403,45.484149],[13.71506,45.500324],[14.411968,45.466166],[14.595109,45.634941],[14.935244,45.471695],[15.327675,45.452316],[15.323954,45.731783],[15.67153,45.834154],[15.768733,46.238108],[16.564808,46.503751],[16.882515,46.380632],[17.630066,45.951769],[18.456062,45.759481],[18.829838,45.908878]]]},"id":"HRV"},{"type":"Feature","properties":{"name":"Haiti"},"geometry":{"type":"Polygon","coordinates":[[[-73.189791,19.915684],[-72.579673,19.871501],[-71.712361,19.714456],[-71.624873,19.169838],[-71.701303,18.785417],[-71.945112,18.6169],[-71.687738,18.31666],[-71.708305,18.044997],[-72.372476,18.214961],[-72.844411,18.145611],[-73.454555,18.217906],[-73.922433,18.030993],[-74.458034,18.34255],[-74.369925,18.664908],[-73.449542,18.526053],[-72.694937,18.445799],[-72.334882,18.668422],[-72.79165,19.101625],[-72.784105,19.483591],[-73.415022,19.639551],[-73.189791,19.915684]]]},"id":"HTI"},{"type":"Feature","properties":{"name":"Hungary"},"geometry":{"type":"Polygon","coordinates":[[[16.202298,46.852386],[16.534268,47.496171],[16.340584,47.712902],[16.903754,47.714866],[16.979667,48.123497],[17.488473,47.867466],[17.857133,47.758429],[18.696513,47.880954],[18.777025,48.081768],[19.174365,48.111379],[19.661364,48.266615],[19.769471,48.202691],[20.239054,48.327567],[20.473562,48.56285],[20.801294,48.623854],[21.872236,48.319971],[22.085608,48.422264],[22.64082,48.15024],[22.710531,47.882194],[22.099768,47.672439],[21.626515,46.994238],[21.021952,46.316088],[20.220192,46.127469],[19.596045,46.17173],[18.829838,45.908878],[18.456062,45.759481],[17.630066,45.951769],[16.882515,46.380632],[16.564808,46.503751],[16.370505,46.841327],[16.202298,46.852386]]]},"id":"HUN"},{"type":"Feature","properties":{"name":"Indonesia"},"geometry":{"type":"MultiPolygon","coordinates":[[[[120.715609,-10.239581],[120.295014,-10.25865],[118.967808,-9.557969],[119.90031,-9.36134],[120.425756,-9.665921],[120.775502,-9.969675],[120.715609,-10.239581]]],[[[124.43595,-10.140001],[123.579982,-10.359987],[123.459989,-10.239995],[123.550009,-9.900016],[123.980009,-9.290027],[124.968682,-8.89279],[125.07002,-9.089987],[125.08852,-9.393173],[124.43595,-10.140001]]],[[[117.900018,-8.095681],[118.260616,-8.362383],[118.87846,-8.280683],[119.126507,-8.705825],[117.970402,-8.906639],[117.277731,-9.040895],[116.740141,-9.032937],[117.083737,-8.457158],[117.632024,-8.449303],[117.900018,-8.095681]]],[[[122.903537,-8.094234],[122.756983,-8.649808],[121.254491,-8.933666],[119.924391,-8.810418],[119.920929,-8.444859],[120.715092,-8.236965],[121.341669,-8.53674],[122.007365,-8.46062],[122.903537,-8.094234]]],[[[108.623479,-6.777674],[110.539227,-6.877358],[110.759576,-6.465186],[112.614811,-6.946036],[112.978768,-7.594213],[114.478935,-7.776528],[115.705527,-8.370807],[114.564511,-8.751817],[113.464734,-8.348947],[112.559672,-8.376181],[111.522061,-8.302129],[110.58615,-8.122605],[109.427667,-7.740664],[108.693655,-7.6416],[108.277763,-7.766657],[106.454102,-7.3549],[106.280624,-6.9249],[105.365486,-6.851416],[106.051646,-5.895919],[107.265009,-5.954985],[108.072091,-6.345762],[108.486846,-6.421985],[108.623479,-6.777674]]],[[[134.724624,-6.214401],[134.210134,-6.895238],[134.112776,-6.142467],[134.290336,-5.783058],[134.499625,-5.445042],[134.727002,-5.737582],[134.724624,-6.214401]]],[[[127.249215,-3.459065],[126.874923,-3.790983],[126.183802,-3.607376],[125.989034,-3.177273],[127.000651,-3.129318],[127.249215,-3.459065]]],[[[130.471344,-3.093764],[130.834836,-3.858472],[129.990547,-3.446301
21],[129.155249,-3.362637],[128.590684,-3.428679],[127.898891,-3.393436],[128.135879,-2.84365],[129.370998,-2.802154],[130.471344,-3.093764]]],[[[134.143368,-1.151867],[134.422627,-2.769185],[135.457603,-3.367753],[136.293314,-2.307042],[137.440738,-1.703513],[138.329727,-1.702686],[139.184921,-2.051296],[139.926684,-2.409052],[141.00021,-2.600151],[141.017057,-5.859022],[141.033852,-9.117893],[140.143415,-8.297168],[139.127767,-8.096043],[138.881477,-8.380935],[137.614474,-8.411683],[138.039099,-7.597882],[138.668621,-7.320225],[138.407914,-6.232849],[137.92784,-5.393366],[135.98925,-4.546544],[135.164598,-4.462931],[133.66288,-3.538853],[133.367705,-4.024819],[132.983956,-4.112979],[132.756941,-3.746283],[132.753789,-3.311787],[131.989804,-2.820551],[133.066845,-2.460418],[133.780031,-2.479848],[133.696212,-2.214542],[132.232373,-2.212526],[131.836222,-1.617162],[130.94284,-1.432522],[130.519558,-0.93772],[131.867538,-0.695461],[132.380116,-0.369538],[133.985548,-0.78021],[134.143368,-1.151867]]],[[[125.240501,1.419836],[124.437035,0.427881],[123.685505,0.235593],[122.723083,0.431137],[121.056725,0.381217],[120.183083,0.237247],[120.04087,-0.519658],[120.935905,-1.408906],[121.475821,-0.955962],[123.340565,-0.615673],[123.258399,-1.076213],[122.822715,-0.930951],[122.38853,-1.516858],[121.508274,-1.904483],[122.454572,-3.186058],[122.271896,-3.5295],[123.170963,-4.683693],[123.162333,-5.340604],[122.628515,-5.634591],[122.236394,-5.282933],[122.719569,-4.464172],[121.738234,-4.851331],[121.489463,-4.574553],[121.619171,-4.188478],[120.898182,-3.602105],[120.972389,-2.627643],[120.305453,-2.931604],[120.390047,-4.097579],[120.430717,-5.528241],[119.796543,-5.6734],[119.366906,-5.379878],[119.653606,-4.459417],[119.498835,-3.494412],[119.078344,-3.487022],[118.767769,-2.801999],[119.180974,-2.147104],[119.323394,-1.353147],[119.825999,0.154254],[120.035702,0.566477],[120.885779,1.309223],[121.666817,1.013944],[122.927567,0.875192],[124.077522,0.917102],[125.065989,1.643259],[125.240501,1.419836]]],[[[128.688249,1.132386],[128.635952,0.258486],[128.12017,0.356413],[127.968034,-0.252077],[128.379999,-0.780004],[128.100016,-0.899996],[127.696475,-0.266598],[127.39949,1.011722],[127.600512,1.810691],[127.932378,2.174596],[128.004156,1.628531],[128.594559,1.540811],[128.688249,1.132386]]],[[[117.875627,1.827641],[118.996747,0.902219],[117.811858,0.784242],[117.478339,0.102475],[117.521644,-0.803723],[116.560048,-1.487661],[116.533797,-2.483517],[116.148084,-4.012726],[116.000858,-3.657037],[114.864803,-4.106984],[114.468652,-3.495704],[113.755672,-3.43917],[113.256994,-3.118776],[112.068126,-3.478392],[111.703291,-2.994442],[111.04824,-3.049426],[110.223846,-2.934032],[110.070936,-1.592874],[109.571948,-1.314907],[109.091874,-0.459507],[108.952658,0.415375],[109.069136,1.341934],[109.66326,2.006467],[109.830227,1.338136],[110.514061,0.773131],[111.159138,0.976478],[111.797548,0.904441],[112.380252,1.410121],[112.859809,1.49779],[113.80585,1.217549],[114.621355,1.430688],[115.134037,2.821482],[115.519078,3.169238],[115.865517,4.306559],[117.015214,4.306094],[117.882035,4.137551],[117.313232,3.234428],[118.04833,2.28769],[117.875627,1.827641]]],[[[105.817655,-5.852356],[104.710384,-5.873285],[103.868213,-5.037315],[102.584261,-4.220259],[102.156173,-3.614146],[101.399113,-2.799777],[100.902503,-2.050262],[100.141981,-0.650348],[99.26374,0.183142],[98.970011,1.042882],[98.601351,1.823507],[97.699598,2.453184],[97.176942,3.308791],[96.424017,3.86886],[95.380876,4.970782],[95.293026,5.479821],[95.936863,5.439513],[97.484882,5.246321],[98.369169,4.26837],[99.142559,3.59035],[99.693998,3.174329],[100.641434,2.099381],[101.658012,2.083697],[102.498271,1.3987],[103.07684,0.561361],[103.838396,0.104542],[103.437645,-0.711946],[104.010789,-1.059212],[104.369991,-1.084843],[104.53949,-1.782372],[104.887893,-2.340425],[105.622111,-2.428844],[106.108593,-3.061777],[105.857446,-4.305525],[105.817655,-5.852356]]]]},"id":"IDN"},{"type":"Feature","properties":{"name":"India"},"geometry":{"type":"Polygon","coordinates":[[[77.837451,35.49401],[78.912269,34.321936],[78.811086,33.506198],[79.208892,32.994395],[79.176129,32.48378],[78.458446,32.618164],[78.738894,31.515906],[79.721367,30.882715],[81.111256,30.183481],[80.476721,29.729865],[80.088425,28.79447],[81.057203,28.416095],[81.999987,27.925479],[83.304249,27.364506],[84.675018,27.234901],[85.251779,26.726198],[86.024393,26.630985],[87.227472,26.397898],[88.060238,26.414615],[88.174804,26.810405],[88.043133,27.445819],[88.120441,27.876542],[88.730326,28.086865],[88.814248,27.299316],[88.835643,27.098966],[89.744528,26.719403],[90.373275,26.875724],[91.217513,26.808648],[92.033484,26.83831],[92.103712,27.452614],[91.696657,27.771742],[92.503119,27.896876],[93.413348,28.640629],[94.56599,29.277438],[95.404802,29.031717],[96.117679,29.452802],[96.586591,28.83098],[96.248833,28.411031],[97.327114,28.261583],[97.402561,27.882536],[97.051989,27.699059],[97.133999,27.083774],[96.419366,27.264589],[95.124768,26.573572],[95.155153,26.001307],[94.603249,25.162495],[94.552658,24.675238],[94.106742,23.850741],[93.325188,24.078556],[93.286327,23.043658],[93.060294,22.703111],[93.166128,22.27846],[92.672721,22.041239],[92.146035,23.627499],[91.869928,23.624346],[91.706475,22.985264],[91.158963,23.503527],[91.46773,24.072639],[91.915093,24.130414],[92.376202,24.976693],[91.799596,25.147432],[90.872211,25.132601],[89.920693,25.26975],[89.832481,25.965082],[89.355094,26.014407],[88.563049,26.446526],[88.209789,25.768066],[88.931554,25.238692],[88.306373,24.866079],[88.084422,24.501657],[88.69994,24.233715],[88.52977,23.631142],[88.876312,22.879146],[89.031961,22.055708],[88.888766,21.690588],[88.208497,21.703172],[86.975704,21.495562],[87.033169,20.743308],[86.499351,20.151638],[85.060266,19.478579],[83.941006,18.30201],[83.189217,17.671221],[82.192792,17.016636],[82.191242,16.556664],[81.692719,16.310219],[80.791999,15.951972],[80.324896,15.899185],[80.025069,15.136415],[80.233274,13.835771],[80.286294,13.006261],[79.862547,12.056215],[79.857999,10.357275],[79.340512,10.308854],[78.885345,9.546136],[79.18972,9.216544],[78.277941,8.933047],[77.941165,8.252959],[77.539898,7.965535],[76.592979,8.899276],[76.130061,10.29963],[75.746467,11.308251],[75.396101,11.781245],[74.864816,12.741936],[74.616717,13.992583],[74.443859,14.617222],[73.534199,15.990652],[73.119909,17.92857],[72.820909,19.208234],[72.824475,20.419503],[72.630533,21.356009],[71.175273,20.757441],[70.470459,20.877331],[69.16413,22.089298],[69.644928,22.450775],[69.349597,22.84318],[68.176645,23.691965],[68.842599,24.359134],[71.04324,24.356524],[70.844699,25.215102],[70.282873,25.722229],[70.168927,26.491872],[69.514393,26.940966],[70.616496,27.989196],[71.777666,27.91318],[72.823752,28.961592],[73.450638,29.976413],[74.42138,30.979815],[74.405929,31.692639],[75.258642,32.271105],[74.451559,32.7649],[74.104294,33.441473],[73.749948,34.317699],[74.240203,34.748887],[75.757061,34.504923],[76.871722,34.653544],[77.837451,35.49401]]]},"id":"IND"},{"type":"Feature","properties":{"name":"Ireland"},"geometry":{"type":"Polygon","coordinates":[[[-6.197885,53.867565],[-6.032985,53.153164],[-6.788857,52.260118],[-8.561617,51.
21669301],[-9.977086,51.820455],[-9.166283,52.864629],[-9.688525,53.881363],[-8.327987,54.664519],[-7.572168,55.131622],[-7.366031,54.595841],[-7.572168,54.059956],[-6.95373,54.073702],[-6.197885,53.867565]]]},"id":"IRL"},{"type":"Feature","properties":{"name":"Iran"},"geometry":{"type":"Polygon","coordinates":[[[53.921598,37.198918],[54.800304,37.392421],[55.511578,37.964117],[56.180375,37.935127],[56.619366,38.121394],[57.330434,38.029229],[58.436154,37.522309],[59.234762,37.412988],[60.377638,36.527383],[61.123071,36.491597],[61.210817,35.650072],[60.803193,34.404102],[60.52843,33.676446],[60.9637,33.528832],[60.536078,32.981269],[60.863655,32.18292],[60.941945,31.548075],[61.699314,31.379506],[61.781222,30.73585],[60.874248,29.829239],[61.369309,29.303276],[61.771868,28.699334],[62.72783,28.259645],[62.755426,27.378923],[63.233898,27.217047],[63.316632,26.756532],[61.874187,26.239975],[61.497363,25.078237],[59.616134,25.380157],[58.525761,25.609962],[57.397251,25.739902],[56.970766,26.966106],[56.492139,27.143305],[55.72371,26.964633],[54.71509,26.480658],[53.493097,26.812369],[52.483598,27.580849],[51.520763,27.86569],[50.852948,28.814521],[50.115009,30.147773],[49.57685,29.985715],[48.941333,30.31709],[48.567971,29.926778],[48.014568,30.452457],[48.004698,30.985137],[47.685286,30.984853],[47.849204,31.709176],[47.334661,32.469155],[46.109362,33.017287],[45.416691,33.967798],[45.64846,34.748138],[46.151788,35.093259],[46.07634,35.677383],[45.420618,35.977546],[44.77267,37.17045],[44.225756,37.971584],[44.421403,38.281281],[44.109225,39.428136],[44.79399,39.713003],[44.952688,39.335765],[45.457722,38.874139],[46.143623,38.741201],[46.50572,38.770605],[47.685079,39.508364],[48.060095,39.582235],[48.355529,39.288765],[48.010744,38.794015],[48.634375,38.270378],[48.883249,38.320245],[49.199612,37.582874],[50.147771,37.374567],[50.842354,36.872814],[52.264025,36.700422],[53.82579,36.965031],[53.921598,37.198918]]]},"id":"IRN"},{"type":"Feature","properties":{"name":"Iraq"},"geometry":{"type":"Polygon","coordinates":[[[45.420618,35.977546],[46.07634,35.677383],[46.151788,35.093259],[45.64846,34.748138],[45.416691,33.967798],[46.109362,33.017287],[47.334661,32.469155],[47.849204,31.709176],[47.685286,30.984853],[48.004698,30.985137],[48.014568,30.452457],[48.567971,29.926778],[47.974519,29.975819],[47.302622,30.05907],[46.568713,29.099025],[44.709499,29.178891],[41.889981,31.190009],[40.399994,31.889992],[39.195468,32.161009],[38.792341,33.378686],[41.006159,34.419372],[41.383965,35.628317],[41.289707,36.358815],[41.837064,36.605854],[42.349591,37.229873],[42.779126,37.385264],[43.942259,37.256228],[44.293452,37.001514],[44.772699,37.170445],[45.420618,35.977546]]]},"id":"IRQ"},{"type":"Feature","properties":{"name":"Iceland"},"geometry":{"type":"Polygon","coordinates":[[[-14.508695,66.455892],[-14.739637,65.808748],[-13.609732,65.126671],[-14.909834,64.364082],[-17.794438,63.678749],[-18.656246,63.496383],[-19.972755,63.643635],[-22.762972,63.960179],[-21.778484,64.402116],[-23.955044,64.89113],[-22.184403,65.084968],[-22.227423,65.378594],[-24.326184,65.611189],[-23.650515,66.262519],[-22.134922,66.410469],[-20.576284,65.732112],[-19.056842,66.276601],[-17.798624,65.993853],[-16.167819,66.526792],[-14.508695,66.455892]]]},"id":"ISL"},{"type":"Feature","properties":{"name":"Israel"},"geometry":{"type":"Polygon","coordinates":[[[35.719918,32.709192],[35.545665,32.393992],[35.18393,32.532511],[34.974641,31.866582],[35.225892,31.754341],[34.970507,31.616778],[34.927408,31.353435],[35.397561,31.489086],[35.420918,31.100066],[34.922603,29.501326],[34.265433,31.219361],[34.556372,31.548824],[34.488107,31.605539],[34.752587,32.072926],[34.955417,32.827376],[35.098457,33.080539],[35.126053,33.0909],[35.460709,33.08904],[35.552797,33.264275],[35.821101,33.277426],[35.836397,32.868123],[35.700798,32.716014],[35.719918,32.709192]]]},"id":"ISR"},{"type":"Feature","properties":{"name":"Italy"},"geometry":{"type":"MultiPolygon","coordinates":[[[[15.520376,38.231155],[15.160243,37.444046],[15.309898,37.134219],[15.099988,36.619987],[14.335229,36.996631],[13.826733,37.104531],[12.431004,37.61295],[12.570944,38.126381],[13.741156,38.034966],[14.761249,38.143874],[15.520376,38.231155]]],[[[9.210012,41.209991],[9.809975,40.500009],[9.669519,39.177376],[9.214818,39.240473],[8.806936,38.906618],[8.428302,39.171847],[8.388253,40.378311],[8.159998,40.950007],[8.709991,40.899984],[9.210012,41.209991]]],[[[12.376485,46.767559],[13.806475,46.509306],[13.69811,46.016778],[13.93763,45.591016],[13.141606,45.736692],[12.328581,45.381778],[12.383875,44.885374],[12.261453,44.600482],[12.589237,44.091366],[13.526906,43.587727],[14.029821,42.761008],[15.14257,41.95514],[15.926191,41.961315],[16.169897,41.740295],[15.889346,41.541082],[16.785002,41.179606],[17.519169,40.877143],[18.376687,40.355625],[18.480247,40.168866],[18.293385,39.810774],[17.73838,40.277671],[16.869596,40.442235],[16.448743,39.795401],[17.17149,39.4247],[17.052841,38.902871],[16.635088,38.843572],[16.100961,37.985899],[15.684087,37.908849],[15.687963,38.214593],[15.891981,38.750942],[16.109332,38.964547],[15.718814,39.544072],[15.413613,40.048357],[14.998496,40.172949],[14.703268,40.60455],[14.060672,40.786348],[13.627985,41.188287],[12.888082,41.25309],[12.106683,41.704535],[11.191906,42.355425],[10.511948,42.931463],[10.200029,43.920007],[9.702488,44.036279],[8.888946,44.366336],[8.428561,44.231228],[7.850767,43.767148],[7.435185,43.693845],[7.549596,44.127901],[7.007562,44.254767],[6.749955,45.028518],[7.096652,45.333099],[6.802355,45.70858],[6.843593,45.991147],[7.273851,45.776948],[7.755992,45.82449],[8.31663,46.163642],[8.489952,46.005151],[8.966306,46.036932],[9.182882,46.440215],[9.922837,46.314899],[10.363378,46.483571],[10.442701,46.893546],[11.048556,46.751359],[11.164828,46.941579],[12.153088,47.115393],[12.376485,46.767559]]]]},"id":"ITA"},{"type":"Feature","properties":{"name":"Jamaica"},"geometry":{"type":"Polygon","coordinates":[[[-77.569601,18.490525],[-76.896619,18.400867],[-76.365359,18.160701],[-76.199659,17.886867],[-76.902561,17.868238],[-77.206341,17.701116],[-77.766023,17.861597],[-78.337719,18.225968],[-78.217727,18.454533],[-77.797365,18.524218],[-77.569601,18.490525]]]},"id":"JAM"},{"type":"Feature","properties":{"name":"Jordan"},"geometry":{"type":"Polygon","coordinates":[[[35.545665,32.393992],[35.719918,32.709192],[36.834062,32.312938],[38.792341,33.378686],[39.195468,32.161009],[39.004886,32.010217],[37.002166,31.508413],[37.998849,30.5085],[37.66812,30.338665],[37.503582,30.003776],[36.740528,29.865283],[36.501214,29.505254],[36.068941,29.197495],[34.956037,29.356555],[34.922603,29.501326],[35.420918,31.100066],[35.397561,31.489086],[35.545252,31.782505],[35.545665,32.393992]]]},"id":"JOR"},{"type":"Feature","properties":{"name":"Japan"},"geometry":{"type":"MultiPolygon","coordinates":[[[[134.638428,34.149234],[134.766379,33.806335],[134.203416,33.201178],[133.79295,33.521985],[133.280268,33.2895
217],[133.014858,32.704567],[132.363115,32.989382],[132.371176,33.463642],[132.924373,34.060299],[133.492968,33.944621],[133.904106,34.364931],[134.638428,34.149234]]],[[[140.976388,37.142074],[140.59977,36.343983],[140.774074,35.842877],[140.253279,35.138114],[138.975528,34.6676],[137.217599,34.606286],[135.792983,33.464805],[135.120983,33.849071],[135.079435,34.596545],[133.340316,34.375938],[132.156771,33.904933],[130.986145,33.885761],[132.000036,33.149992],[131.33279,31.450355],[130.686318,31.029579],[130.20242,31.418238],[130.447676,32.319475],[129.814692,32.61031],[129.408463,33.296056],[130.353935,33.604151],[130.878451,34.232743],[131.884229,34.749714],[132.617673,35.433393],[134.608301,35.731618],[135.677538,35.527134],[136.723831,37.304984],[137.390612,36.827391],[138.857602,37.827485],[139.426405,38.215962],[140.05479,39.438807],[139.883379,40.563312],[140.305783,41.195005],[141.368973,41.37856],[141.914263,39.991616],[141.884601,39.180865],[140.959489,38.174001],[140.976388,37.142074]]],[[[143.910162,44.1741],[144.613427,43.960883],[145.320825,44.384733],[145.543137,43.262088],[144.059662,42.988358],[143.18385,41.995215],[141.611491,42.678791],[141.067286,41.584594],[139.955106,41.569556],[139.817544,42.563759],[140.312087,43.333273],[141.380549,43.388825],[141.671952,44.772125],[141.967645,45.551483],[143.14287,44.510358],[143.910162,44.1741]]]]},"id":"JPN"},{"type":"Feature","properties":{"name":"Kazakhstan"},"geometry":{"type":"Polygon","coordinates":[[[70.962315,42.266154],[70.388965,42.081308],[69.070027,41.384244],[68.632483,40.668681],[68.259896,40.662325],[67.985856,41.135991],[66.714047,41.168444],[66.510649,41.987644],[66.023392,41.994646],[66.098012,42.99766],[64.900824,43.728081],[63.185787,43.650075],[62.0133,43.504477],[61.05832,44.405817],[60.239972,44.784037],[58.689989,45.500014],[58.503127,45.586804],[55.928917,44.995858],[55.968191,41.308642],[55.455251,41.259859],[54.755345,42.043971],[54.079418,42.324109],[52.944293,42.116034],[52.50246,41.783316],[52.446339,42.027151],[52.692112,42.443895],[52.501426,42.792298],[51.342427,43.132975],[50.891292,44.031034],[50.339129,44.284016],[50.305643,44.609836],[51.278503,44.514854],[51.316899,45.245998],[52.16739,45.408391],[53.040876,45.259047],[53.220866,46.234646],[53.042737,46.853006],[52.042023,46.804637],[51.191945,47.048705],[50.034083,46.60899],[49.10116,46.39933],[48.593241,46.561034],[48.694734,47.075628],[48.057253,47.743753],[47.315231,47.715847],[46.466446,48.394152],[47.043672,49.152039],[46.751596,49.356006],[47.54948,50.454698],[48.577841,49.87476],[48.702382,50.605128],[50.766648,51.692762],[52.328724,51.718652],[54.532878,51.02624],[55.716941,50.621717],[56.777961,51.043551],[58.363291,51.063653],[59.642282,50.545442],[59.932807,50.842194],[61.337424,50.79907],[61.588003,51.272659],[59.967534,51.96042],[60.927269,52.447548],[60.739993,52.719986],[61.699986,52.979996],[60.978066,53.664993],[61.436591,54.006265],[65.178534,54.354228],[65.666876,54.601267],[68.1691,54.970392],[69.068167,55.38525],[70.865267,55.169734],[71.180131,54.133285],[72.22415,54.376655],[73.508516,54.035617],[73.425679,53.48981],[74.384845,53.546861],[76.8911,54.490524],[76.525179,54.177003],[77.800916,53.404415],[80.03556,50.864751],[80.568447,51.388336],[81.945986,50.812196],[83.383004,51.069183],[83.935115,50.889246],[84.416377,50.3114],[85.11556,50.117303],[85.54127,49.692859],[86.829357,49.826675],[87.35997,49.214981],[86.598776,48.549182],[85.768233,48.455751],[85.720484,47.452969],[85.16429,47.000956],[83.180484,47.330031],[82.458926,45.53965],[81.947071,45.317027],[79.966106,44.917517],[80.866206,43.180362],[80.18015,42.920068],[80.25999,42.349999],[79.643645,42.496683],[79.142177,42.856092],[77.658392,42.960686],[76.000354,42.988022],[75.636965,42.8779],[74.212866,43.298339],[73.645304,43.091272],[73.489758,42.500894],[71.844638,42.845395],[71.186281,42.704293],[70.962315,42.266154]]]},"id":"KAZ"},{"type":"Feature","properties":{"name":"Kenya"},"geometry":{"type":"Polygon","coordinates":[[[40.993,-0.85829],[41.58513,-1.68325],[40.88477,-2.08255],[40.63785,-2.49979],[40.26304,-2.57309],[40.12119,-3.27768],[39.80006,-3.68116],[39.60489,-4.34653],[39.20222,-4.67677],[37.7669,-3.67712],[37.69869,-3.09699],[34.07262,-1.05982],[33.903711,-0.95],[33.893569,0.109814],[34.18,0.515],[34.6721,1.17694],[35.03599,1.90584],[34.59607,3.05374],[34.47913,3.5556],[34.005,4.249885],[34.620196,4.847123],[35.29800
217,5.506],[35.817448,5.338232],[35.817448,4.776966],[36.159079,4.447864],[36.855093,4.447864],[38.120915,3.598605],[38.43697,3.58851],[38.67114,3.61607],[38.89251,3.50074],[39.559384,3.42206],[39.85494,3.83879],[40.76848,4.25702],[41.1718,3.91909],[41.855083,3.918912],[40.98105,2.78452],[40.993,-0.85829]]]},"id":"KEN"},{"type":"Feature","properties":{"name":"Kyrgyzstan"},"geometry":{"type":"Polygon","coordinates":[[[70.962315,42.266154],[71.186281,42.704293],[71.844638,42.845395],[73.489758,42.500894],[73.645304,43.091272],[74.212866,43.298339],[75.636965,42.8779],[76.000354,42.988022],[77.658392,42.960686],[79.142177,42.856092],[79.643645,42.496683],[80.25999,42.349999],[80.11943,42.123941],[78.543661,41.582243],[78.187197,41.185316],[76.904484,41.066486],[76.526368,40.427946],[75.467828,40.562072],[74.776862,40.366425],[73.822244,39.893973],[73.960013,39.660008],[73.675379,39.431237],[71.784694,39.279463],[70.549162,39.604198],[69.464887,39.526683],[69.55961,40.103211],[70.648019,39.935754],[71.014198,40.244366],[71.774875,40.145844],[73.055417,40.866033],[71.870115,41.3929],[71.157859,41.143587],[70.420022,41.519998],[71.259248,42.167711],[70.962315,42.266154]]]},"id":"KGZ"},{"type":"Feature","properties":{"name":"Cambodia"},"geometry":{"type":"Polygon","coordinates":[[[103.49728,10.632555],[103.09069,11.153661],[102.584932,12.186595],[102.348099,13.394247],[102.988422,14.225721],[104.281418,14.416743],[105.218777,14.273212],[106.043946,13.881091],[106.496373,14.570584],[107.382727,14.202441],[107.614548,13.535531],[107.491403,12.337206],[105.810524,11.567615],[106.24967,10.961812],[105.199915,10.88931],[104.334335,10.486544],[103.49728,10.632555]]]},"id":"KHM"},{"type":"Feature","properties":{"name":"South Korea"},"geometry":{"type":"Polygon","coordinates":[[[128.349716,38.612243],[129.21292,37.432392],[129.46045,36.784189],[129.468304,35.632141],[129.091377,35.082484],[128.18585,34.890377],[127.386519,34.475674],[126.485748,34.390046],[126.37392,34.93456],[126.559231,35.684541],[126.117398,36.725485],[126.860143,36.893924],[126.174759,37.749686],[126.237339,37.840378],[126.68372,37.804773],[127.073309,38.256115],[127.780035,38.304536],[128.205746,38.370397],[128.349716,38.612243]]]},"id":"KOR"},{"type":"Feature","properties":{"name":"Kosovo"},"geometry":{"type":"Polygon","coordinates":[[[20.76216,42.05186],[20.71731,41.84711],[20.59023,41.85541],[20.52295,42.21787],[20.28374,42.32025],[20.0707,42.58863],[20.25758,42.81275],[20.49679,42.88469],[20.63508,43.21671],[20.81448,43.27205],[20.95651,43.13094],[21.143395,43.068685],[21.27421,42.90959],[21.43866,42.86255],[21.63302,42.67717],[21.77505,42.6827],[21.66292,42.43922],[21.54332,42.32025],[21.576636,42.245224],[21.3527,42.2068],[20.76216,42.05186]]]},"id":"OSA"},{"type":"Feature","properties":{"name":"Kuwait"},"geometry":{"type":"Polygon","coordinates":[[[47.974519,29.975819],[48.183189,29.534477],[48.093943,29.306299],[48.416094,28.552004],[47.708851,28.526063],[47.459822,29.002519],[46.568713,29.099025],[47.302622,30.05907],[47.974519,29.975819]]]},"id":"KWT"},{"type":"Feature","properties":{"name":"Laos"},"geometry":{"type":"Polygon","coordinates":[[[105.218777,14.273212],[105.544338,14.723934],[105.589039,15.570316],[104.779321,16.441865],[104.716947,17.428859],[103.956477,18.240954],[103.200192,18.309632],[102.998706,17.961695],[102.413005,17.932782],[102.113592,18.109102],[101.059548,17.512497],[101.035931,18.408928],[101.282015,19.462585],[100.606294,19.508344],[100.548881,20.109238],[100.115988,20.41785],[100.329101,20.786122],[101.180005,21.436573],[101.270026,21.201652],[101.80312,21.174367],[101.652018,22.318199],[102.170436,22.464753],[102.754896,21.675137],[103.203861,20.766562],[104.435,20.758733],[104.822574,19.886642],[104.183388,19.624668],[103.896532,19.265181],[105.094598,18.666975],[105.925762,17.485315],[106.556008,16.604284],[107.312706,15.908538],[107.564525,15.202173],[107.382727,14.202441],[106.496373,14.570584],[106.043946,13.881091],[105.218777,14.273212]]]},"id":"LAO"},{"type":"Feature","properties":{"name":"Lebanon"},"geometry":{"type":"Polygon","coordinates":[[[35.821101,33.277426],[35.552797,33.264275],[35.460709,33.08904],[35.126053,33.0909],[35.482207,33.90545],[35.979592,34.610058],[35.998403,34.644914],[36.448194,34.593935],[36.61175,34.201789],[36.06646,33.824912],[35.821101,33.277426]]]},"id":"LBN"},{"type":"Feature","properties":{"name":"Liberia"},"geometry":{"type":"Polygon","coordinates":[[[-7.712159,4.364566],[-7.974107,4.355755],[-9.004794,4.832419],[-9.91342,5.593561],[-10.765384,6.140711],[-11.438779,6.785917],[-11.199802,7.105846],[
21-11.146704,7.396706],[-10.695595,7.939464],[-10.230094,8.406206],[-10.016567,8.428504],[-9.755342,8.541055],[-9.33728,7.928534],[-9.403348,7.526905],[-9.208786,7.313921],[-8.926065,7.309037],[-8.722124,7.711674],[-8.439298,7.686043],[-8.485446,7.395208],[-8.385452,6.911801],[-8.60288,6.467564],[-8.311348,6.193033],[-7.993693,6.12619],[-7.570153,5.707352],[-7.539715,5.313345],[-7.635368,5.188159],[-7.712159,4.364566]]]},"id":"LBR"},{"type":"Feature","properties":{"name":"Libya"},"geometry":{"type":"Polygon","coordinates":[[[14.8513,22.86295],[14.143871,22.491289],[13.581425,23.040506],[11.999506,23.471668],[11.560669,24.097909],[10.771364,24.562532],[10.303847,24.379313],[9.948261,24.936954],[9.910693,25.365455],[9.319411,26.094325],[9.716286,26.512206],[9.629056,27.140953],[9.756128,27.688259],[9.683885,28.144174],[9.859998,28.95999],[9.805634,29.424638],[9.48214,30.307556],[9.970017,30.539325],[10.056575,30.961831],[9.950225,31.37607],[10.636901,31.761421],[10.94479,32.081815],[11.432253,32.368903],[11.488787,33.136996],[12.66331,32.79278],[13.08326,32.87882],[13.91868,32.71196],[15.24563,32.26508],[15.71394,31.37626],[16.61162,31.18218],[18.02109,30.76357],[19.08641,30.26639],[19.57404,30.52582],[20.05335,30.98576],[19.82033,31.75179],[20.13397,32.2382],[20.85452,32.7068],[21.54298,32.8432],[22.89576,32.63858],[23.2368,32.19149],[23.60913,32.18726],[23.9275,32.01667],[24.92114,31.89936],[25.16482,31.56915],[24.80287,31.08929],[24.95762,30.6616],[24.70007,30.04419],[25,29.238655],[25,25.6825],[25,22],[25,20.00304],[23.85,20],[23.83766,19.58047],[19.84926,21.49509],[15.86085,23.40972],[14.8513,22.86295]]]},"id":"LBY"},{"type":"Feature","properties":{"name":"Sri Lanka"},"geometry":{"type":"Polygon","coordinates":[[[81.787959,7.523055],[81.637322,6.481775],[81.21802,6.197141],[80.348357,5.96837],[79.872469,6.763463],[79.695167,8.200843],[80.147801,9.824078],[80.838818,9.268427],[81.304319,8.564206],[81.787959,7.523055]]]},"id":"LKA"},{"type":"Feature","properties":{"name":"Lesotho"},"geometry":{"type":"Polygon","coordinates":[[[28.978263,-28.955597],[29.325166,-29.257387],[29.018415,-29.743766],[28.8484,-30.070051],[28.291069,-30.226217],[28.107205,-30.545732],[27.749397,-30.645106],[26.999262,-29.875954],[27.532511,-29.242711],[28.074338,-28.851469],[28.5417,-28.647502],[28.978263,-28.955597]]]},"id":"LSO"},{"type":"Feature","properties":{"name":"Lithuania"},"geometry":{"type":"Polygon","coordinates":[[[22.731099,54.327537],[22.651052,54.582741],[22.757764,54.856574],[22.315724,55.015299],[21.268449,55.190482],[21.0558,56.031076],[22.201157,56.337802],[23.878264,56.273671],[24.860684,56.372528],[25.000934,56.164531],[25.533047,56.100297],[26.494331,55.615107],[26.588279,55.167176],[25.768433,54.846963],[25.536354,54.282423],[24.450684,53.905702],[23.484128,53.912498],[23.243987,54.220567],[22.731099,54.327537]]]},"id":"LTU"},{"type":"Feature","properties":{"name":"Luxembourg"},"geometry":{"type":"Polygon","coordinates":[[[6.043073,50.128052],[6.242751,49.902226],[6.18632,49.463803],[5.897759,49.442667],[5.674052,49.529484],[5.782417,50.090328],[6.043073,50.128052]]]},"id":"LUX"},{"type":"Feature","properties":{"name":"Latvia"},"geometry":{"type":"Polygon","coordinates":[[[21.0558,56.031076],[21.090424,56.783873],[21.581866,57.411871],[22.524341,57.753374],[23.318453,57.006236],[24.12073,57.025693],[24.312863,57.793424],[25.164594,57.970157],[25.60281,57.847529],[26.463532,57.476389],[27.288185,57.474528],[27.770016,57.244258],[27.855282,56.759326],[28.176709,56.16913],[27.10246,55.783314],[26.494331,55.615107],[25.533047,56.100297],[25.000934,56.164531],[24.860684,56.372528],[23.878264,56.273671],[22.201157,56.337802],[21.0558,56.031076]]]},"id":"LVA"},{"type":"Feature","properties":{"name":"Morocco"},"geometry":{"type":"Polygon","coordinates":[[[-5.193863,35.755182],[-4.591006,35.330712],[-3.640057,35.399855],[-2.604306,35.179093],[-2.169914,35.168396],[-1.792986,34.527919],[-1.733455,33.919713],[-1.388049,32.864015],[-1.124551,32.651522],[-1.307899,32.262889],[-2.616605,32.094346],[-3.06898,31.724498],[-3.647498,31.637294],[-3.690441,30.896952],[-4.859646,30.501188],[-5.242129,30.000443],[-6.060632,29.7317],[-7.059228,29.579228],[-8.674116,28.841289],[-8.66559,27.656426],[-8.817809,27.656426],[-8.817828,27.656426],[-8.794884,27.120696],[
21-9.413037,27.088476],[-9.735343,26.860945],[-10.189424,26.860945],[-10.551263,26.990808],[-11.392555,26.883424],[-11.71822,26.104092],[-12.030759,26.030866],[-12.500963,24.770116],[-13.89111,23.691009],[-14.221168,22.310163],[-14.630833,21.86094],[-14.750955,21.5006],[-17.002962,21.420734],[-17.020428,21.42231],[-16.973248,21.885745],[-16.589137,22.158234],[-16.261922,22.67934],[-16.326414,23.017768],[-15.982611,23.723358],[-15.426004,24.359134],[-15.089332,24.520261],[-14.824645,25.103533],[-14.800926,25.636265],[-14.43994,26.254418],[-13.773805,26.618892],[-13.139942,27.640148],[-13.121613,27.654148],[-12.618837,28.038186],[-11.688919,28.148644],[-10.900957,28.832142],[-10.399592,29.098586],[-9.564811,29.933574],[-9.814718,31.177736],[-9.434793,32.038096],[-9.300693,32.564679],[-8.657476,33.240245],[-7.654178,33.697065],[-6.912544,34.110476],[-6.244342,35.145865],[-5.929994,35.759988],[-5.193863,35.755182]]]},"id":"MAR"},{"type":"Feature","properties":{"name":"Moldova"},"geometry":{"type":"Polygon","coordinates":[[[26.619337,48.220726],[26.857824,48.368211],[27.522537,48.467119],[28.259547,48.155562],[28.670891,48.118149],[29.122698,47.849095],[29.050868,47.510227],[29.415135,47.346645],[29.559674,46.928583],[29.908852,46.674361],[29.83821,46.525326],[30.024659,46.423937],[29.759972,46.349988],[29.170654,46.379262],[29.072107,46.517678],[28.862972,46.437889],[28.933717,46.25883],[28.659987,45.939987],[28.485269,45.596907],[28.233554,45.488283],[28.054443,45.944586],[28.160018,46.371563],[28.12803,46.810476],[27.551166,47.405117],[27.233873,47.826771],[26.924176,48.123264],[26.619337,48.220726]]]},"id":"MDA"},{"type":"Feature","properties":{"name":"Madagascar"},"geometry":{"type":"Polygon","coordinates":[[[49.543519,-12.469833],[49.808981,-12.895285],[50.056511,-13.555761],[50.217431,-14.758789],[50.476537,-15.226512],[50.377111,-15.706069],[50.200275,-16.000263],[49.860606,-15.414253],[49.672607,-15.710204],[49.863344,-16.451037],[49.774564,-16.875042],[49.498612,-17.106036],[49.435619,-17.953064],[49.041792,-19.118781],[48.548541,-20.496888],[47.930749,-22.391501],[47.547723,-23.781959],[47.095761,-24.94163],[46.282478,-25.178463],[45.409508,-25.601434],[44.833574,-25.346101],[44.03972,-24.988345],[43.763768,-24.460677],[43.697778,-23.574116],[43.345654,-22.776904],[43.254187,-22.057413],[43.433298,-21.336475],[43.893683,-21.163307],[43.89637,-20.830459],[44.374325,-20.072366],[44.464397,-19.435454],[44.232422,-18.961995],[44.042976,-18.331387],[43.963084,-17.409945],[44.312469,-16.850496],[44.446517,-16.216219],[44.944937,-16.179374],[45.502732,-15.974373],[45.872994,-15.793454],[46.312243,-15.780018],[46.882183,-15.210182],[47.70513,-14.594303],[48.005215,-14.091233],[47.869047,-13.663869],[48.293828,-13.784068],[48.84506,-13.089175],[48.863509,-12.487868],[49.194651,-12.040557],[49.543519,-12.469833]]]},"id":"MDG"},{"type":"Feature","properties":{"name":"Mexico"},"geometry":{"type":"Polygon","coordinates":[[[-97.140008,25.869997],[-97.528072,24.992144],[-97.702946,24.272343],[-97.776042,22.93258],[-97.872367,22.444212],[-97.699044,21.898689],[-97.38896,21.411019],[-97.189333,20.635433],[-96.525576,19.890931],[-96.292127,19.320371],[-95.900885,18.828024],[-94.839063,18.562717],[-94.42573,18.144371],[-93.548651,18.423837],[-92.786114,18.524839],[-92.037348,18.704569],[-91.407903,18.876083],[-90.77187,19.28412],[-90.53359,19.867418],[-90.451476,20.707522],[-90.278618,20.999855],[-89.601321,21.261726],[-88.543866,21.493675],[-87.658417,21.458846],[-87.05189,21.543543],[-86.811982,21.331515],[-86.845908,20.849865],[-87.383291,20.255405],[-87.621054,19.646553],[-87.43675,19.472403],[-87.58656,19.04013],[-87.837191,18.259816],[-88.090664,18.516648],[-88.300031,18.499982],[-88.490123,18.486831],[-88.848344,17.883198],[-89.029857,18.001511],[-89.150909,17.955468],[-89.14308,17.808319],[-90.067934,17.819326],[-91.00152,17.817595],[-91.002269,17.254658],[-91.453921,17.252177],[-91.08167,16.918477],[-90.711822,16.687483],[-90.600847,16.470778],[-90.438867,16.41011],[-90.464473,16.069562],[-91.74796,16.066565],[-92.229249,15.251447],[-92.087216,15.064585],[-92.20323,14.830103],[-92.22775,14.538829],[-93.359464,15.61543],[-93.875169,15.940164],[-94.691656,16.200975],[-95.250227,16.128318],[-96.053382,15.752088],[-96.557434,15.653515],[-97.263592,15.917065],[-98.01303,16.107312],[-98.947676,16.566043],[-99.697397,16.706164],[-100.829499,17.171071],[-101.666089,17.649026],[-101.9
2118528,17.91609],[-102.478132,17.975751],[-103.50099,18.292295],[-103.917527,18.748572],[-104.99201,19.316134],[-105.493038,19.946767],[-105.731396,20.434102],[-105.397773,20.531719],[-105.500661,20.816895],[-105.270752,21.076285],[-105.265817,21.422104],[-105.603161,21.871146],[-105.693414,22.26908],[-106.028716,22.773752],[-106.90998,23.767774],[-107.915449,24.548915],[-108.401905,25.172314],[-109.260199,25.580609],[-109.444089,25.824884],[-109.291644,26.442934],[-109.801458,26.676176],[-110.391732,27.162115],[-110.641019,27.859876],[-111.178919,27.941241],[-111.759607,28.467953],[-112.228235,28.954409],[-112.271824,29.266844],[-112.809594,30.021114],[-113.163811,30.786881],[-113.148669,31.170966],[-113.871881,31.567608],[-114.205737,31.524045],[-114.776451,31.799532],[-114.9367,31.393485],[-114.771232,30.913617],[-114.673899,30.162681],[-114.330974,29.750432],[-113.588875,29.061611],[-113.424053,28.826174],[-113.271969,28.754783],[-113.140039,28.411289],[-112.962298,28.42519],[-112.761587,27.780217],[-112.457911,27.525814],[-112.244952,27.171727],[-111.616489,26.662817],[-111.284675,25.73259],[-110.987819,25.294606],[-110.710007,24.826004],[-110.655049,24.298595],[-110.172856,24.265548],[-109.771847,23.811183],[-109.409104,23.364672],[-109.433392,23.185588],[-109.854219,22.818272],[-110.031392,22.823078],[-110.295071,23.430973],[-110.949501,24.000964],[-111.670568,24.484423],[-112.182036,24.738413],[-112.148989,25.470125],[-112.300711,26.012004],[-112.777297,26.32196],[-113.464671,26.768186],[-113.59673,26.63946],[-113.848937,26.900064],[-114.465747,27.14209],[-115.055142,27.722727],[-114.982253,27.7982],[-114.570366,27.741485],[-114.199329,28.115003],[-114.162018,28.566112],[-114.931842,29.279479],[-115.518654,29.556362],[-115.887365,30.180794],[-116.25835,30.836464],[-116.721526,31.635744],[-117.12776,32.53534],[-115.99135,32.61239],[-114.72139,32.72083],[-114.815,32.52528],[-113.30498,32.03914],[-111.02361,31.33472],[-109.035,31.34194],[-108.24194,31.34222],[-108.24,31.754854],[-106.50759,31.75452],[-106.1429,31.39995],[-105.63159,31.08383],[-105.03737,30.64402],[-104.70575,30.12173],[-104.45697,29.57196],[
21-103.94,29.27],[-103.11,28.97],[-102.48,29.76],[-101.6624,29.7793],[-100.9576,29.38071],[-100.45584,28.69612],[-100.11,28.11],[-99.52,27.54],[-99.3,26.84],[-99.02,26.37],[-98.24,26.06],[-97.53,25.84],[-97.140008,25.869997]]]},"id":"MEX"},{"type":"Feature","properties":{"name":"Macedonia"},"geometry":{"type":"Polygon","coordinates":[[[20.59023,41.85541],[20.71731,41.84711],[20.76216,42.05186],[21.3527,42.2068],[21.576636,42.245224],[21.91708,42.30364],[22.380526,42.32026],[22.881374,41.999297],[22.952377,41.337994],[22.76177,41.3048],[22.597308,41.130487],[22.055378,41.149866],[21.674161,40.931275],[21.02004,40.842727],[20.60518,41.08622],[20.46315,41.51509],[20.59023,41.85541]]]},"id":"MKD"},{"type":"Feature","properties":{"name":"Mali"},"geometry":{"type":"Polygon","coordinates":[[[-12.17075,14.616834],[-11.834208,14.799097],[-11.666078,15.388208],[-11.349095,15.411256],[-10.650791,15.132746],[-10.086846,15.330486],[-9.700255,15.264107],[-9.550238,15.486497],[-5.537744,15.50169],[-5.315277,16.201854],[-5.488523,16.325102],[-5.971129,20.640833],[-6.453787,24.956591],[-4.923337,24.974574],[-1.550055,22.792666],[1.823228,20.610809],[2.060991,20.142233],[2.683588,19.85623],[3.146661,19.693579],[3.158133,19.057364],[4.267419,19.155265],[4.27021,16.852227],[3.723422,16.184284],[3.638259,15.56812],[2.749993,15.409525],[1.385528,15.323561],[1.015783,14.968182],[0.374892,14.928908],[-0.266257,14.924309],[-0.515854,15.116158],[-1.066363,14.973815],[-2.001035,14.559008],[-2.191825,14.246418],[-2.967694,13.79815],[-3.103707,13.541267],[-3.522803,13.337662],[-4.006391,13.472485],[-4.280405,13.228444],[-4.427166,12.542646],[-5.220942,11.713859],[-5.197843,11.375146],[-5.470565,10.95127],[-5.404342,10.370737],[-5.816926,10.222555],[-6.050452,10.096361],[-6.205223,10.524061],[-6.493965,10.411303],[-6.666461,10.430811],[-6.850507,10.138994],[-7.622759,10.147236],[-7.89959,10.297382],[-8.029944,10.206535],[-8.335377,10.494812],[-8.282357,10.792597],[-8.407311,10.909257],[-8.620321,10.810891],[-8.581305,11.136246],[-8.376305,11.393646],[-8.786099,11.812561],[-8.905265,12.088358],[-9.127474,12.30806],[-9.327616,12.334286],[-9.567912,12.194243],[-9.890993,12.060479],[-10.165214,11.844084],[-10.593224,11.923975],[-10.87083,12.177887],[-11.036556,12.211245],[-11.297574,12.077971],[-11.456169,12.076834],[-11.513943,12.442988],[-11.467899,12.754519],[-11.553398,13.141214],[-11.927716,13.422075],[-12.124887,13.994727],[-12.17075,14.616834]]]},"id":"MLI"},{"type":"Feature","properties":{"name":"Myanmar"},"geometry":{"type":"Polygon","coordinates":[[[99.543309,20.186598],[98.959676,19.752981],[98.253724,19.708203],[97.797783,18.62708],[97.375896,18.445438],[97.859123,17.567946],[98.493761,16.837836],[98.903348,16.177824],[98.537376,15.308497],[98.192074,15.123703],[98.430819,14.622028],[99.097755,13.827503],[99.212012,13.269294],[99.196354,12.804748],[99.587286,11.892763],[99.038121,10.960546],[98.553551,9.93296],[98.457174,10.675266],[98.764546,11.441292],[98.428339,12.032987],[98.509574,13.122378],[98.103604,13.64046],[97.777732,14.837286],[97.597072,16.100568],[97.16454,16.928734],[96.505769,16.427241],[95.369352,15.71439],[94.808405,15.803454],[94.188804,16.037936],[94.533486,17.27724],[94.324817,18.213514],[93.540988,19.366493],[93.663255,19.726962],[93.078278,19.855145],[92.368554,20.670883],[92.303234,21.475485],[92.652257,21.324048],[92.672721,22.041239],[93.166128,22.27846],[93.060294,22.703111],[93.286327,23.043658],[93.325188,24.078556],[94.106742,23.850741],[94.552658,24.675238],[94.603249,25.162495],[95.155153,26.001307],[95.124768,26.573572],[96.419366,27.264589],[97.133999,27.083774],[97.051989,27.699059],[97.402561,27.882536],[97.327114,28.261583],[97.911988,28.335945],[98.246231,27.747221],[98.68269,27.508812],[98.712094,26.743536],[98.671838,25.918703],[97.724609,25.083637],[97.60472,23.897405],[98.660262,24.063286],[98.898749,23.142722],[99.531992,22.949039],[99.240899,22.118314],[99.983489,21.742937],[100.416538,21.558839],[101.150033,21.849984],[101.180005,21.436573],[100.329101,20.786122],[100.115988,20.41785],[99.543309,20.186598]]]},"id":"MMR"},{"type":"Feature","properties":{"name":"Montenegro"},"geometry":{"type":"Polygon","coordinates":[[[19.801613,42.500093],[19.738051,42.688247],[19.30449,42.19574],[19.37177,41.87755],[19.16246,41.95502],[18.88214,42.28151],[18.45,42.48],[18.56,42.65],[18.70648,43.20011],[19.03165,43.43253],[19.21852,43.52384],[19.48389,43.35229],[19.63,43.21378],[19.95857,43.10604],[20.3398,42.89852],[20.25758,42.81275],[20.0707,42.58863],[19.801613,42.500093]]]},"id":"MNE"},{"type":"Feature","properties":{"name":"Mongolia"},"geometry":{"type":"Polygon","coordinates":[[[87.751264,49.297198],[88.805567,49.470521],[90.713667,50.331812],[92.234712,50.802171],[93.104219,50.49529],[94.147566,50.480537],[94.815949,50.013433],[95.814028,49.977467],[97.259728,49.726061],[98.231762,50.422401],[97.82574,51.010995],[98.861491,52.047366],[99.981732,51.634006],[100.88948,51.516856],[102.065223,51.259921],[102.255909,50.510561],[103.676545,50.089966],[104.621552,50.275329],[105.886591,50.406019],[106.888804,50.274296],[107.868176,49.793705],[108.475167,49.282548],[109.402449,49.292961],[110.662011,49.130128],[111.581231,49.377968],[112.89774,49.543565],[114.362456,50.248303],[114.96211,50.140247],[115.485695,49.805177],[116.678801,49.888531],[116.191802,49.134598],[115.485282,48.135383],[115.742837,47.726545],[116.308953,47.85341],[117.295507,47.697709],[118.064143,48.06673],[118.866574,47.74706],[119.772824,47.048059],[119.66327,46.69268],[118.874326,46.805412],[117.421701,46.672733],[116.717868,46.388202],[115.985096,45.727235],[114.460332,45.339817],[113.463907,44.808893],[112.436062,45.011646],[111.873306,45.102079],[111.348377,44.457442],[111.667737,44.073176],[111.829588,43.743118],[111.129682,43.406834],[110.412103,42.871234],[109.243596,42.519446],[107.744773,42.481516],[106.129316,42.134328],[104.964994,41.59741],[104.522282,41.908347],[103.312278,41.907468],[101.83304,42.514873],[100.845866,42.663804],[99.515817,42.524691],[97.451757,42.74889],[96.349396,42.725635],[95.762455,43.319449],[95.306875,44.241331],[94.688929,44.352332],[93.480734,44.975472],[92.133891,45.115076],[90.94554,45.286073],[90.585768,45.719716],[90.970809,46.888146],[90.280826,47.693549],[88.854298,48.069082],[88.013832,48.599463],[87.751264,49.297198]]]},"id":"MNG"},{"type":"Feature","properties":{"name":"Mozambique"},"geometry":{"type":"Polygon","coordinates":[[[34.559989,-11.52002],[35.312398,-11.439146],[36.514082,-11.720938],[36.775151,-11.594537],[37.471284,-11.568751],[37.827645,-11.268769],[38.427557,-11.285202],[39.52103,-10.896854],[40.316589,-10.317096],[40.478387,-10.765441],[40.437253,-11.761711],[40.560811,-12.639177],[40.59962,-14.201975],[40.775475,-14.691764],[40.477251,-15.406294],[40.089264,-16.100774],[39.452559,-16.720891],[38.538351,-17.101023],[37.411133,-17.586368],[36.281279,-18.659688],[35.896497,-18.84226],[35.1984,-19.552811],[34.786383,-19.784012],[34.701893,-20.497043],[35.176127,-21.254361],[35.373428,-21.840837],[35.385848,-22.14],[35.562546,-22.09],[35.533935,-23.070788],[35.371774,-23.535359],[35.60747,-23.706563],[35.458746,-24.12261],[35.040735,-24.478351],[34.215824,-24.816314],[33.01321,-25.357573],[32.574632,-25.727318],[32.660363,-26.148584],[32.915955,-26.215867],[32.83012,-26.742192],[32.071665,-26.73382],[31.985779,-26.29178],[31.837778,-25.843332],[31.752408,-25.484284],[31.930589,-24.369417],[31.670398,-23.658969],[31.191409,-22.25151],[32.244988,-2
211.116489],[32.508693,-20.395292],[32.659743,-20.30429],[32.772708,-19.715592],[32.611994,-19.419383],[32.654886,-18.67209],[32.849861,-17.979057],[32.847639,-16.713398],[32.328239,-16.392074],[31.852041,-16.319417],[31.636498,-16.07199],[31.173064,-15.860944],[30.338955,-15.880839],[30.274256,-15.507787],[30.179481,-14.796099],[33.214025,-13.97186],[33.7897,-14.451831],[34.064825,-14.35995],[34.459633,-14.61301],[34.517666,-15.013709],[34.307291,-15.478641],[34.381292,-16.18356],[35.03381,-16.8013],[35.339063,-16.10744],[35.771905,-15.896859],[35.686845,-14.611046],[35.267956,-13.887834],[34.907151,-13.565425],[34.559989,-13.579998],[34.280006,-12.280025],[34.559989,-11.52002]]]},"id":"MOZ"},{"type":"Feature","properties":{"name":"Mauritania"},"geometry":{"type":"Polygon","coordinates":[[[-12.17075,14.616834],[-12.830658,15.303692],[-13.435738,16.039383],[-14.099521,16.304302],[-14.577348,16.598264],[-15.135737,16.587282],[-15.623666,16.369337],[-16.12069,16.455663],[-16.463098,16.135036],[-16.549708,16.673892],[-16.270552,17.166963],[-16.146347,18.108482],[-16.256883,19.096716],[-16.377651,19.593817],[-16.277838,20.092521],[-16.536324,20.567866],[-17.063423,20.999752],[-16.845194,21.333323],[-12.929102,21.327071],[-13.118754,22.77122],[-12.874222,23.284832],[-11.937224,23.374594],[-11.969419,25.933353],[-8.687294,25.881056],[-8.6844,27.395744],[-4.923337,24.974574],[-6.453787,24.956591],[-5.971129,20.640833],[-5.488523,16.325102],[-5.315277,16.201854],[-5.537744,15.50169],[-9.550238,15.486497],[-9.700255,15.264107],[-10.086846,15.330486],[-10.650791,15.132746],[-11.349095,15.411256],[-11.666078,15.388208],[-11.834208,14.799097],[-12.17075,14.616834]]]},"id":"MRT"},{"type":"Feature","properties":{"name":"Malawi"},"geometry":{"type":"Polygon","coordinates":[[[34.559989,-11.52002],[34.280006,-12.280025],[34.559989,-13.579998],[34.907151,-13.565425],[35.267956,-13.887834],[35.686845,-14.611046],[35.771905,-15.896859],[35.339063,-16.10744],[35.03381,-16.8013],[34.381292,-16.18356],[34.307291,-15.478641],[34.517666,-15.013709],[34.459633,-14.61301],[34.064825,-14.35995],[33.7897,-14.451831],[33.214025,-13.97186],[32.688165,-13.712858],[32.991764,-12.783871],[33.306422,-12.435778],[33.114289,-11.607198],[33.31531,-10.79655],[33.485688,-10.525559],[33.231388,-9.676722],[32.759375,-9.230599],[33.739729,-9.417151],[33.940838,-9.693674],[34.280006,-10.16],[34.559989,-11.52002]]]},"id":"MWI"},{"type":"Feature","properties":{"name":"Malaysia"},"geometry":{"type":"MultiPolygon","coordinates":[[[[101.075516,6.204867],[101.154219,5.691384],[101.814282,5.810808],[102.141187,6.221636],[102.371147,6.128205],[102.961705,5.524495],[103.381215,4.855001],[103.438575,4.181606],[103.332122,3.726698],[103.429429,3.382869],[103.502448,2.791019],[103.854674,2.515454],[104.247932,1.631141],[104.228811,1.293048],[103.519707,1.226334],[102.573615,1.967115],[101.390638,2.760814],[101.27354,3.270292],[100.695435,3.93914],[100.557408,4.76728],[100.196706,5.312493],[100.30626,6.040562],[100.085757,6.464489],[100.259596,6.642825],[101.075516,6.204867]]],[[[118.618321,4.478202],[117.882035,4.137551],[117.015214,4.306094],[115.865517,4.306559],[115.519078,3.169238],[115.134037,2.821482],[114.621355,1.430688],[113.80585,1.217549],[112.859809,1.49779],[112.380252,1.410121],[111.797548,0.904441],[111.159138,0.976478],[110.514061,0.773131],[109.830227,1.338136],[109.66326,2.006467],[110.396135,1.663775],[111.168853,1.850637],[111.370081,2.697303],[111.796928,2.885897],[112.995615,3.102395],[113.712935,3.893509],[114.204017,4.525874],[114.659596,4.007637],[114.869557,4.348314],[115.347461,4.316636],[115.4057,4.955228],[115.45071,5.44773],[116.220741,6.143191],[116.725103,6.924771],[117.129626,6.928053],[117.643393,6.422166],[117.689075,5.98749],[118.347691,5.708696],[119.181904,5.407836],[119.110694,5.016128],[118.439727,4.966519],[118.618321,4.478202]]]]},"id":"MYS"},{"type":"Feature","properties":{"name":"Namibia"},"geometry":{"type":"Polygon","coordinates":[[[16.344977,-28.576705],[15.601818,-27.821247],[15.210472,-27.090956],[14.989711,-26.117372],[14.743214,-25.39292],[14.408144,-23.853014],[14.385717,-22.656653],[14.257714,-22.111208],[13.868642,-21.699037],[13.352498,-20.872834],[12.826845,-19.673166],[12.608564,-19.045349],[11.794919,-18.069129],[11.734199,-17.301889],[12.215461,-17.111668],[12.814081,-16.941343],[13.462362,-16.971212],[14.058501,-17.423381],[14.209707,-17.353101],[18.263309,-17.309951],[18.956187,-17.789095],[21.377176,-17.930636],[23.215048,-17.523116],[24.033862,-17.295843],[24.682349,-17.353411],[25.07695,-17.578823],[25.084443,-1
217.661816],[24.520705,-17.887125],[24.217365,-17.889347],[23.579006,-18.281261],[23.196858,-17.869038],[21.65504,-18.219146],[20.910641,-18.252219],[20.881134,-21.814327],[19.895458,-21.849157],[19.895768,-24.76779],[19.894734,-28.461105],[19.002127,-28.972443],[18.464899,-29.045462],[17.836152,-28.856378],[17.387497,-28.783514],[17.218929,-28.355943],[16.824017,-28.082162],[16.344977,-28.576705]]]},"id":"NAM"},{"type":"Feature","properties":{"name":"New Caledonia"},"geometry":{"type":"Polygon","coordinates":[[[165.77999,-21.080005],[166.599991,-21.700019],[167.120011,-22.159991],[166.740035,-22.399976],[166.189732,-22.129708],[165.474375,-21.679607],[164.829815,-21.14982],[164.167995,-20.444747],[164.029606,-20.105646],[164.459967,-20.120012],[165.020036,-20.459991],[165.460009,-20.800022],[165.77999,-21.080005]]]},"id":"NCL"},{"type":"Feature","properties":{"name":"Niger"},"geometry":{"type":"Polygon","coordinates":[[[2.154474,11.94015],[2.177108,12.625018],[1.024103,12.851826],[0.993046,13.33575],[0.429928,13.988733],[0.295646,14.444235],[0.374892,14.928908],[1.015783,14.968182],[1.385528,15.323561],[2.749993,15.409525],[3.638259,15.56812],[3.723422,16.184284],[4.27021,16.852227],[4.267419,19.155265],[5.677566,19.601207],[8.572893,21.565661],[11.999506,23.471668],[13.581425,23.040506],[14.143871,22.491289],[14.8513,22.86295],[15.096888,21.308519],[15.471077,21.048457],[15.487148,20.730415],[15.903247,20.387619],[15.685741,19.95718],[15.300441,17.92795],[15.247731,16.627306],[13.972202,15.684366],[13.540394,14.367134],[13.956699,13.996691],[13.954477,13.353449],[14.595781,13.330427],[14.495787,12.859396],[14.213531,12.802035],[14.181336,12.483657],[13.995353,12.461565],[13.318702,13.556356],[13.083987,13.596147],[12.302071,13.037189],[11.527803,13.32898],[10.989593,13.387323],[10.701032,13.246918],[10.114814,13.277252],[9.524928,12.851102],[9.014933,12.826659],[7.804671,13.343527],[7.330747,13.098038],[6.820442,13.115091],[6.445426,13.492768],[5.443058,13.865924],[4.368344,13.747482],[4.107946,13.531216],[3.967283,12.956109],[3.680634,12.552903],[3.61118,11.660167],[2.848643,12.235636],[2.490164,12.233052],[2.154474,11.94015]]]},"id":"NER"},{"type":"Feature","properties":{"name":"Nigeria"},"geometry":{"type":"Polygon","coordinates":[[[8.500288,4.771983],[7.462108,4.412108],[7.082596,4.464689],[6.698072,4.240594],[5.898173,4.262453],[5.362805,4.887971],[5.033574,5.611802],[4.325607,6.270651],[3.57418,6.2583],[2.691702,6.258817],[2.749063,7.870734],[2.723793,8.506845],[2.912308,9.137608],[3.220352,9.444153],[3.705438,10.06321],[3.60007,10.332186],[3.797112,10.734746],[3.572216,11.327939],[3.61118,11.660167],[3.680634,12.552903],[3.967283,12.956109],[4.107946,13.531216],[4.368344,13.747482],[5.443058,13.865924],[6.445426,13.492768],[6.820442,13.115091],[7.330747,13.098038],[7.804671,13.343527],[9.014933,12.826659],[9.524928,12.851102],[10.114814,13.277252],[10.701032,13.246918],[10.989593,13.387323],[11.527803,13.32898],[12.302071,13.037189],[13.083987,13.596147],[13.318702,13.556356],[13.995353,12.461565],[14.181336,12.483657],[14.577178,12.085361],[14.468192,11.904752],[14.415379,11.572369],[13.57295,10.798566],[13.308676,10.160362],[13.1676,9.640626],[12.955468,9.417772],[12.753672,8.717763],[12.218872,8.305824],[12.063946,7.799808],[11.839309,7.397042],[11.745774,6.981383],[11.058788,6.644427],[10.497375,7.055358],[10.118277,7.03877],[9.522706,6.453482],[9.233163,6.444491],[8.757533,5.479666],[8.500288,4.771983]]]},"id":"NGA"},{"type":"Feature","properties":{"name":"Nicaragua"},"geometry":{"type":"Polygon","coordinates":[[[-85.71254,11.088445],[-86.058488,11.403439],[-86.52585,11.806877],[-86.745992,12.143962],[-87.167516,12.458258],[-87.668493,12.90991],[-87.557467,13.064552],[-87.392386,12.914018],[-87.3166
2154,12.984686],[-87.005769,13.025794],[-86.880557,13.254204],[-86.733822,13.263093],[-86.755087,13.754845],[-86.520708,13.778487],[-86.312142,13.771356],[-86.096264,14.038187],[-85.801295,13.836055],[-85.698665,13.960078],[-85.514413,14.079012],[-85.165365,14.35437],[-85.148751,14.560197],[-85.052787,14.551541],[-84.924501,14.790493],[-84.820037,14.819587],[-84.649582,14.666805],[-84.449336,14.621614],[-84.228342,14.748764],[-83.975721,14.749436],[-83.628585,14.880074],[-83.489989,15.016267],[-83.147219,14.995829],[-83.233234,14.899866],[-83.284162,14.676624],[-83.182126,14.310703],[-83.4125,13.970078],[-83.519832,13.567699],[-83.552207,13.127054],[-83.498515,12.869292],[-83.473323,12.419087],[-83.626104,12.32085],[-83.719613,11.893124],[-83.650858,11.629032],[-83.85547,11.373311],[-83.808936,11.103044],[-83.655612,10.938764],[-83.895054,10.726839],[-84.190179,10.79345],[-84.355931,10.999226],[-84.673069,11.082657],[-84.903003,10.952303],[-85.561852,11.217119],[-85.71254,11.088445]]]},"id":"NIC"},{"type":"Feature","properties":{"name":"Netherlands"},"geometry":{"type":"Polygon","coordinates":[[[6.074183,53.510403],[6.90514,53.482162],[7.092053,53.144043],[6.84287,52.22844],[6.589397,51.852029],[5.988658,51.851616],[6.156658,50.803721],[5.606976,51.037298],[4.973991,51.475024],[4.047071,51.267259],[3.314971,51.345755],[3.830289,51.620545],[4.705997,53.091798],[6.074183,53.510403]]]},"id":"NLD"},{"type":"Feature","properties":{"name":"Norway"},"geometry":{"type":"MultiPolygon","coordinates":[[[[28.165547,71.185474],[31.293418,70.453788],[30.005435,70.186259],[31.101079,69.55808],[29.399581,69.156916],[28.59193,69.064777],[29.015573,69.766491],[27.732292,70.164193],[26.179622,69.825299],[25.689213,69.092114],[24.735679,68.649557],[23.66205,68.891247],[22.356238,68.841741],[21.244936,69.370443],[20.645593,69.106247],[20.025269,69.065139],[19.87856,68.407194],[17.993868,68.567391],[17.729182,68.010552],[16.768879,68.013937],[16.108712,67.302456],[15.108411,66.193867],[13.55569,64.787028],[13.919905,64.445421],[13.571916,64.049114],[12.579935,64.066219],[11.930569,63.128318],[11.992064,61.800362],[12.631147,61.293572],[12.300366,60.117933],[11.468272,59.432393],[11.027369,58.856149],[10.356557,59.469807],[8.382,58.313288],[7.048748,58.078884],[5.665835,58.588155],[5.308234,59.663232],[4.992078,61.970998],[5.9129,62.614473],[8.553411,63.454008],[10.527709,64.486038],[12.358347,65.879726],[14.761146,67.810642],[16.435927,68.563205],[19.184028,69.817444],[21.378416,70.255169],[23.023742,70.202072],[24.546543,71.030497],[26.37005,70.986262],[28.165547,71.185474]]],[[[24.72412,77.85385],[22.49032,77.44493],[20.72601,77.67704],[21.41611,77.93504],[20.8119,78.25463],[22.88426,78.45494],[23.28134,78.07954],[24.72412,77.85385]]],[[[18.25183,79.70175],[21.54383,78.95611],[19.02737,78.5626],[18.47172,77.82669],[17.59441,77.63796],[17.1182,76.80941],[15.91315,76.77045],[13.76259,77.38035],[14.66956,77.73565],[13.1706,78.02493],[11.22231,78.8693],[10.44453,79.65239],[13.17077,80.01046],[13.71852,79.66039],[15.14282,79.67431],[15.52255,80.01608],[16.99085,80.05086],[18.25183,79.70175]]],[[[25.447625,80.40734],[27.407506,80.056406],[25.924651,79.517834],[23.024466,79.400012],[20.075188,79.566823],[19.897266,79.842362],[18.462264,79.85988],[17.368015,80.318896],[20.455992,80.598156],[21.907945,80.357679],[22.919253,80.657144],[25.447625,80.40734]]]]},"id":"NOR"},{"type":"Feature","properties":{"name":"Nepal"},"geometry":{"type":"Polygon","coordinates":[[[88.120441,27.876542],[88.043133,27.445819],[88.174804,26.810405],[88.060238,26.414615],[87.227472,26.397898],[86.024393,26.630985],[85.251779,26.726198],[84.675018,27.234901],[83.304249,27.364506],[81.999987,27.925479],[81.057203,28.416095],[80.088425,28.79447],[80.476721,29.729865],[81.111256,30.183481],[81.525804,30.422717],[82.327513,30.115268],[83.337115,29.463732],[83.898993,29.320226],[84.23458,28.839894],[85.011638,28.642774],[85.82332,28.203576],[86.954517,27.974262],[88.120441,27.876542]]]},"id":"NPL"},{"type":"Feature","properties":{"name":"New Zealand"},"geometry":{"type":"MultiPolygon","coordinates":[[[[173.020375,-40.919052],[173.247234,-41.331999],[173.958405,-40.926701],[174.247587,-41.349155],[174.248517,-41.770008],[173.876447,-42.233184],[173.22274,-42.970038],[172.711246,-43.372288],[173.080113,-43.853344],[172.308584,-43.865694],[171.452925,-44.242519],[171.185138,-44.897104],[170.616697,-45.9
2108929],[169.831422,-46.355775],[169.332331,-46.641235],[168.411354,-46.619945],[167.763745,-46.290197],[166.676886,-46.219917],[166.509144,-45.852705],[167.046424,-45.110941],[168.303763,-44.123973],[168.949409,-43.935819],[169.667815,-43.555326],[170.52492,-43.031688],[171.12509,-42.512754],[171.569714,-41.767424],[171.948709,-41.514417],[172.097227,-40.956104],[172.79858,-40.493962],[173.020375,-40.919052]]],[[[174.612009,-36.156397],[175.336616,-37.209098],[175.357596,-36.526194],[175.808887,-36.798942],[175.95849,-37.555382],[176.763195,-37.881253],[177.438813,-37.961248],[178.010354,-37.579825],[178.517094,-37.695373],[178.274731,-38.582813],[177.97046,-39.166343],[177.206993,-39.145776],[176.939981,-39.449736],[177.032946,-39.879943],[176.885824,-40.065978],[176.508017,-40.604808],[176.01244,-41.289624],[175.239567,-41.688308],[175.067898,-41.425895],[174.650973,-41.281821],[175.22763,-40.459236],[174.900157,-39.908933],[173.824047,-39.508854],[173.852262,-39.146602],[174.574802,-38.797683],[174.743474,-38.027808],[174.697017,-37.381129],[174.292028,-36.711092],[174.319004,-36.534824],[173.840997,-36.121981],[173.054171,-35.237125],[172.636005,-34.529107],[173.007042,-34.450662],[173.551298,-35.006183],[174.32939,-35.265496],[174.612009,-36.156397]]]]},"id":"NZL"},{"type":"Feature","properties":{"name":"Oman"},"geometry":{"type":"MultiPolygon","coordinates":[[[[58.861141,21.114035],[58.487986,20.428986],[58.034318,20.481437],[57.826373,20.243002],[57.665762,19.736005],[57.7887,19.06757],[57.694391,18.94471],[57.234264,18.947991],[56.609651,18.574267],[56.512189,18.087113],[56.283521,17.876067],[55.661492,17.884128],[55.269939,17.632309],[55.2749,17.228354],[54.791002,16.950697],[54.239253,17.044981],[53.570508,16.707663],[53.108573,16.651051],[52.782184,17.349742],[52.00001,19.000003],[54.999982,19.999994],[55.666659,22.000001],[55.208341,22.70833],[55.234489,23.110993],[55.525841,23.524869],[55.528632,23.933604],[55.981214,24.130543],[55.804119,24.269604],[55.886233,24.920831],[56.396847,24.924732],[56.84514,24.241673],[57.403453,23.878594],[58.136948,23.747931],[58.729211,23.565668],[59.180502,22.992395],[59.450098,22.660271],[59.80806,22.533612],[59.806148,22.310525],[59.442191,21.714541],[59.282408,21.433886],[58.861141,21.114035]]],[[[56.391421,25.895991],[56.261042,25.714606],[56.070821,26.055464],[56.362017,26.395934],[56.485679,26.309118],[56.391421,25.895991]]]]},"id":"OMN"},{"type":"Feature","properties":{"name":"Pakistan"},"geometry":{"type":"Polygon","coordinates":[[[75.158028,37.133031],[75.896897,36.666806],[76.192848,35.898403],[77.837451,35.49401],[76.871722,34.653544],[75.757061,34.504923],[74.240203,34.748887],[73.749948,34.317699],[74.104294,33.441473],[74.451559,32.7649],[75.258642,32.271105],[74.405929,31.692639],[74.42138,30.979815],[73.450638,29.976413],[72.823752,28.961592],[71.777666,27.91318],[70.616496,27.989196],[69.514393,26.940966],[70.168927,26.491872],[70.282873,25.722229],[70.844699,25.215102],[71.04324,24.356524],[68.842599,24.359134],[68.176645,23.691965],[67.443667,23.944844],[67.145442,24.663611],[66.372828,25.425141],[64.530408,25.237039],[62.905701,25.218409],[61.497363,25.078237],[61.874187,26.239975],[63.316632,26.756532],[63.233898,27.217047],[62.755426,27.378923],[62.72783,28.259645],[61.771868,28.699334],[61.369309,29.303276],[60.874248,29.829239],[62.549857,29.318572],[63.550261,29.468331],[64.148002,29.340819],[64.350419,29.560031],[65.046862,29.472181],[66.346473,29.887943],[66.381458,30.738899],[66.938891,31.304911],[67.683394,31.303154],[67.792689,31.58293],[68.556932,31.71331],[68.926677,31.620189],[69.317764,31.901412],[69.262522,32.501944],[69.687147,33.105499],[70.323594,33.358533],[69.930543,34.02012],[70.881803,33.988856],[71.156773,34.348911],[71.115019,34.733126],[71.613076,35.153203],[71.498768,35.650563],[71.262348,36.074388],[71.846292,36.509942],[72.920025,36.720007],[74.067552,36.836176],[74.575893,37.020841],[75.158028,37.133031]]]},"id":"PAK"},{"type":"Feature","properties":{"name":"Panama"},"geometry":{"type":"Polygon","coordinates":[[[-77.881571,7.223771],[-78.214936,7.512255],[-78.429161,8.052041],[-78.182096,8.319182],[-78.435465,8.387705],[-78.622121,8.718124],[-79.120307,8.996092],[-79.557877,8.932375],[-79.760578,8.584515],[-80.164481,8.333316],[-80.382659,8.298409],[-80.480689,8.090308],[-80.00369,7.547524],[-80.276671,7.419754],[-80.421158,7.271572],[-80.886401,7.220541],[-81.059543,7.817921],[-81.189716,7.647906],[-81.519515,7.70661],[-81.721311,8.108963],[-82.131441,8.175393],[-82.390934,8.292362],[-82.820081,8.290864],[-82.850958,8.073823],[-82.965783,8.225028],[-82.913176,8.423517],[-82.829771,8.626295],[-82.868657,8.807266],[-82.719183,8.925709],[-82.927155,9.07433],[-82.932891,9.476812],[-82.546196,9.566135],[-82.187123,9.207449],[-82.207586,8.995575],[-81.808567,8.950617],[-81.714154,9.031955],[-81.439287,8.786234],[-80.947302,8.858504],[-80.521901,9.111072],[-79.9146,9.312765],[-79.573303,9.61161],[-79.021192,9.5
2152931],[-79.05845,9.454565],[-78.500888,9.420459],[-78.055928,9.24773],[-77.729514,8.946844],[-77.353361,8.670505],[-77.474723,8.524286],[-77.242566,7.935278],[-77.431108,7.638061],[-77.753414,7.70984],[-77.881571,7.223771]]]},"id":"PAN"},{"type":"Feature","properties":{"name":"Peru"},"geometry":{"type":"Polygon","coordinates":[[[-69.590424,-17.580012],[-69.858444,-18.092694],[-70.372572,-18.347975],[-71.37525,-17.773799],[-71.462041,-17.363488],[-73.44453,-16.359363],[-75.237883,-15.265683],[-76.009205,-14.649286],[-76.423469,-13.823187],[-76.259242,-13.535039],[-77.106192,-12.222716],[-78.092153,-10.377712],[-79.036953,-8.386568],[-79.44592,-7.930833],[-79.760578,-7.194341],[-80.537482,-6.541668],[-81.249996,-6.136834],[-80.926347,-5.690557],[-81.410943,-4.736765],[-81.09967,-4.036394],[-80.302561,-3.404856],[-80.184015,-3.821162],[-80.469295,-4.059287],[-80.442242,-4.425724],[-80.028908,-4.346091],[-79.624979,-4.454198],[-79.205289,-4.959129],[-78.639897,-4.547784],[-78.450684,-3.873097],[-77.837905,-3.003021],[-76.635394,-2.608678],[-75.544996,-1.56161],[-75.233723,-0.911417],[-75.373223,-0.152032],[-75.106625,-0.057205],[-74.441601,-0.53082],[-74.122395,-1.002833],[-73.659504,-1.260491],[-73.070392,-2.308954],[-72.325787,-2.434218],[-71.774761,-2.16979],[-71.413646,-2.342802],[-70.813476,-2.256865],[-70.047709,-2.725156],[-70.692682,-3.742872],[-70.394044,-3.766591],[-69.893635,-4.298187],[-70.794769,-4.251265],[-70.928843,-4.401591],[-71.748406,-4.593983],[-72.891928,-5.274561],[-72.964507,-5.741251],[-73.219711,-6.089189],[-73.120027,-6.629931],[-73.724487,-6.918595],[-73.723401,-7.340999],[-73.987235,-7.52383],[-73.571059,-8.424447],[-73.015383,-9.032833],[-73.226713,-9.462213],[-72.563033,-9.520194],[-72.184891,-10.053598],[-71.302412,-10.079436],[-70.481894,-9.490118],[-70.548686,-11.009147],[-70.093752,-11.123972],[-69.529678,-10.951734],[-68.66508,-12.5613],[-68.88008,-12.899729],[-68.929224,-13.602684],[-68.948887,-14.453639],[-69.339535,-14.953195],[-69.160347,-15.323974],[-69.389764,-15.660129],[-68.959635,-16.500698],[-69.590424,-17.580012]]]},"id":"PER"},{"type":"Feature","properties":{"name":"Philippines"},"geometry":{"type":"MultiPolygon","coordinates":[[[[126.376814,8.414706],[126.478513,7.750354],[126.537424,7.189381],[126.196773,6.274294],[125.831421,7.293715],[125.363852,6.786485],[125.683161,6.049657],[125.396512,5.581003],[124.219788,6.161355],[123.93872,6.885136],[124.243662,7.36061],[123.610212,7.833527],[123.296071,7.418876],[122.825506,7.457375],[122.085499,6.899424],[121.919928,7.192119],[122.312359,8.034962],[122.942398,8.316237],[123.487688,8.69301],[123.841154,8.240324],[124.60147,8.514158],[124.764612,8.960409],[125.471391,8.986997],[125.412118,9.760335],[126.222714,9.286074],[126.306637,8.782487],[126.376814,8.414706]]],[[[123.982438,10.278779],[123.623183,9.950091],[123.309921,9.318269],[122.995883,9.022189],[122.380055,9.713361],[122.586089,9.981045],[122.837081,10.261157],[122.947411,10.881868],[123.49885,10.940624],[123.337774,10.267384],[124.077936,11.232726],[123.982438,10.278779]]],[[[118.504581,9.316383],[117.174275,8.3675],[117.664477,9.066889],[118.386914,9.6845],[118.987342,10.376292],[119.511496,11.369668],[119.689677,10.554291],[119.029458,10.003653],[118.504581,9.316383]]],[[[121.883548,11.891755],[122.483821,11.582187],[123.120217,11.58366],[123.100838,11.165934],[122.637714,10.741308],[122.00261,10.441017],[121.967367,10.905691],[122.03837,11.415841],[121.883548,11.891755]]],[[[125.502552,12.162695],[125.783465,11.046122],[125.011884,11.311455],[125.032761,10.975816],[125.277449,10.358722],[124.801819,10.134679],[124.760168,10.837995],[124.459101,10.88993],[124.302522,11.495371],[124.891013,11.415583],[124.87799,11.79419],[124.266762,12.557761],[125.227116,12.535721],[125.502552,12.162695]]],[[[121.527394,13.06959],[121.26219,12.20556],[120.833896,12.704496],[120.323436,13.466413],[121.180128,13.429697],[121.527394,13.06959]]],[[[121.321308,18.504065],[121.937601,18.218552],[122.246006,18.47895],[122.336957,18.224883],[122.174279,17.810283],[122.515654,17.093505],[122.252311,16.262444],[121.662786,15.931018],[121.50507,15.124814],[121.728829,14.328376],[122.258925,14.218202],[122.701276,14.336541],[123.950295,13.782131],[123.855107,13.237771],[124.181289,12.997527],[124.077419,12.536677],[123.298035,13.027526],[122.928652,13.55292],[122.671355,13.185836],[122.03465,13.784482],[121.126385,13.636687],[120.628637,13.857656],[120.679384,14.271016],[120.991819,14.525393],[120.693336,14.756671],[120.564145,14.396279],[120.070429,14.970869],[119.920929,15.406347],[119.883773,16.363704],[120.286488,16.034629],[120.390047,17.599081],[120.715867,18.505227],[121.321308,18.504065]]]]},"id":"PHL"},{"type":"Feature","properties":{"name":"Papua New Guinea"},"geometry":{"type":"MultiPolygon","coordinates":[[[[155.880026,-6.819997],[155.599991,-6.919991],[155.166994,-6.535931],[154.729192,-5.900828],[154.514114,-5.139118],[154.652504,-5.042431],[154.759991,-5.339984],[155.062918,-5.566792],[155.547746,-6.200655],[156.019965,-6.540014],[155.880026,-6.819997]]],[[[151.982796,-5.478063],[151.459107,-5.56028],[151.30139,-5.840728],[150.754447,-6.083763],[150.241197,-6.317754],[149.709963,-6.316513],[148.89
210065,-6.02604],[148.318937,-5.747142],[148.401826,-5.437756],[149.298412,-5.583742],[149.845562,-5.505503],[149.99625,-5.026101],[150.139756,-5.001348],[150.236908,-5.53222],[150.807467,-5.455842],[151.089672,-5.113693],[151.647881,-4.757074],[151.537862,-4.167807],[152.136792,-4.14879],[152.338743,-4.312966],[152.318693,-4.867661],[151.982796,-5.478063]]],[[[147.191874,-7.388024],[148.084636,-8.044108],[148.734105,-9.104664],[149.306835,-9.071436],[149.266631,-9.514406],[150.038728,-9.684318],[149.738798,-9.872937],[150.801628,-10.293687],[150.690575,-10.582713],[150.028393,-10.652476],[149.78231,-10.393267],[148.923138,-10.280923],[147.913018,-10.130441],[147.135443,-9.492444],[146.567881,-8.942555],[146.048481,-8.067414],[144.744168,-7.630128],[143.897088,-7.91533],[143.286376,-8.245491],[143.413913,-8.983069],[142.628431,-9.326821],[142.068259,-9.159596],[141.033852,-9.117893],[141.017057,-5.859022],[141.00021,-2.600151],[142.735247,-3.289153],[144.583971,-3.861418],[145.27318,-4.373738],[145.829786,-4.876498],[145.981922,-5.465609],[147.648073,-6.083659],[147.891108,-6.614015],[146.970905,-6.721657],[147.191874,-7.388024]]],[[[153.140038,-4.499983],[152.827292,-4.766427],[152.638673,-4.176127],[152.406026,-3.789743],[151.953237,-3.462062],[151.384279,-3.035422],[150.66205,-2.741486],[150.939965,-2.500002],[151.479984,-2.779985],[151.820015,-2.999972],[152.239989,-3.240009],[152.640017,-3.659983],[153.019994,-3.980015],[153.140038,-4.499983]]]]},"id":"PNG"},{"type":"Feature","properties":{"name":"Poland"},"geometry":{"type":"Polygon","coordinates":[[[15.016996,51.106674],[14.607098,51.745188],[14.685026,52.089947],[14.4376,52.62485],[14.074521,52.981263],[14.353315,53.248171],[14.119686,53.757029],[14.8029,54.050706],[16.363477,54.513159],[17.622832,54.851536],[18.620859,54.682606],[18.696255,54.438719],[19.66064,54.426084],[20.892245,54.312525],[22.731099,54.327537],[23.243987,54.220567],[23.484128,53.912498],[23.527536,53.470122],[23.804935,53.089731],[23.799199,52.691099],[23.199494,52.486977],[23.508002,52.023647],[23.527071,51.578454],[24.029986,50.705407],[23.922757,50.424881],[23.426508,50.308506],[22.51845,49.476774],[22.776419,49.027395],[22.558138,49.085738],[21.607808,49.470107],[20.887955,49.328772],[20.415839,49.431453],[19.825023,49.217125],[19.320713,49.571574],[18.909575,49.435846],[18.853144,49.49623],[18.392914,49.988629],[17.649445,50.049038],[17.554567,50.362146],[16.868769,50.473974],[16.719476,50.215747],[16.176253,50.422607],[16.238627,50.697733],[15.490972,50.78473],[15.016996,51.106674]]]},"id":"POL"},{"type":"Feature","properties":{"name":"Puerto Rico"},"geometry":{"type":"Polygon","coordinates":[[[-66.282434,18.514762],[-65.771303,18.426679],[-65.591004,18.228035],[-65.847164,17.975906],[-66.599934,17.981823],[-67.184162,17.946553],[-67.242428,18.37446],[-67.100679,18.520601],[-66.282434,18.514762]]]},"id":"PRI"},{"type":"Feature","properties":{"name":"North Korea"},"geometry":{"type":"Polygon","coordinates":[[[130.640016,42.395009],[130.780007,42.220007],[130.400031,42.280004],[129.965949,41.941368],[129.667362,41.601104],[129.705189,40.882828],[129.188115,40.661808],[129.0104,40.485436],[128.633368,40.189847],[127.967414,40.025413],[127.533436,39.75685],[127.50212,39.323931],[127.385434,39.213472],[127.783343,39.050898],[128.349716,38.612243],[128.205746,38.370397],[127.780035,38.304536],[127.073309,38.256115],[126.68372,37.804773],[126.237339,37.840378],[126.174759,37.749686],[125.689104,37.94001],[125.568439,37.752089],[125.27533,37.669071],[125.240087,37.857224],[124.981033,37.948821],[124.712161,38.108346],[124.985994,38.548474],[125.221949,38.665857],[125.132859,38.848559],[125.38659,39.387958],[125.321116,39.551385],[124.737482,39.660344],[124.265625,39.928493],[125.079942,40.569824],[126.182045,41.107336],[126.869083,41.816569],[127.343783,41.503152],[128.208433,41.466772],[128.052215,41.994285],[129.596669,42.424982],[129.994267,42.985387],[130.640016,42.395009]]]},"id":"PRK"},{"type":"Feature","properties":{"name":"Portugal"},"geometry":{"type":"Polygon","coordinates":[[[-9.034818,41.880571],[-8.671946,42.134689],[-8.263857,42.280469],[-8.013175,41.790886],[-7.422513,41.792075],[-7.251309,41.918346],[-6.668606,41.883387],[-6.389088,41.381815],[-6.851127,41.111083],[-6.86402,40.330872],[-7.026413,40.184524],[-7.066592,39.711892],[-7.498632,39.629571],[-7.098037,39.030073],[-7.374092,38.373059],[-7.029281,38.075764],[-7.166
21508,37.803894],[-7.537105,37.428904],[-7.453726,37.097788],[-7.855613,36.838269],[-8.382816,36.97888],[-8.898857,36.868809],[-8.746101,37.651346],[-8.839998,38.266243],[-9.287464,38.358486],[-9.526571,38.737429],[-9.446989,39.392066],[-9.048305,39.755093],[-8.977353,40.159306],[-8.768684,40.760639],[-8.790853,41.184334],[-8.990789,41.543459],[-9.034818,41.880571]]]},"id":"PRT"},{"type":"Feature","properties":{"name":"Paraguay"},"geometry":{"type":"Polygon","coordinates":[[[-62.685057,-22.249029],[-62.291179,-21.051635],[-62.265961,-20.513735],[-61.786326,-19.633737],[-60.043565,-19.342747],[-59.115042,-19.356906],[-58.183471,-19.868399],[-58.166392,-20.176701],[-57.870674,-20.732688],[-57.937156,-22.090176],[-56.88151,-22.282154],[-56.473317,-22.0863],[-55.797958,-22.35693],[-55.610683,-22.655619],[-55.517639,-23.571998],[-55.400747,-23.956935],[-55.027902,-24.001274],[-54.652834,-23.839578],[-54.29296,-24.021014],[-54.293476,-24.5708],[-54.428946,-25.162185],[-54.625291,-25.739255],[-54.788795,-26.621786],[-55.695846,-27.387837],[-56.486702,-27.548499],[-57.60976,-27.395899],[-58.618174,-27.123719],[-57.63366,-25.603657],[-57.777217,-25.16234],[-58.807128,-24.771459],[-60.028966,-24.032796],[-60.846565,-23.880713],[-62.685057,-22.249029]]]},"id":"PRY"},{"type":"Feature","properties":{"name":"Qatar"},"geometry":{"type":"Polygon","coordinates":[[[50.810108,24.754743],[50.743911,25.482424],[51.013352,26.006992],[51.286462,26.114582],[51.589079,25.801113],[51.6067,25.21567],[51.389608,24.627386],[51.112415,24.556331],[50.810108,24.754743]]]},"id":"QAT"},{"type":"Feature","properties":{"name":"Romania"},"geometry":{"type":"Polygon","coordinates":[[[22.710531,47.882194],[23.142236,48.096341],[23.760958,47.985598],[24.402056,47.981878],[24.866317,47.737526],[25.207743,47.891056],[25.945941,47.987149],[26.19745,48.220881],[26.619337,48.220726],[26.924176,48.123264],[27.233873,47.826771],[27.551166,47.405117],[28.12803,46.810476],[28.160018,46.371563],[28.054443,45.944586],[28.233554,45.488283],[28.679779,45.304031],[29.149725,45.464925],[29.603289,45.293308],[29.626543,45.035391],[29.141612,44.82021],[28.837858,44.913874],[28.558081,43.707462],[27.970107,43.812468],[27.2424,44.175986],[26.065159,43.943494],[25.569272,43.688445],[24.100679,43.741051],[23.332302,43.897011],[22.944832,43.823785],[22.65715,44.234923],[22.474008,44.409228],[22.705726,44.578003],[22.459022,44.702517],[22.145088,44.478422],[21.562023,44.768947],[21.483526,45.18117],[20.874313,45.416375],[20.762175,45.734573],[20.220192,46.127469],[21.021952,46.316088],[21.626515,46.994238],[22.099768,47.672439],[22.710531,47.882194]]]},"id":"ROU"},{"type":"Feature","properties":{"name":"Russia"},"geometry":{"type":"MultiPolygon","coordinates":[[[[143.648007,50.7476],[144.654148,48.976391],[143.173928,49.306551],[142.558668,47.861575],[143.533492,46.836728],[143.505277,46.137908],[142.747701,46.740765],[142.09203,45.966755],[141.906925,46.805929],[142.018443,47.780133],[141.904445,48.859189],[142.1358,49.615163],[142.179983,50.952342],[141.594076,51.935435],[141.682546,53.301966],[142.606934,53.762145],[142.209749,54.225476],[142.654786,54.365881],[142.914616,53.704578],[143.260848,52.74076],[143.235268,51.75666],[143.648007,50.7476]]],[[[22.731099,54.327537],[20.892245,54.312525],[19.66064,54.426084],[19.888481,54.86616],[21.268449,55.190482],[22.315724,55.015299],[22.757764,54.856574],[22.6510
2152,54.582741],[22.731099,54.327537]]],[[[-175.01425,66.58435],[-174.33983,66.33556],[-174.57182,67.06219],[-171.85731,66.91308],[-169.89958,65.97724],[-170.89107,65.54139],[-172.53025,65.43791],[-172.555,64.46079],[-172.95533,64.25269],[-173.89184,64.2826],[-174.65392,64.63125],[-175.98353,64.92288],[-176.20716,65.35667],[-177.22266,65.52024],[-178.35993,65.39052],[-178.90332,65.74044],[-178.68611,66.11211],[-179.88377,65.87456],[-179.43268,65.40411],[-180,64.979709],[-180,68.963636],[-177.55,68.2],[-174.92825,67.20589],[-175.01425,66.58435]]],[[[180,70.832199],[178.903425,70.78114],[178.7253,71.0988],[180,71.515714],[180,70.832199]]],[[[-178.69378,70.89302],[-180,70.832199],[-180,71.515714],[-179.871875,71.55762],[-179.02433,71.55553],[-177.577945,71.26948],[-177.663575,71.13277],[-178.69378,70.89302]]],[[[143.60385,73.21244],[142.08763,73.20544],[140.038155,73.31692],[139.86312,73.36983],[140.81171,73.76506],[142.06207,73.85758],[143.48283,73.47525],[143.60385,73.21244]]],[[[150.73167,75.08406],[149.575925,74.68892],[147.977465,74.778355],[146.11919,75.17298],[146.358485,75.49682],[148.22223,75.345845],[150.73167,75.08406]]],[[[145.086285,75.562625],[144.3,74.82],[140.61381,74.84768],[138.95544,74.61148],[136.97439,75.26167],[137.51176,75.94917],[138.831075,76.13676],[141.471615,76.09289],[145.086285,75.562625]]],[[[57.535693,70.720464],[56.944979,70.632743],[53.677375,70.762658],[53.412017,71.206662],[51.601895,71.474759],[51.455754,72.014881],[52.478275,72.229442],[52.444169,72.774731],[54.427614,73.627548],[53.50829,73.749814],[55.902459,74.627486],[55.631933,75.081412],[57.868644,75.60939],[61.170044,76.251883],[64.498368,76.439055],[66.210977,76.809782],[68.15706,76.939697],[68.852211,76.544811],[68.180573,76.233642],[64.637326,75.737755],[61.583508,75.260885],[58.477082,74.309056],[56.986786,73.333044],[55.419336,72.371268],[55.622838,71.540595],[57.535693,70.720464]]],[[[106.97013,76.97419],[107.24,76.48],[108.1538,76.72335],[111.07726,76.71],[113.33151,76.22224],[114.13417,75.84764],[113.88539,75.32779],[112.77918,75.03186],[110.15125,74.47673],[109.4,74.18],[110.64,74.04],[112.11919,73.78774],[113.01954,73.97693],[113.52958,73.33505],[113.96881,73.59488],[115.56782,73.75285],[118.77633,73.58772],[119.02,73.12],[123.20066,72.97122],[123.25777,73.73503],[125.38,73.56],[126.97644,73.56549],[128.59126,73.03871],[129.05157,72.39872],[128.46,71.98],[129.71599,71.19304],[131.28858,70.78699],[132.2535,71.8363],[133.85766,71.38642],[135.56193,71.65525],[137.49755,71.34763],[138.23409,71.62803],[139.86983,71.48783],[139.14791,72.41619],[140.46817,72.84941],[149.5,72.2],[150.35118,71.60643],[152.9689,70.84222],[157.00688,71.03141],[158.99779,70.86672],[159.83031,70.45324],[159.70866,69.72198],[160.94053,69.43728],[162.27907,69.64204],[164.05248,69.66823],[165.94037,69.47199],[167.83567,69.58269],[169.57763,68.6938],[170.81688,69.01363],[170.0082,69.65276],[170.45345,70.09703],[173.64391,69.81743],[175.72403,69.87725],[178.6,69.4],[180,68.963636],[180,64.979709],[179.99281,64.97433],[178.7072,64.53493],[177.41128,64.60821],[178.313,64.07593],[178.90825,63.25197],[179.37034,62.98262],[179.48636,62.56894],[179.22825,62.3041],[177.3643,62.5219],[174.56929,61.76915],[173.68013,61.65261],[172.15,60.95],[170.6985,60.33618],[170.33085,59.88177],[168.90046,60.57355],[166.29498,59.78855],[165.84,60.16],[164.87674,59.7316],[163.53929,59.86871],[163.21711,59.21101],[162.01733,58.24328],[162.05297,57.83912],[163.19191,57.61503],[163.05794,56.15924],[162.12958,56.12219],[161.70146,55.28568],[162.11749,54.85514],[160.36877,54.34433],[160.02173,53.20257],[158.53094,52.95868],[158.23118,51.94269],[156.78979,51.01105],[156.42,51.7],[155.99182,53.15895],[155.43366,55.38103],[155.91442,56.76792],[156.75815,57.3647],[156.81035,57.83204],[158.36433,58.05575],[160.15064,59.31477],[161.87204,60.343],[163.66969,61.1409],[164.47355,62.55061],[163.25842,62.46627],[162.65791,61.6425],[160.12148,60.54423],[159.30232,61.77396],[156.72068,61.43442],[154.21806,59.75818],[155.04375,59.14495],[152.81185,58.88385],[151.26573,58.78089],[151.33815,59.50396],[149.78371,59.65573],[148.54481,59.16448],[145.48722,59.33637],[142.19782,59.03998],[138.95848,57.08805],[135.12619,54.72959],[136.70171,54.60355],[137.19342,53.97732],[138.1647,53.75501],[138.80463,54.25455],[139.90151,54.18968],[141.34531,53.08957],[141.37923,52.23877],[140.59742,51.23967],[140.51308,50.04553],[140.06193,48.44671],[138.55472,46.99965],[138.21971,46.30795],[136.86232,45.1435],[135.51535,43.989],[134.86939,43.39821],[133.53687,42.81147],[132.90627,42.79849],[132.27807,43.28456],[130.93587,42.55274],[130.78,42.22],[130.64,42.395],[130.633866,42.903015],[131.144688,42.92999],[131.288555,44.11152],[131.02519,44.96796],[131.883454,45.321162],[133.09712,45.14409],[133.769644,46.116927],[134.11235,47.21248],[134.50081,47.57845],[135.026311,48.47823],[133.373596,48.183442],[132.50669,47.78896],[130.98726,47.79013],[130.582293,48.729687],[129.397818,49.4406],[127.6574,49.76027],[127.287456,50.739797],[126.939157,51.353894],[126.564399,51.784255],[125.946349,52.792799],[125.068211,53.161045],[123.57147,53.4588],[122.245748,53.431726],[121.003085,53.251401],[120.177089,52.753886],[120.725789,52.516226],[120.7382,51.96411],[120.18208,51.64355],[119.27939,50.58292],[119.288461,50.142883],[117.879244,49.510983],[116.678801,49.888531],[115.485695,49.805177],[114.96211,50.140247],[114.362456,50.248303],[112.89774,49.543565],[111.581231,49.377968],[110.662011,49.130128],[109.402449,49.292961],[108.475167,49.282548],[107.868176,49.793705],[106.888804,50.274296],[105.886591,50.406019],[104.62158,50.27532],[103.676545,50.089966],[102.25589,50.51056],[102.06521,51.25991],[100.88948,51.516856],[99.981732,51.634006],[98.861491,52.047366],[97.82574,51.010995],[98.231762,50.422401],[97.25976,49.72605],[95.81402,49.97746],[94.815949,50.013433],[94.147566,50.480537],[93.10421,50.49529],[92.234712,50.802171],[90.713667,50.331812],[88.805567,49.470521],[87.751264,49.297198],[87.35997,49.214981],[86.829357,49.826675],[85.54127,49.692859],[85.11556,50.117303],[84.416377,50.3114],[83.935115,50.889246],[83.383004,51.069183],[81.945986,50.812196],[80.568447,51.388336],[80.03556,50.864751],[77.800916,53.404415],[76.525179,54.177003],[76.8911,54.490524],[74.38482,53.54685],[73.425679,53.48981],[73.508516,54.035617],[72.22415,54.376655],[71.180131,54.133285],[70.865267,55.169734],[69.068167,55.38525],[68.1691,54.970392],[65.66687,54.60125],[65.178534,54.354228],[61.4366,54.00625],[60.978066,53.664993],[61.699986,52.979996],[60.739993,52.719986],[60.927269,52.447548],[59.967534,51.96042],[61.588003,51.272659],[61.337424,50.79907],[59.932807,50.842194],[59.642282,50.545442],[58.36332,51.06364],[56.77798,51.04355],[55.71694,50.62171],[54.532878,51.02624],[52.328724,51.718652],[50.766648,51.692762],[48.702382,50.605128],[48.577841,49.87476],[47.54948,50.454698],[46.751596,49.356006],[47.043672,49.152039],[46.466446,48.394152],[47.31524,47.71585],[48.05725,47.74377],[48.694734,47.075628],[48.59325,46.56104],[49.10116,46.39933],[48.64541,45.80629],[47.67591,45.64149],[46.68201,44.6092],[47.59094,43.66016],[47.49252,42.98658],[48.58437,41.80888],[47.987283,41.405819],[47.815666,41.151416],[47.373315,41.219732],[46.686071,41.827137],[46.404951,41.860675],[45.7764,42.09244],[45.470279,42.502781],[44.537623,42.711993],[43.93121,42.55496],[43.75599,42.74083],[42.3944,43.2203],[40.92219,43.38215],[40.076965,43.553104],[39.955009,43.434998],[38.68,44.28],[37.53912,44.65721],[36.67546,45.24469],[37.40317,45.40451],[38.23295,46.24087],[37.67372,46.63657],[39.14767,47.04475],[39.1212,47.26336],[38.223538,47.10219],[38.255112,47.5464],[38.77057,47.82562],[39.738278,47.898937],[39.89562,48.23241],[39.67465,48.78382],[40.080789,49.30743],[40.06904,49.60105],[38.594988,49.926462],[38.010631,49.915662],[37.39346,50.383953],[36.626168,50.225591],[35.356116,50.577197],[35.37791,50.77394],[35.022183,51.207572],[34.224816,51.255993],[34.141978,51.566413],[34.391731,51.768882],[33.7527,52.335075],[32.715761,52.238465],[32.412058,52.288695],[32.15944,52.06125],[31.78597,52.10168],[31.540018,52.742052],[31.305201,53.073996],[31.49764,53.16743],[32.304519,53.132726],[32.693643,53.351421],[32.405599,53.618045],[31.731273,53.794029],[31.791424,53.974639],[31.384472,54.157056],[30.757534,54.811771],[30.971836,55.081548],[30.873909,55.550976],[29.896294,55.789463],[29.371572,55.670091],[29.229513,55.918344],[28.176709,56.16913],[27.855282,56.759326],[27.770016,57.244258],[27.288185,57.474528],[27.716686,57.791899],[27.42015,58.72457],[28.131699,59.300825],[27.98112,59.47537],[29.1177,60.02805],[28.07,60.50352],[30.211107,61.780028],[31.13999
211,62.357693],[31.516092,62.867687],[30.035872,63.552814],[30.444685,64.204453],[29.54443,64.948672],[30.21765,65.80598],[29.054589,66.944286],[29.977426,67.698297],[28.445944,68.364613],[28.59193,69.064777],[29.39955,69.15692],[31.10108,69.55811],[32.13272,69.90595],[33.77547,69.30142],[36.51396,69.06342],[40.29234,67.9324],[41.05987,67.45713],[41.12595,66.79158],[40.01583,66.26618],[38.38295,65.99953],[33.91871,66.75961],[33.18444,66.63253],[34.81477,65.90015],[34.878574,65.436213],[34.94391,64.41437],[36.23129,64.10945],[37.01273,63.84983],[37.14197,64.33471],[36.539579,64.76446],[37.17604,65.14322],[39.59345,64.52079],[40.4356,64.76446],[39.7626,65.49682],[42.09309,66.47623],[43.01604,66.41858],[43.94975,66.06908],[44.53226,66.75634],[43.69839,67.35245],[44.18795,67.95051],[43.45282,68.57079],[46.25,68.25],[46.82134,67.68997],[45.55517,67.56652],[45.56202,67.01005],[46.34915,66.66767],[47.89416,66.88455],[48.13876,67.52238],[50.22766,67.99867],[53.71743,68.85738],[54.47171,68.80815],[53.48582,68.20131],[54.72628,68.09702],[55.44268,68.43866],[57.31702,68.46628],[58.802,68.88082],[59.94142,68.27844],[61.07784,68.94069],[60.03,69.52],[60.55,69.85],[63.504,69.54739],[64.888115,69.234835],[68.51216,68.09233],[69.18068,68.61563],[68.16444,69.14436],[68.13522,69.35649],[66.93008,69.45461],[67.25976,69.92873],[66.72492,70.70889],[66.69466,71.02897],[68.54006,71.9345],[69.19636,72.84336],[69.94,73.04],[72.58754,72.77629],[72.79603,72.22006],[71.84811,71.40898],[72.47011,71.09019],[72.79188,70.39114],[72.5647,69.02085],[73.66787,68.4079],[73.2387,67.7404],[71.28,66.32],[72.42301,66.17267],[72.82077,66.53267],[73.92099,66.78946],[74.18651,67.28429],[75.052,67.76047],[74.46926,68.32899],[74.93584,68.98918],[73.84236,69.07146],[73.60187,69.62763],[74.3998,70.63175],[73.1011,71.44717],[74.89082,72.12119],[74.65926,72.83227],[75.15801,72.85497],[75.68351,72.30056],[75.28898,71.33556],[76.35911,71.15287],[75.90313,71.87401],[77.57665,72.26717],[79.65202,72.32011],[81.5,71.75],[80.61071,72.58285],[80.51109,73.6482],[82.25,73.85],[84.65526,73.80591],[86.8223,73.93688],[86.00956,74.45967],[87.16682,75.11643],[88.31571,75.14393],[90.26,75.64],[92.90058,75.77333],[93.23421,76.0472],[95.86,76.14],[96.67821,75.91548],[98.92254,76.44689],[100.75967,76.43028],[101.03532,76.86189],[101.99084,77.28754],[104.3516,77.69792],[106.06664,77.37389],[104.705,77.1274],[106.97013,76.97419]]],[[[105.07547,78.30689],[99.43814,77.921],[101.2649,79.23399],[102.08635,79.34641],[102.837815,79.28129],[105.37243,78.71334],[105.07547,78.30689]]],[[[51.136187,80.54728],[49.793685,80.415428],[48.894411,80.339567],[48.754937,80.175468],[47.586119,80.010181],[46.502826,80.247247],[47.072455,80.559424],[44.846958,80.58981],[46.799139,80.771918],[48.318477,80.78401],[48.522806,80.514569],[49.09719,80.753986],[50.039768,80.918885],[51.522933,80.699726],[51.136187,80.54728]]],[[[99.93976,78.88094],[97.75794,78.7562],[94.97259,79.044745],[93.31288,79.4265],[92.5454,80.14379],[91.18107,80.34146],[93.77766,81.0246],[95.940895,81.2504],[97.88385,80.746975],[100.186655,79.780135],[99.93976,78.88094]]]]},"id":"RUS"},{"type":"Feature","properties":{"name":"Rwanda"},"geometry":{"type":"Polygon","coordinates":[[[30.419105,-1.134659],[30.816135,-1.698914],[30.758309,-2.28725],[30.469696,-2.413858],[29.938359,-2.348487],[29.632176,-2.917858],[29.024926,-2.839258],[29.117479,-2.292211],[29.254835,-2.21511],[29.291887,-1.620056],[29.579466,-1.341313],[29.821519,-1.443322],[30.419105,-1.134659]]]},"id":"RWA"},{"type":"Feature","properties":{"name":"Western Sahara"},"geometry":{"type":"Polygon","coordinates":[[[-8.794884,27.120696],[
21-8.817828,27.656426],[-8.66559,27.656426],[-8.665124,27.589479],[-8.6844,27.395744],[-8.687294,25.881056],[-11.969419,25.933353],[-11.937224,23.374594],[-12.874222,23.284832],[-13.118754,22.77122],[-12.929102,21.327071],[-16.845194,21.333323],[-17.063423,20.999752],[-17.020428,21.42231],[-17.002962,21.420734],[-14.750955,21.5006],[-14.630833,21.86094],[-14.221168,22.310163],[-13.89111,23.691009],[-12.500963,24.770116],[-12.030759,26.030866],[-11.71822,26.104092],[-11.392555,26.883424],[-10.551263,26.990808],[-10.189424,26.860945],[-9.735343,26.860945],[-9.413037,27.088476],[-8.794884,27.120696]]]},"id":"ESH"},{"type":"Feature","properties":{"name":"Saudi Arabia"},"geometry":{"type":"Polygon","coordinates":[[[42.779332,16.347891],[42.649573,16.774635],[42.347989,17.075806],[42.270888,17.474722],[41.754382,17.833046],[41.221391,18.6716],[40.939341,19.486485],[40.247652,20.174635],[39.801685,20.338862],[39.139399,21.291905],[39.023696,21.986875],[39.066329,22.579656],[38.492772,23.688451],[38.02386,24.078686],[37.483635,24.285495],[37.154818,24.858483],[37.209491,25.084542],[36.931627,25.602959],[36.639604,25.826228],[36.249137,26.570136],[35.640182,27.37652],[35.130187,28.063352],[34.632336,28.058546],[34.787779,28.607427],[34.83222,28.957483],[34.956037,29.356555],[36.068941,29.197495],[36.501214,29.505254],[36.740528,29.865283],[37.503582,30.003776],[37.66812,30.338665],[37.998849,30.5085],[37.002166,31.508413],[39.004886,32.010217],[39.195468,32.161009],[40.399994,31.889992],[41.889981,31.190009],[44.709499,29.178891],[46.568713,29.099025],[47.459822,29.002519],[47.708851,28.526063],[48.416094,28.552004],[48.807595,27.689628],[49.299554,27.461218],[49.470914,27.109999],[50.152422,26.689663],[50.212935,26.277027],[50.113303,25.943972],[50.239859,25.60805],[50.527387,25.327808],[50.660557,24.999896],[50.810108,24.754743],[51.112415,24.556331],[51.389608,24.627386],[51.579519,24.245497],[51.617708,24.014219],[52.000733,23.001154],[55.006803,22.496948],[55.208341,22.70833],[55.666659,22.000001],[54.999982,19.999994],[52.00001,19.000003],[49.116672,18.616668],[48.183344,18.166669],[47.466695,17.116682],[47.000005,16.949999],[46.749994,17.283338],[46.366659,17.233315],[45.399999,17.333335],[45.216651,17.433329],[44.062613,17.410359],[43.791519,17.319977],[43.380794,17.579987],[43.115798,17.08844],[43.218375,16.66689],[42.779332,16.347891]]]},"id":"SAU"},{"type":"Feature","properties":{"name":"Sudan"},"geometry":{"type":"Polygon","coordinates":[[[33.963393,9.464285],[33.824963,9.484061],[33.842131,9.981915],[33.721959,10.325262],[33.206938,10.720112],[33.086766,11.441141],[33.206938,12.179338],[32.743419,12.248008],[32.67475,12.024832],[32.073892,11.97333],[32.314235,11.681484],[32.400072,11.080626],[31.850716,10.531271],[31.352862,9.810241],[30.837841,9.707237],[29.996639,10.290927],[29.618957,10.084919],[29.515953,9.793074],[29.000932,9.604232],[28.966597,9.398224],[27.97089,9.398224],[27.833551,9.604232],[27.112521,9.638567],[26.752006,9.466893],[26.477328,9.55273],[25.962307,10.136421],[25.790633,10.411099],[25.069604,10.27376],[24.794926,9.810241],[24.537415,8.917538],[24.194068,8.728696],[23.88698,8.61973],[23.805813,8.666319],[23.459013,8.954286],[23.394779,9.265068],[23.55725,9.681218],[23.554304,10.089255],[22.977544,10.714463],[22.864165,11.142395],[22.87622,11.38461],[22.50869,11.67936],[22.49762,12.26024],[22.28801,12.64605],[21.93681,12.58818],[22.03759,12.95546],[22.29658,13.37232],[22.18329,13.78648],[22.51202,14.09318],[22.30351,14.32682],[22.56795,14.94429],[23.02459,15.68072],[23.88689,15.61084],[23.83766,19.58047],[23.85,20],[25,20.00304],[25,22],[29.02,22],[32.9,22],[36.86623,22],[37.18872,21.01885],[36.96941,20.83744],[37.1147,19.80796],[37.48179,18.61409],[37.86276,18.36786],[38.41009,17.998307],[37.904,17.42754],[37.16747,17.26314],[36.85253,16.95655],[36.75389,16.29186],[36.32322,14.82249],[36.42951,14.42211],[36.27022,13.56333],[35.86363,12.57828],[35.26049,12.08286],[34.83163,11.31896],[34.73115,10.91017],[34.25745,10.63009],[33.96162,9.58358],[33.963393,9.464285]]]},"id":"SDN"},{"type":"Feature","properties":{"name":"South Sudan"},"geometry":{"type":"Polygon","coordinates":[[[33.963393,9.464285],[33.97498,8.68456],[33.8255,8.37916],[33.2948,8.35458],[32.95418,7.78497],[33.56829,7.71334],[34.0751,7.22595],[34.25032,6.82607],[34.70702,6.59422],[35.29800
217,5.506],[34.620196,4.847123],[34.005,4.249885],[33.39,3.79],[32.68642,3.79232],[31.88145,3.55827],[31.24556,3.7819],[30.83385,3.50917],[29.95349,4.1737],[29.715995,4.600805],[29.159078,4.389267],[28.696678,4.455077],[28.428994,4.287155],[27.979977,4.408413],[27.374226,5.233944],[27.213409,5.550953],[26.465909,5.946717],[26.213418,6.546603],[25.796648,6.979316],[25.124131,7.500085],[25.114932,7.825104],[24.567369,8.229188],[23.88698,8.61973],[24.194068,8.728696],[24.537415,8.917538],[24.794926,9.810241],[25.069604,10.27376],[25.790633,10.411099],[25.962307,10.136421],[26.477328,9.55273],[26.752006,9.466893],[27.112521,9.638567],[27.833551,9.604232],[27.97089,9.398224],[28.966597,9.398224],[29.000932,9.604232],[29.515953,9.793074],[29.618957,10.084919],[29.996639,10.290927],[30.837841,9.707237],[31.352862,9.810241],[31.850716,10.531271],[32.400072,11.080626],[32.314235,11.681484],[32.073892,11.97333],[32.67475,12.024832],[32.743419,12.248008],[33.206938,12.179338],[33.086766,11.441141],[33.206938,10.720112],[33.721959,10.325262],[33.842131,9.981915],[33.824963,9.484061],[33.963393,9.464285]]]},"id":"SDS"},{"type":"Feature","properties":{"name":"Senegal"},"geometry":{"type":"Polygon","coordinates":[[[-16.713729,13.594959],[-17.126107,14.373516],[-17.625043,14.729541],[-17.185173,14.919477],[-16.700706,15.621527],[-16.463098,16.135036],[-16.12069,16.455663],[-15.623666,16.369337],[-15.135737,16.587282],[-14.577348,16.598264],[-14.099521,16.304302],[-13.435738,16.039383],[-12.830658,15.303692],[-12.17075,14.616834],[-12.124887,13.994727],[-11.927716,13.422075],[-11.553398,13.141214],[-11.467899,12.754519],[-11.513943,12.442988],[-11.658301,12.386583],[-12.203565,12.465648],[-12.278599,12.35444],[-12.499051,12.33209],[-13.217818,12.575874],[-13.700476,12.586183],[-15.548477,12.62817],[-15.816574,12.515567],[-16.147717,12.547762],[-16.677452,12.384852],[-16.841525,13.151394],[-15.931296,13.130284],[-15.691001,13.270353],[-15.511813,13.27857],[-15.141163,13.509512],[-14.712197,13.298207],[-14.277702,13.280585],[-13.844963,13.505042],[-14.046992,13.794068],[-14.376714,13.62568],[-14.687031,13.630357],[-15.081735,13.876492],[-15.39877,13.860369],[-15.624596,13.623587],[-16.713729,13.594959]]]},"id":"SEN"},{"type":"Feature","properties":{"name":"Solomon Islands"},"geometry":{"type":"MultiPolygon","coordinates":[[[[162.119025,-10.482719],[162.398646,-10.826367],[161.700032,-10.820011],[161.319797,-10.204751],[161.917383,-10.446701],[162.119025,-10.482719]]],[[[160.852229,-9.872937],[160.462588,-9.89521],[159.849447,-9.794027],[159.640003,-9.63998],[159.702945,-9.24295],[160.362956,-9.400304],[160.688518,-9.610162],[160.852229,-9.872937]]],[[[161.679982,-9.599982],[161.529397,-9.784312],[160.788253,-8.917543],[160.579997,-8.320009],[160.920028,-8.320009],[161.280006,-9.120011],[161.679982,-9.599982]]],[[[159.875027,-8.33732],[159.917402,-8.53829],[159.133677,-8.114181],[158.586114,-7.754824],[158.21115,-7.421872],[158.359978,-7.320018],[158.820001,-7.560003],[159.640003,-8.020027],[159.875027,-8.33732]]],[[[157.538426,-7.34782],[157.33942,-7.404767],[156.90203,-7.176874],[156.491358,-6.765943],[156.542828,-6.599338],[157.14,-7.021638],[157.538426,-7.34782]]]]},"id":"SLB"},{"type":"Feature","properties":{"name":"Sierra Leone"},"geometry":{"type":"Polygon","coordinates":[[[-11.438779,6.785917],[-11.708195,6.860098],[-12.428099,7.262942],[-12.949049,7.798646],[-13.124025,8.163946],[-13.24655,8.903049],[-12.711958,9.342712],[-12.596719,9.620188],[-12.425929,9.835834],[-12.150338,9.858572],[-11.917277,10.046984],[-11.117481,10.045873],[-10.839152,9.688246],[-10.622395,9.26791],[-10.65477,8.977178],[-10.494315,8.715541],[-10.505477,8.348896],[-10.230094,8.406206],[-10.695595,7.939464],[-11.146704,7.396706],[-11.199802,7.105846],[-11.438779,6.785917]]]},"id":"SLE"},{"type":"Feature","properties":{"name":"El Salvador"},"geometry":{"type":"Polygon","coordinates":[[[-87.793111,13.38448],[-87.904112,13.149017],[-88.483302,13.163951],[-88.843228,13.259734],[-89.256743,13.458533],[-89.812394,13.520622],[-90.095555,13.735338],[-90.064678,13.88197],[-89.721934,14.134228],[-89.534219,14.244816],[-89.587343,14.362586],[-89.353326,14.424133],[-89.058512,14.340029],[-88.843073,14.140507],[-88.541231,13.980155],[-88.503998,13.845486],[-88.065343,13.964626],[-87.859515,13.893312],[-87.723503,13.78505],[-87.793111,13.38448]]]},"id":"SLV"},{"type":"Feature","properties":{"name":"Somaliland"},"geometry":{"type":"Polygon","coordinates":[[[48.93813,9.451749],[48.48
216736,8.837626],[47.78942,8.003],[46.948328,7.996877],[43.67875,9.18358],[43.296975,9.540477],[42.92812,10.02194],[42.55876,10.57258],[42.776852,10.926879],[43.145305,11.46204],[43.47066,11.27771],[43.666668,10.864169],[44.117804,10.445538],[44.614259,10.442205],[45.556941,10.698029],[46.645401,10.816549],[47.525658,11.127228],[48.021596,11.193064],[48.378784,11.375482],[48.948206,11.410622],[48.942005,11.394266],[48.938491,10.982327],[48.938233,9.9735],[48.93813,9.451749]]]},"id":"ABV"},{"type":"Feature","properties":{"name":"Somalia"},"geometry":{"type":"Polygon","coordinates":[[[49.72862,11.5789],[50.25878,11.67957],[50.73202,12.0219],[51.1112,12.02464],[51.13387,11.74815],[51.04153,11.16651],[51.04531,10.6409],[50.83418,10.27972],[50.55239,9.19874],[50.07092,8.08173],[49.4527,6.80466],[48.59455,5.33911],[47.74079,4.2194],[46.56476,2.85529],[45.56399,2.04576],[44.06815,1.05283],[43.13597,0.2922],[42.04157,-0.91916],[41.81095,-1.44647],[41.58513,-1.68325],[40.993,-0.85829],[40.98105,2.78452],[41.855083,3.918912],[42.12861,4.23413],[42.76967,4.25259],[43.66087,4.95755],[44.9636,5.00162],[47.78942,8.003],[48.486736,8.837626],[48.93813,9.451749],[48.938233,9.9735],[48.938491,10.982327],[48.942005,11.394266],[48.948205,11.410617],[49.26776,11.43033],[49.72862,11.5789]]]},"id":"SOM"},{"type":"Feature","properties":{"name":"Republic of Serbia"},"geometry":{"type":"Polygon","coordinates":[[[20.874313,45.416375],[21.483526,45.18117],[21.562023,44.768947],[22.145088,44.478422],[22.459022,44.702517],[22.705726,44.578003],[22.474008,44.409228],[22.65715,44.234923],[22.410446,44.008063],[22.500157,43.642814],[22.986019,43.211161],[22.604801,42.898519],[22.436595,42.580321],[22.545012,42.461362],[22.380526,42.32026],[21.91708,42.30364],[21.576636,42.245224],[21.54332,42.32025],[21.66292,42.43922],[21.77505,42.6827],[21.63302,42.67717],[21.43866,42.86255],[21.27421,42.90959],[21.143395,43.068685],[20.95651,43.13094],[20.81448,43.27205],[20.63508,43.21671],[20.49679,42.88469],[20.25758,42.81275],[20.3398,42.89852],[19.95857,43.10604],[19.63,43.21378],[19.48389,43.35229],[19.21852,43.52384],[19.454,43.5681],[19.59976,44.03847],[19.11761,44.42307],[19.36803,44.863],[19.00548,44.86023],[19.390476,45.236516],[19.072769,45.521511],[18.82982,45.90888],[19.596045,46.17173],[20.220192,46.127469],[20.762175,45.734573],[20.874313,45.416375]]]},"id":"SRB"},{"type":"Feature","properties":{"name":"Suriname"},"geometry":{"type":"Polygon","coordinates":[[[-57.147436,5.97315],[-55.949318,5.772878],[-55.84178,5.953125],[-55.03325,6.025291],[-53.958045,5.756548],[-54.478633,4.896756],[-54.399542,4.212611],[-54.006931,3.620038],[-54.181726,3.18978],[-54.269705,2.732392],[-54.524754,2.311849],[-55.097587,2.523748],[-55.569755,2.421506],[-55.973322,2.510364],[-56.073342,2.220795],[-55.9056,2.021996],[-55.995698,1.817667],[-56.539386,1.899523],[-57.150098,2.768927],[-57.281433,3.333492],[-57.601569,3.334655],[-58.044694,4.060864],[-57.86021,4.576801],[-57.914289,4.812626],[-57.307246,5.073567],[-57.147436,5.97315]]]},"id":"SUR"},{"type":"Feature","properties":{"name":"Slovakia"},"geometry":{"type":"Polygon","coordinates":[[[18.853144,49.49623],[18.909575,49.435846],[19.320713,49.571574],[19.825023,49.217125],[20.415839,49.431453],[20.887955,49.328772],[21.607808,49.470107],[22.558138,49.085738],[22.280842,48.825392],[22.085608,48.422264],[21.872236,48.319971],[20.801294,48.623854],[20.473562,48.56285],[20.239054,48.327567],[19.769471,48.202691],[19.661364,48.266615],[19.174365,48.111379],[18.777025,48.081768],[18.696513,47.880954],[17.857133,47.758429],[17.488473,47.867466],[16.979667,48.123497],[16.879983,48.470013],[16.960288,48.596982],[17.101985,48.816969],[17.545007,48.800019],[17.886485,48.903475],[17.913512,48.996493],[18.104973,49.043983],[18.170498,49.271515],[18.399994,49.315001],[18.554971,49.495015],[18.853144,49.49623]]]},"id":"SVK"},{"type":"Feature","properties":{"name":"Slovenia"},"geometry":{"type":"Polygon","coordinates":[[[13.806475,46.509306],[14.632472,46.431817],[15.137092,46.658703],[16.011664,46.683611],[16.202298,46.852386],[16.370505,46.841327],[16.564808,46.503751],[15.768733,46.238108],[15.67153,45.834154],[15.323954,45.731783],[15.327675,45.452316],[14.935244,45.471695],[14.595109,45.634941],[14.411968,45.466166],[13.71506,45.500324],[13.93763,45.591016],[13.69811,46.016778],[13.806475,46.509306]]]},"id":"SVN"},{"type":"Feature","properties":{"name":"Sweden"},"geometry":{"type":"Polygon","coordinates":[[[22.183173,65.723741],[21.213517,65.026005],[21.369631,64.413588],[19.778876,63.609554],[17.847779,62.7494],[17.119555,61.341166],[17.831346,60.636583],[18.787722,60.081914],[17.869225,58.953766],[16.829185,58.719827],[16.44771,57.041118],[15.879786,56.104302],[14.666681,56.200885],[14.100721,55.407781],[12.942911,55.361737],[12.625101,56.30708],[11.787942,57.441817],[11.027369,58.856149],[11.468272,59.432393],[12.300366,60.117933],[12.631147,61.293572],[11.992064,61.800362],[11.930569,63.128318],[12.579935,64.066219],[13.571916,64.049114],[13.919905,64.445421],[13.55569,64.787028],[15.108411,66.193867],[16.108712,67.302456],[16.768879,68.013937],[17.729182,68.010552],[17.993868,68.567391],[19.87856,68.407194],[20.025269,69.065139],[20.645593,69.106247],[21.978535,68.616846],[23.539473,67.936009],[23.56588,66.396051],[23.903379,66.006927],[22.183
21173,65.723741]]]},"id":"SWE"},{"type":"Feature","properties":{"name":"Swaziland"},"geometry":{"type":"Polygon","coordinates":[[[32.071665,-26.73382],[31.86806,-27.177927],[31.282773,-27.285879],[30.685962,-26.743845],[30.676609,-26.398078],[30.949667,-26.022649],[31.04408,-25.731452],[31.333158,-25.660191],[31.837778,-25.843332],[31.985779,-26.29178],[32.071665,-26.73382]]]},"id":"SWZ"},{"type":"Feature","properties":{"name":"Syria"},"geometry":{"type":"Polygon","coordinates":[[[38.792341,33.378686],[36.834062,32.312938],[35.719918,32.709192],[35.700798,32.716014],[35.836397,32.868123],[35.821101,33.277426],[36.06646,33.824912],[36.61175,34.201789],[36.448194,34.593935],[35.998403,34.644914],[35.905023,35.410009],[36.149763,35.821535],[36.41755,36.040617],[36.685389,36.259699],[36.739494,36.81752],[37.066761,36.623036],[38.167727,36.90121],[38.699891,36.712927],[39.52258,36.716054],[40.673259,37.091276],[41.212089,37.074352],[42.349591,37.229873],[41.837064,36.605854],[41.289707,36.358815],[41.383965,35.628317],[41.006159,34.419372],[38.792341,33.378686]]]},"id":"SYR"},{"type":"Feature","properties":{"name":"Chad"},"geometry":{"type":"Polygon","coordinates":[[[14.495787,12.859396],[14.595781,13.330427],[13.954477,13.353449],[13.956699,13.996691],[13.540394,14.367134],[13.97217,15.68437],[15.247731,16.627306],[15.300441,17.92795],[15.685741,19.95718],[15.903247,20.387619],[15.487148,20.730415],[15.47106,21.04845],[15.096888,21.308519],[14.8513,22.86295],[15.86085,23.40972],[19.84926,21.49509],[23.83766,19.58047],[23.88689,15.61084],[23.02459,15.68072],[22.56795,14.94429],[22.30351,14.32682],[22.51202,14.09318],[22.18329,13.78648],[22.29658,13.37232],[22.03759,12.95546],[21.93681,12.58818],[22.28801,12.64605],[22.49762,12.26024],[22.50869,11.67936],[22.87622,11.38461],[22.864165,11.142395],[22.231129,10.971889],[21.723822,10.567056],[21.000868,9.475985],[20.059685,9.012706],[19.094008,9.074847],[18.81201,8.982915],[18.911022,8.630895],[18.389555,8.281304],[17.96493,7.890914],[16.705988,7.508328],[16.456185,7.734774],[16.290562,7.754307],[16.106232,7.497088],[15.27946,7.421925],[15.436092,7.692812],[15.120866,8.38215],[14.979996,8.796104],[14.544467,8.965861],[13.954218,9.549495],[14.171466,10.021378],[14.627201,9.920919],[14.909354,9.992129],[15.467873,9.982337],[14.923565,10.891325],[14.960152,11.555574],[14.89336,12.21905],[14.495787,12.859396]]]},"id":"TCD"},{"type":"Feature","properties":{"name":"Togo"},"geometry":{"type":"Polygon","coordinates":[[[1.865241,6.142158],[1.060122,5.928837],[0.836931,6.279979],[0.570384,6.914359],[0.490957,7.411744],[0.712029,8.312465],[0.461192,8.677223],[0.365901,9.465004],[0.36758,10.191213],[-0.049785,10.706918],[0.023803,11.018682],[0.899563,10.997339],[0.772336,10.470808],[1.077795,10.175607],[1.425061,9.825395],[1.463043,9.334624],[1.664478,9.12859],[1.618951,6.832038],[1.865241,6.142158]]]},"id":"TGO"},{"type":"Feature","properties":{"name":"Thailand"},"geometry":{"type":"Polygon","coordinates":[[[102.584932,12.186595],[101.687158,12.64574],[100.83181,12.627085],[100.978467,13.412722],[100.097797,13.406856],[100.018733,12.307001],[99.478921,10.846367],[99.153772,9.963061],[99.222399,9.239255],[99.873832,9.207862],[100.279647,8.295153],[100.459274,7.429573],[101.017328,6.856869],[101.623079,6.740622],[102.141187,6.221636],[101.814282,5.810808],[101.154219,5.691384],[101.075516,6.204867],[100.259596,6.642825],[100.085757,6.464489],[99.690691,6.848213],[99.519642,7.343454],[98.988253,7.907993],[98.503786,8.382305],[98.339662,7.794512],[98.150009,8.350007],[98.25915,8.973923],[98.553551,9.93296],[99.038121,10.960546],[99.587286,11.892763],[99.196354,12.804748],[99.212012,13.269294],[99.097755,13.827503],[98.430819,14.622028],[98.192074,15.123703],[98.537376,15.308497],[98.903348,16.177824],[98.493761,16.837836],[97.859123,17.567946],[97.375896,18.445438],[97.797783,18.62708],[98.253724,19.708203],[98.959676,19.752981],[99.543309,20.186598],[100.115988,20.41785],[100.548881,20.109238],[100.606294,19.508344],[101.282015,19.462585],[101.035931,18.408928],[101.059548,17.512497],[102.113592,18.109102],[102.413005,17.932782],[102.998706,17.961695],[103.200192,18.309632],[103.956477,18.240954],[104.716947,
2117.428859],[104.779321,16.441865],[105.589039,15.570316],[105.544338,14.723934],[105.218777,14.273212],[104.281418,14.416743],[102.988422,14.225721],[102.348099,13.394247],[102.584932,12.186595]]]},"id":"THA"},{"type":"Feature","properties":{"name":"Tajikistan"},"geometry":{"type":"Polygon","coordinates":[[[71.014198,40.244366],[70.648019,39.935754],[69.55961,40.103211],[69.464887,39.526683],[70.549162,39.604198],[71.784694,39.279463],[73.675379,39.431237],[73.928852,38.505815],[74.257514,38.606507],[74.864816,38.378846],[74.829986,37.990007],[74.980002,37.41999],[73.948696,37.421566],[73.260056,37.495257],[72.63689,37.047558],[72.193041,36.948288],[71.844638,36.738171],[71.448693,37.065645],[71.541918,37.905774],[71.239404,37.953265],[71.348131,38.258905],[70.806821,38.486282],[70.376304,38.138396],[70.270574,37.735165],[70.116578,37.588223],[69.518785,37.608997],[69.196273,37.151144],[68.859446,37.344336],[68.135562,37.023115],[67.83,37.144994],[68.392033,38.157025],[68.176025,38.901553],[67.44222,39.140144],[67.701429,39.580478],[68.536416,39.533453],[69.011633,40.086158],[69.329495,40.727824],[70.666622,40.960213],[70.45816,40.496495],[70.601407,40.218527],[71.014198,40.244366]]]},"id":"TJK"},{"type":"Feature","properties":{"name":"Turkmenistan"},"geometry":{"type":"Polygon","coordinates":[[[61.210817,35.650072],[61.123071,36.491597],[60.377638,36.527383],[59.234762,37.412988],[58.436154,37.522309],[57.330434,38.029229],[56.619366,38.121394],[56.180375,37.935127],[55.511578,37.964117],[54.800304,37.392421],[53.921598,37.198918],[53.735511,37.906136],[53.880929,38.952093],[53.101028,39.290574],[53.357808,39.975286],[52.693973,40.033629],[52.915251,40.876523],[53.858139,40.631034],[54.736845,40.951015],[54.008311,41.551211],[53.721713,42.123191],[52.91675,41.868117],[52.814689,41.135371],[52.50246,41.783316],[52.944293,42.116034],[54.079418,42.324109],[54.755345,42.043971],[55.455251,41.259859],[55.968191,41.308642],[57.096391,41.32231],[56.932215,41.826026],[57.78653,42.170553],[58.629011,42.751551],[59.976422,42.223082],[60.083341,41.425146],[60.465953,41.220327],[61.547179,41.26637],[61.882714,41.084857],[62.37426,40.053886],[63.518015,39.363257],[64.170223,38.892407],[65.215999,38.402695],[66.54615,37.974685],[66.518607,37.362784],[66.217385,37.39379],[65.745631,37.661164],[65.588948,37.305217],[64.746105,37.111818],[64.546479,36.312073],[63.982896,36.007957],[63.193538,35.857166],[62.984662,35.404041],[62.230651,35.270664],[61.210817,35.650072]]]},"id":"TKM"},{"type":"Feature","properties":{"name":"East Timor"},"geometry":{"type":"Polygon","coordinates":[[[124.968682,-8.89279],[125.086246,-8.656887],[125.947072,-8.432095],[126.644704,-8.398247],[126.957243,-8.273345],[127.335928,-8.397317],[126.967992,-8.668256],[125.925885,-9.106007],[125.08852,-9.393173],[125.07002,-9.089987],[124.968682,-8.89279]]]},"id":"TLS"},{"type":"Feature","properties":{"name":"Trinidad and Tobago"},"geometry":{"type":"Polygon","coordinates":[[[-61.68,10.76],[-61.105,10.89],[-60.895,10.855],[-60.935,10.11],[-61.77,10],[-61.95,10.09],[-61.66,10.365],[-61.68,10.76]]]},"id":"TTO"},{"type":"Feature","properties":{"name":"Tunisia"},"geometry":{"type":"Polygon","coordinates":[[[9.48214,30.307556],[9.055603,32.102692],[8.439103,32.506285],[8.430473,32.748337],[7.612642,33.344115],[7.524482,34.097376],[8.140981,34.655146],[8.376368,35.479876],[8.217824,36.433177],[8.420964,36.946427],[9.509994,37.349994],[10.210002,37.230002],[10.18065,36.724038],[11.028867,37.092103],[11.100026,36.899996],[10.600005,36.41],[10.593287,35.947444],[10.939519,35.698984],[10.807847,34.833507],[10.149593,34.330773],[10.339659,33.785742],[10.856836,33.76874],[11.108501,33.293343],[11.488787,33.136996],[11.432253,32.368903],[10.94479,32.081815],[10.636901,31.761421],[9.950225,31.37607],[10.056575,30.961831],[9.970017,30.539325],[9.48214,30.307556]]]},"id":"TUN"},{"type":"Feature","properties":{"name":"Turkey"},"geometry":{"type":"MultiPolygon","coordinates":[[[[36.913127,41.335358],[38.347665,40.948586],[39.512607,41.102763],[40.373433,41.013673],[41.554084,41.535656],[42.619549,41.583173],[43.582746,41.092143],[43.752658,40.740201],[43.656436,40.253564],[44.400009,40.005],[44.79399,39.713003],[44.109225,39.428136],[44.421403,38.281281],[44.225756,37.971584],[44.772699,37.170445],[44.293452,37.001514],[43.942259,37.256228],[42.779126,37.385264],[42.349591,37.229873],[41.212089,37.074352],[40.673259,37.091276],[39.52258,36.716054],[38.699891,36.712927],[38.167727,36.90121],[37.066761,36.623036],[36.739494,36.81752],[36.685389,36.259699],[36.41755,36.040617],[36.149763,35.821535],[35.782085,36.274995],[36.160822,36.650606],[35.550936,36.565443],[34.714553,36.795532],[34.026895,36.21996],[32.509158,36.107564],[31.699595,36.644275],[30.621625,36.677865],[30.391096,36.262981],[29.699976,36.144357],[28.732903,36.676831],[27.641187,36.658822],[27.048768,37.653361],[26.318218,38.208133],[26.8047,38.98576],[26.170785,39.463612],[27.28002,40.420014],[28.819978,40.460011],[29.240004,41.219991],[31.145934,41.087622],[32.347979,41.736264],[33.513283,42.01896],[35.167704,42.040225],[36.913127,41.335358]]],[[[27.192377,40.690566],[26.358009,40.151994],[26.043351,40.617754],[26.056942,40.824123],[26.294602,40.936261],[26.604196,41.562115],[26.117042,41.826905],[27.135739,42.141485],[27.99672,42.007359],[28.115525,41.622886],[28.988443,41.299934],[28.806438,41.054962],[27.619017,40.999823],[27.192377,40.690566]]]]},"id":"TUR"},{"type":"Feature","properties":{"name":"Taiwan"},"geometry":{"type":"Polygon","coordinates":[[[121.777818,24.394274],[121.175632,22.790857],[120.74708,21.970571],[120.220083,22.814861],[120.106189,23.556263],[120.69468,24.538451],[121.495044,25.295459],[121.951244,24.997596],[121.777818,24.394274]]]},"id":"TWN"},{"type":"Feature","properties":{"name":"United Republic of Tanzania"},"geometry":{"type":"Polygon","coordinates":[[[33.903711,-0.95],[34.07262,-1.05982],[37.69869,-3.09699],[37.7669,-3.67712],[39.20222,-4.67677],[38.74054,-5.90895],[38.7997
217,-6.47566],[39.44,-6.84],[39.47,-7.1],[39.19469,-7.7039],[39.25203,-8.00781],[39.18652,-8.48551],[39.53574,-9.11237],[39.9496,-10.0984],[40.31659,-10.3171],[39.521,-10.89688],[38.427557,-11.285202],[37.82764,-11.26879],[37.47129,-11.56876],[36.775151,-11.594537],[36.514082,-11.720938],[35.312398,-11.439146],[34.559989,-11.52002],[34.28,-10.16],[33.940838,-9.693674],[33.73972,-9.41715],[32.759375,-9.230599],[32.191865,-8.930359],[31.556348,-8.762049],[31.157751,-8.594579],[30.74,-8.34],[30.2,-7.08],[29.62,-6.52],[29.419993,-5.939999],[29.519987,-5.419979],[29.339998,-4.499983],[29.753512,-4.452389],[30.11632,-4.09012],[30.50554,-3.56858],[30.75224,-3.35931],[30.74301,-3.03431],[30.52766,-2.80762],[30.46967,-2.41383],[30.758309,-2.28725],[30.816135,-1.698914],[30.419105,-1.134659],[30.76986,-1.01455],[31.86617,-1.02736],[33.903711,-0.95]]]},"id":"TZA"},{"type":"Feature","properties":{"name":"Uganda"},"geometry":{"type":"Polygon","coordinates":[[[31.86617,-1.02736],[30.76986,-1.01455],[30.419105,-1.134659],[29.821519,-1.443322],[29.579466,-1.341313],[29.587838,-0.587406],[29.8195,-0.2053],[29.875779,0.59738],[30.086154,1.062313],[30.468508,1.583805],[30.85267,1.849396],[31.174149,2.204465],[30.77332,2.33989],[30.83385,3.50917],[31.24556,3.7819],[31.88145,3.55827],[32.68642,3.79232],[33.39,3.79],[34.005,4.249885],[34.47913,3.5556],[34.59607,3.05374],[35.03599,1.90584],[34.6721,1.17694],[34.18,0.515],[33.893569,0.109814],[33.903711,-0.95],[31.86617,-1.02736]]]},"id":"UGA"},{"type":"Feature","properties":{"name":"Ukraine"},"geometry":{"type":"Polygon","coordinates":[[[31.785998,52.101678],[32.159412,52.061267],[32.412058,52.288695],[32.715761,52.238465],[33.7527,52.335075],[34.391731,51.768882],[34.141978,51.566413],[34.224816,51.255993],[35.022183,51.207572],[35.377924,50.773955],[35.356116,50.577197],[36.626168,50.225591],[37.39346,50.383953],[38.010631,49.915662],[38.594988,49.926462],[40.069058,49.601055],[40.080789,49.30743],[39.674664,48.783818],[39.895632,48.232405],[39.738278,47.898937],[38.770585,47.825608],[38.255112,47.5464],[38.223538,47.10219],[37.425137,47.022221],[36.759855,46.6987],[35.823685,46.645964],[34.962342,46.273197],[35.020788,45.651219],[35.510009,45.409993],[36.529998,45.46999],[36.334713,45.113216],[35.239999,44.939996],[33.882511,44.361479],[33.326421,44.564877],[33.546924,45.034771],[32.454174,45.327466],[32.630804,45.519186],[33.588162,45.851569],[33.298567,46.080598],[31.74414,46.333348],[31.675307,46.706245],[30.748749,46.5831],[30.377609,46.03241],[29.603289,45.293308],[29.149725,45.464925],[28.679779,45.304031],[28.233554,45.488283],[28.485269,45.596907],[28.659987,45.939987],[28.933717,46.25883],[28.862972,46.437889],[29.072107,46.517678],[29.170654,46.379262],[29.759972,46.349988],[30.024659,46.423937],[29.83821,46.525326],[29.908852,46.674361],[29.559674,46.928583],[29.415135,47.346645],[29.050868,47.510227],[29.122698,47.849095],[28.670891,48.118149],[28.259547,48.155562],[27.522537,48.467119],[26.857824,48.368211],[26.619337,48.220726],[26.19745,48.220881],[25.945941,47.987149],[25.207743,47.891056],[24.866317,47.737526],[24.402056,47.981878],[23.760958,47.985598],[23.142236,48.096341],[22.710531,47.882194],[22.64082,48.15024],[22.085608,48.422264],[22.280842,48.825392],[22.558138,49.085738],[22.776419,49.027395],[22.51845,49.476774],[23.426508,50.308506],[23.922757,50.424881],[24.029986,50.705407],[23.527071,51.578454],[24.005078,51.617444],[24.553106,51.888461],[25.327788,51.910656],[26.337959,51.832289],[27.454066,51.592303],[28.241615,51.572227],[28.617613,51.427714],[28.992835,51.602044],[29.254938,51.368234],[30.157364,51.416138],[30.555117,51.319503],[30.619454,51.822806],[30.927549,52.042353],[31.785998,52.101678]]]},"id":"UKR"},{"type":"Feature","properties":{"name":"Uruguay"},"geometry":{"type":"Polygon","coordinates":[[[-57.625133,-30.216295],[-56.976026,-30.109686],[-55.973245,-30.883076],[-55.60151,-30.853879],[-54.572452,-31.494511],[-53.787952,-32.047243],[-53.209589,-32.727666],[-53.650544,-33.202004],[-53.373662,-33.768378],[-53.806426,-34.396815],[-54.935866,-34.952647],[-55.67409,-34.752659],[-56.215297,-34.859836],[-57.139685,-34.430456],[-57.817861,-34.462547],[-58.427074,-33.909454],[-58.349611,-33.263189],[-58.132648,-33.040567],[-58.14244,-32.044504],[-57.874937,-31.016556],[-57.625133,-30.216295]]]},"id":"URY"},{"type":"Feature","properties":{"name":"USA"},"geometry":{"type":"MultiPolygon","coordinates":[[[[-155.54211,19.08348],[-155.68817,18.91619],[-155.93665,19.05939],[-155.90806,19.33888],[-156.07347,
2119.70294],[-156.02368,19.81422],[-155.85008,19.97729],[-155.91907,20.17395],[-155.86108,20.26721],[-155.78505,20.2487],[-155.40214,20.07975],[-155.22452,19.99302],[-155.06226,19.8591],[-154.80741,19.50871],[-154.83147,19.45328],[-155.22217,19.23972],[-155.54211,19.08348]]],[[[-156.07926,20.64397],[-156.41445,20.57241],[-156.58673,20.783],[-156.70167,20.8643],[-156.71055,20.92676],[-156.61258,21.01249],[-156.25711,20.91745],[-155.99566,20.76404],[-156.07926,20.64397]]],[[[-156.75824,21.17684],[-156.78933,21.06873],[-157.32521,21.09777],[-157.25027,21.21958],[-156.75824,21.17684]]],[[[-157.65283,21.32217],[-157.70703,21.26442],[-157.7786,21.27729],[-158.12667,21.31244],[-158.2538,21.53919],[-158.29265,21.57912],[-158.0252,21.71696],[-157.94161,21.65272],[-157.65283,21.32217]]],[[[-159.34512,21.982],[-159.46372,21.88299],[-159.80051,22.06533],[-159.74877,22.1382],[-159.5962,22.23618],[-159.36569,22.21494],[-159.34512,21.982]]],[[[-94.81758,49.38905],[-94.64,48.84],[-94.32914,48.67074],[-93.63087,48.60926],[-92.61,48.45],[-91.64,48.14],[-90.83,48.27],[-89.6,48.01],[-89.272917,48.019808],[-88.378114,48.302918],[-87.439793,47.94],[-86.461991,47.553338],[-85.652363,47.220219],[-84.87608,46.900083],[-84.779238,46.637102],[-84.543749,46.538684],[-84.6049,46.4396],[-84.3367,46.40877],[-84.14212,46.512226],[-84.091851,46.275419],[-83.890765,46.116927],[-83.616131,46.116927],[-83.469551,45.994686],[-83.592851,45.816894],[-82.550925,45.347517],[-82.337763,44.44],[-82.137642,43.571088],[-82.43,42.98],[-82.9,42.43],[-83.12,42.08],[-83.142,41.975681],[-83.02981,41.832796],[-82.690089,41.675105],[-82.439278,41.675105],[-81.277747,42.209026],[-80.247448,42.3662],[-78.939362,42.863611],[-78.92,42.965],[-79.01,43.27],[-79.171674,43.466339],[-78.72028,43.625089],[-77.737885,43.629056],[-76.820034,43.628784],[-76.5,44.018459],[-76.375,44.09631],[-75.31821,44.81645],[-74.867,45.00048],[-73.34783,45.00738],[-71.50506,45.0082],[-71.405,45.255],[-71.08482,45.30524],[-70.66,45.46],[-70.305,45.915],[-69.99997,46.69307],[-69.237216,47.447781],[-68.905,47.185],[-68.23444,47.35486],[-67.79046,47.06636],[-67.79134,45.70281],[-67.13741,45.13753],[-66.96466,44.8097],[-68.03252,44.3252],[-69.06,43.98],[-70.11617,43.68405],[-70.645476,43.090238],[-70.81489,42.8653],[-70.825,42.335],[-70.495,41.805],[-70.08,41.78],[-70.185,42.145],[-69.88497,41.92283],[-69.96503,41.63717],[-70.64,41.475],[-71.12039,41.49445],[-71.86,41.32],[-72.295,41.27],[-72.87643,41.22065],[-73.71,40.931102],[-72.24126,41.11948],[-71.945,40.93],[-73.345,40.63],[-73.982,40.628],[-73.952325,40.75075],[-74.25671,40.47351],[-73.96244,40.42763],[-74.17838,39.70926],[-74.90604,38.93954],[-74.98041,39.1964],[-75.20002,39.24845],[-75.52805,39.4985],[-75.32,38.96],[-75.071835,38.782032],[-75.05673,38.40412],[-75.37747,38.01551],[-75.94023,37.21689],[-76.03127,37.2566],[-75.72205,37.93705],[-76.23287,38.319215],[-76.35,39.15],[-76.542725,38.717615],[-76.32933,38.08326],[-76.989998,38.239992],[-76.30162,37.917945],[-76.25874,36.9664],[-75.9718,36.89726],[-75.86804,36.55125],[-75.72749,35.55074],[-76.36318,34.80854],[-77.397635,34.51201],[-78.05496,33.92547],[-78.55435,33.86133],[-79.06067,33.49395],[-79.20357,33.15839],[-80.301325,32.509355],[-80.86498,32.0333],[-81.33629,31.44049],[-81.49042,30.72999],[-81.31371,30.03552],[-80.98,29.18],[-80.535585,28.47213],[-80.53,28.04],[-80.056539,26.88],[-80.088015,26.205765],[-80.13156,25.816775],[-80.38103,25.20616],[-80.68,25.08],[-81.17213,25.20126],[-81.33,25.64],[-81.71,25.87],[-82.24,26.73],[-82.70515,27.49504],[-82.85526,27.88624],[-82.65,28.55],[-82.93,29.1],[-83.70959,29.93656],[-84.1,30.09],[-85.10882,29.63615],[-85.28784,29.68612],[-85.7731,30.15261],[-86.4,30.4],[-87.53036,30.27433],[-88.41782,30.3849],[-89.18049,30.31598],[-89.593831,30.159994],[-89.413735,29.89419],[-89.43,29.48864],[-89.21767,29.29108],[-89.40823,29.15961],[-89.77928,29.30714],[-90.15463,29.11743],[-90.880225,29.148535],[-91.626785,29.677],[-92.49906,29.5523],[-93.22637,29.78375],[-93.84842,29.71363],[-94.69,29.48],[-95.60026,28.73863],[-96.59404,28.30748],[-97.14,27.83],[-97.37,27.38],[-97.38,26.69],[-97.33,26.21],[-97.14,25.87],[-97.53,25.84],[-98.24,26.06],[-99.02,26.37],[-99.3,26.84],[-99.52,27.54],[-100.11,28.11],[-100.45584,28.69612],[-100.9576,29.38071],[-101.6624,29.7793],[-102.48,29.76],[-103.11,28.97],[-103.94,29.27],[-104.45697,29.57196],[
21-104.70575,30.12173],[-105.03737,30.64402],[-105.63159,31.08383],[-106.1429,31.39995],[-106.50759,31.75452],[-108.24,31.754854],[-108.24194,31.34222],[-109.035,31.34194],[-111.02361,31.33472],[-113.30498,32.03914],[-114.815,32.52528],[-114.72139,32.72083],[-115.99135,32.61239],[-117.12776,32.53534],[-117.295938,33.046225],[-117.944,33.621236],[-118.410602,33.740909],[-118.519895,34.027782],[-119.081,34.078],[-119.438841,34.348477],[-120.36778,34.44711],[-120.62286,34.60855],[-120.74433,35.15686],[-121.71457,36.16153],[-122.54747,37.55176],[-122.51201,37.78339],[-122.95319,38.11371],[-123.7272,38.95166],[-123.86517,39.76699],[-124.39807,40.3132],[-124.17886,41.14202],[-124.2137,41.99964],[-124.53284,42.76599],[-124.14214,43.70838],[-124.020535,44.615895],[-123.89893,45.52341],[-124.079635,46.86475],[-124.39567,47.72017],[-124.68721,48.184433],[-124.566101,48.379715],[-123.12,48.04],[-122.58736,47.096],[-122.34,47.36],[-122.5,48.18],[-122.84,49],[-120,49],[-117.03121,49],[-116.04818,49],[-113,49],[-110.05,49],[-107.05,49],[-104.04826,48.99986],[-100.65,49],[-97.22872,49.0007],[-95.15907,49],[-95.15609,49.38425],[-94.81758,49.38905]]],[[[-153.006314,57.115842],[-154.00509,56.734677],[-154.516403,56.992749],[-154.670993,57.461196],[-153.76278,57.816575],[-153.228729,57.968968],[-152.564791,57.901427],[-152.141147,57.591059],[-153.006314,57.115842]]],[[[-165.579164,59.909987],[-166.19277,59.754441],[
21-166.848337,59.941406],[-167.455277,60.213069],[-166.467792,60.38417],[-165.67443,60.293607],[-165.579164,59.909987]]],[[[-171.731657,63.782515],[-171.114434,63.592191],[-170.491112,63.694975],[-169.682505,63.431116],[-168.689439,63.297506],[-168.771941,63.188598],[-169.52944,62.976931],[-170.290556,63.194438],[-170.671386,63.375822],[-171.553063,63.317789],[-171.791111,63.405846],[-171.731657,63.782515]]],[[[-155.06779,71.147776],[-154.344165,70.696409],[-153.900006,70.889989],[-152.210006,70.829992],[-152.270002,70.600006],[-150.739992,70.430017],[-149.720003,70.53001],[-147.613362,70.214035],[-145.68999,70.12001],[-144.920011,69.989992],[-143.589446,70.152514],[-142.07251,69.851938],[-140.985988,69.711998],[-140.985988,69.711998],[-140.992499,66.000029],[-140.99777,60.306397],[-140.012998,60.276838],[-139.039,60.000007],[-138.34089,59.56211],[-137.4525,58.905],[-136.47972,59.46389],[-135.47583,59.78778],[-134.945,59.27056],[-134.27111,58.86111],[-133.355549,58.410285],[-132.73042,57.69289],[-131.70781,56.55212],[-130.00778,55.91583],[-129.979994,55.284998],[-130.53611,54.802753],[-131.085818,55.178906],[-131.967211,55.497776],[-132.250011,56.369996],[-133.539181,57.178887],[-134.078063,58.123068],[-135.038211,58.187715],[-136.628062,58.212209],[-137.800006,58.499995],[-139.867787,59.537762],[-140.825274,59.727517],[-142.574444,60.084447],[-143.958881,59.99918],[-145.925557,60.45861],[-147.114374,60.884656],[-148.224306,60.672989],[-148.018066,59.978329],[-148.570823,59.914173],[-149.727858,59.705658],[-150.608243,59.368211],[-151.716393,59.155821],[-151.859433,59.744984],[-151.409719,60.725803],[-150.346941,61.033588],[-150.621111,61.284425],[-151.895839,60.727198],[-152.57833,60.061657],[-154.019172,59.350279],[-153.287511,58.864728],[-154.232492,58.146374],[-155.307491,57.727795],[-156.308335,57.422774],[-156.556097,56.979985],[-158.117217,56.463608],[-158.433321,55.994154],[-159.603327,55.566686],[-160.28972,55.643581],[-161.223048,55.364735],[-162.237766,55.024187],[-163.069447,54.689737],[-164.785569,54.404173],[-164.942226,54.572225],[-163.84834,55.039431],[-162.870001,55.348043],[-161.804175,55.894986],[-160.563605,56.008055],[-160.07056,56.418055],[-158.684443,57.016675],[-158.461097,57.216921],[-157.72277,57.570001],[-157.550274,58.328326],[-157.041675,58.918885],[-158.194731,58.615802],[-158.517218,58.787781],[-159.058606,58.424186],[-159.711667,58.93139],[-159.981289,58.572549],[-160.355271,59.071123],[-161.355003,58.670838],[-161.968894,58.671665],[-162.054987,59.266925],[-161.874171,59.633621],[-162.518059,59.989724],[-163.818341,59.798056],[-164.662218,60.267484],[-165.346388,60.507496],[-165.350832,61.073895],[-166.121379,61.500019],[-165.734452,62.074997],[-164.919179,62.633076],[-164.562508,63.146378],[-163.753332,63.219449],[-163.067224,63.059459],[-162.260555,63.541936],[-161.53445,63.455817],[-160.772507,63.766108],[-160.958335,64.222799],[-161.518068,64.402788],[-160.777778,64.788604],[-161.391926,64.777235],[-162.45305,64.559445],[-162.757786,64.338605],[-163.546394,64.55916],[-164.96083,64.446945],[-166.425288,64.686672],[-166.845004,65.088896],[-168.11056,65.669997],[-166.705271,66.088318],[-164.47471,66.57666],[-163.652512,66.57666],[-163.788602,66.077207],[-161.677774,66.11612],[-162.489715,66.735565],[-163.719717,67.116395],[-164.430991,67.616338],[-165.390287,68.042772],[-166.764441,68.358877],[-166.204707,68.883031],[-164.430811,68.915535],[-163.168614,69.371115],[-162.930566,69.858062],[-161.908897,70.33333],[-160.934797,70.44769],[-159.039176,70.891642],[-158.119723,70.824721],[-156.580825,71.357764],[-155.06779,71.147776]]]]},"id":"USA"},{"type":"Feature","properties":{"name":"Uzbekistan"},"geometry":{"type":"Polygon","coordinates":[[[66.518607,37.362784],[66.54615,37.974685],[65.215999,38.402695],[64.170223,38.892407],[63.518015,39.363257],[62.37426,40.053886],[61.882714,41.084857],[61.547179,41.26637],[60.465953,41.220327],[60.083341,41.425146],[59.976422,42.223082],[58.629011,42.751551],[57.78653,42.170553],[56.932215,41.826026],[57.096391,41.32231],[55.968191,41.308642],[55.928917,44.995858],[58.503127,45.586804],[58.689989,45.500014],[60.239972,44.784037],[61.05832,44.405817],[62.0133,43.504477],[63.185787,43.650075],[64.900824,43.728081],[66.098012,42.99766],[66.023392,41.994646],[66.510649,41.987644],[66.714047,41.168444],[67.985856,41.135991],[68.259896,40.662325],[68.632483,40.668681],[69.070027,41.384244],[70.388965,42.081308],[70.962315,42.266154],[71.259248,42.167711],[70.420022,41.519998],[71.157859,41.143587],[71.870115,41.3929],[73.055417,40.866033],[71.774875,40.145844],[71.014198,40.244366],[70.601407,40.218527],[70.45816,40.496495],[70.666622,40.9
2160213],[69.329495,40.727824],[69.011633,40.086158],[68.536416,39.533453],[67.701429,39.580478],[67.44222,39.140144],[68.176025,38.901553],[68.392033,38.157025],[67.83,37.144994],[67.075782,37.356144],[66.518607,37.362784]]]},"id":"UZB"},{"type":"Feature","properties":{"name":"Venezuela"},"geometry":{"type":"Polygon","coordinates":[[[-71.331584,11.776284],[-71.360006,11.539994],[-71.94705,11.423282],[-71.620868,10.96946],[-71.633064,10.446494],[-72.074174,9.865651],[-71.695644,9.072263],[-71.264559,9.137195],[-71.039999,9.859993],[-71.350084,10.211935],[-71.400623,10.968969],[-70.155299,11.375482],[-70.293843,11.846822],[-69.943245,12.162307],[-69.5843,11.459611],[-68.882999,11.443385],[-68.233271,10.885744],[-68.194127,10.554653],[-67.296249,10.545868],[-66.227864,10.648627],[-65.655238,10.200799],[-64.890452,10.077215],[-64.329479,10.389599],[-64.318007,10.641418],[-63.079322,10.701724],[-61.880946,10.715625],[-62.730119,10.420269],[-62.388512,9.948204],[-61.588767,9.873067],[-60.830597,9.38134],[-60.671252,8.580174],[-60.150096,8.602757],[-59.758285,8.367035],[-60.550588,7.779603],[-60.637973,7.415],[-60.295668,7.043911],[-60.543999,6.856584],[-61.159336,6.696077],[-61.139415,6.234297],[-61.410303,5.959068],[-60.733574,5.200277],[-60.601179,4.918098],[-60.966893,4.536468],[-62.08543,4.162124],[-62.804533,4.006965],[-63.093198,3.770571],[-63.888343,4.02053],[-64.628659,4.148481],[-64.816064,4.056445],[-64.368494,3.79721],[-64.408828,3.126786],[
21-64.269999,2.497006],[-63.422867,2.411068],[-63.368788,2.2009],[-64.083085,1.916369],[-64.199306,1.492855],[-64.611012,1.328731],[-65.354713,1.095282],[-65.548267,0.789254],[-66.325765,0.724452],[-66.876326,1.253361],[-67.181294,2.250638],[-67.447092,2.600281],[-67.809938,2.820655],[-67.303173,3.318454],[-67.337564,3.542342],[-67.621836,3.839482],[-67.823012,4.503937],[-67.744697,5.221129],[-67.521532,5.55687],[-67.34144,6.095468],[-67.695087,6.267318],[-68.265052,6.153268],[-68.985319,6.206805],[-69.38948,6.099861],[-70.093313,6.960376],[-70.674234,7.087785],[-71.960176,6.991615],[-72.198352,7.340431],[-72.444487,7.423785],[-72.479679,7.632506],[-72.360901,8.002638],[-72.439862,8.405275],[-72.660495,8.625288],[-72.78873,9.085027],[-73.304952,9.152],[-73.027604,9.73677],[-72.905286,10.450344],[-72.614658,10.821975],[-72.227575,11.108702],[-71.973922,11.608672],[-71.331584,11.776284]]]},"id":"VEN"},{"type":"Feature","properties":{"name":"Vietnam"},"geometry":{"type":"Polygon","coordinates":[[[108.05018,21.55238],[106.715068,20.696851],[105.881682,19.75205],[105.662006,19.058165],[106.426817,18.004121],[107.361954,16.697457],[108.269495,16.079742],[108.877107,15.276691],[109.33527,13.426028],[109.200136,11.666859],[108.36613,11.008321],[107.220929,10.364484],[106.405113,9.53084],[105.158264,8.59976],[104.795185,9.241038],[105.076202,9.918491],[104.334335,10.486544],[105.199915,10.88931],[106.24967,10.961812],[105.810524,11.567615],[107.491403,12.337206],[107.614548,13.535531],[107.382727,14.202441],[107.564525,15.202173],[107.312706,15.908538],[106.556008,16.604284],[105.925762,17.485315],[105.094598,18.666975],[103.896532,19.265181],[104.183388,19.624668],[104.822574,19.886642],[104.435,20.758733],[103.203861,20.766562],[102.754896,21.675137],[102.170436,22.464753],[102.706992,22.708795],[103.504515,22.703757],[104.476858,22.81915],[105.329209,23.352063],[105.811247,22.976892],[106.725403,22.794268],[106.567273,22.218205],[107.04342,21.811899],[108.05018,21.55238]]]},"id":"VNM"},{"type":"Feature","properties":{"name":"Vanuatu"},"geometry":{"type":"MultiPolygon","coordinates":[[[[167.844877,-16.466333],[167.515181,-16.59785],[167.180008,-16.159995],[167.216801,-15.891846],[167.844877,-16.466333]]],[[[167.107712,-14.93392],[167.270028,-15.740021],[167.001207,-15.614602],[166.793158,-15.668811],[166.649859,-15.392704],[166.629137,-14.626497],[167.107712,-14.93392]]]]},"id":"VUT"},{"type":"Feature","properties":{"name":"West Bank"},"geometry":{"type":"Polygon","coordinates":[[[35.545665,32.393992],[35.545252,31.782505],[35.397561,31.489086],[34.927408,31.353435],[34.970507,31.616778],[35.225892,31.754341],[34.974641,31.866582],[35.18393,32.532511],[35.545665,32.393992]]]},"id":"PSE"},{"type":"Feature","properties":{"name":"Yemen"},"geometry":{"type":"Polygon","coordinates":[[[53.108573,16.651051],[52.385206,16.382411],[52.191729,15.938433],[52.168165,15.59742],[51.172515,15.17525],[49.574576,14.708767],[48.679231,14.003202],[48.238947,13.94809],[47.938914,14.007233],[47.354454,13.59222],[46.717076,13.399699],[45.877593,13.347764],[45.62505,13.290946],[45.406459,13.026905],[45.144356,12.953938],[44.989533,12.699587],[44.494576,12.721653],[44.175113,12.58595],[43.482959,12.6368],[43.222871,13.22095],[43.251448,13.767584],[43.087944,14.06263],[42.892245,14.802249],[42.604873,15.213335],[42.805015,15.261963],[42.702438,15.718886],[42.823671,15.911742],[42.779332,16.347891],[43.218375,16.66689],[43.115798,17.08844],[43.380794,17.579987],[43.791519,17.319977],[44.062613,17.410359],[45.216651,17.433329],[45.399999,17.333335],[46.366659,17.233315],[46.749994,17.283338],[47.000005,16.949999],[47.466695,17.116682],[48.183344,18.166669],[49.116672,18.616668],[52.00001,19.000003],[52.782184,17.349742],[53.108573,16.651051]]]},"id":"YEM"},{"type":"Feature","properties":{"name":"South Africa"},"geometry":{"type":"Polygon","coordinates":[[[31.521001,-29.257387],[31.325561,-29.401978],[30.901763,-29.909957],[30.622813,-30.423776],[30.055716,-31.140269],[28.925553,-32.172041],[28.219756,-32.771953],[27.464608,-33.226964],[26.419452,-33.61495],[25.909664,-33.66704],[25.780628,-33.944646],[25.172862,-33.796851],[24.677853,-33.987176],[23.594043,-33.794474],[22.988189,-33.916431],[22.574157,-33.864083],[21.542799,-34.258839],[20.689053,-34.417175],[20.071261,-34.795137],[19.616405,-34.819166],[19.193278,-34.462599],[18.855315,-34.444306],[18.424643,-33.997873],[18.377411,-34.136521],[18.244499,-33.867752],[18.25008,-33.281431],[17.92519,-32.611291],[18.24791,-32.429131],[18.221762,-31.661633],[17.566918,-30.725721],[17.064416,-29.878641],[17.062918,-29.875954],[16.344977,-28.576705],[16.824017,-28.082162],[17.218929,-28.355943],[17.387497,-28.783514],[17.836152,-28.856378],[18.464899,-29.045462],[19.002127,-28.972443],[19.894734,-28.461105],[19.895768,-24.76779],[20.165726,-24.917962],[20.758609,-25.868136],[20.66647,-26.477453],[20.889
21609,-26.828543],[21.605896,-26.726534],[22.105969,-26.280256],[22.579532,-25.979448],[22.824271,-25.500459],[23.312097,-25.26869],[23.73357,-25.390129],[24.211267,-25.670216],[25.025171,-25.71967],[25.664666,-25.486816],[25.765849,-25.174845],[25.941652,-24.696373],[26.485753,-24.616327],[26.786407,-24.240691],[27.11941,-23.574323],[28.017236,-22.827754],[29.432188,-22.091313],[29.839037,-22.102216],[30.322883,-22.271612],[30.659865,-22.151567],[31.191409,-22.25151],[31.670398,-23.658969],[31.930589,-24.369417],[31.752408,-25.484284],[31.837778,-25.843332],[31.333158,-25.660191],[31.04408,-25.731452],[30.949667,-26.022649],[30.676609,-26.398078],[30.685962,-26.743845],[31.282773,-27.285879],[31.86806,-27.177927],[32.071665,-26.73382],[32.83012,-26.742192],[32.580265,-27.470158],[32.462133,-28.301011],[32.203389,-28.752405],[31.521001,-29.257387]],[[28.978263,-28.955597],[28.5417,-28.647502],[28.074338,-28.851469],[27.532511,-29.242711],[26.999262,-29.875954],[27.749397,-30.645106],[28.107205,-30.545732],[28.291069,-30.226217],[28.8484,-30.070051],[29.018415,-29.743766],[29.325166,-29.257387],[28.978263,-28.955597]]]},"id":"ZAF"},{"type":"Feature","properties":{"name":"Zambia"},"geometry":{"type":"Polygon","coordinates":[[[32.759375,-9.230599],[33.231388,-9.676722],[33.485688,-10.525559],[33.31531,-10.79655],[33.114289,-11.607198],[33.306422,-12.435778],[32.991764,-12.783871],[32.688165,-13.712858],[33.214025,-13.97186],[30.179481,-14.796099],[30.274256,-15.507787],[29.516834,-15.644678],[28.947463,-16.043051],[28.825869,-16.389749],[28.467906,-16.4684],[27.598243,-17.290831],[27.044427,-17.938026],[26.706773,-17.961229],[26.381935,-17.846042],[25.264226,-17.73654],[25.084443,-17.661816],[25.07695,-17.578823],[24.682349,-17.353411],[24.033862,-17.295843],[23.215048,-17.523116],[22.562478,-16.898451],[21.887843,-16.08031],[21.933886,-12.898437],[24.016137,-12.911046],[23.930922,-12.565848],[24.079905,-12.191297],[23.904154,-11.722282],[24.017894,-11.237298],[23.912215,-10.926826],[24.257155,-10.951993],[24.314516,-11.262826],[24.78317,-11.238694],[25.418118,-11.330936],[25.75231,-11.784965],[26.553088,-11.92444],[27.16442,-11.608748],[27.388799,-12.132747],[28.155109,-12.272481],[28.523562,-12.698604],[28.934286,-13.248958],[29.699614,-13.257227],[29.616001,-12.178895],[29.341548,-12.360744],[28.642417,-11.971569],[28.372253,-11.793647],[28.49607,-10.789884],[28.673682,-9.605925],[28.449871,-9.164918],[28.734867,-8.526559],[29.002912,-8.407032],[30.346086,-8.238257],[30.740015,-8.340007],[31.157751,-8.594579],[31.556348,-8.762049],[32.191865,-8.930359],[32.759375,-9.230599]]]},"id":"ZMB"},{"type":"Feature","properties":{"name":"Zimbabwe"},"geometry":{"type":"Polygon","coordinates":[[[31.191409,-22.25151],[30.659865,-22.151567],[30.322883,-22.271612],[29.839037,-22.102216],[29.432188,-22.091313],[28.794656,-21.639454],[28.02137,-21.485975],[27.727228,-20.851802],[27.724747,-20.499059],[27.296505,-20.39152],[26.164791,-19.293086],[25.850391,-18.714413],[25.649163,-18.536026],[25.264226,-17.73654],[26.381935,-17.846042],[26.706773,-17.961229],[27.044427,-17.938026],[27.598243,-17.290831],[28.467906,-16.4684],[28.825869,-16.389749],[28.947463,-16.043051],[29.516834,-15.644678],[30.274256,-15.507787],[30.338955,-15.880839],[31.173064,-15.860944],[31.636498,-16.07199],[31.852041,-16.319417],[32.328239,-16.392074],[32.847639,-16.713398],[32.849861,-17.979057],[32.654886,-18.67209],[32.611994,-19.419383],[32.772708,-19.715592],[32.659743,-20.30429],[32.508693,-20.395292],[32.244988,-21.116489],[31.191409,-22.25151]]]},"id":"ZWE"}]}')},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(54),s=n(80),a=n(83),c=n(81),l=n(84),u=n(14),h=function(t){function e(e,n){var r=t.call(this,e,n)||this;r.legend=new s.PieChartLegend(r.state);var i=r.svg.append("foreignObject");return r.legend.create(i),r.pieLayer=new c.PieLayer(r.state),r.pieLayer.create(r.mainGroup,r.mainGroup.append("g")),r.pieLayer.onCategoryMouseEnter=function(t){r.tooltip.show(t)},r.pieLayer.onCategoryMouseLeave=function(){r.tooltip.hide()},r.state.onHoverChange=function(){r.pieLayer.updateHovers()},r.state.onClickChange=function(){r.pieLayer.updateExpands()},r.tooltip=new l.PieChartTooltip(r.state),r.tooltip.create(r.mainGroup.append("g")),r}return i(e,t),e.prototype.createState=function(t){return new a.PieChartState(t,this.getOuterSize())},e.prototype.update=function(){t.prototype.update.call(this),this.div.classed(u.mobile,this.state.isMobile),this.mainGroup.attr("transform","translate(0, 0)"),this.legend.update(),this.pieLayer.update(
21)},e}(o.Chart);e.PieChart=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(51),i=n(81),o=n(56),s=n(14);e.pieLegendWidth=220;var a=function(){function t(t){var n=this;this.create=function(t){n.outerContainer=t.attr("width",e.pieLegendWidth).attr("class",s.PieLegend);var r=n.state.theme;r&&r.roundingStyle&&n.outerContainer.classed(s[r.roundingStyle],!0),n.container=n.outerContainer.append("xhtml:div").style("height",n.state.outerSize.height+"px").attr("class",s.legendContainer),n.update()},this.handleClickItem=function(t,e){n.state.setClickedCategory(t.category)},this.handleCircleClick=function(t,e){var r=n.state.onCategoryClicked,i=n.state.series[0].id;r&&void 0!==i&&r(i,t.category,e)},this.handleMouseOver=function(t,e){n.state.setHoveredCategory(t.category)},this.handleMouseOut=function(t,e){n.state.getHoveredCategory()===t.category&&n.state.setHoveredCategory(void 0)},this.state=t}return t.prototype.update=function(){var t;if(this.state.isMobile||(null===(t=this.state.theme)||void 0===t?void 0:t.pieLegendForceHidden))this.outerContainer.style("display","none");else{this.outerContainer.style("display",null);var e=this.state.isTitleVisible()?o.titleHeight:0;this.outerContainer.attr("height",this.state.outerSize.height).style("padding-top",e);var n=this.container.style("height",this.state.outerSize.height+"px"),a=this.state.series[0].data,c=a.length>17?22:27,l=n.selectAll("div").data(a),u=l.enter().append("xhtml:div").attr("class",s["legend-item"]).on("mouseover",this.handleMouseOver).on("mouseout",this.handleMouseOut).on("click",this.handleClickItem),h=this.handleCircleClick;u.append("xhtml:i").append("small").style("background-color",(function(t){return t.color})),u.append("xhtml:span").text((function(t){return t.category}));var f=u.merge(l),d=f.transition().duration(i.pieTransitionDuration).style("height",c+"px");f.select("i small").on("click",(function(t,e){r.event.stopPropagation();var n=r.select(this).node();if(n){var i=n.getBoundingClientRect();h(t,{x:i.left+6.5,y:i.top+5.7})}})),d.select("i small").style("background-color",(function(t){return t.color})),d.select("span").text((function(t){return t.category})),l.exit().remove()}},t}();e.PieChartLegend=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(82),i=n(69),o=n(80),s=n(56),a=n(64),c=n(14);e.pieTransitionDuration=600;var l=function(){function t(t){var n=this;this.initialExpandDone=!1,this.create=function(t,e){n.chartGroup=t,n.g=e,n.g.attr("class",c.PieLayer).append("g").attr("class","slices");var r=n.state.theme;r&&r.roundingStyle&&n.g.classed(c[r.roundingStyle],!0),n.centerTextsGroup=n.g.append("foreignObject").attr("class","centerLabels");var i=n.centerTextsGroup.append("xhtml:div");n.centerValueText=i.append("xhtml:div").attr("class","valueContainer").append("xhtml:span").attr("class","valueLabel"),n.centerCategoryText=i.append("xhtml:p").attr("class","categoryLabel")},this.update=function(){var t,a=n.state.outerSize,c=a.width,l=a.height,f=n.isClickToExpandDisabled(),d=i.pie().sort(null).value((function(t,e){return t.value})),p=n.state.margin,g=n.state.isMobile||(null===(t=n.state.theme)||void 0===t?void 0:t.pieLegendForceHidden)?0:o.pieLegendWidth,m=c-g-p.left-p.right,y=n.state.isTitleVisible(),_=y?s.titleHeight:0,v=l-p.top-p.bottom-_,b=Math.min(m,v)/2,x=b/210*110;if(!(x<0)){var w=b+n.state.margin.left-(c/2-g);w<0&&(w=0);var E=y?_/2:0;n.chartGroup.attr("transform","translate("+w+", "+E+")");var S=i.arc().innerRadius(x).outerRadius(b);n.arcFunc=S;var C=i.arc().innerRadius(x).outerRadius(b/210*230);n.expandedArcFunc=C;var A=n.g.attr("transform","translate("+c/2+","+l/2+")").select(".slices"),I=n.state.series[0].data,T=A.selectAll("path.slice").data(d(I),(function(t){return t.data.category})),M=n.state.theme,F=u(M).collapsedWidth,B=n.centerCategoryText,L=n.centerValueText;h(A,S,B,L,F,!0);var O=T.enter().insert("path").classed("slice",!0).classed("clickable",!f).style("stroke","white").style("stroke-width",F).each((function(){this._current={startAngle:0,endAngle:0}}));if(M&&M.pieStroke){var U=M.pieStroke.color;O.style("stroke",U)}O.merge(T).style("fill",(function(t){return t.data.color})).on("click",(function(t){if(!f){var e=t.data.category;n.state.setClickedCategory(e)}})).on("mouseenter",(function(t,e){if(n.state.setHoveredCategory(t.data.category),f){var r=S.centroid(t),i=t.data;n.onCategoryMouseEnter({position:{x:r[0],y:r[1]},data:i}),n.updateCompactCenterText(!1)}})).on("mouseleave",(function(t,e){n.state.setHoveredCategory(void 0),f&&(n.onCategoryMouseLeave(),n.updateCompactCenterText(!0))})).transition().duration(e.pieTransitionDuration).attrTween("d",(function(t){this._current=this._current||t;var e=r.interpolate(this._current,t);return this._current=e(0),function(t){return S(e(t))||""}})),!1!==n.initialExpandDone||f||(n.initialExpandDone=!0,setTimeout((function(){O.each((function(t,e){0===e&&n.state.setClickedCategory(t.data.category)}))}),e.pieTransitionDuration+200)),f&&n.updateHovers(),T.exit().remove();var k=2*x*.6,P=Math.sqrt(Math.pow(2*x,2)-Math.pow(k,2)),D=n.centerTextsGroup;D.attr("x",-P/2).attr("y",-k/2).attr("width",P).attr("height",k),f?D.classed("onlyValueLabel",!0):D.classed("onlyValueLabel",!1)}},this.state=t}return t.prototype.updateHovers=function(){var t=this.state.getHoveredCategory();if(this.isClickToExpandDisabled())this.updateCompactCenterText(void 0===t);else{if(this.chartGroup.select(".slices").selectAll("path.slice").classed("hover",!1),void 0===t)return void this.clearHoversIfNeeded();
21this.getSlice(t).classed("hover",!0),this.isClickToExpandDisabled()||d(this.state.series[0].data.filter((function(e){return e.category===t}))[0],this.centerCategoryText,this.centerValueText,this.state.formatValue)}},t.prototype.updateCompactCenterText=function(t){if(t){var e=a.default(this.state.series[0].data);e&&d(e,this.centerCategoryText,this.centerValueText,this.state.formatValue)}else f(this.centerCategoryText,this.centerValueText)},t.prototype.clearHoversIfNeeded=function(){if(!this.isClickToExpandDisabled()){var t=this.state.getClickedCategory();void 0!==t?d(this.state.series[0].data.filter((function(e){return e.category===t}))[0],this.centerCategoryText,this.centerValueText,this.state.formatValue):f(this.centerCategoryText,this.centerValueText)}},t.prototype.updateExpands=function(){var t=this.state.getClickedCategory();if(void 0!==t){var e=this.chartGroup.select(".slices"),n=this.getSlice(t).filter((function(e){return e.data.category===t})),r=n.classed("expanded"),i=u(this.state.theme),o=i.collapsedWidth,s=i.expandedWidth;h(e,this.arcFunc,this.centerCategoryText,this.centerValueText,o),r?this.state.setClickedCategory(void 0):function(t,e,n,r,i,o,s){e.raise().transition().duration(400).style("stroke-width",s).attr("d",n),e.classed("expanded",!0),d(t,r,i,o)}(this.state.series[0].data.filter((function(e){return e.category===t}))[0],n,this.expandedArcFunc,this.centerCategoryText,this.centerValueText,this.state.formatValue,s)}},t.prototype.getSlice=function(t){return this.chartGroup.select(".slices").selectAll("path").filter((function(e){return e.data.category===t}))},t.prototype.isClickToExpandDisabled=function(){return this.state.outerSize.height<200},t}();function u(t){if(!t||!t.pieStroke)return{collapsedWidth:0,expandedWidth:10};var e=t.pieStroke.width;return{collapsedWidth:e,expandedWidth:e}}function h(t,e,n,r,i,o){var s=t.selectAll("path.slice.expanded");o?s.style("stroke-width",i).attr("d",e):s.transition().duration(400).style("stroke-width",i).attr("d",e),s.classed("expanded",!1),f(n,r)}function f(t,e){t.text(""),e.text("")}function d(t,e,n,r){e.text(t.category),n.text(r(t.value))}e.PieLayer=l},function(t,e){t.exports=n(35)},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.hoveredCategory=void 0,r.clickedCategory=void 0,r.onCategoryClicked=e.onCategoryClicked,r.setPieChartConfig(e,n),r}return i(e,t),e.prototype.updateConfig=function(e,n){t.prototype.updateConfig.call(this,e,n),this.setPieChartConfig(e,n)},e.prototype.setPieChartConfig=function(t,e){this.series=t.series},e.prototype.setHoveredCategory=function(t){this.hoveredCategory=t,this.onHoverChange()},e.prototype.getHoveredCategory=function(){return this.hoveredCategory},e.prototype.setClickedCategory=function(t){this.clickedCategory=t,this.onClickChange()},e.prototype.getClickedCategory=function(){return this.clickedCategory},e}(n(5).ChartState);e.PieChartState=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(13),i=n(14),o=function(){function t(t){var e=this;this.create=function(t){e.g=t,e.g.attr("class",i.PieChartTooltip),e.bubble=new r.TooltipBubble(e.state)},this.update=function(){},this.state=t}return t.prototype.show=function(t){var e=t.data,n=e.value,r=e.color,i=e.category,o=t.position,s={value:void 0!==n?this.state.formatValue(n):"N/A",color:r};this.bubble.setLabels(i,[s]);var a=this.state.outerSize,c=a.width,l=a.height,u=c/2-70,h=0;o.y<=0&&(h=l/2),this.bubble.show(),this.bubble.setPosition({x:u,y:h,width:140,noAdjust:!0})},t.prototype.hide=function(){this.bubble.hide()},t}();e.PieChartTooltip=o},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});
21Object.defineProperty(e,"__esModule",{value:!0});var o=n(86),s=n(87),a=n(89),c=n(90),l=n(54),u=n(14),h=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.bottomAxis=new c.HistogramAxis(i.state),i.bottomAxis.create(i.mainGroup.append("g")),i.histogramLayer=new a.HistogramLayer(i.state),i.histogramLayer.create(i.mainGroup.append("g")),i.histogramLayer.onBinMouseEnter=function(t){i.state.hoveredIdx=t,i.tooltip.showForItem(t),i.update()},i.histogramLayer.onBinMouseLeave=function(t){i.state.hoveredIdx=void 0,i.tooltip.hide(),i.update()},i.tooltip=new s.HistogramChartTooltip(i.state),i.tooltip.create(i.mainGroup.append("g")),i}return i(e,t),e.prototype.createState=function(t){return new o.HistogramChartState(t,this.getOuterSize())},e.prototype.update=function(){t.prototype.update.call(this),this.div.classed(u.mobile,this.state.isMobile),this.state.updateScales(),this.bottomAxis.update(),this.histogramLayer.update()},e}(l.Chart);e.HistogramChart=h},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(6),s=n(3),a=n(5),c=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.setHistogramChartConfig(e,n),r.legend=!1,r}return i(e,t),e.prototype.updateConfig=function(e,n){t.prototype.updateConfig.call(this,e,n),this.setHistogramChartConfig(e,n)},e.prototype.setHistogramChartConfig=function(t,e){var n=t.series;if(1!==n.length)throw new Error("Only single series histogram is supported");this.series=n,this.range=n[0].range,this.createScales()},e.prototype.createScales=function(){var t=this.series[0].data;this.valueScale=this.createSimpleValueScale(t,this.getValueRange()),this.bottomAxisScale=s.scaleLinear().domain([this.range.start,this.range.end]).range([0,1]),this.xScale=s.scaleBand().paddingInner(.5).paddingOuter(.3).domain(t.map((function(t){return t.id}))),this.updateScales()},e.prototype.updateScales=function(){var t=this.getInnerSize();this.valueScale.rangeRound([t.height,0]),this.bottomAxisScale.rangeRound([0,t.width]),this.xScale.range([0,t.width])},e.prototype.getLeftAxisScale=function(){return this.valueScale},e.prototype.getBottomAxisScale=function(){return this.bottomAxisScale},e.prototype.getValueRange=function(){return[this.getInnerSize().height,0]},e.prototype.createSimpleValueScale=function(t,e){var n=this.createSimpleDomain(t);return s.scaleLinear().rangeRound(e).domain(n)},e.prototype.createSimpleDomain=function(t){var e=t.map((function(t){return t.value})),n=o.max(e);if(void 0===n)return[0,0];var r=[0,n];if(r[0]===r[1]){var i=a.orderOfMagnitude(4);r[0]-=i,r[1]+=i}return r},e}(a.ChartState);e.HistogramChartState=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(88),i=n(10),o=n(14),s=function(){function t(t){var e=this;this.create=function(t){e.g=t,e.g.attr("class",o.HistogramChartTooltip),e.bubble=new r.HistogramTooltipBubble(e.state)},this.update=function(){},this.state=t}return t.prototype.showForItem=function(t){var e=this.state.series[0].data[t],n=1===e.value?" Company":" Companies",o=i.formatNatural(e.value)+n,s=i.formatNaturalCompact(e.bin.start)+" to "+i.formatNaturalCompact(e.bin.end),a=(this.state.xScale(e.id)||0)+this.state.margin.left-r.tooltipWidth/2,c=this.state.valueScale(e.value)+this.state.margin.top-5;this.bubble.setPosition({x:a,y:c}),this.bubble.setLabels(o,s),this.bubble.show()},t.prototype.hide=function(){this.bubble.hide()},t}();e.HistogramChartTooltip=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(14);e.tooltipWidth=160;var i=function(){function t(t){this.state=t,this.bubble=this.state.container.append("div").style("width",e.tooltipWidth+"px").attr("class",r["common-tooltip-bubble"]+" "+r["histogram-tooltip-bubble"]),this.valueLabel=this.bubble.append("div").attr("class",r["value-label"]),this.valueLabel.append("span").attr("class",r.label),this.rangeLabel=this.bubble.append("div").attr("class",r["range-label"]),this.rangeLabel.append("span").attr("class",r.label)}return t.prototype.show=function(){this.bubble.style("display","block")},t.prototype.hide=function(){this.bubble.style("display","none")},t.prototype.setPosition=function(t){var n=t.x,r=t.y,i=this.state.getOuterSize(),o=e.tooltipWidth/2;n+e.tooltipWidth+8>i.width?n=i.width-e.tooltipWidth-8:n-o-8<0&&(n=8),this.bubble.style("top",r+"px").style("left",n+"px")},t.prototype.setLabels=function(t,e){this.valueLabel.select("span."+r.label).text(t),this.rangeLabel.select("span."+r.label).text(e)},t}();e.HistogramTooltipBubble=i},function(t,e,n){"use strict";
21Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(14),o=function(){function t(t){var e=this;this.create=function(t){e.g=t,e.g.attr("class",i.HistogramLayer)},this.update=function(){var t=e.state,n=t.series,o=t.xScale,a=t.valueScale,c=t.theme,l=n[0],u=l.selectedBinIdx,h=l.data,f=l.color,d=e.state.getInnerSize(),p=function(t,n,r){var c=o.bandwidth(),l=void 0!==r?r:c/2;t.attr("x",(function(t){return o(t.id)||0})).attr("y",(function(t){return n?d.height-6:a(t.value)-6})).attr("rx",(function(t){return l})).attr("ry",(function(t){return l})).attr("width",(function(t){return c})).attr("height",(function(t){if(n)return 0;if(0===t.value)return 0;var e=a(t.value);return d.height-e+7})).attr("class",(function(t,n){if(void 0!==u)return u!==n&&e.state.hoveredIdx!==n?i.faded:void 0})).attr("fill",(function(t,n){var r=f||"red";return u===n?s(r,-45):n===e.state.hoveredIdx?s(r,-30):r}))},g=e.g.selectAll("rect").data(h,(function(t){return t.id})),m=g.empty()?350:0,y=c&&c.roundingStyle===r.RoundingStyle.EDGY?0:void 0;g.exit().remove();var _=g.enter().append("rect").call(p,!0,y);(g=_.merge(g)).on("mouseenter",(function(t,n){return e.onBinMouseEnter(n)})).on("mouseleave",(function(t,n){return e.onBinMouseLeave(n)})),g.transition().delay(m).duration(350).call(p,!1,y)},this.state=t}return t.prototype.getGroups=function(){return this.g.selectAll("g")},t}();function s(t,e){var n=parseInt(t.substring(1,3),16),r=parseInt(t.substring(3,5),16),i=parseInt(t.substring(5,7),16);return n=Math.round(n*(100+e)/100),r=(r=Math.round(r*(100+e)/100))<255?r:255,i=(i=Math.round(i*(100+e)/100))<255?i:255,"#"+(1==(n=n<255?n:255).toString(16).length?"0"+n.toString(16):n.toString(16))+(1==r.toString(16).length?"0"+r.toString(16):r.toString(16))+(1==i.toString(16).length?"0"+i.toString(16):i.toString(16))}e.HistogramLayer=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(53),i=n(51),o=n(0),s=n(14),a=function(t){var e=this;this.create=function(t){e.g=t.classed(s.histogramAxis,!0).classed("Axis",!0),e.update()},this.update=function(){var t=e.state.getBottomAxisScale();if(!t)throw"missing scale";if(!e.g)throw"missing group";var n=r.axisBottom(t).tickValues(t.domain()).tickSizeOuter(0),s=e.state.getInnerSize(),a=e.state.theme,c=a&&a.roundingStyle===o.RoundingStyle.EDGY?1:-3,l=s.height+c;e.g.attr("transform","translate(0,"+l+")").call(n);var u=e.g.selectAll(".domain");u.attr("stroke","#e9f0f5"),e.g.selectAll(".tick").selectAll("line").style("display","none");var h=e.g.selectAll("text");h.style("font-size","13px").style("font-weight","600").each((function(t,e){0===e&&i.select(this).style("text-anchor","start"),1===e&&i.select(this).style("text-anchor","end")})),a&&(h.style("fill",a.axisTextColor).style("font-size",a.axisTextFontSize+"px"),a.axisLineWidth&&u.style("transform","translate(0, 0.5px)"),a.axisTextFontWeight&&h.style("font-weight",""+a.axisTextFontWeight),a.fontFamily&&h.style("font-family",a.fontFamily))},this.state=t};e.HistogramAxis=a},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(52),s=n(54),a=n(57),c=n(58),l=n(92),u=n(93),h=n(14),f=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.lineLayers=[],r.scatterplotLayers=[],r.leftAxis=new a.LeftAxis(r.state),r.leftAxis.create(r.mainGroup.append("g")),r.bottomAxis=new o.BottomAxis(r.state),r.bottomAxis.create(r.mainGroup.append("g")),e.series.forEach((function(t,e){var n=new u.ScatterplotLayer(r.state,e);n.create(r.mainGroup.append("g")),r.scatterplotLayers.push(n)})),r.legend=new c.Legend(r.state),r.legend.create(r.legendRow.append("div")),setTimeout((function(){r.update()}),0),r}return i(e,t),e.prototype.createState=function(t){return new l.ScatterplotChartState(t,this.getOuterSize())},e.prototype.update=function(){t.prototype.update.call(this),this.div.classed(h.mobile,this.state.isMobile);var e=this.state.getInnerSize();this.state.timeScale.rangeRound([0,e.width]),this.state.primaryValueScale.rangeRound([e.height,0]),this.leftAxis.update(),this.bottomAxis.update(),this.legend.update();for(var n=0,r=this.scatterplotLayers;n<r.length;n++)r[n].update()},e}(s.Chart);e.ScatterplotChart=f},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});
21Object.defineProperty(e,"__esModule",{value:!0});var o=n(6),s=n(3),a=n(7),c=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.setScatterplotChartConfig(e,n),r}return i(e,t),e.prototype.updateConfig=function(e,n){t.prototype.updateConfig.call(this,e,n),this.setScatterplotChartConfig(e,n)},e.prototype.setScatterplotChartConfig=function(t,e){this.series=t.series;var n=this.getInnerSize();this.timeScale=this.createTimeScale(t.series,n),this.primaryValueScale=this.createValueScale(t.series,[n.height,0])},Object.defineProperty(e.prototype,"isMobile",{get:function(){return this.outerSize.width<400},enumerable:!0,configurable:!0}),e.prototype.createTimeScale=function(t,e){var n=t.map((function(t){return o.extent(t.data,(function(t){return t.date}))})),r=o.extent(a.default(n));return s.scaleTime().rangeRound([0,e.width]).domain(r)},e.prototype.getLeftAxisScale=function(){return this.primaryValueScale},e.prototype.getBottomAxisScale=function(){return this.timeScale},e}(n(5).ChartState);e.ScatterplotChartState=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(6),i=n(3),o=n(14),s=function(){function t(t,e){var n=this;this.create=function(t){n.g=t,n.g.attr("class",o.ScatterplotLayer)},this.state=t,this.seriesIndex=e}return t.prototype.update=function(){var t=this.state,e=t.timeScale,n=t.primaryValueScale,o=this.state.series[this.seriesIndex],s=o.data,a=o.color,c=r.extent(o.data,(function(t){return t.count}));console.log("counts extent:",c),i.scaleLinear().domain(c).range([0,1]),this.g.selectAll("circle").data(s).enter().append("circle").attr("cx",(function(t){return e(t.date)})).attr("cy",(function(t){return n(t.value)})).attr("r",3).attr("fill",(function(t,e){return a||"red"})).style("opacity",.4),console.log("updating scatterplot layer")},t}();e.ScatterplotLayer=s}])},t.exports=r()},function(t,e,n){"use strict";var r,i,o;n.d(e,"c",(function(){return r})),n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return o})),function(t){t.BROWSE_ALL="browseAll",t.BROWSE_USER="browseUser",t.EDIT="edit",t.CREATE="create",t.DISCARD="discard",t.SAVE_AS="saveAs",t.SHARE="share",t.GET_QUERY="getQuery",t.REMOVE="remove",t.SELECT_LABELS="selectLabels"}(r||(r={})),function(t){t.SCREENER="screener",t.CONNECTIONS="connections"}(i||(i={})),function(t){t.BROWSE_ALL="Bookmarks Modals - Browse All",t.BROWSE_USER="Bookmarks Modals - Browse User",t.EDIT="Bookmarks Modals - Edit",t.CREATE="Bookmarks Modals - Create",t.REMOVE="Bookmarks Modals - Remove",t.SAVE_AS="Bookmarks Modals - Save As",t.DISCARD="Bookmarks Modals - Discard",t.SHARE="Bookmarks Modals - Share",t.GET_QUERY="Bookmarks Modals - Get Query",t.SELECT_LABELS="Bookmarks Modals - Select Labels",t.FORM_SET_BOOKMARK="Bookmarks Modals - Form Set Bookmark",t.FORM_SET_NAME="Bookmarks Modals - Form Set Name",t.FORM_SET_DESCRIPTION="Bookmarks Modals - Form Set Description",t.FORM_SET_VISIBILITY="Bookmarks Modals - Form Set Visibility",t.FORM_SET_LABELS="Bookmarks Modals - Form Set Labels",t.FORM_ADD_LABEL="Bookmarks Modals - Form Add Label",t.FORM_REMOVE_LABEL="Bookmarks Modals - Form Remove Label",t.GO_BACK="Bookmarks Modals - Go Back",t.CLOSE="Bookmarks Modals - Close"}(o||(o={}))},function(t,e,n){"use strict";var r=Array.isArray;e.a=r},,function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return i})),n.d(e,"c",(function(){return o}));var r=1e-6,i="undefined"!=typeof Float32Array?Float32Array:Array,o=Math.random;Math.PI;Math.hypot||(Math.hypot=function(){for(var t=0,e=arguments.length;e--;)t+=arguments[e]*arguments[e];return Math.sqrt(t)})},function(t,e,n){"use strict";n.d(e,"I",(function(){return E})),n.d(e,"P",(function(){return S})),n.d(e,"Ub",(function(){return C})),n.d(e,"K",(function(){return A})),n.d(e,"H",(function(){return I})),n.d(e,"J",(function(){return T})),n.d(e,"L",(function(){return M})),n.d(e,"C",(function(){return F})),n.d(e,"B",(function(){return B})),n.d(e,"tb",(function(){return L})),n.d(e,"j",(function(){return O})),n.d(e,"Fb",(function(){return U})),n.d(e,"ac",(function(){return k})),n.d(e,"Yb",(function(){return P})),n.d(e,"gb",(function(){return D})),n.d(e,"r",(function(){return R})),n.d(e,"fc",(function(){return j})),n.d(e,"Jb",(function(){return z})),n.d(e,"D",(function(){return Q})),n.d(e,"k",(function(){return N})),n.d(e,"d",(function(){return V})),n.d(e,"G",(function(){return G})),n.d(e,"vb",(function(){return H})),n.d(e,"Y",(function(){return Z})),n.d(e,"Q",(function(){return W})),n.d(e,"U",(function(){return X})),n.d(e,"V",(function(){return Y})),n.d(e,"o",(function(){return q})),n.d(e,"R",(function(){return K})),n.d(e,"e",(function(){return J})),n.d(e,"T",(function(){return $})),n.d(e,"n",(function(){return tt})),n.d(e,"p",(function(){return et})),n.d(e,"S",(function(){return nt})),n.d(e,"W",(function(){return rt})),n.d(e,"X",(function(){return it})),n.d(e,"ib",(function(){return ot})),n.d(e,"hb",(function(){return st})),n.d(e,"jb",(function(){return at})),n.d(e,"bb",(function(){return ct})),n.d(e,"kb",(function(){return lt})),n.d(e,"pb",(function(){return ut})),n.d(e,"nb",(function(){return ht})),n.d(e,"qb",(function(){return ft})),n.d(e,"Tb",(function(){return dt})),n.d(e,"rb",(function(){return pt})),n.d(e,"mb",(function(){return gt})),n.d(e,"lb",(function(){return mt})),n.d(e,"ob",(function(){return yt})),n.d(e,"s",(function(){return _t})),n.d(e,"Rb",(function(){return bt})),n.d(e,"Sb",(function(){return xt})),n.d(e,"Nb",(function(){return wt})),n.d(e,"Ob",(function(){return Et})),n.d(e,"Qb",(function(){return St})),n.d(e,"zb",(function(){return Ct})),n.d(e,"yb",(function(){return At})),n.d(e,"t",(function(){return It})),n.d(e,"hc",(function(){return Tt})),n.d(e,"ic",(function(){return Mt})),n.d(e,"Kb",(function(){return Ft})),n.d(e,"Bb",(function(){return Lt})),n.d(e,"Lb",(function(){return Ot})),n.d(e,"u",(function(){return Ut})),n.d(e,"kc",(function(){return kt})),n.d(e,"fb",(function(){return Pt})),n.d(e,"ec",(function(){return Dt})),n.d(e,"Cb",(function(){return Rt})),n.d(e,"lc",(function(){return jt})),n.d(e,"mc",(function(){return zt})),n.d(e,"g",(function(){return Qt})),n.d(e,"gc",(function(){return Nt})),n.d(e,"Db",(function(){return Vt})),n.d(e,"A",(function(){return Gt})),n.d(e,"i",(function(){return Ht})),n.d(e,"xb",(function(){return Zt})),n.d(e,"x",(function(){return Wt})),n.d(e,"Eb",(function(){return Xt})),n.d(e,"ub",(function(){return Yt})),n.d(e,"sb",(function(){return qt})),n.d(e,"wb",(function(){return Jt})),n.d(e,"Z",(function(){return $t})),n.d(e,"F",(function(){return te})),n.d(e,"E",(function(){return ee})),n.d(e,"M",(function(){return ne})),n.d(e,"l",(function(){return re})),n.d(e,"w",(function(){return ie})),n.d(e,"bc",(function(){return oe})),n.d(e,"Gb",(function(){return se})),n.d(e,"cc",(function(){return ae})),n.d(e,"O",(function(){return ce})),n.d(e,"m",(function(){return le})),n.d(e,"dc",(function(){return ue})),n.d(e,"Mb",(function(){return he})),n.d(e,"Wb",(function(){return fe})),n.d(e,"Ib",(function(){return de})),n.d(e,"y",(function(){return pe})),n.d(e,"N",(function(){return ge})),n.d(e,"Vb",(function(){return me})),n.d(e,"Hb",(function(){return ye})),n.d(e,"Pb",(function(){return _e})),n.d(e,"b",(function(){return ve})),n.d(e,"a",(function(){return be})),n.d(e,"Zb",(function(){return xe})),n.d(e,"Ab",(function(){return we})),n.d(e,"jc",(function(){return Ee})),n.d(e,"Xb",(function(){return Se})),n.d(e,"h",(function(){return Ce})),n.d(e,"v",(function(){return Ae})),n.d(e,"c",(function(){return Ie})),n.d(e,"nc",(function(){return Te})),n.d(e,"z",(function(){return Me})),n.d(e,"cb",(function(){return Fe})),n.d(e,"db",(function(){return Be})),n.d(e,"eb",(function(){return Le})),n.d(e,"q",(function(){return Oe})),n.d(e,"f",(function(){return Ue})),n.d(e,"ab",(function(){return ke}));var r=n(434),i=n(6),o=n(280),s=n(155),a=n(389),c=n.n(a),l=n(30),u=n(137),h=n(9),f=n(58),d=function(){return(d=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)}
21,p=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(t){o(t)}}function a(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))},g=function(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},m=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},y=f.a.PUT,_=f.a.GET,v=f.a.POST,b=f.a.DELETE,x=f.a.PATCH,w=f.a.HEAD;function E(t){return p(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,Object(h.a)({method:_,path:"/tickers/"+t})];case 1:return[2,e.sent().body]}}))}))}function S(t){return p(this,void 0,void 0,(function(){var e,n;return g(this,(function(r){switch(r.label){case 0:return e=t.datasetId,n=t.tickersQuery,[4,Object(h.d)({method:_,path:"/datasets/"+e+"/tickers/"+n})];case 1:return[2,r.sent().body]}}))}))}function C(t){return p(this,void 0,void 0,(function(){var e,n;return g(this,(function(r){switch(r.label){case 0:return e=t.datasetId,n=t.query,[4,Object(h.d)({method:_,path:"/datasets/"+e+"/tickers/",data:{query:n}})];case 1:return[2,r.sent().body]}}))}))}function A(t){return p(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,Object(h.a)({method:_,path:"/companies/metrics/list/"+t})];case 1:return[2,e.sent().body]}}))}))}function I(t){return p(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,Object(h.a)({method:_,path:"/companies/curated/"+t})];case 1:return[2,e.sent().body]}}))}))}function T(t,e){return p(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,Object(h.a)({method:_,path:"/companies/metrics/value/"+t,data:{metric_id:e}})];case 1:return[2,n.sent().body]}}))}))}function M(t){return p(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,Object(h.d)({method:_,path:"/tickers/",data:{query:t}})];case 1:return[2,e.sent().body]}}))}))}function F(t){return p(this,void 0,void 0,(function(){var e,n,r,i,o,s,a,c;return g(this,(function(l){switch(l.label){case 0:return e=t.app,n=t.visibility,r=t.isFeatured,i=t.user,o=t.searchTerm,s=t.start,a=t.limit,c={start:s,limit:a},void 0!==n&&(c.visibility=n),void 0!==i&&(c.username=i),void 0!==o&&(c.search_term=o),!0===r?c.is_featured="True":!1===r&&(c.is_featured="False"),[4,Object(h.f)({method:_,path:"/"+e+"/bookmarks",data:c})];case 1:return[2,l.sent().body]}}))}))}function B(t){return p(this,void 0,void 0,(function(){var e,n;return g(this,(function(r){switch(r.label){case 0:return e=t.app,n=t.id,[4,Object(h.f)({method:_,path:"/"+e+"/bookmarks/"+n})];case 1:return[2,r.sent().body]}}))}))}function L(t){return p(this,void 0,void 0,(function(){var e,n;return g(this,(function(r){switch(r.label){case 0:return e=t.app,n=t.uuid,[4,Object(h.f)({method:_,path:"/"+e+"/bookmarks/uuid/"+n})];case 1:return[2,r.sent().body]}}))}))}function O(t){return p(this,void 0,void 0,(function(){var e,n,r,i,o,s,a,c,u,f,d;return g(this,(function(p){switch(p.label){case 0:return e=t.app,n=t.query,r=t.datasets,i=t.name,o=t.description,s=t.visibility,a=t.labelsIds,c=t.selectedView,u=t.selectedDataset,f=t.extraOptions,d={name:i,visibility:s},o&&(d.description=o),a&&(d.labels=a),e===l.b.CONNECTIONS?(d.datasets=r,d.extra_options=f):e===l.b.SCREENER&&(d.query=n,d.extra_options=f),c&&(d.selected_view=c),u&&(d.selected_dataset=u),[4,Object(h.f)({method:v,path:"/"+e+"/bookmarks"},d)];case 1:return[2,p.sent().body]}}))}))}function U(t){return p(this,void 0,void 0,(function(){var e,n;return g(this,(function(r){switch(r.label){case 0:return e=t.app,n=t.id,[4,Object(h.f)({method:b,path:"/"+e+"/bookmarks/"+n})];case 1:return[2,r.sent().body]}}))}))}function k(t){return p(this,void 0,void 0,(function(){var e,n,r,i,o,s,a,c,l,u,f,d;return g(this,(function(p){switch(p.label){case 0:return e=t.app,n=t.id,r=t.name,i=t.description,o=t.visibility,s=t.datasets,a=t.query,c=t.labelsIds,l=t.selectedView,u=t.selectedDataset,f=t.extraOptions,d={name:r,visibility:o}
21,i&&(d.description=i),s&&(d.datasets=s),a&&(d.query=a),c&&(d.labels=c),l&&(d.selected_view=l),u&&(d.selected_dataset=u),f&&(d.extra_options=f),[4,Object(h.f)({method:y,path:"/"+e+"/bookmarks/"+n},d)];case 1:return[2,p.sent().body]}}))}))}function P(t){return p(this,void 0,void 0,(function(){var e,n;return g(this,(function(r){switch(r.label){case 0:return e=t.app,n=t.id,[4,Object(h.f)({method:y,path:"/"+e+"/bookmarks/"+n+"/share"},{})];case 1:return[2,r.sent().body]}}))}))}function D(t){return p(this,void 0,void 0,(function(){var e,n,r;return g(this,(function(i){switch(i.label){case 0:return e=t.start,n=t.limit,r={start:e,limit:n},[4,Object(h.f)({method:_,path:"/labels/",data:r})];case 1:return[2,i.sent().body]}}))}))}function R(t){return p(this,void 0,void 0,(function(){var e,n,r,i;return g(this,(function(o){switch(o.label){case 0:return e=t.name,n=t.color,r=t.textStyle,i={name:e,color:n,text_style:r},[4,Object(h.f)({method:v,path:"/labels/"},i)];case 1:return[2,o.sent().body]}}))}))}function j(t){return p(this,void 0,void 0,(function(){var e,n,r,i,o;return g(this,(function(s){switch(s.label){case 0:return e=t.id,n=t.name,r=t.color,i=t.textStyle,o={},n&&(o.name=n),r&&(o.color=r),i&&(o.text_style=i),[4,Object(h.f)({method:y,path:"/labels/"+e},o)];case 1:return[2,s.sent().body]}}))}))}function z(t){return p(this,void 0,void 0,(function(){var e;return g(this,(function(n){switch(n.label){case 0:return e=t.id,[4,Object(h.f)({method:b,path:"/labels/"+e},{})];case 1:return[2,n.sent().body]}}))}))}function Q(t){return p(this,void 0,void 0,(function(){var e,n;return g(this,(function(r){switch(r.label){case 0:return e=t.start,n=t.limit,[4,Object(h.f)({method:_,path:"/dashboard/teams/activities",data:{start:e,limit:n}})];case 1:return[2,r.sent().body]}}))}))}function N(t){return p(this,void 0,void 0,(function(){var e,n;return g(this,(function(r){switch(r.label){case 0:return e=t.id,n=t.type,[4,Object(h.d)({headers:{"Content-Type":"application/json"},data:t.query,method:v,path:"/"+c()(n)+"/"+e+"/series/"})];case 1:return[2,r.sent().body]}}))}))}function V(t,e,n){return p(this,void 0,void 0,(function(){var r,i,o;return g(this,(function(s){switch(s.label){case 0:return[4,Object(h.d)({method:w,path:"/"+c()(t)+"/"+e+"/series/"+n})];case 1:return r=s.sent(),i=r.headers,o=r.status,[2,{headers:i,status:o}]}}))}))}function G(t,e,n){return p(this,void 0,void 0,(function(){return g(this,(function(r){switch(r.label){case 0:return[4,Object(h.d)({method:_,path:"/"+c()(t)+"/"+e+"/series/"+n})];case 1:return[2,r.sent().body]}}))}))}function H(t,e,n){return p(this,void 0,void 0,(function(){return g(this,(function(r){switch(r.label){case 0:return[4,Object(h.a)({method:v,path:"/companies/stock/"+t,data:{start_date:e,end_date:n},headers:{"Content-Type":"application/json"}})];case 1:return[2,r.sent().body]}}))}))}function Z(t,e,n){return p(this,void 0,void 0,(function(){return g(this,(function(r){switch(r.label){case 0:return[4,Object(h.d)({method:v,path:"/companies/fundings/"+t,data:{start_date:e,end_date:n},headers:{"Content-Type":"application/json"}})];case 1:return[2,r.sent().body]}}))}))}function W(t,e){return p(this,void 0,void 0,(function(){var n;return g(this,(function(r){switch(r.label){case 0:if(t!==o.b.DATASET)throw new Error("unknown dataset type "+t);return n="/datasets/"+e,[4,Object(h.d)({method:_,path:n})];case 1:return[2,r.sent().body]}}))}))}function X(t,e){return p(this,void 0,void 0,(function(){var n;return g(this,(function(r){switch(r.label){case 0:return n="/datasets/"+t+"/row/"+e,[4,Object(h.d)({method:_,path:n})];case 1:return[2,r.sent().body]}}))}))}function Y(t,e){return p(this,void 0,void 0,(function(){var n,r;return g(this,(function(i){switch(i.label){case 0:return n="/datasets/"+t+"/timeseries",r=e&&e.length>0?{tickers:e.join(",")}:{},[4,Object(h.d)({data:r,method:_,path:n})];case 1:return[2,i.sent().body]}}))}))}function q(t){return p(this,void 0,void 0,(function(){var e,n;return g(this,(function(r){switch(r.label){case 0:return[4,Object(h.d)({data:d({},t.query||{}),headers:{"Content-Type":"application/json"},method:v,path:"/"+t.type+"s/"+t.id+"/query/"})];case 1:if(e=r.sent(),n=e.body,202===e.status)throw new f.b(n.message);return[2,n]}}))}))}function K(t,e,n,r,i,o){return p(this,void 0,void 0,(function(){return g(this,(function(s){switch(s.label){case 0:return[4,Object(h.d)({data:{start:r,limit:i},headers:{"Content-Type":"application/json",Accept:o},method:_,path:"/"+t+"s/"+e+"/query/"+n})];case 1:return[2,s.sent()]}}))}))}function J(t,e,n,r,i){return p(this,void 0,void 0,(function(){var o,s,a;return g(this,(function(c){switch(c.label){case 0:return[4,Object(h.d)({headers:{Accept:t,"Content-Type":e},method:w,path:"/"+n+"s/"+r+"/query/"+i})];case 1:return o=c.sent(),s=o.headers,a=o.status,[2,{headers:s,status:a}]}}))}))}function $(t,e,n,r,i){return p(this,void 0,void 0,(function(){return g(this,(function(o){switch(o.label){case 0:return[4,Object(h.d)({data:{tickers:n,query:i},method:_,path:"/connections/"+e+"/"+t+"/field/"+r+"/values"})];case 1:return[2,o.sent().body]}}))}))}function tt(t){return p(this,void 0,void 0,(function(){var e,n,r,i,o,s,a,c,l,f,d,p,m,y,_,b;return g(this,(function(g){switch(g.label){case 0:return e=t.live,n=t.datasetId,r=t.queryIds,i=t.t
21itles,o=t.axis,s=t.url,a=t.format,c=t.selectedType,l=t.config,f=t.maxCategoricalItemsCount,d=t.overlayConfig,p={format:a,start:1,limit:Object(u.b)(a),query_ids:r,titles:i,url:s,is_live:e},o&&(p.axis=o),l&&(p.config=l),c&&(p.selected_type=c),d&&(m=d.type,y=d.ticker,_=d.range,p.chart_overlay={type:m,ticker:y,range:_?{start_date:_.startDate,end_date:_.endDate}:void 0}),b=void 0!==f?"?max_categorical="+f:"",[4,Object(h.d)({headers:{"Content-Type":"application/json"},data:p,method:v,path:"/datasets/"+n+"/query/series/snapshot"+b})];case 1:return[2,g.sent().body]}}))}))}function et(t){return p(this,void 0,void 0,(function(){var e,n,r,i,o,s,a,c,l;return g(this,(function(f){switch(f.label){case 0:return e=t.live,n=t.datasetId,r=t.queryId,i=t.format,o=t.selectedType,s=t.config,a=t.maxCategoricalItemsCount,c={format:i,start:1,limit:Object(u.b)(i),is_live:e},s&&(c.config=s),o&&(c.selected_type=o),l=void 0!==a?"?max_categorical="+a:"",[4,Object(h.d)({headers:{"Content-Type":"application/json"},data:c,method:v,path:"/datasets/"+n+"/query/"+r+"/snapshot"+l})];case 1:return[2,f.sent().body]}}))}))}function nt(t){return p(this,void 0,void 0,(function(){var e,n,r;return g(this,(function(i){switch(i.label){case 0:return e=t.datasetId,n=t.queryId,r=t.format,[4,Object(h.d)({headers:{Accept:r},method:_,path:"/datasets/"+e+"/query/"+n+"/tickers"})];case 1:return[2,i.sent().body]}}))}))}function rt(){return p(this,void 0,void 0,(function(){return g(this,(function(t){switch(t.label){case 0:return[4,Object(h.d)({method:_,path:"/datasets/"})];case 1:return[2,t.sent().body]}}))}))}function it(t){return p(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,Object(h.d)({data:{ticker:t},method:_,path:"/datasets/"})];case 1:return[2,e.sent().body]}}))}))}function ot(){return p(this,void 0,void 0,(function(){return g(this,(function(t){switch(t.label){case 0:return[4,Object(h.d)({method:_,path:"/connections/function/localdata/measures"})];case 1:return[2,t.sent().body]}}))}))}function st(t,e){return p(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,Object(h.d)({method:_,path:"/connections/function/localdata/"+t+"/"+e})];case 1:return[2,n.sent().body]}}))}))}function at(t,e,n,r){return p(this,void 0,void 0,(function(){return g(this,(function(i){switch(i.label){case 0:return[4,Object(h.d)({data:{country:n,measure:e,measure_type:t,dimensions:JSON.stringify(r)},method:_,path:"/map/localdata"})];case 1:return[2,i.sent().body]}}))}))}function ct(t,e,n,r){return p(this,void 0,void 0,(function(){var i;return g(this,(function(o){switch(o.label){case 0:return i={query:JSON.stringify({tickers:t,filters:e,functions:n,geo:r})},[4,Object(h.d)({data:i,method:_,path:"/map/heatmap"})];case 1:return[2,o.sent().body]}}))}))}function lt(t,e){return p(this,void 0,void 0,(function(){var n;return g(this,(function(r){switch(r.label){case 0:return n={country_ids:t},e!==i.o.COUNTRY&&(n.geo_type=e),[4,Object(h.a)({method:_,path:"/map/geometries/",data:n})];case 1:return[2,r.sent().body]}}))}))}function ut(){return p(this,void 0,void 0,(function(){return g(this,(function(t){switch(t.label){case 0:return[4,Object(h.d)({method:v,path:"/screener/options/"})];case 1:return[2,t.sent().body]}}))}))}function ht(){return p(this,void 0,void 0,(function(){return g(this,(function(t){switch(t.label){case 0:return[4,Object(h.f)({method:_,path:"/screener/featured-metrics"})];case 1:return[2,t.sent().body]}}))}))}function ft(t){return p(this,void 0,void 0,(function(){var e,n,r,i;return g(this,(function(o){switch(o.label){case 0:return e=t.attribute,n=t.searchTerm,r=t.limit,i={searchTerm:n},void 0!==r&&(i.limit=r),[4,Object(h.d)({method:_,data:i,path:"/screener/options/"+e+"/"})];case 1:return[2,o.sent().body]}}))}))}function dt(t){return p(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,Object(h.d)({method:_,data:{location_ids:t},path:"/screener/locationId/"})];case 1:return[2,e.sent().body]}}))}))}function pt(t){return p(this,void 0,void 0,(function(){var e,n,r,i,o,a,c,l,u,f,p;return g(this,(function(g){switch(g.label){case 0:return e=t.query,n=t.format,r=t.histogram,i=t.start,o=t.limit,a=vt({query:e,format:n,histogram:r}),c=a.restOfQuery,l=a.paramsString,u="/screener/screen/?"+l,f=c.sorts&&c.sorts.length>0?c.sorts:void 0,p=Object(s.default)(d(d({},c),{sorts:f,start:i,limit:o})),[4,Object(h.d)({data:{request:JSON.stringify(p)},method:v,path:u})];case 1:return[2,g.sent().body]}}))}))}function gt(t){return p(this,void 0,void 0,(function(){var e;return g(this,(function(n){switch(n.label){case 0:return e="/screener/row/"+t+"/",[4,Object(h.d)({method:_,path:e})];case 1:return[2,n.sent().body]}}))}))}function mt(t,e){return p(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,Object(h.d)({data:{request:JSON.stringify({tickers:e,column_ids:t})},method:v,path:"/screener/anomaly_detection/"})];case 1:return[2,n.sent().body]}}))}))}function yt(t){return p(this,void 0,void 0,(function(){var e,n,r,i;return g(this,(function(o){switch(o.label){case 0:return e=t.metricId,n=t.ticker,r=t.asOfDate,i="/screener/"+e+"/ticker/"+n+"/as_of_date/"+r,[4,Object(h.d)({method:_,path:i})];case 1:return[2,o.sent().body]}}))}))}function _t(t){return p(this,void 0,void 0,(function(){var e,n,r,i,o,a,c,l,u,f;return g(this,(function(p){switch(p.label){case 0:return e=t.query,n=t.format,r=t.config,i=t.snapshotConfig,o=vt({query:e,format:n}),a=o.restOfQuery,c=o.paramsString,l="/screener/snapshot/?"+c,u=a.sorts&&a.sorts.length>0?a.sorts:void 0,f=Object(s.default)(d(d({},a),{sorts:u,limit:250})),r&&(f.config=r),i&&(f.snapshot_config=i),[4,Object(h.d)({data:{request:JSON.stringify(f)},method:v,path:l})];case 1:return[2,p.sent().body]}}))}))}function vt(t){var e=t.query,n=t.format,r=t.histogram,i={},o=e.geoFilter,s=m(e,["geoFilter"]);return n&&(i.format=n),r&&(i.is_histogram="true"),o&&(i.latitude=""+o.latitude,i.longitude=""+o.longitude,i.radius=""+o.radius),{restOfQuery:s,paramsString:Object.keys(i).map((function(t){return t+"="+i[t]})).join("&")}}function bt(t){return p(this,void 0,void 0,(function(){var e,n,r,i,o;return g(this,(function(s){switch(s.label){case 0:return e=t.query,n=t.fileFormat,r=t.email,i={filetype:n.toLowerCase(),receiver:r},o=d(d({},e),{download_config:i}),[4,Object(h.d)({data:{request:JSON.stringify(o)},method:v,path:"/screener/download/"})];case 1:return[2,s.sent().body]}}))}))}function xt(t){return p(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,Object(h.d)({method:_,path:"/screener/download/"+t+"/status/"})];case 1:return[2,e.sent().body]}}))}))}function wt(t){return p(this,void 0,void 0,(function(){var e,n,r,i;return g(this,(function(o){switch(o.label){case 0:return e=t.datasetId,n=t.queryId,r=t.fileFormat,i=t.email,[4,Object(h.d)({data:{download_config:{filetype:r.toLowerCase(),receiver:i}},method:v,path:"/datasets/"+e+"/query/"+n+"/download",headers:{"Content-Type":"application/json"}})];case 1:return[2,o.sent().body]}}))}))}function Et(t){return p(this,void 0,void 0,(function(){var e,n,r,i;return g(this,(function(o){switch(o.label){case 0:return e=t.datasetId,n=t.widgets,r=t.fileFormat,i=t.email,[4,Object(h.d)({data:{download_config:{filetype:r.toLowerCase(),receiver:i,widgets:n}},method:v,path:"/datasets/"+e+"/multidownload/",headers:{"Content-Type":"application/json"}})];case 1:return[2,o.sent().body]}}))}))}function St(t){return p(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,Object(h.d)({method:_,path:"/datasets/download/"+t+"/status/"})];case 1:return[2,e.sent().body]}}))}))}function Ct(t){return p(this,void 0,void 0,(function(){var e;return g(this,(function(n){switch(n.label){case 0:return e={format:t},[4,Object(h.d)({data:e,method:_,path:"/filters/"})];case 1:return[2,n.sent().body]}}))}))}function At(t){return p(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,Object(h.d)({method:_,path:"/filters/"+t})];case 1:return[2,e.sent().body]}}))}))}function It(t){return p(this,void 0,void 0,(function(){var e,n;return g(this,(function(r){switch(r.label){case 0:return e=t.file,n=m(t,["file"]),[4,Object(h.d)({data:{file:e,request:n},method:v,path:"/filters/"})];case 1:return[2,r.sent().body]}}))}))}function Tt(t){return p(this,void 0,void 0,(function(){var e,n,r;return g(this,(function(i){switch(i.label){case 0:return e=t.id,n=t.name,r=t.visibility,[4,Object(h.d)({data:{name:n,visibility:r},method:x,path:"/filters/"+e,headers:{"Content-Type":"application/json"}})];case 1:return[2,i.sent().body]}}))}))}function Mt(t){return p(this,void 0,void 0,(function(){var e,n;return g(this,(function(r){switch(r.label){case 0:return e=t.id,n=m(t,["id"]),[4,Object(h.d)({data:{request:n},method:v,path:"/filters/"+e})];case 1:return[2,r.sent().body]}}))}))}function Ft(t){return p(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,Object(h.d)({method:b,path:"/filters/"+t})];case 1:return[2,e.sent().body]}}))}))}function Bt(t){switch(t){case i.b.CHARTS:return"/alerts/chart";case i.b.CONNECTIONS:return"/alerts/connections";
21case i.b.SCREENER:return"/alerts/screen"}}function Lt(t){return p(this,void 0,void 0,(function(){var e;return g(this,(function(n){switch(n.label){case 0:return e=function(t){switch(t){case i.c.comparison:return"/alerts/alert";case i.c.periodic:return"/alerts/subscription"}}(t),[4,Object(h.d)({method:_,path:e})];case 1:return[2,n.sent().body]}}))}))}function Ot(t,e,n){return p(this,void 0,void 0,(function(){return g(this,(function(r){switch(r.label){case 0:return[4,Object(h.e)({method:b,path:Bt(t)+"/"+n+"/"+e})];case 1:return[2,r.sent().body]}}))}))}function Ut(t,e,n,r){return p(this,void 0,void 0,(function(){return g(this,(function(i){switch(i.label){case 0:return[4,Object(h.e)({data:{alert:JSON.stringify(r)},method:y,path:Bt(t)+"/"+n+"/"+e})];case 1:return[2,i.sent().body]}}))}))}function kt(t,e,n,r){return p(this,void 0,void 0,(function(){return g(this,(function(i){switch(i.label){case 0:return[4,Object(h.e)({data:{updates:JSON.stringify(r)},method:x,path:Bt(t)+"/"+n+"/"+e})];case 1:return[2,i.sent().body]}}))}))}function Pt(){return p(this,void 0,void 0,(function(){return g(this,(function(t){switch(t.label){case 0:return[4,Object(h.e)({method:_,path:"/alerts/notification/settings"})];case 1:return[2,t.sent().body]}}))}))}function Dt(t){return p(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,Object(h.e)({data:{updates:JSON.stringify(t)},method:x,path:"/alerts/notification/settings"})];case 1:return[2,e.sent().body]}}))}))}function Rt(){return p(this,void 0,void 0,(function(){var t,e,n;return g(this,(function(r){switch(r.label){case 0:return[4,Object(h.f)({method:_,path:"/alerts/notifications"})];case 1:return t=r.sent(),e=t.headers,n=t.body,[2,{headers:e,body:n}]}}))}))}function jt(t,e){return p(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,Object(h.f)({data:{updates:JSON.stringify(e)},method:x,path:"/alerts/notifications/"+t})];case 1:return[2,n.sent().body]}}))}))}function zt(t){return p(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,Object(h.f)({data:{updates:JSON.stringify(t)},method:x,path:"/alerts/notifications"})];case 1:return[2,e.sent().body]}}))}))}function Qt(){return p(this,void 0,void 0,(function(){return g(this,(function(t){switch(t.label){case 0:return[4,Object(h.f)({method:w,path:"/alerts/notifications"})];case 1:return[2,t.sent().headers]}}))}))}function Nt(t){return p(this,void 0,void 0,(function(){var e;return g(this,(function(n){switch(n.label){case 0:return[4,Object(h.f)({method:v,path:"/alerts/notifications/last-seen/"+t})];case 1:return[2,(e=n.sent().status)>=200&&e<300]}}))}))}function Vt(t,e){return p(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,Object(h.d)({data:{query:JSON.stringify({competitors:t.map((function(t){return{radius:e.radius,ticker_id:t}})),measures:e.measures})},method:_,path:"/map/whitespace"})];case 1:return[2,n.sent().body]}}))}))}function Gt(t){return p(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,Object(h.d)({method:_,path:"/ticker/articles/",data:{query:t}})];case 1:return[2,e.sent().body]}}))}))}function Ht(t){return p(this,void 0,void 0,(function(){var e,n,r,i,o,s;return g(this,(function(a){switch(a.label){case 0:return e=t.token,n=t.event,r=t.inputTicker,i=t.resolvedTicker,o=t.referrer,s={activity_type:n,referrer:o},r&&(s.ticker=r),i&&(s.redirect_ticker=i),[4,Object(h.b)({method:v,path:"/embed/activity",data:{token:e}},s)];case 1:return[2,a.sent().body]}}))}))}function Zt(){return p(this,void 0,void 0,(function(){return g(this,(function(t){switch(t.label){case 0:return[4,Object(h.f)({method:_,path:"/tour/stories/unseen"})];case 1:return[2,t.sent().body]}}))}))}function Wt(){return p(this,void 0,void 0,(function(){return g(this,(function(t){switch(t.label){case 0:return[4,Object(h.f)({method:_,path:"/tour/stories"})];case 1:return[2,t.sent().body]}}))}))}function Xt(t){return p(this,void 0,void 0,(function(){var e,n,r;return g(this,(function(i){switch(i.label){case 0:return e=t.id,n=t.
21wasSkipped,r={was_skipped:n},[4,Object(h.f)({method:y,path:"/tour/stories/"+e},r)];case 1:return[2,i.sent().body]}}))}))}function Yt(t,e){return p(this,void 0,void 0,(function(){var n;return g(this,(function(r){switch(r.label){case 0:return n="/datasets/"+t+"/snapshot/"+e+".js",[4,Object(h.a)({method:_,path:n},!0)];case 1:return[2,Kt(r.sent().body)]}}))}))}function qt(t){return p(this,void 0,void 0,(function(){var e;return g(this,(function(n){switch(n.label){case 0:return e="/screener/snapshot/"+t+".js",[4,Object(h.a)({method:_,path:e},!0)];case 1:return[2,Kt(n.sent().body)]}}))}))}function Kt(t){var e=/^window.embed_data_[0-9a-zA-Z]* = (.*);$/g.exec(t);if(!e||2!==e.length)throw new Error("Cannot decode snapshot data");return JSON.parse(e[1])}function Jt(t,e){return p(this,void 0,void 0,(function(){var n;return g(this,(function(r){switch(r.label){case 0:return n="/datasets/"+t+"/snapshot/"+e+"_store_data.json",[4,Object(h.a)({method:_,path:n},!0)];case 1:return[2,r.sent().body]}}))}))}function $t(){return p(this,void 0,void 0,(function(){return g(this,(function(t){switch(t.label){case 0:return[4,Object(h.d)({method:_,path:"/connections/function/genderdecoder/wordlists"})];case 1:return[2,t.sent().body]}}))}))}function te(t,e,n){return p(this,void 0,void 0,(function(){var i;return g(this,(function(o){switch(o.label){case 0:return i={page:e},t!==r.a.ALL&&(i.visibility=t),n&&n.length>0&&(i.search=n),[4,Object(h.f)({method:_,path:"/dashboard/analyticals",data:i})];case 1:return[2,o.sent().body]}}))}))}function ee(t,e,n){return p(this,void 0,void 0,(function(){var r;return g(this,(function(i){switch(i.label){case 0:return r={username:t,page:e},n&&n.length>0&&(r.search=n),[4,Object(h.f)({method:_,path:"/dashboard/analyticals",data:r})];case 1:return[2,i.sent().body]}}))}))}function ne(t){return p(this,void 0,void 0,(function(){var e,n,r;return g(this,(function(i){switch(i.label){case 0:return[4,Object(h.b)({method:_,path:"/dashboard/analyticals/"+t})];case 1:return e=i.sent(),n=e.body,r=e.status,[2,{body:n,status:r}]}}))}))}function re(t){return p(this,void 0,void 0,(function(){var e,n,r,i;return g(this,(function(o){switch(o.label){case 0:return e=t.title,n=t.visibility,r=t.labelsIds,i={title:e,visibility:n,labels:r},[4,Object(h.f)({method:v,path:"/dashboard/analyticals"},i)];case 1:return[2,o.sent().body]}}))}))}function ie(t,e){return p(this,void 0,void 0,(function(){var n;return g(this,(function(r){switch(r.label){case 0:return n=e?{tickers:e}:{},[4,Object(h.f)({method:v,path:"/dashboard/analyticals/"+t},n)];case 1:return[2,r.sent().body]}}))}))}function oe(t){return p(this,void 0,void 0,(function(){var e,n,r,i,o,s;return g(this,(function(a){switch(a.label){case 0:return e=t.id,n=t.title,r=t.description,i=t.visibility,o=t.labelsIds,s={title:n,description:r,visibility:i,labels:o},[4,Object(h.f)({method:y,path:"/dashboard/analyticals/"+e},s)];case 1:return[2,a.sent().body]}}))}))}function se(t){return p(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,Object(h.f)({method:b,path:"/dashboard/analyticals/"+t})];case 1:return[2,e.sent().body]}}))}))}function ae(t){return p(this,void 0,void 0,(function(){var e,n,r;return g(this,(function(i){switch(i.label){case 0:return e=t.dashboardId,n=t.widgetsLayouts,r={widgets:n},[4,Object(h.f)({method:y,path:"/dashboard/analyticals/"+e+"/widgets"},r)];case 1:return[2,i.sent().body]}}))}))}function ce(t){return p(this,void 0,void 0,(function(){var e,n,r;return g(this,(function(i){switch(i.label){case 0:return[4,Object(h.b)({method:_,path:"/dashboard/analyticals/"+t+"/widgets"})];case 1:return e=i.sent(),n=e.body,r=e.status,[2,{body:n,status:r}]}}))}))}function le(t){return p(this,void 0,void 0,(function(){var e,n,r,i,o,s,a,c;return g(this,(function(l){switch(l.label){case 0:return e=t.dashboardId,n=t.layout,r=t.sourceType,i=t.bookmarkId,o=t.urlQuery,s=t.extraConfig,a=t.title,c={layout:n,source_type:r,config:s},void 0!==i&&(c.bookmark_id=i),void 0!==o&&(c.url_query=o),void 0!==a&&(c.title=a),[4,Object(h.f)({method:v,path:"/dashboard/analyticals/"+e+"/widgets"},c)];case 1:return[2,l.sent().body]}}))}))}function ue(t){return p(this,void 0,void 0,(function(){var e,n,r,i,o,s,a,c;return g(this,(function(l){switch(l.label){case 0:return e=t.dashboardId,n=t.widgetId,r=t.sourceType,i=t.bookmarkId,o=t.urlQuery,s=t.extraConfig,a=t.title,c={config:s},void 0!==r&&(c.source_type=r),void 0!==i&&(c.bookmark_id=i),void 0!==o&&(c.url_query=o),void 0!==a&&(c.title=a),[4,Object(h.f)({method:y,path:"/dashboard/analyticals/"+e+"/widgets/"+n},c)];case 1:return[2,l.sent().body]}}))}))}function he(t){return p(this,void 0,void 0,(function(){var e,n,r,i;return g(this,(function(o){switch(o.label){case 0:return e=t.dashboardId,n=t.widgetId,r=t.title,i={title:r},[4,Object(h.f)({method:y,path:"/dashboard/analyticals/"+e+"/widgets/"+n},i)];case 1:return[2,o.sent().body]}}))}))}function fe(t){return p(this,void 0,void 0,(function(){var e,n,r,i;return g(this,(function(o){switch(o.label){case 0:return e=t.dashboardId,n=t.widgetId,r=t.description,i={description:r},[4,Object(h.f)({method:y,path:"/dashboard/analyticals/"+e+"/widgets/"+n},i)];case 1:return[2,o.sent().body]}}))}))}function de(t){return p(this,void 0,void 0,(function(){var e,n;return g(this,(function(r){switch(r.label){case 0:return e=t.dashboardId,n=t.widgetId,[4,Object(h.f)({method:b,path:"/dashboard/analyticals/"+e+"/widgets/"+n})];case 1:return[2,r.sent().body]}}))}))}function pe(){return p(this,void 0,void 0,(function(){return g(this,(function(t){switch(t.label){case 0:return[4,Object(h.f)({method:_,path:"/dashboard/analyticals/reports"})];case 1:return[2,t.sent().body]}}))}))}function ge(t){return p(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,Object(h.f)({method:_,path:"/dashboard/analyticals/"+t+"/report/schedule"})];case 1:return[2,e.sent().body]}}))}))}function me(t,e){return p(this,void 0,void 0,(function(){var n,r,i;return g(this,(function(o){switch(o.label){case 0:return n=e.format,r=e.schedule,i={format:n,schedule:r},[4,Object(h.f)({method:v,path:"/dashboard/analyticals/"+t+"/report/schedule"},i)];case 1:return[2,o.sent().body]}}))}))}function ye(t){return p(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,Object(h.f)({method:b,path:"/dashboard/analyticals/"+t+"/report/schedule"})];case 1:return[2,e.sent().body]}}))}))}function _e(t,e){return p(this,void 0,void 0,(function(){var n;return g(this,(function(r){switch(r.label){case 0:return n={format:e},[4,Object(h.f)({method:v,path:"/dashboard/analyticals/"+t+"/report/generate"},n)];case 1:return[2,r.sent().body]}}))}))}function ve(t){return p(this,void 0,void 0,(function(){var e;return g(this,(function(n){switch(n.label){case 0:return e={query_url:t},[4,Object(h.f)({method:v,path:"/upgrade-api/"},e)];case 1:return[2,n.sent().body]}}))}))}function be(t){return p(this,void 0,void 0,(function(){var e;return g(this,(function(n){switch(n.label){case 0:return e={query_url:t},[4,Object(h.f)({method:v,path:"/request-api-tutorial/"},e)];case 1:return[2,n.sent().body]}}))}))}function xe(t){return p(this,void 0,void 0,(function(){var e,n,r,i,o,s;return g(this,(function(a){switch(a.label){case 0:return e=t.eventId,n=t.argumentsData,r=t.redux,i=t.lastAction,o={eventId:e,argumentsData:n,redux:r,lastAction:i},[4,Object(h.f)({method:v,path:"/error-reporting/submit-redux"},o)];case 1:return s=a.sent(),s.body,[2,s.status]}}))}))}function we(){return p(this,void 0,void 0,(function(){return g(this,(function(t){switch(t.label){case 0:return[4,Object(h.f)({method:_,path:"/creator/account/profile/"})];case 1:return[2,t.sent().body]}}))}))}function Ee(t){return p(this,void 0,void 0,(function(){var e,n,r,i,o;return g(this,(function(s){switch(s.label){case 0:return e=t.first_name,n=t.last_name,r=t.email,i=t.company,o={},e&&(o.first_name=e),n&&(o.last_name=n),r&&(o.email=r),void 0!==i&&(o.company=i),[4,Object(h.f)({method:y,path:"/creator/account/profile/"},o)];case 1:return[2,s.sent().body]}}))}))}function Se(t){return p(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,Object(h.f)({method:v,path:"/creator/account/profile/"},void 0,{file:t})];case 1:return[2,e.sent().body]}}))}))}function Ce(){return p(this,void 0,void 0,(function(){var t;return g(this,(function(e){switch(e.label){case 0:return t={image_url:""},[4,Object(h.f)({method:y,path:"/creator/account/profile/"},t)];case 1:return[2,e.sent().body]}}))}))}function Ae(){return p(this,void 0,void 0,(function(){return g(this,(function(t){switch(t.label){case 0:return[4,Object(h.f)({method:v,path:"/creator/account/deactivate/"})];case 1:return t.sent(),[2]}}))}))}function Ie(t,e,n){return p(this,void 0,void 0,(function(){var r;return g(this,(function(i){switch(i.label){case 0:return r={old:t,new:e,confirm:n},[4,Object(h.f)({method:v,path:"/creator/account/change-password/"},r)];case 1:return i.sent(),[2]}}))}))}function Te(t){return p(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,Object(h.b)({method:_,path:"/creator/account/spark-verify-checkout/",data:{session_id:t}})];case 1:return[2,e.sent().body]}}))}))}function Me(t){return p(this,void 0,void 0,(function(){var e,n,r;return g(this,(function(i){switch(i.label){case 0:return e=t.start,n=t.limit,r={start:e,limit:n},[4,Object(h.a)({method:_,path:"/api/status",data:r})];case 1:return[2,i.sent().body]}}))}))}function Fe(t){return p(this,void 0,void 0,(function(){var e,n,r,i,o,s,a;return g(this,(function(c){switch(c.label){case 0:return e=t.query,n=t.start,r=t.limit,i=e.ticker,o=e.year,s=e.quarter,a={start:n,limit:r,ticker:i}
21,o&&(a.year=o),s&&(a.quarter=s),[4,Object(h.a)({method:_,path:"/sec/shareholders",data:a})];case 1:return[2,c.sent().body]}}))}))}function Be(t){return p(this,void 0,void 0,(function(){var e,n,r;return g(this,(function(i){switch(i.label){case 0:return e=t.ticker,n=t.cik,r={ticker:e,cik:n},[4,Object(h.a)({method:_,path:"/sec/shareholders/chart",data:r})];case 1:return[2,i.sent().body]}}))}))}function Le(t){return p(this,void 0,void 0,(function(){var e,n;return g(this,(function(r){switch(r.label){case 0:return e=t.ticker,n={ticker:e},[4,Object(h.a)({method:_,path:"/sec/shareholders/options",data:n})];case 1:return[2,r.sent().body]}}))}))}function Oe(t){return p(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,Object(h.d)({method:v,path:"/datasets/"+t.datasetId+"/heatmap/query/"})];case 1:return[2,e.sent().body]}}))}))}function Ue(t,e){return p(this,void 0,void 0,(function(){var n,r,i;return g(this,(function(o){switch(o.label){case 0:return[4,Object(h.d)({method:w,path:"/datasets/"+t+"/heatmap/query/"+e})];case 1:return n=o.sent(),r=n.headers,i=n.status,[2,{headers:r,status:i}]}}))}))}function ke(t,e){return p(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,Object(h.d)({method:_,path:"/datasets/"+t+"/heatmap/query/"+e})];case 1:return[2,n.sent().body]}}))}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"interpolate",(function(){return I})),n.d(e,"interpolateArray",(function(){return m})),n.d(e,"interpolateBasis",(function(){return o})),n.d(e,"interpolateBasisClosed",(function(){return s})),n.d(e,"interpolateDate",(function(){return y})),n.d(e,"interpolateDiscrete",(function(){return T})),n.d(e,"interpolateHue",(function(){return M})),n.d(e,"interpolateNumber",(function(){return _})),n.d(e,"interpolateObject",(function(){return v})),n.d(e,"interpolateRound",(function(){return F})),n.d(e,"interpolateString",(function(){return A})),n.d(e,"interpolateTransformCss",(function(){return k})),n.d(e,"interpolateTransformSvg",(function(){return P})),n.d(e,"interpolateZoom",(function(){return j})),n.d(e,"interpolateRgb",(function(){return f})),n.d(e,"interpolateRgbBasis",(function(){return p})),n.d(e,"interpolateRgbBasisClosed",(function(){return g})),n.d(e,"interpolateHsl",(function(){return Q})),n.d(e,"interpolateHslLong",(function(){return N})),n.d(e,"interpolateLab",(function(){return V})),n.d(e,"interpolateHcl",(function(){return H})),n.d(e,"interpolateHclLong",(function(){return Z})),n.d(e,"interpolateCubehelix",(function(){return X})),n.d(e,"interpolateCubehelixLong",(function(){return Y})),n.d(e,"piecewise",(function(){return q})),n.d(e,"quantize",(function(){return K}));var r=n(23);function i(t,e,n,r,i){var o=t*t,s=o*t;return((1-3*t+3*o-s)*e+(4-6*o+3*s)*n+(1+3*t+3*o-3*s)*r+s*i)/6}var o=function(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),o=t[r],s=t[r+1],a=r>0?t[r-1]:2*o-s,c=r<e-1?t[r+2]:2*s-o;return i((n-r/e)*e,a,o,s,c)}},s=function(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),o=t[(r+e-1)%e],s=t[r%e],a=t[(r+1)%e],c=t[(r+2)%e];return i((n-r/e)*e,o,s,a,c)}},a=function(t){return function(){return t}};function c(t,e){return function(n){return t+n*e}}function l(t,e){var n=e-t;return n?c(t,n>180||n<-180?n-360*Math.round(n/360):n):a(isNaN(t)?e:t)}function u(t){return 1==(t=+t)?h:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):a(isNaN(e)?n:e)}}function h(t,e){var n=e-t;return n?c(t,n):a(isNaN(t)?e:t)}var f=function t(e){var n=u(e);function i(t,e){var i=n((t=Object(r.f)(t)).r,(e=Object(r.f)(e)).r),o=n(t.g,e.g),s=n(t.b,e.b),a=h(t.opacity,e.opacity);return function(e){return t.r=i(e),t.g=o(e),t.b=s(e),t.opacity=a(e),t+""}}return i.gamma=t,i}(1);function d(t){return function(e){var n,i,o=e.length,s=new Array(o),a=new Array(o),c=new Array(o);for(n=0;n<o;++n)i=Object(r.f)(e[n]),s[n]=i.r||0,a[n]=i.g||0,c[n]=i.b||0;return s=t(s),a=t(a),c=t(c),i.opacity=1,function(t){return i.r=s(t),i.g=a(t),i.b=c(t),i+""}}}var p=d(o),g=d(s),m=function(t,e){var n,r=e?e.length:0,i=t?Math.min(r,t.length):0,o=new Array(i),s=new Array(r);for(n=0;n<i;++n)o[n]=I(t[n],e[n]);for(;n<r;++n)s[n]=e[n];return function(t){for(n=0;n<i;++n)s[n]=o[n](t);return s}},y=function(t,e){var n=new Date;return e-=t=+t,function(r){return n.setTime(t+e*r),n}},_=function(t,e){return e-=t=+t,function(n){return t+e*n}},v=function(t,e){var n,r={},i={};for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?r[n]=I(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}},b=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,x=new RegExp(b.source,"g");var w,E,S,C,A=function(t,e){var n,r,i,o=b.lastIndex=x.lastIndex=0,s=-1,a=[],c=[];for(t+="",e+="";(n=b.exec(t))&&(r=x.exec(e));)(i=r.index)>o&&(i=e.slice(o,i),a[s]?a[s]+=i:a[++s]=i),(n=n[0])===(r=r[0])?a[s]?a[s]+=r:a[++s]=r:(a[++s]=null,c.push({i:s,x:_(n,r)})),o=x.lastIndex;return o<e.length&&(i=e.slice(o),a[s]?a[s]+=i:a[++s]=i),a.length<2?c[0]?function(t){return function(e){return t(e)+""}}(c[0].x):function(t){return function(){return t}}(e):(e=c.length,function(t){for(var n,r=0;r<e;++r)a[(n=c[r]).i]=n.x(t);return a.join("")})},I=function(t,e){var n,i=typeof e;return null==e||"boolean"===i?a(e):("number"===i?_:"string"===i?(n=Object(r.a)(e))?(e=n,f):A:e instanceof r.a?f:e instanceof Date?y:Array.isArray(e)?m:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?v:_)(t,e)},T=function(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}},M=function(t,e){var n=l(+t,+e);return function(t){var e=n(t);return e-360*Math.floor(e/360)}},F=function(t,e){return e-=t=+t,function(n){return Math.round(t+e*n)}},B=180/Math.PI,L={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},O=function(t,e,n,r,i,o){var s,a,c;return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(c=t*n+e*r)&&(n-=t*c,r-=e*c),(a=Math.sqrt(n*n+r*r))&&(n/=a,r/=a,c/=a),t*r<e*n&&(t=-t,e=-e,c=-c,s=-s),{translateX:i,translateY:o,rotate:Math.atan2(e,t)*B,skewX:Math.atan(c)*B,scaleX:s,scaleY:a}};function U(t,e,n,r){function i(t){return t.length?t.pop()+" ":""}return function(o,s){var a=[],c=[];return o=t(o),s=t(s),function(t,r,i,o,s,a){if(t!==i||r!==o){var c=s.push("translate(",null,e,null,n);a.push({i:c-4,x:_(t,i)},{i:c-2,x:_(r,o)})}else(i||o)&&s.push("translate("+i+e+o+n)}(o.translateX,o.translateY,s.translateX,s.translateY,a,c),function(t,e,n,o){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:_(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(o.rotate,s.rotate,a,c),function(t,e,n,o){t!==e?o.push({i:n.push(i(n)+"skewX(",
21null,r)-2,x:_(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(o.skewX,s.skewX,a,c),function(t,e,n,r,o,s){if(t!==n||e!==r){var a=o.push(i(o)+"scale(",null,",",null,")");s.push({i:a-4,x:_(t,n)},{i:a-2,x:_(e,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,s.scaleX,s.scaleY,a,c),o=s=null,function(t){for(var e,n=-1,r=c.length;++n<r;)a[(e=c[n]).i]=e.x(t);return a.join("")}}}var k=U((function(t){return"none"===t?L:(w||(w=document.createElement("DIV"),E=document.documentElement,S=document.defaultView),w.style.transform=t,t=S.getComputedStyle(E.appendChild(w),null).getPropertyValue("transform"),E.removeChild(w),t=t.slice(7,-1).split(","),O(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}),"px, ","px)","deg)"),P=U((function(t){return null==t?L:(C||(C=document.createElementNS("http://www.w3.org/2000/svg","g")),C.setAttribute("transform",t),(t=C.transform.baseVal.consolidate())?(t=t.matrix,O(t.a,t.b,t.c,t.d,t.e,t.f)):L)}),", ",")",")"),D=Math.SQRT2;function R(t){return((t=Math.exp(t))+1/t)/2}var j=function(t,e){var n,r,i=t[0],o=t[1],s=t[2],a=e[0],c=e[1],l=e[2],u=a-i,h=c-o,f=u*u+h*h;if(f<1e-12)r=Math.log(l/s)/D,n=function(t){return[i+t*u,o+t*h,s*Math.exp(D*t*r)]};else{var d=Math.sqrt(f),p=(l*l-s*s+4*f)/(2*s*2*d),g=(l*l-s*s-4*f)/(2*l*2*d),m=Math.log(Math.sqrt(p*p+1)-p),y=Math.log(Math.sqrt(g*g+1)-g);r=(y-m)/D,n=function(t){var e,n=t*r,a=R(m),c=s/(2*d)*(a*(e=D*n+m,((e=Math.exp(2*e))-1)/(e+1))-function(t){return((t=Math.exp(t))-1/t)/2}(m));return[i+c*u,o+c*h,s*a/R(D*n+m)]}}return n.duration=1e3*r,n};function z(t){return function(e,n){var i=t((e=Object(r.d)(e)).h,(n=Object(r.d)(n)).h),o=h(e.s,n.s),s=h(e.l,n.l),a=h(e.opacity,n.opacity);return function(t){return e.h=i(t),e.s=o(t),e.l=s(t),e.opacity=a(t),e+""}}}var Q=z(l),N=z(h);function V(t,e){var n=h((t=Object(r.e)(t)).l,(e=Object(r.e)(e)).l),i=h(t.a,e.a),o=h(t.b,e.b),s=h(t.opacity,e.opacity);return function(e){return t.l=n(e),t.a=i(e),t.b=o(e),t.opacity=s(e),t+""}}function G(t){return function(e,n){var i=t((e=Object(r.c)(e)).h,(n=Object(r.c)(n)).h),o=h(e.c,n.c),s=h(e.l,n.l),a=h(e.opacity,n.opacity);return function(t){return e.h=i(t),e.c=o(t),e.l=s(t),e.opacity=a(t),e+""}}}var H=G(l),Z=G(h);function W(t){return function e(n){function i(e,i){var o=t((e=Object(r.b)(e)).h,(i=Object(r.b)(i)).h),s=h(e.s,i.s),a=h(e.l,i.l),c=h(e.opacity,i.opacity);return function(t){return e.h=o(t),e.s=s(t),e.l=a(Math.pow(t,n)),e.opacity=c(t),e+""}}return n=+n,i.gamma=e,i}(1)}var X=W(l),Y=W(h);function q(t,e){for(var n=0,r=e.length-1,i=e[0],o=new Array(r<0?0:r);n<r;)o[n]=t(i,i=e[++n]);return function(t){var e=Math.max(0,Math.min(r-1,Math.floor(t*=r)));return o[e](t-e)}}var K=function(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t(r/(e-1));return n}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},,,function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"d",(function(){return s})),n.d(e,"b",(function(){return a}));var r=n(48);const i={DEFAULT:-1,LNGLAT:1,METER_OFFSETS:2,LNGLAT_OFFSETS:3,CARTESIAN:0};Object.defineProperty(i,"IDENTITY",{get:()=>r.a.deprecated("COORDINATE_SYSTEM.IDENTITY","COORDINATE_SYSTEM.CARTESIAN")()||0});const o={WEB_MERCATOR:1,GLOBE:2,WEB_MERCATOR_AUTO_OFFSET:4,IDENTITY:0},s={common:0,meters:1,pixels:2},a={click:{handler:"onClick"},panstart:{handler:"onDragStart"},panmove:{handler:"onDrag"},panend:{handler:"onDragEnd"}}},function(t,e,n){"use strict";function r(t){switch(Object.prototype.toString.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return g(t,Error)}}function i(t){return"[object ErrorEvent]"===Object.prototype.toString.call(t)}function o(t){return"[object DOMError]"===Object.prototype.toString.call(t)}function s(t){return"[object DOMException]"===Object.prototype.toString.call(t)}function a(t){return"[object String]"===Object.prototype.toString.call(t)}function c(t){return null===t||"object"!=typeof t&&"function"!=typeof t}function l(t){return"[object Object]"===Object.prototype.toString.call(t)}function u(t){return"undefined"!=typeof Event&&g(t,Event)}function h(t){return"undefined"!=typeof Element&&g(t,Element)}function f(t){return"[object RegExp]"===Object.prototype.toString.call(t)}function d(t){return Boolean(t&&t.then&&"function"==typeof t.then)}function p(t){return l(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function g(t,e){try{return t instanceof e}catch(t){return!1}}n.d(e,"d",(function(){return r})),n.d(e,"e",(function(){return i})),n.d(e,"a",(function(){return o}
21)),n.d(e,"b",(function(){return s})),n.d(e,"k",(function(){return a})),n.d(e,"i",(function(){return c})),n.d(e,"h",(function(){return l})),n.d(e,"f",(function(){return u})),n.d(e,"c",(function(){return h})),n.d(e,"j",(function(){return f})),n.d(e,"m",(function(){return d})),n.d(e,"l",(function(){return p})),n.d(e,"g",(function(){return g}))},,function(t,e,n){"use strict";var r;n.d(e,"d",(function(){return i})),n.d(e,"f",(function(){return o})),n.d(e,"a",(function(){return s})),n.d(e,"c",(function(){return a})),n.d(e,"e",(function(){return c})),n.d(e,"b",(function(){return l}));var i="production",o=(r=window.Thinknum||{API_URL:"",USER:{}}).USER,s=r.API_URL,a=r.DJANGO_API_URL,c=r.REDIRECT_URL,l=r.BRANDING},,function(t,e,n){"use strict";var r=n(311),i="object"==typeof self&&self&&self.Object===Object&&self,o=r.a||i||Function("return this")();e.a=o},function(t,e,n){"use strict";n.d(e,"f",(function(){return h})),n.d(e,"a",(function(){return f})),n.d(e,"g",(function(){return p})),n.d(e,"d",(function(){return m})),n.d(e,"e",(function(){return b})),n.d(e,"b",(function(){return w})),n.d(e,"c",(function(){return E})),n.d(e,"l",(function(){return I})),n.d(e,"m",(function(){return T})),n.d(e,"k",(function(){return M})),n.d(e,"j",(function(){return F})),n.d(e,"o",(function(){return B})),n.d(e,"i",(function(){return L})),n.d(e,"h",(function(){return O})),n.d(e,"n",(function(){return U}));n(70);var r=n(6),i=n(66),o=n(183),s=n(43),a=n.n(s),c=n(0),l=n.n(c),u=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],s=0,a=o.length;s<a;s++,i++)r[i]=o[s];return r};function h(t){return"/datasets/"+t}function f(t){return"https://www.thinknum.com/datasets/"+t}var d={Y:{display:"Y",change:!0,power:Math.pow(10,24)},Z:{display:"Z",change:!0,power:Math.pow(10,21)},E:{display:"E",change:!0,power:Math.pow(10,18)},P:{display:"P",change:!0,power:Math.pow(10,15)},T:{display:"Tn",change:!0,power:Math.pow(10,12)},G:{display:"Bn",change:!0,power:Math.pow(10,9)},M:{display:"M",change:!0,power:Math.pow(10,6)},k:{display:"K",change:!0,power:Math.pow(10,3)},h:{display:"h",change:!1,power:Math.pow(10,2)},da:{display:"da",change:!1,power:Math.pow(10,1)},100:{display:"",change:!1,power:Math.pow(10,0)},d:{display:"d",change:!1,power:Math.pow(10,-1)},c:{display:"e-2",change:!1,power:Math.pow(10,-2)},m:{display:"e-3",change:!1,power:Math.pow(10,-3)},"µ":{display:"µ",change:!0,power:Math.pow(10,-6)},n:{display:"n",change:!0,power:Math.pow(10,-9)},p:{display:"p",change:!0,power:Math.pow(10,-12)},f:{display:"f",change:!0,power:Math.pow(10,-15)},a:{display:"a",change:!0,power:Math.pow(10,-18)},z:{display:"z",change:!0,power:Math.pow(10,-21)},y:{display:"y",change:!0,power:Math.pow(10,-24)}},p=function(t){return t.toLocaleString("en-US")},g=Object(i.format)(".2s");function m(t,e){if(!isNaN(t)){var n=g(t),r=n.replace(/[^a-zA-Z]/g,""),i=d[r];if(i&&i.change)if(e){var o=t/i.power;n=(Math.round(100*o)/100).toFixed(2)+i.display}else n=n.replace(r,i.display);else n=""+Math.round(100*t)/100;return n}}var y=Object(i.format)(".1%"),_=Object(i.format)(".2%"),v=Object(i.format)(".3%");function b(t,e){return function(t){switch(t){case 1:return y;case 2:return _;default:return v}}(e||3)(t).replace(/0+%$/,"%").replace(/\.%$/,"%")}function x(t){return t?"Yes":"No"}function w(t){var e;return"string"==typeof t?e=2===t.length?a()(t,"MM").utc().format("MMM"):4===t.length?a()(t,"YYYY").utc().format("YYYY"):6===t.length?a()(t,"YYYYMM").utc().format("MMM, YYYY"):a()(t).utc().format("MMM Do, YYYY"):"number"==typeof t&&(e=a.a.unix(t).format("MMM Do, YYYY")),e}function E(t){return a()(t).format("MMM Do, YYYY")}var S={};function C(t,e){var n=t,i=function(t,e){var n=S[t];if(void 0!==n)return n[e]}(t,e);return i||(t&&(e===r.f.DATE?n=w(t):e===r.f.DATETIME?n=a()(t).utc().format("MMM Do, YYYY h:mma"):e===r.f.TIME?n=a()(t).utc().format("h:mma"):e===r.f.MONTH?n=a()(t,"MM").format("MMM"):e===r.f.YEAR?n=a()(t).utc().format("YYYY"):e===r.f.YEARMONTH?n=a()(t,"YYYYMM").format("YYYY MMM"):e||(n=a()(t).utc().format("MMM Do, YYYY h:mma"))),n&&function(t,e,n){S[t]||(S[t]={}),S[t][e]=n}(t,e,n),n)}function A(t,e,n){var i=""+t;return e===r.g.NUMBER?n?p(t):m(t,!0):e===r.g.PERCENT?b(t):i}function I(t,e){var n=t?""+t:void 0;return e.type===r.i.BOOLEAN?n=x(t):e.type===r.i.STRING?n=function(t,e){var n=t;return e===r.h.URL&&t&&(n=l.a.createElement("a",{href:t,target:"_blank"},"Open")),n}(t,e.format):e.type===r.i.DATE?n=C(t,e.format):e.type===r.i.NUMBER&&null!==t&&(n=A(t,e.format)),n}function T(t,e){var n=t?""+t:void 0;return e.type===r.i.BOOLEAN?n=x(t):e.type===r.i.STRING?n=""+t:e.type===r.i.DATE?n=C(t,e.format):e.type===r.i.NUMBER&&null!==t&&(n=A(t,e.format,!0)),n}function M(t){var e=t.datasets,n=e&&e.reduce((function(t,e){var n=e.query.tickers;return n?u(t,n):t}),[])||void 0;return Object(o.default)(n)}function F(t){var e=t.datasets;if(e&&0!==e.length){var n=t.selected_dataset;return n?e.filter((function(t){return t.id===n}))[0]:e[0]}}function B(t,e){return e<t.length?{items:t.slice(0,e),remainingCount:t.length-e}:{items:t,remainingCount:void 0}}function L(t,e){return{tickersString:t.map((function(t){return t.split(":")[1]})).join(", ").toUpperCase(),moreTickersCountString:void 0!==e?", +"+e:void 0}}function O(t){var e=t.split(":");if(e.length>1)return l.a.createElement("span",null,e[0].toUpperCase(),":",l.a.createElement("strong",null,e[1].toUpperCase()))}function U(t,e){var n=t+"e"+e;return Number(Math.round(n)+"e-"+e)}},function(t,e,n){"use strict";n.d(e,"p",(function(){return i})),n.d(e,"e",(function(){return o}
vendor: 5,046 bytes, line 21
21)),n.d(e,"a",(function(){return s})),n.d(e,"g",(function(){return a})),n.d(e,"o",(function(){return c})),n.d(e,"n",(function(){return l})),n.d(e,"j",(function(){return u})),n.d(e,"k",(function(){return h})),n.d(e,"l",(function(){return f})),n.d(e,"m",(function(){return d})),n.d(e,"c",(function(){return p})),n.d(e,"d",(function(){return g})),n.d(e,"i",(function(){return m})),n.d(e,"h",(function(){return y})),n.d(e,"f",(function(){return _})),n.d(e,"b",(function(){return v}));var r=n(33);function i(t,e){if(t===e){var n=e[1],r=e[2],i=e[3],o=e[6],s=e[7],a=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=n,t[6]=e[9],t[7]=e[13],t[8]=r,t[9]=o,t[11]=e[14],t[12]=i,t[13]=s,t[14]=a}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}function o(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],s=e[4],a=e[5],c=e[6],l=e[7],u=e[8],h=e[9],f=e[10],d=e[11],p=e[12],g=e[13],m=e[14],y=e[15],_=n*a-r*s,v=n*c-i*s,b=n*l-o*s,x=r*c-i*a,w=r*l-o*a,E=i*l-o*c,S=u*g-h*p,C=u*m-f*p,A=u*y-d*p,I=h*m-f*g,T=h*y-d*g,M=f*y-d*m,F=_*M-v*T+b*I+x*A-w*C+E*S;return F?(F=1/F,t[0]=(a*M-c*T+l*I)*F,t[1]=(i*T-r*M-o*I)*F,t[2]=(g*E-m*w+y*x)*F,t[3]=(f*w-h*E-d*x)*F,t[4]=(c*A-s*M-l*C)*F,t[5]=(n*M-i*A+o*C)*F,t[6]=(m*b-p*E-y*v)*F,t[7]=(u*E-f*b+d*v)*F,t[8]=(s*T-a*A+l*S)*F,t[9]=(r*A-n*T-o*S)*F,t[10]=(p*w-g*b+y*_)*F,t[11]=(h*b-u*w-d*_)*F,t[12]=(a*C-s*I-c*S)*F,t[13]=(n*I-r*C+i*S)*F,t[14]=(g*v-p*x-m*_)*F,t[15]=(u*x-h*v+f*_)*F,t):null}function s(t){var e=t[0],n=t[1],r=t[2],i=t[3],o=t[4],s=t[5],a=t[6],c=t[7],l=t[8],u=t[9],h=t[10],f=t[11],d=t[12],p=t[13],g=t[14],m=t[15];return(e*s-n*o)*(h*m-f*g)-(e*a-r*o)*(u*m-f*p)+(e*c-i*o)*(u*g-h*p)+(n*a-r*s)*(l*m-f*d)-(n*c-i*s)*(l*g-h*d)+(r*c-i*a)*(l*p-u*d)}function a(t,e,n){var r=e[0],i=e[1],o=e[2],s=e[3],a=e[4],c=e[5],l=e[6],u=e[7],h=e[8],f=e[9],d=e[10],p=e[11],g=e[12],m=e[13],y=e[14],_=e[15],v=n[0],b=n[1],x=n[2],w=n[3];return t[0]=v*r+b*a+x*h+w*g,t[1]=v*i+b*c+x*f+w*m,t[2]=v*o+b*l+x*d+w*y,t[3]=v*s+b*u+x*p+w*_,v=n[4],b=n[5],x=n[6],w=n[7],t[4]=v*r+b*a+x*h+w*g,t[5]=v*i+b*c+x*f+w*m,t[6]=v*o+b*l+x*d+w*y,t[7]=v*s+b*u+x*p+w*_,v=n[8],b=n[9],x=n[10],w=n[11],t[8]=v*r+b*a+x*h+w*g,t[9]=v*i+b*c+x*f+w*m,t[10]=v*o+b*l+x*d+w*y,t[11]=v*s+b*u+x*p+w*_,v=n[12],b=n[13],x=n[14],w=n[15],t[12]=v*r+b*a+x*h+w*g,t[13]=v*i+b*c+x*f+w*m,t[14]=v*o+b*l+x*d+w*y,t[15]=v*s+b*u+x*p+w*_,t}function c(t,e,n){var r,i,o,s,a,c,l,u,h,f,d,p,g=n[0],m=n[1],y=n[2];return e===t?(t[12]=e[0]*g+e[4]*m+e[8]*y+e[12],t[13]=e[1]*g+e[5]*m+e[9]*y+e[13],t[14]=e[2]*g+e[6]*m+e[10]*y+e[14],t[15]=e[3]*g+e[7]*m+e[11]*y+e[15]):(r=e[0],i=e[1],o=e[2],s=e[3],a=e[4],c=e[5],l=e[6],u=e[7],h=e[8],f=e[9],d=e[10],p=e[11],t[0]=r,t[1]=i,t[2]=o,t[3]=s,t[4]=a,t[5]=c,t[6]=l,t[7]=u,t[8]=h,t[9]=f,t[10]=d,t[11]=p,t[12]=r*g+a*m+h*y+e[12],t[13]=i*g+c*m+f*y+e[13],t[14]=o*g+l*m+d*y+e[14],t[15]=s*g+u*m+p*y+e[15]),t}function l(t,e,n){var r=n[0],i=n[1],o=n[2];return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*o,t[9]=e[9]*o,t[10]=e[10]*o,t[11]=e[11]*o,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function u(t,e,n,i){var o,s,a,c,l,u,h,f,d,p,g,m,y,_,v,b,x,w,E,S,C,A,I,T,M=i[0],F=i[1],B=i[2],L=Math.hypot(M,F,B);return L<r.b?null:(M*=L=1/L,F*=L,B*=L,o=Math.sin(n),a=1-(s=Math.cos(n)),c=e[0],l=e[1],u=e[2],h=e[3],f=e[4],d=e[5],p=e[6],g=e[7],m=e[8],y=e[9],_=e[10],v=e[11],b=M*M*a+s,x=F*M*a+B*o,w=B*M*a-F*o,E=M*F*a-B*o,S=F*F*a+s,C=B*F*a+M*o,A=M*B*a+F*o,I=F*B*a-M*o,T=B*B*a+s,t[0]=c*b+f*x+m*w,t[1]=l*b+d*x+y*w,t[2]=u*b+p*x+_*w,t[3]=h*b+g*x+v*w,t[4]=c*E+f*S+m*C,t[5]=l*E+d*S+y*C,t[6]=u*E+p*S+_*C,t[7]=h*E+g*S+v*C,t[8]=c*A+f*I+m*T,t[9]=l*A+d*I+y*T,t[10]=u*A+p*I+_*T,t[11]=h*A+g*I+v*T,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t)}function h(t,e,n){var r=Math.sin(n),i=Math.cos(n),o=e[4],s=e[5],a=e[6],c=e[7],l=e[8],u=e[9],h=e[10],f=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=o*i+l*r,t[5]=s*i+u*r,t[6]=a*i+h*r,t[7]=c*i+f*r,t[8]=l*i-o*r,t[9]=u*i-s*r,t[10]=h*i-a*r,t[11]=f*i-c*r,t}function f(t,e,n){var r=Math.sin(n),i=Math.cos(n),o=e[0],s=e[1],a=e[2],c=e[3],l=e[8],u=e[9],h=e[10],f=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=o*i-l*r,t[1]=s*i-u*r,t[2]=a*i-h*r,t[3]=c*i-f*r,t[8]=o*r+l*i,t[9]=s*r+u*i,t[10]=a*r+h*i,t[11]=c*r+f*i,t}function d(t,e,n){var r=Math.sin(n),i=Math.cos(n),o=e[0],s=e[1],a=e[2],c=e[3],l=e[4],u=e[5],h=e[6],f=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=o*i+l*r,t[1]=s*i+u*r,t[2]=a*i+h*r,t[3]=c*i+f*r,t[4]=l*i-o*r,t[5]=u*i-s*r,t[6]=h*i-a*r,t[7]=f*i-c*r,t}function p(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],s=n+n,a=r+r,c=i+i,l=n*s,u=r*s,h=r*a,f=i*s,d=i*a,p=i*c,g=o*s,m=o*a,y=o*c;return t[0]=1-h-p,t[1]=u+y,t[2]=f-m,t[3]=0,t[4]=u-y,t[5]=1-l-p,t[6]=d+g,t[7]=0,t[8]=f+m,t[9]=d-g,t[10]=1-l-h,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function g(t,e,n,r,i,o,s){var a=1/(n-e),c=1/(i-r),l=1/(o-s);
21return t[0]=2*o*a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*o*c,t[6]=0,t[7]=0,t[8]=(n+e)*a,t[9]=(i+r)*c,t[10]=(s+o)*l,t[11]=-1,t[12]=0,t[13]=0,t[14]=s*o*2*l,t[15]=0,t}var m=function(t,e,n,r,i){var o,s=1/Math.tan(e/2);return t[0]=s/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=s,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=i&&i!==1/0?(o=1/(r-i),t[10]=(i+r)*o,t[14]=2*i*r*o):(t[10]=-1,t[14]=-2*r),t};var y=function(t,e,n,r,i,o,s){var a=1/(e-n),c=1/(r-i),l=1/(o-s);return t[0]=-2*a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*c,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*l,t[11]=0,t[12]=(e+n)*a,t[13]=(i+r)*c,t[14]=(s+o)*l,t[15]=1,t};function _(t,e,n,i){var o,s,a,c,l,u,h,f,d,p,g=e[0],m=e[1],y=e[2],_=i[0],v=i[1],b=i[2],x=n[0],w=n[1],E=n[2];return Math.abs(g-x)<r.b&&Math.abs(m-w)<r.b&&Math.abs(y-E)<r.b?function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}(t):(h=g-x,f=m-w,d=y-E,o=v*(d*=p=1/Math.hypot(h,f,d))-b*(f*=p),s=b*(h*=p)-_*d,a=_*f-v*h,(p=Math.hypot(o,s,a))?(o*=p=1/p,s*=p,a*=p):(o=0,s=0,a=0),c=f*a-d*s,l=d*o-h*a,u=h*s-f*o,(p=Math.hypot(c,l,u))?(c*=p=1/p,l*=p,u*=p):(c=0,l=0,u=0),t[0]=o,t[1]=c,t[2]=h,t[3]=0,t[4]=s,t[5]=l,t[6]=f,t[7]=0,t[8]=a,t[9]=u,t[10]=d,t[11]=0,t[12]=-(o*g+s*m+a*y),t[13]=-(c*g+l*m+u*y),t[14]=-(h*g+f*m+d*y),t[15]=1,t)}function v(t,e){var n=t[0],i=t[1],o=t[2],s=t[3],a=t[4],c=t[5],l=t[6],u=t[7],h=t[8],f=t[9],d=t[10],p=t[11],g=t[12],m=t[13],y=t[14],_=t[15],v=e[0],b=e[1],x=e[2],w=e[3],E=e[4],S=e[5],C=e[6],A=e[7],I=e[8],T=e[9],M=e[10],F=e[11],B=e[12],L=e[13],O=e[14],U=e[15];return Math.abs(n-v)<=r.b*Math.max(1,Math.abs(n),Math.abs(v))&&Math.abs(i-b)<=r.b*Math.max(1,Math.abs(i),Math.abs(b))&&Math.abs(o-x)<=r.b*Math.max(1,Math.abs(o),Math.abs(x))&&Math.abs(s-w)<=r.b*Math.max(1,Math.abs(s),Math.abs(w))&&Math.abs(a-E)<=r.b*Math.max(1,Math.abs(a),Math.abs(E))&&Math.abs(c-S)<=r.b*Math.max(1,Math.abs(c),Math.abs(S))&&Math.abs(l-C)<=r.b*Math.max(1,Math.abs(l),Math.abs(C))&&Math.abs(u-A)<=r.b*Math.max(1,Math.abs(u),Math.abs(A))&&Math.abs(h-I)<=r.b*Math.max(1,Math.abs(h),Math.abs(I))&&Math.abs(f-T)<=r.b*Math.max(1,Math.abs(f),Math.abs(T))&&Math.abs(d-M)<=r.b*Math.max(1,Math.abs(d),Math.abs(M))&&Math.abs(p-F)<=r.b*Math.max(1,Math.abs(p),Math.abs(F))&&Math.abs(g-B)<=r.b*Math.max(1,Math.abs(g),Math.abs(B))&&Math.abs(m-L)<=r.b*Math.max(1,Math.abs(m),Math.abs(L))&&Math.abs(y-O)<=r.b*Math.max(1,Math.abs(y),Math.abs(O))&&Math.abs(_-U)<=r.b*Math.max(1,Math.abs(_),Math.abs(U))}},,function(t,e,n){"use strict";var r=n(1902);e.a=new r.a({id:"deck"})},function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(2),i=n.n(r),o=n(0),s=n.n(o),a=n(286),c=function(t){var e,n=t.size,r=t.color,o=t.message,c=t.className,l=t.notActive,u=t.flexCentered;return s.a.createElement("div",{className:i()(a.LoadingIcon,[a[r||"grey"]],[a[n||"small"]],c,(e={},e.loader=!0!==l,e[a.flexCentered]=u,e))},s.a.createElement("svg",{viewBox:"0 0 66 66"},s.a.createElement("circle",{className:a.path,fill:"none",cx:"33",cy:"33",r:"30"})),o&&s.a.createElement("div",{className:a.message},o))}},,function(t,e,n){"use strict";n.d(e,"f",(function(){return o})),n.d(e,"g",(function(){return s})),n.d(e,"d",(function(){return a})),n.d(e,"a",(function(){return c})),n.d(e,"e",(function(){return l})),n.d(e,"i",(function(){return u})),n.d(e,"b",(function(){return h})),n.d(e,"c",(function(){return f})),n.d(e,"h",(function(){return d}));const r=t=>"boolean"==typeof t,i=t=>"function"==typeof t,o=t=>null!==t&&"object"==typeof t,s=t=>o(t)&&t.constructor==={}.constructor,a=t=>t&&"function"==typeof t[Symbol.iterator],c=t=>t&&"function"==typeof t[Symbol.asyncIterator],l=t=>t&&i(t.next),u=t=>"undefined"!=typeof Response&&t instanceof Response||t&&t.arrayBuffer&&t.text&&t.json,h=t=>"undefined"!=typeof Blob&&t instanceof Blob,f=t=>t&&"object"==typeof t&&t.isBuffer,d=t=>(t=>"undefined"!=typeof ReadableStream&&t instanceof ReadableStream||o(t)&&i(t.tee)&&i(t.cancel)&&i(t.getReader))(t)||(t=>o(t)&&i(t.read)&&i(t.pipe)&&r(t.readable))(t)},,,function(t,e,n){"use strict";var r,i;n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return i})),function(t){t.LOCALDATA="localdata",t.WHITESPACE="whitespace",t.HEATMAP="heatmap"}(r||(r={})),function(t){t.FETCH_LOCALDATA="Map Overlays - Fetch Localdata",t.FETCH_LOCALDATA_SUCCESS="Map Overlays - Fetch Localdata (Success)",t.FETCH_LOCALDATA_ERROR="Map Overlays - Fetch Localdata (Error)",t.FETCH_WHITESPACE="Map Overlays - Fetch Whitespace",t.FETCH_WHITESPACE_SUCCESS="Map Overlays - Fetch Whitespace (Success)",t.FETCH_WHITESPACE_ERROR="Map Overlays - Fetch Whitespace (Error)",t.FETCH_HEATMAP="Map Overlays - Fetch Heatmap",t.FETCH_HEATMAP_SUCCESS="Map Overlays - Fetch Heatmap (Success)",t.FETCH_HEATMAP_ERROR="Map Overlays - Fetch Heatmap (Error)",t.FETCH_GEOMETRIES="Map Overlays - Fetch Geometries",t.FETCH_GEOMETRIES_SUCCESS="Map Overlays - Fetch Geometries (Success)",t.FETCH_GEOMETRIES_ERROR="Map Overlays - Fetch Geometries (Error)",t.HIDE_OVERLAY="Map Overlays - Hide Overlay",t.UNHIDE_OVERLAY="Map Overlays - Unhide Overlay"}(i||(i={}))},function(t,e,n){"use strict";e.a=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e){var n=Function.prototype,r=n.bind,i=n.call,o=r&&r.bind(i);t.exports=r?function(t){return t&&o(i,t)}:function(t){return t&&function(){return i.apply(t,arguments)}}},function(t,e,n){(function(e){var n="object",r=function(t){return t&&t.Math==Math&&t};t.exports=r(typeof globalThis==n&&globalThis)||r(typeof window==n&&window)||r(typeof self==n&&self)||r(typeof e==n&&e)||Function("return this")()}).call(this,n(121))},function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return s}));var r,i,o=(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});
21!function(t){t.GET="GET",t.POST="POST",t.DELETE="DELETE",t.PATCH="PATCH",t.PUT="PUT",t.HEAD="HEAD"}(i||(i={}));var s=function(t){function e(n){var r=t.call(this,n)||this;return r.name="QueryCreateRequestedPageNotReadyError",Object.setPrototypeOf(r,e.prototype),r}return o(e,t),e}(Error)},function(t,e,n){"use strict";var r=n(188),i=n(181);var o=function(t,e,n,o){var s=n.length,a=s,c=!o;if(null==t)return!a;for(t=Object(t);s--;){var l=n[s];if(c&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++s<a;){var u=(l=n[s])[0],h=t[u],f=l[1];if(c&&l[2]){if(void 0===h&&!(u in t))return!1}else{var d=new r.a;if(o)var p=o(h,f,u,t,e,d);if(!(void 0===p?Object(i.a)(f,h,3,o,d):p))return!1}}return!0},s=n(55);var a=function(t){return t==t&&!Object(s.a)(t)},c=n(104);var l=function(t){for(var e=Object(c.a)(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,a(i)]}return e};var u=function(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}};var h=function(t){var e=l(t);return 1==e.length&&e[0][2]?u(e[0][0],e[0][1]):function(n){return n===t||o(n,t,e)}},f=n(194);var d=function(t,e,n){var r=null==t?void 0:Object(f.a)(t,e);return void 0===r?n:r},p=n(510),g=n(200),m=n(108);var y=function(t,e){return Object(g.a)(t)&&a(e)?u(Object(m.a)(t),e):function(n){var r=d(n,t);return void 0===r&&r===e?Object(p.a)(n,t):Object(i.a)(e,r,3)}},_=n(116),v=n(31),b=n(492);var x=function(t){return function(e){return Object(f.a)(e,t)}};var w=function(t){return Object(g.a)(t)?Object(b.a)(Object(m.a)(t)):x(t)};e.a=function(t){return"function"==typeof t?t:null==t?_.a:"object"==typeof t?Object(v.a)(t)?y(t[0],t[1]):h(t):w(t)}},function(t,e,n){"use strict";var r=n(890);n.d(e,"a",(function(){return r.a})),n.d(e,"b",(function(){return r.b})),n.d(e,"c",(function(){return r.c})),n.d(e,"d",(function(){return r.d})),n.d(e,"e",(function(){return r.e}))},,,function(t,e,n){"use strict";e.a=function(t){return null!=t&&"object"==typeof t}},,function(t,e,n){"use strict";var r=n(44).a.Symbol;e.a=r},function(t,e,n){"use strict";n.r(e),n.d(e,"formatDefaultLocale",(function(){return y})),n.d(e,"format",(function(){return u})),n.d(e,"formatPrefix",(function(){return h})),n.d(e,"formatLocale",(function(){return m})),n.d(e,"formatSpecifier",(function(){return s})),n.d(e,"precisionFixed",(function(){return _})),n.d(e,"precisionPrefix",(function(){return v})),n.d(e,"precisionRound",(function(){return b}));var r=function(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]},i=function(t){return(t=r(Math.abs(t)))?t[1]:NaN},o=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function s(t){return new a(t)}function a(t){if(!(e=o.exec(t)))throw new Error("invalid format: "+t);var e;this.fill=e[1]||" ",this.align=e[2]||">",this.sign=e[3]||"-",this.symbol=e[4]||"",this.zero=!!e[5],this.width=e[6]&&+e[6],this.comma=!!e[7],this.precision=e[8]&&+e[8].slice(1),this.trim=!!e[9],this.type=e[10]||""}s.prototype=a.prototype,a.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var c,l,u,h,f=function(t,e){var n=r(t,e);if(!n)return t+"";var i=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+i:i.length>o+1?i.slice(0,o+1)+"."+i.slice(o+1):i+new Array(o-i.length+2).join("0")},d={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return f(100*t,e)},r:f,s:function(t,e){var n=r(t,e);if(!n)return t+"";var i=n[0],o=n[1],s=o-(c=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=i.length;return s===a?i:s>a?i+new Array(s-a+1).join("0"):s>0?i.slice(0,s)+"."+i.slice(s):"0."+new Array(1-s).join("0")+r(t,Math.max(0,e+s-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},p=function(t){return t},g=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],m=function(t){var e,n,r=t.grouping&&t.thousands?(e=t.grouping,n=t.thous
21ands,function(t,r){for(var i=t.length,o=[],s=0,a=e[0],c=0;i>0&&a>0&&(c+a+1>r&&(a=Math.max(1,r-c)),o.push(t.substring(i-=a,i+a)),!((c+=a+1)>r));)a=e[s=(s+1)%e.length];return o.reverse().join(n)}):p,o=t.currency,a=t.decimal,l=t.numerals?function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(t.numerals):p,u=t.percent||"%";function h(t){var e=(t=s(t)).fill,n=t.align,i=t.sign,h=t.symbol,f=t.zero,p=t.width,m=t.comma,y=t.precision,_=t.trim,v=t.type;"n"===v?(m=!0,v="g"):d[v]||(null==y&&(y=12),_=!0,v="g"),(f||"0"===e&&"="===n)&&(f=!0,e="0",n="=");var b="$"===h?o[0]:"#"===h&&/[boxX]/.test(v)?"0"+v.toLowerCase():"",x="$"===h?o[1]:/[%p]/.test(v)?u:"",w=d[v],E=/[defgprs%]/.test(v);function S(t){var o,s,u,h=b,d=x;if("c"===v)d=w(t)+d,t="";else{var S=(t=+t)<0;if(t=w(Math.abs(t),y),_&&(t=function(t){t:for(var e,n=t.length,r=1,i=-1;r<n;++r)switch(t[r]){case".":i=e=r;break;case"0":0===i&&(i=r),e=r;break;default:if(i>0){if(!+t[r])break t;i=0}}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),S&&0==+t&&(S=!1),h=(S?"("===i?i:"-":"-"===i||"("===i?"":i)+h,d=("s"===v?g[8+c/3]:"")+d+(S&&"("===i?")":""),E)for(o=-1,s=t.length;++o<s;)if(48>(u=t.charCodeAt(o))||u>57){d=(46===u?a+t.slice(o+1):t.slice(o))+d,t=t.slice(0,o);break}}m&&!f&&(t=r(t,1/0));var C=h.length+t.length+d.length,A=C<p?new Array(p-C+1).join(e):"";switch(m&&f&&(t=r(A+t,A.length?p-d.length:1/0),A=""),n){case"<":t=h+t+d+A;break;case"=":t=h+A+t+d;break;case"^":t=A.slice(0,C=A.length>>1)+h+t+d+A.slice(C);break;default:t=A+h+t+d}return l(t)}return y=null==y?6:/[gprs]/.test(v)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),S.toString=function(){return t+""},S}return{format:h,formatPrefix:function(t,e){var n=h(((t=s(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(i(e)/3))),o=Math.pow(10,-r),a=g[8+r/3];return function(t){return n(o*t)+a}}}};function y(t){return l=m(t),u=l.format,h=l.formatPrefix,l}y({decimal:".",thousands:",",grouping:[3],currency:["$",""]});var _=function(t){return Math.max(0,-i(Math.abs(t)))},v=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(i(e)/3)))-i(Math.abs(t)))},b=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,i(e)-i(t))+1}},,function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"d",(function(){return i})),n.d(e,"e",(function(){return o})),n.d(e,"a",(function(){return s})),n.d(e,"f",(function(){return a})),n.d(e,"c",(function(){return c}));n(458);Math.PI,Math.PI;const r={EPSILON:1e-12,debug:!1,precision:4,printTypes:!1,printDegrees:!1,printRowMajor:!0};function i(t,{precision:e=r.precision}={}){return t=function(t){return Math.round(t/r.EPSILON)*r.EPSILON}(t),"".concat(parseFloat(t.toPrecision(e)))}function o(t){return Array.isArray(t)||ArrayBuffer.isView(t)&&!(t instanceof DataView)}function s(t,e,n){return l(t,t=>Math.max(e,Math.min(n,t)))}function a(t,e,n){return o(t)?t.map((t,r)=>a(t,e[r],n)):n*e+(1-n)*t}function c(t,e,n){const i=r.EPSILON;n&&(r.EPSILON=n);try{if(t===e)return!0;if(o(t)&&o(e)){if(t.length!==e.length)return!1;for(let n=0;n<t.length;++n)if(!c(t[n],e[n]))return!1;return!0}return t&&t.equals?t.equals(e):e&&e.equals?e.equals(t):"number"==typeof t&&"number"==typeof e&&Math.abs(t-e)<=r.EPSILON*Math.max(1,Math.abs(t),Math.abs(e))}finally{r.EPSILON=i}}function l(t,e,n){if(o(t)){const r=t;n=n||function(t){return t.clone?t.clone():new Array(t.length)}(r);for(let i=0;i<n.length&&i<r.length;++i)n[i]=e(t[i],i,n);return n}return e(t)}},function(t,e,n){"use strict";var r=n(181);e.a=function(t,e){return Object(r.a)(t,e)}},function(t,e,n){"use strict";n.d(e,"o",(function(){return f})),n.d(e,"a",(function(){return m})),n.d(e,"j",(function(){return y})),n.d(e,"h",(function(){return _})),n.d(e,"n",(function(){return v})),n.d(e,"m",(function(){return x})),n.d(e,"i",(function(){return w})),n.d(e,"l",(function(){return E})),n.d(e,"b",(function(){return S})),n.d(e,"d",(function(){return C})),n.d(e,"f",(function(){return A})),n.d(e,"g",(function(){return I})),n.d(e,"e",(function(){return T})),n.d(e,"c",(function(){return M})),n.d(e,"k",(function(){return F}));var r,i=n(17),o=n(137),s=n(174),a=n(164),c=n(32),l=n(21),u=function(){return(u=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},h=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};function f(t,e){void 0===e&&(e={}),e||(e={});var n=u({},e);e.datasetQueryGroups&&(n.datasetQueryGroups=JSON.stringify(e.datasetQueryGroups)),e.selectedSeries&&(n.selectedSeries=JSON.stringify(e.selectedSeries
21)),e.selectedMetrics&&(n.selectedMetrics=JSON.stringify(e.selectedMetrics)),e.chartsColors&&(n.chartsColors=JSON.stringify(e.chartsColors)),e.chartOverlays&&(n.chartOverlays=JSON.stringify(e.chartOverlays)),e.columnsMap&&(n.columnsMap=void 0);var r=u({datasetQueries:t.map((function(t){return JSON.stringify(t)}))},n);return a.stringify(r,{arrayFormat:"bracket"})}var d=Object(c.createSelector)((function(t){return t}),(function(t){return a.parse(t,{arrayFormat:"bracket"})})),p=Object(c.createSelector)([d],(function(t){return t.datasetQueries?t.datasetQueries.map((function(t){var e=JSON.parse(t);return Object(o.d)(e)})):[]})),g=Object(c.createSelector)([d],(function(t){t.datasetQueries;var e=h(t,["datasetQueries"]);if(e.helpColumn&&(e.helpColumn=Number(e.helpColumn)),e.datasetQueryGroups&&(e.datasetQueryGroups=JSON.parse(e.datasetQueryGroups)),e.chartsColors&&(e.chartsColors=JSON.parse(e.chartsColors)),e.chartOverlays&&(e.chartOverlays=JSON.parse(e.chartOverlays)),e.selectedSeries)try{var n=JSON.parse(e.selectedSeries);e.selectedSeries=n}catch(t){console.warn("Parsing legacy selectedSeries format")}return e.selectedMetrics&&(e.selectedMetrics=JSON.parse(e.selectedMetrics)),e})),m=Object(c.createSelector)([p,g],(function(t,e){return{datasetQueries:t,extraOptions:e}})),y=function(t){return t.selectedDataset},_=function(t){return t.selectedDataset},v=function(t){return t.selectedView},b=((r={})[l.b.Table]=i.g.TABLE,r[l.b.Map]=i.g.MAP,r[l.b.Chart]=i.g.CHART,r[l.b.Heatmap]=i.g.HEATMAP,r);function x(t){var e=v(t);return e?b[e]:void 0}var w=function(t){return t.selectedChart},E=function(t){return t.selectedHeatmap},S=Object(c.createSelector)((function(t){return t}),(function(t){return t.datasetQueries})),C=Object(c.createSelector)([S],(function(t){return t.map((function(t){return t.id}))})),A=function(t){return t.extraOptions},I=function(t){return t.extraOptions.helpColumn},T=function(t,e){var n=M(t,e);return n&&n.query.tickers||[]},M=function(t,e){var n=S(t);return Object(s.a)(n,(function(t){return t.id===e}))},F=function(t){var e=y(t);return e?M(t,e):void 0}},function(t,e,n){"use strict";var r=n(65),i=Object.prototype,o=i.hasOwnProperty,s=i.toString,a=r.a?r.a.toStringTag:void 0;var c=function(t){var e=o.call(t,a),n=t[a];try{t[a]=void 0;var r=!0}catch(t){}var i=s.call(t);return r&&(e?t[a]=n:delete t[a]),i},l=Object.prototype.toString;var u=function(t){return l.call(t)},h=r.a?r.a.toStringTag:void 0;e.a=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":h&&h in Object(t)?c(t):u(t)}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var r=n(72);t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},function(t,e,n){"use strict";var r,i=n(312),o=n(44).a["__core-js_shared__"],s=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";var a=function(t){return!!s&&s in t},c=n(55),l=n(124),u=/^\[object .+?Constructor\]$/,h=Function.prototype,f=Object.prototype,d=h.toString,p=f.hasOwnProperty,g=RegExp("^"+d.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var m=function(t){return!(!Object(c.a)(t)||a(t))&&(Object(i.a)(t)?g:u).test(Object(l.a)(t))};var y=function(t,e){return null==t?void 0:t[e]};e.a=function(t,e){var n=y(t,e);return m(n)?n:void 0}},,function(t,e){t.exports=function(t){return"function"==typeof t}},function(t,e,n){"use strict";var r,i=n(81),o=n(57),s=n(72),a=n(138),c=n(589),l=n(184),u=n(212),h=n(110).f,f=n(319),d=n(516),p=n(82),g=n(579),m=o.DataView,y=m&&m.prototype,_=o.Int8Array,v=_&&_.prototype,b=o.Uint8ClampedArray,x=b&&b.prototype,w=_&&f(_),E=v&&f(v),S=Object.prototype,C=S.isPrototypeOf,A=p("toStringTag"),I=g("TYPED_ARRAY_TAG"),T=!(!o.ArrayBuffer||!m),M=T&&!!d,F=!1,B={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},L=function(t){return s(t)&&a(B,c(t))};for(r in B)o[r]||(M=!1);if((!M||"function"!=typeof w||w===Function.prototype)&&(w=function(){throw TypeError("Incorrect invocation")},M))for(r in B)o[r]&&d(o[r],w);if((!M||!E||E===S)&&(E=w.prototype,M))for(r in B)o[r]&&d(o[r].prototype,E);if(M&&f(x)!==E&&d(x,E),i&&!a(E,A))for(r in F=!0,h(E,A,{get:function(){return s(this)?this[I]:void 0}}),B)o[r]&&l(o[r],I,r);T&&d&&f(y)!==S&&d(y,S),t.exports={NATIVE_ARRAY_BUFFER:T,NATIVE_ARRAY_BUFFER_VIEWS:M,TYPED_ARRAY_TAG:F&&I,aTypedArray:function(t){if(L(t))return t;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(t){if(d){if(C.call(w,t))return t}else for(var e in B)if(a(B,r)){var n=o[e];if(n&&(t===n||C.call(n,t)))return t}throw TypeError("Target is not a typed array constructor")},exportProto:function(t,e,n){if(i){if(n)for(var r in B){var s=o[r];s&&a(s.prototype,t)&&delete s.prototype[t]}E[t]&&!n||u(E,t,n?e:M&&v[t]||e)}},exportStatic:function(t,e,n){var r,s;if(i){if(d){if(n)for(r in B)(s=o[r])&&a(s,t)&&delete s[t];if(w[t]&&!n)return;try{return u(w,t,n?e:M&&_[t]||e)}catch(t){}}for(r in B)!(s=o[r])||s[t]&&!n||u(s,t,e)}},isView:function(t){var e=c(t);return"DataView"===e||a(B,e)},isTypedArray:L,TypedArray:w,TypedArrayPrototype:E}},function(t,e,n){"use strict";var r,i,o,s;n.d(e,"c",(function(){return r})),n.d(e,"b",(function(){return i})),n.d(e,"d",(function(){return o}
21)),n.d(e,"a",(function(){return s})),function(t){t.DATASET="dataset"}(r||(r={})),function(t){t.RUNNING="running",t.COMPLETE="complete"}(i||(i={})),function(t){t.Ready="Ready",t.Creating="Creating",t.Created="Created",t.ErrorCreating="ErrorCreating",t.FormatUnsupported="FormatedUnsupported",t.Checking="Checking",t.ErrorChecking="ErrorChecking",t.ResultsAvailable="ResultsAvailable",t.ResultsCompleted="ResultsCompleted",t.Cancelled="Cancelled"}(o||(o={})),function(t){t.CREATE="Dataset Queries - Create",t.CREATE_IF_NEEDED="Dataset Queries - Create If Needed",t.CREATE_SUCCEED="Dataset Queries - Create (Succeed)",t.CREATE_ERROR="Dataset Queries - Create (Error)",t.START_CHECKING="Dataset Queries - Start Checking",t.CANCEL_CHECKING="Dataset Queries - Cancel Checking",t.CHECK="Dataset Queries - Check",t.CHECK_SUCCEED="Dataset Queries - Check (Succeed)",t.CHECK_ERROR="Dataset Queries - Check (Error)",t.FETCH="Dataset Queries - Fetch",t.FETCH_NEXT_PAGE="Dataset Queries - Fetch Next Page",t.FETCH_SUCCEED="Dataset Queries - Fetch (Succeed)",t.FETCH_ERROR="Dataset Queries - Fetch (Error)"}(s||(s={}))},,,function(t,e,n){var r=n(36);t.exports=!r((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(57),i=n(578),o=n(579),s=n(1150),a=r.Symbol,c=i("wks");t.exports=function(t){return c[t]||(c[t]=s&&a[t]||(s?a:o)("Symbol."+t))}},function(t,e,n){"use strict";n.d(e,"b",(function(){return R})),n.d(e,"h",(function(){return P})),n.d(e,"e",(function(){return U})),n.d(e,"p",(function(){return j})),n.d(e,"f",(function(){return N})),n.d(e,"j",(function(){return V})),n.d(e,"a",(function(){return y})),n.d(e,"o",(function(){return x})),n.d(e,"t",(function(){return w})),n.d(e,"u",(function(){return L})),n.d(e,"q",(function(){return O})),n.d(e,"v",(function(){return v})),n.d(e,"r",(function(){return b})),n.d(e,"d",(function(){return F})),n.d(e,"g",(function(){return B})),n.d(e,"k",(function(){return E})),n.d(e,"s",(function(){return S})),n.d(e,"i",(function(){return C})),n.d(e,"c",(function(){return A})),n.d(e,"n",(function(){return I})),n.d(e,"l",(function(){return M})),n.d(e,"m",(function(){return T}));var r=n(100),i=n(322);function o(t,e){const n=Object(i.b)([],e,t);return Object(i.a)(n,n,1/n[3]),n}function s(t,e){const n=t%e;return n<0?e+n:n}function a(t,e,n){return t<e?e:t>n?n:t}const c=Math.log2||function(t){return Math.log(t)*Math.LOG2E};var l=n(46),u=n(151),h=n(161);function f(t,e){if(!t)throw new Error(e||"@math.gl/web-mercator: assertion failed.")}const d=Math.PI,p=d/4,g=d/180,m=180/d,y=85.051129,_=1.5;function v(t){return Math.pow(2,t)}function b(t){return c(t)}function x(t){const[e,n]=t;f(Number.isFinite(e)),f(Number.isFinite(n)&&n>=-90&&n<=90,"invalid latitude");const r=n*g;return[512*(e*g+d)/(2*d),512*(d+Math.log(Math.tan(p+.5*r)))/(2*d)]}function w(t){const[e,n]=t,r=e/512*(2*d)-d,i=2*(Math.atan(Math.exp(n/512*(2*d)-d))-p);return[r*m,i*m]}function E(t){const{latitude:e}=t;f(Number.isFinite(e));return b(4003e4*Math.cos(e*g))-9}function S(t){return 512/4003e4/Math.cos(t*g)}function C(t){const{latitude:e,longitude:n,highPrecision:r=!1}=t;f(Number.isFinite(e)&&Number.isFinite(n));const i=Math.cos(e*g),o=512/360/i,s=512/4003e4/i,a={unitsPerMeter:[s,s,s],metersPerUnit:[1/s,1/s,1/s],unitsPerDegree:[512/360,o,s],degreesPerUnit:[.703125,1/o,1/s]};if(r){const t=g*Math.tan(e*g)/i,n=512/360*t/2,r=512/4003e4*t,c=r/o*s;a.unitsPerDegree2=[0,n,r],a.unitsPerMeter2=[c,0,c]}return a}function A(t,e){const[n,r,i]=t,[o,s,a]=e,{unitsPerMeter:c,unitsPerMeter2:l}=C({longitude:n,latitude:r,highPrecision:!0}),u=x(t);u[0]+=o*(c[0]+l[0]*s),u[1]+=s*(c[1]+l[1]*s);const h=w(u),f=(i||0)+(a||0);return Number.isFinite(i)||Number.isFinite(a)?[h[0],h[1],f]:h}function I(t){const{height:e,pitch:n,bearing:r,altitude:i,scale:o,center:s}=t,a=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];l.o(a,a,[0,0,-i]),l.k(a,a,-n*g),l.m(a,a,r*g);const c=o/e;return l.n(a,a,[c,c,c]),s&&l.o(a,a,h.e([],s)),a}function T(t){const{width:e,height:n,altitude:r,pitch:i=0,offset:o,center:s,scale:c,nearZMultiplier:l=1,farZMultiplier:u=1}=t;let{fovy:h=F(_)}=t;void 0!==r&&(h=F(r));const f=h*g,d=i*g,p=B(h);let m=p;s&&(m+=s[2]*c/Math.cos(d)/n);const y=f*(.5+(o?o[1]:0)/n),v=Math.sin(y)*m/Math.sin(a(Math.PI/2-d-y,.01,Math.PI-.01)),b=Math.sin(d)*v+m,x=10*m;return{fov:f,aspect:e/n,focalDistance:p,near:l,far:Math.min(b*u,x)}}function M(t){const{fov:e,aspect:n,near:r,far:i}=T(t);return l.i([],e,n,r,i)}function F(t){return 2*Math.atan(.5/t)*m}function B(t){return.5/Math.tan(.5*t*g)}function L(t,e){const[n,r,i=0]=t;return f(Number.isFinite(n)&&Number.isFinite(r)&&Number.isFinite(i)),o(e,[n,r,i,1])}function O(t,e,n=0){const[r,i,s]=t;if(f(Number.isFinite(r)&&Number.isFinite(i),"invalid pixel coordinate"),Number.isFinite(s)){return o(e,[r,i,s,1])}const a=o(e,[r,i,0,1]),c=o(e,[r,i,1,1]),l=a[2],h=c[2],d=l===h?0:((n||0)-l)/(h-l);return u.c([],a,c,d)}function U(t){const{width:e,height:n,bounds:r,minExtent:i=0,maxZoom:
21o=24,offset:s=[0,0]}=t,[[l,u],[h,d]]=r,p=function(t=0){if("number"==typeof t)return{top:t,bottom:t,left:t,right:t};return f(Number.isFinite(t.top)&&Number.isFinite(t.bottom)&&Number.isFinite(t.left)&&Number.isFinite(t.right)),t}(t.padding),g=x([l,a(d,-y,y)]),m=x([h,a(u,-y,y)]),_=[Math.max(Math.abs(m[0]-g[0]),i),Math.max(Math.abs(m[1]-g[1]),i)],v=[e-p.left-p.right-2*Math.abs(s[0]),n-p.top-p.bottom-2*Math.abs(s[1])];f(v[0]>0&&v[1]>0);const b=v[0]/_[0],E=v[1]/_[1],S=(p.right-p.left)/2/b,C=(p.top-p.bottom)/2/E,A=w([(m[0]+g[0])/2+S,(m[1]+g[1])/2+C]),I=Math.min(o,c(Math.abs(Math.min(b,E))));return f(Number.isFinite(I)),{longitude:A[0],latitude:A[1],zoom:I}}const k=Math.PI/180;function P(t,e=0){const{width:n,height:r,unproject:i}=t,o={targetZ:e},s=i([0,r],o),a=i([n,r],o);let c,l;return(t.fovy?.5*t.fovy*k:Math.atan(.5/t.altitude))>(90-t.pitch)*k-.01?(c=D(t,0,e),l=D(t,n,e)):(c=i([0,0],o),l=i([n,0],o)),[s,a,l,c]}function D(t,e,n){const{pixelUnprojectionMatrix:r}=t,i=o(r,[e,0,1,1]),s=o(r,[e,t.height,1,1]),a=(n*t.distanceScales.unitsPerMeter[2]-i[2])/(s[2]-i[2]),c=w(u.c([],i,s,a));return c.push(n),c}class R{constructor(t={width:1,height:1}){Object(r.a)(this,"latitude",void 0),Object(r.a)(this,"longitude",void 0),Object(r.a)(this,"zoom",void 0),Object(r.a)(this,"pitch",void 0),Object(r.a)(this,"bearing",void 0),Object(r.a)(this,"altitude",void 0),Object(r.a)(this,"fovy",void 0),Object(r.a)(this,"meterOffset",void 0),Object(r.a)(this,"center",void 0),Object(r.a)(this,"width",void 0),Object(r.a)(this,"height",void 0),Object(r.a)(this,"scale",void 0),Object(r.a)(this,"distanceScales",void 0),Object(r.a)(this,"viewMatrix",void 0),Object(r.a)(this,"projectionMatrix",void 0),Object(r.a)(this,"viewProjectionMatrix",void 0),Object(r.a)(this,"pixelProjectionMatrix",void 0),Object(r.a)(this,"pixelUnprojectionMatrix",void 0),Object(r.a)(this,"equals",t=>t instanceof R&&(t.width===this.width&&t.height===this.height&&l.b(t.projectionMatrix,this.projectionMatrix)&&l.b(t.viewMatrix,this.viewMatrix))),Object(r.a)(this,"project",(t,e={})=>{const{topLeft:n=!0}=e,r=L(this.projectPosition(t),this.pixelProjectionMatrix),[i,o]=r,s=n?o:this.height-o;return 2===t.length?[i,s]:[i,s,r[2]]}),Object(r.a)(this,"unproject",(t,e={})=>{const{topLeft:n=!0,targetZ:r}=e,[i,o,s]=t,a=n?o:this.height-o,c=r&&r*this.distanceScales.unitsPerMeter[2],l=O([i,a,s],this.pixelUnprojectionMatrix,c),[u,h,f]=this.unprojectPosition(l);return Number.isFinite(s)?[u,h,f]:Number.isFinite(r)?[u,h,r]:[u,h]}),Object(r.a)(this,"projectPosition",t=>{const[e,n]=x(t);return[e,n,(t[2]||0)*this.distanceScales.unitsPerMeter[2]]}),Object(r.a)(this,"unprojectPosition",t=>{const[e,n]=w(t);return[e,n,(t[2]||0)*this.distanceScales.metersPerUnit[2]]});let{width:e,height:n,altitude:i=null,fovy:o=null}=t;const{latitude:s=0,longitude:a=0,zoom:c=0,pitch:u=0,bearing:f=0,position:d=null,nearZMultiplier:p=.02,farZMultiplier:g=1.01}=t;e=e||1,n=n||1,null===o&&null===i?(i=_,o=F(i)):null===o?o=F(i):null===i&&(i=B(o));const m=v(c);i=Math.max(.75,i);const y=C({longitude:a,latitude:s}),b=x([a,s]);b.push(0),d&&h.a(b,b,h.d([],d,y.unitsPerMeter)),this.projectionMatrix=M({width:e,height:n,scale:m,center:b,pitch:u,fovy:o,nearZMultiplier:p,farZMultiplier:g}),this.viewMatrix=I({height:n,scale:m,center:b,pitch:u,bearing:f,altitude:i}),this.width=e,this.height=n,this.scale=m,this.latitude=s,this.longitude=a,this.zoom=c,this.pitch=u,this.bearing=f,this.altitude=i,this.fovy=o,this.center=b,this.meterOffset=d||[0,0,0],this.distanceScales=y,this._initMatrices(),Object.freeze(this)}_initMatrices(){const{width:t,height:e,projectionMatrix:n,viewMatrix:r}=this,i=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];l.g(i,i,n),l.g(i,i,r),this.viewProjectionMatrix=i;const o=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];l.n(o,o,[t/2,-e/2,1]),l.o(o,o,[1,-1,0]),l.g(o,o,i);const s=l.e([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],o);if(!s)throw new Error("Pixel project matrix not invertible");this.pixelProjectionMatrix=o,this.pixelUnprojectionMatrix=s}projectFlat(t){return x(t)}unprojectFlat(t){return w(t)}getMapCenterByLngLatPosition({lngLat:t,pos:e}){const n=O(e,this.pixelUnprojectionMatrix),r=x(t),i=u.a([],r,u.d([],n));return w(u.a([],this.center,i))}fitBounds(t,e={}){const{width:n,height:r}=this,{longitude:i,latitude:o,zoom:s}
21=U(Object.assign({width:n,height:r,bounds:t},e));return new R({width:n,height:r,longitude:i,latitude:o,zoom:s})}getBounds(t){const e=this.getBoundingRegion(t),n=Math.min(...e.map(t=>t[0])),r=Math.max(...e.map(t=>t[0]));return[[n,Math.min(...e.map(t=>t[1]))],[r,Math.max(...e.map(t=>t[1]))]]}getBoundingRegion(t={}){return P(this,t.z||0)}getLocationAtPoint({lngLat:t,pos:e}){return this.getMapCenterByLngLatPosition({lngLat:t,pos:e})}}function j(t){const{width:e,height:n,pitch:r=0}=t;let{longitude:i,latitude:o,zoom:a,bearing:l=0}=t;(i<-180||i>180)&&(i=s(i+180,360)-180),(l<-180||l>180)&&(l=s(l+180,360)-180);const u=c(n/512);if(a<=u)a=u,o=0;else{const t=n/2/Math.pow(2,a),e=w([0,t])[1];if(o<e)o=e;else{const e=w([0,512-t])[1];o>e&&(o=e)}}return{width:e,height:n,longitude:i,latitude:o,zoom:a,pitch:r,bearing:l}}const z=["longitude","latitude","zoom"],Q={curve:1.414,speed:1.2};function N(t,e,n,r){const{startZoom:i,startCenterXY:o,uDelta:s,w0:a,u1:c,S:l,rho:h,rho2:f,r0:d}=G(t,e,r);if(c<.01){const r={};for(const i of z){const o=t[i],s=e[i];r[i]=(p=n)*s+(1-p)*o}return r}var p;const g=n*l,m=Math.cosh(d)/Math.cosh(d+h*g),y=a*((Math.cosh(d)*Math.tanh(d+h*g)-Math.sinh(d))/f)/c,_=i+b(1/m),v=u.e([],s,y);u.a(v,v,o);const x=w(v);return{longitude:x[0],latitude:x[1],zoom:_}}function V(t,e,n){const r={...Q,...n},{screenSpeed:i,speed:o,maxDuration:s}=r,{S:a,rho:c}=G(t,e,r),l=1e3*a;let u;return u=Number.isFinite(i)?l/(i/c):l/o,Number.isFinite(s)&&u>s?0:u}function G(t,e,n){const r=(n=Object.assign({},Q,n)).curve,i=t.zoom,o=[t.longitude,t.latitude],s=v(i),a=e.zoom,c=[e.longitude,e.latitude],l=v(a-i),h=x(o),f=x(c),d=u.f([],f,h),p=Math.max(t.width,t.height),g=p/l,m=u.b(d)*s,y=Math.max(m,.01),_=r*r,b=(g*g-p*p+_*_*y*y)/(2*p*_*y),w=(g*g-p*p-_*_*y*y)/(2*g*_*y),E=Math.log(Math.sqrt(b*b+1)-b),S=Math.log(Math.sqrt(w*w+1)-w);return{startZoom:i,startCenterXY:h,uDelta:d,w0:p,u1:m,S:(S-E)/r,rho:r,rho2:_,r0:E,r1:S}}},,,,function(t,e,n){var r=n(255),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=Math.PI,i=2*r,o=i-1e-6;function s(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function a(){return new s}s.prototype=a.prototype={constructor:s,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,r){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(t,e,n,r,i,o){this._+="C"+ +t+","+ +e+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(t,e,n,i,o){t=+t,e=+e,n=+n,i=+i,o=+o;var s=this._x1,a=this._y1,c=n-t,l=i-e,u=s-t,h=a-e,f=u*u+h*h;if(o<0)throw new Error("negative radius: "+o);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(f>1e-6)if(Math.abs(h*c-l*u)>1e-6&&o){var d=n-s,p=i-a,g=c*c+l*l,m=d*d+p*p,y=Math.sqrt(g),_=Math.sqrt(f),v=o*Math.tan((r-Math.acos((g+f-m)/(2*y*_)))/2),b=v/_,x=v/y;Math.abs(b-1)>1e-6&&(this._+="L"+(t+b*u)+","+(e+b*h)),this._+="A"+o+","+o+",0,0,"+ +(h*d>u*p)+","+(this._x1=t+x*c)+","+(this._y1=e+x*l)}else this._+="L"+(this._x1=t)+","+(this._y1=e);else;},arc:function(t,e,n,s,a,c){t=+t,e=+e;var l=(n=+n)*Math.cos(s),u=n*Math.sin(s),h=t+l,f=e+u,d=1^c,p=c?s-a:a-s;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+h+","+f:(Math.abs(this._x1-h)>1e-6||Math.abs(this._y1-f)>1e-6)&&(this._+="L"+h+","+f),n&&(p<0&&(p=p%i+i),p>o?this._+="A"+n+","+n+",0,1,"+d+","+(t-l)+","+(e-u)+"A"+n+","+n+",0,1,"+d+","+(this._x1=h)+","+(this._y1=f):p>1e-6&&(this._+="A"+n+","+n+",0,"+ +(p>=r)+","+d+","+(this._x1=t+n*Math.cos(a))+","+(this._y1=e+n*Math.sin(a))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var c=a},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},,,function(t,e,n){"use strict";n.r(e),n.d(e,"scaleBand",(function(){return f})),n.d(e,"scalePoint",(function(){return p})),n.d(e,"scaleIdentity",(function(){return F})),n.d(e,"scaleLinear",(function(){return M})),n.d(e,"scaleLog",(function(){return j})),n.d(e,"scaleSymlog",(function(){return V})),n.d(e,"scaleOrdinal",(function(){return h})),n.d(e,"scaleImplicit",(function(){return u})),n.d(e,"scalePow",(function(){return X})),n.d(e,"scaleSqrt",(function(){return Y})),n.d(e,"scaleQuantile",(function(){return q})),n.d(e,"scaleQuantize",(function(){return K})),n.d(e,"scaleThreshold",(function(){return J})),n.d(e,"scaleTime",(function(){return it})),n.d(e,"scaleUtc",(function(){return ot})),n.d(e,"scaleSequential",(function(){return ct})),n.d(e,"scaleSequentialLog",(function(){return lt})),n.d(e,"scaleSequentialPow",(function(){return ht})),n.d(e,"scaleSequentialSqrt",(function(){return ft})),n.d(e,"scaleSequentialSymlog",(function(){return ut})),n.d(e,"scaleSequentialQuantile",(function(){return dt})),n.d(e,"scaleDiverging",(function(){return gt})),n.d(e,"scaleDivergingLog",(function(){return mt})),n.d(e,"scaleDivergingPow",(function(){return _t})),n.d(e,"scaleDivergingSqrt",(function(){return vt})),n.d(e,"scaleDivergingSymlog",(function(){return yt})),n.d(e,"tickFormat",(function(){return I}));var r=n(14);function i(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function o(t,e){switch(arguments.length){case 0:break;case 1:this.interpolator(t);break;default:this.interpolator(e).domain(t)}return this}var s=n(149),a=Array.prototype,c=a.map,l=a.slice,u={name:"implicit"};function h(){var t=Object(s.a)(),e=[],n=[],r=u;function o(i){var o=i+"",s=t.get(o);if(!s){if(r!==u)return r;t.set(o,s=e.push(i))}return n[(s-1)%n.length]}return o.domain=function(n){if(!arguments.length)return e.slice();e=[],t=Object(s.a)();for(var r,i,a=-1,c=n.length;++a<c;)t.has(i=(r=n[a])+"")||t.set(i,e.push(r));return o},o.range=function(t){return arguments.length?(n=l.call(t),o):n.slice()},o.unknown=function(t){return arguments.length?(r=t,o):r},o.copy=function(){return h(e,n).unknown(r)},i.apply(o,arguments),o}function f(){var t,e,n=h().unknown(void 0),o=n.domain,s=n.range,a=[0,1],c=!1,l=0,u=0,d=.5;function p(){var n=o().length,i=a[1]<a[0],h=a[i-0],f=a[1-i];t=(f-h)/Math.max(1,n-l+2*u),c&&(t=Math.floor(t)),h+=(f-h-t*(n-l))*d,e=t*(1-l),c&&(h=Math.round(h),e=Math.round(e));var p=Object(r.range)(n).map((function(e){return h+t*e}));return s(i?p.reverse():p)}return delete n.unknown,n.domain=function(t){return arguments.length?(o(t),p()):o()}
21,n.range=function(t){return arguments.length?(a=[+t[0],+t[1]],p()):a.slice()},n.rangeRound=function(t){return a=[+t[0],+t[1]],c=!0,p()},n.bandwidth=function(){return e},n.step=function(){return t},n.round=function(t){return arguments.length?(c=!!t,p()):c},n.padding=function(t){return arguments.length?(l=Math.min(1,u=+t),p()):l},n.paddingInner=function(t){return arguments.length?(l=Math.min(1,t),p()):l},n.paddingOuter=function(t){return arguments.length?(u=+t,p()):u},n.align=function(t){return arguments.length?(d=Math.max(0,Math.min(1,t)),p()):d},n.copy=function(){return f(o(),a).round(c).paddingInner(l).paddingOuter(u).align(d)},i.apply(p(),arguments)}function d(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return d(e())},t}function p(){return d(f.apply(null,arguments).paddingInner(1))}var g=n(35),m=function(t){return+t},y=[0,1];function _(t){return t}function v(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:(n=isNaN(e)?NaN:.5,function(){return n});var n}function b(t){var e,n=t[0],r=t[t.length-1];return n>r&&(e=n,n=r,r=e),function(t){return Math.max(n,Math.min(r,t))}}function x(t,e,n){var r=t[0],i=t[1],o=e[0],s=e[1];return i<r?(r=v(i,r),o=n(s,o)):(r=v(r,i),o=n(o,s)),function(t){return o(r(t))}}function w(t,e,n){var i=Math.min(t.length,e.length)-1,o=new Array(i),s=new Array(i),a=-1;for(t[i]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++a<i;)o[a]=v(t[a],t[a+1]),s[a]=n(e[a],e[a+1]);return function(e){var n=Object(r.bisect)(t,e,1,i)-1;return s[n](o[n](e))}}function E(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function S(){var t,e,n,r,i,o,s=y,a=y,u=g.interpolate,h=_;function f(){return r=Math.min(s.length,a.length)>2?w:x,i=o=null,d}function d(e){return isNaN(e=+e)?n:(i||(i=r(s.map(t),a,u)))(t(h(e)))}return d.invert=function(n){return h(e((o||(o=r(a,s.map(t),g.interpolateNumber)))(n)))},d.domain=function(t){return arguments.length?(s=c.call(t,m),h===_||(h=b(s)),f()):s.slice()},d.range=function(t){return arguments.length?(a=l.call(t),f()):a.slice()},d.rangeRound=function(t){return a=l.call(t),u=g.interpolateRound,f()},d.clamp=function(t){return arguments.length?(h=t?b(s):_,d):h!==_},d.interpolate=function(t){return arguments.length?(u=t,f()):u},d.unknown=function(t){return arguments.length?(n=t,d):n},function(n,r){return t=n,e=r,f()}}function C(t,e){return S()(t,e)}var A=n(66),I=function(t,e,n,i){var o,s=Object(r.tickStep)(t,e,n);switch((i=Object(A.formatSpecifier)(null==i?",f":i)).type){case"s":var a=Math.max(Math.abs(t),Math.abs(e));return null!=i.precision||isNaN(o=Object(A.precisionPrefix)(s,a))||(i.precision=o),Object(A.formatPrefix)(i,a);case"":case"e":case"g":case"p":case"r":null!=i.precision||isNaN(o=Object(A.precisionRound)(s,Math.max(Math.abs(t),Math.abs(e))))||(i.precision=o-("e"===i.type));break;case"f":case"%":null!=i.precision||isNaN(o=Object(A.precisionFixed)(s))||(i.precision=o-2*("%"===i.type))}return Object(A.format)(i)};function T(t){var e=t.domain;return t.ticks=function(t){var n=e();return Object(r.ticks)(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return I(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var i,o=e(),s=0,a=o.length-1,c=o[s],l=o[a];return l<c&&(i=c,c=l,l=i,i=s,s=a,a=i),(i=Object(r.tickIncrement)(c,l,n))>0?(c=Math.floor(c/i)*i,l=Math.ceil(l/i)*i,i=Object(r.tickIncrement)(c,l,n)):i<0&&(c=Math.ceil(c*i)/i,l=Math.floor(l*i)/i,i=Object(r.tickIncrement)(c,l,n)),i>0?(o[s]=Math.floor(c/i)*i,o[a]=Math.ceil(l/i)*i,e(o)):i<0&&(o[s]=Math.ceil(c*i)/i,o[a]=Math.floor(l*i)/i,e(o)),t},t}function M(){var t=C(_,_);return t.copy=function(){return E(t,M())},i.apply(t,arguments),T(t)}function F(t){var e;function n(t){return isNaN(t=+t)?e:t}return n.invert=n,n.domain=n.range=function(e){return arguments.length?(t=c.call(e,m),n):t.slice()},n.unknown=function(t){return arguments.length?(e=t,n):e},n.copy=function(){return F(t).unknown(e)},t=arguments.length?c.call(t,m):[0,1],T(n)}var B=function(t,e){var n,r=0,i=(t=t.slice()).length-1,o=t[r],s=t[i];return s<o&&(n=r,r=i,i=n,n=o,o=s,s=n),t[r]=e.floor(o),t[i]=e.ceil(s),t};function L(t){return Math.log(t)}function O(t){return Math.exp(t)}function U(t){return-Math.log(-t)}function k(t){return-Math.exp(-t)}function P(t){return isFinite(t)?+("1e"+t):t<0?0:t}function D(t){return function(e){return-t(-e)}}function R(t){var e,n,i=t(L,O),o=i.domain,s=10;function a(){return e=function(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),function(e){return Math.log(e)/t})}(s),n=function(t){return 10===t?P:t===Math.E?Math.exp:function(e){return Math.pow(t,e)}}(s),o()[0]<0?(e=D(e),n=D(n),t(U,k)):t(L,O),i}return i.base=function(t){return arguments.length?(s=+t,a()):s},i.domain=function(t){return arguments.length?(o(t),a()):o()},i.ticks=function(t){var i,a=o(),c=a[0],l=a[a.length-1];(i=l<c)&&(d=c,c=l,l=d);var u,h,f,d=e(c),p=e(l),g=null==t?10:+t,m=[];if(!(s%1)&&p-d<g){if(d=Math.round(d)-1,p=Math.round(p)+1,c>0){for(;d<p;++d)for(h=1,u=n(d);h<s;++h)if(!((f=u*h)<c)){if(f>l)break;m.push(f)}}else for(;d<p;++d)for(h=s-1,u=n(d);h>=1;--h)if(!((f=u*h)<c)){if(f>l)break;m.push(f)}}else m=Object(r.ticks)(d,p,Math.min(p-d,g)).map(n);return i?m.reverse():m},i.tickFormat=function(t,r){if(null==r&&(r=10===s?".0e":","),"function"!=typeof r&&(r=Object(A.format)(r)),t===1/0)return r;null==t&&(t=10);var o=Math.max(1,s*t/i.ticks().length);return function(t){var i=t/n(Math.round(e(t)));return i*s<s-.5&&(i*=s),i<=o?r(t):""}},i.nice=function(){return o(B(o(),{floor:function(t){return n(Math.floor(e(t)))},ceil:function(t){return n(Math.ceil(e(t)))}}))},i}function j(){var t=R(S()).domain([1,10]);return t.copy=function(){return E(t,j()).base(t.base())},i.apply(t,arguments),t}function z(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function Q(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function N(t){var e=1,n=t(z(e),Q(e));return n.constant=function(n){return arguments.length?t(z(e=+n),Q(e)):e},T(n)}function V(){var t=N(S());return t.copy=function(){return E(t,V()).constant(t.constant())},i.apply(t,arguments)}function G(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function H(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function Z(t){return t<0?-t*t:t*t}function W(t){var e=t(_,_),n=1;function r(){return 1===n?t(_,_):.5===n?t(H,Z):t(G(n),G(1/n))}return e.exponent=function(t){return arguments.length?(n=+t,r()):n},T(e)}function X(){var t=W(S());return t.copy=function(){return E(t,X()).exponent(t.exponent())},i.apply(t,arguments),t}function Y(){return X.apply(null,arguments).exponent(.5)}function q(){var t,e=[],n=[],o=[];function s(){var t=0,i=Math.max(1,n.length);for(o=new Array(i-1);++t<i;)o[t-1]=Object(r.quantile)(e,t/i);return a}function a(e){return isNaN(e=+e)?t:n[Object(r.bisect)(o,e)]}return a.invertExtent=function(t){var r=n.indexOf(t);return r<0?[NaN,NaN]:[r>0?o[r-1]:e[0],r<o.length?o[r]:e[e.length-1]]},a.domain=function(t){if(!arguments.length)return e.slice();e=[];for(var n,i=0,o=t.length;i<o;++i)null==(n=t[i])||isNaN(n=+n)||e.push(n);return e.sort(r.ascending),s()},a.range=function(t){return arguments.length?(n=l.call(t),s()):n.slice()},a.unknown=function(e){return arguments.length?(t=e,a):t},a.quantiles=function(){return o.slice()},a.copy=function(){return q().domain(e).range(n).unknown(t)},i.apply(a,arguments)}function K(){var t,e=0,n=1,o=1,s=[.5],a=[0,1];function c(e){return e<=e?a[Object(r.bisect)(s,e,0,o)]:t}function u(){var t=-1;for(s=new Array(o);++t<o;)s[t]=((t+1)*n-(t-o)*e)/(o+1);return c}return c.domain=function(t){return arguments.length?(e=+t[0],n=+t[1],u()):[e,n]},c.range=function(t){return arguments.length?(o=(a=l.call(t)).length-1,u()):a.slice()},c.invertExtent=function(t){var r=a.indexOf(t);return r<0?[NaN,NaN]:r<1?[e,s[0]]:r>=o?[s[o-1],n]:[s[r-1],s[r]]},c.unknown=function(e){return arguments.length?(t=e,c):c},c.thresholds=function(){return s.slice()},c.copy=function(){return K().domain([e,n]).range(a).unknown(t)},i.apply(T(c),arguments)}function J(){var t,e=[.5],n=[0,1],o=1;function s(i){return i<=i?n[Object(r.bisect)(e,i,0,o)]:t}return s.domain=function(t){return arguments.length?(e=l.call(t),o=Math.min(e.length,n.length-1),s):e.slice()},s.range=function(t){return arguments.length?(n=l.call(t),o=Math.min(e.length,n.length-1),s):n.slice()},s.invertExtent=function(t){var r=n.indexOf(t);return[e[r-1],e[r]]},s.unknown=function(e){return arguments.length?(t=e,s):t},s.copy=function(){return J().domain(e).range(n).unknown(t)},i.apply(s,arguments)}var $=n(18),tt=n(139);function et(t){return new Date(t)}function nt(t){return t instanceof Date?+t:+new Date(+t)}function rt(t,e,n,i,o,s,a,l,u){var h=C(_,_),f=h.invert,d=h.domain,p=u(".%L"),g=u(":%S"),m=u("%I:%M"),y=u("%I %p"),v=u("%a %d"),b=u("%b %d"),x=u("%B"),w=u("%Y"),S=[[a,1,1e3],[a,5,5e3],[a,15,15e3],[a,30,3e4],[s,1,6e4],[s,5,3e5],[s,15,9e5],[s,30,18e5],[o,1,36e5],[o,3,108e5],[o,6,216e5],[o,12,432e5],[i,1,864e5],[i,2,1728e5],[n,1,6048e5],[e,1,2592e6],[e,3,7776e6],[t,1,31536e6]];function A(r){return(a(r)<r?p:s(r)<r?g:o(r)<r?m:i(r)<r?y:e(r)<r?n(r)<r?v:b:t(r)<r?x:w)(r)}function I(e,n,i,o){if(null==e&&(e=10),"number"==typeof e){var s=Math.abs(i-n)/e,a=Object(r.bisector)((function(t){return t[2]})).right(S,s);a===S.length?(o=Object(r.tickStep)(n/31536e6,i/31536e6,e),e=t):a?(o=(a=S[s/S[a-1][2]<S[a][2]/s?a-1:a])[1],e=a[0]):(o=Math.max(Object(r.tickStep)(n,i,e),1),e=l)}return null==o?e:e.every(o)}return h.invert=function(t){return new Date(f(t))},h.domain=function(t){return arguments.length?d(c.call(t,nt)):d().map(et)},h.ticks=function(t,e){var n,r=d(),i=r[0],o=r[r.length-1],s=o<i;return s&&(n=i,i=o,o=n),n=(n=I(t,i,o,e))?n.range(i,o+1):[],s?n.reverse():n},h.tickFormat=function(t,e){return null==e?A:u(e)},h.nice=function(t,e){var n=d();return(t=I(t,n[0],n[n.length-1],e))?d(B(n,t)):h},h.copy=function(){return E(h,rt(t,e,n,i,o,s,a,l,u))},h}var it=function(){return i.apply(rt($.k,$.f,$.j,$.a,$.b,$.d,$.g,$.c,tt.timeFormat).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},ot=function(){return i.apply(rt($.v,$.q,$.u,$.l,$.m,$.o,$.r,$.n,tt.utcFormat).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)};function st(){var t,e,n,r,i,o=0,s=1,a=_,c=!1;function l(e){return isNaN(e=+e)?i:a(0===n?.5:(e=(r(e)-t)*n,c?Math.max(0,Math.min(1,e)):e))}return l.domain=function(i){return arguments.length?(t=r(o=+i[0]),e=r(s=+i[1]),n=t===e?0:1/(e-t),l):[o,s]},l.clamp=function(t){return arguments.length?(c=!!t,l):c},l.interpolator=function(t){return arguments.length?(a=t,l):a},l.unknown=function(t){return arguments.length?(i=t,l):i},function(i){return r=i,t=i(o),e=i(s),n=t===e?0:1/(e-t),l}}function at(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function ct(){var t=T(st()(_));return t.copy=function(){return at(t,ct())},o.apply(t,arguments)}function lt(){var t=R(st()).domain([1,10]);return t.copy=function(){return at(t,lt()).base(t.base())},o.apply(t,arguments)}function ut(){var t=N(st());return t.copy=function(){return at(t,ut()).constant(t.constant())},o.apply(t,arguments)}function ht(){var t=W(st());return t.copy=function(){return at(t,ht()).exponent(t.exponent())},o.apply(t,arguments)}function ft(){return ht.apply(null,arguments).exponent(.5)}function dt(){var t=[],e=_;
21function n(n){if(!isNaN(n=+n))return e((Object(r.bisect)(t,n)-1)/(t.length-1))}return n.domain=function(e){if(!arguments.length)return t.slice();t=[];for(var i,o=0,s=e.length;o<s;++o)null==(i=e[o])||isNaN(i=+i)||t.push(i);return t.sort(r.ascending),n},n.interpolator=function(t){return arguments.length?(e=t,n):e},n.copy=function(){return dt(e).domain(t)},o.apply(n,arguments)}function pt(){var t,e,n,r,i,o,s,a=0,c=.5,l=1,u=_,h=!1;function f(t){return isNaN(t=+t)?s:(t=.5+((t=+o(t))-e)*(t<e?r:i),u(h?Math.max(0,Math.min(1,t)):t))}return f.domain=function(s){return arguments.length?(t=o(a=+s[0]),e=o(c=+s[1]),n=o(l=+s[2]),r=t===e?0:.5/(e-t),i=e===n?0:.5/(n-e),f):[a,c,l]},f.clamp=function(t){return arguments.length?(h=!!t,f):h},f.interpolator=function(t){return arguments.length?(u=t,f):u},f.unknown=function(t){return arguments.length?(s=t,f):s},function(s){return o=s,t=s(a),e=s(c),n=s(l),r=t===e?0:.5/(e-t),i=e===n?0:.5/(n-e),f}}function gt(){var t=T(pt()(_));return t.copy=function(){return at(t,gt())},o.apply(t,arguments)}function mt(){var t=R(pt()).domain([.1,1,10]);return t.copy=function(){return at(t,mt()).base(t.base())},o.apply(t,arguments)}function yt(){var t=N(pt());return t.copy=function(){return at(t,yt()).constant(t.constant())},o.apply(t,arguments)}function _t(){var t=W(pt());return t.copy=function(){return at(t,_t()).exponent(t.exponent())},o.apply(t,arguments)}function vt(){return _t.apply(null,arguments).exponent(.5)}},,function(t,e,n){"use strict";var r=n(312),i=n(201);e.a=function(t){return null!=t&&Object(i.a)(t.length)&&!Object(r.a)(t)}},,,,,function(t,e,n){"use strict";var r=n(71),i=n(63);e.a=function(t){return"symbol"==typeof t||Object(i.a)(t)&&"[object Symbol]"==Object(r.a)(t)}},,function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r={value:function(){}};function i(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r)throw new Error("illegal type: "+t);r[t]=[]}return new o(r)}function o(t){this._=t}function s(t,e){return t.trim().split(/^|\s+/).map((function(t){var n="",r=t.indexOf(".");if(r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))}function a(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}function c(t,e,n){for(var i=0,o=t.length;i<o;++i)if(t[i].name===e){t[i]=r,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=n&&t.push({name:e,value:n}),t}o.prototype=i.prototype={constructor:o,on:function(t,e){var n,r=this._,i=s(t+"",r),o=-1,l=i.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++o<l;)if(n=(t=i[o]).type)r[n]=c(r[n],t.name,e);else if(null==e)for(n in r)r[n]=c(r[n],t.name,null);return this}for(;++o<l;)if((n=(t=i[o]).type)&&(n=a(r[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new o(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),o=0;o<n;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=0,n=(r=this._[t]).length;o<n;++o)r[o].value.apply(e,i)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(e,n)}};var l=i},,function(t,e,n){"use strict";e.a=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}},function(t,e,n){"use strict";var r=n(332),i=n(272),o=n(329),s=Object(o.a)(Object.keys,Object),a=Object.prototype.hasOwnProperty;var c=function(t){if(!Object(i.a)(t))return s(t);var e=[];for(var n in Object(t))a.call(t,n)&&"constructor"!=n&&e.push(n);return e},l=n(94);e.a=function(t){return Object(l.a)(t)?Object(r.a)(t):c(t)}},,,function(t,e,n){var r=n(26),i=n(563),o=n(171),s=n(564),a=n(481),c=n(503),l=i("wks"),u=r.Symbol,h=u&&u.for,f=c?u:u&&u.withoutSetter||s;t.exports=function(t){if(!o(l,t)||!a&&"string"!=typeof l[t]){var e="Symbol."+t;a&&o(u,t)?l[t]=u[t]:l[t]=c&&h?h(e):f(e)}return l[t]}},function(t,e,n){"use strict";var r=n(99);e.a=function(t){if("string"==typeof t||Object(r.a)(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},,function(t,e,n){var r=n(81),i=n(1145),o=n(73),s=n(284),a=Object.defineProperty;e.f=r?a:function(t,e,n){if(o(t),e=s(e,!0),o(n),i)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){"use strict";n.d(e,"c",(function(){return s})),n.d(e,"d",(function(){return a})),n.d(e,"b",(function(){return c})),n.d(e,"e",(function(){return l})),n.d(e,"a",(function(){return u})),n.d(e,"f",(function(){return h})),n.d(e,"h",(function(){return f})),n.d(e,"j",(function(){return d})),n.d(e,"g",(function(){return p})),n.d(e,"i",(function(){return g})),n.d(e,"k",(function(){return m})),n.d(e,"l",(function(){return y}
21));var r=n(15),i=n(113);function o(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var o=Object(i.b)();if(o&&o[t])return o[t].apply(o,r.d(e));throw new Error("No hub defined or "+t+" was not found on the hub, please open a bug report.")}function s(t){var e;try{throw new Error("Sentry syntheticException")}catch(t){e=t}return o("captureException",t,{originalException:t,syntheticException:e})}function a(t,e){var n;try{throw new Error(t)}catch(t){n=t}return o("captureMessage",t,e,{originalException:t,syntheticException:n})}function c(t){return o("captureEvent",t)}function l(t){o("configureScope",t)}function u(t){o("addBreadcrumb",t)}function h(t,e){o("setContext",t,e)}function f(t){o("setExtras",t)}function d(t){o("setTags",t)}function p(t,e){o("setExtra",t,e)}function g(t,e){o("setTag",t,e)}function m(t){o("setUser",t)}function y(t){o("withScope",t)}},,function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return u})),n.d(e,"c",(function(){return f}));var r=n(15),i=n(24),o=n(144),s=n(304),a=function(){function t(t,e,n){void 0===e&&(e=new s.a),void 0===n&&(n=3),this._version=n,this._stack=[],this._stack.push({client:t,scope:e})}return t.prototype._invokeClient=function(t){for(var e,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var o=this.getStackTop();o&&o.client&&o.client[t]&&(e=o.client)[t].apply(e,r.d(n,[o.scope]))},t.prototype.isOlderThan=function(t){return this._version<t},t.prototype.bindClient=function(t){this.getStackTop().client=t,t&&t.setupIntegrations&&t.setupIntegrations()},t.prototype.pushScope=function(){var t=this.getStack(),e=t.length>0?t[t.length-1].scope:void 0,n=s.a.clone(e);return this.getStack().push({client:this.getClient(),scope:n}),n},t.prototype.popScope=function(){return void 0!==this.getStack().pop()},t.prototype.withScope=function(t){var e=this.pushScope();try{t(e)}finally{this.popScope()}},t.prototype.getClient=function(){return this.getStackTop().client},t.prototype.getScope=function(){return this.getStackTop().scope},t.prototype.getStack=function(){return this._stack},t.prototype.getStackTop=function(){return this._stack[this._stack.length-1]},t.prototype.captureException=function(t,e){var n=this._lastEventId=Object(i.m)(),o=e;if(!e){var s=void 0;try{throw new Error("Sentry syntheticException")}catch(t){s=t}o={originalException:t,syntheticException:s}}return this._invokeClient("captureException",t,r.a({},o,{event_id:n})),n},t.prototype.captureMessage=function(t,e,n){var o=this._lastEventId=Object(i.m)(),s=n;if(!n){var a=void 0;try{throw new Error(t)}catch(t){a=t}s={originalException:t,syntheticException:a}}return this._invokeClient("captureMessage",t,e,r.a({},s,{event_id:o})),o},t.prototype.captureEvent=function(t,e){var n=this._lastEventId=Object(i.m)();return this._invokeClient("captureEvent",t,r.a({},e,{event_id:n})),n},t.prototype.lastEventId=function(){return this._lastEventId},t.prototype.addBreadcrumb=function(t,e){var n=this.getStackTop();if(n.scope&&n.client){var o=n.client.getOptions&&n.client.getOptions()||{},s=o.beforeBreadcrumb,a=void 0===s?null:s,c=o.maxBreadcrumbs,l=void 0===c?100:c;if(!(l<=0)){var u=Object(i.l)(),h=r.a({timestamp:u},t),f=a?Object(i.c)((function(){return a(h,e)})):h;null!==f&&n.scope.addBreadcrumb(f,Math.min(l,100))}}},t.prototype.setUser=function(t){var e=this.getStackTop();e.scope&&e.scope.setUser(t)},t.prototype.setTags=function(t){var e=this.getStackTop();e.scope&&e.scope.setTags(t)},t.prototype.setExtras=function(t){var e=this.getStackTop();e.scope&&e.scope.setExtras(t)},t.prototype.setTag=function(t,e){var n=this.getStackTop();n.scope&&n.scope.setTag(t,e)},t.prototype.setExtra=function(t,e){var n=this.getStackTop();n.scope&&n.scope.setExtra(t,e)},t.prototype.setContext=function(t,e){var n=this.getStackTop();n.scope&&n.scope.setContext(t,e)},t.prototype.configureScope=function(t){var e=this.getStackTop();e.scope&&e.client&&t(e.scope)},t.prototype.run=function(t){var e=l(this);try{t(this)}finally{l(e)}},t.prototype.getIntegration=function(t){var e=this.getClient();if(!e)return null;try{return e.getIntegration(t)}catch(e){return o.a.warn("Cannot retrieve integration "+t.id+" from the current Hub"),null}},t.prototype.startSpan=function(t,e){return void 0===e&&(e=!1),this._callExtensionMethod("startSpan",t,e)},t.prototype.traceHeaders=function(){return this._callExtensionMethod("traceHeaders")},t.prototype._callExtensionMethod=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=c(),i=r.__SENTRY__;if(i&&i.extensions&&"function"==typeof i.extensions[t])return i.extensions[t].apply(this,e);
21o.a.warn("Extension method "+t+" couldn't be found, doing nothing.")},t}();function c(){var t=Object(i.f)();return t.__SENTRY__=t.__SENTRY__||{extensions:{},hub:void 0},t}function l(t){var e=c(),n=f(e);return d(e,t),n}function u(){var t=c();return h(t)&&!f(t).isOlderThan(3)||d(t,new a),Object(i.i)()?function(t){try{var e=c().__SENTRY__;if(!e||!e.extensions||!e.extensions.domain)return f(t);var n=e.extensions.domain.active;if(!n)return f(t);if(!h(n)||f(n).isOlderThan(3)){var r=f(t).getStackTop();d(n,new a(r.client,s.a.clone(r.scope)))}return f(n)}catch(e){return f(t)}}(t):f(t)}function h(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)}function f(t){return t&&t.__SENTRY__&&t.__SENTRY__.hub||(t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.hub=new a),t.__SENTRY__.hub}function d(t,e){return!!t&&(t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.hub=e,!0)}},function(t,e,n){var r=n(196);t.exports=function(t){return Object(r(t))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return d})),n.d(e,"c",(function(){return m})),n.d(e,"b",(function(){return b}));var r,i,o=0,s=0,a=0,c=0,l=0,u=0,h="object"==typeof performance&&performance.now?performance:Date,f="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function d(){return l||(f(p),l=h.now()+u)}function p(){l=0}function g(){this._call=this._time=this._next=null}function m(t,e,n){var r=new g;return r.restart(t,e,n),r}function y(){l=(c=h.now())+u,o=s=0;try{!function(){d(),++o;for(var t,e=r;e;)(t=l-e._time)>=0&&e._call.call(null,t),e=e._next;--o}()}finally{o=0,function(){var t,e,n=r,o=1/0;for(;n;)n._call?(o>n._time&&(o=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:r=e);i=t,v(o)}(),l=0}}function _(){var t=h.now(),e=t-c;e>1e3&&(u-=e,c=t)}function v(t){o||(s&&(s=clearTimeout(s)),t-l>24?(t<1/0&&(s=setTimeout(y,t-h.now()-u)),a&&(a=clearInterval(a))):(a||(c=h.now(),a=setInterval(_,1e3)),o=1,f(y)))}g.prototype=m.prototype={constructor:g,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?d():+n)+(null==e?0:+e),this._next||i===this||(i?i._next=this:r=this,i=this),this._call=t,this._time=n,v()},stop:function(){this._call&&(this._call=null,this._time=1/0,v())}};var b=function(t,e,n){var r=new g;return e=null==e?0:+e,r.restart((function(n){r.stop(),t(n+e)}),e,n),r}},function(t,e,n){"use strict";e.a=function(t){return t}},,function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return s}));var r=n(48);let i={};function o(t){i=t}function s(t){r.a.level>0&&i[t]&&i[t].call(...arguments)}},,,,,function(t,e,n){"use strict";n.r(e);var r=n(83);n.d(e,"default",(function(){return r.b})),n.d(e,"WebMercatorViewport",(function(){return r.b})),n.d(e,"getBounds",(function(){return r.h})),n.d(e,"fitBounds",(function(){return r.e})),n.d(e,"normalizeViewportProps",(function(){return r.p})),n.d(e,"flyToViewport",(function(){return r.f})),n.d(e,"getFlyToDuration",(function(){return r.j})),n.d(e,"MAX_LATITUDE",(function(){return r.a})),n.d(e,"lngLatToWorld",(function(){return r.o})),n.d(e,"worldToLngLat",(function(){return r.t})),n.d(e,"worldToPixels",(function(){return r.u})),n.d(e,"pixelsToWorld",(function(){return r.q})),n.d(e,"zoomToScale",(function(){return r.v})),n.d(e,"scaleToZoom",(function(){return r.r})),n.d(e,"altitudeToFovy",(function(){return r.d})),n.d(e,"fovyToAltitude",(function(){return r.g})),n.d(e,"getMeterZoom",(function(){return r.k})),n.d(e,"unitsPerMeter",(function(){return r.s})),n.d(e,"getDistanceScales",(function(){return r.i})),n.d(e,"addMetersToLngLat",(function(){return r.c})),n.d(e,"getViewMatrix",(function(){return r.n})),n.d(e,"getProjectionMatrix",(function(){return r.l})),n.d(e,"getProjectionParameters",(function(){return r.m}))},function(t,e,n){"use strict";var r=Function.prototype.toString;e.a=function(t){if(null!=t){try{return r.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,e,n){"use strict";n.r(e),n.d(e,"transition",(function(){return Q})),n.d(e,"active",(function(){return W})),n.d(e,"interrupt",(function(){return f}));var r=n(5),i=n(101),o=n(115),s=Object(i.a)("start","end","cancel","interrupt"),a=[],c=function(t,e,n,r,i,c){var l=t.__transition;if(l){if(n in l)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function s(l){var u,h,f,d;if(1!==n.state)return c();for(u in i)if((d=i[u]).name===n.name){if(3===d.state)return Object(o.b)(s);4===d.state?(d.state=6,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete i[u]):+u<e&&(d.state=6,d.timer.stop(),d.on.call("cancel",t,t.__data__,d.index,d.group),delete i[u])}if(Object(o.b)((function(){3===n.state&&(n.state=4,n.timer.restart(a,n.delay,n.time),a(l))})),n.state=2,n.on.call("start",t,t.__data__,n.index,n.group),2===n.state){for(n.state=3,r=new Array(f=n.tween.length),u=0,h=-1;u<f;++u)(d=n.tween[u].value.call(t,t.__data__,n.index,n.group))&&(r[++h]=d);r.length=h+1}}function a(e){for(var i=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(c),n.state=5,1
21),o=-1,s=r.length;++o<s;)r[o].call(t,i);5===n.state&&(n.on.call("end",t,t.__data__,n.index,n.group),c())}function c(){for(var r in n.state=6,n.timer.stop(),delete i[e],i)return;delete t.__transition}i[e]=n,n.timer=Object(o.c)((function(t){n.state=1,n.timer.restart(s,n.delay,n.time),n.delay<=t&&s(t-n.delay)}),0,n.time)}(t,n,{name:e,index:r,group:i,on:s,tween:a,time:c.time,delay:c.delay,duration:c.duration,ease:c.ease,timer:null,state:0})};function l(t,e){var n=h(t,e);if(n.state>0)throw new Error("too late; already scheduled");return n}function u(t,e){var n=h(t,e);if(n.state>3)throw new Error("too late; already running");return n}function h(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}var f=function(t,e){var n,r,i,o=t.__transition,s=!0;if(o){for(i in e=null==e?null:e+"",o)(n=o[i]).name===e?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete o[i]):s=!1;s&&delete t.__transition}},d=n(35);function p(t,e){var n,r;return function(){var i=u(this,t),o=i.tween;if(o!==n)for(var s=0,a=(r=n=o).length;s<a;++s)if(r[s].name===e){(r=r.slice()).splice(s,1);break}i.tween=r}}function g(t,e,n){var r,i;if("function"!=typeof n)throw new Error;return function(){var o=u(this,t),s=o.tween;if(s!==r){i=(r=s).slice();for(var a={name:e,value:n},c=0,l=i.length;c<l;++c)if(i[c].name===e){i[c]=a;break}c===l&&i.push(a)}o.tween=i}}function m(t,e,n){var r=t._id;return t.each((function(){var t=u(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)})),function(t){return h(t,r).value[e]}}var y=n(23),_=function(t,e){var n;return("number"==typeof e?d.interpolateNumber:e instanceof y.a?d.interpolateRgb:(n=Object(y.a)(e))?(e=n,d.interpolateRgb):d.interpolateString)(t,e)};function v(t){return function(){this.removeAttribute(t)}}function b(t){return function(){this.removeAttributeNS(t.space,t.local)}}function x(t,e,n){var r,i,o=n+"";return function(){var s=this.getAttribute(t);return s===o?null:s===r?i:i=e(r=s,n)}}function w(t,e,n){var r,i,o=n+"";return function(){var s=this.getAttributeNS(t.space,t.local);return s===o?null:s===r?i:i=e(r=s,n)}}function E(t,e,n){var r,i,o;return function(){var s,a,c=n(this);if(null!=c)return(s=this.getAttribute(t))===(a=c+"")?null:s===r&&a===i?o:(i=a,o=e(r=s,c));this.removeAttribute(t)}}function S(t,e,n){var r,i,o;return function(){var s,a,c=n(this);if(null!=c)return(s=this.getAttributeNS(t.space,t.local))===(a=c+"")?null:s===r&&a===i?o:(i=a,o=e(r=s,c));this.removeAttributeNS(t.space,t.local)}}function C(t,e){return function(n){this.setAttribute(t,e(n))}}function A(t,e){return function(n){this.setAttributeNS(t.space,t.local,e(n))}}function I(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&A(t,i)),n}return i._value=e,i}function T(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&C(t,i)),n}return i._value=e,i}function M(t,e){return function(){l(this,t).delay=+e.apply(this,arguments)}}function F(t,e){return e=+e,function(){l(this,t).delay=e}}function B(t,e){return function(){u(this,t).duration=+e.apply(this,arguments)}}function L(t,e){return e=+e,function(){u(this,t).duration=e}}function O(t,e){if("function"!=typeof e)throw new Error;return function(){u(this,t).ease=e}}function U(t,e,n){var r,i,o=function(t){return(t+"").trim().split(/^|\s+/).every((function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?l:u;return function(){var s=o(this,t),a=s.on;a!==r&&(i=(r=a).copy()).on(e,n),s.on=i}}var k=r.selection.prototype.constructor;function P(t){return function(){this.style.removeProperty(t)}}function D(t,e,n){return function(r){this.style.setProperty(t,e(r),n)}}function R(t,e,n){var r,i;function o(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&D(t,o,n)),r}return o._value=e,o}var j=0;function z(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function Q(t){return Object(r.selection)().transition(t)}function N(){return++j}var V=r.selection.prototype;z.prototype=Q.prototype={constructor:z,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=Object(r.selector)(t));for(var i=this._groups,o=i.length,s=new Array(o),a=0;a<o;++a)for(var l,u,f=i[a],d=f.length,p=s[a]=new Array(d),g=0;g<d;++g)(l=f[g])&&(u=t.call(l,l.__data__,g,f))&&("__data__"in l&&(u.__data__=l.__data__),p[g]=u,c(p[g],e,n,g,p,h(l,n)));return new z(s,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=Object(r.selectorAll)(t));for(var i=this._groups,o=i.length,s=[],a=[],l=0;l<o;++l)for(var u,f=i[l],d=f.length,p=0;p<d;++p)if(u=f[p]){for(var g,m=t.call(u,u.__data__,p,f),y=h(u,n),_=0,v=m.length;_<v;++_)(g=m[_])&&c(g,e,n,_,m,y);s.push(m),a.push(u)}return new z(s,a,e,n)},filter:function(t){"function"!=typeof t&&(t=Object(r.matcher)(t));for(var e=this._groups,n=e.length,i=new Array(n),o=0;o<n;++o)for(var s,a=e[o],c=a.length,l=i[o]=[],u=0;u<c;++u)(s=a[u])&&t.call(s,s.__data__,u,a)&&l.push(s);return new z(i,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,o=Math.min(r,i),s=new Array(r),a=0;a<o;++a)for(var c,l=e[a],u=n[a],h=l.length,f=s[a]=new Array(h),d=0;d<h;++d)(c=l[d]||u[d])&&(f[d]=c);for(;a<r;++a)s[a]=e[a];return new z(s,this._parents,this._name,this._id)},selection:function(){return new k(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=N(),r=this._groups,i=r.length,o=0;o<i;++o)for(var s,a=r[o],l=a.length,u=0;u<l;++u)if(s=a[u]){var f=h(s,e);c(s,t,n,u,a,{time:f.time+f.delay+f.duration,delay:0,duration:f.duration,ease:f.ease})}return new z(r,this._parents,t,n)},call:V.call,nodes:V.nodes,node:V.node,size:V.size,empty:V.empty,each:V.each,on:function(t,e){var n=this._id;return arguments.length<2?h(this.node(),n).on.on(t):this.each(U(n,t,e))},attr:function(t,e){var n=Object(r.namespace)(t),i="transform"===n?d.interpolateTransformSvg:_;return this.attrTween(t,"function"==typeof e?(n.local?S:E)(n,i,m(this,"attr."+t,e)):null==e?(n.local?b:v)(n):(n.local?w:x)(n,i,e))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;var i=Object(r.namespace)(t);return this.tween(n,(i.local?I:T)(i,e))},style:function(t,e,n){var i="transform"==(t+="")?d.interpolateTransformCss:_;return null==e?this.styleTween(t,function(t,e){var n,i,o;return function(){var s=Object(r.style)(this,t),a=(this.style.removeProperty(t),Object(r.style)(this,t));return s===a?null:s===n&&a===i?o:o=e(n=s,i=a)}}(t,i)).on("end.style."+t,P(t)):"function"==typeof e?this.styleTween(t,function(t,e,n){var i,o,s;return function(){var a=Object(r.style)(this,t),c=n(this),l=c+"";return null==c&&(this.style.removeProperty(t),l=c=Object(r.style)(this,t)),a===l?null:a===i&&l===o?s:(o=l,s=e(i=a,c))}}(t,i,m(this,"style."+t,e))).each(function(t,e){var n,r,i,o,s="style."+e,a="end."+s;return function(){var c=u(this,t),l=c.on,h=null==c.value[s]?o||(o=P(e)):void 0;l===n&&i===h||(r=(n=l).copy()).on(a,i=h),c.on=r}}(this._id,t)):this.styleTween(t,function(t,e,n){var i,o,s=n+"";return function(){var a=Object(r.style)(this,t);return a===s?null:a===i?o:o=e(i=a,n)}}(t,i,e),n).on("end.style."+t,null)},styleTween:function(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw new Error;return this.tween(r,R(t,e,null==n?"":n))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(m(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},remove:function(){return this.on("end.remove",(t=this._id,function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}));var t},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,i=h(this.node(),n).tween,o=0,s=i.length;o<s;++o)if((r=i[o]).name===t)return r.value;return null}return this.each((null==e?p:g)(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?M:F)(e,t)):h(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?B:L)(e,t)):h(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(O(e,t)):h(this.node(),e).ease},end:function(){var t,e,n=this,r=n._id,i=n.size();return new Promise((function(o,s){var a={value:s},c={value:function(){0==--i&&o()}};n.each((function(){var n=u(this,r),i=n.on;i!==t&&((e=(t=i).copy())._.cancel.push(a),e._.interrupt.push(a),e._.end.push(c)),n.on=e}))}))}};var G={time:null,delay:0,duration:250,ease:n(355).a};function H(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))return G.time=Object(o.a)(),G;return n}r.selection.prototype.interrupt=function(t){return this.each((function(){f(this,t)}))},r.selection.prototype.transition=function(t){var e,n;t instanceof z?(e=t._id,t=t._name):(e=N(),(n=G).time=Object(o.a)(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,s=0;s<i;++s)for(var a,l=r[s],u=l.length,h=0;h<u;++h)(a=l[h])&&c(a,t,e,h,l,n||H(a,e));return new z(r,this._parents,t,e)};var Z=[null],W=function(t,e){var n,r,i=t.__transition;if(i)for(r in e=null==e?null:e+"",i)if((n=i[r]).state>1&&n.name===e)return new z([[t]],Z,e,+r);return null}},,,function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n(159),i=n(257),o=n(217),s=n(16),a=n(20),c=n(594);const l={offset:"accessor.offset",stride:"accessor.stride",type:"accessor.type",size:"accessor.size",divisor:"accessor.divisor",normalized:"accessor.normalized",integer:"accessor.integer",instanced:"accessor.divisor",isInstanced:"accessor.divisor"},u={removedProps:{},replacedProps:{bytes:"byteLength"},deprecatedProps:l},h={removedProps:l};class f extends r.a{get[Symbol.toStringTag](){return"Buffer"}constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(t,e),this.stubRemovedMethods("Buffer","v6.0",["layout","setLayout","getIndexedParameter"]),this.target=e.target||(this.gl.webgl2?36662:34962),this.initialize(e),Object.seal(this)}getElementCount(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.accessor;return Math.round(this.byteLength/i.a.getBytesPerElement(t))}getVertexCount(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.accessor;return Math.round(this.byteLength/i.a.getBytesPerVertex(t))}initialize(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return ArrayBuffer.isView(t)&&(t={data:t}),Number.isFinite(t)&&(t={byteLength:t}),t=Object(c.a)("Buffer",t,u),this.usage=t.usage||35044,this.debugData=null,this.setAccessor(Object.assign({},t,t.accessor)),t.data?this._setData(t.data,t.offset,t.byteLength):this._setByteLength(t.byteLength||0),this}setProps(t){return"accessor"in(t=Object(c.a)("Buffer",t,h))&&this.setAccessor(t.accessor),this}setAccessor(t){return delete(t=Object.assign({},t)).buffer,this.accessor=new i.a(t),this}reallocate(t){return t>this.byteLength?(this._setByteLength(t),!0):(this.bytesUsed=t,!1)}setData(t){return this.initialize(t)}subData(t){ArrayBuffer.isView(t)&&(t={data:t});const{data:e,offset:n=0,srcOffset:r=0}=t,i=t.byteLength||t.length;Object(a.a)(e);const o=this.gl.webgl2?36663:this.target;return this.gl.bindBuffer(o,this.handle),0!==r||void 0!==i?(Object(s.a)(this.gl),this.gl.bufferSubData(this.target,n,e,r,i)):this.gl.bufferSubData(o,n,e),this.gl.bindBuffer(o,null),this.debugData=null,this._inferType(e),this}copyData(t){let{sourceBuffer:e,readOffset:n=0,writeOffset:r=0,size:i}=t;const{gl:o}=this;return Object(s.a)(o),o.bindBuffer(36662,e.handle),o.bindBuffer(36663,this.handle),o.copyBufferSubData(36662,36663,n,r,i),o.bindBuffer(36662,null),o.bindBuffer(36663,null),this.debugData=null,this}getData(){let{dstData:t=null,srcByteOffset:e=0,dstOffset:n=0,length:r=0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object(s.a)(this.gl);const i=Object(o.c)(this.accessor.type||5126,{clamped:!1}),c=this._getAvailableElementCount(e),l=n;let u,h;t?(h=t.length,u=h-l):(u=Math.min(c,r||c),h=l+u);const f=Math.min(c,u);return r=r||f,Object(a.a)(r<=f),t=t||new i(h),this.gl.bindBuffer(36662,this.handle),this.gl.getBufferSubData(36662,e,t,n,r),this.gl.bindBuffer(36662,null),t}bind(){let{target:t=this.target,index:e=this.accessor&&this.accessor.index,offset:n=0,size:r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return 35345===t||35982===t?void 0!==r?this.gl.bindBufferRange(t,e,this.handle,n,r):(Object(a.a)(0===n),this.gl.bindBufferBase(t,e,this.handle)):this.gl.bindBuffer(t,this.handle),this}unbind(){let{target:t=this.target,index:e=this.accessor&&this.accessor.index}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return 35345===t||35982===t?this.gl.bindBufferBase(t,e,null):this.gl.bindBuffer(t,null),this}getDebugData(){return this.debugData?{data:this.debugData,changed:!1}:(this.debugData=this.getData({length:Math.min(10,this.byteLength)}),{data:this.debugData,changed:!0})}invalidateDebugData(){this.debugData=null}_setData(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.byteLength+e;Object(a.a)(ArrayBuffer.isView(t)),this._trackDeallocatedMemory();const r=this._getTarget();this.gl.bindBuffer(r,this.handle),this.gl.bufferData(r,n,this.usage),this.gl.bufferSubData(r,e,t),this.gl.bindBuffer(r,null),this.debugData=t.slice(0,10),this.bytesUsed=n,this._trackAllocatedMemory(n);const s=Object(o.b)(t);return Object(a.a)(s),this.setAccessor(new i.a(this.accessor,{type:s})),this}_setByteLength(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.usage;Object(a.a)(t>=0),this._trackDeallocatedMemory();let n=t;0===t&&(n=new Float32Array(0));const r=this._getTarget();return this.gl.bindBuffer(r,this.handle),this.gl.bufferData(r,n,e),this.gl.bindBuffer(r,null),this.usage=e,this.debugData=null,this.bytesUsed=t,this._trackAllocatedMemory(t),this}_getTarget(){return this.gl.webgl2?36663:this.target}_getAvailableElementCount(t){const e=t/Object(o.c)(this.accessor.type||5126,{clamped:!1}).BYTES_PER_ELEMENT;return this.getElementCount()-e}_inferType(t){this.accessor.type||this.setAccessor(new i.a(this.accessor,{type:Object(o.b)(t)}))}_createHandle(){return this.gl.createBuffer()}_deleteHandle(){this.gl.deleteBuffer(this.handle),this._trackDeallocatedMemory()}_getParameter(t){this.gl.bindBuffer(this.target,this.handle);const e=this.gl.getBufferParameter(this.target,t);return this.gl.bindBuffer(this.target,null),e}get type(){return s.j.deprecated("Buffer.type","Buffer.accessor.type")(),this.accessor.type}get bytes(){return s.j.deprecated("Buffer.bytes","Buffer.byteLength")(),this.byteLength}setByteLength(t){return s.j.deprecated("setByteLength","reallocate")(),this.reallocate(t)}updateAccessor(t){return s.j.deprecated("updateAccessor(...)","setAccessor(new Accessor(buffer.accessor, ...)")(),this.accessor=new i.a(this.accessor,t),this}}},function(t,e,n){"use strict";var r=n(26),i=n(636),o=n(56),s=n(76),a=n(569).f,c=n(663),l=n(231),u=n(433),h=n(325),f=n(171),d=function(t){var e=function(n,r,o){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,o)}return i(t,this,arguments)};return e.prototype=t.prototype,e};t.exports=function(t,e){var n,i,p,g,m,y,_,v,b=t.target,x=t.global,w=t.stat,E=t.proto,S=x?r:w?r[b]:(r[b]||{}).prototype,C=x?l:l[b]||h(l,b,{})[b],A=C.prototype;for(p in e)n=!c(x?p:b+(w?".":"#")+p,t.forced)&&S&&f(S,p),m=C[p],n&&(y=t.noTargetGet?(v=a(S,p))&&v.value:S[p]),g=n&&y?y:e[p],n&&typeof m==typeof g||(_=t.bind&&n?u(g,r):t.wrap&&n?d(g):E&&s(g)?o(g):g,(t.sham||g&&g.sham||m&&m.sham)&&h(_,"sham",!0),h(C,p,_),E&&(f(l,i=b+"Prototype")||h(l,i,{}),h(l[i],p,g),t.real&&A&&!A[p]&&h(A,p,g)))}},,function(t,e,n){"use strict";n.d(e,"l",(function(){return p})),n.d(e,"b",(function(){return g})),n.d(e,"d",(function(){return m})),n.d(e,"h",(function(){return _})),n.d(e,"e",(function(){return b})),n.d(e,"f",(function(){return x})),n.d(e,"i",(function(){return w})),n.d(e,"c",(function(){return E})),n.d(e,"g",(function(){return S})),n.d(e,"k",(function(){return C})),n.d(e,"a",(
21function(){return I})),n.d(e,"j",(function(){return B}));var r=n(920),i=n(135),o=n(6),s=n(54),a=n(14),c=n(23),l=n(92),u=n(487),h=n(158),f=n(424),d=n(343),p=function(t){return"string"==typeof t?t.split("\n"):t},g=Object(f.a)((function(t){var e=t.split(/\(|\,/).map(parseFloat);return t?[e[1],e[2],e[3],200]:void 0})),m=function(t){var e=y(t),n=e.width,r=e.height,i=n+20,o=r+20,s=Object(d.b)(i,o),a=s.canvas,c=s.ctx;return c.save(),c.fillStyle="#fff",Object(d.a)(c,"rgba(0, 0, 0, 0.10)",10,0,5),Object(d.g)(c,10,10,n,r,3,!0,!1),c.restore(),c.drawImage(e,10,10),a},y=function(t){var e=30*t.length+5+5,n=Object(d.b)(200,e),r=n.canvas,i=n.ctx;return t.forEach((function(t,e){var n=t.color,r=t.group,o=30*e+5;i.fillStyle="#ffffff",i.fillStyle=n;Object(d.g)(i,10,o+8,14,14,3,!0,!1);var s="12px 'Open Sans', sans-serif",a=Object(d.f)(v(p(r)),165,s,i);i.fillStyle="#1e2a34",i.font=s,i.fillText(a,30,o+9+12-1.5)})),r},_=function(t){return"boolean"==typeof t?t?"Yes":"No":t},v=function(t){var e=t.map((function(t){return _(t)})),n=Object(h.a)(e)||"",r=Object(h.a)(Object(u.a)(e))||"",i=n;return r&&(i+=" ("+r+")"),i};function b(t,e){return void 0===e?t:t.filter((function(t){return(void 0===t.active_since||t.active_since<=e)&&(void 0===t.active_until||t.active_until>=e)}))}function x(t,e){return void 0===e?t:t.filter((function(t){return void 0===t.active_since||t.active_since<=e}))}function w(t,e){return e?e.id+"-"+t:t}function E(t,e){var n=e.properties&&e.properties.value,r=t.colorScale;return r&&void 0!==n?function(t){if(!t)return;var e=Object(c.a)(t);if(e){var n=e.rgb();return[n.r,n.g,n.b,255*n.opacity]}return}(r(n)):r&&"whitespace"===t.type?[255,44,44,70]:[0,0,0,0]}function S(t){return t?t.filter((function(t){return t.type===s.b.HEATMAP})):[]}function C(t,e){var n;return!!e&&(!!(null===(n=t.query.functions)||void 0===n?void 0:n.find(r.b))&&e.id.includes(o.v.LISTING_CHANGE))}var A=[100,200],I=[5,25],T=[5,9,13,17,21,25],M=[5,9,13,17,21,25],F=[5,10,15,20,25];function B(t,e,n){var r=t.map((function(t){return Math.abs(e(t))})),o=Object(a.extent)(r),s=function(t,e,n){if(t===i.c.LINEAR)return{radiusScale:s=Object(l.scaleLinear)().domain(n).range(I),radiusLegendRange:T};var r=e.filter((function(t){return 0!==t}));if(t===i.c.LOG){var o=Object(a.extent)(r);return{radiusScale:s=Object(l.scaleLog)().domain(o).range(I),radiusLegendRange:T}}var s=Object(l.scaleQuantile)().domain(r).range(M),c=Object(l.scaleQuantile)().domain(r).range(F).quantiles();return{radiusScale:s,radiusLegendRange:c}}(n,r,o);return{radiusScale:s.radiusScale,radiusLegendRange:s.radiusLegendRange,opacityScale:Object(l.scaleLinear)().domain(o).range(A),absExtent:o}}},,,,function(t,e,n){"use strict";var r,i,o,s;n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return s})),function(t){t[t.POINT=0]="POINT",t[t.VALUE=1]="VALUE"}(r||(r={})),function(t){t.SCATTERPLOT="Scatterplot",t.GEO_JSON="GeoJson"}(i||(i={})),function(t){t[t.LINEAR=0]="LINEAR",t[t.QUANTILE=1]="QUANTILE",t[t.LOG=2]="LOG"}(o||(o={})),function(t){t.UPDATE_STYLE="Map View - Update Style",t.SET_IS_LOCKED="Map View - Set Locked",t.SELECT_VALUE_FIELD="Map View - Select Value Field",t.SET_VALUE_CHANGE_SCALE_TYPE="Map View - Set Value Change Scale Type"}(s||(s={}))},,function(t,e,n){"use strict";n.d(e,"g",(function(){return c})),n.d(e,"i",(function(){return l})),n.d(e,"h",(function(){return u})),n.d(e,"b",(function(){return h})),n.d(e,"c",(function(){return f})),n.d(e,"a",(function(){return d})),n.d(e,"d",(function(){return p})),n.d(e,"f",(function(){return g})),n.d(e,"e",(function(){return m}));var r=n(6),i=n(17),o=n(228),s=n(496),a=function(){return(a=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},c=function(t){return Object(s.a)(t,(function(t){return t.id}))},l=function(t){var e;return(e={}).latest=t,e},u=function(t){var e=t.latest;if(!e)throw new Error("tried to unwrap latest timeslider data from dict that doesn't have it");return e},h=function(t){return t===i.g.TABLE?1e3:t===i.g.CHART?1e5:5e5};function f(t){return void 0!==t.match}function d(t){var e=t.get("x-total");return{total:e?+e:NaN,state:t.get("x-state"),truncated:"true"===t.get("x-truncated")}}function p(t,e){return function(t,e){var n,i=null!==(n=null==e?void 0:e.skipReport)&&void 0!==n&&n,s=function(t){if(!t||0===t.length)return{didChange:!1,filters:t};if(1===t.length&&f(t[0]))return{didChange:!1,filters:t};return{didChange:!0,filters:[{match:r.e.ALL,conditions:t}]}}(t.query.filters),c=s.didChange,l=s.filters;if(!c)return t;i||o.a.warn("Found & patched legacy filters format",{extra:{query:t}});return a(a({},t),{query:a(a({},t.query),{filters:l})})}(g(t,e),e)}var g=function(t,e){var n,i=null!==(n=null==e?void 0:e.skipReport)&&void 0!==n&&n,s=t.query.functions;if(s){var c=s.map((function(e){if(e.function===r.v.LOCALDATA){var n=m(e),s=n.didChange,a=n.func;return s&&!i&&o.a.warn("Found & patched legacy localdata function",{extra:{query:t}}),a}return e}));return a(a({},t),{query:a(a({},t.query),{functions:c})})}return t},m=function(t){return t.parameters.country instanceof Array?{didChange:!1,func:t}:{didChange:!0,func:a(a({},t),{parameters:a(a({},t.parameters),{country:[t.parameters.country]})})}}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){"use strict";n.r(e),n.d(e,"timeFormatDefaultLocale",(function(){return Et})),n.d(e,"timeFormat",(function(){return l})),n.d(e,"timeParse",(function(){return u})),n.d(e,"utcFormat",(function(){return h})),n.d(e,"utcParse",(function(){return f})),n.d(e,"timeFormatLocale",(function(){return a})),n.d(e,"isoFormat",(function(){return St})),n.d(e,"isoParse",(function(){return Ct}));var r=n(18);function i(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function o(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function s(t){return{y:t,m:0,d:1,H:0,M:0,S:0,L:0}}function a(t){var e=t.dateTime,n=t.date,a=t.time,c=t.periods,l=t.days,u=t.shortDays,h=t.months,f=t.shortMonths,p=v(c),g=b(c),m=v(l),y=b(l),_=v(u),Et=b(u),St=v(h),Ct=b(h),At=v(f),It=b(f),Tt={a:function(t){return u[t.getDay()]},A:function(t){return l[t.getDay()]},b:function(t){return f[t.getMonth()]},B:function(t){return h[t.getMonth()]},c:null,d:z,e:z,f:H,H:Q,I:N,j:V,L:G,m:Z,M:W,p:function(t){return c[+(t.getHours()>=12)]},Q:xt,s:wt,S:X,u:Y,U:q,V:K,w:J,W:$,x:null,X:null,y:tt,Y:et,Z:nt,"%":bt},Mt={a:function(t){return u[t.getUTCDay()]},A:function(t){return l[t.getUTCDay()]},b:function(t){return f[t.getUTCMonth()]},B:function(t){return h[t.getUTCMonth()]},c:null,d:rt,e:rt,f:ct,H:it,I:ot,j:st,L:at,m:lt,M:ut,p:function(t){return c[+(t.getUTCHours()>=12)]},Q:xt,s:wt,S:ht,u:ft,U:dt,V:pt,w:gt,W:mt,x:null,X:null,y:yt,Y:_t,Z:vt,"%":bt},Ft={a:function(t,e,n){var r=_.exec(e.slice(n));return r?(t.w=Et[r[0].toLowerCase()],n+r[0].length):-1},A:function(t,e,n){var r=m.exec(e.slice(n));return r?(t.w=y[r[0].toLowerCase()],n+r[0].length):-1},b:function(t,e,n){var r=At.exec(e.slice(n));return r?(t.m=It[r[0].toLowerCase()],n+r[0].length):-1},B:function(t,e,n){var r=St.exec(e.slice(n));return r?(t.m=Ct[r[0].toLowerCase()],n+r[0].length):-1},c:function(t,n,r){return Ot(t,e,n,r)},d:F,e:F,f:P,H:L,I:L,j:B,L:k,m:M,M:O,p:function(t,e,n){var r=p.exec(e.slice(n));return r?(t.p=g[r[0].toLowerCase()],n+r[0].length):-1},Q:R,s:j,S:U,u:w,U:E,V:S,w:x,W:C,x:function(t,e,r){return Ot(t,n,e,r)},X:function(t,e,n){return Ot(t,a,e,n)}
vendor: 6,029 bytes, line 21
21,y:I,Y:A,Z:T,"%":D};function Bt(t,e){return function(n){var r,i,o,s=[],a=-1,c=0,l=t.length;for(n instanceof Date||(n=new Date(+n));++a<l;)37===t.charCodeAt(a)&&(s.push(t.slice(c,a)),null!=(i=d[r=t.charAt(++a)])?r=t.charAt(++a):i="e"===r?" ":"0",(o=e[r])&&(r=o(n,i)),s.push(r),c=a+1);return s.push(t.slice(c,a)),s.join("")}}function Lt(t,e){return function(n){var i,a,c=s(1900);if(Ot(c,t,n+="",0)!=n.length)return null;if("Q"in c)return new Date(c.Q);if("p"in c&&(c.H=c.H%12+12*c.p),"V"in c){if(c.V<1||c.V>53)return null;"w"in c||(c.w=1),"Z"in c?(a=(i=o(s(c.y))).getUTCDay(),i=a>4||0===a?r.p.ceil(i):Object(r.p)(i),i=r.l.offset(i,7*(c.V-1)),c.y=i.getUTCFullYear(),c.m=i.getUTCMonth(),c.d=i.getUTCDate()+(c.w+6)%7):(a=(i=e(s(c.y))).getDay(),i=a>4||0===a?r.e.ceil(i):Object(r.e)(i),i=r.a.offset(i,7*(c.V-1)),c.y=i.getFullYear(),c.m=i.getMonth(),c.d=i.getDate()+(c.w+6)%7)}else("W"in c||"U"in c)&&("w"in c||(c.w="u"in c?c.u%7:"W"in c?1:0),a="Z"in c?o(s(c.y)).getUTCDay():e(s(c.y)).getDay(),c.m=0,c.d="W"in c?(c.w+6)%7+7*c.W-(a+5)%7:c.w+7*c.U-(a+6)%7);return"Z"in c?(c.H+=c.Z/100|0,c.M+=c.Z%100,o(c)):e(c)}}function Ot(t,e,n,r){for(var i,o,s=0,a=e.length,c=n.length;s<a;){if(r>=c)return-1;if(37===(i=e.charCodeAt(s++))){if(i=e.charAt(s++),!(o=Ft[i in d?e.charAt(s++):i])||(r=o(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return Tt.x=Bt(n,Tt),Tt.X=Bt(a,Tt),Tt.c=Bt(e,Tt),Mt.x=Bt(n,Mt),Mt.X=Bt(a,Mt),Mt.c=Bt(e,Mt),{format:function(t){var e=Bt(t+="",Tt);return e.toString=function(){return t},e},parse:function(t){var e=Lt(t+="",i);return e.toString=function(){return t},e},utcFormat:function(t){var e=Bt(t+="",Mt);return e.toString=function(){return t},e},utcParse:function(t){var e=Lt(t,o);return e.toString=function(){return t},e}}}var c,l,u,h,f,d={"-":"",_:" ",0:"0"},p=/^\s*\d+/,g=/^%/,m=/[\\^$*+?|[\]().{}]/g;function y(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(e)+i:i)}function _(t){return t.replace(m,"\\$&")}function v(t){return new RegExp("^(?:"+t.map(_).join("|")+")","i")}function b(t){for(var e={},n=-1,r=t.length;++n<r;)e[t[n].toLowerCase()]=n;return e}function x(t,e,n){var r=p.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function w(t,e,n){var r=p.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function E(t,e,n){var r=p.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function S(t,e,n){var r=p.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function C(t,e,n){var r=p.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function A(t,e,n){var r=p.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function I(t,e,n){var r=p.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function T(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function M(t,e,n){var r=p.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function F(t,e,n){var r=p.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function B(t,e,n){var r=p.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function L(t,e,n){var r=p.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function O(t,e,n){var r=p.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function U(t,e,n){var r=p.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function k(t,e,n){var r=p.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function P(t,e,n){var r=p.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function D(t,e,n){var r=g.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function R(t,e,n){var r=p.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function j(t,e,n){var r=p.exec(e.slice(n));return r?(t.Q=1e3*+r[0],n+r[0].length):-1}function z(t,e){return y(t.getDate(),e,2)}function Q(t,e){return y(t.getHours(),e,2)}function N(t,e){return y(t.getHours()%12||12,e,2)}function V(t,e){return y(1+r.a.count(Object(r.k)(t),t),e,3)}function G(t,e){return y(t.getMilliseconds(),e,3)}function H(t,e){return G(t,e)+"000"}function Z(t,e){return y(t.getMonth()+1,e,2)}function W(t,e){return y(t.getMinutes(),e,2)}function X(t,e){return y(t.getSeconds(),e,2)}function Y(t){var e=t.getDay();return 0===e?7:e}function q(t,e){return y(r.h.count(Object(r.k)(t),t),e,2)}function K(t,e){var n=t.getDay();return t=n>=4||0===n?Object(r.i)(t):r.i.ceil(t),y(r.i.count(Object(r.k)(t),t)+(4===Object(r.k)(t).getDay()),e,2)}function J(t){return t.getDay()}function $(t,e){return y(r.e.count(Object(r.k)(t),t),e,2)}function tt(t,e){return y(t.getFullYear()%100,e,2)}function et(t,e){return y(t.getFullYear()%1e4,e,4)}function nt(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+y(e/60|0,"0",2)+y(e%60,"0",2)}function rt(t,e){return y(t.getUTCDate(),e,2)}function it(t,e){return y(t.getUTCHours(),e,2)}function ot(t,e){return y(t.getUTCHours()%12||12,e,2)}function st(t,e){return y(1+r.l.count(Object(r.v)(t),t),e,3)}function at(t,e){return y(t.getUTCMilliseconds(),e,3)}function ct(t,e){return at(t,e)+"000"}function lt(t,e){return y(t.getUTCMonth()+1,e,2)}function ut(t,e){return y(t.getUTCMinutes(),e,2)}function ht(t,e){return y(t.getUTCSeconds(),e,2)}function ft(t){var e=t.getUTCDay();return 0===e?7:e}function dt(t,e){return y(r.s.count(Object(r.v)(t),t),e,2)}function pt(t,e){var n=t.getUTCDay();return t=n>=4||0===n?Object(r.t)(t):r.t.ceil(t),y(r.t.count(Object(r.v)(t),t)+(4===Object(r.v)(t).getUTCDay()),e,2)}function gt(t){return t.getUTCDay()}function mt(t,e){return y(r.p.count(Object(r.v)(t),t),e,2)}function yt(t,e){return y(t.getUTCFullYear()%100,e,2)}function _t(t,e){return y(t.getUTCFullYear()%1e4,e,4)}function vt(){return"+0000"}function bt(){return"%"}function xt(t){return+t}function wt(t){return Math.floor(+t/1e3)}function Et(t){return c=a(t),l=c.format,u=c.parse,h=c.utcFormat,f=c.utcParse,c}Et({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
21ay","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var St=Date.prototype.toISOString?function(t){return t.toISOString()}:h("%Y-%m-%dT%H:%M:%S.%LZ");var Ct=+new Date("2000-01-01T00:00:00.000Z")?function(t){var e=new Date(t);return isNaN(e)?null:e}:f("%Y-%m-%dT%H:%M:%S.%LZ")},,function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return o}));var r=n(68);function i(t){if(!Number.isFinite(t))throw new Error("Invalid number ".concat(t));return t}function o(t,e,n=""){if(r.b.debug&&!function(t,e){if(t.length!==e)return!1;for(let e=0;e<t.length;++e)if(!Number.isFinite(t[e]))return!1;return!0}(t,e))throw new Error("math.gl: ".concat(n," some fields set to invalid numbers'"));return t}},function(t,e,n){"use strict";var r=n(31),i=n(200),o=n(424);var s=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,c=function(t){var e=Object(o.a)(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(s,(function(t,n,r,i){e.push(r?i.replace(a,"$1"):n||t)})),e})),l=n(299);e.a=function(t,e){return Object(r.a)(t)?t:Object(i.a)(t,e)?[t]:c(Object(l.a)(t))}},,function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(24),i=Object(r.f)(),o="Sentry Logger ",s=function(){function t(){this._enabled=!1}return t.prototype.disable=function(){this._enabled=!1},t.prototype.enable=function(){this._enabled=!0},t.prototype.log=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._enabled&&Object(r.c)((function(){i.console.log(o+"[Log]: "+t.join(" "))}))},t.prototype.warn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._enabled&&Object(r.c)((function(){i.console.warn(o+"[Warn]: "+t.join(" "))}))},t.prototype.error=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._enabled&&Object(r.c)((function(){i.console.error(o+"[Error]: "+t.join(" "))}))},t}();i.__SENTRY__=i.__SENTRY__||{};var a=i.__SENTRY__.logger||(i.__SENTRY__.logger=new s)},,function(t,e,n){"use strict";var r=function(){this.__data__=[],this.size=0},i=n(156);var o=function(t,e){for(var n=t.length;n--;)if(Object(i.a)(t[n][0],e))return n;return-1},s=Array.prototype.splice;var a=function(t){var e=this.__data__,n=o(e,t);return!(n<0)&&(n==e.length-1?e.pop():s.call(e,n,1),--this.size,!0)};var c=function(t){var e=this.__data__,n=o(e,t);return n<0?void 0:e[n][1]};var l=function(t){return o(this.__data__,t)>-1};var u=function(t,e){var n=this.__data__,r=o(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};function h(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}h.prototype.clear=r,h.prototype.delete=a,h.prototype.get=c,h.prototype.has=l,h.prototype.set=u;e.a=h},function(t,e,n){"use strict";var r=n(74),i=n(44),o=Object(r.a)(i.a,"Map");e.a=o},function(t,e,n){"use strict";var r=n(74),i=n(44),o=Object(r.a)(i.a,"Set");e.a=o},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));function r(){}function i(t,e){var n=new r;if(t instanceof r)t.each((function(t,e){n.set(e,t)}));else if(Array.isArray(t)){var i,o=-1,s=t.length;if(null==e)for(;++o<s;)n.set(o,t[o]);else for(;++o<s;)n.set(e(i=t[o],o,t),i)}else if(t)for(var a in t)n.set(a,t[a]);return n}r.prototype=i.prototype={constructor:r,has:function(t){return"$"+t in this},get:function(t){return this["$"+t]}
21,set:function(t,e){return this["$"+t]=e,this},remove:function(t){var e="$"+t;return e in this&&delete this[e]},clear:function(){for(var t in this)"$"===t[0]&&delete this[t]},keys:function(){var t=[];for(var e in this)"$"===e[0]&&t.push(e.slice(1));return t},values:function(){var t=[];for(var e in this)"$"===e[0]&&t.push(this[e]);return t},entries:function(){var t=[];for(var e in this)"$"===e[0]&&t.push({key:e.slice(1),value:this[e]});return t},size:function(){var t=0;for(var e in this)"$"===e[0]&&++t;return t},empty:function(){for(var t in this)if("$"===t[0])return!1;return!0},each:function(t){for(var e in this)"$"===e[0]&&t(this[e],e.slice(1),this)}};var o=i;function s(){}var a=o.prototype;function c(t,e){var n=new s;if(t instanceof s)t.each((function(t){n.add(t)}));else if(t){var r=-1,i=t.length;if(null==e)for(;++r<i;)n.add(t[r]);else for(;++r<i;)n.add(e(t[r],r,t))}return n}s.prototype=c.prototype={constructor:s,has:a.has,add:function(t){return this["$"+(t+="")]=t,this},remove:a.remove,clear:a.clear,values:a.keys,size:a.size,empty:a.empty,each:a.each}},function(t,e,n){"use strict";function r(t,e){if(!t)throw new Error(e||"deck.gl: assertion failed.")}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"e",(function(){return o})),n.d(e,"b",(function(){return s})),n.d(e,"d",(function(){return a})),n.d(e,"c",(function(){return c})),n.d(e,"g",(function(){return l})),n.d(e,"f",(function(){return f}));var r=n(33);function i(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function o(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function s(t){var e=t[0],n=t[1];return Math.hypot(e,n)}function a(t,e){return t[0]=-e[0],t[1]=-e[1],t}function c(t,e,n,r){var i=e[0],o=e[1];return t[0]=i+r*(n[0]-i),t[1]=o+r*(n[1]-o),t}function l(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[4]*i+n[12],t[1]=n[1]*r+n[5]*i+n[13],t}var u,h,f=function(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t};u=new r.a(2),r.a!=Float32Array&&(u[0]=0,u[1]=0),h=u},,,function(t,e,n){var r=n(76);t.exports=function(t){return"object"==typeof t?null!==t:r(t)}
21},function(t,e,n){"use strict";n.r(e);var r=n(103),i=n(59),o=n(574),s=n(478);e.default=function(t,e){if(null==t)return{};var n=Object(r.a)(Object(s.a)(t),(function(t){return[t]}));return e=Object(i.a)(e),Object(o.a)(t,n,(function(t,n){return e(t,n[0])}))}},function(t,e,n){"use strict";e.a=function(t,e){return t===e||t!=t&&e!=e}},,function(t,e,n){"use strict";e.a=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(16),i=n(595),o=n(197),s=n(20),a=n(216),c=n(698);const l="Resource subclass must define virtual methods";class u{get[Symbol.toStringTag](){return"Resource"}constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object(r.b)(t);const{id:n,userData:i={}}=e;this.gl=t,this.gl2=t,this.id=n||Object(a.c)(this[Symbol.toStringTag]),this.userData=i,this._bound=!1,this._handle=e.handle,void 0===this._handle&&(this._handle=this._createHandle()),this.byteLength=0,this._addStats()}toString(){return"".concat(this[Symbol.toStringTag]||this.constructor.name,"(").concat(this.id,")")}get handle(){return this._handle}delete(){let{deleteChildren:t=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const e=this._handle&&this._deleteHandle(this._handle);return this._handle&&this._removeStats(),this._handle=null,e&&t&&e.filter(Boolean).forEach(t=>t.delete()),this}bind(){let t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.handle;return"function"!=typeof e?(this._bindHandle(e),this):(this._bound?t=e():(this._bindHandle(this.handle),this._bound=!0,t=e(),this._bound=!1,this._bindHandle(null)),t)}unbind(){this.bind(null)}getParameter(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=Object(o.b)(this.gl,t),Object(s.a)(t);const n=(this.constructor.PARAMETERS||{})[t];if(n){const t=Object(r.i)(this.gl);if(!((!("webgl2"in n)||t)&&(!("extension"in n)||this.gl.getExtension(n.extension)))){const e=n.webgl1,r="webgl2"in n?n.webgl2:n.webgl1;return t?r:e}}return this._getParameter(t,e)}getParameters(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{parameters:e,keys:n}=t,i=this.constructor.PARAMETERS||{},s=Object(r.i)(this.gl),a={},c=e||Object.keys(i);for(const e of c){const r=i[e];if(r&&(!("webgl2"in r)||s)&&(!("extension"in r)||this.gl.getExtension(r.extension))){const i=n?Object(o.a)(this.gl,e):e;a[i]=this.getParameter(e,t),n&&"GLenum"===r.type&&(a[i]=Object(o.a)(this.gl,a[i]))}}return a}setParameter(t,e){t=Object(o.b)(this.gl,t),Object(s.a)(t);const n=(this.constructor.PARAMETERS||{})[t];if(n){const t=Object(r.i)(this.gl);if(!((!("webgl2"in n)||t)&&(!("extension"in n)||this.gl.getExtension(n.extension))))throw new Error("Parameter not available on this platform");"GLenum"===n.type&&(e=Object(o.b)(e))}return this._setParameter(t,e),this}setParameters(t){for(const e in t)this.setParameter(e,t[e]);return this}stubRemovedMethods(t,e,n){return Object(c.a)(this,t,e,n)}initialize(t){}_createHandle(){throw new Error(l)}_deleteHandle(){throw new Error(l)}_bindHandle(t){throw new Error(l)}_getOptsFromHandle(){throw new Error(l)}_getParameter(t,e){throw new Error(l)}_setParameter(t,e){throw new Error(l)}_context(){return this.gl.luma=this.gl.luma||{},this.gl.luma}_addStats(){const t=this[Symbol.toStringTag],e=i.a.get("Resource Counts");e.get("Resources Created").incrementCount(),e.get("".concat(t,"s Created")).incrementCount(),e.get("".concat(t,"s Active")).incrementCount()}_removeStats(){const t=this[Symbol.toStringTag];i.a.get("Resource Counts").get("".concat(t,"s Active")).decrementCount()}_trackAllocatedMemory(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this[Symbol.toStringTag];this._trackAllocatedMemoryForContext(t,e),this._trackAllocatedMemoryForContext(t,e,this.gl.canvas&&this.gl.canvas.id),this.byteLength=t}_trackAllocatedMemoryForContext(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this[Symbol.toStringTag],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";const r=i.a.get("Memory Usage".concat(n));r.get("GPU Memory").addCount(t),r.get("".concat(e," Memory")).addCount(t)}_trackDeallocatedMemory(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this[Symbol.toStringTag];this._trackDeallocatedMemoryForContext(t),this._trackDeallocatedMemoryForContext(t,this.gl.canvas&&this.gl.canvas.id
21),this.byteLength=0}_trackDeallocatedMemoryForContext(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this[Symbol.toStringTag],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=i.a.get("Memory Usage".concat(e));n.get("GPU Memory").subtractCount(this.byteLength),n.get("".concat(t," Memory")).subtractCount(this.byteLength)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return Mt})),n.d(e,"b",(function(){return I})),n.d(e,"c",(function(){return x})),n.d(e,"d",(function(){return _t})),n.d(e,"e",(function(){return it})),n.d(e,"f",(function(){return C})),n.d(e,"g",(function(){return Ct})),n.d(e,"h",(function(){return A})),n.d(e,"i",(function(){return pt})),n.d(e,"j",(function(){return It})),n.d(e,"k",(function(){return Tt})),n.d(e,"l",(function(){return At})),n.d(e,"m",(function(){return St}));var r=n(29),i=n(69),o=n(524),s=n(650),a=n(279),c=n(499),l=n(155),u=n(644),h=n(0),f=n.n(h),d=n(528),p=n(327),g=n(14),m=n(92),y=n(366),_=n(484),v=function(t,e){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function b(t,e){function n(){this.constructor=t}v(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var x,w=function(){return(w=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function E(t,e){void 0===e&&(e={});var n=e.insertAt;if(t&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=t:i.appendChild(document.createTextNode(t))}}!function(t){t.LINE_CHART="line",t.BAR_CHART="bar",t.PIE_CHART="pie",t.SCATTERPLOT="scatterplot",t.WORD_CLOUD="wordcloud",t.TIME_BAR_CHART="time_bar",t.TIME_WORD_CLOUD="time_wordcloud",t.HISTOGRAM="histogram"}(x||(x={}));E(".Chart_chart__bBkk2 {\n height: 100%;\n}\n.Chart_chart__bBkk2 svg {\n border: none !important;\n}");var S,C=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ref=null,e.createChart=function(){if(!e.ref)throw new Error("missing ref");e.ref.innerHTML="",e.props.type===r.ChartType.LINE?e.createLineChart(e.ref):e.props.type===r.ChartType.BAR?e.createBarChart(e.ref):e.props.type===r.ChartType.PIE?e.createPieChart(e.ref):e.props.type===r.ChartType.HISTOGRAM&&e.createHistogramChart(e.ref)},e.updateChart=function(){var t=e.props,n=t.type,i=t.series,o=e.createCommonConfig();if(n===r.ChartType.LINE)o=w(w({},o),{type:r.ChartType.LINE,series:i});else if(n===r.ChartType.BAR){var s=e.props.horizontalBars?r.ChartOrientation.HORIZONTAL:r.ChartOrientation.VERTICAL;o=w(w({},o),{type:r.ChartType.BAR,orientation:s,series:i})}else n===r.ChartType.PIE?o=w(w({},o),{type:r.ChartType.PIE,series:i,wantsLegend:!0}):n===r.ChartType.HISTOGRAM&&(o=w(w({},o),{type:r.ChartType.HISTOGRAM,series:i}));e.chart&&e.chart.updateConfig(o)},e.handleLineChartColorChangeRequest=function(t,n){var i=e.props.onChartColorChangeRequest;i&&i({chartType:r.ChartType.LINE,position:n,seriesId:t})},e.handleCategoricalChartColorChangeRequest=function(t,n,i){var o=e.props.onChartColorChangeRequest;o&&o({chartType:r.ChartType.BAR,position:i,seriesId:t,category:n})},e}return b(e,t),e.prototype.render=function(){var t=this,e=this.props.className;return Object(h.createElement)("div",{className:e,ref:function(e){return t.ref=e}})},e.prototype.componentDidMount=function(){this.createChart()},e.prototype.componentDidUpdate=function(t){var e=this.props,n=e.series,o=e.type;if(!Object(i.a)(n,t.series)){if(o===r.ChartType.LINE){var s=this.props.series,a=t.series.map((function(t){return t.useDots})),c=s.map((function(t){return t.useDots}));if(!Object(i.a)(a,c))return void this.createChart()}o===t.type&&n.length===t.series.length?this.updateChart():this.createChart()}},e.prototype.createCommonConfig=function(){var t=this.props,e=t.axesConfig,n=t.compact,r=t.legend,i=t.theme,o=this.props;return void 0===n&&(n=!1),void 0===r&&(r=!0),{wantsCompact:n,title:void 0,url:"",margin:o.margin,size:o.size,wantsSourceLink:!1,wantsLegend:r,axesConfig:e,theme:i}},e.prototype.createLineChart=function(t){var e=this.props.series,n=this.createCommonConfig();this.chart=new r.LineChart(w(w({},n),{axesConfig:n.axesConfig,onLegendDotClicked:this.handleLineChartColorChangeRequest,type:r.ChartType.LINE,series:e}),t)},e.prototype.createBarChart=function(t){var e=this.props.series,n=this.createCommonConfig(),i=this.props.horizontalBars?r.ChartOrientation.HORIZONTAL:r.ChartOrientation.VERTICAL;this.chart=new r.BarChart(w(w({},n),{onCategoryClicked:this.handleCategoricalChartColorChangeRequest,type:r.ChartType.BAR,orientation:i,series:e,axesConfig:n.axesConfig}),t)},e.prototype.createPieChart=function(t){var e=this.props.series,n=this.createCommonConfig();this.chart=new r.PieChart(w(w({},n),{type:r.ChartType.PIE,series:e,onCategoryClicked:this.handleCategoricalChartColorChangeRequest,wantsLegend:!0}),t)},e.prototype.createHistogramChart=function(t){var e=this.props.series,n=this.createCommonConfig();this.chart=new r.HistogramChart(w(w({},n),{type:r.ChartType.HISTOGRAM,series:e}),t)},e}(h.PureComponent),A=((S={})[x.LINE_CHART]=r.ChartType.LINE,S[x.BAR_CHART]=r.ChartType.BAR,S[x.PIE_CHART]=r.ChartType.PIE,S[x.TIME_BAR_CHART]=r.ChartType.BAR,S[x.HISTOGRAM]=r.ChartType.HISTOGRAM,S),I=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.getLeftMarginForBarSeries=function(t){var n=Object(s.a)(t,(function(t){return e.getMaxLenghthForSerie(t)})),r=Object(a.a)(n);return e.getLeftMargin(r)},e.getMaxLenghthForSerie=function(t){return Object(a.a)(t.data.map((function(t){return e.maxDataItemLength(t)})))},e.maxDataItemLength=function(t){var e=t.category;return null==e?0:e.length},e.getLeftMargin=function(t){return void 0===t?120:t<11?100:t<16?120:170},e}return b(e,t),e.prototype.render=function(){var t=this,e=this.props,n=e.legend,i=e.axesConfig,s=e.type,h=e.series,d=e.forcedHeight,p=e.onChartColorChangeRequest,g=e.compact,m=e.margin,y=e.theme,_=!1,v=250,b=55,E=50,S=10,I=void 0,T=A[s];
21if(s===x.TIME_BAR_CHART)_=!0,v=500,b=this.getLeftMarginForBarSeries(h);else if(T===r.ChartType.BAR){var M=h,F=Object(u.a)(M,(function(t,e){return t+e.data.length}),0);F>5&&(_=!0,b=this.getLeftMarginForBarSeries(h),v=25*F)}else s===x.PIE_CHART?(b=25,E=25,S=25,I=25,v=500):s===x.HISTOGRAM&&(v=130,b=15,E=15,S=25,I=25);v=Object(a.a)([250,Object(c.a)([v,600])]);var B=void 0!==d?d:v,L=w({top:S,right:E,bottom:I,left:b},Object(l.default)(m||{},o.default));return f.a.createElement(C,{className:"Chart_chart__bBkk2",type:T,series:h,margin:L,legend:n,size:{height:B},axesConfig:i,ref:function(e){return t.chartRef=e},horizontalBars:_,onChartColorChangeRequest:p,compact:g,theme:y})},e.prototype.updateChart=function(){var t=this.chartRef;t&&t.updateChart()},e.prototype.downloadImage=function(){var t=this.getSVG();Object(d.saveSvgAsPng)(t,"chart.png",{backgroundColor:"white",selectorRemap:function(t){var e=t.split(" ");e[0];return e.slice(1).join(" ")}})},e.prototype.getSVG=function(){return this.chartRef.chart.svg.node()},e.prototype.shouldComponentUpdate=function(t){return!Object(i.a)(this.props,t)},e}(f.a.Component),T={value:function(){}};function M(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r)throw new Error("illegal type: "+t);r[t]=[]}return new F(r)}function F(t){this._=t}function B(t,e){return t.trim().split(/^|\s+/).map((function(t){var n="",r=t.indexOf(".");if(r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))}function L(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}function O(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=T,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=n&&t.push({name:e,value:n}),t}F.prototype=M.prototype={constructor:F,on:function(t,e){var n,r=this._,i=B(t+"",r),o=-1,s=i.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++o<s;)if(n=(t=i[o]).type)r[n]=O(r[n],t.name,e);else if(null==e)for(n in r)r[n]=O(r[n],t.name,null);return this}for(;++o<s;)if((n=(t=i[o]).type)&&(n=L(r[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new F(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),o=0;o<n;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=0,n=(r=this._[t]).length;o<n;++o)r[o].value.apply(e,i)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(e,n)}};var U=Object.freeze({__proto__:null,dispatch:M}).dispatch,k=Math.PI/180,P=function(){var t=[256,256],e=D,n=R,r=z,i=j,o=j,s=Q,a=N,c=Z,l=[],u=1/0,h=U("word","end"),f=null,d=Math.random,p={},g=W;function m(e,n,r){t[0],t[1];for(var i,o,s,a,l,u=n.x,h=n.y,f=Math.sqrt(t[0]*t[0]+t[1]*t[1]),p=c(t),g=d()<.5?1:-1,m=-g;(i=p(m+=g))&&(o=~~i[0],s=~~i[1],!(Math.min(Math.abs(o),Math.abs(s))>=f));)if(n.x=u+o,n.y=h+s,!(n.x+n.x0<0||n.y+n.y0<0||n.x+n.x1>t[0]||n.y+n.y1>t[1]||r&&G(n,e,t[0])||r&&(l=r,!((a=n).x+a.x1>l[0].x&&a.x+a.x0<l[1].x&&a.y+a.y1>l[0].y&&a.y+a.y0<l[1].y)))){for(var y,_=n.sprite,v=n.width>>5,b=t[0]>>5,x=n.x-(v<<4),w=127&x,E=32-w,S=n.y1-n.y0,C=(n.y+n.y0)*b+(x>>5),A=0;A<S;A++){y=0;for(var I=0;I<=v;I++)e[C+I]|=y<<E|(I<v?(y=_[A*v+I])>>>w:0);C+=b}return delete n.sprite,!0}return!1}return p.canvas=function(t){return arguments.length?(g=X(t),p):g},p.start=function(){var c=function(t){t.width=t.height=1;var e=Math.sqrt(t.getContext("2d").getImageData(0,0,1,1).data.length>>2);t.width=2048/e,t.height=2048/e;var n=t.getContext("2d");return n.fillStyle=n.strokeStyle="red",n.textAlign="center",{context:n,ratio:e}}(g()),y=function(t){var e=[],n=-1;for(;++n<t;)e[n]=0;return e}((t[0]>>5)*t[1]),_=null,v=l.length,b=-1,x=[],w=l.map((function(t,c){return t.text=e.call(this,t,c),t.font=n.call(this,t,c),t.style=i.call(this,t,c),t.weight=o.call(this,t,c),t.rotate=s.call(this,t,c),t.size=~~r.call(this,t,c),t.padding=a.call(this,t,c),t})).sort((function(t,e){return e.size-t.size}));return f&&clearInterval(f),f=setInterval(E,0),E(),p;function E(){for(var e=Date.now();Date.now()-e<u&&++b<v&&f;){var n=w[b];n.x=t[0]*(d()+.5)>>1,n.y=t[1]*(d()+.5)>>1,V(c,n,w,b),n.hasText&&m(y,n,_)&&(x.push(n),h.call("word",p,n),_?H(_,n):_=[{x:n.x+n.x0,y:n.y+n.y0},{x:n.x+n.x1,y:n.y+n.y1}],n.x-=t[0]>>1,n.y-=t[1]>>1)}b>=v&&(p.stop(),h.call("end",p,x,_))}},p.stop=function(){return f&&(clearInterval(f),f=null),p},p.timeInterval=function(t){return arguments.length?(u=null==t?1/0:t,p):u},p.words=function(t){return arguments.length?(l=t,p):l},p.size=function(e){return arguments.length?(t=[+e[0],+e[1]],p):t},p.font=function(t){return arguments.length?(n=X(t),p):n},p.fontStyle=function(t){return arguments.length?(i=X(t),p):i},p.fontWeight=function(t){return arguments.length?(o=X(t),p):o},p.rotate=function(t){return arguments.length?(s=X(t),p):s},p.text=function(t){return arguments.length?(e=X(t),p):e},p.spiral=function(t){return arguments.length?(c=Y[t]||t,p):c},p.fontSize=function(t){return arguments.length?(r=X(t),p):r},p.padding=function(t){return arguments.length?(a=X(t),p):a},p.random=function(t){return arguments.length?(d=t,p):d},p.on=function(){var t=h.on.apply(h,arguments);return t===h?p:t},p};function D(t){return t.text}function R(){return"serif"}function j(){return"normal"}function z(t){return Math.sqrt(t.value)}function Q(){return 30*(~~(6*Math.random())-3)}function N(){return 1}function V(t,e,n,r){if(!e.sprite){var i=t.context,o=t.ratio;i.clearRect(0,0,2048/o,2048/o);var s=0,a=0,c=0,l=n.length;for(--r;++r<l;){e=n[r],i.save(),i.font=e.style+" "+e.weight+" "+~~((e.size+1)/o)+"px "+e.font;var u=i.measureText(e.text+"m").width*o,h=e.size<<1;if(e.rotate){var f=Math.sin(e.rotate*k),d=Math.cos(e.rotate*k),p=u*d,g=u*f,m=h*d,y=h*f;u=Math.max(Math.abs(p+y),Math.abs(p-y))+31>>5<<5,h=~~Math.max(Math.abs(g+m),Math.abs(g-m))}else u=u+31>>5<<5;if(h>c&&(c=h),s+u>=2048&&(s=0,a+=c,c=0),a+h>=2048)break;
21i.translate((s+(u>>1))/o,(a+(h>>1))/o),e.rotate&&i.rotate(e.rotate*k),i.fillText(e.text,0,0),e.padding&&(i.lineWidth=2*e.padding,i.strokeText(e.text,0,0)),i.restore(),e.width=u,e.height=h,e.xoff=s,e.yoff=a,e.x1=u>>1,e.y1=h>>1,e.x0=-e.x1,e.y0=-e.y1,e.hasText=!0,s+=u}for(var _=i.getImageData(0,0,2048/o,2048/o).data,v=[];--r>=0;)if((e=n[r]).hasText){for(var b=(u=e.width)>>5,x=(h=e.y1-e.y0,0);x<h*b;x++)v[x]=0;if(null==(s=e.xoff))return;a=e.yoff;for(var w=0,E=-1,S=0;S<h;S++){for(x=0;x<u;x++){var C=b*S+(x>>5),A=_[2048*(a+S)+(s+x)<<2]?1<<31-x%32:0;v[C]|=A,w|=A}w?E=S:(e.y0++,h--,S--,a++)}e.y1=e.y0+E,e.sprite=v.slice(0,(e.y1-e.y0)*b)}}}function G(t,e,n){n>>=5;for(var r,i=t.sprite,o=t.width>>5,s=t.x-(o<<4),a=127&s,c=32-a,l=t.y1-t.y0,u=(t.y+t.y0)*n+(s>>5),h=0;h<l;h++){r=0;for(var f=0;f<=o;f++)if((r<<c|(f<o?(r=i[h*o+f])>>>a:0))&e[u+f])return!0;u+=n}return!1}function H(t,e){var n=t[0],r=t[1];e.x+e.x0<n.x&&(n.x=e.x+e.x0),e.y+e.y0<n.y&&(n.y=e.y+e.y0),e.x+e.x1>r.x&&(r.x=e.x+e.x1),e.y+e.y1>r.y&&(r.y=e.y+e.y1)}function Z(t){var e=t[0]/t[1];return function(t){return[e*(t*=.1)*Math.cos(t),t*Math.sin(t)]}}function W(){return document.createElement("canvas")}function X(t){return"function"==typeof t?t:function(){return t}}var Y={archimedean:Z,rectangular:function(t){var e=4*t[0]/t[1],n=0,r=0;return function(t){var i=t<0?-1:1;switch(Math.sqrt(1+4*i*t)-i&3){case 0:n+=e;break;case 1:r+=4;break;case 2:n-=e;break;default:r-=4}return[n,r]}}};function q(t,e,n){var r=void 0===e?null:e,i=function(t,e){var n=atob(t);if(e){for(var r=new Uint8Array(n.length),i=0,o=n.length;i<o;++i)r[i]=n.charCodeAt(i);return String.fromCharCode.apply(null,new Uint16Array(r.buffer))}return n}(t,void 0!==n&&n),o=i.indexOf("\n",10)+1,s=i.substring(o)+(r?"//# sourceMappingURL="+r:""),a=new Blob([s],{type:"application/javascript"});return URL.createObjectURL(a)}var K,J,$,tt,et,nt,rt,it,ot=(K="Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwp2YXIgbm9vcCA9IHt2YWx1ZTogZnVuY3Rpb24oKSB7fX07CgpmdW5jdGlvbiBkaXNwYXRjaCgpIHsKICBmb3IgKHZhciBpID0gMCwgbiA9IGFyZ3VtZW50cy5sZW5ndGgsIF8gPSB7fSwgdDsgaSA8IG47ICsraSkgewogICAgaWYgKCEodCA9IGFyZ3VtZW50c1tpXSArICIiKSB8fCAodCBpbiBfKSkgdGhyb3cgbmV3IEVycm9yKCJpbGxlZ2FsIHR5cGU6ICIgKyB0KTsKICAgIF9bdF0gPSBbXTsKICB9CiAgcmV0dXJuIG5ldyBEaXNwYXRjaChfKTsKfQoKZnVuY3Rpb24gRGlzcGF0Y2goXykgewogIHRoaXMuXyA9IF87Cn0KCmZ1bmN0aW9uIHBhcnNlVHlwZW5hbWVzKHR5cGVuYW1lcywgdHlwZXMpIHsKICByZXR1cm4gdHlwZW5hbWVzLnRyaW0oKS5zcGxpdCgvXnxccysvKS5tYXAoZnVuY3Rpb24odCkgewogICAgdmFyIG5hbWUgPSAiIiwgaSA9IHQuaW5kZXhPZigiLiIpOwogICAgaWYgKGkgPj0gMCkgbmFtZSA9IHQuc2xpY2UoaSArIDEpLCB0ID0gdC5zbGljZSgwLCBpKTsKICAgIGlmICh0ICYmICF0eXBlcy5oYXNPd25Qcm9wZXJ0eSh0KSkgdGhyb3cgbmV3IEVycm9yKCJ1bmtub3duIHR5cGU6ICIgKyB0KTsKICAgIHJldHVybiB7dHlwZTogdCwgbmFtZTogbmFtZX07CiAgfSk7Cn0KCkRpc3BhdGNoLnByb3RvdHlwZSA9IGRpc3BhdGNoLnByb3RvdHlwZSA9IHsKICBjb25zdHJ1Y3RvcjogRGlzcGF0Y2gsCiAgb246IGZ1bmN0aW9uKHR5cGVuYW1lLCBjYWxsYmFjaykgewogICAgdmFyIF8gPSB0aGlzLl8sCiAgICAgICAgVCA9IHBhcnNlVHlwZW5hbWVzKHR5cGVuYW1lICsgIiIsIF8pLAogICAgICAgIHQsCiAgICAgICAgaSA9IC0xLAogICAgICAgIG4gPSBULmxlbmd0aDsKCiAgICAvLyBJZiBubyBjYWxsYmFjayB3YXMgc3BlY2lmaWVkLCByZXR1cm4gdGhlIGNhbGxiYWNrIG9mIHRoZSBnaXZlbiB0eXBlIGFuZCBuYW1lLgogICAgaWYgKGFyZ3VtZW50cy5sZW5ndGggPCAyKSB7CiAgICAgIHdoaWxlICgrK2kgPCBuKSBpZiAoKHQgPSAodHlwZW5hbWUgPSBUW2ldKS50eXBlKSAmJiAodCA9IGdldChfW3RdLCB0eXBlbmFtZS5uYW1lKSkpIHJldHVybiB0OwogICAgICByZXR1cm47CiAgICB9CgogICAgLy8gSWYgYSB0eXBlIHdhcyBzcGVjaWZpZWQsIHNldCB0aGUgY2FsbGJhY2sgZm9yIHRoZSBnaXZlbiB0eXBlIGFuZCBuYW1lLgogICAgLy8gT3RoZXJ3aXNlLCBpZiBhIG51bGwgY2FsbGJhY2sgd2FzIHNwZWNpZmllZCwgcmVtb3ZlIGNhbGxiYWNrcyBvZiB0aGUgZ2l2ZW4gbmFtZS4KICAgIGlmIChjYWxsYmFjayAhPSBudWxsICYmIHR5cGVvZiBjYWxsYmFjayAhPT0gImZ1bmN0aW9uIikgdGhyb3cgbmV3IEVycm9yKCJpbnZhbGlkIGNhbGxiYWNrOiAiICsgY2FsbGJhY2spOwogICAgd2hpbGUgKCsraSA8IG4pIHsKICAgICAgaWYgKHQgPSAodHlwZW5hbWUgPSBUW2ldKS50eXBlKSBfW3RdID0gc2V0KF9bdF0sIHR5cGVuYW1lLm5hbWUsIGNhbGxiYWNrKTsKICAgICAgZWxzZSBpZiAoY2FsbGJhY2sgPT0gbnVsbCkgZm9yICh0IGluIF8pIF9bdF0gPSBzZXQoX1t0XSwgdHlwZW5hbWUubmFtZSwgbnVsbCk7CiAgICB9CgogICAgcmV0dXJuIHRoaXM7CiAgfSwKICBjb3B5OiBmdW5jdGlvbigpIHsKICAgIHZhciBjb3B5ID0ge30sIF8gPSB0aGlzLl87CiAgICBmb3IgKHZhciB0IGluIF8pIGNvcHlbdF0gPSBfW3RdLnNsaWNlKCk7CiAgICByZXR1cm4gbmV3IERpc3BhdGNoKGNvcHkpOwogIH0sCiAgY2FsbDogZnVuY3Rpb24odHlwZSwgdGhhdCkgewogICAgaWYgKChuID0gYXJndW1lbnRzLmxlbmd0aCAtIDIpID4gMCkgZm9yICh2YXIgYXJncyA9IG5ldyBBcnJheShuKSwgaSA9IDAsIG4sIHQ7IGkgPCBuOyArK2kpIGFyZ3NbaV0gPSBhcmd1bWVudHNbaSArIDJdOwogICAgaWYgKCF0aGlzLl8uaGFzT3duUHJvcGVydHkodHlwZSkpIHRocm93IG5ldyBFcnJvcigidW5rbm93biB0eXBlOiAiICsgdHlwZSk7CiAgICBmb3IgKHQgPSB0aGlzLl9bdHlwZV0sIGkgPSAwLCBuID0gdC5sZW5ndGg7IGkgPCBuOyArK2kpIHRbaV0udmFsdWUuYXBwbHkodGhhdCwgYXJncyk7CiAgfSwKICBhcHBseTogZnVuY3Rpb24odHlwZSwgdGhhdCwgYXJncykgewogICAgaWYgKCF0aGlzLl8uaGFzT3duUHJvcGVydHkodHlwZSkpIHRocm93IG5ldyBFcnJvcigidW5rbm93biB0eXBlOiAiICsgdHlwZSk7CiAgICBmb3IgKHZhciB0ID0gdGhpcy5fW3R5cGVdLCBpID0gMCwgbiA9IHQubGVuZ3RoOyBpIDwgbjsgKytpKSB0W2ldLnZhbHVlLmFwcGx5KHRoYXQsIGFyZ3MpOwogIH0KfTsKCmZ1bmN0aW9uIGdldCh0eXBlLCBuYW1lKSB7CiAgZm9yICh2YXIgaSA9IDAsIG4gPSB0eXBlLmxlbmd0aCwgYzsgaSA8IG47ICsraSkgewogICAgaWYgKChjID0gdHlwZVtpXSkubmFtZSA9PT0gbmFtZSkgewogICAgICByZXR1cm4gYy52YWx1ZTsKICAgIH0KICB9Cn0KCmZ1bmN0aW9uIHNldCh0eXBlLCBuYW1lLCBjYWxsYmFjaykgewogIGZvciAodmFyIGkgPSAwLCBuID0gdHlwZS5sZW5ndGg7IGkgPCBuOyArK2kpIHsKICAgIGlmICh0eXBlW2ldLm5hbWUgPT09IG5hbWUpIHsKICAgICAgdHlwZVtpXSA9IG5vb3AsIHR5cGUgPSB0eXBlLnNsaWNlKDAsIGkpLmNvbmNhdCh0eXBlLnNsaWNlKGkgKyAxKSk7CiAgICAgIGJyZWFrOwogICAgfQogIH0KICBpZiAoY2FsbGJhY2sgIT0gbnVsbCkgdHlwZS5wdXNoKHtuYW1lOiBuYW1lLCB2YWx1ZTogY2FsbGJhY2t9KTsKICByZXR1cm4gdHlwZTsKfQoKdmFyIHNyYyA9IC8qI19fUFVSRV9fKi9PYmplY3QuZnJlZXplKHsKICBfX3Byb3RvX186IG51bGwsCiAgZGlzcGF0Y2g6IGRpc3BhdGNoCn0pOwoKLy8gV29yZCBjbG91ZCBsYXlvdXQgYnkgSmFzb24gRGF2aWVzLCBodHRwczovL3d3dy5qYXNvbmRhdmllcy5jb20vd29yZGNsb3VkLwovLyBBbGdvcml0aG0gZHVlI
21HRvIEpvbmF0aGFuIEZlaW5iZXJnLCBodHRwOi8vc3RhdGljLm1yZmVpbmJlcmcuY29tL2J2X2NoMDMucGRmCgp2YXIgZGlzcGF0Y2gkMSA9IHNyYy5kaXNwYXRjaDsKCnZhciBjbG91ZFJhZGlhbnMgPSBNYXRoLlBJIC8gMTgwLAogICAgY3cgPSAxIDw8IDExID4+IDUsCiAgICBjaCA9IDEgPDwgMTE7Cgp2YXIgZDNDbG91ZCA9IGZ1bmN0aW9uKCkgewogIHZhciBzaXplID0gWzI1NiwgMjU2XSwKICAgICAgdGV4dCA9IGNsb3VkVGV4dCwKICAgICAgZm9udCA9IGNsb3VkRm9udCwKICAgICAgZm9udFNpemUgPSBjbG91ZEZvbnRTaXplLAogICAgICBmb250U3R5bGUgPSBjbG91ZEZvbnROb3JtYWwsCiAgICAgIGZvbnRXZWlnaHQgPSBjbG91ZEZvbnROb3JtYWwsCiAgICAgIHJvdGF0ZSA9IGNsb3VkUm90YXRlLAogICAgICBwYWRkaW5nID0gY2xvdWRQYWRkaW5nLAogICAgICBzcGlyYWwgPSBhcmNoaW1lZGVhblNwaXJhbCwKICAgICAgd29yZHMgPSBbXSwKICAgICAgdGltZUludGVydmFsID0gSW5maW5pdHksCiAgICAgIGV2ZW50ID0gZGlzcGF0Y2gkMSgid29yZCIsICJlbmQiKSwKICAgICAgdGltZXIgPSBudWxsLAogICAgICByYW5kb20gPSBNYXRoLnJhbmRvbSwKICAgICAgY2xvdWQgPSB7fSwKICAgICAgY2FudmFzID0gY2xvdWRDYW52YXM7CgogIGNsb3VkLmNhbnZhcyA9IGZ1bmN0aW9uKF8pIHsKICAgIHJldHVybiBhcmd1bWVudHMubGVuZ3RoID8gKGNhbnZhcyA9IGZ1bmN0b3IoXyksIGNsb3VkKSA6IGNhbnZhczsKICB9OwoKICBjbG91ZC5zdGFydCA9IGZ1bmN0aW9uKCkgewogICAgdmFyIGNvbnRleHRBbmRSYXRpbyA9IGdldENvbnRleHQoY2FudmFzKCkpLAogICAgICAgIGJvYXJkID0gemVyb0FycmF5KChzaXplWzBdID4+IDUpICogc2l6ZVsxXSksCiAgICAgICAgYm91bmRzID0gbnVsbCwKICAgICAgICBuID0gd29yZHMubGVuZ3RoLAogICAgICAgIGkgPSAtMSwKICAgICAgICB0YWdzID0gW10sCiAgICAgICAgZGF0YSA9IHdvcmRzLm1hcChmdW5jdGlvbihkLCBpKSB7CiAgICAgICAgICBkLnRleHQgPSB0ZXh0LmNhbGwodGhpcywgZCwgaSk7CiAgICAgICAgICBkLmZvbnQgPSBmb250LmNhbGwodGhpcywgZCwgaSk7CiAgICAgICAgICBkLnN0eWxlID0gZm9udFN0eWxlLmNhbGwodGhpcywgZCwgaSk7CiAgICAgICAgICBkLndlaWdodCA9IGZvbnRXZWlnaHQuY2FsbCh0aGlzLCBkLCBpKTsKICAgICAgICAgIGQucm90YXRlID0gcm90YXRlLmNhbGwodGhpcywgZCwgaSk7CiAgICAgICAgICBkLnNpemUgPSB+fmZvbnRTaXplLmNhbGwodGhpcywgZCwgaSk7CiAgICAgICAgICBkLnBhZGRpbmcgPSBwYWRkaW5nLmNhbGwodGhpcywgZCwgaSk7CiAgICAgICAgICByZXR1cm4gZDsKICAgICAgICB9KS5zb3J0KGZ1bmN0aW9uKGEsIGIpIHsgcmV0dXJuIGIuc2l6ZSAtIGEuc2l6ZTsgfSk7CgogICAgaWYgKHRpbWVyKSBjbGVhckludGVydmFsKHRpbWVyKTsKICAgIHRpbWVyID0gc2V0SW50ZXJ2YWwoc3RlcCwgMCk7CiAgICBzdGVwKCk7CgogICAgcmV0dXJuIGNsb3VkOwoKICAgIGZ1bmN0aW9uIHN0ZXAoKSB7CiAgICAgIHZhciBzdGFydCA9IERhdGUubm93KCk7CiAgICAgIHdoaWxlIChEYXRlLm5vdygpIC0gc3RhcnQgPCB0aW1lSW50ZXJ2YWwgJiYgKytpIDwgbiAmJiB0aW1lcikgewogICAgICAgIHZhciBkID0gZGF0YVtpXTsKICAgICAgICBkLnggPSAoc2l6ZVswXSAqIChyYW5kb20oKSArIC41KSkgPj4gMTsKICAgICAgICBkLnkgPSAoc2l6ZVsxXSAqIChyYW5kb20oKSArIC41KSkgPj4gMTsKICAgICAgICBjbG91ZFNwcml0ZShjb250ZXh0QW5kUmF0aW8sIGQsIGRhdGEsIGkpOwogICAgICAgIGlmIChkLmhhc1RleHQgJiYgcGxhY2UoYm9hcmQsIGQsIGJvdW5kcykpIHsKICAgICAgICAgIHRhZ3MucHVzaChkKTsKICAgICAgICAgIGV2ZW50LmNhbGwoIndvcmQiLCBjbG91ZCwgZCk7CiAgICAgICAgICBpZiAoYm91bmRzKSBjbG91ZEJvdW5kcyhib3VuZHMsIGQpOwogICAgICAgICAgZWxzZSBib3VuZHMgPSBbe3g6IGQueCArIGQueDAsIHk6IGQueSArIGQueTB9LCB7eDogZC54ICsgZC54MSwgeTogZC55ICsgZC55MX1dOwogICAgICAgICAgLy8gVGVtcG9yYXJ5IGhhY2sKICAgICAgICAgIGQueCAtPSBzaXplWzBdID4+IDE7CiAgICAgICAgICBkLnkgLT0gc2l6ZVsxXSA+PiAxOwogICAgICAgIH0KICAgICAgfQogICAgICBpZiAoaSA+PSBuKSB7CiAgICAgICAgY2xvdWQuc3RvcCgpOwogICAgICAgIGV2ZW50LmNhbGwoImVuZCIsIGNsb3VkLCB0YWdzLCBib3VuZHMpOwogICAgICB9CiAgICB9CiAgfTsKCiAgY2xvdWQuc3RvcCA9IGZ1bmN0aW9uKCkgewogICAgaWYgKHRpbWVyKSB7CiAgICAgIGNsZWFySW50ZXJ2YWwodGltZXIpOwogICAgICB0aW1lciA9IG51bGw7CiAgICB9CiAgICByZXR1cm4gY2xvdWQ7CiAgfTsKCiAgZnVuY3Rpb24gZ2V0Q29udGV4dChjYW52YXMpIHsKICAgIGNhbnZhcy53aWR0aCA9IGNhbnZhcy5oZWlnaHQgPSAxOwogICAgdmFyIHJhdGlvID0gTWF0aC5zcXJ0KGNhbnZhcy5nZXRDb250ZXh0KCIyZCIpLmdldEltYWdlRGF0YSgwLCAwLCAxLCAxKS5kYXRhLmxlbmd0aCA+PiAyKTsKICAgIGNhbnZhcy53aWR0aCA9IChjdyA8PCA1KSAvIHJhdGlvOwogICAgY2FudmFzLmhlaWdodCA9IGNoIC8gcmF0aW87CgogICAgdmFyIGNvbnRleHQgPSBjYW52YXMuZ2V0Q29udGV4dCgiMmQiKTsKICAgIGNvbnRleHQuZmlsbFN0eWxlID0gY29udGV4dC5zdHJva2VTdHlsZSA9ICJyZWQiOwogICAgY29udGV4dC50ZXh0QWxpZ24gPSAiY2VudGVyIjsKCiAgICByZXR1cm4ge2NvbnRleHQ6IGNvbnRleHQsIHJhdGlvOiByYXRpb307CiAgfQoKICBmdW5jdGlvbiBwbGFjZShib2FyZCwgdGFnLCBib3VuZHMpIHsKICAgIHZhciBwZXJpbWV0ZXIgPSBbe3g6IDAsIHk6IDB9LCB7eDogc2l6ZVswXSwgeTogc2l6ZVsxXX1dLAogICAgICAgIHN0YXJ0WCA9IHRhZy54LAogICAgICAgIHN0YXJ0WSA9IHRhZy55LAogICAgICAgIG1heERlbHRhID0gTWF0aC5zcXJ0KHNpemVbMF0gKiBzaXplWzBdICsgc2l6ZVsxXSAqIHNpemVbMV0pLAogICAgICAgIHMgPSBzcGlyYWwoc2l6ZSksCiAgICAgICAgZHQgPSByYW5kb20oKSA8IC41ID8gMSA6IC0xLAogICAgICAgI
21HQgPSAtZHQsCiAgICAgICAgZHhkeSwKICAgICAgICBkeCwKICAgICAgICBkeTsKCiAgICB3aGlsZSAoZHhkeSA9IHModCArPSBkdCkpIHsKICAgICAgZHggPSB+fmR4ZHlbMF07CiAgICAgIGR5ID0gfn5keGR5WzFdOwoKICAgICAgaWYgKE1hdGgubWluKE1hdGguYWJzKGR4KSwgTWF0aC5hYnMoZHkpKSA+PSBtYXhEZWx0YSkgYnJlYWs7CgogICAgICB0YWcueCA9IHN0YXJ0WCArIGR4OwogICAgICB0YWcueSA9IHN0YXJ0WSArIGR5OwoKICAgICAgaWYgKHRhZy54ICsgdGFnLngwIDwgMCB8fCB0YWcueSArIHRhZy55MCA8IDAgfHwKICAgICAgICAgIHRhZy54ICsgdGFnLngxID4gc2l6ZVswXSB8fCB0YWcueSArIHRhZy55MSA+IHNpemVbMV0pIGNvbnRpbnVlOwogICAgICAvLyBUT0RPIG9ubHkgY2hlY2sgZm9yIGNvbGxpc2lvbnMgd2l0aGluIGN1cnJlbnQgYm91bmRzLgogICAgICBpZiAoIWJvdW5kcyB8fCAhY2xvdWRDb2xsaWRlKHRhZywgYm9hcmQsIHNpemVbMF0pKSB7CiAgICAgICAgaWYgKCFib3VuZHMgfHwgY29sbGlkZVJlY3RzKHRhZywgYm91bmRzKSkgewogICAgICAgICAgdmFyIHNwcml0ZSA9IHRhZy5zcHJpdGUsCiAgICAgICAgICAgICAgdyA9IHRhZy53aWR0aCA+PiA1LAogICAgICAgICAgICAgIHN3ID0gc2l6ZVswXSA+PiA1LAogICAgICAgICAgICAgIGx4ID0gdGFnLnggLSAodyA8PCA0KSwKICAgICAgICAgICAgICBzeCA9IGx4ICYgMHg3ZiwKICAgICAgICAgICAgICBtc3ggPSAzMiAtIHN4LAogICAgICAgICAgICAgIGggPSB0YWcueTEgLSB0YWcueTAsCiAgICAgICAgICAgICAgeCA9ICh0YWcueSArIHRhZy55MCkgKiBzdyArIChseCA+PiA1KSwKICAgICAgICAgICAgICBsYXN0OwogICAgICAgICAgZm9yICh2YXIgaiA9IDA7IGogPCBoOyBqKyspIHsKICAgICAgICAgICAgbGFzdCA9IDA7CiAgICAgICAgICAgIGZvciAodmFyIGkgPSAwOyBpIDw9IHc7IGkrKykgewogICAgICAgICAgICAgIGJvYXJkW3ggKyBpXSB8PSAobGFzdCA8PCBtc3gpIHwgKGkgPCB3ID8gKGxhc3QgPSBzcHJpdGVbaiAqIHcgKyBpXSkgPj4+IHN4IDogMCk7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgeCArPSBzdzsKICAgICAgICAgIH0KICAgICAgICAgIGRlbGV0ZSB0YWcuc3ByaXRlOwogICAgICAgICAgcmV0dXJuIHRydWU7CiAgICAgICAgfQogICAgICB9CiAgICB9CiAgICByZXR1cm4gZmFsc2U7CiAgfQoKICBjbG91ZC50aW1lSW50ZXJ2YWwgPSBmdW5jdGlvbihfKSB7CiAgICByZXR1cm4gYXJndW1lbnRzLmxlbmd0aCA/ICh0aW1lSW50ZXJ2YWwgPSBfID09IG51bGwgPyBJbmZpbml0eSA6IF8sIGNsb3VkKSA6IHRpbWVJbnRlcnZhbDsKICB9OwoKICBjbG91ZC53b3JkcyA9IGZ1bmN0aW9uKF8pIHsKICAgIHJldHVybiBhcmd1bWVudHMubGVuZ3RoID8gKHdvcmRzID0gXywgY2xvdWQpIDogd29yZHM7CiAgfTsKCiAgY2xvdWQuc2l6ZSA9IGZ1bmN0aW9uKF8pIHsKICAgIHJldHVybiBhcmd1bWVudHMubGVuZ3RoID8gKHNpemUgPSBbK19bMF0sICtfWzFdXSwgY2xvdWQpIDogc2l6ZTsKICB9OwoKICBjbG91ZC5mb250ID0gZnVuY3Rpb24oXykgewogICAgcmV0dXJuIGFyZ3VtZW50cy5sZW5ndGggPyAoZm9udCA9IGZ1bmN0b3IoXyksIGNsb3VkKSA6IGZvbnQ7CiAgfTsKCiAgY2xvdWQuZm9udFN0eWxlID0gZnVuY3Rpb24oXykgewogICAgcmV0dXJuIGFyZ3VtZW50cy5sZW5ndGggPyAoZm9udFN0eWxlID0gZnVuY3RvcihfKSwgY2xvdWQpIDogZm9udFN0eWxlOwogIH07CgogIGNsb3VkLmZvbnRXZWlnaHQgPSBmdW5jdGlvbihfKSB7CiAgICByZXR1cm4gYXJndW1lbnRzLmxlbmd0aCA/IChmb250V2VpZ2h0ID0gZnVuY3RvcihfKSwgY2xvdWQpIDogZm9udFdlaWdodDsKICB9OwoKICBjbG91ZC5yb3RhdGUgPSBmdW5jdGlvbihfKSB7CiAgICByZXR1cm4gYXJndW1lbnRzLmxlbmd0aCA/IChyb3RhdGUgPSBmdW5jdG9yKF8pLCBjbG91ZCkgOiByb3RhdGU7CiAgfTsKCiAgY2xvdWQudGV4dCA9IGZ1bmN0aW9uKF8pIHsKICAgIHJldHVybiBhcmd1bWVudHMubGVuZ3RoID8gKHRleHQgPSBmdW5jdG9yKF8pLCBjbG91ZCkgOiB0ZXh0OwogIH07CgogIGNsb3VkLnNwaXJhbCA9IGZ1bmN0aW9uKF8pIHsKICAgIHJldHVybiBhcmd1bWVudHMubGVuZ3RoID8gKHNwaXJhbCA9IHNwaXJhbHNbX10gfHwgXywgY2xvdWQpIDogc3BpcmFsOwogIH07CgogIGNsb3VkLmZvbnRTaXplID0gZnVuY3Rpb24oXykgewogICAgcmV0dXJuIGFyZ3VtZW50cy5sZW5ndGggPyAoZm9udFNpemUgPSBmdW5jdG9yKF8pLCBjbG91ZCkgOiBmb250U2l6ZTsKICB9OwoKICBjbG91ZC5wYWRkaW5nID0gZnVuY3Rpb24oXykgewogICAgcmV0dXJuIGFyZ3VtZW50cy5sZW5ndGggPyAocGFkZGluZyA9IGZ1bmN0b3IoXyksIGNsb3VkKSA6IHBhZGRpbmc7CiAgfTsKCiAgY2xvdWQucmFuZG9tID0gZnVuY3Rpb24oXykgewogICAgcmV0dXJuIGFyZ3VtZW50cy5sZW5ndGggPyAocmFuZG9tID0gXywgY2xvdWQpIDogcmFuZG9tOwogIH07CgogIGNsb3VkLm9uID0gZnVuY3Rpb24oKSB7CiAgICB2YXIgdmFsdWUgPSBldmVudC5vbi5hcHBseShldmVudCwgYXJndW1lbnRzKTsKICAgIHJldHVybiB2YWx1ZSA9PT0gZXZlbnQgPyBjbG91ZCA6IHZhbHVlOwogIH07CgogIHJldHVybiBjbG91ZDsKfTsKCmZ1bmN0aW9uIGNsb3VkVGV4dChkKSB7CiAgcmV0dXJuIGQudGV4dDsKfQoKZnVuY3Rpb24gY2xvdWRGb250KCkgewogIHJldHVybiAic2VyaWYiOwp9CgpmdW5jdGlvbiBjbG91ZEZvbnROb3JtYWwoKSB7CiAgcmV0dXJuICJub3JtYWwiOwp9CgpmdW5jdGlvbiBjbG91ZEZvbnRTaXplKGQpIHsKICByZXR1cm4gTWF0aC5zcXJ0KGQudmFsdWUpOwp9CgpmdW5jdGlvbiBjbG91ZFJvdGF0ZSgpIHsKICByZXR1cm4gKH5+KE1hdGgucmFuZG9tKCkgKiA2KSAtIDMpICogMzA7Cn0KCmZ1bmN0aW9uIGNsb3VkUGFkZGluZygpIHsKICByZXR1cm4gMTsKfQoKLy8gRmV0Y2hlcyBhIG1vbm9jaHJvbWUgc3ByaXRlIGJpdG1hcCBmb3IgdGhlIHNwZWNpZmllZCB0ZXh0LgovLyBMb2FkIGluIGJhdGNoZXMgZm9yIHNwZWVkLgpmdW5jdGlvbiBjbG91ZFNwcml0ZShjb250ZXh0QW5kUmF0aW8sIGQsIGRhdGEsIGRpKSB7CiAgaWYgKGQuc3ByaXRlKSByZXR1cm47CiAgdmFyIGMgPSBjb250ZXh0QW5kUmF0aW8uY29udGV4dCwKICAgICAgcmF0aW8gPSBjb250ZXh0QW5kUmF0aW8ucmF0aW87CgogIGMuY2xlYXJSZWN0KDAsIDAsIChjdyA8PCA1KSAvIHJhdGlvLCBjaCAvIHJhdGlvKTsKICB2YXIgeCA9IDAsCiAgICAgI
21HkgPSAwLAogICAgICBtYXhoID0gMCwKICAgICAgbiA9IGRhdGEubGVuZ3RoOwogIC0tZGk7CiAgd2hpbGUgKCsrZGkgPCBuKSB7CiAgICBkID0gZGF0YVtkaV07CiAgICBjLnNhdmUoKTsKICAgIGMuZm9udCA9IGQuc3R5bGUgKyAiICIgKyBkLndlaWdodCArICIgIiArIH5+KChkLnNpemUgKyAxKSAvIHJhdGlvKSArICJweCAiICsgZC5mb250OwogICAgdmFyIHcgPSBjLm1lYXN1cmVUZXh0KGQudGV4dCArICJtIikud2lkdGggKiByYXRpbywKICAgICAgICBoID0gZC5zaXplIDw8IDE7CiAgICBpZiAoZC5yb3RhdGUpIHsKICAgICAgdmFyIHNyID0gTWF0aC5zaW4oZC5yb3RhdGUgKiBjbG91ZFJhZGlhbnMpLAogICAgICAgICAgY3IgPSBNYXRoLmNvcyhkLnJvdGF0ZSAqIGNsb3VkUmFkaWFucyksCiAgICAgICAgICB3Y3IgPSB3ICogY3IsCiAgICAgICAgICB3c3IgPSB3ICogc3IsCiAgICAgICAgICBoY3IgPSBoICogY3IsCiAgICAgICAgICBoc3IgPSBoICogc3I7CiAgICAgIHcgPSAoTWF0aC5tYXgoTWF0aC5hYnMod2NyICsgaHNyKSwgTWF0aC5hYnMod2NyIC0gaHNyKSkgKyAweDFmKSA+PiA1IDw8IDU7CiAgICAgIGggPSB+fk1hdGgubWF4KE1hdGguYWJzKHdzciArIGhjciksIE1hdGguYWJzKHdzciAtIGhjcikpOwogICAgfSBlbHNlIHsKICAgICAgdyA9ICh3ICsgMHgxZikgPj4gNSA8PCA1OwogICAgfQogICAgaWYgKGggPiBtYXhoKSBtYXhoID0gaDsKICAgIGlmICh4ICsgdyA+PSAoY3cgPDwgNSkpIHsKICAgICAgeCA9IDA7CiAgICAgIHkgKz0gbWF4aDsKICAgICAgbWF4aCA9IDA7CiAgICB9CiAgICBpZiAoeSArIGggPj0gY2gpIGJyZWFrOwogICAgYy50cmFuc2xhdGUoKHggKyAodyA+PiAxKSkgLyByYXRpbywgKHkgKyAoaCA+PiAxKSkgLyByYXRpbyk7CiAgICBpZiAoZC5yb3RhdGUpIGMucm90YXRlKGQucm90YXRlICogY2xvdWRSYWRpYW5zKTsKICAgIGMuZmlsbFRleHQoZC50ZXh0LCAwLCAwKTsKICAgIGlmIChkLnBhZGRpbmcpIGMubGluZVdpZHRoID0gMiAqIGQucGFkZGluZywgYy5zdHJva2VUZXh0KGQudGV4dCwgMCwgMCk7CiAgICBjLnJlc3RvcmUoKTsKICAgIGQud2lkdGggPSB3OwogICAgZC5oZWlnaHQgPSBoOwogICAgZC54b2ZmID0geDsKICAgIGQueW9mZiA9IHk7CiAgICBkLngxID0gdyA+PiAxOwogICAgZC55MSA9IGggPj4gMTsKICAgIGQueDAgPSAtZC54MTsKICAgIGQueTAgPSAtZC55MTsKICAgIGQuaGFzVGV4dCA9IHRydWU7CiAgICB4ICs9IHc7CiAgfQogIHZhciBwaXhlbHMgPSBjLmdldEltYWdlRGF0YSgwLCAwLCAoY3cgPDwgNSkgLyByYXRpbywgY2ggLyByYXRpbykuZGF0YSwKICAgICAgc3ByaXRlID0gW107CiAgd2hpbGUgKC0tZGkgPj0gMCkgewogICAgZCA9IGRhdGFbZGldOwogICAgaWYgKCFkLmhhc1RleHQpIGNvbnRpbnVlOwogICAgdmFyIHcgPSBkLndpZHRoLAogICAgICAgIHczMiA9IHcgPj4gNSwKICAgICAgICBoID0gZC55MSAtIGQueTA7CiAgICAvLyBaZXJvIHRoZSBidWZmZXIKICAgIGZvciAodmFyIGkgPSAwOyBpIDwgaCAqIHczMjsgaSsrKSBzcHJpdGVbaV0gPSAwOwogICAgeCA9IGQueG9mZjsKICAgIGlmICh4ID09IG51bGwpIHJldHVybjsKICAgIHkgPSBkLnlvZmY7CiAgICB2YXIgc2VlbiA9IDAsCiAgICAgICAgc2VlblJvdyA9IC0xOwogICAgZm9yICh2YXIgaiA9IDA7IGogPCBoOyBqKyspIHsKICAgICAgZm9yICh2YXIgaSA9IDA7IGkgPCB3OyBpKyspIHsKICAgICAgICB2Y
21XIgayA9IHczMiAqIGogKyAoaSA+PiA1KSwKICAgICAgICAgICAgbSA9IHBpeGVsc1soKHkgKyBqKSAqIChjdyA8PCA1KSArICh4ICsgaSkpIDw8IDJdID8gMSA8PCAoMzEgLSAoaSAlIDMyKSkgOiAwOwogICAgICAgIHNwcml0ZVtrXSB8PSBtOwogICAgICAgIHNlZW4gfD0gbTsKICAgICAgfQogICAgICBpZiAoc2Vlbikgc2VlblJvdyA9IGo7CiAgICAgIGVsc2UgewogICAgICAgIGQueTArKzsKICAgICAgICBoLS07CiAgICAgICAgai0tOwogICAgICAgIHkrKzsKICAgICAgfQogICAgfQogICAgZC55MSA9IGQueTAgKyBzZWVuUm93OwogICAgZC5zcHJpdGUgPSBzcHJpdGUuc2xpY2UoMCwgKGQueTEgLSBkLnkwKSAqIHczMik7CiAgfQp9CgovLyBVc2UgbWFzay1iYXNlZCBjb2xsaXNpb24gZGV0ZWN0aW9uLgpmdW5jdGlvbiBjbG91ZENvbGxpZGUodGFnLCBib2FyZCwgc3cpIHsKICBzdyA+Pj0gNTsKICB2YXIgc3ByaXRlID0gdGFnLnNwcml0ZSwKICAgICAgdyA9IHRhZy53aWR0aCA+PiA1LAogICAgICBseCA9IHRhZy54IC0gKHcgPDwgNCksCiAgICAgIHN4ID0gbHggJiAweDdmLAogICAgICBtc3ggPSAzMiAtIHN4LAogICAgICBoID0gdGFnLnkxIC0gdGFnLnkwLAogICAgICB4ID0gKHRhZy55ICsgdGFnLnkwKSAqIHN3ICsgKGx4ID4+IDUpLAogICAgICBsYXN0OwogIGZvciAodmFyIGogPSAwOyBqIDwgaDsgaisrKSB7CiAgICBsYXN0ID0gMDsKICAgIGZvciAodmFyIGkgPSAwOyBpIDw9IHc7IGkrKykgewogICAgICBpZiAoKChsYXN0IDw8IG1zeCkgfCAoaSA8IHcgPyAobGFzdCA9IHNwcml0ZVtqICogdyArIGldKSA+Pj4gc3ggOiAwKSkKICAgICAgICAgICYgYm9hcmRbeCArIGldKSByZXR1cm4gdHJ1ZTsKICAgIH0KICAgIHggKz0gc3c7CiAgfQogIHJldHVybiBmYWxzZTsKfQoKZnVuY3Rpb24gY2xvdWRCb3VuZHMoYm91bmRzLCBkKSB7CiAgdmFyIGIwID0gYm91bmRzWzBdLAogICAgICBiMSA9IGJvdW5kc1sxXTsKICBpZiAoZC54ICsgZC54MCA8IGIwLngpIGIwLnggPSBkLnggKyBkLngwOwogIGlmIChkLnkgKyBkLnkwIDwgYjAueSkgYjAueSA9IGQueSArIGQueTA7CiAgaWYgKGQueCArIGQueDEgPiBiMS54KSBiMS54ID0gZC54ICsgZC54MTsKICBpZiAoZC55ICsgZC55MSA+IGIxLnkpIGIxLnkgPSBkLnkgKyBkLnkxOwp9CgpmdW5jdGlvbiBjb2xsaWRlUmVjdHMoYSwgYikgewogIHJldHVybiBhLnggKyBhLngxID4gYlswXS54ICYmIGEueCArIGEueDAgPCBiWzFdLnggJiYgYS55ICsgYS55MSA+IGJbMF0ueSAmJiBhLnkgKyBhLnkwIDwgYlsxXS55Owp9CgpmdW5jdGlvbiBhcmNoaW1lZGVhblNwaXJhbChzaXplKSB7CiAgdmFyIGUgPSBzaXplWzBdIC8gc2l6ZVsxXTsKICByZXR1cm4gZnVuY3Rpb24odCkgewogICAgcmV0dXJuIFtlICogKHQgKj0gLjEpICogTWF0aC5jb3ModCksIHQgKiBNYXRoLnNpbih0KV07CiAgfTsKfQoKZnVuY3Rpb24gcmVjdGFuZ3VsYXJTcGlyYWwoc2l6ZSkgewogIHZhciBkeSA9IDQsCiAgICAgIGR4ID0gZHkgKiBzaXplWzBdIC8gc2l6ZVsxXSwKICAgICAgeCA9IDAsCiAgICAgIHkgPSAwOwogIHJldHVybiBmdW5jdGlvbih0KSB7CiAgICB2YXIgc2lnbiA9IHQgPCAwID8gLTEgOiAxOwogICAgLy8gU2VlIHRyaWFuZ3VsYXIgbnVtYmVyczogVF9uID0gbiAqIChuICsgMSkgLyAyLgogICAgc3dpdGNoICgoTWF0aC5zcXJ0KDEgKyA0ICogc2lnbiAqIHQpIC0gc2lnbikgJiAzKSB7CiAgICAgIGNhc2UgMDogIHggKz0gZHg7IGJyZWFrOwogICAgICBjYXNlIDE6ICB5ICs9IGR5OyBicmVhazsKICAgICAgY2FzZSAyOiAgeCAtPSBkeDsgYnJlYWs7CiAgICAgIGRlZmF1bHQ6IHkgLT0gZHk7IGJyZWFrOwogICAgfQogICAgcmV0dXJuIFt4LCB5XTsKICB9Owp9CgovLyBUT0RPIHJldXNlIGFycmF5cz8KZnVuY3Rpb24gemVyb0FycmF5KG4pIHsKICB2YXIgYSA9IFtdLAogICAgICBpID0gLTE7CiAgd2hpbGUgKCsraSA8IG4pIGFbaV0gPSAwOwogIHJldHVybiBhOwp9CgpmdW5jdGlvbiBjbG91ZENhbnZhcygpIHsKICByZXR1cm4gZG9jdW1lbnQuY3JlYXRlRWxlbWVudCgiY2FudmFzIik7Cn0KCmZ1bmN0aW9uIGZ1bmN0b3IoZCkgewogIHJldHVybiB0eXBlb2YgZCA9PT0gImZ1bmN0aW9uIiA/IGQgOiBmdW5jdGlvbigpIHsgcmV0dXJuIGQ7IH07Cn0KCnZhciBzcGlyYWxzID0gewogIGFyY2hpbWVkZWFuOiBhcmNoaW1lZGVhblNwaXJhbCwKICByZWN0YW5ndWxhcjogcmVjdGFuZ3VsYXJTcGlyYWwKfTsKCmZ1bmN0aW9uIGJ1aWxkQ2xvdWQob3B0aW9ucykgew0KICAgIHZhciBjYW52YXNTaXplID0gb3B0aW9ucy5jYW52YXNTaXplLCB3b3JkcyA9IG9wdGlvbnMud29yZHMsIGNhbnZhcyA9IG9wdGlvbnMuY2FudmFzLCBmb250U2V0dGluZ3MgPSBvcHRpb25zLmZvbnRTZXR0aW5ncywgb25FbmQgPSBvcHRpb25zLm9uRW5kOw0KICAgIHZhciBmb250RmFtaWx5ID0gZm9udFNldHRpbmdzLmZvbnRGYW1pbHksIGZvbnRXZWlnaHQgPSBmb250U2V0dGluZ3MuZm9udFdlaWdodDsNCiAgICB2YXIgYmFzZUNsb3VkID0gZDNDbG91ZCgpOw0KICAgIHZhciBjbG91ZCA9IGNhbnZhcyAhPT0gdW5kZWZpbmVkID8gYmFzZUNsb3VkLmNhbnZhcyhjYW52YXMpIDogYmFzZUNsb3VkOw0KICAgIGJhc2VDbG91ZC5zaXplKGNhbnZhc1NpemUpDQogICAgICAgIC53b3Jkcyh3b3JkcykNCiAgICAgICAgLnBhZGRpbmcoMikNCiAgICAgICAgLnJvdGF0ZSgwKQ0KICAgICAgICAuZm9udChmb250RmFtaWx5KQ0KICAgICAgICAuZm9udFdlaWdodChmb250V2VpZ2h0KQ0KICAgICAgICAuZm9udFNpemUoZnVuY3Rpb24gKGQpIHsgcmV0dXJuIGQuc2l6ZSB8fCAwOyB9KQ0KICAgICAgICAub24oImVuZCIsIG9uRW5kKTsNCiAgICBjbG91ZC5yYW5kb20oZnVuY3Rpb24gKCkgeyByZXR1cm4gMC41OyB9KS5zdGFydCgpOw0KfQoKdmFyIHdvcmtlckN0eCA9IHNlbGY7DQp3b3JrZXJDdHguYWRkRXZlbnRMaXN0ZW5lcigibWVzc2FnZSIsIGZ1bmN0aW9uIChldmVudCkgew0KICAgIHZhciBfYSA9IGV2ZW50LmRhdGEsIGNhbnZhcyA9IF9hLmNhbnZhcywgY2FudmFzU2l6ZSA9IF9hLmNhbnZhc1NpemUsIHdvcmRzID0gX2Eud29yZHMsIGZvbnRTZXR0aW5ncyA9IF9hLmZvbnRTZXR0aW5nczsNCiAgICBidWlsZENsb3VkKHsgY2FudmFzOiBjYW52YXMsIGNhbnZhc1NpemU6IGNhbnZhc1NpemUsIGZvbnRTZXR0aW5nczogZm9udFNldHRpbmdzLCB3b3Jkczogd29yZHMsIG9uRW5kOiBmdW5jdGlvbiAod29yZHMpIHsNCiAgICAgICAgICAgI
21HdvcmtlckN0eC5wb3N0TWVzc2FnZSh7IHdvcmRzOiB3b3JkcyB9KTsNCiAgICAgICAgfSB9KTsNCn0pOwoKLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLwoK",J="data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiV29yZENsb3VkV29ya2VyLmpzIiwic291cmNlcyI6WyJ3b3JrZXI6Ly93ZWItd29ya2VyL25vZGVfbW9kdWxlcy9kMy1kaXNwYXRjaC9zcmMvZGlzcGF0Y2guanMiLCJ3b3JrZXI6Ly93ZWItd29ya2VyL25vZGVfbW9kdWxlcy9kMy1jbG91ZC9pbmRleC5qcyJdLCJzb3VyY2VzQ29udGVudCI6WyJ2YXIgbm9vcCA9IHt2YWx1ZTogZnVuY3Rpb24oKSB7fX07XG5cbmZ1bmN0aW9uIGRpc3BhdGNoKCkge1xuICBmb3IgKHZhciBpID0gMCwgbiA9IGFyZ3VtZW50cy5sZW5ndGgsIF8gPSB7fSwgdDsgaSA8IG47ICsraSkge1xuICAgIGlmICghKHQgPSBhcmd1bWVudHNbaV0gKyBcIlwiKSB8fCAodCBpbiBfKSkgdGhyb3cgbmV3IEVycm9yKFwiaWxsZWdhbCB0eXBlOiBcIiArIHQpO1xuICAgIF9bdF0gPSBbXTtcbiAgfVxuICByZXR1cm4gbmV3IERpc3BhdGNoKF8pO1xufVxuXG5mdW5jdGlvbiBEaXNwYXRjaChfKSB7XG4gIHRoaXMuXyA9IF87XG59XG5cbmZ1bmN0aW9uIHBhcnNlVHlwZW5hbWVzKHR5cGVuYW1lcywgdHlwZXMpIHtcbiAgcmV0dXJuIHR5cGVuYW1lcy50cmltKCkuc3BsaXQoL158XFxzKy8pLm1hcChmdW5jdGlvbih0KSB7XG4gICAgdmFyIG5hbWUgPSBcIlwiLCBpID0gdC5pbmRleE9mKFwiLlwiKTtcbiAgICBpZiAoaSA+PSAwKSBuYW1lID0gdC5zbGljZShpICsgMSksIHQgPSB0LnNsaWNlKDAsIGkpO1xuICAgIGlmICh0ICYmICF0eXBlcy5oYXNPd25Qcm9wZXJ0eSh0KSkgdGhyb3cgbmV3IEVycm9yKFwidW5rbm93biB0eXBlOiBcIiArIHQpO1xuICAgIHJldHVybiB7dHlwZTogdCwgbmFtZTogbmFtZX07XG4gIH0pO1xufVxuXG5EaXNwYXRjaC5wcm90b3R5cGUgPSBkaXNwYXRjaC5wcm90b3R5cGUgPSB7XG4gIGNvbnN0cnVjdG9yOiBEaXNwYXRjaCxcbiAgb246IGZ1bmN0aW9uKHR5cGVuYW1lLCBjYWxsYmFjaykge1xuICAgIHZhciBfID0gdGhpcy5fLFxuICAgICAgICBUID0gcGFyc2VUeXBlbmFtZXModHlwZW5hbWUgKyBcIlwiLCBfKSxcbiAgICAgICAgdCxcbiAgICAgICAgaSA9IC0xLFxuICAgICAgICBuID0gVC5sZW5ndGg7XG5cbiAgICAvLyBJZiBubyBjYWxsYmFjayB3YXMgc3BlY2lmaWVkLCByZXR1cm4gdGhlIGNhbGxiYWNrIG9mIHRoZSBnaXZlbiB0eXBlIGFuZCBuYW1lLlxuICAgIGlmIChhcmd1bWVudHMubGVuZ3RoIDwgMikge1xuICAgICAgd2hpbGUgKCsraSA8IG4pIGlmICgodCA9ICh0eXBlbmFtZSA9IFRbaV0pLnR5cGUpICYmICh0ID0gZ2V0KF9bdF0sIHR5cGVuYW1lLm5hbWUpKSkgcmV0dXJuIHQ7XG4gICAgICByZXR1cm47XG4gICAgfVxuXG4gICAgLy8gSWYgYSB0eXBlIHdhcyBzcGVjaWZpZWQsIHNldCB0aGUgY2FsbGJhY2sgZm9yIHRoZSBnaXZlbiB0eXBlIGFuZCBuYW1lLlxuICAgIC8vIE90aGVyd2lzZSwgaWYgYSBudWxsIGNhbGxiYWNrIHdhcyBzcGVjaWZpZWQsIHJlbW92ZSBjYWxsYmFja3Mgb2YgdGhlIGdpdmVuIG5hbWUuXG4gICAgaWYgKGNhbGxiYWNrICE9IG51bGwgJiYgdHlwZW9mIGNhbGxiYWNrICE9PSBcImZ1bmN0aW9uXCIpIHRocm93IG5ldyBFcnJvcihcImludmFsaWQgY2FsbGJhY2s6IFwiICsgY2FsbGJhY2spO1xuICAgIHdoaWxlICgrK2kgPCBuKSB7XG4gICAgICBpZiAodCA9ICh0eXBlbmFtZSA9IFRbaV0pLnR5cGUpIF9bdF0gPSBzZXQoX1t0XSwgdHlwZW5hbWUubmFtZSwgY2FsbGJhY2spO1xuICAgICAgZWxzZSBpZiAoY2FsbGJhY2sgPT0gbnVsbCkgZm9yICh0IGluIF8pIF9bdF0gPSBzZXQoX1t0XSwgdHlwZW5hbWUubmFtZSwgbnVsbCk7XG4gICAgfVxuXG4gICAgcmV0dXJuIHRoaXM7XG4gIH0sXG4gIGNvcHk6IGZ1bmN0aW9uKCkge1xuICAgIHZhciBjb3B5ID0ge30sIF8gPSB0aGlzLl87XG4gICAgZm9yICh2YXIgdCBpbiBfKSBjb3B5W3RdID0gX1t0XS5zbGljZSgpO1xuICAgIHJldHVybiBuZXcgRGlzcGF0Y2goY29weSk7XG4gIH0sXG4gIGNhbGw6IGZ1bmN0aW9uKHR5cGUsIHRoYXQpIHtcbiAgICBpZiAoKG4gPSBhcmd1bWVudHMubGVuZ3RoIC0gMikgPiAwKSBmb3IgKHZhciBhcmdzID0gbmV3IEFycmF5KG4pLCBpID0gMCwgbiwgdDsgaSA8IG47ICsraSkgYXJnc1tpXSA9IGFyZ3VtZW50c1tpICsgMl07XG4gICAgaWYgKCF0aGlzLl8uaGFzT3duUHJvcGVydHkodHlwZSkpIHRocm93IG5ldyBFcnJvcihcInVua25vd24gdHlwZTogXCIgKyB0eXBlKTtcbiAgICBmb3IgKHQgPSB0aGlzLl9bdHlwZV0sIGkgPSAwLCBuID0gdC5sZW5ndGg7IGkgPCBuOyArK2kpIHRbaV0udmFsdWUuYXBwbHkodGhhdCwgYXJncyk7XG4gIH0sXG4gIGFwcGx5OiBmdW5jdGlvbih0eXBlLCB0aGF0LCBhcmdzKSB7XG4gICAgaWYgKCF0aGlzLl8uaGFzT3duUHJvcGVydHkodHlwZSkpIHRocm93IG5ldyBFcnJvcihcInVua25vd24gdHlwZTogXCIgKyB0eXBlKTtcbiAgICBmb3IgKHZhciB0ID0gdGhpcy5fW3R5cGVdLCBpID0gMCwgbiA9IHQubGVuZ3RoOyBpIDwgbjsgKytpKSB0W2ldLnZhbHVlLmFwcGx5KHRoYXQsIGFyZ3MpO1xuICB9XG59O1xuXG5mdW5jdGlvbiBnZXQodHlwZSwgbmFtZSkge1xuICBmb3IgKHZhciBpID0gMCwgbiA9IHR5cGUubGVuZ3RoLCBjOyBpIDwgbjsgKytpKSB7XG4gICAgaWYgKChjID0gdHlwZVtpXSkubmFtZSA9PT0gbmFtZSkge1xuICAgICAgcmV0dXJuIGMudmFsdWU7XG4gICAgfVxuICB9XG59XG5cbmZ1bmN0aW9uIHNldCh0eXBlLCBuYW1lLCBjYWxsYmFjaykge1xuICBmb3IgKHZhciBpID0gMCwgbiA9IHR5cGUubGVuZ3RoOyBpIDwgbjsgKytpKSB7XG4gICAgaWYgKHR5cGVbaV0ubmFtZSA9PT0gbmFtZSkge1xuICAgICAgdHlwZVtpXSA9IG5vb3AsIHR5cGUgPSB0eXBlLnNsaWNlKDAsIGkpLmNvbmNhdCh0eXBlLnNsaWNlKGkgKyAxKSk7XG4gICAgICBicmVhaztcbiAgICB9XG4gIH1cbiAgaWYgKGNhbGxiYWNrICE9IG51bGwpIHR5cGUucHVzaCh7bmFtZTogbmFtZSwgdmFsdWU6IGNhbGxiYWNrfSk7XG4gIHJldHVybi
21B0eXBlO1xufVxuXG5leHBvcnQgZGVmYXVsdCBkaXNwYXRjaDtcbiIsIi8vIFdvcmQgY2xvdWQgbGF5b3V0IGJ5IEphc29uIERhdmllcywgaHR0cHM6Ly93d3cuamFzb25kYXZpZXMuY29tL3dvcmRjbG91ZC9cbi8vIEFsZ29yaXRobSBkdWUgdG8gSm9uYXRoYW4gRmVpbmJlcmcsIGh0dHA6Ly9zdGF0aWMubXJmZWluYmVyZy5jb20vYnZfY2gwMy5wZGZcblxudmFyIGRpc3BhdGNoID0gcmVxdWlyZShcImQzLWRpc3BhdGNoXCIpLmRpc3BhdGNoO1xuXG52YXIgY2xvdWRSYWRpYW5zID0gTWF0aC5QSSAvIDE4MCxcbiAgICBjdyA9IDEgPDwgMTEgPj4gNSxcbiAgICBjaCA9IDEgPDwgMTE7XG5cbm1vZHVsZS5leHBvcnRzID0gZnVuY3Rpb24oKSB7XG4gIHZhciBzaXplID0gWzI1NiwgMjU2XSxcbiAgICAgIHRleHQgPSBjbG91ZFRleHQsXG4gICAgICBmb250ID0gY2xvdWRGb250LFxuICAgICAgZm9udFNpemUgPSBjbG91ZEZvbnRTaXplLFxuICAgICAgZm9udFN0eWxlID0gY2xvdWRGb250Tm9ybWFsLFxuICAgICAgZm9udFdlaWdodCA9IGNsb3VkRm9udE5vcm1hbCxcbiAgICAgIHJvdGF0ZSA9IGNsb3VkUm90YXRlLFxuICAgICAgcGFkZGluZyA9IGNsb3VkUGFkZGluZyxcbiAgICAgIHNwaXJhbCA9IGFyY2hpbWVkZWFuU3BpcmFsLFxuICAgICAgd29yZHMgPSBbXSxcbiAgICAgIHRpbWVJbnRlcnZhbCA9IEluZmluaXR5LFxuICAgICAgZXZlbnQgPSBkaXNwYXRjaChcIndvcmRcIiwgXCJlbmRcIiksXG4gICAgICB0aW1lciA9IG51bGwsXG4gICAgICByYW5kb20gPSBNYXRoLnJhbmRvbSxcbiAgICAgIGNsb3VkID0ge30sXG4gICAgICBjYW52YXMgPSBjbG91ZENhbnZhcztcblxuICBjbG91ZC5jYW52YXMgPSBmdW5jdGlvbihfKSB7XG4gICAgcmV0dXJuIGFyZ3VtZW50cy5sZW5ndGggPyAoY2FudmFzID0gZnVuY3RvcihfKSwgY2xvdWQpIDogY2FudmFzO1xuICB9O1xuXG4gIGNsb3VkLnN0YXJ0ID0gZnVuY3Rpb24oKSB7XG4gICAgdmFyIGNvbnRleHRBbmRSYXRpbyA9IGdldENvbnRleHQoY2FudmFzKCkpLFxuICAgICAgICBib2FyZCA9IHplcm9BcnJheSgoc2l6ZVswXSA+PiA1KSAqIHNpemVbMV0pLFxuICAgICAgICBib3VuZHMgPSBudWxsLFxuICAgICAgICBuID0gd29yZHMubGVuZ3RoLFxuICAgICAgICBpID0gLTEsXG4gICAgICAgIHRhZ3MgPSBbXSxcbiAgICAgICAgZGF0YSA9IHdvcmRzLm1hcChmdW5jdGlvbihkLCBpKSB7XG4gICAgICAgICAgZC50ZXh0ID0gdGV4dC5jYWxsKHRoaXMsIGQsIGkpO1xuICAgICAgICAgIGQuZm9udCA9IGZvbnQuY2FsbCh0aGlzLCBkLCBpKTtcbiAgICAgICAgICBkLnN0eWxlID0gZm9udFN0eWxlLmNhbGwodGhpcywgZCwgaSk7XG4gICAgICAgICAgZC53ZWlnaHQgPSBmb250V2VpZ2h0LmNhbGwodGhpcywgZCwgaSk7XG4gICAgICAgICAgZC5yb3RhdGUgPSByb3RhdGUuY2FsbCh0aGlzLCBkLCBpKTtcbiAgICAgICAgICBkLnNpemUgPSB+fmZvbnRTaXplLmNhbGwodGhpcywgZCwgaSk7XG4gICAgICAgICAgZC5wYWRkaW5nID0gcGFkZGluZy5jYWxsKHRoaXMsIGQsIGkpO1xuICAgICAgICAgIHJldHVybiBkO1xuICAgICAgICB9KS5zb3J0KGZ1bmN0aW9uKGEsIGIpIHsgcmV0dXJuIGIuc2l6ZSAtIGEuc2l6ZTsgfSk7XG5cbiAgICBpZiAodGltZXIpIGNsZWFySW50ZXJ2YWwodGltZXIpO1xuICAgIHRpbWVyID0gc2V0SW50ZXJ2YWwoc3RlcCwgMCk7XG4gICAgc3RlcCgpO1xuXG4gICAgcmV0dXJuIGNsb3VkO1xuXG4gICAgZnVuY3Rpb24gc3RlcCgpIHtcbiAgICAgIHZhciBzdGFydCA9IERhdGUubm93KCk7XG4gICAgICB3aGlsZSAoRGF0ZS5ub3coKSAtIHN0YXJ0IDwgdGltZUludGVydmFsICYmICsraSA8IG4gJiYgdGltZXIpIHtcbiAgICAgICAgdmFyIGQgPSBkYXRhW2ldO1xuICAgICAgICBkLnggPSAoc2l6ZVswXSAqIChyYW5kb20oKSArIC41KSkgPj4gMTtcbiAgICAgICAgZC55ID0gKHNpemVbMV0gKiAocmFuZG9tKCkgKyAuNSkpID4+IDE7XG4gICAgICAgIGNsb3VkU3ByaXRlKGNvbnRleHRBbmRSYXRpbywgZCwgZGF0YSwgaSk7XG4gICAgICAgIGlmIChkLmhhc1RleHQgJiYgcGxhY2UoYm9hcmQsIGQsIGJvdW5kcykpIHtcbiAgICAgICAgICB0YWdzLnB1c2goZCk7XG4gICAgICAgICAgZXZlbnQuY2FsbChcIndvcmRcIiwgY2xvdWQsIGQpO1xuICAgICAgICAgIGlmIChib3VuZHMpIGNsb3VkQm91bmRzKGJvdW5kcywgZCk7XG4gICAgICAgICAgZWxzZSBib3VuZHMgPSBbe3g6IGQueCArIGQueDAsIHk6IGQueSArIGQueTB9LCB7eDogZC54ICsgZC54MSwgeTogZC55ICsgZC55MX1dO1xuICAgICAgICAgIC8vIFRlbXBvcmFyeSBoYWNrXG4gICAgICAgICAgZC54IC09IHNpemVbMF0gPj4gMTtcbiAgICAgICAgICBkLnkgLT0gc2l6ZVsxXSA+PiAxO1xuICAgICAgICB9XG4gICAgICB9XG4gICAgICBpZiAoaSA+PSBuKSB7XG4gICAgICAgIGNsb3VkLnN0b3AoKTtcbiAgICAgICAgZXZlbnQuY2FsbChcImVuZFwiLCBjbG91ZCwgdGFncywgYm91bmRzKTtcbiAgICAgIH1cbiAgICB9XG4gIH1cblxuICBjbG91ZC5zdG9wID0gZnVuY3Rpb24oKSB7XG4gICAgaWYgKHRpbWVyKSB7XG4gICAgICBjbGVhckludGVydmFsKHRpbWVyKTtcbiAgICAgIHRpbWVyID0gbnVsbDtcbiAgICB9XG4gICAgcmV0dXJuIGNsb3VkO1xuICB9O1xuXG4gIGZ1bmN0aW9uIGdldENvbnRleHQoY2FudmFzKSB7XG4gICAgY2FudmFzLndpZHRoID0gY2FudmFzLmhlaWdodCA9IDE7XG4gICAgdmFyIHJhdGlvID0gTWF0aC5zcXJ0KGNhbnZhcy5nZXRDb250ZXh0KFwiMmRcIikuZ2V0SW1hZ2VEYXRhKDAsIDAsIDEsIDEpLmRhdGEubGVuZ3RoID4+IDIpO1xuICAgIGNhbnZhcy53aWR0aCA9IChjdyA8PCA1KSAvIHJhdGlvO1xuICAgIGNhbnZhcy5oZWlnaHQgPSBjaCAvIHJhdGlvO1xuXG4gICAgdmFyIGNvbnRleHQgPSBjYW52YXMuZ2V0Q29udGV4dChcIjJkXCIpO1xuICAgIGNvbnRleHQuZmlsbFN0eWxlID0gY29udGV4dC5zdHJva2VTdHlsZSA9IFwicmVkXCI7XG4gICAgY29udGV4dC50ZXh0QWxpZ24gPSBcImNlbnRlclwiO1xuXG4gICAgcmV0dXJuIHtjb250ZXh0OiBjb250ZXh0LCByYXRpbzogcmF0aW99O1xuICB9XG5cbiAgZnVuY3Rpb24gcGxhY2UoYm9hcmQsIHRhZywgYm91bmRzKSB7XG4gICAgdmFyIHBlcmltZXRlciA9IFt7eDogMCwgeTogMH0sIHt4OiBzaXplWzBdLCB5OiBzaXplWzFdfV0sXG4gICAgICAgI
21HN0YXJ0WCA9IHRhZy54LFxuICAgICAgICBzdGFydFkgPSB0YWcueSxcbiAgICAgICAgbWF4RGVsdGEgPSBNYXRoLnNxcnQoc2l6ZVswXSAqIHNpemVbMF0gKyBzaXplWzFdICogc2l6ZVsxXSksXG4gICAgICAgIHMgPSBzcGlyYWwoc2l6ZSksXG4gICAgICAgIGR0ID0gcmFuZG9tKCkgPCAuNSA/IDEgOiAtMSxcbiAgICAgICAgdCA9IC1kdCxcbiAgICAgICAgZHhkeSxcbiAgICAgICAgZHgsXG4gICAgICAgIGR5O1xuXG4gICAgd2hpbGUgKGR4ZHkgPSBzKHQgKz0gZHQpKSB7XG4gICAgICBkeCA9IH5+ZHhkeVswXTtcbiAgICAgIGR5ID0gfn5keGR5WzFdO1xuXG4gICAgICBpZiAoTWF0aC5taW4oTWF0aC5hYnMoZHgpLCBNYXRoLmFicyhkeSkpID49IG1heERlbHRhKSBicmVhaztcblxuICAgICAgdGFnLnggPSBzdGFydFggKyBkeDtcbiAgICAgIHRhZy55ID0gc3RhcnRZICsgZHk7XG5cbiAgICAgIGlmICh0YWcueCArIHRhZy54MCA8IDAgfHwgdGFnLnkgKyB0YWcueTAgPCAwIHx8XG4gICAgICAgICAgdGFnLnggKyB0YWcueDEgPiBzaXplWzBdIHx8IHRhZy55ICsgdGFnLnkxID4gc2l6ZVsxXSkgY29udGludWU7XG4gICAgICAvLyBUT0RPIG9ubHkgY2hlY2sgZm9yIGNvbGxpc2lvbnMgd2l0aGluIGN1cnJlbnQgYm91bmRzLlxuICAgICAgaWYgKCFib3VuZHMgfHwgIWNsb3VkQ29sbGlkZSh0YWcsIGJvYXJkLCBzaXplWzBdKSkge1xuICAgICAgICBpZiAoIWJvdW5kcyB8fCBjb2xsaWRlUmVjdHModGFnLCBib3VuZHMpKSB7XG4gICAgICAgICAgdmFyIHNwcml0ZSA9IHRhZy5zcHJpdGUsXG4gICAgICAgICAgICAgIHcgPSB0YWcud2lkdGggPj4gNSxcbiAgICAgICAgICAgICAgc3cgPSBzaXplWzBdID4+IDUsXG4gICAgICAgICAgICAgIGx4ID0gdGFnLnggLSAodyA8PCA0KSxcbiAgICAgICAgICAgICAgc3ggPSBseCAmIDB4N2YsXG4gICAgICAgICAgICAgIG1zeCA9IDMyIC0gc3gsXG4gICAgICAgICAgICAgIGggPSB0YWcueTEgLSB0YWcueTAsXG4gICAgICAgICAgICAgIHggPSAodGFnLnkgKyB0YWcueTApICogc3cgKyAobHggPj4gNSksXG4gICAgICAgICAgICAgIGxhc3Q7XG4gICAgICAgICAgZm9yICh2YXIgaiA9IDA7IGogPCBoOyBqKyspIHtcbiAgICAgICAgICAgIGxhc3QgPSAwO1xuICAgICAgICAgICAgZm9yICh2YXIgaSA9IDA7IGkgPD0gdzsgaSsrKSB7XG4gICAgICAgICAgICAgIGJvYXJkW3ggKyBpXSB8PSAobGFzdCA8PCBtc3gpIHwgKGkgPCB3ID8gKGxhc3QgPSBzcHJpdGVbaiAqIHcgKyBpXSkgPj4+IHN4IDogMCk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICB4ICs9IHN3O1xuICAgICAgICAgIH1cbiAgICAgICAgICBkZWxldGUgdGFnLnNwcml0ZTtcbiAgICAgICAgICByZXR1cm4gdHJ1ZTtcbiAgICAgICAgfVxuICAgICAgfVxuICAgIH1cbiAgICByZXR1cm4gZmFsc2U7XG4gIH1cblxuICBjbG91ZC50aW1lSW50ZXJ2YWwgPSBmdW5jdGlvbihfKSB7XG4gICAgcmV0dXJuIGFyZ3VtZW50cy5sZW5ndGggPyAodGltZUludGVydmFsID0gXyA9PSBudWxsID8gSW5maW5pdHkgOiBfLCBjbG91ZCkgOiB0aW1lSW50ZXJ2YWw7XG4gIH07XG5cbiAgY2xvdWQud29yZHMgPSBmdW5jdGlvbihfKSB7XG4gICAgcmV0dXJuIGFyZ3VtZW50cy5sZW5ndGggPyAod29yZHMgPSBfLCBjbG91ZCkgOiB3b3JkcztcbiAgfTtcblxuICBjbG91ZC5zaXplID0gZnVuY3Rpb24oXykge1xuICAgIHJldHVybiBhcmd1bWVudHMubGVuZ3RoID8gKHNpemUgPSBbK19bMF0sICtfWzFdXSwgY2xvdWQpIDogc2l6ZTtcbiAgfTtcblxuICBjbG91ZC5mb250ID0gZnVuY3Rpb24oXykge1xuICAgIHJldHVybiBhcmd1bWVudHMubGVuZ3RoID8gKGZvbnQgPSBmdW5jdG9yKF8pLCBjbG91ZCkgOiBmb250O1xuICB9O1xuXG4gIGNsb3VkLmZvbnRTdHlsZSA9IGZ1bmN0aW9uKF8pIHtcbiAgICByZXR1cm4gYXJndW1lbnRzLmxlbmd0aCA/IChmb250U3R5bGUgPSBmdW5jdG9yKF8pLCBjbG91ZCkgOiBmb250U3R5bGU7XG4gIH07XG5cbiAgY2xvdWQuZm9udFdlaWdodCA9IGZ1bmN0aW9uKF8pIHtcbiAgICByZXR1cm4gYXJndW1lbnRzLmxlbmd0aCA/IChmb250V2VpZ2h0ID0gZnVuY3RvcihfKSwgY2xvdWQpIDogZm9udFdlaWdodDtcbiAgfTtcblxuICBjbG91ZC5yb3RhdGUgPSBmdW5jdGlvbihfKSB7XG4gICAgcmV0dXJuIGFyZ3VtZW50cy5sZW5ndGggPyAocm90YXRlID0gZnVuY3RvcihfKSwgY2xvdWQpIDogcm90YXRlO1xuICB9O1xuXG4gIGNsb3VkLnRleHQgPSBmdW5jdGlvbihfKSB7XG4gICAgcmV0dXJuIGFyZ3VtZW50cy5sZW5ndGggPyAodGV4dCA9IGZ1bmN0b3IoXyksIGNsb3VkKSA6IHRleHQ7XG4gIH07XG5cbiAgY2xvdWQuc3BpcmFsID0gZnVuY3Rpb24oXykge1xuICAgIHJldHVybiBhcmd1bWVudHMubGVuZ3RoID8gKHNwaXJhbCA9IHNwaXJhbHNbX10gfHwgXywgY2xvdWQpIDogc3BpcmFsO1xuICB9O1xuXG4gIGNsb3VkLmZvbnRTaXplID0gZnVuY3Rpb24oXykge1xuICAgIHJldHVybiBhcmd1bWVudHMubGVuZ3RoID8gKGZvbnRTaXplID0gZnVuY3RvcihfKSwgY2xvdWQpIDogZm9udFNpemU7XG4gIH07XG5cbiAgY2xvdWQucGFkZGluZyA9IGZ1bmN0aW9uKF8pIHtcbiAgICByZXR1cm4gYXJndW1lbnRzLmxlbmd0aCA/IChwYWRkaW5nID0gZnVuY3RvcihfKSwgY2xvdWQpIDogcGFkZGluZztcbiAgfTtcblxuICBjbG91ZC5yYW5kb20gPSBmdW5jdGlvbihfKSB7XG4gICAgcmV0dXJuIGFyZ3VtZW50cy5sZW5ndGggPyAocmFuZG9tID0gXywgY2xvdWQpIDogcmFuZG9tO1xuICB9O1xuXG4gIGNsb3VkLm9uID0gZnVuY3Rpb24oKSB7XG4gICAgdmFyIHZhbHVlID0gZXZlbnQub24uYXBwbHkoZXZlbnQsIGFyZ3VtZW50cyk7XG4gICAgcmV0dXJuIHZhbHVlID09PSBldmVudCA/IGNsb3VkIDogdmFsdWU7XG4gIH07XG5cbiAgcmV0dXJuIGNsb3VkO1xufTtcblxuZnVuY3Rpb24gY2xvdWRUZXh0KGQpIHtcbiAgcmV0dXJuIGQudGV4dDtcbn1cblxuZnVuY3Rpb24gY2xvdWRGb250KCkge1xuICByZXR1cm4gXCJzZXJpZlwiO1xufVxuXG5mdW5jdGlvbiBjbG91ZEZvbnROb3JtYWwoKSB7XG4gIHJldHVybi
21BcIm5vcm1hbFwiO1xufVxuXG5mdW5jdGlvbiBjbG91ZEZvbnRTaXplKGQpIHtcbiAgcmV0dXJuIE1hdGguc3FydChkLnZhbHVlKTtcbn1cblxuZnVuY3Rpb24gY2xvdWRSb3RhdGUoKSB7XG4gIHJldHVybiAofn4oTWF0aC5yYW5kb20oKSAqIDYpIC0gMykgKiAzMDtcbn1cblxuZnVuY3Rpb24gY2xvdWRQYWRkaW5nKCkge1xuICByZXR1cm4gMTtcbn1cblxuLy8gRmV0Y2hlcyBhIG1vbm9jaHJvbWUgc3ByaXRlIGJpdG1hcCBmb3IgdGhlIHNwZWNpZmllZCB0ZXh0LlxuLy8gTG9hZCBpbiBiYXRjaGVzIGZvciBzcGVlZC5cbmZ1bmN0aW9uIGNsb3VkU3ByaXRlKGNvbnRleHRBbmRSYXRpbywgZCwgZGF0YSwgZGkpIHtcbiAgaWYgKGQuc3ByaXRlKSByZXR1cm47XG4gIHZhciBjID0gY29udGV4dEFuZFJhdGlvLmNvbnRleHQsXG4gICAgICByYXRpbyA9IGNvbnRleHRBbmRSYXRpby5yYXRpbztcblxuICBjLmNsZWFyUmVjdCgwLCAwLCAoY3cgPDwgNSkgLyByYXRpbywgY2ggLyByYXRpbyk7XG4gIHZhciB4ID0gMCxcbiAgICAgIHkgPSAwLFxuICAgICAgbWF4aCA9IDAsXG4gICAgICBuID0gZGF0YS5sZW5ndGg7XG4gIC0tZGk7XG4gIHdoaWxlICgrK2RpIDwgbikge1xuICAgIGQgPSBkYXRhW2RpXTtcbiAgICBjLnNhdmUoKTtcbiAgICBjLmZvbnQgPSBkLnN0eWxlICsgXCIgXCIgKyBkLndlaWdodCArIFwiIFwiICsgfn4oKGQuc2l6ZSArIDEpIC8gcmF0aW8pICsgXCJweCBcIiArIGQuZm9udDtcbiAgICB2YXIgdyA9IGMubWVhc3VyZVRleHQoZC50ZXh0ICsgXCJtXCIpLndpZHRoICogcmF0aW8sXG4gICAgICAgIGggPSBkLnNpemUgPDwgMTtcbiAgICBpZiAoZC5yb3RhdGUpIHtcbiAgICAgIHZhciBzciA9IE1hdGguc2luKGQucm90YXRlICogY2xvdWRSYWRpYW5zKSxcbiAgICAgICAgICBjciA9IE1hdGguY29zKGQucm90YXRlICogY2xvdWRSYWRpYW5zKSxcbiAgICAgICAgICB3Y3IgPSB3ICogY3IsXG4gICAgICAgICAgd3NyID0gdyAqIHNyLFxuICAgICAgICAgIGhjciA9IGggKiBjcixcbiAgICAgICAgICBoc3IgPSBoICogc3I7XG4gICAgICB3ID0gKE1hdGgubWF4KE1hdGguYWJzKHdjciArIGhzciksIE1hdGguYWJzKHdjciAtIGhzcikpICsgMHgxZikgPj4gNSA8PCA1O1xuICAgICAgaCA9IH5+TWF0aC5tYXgoTWF0aC5hYnMod3NyICsgaGNyKSwgTWF0aC5hYnMod3NyIC0gaGNyKSk7XG4gICAgfSBlbHNlIHtcbiAgICAgIHcgPSAodyArIDB4MWYpID4+IDUgPDwgNTtcbiAgICB9XG4gICAgaWYgKGggPiBtYXhoKSBtYXhoID0gaDtcbiAgICBpZiAoeCArIHcgPj0gKGN3IDw8IDUpKSB7XG4gICAgICB4ID0gMDtcbiAgICAgIHkgKz0gbWF4aDtcbiAgICAgIG1heGggPSAwO1xuICAgIH1cbiAgICBpZiAoeSArIGggPj0gY2gpIGJyZWFrO1xuICAgIGMudHJhbnNsYXRlKCh4ICsgKHcgPj4gMSkpIC8gcmF0aW8sICh5ICsgKGggPj4gMSkpIC8gcmF0aW8pO1xuICAgIGlmIChkLnJvdGF0ZSkgYy5yb3RhdGUoZC5yb3RhdGUgKiBjbG91ZFJhZGlhbnMpO1xuICAgIGMuZmlsbFRleHQoZC50ZXh0LCAwLCAwKTtcbiAgICBpZiAoZC5wYWRkaW5nKSBjLmxpbmVXaWR0aCA9IDIgKiBkLnBhZGRpbmcsIGMuc3Ryb2tlVGV4dChkLnRleHQsIDAsIDApO1xuICAgIGMucmVzdG9yZSgpO1xuICAgIGQud2lkdGggPSB3O1xuICAgIGQuaGVpZ2h0ID0gaDtcbiAgICBkLnhvZmYgPSB4O1xuICAgIGQueW9mZiA9IHk7XG4gICAgZC54MSA9IHcgPj4gMTtcbiAgICBkLnkxID0gaCA+PiAxO1xuICAgIGQueDAgPSAtZC54MTtcbiAgICBkLnkwID0gLWQueTE7XG4gICAgZC5oYXNUZXh0ID0gdHJ1ZTtcbiAgICB4ICs9IHc7XG4gIH1cbiAgdmFyIHBpeGVscyA9IGMuZ2V0SW1hZ2VEYXRhKDAsIDAsIChjdyA8PCA1KSAvIHJhdGlvLCBjaCAvIHJhdGlvKS5kYXRhLFxuICAgICAgc3ByaXRlID0gW107XG4gIHdoaWxlICgtLWRpID49IDApIHtcbiAgICBkID0gZGF0YVtkaV07XG4gICAgaWYgKCFkLmhhc1RleHQpIGNvbnRpbnVlO1xuICAgIHZhciB3ID0gZC53aWR0aCxcbiAgICAgICAgdzMyID0gdyA+PiA1LFxuICAgICAgICBoID0gZC55MSAtIGQueTA7XG4gICAgLy8gWmVybyB0aGUgYnVmZmVyXG4gICAgZm9yICh2YXIgaSA9IDA7IGkgPCBoICogdzMyOyBpKyspIHNwcml0ZVtpXSA9IDA7XG4gICAgeCA9IGQueG9mZjtcbiAgICBpZiAoeCA9PSBudWxsKSByZXR1cm47XG4gICAgeSA9IGQueW9mZjtcbiAgICB2YXIgc2VlbiA9IDAsXG4gICAgICAgIHNlZW5Sb3cgPSAtMTtcbiAgICBmb3IgKHZhciBqID0gMDsgaiA8IGg7IGorKykge1xuICAgICAgZm9yICh2YXIgaSA9IDA7IGkgPCB3OyBpKyspIHtcbiAgICAgICAgdmFyIGsgPSB3MzIgKiBqICsgKGkgPj4gNSksXG4gICAgICAgICAgICBtID0gcGl4ZWxzWygoeSArIGopICogKGN3IDw8IDUpICsgKHggKyBpKSkgPDwgMl0gPyAxIDw8ICgzMSAtIChpICUgMzIpKSA6IDA7XG4gICAgICAgIHNwcml0ZVtrXSB8PSBtO1xuICAgICAgICBzZWVuIHw9IG07XG4gICAgICB9XG4gICAgICBpZiAoc2Vlbikgc2VlblJvdyA9IGo7XG4gICAgICBlbHNlIHtcbiAgICAgICAgZC55MCsrO1xuICAgICAgICBoLS07XG4gICAgICAgIGotLTtcbiAgICAgICAgeSsrO1xuICAgICAgfVxuICAgIH1cbiAgICBkLnkxID0gZC55MCArIHNlZW5Sb3c7XG4gICAgZC5zcHJpdGUgPSBzcHJpdGUuc2xpY2UoMCwgKGQueTEgLSBkLnkwKSAqIHczMik7XG4gIH1cbn1cblxuLy8gVXNlIG1hc2stYmFzZWQgY29sbGlzaW9uIGRldGVjdGlvbi5cbmZ1bmN0aW9uIGNsb3VkQ29sbGlkZSh0YWcsIGJvYXJkLCBzdykge1xuICBzdyA+Pj0gNTtcbiAgdmFyIHNwcml0ZSA9IHRhZy5zcHJpdGUsXG4gICAgICB3ID0gdGFnLndpZHRoID4+IDUsXG4gICAgICBseCA9IHRhZy54IC0gKHcgPDwgNCksXG4gICAgICBzeCA9IGx4ICYgMHg3ZixcbiAgICAgIG1zeCA9IDMyIC0gc3gsXG4gICAgICBoID0gdGFnLnkxIC0gdGFnLnkwLFxuICAgICAgeCA9ICh0YWcueSArIHRhZy55MCkgKiBzdyArIChseCA+PiA1KSxcbiAgICAgIGxhc3Q7XG4gIGZvciAodmFyIGogPSAwOyBqIDwgaDsgaisrKSB7XG4gICAgbGFzdCA9IDA7XG4gICAgZm9yICh2YXIgaSA9IDA7IGkgPD0gdzsgaSsrKSB7XG4gICAgICBpZiAoKChsYXN0IDw8IG1zeCkgfCAoaSA8IHcgPyAobGFzdCA9IHNwcml0ZVtqICogdyArIGldKSA+Pj4gc3ggOiAwKSlcbiAgICAgICAgICAmIGJvYXJkW3ggKyBpXSkgcmV0dXJuIHRydWU7XG4gICAgfVxuICAgIHggKz0gc3c7XG4gIH1cbiAgcmV0dXJuIGZhbHNlO1xufVxuXG5mdW5jdGlvbiBjbG91ZEJvdW5kcyhib3VuZHMsIGQpIHtcbiAgdmFyIGIwID0gYm91bmRzWzBdLFxuICAgICAgYjEgPSBib3VuZHNbMV07XG4gIGlmIChkLnggKyBkLngwIDwgYjAueCkgYjAueCA9IGQueCArIGQueDA7XG4gIGlmIChkLnkgKyBkLnkwIDwgYjAueSkgYjAueSA9IGQueSArIGQueTA7XG4gIGlmIChkLnggKyBkLngxID4gYjEueCkgYjEueCA9IGQueCArIGQueDE7XG4gIGlmIChkLnkgKyBkLnkxID4gYjEueSkgYjEueSA9IGQueSArIGQueTE7XG59XG5cbmZ1bmN0aW9uIGNvbGxpZGVSZWN0cyhhLCBiKSB7XG4gIHJldHVybi
21BhLnggKyBhLngxID4gYlswXS54ICYmIGEueCArIGEueDAgPCBiWzFdLnggJiYgYS55ICsgYS55MSA+IGJbMF0ueSAmJiBhLnkgKyBhLnkwIDwgYlsxXS55O1xufVxuXG5mdW5jdGlvbiBhcmNoaW1lZGVhblNwaXJhbChzaXplKSB7XG4gIHZhciBlID0gc2l6ZVswXSAvIHNpemVbMV07XG4gIHJldHVybiBmdW5jdGlvbih0KSB7XG4gICAgcmV0dXJuIFtlICogKHQgKj0gLjEpICogTWF0aC5jb3ModCksIHQgKiBNYXRoLnNpbih0KV07XG4gIH07XG59XG5cbmZ1bmN0aW9uIHJlY3Rhbmd1bGFyU3BpcmFsKHNpemUpIHtcbiAgdmFyIGR5ID0gNCxcbiAgICAgIGR4ID0gZHkgKiBzaXplWzBdIC8gc2l6ZVsxXSxcbiAgICAgIHggPSAwLFxuICAgICAgeSA9IDA7XG4gIHJldHVybiBmdW5jdGlvbih0KSB7XG4gICAgdmFyIHNpZ24gPSB0IDwgMCA/IC0xIDogMTtcbiAgICAvLyBTZWUgdHJpYW5ndWxhciBudW1iZXJzOiBUX24gPSBuICogKG4gKyAxKSAvIDIuXG4gICAgc3dpdGNoICgoTWF0aC5zcXJ0KDEgKyA0ICogc2lnbiAqIHQpIC0gc2lnbikgJiAzKSB7XG4gICAgICBjYXNlIDA6ICB4ICs9IGR4OyBicmVhaztcbiAgICAgIGNhc2UgMTogIHkgKz0gZHk7IGJyZWFrO1xuICAgICAgY2FzZSAyOiAgeCAtPSBkeDsgYnJlYWs7XG4gICAgICBkZWZhdWx0OiB5IC09IGR5OyBicmVhaztcbiAgICB9XG4gICAgcmV0dXJuIFt4LCB5XTtcbiAgfTtcbn1cblxuLy8gVE9ETyByZXVzZSBhcnJheXM/XG5mdW5jdGlvbiB6ZXJvQXJyYXkobikge1xuICB2YXIgYSA9IFtdLFxuICAgICAgaSA9IC0xO1xuICB3aGlsZSAoKytpIDwgbikgYVtpXSA9IDA7XG4gIHJldHVybiBhO1xufVxuXG5mdW5jdGlvbiBjbG91ZENhbnZhcygpIHtcbiAgcmV0dXJuIGRvY3VtZW50LmNyZWF0ZUVsZW1lbnQoXCJjYW52YXNcIik7XG59XG5cbmZ1bmN0aW9uIGZ1bmN0b3IoZCkge1xuICByZXR1cm4gdHlwZW9mIGQgPT09IFwiZnVuY3Rpb25cIiA/IGQgOiBmdW5jdGlvbigpIHsgcmV0dXJuIGQ7IH07XG59XG5cbnZhciBzcGlyYWxzID0ge1xuICBhcmNoaW1lZGVhbjogYXJjaGltZWRlYW5TcGlyYWwsXG4gIHJlY3Rhbmd1bGFyOiByZWN0YW5ndWxhclNwaXJhbFxufTtcbiJdLCJuYW1lcyI6WyJkaXNwYXRjaCIsInJlcXVpcmUkJDAiXSwibWFwcGluZ3MiOiJBQUFBLElBQUksSUFBSSxHQUFHLENBQUMsS0FBSyxFQUFFLFdBQVcsRUFBRSxDQUFDLENBQUM7QUFDbEM7QUFDQSxTQUFTLFFBQVEsR0FBRztBQUNwQixFQUFFLEtBQUssSUFBSSxDQUFDLEdBQUcsQ0FBQyxFQUFFLENBQUMsR0FBRyxTQUFTLENBQUMsTUFBTSxFQUFFLENBQUMsR0FBRyxFQUFFLEVBQUUsQ0FBQyxFQUFFLENBQUMsR0FBRyxDQUFDLEVBQUUsRUFBRSxDQUFDLEVBQUU7QUFDL0QsSUFBSSxJQUFJLEVBQUUsQ0FBQyxHQUFHLFNBQVMsQ0FBQyxDQUFDLENBQUMsR0FBRyxFQUFFLENBQUMsS0FBSyxDQUFDLElBQUksQ0FBQyxDQUFDLEVBQUUsTUFBTSxJQUFJLEtBQUssQ0FBQyxnQkFBZ0IsR0FBRyxDQUFDLENBQUMsQ0FBQztBQUNwRixJQUFJLENBQUMsQ0FBQyxDQUFDLENBQUMsR0FBRyxFQUFFLENBQUM7QUFDZCxHQUFHO0FBQ0gsRUFBRSxPQUFPLElBQUksUUFBUSxDQUFDLENBQUMsQ0FBQyxDQUFDO0FBQ3pCLENBQUM7QUFDRDtBQUNBLFNBQVMsUUFBUSxDQUFDLENBQUMsRUFBRTtBQUNyQixFQUFFLElBQUksQ0FBQyxDQUFDLEdBQUcsQ0FBQyxDQUFDO0FBQ2IsQ0FBQztBQUNEO0FBQ0EsU0FBUyxjQUFjLENBQUMsU0FBUyxFQUFFLEtBQUssRUFBRTtBQUMxQyxFQUFFLE9BQU8sU0FBUyxDQUFDLElBQUksRUFBRSxDQUFDLEtBQUssQ0FBQyxPQUFPLENBQUMsQ0FBQyxHQUFHLENBQUMsU0FBUyxDQUFDLEVBQUU7QUFDekQsSUFBSSxJQUFJLElBQUksR0FBRyxFQUFFLEVBQUUsQ0FBQyxHQUFHLENBQUMsQ0FBQyxPQUFPLENBQUMsR0FBRyxDQUFDLENBQUM7QUFDdEMsSUFBSSxJQUFJLENBQUMsSUFBSSxDQUFDLEVBQUUsSUFBSSxHQUFHLENBQUMsQ0FBQyxLQUFLLENBQUMsQ0FBQyxHQUFHLENBQUMsQ0FBQyxFQUFFLENBQUMsR0FBRyxDQUFDLENBQUMsS0FBSyxDQUFDLENBQUMsRUFBRSxDQUFDLENBQUMsQ0FBQztBQUN6RCxJQUFJLElBQUksQ0FBQyxJQUFJLENBQUMsS0FBSyxDQUFDLGNBQWMsQ0FBQyxDQUFDLENBQUMsRUFBRSxNQUFNLElBQUksS0FBSyxDQUFDLGdCQUFnQixHQUFHLENBQUMsQ0FBQyxDQUFDO0FBQzdFLElBQUksT0FBTyxDQUFDLElBQUksRUFBRSxDQUFDLEVBQUUsSUFBSSxFQUFFLElBQUksQ0FBQyxDQUFDO0FBQ2pDLEdBQUcsQ0FBQyxDQUFDO0FBQ0wsQ0FBQztBQUNEO0FBQ0EsUUFBUSxDQUFDLFNBQVMsR0FBRyxRQUFRLENBQUMsU0FBUyxHQUFHO0FBQzFDLEVBQUUsV0FBVyxFQUFFLFFBQVE7QUFDdkIsRUFBRSxFQUFFLEVBQUUsU0FBUyxRQUFRLEVBQUUsUUFBUSxFQUFFO0FBQ25DLElBQUksSUFBSSxDQUFDLEdBQUcsSUFBSSxDQUFDLENBQUM7QUFDbEIsUUFBUSxDQUFDLEdBQUcsY0FBYyxDQUFDLFFBQVEsR0FBRyxFQUFFLEVBQUUsQ0FBQyxDQUFDO0FBQzVDLFFBQVEsQ0FBQztBQUNULFFBQVEsQ0FBQyxHQUFHLENBQUMsQ0FBQztBQUNkLFFBQVEsQ0FBQyxHQUFHLENBQUMsQ0FBQyxNQUFNLENBQUM7QUFDckI7QUFDQTtBQUNBLElBQUksSUFBSSxTQUFTLENBQUMsTUFBTSxHQUFHLENBQUMsRUFBRTtBQUM5QixNQUFNLE9BQU8sRUFBRSxDQUFDLEdBQUcsQ0FBQyxFQUFFLElBQUksQ0FBQyxDQUFDLEdBQUcsQ0FBQyxRQUFRLEdBQUcsQ0FBQyxDQUFDLENBQUMsQ0FBQyxFQUFFLElBQUksTUFBTSxDQUFDLEdBQUcsR0FBRyxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUMsRUFBRSxRQUFRLENBQUMsSUFBSSxDQUFDLENBQUMsRUFBRSxPQUFPLENBQUMsQ0FBQztBQUNuRyxNQUFNLE9BQU87QUFDYixLQUFLO0FBQ0w7QUFDQTtBQUNBO0FBQ0EsSUFBSSxJQUFJLFFBQVEsSUFBSSxJQUFJLElBQUksT0FBTyxRQUFRLEtBQUssVUFBVSxFQUFFLE1BQU0sSUFBSSxLQUFLLENBQUMsb0JBQW9CLEdBQUcsUUFBUSxDQUFDLENBQUM7QUFDN0csSUFBSSxPQUFPLEVBQUUsQ0FBQyxHQUFHLENBQUMsRUFBRTtBQUNwQixNQUFNLElBQUksQ0FBQyxHQUFHLENBQUMsUUFBUSxHQUFHLENBQUMsQ0FBQyxDQUFDLENBQUMsRUFBRSxJQUFJLEVBQUUsQ0FBQyxDQUFDLENBQUMsQ0FBQyxHQUFHLEdBQUcsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDLEVBQUUsUUFBUSxDQUFDLElBQUksRUFBRSxRQUFRLENBQUMsQ0FBQztBQUNoRixXQUFXLElBQUksUUFBUSxJQUFJLElBQUksRUFBRSxLQUFLLENBQUMsSUFBSSxDQUFDLEVBQUUsQ0FBQyxDQUFDLENBQUMsQ0FBQyxHQUFHLEdBQUcsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDLEVBQUUsUUFBUSxDQUFDLElBQUksRUFBRSxJQUFJLENBQUMsQ0FBQztBQUNwRixLQUFLO0FBQ0w7QUFDQSxJQUFJLE9BQU8sSUFBSSxDQUFDO0FBQ2hCLEdBQUc7QUFDSCxFQUFFLElBQUksRUFBRSxXQUFXO0FBQ25CLElBQUksSUFBSSxJQUFJLEdBQUcsRUFBRSxFQUFFLENBQUMsR0FBRyxJQUFJLENBQUMsQ0FBQyxDQUFDO0FBQzlCLElBQUksS0FBSyxJQUFJLENBQUMsSUFBSSxDQUFDLEVBQUUsSUFBSSxDQUFDLENBQUMsQ0FBQyxHQUFHLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQyxLQUFLLEVBQUUsQ0FBQztBQUM1QyxJQUFJLE9BQU8sSUFBSSxRQUFRLENBQUMsSUFBSSxDQUFDLENBQUM7QUFDOUIsR0FBRztBQUNILEVBQUUsSUFBSSxFQUFFLFNBQVMsSUFBSSxFQUFFLElBQUksRUFBRTtBQUM3QixJQUFJLElBQUksQ0FBQyxDQUFDLEdBQUcsU0FBUyxDQUFDLE1BQU0sR0FBRyxDQUFDLElBQUksQ0FBQyxFQUFFLEtBQUssSUFBSSxJQUFJLEdBQUcsSUFBSSxLQUFLLENBQUMsQ0FBQyxDQUFDLEVBQUUsQ0FBQyxHQUFHLENBQUMsRUFBRSxDQUFDLEVBQUUsQ0FBQyxFQUFFLENBQUMsR0FBRyxDQUFDLEVBQUUsRUFBRSxDQUFDLEVBQUUsSUFBSSxDQUFDLENBQUMsQ0FBQyxHQUFHLFNBQVMsQ0FBQyxDQUFDLEdBQUcsQ0FBQyxDQUFDLENBQUM7QUFDMUgsSUFBSSxJQUFJLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQyxjQUFjLENBQUMsSUFBSSxDQUFDLEVBQUUsTUFBTSxJQUFJLEtBQUssQ0FBQyxnQkFBZ0IsR0FBRyxJQUFJLENBQUMsQ0FBQztBQUMvRSxJQUFJLEtBQUssQ0FBQyxHQUFHLElBQUksQ0FBQyxDQUFDLENBQUMsSUFBSSxDQUFDLEVBQUUsQ0FBQyxHQUFHLENBQUMsRUFBRSxDQUFDLEdBQUcsQ0FBQyxDQUFDLE1BQU0sRUFBRSxDQUFDLEdBQUcsQ0FBQyxFQUFFLEVBQUUsQ0FBQyxFQUFFLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQyxLQUFLLENBQUMsS0FBSyxDQUFDLElBQUksRUFBRSxJQUFJLENBQUMsQ0FBQztBQUN6RixHQUFHO0FBQ0gsRUFBRSxLQUFLLEVBQUUsU0FBUyxJQUFJLEVBQUUsSUFBSSxFQUFFLElBQUksRUFBRTtBQUNwQyxJQUFJLElBQUksQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDLGNBQWMsQ0FBQyxJQUFJLENBQUMsRUFBRSxNQUFNLElBQUksS0FBSyxDQUFDLGdCQUFnQixHQUFHLElBQUksQ0FBQyxDQUFDO0FBQy9FLElBQUksS0FBSyxJQUFJLENBQUMsR0FBRyxJQUFJLENBQUMsQ0FBQyxDQUFDLElBQUksQ0FBQyxFQUFFLENBQUMsR0FBRyxDQUFDLEVBQUUsQ0FBQyxHQUFHLENBQUMsQ0FBQyxNQUFNLEVBQUUsQ0FBQyxHQUFHLENBQUMsRUFBRSxFQUFFLENBQUMsRUFBRSxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUMsS0FBSyxDQUFDLEtBQUssQ0FBQyxJQUFJLEVBQUUsSUFBSSxDQUFDLENBQUM7QUFDN0YsR0FBRztBQUNILENBQUMsQ0FBQztBQUNGO0FBQ0EsU0FBUyxHQUFHLENBQUMsSUFBSSxFQUFFLElBQUksRUFBRTtBQUN6QixFQUFFLEtBQUssSUFBSSxDQUFDLEdBQUcsQ0FBQyxFQUFFLENBQUMsR0FBRyxJQUFJLENBQUMsTUFBTSxFQUFFLENBQUMsRUFBRSxDQUFDLEdBQUcsQ0FBQyxFQUFFLEVBQUUsQ0FBQyxFQUFFO0FBQ2xELElBQUksSUFBSSxDQUFDLENBQUMsR0FBRyxJQUFJLENBQUMsQ0FBQyxDQUFDLEVBQUUsSUFBSSxLQUFLLElBQUksRUFBRTtBQUNyQyxN
21QUFNLE9BQU8sQ0FBQyxDQUFDLEtBQUssQ0FBQztBQUNyQixLQUFLO0FBQ0wsR0FBRztBQUNILENBQUM7QUFDRDtBQUNBLFNBQVMsR0FBRyxDQUFDLElBQUksRUFBRSxJQUFJLEVBQUUsUUFBUSxFQUFFO0FBQ25DLEVBQUUsS0FBSyxJQUFJLENBQUMsR0FBRyxDQUFDLEVBQUUsQ0FBQyxHQUFHLElBQUksQ0FBQyxNQUFNLEVBQUUsQ0FBQyxHQUFHLENBQUMsRUFBRSxFQUFFLENBQUMsRUFBRTtBQUMvQyxJQUFJLElBQUksSUFBSSxDQUFDLENBQUMsQ0FBQyxDQUFDLElBQUksS0FBSyxJQUFJLEVBQUU7QUFDL0IsTUFBTSxJQUFJLENBQUMsQ0FBQyxDQUFDLEdBQUcsSUFBSSxFQUFFLElBQUksR0FBRyxJQUFJLENBQUMsS0FBSyxDQUFDLENBQUMsRUFBRSxDQUFDLENBQUMsQ0FBQyxNQUFNLENBQUMsSUFBSSxDQUFDLEtBQUssQ0FBQyxDQUFDLEdBQUcsQ0FBQyxDQUFDLENBQUMsQ0FBQztBQUN4RSxNQUFNLE1BQU07QUFDWixLQUFLO0FBQ0wsR0FBRztBQUNILEVBQUUsSUFBSSxRQUFRLElBQUksSUFBSSxFQUFFLElBQUksQ0FBQyxJQUFJLENBQUMsQ0FBQyxJQUFJLEVBQUUsSUFBSSxFQUFFLEtBQUssRUFBRSxRQUFRLENBQUMsQ0FBQyxDQUFDO0FBQ2pFLEVBQUUsT0FBTyxJQUFJLENBQUM7QUFDZDs7Ozs7OztBQ2pGQTs7O0FBR0EsSUFBSUEsVUFBUSxHQUFHQyxHQUFzQixDQUFDLFFBQVEsQ0FBQzs7QUFFL0MsSUFBSSxZQUFZLEdBQUcsSUFBSSxDQUFDLEVBQUUsR0FBRyxHQUFHO0lBQzVCLEVBQUUsR0FBRyxDQUFDLElBQUksRUFBRSxJQUFJLENBQUM7SUFDakIsRUFBRSxHQU
21FHLENBQUMsSUFBSSxFQUFFLENBQUM7O0FBRWpCLFdBQWMsR0FBRyxXQUFXO0VBQzFCLElBQUksSUFBSSxHQUFHLENBQUMsR0FBRyxFQUFFLEdBQUcsQ0FBQztNQUNqQixJQUFJLEdBQUcsU0FBUztNQUNoQixJQUFJLEdBQUcsU0FBUztNQUNoQixRQUFRLEdBQUcsYUFBYTtNQUN4QixTQUFTLEdBQUcsZUFBZTtNQUMzQixVQUFVLEdBQUcsZUFBZTtNQUM1QixNQUFNLEdBQUcsV0FBVztNQUNwQixPQUFPLEdBQUcsWUFBWTtNQUN0QixNQUFNLEdBQUcsaUJBQWlCO01BQzFCLEtBQUssR0FBRyxFQUFFO01BQ1YsWUFBWSxHQUFHLFFBQVE7TUFDdkIsS0FBSyxHQUFHRCxVQUFRLENBQUMsTUFBTSxFQUFFLEtBQUssQ0FBQztNQUMvQixLQUFLLEdBQUcsSUFBSTtNQUNaLE1BQU0sR0FBRyxJQUFJLENBQUMsTUFBTTtNQUNwQixLQUFLLEdBQUcsRUFBRTtNQUNWLE1BQU0sR0FBRyxXQUFXLENBQUM7O0VBRXpCLEtBQUssQ0FBQyxNQUFNLEdBQUcsU0FBUyxDQUFDLEVBQUU7SUFDekIsT0FBTyxTQUFTLENBQUMsTUFBTSxJQUFJLE1BQU0sR0FBRyxPQUFPLENBQUMsQ0FBQyxDQUFDLEVBQUUsS0FBSyxJQUFJLE1BQU0sQ0FBQztHQUNqRSxDQUFDOztFQUVGLEtBQUssQ0FBQyxLQUFLLEdBQUcsV0FBVztJQUN2QixJQUFJLGVBQWUsR0FBRyxVQUFVLENBQUMsTUFBTSxFQUFFLENBQUM7UUFDdEMsS0FBSyxHQUFHLFNBQVMsQ0FBQyxDQUFDLElBQUksQ0FBQyxDQUFDLENBQUMsSUFBSSxDQUFDLElBQUksSUFBSSxDQUFDLENBQUMsQ0FBQyxDQUFDO1FBQzNDLE1BQU0sR0FBRyxJQUFJO1FBQ2IsQ0FBQyxHQUFHLEtBQUssQ0FBQyxNQUFNO1FBQ2hCLENBQUMsR0FBRyxDQUFDLENBQUM7UUFDTixJQUFJLEdBQUcsRUFBRTtRQUNULElBQUksR0FBRyxLQUFLLENBQUMsR0FBRyxDQUFDLFNBQVMsQ0FBQyxFQUFFLENBQUMsRUFBRTtVQUM5QixDQUFDLENBQUMsSUFBSSxHQUFHLElBQUksQ0FBQyxJQUFJLENBQUMsSUFBSSxFQUFFLENBQUMsRUFBRSxDQUFDLENBQUMsQ0FBQztVQUMvQixDQUFDLENBQUMsSUFBSSxHQUFHLElBQUksQ0FBQyxJQUFJLENBQUMsSUFBSSxFQUFFLENBQUMsRUFBRSxDQUFDLENBQUMsQ0FBQztVQUMvQixDQUFDLENBQUMsS0FBSyxHQUFHLFNBQVMsQ0FBQyxJQUFJLENBQUMsSUFBSSxFQUFFLENBQUMsRUFBRSxDQUFDLENBQUMsQ0FBQztVQUNyQyxDQUFDLENBQUMsTUFBTSxHQUFHLFVBQVUsQ0FBQyxJQUFJLENBQUMsSUFBSSxFQUFFLENBQUMsRUFBRSxDQUFDLENBQUMsQ0FBQztVQUN2QyxDQUFDLENBQUMsTUFBTSxHQUFHLE1BQU0sQ0FBQyxJQUFJLENBQUMsSUFBSSxFQUFFLENBQUMsRUFBRSxDQUFDLENBQUMsQ0FBQztVQUNuQyxDQUFDLENBQUMsSUFBSSxHQUFHLENBQUMsQ0FBQyxRQUFRLENBQUMsSUFBSSxDQUFDLElBQUksRUFBRSxDQUFDLEVBQUUsQ0FBQyxDQUFDLENBQUM7VUFDckMsQ0FBQyxDQUFDLE9BQU8sR0FBRyxPQUFPLENBQUMsSUFBSSxDQUFDLElBQUksRUFBRSxDQUFDLEVBQUUsQ0FBQyxDQUFDLENBQUM7VUFDckMsT0FBTyxDQUFDLENBQUM7U0FDVixDQUFDLENBQUMsSUFBSSxDQUFDLFNBQVMsQ0FBQyxFQUFFLENBQUMsRUFBRSxFQUFFLE9BQU8sQ0FBQyxDQUFDLElBQUksR0FBRyxDQUFDLENBQUMsSUFBSSxDQUFDLEVBQUUsQ0FBQyxDQUFDOztJQUV4RCxJQUFJLEtBQUssRUFBRSxhQUFhLENBQUMsS0FBSyxDQUFDLENBQUM7SUFDaEMsS0FBSyxHQUFHLFdBQVcsQ0FBQyxJQUFJLEVBQUUsQ0FBQyxDQUFDLENBQUM7SUFDN0IsSUFBSSxFQUFFLENBQUM7O0lBRVAsT0FBTyxLQUFLLENBQUM7O0lBRWIsU0FBUyxJQUFJLEdBQUc7TUFDZCxJQUFJLEtBQUssR0FBRyxJQUFJLENBQUMsR0FBRyxFQUFFLENBQUM7TUFDdkIsT0FBTyxJQUFJLENBQUMsR0FBRyxFQUFFLEdBQUcsS0FBSyxHQUFHLFlBQVksSUFBSSxFQUFFLENBQUMsR0FBRyxDQUFDLElBQUksS0FBSyxFQUFFO1FBQzVELElBQUksQ0FBQyxHQUFHLElBQUksQ0FBQyxDQUFDLENBQUMsQ0FBQztRQUNoQixDQUFDLENBQUMsQ0FBQyxHQUFHLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQyxJQUFJLE1BQU0sRUFBRSxHQUFHLEVBQUUsQ0FBQyxLQUFLLENBQUMsQ0FBQztRQUN2QyxDQUFDLENBQUMsQ0FBQyxHQUFHLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQyxJQUFJLE1BQU0sRUFBRSxHQUFHLEVBQUUsQ0FBQyxLQUFLLENBQUMsQ0FBQztRQUN2QyxXQUFXLENBQUMsZUFBZSxFQUFFLENBQUMsRUFBRSxJQUFJLEVBQUUsQ0FBQyxDQUFDLENBQUM7UUFDekMsSUFBSSxDQUFDLENBQUMsT0FBTyxJQUFJLEtBQUssQ0FBQyxLQUFLLEVBQUUsQ0FBQyxFQUFFLE1BQU0sQ0FBQyxFQUFFO1VBQ3hDLElBQUksQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDLENBQUM7VUFDYixLQUFLLENBQUMsSUFBSSxDQUFDLE1BQU0sRUFBRSxLQUFLLEVBQUUsQ0FBQyxDQUFDLENBQUM7VUFDN0IsSUFBSSxNQUFNLEVBQUUsV0FBVyxDQUFDLE1BQU0sRUFBRSxDQUFDLENBQUMsQ0FBQztlQUM5QixNQUFNLEdBQUcsQ0FBQyxDQUFDLENBQUMsRUFBRSxDQUFDLENBQUMsQ0FBQyxHQUFHLENBQUMsQ0FBQyxFQUFFLEVBQUUsQ0FBQyxFQUFFLENBQUMsQ0FBQyxDQUFDLEdBQUcsQ0FBQyxDQUFDLEVBQUUsQ0FBQyxFQUFFLENBQUMsQ0FBQyxFQUFFLENBQUMsQ0FBQyxDQUFDLEdBQUcsQ0FBQyxDQUFDLEVBQUUsRUFBRSxDQUFDLEVBQUUsQ0FBQyxDQUFDLENBQUMsR0FBRyxDQUFDLENBQUMsRUFBRSxDQUFDLENBQUMsQ0FBQzs7VUFFL0UsQ0FBQyxDQUFDLENBQUMsSUFBSSxJQUFJLENBQUMsQ0FBQyxDQUFDLElBQUksQ0FBQyxDQUFDO1VBQ3BCLENBQUMsQ0FBQyxDQUFDLElBQUksSUFBSSxDQUFDLENBQUMsQ0FBQyxJQUFJLENBQUMsQ0FBQztTQUNyQjtPQUNGO01BQ0QsSUFBSSxDQUFDLElBQUksQ0FBQyxFQUFFO1FBQ1YsS0FBSyxDQUFDLElBQUksRUFBRSxDQUFDO1FBQ2IsS0FBSyxDQUFDLElBQUksQ0FBQyxLQUFLLEVBQUUsS0FBSyxFQUFFLElBQUksRUFBRSxNQUFNLENBQUMsQ0FBQztPQUN4QztLQUNGO0lBQ0Y7O0VBRUQsS0FBSyxDQUFDLElBQUksR0FBRyxXQUFXO0lBQ3RCLElBQUksS0FBSyxFQUFFO01BQ1QsYUFBYSxDQUFDLEtBQUssQ0FBQyxDQUFDO01BQ3JCLEtBQUssR0FBRyxJQUFJLENBQUM7S0FDZDtJQUNELE9BQU8sS0FBSyxDQUFDO0dBQ2QsQ0FBQzs7RUFFRixTQUFTLFVBQVUsQ0FBQyxNQUFNLEVBQUU7SUFDMUIsTUFBTSxDQUFDLEtBQUssR0FBRyxNQUFNLENBQUMsTUFBTSxHQUFHLENBQUMsQ0FBQztJQUNqQyxJQUFJLEtBQUssR0FBRyxJQUFJLENBQUMsSUFBSSxDQUFDLE1BQU0sQ0FBQyxVQUFVLENBQUMsSUFBSSxDQUFDLENBQUMsWUFBWSxDQUFDLENBQUMsRUFBRSxDQUFDLEVBQUUsQ0FBQyxFQUFFLENBQUMsQ0FBQyxDQUFDLElBQUksQ0FBQyxNQUFNLElBQUksQ0FBQyxDQUFDLENBQUM7SUFDekYsTUFBTSxDQUFDLEtBQUssR0FBRyxDQUFDLEVBQUUsSUFBSSxDQUFDLElBQUksS0FBSyxDQUFDO0lBQ2pDLE1BQU0sQ0FBQyxNQUFNLEdBQUcsRUFBRSxHQU
21FHLEtBQUssQ0FBQzs7SUFFM0IsSUFBSSxPQUFPLEdBQUcsTUFBTSxDQUFDLFVBQVUsQ0FBQyxJQUFJLENBQUMsQ0FBQztJQUN0QyxPQUFPLENBQUMsU0FBUyxHQUFHLE9BQU8sQ0FBQyxXQUFXLEdBQUcsS0FBSyxDQUFDO0lBQ2hELE9BQU8sQ0FBQyxTQUFTLEdBQUcsUUFBUSxDQUFDOztJQUU3QixPQUFPLENBQUMsT0FBTyxFQUFFLE9BQU8sRUFBRSxLQUFLLEVBQUUsS0FBSyxDQUFDLENBQUM7R0FDekM7O0VBRUQsU0FBUyxLQUFLLENBQUMsS0FBSyxFQUFFLEdBQUcsRUFBRSxNQUFNLEVBQUU7SUFDakMsSUFBSSxTQUFTLEdBQUcsQ0FBQyxDQUFDLENBQUMsRUFBRSxDQUFDLEVBQUUsQ0FBQyxFQUFFLENBQUMsQ0FBQyxFQUFFLENBQUMsQ0FBQyxFQUFFLElBQUksQ0FBQyxDQUFDLENBQUMsRUFBRSxDQUFDLEVBQUUsSUFBSSxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUM7UUFDcEQsTUFBTSxHQUFHLEdBQUcsQ0FBQyxDQUFDO1FBQ2QsTUFBTSxHQUFHLEdBQUcsQ0FBQyxDQUFDO1FBQ2QsUUFBUSxHQUFHLElBQUksQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQyxHQUFHLElBQUksQ0FBQyxDQUFDLENBQUMsR0FBRyxJQUFJLENBQUMsQ0FBQyxDQUFDLEdBQUcsSUFBSSxDQUFDLENBQUMsQ0FBQyxDQUFDO1FBQzNELENBQUMsR0FBRyxNQUFNLENBQUMsSUFBSSxDQUFDO1FBQ2hCLEVBQUUsR0FBRyxNQUFNLEVBQUUsR0FBRyxFQUFFLEdBQUcsQ0FBQyxHQUFHLENBQUMsQ0FBQztRQUMzQixDQUFDLEdBQUcsQ0FBQyxFQUFFO1FBQ1AsSUFBSTtRQUNKLEVBQUU7UUFDRixFQUFFLENBQUM7O0lBRVAsT0FBTyxJQUFJLEdBQUcsQ0FBQyxDQUFDLENBQUMsSUFBSSxFQUFFLENBQUMsRUFBRTtNQUN4QixFQUFFLEdBQUcsQ0FBQyxDQUFDLElBQUksQ0FBQyxDQUFDLENBQUMsQ0FBQztNQUNmLEVBQUUsR0FBRyxDQUFDLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQyxDQUFDOztNQUVmLElBQUksSUFBSSxDQUFDLEdBQUcsQ0FBQyxJQUFJLENBQUMsR0FBRyxDQUFDLEVBQUUsQ0FBQyxFQUFFLElBQUksQ0FBQyxHQUFHLENBQUMsRUFBRSxDQUFDLENBQUMsSUFBSSxRQUFRLEVBQUUsTUFBTTs7TUFFNUQsR0FBRyxDQUFDLENBQUMsR0FBRyxNQUFNLEdBQUcsRUFBRSxDQUFDO01BQ3BCLEdBQUcsQ0FBQyxDQUFDLEdBQUcsTUFBTSxHQUFHLEVBQUUsQ0FBQzs7TUFFcEIsSUFBSSxHQUFHLENBQUMsQ0FBQyxHQUFHLEdBQUcsQ0FBQyxFQUFFLEdBQUcsQ0FBQyxJQUFJLEdBQUcsQ0FBQyxDQUFDLEdBQUcsR0FBRyxDQUFDLEVBQUUsR0FBRyxDQUFDO1VBQ3hDLEdBQUcsQ0FBQyxDQUFDLEdBQUcsR0FBRyxDQUFDLEVBQUUsR0FBRyxJQUFJLENBQUMsQ0FBQyxDQUFDLElBQUksR0FBRyxDQUFDLENBQUMsR0FBRyxHQUFHLENBQUMsRUFBRSxHQU
21FHLElBQUksQ0FBQyxDQUFDLENBQUMsRUFBRSxTQUFTOztNQUVuRSxJQUFJLENBQUMsTUFBTSxJQUFJLENBQUMsWUFBWSxDQUFDLEdBQUcsRUFBRSxLQUFLLEVBQUUsSUFBSSxDQUFDLENBQUMsQ0FBQyxDQUFDLEVBQUU7UUFDakQsSUFBSSxDQUFDLE1BQU0sSUFBSSxZQUFZLENBQUMsR0FBRyxFQUFFLE1BQU0sQ0FBQyxFQUFFO1VBQ3hDLElBQUksTUFBTSxHQUFHLEdBQUcsQ0FBQyxNQUFNO2NBQ25CLENBQUMsR0FBRyxHQUFHLENBQUMsS0FBSyxJQUFJLENBQUM7Y0FDbEIsRUFBRSxHQUFHLElBQUksQ0FBQyxDQUFDLENBQUMsSUFBSSxDQUFDO2NBQ2pCLEVBQUUsR0FBRyxHQUFHLENBQUMsQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDLENBQUM7Y0FDckIsRUFBRSxHQUFHLEVBQUUsR0FBRyxJQUFJO2NBQ2QsR0FBRyxHQUFHLEVBQUUsR0FBRyxFQUFFO2NBQ2IsQ0FBQyxHQUFHLEdBQUcsQ0FBQyxFQUFFLEdBQUcsR0FBRyxDQUFDLEVBQUU7Y0FDbkIsQ0FBQyxHQUFHLENBQUMsR0FBRyxDQUFDLENBQUMsR0FBRyxHQUFHLENBQUMsRUFBRSxJQUFJLEVBQUUsSUFBSSxFQUFFLElBQUksQ0FBQyxDQUFDO2NBQ3JDLElBQUksQ0FBQztVQUNULEtBQUssSUFBSSxDQUFDLEdBQUcsQ0FBQyxFQUFFLENBQUMsR0FBRyxDQUFDLEVBQUUsQ0FBQyxFQUFFLEVBQUU7WUFDMUIsSUFBSSxHQUFHLENBQUMsQ0FBQztZQUNULEtBQUssSUFBSSxDQUFDLEdBQUcsQ0FBQyxFQUFFLENBQUMsSUFBSSxDQUFDLEVBQUUsQ0FBQyxFQUFFLEVBQUU7Y0FDM0IsS0FBSyxDQUFDLENBQUMsR0FBRyxDQUFDLENBQUMsSUFBSSxDQUFDLElBQUksSUFBSSxHQUFHLEtBQUssQ0FBQyxHQUFHLENBQUMsR0FBRyxDQUFDLElBQUksR0FBRyxNQUFNLENBQUMsQ0FBQyxHQUFHLENBQUMsR0FBRyxDQUFDLENBQUMsTUFBTSxFQUFFLEdBQUcsQ0FBQyxDQUFDLENBQUM7YUFDakY7WUFDRCxDQUFDLElBQUksRUFBRSxDQUFDO1dBQ1Q7VUFDRCxPQUFPLEdBQUcsQ0FBQyxNQUFNLENBQUM7VUFDbEIsT0FBTyxJQUFJLENBQUM7U0FDYjtPQUNGO0tBQ0Y7SUFDRCxPQUFPLEtBQUssQ0FBQztHQUNkOztFQUVELEtBQUssQ0FBQyxZQUFZLEdBQUcsU0FBUyxDQUFDLEVBQUU7SUFDL0IsT0FBTyxTQUFTLENBQUMsTUFBTSxJQUFJLFlBQVksR0FBRyxDQUFDLElBQUksSUFBSSxHQUFHLFFBQVEsR0FBRyxDQUFDLEVBQUUsS0FBSyxJQUFJLFlBQVksQ0FBQztHQUMzRixDQUFDOztFQUVGLEtBQUssQ0FBQyxLQUFLLEdBQUcsU0FBUyxDQUFDLEVBQUU7SUFDeEIsT0FBTyxTQUFTLENBQUMsTUFBTSxJQUFJLEtBQUssR0FBRyxDQUFDLEVBQUUsS0FBSyxJQUFJLEtBQUssQ0FBQztHQUN0RCxDQUFDOztFQUVGLEtBQUssQ0FBQyxJQUFJLEdBQUcsU0FBUyxDQUFDLEVBQUU7SUFDdkIsT0FBTyxTQUFTLENBQUMsTUFBTSxJQUFJLElBQUksR0FBRyxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQyxFQUFFLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDLEVBQUUsS0FBSyxJQUFJLElBQUksQ0FBQztHQUNqRSxDQUFDOztFQUVGLEtBQUssQ0FBQyxJQUFJLEdBQUcsU0FBUyxDQUFDLEVBQUU7SUFDdkIsT0FBTyxTQUFTLENBQUMsTUFBTSxJQUFJLElBQUksR0FBRyxPQUFPLENBQUMsQ0FBQyxDQUFDLEVBQUUsS0FBSyxJQUFJLElBQUksQ0FBQztHQUM3RCxDQUFDOztFQUVGLEtBQUssQ0FBQyxTQUFTLEdBQUcsU0FBUyxDQUFDLEVBQUU7SUFDNUIsT0FBTyxTQUFTLENBQUMsTUFBTSxJQUFJLFNBQVMsR0FBRyxPQUFPLENBQUMsQ0FBQyxDQUFDLEVBQUUsS0FBSyxJQUFJLFNBQVMsQ0FBQztHQUN2RSxDQUFDOztFQUVGLEtBQUssQ0FBQyxVQUFVLEdBQUcsU0FBUyxDQUFDLEVBQUU7SUFDN0IsT0FBTyxTQUFTLENBQUMsTUFBTSxJQUFJLFVBQVUsR0FBRyxPQUFPLENBQUMsQ0FBQyxDQUFDLEVBQUUsS0FBSyxJQUFJLFVBQVUsQ0FBQztHQUN6RSxDQUFDOztFQUVGLEtBQUssQ0FBQyxNQUFNLEdBQUcsU0FBUyxDQUFDLEVBQUU7SUFDekIsT0FBTyxTQUFTLENBQUMsTUFBTSxJQUFJLE1BQU0sR0FBRyxPQUFPLENBQUMsQ0FBQyxDQUFDLEVBQUUsS0FBSyxJQUFJLE1BQU0sQ0FBQztHQUNqRSxDQUFDOztFQUVGLEtBQUssQ0FBQyxJQUFJLEdBQUcsU0FBUyxDQUFDLEVBQUU7SUFDdkIsT0FBTyxTQUFTLENBQUMsTUFBTSxJQUFJLElBQUksR0FBRyxPQUFPLENBQUMsQ0FBQyxDQUFDLEVBQUUsS0FBSyxJQUFJLElBQUksQ0FBQztHQUM3RCxDQUFDOztFQUVGLEtBQUssQ0FBQyxNQUFNLEdBQUcsU0FBUyxDQUFDLEVBQUU7SUFDekIsT0FBTyxTQUFTLENBQUMsTUFBTSxJQUFJLE1BQU0sR0FBRyxPQUFPLENBQUMsQ0FBQyxDQUFDLElBQUksQ0FBQyxFQUFFLEtBQUssSUFBSSxNQUFNLENBQUM7R0FDdEUsQ0FBQzs7RUFFRixLQUFLLENBQUMsUUFBUSxHQUFHLFNBQVMsQ0FBQyxFQUFFO0lBQzNCLE9BQU8sU0FBUyxDQUFDLE1BQU0sSUFBSSxRQUFRLEdBQUcsT0FBTyxDQUFDLENBQUMsQ0FBQyxFQUFFLEtBQUssSUFBSSxRQUFRLENBQUM7R0FDckUsQ0FBQzs7RUFFRixLQUFLLENBQUMsT0FBTyxHQUFHLFNBQVMsQ0FBQyxFQUFFO0lBQzFCLE9BQU8sU0FBUyxDQUFDLE1BQU0sSUFBSSxPQUFPLEdBQUcsT0FBTyxDQUFDLENBQUMsQ0FBQyxFQUFFLEtBQUssSUFBSSxPQUFPLENBQUM7R0FDbkUsQ0FBQzs7RUFFRixLQUFLLENBQUMsTUFBTSxHQUFHLFNBQVMsQ0FBQyxFQUFFO0lBQ3pCLE9BQU8sU0FBUyxDQUFDLE1BQU0sSUFBSSxNQUFNLEdBQUcsQ0FBQyxFQUFFLEtBQUssSUFBSSxNQUFNLENBQUM7R0FDeEQsQ0FBQzs7RUFFRixLQUFLLENBQUMsRUFBRSxHQU
21FHLFdBQVc7SUFDcEIsSUFBSSxLQUFLLEdBQUcsS0FBSyxDQUFDLEVBQUUsQ0FBQyxLQUFLLENBQUMsS0FBSyxFQUFFLFNBQVMsQ0FBQyxDQUFDO0lBQzdDLE9BQU8sS0FBSyxLQUFLLEtBQUssR0FBRyxLQUFLLEdBQUcsS0FBSyxDQUFDO0dBQ3hDLENBQUM7O0VBRUYsT0FBTyxLQUFLLENBQUM7Q0FDZCxDQUFDOztBQUVGLFNBQVMsU0FBUyxDQUFDLENBQUMsRUFBRTtFQUNwQixPQUFPLENBQUMsQ0FBQyxJQUFJLENBQUM7Q0FDZjs7QUFFRCxTQUFTLFNBQVMsR0FBRztFQUNuQixPQUFPLE9BQU8sQ0FBQztDQUNoQjs7QUFFRCxTQUFTLGVBQWUsR0FBRztFQUN6QixPQUFPLFFBQVEsQ0FBQztDQUNqQjs7QUFFRCxTQUFTLGFBQWEsQ0FBQyxDQUFDLEVBQUU7RUFDeEIsT0FBTyxJQUFJLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQyxLQUFLLENBQUMsQ0FBQztDQUMzQjs7QUFFRCxTQUFTLFdBQVcsR0FBRztFQUNyQixPQUFPLENBQUMsQ0FBQyxFQUFFLElBQUksQ0FBQyxNQUFNLEVBQUUsR0FBRyxDQUFDLENBQUMsR0FBRyxDQUFDLElBQUksRUFBRSxDQUFDO0NBQ3pDOztBQUVELFNBQVMsWUFBWSxHQUFHO0VBQ3RCLE9BQU8sQ0FBQyxDQUFDO0NBQ1Y7Ozs7QUFJRCxTQUFTLFdBQVcsQ0FBQyxlQUFlLEVBQUUsQ0FBQyxFQUFFLElBQUksRUFBRSxFQUFFLEVBQUU7RUFDakQsSUFBSSxDQUFDLENBQUMsTUFBTSxFQUFFLE9BQU87RUFDckIsSUFBSSxDQUFDLEdBQUcsZUFBZSxDQUFDLE9BQU87TUFDM0IsS0FBSyxHQUFHLGVBQWUsQ0FBQyxLQUFLLENBQUM7O0VBRWxDLENBQUMsQ0FBQyxTQUFTLENBQUMsQ0FBQyxFQUFFLENBQUMsRUFBRSxDQUFDLEVBQUUsSUFBSSxDQUFDLElBQUksS0FBSyxFQUFFLEVBQUUsR0FBRyxLQUFLLENBQUMsQ0FBQztFQUNqRCxJQUFJLENBQUMsR0FBRyxDQUFDO01BQ0wsQ0FBQyxHQUFHLENBQUM7TUFDTCxJQUFJLEdBQUcsQ0FBQztNQUNSLENBQUMsR0FBRyxJQUFJLENBQUMsTUFBTSxDQUFDO0VBQ3BCLEVBQUUsRUFBRSxDQUFDO0VBQ0wsT0FBTyxFQUFFLEVBQUUsR0FBRyxDQUFDLEVBQUU7SUFDZixDQUFDLEdBQUcsSUFBSSxDQUFDLEVBQUUsQ0FBQyxDQUFDO0lBQ2IsQ0FBQyxDQUFDLElBQUksRUFBRSxDQUFDO0lBQ1QsQ0FBQyxDQUFDLElBQUksR0FBRyxDQUFDLENBQUMsS0FBSyxHQUFHLEdBQUcsR0FBRyxDQUFDLENBQUMsTUFBTSxHQUFHLEdBQUcsR0FBRyxDQUFDLEVBQUUsQ0FBQyxDQUFDLENBQUMsSUFBSSxHQUFHLENBQUMsSUFBSSxLQUFLLENBQUMsR0FBRyxLQUFLLEdBQUcsQ0FBQyxDQUFDLElBQUksQ0FBQztJQUNwRixJQUFJLENBQUMsR0FBRyxDQUFDLENBQUMsV0FBVyxDQUFDLENBQUMsQ0FBQyxJQUFJLEdBQUcsR0FBRyxDQUFDLENBQUMsS0FBSyxHQUFHLEtBQUs7UUFDN0MsQ0FBQyxHQUFHLENBQUMsQ0FBQyxJQUFJLElBQUksQ0FBQyxDQUFDO0lBQ3BCLElBQUksQ0FBQyxDQUFDLE1BQU0sRUFBRTtNQUNaLElBQUksRUFBRSxHQUFHLElBQUksQ0FBQyxHQUFHLENBQUMsQ0FBQyxDQUFDLE1BQU0sR0FBRyxZQUFZLENBQUM7VUFDdEMsRUFBRSxHQU
21FHLElBQUksQ0FBQyxHQUFHLENBQUMsQ0FBQyxDQUFDLE1BQU0sR0FBRyxZQUFZLENBQUM7VUFDdEMsR0FBRyxHQUFHLENBQUMsR0FBRyxFQUFFO1VBQ1osR0FBRyxHQUFHLENBQUMsR0FBRyxFQUFFO1VBQ1osR0FBRyxHQUFHLENBQUMsR0FBRyxFQUFFO1VBQ1osR0FBRyxHQUFHLENBQUMsR0FBRyxFQUFFLENBQUM7TUFDakIsQ0FBQyxHQUFHLENBQUMsSUFBSSxDQUFDLEdBQUcsQ0FBQyxJQUFJLENBQUMsR0FBRyxDQUFDLEdBQUcsR0FBRyxHQUFHLENBQUMsRUFBRSxJQUFJLENBQUMsR0FBRyxDQUFDLEdBQUcsR0FBRyxHQUFHLENBQUMsQ0FBQyxHQUFHLElBQUksS0FBSyxDQUFDLElBQUksQ0FBQyxDQUFDO01BQzFFLENBQUMsR0FBRyxDQUFDLENBQUMsSUFBSSxDQUFDLEdBQUcsQ0FBQyxJQUFJLENBQUMsR0FBRyxDQUFDLEdBQUcsR0FBRyxHQUFHLENBQUMsRUFBRSxJQUFJLENBQUMsR0FBRyxDQUFDLEdBQUcsR0FBRyxHQUFHLENBQUMsQ0FBQyxDQUFDO0tBQzFELE1BQU07TUFDTCxDQUFDLEdBQUcsQ0FBQyxDQUFDLEdBQUcsSUFBSSxLQUFLLENBQUMsSUFBSSxDQUFDLENBQUM7S0FDMUI7SUFDRCxJQUFJLENBQUMsR0FBRyxJQUFJLEVBQUUsSUFBSSxHQUFHLENBQUMsQ0FBQztJQUN2QixJQUFJLENBQUMsR0FBRyxDQUFDLEtBQUssRUFBRSxJQUFJLENBQUMsQ0FBQyxFQUFFO01BQ3RCLENBQUMsR0FBRyxDQUFDLENBQUM7TUFDTixDQUFDLElBQUksSUFBSSxDQUFDO01BQ1YsSUFBSSxHQUFHLENBQUMsQ0FBQztLQUNWO0lBQ0QsSUFBSSxDQUFDLEdBQUcsQ0FBQyxJQUFJLEVBQUUsRUFBRSxNQUFNO0lBQ3ZCLENBQUMsQ0FBQyxTQUFTLENBQUMsQ0FBQyxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsQ0FBQyxJQUFJLEtBQUssRUFBRSxDQUFDLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxDQUFDLElBQUksS0FBSyxDQUFDLENBQUM7SUFDNUQsSUFBSSxDQUFDLENBQUMsTUFBTSxFQUFFLENBQUMsQ0FBQyxNQUFNLENBQUMsQ0FBQyxDQUFDLE1BQU0sR0FBRyxZQUFZLENBQUMsQ0FBQztJQUNoRCxDQUFDLENBQUMsUUFBUSxDQUFDLENBQUMsQ0FBQyxJQUFJLEVBQUUsQ0FBQyxFQUFFLENBQUMsQ0FBQyxDQUFDO0lBQ3pCLElBQUksQ0FBQyxDQUFDLE9BQU8sRUFBRSxDQUFDLENBQUMsU0FBUyxHQUFHLENBQUMsR0FBRyxDQUFDLENBQUMsT0FBTyxFQUFFLENBQUMsQ0FBQyxVQUFVLENBQUMsQ0FBQyxDQUFDLElBQUksRUFBRSxDQUFDLEVBQUUsQ0FBQyxDQUFDLENBQUM7SUFDdkUsQ0FBQyxDQUFDLE9BQU8sRUFBRSxDQUFDO0lBQ1osQ0FBQyxDQUFDLEtBQUssR0FBRyxDQUFDLENBQUM7SUFDWixDQUFDLENBQUMsTUFBTSxHQUFHLENBQUMsQ0FBQztJQUNiLENBQUMsQ0FBQyxJQUFJLEdBQUcsQ0FBQyxDQUFDO0lBQ1gsQ0FBQyxDQUFDLElBQUksR0FBRyxDQUFDLENBQUM7SUFDWCxDQUFDLENBQUMsRUFBRSxHQU
21FHLENBQUMsSUFBSSxDQUFDLENBQUM7SUFDZCxDQUFDLENBQUMsRUFBRSxHQUFHLENBQUMsSUFBSSxDQUFDLENBQUM7SUFDZCxDQUFDLENBQUMsRUFBRSxHQUFHLENBQUMsQ0FBQyxDQUFDLEVBQUUsQ0FBQztJQUNiLENBQUMsQ0FBQyxFQUFFLEdBQUcsQ0FBQyxDQUFDLENBQUMsRUFBRSxDQUFDO0lBQ2IsQ0FBQyxDQUFDLE9BQU8sR0FBRyxJQUFJLENBQUM7SUFDakIsQ0FBQyxJQUFJLENBQUMsQ0FBQztHQUNSO0VBQ0QsSUFBSSxNQUFNLEdBQUcsQ0FBQyxDQUFDLFlBQVksQ0FBQyxDQUFDLEVBQUUsQ0FBQyxFQUFFLENBQUMsRUFBRSxJQUFJLENBQUMsSUFBSSxLQUFLLEVBQUUsRUFBRSxHQUFHLEtBQUssQ0FBQyxDQUFDLElBQUk7TUFDakUsTUFBTSxHQUFHLEVBQUUsQ0FBQztFQUNoQixPQUFPLEVBQUUsRUFBRSxJQUFJLENBQUMsRUFBRTtJQUNoQixDQUFDLEdBQUcsSUFBSSxDQUFDLEVBQUUsQ0FBQyxDQUFDO0lBQ2IsSUFBSSxDQUFDLENBQUMsQ0FBQyxPQUFPLEVBQUUsU0FBUztJQUN6QixJQUFJLENBQUMsR0FBRyxDQUFDLENBQUMsS0FBSztRQUNYLEdBQUcsR0FBRyxDQUFDLElBQUksQ0FBQztRQUNaLENBQUMsR0FBRyxDQUFDLENBQUMsRUFBRSxHQUFHLENBQUMsQ0FBQyxFQUFFLENBQUM7O0lBRXBCLEtBQUssSUFBSSxDQUFDLEdBQUcsQ0FBQyxFQUFFLENBQUMsR0FBRyxDQUFDLEdBQUcsR0FBRyxFQUFFLENBQUMsRUFBRSxFQUFFLE1BQU0sQ0FBQyxDQUFDLENBQUMsR0FBRyxDQUFDLENBQUM7SUFDaEQsQ0FBQyxHQUFHLENBQUMsQ0FBQyxJQUFJLENBQUM7SUFDWCxJQUFJLENBQUMsSUFBSSxJQUFJLEVBQUUsT0FBTztJQUN0QixDQUFDLEdBQUcsQ0FBQyxDQUFDLElBQUksQ0FBQztJQUNYLElBQUksSUFBSSxHQUFHLENBQUM7UUFDUixPQUFPLEdBQUcsQ0FBQyxDQUFDLENBQUM7SUFDakIsS0FBSyxJQUFJLENBQUMsR0FBRyxDQUFDLEVBQUUsQ0FBQyxHQUFHLENBQUMsRUFBRSxDQUFDLEVBQUUsRUFBRTtNQUMxQixLQUFLLElBQUksQ0FBQyxHQUFHLENBQUMsRUFBRSxDQUFDLEdBQUcsQ0FBQyxFQUFFLENBQUMsRUFBRSxFQUFFO1FBQzFCLElBQUksQ0FBQyxHQUFHLEdBQUcsR0FBRyxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsQ0FBQztZQUN0QixDQUFDLEdBQUcsTUFBTSxDQUFDLENBQUMsQ0FBQyxDQUFDLEdBQUcsQ0FBQyxLQUFLLEVBQUUsSUFBSSxDQUFDLENBQUMsSUFBSSxDQUFDLEdBQUcsQ0FBQyxDQUFDLEtBQUssQ0FBQyxDQUFDLEdBQUcsQ0FBQyxLQUFLLEVBQUUsSUFBSSxDQUFDLEdBQUcsRUFBRSxDQUFDLENBQUMsR0FBRyxDQUFDLENBQUM7UUFDaEYsTUFBTSxDQUFDLENBQUMsQ0FBQyxJQUFJLENBQUMsQ0FBQztRQUNmLElBQUksSUFBSSxDQUFDLENBQUM7T0FDWDtNQUNELElBQUksSUFBSSxFQUFFLE9BQU8sR0FBRyxDQUFDLENBQUM7V0FDakI7UUFDSCxDQUFDLENBQUMsRUFBRSxFQUFFLENBQUM7UUFDUCxDQUFDLEVBQUUsQ0FBQztRQUNKLENBQUMsRUFBRSxDQUFDO1FBQ0osQ0FBQyxFQUFFLENBQUM7T0FDTDtLQUNGO0lBQ0QsQ0FBQyxDQUFDLEVBQUUsR0FBRyxDQUFDLENBQUMsRUFBRSxHQU
21FHLE9BQU8sQ0FBQztJQUN0QixDQUFDLENBQUMsTUFBTSxHQUFHLE1BQU0sQ0FBQyxLQUFLLENBQUMsQ0FBQyxFQUFFLENBQUMsQ0FBQyxDQUFDLEVBQUUsR0FBRyxDQUFDLENBQUMsRUFBRSxJQUFJLEdBQUcsQ0FBQyxDQUFDO0dBQ2pEO0NBQ0Y7OztBQUdELFNBQVMsWUFBWSxDQUFDLEdBQUcsRUFBRSxLQUFLLEVBQUUsRUFBRSxFQUFFO0VBQ3BDLEVBQUUsS0FBSyxDQUFDLENBQUM7RUFDVCxJQUFJLE1BQU0sR0FBRyxHQUFHLENBQUMsTUFBTTtNQUNuQixDQUFDLEdBQUcsR0FBRyxDQUFDLEtBQUssSUFBSSxDQUFDO01BQ2xCLEVBQUUsR0FBRyxHQUFHLENBQUMsQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDLENBQUM7TUFDckIsRUFBRSxHQUFHLEVBQUUsR0FBRyxJQUFJO01BQ2QsR0FBRyxHQUFHLEVBQUUsR0FBRyxFQUFFO01BQ2IsQ0FBQyxHQUFHLEdBQUcsQ0FBQyxFQUFFLEdBQUcsR0FBRyxDQUFDLEVBQUU7TUFDbkIsQ0FBQyxHQUFHLENBQUMsR0FBRyxDQUFDLENBQUMsR0FBRyxHQUFHLENBQUMsRUFBRSxJQUFJLEVBQUUsSUFBSSxFQUFFLElBQUksQ0FBQyxDQUFDO01BQ3JDLElBQUksQ0FBQztFQUNULEtBQUssSUFBSSxDQUFDLEdBQUcsQ0FBQyxFQUFFLENBQUMsR0FBRyxDQUFDLEVBQUUsQ0FBQyxFQUFFLEVBQUU7SUFDMUIsSUFBSSxHQUFHLENBQUMsQ0FBQztJQUNULEtBQUssSUFBSSxDQUFDLEdBQUcsQ0FBQyxFQUFFLENBQUMsSUFBSSxDQUFDLEVBQUUsQ0FBQyxFQUFFLEVBQUU7TUFDM0IsSUFBSSxDQUFDLENBQUMsSUFBSSxJQUFJLEdBQUcsS0FBSyxDQUFDLEdBQUcsQ0FBQyxHQUFHLENBQUMsSUFBSSxHQUFHLE1BQU0sQ0FBQyxDQUFDLEdBQUcsQ0FBQyxHQUFHLENBQUMsQ0FBQyxNQUFNLEVBQUUsR0FBRyxDQUFDLENBQUM7WUFDOUQsS0FBSyxDQUFDLENBQUMsR0FBRyxDQUFDLENBQUMsRUFBRSxPQUFPLElBQUksQ0FBQztLQUNqQztJQUNELENBQUMsSUFBSSxFQUFFLENBQUM7R0FDVDtFQUNELE9BQU8sS0FBSyxDQUFDO0NBQ2Q7O0FBRUQsU0FBUyxXQUFXLENBQUMsTUFBTSxFQUFFLENBQUMsRUFBRTtFQUM5QixJQUFJLEVBQUUsR0FBRyxNQUFNLENBQUMsQ0FBQyxDQUFDO01BQ2QsRUFBRSxHQUFHLE1BQU0sQ0FBQyxDQUFDLENBQUMsQ0FBQztFQUNuQixJQUFJLENBQUMsQ0FBQyxDQUFDLEdBQUcsQ0FBQyxDQUFDLEVBQUUsR0FBRyxFQUFFLENBQUMsQ0FBQyxFQUFFLEVBQUUsQ0FBQyxDQUFDLEdBQUcsQ0FBQyxDQUFDLENBQUMsR0FBRyxDQUFDLENBQUMsRUFBRSxDQUFDO0VBQ3pDLElBQUksQ0FBQyxDQUFDLENBQUMsR0FBRyxDQUFDLENBQUMsRUFBRSxHQU
21FHLEVBQUUsQ0FBQyxDQUFDLEVBQUUsRUFBRSxDQUFDLENBQUMsR0FBRyxDQUFDLENBQUMsQ0FBQyxHQUFHLENBQUMsQ0FBQyxFQUFFLENBQUM7RUFDekMsSUFBSSxDQUFDLENBQUMsQ0FBQyxHQUFHLENBQUMsQ0FBQyxFQUFFLEdBQUcsRUFBRSxDQUFDLENBQUMsRUFBRSxFQUFFLENBQUMsQ0FBQyxHQUFHLENBQUMsQ0FBQyxDQUFDLEdBQUcsQ0FBQyxDQUFDLEVBQUUsQ0FBQztFQUN6QyxJQUFJLENBQUMsQ0FBQyxDQUFDLEdBQUcsQ0FBQyxDQUFDLEVBQUUsR0FBRyxFQUFFLENBQUMsQ0FBQyxFQUFFLEVBQUUsQ0FBQyxDQUFDLEdBQUcsQ0FBQyxDQUFDLENBQUMsR0FBRyxDQUFDLENBQUMsRUFBRSxDQUFDO0NBQzFDOztBQUVELFNBQVMsWUFBWSxDQUFDLENBQUMsRUFBRSxDQUFDLEVBQUU7RUFDMUIsT0FBTyxDQUFDLENBQUMsQ0FBQyxHQUFHLENBQUMsQ0FBQyxFQUFFLEdBQUcsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQyxHQUFHLENBQUMsQ0FBQyxFQUFFLEdBQUcsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQyxHQUFHLENBQUMsQ0FBQyxFQUFFLEdBQUcsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQyxHQUFHLENBQUMsQ0FBQyxFQUFFLEdBQUcsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQztDQUNqRzs7QUFFRCxTQUFTLGlCQUFpQixDQUFDLElBQUksRUFBRTtFQUMvQixJQUFJLENBQUMsR0FBRyxJQUFJLENBQUMsQ0FBQyxDQUFDLEdBQUcsSUFBSSxDQUFDLENBQUMsQ0FBQyxDQUFDO0VBQzFCLE9BQU8sU0FBUyxDQUFDLEVBQUU7SUFDakIsT0FBTyxDQUFDLENBQUMsSUFBSSxDQUFDLElBQUksRUFBRSxDQUFDLEdBQUcsSUFBSSxDQUFDLEdBQUcsQ0FBQyxDQUFDLENBQUMsRUFBRSxDQUFDLEdBQUcsSUFBSSxDQUFDLEdBQUcsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDO0dBQ3ZELENBQUM7Q0FDSDs7QUFFRCxTQUFTLGlCQUFpQixDQUFDLElBQUksRUFBRTtFQUMvQixJQUFJLEVBQUUsR0FBRyxDQUFDO01BQ04sRUFBRSxHQUFHLEVBQUUsR0FBRyxJQUFJLENBQUMsQ0FBQyxDQUFDLEdBQUcsSUFBSSxDQUFDLENBQUMsQ0FBQztNQUMzQixDQUFDLEdBQUcsQ0FBQztNQUNMLENBQUMsR0FBRyxDQUFDLENBQUM7RUFDVixPQUFPLFNBQVMsQ0FBQyxFQUFFO0lBQ2pCLElBQUksSUFBSSxHQUFHLENBQUMsR0FBRyxDQUFDLEdBQUcsQ0FBQyxDQUFDLEdBQUcsQ0FBQyxDQUFDOztJQUUxQixRQUFRLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxDQUFDLEdBQUcsQ0FBQyxHQUFHLElBQUksR0FBRyxDQUFDLENBQUMsR0FBRyxJQUFJLElBQUksQ0FBQztNQUM5QyxLQUFLLENBQUMsR0FBRyxDQUFDLElBQUksRUFBRSxDQUFDLENBQUMsTUFBTTtNQUN4QixLQUFLLENBQUMsR0FBRyxDQUFDLElBQUksRUFBRSxDQUFDLENBQUMsTUFBTTtNQUN4QixLQUFLLENBQUMsR0FBRyxDQUFDLElBQUksRUFBRSxDQUFDLENBQUMsTUFBTTtNQUN4QixTQUFTLENBQUMsSUFBSSxFQUFFLENBQUMsQ0FBQyxNQUFNO0tBQ3pCO0lBQ0QsT0FBTyxDQUFDLENBQUMsRUFBRSxDQUFDLENBQUMsQ0FBQztHQUNmLENBQUM7Q0FDSDs7O0FBR0QsU0FBUyxTQUFTLENBQUMsQ0FBQyxFQUFFO0VBQ3BCLElBQUksQ0FBQyxHQUFHLEVBQUU7TUFDTixDQUFDLEdBQUcsQ0FBQyxDQUFDLENBQUM7RUFDWCxPQUFPLEVBQUUsQ0FBQyxHQUFHLENBQUMsRUFBRSxDQUFDLENBQUMsQ0FBQyxDQUFDLEdBQUcsQ0FBQyxDQUFDO0VBQ3pCLE9BQU8sQ0FBQyxDQUFDO0NBQ1Y7O0FBRUQsU0FBUyxXQUFXLEdBQUc7RUFDckIsT0FBTyxRQUFRLENBQUMsYUFBYSxDQUFDLFFBQVEsQ0FBQyxDQUFDO0NBQ3pDOztBQUVELFNBQVMsT0FBTyxDQUFDLENBQUMsRUFBRTtFQUNsQixPQUFPLE9BQU8sQ0FBQyxLQUFLLFVBQVUsR0FBRyxDQUFDLEdBQUcsV0FBVyxFQUFFLE9BQU8sQ0FBQyxDQUFDLEVBQUUsQ0FBQztDQUMvRDs7QUFFRCxJQUFJLE9BQU8sR0FBRztFQUNaLFdBQVcsRUFBRSxpQkFBaUI7RUFDOUIsV0FBVyxFQUFFLGlCQUFpQjtDQUMvQjs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OzsifQ==",$=!1,function(t){return tt=tt||q(K,J,$),new Worker(tt,t)}),st=0,at="rgb(247, 29, 80)",ct="rgb(250, 100, 135)",lt="rgb(247, 187, 4)",ut="rgb(1, 159, 138)",ht="rgb(62, 79, 235)",ft="rgb(125, 197, 253)",dt="rgb(138, 9, 211)",pt="#2e6ee4";!function(t){t.DEFAULT="default",t.CHART="chart",t.CHART_MEDIA_V2="chartMediaV2",t.SINGLE_SHADE="singleShade"}(it||(it={}));var gt=((et={})[at]="rgb(255, 118, 105)",et[lt]="rgb(255, 179, 0)",et[ut]="rgb(44, 221, 176)",et[ht]="rgb(81, 124, 255)",et[dt]="rgb(255, 102, 175)",et["rgb(250, 63, 107)"]="rgb(115, 41, 34)",et["rgb(252, 214, 5)"]="rgb(179, 114, 18)",et["rgb(14, 188, 165)"]="rgb(24, 94, 83)",et["rgb(62, 147, 235)"]="rgb(21, 46, 119)",et["rgb(179, 62, 245)"]="rgb(128, 26, 75)",et[ct]="rgb(255, 197, 178)",et["rgb(249, 232, 74)"]="rgb(255, 217, 128)",et["rgb(50, 222, 199)"]="rgb(155, 221, 204)",et[ft]="rgb(178, 198, 255)",et["rgb(211, 134, 254)"]="rgb(255, 178, 215)",et),mt=((nt={})[it.DEFAULT]=[at,lt,ut,ht,dt,"rgb(250, 63, 107)","rgb(252, 214, 5)","rgb(14, 188, 165)","rgb(62, 147, 235)","rgb(179, 62, 245)",ct,"rgb(249, 232, 74)","rgb(50, 222, 199)",ft,"rgb(211, 134, 254)"],nt[it.CHART]=[ht,ut,at,lt,dt,"rgb(62, 147, 235)","rgb(14, 188, 165)","rgb(250, 63, 107)","rgb(252, 214, 5)","rgb(179, 62, 245)",ft,"rgb(50, 222, 199)",ct,"rgb(249, 232, 74)","rgb(211, 134, 254)"],nt[it.CHART_MEDIA_V2]=["rgb(81, 124, 255)","rgb(44, 221, 176)","rgb(255, 179, 0)","rgb(255, 102, 175)","rgb(0, 219, 255)","rgb(255, 118, 105)","rgb(21, 46, 119)","rgb(24, 94, 83)","rgb(179, 114, 18)","rgb(128, 26, 75)","rgb(0, 133, 153)","rgb(115, 41, 34)","rgb(178, 198, 255)","rgb(155, 221, 204)","rgb(255, 217, 128)","rgb(255, 178, 215)","rgb(153, 241, 255)","rgb(255, 197, 178)"],nt[it.SINGLE_SHADE]=[at,lt,ut,ht,dt],nt),yt=((rt={})[at]=ct,rt[lt]="rgb(249, 232, 74)",rt[ut]="rgb(50, 222, 199)",rt[ht]=ft,rt[dt]="rgb(211, 134, 254)",rt[pt]=ft,rt),_t=function(){function t(){}return t.getColors=function(t){return void 0===t&&(t=it.DEFAULT),mt[t]},t.defaultColors=function(){return this.getColors(it.DEFAULT)},t.chartColors=function(){return this.getColors(it.CHART)},t.singleShadeColors=function(){return this.getColors(it.SINGLE_SHADE)},t.colorAt=function(t,e){void 0===e&&(e=it.DEFAULT);var n=this.getColors(e);return n[t%n.length]},t.getColor=function(){this.bumpColorIdx();var t=this.defaultColors();return"rgb(125, 197, 253)"===t[st]&&this.bumpColorIdx(),t[st]},t.getRandomColor=function(){var t=this.defaultColors();return t[Math.floor(Math.random()*t.length)]},t.bumpColorIdx=function(){var t=this.defaultColors();st=st===t.length-1?0:st+1},t.lightenColor=function(t){return yt[t]},t.assignedColor=function(t,e){var n=[t,e].join("/"),r=this.assignedColors[n];if(r)return r;var i=Object.keys(this.assignedColors).length,o=this.colorAt(i);return this.assignedColors[n]=o,o},t.translateColorToMediaV2=function(t){var e=gt[t];return e||t},t.assignedColors={},t}();E('.WordCloud_wordCloudContainer__27KO_ {\n height: 100%;\n max-height: 100%;\n width: 100%;\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n}\n\n.WordCloud_WordCloud__2BTvJ {\n margin: 0 auto;\n height: 100%;\n box-sizing: border-box;\n flex: 1 1 auto;\n max-height: 100%;\n overflow: hidden;\n position: relative;\n}\n\n.WordCloud_legendRect__2gX4n {\n flex-grow: 0;\n flex-shrink: 0;\n padding: 10px 10px 10px 12px;\n display: flex;\n justify-content: flex-start;\n align-items: center;\n line-height: 1.5;\n border-top: 1px solid #e9f0f5;\n}\n.WordCloud_legendRect__2gX4n > div {\n margin-right: 15px;\n user-select: none;\n cursor: pointer;\n display: flex;\n align-items: center;\n}\n.WordCloud_legendRect__2gX4n > div:not(.WordCloud_disabled__32Zx2) span:hover {\n opacity: 0.75;\n}\n.WordCloud_legendRect__2gX4n > div:not(.WordCloud_disabled__32Zx2) i:hover {\n border-color: #d0dde6;\n}\n.WordCloud_legendRect__2gX4n > div.WordCloud_disabled__32Zx2 i small {\n background: red;\n}\n.WordCloud_legendRect__2gX4n > div.WordCloud_disabled__32Zx2 span {\n color: #abc4d3;\n}\n.WordCloud_legendRect__2gX4n > div:last-child {\n margin-right: 0;\n}\n.WordCloud_legendRect__2gX4n > div i, .WordCloud_legendRect__2gX4n > div span {\n vertical-align: middle;\n}\n.WordCloud_legendRect__2gX4n > div i {\n display: inline-block;\n width: 13px;\n height: 13px;\n box-sizing: border-box;\n border-radius: 50%;\n border: 1px solid transparent;\n position: relative;\n margin-right: 4px;\n}\n.WordCloud_legendRect__2gX4n > div i small {\n display: inline-block;\n position: absolute;\n left: 2px;\n top: 2px;\n width: 7px;\n height: 7px;\n border-radius: 50%;\n}\n.WordCloud_legendRect__2gX4n > div span {\n color: #1d242f;\n font-size: 13px;\n font-weight: 500;\n display: inline-block;\n max-width: 220px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.wordcloud-preloader {\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n}\n.wordcloud-preloader > div {\n position: absolute;\n top: 50%;\n margin-top: -8px;\n left: 50%;\n margin-left: -8px;\n width: 16px;\n height: 16px;\n animation: WordCloud_rotator__2NGS3 1.4s linear infinite;\n background-color: #fff;\n}\n.wordcloud-preloader > div svg circle {\n stroke: #CBD9E2;\n stroke-linecap: "round";\n stroke-dasharray: 187;\n stroke-dashoffset: 0;\n stroke-width: 7px;\n transform-origin: center;\n animation: WordCloud_dash__1Yg1q 1.4s ease-in-out infinite;\n}\n@keyframes WordCloud_rotator__2NGS3 {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(270deg);\n }\n}\n@keyframes WordCloud_dash__1Yg1q {\n 0% {\n stroke-dashoffset: 187;\n }\n 50% {\n stroke-dashoffset: 46.75;\n transform: rotate(135deg);\n }\n 100% {\n stroke-dashoffset: 187;\n transform: rotate(450deg);\n }\n}');var vt,bt;!function(t){t.W_MORE="W_MORE",t.W_900="W_900",t.W_750="W_750",t.W_350="W_350"}(bt||(bt={}));var xt=((vt={})[bt.W_MORE]=85,vt[bt.W_900]=77,vt[bt.W_750]=65,vt[bt.W_350]=35,vt);function wt(t){var e=function(t){return t<=350?bt.W_350:t<=750?bt.W_750:t<=900?bt.W_900:bt.W_MORE}(t);return xt[e]}var Et=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ref=null,e.maxFontSize=xt[bt.W_MORE],e.updateCloud=function(){var t=e.d3WordCloud;if(t){var n=e.props.series,r=e.getCanvasSize(),i=r.width,o=r.height;if(isNaN(i)||isNaN(o)||i<140||o<140)console.error("Invalid canvas size: W: "+i+" H: "+o);else{var s=e.createSizeScale(),a=[],c={};
21n.forEach((function(t){var e=t.color,n=Object(m.scaleLinear)().domain(s.range()).range([_t.lightenColor(e),e]);t.data.forEach((function(e){void 0!==e.value&&(t.color&&(c[e.category]=n),a.push({text:e.category,size:Math.round(s(e.value))}))}))})),t.update(r,a,c,e.maxFontSize)}}},e.createSizeScale=function(){var t,n=e.props.series,r=Object(y.default)(n.map((function(t){return t.data.length>0?Object(g.extent)(t.data,(function(t){return t.value})):[]})));return(t=r.length>0?Object(g.extent)(r):[0,0])[0]=0,Object(m.scalePow)().domain(t).range([14,e.maxFontSize])},e.recreateCloud=function(){if(e.maxFontSize>5){var t=e.maxFontSize-4;e.maxFontSize=t>=5?t:5}e.updateCloud()},e}return b(e,t),e.prototype.componentDidMount=function(){var t=this.ref;if(!t)throw new Error("ref");var e=this.getCanvasSize();this.maxFontSize=wt(e.width),this.d3WordCloud=new Ct({ref:t,recreateHandler:this.recreateCloud}),this.updateCloud()},e.prototype.componentWillUnmount=function(){this.d3WordCloud&&this.d3WordCloud.terminateWorker()},e.prototype.componentDidUpdate=function(){this.updateCloud()},e.prototype.getCanvasSize=function(){var t=this.props,e=t.size,n=t.hideLegend,r=e.width,i=e.height,o=!0===n?0:40;return{width:r<1300?r:1300,height:this.getFinalHeight(i)-o-20}},e.prototype.getFinalHeight=function(t){var e=this.props.forcedHeight;return void 0!==e?e:t},e.prototype.render=function(){var t=this,e=this.props,n=e.series,r=e.size,i=e.hideLegend,o=r.width,s=this.getFinalHeight(void 0),a=void 0!==s&&{height:s+"px"}||void 0,c={width:(o<1300?o:1300)+"px",padding:"10px 0"};return f.a.createElement("div",{className:"WordCloud_wordCloudContainer__27KO_",style:a},f.a.createElement("div",{className:"WordCloud_WordCloud__2BTvJ",ref:function(e){return t.ref=e},style:c}),!0!==i&&f.a.createElement("div",{className:"WordCloud_legendRect__2gX4n"},n.map((function(e,n){var r={backgroundColor:e.color||"#000"},i="WordCloudLegendItem"+n,o=e.title||e.id;return f.a.createElement("div",{className:void 0,key:n},f.a.createElement("i",{id:i,onClick:function(n){return t.handleSerieLegendClick(n,e,i)}},f.a.createElement("small",{style:r})),f.a.createElement("span",null,o))}))))},e.prototype.downloadImage=function(){if(this.d3WordCloud){var t=this.getSVG();Object(d.saveSvgAsPng)(t,"wordcloud.png",{backgroundColor:"white",selectorRemap:function(t){var e=t.split(" ");e[0];return e.slice(1).join(" ")}})}},e.prototype.getSVG=function(){var t=this.d3WordCloud;if(t)return t.getSVG()},e.prototype.handleSerieLegendClick=function(t,e,n){var r=this.props.onColorChangeRequest;t.stopPropagation();var i=document.getElementById(n);if(i&&void 0!==r){var o=i.getBoundingClientRect();r({chartType:x.WORD_CLOUD,seriesId:e.id||"*",position:{x:o.left+6,y:o.top+4}})}},e}(f.a.PureComponent),St=function(t){var e=t.wordCloudRef,n=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&(n[r[i]]=t[r[i]])}return n}(t,["wordCloudRef"]);return f.a.createElement(_.SizeMe,{monitorHeight:!0,refreshRate:100,refreshMode:"debounce"},(function(t){return f.a.createElement(Et,w({ref:e},n,t))}))},Ct=function(){function t(t){var e=this;this.update=function(t,n,r,i){e.canvasWidth=t.width,e.canvasHeight=t.height,e.colors=r,e.maxFontSize=i,e.wordsCount=n.length;var o=e.getFontSettings(),s=[e.canvasWidth,e.canvasHeight];try{var a=document.createElement("canvas").transferControlToOffscreen();e.wordCloudWorker||(e.wordCloudWorker=new ot,e.wordCloudWorker.onmessage=function(t){var n=t.data.words;e.draw(n)}),e.wordCloudWorker.postMessage({canvas:a,canvasSize:s,words:n,fontSettings:o},[a])}catch(t){console.error("Offscreen canvas not supported. Fallback to regular canvas."),function(t){var e=t.canvasSize,n=t.words,r=t.canvas,i=t.fontSettings,o=t.onEnd,s=i.fontFamily,a=i.fontWeight,c=P(),l=void 0!==r?c.canvas(r):c;c.size(e).words(n).padding(2).rotate(0).font(s).fontWeight(a).fontSize((function(t){return t.size||0})).on("end",o),l.random((function(){return.5})).start()}({canvasSize:s,fontSettings:o,words:n,onEnd:e.draw})}},this.draw=function(t){if(t.length<e.wordsCount&&e.maxFontSize&&e.maxFontSize>5)e.recreateHandler();else{e.loader&&e.loader.remove(),e.svg.attr("width",e.canvasWidth).attr("height",e.canvasHeight),e.g.attr("transform","translate("+e.canvasWidth/2+","+e.canvasHeight/2+")");var n=e.g.selectAll("g text").data(t,(function(t){return t.text})),r=e.getFontSettings(),i=r.fontFamily,o=r.fontWeight;
21n.enter().append("text").style("font-family",i).style("font-weight",o).attr("text-anchor","middle").text((function(t){return t.text||""})).merge(n).style("fill",(function(t,n){return e.colors[t.text||""](t.size||0)})).transition().duration(350).style("letter-spacing",(function(t){var n=-.03*((t.size||0)/e.maxFontSize);return(n>=-.1?n:-.1)+"em"})).style("font-size",(function(t){return t.size+"px"})).attr("transform",(function(t){return"translate("+[t.x,t.y]+")rotate("+t.rotate+")"})).style("fill-opacity",1),n.exit().transition().duration(250).style("fill-opacity",1e-6).remove()}};var n=t.ref,r=t.recreateHandler,i=t.theme,o=Object(p.b)(n).append("svg").attr("width",300).attr("height",400),s=o.append("g").attr("transform","translate(150,150)"),a=Object(p.b)(n).append("div").classed("wordcloud-preloader",!0);a.html('\n <div>\n <svg viewBox="0 0 66 66">\n <circle fill="none" cx="33" cy="33" r="30" />\n </svg>\n </div>\n '),this.loader=a,this.svg=o,this.g=s,this.theme=i,this.recreateHandler=r}return t.prototype.terminateWorker=function(){this.wordCloudWorker&&(this.wordCloudWorker.terminate(),this.wordCloudWorker=void 0)},t.prototype.getSVG=function(){return this.svg.node()},t.prototype.getFontSettings=function(){var t={fontFamily:"Open Sans",fontWeight:800},e=this.theme;return e?(e.fontFamily&&(t.fontFamily=e.fontFamily),e.fontWeight&&(t.fontWeight=e.fontWeight),t):t},t}(),At={axisLineColor:"#e9f0f5",axisTextColor:"#8da0b8",axisTextFontSize:12},It={axisLineColor:"#000000",axisLineWidth:2,axisTextColor:"#000000",axisTextFontSize:12,axisTextFontWeight:500,fontFamily:'"Sohne", "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif',hideAxisTicks:!0,dividerColor:"#000000",dividerWidth:2,tooltipLineColor:"#000000",tooltipLineWidth:2,tooltipLineDash:"8 4",roundingStyle:r.RoundingStyle.EDGY,footerLineColor:"transparent",lineWidth:3,barStroke:{width:2,color:"#000000"},pieStroke:{width:2,color:"#000000"}},Tt={fontFamily:'"Sohne", "Open Sans", Helvetica',fontWeight:800},Mt={}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"e",(function(){return o})),n.d(e,"c",(function(){return s})),n.d(e,"k",(function(){return a})),n.d(e,"j",(function(){return c})),n.d(e,"l",(function(){return l})),n.d(e,"f",(function(){return u})),n.d(e,"g",(function(){return h})),n.d(e,"h",(function(){return f})),n.d(e,"b",(function(){return d})),n.d(e,"i",(function(){return m})),n.d(e,"d",(function(){return y}));var r=n(33);function i(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function o(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function s(t,e,n){var r=e[0],i=e[1],o=e[2],s=n[0],a=n[1],c=n[2];return t[0]=i*c-o*a,t[1]=o*s-r*c,t[2]=r*a-i*s,t}function a(t,e,n){var r=e[0],i=e[1],o=e[2],s=n[3]*r+n[7]*i+n[11]*o+n[15];return s=s||1,t[0]=(n[0]*r+n[4]*i+n[8]*o+n[12])/s,t[1]=(n[1]*r+n[5]*i+n[9]*o+n[13])/s,t[2]=(n[2]*r+n[6]*i+n[10]*o+n[14])/s,t}function c(t,e,n){var r=e[0],i=e[1],o=e[2];return t[0]=r*n[0]+i*n[3]+o*n[6],t[1]=r*n[1]+i*n[4]+o*n[7],t[2]=r*n[2]+i*n[5]+o*n[8],t}function l(t,e,n){var r=n[0],i=n[1],o=n[2],s=n[3],a=e[0],c=e[1],l=e[2],u=i*l-o*c,h=o*a-r*l,f=r*c-i*a,d=i*f-o*h,p=o*u-r*f,g=r*h-i*u,m=2*s;return u*=m,h*=m,f*=m,d*=2,p*=2,g*=2,t[0]=a+u+d,t[1]=c+h+p,t[2]=l+f+g,t}function u(t,e,n,r){var i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[0],o[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),o[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t}function h(t,e,n,r){var i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),o[1]=i[1],o[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t}function f(t,e,n,r){var i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),o[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),o[2]=i[2],t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t}function d(t,e){var n=t[0],r=t[1],i=t[2],o=e[0],s=e[1],a=e[2],c=Math.sqrt(n*n+r*r+i*i)*Math.sqrt(o*o+s*s+a*a),l=c&&function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}(t,e)/c;return Math.acos(Math.min(Math.max(l,-1),1))}var p,g,m=function(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t},y=function(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t};p=new r.a(3),r.a!=Float32Array&&(p[0]=0,p[1]=0,p[2]=0),g=p},function(t,e,n){var r=n(56);t.exports=r({}.isPrototypeOf)},,function(t,e,n){"use strict";var r=n(905),i=n(717);function o(t,e){return e.encode?e.strict?r(t):encodeURIComponent(t):t}e.extract=function(t){return t.split("?")[1]||""},e.parse=function(t,e){var n=function(t){var e;switch(t.arrayFormat){case"index":return function(t,n,r){e=/\[(\d*)\]$/.exec(t),t=t.replace(/\[\d*\]$/,""),e?(void 0===r[t]&&(r[t]={}),r[t][e[1]]=n):r[t]=n};case"bracket":return function(t,n,r){e=/(\[\])$/.exec(t),t=t.replace(/\[\]$/,""),e?void 0!==r[t]?r[t]=[].concat(r[t],n):r[t]=[n]:r[t]=n};default:return function(t,e,n){void 0!==n[t]?n[t]=[].concat(n[t],e):n[t]=e}}}(e=i({arrayFormat:"none"},e)),r=Object.create(null);return"string"!=typeof t?r:(t=t.trim().replace(/^(\?|#|&)/,""))?(t.split("&").forEach((function(t){var e=t.replace(/\+/g," ").split("="),i=e.shift(),o=e.length>0?e.join("="):void 0;o=void 0===o?null:decodeURIComponent(o),n(decodeURIComponent(i),o,r)})),Object.keys(r).sort().reduce((function(t,e){var n=r[e];return Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?t[e]=function t(e){return Array.isArray(e)?e.sort():"object"==typeof e?t(Object.keys(e)).sort((function(t,e){return Number(t)-Number(e)})).map((function(t){return e[t]})):e}(n):t[e]=n,t}),Object.create(null))):r},e.stringify=function(t,e){var n=function(t){switch(t.arrayFormat){case"index":return function(e,n,r){return null===n?[o(e,t),"[",r,"]"].join(""):[o(e,t),"[",o(r,t),"]=",o(n,t)].join("")};case"bracket":return function(e,n){return null===n?o(e,t):[o(e,t),"[]=",o(n,t)].join("")};default:return function(e,n){return null===n?o(e,t):[o(e,t),"=",o(n,t)].join("")}}}(e=i({encode:!0,strict:!0,arrayFormat:"none"},e));return t?Object.keys(t).sort().map((function(r){var i=t[r];
21if(void 0===i)return"";if(null===i)return o(r,e);if(Array.isArray(i)){var s=[];return i.slice().forEach((function(t){void 0!==t&&s.push(n(r,t,s.length))})),s.join("&")}return o(r,e)+"="+o(i,e)})).filter((function(t){return t.length>0})).join("&"):""}},,,,,function(t,e,n){"use strict";n.r(e);var r=n(103);var i=function(t,e){return Object(r.a)(e,(function(e){return t[e]}))},o=n(104);e.default=function(t){return null==t?[]:i(t,Object(o.a)(t))}},function(t,e,n){"use strict";var r=/^(?:0|[1-9]\d*)$/;e.a=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&r.test(t))&&t>-1&&t%1==0&&t<e}},function(t,e,n){var r=n(56),i=n(307),o=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(i(t),e)}},function(t,e,n){var r=n(405),i=n(577),o=n(114),s=n(87),a=n(584),c=[].push,l=function(t){var e=1==t,n=2==t,l=3==t,u=4==t,h=6==t,f=5==t||h;return function(d,p,g,m){for(var y,_,v=o(d),b=i(v),x=r(p,g,3),w=s(b.length),E=0,S=m||a,C=e?S(d,w):n?S(d,0):void 0;w>E;E++)if((f||E in b)&&(_=x(y=b[E],E,v),t))if(e)C[E]=_;else if(_)switch(t){case 3:return!0;case 5:return y;case 6:return E;case 2:c.call(C,y)}else if(u)return!1;return h?-1:l||u?u:C}};t.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6)}},function(t,e,n){"use strict";var r=n(74),i=Object(r.a)(Object,"create");var o=function(){this.__data__=i?i(null):{},this.size=0};var s=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},a=Object.prototype.hasOwnProperty;var c=function(t){var e=this.__data__;if(i){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return a.call(e,t)?e[t]:void 0},l=Object.prototype.hasOwnProperty;var u=function(t){var e=this.__data__;return i?void 0!==e[t]:l.call(e,t)};var h=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=i&&void 0===e?"__lodash_hash_undefined__":e,this};function f(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}f.prototype.clear=o,f.prototype.delete=s,f.prototype.get=c,f.prototype.has=u,f.prototype.set=h;var d=f,p=n(146),g=n(147);var m=function(){this.size=0,this.__data__={hash:new d,map:new(g.a||p.a),string:new d}};var y=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var _=function(t,e){var n=t.__data__;return y(e)?n["string"==typeof e?"string":"hash"]:n.map};var v=function(t){var e=_(this,t).delete(t);return this.size-=e?1:0,e};var b=function(t){return _(this,t).get(t)};var x=function(t){return _(this,t).has(t)};var w=function(t,e){var n=_(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};function E(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}E.prototype.clear=m,E.prototype.delete=v,E.prototype.get=b,E.prototype.has=x,E.prototype.set=w;e.a=E},function(t,e,n){"use strict";var r=n(59),i=n(94),o=n(104);var s=function(t){return function(e,n,s){var a=Object(e);if(!Object(i.a)(e)){var c=Object(r.a)(n,3);e=Object(o.a)(e),n=function(t){return c(a[t],t,a)}}var l=t(e,n,s);return l>-1?a[c?e[l]:l]:void 0}}(n(373).a);e.a=s},,,,,,function(t,e,n){"use strict";e.a=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}},function(t,e,n){"use strict";var r=n(188),i=n(261),o=n(449),s=n(249);var a=function(t,e,n,r,a,c){var l=1&n,u=t.length,h=e.length;if(u!=h&&!(l&&h>u))return!1;var f=c.get(t);if(f&&c.get(e))return f==e;var d=-1,p=!0,g=2&n?new i.a:void 0;for(c.set(t,e),c.set(e,t);++d<u;){var m=t[d],y=e[d];if(r)var _=l?r(y,m,d,e,t,c):r(m,y,d,t,e,c);if(void 0!==_){if(_)continue;p=!1;break}if(g){if(!Object(o.a)(e,(function(t,e){if(!Object(s.a)(g,e)&&(m===t||a(m,t,n,r,c)))return g.push(e)}))){p=!1;break}}else if(m!==y&&!a(m,y,n,r,c)){p=!1;break}}return c.delete(t),c.delete(e),p},c=n(65),l=n(337),u=n(156);var h=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n},f=n(199),d=c.a?c.a.prototype:void 0,p=d?d.valueOf:void 0;var g=function(t,e,n,r,i,o,s){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!o(new l.a(t),new l.a(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Object(u.a)(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var c=h;case"[object Set]":var d=1&r;if(c||(c=f.a),t.size!=e.size&&!d)return!1;var g=s.get(t);if(g)return g==e;r|=2,s.set(t,e);var m=a(c(t),c(e),r,i,o,s);return s.delete(t),m;case"[object Symbol]":if(p)return p.call(t)==p.call(e)}return!1},m=n(358),y=Object.prototype.hasOwnProperty;var _=function(t,e,n,r,i,o){var s=1&n,a=Object(m.a)(t),c=a.length;if(c!=Object(m.a)(e).length&&!s)return!1;for(var l=c;l--;){var u=a[l];if(!(s?u in e:y.call(e,u)))return!1}var h=o.get(t);if(h&&o.get(e))return h==e;var f=!0;o.set(t,e),o.set(e,t);for(var d=s;++l<c;){var p=t[u=a[l]],g=e[u];if(r)var _=s?r(g,p,u,e,t,o):r(p,g,u,t,e,o);if(!(void 0===_?p===g||i(p,g,n,r,o):_)){f=!1;break}d||(d="constructor"==u)}if(f&&!d){var v=t.constructor,b=e.constructor;v==b||!("constructor"in t)||!("constructor"in e)||"function"==typeof v&&v instanceof v&&"function"==typeof b&&b instanceof b||(f=!1)}return o.delete(t),o.delete(e),f},v=n(285),b=n(31),x=n(226),w=n(313),E="[object Object]",S=Object.prototype.hasOwnProperty;var C=function(t,e,n,i,o,s){var c=Object(b.a)(t),l=Object(b.a)(e),u=c?"[object Array]":Object(v.a)(t),h=l?"[object Array]":Object(v.a)(e),f=(u="[object Arguments]"==u?E:u)==E,d=(h="[object Arguments]"==h?E:h)==E,p=u==h;if(p&&Object(x.a)(t)){if(!Object(x.a)(e))return!1;c=!0,f=!1}if(p&&!f)return s||(s=new r.a),c||Object(w.a)(t)?a(t,e,n,i,o,s):g(t,e,u,n,i,o,s);if(!(1&n)){var m=f&&S.call(t,"__wrapped__"),y=d&&S.call(e,"__wrapped__");
21if(m||y){var C=m?t.value():t,A=y?e.value():e;return s||(s=new r.a),o(C,A,n,i,s)}}return!!p&&(s||(s=new r.a),_(t,e,n,i,o,s))},A=n(63);e.a=function t(e,n,r,i,o){return e===n||(null==e||null==n||!Object(A.a)(e)&&!Object(A.a)(n)?e!=e&&n!=n:C(e,n,r,i,t,o))}},function(t,e,n){var r=n(89);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t,e,n){"use strict";n.r(e);var r=n(331);e.default=function(t){return t&&t.length?Object(r.a)(t):[]}},function(t,e,n){var r=n(81),i=n(110),o=n(452);t.exports=r?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function i(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}n.d(e,"a",(function(){return i}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i}));const r={NO_STATE:"Awaiting state",MATCHED:"Matched. State transferred from previous layer",INITIALIZED:"Initialized",AWAITING_GC:"Discarded. Awaiting garbage collection",AWAITING_FINALIZATION:"No longer matched. Awaiting garbage collection",FINALIZED:"Finalized! Awaiting garbage collection"},i={COMPONENT:Symbol.for("component"),ASYNC_DEFAULTS:Symbol.for("asyncPropDefaults"),ASYNC_ORIGINAL:Symbol.for("asyncPropOriginal"),ASYNC_RESOLVED:Symbol.for("asyncPropResolved")}},function(t,e,n){"use strict";var r=n(146);var i=function(){this.__data__=new r.a,this.size=0};var o=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};var s=function(t){return this.__data__.get(t)};var a=function(t){return this.__data__.has(t)},c=n(147),l=n(173);var u=function(t,e){var n=this.__data__;if(n instanceof r.a){var i=n.__data__;if(!c.a||i.length<199)return i.push([t,e]),this.size=++n.size,this;n=this.__data__=new l.a(i)}return n.set(t,e),this.size=n.size,this};function h(t){var e=this.__data__=new r.a(t);this.size=e.size}h.prototype.clear=i,h.prototype.delete=o,h.prototype.get=s,h.prototype.has=a,h.prototype.set=u;e.a=h},,,,,,function(t,e,n){"use strict";var r=n(142),i=n(108);e.a=function(t,e){for(var n=0,o=(e=Object(r.a)(e,t)).length;null!=t&&n<o;)t=t[Object(i.a)(e[n++])];return n&&n==o?t:void 0}},,function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return o}));var r=n(20);function i(t,e){if("string"!=typeof e)return e;const n=Number(e);if(!isNaN(n))return n;const i=t[e=e.replace(/^.*\./,"")];return Object(r.a)(void 0!==i,"Accessing undefined constant GL.".concat(e)),i}function o(t,e){e=Number(e);for(const n in t)if(t[n]===e)return"GL.".concat(n);return String(e)}},function(t,e,n){"use strict";n.r(e);var r=n(333);n.d(e,"default",(function(){return r.a}))},function(t,e,n){"use strict";e.a=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}},function(t,e,n){"use strict";var r=n(31),i=n(99),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;e.a=function(t,e){if(Object(r.a)(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!Object(i.a)(t))||(s.test(t)||!o.test(t)||null!=e&&t in Object(e))}},function(t,e,n){"use strict";e.a=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},,,,function(t,e,n){"use strict";var r=n(71),i=n(63);var o=function(t){return Object(i.a)(t)&&"[object Arguments]"==Object(r.a)(t)},s=Object.prototype,a=s.hasOwnProperty,c=s.propertyIsEnumerable,l=o(function(){return arguments}())?o:function(t){return Object(i.a)(t)&&a.call(t,"callee")&&!c.call(t,"callee")};e.a=l},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r,i=n(40);!function(t){t.PENDING="PENDING",t.RESOLVED="RESOLVED",t.REJECTED="REJECTED"}(r||(r={}));var o=function(){function t(t){var e=this;
21this._state=r.PENDING,this._handlers=[],this._resolve=function(t){e._setResult(r.RESOLVED,t)},this._reject=function(t){e._setResult(r.REJECTED,t)},this._setResult=function(t,n){e._state===r.PENDING&&(Object(i.m)(n)?n.then(e._resolve,e._reject):(e._state=t,e._value=n,e._executeHandlers()))},this._attachHandler=function(t){e._handlers=e._handlers.concat(t),e._executeHandlers()},this._executeHandlers=function(){if(e._state!==r.PENDING){var t=e._handlers.slice();e._handlers=[],t.forEach((function(t){t.done||(e._state===r.RESOLVED&&t.onfulfilled&&t.onfulfilled(e._value),e._state===r.REJECTED&&t.onrejected&&t.onrejected(e._value),t.done=!0)}))}};try{t(this._resolve,this._reject)}catch(t){this._reject(t)}}return t.prototype.toString=function(){return"[object SyncPromise]"},t.resolve=function(e){return new t((function(t){t(e)}))},t.reject=function(e){return new t((function(t,n){n(e)}))},t.all=function(e){return new t((function(n,r){if(Array.isArray(e))if(0!==e.length){var i=e.length,o=[];e.forEach((function(e,s){t.resolve(e).then((function(t){o[s]=t,0===(i-=1)&&n(o)})).then(null,r)}))}else n([]);else r(new TypeError("Promise.all requires an array as input."))}))},t.prototype.then=function(e,n){var r=this;return new t((function(t,i){r._attachHandler({done:!1,onfulfilled:function(n){if(e)try{return void t(e(n))}catch(t){return void i(t)}else t(n)},onrejected:function(e){if(n)try{return void t(n(e))}catch(t){return void i(t)}else i(e)}})}))},t.prototype.catch=function(t){return this.then((function(t){return t}),t)},t.prototype.finally=function(e){var n=this;return new t((function(t,r){var i,o;return n.then((function(t){o=!1,i=t,e&&e()}),(function(t){o=!0,i=t,e&&e()})).then((function(){o?r(i):t(i)}))}))},t}()},,,,function(t,e,n){var r=n(231);t.exports=function(t){return r[t+"Prototype"]}},function(t,e,n){var r=n(81),i=n(675),o=n(452),s=n(232),a=n(284),c=n(138),l=n(1145),u=Object.getOwnPropertyDescriptor;e.f=r?u:function(t,e){if(t=s(t),e=a(e,!0),l)try{return u(t,e)}catch(t){}if(c(t,e))return o(!i.f.call(t,e),t[e])}},function(t,e,n){var r=n(57),i=n(578),o=n(184),s=n(138),a=n(931),c=n(1146),l=n(233),u=l.get,h=l.enforce,f=String(c).split("toString");i("inspectSource",(function(t){return c.call(t)})),(t.exports=function(t,e,n,i){var c=!!i&&!!i.unsafe,l=!!i&&!!i.enumerable,u=!!i&&!!i.noTargetGet;"function"==typeof n&&("string"!=typeof e||s(n,"name")||o(n,"name",e),h(n).source=f.join("string"==typeof e?e:"")),t!==r?(c?!u&&t[e]&&(l=!0):delete t[e],l?t[e]=n:o(t,e,n)):l?t[e]=n:a(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&u(this).source||c.call(this)}))},function(t,e,n){var r=n(515),i=n(138),o=n(1153),s=n(110).f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});i(e,t)||s(e,t,{value:o.f(t)})}},function(t,e,n){"use strict";(function(t,r){n.d(e,"e",(function(){return s})),n.d(e,"f",(function(){return a})),n.d(e,"c",(function(){return o})),n.d(e,"b",(function(){return c})),n.d(e,"d",(function(){return l})),n.d(e,"a",(function(){return u}));const i={self:"undefined"!=typeof self&&self,window:"undefined"!=typeof window&&window,global:void 0!==t&&t,document:"undefined"!=typeof document&&document,process:"object"==typeof r&&r},o=globalThis,s=i.self||i.window||i.global,a=i.window||i.self||i.global,c=i.document||{},l=i.process||{},u=console}).call(this,n(121),n(297))},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r={};n.r(r),n.d(r,"filename",(function(){return o})),n.d(r,"dirname",(function(){return s})),n.d(r,"join",(function(){return a})),n.d(r,"resolve",(function(){return c}));var i=n(1195);function o(t){const e=t?t.lastIndexOf("/"):-1;return e>=0?t.substr(e+1):""}function s(t){const e=t?t.lastIndexOf("/"):-1;return e>=0?t.substr(0,e):""}function a(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];const r="/";return(e=e.map((t,n)=>(n&&(t=t.replace(new RegExp("^".concat(r)),"")),n!==e.length-1&&(t=t.replace(new RegExp("".concat(r,"$")),"")),t))).join(r)}function c(){const t=[];for(let e=0;e<arguments.length;e++)t[e]=e<0||arguments.length<=e?void 0:arguments[e];let e,n="",r=!1;for(let o=t.length-1;o>=-1&&!r;o--){let s;o>=0?s=t[o]:(void 0===e&&(e=Object(i.a)()),s=e),0!==s.length&&(n="".concat(s,"/").concat(n),r=s.charCodeAt(0)===l)}return n=u(n,!r),r?"/".concat(n):n.length>0?n:"."}const l=47;function u(t,e){let n,r="",i=-1,o=0,s=!1;for(let a=0;a<=t.length;++a){if(a<t.length)n=t.charCodeAt(a);else{if(n===l)break;n=l}if(n===l){if(i===a-1||1===o);else if(i!==a-1&&2===o){if(r.length<2||!s||46!==r.charCodeAt(r.length-1)||46!==r.charCodeAt(r.length-2))if(r.length>2){const t=r.length-1;let e=t;for(;e>=0&&r.charCodeAt(e)!==l;--e);if(e!==t){r=-1===e?"":r.slice(0,e),i=a,o=0,s=!1;continue}}else if(2===r.length||1===r.length){r="",i=a,o=0,s=!1;continue}e&&(r.length>0?r+="/..":r="..",s=!0)}else{const e=t.slice(i+1,a);r.length>0?r+="/".concat(e):r=e,s=!1}i=a,o=0}else 46===n&&-1!==o?++o:o=-1}return r}},function(t,e,n){"use strict";n.d(e,"c",(function(){return o}
21)),n.d(e,"b",(function(){return s})),n.d(e,"a",(function(){return a}));var r=n(20);const i={};function o(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"id";i[t]=i[t]||1;const e=i[t]++;return"".concat(t,"-").concat(e)}function s(t){return Object(r.a)("number"==typeof t,"Input must be a number"),t&&0==(t&t-1)}function a(t){let e=!0;for(const n in t){e=!1;break}return e}},function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return o})),n.d(e,"d",(function(){return s}));function r(t){switch(ArrayBuffer.isView(t)?t.constructor:t){case Float32Array:return 5126;case Uint16Array:return 5123;case Uint32Array:return 5125;case Uint8Array:case Uint8ClampedArray:return 5121;case Int8Array:return 5120;case Int16Array:return 5122;case Int32Array:return 5124;default:throw new Error("Failed to deduce GL constant from typed array")}}function i(t){let{clamped:e=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t){case 5126:return Float32Array;case 5123:case 33635:case 32819:case 32820:return Uint16Array;case 5125:return Uint32Array;case 5121:return e?Uint8ClampedArray:Uint8Array;case 5120:return Int8Array;case 5122:return Int16Array;case 5124:return Int32Array;default:throw new Error("Failed to deduce typed array type from GL constant")}}function o(t){let{data:e,width:n,height:r,bytesPerPixel:i=4,temp:o}=t;const s=n*i;o=o||new Uint8Array(s);for(let t=0;t<r/2;++t){const n=t*s,i=(r-t-1)*s;o.set(e.subarray(n,n+s)),e.copyWithin(n,i,i+s),e.set(o,i)}}function s(t){let{data:e,width:n,height:r}=t;const i=Math.round(n/2),o=Math.round(r/2),s=new Uint8Array(i*o*4);for(let t=0;t<o;t++)for(let r=0;r<i;r++)for(let o=0;o<4;o++)s[4*(t*i+r)+o]=e[4*(2*t*n+2*r)+o];return{data:s,width:i,height:o}}},function(t,e,n){"use strict";n.d(e,"d",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"b",(function(){return s})),n.d(e,"a",(function(){return a}));var r=n(40);function i(t,e){return void 0===e&&(e=0),"string"!=typeof t||0===e||t.length<=e?t:t.substr(0,e)+"..."}function o(t,e){var n=t,r=n.length;if(r<=150)return n;e>r&&(e=r);var i=Math.max(e-60,0);i<5&&(i=0);var o=Math.min(i+140,r);return o>r-5&&(o=r),o===r&&(i=Math.max(o-140,0)),n=n.slice(i,o),i>0&&(n="'{snip} "+n),o<r&&(n+=" {snip}"),n}function s(t,e){if(!Array.isArray(t))return"";for(var n=[],r=0;r<t.length;r++){var i=t[r];try{n.push(String(i))}catch(t){n.push("[value cannot be serialized]")}}return n.join(e)}function a(t,e){return Object(r.j)(e)?e.test(t):"string"==typeof e&&-1!==t.indexOf(e)}},,,,,,,function(t,e,n){"use strict";var r=n(420),i=n(94);var o=function(t,e){return function(n,r){if(null==n)return n;if(!Object(i.a)(n))return t(n,r);for(var o=n.length,s=e?o:-1,a=Object(n);(e?s--:++s<o)&&!1!==r(a[s],s,a););return n}}(r.a);e.a=o},function(t,e,n){"use strict";(function(t){var r=n(44),i=n(541),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,s=o&&"object"==typeof t&&t&&!t.nodeType&&t,a=s&&s.exports===o?r.a.Buffer:void 0,c=(a?a.isBuffer:void 0)||i.a;e.a=c}).call(this,n(439)(t))},function(t,e,n){"use strict";e.a=function(t){return function(e){return t(e)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(111),i=n(350),o=function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},s=function(){function t(){}return t.warn=function(t,e){var n,s=!(null==e?void 0:e.includeRedux),a=null!==(n=null==e?void 0:e.extra)&&void 0!==n?n:{};r.b({level:i.a.Warning,message:t,extra:o({skipRedux:s},a)})},t.error=function(t,e){var n,s=!(null==e?void 0:e.includeRedux),a=null!==(n=null==e?void 0:e.extra)&&void 0!==n?n:{};r.b({level:i.a.Error,message:t,extra:o({skipRedux:s},a)})},t.exception=function(t){r.c(t)},t}()},function(t,e){var n=Function.prototype.call;t.exports=n.bind?n.bind(n):function(){return n.apply(n,arguments)}},function(t,e,n){"use strict";n.d(e,"d",(function(){return E})),n.d(e,"a",(function(){return X})),n.d(e,"b",(function(){return g})),n.d(e,"c",(function(){return k})),n.d(e,"e",(function(){return N})),n.d(e,"f",(function(){return A}));var r=n(362),i=n.n(r);function o(t,e){var n;if(void 0===e){var r=!0,o=!1,s=void 0;try{for(var a,c=i()(t);!(r=(a=c.next()).done);r=!0){var l=a.value;null!=l&&(n<l||void 0===n&&l>=l)&&(n=l)}}catch(t){o=!0,s=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw s}}}else{var u=-1,h=!0,f=!1,d=void 0;try{for(var p,g=i()(t);!(h=(p=g.next()).done);h=!0){var m=p.value;null!=(m=e(m,++u,t))&&(n<m||void 0===n&&m>=m)&&(n=m)}}catch(t){f=!0,d=t}finally{try{h||null==g.return||g.return()}finally{if(f)throw d}}}return n}function s(t,e){var n;if(void 0===e){var r=!0,o=!1,s=void 0;try{for(var a,c=i()(t);!(r=(a=c.next()).done);r=!0){var l=a.value;null!=l&&(n>l||void 0===n&&l>=l)&&(n=l)}}catch(t){o=!0,s=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw s}}}else{var u=-1,h=!0,f=!1,d=void 0;try{for(var p,g=i()(t);!(h=(p=g.next()).done);h=!0){var m=p.value;null!=(m=e(m,++u,t))&&(n>m||void 0===n&&m>=m)&&(n=m)}}catch(t){f=!0,d=t}finally{try{h||null==g.return||g.return()}finally{if(f)throw d}}}return n}var a=function(t,e){return t<e?-1:t>e?1:t>=e?0:NaN};function c(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}var l=n(981),u=n.n(l),h=u.a.mark(f);function f(t,e){var n,r,o,s,a,c,l,f,d,p,g,m,y;return u.a.wrap((function(u){for(;;)switch(u.prev=u.next){case 0:if(void 0!==e){u.next=30;break}n=!0,r=!1,o=void 0,u.prev=4,s=i()(t);case 6:if(n=(a=s.next()).done){u.next=14;break}if(!(null!=(c=a.value)&&(c=+c)>=c)){u.next=11;break}return u.next=11,c;case 11:n=!0,u.next=6;break;case 14:u.next=20;break;case 16:u.prev=16,u.t0=u.catch(4),r=!0,o=u.t0;case 20:u.prev=20,u.prev=21,n||null==s.return||s.return();case 23:if(u.prev=23,!r){u.next=26;break}throw o;case 26:return u.finish(23);case 27:return u.finish(20);case 28:u.next=58;break;case 30:l=-1,f=!0,d=!1,p=void 0,u.prev=34,g=i()(t);case 36:if(f=(m=g.next()).done){u.next=44;break}if(y=m.value,!(null!=(y=e(y,++l,t))&&(y=+y)>=y)){u.next=41;break}return u.next=41,y;case 41:f=!0,u.next=36;break;case 44:u.next=50;break;case 46:u.prev=46,u.t1=u.catch(34),d=!0,p=u.t1;case 50:u.prev=50,u.prev=51,f||null==g.return||g.return();case 53:if(u.prev=53,!d){u.next=56;break}throw p;case 56:return u.finish(53);case 57:return u.finish(50);case 58:case"end":return u.stop()}}),h,null,[[4,16,20,28],[21,,23,27],[34,46,50,58],[51,,53,57]])}function d(t,e,n){if(r=(t=Float64Array.from(f(t,n))).length){if((e=+e)<=0||r<2)return s(t);if(e>=1)return o(t);var r,i=(r-1)*e,l=Math.floor(i),u=o(function t(e,n){for(var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length-1,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:a;i>r;){if(i-r>600){var s=i-r+1,l=n-r+1,u=Math.log(s),h=.5*Math.exp(2*u/3),f=.5*Math.sqrt(u*h*(s-h)/s)*(l-s/2<0?-1:1),d=Math.max(r,Math.floor(n-l*h/s+f)),p=Math.min(i,Math.floor(n+(s-l)*h/s+f));t(e,n,d,p,o)}var g=e[n],m=r,y=i;for(c(e,r,n),o(e[i],g)>
210&&c(e,r,i);m<y;){for(c(e,m,y),++m,--y;o(e[m],g)<0;)++m;for(;o(e[y],g)>0;)--y}0===o(e[r],g)?c(e,r,y):c(e,++y,i),y<=n&&(r=y+1),n<=y&&(i=y-1)}return e}(t,l).subarray(0,l+1));return u+(s(t.subarray(l+1))-u)*(i-l)}}var p,g,m,y=n(2),_=n.n(y),v=n(2229),b=n(0),x=n.n(b),w=n(386),E=n(123),S=n(484);function C(t){var e=t[0],n=t[1];if(Number.isFinite(e)&&Number.isFinite(n)&&n>=-90&&n<=90)return t;throw new Error("Invalid coordinates: [lng: "+e+", lat: "+n+"]")}function A(t){var e=function(t){for(var e=void 0,n=void 0,r=void 0,i=void 0,o=0,s=t;o<s.length;o++){var a=s[o],c=a[0],l=a[1];(!e||l<e)&&(e=l),(!r||l>r)&&(r=l),(!i||c<i)&&(i=c),(!n||c>n)&&(n=c)}return[[n,e],[i,r]]}(I(t));return C(e[0]),C(e[1]),e}!function(t){t.MULTI_POLY="MultiPolygon",t.POLY="Polygon"}(p||(p={})),function(t){t.DARK="Dark",t.LIGHT="Light"}(g||(g={})),function(t){t.ZOOM_IN="Zoom In",t.ZOOM_OUT="Zoom Out"}(m||(m={}));var I=function(t){if(0===t.length)return t;var e=Math.max(1,Math.round(t.length/1e4)),n=t.filter((function(t,n){return n%e==0})),r=n.map((function(t){return t[0]})),i=T(r),o=n.map((function(t){return t[1]})),s=T(o);return t.filter((function(t){return t[0]>
21=i.lower&&t[0]<=i.upper&&t[1]>=s.lower&&t[1]<=s.upper}))},T=function(t){t.sort((function(t,e){return t-e}));var e=d(t,.25),n=d(t,.75),r=3*Math.abs(n-e);return{lower:e-r,upper:n+r}},M=function(t,e){return(M=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function F(t,e){function n(){this.constructor=t}M(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var B,L,O=function(){return(O=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},U=((B={})[g.DARK]="mapbox://styles/ugwigr/cjbcmizfk7c4z2rmyniglt8f6",B[g.LIGHT]="mapbox://styles/ugwigr/cjbcmn6gy7bse2so1p7b4jccq",B),k=((L={})[g.DARK]="mapbox://styles/ugwigr/cka7zrmh40j7j1inr3bxl4lrn",L[g.LIGHT]="mapbox://styles/ugwigr/cka7zt0cz0j8o1inr6eukbyfi",L);!function(t,e){void 0===e&&(e={});var n=e.insertAt;if(t&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=t:i.appendChild(document.createTextNode(t))}}(".styles_MapContainer__svuYM {\n width: 100%;\n height: 100%;\n min-width: 320px;\n min-height: 180px;\n}\n\n.styles_tooltip__1MlWX {\n background: rgba(0, 0, 0, 0.8);\n padding: 5px 8px;\n border-radius: 4px;\n color: #fff;\n position: absolute;\n}\n\n.styles_buttons__C-09c {\n position: absolute;\n bottom: 10px;\n right: 44px;\n display: flex;\n}\n.styles_buttons__C-09c.styles_embedded__2Udgw {\n right: 0px;\n}\n.styles_buttons__C-09c .styles_group__1mM-j {\n box-sizing: border-box;\n overflow: hidden;\n margin-right: 10px;\n display: inline-block;\n box-shadow: 0px 4px 10px 0px rgba(17, 37, 59, 0.08);\n border-radius: 4px;\n}\n.styles_buttons__C-09c .styles_group__1mM-j > .styles_button__2SGve:first-child {\n border-radius: 4px 0 0 4px;\n}\n.styles_buttons__C-09c .styles_group__1mM-j > .styles_button__2SGve:last-child {\n border-radius: 0 4px 4px 0;\n}\n.styles_buttons__C-09c .styles_group__1mM-j:last-child {\n margin-bottom: 0;\n}\n\n.styles_MapButton__3Rnhe {\n background: white;\n width: 34px;\n height: 32px;\n padding: 0;\n box-sizing: border-box;\n display: inline-block;\n position: relative;\n border: none;\n}\n.styles_MapButton__3Rnhe:active {\n background: #f8f8f8;\n}\n.styles_MapButton__3Rnhe:focus {\n outline: 0;\n}\n.styles_MapButton__3Rnhe i {\n margin-right: 0 !important;\n}\n.styles_MapButton__3Rnhe:hover i svg path {\n fill: #000;\n}\n.styles_MapButton__3Rnhe.styles_zoomIn__3CqqR {\n border-right: 1px solid #eef7fc;\n}\n.styles_MapButton__3Rnhe.styles_zoomIn__3CqqR i svg {\n width: 10px;\n height: 10px;\n}\n.styles_MapButton__3Rnhe.styles_zoomOut__1uTQ- i svg {\n padding-bottom: 4px;\n width: 9px;\n height: 2px;\n}\n\na.mapboxgl-ctrl-logo {\n display: none !important;\n}\n\ndiv#root.media-v2 .styles_buttons__C-09c .styles_group__1mM-j {\n border-radius: 0;\n}\ndiv#root.media-v2 .styles_buttons__C-09c .styles_group__1mM-j > .styles_button__2SGve svg path {\n fill: #000;\n}\ndiv#root.media-v2 .styles_buttons__C-09c .styles_group__1mM-j > .styles_button__2SGve:first-child {\n border-radius: 0;\n border-right: 1px solid #000;\n}\ndiv#root.media-v2 .styles_buttons__C-09c .styles_group__1mM-j > .styles_button__2SGve:last-child {\n border-radius: 0;\n}");var P,D,R=((P={})[m.ZOOM_IN]="styles_zoomIn__3CqqR",P[m.ZOOM_OUT]="styles_zoomOut__1uTQ-",P),j=((D={})[m.ZOOM_IN]='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 10"><path fill-rule="evenodd" fill="#778FA9" d="M9 6H6v3a1 1 0 01-2 0V6H1a1 1 0 010-2h3V1a1 1 0 012 0v3h3a1 1 0 010 2z"/></svg>',D[m.ZOOM_OUT]='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 9 2"><path fill-rule="evenodd" fill="#778FA9" d="M1 0h7a1 1 0 010 2H1a1 1 0 010-2z"/></svg>',D),z=function(t){return x.a.createElement("i",{dangerouslySetInnerHTML:{__html:t.svg}})},Q=function(t){return x.a.createElement("button",{className:_()("styles_MapButton__3Rnhe",t.className,R[t.button]),onClick:function(e){e.preventDefault(),e.stopPropagation(),t.onClick(t.button)}},x.a.createElement(z,{svg:j[t.button]}))};function N(t){return t||U}var V=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={tooltip:void 0},e.mapCanvas=null,e.deckRef=x.a.createRef(),e.reactMapRef=x.a.createRef(),e.handleButtonOnClick=function(t){t===m.ZOOM_IN?e.props.onZoomIn():t===m.ZOOM_OUT&&e.props.onZoomOut()},e.handleUpdateMapRef=function(){var t=e.reactMapRef.current;if(t){var n=t.getMap();e.mapCanvas=n?n._canvas:void 0}},e.onLayerHover=function(t){var n=e.props,r=n.onPointHover,i=n.onOverlayHover;t&&t.object&&t.object.groups?r(e.createPointInfo(t)):t&&t.object&&"Feature"===t.object.type&&t.object.properties?(r(void 0),i(t)):(r(void 0),i(void 0))},e.onLayerClick=function(t){var n=e.createPointInfo(t);e.props.onClick(n)},e.createPointInfo=function(t){if(t&&t.layer){var n=e.getDeck(),r=(null==n?void 0:n.viewManager.getViewports())[0];if(r){var i=t.object,o=t.layer,s=o.props.getColor&&o.props.getColor(i),a=s&&Z(s),c=G(t);if(c){var l=c&&r.project(c);return{x:l&&l[0],y:l&&l[1],color:a,object:i,layer:o}}}else console.warn("cannot get viewport from deck.gl")}},e}return F(e,t),e.prototype.componentDidMount=function(){this.props.initialViewport?this.applyInitialViewport():this.applyFitBounds()},e.prototype.componentDidUpdate=function(t){var e=this.props,n=e.fitBounds,r=e.initialViewport,i=e.width,o=e.height;!r||W(r,t.initialViewport)?!n||W(n,t.fitBounds)&&i===t.width&&o===t.height||this.applyFitBounds():this.applyInitialViewport()},e.prototype.render=function(){var t,e=this,n=this.props,r=n.viewport,i=n.width,o=n.height,s=n.onViewportChange,a=n.layers,c=n.style,l=n.buttons,u=n.onPointHover,h=n.onOverlayHover,f=n.onClick,d=n.onMapClick,p=n.children,g=n.isDoubleClickDisabled,m=n.isEmbedded,y=n.theme,b=n.preserveDrawingBuffer,E=this.state.tooltip,S=N(y)[c];return x.a.createElement(x.a.Fragment,null,x.a.createElement(w.d,O({mapboxApiAccessToken:"pk.eyJ1IjoidWd3aWdyIiwiYSI6Ik8tRERDbEkifQ.HXbQmU5i9bYU7c5HHVVxyA",mapStyle:S,preserveDrawingBuffer:b},r,{ref:this.reactMapRef,width:i,height:o,doubleClickZoom:!g,onViewportChange:function(t){u(void 0),h(void 0),f(void 0),s(t,!0)},onClick:function(t){d&&d(t.lngLat,[t.offsetCenter.x,t.offsetCenter.y])},attributionControl:!1,onLoad:this.handleUpdateMapRef}),x.a.createElement(v.a,{viewState:r,ref:this.deckRef,width:i,height:o,layers:a,onHover:this.onLayerHover,onClick:this.onLayerClick,pickingRadius:5,glOptions:b?{preserveDrawingBuffer:!0}:void 0}),p,E?x.a.createElement("div",{className:"styles_tooltip__1MlWX",style:{to
21p:E.y,left:E.x}},E.content):null),l.length>0&&x.a.createElement("div",{className:_()("styles_buttons__C-09c",(t={},t.styles_embedded__2Udgw=m,t))},l.map((function(t,n){return x.a.createElement("div",{className:"styles_group__1mM-j",key:n},t.map((function(t,n){return x.a.createElement(Q,{key:n,button:t,onClick:e.handleButtonOnClick,className:"styles_button__2SGve"})})))}))))},e.prototype.getPadding=function(){var t={top:30,right:30,bottom:30,left:30},e=this.props.fitBoundsPadding;if(e){var n=e.top,r=e.right,i=e.bottom,o=e.left;t.top=void 0!==n?n:t.top,t.right=void 0!==r?r:t.right,t.bottom=void 0!==i?i:t.bottom,t.left=void 0!==o?o:t.left}return t},e.prototype.applyFitBounds=function(){var t=this.props,e=t.fitBounds,n=t.width,r=t.height,i=t.viewport,o=t.disableTransitions;if(void 0!==e){var s=this.getPadding(),a=Object(E.fitBounds)({bounds:e,height:r,padding:s,width:n});a.zoom<0&&(a.zoom=0),a.zoom>12&&(a.zoom=12);var c=Object(E.normalizeViewportProps)(O(O({},a),{width:n,height:r})),l=c.latitude,u=c.longitude,h=c.zoom,f=o?{}:{transitionInterpolator:new w.a,transitionDuration:500};this.props.onViewportChange(O(O(O({},i),{latitude:l,longitude:u,zoom:h}),f))}},e.prototype.applyInitialViewport=function(){var t=this.props,e=t.initialViewport,n=t.viewport;e&&this.props.onViewportChange(O(O({},n),e))},e.prototype.getMergedCanvas=function(){var t=document.createElement("canvas"),e=t.getContext("2d");t.width=this.mapCanvas.width,t.height=this.mapCanvas.height,e.drawImage(this.mapCanvas,0,0);var n=this.getDeck(),r=null==n?void 0:n.canvas;return r&&e.drawImage(r,0,0),t},e.prototype.getDeck=function(){var t=this.deckRef.current;if(t)return t.deck},e}(x.a.Component);function G(t){var e=t.object.position;return e||function(t){var e=t.object.geometry;if(!e)return;if(e.type!==p.MULTI_POLY)return;var n=function t(e){return e.reduce((function(e,n){var r=n[0];if(Array.isArray(r)){var i=t(n);return{maxLng:Math.max(i.maxLng,e.maxLng),maxLat:Math.max(i.maxLat,e.maxLat),minLat:Math.min(i.minLat,e.minLat)}}var o=n[0],s=n[1];return{maxLng:Math.max(o,e.maxLng),maxLat:Math.max(s,e.maxLat),minLat:Math.min(s,e.minLat)}}),{maxLng:Number.NEGATIVE_INFINITY,maxLat:Number.NEGATIVE_INFINITY,minLat:Number.POSITIVE_INFINITY})}(t.object.geometry.coordinates),r=(n.maxLat+n.minLat)/2;return[n.maxLng,r]}(t)}function H(t){var e=t.toString(16);return 1===e.length?"0"+e:e}function Z(t){return"#"+H(t[0])+H(t[1])+H(t[2])}function W(t,e){return void 0!==t&&void 0!==e&&(Object.keys(t).length===Object.keys(e).length&&Object.keys(t).every((function(n){return e.hasOwnProperty(n)&&e[n]===t[n]})))}var X=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={viewport:{bearing:0,latitude:0,longitude:0,pitch:0,zoom:1}},e.mapRef=x.a.createRef(),e.handleZoomOutOnClick=function(){var t=e.props.viewport||e.state.viewport,n=O(O({},t),{zoom:t.zoom-1>0?t.zoom-1:t.zoom});e.props.viewport&&e.props.onViewportChange?e.props.onViewportChange(n,!0):e.setState({viewport:n})},e.handleZoomInOnClick=function(){var t=e.props.viewport||e.state.viewport,n=O(O({},t),{zoom:t.zoom+1<20?t.zoom+1:t.zoom});e.props.viewport&&e.props.onViewportChange?e.props.onViewportChange(n,!0):e.setState({viewport:n})},e.onViewportChange=function(t,n){e.setState({viewport:t}),e.props.onViewportChange&&e.props.onViewportChange(t,n)},e}return F(e,t),e.prototype.render=function(){var t=this,e=this.props,n=e.layers,r=e.style,i=e.theme,o=e.fitBounds,s=e.onClick,a=e.onMapClick,c=e.onPointHover,l=e.onOverlayHover,u=e.children,h=e.isDoubleClickDisabled,f=e.isEmbedded,d=e.fitBoundsPadding,p=e.disableTransitions,g=e.initialViewport,y=this.props.wantsZoomButtons;return void 0===y&&(y=!0),x.a.createElement(S.SizeMe,{monitorHeight:!0},(function(e){var _=e.size,v=_.width,b=_.height;return x.a.createElement("div",{className:"styles_MapContainer__svuYM"},x.a.createElement(V,{style:r,theme:i,viewport:t.props.viewport||t.state.viewport,buttons:y?[[m.ZOOM_IN,m.ZOOM_OUT]]:[],width:v||600,height:b||300,onViewportChange:t.onViewportChange,onZoomIn:t.handleZoomInOnClick,onZoomOut:t.handleZoomOutOnClick,onClick:s,onMapClick:a,onPointHover:c,onOverlayHover:l,layers:n,fitBounds:o,fitBoundsPadding:d,ref:t.mapRef,isDoubleClickDisabled:h,isEmbedded:f,disableTransitions:p,initialViewport:g,preserveDrawingBuffer:t.props.preserveDrawingBuffer},u))}))},e.prototype.getMapCanvas=function(){var t=this.mapRef.current;if(t)return t.getMergedCanvas()},e.defaultProps={style:g.LIGHT},e}(x.a.Component)},function(t,e){t.exports={}},function(t,e,n){var r=n(577),i=n(196);t.exports=function(t){return r(i(t))}},function(t,e,n){var r,i,o,s=n(1147),a=n(57),c=n(72),l=n(184),u=n(138),h=n(676),f=n(580),d=a.WeakMap;if(s){var p=new d,g=p.get,m=p.has,y=p.set;
21r=function(t,e){return y.call(p,t,e),e},i=function(t){return g.call(p,t)||{}},o=function(t){return m.call(p,t)}}else{var _=h("state");f[_]=!0,r=function(t,e){return l(t,_,e),e},i=function(t){return u(t,_)?t[_]:{}},o=function(t){return u(t,_)}}t.exports={set:r,get:i,has:o,enforce:function(t){return o(t)?i(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!c(e)||(n=i(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},function(t,e,n){var r=n(196),i=/"/g;t.exports=function(t,e,n,o){var s=String(r(t)),a="<"+e;return""!==n&&(a+=" "+n+'="'+String(o).replace(i,""")+'"'),a+">"+s+"</"+e+">"}},function(t,e,n){var r=n(36);t.exports=function(t){return r((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}))}},,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return h}));var r=n(16),i=n(159),o=n(128),s=n(363),a=n(20),c=n(216);const l=[9729,9728],u=globalThis.WebGLBuffer||function(){};class h extends i.a{get[Symbol.toStringTag](){return"Texture"}static isSupported(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{format:n,linearFiltering:r}=e;let i=!0;return n&&(i=i&&Object(s.d)(t,n),i=i&&(!r||Object(s.e)(t,n))),i}constructor(t,e){const{id:n=Object(c.c)("texture"),handle:r,target:i}=e;super(t,{id:n,handle:r}),this.target=i,this.textureUnit=void 0,this.loaded=!1,this.width=void 0,this.height=void 0,this.depth=void 0,this.format=void 0,this.type=void 0,this.dataFormat=void 0,this.border=void 0,this.textureUnit=void 0,this.mipmaps=void 0}toString(){return"Texture(".concat(this.id,",").concat(this.width,"x").concat(this.height,")")}initialize(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.data;if(e instanceof Promise)return e.then(e=>this.initialize(Object.assign({},t,{pixels:e,data:e}))),this;const n="undefined"!=typeof HTMLVideoElement&&e instanceof HTMLVideoElement;if(n&&e.readyState<HTMLVideoElement.HAVE_METADATA)return this._video=null,e.addEventListener("loadeddata",()=>this.initialize(t)),this;const{pixels:i=null,format:o=6408,border:s=0,recreate:a=!1,parameters:c={},pixelStore:l={},textureUnit:u}=t;e||(e=i);let{width:h,height:f,dataFormat:d,type:p,compressed:g=!1,mipmaps:m=!0}=t;const{depth:y=0}=t;return({width:h,height:f,compressed:g,dataFormat:d,type:p}=this._deduceParameters({format:o,type:p,dataFormat:d,compressed:g,data:e,width:h,height:f})),this.width=h,this.height=f,this.depth=y,this.format=o,this.type=p,this.dataFormat=d,this.border=s,this.textureUnit=u,Number.isFinite(this.textureUnit)&&(this.gl.activeTexture(33984+this.textureUnit),this.gl.bindTexture(this.target,this.handle)),m&&this._isNPOT()&&(r.j.warn("texture: ".concat(this," is Non-Power-Of-Two, disabling mipmaping"))(),m=!1,this._updateForNPOT(c)),this.mipmaps=m,this.setImageData({data:e,width:h,height:f,depth:y,format:o,type:p,dataFormat:d,border:s,mipmaps:m,parameters:l,compressed:g}),m&&this.generateMipmap(),this.setParameters(c),a&&(this.data=e),n&&(this._video={video:e,parameters:c,lastTime:e.readyState>=HTMLVideoElement.HAVE_CURRENT_DATA?e.currentTime:-1}),this}update(){if(this._video){const{video:t,parameters:e,lastTime:n}=this._video;if(n===t.currentTime||t.readyState<HTMLVideoElement.HAVE_CURRENT_DATA)return;this.setSubImageData({data:t,parameters:e}),this.mipmaps&&this.generateMipmap(),this._video.lastTime=t.currentTime}}resize(t){let{height:e,width:n,mipmaps:r=!1}=t;return n!==this.width||e!==this.height?this.initialize({width:n,height:e,format:this.format,type:this.type,dataFormat:this.dataFormat,border:this.border,mipmaps:r}):this}generateMipmap(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._isNPOT()?(r.j.warn("texture: ".concat(this," is Non-Power-Of-Two, disabling mipmaping"))(),this):(this.mipmaps=!0,this.gl.bindTexture(this.target,this.handle),Object(r.n)(this.gl,t,()=>{this.gl.generateMipmap(this.target)}),this.gl.bindTexture(this.target,null),this)}setImageData(t){this._trackDeallocatedMemory("Texture");const{target:e=this.target,pixels:n=null,level:i=0,format:o=this.format,border:c=this.border,offset:l=0,parameters:u={}}=t;let{data:h=null,type:f=this.type,width:d=this.width,height:p=this.height,dataFormat:g=this.dataFormat,compressed:m=!1}=t;h||(h=n),({type:f,dataFormat:g,compressed:m,width:d,height:p}=this._deduceParameters({format:o,type:f,dataFormat:g,compressed:m,data:h,width:d,height:p}));const{gl:y}=this;y.bindTexture(this.target,this.handle);let _,v=null;({data:h,dataType:v}=this._getDataType({data:h,compressed:m}));let b=0;if(Object(r.n)(this.gl,u,()=>{switch(v){case"null":y.texImage2D(e,i,o,d,p,c,g,f,h);break;case"typed-array":y.texImage2D(e,i,o,d,p,c,g,f,h,l);break;case"buffer":_=Object(r.a)(y),_.bindBuffer(35052,h.handle||h),_.texImage2D(e,i,o,d,p,c,g,f,l),_.bindBuffer(35052,null);break;case"browser-object":Object(r.i)(y)?y.texImage2D(e,i,o,d,p,c,g,f,h):y.texImage2D(e,i,o,g,f,h);break;case"compressed":for(const[t,n]of h.entries())y.compressedTexImage2D(e,t,n.format,n.width,n.height,c,n.data),b+=n.levelSize;break;default:Object(a.a)(!1,"Unknown image data type")}}),"compressed"===v)this._trackAllocatedMemory(b,"Texture");else if(h&&h.byteLength)this._trackAllocatedMemory(h.byteLength,"Texture");
21else{const t=s.a[this.dataFormat]||4,e=s.c[this.type]||1;this._trackAllocatedMemory(this.width*this.height*t*e,"Texture")}return this.loaded=!0,this}setSubImageData(t){let{target:e=this.target,pixels:n=null,data:i=null,x:s=0,y:c=0,width:l=this.width,height:h=this.height,level:f=0,format:d=this.format,type:p=this.type,dataFormat:g=this.dataFormat,compressed:m=!1,offset:y=0,border:_=this.border,parameters:v={}}=t;if(({type:p,dataFormat:g,compressed:m,width:l,height:h}=this._deduceParameters({format:d,type:p,dataFormat:g,compressed:m,data:i,width:l,height:h})),Object(a.a)(0===this.depth,"texSubImage not supported for 3D textures"),i||(i=n),i&&i.data){const t=i;i=t.data,l=t.shape[0],h=t.shape[1]}i instanceof o.a&&(i=i.handle),this.gl.bindTexture(this.target,this.handle),Object(r.n)(this.gl,v,()=>{if(m)this.gl.compressedTexSubImage2D(e,f,s,c,l,h,d,i);else if(null===i)this.gl.texSubImage2D(e,f,s,c,l,h,g,p,null);else if(ArrayBuffer.isView(i))this.gl.texSubImage2D(e,f,s,c,l,h,g,p,i,y);else if(i instanceof u){const t=Object(r.a)(this.gl);t.bindBuffer(35052,i),t.texSubImage2D(e,f,s,c,l,h,g,p,y),t.bindBuffer(35052,null)}else if(Object(r.i)(this.gl)){Object(r.a)(this.gl).texSubImage2D(e,f,s,c,l,h,g,p,i)}else this.gl.texSubImage2D(e,f,s,c,g,p,i)}),this.gl.bindTexture(this.target,null)}copyFramebuffer(){return r.j.error("Texture.copyFramebuffer({...}) is no logner supported, use copyToTexture(source, target, opts})")(),null}getActiveUnit(){return this.gl.getParameter(34016)-33984}bind(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.textureUnit;const{gl:e}=this;return void 0!==t&&(this.textureUnit=t,e.activeTexture(33984+t)),e.bindTexture(this.target,this.handle),t}unbind(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.textureUnit;const{gl:e}=this;return void 0!==t&&(this.textureUnit=t,e.activeTexture(33984+t)),e.bindTexture(this.target,null),t}_getDataType(t){let{data:e,compressed:n=!1}=t;return n?{data:e,dataType:"compressed"}:null===e?{data:e,dataType:"null"}:ArrayBuffer.isView(e)?{data:e,dataType:"typed-array"}:e instanceof o.a?{data:e.handle,dataType:"buffer"}:e instanceof u?{data:e,dataType:"buffer"}:{data:e,dataType:"browser-object"}}_deduceParameters(t){const{format:e,data:n}=t;let{width:r,height:i,dataFormat:o,type:a,compressed:c}=t;const l=s.b[e];return o=o||l&&l.dataFormat,a=a||l&&l.types[0],c=c||l&&l.compressed,({width:r,height:i}=this._deduceImageSize(n,r,i)),{dataFormat:o,type:a,compressed:c,width:r,height:i,format:e,data:n}}_deduceImageSize(t,e,n){let r;return r="undefined"!=typeof ImageData&&t instanceof ImageData?{width:t.width,height:t.height}:"undefined"!=typeof HTMLImageElement&&t instanceof HTMLImageElement?{width:t.naturalWidth,height:t.naturalHeight}:"undefined"!=typeof HTMLCanvasElement&&t instanceof HTMLCanvasElement||"undefined"!=typeof ImageBitmap&&t instanceof ImageBitmap?{width:t.width,height:t.height}:"undefined"!=typeof HTMLVideoElement&&t instanceof HTMLVideoElement?{width:t.videoWidth,height:t.videoHeight}:t?{width:e,height:n}:{width:e>=0?e:1,height:n>=0?n:1},Object(a.a)(r,"Could not deduced texture size"),Object(a.a)(void 0===e||r.width===e,"Deduced texture width does not match supplied width"),Object(a.a)(void 0===n||r.height===n,"Deduced texture height does not match supplied height"),r}_createHandle(){return this.gl.createTexture()}_deleteHandle(){this.gl.deleteTexture(this.handle),this._trackDeallocatedMemory("Texture")}_getParameter(t){switch(t){case 4096:return this.width;case 4097:return this.height;default:this.gl.bindTexture(this.target,this.handle);const e=this.gl.getTexParameter(this.target,t);return this.gl.bindTexture(this.target,null),e}}_setParameter(t,e){switch(this.gl.bindTexture(this.target,this.handle),e=this._getNPOTParam(t,e),t){case 33082:case 33083:this.gl.texParameterf(this.handle,t,e);break;case 4096:case 4097:Object(a.a)(!1);break;default:this.gl.texParameteri(this.target,t,e)}return this.gl.bindTexture(this.target,null),this}_isNPOT(){return!Object(r.i)(this.gl)&&(!(!this.width||!this.height)&&(!Object(c.b)(this.width)||!Object(c.b)(this.height)))}_updateForNPOT(t){void 0===t[this.gl.TEXTURE_MIN_FILTER]&&(t[this.gl.TEXTURE_MIN_FILTER]=this.gl.LINEAR),void 0===t[this.gl.TEXTURE_WRAP_S]&&(t[this.gl.TEXTURE_WRAP_S]=this.gl.CLAMP_TO_EDGE),void 0===t[this.gl.TEXTURE_WRAP_T]&&(t[this.gl.TEXTURE_WRAP_T]=this.gl.CLAMP_TO_EDGE)}_getNPOTParam(t,e){if(this._isNPOT())switch(t){case 10241:-1===l.indexOf(e)&&(e=9729);break;case 10242:case 10243:33071!==e&&(e=33071)}return e}}},,,,,,function(t,e,n){"use strict";var r,i,o,s;n.d(e,"c",(function(){return r})),n.d(e,"d",(function(){return i})),n.d(e,"a",(function(){return o}
21)),n.d(e,"b",(function(){return s})),function(t){t.TABLE="application/vnd.thinknum.table+json",t.MAP="application/vnd.thinknum.map+json",t.CHART="application/vnd.thinknum.chart+json",t.HEATMAP="application/vnd.thinknum.heatmap+json"}(r||(r={})),function(t){t.TIME_SERIES="timeseries",t.INVERSED="inversed"}(i||(i={})),function(t){t.TIME_SERIES="timeseries",t.CATEGORICAL="categorical",t.TIME_CATEGORICAL="timecategorical",t.SCATTER="scatter"}(o||(o={})),function(t){t.LINE_CHART="line",t.BAR_CHART="bar",t.PIE_CHART="pie",t.SCATTERPLOT="scatterplot",t.WORD_CLOUD="wordcloud",t.TIME_BAR_CHART="time_bar",t.TIME_WORD_CLOUD="time_wordcloud",t.HISTOGRAM="histogram"}(s||(s={}))},,function(t,e,n){"use strict";e.a=function(t,e){return t.has(e)}},function(t,e,n){"use strict";var r=n(156),i=n(94),o=n(170),s=n(55);e.a=function(t,e,n){if(!Object(s.a)(n))return!1;var a=typeof e;return!!("number"==a?Object(i.a)(n)&&Object(o.a)(e,n.length):"string"==a&&e in n)&&Object(r.a)(n[e],t)}},function(t,e,n){"use strict";(function(t){var r=n(311),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=i&&"object"==typeof t&&t&&!t.nodeType&&t,s=o&&o.exports===i&&r.a.process,a=function(){try{var t=o&&o.require&&o.require("util").types;return t||s&&s.binding&&s.binding("util")}catch(t){}}();e.a=a}).call(this,n(439)(t))},,,,function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){"use strict";function r(t,e){if(!t)throw new Error(e||"loaders.gl assertion failed.")}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(217),i=n(20),o=n(594);const s={offset:0,stride:0,type:5126,size:1,divisor:0,normalized:!1,integer:!1},a={deprecatedProps:{instanced:"divisor",isInstanced:"divisor"}};class c{static getBytesPerElement(t){return Object(r.c)(t.type||5126).BYTES_PER_ELEMENT}static getBytesPerVertex(t){Object(i.a)(t.size);return Object(r.c)(t.type||5126).BYTES_PER_ELEMENT*t.size}static resolve(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return new c(...[s,...e])}constructor(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e.forEach(t=>this._assign(t)),Object.freeze(this)}toString(){return JSON.stringify(this)}get BYTES_PER_ELEMENT(){return c.getBytesPerElement(this)}get BYTES_PER_VERTEX(){return c.getBytesPerVertex(this)}_assign(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t=Object(o.a)("Accessor",t,a),void 0!==t.type&&(this.type=t.type,5124!==t.type&&5125!==t.type||(this.integer=!0)),void 0!==t.size&&(this.size=t.size),void 0!==t.offset&&(this.offset=t.offset),void 0!==t.stride&&(this.stride=t.stride),void 0!==t.normalized&&(this.normalized=t.normalized),void 0!==t.integer&&(this.integer=t.integer),void 0!==t.divisor&&(this.divisor=t.divisor),void 0!==t.buffer&&(this.buffer=t.buffer),void 0!==t.index&&("boolean"==typeof t.index?this.index=t.index?1:0:this.index=t.index),void 0!==t.instanced&&(this.divisor=t.instanced?1:0),void 0!==t.isInstanced&&(this.divisor=t.isInstanced?1:0),this}}},function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return r}));"undefined"!=typeof window&&window,void 0!==t||window;var r="undefined"!=typeof document?document:{}}).call(this,n(121))},,function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return s})),n.d(e,"c",(function(){return a})),n.d(e,"d",(function(){return h}));var r=n(308),i=n(60);function o(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function s(t){return[t[12],t[13],t[14]]}function a(t){const e={};return e.left=l(t[3]+t[0],t[7]+t[4],t[11]+t[8],t[15]+t[12]),e.right=l(t[3]-t[0],t[7]-t[4],t[11]-t[8],t[15]-t[12]),e.bottom=l(t[3]+t[1],t[7]+t[5],t[11]+t[9],t[15]+t[13]),e.top=l(t[3]-t[1],t[7]-t[5],t[11]-t[9],t[15]-t[13]),e.near=l(t[3]+t[2],t[7]+t[6],t[11]+t[10],t[15]+t[14]),e.far=l(t[3]-t[2],t[7]-t[6],t[11]-t[10],t[15]-t[14]),e}const c=new i.b;function l(t,e,n,r){c.set(t,e,n);const o=c.len();return{distance:r/o,normal:new i.b(-t/o,-e/o,-n/o)}}let u;function h(t,{size:e=1,startIndex:n=0,endIndex:i}){Number.isFinite(i)||(i=t.length);const o=(i-n)/e;u=r.a.allocate(u,o,{type:Float32Array,size:2*e});let s=n,a=0;for(;s<i;){for(let n=0;n<e;n++){const r=t[s++];u[a+n]=r,u[a+n+e]=(c=r)-Math.fround(c)}a+=2*e}var c;return u.subarray(0,o*e*2)}},function(t,e,n){"use strict";var r=n(173);var i=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};var o=function(t){return this.__data__.has(t)};function s(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new r.a;++e<n;)this.add(t[e])}s.prototype.add=s.prototype.push=i,s.prototype.has=o;e.a=s},function(t,e,n){"use strict";var r=n(74),i=function(){try{var t=Object(r.a)(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();e.a=i},,,,,,,,,function(t,e,n){var r=n(724);t.exports=function(t){return r(t.length)}},function(t,e,n){"use strict";var r=Object.prototype;e.a=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||r)}},function(t,e,n){"use strict";var r=n(180),i=n(65),o=n(205),s=n(31),a=i.a?i.a.isConcatSpreadable:void 0;var c=function(t){return Object(s.a)(t)||Object(o.a)(t)||!!(a&&t&&t[a])};e.a=function t(e,n,i,o,s){var a=-1,l=e.length;for(i||(i=c),s||(s=[]);++a<l;){var u=e[a];n>0&&i(u)?n>1?t(u,n-1,i,o,s):Object(r.a)(s,u):o||(s[s.length]=u)}return s}},,,function(t,e,n){var r=n(231),i=n(26),o=n(76),s=function(t){return o(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?s(r[t])||s(i[t]):r[t]&&r[t][e]||i[t]&&i[t][e]}},function(t,e,n){"use strict";var r=n(273),i=n(103),o=n(59),s=n(417);var a=function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t},c=n(227),l=n(99);var u=function(t,e){if(t!==e){var n=void 0!==t,r=null===t,i=t==t,o=Object(l.a)(t),s=void 0!==e,a=null===e,c=e==e,u=Object(l.a)(e);if(!a&&!u&&!o&&t>e||o&&s&&c&&!a&&!u||r&&s&&c||!n&&c||!i)return 1;
21if(!r&&!o&&!u&&t<e||u&&n&&i&&!r&&!o||a&&n&&i||!s&&i||!c)return-1}return 0};var h=function(t,e,n){for(var r=-1,i=t.criteria,o=e.criteria,s=i.length,a=n.length;++r<s;){var c=u(i[r],o[r]);if(c)return r>=a?c:c*("desc"==n[r]?-1:1)}return t.index-e.index},f=n(116);var d=function(t,e,n){var r=-1;e=Object(i.a)(e.length?e:[f.a],Object(c.a)(o.a));var l=Object(s.a)(t,(function(t,n,o){return{criteria:Object(i.a)(e,(function(e){return e(t)})),index:++r,value:t}}));return a(l,(function(t,e){return h(t,e,n)}))},p=n(418),g=n(250),m=Object(p.a)((function(t,e){if(null==t)return[];var n=e.length;return n>1&&Object(g.a)(t,e[0],e[1])?e=[]:n>2&&Object(g.a)(e[0],e[1],e[2])&&(e=[e[0]]),d(t,Object(r.a)(e,1),[])}));e.a=m},function(t,e,n){"use strict";n.r(e),n.d(e,"axisTop",(function(){return h})),n.d(e,"axisRight",(function(){return f})),n.d(e,"axisBottom",(function(){return d})),n.d(e,"axisLeft",(function(){return p}));var r=Array.prototype.slice,i=function(t){return t};function o(t){return"translate("+(t+.5)+",0)"}function s(t){return"translate(0,"+(t+.5)+")"}function a(t){return function(e){return+t(e)}}function c(t){var e=Math.max(0,t.bandwidth()-1)/2;return t.round()&&(e=Math.round(e)),function(n){return+t(n)+e}}function l(){return!this.__axis}function u(t,e){var n=[],u=null,h=null,f=6,d=6,p=3,g=1===t||4===t?-1:1,m=4===t||2===t?"x":"y",y=1===t||3===t?o:s;function _(r){var o=null==u?e.ticks?e.ticks.apply(e,n):e.domain():u,s=null==h?e.tickFormat?e.tickFormat.apply(e,n):i:h,_=Math.max(f,0)+p,v=e.range(),b=+v[0]+.5,x=+v[v.length-1]+.5,w=(e.bandwidth?c:a)(e.copy()),E=r.selection?r.selection():r,S=E.selectAll(".domain").data([null]),C=E.selectAll(".tick").data(o,e).order(),A=C.exit(),I=C.enter().append("g").attr("class","tick"),T=C.select("line"),M=C.select("text");S=S.merge(S.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),C=C.merge(I),T=T.merge(I.append("line").attr("stroke","currentColor").attr(m+"2",g*f)),M=M.merge(I.append("text").attr("fill","currentColor").attr(m,g*_).attr("dy",1===t?"0em":3===t?"0.71em":"0.32em")),r!==E&&(S=S.transition(r),C=C.transition(r),T=T.transition(r),M=M.transition(r),A=A.transition(r).attr("opacity",1e-6).attr("transform",(function(t){return isFinite(t=w(t))?y(t):this.getAttribute("transform")})),I.attr("opacity",1e-6).attr("transform",(function(t){var e=this.parentNode.__axis;return y(e&&isFinite(e=e(t))?e:w(t))}))),A.remove(),S.attr("d",4===t||2==t?d?"M"+g*d+","+b+"H0.5V"+x+"H"+g*d:"M0.5,"+b+"V"+x:d?"M"+b+","+g*d+"V0.5H"+x+"V"+g*d:"M"+b+",0.5H"+x),C.attr("opacity",1).attr("transform",(function(t){return y(w(t))})),T.attr(m+"2",g*f),M.attr(m,g*_).text(s),E.filter(l).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===t?"start":4===t?"end":"middle"),E.each((function(){this.__axis=w}))}return _.scale=function(t){return arguments.length?(e=t,_):e},_.ticks=function(){return n=r.call(arguments),_},_.tickArguments=function(t){return arguments.length?(n=null==t?[]:r.call(t),_):n.slice()},_.tickValues=function(t){return arguments.length?(u=null==t?null:r.call(t),_):u&&u.slice()},_.tickFormat=function(t){return arguments.length?(h=t,_):h},_.tickSize=function(t){return arguments.length?(f=d=+t,_):f},_.tickSizeInner=function(t){return arguments.length?(f=+t,_):f},_.tickSizeOuter=function(t){return arguments.length?(d=+t,_):d},_.tickPadding=function(t){return arguments.length?(p=+t,_):p},_}function h(t){return u(1,t)}function f(t){return u(2,t)}function d(t){return u(3,t)}function p(t){return u(4,t)}},function(t,e,n){"use strict";var r=n(289),i=n(511),o=n(116);e.a=function(t){return t&&t.length?Object(r.a)(t,o.a,i.a):void 0}},function(t,e,n){"use strict";var r=n(78);n.d(e,"a",(function(){return r.b})),n.d(e,"b",(function(){return r.c}))},function(t,e,n){var r=n(512),i=n(326);t.exports=function(t){return r(i(t))}},,function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var r=n(72);t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){"use strict";var r=n(74),i=n(44),o=Object(r.a)(i.a,"DataView"),s=n(147),a=Object(r.a)(i.a,"Promise"),c=n(148),l=Object(r.a)(i.a,"WeakMap"),u=n(71),h=n(124),f=Object(h.a)(o),d=Object(h.a)(s.a),p=Object(h.a)(a),g=Object(h.a)(c.a),m=Object(h.a)(l),y=u.a;(o&&"[object DataView]"!=y(new o(new ArrayBuffer(1)))||s.a&&"[object Map]"!=y(new s.a)||a&&"[object Promise]"!=y(a.resolve())||c.a&&"[object Set]"!=y(new c.a)||l&&"[object WeakMap]"!=y(new l))&&(y=function(t){var e=Object(u.a)(t),n="[object Object]"==e?t.constructor:void 0,r=n?Object(h.a)(n):"";if(r)switch(r){case f:return"[object DataView]";case d:return"[object Map]";case p:return"[object Promise]";case g:return"[object Set]";case m:return"[object WeakMap]"}return e});e.a=y},function(t,e,n){t.exports={LoadingIcon:"LoadingIcon_3F436",rotator:"rotator_12PCD",path:"path_aNnHV",dash:"dash_1LRUD",message:"message_1f4qp",tiny:"tiny_g36T9",small:"small_18sK3",large:"large_ZZOdS",extraLarge:"extraLarge_88iq9",grey:"grey_1VNYO",white:"white_1tQwR",black:"black_1PGS-",flexCentered:"flexCentered_2kuA4"}},,function(t,e,n){var r=n(276);t.exports=r("navigator","userAgent")||""},function(t,e,n){"use strict";var r=n(99);e.a=function(t,e,n){for(var i=-1,o=t.length;++i<o;){var s=t[i],a=e(s);if(null!=a&&(void 0===c?a==a&&!Object(r.a)(a):n(a,c)))var c=a,l=s}return l}},,function(t,e,n){"use strict";var r=n(262);e.a=function(t,e,n){"__proto__"==e&&r.a?Object(r.a)(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},function(t,e,n){"use strict";var r=n(575);e.a=function(t){var e=Object(r.a)(t),n=e%1;return e==e?n?e-n:e:0}},,function(t,e,n){var r=n(26),i=n(76),o=n(553),s=r.TypeError;t.exports=function(t){if(i(t))return t;throw s(o(t)+" is not a function")}},,function(t,e,n){var r=n(26),i=n(182),o=n(504),s=n(303),a=n(371),c=r.TypeError,l=Object.defineProperty;e.f=i?l:function(t,e,n){if(s(t),e=a(e),s(n),o)try{return l(t,e,n)}catch(t){}if("get"in n||"set"in n)throw c("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},function(t,e){var n,r,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{r="function"==typeof clearTimeout?clearTimeout:s}
21catch(t){r=s}}();var c,l=[],u=!1,h=-1;function f(){u&&c&&(u=!1,c.length?l=c.concat(l):h=-1,l.length&&d())}function d(){if(!u){var t=a(f);u=!0;for(var e=l.length;e;){for(c=l,l=[];++h<e;)c&&c[h].run();h=-1,e=l.length}c=null,u=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function g(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];l.push(new p(t,e)),1!==l.length||u||a(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.prependListener=g,i.prependOnceListener=g,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},,function(t,e,n){"use strict";var r=n(460);e.a=function(t){return null==t?"":Object(r.a)(t)}},,function(t,e,n){"use strict";var r=function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var s=t[n];e(s,n,t)&&(o[i++]=s)}return o},i=n(330),o=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols,a=s?function(t){return null==t?[]:(t=Object(t),r(s(t),(function(e){return o.call(t,e)})))}:i.a;e.a=a},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var r=n(26),i=n(154),o=r.String,s=r.TypeError;t.exports=function(t){if(i(t))return t;throw s(o(t)+" is not an object")}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return l}));var r=n(15),i=n(206),o=n(40),s=n(24),a=function(){function t(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._context={}}return t.prototype.addScopeListener=function(t){this._scopeListeners.push(t)},t.prototype.addEventProcessor=function(t){return this._eventProcessors.push(t),this},t.prototype._notifyScopeListeners=function(){var t=this;this._notifyingListeners||(this._notifyingListeners=!0,setTimeout((function(){t._scopeListeners.forEach((function(e){e(t)})),t._notifyingListeners=!1})))},t.prototype._notifyEventProcessors=function(t,e,n,s){var a=this;return void 0===s&&(s=0),new i.a((function(i,c){var l=t[s];if(null===e||"function"!=typeof l)i(e);else{var u=l(r.a({},e),n);Object(o.m)(u)?u.then((function(e){return a._notifyEventProcessors(t,e,n,s+1).then(i)})).then(null,c):a._notifyEventProcessors(t,u,n,s+1).then(i).then(null,c)}}))},t.prototype.setUser=function(t){return this._user=t||{},this._notifyScopeListeners(),this},t.prototype.setTags=function(t){return this._tags=r.a({},this._tags,t),this._notifyScopeListeners(),this},t.prototype.setTag=function(t,e){var n;return this._tags=r.a({},this._tags,((n={})[t]=e,n)),this._notifyScopeListeners(),this},t.prototype.setExtras=function(t){return this._extra=r.a({},this._extra,t),this._notifyScopeListeners(),this},t.prototype.setExtra=function(t,e){var n;return this._extra=r.a({},this._extra,((n={})[t]=e,n)),this._notifyScopeListeners(),this},t.prototype.setFingerprint=function(t){return this._fingerprint=t,this._notifyScopeListeners(),this},t.prototype.setLevel=function(t){return this._level=t,this._notifyScopeListeners(),this},t.prototype.setTransaction=function(t){return this._transaction=t,this._span&&(this._span.transaction=t),this._notifyScopeListeners(),this},t.prototype.setContext=function(t,e){var n;return this._context=r.a({},this._context,((n={})[t]=e,n)),this._notifyScopeListeners(),this},t.prototype.setSpan=function(t){return this._span=t,this._notifyScopeListeners(),this},t.prototype.getSpan=function(){return this._span},t.clone=function(e){var n=new t;return e&&(n._breadcrumbs=r.d(e._breadcrumbs),n._tags=r.a({},e._tags),n._extra=r.a({},e._extra),n._context=r.a({},e._context),n._user=e._user,n._level=e._level,n._span=e._span,n._transaction=e._transaction,n._fingerprint=e._fingerprint,n._eventProcessors=r.d(e._eventProcessors)),n},t.prototype.clear=function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._context={},this._level=void 0,this._transaction=void 0,this._fingerprint=void 0,this._span=void 0,this._notifyScopeListeners(),this},t.prototype.addBreadcrumb=function(t,e){var n=r.a({timestamp:Object(s.l)()},t);return this._breadcrumbs=void 0!==e&&e>=0?r.d(this._breadcrumbs,[n]).slice(-e):r.d(this._breadcrumbs,[n]),this._notifyScopeListeners(),this},t.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},t.prototype._applyFingerprint=function(t){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],this._fingerprint&&(t.fingerprint=t.fingerprint.concat(this._fingerprint)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint},t.prototype.applyToEvent=function(t,e){return this._extra&&Object.keys(this._extra).length&&(t.extra=r.a({},this._extra,t.extra)),this._tags&&Object.keys(this._tags).length&&(t.tags=r.a({},this._tags,t.tags)),this._user&&Object.keys(this._user).length&&(t.user=r.a({},this._user,t.user)),this._context&&Object.keys(this._context).length&&(t.contexts=r.a({},this._context,t.contexts)),this._level&&(t.level=this._level),this._transaction&&(t.transaction=this._transaction),this._span&&(t.contexts=r.a({trace:this._span.getTraceContext()},t.contexts)),this._applyFingerprint(t),t.breadcrumbs=r.d(t.breadcrumbs||[],this._breadcrumbs),t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,this._notifyEventProcessors(r.d(c(),this._eventProcessors),t,e)}
21,t}();function c(){var t=Object(s.f)();return t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.globalEventProcessors=t.__SENTRY__.globalEventProcessors||[],t.__SENTRY__.globalEventProcessors}function l(t){c().push(t)}},,,function(t,e,n){var r=n(26),i=n(326),o=r.Object;t.exports=function(t){return o(i(t))}},function(t,e,n){"use strict";e.a=new class{constructor(t){this._pool=[],this.props={overAlloc:2,poolSize:100},this.setProps(t)}setProps(t){Object.assign(this.props,t)}allocate(t,e,{size:n=1,type:r,padding:i=0,copy:o=!1,initialize:s=!1,maxCount:a}){const c=r||t&&t.constructor||Float32Array,l=e*n+i;if(ArrayBuffer.isView(t)){if(l<=t.length)return t;if(l*t.BYTES_PER_ELEMENT<=t.buffer.byteLength)return new c(t.buffer,0,l)}let u;a&&(u=a*n+i);const h=this._allocate(c,l,s,u);return t&&o?h.set(t):s||h.fill(0,0,4),this._release(t),h}release(t){this._release(t)}_allocate(t,e,n,r){let i=Math.max(Math.ceil(e*this.props.overAlloc),1);i>r&&(i=r);const o=this._pool,s=t.BYTES_PER_ELEMENT*i,a=o.findIndex(t=>t.byteLength>=s);if(a>=0){const e=new t(o.splice(a,1)[0],0,i);return n&&e.fill(0),e}return new t(i)}_release(t){if(!ArrayBuffer.isView(t))return;const e=this._pool,{buffer:n}
21=t,{byteLength:r}=n,i=e.findIndex(t=>t.byteLength>=r);i<0?e.push(n):(i>0||e.length<this.props.poolSize)&&e.splice(i,0,n),e.length>this.props.poolSize&&e.shift()}}},,function(t,e,n){"use strict";n.d(e,"h",(function(){return i})),n.d(e,"k",(function(){return s})),n.d(e,"g",(function(){return y})),n.d(e,"d",(function(){return a})),n.d(e,"e",(function(){return l})),n.d(e,"b",(function(){return u})),n.d(e,"c",(function(){return h})),n.d(e,"j",(function(){return f})),n.d(e,"a",(function(){return d})),n.d(e,"i",(function(){return p})),n.d(e,"f",(function(){return g}));var r,i,o=n(21);function s(t,e){return t.function===i.NEARBY?"Number of Nearby Competitors":t.function===i.NEAREST?"Identify Nearest Competitors":t.function===i.SALES?"job_listings"===e?"Recruitment analysis":"Sales analysis":t.function===i.LOCALDATA?"Local Data":t.function===i.CHANGE_OVER_TIME?"Change over time":t.function===i.HEATMAP?"Heatmap":t.function===i.GENDER_DECODER?"Gender bias analysis":t.function===i.CHURN?"Gross churn":t.function===i.STORES_DUPLICATE?"Identify Duplicates":""}!function(t){t.NEARBY="nearby",t.NEAREST="nearest",t.SALES="sales",t.LOCALDATA="localdata",t.CHANGE_OVER_TIME="changeovertime",t.HEATMAP="heatmap",t.GENDER_DECODER="genderdecoder",t.CHURN="churn",t.STORES_DUPLICATE="identifyduplicate",t.LISTING_CHANGE="listingchange"}(i||(i={}));var a,c,l,u,h,f,d,p,g,m,y=((r={})[i.NEARBY]=[o.b.Table],r[i.NEAREST]=[o.b.Table],r[i.STORES_DUPLICATE]=[o.b.Table],r);!function(t){t.STATE="state",t.COUNTY="county",t.COUNTRY="country",t.CBSA="cbsa",t.POSTAL="postal"}(a||(a={})),function(t){t.Macro="macro",t.Weather="weather",t.ESG="esg"}(c||(c={})),function(t){t.DATASET="dataset"}(l||(l={})),function(t){t.EQUALS="=",t.NOT_EQUALS="!=",t.GREATER_THAN=">",t.LESS_THAN="<",t.BETWEEN="[]",t.GREATER_THAN_OR_EQUAL=">=",t.LESS_THAN_OR_EQUAL="<=",t.IS_BLANK="{}"}(u||(u={})),function(t){t.EQUALS="=",t.NOT_EQUALS="!=",t.GREATER_THAN=">",t.LESS_THAN="<",t.GREATER_THAN_OR_EQUAL=">=",t.LESS_THAN_OR_EQUAL="<=",t.IS_BLANK="{}"}(h||(h={})),function(t){t.EQUALS="=",t.NOT_EQUALS="!=",t.STARTS_WITH="=...",t.ENDS_WITH="...=",t.CONTAINS="...",t.CONTAINS_WORD="(...)",t.NOT_CONTAINS="!...",t.I_EQUALS="i=",t.I_NOT_EQUALS="i!=",t.I_STARTS_WITH="i=...",t.I_ENDS_WITH="i...=",t.I_CONTAINS="i...",t.I_CONTAINS_WORD="i(...)",t.I_NOT_CONTAINS="i!...",t.IS_BLANK="{}"}(f||(f={})),function(t){t.ALL="all",t.ANY="any"}(d||(d={})),function(t){t.DAY="day",t.WEEK="week",t.MONTH="month",t.QUARTER="quarter",t.YEAR="year",t.YEARQUARTER="yearquarter",t.YEARMONTH="yearmonth",t.YEARMONTHDAY="yearmonthday",t.YEARWEEK="yearweek",t.YEARDAY="yearday"}(p||(p={})),function(t){t.COUNT="count",t.DISTINCT_COUNT="distinctcount",t.AVERAGE="average",t.MEDIAN="median",t.SUM="sum",t.MIN="min",t.MAX="max",t.CUMSUM="cumsum",t.CUMAVG="cumavg",t.CUMCOUNT="cumcount",t.CUM_DISTINCT_COUNT="cumdistinctcount"}(g||(g={})),function(t){t.STORE="store"}(m||(m={}))},function(t,e,n){"use strict";(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.a=n}).call(this,n(121))},function(t,e,n){"use strict";var r=n(71),i=n(55);e.a=function(t){if(!Object(i.a)(t))return!1;var e=Object(r.a)(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},function(t,e,n){"use strict";var r=n(71),i=n(201),o=n(63),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1;var a=function(t){return Object(o.a)(t)&&Object(i.a)(t.length)&&!!s[Object(r.a)(t)]},c=n(227),l=n(251),u=l.a&&l.a.isTypedArray,h=u?Object(c.a)(u):a;e.a=h},,,function(t,e,n){var r=n(334);t.exports=Array.isArray||function(t){return"Array"==r(t)}},,function(t,e,n){var r=n(110).f,i=n(138),o=n(82)("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},function(t,e,n){var r=n(138),i=n(114),o=n(676),s=n(937),a=o("IE_PROTO"),c=Object.prototype;
21t.exports=s?Object.getPrototypeOf:function(t){return t=i(t),r(t,a)?t[a]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?c:null}},function(t,e,n){"use strict";function r(){}n.d(e,"a",(function(){return o}));const i={onStart:r,onUpdate:r,onInterrupt:r,onEnd:r};class o{constructor(t){this._inProgress=!1,this._handle=null,this.timeline=t,this.settings={}}get inProgress(){return this._inProgress}start(t){this.cancel(),this.settings={...i,...t},this._inProgress=!0,this.settings.onStart(this)}end(){this._inProgress&&(this.timeline.removeChannel(this._handle),this._handle=null,this._inProgress=!1,this.settings.onEnd(this))}cancel(){this._inProgress&&(this.settings.onInterrupt(this),this.timeline.removeChannel(this._handle),this._handle=null,this._inProgress=!1)}update(){if(!this._inProgress)return!1;if(null===this._handle){const{timeline:t,settings:e}=this;this._handle=t.addChannel({delay:t.getTime(),duration:e.duration})}return this.time=this.timeline.getTime(this._handle),this._onUpdate(),this.settings.onUpdate(this),this.timeline.isFinished(this._handle)&&this.end(),!0}_onUpdate(){}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n(16),i=n(159),o=n(527),s=n(464),a=n(980),c=n(982),l=n(1894),u=n(197),h=n(20);class f extends i.a{get[Symbol.toStringTag](){return"Framebuffer"}static isSupported(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{colorBufferFloat:n,colorBufferHalfFloat:r}=e;let i=!0;return n&&(i=Boolean(t.getExtension("EXT_color_buffer_float")||t.getExtension("WEBGL_color_buffer_float")||t.getExtension("OES_texture_float"))),r&&(i=i&&Boolean(t.getExtension("EXT_color_buffer_float")||t.getExtension("EXT_color_buffer_half_float"))),i}static getDefaultFramebuffer(t){return t.luma=t.luma||{},t.luma.defaultFramebuffer=t.luma.defaultFramebuffer||new f(t,{id:"default-framebuffer",handle:null,attachments:{}}),t.luma.defaultFramebuffer}get MAX_COLOR_ATTACHMENTS(){const t=Object(r.a)(this.gl);return t.getParameter(t.MAX_COLOR_ATTACHMENTS)}get MAX_DRAW_BUFFERS(){const t=Object(r.a)(this.gl);return t.getParameter(t.MAX_DRAW_BUFFERS)}constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(t,e),this.width=null,this.height=null,this.attachments={},this.readBuffer=36064,this.drawBuffers=[36064],this.ownResources=[],this.initialize(e),Object.seal(this)}get color(){return this.attachments[36064]||null}get texture(){return this.attachments[36064]||null}get depth(){return this.attachments[36096]||this.attachments[33306]||null}get stencil(){return this.attachments[36128]||this.attachments[33306]||null}initialize(t){let{width:e=1,height:n=1,attachments:r=null,color:i=!0,depth:o=!0,stencil:s=!1,check:a=!0,readBuffer:c,drawBuffers:l}=t;if(Object(h.a)(e>=0&&n>=0,"Width and height need to be integers"),this.width=e,this.height=n,r)for(const t in r){const i=r[t];(Array.isArray(i)?i[0]:i).resize({width:e,height:n})}else r=this._createDefaultAttachments(i,o,s,e,n);this.update({clearAttachments:!0,attachments:r,readBuffer:c,drawBuffers:l}),r&&a&&this.checkStatus()}delete(){for(const t of this.ownResources)t.delete();return super.delete(),this}update(t){let{attachments:e={},readBuffer:n,drawBuffers:r,clearAttachments:i=!1,resizeAttachments:o=!0}=t;this.attach(e,{clearAttachments:i,resizeAttachments:o});const{gl:s}=this,a=s.bindFramebuffer(36160,this.handle);return n&&this._setReadBuffer(n),r&&this._setDrawBuffers(r),s.bindFramebuffer(36160,a||null),this}resize(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{width:e,height:n}=t;if(null===this.handle)return Object(h.a)(void 0===e&&void 0===n),this.width=this.gl.drawingBufferWidth,this.height=this.gl.drawingBufferHeight,this;void 0===e&&(e=this.gl.drawingBufferWidth),void 0===n&&(n=this.gl.drawingBufferHeight),e!==this.width&&n!==this.height&&r.j.log(2,"Resizing framebuffer ".concat(this.id," to ").concat(e,"x").concat(n))();for(const t in this.attachments)this.attachments[t].resize({width:e,height:n});return this.width=e,this.height=n,this}attach(t){let{clearAttachments:e=!1,resizeAttachments:n=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r={};
21e&&Object.keys(this.attachments).forEach(t=>{r[t]=null}),Object.assign(r,t);const i=this.gl.bindFramebuffer(36160,this.handle);for(const t in r){Object(h.a)(void 0!==t,"Misspelled framebuffer binding point?");const e=Number(t),i=r[e];let o=i;if(o)if(o instanceof s.a)this._attachRenderbuffer({attachment:e,renderbuffer:o});else if(Array.isArray(i)){const[t,n=0,r=0]=i;o=t,this._attachTexture({attachment:e,texture:t,layer:n,level:r})}else this._attachTexture({attachment:e,texture:o,layer:0,level:0});else this._unattach(e);n&&o&&o.resize({width:this.width,height:this.height})}this.gl.bindFramebuffer(36160,i||null),Object.assign(this.attachments,t),Object.keys(this.attachments).filter(t=>!this.attachments[t]).forEach(t=>{delete this.attachments[t]})}checkStatus(){const{gl:t}=this,e=this.getStatus();if(36053!==e)throw new Error(function(t){return(f.STATUS||{})[t]||"Framebuffer error ".concat(t)}(e));return this}getStatus(){const{gl:t}=this,e=t.bindFramebuffer(36160,this.handle),n=t.checkFramebufferStatus(36160);return t.bindFramebuffer(36160,e||null),n}clear(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{color:e,depth:n,stencil:r,drawBuffers:i=[]}=t,o=this.gl.bindFramebuffer(36160,this.handle);return(e||n||r)&&Object(a.a)(this.gl,{color:e,depth:n,stencil:r}),i.forEach((t,e)=>{Object(a.b)(this.gl,{drawBuffer:e,value:t})}),this.gl.bindFramebuffer(36160,o||null),this}readPixels(){return r.j.error("Framebuffer.readPixels() is no logner supported, use readPixelsToArray(framebuffer)")(),null}readPixelsToBuffer(){return r.j.error("Framebuffer.readPixelsToBuffer()is no logner supported, use readPixelsToBuffer(framebuffer)")(),null}copyToDataUrl(){return r.j.error("Framebuffer.copyToDataUrl() is no logner supported, use copyToDataUrl(framebuffer)")(),null}copyToImage(){return r.j.error("Framebuffer.copyToImage() is no logner supported, use copyToImage(framebuffer)")(),null}copyToTexture(){return r.j.error("Framebuffer.copyToTexture({...}) is no logner supported, use copyToTexture(source, target, opts})")(),null}blit(){return r.j.error("Framebuffer.blit({...}) is no logner supported, use blit(source, target, opts)")(),null}invalidate(t){let{attachments:e=[],x:n=0,y:i=0,width:o,height:s}=t;const a=Object(r.a)(this.gl),c=a.bindFramebuffer(36008,this.handle);return 0===n&&0===i&&void 0===o&&void 0===s?a.invalidateFramebuffer(36008,e):a.invalidateFramebuffer(36008,e,n,i,o,s),a.bindFramebuffer(36008,c),this}getAttachmentParameter(t,e,n){let r=this._getAttachmentParameterFallback(e);return null===r&&(this.gl.bindFramebuffer(36160,this.handle),r=this.gl.getFramebufferAttachmentParameter(36160,t,e),this.gl.bindFramebuffer(36160,null)),n&&r>1e3&&(r=Object(u.a)(this.gl,r)),r}getAttachmentParameters(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:36064,e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.constructor.ATTACHMENT_PARAMETERS||[];const r={};for(const i of n){r[e?Object(u.a)(this.gl,i):i]=this.getAttachmentParameter(t,i,e)}return r}getParameters(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const e=Object.keys(this.attachments),n={};for(const r of e){const e=Number(r);n[t?Object(u.a)(this.gl,e):e]=this.getAttachmentParameters(e,t)}return n}show(){return"undefined"!=typeof window&&window.open(Object(c.a)(this),"luma-debug-texture"),this}log(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(t>r.j.level||"undefined"==typeof window)return this;e=e||"Framebuffer ".concat(this.id);const n=Object(c.a)(this,{targetMaxHeight:100});return r.j.image({logLevel:t,message:e,image:n},e)(),this}bind(){let{target:t=36160}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.gl.bindFramebuffer(t,this.handle),this}unbind(){let{target:t=36160}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.gl.bindFramebuffer(t,null),this}_createDefaultAttachments(t,e,n,r,i){let a=null;return t&&(a=a||{},a[36064]=new o.a(this.gl,{id:"".concat(this.id,"-color0"),pixels:null,format:6408,type:5121,width:r,height:i,mipmaps:!1,parameters:{10241:9729,10240:9729,10242:33071,10243:33071}}),this.ownResources.push(a[36064])),e&&n?(a=a||{},a[33306]=new s.a(this.gl,{id:"".concat(this.id,"-depth-stencil"),format:35056,width:r,height:111}),this.ownResources.push(a[33306])):e?(a=a||{},a[36096]=new s.a(this.gl,{id:"".concat(this.id,"-depth"),format:33189,width:r,height:i}),this.ownResources.push(a[36096])):n&&Object(h.a)(!1),a}_unattach(t){const e=this.attachments[t];e&&(e instanceof s.a?this.gl.framebufferRenderbuffer(36160,t,36161,null):this.gl.framebufferTexture2D(36160,t,3553,null,0),delete this.attachments[t])}_attachRenderbuffer(t){let{attachment:e=36064,renderbuffer:n}
21=t;const{gl:r}=this;r.framebufferRenderbuffer(36160,e,36161,n.handle),this.attachments[e]=n}_attachTexture(t){let{attachment:e=36064,texture:n,layer:i,level:o}=t;const{gl:s}=this;switch(s.bindTexture(n.target,n.handle),n.target){case 35866:case 32879:Object(r.a)(s).framebufferTextureLayer(36160,e,n.target,o,i);break;case 34067:const t=function(t){return t<34069?t+34069:t}(i);s.framebufferTexture2D(36160,e,t,n.handle,o);break;case 3553:s.framebufferTexture2D(36160,e,3553,n.handle,o);break;default:Object(h.a)(!1,"Illegal texture type")}s.bindTexture(n.target,null),this.attachments[e]=n}_setReadBuffer(t){const e=Object(r.f)(this.gl);e?e.readBuffer(t):Object(h.a)(36064===t||1029===t,"Multiple render targets not supported"),this.readBuffer=t}_setDrawBuffers(t){const{gl:e}=this,n=Object(r.a)(e);if(n)n.drawBuffers(t);else{const n=e.getExtension("WEBGL_draw_buffers");n?n.drawBuffersWEBGL(t):Object(h.a)(1===t.length&&(36064===t[0]||1029===t[0]),"Multiple render targets not supported")}this.drawBuffers=t}_getAttachmentParameterFallback(t){const e=Object(l.a)(this.gl);switch(t){case 36052:return e.WEBGL2?null:0;case 33298:case 33299:case 33300:case 33301:case 33302:case 33303:return e.WEBGL2?null:8;case 33297:return e.WEBGL2?null:5125;case 33296:return e.WEBGL2||e.EXT_sRGB?null:9729;default:return null}}_createHandle(){return this.gl.createFramebuffer()}_deleteHandle(){this.gl.deleteFramebuffer(this.handle)}_bindHandle(t){return this.gl.bindFramebuffer(36160,t)}}f.ATTACHMENT_PARAMETERS=[36049,36048,33296,33298,33299,33300,33301,33302,33303]},function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return o}));var r=n(33);function i(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t}function o(t,e,n){var r=e[0],i=e[1],o=e[2],s=e[3];return t[0]=n[0]*r+n[4]*i+n[8]*o+n[12]*s,t[1]=n[1]*r+n[5]*i+n[9]*o+n[13]*s,t[2]=n[2]*r+n[6]*i+n[10]*o+n[14]*s,t[3]=n[3]*r+n[7]*i+n[11]*o+n[15]*s,t}var s,a;s=new r.a(4),r.a!=Float32Array&&(s[0]=0,s[1]=0,s[2]=0,s[3]=0),a=s},,function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return i}));const r="vs",i="fs"},function(t,e,n){var r=n(182),i=n(296),o=n(302);t.exports=r?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(26).TypeError;t.exports=function(t){if(null==t)throw r("Can't call method on "+t);return t}},function(t,e,n){"use strict";n.d(e,"a",(function(){return H.scaleLinear})),n.d(e,"b",(function(){return r.select}));n(14),n(278),n(101);var r=n(5);function i(t,e,n,r,i,o,s,a,c,l){this.target=t,this.type=e,this.subject=n,this.identifier=r,this.active=i,this.x=o,this.y=s,this.dx=a,this.dy=c,this._=l}i.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};var o=n(35);n(125);["e","w"].map(s),["n","s"].map(s),["n","e","s","w","nw","ne","se","sw"].map(s);function s(t){return{type:t}}Math.cos,Math.sin,Math.PI,Math.max;Array.prototype.slice,n(88);n(149);var a=n(23);Array.prototype.slice;var c={},l={};function u(t){return new Function("d","return {"+t.map((function(t,e){return JSON.stringify(t)+": d["+e+"]"})).join(",")+"}")}function h(t){var e=Object.create(null),n=[];return t.forEach((function(t){for(var r in t)r in e||n.push(e[r]=r)})),n}function f(t,e){var n=t+"",r=n.length;return r<e?new Array(e-r+1).join(0)+n:n}function d(t){var e,n=t.getUTCHours(),r=t.getUTCMinutes(),i=t.getUTCSeconds(),o=t.getUTCMilliseconds();return isNaN(t)?"Invalid Date":((e=t.getUTCFullYear())<0?"-"+f(-e,6):e>9999?"+"+f(e,6):f(e,4))+"-"+f(t.getUTCMonth()+1,2)+"-"+f(t.getUTCDate(),2)+(o?"T"+f(n,2)+":"+f(r,2)+":"+f(i,2)+"."+f(o,3)+"Z":i?"T"+f(n,2)+":"+f(r,2)+":"+f(i,2)+"Z":r||n?"T"+f(n,2)+":"+f(r,2)+"Z":"")}var p=function(t){var e=new RegExp('["'+t+"\n\r]"),n=t.charCodeAt(0);function r(t,e){var r,i=[],o=t.length,s=0,a=0,u=o<=0,h=!1;function f(){if(u)return l;if(h)return h=!1,c;var e,r,i=s;if(34===t.charCodeAt(i)){for(;s++<o&&34!==t.charCodeAt(s)||34===t.charCodeAt(++s););return(e=s)>=o?u=!0:10===(r=t.charCodeAt(s++))?h=!0:13===r&&(h=!0,10===t.charCodeAt(s)&&++s),t.slice(i+1,e-1).replace(/""/g,'"')}for(;s<o;){if(10===(r=t.charCodeAt(e=s++)))h=!0;else if(13===r)h=!0,10===t.charCodeAt(s)&&++s;else if(r!==n)continue;return t.slice(i,e)}return u=!0,t.slice(i,o)}for(10===t.charCodeAt(o-1)&&--o,13===t.charCodeAt(o-1)&&--o;(r=f())!==l;){for(var d=[];r!==c&&r!==l;)d.push(r),r=f();e&&null==(d=e(d,a++))||i.push(d)}return i}function i(e,n){return e.map((function(e){return n.map((function(t){return s(e[t])})).join(t)}))}function o(e){return e.map(s).join(t)}function s(t){return null==t?"":t instanceof Date?d(t):e.test(t+="")?'"'+t.replace(/"/g,'""')+'"':t}return{parse:function(t,e){var n,i,o=r(t,(function(t,r){if(n)return n(t,r-1);i=t,n=e?function(t,e){var n=u(t);return function(r,i){return e(n(r),i,t)}}(t,e):u(t)}));return o.columns=i||[],o},parseRows:r,format:function(e,n){return null==n&&(n=h(e)),[n.map(s).join(t)].concat(i(e,n)).join("\n")},formatBody:function(t,e){return null==e&&(e=h(t)),i(t,e).join("\n")},formatRows:function(t){return t.map(o).join("\n")}}},g=p(","),m=g.parse,y=(g.parseRows,g.format,g.formatBody,g.formatRows,p("\t")),_=y.parse;y.parseRows,y.format,y.formatBody,y.formatRows;n(355);function v(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.text()}var b=function(t,e){return fetch(t,e).then(v)};function x(t){return function(e,n,r){return 2===arguments.length&&"function"==typeof n&&(r=n,n=void 0),b(e,n).then((function(e){return t(e,r)}))}}x(m),x(_);function w(t){return function(e,n){return b(e,n).then((function(e){return(new DOMParser).parseFromString(e,t)}))}}w("application/xml"),w("text/html"),w("image/svg+xml");function E(t,e,n,r){if(isNaN(e)||isNaN(n))return t;var i,o,s,a,c,l,u,h,f,d=t._root,p={data:r},g=t._x0,m=t._y0,y=t._x1,_=t._y1;if(!d)return t._root=p,t;for(;d.length;
vendor: 4,876 bytes, line 21
21)if((l=e>=(o=(g+y)/2))?g=o:y=o,(u=n>=(s=(m+_)/2))?m=s:_=s,i=d,!(d=d[h=u<<1|l]))return i[h]=p,t;if(a=+t._x.call(null,d.data),c=+t._y.call(null,d.data),e===a&&n===c)return p.next=d,i?i[h]=p:t._root=p,t;do{i=i?i[h]=new Array(4):t._root=new Array(4),(l=e>=(o=(g+y)/2))?g=o:y=o,(u=n>=(s=(m+_)/2))?m=s:_=s}while((h=u<<1|l)==(f=(c>=s)<<1|a>=o));return i[f]=d,i[h]=p,t}var S=function(t,e,n,r,i){this.node=t,this.x0=e,this.y0=n,this.x1=r,this.y1=i};function C(t){return t[0]}function A(t){return t[1]}function I(t,e,n){var r=new T(null==e?C:e,null==n?A:n,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function T(t,e,n,r,i,o){this._x=t,this._y=e,this._x0=n,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function M(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}var F=I.prototype=T.prototype;F.copy=function(){var t,e,n=new T(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return n;if(!r.length)return n._root=M(r),n;for(t=[{source:r,target:n._root=new Array(4)}];r=t.pop();)for(var i=0;i<4;++i)(e=r.source[i])&&(e.length?t.push({source:e,target:r.target[i]=new Array(4)}):r.target[i]=M(e));return n},F.add=function(t){var e=+this._x.call(null,t),n=+this._y.call(null,t);return E(this.cover(e,n),e,n,t)},F.addAll=function(t){var e,n,r,i,o=t.length,s=new Array(o),a=new Array(o),c=1/0,l=1/0,u=-1/0,h=-1/0;for(n=0;n<o;++n)isNaN(r=+this._x.call(null,e=t[n]))||isNaN(i=+this._y.call(null,e))||(s[n]=r,a[n]=i,r<c&&(c=r),r>u&&(u=r),i<l&&(l=i),i>h&&(h=i));if(c>u||l>h)return this;for(this.cover(c,l).cover(u,h),n=0;n<o;++n)E(this,s[n],a[n],t[n]);return this},F.cover=function(t,e){if(isNaN(t=+t)||isNaN(e=+e))return this;var n=this._x0,r=this._y0,i=this._x1,o=this._y1;if(isNaN(n))i=(n=Math.floor(t))+1,o=(r=Math.floor(e))+1;else{for(var s,a,c=i-n,l=this._root;n>t||t>=i||r>e||e>=o;)switch(a=(e<r)<<1|t<n,(s=new Array(4))[a]=l,l=s,c*=2,a){case 0:i=n+c,o=r+c;break;case 1:n=i-c,o=r+c;break;case 2:i=n+c,r=o-c;break;case 3:n=i-c,r=o-c}this._root&&this._root.length&&(this._root=l)}return this._x0=n,this._y0=r,this._x1=i,this._y1=o,this},F.data=function(){var t=[];return this.visit((function(e){if(!e.length)do{t.push(e.data)}while(e=e.next)})),t},F.extent=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},F.find=function(t,e,n){var r,i,o,s,a,c,l,u=this._x0,h=this._y0,f=this._x1,d=this._y1,p=[],g=this._root;for(g&&p.push(new S(g,u,h,f,d)),null==n?n=1/0:(u=t-n,h=e-n,f=t+n,d=e+n,n*=n);c=p.pop();)if(!(!(g=c.node)||(i=c.x0)>f||(o=c.y0)>d||(s=c.x1)<u||(a=c.y1)<h))if(g.length){var m=(i+s)/2,y=(o+a)/2;p.push(new S(g[3],m,y,s,a),new S(g[2],i,y,m,a),new S(g[1],m,o,s,y),new S(g[0],i,o,m,y)),(l=(e>=y)<<1|t>=m)&&(c=p[p.length-1],p[p.length-1]=p[p.length-1-l],p[p.length-1-l]=c)}else{var _=t-+this._x.call(null,g.data),v=e-+this._y.call(null,g.data),b=_*_+v*v;if(b<n){var x=Math.sqrt(n=b);u=t-x,h=e-x,f=t+x,d=e+x,r=g.data}}return r},F.remove=function(t){if(isNaN(o=+this._x.call(null,t))||isNaN(s=+this._y.call(null,t)))return this;var e,n,r,i,o,s,a,c,l,u,h,f,d=this._root,p=this._x0,g=this._y0,m=this._x1,y=this._y1;if(!d)return this;if(d.length)for(;;){if((l=o>=(a=(p+m)/2))?p=a:m=a,(u=s>=(c=(g+y)/2))?g=c:y=c,e=d,!(d=d[h=u<<1|l]))return this;if(!d.length)break;(e[h+1&3]||e[h+2&3]||e[h+3&3])&&(n=e,f=h)}for(;d.data!==t;)if(r=d,!(d=d.next))return this;return(i=d.next)&&delete d.next,r?(i?r.next=i:delete r.next,this):e?(i?e[h]=i:delete e[h],(d=e[0]||e[1]||e[2]||e[3])&&d===(e[3]||e[2]||e[1]||e[0])&&!d.length&&(n?n[f]=d:this._root=d),this):(this._root=i,this)},F.removeAll=function(t){for(var e=0,n=t.length;e<n;++e)this.remove(t[e]);return this},F.root=function(){return this._root},F.size=function(){var t=0;return this.visit((function(e){if(!e.length)do{++t}while(e=e.next)})),t},F.visit=function(t){var e,n,r,i,o,s,a=[],c=this._root;for(c&&a.push(new S(c,this._x0,this._y0,this._x1,this._y1));e=a.pop();)if(!t(c=e.node,r=e.x0,i=e.y0,o=e.x1,s=e.y1)&&c.length){var l=(r+o)/2,u=(i+s)/2;(n=c[3])&&a.push(new S(n,l,u,o,s)),(n=c[2])&&a.push(new S(n,r,u,l,s)),(n=c[1])&&a.push(new S(n,l,i,o,u)),(n=c[0])&&a.push(new S(n,r,i,l,u))}return this},F.visitAfter=function(t){var e,n=[],r=[];for(this._root&&n.push(new S(this._root,this._x0,this._y0,this._x1,this._y1));e=n.pop();){var i=e.node;if(i.length){var o,s=e.x0,a=e.y0,c=e.x1,l=e.y1,u=(s+c)/2,h=(a+l)/2;(o=i[0])&&n.push(new S(o,s,a,u,h)),(o=i[1])&&n.push(new S(o,u,a,c,h)),(o=i[2])&&n.push(new S(o,s,h,u,l)),(o=i[3])&&n.push(new S(o,u,h,c,l))}r.push(e)}for(;e=r.pop();)t(e.node,e.x0,e.y0,e.x1,e.y1);return this},F.x=function(t){return arguments.length?(this._x=t,this):this._x},F.y=function(t){return arguments.length?(this._y=t,this):this._y};n(115);Math.PI,Math.sqrt(5),n(66),n(477);function B(t){var e=0,n=t.children,r=n&&n.length;if(r)for(;--r>=0;)e+=n[r].value;else e=1;t.value=e}
21function L(t,e){var n,r,i,o,s,a=new P(t),c=+t.value&&(a.value=t.value),l=[a];for(null==e&&(e=O);n=l.pop();)if(c&&(n.value=+n.data.value),(i=e(n.data))&&(s=i.length))for(n.children=new Array(s),o=s-1;o>=0;--o)l.push(r=n.children[o]=new P(i[o])),r.parent=n,r.depth=n.depth+1;return a.eachBefore(k)}function O(t){return t.children}function U(t){t.data=t.data.data}function k(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function P(t){this.data=t,this.depth=this.height=0,this.parent=null}P.prototype=L.prototype={constructor:P,count:function(){return this.eachAfter(B)},each:function(t){var e,n,r,i,o=this,s=[o];do{for(e=s.reverse(),s=[];o=e.pop();)if(t(o),n=o.children)for(r=0,i=n.length;r<i;++r)s.push(n[r])}while(s.length);return this},eachAfter:function(t){for(var e,n,r,i=this,o=[i],s=[];i=o.pop();)if(s.push(i),e=i.children)for(n=0,r=e.length;n<r;++n)o.push(e[n]);for(;i=s.pop();)t(i);return this},eachBefore:function(t){for(var e,n,r=this,i=[r];r=i.pop();)if(t(r),e=r.children)for(n=e.length-1;n>=0;--n)i.push(e[n]);return this},sum:function(t){return this.eachAfter((function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n}))},sort:function(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;t=n.pop(),e=r.pop();for(;t===e;)i=t,t=n.pop(),e=r.pop();return i}(e,t),r=[e];e!==n;)e=e.parent,r.push(e);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){var t=[];return this.each((function(e){t.push(e)})),t},leaves:function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},links:function(){var t=this,e=[];return t.each((function(n){n!==t&&e.push({source:n.parent,target:n})})),e},copy:function(){return L(this).eachBefore(U)}};Array.prototype.slice;var D=function(t,e,n,r,i){for(var o,s=t.children,a=-1,c=s.length,l=t.value&&(r-e)/t.value;++a<c;)(o=s[a]).y0=n,o.y1=i,o.x0=e,o.x1=e+=o.value*l};function R(t,e){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}R.prototype=Object.create(P.prototype);var j=function(t,e,n,r,i){for(var o,s=t.children,a=-1,c=s.length,l=t.value&&(i-n)/t.value;++a<c;)(o=s[a]).x0=e,o.x1=r,o.y0=n,o.y1=n+=o.value*l},z=(1+Math.sqrt(5))/2;function Q(t,e,n,r,i,o){for(var s,a,c,l,u,h,f,d,p,g,m,y=[],_=e.children,v=0,b=0,x=_.length,w=e.value;v<x;){c=i-n,l=o-r;do{u=_[b++].value}while(!u&&b<x);for(h=f=u,m=u*u*(g=Math.max(l/c,c/l)/(w*t)),p=Math.max(f/m,m/h);b<x;++b){if(u+=a=_[b].value,a<h&&(h=a),a>f&&(f=a),m=u*u*g,(d=Math.max(f/m,m/h))>p){u-=a;break}p=d}y.push(s={value:u,dice:c<l,children:_.slice(v,b)}),s.dice?D(s,n,r,i,w?r+=l*u/w:o):j(s,n,r,w?n+=c*u/w:i,o),w-=u,v=b}return y}(function t(e){function n(t,n,r,i,o){Q(e,t,n,r,i,o)}return n.ratio=function(e){return t((e=+e)>1?e:1)},n})(z),function t(e){function n(t,n,r,i,o){if((s=t._squarify)&&s.ratio===e)for(var s,a,c,l,u,h=-1,f=s.length,d=t.value;++h<f;){for(c=(a=s[h]).children,l=a.value=0,u=c.length;l<u;++l)a.value+=c[l].value;a.dice?D(a,n,r,i,r+=(o-r)*a.value/d):j(a,n,r,n+=(i-n)*a.value/d,o),d-=a.value}else t._squarify=s=Q(e,t,n,r,i,o),s.ratio=e}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(z);var N=function(){return Math.random()},V=(function t(e){function n(t,n){return t=null==t?0:+t,n=null==n?1:+n,1===arguments.length?(n=t,t=0):n-=t,function(){return e()*n+t}}return n.source=t,n}(N),function t(e){function n(t,n){var r,i;return t=null==t?0:+t,n=null==n?1:+n,function(){var o;if(null!=r)o=r,r=null;else do{r=2*e()-1,o=2*e()-1,i=r*r+o*o}while(!i||i>1);return t+n*o*Math.sqrt(-2*Math.log(i)/i)}}return n.source=t,n}(N)),G=(function t(e){function n(){var t=V.source(e).apply(this,arguments);return function(){return Math.exp(t())}}return n.source=t,n}(N),function t(e){function n(t){return function(){for(var n=0,r=0;r<t;++r)n+=e();return n}}return n.source=t,n}(N)),H=(function t(e){function n(t){var n=G.source(e)(t);return function(){return n()/t}}return n.source=t,n}(N),function t(e){function n(t){return function(){return-Math.log(1-e()
21)/t}}return n.source=t,n}(N),n(92)),Z=function(t){for(var e=t.length/6|0,n=new Array(e),r=0;r<e;)n[r]="#"+t.slice(6*r,6*++r);return n},W=(Z("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),Z("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),Z("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),Z("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),Z("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),Z("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),Z("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),Z("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),Z("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),function(t){return Object(o.interpolateRgbBasis)(t[t.length-1])});W(new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(Z)),W(new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(Z)),W(new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(Z)),W(new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(Z)),W(new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(Z)),W(new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(Z)),W(new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(Z)),W(new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(Z)),W(new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(Z)),W(new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(Z)),W(new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(Z)),W(new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8
21cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(Z)),W(new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(Z)),W(new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(Z)),W(new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(Z)),W(new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(Z)),W(new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(Z)),W(new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(Z)),W(new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(Z)),W(new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(Z)),W(new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(Z)),W(new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(Z)),W(new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(Z)),W(new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(Z)),W(new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(Z)),W(new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(Z)),W(new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(Z)),Object(o.interpolateCubehelixLong)(Object(a.b)(300,.5,0),Object(a.b)(-240,.5,1)),Object(o.interpolateCubehelixLong)(Object(a.b)(-100,.75,.35),Object(a.b)(80,1.5,.8)),Object(o.interpolateCubehelixLong)(Object(a.b)(260,.75,.35),Object(a.b)(80,1.5,.8)),Object(a.b)(),Object(a.f)(),Math.PI,Math.PI;function X(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}}X(Z("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588
21c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),X(Z("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),X(Z("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),X(Z("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0a
21a58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),n(347),n(18),n(139);function Y(){this._=null}function q(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function K(t,e){var n=e,r=e.R,i=n.U;i?i.L===n?i.L=r:i.R=r:t._=r,r.U=i,n.U=r,n.R=r.L,n.R&&(n.R.U=n),r.L=n}function J(t,e){var n=e,r=e.L,i=n.U;i?i.L===n?i.L=r:i.R=r:t._=r,r.U=i,n.U=r,n.L=r.R,n.L&&(n.L.U=n),r.R=n}function $(t){for(;t.L;)t=t.L;return t}Y.prototype={constructor:Y,insert:function(t,e){var n,r,i;if(t){if(e.P=t,e.N=t.N,t.N&&(t.N.P=e),t.N=e,t.R){for(t=t.R;t.L;)t=t.L;t.L=e}else t.R=e;n=t}else this._?(t=$(this._),e.P=null,e.N=t,t.P=t.L=e,n=t):(e.P=e.N=null,this._=e,n=null);for(e.L=e.R=null,e.U=n,e.C=!0,t=e;n&&n.C;)n===(r=n.U).L?(i=r.R)&&i.C?(n.C=i.C=!1,r.C=!0,t=r):(t===n.R&&(K(this,n),n=(t=n).U),n.C=!1,r.C=!0,J(this,r)):(i=r.L)&&i.C?(n.C=i.C=!1,r.C=!0,t=r):(t===n.L&&(J(this,n),n=(t=n).U),n.C=!1,r.C=!0,K(this,r)),n=t.U;this._.C=!1},remove:function(t){t.N&&(t.N.P=t.P),t.P&&(t.P.N=t.N),t.N=t.P=null;var e,n,r,i=t.U,o=t.L,s=t.R;if(n=o?s?$(s):o:s,i?i.L===t?i.L=n:i.R=n:this._=n,o&&s?(r=n.C,n.C=t.C,n.L=o,o.U=n,n!==s?(i=n.U,n.U=t.U,t=n.R,i.L=t,n.R=s,s.U=n):(n.U=i,i=n,t=n.R)):(r=t.C,t=n),t&&(t.U=i),!r)if(t&&t.C)t.C=!1;else{do{if(t===this._)break;if(t===i.L){if((e=i.R).C&&(e.C=!1,i.C=!0,K(this,i),e=i.R),e.L&&e.L.C||e.R&&e.R.C){e.R&&e.R.C||(e.L.C=!1,e.C=!0,J(this,e),e=i.R),e.C=i.C,i.C=e.R.C=!1,K(this,i),t=this._;break}}else if((e=i.L).C&&(e.C=!1,i.C=!0,J(this,i),e=i.L),e.L&&e.L.C||e.R&&e.R.C){e.L&&e.L.C||(e.R.C=!1,e.C=!0,K(this,e),e=i.L),e.C=i.C,i.C=e.L.C=!1,J(this,i),t=this._;break}e.C=!0,t=i,i=i.U}while(!t.C);t&&(t.C=!1)}}};var tt=Y;function et(t,e,n,r){var i=[null,null],o=Ct.push(i)-1;return i.left=t,i.right=e,n&&rt(i,t,e,n),r&&rt(i,e,t,r),Et[t.index].halfedges.push(o),Et[e.index].halfedges.push(o),i}function nt(t,e,n){var r=[e,n];return r.left=t,r}function rt(t,e,n,r){t[0]||t[1]?t.left===n?t[1]=r:t[0]=r:(t[0]=r,t.left=e,t.right=n)}function it(t,e,n,r,i){var o,s=t[0],a=t[1],c=s[0],l=s[1],u=0,h=1,f=a[0]-c,d=a[1]-l;if(o=e-c,f||!(o>0)){if(o/=f,f<0){if(o<u)return;o<h&&(h=o)}else if(f>0){if(o>h)return;o>u&&(u=o)}if(o=r-c,f||!(o<0)){if(o/=f,f<0){if(o>h)return;o>u&&(u=o)}else if(f>0){if(o<u)return;o<h&&(h=o)}if(o=n-l,d||!(o>0)){if(o/=d,d<0){if(o<u)return;o<h&&(h=o)}else if(d>0){if(o>h)return;o>u&&(u=o)}if(o=i-l,d||!(o<0)){if(o/=d,d<0){if(o>h)return;o>u&&(u=o)}else if(d>0){if(o<u)return;o<h&&(h=o)}return!(u>0||h<1)||(u>0&&(t[0]=[c+u*f,l+u*d]),h<1&&(t[1]=[c+h*f,l+h*d]),!0)}}}}}function ot(t,e,n,r,i){var o=t[1];if(o)return!0;var s,a,c=t[0],l=t.left,u=t.right,h=l[0],f=l[1],d=u[0],p=u[1],g=(h+d)/2,m=(f+p)/2;if(p===f){if(g<e||g>=r)return;if(h>d){if(c){if(c[1]>=i)return}else c=[g,n];o=[g,i]}else{if(c){if(c[1]<n)return}else c=[g,i];o=[g,n]}}else if(a=m-(s=(h-d)/(p-f))*g,s<-1||s>1)if(h>d){if(c){if(c[1]>=i)return}else c=[(n-a)/s,n];o=[(i-a)/s,i]}else{if(c){if(c[1]<n)return}else c=[(i-a)/s,i];o=[(n-a)/s,n]}else if(f<p){if(c){if(c[0]>=r)return}else c=[e,s*e+a];o=[r,s*r+a]}else{if(c){if(c[0]<e)return}else c=[r,s*r+a];o=[e,s*e+a]}return t[0]=c,t[1]=o,!0}function st(t,e){var n=t.site,r=e.left,i=e.right;return n===i&&(i=r,r=n),i?Math.atan2(i[1]-r[1],i[0]-r[0]):(n===r?(r=e[1],i=e[0]):(r=e[0],i=e[1]),Math.atan2(r[0]-i[0],i[1]-r[1]))}function at(t,e){return e[+(e.left!==t.site)]}function ct(t,e){return e[+(e.left===t.site)]}var lt,ut=[];function ht(){q(this),this.x=this.y=this.arc=this.site=this.cy=null}function ft(t){var e=t.P,n=t.N;if(e&&n){var r=e.site,i=t.site,o=n.site;if(r!==o){var s=i[0],a=i[1],c=r[0]-s,l=r[1]-a,u=o[0]-s,h=o[1]-a,f=2*(c*h-l*u);if(!(f>=-It)){var d=c*c+l*l,p=u*u+h*h,g=(h*d-l*p)/f,m=(c*p-u*d)/f,y=ut.pop()||new ht;
vendor: 4,447 bytes, line 21
21y.arc=t,y.site=i,y.x=g+s,y.y=(y.cy=m+a)+Math.sqrt(g*g+m*m),t.circle=y;for(var _=null,v=St._;v;)if(y.y<v.y||y.y===v.y&&y.x<=v.x){if(!v.L){_=v.P;break}v=v.L}else{if(!v.R){_=v;break}v=v.R}St.insert(_,y),_||(lt=y)}}}}function dt(t){var e=t.circle;e&&(e.P||(lt=e.N),St.remove(e),ut.push(e),q(e),t.circle=null)}var pt=[];function gt(){q(this),this.edge=this.site=this.circle=null}function mt(t){var e=pt.pop()||new gt;return e.site=t,e}function yt(t){dt(t),wt.remove(t),pt.push(t),q(t)}function _t(t){var e=t.circle,n=e.x,r=e.cy,i=[n,r],o=t.P,s=t.N,a=[t];yt(t);for(var c=o;c.circle&&Math.abs(n-c.circle.x)<At&&Math.abs(r-c.circle.cy)<At;)o=c.P,a.unshift(c),yt(c),c=o;a.unshift(c),dt(c);for(var l=s;l.circle&&Math.abs(n-l.circle.x)<At&&Math.abs(r-l.circle.cy)<At;)s=l.N,a.push(l),yt(l),l=s;a.push(l),dt(l);var u,h=a.length;for(u=1;u<h;++u)l=a[u],c=a[u-1],rt(l.edge,c.site,l.site,i);c=a[0],(l=a[h-1]).edge=et(c.site,l.site,null,i),ft(c),ft(l)}function vt(t){for(var e,n,r,i,o=t[0],s=t[1],a=wt._;a;)if((r=bt(a,s)-o)>At)a=a.L;else{if(!((i=o-xt(a,s))>At)){r>-At?(e=a.P,n=a):i>-At?(e=a,n=a.N):e=n=a;break}if(!a.R){e=a;break}a=a.R}!function(t){Et[t.index]={site:t,halfedges:[]}}(t);var c=mt(t);if(wt.insert(e,c),e||n){if(e===n)return dt(e),n=mt(e.site),wt.insert(c,n),c.edge=n.edge=et(e.site,c.site),ft(e),void ft(n);if(n){dt(e),dt(n);var l=e.site,u=l[0],h=l[1],f=t[0]-u,d=t[1]-h,p=n.site,g=p[0]-u,m=p[1]-h,y=2*(f*m-d*g),_=f*f+d*d,v=g*g+m*m,b=[(m*_-d*v)/y+u,(f*v-g*_)/y+h];rt(n.edge,l,p,b),c.edge=et(l,t,null,b),n.edge=et(t,p,null,b),ft(e),ft(n)}else c.edge=et(e.site,c.site)}}function bt(t,e){var n=t.site,r=n[0],i=n[1],o=i-e;if(!o)return r;var s=t.P;if(!s)return-1/0;var a=(n=s.site)[0],c=n[1],l=c-e;if(!l)return a;var u=a-r,h=1/o-1/l,f=u/l;return h?(-f+Math.sqrt(f*f-2*h*(u*u/(-2*l)-c+l/2+i-o/2)))/h+r:(r+a)/2}function xt(t,e){var n=t.N;if(n)return bt(n,e);var r=t.site;return r[1]===e?r[0]:1/0}var wt,Et,St,Ct,At=1e-6,It=1e-12;function Tt(t,e){return e[1]-t[1]||e[0]-t[0]}function Mt(t,e){var n,r,i,o=t.sort(Tt).pop();for(Ct=[],Et=new Array(t.length),wt=new tt,St=new tt;;)if(i=lt,o&&(!i||o[1]<i.y||o[1]===i.y&&o[0]<i.x))o[0]===n&&o[1]===r||(vt(o),n=o[0],r=o[1]),o=t.pop();else{if(!i)break;_t(i.arc)}if(function(){for(var t,e,n,r,i=0,o=Et.length;i<o;++i)if((t=Et[i])&&(r=(e=t.halfedges).length)){var s=new Array(r),a=new Array(r);for(n=0;n<r;++n)s[n]=n,a[n]=st(t,Ct[e[n]]);for(s.sort((function(t,e){return a[e]-a[t]})),n=0;n<r;++n)a[n]=e[s[n]];for(n=0;n<r;++n)e[n]=a[n]}}(),e){var s=+e[0][0],a=+e[0][1],c=+e[1][0],l=+e[1][1];!function(t,e,n,r){for(var i,o=Ct.length;o--;)ot(i=Ct[o],t,e,n,r)&&it(i,t,e,n,r)&&(Math.abs(i[0][0]-i[1][0])>At||Math.abs(i[0][1]-i[1][1])>At)||delete Ct[o]}(s,a,c,l),function(t,e,n,r){var i,o,s,a,c,l,u,h,f,d,p,g,m=Et.length,y=!0;for(i=0;i<m;++i)if(o=Et[i]){for(s=o.site,a=(c=o.halfedges).length;a--;)Ct[c[a]]||c.splice(a,1);for(a=0,l=c.length;a<l;)p=(d=ct(o,Ct[c[a]]))[0],g=d[1],h=(u=at(o,Ct[c[++a%l]]))[0],f=u[1],(Math.abs(p-h)>At||Math.abs(g-f)>At)&&(c.splice(a,0,Ct.push(nt(s,d,Math.abs(p-t)<At&&r-g>At?[t,Math.abs(h-t)<At?f:r]:Math.abs(g-r)<At&&n-p>At?[Math.abs(f-r)<At?h:n,r]:Math.abs(p-n)<At&&g-e>At?[n,Math.abs(h-n)<At?f:e]:Math.abs(g-e)<At&&p-t>At?[Math.abs(f-e)<At?h:t,e]:null))-1),++l);l&&(y=!1)}if(y){var _,v,b,x=1/0;for(i=0,y=null;i<m;++i)(o=Et[i])&&(b=(_=(s=o.site)[0]-t)*_+(v=s[1]-e)*v)<x&&(x=b,y=o);if(y){var w=[t,e],E=[t,r],S=[n,r],C=[n,e];y.halfedges.push(Ct.push(nt(s=y.site,w,E))-1,Ct.push(nt(s,E,S))-1,Ct.push(nt(s,S,C))-1,Ct.push(nt(s,C,w))-1)}}for(i=0;i<m;++i)(o=Et[i])&&(o.halfedges.length||delete Et[i])}(s,a,c,l)}this.edges=Ct,this.cells=Et,wt=St=Ct=Et=null}Mt.prototype={constructor:Mt,polygons:function(){var t=this.edges;return this.cells.map((function(e){var n=e.halfedges.map((function(n){return at(e,t[n])}));return n.data=e.site.data,n}))},triangles:function(){var t=[],e=this.edges;return this.cells.forEach((function(n,r){if(o=(i=n.halfedges).length)for(var i,o,s,a,c,l,u=n.site,h=-1,f=e[i[o-1]],d=f.left===u?f.right:f.left;++h<o;)s=d,d=(f=e[i[h]]).left===u?f.right:f.left,s&&d&&r<s.index&&r<d.index&&(c=s,l=d,((a=u)[0]-l[0])*(c[1]-a[1])-(a[0]-c[0])*(l[1]-a[1])<0)&&t.push([u.data,s.data,d.data])})),t},links:function(){return this.edges.filter((function(t){return t.right})).map((function(t){return{source:t.left.data,target:t.right.data}}))},find:function(t,e,n){for(var r,i,o=this,s=o._found||0,a=o.cells.length;!(i=o.cells[s]);)if(++s>=a)return null;var c=t-i.site[0],l=e-i.site[1],u=c*c+l*l;
21do{i=o.cells[r=s],s=null,i.halfedges.forEach((function(n){var r=o.edges[n],a=r.left;if(a!==i.site&&a||(a=r.right)){var c=t-a[0],l=e-a[1],h=c*c+l*l;h<u&&(u=h,s=a.index)}}))}while(null!==s);return o._found=r,null==n||u<=n*n?i.site:null}};function Ft(t,e,n){this.k=t,this.x=e,this.y=n}Ft.prototype={constructor:Ft,scale:function(t){return 1===t?this:new Ft(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new Ft(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};new Ft(1,0,0);Ft.prototype},function(t,e,n){"use strict";var r=n(180),i=n(31);e.a=function(t,e,n){var o=e(t);return Object(i.a)(t)?o:Object(r.a)(o,n(t))}},function(t,e,n){"use strict";e.a=function(t,e){return function(n){return t(e(n))}}},function(t,e,n){"use strict";e.a=function(){return[]}},function(t,e,n){"use strict";var r=n(261),i=n(422),o=n(423),s=n(249),a=n(148);var c=function(){},l=n(199),u=a.a&&1/Object(l.a)(new a.a([,-0]))[1]==1/0?function(t){return new a.a(t)}:c;e.a=function(t,e,n){var a=-1,c=i.a,h=t.length,f=!0,d=[],p=d;if(n)f=!1,c=o.a;else if(h>=200){var g=e?null:u(t);if(g)return Object(l.a)(g);f=!1,c=s.a,p=new r.a}else p=e?[]:d;t:for(;++a<h;){var m=t[a],y=e?e(m):m;if(m=n||0!==m?m:0,f&&y==y){for(var _=p.length;_--;)if(p[_]===y)continue t;e&&p.push(y),d.push(m)}else c(p,y,n)||(p!==d&&p.push(y),d.push(m))}return d}},function(t,e,n){"use strict";var r=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r},i=n(205),o=n(31),s=n(226),a=n(170),c=n(313),l=Object.prototype.hasOwnProperty;e.a=function(t,e){var n=Object(o.a)(t),u=!n&&Object(i.a)(t),h=!n&&!u&&Object(s.a)(t),f=!n&&!u&&!h&&Object(c.a)(t),d=n||u||h||f,p=d?r(t.length,String):[],g=p.length;for(var m in t)!e&&!l.call(t,m)||d&&("length"==m||h&&("offset"==m||"parent"==m)||f&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||Object(a.a)(m,g))||p.push(m);return p}},function(t,e,n){"use strict";e.a=function(t){return t&&t.length?t[0]:void 0}},function(t,e,n){var r=n(56),i=r({}.toString),o=r("".slice);t.exports=function(t){return o(i(t),8,-1)}},function(t,e,n){var r=n(26),i=n(336),o=r.String;t.exports=function(t){if("Symbol"===i(t))throw TypeError("Cannot convert a Symbol value to a string");return o(t)}},function(t,e,n){var r=n(26),i=n(513),o=n(76),s=n(334),a=n(107)("toStringTag"),c=r.Object,l="Arguments"==s(function(){return arguments}());t.exports=i?s:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=c(t),a))?n:l?s(e):"Object"==(r=s(e))&&o(e.callee)?"Arguments":r}},function(t,e,n){"use strict";var r=n(44).a.Uint8Array;e.a=r},,function(t,e,n){t.exports={Icon:"Icon_22g2t",hug:"hug_2W0Ow",isClickable:"isClickable_1u5JA"}},,,,function(t,e,n){"use strict";n.d(e,"e",(function(){return i})),n.d(e,"b",(function(){return o})),n.d(e,"d",(function(){return s})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return c})),n.d(e,"g",(function(){return l})),n.d(e,"f",(function(){return u}));var r=n(487),i=function(t,e){var n=o(e,50,!0),r=n.canvas,i=n.ctx;i.save();var s=t;i.font="600 13px 'Open Sans', sans-serif";var a=i.measureText(s).width+20,u=e/2-a/2;return i.fillStyle="rgba(0, 0, 0, 0.80)",c(i,"rgba(0, 0, 0, 0.10)",10,0,5),l(i,u,10,a,30,6,!0,!1),i.fillStyle="#fff",i.fillText(s,u+10,29),i.restore(),r},o=function(t,e,n){void 0===n&&(n=!1);var r=document.createElement("canvas");r.width=t,r.height=e;var i=r.getContext("2d");if(!i)throw new Error("cannot get context");if(n&&window.devicePixelRatio>1){var o=window.devicePixelRatio||1;r.width=t*o,r.height=e*o,r.style.width=r.width+"px",r.style.height=r.height+"px",i.setTransform(o,0,0,o,0,0)}return{canvas:r,ctx:i}};function s(t,e,n){void 0===n&&(n=14);var r=o(t,52,!0),i=r.canvas,s=r.ctx;s.save();return s.font="600 15px 'Open Sans', sans-serif",s.fillStyle="#000",s.fillText(e,n,31.5),s.beginPath(),s.moveTo(0,52),s.lineTo(t,52),s.closePath(),s.strokeStyle="#d4e6f3",s.lineWidth=.5,s.stroke(),s.restore(
21),i}function a(t,e,n){void 0===n&&(n=14);for(var r="500 13px 'Open Sans', sans-serif",i=t-n,s=o(t,48,!0).ctx,a=t/2,c=n,h=c,f=10,d=1,p=[],g=0,m=e;g<m.length;g++){var y=m[g],_=y.color,v=y.title,b=u(v,a,r,s);s.font=r;var x=s.measureText(b).width;h+10+x>i&&(h=c,f+=26,d+=1);var w=f+13-3.5;p.push({type:"color",value:_,x:h,y:w}),h=h+7+10;var E=f+13+6.5-3;p.push({type:"label",value:b,x:h,y:E}),h+=x+15}var S=o(t,20+26*d-2,!0),C=S.canvas,A=S.ctx;A.font=r,A.beginPath(),A.moveTo(0,0),A.lineTo(t,0),A.closePath(),A.strokeStyle="#d4e6f3",A.lineWidth=.5,A.stroke();for(var I=0,T=p;I<T.length;I++){var M=T[I],F=M.value,B=M.x,L=M.y;"color"===M.type?(A.fillStyle=F,l(A,B,L,7,7,3.5,!0,!1)):(A.fillStyle="#1d242f",A.fillText(F,B,L))}return C}function c(t,e,n,r,i){t.shadowColor=e,t.shadowBlur=n,t.shadowOffsetX=r,t.shadowOffsetY=i}function l(t,e,n,r,i,o,s,a){if(void 0===a&&(a=!0),void 0===o&&(o=5),"number"==typeof o)o={tl:o,tr:o,br:o,bl:o};else{var c={tl:0,tr:0,br:0,bl:0};for(var l in c)o[l]=o[l]||c[l]}t.beginPath(),t.moveTo(e+o.tl,n),t.lineTo(e+r-o.tr,n),t.quadraticCurveTo(e+r,n,e+r,n+o.tr),t.lineTo(e+r,n+i-o.br),t.quadraticCurveTo(e+r,n+i,e+r-o.br,n+i),t.lineTo(e+o.bl,n+i),t.quadraticCurveTo(e,n+i,e,n+i-o.bl),t.lineTo(e,n+o.tl),t.quadraticCurveTo(e,n,e+o.tl,n),t.closePath(),s&&t.fill(),a&&t.stroke()}var u=function(t,e,n,i){i.font=n;var o=i.measureText(t).width;if(o<=e)return t;for(var s=Object(r.a)(t.split(""));o>e;)o=i.measureText(s.join("")+"...").width,s=Object(r.a)(s);return s.join("")+"..."}},,,,function(t,e,n){"use strict";n.r(e),n.d(e,"arc",(function(){return S})),n.d(e,"area",(function(){return F})),n.d(e,"line",(function(){return M})),n.d(e,"pie",(function(){return O})),n.d(e,"areaRadial",(function(){return j})),n.d(e,"radialArea",(function(){return j})),n.d(e,"lineRadial",(function(){return R})),n.d(e,"radialLine",(function(){return R})),n.d(e,"pointRadial",(function(){return z})),n.d(e,"linkHorizontal",(function(){return X})),n.d(e,"linkVertical",(function(){return Y})),n.d(e,"linkRadial",(function(){return q})),n.d(e,"symbol",(function(){return pt})),n.d(e,"symbols",(function(){return dt})),n.d(e,"symbolCircle",(function(){return K})),n.d(e,"symbolCross",(function(){return J})),n.d(e,"symbolDiamond",(function(){return et})),n.d(e,"symbolSquare",(function(){return st})),n.d(e,"symbolStar",(function(){return ot})),n.d(e,"symbolTriangle",(function(){return ct})),n.d(e,"symbolWye",(function(){return ft})),n.d(e,"curveBasisClosed",(function(){return bt})),n.d(e,"curveBasisOpen",(function(){return wt})),n.d(e,"curveBasis",(function(){return _t})),n.d(e,"curveBundle",(function(){return St})),n.d(e,"curveCardinalClosed",(function(){return Mt})),n.d(e,"curveCardinalOpen",(function(){return Bt})),n.d(e,"curveCardinal",(function(){return It})),n.d(e,"curveCatmullRomClosed",(function(){return Pt})),n.d(e,"curveCatmullRomOpen",(function(){return Rt})),n.d(e,"curveCatmullRom",(function(){return Ut})),n.d(e,"curveLinearClosed",(function(){return zt})),n.d(e,"curveLinear",(function(){return A})),n.d(e,"curveMonotoneX",(function(){return Xt})),n.d(e,"curveMonotoneY",(function(){return Yt})),n.d(e,"curveNatural",(function(){return Jt})),n.d(e,"curveStep",(function(){return te})),n.d(e,"curveStepAfter",(function(){return ne})),n.d(e,"curveStepBefore",(function(){return ee})),n.d(e,"stack",(function(){return se})),n.d(e,"stackOffsetExpand",(function(){return ae})),n.d(e,"stackOffsetDiverging",(function(){return ce})),n.d(e,"stackOffsetNone",(function(){return re})),n.d(e,"stackOffsetSilhouette",(function(){return le})),n.d(e,"stackOffsetWiggle",(function(){return ue})),n.d(e,"stackOrderAppearance",(function(){return he})),n.d(e,"stackOrderAscending",(function(){return de})),n.d(e,"stackOrderDescending",(function(){return ge})),n.d(e,"stackOrderInsideOut",(function(){return me})),n.d(e,"stackOrderNone",(function(){return ie})),n.d(e,"stackOrderReverse",(function(){return ye}));var r=n(88),i=function(t){return function(){return t}},o=Math.abs,s=Math.atan2,a=Math.cos,c=Math.max,l=Math.min,u=Math.sin,h=Math.sqrt,f=Math.PI,d=f/2,p=2*f;function g(t){return t>
vendor: 4,729 bytes, line 21
211?0:t<-1?f:Math.acos(t)}function m(t){return t>=1?d:t<=-1?-d:Math.asin(t)}function y(t){return t.innerRadius}function _(t){return t.outerRadius}function v(t){return t.startAngle}function b(t){return t.endAngle}function x(t){return t&&t.padAngle}function w(t,e,n,r,i,o,s,a){var c=n-t,l=r-e,u=s-i,h=a-o,f=h*c-u*l;if(!(f*f<1e-12))return[t+(f=(u*(e-o)-h*(t-i))/f)*c,e+f*l]}function E(t,e,n,r,i,o,s){var a=t-n,l=e-r,u=(s?o:-o)/h(a*a+l*l),f=u*l,d=-u*a,p=t+f,g=e+d,m=n+f,y=r+d,_=(p+m)/2,v=(g+y)/2,b=m-p,x=y-g,w=b*b+x*x,E=i-o,S=p*y-m*g,C=(x<0?-1:1)*h(c(0,E*E*w-S*S)),A=(S*x-b*C)/w,I=(-S*b-x*C)/w,T=(S*x+b*C)/w,M=(-S*b+x*C)/w,F=A-_,B=I-v,L=T-_,O=M-v;return F*F+B*B>L*L+O*O&&(A=T,I=M),{cx:A,cy:I,x01:-f,y01:-d,x11:A*(i/E-1),y11:I*(i/E-1)}}var S=function(){var t=y,e=_,n=i(0),c=null,S=v,C=b,A=x,I=null;function T(){var i,y,_=+t.apply(this,arguments),v=+e.apply(this,arguments),b=S.apply(this,arguments)-d,x=C.apply(this,arguments)-d,T=o(x-b),M=x>b;if(I||(I=i=Object(r.a)()),v<_&&(y=v,v=_,_=y),v>1e-12)if(T>p-1e-12)I.moveTo(v*a(b),v*u(b)),I.arc(0,0,v,b,x,!M),_>1e-12&&(I.moveTo(_*a(x),_*u(x)),I.arc(0,0,_,x,b,M));else{var F,B,L=b,O=x,U=b,k=x,P=T,D=T,R=A.apply(this,arguments)/2,j=R>1e-12&&(c?+c.apply(this,arguments):h(_*_+v*v)),z=l(o(v-_)/2,+n.apply(this,arguments)),Q=z,N=z;if(j>1e-12){var V=m(j/_*u(R)),G=m(j/v*u(R));(P-=2*V)>1e-12?(U+=V*=M?1:-1,k-=V):(P=0,U=k=(b+x)/2),(D-=2*G)>1e-12?(L+=G*=M?1:-1,O-=G):(D=0,L=O=(b+x)/2)}var H=v*a(L),Z=v*u(L),W=_*a(k),X=_*u(k);if(z>1e-12){var Y,q=v*a(O),K=v*u(O),J=_*a(U),$=_*u(U);if(T<f&&(Y=w(H,Z,J,$,q,K,W,X))){var tt=H-Y[0],et=Z-Y[1],nt=q-Y[0],rt=K-Y[1],it=1/u(g((tt*nt+et*rt)/(h(tt*tt+et*et)*h(nt*nt+rt*rt)))/2),ot=h(Y[0]*Y[0]+Y[1]*Y[1]);Q=l(z,(_-ot)/(it-1)),N=l(z,(v-ot)/(it+1))}}D>1e-12?N>1e-12?(F=E(J,$,H,Z,v,N,M),B=E(q,K,W,X,v,N,M),I.moveTo(F.cx+F.x01,F.cy+F.y01),N<z?I.arc(F.cx,F.cy,N,s(F.y01,F.x01),s(B.y01,B.x01),!M):(I.arc(F.cx,F.cy,N,s(F.y01,F.x01),s(F.y11,F.x11),!M),I.arc(0,0,v,s(F.cy+F.y11,F.cx+F.x11),s(B.cy+B.y11,B.cx+B.x11),!M),I.arc(B.cx,B.cy,N,s(B.y11,B.x11),s(B.y01,B.x01),!M))):(I.moveTo(H,Z),I.arc(0,0,v,L,O,!M)):I.moveTo(H,Z),_>1e-12&&P>1e-12?Q>1e-12?(F=E(W,X,q,K,_,-Q,M),B=E(H,Z,J,$,_,-Q,M),I.lineTo(F.cx+F.x01,F.cy+F.y01),Q<z?I.arc(F.cx,F.cy,Q,s(F.y01,F.x01),s(B.y01,B.x01),!M):(I.arc(F.cx,F.cy,Q,s(F.y01,F.x01),s(F.y11,F.x11),!M),I.arc(0,0,_,s(F.cy+F.y11,F.cx+F.x11),s(B.cy+B.y11,B.cx+B.x11),M),I.arc(B.cx,B.cy,Q,s(B.y11,B.x11),s(B.y01,B.x01),!M))):I.arc(0,0,_,k,U,M):I.lineTo(W,X)}else I.moveTo(0,0);if(I.closePath(),i)return I=null,i+""||null}return T.centroid=function(){var n=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,r=(+S.apply(this,arguments)+ +C.apply(this,arguments))/2-f/2;return[a(r)*n,u(r)*n]},T.innerRadius=function(e){return arguments.length?(t="function"==typeof e?e:i(+e),T):t},T.outerRadius=function(t){return arguments.length?(e="function"==typeof t?t:i(+t),T):e},T.cornerRadius=function(t){return arguments.length?(n="function"==typeof t?t:i(+t),T):n},T.padRadius=function(t){return arguments.length?(c=null==t?null:"function"==typeof t?t:i(+t),T):c},T.startAngle=function(t){return arguments.length?(S="function"==typeof t?t:i(+t),T):S},T.endAngle=function(t){return arguments.length?(C="function"==typeof t?t:i(+t),T):C},T.padAngle=function(t){return arguments.length?(A="function"==typeof t?t:i(+t),T):A},T.context=function(t){return arguments.length?(I=null==t?null:t,T):I},T};function C(t){this._context=t}C.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};var A=function(t){return new C(t)};function I(t){return t[0]}function T(t){return t[1]}var M=function(){var t=I,e=T,n=i(!0),o=null,s=A,a=null;function c(i){var c,l,u,h=i.length,f=!1;for(null==o&&(a=s(u=Object(r.a)())),c=0;c<=h;++c)!(c<h&&n(l=i[c],c,i))===f&&((f=!f)?a.lineStart():a.lineEnd()),f&&a.point(+t(l,c,i),+e(l,c,i));if(u)return a=null,u+""||null}return c.x=function(e){return arguments.length?(t="function"==typeof e?e:i(+e),c):t},c.y=function(t){return arguments.length?(e="function"==typeof t?t:i(+t),c):e},c.defined=function(t){return arguments.length?(n="function"==typeof t?t:i(!!t),c):n},c.curve=function(t){return arguments.length?(s=t,null!=o&&(a=s(o)),c):s},c.context=function(t){return arguments.length?(null==t?o=a=null:a=s(o=t),c):o},c},F=function(){var t=I,e=null,n=i(0),o=T,s=i(!0),a=null,c=A,l=null;function u(i){var u,h,f,d,p,g=i.length,m=!1,y=new Array(g),_=new Array(g);
21for(null==a&&(l=c(p=Object(r.a)())),u=0;u<=g;++u){if(!(u<g&&s(d=i[u],u,i))===m)if(m=!m)h=u,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),f=u-1;f>=h;--f)l.point(y[f],_[f]);l.lineEnd(),l.areaEnd()}m&&(y[u]=+t(d,u,i),_[u]=+n(d,u,i),l.point(e?+e(d,u,i):y[u],o?+o(d,u,i):_[u]))}if(p)return l=null,p+""||null}function h(){return M().defined(s).curve(c).context(a)}return u.x=function(n){return arguments.length?(t="function"==typeof n?n:i(+n),e=null,u):t},u.x0=function(e){return arguments.length?(t="function"==typeof e?e:i(+e),u):t},u.x1=function(t){return arguments.length?(e=null==t?null:"function"==typeof t?t:i(+t),u):e},u.y=function(t){return arguments.length?(n="function"==typeof t?t:i(+t),o=null,u):n},u.y0=function(t){return arguments.length?(n="function"==typeof t?t:i(+t),u):n},u.y1=function(t){return arguments.length?(o=null==t?null:"function"==typeof t?t:i(+t),u):o},u.lineX0=u.lineY0=function(){return h().x(t).y(n)},u.lineY1=function(){return h().x(t).y(o)},u.lineX1=function(){return h().x(e).y(n)},u.defined=function(t){return arguments.length?(s="function"==typeof t?t:i(!!t),u):s},u.curve=function(t){return arguments.length?(c=t,null!=a&&(l=c(a)),u):c},u.context=function(t){return arguments.length?(null==t?a=l=null:l=c(a=t),u):a},u},B=function(t,e){return e<t?-1:e>t?1:e>=t?0:NaN},L=function(t){return t},O=function(){var t=L,e=B,n=null,r=i(0),o=i(p),s=i(0);function a(i){var a,c,l,u,h,f=i.length,d=0,g=new Array(f),m=new Array(f),y=+r.apply(this,arguments),_=Math.min(p,Math.max(-p,o.apply(this,arguments)-y)),v=Math.min(Math.abs(_)/f,s.apply(this,arguments)),b=v*(_<0?-1:1);for(a=0;a<f;++a)(h=m[g[a]=a]=+t(i[a],a,i))>0&&(d+=h);for(null!=e?g.sort((function(t,n){return e(m[t],m[n])})):null!=n&&g.sort((function(t,e){return n(i[t],i[e])})),a=0,l=d?(_-f*b)/d:0;a<f;++a,y=u)c=g[a],u=y+((h=m[c])>0?h*l:0)+b,m[c]={data:i[c],index:a,value:h,startAngle:y,endAngle:u,padAngle:v};return m}return a.value=function(e){return arguments.length?(t="function"==typeof e?e:i(+e),a):t},a.sortValues=function(t){return arguments.length?(e=t,n=null,a):e},a.sort=function(t){return arguments.length?(n=t,e=null,a):n},a.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:i(+t),a):r},a.endAngle=function(t){return arguments.length?(o="function"==typeof t?t:i(+t),a):o},a.padAngle=function(t){return arguments.length?(s="function"==typeof t?t:i(+t),a):s},a},U=P(A);function k(t){this._curve=t}function P(t){function e(e){return new k(t(e))}return e._curve=t,e}function D(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?e(P(t)):e()._curve},t}k.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};var R=function(){return D(M().curve(U))},j=function(){var t=F().curve(U),e=t.curve,n=t.lineX0,r=t.lineX1,i=t.lineY0,o=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return D(n())},delete t.lineX0,t.lineEndAngle=function(){return D(r())},delete t.lineX1,t.lineInnerRadius=function(){return D(i())},delete t.lineY0,t.lineOuterRadius=function(){return D(o())},delete t.lineY1,t.curve=function(t){return arguments.length?e(P(t)):e()._curve},t},z=function(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*Math.sin(t)]},Q=Array.prototype.slice;function N(t){return t.source}function V(t){return t.target}function G(t){var e=N,n=V,o=I,s=T,a=null;function c(){var i,c=Q.call(arguments),l=e.apply(this,c),u=n.apply(this,c);if(a||(a=i=Object(r.a)()),t(a,+o.apply(this,(c[0]=l,c)),+s.apply(this,c),+o.apply(this,(c[0]=u,c)),+s.apply(this,c)),i)return a=null,i+""||null}return c.source=function(t){return arguments.length?(e=t,c):e},c.target=function(t){return arguments.length?(n=t,c):n},c.x=function(t){return arguments.length?(o="function"==typeof t?t:i(+t),c):o},c.y=function(t){return arguments.length?(s="function"==typeof t?t:i(+t),c):s},c.context=function(t){return arguments.length?(a=null==t?null:t,c):a},c}function H(t,e,n,r,i){t.moveTo(e,n),t.bezierCurveTo(e=(e+r)/2,n,e,i,r,i)}function Z(t,e,n,r,i){t.moveTo(e,n),t.bezierCurveTo(e,n=(n+i)/2,r,n,r,i)}function W(t,e,n,r,i){var o=z(e,n),s=z(e,n=(n+i)/2),a=z(r,n),c=z(r,i);
vendor: 9,599 bytes, line 21
21t.moveTo(o[0],o[1]),t.bezierCurveTo(s[0],s[1],a[0],a[1],c[0],c[1])}function X(){return G(H)}function Y(){return G(Z)}function q(){var t=G(W);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}var K={draw:function(t,e){var n=Math.sqrt(e/f);t.moveTo(n,0),t.arc(0,0,n,0,p)}},J={draw:function(t,e){var n=Math.sqrt(e/5)/2;t.moveTo(-3*n,-n),t.lineTo(-n,-n),t.lineTo(-n,-3*n),t.lineTo(n,-3*n),t.lineTo(n,-n),t.lineTo(3*n,-n),t.lineTo(3*n,n),t.lineTo(n,n),t.lineTo(n,3*n),t.lineTo(-n,3*n),t.lineTo(-n,n),t.lineTo(-3*n,n),t.closePath()}},$=Math.sqrt(1/3),tt=2*$,et={draw:function(t,e){var n=Math.sqrt(e/tt),r=n*$;t.moveTo(0,-n),t.lineTo(r,0),t.lineTo(0,n),t.lineTo(-r,0),t.closePath()}},nt=Math.sin(f/10)/Math.sin(7*f/10),rt=Math.sin(p/10)*nt,it=-Math.cos(p/10)*nt,ot={draw:function(t,e){var n=Math.sqrt(.8908130915292852*e),r=rt*n,i=it*n;t.moveTo(0,-n),t.lineTo(r,i);for(var o=1;o<5;++o){var s=p*o/5,a=Math.cos(s),c=Math.sin(s);t.lineTo(c*n,-a*n),t.lineTo(a*r-c*i,c*r+a*i)}t.closePath()}},st={draw:function(t,e){var n=Math.sqrt(e),r=-n/2;t.rect(r,r,n,n)}},at=Math.sqrt(3),ct={draw:function(t,e){var n=-Math.sqrt(e/(3*at));t.moveTo(0,2*n),t.lineTo(-at*n,-n),t.lineTo(at*n,-n),t.closePath()}},lt=Math.sqrt(3)/2,ut=1/Math.sqrt(12),ht=3*(ut/2+1),ft={draw:function(t,e){var n=Math.sqrt(e/ht),r=n/2,i=n*ut,o=r,s=n*ut+n,a=-o,c=s;t.moveTo(r,i),t.lineTo(o,s),t.lineTo(a,c),t.lineTo(-.5*r-lt*i,lt*r+-.5*i),t.lineTo(-.5*o-lt*s,lt*o+-.5*s),t.lineTo(-.5*a-lt*c,lt*a+-.5*c),t.lineTo(-.5*r+lt*i,-.5*i-lt*r),t.lineTo(-.5*o+lt*s,-.5*s-lt*o),t.lineTo(-.5*a+lt*c,-.5*c-lt*a),t.closePath()}},dt=[K,J,et,st,ot,ct,ft],pt=function(){var t=i(K),e=i(64),n=null;function o(){var i;if(n||(n=i=Object(r.a)()),t.apply(this,arguments).draw(n,+e.apply(this,arguments)),i)return n=null,i+""||null}return o.type=function(e){return arguments.length?(t="function"==typeof e?e:i(e),o):t},o.size=function(t){return arguments.length?(e="function"==typeof t?t:i(+t),o):e},o.context=function(t){return arguments.length?(n=null==t?null:t,o):n},o},gt=function(){};function mt(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function yt(t){this._context=t}yt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:mt(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:mt(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var _t=function(t){return new yt(t)};function vt(t){this._context=t}vt.prototype={areaStart:gt,areaEnd:gt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:mt(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var bt=function(t){return new vt(t)};function xt(t){this._context=t}xt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:mt(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var wt=function(t){return new xt(t)};function Et(t,e){this._basis=new yt(t),this._beta=e}Et.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var r,i=t[0],o=e[0],s=t[n]-i,a=e[n]-o,c=-1;++c<=n;)r=c/n,this._basis.point(this._beta*t[c]+(1-this._beta)*(i+r*s),this._beta*e[c]+(1-this._beta)*(o+r*a));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var St=function t(e){function n(t){return 1===e?new yt(t):new Et(t,e)}return n.beta=function(e){return t(+e)},n}(.85);function Ct(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function At(t,e){this._context=t,this._k=(1-e)/6}At.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Ct(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:Ct(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var It=function t(e){function n(t){return new At(t,e)}return n.tension=function(e){return t(+e)},n}(0);function Tt(t,e){this._context=t,this._k=(1-e)/6}Tt.prototype={areaStart:gt,areaEnd:gt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Ct(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Mt=function t(e){function n(t){return new Tt(t,e)}return n.tension=function(e){return t(+e)},n}(0);function Ft(t,e){this._context=t,this._k=(1-e)/6}Ft.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Ct(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Bt=function t(e){function n(t){return new Ft(t,e)}return n.tension=function(e){return t(+e)},n}(0);function Lt(t,e,n){var r=t._x1,i=t._y1,o=t._x2,s=t._y2;if(t._l01_a>1e-12){var a=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*a-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,i=(i*a-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>1e-12){var l=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,u=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*l+t._x1*t._l23_2a-e*t._l12_2a)/u,s=(s*l+t._y1*t._l23_2a-n*t._l12_2a)/u}t._context.bezierCurveTo(r,i,o,s,t._x2,t._y2)}function Ot(t,e){this._context=t,this._alpha=e}Ot.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:Lt(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Ut=function t(e){function n(t){return e?new Ot(t,e):new At(t,0)}
21return n.alpha=function(e){return t(+e)},n}(.5);function kt(t,e){this._context=t,this._alpha=e}kt.prototype={areaStart:gt,areaEnd:gt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Lt(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Pt=function t(e){function n(t){return e?new kt(t,e):new Tt(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function Dt(t,e){this._context=t,this._alpha=e}Dt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Lt(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Rt=function t(e){function n(t){return e?new Dt(t,e):new Ft(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function jt(t){this._context=t}jt.prototype={areaStart:gt,areaEnd:gt,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};var zt=function(t){return new jt(t)};function Qt(t){return t<0?-1:1}function Nt(t,e,n){var r=t._x1-t._x0,i=e-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),s=(n-t._y1)/(i||r<0&&-0),a=(o*i+s*r)/(r+i);return(Qt(o)+Qt(s))*Math.min(Math.abs(o),Math.abs(s),.5*Math.abs(a))||0}function Vt(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function Gt(t,e,n){var r=t._x0,i=t._y0,o=t._x1,s=t._y1,a=(o-r)/3;t._context.bezierCurveTo(r+a,i+a*e,o-a,s-a*n,o,s)}function Ht(t){this._context=t}function Zt(t){this._context=new Wt(t)}function Wt(t){this._context=t}function Xt(t){return new Ht(t)}function Yt(t){return new Zt(t)}function qt(t){this._context=t}function Kt(t){var e,n,r=t.length-1,i=new Array(r),o=new Array(r),s=new Array(r);for(i[0]=0,o[0]=2,s[0]=t[0]+2*t[1],e=1;e<r-1;++e)i[e]=1,o[e]=4,s[e]=4*t[e]+2*t[e+1];for(i[r-1]=2,o[r-1]=7,s[r-1]=8*t[r-1]+t[r],e=1;e<r;++e)n=i[e]/o[e-1],o[e]-=n,s[e]-=n*s[e-1];for(i[r-1]=s[r-1]/o[r-1],e=r-2;e>=0;--e)i[e]=(s[e]-i[e+1])/o[e];for(o[r-1]=(t[r]+i[r-1])/2,e=0;e<r-1;++e)o[e]=2*t[e+1]-i[e+1];return[i,o]}Ht.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Gt(this,this._t0,Vt(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,Gt(this,Vt(this,n=Nt(this,t,e)),n);break;default:Gt(this,this._t0,n=Nt(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(Zt.prototype=Object.create(Ht.prototype)).point=function(t,e){Ht.prototype.point.call(this,e,t)},Wt.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,i,o){this._context.bezierCurveTo(e,t,r,n,o,i)}},qt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===n)this._context.lineTo(t[1],e[1]);else for(var r=Kt(t),i=Kt(e),o=0,s=1;s<n;++o,++s)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],t[s],e[s]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var Jt=function(t){return new qt(t)};function $t(t,e){this._context=t,this._t=e}$t.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}};var te=function(t){return new $t(t,.5)};function ee(t){return new $t(t,0)}function ne(t){return new $t(t,1)}var re=function(t,e){if((i=t.length)>1)for(var n,r,i,o=1,s=t[e[0]],a=s.length;o<i;++o)for(r=s,s=t[e[o]],n=0;n<a;++n)s[n][1]+=s[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]},ie=function(t){for(var e=t.length,n=new Array(e);--e>=0;)n[e]=e;return n};function oe(t,e){return t[e]}var se=function(){var t=i([]),e=ie,n=re,r=oe;function o(i){var o,s,a=t.apply(this,arguments),c=i.length,l=a.length,u=new Array(l);for(o=0;o<l;++o){for(var h,f=a[o],d=u[o]=new Array(c),p=0;p<c;++p)d[p]=h=[0,+r(i[p],f,p,i)],h.data=i[p];d.key=f}for(o=0,s=e(u);o<l;++o)u[s[o]].index=o;return n(u,s),u}return o.keys=function(e){return arguments.length?(t="function"==typeof e?e:i(Q.call(e)),o):t},o.value=function(t){return arguments.length?(r="function"==typeof t?t:i(+t),o):r},o.order=function(t){return arguments.length?(e=null==t?ie:"function"==typeof t?t:i(Q.call(t)),o):e},o.offset=function(t){return arguments.length?(n=null==t?re:t,o):n},o},ae=function(t,e){if((r=t.length)>0){for(var n,r,i,o=0,s=t[0].length;o<s;++o){for(i=n=0;n<r;++n)i+=t[n][o][1]||0;if(i)for(n=0;n<r;++n)t[n][o][1]/=i}re(t,e)}},ce=function(t,e){if((a=t.length)>0)for(var n,r,i,o,s,a,c=0,l=t[e[0]].length;c<l;++c)for(o=s=0,n=0;n<a;++n)(i=(r=t[e[n]][c])[1]-r[0])>=0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=s,r[0]=s+=i):r[0]=o},le=function(t,e){if((n=t.length)>0){for(var n,r=0,i=t[e[0]],o=i.length;r<o;++r){for(var s=0,a=0;s<n;++s)a+=t[s][r][1]||0;i[r][1]+=i[r][0]=-a/2}re(t,e)}},ue=function(t,e){if((i=t.length)>0&&(r=(n=t[e[0]]).length)>0){for(var n,r,i,o=0,s=1;s<r;++s){for(var a=0,c=0,l=0;a<i;++a){for(var u=t[e[a]],h=u[s][1]||0,f=(h-(u[s-1][1]||0))/2,d=0;d<a;++d){var p=t[e[d]];f+=(p[s][1]||0)-(p[s-1][1]||0)}c+=h,l+=f*h}n[s-1][1]+=n[s-1][0]=o,c&&(o-=l/c)}n[s-1][1]+=n[s-1][0]=o,re(t,e)}},he=function(t){var e=t.map(fe);return ie(t).sort((function(t,n){return e[t]-e[n]}))};function fe(t){for(var e,n=-1,r=0,i=t.length,o=-1/0;++n<i;)(e=+t[n][1])>o&&(o=e,r=n);return r}var de=function(t){var e=t.map(pe);return ie(t).sort((function(t,n){return e[t]-e[n]}))};function pe(t){for(var e,n=0,r=-1,i=t.length;++r<i;)(e=+t[r][1])&&(n+=e);return n}var ge=function(t){return de(t).reverse()},me=function(t){var e,n,r=t.length,i=t.map(pe),o=he(t),s=0,a=0,c=[],l=[];for(e=0;e<r;++e)n=o[e],s<a?(s+=i[n],c.push(n)):(a+=i[n],l.push(n));return l.reverse().concat(c)},ye=function(t){return ie(t).reverse()}},,,function(t,e,n){"use strict";var r;n.d(e,"a",(function(){return r})),function(t){t.Fatal="fatal",t.Error="error",t.Warning="warning",t.Log="log",t.Info="info",t.Debug="debug",t.Critical="critical"}(r||(r={})),function(t){t.fromString=function(e){switch(e){case"debug":return t.Debug;case"info":return t.Info;case"warn":case"warning":return t.Warning;case"error":return t.Error;case"fatal":return t.Fatal;case"critical":return t.Critical;case"log":default:return t.Log}}}(r||(r={}))},function(t,e,n){"use strict";var r=n(36);t.exports=function(t,e){var n=[][t];return!n||!r((function(){n.call(null,e||function(){throw 1},1)}))}},function(t,e,n){var r=n(73),i=n(234),o=n(82)("species");t.exports=function(t,e){var n,s=r(t).constructor;return void 0===s||null==(n=r(s)[o])?e:i(n)}},function(t,e,n){"use strict";var r=n(12),i=n(57),o=n(81),s=n(950),a=n(77),c=n(690),l=n(407),u=n(452),h=n(184),f=n(87),d=n(1178),p=n(1179),g=n(284),m=n(138),y=n(589),_=n(72),v=n(404),b=n(516),x=n(453).f,w=n(1180),E=n(172).forEach,S=n(517),C=n(110),A=n(211),I=n(233),T=I.get,M=I.set,F=C.f,B=A.f,L=Math.round,O=i.RangeError,U=c.ArrayBuffer,k=c.DataView,P=a.NATIVE_ARRAY_BUFFER_VIEWS,D=a.TYPED_ARRAY_TAG,R=a.TypedArray,j=a.TypedArrayPrototype,z=a.aTypedArrayConstructor,Q=a.isTypedArray,N=function(t,e){for(var n=0,r=e.length,i=new(z(t))(r);r>n;)i[n]=e[n++];return i},V=function(t,e){F(t,e,{get:function(){return T(this)[e]}})},G=function(t){var e;return t instanceof U||"ArrayBuffer"==(e=y(t))||"SharedArrayBuffer"==e},H=function(t,e){return Q(t)&&"symbol"!=typeof e&&e in t&&String(+e)==String(e)},Z=function(t,e){return H(t,e=g(e,!0))?u(2,t[e]):B(t,e)},W=function(t,e,n){return!(H(t,e=g(e,!0))&&_(n)&&m(n,"value"))||m(n,"get")||m(n,"set")||n.configurable||m(n,"writable")&&!n.writable||m(n,"enumerable")&&!n.enumerable?F(t,e,n):(t[e]=n.value,t)};o?(P||(A.f=Z,C.f=W,V(j,"buffer"),V(j,"byteOffset"),V(j,"byteLength"),V(j,"length")),r({target:"Object",stat:!0,forced:!P},{getOwnPropertyDescriptor:Z,defineProperty:W}),t.exports=function(t,e,n,o){var a=t+(o?"Clamped":"")+"Array",c="get"+t,u="set"+t,g=i[a],m=g,y=m&&m.prototype,C={},A=function(t,n){F(t,n,{get:function(){return function(t,n){var r=T(t);return r.view[c](n*e+r.byteOffset,!0)}(this,n)},set:function(t){return function(t,n,r){var i=T(t);o&&(r=(r=L(r))<0?0:r>255?255:255&r),i.view[u](n*e+i.byteOffset,r,!0)}(this,n,t)},enumerable:!0})};P?s&&(m=n((function(t,n,r,i){return l(t,m,a),_(n)?G(n)?void 0!==i?new g(n,p(r,e),i):void 0!==r?new g(n,p(r,e)):new g(n):Q(n)?N(m,n):w.call(m,n):new g(d(n))})),b&&b(m,R),E(x(g),(function(t){t in m||h(m,t,g[t])})),m.prototype=y):(m=n((function(t,n,r,i){l(t,m,a);var o,s,c,u=0,h=0;if(_(n)){if(!G(n))return Q(n)?N(m,n):w.call(m,n);o=n,h=p(r,e);var g=n.byteLength;if(void 0===i){if(g%e)throw O("Wrong length");if((s=g-h)<0)throw O("Wrong length")}else if((s=f(i)*e)+h>g)throw O("Wrong length");c=s/e}else c=d(n),o=new U(s=c*e);for(M(t,{buffer:o,byteOffset:h,byteLength:s,length:c,view:new k(o)});u<c;)A(t,u++)}
21)),b&&b(m,R),y=m.prototype=v(j)),y.constructor!==m&&h(y,"constructor",m),D&&h(y,D,a),C[a]=m,r({global:!0,forced:m!=g,sham:!P},C),"BYTES_PER_ELEMENT"in m||h(m,"BYTES_PER_ELEMENT",e),"BYTES_PER_ELEMENT"in y||h(y,"BYTES_PER_ELEMENT",e),S(a)}):t.exports=function(){}},,function(t,e,n){"use strict";function r(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}n.d(e,"a",(function(){return r}));(function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n})(3),function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(3),function t(e){function n(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,n.exponent=t,n}(3),Math.PI;(function t(e){function n(t){return t*t*((e+1)*t-e)}return e=+e,n.overshoot=t,n})(1.70158),function t(e){function n(t){return--t*t*((e+1)*t+e)+1}return e=+e,n.overshoot=t,n}(1.70158),function t(e){function n(t){return((t*=2)<1?t*t*((e+1)*t-e):(t-=2)*t*((e+1)*t+e)+2)/2}return e=+e,n.overshoot=t,n}(1.70158);var i=2*Math.PI;(function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=i);function o(t){return e*Math.pow(2,10*--t)*Math.sin((r-t)/n)}return o.amplitude=function(e){return t(e,n*i)},o.period=function(n){return t(e,n)},o})(1,.3),function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=i);function o(t){return 1-e*Math.pow(2,-10*(t=+t))*Math.sin((t+r)/n)}return o.amplitude=function(e){return t(e,n*i)},o.period=function(n){return t(e,n)},o}(1,.3),function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=i);function o(t){return((t=2*t-1)<0?e*Math.pow(2,10*t)*Math.sin((r-t)/n):2-e*Math.pow(2,-10*t)*Math.sin((r+t)/n))/2}return o.amplitude=function(e){return t(e,n*i)},o.period=function(n){return t(e,n)},o}(1,.3)},function(t,e,n){t.exports=n(962)},,function(t,e,n){"use strict";var r=n(328),i=n(301),o=n(104);e.a=function(t){return Object(r.a)(t,o.a,i.a)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return o}));var r=n(697);function i(t){var e;if(!t)return!1;Array.isArray(t)&&(t=t[0]);return Array.isArray(null===(e=t)||void 0===e?void 0:e.extensions)}function o(t){var e,n;let o;return Object(r.a)(t,"null loader"),Object(r.a)(i(t),"invalid loader"),Array.isArray(t)&&(o=t[1],t=t[0],t={...t,options:{...t.options,...o}}),(null!==(e=t)&&void 0!==e&&e.parseTextSync||null!==(n=t)&&void 0!==n&&n.parseText)&&(t.text=!0),t.text||(t.binary=!0),t}},function(t,e,n){"use strict";n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return a}));var r=n(20);const i={5126:[5126,1,"float"],35664:[5126,2,"vec2"],35665:[5126,3,"vec3"],35666:[5126,4,"vec4"],5124:[5124,1,"int"],35667:[5124,2,"ivec2"],35668:[5124,3,"ivec3"],35669:[5124,4,"ivec4"],5125:[5125,1,"uint"],36294:[5125,2,"uvec2"],36295:[5125,3,"uvec3"],36296:[5125,4,"uvec4"],35670:[5126,1,"bool"],35671:[5126,2,"bvec2"],35672:[5126,3,"bvec3"],35673:[5126,4,"bvec4"],35674:[5126,8,"mat2"],35685:[5126,8,"mat2x3"],35686:[5126,8,"mat2x4"],35675:[5126,12,"mat3"],35687:[5126,12,"mat3x2"],35688:[5126,12,"mat3x4"],35676:[5126,16,"mat4"],35689:[5126,16,"mat4x2"],35690:[5126,16,"mat4x3"]};function o(t){switch(t){case 0:return 0;case 1:case 3:case 2:return 1;case 4:case 5:case 6:return 4;default:return Object(r.a)(!1),0}}function s(t){const e=i[t];if(!e)return null;const[n,r]=e;return{type:n,components:r}}function a(t,e){switch(t){case 5120:case 5121:case 5122:case 5123:t=5126}for(const n in i){const[r,o,s]=i[n];if(r===t&&o===e)return{glType:n,name:s}}return null}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"c",(function(){return s})),n.d(e,"b",(function(){return a}));const r=[],i=[];function o(t,e=0,n=1/0){let o=r;const s={index:-1,data:t,target:[]};return t?"function"==typeof t[Symbol.iterator]?o=t:t.length>0&&(i.length=t.length,o=i):o=r,(e>0||Number.isFinite(n))&&(o=(Array.isArray(o)?o:Array.from(o)).slice(e,n),s.index=e-1),{iterable:o,objectInfo:s}}function s(t){return t&&t[Symbol.asyncIterator]}function a(t,{size:e,stride:n,offset:r,startIndices:i,nested:o}){const s=t.BYTES_PER_ELEMENT,a=n?n/s:e,c=r?r/s:0,l=Math.floor((t.length-c)/a);return(n,{index:r,target:s})=>{if(!i){const n=r*a+c;for(let r=0;r<e;r++)s[r]=t[n+r];return s}const u=i[r],h=i[r+1]||l;let f;if(o){f=new Array(h-u);for(let n=u;n<h;n++){const r=n*a+c;s=new Array(e);for(let n=0;n<e;n++)s[n]=t[r+n];f[n-u]=s}}else if(a===e)f=t.subarray(u*e+c,h*e+c);else{f=new t.constructor((h-u)*e);let n=0;for(let r=u;r<h;r++){const i=r*a+c;for(let r=0;r<e;r++)f[n++]=t[i+r]}}return f}}},function(t,e,n){t.exports=n(1869)},function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return o}
21)),n.d(e,"c",(function(){return s})),n.d(e,"d",(function(){return a})),n.d(e,"e",(function(){return c}));var r=n(16);const i={6407:{dataFormat:6407,types:[5121,33635]},6408:{dataFormat:6408,types:[5121,32819,32820]},6406:{dataFormat:6406,types:[5121]},6409:{dataFormat:6409,types:[5121]},6410:{dataFormat:6410,types:[5121]},33326:{dataFormat:6403,types:[5126],gl2:!0},33328:{dataFormat:33319,types:[5126],gl2:!0},34837:{dataFormat:6407,types:[5126],gl2:!0},34836:{dataFormat:6408,types:[5126],gl2:!0}},o={6403:1,36244:1,33319:2,33320:2,6407:3,36248:3,6408:4,36249:4,6402:1,34041:1,6406:1,6409:1,6410:2},s={5126:4,5125:4,5124:4,5123:2,5122:2,5131:2,5120:1,5121:1};function a(t,e){const n=i[e];if(!n)return!1;if(void 0===n.gl1&&void 0===n.gl2)return!0;const o=Object(r.i)(t)&&n.gl2||n.gl1;return"string"==typeof o?t.getExtension(o):o}function c(t,e){const n=i[e];switch(n&&n.types[0]){case 5126:return t.getExtension("OES_texture_float_linear");case 5131:return t.getExtension("OES_texture_half_float_linear");default:return!0}}},,,function(t,e,n){"use strict";n.r(e);var r=n(273);e.default=function(t){return(null==t?0:t.length)?Object(r.a)(t,1):[]}},function(t,e,n){"use strict";e.a=function(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}},,,,function(t,e,n){var r=n(714),i=n(480);t.exports=function(t){var e=r(t,"string");return i(e)?e:e+""}},function(t,e,n){var r,i,o=n(26),s=n(288),a=o.process,c=o.Deno,l=a&&a.versions||c&&c.version,u=l&&l.v8;u&&(i=(r=u.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&s&&(!(r=s.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=s.match(/Chrome\/(\d+)/))&&(i=+r[1]),t.exports=i},function(t,e,n){"use strict";var r=n(367),i=n(59),o=n(292),s=Math.max;e.a=function(t,e,n){var a=null==t?0:t.length;if(!a)return-1;var c=null==n?0:Object(o.a)(n);return c<0&&(c=s(a+c,0)),Object(r.a)(t,Object(i.a)(e,3),c)}},,,,,function(t,e){t.exports=!0},,function(t,e,n){"use strict";var r=n(291),i=n(156),o=Object.prototype.hasOwnProperty;e.a=function(t,e,n){var s=t[e];o.call(t,e)&&Object(i.a)(s,n)&&(void 0!==n||e in t)||Object(r.a)(t,e,n)}},,,,,,function(t,e,n){"use strict";function r(){return(r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function o(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}function s(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||o(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}n.d(e,"d",(function(){return Kt})),n.d(e,"c",(function(){return ie})),n.d(e,"b",(function(){return fe})),n.d(e,"a",(function(){return dt}));var a=n(25),c=n(0),l=n(1);function u(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return n}}(t,e)||o(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var h=n(123),f=n(1197),d=n(708),p=n(1187),g=n.n(p),m=n(185),y=n(186);function _(t){return Array.isArray(t)||ArrayBuffer.isView(t)}function v(t,e){if(t===e)return!0;if(_(t)&&_(e)){if(t.length!==e.length)return!1;for(var n=0;n<t.length;++n)if(!v(t[n],e[n]))return!1;return!0}return Math.abs(t-e)<=1e-7}function b(t,e,n){return Math.max(e,Math.min(n,t))}function x(t,e,n){return _(t)?t.map((function(t,r){return x(t,e[r],n)})):n*e+(1-n)*t}function w(t,e){if(!t)throw new Error(e||"react-map-gl: assertion failed.")}function E(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function S(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
21e%2?E(Object(n),!0).forEach((function(e){Object(a.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var C={minZoom:0,maxZoom:24,minPitch:0,maxPitch:85},A=0,I=0,T=1.5,M=function(){function t(e){var n=e.width,r=e.height,i=e.latitude,o=e.longitude,s=e.zoom,a=e.bearing,c=void 0===a?I:a,l=e.pitch,u=void 0===l?A:l,h=e.altitude,f=void 0===h?T:h,d=e.maxZoom,p=void 0===d?C.maxZoom:d,g=e.minZoom,y=void 0===g?C.minZoom:g,_=e.maxPitch,v=void 0===_?C.maxPitch:_,b=e.minPitch,x=void 0===b?C.minPitch:b,E=e.transitionDuration,S=e.transitionEasing,M=e.transitionInterpolator,F=e.transitionInterruption,B=e.startPanLngLat,L=e.startZoomLngLat,O=e.startRotatePos,U=e.startBearing,k=e.startPitch,P=e.startZoom;Object(m.a)(this,t),w(Number.isFinite(n),"`width` must be supplied"),w(Number.isFinite(r),"`height` must be supplied"),w(Number.isFinite(o),"`longitude` must be supplied"),w(Number.isFinite(i),"`latitude` must be supplied"),w(Number.isFinite(s),"`zoom` must be supplied"),this._viewportProps=this._applyConstraints({width:n,height:r,latitude:i,longitude:o,zoom:s,bearing:c,pitch:u,altitude:f,maxZoom:p,minZoom:y,maxPitch:v,minPitch:x,transitionDuration:E,transitionEasing:S,transitionInterpolator:M,transitionInterruption:F}),this._state={startPanLngLat:B,startZoomLngLat:L,startRotatePos:O,startBearing:U,startPitch:k,startZoom:P}}return Object(y.a)(t,[{key:"getViewportProps",value:function(){return this._viewportProps}},{key:"getState",value:function(){return this._state}},{key:"panStart",value:function(t){var e=t.pos;return this._getUpdatedMapState({startPanLngLat:this._unproject(e)})}},{key:"pan",value:function(t){var e=t.pos,n=t.startPos,r=this._state.startPanLngLat||this._unproject(n);if(!r)return this;var i=u(this._calculateNewLngLat({startPanLngLat:r,pos:e}),2),o=i[0],s=i[1];return this._getUpdatedMapState({longitude:o,latitude:s})}},{key:"panEnd",value:function(){return this._getUpdatedMapState({startPanLngLat:null})}},{key:"rotateStart",value:function(t){var e=t.pos;return this._getUpdatedMapState({startRotatePos:e,startBearing:this._viewportProps.bearing,startPitch:this._viewportProps.pitch})}},{key:"rotate",value:function(t){var e,n=t.pos,r=t.deltaAngleX,i=void 0===r?0:r,o=t.deltaAngleY,s=void 0===o?0:o,a=this._state,c=a.startRotatePos,l=a.startBearing,u=a.startPitch;return Number.isFinite(l)&&Number.isFinite(u)?(e=n?this._calculateNewPitchAndBearing(S(S({},this._getRotationParams(n,c)),{},{startBearing:l,startPitch:u})):{bearing:l+i,pitch:u+s},this._getUpdatedMapState(e)):this}},{key:"rotateEnd",value:function(){return this._getUpdatedMapState({startBearing:null,startPitch:null})}},{key:"zoomStart",value:function(t){var e=t.pos;return this._getUpdatedMapState({startZoomLngLat:this._unproject(e),startZoom:this._viewportProps.zoom})}},{key:"zoom",value:function(t){var e=t.pos,n=t.startPos,r=t.scale;w(r>0,"`scale` must be a positive number");var i=this._state,o=i.startZoom,s=i.startZoomLngLat;Number.isFinite(o)||(o=this._viewportProps.zoom,s=this._unproject(n)||this._unproject(e)),w(s,"`startZoomLngLat` prop is required for zoom behavior to calculate where to position the map.");var a=this._calculateNewZoom({scale:r,startZoom:o||0}),c=u(new h.default(Object.assign({},this._viewportProps,{zoom:a})).getMapCenterByLngLatPosition({lngLat:s,pos:e}),2),l=c[0],f=c[1];return this._getUpdatedMapState({zoom:a,longitude:l,latitude:f})}},{key:"zoomEnd",value:function(){return this._getUpdatedMapState({startZoomLngLat:null,startZoom:null})}},{key:"_getUpdatedMapState",value:function(e){return new t(Object.assign({},this._viewportProps,this._state,e))}},{key:"_applyConstraints",value:function(t){var e=t.maxZoom,n=t.minZoom,r=t.zoom;t.zoom=b(r,n,e);var i=t.maxPitch,o=t.minPitch,s=t.pitch;return t.pitch=b(s,o,i),Object.assign(t,Object(h.normalizeViewportProps)(t)),t}},{key:"_unproject",value:function(t){var e=new h.default(this._viewportProps);return t&&e.unproject(t)}},{key:"_calculateNewLngLat",value:function(t){var e=t.startPanLngLat,n=t.pos;return new h.default(this._viewportProps).getMapCenterByLngLatPosition({lngLat:e,pos:n})}},{key:"_calculateNewZoom",value:function(t){var e=t.scale,n=t.startZoom,r=this._viewportProps,i=r.maxZoom,o=r.minZoom;return b(n+Math.log2(e),o,i)}},{key:"_calculateNewPitchAndBearing",value:function(t){var e=t.deltaScaleX,n=t.deltaScaleY,r=t.startBearing,i=t.startPitch;n=b(n,-1,1);var o=this._viewportProps,s=o.minPitch,a=o.maxPitch,c=i;return n>0?c=i+n*(a-i):n<0&&(c=i-n*(s-i)),{pitch:c,bearing:r+180*e}}},{key:"_getRotationParams",value:function(t,e){var n=t[0]-e[0],r=t[1]-e[1],i=t[1],o=e[1],s=this._viewportProps,a=s.width,c=s.height,l=n/a,u=0;return r>0?Math.abs(c-o)>5&&(u=r/(o-c)*1.2):r<0&&o>5&&(u=1-i/o),{deltaScaleX:l,deltaScaleY:u=Math.min(1,Math.max(-1,u))}}}]),t}();function F(t){return t[0].toLowerCase()+t.slice(1)}function B(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function L(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
21e%2?B(Object(n),!0).forEach((function(e){Object(a.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):B(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var O=Object(c.createContext)({viewport:null,map:null,container:null,onViewportChange:null,onViewStateChange:null,eventManager:null}),U=O.Provider;O.Provider=function(t){var e=t.value,n=t.children,r=u(Object(c.useState)(null),2),i=r[0],o=r[1],s=Object(c.useContext)(O);return e=L(L({setMap:o},s),{},{map:s&&s.map||i},e),c.createElement(U,{value:e},n)};var k=O,P="undefined"!=typeof window?c.useLayoutEffect:c.useEffect;function D(t,e){var n=e.longitude,r=e.latitude;return t&&t.queryTerrainElevation&&t.queryTerrainElevation([n,r])||0}function R(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function j(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?R(Object(n),!0).forEach((function(e){Object(a.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):R(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var z="A valid API access token is required to use Mapbox data";function Q(t){var e=t.map,n=t.props,r=t.width,i=t.height,o=j(j(j({},n),n.viewState),{},{width:r,height:i});return o.position=[0,0,D(e,o)],new h.default(o)}var N={position:"absolute",width:"100%",height:"100%",overflow:"hidden"},V=Object.assign({},d.a.propTypes,{width:l.oneOfType([l.number,l.string]),height:l.oneOfType([l.number,l.string]),onResize:l.func,disableTokenWarning:l.bool,visible:l.bool,className:l.string,style:l.object,visibilityConstraints:l.object}),G=Object.assign({},d.a.defaultProps,{disableTokenWarning:!1,visible:!0,onResize:function(){},className:"",style:null,visibilityConstraints:C});function H(){return c.createElement("div",{key:"warning",id:"no-token-warning",style:{position:"absolute",left:0,top:0}},c.createElement("h3",{key:"header"},z),c.createElement("div",{key:"text"},"For information on setting up your basemap, read"),c.createElement("a",{key:"link",href:"https://visgl.github.io/react-map-gl/docs/get-started/mapbox-tokens"},"Note on Map Tokens"))}var Z=Object(c.forwardRef)((function(t,e){var n=u(Object(c.useState)(!0),2),r=n[0],i=n[1],o=u(Object(c.useState)({width:0,height:0}),2),s=o[0],a=o[1],l=Object(c.useRef)(null),h=Object(c.useRef)(null),p=Object(c.useRef)(null),m=Object(c.useRef)(null),y=Object(c.useContext)(k);P((function(){if(Z.supported()){var e=new d.a(j(j(j({},t),s),{},{mapboxgl:g.a,container:h.current,onError:function(e){401===(e.error&&e.error.status||e.status)&&r&&(console.error(z),i(!1)),t.onError(e)}}));l.current=e,y&&y.setMap&&y.setMap(e.getMap());var n=new f.a((function(e){if(e[0].contentRect){var n=e[0].contentRect,r=n.width,i=n.height;a({width:r,height:i}),t.onResize({width:r,height:i})}}));return n.observe(p.current),function(){e.finalize(),l.current=null,n.disconnect()}}}),[]),P((function(){l.current&&l.current.setProps(j(j({},t),s))}));var _=l.current&&l.current.getMap();Object(c.useImperativeHandle)(e,(function(){return function(t){return{getMap:function(){return t.current&&t.current.getMap()},queryRenderedFeatures:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.current&&t.current.getMap();return r&&r.queryRenderedFeatures(e,n)}}}(l)}),[]);var v=Object(c.useCallback)((function(t){var e=t.target;e===m.current&&e.scrollTo(0,0)}),[]),b=_&&c.createElement(U,{value:j(j({},y),{},{viewport:y.viewport||Q(j({map:_,props:t},s)),map:_,container:y.container||p.current})},c.createElement("div",{key:"map-overlays",className:"overlays",ref:m,style:N,onScroll:v},t.children)),x=t.className,w=t.width,E=t.height,S=t.style,A=t.visibilityConstraints,I=Object.assign({position:"relative"},S,{width:w,height:E}),T=t.visible&&function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C;for(var n in e){var r=n.slice(0,3),i=F(n.slice(3));if("min"===r&&t[i]<e[n])return!1;if("max"===r&&t[i]>e[n])return!1}return!0}(t.viewState||t,A),M=Object.assign({},N,{visibility:T?"inherit":"hidden"});return c.createElement("div",{key:"map-container",ref:p,style:I},c.createElement("div",{key:"map-mapbox",ref:h,style:M,className:x}),b,!r&&!t.disableTokenWarning&&c.createElement(H,null))}));Z.supported=function(){return g.a&&g.a.supported()},Z.propTypes=V,Z.defaultProps=G;var W=Z;function X(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return Y(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Y(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t}
21,f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function Y(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var q=function(){function t(){Object(m.a)(this,t),Object(a.a)(this,"propNames",[])}return Object(y.a)(t,[{key:"arePropsEqual",value:function(t,e){var n,r=X(this.propNames||[]);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(!v(t[i],e[i]))return!1}}catch(t){r.e(t)}finally{r.f()}return!0}},{key:"initializeProps",value:function(t,e){return{start:t,end:e}}},{key:"interpolateProps",value:function(t,e,n){w(!1,"interpolateProps is not implemented")}},{key:"getDuration",value:function(t,e){return e.transitionDuration}}]),t}();function K(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function J(t,e){return(J=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function $(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&J(t,e)}function tt(t){return(tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function et(t,e){return!e||"object"!==tt(e)&&"function"!=typeof e?K(t):e}function nt(t){return(nt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var rt={longitude:1,bearing:1};function it(t){return Number.isFinite(t)||Array.isArray(t)}function ot(t,e,n){return function(t){return t in rt}(t)&&Math.abs(n-e)>180&&(n=n<0?n+360:n-360),n}function st(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return at(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return at(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function at(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function ct(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=nt(t);if(e){var i=nt(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return et(this,n)}}var lt=["longitude","latitude","zoom","bearing","pitch"],ut=["latitude","longitude","zoom","width","height"],ht=["bearing","pitch"],ft={speed:1.2,curve:1.414},dt=function(t){$(n,t);var e=ct(n);function n(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(m.a)(this,n),t=e.call(this),Object(a.a)(K(t),"propNames",lt),t.props=Object.assign({},ft,r),t}return Object(y.a)(n,[{key:"initializeProps",value:function(t,e){var n,r={},i={},o=st(ut);try{for(o.s();!(n=o.n()).done;){var s=n.value,a=t[s],c=e[s];w(it(a)&&it(c),"".concat(s," must be supplied for transition")),r[s]=a,i[s]=ot(s,a,c)}}catch(t){o.e(t)}finally{o.f()}var l,u=st(ht);try{for(u.s();!(l=u.n()).done;){var h=l.value,f=t[h]||0,d=e[h]||0;r[h]=f,i[h]=ot(h,f,d)}}catch(t){u.e(t)}finally{u.f()}return{start:r,end:i}}},{key:"interpolateProps",value:function(t,e,n){var r,i=Object(h.flyToViewport)(t,e,n,this.props),o=st(ht);try{for(o.s();!(r=o.n()).done;){var s=r.value;i[s]=x(t[s],e[s],n)}}catch(t){o.e(t)}finally{o.f()}return i}},{key:"getDuration",value:function(t,e){var n=e.transitionDuration;return"auto"===n&&(n=Object(h.getFlyToDuration)(t,e,this.props)),n}}]),n}(q);function pt(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return gt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gt(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t}
21,f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function gt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function mt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=nt(t);if(e){var i=nt(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return et(this,n)}}var yt=["longitude","latitude","zoom","bearing","pitch"],_t=function(t){$(n,t);var e=mt(n);function n(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(m.a)(this,n),t=e.call(this),Array.isArray(r)&&(r={transitionProps:r}),t.propNames=r.transitionProps||yt,r.around&&(t.around=r.around),t}return Object(y.a)(n,[{key:"initializeProps",value:function(t,e){var n={},r={};if(this.around){n.around=this.around;var i=new h.default(t).unproject(this.around);Object.assign(r,e,{around:new h.default(e).project(i),aroundLngLat:i})}var o,s=pt(this.propNames);try{for(s.s();!(o=s.n()).done;){var a=o.value,c=t[a],l=e[a];w(it(c)&&it(l),"".concat(a," must be supplied for transition")),n[a]=c,r[a]=ot(a,c,l)}}catch(t){s.e(t)}finally{s.f()}return{start:n,end:r}}},{key:"interpolateProps",value:function(t,e,n){var r,i={},o=pt(this.propNames);try{for(o.s();!(r=o.n()).done;){var s=r.value;i[s]=x(t[s],e[s],n)}}catch(t){o.e(t)}finally{o.f()}if(e.around){var a=u(new h.default(Object.assign({},e,i)).getMapCenterByLngLatPosition({lngLat:e.aroundLngLat,pos:x(t.around,e.around,n)}),2),c=a[0],l=a[1];i.longitude=c,i.latitude=l}return i}}]),n}(q),vt=function(){};
21var bt=1,xt=2,wt=3,Et=4,St={transitionDuration:0,transitionEasing:function(t){return t},transitionInterpolator:new _t,transitionInterruption:bt,onTransitionStart:vt,onTransitionInterrupt:vt,onTransitionEnd:vt},Ct=function(){function t(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object(m.a)(this,t),Object(a.a)(this,"_animationFrame",null),Object(a.a)(this,"_onTransitionFrame",(function(){e._animationFrame=requestAnimationFrame(e._onTransitionFrame),e._updateViewport()})),this.props=null,this.onViewportChange=n.onViewportChange||vt,this.onStateChange=n.onStateChange||vt,this.time=n.getTime||Date.now}return Object(y.a)(t,[{key:"getViewportInTransition",value:function(){return this._animationFrame?this.state.propsInTransition:null}},{key:"processViewportChange",value:function(t){var e=this.props;if(this.props=t,!e||this._shouldIgnoreViewportChange(e,t))return!1;if(this._isTransitionEnabled(t)){var n=Object.assign({},e),r=Object.assign({},t);if(this._isTransitionInProgress()&&(e.onTransitionInterrupt(),this.state.interruption===xt?Object.assign(n,this.state.endProps):Object.assign(n,this.state.propsInTransition),this.state.interruption===Et)){var i=this.time(),o=(i-this.state.startTime)/this.state.duration;r.transitionDuration=this.state.duration-(i-this.state.startTime),r.transitionEasing=function(t,e){var n=t(e);return function(r){return 1/(1-n)*(t(r*(1-e)+e)-n)}}(this.state.easing,o),r.transitionInterpolator=n.transitionInterpolator}return r.onTransitionStart(),this._triggerTransition(n,r),!0}return this._isTransitionInProgress()&&(e.onTransitionInterrupt(),this._endTransition()),!1}},{key:"_isTransitionInProgress",value:function(){return Boolean(this._animationFrame)}},{key:"_isTransitionEnabled",value:function(t){var e=t.transitionDuration,n=t.transitionInterpolator;return(e>0||"auto"===e)&&Boolean(n)}},{key:"_isUpdateDueToCurrentTransition",value:function(t){return!!this.state.propsInTransition&&this.state.interpolator.arePropsEqual(t,this.state.propsInTransition)}},{key:"_shouldIgnoreViewportChange",value:function(t,e){return!t||(this._isTransitionInProgress()?this.state.interruption===wt||this._isUpdateDueToCurrentTransition(e):!this._isTransitionEnabled(e)||e.transitionInterpolator.arePropsEqual(t,e))}},{key:"_triggerTransition",value:function(t,e){w(this._isTransitionEnabled(e)),this._animationFrame&&cancelAnimationFrame(this._animationFrame);var n=e.transitionInterpolator,r=n.getDuration?n.getDuration(t,e):e.transitionDuration;if(0!==r){var i=e.transitionInterpolator.initializeProps(t,e),o={inTransition:!0,isZooming:t.zoom!==e.zoom,isPanning:t.longitude!==e.longitude||t.latitude!==e.latitude,isRotating:t.bearing!==e.bearing||t.pitch!==e.pitch};this.state={duration:r,easing:e.transitionEasing,interpolator:e.transitionInterpolator,interruption:e.transitionInterruption,startTime:this.time(),startProps:i.start,endProps:i.end,animation:null,propsInTransition:{}},this._onTransitionFrame(),this.onStateChange(o)}}},{key:"_endTransition",value:function(){this._animationFrame&&(cancelAnimationFrame(this._animationFrame),this._animationFrame=null),this.onStateChange({inTransition:!1,isZooming:!1,isPanning:!1,isRotating:!1})}},{key:"_updateViewport",value:function(){var t=this.time(),e=this.state,n=e.startTime,r=e.duration,i=e.easing,o=e.interpolator,s=e.startProps,a=e.endProps,c=!1,l=(t-n)/r;l>=1&&(l=1,c=!0),l=i(l);var u=o.interpolateProps(s,a,l),h=new M(Object.assign({},this.props,u));this.state.propsInTransition=h.getViewportProps(),this.onViewportChange(this.state.propsInTransition,this.props),c&&(this._endTransition(),this.props.onTransitionEnd())}}]),t}();Object(a.a)(Ct,"defaultProps",St);var At=n(702);function It(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Tt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?It(Object(n),!0).forEach((function(e){Object(a.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):It(Object(n)).forEac
21h((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Mt={transitionDuration:0},Ft={transitionDuration:300,transitionEasing:function(t){return t},transitionInterpolator:new _t,transitionInterruption:bt},Bt=function(t){return 1-(1-t)*(1-t)},Lt=["wheel"],Ot=["panstart","panmove","panend"],Ut=["pinchstart","pinchmove","pinchend"],kt=["tripanstart","tripanmove","tripanend"],Pt=["doubletap"],Dt=["keydown"],Rt=function(){function t(){var e=this;Object(m.a)(this,t),Object(a.a)(this,"events",[]),Object(a.a)(this,"scrollZoom",!0),Object(a.a)(this,"dragPan",!0),Object(a.a)(this,"dragRotate",!0),Object(a.a)(this,"doubleClickZoom",!0),Object(a.a)(this,"touchZoom",!0),Object(a.a)(this,"touchRotate",!1),Object(a.a)(this,"keyboard",!0),Object(a.a)(this,"_interactionState",{isDragging:!1}),Object(a.a)(this,"_events",{}),Object(a.a)(this,"_setInteractionState",(function(t){Object.assign(e._interactionState,t),e.onStateChange&&e.onStateChange(e._interactionState)})),Object(a.a)(this,"_onTransition",(function(t,n){e.onViewportChange(t,e._interactionState,n)})),this.handleEvent=this.handleEvent.bind(this),this._transitionManager=new Ct({onViewportChange:this._onTransition,onStateChange:this._setInteractionState})}return Object(y.a)(t,[{key:"handleEvent",value:function(t){this.mapState=this.getMapState();var e=this._eventStartBlocked;switch(t.type){case"panstart":return!e&&this._onPanStart(t);case"panmove":return this._onPan(t);case"panend":return this._onPanEnd(t);case"pinchstart":return!e&&this._onPinchStart(t);case"pinchmove":return this._onPinch(t);case"pinchend":return this._onPinchEnd(t);case"tripanstart":return!e&&this._onTriplePanStart(t);case"tripanmove":return this._onTriplePan(t);case"tripanend":return this._onTriplePanEnd(t);case"doubletap":return this._onDoubleTap(t);case"wheel":return this._onWheel(t);case"keydown":return this._onKeyDown(t);default:return!1}}},{key:"getCenter",value:function(t){var e=t.offsetCenter;return[e.x,e.y]}},{key:"isFunctionKeyPressed",value:function(t){var e=t.srcEvent;return Boolean(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}},{key:"blockEvents",value:function(t){var e=this,n=setTimeout((function(){e._eventStartBlocked===n&&(e._eventStartBlocked=null)}),t);this._eventStartBlocked=n}},{key:"updateViewport",value:function(t,e,n){var r=this.mapState instanceof M?this.mapState.getViewportProps():this.mapState,i=Tt(Tt({},t.getViewportProps()),e),o=Object.keys(i).some((function(t){return r[t]!==i[t]}));this._state=t.getState(),this._setInteractionState(n),o&&this.onViewportChange(i,this._interactionState,r)}},{key:"getMapState",value:function(t){return new M(Tt(Tt(Tt({},this.mapStateProps),this._state),t))}},{key:"isDragging",value:function(){return this._interactionState.isDragging}},{key:"setOptions",value:function(t){var e=t.onViewportChange,n=t.onStateChange,r=t.eventManager,i=void 0===r?this.eventManager:r,o=t.isInteractive,s=void 0===o||o,a=t.scrollZoom,c=void 0===a?this.scrollZoom:a,l=t.dragPan,u=void 0===l?this.dragPan:l,h=t.dragRotate,f=void 0===h?this.dragRotate:h,d=t.doubleClickZoom,p=void 0===d?this.doubleClickZoom:d,g=t.touchZoom,m=void 0===g?this.touchZoom:g,y=t.touchRotate,_=void 0===y?this.touchRotate:y,v=t.keyboard,b=void 0===v?this.keyboard:v;this.onViewportChange=e,this.onStateChange=n;var x=this.mapStateProps||{},w=x.height!==t.height||x.width!==t.width;this.mapStateProps=t,w&&(this.mapState=x,this.updateViewport(new M(t))),this._transitionManager.processViewportChange(t),this.eventManager!==i&&(this.eventManager=i,this._events={},this.toggleEvents(this.events,!0)),this.toggleEvents(Lt,s&&Boolean(c)),this.toggleEvents(Ot,s&&Boolean(u||f)),this.toggleEvents(Ut,s&&Boolean(m||_)),this.toggleEvents(kt,s&&Boolean(_)),this.toggleEvents(Pt,s&&Boolean(p)),this.toggleEvents(Dt,s&&Boolean(b)),this.scrollZoom=c,this.dragPan=u,this.dragRotate=f,this.doubleClickZoom=p,this.touchZoom=m,this.touchRotate=_,this.keyboard=b}},{key:"toggleEvents",value:function(t,e){var n=this;this.eventManager&&t.forEach((function(t){n._events[t]!==e&&(n._events[t]=e,e?n.eventManager.on(t,n.handleEvent):n.eventManager.off(t,n.handleEvent))}))}},{key:"_onPanStart",value:function(t){var e=this.getCenter(t);this._panRotate=this.isFunctionKeyPressed(t)||t.rightButton;var n=this._panRotate?this.mapState.rotateStart({pos:e}):this.mapState.panStart({pos:e});return this.updateViewport(n,Mt,{isDragging:!0}),!0}},{key:"_onPan",value:function(t){return!!this.isDragging()&&(this._panRotate?this._onPanRotate(t):this._onPanMove(t))}},{key:"_onPanEnd",value:function(t){return!!this.isDragging()&&(this._panRotate?this._onPanRotateEnd(t):this._onPanMoveEnd(t))}},{key:"_onPanMove",value:function(t){if(!this.dragPan)return!1;var e=this.getCenter(t),n=this.mapState.pan({pos:e});return this.updateViewport(n,Mt,{isPanning:!0}),!0}},{key:"_onPanMoveEnd",value:function(t){if(this.dragPan){var e=this.dragPan.inertia,n=void 0===e?300:e;if(n&&t.velocity){var r=this.getCenter(t),i=[r[0]+t.velocityX*n/2,r[1]+t.velocityY*n/2],o=this.mapState.pan({pos:i}).panEnd();return this.updateViewport(o,Tt(Tt({},Ft),{},{transitionDuration:n,transitionEasing:Bt}),{isDragging:!1,isPanning:!0}),!0}}var s=this.mapState.panEnd();return this.updateViewport(s,null,{isDragging:!1,isPanning:!1}),!0}},{key:"_onPanRotate",value:function(t){if(!this.dragRotate)return!1;var e=this.getCenter(t),n=this.mapState.rotate({pos:e});return this.updateViewport(n,Mt,{isRotating:!0}),!0}},{key:"_onPanRotateEnd",value:function(t){if(this.dragRotate){var e=this.dragRotate.inertia,n=void 0===e?300:e;if(n&&t.velocity){var r=this.getCenter(t),i=[r[0]+t.velocityX*n/2,r[1]+t.velocityY*n/2],o=this.mapState.rotate({pos:i}).rotateEnd();return this.updateViewport(o,Tt(Tt({},Ft),{},{transitionDuration:n,transitionEasing:Bt}),{isDragging:!1,isRotating:!0}),!0}}var s=this.mapState.panEnd();return this.updateViewport(s,null,{isDragging:!1,isRotating:!1}),!0}},{key:"_onWheel",value:function(t){if(!this.scrollZoom)return!1;var e=this.scrollZoom,n=e.speed,r=void 0===n?.01:n,i=e.smooth,o=void 0!==i&&i;t.preventDefault();var s=this.getCenter(t),a=t.delta,c=2/(1+Math.exp(-Math.abs(a*r)));a<0&&0!==c&&(c=1/c);var l=this.mapState.zoom({pos:s,scale:c}
21);return l.getViewportProps().zoom!==this.mapStateProps.zoom&&(this.updateViewport(l,Tt(Tt({},Ft),{},{transitionInterpolator:new _t({around:s}),transitionDuration:o?250:1}),{isPanning:!0,isZooming:!0}),!0)}},{key:"_onPinchStart",value:function(t){var e=this.getCenter(t),n=this.mapState.zoomStart({pos:e}).rotateStart({pos:e});return this._startPinchRotation=t.rotation,this._lastPinchEvent=t,this.updateViewport(n,Mt,{isDragging:!0}),!0}},{key:"_onPinch",value:function(t){if(!this.isDragging())return!1;if(!this.touchZoom&&!this.touchRotate)return!1;var e=this.mapState;if(this.touchZoom){var n=t.scale,r=this.getCenter(t);e=e.zoom({pos:r,scale:n})}if(this.touchRotate){var i=t.rotation;e=e.rotate({deltaAngleX:this._startPinchRotation-i})}return this.updateViewport(e,Mt,{isDragging:!0,isPanning:Boolean(this.touchZoom),isZooming:Boolean(this.touchZoom),isRotating:Boolean(this.touchRotate)}),this._lastPinchEvent=t,!0}},{key:"_onPinchEnd",value:function(t){if(!this.isDragging())return!1;if(this.touchZoom){var e=this.touchZoom.inertia,n=void 0===e?300:e,r=this._lastPinchEvent;if(n&&r&&t.scale!==r.scale){var i=this.getCenter(t),o=this.mapState.rotateEnd(),s=Math.log2(t.scale),a=(s-Math.log2(r.scale))/(t.deltaTime-r.deltaTime),c=Math.pow(2,s+a*n/2);return o=o.zoom({pos:i,scale:c}).zoomEnd(),this.updateViewport(o,Tt(Tt({},Ft),{},{transitionInterpolator:new _t({around:i}),transitionDuration:n,transitionEasing:Bt}),{isDragging:!1,isPanning:Boolean(this.touchZoom),isZooming:Boolean(this.touchZoom),isRotating:!1}),this.blockEvents(n),!0}}var l=this.mapState.zoomEnd().rotateEnd();return this._state.startPinchRotation=0,this.updateViewport(l,null,{isDragging:!1,isPanning:!1,isZooming:!1,isRotating:!1}),this._startPinchRotation=null,this._lastPinchEvent=null,!0}},{key:"_onTriplePanStart",value:function(t){var e=this.getCenter(t),n=this.mapState.rotateStart({pos:e});return this.updateViewport(n,Mt,{isDragging:!0}),!0}},{key:"_onTriplePan",value:function(t){if(!this.isDragging())return!1;if(!this.touchRotate)return!1;var e=this.getCenter(t);e[0]-=t.deltaX;var n=this.mapState.rotate({pos:e});return this.updateViewport(n,Mt,{isRotating:!0}),!0}},{key:"_onTriplePanEnd",value:function(t){if(!this.isDragging())return!1;if(this.touchRotate){var e=this.touchRotate.inertia,n=void 0===e?300:e;if(n&&t.velocityY){var r=this.getCenter(t),i=[r[0],r[1]+=t.velocityY*n/2],o=this.mapState.rotate({pos:i});return this.updateViewport(o,Tt(Tt({},Ft),{},{transitionDuration:n,transitionEasing:Bt}),{isDragging:!1,isRotating:!0}),this.blockEvents(n),!1}}var s=this.mapState.rotateEnd();return this.updateViewport(s,null,{isDragging:!1,isRotating:!1}),!0}},{key:"_onDoubleTap",value:function(t){if(!this.doubleClickZoom)return!1;var e=this.getCenter(t),n=this.isFunctionKeyPressed(t),r=this.mapState.zoom({pos:e,scale:n?.5:2});return this.updateViewport(r,Object.assign({},Ft,{transitionInterpolator:new _t({around:e})}),{isZooming:!0}),!0}},{key:"_onKeyDown",value:function(t){if(!this.keyboard)return!1;var e,n=this.isFunctionKeyPressed(t),r=this.keyboard,i=r.zoomSpeed,o=void 0===i?2:i,s=r.moveSpeed,a=void 0===s?100:s,c=r.rotateSpeedX,l=void 0===c?15:c,u=r.rotateSpeedY,h=void 0===u?10:u,f=this.mapStateProps;switch(t.srcEvent.keyCode){case 189:e=n?this.getMapState({zoom:f.zoom-Math.log2(o)-1}):this.getMapState({zoom:f.zoom-Math.log2(o)});break;case 187:e=n?this.getMapState({zoom:f.zoom+Math.log2(o)+1}):this.getMapState({zoom:f.zoom+Math.log2(o)});break;case 37:e=n?this.getMapState({bearing:f.bearing-l}):this.mapState.pan({pos:[a,0],startPos:[0,0]});break;case 39:e=n?this.getMapState({bearing:f.bearing+l}):this.mapState.pan({pos:[-a,0],startPos:[0,0]});break;case 38:e=n?this.getMapState({pitch:f.pitch+h}):this.mapState.pan({pos:[0,a],startPos:[0,0]});break;case 40:e=n?this.getMapState({pitch:f.pitch-h}):this.mapState.pan({pos:[0,-a],startPos:[0,0]});break;default:return!1}return this.updateViewport(e,Ft)}}]),t}();function jt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function zt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
21e%2?jt(Object(n),!0).forEach((function(e){Object(a.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):jt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Qt=Object.assign({},W.propTypes,{maxZoom:l.number,minZoom:l.number,maxPitch:l.number,minPitch:l.number,onViewStateChange:l.func,onViewportChange:l.func,onInteractionStateChange:l.func,transitionDuration:l.oneOfType([l.number,l.string]),transitionInterpolator:l.object,transitionInterruption:l.number,transitionEasing:l.func,onTransitionStart:l.func,onTransitionInterrupt:l.func,onTransitionEnd:l.func,scrollZoom:l.oneOfType([l.bool,l.object]),dragPan:l.oneOfType([l.bool,l.object]),dragRotate:l.oneOfType([l.bool,l.object]),doubleClickZoom:l.bool,touchZoom:l.oneOfType([l.bool,l.object]),touchRotate:l.oneOfType([l.bool,l.object]),keyboard:l.oneOfType([l.bool,l.object]),onHover:l.func,onClick:l.func,onDblClick:l.func,onContextMenu:l.func,onMouseDown:l.func,onMouseMove:l.func,onMouseUp:l.func,onTouchStart:l.func,onTouchMove:l.func,onTouchEnd:l.func,onMouseEnter:l.func,onMouseLeave:l.func,onMouseOut:l.func,onWheel:l.func,touchAction:l.string,eventRecognizerOptions:l.object,clickRadius:l.number,interactiveLayerIds:l.array,getCursor:l.func,controller:l.instanceOf(Rt)}),Nt=Object.assign({},W.defaultProps,C,Ct.defaultProps,{onViewStateChange:null,onViewportChange:null,onClick:null,onNativeClick:null,onHover:null,onContextMenu:function(t){return t.preventDefault()},scrollZoom:!0,dragPan:!0,dragRotate:!0,doubleClickZoom:!0,touchZoom:!0,touchRotate:!1,keyboard:!0,touchAction:"none",eventRecognizerOptions:{},clickRadius:0,getCursor:function(t){var e=t.isDragging,n=t.isHovering;return e?"grabbing":n?"pointer":"grab"}});function Vt(t){if(t.lngLat||!t.offsetCenter)return t;var e=t.offsetCenter,n=e.x,r=e.y;if(!Number.isFinite(n)||!Number.isFinite(r))return t;var i=[n,r];t.point=i;var o=this.viewport,s=o.unproject(i,{targetZ:o.meterOffset[2]});return t.lngLat=[s[0],s[1]],t}function Gt(t){var e=this.map;if(!e||!t)return null;var n={},r=this.props.clickRadius;this.props.interactiveLayerIds&&(n.layers=this.props.interactiveLayerIds);try{return e.queryRenderedFeatures(r?[[t[0]-r,t[1]+r],[t[0]+r,t[1]-r]]:t,n)}catch(t){return null}}function Ht(t,e){var n=this.props[t];n&&n(Vt.call(this,e))}function Zt(t){Ht.call(this,"touch"===t.pointerType?"onTouchStart":"onMouseDown",t)}function Wt(t){Ht.call(this,"touch"===t.pointerType?"onTouchEnd":"onMouseUp",t)}function Xt(t){if(Ht.call(this,"touch"===t.pointerType?"onTouchMove":"onMouseMove",t),!this.state.isDragging){var e,n=this.props,r=n.onHover,i=n.interactiveLayerIds;t=Vt.call(this,t),(i||r)&&(e=Gt.call(this,t.point));var o=Boolean(i&&e&&e.length>0),s=o&&!this.state.isHovering,a=!o&&this.state.isHovering;(r||s)&&(t.features=e,r&&r(t)),s&&Ht.call(this,"onMouseEnter",t),a&&Ht.call(this,"onMouseLeave",t),(s||a)&&this.setState({isHovering:o})}}function Yt(t){var e=this.props,n=e.onClick,r=e.onNativeClick,i=e.onDblClick,o=e.doubleClickZoom,s=[],a=i||o;switch(t.type){case"anyclick":s.push(r),a||s.push(n);break;case"click":a&&s.push(n)}(s=s.filter(Boolean)).length&&((t=Vt.call(this,t)).features=Gt.call(this,t.point),s.forEach((function(e){return e(t)})))}var qt=Object(c.forwardRef)((function(t,e){var n=Object(c.useContext)(k),i=Object(c.useMemo)((function(){return t.controller||new Rt}),[]),o=Object(c.useMemo)((function(){return new At.a(null,{touchAction:t.touchAction,recognizerOptions:t.eventRecognizerOptions})}),[]),a=Object(c.useRef)(null),l=Object(c.useRef)(null),u=Object(c.useRef)({width:0,height:0,state:{isHovering:!1,isDragging:!1}}).current;u.props=t,u.map=l.current&&l.current.getMap(),u.setState=function(e){u.state=zt(zt({},u.state),e),a.current.style.cursor=t.getCursor(u.state)};var h,f,d=!0,p=function(t,e,n){if(d)h=[t,e,n];else{var r=u.props,i=r.onViewStateChange,o=r.onViewportChange;Object.defineProperty(t,"position",{get:function(){return[0,0,D(u.map,t)]}}),i&&i({viewState:t,interactionState:e,oldViewState:n}),o&&o(t,e,n)}};Object(c.useImperativeHandle)(e,(function(){return function(t){return{getMap:t.current&&t.current.getMap,queryRenderedFeatures:t.current&&t.current.queryRenderedFeatures}}(l)}),[]);var g=Object(c.useMemo)((function(){return zt(zt({},n),{},{eventManager:o,container:n.container||a.current})}),[n,a.current]);g.onViewportChange=p,g.viewport=n.viewport||Q(u),u.viewport=g.viewport;var m=function(t){var e=t.isDragging,n=void 0!==e&&e;if(n!==u.state.isDragging&&u.setState({isDragging:n}),d)f=t;else{var r=u.props.onInteractionStateChange;r&&r(t)}},y=function(){u.width&&u.height&&i.setOptions(zt(zt(zt({},u.props),u.props.viewState),{},{isInteractive:Boolean(u.props.onViewStateChange||u.props.onViewportChange),onViewportChange:p,onStateChange:m,eventManager:o,width:u.width,height:u.height}))};Object(c.useEffect)((function(){return o.setElement(a.current),o.on({pointerdown:Zt.bind(u),pointermove:Xt.bind(u),pointerup:Wt.bind(u),pointerleave:Ht.bind(u,"onMouseOut"),click:Yt.bind(u),anyclick:Yt.bind(u),dblclick:Ht.bind(u,"onDblClick"),wheel:Ht.bind(u,"onWheel"),contextmenu:Ht.bind(u,"onContextMenu")}),function(){o.destroy()}}),[]),P((function(){h&&p.apply(void 0,s(h)),f&&m(f)})),y();var _=t.width,v=t.height,b=t.style,x=t.getCursor,w=Object(c.useMemo)((function(){return zt(zt({position:"relative"},b),{},{width:_,height:v,cursor:x(u.state)})}),[b,_,v,x,u.state]);return h&&u._child||(u._child=c.createElement(U,{value:g},c.createElement("div",{key:"event-canvas",ref:a,style:w},c.createElement(W,r({},t,{width:"100%",height:"100%",style:null,onResize:function(t){var e=t.width,n=t.height;u.width=e,u.height=n,y(),u.props.onResize({width:e,height:n})},ref:l}))))),d=!1,u._child}));
21qt.supported=W.supported,qt.propTypes=Qt,qt.defaultProps=Nt;var Kt=qt;function Jt(t,e){if(t===e)return!0;if(!t||!e)return!1;if(Array.isArray(t)){if(!Array.isArray(e)||t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(!Jt(t[n],e[n]))return!1;return!0}if(Array.isArray(e))return!1;if("object"===tt(t)&&"object"===tt(e)){var r=Object.keys(t),i=Object.keys(e);if(r.length!==i.length)return!1;for(var o=0,s=r;o<s.length;o++){var a=s[o];if(!e.hasOwnProperty(a))return!1;if(!Jt(t[a],e[a]))return!1}return!0}return!1}function $t(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}var te={type:l.string.isRequired,id:l.string},ee=0;function ne(t,e,n){if(t.style&&t.style._loaded){var r=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?$t(Object(n),!0).forEach((function(e){Object(a.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$t(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},n);return delete r.id,delete r.children,t.addSource(e,r),t.getSource(e)}return null}function re(t){var e=Object(c.useContext)(k),n=Object(c.useRef)({id:t.id,type:t.type}),r=u(Object(c.useState)(0),2)[1],i=Object(c.useMemo)((function(){return t.id||"jsx-source-".concat(ee++)}),[]),o=e.map;Object(c.useEffect)((function(){if(o){var t=function(){return r((function(t){return t+1}))};return o.on("styledata",t),function(){o.off("styledata",t),requestAnimationFrame((function(){o.style&&o.style._loaded&&o.getSource(i)&&o.removeSource(i)}))}}}),[o,i]);var s=o&&o.style&&o.getSource(i);return s?function(t,e,n){w(e.id===n.id,"source id changed"),w(e.type===n.type,"source type changed");var r="",i=0;for(var o in e)"children"===o||"id"===o||Jt(n[o],e[o])||(r=o,i++);if(i){var s=e.type;if("geojson"===s)t.setData(e.data);else if("image"===s)t.updateImage({url:e.url,coordinates:e.coordinates});else if("canvas"!==s&&"video"!==s||1!==i||"coordinates"!==r)if("vector"===s&&t.setUrl)switch(r){case"url":t.setUrl(e.url);break;case"tiles":t.setTiles(e.tiles)}else console.warn("Unable to update <Source> prop: ".concat(r));else t.setCoordinates(e.coordinates)}}(s,t,n.current):s=ne(o,i,t),n.current=t,s&&c.Children.map(t.children,(function(t){return t&&Object(c.cloneElement)(t,{source:i})}))||null}re.propTypes=te;var ie=re;function oe(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function se(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ae(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?se(Object(n),!0).forEach((function(e){Object(a.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):se(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var ce={type:l.oneOf(["fill","line","symbol","circle","fill-extrusion","raster","background","heatmap","hillshade","sky"]).isRequired,id:l.string,source:l.string,beforeId:l.string};function le(t,e,n,r){w(n.id===r.id,"layer id changed"),w(n.type===r.type,"layer type changed");try{!function(t,e,n,r){var i=n.layout,o=void 0===i?{}:i,s=n.paint,a=void 0===s?{}:s,c=n.filter,l=n.minzoom,u=n.maxzoom,h=n.beforeId,f=oe(n,["layout","paint","filter","minzoom","maxzoom","beforeId"]);if(h!==r.beforeId&&t.moveLayer(e,h),o!==r.layout){var d=r.layout||{};for(var p in o)Jt(o[p],d[p])||t.setLayoutProperty(e,p,o[p]);for(var g in d)o.hasOwnProperty(g)||t.setLayoutProperty(e,g,void 0)}if(a!==r.paint){var m=r.paint||{};for(var y in a)Jt(a[y],m[y])||t.setPaintProperty(e,y,a[y]);for(var _ in m)a.hasOwnProperty(_)||t.setPaintProperty(e,_,void 0)}for(var v in Jt(c,r.filter)||t.setFilter(e,c),l===r.minzoom&&u===r.maxzoom||t.setLayerZoomRange(e,l,u),f)Jt(f[v],r[v])||t.setLayerProperty(e,v,f[v])}(t,e,n,r)}catch(t){console.warn(t)}}var ue=0;function he(t){var e=Object(c.useContext)(k),n=Object(c.useRef)({id:t.id,type:t.type}),r=u(Object(c.useState)(0),2)[1],i=Object(c.useMemo)((function(){return t.id||"jsx-layer-".concat(ue++)}),[]),o=e.map;return Object(c.useEffect)((function(){if(o){var t=function(){return r((function(t){return t+1}))};return o.on("styledata",t),function(){o.off("styledata",t),o.style&&o.style._loaded&&o.removeLayer(i)}}}),[o]),o&&o.style&&o.getLayer(i)?le(o,i,t,n.current):function(t,e,n){if(t.style&&t.style._loaded){var r=ae(ae({},n),{},{id:e});delete r.beforeId,t.addLayer(r,n.beforeId)}}(o,i,t),n.current=t,null}
21he.propTypes=ce;var fe=he,de={captureScroll:!1,captureDrag:!0,captureClick:!0,captureDoubleClick:!0,capturePointerMove:!1},pe={captureScroll:l.bool,captureDrag:l.bool,captureClick:l.bool,captureDoubleClick:l.bool,capturePointerMove:l.bool};function ge(t){var e=t.containerRef.current,n=t.context.eventManager;if(e&&n){var r={wheel:function(e){var n=t.props;n.captureScroll&&e.stopPropagation(),n.onScroll&&n.onScroll(e,t)},panstart:function(e){var n=t.props;n.captureDrag&&e.stopPropagation(),n.onDragStart&&n.onDragStart(e,t)},anyclick:function(e){var n=t.props;n.captureClick&&e.stopPropagation(),n.onNativeClick&&n.onNativeClick(e,t)},click:function(e){var n=t.props;n.captureClick&&e.stopPropagation(),n.onClick&&n.onClick(e,t)},dblclick:function(e){var n=t.props;n.captureDoubleClick&&e.stopPropagation(),n.onDoubleClick&&n.onDoubleClick(e,t)},pointermove:function(e){var n=t.props;n.capturePointerMove&&e.stopPropagation(),n.onPointerMove&&n.onPointerMove(e,t)}};return n.watch(r,e),function(){n.off(r)}}}function me(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=Object(c.useContext)(k),n=Object(c.useRef)(null),r=Object(c.useRef)({props:t,state:{},context:e,containerRef:n}),i=r.current;return i.props=t,i.context=e,Object(c.useEffect)((function(){return ge(i)}),[e.eventManager]),i}function ye(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=nt(t);if(e){var i=nt(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return et(this,n)}}function _e(t){var e=t.instance,n=me(t),r=n.context,i=n.containerRef;return e._context=r,e._containerRef=i,e._render()}var ve=function(t){$(n,t);var e=ye(n);function n(){var t;Object(m.a)(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return t=e.call.apply(e,[this].concat(i)),Object(a.a)(K(t),"_context",{}),Object(a.a)(K(t),"_containerRef",Object(c.createRef)()),Object(a.a)(K(t),"_onScroll",(function(t){})),Object(a.a)(K(t),"_onDragStart",(function(t){})),Object(a.a)(K(t),"_onDblClick",(function(t){})),Object(a.a)(K(t),"_onClick",(function(t){})),Object(a.a)(K(t),"_onPointerMove",(function(t){})),t}return Object(y.a)(n,[{key:"_render",value:function(){throw new Error("_render() not implemented")}},{key:"render",value:function(){return c.createElement(_e,r({instance:this},this.props,{onScroll:this._onScroll,onDragStart:this._onDragStart,onDblClick:this._onDblClick,onClick:this._onClick,onPointerMove:this._onPointerMove}))}}]),n}(c.PureComponent);function be(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function xe(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?be(Object(n),!0).forEach((function(e){Object(a.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):be(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}Object(a.a)(ve,"propTypes",pe),Object(a.a)(ve,"defaultProps",de);var we=Object.assign({},pe,{draggable:l.bool,onDrag:l.func,onDragEnd:l.func,onDragStart:l.func,offsetLeft:l.number,offsetTop:l.number}),Ee=Object.assign({},de,{draggable:!1,offsetLeft:0,offsetTop:0});function Se(t){var e=t.offsetCenter;return[e.x,e.y]}function Ce(t,e,n,r){var i=t[0]+e[0]-n.offsetLeft,o=t[1]+e[1]-n.offsetTop;return r.viewport.unproject([i,o])}function Ae(t,e){var n=e.props,r=e.callbacks,i=e.state,o=e.context,s=e.containerRef;if(n.draggable){t.stopPropagation();var a=Se(t),c=function(t,e){var n=t.center,r=n.x,i=n.y;if(e){var o=e.getBoundingClientRect();return[o.left-r,o.top-i]}return null}(t,s.current);if(i.setDragPos(a),i.setDragOffset(c),r.onDragStart&&c){var l=Object.assign({},t);l.lngLat=Ce(a,c,n,o),r.onDragStart(l)}}}function Ie(t){var e=t.context.eventManager;if(e&&t.state.dragPos){var n={panmove:function(e){return function(t,e){var n=e.props,r=e.callbacks,i=e.state,o=e.context;t.stopPropagation();var s=Se(t);i.setDragPos(s);var a=i.dragOffset;if(r.onDrag&&a){var c=Object.assign({},t);c.lngLat=Ce(s,a,n,o),r.onDrag(c)}}(e,t)},panend:function(e){return function(t,e){var n=e.props,r=e.callbacks,i=e.state,o=e.context;t.stopPropagation();var s=i.dragPos,a=i.dragOffset;if(i.setDragPos(null),i.setDragOffset(null),r.onDragEnd&&s&&a){var c=Object.assign({},t);c.lngLat=Ce(s,a,n,o),r.onDragEnd(c)}}(e,t)},pancancel:function(e){return n=e,r=t.state,n.stopPropagation(),r.setDragPos(null),void r.setDragOffset(null);var n,r}};return e.watch(n),function(){e.off(n)}}}var Te="undefined"!=typeof window&&window.devicePixelRatio||1,Me=function(t){return Math.round(t*Te)/Te},Fe=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"x";if(null===t)return e;var r="x"===n?t.offsetWidth:t.offsetHeight;return Me(e/100*r)/r*100},Be=Object.assign({},we,{className:l.string,longitude:l.number.isRequired,latitude:l.number.isRequired}),Le=Object.assign({},Ee,{className:""});function Oe(t){var e=function(t){var e=u(Object(c.useState)(null),2),n=e[0],r=e[1],i=u(Object(c.useState)(null),2),o=i[0],s=i[1],a=me(xe(xe({},t),{},{onDragStart:Ae}));return a.callbacks=t,a.state.dragPos=n,a.state.setDragPos=r,a.state.dragOffset=o,a.state.setDragOffset=s,Object(c.useEffect)((function(){return Ie(a)}),[a.context.eventManager,Boolean(n)]),a}(t),n=e.state,r=e.containerRef,i=t.children,o=t.className,s=t.draggable,a=n.dragPos,l=function(t){var e=t.props,n=t.state,r=t.context,i=e.longitude,o=e.latitude,s=e.offsetLeft,a=e.offsetTop,c=n.dragPos,l=n.dragOffset,h=r.viewport,f=r.map;if(c&&l)return[c[0]+l[0],c[1]+l[1]];var d=D(f,{longitude:i,latitude:o}),p=u(h.project([i,o,d]),2),g=p[0],m=p[1];return[g+=s,m+=a]}(e),h=u(l,2),f=h[0],d=h[1],p="translate(".concat(Me(f),"px, ").concat(Me(d),"px)"),g=s?a?"grabbing":"grab":"auto",m=Object(c.useMemo)((function(){var t={position:"absolute",left:0,top:0,transform:p,cursor:g};return c.createElement("div",{className:"mapboxgl-marker ".concat(o),ref:e.containerRef,style:t},i)}),[i,o]),y=r.current;return y&&(y.style.transform=p,y.style.cursor=g),m}Oe.defaultProps=Le,Oe.propTypes=Be;c.memo(Oe);var Ue={top:{x:.5,y:0},"top-left":{x:0,y:0},"top-right":{x:1,y:0},bottom:{x:.5,y:1},"bottom-left":{x:0,y:1},"bottom-right":{x:1,y:1}
21,left:{x:0,y:.5},right:{x:1,y:.5}},ke=Object.keys(Ue);var Pe=Object.assign({},pe,{className:l.string,longitude:l.number.isRequired,latitude:l.number.isRequired,altitude:l.number,offsetLeft:l.number,offsetTop:l.number,tipSize:l.number,closeButton:l.bool,closeOnClick:l.bool,anchor:l.oneOf(Object.keys(Ue)),dynamicPosition:l.bool,sortByDepth:l.bool,onClose:l.func}),De=Object.assign({},de,{className:"",offsetLeft:0,offsetTop:0,tipSize:10,anchor:"bottom",dynamicPosition:!0,sortByDepth:!1,closeButton:!0,closeOnClick:!0,onClose:function(){}});function Re(t,e,n,r){var i=u(r,2),o=i[0],s=i[1],a=t.anchor,c=t.dynamicPosition,l=t.tipSize;return n&&c?function(t){var e=t.x,n=t.y,r=t.width,i=t.height,o=t.selfWidth,s=t.selfHeight,a=t.anchor,c=t.padding,l=void 0===c?0:c,u=Ue[a],h=u.x,f=u.y,d=n-f*s,p=d+s,g=Math.max(0,l-d)+Math.max(0,p-i+l);if(g>0){var m=f,y=g;for(f=0;f<=1;f+=.5)p=(d=n-f*s)+s,(g=Math.max(0,l-d)+Math.max(0,p-i+l))<y&&(y=g,m=f);f=m}var _=.5;.5===f&&(h=Math.floor(h),_=1);var v=e-h*o,b=v+o,x=Math.max(0,l-v)+Math.max(0,b-r+l);if(x>0){var w=h,E=x;for(h=0;h<=1;h+=_)b=(v=e-h*o)+o,(x=Math.max(0,l-v)+Math.max(0,b-r+l))<E&&(E=x,w=h);h=w}return ke.find((function(t){var e=Ue[t];return e.x===h&&e.y===f}))||a}({x:o,y:s,anchor:a,padding:l,width:e.width,height:e.height,selfWidth:n.clientWidth,selfHeight:n.clientHeight}):a}function je(t){var e=Object(c.useRef)(null),n=me(t),r=n.context,i=n.containerRef,o=u(Object(c.useState)(!1),2)[1];Object(c.useEffect)((function(){o(!0)}),[e.current]),Object(c.useEffect)((function(){if(r.eventManager&&t.closeOnClick){var e=function(){return n.props.onClose()};return r.eventManager.on("anyclick",e),function(){r.eventManager.off("anyclick",e)}}}),[r.eventManager,t.closeOnClick]);var s=r.viewport,a=r.map,l=t.className,h=t.longitude,f=t.latitude,d=t.tipSize,p=t.closeButton,g=t.children,m=t.altitude;void 0===m&&(m=D(a,{longitude:h,latitude:f}));var y=s.project([h,f,m]),_=Re(t,s,e.current,y),v=function(t,e,n,r,i){var o=u(r,3),s=o[0],a=o[1],c=o[2],l=t.offsetLeft,h=t.offsetTop,f=t.sortByDepth,d=Ue[i],p=s+l,g=a+h,m=Fe(n,100*-d.x),y=Fe(n,100*-d.y,"y"),_={position:"absolute",transform:"\n translate(".concat(m,"%, ").concat(y,"%)\n translate(").concat(Me(p),"px, ").concat(Me(g),"px)\n "),display:void 0,zIndex:void 0};return f?(c>1||c<-1||s<0||s>e.width||a<0||a>e.height?_.display="none":_.zIndex=Math.floor((1-c)/2*1e5),_):_}(t,s,i.current,y,_),b=Object(c.useCallback)((function(t){n.props.onClose();var e=n.context.eventManager;e&&e.once("click",(function(t){return t.stopPropagation()}),t.target)}),[]);return c.createElement("div",{className:"mapboxgl-popup mapboxgl-popup-anchor-".concat(_," ").concat(l),style:v,ref:i},c.createElement("div",{key:"tip",className:"mapboxgl-popup-tip",style:{borderWidth:d}}),c.createElement("div",{key:"content",ref:e,className:"mapboxgl-popup-content"},p&&c.createElement("button",{key:"close-button",className:"mapboxgl-popup-close-button",type:"button",onClick:b},"Ã"),g))}je.propTypes=Pe,je.defaultProps=De;c.memo(je);function ze(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}var Qe=Object.assign({},pe,{toggleLabel:l.string,className:l.string,style:l.object,compact:l.bool,customAttribution:l.oneOfType([l.string,l.arrayOf(l.string)])}),Ne=Object.assign({},de,{className:"",toggleLabel:"Toggle Attribution"});function Ve(t){var e=me(t),n=e.context,r=e.containerRef,i=Object(c.useRef)(null),o=u(Object(c.useState)(!1),2),s=o[0],l=o[1];Object(c.useEffect)((function(){var e;return n.map&&(e=function(t,e,n,r){var i=new g.a.AttributionControl(t);return i._map=e,i._container=n,i._innerContainer=r,i._updateAttributions(),i._updateEditLink(),e.on("styledata",i._updateData),e.on("sourcedata",i._updateData),i}({customAttribution:t.customAttribution},n.map,r.current,i.current)),function(){return e&&function(t){t._map.off("styledata",t._updateData),t._map.off("sourcedata",t._updateData)}(e)}}),[n.map]);var h=void 0===t.compact?n.viewport.width<=640:t.compact;Object(c.useEffect)((function(){!h&&s&&l(!1)}),[h]);var f=Object(c.useCallback)((function(){return l((function(t){return!t}))}),[]),d=Object(c.useMemo)((function(){return function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
21e%2?ze(Object(n),!0).forEach((function(e){Object(a.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ze(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({position:"absolute"},t.style)}),[t.style]);return c.createElement("div",{style:d,className:t.className},c.createElement("div",{ref:r,"aria-pressed":s,className:"mapboxgl-ctrl mapboxgl-ctrl-attrib ".concat(h?"mapboxgl-compact":""," ").concat(s?"mapboxgl-compact-show":"")},c.createElement("button",{type:"button",className:"mapboxgl-ctrl-attrib-button",title:t.toggleLabel,onClick:f}),c.createElement("div",{ref:i,className:"mapboxgl-ctrl-attrib-inner",role:"list"})))}Ve.propTypes=Qe,Ve.defaultProps=Ne;c.memo(Ve);var Ge=n(258);function He(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}var Ze=Object.assign({},pe,{className:l.string,style:l.object,container:l.object,label:l.string}),We=Object.assign({},de,{className:"",container:null,label:"Toggle fullscreen"});function Xe(t){var e=me(t),n=e.context,r=e.containerRef,i=u(Object(c.useState)(!1),2),o=i[0],s=i[1],l=u(Object(c.useState)(!1),2),h=l[0],f=l[1],d=u(Object(c.useState)(null),2),p=d[0],m=d[1];Object(c.useEffect)((function(){var t=new g.a.FullscreenControl;m(t),f(t._checkFullscreenSupport());var e=function(){var e=!t._fullscreen;t._fullscreen=e,s(e)};return Ge.a.addEventListener(t._fullscreenchange,e),function(){Ge.a.removeEventListener(t._fullscreenchange,e)}}),[]);var y=Object(c.useMemo)((function(){return function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?He(Object(n),!0).forEach((function(e){Object(a.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):He(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({position:"absolute"},t.style)}),[t.style]);if(!h)return null;var _=t.className,v=t.label,b=o?"shrink":"fullscreen";return c.createElement("div",{style:y,className:_},c.createElement("div",{className:"mapboxgl-ctrl mapboxgl-ctrl-group",ref:r},c.createElement("button",{key:b,className:"mapboxgl-ctrl-icon mapboxgl-ctrl-".concat(b),type:"button",title:v,onClick:function(){p&&(p._container=t.container||n.container,p._onClickFullscreen())}},c.createElement("span",{className:"mapboxgl-ctrl-icon","aria-hidden":"true"}))))}Xe.propTypes=Ze,Xe.defaultProps=We;var Ye;c.memo(Xe);function qe(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}var Ke=function(){},Je=Object.assign({},pe,{className:l.string,style:l.object,label:l.string,disabledLabel:l.string,auto:l.bool,positionOptions:l.object,fitBoundsOptions:l.object,trackUserLocation:l.bool,showUserLocation:l.bool,showAccuracyCircle:l.bool,onViewStateChange:l.func,onViewportChange:l.func,onGeolocate:l.func}),$e=Object.assign({},de,{className:"",label:"Find My Location",disabledLabel:"Location Not Available",auto:!1,positionOptions:{enableHighAccuracy:!1,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showUserLocation:!0,showAccuracyCircle:!0,onGeolocate:function(){}});function tn(t,e){var n=e.context,r=e.props,i=function(t){var e=new g.a.LngLat(t.coords.longitude,t.coords.latitude),n=t.coords.accuracy,r=e.toBounds(n);return[[r._ne.lng,r._ne.lat],[r._sw.lng,r._sw.lat]]}(t),o=n.viewport.fitBounds(i,r.fitBoundsOptions),s=o.longitude,a=o.latitude,c=o.zoom,l=Object.assign({},n.viewport,{longitude:s,latitude:a,zoom:c}),u=new M(l),h=Object.assign({},u.getViewportProps(),Ft),f=r.onViewportChange||n.onViewportChange||Ke;(r.onViewStateChange||n.onViewStateChange||Ke)({viewState:h}),f(h)}function en(t){var e=me(t),n=e.context,r=e.containerRef,i=Object(c.useRef)(null),o=u(Object(c.useState)(null),2),s=o[0],l=o[1],h=u(Object(c.useState)(!1),2),f=h[0],d=h[1];Object(c.useEffect)((function(){var r;return n.map&&(void 0!==Ye?Promise.resolve(Ye):void 0!==window.navigator.permissions?window.navigator.permissions.query({name:"geolocation"}).then((function(t){return Ye="denied"!==t.state})):(Ye=Boolean(window.navigator.geolocation),Promise.resolve(Ye))).then((function(o){d(o),i.current&&((r=function(t,e,n){var r=new g.a.GeolocateControl(e);r._container=Ge.a.createElement("div"),r._map={on:function(){},_getUIString:function(){return""}},r._setupUI(!0),r._map=t.map,r._geolocateButton=n;var i=t.eventManager;return r.options.trackUserLocation&&i&&i.on("panstart",(function(){"ACTIVE_LOCK"===r._watchState&&(r._watchState="BACKGROUND",n.classList.add("mapboxgl-ctrl-geolocate-background"),n.classList.remove("mapboxgl-ctrl-geolocate-active"))})),r.on("geolocate",e.onGeolocate),r}(n,t,i.current))._updateCamera=function(t){return tn(t,e)},l(r))})),function(){r&&r._clearWatch()}}),[n.map]);var p=Object(c.useCallback)((function(){s&&(s.options=e.props,s.trigger())}),[s]);Object(c.useEffect)((function(){t.auto&&p()}),[s,t.auto]),Object(c.useEffect)((function(){s&&s._onZoom()}),[n.viewport.zoom]);var m=t.className,y=t.label,_=t.disabledLabel,v=t.trackUserLocation,b=Object(c.useMemo)((function(){return function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
21e%2?qe(Object(n),!0).forEach((function(e){Object(a.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):qe(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({position:"absolute"},t.style)}),[t.style]);return c.createElement("div",{style:b,className:m},c.createElement("div",{key:"geolocate-control",className:"mapboxgl-ctrl mapboxgl-ctrl-group",ref:r},c.createElement("button",{key:"geolocate",className:"mapboxgl-ctrl-icon mapboxgl-ctrl-geolocate",ref:i,disabled:!f,"aria-pressed":!v,type:"button",title:f?y:_,"aria-label":f?y:_,onClick:p},c.createElement("span",{className:"mapboxgl-ctrl-icon","aria-hidden":"true"}))))}en.propTypes=Je,en.defaultProps=$e;c.memo(en);function nn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}var rn=function(){},on=Object.assign({},pe,{className:l.string,style:l.object,onViewStateChange:l.func,onViewportChange:l.func,showCompass:l.bool,showZoom:l.bool,zoomInLabel:l.string,zoomOutLabel:l.string,compassLabel:l.string}),sn=Object.assign({},de,{className:"",showCompass:!0,showZoom:!0,zoomInLabel:"Zoom In",zoomOutLabel:"Zoom Out",compassLabel:"Reset North"});function an(t){return function(t,e){for(var n=(t||"").split(".").map(Number),r=(e||"").split(".").map(Number),i=0;i<3;i++){var o=n[i]||0,s=r[i]||0;if(o<s)return-1;if(o>s)return 1}return 0}(t,"1.6.0")>=0?2:1}function cn(t,e,n){var r=t.viewport,i=new M(Object.assign({},r,n)),o=Object.assign({},i.getViewportProps(),Ft),s=e.onViewportChange||t.onViewportChange||rn;(e.onViewStateChange||t.onViewStateChange||rn)({viewState:o}),s(o)}function ln(t,e,n,r){return c.createElement("button",{key:t,className:"mapboxgl-ctrl-icon mapboxgl-ctrl-".concat(t),type:"button",title:e,onClick:n},r||c.createElement("span",{className:"mapboxgl-ctrl-icon","aria-hidden":"true"}))}function un(t){var e=me(t),n=e.context,r=e.containerRef,i=t.className,o=t.showCompass,s=t.showZoom,l=t.zoomInLabel,u=t.zoomOutLabel,h=t.compassLabel,f=Object(c.useMemo)((function(){return function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?nn(Object(n),!0).forEach((function(e){Object(a.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):nn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({position:"absolute"},t.style)}),[t.style]);return c.createElement("div",{style:f,className:i},c.createElement("div",{className:"mapboxgl-ctrl mapboxgl-ctrl-group",ref:r},s&&ln("zoom-in",l,(function(){cn(n,t,{zoom:n.viewport.zoom+1})})),s&&ln("zoom-out",u,(function(){cn(n,t,{zoom:n.viewport.zoom-1})})),o&&ln("compass",h,(function(){cn(n,t,{bearing:0,pitch:0})}),function(t){var e=Object(c.useMemo)((function(){return t.map?an(t.map.version):2}),[t.map]),n=t.viewport.bearing,r={transform:"rotate(".concat(-n,"deg)")};return 2===e?c.createElement("span",{className:"mapboxgl-ctrl-icon","aria-hidden":"true",style:r}):c.createElement("span",{className:"mapboxgl-ctrl-compass-arrow",style:r})}(n))))}un.propTypes=on,un.defaultProps=sn;c.memo(un);function hn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}var fn=Object.assign({},pe,{className:l.string,style:l.object,maxWidth:l.number,unit:l.oneOf(["imperial","metric","nautical"])}),dn=Object.assign({},de,{className:"",maxWidth:100,unit:"metric"});function pn(t){var e=me(t),n=e.context,r=e.containerRef,i=u(Object(c.useState)(null),2),o=i[0],s=i[1];Object(c.useEffect)((function(){if(n.map){var t=new g.a.ScaleControl;t._map=n.map,t._container=r.current,s(t)}}),[n.map]),o&&(o.options=t,o._onMove());var l=Object(c.useMemo)((function(){return function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
21e%2?hn(Object(n),!0).forEach((function(e){Object(a.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):hn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({position:"absolute"},t.style)}),[t.style]);return c.createElement("div",{style:l,className:t.className},c.createElement("div",{ref:r,className:"mapboxgl-ctrl mapboxgl-ctrl-scale"}))}pn.propTypes=fn,pn.defaultProps=dn;c.memo(pn);var gn="undefined"!=typeof window&&window.devicePixelRatio||1,mn=Object.assign({},pe,{redraw:l.func.isRequired});function yn(t){var e=me(t),n=e.context,r=e.containerRef,i=u(Object(c.useState)(null),2),o=i[0],s=i[1];Object(c.useEffect)((function(){s(r.current.getContext("2d"))}),[]);var a=n.viewport,l=n.isDragging;return o&&(o.save(),o.scale(gn,gn),t.redraw({width:a.width,height:a.height,ctx:o,isDragging:l,project:a.project,unproject:a.unproject}),o.restore()),c.createElement("canvas",{ref:r,width:a.width*gn,height:a.height*gn,style:{width:"".concat(a.width,"px"),height:"".concat(a.height,"px"),position:"absolute",left:0,top:0}})}yn.propTypes=mn,yn.defaultProps={captureScroll:!1,captureDrag:!1,captureClick:!1,captureDoubleClick:!1,capturePointerMove:!1};function _n(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}var vn=Object.assign({},pe,{redraw:l.func.isRequired,style:l.object});function bn(t){var e=me(t),n=e.context,r=e.containerRef,i=n.viewport,o=n.isDragging,s=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?_n(Object(n),!0).forEach((function(e){Object(a.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_n(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({position:"absolute",left:0,top:0,width:i.width,height:i.height},t.style);return c.createElement("div",{ref:r,style:s},t.redraw({width:i.width,height:i.height,isDragging:o,project:i.project,unproject:i.unproject}))}bn.propTypes=vn,bn.defaultProps={captureScroll:!1,captureDrag:!1,captureClick:!1,captureDoubleClick:!1,capturePointerMove:!1};function xn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}var wn=Object.assign({},pe,{redraw:l.func.isRequired,style:l.object});function En(t){var e=me(t),n=e.context,r=e.containerRef,i=n.viewport,o=n.isDragging,s=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?xn(Object(n),!0).forEach((function(e){Object(a.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):xn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({position:"absolute",left:0,top:0},t.style);return c.createElement("svg",{width:i.width,height:i.height,ref:r,style:s},t.redraw({width:i.width,height:i.height,isDragging:o,project:i.project,unproject:i.unproject}))}En.propTypes=wn,En.defaultProps={captureScroll:!1,captureDrag:!1,captureClick:!1,captureDoubleClick:!1,capturePointerMove:!1};g.a&&g.a.setRTLTextPlugin},,,function(t,e,n){t.exports=function(){var t=[],e=[],n={},r={},i={};function o(t){return"string"==typeof t?new RegExp("^"+t+"$","i"):t}function s(t,e){return t===e?e:t===t.toUpperCase()?e.toUpperCase():t[0]===t[0].toUpperCase()?(n=e).charAt(0).toUpperCase()+n.substr(1).toLowerCase():e.toLowerCase();var n}function a(t,e){return t.replace(/\$(\d{1,2})/g,(function(t,n){return e[n]||""}))}function c(t,e,r){return function(i){var o=i.toLowerCase();return e.hasOwnProperty(o)?s(i,o):t.hasOwnProperty(o)?s(i,t[o]):function(t,e,r){if(!t.length||n.hasOwnProperty(t))return e;for(var i=r.length;i--;){var o=r[i];if(o[0].test(e))return e.replace(o[0],(function(t,e,n){var r=a(o[1],arguments);return s(""===t?n[e-1]:t,r)}))}return e}(o,i,r)}}function l(t,e,n){return(n?e+" ":"")+(1===e?l.singular(t):l.plural(t))}return l.plural=c(i,r,t),l.singular=c(r,i,e),l.addPluralRule=function(e,n){t.push([o(e),n])},l.addSingularRule=function(t,n){e.push([o(t),n])},l.addUncountableRule=function(t){"string"!=typeof t?(l.addPluralRule(t,"$0"),l.addSingularRule(t,"$0")):n[t.toLowerCase()]=!0},l.addIrregularRule=function(t,e){e=e.toLowerCase(),t=t.toLowerCase(),i[t]=e,r[e]=t},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["whiskey","whiskies"]].forEac
21h((function(t){return l.addIrregularRule(t[0],t[1])})),[[/s?$/i,"s"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|tlas|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[emjzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|octop|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/(m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach((function(t){return l.addPluralRule(t[0],t[1])})),[[/s$/i,""],[/(ss)$/i,"$1"],[/((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)(?:sis|ses)$/i,"$1sis"],[/(^analy)(?:sis|ses)$/i,"$1sis"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/(m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|tlas|gas|(?:her|at|gr)o|ris)(?:es)?$/i,"$1"],[/(e[mn]u)s?$/i,"$1"],[/(movie|twelve)s$/i,"$1"],[/(cris|test|diagnos)(?:is|es)$/i,"$1is"],[/(alumn|syllab|octop|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach((function(t){return l.addSingularRule(t[0],t[1])})),["advice","adulthood","agenda","aid","alcohol","ammo","athletics","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","commerce","cod","cooperation","corps","digestion","debris","diabetes","energy","equipment","elk","excretion","expertise","flounder","fun","gallows","garbage","graffiti","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","news","pike","plankton","pliers","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","species","staff","swine","trout","traffic","transporation","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pox$/i,/ois$/i,/deer$/i,/fish$/i,/sheep$/i,/measles$/i,/[^aeiou]ese$/i].forEach(l.addUncountableRule),l}()},,,,,function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return o}));var r=n(571),i=n.n(r);function o(t){var e=null;if(document.cookie&&""!=document.cookie)for(var n=document.cookie.split(";"),r=0;r<n.length;r++){var o,s=i()(o=n[r]).call(o);if(s.substring(0,t.length+1)==t+"="){e=decodeURIComponent(s.substring(t.length+1));break}}return e}},,function(t,e,n){"use strict";var r,i;n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return i})),function(t){t.DAILY="0 0 * * *",t.WEEKLY="0 0 * * 1",t.MONTHLY="0 0 1 * *"}(r||(r={})),function(t){t.PAPER_VERTICAL="paper-pdf",t.PAPER_HORIZONTAL_ORIGINAL="paper-horizontal-pdf"}(i||(i={}))},function(t,e,n){"use strict";var r=n(55),i=n(99),o=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt;e.a=function(t){if("number"==typeof t)return t;if(Object(i.a)(t))return NaN;if(Object(r.a)(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Object(r.a)(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(o,"");var n=a.test(t);return n||c.test(t)?l(t.slice(2),n?2:8):s.test(t)?NaN:+t}},,function(t,e,n){"use strict";var r=n(367);var i=function(t){return t!=t};var o=function(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1};e.a=function(t,e,n){return e==e?o(t,e,n):Object(r.a)(t,i,n)}},,function(t,e){t.exports=!1},function(t,e,n){var r=n(515),i=n(57),o=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?o(r[t])||o(i[t]):r[t]&&r[t][e]||i[t]&&i[t][e]}},function(t,e,n){var r=n(255),i=Math.max,o=Math.min;t.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):o(n,e)}},function(t,e,n){var r=n(73),i=n(935),o=n(933),s=n(580),a=n(1151),c=n(930),l=n(676)("IE_PROTO"),u=function(){},h=function(){var t,e=c("iframe"),n=o.length;for(e.style.display="none",a.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),h=t.F;n--;)delete h.prototype[o[n]];return h()};t.exports=Object.create||function(t,e){var n;return null!==t?(u.prototype=r(t),n=new u,u.prototype=null,n[l]=t):n=h(),void 0===e?n:i(n,e)},s[l]=!0},function(t,e,n){var r=n(234);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var r=n(82),i=n(404),o=n(184),s=r("unscopables"),a=Array.prototype;null==a[s]&&o(a,s,i(null)),t.exports=function(t){a[s][t]=!0}},function(t,e){t.exports=function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t}},function(t,e,n){"use strict";(function(t,r){n.d(e,"a",(function(){return i}));"undefined"!=typeof self&&self,"undefined"!=typeof window&&window,"undefined"!=typeof document&&document;const i=Boolean("object"!=typeof r||"[object process]"!==String(r)||r.browser),o=void 0!==r&&r.version&&/v([0-9]*)/.exec(r.version);o&&parseFloat(o[1])}).call(this,n(121),n(297))},function(t,e,n){"use strict";n.r(e),n.d(e,"VERSION",(function(){return r.a})),n.d(e,"self",(function(){return i.e})),n.d(e,"window",(function(){return i.f})),n.d(e,"global",(function(){return i.c})),n.d(e,"document",(function(){return i.b})),n.d(e,"process",(function(){return i.d})),n.d(e,"console",(function(){return i.a})),n.d(e,"isBrowser",(function(){return o.a})),n.d(e,"isBrowserMainThread",(function(){return o.b})),n.d(e,"getBrowser",(function(){return s.a})),n.d(e,"isMobile",(function(){return s.b})),n.d(e,"isElectron",(function(){return a.a})),n.d(e,"assert",(function(){return c}));var r=n(1185),i=n(214),o=n(411),s=n(973),a=n(525);function c(t,e){if(!t)throw new Error(e||"Assertion failed")}},,function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return o}
21));var r=n(525);function i(){return!("object"==typeof t&&"[object process]"===String(t)&&!t.browser)||Object(r.a)()}function o(){return i()&&"undefined"!=typeof document}}).call(this,n(297))},function(t,e,n){t.exports=n(409)},,,,function(t,e,n){"use strict";var r,i,o,s,a,c,l,u;n.d(e,"e",(function(){return r})),n.d(e,"f",(function(){return i})),n.d(e,"d",(function(){return o})),n.d(e,"b",(function(){return c})),n.d(e,"c",(function(){return l})),n.d(e,"a",(function(){return u})),function(t){t.alert="alert",t.subscription="subscription",t.fileDownload="file_download",t.instantReport="instant_report",t.scheduledReport="scheduled_report"}(r||(r={})),function(t){t.ALL="ALL",t.ALERTS="alerts",t.SUBSCRIPTIONS="subscriptions"}(i||(i={})),function(t){t.CHARTS="chart",t.CONNECTIONS="connections",t.SCREENER="screen",t.DASHBOARD="dashboard"}(o||(o={})),function(t){t.DAILY="0 0 * * *",t.WEEKLY="0 0 * * 1",t.MONTHLY="0 0 1 * *"}(s||(s={})),function(t){t.csv="csv",t.xls="xls",t.xlsx="xlsx"}(a||(a={})),function(t){t.ready="ready",t.generating="generating"}(c||(c={})),function(t){t.ready="ready",t.generating="generating",t.failed="failed"}(l||(l={})),function(t){t.running="running",t.finished="finished",t.canceled="canceled"}(u||(u={}))},function(t,e,n){"use strict";var r=n(225),i=n(94);e.a=function(t,e){var n=-1,o=Object(i.a)(t)?Array(t.length):[];return Object(r.a)(t,(function(t,r,i){o[++n]=e(t,r,i)})),o}},function(t,e,n){"use strict";var r=n(116),i=n(635),o=n(634);e.a=function(t,e){return Object(o.a)(Object(i.a)(t,e,r.a),t+"")}},function(t,e,n){"use strict";e.a=function(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r<i;)o[r]=t[r+e];return o}},function(t,e,n){"use strict";var r=function(t){return function(e,n,r){for(var i=-1,o=Object(e),s=r(e),a=s.length;a--;){var c=s[t?a:++i];if(!1===n(o[c],c,o))break}return e}}(),i=n(104);e.a=function(t,e){return t&&r(t,e,i.a)}},function(t,e,n){t.exports=n(906)},function(t,e,n){"use strict";var r=n(399);e.a=function(t,e){return!!(null==t?0:t.length)&&Object(r.a)(t,e,0)>-1}},function(t,e,n){"use strict";e.a=function(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}},function(t,e,n){"use strict";var r=n(173);function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=t.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(i.Cache||r.a),n}i.Cache=r.a,e.a=i},,,,function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return he}));var r,i,o=n(2),s=n.n(o),a=n(0),c=n.n(a),l=n(778),u=n(779),h=n(780),f=n(781),d=n(782),p=n(783),g=n(784),m=n(785),y=n(786),_=n(787),v=n(788),b=n(789),x=n(790),w=n(791),E=n(692),S=n(792),C=n(793),A=n(794),I=n(795),T=n(796),M=n(797),F=n(798),B=n(799),L=n(800),O=n(801),U=n(693),k=n(802),P=n(803),D=n(804),R=n(805),j=n(806),z=n(807),Q=n(808),N=n(669),V=n(809),G=n(810),H=n(811),Z=n(812),W=n(813),X=n(814),Y=n(815),q=n(816),K=n(817),J=n(818),$=n(819),tt=n(820),et=n(821),nt=n(822),rt=n(823),it=n(824),ot=n(825),st=n(826),at=n(827),ct=n(828),lt=n(829),ut=n(830),ht=n(831),ft=n(832),dt=n(833),pt=n(834),gt=n(835),mt=n(836),yt=n(837),_t=n(838),vt=n(839),bt=n(840),xt=n(841),wt=n(842),Et=n(843),St=n(844),Ct=n(845),At=n(846),It=n(847),Tt=n(848),Mt=n(849),Ft=n(850),Bt=n(851),Lt=n(852),Ot=n(853),Ut=n(854),kt=n(694),Pt=n(855),Dt=n(695),Rt=n(856),jt=n(857),zt=n(858),Qt=n(859),Nt=n(860),Vt=n(861),Gt=n(862),Ht=n(863),Zt=n(864),Wt=n(865),Xt=n(866),Yt=n(867),qt=n(868),Kt=n(339),Jt=n(869),$t=n(870),te=n(871),ee=n(872),ne=n(873),re=n(874),ie=n(875),oe=n(876),se=n(877),ae=n(878),ce=n(879),le=n(880);!function(t){t[t.Add=0]="Add",t[t.AddAlert=1]="AddAlert",t[t.AddChart=2]="AddChart",t[t.AddLevel=3]="AddLevel",t[t.Anomaly=4]="Anomaly",t[t.ArrowBack=5]="ArrowBack",t[t.ArrowLeftLarge=6]="ArrowLeftLarge",t[t.ArrowRight=7]="ArrowRight",t[t.ArrowRightVertical=8]="ArrowRightVertical",t[t.BarChart=9]="BarChart",t[t.Bell=10]="Bell",t[t.Bookmark=11]="Bookmark",t[t.Calendar=12]="Calendar",t[t.ChartsView=13]="ChartsView",t[t.Check=14]="Check",t[t.CheckBig=15]="CheckBig",t[t.CheckInflated=16]="CheckInflated",t[t.CheckMedium=17]="CheckMedium",t[t.ChevronDown=18]="ChevronDown",t[t.ChevronRight=19]="ChevronRight",t[t.ChevronRightBig=20]="ChevronRightBig",t[t.ChevronRightMedium=21]="ChevronRightMedium",t[t.ChevronUp=22]="ChevronUp",t[t.Clear=23]="Clear",t[t.Code=24]="Code",t[t.Cog=25]="Cog",t[t.Company=26]="Company",t[t.Crop=27]="Crop",t[t.Cross=28]="Cross",t[t.CrossInflated=29]="CrossInflated",t[t.CrossMedium=30]="CrossMedium",t[t.CrossLarge=31]="CrossLarge",t[t.CSV=32]="CSV",t[t.Datalab=33]="Datalab",t[t.Description=34]="Description",t[t.Deselect=35]="Deselect",t[t.Document=36]="Document",t[t.DocumentSetup=37]="DocumentSetup",t[t.Dollar=38]="Dollar",t[t.Download=39]="Download",t[t.DragHandle=40]="DragHandle",t[t.Duplicate=41]="Duplicate",t[t.Edit=42]="Edit",t[t.EditorBold=43]="EditorBold",t[t.EditorBullets=44]="EditorBullets",t[t.EditorItalic=45]="EditorItalic",t[t.EditorLink=46]="EditorLink",t[t.Ellipsis=47]="Ellipsis",t[t.Embed=48]="Embed",t[t.Error=49]="Error",t[t.Female=50]="Female",t[t.Filter=51]="Filter",t[t.FilterByLocation=52]="FilterByLocation",t[t.Gif=53]="Gif",t[t.Globe=54]="Globe",t[t.GlobeLock=55]="GlobeLock",t[t.Hamburger=56]="Hamburger",t[t.Help=57]="Help",t[t.Heatmap=58]="Heatmap",t[t.Histogram=59]="Histogram",t[t.Home=60]="Home",t[t.Info=61]="Info",t[t.LineChart=62]="LineChart",t[t.Link=63]="Link",t[t.Lock=64]="Lock",t[t.Log=65]="Log",t[t.MagnifyingGlass=66]="MagnifyingGlass",t[t.Male=67]="Male",t[t.MapColors=68]="MapColors",t[t.MapPin=69]="MapPin",t[t.MapView=70]="MapView",t[t.Minus=71]="Minus",t[t.MinusInflated=72]="MinusInflated",t[t.MinusSmall=73]="MinusSmall",t[t.More=74]="More",t[t.Move=75]="Move",t[t.Open=76]="Open",t[t.OpenExternal=77]="OpenExternal",t[t.Padlock=78]="Padlock",t[t.Pause=79]="Pause",t[t.PieChart=80]="PieChart",t[t.Play=81]="Play",t[t.Plus=82]="Plus",t[t.PlusSmall=83]="PlusSmall",t[t.PNG=84]="PNG",t[t.Refresh=85]="Refresh",t[t.RemoveAlert=86]="RemoveAlert",t[t.Reset=87]="Reset",t[t.Save=88]="Save",t[t.Screener=89]="Screener",t[t.Share=90]="Share",t[t.SimpleBell=91]="SimpleBell",t[t.Sort=92]="Sort",t[t.SortArrow=93]="SortArrow",t[t.Star=94]="Star",t[t.Subscribe=95]="Subscribe",t[t.Team=96]="Team",t[t.TableView=97]="TableView",t[t.Timeline=98]="Timeline",t[t.Trash=99]="Trash",t[t.WarningSign=100]="WarningSign",t[t.WarningSmall=101]="WarningSmall",t[t.W
21idget=102]="Widget",t[t.WordCloud=103]="WordCloud",t[t.XLS=104]="XLS",t[t.ZoomIn=105]="ZoomIn",t[t.ZoomOut=106]="ZoomOut",t[t.None=107]="None"}(i||(i={}));var ue=((r={})[i.Add]=l,r[i.AddAlert]=u,r[i.AddChart]=h,r[i.AddLevel]=f,r[i.Anomaly]=d,r[i.ArrowBack]=p,r[i.ArrowLeftLarge]=g,r[i.ArrowRight]=m,r[i.ArrowRightVertical]=y,r[i.BarChart]=_,r[i.Bell]=v,r[i.Bookmark]=b,r[i.Calendar]=x,r[i.ChartsView]=w,r[i.Check]=E,r[i.CheckBig]=S,r[i.CheckInflated]=C,r[i.CheckMedium]=A,r[i.ChevronDown]=I,r[i.ChevronRight]=T,r[i.ChevronRightBig]=M,r[i.ChevronRightMedium]=F,r[i.ChevronUp]=B,r[i.Clear]=L,r[i.Code]=O,r[i.Cog]=U,r[i.Company]=k,r[i.Crop]=P,r[i.Cross]=D,r[i.CrossInflated]=R,r[i.CrossMedium]=z,r[i.CrossLarge]=j,r[i.CSV]=Q,r[i.Datalab]=V,r[i.Description]=G,r[i.Deselect]=H,r[i.Document]=Z,r[i.DocumentSetup]=W,r[i.Dollar]=X,r[i.Download]=Y,r[i.DragHandle]=q,r[i.Duplicate]=K,r[i.Edit]=J,r[i.EditorBold]=$,r[i.EditorBullets]=tt,r[i.EditorItalic]=et,r[i.EditorLink]=nt,r[i.Ellipsis]=rt,r[i.Embed]=it,r[i.Error]=ot,r[i.Female]=st,r[i.Filter]=at,r[i.FilterByLocation]=ct,r[i.Gif]=lt,r[i.Globe]=ut,r[i.GlobeLock]=ht,r[i.Hamburger]=ft,r[i.Help]=pt,r[i.Heatmap]=dt,r[i.Histogram]=gt,r[i.Home]=mt,r[i.Info]=yt,r[i.LineChart]=_t,r[i.Link]=vt,r[i.Lock]=bt,r[i.Log]=xt,r[i.MagnifyingGlass]=wt,r[i.Male]=Et,r[i.MapColors]=St,r[i.MapPin]=Ct,r[i.MapView]=At,r[i.Minus]=It,r[i.MinusInflated]=Tt,r[i.MinusSmall]=Mt,r[i.More]=Ft,r[i.Move]=Bt,r[i.Open]=Lt,r[i.OpenExternal]=Ot,r[i.Padlock]=Ut,r[i.Pause]=kt,r[i.PieChart]=Pt,r[i.Play]=Dt,r[i.Plus]=Rt,r[i.PlusSmall]=jt,r[i.PNG]=zt,r[i.Refresh]=Qt,r[i.RemoveAlert]=Nt,r[i.Reset]=Vt,r[i.Save]=Gt,r[i.Screener]=Ht,r[i.Share]=Zt,r[i.SimpleBell]=Wt,r[i.Sort]=Xt,r[i.SortArrow]=Yt,r[i.Star]=qt,r[i.Subscribe]=Jt,r[i.Team]=te,r[i.TableView]=$t,r[i.Timeline]=ee,r[i.Trash]=ne,r[i.WarningSign]=re,r[i.WarningSmall]=ie,r[i.Widget]=oe,r[i.WordCloud]=se,r[i.XLS]=ae,r[i.ZoomIn]=ce,r[i.ZoomOut]=le,r[i.None]="",r),he=function(t){var e=t.shape,n=t.className,r=t.onClick,i=t.onMouseDown,o=t.onMouseUp,a=t.onMouseEnter,l=t.onMouseLeave,u=t.hug,h=ue[e];if(void 0===h)throw new Error("no svg for "+e);return c.a.createElement(N.a,{className:s()(Kt.Icon,n),svg:h,onClick:r,onMouseDown:i,onMouseUp:o,onMouseEnter:a,onMouseLeave:l,hug:u})}},,function(t,e,n){"use strict";function r(t,e=(()=>!0)){return Array.isArray(t)?function t(e,n,r){let i=-1;for(;++i<e.length;){const o=e[i];Array.isArray(o)?t(o,n,r):n(o)&&r.push(o)}return r}(t,e,[]):e(t)?[t]:[]}function i({target:t,source:e,start:n=0,count:r=1}){const i=e.length,o=r*i;let s=0;for(let r=n;s<i;s++)t[r++]=e[s];for(;s<o;)s<o-s?(t.copyWithin(n+s,n,n+s),s*=2):(t.copyWithin(n+s,n,n+o-s),s=o);return t}n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return i}))},function(t,e,n){t.exports=n(951)},,function(t,e,n){var r=n(56),i=n(294),o=r(r.bind);t.exports=function(t,e){return i(t),void 0===e?t:o?o(t,e):function(){return t.apply(e,arguments)}}},function(t,e,n){"use strict";var r,i;n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return s})),function(t){t.ALL="all",t.YOURS="yours",t.TEAM="team",t.PUBLIC="public",t.PUBLIC_FEATURED="public_featured",t.GLOBAL="global"}(i||(i={}));var o=[i.YOURS,i.TEAM,i.PUBLIC],s=((r={})[i.ALL]="All",r[i.YOURS]="Yours",r[i.TEAM]="Team",r[i.PUBLIC]="Public",r[i.PUBLIC_FEATURED]="Featured",r[i.GLOBAL]="Global",r)},,,,,,,,,,,,,,function(t,e,n){var r=n(26),i=n(716),o=r["__core-js_shared__"]||i("__core-js_shared__",{});t.exports=o},function(t,e,n){"use strict";e.a=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}},,,function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var r=n(1149),i=n(933).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},function(t,e,n){var r=n(283);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(580),i=n(72),o=n(138),s=n(110).f,a=n(579),c=n(585),l=a("meta"),u=0,h=Object.isExtensible||function(){return!0},f=function(t){s(t,l,{value:{objectID:"O"+ ++u,weakData:{}}})},d=t.exports={REQUIRED:!1,fastKey:function(t,e){if(!i(t))return"symbol"==typeof t?t:("str
21ing"==typeof t?"S":"P")+t;if(!o(t,l)){if(!h(t))return"F";if(!e)return"E";f(t)}return t[l].objectID},getWeakData:function(t,e){if(!o(t,l)){if(!h(t))return!0;if(!e)return!1;f(t)}return t[l].weakData},onFreeze:function(t){return c&&d.REQUIRED&&h(t)&&!o(t,l)&&f(t),t}};r[l]=!0},function(t,e,n){"use strict";var r=n(284),i=n(110),o=n(452);t.exports=function(t,e,n){var s=r(e);s in t?i.f(t,s,o(0,n)):t[s]=n}},function(t,e,n){"use strict";function r(t,e,n){if(n=n||t.byteLength,t.byteLength<n||e.byteLength<n)return!1;const r=new Uint8Array(t),i=new Uint8Array(e);for(let t=0;t<r.length;++t)if(r[t]!==i[t])return!1;return!0}function i(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];const r=e.map(t=>t instanceof ArrayBuffer?new Uint8Array(t):t),i=r.reduce((t,e)=>t+e.byteLength,0),o=new Uint8Array(i);let s=0;for(const t of r)o.set(t,s),s+=t.byteLength;return o.buffer}n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i}))},function(t,e,n){"use strict";function r(t,e){if(!t)throw new Error("math.gl assertion ".concat(e))}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";const r={name:"fp32",vs:"#ifdef LUMA_FP32_TAN_PRECISION_WORKAROUND\nconst float TWO_PI = 6.2831854820251465;\nconst float PI_2 = 1.5707963705062866;\nconst float PI_16 = 0.1963495463132858;\n\nconst float SIN_TABLE_0 = 0.19509032368659973;\nconst float SIN_TABLE_1 = 0.3826834261417389;\nconst float SIN_TABLE_2 = 0.5555702447891235;\nconst float SIN_TABLE_3 = 0.7071067690849304;\n\nconst float COS_TABLE_0 = 0.9807852506637573;\nconst float COS_TABLE_1 = 0.9238795042037964;\nconst float COS_TABLE_2 = 0.8314695954322815;\nconst float COS_TABLE_3 = 0.7071067690849304;\n\nconst float INVERSE_FACTORIAL_3 = 1.666666716337204e-01;\nconst float INVERSE_FACTORIAL_5 = 8.333333767950535e-03;\nconst float INVERSE_FACTORIAL_7 = 1.9841270113829523e-04;\nconst float INVERSE_FACTORIAL_9 = 2.75573188446287533e-06;\n\nfloat sin_taylor_fp32(float a) {\n float r, s, t, x;\n\n if (a == 0.0) {\n return 0.0;\n }\n\n x = -a * a;\n s = a;\n r = a;\n\n r = r * x;\n t = r * INVERSE_FACTORIAL_3;\n s = s + t;\n\n r = r * x;\n t = r * INVERSE_FACTORIAL_5;\n s = s + t;\n\n r = r * x;\n t = r * INVERSE_FACTORIAL_7;\n s = s + t;\n\n r = r * x;\n t = r * INVERSE_FACTORIAL_9;\n s = s + t;\n\n return s;\n}\n\nvoid sincos_taylor_fp32(float a, out float sin_t, out float cos_t) {\n if (a == 0.0) {\n sin_t = 0.0;\n cos_t = 1.0;\n }\n sin_t = sin_taylor_fp32(a);\n cos_t = sqrt(1.0 - sin_t * sin_t);\n}\n\nfloat tan_taylor_fp32(float a) {\n float sin_a;\n float cos_a;\n\n if (a == 0.0) {\n return 0.0;\n }\n float z = floor(a / TWO_PI);\n float r = a - TWO_PI * z;\n\n float t;\n float q = floor(r / PI_2 + 0.5);\n int j = int(q);\n\n if (j < -2 || j > 2) {\n return 1.0 / 0.0;\n }\n\n t = r - PI_2 * q;\n\n q = floor(t / PI_16 + 0.5);\n int k = int(q);\n int abs_k = int(abs(float(k)));\n\n if (abs_k > 4) {\n return 1.0 / 0.0;\n } else {\n t = t - PI_16 * q;\n }\n\n float u = 0.0;\n float v = 0.0;\n\n float sin_t, cos_t;\n float s, c;\n sincos_taylor_fp32(t, sin_t, cos_t);\n\n if (k == 0) {\n s = sin_t;\n c = cos_t;\n } else {\n if (abs(float(abs_k) - 1.0) < 0.5) {\n u = COS_TABLE_0;\n v = SIN_TABLE_0;\n } else if (abs(float(abs_k) - 2.0) < 0.5) {\n u = COS_TABLE_1;\n v = SIN_TABLE_1;\n } else if (abs(float(abs_k) - 3.0) < 0.5) {\n u = COS_TABLE_2;\n v = SIN_TABLE_2;\n } else if (abs(float(abs_k) - 4.0) < 0.5) {\n u = COS_TABLE_3;\n v = SIN_TABLE_3;\n }\n if (k > 0) {\n s = u * sin_t + v * cos_t;\n c = u * cos_t - v * sin_t;\n } else {\n s = u * sin_t - v * cos_t;\n c = u * cos_t + v * sin_t;\n }\n }\n\n if (j == 0) {\n sin_a = s;\n cos_a = c;\n } else if (j == 1) {\n sin_a = c;\n cos_a = -s;\n } else if (j == -1) {\n sin_a = -c;\n cos_a = s;\n } else {\n sin_a = -s;\n cos_a = -c;\n }\n return sin_a / cos_a;\n}\n#endif\n\nfloat tan_fp32(float a) {\n#ifdef LUMA_FP32_TAN_PRECISION_WORKAROUND\n return tan_taylor_fp32(a);\n#else\n return tan(a);\n#endif\n}\n",fs:null};var i={name:"geometry",vs:"\nstruct VertexGeometry {\n vec4 position;\n vec3 worldPosition;\n vec3 worldPositionAlt;\n vec3 normal;\n vec2 uv;\n vec3 pickingColor;\n} geometry = VertexGeometry(\n vec4(0.0),\n vec3(0.0),\n vec3(0.0),\n vec3(0.0),\n vec2(0.0),\n vec3(0.0)\n);\n",fs:"\n#define SMOOTH_EDGE_RADIUS 0.5\n\nstruct FragmentGeometry {\n vec2 uv;\n} geometry;\n\nfloat smoothedge(float edge, float x) {\n return smoothstep(edge - SMOOTH_EDGE_RADIUS, edge + SMOOTH_EDGE_RADIUS, x);\n}\n"},o=n(39);const s=Object.keys(o.a).map(t=>"const int COORDINATE_SYSTEM_".concat(t," = ").concat(o.a[t],";")).join(""),a=Object.keys(o.c).map(t=>"const int PROJECTION_MODE_".concat(t," = ").concat(o.c[t],";")).join(""),c=Object.keys(o.d).map(t=>"const int UNIT_".concat(t.toUpperCase()," = ").concat(o.d[t],";")).join("");var l="".concat(s,"\n").concat(a,"\n").concat(c,"\n\nuniform int project_uCoordinateSystem;\nuniform int project_uProjectionMode;\nuniform float project_uScale;\nuniform bool project_uWrapLongitude;\nuniform vec3 project_uCommonUnitsPerMeter;\nuniform vec3 project_uCommonUnitsPerWorldUnit;\nuniform vec3 project_uCommonUnitsPerWorldUnit2;\nuniform vec4 project_uCenter;\nuniform mat4 project_uModelMatrix;\nuniform mat4 project_uViewProjectionMatrix;\nuniform vec2 project_uViewportSize;\nuniform float project_uDevicePixelRatio;\nuniform float project_uFocalDistance;\nuniform vec3 project_uCameraPosition;\nuniform vec3 project_uCoordinateOrigin;\nuniform vec3 project_uCommonOrigin;\nuniform bool project_uPseudoMeters;\n\nconst float TILE_SIZE = 512.0;\nconst float PI = 3.1415926536;\nconst float WORLD_SCALE = TILE_SIZE / (PI * 2.0);\nconst vec3 ZERO_64_LOW = vec3(0.0);\nconst float EARTH_RADIUS = 6370972.0;\nconst float GLOBE_RADIUS = 256.0;\nfloat project_size() {\n if (project_uProjectionMode == PROJECTION_MODE_WEB_MERCATOR &&\n project_uCoordinateSystem == COORDINATE_SYSTEM_LNGLAT &&\n project_uPseudoMeters == false) {\n \n if (geometry.position.w == 0.0) {\n float y = clamp(geometry.worldPosition.y, -89.9, 89.9);\n return 1.0 / cos(radians(y));\n }\n \n float y = geometry.position.y / TILE_SIZE * 2.0 - 1.0;
21\n float y2 = y * y;\n float y4 = y2 * y2;\n float y6 = y4 * y2;\n return 1.0 + 4.9348 * y2 + 4.0587 * y4 + 1.5642 * y6;\n }\n return 1.0;\n}\nfloat project_size(float meters) {\n return meters * project_uCommonUnitsPerMeter.z * project_size();\n}\n\nvec2 project_size(vec2 meters) {\n return meters * project_uCommonUnitsPerMeter.xy * project_size();\n}\n\nvec3 project_size(vec3 meters) {\n return meters * project_uCommonUnitsPerMeter * project_size();\n}\n\nvec4 project_size(vec4 meters) {\n return vec4(meters.xyz * project_uCommonUnitsPerMeter, meters.w);\n}\nvec3 project_normal(vec3 vector) {\n vec4 normal_modelspace = project_uModelMatrix * vec4(vector, 0.0);\n return normalize(normal_modelspace.xyz * project_uCommonUnitsPerMeter);\n}\n\nvec4 project_offset_(vec4 offset) {\n float dy = offset.y;\n vec3 commonUnitsPerWorldUnit = project_uCommonUnitsPerWorldUnit + project_uCommonUnitsPerWorldUnit2 * dy;\n return vec4(offset.xyz * commonUnitsPerWorldUnit, offset.w);\n}\nvec2 project_mercator_(vec2 lnglat) {\n float x = lnglat.x;
21\n if (project_uWrapLongitude) {\n x = mod(x + 180., 360.0) - 180.;\n }\n float y = clamp(lnglat.y, -89.9, 89.9);\n return vec2(\n radians(x) + PI,\n PI + log(tan_fp32(PI * 0.25 + radians(y) * 0.5))\n ) * WORLD_SCALE;\n}\n\nvec3 project_globe_(vec3 lnglatz) {\n float lambda = radians(lnglatz.x);\n float phi = radians(lnglatz.y);\n float cosPhi = cos(phi);\n float D = (lnglatz.z / EARTH_RADIUS + 1.0) * GLOBE_RADIUS;\n\n return vec3(\n sin(lambda) * cosPhi,\n -cos(lambda) * cosPhi,\n sin(phi)\n ) * D;\n}\nvec4 project_position(vec4 position, vec3 position64Low) {\n vec4 position_world = project_uModelMatrix * position;\n if (project_uProjectionMode == PROJECTION_MODE_WEB_MERCATOR) {\n if (project_uCoordinateSystem == COORDINATE_SYSTEM_LNGLAT) {\n return vec4(\n project_mercator_(position_world.xy),\n project_size(position_world.z),\n position_world.w\n );\n }\n if (project_uCoordinateSystem == COORDINATE_SYSTEM_CARTESIAN) {\n position_world.xyz += project_uCoordinateOrigin;\n }\n }\n if (project_uProjectionMode == PROJECTION_MODE_GLOBE) {\n if (project_uCoordinateSystem == COORDINATE_SYSTEM_LNGLAT) {\n return vec4(\n project_globe_(position_world.xyz),\n position_world.w\n );\n }\n }\n if (project_uProjectionMode == PROJECTION_MODE_WEB_MERCATOR_AUTO_OFFSET) {\n if (project_uCoordinateSystem == COORDINATE_SYSTEM_LNGLAT) {\n if (abs(position_world.y - project_uCoordinateOrigin.y) > 0.25) {\n return vec4(\n project_mercator_(position_world.xy) - project_uCommonOrigin.xy,\n project_size(position_world.z),\n position_world.w\n );\n }\n }\n }\n if (project_uProjectionMode == PROJECTION_MODE_IDENTITY ||\n (project_uProjectionMode == PROJECTION_MODE_WEB_MERCATOR_AUTO_OFFSET &&\n (project_uCoordinateSystem == COORDINATE_SYSTEM_LNGLAT ||\n project_uCoordinateSystem == COORDINATE_SYSTEM_CARTESIAN))) {\n position_world.xyz -= project_uCoordinateOrigin;\n }\n return project_offset_(position_world + project_uModelMatrix * vec4(position64Low, 0.0));\n}\n\nvec4 project_position(vec4 position) {\n return project_position(position, ZERO_64_LOW);\n}\n\nvec3 project_position(vec3 position, vec3 position64Low) {\n vec4 projected_position = project_position(vec4(position, 1.0), position64Low);\n return projected_position.xyz;\n}\n\nvec3 project_position(vec3 position) {\n vec4 projected_position = project_position(vec4(position, 1.0), ZERO_64_LOW);\n return projected_position.xyz;\n}\n\nvec2 project_position(vec2 position) {\n vec4 projected_position = project_position(vec4(position, 0.0, 1.0), ZERO_64_LOW);\n return projected_position.xy;\n}\n\nvec4 project_common_position_to_clipspace(vec4 position, mat4 viewProjectionMatrix, vec4 center) {\n return viewProjectionMatrix * position + center;\n}\nvec4 project_common_position_to_clipspace(vec4 position) {\n return project_common_position_to_clipspace(position, project_uViewProjectionMatrix, project_uCenter);\n}\nvec2 project_pixel_size_to_clipspace(vec2 pixels) {\n vec2 offset = pixels / project_uViewportSize * project_uDevicePixelRatio * 2.0;\n return offset * project_uFocalDistance;\n}\n\nfloat project_size_to_pixel(float meters) {\n return project_size(meters) * project_uScale;\n}\nfloat project_size_to_pixel(float size, int unit) {\n if (unit == UNIT_METERS) return project_size_to_pixel(size);\n if (unit == UNIT_COMMON) return size * project_uScale;\n return size;\n}\nfloat project_pixel_size(float pixels) {\n return pixels / project_uScale;\n}\nvec2 project_pixel_size(vec2 pixels) {\n return pixels / project_uScale;\n}\nmat3 project_get_orientation_matrix(vec3 up) {\n vec3 uz = normalize(up);\n vec3 ux = abs(uz.z) == 1.0 ? vec3(1.0, 0.0, 0.0) : normalize(vec3(uz.y, -uz.x, 0));\n vec3 uy = cross(uz, ux);\n return mat3(ux, uy, uz);\n}\n\nbool project_needs_rotation(vec3 commonPosition, out mat3 transform) {\n if (project_uProjectionMode == PROJECTION_MODE_GLOBE) {\n transform = project_get_orientation_matrix(commonPosition);\n return true;\n }\n return false;\n}\n"),u=n(701);const h={};e.a={name:"project",dependencies:[r,i],vs:l,getUniforms:function(t=h){return t.viewport?Object(u.b)(t):{}}}},function(t,e,n){"use strict";var r=n(65),i=n(103),o=n(31),s=n(99),a=r.a?r.a.prototype:void 0,c=a?a.toString:void 0;e.a=function t(e){if("string"==typeof e)return e;if(Object(o.a)(e))return Object(i.a)(e,t)+"";if(Object(s.a)(e))return c?c.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}},function(t,e,n){"use strict";function r(t,e){if(t===e)return!0;
21if(Array.isArray(t)){const n=t.length;if(!e||e.length!==n)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}return!1}function i(t){let e,n={};return i=>{for(const o in i)if(!r(i[o],n[o])){e=t(i),n=i;break}return e}}n.d(e,"a",(function(){return i}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return d}));var r=n(48),i=n(260),o=n(60),s=n(46),a=n(83),c=n(39);const l=Math.PI/180,u=Object(i.a)(),h=[0,0,0],f={unitsPerMeter:[1,1,1],metersPerUnit:[1,1,1]};class d{constructor(t={}){const{id:e=null,x:n=0,y:r=0,width:i=1,height:o=1}=t;this.id=e||this.constructor.displayName||"viewport",this.x=n,this.y=r,this.width=i||1,this.height=o||1,this._frustumPlanes={},this._initViewMatrix(t),this._initProjectionMatrix(t),this._initPixelMatrices(),this.equals=this.equals.bind(this),this.project=this.project.bind(this),this.unproject=this.unproject.bind(this),this.projectPosition=this.projectPosition.bind(this),this.unprojectPosition=this.unprojectPosition.bind(this),this.projectFlat=this.projectFlat.bind(this),this.unprojectFlat=this.unprojectFlat.bind(this)}get metersPerPixel(){return this.distanceScales.metersPerUnit[2]/this.scale}get projectionMode(){return this.isGeospatial?this.zoom<12?c.c.WEB_MERCATOR:c.c.WEB_MERCATOR_AUTO_OFFSET:c.c.IDENTITY}equals(t){return t instanceof d&&(this===t||t.width===this.width&&t.height===this.height&&t.scale===this.scale&&Object(o.d)(t.projectionMatrix,this.projectionMatrix)&&Object(o.d)(t.viewMatrix,this.viewMatrix))}project(t,{topLeft:e=!0}={}){const n=this.projectPosition(t),r=Object(a.u)(n,this.pixelProjectionMatrix),[i,o]=r,s=e?o:this.height-o;return 2===t.length?[i,s]:[i,s,r[2]]}unproject(t,{topLeft:e=!0,targetZ:n}={}){const[r,i,o]=t,s=e?i:this.height-i,c=n&&n*this.distanceScales.unitsPerMeter[2],l=Object(a.q)([r,s,o],this.pixelUnprojectionMatrix,c),[u,h,f]=this.unprojectPosition(l);return Number.isFinite(o)?[u,h,f]:Number.isFinite(n)?[u,h,n]:[u,h]}projectPosition(t){const[e,n]=this.projectFlat(t);return[e,n,(t[2]||0)*this.distanceScales.unitsPerMeter[2]]}unprojectPosition(t){const[e,n]=this.unprojectFlat(t);return[e,n,(t[2]||0)*this.distanceScales.metersPerUnit[2]]}projectFlat(t){return this.isGeospatial?Object(a.o)(t):t}unprojectFlat(t){return this.isGeospatial?Object(a.t)(t):t}getBounds(t={}){const e={targetZ:t.z||0},n=this.unproject([0,0],e),r=this.unproject([this.width,0],e),i=this.unproject([0,this.height],e),o=this.unproject([this.width,this.height],e);return[Math.min(n[0],r[0],i[0],o[0]),Math.min(n[1],r[1],i[1],o[1]),Math.max(n[0],r[0],i[0],o[0]),Math.max(n[1],r[1],i[1],o[1])]}getDistanceScales(t=null){return t?Object(a.i)({longitude:t[0],latitude:t[1],highPrecision:!0}):this.distanceScales}containsPixel({x:t,y:e,width:n=1,height:r=1}){return t<this.x+this.width&&this.x<t+n&&e<this.y+this.height&&this.y<e+r}getFrustumPlanes(){return this._frustumPlanes.near||Object.assign(this._frustumPlanes,Object(i.c)(this.viewProjectionMatrix)),this._frustumPlanes}panByPosition(t,e){return null}getCameraPosition(){return this.cameraPosition}getCameraDirection(){return this.cameraDirection}getCameraUp(){return this.cameraUp}_createProjectionMatrix({orthographic:t,fovyRadians:e,aspect:n,focalDistance:r,near:i,far:s}){return t?(new o.a).orthographic({fovy:e,aspect:n,focalDistance:r,near:i,far:s}):(new o.a).perspective({fovy:e,aspect:n,near:i,far:s})}_initViewMatrix(t){const{viewMatrix:e=u,longitude:n=null,latitude:r=null,zoom:i=null,position:s=null,modelMatrix:c=null,focalDistance:l=1,distanceScales:d=null}=t;this.isGeospatial=Number.isFinite(r)&&Number.isFinite(n),this.zoom=i,Number.isFinite(this.zoom)||(this.zoom=this.isGeospatial?Object(a.k)({latitude:r})+Math.log2(l):0);const p=Math.pow(2,this.zoom);this.scale=p,this.distanceScales=this.isGeospatial?Object(a.i)({latitude:r,longitude:n}):d||f,this.focalDistance=l,this.distanceScales.metersPerUnit=new o.b(this.distanceScales.metersPerUnit),this.distanceScales.unitsPerMeter=new o.b(this.distanceScales.unitsPerMeter),this.position=h,this.meterOffset=h,s&&(this.position=s,this.modelMatrix=c,this.meterOffset=c?c.transformVector(s):s),this.isGeospatial?(this.longitude=n,this.latitude=r,this.center=this._getCenterInWorld({longitude:n,latitude:r})):this.center=s?this.projectPosition(s):[0,0,0],this.viewMatrixUncentered=e,this.viewMatrix=(new o.a).multiplyRight(this.viewMatrixUncentered).translate(new o.b(this.center||h).negate())}_getCenterInWorld({longitude:t,latitude:e}){const{meterOffset:n,distanceScales:r}=this,i=new o.b(this.projectPosition([t,e,0]));if(n){const t=new o.b(n).scale(r.unitsPerMeter);i.add(t)}return i}_initProjectionMatrix(t){const{projectionMatrix:e=null,orthographic:n=!1,fovyRadians:r,fovy:i=75,near:o=.1,far:s=1e3,focalDistance:a=1}=t;this.projectionMatrix=e||this._createProjectionMatrix({orthographic:n,fovyRadians:r||i*l,aspect:this.width/this.height,focalDistance:a,near:o,far:s})}_initPixelMatrices(){const t=Object(i.a)();s.g(t,t,this.projectionMatrix),s.g(t,t,this.viewMatrix),this.viewProjectionMatrix=t,this.viewMatrixInverse=s.e([],this.viewMatrix)||this.viewMatrix,this.cameraPosition=Object(i.b)(this.viewMatrixInverse);const e=Object(i.a)(),n=Object(i.a)();s.n(e,e,[this.width/2,-this.height/2,1]),s.o(e,e,[1,-1,0]),s.g(n,e,this.viewProjectionMatrix),this.pixelProjectionMatrix=n,this.viewportMatrix=e,this.pixelUnprojectionMatrix=s.e(Object(i.a)(),this.pixelProjectionMatrix),this.pixelUnprojectionMatrix||r.a.warn("Pixel project matrix not invertible")()}}d.displayName="Viewport"},function(t,e,n){"use strict";n.d(e,"b",(function(){return h})),n.d(e,"a",(function(){return f})),n.d(e,"c",(function(){return d}));var r=n(51);function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
21(t,"string");return"symbol"==i(e)?e:e+""}const s=new(n(1902).a)({id:"loaders.gl"});class a{log(){return()=>{}}info(){return()=>{}}warn(){return()=>{}}error(){return()=>{}}}var c=n(408);const l={fetch:null,mimeType:void 0,nothrow:!1,log:new class{constructor(){var t,e,n;t=this,n=void 0,(e=o(e="console"))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,this.console=console}log(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.console.log.bind(this.console,...e)}info(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.console.info.bind(this.console,...e)}warn(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.console.warn.bind(this.console,...e)}error(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.console.error.bind(this.console,...e)}},CDN:"https://unpkg.com/@loaders.gl",worker:!0,maxConcurrency:3,maxMobileConcurrency:1,reuseWorkers:c.a,_nodeWorkers:!1,_workerType:"",limit:0,_limitMB:0,batchSize:"auto",batchDebounceMs:0,metadata:!1,transforms:[]},u={throws:"nothrow",dataType:"(no longer used)",uri:"baseUri",method:"fetch.method",headers:"fetch.headers",body:"fetch.body",mode:"fetch.mode",credentials:"fetch.credentials",cache:"fetch.cache",redirect:"fetch.redirect",referrer:"fetch.referrer",referrerPolicy:"fetch.referrerPolicy",integrity:"fetch.integrity",keepalive:"fetch.keepalive",signal:"fetch.signal"};function h(){globalThis.loaders=globalThis.loaders||{};const{loaders:t}=globalThis;return t._state=t._state||{},t._state}const f=()=>{const t=h();return t.globalOptions=t.globalOptions||{...l},t.globalOptions};function d(t,e,n,r){return n=n||[],function(t,e){p(t,null,l,u,e);for(const n of e){const r=t&&t[n.id]||{},i=n.options&&n.options[n.id]||{},o=n.deprecatedOptions&&n.deprecatedOptions[n.id]||{};p(r,n.id,i,o,e)}}(t,n=Array.isArray(n)?n:[n]),m(e,t,r)}function p(t,e,n,i,o){const a=e||"Top level",c=e?"".concat(e,"."):"";for(const l in t){const u=!e&&Object(r.f)(t[l]),h="baseUri"===l&&!e,f="workerUrl"===l&&e;if(!(l in n)&&!h&&!f)if(l in i)s.warn("".concat(a," loader option '").concat(c).concat(l,"' no longer supported, use '").concat(i[l],"'"))();else if(!u){const t=g(l,o);s.warn("".concat(a," loader option '").concat(c).concat(l,"' not recognized. ").concat(t))()}}}function g(t,e){const n=t.toLowerCase();let r="";for(const i of e)for(const e in i.options){if(t===e)return"Did you mean '".concat(i.id,".").concat(e,"'?");const o=e.toLowerCase();(n.startsWith(o)||o.startsWith(n))&&(r=r||"Did you mean '".concat(i.id,".").concat(e,"'?"))}return r}function m(t,e,n){const r={...t.options||{}};return function(t,e){e&&!("baseUri"in t)&&(t.baseUri=e)}(r,n),null===r.log&&(r.log=new a),y(r,f()),y(r,e),r}function y(t,e){for(const n in e)if(n in e){const i=e[n];Object(r.g)(i)&&Object(r.g)(t[n])?t[n]={...t[n],...e[n]}:t[n]=e[n]}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(159);const i="EXT_color_buffer_float";var o={33189:{bpp:2},33190:{gl2:!0,bpp:3},36012:{gl2:!0,bpp:4},36168:{bpp:1},34041:{bpp:4},35056:{gl2:!0,bpp:4},36013:{gl2:!0,bpp:5},32854:{bpp:2},36194:{bpp:2},32855:{bpp:2},33321:{gl2:!0,bpp:1},33330:{gl2:!0,bpp:1},33329:{gl2:!0,bpp:1},33332:{gl2:!0,bpp:2},33331:{gl2:!0,bpp:2},33334:{gl2:!0,bpp:4},33333:{gl2:!0,bpp:4},33323:{gl2:!0,bpp:2},33336:{gl2:!0,bpp:2},33335:{gl2:!0,bpp:2},33338:{gl2:!0,bpp:4},33337:{gl2:!0,bpp:4},33340:{gl2:!0,bpp:8},33339:{gl2:!0,bpp:8},32849:{gl2:!0,bpp:3},32856:{gl2:!0,bpp:4},32857:{gl2:!0,bpp:4},36220:{gl2:!0,bpp:4},36238:{gl2:!0,bpp:4},36975:{gl2:!0,bpp:4},36214:{gl2:!0,bpp:8},36232:{gl2:!0,bpp:8},36226:{gl2:!0,bpp:16},36208:{gl2:!0,bpp:16},33325:{gl2:i,bpp:2},33327:{gl2:i,bpp:4},34842:{gl2:i,bpp:8},33326:{gl2:i,bpp:4},33328:{gl2:i,bpp:8},34836:{gl2:i,bpp:16},35898:{gl2:i,bpp:4}},s=n(16),a=n(20);class c extends r.a{get[Symbol.toStringTag](){return"Renderbuffer"}static isSupported(t){let{format:e}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{format:null};return!e||function(t,e,n){const r=n[e];if(!r)return!1;const i=Object(s.i)(t)&&r.gl2||r.gl1;return"string"==typeof i?t.getExtension(i):i}(t,e,o)}static getSamplesForFormat(t,e){let{format:n}=e;return t.getInternalformatParameter(36161,n,32937)}constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(t,e),this.initialize(e),Object.seal(this)}initialize(t){let{format:e,width:n=1,height:r=1,samples:i=0}=t;return Object(a.a)(e,"Needs format"),this._trackDeallocatedMemory(),this.gl.bindRenderbuffer(36161,this.handle),0!==i&&Object(s.i)(this.gl)?this.gl.renderbufferStorageMultisample(36161,i,e,n,r):this.gl.renderbufferStorage(36161,e,n,r),this.format=e,this.width=n,this.height=r,this.samples=i,this._trackAllocatedMemory(this.width*this.height*(this.samples||1)*o[this.format].bpp),this}resize(t){let{width:e,height:n}=t;return e!==this.width||n!==this.height?this.initialize({width:e,height:n,format:this.format,samples:this.samples}):this}_createHandle(){return this.gl.createRenderbuffer()}_deleteHandle(){this.gl.deleteRenderbuffer(this.handle),this._trackDeallocatedMemory()}_bindHandle(t){this.gl.bindRenderbuffer(36161,t)}_syncHandle(t){this.format=this.getParameter(36164),this.width=this.getParameter(36162),this.height=this.getParameter(36163),this.samples=this.getParameter(36011)}_getParameter(t){this.gl.bindRenderbuffer(36161,this.handle);return this.gl.getRenderbufferParameter(36161,t)}}},function(t,e,n){"use strict";(function(t){n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return o}
21));const r="undefined"!=typeof navigator&&navigator.userAgent?navigator.userAgent.toLowerCase():"",i="undefined"!=typeof window?window:t;void 0!==t||window,"undefined"!=typeof document&&document;let o=!1;try{const t={get passive(){return o=!0,!0}};i.addEventListener("test",null,t),i.removeEventListener("test",null)}catch(t){o=!1}}).call(this,n(121))},,,,,,,function(t,e,n){"use strict";var r,i,o;n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return o})),function(t){t.CHARTS="chart",t.CONNECTIONS="connections",t.SCREENER="screen"}(r||(r={})),function(t){t.periodic="periodic",t.comparison="comparison"}(i||(i={})),function(t){t.RELATIVE="relative",t.THRESHOLD="threshold"}(o||(o={}))},,,,,function(t,e,n){"use strict";n.r(e),n.d(e,"geoArea",(function(){return X})),n.d(e,"geoBounds",(function(){return zt})),n.d(e,"geoCentroid",(function(){return Jt})),n.d(e,"geoCircle",(function(){return le})),n.d(e,"geoClipAntimeridian",(function(){return xe})),n.d(e,"geoClipCircle",(function(){return we})),n.d(e,"geoClipExtent",(function(){return Ie})),n.d(e,"geoClipRectangle",(function(){return Ee})),n.d(e,"geoContains",(function(){return He})),n.d(e,"geoDistance",(function(){return Pe})),n.d(e,"geoGraticule",(function(){return Xe})),n.d(e,"geoGraticule10",(function(){return Ye})),n.d(e,"geoInterpolate",(function(){return tn})),n.d(e,"geoLength",(function(){return Oe})),n.d(e,"geoPath",(function(){return $n})),n.d(e,"geoAlbers",(function(){return _r})),n.d(e,"geoAlbersUsa",(function(){return vr})),n.d(e,"geoAzimuthalEqualArea",(function(){return Er})),n.d(e,"geoAzimuthalEqualAreaRaw",(function(){return wr})),n.d(e,"geoAzimuthalEquidistant",(function(){return Cr})),n.d(e,"geoAzimuthalEquidistantRaw",(function(){return Sr})),n.d(e,"geoConicConformal",(function(){return Br})),n.d(e,"geoConicConformalRaw",(function(){return Fr})),n.d(e,"geoConicEqualArea",(function(){return yr})),n.d(e,"geoConicEqualAreaRaw",(function(){return mr})),n.d(e,"geoConicEquidistant",(function(){return kr})),n.d(e,"geoConicEquidistantRaw",(function(){return Ur})),n.d(e,"geoEqualEarth",(function(){return Nr})),n.d(e,"geoEqualEarthRaw",(function(){return Qr})),n.d(e,"geoEquirectangular",(function(){return Or})),n.d(e,"geoEquirectangularRaw",(function(){return Lr})),n.d(e,"geoGnomonic",(function(){return Gr})),n.d(e,"geoGnomonicRaw",(function(){return Vr})),n.d(e,"geoIdentity",(function(){return Zr})),n.d(e,"geoProjection",(function(){return dr})),n.d(e,"geoProjectionMutator",(function(){return pr})),n.d(e,"geoMercator",(function(){return Ir})),n.d(e,"geoMercatorRaw",(function(){return Ar})),n.d(e,"geoNaturalEarth1",(function(){return Xr})),n.d(e,"geoNaturalEarth1Raw",(function(){return Wr})),n.d(e,"geoOrthographic",(function(){return qr})),n.d(e,"geoOrthographicRaw",(function(){return Yr})),n.d(e,"geoStereographic",(function(){return Jr})),n.d(e,"geoStereographicRaw",(function(){return Kr})),n.d(e,"geoTransverseMercator",(function(){return ti})),n.d(e,"geoTransverseMercatorRaw",(function(){return $r})),n.d(e,"geoRotation",(function(){return se})),n.d(e,"geoStream",(function(){return z})),n.d(e,"geoTransform",(function(){return tr}));var r=function(){return new i};function i(){this.reset()}i.prototype={constructor:i,reset:function(){this.s=this.t=0},add:function(t){s(o,t,this.t),s(this,o.s,this.s),this.s?this.t+=o.t:this.s=o.t},valueOf:function(){return this.s}};var o=new i;function s(t,e,n){var r=t.s=e+n,i=r-e,o=r-i;t.t=e-o+(n-i)}var a=1e-6,c=Math.PI,l=c/2,u=c/4,h=2*c,f=180/c,d=c/180,p=Math.abs,g=Math.atan,m=Math.atan2,y=Math.cos,_=Math.ceil,v=Math.exp,b=(Math.floor,Math.log),x=Math.pow,w=Math.sin,E=Math.sign||function(t){return t>0?1:t<0?-1:0},S=Math.sqrt,C=Math.tan;function A(t){return t>1?0:t<-1?c:Math.acos(t)}function I(t){return t>1?l:t<-1?-l:Math.asin(t)}function T(t){return(t=w(t/2))*t}function M(){}function F(t,e){t&&L.hasOwnProperty(t.type)&&L[t.type](t,e)}var B={Feature:function(t,e){F(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r<i;)F(n[r].geometry,e)}},L={Sphere:function(t,e){e.sphere()},Point:function(t,e){t=t.coordinates,e.point(t[0],t[1],t[2])},MultiPoint:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)t=n[r],e.point(t[0],t[1],t[2])},LineString:function(t,e){O(t.coordinates,e,0)},MultiLineString:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)O(n[r],e,0)},Polygon:function(t,e){U(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)U(n[r],e)},GeometryCollection:function(t,e){for(var n=t.geometries,r=-1,i=n.length;++r<i;)F(n[r],e)}};function O(t,e,n){var r,i=-1,o=t.length-n;for(e.lineStart();++i<o;)r=t[i],e.point(r[0],r[1],r[2]);e.lineEnd()}function U(t,e){var n=-1,r=t.length;for(e.polygonStart();++n<r;)O(t[n],e,1);e.polygonEnd()}var k,P,D,R,j,z=function(t,e){t&&B.hasOwnProperty(t.type)?B[t.type](t,e):F(t,e)},Q=r(),N=r(),V={point:M,lineStart:M,lineEnd:M,polygonStart:function(){Q.reset(),V.lineStart=G,V.lineEnd=H},polygonEnd:function(){var t=+Q;N.add(t<0?h+t:t),this.lineStart=this.lineEnd=this.point=M},sphere:function(){N.add(h)}};function G(){V.point=Z}function H(){W(k,P)}function Z(t,e){V.point=W,k=t,P=e,D=t*=d,R=y(e=(e*=d)/2+u),j=w(e)}function W(t,e){var n=(t*=d)-D,r=n>=0?1:-1,i=r*n,o=y(e=(e*=d)/2+u),s=w(e),a=j*s,c=R*o+a*y(i),l=a*r*w(i);Q.add(m(l,c)),D=t,R=o,j=s}var X=function(t){return N.reset(),z(t,V),2*N};function Y(t){return[m(t[1],t[0]),I(t[2])]}function q(t){var e=t[0],n=t[1],r=y(n);return[r*y(e),r*w(e),w(n)]}function K(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function J(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function $(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}
vendor: 3,888 bytes, line 21
21function tt(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function et(t){var e=S(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}var nt,rt,it,ot,st,at,ct,lt,ut,ht,ft=r(),dt={point:pt,lineStart:mt,lineEnd:yt,polygonStart:function(){dt.point=_t,dt.lineStart=vt,dt.lineEnd=bt,ft.reset(),V.polygonStart()},polygonEnd:function(){V.polygonEnd(),dt.point=pt,dt.lineStart=mt,dt.lineEnd=yt,Q<0?(nt=-(it=180),rt=-(ot=90)):ft>a?ot=90:ft<-a&&(rt=-90),ht[0]=nt,ht[1]=it}};function pt(t,e){ut.push(ht=[nt=t,it=t]),e<rt&&(rt=e),e>ot&&(ot=e)}function gt(t,e){var n=q([t*d,e*d]);if(lt){var r=J(lt,n),i=J([r[1],-r[0],0],r);et(i),i=Y(i);var o,s=t-st,a=s>0?1:-1,c=i[0]*f*a,l=p(s)>180;l^(a*st<c&&c<a*t)?(o=i[1]*f)>ot&&(ot=o):l^(a*st<(c=(c+360)%360-180)&&c<a*t)?(o=-i[1]*f)<rt&&(rt=o):(e<rt&&(rt=e),e>ot&&(ot=e)),l?t<st?xt(nt,t)>xt(nt,it)&&(it=t):xt(t,it)>xt(nt,it)&&(nt=t):it>=nt?(t<nt&&(nt=t),t>it&&(it=t)):t>st?xt(nt,t)>xt(nt,it)&&(it=t):xt(t,it)>xt(nt,it)&&(nt=t)}else ut.push(ht=[nt=t,it=t]);e<rt&&(rt=e),e>ot&&(ot=e),lt=n,st=t}function mt(){dt.point=gt}function yt(){ht[0]=nt,ht[1]=it,dt.point=pt,lt=null}function _t(t,e){if(lt){var n=t-st;ft.add(p(n)>180?n+(n>0?360:-360):n)}else at=t,ct=e;V.point(t,e),gt(t,e)}function vt(){V.lineStart()}function bt(){_t(at,ct),V.lineEnd(),p(ft)>a&&(nt=-(it=180)),ht[0]=nt,ht[1]=it,lt=null}function xt(t,e){return(e-=t)<0?e+360:e}function wt(t,e){return t[0]-e[0]}function Et(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:e<t[0]||t[1]<e}var St,Ct,At,It,Tt,Mt,Ft,Bt,Lt,Ot,Ut,kt,Pt,Dt,Rt,jt,zt=function(t){var e,n,r,i,o,s,a;if(ot=it=-(nt=rt=1/0),ut=[],z(t,dt),n=ut.length){for(ut.sort(wt),e=1,o=[r=ut[0]];e<n;++e)Et(r,(i=ut[e])[0])||Et(r,i[1])?(xt(r[0],i[1])>xt(r[0],r[1])&&(r[1]=i[1]),xt(i[0],r[1])>xt(r[0],r[1])&&(r[0]=i[0])):o.push(r=i);for(s=-1/0,e=0,r=o[n=o.length-1];e<=n;r=i,++e)i=o[e],(a=xt(r[1],i[0]))>s&&(s=a,nt=i[0],it=r[1])}return ut=ht=null,nt===1/0||rt===1/0?[[NaN,NaN],[NaN,NaN]]:[[nt,rt],[it,ot]]},Qt={sphere:M,point:Nt,lineStart:Gt,lineEnd:Wt,polygonStart:function(){Qt.lineStart=Xt,Qt.lineEnd=Yt},polygonEnd:function(){Qt.lineStart=Gt,Qt.lineEnd=Wt}};function Nt(t,e){t*=d;var n=y(e*=d);Vt(n*y(t),n*w(t),w(e))}function Vt(t,e,n){++St,At+=(t-At)/St,It+=(e-It)/St,Tt+=(n-Tt)/St}function Gt(){Qt.point=Ht}function Ht(t,e){t*=d;var n=y(e*=d);Dt=n*y(t),Rt=n*w(t),jt=w(e),Qt.point=Zt,Vt(Dt,Rt,jt)}function Zt(t,e){t*=d;var n=y(e*=d),r=n*y(t),i=n*w(t),o=w(e),s=m(S((s=Rt*o-jt*i)*s+(s=jt*r-Dt*o)*s+(s=Dt*i-Rt*r)*s),Dt*r+Rt*i+jt*o);Ct+=s,Mt+=s*(Dt+(Dt=r)),Ft+=s*(Rt+(Rt=i)),Bt+=s*(jt+(jt=o)),Vt(Dt,Rt,jt)}function Wt(){Qt.point=Nt}function Xt(){Qt.point=qt}function Yt(){Kt(kt,Pt),Qt.point=Nt}function qt(t,e){kt=t,Pt=e,t*=d,e*=d,Qt.point=Kt;var n=y(e);Dt=n*y(t),Rt=n*w(t),jt=w(e),Vt(Dt,Rt,jt)}function Kt(t,e){t*=d;var n=y(e*=d),r=n*y(t),i=n*w(t),o=w(e),s=Rt*o-jt*i,a=jt*r-Dt*o,c=Dt*i-Rt*r,l=S(s*s+a*a+c*c),u=I(l),h=l&&-u/l;Lt+=h*s,Ot+=h*a,Ut+=h*c,Ct+=u,Mt+=u*(Dt+(Dt=r)),Ft+=u*(Rt+(Rt=i)),Bt+=u*(jt+(jt=o)),Vt(Dt,Rt,jt)}var Jt=function(t){St=Ct=At=It=Tt=Mt=Ft=Bt=Lt=Ot=Ut=0,z(t,Qt);var e=Lt,n=Ot,r=Ut,i=e*e+n*n+r*r;return i<1e-12&&(e=Mt,n=Ft,r=Bt,Ct<a&&(e=At,n=It,r=Tt),(i=e*e+n*n+r*r)<1e-12)?[NaN,NaN]:[m(n,e)*f,I(r/S(i))*f]},$t=function(t){return function(){return t}},te=function(t,e){function n(n,r){return n=t(n,r),e(n[0],n[1])}return t.invert&&e.invert&&(n.invert=function(n,r){return(n=e.invert(n,r))&&t.invert(n[0],n[1])}),n};function ee(t,e){return[p(t)>c?t+Math.round(-t/h)*h:t,e]}function ne(t,e,n){return(t%=h)?e||n?te(ie(t),oe(e,n)):ie(t):e||n?oe(e,n):ee}function re(t){return function(e,n){return[(e+=t)>c?e-h:e<-c?e+h:e,n]}}function ie(t){var e=re(t);return e.invert=re(-t),e}function oe(t,e){var n=y(t),r=w(t),i=y(e),o=w(e);function s(t,e){var s=y(e),a=y(t)*s,c=w(t)*s,l=w(e),u=l*n+a*r;return[m(c*i-u*o,a*n-l*r),I(u*i+c*o)]}return s.invert=function(t,e){var s=y(e),a=y(t)*s,c=w(t)*s,l=w(e),u=l*i-c*o;return[m(c*i+l*o,a*n+u*r),I(u*n-a*r)]},s}ee.invert=ee;
vendor: 9,108 bytes, line 21
21var se=function(t){function e(e){return(e=t(e[0]*d,e[1]*d))[0]*=f,e[1]*=f,e}return t=ne(t[0]*d,t[1]*d,t.length>2?t[2]*d:0),e.invert=function(e){return(e=t.invert(e[0]*d,e[1]*d))[0]*=f,e[1]*=f,e},e};function ae(t,e,n,r,i,o){if(n){var s=y(e),a=w(e),c=r*n;null==i?(i=e+r*h,o=e-c/2):(i=ce(s,i),o=ce(s,o),(r>0?i<o:i>o)&&(i+=r*h));for(var l,u=i;r>0?u>o:u<o;u-=c)l=Y([s,-a*y(u),-a*w(u)]),t.point(l[0],l[1])}}function ce(t,e){(e=q(e))[0]-=t,et(e);var n=A(-e[1]);return((-e[2]<0?-n:n)+h-a)%h}var le=function(){var t,e,n=$t([0,0]),r=$t(90),i=$t(6),o={point:function(n,r){t.push(n=e(n,r)),n[0]*=f,n[1]*=f}};function s(){var s=n.apply(this,arguments),a=r.apply(this,arguments)*d,c=i.apply(this,arguments)*d;return t=[],e=ne(-s[0]*d,-s[1]*d,0).invert,ae(o,a,c,1),s={type:"Polygon",coordinates:[t]},t=e=null,s}return s.center=function(t){return arguments.length?(n="function"==typeof t?t:$t([+t[0],+t[1]]),s):n},s.radius=function(t){return arguments.length?(r="function"==typeof t?t:$t(+t),s):r},s.precision=function(t){return arguments.length?(i="function"==typeof t?t:$t(+t),s):i},s},ue=function(){var t,e=[];return{point:function(e,n){t.push([e,n])},lineStart:function(){e.push(t=[])},lineEnd:M,rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}},he=function(t,e){return p(t[0]-e[0])<a&&p(t[1]-e[1])<a};function fe(t,e,n,r){this.x=t,this.z=e,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}var de=function(t,e,n,r,i){var o,s,a=[],c=[];if(t.forEach((function(t){if(!((e=t.length-1)<=0)){var e,n,r=t[0],s=t[e];if(he(r,s)){for(i.lineStart(),o=0;o<e;++o)i.point((r=t[o])[0],r[1]);i.lineEnd()}else a.push(n=new fe(r,t,null,!0)),c.push(n.o=new fe(r,null,n,!1)),a.push(n=new fe(s,t,null,!1)),c.push(n.o=new fe(s,null,n,!0))}})),a.length){for(c.sort(e),pe(a),pe(c),o=0,s=c.length;o<s;++o)c[o].e=n=!n;for(var l,u,h=a[0];;){for(var f=h,d=!0;f.v;)if((f=f.n)===h)return;l=f.z,i.lineStart();do{if(f.v=f.o.v=!0,f.e){if(d)for(o=0,s=l.length;o<s;++o)i.point((u=l[o])[0],u[1]);else r(f.x,f.n.x,1,i);f=f.n}else{if(d)for(l=f.p.z,o=l.length-1;o>=0;--o)i.point((u=l[o])[0],u[1]);else r(f.x,f.p.x,-1,i);f=f.p}l=(f=f.o).z,d=!d}while(!f.v);i.lineEnd()}}};function pe(t){if(e=t.length){for(var e,n,r=0,i=t[0];++r<e;)i.n=n=t[r],n.p=i,i=n;i.n=n=t[0],n.p=i}}var ge=r(),me=function(t,e){var n=e[0],r=e[1],i=w(r),o=[w(n),-y(n),0],s=0,f=0;ge.reset(),1===i?r=l+a:-1===i&&(r=-l-a);for(var d=0,p=t.length;d<p;++d)if(_=(g=t[d]).length)for(var g,_,v=g[_-1],b=v[0],x=v[1]/2+u,E=w(x),S=y(x),C=0;C<_;++C,b=T,E=F,S=B,v=A){var A=g[C],T=A[0],M=A[1]/2+u,F=w(M),B=y(M),L=T-b,O=L>=0?1:-1,U=O*L,k=U>c,P=E*F;if(ge.add(m(P*O*w(U),S*B+P*y(U))),s+=k?L+O*h:L,k^b>=n^T>=n){var D=J(q(v),q(A));et(D);var R=J(o,D);et(R);var j=(k^L>=0?-1:1)*I(R[2]);(r>j||r===j&&(D[0]||D[1]))&&(f+=k^L>=0?1:-1)}}return(s<-a||s<a&&ge<-a)^1&f},ye=n(14),_e=function(t,e,n,r){return function(i){var o,s,a,c=e(i),l=ue(),u=e(l),h=!1,f={point:d,lineStart:g,lineEnd:m,polygonStart:function(){f.point=y,f.lineStart=_,f.lineEnd=v,s=[],o=[]},polygonEnd:function(){f.point=d,f.lineStart=g,f.lineEnd=m,s=Object(ye.merge)(s);var t=me(o,r);s.length?(h||(i.polygonStart(),h=!0),de(s,be,t,n,i)):t&&(h||(i.polygonStart(),h=!0),i.lineStart(),n(null,null,1,i),i.lineEnd()),h&&(i.polygonEnd(),h=!1),s=o=null},sphere:function(){i.polygonStart(),i.lineStart(),n(null,null,1,i),i.lineEnd(),i.polygonEnd()}};function d(e,n){t(e,n)&&i.point(e,n)}function p(t,e){c.point(t,e)}function g(){f.point=p,c.lineStart()}function m(){f.point=d,c.lineEnd()}function y(t,e){a.push([t,e]),u.point(t,e)}function _(){u.lineStart(),a=[]}function v(){y(a[0][0],a[0][1]),u.lineEnd();var t,e,n,r,c=u.clean(),f=l.result(),d=f.length;if(a.pop(),o.push(a),a=null,d)if(1&c){if((e=(n=f[0]).length-1)>0){for(h||(i.polygonStart(),h=!0),i.lineStart(),t=0;t<e;++t)i.point((r=n[t])[0],r[1]);i.lineEnd()}}else d>1&&2&c&&f.push(f.pop().concat(f.shift())),s.push(f.filter(ve))}return f}};function ve(t){return t.length>1}function be(t,e){return((t=t.x)[0]<0?t[1]-l-a:l-t[1])-((e=e.x)[0]<0?e[1]-l-a:l-e[1])}var xe=_e((function(){return!0}),(function(t){var e,n=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(o,s){var u=o>0?c:-c,h=p(o-n);p(h-c)<a?(t.point(n,r=(r+s)/2>0?l:-l),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(u,r),t.point(o,r),e=0):i!==u&&h>=c&&(p(n-i)<a&&(n-=i*a),p(o-u)<a&&(o-=u*a),r=function(t,e,n,r){var i,o,s=w(t-n);return p(s)>a?g((w(e)*(o=y(r))*w(n)-w(r)*(i=y(e))*w(t))/(i*o*s)):(e+r)/2}(n,r,o,s),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(u,r),e=0),t.point(n=o,r=s),i=u},lineEnd:function(){t.lineEnd(),n=r=NaN},clean:function(){return 2-e}}}),(function(t,e,n,r){var i;if(null==t)i=n*l,r.point(-c,i),r.point(0,i),r.point(c,i),r.point(c,0),r.point(c,-i),r.point(0,-i),r.point(-c,-i),r.point(-c,0),r.point(-c,i);else if(p(t[0]-e[0])>a){var o=t[0]<e[0]?c:-c;i=n*o/2,r.point(-o,i),r.point(0,i),r.point(o,i)}else r.point(e[0],e[1])}),[-c,-l]);var we=function(t){var e=y(t),n=6*d,r=e>0,i=p(e)>a;function o(t,n){return y(t)*y(n)>e}function s(t,n,r){var i=[1,0,0],o=J(q(t),q(n)),s=K(o,o),l=o[0],u=s-l*l;if(!u)return!r&&t;var h=e*s/u,f=-e*l/u,d=J(i,o),g=tt(i,h);$(g,tt(o,f));var m=d,y=K(g,m),_=K(m,m),v=y*y-_*(K(g,g)-1);if(!(v<0)){var b=S(v),x=tt(m,(-y-b)/_);if($(x,g),x=Y(x),!r)return x;var w,E=t[0],C=n[0],A=t[1],I=n[1];C<E&&(w=E,E=C,C=w);var T=C-E,M=p(T-c)<a;if(!M&&I<A&&(w=A,A=I,I=w),M||T<a?M?A+I>0^x[1]<(p(x[0]-E)<a?A:I):A<=x[1]&&x[1]<=I:T>c^(E<=x[0]&&x[0]<=C)){var F=tt(m,(-y+b)/_);return $(F,g),[x,Y(F)]}}}function l(e,n){var i=r?t:c-t,o=0;return e<-i?o|=1:e>i&&(o|=2),n<-i?o|=4:n>i&&(o|=8),o}return _e(o,(function(t){var e,n,u,h,f;return{lineStart:function(){h=u=!1,f=1},point:function(d,p){var g,m=[d,p],y=o(d,p),_=r?y?0:l(d,p):y?l(d+(d<0?c:-c),p):0;if(!e&&(h=u=y)&&t.lineStart(),y!==u&&(!(g=s(e,m))||he(e,g)||he(m,g))&&(m[0]+=a,m[1]+=a,y=o(m[0],m[1])),y!==u)f=0,y?(t.lineStart(),g=s(m,e),t.point(g[0],g[1])):(g=s(e,m),t.point(g[0],g[1]),t.lineEnd()),e=g;else if(i&&e&&r^y){var v;_&n||!(v=s(m,e,!0))||(f=0,r?(t.lineStart(),t.point(v[0][0],v[0][1]),t.point(v[1][0],v[1][1]),t.lineEnd()):(t.point(v[1][0],v[1][1]),t.lineEnd(),t.lineStart(),t.point(v[0][0],v[0][1])))}!y||e&&he(e,m)||t.point(m[0],m[1]),e=m,u=y,n=_},lineEnd:function(){u&&t.lineEnd(),e=null},clean:function(){return f|(h&&u)<<1}}}),(function(e,r,i,o){ae(o,t,n,i,e,r)}),r?[0,-t]:[-c,t-c])};function Ee(t,e,n,r){function i(i,o){return t<=i&&i<=n&&e<=o&&o<=r}function o(i,o,a,c){var u=0,h=0;if(null==i||(u=s(i,a))!==(h=s(o,a))||l(i,o)<0^a>0)do{c.point(0===u||3===u?t:n,u>1?r:e)}while((u=(u+a+4)%4)!==h);else c.point(o[0],o[1])}function s(r,i){return p(r[0]-t)<a?i>0?0:3:p(r[0]-n)<a?i>0?2:1:p(r[1]-e)<a?i>0?1:0:i>0?3:2}function c(t,e){return l(t.x,e.x)}function l(t,e){var n=s(t,1),r=s(e,1);return n!==r?n-r:0===n?e[1]-t[1]:1===n?t[0]-e[0]:2===n?t[1]-e[1]:e[0]-t[0]}return function(s){var a,l,u,h,f,d,p,g,m,y,_,v=s,b=ue(),x={point:w,lineStart:function(){x.point=E,l&&l.push(u=[]);y=!0,m=!1,p=g=NaN},lineEnd:function(){a&&(E(h,f),d&&m&&b.rejoin(),a.push(b.result()));x.point=w,m&&v.lineEnd()},polygonStart:function(){v=b,a=[],l=[],_=!0},polygonEnd:function(){var e=function(){for(var e=0,n=0,i=l.length;n<i;++n)for(var o,s,a=l[n],c=1,u=a.length,h=a[0],f=h[0],d=h[1];c<u;++c)o=f,s=d,h=a[c],f=h[0],d=h[1],s<=r?d>r&&(f-o)*(r-s)>(d-s)*(t-o)&&++e:d<=r&&(f-o)*(r-s)<(d-s)*(t-o)&&--e;return e}(),n=_&&e,i=(a=Object(ye.merge)(a)).length;(n||i)&&(s.polygonStart(),n&&(s.lineStart(),o(null,null,1,s),s.lineEnd()),i&&de(a,c,e,o,s),s.polygonEnd());v=s,a=l=u=null}};function w(t,e){i(t,e)&&v.point(t,e)}function E(o,s){var a=i(o,s);if(l&&u.push([o,s]),y)h=o,f=s,d=a,y=!1,a&&(v.lineStart(),v.point(o,s));else if(a&&m)v.point(o,s);else{var c=[p=Math.max(-1e9,Math.min(1e9,p)),g=Math.max(-1e9,Math.min(1e9,g))],b=[o=Math.max(-1e9,Math.min(1e9,o)),s=Math.max(-1e9,Math.min(1e9,s))];!function(t,e,n,r,i,o){var s,a=t[0],c=t[1],l=0,u=1,h=e[0]-a,f=e[1]-c;if(s=n-a,h||!(s>0)){if(s/=h,h<0){if(s<l)return;s<u&&(u=s)}else if(h>0){if(s>u)return;s>l&&(l=s)}if(s=i-a,h||!(s<0)){if(s/=h,h<0){if(s>u)return;s>l&&(l=s)}else if(h>0){if(s<l)return;s<u&&(u=s)}if(s=r-c,f||!(s>0)){if(s/=f,f<0){if(s<l)return;s<u&&(u=s)}else if(f>0){if(s>u)return;s>l&&(l=s)}if(s=o-c,f||!(s<0)){if(s/=f,f<0){if(s>u)return;s>l&&(l=s)}else if(f>0){if(s<l)return;s<u&&(u=s)}return l>0&&(t[0]=a+l*h,t[1]=c+l*f),u<1&&(e[0]=a+u*h,e[1]=c+u*f),!0}}}}}(c,b,t,e,n,r)?a&&(v.lineStart(),v.point(o,s),_=!1):(m||(v.lineStart(),v.point(c[0],c[1])),v.point(b[0],b[1]),a||v.lineEnd(),_=!1)}p=o,g=s,m=a}return x}}var Se,Ce,Ae,Ie=function(){var t,e,n,r=0,i=0,o=960,s=500;return n={stream:function(n){return t&&e===n?t:t=Ee(r,i,o,s)(e=n)},extent:function(a){return arguments.length?(r=+a[0][0],i=+a[0][1],o=+a[1][0],s=+a[1][1],t=e=null,n):[[r,i],[o,s]]}}},Te=r(),Me={sphere:M,point:M,lineStart:function(){Me.point=Be,Me.lineEnd=Fe},lineEnd:M,polygonStart:M,polygonEnd:M};function Fe(){Me.point=Me.lineEnd=M}function Be(t,e){Se=t*=d,Ce=w(e*=d),Ae=y(e),Me.point=Le}function Le(t,e){t*=d;var n=w(e*=d),r=y(e),i=p(t-Se),o=y(i),s=r*w(i),a=Ae*n-Ce*r*o,c=Ce*n+Ae*r*o;Te.add(m(S(s*s+a*a),c)),Se=t,Ce=n,Ae=r}var Oe=function(t){return Te.reset(),z(t,Me),+Te}
21,Ue=[null,null],ke={type:"LineString",coordinates:Ue},Pe=function(t,e){return Ue[0]=t,Ue[1]=e,Oe(ke)},De={Feature:function(t,e){return je(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r<i;)if(je(n[r].geometry,e))return!0;return!1}},Re={Sphere:function(){return!0},Point:function(t,e){return ze(t.coordinates,e)},MultiPoint:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)if(ze(n[r],e))return!0;return!1},LineString:function(t,e){return Qe(t.coordinates,e)},MultiLineString:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)if(Qe(n[r],e))return!0;return!1},Polygon:function(t,e){return Ne(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)if(Ne(n[r],e))return!0;return!1},GeometryCollection:function(t,e){for(var n=t.geometries,r=-1,i=n.length;++r<i;)if(je(n[r],e))return!0;return!1}};function je(t,e){return!(!t||!Re.hasOwnProperty(t.type))&&Re[t.type](t,e)}function ze(t,e){return 0===Pe(t,e)}function Qe(t,e){var n=Pe(t[0],t[1]);return Pe(t[0],e)+Pe(e,t[1])<=n+a}function Ne(t,e){return!!me(t.map(Ve),Ge(e))}function Ve(t){return(t=t.map(Ge)).pop(),t}function Ge(t){return[t[0]*d,t[1]*d]}var He=function(t,e){return(t&&De.hasOwnProperty(t.type)?De[t.type]:je)(t,e)};function Ze(t,e,n){var r=Object(ye.range)(t,e-a,n).concat(e);return function(t){return r.map((function(e){return[t,e]}))}}function We(t,e,n){var r=Object(ye.range)(t,e-a,n).concat(e);return function(t){return r.map((function(e){return[e,t]}))}}function Xe(){var t,e,n,r,i,o,s,c,l,u,h,f,d=10,g=d,m=90,y=360,v=2.5;function b(){return{type:"MultiLineString",coordinates:x()}}function x(){return Object(ye.range)(_(r/m)*m,n,m).map(h).concat(Object(ye.range)(_(c/y)*y,s,y).map(f)).concat(Object(ye.range)(_(e/d)*d,t,d).filter((function(t){return p(t%m)>a})).map(l)).concat(Object(ye.range)(_(o/g)*g,i,g).filter((function(t){return p(t%y)>a})).map(u))}return b.lines=function(){return x().map((function(t){return{type:"LineString",coordinates:t}}))},b.outline=function(){return{type:"Polygon",coordinates:[h(r).concat(f(s).slice(1),h(n).reverse().slice(1),f(c).reverse().slice(1))]}},b.extent=function(t){return arguments.length?b.extentMajor(t).extentMinor(t):b.extentMinor()},b.extentMajor=function(t){return arguments.length?(r=+t[0][0],n=+t[1][0],c=+t[0][1],s=+t[1][1],r>n&&(t=r,r=n,n=t),c>s&&(t=c,c=s,s=t),b.precision(v)):[[r,c],[n,s]]},b.extentMinor=function(n){return arguments.length?(e=+n[0][0],t=+n[1][0],o=+n[0][1],i=+n[1][1],e>t&&(n=e,e=t,t=n),o>i&&(n=o,o=i,i=n),b.precision(v)):[[e,o],[t,i]]},b.step=function(t){return arguments.length?b.stepMajor(t).stepMinor(t):b.stepMinor()},b.stepMajor=function(t){return arguments.length?(m=+t[0],y=+t[1],b):[m,y]},b.stepMinor=function(t){return arguments.length?(d=+t[0],g=+t[1],b):[d,g]},b.precision=function(a){return arguments.length?(v=+a,l=Ze(o,i,90),u=We(e,t,v),h=Ze(c,s,90),f=We(r,n,v),b):v},b.extentMajor([[-180,-90+a],[180,90-a]]).extentMinor([[-180,-80-a],[180,80+a]])}function Ye(){return Xe()()}var qe,Ke,Je,$e,tn=function(t,e){var n=t[0]*d,r=t[1]*d,i=e[0]*d,o=e[1]*d,s=y(r),a=w(r),c=y(o),l=w(o),u=s*y(n),h=s*w(n),p=c*y(i),g=c*w(i),_=2*I(S(T(o-r)+s*c*T(i-n))),v=w(_),b=_?function(t){var e=w(t*=_)/v,n=w(_-t)/v,r=n*u+e*p,i=n*h+e*g,o=n*a+e*l;return[m(i,r)*f,m(o,S(r*r+i*i))*f]}:function(){return[n*f,r*f]};return b.distance=_,b},en=function(t){return t},nn=r(),rn=r(),on={point:M,lineStart:M,lineEnd:M,polygonStart:function(){on.lineStart=sn,on.lineEnd=ln},polygonEnd:function(){on.lineStart=on.lineEnd=on.point=M,nn.add(p(rn)),rn.reset()},result:function(){var t=nn/2;return nn.reset(),t}};function sn(){on.point=an}function an(t,e){on.point=cn,qe=Je=t,Ke=$e=e}function cn(t,e){rn.add($e*t-Je*e),Je=t,$e=e}function ln(){cn(qe,Ke)}var un=on,hn=1/0,fn=hn,dn=-hn,pn=dn;var gn,mn,yn,_n,vn={point:function(t,e){t<hn&&(hn=t);t>
21dn&&(dn=t);e<fn&&(fn=e);e>pn&&(pn=e)},lineStart:M,lineEnd:M,polygonStart:M,polygonEnd:M,result:function(){var t=[[hn,fn],[dn,pn]];return dn=pn=-(fn=hn=1/0),t}},bn=0,xn=0,wn=0,En=0,Sn=0,Cn=0,An=0,In=0,Tn=0,Mn={point:Fn,lineStart:Bn,lineEnd:Un,polygonStart:function(){Mn.lineStart=kn,Mn.lineEnd=Pn},polygonEnd:function(){Mn.point=Fn,Mn.lineStart=Bn,Mn.lineEnd=Un},result:function(){var t=Tn?[An/Tn,In/Tn]:Cn?[En/Cn,Sn/Cn]:wn?[bn/wn,xn/wn]:[NaN,NaN];return bn=xn=wn=En=Sn=Cn=An=In=Tn=0,t}};function Fn(t,e){bn+=t,xn+=e,++wn}function Bn(){Mn.point=Ln}function Ln(t,e){Mn.point=On,Fn(yn=t,_n=e)}function On(t,e){var n=t-yn,r=e-_n,i=S(n*n+r*r);En+=i*(yn+t)/2,Sn+=i*(_n+e)/2,Cn+=i,Fn(yn=t,_n=e)}function Un(){Mn.point=Fn}function kn(){Mn.point=Dn}function Pn(){Rn(gn,mn)}function Dn(t,e){Mn.point=Rn,Fn(gn=yn=t,mn=_n=e)}function Rn(t,e){var n=t-yn,r=e-_n,i=S(n*n+r*r);En+=i*(yn+t)/2,Sn+=i*(_n+e)/2,Cn+=i,An+=(i=_n*t-yn*e)*(yn+t),In+=i*(_n+e),Tn+=3*i,Fn(yn=t,_n=e)}var jn=Mn;function zn(t){this._context=t}zn.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._context.moveTo(t,e),this._point=1;break;case 1:this._context.lineTo(t,e);break;default:this._context.moveTo(t+this._radius,e),this._context.arc(t,e,this._radius,0,h)}},result:M};var Qn,Nn,Vn,Gn,Hn,Zn=r(),Wn={point:M,lineStart:function(){Wn.point=Xn},lineEnd:function(){Qn&&Yn(Nn,Vn),Wn.point=M},polygonStart:function(){Qn=!0},polygonEnd:function(){Qn=null},result:function(){var t=+Zn;return Zn.reset(),t}};function Xn(t,e){Wn.point=Yn,Nn=Gn=t,Vn=Hn=e}function Yn(t,e){Gn-=t,Hn-=e,Zn.add(S(Gn*Gn+Hn*Hn)),Gn=t,Hn=e}var qn=Wn;function Kn(){this._string=[]}function Jn(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}Kn.prototype={_radius:4.5,_circle:Jn(4.5),pointRadius:function(t){return(t=+t)!==this._radius&&(this._radius=t,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._string.push("M",t,",",e),this._point=1;break;case 1:this._string.push("L",t,",",e);break;default:null==this._circle&&(this._circle=Jn(this._radius)),this._string.push("M",t,",",e,this._circle)}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}return null}};var $n=function(t,e){var n,r,i=4.5;function o(t){return t&&("function"==typeof i&&r.pointRadius(+i.apply(this,arguments)),z(t,n(r))),r.result()}return o.area=function(t){return z(t,n(un)),un.result()},o.measure=function(t){return z(t,n(qn)),qn.result()},o.bounds=function(t){return z(t,n(vn)),vn.result()},o.centroid=function(t){return z(t,n(jn)),jn.result()},o.projection=function(e){return arguments.length?(n=null==e?(t=null,en):(t=e).stream,o):t},o.context=function(t){return arguments.length?(r=null==t?(e=null,new Kn):new zn(e=t),"function"!=typeof i&&r.pointRadius(i),o):e},o.pointRadius=function(t){return arguments.length?(i="function"==typeof t?t:(r.pointRadius(+t),+t),o):i},o.projection(t).context(e)},tr=function(t){return{stream:er(t)}};function er(t){return function(e){var n=new nr;for(var r in t)n[r]=t[r];return n.stream=e,n}}function nr(){}function rr(t,e,n){var r=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=r&&t.clipExtent(null),z(n,t.stream(vn)),e(vn.result()),null!=r&&t.clipExtent(r),t}function ir(t,e,n){return rr(t,(function(n){var r=e[1][0]-e[0][0],i=e[1][1]-e[0][1],o=Math.min(r/(n[1][0]-n[0][0]),i/(n[1][1]-n[0][1])),s=+e[0][0]+(r-o*(n[1][0]+n[0][0]))/2,a=+e[0][1]+(i-o*(n[1][1]+n[0][1]))/2;t.scale(150*o).translate([s,a])}),n)}function or(t,e,n){return ir(t,[[0,0],e],n)}function sr(t,e,n){return rr(t,(function(n){var r=+e,i=r/(n[1][0]-n[0][0]),o=(r-i*(n[1][0]+n[0][0]))/2,s=-i*n[0][1];t.scale(150*i).translate([o,s])}),n)}function ar(t,e,n){return rr(t,(function(n){var r=+e,i=r/(n[1][1]-n[0][1]),o=-i*n[0][0],s=(r-i*(n[1][1]+n[0][1]))/2;t.scale(150*i).translate([o,s])}),n)}nr.prototype={constructor:nr,point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};
vendor: 5,239 bytes, line 21
21var cr=y(30*d),lr=function(t,e){return+e?function(t,e){function n(r,i,o,s,c,l,u,h,f,d,g,y,_,v){var b=u-r,x=h-i,w=b*b+x*x;if(w>4*e&&_--){var E=s+d,C=c+g,A=l+y,T=S(E*E+C*C+A*A),M=I(A/=T),F=p(p(A)-1)<a||p(o-f)<a?(o+f)/2:m(C,E),B=t(F,M),L=B[0],O=B[1],U=L-r,k=O-i,P=x*U-b*k;(P*P/w>e||p((b*U+x*k)/w-.5)>.3||s*d+c*g+l*y<cr)&&(n(r,i,o,s,c,l,L,O,F,E/=T,C/=T,A,_,v),v.point(L,O),n(L,O,F,E,C,A,u,h,f,d,g,y,_,v))}}return function(e){var r,i,o,s,a,c,l,u,h,f,d,p,g={point:m,lineStart:y,lineEnd:v,polygonStart:function(){e.polygonStart(),g.lineStart=b},polygonEnd:function(){e.polygonEnd(),g.lineStart=y}};function m(n,r){n=t(n,r),e.point(n[0],n[1])}function y(){u=NaN,g.point=_,e.lineStart()}function _(r,i){var o=q([r,i]),s=t(r,i);n(u,h,l,f,d,p,u=s[0],h=s[1],l=r,f=o[0],d=o[1],p=o[2],16,e),e.point(u,h)}function v(){g.point=m,e.lineEnd()}function b(){y(),g.point=x,g.lineEnd=w}function x(t,e){_(r=t,e),i=u,o=h,s=f,a=d,c=p,g.point=_}function w(){n(u,h,l,f,d,p,i,o,r,s,a,c,16,e),g.lineEnd=v,v()}return g}}(t,e):function(t){return er({point:function(e,n){e=t(e,n),this.stream.point(e[0],e[1])}})}(t)};var ur=er({point:function(t,e){this.stream.point(t*d,e*d)}});function hr(t,e,n){function r(r,i){return[e+t*r,n-t*i]}return r.invert=function(r,i){return[(r-e)/t,(n-i)/t]},r}function fr(t,e,n,r){var i=y(r),o=w(r),s=i*t,a=o*t,c=i/t,l=o/t,u=(o*n-i*e)/t,h=(o*e+i*n)/t;function f(t,r){return[s*t-a*r+e,n-a*t-s*r]}return f.invert=function(t,e){return[c*t-l*e+u,h-l*t-c*e]},f}function dr(t){return pr((function(){return t}))()}function pr(t){var e,n,r,i,o,s,a,c,l,u,h=150,p=480,g=250,m=0,y=0,_=0,v=0,b=0,x=0,w=null,E=xe,C=null,A=en,I=.5;function T(t){return c(t[0]*d,t[1]*d)}function M(t){return(t=c.invert(t[0],t[1]))&&[t[0]*f,t[1]*f]}function F(){var t=fr(h,0,0,x).apply(null,e(m,y)),r=(x?fr:hr)(h,p-t[0],g-t[1],x);return n=ne(_,v,b),a=te(e,r),c=te(n,a),s=lr(a,I),B()}function B(){return l=u=null,T}return T.stream=function(t){return l&&u===t?l:l=ur(function(t){return er({point:function(e,n){var r=t(e,n);return this.stream.point(r[0],r[1])}})}(n)(E(s(A(u=t)))))},T.preclip=function(t){return arguments.length?(E=t,w=void 0,B()):E},T.postclip=function(t){return arguments.length?(A=t,C=r=i=o=null,B()):A},T.clipAngle=function(t){return arguments.length?(E=+t?we(w=t*d):(w=null,xe),B()):w*f},T.clipExtent=function(t){return arguments.length?(A=null==t?(C=r=i=o=null,en):Ee(C=+t[0][0],r=+t[0][1],i=+t[1][0],o=+t[1][1]),B()):null==C?null:[[C,r],[i,o]]},T.scale=function(t){return arguments.length?(h=+t,F()):h},T.translate=function(t){return arguments.length?(p=+t[0],g=+t[1],F()):[p,g]},T.center=function(t){return arguments.length?(m=t[0]%360*d,y=t[1]%360*d,F()):[m*f,y*f]},T.rotate=function(t){return arguments.length?(_=t[0]%360*d,v=t[1]%360*d,b=t.length>2?t[2]%360*d:0,F()):[_*f,v*f,b*f]},T.angle=function(t){return arguments.length?(x=t%360*d,F()):x*f},T.precision=function(t){return arguments.length?(s=lr(a,I=t*t),B()):S(I)},T.fitExtent=function(t,e){return ir(T,t,e)},T.fitSize=function(t,e){return or(T,t,e)},T.fitWidth=function(t,e){return sr(T,t,e)},T.fitHeight=function(t,e){return ar(T,t,e)},function(){return e=t.apply(this,arguments),T.invert=e.invert&&M,F()}}function gr(t){var e=0,n=c/3,r=pr(t),i=r(e,n);return i.parallels=function(t){return arguments.length?r(e=t[0]*d,n=t[1]*d):[e*f,n*f]},i}function mr(t,e){var n=w(t),r=(n+w(e))/2;if(p(r)<a)return function(t){var e=y(t);function n(t,n){return[t*e,w(n)/e]}return n.invert=function(t,n){return[t/e,I(n*e)]},n}(t);var i=1+n*(2*r-n),o=S(i)/r;function s(t,e){var n=S(i-2*r*w(e))/r;return[n*w(t*=r),o-n*y(t)]}return s.invert=function(t,e){var n=o-e;return[m(t,p(n))/r*E(n),I((i-(t*t+n*n)*r*r)/(2*r))]},s}var yr=function(){return gr(mr).scale(155.424).center([0,33.6442])},_r=function(){return yr().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])};var vr=function(){var t,e,n,r,i,o,s=_r(),c=yr().rotate([154,0]).center([-2,58.5]).parallels([55,65]),l=yr().rotate([157,0]).center([-3,19.9]).parallels([8,18]),u={point:function(t,e){o=[t,e]}};function h(t){var e=t[0],s=t[1];return o=null,n.point(e,s),o||(r.point(e,s),o)||(i.point(e,s),o)}function f(){return t=e=null,h}return h.invert=function(t){var e=s.scale(),n=s.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=.12&&i<.234&&r>=-.425&&r<-.214?c:i>=.166&&i<.234&&r>=-.214&&r<-.115?l:s).invert(t)},h.stream=function(n){return t&&e===n?t:(r=[s.stream(e=n),c.stream(n),l.stream(n)],i=r.length,t={point:function(t,e){for(var n=-1;++n<i;)r[n].point(t,e)},sphere:function(){for(var t=-1;++t<i;)r[t].sphere()},lineStart:function(){for(var t=-1;++t<i;)r[t].lineStart()},lineEnd:function(){for(var t=-1;++t<i;)r[t].lineEnd()},polygonStart:function(){for(var t=-1;++t<i;)r[t].polygonStart()},polygonEnd:function(){for(var t=-1;++t<i;)r[t].polygonEnd()}});var r,i},h.precision=function(t){return arguments.length?(s.precision(t),c.precision(t),l.precision(t),f()):s.precision()},h.scale=function(t){return arguments.length?(s.scale(t),c.scale(.35*t),l.scale(t),h.translate(s.translate())):s.scale()},h.translate=function(t){if(!arguments.length)return s.translate();var e=s.scale(),o=+t[0],h=+t[1];return n=s.translate(t).clipExtent([[o-.455*e,h-.238*e],[o+.455*e,h+.238*e]]).stream(u),r=c.translate([o-.307
21*e,h+.201*e]).clipExtent([[o-.425*e+a,h+.12*e+a],[o-.214*e-a,h+.234*e-a]]).stream(u),i=l.translate([o-.205*e,h+.212*e]).clipExtent([[o-.214*e+a,h+.166*e+a],[o-.115*e-a,h+.234*e-a]]).stream(u),f()},h.fitExtent=function(t,e){return ir(h,t,e)},h.fitSize=function(t,e){return or(h,t,e)},h.fitWidth=function(t,e){return sr(h,t,e)},h.fitHeight=function(t,e){return ar(h,t,e)},h.scale(1070)};function br(t){return function(e,n){var r=y(e),i=y(n),o=t(r*i);return[o*i*w(e),o*w(n)]}}function xr(t){return function(e,n){var r=S(e*e+n*n),i=t(r),o=w(i),s=y(i);return[m(e*o,r*s),I(r&&n*o/r)]}}var wr=br((function(t){return S(2/(1+t))}));wr.invert=xr((function(t){return 2*I(t/2)}));var Er=function(){return dr(wr).scale(124.75).clipAngle(179.999)},Sr=br((function(t){return(t=A(t))&&t/w(t)}));Sr.invert=xr((function(t){return t}));var Cr=function(){return dr(Sr).scale(79.4188).clipAngle(179.999)};function Ar(t,e){return[t,b(C((l+e)/2))]}Ar.invert=function(t,e){return[t,2*g(v(e))-l]};var Ir=function(){return Tr(Ar).scale(961/h)};function Tr(t){var e,n,r,i=dr(t),o=i.center,s=i.scale,a=i.translate,l=i.clipExtent,u=null;function h(){var o=c*s(),a=i(se(i.rotate()).invert([0,0]));return l(null==u?[[a[0]-o,a[1]-o],[a[0]+o,a[1]+o]]:t===Ar?[[Math.max(a[0]-o,u),e],[Math.min(a[0]+o,n),r]]:[[u,Math.max(a[1]-o,e)],[n,Math.min(a[1]+o,r)]])}return i.scale=function(t){return arguments.length?(s(t),h()):s()},i.translate=function(t){return arguments.length?(a(t),h()):a()},i.center=function(t){return arguments.length?(o(t),h()):o()},i.clipExtent=function(t){return arguments.length?(null==t?u=e=n=r=null:(u=+t[0][0],e=+t[0][1],n=+t[1][0],r=+t[1][1]),h()):null==u?null:[[u,e],[n,r]]},h()}function Mr(t){return C((l+t)/2)}function Fr(t,e){var n=y(t),r=t===e?w(t):b(n/y(e))/b(Mr(e)/Mr(t)),i=n*x(Mr(t),r)/r;if(!r)return Ar;function o(t,e){i>0?e<-l+a&&(e=-l+a):e>l-a&&(e=l-a);var n=i/x(Mr(e),r);return[n*w(r*t),i-n*y(r*t)]}return o.invert=function(t,e){var n=i-e,o=E(r)*S(t*t+n*n);return[m(t,p(n))/r*E(n),2*g(x(i/o,1/r))-l]},o}var Br=function(){return gr(Fr).scale(109.5).parallels([30,30])};function Lr(t,e){return[t,e]}Lr.invert=Lr;var Or=function(){return dr(Lr).scale(152.63)};function Ur(t,e){var n=y(t),r=t===e?w(t):(n-y(e))/(e-t),i=n/r+t;if(p(r)<a)return Lr;function o(t,e){var n=i-e,o=r*t;return[n*w(o),i-n*y(o)]}return o.invert=function(t,e){var n=i-e;return[m(t,p(n))/r*E(n),i-E(r)*S(t*t+n*n)]},o}var kr=function(){return gr(Ur).scale(131.154).center([0,13.9389])},Pr=1.340264,Dr=-.081106,Rr=893e-6,jr=.003796,zr=S(3)/2;function Qr(t,e){var n=I(zr*w(e)),r=n*n,i=r*r*r;return[t*y(n)/(zr*(Pr+3*Dr*r+i*(7*Rr+9*jr*r))),n*(Pr+Dr*r+i*(Rr+jr*r))]}Qr.invert=function(t,e){for(var n,r=e,i=r*r,o=i*i*i,s=0;s<12&&(o=(i=(r-=n=(r*(Pr+Dr*i+o*(Rr+jr*i))-e)/(Pr+3*Dr*i+o*(7*Rr+9*jr*i)))*r)*i*i,!(p(n)<1e-12));++s);return[zr*t*(Pr+3*Dr*i+o*(7*Rr+9*jr*i))/y(r),I(w(r)/zr)]};var Nr=function(){return dr(Qr).scale(177.158)};function Vr(t,e){var n=y(e),r=y(t)*n;return[n*w(t)/r,w(e)/r]}Vr.invert=xr(g);var Gr=function(){return dr(Vr).scale(144.049).clipAngle(60)};function Hr(t,e,n,r){return 1===t&&1===e&&0===n&&0===r?en:er({point:function(i,o){this.stream.point(i*t+n,o*e+r)}})}var Zr=function(){var t,e,n,r,i,o,s=1,a=0,c=0,l=1,u=1,h=en,f=null,d=en;function p(){return r=i=null,o}return o={stream:function(t){return r&&i===t?r:r=h(d(i=t))},postclip:function(r){return arguments.length?(d=r,f=t=e=n=null,p()):d},clipExtent:function(r){return arguments.length?(d=null==r?(f=t=e=n=null,en):Ee(f=+r[0][0],t=+r[0][1],e=+r[1][0],n=+r[1][1]),p()):null==f?null:[[f,t],[e,n]]},scale:function(t){return arguments.length?(h=Hr((s=+t)*l,s*u,a,c),p()):s},translate:function(t){return arguments.length?(h=Hr(s*l,s*u,a=+t[0],c=+t[1]),p()):[a,c]},reflectX:function(t){return arguments.length?(h=Hr(s*(l=t?-1:1),s*u,a,c),p()):l<0},reflectY:function(t){return arguments.length?(h=Hr(s*l,s*(u=t?-1:1),a,c),p()):u<0},fitExtent:function(t,e){return ir(o,t,e)},fitSize:function(t,e){return or(o,t,e)},fitWidth:function(t,e){return sr(o,t,e)},fitHeight:function(t,e){return ar(o,t,e)}}};function Wr(t,e){var n=e*e,r=n*n;return[t*(.8707-.131979*n+r*(r*(.003971*n-.001529*r)-.013791)),e*(1.007226+n*(.015085+r*(.028874*n-.04447
215-.005916*r)))]}Wr.invert=function(t,e){var n,r=e,i=25;do{var o=r*r,s=o*o;r-=n=(r*(1.007226+o*(.015085+s*(.028874*o-.044475-.005916*s)))-e)/(1.007226+o*(.045255+s*(.259866*o-.311325-.005916*11*s)))}while(p(n)>a&&--i>0);return[t/(.8707+(o=r*r)*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979)),r]};var Xr=function(){return dr(Wr).scale(175.295)};function Yr(t,e){return[y(e)*w(t),w(e)]}Yr.invert=xr(I);var qr=function(){return dr(Yr).scale(249.5).clipAngle(90+a)};function Kr(t,e){var n=y(e),r=1+y(t)*n;return[n*w(t)/r,w(e)/r]}Kr.invert=xr((function(t){return 2*g(t)}));var Jr=function(){return dr(Kr).scale(250).clipAngle(142)};function $r(t,e){return[b(C((l+e)/2)),-t]}$r.invert=function(t,e){return[-e,2*g(v(t))-l]};var ti=function(){var t=Tr($r),e=t.center,n=t.rotate;return t.center=function(t){return arguments.length?e([-t[1],t[0]]):[(t=e())[1],-t[0]]},t.rotate=function(t){return arguments.length?n([t[0],t[1],t.length>2?t[2]+90:90]):[(t=n())[0],t[1],t[2]-90]},n([0,0,90]).scale(159.155)}},function(t,e,n){"use strict";var r=n(328),i=n(542),o=n(543);e.a=function(t){return Object(r.a)(t,o.a,i.a)}},function(t,e,n){"use strict";var r=n(329),i=Object(r.a)(Object.getPrototypeOf,Object);e.a=i},function(t,e,n){var r=n(26),i=n(276),o=n(76),s=n(162),a=n(503),c=r.Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=i("Symbol");return o(e)&&s(e.prototype,c(t))}},function(t,e,n){var r=n(372),i=n(89);t.exports=!!Object.getOwnPropertySymbols&&!i((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){var e=+t;return e!=e||0===e?0:(e>0?r:n)(e)}},,function(t,e,n){"use strict";function r(t){return t&&"object"==typeof t&&"default"in t?t.default:t}var i=n(0),o=r(i),s=r(n(61)),a=r(n(554)),c=n(1007),l=r(n(1008)),u=r(n(759));function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function d(t,e,n){return e&&f(t.prototype,e),n&&f(t,n),t}function p(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function g(){return(g=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function m(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function y(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?m(Object(n),!0).forEach((function(e){p(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function _(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&b(t,e)}function v(t){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function b(t,e){return(b=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function x(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function w(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function E(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?w(t):e}var S={};function C(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"scroll";return S[t]||(S[t]=l({strategy:t})),S[t]}var A="react-sizeme: an error occurred whilst stopping to listen to node size changes",I={monitorWidth:!0,monitorHeight:!1,monitorPosition:!1,refreshRate:16,refreshMode:"throttle",noPlaceholder:!1,resizeDetectorStrategy:"scroll"};function T(t){return t.displayName||t.name||"Component"}var M=function(t){function e(){return h(this,e),E(this,v(e).apply(this,arguments))}return _(e,t),d(e,[{key:"render",value:function(){return i.Children.only(this.props.children)}}]),e}(i.Component);function F(t){var e=t.className,n=t.style,r={};return e||n?(e&&(r.className=e),n&&(r.style=n)):r.style={width:"100%",height:"100%"},o.createElement("div",r)}p(M,"displayName","SizeMeReferenceWrapper"),F.displayName="SizeMePlaceholder";var B=function(t){function e(e){var n=e.explicitRef,r=e.className,i=e.style,s=e.size,a=e.disablePlaceholder,c=(e.onSize,x(e,["explicitRef","className","style","size","disablePlaceholder","onSize"])),l=(null==s||null==s.width&&null==s.height&&null==s.position)&&!a,u={className:r,style:i};null!=s&&(u.size=s);var h=l?o.createElement(F,{className:r,style:i}):o.createElement(t,g({},u,c));return o.createElement(M,{ref:n},h)}return e.displayName="SizeMeRenderer(".concat(T(t),")"),e};function L(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:I,e=t.monitorWidth,n=void 0===e?I.monitorWidth:e,r=t.monitorHeight,i=void 0===r?I.monitorHeight:r,l=t.monitorPosition,u=void 0===l?I.monitorPosition:l,f=t.refreshRate,m=void 0===f?I.refreshRate:f,b=t.refreshMode,x=void 0===b?I.refreshMode:b,S=t.noPlaceholder,M=void 0===S?I.noPlaceholder:S,F=t.resizeDetectorStrategy,O=void 0===F?I.resizeDetectorStrategy:F;a(n||i||u,'You have to monitor at least one of the width, height, or position when using "sizeMe"'),a(m>=16,"It is highly recommended that you don't put your refreshRate lower than 16 as this may cause layout thrashing."),a("throttle"===x||"debounce"===x,'The refreshMode should have a value of "throttle" or "debounce"');var U="throttle"===x?c.throttle:c.debounce;return function(t){var e=B(t),r=function(t){function r(){var t,e;h(this,r);for(var o=arguments.length,s=new Array(o),a=0;a<o;a++)s[a]=arguments[a];return p(w(e=E(this,(t=v(r)).call.apply(t,[this].concat(s)))),"domEl",null),p(w(e),"state",{width:void 0,height:void 0,position:void 0}),p(w(e),"uninstall",(function(){if(e.domEl){try{e.detector.uninstall(e.domEl)}catch(t){console.warn(A)}e.domEl=null}})),p(w(e),"determineStrategy",(function(t){t.onSize?(e.callbackState||(e.callbackState=y({},e.state)),e.strategy="callback"):e.strategy="render"})),p(w(e),"strategisedSetState",(function(t){"callback"===e.strategy&&(e.callbackState=t,e.props.onSize(t)),e.setState(t)})),p(w(e),"strategisedGetState",(function(){return"callback"===e.strategy?e.callbackState:e.state})),p(w(e),"refCallback",(function(t){e.element=t})),p(w(e),"hasSizeChanged",(function(t,e){var r=t,o=e,s=r.position||{},a=o.position||{};
21return n&&r.width!==o.width||i&&r.height!==o.height||u&&(s.top!==a.top||s.left!==a.left||s.bottom!==a.bottom||s.right!==a.right)})),p(w(e),"checkIfSizeChanged",U(m,(function(t){var r=t.getBoundingClientRect(),o=r.width,s=r.height,a=r.right,c=r.left,l=r.top,h=r.bottom,f={width:n?o:null,height:i?s:null,position:u?{right:a,left:c,top:l,bottom:h}:null};e.hasSizeChanged(e.strategisedGetState(),f)&&e.strategisedSetState(f)}))),e}return _(r,t),d(r,[{key:"componentDidMount",value:function(){this.detector=C(O),this.determineStrategy(this.props),this.handleDOMNode()}},{key:"componentDidUpdate",value:function(){this.determineStrategy(this.props),this.handleDOMNode()}},{key:"componentWillUnmount",value:function(){this.hasSizeChanged=function(){},this.checkIfSizeChanged=function(){},this.uninstall()}},{key:"handleDOMNode",value:function(){var t=this.element&&s.findDOMNode(this.element);t?this.domEl?(this.domEl.isSameNode&&!this.domEl.isSameNode(t)||this.domEl!==t)&&(this.uninstall(),this.domEl=t,this.detector.listenTo(this.domEl,this.checkIfSizeChanged)):(this.domEl=t,this.detector.listenTo(this.domEl,this.checkIfSizeChanged)):this.uninstall()}},{key:"render",value:function(){var t=L.enableSSRBehaviour||L.noPlaceholders||M||"callback"===this.strategy,n=y({},this.state);return o.createElement(e,g({explicitRef:this.refCallback,size:"callback"===this.strategy?null:n,disablePlaceholder:t},this.props))}}]),r}(o.Component);return p(r,"displayName","SizeMe(".concat(T(t),")")),r.WrappedComponent=t,r}}L.enableSSRBehaviour=!1,L.noPlaceholders=!1;var O=function(t){function e(t){var n;h(this,e),p(w(n=E(this,v(e).call(this,t))),"createComponent",(function(t){n.SizeAware=L(t)((function(t){return t.children}))})),p(w(n),"onSize",(function(t){return n.setState({size:t})}));t.children,t.render;var r=x(t,["children","render"]);return n.createComponent(r),n.state={size:{width:void 0,height:void 0}},n}return _(e,t),d(e,[{key:"componentDidUpdate",value:function(t){var e=this.props,n=(e.children,e.render,x(e,["children","render"])),r=(t.children,t.render,x(t,["children","render"]));u(n,r)||this.createComponent(n)}},{key:"render",value:function(){var t=this.SizeAware,e=this.props.children||this.props.render;return o.createElement(t,{onSize:this.onSize},e({size:this.state.size}))}}]),e}(i.Component);p(O,"defaultProps",{children:void 0,render:void 0}),L.SizeMe=O,L.withSize=L,t.exports=L},,function(t,e,n){n(996),t.exports=self.fetch.bind(self)},function(t,e,n){"use strict";var r=n(419);e.a=function(t){return(null==t?0:t.length)?Object(r.a)(t,0,-1):[]}},,,,,function(t,e,n){"use strict";e.a=function(t){return function(e){return null==e?void 0:e[t]}}},function(t,e,n){t.exports=n(913)},,function(t,e,n){var r=n(482),i=Math.max,o=Math.min;t.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):o(n,e)}},function(t,e,n){"use strict";var r=n(59),i=n(331);e.a=function(t,e){return t&&t.length?Object(i.a)(t,Object(r.a)(e,2)):[]}},,,function(t,e,n){"use strict";var r=n(289),i=n(549),o=n(116);e.a=function(t){return t&&t.length?Object(r.a)(t,o.a,i.a):void 0}},,,,function(t,e,n){var r=n(481);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,e,n){var r=n(182),i=n(89),o=n(570);t.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(89),i=n(107),o=n(372),s=i("species");t.exports=function(t){return o>=51||!r((function(){var e=[];return(e.constructor={})[s]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},,,function(t,e,n){"use strict";var r=n(371),i=n(296),o=n(302);t.exports=function(t,e,n){var s=r(e);s in t?i.f(t,s,o(0,n)):t[s]=n}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r="onlySeriesCategory"},function(t,e,n){"use strict";var r=function(t,e){return null!=t&&e in Object(t)},i=n(142),o=n(205),s=n(31),a=n(170),c=n(201),l=n(108);var u=function(t,e,n){for(var r=-1,u=(e=Object(i.a)(e,t)).length,h=!1;++r<u;){var f=Object(l.a)(e[r]);if(!(h=null!=t&&n(t,f)))break;t=t[f]}return h||++r!=u?h:!!(u=null==t?0:t.length)&&Object(c.a)(u)&&Object(a.a)(f,u)&&(Object(s.a)(t)||Object(o.a)(t))};e.a=function(t,e){return null!=t&&u(t,e,r)}},function(t,e,n){"use strict";e.a=function(t,e){return t>e}},function(t,e,n){var r=n(26),i=n(56),o=n(89),s=n(334),a=r.Object,c=i("".split);t.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"==s(t)?c(t,""):a(t)}:a},function(t,e,n){var r={};r[n(107)("toStringTag")]="z",t.exports="[object z]"===String(r)},function(t,e){t.exports="\t\n\v\f\r  áââââââ
ââââââ¯âã\u2028\u2029\ufeff"},function(t,e,n){t.exports=n(57)},function(t,e,n){var r=n(73),i=n(1158);
21t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}return function(n,o){return r(n),i(o),e?t.call(n,o):n.__proto__=o,n}}():void 0)},function(t,e,n){"use strict";var r=n(402),i=n(110),o=n(82),s=n(81),a=o("species");t.exports=function(t){var e=r(t),n=i.f;s&&e&&!e[a]&&n(e,a,{configurable:!0,get:function(){return this}})}},function(t,e,n){var r=n(196),i="["+n(687)+"]",o=RegExp("^"+i+i+"*"),s=RegExp(i+i+"*$"),a=function(t){return function(e){var n=String(r(e));return 1&t&&(n=n.replace(o,"")),2&t&&(n=n.replace(s,"")),n}};t.exports={start:a(1),end:a(2),trim:a(3)}},function(t,e,n){var r=n(212);t.exports=function(t,e,n){for(var i in e)r(t,i,e[i],n);return t}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));let r="";const i={};function o(t){for(const e in i)if(t.startsWith(e)){const n=i[e];t=t.replace(e,n)}return t.startsWith("http://")||t.startsWith("https://")||(t="".concat(r).concat(t)),t}},,,,function(t,e,n){"use strict";n.r(e);var r=n(71),i=n(63);e.default=function(t){return"number"==typeof t||Object(i.a)(t)&&"[object Number]"==Object(r.a)(t)}},function(t,e,n){"use strict";(function(t){function r(e){if("undefined"!=typeof window&&"object"==typeof window.process&&"renderer"===window.process.type)return!0;if(void 0!==t&&"object"==typeof t.versions&&Boolean(t.versions.electron))return!0;const n="object"==typeof navigator&&"string"==typeof navigator.userAgent&&navigator.userAgent,r=e||n;return!!(r&&r.indexOf("Electron")>=0)}n.d(e,"a",(function(){return r}))}).call(this,n(297))},,function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(16),i=n(241),o=n(20);let s="";class a extends i.a{get[Symbol.toStringTag](){return"Texture2D"}static isSupported(t,e){return i.a.isSupported(t,e)}constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var n,i;Object(r.b)(t),(e instanceof Promise||"string"==typeof e)&&(e={data:e}),"string"==typeof e.data&&(e=Object.assign({},e,{data:(n=e.data,Object(o.a)("string"==typeof n),n=s+n,new Promise((t,e)=>{try{const r=new Image;r.onload=()=>t(r),r.onerror=()=>e(new Error("Could not load image ".concat(n,"."))),r.crossOrigin=i&&i.crossOrigin||"anonymous",r.src=n}catch(t){e(t)}}))})),super(t,Object.assign({},e,{target:3553})),this.initialize(e),Object.seal(this)}}},function(t,e,n){"use strict";var r;!function(){var n=e||{}||this||window;void 0===(r=function(){return n}.apply(e,[]))||(t.exports=r),n.default=n;var i="http://www.w3.org/2000/xmlns/",o="http://www.w3.org/2000/svg",s=/url\(["']?(.+?)["']?\)/,a={woff2:"font/woff2",woff:"font/woff",otf:"application/x-font-opentype",ttf:"application/x-font-ttf",eot:"application/vnd.ms-fontobject",sfnt:"application/font-sfnt",svg:"image/svg+xml"},c=function(t){return t instanceof HTMLElement||t instanceof SVGElement},l=function(t){if(!c(t))throw new Error("an HTMLElement or SVGElement is required; got "+t)},u=function(t){return new Promise((function(e,n){c(t)?e(t):n(new Error("an HTMLElement or SVGElement is required; got "+t))}))},h=function(t,e,n){var r=t.viewBox&&t.viewBox.baseVal&&t.viewBox.baseVal[n]||null!==e.getAttribute(n)&&!e.getAttribute(n).match(/%$/)&&parseInt(e.getAttribute(n))||t.getBoundingClientRect()[n]||parseInt(e.style[n])||parseInt(window.getComputedStyle(t).getPropertyValue(n));return null==r||isNaN(parseFloat(r))?0:r},f=function(t){for(var e=window.atob(t.split(",")[1]),n=t.split(",")[0].split(":")[1].split(";")[0],r=new ArrayBuffer(e.length),i=new Uint8Array(r),o=0;o<e.length;o++)i[o]=e.charCodeAt(o);return new Blob([r],{type:n})},d=function(t){return Promise.all(Array.from(t.querySelectorAll("image")).map((function(t){var e,n=t.getAttributeNS("http://www.w3.org/1999/xlink","href")||t.getAttribute("href");return n?((e=n)&&0===e.lastIndexOf("http",0)&&-1===e.lastIndexOf(window.location.host)&&(n+=(-1===n.indexOf("?")?"?":"&")+"t="+(new Date).valueOf()),new Promise((function(e,r){var i=document.createElement("canvas"),o=new Image;o.crossOrigin="anonymous",o.src=n,o.onerror=function(){return r(new Error("Could not load "+n))},o.onload=function(){i.width=o.width,i.height=o.height,i.getContext("2d").drawImage(o,0,0),t.setAttributeNS("http://www.w3.org/1999/xlink","href",i.toDataURL("image/png")),e(!0)}}))):Promise.resolve(null)})))},p={},g=function(t){return Promise.all(t.map((function(t){return new Promise((function(e,n){if(p[t.url])return e(p[t.url]);var r=new XMLHttpRequest;r.addEventListener("load",(function(){var n=function(t){for(var e="",n=new Uint8Array(t),r=0;r<n.byteLength;r++)e+=String.fromCharCode(n[r]);return window.btoa(e)}(r.response),i=t.text.replace(s,'url("data:'+t.format+";
21base64,"+n+'")')+"\n";p[t.url]=i,e(i)})),r.addEventListener("error",(function(n){console.warn("Failed to load font from: "+t.url,n),p[t.url]=null,e(null)})),r.addEventListener("abort",(function(n){console.warn("Aborted loading font from: "+t.url,n),e(null)})),r.open("GET",t.url),r.responseType="arraybuffer",r.send()}))}))).then((function(t){return t.filter((function(t){return t})).join("")}))},m=null,y=function(t,e){var n=e||{},r=n.selectorRemap,i=n.modifyStyle,o=n.modifyCss,c=n.fonts,l=n.excludeUnusedCss,u=o||function(t,e){return(r?r(t):t)+"{"+(i?i(e):e)+"}\n"},h=[],f=void 0===c,d=c||[];return(m||(m=Array.from(document.styleSheets).map((function(t){try{return{rules:t.cssRules,href:t.href}}catch(e){return console.warn("Stylesheet could not be loaded: "+t.href,e),{}}})))).forEach((function(e){var n=e.rules,r=e.href;n&&Array.from(n).forEach((function(e){if(void 0!==e.style)if(function(t,e){if(e)try{return t.querySelector(e)||t.parentNode&&t.parentNode.querySelector(e)}catch(t){console.warn('Invalid CSS selector "'+e+'"',t)}}(t,e.selectorText))h.push(u(e.selectorText,e.style.cssText));else if(f&&e.cssText.match(/^@font-face/)){var n=function(t,e){var n=t.cssText.match(s),r=n&&n[1]||"";if(r&&!r.match(/^data:/)&&"about:blank"!==r){var i,o,c=r.startsWith("../")?e+"/../"+r:r.startsWith("./")?e+"/."+r:r;return{text:t.cssText,format:(i=c,o=Object.keys(a).filter((function(t){return i.indexOf("."+t)>0})).map((function(t){return a[t]})),o?o[0]:(console.error("Unknown font format for "+i+". Fonts may not be working correctly."),"application/octet-stream")),url:c}}}(e,r);n&&d.push(n)}else l||h.push(e.cssText)}))})),g(d).then((function(t){return h.join("\n")+t}))},_=function(){if(!navigator.msSaveOrOpenBlob&&!("download"in document.createElement("a")))return{popup:window.open()}};n.prepareSvg=function(t,e,n){l(t);var r=e||{},s=r.left,a=void 0===s?0:s,c=r.top,u=void 0===c?0:c,f=r.width,p=r.height,g=r.scale,m=void 0===g?1:g,_=r.responsive,v=void 0!==_&&_,b=r.excludeCss,x=void 0!==b&&b;return d(t).then((function(){var r=t.cloneNode(!0);r.style.backgroundColor=(e||{}).backgroundColor||t.style.backgroundColor;var s=function(t,e,n,r){if("svg"===t.tagName)return{width:n||h(t,e,"width"),height:r||h(t,e,"height")};if(t.getBBox){var i=t.getBBox(),o=i.x,s=i.y;return{width:o+i.width,height:s+i.height}}}(t,r,f,p),c=s.width,l=s.height;if("svg"!==t.tagName){if(!t.getBBox)return void console.error("Attempted to render non-SVG element",t);null!=r.getAttribute("transform")&&r.setAttribute("transform",r.getAttribute("transform").replace(/translate\(.*?\)/,""));var d=document.createElementNS("http://www.w3.org/2000/svg","svg");d.appendChild(r),r=d}if(r.setAttribute("version","1.1"),r.setAttribute("viewBox",[a,u,c,l].join(" ")),r.getAttribute("xmlns")||r.setAttributeNS(i,"xmlns",o),r.getAttribute("xmlns:xlink")||r.setAttributeNS(i,"xmlns:xlink","http://www.w3.org/1999/xlink"),v?(r.removeAttribute("width"),r.removeAttribute("height"),r.setAttribute("preserveAspectRatio","xMinYMin meet")):(r.setAttribute("width",c*m),r.setAttribute("height",l*m)),Array.from(r.querySelectorAll("foreignObject > *")).forEach((function(t){t.setAttributeNS(i,"xmlns","svg"===t.tagName?o:"http://www.w3.org/1999/xhtml")})),!x)return y(t,e).then((function(t){var e=document.createElement("style");e.setAttribute("type","text/css"),e.innerHTML="<![CDATA[\n"+t+"\n]]>";var i=document.createElement("defs");i.appendChild(e),r.insertBefore(i,r.firstChild);var o=document.createElement("div");o.appendChild(r);var s=o.innerHTML.replace(/NS\d+:href/gi,'xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href');if("function"!=typeof n)return{src:s,width:c,height:l};n(s,c,l)}));var g=document.createElement("div");g.appendChild(r);var _=g.innerHTML;if("function"!=typeof n)return{src:_,width:c,height:l};n(_,c,l)}))},n.svgAsDataUri=function(t,e,r){return l(t),n.prepareSvg(t,e).then((function(t){var e=t.src,n=t.width,i=t.height,o="data:image/svg+xml;base64,"+window.btoa(decodeURIComponent(encodeURIComponent('<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" [<!ENTITY nbsp " ">]>'+e).replace(/%([0-9A-F]{2})/g,(function(t,e){var n=String.fromCharCode("0x"+e);return"%"===n?"%25":n}))));return"function"==typeof r&&r(o,n,i),o}))},n.svgAsPngUri=function(t,e,r){l(t);var i=e||{},o=i.encoderType,s=void 0===o?"image/png":o,a=i.encoderOptions,c=void 0===a?.8:a,u=i.canvg,h=function(t){var e=t.src,n=t.width,i=t.height,o=document.createElement("canvas"),a=o.getContext("2d"),l=window.devicePixelRatio||1;o.width=n*l,o.height=i*l,o.style.width=o.width+"px",o.style.height=o.height+"px",a.setTransform(l,0,0,l,0,0),u?u(o,e):a.drawImage(e,0,0);var h=void 0;try{h=o.toDataURL(s,c)}catch(t){if("undefined"!=typeof SecurityError&&t instanceof SecurityError||"SecurityError"===t.name)return void console.error("Rendered SVG images cannot be downloaded in this browser.");throw t}return"function"==typeof r&&r(h,o.width,o.height),Promise.resolve(h)};return u?n.prepareSvg(t,e).then(h):n.svgAsDataUri(t,e).then((function(t){return new Promise((function(e,n){var r=new Image;r.onload=function(){return e(h({src:r,width:r.width,height:r.height}))},r.onerror=function(){n("There was an error loading the data URI as an image on the following SVG\n"+window.atob(t.slice(2
216))+"Open the following link to see browser's diagnosis\n"+t)},r.src=t}))}))},n.download=function(t,e,n){if(navigator.msSaveOrOpenBlob)navigator.msSaveOrOpenBlob(f(e),t);else{var r=document.createElement("a");if("download"in r){r.download=t,r.style.display="none",document.body.appendChild(r);try{var i=f(e),o=URL.createObjectURL(i);r.href=o,r.onclick=function(){return requestAnimationFrame((function(){return URL.revokeObjectURL(o)}))}}catch(t){console.error(t),console.warn("Error while getting object URL. Falling back to string URL."),r.href=e}r.click(),document.body.removeChild(r)}else n&&n.popup&&(n.popup.document.title=t,n.popup.location.replace(e))}},n.saveSvg=function(t,e,r){var i=_();return u(t).then((function(t){return n.svgAsDataUri(t,r||{})})).then((function(t){return n.download(e,t,i)}))},n.saveSvgAsPng=function(t,e,r){var i=_();return u(t).then((function(t){return n.svgAsPngUri(t,r||{})})).then((function(t){return n.download(e,t,i)}))}}()},function(t,e,n){"use strict";(function(t,r){n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return o}));"undefined"!=typeof self&&self,"undefined"!=typeof window&&window,"undefined"!=typeof document&&document;const i="object"!=typeof r||"[object process]"!==String(r)||r.browser,o="undefined"!=typeof window&&void 0!==window.orientation,s=void 0!==r&&r.version&&/v([0-9]*)/.exec(r.version);s&&parseFloat(s[1])}).call(this,n(121),n(297))},function(t,e,n){"use strict";function r(t,e,n){const r=e[0],i=e[1],o=n[3]*r+n[7]*i||1;return t[0]=(n[0]*r+n[4]*i)/o,t[1]=(n[1]*r+n[5]*i)/o,t}function i(t,e,n){const r=e[0],i=e[1],o=e[2],s=n[3]*r+n[7]*i+n[11]*o||1;return t[0]=(n[0]*r+n[4]*i+n[8]*o)/s,t[1]=(n[1]*r+n[5]*i+n[9]*o)/s,t[2]=(n[2]*r+n[6]*i+n[10]*o)/s,t}function o(t,e,n){const r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i,t[1]=n[1]*r+n[3]*i,t[2]=e[2],t}n.d(e,"a",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"b",(function(){return o}))},,,,,,function(t,e,n){var r=n(56),i=n(89),o=n(76),s=n(336),a=n(276),c=n(637),l=function(){},u=[],h=a("Reflect","construct"),f=/^\s*(?:class|function)\b/,d=r(f.exec),p=!f.exec(l),g=function(t){if(!o(t))return!1;try{return h(l,u,t),!0}catch(t){return!1}},m=function(t){if(!o(t))return!1;switch(s(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!d(f,c(t))}catch(t){return!0}};m.sham=!0,t.exports=!h||i((function(){var t;return g(g.call)||!g(Object)||!g((function(){t=!0}))||t}))?m:g},,,,function(t,e){t.exports={}},function(t,e,n){"use strict";e.a=function(){return!1}},function(t,e,n){"use strict";var r=n(180),i=n(479),o=n(301),s=n(330),a=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)Object(r.a)(e,Object(o.a)(t)),t=Object(i.a)(t);return e}:s.a;e.a=a},function(t,e,n){"use strict";var r=n(332),i=n(55),o=n(272);var s=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e},a=Object.prototype.hasOwnProperty;var c=function(t){if(!Object(i.a)(t))return s(t);var e=Object(o.a)(t),n=[];for(var r in t)("constructor"!=r||!e&&a.call(t,r))&&n.push(r);return n},l=n(94);e.a=function(t){return Object(l.a)(t)?Object(r.a)(t,!0):c(t)}},,,,,,function(t,e,n){"use strict";e.a=function(t,e){return t<e}},,,,function(t,e,n){var r=n(26).String;t.exports=function(t){try{return r(t)}catch(t){return"Object"}}},,,,,,,function(t,e,n){"use strict";var r,i,o,s,a,c;n.d(e,"d",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return a})),function(t){t.INVERSE="inverse"}(r||(r={})),function(t){t.STRING="string",t.DATE="date",t.NUMBER="number",t.GEOMETRY="geomtry",t.BOOLEAN="boolean",t.SERIAL="serial"}(i||(i={})),function(t){t.ADDRESS="address",t.CITY="city",t.STATE="state",t.POSTAL="postal",t.COUNTRY="country",t.TICKER="ticker",t.ENTITY="entity",t.URL="url"}(o||(o={})),function(t){t.DATE="date",t.DATETIME="datetime",t.TIME="time",t.DAY="day",t.WEEK="week",t.MONTH="month",t.QUARTER="quarter",t.YEAR="year",t.YEARQUARTER="year_quarter",t.YEARMONTH="year_month",t.YEARWEEK="year_week",t.YEARDAY="year_day"}(s||(s={})),function(t){t.NUMBER="number",t.PERCENT="percent",t.LATITUDE="latitude",t.LONGITUDE="longitude"}(a||(a={})),function(t){t.POINT="point"}(c||(c={}))},function(t,e,n){"use strict";var r;n.d(e,"a",(function(){return r})),function(t){t.NUMBER="number",t.PERCENT="percent",t.STRING="string",t.DATE="date",t.INVISIBLE="invisible"}(r||(r={}))},,function(t,e,n){var r=n(378),i=n(448);(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.20.1",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},function(t,e,n){var r=n(56),i=0,o=Math.random(),s=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+s(++i+o,36)}},,,,,function(t,e,n){var r=n(182),i=n(229),o=n(657),s=n(302),a=n(281),c=n(371),l=n(171),u=n(504),h=Object.getOwnPropertyDescriptor;e.f=r?h:function(t,e){if(t=a(t),e=c(e),u)try{return h(t,e)}catch(t){}if(l(t,e))return s(!i(o.f,t,e),t[e])}},function(t,e,n){var r=n(26),i=n(154),o=r.document,s=i(o)&&i(o.createElement);t.exports=function(t){return s?o.createElement(t):{}}},function(t,e,n){t.exports=n(898)},function(t,e,n){var r=n(294);t.exports=function(t,e){var n=t[e];return null==n?void 0:r(n)}},,function(t,e,n){"use strict";var r=n(194),i=n(380),o=n(142),s=n(170),a=n(55),c=n(108);var l=function(t,e,n,r){if(!Object(a.a)(t))return t;for(var l=-1,u=(e=Object(o.a)(e,t)).length,h=u-1,f=t;null!=f&&++l<u;){var d=Object(c.a)(e[l]),p=n;if(l!=h){var g=f[d];void 0===(p=r?r(g,d,f):void 0)&&(p=Object(a.a)(g)?g:Object(s.a)(e[l+1])?[]:{})}Object(i.a)(f,d,p),f=f[d]}return t};e.a=function(t,e,n){for(var i=-1,s=e.length,a={};++i<s;){var c=e[i],u=Object(r.a)(t,c);n(u,c)&&l(a,Object(o.a)(c,t),u)}return a}},function(t,e,n){"use strict";var r=n(397);e.a=function(t){return t?(t=Object(r.a)(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},,function(t,e,n){var r=n(36),i=n(283),o="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==i(t)?o.call(t,""):Object(t)}:Object},function(t,e,n){var r=n(57),i=n(931),o=n(401),s=r["__core-js_shared__"]||i("__core-js_shared__",{});(t.exports=function(t,e){return s[t]||(s[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.1.3",mode:o?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++n+r).toString(36)}},function(t,e){t.exports={}},function(t,e,n){var r=n(232),i=n(87),o=n(403),s=function(t){return function(e,n,s){var a,c=r(e),l=i(c.length),u=o(s,l);if(t&&n!=n){for(;l>u;)if((a=c[u++])!=a)return!0}else for(;l>u;u++)if((t||u in c)&&c[u]===n)return t||u||0;return!t&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},function(t,e,n){var r=n(36),i=/#|\.prototype\./,o=function(t,e){var n=a[s(t)];return n==l||n!=c&&("function"==typeof e?r(e):!!e)},s=o.normalize=function(t){return String(t).replace(i,".").toLowerCase()},a=o.data={},c=o.NATIVE="N",l=o.POLYFILL="P";t.exports=o},function(t,e,n){var r=n(1149),i=n(933);t.exports=Object.keys||function(t){return r(t,i)}},function(t,e,n){var r=n(72),i=n(454),o=n(82)("species");t.exports=function(t,e){var n;return i(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!i(n.prototype)?r(n)&&null===(n=n[o])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)}},function(t,e,n){var r=n(36);t.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(t,e,n){var r=n(73),i=n(936),o=n(87),s=n(405),a=n(588),c=n(1156),l=function(t,e){this.stopped=t,this.result=e};(t.exports=function(t,e,n,u,h){var f,d,p,g,m,y,_=s(e,n,u?2:1);if(h)f=t;else{if("function"!=typeof(d=a(t)))throw TypeError("Target is not iterable");if(i(d)){for(p=0,g=o(t.length);g>p;p++)if((m=u?_(r(y=t[p])[0],y[1]):_(t[p]))&&m instanceof l)return m;return new l(!1)}f=d.call(t)}for(;!(y=f.next()).done;)if((m=c(f,_,y.value,u))&&m instanceof l)return m;return new l(!1)}).stop=function(t){return new l(!0,t)}},function(t,e){t.exports={}},function(t,e,n){var r=n(589),i=n(587),o=n(82)("iterator");t.exports=function(t){if(null!=t)return t[o]||t["@@iterator"]||i[r(t)]}},function(t,e,n){var r=n(283),i=n(82)("toStringTag"),o="Arguments"==r(function(){return arguments}());t.exports=function(t){var e,n,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}
21(e=Object(t),i))?n:o?r(e):"Object"==(s=r(e))&&"function"==typeof e.callee?"Arguments":s}},function(t,e,n){var r=n(36),i=n(82)("species");t.exports=function(t){return!r((function(){var e=[];return(e.constructor={})[i]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},function(t,e,n){"use strict";var r=n(73);t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,n){t.exports=n(956)},function(t,e,n){"use strict";(function(t){function r(){let e;if("undefined"!=typeof window&&window.performance)e=window.performance.now();else if(void 0!==t&&t.hrtime){const n=t.hrtime();e=1e3*n[0]+n[1]/1e6}else e=Date.now();return e}n.d(e,"a",(function(){return r}))}).call(this,n(297))},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(16);function i(t,e,n){const{removedProps:i={},deprecatedProps:o={},replacedProps:s={}}=n;for(const n in i)if(n in e){const e=i[n]?"".concat(t,".").concat(i[n]):"N/A";r.j.removed("".concat(t,".").concat(n),e)()}for(const n in o)if(n in e){const e=o[n];r.j.deprecated("".concat(t,".").concat(n),"".concat(t,".").concat(e))()}let a=null;for(const n in s)if(n in e){const i=s[n];r.j.deprecated("".concat(t,".").concat(n),"".concat(t,".").concat(i))(),a=a||Object.assign({},e),a[i]=e[n],delete a[n]}return a||e}},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(16),i=n(1200),o=n(411);const s=new class{constructor(){this.stats=new Map}get(t){return this.stats.has(t)||this.stats.set(t,new i.a({id:t})),this.stats.get(t)}};if(globalThis.luma&&"8.5.21"!==globalThis.luma.VERSION)throw new Error("luma.gl - multiple VERSIONs detected: ".concat(globalThis.luma.VERSION," vs ").concat("8.5.21"));globalThis.luma||(Object(o.a)()&&r.j.log(1,"luma.gl ".concat("8.5.21"," - ").concat("set luma.log.level=1 (or higher) to trace rendering"))(),globalThis.luma=globalThis.luma||{VERSION:"8.5.21",version:"8.5.21",log:r.j,stats:s,globals:{modules:{},nodeIO:{}}});globalThis.luma},function(t,e,n){var r; 22/*! Hammer.JS - v2.0.7 - 2016-04-22 23 * http://hammerjs.github.io/ 24 * 25 * Copyright (c) 2016 Jorik Tangelder; 26 * Licensed under the MIT license */!function(i,o,s,a){"use strict";var c,l=["","webkit","Moz","MS","ms","o"],u=o.createElement("div"),h=Math.round,f=Math.abs,d=Date.now;function p(t,e,n){return setTimeout(x(t,n),e)}function g(t,e,n){return!!Array.isArray(t)&&(m(t,n[e],n),!0)}function m(t,e,n){var r;if(t)if(t.forEach)t.forEach(e,n);else if(void 0!==t.length)for(r=0;r<t.length;)e.call(n,t[r],r,t),r++;else for(r in t)t.hasOwnProperty(r)&&e.call(n,t[r],r,t)}function y(t,e,n){var r="DEPRECATED METHOD: "+e+"\n"+n+" AT \n";return function(){var e=new Error("get-stack-trace"),n=e&&e.stack?e.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=i.console&&(i.console.warn||i.console.log);return o&&o.call(i.console,r,n),t.apply(this,arguments)}}c="function"!=typeof Object.assign?function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var r=arguments[n];if(null!=r)for(var i in r)r.hasOwnProperty(i)&&(e[i]=r[i])}return e}:Object.assign;var _=y((function(t,e,n){for(var r=Object.keys(e),i=0;i<r.length;)(!n||n&&void 0===t[r[i]])&&(t[r[i]]=e[r[i]]),i++;return t}),"extend","Use `assign`."),v=y((function(t,e){return _(t,e,!0)}),"merge","Use `assign`.");function b(t,e,n){var r,i=e.prototype;(r=t.prototype=Object.create(i)).constructor=t,r._super=i,n&&c(r,n)}function x(t,e){return function(){return t.apply(e,arguments)}}function w(t,e){return"function"==typeof t?t.apply(e&&e[0]||void 0,e):t}function E(t,e){return void 0===t?e:t}function S(t,e,n){m(T(e),(function(e){t.addEventListener(e,n,!1)}))}function C(t,e,n){m(T(e),(function(e){t.removeEventListener(e,n,!1)}))}function A(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function I(t,e){return t.indexOf(e)>-1}function T(t){return t.trim().split(/\s+/g)}function M(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var r=0;r<t.length;){if(n&&t[r][n]==e||!n&&t[r]===e)return r;r++}return-1}function F(t){return Array.prototype.slice.call(t,0)}function B(t,e,n){for(var r=[],i=[],o=0;o<t.length;){var s=e?t[o][e]:t[o];M(i,s)<0&&r.push(t[o]),i[o]=s,o++}return n&&(r=e?r.sort((function(t,n){return t[e]>n[e]})):r.sort()),r}function L(t,e){for(var n,r,i=e[0].toUpperCase()+e.slice(1),o=0;o<l.length;){if((r=(n=l[o])?n+i:e)in t)return r;o++}}var O=1;function U(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||i}var k="ontouchstart"in i,P=void 0!==L(i,"PointerEvent"),D=k&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),R=["x","y"],j=["clientX","clientY"];function z(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){w(t.options.enable,[t])&&n.handler(e)},this.init()}function Q(t,e,n){var r=n.pointers.length,i=n.changedPointers.length,o=1&e&&r-i==0,s=12&e&&r-i==0;n.isFirst=!!o,n.isFinal=!!s,o&&(t.session={}),n.eventType=e,function(t,e){var n=t.session,r=e.pointers,i=r.length;n.firstInput||(n.firstInput=N(e));i>1&&!n.firstMultiple?n.firstMultiple=N(e):1===i&&(n.firstMultiple=!1);var o=n.firstInput,s=n.firstMultiple,a=s?s.center:o.center,c=e.center=V(r);e.timeStamp=d(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=W(a,c),e.distance=Z(a,c),function(t,e){var n=e.center,r=t.offsetDelta||{},i=t.prevDelta||{},o=t.prevInput||{};1!==e.eventType&&4!==o.eventType||(i=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},r=t.offsetDelta={x:n.x,y:n.y});e.deltaX=i.x+(n.x-r.x),e.deltaY=i.y+(n.y-r.y)}(n,e),e.offsetDirection=H(e.deltaX,e.deltaY);var l=G(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=l.x,e.overallVelocityY=l.y,e.overallVelocity=f(l.x)>f(l.y)?l.x:l.y,e.scale=s?(u=s.pointers,h=r,Z(h[0],h[1],j)/Z(u[0],u[1],j)):1,e.rotation=s?function(t,e){return W(e[1],e[0],j)+W(t[1],t[0],j)}(s.pointers,r):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,function(t,e){var n,r,i,o,s=t.lastInterval||e,a=e.timeStamp-s.timeStamp;if(8!=e.eventType&&(a>25||void 0===s.velocity)){var c=e.deltaX-s.deltaX,l=e.deltaY-s.deltaY,u=G(a,c,l);r=u.x,i=u.y,n=f(u.x)>f(u.y)?u.x:u.y,o=H(c,l),t.lastInterval=e}else n=s.velocity,r=s.velocityX,i=s.velocityY,o=s.direction;e.velocity=n,e.velocityX=r,e.velocityY=i,e.direction=o}(n,e);var u,h;var p=t.element;A(e.srcEvent.target,p)&&(p=e.srcEvent.target);e.target=p}(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function N(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:h(t.pointers[n].clientX),clientY:h(t.pointers[n].clientY)},n++;return{timeStamp:d(),pointers:e,center:V(e),deltaX:t.deltaX,deltaY:t.deltaY}}function V(t){var e=t.length;if(1===e)return{x:h(t[0].clientX),y:h(t[0].clientY)};for(var n=0,r=0,i=0;i<e;)n+=t[i].clientX,r+=t[i].clientY,i++;return{x:h(n/e),y:h(r/e)}}function G(t,e,n){return{x:e/t||0,y:n/t||0}}function H(t,e){return t===e?1:f(t)>=f(e)?t<0?2:4:e<0?8:16}function Z(t,e,n){n||(n=R);var r=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return Math.sqrt(r*r+i*i)}function W(t,e,n){n||(n=R);var r=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return 180*Math.atan2(i,r)/Math.PI}z.prototype={handler:function(){},init:function(){this.evEl&&S(this.element,this.evEl,this.domHandler),this.evTarget&&S(this.target,this.evTarget,this.domHandler),this.evWin&&S(U(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&C(this.element,this.evEl,this.domHandler),this.evTarget&&C(this.target,this.evTarget,this.domHandler),this.evWin&&C(U(this.element),this.evWin,this.domHandler)}};
vendor: 10,721 bytes, line 26
26var X={mousedown:1,mousemove:2,mouseup:4};function Y(){this.evEl="mousedown",this.evWin="mousemove mouseup",this.pressed=!1,z.apply(this,arguments)}b(Y,z,{handler:function(t){var e=X[t.type];1&e&&0===t.button&&(this.pressed=!0),2&e&&1!==t.which&&(e=4),this.pressed&&(4&e&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:"mouse",srcEvent:t}))}});var q={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},K={2:"touch",3:"pen",4:"mouse",5:"kinect"},J="pointerdown",$="pointermove pointerup pointercancel";function tt(){this.evEl=J,this.evWin=$,z.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}i.MSPointerEvent&&!i.PointerEvent&&(J="MSPointerDown",$="MSPointerMove MSPointerUp MSPointerCancel"),b(tt,z,{handler:function(t){var e=this.store,n=!1,r=t.type.toLowerCase().replace("ms",""),i=q[r],o=K[t.pointerType]||t.pointerType,s="touch"==o,a=M(e,t.pointerId,"pointerId");1&i&&(0===t.button||s)?a<0&&(e.push(t),a=e.length-1):12&i&&(n=!0),a<0||(e[a]=t,this.callback(this.manager,i,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),n&&e.splice(a,1))}});var et={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function nt(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,z.apply(this,arguments)}function rt(t,e){var n=F(t.touches),r=F(t.changedTouches);return 12&e&&(n=B(n.concat(r),"identifier",!0)),[n,r]}b(nt,z,{handler:function(t){var e=et[t.type];if(1===e&&(this.started=!0),this.started){var n=rt.call(this,t,e);12&e&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:t})}}});var it={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function ot(){this.evTarget="touchstart touchmove touchend touchcancel",this.targetIds={},z.apply(this,arguments)}function st(t,e){var n=F(t.touches),r=this.targetIds;if(3&e&&1===n.length)return r[n[0].identifier]=!0,[n,n];var i,o,s=F(t.changedTouches),a=[],c=this.target;if(o=n.filter((function(t){return A(t.target,c)})),1===e)for(i=0;i<o.length;)r[o[i].identifier]=!0,i++;for(i=0;i<s.length;)r[s[i].identifier]&&a.push(s[i]),12&e&&delete r[s[i].identifier],i++;return a.length?[B(o.concat(a),"identifier",!0),a]:void 0}b(ot,z,{handler:function(t){var e=it[t.type],n=st.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:t})}});function at(){z.apply(this,arguments);var t=x(this.handler,this);this.touch=new ot(this.manager,t),this.mouse=new Y(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function ct(t,e){1&t?(this.primaryTouch=e.changedPointers[0].identifier,lt.call(this,e)):12&t&<.call(this,e)}function lt(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var n={x:e.clientX,y:e.clientY};this.lastTouches.push(n);var r=this.lastTouches;setTimeout((function(){var t=r.indexOf(n);t>-1&&r.splice(t,1)}),2500)}}function ut(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,r=0;r<this.lastTouches.length;r++){var i=this.lastTouches[r],o=Math.abs(e-i.x),s=Math.abs(n-i.y);if(o<=25&&s<=25)return!0}return!1}b(at,z,{handler:function(t,e,n){var r="touch"==n.pointerType,i="mouse"==n.pointerType;if(!(i&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(r)ct.call(this,e,n);else if(i&&ut.call(this,n))return;this.callback(t,e,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var ht=L(u.style,"touchAction"),ft=void 0!==ht,dt=function(){if(!ft)return!1;var t={},e=i.CSS&&i.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(n){t[n]=!e||i.CSS.supports("touch-action",n)})),t}();function pt(t,e){this.manager=t,this.set(e)}pt.prototype={set:function(t){"compute"==t&&(t=this.compute()),ft&&this.manager.element.style&&dt[t]&&(this.manager.element.style[ht]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return m(this.manager.recognizers,(function(e){w(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(I(t,"none"))return"none";var e=I(t,"pan-x"),n=I(t,"pan-y");if(e&&n)return"none";if(e||n)return e?"pan-x":"pan-y";if(I(t,"manipulation"))return"manipulation";return"auto"}(t.join(" "))},preventDefaults:function(t){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var r=this.actions,i=I(r,"none")&&!dt.none,o=I(r,"pan-y")&&!dt["pan-y"],s=I(r,"pan-x")&&!dt["pan-x"];if(i){var a=1===t.pointers.length,c=t.distance<2,l=t.deltaTime<250;if(a&&c&&l)return}if(!s||!o)return i||o&&6&n||s&&24&n?this.preventSrc(e):void 0}},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};function gt(t){this.options=c({},this.defaults,t||{}),this.id=O++,this.manager=null,this.options.enable=E(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function mt(t){return 16&t?"cancel":8&t?"end":4&t?"move":2&t?"start":""}function yt(t){return 16==t?"down":8==t?"up":2==t?"left":4==t?"right":""}function _t(t,e){var n=e.manager;return n?n.get(t):t}function vt(){gt.apply(this,arguments)}function bt(){vt.apply(this,arguments),this.pX=null,this.pY=null}function xt(){vt.apply(this,arguments)}function wt(){gt.apply(this,arguments),this._timer=null,this._input=null}function Et(){vt.apply(this,arguments)}function St(){vt.apply(this,arguments)}function Ct(){gt.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function At(t,e){return(e=e||{}).recognizers=E(e.recognizers,At.defaults.preset),new It(t,e)}gt.prototype={defaults:{},set:function(t){return c(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(g(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=_t(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return g(t,"dropRecognizeWith",this)||(t=_t(t,this),delete this.simultaneous[t.id]),this},requireFailure:function(t){if(g(t,"requireFailure",this))return this;var e=this.requireFail;return-1===M(e,t=_t(t,this))&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(g(t,"dropRequireFailure",this))return this;t=_t(t,this);var e=M(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){var e=this,n=this.state;function r(n){e.manager.emit(n,t)}n<8&&r(e.options.event+mt(n)),r(e.options.event),t.additionalEvent&&r(t.additionalEvent),n>=8&&r(e.options.event+mt(n))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=32},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(33&this.requireFail[t].state))return!1;t++}return!0},recognize:function(t){var e=c({},t);if(!w(this.options.enable,[this,e]))return this.reset(),void(this.state=32);56&this.state&&(this.state=1),this.state=this.process(e),30&this.state&&this.tryEmit(e)},process:function(t){},getTouchAction:function(){},reset:function(){}},b(vt,gt,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,n=t.eventType,r=6&e,i=this.attrTest(t);return r&&(8&n||!i)?16|e:r||i?4&n?8|e:2&e?4|e:2:32}}),b(bt,vt,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var t=this.options.direction,e=[];return 6&t&&e.push("pan-y"),24&t&&e.push("pan-x"),e},directionTest:function(t){var e=this.options,n=!0,r=t.distance,i=t.direction,o=t.deltaX,s=t.deltaY;return i&e.direction||(6&e.direction?(i=0===o?1:o<0?2:4,n=o!=this.pX,r=Math.abs(t.deltaX)):(i=0===s?1:s<0?8:16,n=s!=this.pY,r=Math.abs(t.deltaY))),t.direction=i,n&&r>e.threshold&&i&e.direction},attrTest:function(t){return vt.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=yt(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),b(xt,vt,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||2&this.state)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),b(wt,gt,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,r=t.distance<e.threshold,i=t.deltaTime>e.time;if(this._input=t,!r||!n||12&t.eventType&&!i)this.reset();else if(1&t.eventType)this.reset(),this._timer=p((function(){this.state=8,this.tryEmit()}),e.time,this);else if(4&t.eventType)return 8;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){8===this.state&&(t&&4&t.eventType?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=d(),this.manager.emit(this.options.event,this._input)))}}),b(Et,vt,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||2&this.state)}}),b(St,vt,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return bt.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return 30&n?e=t.overallVelocity:6&n?e=t.overallVelocityX:24&n&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&f(e)>this.options.velocity&&4&t.eventType},emit:function(t){var e=yt(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),b(Ct,gt,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return["manipulation"]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,r=t.distance<e.threshold,i=t.deltaTime<e.time;if(this.reset(),1&t.eventType&&0===this.count)return this.failTimeout();if(r&&i&&n){if(4!=t.eventType)return this.failTimeout();var o=!this.pTime||t.timeStamp-this.pTime<e.interval,s=!this.pCenter||Z(this.pCenter,t.center)<e.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,s&&o?this.count+=1:this.count=1,this._input=t,0===this.count%e.taps)return this.hasRequireFailures()?(this._timer=p((function(){this.state=8,this.tryEmit()}
26),e.interval,this),2):8}return 32},failTimeout:function(){return this._timer=p((function(){this.state=32}),this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),At.VERSION="2.0.7",At.defaults={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,preset:[[Et,{enable:!1}],[xt,{enable:!1},["rotate"]],[St,{direction:6}],[bt,{direction:6},["swipe"]],[Ct],[Ct,{event:"doubletap",taps:2},["tap"]],[wt]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};function It(t,e){var n;this.options=c({},At.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new((n=this).options.inputClass||(P?tt:D?ot:k?at:Y))(n,Q),this.touchAction=new pt(this,this.options.touchAction),Tt(this,!0),m(this.options.recognizers,(function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])}),this)}function Tt(t,e){var n,r=t.element;r.style&&(m(t.options.cssProps,(function(i,o){n=L(r.style,o),e?(t.oldCssProps[n]=r.style[n],r.style[n]=i):r.style[n]=t.oldCssProps[n]||""})),e||(t.oldCssProps={}))}It.prototype={set:function(t){return c(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?2:1},recognize:function(t){var e=this.session;if(!e.stopped){var n;this.touchAction.preventDefaults(t);var r=this.recognizers,i=e.curRecognizer;(!i||i&&8&i.state)&&(i=e.curRecognizer=null);for(var o=0;o<r.length;)n=r[o],2===e.stopped||i&&n!=i&&!n.canRecognizeWith(i)?n.reset():n.recognize(t),!i&&14&n.state&&(i=e.curRecognizer=n),o++}},get:function(t){if(t instanceof gt)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event==t)return e[n];return null},add:function(t){if(g(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(g(t,"remove",this))return this;if(t=this.get(t)){var e=this.recognizers,n=M(e,t);-1!==n&&(e.splice(n,1),this.touchAction.update())}return this},on:function(t,e){if(void 0!==t&&void 0!==e){var n=this.handlers;return m(T(t),(function(t){n[t]=n[t]||[],n[t].push(e)})),this}},off:function(t,e){if(void 0!==t){var n=this.handlers;return m(T(t),(function(t){e?n[t]&&n[t].splice(M(n[t],e),1):delete n[t]})),this}},emit:function(t,e){this.options.domEvents&&function(t,e){var n=o.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e,e.target.dispatchEvent(n)}(t,e);var n=this.handlers[t]&&this.handlers[t].slice();if(n&&n.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var r=0;r<n.length;)n[r](e),r++}},destroy:function(){this.element&&Tt(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},c(At,{INPUT_START:1,INPUT_MOVE:2,INPUT_END:4,INPUT_CANCEL:8,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:32,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:24,DIRECTION_ALL:30,Manager:It,Input:z,TouchAction:pt,TouchInput:ot,MouseInput:Y,PointerEventInput:tt,TouchMouseInput:at,SingleTouchInput:nt,Recognizer:gt,AttrRecognizer:vt,Tap:Ct,Pan:bt,Swipe:St,Pinch:xt,Rotate:Et,Press:wt,on:S,off:C,each:m,merge:v,extend:_,assign:c,inherit:b,bindFn:x,prefixed:L}),(void 0!==i?i:"undefined"!=typeof self?self:{}).Hammer=At,void 0===(r=function(){return At}.call(e,n,e,t))||(t.exports=r)}(window,document)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";var r=function(t){return function(){return t}},i=n(262),o=n(116),s=i.a?function(t,e){return Object(i.a)(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:o.a,a=Date.now;var c=function(t){var e=0,n=0;return function(){var r=a(),i=16-(r-n);if(n=r,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(s);e.a=c},function(t,e,n){"use strict";var r=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)},i=Math.max;e.a=function(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,s=-1,a=i(o.length-e,0),c=Array(a);++s<a;)c[s]=o[e+s];s=-1;for(var l=Array(e+1);++s<e;)l[s]=o[s];return l[e]=n(c),r(t,this,l)}}},function(t,e){var n=Function.prototype,r=n.apply,i=n.bind,o=n.call;t.exports="object"==typeof Reflect&&Reflect.apply||(i?o.bind(r):function(){return o.apply(r,arguments)})},function(t,e,n){var r=n(56),i=n(76),o=n(448),s=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(t){return s(t)}),t.exports=o.inspectSource},,,,,,function(t,e,n){var r=n(433),i=n(56),o=n(512),s=n(307),a=n(271),c=n(725),l=i([].push),u=function(t){var e=1==t,n=2==t,i=3==t,u=4==t,h=6==t,f=7==t,d=5==t||h;return function(p,g,m,y){for(var _,v,b=s(p),x=o(b),w=r(g,m),E=a(x),S=0,C=y||c,A=e?C(p,E):n||f?C(p,0):void 0;E>S;S++)if((d||S in x)&&(v=w(_=x[S],S,b),t))if(e)A[S]=v;else if(v)switch(t){case 3:return!0;case 5:return _;case 6:return S;case 2:l(A,_)}else switch(t){case 4:return!1;case 7:l(A,_)}
26return h?-1:i||u?u:A}};t.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},function(t,e,n){"use strict";var r=function(t,e,n,r){var i=-1,o=null==t?0:t.length;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n},i=n(225),o=n(59);var s=function(t,e,n,r,i){return i(t,(function(t,i,o){n=r?(r=!1,t):e(n,t,i,o)})),n},a=n(31);e.a=function(t,e,n){var c=Object(a.a)(t)?r:s,l=arguments.length<3;return c(t,Object(o.a)(e,4),n,l,i.a)}},function(t,e,n){"use strict";(t.exports={}).forEach=function(t,e){for(var n=0;n<t.length;n++){var r=e(t[n]);if(r)return r}}},function(t,e,n){"use strict";var r=t.exports={};r.isIE=function(t){return(-1!==(e=navigator.userAgent.toLowerCase()).indexOf("msie")||-1!==e.indexOf("trident")||-1!==e.indexOf(" edge/"))&&(!t||t===function(){var t=3,e=document.createElement("div"),n=e.getElementsByTagName("i");do{e.innerHTML="\x3c!--[if gt IE "+ ++t+"]><i></i><![endif]--\x3e"}while(n[0]);return t>4?t:void 0}());var e},r.isLegacyOpera=function(){return!!window.opera}},,,,function(t,e,n){"use strict";var r=n(103),i=n(59),o=n(417),s=n(31);e.a=function(t,e){return(Object(s.a)(t)?r.a:o.a)(t,Object(i.a)(e,3))}},,,,,,,function(t,e,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);e.f=o?function(t){var e=i(this,t);return!!e&&e.enumerable}:r},function(t,e,n){var r=n(182),i=n(171),o=Function.prototype,s=r&&Object.getOwnPropertyDescriptor,a=i(o,"name"),c=a&&"something"===function(){}.name,l=a&&(!r||r&&s(o,"name").configurable);t.exports={EXISTS:a,PROPER:c,CONFIGURABLE:l}},,,,,function(t,e,n){var r=n(89),i=n(76),o=/#|\.prototype\./,s=function(t,e){var n=c[a(t)];return n==u||n!=l&&(i(e)?r(e):!!e)},a=s.normalize=function(t){return String(t).replace(o,".").toLowerCase()},c=s.data={},l=s.NATIVE="N",u=s.POLYFILL="P";t.exports=s},,,function(t,e,n){var r=n(56);t.exports=r([].slice)},function(t,e,n){"use strict";var r=n(89);t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){throw 1},1)}))}},,function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r,i=n(2),o=n.n(i),s=n(0),a=n.n(s),c=n(339),l=(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return l(e,t),e.prototype.render=function(){var t,e=this.props,n=e.className,r=e.svg,i=e.onClick,s=e.onMouseDown,l=e.onMouseUp,u=e.hug,h=e.onMouseLeave,f=e.onMouseEnter;return a.a.createElement("i",{className:o()(c.Icon,n,(t={},t[c.hug]=u,t[c.isClickable]=void 0!==i,t)),dangerouslySetInnerHTML:{__html:r},onClick:i,onMouseDown:s,onMouseUp:l,onMouseEnter:f,onMouseLeave:h})},e}(a.a.PureComponent)},,,,,,function(t,e,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);e.f=o?function(t){var e=i(this,t);return!!e&&e.enumerable}:r},function(t,e,n){var r=n(578),i=n(579),o=r("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},function(t,e,n){"use strict";var r=n(401),i=n(57),o=n(36);t.exports=r||!o((function(){var t=Math.random();__defineSetter__.call(null,t,(function(){})),delete i[t]}))},function(t,e,n){var r=n(82)("iterator"),i=!1;try{var o=0,s={next:function(){return{done:!!o++}},return:function(){i=!0}};s[r]=function(){return this},Array.from(s,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var o={};o[r]=function(){return{next:function(){return{done:n=!0}}}},t(o)}catch(t){}return n}},function(t,e,n){var r=n(234),i=n(114),o=n(577),s=n(87),a=function(t){return function(e,n,a,c){r(n);var l=i(e),u=o(l),h=s(l.length),f=t?h-1:0,d=t?-1:1;if(a<2)for(;;){if(f in u){c=u[f],f+=d;break}if(f+=d,t?f<0:h<=f)throw TypeError("Reduce of empty array with no initial value")}for(;t?f>=0:h>f;f+=d)f in u&&(c=n(c,u[f],f,l));return c}};t.exports={left:a(!1),right:a(!0)}},function(t,e,n){"use strict";var r=n(232),i=n(406),o=n(587),s=n(233),a=n(939),c=s.set,l=s.getterFor("Array Iterator");t.exports=a(Array,"Array",(function(t,e){c(this,{type:"Array Iterator",target:r(t),index:0,kind:e})}),(function(){var t=l(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},function(t,e,n){var r=n(255),i=n(196),o=function(t){return function(e,n){var o,s,a=String(i(e)),c=r(n),l=a.length;return c<0||c>
vendor: 4,767 bytes, line 26
26=l?t?"":void 0:(o=a.charCodeAt(c))<55296||o>56319||c+1===l||(s=a.charCodeAt(c+1))<56320||s>57343?t?a.charAt(c):o:t?a.slice(c,c+2):s-56320+(o-55296<<10)+65536}};t.exports={codeAt:o(!1),charAt:o(!0)}},function(t,e,n){"use strict";var r=n(184),i=n(212),o=n(36),s=n(82),a=n(683),c=s("species"),l=!o((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),u=!o((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));t.exports=function(t,e,n,h){var f=s(t),d=!o((function(){var e={};return e[f]=function(){return 7},7!=""[t](e)})),p=d&&!o((function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[c]=function(){return n}),n[f](""),!e}));if(!d||!p||"replace"===t&&!l||"split"===t&&!u){var g=/./[f],m=n(f,""[t],(function(t,e,n,r,i){return e.exec===a?d&&!i?{done:!0,value:g.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}})),y=m[0],_=m[1];i(String.prototype,t,y),i(RegExp.prototype,f,2==e?function(t,e){return _.call(t,this,e)}:function(t){return _.call(t,this)}),h&&r(RegExp.prototype[f],"sham",!0)}}},function(t,e,n){"use strict";var r,i,o=n(591),s=RegExp.prototype.exec,a=String.prototype.replace,c=s,l=(r=/a/,i=/b*/g,s.call(r,"a"),s.call(i,"a"),0!==r.lastIndex||0!==i.lastIndex),u=void 0!==/()??/.exec("")[1];(l||u)&&(c=function(t){var e,n,r,i,c=this;return u&&(n=new RegExp("^"+c.source+"$(?!\\s)",o.call(c))),l&&(e=c.lastIndex),r=s.call(c,t),l&&r&&(c.lastIndex=c.global?r.index+r[0].length:e),u&&r&&r.length>1&&a.call(r[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)})),r}),t.exports=c},function(t,e,n){"use strict";var r=n(681).charAt;t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},function(t,e,n){var r=n(283),i=n(683);t.exports=function(t,e){var n=t.exec;if("function"==typeof n){var o=n.call(t,e);if("object"!=typeof o)throw TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(t))throw TypeError("RegExp#exec called on incompatible receiver");return i.call(t,e)}},function(t,e,n){var r=n(402);t.exports=r("navigator","userAgent")||""},function(t,e){t.exports="\t\n\v\f\r  áââââââ
ââââââ¯âã\u2028\u2029\ufeff"},function(t,e){var n=Math.expm1,r=Math.exp;t.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:r(t)-1}:n},function(t,e,n){"use strict";var r=n(12),i=n(57),o=n(582),s=n(212),a=n(455),c=n(586),l=n(407),u=n(72),h=n(36),f=n(678),d=n(318),p=n(947);t.exports=function(t,e,n,g,m){var y=i[t],_=y&&y.prototype,v=y,b=g?"set":"add",x={},w=function(t){var e=_[t];s(_,t,"add"==t?function(t){return e.call(this,0===t?0:t),this}:"delete"==t?function(t){return!(m&&!u(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return m&&!u(t)?void 0:e.call(this,0===t?0:t)}:"has"==t?function(t){return!(m&&!u(t))&&e.call(this,0===t?0:t)}:function(t,n){return e.call(this,0===t?0:t,n),this})};if(o(t,"function"!=typeof y||!(m||_.forEach&&!h((function(){(new y).entries().next()})))))v=n.getConstructor(e,t,g,b),a.REQUIRED=!0;else if(o(t,!0)){var E=new v,S=E[b](m?{}:-0,1)!=E,C=h((function(){E.has(1)})),A=f((function(t){new y(t)})),I=!m&&h((function(){for(var t=new y,e=5;e--;)t[b](e,e);return!t.has(-0)}));A||((v=e((function(e,n){l(e,v,t);var r=p(new y,e,v);return null!=n&&c(n,r[b],r,g),r}))).prototype=_,_.constructor=v),(C||I)&&(w("delete"),w("has"),g&&w("get")),(I||S)&&w(b),m&&_.clear&&delete _.clear}return x[t]=v,r({global:!0,forced:v!=y},x),d(v,t),m||n.setStrong(v,t,g),v}},function(t,e,n){"use strict";var r=n(57),i=n(81),o=n(77).NATIVE_ARRAY_BUFFER,s=n(184),a=n(519),c=n(36),l=n(407),u=n(255),h=n(87),f=n(1178),d=n(453).f,p=n(110).f,g=n(938),m=n(318),y=n(233),_=y.get,v=y.set,b=r.ArrayBuffer,x=b,w=r.DataView,E=r.Math,S=r.RangeError,C=E.abs,A=E.pow,I=E.floor,T=E.log,M=E.LN2,F=function(t,e,n){var r,i,o,s=new Array(n),a=8*n-e-1,c=(1<<a)-1,l=c>>1,u=23===e?A(2,-24)-A(2,-77):0,h=t<0||0===t&&1/t<0?1:0,f=0;for((t=C(t))!=t||t===1/0?(i=t!=t?1:0,r=c):(r=I(T(t)/M),t*(o=A(2,-r))<1&&(r--,o*=2),(t+=r+l>=1?u/o:u*A(2,1-l))*o>=2&&(r++,o/=2),r+l>=c?(i=0,r=c):r+l>=1?(i=(t*o-1)*A(2,e),r+=l):(i=t*A(2,l-1)*A(2,e),r=0));e>=8;s[f++]=255&i,i/=256,e-=8);for(r=r<<e|i,a+=e;a>0;s[f++]=255&r,r/=256,a-=8);return s[--f]|=128*h,s},B=function(t,e){var n,r=t.length,i=8*r-e-1,o=(1<<i)-1,s=o>>1,a=i-7,c=r-1,l=t[c--],u=127&l;for(l>>=7;a>0;u=256*u+t[c],c--,a-=8);for(n=u&(1<<-a)-1,u>>=-a,a+=e;a>0;n=256*n+t[c],c--,a-=8);if(0===u)u=1-s;else{if(u===o)return n?NaN:l?-1/0:1/0;n+=A(2,e),u-=s}return(l?-1:1)*n*A(2,u-e)},L=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}
vendor: 4,346 bytes, line 26
26,O=function(t){return[255&t]},U=function(t){return[255&t,t>>8&255]},k=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},P=function(t){return F(t,23,4)},D=function(t){return F(t,52,8)},R=function(t,e){p(t.prototype,e,{get:function(){return _(this)[e]}})},j=function(t,e,n,r){var i=f(+n),o=_(t);if(i+e>o.byteLength)throw S("Wrong index");var s=_(o.buffer).bytes,a=i+o.byteOffset,c=s.slice(a,a+e);return r?c:c.reverse()},z=function(t,e,n,r,i,o){var s=f(+n),a=_(t);if(s+e>a.byteLength)throw S("Wrong index");for(var c=_(a.buffer).bytes,l=s+a.byteOffset,u=r(+i),h=0;h<e;h++)c[l+h]=u[o?h:e-h-1]};if(o){if(!c((function(){b(1)}))||!c((function(){new b(-1)}))||c((function(){return new b,new b(1.5),new b(NaN),"ArrayBuffer"!=b.name}))){for(var Q,N=(x=function(t){return l(this,x),new b(f(t))}).prototype=b.prototype,V=d(b),G=0;V.length>G;)(Q=V[G++])in x||s(x,Q,b[Q]);N.constructor=x}var H=new w(new x(2)),Z=w.prototype.setInt8;H.setInt8(0,2147483648),H.setInt8(1,2147483649),!H.getInt8(0)&&H.getInt8(1)||a(w.prototype,{setInt8:function(t,e){Z.call(this,t,e<<24>>24)},setUint8:function(t,e){Z.call(this,t,e<<24>>24)}},{unsafe:!0})}else x=function(t){l(this,x,"ArrayBuffer");var e=f(t);v(this,{bytes:g.call(new Array(e),0),byteLength:e}),i||(this.byteLength=e)},w=function(t,e,n){l(this,w,"DataView"),l(t,x,"DataView");var r=_(t).byteLength,o=u(e);if(o<0||o>r)throw S("Wrong offset");if(o+(n=void 0===n?r-o:h(n))>r)throw S("Wrong length");v(this,{buffer:t,byteLength:n,byteOffset:o}),i||(this.buffer=t,this.byteLength=n,this.byteOffset=o)},i&&(R(x,"byteLength"),R(w,"buffer"),R(w,"byteLength"),R(w,"byteOffset")),a(w.prototype,{getInt8:function(t){return j(this,1,t)[0]<<24>>24},getUint8:function(t){return j(this,1,t)[0]},getInt16:function(t){var e=j(this,2,t,arguments.length>1?arguments[1]:void 0);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=j(this,2,t,arguments.length>1?arguments[1]:void 0);return e[1]<<8|e[0]},getInt32:function(t){return L(j(this,4,t,arguments.length>1?arguments[1]:void 0))},getUint32:function(t){return L(j(this,4,t,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(t){return B(j(this,4,t,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(t){return B(j(this,8,t,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(t,e){z(this,1,t,O,e)},setUint8:function(t,e){z(this,1,t,O,e)},setInt16:function(t,e){z(this,2,t,U,e,arguments.length>2?arguments[2]:void 0)},setUint16:function(t,e){z(this,2,t,U,e,arguments.length>2?arguments[2]:void 0)},setInt32:function(t,e){z(this,4,t,k,e,arguments.length>2?arguments[2]:void 0)},setUint32:function(t,e){z(this,4,t,k,e,arguments.length>2?arguments[2]:void 0)},setFloat32:function(t,e){z(this,4,t,P,e,arguments.length>2?arguments[2]:void 0)},setFloat64:function(t,e){z(this,8,t,D,e,arguments.length>2?arguments[2]:void 0)}});m(x,"ArrayBuffer"),m(w,"DataView"),e.ArrayBuffer=x,e.DataView=w},function(t,e,n){"use strict";function r(t){if((e=t)&&"object"==typeof e&&e.isBuffer)return t;var e;if(t instanceof ArrayBuffer)return t;if(ArrayBuffer.isView(t))return 0===t.byteOffset&&t.byteLength===t.buffer.byteLength?t.buffer:t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength);if("string"==typeof t){const e=t;return(new TextEncoder).encode(e).buffer}if(t&&"object"==typeof t&&t._toArrayBuffer)return t._toArrayBuffer();throw new Error("toArrayBuffer")}n.d(e,"a",(function(){return r}))},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="8" height="7" viewBox="0 0 8 7"><path fill-rule="evenodd" fill="#FFF" d="M7.915 1.269s-3.478 4.937-3.763 5.33c-.385.52-1.119.547-1.523 0C2.353 6.215.077 3.03.077 3.03c-.119-.173-.11-.401.037-.529.321-.274.67-.511 1.046-.721.166-.082.386-.018.505.155L3.39 4.344 6.336.183c.12-.173.34-.237.505-.146a5.65 5.65 0 0 1 1.037.712c.147.118.156.347.037.52z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12"><path fill-rule="evenodd" fill="#1D242F" d="M11.961 5.423a.596.596 0 0 0-.52-.533 119.89 119.89 0 0 1-1.023-.134.667.667 0 0 1-.416-1.015c-.001-.001.627-.814.627-.814a.597.597 0 0 0-.009-.744 5.7 5.7 0 0 0-.813-.816.6.6 0 0 0-.745-.008c-.269.209-.806.623-.807.622a.668.668 0 0 1-1.026-.429A345.7 345.7 0 0 1 7.1.546a.598.598 0 0 0-.532-.52 5.676 5.676 0 0 0-1.151 0 .596.596 0 0 0-.532.52l-.127.996a.666.666 0 0 1-1.045.425c-.
26001.001-.789-.608-.789-.608a.598.598 0 0 0-.744.009 5.746 5.746 0 0 0-.814.814.598.598 0 0 0-.009.745l.604.781a.666.666 0 0 1-.438 1.055l-.978.126a.598.598 0 0 0-.52.534 5.676 5.676 0 0 0 0 1.151.598.598 0 0 0 .52.533l.976.124a.665.665 0 0 1 .439 1.056l-.603.782a.597.597 0 0 0 .01.745c.245.301.519.575.813.815.22.177.529.175.744.008l.787-.608a.666.666 0 0 1 1.048.426l.126.996a.596.596 0 0 0 .532.52 5.81 5.81 0 0 0 1.151 0 .598.598 0 0 0 .532-.52l.129-1.007a.668.668 0 0 1 1.028-.43l.805.624c.218.17.527.167.744-.009.298-.244.572-.518.814-.815a.598.598 0 0 0 .009-.744 65.572 65.572 0 0 1-.626-.817.667.667 0 0 1 .416-1.016l1.022-.13a.597.597 0 0 0 .52-.533 5.676 5.676 0 0 0 0-1.151zM5.994 8.039a2.04 2.04 0 0 1 0-4.081 2.04 2.04 0 0 1 2.038 2.04 2.04 2.04 0 0 1-2.038 2.041z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="9" height="10"><path fill-rule="evenodd" fill="#9BB1C8" d="M7.5 10A1.5 1.5 0 0 1 6 8.5v-7a1.5 1.5 0 0 1 3 0v7A1.5 1.5 0 0 1 7.5 10zm-6 0A1.5 1.5 0 0 1 0 8.5v-7a1.5 1.5 0 0 1 3 0v7A1.5 1.5 0 0 1 1.5 10z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="10" height="11"><path fill-rule="evenodd" fill="#9BB1C8" d="M.007 9.538V1.471C.007.366 1.115-.332 2.035.184 4.407 1.512 6.862 2.779 9.256 4.12c.96.539.985 1.993.043 2.567-2.374 1.447-4.833 2.66-7.22 4.114-.922.561-2.072-.135-2.072-1.263z"></path></svg>'},,function(t,e,n){"use strict";function r(t,e){if(!t)throw new Error(e||"loader assertion failed.")}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(16);function i(t,e,n,i){const o="See luma.gl ".concat(n," Upgrade Guide at https://luma.gl/docs/upgrade-guide"),s=Object.getPrototypeOf(t);i.forEach(t=>{s.methodName||(s[t]=()=>{throw r.j.removed("Calling removed method ".concat(e,".").concat(t,": "),o)(),new Error(t)})})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n(462),i=n(83),o=n(151),s=n(60);const a=Math.PI/180;function c(t){return 512/4003e4/Math.cos(t*a)}class l extends r.a{constructor(t={}){const{latitude:e=0,longitude:n=0,zoom:r=11,pitch:o=0,bearing:a=0,nearZMultiplier:c=.1,farZMultiplier:l=1.01,orthographic:u=!1,projectionMatrix:h,repeat:f=!1,worldOffset:d=0,legacyMeterSizes:p=!1}=t;let{width:g,height:m,altitude:y=1.5}=t;const _=Math.pow(2,r);let v;g=g||1,m=m||1;let b=null;h?(y=h[5]/2,v=Object(i.d)(y)):(t.fovy?(v=t.fovy,y=Object(i.g)(v)):v=Object(i.d)(y),b=Object(i.m)({width:g,height:m,pitch:o,fovy:v,nearZMultiplier:c,farZMultiplier:l}));let x=Object(i.n)({height:m,pitch:o,bearing:a,scale:_,altitude:y});if(d){x=(new s.a).translate([512*d,0,0]).multiplyLeft(x)}super({...t,width:g,height:m,viewMatrix:x,longitude:n,latitude:e,zoom:r,...b,fovy:v,focalDistance:y}),this.latitude=e,this.longitude=n,this.zoom=r,this.pitch=o,this.bearing=a,this.altitude=y,this.fovy=v,this.orthographic=u,this._subViewports=f?[]:null,this._pseudoMeters=p,Object.freeze(this)}get subViewports(){if(this._subViewports&&!this._subViewports.length){const t=this.getBounds(),e=Math.floor((t[0]+180)/360),n=Math.ceil((t[2]-180)/360);for(let t=e;t<=n;t++){const e=t?new l({...this,worldOffset:t}):this;this._subViewports.push(e)}}return this._subViewports}projectPosition(t){if(this._pseudoMeters)return super.projectPosition(t);const[e,n]=this.projectFlat(t);return[e,n,(t[2]||0)*c(t[1])]}unprojectPosition(t){if(this._pseudoMeters)return super.unprojectPosition(t);const[e,n]=this.unprojectFlat(t);return[e,n,(t[2]||0)/c(n)]}addMetersToLngLat(t,e){return Object(i.c)(t,e)}panByPosition(t,e){const n=Object(i.q)(e,this.pixelUnprojectionMatrix),r=this.projectFlat(t),s=o.a([],r,o.d([],n)),a=o.a([],this.center,s),[c,l]=this.unprojectFlat(a);return{longitude:c,latitude:l}}getBounds(t={}){const e=Object(i.h)(this,t.z||0);return[Math.min(e[0][0],e[1][0],e[2][0],e[3][0]),Math.min(e[0][1],e[1][1],e[2][1],e[3][1]),Math.max(e[0][0],e[1][0],e[2][0],e[3][0]),Math.max(e[0][1],e[1][1],e[2][1],e[3][1])]}fitBounds(t,e={}){const{width:n,height:r}=this,{longitude:o,latitude:s,zoom:a}
26=Object(i.e)({width:n,height:r,bounds:t,...e});return new l({width:n,height:r,longitude:o,latitude:s,zoom:a})}}l.displayName="WebMercatorViewport"},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(68);class i extends(function(t){function e(){var e=Reflect.construct(t,Array.from(arguments));return Object.setPrototypeOf(e,Object.getPrototypeOf(this)),e}return e.prototype=Object.create(t.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t,e}(Array)){clone(){return(new this.constructor).copy(this)}fromArray(t,e=0){for(let n=0;n<this.ELEMENTS;++n)this[n]=t[n+e];return this.check()}toArray(t=[],e=0){for(let n=0;n<this.ELEMENTS;++n)t[e+n]=this[n];return t}from(t){return Array.isArray(t)?this.copy(t):this.fromObject(t)}to(t){return t===this?this:Object(r.e)(t)?this.toArray(t):this.toObject(t)}toTarget(t){return t?this.to(t):this}toFloat32Array(){return new Float32Array(this)}toString(){return this.formatString(r.b)}formatString(t){let e="";for(let n=0;n<this.ELEMENTS;++n)e+=(n>0?", ":"")+Object(r.d)(this[n],t);return"".concat(t.printTypes?this.constructor.name:"","[").concat(e,"]")}equals(t){if(!t||this.length!==t.length)return!1;for(let e=0;e<this.ELEMENTS;++e)if(!Object(r.c)(this[e],t[e]))return!1;return!0}exactEquals(t){if(!t||this.length!==t.length)return!1;for(let e=0;e<this.ELEMENTS;++e)if(this[e]!==t[e])return!1;return!0}negate(){for(let t=0;t<this.ELEMENTS;++t)this[t]=-this[t];return this.check()}lerp(t,e,n){if(void 0===n)return this.lerp(this,t,e);for(let r=0;r<this.ELEMENTS;++r){const i=t[r];this[r]=i+n*(e[r]-i)}return this.check()}min(t){for(let e=0;e<this.ELEMENTS;++e)this[e]=Math.min(t[e],this[e]);return this.check()}max(t){for(let e=0;e<this.ELEMENTS;++e)this[e]=Math.max(t[e],this[e]);return this.check()}clamp(t,e){for(let n=0;n<this.ELEMENTS;++n)this[n]=Math.min(Math.max(this[n],t[n]),e[n]);return this.check()}add(...t){for(const e of t)for(let t=0;t<this.ELEMENTS;++t)this[t]+=e[t];return this.check()}subtract(...t){for(const e of t)for(let t=0;t<this.ELEMENTS;++t)this[t]-=e[t];return this.check()}scale(t){if("number"==typeof t)for(let e=0;e<this.ELEMENTS;++e)this[e]*=t;else for(let e=0;e<this.ELEMENTS&&e<t.length;++e)this[e]*=t[e];return this.check()}multiplyByScalar(t){for(let e=0;e<this.ELEMENTS;++e)this[e]*=t;return this.check()}check(){if(r.b.debug&&!this.validate())throw new Error("math.gl: ".concat(this.constructor.name," some fields set to invalid numbers'"));return this}validate(){let t=this.length===this.ELEMENTS;for(let e=0;e<this.ELEMENTS;++e)t=t&&Number.isFinite(this[e]);return t}sub(t){return this.subtract(t)}setScalar(t){for(let e=0;e<this.ELEMENTS;++e)this[e]=t;return this.check()}addScalar(t){for(let e=0;e<this.ELEMENTS;++e)this[e]+=t;return this.check()}subScalar(t){return this.addScalar(-t)}multiplyScalar(t){for(let e=0;e<this.ELEMENTS;++e)this[e]*=t;return this.check()}divideScalar(t){return this.multiplyByScalar(1/t)}clampScalar(t,e){for(let n=0;n<this.ELEMENTS;++n)this[n]=Math.min(Math.max(this[n],t),e);return this.check()}get elements(){return this}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return d})),n.d(e,"b",(function(){return p}));var r=n(46),i=n(322),o=n(39),s=n(461);const a=[0,0,0,0],c=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0],l=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],u=[0,0,0],h=[0,0,0],f=Object(s.a)((function({viewport:t,devicePixelRatio:e,coordinateSystem:n,coordinateOrigin:s}){const{projectionCenter:l,viewProjectionMatrix:h,originCommon:f,cameraPosCommon:p,shaderCoordinateOrigin:g,geospatialOrigin:m}=function(t,e,n){const{viewMatrixUncentered:o,projectionMatrix:s}=t;let{viewMatrix:l,viewProjectionMatrix:u}=t,h=a,f=a,p=t.cameraPosition;const{geospatialOrigin:g,shaderCoordinateOrigin:m,offsetMode:y}=d(t,e,n);y&&(f=t.projectPosition(g||m),p=[p[0]-f[0],p[1]-f[1],p[2]-f[2]],f[3]=1,h=i.b([],f,u),l=o||l,u=r.g([],s,l),u=r.g([],u,c));return{viewMatrix:l,viewProjectionMatrix:u,projectionCenter:h,originCommon:f,cameraPosCommon:p,shaderCoordinateOrigin:m,geospatialOrigin:g}}(t,n,s),y=t.getDistanceScales(),_=[t.width*e,t.height*e],v=i.b([],[0,0,-t.focalDistance,1],t.projectionMatrix)[3]||1,b={project_uCoordinateSystem:n,project_uProjectionMode:t.projectionMode,project_uCoordinateOrigin:g,project_uCommonOrigin:f.slice(0,3),project_uCenter:l,project_uPseudoMeters:Boolean(t._pseudoMeters),project_uViewportSize:_,project_uDevicePixelRatio:e,project_uFocalDistance:v,project_uCommonUnitsPerMeter:y.unitsPerMeter,project_uCommonUnitsPerWorldUnit:y.unitsPerMeter,project_uCommonUnitsPerWorldUnit2:u,project_uScale:t.scale,project_uViewProjectionMatrix:h,project_uCameraPosition:p};if(m){const e=t.getDistanceScales(m);switch(n){case o.a.METER_OFFSETS:b.project_uCommonUnitsPerWorldUnit=e.unitsPerMeter,b.project_uCommonUnitsPerWorldUnit2=e.unitsPerMeter2;break;case o.a.LNGLAT:case o.a.LNGLAT_OFFSETS:t._pseudoMeters||(b.project_uCommonUnitsPerMeter=e.unitsPerMeter),b.project_uCommonUnitsPerWorldUnit=e.unitsPerDegree,b.project_uCommonUnitsPerWorldUnit2=e.unitsPerDegree2;break;case o.a.CARTESIAN:b.project_uCommonUnitsPerWorldUnit=[1,1,e.unitsPerMeter[2]],b.project_uCommonUnitsPerWorldUnit2=[0,0,e.unitsPerMeter2[2]]}}return b}));function d(t,e,n=h){let r,i=n,s=!0;switch(r=e===o.a.LNGLAT_OFFSETS||e===o.a.METER_OFFSETS?n:t.isGeospatial?[Math.fround(t.longitude),Math.fround(t.latitude),0]:null,t.projectionMode){case o.c.WEB_MERCATOR:e!==o.a.LNGLAT&&e!==o.a.CARTESIAN||(r=[0,0,0],s=!1);break;case o.c.WEB_MERCATOR_AUTO_OFFSET:e===o.a.LNGLAT?i=r:e===o.a.CARTESIAN&&(i=[Math.fround(t.center[0]),Math.fround(t.center[1]),0],r=t.unprojectPosition(i),i[0]-=n[0],i[1]-=n[1],i[2]-=n[2]);break;case o.c.IDENTITY:i=t.position.map(Math.fround);break;case o.c.GLOBE:s=!1,r=null;break;default:s=!1}return i[2]=i[2]||0,{geospatialOrigin:r,shaderCoordinateOrigin:i,offsetMode:s}}function p({viewport:t,devicePixelRatio:e=1,modelMatrix:n=null,coordinateSystem:r=o.a.DEFAULT,coordinateOrigin:i,autoWrapLongitude:s=!1}={}){r===o.a.DEFAULT&&(r=t.isGeospatial?o.a.LNGLAT:o.a.CARTESIAN);const a=f({viewport:t,devicePixelRatio:e,coordinateSystem:r,coordinateOrigin:i});return a.project_uWrapLongitude=s,a.project_uModelMatrix=n||l,a}},function(t,e,n){"use strict";n.d(e,"a",(function(){return F}));var r=n(596);
26const i={mousedown:1,mousemove:2,mouseup:4};!function(t){const e=t.prototype.handler;t.prototype.handler=function(t){const n=this.store;t.button>0&&"pointerdown"===t.type&&(function(t,e){for(let n=0;n<t.length;n++)if(e(t[n]))return!0;return!1}(n,e=>e.pointerId===t.pointerId)||n.push(t)),e.call(this,t)}}(r.PointerEventInput),r.MouseInput.prototype.handler=function(t){let e=i[t.type];1&e&&t.button>=0&&(this.pressed=!0),2&e&&0===t.buttons&&(e=4),this.pressed&&(4&e&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:"mouse",srcEvent:t}))};const o=r.Manager;var s=r;class a{constructor(t,e,n){this.element=t,this.callback=e,this.options={enable:!0,...n}}}const c=s?[[s.Pan,{event:"tripan",pointers:3,threshold:0,enable:!1}],[s.Rotate,{enable:!1}],[s.Pinch,{enable:!1}],[s.Swipe,{enable:!1}],[s.Pan,{threshold:0,enable:!1}],[s.Press,{enable:!1}],[s.Tap,{event:"doubletap",taps:2,enable:!1}],[s.Tap,{event:"anytap",enable:!1}],[s.Tap,{enable:!1}]]:null,l={tripan:["rotate","pinch","pan"],rotate:["pinch"],pinch:["pan"],pan:["press","doubletap","anytap","tap"],doubletap:["anytap"],anytap:["tap"]},u={doubletap:["tap"]},h={pointerdown:"pointerdown",pointermove:"pointermove",pointerup:"pointerup",touchstart:"pointerdown",touchmove:"pointermove",touchend:"pointerup",mousedown:"pointerdown",mousemove:"pointermove",mouseup:"pointerup"},f={KEY_EVENTS:["keydown","keyup"],MOUSE_EVENTS:["mousedown","mousemove","mouseup","mouseover","mouseout","mouseleave"],WHEEL_EVENTS:["wheel","mousewheel"]},d={tap:"tap",anytap:"anytap",doubletap:"doubletap",press:"press",pinch:"pinch",pinchin:"pinch",pinchout:"pinch",pinchstart:"pinch",pinchmove:"pinch",pinchend:"pinch",pinchcancel:"pinch",rotate:"rotate",rotatestart:"rotate",rotatemove:"rotate",rotateend:"rotate",rotatecancel:"rotate",tripan:"tripan",tripanstart:"tripan",tripanmove:"tripan",tripanup:"tripan",tripandown:"tripan",tripanleft:"tripan",tripanright:"tripan",tripanend:"tripan",tripancancel:"tripan",pan:"pan",panstart:"pan",panmove:"pan",panup:"pan",pandown:"pan",panleft:"pan",panright:"pan",panend:"pan",pancancel:"pan",swipe:"swipe",swipeleft:"swipe",swiperight:"swipe",swipeup:"swipe",swipedown:"swipe"},p={click:"tap",anyclick:"anytap",dblclick:"doubletap",mousedown:"pointerdown",mousemove:"pointermove",mouseup:"pointerup",mouseover:"pointerover",mouseout:"pointerout",mouseleave:"pointerleave"};var g=n(465);const m=-1!==g.b.indexOf("firefox"),{WHEEL_EVENTS:y}=f;class _ extends a{constructor(t,e,n){super(t,e,n),this.handleEvent=t=>{if(!this.options.enable)return;let e=t.deltaY;g.c.WheelEvent&&(m&&t.deltaMode===g.c.WheelEvent.DOM_DELTA_PIXEL&&(e/=g.c.devicePixelRatio),t.deltaMode===g.c.WheelEvent.DOM_DELTA_LINE&&(e*=40)),0!==e&&e%4.000244140625==0&&(e=Math.floor(e/4.000244140625)),t.shiftKey&&e&&(e*=.25),this.callback({type:"wheel",center:{x:t.clientX,y:t.clientY},delta:-e,srcEvent:t,pointerType:"mouse",target:t.target})},this.events=(this.options.events||[]).concat(y),this.events.forEach(e=>t.addEventListener(e,this.handleEvent,!!g.a&&{passive:!1}))}destroy(){this.events.forEach(t=>this.element.removeEventListener(t,this.handleEvent))}enableEventType(t,e){"wheel"===t&&(this.options.enable=e)}}const{MOUSE_EVENTS:v}=f;class b extends a{constructor(t,e,n){super(t,e,n),this.handleEvent=t=>{this.handleOverEvent(t),this.handleOutEvent(t),this.handleEnterEvent(t),this.handleLeaveEvent(t),this.handleMoveEvent(t)},this.pressed=!1;const{enable:r}=this.options;this.enableMoveEvent=r,this.enableLeaveEvent=r,this.enableEnterEvent=r,this.enableOutEvent=r,this.enableOverEvent=r,this.events=(this.options.events||[]).concat(v),this.events.forEach(e=>t.addEventListener(e,this.handleEvent))}destroy(){this.events.forEach(t=>this.element.removeEventListener(t,this.handleEvent))}enableEventType(t,e){"pointermove"===t&&(this.enableMoveEvent=e),"pointerover"===t&&(this.enableOverEvent=e),"pointerout"===t&&(this.enableOutEvent=e),"pointerenter"===t&&(this.enableEnterEvent=e),"pointerleave"===t&&(this.enableLeaveEvent=e)}handleOverEvent(t){this.enableOverEvent&&"mouseover"===t.type&&this._emit("pointerover",t)}handleOutEvent(t){this.enableOutEvent&&"mouseout"===t.type&&this._emit("pointerout",t)}
26handleEnterEvent(t){this.enableEnterEvent&&"mouseenter"===t.type&&this._emit("pointerenter",t)}handleLeaveEvent(t){this.enableLeaveEvent&&"mouseleave"===t.type&&this._emit("pointerleave",t)}handleMoveEvent(t){if(this.enableMoveEvent)switch(t.type){case"mousedown":t.button>=0&&(this.pressed=!0);break;case"mousemove":0===t.buttons&&(this.pressed=!1),this.pressed||this._emit("pointermove",t);break;case"mouseup":this.pressed=!1}}_emit(t,e){this.callback({type:t,center:{x:e.clientX,y:e.clientY},srcEvent:e,pointerType:"mouse",target:e.target})}}const{KEY_EVENTS:x}=f;class w extends a{constructor(t,e,n){super(t,e,n),this.handleEvent=t=>{const e=t.target||t.srcElement;"INPUT"===e.tagName&&"text"===e.type||"TEXTAREA"===e.tagName||(this.enableDownEvent&&"keydown"===t.type&&this.callback({type:"keydown",srcEvent:t,key:t.key,target:t.target}),this.enableUpEvent&&"keyup"===t.type&&this.callback({type:"keyup",srcEvent:t,key:t.key,target:t.target}))},this.enableDownEvent=this.options.enable,this.enableUpEvent=this.options.enable,this.events=(this.options.events||[]).concat(x),t.tabIndex=this.options.tabIndex||0,t.style.outline="none",this.events.forEach(e=>t.addEventListener(e,this.handleEvent))}destroy(){this.events.forEach(t=>this.element.removeEventListener(t,this.handleEvent))}enableEventType(t,e){"keydown"===t&&(this.enableDownEvent=e),"keyup"===t&&(this.enableUpEvent=e)}}class E extends a{constructor(t,e,n){super(t,e,n),this.handleEvent=t=>{this.options.enable&&this.callback({type:"contextmenu",center:{x:t.clientX,y:t.clientY},srcEvent:t,pointerType:"mouse",target:t.target})},t.addEventListener("contextmenu",this.handleEvent)}destroy(){this.element.removeEventListener("contextmenu",this.handleEvent)}enableEventType(t,e){"contextmenu"===t&&(this.options.enable=e)}}const S={pointerdown:1,pointermove:2,pointerup:4,mousedown:1,mousemove:2,mouseup:4};function C(t){const e=S[t.srcEvent.type];if(!e)return null;const{buttons:n,button:r}=t.srcEvent;let i=!1,o=!1,s=!1;return 2===e?(i=Boolean(1&n),o=Boolean(4&n),s=Boolean(2&n)):(i=0===r,o=1===r,s=2===r),{leftButton:i,middleButton:o,rightButton:s}}function A(t,e){const n=t.center;if(!n)return null;const r=e.getBoundingClientRect(),i=r.width/e.offsetWidth||1,o=r.height/e.offsetHeight||1;return{center:n,offsetCenter:{x:(n.x-r.left-e.clientLeft)/i,y:(n.y-r.top-e.clientTop)/o}}}const I={srcElement:"root",priority:0};class T{constructor(t){this.handleEvent=t=>{if(this.isEmpty())return;const e=this._normalizeEvent(t);let n=t.srcEvent.target;for(;n&&n!==e.rootElement;){if(this._emit(e,n),e.handled)return;n=n.parentNode}this._emit(e,"root")},this.eventManager=t,this.handlers=[],this.handlersByElement=new Map,this._active=!1}isEmpty(){return!this._active}add(t,e,n,r=!1,i=!1){const{handlers:o,handlersByElement:s}=this;let a=I;"string"==typeof n||n&&n.addEventListener?a={...I,srcElement:n}:n&&(a={...I,...n});let c=s.get(a.srcElement);c||(c=[],s.set(a.srcElement,c));const l={type:t,handler:e,srcElement:a.srcElement,priority:a.priority};r&&(l.once=!0),i&&(l.passive=!0),o.push(l),this._active=this._active||!l.passive;let u=c.length-1;for(;u>=0&&!(c[u].priority>=l.priority);)u--;c.splice(u+1,0,l)}remove(t,e){const{handlers:n,handlersByElement:r}=this;for(let i=n.length-1;i>=0;i--){const o=n[i];if(o.type===t&&o.handler===e){n.splice(i,1);const t=r.get(o.srcElement);t.splice(t.indexOf(o),1),0===t.length&&r.delete(o.srcElement)}}this._active=n.some(t=>!t.passive)}_emit(t,e){const n=this.handlersByElement.get(e);if(n){let e=!1;const r=()=>{t.handled=!0},i=()=>{t.handled=!0,e=!0},o=[];for(let s=0;s<n.length;s++){const{type:a,handler:c,once:l}=n[s];if(c({...t,type:a,stopPropagation:r,stopImmediatePropagation:i}),l&&o.push(n[s]),e)break}for(let t=0;t<o.length;t++){const{type:e,handler:n}=o[t];this.remove(e,n)}}}_normalizeEvent(t){const e=this.eventManager.getElement();return{...t,...C(t),...A(t,e),preventDefault:()=>{t.srcEvent.preventDefault()},stopImmediatePropagation:null,stopPropagation:null,handled:!1,rootElement:e}}}const M={events:null,recognizers:null,recognizerOptions:{},Manager:o,touchAction:"none",tabIndex:0};class F{constructor(t=null,e){this._onBasicInput=t=>{const{srcEvent:e}=t,n=h[e.type];n&&this.manager.emit(n,t)},this._onOtherEvent=t=>{this.manager.emit(t.type,t)},this.options={...M,...e},this.events=new Map,this.setElement(t);const{events:n}=this.options;n&&this.on(n)}getElement(){return this.element}
26setElement(t){if(this.element&&this.destroy(),this.element=t,!t)return;const{options:e}=this,n=e.Manager;this.manager=new n(t,{touchAction:e.touchAction,recognizers:e.recognizers||c}).on("hammer.input",this._onBasicInput),e.recognizers||Object.keys(l).forEach(t=>{const e=this.manager.get(t);e&&l[t].forEach(t=>{e.recognizeWith(t)})});for(const t in e.recognizerOptions){const n=this.manager.get(t);if(n){const r=e.recognizerOptions[t];delete r.enable,n.set(r)}}this.wheelInput=new _(t,this._onOtherEvent,{enable:!1}),this.moveInput=new b(t,this._onOtherEvent,{enable:!1}),this.keyInput=new w(t,this._onOtherEvent,{enable:!1,tabIndex:e.tabIndex}),this.contextmenuInput=new E(t,this._onOtherEvent,{enable:!1});for(const[t,e]of this.events)e.isEmpty()||(this._toggleRecognizer(e.recognizerName,!0),this.manager.on(t,e.handleEvent))}destroy(){this.element&&(this.wheelInput.destroy(),this.moveInput.destroy(),this.keyInput.destroy(),this.contextmenuInput.destroy(),this.manager.destroy(),this.wheelInput=null,this.moveInput=null,this.keyInput=null,this.contextmenuInput=null,this.manager=null,this.element=null)}on(t,e,n){this._addEventHandler(t,e,n,!1)}once(t,e,n){this._addEventHandler(t,e,n,!0)}watch(t,e,n){this._addEventHandler(t,e,n,!1,!0)}off(t,e){this._removeEventHandler(t,e)}_toggleRecognizer(t,e){const{manager:n}=this;if(!n)return;const r=n.get(t);if(r&&r.options.enable!==e){r.set({enable:e});const i=u[t];i&&!this.options.recognizers&&i.forEach(i=>{const o=n.get(i);e?(o.requireFailure(t),r.dropRequireFailure(i)):o.dropRequireFailure(t)})}this.wheelInput.enableEventType(t,e),this.moveInput.enableEventType(t,e),this.keyInput.enableEventType(t,e),this.contextmenuInput.enableEventType(t,e)}_addEventHandler(t,e,n,r,i){if("string"!=typeof t){n=e;for(const e in t)this._addEventHandler(e,t[e],n,r,i);return}const{manager:o,events:s}=this,a=p[t]||t;let c=s.get(a);c||(c=new T(this),s.set(a,c),c.recognizerName=d[a]||a,o&&o.on(a,c.handleEvent)),c.add(t,e,n,r,i),c.isEmpty()||this._toggleRecognizer(c.recognizerName,!0)}_removeEventHandler(t,e){if("string"!=typeof t){for(const e in t)this._removeEventHandler(e,t[e]);return}const{events:n}=this,r=p[t]||t,i=n.get(r);if(i&&(i.remove(t,e),i.isEmpty())){const{recognizerName:t}=i;let e=!1;for(const r of n.values())if(r.recognizerName===t&&!r.isEmpty()){e=!0;break}e||this._toggleRecognizer(t,!1)}}}},,,,,function(t,e,n){"use strict";function r(t,e){if(!t)throw new Error(e||"shadertools: assertion failed.")}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return f}));var r=n(185),i=n(186),o=n(25),s=n(1),a=n(258),c=n(709);var l={container:s.object,gl:s.object,mapboxApiAccessToken:s.string,mapboxApiUrl:s.string,attributionControl:s.bool,preserveDrawingBuffer:s.bool,reuseMaps:s.bool,transformRequest:s.func,mapOptions:s.object,mapStyle:s.oneOfType([s.string,s.object]),preventStyleDiffing:s.bool,visible:s.bool,asyncRender:s.bool,onLoad:s.func,onError:s.func,width:s.number,height:s.number,viewState:s.object,longitude:s.number,latitude:s.number,zoom:s.number,bearing:s.number,pitch:s.number,altitude:s.number},u={container:a.a.body,mapboxApiAccessToken:function(){var e=null;if("undefined"!=typeof window&&window.location){var n=window.location.search.match(/access_token=([^&\/]*)/);e=n&&n[1]}e||void 0===t||(e=e||Object({NODE_ENV:"production",AppEnv:"production",AppReleaseTag:"deploy-production-1788898211"}).MapboxAccessToken||Object({NODE_ENV:"production",AppEnv:"production",AppReleaseTag:"deploy-production-1788898211"}).REACT_APP_MAPBOX_ACCESS_TOKEN);return e||"no-token"}(),mapboxApiUrl:"https://api.mapbox.com",preserveDrawingBuffer:!1,attributionControl:!0,reuseMaps:!1,mapOptions:{},mapStyle:"mapbox://styles/mapbox/light-v8",preventStyleDiffing:!1,visible:!0,asyncRender:!1,onLoad:function(){},onError:function(t){t&&console.error(t.error)},width:0,height:0,longitude:0,latitude:0,zoom:0,bearing:0,pitch:0,altitude:1.5};function h(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"component";t.debug&&s.checkPropTypes(l,t,"prop",e)}var f=function(){function t(e){var n=this;if(Object(r.a)(this,t),Object(o.a)(this,"props",u),Object(o.a)(this,"width",0),Object(o.a)(this,"height",0),Object(o.a)(this,"_fireLoadEvent",(function(){n.props.onLoad({type:"load",target:n._map})})),Object(o.a)(this,"_handleError",(function(t){n.props.onError(t)})),!e.mapboxgl)throw new Error("Mapbox not available");this.mapboxgl=e.mapboxgl,t.initialized||(t.initialized=!0,this._checkStyleSheet(this.mapboxgl.version)),this._initialize(e)}return Object(i.a)(t,[{key:"finalize",value:function(){return this._destroy(),this}},{key:"setProps",value:function(t){return this._update(this.props,t),this}},{key:"redraw",value:function(){var t=this._map;t.style&&(t._frame&&(t._frame.cancel(),t._frame=null),t._render())}},{key:"getMap",value:function(){return this._map}},{key:"_reuse",value:function(e){this._map=t.savedMap;var n=this._map.getContainer(),r=e.container;for(r.classList.add("mapboxgl-map");n.childNodes.length>0;)r.appendChild(n.childNodes[0]);this._map._container=r,t.savedMap=null,e.mapStyle&&this._map.setStyle(Object(c.a)(e.mapStyle),{diff:!1}),this._map.isStyleLoaded()?this._fireLoadEvent():this._map.once("styledata",this._fireLoadEvent)}},{key:"_create",value:function(e){if(e.reuseMaps&&t.savedMap)this._reuse(e);else{if(e.gl){var n=HTMLCanvasElement.prototype.getContext;HTMLCanvasElement.prototype.getContext=function(){return HTMLCanvasElement.prototype.getContext=n,e.gl}}var r={container:e.container,center:[0,0],zoom:8,pitch:0,bearing:0,maxZoom:24,style:Object(c.a)(e.mapStyle),interactive:!1,trackResize:!1,attributionControl:e.attributionControl,preserveDrawingBuffer:e.preserveDrawingBuffer};e.transformRequest&&(r.transformRequest=e.transformRequest),this._map=new this.mapboxgl.Map(Object.assign({},r,e.mapOptions)),this._map.once("load",this._fireLoadEvent),this._map.on("error",this._handleError)}return this}},{key:"_destroy",value:function(){this._map&&(this.props.reuseMaps&&!t.savedMap?(t.
26savedMap=this._map,this._map.off("load",this._fireLoadEvent),this._map.off("error",this._handleError),this._map.off("styledata",this._fireLoadEvent)):this._map.remove(),this._map=null)}},{key:"_initialize",value:function(t){var e=this;h(t=Object.assign({},u,t),"Mapbox"),this.mapboxgl.accessToken=t.mapboxApiAccessToken||u.mapboxApiAccessToken,this.mapboxgl.baseApiUrl=t.mapboxApiUrl,this._create(t);var n=t.container;Object.defineProperty(n,"offsetWidth",{get:function(){return e.width}}),Object.defineProperty(n,"clientWidth",{get:function(){return e.width}}),Object.defineProperty(n,"offsetHeight",{get:function(){return e.height}}),Object.defineProperty(n,"clientHeight",{get:function(){return e.height}});var r=this._map.getCanvas();r&&(r.style.outline="none"),this._updateMapViewport({},t),this._updateMapSize({},t),this.props=t}},{key:"_update",value:function(t,e){if(this._map){h(e=Object.assign({},this.props,e),"Mapbox");var n=this._updateMapViewport(t,e),r=this._updateMapSize(t,e);this._updateMapStyle(t,e),e.asyncRender||!n&&!r||this.redraw(),this.props=e}}},{key:"_updateMapStyle",value:function(t,e){t.mapStyle!==e.mapStyle&&this._map.setStyle(Object(c.a)(e.mapStyle),{diff:!e.preventStyleDiffing})}},{key:"_updateMapSize",value:function(t,e){var n=t.width!==e.width||t.height!==e.height;return n&&(this.width=e.width,this.height=e.height,this._map.resize()),n}},{key:"_updateMapViewport",value:function(t,e){var n=this._getViewState(t),r=this._getViewState(e),i=r.latitude!==n.latitude||r.longitude!==n.longitude||r.zoom!==n.zoom||r.pitch!==n.pitch||r.bearing!==n.bearing||r.altitude!==n.altitude;return i&&(this._map.jumpTo(this._viewStateToMapboxProps(r)),r.altitude!==n.altitude&&(this._map.transform.altitude=r.altitude)),i}},{key:"_getViewState",value:function(t){var e=t.viewState||t,n=e.longitude,r=e.latitude,i=e.zoom,o=e.pitch,s=void 0===o?0:o,a=e.bearing,c=void 0===a?0:a,l=e.altitude;return{longitude:n,latitude:r,zoom:i,pitch:s,bearing:c,altitude:void 0===l?1.5:l}}},{key:"_checkStyleSheet",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"0.47.0";if(void 0!==a.a)try{var e=a.a.createElement("div");e.className="mapboxgl-map",e.style.display="none",a.a.body.appendChild(e);var n="static"!==window.getComputedStyle(e).position;if(!n){var r=a.a.createElement("link");r.setAttribute("rel","stylesheet"),r.setAttribute("type","text/css"),r.setAttribute("href","https://api.tiles.mapbox.com/mapbox-gl-js/v".concat(t,"/mapbox-gl.css")),a.a.head.appendChild(r)}}catch(t){}}},{key:"_viewStateToMapboxProps",value:function(t){return{center:[t.longitude,t.latitude],zoom:t.zoom,bearing:t.bearing,pitch:t.pitch}}}]),t}();Object(o.a)(f,"initialized",!1),Object(o.a)(f,"propTypes",l),Object(o.a)(f,"defaultProps",u),Object(o.a)(f,"savedMap",null)}).call(this,n(297))},function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n(25);function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){Object(r.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,c=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return s=t.done,t},e:function(t){c=!0,o=t}
26,f:function(){try{s||null==n.return||n.return()}finally{if(c)throw o}}}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var c=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function l(t){if(!t)return null;if("string"==typeof t)return t;t.toJS&&(t=t.toJS());var e,n={},r=s(t.layers);try{for(r.s();!(e=r.n()).done;){var i=e.value;n[i.id]=i}}catch(t){r.e(t)}finally{r.f()}var a=t.layers.map((function(t){var e=n[t.ref],r=null;if("interactive"in t&&delete(r=o({},t)).interactive,e){delete(r=r||o({},t)).ref;var i,a=s(c);try{for(a.s();!(i=a.n()).done;){var l=i.value;l in e&&(r[l]=e[l])}}catch(t){a.e(t)}finally{a.f()}}return r||t}));return o(o({},t),{},{layers:a})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return s})),n.d(e,"c",(function(){return u})),n.d(e,"b",(function(){return h}));var r=n(324),i=n(707);const o={[r.b]:"#ifdef MODULE_LOGDEPTH\n logdepth_adjustPosition(gl_Position);\n#endif\n",[r.a]:"#ifdef MODULE_MATERIAL\n gl_FragColor = material_filterColor(gl_FragColor);\n#endif\n\n#ifdef MODULE_LIGHTING\n gl_FragColor = lighting_filterColor(gl_FragColor);\n#endif\n\n#ifdef MODULE_FOG\n gl_FragColor = fog_filterColor(gl_FragColor);\n#endif\n\n#ifdef MODULE_PICKING\n gl_FragColor = picking_filterHighlightColor(gl_FragColor);\n gl_FragColor = picking_filterPickingColor(gl_FragColor);\n#endif\n\n#ifdef MODULE_LOGDEPTH\n logdepth_setFragDepth();\n#endif\n"},s="__LUMA_INJECT_DECLARATIONS__",a=/void\s+main\s*\([^)]*\)\s*\{\n?/,c=/}\n?[^{}]*$/,l=[];function u(t,e,n){let i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const u=e===r.b;for(const e in n){const r=n[e];r.sort((t,e)=>t.order-e.order),l.length=r.length;for(let t=0,e=r.length;t<e;++t)l[t]=r[t].injection;const i="".concat(l.join("\n"),"\n");switch(e){case"vs:#decl":u&&(t=t.replace(s,i));break;case"vs:#main-start":u&&(t=t.replace(a,t=>t+i));break;case"vs:#main-end":u&&(t=t.replace(c,t=>i+t));break;case"fs:#decl":u||(t=t.replace(s,i));break;case"fs:#main-start":u||(t=t.replace(a,t=>t+i));break;case"fs:#main-end":u||(t=t.replace(c,t=>i+t));break;default:t=t.replace(e,t=>t+i)}}return t=t.replace(s,""),i&&(t=t.replace(/\}\s*$/,t=>t+o[e])),t}function h(t){const e={};return Object(i.a)(Array.isArray(t)&&t.length>1),t.forEach(t=>{for(const n in t)e[n]=e[n]?"".concat(e[n],"\n").concat(t[n]):t[n]}),e}},,function(t,e,n){var r=n(56),i=n(326),o=n(335),s=n(514),a=r("".replace),c="["+s+"]",l=RegExp("^"+c+c+"*"),u=RegExp(c+c+"*$"),h=function(t){return function(e){var n=o(i(e));return 1&t&&(n=a(n,l,"")),2&t&&(n=a(n,u,"")),n}};t.exports={start:h(1),end:h(2),trim:h(3)}},,function(t,e,n){var r=n(26),i=n(229),o=n(154),s=n(480),a=n(572),c=n(715),l=n(107),u=r.TypeError,h=l("toPrimitive");t.exports=function(t,e){if(!o(t)||s(t))return t;var n,r=a(t,h);if(r){if(void 0===e&&(e="default"),n=i(r,t,e),!o(n)||s(n))return n;throw u("Can't convert object to primitive value")}return void 0===e&&(e="number"),c(t,e)}},function(t,e,n){var r=n(26),i=n(229),o=n(76),s=n(154),a=r.TypeError;t.exports=function(t,e){var n,r;if("string"===e&&o(n=t.toString)&&!s(r=i(n,t)))return r;if(o(n=t.valueOf)&&!s(r=i(n,t)))return r;if("string"!==e&&o(n=t.toString)&&!s(r=i(n,t)))return r;throw a("Can't convert object to primitive value")}},function(t,e,n){var r=n(26),i=Object.defineProperty;t.exports=function(t,e){try{i(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},,,,function(t,e,n){var r=n(563),i=n(564),o=r("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},function(t,e){t.exports={}},function(t,e,n){var r;!function(){"use strict";function i(t,e,n){var r=e.x,i=e.y,o=n.x-r,s=n.y-i;if(0!==o||0!==s){var a=((t.x-r)*o+(t.y-i)*s)/(o*o+s*s);a>1?(r=n.x,i=n.y):a>0&&(r+=o*a,i+=s*a)}return(o=t.x-r)*o+(s=t.y-i)*s}function o(t,e){var n=t.length-1,r=[t[0]];return function t(e,n,r,o,s){for(var a,c=o,l=n+1;l<r;l++){var u=i(e[l],e[n],e[r]);u>c&&(a=l,c=u)}c>o&&(a-n>1&&t(e,n,a,o,s),s.push(e[a]),r-a>1&&t(e,a,r,o,s))}(t,0,n,e,r),r.push(t[n]),r}function s(t,e,n){if(t.length<=2)return t;var r=void 0!==e?e*e:1;return t=o(t=n?t:function(t,e){for(var n,r,i,o,s,a=t[0],c=[a],l=1,u=t.length;l<u;l++)n=t[l],i=a,o=void 0,s=void 0,o=(r=n).x-i.x,s=r.y-i.y,o*o+s*s>e&&(c.push(n),a=n);return a!==n&&c.push(n),c}(t,r),r)}void 0===(r=function(){return s}.call(e,n,e,t))||(t.exports=r)}()},,function(t,e,n){var r=n(482),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},function(t,e,n){var r=n(912);t.exports=function(t,e){return new(r(t))(0===e?0:e)}},function(t,e,n){var r=n(325);t.exports=function(t,e,n,i){i&&i.enumerable?t[e]=n:r(t,e,n)}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e){t.exports=function(t,e,n,r){var i=n?n.call(r,t,e):void 0;if(void 0!==i)return!!i;if(t===e)return!0;
26if("object"!=typeof t||!t||"object"!=typeof e||!e)return!1;var o=Object.keys(t),s=Object.keys(e);if(o.length!==s.length)return!1;for(var a=Object.prototype.hasOwnProperty.bind(e),c=0;c<o.length;c++){var l=o[c];if(!a(l))return!1;var u=t[l],h=e[l];if(!1===(i=n?n.call(r,u,h,l):void 0)||void 0===i&&u!==h)return!1}return!0}},,,,,,,,,,,,,,,,,function(t,e,n){var r=n(26),i=n(495),o=n(271),s=n(508),a=r.Array,c=Math.max;t.exports=function(t,e,n){for(var r=o(t),l=i(e,r),u=i(void 0===n?r:n,r),h=a(c(u-l,0)),f=0;l<u;l++,f++)s(h,f,t[l]);return h.length=f,h}},,function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="10px" height="10px"><path fill-rule="evenodd" fill="rgb(0, 0, 0)" d="M9.000,6.000 L6.000,6.000 L6.000,9.000 C6.000,9.552 5.552,10.000 5.000,10.000 C4.448,10.000 4.000,9.552 4.000,9.000 L4.000,6.000 L1.000,6.000 C0.448,6.000 0.000,5.552 0.000,5.000 C0.000,4.448 0.448,4.000 1.000,4.000 L4.000,4.000 L4.000,1.000 C4.000,0.448 4.448,-0.000 5.000,-0.000 C5.552,-0.000 6.000,0.448 6.000,1.000 L6.000,4.000 L9.000,4.000 C9.552,4.000 10.000,4.448 10.000,5.000 C10.000,5.552 9.552,6.000 9.000,6.000 Z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="13" height="11"><path fill-rule="evenodd" fill="#282f3e" d="M12.964 7.717a.31.31 0 0 1-.314.286h-1.656v1.653c0 .165-.127.3-.284.315a8.856 8.856 0 0 1-1.421 0 .317.317 0 0 1-.284-.315V8.003H7.356a.314.314 0 0 1-.322-.286 9.148 9.148 0 0 1 0-1.424.32.32 0 0 1 .322-.292h1.649V4.347a.32.32 0 0 1 .284-.323 8.831 8.831 0 0 1 1.421 0 .32.32 0 0 1 .284.323v1.654h1.656c.165 0 .299.127.314.292a8.908 8.908 0 0 1 0 1.424zm-5-3.964V4.98h-.608c-.661 0-1.299.474-1.359 1.134a9.425 9.425 0 0 0 .001 1.567c.058.645.696 1.327 1.358 1.327h.74v.242c0 .504.649.487-.901.569C6.978 10.5 6.312 11 5.513 11c-.799 0-1.466-.5-1.683-1.182C1.796 9.622.561 9.132.498 9.106a.74.74 0 0 1-.466-.578.709.709 0 0 1 .293-.671c.063-.048 1.703-1.29 1.703-3.827C2.028.696 3.904 0 5.514 0c1.354 0 2.737.659 3.192 2.802-.387.217-.742.473-.742.951z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="41" height="42"><path fill-rule="evenodd" fill="#1D242F" d="M29.999 42c-6.066 0-11.002-4.935-11.002-11s4.936-11 11.002-11C36.064 20 41 24.935 41 31s-4.936 11-11.001 11zm0-19.994c-4.959 0-8.995 4.035-8.995 8.994 0 4.958 4.036 8.993 8.995 8.993 4.958 0 8.994-4.035 8.994-8.993 0-4.959-4.036-8.994-8.994-8.994zM35.218 32h-4.219v4.125c0 .484-.517.875-1.001.875-.483 0-1-.391-1-.875V32h-4.063c-.483 0-.875-.485-.875-.968 0-.484.392-1.032.875-1.032h4.063v-4.125c0-.483.517-.875 1-.875.484 0 1.001.392 1.001.875V30h4.219c.483 0 .812.548.812 1.032 0 .483-.329.968-.812.968zM14.804 18.688l2.497 1.665a.648.648 0 0 0 .836-.096l4.905-5.234a.896.896 0 0 1 1.309 1.225l-4.907 5.233a2.434 2.434 0 0 1-3.138.362l-2.495-1.664a.655.655 0 0 0-.823.083l-5.023 5.021-.007 3.728h6.177c.496 0 .896.463.896.958 0 .495-.4 1.021-.896 1.021H6.906a.896.896 0 0 1-.896-.896V11.896c0-.496.495-.896.99-.896s.99.4.99.896l-.02 10.742 3.752-3.644a2.456 2.456 0 0 1 3.082-.306zm19.188-1.657c-.484 0-.969-.391-.969-.875V9.112a.888.888 0 0 0-.256-.619l-6.258-6.238a.88.88 0 0 0-.62-.255H2.875A.876.876 0 0 0 2 2.875v36.25c0 .482.393.875.875.875h15.252c.484 0 .875.516.875 1s-.391 1-.875 1H2.625A2.628 2.628 0 0 1 0 39.375V2.625A2.629 2.629 0 0 1 2.625 0h23.266c.699 0 1.359.273 1.856.768l6.476 6.489c.496.495.769 1.155.769 1.855v7.044c0 .484-.516.875-1 .875z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="14" height="12"><path fill-rule="evenodd" fill="#FFF" d="M7 4H1a1 1 0 000 2h6a1 1 0 000-2zm0-4H1a1 1 0 000 2h6a1 1 0 000-2zm5 8V7a1 1 0 00-2 0v1H9a1 1 0 000 2h1v1a1 1 0 002 0v-1h1a1 1 0 000-2h-1zM1 10h4a1 1 0 000-2H1a1 1 0 000 2z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="13" height="16"><path fill-rule="evenodd" fill="#1D242F" d="M6 15.5a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5V14H1.5A1.5 1.5 0 0 1 0 12.5v-9A1.5 1.5 0 0 1 1.5 2H4V.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v15zM8.5 12a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h3a1.5 1.5 0 0 0 1.5-1.5v-9A1.5 1.5 0 0 0 11.5 2h-3a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5H11v8H8.5z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="12px" height="12px"><path fill-rule="evenodd" fill="rgb(179, 206, 224)" d="M11.000,7.000 L3.359,7.000 L6.710,10.343 C7.074,10.708 7.052,11.325 6.687,11.691 C6.501,11.879 6.249,11.983 5.978,11.983 C5.711,11.985 5.458,11.881 5.270,11.693 L0.290,6.667 C0.119,6.497 0.023,6.268 0.023,6.026 C0.023,5.782 0.119,5.554 0.293,5.382 L5.299,0.359 C5.488,0.171 5.740,0.068 6.011,0.068 C6.281,0.069 6.533,0.173 6.720,0.362 C7.083,0.729 7.105,1.346 6.739,1.711 L3.401,5.000 L11.000,5.000 C11.552,5.000 12.000,5.448 12.000,6.000 C12.000,6.552 11.552,7.000 11.000,7.000 Z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="15" height="14"><path fill-rule="evenodd" fill="#1E2A34" d="M14.048 6H3.238l4.2-4.31A.97.97 0 0 0 7.714 1c0-.492-.387-1-.952-1a.88.88 0 0 0-.657.29L.315 6.269C.159 6.433 0 6.636 0 7c0 .365.133.54.308.724l5.797 5.986c.184.194.404.29.657.29.566 0 .952-.508.952-1a.97.97 0 0 0-.276-.69L3.238 8h10.81c.525 0 .952-.448.952-1s-.427-1-.952-1z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="11" height="10"><path fill-rule="evenodd" fill="#3C7FFB" d="M9.88 4.269L5.561.288a.873.873 0 0 0-1.298 0 1.044 1.044 0 0 0 0 1.398l2.782 2.325H.913c-.506 0-.918.443-.918.989 0 .545.412.989.918.989h6.132L4.263 8.313a1.044 1.044 0 0 0 0 1.398.88.88 0 0 0 .649.29.88.88 0 0 0 .649-.29L9.88 5.73c.181-.195.281-.454.281-.73 0-.277-.1-.536-.281-.731z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="11" height="26"><path fill-rule="evenodd" fill="#B8C7D7" d="M1.615 25.925a1.46 1.46 0 0 1-.847-.271 1.535 1.535 0 0 1-.372-2.11L7.56 13.04.396 2.535A1.535 1.535 0 0 1 .768.425a1.467 1.467 0 0 1 2.068.379l7.755 11.37a1.54 1.54 0 0 1 0 1.731l-7.755 11.37c-.289.423-.751.65-1.221.65z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill-rule="evenodd" fill="red" d="M11 10V3a1 1 0 0 0-2 0v7H7V1a1 1 0 0 0-2 0v9H3V5a1 1 0 0 0-2 0v5a1 1 0 0 0 0 2h10a1 1 0 0 0 0-2z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="27" height="32" viewBox="0 0 27 32"><path fill-rule="evenodd" fill="#BDC4CB" d="M25.146 25.986H1.841a1.326 1.326 0 0 1 0-2.652 1.989 1.989 0 0 0 1.989-1.989v-6.447c-.158-5.203 2.939-9.743 8.056-10.694V1.455a1.326 1.326 0 0 1 2.652 0v2.749a10.55 10.55 0 0 1 8.619 10.694v6.447c0 1.098 1.323 1.989 1.989 1.989a1.326 1.326 0 1 1 0 2.652ZM10.81 27.975h5.93c.169-.001.77.126.95.294.14.122.21.246.21.369 0 1.83-2.294 3.315-4.125 3.315a3.315 3.315 0 0 1-3.294-3.684.331.331 0 0 1 .329-.294Z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22"><path fill-rule="evenodd" fill="red" d="M18 22H4a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4h14a4 4 0 0 1 4 4v14a4 4 0 0 1-4 4zM14.999 7.401c0-.771-.61-1.401-1.356-1.401H8.354c-.746 0-1.356.63-1.356 1.401v7.725a.88.88 0 0 0 .475.789c.305.14.644.105.898-.105l.017-.018 2.477-3.737a.188.188 0 0 1 .267 0l2.477 3.737.017.018a.851.851 0 0 0 .526.192.757.757 0 0 0 .373-.105.879.879 0 0 0 .474-.788V7.401z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14"><path fill-rule="evenodd" fill="#778FA9" d="M12.783 2h-.643a.149.149 0 0 1-.152-.146V.583c0-.322-.429-.583-.765-.583s-.796.261-.796.583v2.771c0 .522
26-.424.688-.676.688-.252 0-.769-.095-.769-.688V2.292A.298.298 0 0 0 8.678 2H5.155a.149.149 0 0 1-.152-.145V.583C5.003.261 4.574 0 4.238 0s-.89.261-.89.583v2.771c0 .439-.423.656-.675.656-.253 0-.676-.205-.676-.656V2.292A.298.298 0 0 0 1.693 2h-.476C.545 2 0 2.272 0 2.917v9.916C0 13.478.545 14 1.217 14h11.566c.672 0 1.217-.522 1.217-1.167V2.917C14 2.272 13.455 2 12.783 2zm-1.086 10.021H2.303a.298.298 0 0 1-.304-.292V6.292c0-.161.136-.292.304-.292h9.394c.168 0 .304.131.304.292v5.437a.298.298 0 0 1-.304.292z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="12" height="10"><path fill-rule="evenodd" opacity=".949" fill="#FFF" d="M11.946 1.495c-.026.272-.298.491-.621.491h-6.68c-.31 0-.582-.219-.608-.491-.065-.633-.065-.374 0-1.007.026-.272.298-.492.608-.492h6.68c.323 0 .595.22.621.492.064.633.064.374 0 1.007zM2.324 9.986H.645c-.31 0-.582-.219-.608-.491-.065-.634-.065-.374 0-1.007.026-.272.298-.492.608-.492h1.679c.324 0 .596.22.622.492.064.633.064.373 0 1.007-.026.272-.298.491-.622.491zm0-3.999H.645c-.31 0-.582-.22-.608-.492-.065-.633-.065-.374 0-1.007.026-.272.298-.492.608-.492h1.679c.324 0 .596.22.622.492.064.633.064.374 0 1.007-.026.272-.298.492-.622.492zm0-4.001H.645c-.31 0-.582-.219-.608-.491-.065-.633-.065-.374 0-1.007.026-.272.298-.492.608-.492h1.679c.324 0 .596.22.622.492.064.633.064.374 0 1.007-.026.272-.298.491-.622.491zm2.321 1.999h3.679c.324 0 .596.22.622.492.065.633.065.405 0 1.038-.026.272-.298.492-.622.492H4.645c-.31 0-.582-.22-.608-.492-.065-.633-.065-.405 0-1.038.026-.272.298-.492.608-.492zm0 4.021h5.679c.324 0 .596.219.622.491.065.634.065.374 0 1.007-.026.272-.298.492-.622.492H4.645c-.31 0-.582-.22-.608-.492-.065-.633-.065-.373 0-1.007.026-.272.298-.491.608-.491z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="15" height="11"><path fill-rule="evenodd" d="M12.987.675L6.272 7.154 2.697 3.672.904 5.415l5.38 5.226 8.496-8.223L12.987.675z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="10" height="8"><path fill-rule="evenodd" fill="#27303D" d="M9.441 1.469S5.495 7.07 5.173 7.515c-.438.59-1.271.621-1.729 0C3.132 7.081.363 3.561.363 3.561c-.136-.196-.125-.455.041-.6.365-.311.76-.689 1.187-.928.188-.093.437-.02.573.176l2.144 2.749L7.65.237c.136-.196.386-.269.573-.165.416.227.812.486 1.176.807.167.135.177.394.042.59z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="11" height="9" viewBox="0 0 11 9"><path fill-rule="evenodd" fill="#FFF" d="M10.92 1.266S6.439 8.215 6.153 8.609c-.29.701-.866.528-1.287.237a.92.92 0 0 1-.237-.237C4.353 8.224 1.75 4.32 1.75 4.32c-.798-.449-.783-.677-.638-.819a6.436 6.436 0 0 1 1.047-.723.41.41 0 0 1 .5.156l2.727 3.415L9.334.178c.108-.058.321.312.501.132.371-.08.719.159 1.038.435.337.135.547.362.047.521Z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="13" height="8"><path fill-rule="evenodd" d="M1.613.467L.203 1.815l6 5.739 6-5.739-1.41-1.348-4.59 4.38-4.59-4.38z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="6" height="9"><path fill-rule="evenodd" fill="#B3CEE0" d="M5.805 4.033L1.708.176a.697.697 0 0 0-.945 0L.195.71a.604.604 0 0 0 0 .89L3.27 4.496.195 7.391a.604.604 0 0 0 0 .89l.568.534a.697.697 0 0 0 .945 0l4.097-3.857A.61.61 0 0 0 6 4.496a.61.61 0 0 0-.195-.463z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="9" height="14"><path fill-rule="evenodd" fill="#ABB4BE" d="M7.75 6.329L2.419.304a.913.913 0 00-1.331 0l-.799.834a1.015 1.015 0 000 1.39l3.892 4.523-3.892 4.398a1.015 1.015 0 000 1.39l.799.834a.913.913 0 001.331 0l5.331-5.9c.191-.199.281-.461.275-.722a1.002 1.002 0 00-.275-.722z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="7" height="11"><path fill-rule="evenodd" fill="#1D242F" d="M.287 9.44L4.23 5.911.287 2.383a.845.845 0 010-1.288 1.105 1.105 0 011.439 0l4.791 4.288a.693.693 0 010 1.057l-4.791 4.287a1.103 1.103 0 01-1.439 0 .844.844 0 010-1.287z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="8px" height="6px"><path fill-rule="evenodd" fill="rgb(119, 143, 169)" d="M3.601,0.163 L0.188,3.577 C-0.030,3.795 -0.030,4.147 0.188,4.365 L0.660,4.838 C0.878,5.055 1.231,5.055 1.448,4.838 L4.010,2.275 L6.572,4.838 C6.789,5.055 7.142,5.055 7.359,4.838 L7.832,4.365 C8.050,4.147 8.050,3.795 7.832,3.577 L4.419,0.163 C4.306,0.050 4.158,-0.004 4.010,-0.000 C3.862,-0.004 3.714,0.050 3.601,0.163 Z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="8" height="8"><path fill-rule="evenodd" fill="#ACC1CD" d="M7.764 6.706L5.05 3.992l2.714-2.714a.747.747 0 000-1.058.747.747 0 00-1.058 0L3.992 2.934 1.277.22A.745.745 0 00.22.22a.745.745 0 000 1.058l2.714 2.714L.22 6.706a.745.745 0 000 1.058.745.745 0 001.057 0L3.992 5.05l2.714 2.714a.747.747 0 001.058 0 .75.75 0 000-1.058z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="9"><path fill="#1D242F" fill-rule="evenodd" d="m15.465 5.309-3.031 3.023a.95.95 0 0 1-1.34 0 .943.943 0 0 1 0-1.336l2.094-2.086a.37
267.377 0 0 0 0-.534l-2.094-2.091a.944.944 0 0 1 0-1.337.95.95 0 0 1 1.34 0l3.031 3.024c.37.369.37.967 0 1.337ZM7.596 8.987a.948.948 0 0 1-.926-1.151l1.516-6.803a.948.948 0 0 1 1.85.411L8.52 8.247a.949.949 0 0 1-.924.74ZM5.613 6.996c.37.369.37.967 0 1.336a.95.95 0 0 1-1.34 0L1.242 5.309a.944.944 0 0 1 0-1.337L4.273.948a.951.951 0 0 1 1.34 0c.37.37.37.968 0 1.337L3.519 4.37a.378.378 0 0 0 0 .535l2.094 2.091Z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="12px" height="12px"><path fill-rule="evenodd" fill="rgb(255, 255, 255)" d="M11.739,4.006 L0.262,4.006 C0.115,4.006 -0.000,3.890 -0.000,3.751 L-0.000,2.666 C-0.000,2.558 0.068,2.464 0.172,2.427 L6.057,0.005 C6.115,-0.015 6.178,-0.015 6.237,0.005 L11.829,2.427 C11.931,2.464 12.000,2.558 12.000,2.666 L12.000,3.751 C12.000,3.895 11.882,4.006 11.739,4.006 ZM2.260,9.007 C2.113,9.007 1.999,8.891 1.999,8.753 L1.999,5.253 C1.999,5.119 2.108,5.000 2.260,5.000 L3.731,5.000 C3.884,5.000 3.993,5.121 3.993,5.253 L3.993,8.753 C3.993,8.891 3.877,9.007 3.731,9.007 L2.260,9.007 ZM5.264,9.007 C5.124,9.007 5.003,8.899 5.003,8.753 L5.003,5.253 C5.003,5.107 5.124,4.999 5.264,4.999 L6.737,4.999 C6.882,4.999 6.998,5.108 6.998,5.253 L6.998,8.753 C6.998,8.897 6.881,9.007 6.737,9.007 L5.264,9.007 ZM8.268,9.007 C8.127,9.007 8.006,8.897 8.006,8.753 L8.006,5.253 C8.006,5.113 8.121,4.999 8.268,4.999 L9.742,4.999 C9.889,4.999 10.003,5.117 10.003,5.253 L10.003,8.753 C10.003,8.893 9.883,9.007 9.742,9.007 L8.268,9.007 ZM1.043,9.988 L10.972,9.988 C11.111,9.988 11.234,10.099 11.234,10.243 L11.234,11.748 C11.234,11.889 11.111,12.002 10.972,12.002 L1.043,12.002 C0.895,12.002 0.781,11.882 0.781,11.748 L0.781,10.243 C0.781,10.103 0.899,9.988 1.043,9.988 Z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="13" height="13"><path fill-rule="evenodd" fill="#EFD814" d="M9 8h2l.028-4.543c0-.8-.592-1.454-1.392-1.454L5 2v2h4v4zM4 9V0H2v2H0v2h2l-.028 5.636C1.972 10.436 2.2 11 3 11h6v2h2v-2h2V9H4z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="7" height="7"><path fill-rule="evenodd" fill="#171B24" d="M5.872 1.339l-1.698 1.7 1.649 1.658a.573.573 0 0 1 0 .806l-.35.352a.563.563 0 0 1-.801 0L3.02 4.194 1.357 5.857a.564.564 0 0 1-.8-.001l-.35-.352a.572.572 0 0 1 .001-.807l1.66-1.661L.181 1.339a.571.571 0 0 1 0-.806l.35-.352a.563.563 0 0 1 .801 0l1.69 1.7L4.723.179a.564.564 0 0 1 .8.001l.35.352a.572.572 0 0 1-.001.807z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"><path fill-rule="evenodd" fill="#D7DEE1" d="M1.147 2.568l5.507 5.444-5.467 5.403c-.343.343-.254.983.089 1.326.342.343.983.432 1.326.089l5.466-5.404 5.39 5.453c.343.343.939.299 1.282-.044.343-.343.454-1.005.111-1.348L9.46 8.034l5.413-5.476c.343-.342.254-.983-.089-1.325-.342-.343-.983-.432-1.326-.089L8.046 6.62 2.539 1.176c-.343-.343-.983-.255-1.326.088-.34.343-.407.963-.066 1.304z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 10 10"><path fill-rule="evenodd" fill="#B3CEE0" d="M9.741 8.574L6.163 4.986l3.578-3.588a.829.829 0 0 0 0-1.171.823.823 0 0 0-1.169 0L4.995 3.815 1.418.227a.823.823 0 0 0-1.169 0 .829.829 0 0 0 0 1.171l3.578 3.588L.249 8.574a.83.83 0 0 0 0 1.172.823.823 0 0 0 1.169 0l3.577-3.588 3.577 3.588a.823.823 0 0 0 1.169 0 .834.834 0 0 0 0-1.172z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="8px" height="8px" viewBox="0 0 8 8"><path fill-rule="evenodd" opacity="0.502" fill="rgb(255, 255, 255)" d="M4.635,4.114 L6.724,6.205 C7.091,6.573 7.107,6.987 6.739,7.355 L6.737,7.357 C6.370,7.725 5.962,7.704 5.594,7.336 L3.505,5.245 L1.422,7.330 C1.055,7.698 0.642,7.714 0.274,7.346 L0.272,7.344 C-0.095,6.976 -0.074,6.567 0.293,6.200 L2.376,4.114 L0.297,2.032 C-0.070,1.665 -0.096,1.251 0.271,0.883 L0.273,0.881 C0.641,0.513 1.059,0.534 1.426,0.902 L3.505,2.983 L5.590,0.896 C5.957,0.528 6.371,0.502 6.738,0.870 L6.741,0.872 C7.108,1.240 7.087,1.659 6.720,2.026 L4.635,4.114 Z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 14 14"><path fill-rule="evenodd" fill="#161A23" d="M11.669 0H2.331A2.331 2.331 0 0 0 0 2.331v9.338A2.331 2.331 0 0 0 2.331 14h9.338A2.331 2.331 0 0 0 14 11.669V2.331A2.331 2.331 0 0 0 11.669 0zM4.687 11.011a.364.364 0 1 1 0 .729 2.697 2.697 0 0 1 0-5.396.365.365 0 0 1 0 .73 1.968 1.968 0 1 0 0 3.937zm1.926-2.572l1.137.569a1.446 1.446 0 0 1-.646 2.741h-1.25a.364.364 0 0 1 0-.729h1.252a.717.717 0 0 0 .323-1.36l-1.137-.569a1.447 1.447 0 0 1 .647-2.741h1.248a.364.364 0 1 1 0 .729H6.936a.717.717 0 0 0-.321 1.358l-.002.002zm5.406-.39c-.002 1.292-.379 2.545-1.185 3.554a.364.364 0 0 1-.569 0A5.704 5.704 0 0 1 9.021 8.05V6.708a.364.364 0 0 1 .729 0V8.05c.001.876.233 1.736.673 2.494a.152.152 0 0 0 .258 0c.44-.758.61-1.618.611-2.494V6.708a.364.364 0 0 1 .729 0l-.002 1.341z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 14 14"><path fill-rule="evenodd" fill="#1D242F" d="M9.479 10.211a.71.71 0 1 1 .71.709.712.712 0 0 1-.71-.709zM3.811 4.499a.711.711 0 0 1-.71-.709.713.713 0 0 1 .71-.71.711.711 0 0 1 .709.71l-.001.032a.711.711 0 0 1-.708.677zm8.69 7.162l-.509-.509c.221-.422.299-.93.167-1.462A2.018 2.018 0 0 0 10.7 8.238a2.04 2.04 0 0 0-2.486 2.474 2.018 2.018 0 0 0 1.458 1.469 2.05 2.05 0 0 0 1.477-.177l.494.494c.554.554.161 1.502-.623 1.502H2.019A2.02 2.02 0 0 1 0 11.981V2.019A2.02 2.02 0 0 1 2.019 0h2.922c.629 0 .944.76.499 1.205l-.75.75a2.059 2.059 0 0 0-1.427-.129 2.008 2.008 0 0 0-1.42 1.433 2.042 2.042 0 0 0 2.466 2.506 2.025 2.025 0 0 0 1.477-1.477 2.046 2.046 0 0 0-.215-1.518L8.34 0h3.641A2.02 2.02 0 0 1 14 2.02v9.02c0 .782-.946 1.174-1.499.621zm-2.312-9.906a2.036 2.036 0 0 0-1.822 2.939l-3.68 3.68a2.036 2.036 0 1 0 .882.813l3.624-3.624a2.034 2.034 0 1 0 .996-3.808zm.072 2.74a.711.711 0 0 1-.782-.705.713.713 0 0 1 .71-.71.71.71 0 0 1 .072 1.415zm-6.45 6.425a.71.71 0 0 1 0-1.419.711.711 0 0 1 .709.71l-.001.026a.71.71 0 0 1-.708.683z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="14" height="11" viewB
26ox="0 0 14 11"><path fill-rule="evenodd" fill="#1D242F" d="m13.375 2.636.004.005-.798.8-1.638-1.639.798-.8a.42.42 0 0 1 .297-.122h.01l.013-.001c.11 0 .216.044.295.123l1.019 1.02a.439.439 0 0 1 0 .614ZM7.759 8.267l-.362.363a.404.404 0 0 1-.286.118H6.044a.404.404 0 0 1-.404-.404V7.276c0-.107.043-.21.119-.285l.775-.777L8.22 4.527l2.252-2.254 1.638 1.639-4.351 4.355Zm-.26-6.053h-6a.999.999 0 1 1 0-2h6a1 1 0 1 1 0 2Zm-6 2h4.913L4.697 5.931a1.958 1.958 0 0 0-.233.283H1.499a.999.999 0 1 1 0-2Zm0 4H4.14v.13c0 .935.679 1.711 1.568 1.87H1.499a.999.999 0 1 1 0-2Z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="8" height="2"><path fill-rule="evenodd" fill="#A7B5C5" d="M1.469 0h5.125a1 1 0 010 2H1.469a1 1 0 110-2z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="11" height="13"><path fill-rule="evenodd" fill="#1D242F" d="M10.833 8.99H8.157c-.645 0-1.168.523-1.168 1.168v2.675a.166.166 0 01-.166.167h-4.7A2.124 2.124 0 010 10.877V2.123C0 .951.951 0 2.123 0h6.754C10.049 0 11 .951 11 2.123v6.7a.167.167 0 01-.167.167zm-2.644 1.016l2.533.001a.165.165 0 01.166.202c-.396 1.756-.907 2.282-2.663 2.68a.198.198 0 01-.035.003.166.166 0 01-.168-.166v-2.553a.17.17 0 01.167-.167z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="13" height="16"><path fill-rule="evenodd" fill="#1D242F" d="M12.901 10.748l-.852.676c.016.131.028.264.028.399 0 .134-.012.267-.028.398l.85.676a.207.207 0 01.048.261l-.805 1.416a.2.2 0 01-.246.088l-1.002-.411a2.962 2.962 0 01-.68.403l-.151 1.082a.204.204 0 01-.199.172h-1.61a.204.204 0 01-.199-.172l-.151-1.082a3.057 3.057 0 01-.68-.403l-1.002.411a.2.2 0 01-.246-.088l-.266-.468-.539-.948a.205.205 0 01.049-.261l.849-.676a3.284 3.284 0 01-.028-.398c0-.135.012-.268.028-.399l-.849-.676a.206.206 0 01-.049-.261l.805-1.416a.201.201 0 01.246-.088l1.002.411a2.98 2.98 0 01.68-.402l.151-1.083a.204.204 0 01.199-.172h1.61c.101 0 .183.076.201.172l.151 1.083c.246.104.473.241.68.402l.08-.033.922-.378a.2.2 0 01.246.088l.805 1.416c.05.09.028.2-.048.261zm-3.842 2.504c.779 0 1.409-.639 1.409-1.429 0-.791-.63-1.43-1.409-1.43s-1.409.639-1.409 1.43c0 .79.63 1.429 1.409 1.429zm0-1.846c.226 0 .41.187.41.417a.414.414 0 01-.41.416.414.414 0 01-.41-.416c0-.23.184-.417.41-.417zm.805-4.682h-1.61c-.587 0-1.085.427-1.183 1.015l-.066.473-.41-.168a1.19 1.19 0 00-.444-.087 1.2 1.2 0 00-1.038.605L4.307 9.98a1.223 1.223 0 00.282 1.553l.363.29-.348.277a1.223 1.223 0 00-.301 1.559l.255.447H2.115c-1.171 0-2.119-.963-2.119-2.151V3.086c0-1.189.948-2.152 2.119-2.152h6.741c1.171 0 2.12.963 2.12 2.152v4.465c-.182-.497-.609-.827-1.112-.827z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="9" height="16"><path fill-rule="evenodd" fill="#778FA9" d="M5.076 7.1c-1.531-.51-2.545-.71-2.545-1.88 0-.83.689-1.62 2.009-1.62 1.522 0 2.01.88 2.01 1.94h1.818c0-1.79-1.119-3.09-2.871-3.44V0H3.584v2.11C2.072 2.43.713 3.48.713 5.23c0 2.25 1.703 2.8 3.827 3.52 1.799.61 2.154 1.04 2.154 2.09 0 .9-.642 1.56-2.154 1.56-1.148 0-2.153-.84-2.153-2.06H.473c0 1.88 1.321 3.2 3.111 3.56V16h1.913v-2.07c1.953-.29 3.063-1.49 3.063-3.1 0-1.87-.9-2.87-3.484-3.73z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="14" height="13"><path fill-rule="evenodd" fill="#1D242F" d="M13 13H1a1 1 0 0 1-1-1V9a1 1 0 0 1 2 0v2h10V9a1 1 0 0 1 2 0v3a1 1 0 0 1-1 1zM7.372 8.847A.747.747 0 0 1 6.938 9a.747.747 0 0 1-.434-.153c-.132-.095-1.38-1.6-2.405-2.731a.8.8 0 0 1-.022-.744.722.722 0 0 1 .622-.382H5.97c.06-1.857-.016-3.421.023-4.021.036-.443.294-.958.992-.958s1.001.456 1.007.974c.002.486 0 2.007-.024 4.005h1.333c.264 0 .49.153.622.382a.802.802 0 0 1-.037.744c-1.145 1.2-2.382 2.636-2.514 2.731z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="6" height="10"><path fill-rule="evenodd" fill="#778FA9" d="M5 6a1 1 0 110-2 1 1 0 010 2zm0-4a1 1 0 110-2 1 1 0 010 2zm-4 8a1 1 0 110-2 1 1 0 010 2zm0-4a1 1 0 110-2 1 1 0 010 2zm0-4a1 1 0 110-2 1 1 0 010 2zm4 6a1 1 0 110 2 1 1 0 010-2z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="12px" height="12px"><path fill-rule="evenodd" fill="rgb(29, 36, 47)" d="M10.000,12.000 L6.000,12.000 C4.895,12.000 4.000,11.105 4.000,10.000 L4.000,6.000 C4.000,4.895 4.895,4.000 6.000,4.000 L10.000,4.000 C11.105,4.000 12.000,4.895 12.000,6.000 L12.000,10.000 C12.000,11.105 11.105,12.000 10.000,12.000 ZM3.000,5.000 L3.000,8.000 L2.000,8.000 C0.896,8.000 0.000,7.105 0.000,6.000 L0.000,2.000 C0.000,0.895 0.896,-0.000 2.000,-0.000 L6.000,-0.000 C7.105,-0.000 8.000,0.895 8.000,2.000 L8.000,3.000 L5.000,3.000 C3.896,3.000 3.000,3.895 3.000,5.000 Z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12"><path fill-rule="evenodd" fill="#1E2A34" d="M.178 9.319l7.188-7.196 2.499 2.5-7.189 7.196a.613.613 0 0 1-.435.181H.614a.616.616 0 0 1-.616-.616V9.755c0-.164.064-.32.18-.436zm11.623-6.634l-1.217 1.22-2.498-2.5L9.303.185a.641.641 0 0 1 .469-.187.636.636 0 0 1 .468.187l1.555 1.556a.667.667 0 0 1 0 .935l.006.009z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 9.5 12.01"><path d="M7.5 5.82c.9-.58 1.54-1.51 1.54-2.39C9.04 1.5 7.42 0 5.32 0H0v12.01h6.05c1.95 0 3.45-1.46 3.45-3.25 0-1.3-.8-2.41-2-2.93ZM2.01 1.99h3.07c.77 0 1.4.73 1.4 1.44s-.62 1.6-1.4 1.6H2.01V1.99Zm3.94 8.03H2.01V7.01h3.94c.77 0 1.4.73 1.4 1.44s-.62 1.57-1.4 1.57Z" style="fill:#1d242f"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12"><path d="M1 2h8c.55 0 1-.45 1-1s-.45-1-1-1H1C.45 0 0 .45 0 1s.45 1 1 1Zm0 2c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1s1-.45 1-1V5c0-.55-.45-1-1-1Zm3 2c0 .55.45 1 1 1h6c.55 0 1-.45 1-1s-.45-1-1-1H5c-.55 0-1 .45-1 1Zm7 3H5c-.55 0-1 .45-1 1s.45 1 1 1h6c.55 0 1-.45 1-1s-.45-1-1-1Z" style="fill:#1d242f;fill-rule:evenodd"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 12"><path d="M3.02 0v2.01h2.41L2.57 9.99H0V12h6.98V9.99H4.82l2.86-7.98H10V0H3.02Z" style="fill:#1d242f"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 11.77 11.77"><path d="M10.74 1.02a3.495 3.495 0 0 0-4.95 0l-2 2 1.09 1.09 2-2c.37-.37.86-.58 1.39-.58s1.02.2 1.39.58c.77.77.7
267 2.01 0 2.78l-2 2 1.09 1.09 2-2a3.513 3.513 0 0 0 0-4.95ZM4.89 9.66a1.962 1.962 0 0 1-3.35-1.39c0-.53.2-1.02.57-1.39l2-2-1.09-1.09-2 2a3.513 3.513 0 0 0 0 4.95c.68.68 1.58 1.02 2.48 1.02s1.79-.34 2.47-1.02l2-2-1.09-1.09-2 2Zm3.56-5.21L7.32 3.32l-4 4 1.13 1.13 4-4Z" style="fill:#1d242f"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="13" height="3"><path fill-rule="evenodd" fill="#1D242F" d="M11.5 3a1.5 1.5 0 1 1 .001-3.001A1.5 1.5 0 0 1 11.5 3zm-5 0a1.5 1.5 0 1 1 .001-3.001A1.5 1.5 0 0 1 6.5 3zm-5 0a1.5 1.5 0 1 1 .001-3.001A1.5 1.5 0 0 1 1.5 3z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="13"><path fill-rule="evenodd" fill="#1D242E" d="M15 12H8a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h7a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1zM7.5 6h6a.5.5 0 0 1 0 1h-6a.5.5 0 0 1 0-1zm8-2h-8a.5.5 0 0 1 0-1h8a.5.5 0 0 1 0 1zm-2-3h-6a.5.5 0 0 1 0-1h6a.5.5 0 0 1 0 1zM2.9 12.894a.633.633 0 0 1-.353.107.523.523 0 0 1-.541-.536V11.19c0-.098-.088-.178-.196-.178H.549c-.433 0-.549-.209-.549-.512 0-.268.116-.495.549-.495H1.81c.108 0 .196-.08.196-.179v-1.29a.5.5 0 0 1 .118-.321.567.567 0 0 1 .776-.108l1.873 1.966c.044.03.083.065.116.106a.506.506 0 0 1-.116.751L2.9 12.894z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="30" height="31"><path fill-rule="evenodd" fill="#F92053" d="M15 .025c8.284 0 15 6.715 15 15 0 8.284-6.716 15-15 15-8.284 0-15-6.716-15-15 0-8.285 6.716-15 15-15Z"></path><path fill-rule="evenodd" fill="#F7F7F7" d="M10 13h10a2 2 0 1 1 0 4H10a2 2 0 1 1 0-4Z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="14" height="13"><path fill-rule="evenodd" fill="#1D242F" d="M13.992 7.81c-.074 1.305-.393 2.394-1.045 3.464-.946.409-1.861.613-3.092.398-.915.805-1.924 1.313-2.857 1.328-.943-.016-1.965-.533-2.888-1.353-1.157.189-2.099.026-3.05-.368C.4 10.189.103 9.115.01 7.81-.124 5.935.819 0 6.984 0c6.5 0 7.115 5.915 7.008 7.81zm-1.909-1.569c-2.682.226-5.493-.091-7.295-2.017-.478 1.648-1.363 3.114-3.122 3.314-.482.055-.404.753.087.704a3.895 3.895 0 0 0 1.201-.355c.561 2.453 2.962 4.146 4.044 4.111 1.235.038 4.066-2.101 4.157-4.997V7c.319-.009.647-.025.993-.055.482-.04.423-.745-.065-.704zm-3.367 1.92c-.425 0-.77-.331-.77-.738 0-.408.345-.739.77-.739.425 0 .769.331.769.739 0 .407-.344.738-.769.738zm-3.454 0c-.425 0-.77-.331-.77-.738 0-.408.345-.739.77-.739.425 0 .77.331.77.739 0 .407-.345.738-.77.738z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="14" height="11"><path fill-rule="evenodd" fill="#1A202A" d="M12.5 3h-11a1.5 1.5 0 0 1 0-3h11a1.5 1.5 0 0 1 0 3zM3 5h8a1 1 0 0 1 0 2H3a1 1 0 0 1 0-2zm2 4h4a1 1 0 0 1 0 2H5a1 1 0 0 1 0-2z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="15"><path fill-rule="evenodd" fill="red" d="M10.001 13.967c-.028.004-.056.004-.083.004a.634.634 0 0 1-.633-.546.629.629 0 0 1 .552-.702c2.783-.352 4.881-1.513 4.881-2.701 0-.604-.578-1.245-1.578-1.762a.62.62 0 0 1-.268-.847.647.647 0 0 1 .864-.263c1.462.751 2.262 1.77 2.264 2.872 0 1.905-2.412 3.488-5.999 3.945zm-1.623-3.015a.643.643 0 0 1-.888-.128C6.392 9.393 3.84 5.871 3.84 4.071 3.842 1.823 5.703.002 7.999-.001c2.295.003 4.155 1.823 4.16 4.069 0 1.799-2.553 5.322-3.651 6.756a.63.63 0 0 1-.13.128zm1.221-6.881c0-.865-.716-1.566-1.6-1.566-.883 0-1.6.701-1.6 1.566 0 .865.717 1.567 1.6 1.567v-.004c.882 0 1.598-.699 1.6-1.563zM2.857 8.258c-1.003.517-1.578 1.159-1.578 1.762 0 1.082 1.891 2.358 5 2.72.04.004.12.011.12-.101v-.427a.31.31 0 0 1 .094-.221.324.324 0 0 1 .452 0l1.283 1.255.001.001a.308.308 0 0 1-.001.442l-1.28 1.253a.603.603 0 0 1-.349.065.313.313 0 0 1-.2-.289v-.561a.162.162 0 0 0-.158-.162C2.583 13.593 0 11.978 0 10.02c0-1.1.803-2.119 2.261-2.872a.648.648 0 0 1 .865.263.621.621 0 0 1-.269.847z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14"><path fill-rule="evenodd" fill="#1D242F" d="M11.503 0H2.497A2.497 2.497 0 0 0 0 2.497v9.006A2.497 2.497 0 0 0 2.497 14h9.006A2.497 2.497 0 0 0 14 11.503V2.497A2.497 2.497 0 0 0 11.503 0zM3.646 11.188c.465 0 .843-.4.844-.893 0 0 .032-.243-.136-.243h-.401a.396.396 0 0 1-.384-.406c0-.224.172-.406.384-.406h.92c.212 0 .384.182.384.406v.649c0 .942-.722 1.705-1.611 1.705-.89 0-1.643-.763-1.643-1.705V7.698c0-.941.753-1.704 1.643-1.704.889 0 1.611.763 1.611 1.704a.395.395 0 0 1-.384.406.394.394 0 0 1-.383-.406c0-.493-.378-.892-.844-.892-.467 0-.844.399-.844.892v2.597c0 .493.378.893.844.893zm5.191 0c.212 0 .384.182.384.406a.396.396 0 0 1-.384.406H6.382a.396.396 0 0 1-.384-.406c0-.224.172-.406.384-.406h.597c.085 0 .153-.073.153-.162V6.968a.157.157 0 0 0-.153-.162h-.597a.396.396 0 0 1-.384-.406c0-.224.172-.406.384-.406h2.455c.212 0 .384.182.384.406a.396.396 0 0 1-.384.406h-.69a.158.158 0 0 0-.154.162v4.058c0 .089.069.162.154.162h.69zm3.996-4.382h-1.535c-.297 0-.537.254-.537.568v.649c0 .089.069.162.153.162h.998c.212 0 .383.181.383.406a.394.394 0 0 1-.383.405h-.998c-.084 0-.153.073-.153.163v2.435a.396.396 0 0 1-.384.406c-.212 0-.383-.182-.383-.406v-4.22c-.001-.762.583-1.38 1.303-1.38H12.833c.211 0 .383.182.383.406 0 .224-.172.406-.383.406z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" viewBox="0 0 13 13">
26<path fill-rule="evenodd" fill="#99A2AC" d="M6.207.585A6.204 6.204 0 0 0 0 6.792a6.204 6.204 0 0 0 6.207 6.206 6.204 6.204 0 0 0 6.206-6.206A6.204 6.204 0 0 0 6.207.585Zm-.621 11.128a4.96 4.96 0 0 1-4.345-4.921c0-.382.047-.755.131-1.111l2.973 2.972v.621a1.24 1.24 0 0 0 1.241 1.241v1.198Zm4.279-1.573a1.232 1.232 0 0 0-1.176-.866h-.62V7.412c0-.341-.28-.62-.621-.62H3.724V5.55h1.241a.622.622 0 0 0 .621-.62V3.688h1.241c.686 0 1.242-.555 1.242-1.241v-.258a4.964 4.964 0 0 1 3.103 4.603 4.939 4.939 0 0 1-1.307 3.348Z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" viewBox="0 0 13 13"><path fill-rule="evenodd" fill="#99A2AC" d="M12.473 13.015H8.519c-.291 0-.527-.218-.527-.487v-2.431c0-.268.421-.486.712-.486h.198v-.79c0-.906.597-1.641 1.58-1.641.982 0 1.594.735 1.594 1.641v.79h.397c.291 0 .527.218.527.486v2.431c0 .269-.236.487-.527.487Zm-1.269-4.194c0-.357-.35-.678-.727-.678-.422 0-.674.367-.674.678v.669c0 .067.058.121.131.121h1.138c.073 0 .132-.054.132-.121v-.669ZM8.06 2.515v.25c0 .666-.555 1.206-1.24 1.206H5.58v1.206c0 .331-.28.602-.621.602h-1.24v1.206h3.666a3.592 3.592 0 0 0-.444 1.286c-.559.428-.948 1.061-.948 1.826v2.431c0 .164.018.323.05.477-3.353-.081-6.045-2.741-6.045-6.02C-.002 3.655 2.773.957 6.2.957c2.964 0 5.438 2.021 6.051 4.723a3.641 3.641 0 0 0-1.429-.414A4.891 4.891 0 0 0 8.06 2.515ZM1.369 5.906a4.58 4.58 0 0 0-.13 1.079c0 2.459 1.894 4.485 4.341 4.78v-1.163c-.686 0-1.241-.54-1.241-1.206v-.603l-2.97-2.887Z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="12" height="10"><path fill-rule="evenodd" fill="#99A2AC" d="M11 6H1a1 1 0 0 1 0-2h10a1 1 0 0 1 0 2zm0-4H1a1 1 0 0 1 0-2h10a1 1 0 0 1 0 2zM1 8h10a1 1 0 0 1 0 2H1a1 1 0 0 1 0-2z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="14" height="15" viewBox="0 0 14 15"><path d="M1.5 0h1a1.5 1.5 0 0 1 0 3h-1a1.5 1.5 0 0 1 0-3Zm5 4h1a1.5 1.5 0 0 1 0 3h-1a1.5 1.5 0 0 1 0-3Zm0-4h1a1.5 1.5 0 0 1 0 3h-1a1.5 1.5 0 0 1 0-3Zm5 4h1a1.5 1.5 0 0 1 0 3h-1a1.5 1.5 0 0 1 0-3Zm-10 4h1a1.5 1.5 0 0 1 0 3h-1a1.5 1.5 0 0 1 0-3Zm10 0h1a1.5 1.5 0 0 1 0 3h-1a1.5 1.5 0 0 1 0-3Zm-10 4h1a1.5 1.5 0 0 1 0 3h-1a1.5 1.5 0 0 1 0-3Zm5 0h1a1.5 1.5 0 0 1 0 3h-1a1.5 1.5 0 0 1 0-3Z" style="fill:#fafbfb;fill-rule:evenodd"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="10" height="14" viewBox="0 0 10 14"><path fill-rule="evenodd" fill="#1D242F" d="M9.232 1.538S4.551 3.755 4.031 3.989c-.446.2-.852.241-1.136.227a2.991 2.991 0 0 1-1.361-.386c-.311-.178-.261-.444 0-.567a639.41 639.41 0 0 1 2.196-.994l2.592-1.187.499.201V.53a.534.534 0 0 0-.758-.48S1.071 2.305.97 2.356c-.723.358-.951.552-.972 1.46v8.191c0 .606.291 1.16.859 1.495 1.023.605 2.5.655 3.584.171l5.189-2.705a.529.529 0 0 0 .286-.462l.082-8.486a.535.535 0 0 0-.766-.482zM1.017 11.12V9.944c.308.895 1.951.999 2.916.819l.071-.014v1.176l-.071.014c-1.092.203-2.627.019-2.916-.819zm0-5.171c.316.917 2.021 1.002 2.987.805v1.175c-1.085.222-2.689.059-2.987-.805V5.949z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14"><path fill-rule="evenodd" fill="#1D242F" d="M11.72 0H2.28A2.28 2.28 0 000 2.28v9.44A2.28 2.28 0 002.28 14h9.44A2.28 2.28 0 0014 11.72V2.28A2.28 2.28 0 0011.72 0zM4.444 11h-.888A.556.556 0 013 10.444V5.556C3 5.249 3.249 5 3.556 5h.888c.307 0 .556.249.556.556v4.888a.556.556 0 01-.556.556zm3 0h-.888A.556.556 0 016 10.444V3.556C6 3.249 6.249 3 6.556 3h.888c.307 0 .556.249.556.556v6.888a.556.556 0 01-.556.556zm3 0h-.888A.556.556 0 019 10.444V8.556C9 8.249 9.249 8 9.556 8h.888c.307 0 .556.249.556.556v1.888a.556.556 0 01-.556.556z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12"><path fill-rule="evenodd" fill="#4675FA" d="M11.853 5.644 6.352.143c-.195.367-.512.367-.707 0L.144 5.644c.356.195.356.512 0 .707a.5.5 0 0 0 .354.147h.39c.069 0 .242.056.242.125v4.876c0 .276.107.5.383.5h3.11a.125.125 0 0 0 .125-.125V9.248a1.25 1.25 0 0 1 2.501 0v2.626c0 .069.056.125.125.125h3.125a.5.5 0 0 0 .5-.5V6.623c0-.069.551-.
26125.125-.125h.376a.5.5 0 0 0 .353-.854Z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12"><path fill-rule="evenodd" fill="#B3CEE0" d="M6.423.96a5.524 5.524 0 100 11.047 5.524 5.524 0 000-11.047zm1.025 8.709c-.316.22-.968.563-1.694.541l-.02.002-.016-.002h-.006l-.005-.001c-.48-.015-.772-.409-.652-.898L5.55 7.3v-.001c.106-.433-.431-.446-.543-.489-.109-.042-.102-.211.068-.331.321-.226.994-.579 1.737-.541.014.001.019.007.031.009.461.031.738.417.621.895l-.491 1.991c-.001.007.002.009 0 .016-.107.433.427.453.543.489.122.038.1.214-.068.331zm-.457-4.674a1.03 1.03 0 01-1.038-1.022A1.03 1.03 0 016.991 2.95a1.03 1.03 0 011.038 1.023 1.03 1.03 0 01-1.038 1.022z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill-rule="evenodd" fill="red" d="M11.1 9.992H1.987V8.929l2.777-3.121a.889.889 0 0 1 1.273 0l.697.735c.51.536 1.188.832 1.908.832h.002a2.617 2.617 0 0 0 1.908-.834 2.8 2.8 0 0 0 .406-.548l.43-.758c.255-.45.116-1.032-.311-1.301a.875.875 0 0 0-1.234.328l-.43.758a.974.974 0 0 1-.134.181.877.877 0 0 1-.637.278.873.873 0 0 1-.635-.277l-.698-.736A2.615 2.615 0 0 0 5.4 3.634h-.001a2.62 2.62 0 0 0-1.909.833L1.987 6.248V.952c0-.523-.496-.948-.993-.948S0 .429 0 .952v10.113c0 .523.403.948.9.948h10.2c.497 0 .9-.519.9-1.042s-.403-.979-.9-.979z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="14px" height="14px" viewBox="0 0 14 14"><path fill-rule="evenodd" fill="rgb(29, 36, 47)" d="M13.055,6.026 L10.301,8.770 C9.049,10.019 6.999,10.019 5.747,8.769 L5.197,8.220 C5.197,8.220 4.782,7.807 4.782,7.807 L6.027,6.567 C6.028,6.567 6.028,6.567 6.028,6.567 L6.993,7.530 C7.563,8.098 8.486,8.099 9.056,7.531 L11.810,4.786 C12.377,4.220 12.377,3.295 11.809,2.730 L11.259,2.183 C10.983,1.908 10.616,1.756 10.227,1.756 C9.837,1.756 9.471,1.908 9.196,2.182 L7.960,3.413 C7.616,3.756 7.059,3.756 6.715,3.413 C6.371,3.071 6.371,2.515 6.715,2.173 L7.882,1.010 C8.359,0.535 8.956,0.177 9.619,0.057 C10.699,-0.139 11.753,0.195 12.503,0.941 L13.053,1.488 C14.306,2.736 14.307,4.778 13.055,6.026 ZM8.785,5.747 C9.128,6.090 9.128,6.646 8.784,6.988 C8.440,7.330 7.883,7.330 7.539,6.988 L7.539,6.987 L6.988,6.438 C6.419,5.870 5.495,5.870 4.925,6.438 L2.171,9.182 C1.602,9.750 1.602,10.670 2.171,11.237 L2.722,11.786 C3.292,12.354 4.216,12.354 4.785,11.786 L5.606,10.968 C5.950,10.626 6.508,10.626 6.851,10.968 C7.195,11.310 7.195,11.866 6.851,12.208 L6.031,13.026 C4.773,14.279 2.734,14.279 1.477,13.026 L0.926,12.478 C-0.331,11.225 -0.331,9.195 0.926,7.942 L3.680,5.197 C4.937,3.944 6.976,3.944 8.233,5.197 L8.785,5.747 Z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="11" height="12"><path fill-rule="evenodd" fill="#1D242F" d="M9.564 4.82a.271.271 0 0 1-.235-.269v-.748c0-2.096-1.72-3.795-3.841-3.795-2.122 0-3.842 1.699-3.842 3.795v.748a.27.27 0 0 1-.234.269A1.634 1.634 0 0 0 0 6.431v3.95c0 .898.737 1.627 1.646 1.627h7.683c.909 0 1.646-.729 1.646-1.627v-3.95c0-.809-.601-1.495-1.411-1.611zm-5.975-.971c0-1.036.85-1.876 1.899-1.876s1.899.84 1.899 1.876v.841a.315.315 0 0 1-.317.313H3.906a.315.315 0 0 1-.317-.313v-.841z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12"><path fill-rule="evenodd" fill="#161B24" d="M10 0H2a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h5a1 1 0 0 0 .707-.293l4-4A.997.997 0 0 0 12 7V2a2 2 0 0 0-2-2zM2 2.5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v3.031a.5.5 0 0 1-.5.5H7.875C6.77 6.031 6 6.833 6 7.938V9.5a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-7z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path fill-rule="evenodd" fill="#C0D7E5" d="M15.818 13.929c.119.123.18.278.18.472 0 .107-.061.252-.18.432-.12.179-.272.359-.451.535-.18.176-.36.327-.536.45-.178.124-.319.186-.427.186a.62.62 0 0 1-.47-.191l-3.597-3.586a6.892 6.892 0 0 1-1.753.816 6.471 6.471 0 0 1-1.913.285 6.487 6.487 0 0 1-2.585-.518 6.793 6.793 0 0 1-2.127-1.435A6.653 6.653 0 0 1 .52 9.252a6.484 6.484 0 0 1-.521-2.586c0-.913.174-1.776.521-2.582a6.677 6.677 0 0 1 1.439-2.126A6.852 6.852 0 0 1 4.082.522a6.422 6.422 0 0 1 2.589-.525c.916 0 1.774.175 2.579.525a6.901 6.901 0 0 1 2.126 1.436 6.701 6.701 0 0 1 1.436 2.126 6.45 6.45 0 0 1 .521 2.582 6.54 6.54 0 0 1-.286 1.919 6.77 6.77 0 0 1-.815 1.748l3.586 3.596zM2.014 6.656c0 .647.122 1.25.369 1.808.246.555.575 1.04.991 1.452.413.412.901.739 1.46.982a4.458 4.458 0 0 0 1.785.362 4.41 4.41 0 0 0 1.778-.362 4.708 4.708 0 0 0 1.45
265-.982c.416-.412.745-.897.991-1.452a4.416 4.416 0 0 0 .369-1.808c0-.631-.122-1.224-.369-1.782a4.818 4.818 0 0 0-.991-1.467 4.597 4.597 0 0 0-1.455-.991 4.396 4.396 0 0 0-1.778-.365 4.586 4.586 0 0 0-3.245 1.356 4.818 4.818 0 0 0-.991 1.467 4.349 4.349 0 0 0-.369 1.782z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="12" height="14"><path fill-rule="evenodd" fill="#1D242F" d="M11.944 8.002c-.148.929-.648 1.424-1.065 1.642C10.057 12.59 7.478 14 6.005 14 4.376 14 1.93 12.371 1.13 9.646.711 9.429.208 8.934.06 8.002c-.147-.914-.065-1.995.827-2.3C.729 4.402.77.67 3.232.895c-.003 0 2.002-1.581 5.253-.54 3.251 1.042 2.539 5.249 2.622 5.29.575.285 1.056.986.837 2.357zm-1.643-1.505v.818c0 .559-.867.559-.867 0v-.872c-2.883.902-4.811-.558-5.488-1.321-.368.877-1.324 1.714-1.413 1.721v.472c0 .559-.866.559-.866 0v-.818c-.652.019-.669.719-.569 1.347.157.983.728.942.931.973l.051.327c.662 2.625 2.912 3.829 3.925 3.829 1.017 0 3.285-1.154 3.917-3.822l.08-.339c.177-.026.747.01.904-.968.107-.674.07-1.347-.605-1.347zM7.783 8.964a.783.783 0 0 1-.792-.773c0-.427.355-.774.792-.774.437 0 .791.347.791.774a.782.782 0 0 1-.791.773zm-3.551.032a.783.783 0 0 1-.792-.774c0-.427.354-.773.792-.773.436 0 .791.346.791.773a.783.783 0 0 1-.791.774z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12"><path fill-rule="evenodd" fill="#1D242F" d="M6 12A6 6 0 1 1 6 0a6 6 0 0 1 0 12zM6 1.714v8.572a4.286 4.286 0 0 0 0-8.572z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="12" height="16"><path fill-rule="evenodd" fill="#778FA9" d="M5.968-.002C2.64-.002-.003 2.742-.003 6.127c0 4.615 5.057 9.383 5.057 9.383.68.631 1.103.682 1.826 0 0 0 5.113-4.768 5.113-9.383 0-3.385-2.698-6.129-6.025-6.129zM6 8.638c-1.575 0-2.848-1.246-2.848-2.784 0-1.536 1.273-2.783 2.848-2.783 1.573 0 2.848 1.247 2.848 2.783 0 1.538-1.275 2.784-2.848 2.784z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="13" height="12" viewBox="0 0 13 12"><path fill-rule="evenodd" fill="#FFF" d="M13 2.408v8.932a.634.634 0 0 1-.298.536.698.698 0 0 1-.61.054l-3.886-1.648-3.074 1.634a.616.616 0 0 1-.298.081.651.651 0 0 1-.27-.054L.393 10.162A.64.64 0 0 1 0 9.573V.64A.655.655 0 0 1 .908.051l3.886 1.66L7.868.077A.41.41 0 0 1 8.084.01l.014-.013c.108-.013.23 0 .325.054l4.184 1.767a.65.65 0 0 1 .393.59zM7.992 7.296c0-.348-.244-.79-.434-.924-.203-.121-.625-.161-1.261-.228 0 0-.42-.254-.637-.254-.216 0-.487.147-.758.067-.284-.067-.162.04-.569.04-.338 0-.352-.134-.392-.429-.041-.294-.366-.375-.501-.482-.149-.12-.285-.08-.407.054-.121.134 0 .187-.433 0-.433-.188-.203-.536.366-.724.379-.12 1.151-.227 1.367.241.109.268.664-.08.434-.87-.109-.375-.406-.509-.65-.964L.988 1.617v4.219c.406.121 1.247.228 1.72.228.772 0 1.355.482 1.625.683 0 0-.46 1.527.556 1.687.406.067.487.456.487.456s.081.629.162.83c.082.187.19.562.583.12.447-.482.528-.643.69-.964.19-.361.49-.562.707-.723.379-.308.474-.549.474-.857zm3.989-4.46L9.56 1.925c-.406.
26175-.975.429-1.245.643-.759.63-.813 1.192.026 2.17.231.281.705.348 1.03.415.785.147 1.029.255.947 1.232-.027.268.136 1.138.244 1.38.027.067.539.348.81.361.108.014.365-.147.609-.415V2.836z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="8" height="2"><path fill-rule="evenodd" fill="#1B212A" d="M1 0h6a1 1 0 010 2H1a1 1 0 010-2z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="8" height="3"><path fill-rule="evenodd" fill="#27303D" d="M1.5 0h5a1.5 1.5 0 010 3h-5a1.5 1.5 0 010-3z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="7" height="2"><path fill-rule="evenodd" fill="#778FA9" d="M1 0h5a1 1 0 0 1 0 2H1a1 1 0 0 1 0-2z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="11" height="3"><path fill="#B7BEC7" d="M9.5 3a1.5 1.5 0 1 1 .001-3.001A1.5 1.5 0 0 1 9.5 3zm-4 0a1.5 1.5 0 1 1 .001-3.001A1.5 1.5 0 0 1 5.5 3zm-4 0a1.5 1.5 0 1 1 .001-3.001A1.5 1.5 0 0 1 1.5 3z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="17"><path fill-rule="evenodd" fill="#B7BEC7" d="M15.499 9.222l-1.926 1.924a.938.938 0 0 1-1.325-1.326l1.547-1.548a.374.374 0 0 0 0-.53l-1.547-1.548a.937.937 0 0 1 1.322-1.325l1.926 1.924c.668.671.669 1.756.003 2.429zm-6.288 6.284a1.72 1.72 0 0 1-2.429 0l-1.925-1.925a.938.938 0 0 1 1.326-1.326l1.548 1.548a.376.376 0 0 0 .531 0l1.548-1.548a.938.938 0 0 1 1.326 1.326l-1.925 1.925zM7.996 5.757a2.25 2.25 0 1 1 .001 4.5 2.25 2.25 0 0 1-.001-4.5zM9.81 3.758L8.262 2.21l-.001-.001a.375.375 0 0 0-.53.001L6.183 3.758a.939.939 0 0 1-1.326-1.324L6.782.508a1.723 1.723 0 0 1 2.429 0l1.925 1.924A.938.938 0 0 1 9.81 3.758zM3.745 9.82a.937.937 0 1 1-1.322 1.326L.497 9.222a1.724 1.724 0 0 1 0-2.429L2.42 4.869v-.001a.936.936 0 0 1 1.325.001l.002.001a.936.936 0 0 1-.002 1.324L2.2 7.742a.375.375 0 0 0 0 .53L3.745 9.82z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="14" height="12" viewBox="0 0 14 12"><path fill-rule="evenodd" fill="#1D242F" d="M1.632 11.997c-.844 0-1.629-.755-1.629-1.639V.89c0-.487.423-.889.933-.889h2.8a.95.95 0 0 1 .773.402l.656.603h5.891c.511 0 .934.285.934.772v1.216H4.582c-1.036 0-1.677.729-1.896 1.562-.131.458-1.327 4.825-1.429 5.241-.117.403.283.653.531.695.321.041.671-.125.788-.473.043-.152 1.312-4.759 1.429-5.217.087-.348.466-.778.991-.778h8.073c.292 0 .569.125.744.361.175.222.233.5.145.778l-1.764 5.962a.905.905 0 0 1-.7.611h-.029l-.146.042c-1.943.237-7.366.225-9.687.219z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10"><path fill-rule="evenodd" fill="#0F58DF" d="M7.989 8.02H1.98V1.973l1.095-.012c.456-.007.884-.534.884-.99V.959c0-.46-.436-.958-.896-.958H1.599C.716.001.001.716.001 1.599v6.802c0 .883.715 1.598 1.598 1.598h6.802c.883 0 1.598-.715 1.598-1.598V6.916c0-.46-.592-.927-1.052-.927-.46 0-.958.467-.958.927V8.02zM5.538.945l.878.879L4.312 3.99a1.18 1.18 0 0 0 1.667 1.666l2.166-2.135.841.841c.526.5 1.013.075 1.013-.254V.739a.737.737 0 0 0-.738-.738H5.892c-.329 0-.733.497-.354.944z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="11" height="12" viewBox="0 0 11 12"><path fill-rule="evenodd" fill="#99A2AC" d="M9.842 5H8.97V3.375C8.97 1.511 7.627 0 5.469 0S1.998 1.511 1.998 3.375V5h-.434C.925 5 0 5.448 0 6v5c0 .552.518 1 1.158 1h8.684c.64 0 1.158-.448 1.158-1V6c0-.552-.518-1-1.158-1Zm-2.788-.25c0 .138-.129.25-.289.25H4.267c-.16 0-.29-.112-.29-.25V3.375c0-.64.555-1.395 1.481-1.395.829 0 1.596.66 1.596 1.395V4.75Z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill-rule="evenodd" fill="#FFF" d="M11.119 5h-3.68a.447.447 0 0 1-.447-.446V.657a.23.23 0 0 1 .229-.229c2.531.003 4.124 1.82 4.127 4.343a.229.229 0 0 1-.229.229zm-2.456 6.067c-.97.984-2.39.933-3.381.933-2.908.012-5.276-2.33-5.288-5.23-.012-2.901 2.239-5.165 4.76-5.165a.25.25 0 0 1 .25.25l.016 5.25a.453.453 0 0 0 .104.25l3.539 3.359a.249.249 0 0 1 0 .353zm-1.496-4.81A.298.298 0 0 1 7.501 6h3.675a.22.22 0 0 1 .22.22c.003 1.223-.265 2.342-1.134 3.205a.22.22 0 0 1-.311 0L7.281 6.53a.298.298 0 0 1-.114-.273z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12"><path fill-rule="evenodd" fill="#FFF" d="M11.417 4.989H7.011V.583A.583.583 0 0 0 6.428 0h-.825a.583.583 0 0 0-.583.583v4.406H.583A.583.583 0 0 0 0 5.572v.856c0 .322.261.583.583.583H5.02v4.406c0 .322.261.583.583.583h.825a.583.583 0 0 0 .583-.583V7.011h4.406A.583.583 0 0 0 12 6.428v-.856a.583.583 0 0 0-.583-.583z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10"><path fill-rule="evenodd" fill="#85A0BD" d="M6.007 5.998l-.002 3.018c0 .52-.485.996-1.005.996h-.003c-.519 0-.997-.475-.996-.995l.002-3.018L.867 6c-.519.001-.87-.499-.869-1.019v-.003c0-.52.351-.966.87-.966l3.136-.002.001-3.067c.001-.52.478-.94.998-.941h.003c.52 0 1.004.42 1.004.94l-.002 3.067 3.138-.002c.519 0 .861.446.861.965v.004c0 .519-.343 1.02-.862 1.02l-3.138.002z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14"><path fill-rule="evenodd" fill="#161A23" d="M11.668 14H2.332A2.332 2.332 0 0 1 0 11.668V2.332A2.332 2.332 0 0 1 2.332 0h9.336A2.332 2.332 0 0 1 14 2.332v9.336A2.332 2.332 0 0 1 11.668 14zm-7.42-7.553C4.021 6.149 3.679 6 3.222 6H1.998v5.926h.769V9.744h.38c.462 0 .818-.162 1.068-.486.25-.325.375-.792.375-1.401 0-.579-.114-1.112-.342-1.41zM8.021 6h-.86v3.15c0 .215.005.515.015.899.01.385.016.608.02.669h-.015L5.873 6h-.866v5.926h.683V8.895c0-.41-.012-.862-.035-1.357l-.012-.259h.02l1.313 4.647h1.045V6zm3.977 2.763h-1.345v.818h.757v1.504c-.22.077-.427.115-.62.115-.383 0-.677-.185-.881-.556-.204-.371-.306-.913-.306-1.626 0-.678.113-1.213.34-1.604.226-.39.535-.586.925-.586.296 0 .593.109.89.327l.21-.794a1.89 1.89 0 0 0-1.085-.351c-.594 0-1.06.266-1.398.796-.338.531-.507 1.265-.507 2.204 0 .952.15 1.69.45 2.212.3.523.726.784 1.28.784.235 0 .453-.024.656-.072.202-.047.414-.129.634-.243V8.763zm-8.913.179h-.318v-2.05h.415c.272 0 .472.082.6.247.128.165.193.415.193.75 0 .362-.072.628-.215.798-.144.17-.369.255-.675.255z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="12" height="10"><path fill-rule="evenodd" fill="#FFF" d="M11.935 5.514a.818.818 0 0 1-.186.909l-1.715 1.666a.864.864 0 0 1-.606.244.867.867 0 0 1-.606-.244L7.108 6.423a.82.82 0 0 1-.186-.909A.858.858 0 0 1 7.714 5h.857c0-1.841-1.535-3.333-3.428-3.333-1.894 0-3.429 1.492-3.429 3.333 0 1.841 1.535 3.333 3.429 3.333.446 0 .869-.088 1.261-.239l1.292 1.242A5.223 5.223 0 0 1 5.143 10C2.303 10 0 7.761 0 5s2.303-5 5.143-5c2.839 0 5.143 2.239 5.
26143 5h.857c.346 0 .66.203.792.514z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="13" height="12"><path fill-rule="evenodd" fill="#1D242F" d="M1.5 11.826c-.728.764-1.106.764-1.339 0 .549-.233.549-.611 0-.844l1.056-1.056-.035-.014a.778.778 0 0 1-.492-.608c-.037.036.08-.538.309-.706.661-.051 1.798-1.357 1.798-4.027 0-2.931 1.979-4.24 3.678-4.24 1.064 0 2.234.295 2.962 1.375l1.54-1.54c.233.494.612.494.844 0 .719.233.719.611 0 .934L1.5 11.826Zm8.621-6.845c0 2.67 1.762 3.566 1.834 3.62.225.17.34.789.301.706-.039.268.084.498-.488.605-.067.028-1.372.543-3.519.75-.049.717-.933 1.243-1.776 1.243s-1.546-.526-1.775-1.243c-.3-.029-.422.216-.598.178l6.01-6.163c.004.102.011.198.011.304Z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="15px" height="14px"><path fill-rule="evenodd" fill="rgb(197, 213, 230)" d="M8.996,9.693 L7.181,7.484 C7.029,7.300 6.987,7.062 7.046,6.848 L7.052,6.827 L7.852,3.471 C8.037,2.814 9.017,2.978 8.982,3.656 L8.869,6.812 L9.972,9.096 C10.241,9.707 9.419,10.207 8.996,9.693 ZM7.979,14.000 C4.109,14.000 1.011,10.860 1.011,7.000 C1.011,6.150 1.107,5.337 1.388,4.584 L0.356,4.445 C-0.018,4.394 -0.134,3.908 0.180,3.696 C1.453,2.839 3.042,2.137 3.307,2.086 C3.469,2.056 3.634,2.123 3.727,2.260 C3.878,2.483 4.506,4.102 4.796,5.603 C4.869,5.975 4.441,6.236 4.142,6.009 L3.252,5.333 C3.065,5.855 2.957,6.414 2.957,7.000 C2.957,9.757 5.215,12.000 7.979,12.000 C10.743,12.000 12.993,9.757 12.993,7.000 C12.993,4.243 10.743,2.000 7.979,2.000 C6.999,2.000 6.087,2.287 5.314,2.774 L4.669,0.840 C5.657,0.309 6.781,0.000 7.979,0.000 C11.849,0.000 14.998,3.140 14.998,7.000 C14.998,10.860 11.849,14.000 7.979,14.000 Z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14"><path fill-rule="evenodd" fill="#1D242F" d="M11.725 14h-9.45A2.276 2.276 0 0 1 0 11.725v-9.45A2.276 2.276 0 0 1 2.275 0h8.65c.575 0 1.125.228 1.531.634l.91.91c.406.406.634.956.634 1.531v8.65A2.275 2.275 0 0 1 11.725 14zM11 2.2a.2.2 0 0 0-.2-.2H3.2a.2.2 0 0 0-.2.2v3.602c0 .109.089.198.198.198h7.604A.198.198 0 0 0 11 5.802V2.2zm0 5.998A.198.198 0 0 0 10.802 8H3.198L3 11.802c0 .109.089.198.198.198h7.604a.198.198 0 0 0 .198-.198V8.198zM9.805 5h-1.61A.195.195 0 0 1 8 4.805v-1.61C8 3.087 8.087 3 8.195 3h1.61c.108 0 .195.087.195.195v1.61A.195.195 0 0 1 9.805 5z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="15" height="16" viewBox="0 0 15 16"><path fill-rule="evenodd" fill="#0F58DF" d="M13.81 2.995H6.005c.112-.43.19-.569.19-1.034 0-.464-.078-.524-.19-.953h7.805c.737 0 1.19.265 1.19 1 0 .736-.453.987-1.19.987zm-11.808.999a1.996 1.996 0 1 1 1.997-1.995 1.996 1.996 0 0 1-1.997 1.995zm-.771 3.011H9.37c-.116.43-.196.569-.196 1.034 0 .465.08.524.196.954H1.231C.468 8.993 0 8.728 0 7.992c0-.736.468-.987 1.231-.987zm.771 4.999a1.996 1.996 0 1 1-1.997 1.995c0-1.102.894-1.995 1.997-1.995zm11.01-2.015a2 2 0 0 1 0-3.997 2 2 0 0 1 2.002 1.998 2 2 0 0 1-2.002 1.999zm.798 3.018c.737 0 1.19.266 1.19 1.001 0 .736-.453.987-1.19.987H6.005c.112-.43.19-.569.19-1.034 0-.465-.078-.524-.19-.954h7.805z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" viewBox="0 0 13 13"><path fill-rule="evenodd" fill="#1D242F" d="M10 13H3a3 3 0 01-3-3V3a3 3 0 013-3h1.966l.009 2H3a1 1 0 00-1 1v7a1 1 0 001 1h7a1 1 0 001-1V7.978l2 .024V10a3 3 0 01-3 3zm1.004-9.369L7.463 7.182a1.169 1.169 0 11-1.645-1.661l3.61-3.527L7 2V0s2.186.023 3.906.023c1.161 0 2.087.846 2.087 2.011C12.993 3.686 13 6 13 6h-2l.004-2.369z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="11" height="11" viewB
26ox="0 0 11 11"><path fill-rule="evenodd" fill="#FFF" d="M10.707 7.86c-.068-.052-1.713-1.289-1.713-3.53C8.994.699 7.113 0 5.499 0S2.4.696 2.4 4.29C2.4 6.567.359 7.808.295 7.856c.475.304.035.415-.195.671.27.256.114.773.369.579.063.026 1.302.515 3.341.712.47.682.887 1.181 1.688 1.181.801 0 1.47-.499 1.687-1.181 2.041-.196 3.281-.686 3.345-.712.252.294.427-.322.464-.576.316-.254-.073-.32-.287-.67Z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="10" height="14"><path fill-rule="evenodd" fill="#1D242F" d="M9.136 8.003H.865c-.481 0-.871-.529-.871-.99 0-.46.39-1.013.871-1.013h8.271c.481 0 .871.553.871 1.013 0 .461-.39.99-.871.99zM7.309 3.009H6.178a.17.17 0 0 0-.174.166v.993c0 .461-.531.834-1.012.834s-1.003-.373-1.003-.834v-.992a.171.171 0 0 0-.175-.167H2.699a.711.711 0 0 1-.494-.196.647.647 0 0 1 .001-.943L4.508.182a.717.717 0 0 1 .985 0l2.309 1.689a.65.65 0 0 1 .204.471c0 .368-.312.667-.697.667zm-4.61 7.992h1.123a.17.17 0 0 0 .174-.166V9.834c0-.46.523-.833 1.004-.833h.001c.481 0 1.003.374 1.003.834v1a.17.17 0 0 0 .174.167h1.124c.184 0 .36.07.491.195.272.26.273.682.001.943l-2.301 1.665a.72.72 0 0 1-.985 0L2.206 12.14a.655.655 0 0 1-.204-.471c0-.369.312-.667.697-.668z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="7" height="4"><path fill-rule="evenodd" fill="#778FA9" d="M6.422.005l.414.378a.42.42 0 0 1 0 .631L3.846 3.87a.512.512 0 0 1-.358.13.513.513 0 0 1-.358-.13L.14 1.014a.42.42 0 0 1 0-.631L.554.005c2.097-.003 4.09-.013 5.868 0z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="15" height="14"><path fill-rule="evenodd" d="M7.548.405l1.399 4.496h4.525c.541 0 .766.724.328 1.057l-3.661 2.778 1.399 4.496c.167.538-.422.985-.86.653l-3.661-2.779-3.661 2.779c-.438.332-1.028-.115-.86-.653l1.398-4.496L.233 5.958C-.205 5.625.02 4.901.562 4.901h4.525L6.485.405a.552.552 0 0 1 1.063 0z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12"><path fill-rule="evenodd" fill="#282f3e" d="M10.15-.001H1.851A1.85 1.85 0 0 0 .002 1.848v8.303A1.85 1.85 0 0 0 1.851 12h8.299a1.85 1.85 0 0 0 1.849-1.849V1.848A1.85 1.85 0 0 0 10.15-.001zM2.952 9.963a1.026 1.026 0 1 1 0-2.053 1.026 1.026 0 0 1 0 2.053zm2.651.046a3.626 3.626 0 0 0-3.621-3.61l-.063.002V4.996l.063-.001a5.03 5.03 0 0 1 5.024 5.014H5.603zm2.657 0a6.304 6.304 0 0 0-6.296-6.268h-.045V2.338l.045-.001c4.236 0 7.683 3.439 7.7 7.672H8.26z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12"><path fill-rule="evenodd" fill="#FFF" d="M2 0h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2zm1 2h1v2H2V3a1 1 0 0 1 1-1zm2 0h4a1 1 0 0 1 1 1v1H5V2zM2 5h2v2H2V5zm3 0h5v2H5V5zM2 8h2v2H3a1 1 0 0 1-1-1V8zm3 0h5v1a1 1 0 0 1-1 1H5V8z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="12" height="11" viewB
26ox="0 0 12 11"><path fill-rule="evenodd" fill="#99A2AC" d="M8.5 5a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5Zm-5 0a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5Zm-.188.901c1.743 0 3.187 2.671 3.303 4.822a.297.297 0 0 1-.055.193.196.196 0 0 1-.151.081H.215a.196.196 0 0 1-.151-.081.294.294 0 0 1-.055-.192c.116-2.151 1.56-4.823 3.303-4.823Zm5.38 0c1.743-.001 3.189 2.671 3.305 4.822a.297.297 0 0 1-.055.193.197.197 0 0 1-.151.081H7.652c-.11-.001-.201-.108-.207-.244-.036-.973-.298-2.913-.753-3.708-.066-.114-.045-.272.046-.354.566-.515 1.251-.791 1.954-.79Z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="14" height="13"><path fill="#1D242F" d="M8.401 9.001L6.709 6.949a.651.651 0 0 1-.126-.59l.006-.02.746-3.116c.172-.61 1.086-.458 1.053.172l-.105 2.93 1.028 2.121c.251.568-.516 1.032-.91.555zM7.453 13A6.489 6.489 0 0 1 .957 6.5c0-.789.089-1.544.351-2.243l-.962-.13a.381.381 0 0 1-.164-.695c1.186-.796 2.668-1.447 2.915-1.495a.387.387 0 0 1 .391.161c.142.208.726 1.711.998 3.105.067.345-.332.587-.611.377l-.83-.628A4.565 4.565 0 0 0 2.771 6.5c0 2.56 2.105 4.643 4.682 4.643 2.577 0 4.674-2.083 4.674-4.643 0-2.56-2.097-4.643-4.674-4.643-.914 0-1.764.267-2.485.719L4.367.78A6.518 6.518 0 0 1 7.453 0c3.609 0 6.544 2.916 6.544 6.5S11.062 13 7.453 13z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="11" height="13"><path fill-rule="evenodd" fill="#161B24" d="M10.768 3.769L.368 5.007c-.206.024-.321-.075-.341-.212-.109-.728.144-1.541.929-1.631l1.725-.205c-.089-.701-.106-.775-.106-.923 0-.767.592-1.428 1.4-1.525C6.172.25 6.128.248 6.286.248c.796 0 1.481.57 1.582 1.35l.093.732c1.784-.212 1.753
26-.214 1.863-.214.483-.003 1.011.325 1.175 1.375a.257.257 0 0 1-.231.278zm-3.9-2.046a.393.393 0 0 0-.394-.337c-.038 0-2.359.265-2.4.27a.39.39 0 0 0-.35.38c0 .04.092.742.097.782.937-.112 2.205-.251 3.141-.362l-.094-.733zM8.98 12.221a.86.86 0 0 1-.87.778h-.001l-5.216-.003a.863.863 0 0 1-.87-.78C2.016 12.131.996 6.085 1 6h9c.006.093-1.012 6.128-1.02 6.221z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="64" height="61" viewBox="0 0 64 61"><path fill-rule="evenodd" fill="#B4CEE0" d="M63.186 54.1L35.748 2.276A4.254 4.254 0 0 0 31.997 0a4.26 4.26 0 0 0-3.755 2.276L.527 54.592C-1.006 57.477 1.045 61 4.28 61h55.456c2.358 0 4.267-1.942 4.267-4.342 0-.953-.304-1.841-.817-2.558zm-31.189 1.003c-2.669 0-4.83-2.198-4.83-4.915 0-2.715 2.161-4.917 4.83-4.917s4.83 2.202 4.83 4.917c0 2.717-2.161 4.915-4.83 4.915zm2.759-18.044c-.637 3.425-4.866 3.469-5.522 0-1.038-5.712-1.546-11.867-2.071-16.969-.117-1.157.817-2.455 2.034-2.712 2.208-.443 3.475-.443 5.696 0 1.213.257 2.055 1.555 1.943 2.712-.526 5.102-1.042 11.257-2.08 16.969z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="13" height="13"><path fill-rule="evenodd" fill="#1D242F" d="M7.707.799A1.415 1.415 0 0 0 5.766.184a1.464 1.464 0 0 0-.597.615L.16 10.625c-.231.454-.213 1 .047 1.436.262.435.724.7 1.222.701h10.019a1.43 1.43 0 0 0 1.221-.7c.261-.437.278-.983.047-1.437L7.707.799ZM5.695 4.602c0-.422.332-.765.743-.765.41 0 .743.343.743.765v3.06a.754.754 0 0 1-.743.765.754.754 0 0 1-.743-.765v-3.06Zm.743 6.375c-.547 0-.991-.457-.991-1.02s.444-1.02.991-1.02c.547 0 .991.457.991 1.02s-.444 1.02-.991 1.02Z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="15" height="13"><path fill-rule="evenodd" fill="#1D242F" d="M14 10h-2v2a1 1 0 0 1-2 0v-2H8a1 1 0 0 1 0-2h2V6a1 1 0 0 1 2 0v2h2a1 1 0 0 1 0 2zm-3-8H1a1 1 0 0 1 0-2h10a1 1 0 0 1 0 2zM1 4h6a1 1 0 0 1 0 2H1a1 1 0 0 1 0-2zm0 4h3a1 1 0 0 1 0 2H1a1 1 0 0 1 0-2z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill-rule="evenodd" fill="red" d="M11.1 12.001H.9c-.497 0-.9-.425-.9-.948V.947C0 .424.497 0 .994 0s.994.424.994.947v9.034H11.1c.497 0 .9.455.9.979 0 .523-.403 1.041-.9 1.041zm-2.517-5.54H6.252l-.46 1.541H3.99L6.385.988h2.223l2.4 7.014h-1.98l-.445-1.541zM7.474 2.567H7.38l-.782 2.611h1.643l-.767-2.611z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 14 14"><path fill-rule="evenodd" fill="#161A23" d="M11.668 14H2.332A2.332 2.332 0 0 1 0 11.668V2.332A2.332 2.332 0 0 1 2.332 0h9.336A2.332 2.332 0 0 1 14 2.332v9.336A2.332 2.332 0 0 1 11.668 14zM5.303 6.537a.37.37 0 0 0-.174-.494.408.408 0 0 0-.539.156l-.775 1.477a.162.162 0 0 1-.285 0l-.776-1.477a.409.409 0 0 0-.519-.166.371.371 0 0 0-.193.504l1.15 2.189a.148.148 0 0 1 0 .136l-1.15 2.19h-.001a.37.37 0 0 0 .179.508c.055.026.116.04.178.04a.4.4 0 0 0 .356-.21l.776-1.477a.164.164 0 0 1 .285 0l.775 1.477c.068.129.206.21.357.21a.416.416 0 0 0 .177-.04l.001-.001a.37.37 0 0 0 .178-.507l-1.147-2.19a.148.148 0 0 1 0-.136l1.147-2.189zm2.909 4.353h-.849a.546.546 0 0 1-.557-.531V6.416a.388.388 0 0 0-.398-.379.39.39 0 0 0-.399.379v3.943c.002.711.607 1.287 1.354 1.288h.849v.001c.22 0 .398-.17.398-.379a.388.388 0 0 0-.398-.379zm2.319-4.08h1.315a.38.38 0 0 0 .383-.379.38.38 0 0 0-.383-.379h-1.315a1.521 1.521 0 0 0-1.363.834 1.497 1.497 0 0 0 .683 2.017l1.195.592a.745.745 0 0 1 .417.666.75.75 0 0 1-.753.746H9.395a.38.38 0 0 0-.383.379.38.38 0 0 0 .383.379h1.315a1.52 1.52 0 0 0 1.365-.836 1.496 1.496 0 0 0-.686-2.015l-1.195-.592a.747.747 0 0 1-.416-.666.75.75 0 0 1 .753-.746z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="10px" height="10px"><path fill-rule="evenodd" fill="rgb(119, 143, 169)" d="M9.000,6.000 L6.000,6.000 L6.000,9.000 C6.000,9.552 5.552,10.000 5.000,10.000 C4.448,10.000 4.000,9.552 4.000,9.000 L4.000,6.000 L1.000,6.000 C0.448,6.000 -0.000,5.552 -0.000,5.000 C-0.000,4.448 0.448,4.000 1.000,4.000 L4.000,4.000 L4.000,1.000 C4.000,0.448 4.448,-0.000 5.000,-0.000 C5.552,-0.
26000 6.000,0.448 6.000,1.000 L6.000,4.000 L9.000,4.000 C9.552,4.000 10.000,4.448 10.000,5.000 C10.000,5.552 9.552,6.000 9.000,6.000 Z"></path></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="9px" height="2px"><path fill-rule="evenodd" fill="rgb(119, 143, 169)" d="M1.000,0.000 L8.000,0.000 C8.552,0.000 9.000,0.448 9.000,1.000 C9.000,1.552 8.552,2.000 8.000,2.000 L1.000,2.000 C0.448,2.000 -0.000,1.552 -0.000,1.000 C-0.000,0.448 0.448,0.000 1.000,0.000 Z"></path></svg>'},,,,,,function(t,e,n){var r=n(513),i=n(296).f,o=n(325),s=n(171),a=n(1611),c=n(107)("toStringTag");t.exports=function(t,e,n,l){if(t){var u=n?t:t.prototype;s(u,c)||i(u,c,{configurable:!0,value:e}),l&&!r&&o(u,"toString",a)}}},,,,function(t,e,n){"use strict";var r=n(1192);n.d(e,"b",(function(){return r.a}));var i=n(1193);n.d(e,"a",(function(){return i.a}));var o=n(68);n.d(e,"d",(function(){return o.c})),n.d(e,"c",(function(){return o.a})),n.d(e,"e",(function(){return o.f}))},,,,,,,,function(t,e,n){var r=n(899);t.exports=r},function(t,e,n){var r=n(900);t.exports=r},function(t,e,n){var r=n(901);t.exports=r},function(t,e,n){var r=n(162),i=n(902),o=String.prototype;t.exports=function(t){var e=t.trim;return"string"==typeof t||t===o||r(o,t)&&e===o.trim?i:e}},function(t,e,n){n(903);var r=n(210);t.exports=r("String").trim},function(t,e,n){"use strict";var r=n(129),i=n(712).trim;r({target:"String",proto:!0,forced:n(904)("trim")},{trim:function(){return i(this)}})},function(t,e,n){var r=n(658).PROPER,i=n(89),o=n(514);t.exports=function(t){return i((function(){return!!o[t]()||"âÂ
á "!=="âÂ
á "[t]()||r&&o[t].name!==t}))}},function(t,e,n){"use strict";t.exports=function(t){return encodeURIComponent(t).replace(/[!'()*]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}))}},function(t,e,n){var r=n(907);t.exports=r},function(t,e,n){var r=n(908);t.exports=r},function(t,e,n){var r=n(909);t.exports=r},function(t,e,n){var r=n(162),i=n(910),o=Array.prototype;t.exports=function(t){var e=t.map;return t===o||r(o,t)&&e===o.map?i:e}},function(t,e,n){n(911);var r=n(210);t.exports=r("Array").map},function(t,e,n){"use strict";var r=n(129),i=n(643).map;r({target:"Array",proto:!0,forced:!n(505)("map")},{map:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(26),i=n(316),o=n(536),s=n(154),a=n(107)("species"),c=r.Array;t.exports=function(t){var e;return i(t)&&(e=t.constructor,(o(e)&&(e===c||i(e.prototype))||s(e)&&null===(e=e[a]))&&(e=void 0)),void 0===e?c:e}},function(t,e,n){var r=n(914);t.exports=r},function(t,e,n){var r=n(915);t.exports=r},function(t,e,n){var r=n(916);t.exports=r},function(t,e,n){var r=n(162),i=n(917),o=Array.prototype;t.exports=function(t){var e=t.slice;return t===o||r(o,t)&&e===o.slice?i:e}},function(t,e,n){n(918);var r=n(210);t.exports=r("Array").slice},function(t,e,n){"use strict";var r=n(129),i=n(26),o=n(316),s=n(536),a=n(154),c=n(495),l=n(271),u=n(281),h=n(508),f=n(107),d=n(505),p=n(666),g=d("slice"),m=f("species"),y=i.Array,_=Math.max;r({target:"Array",proto:!0,forced:!g},{slice:function(t,e){var n,r,i,f=u(this),d=l(f),g=c(t,d),v=c(void 0===e?d:e,d);if(o(f)&&(n=f.constructor,(s(n)&&(n===y||o(n.prototype))||a(n)&&null===(n=n[m]))&&(n=void 0),n===y||void 0===n))return p(f,g,v);for(r=new(void 0===n?y:n)(_(v-g,0)),i=0;g<v;g++,i++)g in f&&h(r,i,f[g]);return r.length=i,r}})},,function(t,e,n){"use strict";n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return s}));var r=n(6);function i(t){return t.function===r.v.LOCALDATA}function o(t){return t.function===r.v.HEATMAP}function s(t){return t.function===r.v.LISTING_CHANGE}},,,,,,,,,,function(t,e,n){var r=n(57),i=n(72),o=r.document,s=i(o)&&i(o.createElement);t.exports=function(t){return s?o.createElement(t):{}}},function(t,e,n){var r=n(57),i=n(184);t.exports=function(t,e){try{i(r,t,e)}catch(n){r[t]=e}return e}},function(t,e,n){var r=n(402),i=n(453),o=n(934),s=n(73);t.exports=r("Reflect","ownKeys")||function(t){var e=i.f(s(t)),n=o.f;return n?e.concat(n(t)):e}},function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleStr
26ing","toString","valueOf"]},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(81),i=n(110),o=n(73),s=n(583);t.exports=r?Object.defineProperties:function(t,e){o(t);for(var n,r=s(e),a=r.length,c=0;a>c;)i.f(t,n=r[c++],e[n]);return t}},function(t,e,n){var r=n(82),i=n(587),o=r("iterator"),s=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||s[o]===t)}},function(t,e,n){var r=n(36);t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},function(t,e,n){"use strict";var r=n(114),i=n(403),o=n(87);t.exports=function(t){for(var e=r(this),n=o(e.length),s=arguments.length,a=i(s>1?arguments[1]:void 0,n),c=s>2?arguments[2]:void 0,l=void 0===c?n:i(c,n);l>a;)e[a++]=t;return e}},function(t,e,n){"use strict";var r=n(12),i=n(940),o=n(319),s=n(516),a=n(318),c=n(184),l=n(212),u=n(82),h=n(401),f=n(587),d=n(1165),p=d.IteratorPrototype,g=d.BUGGY_SAFARI_ITERATORS,m=u("iterator"),y=function(){return this};t.exports=function(t,e,n,u,d,_,v){i(n,e,u);var b,x,w,E=function(t){if(t===d&&T)return T;if(!g&&t in A)return A[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},S=e+" Iterator",C=!1,A=t.prototype,I=A[m]||A["@@iterator"]||d&&A[d],T=!g&&I||E(d),M="Array"==e&&A.entries||I;if(M&&(b=o(M.call(new t)),p!==Object.prototype&&b.next&&(h||o(b)===p||(s?s(b,p):"function"!=typeof b[m]&&c(b,m,y)),a(b,S,!0,!0),h&&(f[S]=y))),"values"==d&&I&&"values"!==I.name&&(C=!0,T=function(){return I.call(this)}),h&&!v||A[m]===T||c(A,m,T),f[e]=T,d)if(x={values:E("values"),keys:_?T:E("keys"),entries:E("entries")},v)for(w in x)(g||C||!(w in A))&&l(A,w,x[w]);else r({target:e,proto:!0,forced:g||C},x);return x}},function(t,e,n){"use strict";var r=n(1165).IteratorPrototype,i=n(404),o=n(452),s=n(318),a=n(587),c=function(){return this};t.exports=function(t,e,n){var l=e+" Iterator";return t.prototype=i(r,{next:o(1,n)}),s(t,l,!1,!0),a[l]=c,t}},function(t,e,n){var r=n(942);t.exports=function(t){if(r(t))throw TypeError("The method doesn't accept regular expressions");return t}},function(t,e,n){var r=n(72),i=n(283),o=n(82)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==i(t))}},function(t,e,n){var r=n(82)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,"/./"[t](e)}catch(t){}}return!1}},function(t,e,n){var r=n(87),i=n(945),o=n(196),s=Math.ceil,a=function(t){return function(e,n,a){var c,l,u=String(o(e)),h=u.length,f=void 0===a?" ":String(a),d=r(n);return d<=h||""==f?u:(c=d-h,(l=i.call(f,s(c/f.length))).length>c&&(l=l.slice(0,c)),t?u+l:l+u)}};t.exports={start:a(!1),end:a(!0)}},function(t,e,n){"use strict";var r=n(255),i=n(196);t.exports="".repeat||function(t){var e=String(i(this)),n="",o=r(t);if(o<0||o==1/0)throw RangeError("Wrong number of repetitions");for(;o>0;(o>>>=1)&&(e+=e))1&o&&(n+=e);return n}},function(t,e,n){var r=n(36),i=n(687);t.exports=function(t){return r((function(){return!!i[t]()||"âÂ
á "!="âÂ
á "[t]()||i[t].name!==t}))}},function(t,e,n){var r=n(72),i=n(516);t.exports=function(t,e,n){var o,s;return i&&"function"==typeof(o=e.constructor)&&o!==n&&r(s=o.prototype)&&s!==n.prototype&&i(t,s),t}},function(t,e){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,e,n){var r,i,o,s=n(57),a=n(36),c=n(283),l=n(405),u=n(1151),h=n(930),f=s.location,d=s.setImmediate,p=s.clearImmediate,g=s.process,m=s.MessageChannel,y=s.Dispatch,_=0,v={},b=function(t){if(v.hasOwnProperty(t)){var e=v[t];delete v[t],e()}},x=function(t){return function(){b(t)}},w=function(t){b(t.data)},E=function(t){s.postMessage(t+"",f.protocol+"//"+f.host)};d&&p||(d=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return v[++_]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},r(_),_},p=function(t){delete v[t]},"process"==c(g)?r=function(t){g.nextTick(x(t))}:y&&y.now?r=function(t){y.now(x(t))}:m?(o=(i=new m).port2,i.port1.onmessage=w,r=l(o.postMessage,o,1)):!s.addEventListener||"function"!=typeof postMessage||s.importScripts||a(E)?r="onreadystatechange"in h("script")?function(t){u.appendChild(h("script")).onreadystatechange=function(){u.removeChild(this),b(t)}}:function(t){setTimeout(x(t),0)}:(r=E,s.addEventListener("message",w,!1))),t.exports={set:d,clear:p}},function(t,e,n){var r=n(57),i=n(36),o=n(678),s=n(77).NATIVE_ARRAY_BUFFER_VIEWS,a=r.ArrayBuffer,c=r.Int8Array;t.exports=!s||!i((function(){c(1)}))||!i((function(){new c(-1)}))||!o((function(t){new c,new c(null),new c(1.5),new c(t)}),!0)||i((function(){return 1!==new c(new a(2),1,void 0).length}))},function(t,e,n){var r=n(952);t.exports=r},function(t,e,n){var r=n(953);t.exports=r},function(t,e,n){var r=n(954);t.exports=r},function(t,e,n){n(955);var r=n(231);t.exports=r.Array.isArray},function(t,e,n){n(129)({target:"Array",stat:!0},{isArray:n(316)})},function(t,e,n){var r=n(957);t.exports=r},function(t,e,n){var r=n(958);t.exports=r},function(t,e,n){var r=n(959);t.exports=r},function(t,e,n){var r=n(162),i=n(960),o=Array.prototype;
26t.exports=function(t){var e=t.reverse;return t===o||r(o,t)&&e===o.reverse?i:e}},function(t,e,n){n(961);var r=n(210);t.exports=r("Array").reverse},function(t,e,n){"use strict";var r=n(129),i=n(56),o=n(316),s=i([].reverse),a=[1,2];r({target:"Array",proto:!0,forced:String(a)===String(a.reverse())},{reverse:function(){return o(this)&&(this.length=this.length),s(this)}})},function(t,e,n){var r=n(963);t.exports=r},function(t,e,n){var r=n(964);t.exports=r},function(t,e,n){var r=n(965);t.exports=r},function(t,e,n){var r=n(162),i=n(966),o=Array.prototype;t.exports=function(t){var e=t.sort;return t===o||r(o,t)&&e===o.sort?i:e}},function(t,e,n){n(967);var r=n(210);t.exports=r("Array").sort},function(t,e,n){"use strict";var r=n(129),i=n(56),o=n(294),s=n(307),a=n(271),c=n(335),l=n(89),u=n(968),h=n(667),f=n(969),d=n(970),p=n(372),g=n(971),m=[],y=i(m.sort),_=i(m.push),v=l((function(){m.sort(void 0)})),b=l((function(){m.sort(null)})),x=h("sort"),w=!l((function(){if(p)return p<70;if(!(f&&f>3)){if(d)return!0;if(g)return g<603;var t,e,n,r,i="";for(t=65;t<76;
26t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)m.push({k:e+r,v:n})}for(m.sort((function(t,e){return e.v-t.v})),r=0;r<m.length;r++)e=m[r].k.charAt(0),i.charAt(i.length-1)!==e&&(i+=e);return"DGBEFHACIJK"!==i}}));r({target:"Array",proto:!0,forced:v||!b||!x||!w},{sort:function(t){void 0!==t&&o(t);var e=s(this);if(w)return void 0===t?y(e):y(e,t);var n,r,i=[],l=a(e);for(r=0;r<l;r++)r in e&&_(i,e[r]);for(u(i,function(t){return function(e,n){return void 0===n?-1:void 0===e?1:void 0!==t?+t(e,n)||0:c(e)>c(n)?1:-1}}(t)),n=i.length,r=0;r<n;)e[r]=i[r++];for(;r<l;)delete e[r++];return e}})},function(t,e,n){var r=n(776),i=Math.floor,o=function(t,e){var n=t.length,c=i(n/2);return n<8?s(t,e):a(t,o(r(t,0,c),e),o(r(t,c),e),e)},s=function(t,e){for(var n,r,i=t.length,o=1;o<i;){for(r=o,n=t[o];r&&e(t[r-1],n)>0;)t[r]=t[--r];r!==o++&&(t[r]=n)}return t},a=function(t,e,n,r){for(var i=e.length,o=n.length,s=0,a=0;s<i||a<o;)t[s+a]=s<i&&a<o?r(e[s],n[a])<=0?e[s++]:n[a++]:s<i?e[s++]:n[a++];return t};t.exports=o},function(t,e,n){var r=n(288).match(/firefox\/(\d+)/i);t.exports=!!r&&+r[1]},function(t,e,n){var r=n(288);t.exports=/MSIE|Trident/.test(r)},function(t,e,n){var r=n(288).match(/AppleWebKit\/(\d+)\./);t.exports=!!r&&+r[1]},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(457);async function i(t){const e=[];for await(const n of t)e.push(n);return Object(r.b)(...e)}},function(t,e,n){"use strict";n.d(e,"b",(function(){return s})),n.d(e,"a",(function(){return a}));var r=n(411),i=n(525);const o=globalThis;function s(){return void 0!==o.orientation}function a(t){if(!t&&!Object(r.a)())return"Node";if(Object(i.a)(t))return"Electron";const e="undefined"!=typeof navigator?navigator:{},n=t||e.userAgent||"";if(n.indexOf("Edge")>-1)return"Edge";const s=-1!==n.indexOf("MSIE "),a=-1!==n.indexOf("Trident/");return s||a?"IE":o.chrome?"Chrome":o.safari?"Safari":o.mozInnerScreenX?"Firefox":"Unknown"}},function(t,e,n){var r,i,o,s=n(1607),a=n(26),c=n(56),l=n(154),u=n(325),h=n(171),f=n(448),d=n(720),p=n(721),g=a.TypeError,m=a.WeakMap;if(s||f.state){var y=f.state||(f.state=new m),_=c(y.get),v=c(y.has),b=c(y.set);r=function(t,e){if(v(y,t))throw new g("Object already initialized");return e.facade=t,b(y,t,e),e},i=function(t){return _(y,t)||{}},o=function(t){return v(y,t)}}else{var x=d("state");p[x]=!0,r=function(t,e){if(h(t,x))throw new g("Object already initialized");return e.facade=t,u(t,x,e),e},i=function(t){return h(t,x)?t[x]:{}},o=function(t){return h(t,x)}}t.exports={set:r,get:i,has:o,enforce:function(t){return o(t)?i(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!l(e)||(n=i(e)).type!==t)throw g("Incompatible receiver, "+t+" required");return n}}}},function(t,e,n){var r,i=n(303),o=n(1609),s=n(1019),a=n(721),c=n(1246),l=n(570),u=n(720),h=u("IE_PROTO"),f=function(){},d=function(t){return"<script>"+t+"<\/script>"},p=function(t){t.write(d("")),t.close();var e=t.parentWindow.Object;return t=null,e},g=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}var t,e;g="undefined"!=typeof document?document.domain&&r?p(r):((e=l("iframe")).style.display="none",c.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(d("document.F=Object")),t.close(),t.F):p(r);for(var n=s.length;n--;)delete g.prototype[s[n]];return g()};a[h]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(f.prototype=i(t),n=new f,f.prototype=null,n[h]=t):n=g(),void 0===e?n:o(n,e)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return v})),n.d(e,"b",(function(){return b}));var r=n(529);function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
26(t,"string");return"symbol"==i(e)?e:e+""}function s(t,e,n){return(e=o(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class a{terminate(){}}var c=n(256);const l=new Map;function u(t){Object(c.a)(t.source&&!t.url||!t.source&&t.url);let e=l.get(t.source||t.url);return e||(t.url&&(e=function(t){if(!t.startsWith("http"))return t;return h((e=t,"try {\n importScripts('".concat(e,"');\n} catch (error) {\n console.error(error);\n throw error;\n}")));var e}(t.url),l.set(t.url,e)),t.source&&(e=h(t.source),l.set(t.source,e))),Object(c.a)(e),e}function h(t){const e=new Blob([t],{type:"application/javascript"});return URL.createObjectURL(e)}function f(t){return!!t&&(t instanceof ArrayBuffer||("undefined"!=typeof MessagePort&&t instanceof MessagePort||("undefined"!=typeof ImageBitmap&&t instanceof ImageBitmap||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas)))}const d=()=>{};class p{static isSupported(){return"undefined"!=typeof Worker&&r.a||void 0!==a&&!r.a}constructor(t){s(this,"name",void 0),s(this,"source",void 0),s(this,"url",void 0),s(this,"terminated",!1),s(this,"worker",void 0),s(this,"onMessage",void 0),s(this,"onError",void 0),s(this,"_loadableURL","");const{name:e,source:n,url:i}=t;Object(c.a)(n||i),this.name=e,this.source=n,this.url=i,this.onMessage=d,this.onError=t=>console.log(t),this.worker=r.a?this._createBrowserWorker():this._createNodeWorker()}destroy(){this.onMessage=d,this.onError=d,this.worker.terminate(),this.terminated=!0}get isRunning(){return Boolean(this.onMessage)}postMessage(t,e){e=e||function t(e){let n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2?arguments[2]:void 0;const i=r||new Set;if(e){if(f(e))i.add(e);else if(f(e.buffer))i.add(e.buffer);else if(ArrayBuffer.isView(e));else if(n&&"object"==typeof e)for(const r in e)t(e[r],n,i)}else;return void 0===r?Array.from(i):[]}(t),this.worker.postMessage(t,e)}_getErrorFromErrorEvent(t){let e="Failed to load ";return e+="worker ".concat(this.name," from ").concat(this.url,". "),t.message&&(e+="".concat(t.message," in ")),t.lineno&&(e+=":".concat(t.lineno,":").concat(t.colno)),new Error(e)}_createBrowserWorker(){this._loadableURL=u({source:this.source,url:this.url});const t=new Worker(this._loadableURL,{name:this.name});return t.onmessage=t=>{t.data?this.onMessage(t.data):this.onError(new Error("No data received"))},t.onerror=t=>{this.onError(this._getErrorFromErrorEvent(t)),this.terminated=!0},t.onmessageerror=t=>console.error(t),t}_createNodeWorker(){let t;if(this.url){const e=this.url.includes(":/")||this.url.startsWith("/")?this.url:"./".concat(this.url);t=new a(e,{eval:!1})}else{if(!this.source)throw new Error("no worker");t=new a(this.source,{eval:!0})}return t.on("message",t=>{this.onMessage(t)}),t.on("error",t=>{this.onError(t)}),t.on("exit",t=>{}),t}}class g{constructor(t,e){s(this,"name",void 0),s(this,"workerThread",void 0),s(this,"isRunning",!0),s(this,"result",void 0),s(this,"_resolve",()=>{}),s(this,"_reject",()=>{}),this.name=t,this.workerThread=e,this.result=new Promise((t,e)=>{this._resolve=t,this._reject=e})}postMessage(t,e){this.workerThread.postMessage({source:"loaders.gl",type:t,payload:e})}done(t){Object(c.a)(this.isRunning),this.isRunning=!1,this._resolve(t)}error(t){Object(c.a)(this.isRunning),this.isRunning=!1,this._reject(t)}}class m{static isSupported(){return p.isSupported()}constructor(t){s(this,"name","unnamed"),s(this,"source",void 0),s(this,"url",void 0),s(this,"maxConcurrency",1),s(this,"maxMobileConcurrency",1),s(this,"onDebug",()=>{}),s(this,"reuseWorkers",!0),s(this,"props",{}),s(this,"jobQueue",[]),s(this,"idleQueue",[]),s(this,"count",0),s(this,"isDestroyed",!1),this.source=t.source,this.url=t.url,this.setProps(t)}destroy(){this.idleQueue.forEach(t=>t.destroy()),this.isDestroyed=!0}setProps(t){this.props={...this.props,...t},void 0!==t.name&&(this.name=t.name),void 0!==t.maxConcurrency&&(this.maxConcurrency=t.maxConcurrency),void 0!==t.maxMobileConcurrency&&(this.maxMobileConcurrency=t.maxMobileConcurrency),void 0!==t.reuseWorkers&&(this.reuseWorkers=t.reuseWorkers),void 0!==t.onDebug&&(this.onDebug=t.onDebug)}async startJob(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(t,e,n)=>t.done(n),n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:(t,e)=>t.error(e);const r=new Promise(r=>(this.jobQueue.push({name:t,onMessage:e,onError:n,onStart:r}),this));return this._startQueuedJob(),await r}async _startQueuedJob(){if(!this.jobQueue.length)return;const t=this._getAvailableWorker();if(!t)return;const e=this.jobQueue.shift();if(e){this.onDebug({message:"Starting job",name:e.name,workerThread:t,backlog:this.jobQueue.length});const n=new g(e.name,t);t.onMessage=t=>e.onMessage(n,t.type,t.payload),t.onError=t=>e.onError(n,t),e.onStart(n);try{await n.result}
26finally{this.returnWorkerToQueue(t)}}}returnWorkerToQueue(t){this.isDestroyed||!this.reuseWorkers||this.count>this._getMaxConcurrency()?(t.destroy(),this.count--):this.idleQueue.push(t),this.isDestroyed||this._startQueuedJob()}_getAvailableWorker(){if(this.idleQueue.length>0)return this.idleQueue.shift()||null;if(this.count<this._getMaxConcurrency()){this.count++;const t="".concat(this.name.toLowerCase()," (#").concat(this.count," of ").concat(this.maxConcurrency,")");return new p({name:t,source:this.source,url:this.url})}return null}_getMaxConcurrency(){return r.b?this.maxMobileConcurrency:this.maxConcurrency}}const y={maxConcurrency:3,maxMobileConcurrency:1,reuseWorkers:!0,onDebug:()=>{}};class _{static isSupported(){return p.isSupported()}static getWorkerFarm(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _._workerFarm=_._workerFarm||new _({}),_._workerFarm.setProps(t),_._workerFarm}constructor(t){s(this,"props",void 0),s(this,"workerPools",new Map),this.props={...y},this.setProps(t),this.workerPools=new Map}destroy(){for(const t of this.workerPools.values())t.destroy();this.workerPools=new Map}setProps(t){this.props={...this.props,...t};for(const t of this.workerPools.values())t.setProps(this._getWorkerPoolProps())}getWorkerPool(t){const{name:e,source:n,url:r}=t;let i=this.workerPools.get(e);return i||(i=new m({name:e,source:n,url:r}),i.setProps(this._getWorkerPoolProps()),this.workerPools.set(e,i)),i}_getWorkerPoolProps(){return{maxConcurrency:this.props.maxConcurrency,maxMobileConcurrency:this.props.maxMobileConcurrency,reuseWorkers:this.props.reuseWorkers,onDebug:this.props.onDebug}}}s(_,"_workerFarm",void 0);function v(t,e){return!!_.isSupported()&&(!!(r.a||null!=e&&e._nodeWorkers)&&(t.worker&&(null==e?void 0:e.worker)))}async function b(t,e,n,r,i){const o=t.id,s=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=e[t.id]||{},r="".concat(t.id,"-worker.js");let i=n.workerUrl;if(i||"compression"!==t.id||(i=e.workerUrl),"test"===e._workerType&&(i="modules/".concat(t.module,"/dist/").concat(r)),!i){let e=t.version;"latest"===e&&(e="latest");const n=e?"@".concat(e):"";i="https://unpkg.com/@loaders.gl/".concat(t.module).concat(n,"/dist/").concat(r)}return Object(c.a)(i),i}(t,n),a=_.getWorkerFarm(n).getWorkerPool({name:o,url:s});n=JSON.parse(JSON.stringify(n)),r=JSON.parse(JSON.stringify(r||{}));const l=await a.startJob("process-on-worker",x.bind(null,i));l.postMessage("process",{input:e,options:n,context:r});const u=await l.result;return await u.result}async function x(t,e,n,r){switch(n){case"done":e.done(r);break;case"error":e.error(new Error(r.error));break;case"process":const{id:i,input:o,options:s}=r;try{const n=await t(o,s);e.postMessage("done",{id:i,result:n})}catch(t){const n=t instanceof Error?t.message:"unknown error";e.postMessage("error",{id:i,error:n})}break;default:console.warn("parse-with-worker unknown message ".concat(n))}}},,function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r="3.4.15"},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(321),i=n(527);const o={WEBGL2:"WEBGL2",VERTEX_ARRAY_OBJECT:"VERTEX_ARRAY_OBJECT",TIMER_QUERY:"TIMER_QUERY",INSTANCED_RENDERING:"INSTANCED_RENDERING",MULTIPLE_RENDER_TARGETS:"MULTIPLE_RENDER_TARGETS",ELEMENT_INDEX_UINT32:"ELEMENT_INDEX_UINT32",BLEND_EQUATION_MINMAX:"BLEND_EQUATION_MINMAX",FLOAT_BLEND:"FLOAT_BLEND",COLOR_ENCODING_SRGB:"COLOR_ENCODING_SRGB",TEXTURE_DEPTH:"TEXTURE_DEPTH",TEXTURE_FLOAT:"TEXTURE_FLOAT",TEXTURE_HALF_FLOAT:"TEXTURE_HALF_FLOAT",TEXTURE_FILTER_LINEAR_FLOAT:"TEXTURE_FILTER_LINEAR_FLOAT",TEXTURE_FILTER_LINEAR_HALF_FLOAT:"TEXTURE_FILTER_LINEAR_HALF_FLOAT",TEXTURE_FILTER_ANISOTROPIC:"TEXTURE_FILTER_ANISOTROPIC",COLOR_ATTACHMENT_RGBA32F:"COLOR_ATTACHMENT_RGBA32F",COLOR_ATTACHMENT_FLOAT:"COLOR_ATTACHMENT_FLOAT",COLOR_ATTACHMENT_HALF_FLOAT:"COLOR_ATTACHMENT_HALF_FLOAT",GLSL_FRAG_DATA:"GLSL_FRAG_DATA",GLSL_FRAG_DEPTH:"GLSL_FRAG_DEPTH",GLSL_DERIVATIVES:"GLSL_DERIVATIVES",GLSL_TEXTURE_LOD:"GLSL_TEXTURE_LOD"};e.b={[o.WEBGL2]:[!1,!0],[o.VERTEX_ARRAY_OBJECT]:["OES_vertex_array_object",!0],[o.TIMER_QUERY]:["EXT_disjoint_timer_query","EXT_disjoint_timer_query_webgl2"],[o.INSTANCED_RENDERING]:["ANGLE_instanced_arrays",!0],[o.MULTIPLE_RENDER_TARGETS]:["WEBGL_draw_buffers",!0],[o.ELEMENT_INDEX_UINT32]:["OES_element_index_uint",!0],[o.BLEND_EQUATION_MINMAX]:["EXT_blend_minmax",!0],[o.FLOAT_BLEND]:["EXT_float_blend"],[o.COLOR_ENCODING_SRGB]:["EXT_sRGB",!0],[o.TEXTURE_DEPTH]:["WEBGL_depth_texture",!0],[o.TEXTURE_FLOAT]:["OES_texture_float",!0],[o.TEXTURE_HALF_FLOAT]:["OES_texture_half_float",!0],[o.TEXTURE_FILTER_LINEAR_FLOAT]:["OES_texture_float_linear"],[o.TEXTURE_FILTER_LINEAR_HALF_FLOAT]:["OES_texture_half_float_linear"],[o.TEXTURE_FILTER_ANISOTROPIC]:["EXT_texture_filter_anisotropic"],[o.COLOR_ATTACHMENT_RGBA32F]:[function(t){const e=new i.a(t,{format:6408,type:5126,dataFormat:6408}),n=new r.a(t,{id:"test-framebuffer",check:!1,attachments:{36064:e}}
26),o=n.getStatus();return e.delete(),n.delete(),36053===o},"EXT_color_buffer_float"],[o.COLOR_ATTACHMENT_FLOAT]:[!1,"EXT_color_buffer_float"],[o.COLOR_ATTACHMENT_HALF_FLOAT]:["EXT_color_buffer_half_float"],[o.GLSL_FRAG_DATA]:["WEBGL_draw_buffers",!0],[o.GLSL_FRAG_DEPTH]:["EXT_frag_depth",!0],[o.GLSL_DERIVATIVES]:["OES_standard_derivatives",!0],[o.GLSL_TEXTURE_LOD]:["EXT_shader_texture_lod",!0]}},function(t,e,n){"use strict";n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return a}));var r=n(16),i=n(20);const o=6144;function s(t){let{framebuffer:e=null,color:n=null,depth:o=null,stencil:s=null}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const a={};e&&(a.framebuffer=e);let c=0;n&&(c|=16384,!0!==n&&(a.clearColor=n)),o&&(c|=256,!0!==o&&(a.clearDepth=o)),s&&(c|=1024,!0!==o&&(a.clearStencil=o)),Object(i.a)(0!==c,"clear: bad arguments"),Object(r.n)(t,a,()=>{t.clear(c)})}function a(t){let{framebuffer:e=null,buffer:n=o,drawBuffer:s=0,value:a=[0,0,0,0]}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object(r.a)(t),Object(r.n)(t,{framebuffer:e},()=>{switch(n){case o:switch(a.constructor){case Int32Array:t.clearBufferiv(n,s,a);break;case Uint32Array:t.clearBufferuiv(n,s,a);break;case Float32Array:default:t.clearBufferfv(n,s,a)}break;case 6145:t.clearBufferfv(6145,0,[a]);break;case 6146:t.clearBufferiv(6146,0,[a]);break;case 34041:const[e,r]=a;t.clearBufferfi(34041,0,e,r);break;default:Object(i.a)(!1,"clear: bad arguments")}})}},function(t,e,n){t.exports=n(1038)},function(t,e,n){"use strict";n.d(e,"c",(function(){return u})),n.d(e,"a",(function(){return h})),n.d(e,"b",(function(){return f}));n(128);var r=n(321),i=n(241),o=n(16),s=n(217),a=n(20);function c(t){switch(t){case 6406:case 33326:case 6403:return 1;case 33328:case 33319:return 2;case 6407:case 34837:return 3;case 6408:case 34836:return 4;default:return Object(a.a)(!1),0}}var l=n(1201);function u(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{sourceX:n=0,sourceY:r=0,sourceFormat:i=6408}=e;let{sourceAttachment:o=36064,target:c=null,sourceWidth:l,sourceHeight:u,sourceType:h}=e;const{framebuffer:f,deleteFramebuffer:g}=d(t);Object(a.a)(f);const{gl:m,handle:y,attachments:_}=f;l=l||f.width,u=u||f.height,36064===o&&null===y&&(o=1028),Object(a.a)(_[o]),h=h||_[o].type,c=p(c,h,i,l,u),h=h||Object(s.b)(c);const v=m.bindFramebuffer(36160,y);return m.readPixels(n,r,l,u,i,h,c),m.bindFramebuffer(36160,v||null),g&&f.delete(),c}function h(t){let{sourceAttachment:e=36064,targetMaxHeight:n=Number.MAX_SAFE_INTEGER}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=u(t,{sourceAttachment:e}),{width:i,height:o}=t;for(;o>n;)({data:r,width:i,height:o}=Object(s.d)({data:r,width:i,height:o}));Object(s.a)({data:r,width:i,height:o});const a=document.createElement("canvas");a.width=i,a.height=o;const c=a.getContext("2d"),l=c.createImageData(i,o);return l.data.set(r),c.putImageData(l,0,0),a.toDataURL()}function f(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{sourceX:r=0,sourceY:s=0,targetMipmaplevel:c=0,targetInternalFormat:l=6408}=n;let{targetX:u,targetY:h,targetZ:f,width:p,height:g}=n;const{framebuffer:m,deleteFramebuffer:y}=d(t);Object(a.a)(m);const{gl:_,handle:v}=m,b=void 0!==u||void 0!==h||void 0!==f;u=u||0,h=h||0,f=f||0;const x=_.bindFramebuffer(36160,v);Object(a.a)(e);let w=null;if(e instanceof i.a&&(w=e,p=Number.isFinite(p)?p:w.width,g=Number.isFinite(g)?g:w.height,w.bind(0),e=w.target),b)switch(e){case 3553:case 34067:_.copyTexSubImage2D(e,c,u,h,r,s,p,g);break;case 35866:case 32879:Object(o.a)(_).copyTexSubImage3D(e,c,u,h,f,r,s,p,g)}else _.copyTexImage2D(e,c,l,r,s,p,g,0);return w&&w.unbind(),_.bindFramebuffer(36160,x||null),y&&m.delete(),w}function d(t){return t instanceof r.a?{framebuffer:t,deleteFramebuffer:!1}:{framebuffer:Object(l.b)(t),deleteFramebuffer:!0}}function p(t,e,n,r,i){if(t)return t;e=e||5121;return new(Object(s.c)(e,{clamped:!1}))(r*i*c(n))}},,,,,function(t,e,n){"use strict";var r=n(281),i=n(1597),o=n(540),s=n(974),a=n(296).f,c=n(1125),l=n(378),u=n(182),h=s.set,f=s.getterFor("Array Iterator");t.exports=c(Array,"Array",(function(t,e){h(this,{type:"Array Iterator",target:r(t),index:0,kind:e})}),(function(){var t=f(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values");var d=o.Arguments=o.Array;
vendor: 6,991 bytes, line 26
26if(i("keys"),i("values"),i("entries"),!l&&u&&"values"!==d.name)try{a(d,"name",{value:"values"})}catch(t){}},,,,,,,,,function(t,e,n){"use strict";n.r(e),n.d(e,"Headers",(function(){return d})),n.d(e,"Request",(function(){return b})),n.d(e,"Response",(function(){return w})),n.d(e,"DOMException",(function(){return S})),n.d(e,"fetch",(function(){return C}));var r="URLSearchParams"in self,i="Symbol"in self&&"iterator"in Symbol,o="FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(t){return!1}}(),s="FormData"in self,a="ArrayBuffer"in self;if(a)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(t){return t&&c.indexOf(Object.prototype.toString.call(t))>-1};function u(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function h(t){return"string"!=typeof t&&(t=String(t)),t}function f(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return i&&(e[Symbol.iterator]=function(){return e}),e}function d(t){this.map={},t instanceof d?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function p(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function g(t){return new Promise((function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}}))}function m(t){var e=new FileReader,n=g(e);return e.readAsArrayBuffer(t),n}function y(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function _(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:o&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:s&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:r&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():a&&o&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=y(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a&&(ArrayBuffer.prototype.isPrototypeOf(t)||l(t))?this._bodyArrayBuffer=y(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o&&(this.blob=function(){var t=p(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?p(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(m)}),this.text=function(){var t,e,n,r=p(this);if(r)return r;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,n=g(e),e.readAsText(t),n;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),n=new Array(e.length),r=0;r<e.length;r++)n[r]=String.fromCharCode(e[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},s&&(this.formData=function(){return this.text().then(x)}),this.json=function(){return this.text().then(JSON.parse)},this}d.prototype.append=function(t,e){t=u(t),e=h(e);var n=this.map[t];this.map[t]=n?n+", "+e:e},d.prototype.delete=function(t){delete this.map[u(t)]},d.prototype.get=function(t){return t=u(t),this.has(t)?this.map[t]:null},d.prototype.has=function(t){return this.map.hasOwnProperty(u(t))},d.prototype.set=function(t,e){this.map[u(t)]=h(e)},d.prototype.forEach=function(t,e){for(var n in this.map)this.map.hasOwnProperty(n)&&t.call(e,this.map[n],n,this)},d.prototype.keys=function(){var t=[];return this.forEach((function(e,n){t.push(n)})),f(t)},d.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),f(t)},d.prototype.entries=function(){var t=[];return this.forEach((function(e,n){t.push([n,e])})),f(t)},i&&(d.prototype[Symbol.iterator]=d.prototype.entries);var v=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function b(t,e){var n,r,i=(e=e||{}).body;if(t instanceof b){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new d(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,i||null==t._bodyInit||(i=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new d(e.headers)),this.method=(n=e.method||this.method||"GET",r=n.toUpperCase(),v.indexOf(r)>-1?r:n),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function x(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var n=t.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(i))}})),e}function w(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new d(e.headers),this.url=e.url||"",this._initBody(t)}b.prototype.clone=function(){return new b(this,{body:this._bodyInit})},_.call(b.prototype),_.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new d(this.headers),url:this.url})},w.error=function(){var t=new w(null,{status:0,statusText:""});return t.type="error",t};var E=[301,302,303,307,308];w.redirect=function(t,e){if(-1===E.indexOf(e))throw new RangeError("Invalid status code");return new w(null,{status:e,headers:{location:t}})};var S=self.DOMException;try{new S}catch(t){(S=function(t,e){this.message=t,this.name=e;var n=Error(t);this.stack=n.stack}).prototype=Object.create(Error.prototype),S.prototype.constructor=S}function C(t,e){return new Promise((function(n,r){var i=new b(t,e);if(i.signal&&i.signal.aborted)return r(new S("Aborted","AbortError"));var s=new XMLHttpRequest;function a(){s.abort()}s.onload=function(){var t,e,r={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",e=new d,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEac
26h((function(t){var n=t.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();e.append(r,i)}})),e)};r.url="responseURL"in s?s.responseURL:r.headers.get("X-Request-URL");var i="response"in s?s.response:s.responseText;n(new w(i,r))},s.onerror=function(){r(new TypeError("Network request failed"))},s.ontimeout=function(){r(new TypeError("Network request failed"))},s.onabort=function(){r(new S("Aborted","AbortError"))},s.open(i.method,i.url,!0),"include"===i.credentials?s.withCredentials=!0:"omit"===i.credentials&&(s.withCredentials=!1),"responseType"in s&&o&&(s.responseType="blob"),i.headers.forEach((function(t,e){s.setRequestHeader(e,t)})),i.signal&&(i.signal.addEventListener("abort",a),s.onreadystatechange=function(){4===s.readyState&&i.signal.removeEventListener("abort",a)}),s.send(void 0===i._bodyInit?null:i._bodyInit)}))}C.polyfill=!0,self.fetch||(self.fetch=C,self.Headers=d,self.Request=b,self.Response=w)},function(t,e){t.exports=window.FormData},,,,,,,,function(t,e,n){},,function(t,e,n){!function(t){"use strict";function e(t,e,n,r){var i,o=!1,s=0;function a(){i&&clearTimeout(i)}function c(){for(var c=arguments.length,l=new Array(c),u=0;u<c;u++)l[u]=arguments[u];var h=this,f=Date.now()-s;function d(){s=Date.now(),n.apply(h,l)}function p(){i=void 0}o||(r&&!i&&d(),a(),void 0===r&&f>t?d():!0!==e&&(i=setTimeout(r?p:d,void 0===r?t-f:t)))}return"boolean"!=typeof e&&(r=n,n=e,e=void 0),c.cancel=function(){a(),o=!0},c}t.debounce=function(t,n,r){return void 0===r?e(t,n,!1):e(t,r,!1!==n)},t.throttle=e,Object.defineProperty(t,"__esModule",{value:!0})}(e)},function(t,e,n){"use strict";var r=n(645).forEach,i=n(1009),o=n(1010),s=n(1011),a=n(1012),c=n(1013),l=n(646),u=n(1014),h=n(1016),f=n(1017),d=n(1018);function p(t){return Array.isArray(t)||void 0!==t.length}function g(t){if(Array.isArray(t))return t;var e=[];return r(t,(function(t){e.push(t)})),e}function m(t){return t&&1===t.nodeType}function y(t,e,n){var r=t[e];return null==r&&void 0!==n?n:r}t.exports=function(t){var e;if((t=t||{}).idHandler)e={get:function(e){return t.idHandler.get(e,!0)},set:t.idHandler.set};else{var n=s(),_=a({idGenerator:n,stateHandler:h});e=_}var v=t.reporter;v||(v=c(!1===v));var b=y(t,"batchProcessor",u({reporter:v})),x={};x.callOnAdd=!!y(t,"callOnAdd",!0),x.debug=!!y(t,"debug",!1);var w,E=o(e),S=i({stateHandler:h}),C=y(t,"strategy","object"),A=y(t,"important",!1),I={reporter:v,batchProcessor:b,stateHandler:h,idHandler:e,important:A};if("scroll"===C&&(l.isLegacyOpera()?(v.warn("Scroll strategy is not supported on legacy Opera. Changing to object strategy."),C="object"):l.isIE(9)&&(v.warn("Scroll strategy is not supported on IE9. Changing to object strategy."),C="object")),"scroll"===C)w=d(I);else{if("object"!==C)throw new Error("Invalid strategy name: "+C);w=f(I)}var T={};return{listenTo:function(t,n,i){function o(t){var e=E.get(t);r(e,(function(e){e(t)}))}function s(t,e,n){E.add(e,n),t&&n(e)}if(i||(i=n,n=t,t={}),!n)throw new Error("At least one element required.");if(!i)throw new Error("Listener required.");if(m(n))n=[n];else{if(!p(n))return v.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");n=g(n)}var a=0,c=y(t,"callOnAdd",x.callOnAdd),l=y(t,"onReady",(function(){})),u=y(t,"debug",x.debug);r(n,(function(t){h.getState(t)||(h.initState(t),e.set(t));var f=e.get(t);if(u&&v.log("Attaching listener to element",f,t),!S.isDetectable(t))return u&&v.log(f,"Not detectable."),S.isBusy(t)?(u&&v.log(f,"System busy making it detectable"),s(c,t,i),T[f]=T[f]||[],void T[f].push((function(){++a===n.length&&l()}))):(u&&v.log(f,"Making detectable..."),S.markBusy(t,!0),w.makeDetectable({debug:u,important:A},t,(function(t){if(u&&v.log(f,"onElementDetectable"),h.getState(t)){S.markAsDetectable(t),S.markBusy(t,!1),w.addListener(t,o),s(c,t,i);var e=h.getState(t);if(e&&e.startSize){var d=t.offsetWidth,p=t.offsetHeight;e.startSize.width===d&&e.startSize.height===p||o(t)}T[f]&&r(T[f],(function(t){t()}))}else u&&v.log(f,"Element uninstalled before being detectable.");delete T[f],++a===n.length&&l()})));u&&v.log(f,"Already detecable, adding listener."),s(c,t,i),a++})),a===n.length&&l()},removeListener:E.removeListener,removeAllListeners:E.removeAllListeners,uninstall:function(t){if(!t)return v.error("At least one element is required.");
26if(m(t))t=[t];else{if(!p(t))return v.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");t=g(t)}r(t,(function(t){E.removeAllListeners(t),w.uninstall(t),h.cleanState(t)}))},initDocument:function(t){w.initDocument&&w.initDocument(t)}}}},function(t,e,n){"use strict";t.exports=function(t){var e=t.stateHandler.getState;return{isDetectable:function(t){var n=e(t);return n&&!!n.isDetectable},markAsDetectable:function(t){e(t).isDetectable=!0},isBusy:function(t){return!!e(t).busy},markBusy:function(t,n){e(t).busy=!!n}}}},function(t,e,n){"use strict";t.exports=function(t){var e={};function n(n){var r=t.get(n);return void 0===r?[]:e[r]||[]}return{get:n,add:function(n,r){var i=t.get(n);e[i]||(e[i]=[]),e[i].push(r)},removeListener:function(t,e){for(var r=n(t),i=0,o=r.length;i<o;++i)if(r[i]===e){r.splice(i,1);break}},removeAllListeners:function(t){var e=n(t);e&&(e.length=0)}}}},function(t,e,n){"use strict";t.exports=function(){var t=1;return{generate:function(){return t++}}}},function(t,e,n){"use strict";t.exports=function(t){var e=t.idGenerator,n=t.stateHandler.getState;return{get:function(t){var e=n(t);return e&&void 0!==e.id?e.id:null},set:function(t){var r=n(t);if(!r)throw new Error("setId required the element to have a resize detection state.");var i=e.generate();return r.id=i,i}}}},function(t,e,n){"use strict";t.exports=function(t){function e(){}var n={log:e,warn:e,error:e};if(!t&&window.console){var r=function(t,e){t[e]=function(){var t=console[e];if(t.apply)t.apply(console,arguments);else for(var n=0;n<arguments.length;n++)t(arguments[n])}};r(n,"log"),r(n,"warn"),r(n,"error")}return n}},function(t,e,n){"use strict";var r=n(1015);function i(){var t={},e=0,n=0,r=0;return{add:function(i,o){o||(o=i,i=0),i>n?n=i:i<r&&(r=i),t[i]||(t[i]=[]),t[i].push(o),e++},process:function(){for(var e=r;e<=n;e++)for(var i=t[e],o=0;o<i.length;o++){(0,i[o])()}},size:function(){return e}}}t.exports=function(t){var e=(t=t||{}).reporter,n=r.getOption(t,"async",!0),o=r.getOption(t,"auto",!0);o&&!n&&(e&&e.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."),n=!0);var s,a=i(),c=!1;function l(){for(c=!0;a.size();){var t=a;a=i(),t.process()}c=!1}function u(){var t;t=l,s=setTimeout(t,0)}return{add:function(t,e){!c&&o&&n&&0===a.size()&&u(),a.add(t,e)},force:function(t){c||(void 0===t&&(t=n),s&&(clearTimeout(s),s=null),t?u():l())}}}},function(t,e,n){"use strict";(t.exports={}).getOption=function(t,e,n){var r=t[e];if(null==r&&void 0!==n)return n;return r}},function(t,e,n){"use strict";function r(t){return t._erd}t.exports={initState:function(t){return t._erd={},r(t)},getState:r,cleanState:function(t){delete t._erd}}},function(t,e,n){"use strict";var r=n(646);t.exports=function(t){var e=(t=t||{}).reporter,n=t.batchProcessor,i=t.stateHandler.getState;if(!e)throw new Error("Missing required dependency: reporter.");function o(e){var n=t.important?" !important; ":"; ";return(e.join(n)+n).trim()}function s(t){return i(t).object}return{makeDetectable:function(t,s,a){a||(a=s,s=t,t=null),(t=t||{}).debug,r.isIE(8)?a(s):function(s,a){var c=o(["display: block","position: absolute","top: 0","left: 0","width: 100%","height: 100%","border: none","padding: 0","margin: 0","opacity: 0","z-index: -1000","pointer-events: none"]),l=!1,u=window.getComputedStyle(s),h=s.offsetWidth,f=s.offsetHeight;function d(){function n(){if("static"===u.position){s.style.setProperty("position","relative",t.important?"important":"");var n=function(e,n,r,i){var o=r[i];"auto"!==o&&"0"!==function(t){return t.replace(/[^-\d\.]/g,"")}(o)&&(e.warn("An element that is positioned static has style."+i+"="+o+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+i+" will be set to 0. Element: ",n),n.style.setProperty(i,"0",t.important?"important":""))};n(e,s,u,"top"),n(e,s,u,"right"),n(e,s,u,"bottom"),n(e,s,u,"left")}}""!==u.position&&(n(),l=!0);var o=document.createElement("object");o.style.cssText=c,o.tabIndex=-1,o.type="text/html",o.setAttribute("aria-hidden","true"),o.onload=function(){l||n(),function t(e,n){if(!e.contentDocument){var r=i(e);return r.checkForObjectDocumentTimeoutId&&window.clearTimeout(r.checkForObjectDocumentTimeoutId),void(r.checkForObjectDocumentTimeoutId=setTimeout((function(){r.checkForObjectDocumentTimeoutId=0,t(e,n)}),100))}n(e.contentDocument)}(this,(function(t){a(s)}))},r.isIE()||(o.data="about:blank"),i(s)&&(s.appendChild(o),i(s).object=o,r.isIE()&&(o.data="about:blank"))}i(s).startSize={width:h,height:f},n?n.add(d):d()}(s,a)},addListener:function(t,e){function n(){e(t)}if(r.isIE(8))i(t).object={proxy:n},t.attachEvent("onresize",n);else{var o=s(t);
26if(!o)throw new Error("Element is not detectable by this strategy.");o.contentDocument.defaultView.addEventListener("resize",n)}},uninstall:function(t){if(i(t)){var e=s(t);e&&(r.isIE(8)?t.detachEvent("onresize",e.proxy):t.removeChild(e),i(t).checkForObjectDocumentTimeoutId&&window.clearTimeout(i(t).checkForObjectDocumentTimeoutId),delete i(t).object)}}}}},function(t,e,n){"use strict";var r=n(645).forEach;t.exports=function(t){var e=(t=t||{}).reporter,n=t.batchProcessor,i=t.stateHandler.getState,o=(t.stateHandler.hasState,t.idHandler);if(!n)throw new Error("Missing required dependency: batchProcessor");if(!e)throw new Error("Missing required dependency: reporter.");var s=function(){var t=document.createElement("div");t.style.cssText=c(["position: absolute","width: 1000px","height: 1000px","visibility: hidden","margin: 0","padding: 0"]);var e=document.createElement("div");e.style.cssText=c(["position: absolute","width: 500px","height: 500px","overflow: scroll","visibility: none","top: -1500px","left: -1500px","visibility: hidden","margin: 0","padding: 0"]),e.appendChild(t),document.body.insertBefore(e,document.body.firstChild);var n=500-e.clientWidth,r=500-e.clientHeight;return document.body.removeChild(e),{width:n,height:r}}();function a(t){!function(t,e,n){if(!t.getElementById(e)){var r=n+"_animation",i=n+"_animation_active",o="/* Created by the element-resize-detector library. */\n";o+="."+n+" > div::-webkit-scrollbar { "+c(["display: none"])+" }\n\n",o+="."+i+" { "+c(["-webkit-animation-duration: 0.1s","animation-duration: 0.1s","-webkit-animation-name: "+r,"animation-name: "+r])+" }\n",o+="@-webkit-keyframes "+r+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }\n",function(n,r){r=r||function(e){t.head.appendChild(e)};var i=t.createElement("style");i.innerHTML=n,i.id=e,r(i)}(o+="@keyframes "+r+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }")}}(t,"erd_scroll_detection_scrollbar_style","erd_scroll_detection_container")}function c(e){var n=t.important?" !important; ":"; ";return(e.join(n)+n).trim()}function l(t,n,r){if(t.addEventListener)t.addEventListener(n,r);else{if(!t.attachEvent)return e.error("[scroll] Don't know how to add event listeners.");t.attachEvent("on"+n,r)}}function u(t,n,r){if(t.removeEventListener)t.removeEventListener(n,r);else{if(!t.detachEvent)return e.error("[scroll] Don't know how to remove event listeners.");t.detachEvent("on"+n,r)}}function h(t){return i(t).container.childNodes[0].childNodes[0].childNodes[0]}function f(t){return i(t).container.childNodes[0].childNodes[0].childNodes[1]}return a(window.document),{makeDetectable:function(t,a,u){function d(){if(t.debug){var n=Array.prototype.slice.call(arguments);if(n.unshift(o.get(a),"Scroll: "),e.log.apply)e.log.apply(null,n);else for(var r=0;r<n.length;r++)e.log(n[r])}}function p(t){var e=i(t).container.childNodes[0],n=window.getComputedStyle(e);return!n.width||-1===n.width.indexOf("px")}function g(){var t=window.getComputedStyle(a),e={};return e.position=t.position,e.width=a.offsetWidth,e.height=a.offsetHeight,e.top=t.top,e.right=t.right,e.bottom=t.bottom,e.left=t.left,e.widthCSS=t.width,e.heightCSS=t.height,e}function m(){if(d("storeStyle invoked."),i(a)){var t=g();i(a).style=t}else d("Aborting because element has been uninstalled")}function y(t,e,n){i(t).lastWidth=e,i(t).lastHeight=n}function _(){return 2*s.width+1}function v(){return 2*s.height+1}function b(t){return t+10+_()}function x(t){return t+10+v()}function w(t,e,n){var r=h(t),i=f(t),o=b(e),s=x(n),a=function(t){return 2*t+_()}(e),c=function(t){return 2*t+v()}(n);r.scrollLeft=o,r.scrollTop=s,i.scrollLeft=a,i.scrollTop=c}function E(){var t=i(a).container;if(!t){(t=document.createElement("div")).className="erd_scroll_detection_container",t.style.cssText=c(["visibility: hidden","display: inline","width: 0px","height: 0px","z-index: -1","overflow: hidden","margin: 0","padding: 0"]),i(a).container=t,function(t){t.className+=" erd_scroll_detection_container_animation_active"}(t),a.appendChild(t);var e=function(){i(a).onRendered&&i(a).onRendered()};l(t,"animationstart",e),i(a).onAnimationStart=e}return t}function S(){if(d("Injecting elements"),i(a)){!function(){var n=i(a).style;if("static"===n.position){a.style.setProperty("position","relative",t.important?"important":"");var r=function(t,e,n,r){var i=n[r];"auto"!==i&&"0"!==function(t){return t.replace(/[^-\d\.]/g,"")}
26(i)&&(t.warn("An element that is positioned static has style."+r+"="+i+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+r+" will be set to 0. Element: ",e),e.style[r]=0)};r(e,a,n,"top"),r(e,a,n,"right"),r(e,a,n,"bottom"),r(e,a,n,"left")}}();var n=i(a).container;n||(n=E());var r,o,u,h,f=s.width,p=s.height,g=c(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden","width: 100%","height: 100%","left: 0px","top: 0px"]),m=c(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden"].concat(["left: "+(r=(r=-(1+f))?r+"px":"0"),"top: "+(o=(o=-(1+p))?o+"px":"0"),"right: "+(h=(h=-f)?h+"px":"0"),"bottom: "+(u=(u=-p)?u+"px":"0")])),y=c(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),_=c(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),v=c(["position: absolute","left: 0","top: 0"]),b=c(["position: absolute","width: 200%","height: 200%"]),x=document.createElement("div"),w=document.createElement("div"),S=document.createElement("div"),C=document.createElement("div"),A=document.createElement("div"),I=document.createElement("div");x.dir="ltr",x.style.cssText=g,x.className="erd_scroll_detection_container",w.className="erd_scroll_detection_container",w.style.cssText=m,S.style.cssText=y,C.style.cssText=v,A.style.cssText=_,I.style.cssText=b,S.appendChild(C),A.appendChild(I),w.appendChild(S),w.appendChild(A),x.appendChild(w),n.appendChild(x),l(S,"scroll",T),l(A,"scroll",M),i(a).onExpandScroll=T,i(a).onShrinkScroll=M}else d("Aborting because element has been uninstalled");function T(){var t=i(a);t&&t.onExpand?t.onExpand():d("Aborting expand scroll handler: element has been uninstalled")}function M(){var t=i(a);t&&t.onShrink?t.onShrink():d("Aborting shrink scroll handler: element has been uninstalled")}}function C(){function s(e,n,r){var i=function(t){return h(t).childNodes[0]}(e),o=b(n),s=x(r);i.style.setProperty("width",o+"px",t.important?"important":""),i.style.setProperty("height",s+"px",t.important?"important":"")}function c(r){var c=a.offsetWidth,u=a.offsetHeight,h=c!==i(a).lastWidth||u!==i(a).lastHeight;d("Storing current size",c,u),y(a,c,u),n.add(0,(function(){if(h)if(i(a))if(l()){if(t.debug){var n=a.offsetWidth,r=a.offsetHeight;n===c&&r===u||e.warn(o.get(a),"Scroll: Size changed before updating detector elements.")}s(a,c,u)}else d("Aborting because element container has not been initialized");else d("Aborting because element has been uninstalled")})),n.add(1,(function(){i(a)?l()?w(a,c,u):d("Aborting because element container has not been initialized"):d("Aborting because element has been uninstalled")})),h&&r&&n.add(2,(function(){i(a)?l()?r():d("Aborting because element container has not been initialized"):d("Aborting because element has been uninstalled")}))}function l(){return!!i(a).container}function u(){d("notifyListenersIfNeeded invoked");var t=i(a);return void 0===i(a).lastNotifiedWidth&&t.lastWidth===t.startSize.width&&t.lastHeight===t.startSize.height?d("Not notifying: Size is the same as the start size, and there has been no notification yet."):t.lastWidth===t.lastNotifiedWidth&&t.lastHeight===t.lastNotifiedHeight?d("Not notifying: Size already notified"):(d("Current size not notified, notifying..."),t.lastNotifiedWidth=t.lastWidth,t.lastNotifiedHeight=t.lastHeight,void r(i(a).listeners,(function(t){t(a)})))}function g(){d("Scroll detected."),p(a)?d("Scroll event fired while unrendered. Ignoring..."):c(u)}if(d("registerListenersAndPositionElements invoked."),i(a)){i(a).onRendered=function(){if(d("startanimation triggered."),p(a))d("Ignoring since element is still unrendered...");else{d("Element rendered.");var t=h(a),e=f(a);0!==t.scrollLeft&&0!==t.scrollTop&&0!==e.scrollLeft&&0!==e.scrollTop||(d("Scrollbars out of sync. Updating detector elements..."),c(u))}},i(a).onExpand=g,i(a).onShrink=g;var m=i(a).style;s(a,m.width,m.height)}else d("Aborting because element has been uninstalled")}function A(){if(d("finalizeDomMutation invoked."),i(a)){var t=i(a).style;y(a,t.width,t.height),w(a,t.width,t.height)}else d("Aborting because element has been uninstalled")}function I(){u(a)}function T(){var t;d("Installing..."),i(a).listeners=[],t=g(),i(a).startSize={width:t.width,height:t.height},d("Element start size",i(a).startSize),n.add(0,m),n.add(1,S),n.add(2,C),n.add(3,A),n.add(4,I)}u||(u=a,a=t,t=null),t=t||{},d("Making detectable..."),!function(t){return!function(t){var e=t.getRootNode&&t.getRootNode().contains(t);return t===t.ownerDocument.body||t.ownerDocument.body.contains(t)||e}(t)||null===window.getComputedStyle(t)}(a)?T():(d("Element is detached"),E(),d("Waiting until element is attached..."),i(a).onRendered=function(){d("Element is now attached"),T()})},addListener:function(t,e){if(!i(t).listeners.push)throw new Error("Cannot add listener to an element that is not detectable.");i(t).listeners.push(e)},uninstall:function(t){var e=i(t);e&&(e.onExpandScroll&&u(h(t),"scroll",e.onExpandScroll),e.onShrinkScroll&&u(f(t),"scroll",e.onShrinkScroll),e.onAnimationStart&&u(e.container,"animationstart",e.onAnimationStart),e.container&&t.removeChild(e.container))},initDocument:a}}},function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleStr
26ing","toString","valueOf"]},function(t,e,n){n(987);var r=n(1614),i=n(26),o=n(336),s=n(325),a=n(540),c=n(107)("toStringTag");for(var l in r){var u=i[l],h=u&&u.prototype;h&&o(h)!==c&&s(h,c,l),a[l]=a.Array}},,,,,,,,,,,,function(t,e,n){var r=n(26),i=n(171),o=n(76),s=n(307),a=n(720),c=n(1610),l=a("IE_PROTO"),u=r.Object,h=u.prototype;t.exports=c?u.getPrototypeOf:function(t){var e=s(t);if(i(e,l))return e[l];var n=e.constructor;return o(n)&&e instanceof n?n.prototype:e instanceof u?h:null}},,,,,,function(t,e,n){var r=function(t){"use strict";var e=Object.prototype,n=e.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",s=r.toStringTag||"@@toStringTag";function a(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{a({},"")}catch(t){a=function(t,e,n){return t[e]=n}}function c(t,e,n,r){var i=e&&e.prototype instanceof h?e:h,o=Object.create(i.prototype),s=new E(r||[]);return o._invoke=function(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return C()}for(n.method=i,n.arg=o;;){var s=n.delegate;if(s){var a=b(s,n);if(a){if(a===u)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=l(t,e,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(t,n,s),o}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var u={};function h(){}function f(){}function d(){}var p={};a(p,i,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(S([])));m&&m!==e&&n.call(m,i)&&(p=m);var y=d.prototype=h.prototype=Object.create(p);function _(t){["next","throw","return"].forEach((function(e){a(t,e,(function(t){return this._invoke(e,t)}))}))}function v(t,e){var r;this._invoke=function(i,o){function s(){return new e((function(r,s){!function r(i,o,s,a){var c=l(t[i],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==typeof h&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){r("next",t,s,a)}),(function(t){r("throw",t,s,a)})):e.resolve(h).then((function(t){u.value=t,s(u)}),(function(t){return r("throw",t,s,a)}))}a(c.arg)}(i,o,r,s)}))}return r=r?r.then(s,s):s()}}function b(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,b(t,e),"throw"===e.method))return u;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var r=l(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,u;var i=r.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,u):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,u)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function w(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return f.prototype=d,a(y,"constructor",d),a(d,"constructor",f),f.displayName=a(d,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,a(t,s,"GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}}
vendor: 4,243 bytes, line 26
26,_(v.prototype),a(v.prototype,o,(function(){return this})),t.AsyncIterator=v,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var s=new v(c(e,n,r,i),o);return t.isGeneratorFunction(n)?s:s.next().then((function(t){return t.done?t.value:s.next()}))},_(y),a(y,s,"Generator"),a(y,i,(function(){return this})),a(y,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=S,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return s.type="throw",s.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var a=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(a&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var s=o?o.completion:{};return s.type=t,s.arg=e,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(s)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),u},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),w(n),u}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;w(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:S(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},t}(t.exports);try{regeneratorRuntime=r}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";var r=n(129),i=n(229),o=n(378),s=n(658),a=n(76),c=n(1608),l=n(1032),u=n(1215),h=n(886),f=n(325),d=n(726),p=n(107),g=n(540),m=n(1126),y=s.PROPER,_=s.CONFIGURABLE,v=m.IteratorPrototype,b=m.BUGGY_SAFARI_ITERATORS,x=p("iterator"),w=function(){return this};t.exports=function(t,e,n,s,p,m,E){c(n,e,s);var S,C,A,I=function(t){if(t===p&&L)return L;if(!b&&t in F)return F[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},T=e+" Iterator",M=!1,F=t.prototype,B=F[x]||F["@@iterator"]||p&&F[p],L=!b&&B||I(p),O="Array"==e&&F.entries||B;if(O&&(S=l(O.call(new t)))!==Object.prototype&&S.next&&(o||l(S)===v||(u?u(S,v):a(S[x])||d(S,x,w)),h(S,T,!0,!0),o&&(g[T]=w)),y&&"values"==p&&B&&"values"!==B.name&&(!o&&_?f(F,"name","values"):(M=!0,L=function(){return i(B,this)})),p)if(C={values:I("values"),keys:m?L:I("keys"),entries:I("entries")},E)for(A in C)(b||M||!(A in F))&&d(F,A,C[A]);else r({target:e,proto:!0,forced:b||M},C);return o&&!E||F[x]===L||d(F,x,L,{name:p}),g[e]=L,C}},function(t,e,n){"use strict";var r,i,o,s=n(89),a=n(76),c=n(975),l=n(1032),u=n(726),h=n(107),f=n(378),d=h("iterator"),p=!1;[].keys&&("next"in(o=[].keys())?(i=l(l(o)))!==Object.prototype&&(r=i):p=!0),null==r||s((function(){var t={};
vendor: 4,483 bytes, line 26
26return r[d].call(t)!==t}))?r={}:f&&(r=c(r)),a(r[d])||u(r,d,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:p}},,,,function(t,e,n){"use strict";var r=n(1613).charAt,i=n(335),o=n(974),s=n(1125),a=o.set,c=o.getterFor("String Iterator");s(String,"String",(function(t){a(this,{type:"String Iterator",string:i(t),index:0})}),(function(){var t,e=c(this),n=e.string,i=e.index;return i>=n.length?{value:void 0,done:!0}:(t=r(n,i),e.index+=t.length,{value:t,done:!1})}))},,,,,,,,,,,,,,,function(t,e,n){var r=n(81),i=n(36),o=n(930);t.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(578);t.exports=r("native-function-to-string",Function.toString)},function(t,e,n){var r=n(57),i=n(1146),o=r.WeakMap;t.exports="function"==typeof o&&/native code/.test(i.call(o))},function(t,e,n){var r=n(138),i=n(932),o=n(211),s=n(110);t.exports=function(t,e){for(var n=i(e),a=s.f,c=o.f,l=0;l<n.length;l++){var u=n[l];r(t,u)||a(t,u,c(e,u))}}},function(t,e,n){var r=n(138),i=n(232),o=n(581).indexOf,s=n(580);t.exports=function(t,e){var n,a=i(t),c=0,l=[];for(n in a)!r(s,n)&&r(a,n)&&l.push(n);for(;e.length>c;)r(a,n=e[c++])&&(~o(l,n)||l.push(n));return l}},function(t,e,n){var r=n(36);t.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},function(t,e,n){var r=n(402);t.exports=r("document","documentElement")},function(t,e,n){var r=n(232),i=n(453).f,o={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return s&&"[object Window]"==o.call(t)?function(t){try{return i(t)}catch(t){return s.slice()}}(t):i(r(t))}},function(t,e,n){e.f=n(82)},function(t,e,n){"use strict";var r=n(81),i=n(36),o=n(583),s=n(934),a=n(675),c=n(114),l=n(577),u=Object.assign;t.exports=!u||i((function(){var t={},e={},n=Symbol();return t[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){e[t]=t})),7!=u({},t)[n]||"abcdefghijklmnopqrst"!=o(u({},e)).join("")}))?function(t,e){for(var n=c(t),i=arguments.length,u=1,h=s.f,f=a.f;i>u;)for(var d,p=l(arguments[u++]),g=h?o(p).concat(h(p)):o(p),m=g.length,y=0;m>y;)d=g[y++],r&&!f.call(p,d)||(n[d]=p[d]);return n}:u},function(t,e,n){var r=n(81),i=n(583),o=n(232),s=n(675).f,a=function(t){return function(e){for(var n,a=o(e),c=i(a),l=c.length,u=0,h=[];l>u;)n=c[u++],r&&!s.call(a,n)||h.push(t?[n,a[n]]:a[n]);return h}};t.exports={entries:a(!0),values:a(!1)}},function(t,e,n){var r=n(73);t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&r(o.call(t)),e}}},function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},function(t,e,n){var r=n(72);t.exports=function(t){if(!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},function(t,e,n){"use strict";var r=n(234),i=n(72),o=[].slice,s={},a=function(t,e,n){if(!(e in s)){for(var r=[],i=0;i<e;i++)r[i]="a["+i+"]";s[e]=Function("C,a","return new C("+r.join(",")+")")}return s[e](t,n)};t.exports=Function.bind||function(t){var e=r(this),n=o.call(arguments,1),s=function(){var r=n.concat(o.call(arguments));return this instanceof s?a(e,r.length,r):e.apply(t,r)};return i(e.prototype)&&(s.prototype=e.prototype),s}},function(t,e,n){"use strict";var r=n(405),i=n(114),o=n(1156),s=n(936),a=n(87),c=n(456),l=n(588);t.exports=function(t){var e,n,u,h,f=i(t),d="function"==typeof this?this:Array,p=arguments.length,g=p>1?arguments[1]:void 0,m=void 0!==g,y=0,_=l(f);if(m&&(g=r(g,p>2?arguments[2]:void 0,2)),null==_||d==Array&&s(_))for(n=new d(e=a(f.length));e>y;y++)c(n,y,m?g(f[y],y):f[y]);else for(h=_.call(f),n=new d;!(u=h.next()).done;y++)c(n,y,m?o(h,g,[u.value,y],!0):u.value);return n.length=y,n}},function(t,e,n){"use strict";var r=n(114),i=n(403),o=n(87),s=Math.min;t.exports=[].copyWithin||function(t,e){var n=r(this),a=o(n.length),c=i(t,a),l=i(e,a),u=arguments.length>2?arguments[2]:void 0,h=s((void 0===u?a:i(u,a))-l,a-c),f=1;for(l<c&&c<l+h&&(f=-1,l+=h-1,c+=h-1);h-- >0;)l in n?n[c]=n[l]:delete n[c],c+=f,l+=f;return n}},function(t,e,n){"use strict";var r=n(454),i=n(87),o=n(405),s=function(t,e,n,a,c,l,u,h){for(var f,d=c,p=0,g=!!u&&o(u,h,3);p<a;){if(p in n){if(f=g?g(n[p],p,e):n[p],l>0&&r(f))d=s(t,e,f,i(f.length),d,l-1)-1;else{if(d>=9007199254740991)throw TypeError("Exceed the acceptable array length");t[d]=f}d++}p++}return d};t.exports=s},function(t,e,n){"use strict";var r=n(172).forEach,i=n(351);
vendor: 4,165 bytes, line 26
26t.exports=i("forEach")?function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}:[].forEach},function(t,e,n){"use strict";var r=n(232),i=n(255),o=n(87),s=n(351),a=Math.min,c=[].lastIndexOf,l=!!c&&1/[1].lastIndexOf(1,-0)<0,u=s("lastIndexOf");t.exports=l||u?function(t){if(l)return c.apply(this,arguments)||0;var e=r(this),n=o(e.length),s=n-1;for(arguments.length>1&&(s=a(s,i(arguments[1]))),s<0&&(s=n+s);s>=0;s--)if(s in e&&e[s]===t)return s||0;return-1}:c},function(t,e,n){"use strict";var r,i,o,s=n(319),a=n(184),c=n(138),l=n(82),u=n(401),h=l("iterator"),f=!1;[].keys&&("next"in(o=[].keys())?(i=s(s(o)))!==Object.prototype&&(r=i):f=!0),null==r&&(r={}),u||c(r,h)||a(r,h,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:f}},function(t,e,n){var r=n(686);t.exports=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(r)},function(t,e,n){"use strict";var r=n(681).charAt,i=n(233),o=n(939),s=i.set,a=i.getterFor("String Iterator");o(String,"String",(function(t){s(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,e=a(this),n=e.string,i=e.index;return i>=n.length?{value:void 0,done:!0}:(t=r(n,i),e.index+=t.length,{value:t,done:!1})}))},function(t,e,n){var r=n(57),i=n(518).trim,o=n(687),s=r.parseInt,a=/^[+-]?0[Xx]/,c=8!==s(o+"08")||22!==s(o+"0x16");t.exports=c?function(t,e){var n=i(String(t));return s(n,e>>>0||(a.test(n)?16:10))}:s},function(t,e,n){var r=n(57),i=n(518).trim,o=n(687),s=r.parseFloat,a=1/s(o+"-0")!=-1/0;t.exports=a?function(t){var e=i(String(t)),n=s(e);return 0===n&&"-"==e.charAt(0)?-0:n}:s},function(t,e,n){var r=n(72),i=Math.floor;t.exports=function(t){return!r(t)&&isFinite(t)&&i(t)===t}},function(t,e,n){var r=n(283);t.exports=function(t){if("number"!=typeof t&&"Number"!=r(t))throw TypeError("Incorrect invocation");return+t}},function(t,e){var n=Math.log;t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:n(1+t)}},function(t,e,n){var r,i,o,s,a,c,l,u=n(57),h=n(211).f,f=n(283),d=n(949).set,p=n(686),g=u.MutationObserver||u.WebKitMutationObserver,m=u.process,y=u.Promise,_="process"==f(m),v=h(u,"queueMicrotask"),b=v&&v.value;b||(r=function(){var t,e;for(_&&(t=m.domain)&&t.exit();i;){e=i.fn,i=i.next;try{e()}catch(t){throw i?s():o=void 0,t}}o=void 0,t&&t.enter()},_?s=function(){m.nextTick(r)}:g&&!/(iphone|ipod|ipad).*applewebkit/i.test(p)?(a=!0,c=document.createTextNode(""),new g(r).observe(c,{characterData:!0}),s=function(){c.data=a=!a}):y&&y.resolve?(l=y.resolve(void 0),s=function(){l.then(r)}):s=function(){d.call(u,r)}),t.exports=b||function(t){var e={fn:t,next:void 0};o&&(o.next=e),i||(i=e,s()),o=e}},function(t,e,n){var r=n(73),i=n(72),o=n(1175);t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=o.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){"use strict";var r=n(234),i=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)};t.exports.f=function(t){return new i(t)}},function(t,e,n){"use strict";var r=n(110).f,i=n(404),o=n(519),s=n(405),a=n(407),c=n(586),l=n(939),u=n(517),h=n(81),f=n(455).fastKey,d=n(233),p=d.set,g=d.getterFor;t.exports={getConstructor:function(t,e,n,l){var u=t((function(t,r){a(t,u,e),p(t,{type:e,index:i(null),first:void 0,last:void 0,size:0}),h||(t.size=0),null!=r&&c(r,t[l],t,n)})),d=g(e),m=function(t,e,n){var r,i,o=d(t),s=y(t,e);return s?s.value=n:(o.last=s={index:i=f(e,!0),key:e,value:n,previous:r=o.last,next:void 0,removed:!1},o.first||(o.first=s),r&&(r.next=s),h?o.size++:t.size++,"F"!==i&&(o.index[i]=s)),t},y=function(t,e){var n,r=d(t),i=f(e);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==e)return n};return o(u.prototype,{clear:function(){for(var t=d(this),e=t.index,n=t.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete e[n.index],n=n.next;t.first=t.last=void 0,h?t.size=0:this.size=0},delete:function(t){var e=d(this),n=y(this,t);if(n){var r=n.next,i=n.previous;delete e.index[n.index],n.removed=!0,i&&(i.next=r),r&&(r.previous=i),e.first==n&&(e.first=r),e.last==n&&(e.last=i),h?e.size--:this.size--}return!!n}
vendor: 4,376 bytes, line 26
26,forEach:function(t){for(var e,n=d(this),r=s(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!y(this,t)}}),o(u.prototype,n?{get:function(t){var e=y(this,t);return e&&e.value},set:function(t,e){return m(this,0===t?0:t,e)}}:{add:function(t){return m(this,t=0===t?0:t,t)}}),h&&r(u.prototype,"size",{get:function(){return d(this).size}}),u},setStrong:function(t,e,n){var r=e+" Iterator",i=g(e),o=g(r);l(t,e,(function(t,e){p(this,{type:r,target:t,state:i(t),kind:e,last:void 0})}),(function(){for(var t=o(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?"keys"==e?{value:n.key,done:!1}:"values"==e?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),u(e)}}},function(t,e,n){"use strict";var r=n(519),i=n(455).getWeakData,o=n(73),s=n(72),a=n(407),c=n(586),l=n(172),u=n(138),h=n(233),f=h.set,d=h.getterFor,p=l.find,g=l.findIndex,m=0,y=function(t){return t.frozen||(t.frozen=new _)},_=function(){this.entries=[]},v=function(t,e){return p(t.entries,(function(t){return t[0]===e}))};_.prototype={get:function(t){var e=v(this,t);if(e)return e[1]},has:function(t){return!!v(this,t)},set:function(t,e){var n=v(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=g(this.entries,(function(e){return e[0]===t}));return~e&&this.entries.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,n,l){var h=t((function(t,r){a(t,h,e),f(t,{type:e,id:m++,frozen:void 0}),null!=r&&c(r,t[l],t,n)})),p=d(e),g=function(t,e,n){var r=p(t),s=i(o(e),!0);return!0===s?y(r).set(e,n):s[r.id]=n,t};return r(h.prototype,{delete:function(t){var e=p(this);if(!s(t))return!1;var n=i(t);return!0===n?y(e).delete(t):n&&u(n,e.id)&&delete n[e.id]},has:function(t){var e=p(this);if(!s(t))return!1;var n=i(t);return!0===n?y(e).has(t):n&&u(n,e.id)}}),r(h.prototype,n?{get:function(t){var e=p(this);if(s(t)){var n=i(t);return!0===n?y(e).get(t):n?n[e.id]:void 0}},set:function(t,e){return g(this,t,e)}}:{add:function(t){return g(this,t,!0)}}),h}}},function(t,e,n){var r=n(255),i=n(87);t.exports=function(t){if(void 0===t)return 0;var e=r(t),n=i(e);if(e!==n)throw RangeError("Wrong length or index");return n}},function(t,e,n){var r=n(255);t.exports=function(t,e){var n=r(t);if(n<0||n%e)throw RangeError("Wrong offset");return n}},function(t,e,n){var r=n(114),i=n(87),o=n(588),s=n(936),a=n(405),c=n(77).aTypedArrayConstructor;t.exports=function(t){var e,n,l,u,h,f=r(t),d=arguments.length,p=d>1?arguments[1]:void 0,g=void 0!==p,m=o(f);if(null!=m&&!s(m))for(h=m.call(f),f=[];!(u=h.next()).done;)f.push(u.value);for(g&&d>2&&(p=a(p,arguments[2],2)),n=i(f.length),l=new(c(this))(n),e=0;n>e;e++)l[e]=g?p(f[e],e):f[e];return l}},function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(t,e,n){var r=n(36),i=n(82),o=n(401),s=i("iterator");t.exports=!r((function(){var t=new URL("b?e=1","http://a"),e=t.searchParams;return t.pathname="c%20d",o&&!t.toJSON||!e.sort||"http://a/c%20d?e=1"!==t.href||"1"!==e.get("e")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[s]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://ÑеÑÑ").host||"#%D0%B1"!==new URL("http://a#б").hash}))},function(t,e,n){"use strict";n(680);var r=n(12),i=n(1182),o=n(212),s=n(519),a=n(318),c=n(940),l=n(233),u=n(407),h=n(138),f=n(405),d=n(73),p=n(72),g=n(1867),m=n(588),y=n(82)("iterator"),_=l.set,v=l.getterFor("URLSearchParams"),b=l.getterFor("URLSearchParamsIterator"),x=/\+/g,w=Array(4),E=function(t){return w[t-1]||(w[t-1]=RegExp("((?:%[\\da-f]{2}){"+t+"})","gi"))},S=function(t){try{return decodeURIComponent(t)}catch(e){return t}},C=function(t){var e=t.replace(x," "),n=4;try{return decodeURIComponent(e)}catch(t){for(;n;)e=e.replace(E(n--),S);return e}}
26,A=/[!'()~]|%20/g,I={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},T=function(t){return I[t]},M=function(t){return encodeURIComponent(t).replace(A,T)},F=function(t,e){if(e)for(var n,r,i=e.split("&"),o=0;o<i.length;)(n=i[o++]).length&&(r=n.split("="),t.push({key:C(r.shift()),value:C(r.join("="))}))},B=function(t){this.entries.length=0,F(this.entries,t)},L=function(t,e){if(t<e)throw TypeError("Not enough arguments")},O=c((function(t,e){_(this,{type:"URLSearchParamsIterator",iterator:g(v(t).entries),kind:e})}),"Iterator",(function(){var t=b(this),e=t.kind,n=t.iterator.next(),r=n.value;return n.done||(n.value="keys"===e?r.key:"values"===e?r.value:[r.key,r.value]),n})),U=function(){u(this,U,"URLSearchParams");var t,e,n,r,i,o,s,a=arguments.length>0?arguments[0]:void 0,c=this,l=[];if(_(c,{type:"URLSearchParams",entries:l,updateURL:function(){},updateSearchParams:B}),void 0!==a)if(p(a))if("function"==typeof(t=m(a)))for(e=t.call(a);!(n=e.next()).done;){if((i=(r=g(d(n.value))).next()).done||(o=r.next()).done||!r.next().done)throw TypeError("Expected sequence with length 2");l.push({key:i.value+"",value:o.value+""})}else for(s in a)h(a,s)&&l.push({key:s,value:a[s]+""});else F(l,"string"==typeof a?"?"===a.charAt(0)?a.slice(1):a:a+"")},k=U.prototype;s(k,{append:function(t,e){L(arguments.length,2);var n=v(this);n.entries.push({key:t+"",value:e+""}),n.updateURL()},delete:function(t){L(arguments.length,1);for(var e=v(this),n=e.entries,r=t+"",i=0;i<n.length;)n[i].key===r?n.splice(i,1):i++;e.updateURL()},get:function(t){L(arguments.length,1);for(var e=v(this).entries,n=t+"",r=0;r<e.length;r++)if(e[r].key===n)return e[r].value;return null},getAll:function(t){L(arguments.length,1);for(var e=v(this).entries,n=t+"",r=[],i=0;i<e.length;i++)e[i].key===n&&r.push(e[i].value);return r},has:function(t){L(arguments.length,1);for(var e=v(this).entries,n=t+"",r=0;r<e.length;)if(e[r++].key===n)return!0;return!1},set:function(t,e){L(arguments.length,1);for(var n,r=v(this),i=r.entries,o=!1,s=t+"",a=e+"",c=0;c<i.length;c++)(n=i[c]).key===s&&(o?i.splice(c--,1):(o=!0,n.value=a));o||i.push({key:s,value:a}),r.updateURL()},sort:function(){var t,e,n,r=v(this),i=r.entries,o=i.slice();for(i.length=0,n=0;n<o.length;n++){for(t=o[n],e=0;e<n;e++)if(i[e].key>t.key){i.splice(e,0,t);break}e===n&&i.push(t)}r.updateURL()},forEach:function(t){for(var e,n=v(this).entries,r=f(t,arguments.length>1?arguments[1]:void 0,3),i=0;i<n.length;)r((e=n[i++]).value,e.key,this)},keys:function(){return new O(this,"keys")},values:function(){return new O(this,"values")},entries:function(){return new O(this,"entries")}},{enumerable:!0}),o(k,y,k.entries),o(k,"toString",(function(){for(var t,e=v(this).entries,n=[],r=0;r<e.length;)t=e[r++],n.push(M(t.key)+"="+M(t.value));return n.join("&")}),{enumerable:!0}),a(U,"URLSearchParams"),r({global:!0,forced:!i},{URLSearchParams:U}),t.exports={URLSearchParams:U,getState:v}},,function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(411);const i="undefined"!=typeof __VERSION__?__VERSION__:"untranspiled source";Object(r.a)()},function(t,e,n){"use strict";var r=n(459);e.a={name:"project32",dependencies:[r.a],vs:"\nvec4 project_position_to_clipspace(\n vec3 position, vec3 position64Low, vec3 offset, out vec4 commonPosition\n) {\n vec3 projectedPosition = project_position(position, position64Low);\n if (project_uProjectionMode == PROJECTION_MODE_GLOBE) {\n // offset is specified as ENU\n // when in globe projection, rotate offset so that the ground alighs with the surface of the globe\n mat3 rotation = project_get_orientation_matrix(projectedPosition);\n offset = rotation * offset;\n }\n commonPosition = vec4(projectedPosition + offset, 1.0);\n return project_common_position_to_clipspace(commonPosition);\n}\n\nvec4 project_position_to_clipspace(\n vec3 position, vec3 position64Low, vec3 offset\n) {\n vec4 commonPosition;\n return project_position_to_clipspace(position, position64Low, offset, commonPosition);\n}\n"}},function(t,e){var n,r;n=this,r=function(){"use strict";var t,e,n;function r(r,i){if(t)if(e){var o="self.onerror = function() { console.error('An error occurred while parsing the WebWorker bundle. This is most likely due to improper transpilation by Babel; please see https://docs.mapbox.com/mapbox-gl-js/guides/install/#transpiling'); }; var sharedChunk = {}; ("+t+")(sharedChunk); ("+e+")(sharedChunk); self.onerror = null;",s={};t(s),n=i(s),"undefined"!=typeof window&&window&&window.URL&&window.URL.createObjectURL&&(n.workerUrl=window.URL.createObjectURL(new Blob([o],{type:"text/javascript"})))}else e=i;else t=i}return r(0,(function(t){var e="undefined"!=typeof self?self:{},n="2.15.0";let r;const i={API_URL:"https://api.mapbox.com",get API_URL_REGEX(){if(null==r){const t=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;try{r=null!=process.env.API_URL_REGEX?new RegExp(process.env.API_URL_REGEX):t}catch(e){r=t}}return r},get API_TILEJSON_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/v[0-9]*\/.*\.json.*$)/i},get API_SPRITE_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/styles\/v[0-9]*\/)(.*\/sprite.*\..*$)/i},get API_FONTS_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/fonts\/v[0-9]*\/)(.*\.pbf.*$)/i},get API_STYLE_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/styles\/v[0-9]*\/)(.*$)/i},get API_CDN_URL_REGEX(){return/^((https?:)?\/\/)?api\.mapbox\.c(n|om)(\/mapbox-gl-js\/)(.*$)/i},get EVENTS_URL(){if(!i.API_URL)return null;try{const t=new URL(i.API_URL);return"api.mapbox.cn"===t.hostname?"https://events.mapbox.cn/events/v2":"api.mapbox.com"===t.hostname?"https://events.mapbox.com/events/v2":null}catch(t){return null}},SESSION_PATH:"/map-sessions/v1",FEEDBACK_URL:"https://apps.mapbox.com/feedback",TILE_URL_VERSION:"v4",RASTER_URL_PREFIX:"raster/v1",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},o={supported:!1,testSupport:function(t){!c&&a&&(l?u(t):s=t)}};let s,a,c=!1,l=!1;function u(t){const e=t.createTexture();t.bindTexture(t.TEXTURE_2D,e);try{if(t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,a),t.isContextLost())return;o.supported=!0}
vendor: 6,651 bytes, line 26
26catch(t){}t.deleteTexture(e),c=!0}e.document&&(a=e.document.createElement("img"),a.onload=function(){s&&u(s),s=null,l=!0},a.onerror=function(){c=!0,s=null},a.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");const h="01";function f(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var d=p;function p(t,e,n,r){this.cx=3*t,this.bx=3*(n-t)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*e,this.by=3*(r-e)-this.cy,this.ay=1-this.cy-this.by,this.p1x=t,this.p1y=e,this.p2x=n,this.p2y=r}p.prototype={sampleCurveX:function(t){return((this.ax*t+this.bx)*t+this.cx)*t},sampleCurveY:function(t){return((this.ay*t+this.by)*t+this.cy)*t},sampleCurveDerivativeX:function(t){return(3*this.ax*t+2*this.bx)*t+this.cx},solveCurveX:function(t,e){if(void 0===e&&(e=1e-6),t<0)return 0;if(t>1)return 1;for(var n=t,r=0;r<8;r++){var i=this.sampleCurveX(n)-t;if(Math.abs(i)<e)return n;var o=this.sampleCurveDerivativeX(n);if(Math.abs(o)<1e-6)break;n-=i/o}var s=0,a=1;for(n=t,r=0;r<20&&(i=this.sampleCurveX(n),!(Math.abs(i-t)<e));r++)t>i?s=n:a=n,n=.5*(a-s)+s;return n},solve:function(t,e){return this.sampleCurveY(this.solveCurveX(t,e))}};var g=f(d),m=y;function y(t,e){this.x=t,this.y=e}y.prototype={clone:function(){return new y(this.x,this.y)},add:function(t){return this.clone()._add(t)},sub:function(t){return this.clone()._sub(t)},multByPoint:function(t){return this.clone()._multByPoint(t)},divByPoint:function(t){return this.clone()._divByPoint(t)},mult:function(t){return this.clone()._mult(t)},div:function(t){return this.clone()._div(t)},rotate:function(t){return this.clone()._rotate(t)},rotateAround:function(t,e){return this.clone()._rotateAround(t,e)},matMult:function(t){return this.clone()._matMult(t)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(t){return this.x===t.x&&this.y===t.y},dist:function(t){return Math.sqrt(this.distSqr(t))},distSqr:function(t){var e=t.x-this.x,n=t.y-this.y;return e*e+n*n},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(t){return Math.atan2(this.y-t.y,this.x-t.x)},angleWith:function(t){return this.angleWithSep(t.x,t.y)},angleWithSep:function(t,e){return Math.atan2(this.x*e-this.y*t,this.x*t+this.y*e)},_matMult:function(t){var e=t[2]*this.x+t[3]*this.y;return this.x=t[0]*this.x+t[1]*this.y,this.y=e,this},_add:function(t){return this.x+=t.x,this.y+=t.y,this},_sub:function(t){return this.x-=t.x,this.y-=t.y,this},_mult:function(t){return this.x*=t,this.y*=t,this},_div:function(t){return this.x/=t,this.y/=t,this},_multByPoint:function(t){return this.x*=t.x,this.y*=t.y,this},_divByPoint:function(t){return this.x/=t.x,this.y/=t.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var t=this.y;return this.y=this.x,this.x=-t,this},_rotate:function(t){var e=Math.cos(t),n=Math.sin(t),r=n*this.x+e*this.y;return this.x=e*this.x-n*this.y,this.y=r,this},_rotateAround:function(t,e){var n=Math.cos(t),r=Math.sin(t),i=e.y+r*(this.x-e.x)+n*(this.y-e.y);return this.x=e.x+n*(this.x-e.x)-r*(this.y-e.y),this.y=i,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},y.convert=function(t){return t instanceof y?t:Array.isArray(t)?new y(t[0],t[1]):t};var _=f(m);const v=Math.PI/180,b=180/Math.PI;function x(t){return t*v}function w(t){return t*b}const E=[[0,0],[1,0],[1,1],[0,1]];function S(t){if(t<=0)return 0;if(t>=1)return 1;const e=t*t,n=e*t;return 4*(t<.5?n:3*(t-e)+n-.75)}function C(t,e,n,r){const i=new g(t,e,n,r);return function(t){return i.solve(t)}}const A=C(.25,.1,.25,1);function I(t,e,n){return Math.min(n,Math.max(e,t))}function T(t,e,n){return(n=I((n-t)/(e-t),0,1))*n*(3-2*n)}function M(t,e,n){const r=n-e,i=((t-e)%r+r)%r+e;return i===e?n:i}function F(t,e,n){if(!t.length)return n(null,[]);let r=t.length;const i=new Array(t.length);let o=null;t.forEach((t,s)=>{e(t,(t,e)=>{t&&(o=t),i[s]=e,0==--r&&n(o,i)})})}function B(t){const e=[];for(const n in t)e.push(t[n]);return e}function L(t,...e){for(const n of e)for(const e in n)t[e]=n[e];return t}let O=1;function U(){return O++}function k(){return function t(e){return e?(e^Math.random()*(16>>e/4)).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,t)}()}function P(t){return t<=1?1:Math.pow(2,Math.ceil(Math.log(t)/Math.LN2))}function D(t){return!!t&&/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(t)}function R(t,e){t.forEach(t=>{e[t]&&(e[t]=e[t].bind(e))})}function j(t,e){return-1!==t.indexOf(e,t.length-e.length)}function z(t,e,n){const r={};for(const i in t)r[i]=e.call(n||this,t[i],i,t);return r}function Q(t,e,n){const r={};for(const i in t)e.call(n||this,t[i],i,t)&&(r[i]=t[i]);return r}function N(t){return Array.isArray(t)?t.map(N):"object"==typeof t&&t?z(t,N):t}const V={};function G(t){V[t]||("undefined"!=typeof console&&console.warn(t),V[t]=!0)}function H(t,e,n){return(n.y-t.y)*(e.x-t.x)>(e.y-t.y)*(n.x-t.x)}function Z(t){let e=0;for(let n,r,i=0,o=t.length,s=o-1;i<o;s=i++)n=t[i],r=t[s],e+=(r.x-n.x)*(n.y+r.y);return e}function W(){return"undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof self&&self instanceof WorkerGlobalScope}function X(t){const e={};if(t.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,(t,n,r,i)=>{const o=r||i;return e[n]=!o||o.toLowerCase(),""}),e["max-age"]){const t=parseInt(e["max-age"],10);isNaN(t)?delete e["max-age"]:e["max-age"]=t}return e}let Y=null;function q(t){if(null==Y){const e=t.navigator?t.navigator.userAgent:null;Y=!!t.safari||!(!e||!(/\b(iPad|iPhone|iPod)\b/.test(e)||e.match("Safari")&&!e.match("Chrome")))}return Y}function K(t){try{const n=e[t];return n.setItem("_mapbox_test_",1),n.removeItem("_mapbox_test_"),!0}catch(t){return!1}}function J(t,e){return[t[4*e],t[4*e+1],t[4*e+2],t[4*e+3]]}const $="mapbox-tiles";let tt,et,nt=500,rt=50;function it(){try{return e.caches}catch(t){}}function ot(){it()&&!tt&&(tt=e.caches.open($))}function st(t){const e=t.indexOf("?");if(e<0)return t;const n=function(t){const e=t.indexOf("?");return e>0?t.slice(e+1).split("&"):[]}(t).filter(t=>{const e=t.split("=");return"language"===e[0]||"worldview"===e[0]});return n.length?`${t.slice(0,e)}?${n.join("&")}`:t.slice(0,e)}let at=1/0;const ct={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image"};"function"==typeof Object.freeze&&Object.freeze(ct);
26class lt extends Error{constructor(t,e,n){401===e&&bt(n)&&(t+=": you may have provided an invalid Mapbox access token. See https://docs.mapbox.com/api/overview/#access-tokens-and-token-scopes"),super(t),this.status=e,this.url=n}toString(){return`${this.name}: ${this.message} (${this.status}): ${this.url}`}}const ut=W()?()=>self.worker&&self.worker.referrer:()=>("blob:"===e.location.protocol?e.parent:e).location.href,ht=function(t,n){if(!(/^file:/.test(r=t.url)||/^file:/.test(ut())&&!/^\w+:/.test(r))){if(e.fetch&&e.Request&&e.AbortController&&e.Request.prototype.hasOwnProperty("signal"))return function(t,n){const r=new e.AbortController,i=new e.Request(t.url,{method:t.method||"GET",body:t.body,credentials:t.credentials,headers:t.headers,referrer:ut(),referrerPolicy:t.referrerPolicy,signal:r.signal});let o=!1,s=!1;const a=(c=i.url).indexOf("sku=")>0&&bt(c);var c;"json"===t.type&&i.headers.set("Accept","application/json");const l=(r,o,c)=>{if(s)return;if(r&&"SecurityError"!==r.message&&G(r.toString()),o&&c)return u(o);const l=Date.now();e.fetch(i).then(e=>{if(e.ok){const t=a?e.clone():null;return u(e,t,l)}return n(new lt(e.statusText,e.status,t.url))}).catch(e=>{"AbortError"!==e.name&&n(new Error(`${e.message} ${t.url}`))})},u=(r,a,c)=>{("arrayBuffer"===t.type?r.arrayBuffer():"json"===t.type?r.json():r.text()).then(t=>{s||(a&&c&&function(t,n,r){if(ot(),!tt)return;const i={status:n.status,statusText:n.statusText,headers:new e.Headers};n.headers.forEach((t,e)=>i.headers.set(e,t));const o=X(n.headers.get("Cache-Control")||"");if(o["no-store"])return;o["max-age"]&&i.headers.set("Expires",new Date(r+1e3*o["max-age"]).toUTCString());const s=i.headers.get("Expires");s&&(new Date(s).getTime()-r<42e4||function(t,e){if(void 0===et)try{new Response(new ReadableStream),et=!0}catch(t){et=!1}et?e(t.body):t.blob().then(e)}(n,n=>{const r=new e.Response(n,i);ot(),tt&&tt.then(e=>e.put(st(t.url),r)).catch(t=>G(t.message))}))}(i,a,c),o=!0,n(null,t,r.headers.get("Cache-Control"),r.headers.get("Expires")))}).catch(t=>{s||n(new Error(t.message))})};return a?function(t,e){if(ot(),!tt)return e(null);const n=st(t.url);tt.then(t=>{t.match(n).then(r=>{const i=function(t){if(!t)return!1;const e=new Date(t.headers.get("Expires")||0),n=X(t.headers.get("Cache-Control")||"");return e>Date.now()&&!n["no-cache"]}(r);t.delete(n),i&&t.put(n,r.clone()),e(null,r,i)}).catch(e)}).catch(e)}(i,l):l(null,null),{cancel:()=>{s=!0,o||r.abort()}}}(t,n);if(W()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",t,n,void 0,!0)}var r;return function(t,n){const r=new e.XMLHttpRequest;r.open(t.method||"GET",t.url,!0),"arrayBuffer"===t.type&&(r.responseType="arraybuffer");for(const e in t.headers)r.setRequestHeader(e,t.headers[e]);return"json"===t.type&&(r.responseType="text",r.setRequestHeader("Accept","application/json")),r.withCredentials="include"===t.credentials,r.onerror=()=>{n(new Error(r.statusText))},r.onload=()=>{if((r.status>=200&&r.status<300||0===r.status)&&null!==r.response){let e=r.response;if("json"===t.type)try{e=JSON.parse(r.response)}catch(t){return n(t)}n(null,e,r.getResponseHeader("Cache-Control"),r.getResponseHeader("Expires"))}else n(new lt(r.statusText,r.status,t.url))},r.send(t.body),{cancel:()=>r.abort()}}(t,n)},ft=function(t,e){return ht(L(t,{type:"arrayBuffer"}),e)};function dt(t){const n=e.document.createElement("a");return n.href=t,n.protocol===e.document.location.protocol&&n.host===e.document.location.host}const pt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";let gt,mt;gt=[],mt=0;const yt=function(t,n){if(o.supported&&(t.headers||(t.headers={}),t.headers.accept="image/webp,*/*"),mt>=i.MAX_PARALLEL_IMAGE_REQUESTS){const e={requestParameters:t,callback:n,cancelled:!1,cancel(){this.cancelled=!0}};return gt.push(e),e}mt++;let r=!1;const s=()=>
26{if(!r)for(r=!0,mt--;gt.length&&mt<i.MAX_PARALLEL_IMAGE_REQUESTS;){const t=gt.shift(),{requestParameters:e,callback:n,cancelled:r}=t;r||(t.cancel=yt(e,n).cancel)}},a=ft(t,(t,r,i,o)=>{s(),t?n(t):r&&(e.createImageBitmap?function(t,n){const r=new e.Blob([new Uint8Array(t)],{type:"image/png"});e.createImageBitmap(r).then(t=>{n(null,t)}).catch(t=>{n(new Error(`Could not load image because of ${t.message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`))})}(r,(t,e)=>n(t,e,i,o)):function(t,n){const r=new e.Image,i=e.URL;r.onload=()=>{n(null,r),i.revokeObjectURL(r.src),r.onload=null,e.requestAnimationFrame(()=>{r.src=pt})},r.onerror=()=>n(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."));const o=new e.Blob([new Uint8Array(t)],{type:"image/png"});r.src=t.byteLength?i.createObjectURL(o):pt}(r,(t,e)=>n(t,e,i,o)))});return{cancel:()=>{a.cancel(),s()}}},_t="NO_ACCESS_TOKEN";function vt(t){return 0===t.indexOf("mapbox:")}function bt(t){return i.API_URL_REGEX.test(t)}function xt(t){return i.API_CDN_URL_REGEX.test(t)}function wt(t){return i.API_STYLE_REGEX.test(t)&&!Et(t)}function Et(t){return i.API_SPRITE_REGEX.test(t)}const St=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function Ct(t){const e=t.match(St);if(!e)throw new Error("Unable to parse URL object");return{protocol:e[1],authority:e[2],path:e[3]||"/",params:e[4]?e[4].split("&"):[]}}function At(t){const e=t.params.length?"?"+t.params.join("&"):"";return`${t.protocol}://${t.authority}${t.path}${e}`}const It="mapbox.eventData";function Tt(t){if(!t)return null;const n=t.split(".");if(!n||3!==n.length)return null;try{return JSON.parse(decodeURIComponent(e.atob(n[1]).split("").map(t=>"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)).join("")))}catch(t){return null}}class Mt{constructor(t){this.type=t,this.anonId=null,this.eventData={},this.queue=[],this.pendingRequest=null}getStorageKey(t){const n=Tt(i.ACCESS_TOKEN);let r="";return r=n&&n.u?e.btoa(encodeURIComponent(n.u).replace(/%([0-9A-F]{2})/g,(t,e)=>String.fromCharCode(Number("0x"+e)))):i.ACCESS_TOKEN||"",t?`${It}.${t}:${r}`:`${It}:${r}`}fetchEventData(){const t=K("localStorage"),n=this.getStorageKey(),r=this.getStorageKey("uuid");if(t)try{const t=e.localStorage.getItem(n);t&&(this.eventData=JSON.parse(t));const i=e.localStorage.getItem(r);i&&(this.anonId=i)}catch(t){G("Unable to read from LocalStorage")}}saveEventData(){const t=K("localStorage"),n=this.getStorageKey(),r=this.getStorageKey("uuid");if(t)try{e.localStorage.setItem(r,this.anonId),Object.keys(this.eventData).length>=1&&e.localStorage.setItem(n,JSON.stringify(this.eventData))}catch(t){G("Unable to write to LocalStorage")}}processRequests(t){}postEvent(t,e,n,r){if(!i.EVENTS_URL)return;const o=Ct(i.EVENTS_URL);o.params.push("access_token="+(r||i.ACCESS_TOKEN||""));const s={event:this.type,created:new Date(t).toISOString()},a=e?L(s,e):s,c={url:At(o),headers:{"Content-Type":"text/plain"},body:JSON.stringify([a])};this.pendingRequest=function(t,e){return ht(L(t,{method:"POST"}),e)}(c,t=>{this.pendingRequest=null,n(t),this.saveEventData(),this.processRequests(r)})}queueRequest(t,e){this.queue.push(t),this.processRequests(e)}}const Ft=new class extends Mt{constructor(t){super("appUserTurnstile"),this._customAccessToken=t}postTurnstileEvent(t,e){i.EVENTS_URL&&i.ACCESS_TOKEN&&Array.isArray(t)&&t.some(t=>vt(t)||bt(t))&&this.queueRequest(Date.now(),e)}processRequests(t){if(this.pendingRequest||0===this.queue.length)return;this.anonId&&this.eventData.lastSuccess&&this.eventData.tokenU||this.fetchEventData();const e=Tt(i.ACCESS_TOKEN),r=e?e.u:i.ACCESS_TOKEN;let o=r!==this.eventData.tokenU;D(this.anonId)||(this.anonId=k(),o=!0);const s=this.queue.shift();if(this.eventData.lastSuccess){const t=new Date(this.eventData.lastSuccess),e=new Date(s),n=(s-this.eventData.lastSuccess)/864e5;o=o||n>=1||n<-1||t.getDate()!==e.getDate()}else o=!0;o?this.postEvent(s,{sdkIdentifier:"mapbox-gl-js",sdkVersion:n,skuId:h,"enabled.telemetry":!1,userId:this.anonId},t=>{t||(this.eventData.lastSuccess=s,this.eventData.tokenU=r)},t):this.processRequests()}}
26,Bt=Ft.postTurnstileEvent.bind(Ft),Lt=new class extends Mt{constructor(){super("map.load"),this.success={},this.skuToken=""}postMapLoadEvent(t,e,n,r){this.skuToken=e,this.errorCb=r,i.EVENTS_URL&&(n||i.ACCESS_TOKEN?this.queueRequest({id:t,timestamp:Date.now()},n):this.errorCb(new Error(_t)))}processRequests(t){if(this.pendingRequest||0===this.queue.length)return;const{id:e,timestamp:r}=this.queue.shift();e&&this.success[e]||(this.anonId||this.fetchEventData(),D(this.anonId)||(this.anonId=k()),this.postEvent(r,{sdkIdentifier:"mapbox-gl-js",sdkVersion:n,skuId:h,skuToken:this.skuToken,userId:this.anonId},t=>{t?this.errorCb(t):e&&(this.success[e]=!0)},t))}},Ot=Lt.postMapLoadEvent.bind(Lt),Ut=new class extends Mt{constructor(){super("gljs.performance")}postPerformanceEvent(t,e){i.EVENTS_URL&&(t||i.ACCESS_TOKEN)&&this.queueRequest({timestamp:Date.now(),performanceData:e},t)}processRequests(t){if(this.pendingRequest||0===this.queue.length)return;const{timestamp:r,performanceData:i}=this.queue.shift(),o=function(t){const r=e.performance.getEntriesByType("resource"),i=e.performance.getEntriesByType("mark"),o=function(t){const e={};if(t)for(const n in t)if("other"!==n)for(const r of t[n]){const t=n+"ResolveRangeMin",i=n+"ResolveRangeMax",o=n+"RequestCount",s=n+"RequestCachedCount";e[t]=Math.min(e[t]||1/0,r.startTime),e[i]=Math.max(e[i]||-1/0,r.responseEnd);const a=t=>{void 0===e[t]&&(e[t]=0),++e[t]};void 0!==r.transferSize&&0===r.transferSize&&a(s),a(o)}return e}(function(t,e){const n={};if(t)for(const r of t){const t=e(r);void 0===n[t]&&(n[t]=[]),n[t].push(r)}return n}(r,Qt)),s=e.devicePixelRatio,a=e.navigator.connection||e.navigator.mozConnection||e.navigator.webkitConnection,c={counters:[],metadata:[],attributes:[]},l=(t,e,n)=>{null!=n&&t.push({name:e,value:n.toString()})};for(const t in o)l(c.counters,t,o[t]);if(t.interactionRange[0]!==1/0&&t.interactionRange[1]!==-1/0&&(l(c.counters,"interactionRangeMin",t.interactionRange[0]),l(c.counters,"interactionRangeMax",t.interactionRange[1])),i)for(const t of Object.keys(jt)){const e=jt[t],n=i.find(t=>t.name===e);n&&l(c.counters,e,n.startTime)}return l(c.counters,"visibilityHidden",t.visibilityHidden),l(c.attributes,"style",function(t){if(t)for(const e of t){const t=e.name.split("?")[0];if(wt(t)){const e=t.split("/").slice(-2);if(2===e.length)return`mapbox://styles/${e[0]}/${e[1]}`}}}(r)),l(c.attributes,"terrainEnabled",t.terrainEnabled?"true":"false"),l(c.attributes,"fogEnabled",t.fogEnabled?"true":"false"),l(c.attributes,"projection",t.projection),l(c.attributes,"zoom",t.zoom),l(c.metadata,"devicePixelRatio",s),l(c.metadata,"connectionEffectiveType",a?a.effectiveType:void 0),l(c.metadata,"navigatorUserAgent",e.navigator.userAgent),l(c.metadata,"screenWidth",e.screen.width),l(c.metadata,"screenHeight",e.screen.height),l(c.metadata,"windowWidth",e.innerWidth),l(c.metadata,"windowHeight",e.innerHeight),l(c.metadata,"mapWidth",t.width/s),l(c.metadata,"mapHeight",t.height/s),l(c.metadata,"webglRenderer",t.renderer),l(c.metadata,"webglVendor",t.vendor),l(c.metadata,"sdkVersion",n),l(c.metadata,"sdkIdentifier","mapbox-gl-js"),c}(i);for(const t of o.metadata);for(const t of o.counters);for(const t of o.attributes);this.postEvent(r,o,()=>{},t)}},kt=Ut.postPerformanceEvent.bind(Ut),Pt=new class extends Mt{constructor(){super("map.auth"),this.success={},this.skuToken=""}getSession(t,e,n,r){if(!i.API_URL||!i.SESSION_PATH)return;const o=Ct(i.API_URL+i.SESSION_PATH);o.params.push("sku="+(e||"")),o.params.push("access_token="+(r||i.ACCESS_TOKEN||""));const s={url:At(o),headers:{"Content-Type":"text/plain"}};this.pendingRequest=function(t,e){return ht(L(t,{method:"GET"}),e)}(s,t=>{this.pendingRequest=null,n(t),this.saveEventData(),this.processRequests(r)})}getSessionAPI(t,e,n,r){this.skuToken=e,this.errorCb=r,i.SESSION_PATH&&i.API_URL&&(n||i.ACCESS_TOKEN?this.queueRequest({id:t,timestamp:Date.now()},n):this.errorCb(new Error(_t)))}processRequests(t){if(this.pendingRequest||0===this.queue.length)return;const{id:e,timestamp:n}=this.queue.shift();e&&this.success[e]||this.getSession(n,this.skuToken,t=>{t?this.errorCb(t):e&&(this.success[e]=!0)},t)}},Dt=Pt.getSessionAPI.bind(Pt),Rt=new Set,jt={create:"create",load:"load",fullLoad:"fullLoad"},zt={mark(t){e.performance.mark(t)},measure(t,n,r){e.performance.measure(t,n,r)}};function Qt(t){const e=t.name.split("?")[0];return xt(e)&&e.includes("mapbox-gl.js")?"javascript":xt(e)&&e.includes("mapbox-gl.css")?"css":function(t){return i.API_FONTS_REGEX.test(t)}(e)?"fontRange":Et(e)?"sprite":wt(e)?"style":function(t){return i.API_TILEJSON_REGEX.test(t)}(e)?"tilejson":"other"}const Nt=e.performance;function Vt(t){const e=t?t.url.toString():void 0;return Nt.getEntriesByName(e)}let Gt,Ht,Zt,Wt;const Xt={now:()=>void 0!==Zt?Zt:e.performance.now(),setNow(t){Zt=t},restoreNow(){Zt=void 0},frame(t){const n=e.requestAnimationFrame(t);return{cancel:()=>e.cancelAnimationFrame(n)}},getImageData(t,n=0){const{width:r,height:i}=t;Wt||(Wt=e.document.createElement("canvas"));const o=Wt.getContext("2d",{willReadFrequently:!0});if(!o)throw new Error("failed to create canvas 2d context");return(r>Wt.width||i>Wt.height)&&(Wt.width=r,Wt.height=i),o.clearRect(-n,-n,r+2*n,i+2*n),o.drawImage(t,0,0,r,i),o.getImageData(-n,-n,r+2*n,i+2*n)},resolveURL:t=>(Gt||(Gt=e.document.createElement("a")),Gt.href=t,Gt.href),get devicePixelRatio(){return e.devicePixelRatio},get prefersReducedMotion(){return!!e.matchMedia&&(null==Ht&&(Ht=e.matchMedia("(prefers-reduced-motion: reduce)")),Ht.matches)}};function Yt(t,e,n){n[t]&&-1!==n[t].indexOf(e)||(n[t]=n[t]||[],n[t].push(e))}function qt(t,e,n){if(n&&n[t]){const r=n[t].indexOf(e);-1!==r&&n[t].splice(r,1)}}class Kt{constructor(t,e={}){L(this,e),this.type=t}}class Jt extends Kt{constructor(t,e={}){super("error",L({error:t},e))}}class $t{on(t,e){return this._listeners=this._listeners||{},Yt(t,e,this._listeners),this}off(t,e){return qt(t,e,this._listeners),qt(t,e,this._oneTimeListeners),this}once(t,e){return e?(this._oneTimeListeners=this._oneTimeListeners||{},Yt(t,e,this._oneTimeListeners),this):new Promise(e=>this.once(t,e))}fire(t,e){"string"==typeof t&&(t=new Kt(t,e||{}));const n=t.type;if(this.listens(n)){t.target=this;const e=this._listeners&&this._listeners[n]?this._listeners[n].slice():[];for(const n of e)n.call(this,t);const r=this._oneTimeListeners&&this._oneTimeListeners[n]?this._oneTimeListeners[n].slice():[];for(const e of r)qt(n,e,this._oneTimeListeners),e.call(this,t);const i=this._eventedParent;i&&(L(t,"function"==typeof this._eventedParentData?this._eventedParentData():this._eventedParentData),i.fire(t))}else t instanceof Jt&&console.error(t.error);return this}listens(t){return!!(this._listeners&&this._listeners[t]&&this._listeners[t].length>0||this._oneTimeListeners&&this._oneTimeListeners[t]&&this._oneTimeListeners[t].length>0||this._eventedParent&&this._eventedParent.listens(t))}setEventedParent(t,e){return this._eventedParent=t,this._eventedParentData=e,this}}var te=JSON.parse('{"$version":8,"$root":{"version":{"required":true,"type":"enum","values":[8]},"name":{"type":"string"},"metadata":{"type":"*"},"center":{"type":"array","value":"number"},"zoom":{"type":"number"},"bearing":{"type":"number","default":0,"period":360,"units":"degrees"},"pitch":{"type":"number","default":0,"units":"degrees"},"light":{"type":"light"},"terrain":{"type":"terrain"},"fog":{"type":"fog"},"sources":{"required":true,"type":"sources"},"sprite":{"type":"string"},"glyphs":{"type":"string"},"transition":{"type":"transition"},"projection":{"type":"projection"},"layers":{"required":true,"type":"array","value":"layer"}},"sources":{"*":{"type":"source"}},"source":["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],"source_vector":{"type":{"required":true,"type":"enum","values":{"vector":{}}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"scheme":{"type":"enum","values":{"xyz":{},"tms":{}},"default":"xyz"},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"attribution":{"type":"string"},"promoteId":{"type":"promoteId"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_raster":{"type":{"required":true,"type":"enum","values":{"raster":{}}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"tileSize":{"type":"number","default":512,"units":"pixels"},"scheme":{"type":"enum","values":{"xyz":{},"tms":{}},"default":"xyz"},"attribution":{"type":"string"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_raster_dem":{"type":{"required":true,"type":"enum","values":{"raster-dem":{}}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"tileSize":{"type":"number","default":512,"units":"pixels"},"attribution":{"type":"string"},"encoding":{"type":"enum","values":{"terrarium":{},"mapbox":{}},"default":"mapbox"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_geojson":{"type":{"required":true,"type":"enum","values":{"geojson":{}}},"data":{"type":"*"},"maxzoom":{"type":"number","default":18},"attribution":{"type":"string"},"buffer":{"type":"number","default":128,"maximum":512,"minimum":0},"filter":{"type":"*"},"tolerance":{"type":"number","default":0.375},"cluster":{"type":"boolean","default":false},"clusterRadius":{"type":"number","default":50,"minimum":0}
26,"clusterMaxZoom":{"type":"number"},"clusterMinPoints":{"type":"number"},"clusterProperties":{"type":"*"},"lineMetrics":{"type":"boolean","default":false},"generateId":{"type":"boolean","default":false},"promoteId":{"type":"promoteId"}},"source_video":{"type":{"required":true,"type":"enum","values":{"video":{}}},"urls":{"required":true,"type":"array","value":"string"},"coordinates":{"required":true,"type":"array","length":4,"value":{"type":"array","length":2,"value":"number"}}},"source_image":{"type":{"required":true,"type":"enum","values":{"image":{}}},"url":{"required":true,"type":"string"},"coordinates":{"required":true,"type":"array","length":4,"value":{"type":"array","length":2,"value":"number"}}},"layer":{"id":{"type":"string","required":true},"type":{"type":"enum","values":{"fill":{},"line":{},"symbol":{},"circle":{},"heatmap":{},"fill-extrusion":{},"raster":{},"hillshade":{},"background":{},"sky":{}},"required":true},"metadata":{"type":"*"},"source":{"type":"string"},"source-layer":{"type":"string"},"minzoom":{"type":"number","minimum":0,"maximum":24},"maxzoom":{"type":"number","minimum":0,"maximum":24},"filter":{"type":"filter"},"layout":{"type":"layout"},"paint":{"type":"paint"}},"layout":["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background","layout_sky"],"layout_background":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_sky":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_fill":{"fill-sort-key":{"type":"number","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_circle":{"circle-sort-key":{"type":"number","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_heatmap":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_fill-extrusion":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"},"fill-extrusion-edge-radius":{"type":"number","private":true,"default":0,"minimum":0,"maximum":1
vendor: 16,128 bytes, line 26
26,"property-type":"constant"}},"layout_line":{"line-cap":{"type":"enum","values":{"butt":{},"round":{},"square":{}},"default":"butt","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-join":{"type":"enum","values":{"bevel":{},"round":{},"miter":{}},"default":"miter","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{"type":"number","default":2,"requires":[{"line-join":"miter"}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"line-round-limit":{"type":"number","default":1.05,"requires":[{"line-join":"round"}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"line-sort-key":{"type":"number","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_symbol":{"symbol-placement":{"type":"enum","values":{"point":{},"line":{},"line-center":{}},"default":"point","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"symbol-spacing":{"type":"number","default":250,"minimum":1,"units":"pixels","requires":[{"symbol-placement":"line"}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{"type":"boolean","default":false,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{"type":"number","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{"type":"enum","values":{"auto":{},"viewport-y":{},"source":{}},"default":"auto","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{"type":"boolean","default":false,"requires":["icon-image"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{"type":"boolean","default":false,"requires":["icon-image"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-optional":{"type":"boolean","default":false,"requires":["icon-image","text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{"type":"enum","values":{"map":{},"viewport":{},"auto":{}},"default":"auto","requires":["icon-image"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-size":{"type":"number","default":1,"minimum":0,"units":"factor of the original icon size","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{"type":"enum","values":{"none":{},"width":{},"height":{},"both":{}},"default":"none","requires":["icon-image","text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{"type":"array","value":"number","length":4,"default":[0,0,0,0],"units":"pixels","requires":["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"icon-image":{"type":"resolvedImage","tokens":true,"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{"type":"number","default":0,"period":360,"units":"degrees","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{"type":"number","default":2,"minimum":0,"units":"pixels","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{"type":"boolean","default":false,"requires":["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-offset":{"type":"array","value":"number","length":2,"default":[0,0],"requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{"type":"enum","values":{"center":{},"left":{},"right":{},"top":{},"bottom":{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},"default":"center","requires":["icon-image"],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{"type":"enum","values":{"map":{},"viewport":{},"auto":{}},"default":"auto","requires":["icon-image"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{"type":"enum","values":{"map":{},"viewport":{},"auto":{}},"default":"auto","requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{"type":"enum","values":{"map":{},"viewport":{},"auto":{}},"default":"auto","requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-field":{"type":"formatted","default":"","tokens":true,"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-font":{"type":"array","value":"string","default":["Open Sans Regular","Arial Unicode MS Regular"],"requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-size":{"type":"number","default":16,"minimum":0,"units":"pixels","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{"type":"number","default":10,"minimum":0,"units":"ems","requires":["text-field",{"symbol-placement":["point"]}],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{"type":"number","default":1.2,"units":"ems","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-letter-spacing":{"type":"number","default":0,"units":"ems","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-justify":{"type":"enum","values":{"auto":{},"left":{},"center":{},"right":{}},"default":"center","requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{"type":"number","units":"ems","default":0,"requires":["text-field"],"property-type":"data-driven","expression":{"interpolated":true,"parameters":["zoom","feature"]}},"text-variable-anchor":{"type":"array","value":"enum","values":{"center":{},"left":{},"right":{},"top":{},"bottom":{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},"requires":["text-field",{"symbol-placement":["point"]}],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-anchor":{"type":"enum","values":{"center":{},"left":{},"right":{},"top":{},"bottom":{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},"default":"center","requires":["text-field",{"!":"text-variable-anchor"}],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{"type":"number","default":45,"units":"degrees","requires":["text-field",{"symbol-placement":["line","line-center"]}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"text-writing-mode":{"type":"array","value":"enum","values":{"horizontal":{},"vertical":{}},"requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-rotate":{"type":"number","default":0,"period":360,"units":"degrees","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-padding":{"type":"number","default":2,"minimum":0,"units":"pixels","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"text-keep-upright":{"type":"boolean","default":true,"requires":["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-transform":{"type":"enum","values":{"none":{},"uppercase":{},"lowercase":{}},"default":"none","requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-offset":{"type":"array","value":"number","units":"ems","length":2,"default":[0,0],"requires":["text-field",{"!":"text-radial-offset"}],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{"type":"boolean","default":false,"requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{"type":"boolean","default":false,"requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-optional":{"type":"boolean","default":false,"requires":["text-field","icon-image"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_raster":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_hillshade":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"filter":{"type":"array","value":"*"},"filter_symbol":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature","pitch","distance-from-center"]}},"filter_fill":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature"]}},"filter_line":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature"]}},"filter_circle":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature"]}},"filter_fill-extrusion":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature"]}},"filter_heatmap":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature"]}},"filter_operator":{"type":"enum","values":{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},"in":{},"!in":{},"all":{},"any":{},"none":{},"has":{},"!has":{},"within":{}}},"geometry_type":{"type":"enum","values":{"Point":{},"LineString":{},"Polygon":{}}},"function":{"expression":{"type":"expression"},"stops":{"type":"array","value":"function_stop"},"base":{"type":"number","default":1,"minimum":0},"property":{"type":"string","default":"$zoom"},"type":{"type":"enum","values":{"identity":{},"exponential":{},"interval":{},"categorical":{}},"default":"exponential"},"colorSpace":{"type":"enum","values":{"rgb":{},"lab":{},"hcl":{}},"default":"rgb"},"default":{"type":"*","required":false}},"function_stop":{"type":"array","minimum":0,"maximum":24,"value":["number","color"],"length":2},"expression":{"type":"array","value":"*","minimum":1},"fog":{"range":{"type":"array","default":[0.5,10],"minimum":-20,"maximum":20,"length":2,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"high-color":{"type":"color","property-type":"data-constant","default":"#245cdf","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"space-color":{"type":"color","property-type":"data-constant","default":["interpolate",["linear"],["zoom"],4,"#010b19",7,"#367ab9"],"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"horizon-blend":{"type":"number","property-type":"data-constant","default":["interpolate",["linear"],["zoom"],4,0.2,7,0.1],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"star-intensity":{"type":"number","property-type":"data-constant","default":["interpolate",["linear"],["zoom"],5,0.35,6,0],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"light":{"anchor":{"type":"enum","default":"viewport","values":{"map":{},"viewport":{}},"property-type":"data-constant","transition":false,"expression":{"interpolated":false,"parameters":["zoom"]}},"position":{"type":"array","default":[1.15,210,30],"length":3,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"intensity":{"type":"number","property-type":"data-constant","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"projection":{"name":{"type":"enum","values":{"albers":{},"equalEarth":{},"equirectangular":{},"lambertConformalConic":{},"mercator":{},"naturalEarth":{},"winkelTripel":{},"globe":{}},"default":"mercator","required":true},"center":{"type":"array","length":2,"value":"number","property-type":"data-constant","minimum":[-180,-90],"maximum":[180,90],"transition":false,"requires":[{"name":["albers","lambertConformalConic"]}]},"parallels":{"type":"array","length":2,"value":"number","property-type":"data-constant","minimum":[-90,-90],"maximum":[90,90],"transition":false,"requires":[{"name":["albers","lambertConformalConic"]}]}},"terrain":{"source":{"type":"string","required":true},"exaggeration":{"type":"number","property-type":"data-constant","default":1,"minimum":0,"maximum":1000,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true,"requires":["source"]}},"paint":["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background","paint_sky"],"paint_fill":{"fill-antialias":{"type":"boolean","default":true,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"fill-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{"type":"color","default":"#000000","transition":true,"requires":[{"!":"fill-pattern"}],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{"type":"color","transition":true,"requires":[{"!":"fill-pattern"},{"fill-antialias":true}],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["fill-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"fill-pattern":{"type":"resolvedImage","transition":
vendor: 17,203 bytes, line 26
26false,"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{"type":"color","default":"#000000","transition":true,"requires":[{"!":"fill-extrusion-pattern"}],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["fill-extrusion-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{"type":"resolvedImage","transition":false,"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"fill-extrusion-height":{"type":"number","default":0,"minimum":0,"units":"meters","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{"type":"number","default":0,"minimum":0,"units":"meters","transition":true,"requires":["fill-extrusion-height"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{"type":"boolean","default":true,"transition":false,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-ambient-occlusion-intensity":{"property-type":"data-constant","type":"number","private":true,"default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-radius":{"property-type":"data-constant","type":"number","private":true,"default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true,"requires":["fill-extrusion-edge-radius"]},"fill-extrusion-rounded-roof":{"type":"boolean","default":true,"requires":["fill-extrusion-edge-radius"],"transition":false,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_line":{"line-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{"type":"color","default":"#000000","transition":true,"requires":[{"!":"line-pattern"}],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["line-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"line-width":{"type":"number","default":1,"minimum":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{"type":"number","default":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{"type":"array","value":"number","minimum":0,"transition":false,"units":"line widths","requires":[{"!":"line-pattern"}],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-pattern":{"type":"resolvedImage","transition":false,"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-gradient":{"type":"color","transition":false,"requires":[{"!":"line-pattern"},{"source":"geojson","has":{"lineMetrics":true}}],"expression":{"interpolated":true,"parameters":["line-progress"]},"property-type":"color-ramp"},"line-trim-offset":{"type":"array","value":"number","length":2,"default":[0,0],"minimum":[0,0],"maximum":[1,1],"transition":false,"requires":[{"source":"geojson","has":{"lineMetrics":true}}],"property-type":"constant"}},"paint_circle":{"circle-radius":{"type":"number","default":5,"minimum":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{"type":"number","default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["circle-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{"type":"enum","values":{"map":{},"viewport":{}},"default":"viewport","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"}},"paint_heatmap":{"heatmap-radius":{"type":"number","default":30,"minimum":1,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{"type":"number","default":1,"minimum":0,"transition":false,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"heatmap-color":{"type":"color","default":["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",0.1,"royalblue",0.3,"cyan",0.5,"lime",0.7,"yellow",1,"red"],"transition":false,"expression":{"interpolated":true,"parameters":["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_symbol":{"icon-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{"type":"color","default":"#000000","transition":true,"requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","transition":true,"requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["icon-image","icon-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{"type":"color","default":"#000000","transition":true,"overridable":true,"requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","transition":true,"requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["text-field","text-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_raster":{"raster-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{"type":"number","default":0,"period":360,"transition":true,"units":"degrees","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{"type":"number","default":0,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-saturation":{"type":"number","default":0,"minimum":-1,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-contrast":{"type":"number","default":0,"minimum":-1,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-resampling":{"type":"enum","values":{"linear":{},"nearest":{}},"default":"linear","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{"type":"number","default":300,"minimum":0,"transition":false,"units":"milliseconds","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_hillshade":{"hillshade-illumination-direction":{"type":"number","default":335,"minimum":0,"maximum":359,"transition":false,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"viewport","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{"type":"number","default":0.5,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{"type":"color","default":"#FFFFFF","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_background":{"background-color":{"type":"color","default":"#000000","transition":true,"requires":[{"!":"background-pattern"}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"background-pattern":{"type":"resolvedImage","transition":false,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"background-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_sky":{"sky-type":{"type":"enum","values":{"gradient":{},"atmosphere":{}},"default":"atmosphere","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun":{"type":"array","value":"number","length":2,"units":"degrees","minimum":[0,0],"maximum":[360,180],"transition":false,"requires":[{"sky-type":"atmosphere"}],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun-intensity":{"type":"number","requires":[{"sky-type":"atmosphere"}],"default":10,"minimum":0,"maximum":100,"transition":false,"property-type":"data-constant"},"sky-gradient-center":{"type":"array","requires":[{"sky-type":"gradient"}],"value":"number","default":[0,0],"length":2,"units":"degrees","minimum":[0,0],"maximum":[360,180],"transition":false,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"sky-gradient-radius":{"type":"number","requires":[{"sky-type":"gradient"}],"default":90,"minimum":0,"maximum":180,"transition":false,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"sky-gradient":{"type":"color","default":["interpolate",["linear"],["sky-radial-progress"],0.8,"#87ceeb",1,"white"],"transition":false,"requires":[{"sky-type":"gradient"}],"expression":{"interpolated":true,"parameters":["sky-radial-progress"]},"property-type":"color-ramp"},"sky-atmosphere-halo-color":{"type":"color","default":"white","transition":false,"requires":[{"sky-type":"atmosphere"}],"property-type":"data-constant"},"sky-atmosphere-color":{"type":"color","default":"white","transition":false,"requires":[{"sky-type":"atmosphere"}],"property-type":"data-constant"},"sky-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"transition":{"duration":{"type":"number","default":300,"minimum":0,"units":"milliseconds"},"delay":{"type":"number","default":0,"minimum":0,"units":"milliseconds"}},"property-type":{"data-driven":{"type":"property-type"},"color-ramp":{"type":"property-type"},"data-constant":{"type":"property-type"},"constant":{"type":"property-type"}},"promoteId":{"*":{"type":"string"}}}');function ee(t,...e){for(const n of e)for(const e in n)t[e]=n[e];return t}function ne(t){return t instanceof Number||t instanceof String||t instanceof Boolean?t.valueOf():t}function re(t){if(Array.isArray(t))return t.map(re);if(t instanceof Object&&!(t instanceof Number||t instanceof String||t instanceof Boolean)){const e={};for(const n in t)e[n]=re(t[n]);return e}return ne(t)}
vendor: 69,550 bytes, line 26
26class ie extends Error{constructor(t,e){super(e),this.message=e,this.key=t}}var oe=ie;class se{constructor(t,e=[]){this.parent=t,this.bindings={};for(const[t,n]of e)this.bindings[t]=n}concat(t){return new se(this,t)}get(t){if(this.bindings[t])return this.bindings[t];if(this.parent)return this.parent.get(t);throw new Error(t+" not found in scope.")}has(t){return!!this.bindings[t]||!!this.parent&&this.parent.has(t)}}var ae=se;const ce={kind:"null"},le={kind:"number"},ue={kind:"string"},he={kind:"boolean"},fe={kind:"color"},de={kind:"object"},pe={kind:"value"},ge={kind:"collator"},me={kind:"formatted"},ye={kind:"resolvedImage"};function _e(t,e){return{kind:"array",itemType:t,N:e}}function ve(t){if("array"===t.kind){const e=ve(t.itemType);return"number"==typeof t.N?`array<${e}, ${t.N}>`:"value"===t.itemType.kind?"array":`array<${e}>`}return t.kind}const be=[ce,le,ue,he,fe,me,de,_e(pe),ye];function xe(t,e){if("error"===e.kind)return null;if("array"===t.kind){if("array"===e.kind&&(0===e.N&&"value"===e.itemType.kind||!xe(t.itemType,e.itemType))&&("number"!=typeof t.N||t.N===e.N))return null}else{if(t.kind===e.kind)return null;if("value"===t.kind)for(const t of be)if(!xe(t,e))return null}return`Expected ${ve(t)} but found ${ve(e)} instead.`}function we(t,e){return e.some(e=>e.kind===t.kind)}function Ee(t,e){return e.some(e=>"null"===e?null===t:"array"===e?Array.isArray(t):"object"===e?t&&!Array.isArray(t)&&"object"==typeof t:e===typeof t)}var Se,Ce={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 Ae(t){return(t=Math.round(t))<0?0:t>255?255:t}function Ie(t){return Ae("%"===t[t.length-1]?parseFloat(t)/100*255:parseInt(t))}function Te(t){return(e="%"===t[t.length-1]?parseFloat(t)/100:parseFloat(t))<0?0:e>1?1:e;var e}function Me(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}try{Se={}.parseCSSColor=function(t){var e,n=t.replace(/ /g,"").toLowerCase();if(n in Ce)return Ce[n].slice();if("#"===n[0])return 4===n.length?(e=parseInt(n.substr(1),16))>=0&&e<=4095?[(3840&e)>>4|(3840&e)>>8,240&e|(240&e)>>4,15&e|(15&e)<<4,1]:null:7===n.length&&(e=parseInt(n.substr(1),16))>=0&&e<=16777215?[(16711680&e)>>16,(65280&e)>>8,255&e,1]:null;var r=n.indexOf("("),i=n.indexOf(")");if(-1!==r&&i+1===n.length){var o=n.substr(0,r),s=n.substr(r+1,i-(r+1)).split(","),a=1;switch(o){case"rgba":if(4!==s.length)return null;a=Te(s.pop());case"rgb":return 3!==s.length?null:[Ie(s[0]),Ie(s[1]),Ie(s[2]),a];case"hsla":if(4!==s.length)return null;a=Te(s.pop());case"hsl":if(3!==s.length)return null;var c=(parseFloat(s[0])%360+360)%360/360,l=Te(s[1]),u=Te(s[2]),h=u<=.5?u*(l+1):u+l-u*l,f=2*u-h;return[Ae(255*Me(f,h,c+1/3)),Ae(255*Me(f,h,c)),Ae(255*Me(f,h,c-1/3)),a];default:return null}}return null}}catch(t){}class Fe{constructor(t,e,n,r=1){this.r=t,this.g=e,this.b=n,this.a=r}static parse(t){if(!t)return;if(t instanceof Fe)return t;if("string"!=typeof t)return;const e=Se(t);return e?new Fe(e[0]/255*e[3],e[1]/255*e[3],e[2]/255*e[3],e[3]):void 0}toString(){const[t,e,n,r]=this.toArray();return`rgba(${Math.round(t)},${Math.round(e)},${Math.round(n)},${r})`}toArray(){const{r:t,g:e,b:n,a:r}=this;return 0===r?[0,0,0,0]:[255*t/r,255*e/r,255*n/r,r]}toArray01(){const{r:t,g:e,b:n,a:r}=this;return 0===r?[0,0,0,0]:[t/r,e/r,n/r,r]}toArray01PremultipliedAlpha(){const{r:t,g:e,b:n,a:r}=this;return[t,e,n,r]}}Fe.black=new Fe(0,0,0,1),Fe.white=new Fe(1,1,1,1),Fe.transparent=new Fe(0,0,0,0),Fe.red=new Fe(1,0,0,1),Fe.blue=new Fe(0,0,1,1);var Be=Fe;class Le{constructor(t,e,n){this.sensitivity=t?e?"variant":"case":e?"accent":"base",this.locale=n,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(t,e){return this.collator.compare(t,e)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class Oe{constructor(t,e,n,r,i){this.text=t.normalize?t.normalize():t,this.image=e,this.scale=n,this.fontStack=r,this.textColor=i}}class Ue{constructor(t){this.sections=t}static fromString(t){return new Ue([new Oe(t,null,null,null,null)])}isEmpty(){return 0===this.sections.length||!this.sections.some(t=>0!==t.text.length||t.image&&0!==t.image.name.length)}static factory(t){return t instanceof Ue?t:Ue.fromString(t)}toString(){return 0===this.sections.length?"":this.sections.map(t=>t.text).join("")}serialize(){const t=["format"];for(const e of this.sections){if(e.image){t.push(["image",e.image.name]);continue}t.push(e.text);const n={};e.fontStack&&(n["text-font"]=["literal",e.fontStack.split(",")]),e.scale&&(n["font-scale"]=e.scale),e.textColor&&(n["text-color"]=["rgba"].concat(e.textColor.toArray())),t.push(n)}return t}}class ke{constructor(t){this.name=t.name,this.available=t.available}toString(){return this.name}static fromString(t){return t?new ke({name:t,available:!1}):null}serialize(){return["image",this.name]}}function Pe(t,e,n,r){return"number"==typeof t&&t>=0&&t<=255&&"number"==typeof e&&e>=0&&e<=255&&"number"==typeof n&&n>=0&&n<=255?void 0===r||"number"==typeof r&&r>=0&&r<=1?null:`Invalid rgba value [${[t,e,n,r].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${("number"==typeof r?[t,e,n,r]:[t,e,n]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function De(t){if(null===t)return!0;if("string"==typeof t)return!0;if("boolean"==typeof t)return!0;if("number"==typeof t)return!0;if(t instanceof Be)return!0;if(t instanceof Le)return!0;if(t instanceof Ue)return!0;if(t instanceof ke)return!0;if(Array.isArray(t)){for(const e of t)if(!De(e))return!1;return!0}if("object"==typeof t){for(const e in t)if(!De(t[e]))return!1;return!0}return!1}function Re(t){if(null===t)return ce;if("string"==typeof t)return ue;if("boolean"==typeof t)return he;if("number"==typeof t)return le;if(t instanceof Be)return fe;if(t instanceof Le)return ge;if(t instanceof Ue)return me;if(t instanceof ke)return ye;if(Array.isArray(t)){const e=t.length;let n;for(const e of t){const t=Re(e);if(n){if(n===t)continue;n=pe;break}n=t}return _e(n||pe,e)}return de}function je(t){const e=typeof t;return null===t?"":"string"===e||"number"===e||"boolean"===e?String(t):t instanceof Be||t instanceof Ue||t instanceof ke?t.toString():JSON.stringify(t)}class ze{constructor(t,e){this.type=t,this.value=e}static parse(t,e){if(2!==t.length)return e.error(`'literal' expression requires exactly one argument, but found ${t.length-1} instead.`);if(!De(t[1]))return e.error("invalid value");const n=t[1];let r=Re(n);const i=e.expectedType;return"array"!==r.kind||0!==r.N||!i||"array"!==i.kind||"number"==typeof i.N&&0!==i.N||(r=i),new ze(r,n)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}serialize(){return"array"===this.type.kind||"object"===this.type.kind?["literal",this.value]:this.value instanceof Be?["rgba"].concat(this.value.toArray()):this.value instanceof Ue?this.value.serialize():this.value}}var Qe=ze,Ne=class{constructor(t){this.name="ExpressionEvaluationError",this.message=t}toJSON(){return this.message}};const Ve={string:ue,number:le,boolean:he,object:de};class Ge{constructor(t,e){this.type=t,this.args=e}static parse(t,e){if(t.length<2)return e.error("Expected at least one argument.");let n,r=1;const i=t[0];if("array"===i){let i,o;if(t.length>2){const n=t[1];if("string"!=typeof n||!(n in Ve)||"object"===n)return e.error('The item type argument of "array" must be one of string, number, boolean',1);i=Ve[n],r++}else i=pe;if(t.length>3){if(null!==t[2]&&("number"!=typeof t[2]||t[2]<0||t[2]!==Math.floor(t[2])))return e.error('The length argument to "array" must be a positive integer literal',2);o=t[2],r++}n=_e(i,o)}else n=Ve[i];const o=[];for(;r<t.length;r++){const n=e.parse(t[r],r,pe);if(!n)return null;o.push(n)}return new Ge(n,o)}evaluate(t){for(let e=0;e<this.args.length;e++){const n=this.args[e].evaluate(t);if(!xe(this.type,Re(n)))return n;if(e===this.args.length-1)throw new Ne(`Expected value to be of type ${ve(this.type)}, but found ${ve(Re(n))} instead.`)}return null}eachChild(t){this.args.forEach(t)}outputDefined(){return this.args.every(t=>t.outputDefined())}serialize(){const t=this.type,e=[t.kind];if("array"===t.kind){const n=t.itemType;if("string"===n.kind||"number"===n.kind||"boolean"===n.kind){e.push(n.kind);const r=t.N;("number"==typeof r||this.args.length>1)&&e.push(r)}}return e.concat(this.args.map(t=>t.serialize()))}}var He=Ge;class Ze{constructor(t){this.type=me,this.sections=t}static parse(t,e){if(t.length<2)return e.error("Expected at least one argument.");const n=t[1];if(!Array.isArray(n)&&"object"==typeof n)return e.error("First argument must be an image or text section.");const r=[];let i=!1;for(let n=1;n<=t.length-1;++n){const o=t[n];if(i&&"object"==typeof o&&!Array.isArray(o)){i=!1;let t=null;if(o["font-scale"]&&(t=e.parse(o["font-scale"],1,le),!t))return null;let n=null;if(o["text-font"]&&(n=e.parse(o["text-font"],1,_e(ue)),!n))return null;let s=null;if(o["text-color"]&&(s=e.parse(o["text-color"],1,fe),!s))return null;const a=r[r.length-1];a.scale=t,a.font=n,a.textColor=s}else{const o=e.parse(t[n],1,pe);if(!o)return null;const s=o.type.kind;if("string"!==s&&"value"!==s&&"null"!==s&&"resolvedImage"!==s)return e.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");i=!0,r.push({content:o,scale:null,font:null,textColor:null})}}return new Ze(r)}evaluate(t){return new Ue(this.sections.map(e=>{const n=e.content.evaluate(t);return Re(n)===ye?new Oe("",n,null,null,null):new Oe(je(n),null,e.scale?e.scale.evaluate(t):null,e.font?e.font.evaluate(t).join(","):null,e.textColor?e.textColor.evaluate(t):null)}))}eachChild(t){for(const e of this.sections)t(e.content),e.scale&&t(e.scale),e.font&&t(e.font),e.textColor&&t(e.textColor)}outputDefined(){return!1}serialize(){const t=["format"];for(const e of this.sections){t.push(e.content.serialize());const n={};e.scale&&(n["font-scale"]=e.scale.serialize()),e.font&&(n["text-font"]=e.font.serialize()),e.textColor&&(n["text-color"]=e.textColor.serialize()),t.push(n)}return t}}class We{constructor(t){this.type=ye,this.input=t}static parse(t,e){if(2!==t.length)return e.error("Expected two arguments.");const n=e.parse(t[1],1,ue);return n?new We(n):e.error("No image name provided.")}evaluate(t){const e=this.input.evaluate(t),n=ke.fromString(e);return n&&t.availableImages&&(n.available=t.availableImages.indexOf(e)>-1),n}eachChild(t){t(this.input)}outputDefined(){return!1}serialize(){return["image",this.input.serialize()]}}const Xe={"to-boolean":he,"to-color":fe,"to-number":le,"to-string":ue};class Ye{constructor(t,e){this.type=t,this.args=e}static parse(t,e){if(t.length<2)return e.error("Expected at least one argument.");const n=t[0];if(("to-boolean"===n||"to-string"===n)&&2!==t.length)return e.error("Expected one argument.");const r=Xe[n],i=[];for(let n=1;n<t.length;n++){const r=e.parse(t[n],n,pe);if(!r)return null;i.push(r)}return new Ye(r,i)}evaluate(t){if("boolean"===this.type.kind)return Boolean(this.args[0].evaluate(t));if("color"===this.type.kind){let e,n;for(const r of this.args){if(e=r.evaluate(t),n=null,e instanceof Be)return e;if("string"==typeof e){const n=t.parseColor(e);if(n)return n}else if(Array.isArray(e)&&(n=e.length<3||e.length>4?`Invalid rbga value ${JSON.stringify(e)}: expected an array containing either three or four numeric values.`:Pe(e[0],e[1],e[2],e[3]),!n))return new Be(e[0]/255,e[1]/255,e[2]/255,e[3])}throw new Ne(n||`Could not parse color from value '${"string"==typeof e?e:String(JSON.stringify(e))}'`)}if("number"===this.type.kind){let e=null;for(const n of this.args){if(e=n.evaluate(t),null===e)return 0;const r=Number(e);if(!isNaN(r))return r}throw new Ne(`Could not convert ${JSON.stringify(e)} to number.`)}return"formatted"===this.type.kind?Ue.fromString(je(this.args[0].evaluate(t))):"resolvedImage"===this.type.kind?ke.fromString(je(this.args[0].evaluate(t))):je(this.args[0].evaluate(t))}eachChild(t){this.args.forEach(t)}outputDefined(){return this.args.every(t=>t.outputDefined())}serialize(){if("formatted"===this.type.kind)return new Ze([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if("resolvedImage"===this.type.kind)return new We(this.args[0]).serialize();const t=["to-"+this.type.kind];return this.eachChild(e=>{t.push(e.serialize())}),t}}var qe=Ye;const Ke=["Unknown","Point","LineString","Polygon"];var Je=class{constructor(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null,this.featureTileCoord=null,this.featureDistanceData=null}id(){return this.feature&&void 0!==this.feature.id?this.feature.id:null}geometryType(){return this.feature?"number"==typeof this.feature.type?Ke[this.feature.type]:this.feature.type:null}geometry(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null}canonicalID(){return this.canonical}properties(){return this.feature&&this.feature.properties||{}}distanceFromCenter(){if(this.featureTileCoord&&this.featureDistanceData){const t=this.featureDistanceData.center,e=this.featureDistanceData.scale,{x:n,y:r}=this.featureTileCoord;return this.featureDistanceData.bearing[0]*(n*e-t[0])+this.featureDistanceData.bearing[1]*(r*e-t[1])}return 0}parseColor(t){let e=this._parseColorCache[t];return e||(e=this._parseColorCache[t]=Be.parse(t)),e}};class $e{constructor(t,e,n,r){this.name=t,this.type=e,this._evaluate=n,this.args=r}evaluate(t){return this._evaluate(t,this.args)}eachChild(t){this.args.forEach(t)}outputDefined(){return!1}serialize(){return[this.name].concat(this.args.map(t=>t.serialize()))}static parse(t,e){const n=t[0],r=$e.definitions[n];if(!r)return e.error(`Unknown expression "${n}". If you wanted a literal array, use ["literal", [...]].`,0);const i=Array.isArray(r)?r[0]:r.type,o=Array.isArray(r)?[[r[1],r[2]]]:r.overloads,s=o.filter(([e])=>!Array.isArray(e)||e.length===t.length-1);let a=null;for(const[r,o]of s){a=new In(e.registry,e.path,null,e.scope);const s=[];let c=!1;for(let e=1;e<t.length;e++){const n=t[e],i=Array.isArray(r)?r[e-1]:r.type,o=a.parse(n,1+s.length,i);if(!o){c=!0;break}s.push(o)}if(!c)if(Array.isArray(r)&&r.length!==s.length)a.error(`Expected ${r.length} arguments, but found ${s.length} instead.`);else{for(let t=0;t<s.length;t++){const e=Array.isArray(r)?r[t]:r.type,n=s[t];a.concat(t+1).checkSubtype(e,n.type)}if(0===a.errors.length)return new $e(n,i,o,s)}}if(1===s.length)e.errors.push(...a.errors);else{const n=(s.length?s:o).map(([t])=>{return e=t,Array.isArray(e)?`(${e.map(ve).join(", ")})`:`(${ve(e.type)}...)`;var e}).join(" | "),r=[];for(let n=1;n<t.length;n++){const i=e.parse(t[n],1+r.length);if(!i)return null;r.push(ve(i.type))}e.error(`Expected arguments of type ${n}, but found (${r.join(", ")}) instead.`)}return null}static register(t,e){$e.definitions=e;for(const n in e)t[n]=$e}}var tn=$e;class en{constructor(t,e,n){this.type=ge,this.locale=n,this.caseSensitive=t,this.diacriticSensitive=e}static parse(t,e){if(2!==t.length)return e.error("Expected one argument.");const n=t[1];if("object"!=typeof n||Array.isArray(n))return e.error("Collator options argument must be an object.");const r=e.parse(void 0!==n["case-sensitive"]&&n["case-sensitive"],1,he);if(!r)return null;const i=e.parse(void 0!==n["diacritic-sensitive"]&&n["diacritic-sensitive"],1,he);if(!i)return null;let o=null;return n.locale&&(o=e.parse(n.locale,1,ue),!o)?null:new en(r,i,o)}evaluate(t){return new Le(this.caseSensitive.evaluate(t),this.diacriticSensitive.evaluate(t),this.locale?this.locale.evaluate(t):null)}eachChild(t){t(this.caseSensitive),t(this.diacriticSensitive),this.locale&&t(this.locale)}outputDefined(){return!1}serialize(){const t={};return t["case-sensitive"]=this.caseSensitive.serialize(),t["diacritic-sensitive"]=this.diacriticSensitive.serialize(),this.locale&&(t.locale=this.locale.serialize()),["collator",t]}}const nn=8192;function rn(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.max(t[2],e[0]),t[3]=Math.max(t[3],e[1])}function on(t,e){return!(t[0]<=e[0]||t[2]>=e[2]||t[1]<=e[1]||t[3]>=e[3])}function sn(t,e){const n=(180+t[0])/360,r=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t[1]*Math.PI/360)))/360,i=Math.pow(2,e.z);return[Math.round(n*i*nn),Math.round(r*i*nn)]}function an(t,e,n){const r=t[0]-e[0],i=t[1]-e[1],o=t[0]-n[0],s=t[1]-n[1];return r*s-o*i==0&&r*o<=0&&i*s<=0}function cn(t,e){let n=!1;for(let s=0,a=e.length;s<a;s++){const a=e[s];for(let e=0,s=a.length;e<s-1;e++){if(an(t,a[e],a[e+1]))return!1;(i=a[e])[1]>(r=t)[1]!=(o=a[e+1])[1]>r[1]&&r[0]<(o[0]-i[0])*(r[1]-i[1])/(o[1]-i[1])+i[0]&&(n=!n)}}var r,i,o;return n}function ln(t,e){for(let n=0;n<e.length;n++)if(cn(t,e[n]))return!0;return!1}function un(t,e,n,r){const i=r[0]-n[0],o=r[1]-n[1],s=(t[0]-n[0])*o-i*(t[1]-n[1]),a=(e[0]-n[0])*o-i*(e[1]-n[1]);return s>0&&a<0||s<0&&a>0}function hn(t,e,n){for(const l of n)for(let n=0;n<l.length-1;++n)if(0!=(a=[(s=l[n+1])[0]-(o=l[n])[0],s[1]-o[1]])[0]*(c=[(i=e)[0]-(r=t)[0],i[1]-r[1]])[1]-a[1]*c[0]&&un(r,i,o,s)&&un(o,s,r,i))return!0;var r,i,o,s,a,c;return!1}function fn(t,e){for(let n=0;n<t.length;++n)if(!cn(t[n],e))return!1;for(let n=0;n<t.length-1;++n)if(hn(t[n],t[n+1],e))return!1;return!0}function dn(t,e){for(let n=0;n<e.length;n++)if(fn(t,e[n]))return!0;return!1}function pn(t,e,n){const r=[];for(let i=0;i<t.length;i++){const o=[];for(let r=0;r<t[i].length;r++){const s=sn(t[i][r],n);rn(e,s),o.push(s)}r.push(o)}return r}function gn(t,e,n){const r=[];for(let i=0;i<t.length;i++){const o=pn(t[i],e,n);r.push(o)}return r}function mn(t,e,n,r){if(t[0]<n[0]||t[0]>n[2]){const e=.5*r;let i=t[0]-n[0]>e?-r:n[0]-t[0]>e?r:0;0===i&&(i=t[0]-n[2]>e?-r:n[2]-t[0]>e?r:0),t[0]+=i}rn(e,t)}function yn(t,e,n,r){const i=Math.pow(2,r.z)*nn,o=[r.x*nn,r.y*nn],s=[];if(!t)return s;for(const r of t)for(const t of r){const r=[t.x+o[0],t.y+o[1]];mn(r,e,n,i),s.push(r)}return s}function _n(t,e,n,r){const i=Math.pow(2,r.z)*nn,o=[r.x*nn,r.y*nn],s=[];if(!t)return s;for(const n of t){const t=[];for(const r of n){const n=[r.x+o[0],r.y+o[1]];rn(e,n),t.push(n)}s.push(t)}if(e[2]-e[0]<=i/2){(a=e)[0]=a[1]=1/0,a[2]=a[3]=-1/0;for(const t of s)for(const r of t)mn(r,e,n,i)}var a;return s}class vn{constructor(t,e){this.type=he,this.geojson=t,this.geometries=e}static parse(t,e){if(2!==t.length)return e.error(`'within' expression requires exactly one argument, but found ${t.length-1} instead.`);if(De(t[1])){const e=t[1];if("FeatureCollection"===e.type)for(let t=0;t<e.features.length;++t){const n=e.features[t].geometry.type;if("Polygon"===n||"MultiPolygon"===n)return new vn(e,e.features[t].geometry)}else if("Feature"===e.type){const t=e.geometry.type;if("Polygon"===t||"MultiPolygon"===t)return new vn(e,e.geometry)}else if("Polygon"===e.type||"MultiPolygon"===e.type)return new vn(e,e)}return e.error("'within' expression requires valid geojson object that contains polygon geometry type.")}evaluate(t){if(null!=t.geometry()&&null!=t.canonicalID()){if("Point"===t.geometryType())return function(t,e){const n=[1/0,1/0,-1/0,-1/0],r=[1/0,1/0,-1/0,-1/0],i=t.canonicalID();if(!i)return!1;if("Polygon"===e.type){const o=pn(e.coordinates,r,i),s=yn(t.geometry(),n,r,i);if(!on(n,r))return!1;for(const t of s)if(!cn(t,o))return!1}if("MultiPolygon"===e.type){const o=gn(e.coordinates,r,i),s=yn(t.geometry(),n,r,i);if(!on(n,r))return!1;for(const t of s)if(!ln(t,o))return!1}return!0}(t,this.geometries);if("LineString"===t.geometryType())return function(t,e){const n=[1/0,1/0,-1/0,-1/0],r=[1/0,1/0,-1/0,-1/0],i=t.canonicalID();if(!i)return!1;if("Polygon"===e.type){const o=pn(e.coordinates,r,i),s=_n(t.geometry(),n,r,i);if(!on(n,r))return!1;for(const t of s)if(!fn(t,o))return!1}if("MultiPolygon"===e.type){const o=gn(e.coordinates,r,i),s=_n(t.geometry(),n,r,i);if(!on(n,r))return!1;for(const t of s)if(!dn(t,o))return!1}return!0}(t,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}serialize(){return["within",this.geojson]}}var bn=vn;function xn(t){if(t instanceof tn){if("get"===t.name&&1===t.args.length)return!1;if("feature-state"===t.name)return!1;if("has"===t.name&&1===t.args.length)return!1;if("properties"===t.name||"geometry-type"===t.name||"id"===t.name)return!1;if(/^filter-/.test(t.name))return!1}if(t instanceof bn)return!1;let e=!0;return t.eachChild(t=>{e&&!xn(t)&&(e=!1)}),e}function wn(t){if(t instanceof tn&&"feature-state"===t.name)return!1;let e=!0;return t.eachChild(t=>{e&&!wn(t)&&(e=!1)}),e}function En(t,e){if(t instanceof tn&&e.indexOf(t.name)>=0)return!1;let n=!0;return t.eachChild(t=>{n&&!En(t,e)&&(n=!1)}),n}class Sn{constructor(t,e){this.type=e.type,this.name=t,this.boundExpression=e}static parse(t,e){if(2!==t.length||"string"!=typeof t[1])return e.error("'var' expression requires exactly one string literal argument.");const n=t[1];return e.scope.has(n)?new Sn(n,e.scope.get(n)):e.error(`Unknown variable "${n}". Make sure "${n}" has been bound in an enclosing "let" expression before using it.`,1)}evaluate(t){return this.boundExpression.evaluate(t)}eachChild(){}outputDefined(){return!1}serialize(){return["var",this.name]}}var Cn=Sn;class An{constructor(t,e=[],n,r=new ae,i=[]){this.registry=t,this.path=e,this.key=e.map(t=>`[${t}]`).join(""),this.scope=r,this.errors=i,this.expectedType=n}parse(t,e,n,r,i={}){return e?this.concat(e,n,r)._parse(t,i):this._parse(t,i)}_parse(t,e){function n(t,e,n){return"assert"===n?new He(e,[t]):"coerce"===n?new qe(e,[t]):t}if(null!==t&&"string"!=typeof t&&"boolean"!=typeof t&&"number"!=typeof t||(t=["literal",t]),Array.isArray(t)){if(0===t.length)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');const r=t[0];if("string"!=typeof r)return this.error(`Expression name must be a string, but found ${typeof r} instead. If you wanted a literal array, use ["literal", [...]].`,0),null;const i=this.registry[r];if(i){let r=i.parse(t,this);if(!r)return null;if(this.expectedType){const t=this.expectedType,i=r.type;if("string"!==t.kind&&"number"!==t.kind&&"boolean"!==t.kind&&"object"!==t.kind&&"array"!==t.kind||"value"!==i.kind)if("color"!==t.kind&&"formatted"!==t.kind&&"resolvedImage"!==t.kind||"value"!==i.kind&&"string"!==i.kind){if(this.checkSubtype(t,i))return null}else r=n(r,t,e.typeAnnotation||"coerce");else r=n(r,t,e.typeAnnotation||"assert")}if(!(r instanceof Qe)&&"resolvedImage"!==r.type.kind&&function t(e){if(e instanceof Cn)return t(e.boundExpression);if(e instanceof tn&&"error"===e.name)return!1;if(e instanceof en)return!1;if(e instanceof bn)return!1;const n=e instanceof qe||e instanceof He;let r=!0;return e.eachChild(e=>{r=n?r&&t(e):r&&e instanceof Qe}),!!r&&xn(e)&&En(e,["zoom","heatmap-density","line-progress","sky-radial-progress","accumulated","is-supported-script","pitch","distance-from-center"])}(r)){const e=new Je;try{r=new Qe(r.type,r.evaluate(e))}catch(t){return this.error(t.message),null}}return r}return this.error(`Unknown expression "${r}". If you wanted a literal array, use ["literal", [...]].`,0)}return this.error(void 0===t?"'undefined' value invalid. Use null instead.":"object"==typeof t?'Bare objects invalid. Use ["literal", {...}] instead.':`Expected an array, but found ${typeof t} instead.`)}concat(t,e,n){const r="number"==typeof t?this.path.concat(t):this.path,i=n?this.scope.concat(n):this.scope;return new An(this.registry,r,e||null,i,this.errors)}error(t,...e){const n=`${this.key}${e.map(t=>`[${t}]`).join("")}`;this.errors.push(new oe(n,t))}checkSubtype(t,e){const n=xe(t,e);return n&&this.error(n),n}}var In=An;function Tn(t,e){const n=t.length-1;let r,i,o=0,s=n,a=0;for(;o<=s;)if(a=Math.floor((o+s)/2),r=t[a],i=t[a+1],r<=e){if(a===n||e<i)return a;o=a+1}else{if(!(r>e))throw new Ne("Input is not a number.");s=a-1}return 0}class Mn{constructor(t,e,n){this.type=t,this.input=e,this.labels=[],this.outputs=[];for(const[t,e]of n)this.labels.push(t),this.outputs.push(e)}static parse(t,e){if(t.length-1<4)return e.error(`Expected at least 4 arguments, but found only ${t.length-1}.`);if((t.length-1)%2!=0)return e.error("Expected an even number of arguments.");const n=e.parse(t[1],1,le);if(!n)return null;const r=[];let i=null;e.expectedType&&"value"!==e.expectedType.kind&&(i=e.expectedType);for(let n=1;n<t.length;n+=2){const o=1===n?-1/0:t[n],s=t[n+1],a=n,c=n+1;if("number"!=typeof o)return e.error('Input/output pairs for "step" expressions must be defined using literal numeric values (not computed expressions) for the input values.',a);if(r.length&&r[r.length-1][0]>=o)return e.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',a);const l=e.parse(s,c,i);if(!l)return null;i=i||l.type,r.push([o,l])}return new Mn(i,n,r)}evaluate(t){const e=this.labels,n=this.outputs;if(1===e.length)return n[0].evaluate(t);const r=this.input.evaluate(t);if(r<=e[0])return n[0].evaluate(t);const i=e.length;return r>=e[i-1]?n[i-1].evaluate(t):n[Tn(e,r)].evaluate(t)}eachChild(t){t(this.input);for(const e of this.outputs)t(e)}outputDefined(){return this.outputs.every(t=>t.outputDefined())}serialize(){const t=["step",this.input.serialize()];for(let e=0;e<this.labels.length;e++)e>0&&t.push(this.labels[e]),t.push(this.outputs[e].serialize());return t}}var Fn=Mn;function Bn(t,e,n){return t*(1-n)+e*n}var Ln=Object.freeze({__proto__:null,array:function(t,e,n){return t.map((t,r)=>Bn(t,e[r],n))},color:function(t,e,n){return new Be(Bn(t.r,e.r,n),Bn(t.g,e.g,n),Bn(t.b,e.b,n),Bn(t.a,e.a,n))},number:Bn});const On=6/29,Un=3*On*On,kn=Math.PI/180,Pn=180/Math.PI;function Dn(t){return t>.008856451679035631?Math.pow(t,1/3):t/Un+4/29}function Rn(t){return t>On?t*t*t:Un*(t-4/29)}function jn(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function zn(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Qn(t){const e=zn(t.r),n=zn(t.g),r=zn(t.b),i=Dn((.4124564*e+.3575761*n+.1804375*r)/.95047),o=Dn((.2126729*e+.7151522*n+.072175*r)/1);return{l:116*o-16,a:500*(i-o),b:200*(o-Dn((.0193339*e+.119192*n+.9503041*r)/1.08883)),alpha:t.a}}function Nn(t){let e=(t.l+16)/116,n=isNaN(t.a)?e:e+t.a/500,r=isNaN(t.b)?e:e-t.b/200;return e=1*Rn(e),n=.95047*Rn(n),r=1.08883*Rn(r),new Be(jn(3.2404542*n-1.5371385*e-.4985314*r),jn(-.969266*n+1.8760108*e+.041556*r),jn(.0556434*n-.2040259*e+1.0572252*r),t.alpha)}function Vn(t,e,n){const r=e-t;return t+n*(r>180||r<-180?r-360*Math.round(r/360):r)}const Gn={forward:Qn,reverse:Nn,interpolate:function(t,e,n){return{l:Bn(t.l,e.l,n),a:Bn(t.a,e.a,n),b:Bn(t.b,e.b,n),alpha:Bn(t.alpha,e.alpha,n)}}},Hn={forward:function(t){const{l:e,a:n,b:r}=Qn(t),i=Math.atan2(r,n)*Pn;return{h:i<0?i+360:i,c:Math.sqrt(n*n+r*r),l:e,alpha:t.a}},reverse:function(t){const e=t.h*kn,n=t.c;return Nn({l:t.l,a:Math.cos(e)*n,b:Math.sin(e)*n,alpha:t.alpha})},interpolate:function(t,e,n){return{h:Vn(t.h,e.h,n),c:Bn(t.c,e.c,n),l:Bn(t.l,e.l,n),alpha:Bn(t.alpha,e.alpha,n)}}};var Zn=Object.freeze({__proto__:null,hcl:Hn,lab:Gn});class Wn{constructor(t,e,n,r,i){this.type=t,this.operator=e,this.interpolation=n,this.input=r,this.labels=[],this.outputs=[];for(const[t,e]of i)this.labels.push(t),this.outputs.push(e)}static interpolationFactor(t,e,n,r){let i=0;if("exponential"===t.name)i=Xn(e,t.base,n,r);else if("linear"===t.name)i=Xn(e,1,n,r);else if("cubic-bezier"===t.name){const o=t.controlPoints;i=new g(o[0],o[1],o[2],o[3]).solve(Xn(e,1,n,r))}return i}static parse(t,e){let[n,r,i,...o]=t;if(!Array.isArray(r)||0===r.length)return e.error("Expected an interpolation type expression.",1);if("linear"===r[0])r={name:"linear"};else if("exponential"===r[0]){const t=r[1];if("number"!=typeof t)return e.error("Exponential interpolation requires a numeric base.",1,1);r={name:"exponential",base:t}}else{if("cubic-bezier"!==r[0])return e.error("Unknown interpolation type "+String(r[0]),1,0);{const t=r.slice(1);if(4!==t.length||t.some(t=>"number"!=typeof t||t<0||t>1))return e.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);r={name:"cubic-bezier",controlPoints:t}}}if(t.length-1<4)return e.error(`Expected at least 4 arguments, but found only ${t.length-1}.`);if((t.length-1)%2!=0)return e.error("Expected an even number of arguments.");if(i=e.parse(i,2,le),!i)return null;const s=[];let a=null;"interpolate-hcl"===n||"interpolate-lab"===n?a=fe:e.expectedType&&"value"!==e.expectedType.kind&&(a=e.expectedType);for(let t=0;t<o.length;t+=2){const n=o[t],r=o[t+1],i=t+3,c=t+4;if("number"!=typeof n)return e.error('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not computed expressions) for the input values.',i);if(s.length&&s[s.length-1][0]>=n)return e.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',i);const l=e.parse(r,c,a);if(!l)return null;a=a||l.type,s.push([n,l])}return"number"===a.kind||"color"===a.kind||"array"===a.kind&&"number"===a.itemType.kind&&"number"==typeof a.N?new Wn(a,n,r,i,s):e.error(`Type ${ve(a)} is not interpolatable.`)}evaluate(t){const e=this.labels,n=this.outputs;if(1===e.length)return n[0].evaluate(t);const r=this.input.evaluate(t);if(r<=e[0])return n[0].evaluate(t);const i=e.length;if(r>=e[i-1])return n[i-1].evaluate(t);const o=Tn(e,r),s=Wn.interpolationFactor(this.interpolation,r,e[o],e[o+1]),a=n[o].evaluate(t),c=n[o+1].evaluate(t);return"interpolate"===this.operator?Ln[this.type.kind.toLowerCase()](a,c,s):"interpolate-hcl"===this.operator?Hn.reverse(Hn.interpolate(Hn.forward(a),Hn.forward(c),s)):Gn.reverse(Gn.interpolate(Gn.forward(a),Gn.forward(c),s))}eachChild(t){t(this.input);for(const e of this.outputs)t(e)}outputDefined(){return this.outputs.every(t=>t.outputDefined())}serialize(){let t;t="linear"===this.interpolation.name?["linear"]:"exponential"===this.interpolation.name?1===this.interpolation.base?["linear"]:["exponential",this.interpolation.base]:["cubic-bezier"].concat(this.interpolation.controlPoints);const e=[this.operator,t,this.input.serialize()];for(let t=0;t<this.labels.length;t++)e.push(this.labels[t],this.outputs[t].serialize());return e}}function Xn(t,e,n,r){const i=r-n,o=t-n;return 0===i?0:1===e?o/i:(Math.pow(e,o)-1)/(Math.pow(e,i)-1)}var Yn=Wn;class qn{constructor(t,e){this.type=t,this.args=e}static parse(t,e){if(t.length<2)return e.error("Expectected at least one argument.");let n=null;const r=e.expectedType;r&&"value"!==r.kind&&(n=r);const i=[];for(const r of t.slice(1)){const t=e.parse(r,1+i.length,n,void 0,{typeAnnotation:"omit"});if(!t)return null;n=n||t.type,i.push(t)}const o=r&&i.some(t=>xe(r,t.type));return new qn(o?pe:n,i)}evaluate(t){let e,n=null,r=0;for(const i of this.args){if(r++,n=i.evaluate(t),n&&n instanceof ke&&!n.available&&(e||(e=n),n=null,r===this.args.length))return e;if(null!==n)break}return n}eachChild(t){this.args.forEach(t)}outputDefined(){return this.args.every(t=>t.outputDefined())}serialize(){const t=["coalesce"];return this.eachChild(e=>{t.push(e.serialize())}),t}}var Kn=qn;class Jn{constructor(t,e){this.type=e.type,this.bindings=[].concat(t),this.result=e}evaluate(t){return this.result.evaluate(t)}eachChild(t){for(const e of this.bindings)t(e[1]);t(this.result)}static parse(t,e){if(t.length<4)return e.error(`Expected at least 3 arguments, but found ${t.length-1} instead.`);const n=[];for(let r=1;r<t.length-1;r+=2){const i=t[r];if("string"!=typeof i)return e.error(`Expected string, but found ${typeof i} instead.`,r);if(/[^a-zA-Z0-9_]/.test(i))return e.error("Variable names must contain only alphanumeric characters or '_'.",r);const o=e.parse(t[r+1],r+1);if(!o)return null;n.push([i,o])}const r=e.parse(t[t.length-1],t.length-1,e.expectedType,n);return r?new Jn(n,r):null}outputDefined(){return this.result.outputDefined()}serialize(){const t=["let"];for(const[e,n]of this.bindings)t.push(e,n.serialize());return t.push(this.result.serialize()),t}}var $n=Jn;class tr{constructor(t,e,n){this.type=t,this.index=e,this.input=n}static parse(t,e){if(3!==t.length)return e.error(`Expected 2 arguments, but found ${t.length-1} instead.`);const n=e.parse(t[1],1,le),r=e.parse(t[2],2,_e(e.expectedType||pe));return n&&r?new tr(r.type.itemType,n,r):null}evaluate(t){const e=this.index.evaluate(t),n=this.input.evaluate(t);if(e<0)throw new Ne(`Array index out of bounds: ${e} < 0.`);if(e>=n.length)throw new Ne(`Array index out of bounds: ${e} > ${n.length-1}.`);if(e!==Math.floor(e))throw new Ne(`Array index must be an integer, but found ${e} instead.`);return n[e]}eachChild(t){t(this.index),t(this.input)}outputDefined(){return!1}serialize(){return["at",this.index.serialize(),this.input.serialize()]}}var er=tr;class nr{constructor(t,e){this.type=he,this.needle=t,this.haystack=e}static parse(t,e){if(3!==t.length)return e.error(`Expected 2 arguments, but found ${t.length-1} instead.`);const n=e.parse(t[1],1,pe),r=e.parse(t[2],2,pe);return n&&r?we(n.type,[he,ue,le,ce,pe])?new nr(n,r):e.error(`Expected first argument to be of type boolean, string, number or null, but found ${ve(n.type)} instead`):null}evaluate(t){const e=this.needle.evaluate(t),n=this.haystack.evaluate(t);if(null==n)return!1;if(!Ee(e,["boolean","string","number","null"]))throw new Ne(`Expected first argument to be of type boolean, string, number or null, but found ${ve(Re(e))} instead.`);if(!Ee(n,["string","array"]))throw new Ne(`Expected second argument to be of type array or string, but found ${ve(Re(n))} instead.`);return n.indexOf(e)>=0}eachChild(t){t(this.needle),t(this.haystack)}outputDefined(){return!0}serialize(){return["in",this.needle.serialize(),this.haystack.serialize()]}}var rr=nr;class ir{constructor(t,e,n){this.type=le,this.needle=t,this.haystack=e,this.fromIndex=n}static parse(t,e){if(t.length<=2||t.length>=5)return e.error(`Expected 3 or 4 arguments, but found ${t.length-1} instead.`);const n=e.parse(t[1],1,pe),r=e.parse(t[2],2,pe);if(!n||!r)return null;if(!we(n.type,[he,ue,le,ce,pe]))return e.error(`Expected first argument to be of type boolean, string, number or null, but found ${ve(n.type)} instead`);if(4===t.length){const i=e.parse(t[3],3,le);return i?new ir(n,r,i):null}return new ir(n,r)}evaluate(t){const e=this.needle.evaluate(t),n=this.haystack.evaluate(t);if(!Ee(e,["boolean","string","number","null"]))throw new Ne(`Expected first argument to be of type boolean, string, number or null, but found ${ve(Re(e))} instead.`);if(!Ee(n,["string","array"]))throw new Ne(`Expected second argument to be of type array or string, but found ${ve(Re(n))} instead.`);if(this.fromIndex){const r=this.fromIndex.evaluate(t);return n.indexOf(e,r)}return n.indexOf(e)}eachChild(t){t(this.needle),t(this.haystack),this.fromIndex&&t(this.fromIndex)}outputDefined(){return!1}serialize(){if(null!=this.fromIndex&&void 0!==this.fromIndex){const t=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),t]}return["index-of",this.needle.serialize(),this.haystack.serialize()]}}var or=ir;class sr{constructor(t,e,n,r,i,o){this.inputType=t,this.type=e,this.input=n,this.cases=r,this.outputs=i,this.otherwise=o}static parse(t,e){if(t.length<5)return e.error(`Expected at least 4 arguments, but found only ${t.length-1}.`);if(t.length%2!=1)return e.error("Expected an even number of arguments.");let n,r;e.expectedType&&"value"!==e.expectedType.kind&&(r=e.expectedType);const i={},o=[];for(let s=2;s<t.length-1;s+=2){let a=t[s];const c=t[s+1];Array.isArray(a)||(a=[a]);const l=e.concat(s);if(0===a.length)return l.error("Expected at least one branch label.");for(const t of a){if("number"!=typeof t&&"string"!=typeof t)return l.error("Branch labels must be numbers or strings.");if("number"==typeof t&&Math.abs(t)>Number.MAX_SAFE_INTEGER)return l.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if("number"==typeof t&&Math.floor(t)!==t)return l.error("Numeric branch labels must be integer values.");if(n){if(l.checkSubtype(n,Re(t)))return null}else n=Re(t);if(void 0!==i[String(t)])return l.error("Branch labels must be unique.");i[String(t)]=o.length}const u=e.parse(c,s,r);if(!u)return null;r=r||u.type,o.push(u)}const s=e.parse(t[1],1,pe);if(!s)return null;const a=e.parse(t[t.length-1],t.length-1,r);return a?"value"!==s.type.kind&&e.concat(1).checkSubtype(n,s.type)?null:new sr(n,r,s,i,o,a):null}evaluate(t){const e=this.input.evaluate(t);return(Re(e)===this.inputType&&this.outputs[this.cases[e]]||this.otherwise).evaluate(t)}eachChild(t){t(this.input),this.outputs.forEach(t),t(this.otherwise)}outputDefined(){return this.outputs.every(t=>t.outputDefined())&&this.otherwise.outputDefined()}serialize(){const t=["match",this.input.serialize()],e=Object.keys(this.cases).sort(),n=[],r={};for(const t of e){const e=r[this.cases[t]];void 0===e?(r[this.cases[t]]=n.length,n.push([this.cases[t],[t]])):n[e][1].push(t)}const i=t=>"number"===this.inputType.kind?Number(t):t;for(const[e,r]of n)t.push(1===r.length?i(r[0]):r.map(i)),t.push(this.outputs[e].serialize());return t.push(this.otherwise.serialize()),t}}var ar=sr;class cr{constructor(t,e,n){this.type=t,this.branches=e,this.otherwise=n}static parse(t,e){if(t.length<4)return e.error(`Expected at least 3 arguments, but found only ${t.length-1}.`);if(t.length%2!=0)return e.error("Expected an odd number of arguments.");let n;e.expectedType&&"value"!==e.expectedType.kind&&(n=e.expectedType);const r=[];for(let i=1;i<t.length-1;i+=2){const o=e.parse(t[i],i,he);if(!o)return null;const s=e.parse(t[i+1],i+1,n);if(!s)return null;r.push([o,s]),n=n||s.type}const i=e.parse(t[t.length-1],t.length-1,n);return i?new cr(n,r,i):null}evaluate(t){for(const[e,n]of this.branches)if(e.evaluate(t))return n.evaluate(t);return this.otherwise.evaluate(t)}eachChild(t){for(const[e,n]of this.branches)t(e),t(n);t(this.otherwise)}outputDefined(){return this.branches.every(([t,e])=>e.outputDefined())&&this.otherwise.outputDefined()}serialize(){const t=["case"];return this.eachChild(e=>{t.push(e.serialize())}),t}}var lr=cr;class ur{constructor(t,e,n,r){this.type=t,this.input=e,this.beginIndex=n,this.endIndex=r}static parse(t,e){if(t.length<=2||t.length>=5)return e.error(`Expected 3 or 4 arguments, but found ${t.length-1} instead.`);const n=e.parse(t[1],1,pe),r=e.parse(t[2],2,le);if(!n||!r)return null;if(!we(n.type,[_e(pe),ue,pe]))return e.error(`Expected first argument to be of type array or string, but found ${ve(n.type)} instead`);if(4===t.length){const i=e.parse(t[3],3,le);return i?new ur(n.type,n,r,i):null}return new ur(n.type,n,r)}evaluate(t){const e=this.input.evaluate(t),n=this.beginIndex.evaluate(t);if(!Ee(e,["string","array"]))throw new Ne(`Expected first argument to be of type array or string, but found ${ve(Re(e))} instead.`);if(this.endIndex){const r=this.endIndex.evaluate(t);return e.slice(n,r)}return e.slice(n)}eachChild(t){t(this.input),t(this.beginIndex),this.endIndex&&t(this.endIndex)}outputDefined(){return!1}serialize(){if(null!=this.endIndex&&void 0!==this.endIndex){const t=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),t]}return["slice",this.input.serialize(),this.beginIndex.serialize()]}}var hr=ur;function fr(t,e){return"=="===t||"!="===t?"boolean"===e.kind||"string"===e.kind||"number"===e.kind||"null"===e.kind||"value"===e.kind:"string"===e.kind||"number"===e.kind||"value"===e.kind}function dr(t,e,n,r){return 0===r.compare(e,n)}function pr(t,e,n){const r="=="!==t&&"!="!==t;return class i{constructor(t,e,n){this.type=he,this.lhs=t,this.rhs=e,this.collator=n,this.hasUntypedArgument="value"===t.type.kind||"value"===e.type.kind}static parse(t,e){if(3!==t.length&&4!==t.length)return e.error("Expected two or three arguments.");const n=t[0];let o=e.parse(t[1],1,pe);if(!o)return null;if(!fr(n,o.type))return e.concat(1).error(`"${n}" comparisons are not supported for type '${ve(o.type)}'.`);let s=e.parse(t[2],2,pe);if(!s)return null;if(!fr(n,s.type))return e.concat(2).error(`"${n}" comparisons are not supported for type '${ve(s.type)}'.`);if(o.type.kind!==s.type.kind&&"value"!==o.type.kind&&"value"!==s.type.kind)return e.error(`Cannot compare types '${ve(o.type)}' and '${ve(s.type)}'.`);r&&("value"===o.type.kind&&"value"!==s.type.kind?o=new He(s.type,[o]):"value"!==o.type.kind&&"value"===s.type.kind&&(s=new He(o.type,[s])));let a=null;if(4===t.length){if("string"!==o.type.kind&&"string"!==s.type.kind&&"value"!==o.type.kind&&"value"!==s.type.kind)return e.error("Cannot use collator to compare non-string types.");if(a=e.parse(t[3],3,ge),!a)return null}return new i(o,s,a)}evaluate(i){const o=this.lhs.evaluate(i),s=this.rhs.evaluate(i);if(r&&this.hasUntypedArgument){const e=Re(o),n=Re(s);if(e.kind!==n.kind||"string"!==e.kind&&"number"!==e.kind)throw new Ne(`Expected arguments for "${t}" to be (string, string) or (number, number), but found (${e.kind}, ${n.kind}) instead.`)}if(this.collator&&!r&&this.hasUntypedArgument){const t=Re(o),n=Re(s);if("string"!==t.kind||"string"!==n.kind)return e(i,o,s)}return this.collator?n(i,o,s,this.collator.evaluate(i)):e(i,o,s)}eachChild(t){t(this.lhs),t(this.rhs),this.collator&&t(this.collator)}outputDefined(){return!0}serialize(){const e=[t];return this.eachChild(t=>{e.push(t.serialize())}),e}}}const gr=pr("==",(function(t,e,n){return e===n}),dr),mr=pr("!=",(function(t,e,n){return e!==n}),(function(t,e,n,r){return!dr(0,e,n,r)})),yr=pr("<",(function(t,e,n){return e<n}),(function(t,e,n,r){return r.compare(e,n)<0})),_r=pr(">",(function(t,e,n){return e>n}),(function(t,e,n,r){return r.compare(e,n)>0})),vr=pr("<=",(function(t,e,n){return e<=n}),(function(t,e,n,r){return r.compare(e,n)<=0})),br=pr(">=",(function(t,e,n){return e>=n}),(function(t,e,n,r){return r.compare(e,n)>=0}));class xr{constructor(t,e,n,r,i,o){this.type=ue,this.number=t,this.locale=e,this.currency=n,this.unit=r,this.minFractionDigits=i,this.maxFractionDigits=o}static parse(t,e){if(3!==t.length)return e.error("Expected two arguments.");const n=e.parse(t[1],1,le);if(!n)return null;const r=t[2];if("object"!=typeof r||Array.isArray(r))return e.error("NumberFormat options argument must be an object.");let i=null;if(r.locale&&(i=e.parse(r.locale,1,ue),!i))return null;let o=null;if(r.currency&&(o=e.parse(r.currency,1,ue),!o))return null;let s=null;if(r.unit&&(s=e.parse(r.unit,1,ue),!s))return null;let a=null;if(r["min-fraction-digits"]&&(a=e.parse(r["min-fraction-digits"],1,le),!a))return null;let c=null;return r["max-fraction-digits"]&&(c=e.parse(r["max-fraction-digits"],1,le),!c)?null:new xr(n,i,o,s,a,c)}evaluate(t){return new Intl.NumberFormat(this.locale?this.locale.evaluate(t):[],{style:(this.currency?"currency":this.unit&&"unit")||"decimal",currency:this.currency?this.currency.evaluate(t):void 0,unit:this.unit?this.unit.evaluate(t):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(t):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(t):void 0}).format(this.number.evaluate(t))}eachChild(t){t(this.number),this.locale&&t(this.locale),this.currency&&t(this.currency),this.unit&&t(this.unit),this.minFractionDigits&&t(this.minFractionDigits),this.maxFractionDigits&&t(this.maxFractionDigits)}outputDefined(){return!1}serialize(){const t={};return this.locale&&(t.locale=this.locale.serialize()),this.currency&&(t.currency=this.currency.serialize()),this.unit&&(t.unit=this.unit.serialize()),this.minFractionDigits&&(t["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(t["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),t]}}class wr{constructor(t){this.type=le,this.input=t}static parse(t,e){if(2!==t.length)return e.error(`Expected 1 argument, but found ${t.length-1} instead.`);const n=e.parse(t[1],1);return n?"array"!==n.type.kind&&"string"!==n.type.kind&&"value"!==n.type.kind?e.error(`Expected argument of type string or array, but found ${ve(n.type)} instead.`):new wr(n):null}evaluate(t){const e=this.input.evaluate(t);if("string"==typeof e)return e.length;if(Array.isArray(e))return e.length;throw new Ne(`Expected value to be of type string or array, but found ${ve(Re(e))} instead.`)}eachChild(t){t(this.input)}outputDefined(){return!1}serialize(){const t=["length"];return this.eachChild(e=>{t.push(e.serialize())}),t}}const Er={"==":gr,"!=":mr,">":_r,"<":yr,">=":br,"<=":vr,array:He,at:er,boolean:He,case:lr,coalesce:Kn,collator:en,format:Ze,image:We,in:rr,"index-of":or,interpolate:Yn,"interpolate-hcl":Yn,"interpolate-lab":Yn,length:wr,let:$n,literal:Qe,match:ar,number:He,"number-format":xr,object:He,slice:hr,step:Fn,string:He,"to-boolean":qe,"to-color":qe,"to-number":qe,"to-string":qe,var:Cn,within:bn};function Sr(t,[e,n,r,i]){e=e.evaluate(t),n=n.evaluate(t),r=r.evaluate(t);const o=i?i.evaluate(t):1,s=Pe(e,n,r,o);if(s)throw new Ne(s);return new Be(e/255*o,n/255*o,r/255*o,o)}function Cr(t,e){return t in e}function Ar(t,e){const n=e[t];return void 0===n?null:n}function Ir(t){return{type:t}}tn.register(Er,{error:[{kind:"error"},[ue],(t,[e])=>{throw new Ne(e.evaluate(t))}],typeof:[ue,[pe],(t,[e])=>ve(Re(e.evaluate(t)))],"to-rgba":[_e(le,4),[fe],(t,[e])=>e.evaluate(t).toArray()],rgb:[fe,[le,le,le],Sr],rgba:[fe,[le,le,le,le],Sr],has:{type:he,overloads:[[[ue],(t,[e])=>Cr(e.evaluate(t),t.properties())],[[ue,de],(t,[e,n])=>Cr(e.evaluate(t),n.evaluate(t))]]},get:{type:pe,overloads:[[[ue],(t,[e])=>Ar(e.evaluate(t),t.properties())],[[ue,de],(t,[e,n])=>Ar(e.evaluate(t),n.evaluate(t))]]},"feature-state":[pe,[ue],(t,[e])=>Ar(e.evaluate(t),t.featureState||{})],properties:[de,[],t=>t.properties()],"geometry-type":[ue,[],t=>t.geometryType()],id:[pe,[],t=>t.id()],zoom:[le,[],t=>t.globals.zoom],pitch:[le,[],t=>t.globals.pitch||0],"distance-from-center":[le,[],t=>t.distanceFromCenter()],"heatmap-density":[le,[],t=>t.globals.heatmapDensity||0],"line-progress":[le,[],t=>t.globals.lineProgress||0],"sky-radial-progress":[le,[],t=>t.globals.skyRadialProgress||0],accumulated:[pe,[],t=>void 0===t.globals.accumulated?null:t.globals.accumulated],"+":[le,Ir(le),(t,e)=>{let n=0;for(const r of e)n+=r.evaluate(t);return n}],"*":[le,Ir(le),(t,e)=>{let n=1;for(const r of e)n*=r.evaluate(t);return n}],"-":{type:le,overloads:[[[le,le],(t,[e,n])=>e.evaluate(t)-n.evaluate(t)],[[le],(t,[e])=>-e.evaluate(t)]]},"/":[le,[le,le],(t,[e,n])=>e.evaluate(t)/n.evaluate(t)],"%":[le,[le,le],(t,[e,n])=>e.evaluate(t)%n.evaluate(t)],ln2:[le,[],()=>Math.LN2],pi:[le,[],()=>Math.PI],e:[le,[],()=>Math.E],"^":[le,[le,le],(t,[e,n])=>Math.pow(e.evaluate(t),n.evaluate(t))],sqrt:[le,[le],(t,[e])=>Math.sqrt(e.evaluate(t))],log10:[le,[le],(t,[e])=>Math.log(e.evaluate(t))/Math.LN10],ln:[le,[le],(t,[e])=>Math.log(e.evaluate(t))],log2:[le,[le],(t,[e])=>Math.log(e.evaluate(t))/Math.LN2],sin:[le,[le],(t,[e])=>Math.sin(e.evaluate(t))],cos:[le,[le],(t,[e])=>Math.cos(e.evaluate(t))],tan:[le,[le],(t,[e])=>Math.tan(e.evaluate(t))],asin:[le,[le],(t,[e])=>Math.asin(e.evaluate(t))],acos:[le,[le],(t,[e])=>Math.acos(e.evaluate(t))],atan:[le,[le],(t,[e])=>Math.atan(e.evaluate(t))],min:[le,Ir(le),(t,e)=>Math.min(...e.map(e=>e.evaluate(t)))],max:[le,Ir(le),(t,e)=>Math.max(...e.map(e=>e.evaluate(t)))],abs:[le,[le],(t,[e])=>Math.abs(e.evaluate(t))],round:[le,[le],(t,[e])=>{const n=e.evaluate(t);return n<0?-Math.round(-n):Math.round(n)}],floor:[le,[le],(t,[e])=>Math.floor(e.evaluate(t))],ceil:[le,[le],(t,[e])=>Math.ceil(e.evaluate(t))],"filter-==":[he,[ue,pe],(t,[e,n])=>t.properties()[e.value]===n.value],"filter-id-==":[he,[pe],(t,[e])=>t.id()===e.value],"filter-type-==":[he,[ue],(t,[e])=>t.geometryType()===e.value],"filter-<":[he,[ue,pe],(t,[e,n])=>{const r=t.properties()[e.value],i=n.value;return typeof r==typeof i&&r<i}],"filter-id-<":[he,[pe],(t,[e])=>{const n=t.id(),r=e.value;return typeof n==typeof r&&n<r}],"filter->":[he,[ue,pe],(t,[e,n])=>{const r=t.properties()[e.value],i=n.value;return typeof r==typeof i&&r>i}],"filter-id->":[he,[pe],(t,[e])=>{const n=t.id(),r=e.value;return typeof n==typeof r&&n>r}],"filter-<=":[he,[ue,pe],(t,[e,n])=>{const r=t.properties()[e.value],i=n.value;return typeof r==typeof i&&r<=i}],"filter-id-<=":[he,[pe],(t,[e])=>{const n=t.id(),r=e.value;return typeof n==typeof r&&n<=r}],"filter->=":[he,[ue,pe],(t,[e,n])=>{const r=t.properties()[e.value],i=n.value;return typeof r==typeof i&&r>=i}],"filter-id->=":[he,[pe],(t,[e])=>{const n=t.id(),r=e.value;return typeof n==typeof r&&n>=r}],"filter-has":[he,[pe],(t,[e])=>e.value in t.properties()],"filter-has-id":[he,[],t=>null!==t.id()&&void 0!==t.id()],"filter-type-in":[he,[_e(ue)],(t,[e])=>e.value.indexOf(t.geometryType())>=0],"filter-id-in":[he,[_e(pe)],(t,[e])=>e.value.indexOf(t.id())>=0],"filter-in-small":[he,[ue,_e(pe)],(t,[e,n])=>n.value.indexOf(t.properties()[e.value])>=0],"filter-in-large":[he,[ue,_e(pe)],(t,[e,n])=>function(t,e,n,r){for(;n<=r;){const i=n+r>>1;if(e[i]===t)return!0;e[i]>t?r=i-1:n=i+1}return!1}(t.properties()[e.value],n.value,0,n.value.length-1)],all:{type:he,overloads:[[[he,he],(t,[e,n])=>e.evaluate(t)&&n.evaluate(t)],[Ir(he),(t,e)=>{for(const n of e)if(!n.evaluate(t))return!1;return!0}]]},any:{type:he,overloads:[[[he,he],(t,[e,n])=>e.evaluate(t)||n.evaluate(t)],[Ir(he),(t,e)=>{for(const n of e)if(n.evaluate(t))return!0;return!1}]]},"!":[he,[he],(t,[e])=>!e.evaluate(t)],"is-supported-script":[he,[ue],(t,[e])=>{const n=t.globals&&t.globals.isSupportedScript;return!n||n(e.evaluate(t))}],upcase:[ue,[ue],(t,[e])=>e.evaluate(t).toUpperCase()],downcase:[ue,[ue],(t,[e])=>e.evaluate(t).toLowerCase()],concat:[ue,Ir(pe),(t,e)=>e.map(e=>je(e.evaluate(t))).join("")],"resolved-locale":[ue,[ge],(t,[e])=>e.evaluate(t).resolvedLocale()]});var Tr=Er;function Mr(t){return{result:"success",value:t}}function Fr(t){return{result:"error",value:t}}function Br(t){return"data-driven"===t["property-type"]}function Lr(t){return!!t.expression&&t.expression.parameters.indexOf("zoom")>-1}function Or(t){return!!t.expression&&t.expression.interpolated}function Ur(t){return t instanceof Number?"number":t instanceof String?"string":t instanceof Boolean?"boolean":Array.isArray(t)?"array":null===t?"null":typeof t}function kr(t){return"object"==typeof t&&null!==t&&!Array.isArray(t)}function Pr(t){return t}function Dr(t,e,n){return void 0!==t?t:void 0!==e?e:void 0!==n?n:void 0}function Rr(t,e,n,r,i){return Dr(typeof n===i?r[n]:void 0,t.default,e.default)}function jr(t,e,n){if("number"!==Ur(n))return Dr(t.default,e.default);const r=t.stops.length;if(1===r)return t.stops[0][1];if(n<=t.stops[0][0])return t.stops[0][1];if(n>=t.stops[r-1][0])return t.stops[r-1][1];const i=Tn(t.stops.map(t=>t[0]),n);return t.stops[i][1]}function zr(t,e,n){const r=void 0!==t.base?t.base:1;if("number"!==Ur(n))return Dr(t.default,e.default);const i=t.stops.length;if(1===i)return t.stops[0][1];if(n<=t.stops[0][0])return t.stops[0][1];if(n>=t.stops[i-1][0])return t.stops[i-1][1];const o=Tn(t.stops.map(t=>t[0]),n),s=function(t,e,n,r){const i=r-n,o=t-n;return 0===i?0:1===e?o/i:(Math.pow(e,o)-1)/(Math.pow(e,i)-1)}(n,r,t.stops[o][0],t.stops[o+1][0]),a=t.stops[o][1],c=t.stops[o+1][1];let l=Ln[e.type]||Pr;if(t.colorSpace&&"rgb"!==t.colorSpace){const e=Zn[t.colorSpace];l=(t,n)=>e.reverse(e.interpolate(e.forward(t),e.forward(n),s))}return"function"==typeof a.evaluate?{evaluate(...t){const e=a.evaluate.apply(void 0,t),n=c.evaluate.apply(void 0,t);if(void 0!==e&&void 0!==n)return l(e,n,s)}}:l(a,c,s)}function Qr(t,e,n){return"color"===e.type?n=Be.parse(n):"formatted"===e.type?n=Ue.fromString(n.toString()):"resolvedImage"===e.type?n=ke.fromString(n.toString()):Ur(n)===e.type||"enum"===e.type&&e.values[n]||(n=void 0),Dr(n,t.default,e.default)}class Nr{constructor(t,e){this.expression=t,this._warningHistory={},this._evaluator=new Je,this._defaultValue=e?function(t){return"color"===t.type&&(kr(t.default)||Array.isArray(t.default))?new Be(0,0,0,0):"color"===t.type?Be.parse(t.default)||null:void 0===t.default?null:t.default}(e):null,this._enumValues=e&&"enum"===e.type?e.values:null}evaluateWithoutErrorHandling(t,e,n,r,i,o,s,a){return this._evaluator.globals=t,this._evaluator.feature=e,this._evaluator.featureState=n,this._evaluator.canonical=r||null,this._evaluator.availableImages=i||null,this._evaluator.formattedSection=o,this._evaluator.featureTileCoord=s||null,this._evaluator.featureDistanceData=a||null,this.expression.evaluate(this._evaluator)}evaluate(t,e,n,r,i,o,s,a){this._evaluator.globals=t,this._evaluator.feature=e||null,this._evaluator.featureState=n||null,this._evaluator.canonical=r||null,this._evaluator.availableImages=i||null,this._evaluator.formattedSection=o||null,this._evaluator.featureTileCoord=s||null,this._evaluator.featureDistanceData=a||null;try{const t=this.expression.evaluate(this._evaluator);if(null==t||"number"==typeof t&&t!=t)return this._defaultValue;if(this._enumValues&&!(t in this._enumValues))throw new Ne(`Expected value to be one of ${Object.keys(this._enumValues).map(t=>JSON.stringify(t)).join(", ")}, but found ${JSON.stringify(t)} instead.`);return t}catch(t){return this._warningHistory[t.message]||(this._warningHistory[t.message]=!0,"undefined"!=typeof console&&console.warn(t.message)),this._defaultValue}}}function Vr(t){return Array.isArray(t)&&t.length>0&&"string"==typeof t[0]&&t[0]in Tr}function Gr(t,e){const n=new In(Tr,[],e?function(t){const e={color:fe,string:ue,number:le,enum:ue,boolean:he,formatted:me,resolvedImage:ye};return"array"===t.type?_e(e[t.value]||pe,t.length):e[t.type]}(e):void 0),r=n.parse(t,void 0,void 0,void 0,e&&"string"===e.type?{typeAnnotation:"coerce"}:void 0);return r?Mr(new Nr(r,e)):Fr(n.errors)}class Hr{constructor(t,e){this.kind=t,this._styleExpression=e,this.isStateDependent="constant"!==t&&!wn(e.expression)}evaluateWithoutErrorHandling(t,e,n,r,i,o){return this._styleExpression.evaluateWithoutErrorHandling(t,e,n,r,i,o)}evaluate(t,e,n,r,i,o){return this._styleExpression.evaluate(t,e,n,r,i,o)}}class Zr{constructor(t,e,n,r){this.kind=t,this.zoomStops=n,this._styleExpression=e,this.isStateDependent="camera"!==t&&!wn(e.expression),this.interpolationType=r}evaluateWithoutErrorHandling(t,e,n,r,i,o){return this._styleExpression.evaluateWithoutErrorHandling(t,e,n,r,i,o)}evaluate(t,e,n,r,i,o){return this._styleExpression.evaluate(t,e,n,r,i,o)}interpolationFactor(t,e,n){return this.interpolationType?Yn.interpolationFactor(this.interpolationType,t,e,n):0}}function Wr(t,e){if("error"===(t=Gr(t,e)).result)return t;const n=t.value.expression,r=xn(n);if(!r&&!Br(e))return Fr([new oe("","data expressions not supported")]);const i=En(n,["zoom","pitch","distance-from-center"]);if(!i&&!Lr(e))return Fr([new oe("","zoom expressions not supported")]);const o=function t(e){let n=null;if(e instanceof $n)n=t(e.result);else if(e instanceof Kn){for(const r of e.args)if(n=t(r),n)break}else(e instanceof Fn||e instanceof Yn)&&e.input instanceof tn&&"zoom"===e.input.name&&(n=e);return n instanceof oe||e.eachChild(e=>{const r=t(e);r instanceof oe?n=r:!n&&r?n=new oe("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):n&&r&&n!==r&&(n=new oe("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),n}(n);return o||i?o instanceof oe?Fr([o]):o instanceof Yn&&!Or(e)?Fr([new oe("",'"interpolate" expressions cannot be used with this property')]):Mr(o?new Zr(r?"camera":"composite",t.value,o.labels,o instanceof Yn?o.interpolation:void 0):new Hr(r?"constant":"source",t.value)):Fr([new oe("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')])}class Xr{constructor(t,e){this._parameters=t,this._specification=e,ee(this,function t(e,n){const r="color"===n.type,i=e.stops&&"object"==typeof e.stops[0][0],o=i||!(i||void 0!==e.property),s=e.type||(Or(n)?"exponential":"interval");if(r&&((e=ee({},e)).stops&&(e.stops=e.stops.map(t=>[t[0],Be.parse(t[1])])),e.default=Be.parse(e.default?e.default:n.default)),e.colorSpace&&"rgb"!==e.colorSpace&&!Zn[e.colorSpace])throw new Error("Unknown color space: "+e.colorSpace);let a,c,l;if("exponential"===s)a=zr;else if("interval"===s)a=jr;else if("categorical"===s){a=Rr,c=Object.create(null);for(const t of e.stops)c[t[0]]=t[1];l=typeof e.stops[0][0]}else{if("identity"!==s)throw new Error(`Unknown function type "${s}"`);a=Qr}if(i){const r={},i=[];for(let t=0;t<e.stops.length;t++){const n=e.stops[t],o=n[0].zoom;void 0===r[o]&&(r[o]={zoom:o,type:e.type,property:e.property,default:e.default,stops:[]},i.push(o)),r[o].stops.push([n[0].value,n[1]])}const o=[];for(const e of i)o.push([r[e].zoom,t(r[e],n)]);const s={name:"linear"};return{kind:"composite",interpolationType:s,interpolationFactor:Yn.interpolationFactor.bind(void 0,s),zoomStops:o.map(t=>t[0]),evaluate:({zoom:t},r)=>zr({stops:o,base:e.base},n,t).evaluate(t,r)}}if(o){const t="exponential"===s?{name:"exponential",base:void 0!==e.base?e.base:1}:null;return{kind:"camera",interpolationType:t,interpolationFactor:Yn.interpolationFactor.bind(void 0,t),zoomStops:e.stops.map(t=>t[0]),evaluate:({zoom:t})=>a(e,n,t,c,l)}}return{kind:"source",evaluate(t,r){const i=r&&r.properties?r.properties[e.property]:void 0;return void 0===i?Dr(e.default,n.default):a(e,n,i,c,l)}}}(this._parameters,this._specification))}static deserialize(t){return new Xr(t._parameters,t._specification)}static serialize(t){return{_parameters:t._parameters,_specification:t._specification}}}class Yr{constructor(t,e,n,r){this.message=(t?t+": ":"")+n,r&&(this.identifier=r),null!=e&&e.__line__&&(this.line=e.__line__)}}function qr(t){const e=t.key,n=t.value,r=t.valueSpec||{},i=t.objectElementValidators||{},o=t.style,s=t.styleSpec;let a=[];const c=Ur(n);if("object"!==c)return[new Yr(e,n,`object expected, ${c} found`)];for(const t in n){const c=t.split(".")[0];let l;i[c]?l=i[c]:r[c]?l=Ai:i["*"]?l=i["*"]:r["*"]&&(l=Ai),l?a=a.concat(l({key:(e?e+".":e)+t,value:n[t],valueSpec:r[c]||r["*"],style:o,styleSpec:s,object:n,objectKey:t},n)):a.push(new Yr(e,n[t],`unknown property "${t}"`))}for(const t in r)i[t]||r[t].required&&void 0===r[t].default&&void 0===n[t]&&a.push(new Yr(e,n,`missing required property "${t}"`));return a}function Kr(t){const e=t.value,n=t.valueSpec,r=t.style,i=t.styleSpec,o=t.key,s=t.arrayElementValidator||Ai;if("array"!==Ur(e))return[new Yr(o,e,`array expected, ${Ur(e)} found`)];if(n.length&&e.length!==n.length)return[new Yr(o,e,`array length ${n.length} expected, length ${e.length} found`)];if(n["min-length"]&&e.length<n["min-length"])return[new Yr(o,e,`array length at least ${n["min-length"]} expected, length ${e.length} found`)];let a={type:n.value,values:n.values,minimum:n.minimum,maximum:n.maximum,function:void 0};i.$version<7&&(a.function=n.function),"object"===Ur(n.value)&&(a=n.value);let c=[];for(let t=0;t<e.length;t++)c=c.concat(s({array:e,arrayIndex:t,value:e[t],valueSpec:a,style:r,styleSpec:i,key:`${o}[${t}]`}));return c}function Jr(t){const e=t.key,n=t.value,r=t.valueSpec;let i=Ur(n);if("number"===i&&n!=n&&(i="NaN"),"number"!==i)return[new Yr(e,n,`number expected, ${i} found`)];if("minimum"in r){let i=r.minimum;if("array"===Ur(r.minimum)&&(i=r.minimum[t.arrayIndex]),n<i)return[new Yr(e,n,`${n} is less than the minimum value ${i}`)]}if("maximum"in r){let i=r.maximum;if("array"===Ur(r.maximum)&&(i=r.maximum[t.arrayIndex]),n>i)return[new Yr(e,n,`${n} is greater than the maximum value ${i}`)]}return[]}function $r(t){const e=t.valueSpec,n=ne(t.value.type);let r,i,o,s={};const a="categorical"!==n&&void 0===t.value.property,c=!a,l="array"===Ur(t.value.stops)&&"array"===Ur(t.value.stops[0])&&"object"===Ur(t.value.stops[0][0]),u=qr({key:t.key,value:t.value,valueSpec:t.styleSpec.function,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{stops:function(t){if("identity"===n)return[new Yr(t.key,t.value,'identity function may not have a "stops" property')];let e=[];const r=t.value;return e=e.concat(Kr({key:t.key,value:r,valueSpec:t.valueSpec,style:t.style,styleSpec:t.styleSpec,arrayElementValidator:h})),"array"===Ur(r)&&0===r.length&&e.push(new Yr(t.key,r,"array must have at least one stop")),e},default:function(t){return Ai({key:t.key,value:t.value,valueSpec:e,style:t.style,styleSpec:t.styleSpec})}}});return"identity"===n&&a&&u.push(new Yr(t.key,t.value,'missing required property "property"')),"identity"===n||t.value.stops||u.push(new Yr(t.key,t.value,'missing required property "stops"')),"exponential"===n&&t.valueSpec.expression&&!Or(t.valueSpec)&&u.push(new Yr(t.key,t.value,"exponential functions not supported")),t.styleSpec.$version>=8&&(c&&!Br(t.valueSpec)?u.push(new Yr(t.key,t.value,"property functions not supported")):a&&!Lr(t.valueSpec)&&u.push(new Yr(t.key,t.value,"zoom functions not supported"))),"categorical"!==n&&!l||void 0!==t.value.property||u.push(new Yr(t.key,t.value,'"property" property is required')),u;function h(t){let n=[];const r=t.value,a=t.key;if("array"!==Ur(r))return[new Yr(a,r,`array expected, ${Ur(r)} found`)];if(2!==r.length)return[new Yr(a,r,`array length 2 expected, length ${r.length} found`)];if(l){if("object"!==Ur(r[0]))return[new Yr(a,r,`object expected, ${Ur(r[0])} found`)];if(void 0===r[0].zoom)return[new Yr(a,r,"object stop key must have zoom")];if(void 0===r[0].value)return[new Yr(a,r,"object stop key must have value")];const e=ne(r[0].zoom);if("number"!=typeof e)return[new Yr(a,r[0].zoom,"stop zoom values must be numbers")];if(o&&o>e)return[new Yr(a,r[0].zoom,"stop zoom values must appear in ascending order")];e!==o&&(o=e,i=void 0,s={}),n=n.concat(qr({key:a+"[0]",value:r[0],valueSpec:{zoom:{}},style:t.style,styleSpec:t.styleSpec,objectElementValidators:{zoom:Jr,value:f}}))}else n=n.concat(f({key:a+"[0]",value:r[0],valueSpec:{},style:t.style,styleSpec:t.styleSpec},r));return Vr(re(r[1]))?n.concat([new Yr(a+"[1]",r[1],"expressions are not allowed in function stops.")]):n.concat(Ai({key:a+"[1]",value:r[1],valueSpec:e,style:t.style,styleSpec:t.styleSpec}))}function f(t,o){const a=Ur(t.value),c=ne(t.value),l=null!==t.value?t.value:o;if(r){if(a!==r)return[new Yr(t.key,l,`${a} stop domain type must match previous stop domain type ${r}`)]}else r=a;if("number"!==a&&"string"!==a&&"boolean"!==a&&"number"!=typeof c&&"string"!=typeof c&&"boolean"!=typeof c)return[new Yr(t.key,l,"stop domain value must be a number, string, or boolean")];if("number"!==a&&"categorical"!==n){let r=`number expected, ${a} found`;return Br(e)&&void 0===n&&(r+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new Yr(t.key,l,r)]}return"categorical"!==n||"number"!==a||"number"==typeof c&&isFinite(c)&&Math.floor(c)===c?"categorical"!==n&&"number"===a&&"number"==typeof c&&"number"==typeof i&&void 0!==i&&c<i?[new Yr(t.key,l,"stop domain values must appear in ascending order")]:(i=c,"categorical"===n&&c in s?[new Yr(t.key,l,"stop domain values must be unique")]:(s[c]=!0,[])):[new Yr(t.key,l,"integer expected, found "+String(c))]}}function ti(t){const e=("property"===t.expressionContext?Wr:Gr)(re(t.value),t.valueSpec);if("error"===e.result)return e.value.map(e=>new Yr(`${t.key}${e.key}`,t.value,e.message));const n=e.value.expression||e.value._styleExpression.expression;if("property"===t.expressionContext&&"text-font"===t.propertyKey&&!n.outputDefined())return[new Yr(t.key,t.value,`Invalid data expression for "${t.propertyKey}". Output values must be contained as literals within the expression.`)];if("property"===t.expressionContext&&"layout"===t.propertyType&&!wn(n))return[new Yr(t.key,t.value,'"feature-state" data expressions are not supported with layout properties.')];if("filter"===t.expressionContext)return function t(e,n){const r=new Set(["zoom","feature-state","pitch","distance-from-center"]);if(n.valueSpec&&n.valueSpec.expression)for(const t of n.valueSpec.expression.parameters)r.delete(t);if(0===r.size)return[];const i=[];return e instanceof tn&&r.has(e.name)?[new Yr(n.key,n.value,`["${e.name}"] expression is not supported in a filter for a ${n.object.type} layer with id: ${n.object.id}`)]:(e.eachChild(e=>{i.push(...t(e,n))}),i)}(n,t);if(t.expressionContext&&0===t.expressionContext.indexOf("cluster")){if(!En(n,["zoom","feature-state"]))return[new Yr(t.key,t.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if("cluster-initial"===t.expressionContext&&!xn(n))return[new Yr(t.key,t.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function ei(t){const e=t.key,n=t.value,r=t.valueSpec,i=[];return Array.isArray(r.values)?-1===r.values.indexOf(ne(n))&&i.push(new Yr(e,n,`expected one of [${r.values.join(", ")}], ${JSON.stringify(n)} found`)):-1===Object.keys(r.values).indexOf(ne(n))&&i.push(new Yr(e,n,`expected one of [${Object.keys(r.values).join(", ")}], ${JSON.stringify(n)} found`)),i}function ni(t){if(!0===t||!1===t)return!0;if(!Array.isArray(t)||0===t.length)return!1;switch(t[0]){case"has":return t.length>=2&&"$id"!==t[1]&&"$type"!==t[1];case"in":return t.length>=3&&("string"!=typeof t[1]||Array.isArray(t[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return 3!==t.length||Array.isArray(t[1])||Array.isArray(t[2]);case"any":case"all":for(const e of t.slice(1))if(!ni(e)&&"boolean"!=typeof e)return!1;return!0;default:return!0}}function ri(t,e="fill"){if(null==t)return{filter:()=>!0,needGeometry:!1,needFeature:!1};ni(t)||(t=ci(t));const n=t;let r=!0;try{r=function(t){if(!ii(t))return t;let e=re(t);return function t(e){let n=!1;const r=[];if("case"===e[0]){for(let t=1;t<e.length-1;t+=2)n=n||ii(e[t]),r.push(e[t+1]);r.push(e[e.length-1])}else if("match"===e[0]){n=n||ii(e[1]);for(let t=2;t<e.length-1;t+=2)r.push(e[t+1]);r.push(e[e.length-1])}else if("step"===e[0]){n=n||ii(e[1]);for(let t=1;t<e.length-1;t+=2)r.push(e[t+1])}n&&(e.length=0,e.push("any",...r));for(let n=1;n<e.length;n++)t(e[n])}(e),e=function t(e){if(!Array.isArray(e))return e;const n=function(t){if(oi.has(t[0]))for(let e=1;e<t.length;e++)if(ii(t[e]))return!0;return t}(e);return!0===n?n:n.map(e=>t(e))}(e),e}(n)}catch(t){console.warn(`Failed to extract static filter. Filter will c
26ontinue working, but at higher memory usage and slower framerate.\nThis is most likely a bug, please report this via https://github.com/mapbox/mapbox-gl-js/issues/new?assignees=&labels=&template=Bug_report.md\nand paste the contents of this message in the report.\nThank you!\nFilter Expression:\n${JSON.stringify(n,null,2)}\n `)}const i=te["filter_"+e],o=Gr(r,i);let s=null;if("error"===o.result)throw new Error(o.value.map(t=>`${t.key}: ${t.message}`).join(", "));s=(t,e,n)=>o.value.evaluate(t,e,{},n);let a=null,c=null;if(r!==n){const t=Gr(n,i);if("error"===t.result)throw new Error(t.value.map(t=>`${t.key}: ${t.message}`).join(", "));a=(e,n,r,i,o)=>t.value.evaluate(e,n,{},r,void 0,void 0,i,o),c=!xn(t.value.expression)}return{filter:s,dynamicFilter:a||void 0,needGeometry:ai(r),needFeature:!!c}}function ii(t){if(!Array.isArray(t))return!1;if("pitch"===(e=t[0])||"distance-from-center"===e)return!0;var e;for(let e=1;e<t.length;e++)if(ii(t[e]))return!0;return!1}const oi=new Set(["in","==","!=",">",">=","<","<=","to-boolean"]);function si(t,e){return t<e?-1:t>e?1:0}function ai(t){if(!Array.isArray(t))return!1;if("within"===t[0])return!0;for(let e=1;e<t.length;e++)if(ai(t[e]))return!0;return!1}function ci(t){if(!t)return!0;const e=t[0];return t.length<=1?"any"!==e:"=="===e?li(t[1],t[2],"=="):"!="===e?fi(li(t[1],t[2],"==")):"<"===e||">"===e||"<="===e||">="===e?li(t[1],t[2],e):"any"===e?(n=t.slice(1),["any"].concat(n.map(ci))):"all"===e?["all"].concat(t.slice(1).map(ci)):"none"===e?["all"].concat(t.slice(1).map(ci).map(fi)):"in"===e?ui(t[1],t.slice(2)):"!in"===e?fi(ui(t[1],t.slice(2))):"has"===e?hi(t[1]):"!has"===e?fi(hi(t[1])):"within"!==e||t;var n}function li(t,e,n){switch(t){case"$type":return["filter-type-"+n,e];case"$id":return["filter-id-"+n,e];default:return["filter-"+n,t,e]}}function ui(t,e){if(0===e.length)return!1;switch(t){case"$type":return["filter-type-in",["literal",e]];case"$id":return["filter-id-in",["literal",e]];default:return e.length>200&&!e.some(t=>typeof t!=typeof e[0])?["filter-in-large",t,["literal",e.sort(si)]]:["filter-in-small",t,["literal",e]]}}function hi(t){switch(t){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",t]}}function fi(t){return["!",t]}function di(t){return ni(re(t.value))?ti(ee({},t,{expressionContext:"filter",valueSpec:t.styleSpec["filter_"+(t.layerType||"fill")]})):function t(e){const n=e.value,r=e.key;if("array"!==Ur(n))return[new Yr(r,n,`array expected, ${Ur(n)} found`)];const i=e.styleSpec;let o,s=[];if(n.length<1)return[new Yr(r,n,"filter array must have at least 1 element")];switch(s=s.concat(ei({key:r+"[0]",value:n[0],valueSpec:i.filter_operator,style:e.style,styleSpec:e.styleSpec})),ne(n[0])){case"<":case"<=":case">":case">=":n.length>=2&&"$type"===ne(n[1])&&s.push(new Yr(r,n,`"$type" cannot be use with operator "${n[0]}"`));case"==":case"!=":3!==n.length&&s.push(new Yr(r,n,`filter array for operator "${n[0]}" must have 3 elements`));case"in":case"!in":n.length>=2&&(o=Ur(n[1]),"string"!==o&&s.push(new Yr(r+"[1]",n[1],`string expected, ${o} found`)));for(let t=2;t<n.length;t++)o=Ur(n[t]),"$type"===ne(n[1])?s=s.concat(ei({key:`${r}[${t}]`,value:n[t],valueSpec:i.geometry_type,style:e.style,styleSpec:e.styleSpec})):"string"!==o&&"number"!==o&&"boolean"!==o&&s.push(new Yr(`${r}[${t}]`,n[t],`string, number, or boolean expected, ${o} found`));break;case"any":case"all":case"none":for(let i=1;i<n.length;i++)s=s.concat(t({key:`${r}[${i}]`,value:n[i],style:e.style,styleSpec:e.styleSpec}));break;case"has":case"!has":o=Ur(n[1]),2!==n.length?s.push(new Yr(r,n,`filter array for "${n[0]}" operator must have 2 elements`)):"string"!==o&&s.push(new Yr(r+"[1]",n[1],`string expected, ${o} found`));break;case"within":o=Ur(n[1]),2!==n.length?s.push(new Yr(r,n,`filter array for "${n[0]}" operator must have 2 elements`)):"object"!==o&&s.push(new Yr(r+"[1]",n[1],`object expected, ${o} found`))}return s}(t)}function pi(t,e){const n=t.key,r=t.style,i=t.styleSpec,o=t.value,s=t.objectKey,a=i[`${e}_${t.layerType}`];if(!a)return[];const c=s.match(/^(.*)-transition$/);
vendor: 56,069 bytes, line 26
26if("paint"===e&&c&&a[c[1]]&&a[c[1]].transition)return Ai({key:n,value:o,valueSpec:i.transition,style:r,styleSpec:i});const l=t.valueSpec||a[s];if(!l)return[new Yr(n,o,`unknown property "${s}"`)];let u;if("string"===Ur(o)&&Br(l)&&!l.tokens&&(u=/^{([^}]+)}$/.exec(o))){const t=`\`{ "type": "identity", "property": ${u?JSON.stringify(u[1]):'"_"'} }\``;return[new Yr(n,o,`"${s}" does not support interpolation syntax\nUse an identity property function instead: ${t}.`)]}const h=[];return"symbol"===t.layerType&&("text-field"===s&&r&&!r.glyphs&&h.push(new Yr(n,o,'use of "text-field" requires a style "glyphs" property')),"text-font"===s&&kr(re(o))&&"identity"===ne(o.type)&&h.push(new Yr(n,o,'"text-font" does not support identity functions'))),h.concat(Ai({key:t.key,value:o,valueSpec:l,style:r,styleSpec:i,expressionContext:"property",propertyType:e,propertyKey:s}))}function gi(t){return pi(t,"paint")}function mi(t){return pi(t,"layout")}function yi(t){let e=[];const n=t.value,r=t.key,i=t.style,o=t.styleSpec;n.type||n.ref||e.push(new Yr(r,n,'either "type" or "ref" is required'));let s=ne(n.type);const a=ne(n.ref);if(n.id){const o=ne(n.id);for(let s=0;s<t.arrayIndex;s++){const t=i.layers[s];ne(t.id)===o&&e.push(new Yr(r,n.id,`duplicate layer id "${n.id}", previously used at line ${t.id.__line__}`))}}if("ref"in n){let t;["type","source","source-layer","filter","layout"].forEach(t=>{t in n&&e.push(new Yr(r,n[t],`"${t}" is prohibited for ref layers`))}),i.layers.forEach(e=>{ne(e.id)===a&&(t=e)}),t?t.ref?e.push(new Yr(r,n.ref,"ref cannot reference another ref layer")):s=ne(t.type):"string"==typeof a&&e.push(new Yr(r,n.ref,`ref layer "${a}" not found`))}else if("background"!==s&&"sky"!==s)if(n.source){const t=i.sources&&i.sources[n.source],o=t&&ne(t.type);t?"vector"===o&&"raster"===s?e.push(new Yr(r,n.source,`layer "${n.id}" requires a raster source`)):"raster"===o&&"raster"!==s?e.push(new Yr(r,n.source,`layer "${n.id}" requires a vector source`)):"vector"!==o||n["source-layer"]?"raster-dem"===o&&"hillshade"!==s?e.push(new Yr(r,n.source,"raster-dem source can only be used with layer type 'hillshade'.")):"line"!==s||!n.paint||!n.paint["line-gradient"]&&!n.paint["line-trim-offset"]||"geojson"===o&&t.lineMetrics||e.push(new Yr(r,n,`layer "${n.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):e.push(new Yr(r,n,`layer "${n.id}" must specify a "source-layer"`)):e.push(new Yr(r,n.source,`source "${n.source}" not found`))}else e.push(new Yr(r,n,'missing required property "source"'));return e=e.concat(qr({key:r,value:n,valueSpec:o.layer,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{"*":()=>[],type:()=>Ai({key:r+".type",value:n.type,valueSpec:o.layer.type,style:t.style,styleSpec:t.styleSpec,object:n,objectKey:"type"}),filter:t=>di(ee({layerType:s},t)),layout:t=>qr({layer:n,key:t.key,value:t.value,valueSpec:{},style:t.style,styleSpec:t.styleSpec,objectElementValidators:{"*":t=>mi(ee({layerType:s},t))}}),paint:t=>qr({layer:n,key:t.key,value:t.value,valueSpec:{},style:t.style,styleSpec:t.styleSpec,objectElementValidators:{"*":t=>gi(ee({layerType:s},t))}})}})),e}function _i(t){const e=t.value,n=t.key,r=Ur(e);return"string"!==r?[new Yr(n,e,`string expected, ${r} found`)]:[]}const vi={promoteId:function({key:t,value:e}){if("string"===Ur(e))return _i({key:t,value:e});{const n=[];for(const r in e)n.push(..._i({key:`${t}.${r}`,value:e[r]}));return n}}};function bi(t){const e=t.value,n=t.key,r=t.styleSpec,i=t.style;if(!e.type)return[new Yr(n,e,'"type" is required')];const o=ne(e.type);let s;switch(o){case"vector":case"raster":case"raster-dem":return s=qr({key:n,value:e,valueSpec:r["source_"+o.replace("-","_")],style:t.style,styleSpec:r,objectElementValidators:vi}),s;case"geojson":if(s=qr({key:n,value:e,valueSpec:r.source_geojson,style:i,styleSpec:r,objectElementValidators:vi}),e.cluster)for(const t in e.clusterProperties){const[r,i]=e.clusterProperties[t],o="string"==typeof r?[r,["accumulated"],["get",t]]:r;s.push(...ti({key:`${n}.${t}.map`,value:i,expressionContext:"cluster-map"})),s.push(...ti({key:`${n}.${t}.reduce`,value:o,expressionContext:"cluster-reduce"}))}return s;case"video":return qr({key:n,value:e,valueSpec:r.source_video,style:i,styleSpec:r});case"image":return qr({key:n,value:e,valueSpec:r.source_image,style:i,styleSpec:r});case"canvas":return[new Yr(n,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")];default:return ei({key:n+".type",value:e.type,valueSpec:{values:xi(r)},style:i,styleSpec:r})}}function xi(t){return t.source.reduce((e,n)=>{const r=t[n];return"enum"===r.type.type&&(e=e.concat(Object.keys(r.type.values))),e},[])}function wi(t){const e=t.value,n=t.styleSpec,r=n.light,i=t.style;let o=[];const s=Ur(e);if(void 0===e)return o;if("object"!==s)return o=o.concat([new Yr("light",e,`object expected, ${s} found`)]),o;for(const t in e){const s=t.match(/^(.*)-transition$/);o=o.concat(s&&r[s[1]]&&r[s[1]].transition?Ai({key:t,value:e[t],valueSpec:n.transition,style:i,styleSpec:n}):r[t]?Ai({key:t,value:e[t],valueSpec:r[t],style:i,styleSpec:n}):[new Yr(t,e[t],`unknown property "${t}"`)])}return o}function Ei(t){const e=t.value,n=t.key,r=t.style,i=t.styleSpec,o=i.terrain;let s=[];const a=Ur(e);if(void 0===e)return s;if("object"!==a)return s=s.concat([new Yr("terrain",e,`object expected, ${a} found`)]),s;for(const t in e){const n=t.match(/^(.*)-transition$/);s=s.concat(n&&o[n[1]]&&o[n[1]].transition?Ai({key:t,value:e[t],valueSpec:i.transition,style:r,styleSpec:i}):o[t]?Ai({key:t,value:e[t],valueSpec:o[t],style:r,styleSpec:i}):[new Yr(t,e[t],`unknown property "${t}"`)])}if(e.source){const t=r.sources&&r.sources[e.source],i=t&&ne(t.type);t?"raster-dem"!==i&&s.push(new Yr(n,e.source,`terrain cannot be used with a source of type ${String(i)}, it only be used with a "raster-dem" source type`)):s.push(new Yr(n,e.source,`source "${e.source}" not found`))}else s.push(new Yr(n,e,'terrain is missing required property "source"'));return s}function Si(t){const e=t.value,n=t.style,r=t.styleSpec,i=r.fog;let o=[];const s=Ur(e);if(void 0===e)return o;if("object"!==s)return o=o.concat([new Yr("fog",e,`object expected, ${s} found`)]),o;for(const t in e){const s=t.match(/^(.*)-transition$/);o=o.concat(s&&i[s[1]]&&i[s[1]].transition?Ai({key:t,value:e[t],valueSpec:r.transition,style:n,styleSpec:r}):i[t]?Ai({key:t,value:e[t],valueSpec:i[t],style:n,styleSpec:r}):[new Yr(t,e[t],`unknown property "${t}"`)])}return o}const Ci={"*":()=>[],array:Kr,boolean:function(t){const e=t.value,n=t.key,r=Ur(e);return"boolean"!==r?[new Yr(n,e,`boolean expected, ${r} found`)]:[]},number:Jr,color:function(t){const e=t.key,n=t.value,r=Ur(n);return"string"!==r?[new Yr(e,n,`color expected, ${r} found`)]:null===Se(n)?[new Yr(e,n,`color expected, "${n}" found`)]:[]},enum:ei,filter:di,function:$r,layer:yi,object:qr,source:bi,light:wi,terrain:Ei,fog:Si,string:_i,formatted:function(t){return 0===_i(t).length?[]:ti(t)},resolvedImage:function(t){return 0===_i(t).length?[]:ti(t)},projection:function(t){const e=t.value,n=t.styleSpec,r=n.projection,i=t.style;let o=[];const s=Ur(e);if("object"===s)for(const t in e)o=o.concat(Ai({key:t,value:e[t],valueSpec:r[t],style:i,styleSpec:n}));else"string"!==s&&(o=o.concat([new Yr("projection",e,`object or string expected, ${s} found`)]));return o}};function Ai(t){const e=t.value,n=t.valueSpec,r=t.styleSpec;return n.expression&&kr(ne(e))?$r(t):n.expression&&Vr(re(e))?ti(t):n.type&&Ci[n.type]?Ci[n.type](t):qr(ee({},t,{valueSpec:n.type?r[n.type]:n}))}function Ii(t){const e=t.value,n=t.key,r=_i(t);return r.length||(-1===e.indexOf("{fontstack}")&&r.push(new Yr(n,e,'"glyphs" url must include a "{fontstack}" token')),-1===e.indexOf("{range}")&&r.push(new Yr(n,e,'"glyphs" url must include a "{range}" token'))),r}function Ti(t,e=te){return Bi(Ai({key:"",value:t,valueSpec:e.$root,styleSpec:e,style:t,objectElementValidators:{glyphs:Ii,"*":()=>[]}}))}const Mi=t=>Bi(gi(t)),Fi=t=>Bi(mi(t));function Bi(t){return t.slice().sort((t,e)=>t.line&&e.line?t.line-e.line:0)}function Li(t,e){let n=!1;if(e&&e.length)for(const r of e)t.fire(new Jt(new Error(r.message))),n=!0;return n}var Oi=Ui;function Ui(t,e,n){var r=this.cells=[];if(t instanceof ArrayBuffer){this.arrayBuffer=t;var i=new Int32Array(this.arrayBuffer);t=i[0],this.d=(e=i[1])+2*(n=i[2]);for(var o=0;o<this.d*this.d;o++){var s=i[3+o],a=i[3+o+1];r.push(s===a?null:i.subarray(s,a))}var c=i[3+r.length+1];this.keys=i.subarray(i[3+r.length],c),this.bboxes=i.subarray(c),this.insert=this._insertReadonly}else{this.d=e+2*n;for(var l=0;l<this.d*this.d;l++)r.push([]);this.keys=[],this.bboxes=[]}this.n=e,this.extent=t,this.padding=n,this.scale=e/t,this.uid=0;var u=n/e*t;this.min=-u,this.max=t+u}Ui.prototype.insert=function(t,e,n,r,i){this._forEachCell(e,n,r,i,this._insertCell,this.uid++),this.keys.push(t),this.bboxes.push(e),this.bboxes.push(n),this.bboxes.push(r),this.bboxes.push(i)},Ui.prototype._insertReadonly=function(){throw"Cannot insert into a GridIndex created from an ArrayBuffer."},Ui.prototype._insertCell=function(t,e,n,r,i,o){this.cells[i].push(o)},Ui.prototype.query=function(t,e,n,r,i){var o=this.min,s=this.max;if(t<=o&&e<=o&&s<=n&&s<=r&&!i)return Array.prototype.slice.call(this.keys);var a=[];return this._forEachCell(t,e,n,r,this._queryCell,a,{},i),a},Ui.prototype._queryCell=function(t,e,n,r,i,o,s,a){var c=this.cells[i];if(null!==c)for(var l=this.keys,u=this.bboxes,h=0;h<c.length;h++){var f=c[h];if(void 0===s[f]){var d=4*f;(a?a(u[d+0],u[d+1],u[d+2],u[d+3]):t<=u[d+2]&&e<=u[d+3]&&n>=u[d+0]&&r>=u[d+1])?(s[f]=!0,o.push(l[f])):s[f]=!1}}},Ui.prototype._forEachCell=function(t,e,n,r,i,o,s,a){for(var c=this._convertToCellCoord(t),l=this._convertToCellCoord(e),u=this._convertToCellCoord(n),h=this._convertToCellCoord(r),f=c;f<=u;f++)for(var d=l;d<=h;d++){var p=this.d*d+f;if((!a||a(this._convertFromCellCoord(f),this._convertFromCellCoord(d),this._convertFromCellCoord(f+1),this._convertFromCellCoord(d+1)))&&i.call(this,t,e,n,r,p,o,s,a))return}},Ui.prototype._convertFromCellCoord=function(t){return(t-this.padding)/this.scale},Ui.prototype._convertToCellCoord=function(t){return Math.max(0,Math.min(this.d-1,Math.floor(t*this.scale)+this.padding))},Ui.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var t=this.cells,e=3+this.cells.length+1+1,n=0,r=0;r<this.cells.length;r++)n+=this.cells[r].length;var i=new Int32Array(e+n+this.keys.length+this.bboxes.length);i[0]=this.extent,i[1]=this.n,i[2]=this.padding;for(var o=e,s=0;s<t.length;s++){var a=t[s];i[3+s]=o,i.set(a,o),o+=a.length}return i[3+t.length]=o,i.set(this.keys,o),i[3+t.length+1]=o+=this.keys.length,i.set(this.bboxes,o),o+=this.bboxes.length,i.buffer};var ki=f(Oi);const Pi={};function Di(t,e,n={}){Object.defineProperty(t,"_classRegistryKey",{value:e,writeable:!1}),Pi[e]={klass:t,omit:n.omit||[]}}Di(Object,"Object"),ki.serialize=function(t,e){const n=t.toArrayBuffer();return e&&e.push(n),{buffer:n}},ki.deserialize=function(t){return new ki(t.buffer)},Object.defineProperty(ki,"name",{value:"Grid"}),Di(ki,"Grid"),Di(Be,"Color"),Di(Error,"Error"),Di(lt,"AJAXError"),Di(ke,"ResolvedImage"),Di(Xr,"StylePropertyFunction"),Di(Nr,"StyleExpression",{omit:["_evaluator"]}),Di(Zr,"ZoomDependentExpression"),Di(Hr,"ZoomConstantExpression"),Di(tn,"CompoundExpression",{omit:["_evaluate"]});for(const t in Tr)Pi[Tr[t]._classRegistryKey]||Di(Tr[t],"Expression"+t);function Ri(t){return t&&"undefined"!=typeof ArrayBuffer&&(t instanceof ArrayBuffer||t.constructor&&"ArrayBuffer"===t.constructor.name)}function ji(t){return e.ImageBitmap&&t instanceof e.ImageBitmap}function zi(t,n){if(null==t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||t instanceof Boolean||t instanceof Number||t instanceof String||t instanceof Date||t instanceof RegExp)return t;if(Ri(t)||ji(t))return n&&n.push(t),t;if(ArrayBuffer.isView(t)){const e=t;return n&&n.push(e.buffer),e}if(t instanceof e.ImageData)return n&&n.push(t.data.buffer),t;if(Array.isArray(t)){const e=[];for(const r of t)e.push(zi(r,n));return e}if("object"==typeof t){const e=t.constructor,r=e._classRegistryKey;if(!r)throw new Error("can't serialize object of unregistered class "+r);const i=e.serialize?e.serialize(t,n):{};if(!e.serialize){for(const e in t)t.hasOwnProperty(e)&&(Pi[r].omit.indexOf(e)>=0||(i[e]=zi(t[e],n)));t instanceof Error&&(i.message=t.message)}if(i.$name)throw new Error("$name property is reserved for worker serialization logic.");return"Object"!==r&&(i.$name=r),i}throw new Error("can't serialize object of type "+typeof t)}function Qi(t){if(null==t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||t instanceof Boolean||t instanceof Number||t instanceof String||t instanceof Date||t instanceof RegExp||Ri(t)||ji(t)||ArrayBuffer.isView(t)||t instanceof e.ImageData)return t;if(Array.isArray(t))return t.map(Qi);if("object"==typeof t){const e=t.$name||"Object",{klass:n}=Pi[e];if(!n)throw new Error("can't deserialize unregistered class "+e);if(n.deserialize)return n.deserialize(t);const r=Object.create(n.prototype);for(const e of Object.keys(t))"$name"!==e&&(r[e]=Qi(t[e]));return r}throw new Error("can't deserialize object of type "+typeof t)}const Ni=t=>t>=128&&t<=255,Vi=t=>t>=1536&&t<=1791,Gi=t=>t>=1872&&t<=1919,Hi=t=>t>=2208&&t<=2303,Zi=t=>t>=4352&&t<=4607,Wi=t=>t>=5120&&t<=5759,Xi=t=>t>=6016&&t<=6143,Yi=t=>t>=6320&&t<=6399,qi=t=>t>=8192&&t<=8303,Ki=t=>t>=8448&&t<=8527,Ji=t=>t>=8528&&t<=8591,$i=t=>t>=8960&&t<=9215,to=t=>t>=9216&&t<=9279,eo=t=>t>=9280&&t<=9311,no=t=>t>=9312&&t<=9471,ro=t=>t>=9632&&t<=9727,io=t=>t>=9728&&t<=9983,oo=t=>t>=11008&&t<=11263,so=t=>t>=11904&&t<=12031,ao=t=>t>=12032&&t<=12255,co=t=>t>=12272&&t<=12287,lo=t=>t>=12288&&t<=12351,uo=t=>t>=12352&&t<=12447,ho=t=>t>=12448&&t<=12543,fo=t=>t>=12544&&t<=12591,po=t=>t>=12592&&t<=12687,go=t=>t>=12688&&t<=12703,mo=t=>t>=12704&&t<=12735,yo=t=>t>=12736&&t<=12783,_o=t=>t>=12784&&t<=12799,vo=t=>t>=12800&&t<=13055,bo=t=>t>=13056&&t<=13311,xo=t=>t>=13312&&t<=19903,wo=t=>t>=19904&&t<=19967,Eo=t=>t>=19968&&t<=40959,So=t=>t>=40960&&t<=42127,Co=t=>t>=42128&&t<=42191,Ao=t=>t>=43360&&t<=43391,Io=t=>t>=44032&&t<=55215,To=t=>t>=55216&&t<=55295,Mo=t=>t>=57344&&t<=63743,Fo=t=>t>=63744&&t<=64255,Bo=t=>t>=64336&&t<=65023,Lo=t=>t>=65040&&t<=65055,Oo=t=>t>=65072&&t<=65103,Uo=t=>t>=65104&&t<=65135,ko=t=>t>=65136&&t<=65279,Po=t=>t>=65280&&t<=65519;function Do(t){for(const e of t)if(zo(e.charCodeAt(0)))return!0;return!1}function Ro(t){for(const e of t)if(!jo(e.charCodeAt(0)))return!1;return!0}function jo(t){return!(Vi(t)||Gi(t)||Hi(t)||Bo(t)||ko(t))}function zo(t){return!(746!==t&&747!==t&&(t<4352||!(mo(t)||fo(t)||Oo(t)&&!(t>=65097&&t<=65103)||Fo(t)||bo(t)||so(t)||yo(t)||!(!lo(t)||t>=12296&&t<=12305||t>=12308&&t<=12319||12336===t)||xo(t)||Eo(t)||vo(t)||po(t)||Ao(t)||To(t)||Zi(t)||Io(t)||uo(t)||co(t)||go(t)||ao(t)||_o(t)||ho(t)&&12540!==t||!(!Po(t)||65288===t||65289===t||65293===t||t>=65306&&t<=65310||65339===t||65341===t||65343===t||t>=65371&&t<=65503||65507===t||t>=65512&&t<=65519)||!(!Uo(t)||t>=65112&&t<=65118||t>=65123&&t<=65126)||Wi(t)||Yi(t)||Lo(t)||wo(t)||So(t)||Co(t))))}function Qo(t){return!(zo(t)||function(t){return!!(Ni(t)&&(167===t||169===t||174===t||177===t||188===t||189===t||190===t||215===t||247===t)||qi(t)&&(8214===t||8224===t||8225===t||8240===t||8241===t||8251===t||8252===t||8258===t||8263===t||8264===t||8265===t||8273===t)||Ki(t)||Ji(t)||$i(t)&&(t>=8960&&t<=8967||t>=8972&&t<=8991||t>=8996&&t<=9e3||9003===t||t>=9085&&t<=9114||t>=9150&&t<=9165||9167===t||t>=9169&&t<=9179||t>=9186&&t<=9215)||to(t)&&9251!==t||eo(t)||no(t)||ro(t)||io(t)&&!(t>=9754&&t<=9759)||oo(t)&&(t>=11026&&t<=11055||t>=11088&&t<=11097||t>=11192&&t<=11243)||lo(t)||ho(t)||Mo(t)||Oo(t)||Uo(t)||Po(t)||8734===t||8756===t||8757===t||t>=9984&&t<=10087||t>=10102&&t<=10131||65532===t||65533===t)}(t))}function No(t){return t>=1424&&t<=2303||Bo(t)||ko(t)}function Vo(t,e){return!(!e&&No(t)||t>=2304&&t<=3583||t>=3840&&t<=4255||Xi(t))}function Go(t){for(const e of t)if(No(e.charCodeAt(0)))return!0;return!1}const Ho="deferred",Zo="loading",Wo="loaded";let Xo=null,Yo="unavailable",qo=null;const Ko=function(t){t&&"string"==typeof t&&t.indexOf("NetworkError")>-1&&(Yo="error"),Xo&&Xo(t)};function Jo(){$o.fire(new Kt("pluginStateChange",{pluginStatus:Yo,pluginURL:qo}))}const $o=new $t,ts=function(){return Yo},es=function(){if(Yo!==Ho||!qo)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");Yo=Zo,Jo(),qo&&ft({url:qo},t=>{t?Ko(t):(Yo=Wo,Jo())})},ns={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:()=>Yo===Wo||null!=ns.applyArabicShaping,isLoading:()=>Yo===Zo,setState(t){Yo=t.pluginStatus,qo=t.pluginURL},isParsed:()=>null!=ns.applyArabicShaping&&null!=ns.processBidirectionalText&&null!=ns.processStyledBidirectionalText,getPluginURL:()=>qo};class rs{constructor(t,e){this.zoom=t,e?(this.now=e.now,this.fadeDuration=e.fadeDuration,this.transition=e.transition,this.pitch=e.pitch):(this.now=0,this.fadeDuration=0,this.transition={},this.pitch=0)}isSupportedScript(t){return function(t,e){for(const n of t)if(!Vo(n.charCodeAt(0),e))return!1;return!0}(t,ns.isLoaded())}}class is{constructor(t,e){this.property=t,this.value=e,this.expression=function(t,e){if(kr(t))return new Xr(t,e);if(Vr(t)){const n=Wr(t,e);if("error"===n.result)throw new Error(n.value.map(t=>`${t.key}: ${t.message}`).join(", "));return n.value}{let n=t;return"string"==typeof t&&"color"===e.type&&(n=Be.parse(t)),{kind:"constant",evaluate:()=>n}}}(void 0===e?t.specification.default:e,t.specification)}isDataDriven(){return"source"===this.expression.kind||"composite"===this.expression.kind}possiblyEvaluate(t,e,n){return this.property.possiblyEvaluate(this,t,e,n)}}class os{constructor(t){this.property=t,this.value=new is(t,void 0)}transitioned(t,e){return new as(this.property,this.value,e,L({},t.transition,this.transition),t.now)}untransitioned(){return new as(this.property,this.value,null,{},0)}}class ss{constructor(t){this._properties=t,this._values=Object.create(t.defaultTransitionablePropertyValues)}getValue(t){return N(this._values[t].value.value)}setValue(t,e){this._values.hasOwnProperty(t)||(this._values[t]=new os(this._values[t].property)),this._values[t].value=new is(this._values[t].property,null===e?void 0:N(e))}getTransition(t){return N(this._values[t].transition)}setTransition(t,e){this._values.hasOwnProperty(t)||(this._values[t]=new os(this._values[t].property)),this._values[t].transition=N(e)||void 0}serialize(){const t={};for(const e of Object.keys(this._values)){const n=this.getValue(e);void 0!==n&&(t[e]=n);const r=this.getTransition(e);void 0!==r&&(t[e+"-transition"]=r)}return t}transitioned(t,e){const n=new cs(this._properties);for(const r of Object.keys(this._values))n._values[r]=this._values[r].transitioned(t,e._values[r]);return n}untransitioned(){const t=new cs(this._properties);for(const e of Object.keys(this._values))t._values[e]=this._values[e].untransitioned();return t}}class as{constructor(t,e,n,r,i){const o=r.delay||0,s=r.duration||0;i=i||0,this.property=t,this.value=e,this.begin=i+o,this.end=this.begin+s,t.specification.transition&&(r.delay||r.duration)&&(this.prior=n)}possiblyEvaluate(t,e,n){const r=t.now||0,i=this.value.possiblyEvaluate(t,e,n),o=this.prior;if(o){if(r>this.end)return this.prior=null,i;if(this.value.isDataDriven())return this.prior=null,i;if(r<this.begin)return o.possiblyEvaluate(t,e,n);{const s=(r-this.begin)/(this.end-this.begin);return this.property.interpolate(o.possiblyEvaluate(t,e,n),i,S(s))}}return i}}class cs{constructor(t){this._properties=t,this._values=Object.create(t.defaultTransitioningPropertyValues)}possiblyEvaluate(t,e,n){const r=new hs(this._properties);for(const i of Object.keys(this._values))r._values[i]=this._values[i].possiblyEvaluate(t,e,n);return r}hasTransition(){for(const t of Object.keys(this._values))if(this._values[t].prior)return!0;return!1}}class ls{constructor(t){this._properties=t,this._values=Object.create(t.defaultPropertyValues)}getValue(t){return N(this._values[t].value)}setValue(t,e){this._values[t]=new is(this._values[t].property,null===e?void 0:N(e))}serialize(){const t={};for(const e of Object.keys(this._values)){const n=this.getValue(e);void 0!==n&&(t[e]=n)}return t}possiblyEvaluate(t,e,n){const r=new hs(this._properties);for(const i of Object.keys(this._values))r._values[i]=this._values[i].possiblyEvaluate(t,e,n);return r}}class us{constructor(t,e,n){this.property=t,this.value=e,this.parameters=n}isConstant(){return"constant"===this.value.kind}constantOr(t){return"constant"===this.value.kind?this.value.value:t}evaluate(t,e,n,r){return this.property.evaluate(this.value,this.parameters,t,e,n,r)}}class hs{constructor(t){this._properties=t,this._values=Object.create(t.defaultPossiblyEvaluatedValues)}get(t){return this._values[t]}}class fs{constructor(t){this.specification=t}possiblyEvaluate(t,e){return t.expression.evaluate(e)}interpolate(t,e,n){const r=Ln[this.specification.type];return r?r(t,e,n):t}}class ds{constructor(t,e){this.specification=t,this.overrides=e}possiblyEvaluate(t,e,n,r){return new us(this,"constant"===t.expression.kind||"camera"===t.expression.kind?{kind:"constant",value:t.expression.evaluate(e,null,{},n,r)}:t.expression,e)}interpolate(t,e,n){if("constant"!==t.value.kind||"constant"!==e.value.kind)return t;if(void 0===t.value.value||void 0===e.value.value)return new us(this,{kind:"constant",value:void 0},t.parameters);const r=Ln[this.specification.type];return r?new us(this,{kind:"constant",value:r(t.value.value,e.value.value,n)},t.parameters):t}evaluate(t,e,n,r,i,o){return"constant"===t.kind?t.value:t.evaluate(e,n,r,i,o)}}class ps{constructor(t){this.specification=t}possiblyEvaluate(t,e,n,r){return!!t.expression.evaluate(e,null,{},n,r)}interpolate(){return!1}}class gs{constructor(t){this.properties=t,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];const e=new rs(0,{});for(const n in t){const r=t[n];r.specification.overridable&&this.overridableProperties.push(n);const i=this.defaultPropertyValues[n]=new is(r,void 0),o=this.defaultTransitionablePropertyValues[n]=new os(r);this.defaultTransitioningPropertyValues[n]=o.untransitioned(),this.defaultPossiblyEvaluatedValues[n]=i.possiblyEvaluate(e)}}}function ms(t,e){return 256*(t=I(Math.floor(t),0,255))+I(Math.floor(e),0,255)}Di(ds,"DataDrivenProperty"),Di(fs,"DataConstantProperty"),Di(ps,"ColorRampProperty");const ys={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array};class _s{constructor(t,e){this._structArray=t,this._pos1=e*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8}}class vs{constructor(){this.isTransferred=!1,this.capacity=-1,this.resize(0)}static serialize(t,e){return t._trim(),e&&(t.isTransferred=!0,e.push(t.arrayBuffer)),{length:t.length,arrayBuffer:t.arrayBuffer}}static deserialize(t){const e=Object.create(this.prototype);return e.arrayBuffer=t.arrayBuffer,e.length=t.length,e.capacity=t.arrayBuffer.byteLength/e.bytesPerElement,e._refreshViews(),e}_trim(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())}clear(){this.length=0}resize(t){this.reserve(t),this.length=t}reserve(t){if(t>this.capacity){this.capacity=Math.max(t,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);const e=this.uint8;this._refreshViews(),e&&this.uint8.set(e)}}_refreshViews(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")}destroy(){this.int8=this.uint8=this.int16=this.uint16=this.int32=this.uint32=this.float32=null,this.arrayBuffer=null}}function bs(t,e=1){let n=0,r=0;return{members:t.map(t=>{const i=ys[t.type].BYTES_PER_ELEMENT,o=n=xs(n,Math.max(e,i)),s=t.components||1;return r=Math.max(r,i),n+=i*s,{name:t.name,type:t.type,components:s,offset:o}}),size:xs(n,Math.max(r,e)),alignment:e}}function xs(t,e){return Math.ceil(t/e)*e}class ws extends vs{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,e){const n=this.length;return this.resize(n+1),this.emplace(n,t,e)}emplace(t,e,n){const r=2*t;return this.int16[r+0]=e,this.int16[r+1]=n,t}}ws.prototype.bytesPerElement=4,Di(ws,"StructArrayLayout2i4");class Es extends vs{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,e,n){const r=this.length;return this.resize(r+1),this.emplace(r,t,e,n)}emplace(t,e,n,r){const i=3*t;return this.int16[i+0]=e,this.int16[i+1]=n,this.int16[i+2]=r,t}}Es.prototype.bytesPerElement=6,Di(Es,"StructArrayLayout3i6");class Ss extends vs{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,e,n,r){const i=this.length;return this.resize(i+1),this.emplace(i,t,e,n,r)}emplace(t,e,n,r,i){const o=4*t;return this.int16[o+0]=e,this.int16[o+1]=n,this.int16[o+2]=r,this.int16[o+3]=i,t}}Ss.prototype.bytesPerElement=8,Di(Ss,"StructArrayLayout4i8");class Cs extends vs{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,e,n,r,i,o,s){const a=this.length;return this.resize(a+1),this.emplace(a,t,e,n,r,i,o,s)}emplace(t,e,n,r,i,o,s,a){const c=6*t,l=12*t,u=3*t;return this.int16[c+0]=e,this.int16[c+1]=n,this.uint8[l+4]=r,this.uint8[l+5]=i,this.uint8[l+6]=o,this.uint8[l+7]=s,this.float32[u+2]=a,t}}Cs.prototype.bytesPerElement=12,Di(Cs,"StructArrayLayout2i4ub1f12");class As extends vs{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,e,n,r){const i=this.length;return this.resize(i+1),this.emplace(i,t,e,n,r)}emplace(t,e,n,r,i){const o=4*t;return this.float32[o+0]=e,this.float32[o+1]=n,this.float32[o+2]=r,this.float32[o+3]=i,t}}As.prototype.bytesPerElement=16,Di(As,"StructArrayLayout4f16");class Is extends vs{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,e,n,r,i){const o=this.length;return this.resize(o+1),this.emplace(o,t,e,n,r,i)}emplace(t,e,n,r,i,o){const s=6*t,a=3*t;return this.uint16[s+0]=e,this.uint16[s+1]=n,this.uint16[s+2]=r,this.uint16[s+3]=i,this.float32[a+2]=o,t}}Is.prototype.bytesPerElement=12,Di(Is,"StructArrayLayout4ui1f12");class Ts extends vs{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,e,n,r){const i=this.length;return this.resize(i+1),this.emplace(i,t,e,n,r)}emplace(t,e,n,r,i){const o=4*t;return this.uint16[o+0]=e,this.uint16[o+1]=n,this.uint16[o+2]=r,this.uint16[o+3]=i,t}}Ts.prototype.bytesPerElement=8,Di(Ts,"StructArrayLayout4ui8");class Ms extends vs{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,e,n,r,i,o){const s=this.length;return this.resize(s+1),this.emplace(s,t,e,n,r,i,o)}emplace(t,e,n,r,i,o,s){const a=6*t;return this.int16[a+0]=e,this.int16[a+1]=n,this.int16[a+2]=r,this.int16[a+3]=i,this.int16[a+4]=o,this.int16[a+5]=s,t}}Ms.prototype.bytesPerElement=12,Di(Ms,"StructArrayLayout6i12");class Fs extends vs{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,e,n,r,i,o,s,a,c,l,u,h){const f=this.length;return this.resize(f+1),this.emplace(f,t,e,n,r,i,o,s,a,c,l,u,h)}emplace(t,e,n,r,i,o,s,a,c,l,u,h,f){const d=12*t;return this.int16[d+0]=e,this.int16[d+1]=n,this.int16[d+2]=r,this.int16[d+3]=i,this.uint16[d+4]=o,this.uint16[d+5]=s,this.uint16[d+6]=a,this.uint16[d+7]=c,this.int16[d+8]=l,this.int16[d+9]=u,this.int16[d+10]=h,this.int16[d+11]=f,t}}Fs.prototype.bytesPerElement=24,Di(Fs,"StructArrayLayout4i4ui4i24");class Bs extends vs{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,e,n,r,i,o){const s=this.length;return this.resize(s+1),this.emplace(s,t,e,n,r,i,o)}emplace(t,e,n,r,i,o,s){const a=10*t,c=5*t;return this.int16[a+0]=e,this.int16[a+1]=n,this.int16[a+2]=r,this.float32[c+2]=i,this.float32[c+3]=o,this.float32[c+4]=s,t}}Bs.prototype.bytesPerElement=20,Di(Bs,"StructArrayLayout3i3f20");class Ls extends vs{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(t){const e=this.length;return this.resize(e+1),this.emplace(e,t)}emplace(t,e){return this.uint32[1*t+0]=e,t}}Ls.prototype.bytesPerElement=4,Di(Ls,"StructArrayLayout1ul4");class Os extends vs{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,e,n,r,i,o,s,a,c,l,u,h,f){const d=this.length;return this.resize(d+1),this.emplace(d,t,e,n,r,i,o,s,a,c,l,u,h,f)}emplace(t,e,n,r,i,o,s,a,c,l,u,h,f,d){const p=20*t,g=10*t;return this.int16[p+0]=e,this.int16[p+1]=n,this.int16[p+2]=r,this.int16[p+3]=i,this.int16[p+4]=o,this.float32[g+3]=s,this.float32[g+4]=a,this.float32[g+5]=c,this.float32[g+6]=l,this.int16[p+14]=u,this.uint32[g+8]=h,this.uint16[p+18]=f,this.uint16[p+19]=d,t}}Os.prototype.bytesPerElement=40,Di(Os,"StructArrayLayout5i4f1i1ul2ui40");class Us extends vs{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,e,n,r,i,o,s){const a=this.length;return this.resize(a+1),this.emplace(a,t,e,n,r,i,o,s)}emplace(t,e,n,r,i,o,s,a){const c=8*t;return this.int16[c+0]=e,this.int16[c+1]=n,this.int16[c+2]=r,this.int16[c+4]=i,this.int16[c+5]=o,this.int16[c+6]=s,this.int16[c+7]=a,t}}Us.prototype.bytesPerElement=16,Di(Us,"StructArrayLayout3i2i2i16");class ks extends vs{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,e,n,r,i){const o=this.length;return this.resize(o+1),this.emplace(o,t,e,n,r,i)}emplace(t,e,n,r,i,o){const s=4*t,a=8*t;return this.float32[s+0]=e,this.float32[s+1]=n,this.float32[s+2]=r,this.int16[a+6]=i,this.int16[a+7]=o,t}}ks.prototype.bytesPerElement=16,Di(ks,"StructArrayLayout2f1f2i16");class Ps extends vs{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,e,n,r){const i=this.length;return this.resize(i+1),this.emplace(i,t,e,n,r)}emplace(t,e,n,r,i){const o=12*t,s=3*t;return this.uint8[o+0]=e,this.uint8[o+1]=n,this.float32[s+1]=r,this.float32[s+2]=i,t}}Ps.prototype.bytesPerElement=12,Di(Ps,"StructArrayLayout2ub2f12");class Ds extends vs{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,e,n){const r=this.length;return this.resize(r+1),this.emplace(r,t,e,n)}emplace(t,e,n,r){const i=3*t;return this.float32[i+0]=e,this.float32[i+1]=n,this.float32[i+2]=r,t}}Ds.prototype.bytesPerElement=12,Di(Ds,"StructArrayLayout3f12");class Rs extends vs{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,e,n){const r=this.length;return this.resize(r+1),this.emplace(r,t,e,n)}emplace(t,e,n,r){const i=3*t;return this.uint16[i+0]=e,this.uint16[i+1]=n,this.uint16[i+2]=r,t}}Rs.prototype.bytesPerElement=6,Di(Rs,"StructArrayLayout3ui6");class js extends vs{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(t,e,n,r,i,o,s,a,c,l,u,h,f,d,p,g,m,y,_,v,b){const x=this.length;return this.resize(x+1),this.emplace(x,t,e,n,r,i,o,s,a,c,l,u,h,f,d,p,g,m,y,_,v,b)}emplace(t,e,n,r,i,o,s,a,c,l,u,h,f,d,p,g,m,y,_,v,b,x){const w=30*t,E=15*t,S=60*t;return this.int16[w+0]=e,this.int16[w+1]=n,this.int16[w+2]=r,this.float32[E+2]=i,this.float32[E+3]=o,this.uint16[w+8]=s,this.uint16[w+9]=a,this.uint32[E+5]=c,this.uint32[E+6]=l,this.uint32[E+7]=u,this.uint16[w+16]=h,this.uint16[w+17]=f,this.uint16[w+18]=d,this.float32[E+10]=p,this.float32[E+11]=g,this.uint8[S+48]=m,this.uint8[S+49]=y,this.uint8[S+50]=_,this.uint32[E+13]=v,this.int16[w+28]=b,this.uint8[S+58]=x,t}}js.prototype.bytesPerElement=60,Di(js,"StructArrayLayout3i2f2ui3ul3ui2f3ub1ul1i1ub60");class zs extends vs{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(t,e,n,r,i,o,s,a,c,l,u,h,f,d,p,g,m,y,_,v,b,x,w,E,S,C,A,I,T,M){const F=this.length;return this.resize(F+1),this.emplace(F,t,e,n,r,i,o,s,a,c,l,u,h,f,d,p,g,m,y,_,v,b,x,w,E,S,C,A,I,T,M)}emplace(t,e,n,r,i,o,s,a,c,l,u,h,f,d,p,g,m,y,_,v,b,x,w,E,S,C,A,I,T,M,F){const B=38*t,L=19*t;return this.int16[B+0]=e,this.int16[B+1]=n,this.int16[B+2]=r,this.float32[L+2]=i,this.float32[L+3]=o,this.int16[B+8]=s,this.int16[B+9]=a,this.int16[B+10]=c,this.int16[B+11]=l,this.int16[B+12]=u,this.int16[B+13]=h,this.uint16[B+14]=f,this.uint16[B+15]=d,this.uint16[B+16]=p,this.uint16[B+17]=g,this.uint16[B+18]=m,this.uint16[B+19]=y,this.uint16[B+20]=_,this.uint16[B+21]=v,this.uint16[B+22]=b,this.uint16[B+23]=x,this.uint16[B+24]=w,this.uint16[B+25]=E,this.uint16[B+26]=S,this.uint16[B+27]=C,this.uint16[B+28]=A,this.uint32[L+15]=I,this.float32[L+16]=T,this.float32[L+17]=M,this.float32[L+18]=F,t}}zs.prototype.bytesPerElement=76,Di(zs,"StructArrayLayout3i2f6i15ui1ul3f76");class Qs extends vs{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t){const e=this.length;return this.resize(e+1),this.emplace(e,t)}emplace(t,e){return this.float32[1*t+0]=e,t}}Qs.prototype.bytesPerElement=4,Di(Qs,"StructArrayLayout1f4");class Ns extends vs{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,e,n,r,i){const o=this.length;return this.resize(o+1),this.emplace(o,t,e,n,r,i)}emplace(t,e,n,r,i,o){const s=5*t;return this.float32[s+0]=e,this.float32[s+1]=n,this.float32[s+2]=r,this.float32[s+3]=i,this.float32[s+4]=o,t}}Ns.prototype.bytesPerElement=20,Di(Ns,"StructArrayLayout5f20");class Vs extends vs{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,e,n,r){const i=this.length;return this.resize(i+1),this.emplace(i,t,e,n,r)}emplace(t,e,n,r,i){const o=6*t;return this.uint32[3*t+0]=e,this.uint16[o+2]=n,this.uint16[o+3]=r,this.uint16[o+4]=i,t}}Vs.prototype.bytesPerElement=12,Di(Vs,"StructArrayLayout1ul3ui12");class Gs extends vs{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,e){const n=this.length;return this.resize(n+1),this.emplace(n,t,e)}emplace(t,e,n){const r=2*t;return this.uint16[r+0]=e,this.uint16[r+1]=n,t}}Gs.prototype.bytesPerElement=4,Di(Gs,"StructArrayLayout2ui4");class Hs extends vs{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t){const e=this.length;return this.resize(e+1),this.emplace(e,t)}emplace(t,e){return this.uint16[1*t+0]=e,t}}Hs.prototype.bytesPerElement=2,Di(Hs,"StructArrayLayout1ui2");class Zs extends vs{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,e){const n=this.length;return this.resize(n+1),this.emplace(n,t,e)}emplace(t,e,n){const r=2*t;return this.float32[r+0]=e,this.float32[r+1]=n,t}}Zs.prototype.bytesPerElement=8,Di(Zs,"StructArrayLayout2f8");class Ws extends _s{get projectedAnchorX(){return this._structArray.int16[this._pos2+0]}get projectedAnchorY(){return this._structArray.int16[this._pos2+1]}get projectedAnchorZ(){return this._structArray.int16[this._pos2+2]}get tileAnchorX(){return this._structArray.int16[this._pos2+3]}get tileAnchorY(){return this._structArray.int16[this._pos2+4]}get x1(){return this._structArray.float32[this._pos4+3]}get y1(){return this._structArray.float32[this._pos4+4]}get x2(){return this._structArray.float32[this._pos4+5]}get y2(){return this._structArray.float32[this._pos4+6]}get padding(){return this._structArray.int16[this._pos2+14]}get featureIndex(){return this._structArray.uint32[this._pos4+8]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+18]}get bucketIndex(){return this._structArray.uint16[this._pos2+19]}}Ws.prototype.size=40;class Xs extends Os{get(t){return new Ws(this,t)}}Di(Xs,"CollisionBoxArray");class Ys extends _s{get projectedAnchorX(){return this._structArray.int16[this._pos2+0]}get projectedAnchorY(){return this._structArray.int16[this._pos2+1]}get projectedAnchorZ(){return this._structArray.int16[this._pos2+2]}get tileAnchorX(){return this._structArray.float32[this._pos4+2]}get tileAnchorY(){return this._structArray.float32[this._pos4+3]}get glyphStartIndex(){return this._structArray.uint16[this._pos2+8]}get numGlyphs(){return this._structArray.uint16[this._pos2+9]}get vertexStartIndex(){return this._structArray.uint32[this._pos4+5]}get lineStartIndex(){return this._structArray.uint32[this._pos4+6]}get lineLength(){return this._structArray.uint32[this._pos4+7]}get segment(){return this._structArray.uint16[this._pos2+16]}get lowerSize(){return this._structArray.uint16[this._pos2+17]}get upperSize(){return this._structArray.uint16[this._pos2+18]}get lineOffsetX(){return this._structArray.float32[this._pos4+10]}get lineOffsetY(){return this._structArray.float32[this._pos4+11]}get writingMode(){return this._structArray.uint8[this._pos1+48]}get placedOrientation(){return this._structArray.uint8[this._pos1+49]}set placedOrientation(t){this._structArray.uint8[this._pos1+49]=t}get hidden(){return this._structArray.uint8[this._pos1+50]}set hidden(t){this._structArray.uint8[this._pos1+50]=t}get crossTileID(){return this._structArray.uint32[this._pos4+13]}set crossTileID(t){this._structArray.uint32[this._pos4+13]=t}get associatedIconIndex(){return this._structArray.int16[this._pos2+28]}get flipState(){return this._structArray.uint8[this._pos1+58]}set flipState(t){this._structArray.uint8[this._pos1+58]=t}}Ys.prototype.size=60;class qs extends js{get(t){return new Ys(this,t)}}Di(qs,"PlacedSymbolArray");class Ks extends _s{get projectedAnchorX(){return this._structArray.int16[this._pos2+0]}get projectedAnchorY(){return this._structArray.int16[this._pos2+1]}get projectedAnchorZ(){return this._structArray.int16[this._pos2+2]}get tileAnchorX(){return this._structArray.float32[this._pos4+2]}get tileAnchorY(){return this._structArray.float32[this._pos4+3]}get rightJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+8]}get centerJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+9]}get leftJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+10]}get verticalPlacedTextSymbolIndex(){return this._structArray.int16[this._pos2+11]}get placedIconSymbolIndex(){return this._structArray.int16[this._pos2+12]}get verticalPlacedIconSymbolIndex(){return this._structArray.int16[this._pos2+13]}get key(){return this._structArray.uint16[this._pos2+14]}get textBoxStartIndex(){return this._structArray.uint16[this._pos2+15]}get textBoxEndIndex(){return this._structArray.uint16[this._pos2+16]}get verticalTextBoxStartIndex(){return this._structArray.uint16[this._pos2+17]}get verticalTextBoxEndIndex(){return this._structArray.uint16[this._pos2+18]}get iconBoxStartIndex(){return this._structArray.uint16[this._pos2+19]}get iconBoxEndIndex(){return this._structArray.uint16[this._pos2+20]}get verticalIconBoxStartIndex(){return this._structArray.uint16[this._pos2+21]}get verticalIconBoxEndIndex(){return this._structArray.uint16[this._pos2+22]}get featureIndex(){return this._structArray.uint16[this._pos2+23]}get numHorizontalGlyphVertices(){return this._structArray.uint16[this._pos2+24]}get numVerticalGlyphVertices(){return this._structArray.uint16[this._pos2+25]}get numIconVertices(){return this._structArray.uint16[this._pos2+26]}get numVerticalIconVertices(){return this._structArray.uint16[this._pos2+27]}get useRuntimeCollisionCircles(){return this._structArray.uint16[this._pos2+28]}get crossTileID(){return this._structArray.uint32[this._pos4+15]}set crossTileID(t){this._structArray.uint32[this._pos4+15]=t}get textOffset0(){return this._structArray.float32[this._pos4+16]}get textOffset1(){return this._structArray.float32[this._pos4+17]}get collisionCircleDiameter(){return this._structArray.float32[this._pos4+18]}}Ks.prototype.size=76;class Js extends zs{get(t){return new Ks(this,t)}}Di(Js,"SymbolInstanceArray");class $s extends Qs{getoffsetX(t){return this.float32[1*t+0]}}Di($s,"GlyphOffsetArray");class ta extends ws{getx(t){return this.int16[2*t+0]}gety(t){return this.int16[2*t+1]}}Di(ta,"SymbolLineVertexArray");class ea extends _s{get featureIndex(){return this._structArray.uint32[this._pos4+0]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+2]}get bucketIndex(){return this._structArray.uint16[this._pos2+3]}get layoutVertexArrayOffset(){return this._structArray.uint16[this._pos2+4]}}ea.prototype.size=12;class na extends Vs{get(t){return new ea(this,t)}}Di(na,"FeatureIndexArray");class ra extends Gs{geta_centroid_pos0(t){return this.uint16[2*t+0]}geta_centroid_pos1(t){return this.uint16[2*t+1]}}Di(ra,"FillExtrusionCentroidArray");const ia=bs([{name:"a_pattern",components:4,type:"Uint16"},{name:"a_pixel_ratio",components:1,type:"Float32"}]),oa=bs([{name:"a_dash",components:4,type:"Uint16"}]);var sa={exports:{}},aa={exports:{}};aa.exports=function(t,e){var n,r,i,o,s,a,c,l;for(r=t.length-(n=3&t.length),i=e,s=3432918353,a=461845907,l=0;l<r;)c=255&t.charCodeAt(l)|(255&t.charCodeAt(++l))<<8|(255&t.charCodeAt(++l))<<16|(255&t.charCodeAt(++l))<<24,++l,i=27492+(65535&(o=5*(65535&(i=(i^=c=(65535&(c=(c=(65535&c)*s+(((c>>>16)*s&65535)<<16)&4294967295)<<15|c>>>17))*a+(((c>>>16)*a&65535)<<16)&4294967295)<<13|i>>>19))+((5*(i>>>16)&65535)<<16)&4294967295))+((58964+(o>>>16)&65535)<<16);switch(c=0,n){case 3:c^=(255&t.charCodeAt(l+2))<<16;case 2:c^=(255&t.charCodeAt(l+1))<<8;case 1:i^=c=(65535&(c=(c=(65535&(c^=255&t.charCodeAt(l)))*s+(((c>>>16)*s&65535)<<16)&4294967295)<<15|c>>>17))*a+(((c>>>16)*a&65535)<<16)&4294967295}return i^=t.length,i=2246822507*(65535&(i^=i>>>16))+((2246822507*(i>>>16)&65535)<<16)&4294967295,i=3266489909*(65535&(i^=i>>>13))+((3266489909*(i>>>16)&65535)<<16)&4294967295,(i^=i>>>16)>>>0};var ca=aa.exports,la={exports:{}};la.exports=function(t,e){for(var n,r=t.length,i=e^r,o=0;r>=4;)n=1540483477*(65535&(n=255&t.charCodeAt(o)|(255&t.charCodeAt(++o))<<8|(255&t.charCodeAt(++o))<<16|(255&t.charCodeAt(++o))<<24))+((1540483477*(n>>>16)&65535)<<16),i=1540483477*(65535&i)+((1540483477*(i>>>16)&65535)<<16)^(n=1540483477*(65535&(n^=n>>>24))+((1540483477*(n>>>16)&65535)<<16)),r-=4,++o;switch(r){case 3:i^=(255&t.charCodeAt(o+2))<<16;case 2:i^=(255&t.charCodeAt(o+1))<<8;case 1:i=1540483477*(65535&(i^=255&t.charCodeAt(o)))+((1540483477*(i>>>16)&65535)<<16)}return i=1540483477*(65535&(i^=i>>>13))+((1540483477*(i>>>16)&65535)<<16),(i^=i>>>15)>>>0};var ua=ca,ha=la.exports;sa.exports=ua,sa.exports.murmur3=ua,sa.exports.murmur2=ha;var fa=f(sa.exports);class da{constructor(){this.ids=[],this.positions=[],this.indexed=!1}add(t,e,n,r){this.ids.push(pa(t)),this.positions.push(e,n,r)}getPositions(t){const e=pa(t);let n=0,r=this.ids.length-1;for(;n<r;){const t=n+r>>1;this.ids[t]>=e?r=t:n=t+1}const i=[];for(;this.ids[n]===e;)i.push({index:this.positions[3*n],start:this.positions[3*n+1],end:this.positions[3*n+2]}),n++;return i}static serialize(t,e){const n=new Float64Array(t.ids),r=new Uint32Array(t.positions);return function t(e,n,r,i){for(;r<i;){const o=e[r+i>>1];let s=r-1,a=i+1;for(;;){do{s++}while(e[s]<o);do{a--}while(e[a]>o);if(s>=a)break;ga(e,s,a),ga(n,3*s,3*a),ga(n,3*s+1,3*a+1),ga(n,3*s+2,3*a+2)}a-r<i-a?(t(e,n,r,a),r=a+1):(t(e,n,a+1,i),i=a)}}(n,r,0,n.length-1),e&&e.push(n.buffer,r.buffer),{ids:n,positions:r}}static deserialize(t){const e=new da;return e.ids=t.ids,e.positions=t.positions,e.indexed=!0,e}}function pa(t){const e=+t;return!isNaN(e)&&Number.MIN_SAFE_INTEGER<=e&&e<=Number.MAX_SAFE_INTEGER?e:fa(String(t))}function ga(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}Di(da,"FeaturePositionMap");class ma{constructor(t){this.gl=t.gl,this.initialized=!1}fetchUniformLocation(t,e){return this.location||this.initialized||(this.location=this.gl.getUniformLocation(t,e),this.initialized=!0),!!this.location}}class ya extends ma{constructor(t){super(t),this.current=0}set(t,e,n){this.fetchUniformLocation(t,e)&&this.current!==n&&(this.current=n,this.gl.uniform1f(this.location,n))}}class _a extends ma{constructor(t){super(t),this.current=[0,0,0,0]}set(t,e,n){this.fetchUniformLocation(t,e)&&(n[0]===this.current[0]&&n[1]===this.current[1]&&n[2]===this.current[2]&&n[3]===this.current[3]||(this.current=n,this.gl.uniform4f(this.location,n[0],n[1],n[2],n[3])))}}class va extends ma{constructor(t){super(t),this.current=Be.transparent}set(t,e,n){this.fetchUniformLocation(t,e)&&(n.r===this.current.r&&n.g===this.current.g&&n.b===this.current.b&&n.a===this.current.a||(this.current=n,this.gl.uniform4f(this.location,n.r,n.g,n.b,n.a)))}}const ba=new Float32Array(16),xa=new Float32Array(9),wa=new Float32Array(4);function Ea(t){return[ms(255*t.r,255*t.g),ms(255*t.b,255*t.a)]}class Sa{constructor(t,e,n){this.value=t,this.uniformNames=e.map(t=>"u_"+t),this.type=n}setUniform(t,e,n,r,i){e.set(t,i,r.constantOr(this.value))}getBinding(t,e){return"color"===this.type?new va(t):new ya(t)}}class Ca{constructor(t,e){this.uniformNames=e.map(t=>"u_"+t),this.pattern=null,this.pixelRatio=1}setConstantPatternPositions(t){this.pixelRatio=t.pixelRatio||1,this.pattern=t.tl.concat(t.br)}setUniform(t,e,n,r,i){const o="u_pattern"===i||"u_dash"===i?this.pattern:"u_pixel_ratio"===i?this.pixelRatio:null;o&&e.set(t,i,o)}getBinding(t,e){return"u_pattern"===e||"u_dash"===e?new _a(t):new ya(t)}}class Aa{constructor(t,e,n,r){this.expression=t,this.type=n,this.maxValue=0,this.paintVertexAttributes=e.map(t=>({name:"a_"+t,type:"Float32",components:"color"===n?2:1,offset:0})),this.paintVertexArray=new r}populatePaintArray(t,e,n,r,i,o){const s=this.paintVertexArray.length,a=this.expression.evaluate(new rs(0),e,{},i,r,o);this.paintVertexArray.resize(t),this._setPaintValue(s,t,a)}updatePaintArray(t,e,n,r,i){const o=this.expression.evaluate({zoom:0},n,r,void 0,i);this._setPaintValue(t,e,o)}_setPaintValue(t,e,n){if("color"===this.type){const r=Ea(n);for(let n=t;n<e;n++)this.paintVertexArray.emplace(n,r[0],r[1])}else{for(let r=t;r<e;r++)this.paintVertexArray.emplace(r,n);this.maxValue=Math.max(this.maxValue,Math.abs(n))}}upload(t){this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer&&this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=t.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))}destroy(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()}}class Ia{constructor(t,e,n,r,i,o){this.expression=t,this.uniformNames=e.map(t=>`u_${t}_t`),this.type=n,this.useIntegerZoom=r,this.zoom=i,this.maxValue=0,this.paintVertexAttributes=e.map(t=>({name:"a_"+t,type:"Float32",components:"color"===n?4:2,offset:0})),this.paintVertexArray=new o}populatePaintArray(t,e,n,r,i,o){const s=this.expression.evaluate(new rs(this.zoom),e,{},i,r,o),a=this.expression.evaluate(new rs(this.zoom+1),e,{},i,r,o),c=this.paintVertexArray.length;this.paintVertexArray.resize(t),this._setPaintValue(c,t,s,a)}updatePaintArray(t,e,n,r,i){const o=this.expression.evaluate({zoom:this.zoom},n,r,void 0,i),s=this.expression.evaluate({zoom:this.zoom+1},n,r,void 0,i);this._setPaintValue(t,e,o,s)}_setPaintValue(t,e,n,r){if("color"===this.type){const i=Ea(n),o=Ea(r);for(let n=t;n<e;n++)this.paintVertexArray.emplace(n,i[0],i[1],o[0],o[1])}else{for(let i=t;i<e;i++)this.paintVertexArray.emplace(i,n,r);this.maxValue=Math.max(this.maxValue,Math.abs(n),Math.abs(r))}}upload(t){this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer&&this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=t.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))}destroy(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()}setUniform(t,e,n,r,i){const o=this.useIntegerZoom?Math.floor(n.zoom):n.zoom,s=I(this.expression.interpolationFactor(o,this.zoom,this.zoom+1),0,1);e.set(t,i,s)}getBinding(t,e){return new ya(t)}}class Ta{constructor(t,e,n,r,i){this.expression=t,this.layerId=i,this.paintVertexAttributes=("array"===n?oa:ia).members;for(let t=0;t<e.length;++t);this.paintVertexArray=new r}populatePaintArray(t,e,n){const r=this.paintVertexArray.length;this.paintVertexArray.resize(t),this._setPaintValues(r,t,e.patterns&&e.patterns[this.layerId],n)}updatePaintArray(t,e,n,r,i,o){this._setPaintValues(t,e,n.patterns&&n.patterns[this.layerId],o)}_setPaintValues(t,e,n,r){if(!r||!n)return;const i=r[n];if(!i)return;const{tl:o,br:s,pixelRatio:a}=i;for(let n=t;n<e;n++)this.paintVertexArray.emplace(n,o[0],o[1],s[0],s[1],a)}upload(t){this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer=t.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))}destroy(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()}}class Ma{constructor(t,e,n=(()=>!0)){this.binders={},this._buffers=[];const r=[];for(const i in t.paint._values){if(!n(i))continue;const o=t.paint.get(i);if(!(o instanceof us&&Br(o.property.specification)))continue;const s=La(i,t.type),a=o.value,c=o.property.specification.type,l=!!o.property.useIntegerZoom,u="line-dasharray"===i||i.endsWith("pattern"),h="line-dasharray"===i&&"constant"!==t.layout.get("line-cap").value.kind;if("constant"!==a.kind||h)if("source"===a.kind||h||u){const e=ka(i,c,"source");this.binders[i]=u?new Ta(a,s,c,e,t.id):new Aa(a,s,c,e),r.push("/a_"+i)}else{const t=ka(i,c,"composite");this.binders[i]=new Ia(a,s,c,l,e,t),r.push("/z_"+i)}else this.binders[i]=u?new Ca(a.value,s):new Sa(a.value,s,c),r.push("/u_"+i)}this.cacheKey=r.sort().join("")}getMaxValue(t){const e=this.binders[t];return e instanceof Aa||e instanceof Ia?e.maxValue:0}populatePaintArrays(t,e,n,r,i,o){for(const s in this.binders){const a=this.binders[s];(a instanceof Aa||a instanceof Ia||a instanceof Ta)&&a.populatePaintArray(t,e,n,r,i,o)}}setConstantPatternPositions(t){for(const e in this.binders){const n=this.binders[e];n instanceof Ca&&n.setConstantPatternPositions(t)}}updatePaintArrays(t,e,n,r,i,o){let s=!1;for(const a in t){const c=e.getPositions(a);for(const e of c){const c=n.feature(e.index);for(const n in this.binders){const l=this.binders[n];if((l instanceof Aa||l instanceof Ia||l instanceof Ta)&&!0===l.expression.isStateDependent){const u=r.paint.get(n);l.expression=u.value,l.updatePaintArray(e.start,e.end,c,t[a],i,o),s=!0}}}}return s}defines(){const t=[];for(const e in this.binders){const n=this.binders[e];(n instanceof Sa||n instanceof Ca)&&t.push(...n.uniformNames.map(t=>"#define HAS_UNIFORM_"+t))}return t}getBinderAttributes(){const t=[];for(const e in this.binders){const n=this.binders[e];if(n instanceof Aa||n instanceof Ia||n instanceof Ta)for(let e=0;e<n.paintVertexAttributes.length;e++)t.push(n.paintVertexAttributes[e].name)}return t}getBinderUniforms(){const t=[];for(const e in this.binders){const n=this.binders[e];if(n instanceof Sa||n instanceof Ca||n instanceof Ia)for(const e of n.uniformNames)t.push(e)}return t}getPaintVertexBuffers(){return this._buffers}getUniforms(t){const e=[];for(const n in this.binders){const r=this.binders[n];if(r instanceof Sa||r instanceof Ca||r instanceof Ia)for(const i of r.uniformNames)e.push({name:i,property:n,binding:r.getBinding(t,i)})}return e}setUniforms(t,e,n,r,i){for(const{name:e,property:o,binding:s}of n)this.binders[o].setUniform(t,s,i,r.get(o),e)}updatePaintBuffers(){this._buffers=[];for(const t in this.binders){const e=this.binders[t];(e instanceof Aa||e instanceof Ia||e instanceof Ta)&&e.paintVertexBuffer&&this._buffers.push(e.paintVertexBuffer)}}upload(t){for(const e in this.binders){const n=this.binders[e];(n instanceof Aa||n instanceof Ia||n instanceof Ta)&&n.upload(t)}this.updatePaintBuffers()}destroy(){for(const t in this.binders){const e=this.binders[t];(e instanceof Aa||e instanceof Ia||e instanceof Ta)&&e.destroy()}}}class Fa{constructor(t,e,n=(()=>!0)){this.programConfigurations={};for(const r of t)this.programConfigurations[r.id]=new Ma(r,e,n);this.needsUpload=!1,this._featureMap=new da,this._bufferOffset=0}populatePaintArrays(t,e,n,r,i,o,s){for(const n in this.programConfigurations)this.programConfigurations[n].populatePaintArrays(t,e,r,i,o,s);void 0!==e.id&&this._featureMap.add(e.id,n,this._bufferOffset,t),this._bufferOffset=t,this.needsUpload=!0}updatePaintArrays(t,e,n,r,i){for(const o of n)this.needsUpload=this.programConfigurations[o.id].updatePaintArrays(t,this._featureMap,e,o,r,i)||this.needsUpload}get(t){return this.programConfigurations[t]}upload(t){if(this.needsUpload){for(const e in this.programConfigurations)this.programConfigurations[e].upload(t);this.needsUpload=!1}}destroy(){for(const t in this.programConfigurations)this.programConfigurations[t].destroy()}}const Ba={"text-opacity":["opacity"],"icon-opacity":["opacity"],"text-color":["fill_color"],"icon-color":["fill_color"],"text-halo-color":["halo_color"],"icon-halo-color":["halo_color"],"text-halo-blur":["halo_blur"],"icon-halo-blur":["halo_blur"],"text-halo-width":["halo_width"],"icon-halo-width":["halo_width"],"line-gap-width":["gapwidth"],"line-pattern":["pattern","pixel_ratio"],"fill-pattern":["pattern","pixel_ratio"],"fill-extrusion-pattern":["pattern","pixel_ratio"],"line-dasharray":["dash"]};function La(t,e){return Ba[t]||[t.replace(e+"-","").replace(/-/g,"_")]}const Oa={"line-pattern":{source:Is,composite:Is},"fill-pattern":{source:Is,composite:Is},"fill-extrusion-pattern":{source:Is,composite:Is},"line-dasharray":{source:Ts,composite:Ts}},Ua={color:{source:Zs,composite:As},number:{source:Qs,composite:Zs}};function ka(t,e,n){const r=Oa[t];return r&&r[n]||Ua[e][n]}Di(Sa,"ConstantBinder"),Di(Ca,"PatternConstantBinder"),Di(Aa,"SourceExpressionBinder"),Di(Ta,"PatternCompositeBinder"),Di(Ia,"CompositeExpressionBinder"),Di(Ma,"ProgramConfiguration",{omit:["_buffers"]}),Di(Fa,"ProgramConfigurationSet");const Pa="-transition";class Da extends $t{constructor(t,e){if(super(),this.id=t.id,this.type=t.type,this._featureFilter={filter:()=>!0,needGeometry:!1,needFeature:!1},this._filterCompiled=!1,"custom"!==t.type&&(this.metadata=t.metadata,this.minzoom=t.minzoom,this.maxzoom=t.maxzoom,"background"!==t.type&&"sky"!==t.type&&(this.source=t.source,this.sourceLayer=t["source-layer"],this.filter=t.filter),e.layout&&(this._unevaluatedLayout=new ls(e.layout)),e.paint)){this._transitionablePaint=new ss(e.paint);for(const e in t.paint)this.setPaintProperty(e,t.paint[e],{validate:!1});for(const e in t.layout)this.setLayoutProperty(e,t.layout[e],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new hs(e.paint)}}getLayoutProperty(t){return"visibility"===t?this.visibility:this._unevaluatedLayout.getValue(t)}setLayoutProperty(t,e,n={}
26){null!=e&&this._validate(Fi,`layers.${this.id}.layout.${t}`,t,e,n)||("visibility"!==t?this._unevaluatedLayout.setValue(t,e):this.visibility=e)}getPaintProperty(t){return j(t,Pa)?this._transitionablePaint.getTransition(t.slice(0,-11)):this._transitionablePaint.getValue(t)}setPaintProperty(t,e,n={}){if(null!=e&&this._validate(Mi,`layers.${this.id}.paint.${t}`,t,e,n))return!1;if(j(t,Pa))return this._transitionablePaint.setTransition(t.slice(0,-11),e||void 0),!1;{const n=this._transitionablePaint._values[t],r=n.value.isDataDriven(),i=n.value;this._transitionablePaint.setValue(t,e),this._handleSpecialPaintPropertyUpdate(t);const o=this._transitionablePaint._values[t].value,s=o.isDataDriven(),a=j(t,"pattern")||"line-dasharray"===t;return s||r||a||this._handleOverridablePaintPropertyUpdate(t,i,o)}}_handleSpecialPaintPropertyUpdate(t){}getProgramIds(){return null}getProgramConfiguration(t){return null}_handleOverridablePaintPropertyUpdate(t,e,n){return!1}isHidden(t){return!!(this.minzoom&&t<this.minzoom)||!!(this.maxzoom&&t>=this.maxzoom)||"none"===this.visibility}updateTransitions(t){this._transitioningPaint=this._transitionablePaint.transitioned(t,this._transitioningPaint)}hasTransition(){return this._transitioningPaint.hasTransition()}recalculate(t,e){this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(t,void 0,e)),this.paint=this._transitioningPaint.possiblyEvaluate(t,void 0,e)}
vendor: 14,098 bytes, line 26
26serialize(){const t={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(t.layout=t.layout||{},t.layout.visibility=this.visibility),Q(t,(t,e)=>!(void 0===t||"layout"===e&&!Object.keys(t).length||"paint"===e&&!Object.keys(t).length))}_validate(t,e,n,r,i={}){return(!i||!1!==i.validate)&&Li(this,t.call(Ti,{key:e,layerType:this.type,objectKey:n,value:r,styleSpec:te,style:{glyphs:!0,sprite:!0}}))}is3D(){return!1}isSky(){return!1}isTileClipped(){return!1}hasOffscreenPass(){return!1}resize(){}isStateDependent(){for(const t in this.paint._values){const e=this.paint.get(t);if(e instanceof us&&Br(e.property.specification)&&("source"===e.value.kind||"composite"===e.value.kind)&&e.value.isStateDependent)return!0}return!1}compileFilter(){this._filterCompiled||(this._featureFilter=ri(this.filter),this._filterCompiled=!0)}invalidateCompiledFilter(){this._filterCompiled=!1}dynamicFilter(){return this._featureFilter.dynamicFilter}dynamicFilterNeedsFeature(){return this._featureFilter.needFeature}}const Ra=bs([{name:"a_pos",components:2,type:"Int16"}],4),ja=bs([{name:"a_pos_3",components:3,type:"Int16"},{name:"a_pos_normal_3",components:3,type:"Int16"}]);class za{constructor(t=[]){this.segments=t}prepareSegment(t,e,n,r){let i=this.segments[this.segments.length-1];return t>za.MAX_VERTEX_ARRAY_LENGTH&&G(`Max vertices per segment is ${za.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${t}`),(!i||i.vertexLength+t>za.MAX_VERTEX_ARRAY_LENGTH||i.sortKey!==r)&&(i={vertexOffset:e.length,primitiveOffset:n.length,vertexLength:0,primitiveLength:0},void 0!==r&&(i.sortKey=r),this.segments.push(i)),i}get(){return this.segments}destroy(){for(const t of this.segments)for(const e in t.vaos)t.vaos[e].destroy()}static simpleSegment(t,e,n,r){return new za([{vertexOffset:t,primitiveOffset:e,vertexLength:n,primitiveLength:r,vaos:{},sortKey:0}])}}za.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,Di(za,"SegmentVector");var Qa=8192;class Na{constructor(t,e){t&&(e?this.setSouthWest(t).setNorthEast(e):4===t.length?this.setSouthWest([t[0],t[1]]).setNorthEast([t[2],t[3]]):this.setSouthWest(t[0]).setNorthEast(t[1]))}setNorthEast(t){return this._ne=t instanceof yl?new yl(t.lng,t.lat):yl.convert(t),this}setSouthWest(t){return this._sw=t instanceof yl?new yl(t.lng,t.lat):yl.convert(t),this}extend(t){const e=this._sw,n=this._ne;let r,i;if(t instanceof yl)r=t,i=t;else{if(!(t instanceof Na))return Array.isArray(t)?4===t.length||t.every(Array.isArray)?this.extend(Na.convert(t)):this.extend(yl.convert(t)):"object"==typeof t&&null!==t&&t.hasOwnProperty("lat")&&(t.hasOwnProperty("lon")||t.hasOwnProperty("lng"))?this.extend(yl.convert(t)):this;if(r=t._sw,i=t._ne,!r||!i)return this}return e||n?(e.lng=Math.min(r.lng,e.lng),e.lat=Math.min(r.lat,e.lat),n.lng=Math.max(i.lng,n.lng),n.lat=Math.max(i.lat,n.lat)):(this._sw=new yl(r.lng,r.lat),this._ne=new yl(i.lng,i.lat)),this}getCenter(){return new yl((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)}getSouthWest(){return this._sw}getNorthEast(){return this._ne}getNorthWest(){return new yl(this.getWest(),this.getNorth())}getSouthEast(){return new yl(this.getEast(),this.getSouth())}getWest(){return this._sw.lng}getSouth(){return this._sw.lat}getEast(){return this._ne.lng}getNorth(){return this._ne.lat}toArray(){return[this._sw.toArray(),this._ne.toArray()]}toString(){return`LngLatBounds(${this._sw.toString()}, ${this._ne.toString()})`}isEmpty(){return!(this._sw&&this._ne)}contains(t){const{lng:e,lat:n}=yl.convert(t);let r=this._sw.lng<=e&&e<=this._ne.lng;return this._sw.lng>this._ne.lng&&(r=this._sw.lng>=e&&e>=this._ne.lng),this._sw.lat<=n&&n<=this._ne.lat&&r}static convert(t){return!t||t instanceof Na?t:new Na(t)}}var Va=1e-6,Ga="undefined"!=typeof Float32Array?Float32Array:Array;function Ha(){var t=new Ga(9);return Ga!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t}function Za(t,e,n){var r=e[0],i=e[1],o=e[2],s=e[3],a=e[4],c=e[5],l=e[6],u=e[7],h=e[8],f=n[0],d=n[1],p=n[2],g=n[3],m=n[4],y=n[5],_=n[6],v=n[7],b=n[8];return t[0]=f*r+d*s+p*l,t[1]=f*i+d*a+p*u,t[2]=f*o+d*c+p*h,t[3]=g*r+m*s+y*l,t[4]=g*i+m*a+y*u,t[5]=g*o+m*c+y*h,t[6]=_*r+v*s+b*l,t[7]=_*i+v*a+b*u,t[8]=_*o+v*c+b*h,t}function Wa(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function Xa(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],s=e[4],a=e[5],c=e[6],l=e[7],u=e[8],h=e[9],f=e[10],d=e[11],p=e[12],g=e[13],m=e[14],y=e[15],_=n*a-r*s,v=n*c-i*s,b=n*l-o*s,x=r*c-i*a,w=r*l-o*a,E=i*l-o*c,S=u*g-h*p,C=u*m-f*p,A=u*y-d*p,I=h*m-f*g,T=h*y-d*g,M=f*y-d*m,F=_*M-v*T+b*I+x*A-w*C+E*S;return F?(t[0]=(a*M-c*T+l*I)*(F=1/F),t[1]=(i*T-r*M-o*I)*F,t[2]=(g*E-m*w+y*x)*F,t[3]=(f*w-h*E-d*x)*F,t[4]=(c*A-s*M-l*C)*F,t[5]=(n*M-i*A+o*C)*F,t[6]=(m*b-p*E-y*v)*F,t[7]=(u*E-f*b+d*v)*F,t[8]=(s*T-a*A+l*S)*F,t[9]=(r*A-n*T-o*S)*F,t[10]=(p*w-g*b+y*_)*F,t[11]=(h*b-u*w-d*_)*F,t[12]=(a*C-s*I-c*S)*F,t[13]=(n*I-r*C+i*S)*F,t[14]=(g*v-p*x-m*_)*F,t[15]=(u*x-h*v+f*_)*F,t):null}function Ya(t,e,n){var r=e[0],i=e[1],o=e[2],s=e[3],a=e[4],c=e[5],l=e[6],u=e[7],h=e[8],f=e[9],d=e[10],p=e[11],g=e[12],m=e[13],y=e[14],_=e[15],v=n[0],b=n[1],x=n[2],w=n[3];return t[0]=v*r+b*a+x*h+w*g,t[1]=v*i+b*c+x*f+w*m,t[2]=v*o+b*l+x*d+w*y,t[3]=v*s+b*u+x*p+w*_,t[4]=(v=n[4])*r+(b=n[5])*a+(x=n[6])*h+(w=n[7])*g,t[5]=v*i+b*c+x*f+w*m,t[6]=v*o+b*l+x*d+w*y,t[7]=v*s+b*u+x*p+w*_,t[8]=(v=n[8])*r+(b=n[9])*a+(x=n[10])*h+(w=n[11])*g,t[9]=v*i+b*c+x*f+w*m,t[10]=v*o+b*l+x*d+w*y,t[11]=v*s+b*u+x*p+w*_,t[12]=(v=n[12])*r+(b=n[13])*a+(x=n[14])*h+(w=n[15])*g,t[13]=v*i+b*c+x*f+w*m,t[14]=v*o+b*l+x*d+w*y,t[15]=v*s+b*u+x*p+w*_,t}function qa(t,e,n){var r,i,o,s,a,c,l,u,h,f,d,p,g=n[0],m=n[1],y=n[2];return e===t?(t[12]=e[0]*g+e[4]*m+e[8]*y+e[12],t[13]=e[1]*g+e[5]*m+e[9]*y+e[13],t[14]=e[2]*g+e[6]*m+e[10]*y+e[14],t[15]=e[3]*g+e[7]*m+e[11]*y+e[15]):(i=e[1],o=e[2],s=e[3],a=e[4],c=e[5],l=e[6],u=e[7],h=e[8],f=e[9],d=e[10],p=e[11],t[0]=r=e[0],t[1]=i,t[2]=o,t[3]=s,t[4]=a,t[5]=c,t[6]=l,t[7]=u,t[8]=h,t[9]=f,t[10]=d,t[11]=p,t[12]=r*g+a*m+h*y+e[12],t[13]=i*g+c*m+f*y+e[13],t[14]=o*g+l*m+d*y+e[14],t[15]=s*g+u*m+p*y+e[15]),t}function Ka(t,e,n){var r=n[0],i=n[1],o=n[2];return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*o,t[9]=e[9]*o,t[10]=e[10]*o,t[11]=e[11]*o,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function Ja(t,e,n){var r=Math.sin(n),i=Math.cos(n),o=e[4],s=e[5],a=e[6],c=e[7],l=e[8],u=e[9],h=e[10],f=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=o*i+l*r,t[5]=s*i+u*r,t[6]=a*i+h*r,t[7]=c*i+f*r,t[8]=l*i-o*r,t[9]=u*i-s*r,t[10]=h*i-a*r,t[11]=f*i-c*r,t}function $a(t,e,n){var r=Math.sin(n),i=Math.cos(n),o=e[0],s=e[1],a=e[2],c=e[3],l=e[8],u=e[9],h=e[10],f=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=o*i-l*r,t[1]=s*i-u*r,t[2]=a*i-h*r,t[3]=c*i-f*r,t[8]=o*r+l*i,t[9]=s*r+u*i,t[10]=a*r+h*i,t[11]=c*r+f*i,t}function tc(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function ec(t,e,n){var r,i,o,s=n[0],a=n[1],c=n[2],l=Math.hypot(s,a,c);return l<Va?null:(s*=l=1/l,a*=l,c*=l,r=Math.sin(e),i=Math.cos(e),t[0]=s*s*(o=1-i)+i,t[1]=a*s*o+c*r,t[2]=c*s*o-a*r,t[3]=0,t[4]=s*a*o-c*r,t[5]=a*a*o+i,t[6]=c*a*o+s*r,t[7]=0,t[8]=s*c*o+a*r,t[9]=a*c*o-s*r,t[10]=c*c*o+i,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t)}Math.hypot||(Math.hypot=function(){for(var t=0,e=arguments.length;e--;)t+=arguments[e]*arguments[e];return Math.sqrt(t)});var nc=Ya;function rc(){var t=new Ga(3);return Ga!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function ic(t){var e=new Ga(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function oc(t){return Math.hypot(t[0],t[1],t[2])}function sc(t,e,n){var r=new Ga(3);return r[0]=t,r[1]=e,r[2]=n,r}function ac(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function cc(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function lc(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function uc(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function hc(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function fc(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function dc(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t}function pc(t,e){var n=e[0],r=e[1],i=e[2],o=n*n+r*r+i*i;return o>0&&(o=1/Math.sqrt(o)),t[0]=e[0]*o,t[1]=e[1]*o,t[2]=e[2]*o,t}function gc(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function mc(t,e,n){var r=e[0],i=e[1],o=e[2],s=n[0],a=n[1],c=n[2];return t[0]=i*c-o*a,t[1]=o*s-r*c,t[2]=r*a-i*s,t}function yc(t,e,n){var r=e[0],i=e[1],o=e[2],s=n[3]*r+n[7]*i+n[11]*o+n[15];return t[0]=(n[0]*r+n[4]*i+n[8]*o+n[12])/(s=s||1),t[1]=(n[1]*r+n[5]*i+n[9]*o+n[13])/s,t[2]=(n[2]*r+n[6]*i+n[10]*o+n[14])/s,t}function _c(t,e,n){var r=n[0],i=n[1],o=n[2],s=e[0],a=e[1],c=e[2],l=i*c-o*a,u=o*s-r*c,h=r*a-i*s,f=i*h-o*u,d=o*l-r*h,p=r*u-i*l,g=2*n[3];return u*=g,h*=g,d*=2,p*=2,t[0]=s+(l*=g)+(f*=2),t[1]=a+u+d,t[2]=c+h+p,t}var vc,bc=cc,xc=lc,wc=oc;function Ec(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t}function Sc(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],s=n*n+r*r+i*i+o*o;return s>0&&(s=1/Math.sqrt(s)),t[0]=n*s,t[1]=r*s,t[2]=i*s,t[3]=o*s,t}function Cc(t,e,n){var r=e[0],i=e[1],o=e[2],s=e[3];return t[0]=n[0]*r+n[4]*i+n[8]*o+n[12]*s,t[1]=n[1]*r+n[5]*i+n[9]*o+n[13]*s,t[2]=n[2]*r+n[6]*i+n[10]*o+n[14]*s,t[3]=n[3]*r+n[7]*i+n[11]*o+n[15]*s,t}function Ac(){var t=new Ga(4);return Ga!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t[3]=1,t}function Ic(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t}function Tc(t,e,n){n*=.5;var r=e[0],i=e[1],o=e[2],s=e[3],a=Math.sin(n),c=Math.cos(n);return t[0]=r*c+s*a,t[1]=i*c+o*a,t[2]=o*c-i*a,t[3]=s*c-r*a,t}function Mc(t,e,n){n*=.5;var r=e[0],i=e[1],o=e[2],s=e[3],a=Math.sin(n),c=Math.cos(n);return t[0]=r*c-o*a,t[1]=i*c+s*a,t[2]=o*c+r*a,t[3]=s*c-i*a,t}rc(),vc=new Ga(4),Ga!=Float32Array&&(vc[0]=0,vc[1]=0,vc[2]=0,vc[3]=0);var Fc=Sc;rc(),sc(1,0,0),sc(0,1,0),Ac(),Ac(),Ha();const Bc=bs([{type:"Float32",name:"a_globe_pos",components:3},{type:"Float32",name:"a_uv",components:2}]),{members:Lc}=Bc,Oc=bs([{name:"a_pos_3",components:3,type:"Int16"}]);var Uc=bs([{name:"a_pos",type:"Int16",components:2}]);class kc{constructor(t,e){this.pos=t,this.dir=e}intersectsPlane(t,e,n){const r=gc(e,this.dir);if(Math.abs(r)<1e-6)return!1;const i=((t[0]-this.pos[0])*e[0]+(t[1]-this.pos[1])*e[1]+(t[2]-this.pos[2])*e[2])/r;return n[0]=this.pos[0]+this.dir[0]*i,n[1]=this.pos[1]+this.dir[1]*i,n[2]=this.pos[2]+this.dir[2]*i,!0}closestPointOnSphere(t,e,n){if(function(t,e){var n=t[0],r=t[1],i=t[2],o=e[0],s=e[1],a=e[2];return Math.abs(n-o)<=Va*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(r-s)<=Va*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(i-a)<=Va*Math.max(1,Math.abs(i),Math.abs(a))}(this.pos,t)||0===e)return n[0]=n[1]=n[2]=0,!1;const[r,i,o]=this.dir,s=this.pos[0]-t[0],a=this.pos[1]-t[1],c=this.pos[2]-t[2],l=r*r+i*i+o*o,u=2*(s*r+a*i+c*o),h=u*u-4*l*(s*s+a*a+c*c-e*e);if(h<0){const t=Math.max(-u/2,0),l=s+r*t,h=a+i*t,f=c+o*t,d=Math.hypot(l,h,f);return n[0]=l*e/d,n[1]=h*e/d,n[2]=f*e/d,!1}{const t=(-u-Math.sqrt(h))/(2*l);if(t<0){const t=Math.hypot(s,a,c);return n[0]=s*e/t,n[1]=a*e/t,n[2]=c*e/t,!1}return n[0]=s+r*t,n[1]=a+i*t,n[2]=c+o*t,!0}}}class Pc{constructor(t,e,n,r,i){this.TL=t,this.TR=e,this.BR=n,this.BL=r,this.horizon=i}static fromInvProjectionMatrix(t,e,n){const r=[-1,1,1],i=[1,1,1],o=[1,-1,1],s=[-1,-1,1],a=yc(r,r,t),c=yc(i,i,t),l=yc(o,o,t),u=yc(s,s,t);return new Pc(a,c,l,u,e/n)}}class Dc{constructor(t,e){this.points=t,this.planes=e}static fromInvProjectionMatrix(t,e,n,r){const i=Math.pow(2,n),o=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map(n=>{const o=Cc([],n,t),s=1/o[3]/e*i;return function(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t[3]=e[3]*n[3],t}(o,o,[s,s,r?1/o[3]:s,s])}),s=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map(t=>{const e=pc([],mc([],bc([],o[t[0]],o[t[1]]),bc([],o[t[2]],o[t[1]]))),n=-gc(e,o[t[1]]);return e.concat(n)});return new Dc(o,s)}}class Rc{static fromPoints(t){const e=[1/0,1/0,1/0],n=[-1/0,-1/0,-1/0];for(const r of t)uc(e,e,r),hc(n,n,r);return new Rc(e,n)}static applyTransform(t,e){const n=t.getCorners();for(let t=0;t<n.length;++t)yc(n[t],n[t],e);return Rc.fromPoints(n)}constructor(t,e){this.min=t,this.max=e,this.center=fc([],ac([],this.min,this.max),.5)}quadrant(t){const e=[t%2==0,t<2],n=ic(this.min),r=ic(this.max);for(let t=0;t<e.length;t++)n[t]=e[t]?this.min[t]:this.center[t],r[t]=e[t]?this.center[t]:this.max[t];return r[2]=this.max[2],new Rc(n,r)}distanceX(t){return Math.max(Math.min(this.max[0],t[0]),this.min[0])-t[0]}distanceY(t){return Math.max(Math.min(this.max[1],t[1]),this.min[1])-t[1]}distanceZ(t){return Math.max(Math.min(this.max[2],t[2]),this.min[2])-t[2]}getCorners(){const t=this.min,e=this.max;return[[t[0],t[1],t[2]],[e[0],t[1],t[2]],[e[0],e[1],t[2]],[t[0],e[1],t[2]],[t[0],t[1],e[2]],[e[0],t[1],e[2]],[e[0],e[1],e[2]],[t[0],e[1],e[2]]]}intersects(t){const e=this.getCorners();let n=!0;for(let r=0;r<t.planes.length;r++){const i=t.planes[r];let o=0;for(let t=0;t<e.length;t++)o+=gc(i,e[t])+i[3]>=0;if(0===o)return 0;o!==e.length&&(n=!1)}if(n)return 2;for(let e=0;e<3;e++){let n=Number.MAX_VALUE,r=-Number.MAX_VALUE;for(let i=0;i<t.points.length;i++){const o=t.points[i][e]-this.min[e];n=Math.min(n,o),r=Math.max(r,o)}if(r<0||n>this.max[e]-this.min[e])return 0}return 1}}const jc=Qa/Math.PI/2,zc=[64,32,16],Qc=-jc,Nc=jc,Vc=[new Rc([Qc,Qc,Qc],[Nc,Nc,Nc]),new Rc([Qc,Qc,Qc],[0,0,Nc]),new Rc([0,Qc,Qc],[Nc,0,Nc]),new Rc([Qc,0,Qc],[0,Nc,Nc]),new Rc([0,0,Qc],[Nc,Nc,Nc])];function Gc(t){return t*jc/pl}function Hc(t,e,n,r=!0){const i=fc([],t._camera.position,t.worldSize),o=[e,n,1,1];
vendor: 5,000 bytes, line 26
26Cc(o,o,t.pixelMatrixInverse),Ec(o,o,1/o[3]);const s=pc([],bc([],o,i)),a=t.globeMatrix,c=[a[12],a[13],a[14]],l=bc([],c,i),u=oc(l),h=pc([],l),f=t.worldSize/(2*Math.PI),d=gc(h,s),p=Math.asin(f/u);if(p<Math.acos(d)){if(!r)return null;const t=[],e=[];fc(t,s,u/d),pc(e,bc(e,t,l)),pc(s,ac(s,l,fc(s,e,Math.tan(p)*u)))}const g=[];new kc(i,s).closestPointOnSphere(c,f,g);const m=pc([],J(a,0)),y=pc([],J(a,1)),_=pc([],J(a,2)),v=gc(m,g),b=gc(y,g),x=gc(_,g),E=w(Math.asin(-b/f));let S=w(Math.atan2(v,x));S=t.center.lng+function(t,e){const n=(e-t+180)%360-180;return n<-180?n+360:n}(t.center.lng,S);const C=vl(S),A=I(bl(E),0,1);return new Il(C,A)}class Zc{constructor(t,e,n){this.a=bc([],t,n),this.b=bc([],e,n),this.center=n;const r=pc([],this.a),i=pc([],this.b);this.angle=Math.acos(gc(r,i))}}function Wc(t,e){if(0===t.angle)return null;let n;return n=0===t.a[e]?1/t.angle*.5*Math.PI:1/t.angle*Math.atan(t.b[e]/t.a[e]/Math.sin(t.angle)-1/Math.tan(t.angle)),n<0||n>1?null:function(t,e,n,r){const i=Math.sin(n);return t*(Math.sin((1-r)*n)/i)+e*(Math.sin(r*n)/i)}(t.a[e],t.b[e],t.angle,I(n,0,1))+t.center[e]}function Xc(t){if(t.z<=1)return Vc[t.z+2*t.y+t.x];const e=$c(Jc(t));return Rc.fromPoints(e)}function Yc(t,e,n){return fc(t,t,1-n),dc(t,t,e,n)}function qc(t,e){const n=cl(e.zoom);if(0===n)return Xc(t);const r=Jc(t),i=$c(r),o=vl(r.getWest())*e.worldSize,s=vl(r.getEast())*e.worldSize,a=bl(r.getNorth())*e.worldSize,c=bl(r.getSouth())*e.worldSize,l=[o,a,0],u=[s,a,0],h=[o,c,0],f=[s,c,0],d=Xa([],e.globeMatrix);return yc(l,l,d),yc(u,u,d),yc(h,h,d),yc(f,f,d),i[0]=Yc(i[0],h,n),i[1]=Yc(i[1],f,n),i[2]=Yc(i[2],u,n),i[3]=Yc(i[3],l,n),Rc.fromPoints(i)}function Kc(t,e,n){for(const r of t)yc(r,r,e),fc(r,r,n)}function Jc({x:t,y:e,z:n}){const r=1/(1<<n),i=new yl(wl(t*r),El((e+1)*r)),o=new yl(wl((t+1)*r),El(e*r));return new Na(i,o)}function $c(t){const e=x(t.getNorth()),n=x(t.getSouth()),r=Math.cos(e),i=Math.cos(n),o=Math.sin(e),s=Math.sin(n),a=t.getWest(),c=t.getEast();return[tl(i,s,a),tl(i,s,c),tl(r,o,c),tl(r,o,a)]}function tl(t,e,n,r=jc){return n=x(n),[t*Math.sin(n)*r,-e*r,t*Math.cos(n)*r]}function el(t,e,n){return tl(Math.cos(x(t)),Math.sin(x(t)),e,n)}function nl(t,e,n,r){const i=1<<n.z,o=(t/Qa+n.x)/i;return el(El((e/Qa+n.y)/i),wl(o),r)}function rl({min:t,max:e}){return 16383/Math.max(e[0]-t[0],e[1]-t[1],e[2]-t[2])}const il=new Float64Array(16);function ol(t){const e=rl(t),n=tc(il,[e,e,e]);return qa(n,n,((r=[])[0]=-(i=t.min)[0],r[1]=-i[1],r[2]=-i[2],r));var r,i}function sl(t){const e=(r=t.min,(n=il)[0]=1,n[1]=0,n[2]=0,n[3]=0,n[4]=0,n[5]=1,n[6]=0,n[7]=0,n[8]=0,n[9]=0,n[10]=1,n[11]=0,n[12]=r[0],n[13]=r[1],n[14]=r[2],n[15]=1,n);var n,r;const i=1/rl(t);return Ka(e,e,[i,i,i])}function al(t,e,n,r,i){const o=function(t){const e=Qa/(2*Math.PI);return t/(2*Math.PI)/e}(n),s=[t,e,-n/(2*Math.PI)],a=Wa(new Float64Array(16));return qa(a,a,s),Ka(a,a,[o,o,o]),Ja(a,a,x(-i)),$a(a,a,x(-r)),a}function cl(t){return T(5,6,t)}function ll(t,e){const n=el(e.lat,e.lng);return o=(r=cc([],function(t){const e=el(t._center.lat,t._center.lng);let n=mc([],sc(0,1,0),e);const r=ec([],-t.angle,e);n=yc(n,n,r),ec(r,-t._pitch,n);const i=pc([],e);return fc(i,i,Gc(t.cameraToCenterDistance/t.pixelsPerMeter)),yc(i,i,r),ac([],e,i)}(t),n))[0],s=r[1],a=r[2],c=(i=n)[0],l=i[1],u=i[2],f=(h=Math.sqrt(o*o+s*s+a*a)*Math.sqrt(c*c+l*l+u*u))&&gc(r,i)/h,Math.acos(Math.min(Math.max(f,-1),1));var r,i,o,s,a,c,l,u,h,f}function ul(t,e){return ll(t,e)>Math.PI/2*1.01}const hl=x(85),fl=Math.cos(hl),dl=Math.sin(hl),pl=6371008.8,gl=2*Math.PI*pl;class ml{constructor(t,e){if(isNaN(t)||isNaN(e))throw new Error(`Invalid LngLat object: (${t}, ${e})`);if(this.lng=+t,this.lat=+e,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")}wrap(){return new ml(M(this.lng,-180,180),this.lat)}toArray(){return[this.lng,this.lat]}toString(){return`LngLat(${this.lng}, ${this.lat})`}distanceTo(t){const e=Math.PI/180,n=this.lat*e,r=t.lat*e,i=Math.sin(n)*Math.sin(r)+Math.cos(n)*Math.cos(r)*Math.cos((t.lng-this.lng)*e);return pl*Math.acos(Math.min(i,1))}toBounds(t=0){const e=360*t/40075017,n=e/Math.cos(Math.PI/180*this.lat);return new Na(new ml(this.lng-n,this.lat-e),new ml(this.lng+n,this.lat+e))}toEcef(t){const e=Gc(t);return el(this.lat,this.lng,jc+e)}static convert(t){if(t instanceof ml)return t;if(Array.isArray(t)&&(2===t.length||3===t.length))return new ml(Number(t[0]),Number(t[1]));if(!Array.isArray(t)&&"object"==typeof t&&null!==t)return new ml(Number("lng"in t?t.lng:t.lon),Number(t.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: <lng>, lat: <lat>}, an object {lon: <lng>, lat: <lat>}, or an array of [<lng>, <lat>]")}}var yl=ml;function _l(t){return gl*Math.cos(t*Math.PI/180)}function vl(t){return(180+t)/360}function bl(t){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t*Math.PI/360)))/360}function xl(t,e){return t/_l(e)}function wl(t){return 360*t-180}function El(t){return 360/Math.PI*Math.atan(Math.exp((180-360*t)*Math.PI/180)
vendor: 12,887 bytes, line 26
26)-90}function Sl(t,e){return t*_l(El(e))}const Cl=85.051129;function Al(t){return 1/Math.cos(t*Math.PI/180)}class Il{constructor(t,e,n=0){this.x=+t,this.y=+e,this.z=+n}static fromLngLat(t,e=0){const n=yl.convert(t);return new Il(vl(n.lng),bl(n.lat),xl(e,n.lat))}toLngLat(){return new yl(wl(this.x),El(this.y))}toAltitude(){return Sl(this.z,this.y)}meterInMercatorCoordinateUnits(){return 1/gl*Al(El(this.y))}}function Tl(t,e,n,r,i,o,s,a,c){const l=(e+r)/2,u=(n+i)/2,h=new _(l,u);a(h),function(t,e,n,r,i,o){const s=n-i,a=r-o;return Math.abs((r-e)*s-(n-t)*a)/Math.hypot(s,a)}(h.x,h.y,o.x,o.y,s.x,s.y)>=c?(Tl(t,e,n,l,u,o,h,a,c),Tl(t,l,u,r,i,h,s,a,c)):t.push(s)}function Ml(t,e,n){let r=t[0],i=r.x,o=r.y;e(r);const s=[r];for(let a=1;a<t.length;a++){const c=t[a],{x:l,y:u}=c;e(c),Tl(s,i,o,l,u,r,c,e,n),i=l,o=u,r=c}return s}function Fl(t,e,n,r){if(r(e,n)){const i=e.add(n)._mult(.5);Fl(t,e,i,r),Fl(t,i,n,r)}else t.push(n)}function Bl(t,e){let n=t[0];const r=[n];for(let i=1;i<t.length;i++){const o=t[i];Fl(r,n,o,e),n=o}return r}const Ll=Math.pow(2,14)-1,Ol=-Ll-1;function Ul(t,e){const n=Math.round(t.x*e),r=Math.round(t.y*e);return t.x=I(n,Ol,Ll),t.y=I(r,Ol,Ll),(n<t.x||n>t.x+1||r<t.y||r>t.y+1)&&G("Geometry exceeds allowed extent, reduce your vector tile buffer size"),t}function kl(t,e,n){const r=t.loadGeometry(),i=t.extent,o=Qa/i;if(e&&n&&n.projection.isReprojectedInTileSpace){const o=1<<e.z,{scale:s,x:a,y:c,projection:l}=n,u=t=>{const n=wl((e.x+t.x/i)/o),r=El((e.y+t.y/i)/o),u=l.project(n,r);t.x=(u.x*s-a)*i,t.y=(u.y*s-c)*i};for(let e=0;e<r.length;e++)if(1!==t.type)r[e]=Ml(r[e],u,1);else{const t=[];for(const n of r[e])n.x<0||n.x>=i||n.y<0||n.y>=i||(u(n),t.push(n));r[e]=t}}for(const t of r)for(const e of t)Ul(e,o);return r}function Pl(t,e){return{type:t.type,id:t.id,properties:t.properties,geometry:e?kl(t):[]}}function Dl(t,e,n,r,i){t.emplaceBack(2*e+(r+1)/2,2*n+(i+1)/2)}function Rl(t,e,n){const r=16384;t.emplaceBack(e.x,e.y,e.z,n[0]*r,n[1]*r,n[2]*r)}class jl{constructor(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(t=>t.id),this.index=t.index,this.hasPattern=!1,this.projection=t.projection,this.layoutVertexArray=new ws,this.indexArray=new Rs,this.segments=new za,this.programConfigurations=new Fa(t.layers,t.zoom),this.stateDependentLayerIds=this.layers.filter(t=>t.isStateDependent()).map(t=>t.id)}populate(t,e,n,r){const i=this.layers[0],o=[];let s=null;"circle"===i.type&&(s=i.layout.get("circle-sort-key"));for(const{feature:e,id:i,index:a,sourceLayerIndex:c}of t){const t=this.layers[0]._featureFilter.needGeometry,l=Pl(e,t);if(!this.layers[0]._featureFilter.filter(new rs(this.zoom),l,n))continue;const u=s?s.evaluate(l,{},n):void 0,h={id:i,properties:e.properties,type:e.type,sourceLayerIndex:c,index:a,geometry:t?l.geometry:kl(e,n,r),patterns:{},sortKey:u};o.push(h)}s&&o.sort((t,e)=>t.sortKey-e.sortKey);let a=null;"globe"===r.projection.name&&(this.globeExtVertexArray=new Ms,a=r.projection);for(const r of o){const{geometry:i,index:o,sourceLayerIndex:s}=r,c=t[o].feature;this.addFeature(r,i,o,e.availableImages,n,a),e.featureIndex.insert(c,i,o,s,this.index)}}update(t,e,n,r){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,n,r)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,Ra.members),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.globeExtVertexArray&&(this.globeExtVertexBuffer=t.createVertexBuffer(this.globeExtVertexArray,ja.members))),this.programConfigurations.upload(t),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.globeExtVertexBuffer&&this.globeExtVertexBuffer.destroy())}addFeature(t,e,n,r,i,o){for(const n of e)for(const e of n){const n=e.x,r=e.y;if(n<0||n>=Qa||r<0||r>=Qa)continue;if(o){const t=o.projectTilePoint(n,r,i),e=o.upVector(i,n,r),s=this.globeExtVertexArray;Rl(s,t,e),Rl(s,t,e),Rl(s,t,e),Rl(s,t,e)}const s=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,t.sortKey),a=s.vertexLength;Dl(this.layoutVertexArray,n,r,-1,-1),Dl(this.layoutVertexArray,n,r,1,-1),Dl(this.layoutVertexArray,n,r,1,1),Dl(this.layoutVertexArray,n,r,-1,1),this.indexArray.emplaceBack(a,a+1,a+2),this.indexArray.emplaceBack(a,a+2,a+3),s.vertexLength+=4,s.primitiveLength+=2}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,n,{},r,i)}}function zl(t,e){for(let n=0;n<t.length;n++)if(Yl(e,t[n]))return!0;for(let n=0;n<e.length;n++)if(Yl(t,e[n]))return!0;return!!Gl(t,e)}function Ql(t,e,n){return!!Yl(t,e)||!!Zl(e,t,n)}function Nl(t,e){if(1===t.length)return Xl(e,t[0]);for(let n=0;n<e.length;n++){const r=e[n];for(let e=0;e<r.length;e++)if(Yl(t,r[e]))return!0}for(let n=0;n<t.length;n++)if(Xl(e,t[n]))return!0;for(let n=0;n<e.length;n++)if(Gl(t,e[n]))return!0;return!1}function Vl(t,e,n){if(t.length>1){if(Gl(t,e))return!0;for(let r=0;r<e.length;r++)if(Zl(e[r],t,n))return!0}for(let r=0;r<t.length;r++)if(Zl(t[r],e,n))return!0;return!1}function Gl(t,e){if(0===t.length||0===e.length)return!1;for(let n=0;n<t.length-1;n++){const r=t[n],i=t[n+1];for(let t=0;t<e.length-1;t++)if(Hl(r,i,e[t],e[t+1]))return!0}return!1}function Hl(t,e,n,r){return H(t,n,r)!==H(e,n,r)&&H(t,e,n)!==H(t,e,r)}function Zl(t,e,n){const r=n*n;if(1===e.length)return t.distSqr(e[0])<r;for(let n=1;n<e.length;n++)if(Wl(t,e[n-1],e[n])<r)return!0;return!1}function Wl(t,e,n){const r=e.distSqr(n);if(0===r)return t.distSqr(e);const i=((t.x-e.x)*(n.x-e.x)+(t.y-e.y)*(n.y-e.y))/r;return t.distSqr(i<0?e:i>1?n:n.sub(e)._mult(i)._add(e))}function Xl(t,e){let n,r,i,o=!1;for(let s=0;s<t.length;s++){n=t[s];for(let t=0,s=n.length-1;t<n.length;s=t++)r=n[t],i=n[s],r.y>e.y!=i.y>e.y&&e.x<(i.x-r.x)*(e.y-r.y)/(i.y-r.y)+r.x&&(o=!o)}return o}function Yl(t,e){let n=!1;for(let r=0,i=t.length-1;r<t.length;i=r++){const o=t[r],s=t[i];o.y>e.y!=s.y>e.y&&e.x<(s.x-o.x)*(e.y-o.y)/(s.y-o.y)+o.x&&(n=!n)}return n}function ql(t,e,n,r,i){for(const o of t)if(e<=o.x&&n<=o.y&&r>=o.x&&i>=o.y)return!0;const o=[new _(e,n),new _(e,i),new _(r,i),new _(r,n)];if(t.length>2)for(const e of o)if(Yl(t,e))return!0;for(let e=0;e<t.length-1;e++)if(Kl(t[e],t[e+1],o))return!0;return!1}function Kl(t,e,n){const r=n[0],i=n[2];if(t.x<r.x&&e.x<r.x||t.x>i.x&&e.x>i.x||t.y<r.y&&e.y<r.y||t.y>i.y&&e.y>i.y)return!1;const o=H(t,e,n[0]);return o!==H(t,e,n[1])||o!==H(t,e,n[2])||o!==H(t,e,n[3])}function Jl(t,e,n){const r=e.paint.get(t).value;return"constant"===r.kind?r.value:n.programConfigurations.get(e.id).getMaxValue(t)}function $l(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function tu(t,e,n,r,i){if(!e[0]&&!e[1])return t;const o=_.convert(e)._mult(i);"viewport"===n&&o._rotate(-r);const s=[];for(let e=0;e<t.length;e++)s.push(t[e].sub(o));return s}function eu(t,e,n,r){const i=_.convert(t)._mult(r);return"viewport"===e&&i._rotate(-n),i}Di(jl,"CircleBucket",{omit:["layers"]});const nu=new gs({"circle-sort-key":new ds(te.layout_circle["circle-sort-key"])});var ru={paint:new gs({"circle-radius":new ds(te.paint_circle["circle-radius"]),"circle-color":new ds(te.paint_circle["circle-color"]),"circle-blur":new ds(te.paint_circle["circle-blur"]),"circle-opacity":new ds(te.paint_circle["circle-opacity"]),"circle-translate":new fs(te.paint_circle["circle-translate"]),"circle-translate-anchor":new fs(te.paint_circle["circle-translate-anchor"]),"circle-pitch-scale":new fs(te.paint_circle["circle-pitch-scale"]),"circle-pitch-alignment":new fs(te.paint_circle["circle-pitch-alignment"]),"circle-stroke-width":new ds(te.paint_circle["circle-stroke-width"]),"circle-stroke-color":new ds(te.paint_circle["circle-stroke-color"]),"circle-stroke-opacity":new ds(te.paint_circle["circle-stroke-opacity"])}),layout:nu};function iu(t,e,n,r,i,o,s,a,c){if(o&&t.queryGeometry.isAboveHorizon)return!1;o&&(c*=t.pixelToTileUnitsFactor);const l=t.tileID.canonical,u=n.projection.upVectorScale(l,n.center.lat,n.worldSize).metersToTile;for(const h of e)for(const e of h){const h=e.add(a),f=i&&n.elevation?n.elevation.exaggeration()*i.getElevationAt(h.x,h.y,!0):0,d=n.projection.projectTilePoint(h.x,h.y,l);if(f>0){const t=n.projection.upVector(l,h.x,h.y);d.x+=t[0]*u*f,d.y+=t[1]*u*f,d.z+=t[2]*u*f}const p=o?h:ou(d.x,d.y,d.z,r),g=o?t.tilespaceRays.map(t=>cu(t,f)):t.queryGeometry.screenGeometry,m=Cc([],[d.x,d.y,d.z,1],r);if(!s&&o?c*=m[3]/n.cameraToCenterDistance:s&&!o&&(c*=n.cameraToCenterDistance/m[3]),o){const t=El((e.y/Qa+l.y)/(1<<l.z));c/=n.projection.pixelsPerMeter(t,1)/xl(1,t)}if(Ql(g,p,c))return!0}return!1}function ou(t,e,n,r){const i=Cc([],[t,e,n,1],r);return new _(i[0]/i[3],i[1]/i[3])}const su=sc(0,0,0),au=sc(0,0,1);function cu(t,e){const n=rc();return su[2]=e,t.intersectsPlane(su,au,n),new _(n[0],n[1])}class lu extends jl{}function uu(t,{width:e,height:n},r,i){if(i){if(i instanceof Uint8ClampedArray)i=new Uint8Array(i.buffer);else if(i.length!==e*n*r)throw new RangeError("mismatched image size")}else i=new Uint8Array(e*n*r);return t.width=e,t.height=n,t.data=i,t}function hu(t,e,n){const{width:r,height:i}=e;r===t.width&&i===t.height||(fu(t,e,{x:0,y:0},{x:0,y:0},{width:Math.min(t.width,r),height:Math.min(t.height,i)},n),t.width=r,t.height=i,t.data=e.data)}function fu(t,e,n,r,i,o){if(0===i.width||0===i.height)return e;if(i.width>t.width||i.height>t.height||n.x>t.width-i.width||n.y>t.height-i.height)throw new RangeError("out of range source coordinates for image copy");if(i.width>e.width||i.height>e.height||r.x>e.width-i.width||r.y>e.height-i.height)throw new RangeError("out of range destination coordinates for image copy");const s=t.data,a=e.data;for(let c=0;c<i.height;c++){const l=((n.y+c)*t.width+n.x)*o,u=((r.y+c)*e.width+r.x)*o;for(let t=0;t<i.width*o;t++)a[u+t]=s[l+t]}return e}Di(lu,"HeatmapBucket",{omit:["layers"]});class du{constructor(t,e){uu(this,t,1,e)}resize(t){hu(this,new du(t),1)}clone(){return new du({width:this.width,height:this.height},new Uint8Array(this.data))}static copy(t,e,n,r,i){fu(t,e,n,r,i,1)}}class pu{constructor(t,e){uu(this,t,4,e)}resize(t){hu(this,new pu(t),4)}replace(t,e){e?this.data.set(t):this.data=t instanceof Uint8ClampedArray?new Uint8Array(t.buffer):t}clone(){return new pu({width:this.width,height:this.height},new Uint8Array(this.data))}static copy(t,e,n,r,i){fu(t,e,n,r,i,4)}}Di(du,"AlphaImage"),Di(pu,"RGBAImage");var gu={paint:new gs({"heatmap-radius":new ds(te.paint_heatmap["heatmap-radius"]),"heatmap-weight":new ds(te.paint_heatmap["heatmap-weight"]),"heatmap-intensity":new fs(te.paint_heatmap["heatmap-intensity"]),"heatmap-color":new ps(te.paint_heatmap["heatmap-color"]),"heatmap-opacity":new fs(te.paint_heatmap["heatmap-opacity"])})};function mu(t){const e={},n=t.resolution||256,r=t.clips?t.clips.length:1,i=t.image||new pu({width:n,height:r}),o=(n,r,o)=>{e[t.evaluationKey]=o;const s=t.expression.evaluate(e);i.data[n+r+0]=Math.floor(255*s.r/s.a),i.data[n+r+1]=Math.floor(255*s.g/s.a),i.data[n+r+2]=Math.floor(255*s.b/s.a),i.data[n+r+3]=Math.floor(255*s.a)};if(t.clips)for(let e=0,i=0;e<r;++e,i+=4*n)for(let r=0,s=0;r<n;r++,s+=4){const a=r/(n-1),{start:c,end:l}=t.clips[e];o(i,s,c*(1-a)+l*a)}else for(let t=0,e=0;t<n;t++,e+=4)o(0,e,t/(n-1));return i}var yu={paint:new gs({"hillshade-illumination-direction":new fs(te.paint_hillshade["hillshade-illumination-direction"]),"hillshade-illumination-anchor":new fs(te.paint_hillshade["hillshade-illumination-anchor"]),"hillshade-exaggeration":new fs(te.paint_hillshade["hillshade-exaggeration"]),"hillshade-shadow-color":new fs(te.paint_hillshade["hillshade-shadow-color"]),"hillshade-highlight-color":new fs(te.paint_hillshade["hillshade-highlight-color"]),"hillshade-accent-color":new fs(te.paint_hillshade["hillshade-accent-color"])})};const _u=bs([{name:"a_pos",components:2,type:"Int16"}],4),{members:vu}=_u;var bu={exports:{}};function xu(t,e,n){n=n||2;var r,i,o,s,a,c,l,u=e&&e.length,h=u?e[0]*n:t.length,f=wu(t,0,h,n,!0),d=[];if(!f||f.next===f.prev)return d;if(u&&(f=function(t,e,n,r){var i,o,s,a=[];for(i=0,o=e.length;i<o;i++)(s=wu(t,e[i]*r,i<o-1?e[i+1]*r:t.length,r,!1))===s.next&&(s.steiner=!0),a.push(Ou(s));for(a.sort(Mu),i=0;i<a.length;i++)n=Fu(a[i],n);return n}(t,e,f,n)),t.length>80*n){r=o=t[0],i=s=t[1];for(var p=n;p<h;p+=n)(a=t[p])<r&&(r=a),(c=t[p+1])<i&&(i=c),a>o&&(o=a),c>s&&(s=c);l=0!==(l=Math.max(o-r,s-i))?32767/l:0}return Su(f,d,n,r,i,l,0),d}function wu(t,e,n,r,i){var o,s;if(i===Zu(t,e,n,r)>0)for(o=e;o<n;o+=r)s=Vu(o,t[o],t[o+1],s);else for(o=n-r;o>=e;o-=r)s=Vu(o,t[o],t[o+1],s);return s&&Du(s,s.next)&&(Gu(s),s=s.next),s}function Eu(t,e){if(!t)return t;e||(e=t);var n,r=t;do{if(n=!1,r.steiner||!Du(r,r.next)&&0!==Pu(r.prev,r,r.next))r=r.next;else{if(Gu(r),(r=e=r.prev)===r.next)break;n=!0}}while(n||r!==e);return e}
vendor: 2,452 bytes, line 26
26function Su(t,e,n,r,i,o,s){if(t){!s&&o&&function(t,e,n,r){var i=t;do{0===i.z&&(i.z=Lu(i.x,i.y,e,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,function(t){var e,n,r,i,o,s,a,c,l=1;do{for(n=t,t=null,o=null,s=0;n;){for(s++,r=n,a=0,e=0;e<l&&(a++,r=r.nextZ);e++);for(c=l;a>0||c>0&&r;)0!==a&&(0===c||!r||n.z<=r.z)?(i=n,n=n.nextZ,a--):(i=r,r=r.nextZ,c--),o?o.nextZ=i:t=i,i.prevZ=o,o=i;n=r}o.nextZ=null,l*=2}while(s>1)}(i)}(t,r,i,o);for(var a,c,l=t;t.prev!==t.next;)if(a=t.prev,c=t.next,o?Au(t,r,i,o):Cu(t))e.push(a.i/n|0),e.push(t.i/n|0),e.push(c.i/n|0),Gu(t),t=c.next,l=c.next;else if((t=c)===l){s?1===s?Su(t=Iu(Eu(t),e,n),e,n,r,i,o,2):2===s&&Tu(t,e,n,r,i,o):Su(Eu(t),e,n,r,i,o,1);break}}}function Cu(t){var e=t.prev,n=t,r=t.next;if(Pu(e,n,r)>=0)return!1;for(var i=e.x,o=n.x,s=r.x,a=e.y,c=n.y,l=r.y,u=i<o?i<s?i:s:o<s?o:s,h=a<c?a<l?a:l:c<l?c:l,f=i>o?i>s?i:s:o>s?o:s,d=a>c?a>l?a:l:c>l?c:l,p=r.next;p!==e;){if(p.x>=u&&p.x<=f&&p.y>=h&&p.y<=d&&Uu(i,a,o,c,s,l,p.x,p.y)&&Pu(p.prev,p,p.next)>=0)return!1;p=p.next}return!0}function Au(t,e,n,r){var i=t.prev,o=t,s=t.next;if(Pu(i,o,s)>=0)return!1;for(var a=i.x,c=o.x,l=s.x,u=i.y,h=o.y,f=s.y,d=a<c?a<l?a:l:c<l?c:l,p=u<h?u<f?u:f:h<f?h:f,g=a>c?a>l?a:l:c>l?c:l,m=u>h?u>f?u:f:h>f?h:f,y=Lu(d,p,e,n,r),_=Lu(g,m,e,n,r),v=t.prevZ,b=t.nextZ;v&&v.z>=y&&b&&b.z<=_;){if(v.x>=d&&v.x<=g&&v.y>=p&&v.y<=m&&v!==i&&v!==s&&Uu(a,u,c,h,l,f,v.x,v.y)&&Pu(v.prev,v,v.next)>=0)return!1;if(v=v.prevZ,b.x>=d&&b.x<=g&&b.y>=p&&b.y<=m&&b!==i&&b!==s&&Uu(a,u,c,h,l,f,b.x,b.y)&&Pu(b.prev,b,b.next)>=0)return!1;b=b.nextZ}for(;v&&v.z>=y;){if(v.x>=d&&v.x<=g&&v.y>=p&&v.y<=m&&v!==i&&v!==s&&Uu(a,u,c,h,l,f,v.x,v.y)&&Pu(v.prev,v,v.next)>=0)return!1;v=v.prevZ}for(;b&&b.z<=_;){if(b.x>=d&&b.x<=g&&b.y>=p&&b.y<=m&&b!==i&&b!==s&&Uu(a,u,c,h,l,f,b.x,b.y)&&Pu(b.prev,b,b.next)>=0)return!1;b=b.nextZ}return!0}function Iu(t,e,n){var r=t;do{var i=r.prev,o=r.next.next;!Du(i,o)&&Ru(i,r,r.next,o)&&Qu(i,o)&&Qu(o,i)&&(e.push(i.i/n|0),e.push(r.i/n|0),e.push(o.i/n|0),Gu(r),Gu(r.next),r=t=o),r=r.next}while(r!==t);return Eu(r)}function Tu(t,e,n,r,i,o){var s=t;do{for(var a=s.next.next;a!==s.prev;){if(s.i!==a.i&&ku(s,a)){var c=Nu(s,a);return s=Eu(s,s.next),c=Eu(c,c.next),Su(s,e,n,r,i,o,0),void Su(c,e,n,r,i,o,0)}a=a.next}s=s.next}while(s!==t)}function Mu(t,e){return t.x-e.x}function Fu(t,e){var n=function(t,e){var n,r=e,i=t.x,o=t.y,s=-1/0;do{if(o<=r.y&&o>=r.next.y&&r.next.y!==r.y){var a=r.x+(o-r.y)*(r.next.x-r.x)/(r.next.y-r.y
vendor: 14,283 bytes, line 26
26);if(a<=i&&a>s&&(s=a,n=r.x<r.next.x?r:r.next,a===i))return n}r=r.next}while(r!==e);if(!n)return null;var c,l=n,u=n.x,h=n.y,f=1/0;r=n;do{i>=r.x&&r.x>=u&&i!==r.x&&Uu(o<h?i:s,o,u,h,o<h?s:i,o,r.x,r.y)&&(c=Math.abs(o-r.y)/(i-r.x),Qu(r,t)&&(c<f||c===f&&(r.x>n.x||r.x===n.x&&Bu(n,r)))&&(n=r,f=c)),r=r.next}while(r!==l);return n}(t,e);if(!n)return e;var r=Nu(n,t);return Eu(r,r.next),Eu(n,n.next)}function Bu(t,e){return Pu(t.prev,t,e.prev)<0&&Pu(e.next,t,t.next)<0}function Lu(t,e,n,r,i){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-n)*i|0)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-r)*i|0)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function Ou(t){var e=t,n=t;do{(e.x<n.x||e.x===n.x&&e.y<n.y)&&(n=e),e=e.next}while(e!==t);return n}function Uu(t,e,n,r,i,o,s,a){return(i-s)*(e-a)>=(t-s)*(o-a)&&(t-s)*(r-a)>=(n-s)*(e-a)&&(n-s)*(o-a)>=(i-s)*(r-a)}function ku(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var n=t;do{if(n.i!==t.i&&n.next.i!==t.i&&n.i!==e.i&&n.next.i!==e.i&&Ru(n,n.next,t,e))return!0;n=n.next}while(n!==t);return!1}(t,e)&&(Qu(t,e)&&Qu(e,t)&&function(t,e){var n=t,r=!1,i=(t.x+e.x)/2,o=(t.y+e.y)/2;do{n.y>o!=n.next.y>o&&n.next.y!==n.y&&i<(n.next.x-n.x)*(o-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==t);return r}(t,e)&&(Pu(t.prev,t,e.prev)||Pu(t,e.prev,e))||Du(t,e)&&Pu(t.prev,t,t.next)>0&&Pu(e.prev,e,e.next)>0)}function Pu(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function Du(t,e){return t.x===e.x&&t.y===e.y}function Ru(t,e,n,r){var i=zu(Pu(t,e,n)),o=zu(Pu(t,e,r)),s=zu(Pu(n,r,t)),a=zu(Pu(n,r,e));return i!==o&&s!==a||!(0!==i||!ju(t,n,e))||!(0!==o||!ju(t,r,e))||!(0!==s||!ju(n,t,r))||!(0!==a||!ju(n,e,r))}function ju(t,e,n){return e.x<=Math.max(t.x,n.x)&&e.x>=Math.min(t.x,n.x)&&e.y<=Math.max(t.y,n.y)&&e.y>=Math.min(t.y,n.y)}function zu(t){return t>0?1:t<0?-1:0}function Qu(t,e){return Pu(t.prev,t,t.next)<0?Pu(t,e,t.next)>=0&&Pu(t,t.prev,e)>=0:Pu(t,e,t.prev)<0||Pu(t,t.next,e)<0}function Nu(t,e){var n=new Hu(t.i,t.x,t.y),r=new Hu(e.i,e.x,e.y),i=t.next,o=e.prev;return t.next=e,e.prev=t,n.next=i,i.prev=n,r.next=n,n.prev=r,o.next=r,r.prev=o,r}function Vu(t,e,n,r){var i=new Hu(t,e,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function Gu(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function Hu(t,e,n){this.i=t,this.x=e,this.y=n,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}function Zu(t,e,n,r){for(var i=0,o=e,s=n-r;o<n;o+=r)i+=(t[s]-t[o])*(t[o+1]+t[s+1]),s=o;return i}bu.exports=xu,bu.exports.default=xu,xu.deviation=function(t,e,n,r){var i=e&&e.length,o=Math.abs(Zu(t,0,i?e[0]*n:t.length,n));if(i)for(var s=0,a=e.length;s<a;s++)o-=Math.abs(Zu(t,e[s]*n,s<a-1?e[s+1]*n:t.length,n));var c=0;for(s=0;s<r.length;s+=3){var l=r[s]*n,u=r[s+1]*n,h=r[s+2]*n;c+=Math.abs((t[l]-t[h])*(t[u+1]-t[l+1])-(t[l]-t[u])*(t[h+1]-t[l+1]))}return 0===o&&0===c?0:Math.abs((c-o)/o)},xu.flatten=function(t){for(var e=t[0][0].length,n={vertices:[],holes:[],dimensions:e},r=0,i=0;i<t.length;i++){for(var o=0;o<t[i].length;o++)for(var s=0;s<e;s++)n.vertices.push(t[i][o][s]);i>0&&n.holes.push(r+=t[i-1].length)}return n};var Wu=f(bu.exports);function Xu(t,e,n,r,i){!function t(e,n,r,i,o){for(;i>r;){if(i-r>600){var s=i-r+1,a=n-r+1,c=Math.log(s),l=.5*Math.exp(2*c/3),u=.5*Math.sqrt(c*l*(s-l)/s)*(a-s/2<0?-1:1);t(e,n,Math.max(r,Math.floor(n-a*l/s+u)),Math.min(i,Math.floor(n+(s-a)*l/s+u)),o)}var h=e[n],f=r,d=i;for(Yu(e,r,n),o(e[i],h)>0&&Yu(e,r,i);f<d;){for(Yu(e,f,d),f++,d--;o(e[f],h)<0;)f++;for(;o(e[d],h)>0;)d--}0===o(e[r],h)?Yu(e,r,d):Yu(e,++d,i),d<=n&&(r=d+1),n<=d&&(i=d-1)}}(t,e,n||0,r||t.length-1,i||qu)}function Yu(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function qu(t,e){return t<e?-1:t>e?1:0}function Ku(t,e){const n=t.length;if(n<=1)return[t];const r=[];let i,o;for(let e=0;e<n;e++){const n=Z(t[e]);0!==n&&(t[e].area=Math.abs(n),void 0===o&&(o=n<0),o===n<0?(i&&r.push(i),i=[t[e]]):i.push(t[e]))}if(i&&r.push(i),e>1)for(let t=0;t<r.length;t++)r[t].length<=e||(Xu(r[t],e,1,r[t].length-1,Ju),r[t]=r[t].slice(0,e));return r}function Ju(t,e){return e.area-t.area}function $u(t,e,n){const r=n.patternDependencies;let i=!1;for(const n of e){const e=n.paint.get(t+"-pattern");e.isConstant()||(i=!0);const o=e.constantOr(null);o&&(i=!0,r[o]=!0)}return i}function th(t,e,n,r,i){const o=i.patternDependencies;for(const s of e){const e=s.paint.get(t+"-pattern").value;if("constant"!==e.kind){let t=e.evaluate({zoom:r},n,{},i.availableImages);t=t&&t.name?t.name:t,o[t]=!0,n.patterns[s.id]=t}}return n}class eh{constructor(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(t=>t.id),this.index=t.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new ws,this.indexArray=new Rs,this.indexArray2=new Gs,this.programConfigurations=new Fa(t.layers,t.zoom),this.segments=new za,this.segments2=new za,this.stateDependentLayerIds=this.layers.filter(t=>t.isStateDependent()).map(t=>t.id),this.projection=t.projection}populate(t,e,n,r){this.hasPattern=$u("fill",this.layers,e);const i=this.layers[0].layout.get("fill-sort-key"),o=[];for(const{feature:s,id:a,index:c,sourceLayerIndex:l}of t){const t=this.layers[0]._featureFilter.needGeometry,u=Pl(s,t);if(!this.layers[0]._featureFilter.filter(new rs(this.zoom),u,n))continue;const h=i?i.evaluate(u,{},n,e.availableImages):void 0,f={id:a,properties:s.properties,type:s.type,sourceLayerIndex:l,index:c,geometry:t?u.geometry:kl(s,n,r),patterns:{},sortKey:h};o.push(f)}i&&o.sort((t,e)=>t.sortKey-e.sortKey);for(const r of o){const{geometry:i,index:o,sourceLayerIndex:s}=r;if(this.hasPattern){const t=th("fill",this.layers,r,this.zoom,e);this.patternFeatures.push(t)}else this.addFeature(r,i,o,n,{},e.availableImages);e.featureIndex.insert(t[o].feature,i,o,s,this.index)}}update(t,e,n,r){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,n,r)}addFeatures(t,e,n,r,i){for(const t of this.patternFeatures)this.addFeature(t,t.geometry,t.index,e,n,r)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,vu),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.indexBuffer2=t.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(t),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())}addFeature(t,e,n,r,i,o=[]){for(const t of Ku(e,500)){let e=0;for(const n of t)e+=n.length;const n=this.segments.prepareSegment(e,this.layoutVertexArray,this.indexArray),r=n.vertexLength,i=[],o=[];for(const e of t){if(0===e.length)continue;e!==t[0]&&o.push(i.length/2);const n=this.segments2.prepareSegment(e.length,this.layoutVertexArray,this.indexArray2),r=n.vertexLength;this.layoutVertexArray.emplaceBack(e[0].x,e[0].y),this.indexArray2.emplaceBack(r+e.length-1,r),i.push(e[0].x),i.push(e[0].y);for(let t=1;t<e.length;t++)this.layoutVertexArray.emplaceBack(e[t].x,e[t].y),this.indexArray2.emplaceBack(r+t-1,r+t),i.push(e[t].x),i.push(e[t].y);n.vertexLength+=e.length,n.primitiveLength+=e.length}const s=Wu(i,o);for(let t=0;t<s.length;t+=3)this.indexArray.emplaceBack(r+s[t],r+s[t+1],r+s[t+2]);n.vertexLength+=e,n.primitiveLength+=s.length/3}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,n,i,o,r)}}Di(eh,"FillBucket",{omit:["layers","patternFeatures"]});const nh=new gs({"fill-sort-key":new ds(te.layout_fill["fill-sort-key"])});var rh={paint:new gs({"fill-antialias":new fs(te.paint_fill["fill-antialias"]),"fill-opacity":new ds(te.paint_fill["fill-opacity"]),"fill-color":new ds(te.paint_fill["fill-color"]),"fill-outline-color":new ds(te.paint_fill["fill-outline-color"]),"fill-translate":new fs(te.paint_fill["fill-translate"]),"fill-translate-anchor":new fs(te.paint_fill["fill-translate-anchor"]),"fill-pattern":new ds(te.paint_fill["fill-pattern"])}),layout:nh};const ih=bs([{name:"a_pos_normal_ed",components:4,type:"Int16"}]),oh=bs([{name:"a_centroid_pos",components:2,type:"Uint16"}]),sh=bs([{name:"a_pos_3",components:3,type:"Int16"},{name:"a_pos_normal_3",components:3,type:"Int16"}]),{members:ah}=ih;var ch={},lh=m,uh=hh;function hh(t,e,n,r,i){this.properties={},this.extent=n,this.type=0,this._pbf=t,this._geometry=-1,this._keys=r,this._values=i,t.readFields(fh,this,e)}function fh(t,e,n){1==t?e.id=n.readVarint():2==t?function(t,e){for(var n=t.readVarint()+t.pos;t.pos<n;){var r=e._keys[t.readVarint()],i=e._values[t.readVarint()];e.properties[r]=i}}(n,e):3==t?e.type=n.readVarint():4==t&&(e._geometry=n.pos)}function dh(t){for(var e,n,r=0,i=0,o=t.length,s=o-1;i<o;s=i++)r+=((n=t[s]).x-(e=t[i]).x)*(e.y+n.y);return r}hh.types=["Unknown","Point","LineString","Polygon"],hh.prototype.loadGeometry=function(){var t=this._pbf;t.pos=this._geometry;for(var e,n=t.readVarint()+t.pos,r=1,i=0,o=0,s=0,a=[];t.pos<n;){if(i<=0){var c=t.readVarint();r=7&c,i=c>>3}if(i--,1===r||2===r)o+=t.readSVarint(),s+=t.readSVarint(),1===r&&(e&&a.push(e),e=[]),e.push(new lh(o,s));else{if(7!==r)throw new Error("unknown command "+r);e&&e.push(e[0].clone())}}return e&&a.push(e),a},hh.prototype.bbox=function(){var t=this._pbf;t.pos=this._geometry;for(var e=t.readVarint()+t.pos,n=1,r=0,i=0,o=0,s=1/0,a=-1/0,c=1/0,l=-1/0;t.pos<e;){if(r<=0){var u=t.readVarint();n=7&u,r=u>>3}if(r--,1===n||2===n)(i+=t.readSVarint())<s&&(s=i),i>a&&(a=i),(o+=t.readSVarint())<c&&(c=o),o>l&&(l=o);else if(7!==n)throw new Error("unknown command "+n)}return[s,c,a,l]},hh.prototype.toGeoJSON=function(t,e,n){var r,i,o=this.extent*Math.pow(2,n),s=this.extent*t,a=this.extent*e,c=this.loadGeometry(),l=hh.types[this.type];function u(t){for(var e=0;e<t.length;e++){var n=t[e];t[e]=[360*(n.x+s)/o-180,360/Math.PI*Math.atan(Math.exp((180-360*(n.y+a)/o)*Math.PI/180))-90]}}switch(this.type){case 1:var h=[];for(r=0;r<c.length;r++)h[r]=c[r][0];u(c=h);break;case 2:for(r=0;r<c.length;r++)u(c[r]);break;case 3:for(c=function(t){var e=t.length;if(e<=1)return[t];for(var n,r,i=[],o=0;o<e;o++){var s=dh(t[o]);0!==s&&(void 0===r&&(r=s<0),r===s<0?(n&&i.push(n),n=[t[o]]):n.push(t[o]))}return n&&i.push(n),i}(c),r=0;r<c.length;r++)for(i=0;i<c[r].length;i++)u(c[r][i])}1===c.length?c=c[0]:l="Multi"+l;var f={type:"Feature",geometry:{type:l,coordinates:c},properties:this.properties};return"id"in this&&(f.id=this.id),f};var ph=uh,gh=mh;function mh(t,e){this.version=1,this.name=null,this.extent=4096,this.length=0,this._pbf=t,this._keys=[],this._values=[],this._features=[],t.readFields(yh,this,e),this.length=this._features.length}function yh(t,e,n){15===t?e.version=n.readVarint():1===t?e.name=n.readString():5===t?e.extent=n.readVarint():2===t?e._features.push(n.pos):3===t?e._keys.push(n.readString()):4===t&&e._values.push(function(t){for(var e=null,n=t.readVarint()+t.pos;t.pos<n;){var r=t.readVarint()>>3;e=1===r?t.readString():2===r?t.readFloat():3===r?t.readDouble():4===r?t.readVarint64():5===r?t.readVarint():6===r?t.readSVarint():7===r?t.readBoolean():null}return e}(n))}mh.prototype.feature=function(t){if(t<0||t>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[t];var e=this._pbf.readVarint()+this._pbf.pos;return new ph(this._pbf,e,this.extent,this._keys,this._values)};var _h=gh;function vh(t,e,n){if(3===t){var r=new _h(n,n.readVarint()+n.pos);r.length&&(e[r.name]=r)}}var bh=ch.VectorTile=function(t,e){this.layers=t.readFields(vh,{},e)},xh=ch.VectorTileFeature=uh;function wh(t,e,n,r){const i=[],o=0===r?(t,e,n,r,i,o)=>{t.push(new _(o,n+(o-e)/(r-e)*(i-n)))}:(t,e,n,r,i,o)=>{t.push(new _(e+(o-n)/(i-n)*(r-e),o))};for(const s of t){const t=[];for(const i of s){if(i.length<=2)continue;const s=[];for(let t=0;t<i.length-1;t++){const a=i[t].x,c=i[t].y,l=i[t+1].x,u=i[t+1].y,h=0===r?a:c,f=0===r?l:u;h<e?f>e&&o(s,a,c,l,u,e):h>n?f<n&&o(s,a,c,l,u,n):s.push(i[t]),f<e&&h>=e&&o(s,a,c,l,u,e),f>n&&h<=n&&o(s,a,c,l,u,n)}let a=i[i.length-1];const c=0===r?a.x:a.y;c>=e&&c<=n&&s.push(a),s.length&&(a=s[s.length-1],s[0].x===a.x&&s[0].y===a.y||s.push(s[0]),t.push(s))}t.length&&i.push(t)}return i}ch.VectorTileLayer=gh;const Eh=xh.types,Sh=Math.pow(2,13);function Ch(t,e,n,r,i,o,s,a){t.emplaceBack((e<<1)+s,(n<<1)+o,(Math.floor(r*Sh)<<1)+i,Math.round(a))}function Ah(t,e,n){const r=16384;t.emplaceBack(e.x,e.y,e.z,n[0]*r,n[1]*r,n[2]*r)}class Ih{constructor(){this.acc=new _(0,0),this.polyCount=[]}startRing(t){this.currentPolyCount={edges:0,top:0},this.polyCount.push(this.currentPolyCount),this.min||(this.min=new _(t.x,t.y),this.max=new _(t.x,t.y))}append(t,e){this.currentPolyCount.edges++,this.acc._add(t);const n=this.min,r=this.max;t.x<n.x?n.x=t.x:t.x>r.x&&(r.x=t.x),t.y<n.y?n.y=t.y:t.y>r.y&&(r.y=t.y),((0===t.x||t.x===Qa)&&t.x===e.x)!=((0===t.y||t.y===Qa)&&t.y===e.y)&&this.processBorderOverlap(t,e),e.x<0!=t.x<0&&this.addBorderIntersection(0,Bn(e.y,t.y,(0-e.x)/(t.x-e.x))),e.x>Qa!=t.x>Qa&&this.addBorderIntersection(1,Bn(e.y,t.y,(Qa-e.x)/(t.x-e.x))),e.y<0!=t.y<0&&this.addBorderIntersection(2,Bn(e.x,t.x,(0-e.y)/(t.y-e.y))),e.y>Qa!=t.y>Qa&&this.addBorderIntersection(3,Bn(e.x,t.x,(Qa-e.y)/(t.y-e.y)))}addBorderIntersection(t,e){this.borders||(this.borders=[[Number.MAX_VALUE,-Number.MAX_VALUE],[Number.MAX_VALUE,-Number.MAX_VALUE],[Number.MAX_VALUE,-Number.MAX_VALUE],[Number.MAX_VALUE,-Number.MAX_VALUE]]);const n=this.borders[t];e<n[0]&&(n[0]=e),e>n[1]&&(n[1]=e)}processBorderOverlap(t,e){if(t.x===e.x){if(t.y===e.y)return;const n=0===t.x?0:1;this.addBorderIntersection(n,e.y),this.addBorderIntersection(n,t.y)}else{const n=0===t.y?2:3;this.addBorderIntersection(n,e.x),this.addBorderIntersection(n,t.x)}}centroid(){const t=this.polyCount.reduce((t,e)=>t+e.edges,0);return 0!==t?this.acc.div(t)._round():new _(0,0)}span(){return new _(this.max.x-this.min.x,this.max.y-this.min.y)}intersectsCount(){return this.borders.reduce((t,e)=>t+ +(e[0]!==Number.MAX_VALUE),0)}}class Th{constructor(t){this.zoom=t.zoom,this.canonical=t.canonical,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(t=>
26t.id),this.index=t.index,this.hasPattern=!1,this.edgeRadius=0,this.projection=t.projection,this.layoutVertexArray=new Ss,this.centroidVertexArray=new ra,this.indexArray=new Rs,this.programConfigurations=new Fa(t.layers,t.zoom),this.segments=new za,this.stateDependentLayerIds=this.layers.filter(t=>t.isStateDependent()).map(t=>t.id),this.enableTerrain=t.enableTerrain}populate(t,e,n,r){this.features=[],this.hasPattern=$u("fill-extrusion",this.layers,e),this.featuresOnBorder=[],this.borders=[[],[],[],[]],this.borderDoneWithNeighborZ=[-1,-1,-1,-1],this.tileToMeter=function(t){const e=Math.exp(Math.PI*(1-t.y/(1<<t.z)*2));return 80150034*e/(e*e+1)/Qa/(1<<t.z)}(n),this.edgeRadius=this.layers[0].layout.get("fill-extrusion-edge-radius")/this.tileToMeter;for(const{feature:i,id:o,index:s,sourceLayerIndex:a}of t){const t=this.layers[0]._featureFilter.needGeometry,c=Pl(i,t);if(!this.layers[0]._featureFilter.filter(new rs(this.zoom),c,n))continue;const l={id:o,sourceLayerIndex:a,index:s,geometry:t?c.geometry:kl(i,n,r),properties:i.properties,type:i.type,patterns:{}},u=this.layoutVertexArray.length;this.hasPattern?this.features.push(th("fill-extrusion",this.layers,l,this.zoom,e)):this.addFeature(l,l.geometry,s,n,{},e.availableImages,r),e.featureIndex.insert(i,l.geometry,s,a,this.index,u)}this.sortBorders()}addFeatures(t,e,n,r,i){for(const t of this.features){const{geometry:o}=t;this.addFeature(t,o,t.index,e,n,r,i)}this.sortBorders()}update(t,e,n,r){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,n,r)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,ah),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.layoutVertexExtArray&&(this.layoutVertexExtBuffer=t.createVertexBuffer(this.layoutVertexExtArray,sh.members,!0))),this.programConfigurations.upload(t),this.uploaded=!0}uploadCentroid(t){0!==this.centroidVertexArray.length&&(this.centroidVertexBuffer?this.needsCentroidUpdate&&this.centroidVertexBuffer.updateData(this.centroidVertexArray):this.centroidVertexBuffer=t.createVertexBuffer(this.centroidVertexArray,oh.members,!0),this.needsCentroidUpdate=!1)}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.centroidVertexBuffer&&this.centroidVertexBuffer.destroy(),this.layoutVertexExtBuffer&&this.layoutVertexExtBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}addFeature(t,e,n,r,i,o,s){const a=[new _(0,0),new _(Qa,Qa)],c=s.projection,l="globe"===c.name,u=this.enableTerrain&&!l?new Ih:null,h="Polygon"===Eh[t.type];l&&!this.layoutVertexExtArray&&(this.layoutVertexExtArray=new Ms);const f=Ku(e,500);for(let t=f.length-1;t>=0;t--){const e=f[t];(0===e.length||(d=e[0]).every(t=>t.x<=0)||d.every(t=>t.x>=Qa)||d.every(t=>t.y<=0)||d.every(t=>t.y>=Qa))&&f.splice(t,1)}var d;let p;if(l)p=Ph(f,a,r);else{p=[];for(const t of f)p.push({polygon:t,bounds:a})}const g=h?this.edgeRadius:0;for(const{polygon:t,bounds:e}of p){let n=0,i=0;for(const e of t)h&&!e[0].equals(e[e.length-1])&&e.push(e[0]),i+=h?e.length-1:e.length;const o=this.segments.prepareSegment((h?5:4)*i,this.layoutVertexArray,this.indexArray);if(h){const e=[],i=[];n=o.vertexLength;for(const n of t){let s,a;n.length&&n!==t[0]&&i.push(e.length/2),s=n[1].sub(n[0])._perp()._unit();for(let t=1;t<n.length;t++){const i=n[t],u=n[t===n.length-1?1:t+1];let{x:h,y:f}=i;if(g){a=u.sub(i)._perp()._unit();const t=s.add(a)._unit(),e=g*Math.min(4,1/(s.x*t.x+s.y*t.y));h+=e*t.x,f+=e*t.y,s=a}Ch(this.layoutVertexArray,h,f,0,0,1,1,0),o.vertexLength++,e.push(i.x,i.y),l&&Ah(this.layoutVertexExtArray,c.projectTilePoint(h,f,r),c.upVector(r,h,f))}}const s=Wu(e,i);for(let t=0;t<s.length;t+=3)this.indexArray.emplaceBack(n+s[t],n+s[t+2],n+s[t+1]),o.primitiveLength++}for(const i of t){u&&i.length&&u.startRing(i[0]);let t,s,a,f=i.length>4&&Oh(i[i.length-2],i[0],i[1]),d=g?Fh(i[i.length-2],i[0],i[1],g):0;s=i[1].sub(i[0])._perp()._unit();let p=!0;for(let m=1,y=0;m<i.length;m++){let _=i[m-1],v=i[m];
vendor: 13,800 bytes, line 26
26const b=i[m===i.length-1?1:m+1];if(u&&h&&u.currentPolyCount.top++,Lh(v,_,e)){g&&(s=b.sub(v)._perp()._unit(),p=!p);continue}u&&u.append(v,_);const x=v.sub(_)._perp(),w=x.x/(Math.abs(x.x)+Math.abs(x.y)),E=x.y>0?1:0,S=_.dist(v);if(y+S>32768&&(y=0),g){a=b.sub(v)._perp()._unit();let t=Bh(_,v,b,Mh(s,a),g);isNaN(t)&&(t=0);const e=v.sub(_)._unit();_=_.add(e.mult(d))._round(),v=v.add(e.mult(-t))._round(),d=t,s=a}const C=o.vertexLength,A=i.length>4&&Oh(_,v,b);let I=Uh(y,f,p);if(Ch(this.layoutVertexArray,_.x,_.y,w,E,0,0,I),Ch(this.layoutVertexArray,_.x,_.y,w,E,0,1,I),y+=S,I=Uh(y,A,!p),f=A,Ch(this.layoutVertexArray,v.x,v.y,w,E,0,0,I),Ch(this.layoutVertexArray,v.x,v.y,w,E,0,1,I),o.vertexLength+=4,this.indexArray.emplaceBack(C+0,C+1,C+2),this.indexArray.emplaceBack(C+1,C+3,C+2),o.primitiveLength+=2,g){const r=n+(1===m?i.length-2:m-2),s=1===m?n:r+1;if(this.indexArray.emplaceBack(C+1,r,C+3),this.indexArray.emplaceBack(r,s,C+3),o.primitiveLength+=2,void 0===t&&(t=C),!Lh(b,i[m],e)){const e=m===i.length-1?t:o.vertexLength;this.indexArray.emplaceBack(C+2,C+3,e),this.indexArray.emplaceBack(C+3,e+1,e),this.indexArray.emplaceBack(C+3,s,e+1),o.primitiveLength+=3}p=!p}if(l){const t=this.layoutVertexExtArray,e=c.projectTilePoint(_.x,_.y,r),n=c.projectTilePoint(v.x,v.y,r),i=c.upVector(r,_.x,_.y),o=c.upVector(r,v.x,v.y);Ah(t,e,i),Ah(t,e,i),Ah(t,n,o),Ah(t,n,o)}}h&&(n+=i.length-1)}}if(u&&u.polyCount.length>0){if(u.borders){u.vertexArrayOffset=this.centroidVertexArray.length;const t=u.borders,e=this.featuresOnBorder.push(u)-1;for(let n=0;n<4;n++)t[n][0]!==Number.MAX_VALUE&&this.borders[n].push(e)}this.encodeCentroid(u.borders?void 0:u.centroid(),u)}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,n,i,o,r)}sortBorders(){for(let t=0;t<4;t++)this.borders[t].sort((e,n)=>this.featuresOnBorder[e].borders[t][0]-this.featuresOnBorder[n].borders[t][0])}encodeCentroid(t,e,n=!0){let r,i;if(t)if(0!==t.y){const n=e.span()._mult(this.tileToMeter);r=(Math.max(t.x,1)<<3)+Math.min(7,Math.round(n.x/10)),i=(Math.max(t.y,1)<<3)+Math.min(7,Math.round(n.y/10))}else r=Math.ceil(7*(t.x+450)),i=0;else r=0,i=+n;let o=n?this.centroidVertexArray.length:e.vertexArrayOffset;for(const t of e.polyCount){n&&this.centroidVertexArray.resize(this.centroidVertexArray.length+4*t.edges+t.top);for(let e=0;e<t.top;e++)this.centroidVertexArray.emplace(o++,r,i);for(let e=0;e<2*t.edges;e++)this.centroidVertexArray.emplace(o++,0,i),this.centroidVertexArray.emplace(o++,r,i)}}}function Mh(t,e){const n=t.add(e)._unit();return t.x*n.x+t.y*n.y}function Fh(t,e,n,r){const i=e.sub(t)._perp()._unit(),o=n.sub(e)._perp()._unit();return Bh(t,e,n,Mh(i,o),r)}function Bh(t,e,n,r,i){const o=Math.sqrt(1-r*r);return Math.min(t.dist(e)/3,e.dist(n)/3,i*o/r)}function Lh(t,e,n){return t.x<n[0].x&&e.x<n[0].x||t.x>n[1].x&&e.x>n[1].x||t.y<n[0].y&&e.y<n[0].y||t.y>n[1].y&&e.y>n[1].y}function Oh(t,e,n){if(t.x<0||t.x>=Qa||e.x<0||e.x>=Qa||n.x<0||n.x>=Qa)return!1;const r=n.sub(e),i=r.perp(),o=t.sub(e);return(r.x*o.x+r.y*o.y)/Math.sqrt((r.x*r.x+r.y*r.y)*(o.x*o.x+o.y*o.y))>-.866&&i.x*o.x+i.y*o.y<0}function Uh(t,e,n){const r=e?2|t:-3&t;return n?1|r:-2&r}function kh(){const t=Math.PI/32,e=Math.tan(t),n=pl;return n*Math.sqrt(1+2*e*e)-n}function Ph(t,e,n){const r=1<<n.z,i=wl(n.x/r),o=wl((n.x+1)/r),s=El(n.y/r),a=El((n.y+1)/r);return function(t,e,n,r,i=0,o){const s=[];if(!t.length||!n||!r)return s;const a=(t,e)=>{for(const n of t)s.push({polygon:n,bounds:e})},c=Math.ceil(Math.log2(n)),l=Math.ceil(Math.log2(r)),u=c-l,h=[];for(let t=0;t<Math.abs(u);t++)h.push(u>0?0:1);for(let t=0;t<Math.min(c,l);t++)h.push(0),h.push(1);let f=t;if(f=wh(f,e[0].y-i,e[1].y+i,1),f=wh(f,e[0].x-i,e[1].x+i,0),!f.length)return s;const d=[];for(h.length?d.push({polygons:f,bounds:e,depth:0}):a(f,e);d.length;){const t=d.pop(),e=t.depth,n=h[e],r=t.bounds[0],s=t.bounds[1],c=0===n?r.x:r.y,l=0===n?s.x:s.y,u=o?o(n,c,l):.5*(c+l),f=wh(t.polygons,c-i,u+i,n),p=wh(t.polygons,u-i,l+i,n);if(f.length){const t=[r,new _(0===n?u:s.x,1===n?u:s.y)];h.length>e+1?d.push({polygons:f,bounds:t,depth:e+1}):a(f,t)}if(p.length){const t=[new _(0===n?u:r.x,1===n?u:r.y),s];h.length>e+1?d.push({polygons:p,bounds:t,depth:e+1}):a(p,t)}}return s}(t,e,Math.ceil((o-i)/11.25),Math.ceil((s-a)/11.25),1,(t,e,i)=>{if(0===t)return.5*(e+i);{const t=El((n.y+e/Qa)/r);return(bl(.5*(El((n.y+i/Qa)/r)+t))*r-n.y)*Qa}})}Di(Th,"FillExtrusionBucket",{omit:["layers","features"]}),Di(Ih,"PartMetadata");const Dh=new gs({"fill-extrusion-edge-radius":new fs(te["layout_fill-extrusion"]["fill-extrusion-edge-radius"])});var Rh={paint:new gs({"fill-extrusion-opacity":new fs(te["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new ds(te["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new fs(te["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new fs(te["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new ds(te["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new ds(te["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new ds(te["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new fs(te["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"]),"fill-extrusion-ambient-occlusion-intensity":new fs(te["paint_fill-extrusion"]["fill-extrusion-ambient-occlusion-intensity"]),"fill-extrusion-ambient-occlusion-radius":new fs(te["paint_fill-extrusion"]["fill-extrusion-ambient-occlusion-radius"]),"fill-extrusion-rounded-roof":new fs(te["paint_fill-extrusion"]["fill-extrusion-rounded-roof"])}),layout:Dh};function jh(t,e,n){var r=2*Math.PI*6378137/256/Math.pow(2,n);return[t*r-2*Math.PI*6378137/2,e*r-2*Math.PI*6378137/2]}class zh{constructor(t,e,n){this.z=t,this.x=e,this.y=n,this.key=Vh(0,t,t,e,n)}equals(t){return this.z===t.z&&this.x===t.x&&this.y===t.y}url(t,e){const n=function(t,e,n){var r=jh(256*t,256*(e=Math.pow(2,n)-e-1),n),i=jh(256*(t+1),256*(e+1),n);return r[0]+","+r[1]+","+i[0]+","+i[1]}(this.x,this.y,this.z),r=function(t,e,n){let r,i="";for(let o=t;o>0;o--)r=1<<o-1,i+=(e&r?1:0)+(n&r?2:0);return i}(this.z,this.x,this.y);return t[(this.x+this.y)%t.length].replace("{prefix}",(this.x%16).toString(16)+(this.y%16).toString(16)).replace(/{z}/g,String(this.z)).replace(/{x}/g,String(this.x)).replace(/{y}/g,String("tms"===e?Math.pow(2,this.z)-this.y-1:this.y)).replace("{quadkey}",r).replace("{bbox-epsg-3857}",n)}toString(){return`${this.z}/${this.x}/${this.y}`}}class Qh{constructor(t,e){this.wrap=t,this.canonical=e,this.key=Vh(t,e.z,e.z,e.x,e.y)}}class Nh{constructor(t,e,n,r,i){this.overscaledZ=t,this.wrap=e,this.canonical=new zh(n,+r,+i),this.key=0===e&&t===n?this.canonical.key:Vh(e,t,n,r,i)}equals(t){return this.overscaledZ===t.overscaledZ&&this.wrap===t.wrap&&this.canonical.equals(t.canonical)}scaledTo(t){const e=this.canonical.z-t;return t>this.canonical.z?new Nh(t,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new Nh(t,this.wrap,t,this.canonical.x>>e,this.canonical.y>>e)}calculateScaledKey(t,e=!0){if(this.overscaledZ===t&&e)return this.key;if(t>this.canonical.z)return Vh(this.wrap*+e,t,this.canonical.z,this.canonical.x,this.canonical.y);{const n=this.canonical.z-t;return Vh(this.wrap*+e,t,t,this.canonical.x>>n,this.canonical.y>>n)}}isChildOf(t){if(t.wrap!==this.wrap)return!1;const e=this.canonical.z-t.canonical.z;return 0===t.overscaledZ||t.overscaledZ<this.overscaledZ&&t.canonical.x===this.canonical.x>>e&&t.canonical.y===this.canonical.y>>e}children(t){if(this.overscaledZ>=t)return[new Nh(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];const e=this.canonical.z+1,n=2*this.canonical.x,r=2*this.canonical.y;return[new Nh(e,this.wrap,e,n,r),new Nh(e,this.wrap,e,n+1,r),new Nh(e,this.wrap,e,n,r+1),new Nh(e,this.wrap,e,n+1,r+1)]}isLessThan(t){return this.wrap<t.wrap||!(this.wrap>t.wrap)&&(this.overscaledZ<t.overscaledZ||!(this.overscaledZ>t.overscaledZ)&&(this.canonical.x<t.canonical.x||!(this.canonical.x>t.canonical.x)&&this.canonical.y<t.canonical.y))}wrapped(){return new Nh(this.overscaledZ,0,this.canonical.z,this.canonical.x,this.canonical.y)}unwrapTo(t){return new Nh(this.overscaledZ,t,this.canonical.z,this.canonical.x,this.canonical.y)}overscaleFactor(){return Math.pow(2,this.overscaledZ-this.canonical.z)}toUnwrapped(){return new Qh(this.wrap,this.canonical)}toString(){return`${this.overscaledZ}/${this.canonical.x}/${this.canonical.y}`}}function Vh(t,e,n,r,i){const o=1<<Math.min(n,22);let s=o*(i%o)+r%o;return t&&n<22&&(s+=o*o*((t<0?-2*t-1:2*t)%(1<<2*(22-n)))),16*(32*s+n)+(e-n)}Di(zh,"CanonicalTileID"),Di(Nh,"OverscaledTileID",{omit:["projMatrix"]});class Gh extends _{constructor(t,e,n){super(t,e),this.z=n}}function Hh(t,e){return t.x*e.x+t.y*e.y}function Zh(t,e){if(1===t.length){let n=0;const r=e[n++];let i;for(;!i||r.equals(i);)if(i=e[n++],!i)return 1/0;for(;n<e.length;n++){const o=e[n],s=t[0],a=i.sub(r),c=o.sub(r),l=s.sub(r),u=Hh(a,a),h=Hh(a,c),f=Hh(c,c),d=Hh(l,a),p=Hh(l,c),g=u*f-h*h,m=(f*d-h*p)/g,y=(u*p-h*d)/g,_=r.z*(1-m-y)+i.z*m+o.z*y;if(isFinite(_))return _}return 1/0}{let t=1/0;for(const n of e)t=Math.min(t,n.z);return t}}function Wh(t,e,n,r,i,o,s,a){const c=s*i.getElevationAt(t,e,!0,!0),l=0!==o[0],u=l?0===o[1]?s*(o[0]/7-450):s*function(t,e,n){const r=Math.floor(e[0]/8),i=Math.floor(e[1]/8),o=10*(e[0]-8*r),s=10*(e[1]-8*i),a=t.getElevationAt(r,i,!0,!0),c=t.getMeterToDEM(n),l=Math.floor(.5*(o*c-1)),u=Math.floor(.5*(s*c-1)),h=t.tileCoordToPixel(r,i),f=2*l+1,d=2*u+1,p=function(t,e,n,r,i){return[t.getElevationAtPixel(e,n,!0),t.getElevationAtPixel(e+i,n,!0),t.getElevationAtPixel(e,n+i,!0),t.getElevationAtPixel(e+r,n+i,!0)]}(t,h.x-l,h.y-u,f,d),g=Math.abs(p[0]-p[1]),m=Math.abs(p[2]-p[3]),y=Math.abs(p[0]-p[2])+Math.abs(p[1]-p[3]),_=Math.min(.25,.5*c*(g+m)/f),v=Math.min(.25,.5*c*y/d);return a+Math.max(_*o,v*s)}(i,o,a):c;return{base:c+(0===n)?-1:n,top:l?Math.max(u+r,c+n+2):c+r}}const Xh=bs([{name:"a_pos_normal",components:2,type:"Int16"},{name:"a_data",components:4,type:"Uint8"},{name:"a_linesofar",components:1,type:"Float32"}],4),{members:Yh}=Xh,qh=bs([{name:"a_packed",components:4,type:"Float32"}]),{members:Kh}=qh,Jh=xh.types,$h=Math.cos(Math.PI/180*37.5);class tf{constructor(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(t=>t.id),this.index=t.index,this.projection=t.projection,this.hasPattern=!1,this.patternFeatures=[],this.lineClipsArray=[],this.gradients={},this.layers.forEach(t=>{this.gradients[t.id]={}}),this.layoutVertexArray=new Cs,this.layoutVertexArray2=new As,this.indexArray=new Rs,this.programConfigurations=new Fa(t.layers,t.zoom),this.segments=new za,this.maxLineLength=0,this.stateDependentLayerIds=this.layers.filter(t=>t.isStateDependent()).map(t=>t.id)}populate(t,e,n,r){this.hasPattern=$u("line",this.layers,e);const i=this.layers[0].layout.get("line-sort-key"),o=[];for(const{feature:e,id:s,index:a,sourceLayerIndex:c}of t){const t=this.layers[0]._featureFilter.needGeometry,l=Pl(e,t);if(!this.layers[0]._featureFilter.filter(new rs(this.zoom),l,n))continue;const u=i?i.evaluate(l,{},n):void 0,h={id:s,properties:e.properties,type:e.type,sourceLayerIndex:c,index:a,geometry:t?l.geometry:kl(e,n,r),patterns:{},sortKey:u};o.push(h)}i&&o.sort((t,e)=>t.sortKey-e.sortKey);const{lineAtlas:s,featureIndex:a}=e,c=this.addConstantDashes(s);for(const r of o){const{geometry:i,index:o,sourceLayerIndex:l}=r;if(c&&this.addFeatureDashes(r,s),this.hasPattern){const t=th("line",this.layers,r,this.zoom,e);this.patternFeatures.push(t)}else this.addFeature(r,i,o,n,s.positions,e.availableImages);a.insert(t[o].feature,i,o,l,this.index)}}addConstantDashes(t){let e=!1;for(const n of this.layers){const r=n.paint.get("line-dasharray").value,i=n.layout.get("line-cap").value;if("constant"!==r.kind||"constant"!==i.kind)e=!0;else{const e=i.value,n=r.value;if(!n)continue;t.addDash(n,e)}}return e}addFeatureDashes(t,e){const n=this.zoom;for(const r of this.layers){const i=r.paint.get("line-dasharray").value,o=r.layout.get("line-cap").value;if("constant"===i.kind&&"constant"===o.kind)continue;let s,a;if("constant"===i.kind){if(s=i.value,!s)continue}else s=i.evaluate({zoom:n},t);a="constant"===o.kind?o.value:o.evaluate({zoom:n},t),e.addDash(s,a),t.patterns[r.id]=e.getKey(s,a)}}update(t,e,n,r){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,n,r)}addFeatures(t,e,n,r,i){for(const t of this.patternFeatures)this.addFeature(t,t.geometry,t.index,e,n,r)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(t){this.uploaded||(0!==this.layoutVertexArray2.length&&(this.layoutVertexBuffer2=t.createVertexBuffer(this.layoutVertexArray2,Kh)),this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,Yh),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}lineFeatureClips(t){if(t.properties&&t.properties.hasOwnProperty("mapbox_clip_start")&&t.properties.hasOwnProperty("mapbox_clip_end"))return{start:+t.properties.mapbox_clip_start,end:+t.properties.mapbox_clip_end}}addFeature(t,e,n,r,i,o){const s=this.layers[0].layout,a=s.get("line-join").evaluate(t,{}),c=s.get("line-cap").evaluate(t,{}),l=s.get("line-miter-limit"),u=s.get("line-round-limit");this.lineClips=this.lineFeatureClips(t);for(const n of e)this.addLine(n,t,a,c,l,u);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,n,i,o,r)}addLine(t,e,n,r,i,o){if(this.distance=0,this.scaledDistance=0,this.totalDistance=0,this.lineS
vendor: 56,439 bytes, lines 26-27
26oFar=0,this.lineClips){this.lineClipsArray.push(this.lineClips);for(let e=0;e<t.length-1;e++)this.totalDistance+=t[e].dist(t[e+1]);this.updateScaledDistance(),this.maxLineLength=Math.max(this.maxLineLength,this.totalDistance)}const s="Polygon"===Jh[e.type];let a=t.length;for(;a>=2&&t[a-1].equals(t[a-2]);)a--;let c=0;for(;c<a-1&&t[c].equals(t[c+1]);)c++;if(a<(s?3:2))return;"bevel"===n&&(i=1.05);const l=this.overscaling<=16?15*Qa/(512*this.overscaling):0,u=this.segments.prepareSegment(10*a,this.layoutVertexArray,this.indexArray);let h,f,d,p,g;this.e1=this.e2=-1,s&&(h=t[a-2],g=t[c].sub(h)._unit()._perp());for(let e=c;e<a;e++){if(d=e===a-1?s?t[c+1]:void 0:t[e+1],d&&t[e].equals(d))continue;g&&(p=g),h&&(f=h),h=t[e],g=d?d.sub(h)._unit()._perp():p,p=p||g;let m=p.add(g);0===m.x&&0===m.y||m._unit();const y=p.x*g.x+p.y*g.y,_=m.x*g.x+m.y*g.y,v=0!==_?1/_:1/0,b=2*Math.sqrt(2-2*_),x=_<$h&&f&&d,w=p.x*g.y-p.y*g.x>0;if(x&&e>c){const t=h.dist(f);if(t>2*l){const e=h.sub(h.sub(f)._mult(l/t)._round());this.updateDistance(f,e),this.addCurrentVertex(e,p,0,0,u),f=e}}const E=f&&d;let S=E?n:s?"butt":r;if(E&&"round"===S&&(v<o?S="miter":v<=2&&(S="fakeround")),"miter"===S&&v>i&&(S="bevel"),"bevel"===S&&(v>2&&(S="flipbevel"),v<i&&(S="miter")),f&&this.updateDistance(f,h),"miter"===S)m._mult(v),this.addCurrentVertex(h,m,0,0,u);else if("flipbevel"===S){if(v>100)m=g.mult(-1);else{const t=v*p.add(g).mag()/p.sub(g).mag();m._perp()._mult(t*(w?-1:1))}this.addCurrentVertex(h,m,0,0,u),this.addCurrentVertex(h,m.mult(-1),0,0,u)}else if("bevel"===S||"fakeround"===S){const t=-Math.sqrt(v*v-1),e=w?t:0,n=w?0:t;if(f&&this.addCurrentVertex(h,p,e,n,u),"fakeround"===S){const t=Math.round(180*b/Math.PI/20);for(let e=1;e<t;e++){let n=e/t;if(.5!==n){const t=n-.5;n+=n*t*(n-1)*((1.0904+y*(y*(3.55645-1.43519*y)-3.2452))*t*t+(.848013+y*(.215638*y-1.06021)))}const r=g.sub(p)._mult(n)._add(p)._unit()._mult(w?-1:1);this.addHalfVertex(h,r.x,r.y,!1,w,0,u)}}d&&this.addCurrentVertex(h,g,-e,-n,u)}else if("butt"===S)this.addCurrentVertex(h,m,0,0,u);else if("square"===S){const t=f?1:-1;f||this.addCurrentVertex(h,m,t,t,u),this.addCurrentVertex(h,m,0,0,u),f&&this.addCurrentVertex(h,m,t,t,u)}else"round"===S&&(f&&(this.addCurrentVertex(h,p,0,0,u),this.addCurrentVertex(h,p,1,1,u,!0)),d&&(this.addCurrentVertex(h,g,-1,-1,u,!0),this.addCurrentVertex(h,g,0,0,u)));if(x&&e<a-1){const t=h.dist(d);if(t>2*l){const e=h.add(d.sub(h)._mult(l/t)._round());this.updateDistance(h,e),this.addCurrentVertex(e,g,0,0,u),h=e}}}}addCurrentVertex(t,e,n,r,i,o=!1){const s=e.y*r-e.x,a=-e.y-e.x*r;this.addHalfVertex(t,e.x+e.y*n,e.y-e.x*n,o,!1,n,i),this.addHalfVertex(t,s,a,o,!0,-r,i)}addHalfVertex({x:t,y:e},n,r,i,o,s,a){this.layoutVertexArray.emplaceBack((t<<1)+(i?1:0),(e<<1)+(o?1:0),Math.round(63*n)+128,Math.round(63*r)+128,1+(0===s?0:s<0?-1:1),0,this.lineSoFar),this.lineClips&&this.layoutVertexArray2.emplaceBack(this.scaledDistance,this.lineClipsArray.length,this.lineClips.start,this.lineClips.end);const c=a.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,c),a.primitiveLength++),o?this.e2=c:this.e1=c}updateScaledDistance(){if(this.lineClips){const t=this.totalDistance/(this.lineClips.end-this.lineClips.start);this.scaledDistance=this.distance/this.totalDistance,this.lineSoFar=t*this.lineClips.start+this.distance}else this.lineSoFar=this.distance}updateDistance(t,e){this.distance+=t.dist(e),this.updateScaledDistance()}}Di(tf,"LineBucket",{omit:["layers","patternFeatures"]});const ef=new gs({"line-cap":new ds(te.layout_line["line-cap"]),"line-join":new ds(te.layout_line["line-join"]),"line-miter-limit":new fs(te.layout_line["line-miter-limit"]),"line-round-limit":new fs(te.layout_line["line-round-limit"]),"line-sort-key":new ds(te.layout_line["line-sort-key"])});var nf={paint:new gs({"line-opacity":new ds(te.paint_line["line-opacity"]),"line-color":new ds(te.paint_line["line-color"]),"line-translate":new fs(te.paint_line["line-translate"]),"line-translate-anchor":new fs(te.paint_line["line-translate-anchor"]),"line-width":new ds(te.paint_line["line-width"]),"line-gap-width":new ds(te.paint_line["line-gap-width"]),"line-offset":new ds(te.paint_line["line-offset"]),"line-blur":new ds(te.paint_line["line-blur"]),"line-dasharray":new ds(te.paint_line["line-dasharray"]),"line-pattern":new ds(te.paint_line["line-pattern"]),"line-gradient":new ps(te.paint_line["line-gradient"]),"line-trim-offset":new fs(te.paint_line["line-trim-offset"])}),layout:ef};const rf=new class extends ds{possiblyEvaluate(t,e){return e=new rs(Math.floor(e.zoom),{now:e.now,fadeDuration:e.fadeDuration,transition:e.transition}),super.possiblyEvaluate(t,e)}evaluate(t,e,n,r){return e=L({},e,{zoom:Math.floor(e.zoom)}),super.evaluate(t,e,n,r)}}(nf.paint.properties["line-width"].specification);function of(t,e){return e>0?e+2*t:t}rf.useIntegerZoom=!0;const sf=bs([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_tex_size",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),af=bs([{name:"a_globe_anchor",components:3,type:"Int16"},{name:"a_globe_normal",components:3,type:"Float32"}],4),cf=bs([{name:"a_projected_pos",components:4,type:"Float32"}],4);bs([{name:"a_fade_opacity",components:1,type:"Uint32"}],4);const lf=bs([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"}]),uf=bs([{name:"a_size_scale",components:1,type:"Float32"},{name:"a_padding",components:2,type:"Float32"}]);bs([{type:"Int16",name:"projectedAnchorX"},{type:"Int16",name:"projectedAnchorY"},{type:"Int16",name:"projectedAnchorZ"},{type:"Int16",name:"tileAnchorX"},{type:"Int16",name:"tileAnchorY"},{type:"Float32",name:"x1"},{type:"Float32",name:"y1"},{type:"Float32",name:"x2"},{type:"Float32",name:"y2"},{type:"Int16",name:"padding"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]);const hf=bs([{name:"a_pos",components:3,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4),ff=bs([{name:"a_pos_2f",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);bs([{name:"triangle",components:3,type:"Uint16"}]),bs([{type:"Int16",name:"projectedAnchorX"},{type:"Int16",name:"projectedAnchorY"},{type:"Int16",name:"projectedAnchorZ"},{type:"Float32",name:"tileAnchorX"},{type:"Float32",name:"tileAnchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"},{type:"Uint8",name:"flipState"}]),bs([{type:"Int16",name:"projectedAnchorX"},{type:"Int16",name:"projectedAnchorY"},{type:"Int16",name:"projectedAnchorZ"},{type:"Float32",name:"tileAnchorX"},{type:"Float32",name:"tileAnchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",components:2,name:"textOffset"},{type:"Float32",name:"collisionCircleDiameter"}]),bs([{type:"Float32",name:"offsetX"}]),bs([{type:"Int16",name:"x"},{type:"Int16",name:"y"}]);const df=128;function pf(t,e){const{expression:n}=e;if("constant"===n.kind)return{kind:"constant",layoutSize:n.evaluate(new rs(t+1))};if("source"===n.kind)return{kind:"source"};{const{zoomStops:e,interpolationType:r}=n;let i=0;for(;i<e.length&&e[i]<=t;)i++;i=Math.max(0,i-1);let o=i;for(;o<e.length&&e[o]<t+1;)o++;o=Math.min(e.length-1,o);const s=e[i],a=e[o];return"composite"===n.kind?{kind:"composite",minZoom:s,maxZoom:a,interpolationType:r}:{kind:"camera",minZoom:s,maxZoom:a,minSize:n.evaluate(new rs(s)),maxSize:n.evaluate(new rs(a)),interpolationType:r}}}function gf(t,{uSize:e,uSizeT:n},{lowerSize:r,upperSize:i}){return"source"===t.kind?r/df:"composite"===t.kind?Bn(r/df,i/df,n):e}function mf(t,e){let n=0,r=0;if("constant"===t.kind)r=t.layoutSize;else if("source"!==t.kind){const{interpolationType:i,minZoom:o,maxZoom:s}=t,a=i?I(Yn.interpolationFactor(i,e,o,s),0,1):0;"camera"===t.kind?r=Bn(t.minSize,t.maxSize,a):n=a}return{uSizeT:n,uSize:r}}var yf=Object.freeze({__proto__:null,SIZE_PACK_FACTOR:df,evaluateSizeForFeature:gf,evaluateSizeForZoom:mf,getSizeData:pf});function _f(t,e,n){return t.sections.forEach(t=>{t.text=function(t,e,n){const r=e.layout.get("text-transform").evaluate(n,{});return"uppercase"===r?t=t.toLocaleUpperCase():"lowercase"===r&&(t=t.toLocaleLowerCase()),ns.applyArabicShaping&&(t=ns.applyArabicShaping(t)),t}(t.text,e,n)}),t}const vf={"!":"ï¸","#":"ï¼",$:"ï¼","%":"ï¼ ","&":"ï¼","(":"︵",")":"︶","*":"ï¼","+":"ï¼",",":"ï¸","-":"︲",".":"ã»","/":"ï¼",":":"ï¸",";":"ï¸","<":"︿","=":"ï¼",">":"ï¹","?":"ï¸","@":"ï¼ ","[":"ï¹","\\":"ï¼¼","]":"ï¹","^":"ï¼¾",_:"︳","`":"ï½","{":"︷","|":"â","}":"︸","~":"ï½","¢":"ï¿ ","£":"ï¿¡","Â¥":"ï¿¥","¦":"¦","¬":"ï¿¢","¯":"ï¿£","â":"︲","â":"︱","â":"ï¹","â":"ï¹","â":"ï¹","â":"ï¹","â¦":"ï¸","â§":"ã»","â©":"₩","ã":"ï¸","ã":"ï¸","ã":"︿","ã":"ï¹","ã":"︽","ã":"︾","ã":"ï¹","ã":"ï¹","ã":"ï¹","ã":"ï¹","ã":"︻","ã":"︼","ã":"︹","ã":"︺","ã":"ï¸","ã":"ï¸","ï¼":"ï¸","ï¼":"︵","ï¼":"︶","ï¼":"ï¸","ï¼":"︲","ï¼":"ã»","ï¼":"ï¸","ï¼":"ï¸","ï¼":"︿","ï¼":"ï¹","ï¼":"ï¸","ï¼»":"ï¹","ï¼½":"ï¹","_":"︳","ï½":"︷","ï½":"â","ï½":"︸","ï½":"︵","ï½ ":"︶","。":"ï¸","ï½¢":"ï¹","ï½£":"ï¹","â":"â","â":"â"};function bf(t){return"︶"===t||"ï¹"===t||"︸"===t||"ï¹"===t||"ï¹"===t||"︾"===t||"︼"===t||"︺"===t||"ï¸"===t||"ï¹"===t||"ï¸"===t||"ï¸"===t||"ï¸"===t||"ï½"===t||"ï¿£"===t||"ï¸"===t||"ï¸"===t}function xf(t){return"︵"===t||"ï¹"===t||"︷"===t||"ï¹"===t||"ï¹"===t||"︽"===t||"︻"===t||"︹"===t||"ï¸"===t||"︿"===t}var wf=Cf,Ef=function(t,e,n,r,i){var o,s,a=8*i-r-1,c=(1<<a)-1,l=c>>1,u=-7,h=n?i-1:0,f=n?-1:1,d=t[e+h];for(h+=f,o=d&(1<<-u)-1,d>>=-u,u+=a;u>0;o=256*o+t[e+h],h+=f,u-=8);for(s=o&(1<<-u)-1,o>>=-u,u+=r;u>0;s=256*s+t[e+h],h+=f,u-=8);if(0===o)o=1-l;else{if(o===c)return s?NaN:1/0*(d?-1:1);s+=Math.pow(2,r),o-=l}return(d?-1:1)*s*Math.pow(2,o-r)},Sf=function(t,e,n,r,i,o){var s,a,c,l=8*o-i-1,u=(1<<l)-1,h=u>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,p=r?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=u):(s=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-s))<1&&(s--,c*=2),(e+=s+h>=1?f/c:f*Math.pow(2,1-h))*c>=2&&(s++,c/=2),s+h>=u?(a=0,s=u):s+h>=1?(a=(e*c-1)*Math.pow(2,i),s+=h):(a=e*Math.pow(2,h-1)*Math.pow(2,i),s=0));i>=8;t[n+d]=255&a,d+=p,a/=256,i-=8);for(s=s<<i|a,l+=i;l>0;t[n+d]=255&s,d+=p,s/=256,l-=8);t[n+d-p]|=128*g}; 27/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */function Cf(t){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(t)?t:new Uint8Array(t||0),this.pos=0,this.type=0,this.length=this.buf.length}Cf.Varint=0,Cf.Fixed64=1,Cf.Bytes=2,Cf.Fixed32=5;var Af=4294967296,If=1/Af,Tf="undefined"==typeof TextDecoder?null:new TextDecoder("utf8");function Mf(t){return t.type===Cf.Bytes?t.readVarint()+t.pos:t.pos+1}function Ff(t,e,n){return n?4294967296*e+(t>>>0):4294967296*(e>>>0)+(t>>>0)}function Bf(t,e,n){var r=e<=16383?1:e<=2097151?2:e<=268435455?3:Math.floor(Math.log(e)/(7*Math.LN2));n.realloc(r);for(var i=n.pos-1;i>=t;i--)n.buf[i+r]=n.buf[i]}function Lf(t,e){for(var n=0;n<t.length;n++)e.writeVarint(t[n])}function Of(t,e){for(var n=0;n<t.length;n++)e.writeSVarint(t[n])}function Uf(t,e){for(var n=0;n<t.length;n++)e.writeFloat(t[n])}function kf(t,e){for(var n=0;n<t.length;n++)e.writeDouble(t[n])}function Pf(t,e){for(var n=0;n<t.length;n++)e.writeBoolean(t[n])}function Df(t,e){for(var n=0;n<t.length;n++)e.writeFixed32(t[n])}function Rf(t,e){for(var n=0;n<t.length;n++)e.writeSFixed32(t[n])}function jf(t,e){for(var n=0;n<t.length;n++)e.writeFixed64(t[n])}function zf(t,e){for(var n=0;n<t.length;n++)e.writeSFixed64(t[n])}function Qf(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16)+16777216*t[e+3]}function Nf(t,e,n){t[n]=e,t[n+1]=e>>>8,t[n+2]=e>>>16,t[n+3]=e>>>24}function Vf(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16)+(t[e+3]<<24)}Cf.prototype={destroy:function(){this.buf=null},readFields:function(t,e,n){for(n=n||this.length;this.pos<n;){var r=this.readVarint(),i=r>>3,o=this.pos;this.type=7&r,t(i,e,this),this.pos===o&&this.skip(r)}return e},readMessage:function(t,e){return this.readFields(t,e,this.readVarint()+this.pos)},readFixed32:function(){var t=Qf(this.buf,this.pos);return this.pos+=4,t},readSFixed32:function(){var t=Vf(this.buf,this.pos);return this.pos+=4,t},readFixed64:function(){var t=Qf(this.buf,this.pos)+Qf(this.buf,this.pos+4)*Af;return this.pos+=8,t},readSFixed64:function(){var t=Qf(this.buf,this.pos)+Vf(this.buf,this.pos+4)*Af;return this.pos+=8,t},readFloat:function(){var t=Ef(this.buf,this.pos,!0,23,4);return this.pos+=4,t},readDouble:function(){var t=Ef(this.buf,this.pos,!0,52,8);return this.pos+=8,t},readVarint:function(t){var e,n,r=this.buf;return e=127&(n=r[this.pos++]),n<128?e:(e|=(127&(n=r[this.pos++]))<<7,n<128?e:(e|=(127&(n=r[this.pos++]))<<14,n<128?e:(e|=(127&(n=r[this.pos++]))<<21,n<128?e:function(t,e,n){var r,i,o=n.buf;if(r=(112&(i=o[n.pos++]))>>4,i<128)return Ff(t,r,e);if(r|=(127&(i=o[n.pos++]))<<3,i<128)return Ff(t,r,e);if(r|=(127&(i=o[n.pos++]))<<10,i<128)return Ff(t,r,e);if(r|=(127&(i=o[n.pos++]))<<17,i<128)return Ff(t,r,e);if(r|=(127&(i=o[n.pos++]))<<24,i<128)return Ff(t,r,e);if(r|=(1&(i=o[n.pos++]))<<31,i<128)return Ff(t,r,e);throw new Error("Expected varint not more than 10 bytes")}(e|=(15&(n=r[this.pos]))<<28,t,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var t=this.readVarint();return t%2==1?(t+1)/-2:t/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var t=this.readVarint()+this.pos,e=this.pos;return this.pos=t,t-e>=12&&Tf?function(t,e,n){return Tf.decode(t.subarray(e,n))}(this.buf,e,t):function(t,e,n){for(var r="",i=e;i<n;){var o,s,a,c=t[i],l=null,u=c>239?4:c>223?3:c>191?2:1;if(i+u>n)break;1===u?c<128&&(l=c):2===u?128==(192&(o=t[i+1]))&&(l=(31&c)<<6|63&o)<=127&&(l=null):3===u?(s=t[i+2],128==(192&(o=t[i+1]))&&128==(192&s)&&((l=(15&c)<<12|(63&o)<<6|63&s)<=2047||l>=55296&&l<=57343)&&(l=null)):4===u&&(s=t[i+2],a=t[i+3],128==(192&(o=t[i+1]))&&128==(192&s)&&128==(192&a)&&((l=(15&c)<<18|(63&o)<<12|(63&s)<<6|63&a)<=65535||l>=1114112)&&(l=null)),null===l?(l=65533,u=1):l>65535&&(l-=65536,r+=String.fromCharCode(l>>>10&1023|55296),l=56320|1023&l),r+=String.fromCharCode(l),i+=u}return r}(this.buf,e,t)},readBytes:function(){var t=this.readVarint()+this.pos,e=this.buf.subarray(this.pos,t);return this.pos=t,e},readPackedVarint:function(t,e){if(this.type!==Cf.Bytes)return t.push(this.readVarint(e));var n=Mf(this);for(t=t||[];this.pos<n;)t.push(this.readVarint(e));return t},readPackedSVarint:function(t){if(this.type!==Cf.Bytes)return t.push(this.readSVarint());var e=Mf(this);for(t=t||[];this.pos<e;)t.push(this.readSVarint());return t},readPackedBoolean:function(t){if(this.type!==Cf.Bytes)return t.push(this.readBoolean());var e=Mf(this);for(t=t||[];this.pos<e;)t.push(this.readBoolean());return t},readPackedFloat:function(t){if(this.type!==Cf.Bytes)return t.push(this.readFloat());var e=Mf(this);for(t=t||[];this.pos<e;)t.push(this.readFloat());return t},readPackedDouble:function(t){if(this.type!==Cf.Bytes)return t.push(this.readDouble());var e=Mf(this);for(t=t||[];this.pos<e;)t.push(this.readDouble());return t},readPackedFixed32:function(t){if(this.type!==Cf.Bytes)return t.push(this.readFixed32());var e=Mf(this);for(t=t||[];this.pos<e;)t.push(this.readFixed32());return t},readPackedSFixed32:function(t){if(this.type!==Cf.Bytes)return t.push(this.readSFixed32());var e=Mf(this);for(t=t||[];this.pos<e;)t.push(this.readSFixed32());return t},readPackedFixed64:function(t){if(this.type!==Cf.Bytes)return t.push(this.readFixed64());var e=Mf(this);for(t=t||[];this.pos<e;)t.push(this.readFixed64());return t},readPackedSFixed64:function(t){if(this.type!==Cf.Bytes)return t.push(this.readSFixed64());var e=Mf(this);for(t=t||[];this.pos<e;)t.push(this.readSFixed64());return t},skip:function(t){var e=7&t;if(e===Cf.Varint)for(;this.buf[this.pos++]>127;);else if(e===Cf.Bytes)this.pos=this.readVarint()+this.pos;else if(e===Cf.Fixed32)this.pos+=4;else{if(e!==Cf.Fixed64)throw new Error("Unimplemented type: "+e);this.pos+=8}},writeTag:function(t,e){this.writeVarint(t<<3|e)},realloc:function(t){for(var e=this.length||16;e<this.pos+t;)e*=2;if(e!==this.length){var n=new Uint8Array(e);n.set(this.buf),this.buf=n,this.length=e}},finish:function(){return this.length=this.pos,this.pos=0,this.buf.subarray(0,this.length)},writeFixed32:function(t){this.realloc(4),Nf(this.buf,t,this.pos),this.pos+=4},writeSFixed32:function(t){this.realloc(4),Nf(this.buf,t,this.pos),this.pos+=4},writeFixed64:function(t){this.realloc(8),Nf(this.buf,-1&t,this.pos),Nf(this.buf,Math.floor(t*If),this.pos+4),this.pos+=8},writeSFixed64:function(t){this.realloc(8),Nf(this.buf,-1&t,this.pos),Nf(this.buf,Math.floor(t*If),this.pos+4),this.pos+=8},writeVarint:function(t){(t=+t||0)>268435455||t<0?function(t,e){var n,r;if(t>=0?(n=t%4294967296|0,r=t/4294967296|0):(r=~(-t/4294967296),4294967295^(n=~(-t%4294967296))?n=n+1|0:(n=0,r=r+1|0)),t>=0x10000000000000000||t<-0x10000000000000000)throw new Error("Given varint doesn't fit into 10 bytes");e.realloc(10),function(t,e,n){n.buf[n.pos++]=127&t|128,t>>>=7,n.buf[n.pos++]=127&t|128,t>>>=7,n.buf[n.pos++]=127&t|128,t>>>=7,n.buf[n.pos++]=127&t|128,n.buf[n.pos]=127&(t>>>=7)}(n,0,e),function(t,e){var n=(7&t)<<4;e.buf[e.pos++]|=n|((t>>>=3)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t)))))}(r,e)}(t,this):(this.realloc(4),this.buf[this.pos++]=127&t|(t>127?128:0),t<=127||(this.buf[this.pos++]=127&(t>>>=7)|(t>127?128:0),t<=127||(this.buf[this.pos++]=127&(t>>>=7)|(t>127?128:0),t<=127||(this.buf[this.pos++]=t>>>7&127))))},writeSVarint:function(t){this.writeVarint(t<0?2*-t-1:2*t)},writeBoolean:function(t){this.writeVarint(Boolean(t))},writeString:function(t){t=String(t),this.realloc(4*t.length),this.pos++;var e=this.pos;this.pos=function(t,e,n){for(var r,i,o=0;o<e.length;o++){if((r=e.charCodeAt(o))>55295&&r<57344){if(!i){r>56319||o+1===e.length?(t[n++]=239,t[n++]=191,t[n++]=189):i=r;continue}if(r<56320){t[n++]=239,t[n++]=191,t[n++]=189,i=r;continue}r=i-55296<<10|r-56320|65536,i=null}else i&&(t[n++]=239,t[n++]=191,t[n++]=189,i=null);r<128?t[n++]=r:(r<2048?t[n++]=r>>6|192:(r<65536?t[n++]=r>>12|224:(t[n++]=r>>18|240,t[n++]=r>>12&63|128),t[n++]=r>>6&63|128),t[n++]=63&r|128)}return n}(this.buf,t,this.pos);var n=this.pos-e;n>=128&&Bf(e,n,this),this.pos=e-1,this.writeVarint(n),this.pos+=n},writeFloat:function(t){this.realloc(4),Sf(this.buf,t,this.pos,!0,23,4),this.pos+=4},writeDouble:function(t){this.realloc(8),Sf(this.buf,t,this.pos,!0,52,8),this.pos+=8},writeBytes:function(t){var e=t.length;this.writeVarint(e),this.realloc(e);for(var n=0;n<e;n++)this.buf[this.pos++]=t[n]},writeRawMessage:function(t,e){this.pos++;var n=this.pos;t(e,this);var r=this.pos-n;r>=128&&Bf(n,r,this),this.pos=n-1,this.writeVarint(r),this.pos+=r},writeMessage:function(t,e,n){this.writeTag(t,Cf.Bytes),this.writeRawMessage(e,n)},writePackedVarint:function(t,e){e.length&&this.writeMessage(t,Lf,e)},writePackedSVarint:function(t,e){e.length&&this.writeMessage(t,Of,e)},writePackedBoolean:function(t,e){e.length&&this.writeMessage(t,Pf,e)},writePackedFloat:function(t,e){e.length&&this.writeMessage(t,Uf,e)},writePackedDouble:function(t,e){e.length&&this.writeMessage(t,kf,e)},writePackedFixed32:function(t,e){e.length&&this.writeMessage(t,Df,e)},writePackedSFixed32:function(t,e){e.length&&this.writeMessage(t,Rf,e)},writePackedFixed64:function(t,e){e.length&&this.writeMessage(t,jf,e)},writePackedSFixed64:function(t,e){e.length&&this.writeMessage(t,zf,e)},writeBytesField:function(t,e){this.writeTag(t,Cf.Bytes),this.writeBytes(e)},writeFixed32Field:function(t,e){this.writeTag(t,Cf.Fixed32),this.writeFixed32(e)},writeSFixed32Field:function(t,e){this.writeTag(t,Cf.Fixed32),this.writeSFixed32(e)},writeFixed64Field:function(t,e){this.writeTag(t,Cf.Fixed64),this.writeFixed64(e)},writeSFixed64Field:function(t,e){this.writeTag(t,Cf.Fixed64),this.writeSFixed64(e)},writeVarintField:function(t,e){this.writeTag(t,Cf.Varint),this.writeVarint(e)},writeSVarintField:function(t,e){this.writeTag(t,Cf.Varint),this.writeSVarint(e)},writeStringField:function(t,e){this.writeTag(t,Cf.Bytes),this.writeString(e)},writeFloatField:function(t,e){this.writeTag(t,Cf.Fixed32),this.writeFloat(e)},writeDoubleField:function(t,e){this.writeTag(t,Cf.Fixed64),this.writeDouble(e)},writeBooleanField:function(t,e){this.writeVarintField(t,Boolean(e))}};var Gf=f(wf);function Hf(t,e,n){e.glyphs=[],1===t&&n.readMessage(Zf,e)}function Zf(t,e,n){if(3===t){const{id:t,bitmap:r,width:i,height:o,left:s,top:a,advance:c}=n.readMessage(Wf,{});e.glyphs.push({id:t,bitmap:new du({width:i+6,height:o+6},r),metrics:{width:i,height:o,left:s,top:a,advance:c}})}else 4===t?e.ascender=n.readSVarint():5===t&&(e.descender=n.readSVarint())}function Wf(t,e,n){1===t?e.id=n.readVarint():2===t?e.bitmap=n.readBytes():3===t?e.width=n.readVarint():4===t?e.height=n.readVarint():5===t?e.left=n.readSVarint():6===t?e.top=n.readSVarint():7===t&&(e.advance=n.readVarint())}function Xf(t){let e=0,n=0;for(const r of t)e+=r.w*r.h,n=Math.max(n,r.w);t.sort((t,e)=>e.h-t.h);const r=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(e/.95)),n),h:1/0}];let i=0,o=0;for(const e of t)for(let t=r.length-1;t>=0;t--){const n=r[t];if(!(e.w>n.w||e.h>n.h)){if(e.x=n.x,e.y=n.y,o=Math.max(o,e.y+e.h),i=Math.max(i,e.x+e.w),e.w===n.w&&e.h===n.h){const e=r.pop();t<r.length&&(r[t]=e)}else e.h===n.h?(n.x+=e.w,n.w-=e.w):e.w===n.w?(n.y+=e.h,n.h-=e.h):(r.push({x:n.x+e.w,y:n.y,w:n.w-e.w,h:e.h}),n.y+=e.h,n.h-=e.h);break}}return{w:i,h:o,fill:e/(i*o)||0}}class Yf{constructor(t,{pixelRatio:e,version:n,stretchX:r,stretchY:i,content:o}){this.paddedRect=t,this.pixelRatio=e,this.stretchX=r,this.stretchY=i,this.content=o,this.version=n}get tl(){return[this.paddedRect.x+1,this.paddedRect.y+1]}get br(){return[this.paddedRect.x+this.paddedRect.w-1,this.paddedRect.y+this.paddedRect.h-1]}get displaySize(){return[(this.paddedRect.w-2)/this.pixelRatio,(this.paddedRect.h-2)/this.pixelRatio]}}class qf{constructor(t,e){const n={},r={};this.haveRenderCallbacks=[];const i=[];this.addImages(t,n,i),this.addImages(e,r,i);const{w:o,h:s}=Xf(i),a=new pu({width:o||1,height:s||1});for(const e in t){const r=t[e],i=n[e].paddedRect;pu.copy(r.data,a,{x:0,y:0},{x:i.x+1,y:i.y+1},r.data)}for(const t in e){const n=e[t],i=r[t].paddedRect,o=i.x+1,s=i.y+1,c=n.data.width,l=n.data.height;pu.copy(n.data,a,{x:0,y:0},{x:o,y:s},n.data),pu.copy(n.data,a,{x:0,y:l-1},{x:o,y:s-1},{width:c,height:1}),pu.copy(n.data,a,{x:0,y:0},{x:o,y:s+l},{width:c,height:1}),pu.copy(n.data,a,{x:c-1,y:0},{x:o-1,y:s},{width:1,height:l}),pu.copy(n.data,a,{x:0,y:0},{x:o+c,y:s},{width:1,height:l})}this.image=a,this.iconPositions=n,this.patternPositions=r}addImages(t,e,n){for(const r in t){const i=t[r],o={x:0,y:0,w:i.data.width+2,h:i.data.height+2};n.push(o),e[r]=new Yf(o,i),i.hasRenderCallback&&this.haveRenderCallbacks.push(r)}}patchUpdatedImages(t,e){this.haveRenderCallbacks=this.haveRenderCallbacks.filter(e=>t.hasImage(e)),t.dispatchRenderCallbacks(this.haveRenderCallbacks);for(const n in t.updatedImages)this.patchUpdatedImage(this.iconPositions[n],t.getImage(n),e),this.patchUpdatedImage(this.patternPositions[n],t.getImage(n),e)}patchUpdatedImage(t,e,n){if(!t||!e)return;if(t.version===e.version)return;t.version=e.version;const[r,i]=t.tl;n.update(e.data,void 0,{x:r,y:i})}}Di(Yf,"ImagePosition"),Di(qf,"ImageAtlas");const Kf={horizontal:1,vertical:2,horizontalOnly:3};class Jf{constructor(){this.scale=1,this.fontStack="",this.imageName=null}static forText(t,e){const n=new Jf;return n.scale=t||1,n.fontStack=e,n}static forImage(t){const e=new Jf;return e.imageName=t,e}}class $f{constructor(){this.text="",this.sectionIndex=[],this.sections=[],this.imageSectionID=null}static fromFeature(t,e){const n=new $f;for(let r=0;r<t.sections.length;r++){const i=t.sections[r];i.image?n.addImageSection(i):n.addTextSection(i,e)}return n}length(){return this.text.length}getSection(t){return this.sections[this.sectionIndex[t]]}getSections(){return this.sections}getSectionIndex(t){return this.sectionIndex[t]}getCharCode(t){return this.text.charCodeAt(t)}verticalizePunctuation(t){this.text=function(t,e){let n="";for(let r=0;r<t.length;r++){const i=t.charCodeAt(r+1)||null,o=t.charCodeAt(r-1)||null;n+=!e&&(i&&Qo(i)&&!vf[t[r+1]]||o&&Qo(o)&&!vf[t[r-1]])||!vf[t[r]]?t[r]:vf[t[r]]}return n}(this.text,t)}trim(){let t=0;for(let e=0;e<this.text.length&&ed[this.text.charCodeAt(e)];e++)t++;let e=this.text.length;for(let n=this.text.length-1;n>=0&&n>=t&&ed[this.text.charCodeAt(n)];n--)e--;this.text=this.text.substring(t,e),this.sectionIndex=this.sectionIndex.slice(t,e)}substring(t,e){const n=new $f;return n.text=this.text.substring(t,e),n.sectionIndex=this.sectionIndex.slice(t,e),n.sections=this.sections,n}toString(){return this.text}getMaxScale(){return this.sectionIndex.reduce((t,e)=>Math.max(t,this.sections[e].scale),0)}addTextSection(t,e){this.text+=t.text,this.sections.push(Jf.forText(t.scale,t.fontStack||e));const n=this.sections.length-1;for(let e=0;e<t.text.length;++e)this.sectionIndex.push(n)}addImageSection(t){const e=t.image?t.image.name:"";if(0===e.length)return void G("Can't add FormattedSection with an empty image.");const n=this.getNextImageSectionCharCode();n?(this.text+=String.fromCharCode(n),this.sections.push(Jf.forImage(e)),this.sectionIndex.push(this.sections.length-1)):G("Reached maximum number of images 6401")}getNextImageSectionCharCode(){return this.imageSectionID?this.imageSectionID>=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)}}function td(t,e,n,r,i,o,s,a,c,l,u,h,f,d,p){const g=$f.fromFeature(t,i);h===Kf.vertical&&g.verticalizePunctuation(f);let m=[];const y=function(t,e,n,r,i,o){if(!t)return[];const s=[],a=function(t,e,n,r,i,o){let s=0;for(let n=0;n<t.length();n++){const a=t.getSection(n);s+=rd(t.getCharCode(n),a,r,i,e,o)}return s/Math.max(1,Math.ceil(s/n))}(t,e,n,r,i,o),c=t.text.indexOf("â")>=0;let l=0;for(let n=0;n<t.length();n++){const h=t.getSection(n),f=t.getCharCode(n);if(ed[f]||(l+=rd(f,h,r,i,e,o)),n<t.length()-1){const e=!((u=f)<11904||!(mo(u)||fo(u)||Oo(u)||Fo(u)||bo(u)||so(u)||yo(u)||lo(u)||xo(u)||Eo(u)||vo(u)||Po(u)||uo(u)||co(u)||ao(u)||_o(u)||ho(u)||Lo(u)||Co(u)||So(u)));(nd[f]||e||h.imageName)&&s.push(sd(n+1,l,a,s,od(f,t.getCharCode(n+1),e&&c),!1))}}var u;return function t(e){return e?t(e.priorBreak).concat(e.index):[]}(sd(t.length(),l,a,s,0,!0))}(g,l,o,e,r,d),{processBidirectionalText:_,processStyledBidirectionalText:v}=ns;if(_&&1===g.sections.length){const t=_(g.toString(),y);for(const e of t){const t=new $f;t.text=e,t.sections=g.sections;for(let n=0;n<e.length;n++)t.sectionIndex.push(0);m.push(t)}}else if(v){const t=v(g.text,g.sectionIndex,y);for(const e of t){const t=new $f;t.text=e[0],t.sectionIndex=e[1],t.sections=g.sections,m.push(t)}}else m=function(t,e){const n=[],r=t.text;let i=0;for(const r of e)n.push(t.substring(i,r)),i=r;return i<r.length&&n.push(t.substring(i,r.length)),n}(g,y);const b=[],x={positionedLines:b,text:g.toString(),top:u[1],bottom:u[1],left:u[0],right:u[0],writingMode:h,iconsInText:!1,verticalizable:!1,hasBaseline:!1};return function(t,e,n,r,i,o,s,a,c,l,u,h){let f=0,d=0,p=0;const g="right"===a?1:"left"===a?0:.5;let m=!1;for(const t of i){const n=t.getSections();for(const t of n){if(t.imageName)continue;const n=e[t.fontStack];if(n&&(m=void 0!==n.ascender&&void 0!==n.descender,!m))break}if(!m)break}let y=0;for(const s of i){s.trim();const i=s.getMaxScale(),a=24*(i-1),v={positionedGlyphs:[],lineOffset:0};t.positionedLines[y]=v;const b=v.positionedGlyphs;let x=0;if(!s.length()){d+=o,++y;continue}let w=0,E=0;for(let o=0;o<s.length();o++){const a=s.getSection(o),p=s.getSectionIndex(o),g=s.getCharCode(o);let y=a.scale,v=null,S=null,C=null,A=24,I=0;const T=!(c===Kf.horizontal||!u&&!zo(g)||u&&(ed[g]||(_=g,Vi(_)||Gi(_)||Hi(_)||Bo(_)||ko(_))));if(a.imageName){const e=r[a.imageName];if(!e)continue;C=a.imageName,t.iconsInText=t.iconsInText||!0,S=e.paddedRect;const n=e.displaySize;y=24*y/h,v={width:n[0],height:n[1],left:1,top:-3,advance:T?n[1]:n[0],localGlyph:!1},I=m?-v.height*y:24*i-17-n[1]*y,A=v.advance;const o=(T?n[0]:n[1])*y-24*i;o>0&&o>x&&(x=o)}else{const t=n[a.fontStack];if(!t)continue;t[g]&&(S=t[g]);const r=e[a.fontStack];if(!r)continue;const o=r.glyphs[g];if(!o)continue;if(v=o.metrics,A=8203!==g?24:0,m){const t=void 0!==r.ascender?Math.abs(r.ascender):0,e=void 0!==r.descender?Math.abs(r.descender):0,n=(t+e)*y;w<n&&(w=n,E=(t-e)/2*y),I=-t*y}else I=24*(i-y)-17}T?(t.verticalizable=!0,b.push({glyph:g,imageName:C,x:f,y:d+I,vertical:T,scale:y,localGlyph:v.localGlyph,fontStack:a.fontStack,sectionIndex:p,metrics:v,rect:S}),f+=A*y+l):(b.push({glyph:g,imageName:C,x:f,y:d+I,vertical:T,scale:y,localGlyph:v.localGlyph,fontStack:a.fontStack,sectionIndex:p,metrics:v,rect:S}),f+=v.advance*y+l)}0!==b.length&&(p=Math.max(f-l,p),m?cd(b,g,x,E,o*i/2):cd(b,g,x,0,o/2)),f=0;const S=o*i+x;v.lineOffset=Math.max(x,a),d+=S,++y}var _;const v=d,{horizontalAlign:b,verticalAlign:x}=ad(s);(function(t,e,n,r,i,o){const s=(e-n)*i,a=-o*r;for(const e of t)for(const t of e.positionedGlyphs)t.x+=s,t.y+=a})(t.positionedLines,g,b,x,p,v),t.top+=-x*v,t.bottom=t.top+v,t.left+=-b*p,t.right=t.left+p,t.hasBaseline=m}(x,e,n,r,m,s,a,c,h,l,f,p),!function(t){for(const e of t)if(0!==e.positionedGlyphs.length)return!1;return!0}(b)&&x}const ed={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},nd={10:!0,32:!0,38:!0,40:!0,41:!0,43:!0,45:!0,47:!0,173:!0,183:!0,8203:!0,8208:!0,8211:!0,8231:!0};function rd(t,e,n,r,i,o){if(e.imageName){const t=r[e.imageName];return t?t.displaySize[0]*e.scale*24/o+i:0}{const r=n[e.fontStack],o=r&&r.glyphs[t];return o?o.metrics.advance*e.scale+i:0}}function id(t,e,n,r){const i=Math.pow(t-e,2);return r?t<e?i/2:2*i:i+Math.abs(n)*n}function od(t,e,n){let r=0;return 10===t&&(r-=1e4),n&&(r+=150),40!==t&&65288!==t||(r+=50),41!==e&&65289!==e||(r+=50),r}function sd(t,e,n,r,i,o){let s=null,a=id(e,n,i,o);for(const t of r){const r=id(e-t.x,n,i,o)+t.badness;r<=a&&(s=t,a=r)}return{index:t,x:e,priorBreak:s,badness:a}}function ad(t){let e=.5,n=.5;switch(t){case"right":case"top-right":case"bottom-right":e=1;break;case"left":case"top-left":case"bottom-left":e=0}switch(t){case"bottom":case"bottom-right":case"bottom-left":n=1;break;case"top":case"top-right":case"top-left":n=0}return{horizontalAlign:e,verticalAlign:n}}function cd(t,e,n,r,i){if(!(e||n||r||i))return;const o=t.length-1,s=t[o],a=(s.x+s.metrics.advance*s.scale)*e;for(let e=0;e<=o;e++)t[e].x-=a,t[e].y+=n+r+i}function ld(t,e,n){const{horizontalAlign:r,verticalAlign:i}=ad(n),o=e[0]-t.displaySize[0]*r,s=e[1]-t.displaySize[1]*i;return{image:t,top:s,bottom:s+t.displaySize[1],left:o,right:o+t.displaySize[0]}}function ud(t,e,n,r,i,o){const s=t.image;let a;if(s.content){const t=s.content,e=s.pixelRatio||1;a=[t[0]/e,t[1]/e,s.displaySize[0]-t[2]/e,s.displaySize[1]-t[3]/e]}const c=e.left*o,l=e.right*o;let u,h,f,d;"width"===n||"both"===n?(d=i[0]+c-r[3],h=i[0]+l+r[1]):(d=i[0]+(c+l-s.displaySize[0])/2,h=d+s.displaySize[0]);const p=e.top*o,g=e.bottom*o;return"height"===n||"both"===n?(u=i[1]+p-r[0],f=i[1]+g+r[2]):(u=i[1]+(p+g-s.displaySize[1])/2,f=u+s.displaySize[1]),{image:s,top:u,right:h,bottom:f,left:d,collisionPadding:a}}class hd extends _{constructor(t,e,n,r,i){super(t,e),this.angle=r,this.z=n,void 0!==i&&(this.segment=i)}clone(){return new hd(this.x,this.y,this.z,this.angle,this.segment)}}function fd(t,e,n,r,i){if(void 0===e.segment)return!0;let o=e,s=e.segment+1,a=0;for(;a>-n/2;){if(s--,s<0)return!1;a-=t[s].dist(o),o=t[s]}a+=t[s].dist(t[s+1]),s++;const c=[];let l=0;for(;a<n/2;){const e=t[s],n=t[s+1];if(!n)return!1;let o=t[s-1].angleTo(e)-e.angleTo(n);for(o=Math.abs((o+3*Math.PI)%(2*Math.PI)-Math.PI),c.push({distance:a,angleDelta:o}),l+=o;a-c[0].distance>r;)l-=c.shift().angleDelta;if(l>i)return!1;s++,a+=e.dist(n)}return!0}function dd(t){let e=0;for(let n=0;n<t.length-1;n++)e+=t[n].dist(t[n+1]);return e}function pd(t,e,n){return t?.6*e*n:0}function gd(t,e){return Math.max(t?t.right-t.left:0,e?e.right-e.left:0)}function md(t,e,n,r,i,o){const s=pd(n,i,o),a=gd(n,r)*o;let c=0;const l=dd(t)/2;for(let n=0;n<t.length-1;n++){const r=t[n],i=t[n+1],o=r.dist(i);if(c+o>l){const u=(l-c)/o,h=Bn(r.x,i.x,u),f=Bn(r.y,i.y,u),d=new hd(h,f,0,i.angleTo(r),n);return!s||fd(t,d,a,s,e)?d:void 0}c+=o}}function yd(t,e,n,r,i,o,s,a,c){const l=pd(r,o,s),u=gd(r,i),h=u*s,f=0===t[0].x||t[0].x===c||0===t[0].y||t[0].y===c;return e-h<e/4&&(e=h+e/4),function t(e,n,r,i,o,s,a,c,l){const u=s/2,h=dd(e);let f=0,d=n-r,p=[];for(let t=0;t<e.length-1;t++){const n=e[t],a=e[t+1],c=n.dist(a),g=a.angleTo(n);for(;d+r<f+c;){d+=r;const m=(d-f)/c,y=Bn(n.x,a.x,m),_=Bn(n.y,a.y,m);if(y>=0&&y<l&&_>=0&&_<l&&d-u>=0&&d+u<=h){const n=new hd(y,_,0,g,t);n._round(),i&&!fd(e,n,s,i,o)||p.push(n)}}f+=c}return c||p.length||a||(p=t(e,f/2,r,i,o,s,a,!0,l)),p}(t,f?e/2*a%e:(u/2+2*o)*s*a%e,e,l,n,h,f,!1,c)}function _d(t,e,n,r,i){const o=[];for(let s=0;s<t.length;s++){const a=t[s];let c;for(let t=0;t<a.length-1;t++){let s=a[t],l=a[t+1];s.x<e&&l.x<e||(s.x<e?s=new _(e,s.y+(e-s.x)/(l.x-s.x)*(l.y-s.y))._round():l.x<e&&(l=new _(e,s.y+(e-s.x)/(l.x-s.x)*(l.y-s.y))._round()),s.y<n&&l.y<n||(s.y<n?s=new _(s.x+(n-s.y)/(l.y-s.y)*(l.x-s.x),n)._round():l.y<n&&(l=new _(s.x+(n-s.y)/(l.y-s.y)*(l.x-s.x),n)._round()),s.x>=r&&l.x>=r||(s.x>=r?s=new _(r,s.y+(r-s.x)/(l.x-s.x)*(l.y-s.y))._round():l.x>=r&&(l=new _(r,s.y+(r-s.x)/(l.x-s.x)*(l.y-s.y))._round()),s.y>=i&&l.y>=i||(s.y>=i?s=new _(s.x+(i-s.y)/(l.y-s.y)*(l.x-s.x),i)._round():l.y>=i&&(l=new _(s.x+(i-s.y)/(l.y-s.y)*(l.x-s.x),i)._round()),c&&s.equals(c[c.length-1])||(c=[s],o.push(c)),c.push(l)))))}}return o}Di(hd,"Anchor");const vd=1e20;function bd(t,e,n,r,i,o,s,a,c){for(let l=e;l<e+r;l++)xd(t,n*o+l,o,i,s,a,c);for(let l=n;l<n+i;l++)xd(t,l*o+e,1,r,s,a,c)}function xd(t,e,n,r,i,o,s){o[0]=0,s[0]=-vd,s[1]=vd,i[0]=t[e];for(let a=1,c=0,l=0;a<r;a++){i[a]=t[e+a*n];const r=a*a;do{const t=o[c];l=(i[a]-i[t]+r-t*t)/(a-t)/2}while(l<=s[c]&&--c>-1);c++,o[c]=a,s[c]=l,s[c+1]=vd}for(let a=0,c=0;a<r;a++){for(;s[c+1]<a;)c++;const r=o[c],l=a-r;t[e+a*n]=i[r]+l*l}}const wd={none:0,ideographs:1,all:2};class Ed{constructor(t,e,n){this.requestManager=t,this.localGlyphMode=e,this.localFontFamily=n,this.entries={},this.localGlyphs={200:{},400:{},500:{},900:{}}}setURL(t){this.url=t}getGlyphs(t,e){const n=[];for(const e in t)for(const r of t[e])n.push({stack:e,id:r});F(n,({stack:t,id:e},n)=>{let r=this.entries[t];r||(r=this.entries[t]={glyphs:{},requests:{},ranges:{},ascender:void 0,descender:void 0});let i=r.glyphs[e];if(void 0!==i)return void n(null,{stack:t,id:e,glyph:i});if(i=this._tinySDF(r,t,e),i)return r.glyphs[e]=i,void n(null,{stack:t,id:e,glyph:i});const o=Math.floor(e/256);if(256*o>65535)return void n(new Error("glyphs > 65535 not supported"));if(r.ranges[o])return void n(null,{stack:t,id:e,glyph:i});let s=r.requests[o];s||(s=r.requests[o]=[],Ed.loadGlyphRange(t,o,this.url,this.requestManager,(t,e)=>{if(e){r.ascender=e.ascender,r.descender=e.descender;for(const t in e.glyphs)this._doesCharSupportLocalGlyph(+t)||(r.glyphs[+t]=e.glyphs[+t]);r.ranges[o]=!0}for(const n of s)n(t,e);delete r.requests[o]})),s.push((r,i)=>{r?n(r):i&&n(null,{stack:t,id:e,glyph:i.glyphs[e]||null})})},(t,n)=>{if(t)e(t);else if(n){const t={};for(const{stack:e,id:r,glyph:i}of n)void 0===t[e]&&(t[e]={}),void 0===t[e].glyphs&&(t[e].glyphs={}),t[e].glyphs[r]=i&&{id:i.id,bitmap:i.bitmap.clone(),metrics:i.metrics},t[e].ascender=this.entries[e].ascender,t[e].descender=this.entries[e].descender;e(null,t)}})}_doesCharSupportLocalGlyph(t){return this.localGlyphMode!==wd.none&&(this.localGlyphMode===wd.all?!!this.localFontFamily:!!this.localFontFamily&&(Eo(t)||Io(t)||uo(t)||ho(t)||lo(t)))}_tinySDF(t,e,n){const r=this.localFontFamily;if(!r||!this._doesCharSupportLocalGlyph(n))return;let i=t.tinySDF;if(!i){let n="400";/bold/i.test(e)?n="900":/medium/i.test(e)?n="500":/light/i.test(e)&&(n="200"),i=t.tinySDF=new Ed.TinySDF({fontFamily:r,fontWeight:n,fontSize:48,buffer:6,radius:16}),i.fontWeight=n}if(this.localGlyphs[i.fontWeight][n])return this.localGlyphs[i.fontWeight][n];const o=String.fromCharCode(n),{data:s,width:a,height:c,glyphWidth:l,glyphHeight:u,glyphLeft:h,glyphTop:f,glyphAdvance:d}=i.draw(o);return this.localGlyphs[i.fontWeight][n]={id:n,bitmap:new du({width:a,height:c},s),metrics:{width:l/2,height:u/2,left:h/2,top:f/2-27,advance:d/2,localGlyph:!0}}}}function Sd(t,e,n,r){const i=[],o=t.image,s=o.pixelRatio,a=o.paddedRect.w-2,c=o.paddedRect.h-2,l=t.right-t.left,u=t.bottom-t.top,h=o.stretchX||[[0,a]],f=o.stretchY||[[0,c]],d=(t,e)=>t+e[1]-e[0],p=h.reduce(d,0),g=f.reduce(d,0),m=a-p,y=c-g;let v=0,b=p,x=0,w=g,E=0,S=m,C=0,A=y;if(o.content&&r){const t=o.content;v=Cd(h,0,t[0]),x=Cd(f,0,t[1]),b=Cd(h,t[0],t[2]),w=Cd(f,t[1],t[3]),E=t[0]-v,C=t[1]-x,S=t[2]-t[0]-b,A=t[3]-t[1]-w}const I=(r,i,a,c)=>{const h=Id(r.stretch-v,b,l,t.left),f=Td(r.fixed-E,S,r.stretch,p),d=Id(i.stretch-x,w,u,t.top),m=Td(i.fixed-C,A,i.stretch,g),y=Id(a.stretch-v,b,l,t.left),I=Td(a.fixed-E,S,a.stretch,p),T=Id(c.stretch-x,w,u,t.top),M=Td(c.fixed-C,A,c.stretch,g),F=new _(h,d),B=new _(y,d),L=new _(y,T),O=new _(h,T),U=new _(f/s,m/s),k=new _(I/s,M/s),P=e*Math.PI/180;if(P){const t=Math.sin(P),e=Math.cos(P),n=[e,-t,t,e];F._matMult(n),B._matMult(n),O._matMult(n),L._matMult(n)}const D=r.stretch+r.fixed,R=i.stretch+i.fixed;return{tl:F,tr:B,bl:O,br:L,tex:{x:o.paddedRect.x+1+D,y:o.paddedRect.y+1+R,w:a.stretch+a.fixed-D,h:c.stretch+c.fixed-R},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:U,pixelOffsetBR:k,minFontScaleX:S/s/l,minFontScaleY:A/s/u,isSDF:n}};if(r&&(o.stretchX||o.stretchY)){const t=Ad(h,m,p),e=Ad(f,y,g);for(let n=0;n<t.length-1;n++){const r=t[n],o=t[n+1];for(let t=0;t<e.length-1;t++)i.push(I(r,e[t],o,e[t+1]))}}else i.push(I({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:a+1},{fixed:0,stretch:c+1}));return i}function Cd(t,e,n){let r=0;for(const i of t)r+=Math.max(e,Math.min(n,i[1]))-Math.max(e,Math.min(n,i[0]));return r}function Ad(t,e,n){const r=[{fixed:-1,stretch:0}];for(const[e,n]of t){const t=r[r.length-1];r.push({fixed:e-t.stretch,stretch:t.stretch}),r.push({fixed:e-t.stretch,stretch:t.stretch+(n-e)})}return r.push({fixed:e+1,stretch:n}),r}function Id(t,e,n,r){return t/e*n+r}function Td(t,e,n,r){return t-e*n/r}function Md(t,e,n,r){const i=e+t.positionedLines[r].lineOffset;return 0===r?n+i/2:n+(i+(e+t.positionedLines[r-1].lineOffset))/2}Ed.loadGlyphRange=function(t,e,n,r,i){const o=256*e,s=o+255,a=r.transformRequest(r.normalizeGlyphsURL(n).replace("{fontstack}",t).replace("{range}",`${o}-${s}`),ct.Glyphs);ft(a,(t,e)=>{if(t)i(t);else if(e){const t={},n=function(t){return new Gf(t).readFields(Hf,{})}(e);for(const e of n.glyphs)t[e.id]=e;i(null,{glyphs:t,ascender:n.ascender,descender:n.descender})}})},Ed.TinySDF=class{constructor({fontSize:t=24,buffer:e=3,radius:n=8,cutoff:r=.25,fontFamily:i="sans-serif",fontWeight:o="normal",fontStyle:s="normal"}={}){this.buffer=e,this.cutoff=r,this.radius=n;const a=this.size=t+4*e,c=this._createCanvas(a),l=this.ctx=c.getContext("2d",{willReadFrequently:!0});l.font=`${s} ${o} ${t}px ${i}`,l.textBaseline="alphabetic",l.textAlign="left",l.fillStyle="black",this.gridOuter=new Float64Array(a*a),this.gridInner=new Float64Array(a*a),this.f=new Float64Array(a),this.z=new Float64Array(a+1),this.v=new Uint16Array(a)}_createCanvas(t){const e=document.createElement("canvas");return e.width=e.height=t,e}draw(t){const{width:e,actualBoundingBoxAscent:n,actualBoundingBoxDescent:r,actualBoundingBoxLeft:i,actualBoundingBoxRight:o}=this.ctx.measureText(t),s=Math.ceil(n),a=Math.max(0,Math.min(this.size-this.buffer,Math.ceil(o-i))),c=Math.min(this.size-this.buffer,s+Math.ceil(r)),l=a+2*this.buffer,u=c+2*this.buffer,h=Math.max(l*u,0),f=new Uint8ClampedArray(h),d={data:f,width:l,height:u,glyphWidth:a,glyphHeight:c,glyphTop:s,glyphLeft:0,glyphAdvance:e};if(0===a||0===c)return d;const{ctx:p,buffer:g,gridInner:m,gridOuter:y}=this;p.clearRect(g,g,a,c),p.fillText(t,g,g+s);const _=p.getImageData(g,g,a,c);y.fill(vd,0,h),m.fill(0,0,h);for(let t=0;t<c;t++)for(let e=0;e<a;e++){const n=_.data[4*(t*a+e)+3]/255;if(0===n)continue;const r=(t+g)*l+e+g;if(1===n)y[r]=0,m[r]=vd;else{const t=.5-n;y[r]=t>0?t*t:0,m[r]=t<0?t*t:0}}bd(y,0,0,l,u,l,this.f,this.v,this.z),bd(m,g,g,a,c,l,this.f,this.v,this.z);for(let t=0;t<h;t++){const e=Math.sqrt(y[t])-Math.sqrt(m[t]);f[t]=Math.round(255-255*(e/this.radius+this.cutoff))}return d}};class Fd{constructor(t=[],e=Bd){if(this.data=t,this.length=this.data.length,this.compare=e,this.length>0)for(let t=(this.length>>1)-1;t>=0;t--)this._down(t)}push(t){this.data.push(t),this.length++,this._up(this.length-1)}pop(){if(0===this.length)return;const t=this.data[0],e=this.data.pop();return this.length--,this.length>0&&(this.data[0]=e,this._down(0)),t}peek(){return this.data[0]}_up(t){const{data:e,compare:n}=this,r=e[t];for(;t>0;){const i=t-1>>1,o=e[i];if(n(r,o)>=0)break;e[t]=o,t=i}e[t]=r}_down(t){const{data:e,compare:n}=this,r=this.length>>1,i=e[t];for(;t<r;){let r=1+(t<<1),o=e[r];const s=r+1;if(s<this.length&&n(e[s],o)<0&&(r=s,o=e[s]),n(o,i)>=0)break;e[t]=o,t=r}e[t]=i}}function Bd(t,e){return t<e?-1:t>e?1:0}function Ld(t,e=1,n=!1){let r=1/0,i=1/0,o=-1/0,s=-1/0;const a=t[0];for(let t=0;t<a.length;t++){const e=a[t];(!t||e.x<r)&&(r=e.x),(!t||e.y<i)&&(i=e.y),(!t||e.x>o)&&(o=e.x),(!t||e.y>s)&&(s=e.y)}const c=Math.min(o-r,s-i);let l=c/2;const u=new Fd([],Od);if(0===c)return new _(r,i);for(let e=r;e<o;e+=c)for(let n=i;n<s;n+=c)u.push(new Ud(e+l,n+l,l,t));let h=function(t){let e=0,n=0,r=0;const i=t[0];for(let t=0,o=i.length,s=o-1;t<o;s=t++){const o=i[t],a=i[s],c=o.x*a.y-a.x*o.y;n+=(o.x+a.x)*c,r+=(o.y+a.y)*c,e+=3*c}return new Ud(n/e,r/e,0,t)}(t),f=u.length;for(;u.length;){const r=u.pop();(r.d>h.d||!h.d)&&(h=r,n&&console.log("found best %d after %d probes",Math.round(1e4*r.d)/1e4,f)),r.max-h.d<=e||(l=r.h/2,u.push(new Ud(r.p.x-l,r.p.y-l,l,t)),u.push(new Ud(r.p.x+l,r.p.y-l,l,t)),u.push(new Ud(r.p.x-l,r.p.y+l,l,t)),u.push(new Ud(r.p.x+l,r.p.y+l,l,t)),f+=4)}return n&&(console.log("num probes: "+f),console.log("best distance: "+h.d)),h.p}function Od(t,e){return e.max-t.max}class Ud{constructor(t,e,n,r){this.p=new _(t,e),this.h=n,this.d=function(t,e){let n=!1,r=1/0;for(let i=0;i<e.length;i++){const o=e[i];for(let e=0,i=o.length,s=i-1;e<i;s=e++){const i=o[e],a=o[s];i.y>t.y!=a.y>t.y&&t.x<(a.x-i.x)*(t.y-i.y)/(a.y-i.y)+i.x&&(n=!n),r=Math.min(r,Wl(t,i,a))}}return(n?1:-1)*Math.sqrt(r)}(this.p,r),this.max=this.d+this.h*Math.SQRT2}}const kd=Number.POSITIVE_INFINITY,Pd=Math.sqrt(2);function Dd(t,[e,n]){let r=0,i=0;if(n===kd){e<0&&(e=0);const n=e/Pd;switch(t){case"top-right":case"top-left":i=n-7;break;case"bottom-right":case"bottom-left":i=7-n;break;case"bottom":i=7-e;break;case"top":i=e-7}switch(t){case"top-right":case"bottom-right":r=-n;break;case"top-left":case"bottom-left":r=n;break;case"left":r=e;break;case"right":r=-e}}else{switch(e=Math.abs(e),n=Math.abs(n),t){case"top-right":case"top-left":case"top":i=n-7;break;case"bottom-right":case"bottom-left":case"bottom":i=7-n}switch(t){case"top-right":case"bottom-right":case"right":r=-e;break;case"top-left":case"bottom-left":case"left":r=e}}return[r,i]}function Rd(t,e,n,r,i,o,s,a,c,l){t.createArrays(),t.tilePixelRatio=Qa/(512*t.overscaling),t.compareText={},t.iconsNeedLinear=!1;const u=t.layers[0].layout,h=t.layers[0]._unevaluatedLayout._values,f={};if("composite"===t.textSizeData.kind){const{minZoom:e,maxZoom:n}=t.textSizeData;f.compositeTextSizes=[h["text-size"].possiblyEvaluate(new rs(e),a),h["text-size"].possiblyEvaluate(new rs(n),a)]}if("composite"===t.iconSizeData.kind){const{minZoom:e,maxZoom:n}=t.iconSizeData;f.compositeIconSizes=[h["icon-size"].possiblyEvaluate(new rs(e),a),h["icon-size"].possiblyEvaluate(new rs(n),a)]}f.layoutTextSize=h["text-size"].possiblyEvaluate(new rs(c+1),a),f.layoutIconSize=h["icon-size"].possiblyEvaluate(new rs(c+1),a),f.textMaxSize=h["text-size"].possiblyEvaluate(new rs(18),a);const d="map"===u.get("text-rotation-alignment")&&"point"!==u.get("symbol-placement"),p=u.get("text-size");for(const o of t.features){const c=u.get("text-font").evaluate(o,{},a).join(","),h=p.evaluate(o,{},a),g=f.layoutTextSize.evaluate(o,{},a),m=(f.layoutIconSize.evaluate(o,{},a),{horizontal:{},vertical:void 0}),y=o.text;let _,v=[0,0];if(y){const r=y.toString(),s=24*u.get("text-letter-spacing").evaluate(o,{},a),l=24*u.get("text-line-height").evaluate(o,{},a),f=Ro(r)?s:0,p=u.get("text-anchor").evaluate(o,{},a),_=u.get("text-variable-anchor");if(!_){const t=u.get("text-radial-offset").evaluate(o,{},a);v=t?Dd(p,[24*t,kd]):u.get("text-offset").evaluate(o,{},a).map(t=>24*t)}let b=d?"center":u.get("text-justify").evaluate(o,{},a);const x="point"===u.get("symbol-placement"),w=x?24*u.get("text-max-width").evaluate(o,{},a):1/0,E=o=>{t.allowVerticalPlacement&&Do(r)&&(m.vertical=td(y,e,n,i,c,w,l,p,o,f,v,Kf.vertical,!0,g,h))};if(!d&&_){const t="auto"===b?_.map(t=>jd(t)):[b];let r=!1;for(let o=0;o<t.length;o++){const s=t[o];if(!m.horizontal[s])if(r)m.horizontal[s]=m.horizontal[0];else{const t=td(y,e,n,i,c,w,l,"center",s,f,v,Kf.horizontal,!1,g,h);t&&(m.horizontal[s]=t,r=1===t.positionedLines.length)}}E("left")}else{if("auto"===b&&(b=jd(p)),x||u.get("text-writing-mode").indexOf("horizontal")>=0||!Do(r)){const t=td(y,e,n,i,c,w,l,p,b,f,v,Kf.horizontal,!1,g,h);t&&(m.horizontal[b]=t)}E(x?"left":b)}}let b=!1;if(o.icon&&o.icon.name){const e=r[o.icon.name];e&&(_=ld(i[o.icon.name],u.get("icon-offset").evaluate(o,{},a),u.get("icon-anchor").evaluate(o,{},a)),b=e.sdf,void 0===t.sdfIcons?t.sdfIcons=e.sdf:t.sdfIcons!==e.sdf&&G("Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer"),(e.pixelRatio!==t.pixelRatio||0!==u.get("icon-rotate").constantOr(1))&&(t.iconsNeedLinear=!0))}const x=Gd(m.horizontal)||m.vertical;t.iconsInText||(t.iconsInText=!!x&&x.iconsInText),(x||_)&&zd(t,o,m,_,r,f,g,0,v,b,s,a,l)}o&&t.generateCollisionDebugBuffers(c,t.collisionBoxArray)}function jd(t){switch(t){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}function zd(t,e,n,r,i,o,s,a,c,l,u,h,f){let d=o.textMaxSize.evaluate(e,{},h);void 0===d&&(d=s);const p=t.layers[0].layout,g=p.get("icon-offset").evaluate(e,{},h),m=Gd(n.horizontal)||n.vertical,y="globe"===f.name,_=s/24,v=t.tilePixelRatio*d/24,b=(M=t.overscaling,t.zoom>18&&M>2&&(M>>=1),Math.max(Qa/(512*M),1)*p.get("symbol-spacing")),w=p.get("text-padding")*t.tilePixelRatio,E=p.get("icon-padding")*t.tilePixelRatio,S=x(p.get("text-max-angle")),C="map"===p.get("text-rotation-alignment")&&"point"!==p.get("symbol-placement"),A="map"===p.get("icon-rotation-alignment")&&"point"!==p.get("symbol-placement"),I=p.get("symbol-placement"),T=b/2;var M;const F=p.get("icon-text-fit");let B;r&&"none"!==F&&(t.allowVerticalPlacement&&n.vertical&&(B=ud(r,n.vertical,F,p.get("icon-text-fit-padding"),g,_)),m&&(r=ud(r,m,F,p.get("icon-text-fit-padding"),g,_)));const L=(s,a,d)=>{if(a.x<0||a.x>=Qa||a.y<0||a.y>=Qa)return;let p=null;if(y){const{x:t,y:e,z:n}=f.projectTilePoint(a.x,a.y,d);p={anchor:new hd(t,e,n,0,void 0),up:f.upVector(d,a.x,a.y)}}!function(t,e,n,r,i,o,s,a,c,l,u,h,f,d,p,g,m,y,_,v,b,x,w,E,S){const C=t.addToLineVertexArray(e,r);let A,I,T,M,F,B,L,O=0,U=0,k=0,P=0,D=-1,R=-1;const j={};let z=fa("");const Q=n?n.anchor:e;let N=0,V=0;if(void 0===c._unevaluatedLayout.getValue("text-radial-offset")?[N,V]=c.layout.get("text-offset").evaluate(b,{},S).map(t=>24*t):(N=24*c.layout.get("text-radial-offset").evaluate(b,{},S),V=kd),t.allowVerticalPlacement&&i.vertical){const t=i.vertical;if(p)B=Zd(t),a&&(L=Zd(a));else{const n=c.layout.get("text-rotate").evaluate(b,{},S)+90;T=Hd(l,Q,e,u,h,f,t,d,n,g),a&&(M=Hd(l,Q,e,u,h,f,a,y,n))}}if(o){const r=c.layout.get("icon-rotate").evaluate(b,{},S),i="none"!==c.layout.get("icon-text-fit"),s=Sd(o,r,w,i),d=a?Sd(a,r,w,i):void 0;I=Hd(l,Q,e,u,h,f,o,y,r),O=4*s.length;const p=t.iconSizeData;let g=null;"source"===p.kind?(g=[df*c.layout.get("icon-size").evaluate(b,{},S)],g[0]>Nd&&G(`${t.layerIds[0]}: Value for "icon-size" is >= ${Qd}. Reduce your "icon-size".`)):"composite"===p.kind&&(g=[df*x.compositeIconSizes[0].evaluate(b,{},S),df*x.compositeIconSizes[1].evaluate(b,{},S)],(g[0]>Nd||g[1]>Nd)&&G(`${t.layerIds[0]}: Value for "icon-size" is >= ${Qd}. Reduce your "icon-size".`)),t.addSymbols(t.icon,s,g,v,_,b,!1,n,e,C.lineStartIndex,C.lineLength,-1,E,S),D=t.icon.placedSymbolArray.length-1,d&&(U=4*d.length,t.addSymbols(t.icon,d,g,v,_,b,Kf.vertical,n,e,C.lineStartIndex,C.lineLength,-1,E,S),R=t.icon.placedSymbolArray.length-1)}for(const r in i.horizontal){const o=i.horizontal[r];A||(z=fa(o.text),p?F=Zd(o):A=Hd(l,Q,e,u,h,f,o,d,c.layout.get("text-rotate").evaluate(b,{},S),g));const a=1===o.positionedLines.length;if(k+=Vd(t,n,e,o,s,c,p,b,g,C,i.vertical?Kf.horizontal:Kf.horizontalOnly,a?Object.keys(i.horizontal):[r],j,D,x,E,S),a)break}i.vertical&&(P+=Vd(t,n,e,i.vertical,s,c,p,b,g,C,Kf.vertical,["vertical"],j,R,x,E,S));let H=-1;const Z=(t,e)=>t?Math.max(t,e):e;H=Z(F,H),H=Z(B,H),H=Z(L,H);const W=H>-1?1:0;t.glyphOffsetArray.length>=Cp.MAX_GLYPHS&&G("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),void 0!==b.sortKey&&t.addToSortKeyRanges(t.symbolInstances.length,b.sortKey),t.symbolInstances.emplaceBack(Q.x,Q.y,Q.z,e.x,e.y,j.right>=0?j.right:-1,j.center>=0?j.center:-1,j.left>=0?j.left:-1,j.vertical>=0?j.vertical:-1,D,R,z,void 0!==A?A:t.collisionBoxArray.length,void 0!==A?A+1:t.collisionBoxArray.length,void 0!==T?T:t.collisionBoxArray.length,void 0!==T?T+1:t.collisionBoxArray.length,void 0!==I?I:t.collisionBoxArray.length,void 0!==I?I+1:t.collisionBoxArray.length,M||t.collisionBoxArray.length,M?M+1:t.collisionBoxArray.length,u,k,P,O,U,W,0,N,V,H)}(t,a,p,s,n,r,i,B,t.layers[0],t.collisionBoxArray,e.index,e.sourceLayerIndex,t.index,w,C,c,0,E,A,g,e,o,l,u,h)};if("line"===I)for(const i of _d(e.geometry,0,0,Qa,Qa)){const e=yd(i,b,S,n.vertical||m,r,24,v,t.overscaling,Qa);for(const n of e)m&&Wd(t,m.text,T,n)||L(i,n,h)}else if("line-center"===I){for(const t of e.geometry)if(t.length>1){const e=md(t,S,n.vertical||m,r,24,v);e&&L(t,e,h)}}else if("Polygon"===e.type)for(const t of Ku(e.geometry,0)){const e=Ld(t,16);L(t[0],new hd(e.x,e.y,0,0,void 0),h)}else if("LineString"===e.type)for(const t of e.geometry)L(t,new hd(t[0].x,t[0].y,0,0,void 0),h);else if("Point"===e.type)for(const t of e.geometry)for(const e of t)L([e],new hd(e.x,e.y,0,0,void 0),h)}const Qd=255,Nd=Qd*df;function Vd(t,e,n,r,i,o,s,a,c,l,u,h,f,d,p,g,m){const y=function(t,e,n,r,i,o,s,a){const c=[];if(0===e.positionedLines.length)return c;const l=r.layout.get("text-rotate").evaluate(o,{})*Math.PI/180,u=function(t){const e=t[0],n=t[1],r=e*n;return r>0?[e,-n]:r<0?[-e,n]:0===e?[n,e]:[n,-e]}(n);let h=Math.abs(e.top-e.bottom);for(const t of e.positionedLines)h-=t.lineOffset;const f=e.positionedLines.length,d=h/f;let p=e.top-n[1];for(let t=0;t<f;++t){const r=e.positionedLines[t];p=Md(e,d,p,t);for(const t of r.positionedGlyphs){if(!t.rect)continue;const r=t.rect||{};let o=4,h=!0,f=1,d=0;if(t.imageName){const e=s[t.imageName];if(!e)continue;if(e.sdf){G("SDF images are not supported in formatted text and will be ignored.");continue}h=!1,f=e.pixelRatio,o=1/f}const g=(i||a)&&t.vertical,m=t.metrics.advance*t.scale/2,y=t.metrics,v=t.rect;if(null===v)continue;a&&e.verticalizable&&(d=t.imageName?m-t.metrics.width*t.scale/2:0);const b=i?[t.x+m,t.y]:[0,0];let x=[0,0],w=[0,0],E=!1;i||(g?(w=[t.x+m+u[0],t.y+u[1]-d],E=!0):x=[t.x+m+n[0],t.y+n[1]-d]);const S=v.w*t.scale/(f*(t.localGlyph?2:1)),C=v.h*t.scale/(f*(t.localGlyph?2:1));let A,I,T,M;if(g){const e=t.y-p,n=new _(-m,m-e),r=-Math.PI/2,i=new _(...w);A=new _(-m+x[0],x[1]),A._rotateAround(r,n)._add(i),A.x+=-e+m,A.y-=(y.left-o)*t.scale;const s=t.imageName?y.advance*t.scale:24*t.scale,a=String.fromCharCode(t.glyph);bf(a)?A.x+=(1-o)*t.scale:xf(a)?A.x+=s-y.height*t.scale+(-o-1)*t.scale:A.x+=t.imageName||y.width+2*o===v.w&&y.height+2*o===v.h?(s-C)/2:(s-(y.height+2*o)*t.scale)/2,I=new _(A.x,A.y-S),T=new _(A.x+C,A.y),M=new _(A.x+C,A.y-S)}else{const e=(y.left-o)*t.scale-m+x[0],n=(-y.top-o)*t.scale+x[1],r=e+S,i=n+C;A=new _(e,n),I=new _(r,n),T=new _(e,i),M=new _(r,i)}if(l){let t;t=i?new _(0,0):E?new _(u[0],u[1]):new _(n[0],n[1]),A._rotateAround(l,t),I._rotateAround(l,t),T._rotateAround(l,t),M._rotateAround(l,t)}const F=new _(0,0),B=new _(0,0);c.push({tl:A,tr:I,bl:T,br:M,tex:r,writingMode:e.writingMode,glyphOffset:b,sectionIndex:t.sectionIndex,isSDF:h,pixelOffsetTL:F,pixelOffsetBR:B,minFontScaleX:0,minFontScaleY:0})}}return c}(0,r,c,o,s,a,i,t.allowVerticalPlacement),v=t.textSizeData;let b=null;"source"===v.kind?(b=[df*o.layout.get("text-size").evaluate(a,{},m)],b[0]>Nd&&G(`${t.layerIds[0]}: Value for "text-size" is >= ${Qd}. Reduce your "text-size".`)):"composite"===v.kind&&(b=[df*p.compositeTextSizes[0].evaluate(a,{},m),df*p.compositeTextSizes[1].evaluate(a,{},m)],(b[0]>Nd||b[1]>Nd)&&G(`${t.layerIds[0]}: Value for "text-size" is >= ${Qd}. Reduce your "text-size".`)),t.addSymbols(t.text,y,b,c,s,a,u,e,n,l.lineStartIndex,l.lineLength,d,g,m);for(const e of h)f[e]=t.text.placedSymbolArray.length-1;return 4*y.length}function Gd(t){for(const e in t)return t[e];return null}function Hd(t,e,n,r,i,o,s,a,c,l){let u=s.top,h=s.bottom,f=s.left,d=s.right;const p=s.collisionPadding;if(p&&(f-=p[0],u-=p[1],d+=p[2],h+=p[3]),c){const t=new _(f,u),e=new _(d,u),n=new _(f,h),r=new _(d,h),i=x(c);let o=new _(0,0);l&&(o=new _(l[0],l[1])),t._rotateAround(i,o),e._rotateAround(i,o),n._rotateAround(i,o),r._rotateAround(i,o),f=Math.min(t.x,e.x,n.x,r.x),d=Math.max(t.x,e.x,n.x,r.x),u=Math.min(t.y,e.y,n.y,r.y),h=Math.max(t.y,e.y,n.y,r.y)}return t.emplaceBack(e.x,e.y,e.z,n.x,n.y,f,u,d,h,a,r,i,o),t.length-1}function Zd(t){t.collisionPadding&&(t.top-=t.collisionPadding[1],t.bottom+=t.collisionPadding[3]);const e=t.bottom-t.top;return e>0?Math.max(10,e):null}function Wd(t,e,n,r){const i=t.compareText;if(e in i){const t=i[e];for(let e=t.length-1;e>=0;e--)if(r.dist(t[e])<n)return!0}else i[e]=[];return i[e].push(r),!1}function Xd(t,e){const n=t.fovAboveCenter,r=t.elevation?t.elevation.getMinElevationBelowMSL()*e:0,i=(t._camera.position[2]*t.worldSize-r)/Math.cos(t._pitch),o=Math.sin(n)*i/Math.sin(Math.max(Math.PI/2-t._pitch-n,.01)),s=Math.sin(t._pitch)*o+i;return Math.min(1.01*s,i*(1/t._horizonShift))}function Yd(t,e){if(!e.isReprojectedInTileSpace)return{scale:1<<t.z,x:t.x,y:t.y,x2:t.x+1,y2:t.y+1,projection:e};const n=Math.pow(2,-t.z),r=t.x*n,i=(t.x+1)*n,o=t.y*n,s=(t.y+1)*n,a=wl(r),c=wl(i),l=El(o),u=El(s),h=e.project(a,l),f=e.project(c,l),d=e.project(c,u),p=e.project(a,u);let g=Math.min(h.x,f.x,d.x,p.x),m=Math.min(h.y,f.y,d.y,p.y),y=Math.max(h.x,f.x,d.x,p.x),_=Math.max(h.y,f.y,d.y,p.y);const v=n/16;function b(t,n,r,i,o,s){const a=(r+o)/2,c=(i+s)/2,l=e.project(wl(a),El(c)),u=Math.max(0,g-l.x,m-l.y,l.x-y,l.y-_);g=Math.min(g,l.x),y=Math.max(y,l.x),m=Math.min(m,l.y),_=Math.max(_,l.y
vendor: 11,753 bytes, line 27
27),u>v&&(b(t,l,r,i,a,c),b(l,n,a,c,o,s))}b(h,f,r,o,i,o),b(f,d,i,o,i,s),b(d,p,i,s,r,s),b(p,h,r,s,r,o),g-=v,m-=v,y+=v,_+=v;const x=1/Math.max(y-g,_-m);return{scale:x,x:g*x,y:m*x,x2:y*x,y2:_*x,projection:e}}const qd=Wa(new Float32Array(16));class Kd{constructor(t){this.spec=t,this.name=t.name,this.wrap=!1,this.requiresDraping=!1,this.supportsWorldCopies=!1,this.supportsTerrain=!1,this.supportsFog=!1,this.supportsFreeCamera=!1,this.zAxisUnit="meters",this.isReprojectedInTileSpace=!0,this.unsupportedLayers=["custom"],this.center=[0,0],this.range=[3.5,7]}project(t,e){return{x:0,y:0,z:0}}unproject(t,e){return new yl(0,0)}projectTilePoint(t,e,n){return{x:t,y:e,z:0}}locationPoint(t,e,n=!0){return t._coordinatePoint(t.locationCoordinate(e),n)}pixelsPerMeter(t,e){return xl(1,t)*e}pixelSpaceConversion(t,e,n){return 1}farthestPixelDistance(t){return Xd(t,t.pixelsPerMeter)}pointCoordinate(t,e,n,r){const i=t.horizonLineFromTop(!1),o=new _(e,Math.max(i,n));return t.rayIntersectionCoordinate(t.pointRayIntersection(o,r))}pointCoordinate3D(t,e,n){const r=new _(e,n);if(t.elevation)return t.elevation.pointCoordinate(r);{const e=this.pointCoordinate(t,r.x,r.y,0);return[e.x,e.y,e.z]}}isPointAboveHorizon(t,e){if(t.elevation)return!this.pointCoordinate3D(t,e.x,e.y);const n=t.horizonLineFromTop();return e.y<n}createInversionMatrix(t,e){return qd}createTileMatrix(t,e,n){let r,i,o;const s=n.canonical,a=Wa(new Float64Array(16));if(this.isReprojectedInTileSpace){const c=Yd(s,this);r=1,i=c.x+n.wrap*c.scale,o=c.y,Ka(a,a,[r/c.scale,r/c.scale,t.pixelsPerMeter/e])}else r=e/t.zoomScale(s.z),i=(s.x+Math.pow(2,s.z)*n.wrap)*r,o=s.y*r;return qa(a,a,[i,o,0]),Ka(a,a,[r/Qa,r/Qa,1]),a}upVector(t,e,n){return[0,0,1]}upVectorScale(t,e,n){return{metersToTile:1}}}class Jd extends Kd{constructor(t){super(t),this.range=[4,7],this.center=t.center||[-96,37.5];const[e,n]=this.parallels=t.parallels||[29.5,45.5],r=Math.sin(x(e));this.n=(r+Math.sin(x(n)))/2,this.c=1+r*(2*this.n-r),this.r0=Math.sqrt(this.c)/this.n}project(t,e){const{n:n,c:r,r0:i}=this,o=x(t-this.center[0]),s=x(e),a=Math.sqrt(r-2*n*Math.sin(s))/n;return{x:a*Math.sin(o*n),y:a*Math.cos(o*n)-i,z:0}}unproject(t,e){const{n:n,c:r,r0:i}=this,o=i+e;let s=Math.atan2(t,Math.abs(o))*Math.sign(o);o*n<0&&(s-=Math.PI*Math.sign(t)*Math.sign(o));const a=x(this.center[0])*n;s=M(s,-Math.PI-a,Math.PI-a);const c=I(w(s/n)+this.center[0],-180,180),l=Math.asin(I((r-(t*t+o*o)*n*n)/(2*n),-1,1)),u=I(w(l),-Cl,Cl);return new yl(c,u)}}const $d=1.340264,tp=-.081106,ep=893e-6,np=.003796,rp=Math.sqrt(3)/2;class ip extends Kd{project(t,e){e=e/180*Math.PI,t=t/180*Math.PI;const n=Math.asin(rp*Math.sin(e)),r=n*n,i=r*r*r;return{x:.5*(t*Math.cos(n)/(rp*($d+3*tp*r+i*(7*ep+9*np*r)))/Math.PI+.5),y:1-.5*(n*($d+tp*r+i*(ep+np*r))/Math.PI+1),z:0}}unproject(t,e){t=(2*t-.5)*Math.PI;let n=e=(2*(1-e)-1)*Math.PI,r=n*n,i=r*r*r;for(let t,o,s,a=0;a<12&&(o=n*($d+tp*r+i*(ep+np*r))-e,s=$d+3*tp*r+i*(7*ep+9*np*r),t=o/s,n=I(n-t,-Math.PI/3,Math.PI/3),r=n*n,i=r*r*r,!(Math.abs(t)<1e-12));++a);const o=rp*t*($d+3*tp*r+i*(7*ep+9*np*r))/Math.cos(n),s=Math.asin(Math.sin(n)/rp),a=I(180*o/Math.PI,-180,180),c=I(180*s/Math.PI,-Cl,Cl);return new yl(a,c)}}class op extends Kd{constructor(t){super(t),this.wrap=!0,this.supportsWorldCopies=!0}project(t,e){return{x:.5+t/360,y:.5-e/360,z:0}}unproject(t,e){const n=360*(t-.5),r=I(360*(.5-e),-Cl,Cl);return new yl(n,r)}}const sp=Math.PI/2;function ap(t){return Math.tan((sp+t)/2)}class cp extends Kd{constructor(t){super(t),this.center=t.center||[0,30];const[e,n]=this.parallels=t.parallels||[30,30];let r=x(e),i=x(n);this.southernCenter=r+i<0,this.southernCenter&&(r=-r,i=-i);const o=Math.cos(r),s=ap(r);this.n=r===i?Math.sin(r):Math.log(o/Math.cos(i))/Math.log(ap(i)/s),this.f=o*Math.pow(ap(r),this.n)/this.n}project(t,e){e=x(e),this.southernCenter&&(e=-e),t=x(t-this.center[0]);const n=1e-6,{n:r,f:i}=this;i>0?e<-sp+n&&(e=-sp+n):e>sp-n&&(e=sp-n);const o=i/Math.pow(ap(e),r);let s=o*Math.sin(r*t),a=i-o*Math.cos(r*t);return s=.5*(s/Math.PI+.5),a=.5*(a/Math.PI+.5),{x:s,y:this.southernCenter?a:1-a,z:0}}unproject(t,e){t=(2*t-.5)*Math.PI,this.southernCenter&&(e=1-e),e=(2*(1-e)-.5)*Math.PI;const{n:n,f:r}=this,i=r-e,o=Math.sign(i),s=Math.sign(n)*Math.sqrt(t*t+i*i);let a=Math.atan2(t,Math.abs(i))*o;i*n<0&&(a-=Math.PI*Math.sign(t)*o);const c=I(w(a/n)+this.center[0],-180,180),l=I(w(2*Math.atan(Math.pow(r/s,1/n))-sp),-Cl,Cl);return new yl(c,this.southernCenter?-l:l)}}class lp extends Kd{constructor(t){super(t),this.wrap=!0,this.supportsWorldCopies=!0,this.supportsTerrain=!0,this.supportsFog=!0,this.supportsFreeCamera=!0,this.isReprojectedInTileSpace=!1,this.unsupportedLayers=[],this.range=null}project(t,e){return{x:vl(t),y:bl(e),z:0}}unproject(t,e){const n=wl(t),r=El(e);return new yl(n,r)}}const up=x(Cl);class hp extends Kd{project(t,e){const n=(e=x(e))*e,r=n*n;return{x:.5*((t=x(t))*(.8707-.131979*n+r*(r*(.003971*n-.001529*r)-.013791))/Math.PI+.5),y:1-.5*(e*(1.007226+n*(.015085+r*(.028874*n-.044475-.005916*r)))/Math.PI+1),z:0}}unproject(t,e){t=(2*t-.5)*Math.PI;let n=e=(2*(1-e)-1)*Math.PI,r=25,i=0,o=n*n;do{o=n*n;const t=o*o;i=(n*(1.007226+o*(.015085+t*(.028874*o-.044475-.005916*t)))-e)/(1.007226+o*(.045255+t*(.259866*o-.311325-.005916*11*t))),n=I(n-i,-up,up)}while(Math.abs(i)>1e-6&&--r>0);o=n*n;const s=I(w(t/(.8707+o*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979))),-180,180),a=w(n);return new yl(s,a)}}const fp=x(Cl);class dp extends Kd{project(t,e){e=x(e),t=x(t);const n=Math.cos(e),r=2/Math.PI,i=Math.acos(n*Math.cos(t/2)),o=Math.sin(i)/i,s=.5*(t*r+2*n*Math.sin(t/2)/o)||0,a=.5*(e+Math.sin(e)/o)||0;return{x:.5*(s/Math.PI+.5),y:1-.5*(a/Math.PI+1),z:0}}unproject(t,e){let n=t=(2*t-.5)*Math.PI,r=e=(2*(1-e)-1)*Math.PI,i=25;const o=1e-6;let s=0,a=0;do{const i=Math.cos(r),o=Math.sin(r),c=2*o*i,l=o*o,u=i*i,h=Math.cos(n/2),f=Math.sin(n/2),d=2*h*f,p=f*f,g=1-u*h*h,m=g?1/g:0,y=g?Math.acos(i*h)*Math.sqrt(1/g):0,_=.5*(2*y*i*f+2*n/Math.PI)-t,v=.5*(y*o+r)-e,b=.5*m*(u*p+y*i*h*l)+1/Math.PI,x=m*(d*c/4-y*o*f),w=.125*m*(c*f-y*o*u*d),E=.5*m*(l*h+y*p*i)+.5,S=x*w-E*b;s=(v*x-_*E)/S,a=(_*w-v*b)/S,n=I(n-s,-Math.PI,Math.PI),r=I(r-a,-fp,fp)}while((Math.abs(s)>o||Math.abs(a)>o)&&--i>0);return new yl(w(n),w(r))}}class pp extends Kd{constructor(t){super(t),this.center=t.center||[0,0],this.parallels=t.parallels||[0,0],this.cosPhi=Math.max(.01,Math.cos(x(this.parallels[0]))),this.scale=1/(2*Math.max(Math.PI*this.cosPhi,1/this.cosPhi)),this.wrap=!0,this.supportsWorldCopies=!0}project(t,e){const{scale:n,cosPhi:r}=this;return{x:x(t)*r*n+.5,y:-Math.sin(x(e))/r*n+.5,z:0}}unproject(t,e){const{scale:n,cosPhi:r}=this,i=-(e-.5)/n,o=I(w((t-.5)/n)/r,-180,180),s=Math.asin(I(i*r,-1,1)),a=I(w(s),-Cl,Cl);return new yl(o,a)}}class gp extends lp{constructor(t){super(t),this.requiresDraping=!0,this.supportsWorldCopies=!1,this.supportsFog=!0,this.zAxisUnit="pixels",this.unsupportedLayers=["debug"],this.range=[3,5]}projectTilePoint(t,e,n){const r=nl(t,e,n);return yc(r,r,ol(Xc(n))),{x:r[0],y:r[1],z:r[2]}}locationPoint(t,e){const n=el(e.lat,e.lng),r=pc([],n),i=t.elevation?t.elevation.getAtPointOrZero(t.locationCoordinate(e),t._centerAltitude):t._centerAltitude;dc(n,n,r,xl(1,0)*Qa*i);const o=Wa(new Float64Array(16));return Ya(o,t.pixelMatrix,t.globeMatrix),yc(n,n,o),new _(n[0],n[1])}pixelsPerMeter(t,e){return xl(1,0)*e}pixelSpaceConversion(t,e,n){const r=xl(1,t)*e,i=Bn(xl(1,45)*e,r,n);return this.pixelsPerMeter(t,e)/i}createTileMatrix(t,e,n){const r=sl(Xc(n.canonical));return Ya(new Float64Array(16),t.globeMatrix,r)}createInversionMatrix(t,e){const{center:n}=t,r=ol(Xc(e));return $a(r,r,x(n.lng)),Ja(r,r,x(n.lat)),Ka(r,r,[t._pixelsPerMercatorPixel,t._pixelsPerMercatorPixel,1]),Float32Array.from(r)}pointCoordinate(t,e,n,r){return Hc(t,e,n,!0)||new Il(0,0)}pointCoordinate3D(t,e,n){const r=this.pointCoordinate(t,e,n,0);return[r.x,r.y,r.z]}isPointAboveHorizon(t,e){return!Hc(t,e.x,e.y,!1)}farthestPixelDistance(t){const e=function(t,e){const n=t.cameraToCenterDistance,r=t._centerAltitude*e,i=t._camera,o=t._camera.forward(),s=ac([],fc([],o,-n),[0,0,r]),a=t.worldSize/(2*Math.PI),c=[0,0,-a],l=t.width/t.height,u=Math.tan(t.fovAboveCenter),h=fc([],i.up(),u),f=fc([],i.right(),u*l),d=pc([],ac([],ac([],o,h),f)),p=[];let g;if(new kc(s,d).closestPointOnSphere(c,a,p)){const e=ac([],p,c),n=bc([],e,s);g=Math.cos(t.fovAboveCenter)*oc(n)}else{const t=bc([],s,c),e=bc([],c,s);pc(e,e);const n=oc(t)-a;g=Math.sqrt(n*(n+2*a));const r=Math.acos(g/(a+n))-Math.acos(gc(o,e));g*=Math.cos(r)}return 1.01*g}(t,this.pixelsPerMeter(t.center.lat,t.worldSize)),n=cl(t.zoom);if(n>0){const r=Xd(t,xl(1,t.center.lat)*t.worldSize),i=t.worldSize/(2*Math.PI),o=Math.max(t.width,t.height)/t.worldSize*Math.PI;return Bn(e,r+i*(1-Math.cos(o)),Math.pow(n,10))}return e}upVector(t,e,n){return nl(e,n,t,1)}upVectorScale(t){return{metersToTile:Gc(rl(Xc(t)))}}}function mp(t){const e=t.parallels,n=!!e&&Math.abs(e[0]+e[1])<.01;switch(t.name){case"mercator":return new lp(t);case"equirectangular":return new op(t);case"naturalEarth":return new hp(t);case"equalEarth":return new ip(t);case"winkelTripel":return new dp(t);case"albers":return n?new pp(t):new Jd(t);case"lambertConformalConic":return n?new pp(t):new cp(t);case"globe":return new gp(t)}throw new Error("Invalid projection name: "+t.name)}const yp=xh.types,_p=[{name:"a_fade_opacity",components:1,type:"Uint8",offset:0}];function vp(t,e,n,r,i,o,s,a,c,l,u,h,f){const d=a?Math.min(Nd,Math.round(a[0])):0,p=a?Math.min(Nd,Math.round(a[1])):0;t.emplaceBack(e,n,Math.round(32*r),Math.round(32*i),o,s,(d<<1)+(c?1:0),p,16*l,16*u,256*h,256*f)}function bp(t,e,n,r,i,o,s){t.emplaceBack(e,n,r,i,o,s)}function xp(t,e,n,r,i){t.emplaceBack(e,n,r,i),t.emplaceBack(e,n,r,i),t.emplaceBack(e,n,r,i),t.emplaceBack(e,n,r,i)}function wp(t){for(const e of t.sections)if(Go(e.text))return!0;return!1}class Ep{constructor(t){this.layoutVertexArray=new Fs,this.indexArray=new Rs,this.programConfigurations=t,this.segments=new za,this.dynamicLayoutVertexArray=new As,this.opacityVertexArray=new Ls,this.placedSymbolArray=new qs,this.globeExtVertexArray=new Bs}isEmpty(){return 0===this.layoutVertexArray.length&&0===this.indexArray.length&&0===this.dynamicLayoutVertexArray.length&&0===this.opacityVertexArray.length}upload(t,e,n,r){this.isEmpty()||(n&&(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,sf.members),this.indexBuffer=t.createIndexBuffer(this.indexArray,e),this.dynamicLayoutVertexBuffer=t.createVertexBuffer(this.dynamicLayoutVertexArray,cf.members,!0),this.opacityVertexBuffer=t.createVertexBuffer(this.opacityVertexArray,_p,!0),this.globeExtVertexArray.length>0&&(this.globeExtVertexBuffer=t.createVertexBuffer(this.globeExtVertexArray,af.members,!0)),this.opacityVertexBuffer.itemSize=1),(n||r)&&this.programConfigurations.upload(t))}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.dynamicLayoutVertexBuffer.destroy(),this.opacityVertexBuffer.destroy(),this.globeExtVertexBuffer&&this.globeExtVertexBuffer.destroy())}}Di(Ep,"SymbolBuffers");class Sp{constructor(t,e,n){this.layoutVertexArray=new t,this.layoutAttributes=e,this.indexArray=new n,this.segments=new za,this.collisionVertexArray=new Ps,this.collisionVertexArrayExt=new Ds}upload(t){this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,this.layoutAttributes),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.collisionVertexBuffer=t.createVertexBuffer(this.collisionVertexArray,lf.members,!0),this.collisionVertexBufferExt=t.createVertexBuffer(this.collisionVertexArrayExt,uf.members,!0)}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.collisionVertexBuffer.destroy(),this.collisionVertexBufferExt.de
vendor: 26,412 bytes, line 27
27stroy())}}Di(Sp,"CollisionBuffers");class Cp{constructor(t){this.collisionBoxArray=t.collisionBoxArray,this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(t=>t.id),this.index=t.index,this.pixelRatio=t.pixelRatio,this.sourceLayerIndex=t.sourceLayerIndex,this.hasPattern=!1,this.hasRTLText=!1,this.fullyClipped=!1,this.sortKeyRanges=[],this.collisionCircleArray=[],this.placementInvProjMatrix=Wa([]),this.placementViewportMatrix=Wa([]);const e=this.layers[0]._unevaluatedLayout._values;this.textSizeData=pf(this.zoom,e["text-size"]),this.iconSizeData=pf(this.zoom,e["icon-size"]);const n=this.layers[0].layout,r=n.get("symbol-sort-key"),i=n.get("symbol-z-order");this.canOverlap=n.get("text-allow-overlap")||n.get("icon-allow-overlap")||n.get("text-ignore-placement")||n.get("icon-ignore-placement"),this.sortFeaturesByKey="viewport-y"!==i&&void 0!==r.constantOr(1),this.sortFeaturesByY=("viewport-y"===i||"auto"===i&&!this.sortFeaturesByKey)&&this.canOverlap,this.writingModes=n.get("text-writing-mode").map(t=>Kf[t]),this.stateDependentLayerIds=this.layers.filter(t=>t.isStateDependent()).map(t=>t.id),this.sourceID=t.sourceID,this.projection=t.projection}createArrays(){this.text=new Ep(new Fa(this.layers,this.zoom,t=>/^text/.test(t))),this.icon=new Ep(new Fa(this.layers,this.zoom,t=>/^icon/.test(t))),this.glyphOffsetArray=new $s,this.lineVertexArray=new ta,this.symbolInstances=new Js}calculateGlyphDependencies(t,e,n,r,i){for(let n=0;n<t.length;n++)if(e[t.charCodeAt(n)]=!0,r&&i){const r=vf[t.charAt(n)];r&&(e[r.charCodeAt(0)]=!0)}}populate(t,e,n,r){const i=this.layers[0],o=i.layout,s="globe"===this.projection.name,a=o.get("text-font"),c=o.get("text-field"),l=o.get("icon-image"),u=("constant"!==c.value.kind||c.value.value instanceof Ue&&!c.value.value.isEmpty()||c.value.value.toString().length>0)&&("constant"!==a.value.kind||a.value.value.length>0),h="constant"!==l.value.kind||!!l.value.value||Object.keys(l.parameters).length>0,f=o.get("symbol-sort-key");if(this.features=[],!u&&!h)return;const d=e.iconDependencies,p=e.glyphDependencies,g=e.availableImages,m=new rs(this.zoom);for(const{feature:e,id:c,index:l,sourceLayerIndex:y}of t){const t=i._featureFilter.needGeometry,_=Pl(e,t);if(!i._featureFilter.filter(m,_,n))continue;if(t||(_.geometry=kl(e,n,r)),s&&1!==e.type&&n.z<=5){const t=_.geometry,e=.98078528056,r=(t,r)=>gc(nl(t.x,t.y,n,1),nl(r.x,r.y,n,1))<e;for(let e=0;e<t.length;e++)t[e]=Bl(t[e],r)}let v,b;if(u){const t=i.getValueAndResolveTokens("text-field",_,n,g),e=Ue.factory(t);wp(e)&&(this.hasRTLText=!0),(!this.hasRTLText||"unavailable"===ts()||this.hasRTLText&&ns.isParsed())&&(v=_f(e,i,_))}if(h){const t=i.getValueAndResolveTokens("icon-image",_,n,g);b=t instanceof ke?t:ke.fromString(t)}if(!v&&!b)continue;const x=this.sortFeaturesByKey?f.evaluate(_,{},n):void 0;if(this.features.push({id:c,text:v,icon:b,index:l,sourceLayerIndex:y,geometry:_.geometry,properties:e.properties,type:yp[e.type],sortKey:x}),b&&(d[b.name]=!0),v){const t=a.evaluate(_,{},n).join(","),e="map"===o.get("text-rotation-alignment")&&"point"!==o.get("symbol-placement");this.allowVerticalPlacement=this.writingModes&&this.writingModes.indexOf(Kf.vertical)>=0;for(const n of v.sections)if(n.image)d[n.image.name]=!0;else{const r=Do(v.toString()),i=n.fontStack||t,o=p[i]=p[i]||{};this.calculateGlyphDependencies(n.text,o,e,this.allowVerticalPlacement,r)}}}"line"===o.get("symbol-placement")&&(this.features=function(t){const e={},n={},r=[];let i=0;function o(e){r.push(t[e]),i++}function s(t,e,i){const o=n[t];return delete n[t],n[e]=o,r[o].geometry[0].pop(),r[o].geometry[0]=r[o].geometry[0].concat(i[0]),o}function a(t,n,i){const o=e[n];return delete e[n],e[t]=o,r[o].geometry[0].shift(),r[o].geometry[0]=i[0].concat(r[o].geometry[0]),o}function c(t,e,n){const r=n?e[0][e[0].length-1]:e[0][0];return`${t}:${r.x}:${r.y}`}for(let l=0;l<t.length;l++){const u=t[l],h=u.geometry,f=u.text?u.text.toString():null;if(!f){o(l);continue}const d=c(f,h),p=c(f,h,!0);if(d in n&&p in e&&n[d]!==e[p]){const t=a(d,p,h),i=s(d,p,r[t].geometry);delete e[d],delete n[p],n[c(f,r[i].geometry,!0)]=i,r[t].geometry=null}else d in n?s(d,p,h):p in e?a(d,p,h):(o(l),e[d]=i-1,n[p]=i-1)}return r.filter(t=>t.geometry)}(this.features)),this.sortFeaturesByKey&&this.features.sort((t,e)=>t.sortKey-e.sortKey)}update(t,e,n,r){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(t,e,this.layers,n,r),this.icon.programConfigurations.updatePaintArrays(t,e,this.layers,n,r))}isEmpty(){return 0===this.symbolInstances.length&&!this.hasRTLText}uploadPending(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload}upload(t){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(t),this.iconCollisionBox.upload(t)),this.text.upload(t,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(t,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0}destroyDebugData(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()}getProjection(){return this.projectionInstance||(this.projectionInstance=mp(this.projection)),this.projectionInstance}destroy(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData()}addToLineVertexArray(t,e){const n=this.lineVertexArray.length;if(void 0!==t.segment)for(const{x:t,y:n}of e)this.lineVertexArray.emplaceBack(t,n);return{lineStartIndex:n,lineLength:this.lineVertexArray.length-n}}addSymbols(t,e,n,r,i,o,s,a,c,l,u,h,f,d){const p=t.indexArray,g=t.layoutVertexArray,m=t.globeExtVertexArray,y=t.segments.prepareSegment(4*e.length,g,p,this.canOverlap?o.sortKey:void 0),_=this.glyphOffsetArray.length,v=y.vertexLength,b=this.allowVerticalPlacement&&s===Kf.vertical?Math.PI/2:0,x=o.text&&o.text.sections;for(let r=0;r<e.length;r++){const{tl:i,tr:s,bl:l,br:u,tex:h,pixelOffsetTL:_,pixelOffsetBR:v,minFontScaleX:w,minFontScaleY:E,glyphOffset:S,isSDF:C,sectionIndex:A}=e[r],I=y.vertexLength,T=S[1];if(vp(g,c.x,c.y,i.x,T+i.y,h.x,h.y,n,C,_.x,_.y,w,E),vp(g,c.x,c.y,s.x,T+s.y,h.x+h.w,h.y,n,C,v.x,_.y,w,E),vp(g,c.x,c.y,l.x,T+l.y,h.x,h.y+h.h,n,C,_.x,v.y,w,E),vp(g,c.x,c.y,u.x,T+u.y,h.x+h.w,h.y+h.h,n,C,v.x,v.y,w,E),a){const{x:e,y:n,z:r}=a.anchor,[i,o,s]=a.up;bp(m,e,n,r,i,o,s),bp(m,e,n,r,i,o,s),bp(m,e,n,r,i,o,s),bp(m,e,n,r,i,o,s),xp(t.dynamicLayoutVertexArray,e,n,r,b)}else xp(t.dynamicLayoutVertexArray,c.x,c.y,c.z,b);p.emplaceBack(I,I+1,I+2),p.emplaceBack(I+1,I+2,I+3),y.vertexLength+=4,y.primitiveLength+=2,this.glyphOffsetArray.emplaceBack(S[0]),r!==e.length-1&&A===e[r+1].sectionIndex||t.programConfigurations.populatePaintArrays(g.length,o,o.index,{},f,d,x&&x[A])}const w=a?a.anchor:c;t.placedSymbolArray.emplaceBack(w.x,w.y,w.z,c.x,c.y,_,this.glyphOffsetArray.length-_,v,l,u,c.segment,n?n[0]:0,n?n[1]:0,r[0],r[1],s,0,!1,0,h,0)}_commitLayoutVertex(t,e,n,r,i,o,s){t.emplaceBack(e,n,r,i,o,Math.round(s.x),Math.round(s.y))}_addCollisionDebugVertices(t,e,n,r,i,o,s){const a=n.segments.prepareSegment(4,n.layoutVertexArray,n.indexArray),c=a.vertexLength,l=s.tileAnchorX,u=s.tileAnchorY;for(let t=0;t<4;t++)n.collisionVertexArray.emplaceBack(0,0,0,0);n.collisionVertexArrayExt.emplaceBack(e,-t.padding,-t.padding),n.collisionVertexArrayExt.emplaceBack(e,t.padding,-t.padding),n.collisionVertexArrayExt.emplaceBack(e,t.padding,t.padding),n.collisionVertexArrayExt.emplaceBack(e,-t.padding,t.padding),this._commitLayoutVertex(n.layoutVertexArray,r,i,o,l,u,new _(t.x1,t.y1)),this._commitLayoutVertex(n.layoutVertexArray,r,i,o,l,u,new _(t.x2,t.y1)),this._commitLayoutVertex(n.layoutVertexArray,r,i,o,l,u,new _(t.x2,t.y2)),this._commitLayoutVertex(n.layoutVertexArray,r,i,o,l,u,new _(t.x1,t.y2)),a.vertexLength+=4;const h=n.indexArray;h.emplaceBack(c,c+1),h.emplaceBack(c+1,c+2),h.emplaceBack(c+2,c+3),h.emplaceBack(c+3,c),a.primitiveLength+=4}_addTextDebugCollisionBoxes(t,e,n,r,i,o){for(let s=r;s<i;s++){const r=n.get(s),i=this.getSymbolInstanceTextSize(t,o,e,s);this._addCollisionDebugVertices(r,i,this.textCollisionBox,r.projectedAnchorX,r.projectedAnchorY,r.projectedAnchorZ,o)}}_addIconDebugCollisionBoxes(t,e,n,r,i,o){for(let s=r;s<i;s++){const r=n.get(s),i=this.getSymbolInstanceIconSize(t,e,o.placedIconSymbolIndex);this._addCollisionDebugVertices(r,i,this.iconCollisionBox,r.projectedAnchorX,r.projectedAnchorY,r.projectedAnchorZ,o)}}generateCollisionDebugBuffers(t,e){this.hasDebugData()&&this.destroyDebugData(),this.textCollisionBox=new Sp(Us,hf.members,Gs),this.iconCollisionBox=new Sp(Us,hf.members,Gs);const n=mf(this.iconSizeData,t),r=mf(this.textSizeData,t);for(let i=0;i<this.symbolInstances.length;i++){const o=this.symbolInstances.get(i);this._addTextDebugCollisionBoxes(r,t,e,o.textBoxStartIndex,o.textBoxEndIndex,o),this._addTextDebugCollisionBoxes(r,t,e,o.verticalTextBoxStartIndex,o.verticalTextBoxEndIndex,o),this._addIconDebugCollisionBoxes(n,t,e,o.iconBoxStartIndex,o.iconBoxEndIndex,o),this._addIconDebugCollisionBoxes(n,t,e,o.verticalIconBoxStartIndex,o.verticalIconBoxEndIndex,o)}}getSymbolInstanceTextSize(t,e,n,r){const i=this.text.placedSymbolArray.get(e.rightJustifiedTextSymbolIndex>=0?e.rightJustifiedTextSymbolIndex:e.centerJustifiedTextSymbolIndex>=0?e.centerJustifiedTextSymbolIndex:e.leftJustifiedTextSymbolIndex>=0?e.leftJustifiedTextSymbolIndex:e.verticalPlacedTextSymbolIndex>=0?e.verticalPlacedTextSymbolIndex:r),o=gf(this.textSizeData,t,i)/24;return this.tilePixelRatio*o}getSymbolInstanceIconSize(t,e,n){const r=this.icon.placedSymbolArray.get(n),i=gf(this.iconSizeData,t,r);return this.tilePixelRatio*i}_commitDebugCollisionVertexUpdate(t,e,n){t.emplaceBack(e,-n,-n),t.emplaceBack(e,n,-n),t.emplaceBack(e,n,n),t.emplaceBack(e,-n,n)}_updateTextDebugCollisionBoxes(t,e,n,r,i,o){for(let s=r;s<i;s++){const r=n.get(s),i=this.getSymbolInstanceTextSize(t,o,e,s);this._commitDebugCollisionVertexUpdate(this.textCollisionBox.collisionVertexArrayExt,i,r.padding)}}_updateIconDebugCollisionBoxes(t,e,n,r,i,o){for(let s=r;s<i;s++){const r=n.get(s),i=this.getSymbolInstanceIconSize(t,e,o);this._commitDebugCollisionVertexUpdate(this.iconCollisionBox.collisionVertexArrayExt,i,r.padding)}}updateCollisionDebugBuffers(t,e){if(!this.hasDebugData())return;this.hasTextCollisionBoxData()&&this.textCollisionBox.collisionVertexArrayExt.clear(),this.hasIconCollisionBoxData()&&this.iconCollisionBox.collisionVertexArrayExt.clear();const n=mf(this.iconSizeData,t),r=mf(this.textSizeData,t);for(let i=0;i<this.symbolInstances.length;i++){const o=this.symbolInstances.get(i);this._updateTextDebugCollisionBoxes(r,t,e,o.textBoxStartIndex,o.textBoxEndIndex,o),this._updateTextDebugCollisionBoxes(r,t,e,o.verticalTextBoxStartIndex,o.verticalTextBoxEndIndex,o),this._updateIconDebugCollisionBoxes(n,t,e,o.iconBoxStartIndex,o.iconBoxEndIndex,o.placedIconSymbolIndex),this._updateIconDebugCollisionBoxes(n,t,e,o.verticalIconBoxStartIndex,o.verticalIconBoxEndIndex,o.placedIconSymbolIndex)}this.hasTextCollisionBoxData()&&this.textCollisionBox.collisionVertexBufferExt&&this.textCollisionBox.collisionVertexBufferExt.updateData(this.textCollisionBox.collisionVertexArrayExt),this.hasIconCollisionBoxData()&&this.iconCollisionBox.collisionVertexBufferExt&&this.iconCollisionBox.collisionVertexBufferExt.updateData(this.iconCollisionBox.collisionVertexArrayExt)}_deserializeCollisionBoxesForSymbol(t,e,n,r,i,o,s,a,c){const l={};if(e<n){const{x1:n,y1:r,x2:i,y2:o,padding:s,projectedAnchorX:a,projectedAnchorY:c,projectedAnchorZ:u,tileAnchorX:h,tileAnchorY:f,featureIndex:d}=t.get(e);l.textBox={x1:n,y1:r,x2:i,y2:o,padding:s,projectedAnchorX:a,projectedAnchorY:c,projectedAnchorZ:u,tileAnchorX:h,tileAnchorY:f},l.textFeatureIndex=d}if(r<i){const{x1:e,y1:n,x2:i,y2:o,padding:s,projectedAnchorX:a,projectedAnchorY:c,projectedAnchorZ:u,tileAnchorX:h,tileAnchorY:f,featureIndex:d}=t.get(r);l.verticalTextBox={x1:e,y1:n,x2:i,y2:o,padding:s,projectedAnchorX:a,projectedAnchorY:c,projectedAnchorZ:u,tileAnchorX:h,tileAnchorY:f},l.verticalTextFeatureIndex=d}if(o<s){const{x1:e,y1:n,x2:r,y2:i,padding:s,projectedAnchorX:a,projectedAnchorY:c,projectedAnchorZ:u,tileAnchorX:h,tileAnchorY:f,featureIndex:d}=t.get(o);l.iconBox={x1:e,y1:n,x2:r,y2:i,padding:s,projectedAnchorX:a,projectedAnchorY:c,projectedAnchorZ:u,tileAnchorX:h,tileAnchorY:f},l.iconFeatureIndex=d}if(a<c){const{x1:e,y1:n,x2:r,y2:i,padding:o,projectedAnchorX:s,projectedAnchorY:c,projectedAnchorZ:u,tileAnchorX:h,tileAnchorY:f,featureIndex:d}=t.get(a);l.verticalIconBox={x1:e,y1:n,x2:r,y2:i,padding:o,projectedAnchorX:s,projectedAnchorY:c,projectedAnchorZ:u,tileAnchorX:h,tileAnchorY:f},l.verticalIconFeatureIndex=d}return l}deserializeCollisionBoxes(t){this.collisionArrays=[];for(let e=0;e<this.symbolInstances.length;e++){const n=this.symbolInstances.get(e);this.collisionArrays.push(this._deserializeCollisionBoxesForSymbol(t,n.textBoxStartIndex,n.textBoxEndIndex,n.verticalTextBoxStartIndex,n.verticalTextBoxEndIndex,n.iconBoxStartIndex,n.iconBoxEndIndex,n.verticalIconBoxStartIndex,n.verticalIconBoxEndIndex))}}hasTextData(){return this.text.segments.get().length>0}hasIconData(){return this.icon.segments.get().length>0}hasDebugData(){return this.textCollisionBox&&this.iconCollisionBox}hasTextCollisionBoxData(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0}hasIconCollisionBoxData(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0}addIndicesForPlacedSymbol(t,e){const n=t.placedSymbolArray.get(e),r=n.vertexStartIndex+4*n.numGlyphs;for(let e=n.vertexStartIndex;e<r;e+=4)t.indexArray.emplaceBack(e,e+1,e+2),t.indexArray.emplaceBack(e+1,e+2,e+3)}getSortedSymbolIndexes(t){if(this.sortedAngle===t&&void 0!==this.symbolInstanceIndexes)return this.symbolInstanceIndexes;const e=Math.sin(t),n=Math.cos(t),r=[],i=[],o=[];for(let t=0;t<this.symbolInstances.length;++t){o.push(t);const s=this.symbolInstances.get(t);r.push(0|Math.round(e*s.tileAnchorX+n*s.tileAnchorY)),i.push(s.featureIndex)}return o.sort((t,e)=>r[t]-r[e]||i[e]-i[t]),o}addToSortKeyRanges(t,e){const n=this.sortKeyRanges[this.sortKeyRanges.length-1];n&&n.sortKey===e?n.symbolInstanceEnd=t+1:this.sortKeyRanges.push({sortKey:e,symbolInstanceStart:t,symbolInstanceEnd:t+1})}sortFeatures(t){if(this.sortFeaturesByY&&this.sortedAngle!==t&&!(this.text.segments.get().length>1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(t),this.sortedAngle=t,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(const t of this.symbolInstanceIndexes){const e=this.symbolInstances.get(t);this.featureSortOrder.push(e.featureIndex);const{rightJustifiedTextSymbolIndex:n,centerJustifiedTextSymbolIndex:r,leftJustifiedTextSymbolIndex:i,verticalPlacedTextSymbolIndex:o,placedIconSymbolIndex:s,verticalPlacedIconSymbolIndex:a}=e;n>=0&&this.addIndicesForPlacedSymbol(this.text,n),r>=0&&r!==n&&this.addIndicesForPlacedSymbol(this.text,r),i>=0&&i!==r&&i!==n&&this.addIndicesForPlacedSymbol(this.text,i),o>=0&&this.addIndicesForPlacedSymbol(this.text,o),s>=0&&this.addIndicesForPlacedSymbol(this.icon,s),a>=0&&this.addIndicesForPlacedSymbol(this.icon,a)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}}}Di(Cp,"SymbolBucket",{omit:["layers","collisionBoxArray","features","compareText"]}),Cp.MAX_GLYPHS=65535,Cp.addDynamicAttributes=xp;const Ap=new gs({"symbol-placement":new fs(te.layout_symbol["symbol-placement"]),"symbol-spacing":new fs(te.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new fs(te.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new ds(te.layout_symbol["symbol-sort-key"]),"symbol-z-order":new fs(te.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new fs(te.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new fs(te.layout_symbol["icon-ignore-placement"]),"icon-optional":new fs(te.layout_symbol["icon-optional"]),"icon-rotation-alignment":new fs(te.layout_symbol["icon-rotation-alignment"]),"icon-size":new ds(te.layout_symbol["icon-size"]),"icon-text-fit":new fs(te.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new fs(te.layout_symbol["icon-text-fit-padding"]),"icon-image":new ds(te.layout_symbol["icon-image"]),"icon-rotate":new ds(te.layout_symbol["icon-rotate"]),"icon-padding":new fs(te.layout_symbol["icon-padding"]),"icon-keep-upright":new fs(te.layout_symbol["icon-keep-upright"]),"icon-offset":new ds(te.layout_symbol["icon-offset"]),"icon-anchor":new ds(te.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new fs(te.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new fs(te.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new fs(te.layout_symbol["text-rotation-alignment"]),"text-field":new ds(te.layout_symbol["text-field"]),"text-font":new ds(te.layout_symbol["text-font"]),"text-size":new ds(te.layout_symbol["text-size"]),"text-max-width":new ds(te.layout_symbol["text-max-width"]),"text-line-height":new ds(te.layout_symbol["text-line-height"]),"text-letter-spacing":new ds(te.layout_symbol["text-letter-spacing"]),"text-justify":new ds(te.layout_symbol["text-justify"]),"text-radial-offset":new ds(te.layout_symbol["text-radial-offset"]),"text-variable-anchor":new fs(te.layout_symbol["text-variable-anchor"]),"text-anchor":new ds(te.layout_symbol["text-anchor"]),"text-max-angle":new fs(te.layout_symbol["text-max-angle"]),"text-writing-mode":new fs(te.layout_symbol["text-writing-mode"]),"text-rotate":new ds(te.layout_symbol["text-rotate"]),"text-padding":new fs(te.layout_symbol["text-padding"]),"text-keep-upright":new fs(te.layout_symbol["text-keep-upright"]),"text-transform":new ds(te.layout_symbol["text-transform"]),"text-offset":new ds(te.layout_symbol["text-offset"]),"text-allow-overlap":new fs(te.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new fs(te.layout_symbol["text-ignore-placement"]),"text-optional":new fs(te.layout_symbol["text-optional"])});var Ip={paint:new gs({"icon-opacity":new ds(te.paint_symbol["icon-opacity"]),"icon-color":new ds(te.paint_symbol["icon-color"]),"icon-halo-color":new ds(te.paint_symbol["icon-halo-color"]),"icon-halo-width":new ds(te.paint_symbol["icon-halo-width"]),"icon-halo-blur":new ds(te.paint_symbol["icon-halo-blur"]),"icon-translate":new fs(te.paint_symbol["icon-translate"]),"icon-translate-anchor":new fs(te.paint_symbol["icon-translate-anchor"]),"text-opacity":new ds(te.paint_symbol["text-opacity"]),"text-color":new ds(te.paint_symbol["text-color"],{runtimeType:fe,getOverride:t=>t.textColor,hasOverride:t=>!!t.textColor}),"text-halo-color":new ds(te.paint_symbol["text-halo-color"]),"text-halo-width":new ds(te.paint_symbol["text-halo-width"]),"text-halo-blur":new ds(te.paint_symbol["text-halo-blur"]),"text-translate":new fs(te.paint_symbol["text-translate"]),"text-translate-anchor":new fs(te.paint_symbol["text-translate-anchor"])}),layout:Ap};class Tp{constructor(t){this.type=t.property.overrides?t.property.overrides.runtimeType:ce,this.defaultValue=t}evaluate(t){if(t.formattedSection){const e=this.defaultValue.property.overrides;if(e&&e.hasOverride(t.formattedSection))return e.getOverride(t.formattedSection)}return t.feature&&t.featureState?this.defaultValue.evaluate(t.feature,t.featureState):this.defaultValue.property.specification.default}eachChild(t){this.defaultValue.isConstant()||t(this.defaultValue.value._styleExpression.expression)}outputDefined(){return!1}serialize(){return null}}Di(Tp,"FormatSectionOverride",{omit:["defaultValue"]});class Mp extends Da{constructor(t){super(t,Ip)}recalculate(t,e){super.recalculate(t,e),"auto"===this.layout.get("icon-rotation-alignment")&&(this.layout._values["icon-rotation-alignment"]="point"!==this.layout.get("symbol-placement")?"map":"viewport"),"auto"===this.layout.get("text-rotation-alignment")&&(this.layout._values["text-rotation-alignment"]="point"!==this.layout.get("symbol-placement")?"map":"viewport"),"auto"===this.layout.get("text-pitch-alignment")&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),"auto"===this.layout.get("icon-pitch-alignment")&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment"));const n=this.layout.get("text-writing-mode");if(n){const t=[];for(const e of n)t.indexOf(e)<0&&t.push(e);this.layout._values["text-writing-mode"]=t}else this.layout._values["text-writing-mode"]="point"===this.layout.get("symbol-placement")?["horizontal"]:["horizontal","vertical"];this._setPaintOverrides()}getValueAndResolveTokens(t,e,n,r){const i=this.layout.get(t).evaluate(e,{},n,r),o=this._unevaluatedLayout._values[t];return o.isDataDriven()||Vr(o.value)||!i?i:function(t,e){return e.replace(/{([^{}]+)}/g,(e,n)=>n in t?String(t[n]):"")}(e.properties,i)}createBucket(t){return new Cp(t)}queryRadius(){return 0}queryIntersectsFeature(){return!1}_setPaintOverrides(){for(const t of Ip.paint.overridableProperties){if(!Mp.hasPaintOverride(this.layout,t))continue;const e=this.paint.get(t),n=new Tp(e),r=new Nr(n,e.property.specification);let i=null;i="constant"===e.value.kind||"source"===e.value.kind?new Hr("source",r):new Zr("composite",r,e.value.zoomStops,e.value._interpolationType),this.paint._values[t]=new us(e.property,i,e.parameters)}}_handleOverridablePaintPropertyUpdate(t,e,n){return!(!this.layout||e.isDataDriven()||n.isDataDriven())&&Mp.hasPaintOverride(this.layout,t)}static hasPaintOverride(t,e){const n=t.get("text-field"),r=Ip.paint.properties[e];let i=!1;const o=t=>{for(const e of t)if(r.overrides&&r.overrides.hasOverride(e))return void(i=!0)};if("constant"===n.value.kind&&n.value.value instanceof Ue)o(n.value.value.sections);else if("source"===n.value.kind){const t=e=>{i||(e instanceof Qe&&Re(e.value)===me?o(e.value.sections):e instanceof Ze?o(e.sections):e.eachChild(t))},e=n.value;e._styleExpression&&t(e._styleExpression.expression)}return i}getProgramConfiguration(t){return new Ma(this,t)}}var Fp={paint:new gs({"background-color":new fs(te.paint_background["background-color"]),"background-pattern":new fs(te.paint_background["background-pattern"]),"background-opacity":new fs(te.paint_background["background-opacity"])})},Bp={paint:new gs({"raster-opacity":new fs(te.paint_raster["raster-opacity"]),"raster-hue-rotate":new fs(te.paint_raster["raster-hue-rotate"]),"raster-brightness-min":new fs(te.paint_raster["raster-brightness-min"]),"raster-brightness-max":new fs(te.paint_raster["raster-brightness-max"]),"raster-saturation":new fs(te.paint_raster["raster-saturation"]),"raster-contrast":new fs(te.paint_raster["raster-contrast"]),"raster-resampling":new fs(te.paint_raster["raster-resampling"]),"raster-fade-duration":new fs(te.paint_raster["raster-fade-duration"])})};class Lp extends Da{constructor(t){super(t,{}),this.implementation=t}is3D(){return"3d"===this.implementation.renderingMode}hasOffscreenPass(){return void 0!==this.implementation.prerender}isLayerDraped(){return void 0!==this.implementation.renderToTile}shouldRedrape(){return!!this.implementation.shouldRerenderTiles&&this.implementation.shouldRerenderTiles()}recalculate(){}updateTransitions(){}hasTransition(){return!1}serialize(){}onAdd(t){this.implementation.onAdd&&this.implementation.onAdd(t,t.painter.context.gl)}onRemove(t){this.implementation.onRemove&&this.implementation.onRemove(t,t.painter.context.gl)}}var Op={paint:new gs({"sky-type":new fs(te.paint_sky["sky-type"]),"sky-atmosphere-sun":new fs(te.paint_sky["sky-atmosphere-sun"]),"sky-atmosphere-sun-intensity":new fs(te.paint_sky["sky-atmosphere-sun-intensity"]),"sky-gradient-center":new fs(te.paint_sky["sky-gradient-center"]),"sky-gradient-radius":new fs(te.paint_sky["sky-gradient-radius"]),"sky-gradient":new ps(te.paint_sky["sky-gradient"]),"sky-atmosphere-halo-color":new fs(te.paint_sky["sky-atmosphere-halo-color"]),"sky-atmosphere-color":new fs(te.paint_sky["sky-atmosphere-color"]),"sky-opacity":new fs(te.paint_sky["sky-opacity"])})};function Up(t,e,n){const r=[0,0,1],i=Ic([]);return Mc(i,i,n?-x(t)+Math.PI:x(t)),Tc(i,i,-x(e)),_c(r,r,i),pc(r,r)}const kp={circle:class extends Da{constructor(t){super(t,ru)}createBucket(t){return new jl(t)}queryRadius(t){const e=t;return Jl("circle-radius",this,e)+Jl("circle-stroke-width",this,e)+$l(this.paint.get("circle-translate"))}queryIntersectsFeature(t,e,n,r,i,o,s,a){const c=eu(this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),o.angle,t.pixelToTileUnitsFactor),l=this.paint.get("circle-radius").evaluate(e,n)+this.paint.get("circle-stroke-width").evaluate(e,n);return iu(t,r,o,s,a,"map"===this.paint.get("circle-pitch-alignment"),"map"===this.paint.get("circle-pitch-scale"),c,l)}getProgramIds(){return["circle"]}getProgramConfiguration(t){return new Ma(this,t)}},heatmap:class extends Da{createBucket(t){return new lu(t)}constructor(t){super(t,gu),this._updateColorRamp()}_handleSpecialPaintPropertyUpdate(t){"heatmap-color"===t&&this._updateColorRamp()}_updateColorRamp(){this.colorRamp=mu({expression:this._transitionablePaint._values["heatmap-color"].value.expression,evaluationKey:"heatmapDensity",image:this.colorRamp}),this.colorRampTexture=null}resize(){this.heatmapFbo&&(this.heatmapFbo.destroy(),this.heatmapFbo=null)}queryRadius(t){return Jl("heatmap-radius",this,t)}queryIntersectsFeature(t,e,n,r,i,o,s,a){const c=this.paint.get("heatmap-radius").evaluate(e,n);return iu(t,r,o,s,a,!0,!0,new _(0,0),c)}hasOffscreenPass(){return 0!==this.paint.get("heatmap-opacity")&&"none"!==this.visibility}getProgramIds(){return["heatmap","heatmapTexture"]}getProgramConfiguration(t){return new Ma(this,t)}},hillshade:class extends Da{constructor(t){super(t,yu)}hasOffscreenPass(){return 0!==this.paint.get("hillshade-exaggeration")&&"none"!==this.visibility}getProgramIds(){return["hillshade","hillshadePrepare"]}},fill:class extends Da{constructor(t){super(t,rh)}getProgramIds(){const t=this.paint.get("fill-pattern"),e=t&&t.constantOr(1),n=[e?"fillPattern":"fill"];return this.paint.get("fill-antialias")&&n.push(e&&!this.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline"),n}getProgramConfiguration(t){return new Ma(this,t)}recalculate(t,e){super.recalculate(t,e);const n=this.paint._values["fill-outline-color"];"constant"===n.value.kind&&void 0===n.value.value&&(this.paint._values["fill-outline-color"]=this.paint._values["fill-color"])}createBucket(t){return new eh(t)}
vendor: 5,241 bytes, line 27
27queryRadius(){return $l(this.paint.get("fill-translate"))}queryIntersectsFeature(t,e,n,r,i,o){return!t.queryGeometry.isAboveHorizon&&Nl(tu(t.tilespaceGeometry,this.paint.get("fill-translate"),this.paint.get("fill-translate-anchor"),o.angle,t.pixelToTileUnitsFactor),r)}isTileClipped(){return!0}},"fill-extrusion":class extends Da{constructor(t){super(t,Rh)}createBucket(t){return new Th(t)}queryRadius(){return $l(this.paint.get("fill-extrusion-translate"))}is3D(){return!0}getProgramIds(){return[this.paint.get("fill-extrusion-pattern").constantOr(1)?"fillExtrusionPattern":"fillExtrusion"]}getProgramConfiguration(t){return new Ma(this,t)}queryIntersectsFeature(t,e,n,r,i,o,s,a,c){const l=eu(this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),o.angle,t.pixelToTileUnitsFactor),u=this.paint.get("fill-extrusion-height").evaluate(e,n),h=this.paint.get("fill-extrusion-base").evaluate(e,n),f=[0,0],d=a&&o.elevation,p=o.elevation?o.elevation.exaggeration():1,g=t.tile.getBucket(this);if(d&&g instanceof Th){const t=g.centroidVertexArray,e=c+1;e<t.length&&(f[0]=t.geta_centroid_pos0(e),f[1]=t.geta_centroid_pos1(e))}if(0===f[0]&&1===f[1])return!1;"globe"===o.projection.name&&(r=Ph([r],[new _(0,0),new _(Qa,Qa)],t.tileID.canonical).map(t=>t.polygon).flat());const m=d?a:null,[y,v]=function(t,e,n,r,i,o,s,a,c,l,u){return"globe"===t.projection.name?function(t,e,n,r,i,o,s,a,c,l,u){const h=[],f=[],d=t.projection.upVectorScale(u,t.center.lat,t.worldSize).metersToTile,p=[0,0,0,1],g=[0,0,0,1],m=(t,e,n,r)=>{t[0]=e,t[1]=n,t[2]=r,t[3]=1},y=kh();n>0&&(n+=y),r+=y;for(const y of e){const e=[],_=[];for(const h of y){const f=h.x+i.x,y=h.y+i.y,v=t.projection.projectTilePoint(f,y,u),b=t.projection.upVector(u,h.x,h.y);let x=n,w=r;if(s){const t=Wh(f,y,n,r,s,a,c,l);x+=t.base,w+=t.top}0!==n?m(p,v.x+b[0]*d*x,v.y+b[1]*d*x,v.z+b[2]*d*x):m(p,v.x,v.y,v.z),m(g,v.x+b[0]*d*w,v.y+b[1]*d*w,v.z+b[2]*d*w),yc(p,p,o),yc(g,g,o),e.push(new Gh(p[0],p[1],p[2])),_.push(new Gh(g[0],g[1],g[2]))}h.push(e),f.push(_)}return[h,f]}(t,e,n,r,i,o,s,a,c,l,u):s?function(t,e,n,r,i,o,s,a,c){const l=[],u=[],h=[0,0,0,1];for(const f of t){const t=[],d=[];for(const l of f){const u=l.x+r.x,f=l.y+r.y,p=Wh(u,f,e,n,o,s,a,c);h[0]=u,h[1]=f,h[2]=p.base,h[3]=1,Cc(h,h,i),h[3]=Math.max(h[3],1e-5);const g=new Gh(h[0]/h[3],h[1]/h[3],h[2]/h[3]);h[0]=u,h[1]=f,h[2]=p.top,h[3]=1,Cc(h,h,i),h[3]=Math.max(h[3],1e-5);const m=new Gh(h[0]/h[3],h[1]/h[3],h[2]/h[3]);t.push(g),d.push(m)}l.push(t),u.push(d)}return[l,u]}(e,n,r,i,o,s,a,c,l):function(t,e,n,r,i){const o=[],s=[],a=i[8]*e,c=i[9]*e,l=i[10]*e,u=i[11]*e,h=i[8]*n,f=i[9]*n,d=i[10]*n,p=i[11]*n;for(const e of t){const t=[],n=[];for(const o of e){const e=o.x+r.x,s=o.y+r.y,g=i[0]*e+i[4]*s+i[12],m=i[1]*e+i[5]*s+i[13],y=i[2]*e+i[6]*s+i[14],_=i[3]*e+i[7]*s+i[15],v=g+a,b=m+c,x=y+l,w=Math.max(_+u,1e-5),E=g+h,S=m+f,C=y+d,A=Math.max(_+p,1e-5);t.push(new Gh(v/w,b/w,x/w)),n.push(new Gh(E/A,S/A,C/A))}o.push(t),s.push(n)}return[o,s]}(e,n,r,i,o)}(o,r,h,u,l,s,m,f,p,o.center.lat,t.tileID.canonical),b=t.queryGeometry;return function(t,e,n){let r=1/0;Nl(n,e)&&(r=Zh(n,e[0]));for(let i=0;i<e.length;i++){const o=e[i],s=t[i];for(let t=0;t<o.length-1;t++){const e=o[t],i=[e,o[t+1],s[t+1],s[t],e];zl(n,i)&&(r=Math.min(r,Zh(n,i)))}}return r!==1/0&&r}(y,v,b.isPointQuery()?b.screenBounds:b.screenGeometry)}},line:class extends Da{constructor(t){super(t,nf),this.gradientVersion=0}_handleSpecialPaintPropertyUpdate(t){if("line-gradient"===t){const t=this._transitionablePaint._values["line-gradient"].value.expression;this.stepInterpolant=t._styleExpression&&t._styleExpression.expression instanceof Fn,this.gradientVersion=(this.gradientVersion+1)%Number.MAX_SAFE_INTEGER}}gradientExpression(){return this._transitionablePaint._values["line-gradient"].value.expression}widthExpression(){return this._transitionablePaint._values["line-width"].value.expression}recalculate(t,e){super.recalculate(t,e),this.paint._values["line-floorwidth"]=rf.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,t)}createBucket(t){return new tf(t)}getProgramIds(){return[this.paint.get("line-pattern").constantOr(1)?"linePattern":"line"]}getProgramConfiguration(t){return new Ma(this,t)}queryRadius(t){const e=t,n=of(Jl("line-width",this,e),Jl("line-gap-width",this,e)),r=Jl("line-offset",this,e);return n/2+Math.abs(r)+$l(this.paint.get("line-translate"))}queryIntersectsFeature(t,e,n,r,i,o){if(t.queryGeometry.isAboveHorizon)return!1;const s=tu(t.tilespaceGeometry,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),o.angle,t.pixelToTileUnitsFactor),a=t.pixelToTileUnitsFactor/2*of(this.paint.get("line-width").evaluate(e,n),this.paint.get("line-gap-width").evaluate(e,n)),c=this.paint.get("line-offset").evaluate(e,n);return c&&(r=function(t,e){const n=[],r=new _(0,0);for(let i=0;i<t.length;i++){const o=t[i],s=[];for(let t=0;t<o.length;t++){const n=o[t],i=o[t+1],a=0===t?r:n.sub(o[t-1])._unit()._perp(),c=t===o.length-1?r:i.sub(n)._unit()._perp(),l=a._add(c)._unit();l._mult(1/(l.x*c.x+l.y*c.y)),s.push(l._mult(e)._add(n))}n.push(s)}return n}(r,c*t.pixelToTileUnitsFactor)),function(t,e,n){for(let r=0;r<e.length;r++){const i=e[r];if(t.length>=3)for(let e=0;e<i.length;e++)if(Yl(t,i[e]))return!0;
vendor: 10,898 bytes, line 27
27if(Vl(t,i,n))return!0}return!1}(s,r,a)}isTileClipped(){return!0}},symbol:Mp,background:class extends Da{constructor(t){super(t,Fp)}getProgramIds(){return[this.paint.get("background-pattern")?"backgroundPattern":"background"]}},raster:class extends Da{constructor(t){super(t,Bp)}getProgramIds(){return["raster"]}},sky:class extends Da{constructor(t){super(t,Op),this._updateColorRamp()}_handleSpecialPaintPropertyUpdate(t){"sky-gradient"===t?this._updateColorRamp():"sky-atmosphere-sun"!==t&&"sky-atmosphere-halo-color"!==t&&"sky-atmosphere-color"!==t&&"sky-atmosphere-sun-intensity"!==t||(this._skyboxInvalidated=!0)}_updateColorRamp(){this.colorRamp=mu({expression:this._transitionablePaint._values["sky-gradient"].value.expression,evaluationKey:"skyRadialProgress"}),this.colorRampTexture&&(this.colorRampTexture.destroy(),this.colorRampTexture=null)}needsSkyboxCapture(t){if(this._skyboxInvalidated||!this.skyboxTexture||!this.skyboxGeometry)return!0;if(!this.paint.get("sky-atmosphere-sun")){const e=t.style.light.properties.get("position");return this._lightPosition.azimuthal!==e.azimuthal||this._lightPosition.polar!==e.polar}return!1}getCenter(t,e){if("atmosphere"===this.paint.get("sky-type")){const n=this.paint.get("sky-atmosphere-sun"),r=!n,i=t.style.light,o=i.properties.get("position");return r&&"viewport"===i.properties.get("anchor")&&G("The sun direction is attached to a light with viewport anchor, lighting may behave unexpectedly."),r?Up(o.azimuthal,90-o.polar,e):Up(n[0],90-n[1],e)}const n=this.paint.get("sky-gradient-center");return Up(n[0],90-n[1],e)}is3D(){return!1}isSky(){return!0}markSkyboxValid(t){this._skyboxInvalidated=!1,this._lightPosition=t.style.light.properties.get("position")}hasOffscreenPass(){return!0}getProgramIds(){const t=this.paint.get("sky-type");return"atmosphere"===t?["skyboxCapture","skybox"]:"gradient"===t?["skyboxGradient"]:null}}};class Pp{constructor(t,e,n,r){this.context=t,this.format=n,this.texture=t.gl.createTexture(),this.update(e,r)}update(t,n,r){const{width:i,height:o}=t,{context:s}=this,{gl:a}=s,{HTMLImageElement:c,HTMLCanvasElement:l,HTMLVideoElement:u,ImageData:h,ImageBitmap:f}=e;if(a.bindTexture(a.TEXTURE_2D,this.texture),s.pixelStoreUnpackFlipY.set(!1),s.pixelStoreUnpack.set(1),s.pixelStoreUnpackPremultiplyAlpha.set(this.format===a.RGBA&&(!n||!1!==n.premultiply)),r||this.size&&this.size[0]===i&&this.size[1]===o){const{x:e,y:n}=r||{x:0,y:0};t instanceof c||t instanceof l||t instanceof u||t instanceof h||f&&t instanceof f?a.texSubImage2D(a.TEXTURE_2D,0,e,n,a.RGBA,a.UNSIGNED_BYTE,t):a.texSubImage2D(a.TEXTURE_2D,0,e,n,i,o,a.RGBA,a.UNSIGNED_BYTE,t.data)}else this.size=[i,o],t instanceof c||t instanceof l||t instanceof u||t instanceof h||f&&t instanceof f?a.texImage2D(a.TEXTURE_2D,0,this.format,this.format,a.UNSIGNED_BYTE,t):a.texImage2D(a.TEXTURE_2D,0,this.format,i,o,0,this.format,a.UNSIGNED_BYTE,t.data);this.useMipmap=Boolean(n&&n.useMipmap&&this.isSizePowerOfTwo()),this.useMipmap&&a.generateMipmap(a.TEXTURE_2D)}bind(t,e){const{context:n}=this,{gl:r}=n;r.bindTexture(r.TEXTURE_2D,this.texture),t!==this.filter&&(r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,t),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,this.useMipmap?t===r.NEAREST?r.NEAREST_MIPMAP_NEAREST:r.LINEAR_MIPMAP_NEAREST:t),this.filter=t),e!==this.wrap&&(r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,e),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,e),this.wrap=e)}isSizePowerOfTwo(){return this.size[0]===this.size[1]&&Math.log(this.size[0])/Math.LN2%1==0}destroy(){const{gl:t}=this.context;t.deleteTexture(this.texture),this.texture=null}}class Dp{constructor(t){this._callback=t,this._triggered=!1,"undefined"!=typeof MessageChannel&&(this._channel=new MessageChannel,this._channel.port2.onmessage=()=>{this._triggered=!1,this._callback()})}trigger(){this._triggered||(this._triggered=!0,this._channel?this._channel.port1.postMessage(!0):setTimeout(()=>{this._triggered=!1,this._callback()},0))}remove(){this._channel=void 0,this._callback=()=>{}}}class Rp{constructor(){this.tasks={},this.taskQueue=[],R(["process"],this),this.invoker=new Dp(this.process),this.nextId=0}add(t,e){const n=this.nextId++,r=function({type:t,isSymbolTile:e,zoom:n}){return n=n||0,"message"===t?0:"maybePrepare"!==t||e?"parseTile"!==t||e?"parseTile"===t&&e?300-n:"maybePrepare"===t&&e?400-n:500:200-n:100-n}(e);if(0===r){W();try{t()}finally{}return{cancel:()=>{}}}return this.tasks[n]={fn:t,metadata:e,priority:r,id:n},this.taskQueue.push(n),this.invoker.trigger(),{cancel:()=>{delete this.tasks[n]}}}process(){W();try{if(this.taskQueue=this.taskQueue.filter(t=>!!this.tasks[t]),!this.taskQueue.length)return;const t=this.pick();if(null===t)return;const e=this.tasks[t];if(delete this.tasks[t],this.taskQueue.length&&this.invoker.trigger(),!e)return;e.fn()}finally{}}pick(){let t=null,e=1/0;for(let n=0;n<this.taskQueue.length;n++){const r=this.tasks[this.taskQueue[n]];r.priority<e&&(e=r.priority,t=n)}if(null===t)return null;const n=this.taskQueue[t];return this.taskQueue.splice(t,1),n}remove(){this.invoker.remove()}}class jp{constructor(t){this._stringToNumber={},this._numberToString=[];for(let e=0;e<t.length;e++){const n=t[e];this._stringToNumber[n]=e,this._numberToString[e]=n}}encode(t){return this._stringToNumber[t]}decode(t){return this._numberToString[t]}}const zp=["tile","layer","source","sourceLayer","state"];class Qp{constructor(t,e,n,r,i){this.type="Feature",this._vectorTileFeature=t,this._z=e,this._x=n,this._y=r,this.properties=t.properties,this.id=i}get geometry(){return void 0===this._geometry&&(this._geometry=this._vectorTileFeature.toGeoJSON(this._x,this._y,this._z).geometry),this._geometry}set geometry(t){this._geometry=t}toJSON(){const t={type:"Feature",state:void 0,geometry:this.geometry,properties:this.properties};void 0!==this.id&&(t.id=this.id);for(const e of zp)void 0!==this[e]&&(t[e]=this[e]);return t}}const Np=new Uint16Array(8184);for(let t=0;t<2046;t++){let e=t+2,n=0,r=0,i=0,o=0,s=0,a=0;for(1&e?i=o=s=32:n=r=a=32;(e>>=1)>1;){const t=n+i>>1,c=r+o>>1;1&e?(i=n,o=r,n=s,r=a):(n=i,r=o,i=s,o=a),s=t,a=c}const c=4*t;Np[c+0]=n,Np[c+1]=r,Np[c+2]=i,Np[c+3]=o}const Vp=new Uint16Array(2178),Gp=new Uint8Array(1089),Hp=new Uint16Array(1089);function Zp(t){return 0===t?-.03125:32===t?.03125:0}var Wp=bs([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]);const Xp={type:2,extent:Qa,loadGeometry:()=>[[new _(0,0),new _(8193,0),new _(8193,8193),new _(0,8193),new _(0,0)]]};class Yp{constructor(t,e,n,r,i){this.tileID=t,this.uid=U(),this.uses=0,this.tileSize=e,this.tileZoom=n,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.hasRTLText=!1,this.dependencies={},this.isRaster=i,this.expiredRequestCount=0,this.state="loading",r&&r.transform&&(this.projection=r.transform.projection)}registerFadeDuration(t){const e=t+this.timeAdded;e<Xt.now()||this.fadeEndTime&&e<this.fadeEndTime||(this.fadeEndTime=e)}wasRequested(){return"errored"===this.state||"loaded"===this.state||"reloading"===this.state}get tileTransform(){return this._tileTransform||(this._tileTransform=Yd(this.tileID.canonical,this.projection)),this._tileTransform}loadVectorData(t,e,n){if(this.unloadVectorData(),this.state="loaded",t){t.featureIndex&&(this.latestFeatureIndex=t.featureIndex,t.rawTileData?(this.latestRawTileData=t.rawTileData,this.latestFeatureIndex.rawTileData=t.rawTileData):this.latestRawTileData&&(this.latestFeatureIndex.rawTileData=this.latestRawTileData)),this.collisionBoxArray=t.collisionBoxArray,this.buckets=function(t,e){const n={};if(!e)return n;for(const r of t){const t=r.layerIds.map(t=>e.getLayer(t)).filter(Boolean);if(0!==t.length){r.layers=t,r.stateDependentLayerIds&&(r.stateDependentLayers=r.stateDependentLayerIds.map(e=>t.filter(t=>t.id===e)[0]));for(const e of t)n[e.id]=r}}return n}(t.buckets,e.style),this.hasSymbolBuckets=!1;for(const t in this.buckets){const e=this.buckets[t];if(e instanceof Cp){if(this.hasSymbolBuckets=!0,!n)break;e.justReloaded=!0}}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(const t in this.buckets){const e=this.buckets[t];if(e instanceof Cp&&e.hasRTLText){this.hasRTLText=!0,ns.isLoading()||ns.isLoaded()||"deferred"!==ts()||es();break}}this.queryPadding=0;for(const t in this.buckets){const n=this.buckets[t];this.queryPadding=Math.max(this.queryPadding,e.style.getLayer(t).queryRadius(n))}t.imageAtlas&&(this.imageAtlas=t.imageAtlas),t.glyphAtlasImage&&(this.glyphAtlasImage=t.glyphAtlasImage),t.lineAtlas&&(this.lineAtlas=t.lineAtlas)}else this.collisionBoxArray=new Xs}unloadVectorData(){if(this.hasData()){for(const t in this.buckets)this.buckets[t].destroy();this.buckets={},this.imageAtlas&&(this.imageAtlas=null),this.lineAtlas&&(this.lineAtlas=null),this.imageAtlasTexture&&this.imageAtlasTexture.destroy(),this.glyphAtlasTexture&&this.glyphAtlasTexture.destroy(),this.lineAtlasTexture&&this.lineAtlasTexture.destroy(),this._tileBoundsBuffer&&(this._tileBoundsBuffer.destroy(),this._tileBoundsIndexBuffer.destroy(),this._tileBoundsSegments.destroy(),this._tileBoundsBuffer=null),this._tileDebugBuffer&&(this._tileDebugBuffer.destroy(),this._tileDebugSegments.destroy(),this._tileDebugBuffer=null),this._tileDebugIndexBuffer&&(this._tileDebugIndexBuffer.destroy(),this._tileDebugIndexBuffer=null),this._globeTileDebugBorderBuffer&&(this._globeTileDebugBorderBuffer.destroy(),this._globeTileDebugBorderBuffer=null),this._tileDebugTextBuffer&&(this._tileDebugTextBuffer.destroy(),this._tileDebugTextSegments.destroy(),this._tileDebugTextIndexBuffer.destroy(),this._tileDebugTextBuffer=null),this._globeTileDebugTextBuffer&&(this._globeTileDebugTextBuffer.destroy(),this._globeTileDebugTextBuffer=null),this.latestFeatureIndex=null,this.state="unloaded"}}getBucket(t){return this.buckets[t.id]}upload(t){for(const e in this.buckets){const n=this.buckets[e];n.uploadPending()&&n.upload(t)}const e=t.gl;this.imageAtlas&&!this.imageAtlas.uploaded&&(this.imageAtlasTexture=new Pp(t,this.imageAtlas.image,e.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&&(this.glyphAtlasTexture=new Pp(t,this.glyphAtlasImage,e.ALPHA),this.glyphAtlasImage=null),this.lineAtlas&&!this.lineAtlas.uploaded&&(this.lineAtlasTexture=new Pp(t,this.lineAtlas.image,e.ALPHA),this.lineAtlas.uploaded=!0)}prepare(t){this.imageAtlas&&this.imageAtlas.patchUpdatedImages(t,this.imageAtlasTexture)}queryRenderedFeatures(t,e,n,r,i,o,s,a){return this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData?this.latestFeatureIndex.query({tileResult:r,pixelPosMatrix:s,transform:o,params:i,tileTransform:this.tileTransform},t,e,n):{}}querySourceFeatures(t,e){const n=this.latestFeatureIndex;if(!n||!n.rawTileData)return;const r=n.loadVTLayers(),i=e?e.sourceLayer:"",o=r._geojsonTileLayer||r[i];if(!o)return;const s=ri(e&&e.filter),{z:a,x:c,y:l}=this.tileID.canonical,u={z:a,x:c,y:l};for(let e=0;e<o.length;e++){const r=o.feature(e);
vendor: 6,041 bytes, line 27
27if(s.needGeometry){const t=Pl(r,!0);if(!s.filter(new rs(this.tileID.overscaledZ),t,this.tileID.canonical))continue}else if(!s.filter(new rs(this.tileID.overscaledZ),r))continue;const h=n.getId(r,i),f=new Qp(r,a,c,l,h);f.tile=u,t.push(f)}}hasData(){return"loaded"===this.state||"reloading"===this.state||"expired"===this.state}patternsLoaded(){return!!this.imageAtlas&&!!Object.keys(this.imageAtlas.patternPositions).length}setExpiryData(t){const e=this.expirationTime;if(t.cacheControl){const e=X(t.cacheControl);e["max-age"]&&(this.expirationTime=Date.now()+1e3*e["max-age"])}else t.expires&&(this.expirationTime=new Date(t.expires).getTime());if(this.expirationTime){const t=Date.now();let n=!1;if(this.expirationTime>t)n=!1;else if(e)if(this.expirationTime<e)n=!0;else{const r=this.expirationTime-e;r?this.expirationTime=t+Math.max(r,3e4):n=!0}else n=!0;n?(this.expiredRequestCount++,this.state="expired"):this.expiredRequestCount=0}}getExpiryTimeout(){if(this.expirationTime)return this.expiredRequestCount?1e3*(1<<Math.min(this.expiredRequestCount-1,31)):Math.min(this.expirationTime-(new Date).getTime(),Math.pow(2,31)-1)}setFeatureState(t,e){if(!this.latestFeatureIndex||!this.latestFeatureIndex.rawTileData||0===Object.keys(t).length||!e)return;const n=this.latestFeatureIndex.loadVTLayers(),r=e.style.listImages();for(const i in this.buckets){if(!e.style.hasLayer(i))continue;const o=this.buckets[i],s=o.layers[0].sourceLayer||"_geojsonTileLayer",a=n[s],c=t[s];if(!a||!c||0===Object.keys(c).length)continue;if(o.update(c,a,r,this.imageAtlas&&this.imageAtlas.patternPositions||{}),o instanceof tf||o instanceof eh){const t=e.style._getSourceCache(o.layers[0].source);e._terrain&&e._terrain.enabled&&t&&o.programConfigurations.needsUpload&&e._terrain._clearRenderCacheForTile(t.id,this.tileID)}const l=e&&e.style&&e.style.getLayer(i);l&&(this.queryPadding=Math.max(this.queryPadding,l.queryRadius(o)))}}holdingForFade(){return void 0!==this.symbolFadeHoldUntil}symbolFadeFinished(){return!this.symbolFadeHoldUntil||this.symbolFadeHoldUntil<Xt.now()}clearFadeHold(){this.symbolFadeHoldUntil=void 0}setHoldDuration(t){this.symbolFadeHoldUntil=Xt.now()+t}setTexture(t,e){const n=e.context,r=n.gl;this.texture=this.texture||e.getTileTexture(t.width),this.texture?this.texture.update(t,{useMipmap:!0}):(this.texture=new Pp(n,t,r.RGBA,{useMipmap:!0}),this.texture.bind(r.LINEAR,r.CLAMP_TO_EDGE))}setDependencies(t,e){const n={};for(const t of e)n[t]=!0;this.dependencies[t]=n}hasDependency(t,e){for(const n of t){const t=this.dependencies[n];if(t)for(const n of e)if(t[n])return!0}return!1}clearQueryDebugViz(){}_makeDebugTileBoundsBuffers(t,e){if(!e||"mercator"===e.name||this._tileDebugBuffer)return;const n=kl(Xp,this.tileID.canonical,this.tileTransform)[0],r=new ws,i=new Hs;for(let t=0;t<n.length;t++){const{x:e,y:o}=n[t];r.emplaceBack(e,o),i.emplaceBack(t)}i.emplaceBack(0),this._tileDebugIndexBuffer=t.createIndexBuffer(i),this._tileDebugBuffer=t.createVertexBuffer(r,Uc.members),this._tileDebugSegments=za.simpleSegment(0,0,r.length,i.length)}_makeTileBoundsBuffers(t,e){if(this._tileBoundsBuffer||!e||"mercator"===e.name)return;const n=kl(Xp,this.tileID.canonical,this.tileTransform)[0];let r,i;if(this.isRaster){const t=function(t,e){const n=Yd(t,e),r=Math.pow(2,t.z);for(let i=0;i<33;i++)for(let o=0;o<33;o++){const s=wl((t.x+(o+Zp(o))/32)/r),a=El((t.y+(i+Zp(i))/32)/r),c=e.project(s,a),l=33*i+o;Vp[2*l+0]=Math.round((c.x*n.scale-n.x)*Qa),Vp[2*l+1]=Math.round((c.y*n.scale-n.y)*Qa)}Gp.fill(0),Hp.fill(0);for(let t=2045;t>=0;t--){const e=4*t,n=Np[e+0],r=Np[e+1],i=Np[e+2],o=Np[e+3],s=n+i>>1,a=r+o>>1,c=s+a-r,l=a+n-s,u=33*r+n,h=33*o+i,f=33*a+s,d=Math.hypot((Vp[2*u+0]+Vp[2*h+0])/2-Vp[2*f+0],(Vp[2*u+1]+Vp[2*h+1])/2-Vp[2*f+1])>=16;Gp[f]=Gp[f]||(d?1:0),t<1022&&(Gp[f]=Gp[f]||Gp[33*(r+l>>1)+(n+c>>1)]||Gp[33*(o+l>>1)+(i+c>>1)])}const i=new Ss,o=new Rs;let s=0;function a(t,e){const n=33*e+t;return 0===Hp[n]&&(i.emplaceBack(Vp[2*n+0],Vp[2*n+1],t*Qa/32,e*Qa/32),Hp[n]=++s),Hp[n]-1}function c(t,e,n,r,i,s){const l=t+n>>1,u=e+r>>1;if(Math.abs(t-i)+Math.abs(e-s)>1&&Gp[33*u+l])c(i,s,t,e,l,u),c(n,r,i,s,l,u);else{const c=a(t,e),l=a(n,r),u=a(i,s);o.emplaceBack(c,l,u)}}return c(0,0,32,32,32,0),c(32,32,0,0,0,32),{vertices:i,indices:o}}(this.tileID.canonical,e);r=t.vertices,i=t.indices}else{r=new Ss,i=new Rs;for(const{x:t,y:e}of n)r.emplaceBack(t,e,0,0);const t=Wu(r.int16,void 0,4);for(let e=0;e<t.length;e+=3)i.emplaceBack(t[e],t[e+1],t[e+2])}this._tileBoundsBuffer=t.createVertexBuffer(r,Wp.members),this._tileBoundsIndexBuffer=t.createIndexBuffer(i),this._tileBoundsSegments=za.simpleSegment(0,0,r.length,i.length)}_makeGlobeTileDebugBuffers(t,e){const n=e.projection;if(!n||"globe"!==n.name||e.freezeTileCoverage)return;const r=this.tileID.canonical,i=ol(qc(r,e)),o=cl(e.zoom);let s;o>0&&(s=Xa(new Float64Array(16),e.globeMatrix)),this._makeGlobeTileDebugBorderBuffer(t,r,e,i,s,o),this._makeGlobeTileDebugTextBuffer(t,r,e,i,s,o)}_globePoint(t,e,n,r,i,o,s){let a=nl(t,e,n);if(o){const i=1<<n.z,c=vl(r.center.lng),l=bl(r.center.lat),u=(n.x+.5)/i-c;let h=0;u>.5?h=-1:u<-.5&&(h=1);let f=(t/Qa+n.x)/i+h,d=(e/Qa+n.y)/i;f=(f-c)*r._pixelsPerMercatorPixel+c,d=(d-l)*r._pixelsPerMercatorPixel+l;const p=[f*r.worldSize,d*r.worldSize,0];yc(p,p,o),a=Yc(a,p,s)}return yc(a,a,i)}_makeGlobeTileDebugBorderBuffer(t,e,n,r,i,o){const s=new ws,a=new Hs,c=new Es,l=(t,l,u,h,f)=>{const d=(u-t)/(f-1),p=(h-l)/(f-1),g=s.length;for(let u=0;u<f;u++){const h=t+u*d,f=l+u*p;s.emplaceBack(h,f);const m=this._globePoint(h,f,e,n,r,i,o);c.emplaceBack(m[0],m[1],m[2]),a.emplaceBack(g+u)}},u=Qa;l(0,0,u,0,16),l(u,0,u,u,16),l(u,u,0,u,16),l(0,u,0,0,16),this._tileDebugIndexBuffer=t.createIndexBuffer(a),this._tileDebugBuffer=t.createVertexBuffer(s,Uc.members),this._globeTileDebugBorderBuffer=t.createVertexBuffer(c,Oc.members),this._tileDebugSegments=za.simpleSegment(0,0,s.length,a.length)}_makeGlobeTileDebugTextBuffer(t,e,n,r,i,o){const s=new ws,a=new Rs,c=new Es,l=25;a.reserve(32),s.reserve(l),c.reserve(l);const u=(t,e)=>l*t+e;for(let t=0;t<l;t++){const a=2048*t;
vendor: 35,950 bytes, line 27
27for(let t=0;t<l;t++){const l=2048*t;s.emplaceBack(l,a);const u=this._globePoint(l,a,e,n,r,i,o);c.emplaceBack(u[0],u[1],u[2])}}for(let t=0;t<4;t++)for(let e=0;e<4;e++){const n=u(t,e),r=u(t,e+1),i=u(t+1,e),o=u(t+1,e+1);a.emplaceBack(n,r,i),a.emplaceBack(i,r,o)}this._tileDebugTextIndexBuffer=t.createIndexBuffer(a),this._tileDebugTextBuffer=t.createVertexBuffer(s,Uc.members),this._globeTileDebugTextBuffer=t.createVertexBuffer(c,Oc.members),this._tileDebugTextSegments=za.simpleSegment(0,0,l,32)}}class qp{constructor(){this.state={},this.stateChanges={},this.deletedStates={}}updateState(t,e,n){const r=String(e);if(this.stateChanges[t]=this.stateChanges[t]||{},this.stateChanges[t][r]=this.stateChanges[t][r]||{},L(this.stateChanges[t][r],n),null===this.deletedStates[t]){this.deletedStates[t]={};for(const e in this.state[t])e!==r&&(this.deletedStates[t][e]=null)}else if(this.deletedStates[t]&&null===this.deletedStates[t][r]){this.deletedStates[t][r]={};for(const e in this.state[t][r])n[e]||(this.deletedStates[t][r][e]=null)}else for(const e in n)this.deletedStates[t]&&this.deletedStates[t][r]&&null===this.deletedStates[t][r][e]&&delete this.deletedStates[t][r][e]}removeFeatureState(t,e,n){if(null===this.deletedStates[t])return;const r=String(e);if(this.deletedStates[t]=this.deletedStates[t]||{},n&&void 0!==e)null!==this.deletedStates[t][r]&&(this.deletedStates[t][r]=this.deletedStates[t][r]||{},this.deletedStates[t][r][n]=null);else if(void 0!==e)if(this.stateChanges[t]&&this.stateChanges[t][r])for(n in this.deletedStates[t][r]={},this.stateChanges[t][r])this.deletedStates[t][r][n]=null;else this.deletedStates[t][r]=null;else this.deletedStates[t]=null}getState(t,e){const n=String(e),r=L({},(this.state[t]||{})[n],(this.stateChanges[t]||{})[n]);if(null===this.deletedStates[t])return{};if(this.deletedStates[t]){const n=this.deletedStates[t][e];if(null===n)return{};for(const t in n)delete r[t]}return r}initializeTileState(t,e){t.setFeatureState(this.state,e)}coalesceChanges(t,e){const n={};for(const t in this.stateChanges){this.state[t]=this.state[t]||{};const e={};for(const n in this.stateChanges[t])this.state[t][n]||(this.state[t][n]={}),L(this.state[t][n],this.stateChanges[t][n]),e[n]=this.state[t][n];n[t]=e}for(const t in this.deletedStates){this.state[t]=this.state[t]||{};const e={};if(null===this.deletedStates[t])for(const n in this.state[t])e[n]={},this.state[t][n]={};else for(const n in this.deletedStates[t]){if(null===this.deletedStates[t][n])this.state[t][n]={};else if(this.state[t][n])for(const e of Object.keys(this.deletedStates[t][n]))delete this.state[t][n][e];e[n]=this.state[t][n]}n[t]=n[t]||{},L(n[t],e)}if(this.stateChanges={},this.deletedStates={},0!==Object.keys(n).length)for(const r in t)t[r].setFeatureState(n,e)}}class Kp{constructor(t){this.size=t,this.minimums=[],this.maximums=[],this.leaves=[]}getElevation(t,e){const n=this.toIdx(t,e);return{min:this.minimums[n],max:this.maximums[n]}}isLeaf(t,e){return this.leaves[this.toIdx(t,e)]}toIdx(t,e){return e*this.size+t}}function Jp(t,e,n,r){let i=0,o=Number.MAX_VALUE;for(let s=0;s<3;s++)if(Math.abs(r[s])<1e-15){if(n[s]<t[s]||n[s]>e[s])return null}else{const a=1/r[s];let c=(t[s]-n[s])*a,l=(e[s]-n[s])*a;if(c>l){const t=c;c=l,l=t}if(c>i&&(i=c),l<o&&(o=l),i>o)return null}return i}function $p(t,e,n,r,i,o,s,a,c,l,u){const h=r-t,f=i-e,d=o-n,p=s-t,g=a-e,m=c-n,y=u[1]*m-u[2]*g,_=u[2]*p-u[0]*m,v=u[0]*g-u[1]*p,b=h*y+f*_+d*v;if(Math.abs(b)<1e-15)return null;const x=1/b,w=l[0]-t,E=l[1]-e,S=l[2]-n,C=(w*y+E*_+S*v)*x;if(C<0||C>1)return null;const A=E*d-S*f,I=S*h-w*d,T=w*f-E*h,M=(u[0]*A+u[1]*I+u[2]*T)*x;return M<0||C+M>1?null:(p*A+g*I+m*T)*x}function tg(t,e,n){return(t-e)/(n-e)}function eg(t,e,n,r,i,o,s,a,c){const l=1<<n,u=o-r,h=s-i,f=(t+1)/l*u+r,d=(e+0)/l*h+i,p=(e+1)/l*h+i;a[0]=(t+0)/l*u+r,a[1]=d,c[0]=f,c[1]=p}class ng{constructor(t){if(this.maximums=[],this.minimums=[],this.leaves=[],this.childOffsets=[],this.nodeCount=0,this.dem=t,this._siblingOffset=[[0,0],[1,0],[0,1],[1,1]],!this.dem)return;const e=function(t){const e=Math.ceil(Math.log2(t.dim/8)),n=[];let r=Math.ceil(Math.pow(2,e));const i=1/r,o=(t,e,n,r,i)=>{const o=r?1:0,s=(t+1)*n-o,a=e*n,c=(e+1)*n-o;i[0]=t*n,i[1]=a,i[2]=s,i[3]=c};let s=new Kp(r);const a=[];for(let e=0;e<r*r;e++){o(e%r,Math.floor(e/r),i,!1,a);const n=ig(a[0],a[1],t),c=ig(a[2],a[1],t),l=ig(a[2],a[3],t),u=ig(a[0],a[3],t);s.minimums.push(Math.min(n,c,l,u)),s.maximums.push(Math.max(n,c,l,u)),s.leaves.push(1)}for(n.push(s),r/=2;r>=1;r/=2){const t=n[n.length-1];s=new Kp(r);for(let e=0;e<r*r;e++){o(e%r,Math.floor(e/r),2,!0,a);const n=t.getElevation(a[0],a[1]),i=t.getElevation(a[2],a[1]),c=t.getElevation(a[2],a[3]),l=t.getElevation(a[0],a[3]),u=t.isLeaf(a[0],a[1]),h=t.isLeaf(a[2],a[1]),f=t.isLeaf(a[2],a[3]),d=t.isLeaf(a[0],a[3]),p=Math.min(n.min,i.min,c.min,l.min),g=Math.max(n.max,i.max,c.max,l.max),m=u&&h&&f&&d;s.maximums.push(g),s.minimums.push(p),s.leaves.push(g-p<=5&&m?1:0)}n.push(s)}return n}(this.dem),n=e.length-1,r=e[n];this._addNode(r.minimums[0],r.maximums[0],r.leaves[0]),this._construct(e,0,0,n,0)}raycastRoot(t,e,n,r,i,o,s=1){return Jp([t,e,-100],[n,r,this.maximums[0]*s],i,o)}raycast(t,e,n,r,i,o,s=1){if(!this.nodeCount)return null;const a=this.raycastRoot(t,e,n,r,i,o,s);if(null==a)return null;const c=[],l=[],u=[],h=[],f=[{idx:0,t:a,nodex:0,nodey:0,depth:0}];for(;f.length>0;){const{idx:a,t:d,nodex:p,nodey:g,depth:m}=f.pop();if(this.leaves[a]){eg(p,g,m,t,e,n,r,u,h);const a=1<<m,c=(p+0)/a,l=(p+1)/a,f=(g+0)/a,y=(g+1)/a,_=ig(c,f,this.dem)*s,v=ig(l,f,this.dem)*s,b=ig(l,y,this.dem)*s,x=ig(c,y,this.dem)*s,w=$p(u[0],u[1],_,h[0],u[1],v,h[0],h[1],b,i,o),E=$p(h[0],h[1],b,u[0],h[1],x,u[0],u[1],_,i,o),S=Math.min(null!==w?w:Number.MAX_VALUE,null!==E?E:Number.MAX_VALUE);if(S!==Number.MAX_VALUE)return S;{const t=dc([],i,o,d);if(rg(_,v,x,b,tg(t[0],u[0],h[0]),tg(t[1],u[1],h[1]))>=t[2])return d}continue}let y=0;for(let f=0;f<this._siblingOffset.length;f++){eg((p<<1)+this._siblingOffset[f][0],(g<<1)+this._siblingOffset[f][1],m+1,t,e,n,r,u,h),u[2]=-100,h[2]=this.maximums[this.childOffsets[a]+f]*s;const d=Jp(u,h,i,o);if(null!=d){const t=d;c[f]=t;let e=!1;for(let n=0;n<y&&!e;n++)t>=c[l[n]]&&(l.splice(n,0,f),e=!0);e||(l[y]=f),y++}}for(let t=0;t<y;t++){const e=l[t];f.push({idx:this.childOffsets[a]+e,t:c[e],nodex:(p<<1)+this._siblingOffset[e][0],nodey:(g<<1)+this._siblingOffset[e][1],depth:m+1})}}return null}_addNode(t,e,n){return this.minimums.push(t),this.maximums.push(e),this.leaves.push(n),this.childOffsets.push(0),this.nodeCount++}_construct(t,e,n,r,i){if(1===t[r].isLeaf(e,n))return;this.childOffsets[i]||(this.childOffsets[i]=this.nodeCount);const o=r-1,s=t[o];let a=0,c=0;for(let t=0;t<this._siblingOffset.length;t++){const r=2*e+this._siblingOffset[t][0],i=2*n+this._siblingOffset[t][1],o=s.getElevation(r,i),l=s.isLeaf(r,i),u=this._addNode(o.min,o.max,l);l&&(a|=1<<t),c||(c=u)}for(let r=0;r<this._siblingOffset.length;r++)a&1<<r||this._construct(t,2*e+this._siblingOffset[r][0],2*n+this._siblingOffset[r][1],o,c+r)}}function rg(t,e,n,r,i,o){return Bn(Bn(t,n,o),Bn(e,r,o),i)}function ig(t,e,n){const r=n.dim,i=I(t*r-.5,0,r-1),o=I(e*r-.5,0,r-1),s=Math.floor(i),a=Math.floor(o),c=Math.min(s+1,r-1),l=Math.min(a+1,r-1);return rg(n.get(s,a),n.get(c,a),n.get(s,l),n.get(c,l),i-s,o-a)}const og={mapbox:[6553.6,25.6,.1,1e4],terrarium:[256,1,1/256,32768]};function sg(t,e,n){return(256*t*256+256*e+n)/10-1e4}function ag(t,e,n){return 256*t+e+n/256-32768}class cg{get tree(){return this._tree||this._buildQuadTree(),this._tree}constructor(t,e,n,r=!1,i=!1){if(this.uid=t,e.height!==e.width)throw new RangeError("DEM tiles must be square");if(n&&"mapbox"!==n&&"terrarium"!==n)return G(`"${n}" is not a valid encoding type. Valid types include "mapbox" and "terrarium".`);this.stride=e.height;const o=this.dim=e.height-2,s=new Uint32Array(e.data.buffer);if(this.pixels=new Uint8Array(e.data.buffer),this.encoding=n||"mapbox",this.borderReady=r,!r){for(let t=0;t<o;t++)s[this._idx(-1,t)]=s[this._idx(0,t)],s[this._idx(o,t)]=s[this._idx(o-1,t)],s[this._idx(t,-1)]=s[this._idx(t,0)],s[this._idx(t,o)]=s[this._idx(t,o-1)];s[this._idx(-1,-1)]=s[this._idx(0,0)],s[this._idx(o,-1)]=s[this._idx(o-1,0)],s[this._idx(-1,o)]=s[this._idx(0,o-1)],s[this._idx(o,o)]=s[this._idx(o-1,o-1)],i&&this._buildQuadTree()}}_buildQuadTree(){this._tree=new ng(this)}get(t,e,n=!1){n&&(t=I(t,-1,this.dim),e=I(e,-1,this.dim));const r=4*this._idx(t,e);return("terrarium"===this.encoding?ag:sg)(this.pixels[r],this.pixels[r+1],this.pixels[r+2])}static getUnpackVector(t){return og[t]}get unpackVector(){return og[this.encoding]}_idx(t,e){if(t<-1||t>=this.dim+1||e<-1||e>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(e+1)*this.stride+(t+1)}static pack(t,e){const n=[0,0,0,0],r=cg.getUnpackVector(e);let i=Math.floor((t+r[3])/r[2]);return n[2]=i%256,i=Math.floor(i/256),n[1]=i%256,i=Math.floor(i/256),n[0]=i,n}getPixels(){return new pu({width:this.stride,height:this.stride},this.pixels)}backfillBorder(t,e,n){if(this.dim!==t.dim)throw new Error("dem dimension mismatch");let r=e*this.dim,i=e*this.dim+this.dim,o=n*this.dim,s=n*this.dim+this.dim;switch(e){case-1:r=i-1;break;case 1:i=r+1}switch(n){case-1:o=s-1;break;case 1:s=o+1}const a=-e*this.dim,c=-n*this.dim;for(let e=o;e<s;e++)for(let n=r;n<i;n++){const r=4*this._idx(n,e),i=4*this._idx(n+a,e+c);this.pixels[r+0]=t.pixels[i+0],this.pixels[r+1]=t.pixels[i+1],this.pixels[r+2]=t.pixels[i+2],this.pixels[r+3]=t.pixels[i+3]}}onDeserialize(){this._tree&&(this._tree.dem=this)}}Di(cg,"DEMData"),Di(ng,"DemMinMaxQuadTree",{omit:["dem"]});class lg{constructor(t,e){this.max=t,this.onRemove=e,this.reset()}reset(){for(const t in this.data)for(const e of this.data[t])e.timeout&&clearTimeout(e.timeout),this.onRemove(e.value);return this.data={},this.order=[],this}add(t,e,n){const r=t.wrapped().key;void 0===this.data[r]&&(this.data[r]=[]);const i={value:e,timeout:void 0};if(void 0!==n&&(i.timeout=setTimeout(()=>{this.remove(t,i)},n)),this.data[r].push(i),this.order.push(r),this.order.length>this.max){const t=this._getAndRemoveByKey(this.order[0]);t&&this.onRemove(t)}return this}has(t){return t.wrapped().key in this.data}getAndRemove(t){return this.has(t)?this._getAndRemoveByKey(t.wrapped().key):null}_getAndRemoveByKey(t){const e=this.data[t].shift();return e.timeout&&clearTimeout(e.timeout),0===this.data[t].length&&delete this.data[t],this.order.splice(this.order.indexOf(t),1),e.value}getByKey(t){const e=this.data[t];return e?e[0].value:null}get(t){return this.has(t)?this.data[t.wrapped().key][0].value:null}remove(t,e){if(!this.has(t))return this;const n=t.wrapped().key,r=void 0===e?0:this.data[n].indexOf(e),i=this.data[n][r];return this.data[n].splice(r,1),i.timeout&&clearTimeout(i.timeout),0===this.data[n].length&&delete this.data[n],this.onRemove(i.value),this.order.splice(this.order.indexOf(n),1),this}setMaxSize(t){for(this.max=t;this.order.length>this.max;){const t=this._getAndRemoveByKey(this.order[0]);t&&this.onRemove(t)}return this}filter(t){const e=[];for(const n in this.data)for(const r of this.data[n])t(r.value)||e.push(r);for(const t of e)this.remove(t.value.tileID,t)}}class ug{constructor(t,e,n){this.func=t,this.mask=e,this.range=n}}ug.ReadOnly=!1,ug.ReadWrite=!0,ug.disabled=new ug(519,ug.ReadOnly,[0,1]);class hg{constructor(t,e,n,r,i,o){this.test=t,this.ref=e,this.mask=n,this.fail=r,this.depthFail=i,this.pass=o}}hg.disabled=new hg({func:519,mask:0},0,0,7680,7680,7680);class fg{constructor(t,e,n){this.blendFunction=t,this.blendColor=e,this.mask=n}}fg.Replace=[1,0],fg.disabled=new fg(fg.Replace,Be.transparent,[!1,!1,!1,!1]),fg.unblended=new fg(fg.Replace,Be.transparent,[!0,!0,!0,!0]),fg.alphaBlended=new fg([1,771],Be.transparent,[!0,!0,!0,!0]);class dg{constructor(t,e,n){this.enable=t,this.mode=e,this.frontFace=n}}dg.disabled=new dg(!1,1029,2305),dg.backCCW=new dg(!0,1029,2305),dg.backCW=new dg(!0,1029,2304),dg.frontCW=new dg(!0,1028,2304),dg.frontCCW=new dg(!0,1028,2305);class pg extends $t{constructor(t,e,n){super(),this.id=t,this._onlySymbols=n,e.on("data",t=>{"source"===t.dataType&&"metadata"===t.sourceDataType&&(this._sourceLoaded=!0),this._sourceLoaded&&!this._paused&&"source"===t.dataType&&"content"===t.sourceDataType&&(this.reload(),this.transform&&this.update(this.transform))}),e.on("error",()=>{this._sourceErrored=!0}),this._source=e,this._tiles={},this._cache=new lg(0,this._unloadTile.bind(this)),this._timers={},this._cacheTimers={},this._minTileCacheSize=e.minTileCacheSize,this._maxTileCacheSize=e.maxTileCacheSize,this._loadedParentTiles={},this._coveredTiles={},this._state=new qp,this._isRaster="raster"===this._source.type||"raster-dem"===this._source.type||"custom"===this._source.type&&"raster"===this._source._dataType}onAdd(t){this.map=t,this._minTileCacheSize=void 0===this._minTileCacheSize&&t?t._minTileCacheSize:this._minTileCacheSize,this._maxTileCacheSize=void 0===this._maxTileCacheSize&&t?t._maxTileCacheSize:this._maxTileCacheSize}loaded(){if(this._sourceErrored)return!0;if(!this._sourceLoaded)return!1;if(!this._source.loaded())return!1;for(const t in this._tiles){const e=this._tiles[t];if("loaded"!==e.state&&"errored"!==e.state)return!1}return!0}getSource(){return this._source}pause(){this._paused=!0}resume(){if(!this._paused)return;const t=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,t&&this.reload(),this.transform&&this.update(this.transform)}_loadTile(t,e){return t.isSymbolTile=this._onlySymbols,this._source.loadTile(t,e)}_unloadTile(t){if(this._source.unloadTile)return this._source.unloadTile(t,()=>{})}_abortTile(t){if(this._source.abortTile)return this._source.abortTile(t,()=>{})}serialize(){return this._source.serialize()}prepare(t){this._source.prepare&&this._source.prepare(),this._state.coalesceChanges(this._tiles,this.map?this.map.painter:null);for(const e in this._tiles){const n=this._tiles[e];n.upload(t),n.prepare(this.map.style.imageManager)}}getIds(){return B(this._tiles).map(t=>t.tileID).sort(gg).map(t=>t.key)}getRenderableIds(t){const e=[];for(const n in this._tiles)this._isIdRenderable(+n,t)&&e.push(this._tiles[n]);return t?e.sort((t,e)=>{const n=t.tileID,r=e.tileID,i=new _(n.canonical.x,n.canonical.y)._rotate(this.transform.angle),o=new _(r.canonical.x,r.canonical.y)._rotate(this.transform.angle);return n.overscaledZ-r.overscaledZ||o.y-i.y||o.x-i.x}).map(t=>t.tileID.key):e.map(t=>t.tileID).sort(gg).map(t=>t.key)}hasRenderableParent(t){const e=this.findLoadedParent(t,0);return!!e&&this._isIdRenderable(e.tileID.key)}_isIdRenderable(t,e){return this._tiles[t]&&this._tiles[t].hasData()&&!this._coveredTiles[t]&&(e||!this._tiles[t].holdingForFade())}reload(){if(this._paused)this._shouldReloadOnResume=!0;else{this._cache.reset();for(const t in this._tiles)"errored"!==this._tiles[t].state&&this._reloadTile(+t,"reloading")}}_reloadTile(t,e){const n=this._tiles[t];n&&("loading"!==n.state&&(n.state=e),this._loadTile(n,this._tileLoaded.bind(this,n,t,e)))}_tileLoaded(t,e,n,r){if(r)if(t.state="errored",404!==r.status)this._source.fire(new Jt(r,{tile:t}));else if("raster-dem"===this._source.type&&this.usedForTerrain&&this.map.painter.terrain){const t=this.map.painter.terrain;this.update(this.transform,t.getScaledDemTileSize(),!0),t.resetTileLookupCache(this.id)}else this.update(this.transform);else t.timeAdded=Xt.now(),"expired"===n&&(t.refreshedUponExpiration=!0),this._setTileReloadTimer(e,t),"raster-dem"===this._source.type&&t.dem&&this._backfillDEM(t),this._state.initializeTileState(t,this.map?this.map.painter:null),this._source.fire(new Kt("data",{dataType:"source",tile:t,coord:t.tileID,sourceCacheId:this.id}))}_backfillDEM(t){const e=this.getRenderableIds();for(let r=0;r<e.length;r++){const i=e[r];if(t.neighboringTiles&&t.neighboringTiles[i]){const e=this.getTileByID(i);n(t,e),n(e,t)}}function n(t,e){if(!t.dem||t.dem.borderReady)return;t.needsHillshadePrepare=!0,t.needsDEMTextureUpload=!0;let n=e.tileID.canonical.x-t.tileID.canonical.x;const r=e.tileID.canonical.y-t.tileID.canonical.y,i=Math.pow(2,t.tileID.canonical.z),o=e.tileID.key;0===n&&0===r||Math.abs(r)>1||(Math.abs(n)>1&&(1===Math.abs(n+i)?n+=i:1===Math.abs(n-i)&&(n-=i)),e.dem&&t.dem&&(t.dem.backfillBorder(e.dem,n,r),t.neighboringTiles&&t.neighboringTiles[o]&&(t.neighboringTiles[o].backfilled=!0)))}}getTile(t){return this.getTileByID(t.key)}getTileByID(t){return this._tiles[t]}_retainLoadedChildren(t,e,n,r){for(const i in this._tiles){let o=this._tiles[i];if(r[i]||!o.hasData()||o.tileID.overscaledZ<=e||o.tileID.overscaledZ>n)continue;let s=o.tileID;for(;o&&o.tileID.overscaledZ>e+1;){const t=o.tileID.scaledTo(o.tileID.overscaledZ-1);o=this._tiles[t.key],o&&o.hasData()&&(s=t)}let a=s;for(;a.overscaledZ>e;)if(a=a.scaledTo(a.overscaledZ-1),t[a.key]){r[s.key]=s;break}}}findLoadedParent(t,e){if(t.key in this._loadedParentTiles){const n=this._loadedParentTiles[t.key];return n&&n.tileID.overscaledZ>=e?n:null}for(let n=t.overscaledZ-1;n>=e;n--){const e=t.scaledTo(n),r=this._getLoadedTile(e);if(r)return r}}_getLoadedTile(t){const e=this._tiles[t.key];return e&&e.hasData()?e:this._cache.getByKey(this._source.reparseOverscaled?t.wrapped().key:t.canonical.key)}updateCacheSize(t,e){e=e||this._source.tileSize;const n=Math.ceil(t.width/e)+1,r=Math.ceil(t.height/e)+1,i=Math.floor(n*r*5),o="number"==typeof this._minTileCacheSize?Math.max(this._minTileCacheSize,i):i,s="number"==typeof this._maxTileCacheSize?Math.min(this._maxTileCacheSize,o):o;this._cache.setMaxSize(s)}handleWrapJump(t){const e=Math.round((t-(void 0===this._prevLng?t:this._prevLng))/360);if(this._prevLng=t,e){const t={};for(const n in this._tiles){const r=this._tiles[n];r.tileID=r.tileID.unwrapTo(r.tileID.wrap+e),t[r.tileID.key]=r}this._tiles=t;for(const t in this._timers)clearTimeout(this._timers[t]),delete this._timers[t];for(const t in this._tiles)this._setTileReloadTimer(+t,this._tiles[t])}}update(t,e,n){if(this.transform=t,!this._sourceLoaded||this._paused||this.transform.freezeTileCoverage)return;if(this.usedForTerrain&&!n)return;let r;this.updateCacheSize(t,e),"globe"!==this.transform.projection.name&&this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used||this.usedForTerrain?this._source.tileID?r=t.getVisibleUnwrappedCoordinates(this._source.tileID).map(t=>new Nh(t.canonical.z,t.wrap,t.canonical.z,t.canonical.x,t.canonical.y)):(r=t.coveringTiles({tileSize:e||this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom&&!n,reparseOverscaled:this._source.reparseOverscaled,isTerrainDEM:this.usedForTerrain}),this._source.hasTile&&(r=r.filter(t=>this._source.hasTile(t)))):r=[];const i=this._updateRetainedTiles(r);if(mg(this._source.type)&&0!==r.length){const t={},e={},n=Object.keys(i);for(const r of n){const n=i[r],o=this._tiles[r];if(!o||o.fadeEndTime&&o.fadeEndTime<=Xt.now())continue;const s=this.findLoadedParent(n,Math.max(n.overscaledZ-pg.maxOverzooming,this._source.minzoom));s&&(this._addTile(s.tileID),t[s.tileID.key]=s.tileID),e[r]=n}const o=r[r.length-1].overscaledZ;for(const t in this._tiles){const n=this._tiles[t];if(i[t]||!n.hasData())continue;let r=n.tileID;for(;r.overscaledZ>o;){r=r.scaledTo(r.overscaledZ-1);const o=this._tiles[r.key];if(o&&o.hasData()&&e[r.key]){i[t]=n.tileID;break}}}for(const e in t)i[e]||(this._coveredTiles[e]=!0,i[e]=t[e])}for(const t in i)this._tiles[t].clearFadeHold();const o=function(t,e){const n=[];for(const r in t)r in e||n.push(r);return n}(this._tiles,i);for(const t of o){const e=this._tiles[t];e.hasSymbolBuckets&&!e.holdingForFade()?e.setHoldDuration(this.map._fadeDuration):e.hasSymbolBuckets&&!e.symbolFadeFinished()||this._removeTile(+t)}this._updateLoadedParentTileCache(),this._onlySymbols&&this._source.afterUpdate&&this._source.afterUpdate()}releaseSymbolFadeTiles(){for(const t in this._tiles)this._tiles[t].holdingForFade()&&this._removeTile(+t)}_updateRetainedTiles(t){const e={};if(0===t.length)return e;const n={},r=t.reduce((t,e)=>Math.min(t,e.overscaledZ),1/0),i=t[0].overscaledZ,o=Math.max(i-pg.maxOverzooming,this._source.minzoom),s=Math.max(i+pg.maxUnderzooming,this._source.minzoom),a={};for(const n of t){const t=this._addTile(n);e[n.key]=n,t.hasData()||r<this._source.maxzoom&&(a[n.key]=n)}this._retainLoadedChildren(a,r,s,e);for(const r of t){let t=this._tiles[r.key];if(t.hasData())continue;if(r.canonical.z>=this._source.maxzoom){const t=r.children(this._source.maxzoom)[0],n=this.getTile(t);if(n&&n.hasData()){e[t.key]=t;continue}}else{const t=r.children(this._source.maxzoom);if(e[t[0].key]&&e[t[1].key]&&e[t[2].key]&&e[t[3].key])continue}let i=t.wasRequested();for(let s=r.overscaledZ-1;s>=o;--s){const o=r.scaledTo(s);if(n[o.key])break;if(n[o.key]=!0,t=this.getTile(o),!t&&i&&(t=this._addTile(o)),t&&(e[o.key]=o,i=t.wasRequested(),t.hasData()))break}}return e}_updateLoadedParentTileCache(){this._loadedParentTiles={};for(const t in this._tiles){const e=[];let n,r=this._tiles[t].tileID;for(;r.overscaledZ>0;){if(r.key in this._loadedParentTiles){n=this._loadedParentTiles[r.key];break}e.push(r.key);const t=r.scaledTo(r.overscaledZ-1);if(n=this._getLoadedTile(t),n)break;r=t}for(const t of e)this._loadedParentTiles[t]=n}}_addTile(t){let e=this._tiles[t.key];if(e)return e;e=this._cache.getAndRemove(t),e&&(this._setTileReloadTimer(t.key,e),e.tileID=t,this._state.initializeTileState(e,this.map?this.map.painter:null),this._cacheTimers[t.key]&&(clearTimeout(this._cacheTimers[t.key]),delete this._cacheTimers[t.key],this._setTileReloadTimer(t.key,e)));const n=Boolean(e);if(!n){const n=this.map?this.map.painter:null;e=new Yp(t,this._source.tileSize*t.overscaleFactor(),this.transform.tileZoom,n,this._isRaster),this._loadTile(e,this._tileLoaded.bind(this,e,t.key,e.state))}return e?(e.uses++,this._tiles[t.key]=e,n||this._source.fire(new Kt("dataloading",{tile:e,coord:e.tileID,dataType:"source"})),e):null}_setTileReloadTimer(t,e){t in this._timers&&(clearTimeout(this._timers[t]),delete this._timers[t]);const n=e.getExpiryTimeout();n&&(this._timers[t]=setTimeout(()=>{this._reloadTile(t,"expired"),delete this._timers[t]},n))}_removeTile(t){const e=this._tiles[t];e&&(e.uses--,delete this._tiles[t],this._timers[t]&&(clearTimeout(this._timers[t]),delete this._timers[t]),e.uses>0||(e.hasData()&&"reloading"!==e.state?this._cache.add(e.tileID,e,e.getExpiryTimeout()):(e.aborted=!0,this._abortTile(e),this._unloadTile(e))))}clearTiles(){this._shouldReloadOnResume=!1,this._paused=!1;for(const t in this._tiles)this._removeTile(+t);this._source._clear&&this._source._clear(),this._cache.reset(),this.map&&this.usedForTerrain&&this.map.painter.terrain&&this.map.painter.terrain.resetTileLookupCache(this.id)}tilesIn(t,e,n){const r=[],i=this.transform;if(!i)return r;const o="globe"===i.projection.name,s=vl(i.center.lng);for(const a in this._tiles){const c=this._tiles[a];if(n&&c.clearQueryDebugViz(),c.holdingForFade())continue;let l;if(o){const t=c.tileID.canonical;if(0===t.z){const e=[Math.abs(I(s,...yg(t,-1))-s),Math.abs(I(s,...yg(t,1))-s)];l=[0,2*e.indexOf(Math.min(...e))-1]}else{const e=[Math.abs(I(s,...yg(t,-1))-s),Math.abs(I(s,...yg(t,0))-s),Math.abs(I(s,...yg(t,1))-s)];l=[e.indexOf(Math.min(...e))-1]}}else l=[0];for(const n of l){const o=t.containsTile(c,i,e,n);o&&r.push(o)}}return r}getVisibleCoordinates(t){const e=this.getRenderableIds(t).map(t=>this._tiles[t].tileID);for(const t of e)t.projMatrix=this.transform.calculateProjMatrix(t.toUnwrapped());return e}hasTransition(){if(this._source.hasTransition())return!0;if(mg(this._source.type))for(const t in this._tiles){const e=this._tiles[t];if(void 0!==e.fadeEndTime&&e.fadeEndTime>=Xt.now())return!0}return!1}setFeatureState(t,e,n){this._state.updateState(t=t||"_geojsonTileLayer",e,n)}removeFeatureState(t,e,n){this._state.removeFeatureState(t=t||"_geojsonTileLayer",e,n)}getFeatureState(t,e){return this._state.getState(t=t||"_geojsonTileLayer",e)}setDependencies(t,e,n){const r=this._tiles[t];r&&r.setDependencies(e,n)}reloadTilesForDependencies(t,e){for(const n in this._tiles)this._tiles[n].hasDependency(t,e)&&this._reloadTile(+n,"reloading");this._cache.filter(n=>!n.hasDependency(t,e))}_preloadTiles(t,e){if(!this._sourceLoaded){const n=()=>{this._sourceLoaded&&(this._source.off("data",n),this._preloadTiles(t,e))};return void this._source.on("data",n)}const n=new Map,r=Array.isArray(t)?t:[t],i=this.map.painter.terrain,o=this.usedForTerrain&&i?i.getScaledDemTileSize():this._source.tileSize;for(const t of r){const e=t.coveringTiles({tileSize:o,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom&&!this.usedForTerrain,reparseOverscaled:this._source.reparseOverscaled,isTerrainDEM:this.usedForTerrain});for(const t of e)n.set(t.key,t);this.usedForTerrain&&t.updateElevation(!1)}F(Array.from(n.values()),(t,e)=>{const n=new Yp(t,this._source.tileSize*t.overscaleFactor(),this.transform.tileZoom,this.map.painter,this._isRaster);this._loadTile(n,t=>{"raster-dem"===this._source.type&&n.dem&&this._backfillDEM(n),e(t,n)})},e)}}function gg(t,e){const n=Math.abs(2*t.wrap)-+(t.wrap<0),r=Math.abs(2*e.wrap)-+(e.wrap<0);return t.overscaledZ-e.overscaledZ||r-n||e.canonical.y-t.canonical.y||e.canonical.x-t.canonical.x}function mg(t){return"raster"===t||"image"===t||"video"===t||"custom"===t}function yg(t,e){const n=1<<t.z;return[t.x/n+e,(t.x+1)/n+e]}pg.maxOverzooming=10,pg.maxUnderzooming=3;class _g{constructor(t,e,n){this._demTile=t,this._dem=this._demTile.dem,this._scale=e,this._offset=n}static create(t,e,n){const r=n||t.findDEMTileFor(e);if(!r||!r.dem)return;const i=r.dem,o=r.tileID,s=1<<e.canonical.z-o.canonical.z;return new _g(r,r.tileSize/Qa/s,[(e.canonical.x/s-o.canonical.x)*i.dim,(e.canonical.y/s-o.canonical.y)*i.dim])}tileCoordToPixel(t,e){const n=e*this._scale+this._offset[1],r=Math.floor(t*this._scale+this._offset[0]),i=Math.floor(n);return new _(r,i)}getElevationAt(t,e,n,r){const i=t*this._scale+this._offset[0],o=e*this._scale+this._offset[1],s=Math.floor(i),a=Math.floor(o),c=this._dem;return r=!!r,n?Bn(Bn(c.get(s,a,r),c.get(s,a+1,r),o-a),Bn(c.get(s+1,a,r),c.get(s+1,a+1,r),o-a),i-s):c.get(s,a,r)}getElevationAtPixel(t,e,n){return this._dem.get(t,e,!!n)}getMeterToDEM(t){return(1<<this._demTile.tileID.canonical.z)*xl(1,t)*this._dem.stride}}class vg{constructor(t,e){this.tileID=t,this.x=t.canonical.x,this.y=t.canonical.y,this.z=t.canonical.z,this.grid=new ki(Qa,16,0),this.featureIndexArray=new na,this.promoteId=e}insert(t,e,n,r,i,o=0){const s=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(n,r,i,o);const a=this.grid;for(let t=0;t<e.length;t++){const n=e[t],r=[1/0,1/0,-1/0,-1/0];for(let t=0;t<n.length;t++){const e=n[t];r[0]=Math.min(r[0],e.x),r[1]=Math.min(r[1],e.y),r[2]=Math.max(r[2],e.x),r[3]=Math.max(r[3],e.y)}r[0]<Qa&&r[1]<Qa&&r[2]>=0&&r[3]>=0&&a.insert(s,r[0],r[1],r[2],r[3])}}loadVTLayers(){if(!this.vtLayers){this.vtLayers=new bh(new Gf(this.rawTileData)).layers,this.sourceLayerCoder=new jp(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"]),this.vtFeatures={};for(const t in this.vtLayers)this.vtFeatures[t]=[]}return this.vtLayers}query(t,e,n,r){this.loadVTLayers();const i=t.params||{},o=ri(i.filter),s=t.tileResult,a=t.transform,c=s.bufferedTilespaceBounds,l=this.grid.query(c.min.x,c.min.y,c.max.x,c.max.y,(t,e,n,r)=>ql(s.bufferedTilespaceGeometry,t,e,n,r));l.sort(xg);let u=null;a.elevation&&l.length>0&&(u=_g.create(a.elevation,this.tileID));const h={};let f;for(let a=0;a<l.length;a++){const c=l[a];if(c===f)continue;f=c;const d=this.featureIndexArray.get(c);let p=null;this.loadMatchingFeature(h,d,o,i.layers,i.availableImages,e,n,r,(e,n,r,i=0)=>(p||(p=kl(e,this.tileID.canonical,t.tileTransform)),n.queryIntersectsFeature(s,e,r,p,this.z,t.transform,t.pixelPosMatrix,u,i)))}return h}loadMatchingFeature(t,e,n,r,i,o,s,a,c){const{featureIndex:l,bucketIndex:u,sourceLayerIndex:h,layoutVertexArrayOffset:f}=e,d=this.bucketLayerIDs[u];if(r&&!function(t,e){for(let n=0;n<t.length;n++)if(e.indexOf(t[n])>=0)return!0;return!1}(r,d))return;const p=this.sourceLayerCoder.decode(h),g=this.vtLayers[p].feature(l);if(n.needGeometry){const t=Pl(g,!0);if(!n.filter(new rs(this.tileID.overscaledZ),t,this.tileID.canonical))return}else if(!n.filter(new rs(this.tileID.overscaledZ),g))return;const m=this.getId(g,p);for(let e=0;e<d.length;e++){const n=d[e];if(r&&r.indexOf(n)<0)continue;const u=o[n];if(!u)continue;let h={};void 0!==m&&a&&(h=a.getState(u.sourceLayer||"_geojsonTileLayer",m));const p=L({},s[n]);p.paint=bg(p.paint,u.paint,g,h,i),p.layout=bg(p.layout,u.layout,g,h,i);const y=!c||c(g,u,h,f);if(!y)continue;const _=new Qp(g,this.z,this.x,this.y,m);_.layer=p;let v=t[n];void 0===v&&(v=t[n]=[]),v.push({featureIndex:l,feature:_,intersectionZ:y})}}lookupSymbolFeatures(t,e,n,r,i,o,s,a){const c={};this.loadVTLayers();const l=ri(i);for(const i of t)this.loadMatchingFeature(c,{bucketIndex:n,sourceLayerIndex:r,featureIndex:i,layoutVertexArrayOffset:0},l,o,s,a,e);return c}loadFeature(t){const{featureIndex:e,sourceLayerIndex:n}=t;this.loadVTLayers();const r=this.sourceLayerCoder.decode(n),i=this.vtFeatures[r];if(i[e])return i[e];const o=this.vtLayers[r].feature(e);return i[e]=o,o}hasLayer(t){for(const e of this.bucketLayerIDs)for(const n of e)if(t===n)return!0;return!1}getId(t,e){let n=t.id;if(this.promoteId){const r="string"==typeof this.promoteId?this.promoteId:this.promoteId[e];null!=r&&(n=t.properties[r]),"boolean"==typeof n&&(n=Number(n))}return n}}function bg(t,e,n,r,i){return z(t,(t,o)=>{const s=e instanceof hs?e.get(o):null;return s&&s.evaluate?s.evaluate(n,r,i):s})}function xg(t,e){return e-t}Di(vg,"FeatureIndex",{omit:["rawTileData","sourceLayerCoder"]});class wg{constructor(t,e){this.width=t,this.height=e,this.nextRow=0,this.image=new du({width:t,height:e}),this.positions={},this.uploaded=!1}getDash(t,e){const n=this.getKey(t,e);return this.positions[n]}trim(){const t=this.width,e=this.height=P(this.nextRow);this.image.resize({width:t,height:e})}getKey(t,e){return t.join(",")+e}getDashRanges(t,e,n){const r=[];let i=t.length%2==1?-t[t.length-1]*n:0,o=t[0]*n,s=!0;r.push({left:i,right:o,isDash:s,zeroLength:0===t[0]});let a=t[0];for(let e=1;e<t.length;e++){s=!s;const c=t[e];i=a*n,a+=c,o=a*n,r.push({left:i,right:o,isDash:s,zeroLength:0===c})}return r}addRoundDash(t,e,n){const r=e/2;for(let e=-n;e<=n;e++){const i=this.width*(this.nextRow+n+e);let o=0,s=t[o];for(let a=0;a<this.width;a++){a/s.right>1&&(s=t[++o]);const c=Math.abs(a-s.left),l=Math.abs(a-s.right),u=Math.min(c,l);let h;const f=e/n*(r+1);if(s.isDash){const t=r-Math.abs(f);h=Math.sqrt(u*u+t*t)}else h=r-Math.sqrt(u*u+f*f);this.image.data[i+a]=Math.max(0,Math.min(255,h+128))}}}addRegularDash(t,e){for(let e=t.length-1;e>=0;--e){const n=t[e],r=t[e+1];n.zeroLength?t.splice(e,1):r&&r.isDash===n.isDash&&(r.left=n.left,t.splice(e,1))}const n=t[0],r=t[t.length-1];n.isDash===r.isDash&&(n.left=r.left-this.width,r.right=n.right+this.width);const i=this.width*this.nextRow;let o=0,s=t[o];for(let n=0;n<this.width;n++){n/s.right>1&&(s=t[++o]);const r=Math.abs(n-s.left),a=Math.abs(n-s.right),c=Math.min(r,a);this.image.data[i+n]=Math.max(0,Math.min(255,(s.isDash?c:-c)+e+128))}}addDash(t,e){const n=this.getKey(t,e);if(this.positions[n])return this.positions[n];const r="round"===e,i=r?7:0,o=2*i+1;if(this.nextRow+o>this.height)return G("LineAtlas out of space"),null;0===t.length&&t.push(1);let s=0;for(let e=0;e<t.length;e++)t[e]<0&&(G("Negative value is found in line dasharray, replacing values with 0"),t[e]=0),s+=t[e];if(0!==s){const n=this.width/s,o=this.getDashRanges(t,this.width,n);r?this.addRoundDash(o,n,i):this.addRegularDash(o,"square"===e?.5*n:0)}const a=this.nextRow+i;this.nextRow+=o;const c={tl:[a,i],br:[s,0]};return this.positions[n]=c,c}}Di(wg,"LineAtlas");class Eg{constructor(t){const e={},n=[];for(const r in t){const i=t[r],o=e[r]={};for(const t in i.glyphs){const e=i.glyphs[+t];if(!e||0===e.bitmap.width||0===e.bitmap.height)continue;const r=e.metrics.localGlyph?2:1,s={x:0,y:0,w:e.bitmap.width+2*r,h:e.bitmap.height+2*r};n.push(s),o[t]=s}}const{w:r,h:i}=Xf(n),o=new du({width:r||1,height:i||1});for(const n in t){const r=t[n];for(const t in r.glyphs){const i=r.glyphs[+t];if(!i||0===i.bitmap.width||0===i.bitmap.height)continue;const s=e[n][t],a=i.metrics.localGlyph?2:1;du.copy(i.bitmap,o,{x:0,y:0},{x:s.x+a,y:s.y+a},i.bitmap)}}this.image=o,this.positions=e}}Di(Eg,"GlyphAtlas");class Sg{constructor(t){this.tileID=new Nh(t.tileID.overscaledZ,t.tileID.wrap,t.tileID.canonical.z,t.tileID.canonical.x,t.tileID.canonical.y),this.tileZoom=t.tileZoom,this.uid=t.uid,this.zoom=t.zoom,this.canonical=t.tileID.canonical,this.pixelRatio=t.pixelRatio,this.tileSize=t.tileSize,this.source=t.source,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=t.showCollisionBoxes,this.collectResourceTiming=!!t.collectResourceTiming,this.returnDependencies=!!t.returnDependencies,this.promoteId=t.promoteId,this.enableTerrain=!!t.enableTerrain,this.isSymbolTile=t.isSymbolTile,this.tileTransform=Yd(t.tileID.canonical,t.projection),this.projection=t.projection}parse(t,e,n,r,i){this.status="parsing",this.data=t,this.collisionBoxArray=new Xs;const o=new jp(Object.keys(t.layers).sort()),s=new vg(this.tileID,this.promoteId);s.bucketLayerIDs=[];const a={},c=new wg(256,256),l={featureIndex:s,iconDependencies:{},patternDependencies:{},glyphDependencies:{},lineAtlas:c,availableImages:n},u=e.familiesBySource[this.source];for(const e in u){const r=t.layers[e];if(!r)continue;let i=!1,c=!1;for(const t of u[e])"symbol"===t[0].type?i=!0:c=!0;if(!0===this.isSymbolTile&&!i)continue;if(!1===this.isSymbolTile&&!c)continue;1===r.version&&G(`Vector tile source "${this.source}" layer "${e}" does not use vector tile spec v2 and therefore may have some rendering errors.`);const h=o.encode(e),f=[];for(let t=0;t<r.length;t++){const n=r.feature(t),i=s.getId(n,e);f.push({feature:n,id:i,index:t,sourceLayerIndex:h})}for(const t of u[e]){const e=t[0];void 0!==this.isSymbolTile&&"symbol"===e.type!==this.isSymbolTile||e.minzoom&&this.zoom<Math.floor(e.minzoom)||e.maxzoom&&this.zoom>=e.maxzoom||"none"!==e.visibility&&(Cg(t,this.zoom,n),(a[e.id]=e.createBucket({index:s.bucketLayerIDs.length,layers:t,zoom:this.zoom,canonical:this.canonical,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:h,sourceID:this.source,enableTerrain:this.enableTerrain,projection:this.projection.spec,availableImages:n})).populate(f,l,this.tileID.canonical,this.tileTransform),s.bucketLayerIDs.push(t.map(t=>t.id)))}}let h,f,d,p;c.trim();const g={type:"maybePrepare",isSymbolTile:this.isSymbolTile,zoom:this.zoom},m=()=>{if(h)return i(h);if(f&&d&&p){const t=new Eg(f),e=new qf(d,p);for(const r in a){const i=a[r];i instanceof Cp?(Cg(i.layers,this.zoom,n),Rd(i,f,t.positions,d,e.iconPositions,this.showCollisionBoxes,n,this.tileID.canonical,this.tileZoom,this.projection)):i.hasPattern&&(i instanceof tf||i instanceof eh||i instanceof Th)&&(Cg(i.layers,this.zoom,n),i.addFeatures(l,this.tileID.canonical,e.patternPositions,n,this.tileTransform))}this.status="done",i(null,{buckets:B(a).filter(t=>!t.isEmpty()),featureIndex:s,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:t.image,lineAtlas:c,imageAtlas:e,glyphMap:this.returnDependencies?f:null,iconMap:this.returnDependencies?d:null,glyphPositions:this.returnDependencies?t.positions:null})}},y=z(l.glyphDependencies,t=>Object.keys(t).map(Number));Object.keys(y).length?r.send("getGlyphs",{uid:this.uid,stacks:y},(t,e)=>{h||(h=t,f=e,m())},void 0,!1,g):f={};const _=Object.keys(l.iconDependencies);_.length?r.send("getImages",{icons:_,source:this.source,tileID:this.tileID,type:"icons"},(t,e)=>{h||(h=t,d=e,m())},void 0,!1,g):d={};const v=Object.keys(l.patternDependencies);v.length?r.send("getImages",{icons:v,source:this.source,tileID:this.tileID,type:"patterns"},(t,e)=>{h||(h=t,p=e,m())},void 0,!1,g):p={},m()}}function Cg(t,e,n){const r=new rs(e);for(const e of t)e.recalculate(r,n)}class Ag{constructor(t){this.entries={}
27,this.scheduler=t}request(t,e,n,r){const i=this.entries[t]=this.entries[t]||{callbacks:[]};if(i.result){const[t,n]=i.result;return this.scheduler?this.scheduler.add(()=>{r(t,n)},e):r(t,n),()=>{}}return i.callbacks.push(r),i.cancel||(i.cancel=n((n,r)=>{i.result=[n,r];for(const t of i.callbacks)this.scheduler?this.scheduler.add(()=>{t(n,r)},e):t(n,r);setTimeout(()=>delete this.entries[t],3e3)})),()=>{i.result||(i.callbacks=i.callbacks.filter(t=>t!==r),i.callbacks.length||(i.cancel(),delete this.entries[t]))}}}function Ig(t,e,n){const r=JSON.stringify(t.request);return t.data&&(this.deduped.entries[r]={result:[null,t.data]}),this.deduped.request(r,{type:"parseTile",isSymbolTile:t.isSymbolTile,zoom:t.tileZoom},e=>{const r=ft(t.request,(t,r,i,o)=>{t?e(t):r&&e(null,{vectorTile:n?void 0:new bh(new Gf(r)),rawData:r,cacheControl:i,expires:o})});return()=>{r.cancel(),e()}},e)}const Tg=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array];class Mg{static from(t){if(!(t instanceof ArrayBuffer))throw new Error("Data must be an instance of ArrayBuffer.");const[e,n]=new Uint8Array(t,0,2);if(219!==e)throw new Error("Data does not appear to be in a KDBush format.");const r=n>>4;if(1!==r)throw new Error(`Got v${r} data when expected v1.`);const i=Tg[15&n];if(!i)throw new Error("Unrecognized array type.");const[o]=new Uint16Array(t,2,1),[s]=new Uint32Array(t,4,1);return new Mg(s,o,i,t)}constructor(t,e=64,n=Float64Array,r){if(isNaN(t)||t<0)throw new Error(`Unpexpected numItems value: ${t}.`);this.numItems=+t,this.nodeSize=Math.min(Math.max(+e,2),65535),this.ArrayType=n,this.IndexArrayType=t<65536?Uint16Array:Uint32Array;const i=Tg.indexOf(this.ArrayType),o=2*t*this.ArrayType.BYTES_PER_ELEMENT,s=t*this.IndexArrayType.BYTES_PER_ELEMENT,a=(8-s%8)%8;if(i<0)throw new Error(`Unexpected typed array class: ${n}.`);r&&r instanceof ArrayBuffer?(this.data=r,this.ids=new this.IndexArrayType(this.data,8,t),this.coords=new this.ArrayType(this.data,8+s+a,2*t),this._pos=2*t,this._finished=!0):(this.data=new ArrayBuffer(8+o+s+a),this.ids=new this.IndexArrayType(this.data,8,t),this.coords=new this.ArrayType(this.data,8+s+a,2*t),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,16+i]),new Uint16Array(this.data,2,1)[0]=e,new Uint32Array(this.data,4,1)[0]=t)}add(t,e){const n=this._pos>>1;return this.ids[n]=n,this.coords[this._pos++]=t,this.coords[this._pos++]=e,n}finish(){const t=this._pos>>1;if(t!==this.numItems)throw new Error(`Added ${t} items when expected ${this.numItems}.`);return function t(e,n,r,i,o,s){if(o-i<=r)return;const a=i+o>>1;(function t(e,n,r,i,o,s){for(;o>i;){if(o-i>600){const a=o-i+1,c=r-i+1,l=Math.log(a),u=.5*Math.exp(2*l/3),h=.5*Math.sqrt(l*u*(a-u)/a)*(c-a/2<0?-1:1);t(e,n,r,Math.max(i,Math.floor(r-c*u/a+h)),Math.min(o,Math.floor(r+(a-c)*u/a+h)),s)}const a=n[2*r+s];let c=i,l=o;for(Fg(e,n,i,r),n[2*o+s]>a&&Fg(e,n,i,o);c<l;){for(Fg(e,n,c,l),c++,l--;n[2*c+s]<a;)c++;for(;n[2*l+s]>a;)l--}n[2*i+s]===a?Fg(e,n,i,l):(l++,Fg(e,n,l,o)),l<=r&&(i=l+1),r<=l&&(o=l-1)}})(e,n,a,i,o,s),t(e,n,r,i,a-1,1-s),t(e,n,r,a+1,o,1-s)}(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(t,e,n,r){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:i,coords:o,nodeSize:s}=this,a=[0,i.length-1,0],c=[];for(;a.length;){const l=a.pop()||0,u=a.pop()||0,h=a.pop()||0;if(u-h<=s){for(let s=h;s<=u;s++){const a=o[2*s],l=o[2*s+1];a>=t&&a<=n&&l>=e&&l<=r&&c.push(i[s])}continue}const f=h+u>>1,d=o[2*f],p=o[2*f+1];d>=t&&d<=n&&p>=e&&p<=r&&c.push(i[f]),(0===l?t<=d:e<=p)&&(a.push(h),a.push(f-1),a.push(1-l)),(0===l?n>=d:r>=p)&&(a.push(f+1),a.push(u),a.push(1-l))}return c}within(t,e,n){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:r,coords:i,nodeSize:o}=this,s=[0,r.length-1,0],a=[],c=n*n;for(;s.length;){const l=s.pop()||0,u=s.pop()||0,h=s.pop()||0;if(u-h<=o){for(let n=h;n<=u;n++)Lg(i[2*n],i[2*n+1],t,e)<=c&&a.push(r[n]);continue}const f=h+u>>1,d=i[2*f],p=i[2*f+1];Lg(d,p,t,e)<=c&&a.push(r[f]),(0===l?t-n<=d:e-n<=p)&&(s.push(h),s.push(f-1),s.push(1-l)),(0===l?t+n>=d:e+n>=p)&&(s.push(f+1),s.push(u),s.push(1-l))}return a}}function Fg(t,e,n,r){Bg(t,n,r),Bg(e,2*n,2*r),Bg(e,2*n+1,2*r+1)}function Bg(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function Lg(t,e,n,r){const i=t-n,o=e-r;return i*i+o*o}t.ARRAY_TYPE=Ga,t.AUTH_ERR_MSG=_t,t.Aabb=Rc,t.Actor=class{constructor(t,n,r){this.target=t,this.parent=n,this.mapId=r,this.callbacks={},this.cancelCallbacks={},R(["receive"],this),this.target.addEventListener("message",this.receive,!1),this.globalScope=W()?t:e,this.scheduler
vendor: 10,363 bytes, line 27
27=new Rp}send(t,e,n,r,i=!1,o){const s=Math.round(1e18*Math.random()).toString(36).substring(0,10);n&&(n.metadata=o,this.callbacks[s]=n);const a=q(this.globalScope)?void 0:[];return this.target.postMessage({id:s,type:t,hasCallback:!!n,targetMapId:r,mustQueue:i,sourceMapId:this.mapId,data:zi(e,a)},a),{cancel:()=>{n&&delete this.callbacks[s],this.target.postMessage({id:s,type:"<cancel>",targetMapId:r,sourceMapId:this.mapId})}}}receive(t){const e=t.data,n=e.id;if(n&&(!e.targetMapId||this.mapId===e.targetMapId))if("<cancel>"===e.type){const t=this.cancelCallbacks[n];delete this.cancelCallbacks[n],t&&t.cancel()}else if(e.mustQueue||W()){const t=this.callbacks[n];this.cancelCallbacks[n]=this.scheduler.add(()=>this.processTask(n,e),t&&t.metadata||{type:"message"})}else this.processTask(n,e)}processTask(t,e){if("<response>"===e.type){const n=this.callbacks[t];delete this.callbacks[t],n&&(e.error?n(Qi(e.error)):n(null,Qi(e.data)))}else{const n=q(this.globalScope)?void 0:[],r=e.hasCallback?(e,r)=>{delete this.cancelCallbacks[t],this.target.postMessage({id:t,type:"<response>",sourceMapId:this.mapId,error:e?zi(e):null,data:zi(r,n)},n)}:t=>{},i=Qi(e.data);if(this.parent[e.type])this.parent[e.type](e.sourceMapId,i,r);else if(this.parent.getWorkerSource){const t=e.type.split(".");this.parent.getWorkerSource(e.sourceMapId,t[0],i.source)[t[1]](i,r)}else r(new Error("Could not find function "+e.type))}}remove(){this.scheduler.remove(),this.target.removeEventListener("message",this.receive,!1)}},t.CanonicalTileID=zh,t.Color=Be,t.ColorMode=fg,t.CullFaceMode=dg,t.DEMData=cg,t.DataConstantProperty=fs,t.DedupedRequest=Ag,t.DepthMode=ug,t.EXTENT=Qa,t.Elevation=class{isDataAvailableAtPoint(t){const e=this._source();if(this.isUsingMockSource()||!e||t.y<0||t.y>1)return!1;const n=e.getSource().maxzoom,r=1<<n,i=Math.floor(t.x),o=Math.floor((t.x-i)*r),s=Math.floor(t.y*r),a=this.findDEMTileFor(new Nh(n,i,n,o,s));return!(!a||!a.dem)}getAtPointOrZero(t,e=0){return this.getAtPoint(t,e)||0}getAtPoint(t,e,n=!0){if(this.isUsingMockSource())return null;null==e&&(e=null);const r=this._source();if(!r)return e;if(t.y<0||t.y>1)return e;const i=r.getSource().maxzoom,o=1<<i,s=Math.floor(t.x),a=t.x-s,c=new Nh(i,s,i,Math.floor(a*o),Math.floor(t.y*o)),l=this.findDEMTileFor(c);if(!l||!l.dem)return e;const u=l.dem,h=1<<l.tileID.canonical.z,f=(a*h-l.tileID.canonical.x)*u.dim,d=(t.y*h-l.tileID.canonical.y)*u.dim,p=Math.floor(f),g=Math.floor(d);return(n?this.exaggeration():1)*Bn(Bn(u.get(p,g),u.get(p,g+1),d-g),Bn(u.get(p+1,g),u.get(p+1,g+1),d-g),f-p)}getAtTileOffset(t,e,n){const r=1<<t.canonical.z;return this.getAtPointOrZero(new Il(t.wrap+(t.canonical.x+e/Qa)/r,(t.canonical.y+n/Qa)/r))}getAtTileOffsetFunc(t,e,n,r){return i=>{const o=this.getAtTileOffset(t,i.x,i.y),s=r.upVector(t.canonical,i.x,i.y);return fc(s,s,o*r.upVectorScale(t.canonical,e,n).metersToTile),s}}getForTilePoints(t,e,n,r){if(this.isUsingMockSource())return!1;const i=_g.create(this,t,r);return!!i&&(e.forEach(t=>{t[2]=this.exaggeration()*i.getElevationAt(t[0],t[1],n)}),!0)}getMinMaxForTile(t){if(this.isUsingMockSource())return null;const e=this.findDEMTileFor(t);if(!e||!e.dem)return null;const n=e.dem.tree,r=e.tileID,i=1<<t.canonical.z-r.canonical.z;let o=t.canonical.x/i-r.canonical.x,s=t.canonical.y/i-r.canonical.y,a=0;for(let e=0;e<t.canonical.z-r.canonical.z&&!n.leaves[a];e++){o*=2,s*=2;const t=2*Math.floor(s)+Math.floor(o);a=n.childOffsets[a]+t,o%=1,s%=1}return{min:this.exaggeration()*n.minimums[a],max:this.exaggeration()*n.maximums[a]}}getMinElevationBelowMSL(){throw new Error("Pure virtual method called.")}raycast(t,e,n){throw new Error("Pure virtual method called.")}pointCoordinate(t){throw new Error("Pure virtual method called.")}_source(){throw new Error("Pure virtual method called.")}isUsingMockSource(){throw new Error("Pure virtual method called.")}exaggeration(){throw new Error("Pure virtual method called.")}findDEMTileFor(t){throw new Error("Pure virtual method called.")}get visibleDemTiles(){throw new Error("Getter must be implemented in subclass.")}},t.ErrorEvent=Jt,t.EvaluationParameters=rs,t.Event=Kt,t.Evented=$t,t.FillExtrusionBucket=Th,t.Frustum=Dc,t.FrustumCorners=Pc,t.GLOBE_RADIUS=jc,t.GLOBE_SCALE_MATCH_LATITUDE=45,t.GLOBE_ZOOM_THRESHOLD_MAX=6,t.GLOBE_ZOOM_THRESHOLD_MIN=5,t.GlobeSharedBuffers=class{constructor(t){this._createGrid(t),this._createPoles(t)}destroy(){this._poleIndexBuffer.destroy(),this._gridBuffer.destroy(),this._gridIndexBuffer.destroy(),this._poleNorthVertexBuffer.destroy(),this._poleSouthVertexBuffer.destroy();for(const t of this._poleSegments)t.destroy();for(const t of this._gridSegments)t.withSkirts.destroy(),t.withoutSkirts.destroy();if(this._wireframeIndexBuffer){this._wireframeIndexBuffer.destroy();for(const t of this._wireframeSegments)t.destroy()}}_fillGridMeshWithLods(t,e){const n=new ws,r=new Rs,i=[],o=t+1+2,s=e[0]+1,a=e[0]+1+(1+e.length),c=(t,e,n)=>{let r=t===o-1?t-2:0===t?t:t-1;return r+=n?24575:0,[r,e]};for(let t=0;t<o;++t)n.emplaceBack(...c(t,0,!0));for(let t=0;t<s;++t)for(let e=0;e<o;++e)n.emplaceBack(...c(e,t,(0===e||e===o-1)&&!0));for(let t=0;t<e.length;++t){const r=e[t];for(let t=0;t<o;++t)n.emplaceBack(...c(t,r,!0))}for(let t=0;t<e.length;++t){const s=r.length,c=e[t]+1+2,l=new Rs;for(let n=0;n<c-1;n++){const i=n===c-2,s=i?o*(a-e.length+t-n):o;for(let t=0;t<o-1;t++){const e=n*o+t;0===n||i||0===t||t===o-2?(l.emplaceBack(e+1,e,e+s),l.emplaceBack(e+s,e+s+1,e+1)):(r.emplaceBack(e+1,e,e+s),r.emplaceBack(e+s,e+s+1,e+1))}}const u=za.simpleSegment(0,s,n.length,r.length-s);for(let t=0;t<l.uint16.length;t+=3)r.emplaceBack(l.uint16[t],l.uint16[t+1],l.uint16[t+2]);const h=za.simpleSegment(0,s,n.length,r.length-s);i.push({withoutSkirts:u,withSkirts:h})}return{vertices:n,indices:r,segments:i}}_createGrid(t){const e=this._fillGridMeshWithLods(64,zc);this._gridSegments=e.segments,this._gridBuffer=t.createVertexBuffer(e.vertices,Uc.members),this._gridIndexBuffer=t.createIndexBuffer(e.indices,!0)}_createPoles(t){const e=new Rs;for(let t=0;t<=64;t++)e.emplaceBack(0,t+1,t+2);this._poleIndexBuffer=t.createIndexBuffer(e,!0);const n=new Ns,r=new Ns;this._poleSegments=[];for(let t=0,e=0;t<5;t++){const i=360/(1<<t);n.emplaceBack(0,-jc,0,.5,0),r.emplaceBack(0,-jc,0,.5,1);for(let t=0;t<=64;t++){const e=t/64,o=Bn(0,i,e),[s,a,c]=tl(fl,dl,o,jc);n.emplaceBack(s,a,c,e,0),r.emplaceBack(s,a,c,e,1)}this._poleSegments.push(za.simpleSegment(e,0,66,64)),e+=66}this._poleNorthVertexBuffer=t.createVertexBuffer(n,Lc,!1),this._poleSouthVertexBuffer=t.createVertexBuffer(r,Lc,!1)}getGridBuffers(t,e){return[this._gridBuffer,this._gridIndexBuffer,e?this._gridSegments[t].withSkirts:this._gridSegments[t].withoutSkirts]}getPoleBuffers(t){return[this._poleNorthVertexBuffer,this._poleSouthVertexBuffer,this._poleIndexBuffer,this._poleSegments[t]]}getWirefameBuffers(t,e){if(!this._wireframeSegments){const e=new Gs,n=64,r=n+1+2,i=1;this._wireframeSegments=[];for(let t=0,o=0;t<zc.length;t++){const s=zc[t];for(let t=i;t<s+i;t++)for(let o=i;o<n+i;o++){const n=t*r+o;e.emplaceBack(n,n+1),e.emplaceBack(n,n+r),e.emplaceBack(n,n+r+1)}const a=s*n*3;this._wireframeSegments.push(za.simpleSegment(0,o,(s+1)*r,a)),o+=a}this._wireframeIndexBuffer=t.createIndexBuffer(e)}return[this._gridBuffer,this._wireframeIndexBuffer,this._wireframeSegments[e]]}},t.GlyphManager=Ed,t.ImagePosition=Yf,t.KDBush=Mg,t.LivePerformanceUtils=zt,t.LngLat=yl,t.LngLatBounds=Na,t.LocalGlyphMode=wd,t.MAX_MERCATOR_LATITUDE=Cl,t.MercatorCoordinate=Il,t.ONE_EM=24,t.OverscaledTileID=Nh,t.PerformanceMarkers=jt,t.Point=_,t.Properties=gs,t.RGBAImage=pu,t.Ray=kc,t.RequestManager=class{constructor(t,e,n){this._transformRequestFn=t,this._customAccessToken=e,this._silenceAuthErrors=!!n,this._createSkuToken()}_createSkuToken(){const t=function(){let t="";for(let e=0;e<10;e++)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(62*Math.random())];return{token:["1",h,t].join(""),tokenExpiresAt:Date.now()+432e5}}();this._skuToken=t.token,this._skuTokenExpiresAt=t.tokenExpiresAt}_isSkuTokenExpired(){return Date.now()>this._skuTokenExpiresAt}transformRequest(t,e){return this._transformRequestFn&&this._transformRequestFn(t,e)||{url:t}}normalizeStyleURL(t,e){if(!vt(t))return t;const n=Ct(t);return n.path="/styles/v1"+n.path,this._makeAPIURL(n,this._customAccessToken||e)}normalizeGlyphsURL(t,e){if(!vt(t))return t;const n=Ct(t);return n.path="/fonts/v1"+n.path,this._makeAPIURL(n,this._customAccessToken||e)}normalizeSourceURL(t,e,n,r){if(!vt(t))return t;const i=Ct(t);return i.path=`/v4/${i.authority}.json`,i.params.push("secure"),n&&i.params.push("language="+n),r&&i.params.push("worldview="+r),this._makeAPIURL(i,this._customAccessToken||e)}normalizeSpriteURL(t,e,n,r){const i=Ct(t);return vt(t)?(i.path=`/styles/v1${i.path}/sprite${e}${n}`,this._makeAPIURL(i,this._customAccessToken||r)):(i.path+=`${e}${n}`,At(i))}normalizeTileURL(t,e,n){if(this._isSkuTokenExpired()&&this._createSkuToken(),t&&!vt(t))return t;const r=Ct(t);r.path=r.path.replace(/(\.(png|jpg)\d*)(?=$)/,`${e||n&&"raster"!==r.authority&&512===n?"@2x":""}${o.supported?".webp":"$1"}`),"raster"===r.authority?r.path=`/${i.RASTER_URL_PREFIX}${r.path}`:(r.path=r.path.replace(/^.+\/v4\//,"/"),r.path=`/${i.TILE_URL_VERSION}${r.path}`);const s=this._customAccessToken||function(t){for(const e of t){const t=e.match(/^access_token=(.*)$/);if(t)return t[1]}return null}(r.params)||i.ACCESS_TOKEN;return i.REQUIRE_ACCESS_TOKEN&&s&&this._skuToken&&r.params.push("sku="+this._skuToken),this._makeAPIURL(r,s)}canonicalizeTileURL(t,e){const n=Ct(t);if(!n.path.match(/^(\/v4\/|\/raster\/v1\/)/)||!n.path.match(/\.[\w]+$/))return t;let r="mapbox://";n.path.match(/^\/raster\/v1\//)?r+="raster/"+n.path.replace(`/${i.RASTER_URL_PREFIX}/`,""):r+="tiles/"+n.path.replace(`/${i.TILE_URL_VERSION}/`,"");let o=n.params;return e&&(o=o.filter(t=>!t.match(/^access_token=/))),o.length&&(r+="?"+o.join("&")),r}canonicalizeTileset(t,e){const n=!!e&&vt(e),r=[];for(const e of t.tiles||[])bt(e)?r.push(this.canonicalizeTileURL(e,n)):r.push(e);return r}_makeAPIURL(t,e){const n="See https://docs.mapbox.com/api/overview/#access-tokens-and-token-scopes",r=Ct(i.API_URL);if(t.protocol=r.protocol,t.authority=r.authority,"http"===t.protocol){const e=t.params.indexOf("secure");e>=0&&t.params.splice(e,1)}if("/"!==r.path&&(t.path=`${r.path}${t.path}`),!i.REQUIRE_ACCESS_TOKEN)return At(t);
27if(e=e||i.ACCESS_TOKEN,!this._silenceAuthErrors){if(!e)throw new Error("An API access token is required to use Mapbox GL. "+n);if("s"===e[0])throw new Error("Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). "+n)}return t.params=t.params.filter(t=>-1===t.indexOf("access_token")),t.params.push("access_token="+(e||"")),At(t)}},t.ResourceType=ct,t.SegmentVector=za,t.SourceCache=pg,t.StencilMode=hg,t.StructArrayLayout1ui2=Hs,t.StructArrayLayout2f1f2i16=ks,t.StructArrayLayout2i4=ws,t.StructArrayLayout2ui4=Gs,t.StructArrayLayout3f12=Ds,t.StructArrayLayout3ui6=Rs,t.StructArrayLayout4i8=Ss,t.StructArrayLayout5f20=Ns,t.Texture=Pp,t.Tile=Yp,t.Transitionable=ss,t.Uniform1f=ya,t.Uniform1i=class extends ma{constructor(t){super(t),this.current=0}set(t,e,n){this.fetchUniformLocation(t,e)&&this.current!==n&&(this.current=n,this.gl.uniform1i(this.location,n))}},t.Uniform2f=class extends ma{constructor(t){super(t),this.current=[0,0]}set(t,e,n){this.fetchUniformLocation(t,e)&&(n[0]===this.current[0]&&n[1]===this.current[1]||(this.current=n,this.gl.uniform2f(this.location,n[0],n[1])))}},t.Uniform3f=class extends ma{constructor(t){super(t),this.current=[0,0,0]}set(t,e,n){this.fetchUniformLocation(t,e)&&(n[0]===this.current[0]&&n[1]===this.current[1]&&n[2]===this.current[2]||(this.current=n,this.gl.uniform3f(this.location,n[0],n[1],n[2])))}},t.Uniform4f=_a,t.UniformColor=va,t.UniformMatrix2f=class extends ma{constructor(t){super(t),this.current=wa}set(t,e,n){if(this.fetchUniformLocation(t,e))for(let t=0;t<4;t++)if(n[t]!==this.current[t]){this.current=n,this.gl.uniformMatrix2fv(this.location,!1,n);break}}},t.UniformMatrix3f=class extends ma{constructor(t){super(t),this.current=xa}set(t,e,n){if(this.fetchUniformLocation(t,e))for(let t=0;t<9;t++)if(n[t]!==this.current[t]){this.current=n,this.gl.uniformMatrix3fv(this.location,!1,n);break}}},t.UniformMatrix4f=class extends ma{constructor(t){super(t),this.current=ba}set(t,e,n){if(this.fetchUniformLocation(t,e)){if(n[12]!==this.current[12]||n[0]!==this.current[0])return this.current=n,void this.gl.uniformMatrix4fv(this.location,!1,n);for(let t=1;t<16;t++)if(n[t]!==this.current[t]){this.current=n,this.gl.uniformMatrix4fv(this.location,!1,n);break}}}},t.UnwrappedTileID=Qh,t.ValidationError=Yr,t.VectorTileFeature=xh,t.VectorTileWorkerSource=class extends $t{constructor(t,e,n,r,i){super(),this.actor=t,this.layerIndex=e,this.availableImages=n,this.loadVectorData=i||Ig,this.loading={},this.loaded={},this.deduped=new Ag(t.scheduler),this.isSpriteLoaded=r,this.scheduler=t.scheduler}loadTile(t,e){const n=t.uid,r=t&&t.request,i=r&&r.collectResourceTiming,o=this.loading[n]=new Sg(t);o.abort=this.loadVectorData(t,(s,a)=>{const c=!this.loading[n];if(delete this.loading[n],c||s||!a)return o.status="done",c||(this.loaded[n]=o),e(s);const l=a.rawData,u={};a.expires&&(u.expires=a.expires),a.cacheControl&&(u.cacheControl=a.cacheControl),o.vectorTile=a.vectorTile||new bh(new Gf(l));const h=()=>{o.parse(o.vectorTile,this.layerIndex,this.availableImages,this.actor,(t,n)=>{if(t||!n)return e(t);const o={};if(i){const t=Vt(r);t.length>0&&(o.resourceTiming=JSON.parse(JSON.stringify(t)))}e(null,L({rawTileData:l.slice(0)},n,u,o))})};this.isSpriteLoaded?h():this.once("isSpriteLoaded",()=>{this.scheduler?this.scheduler.add(h,{type:"parseTile",isSymbolTile:t.isSymbolTile,zoom:t.tileZoom}):h()}),this.loaded=this.loaded||{},this.loaded[n]=o})}reloadTile(t,e){const n=this.loaded,r=t.uid,i=this;if(n&&n[r]){const o=n[r];o.showCollisionBoxes=t.showCollisionBoxes,o.enableTerrain=!!t.enableTerrain,o.projection=t.projection,o.tileTransform=Yd(t.tileID.canonical,t.projection);const s=(t,n)=>{const r=o.reloadCallback;r&&(delete o.reloadCallback,o.parse(o.vectorTile,i.layerIndex,this.availableImages,i.actor,r)),e(t,n)};"parsing"===o.status?o.reloadCallback=s:"done"===o.status&&(o.vectorTile?o.parse(o.vectorTile,this.layerIndex,this.availableImages,this.actor,s):s())}}abortTile(t,e){const n=t.uid,r=this.loading[n];r&&(r.abort&&r.abort(),delete this.loading[n]),e()}removeTile(t,e){const n=this.loaded,r=t.uid;n&&n[r]&&delete n[r],e()}},t.WritingMode=Kf,t.ZoomDependentExpression=Zr,t.add=ac,t.addDynamicAttributes=xp,t.adjoint=function(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],s=e[4],a=e[5],c=e[6],l=e[7],u=e[8];return t[0]=s*u-a*l,t[1]=i*l-r*u,t[2]=r*a-i*s,t[3]=a*c-o*u,t[4]=n*u
27-i*c,t[5]=i*o-n*a,t[6]=o*l-s*c,t[7]=r*c-n*l,t[8]=n*s-r*o,t},t.asyncAll=F,t.bezier=C,t.bindAll=R,t.boundsAttributes=Wp,t.bufferConvexPolygon=function(t,e){const n=[];for(let r=0;r<t.length;r++){const i=M(r-1,-1,t.length-1),o=M(r+1,-1,t.length-1),s=t[r],a=t[o],c=t[i].sub(s).unit(),l=a.sub(s).unit(),u=l.angleWithSep(c.x,c.y),h=c.add(l).unit().mult(-1*e/Math.sin(u/2));n.push(s.add(h))}return n},t.cacheEntryPossiblyAdded=function(t){at++,at>rt&&(t.getActor().send("enforceCacheSizeLimit",nt),at=0)},t.calculateGlobeLabelMatrix=function(t,e){const{x:n,y:r}=t.point,i=al(n,r,t.worldSize/t._pixelsPerMercatorPixel,0,0);return Ya(i,i,sl(Xc(e)))},t.calculateGlobeMatrix=function(t){const{x:e,y:n}=t.point,{lng:r,lat:i}=t._center;return al(e,n,t.worldSize,r,i)},t.calculateGlobeMercatorMatrix=function(t){const e=t.pixelsPerMeter,n=e/xl(1,t.center.lat),r=Wa(new Float64Array(16));return qa(r,r,[t.point.x,t.point.y,0]),Ka(r,r,[n,n,e]),Float32Array.from(r)},t.circumferenceAtLatitude=_l,t.clamp=I,t.clearTileCache=function(t){if(!it())return;const n=e.caches.delete($);t&&n.catch(t).then(()=>t())},t.clipLine=_d,t.clone=function(t){var e=new Ga(16);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e},t.clone$1=N,t.collisionCircleLayout=ff,t.config=i,t.conjugate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=e[3],t},t.create=function(){var t=new Ga(16);return Ga!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t},t.create$1=Ha,t.createExpression=Gr,t.createLayout=bs,t.createStyleLayer=function(t){return"custom"===t.type?new Lp(t):new kp[t.type](t)},t.cross=mc,t.degToRad=x,t.distance=function(t,e){return Math.hypot(e[0]-t[0],e[1]-t[1],e[2]-t[2])},t.div=function(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t},t.dot=gc,t.earthRadius=pl,t.ease=A,t.easeCubicInOut=S,t.ecefToLatLng=function([t,e,n]){const r=Math.hypot(t,e,n),i=Math.atan2(t,n),o=.5*Math.PI-Math.acos(-e/r);return new yl(w(i),w(o))},t.emitValidationErrors=Li,t.endsWith=j,t.enforceCacheSizeLimit=function(t){ot(),tt&&tt.then(e=>{e.keys().then(n=>{for(let r=0;r<n.length-t;r++)e.delete(n[r])})})},t.evaluateSizeForFeature=gf,t.evaluateSizeForZoom=mf,t.evaluateVariableOffset=Dd,t.evented=$o,t.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]},t.exactEquals$1=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]},t.exported=Xt,t.exported$1=o,t.extend=L,t.extend$1=ee,t.fillExtrusionHeightLift=kh,t.filterObject=Q,t.fromMat4=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t},t.fromQuat=function(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],s=n+n,a=r+r,c=i+i,l=n*s,u=r*s,h=r*a,f=i*s,d=i*a,p=i*c,g=o*s,m=o*a,y=o*c;return t[0]=1-h-p,t[1]=u+y,t[2]=f-m,t[3]=0,t[4]=u-y,t[5]=1-l-p,t[6]=d+g,t[7]=0,t[8]=f+m,t[9]=d-g,t[10]=1-l-h,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},t.fromRotation=function(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=-n,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},t.fromScaling=tc,t.furthestTileCorner=function(t){const e=Math.round((t+45+360)%360/90)%4;return E[e]},t.getAABBPointSquareDist=function(t,e,n){let r=0;for(let i=0;i<2;++i){const o=n?n[i]:0;t[i]>o&&(r+=(t[i]-o)*(t[i]-o)),e[i]<o&&(r+=(o-e[i])*(o-e[i]))}return r},t.getAnchorAlignment=ad,t.getAnchorJustification=jd,t.getBounds=function(t){let e=1/0,n=1/0,r=-1/0,i=-1/0;for(const o of t)e=Math.min(e,o.x),n=Math.min(n,o.y),r=Math.max(r,o.x),i=Math.max(i,o.y);return{min:new _(e,n),max:new _(r,i)}},t.getColumn=J,t.getDefaultExportFromCjs=f,t.getGridMatrix=function(t,e,n,r){const i=e.getNorth(),o=e.getSouth(),s=e.getWest(),a=e.getEast(),c=1<<t.z,l=a-s,u=i-o,h=l/64,f=-u/zc[n],d=[0,h,0,f,0,0,i,s,0];if(t.z>0){const t=180/r;Za(d,d,[t/l+1,0,0,0,t/u+1,0,-.5*t/h,.5*t/f,1])}return d[2]=c,d[5]=t.x,d[8]=t.y,d},t.getImage=yt,t.getJSON=function(t,e){return ht(L(t,{type:"json"}),e)},t.getLatitudinalLod=function(t){const e=Cl-5;t=I(t,-e,e)/e*90;const n=Math.pow(Math.abs(Math.sin(x(t))),3);return Math.round(n*(zc.length-1))},t.getMapSessionAPI=Dt,t.getPerformanceMeasurement=Vt,t.getProjection=mp,t.getRTLTextPluginStatus=ts,t.getReferrer=ut,t.getTilePoint=function(t,{x:e,y:n},r=0){return new _(((e-r)*t.scale-t.x)*Qa,(n*t.scale-t.y)*Qa)},t.getTileVec3=function(t,e,n=0){return sc(((e.x-n)*t.scale-t.x)*Qa,(e.y*t.scale-t.y)*Qa,Sl(e.z,e.y))},t.getVideo=function(t,n){const r=e.document.createElement("video");r.muted=!0,r.onloadstart=function(){n(null,r)};for(let n=0;n<t.length;n++){const i=e.document.createElement("source");dt(t[n])||(r.crossOrigin="Anonymous"),i.src=t[n],r.appendChild(i)}return{cancel:()=>{}}},t.globeCenterToScreenPoint=function(t){const e=[0,0,0],n=Wa(new Float64Array(16));return Ya(n,t.pixelMatrix,t.globeMatrix),yc(e,e,n),new _(e[0],e[1])},t.globeDenormalizeECEF=sl,t.globeECEFOrigin=function(t,e){const n=[0,0,0];return yc(n,n,ol(Xc(e.canonical))),yc(n,n,t),n},t.globeMetersToEcef=Gc,t.globeNormalizeECEF=ol,t.globePixelsToTileUnits=function(t,e){return Qa/(512*Math.pow(2,t))*rl(Xc(e))},t.globePoleMatrixForTile=function(t,e,n){const r=Wa(new Float64Array(16)),i=(e/(1<<t)-.5)*Math.PI*2;return $a(r,n.globeMatrix,i),Float32Array.from(r)},t.globeTileBounds=Xc,t.globeTiltAtLngLat=ll,t.globeToMercatorTransition=cl,t.globeUseCustomAntiAliasing=function(t,e,n){const r=cl(n.zoom),i=t.style.map._antialias,o=!!e.extStandardDerivatives,s=e.extStandardDerivativesForceOff||t.terrain&&t.terrain.exaggeration()>0;return 0===r&&!i&&!s&&o},t.identity=Wa,t.identity$1=Ic,t.invert=Xa,t.isFullscreen=function(){return!!e.document.fullscreenElement||!!e.document.webkitFullscreenElement},t.isLngLatBehindGlobe=ul,t.isMapAuthenticated=function(t){return Rt.has(t)},t.isMapboxURL=vt,t.isSafariWithAntialiasingBug=function(t){const e=t.navigator?t.navigator.userAgent:null;return!!q(t)&&e&&(e.match("Version/15.4")||e.match("Version/15.5")||e.match(/CPU (OS|iPhone OS) (15_4|15_5) like Mac OS X/))},t.latFromMercatorY=El,t.latLngToECEF=el,t.len=wc,t.length=oc,t.length$1=function(t){return Math.hypot(t[0],t[1],t[2],t[3])},t.lngFromMercatorX=wl,t.loadVectorTile=Ig,t.makeRequest=ht,t.mapValue=function(t,e,n,r,i){return I((t-e)/(n-e)*(i-r)+r,r,i)},t.mercatorScale=Al,t.mercatorXfromLng=vl,t.mercatorYfromLat=bl,t.mercatorZfromAltitude=xl,t.mul=nc,t.mul$1=xc,t.multiply=Ya,t.multiply$1=Za,t.multiply$2=lc,t.nextPowerOfTwo=P,t.normalize=pc,t.normalize$1=Fc,t.normalize$2
27=Sc,t.number=Bn,t.ortho=function(t,e,n,r,i,o,s){var a=1/(e-n),c=1/(r-i),l=1/(o-s);return t[0]=-2*a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*c,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*l,t[11]=0,t[12]=(e+n)*a,t[13]=(i+r)*c,t[14]=(s+o)*l,t[15]=1,t},t.pbf=wf,t.perspective=function(t,e,n,r,i){var o,s=1/Math.tan(e/2);return t[0]=s/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=s,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=i&&i!==1/0?(t[10]=(i+r)*(o=1/(r-i)),t[14]=2*i*r*o):(t[10]=-1,t[14]=-2*r),t},t.pick=function(t,e){const n={};for(let r=0;r<e.length;r++){const i=e[r];i in t&&(n[i]=t[i])}return n},t.plugin=ns,t.pointGeometry=m,t.polesInViewport=function(t){const e=Wa(new Float64Array(16));Ya(e,t.pixelMatrix,t.globeMatrix);const n=[0,Qc,0],r=[0,Nc,0];return yc(n,n,e),yc(r,r,e),[n[0]>0&&n[0]<=t.width&&n[1]>0&&n[1]<=t.height&&!ul(t,new yl(t.center.lat,90)),r[0]>0&&r[0]<=t.width&&r[1]>0&&r[1]<=t.height&&!ul(t,new yl(t.center.lat,-90))]},t.polygonContainsPoint=Yl,t.polygonIntersectsBox=ql,t.polygonIntersectsPolygon=zl,t.polygonizeBounds=function(t,e,n=0,r=!0){const i=new _(n,n),o=t.sub(i),s=e.add(i),a=[o,new _(s.x,o.y),s,new _(o.x,s.y)];return r&&a.push(o.clone()),a},t.posAttributes=Uc,t.postMapLoadEvent=Ot,t.postPerformanceEvent=kt,t.postTurnstileEvent=Bt,t.potpack=Xf,t.prevPowerOfTwo=function(t){return t<=1?1:Math.pow(2,Math.floor(Math.log(t)/Math.LN2))},t.radToDeg=w,t.refProperties=["type","source","source-layer","minzoom","maxzoom","filter","layout"],t.registerForPluginStateChange=function(t){return t({pluginStatus:Yo,pluginURL:qo}),$o.on("pluginStateChange",t),t},t.removeAuthState=function(t){Rt.delete(t)},t.renderColorRamp=mu,t.resample=Ml,t.rotateX=Ja,t.rotateX$1=Tc,t.rotateY=$a,t.rotateY$1=Mc,t.rotateZ=function(t,e,n){var r=Math.sin(n),i=Math.cos(n),o=e[0],s=e[1],a=e[2],c=e[3],l=e[4],u=e[5],h=e[6],f=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=o*i+l*r,t[1]=s*i+u*r,t[2]=a*i+h*r,t[3]=c*i+f*r,t[4]=l*i-o*r,t[5]=u*i-s*r,t[6]=h*i-a*r,t[7]=f*i-c*r,t},t.rotateZ$1=function(t,e,n){n*=.5;var r=e[0],i=e[1],o=e[2],s=e[3],a=Math.sin(n),c=Math.cos(n);return t[0]=r*c+i*a,t[1]=i*c-r*a,t[2]=o*c+s*a,t[3]=s*c-o*a,t},t.scale=Ka,t.scale$1=Ec,t.scale$2=fc,t.scaleAndAdd=dc,t.set=function(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t},t.setCacheLimits=function(t,e){nt=t,rt=e},t.setColumn=function(t,e,n){t[4*e+0]=n[0],t[4*e+1]=n[1],t[4*e+2]=n[2],t[4*e+3]=n[3]},t.setRTLTextPlugin=function(t,e,n=!1){if(Yo===Ho||Yo===Zo||Yo===Wo)throw new Error("setRTLTextPlugin cannot be called multiple times.");qo=Xt.resolveURL(t),Yo=Ho,Xo=e,Jo(),n||es()},t.smoothstep=T,t.spec=te,t.squaredLength=function(t){var e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r},t.storeAuthState=function(t,e){e?Rt.add(t):Rt.delete(t)},t.sub=bc,t.subtract=cc,t.symbolSize=yf,t.tileAABB=function(t,e,n,r,i,o,s,a,c){if("globe"===c.name)return function(t,e,n){const r=e/t.worldSize,i=t.globeMatrix;if(n.z<=1){const t=Xc(n).getCorners();return Kc(t,i,r),Rc.fromPoints(t)}const o=Jc(n),s=$c(o);Kc(s,i,r);const a=Number.MAX_VALUE,c=[-a,-a,-a],l=[a,a,a];if(o.contains(t.center)){for(const t of s)uc(l,l,t),hc(c,c,t);c[2]=0;const e=t.point,n=[e.x*r,e.y*r,0];return uc(l,l,n),hc(c,c,n),new Rc(l,c)}const u=[i[12]*r,i[13]*r,i[14]*r],h=o.getCenter(),f=I(t.center.lat,-Cl,Cl),d=I(h.lat,-Cl,Cl),p=vl(t.center.lng),g=bl(f);let m=p-vl(h.lng);const y=g-bl(d);m>.5?m-=1:m<-.5&&(m+=1);let _=0;Math.abs(m)>Math.abs(y)?_=m>=0?1:3:(_=y>=0?0:2,dc(u,u,[i[4]*r,i[5]*r,i[6]*r],-Math.sin(x(y>=0?o.getSouth():o.getNorth()))*jc));const v=s[_],b=s[(_+1)%4],w=new Zc(v,b,u),E=[Wc(w,0)||v[0],Wc(w,1)||v[1],Wc(w,2)||v[2]],S=cl(t.zoom);if(S>0){const r=function({x:t,y:e,z:n},r,i,o,s){const a=1/(1<<n);let c=t*a,l=c+a,u=e*a,h=u+a,f=0;const d=(c+l)/2-o;return d>.5?f=-1:d<-.5&&(f=1),c=((c+f)*r-(o*=r))*i+o,l=((l+f)*r-o)*i+o,u=(u*r-(s*=r))*i+s,h=(h*r-s)*i+s,[[c,h,0],[l,h,0],[l,u,0],[c,u,0]]}(n,e,t._pixelsPerMercatorPixel,p,g);for(let t=0;t<s.length;t++)Yc(s[t],r[t],S);const i=ac([],r[_],r[(_+1)%4]);fc(i,i,.5),Yc(E,i,S)}for(const t of s)uc(l,l,t),hc(c,c,t);return l[2]=Math.min(v[2],b[2]),uc(l,l,E),hc(c,c,E),new Rc(l,c)}(t,e,new zh(n,r,i));const l=Yd({z:n,x:r,y:i},c);return new Rc([(o+l.x/l.scale)*e,e*(l.y/l.scale),s],[(o+l.x2/l.scale)*e,e*(l.y2/l.scale),a])},t.tileCornersToBounds=Jc,t.tileTransform=Yd,t.transformMat3=function(t,e,n){var r=e[0],i=e[1],o=e[2];return t[0]=r*n[0]+i*n[3]+o*n[6],t[1]=r*n[1]+i*n[4]+o*n[7],t[2]=r*n[2]+i*n[5]+o*n[8],t},t.transformMat4=yc,t.transformMat4$1=Cc,t.transformQuat=_c,t.transitionTileAABBinECEF=qc,t.translate=qa,t.transpose=function(t,e){if(t===e){var n=e[1],r=e[2],i=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=r,t[7]=i}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t},t.triggerPluginCompletionEvent=Ko,t.uniqueId=U,t.updateGlobeVertexNormal=function(t,e,n,r,i){const o=5*e+2;t.float32[o+0]=n,t.float32[o+1]=r,t.float32[o+2]=i},t.validateCustomStyleLayer=function(t){const e=[],n=t.id;return void 0===n&&e.push({message:`layers.${n}: missing required property "id"`}),void 0===t.render&&e.push({message:`layers.${n}: missing required method "render"`}),t.renderingMode&&"2d"!==t.renderingMode&&"3d"!==t.renderingMode&&e.push({message:`layers.${n}: property "renderingMode" must be either "2d" or "3d"`}),e},t.validateFilter=t=>Bi(di(t)),t.validateFog=t=>Bi(Si(t)),t.validateLayer=t=>Bi(yi(t)),t.validateLight=t=>Bi(wi(t)),t.validateSource=t=>Bi(bi(t)),t.validateStyle=Ti,t.validateTerrain=t=>Bi(Ei(t)),t.values=B,t.vectorTile=ch,t.version=n,t.warnOnce=G,t.window=e,t.wrap=M})),r(0,(function(t){function e(t){if("number"==typeof t||"boolean"==typeof t||"string"==typeof t||null==t)return JSON.stringify(t);if(Array.isArray(t)){let n="[";for(const r of t)n+=e(r)+",";return n+"]"}let n="{";for(const r of Object.keys(t).sort())n+=`${r}:${e(t[r])},`;return n+"}"}function n(n){let r="";for(const i of t.refProperties)r+="/"+e(n[i]);return r}
vendor: 29,692 bytes, line 27
27class r{constructor(t){this.keyCache={},t&&this.replace(t)}replace(t){this._layerConfigs={},this._layers={},this.update(t,[])}update(e,r){for(const n of e)this._layerConfigs[n.id]=n,(this._layers[n.id]=t.createStyleLayer(n)).compileFilter(),this.keyCache[n.id]&&delete this.keyCache[n.id];for(const t of r)delete this.keyCache[t],delete this._layerConfigs[t],delete this._layers[t];this.familiesBySource={};const i=function(t,e){const r={};for(let i=0;i<t.length;i++){const o=e&&e[t[i].id]||n(t[i]);e&&(e[t[i].id]=o);let s=r[o];s||(s=r[o]=[]),s.push(t[i])}const i=[];for(const t in r)i.push(r[t]);return i}(t.values(this._layerConfigs),this.keyCache);for(const t of i){const e=t.map(t=>this._layers[t.id]),n=e[0];if("none"===n.visibility)continue;const r=n.source||"";let i=this.familiesBySource[r];i||(i=this.familiesBySource[r]={});const o=n.sourceLayer||"_geojsonTileLayer";let s=i[o];s||(s=i[o]=[]),s.push(e)}}}class i{loadTile(e,n){const{uid:r,encoding:i,rawImageData:o,padding:s,buildQuadTree:a}=e,c=t.window.ImageBitmap&&o instanceof t.window.ImageBitmap?this.getImageData(o,s):o;n(null,new t.DEMData(r,c,i,s<1,a))}getImageData(t,e){this.offscreenCanvas&&this.offscreenCanvasContext||(this.offscreenCanvas=new OffscreenCanvas(t.width,t.height),this.offscreenCanvasContext=this.offscreenCanvas.getContext("2d",{willReadFrequently:!0})),this.offscreenCanvas.width=t.width,this.offscreenCanvas.height=t.height,this.offscreenCanvasContext.drawImage(t,0,0,t.width,t.height);const n=this.offscreenCanvasContext.getImageData(-e,-e,t.width+2*e,t.height+2*e);return this.offscreenCanvasContext.clearRect(0,0,this.offscreenCanvas.width,this.offscreenCanvas.height),n}}function o(t,e){if(0!==t.length){s(t[0],e);for(var n=1;n<t.length;n++)s(t[n],!e)}}function s(t,e){for(var n=0,r=0,i=0,o=t.length,s=o-1;i<o;s=i++){var a=(t[i][0]-t[s][0])*(t[s][1]+t[i][1]),c=n+a;r+=Math.abs(n)>=Math.abs(a)?n-c+a:a-c+n,n=c}n+r>=0!=!!e&&t.reverse()}var a=t.getDefaultExportFromCjs((function t(e,n){var r,i=e&&e.type;if("FeatureCollection"===i)for(r=0;r<e.features.length;r++)t(e.features[r],n);else if("GeometryCollection"===i)for(r=0;r<e.geometries.length;r++)t(e.geometries[r],n);else if("Feature"===i)t(e.geometry,n);else if("Polygon"===i)o(e.coordinates,n);else if("MultiPolygon"===i)for(r=0;r<e.coordinates.length;r++)o(e.coordinates[r],n);return e}));const c=t.VectorTileFeature.prototype.toGeoJSON;var l={exports:{}},u=t.pointGeometry,h=t.vectorTile.VectorTileFeature,f=d;function d(t,e){this.options=e||{},this.features=t,this.length=t.length}function p(t,e){this.id="number"==typeof t.id?t.id:void 0,this.type=t.type,this.rawGeometry=1===t.type?[t.geometry]:t.geometry,this.properties=t.tags,this.extent=e||4096}d.prototype.feature=function(t){return new p(this.features[t],this.options.extent)},p.prototype.loadGeometry=function(){var t=this.rawGeometry;this.geometry=[];for(var e=0;e<t.length;e++){for(var n=t[e],r=[],i=0;i<n.length;i++)r.push(new u(n[i][0],n[i][1]));this.geometry.push(r)}return this.geometry},p.prototype.bbox=function(){this.geometry||this.loadGeometry();for(var t=this.geometry,e=1/0,n=-1/0,r=1/0,i=-1/0,o=0;o<t.length;o++)for(var s=t[o],a=0;a<s.length;a++){var c=s[a];e=Math.min(e,c.x),n=Math.max(n,c.x),r=Math.min(r,c.y),i=Math.max(i,c.y)}return[e,r,n,i]},p.prototype.toGeoJSON=h.prototype.toGeoJSON;var g=t.pbf,m=f;function y(t){var e=new g;return function(t,e){for(var n in t.layers)e.writeMessage(3,_,t.layers[n])}(t,e),e.finish()}function _(t,e){var n;e.writeVarintField(15,t.version||1),e.writeStringField(1,t.name||""),e.writeVarintField(5,t.extent||4096);var r={keys:[],values:[],keycache:{},valuecache:{}};for(n=0;n<t.length;n++)r.feature=t.feature(n),e.writeMessage(2,v,r);var i=r.keys;for(n=0;n<i.length;n++)e.writeStringField(3,i[n]);var o=r.values;for(n=0;n<o.length;n++)e.writeMessage(4,S,o[n])}function v(t,e){var n=t.feature;void 0!==n.id&&e.writeVarintField(1,n.id),e.writeMessage(2,b,t),e.writeVarintField(3,n.type),e.writeMessage(4,E,n)}function b(t,e){var n=t.feature,r=t.keys,i=t.values,o=t.keycache,s=t.valuecache;for(var a in n.properties){var c=n.properties[a],l=o[a];if(null!==c){void 0===l&&(r.push(a),o[a]=l=r.length-1),e.writeVarint(l);var u=typeof c;"string"!==u&&"boolean"!==u&&"number"!==u&&(c=JSON.stringify(c));var h=u+":"+c,f=s[h];void 0===f&&(i.push(c),s[h]=f=i.length-1),e.writeVarint(f)}}}function x(t,e){return(e<<3)+(7&t)}function w(t){return t<<1^t>>31}function E(t,e){for(var n=t.loadGeometry(),r=t.type,i=0,o=0,s=n.length,a=0;a<s;a++){var c=n[a],l=1;1===r&&(l=c.length),e.writeVarint(x(1,l));for(var u=3===r?c.length-1:c.length,h=0;h<u;h++){1===h&&1!==r&&e.writeVarint(x(2,u-1));var f=c[h].x-i,d=c[h].y-o;e.writeVarint(w(f)),e.writeVarint(w(d)),i+=f,o+=d}3===r&&e.writeVarint(x(7,1))}}function S(t,e){var n=typeof t;"string"===n?e.writeStringField(1,t):"boolean"===n?e.writeBooleanField(7,t):"number"===n&&(t%1!=0?e.writeDoubleField(3,t):t<0?e.writeSVarintField(6,t):e.writeVarintField(5,t))}l.exports=y,l.exports.fromVectorTileJs=y,l.exports.fromGeojsonVt=function(t,e){e=e||{};var n={};for(var r in t)n[r]=new m(t[r].features,e),n[r].name=r,n[r].version=e.version,n[r].extent=e.extent;return y({layers:n})},l.exports.GeoJSONWrapper=m;var C=t.getDefaultExportFromCjs(l.exports);const A={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:t=>t},I=Math.fround||(T=new Float32Array(1),t=>(T[0]=+t,T[0]));var T;class M{constructor(t){this.options=Object.assign(Object.create(A),t),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(t){const{log:e,minZoom:n,maxZoom:r}=this.options;e&&console.time("total time");const i=`prepare ${t.length} points`;e&&console.time(i),this.points=t;const o=[];for(let e=0;e<t.length;e++){const n=t[e];if(!n.geometry)continue;const[r,i]=n.geometry.coordinates,s=I(L(r)),a=I(O(i));o.push(s,a,1/0,e,-1,1),this.options.reduce&&o.push(0)}let s=this.trees[r+1]=this._createTree(o);e&&console.timeEnd(i);for(let t=r;t>=n;t--){const n=+Date.now();s=this.trees[t]=this._createTree(this._cluster(s,t)),e&&console.log("z%d: %d clusters in %dms",t,s.numItems,+Date.now()-n)}return e&&console.timeEnd("total time"),this}getClusters(t,e){let n=((t[0]+180)%360+360)%360-180;const r=Math.max(-90,Math.min(90,t[1]));let i=180===t[2]?180:((t[2]+180)%360+360)%360-180;const o=Math.max(-90,Math.min(90,t[3]));if(t[2]-t[0]>=360)n=-180,i=180;else if(n>i){const t=this.getClusters([n,r,180,o],e),s=this.getClusters([-180,r,i,o],e);return t.concat(s)}const s=this.trees[this._limitZoom(e)],a=s.range(L(n),O(o),L(i),O(r)),c=s.data,l=[];for(const t of a){const e=this.stride*t;l.push(c[e+5]>1?F(c,e,this.clusterProps):this.points[c[e+3]])}return l}getChildren(t){const e=this._getOriginId(t),n=this._getOriginZoom(t),r="No cluster with the specified id.",i=this.trees[n];if(!i)throw new Error(r);const o=i.data;if(e*this.stride>=o.length)throw new Error(r);const s=this.options.radius/(this.options.extent*Math.pow(2,n-1)),a=i.within(o[e*this.stride],o[e*this.stride+1],s),c=[];for(const e of a){const n=e*this.stride;o[n+4]===t&&c.push(o[n+5]>1?F(o,n,this.clusterProps):this.points[o[n+3]])}if(0===c.length)throw new Error(r);return c}getLeaves(t,e,n){const r=[];return this._appendLeaves(r,t,e=e||10,n=n||0,0),r}getTile(t,e,n){const r=this.trees[this._limitZoom(t)],i=Math.pow(2,t),{extent:o,radius:s}=this.options,a=s/o,c=(n-a)/i,l=(n+1+a)/i,u={features:[]};return this._addTileFeatures(r.range((e-a)/i,c,(e+1+a)/i,l),r.data,e,n,i,u),0===e&&this._addTileFeatures(r.range(1-a/i,c,1,l),r.data,i,n,i,u),e===i-1&&this._addTileFeatures(r.range(0,c,a/i,l),r.data,-1,n,i,u),u.features.length?u:null}getClusterExpansionZoom(t){let e=this._getOriginZoom(t)-1;for(;e<=this.options.maxZoom;){const n=this.getChildren(t);if(e++,1!==n.length)break;t=n[0].properties.cluster_id}return e}_appendLeaves(t,e,n,r,i){const o=this.getChildren(e);for(const e of o){const o=e.properties;if(o&&o.cluster?i+o.point_count<=r?i+=o.point_count:i=this._appendLeaves(t,o.cluster_id,n,r,i):i<r?i++:t.push(e),t.length===n)break}return i}_createTree(e){const n=new t.KDBush(e.length/this.stride|0,this.options.nodeSize,Float32Array);for(let t=0;t<e.length;t+=this.stride)n.add(e[t],e[t+1]);return n.finish(),n.data=e,n}_addTileFeatures(t,e,n,r,i,o){for(const s of t){const t=s*this.stride,a=e[t+5]>1;let c,l,u;if(a)c=B(e,t,this.clusterProps),l=e[t],u=e[t+1];else{const n=this.points[e[t+3]];c=n.properties;const[r,i]=n.geometry.coordinates;l=L(r),u=O(i)}const h={type:1,geometry:[[Math.round(this.options.extent*(l*i-n)),Math.round(this.options.extent*(u*i-r))]],tags:c};let f;f=a||this.options.generateId?e[t+3]:this.points[e[t+3]].id,void 0!==f&&(h.id=f),o.features.push(h)}}_limitZoom(t){return Math.max(this.options.minZoom,Math.min(Math.floor(+t),this.options.maxZoom+1))}_cluster(t,e){const{radius:n,extent:r,reduce:i,minPoints:o}=this.options,s=n/(r*Math.pow(2,e)),a=t.data,c=[],l=this.stride;for(let n=0;n<a.length;n+=l){if(a[n+2]<=e)continue;a[n+2]=e;const r=a[n],u=a[n+1],h=t.within(a[n],a[n+1],s),f=a[n+5];let d=f;for(const t of h){const n=t*l;a[n+2]>e&&(d+=a[n+5])}if(d>f&&d>=o){let t,o=r*f,s=u*f,p=-1;const g=((n/l|0)<<5)+(e+1)+this.points.length;for(const r of h){const c=r*l;if(a[c+2]<=e)continue;a[c+2]=e;const u=a[c+5];o+=a[c]*u,s+=a[c+1]*u,a[c+4]=g,i&&(t||(t=this._map(a,n,!0),p=this.clusterProps.length,this.clusterProps.push(t)),i(t,this._map(a,c)))}a[n+4]=g,c.push(o/d,s/d,1/0,g,-1,d),i&&c.push(p)}else{for(let t=0;t<l;t++)c.push(a[n+t]);if(d>1)for(const t of h){const n=t*l;if(!(a[n+2]<=e)){a[n+2]=e;for(let t=0;t<l;t++)c.push(a[n+t])}}}}return c}_getOriginId(t){return t-this.points.length>>5}_getOriginZoom(t){return(t-this.points.length)%32}_map(t,e,n){if(t[e+5]>1){const r=this.clusterProps[t[e+6]];return n?Object.assign({},r):r}const r=this.points[t[e+3]].properties,i=this.options.map(r);return n&&i===r?Object.assign({},i):i}}function F(t,e,n){return{type:"Feature",id:t[e+3],properties:B(t,e,n),geometry:{type:"Point",coordinates:[(r=t[e],360*(r-.5)),U(t[e+1])]}};var r}function B(t,e,n){const r=t[e+5],i=r>=1e4?Math.round(r/1e3)+"k":r>=1e3?Math.round(r/100)/10+"k":r,o=t[e+6],s=-1===o?{}:Object.assign({},n[o]);return Object.assign(s,{cluster:!0,cluster_id:t[e+3],point_count:r,point_count_abbreviated:i})}function L(t){return t/360+.5}function O(t){const e=Math.sin(t*Math.PI/180),n=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return n<0?0:n>1?1:n}function U(t){const e=(180-360*t)*Math.PI/180;return 360*Math.atan(Math.exp(e))/Math.PI-90}function k(t,e,n,r,i,o){var s=i-n,a=o-r;if(0!==s||0!==a){var c=((t-n)*s+(e-r)*a)/(s*s+a*a);c>1?(n=i,r=o):c>0&&(n+=s*c,r+=a*c)}return(s=t-n)*s+(a=e-r)*a}function P(t,e,n,r){var i={id:void 0===t?null:t,type:e,geometry:n,tags:r,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(t){var e=t.geometry,n=t.type;if("Point"===n||"MultiPoint"===n||"LineString"===n)D(t,e);else if("Polygon"===n||"MultiLineString"===n)for(var r=0;r<e.length;r++)D(t,e[r]);else if("MultiPolygon"===n)for(r=0;r<e.length;r++)for(var i=0;i<e[r].length;i++)D(t,e[r][i])}(i),i}function D(t,e){for(var n=0;n<e.length;n+=3)t.minX=Math.min(t.minX,e[n]),t.minY=Math.min(t.minY,e[n+1]),t.maxX=Math.max(t.maxX,e[n]),t.maxY=Math.max(t.maxY,e[n+1])}function R(t,e,n,r){if(e.geometry){var i=e.geometry.coordinates,o=e.geometry.type,s=Math.pow(n.tolerance/((1<<n.maxZoom)*n.extent),2),a=[],c=e.id;if(n.promoteId?c=e.properties[n.promoteId]:n.generateId&&(c=r||0),"Point"===o)j(i,a);else if("MultiPoint"===o)for(var l=0;l<i.length;l++)j(i[l],a);else if("LineString"===o)z(i,a,s,!1);else if("MultiLineString"===o){if(n.lineMetrics){for(l=0;l<i.length;l++)z(i[l],a=[],s,!1),t.push(P(c,"LineString",a,e.properties));return}Q(i,a,s,!1)}else if("Polygon"===o)Q(i,a,s,!0);else{if("MultiPolygon"!==o){if("GeometryCollection"===o){for(l=0;l<e.geometry.geometries.length;l++)R(t,{id:c,geometry:e.geometry.geometries[l],properties:e.properties},n,r);return}throw new Error("Input data is not a valid GeoJSON object.")}for(l=0;l<i.length;l++){var u=[];Q(i[l],u,s,!0),a.push(u)}}t.push(P(c,o,a,e.properties))}}function j(t,e){e.push(N(t[0])),e.push(V(t[1])),e.push(0)}function z(t,e,n,r){for(var i,o,s=0,a=0;a<t.length;a++){var c=N(t[a][0]),l=V(t[a][1]);e.push(c),e.push(l),e.push(0),a>0&&(s+=r?(i*l-c*o)/2:Math.sqrt(Math.pow(c-i,2)+Math.pow(l-o,2))),i=c,o=l}var u=e.length-3;e[2]=1,function t(e,n,r,i){for(var o,s=i,a=r-n>>1,c=r-n,l=e[n],u=e[n+1],h=e[r],f=e[r+1],d=n+3;d<r;d+=3){var p=k(e[d],e[d+1],l,u,h,f);if(p>s)o=d,s=p;else if(p===s){var g=Math.abs(d-a);g<c&&(o=d,c=g)}}s>i&&(o-n>3&&t(e,n,o,i),e[o+2]=s,r-o>3&&t(e,o,r,i))}(e,0,u,n),e[u+2]=1,e.size=Math.abs(s),e.start=0,e.end=e.size}function Q(t,e,n,r){for(var i=0;i<t.length;i++){var o=[];z(t[i],o,n,r),e.push(o)}}function N(t){return t/360+.5}function V(t){var e=Math.sin(t*Math.PI/180),n=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return n<0?0:n>1?1:n}function G(t,e,n,r,i,o,s,a){if(r/=e,o>=(n/=e)&&s<r)return t;if(s<n||o>=r)return null;for(var c=[],l=0;l<t.length;l++){var u=t[l],h=u.geometry,f=u.type,d=0===i?u.minX:u.minY,p=0===i?u.maxX:u.maxY;if(d>=n&&p<r)c.push(u);else if(!(p<n||d>=r)){var g=[];if("Point"===f||"MultiPoint"===f)H(h,g,n,r,i);else if("LineString"===f)Z(h,g,n,r,i,!1,a.lineMetrics);else if("MultiLineString"===f)X(h,g,n,r,i,!1);else if("Polygon"===f)X(h,g,n,r,i,!0);else if("MultiPolygon"===f)for(var m=0;m<h.length;m++){var y=[];X(h[m],y,n,r,i,!0),y.length&&g.push(y)}if(g.length){if(a.lineMetrics&&"LineString"===f){for(m=0;m<g.length;m++)c.push(P(u.id,f,g[m],u.tags));continue}"LineString"!==f&&"MultiLineString"!==f||(1===g.length?(f="LineString",g=g[0]):f="MultiLineString"),"Point"!==f&&"MultiPoint"!==f||(f=3===g.length?"Point":"MultiPoint"),c.push(P(u.id,f,g,u.tags))}}}return c.length?c:null}function H(t,e,n,r,i){for(var o=0;o<t.length;o+=3){var s=t[o+i];s>=n&&s<=r&&(e.push(t[o]),e.push(t[o+1]),e.push(t[o+2]))}}function Z(t,e,n,r,i,o,s){for(var a,c,l=W(t),u=0===i?q:K,h=t.start,f=0;f<t.length-3;f+=3){var d=t[f],p=t[f+1],g=t[f+2],m=t[f+3],y=t[f+4],_=0===i?d:p,v=0===i?m:y,b=!1;s&&(a=Math.sqrt(Math.pow(d-m,2)+Math.pow(p-y,2))),_<n?v>n&&(c=u(l,d,p,m,y,n),s&&(l.start=h+a*c)):_>r?v<r&&(c=u(l,d,p,m,y,r),s&&(l.start=h+a*c)):Y(l,d,p,g),v<n&&_>=n&&(c=u(l,d,p,m,y,n),b=!0),v>r&&_<=r&&(c=u(l,d,p,m,y,r),b=!0),!o&&b&&(s&&(l.end=h+a*c),e.push(l),l=W(t)),s&&(h+=a)}var x=t.length-3;d=t[x],p=t[x+1],g=t[x+2],(_=0===i?d:p)>=n&&_<=r&&Y(l,d,p,g),x=l.length-3,o&&x>=3&&(l[x]!==l[0]||l[x+1]!==l[1])&&Y(l,l[0],l[1],l[2]),l.length&&e.push(l)}function W(t){var e=[];return e.size=t.size,e.start=t.start,e.end=t.end,e}function X(t,e,n,r,i,o){for(var s=0;s<t.length;s++)Z(t[s],e,n,r,i,o,!1)}function Y(t,e,n,r){t.push(e),t.push(n),t.push(r)}function q(t,e,n,r,i,o){var s=(o-e)/(r-e);return t.push(o),t.push(n+(i-n)*s),t.push(1),s}function K(t,e,n,r,i,o){var s=(o-n)/(i-n);return t.push(e+(r-e)*s),t.push(o),t.push(1),s}function J(t,e){for(var n=[],r=0;r<t.length;r++){var i,o=t[r],s=o.type;if("Point"===s||"MultiPoint"===s||"LineString"===s)i=$(o.geometry,e);else if("MultiLineString"===s||"Polygon"===s){i=[];for(var a=0;a<o.geometry.length;a++)i.push($(o.geometry[a],e))}else if("MultiPolygon"===s)for(i=[],a=0;a<o.geometry.length;a++){for(var c=[],l=0;l<o.geometry[a].length;l++)c.push($(o.geometry[a][l],e));i.push(c)}n.push(P(o.id,s,i,o.tags))}return n}function $(t,e){var n=[];n.size=t.size,void 0!==t.start&&(n.start=t.start,n.end=t.end);for(var r=0;r<t.length;r+=3)n.push(t[r]+e,t[r+1],t[r+2]);return n}function tt(t,e){if(t.transformed)return t;var n,r,i,o=1<<t.z,s=t.x,a=t.y;for(n=0;n<t.features.length;n++){var c=t.features[n],l=c.geometry,u=c.type;if(c.geometry=[],1===u)for(r=0;r<l.length;r+=2)c.geometry.push(et(l[r],l[r+1],e,o,s,a));else for(r=0;r<l.length;r++){var h=[];for(i=0;i<l[r].length;i+=2)h.push(et(l[r][i],l[r][i+1],e,o,s,a));c.geometry.push(h)}}return t.transformed=!0,t}function et(t,e,n,r,i,o){return[Math.round(n*(t*r-i)),Math.round(n*(e*r-o))]}function nt(t,e,n,r,i){for(var o=e===i.maxZoom?0:i.tolerance/((1<<e)*i.extent),s={features:[],numPoints:0,numSimplified:0,numFeatures:0,source:null,x:n,y:r,z:e,transformed:!1,minX:2,minY:1,maxX:-1,maxY:0},a=0;a<t.length;a++){s.numFeatures++,rt(s,t[a],o,i);var c=t[a].minX,l=t[a].minY,u=t[a].maxX,h=t[a].maxY;c<s.minX&&(s.minX=c),l<s.minY&&(s.minY=l),u>s.maxX&&(s.maxX=u),h>s.maxY&&(s.maxY=h)}return s}function rt(t,e,n,r){var i=e.geometry,o=e.type,s=[];if("Point"===o||"MultiPoint"===o)for(var a=0;a<i.length;a+=3)s.push(i[a]),s.push(i[a+1]),t.numPoints++,t.numSimplified++;else if("LineString"===o)it(s,i,t,n,!1,!1);else if("MultiLineString"===o||"Polygon"===o)for(a=0;a<i.length;a++)it(s,i[a],t,n,"Polygon"===o,0===a);else if("MultiPolygon"===o)for(var c=0;c<i.length;c++){var l=i[c];for(a=0;a<l.length;a++)it(s,l[a],t,n,!0,0===a)}if(s.length){var u=e.tags||null;if("LineString"===o&&r.lineMetrics){for(var h in u={},e.tags)u[h]=e.tags[h];u.mapbox_clip_start=i.start/i.size,u.mapbox_clip_end=i.end/i.size}var f={geometry:s,type:"Polygon"===o||"MultiPolygon"===o?3:"LineString"===o||"MultiLineString"===o?2:1,tags:u};null!==e.id&&(f.id=e.id),t.features.push(f)}}function it(t,e,n,r,i,o){var s=r*r;if(r>0&&e.size<(i?s:r))n.numPoints+=e.length/3;else{for(var a=[],c=0;c<e.length;c+=3)(0===r||e[c+2]>s)&&(n.numSimplified++,a.push(e[c]),a.push(e[c+1])),n.numPoints++;i&&function(t,e){for(var n=0,r=0,i=t.length,o=i-2;r<i;o=r,r+=2)n+=(t[r]-t[o])*(t[r+1]+t[o+1]);if(n>0===e)for(r=0,i=t.length;r<i/2;r+=2){var s=t[r],a=t[r+1];t[r]=t[i-2-r],t[r+1]=t[i-1-r],t[i-2-r]=s,t[i-1-r]=a}}(a,o),t.push(a)}}function ot(t,e){var n=(e=this.options=function(t,e){for(var n in e)t[n]=e[n];return t}(Object.create(this.options),e)).debug;if(n&&console.time("preprocess data"),e.maxZoom<0||e.maxZoom>24)throw new Error("maxZoom should be in the 0-24 range");if(e.promoteId&&e.generateId)throw new Error("promoteId and generateId cannot be used together.");var r=function(t,e){var n=[];if("FeatureCollection"===t.type)for(var r=0;r<t.features.length;r++)R(n,t.features[r],e,r);else R(n,"Feature"===t.type?t:{geometry:t},e);return n}(t,e);this.tiles={},this.tileCoords=[],n&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",e.indexMaxZoom,e.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),(r=function(t,e){var n=e.buffer/e.extent,r=t,i=G(t,1,-1-n,n,0,-1,2,e),o=G(t,1,1-n,2+n,0,-1,2,e);return(i||o)&&(r=G(t,1,-n,1+n,0,-1,2,e)||[],i&&(r=J(i,1).concat(r)),o&&(r=r.concat(J(o,-1)))),r}(r,e)).length&&this.splitTile(r,0,0,0),n&&(r.length&&console.log("features: %d, points: %d",this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd("generate tiles"),console.log("tiles generated:",this.total,JSON.stringify(this.stats)))}function st(t,e,n){return 32*((1<<t)*n+e)+t}function at(e,n){const r=e.tileID.canonical;if(!this._geoJSONIndex)return n(null,null);const i=this._geoJSONIndex.getTile(r.z,r.x,r.y);if(!i)return n(null,null);const o=new class{constructor(e){this.layers={_geojsonTileLayer:this},this.name="_geojsonTileLayer",this.extent=t.EXTENT,this.length=e.length,this._features=e}feature(e){return new class{constructor(e){this._feature=e,this.extent=t.EXTENT,this.type=e.type,this.properties=e.tags,"id"in e&&!isNaN(e.id)&&(this.id=parseInt(e.id,10))}loadGeometry(){if(1===this._feature.type){const e=[];for(const n of this._feature.geometry)e.push([new t.Point(n[0],n[1])]);return e}{const e=[];for(const n of this._feature.geometry){const r=[];for(const e of n)r.push(new t.Point(e[0],e[1]));e.push(r)}return e}}toGeoJSON(t,e,n){return c.call(this,t,e,n)}}(this._features[e])}}(i.features);let s=C(o);0===s.byteOffset&&s.byteLength===s.buffer.byteLength||(s=new Uint8Array(s)),n(null,{vectorTile:o,rawData:s.buffer})}ot.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},ot.prototype.splitTile=function(t,e,n,r,i,o,s){for(var a=[t,e,n,r],c=this.options,l=c.debug;a.length;){r=a.pop(),n=a.pop(),e=a.pop(),t=a.pop();var u=1<<e,h=st(e,n,r),f=this.tiles[h];if(!f&&(l>1&&console.time("creation"),f=this.tiles[h]=nt(t,e,n,r,c),this.tileCoords.push({z:e,x:n,y:r}),l)){l>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",e,n,r,f.numFeatures,f.numPoints,f.numSimplified),console.timeEnd("creation"));var d="z"+e;this.stats[d]=(this.stats[d]||0)+1,this.total++}if(f.source=t,i){if(e===c.maxZoom||e===i)continue;var p=1<<i-e;if(n!==Math.floor(o/p)||r!==Math.floor(s/p))continue}else if(e===c.indexMaxZoom||f.numPoints<=c.indexMaxPoints)continue;if(f.source=null,0!==t.length){l>1&&console.time("clipping");var g,m,y,_,v,b,x=.5*c.buffer/c.extent,w=.5-x,E=.5+x,S=1+x;g=m=y=_=null,v=G(t,u,n-x,n+E,0,f.minX,f.maxX,c),b=G(t,u,n+w,n+S,0,f.minX,f.maxX,c),t=null,v&&(g=G(v,u,r-x,r+E,1,f.minY,f.maxY,c),m=G(v,u,r+w,r+S,1,f.minY,f.maxY,c),v=null),b&&(y=G(b,u,r-x,r+E,1,f.minY,f.maxY,c),_=G(b,u,r+w,r+S,1,f.minY,f.maxY,c),b=null),l>1&&console.timeEnd("clipping"),a.push(g||[],e+1,2*n,2*r),a.push(m||[],e+1,2*n,2*r+1),a.push(y||[],e+1,2*n+1,2*r),a.push(_||[],e+1,2*n+1,2*r+1)}}},ot.prototype.getTile=function(t,e,n){var r=this.options,i=r.extent,o=r.debug;if(t<0||t>24)return null;var s=1<<t,a=st(t,e=(e%s+s)%s,n);if(this.tiles[a])return tt(this.tiles[a],i);o>1&&console.log("drilling down to z%d-%d-%d",t,e,n);for(var c,l=t,u=e,h=n;!c&&l>0;)l--,u=Math.floor(u/2),h=Math.floor(h/2),c=this.tiles[st(l,u,h)];return c&&c.source?(o>1&&console.log("found parent tile z%d-%d-%d",l,u,h),o>1&&console.time("drilling down"),this.splitTile(c.source,l,u,h,t,e,n),o>1&&console.timeEnd("drilling down"),this.tiles[a]?tt(this.tiles[a],i):null):null};class ct extends t.VectorTileWorkerSource{constructor(t,e,n,r,i){super(t,e,n,r,at),i&&(this.loadGeoJSON=i)}loadData(e,n){const r=e&&e.request,i=r&&r.collectResourceTiming;this.loadGeoJSON(e,(o,s)=>{if(o||!s)return n(o);if("object"!=typeof s)return n(new Error(`Input data given to '${e.source}' is not a valid GeoJSON object.`));{a(s,!0);try{if(e.filter){const n=t.createExpression(e.filter,{type:"boolean","property-type":"data-driven",overridable:!1,transition:!1});if("error"===n.result)throw new Error(n.value.map(t=>`${t.key}: ${t.message}`).join(", "));const r=s.features.filter(t=>n.value.evaluate({zoom:0},t));s={type:"FeatureCollection",features:r}}this._geoJSONIndex=e.cluster?new M(function({superclusterOptions:e,clusterProperties:n}){if(!n||!e)return e;const r={},i={},o={accumulated:null,zoom:0},s={properties:null},a=Object.keys(n);for(const e of a){const[o,s]=n[e],a=t.createExpression(s),c=t.createExpression("string"==typeof o?[o,["accumulated"],["get",e]]:o);r[e]=a.value,i[e]=c.value}return e.map=t=>{s.properties=t;const e={};for(const t of a)e[t]=r[t].evaluate(o,s);return e},e.reduce=(t,e)=>{s.properties=e;for(const e of a)o.accumulated=t[e],t[e]=i[e].evaluate(o,s)},e}(e)).load(s.features):function(t,e){return new ot(t,e)}(s,e.geojsonVtOptions)}catch(o){return n(o)}this.loaded={};const c={};if(i){const n=t.getPerformanceMeasurement(r);n&&(c.resourceTiming={},c.resourceTiming[e.source]=JSON.parse(JSON.stringify(n)))}n(null,c)}})}reloadTile(t,e){const n=this.loaded;return n&&n[t.uid]?super.reloadTile(t,e):this.loadTile(t,e)}loadGeoJSON(e,n){if(e.request)t.getJSON(e.request,n);else{if("string"!=typeof e.data)return n(new Error(`Input data given to '${e.source}' is not a valid GeoJSON object.`));try{return n(null,JSON.parse(e.data))}catch(t){return n(new Error(`Input data given to '${e.source}' is not a valid GeoJSON object.`))}}}getClusterExpansionZoom(t,e){try{e(null,this._geoJSONIndex.getClusterExpansionZoom(t.clusterId))}catch(t){e(t)}}getClusterChildren(t,e){try{e(null,this._geoJSONIndex.getChildren(t.clusterId))}catch(t){e(t)}}getClusterLeaves(t,e){try{e(null,this._geoJSONIndex.getLeaves(t.clusterId,t.limit,t.offset))}catch(t){e(t)}}}class lt{constructor(e){this.self=e,this.actor=new t.Actor(e,this),this.layerIndexes={},this.availableImages={},this.isSpriteLoaded={},this.projections={},this.defaultProjection=t.getProjection({name:"mercator"}),this.workerSourceTypes={vector:t.VectorTileWorkerSource,geojson:ct},this.workerSources={},this.demWorkerSources={},this.self.registerWorkerSource=(t,e)=>{if(this.workerSourceTypes[t])throw new Error(`Worker source with name "${t}" already registered.`);this.workerSourceTypes[t]=e},this.self.registerRTLTextPlugin=e=>{if(t.plugin.isParsed())throw new Error("RTL text plugin already registered.");t.plugin.applyArabicShaping=e.applyArabicShaping,t.plugin.processBidirectionalText=e.processBidirectionalText,t.plugin.processStyledBidirectionalText=e.processStyledBidirectionalText}}clearCaches(t,e,n){delete this.layerIndexes[t],delete this.availableImages[t],delete this.workerSources[t],delete this.demWorkerSources[t],n()}checkIfReady(t,e,n){n()}setReferrer(t,e){this.referrer=e}spriteLoaded(e,n){this.isSpriteLoaded[e]=n;for(const r in this.workerSources[e]){const i=this.workerSources[e][r];for(const e in i)i[e]instanceof t.VectorTileWorkerSource&&(i[e].isSpriteLoaded=n,i[e].fire(new t.Event("isSpriteLoaded")))}}setImages(t,e,n){this.availableImages[t]=e;for(const n in this.workerSources[t]){const r=this.workerSources[t][n];for(const t in r)r[t].availableImages=e}n()}enableTerrain(t,e,n){this.terrain=e,n()}setProjection(e,n){this.projections[e]=t.getProjection(n)}setLayers(t,e,n){this.getLayerIndex(t).replace(e),n()}updateLayers(t,e,n){this.getLayerIndex(t).update(e.layers,e.removedIds),n()}loadTile(e,n,r){const i=this.enableTerrain?t.extend({enableTerrain:this.terrain},n):n;i.projection=this.projections[e]||this.defaultProjection,this.getWorkerSource(e,n.type,n.source).loadTile(i,r)}loadDEMTile(e,n,r){const i=this.enableTerrain?t.extend({buildQuadTree:this.terrain},n):n;this.getDEMWorkerSource(e,n.source).loadTile(i,r)}reloadTile(e,n,r){const i=this.enableTerrain?t.extend({enableTerrain:this.terrain},n):n;i.projection=this.projections[e]||this.defaultProjection,this.getWorkerSource(e,n.type,n.source).reloadTile(i,r)}abortTile(t,e,n){this.getWorkerSource(t,e.type,e.source).abortTile(e,n)}removeTile(t,e,n){this.getWorkerSource(t,e.type,e.source).removeTile(e,n)}removeSource(t,e,n){if(!this.workerSources[t]||!this.workerSources[t][e.type]||!this.workerSources[t][e.type][e.source])return;const r=this.workerSources[t][e.type][e.source];delete this.workerSources[t][e.type][e.source],void 0!==r.removeSource?r.removeSource(e,n):n()}loadWorkerSource(t,e,n){try{this.self.importScripts(e.url),n()}catch(t){n(t.toString())}}syncRTLPluginState(e,n,r){try{t.plugin.setState(n);const e=t.plugin.getPluginURL();if(t.plugin.isLoaded()&&!t.plugin.isParsed()&&null!=e){this.self.importScripts(e);const n=t.plugin.isParsed();r(n?void 0:new Error("RTL Text Plugin failed to import scripts from "+e),n)}}catch(t){r(t.toString())}}getAvailableImages(t){let e=this.availableImages[t];return e||(e=[]),e}getLayerIndex(t){let e=this.layerIndexes[t];return e||(e=this.layerIndexes[t]=new r),e}getWorkerSource(t,e,n){if(this.workerSources[t]||(this.workerSources[t]={}),this.workerSources[t][e]||(this.workerSources[t][e]={}),!this.workerSources[t][e][n]){const r={send:(e,n,r,i,o,s)=>{this.actor.send(e,n,r,t,o,s)},scheduler:this.actor.scheduler};this.workerSources[t][e][n]=new this.workerSourceTypes[e](r,this.getLayerIndex(t),this.getAvailableImages(t),this.isSpriteLoaded[t])}return this.workerSources[t][e][n]}getDEMWorkerSource(t,e){return this.demWorkerSources[t]||(this.demWorkerSources[t]={}),this.demWorkerSources[t][e]||(this.demWorkerSources[t][e]=new i),this.demWorkerSources[t][e]}enforceCacheSizeLimit(e,n){t.enforceCacheSizeLimit(n)}getWorkerPerformanceMetrics(t,e,n){n(void 0,void 0)}}return"undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof self&&self instanceof WorkerGlobalScope&&(self.worker=new lt(self)),lt})),r(0,(function(t){function e(t,n){if(Array.isArray(t)){if(!Array.isArray(n)||t.length!==n.length)return!1;for(let r=0;r<t.length;r++)if(!e(t[r],n[r]))return!1;return!0}if("object"==typeof t&&null!==t&&null!==n){if("object"!=typeof n)return!1;if(Object.keys(t).length!==Object.keys(n).length)return!1;for(const r in t)if(!e(t[r],n[r]))return!1;return!0}return t===n}var n=r;function r(t){return!function(t){return"undefined"==typeof window||"undefined"==typeof document?"not a browser":Array.prototype&&Array.prototype.every&&Array.prototype.filter&&Array.prototype.forEach&&Array.prototype.indexOf&&Array.prototype.lastIndexOf&&Array.prototype.map&&Array.prototype.some&&Array.prototype.reduce&&Array.prototype.reduceRight&&Array.isArray?Function.prototype&&Function.prototype.bind?Object.keys&&Object.create&&Object.getPrototypeOf&&Object.getOwnPropertyNames&&Object.isSealed&&Object.isFrozen&&Object.isExtensible&&Object.getOwnPropertyDescriptor&&Object.defineProperty&&Object.defineProperties&&Object.seal&&Object.freeze&&Object.preventExtensions?"JSON"in window&&"parse"in JSON&&"stringify"in JSON?function(){if(!("Worker"in window&&"Blob"in window&&"URL"in window))return!1;var t,e,n=new Blob([""],{type:"text/javascript"}),r=URL.createObjectURL(n);try{e=new Worker(r),t=!0}catch(e){t=!1}return e&&e.terminate(),URL.revokeObjectURL(r),t}()?"Uint8ClampedArray"in window?ArrayBuffer.isView?function(){var t=document.createElement("canvas");t.width=t.height=1;var e=t.getContext("2d");if(!e)return!1;var n=e.getImageData(0,0,1,1);return n&&n.width===t.width}()?(void 0===i[e=t&&t.failIfMajorPerformanceCaveat]&&(i[e]=function(t){var e,n=function(t){var e=document.createElement("canvas"),n=Object.create(r.webGLContextAttributes);return n.failIfMajorPerformanceCaveat=t,e.getContext("webgl",n)||e.getContext("experimental-webgl",n)}(t);if(!n)return!1;try{e=n.createShader(n.VERTEX_SHADER)}catch(t){return!1}return!(!e||n.isContextLost())&&(n.shaderSource(e,"void main() {}
27"),n.compileShader(e),!0===n.getShaderParameter(e,n.COMPILE_STATUS))}(e)),i[e]?document.documentMode?"insufficient ECMAScript 6 support":void 0:"insufficient WebGL support"):"insufficient Canvas/getImageData support":"insufficient ArrayBuffer support":"insufficient Uint8ClampedArray support":"insufficient worker support":"insufficient JSON support":"insufficient Object support":"insufficient Function support":"insufficent Array support";var e}(t)}var i={};function o(e,n,r){const i=t.window.document.createElement(e);return void 0!==n&&(i.className=n),r&&r.appendChild(i),i}function s(e,n,r){const i=t.window.document.createElementNS("http://www.w3.org/2000/svg",e);for(const t of Object.keys(n))i.setAttributeNS(null,t,n[t]);return r&&r.appendChild(i),i}r.webGLContextAttributes={antialias:!1,alpha:!0,stencil:!0,depth:!0};const a=t.window.document&&t.window.document.documentElement.style,c=a&&void 0!==a.userSelect?"userSelect":"WebkitUserSelect";let l;function u(){a&&c&&(l=a[c],a[c]="none")}function h(){a&&c&&(a[c]=l)}function f(e){e.preventDefault(),e.stopPropagation(),t.window.removeEventListener("click",f,!0)}function d(){t.window.addEventListener("click",f,!0),t.window.setTimeout(()=>{t.window.removeEventListener("click",f,!0)},0)}function p(t,e){const n=t.getBoundingClientRect();return y(t,n,e)}function g(t,e){const n=t.getBoundingClientRect(),r=[];for(let i=0;i<e.length;i++)r.push(y(t,n,e[i]));return r}function m(e){return void 0!==t.window.InstallTrigger&&2===e.button&&e.ctrlKey&&t.window.navigator.platform.toUpperCase().indexOf("MAC")>=0?0:e.button}function y(e,n,r){const i=e.offsetWidth===n.width?1:e.offsetWidth/n.width;return new t.Point((r.clientX-n.left)*i,(r.clientY-n.top)*i)}function _(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],s=n*o-i*r;return s?(t[0]=o*(s=1/s),t[1]=-r*s,t[2]=-i*s,t[3]=n*s,t):null}function v(t){const{userImage:e}=t;return!!(e&&e.render&&e.render())&&(t.data.replace(new Uint8Array(e.data.buffer)),!0)}class b extends t.Evented{constructor(){super(),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new t.RGBAImage({width:1,height:1}),this.dirty=!0}isLoaded(){return this.loaded}setLoaded(t){if(this.loaded!==t&&(this.loaded=t,t)){for(const{ids:t,callback:e}of this.requestors)this._notify(t,e);this.requestors=[]}}hasImage(t){return!!this.getImage(t)}getImage(t){return this.images[t]}addImage(t,e){this._validate(t,e)&&(this.images[t]=e)}_validate(e,n){let r=!0;return this._validateStretch(n.stretchX,n.data&&n.data.width)||(this.fire(new t.ErrorEvent(new Error(`Image "${e}" has invalid "stretchX" value`))),r=!1),this._validateStretch(n.stretchY,n.data&&n.data.height)||(this.fire(new t.ErrorEvent(new Error(`Image "${e}" has invalid "stretchY" value`))),r=!1),this._validateContent(n.content,n)||(this.fire(new t.ErrorEvent(new Error(`Image "${e}" has invalid "content" value`))),r=!1),r}_validateStretch(t,e){if(!t)return!0;let n=0;for(const r of t){if(r[0]<n||r[1]<r[0]||e<r[1])return!1;n=r[1]}return!0}_validateContent(t,e){return!(t&&(4!==t.length||t[0]<0||e.data.width<t[0]||t[1]<0||e.data.height<t[1]||t[2]<0||e.data.width<t[2]||t[3]<0||e.data.height<t[3]||t[2]<t[0]||t[3]<t[1]))}updateImage(t,e){e.version=this.images[t].version+1,this.images[t]=e,this.updatedImages[t]=!0}removeImage(t){const e=this.images[t];delete this.images[t],delete this.patterns[t],e.userImage&&e.userImage.onRemove&&e.userImage.onRemove()}listImages(){return Object.keys(this.images)}getImages(t,e){let n=!0;if(!this.isLoaded())for(const e of t)this.images[e]||(n=!1);this.isLoaded()||n?this._notify(t,e):this.requestors.push({ids:t,callback:e})}_notify(e,n){const r={};for(const n of e){this.images[n]||this.fire(new t.Event("styleimagemissing",{id:n}));const e=this.images[n];e?r[n]={data:e.data.clone(),pixelRatio:e.pixelRatio,sdf:e.sdf,version:e.version,stretchX:e.stretchX,stretchY:e.stretchY,content:e.content,hasRenderCallback:Boolean(e.userImage&&e.userImage.render)}:t.warnOnce(`Image "${n}" could not be loaded. Please make sure you have added the image with map.addImage() or a "sprite" property in your style. You can provide missing images by listening for the "styleimagemissing" map event.`)}n(null,r)}getPixelSize(){const{width:t,height:e}=this.atlasImage;return{width:t,height:e}}getPattern(e){const n=this.patterns[e],r=this.getImage(e);if(!r)return null;if(n&&n.position.version===r.version)return n.position;if(n)n.position.version=r.version;else{const n={w:r.data.width+2,h:r.data.height+2,x:0,y:0},i=new t.ImagePosition(n,r);this.patterns[e]={bin:n,position:i}}return this._updatePatternAtlas(),this.patterns[e].position}bind(e){const n=e.gl;this.atlasTexture?this.dirty&&(this.atlasTexture.update(this.atlasImage),this.dirty=!1):this.atlasTexture=new t.Texture(e,this.atlasImage,n.RGBA),this.atlasTexture&&this.atlasTexture.bind(n.LINEAR,n.CLAMP_TO_EDGE)}_updatePatternAtlas(){const e=[];for(const t in this.patterns)e.push(this.patterns[t].bin);const{w:n,h:r}=t.potpack(e),i=this.atlasImage;i.resize({width:n||1,height:r||1});for(const e in this.patterns){const{bin:n}=this.patterns[e],r=n.x+1,o=n.y+1,s=this.images[e].data,a=s.width,c=s.height;t.RGBAImage.copy(s,i,{x:0,y:0},{x:r,y:o},{width:a,height:c}),t.RGBAImage.copy(s,i,{x:0,y:c-1},{x:r,y:o-1},{width:a,height:1}),t.RGBAImage.copy(s,i,{x:0,y:0},{x:r,y:o+c},{width:a,height:1}),t.RGBAImage.copy(s,i,{x:a-1,y:0},{x:r-1,y:o},{width:1,height:c}),t.RGBAImage.copy(s,i,{x:0,y:0},{x:r+a,y:o},{width:1,height:c})}this.dirty=!0}beginFrame(){this.callbackDispatchedThisFrame={}}
vendor: 46,205 bytes, line 27
27dispatchRenderCallbacks(t){for(const e of t){if(this.callbackDispatchedThisFrame[e])continue;this.callbackDispatchedThisFrame[e]=!0;const t=this.images[e];v(t)&&this.updateImage(e,t)}}}const x=new t.Properties({anchor:new t.DataConstantProperty(t.spec.light.anchor),position:new class{constructor(){this.specification=t.spec.light.position}possiblyEvaluate(e,n){return function([e,n,r]){const i=t.degToRad(n+90),o=t.degToRad(r);return{x:e*Math.cos(i)*Math.sin(o),y:e*Math.sin(i)*Math.sin(o),z:e*Math.cos(o),azimuthal:n,polar:r}}(e.expression.evaluate(n))}interpolate(e,n,r){return{x:t.number(e.x,n.x,r),y:t.number(e.y,n.y,r),z:t.number(e.z,n.z,r),azimuthal:t.number(e.azimuthal,n.azimuthal,r),polar:t.number(e.polar,n.polar,r)}}},color:new t.DataConstantProperty(t.spec.light.color),intensity:new t.DataConstantProperty(t.spec.light.intensity)});class w extends t.Evented{constructor(e){super(),this._transitionable=new t.Transitionable(x),this.setLight(e),this._transitioning=this._transitionable.untransitioned()}getLight(){return this._transitionable.serialize()}setLight(e,n={}){if(!this._validate(t.validateLight,e,n))for(const n in e){const r=e[n];t.endsWith(n,"-transition")?this._transitionable.setTransition(n.slice(0,-11),r):this._transitionable.setValue(n,r)}}updateTransitions(t){this._transitioning=this._transitionable.transitioned(t,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}recalculate(t){this.properties=this._transitioning.possiblyEvaluate(t)}_validate(e,n,r){return(!r||!1!==r.validate)&&t.emitValidationErrors(this,e.call(t.validateStyle,t.extend({value:n,style:{glyphs:!0,sprite:!0},styleSpec:t.spec})))}}const E=new t.Properties({source:new t.DataConstantProperty(t.spec.terrain.source),exaggeration:new t.DataConstantProperty(t.spec.terrain.exaggeration)});let S=class extends t.Evented{constructor(e,n){super(),this._transitionable=new t.Transitionable(E),this.set(e),this._transitioning=this._transitionable.untransitioned(),this.drapeRenderMode=n}get(){return this._transitionable.serialize()}set(e){for(const n in e){const r=e[n];t.endsWith(n,"-transition")?this._transitionable.setTransition(n.slice(0,-11),r):this._transitionable.setValue(n,r)}}updateTransitions(t){this._transitioning=this._transitionable.transitioned(t,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}recalculate(t){this.properties=this._transitioning.possiblyEvaluate(t)}};function C(e,n,r,i){const o=t.smoothstep(45,65,r),[s,a]=A(e,i),c=t.length(n);let l=1-Math.min(1,Math.exp((c-s)/(a-s)*-6));return l*=l*l,l=Math.min(1,1.00747*l),l*o*e.alpha}function A(t,e){const n=.5/Math.tan(.5*e);return[t.range[0]+n,t.range[1]+n]}const I=new t.Properties({range:new t.DataConstantProperty(t.spec.fog.range),color:new t.DataConstantProperty(t.spec.fog.color),"high-color":new t.DataConstantProperty(t.spec.fog["high-color"]),"space-color":new t.DataConstantProperty(t.spec.fog["space-color"]),"horizon-blend":new t.DataConstantProperty(t.spec.fog["horizon-blend"]),"star-intensity":new t.DataConstantProperty(t.spec.fog["star-intensity"])});class T extends t.Evented{constructor(e,n){super(),this._transitionable=new t.Transitionable(I),this.set(e),this._transitioning=this._transitionable.untransitioned(),this._transform=n}get state(){const e=this._transform,n="globe"===e.projection.name,r=t.globeToMercatorTransition(e.zoom),i=this.properties.get("range"),o=[.5,3];return{range:n?[t.number(o[0],i[0],r),t.number(o[1],i[1],r)]:i,horizonBlend:this.properties.get("horizon-blend"),alpha:this.properties.get("color").a}}get(){return this._transitionable.serialize()}set(e,n={}){if(!this._validate(t.validateFog,e,n)){for(const n of Object.keys(t.spec.fog))e&&void 0===e[n]&&(e[n]=t.spec.fog[n].default);for(const n in e){const r=e[n];t.endsWith(n,"-transition")?this._transitionable.setTransition(n.slice(0,-11),r):this._transitionable.setValue(n,r)}}}getOpacity(e){if(!this._transform.projection.supportsFog)return 0;const n=this.properties&&this.properties.get("color")||1;return("globe"===this._transform.projection.name?1:t.smoothstep(45,65,e))*n.a}getOpacityAtLatLng(e,n){return this._transform.projection.supportsFog?function(e,n,r){const i=t.MercatorCoordinate.fromLngLat(n),o=r.elevation?r.elevation.getAtPointOrZero(i):0,s=[i.x,i.y,o];return t.transformMat4(s,s,r.mercatorFogMatrix),C(e,s,r.pitch,r._fov)}(this.state,e,n):0}getFovAdjustedRange(t){return this._transform.projection.supportsFog?A(this.state,t):[0,1]}updateTransitions(t){this._transitioning=this._transitionable.transitioned(t,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}recalculate(t){this.properties=this._transitioning.possiblyEvaluate(t)}_validate(e,n,r){return(!r||!1!==r.validate)&&t.emitValidationErrors(this,e.call(t.validateStyle,t.extend({value:n,style:{glyphs:!0,sprite:!0},styleSpec:t.spec})))}}class M{constructor(e,n){this.workerPool=e,this.actors=[],this.currentActor=0,this.id=t.uniqueId();const r=this.workerPool.acquire(this.id);for(let t=0;t<r.length;t++){const e=new M.Actor(r[t],n,this.id);e.name="Worker "+t,this.actors.push(e)}this.ready=!1,this.broadcast("checkIfReady",null,()=>{this.ready=!0})}broadcast(e,n,r){t.asyncAll(this.actors,(t,r)=>{t.send(e,n,r)},r=r||function(){})}getActor(){return this.currentActor=(this.currentActor+1)%this.actors.length,this.actors[this.currentActor]}remove(){this.actors.forEach(t=>{t.remove()}),this.actors=[],this.workerPool.release(this.id)}}function F(e,n,r){return n*(t.EXTENT/(e.tileSize*Math.pow(2,r-e.tileID.overscaledZ)))}M.Actor=t.Actor;class B{constructor(t,e,n,r){this.screenBounds=t,this.cameraPoint=e,this._screenRaycastCache={},this._cameraRaycastCache={},this.isAboveHorizon=n,this.screenGeometry=this.bufferedScreenGeometry(0),this.screenGeometryMercator=this._bufferedScreenMercator(0,r)}static createFromScreenPoints(e,n){let r,i;if(e instanceof t.Point||"number"==typeof e[0]){const o=t.Point.convert(e);r=[o],i=n.isPointAboveHorizon(o)}else{const o=t.Point.convert(e[0]),s=t.Point.convert(e[1]);r=[o,s],i=t.polygonizeBounds(o,s).every(t=>n.isPointAboveHorizon(t))}return new B(r,n.getCameraPoint(),i,n)}isPointQuery(){return 1===this.screenBounds.length}bufferedScreenGeometry(e){return t.polygonizeBounds(this.screenBounds[0],1===this.screenBounds.length?this.screenBounds[0]:this.screenBounds[1],e)}bufferedCameraGeometry(e){const n=this.screenBounds[0],r=1===this.screenBounds.length?this.screenBounds[0].add(new t.Point(1,1)):this.screenBounds[1],i=t.polygonizeBounds(n,r,0,!1);return this.cameraPoint.y>r.y&&(this.cameraPoint.x>n.x&&this.cameraPoint.x<r.x?i.splice(3,0,this.cameraPoint):this.cameraPoint.x>=r.x?i[2]=this.cameraPoint:this.cameraPoint.x<=n.x&&(i[3]=this.cameraPoint)),t.bufferConvexPolygon(i,e)}bufferedCameraGeometryGlobe(e){const n=this.screenBounds[0],r=1===this.screenBounds.length?this.screenBounds[0].add(new t.Point(1,1)):this.screenBounds[1],i=t.polygonizeBounds(n,r,e),o=this.cameraPoint.clone();switch(3*((o.y>n.y)+(o.y>r.y))+((o.x>n.x)+(o.x>r.x))){case 0:i[0]=o,i[4]=o.clone();break;case 1:i.splice(1,0,o);break;case 2:i[1]=o;break;case 3:i.splice(4,0,o);break;case 5:i.splice(2,0,o);break;case 6:i[3]=o;break;case 7:i.splice(3,0,o);break;case 8:i[2]=o}return i}containsTile(e,n,r,i=0){const o=e.queryPadding/n._pixelsPerMercatorPixel+1,s=r?this._bufferedCameraMercator(o,n):this._bufferedScreenMercator(o,n);let a=e.tileID.wrap+(s.unwrapped?i:0);const c=s.polygon.map(n=>t.getTilePoint(e.tileTransform,n,a));if(!t.polygonIntersectsBox(c,0,0,t.EXTENT,t.EXTENT))return;a=e.tileID.wrap+(this.screenGeometryMercator.unwrapped?i:0);const l=this.screenGeometryMercator.polygon.map(n=>t.getTileVec3(e.tileTransform,n,a)),u=l.map(e=>new t.Point(e[0],e[1])),h=n.getFreeCameraOptions().position||new t.MercatorCoordinate(0,0,0),f=t.getTileVec3(e.tileTransform,h,a),d=l.map(e=>{const n=t.sub(e,e,f);return t.normalize(n,n),new t.Ray(f,n)}),p=F(e,1,n.zoom)*n._pixelsPerMercatorPixel;return{queryGeometry:this,tilespaceGeometry:u,tilespaceRays:d,bufferedTilespaceGeometry:c,bufferedTilespaceBounds:(g=t.getBounds(c),g.min.x=t.clamp(g.min.x,0,t.EXTENT),g.min.y=t.clamp(g.min.y,0,t.EXTENT),g.max.x=t.clamp(g.max.x,0,t.EXTENT),g.max.y=t.clamp(g.max.y,0,t.EXTENT),g),tile:e,tileID:e.tileID,pixelToTileUnitsFactor:p};var g}_bufferedScreenMercator(t,e){const n=U(t);if(this._screenRaycastCache[n])return this._screenRaycastCache[n];{let r;return r="globe"===e.projection.name?this._projectAndResample(this.bufferedScreenGeometry(t),e):{polygon:this.bufferedScreenGeometry(t).map(t=>e.pointCoordinate3D(t)),unwrapped:!0},this._screenRaycastCache[n]=r,r}}_bufferedCameraMercator(t,e){const n=U(t);if(this._cameraRaycastCache[n])return this._cameraRaycastCache[n];{let r;return r="globe"===e.projection.name?this._projectAndResample(this.bufferedCameraGeometryGlobe(t),e):{polygon:this.bufferedCameraGeometry(t).map(t=>e.pointCoordinate3D(t)),unwrapped:!0},this._cameraRaycastCache[n]=r,r}}_projectAndResample(e,n){const r=function(e,n){const r=t.multiply([],n.pixelMatrix,n.globeMatrix),i=[0,-t.GLOBE_RADIUS,0,1],o=[0,t.GLOBE_RADIUS,0,1],s=[0,0,0,1];t.transformMat4$1(i,i,r),t.transformMat4$1(o,o,r),t.transformMat4$1(s,s,r);const a=new t.Point(i[0]/i[3],i[1]/i[3]),c=new t.Point(o[0]/o[3],o[1]/o[3]),l=t.polygonContainsPoint(e,a)&&i[3]<s[3],u=t.polygonContainsPoint(e,c)&&o[3]<s[3];if(!l&&!u)return null;const h=function(t,e,n){for(let r=1;r<t.length;r++){const i=O(e.pointCoordinate3D(t[r-1]).x),o=O(e.pointCoordinate3D(t[r]).x);if(n<0){if(i<o)return{idx:r,t:-i/(o-1-i)}}else if(o<i)return{idx:r,t:(1-i)/(o+1-i)}}return null}(e,n,l?-1:1);if(!h)return null;const{idx:f,t:d}=h;let p=f>1?L(e.slice(0,f),n):[],g=f<e.length?L(e.slice(f),n):[];p=p.map(e=>new t.Point(O(e.x),e.y)),g=g.map(e=>new t.Point(O(e.x),e.y));const m=[...p];0===m.length&&m.push(g[g.length-1]);const y=t.number(m[m.length-1].y,(0===g.length?p[0]:g[0]).y,d);let _;return _=l?[new t.Point(0,y),new t.Point(0,0),new t.Point(1,0),new t.Point(1,y)]:[new t.Point(1,y),new t.Point(1,1),new t.Point(0,1),new t.Point(0,y)],m.push(..._),0===g.length?m.push(p[0]):m.push(...g),{polygon:m.map(e=>new t.MercatorCoordinate(e.x,e.y)),unwrapped:!1}}(e,n);if(r)return r;const i=function(e,n){let r=!1,i=-1/0,o=0;for(let t=0;t<e.length-1;t++)e[t].x>i&&(i=e[t].x,o=t);for(let t=0;t<e.length-1;t++){const n=(o+t)%(e.length-1),i=e[n],s=e[n+1];Math.abs(i.x-s.x)>.5&&(i.x<s.x?(i.x+=1,0===n&&(e[e.length-1].x+=1)):(s.x+=1,n+1===e.length-1&&(e[0].x+=1)),r=!0)}const s=t.mercatorXfromLng(n.center.lng);return r&&s<Math.abs(s-1)&&e.forEach(t=>{t.x-=1}),{polygon:e,unwrapped:r}}(L(e,n).map(e=>new t.Point(O(e.x),e.y)),n);return{polygon:i.polygon.map(e=>new t.MercatorCoordinate(e.x,e.y)),unwrapped:i.unwrapped}}}function L(e,n){return t.resample(e,t=>{const e=n.pointCoordinate3D(t);t.x=e.x,t.y=e.y},1/256)}function O(t){return t<0?1+t%1:t%1}function U(t){return 100*t|0}function k(e,n,r,i,o){const s=function(r,i){if(r)return o(r);if(i){e.url&&i.tiles&&e.tiles&&delete e.tiles;const r=t.pick(t.extend(i,e),["tiles","minzoom","maxzoom","attribution","mapbox_logo","bounds","scheme","tileSize","encoding"]);i.vector_layers&&(r.vectorLayers=i.vector_layers,r.vectorLayerIds=r.vectorLayers.map(t=>t.id)),r.tiles=n.canonicalizeTileset(r,e.url),o(null,r)}};return e.url?t.getJSON(n.transformRequest(n.normalizeSourceURL(e.url,null,r,i),t.ResourceType.Source),s):t.exported.frame(()=>s(null,e))}class P{constructor(e,n,r){this.bounds=t.LngLatBounds.convert(this.validateBounds(e)),this.minzoom=n||0,this.maxzoom=r||24}validateBounds(t){return Array.isArray(t)&&4===t.length?[Math.max(-180,t[0]),Math.max(-90,t[1]),Math.min(180,t[2]),Math.min(90,t[3])]:[-180,-90,180,90]}contains(e){const n=Math.pow(2,e.z),r=Math.floor(t.mercatorXfromLng(this.bounds.getWest())*n),i=Math.floor(t.mercatorYfromLat(this.bounds.getNorth())*n),o=Math.ceil(t.mercatorXfromLng(this.bounds.getEast())*n),s=Math.ceil(t.mercatorYfromLat(this.bounds.getSouth())*n);return e.x>=r&&e.x<o&&e.y>=i&&e.y<s}}class D{constructor(t,e,n){this.context=t;const r=t.gl;this.buffer=r.createBuffer(),this.dynamicDraw=Boolean(n),this.context.unbindVAO(),t.bindElementBuffer.set(this.buffer),r.bufferData(r.ELEMENT_ARRAY_BUFFER,e.arrayBuffer,this.dynamicDraw?r.DYNAMIC_DRAW:r.STATIC_DRAW),this.dynamicDraw||e.destroy()}bind(){this.context.bindElementBuffer.set(this.buffer)}updateData(t){const e=this.context.gl;this.context.unbindVAO(),this.bind(),e.bufferSubData(e.ELEMENT_ARRAY_BUFFER,0,t.arrayBuffer)}destroy(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)}}const R={Int8:"BYTE",Uint8:"UNSIGNED_BYTE",Int16:"SHORT",Uint16:"UNSIGNED_SHORT",Int32:"INT",Uint32:"UNSIGNED_INT",Float32:"FLOAT"};class j{constructor(t,e,n,r){this.length=e.length,this.attributes=n,this.itemSize=e.bytesPerElement,this.dynamicDraw=r,this.context=t;const i=t.gl;this.buffer=i.createBuffer(),t.bindVertexBuffer.set(this.buffer),i.bufferData(i.ARRAY_BUFFER,e.arrayBuffer,this.dynamicDraw?i.DYNAMIC_DRAW:i.STATIC_DRAW),this.dynamicDraw||e.destroy()}bind(){this.context.bindVertexBuffer.set(this.buffer)}updateData(t){const e=this.context.gl;this.bind(),e.bufferSubData(e.ARRAY_BUFFER,0,t.arrayBuffer)}enableAttributes(t,e){for(let n=0;n<this.attributes.length;n++){const r=e.attributes[this.attributes[n].name];void 0!==r&&t.enableVertexAttribArray(r)}}setVertexAttribPointers(t,e,n){for(let r=0;r<this.attributes.length;r++){const i=this.attributes[r],o=e.attributes[i.name];void 0!==o&&t.vertexAttribPointer(o,i.components,t[R[i.type]],!1,this.itemSize,i.offset+this.itemSize*(n||0))}}destroy(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)}}class z{constructor(t){this.gl=t.gl,this.default=this.getDefault(),this.current=this.default,this.dirty=!1}get(){return this.current}set(t){}getDefault(){return this.default}setDefault(){this.set(this.default)}}class Q extends z{getDefault(){return t.Color.transparent}set(t){const e=this.current;(t.r!==e.r||t.g!==e.g||t.b!==e.b||t.a!==e.a||this.dirty)&&(this.gl.clearColor(t.r,t.g,t.b,t.a),this.current=t,this.dirty=!1)}}class N extends z{getDefault(){return 1}set(t){(t!==this.current||this.dirty)&&(this.gl.clearDepth(t),this.current=t,this.dirty=!1)}}class V extends z{getDefault(){return 0}set(t){(t!==this.current||this.dirty)&&(this.gl.clearStencil(t),this.current=t,this.dirty=!1)}}class G extends z{getDefault(){return[!0,!0,!0,!0]}set(t){const e=this.current;(t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||this.dirty)&&(this.gl.colorMask(t[0],t[1],t[2],t[3]),this.current=t,this.dirty=!1)}}class H extends z{getDefault(){return!0}set(t){(t!==this.current||this.dirty)&&(this.gl.depthMask(t),this.current=t,this.dirty=!1)}}class Z extends z{getDefault(){return 255}set(t){(t!==this.current||this.dirty)&&(this.gl.stencilMask(t),this.current=t,this.dirty=!1)}}class W extends z{getDefault(){return{func:this.gl.ALWAYS,ref:0,mask:255}}set(t){const e=this.current;(t.func!==e.func||t.ref!==e.ref||t.mask!==e.mask||this.dirty)&&(this.gl.stencilFunc(t.func,t.ref,t.mask),this.current=t,this.dirty=!1)}}class X extends z{getDefault(){const t=this.gl;return[t.KEEP,t.KEEP,t.KEEP]}set(t){const e=this.current;(t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||this.dirty)&&(this.gl.stencilOp(t[0],t[1],t[2]),this.current=t,this.dirty=!1)}}class Y extends z{getDefault(){return!1}set(t){if(t===this.current&&!this.dirty)return;const e=this.gl;t?e.enable(e.STENCIL_TEST):e.disable(e.STENCIL_TEST),this.current=t,this.dirty=!1}}class q extends z{getDefault(){return[0,1]}set(t){const e=this.current;(t[0]!==e[0]||t[1]!==e[1]||this.dirty)&&(this.gl.depthRange(t[0],t[1]),this.current=t,this.dirty=!1)}}class K extends z{getDefault(){return!1}set(t){if(t===this.current&&!this.dirty)return;const e=this.gl;t?e.enable(e.DEPTH_TEST):e.disable(e.DEPTH_TEST),this.current=t,this.dirty=!1}}class J extends z{getDefault(){return this.gl.LESS}set(t){(t!==this.current||this.dirty)&&(this.gl.depthFunc(t),this.current=t,this.dirty=!1)}}class $ extends z{getDefault(){return!1}set(t){if(t===this.current&&!this.dirty)return;const e=this.gl;t?e.enable(e.BLEND):e.disable(e.BLEND),this.current=t,this.dirty=!1}}class tt extends z{getDefault(){const t=this.gl;return[t.ONE,t.ZERO]}set(t){const e=this.current;(t[0]!==e[0]||t[1]!==e[1]||this.dirty)&&(this.gl.blendFunc(t[0],t[1]),this.current=t,this.dirty=!1)}}class et extends z{getDefault(){return t.Color.transparent}set(t){const e=this.current;(t.r!==e.r||t.g!==e.g||t.b!==e.b||t.a!==e.a||this.dirty)&&(this.gl.blendColor(t.r,t.g,t.b,t.a),this.current=t,this.dirty=!1)}}class nt extends z{getDefault(){return this.gl.FUNC_ADD}set(t){(t!==this.current||this.dirty)&&(this.gl.blendEquation(t),this.current=t,this.dirty=!1)}}class rt extends z{getDefault(){return!1}set(t){if(t===this.current&&!this.dirty)return;const e=this.gl;t?e.enable(e.CULL_FACE):e.disable(e.CULL_FACE),this.current=t,this.dirty=!1}}class it extends z{getDefault(){return this.gl.BACK}set(t){(t!==this.current||this.dirty)&&(this.gl.cullFace(t),this.current=t,this.dirty=!1)}}class ot extends z{getDefault(){return this.gl.CCW}set(t){(t!==this.current||this.dirty)&&(this.gl.frontFace(t),this.current=t,this.dirty=!1)}}let st,at=class extends z{getDefault(){return null}set(t){(t!==this.current||this.dirty)&&(this.gl.useProgram(t),this.current=t,this.dirty=!1)}};class ct extends z{getDefault(){return this.gl.TEXTURE0}set(t){(t!==this.current||this.dirty)&&(this.gl.activeTexture(t),this.current=t,this.dirty=!1)}}class lt extends z{getDefault(){const t=this.gl;return[0,0,t.drawingBufferWidth,t.drawingBufferHeight]}set(t){const e=this.current;(t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||this.dirty)&&(this.gl.viewport(t[0],t[1],t[2],t[3]),this.current=t,this.dirty=!1)}}class ut extends z{getDefault(){return null}set(t){if(t===this.current&&!this.dirty)return;const e=this.gl;e.bindFramebuffer(e.FRAMEBUFFER,t),this.current=t,this.dirty=!1}}class ht extends z{getDefault(){return null}set(t){if(t===this.current&&!this.dirty)return;const e=this.gl;e.bindRenderbuffer(e.RENDERBUFFER,t),this.current=t,this.dirty=!1}}class ft extends z{getDefault(){return null}set(t){if(t===this.current&&!this.dirty)return;const e=this.gl;e.bindTexture(e.TEXTURE_2D,t),this.current=t,this.dirty=!1}}class dt extends z{getDefault(){return null}set(t){if(t===this.current&&!this.dirty)return;const e=this.gl;e.bindBuffer(e.ARRAY_BUFFER,t),this.current=t,this.dirty=!1}}class pt extends z{getDefault(){return null}set(t){const e=this.gl;e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,t),this.current=t,this.dirty=!1}}class gt extends z{constructor(t){super(t),this.vao=t.extVertexArrayObject}getDefault(){return null}set(t){this.vao&&(t!==this.current||this.dirty)&&(this.vao.bindVertexArrayOES(t),this.current=t,this.dirty=!1)}}class mt extends z{getDefault(){return 4}set(t){if(t===this.current&&!this.dirty)return;const e=this.gl;e.pixelStorei(e.UNPACK_ALIGNMENT,t),this.current=t,this.dirty=!1}}class yt extends z{getDefault(){return!1}set(t){if(t===this.current&&!this.dirty)return;const e=this.gl;e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,t),this.current=t,this.dirty=!1}}class _t extends z{getDefault(){return!1}set(t){if(t===this.current&&!this.dirty)return;const e=this.gl;e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,t),this.current=t,this.dirty=!1}}class vt extends z{constructor(t,e){super(t),this.context=t,this.parent=e}getDefault(){return null}}class bt extends vt{setDirty(){this.dirty=!0}set(t){if(t===this.current&&!this.dirty)return;this.context.bindFramebuffer.set(this.parent);const e=this.gl;e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,t,0),this.current=t,this.dirty=!1}}class xt extends vt{attachment(){return this.gl.DEPTH_ATTACHMENT}set(t){if(t===this.current&&!this.dirty)return;this.context.bindFramebuffer.set(this.parent);const e=this.gl;e.framebufferRenderbuffer(e.FRAMEBUFFER,this.attachment(),e.RENDERBUFFER,t),this.current=t,this.dirty=!1}}class wt extends xt{attachment(){return this.gl.DEPTH_STENCIL_ATTACHMENT}}class Et{constructor(t,e,n,r){this.context=t,this.width=e,this.height=n;const i=this.framebuffer=t.gl.createFramebuffer();this.colorAttachment=new bt(t,i),r&&(this.depthAttachment=new xt(t,i))}destroy(){const t=this.context.gl,e=this.colorAttachment.get();if(e&&t.deleteTexture(e),this.depthAttachment){const e=this.depthAttachment.get();e&&t.deleteRenderbuffer(e)}t.deleteFramebuffer(this.framebuffer)}}class St{constructor(t,e=!1){if(this.gl=t,this.isWebGL2=e,this.extVertexArrayObject=this.gl.getExtension("OES_vertex_array_object"),e){const e=t;this.extVertexArrayObject={createVertexArrayOES:e.createVertexArray.bind(t),deleteVertexArrayOES:e.deleteVertexArray.bind(t),bindVertexArrayOES:e.bindVertexArray.bind(t)}}this.clearColor=new Q(this),this.clearDepth=new N(this),this.clearStencil=new V(this),this.colorMask=new G(this),this.depthMask=new H(this),this.stencilMask=new Z(this),this.stencilFunc=new W(this),this.stencilOp=new X(this),this.stencilTest=new Y(this),this.depthRange=new q(this),this.depthTest=new K(this),this.depthFunc=new J(this),this.blend=new $(this),this.blendFunc=new tt(this),this.blendColor=new et(this),this.blendEquation=new nt(this),this.cullFace=new rt(this),this.cullFaceSide=new it(this),this.frontFace=new ot(this),this.program=new at(this),this.activeTexture=new ct(this),this.viewport=new lt(this),this.bindFramebuffer=new ut(this),this.bindRenderbuffer=new ht(this),this.bindTexture=new ft(this),this.bindVertexBuffer=new dt(this),this.bindElementBuffer=new pt(this),this.bindVertexArrayOES=this.extVertexArrayObject&&new gt(this),this.pixelStoreUnpack=new mt(this),this.pixelStoreUnpackPremultiplyAlpha=new yt(this),this.pixelStoreUnpackFlipY=new _t(this),this.extTextureFilterAnisotropic=t.getExtension("EXT_texture_filter_anisotropic")||t.getExtension("MOZ_EXT_texture_filter_anisotropic")||t.getExtension("WEBKIT_EXT_texture_filter_anisotropic"),this.extTextureFilterAnisotropic&&(this.extTextureFilterAnisotropicMax=t.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT)),this.extTextureFilterAnisotropicForceOff=!1,this.extStandardDerivativesForceOff=!1,this.extDebugRendererInfo=t.getExtension("WEBGL_debug_renderer_info"),this.extDebugRendererInfo&&(this.renderer=t.getParameter(this.extDebugRendererInfo.UNMASKED_RENDERER_WEBGL),this.vendor=t.getParameter(this.extDebugRendererInfo.UNMASKED_VENDOR_WEBGL)),e||(this.extTextureHalfFloat=t.getExtension("OES_texture_half_float")),(e||this.extTextureHalfFloat&&t.getExtension("OES_texture_half_float_linear"))&&(this.extRenderToTextureHalfFloat=t.getExtension("EXT_color_buffer_half_float")),this.extStandardDerivatives=e||t.getExtension("OES_standard_derivatives"),this.extTimerQuery=t.getExtension("EXT_disjoint_timer_query"),this.maxTextureSize=t.getParameter(t.MAX_TEXTURE_SIZE)}setDefault(){this.unbindVAO(),this.clearColor.setDefault(),this.clearDepth.setDefault(),this.clearStencil.setDefault(),this.colorMask.setDefault(),this.depthMask.setDefault(),this.stencilMask.setDefault(),this.stencilFunc.setDefault(),this.stencilOp.setDefault(),this.stencilTest.setDefault(),this.depthRange.setDefault(),this.depthTest.setDefault(),this.depthFunc.setDefault(),this.blend.setDefault(),this.blendFunc.setDefault(),this.blendColor.setDefault(),this.blendEquation.setDefault(),this.cullFace.setDefault(),this.cullFaceSide.setDefault(),this.frontFace.setDefault(),this.program.setDefault(),this.activeTexture.setDefault(),this.bindFramebuffer.setDefault(),this.pixelStoreUnpack.setDefault(),this.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.pixelStoreUnpackFlipY.setDefault()}setDirty(){this.clearColor.dirty=!0,this.clearDepth.dirty=!0,this.clearStencil.dirty=!0,this.colorMask.dirty=!0,this.depthMask.dirty=!0,this.stencilMask.dirty=!0,this.stencilFunc.dirty=!0,this.stencilOp.dirty=!0,this.stencilTest.dirty=!0,this.depthRange.dirty=!0,this.depthTest.dirty=!0,this.depthFunc.dirty=!0,this.blend.dirty=!0,this.blendFunc.dirty=!0,this.blendColor.dirty=!0,this.blendEquation.dirty=!0,this.cullFace.dirty=!0,this.cullFaceSide.dirty=!0,this.frontFace.dirty=!0,this.program.dirty=!0,this.activeTexture.dirty=!0,this.viewport.dirty=!0,this.bindFramebuffer.dirty=!0,this.bindRenderbuffer.dirty=!0,this.bindTexture.dirty=!0,this.bindVertexBuffer.dirty=!0,this.bindElementBuffer.dirty=!0,this.extVertexArrayObject&&(this.bindVertexArrayOES.dirty=!0),this.pixelStoreUnpack.dirty=!0,this.pixelStoreUnpackPremultiplyAlpha.dirty=!0,this.pixelStoreUnpackFlipY.dirty=!0}createIndexBuffer(t,e){return new D(this,t,e)}createVertexBuffer(t,e,n){return new j(this,t,e,n)}createRenderbuffer(t,e,n){const r=this.gl,i=r.createRenderbuffer();return this.bindRenderbuffer.set(i),r.renderbufferStorage(r.RENDERBUFFER,t,e,n),this.bindRenderbuffer.set(null),i}createFramebuffer(t,e,n){return new Et(this,t,e,n)}clear({color:t,depth:e,stencil:n}){const r=this.gl;let i=0;t&&(i|=r.COLOR_BUFFER_BIT,this.clearColor.set(t),this.colorMask.set([!0,!0,!0,!0])),void 0!==e&&(i|=r.DEPTH_BUFFER_BIT,this.depthRange.set([0,1]),this.clearDepth.set(e),this.depthMask.set(!0)),void 0!==n&&(i|=r.STENCIL_BUFFER_BIT,this.clearStencil.set(n),this.stencilMask.set(255)),r.clear(i)}setCullFace(t){!1===t.enable?this.cullFace.set(!1):(this.cullFace.set(!0),this.cullFaceSide.set(t.mode),this.frontFace.set(t.frontFace))}setDepthMode(t){t.func!==this.gl.ALWAYS||t.mask?(this.depthTest.set(!0),this.depthFunc.set(t.func),this.depthMask.set(t.mask),this.depthRange.set(t.range)):this.depthTest.set(!1)}setStencilMode(t){t.test.func!==this.gl.ALWAYS||t.mask?(this.stencilTest.set(!0),this.stencilMask.set(t.mask),this.stencilOp.set([t.fail,t.depthFail,t.pass]),this.stencilFunc.set({func:t.test.func,ref:t.ref,mask:t.test.mask})):this.stencilTest.set(!1)}setColorMode(n){e(n.blendFunction,t.ColorMode.Replace)?this.blend.set(!1):(this.blend.set(!0),this.blendFunc.set(n.blendFunction),this.blendColor.set(n.blendColor)),this.colorMask.set(n.mask)}unbindVAO(){this.extVertexArrayObject&&this.bindVertexArrayOES.set(null)}}class Ct extends t.Evented{constructor(e,n,r,i){if(super(),this.id=e,this.dispatcher=r,this.type="vector",this.minzoom=0,this.maxzoom=22,this.scheme="xyz",this.tileSize=512,this.reparseOverscaled=!0,this.isTileClipped=!0,this._loaded=!1,t.extend(this,t.pick(n,["url","scheme","tileSize","promoteId"])),this._options=t.extend({type:"vector"},n),this._collectResourceTiming=n.collectResourceTiming,512!==this.tileSize)throw new Error("vector tile sources must have a tileSize of 512");this.setEventedParent(i),this._tileWorkers={},this._deduped=new t.DedupedRequest}load(e){this._loaded=!1,this.fire(new t.Event("dataloading",{dataType:"source"}));const n=Array.isArray(this.map._language)?this.map._language.join():this.map._language,r=this.map._worldview;this._tileJSONRequest=k(this._options,this.map._requestManager,n,r,(i,o)=>{this._tileJSONRequest=null,this._loaded=!0,i?(n&&console.warn("Ensure that your requested language string is a valid BCP-47 code or list of codes. Found: "+n),r&&2!==r.length&&console.warn("Requested worldview strings must be a valid ISO alpha-2 code. Found: "+r),this.fire(new t.ErrorEvent(i))):o&&(t.extend(this,o),o.bounds&&(this.tileBounds=new P(o.bounds,this.minzoom,this.maxzoom)),t.postTurnstileEvent(o.tiles,this.map._requestManager._customAccessToken),this.fire(new t.Event("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new t.Event("data",{dataType:"source",sourceDataType:"content"}))),e&&e(i)})}loaded(){return this._loaded}hasTile(t){return!this.tileBounds||this.tileBounds.contains(t.canonical)}onAdd(t){this.map=t,this.load()}reload(){this.cancelTileJSONRequest(),this.load(()=>this.map.style._clearSource(this.id))}setTiles(t){return this._options.tiles=t,this.reload(),this}setUrl(t){return this.url=t,this._options.url=t,this.reload(),this}onRemove(){this.cancelTileJSONRequest()}serialize(){return t.extend({},this._options)}loadTile(e,n){const r=this.map._requestManager.normalizeTileURL(e.tileID.canonical.url(this.tiles,this.scheme)),i={request:this.map._requestManager.transformRequest(r,t.ResourceType.Tile),data:void 0,uid:e.uid,tileID:e.tileID,tileZoom:e.tileZoom,zoom:e.tileID.overscaledZ,tileSize:this.tileSize*e.tileID.overscaleFactor(),type:this.type,source:this.id,pixelRatio:t.exported.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId,isSymbolTile:e.isSymbolTile};if(i.request.collectResourceTiming=this._collectResourceTiming,e.actor&&"expired"!==e.state)"loading"===e.state?e.reloadCallback=n:e.request=e.actor.send("reloadTile",i,o.bind(this));else if(e.actor=this._tileWorkers[r]=this._tileWorkers[r]||this.dispatcher.getActor(),this.dispatcher.ready)e.request=e.actor.send("loadTile",i,o.bind(this),void 0,!0);else{const n=t.loadVectorTile.call({deduped:this._deduped},i,(t,n)=>{t||!n?o.call(this,t):(i.data={cacheControl:n.cacheControl,expires:n.expires,rawData:n.rawData.slice(0)},e.actor&&e.actor.send("loadTile",i,o.bind(this),void 0,!0))},!0);e.request={cancel:n}}function o(r,i){return delete e.request,e.aborted?n(null):r&&404!==r.status?n(r):(i&&i.resourceTiming&&(e.resourceTiming=i.resourceTiming),this.map._refreshExpiredTiles&&i&&e.setExpiryData(i),e.loadVectorData(i,this.map.painter),t.cacheEntryPossiblyAdded(this.dispatcher),n(null),void(e.reloadCallback&&(this.loadTile(e,e.reloadCallback),e.reloadCallback=null)))}}abortTile(t){t.request&&(t.request.cancel(),delete t.request),t.actor&&t.actor.send("abortTile",{uid:t.uid,type:this.type,source:this.id})}unloadTile(t){t.unloadVectorData(),t.actor&&t.actor.send("removeTile",{uid:t.uid,type:this.type,source:this.id})}hasTransition(){return!1}afterUpdate(){this._tileWorkers={}}cancelTileJSONRequest(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)}}class At extends t.Evented{constructor(e,n,r,i){super(),this.id=e,this.dispatcher=r,this.setEventedParent(i),this.type="raster",this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme="xyz",this.tileSize=512,this._loaded=!1,this._options=t.extend({type:"raster"},n),t.extend(this,t.pick(n,["url","scheme","tileSize"]))}load(e){this._loaded=!1,this.fire(new t.Event("dataloading",{dataType:"source"})),this._tileJSONRequest=k(this._options,this.map._requestManager,null,null,(n,r)=>{this._tileJSONRequest=null,this._loaded=!0,n?this.fire(new t.ErrorEvent(n)):r&&(t.extend(this,r),r.bounds&&(this.tileBounds=new P(r.bounds,this.minzoom,this.maxzoom)),t.postTurnstileEvent(r.tiles),this.fire(new t.Event("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new t.Event("data",{dataType:"source",sourceDataType:"content"}))),e&&e(n)})}loaded(){return this._loaded}onAdd(t){this.map=t,this.load()}reload(){this.cancelTileJSONRequest(),this.load(()=>this.map.style._clearSource(this.id))}setTiles(t){return this._options.tiles=t,this.reload(),this}setUrl(t){return this.url=t,this._options.url=t,this.reload(),this}onRemove(){this.cancelTileJSONRequest()}serialize(){return t.extend({},this._options)}hasTile(t){return!this.tileBounds||this.tileBounds.contains(t.canonical)}loadTile(e,n){const r=t.exported.devicePixelRatio>=2,i=this.map._requestManager.normalizeTileURL(e.tileID.canonical.url(this.tiles,this.scheme),r,this.tileSize);e.request=t.getImage(this.map._requestManager.transformRequest(i,t.ResourceType.Tile),(r,i,o,s)=>(delete e.request,e.aborted?(e.state="unloaded",n(null)):r?(e.state="errored",n(r)):i?(this.map._refreshExpiredTiles&&e.setExpiryData({cacheControl:o,expires:s}),e.setTexture(i,this.map.painter),e.state="loaded",t.cacheEntryPossiblyAdded(this.dispatcher),void n(null)):n(null)))}static loadTileData(t,e,n){t.setTexture(e,n)}static unloadTileData(t,e){t.texture&&e.saveTileTexture(t.texture)}abortTile(t,e){t.request&&(t.request.cancel(),delete t.request),e()}unloadTile(t,e){t.texture&&this.map.painter.saveTileTexture(t.texture),e()}hasTransition(){return!1}cancelTileJSONRequest(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)}}function It(e,n,r,i,o,s,a,c){const l=[e,r,o,n,i,s,1,1,1],u=[a,c,1],h=t.adjoint([],l),[f,d,p]=t.transformMat3(u,u,t.transpose(h,h));return t.multiply$1(l,[f,0,0,0,d,0,0,0,p],l)}class Tt extends t.Evented{constructor(t,e,n,r){super(),this.id=t,this.dispatcher=n,this.coordinates=e.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(r),this.options=e,this._dirty=!1}load(e,n){this._loaded=n||!1,this.fire(new t.Event("dataloading",{dataType:"source"})),this.url=this.options.url,this._imageRequest=t.getImage(this.map._requestManager.transformRequest(this.url,t.ResourceType.Image),(n,r)=>{if(this._imageRequest=null,this._loaded=!0,n)this.fire(new t.ErrorEvent(n));else if(r){const{HTMLImageElement:n}=t.window;this.image=r instanceof n?t.exported.getImageData(r):r,this._dirty=!0,this.width=this.image.width,this.height=this.image.height,e&&(this.coordinates=e),this._finishLoading()}})}loaded(){return this._loaded}updateImage(t){return this.image&&t.url?(this._imageRequest&&t.url!==this.options.url&&(this._imageRequest.cancel(),this._imageRequest=null),this.options.url=t.url,this.load(t.coordinates,this._loaded),this):this}_finishLoading(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new t.Event("data",{dataType:"source",sourceDataType:"metadata"})))}onAdd(t){this.map=t,this.load()}onRemove(){this._imageRequest&&(this._imageRequest.cancel(),this._imageRequest=null),this.texture&&this.texture.destroy()}setCoordinates(e){this.coordinates=e,this._boundsArray=void 0;const n=e.map(t.MercatorCoordinate.fromLngLat);return this.tileID=function(e){let n=1/0,r=1/0,i=-1/0,o=-1/0;for(const t of e)n=Math.min(n,t.x),r=Math.min(r,t.y),i=Math.max(i,t.x),o=Math.max(o,t.y);const s=Math.max(i-n,o-r),a=Math.max(0,Math.floor(-Math.log(s)/Math.LN2)),c=Math.pow(2,a);return new t.CanonicalTileID(a,Math.floor((n+i)/2*c),Math.floor((r+o)/2*c))}(n),this.minzoom=this.maxzoom=this.tileID.z,this.fire(new t.Event("data",{dataType:"source",sourceDataType:"content"})),this}_clear(){this._boundsArray=void 0}_prepareData(e){for(const t in this.tiles){const e=this.tiles[t];"loaded"!==e.state&&(e.state="loaded",e.texture=this.texture)}if(this._boundsArray)return;const n=t.tileTransform(this.tileID,this.map.transform.projection),[r,i,o,s]=this.coordinates.map(e=>{const r=n.projection.project(e[0],e[1]);return t.getTilePoint(n,r)._round()});this.perspectiveTransform=function(e,n,r,i,o,s,a,c,l,u){const h=It(0,0,e,0,0,n,e,n),f=It(r,i,o,s,a,c,l,u);return t.multiply$1(f,t.adjoint(h,h),f),[f[6]/f[8]*e/t.EXTENT,f[7]/f[8]*n/t.EXTENT]}(this.width,this.height,r.x,r.y,i.x,i.y,s.x,s.y,o.x,o.y);const a=this._boundsArray=new t.StructArrayLayout4i8;a.emplaceBack(r.x,r.y,0,0),a.emplaceBack(i.x,i.y,t.EXTENT,0),a.emplaceBack(s.x,s.y,0,t.EXTENT),a.emplaceBack(o.x,o.y,t.EXTENT,t.EXTENT),this.boundsBuffer&&this.boundsBuffer.destroy(),this.boundsBuffer=e.createVertexBuffer(a,t.boundsAttributes.members),this.boundsSegments=t.SegmentVector.simpleSegment(0,0,4,2)}prepare(){if(0===Object.keys(this.tiles).length||!this.image)return;const e=this.map.painter.context,n=e.gl;this._dirty&&(this.texture?this.texture.update(this.image):(this.texture=new t.Texture(e,this.image,n.RGBA),this.texture.bind(n.LINEAR,n.CLAMP_TO_EDGE)),this._dirty=!1),this._prepareData(e)}loadTile(t,e){this.tileID&&this.tileID.equals(t.tileID.canonical)?(this.tiles[String(t.tileID.wrap)]=t,t.buckets={},e(null)):(t.state="errored",e(null))}serialize(){return{type:"image",url:this.options.url,coordinates:this.coordinates}}hasTransition(){return!1}}const Mt={vector:Ct,raster:At,"raster-dem":class extends At{constructor(e,n,r,i){super(e,n,r,i),this.type="raster-dem",this.maxzoom=22,this._options=t.extend({type:"raster-dem"},n),this.encoding=n.encoding||"mapbox"}loadTile(e,n){const r=this.map._requestManager.normalizeTileURL(e.tileID.canonical.url(this.tiles,this.scheme),!1,this.tileSize);function i(t,r){t&&(e.state="errored",n(t)),r&&(e.dem=r,e.dem.onDeserialize(),e.needsHillshadePrepare=!0,e.needsDEMTextureUpload=!0,e.state="loaded",n(null))}e.request=t.getImage(this.map._requestManager.transformRequest(r,t.ResourceType.Tile),function(r,o,s,a){if(delete e.request,e.aborted)e.state="unloaded",n(null);else if(r)e.state="errored",n(r);else if(o){this.map._refreshExpiredTiles&&e.setExpiryData({cacheControl:s,expires:a});const n=t.window.ImageBitmap&&o instanceof t.window.ImageBitmap&&(null==st&&(st=t.window.OffscreenCanvas&&new t.window.OffscreenCanvas(1,1).getContext("2d")&&"function"==typeof t.window.createImageBitmap),st),r=1-(o.width-t.prevPowerOfTwo(o.width))/2;r<1||e.neighboringTiles||(e.neighboringTiles=this._getNeighboringTiles(e.tileID));const c=n?o:t.exported.getImageData(o,r),l={uid:e.uid,coord:e.tileID,source:this.id,rawImageData:c,encoding:this.encoding,padding:r};e.actor&&"expired"!==e.state||(e.actor=this.dispatcher.getActor(),e.actor.send("loadDEMTile",l,i.bind(this),void 0,!0))}}.bind(this))}_getNeighboringTiles(e){const n=e.canonical,r=Math.pow(2,n.z),i=(n.x-1+r)%r,o=0===n.x?e.wrap-1:e.wrap,s=(n.x+1+r)%r,a=n.x+1===r?e.wrap+1:e.wrap,c={};return c[new t.OverscaledTileID(e.overscaledZ,o,n.z,i,n.y).key]={backfilled:!1},c[new t.OverscaledTileID(e.overscaledZ,a,n.z,s,n.y).key]={backfilled:!1},n.y>0&&(c[new t.OverscaledTileID(e.overscaledZ,o,n.z,i,n.y-1).key]={backfilled:!1},c[new t.OverscaledTileID(e.overscaledZ,e.wrap,n.z,n.x,n.y-1).key]={backfilled:!1},c[new t.OverscaledTileID(e.overscaledZ,a,n.z,s,n.y-1).key]={backfilled:!1}),n.y+1<r&&(c[new t.OverscaledTileID(e.overscaledZ,o,n.z,i,n.y+1).key]={backfilled:!1},c[new t.OverscaledTileID(e.overscaledZ,e.wrap,n.z,n.x,n.y+1).key]={backfilled:!1},c[new t.OverscaledTileID(e.overscaledZ,a,n.z,s,n.y+1).key]={backfilled:!1}),c}unloadTile(t){t.demTexture&&this.map.painter.saveTileTexture(t.demTexture),t.fbo&&(t.fbo.destroy(),delete t.fbo),t.dem&&delete t.dem,delete t.neighboringTiles,t.state="unloaded"}},geojson:class extends t.Evented{constructor(e,n,r,i){super(),this.id=e,this.type="geojson",this.minzoom=0,this.maxzoom=18,this.tileSize=512,this.isTileClipped=!0,this.reparseOverscaled=!0,this._loaded=!1,this.actor=r.getActor(),this.setEventedParent(i),this._data=n.data,this._options=t.extend({},n),this._collectResourceTiming=n.collectResourceTiming,void 0!==n.maxzoom&&(this.maxzoom=n.maxzoom),n.type&&(this.type=n.type),n.attribution&&(this.attribution=n.attribution),this.promoteId=n.promoteId;const o=t.EXTENT/this.tileSize;this.workerOptions=t.extend({source:this.id,cluster:n.cluster||!1,geojsonVtOptions:{buffer:(void 0!==n.buffer?n.buffer:128)*o,tolerance:(void 0!==n.tolerance?n.tolerance:.375)*o,extent:t.EXTENT,maxZoom:this.maxzoom,lineMetrics:n.lineMetrics||!1,generateId:n.generateId||!1},superclusterOptions:{maxZoom:void 0!==n.clusterMaxZoom?n.clusterMaxZoom:this.maxzoom-1,minPoints:Math.max(2,n.clusterMinPoints||2),extent:t.EXTENT,radius:(void 0!==n.clusterRadius?n.clusterRadius:50)*o,log:!1,generateId:n.generateId||!1},clusterProperties:n.clusterProperties,filter:n.filter},n.workerOptions)}onAdd(t){this.map=t,this.setData(this._data)}setData(t){return this._data=t,this._updateWorkerData(),this}getClusterExpansionZoom(t,e){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:t,source:this.id},e),this}getClusterChildren(t,e){return this.actor.send("geojson.getClusterChildren",{clusterId:t,source:this.id},e),this}getClusterLeaves(t,e,n,r){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:t,limit:e,offset:n},r),this}_updateWorkerData(){if(this._pendingLoad)return void(this._coalesce=!0);this.fire(new t.Event("dataloading",{dataType:"source"})),this._loaded=!1;const e=t.extend({},this.workerOptions),n=this._data;"string"==typeof n?(e.request=this.map._requestManager.transformRequest(t.exported.resolveURL(n),t.ResourceType.Source),e.request.collectResourceTiming=this._collectResourceTiming):e.data=JSON.stringify(n),this._pendingLoad=this.actor.send(this.type+".loadData",e,(e,n)=>{if(this._loaded=!0,this._pendingLoad=null,e)this.fire(new t.ErrorEvent(e));else{const e={dataType:"source",sourceDataType:this._metadataFired?"content":"metadata"};this._collectResourceTiming&&n&&n.resourceTiming&&n.resourceTiming[this.id]&&(e.resourceTiming=n.resourceTiming[this.id]),this.fire(new t.Event("data",e)),this._metadataFired=!0}this._coalesce&&(this._updateWorkerData(),this._coalesce=!1)})}loaded(){return this._loaded}loadTile(e,n){const r=e.actor?"reloadTile":"loadTile";e.actor=this.actor,e.request=this.actor.send(r,{type:this.type,uid:e.uid,tileID:e.tileID,tileZoom:e.tileZoom,zoom:e.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:t.exported.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId},(t,i)=>(delete e.request,e.unloadVectorData(),e.aborted?n(null):t?n(t):(e.loadVectorData(i,this.map.painter,"reloadTile"===r),n(null))),void 0,"loadTile"===r)}abortTile(t){t.request&&(t.request.cancel(),delete t.request),t.aborted=!0}unloadTile(t){t.unloadVectorData(),this.actor.send("removeTile",{uid:t.uid,type:this.type,source:this.id})}onRemove(){this._pendingLoad&&this._pendingLoad.cancel()}serialize(){return t.extend({},this._options,{type:this.type,data:this._data})}hasTransition(){return!1}},video:class extends Tt{constructor(t,e,n,r){super(t,e,n,r),this.roundZoom=!0,this.type="video",this.options=e}load(){this._loaded=!1;const e=this.options;this.urls=[];for(const n of e.urls)this.urls.push(this.map._requestManager.transformRequest(n,t.ResourceType.Source).url);t.getVideo(this.urls,(e,n)=>{this._loaded=!0,e?this.fire(new t.ErrorEvent(e)):n&&(this.video=n,this.video.loop=!0,this.video.setAttribute("playsinline",""),this.video.addEventListener("playing",()=>{this.map.triggerRepaint()}),this.map&&this.video.play(),this._finishLoading())})}pause(){this.video&&this.video.pause()}play(){this.video&&this.video.play()}seek(e){if(this.video){const n=this.video.seekable;e<n.start(0)||e>n.end(0)?this.fire(new t.ErrorEvent(new t.ValidationError("sources."+this.id,null,`Playback for this video can be set only between the ${n.start(0)} and ${n.end(0)}-second mark.`))):this.video.currentTime=e}}getVideo(){return this.video}onAdd(t){this.map||(this.map=t,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))}prepare(){if(0===Object.keys(this.tiles).length||this.video.readyState<2)return;const e=this.map.painter.context,n=e.gl;this.texture?this.video.paused||(this.texture.bind(n.LINEAR,n.CLAMP_TO_EDGE),n.texSubImage2D(n.TEXTURE_2D,0,0,0,n.RGBA,n.UNSIGNED_BYTE,this.video)):(this.texture=new t.Texture(e,this.video,n.RGBA),this.texture.bind(n.LINEAR,n.CLAMP_TO_EDGE),this.width=this.video.videoWidth,this.height=this.video.videoHeight),this._prepareData(e)}serialize(){return{type:"video",urls:this.urls,coordinates:this.coordinates}}hasTransition(){return this.video&&!this.video.paused}},image:Tt,canvas:class extends Tt{constructor(e,n,r,i){super(e,n,r,i),n.coordinates?Array.isArray(n.coordinates)&&4===n.coordinates.length&&!n.coordinates.some(t=>!Array.isArray(t)||2!==t.length||t.some(t=>"number"!=typeof t))||this.fire(new t.ErrorEvent(new t.ValidationError("sources."+e,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new t.ErrorEvent(new t.ValidationError("sources."+e,null,'missing required property "coordinates"'))),n.animate&&"boolean"!=typeof n.animate&&this.fire(new t.ErrorEvent(new t.ValidationError("sources."+e,null,'optional "animate" property must be a boolean value'))),n.canvas?"string"==typeof n.canvas||n.canvas instanceof t.window.HTMLCanvasElement||this.fire(new t.ErrorEvent(new t.ValidationError("sources."+e,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new t.ErrorEvent(new t.ValidationError("sources."+e,null,'missing required property "canvas"'))),this.options=n,this.animate=void 0===n.animate||n.animate}load(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof t.window.HTMLCanvasElement?this.options.canvas:t.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new t.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())}getCanvas(){return this.canvas}onAdd(t){this.map=t,this.load(),this.canvas&&this.animate&&this.play()}onRemove(){this.pause()}prepare(){let e=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,e=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,e=!0),this._hasInvalidDimensions())return;if(0===Object.keys(this.tiles).length)return;const n=this.map.painter.context;this.texture?(e||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new t.Texture(n,this.canvas,n.gl.RGBA,{premultiply:!0}),this._prepareData(n)}serialize(){return{type:"canvas",coordinates:this.coordinates}}hasTransition(){return this._playing}_hasInvalidDimensions(){for(const t of[this.canvas.width,this.canvas.height])if(isNaN(t)||t<=0)return!0;return!1}},custom:class extends t.Evented{constructor(e,n,r,i){super(),this.id=e,this.type="custom",this._dataType="raster",this._dispatcher=r,this._implementation=n,this.setEventedParent(i),this.scheme="xyz",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this._loaded=!1,this.roundZoom=!0,this._implementation||this.fire(new t.ErrorEvent(new Error(`Missing implementation for ${this.id} custom source`))),this._implementation.loadTile||this.fire(new t.ErrorEvent(new Error(`Missing loadTile implementation for ${this.id} custom source`))),this._implementation.bounds&&(this.tileBounds=new P(this._implementation.bounds,this.minzoom,this.maxzoom)),n.update=this._update.bind(this),n.clearTiles=this._clearTiles.bind(this),n.coveringTiles=this._coveringTiles.bind(this),t.extend(this,t.pick(n,["dataType","scheme","minzoom","maxzoom","tileSize","attribution","minTileCacheSize","maxTileC
27acheSize"]))}serialize(){return t.pick(this,["type","scheme","minzoom","maxzoom","tileSize","attribution"])}load(){this._loaded=!0,this.fire(new t.Event("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new t.Event("data",{dataType:"source",sourceDataType:"content"}))}loaded(){return this._loaded}onAdd(e){this._map=e,this._loaded=!1,this.fire(new t.Event("dataloading",{dataType:"source"})),this._implementation.onAdd&&this._implementation.onAdd(e),this.load()}onRemove(t){this._implementation.onRemove&&this._implementation.onRemove(t)}hasTile(t){if(this._implementation.hasTile){const{x:e,y:n,z:r}=t.canonical;return this._implementation.hasTile({x:e,y:n,z:r})}return!this.tileBounds||this.tileBounds.contains(t.canonical)}loadTile(e,n){const{x:r,y:i,z:o}=e.tileID.canonical,s=new t.window.AbortController;e.request=Promise.resolve(this._implementation.loadTile({x:r,y:i,z:o},{signal:s.signal})).then(function(r){return delete e.request,e.aborted?(e.state="unloaded",n(null)):void 0===r?(e.state="errored",n(null)):null===r?(this.loadTileData(e,{width:this.tileSize,height:this.tileSize,data:null}),e.state="loaded",n(null)):function(e){return e instanceof t.window.ImageData||e instanceof t.window.HTMLCanvasElement||e instanceof t.window.ImageBitmap||e instanceof t.window.HTMLImageElement}(r)?(this.loadTileData(e,r),e.state="loaded",void n(null)):(e.state="errored",n(new Error(`Can't infer data type for ${this.id}, only raster data supported at the moment`)))}.bind(this)).catch(t=>{20!==t.code&&(e.state="errored",n(t))}),e.request.cancel=()=>s.abort()}loadTileData(t,e){At.loadTileData(t,e,this._map.painter)}unloadTileData(t){At.unloadTileData(t,this._map.painter)}unloadTile(t,e){if(this.unloadTileData(t),this._implementation.unloadTile){const{x:e,y:n,z:r}=t.tileID.canonical;this._implementation.unloadTile({x:e,y:n,z:r})}e()}abortTile(t,e){t.request&&t.request.cancel&&(t.request.cancel(),delete t.request),e()}hasTransition(){return!1}_coveringTiles(){return this._map.transform.coveringTiles({tileSize:this.tileSize,minzoom:this.minzoom,maxzoom:this.maxzoom,roundZoom:this.roundZoom}).map(t=>({x:t.canonical.x,y:t.canonical.y,z:t.canonical.z}))}_clearTiles(){this._map.style._clearSource(this.id)}_update(){this.fire(new t.Event("data",{dataType:"source",sourceDataType:"content"}))}}},Ft=function(e,n,r,i){const o=new Mt[n.type](e,n,r,i);if(o.id!==e)throw new Error(`Expected Source id to be ${e} instead of ${o.id}`);return t.bindAll(["load","abort","unload","serialize","prepare"],o),o};function Bt(e,n){const r=t.identity([]);return t.scale(r,r,[.5*e.width,.5*-e.height,1]),t.translate(r,r,[1,-1,0]),t.multiply(r,r,e.calculateProjMatrix(n.toUnwrapped())),Float32Array.from(r)}function Lt(t,e,n,r,i,o,s,a=!1){const c=t.tilesIn(r,s,a);c.sort(Ut);const l=[];for(const r of c)l.push({wrappedTileID:r.tile.tileID.wrapped().key,queryResults:r.tile.queryRenderedFeatures(e,n,t._state,r,i,o,Bt(t.transform,r.tile.tileID),a)});const u=function(t){const e={},n={};for(const r of t){const t=r.queryResults,i=r.wrappedTileID,o=n[i]=n[i]||{};for(const n in t){const r=t[n],i=o[n]=o[n]||{},s=e[n]=e[n]||[];for(const t of r)i[t.featureIndex]||(i[t.featureIndex]=!0,s.push(t))}}return e}(l);for(const e in u)u[e].forEach(e=>{const n=e.feature,r=n.layer;r&&"background"!==r.type&&"sky"!==r.type&&(n.source=r.source,r["source-layer"]&&(n.sourceLayer=r["source-layer"]),n.state=void 0!==n.id?t.getFeatureState(r["source-layer"],n.id):{})});return u}function Ot(t,e){const n=t.getRenderableIds().map(e=>t.getTileByID(e)),r=[],i={};for(let t=0;t<n.length;t++){const o=n[t],s=o.tileID.canonical.key;i[s]||(i[s]=!0,o.querySourceFeatures(r,e))}return r}function Ut(t,e){const n=t.tileID,r=e.tileID;return n.overscaledZ-r.overscaledZ||n.canonical.y-r.canonical.y||n.wrap-r.wrap||n.canonical.x-r.canonical.x}function kt(){return null!=go.workerClass?new go.workerClass:new t.window.Worker(go.workerUrl)}const Pt="mapboxgl_preloaded_worker_pool";class Dt{constructor(){this.active={}}acquire(t){if(!this.workers)for(this.workers=[];this.workers.length<Dt.workerCount;)this.workers.push(new kt);return this.active[t]=!0,this.workers.slice()}release(t){delete this.active[t],0===this.numActive()&&(this.workers.forEac
vendor: 8,286 bytes, line 27
27h(t=>{t.terminate()}),this.workers=null)}isPreloaded(){return!!this.active[Pt]}numActive(){return Object.keys(this.active).length}}let Rt;function jt(){return Rt||(Rt=new Dt),Rt}function zt(e,n){const r={};for(const t in e)"ref"!==t&&(r[t]=e[t]);return t.refProperties.forEach(t=>{t in n&&(r[t]=n[t])}),r}function Qt(t){t=t.slice();const e=Object.create(null);for(let n=0;n<t.length;n++)e[t[n].id]=t[n];for(let n=0;n<t.length;n++)"ref"in t[n]&&(t[n]=zt(t[n],e[t[n].ref]));return t}Dt.workerCount=2;const Nt={setStyle:"setStyle",addLayer:"addLayer",removeLayer:"removeLayer",setPaintProperty:"setPaintProperty",setLayoutProperty:"setLayoutProperty",setFilter:"setFilter",addSource:"addSource",removeSource:"removeSource",setGeoJSONSourceData:"setGeoJSONSourceData",setLayerZoomRange:"setLayerZoomRange",setLayerProperty:"setLayerProperty",setCenter:"setCenter",setZoom:"setZoom",setBearing:"setBearing",setPitch:"setPitch",setSprite:"setSprite",setGlyphs:"setGlyphs",setTransition:"setTransition",setLight:"setLight",setTerrain:"setTerrain",setFog:"setFog",setProjection:"setProjection"};function Vt(t,e,n){n.push({command:Nt.addSource,args:[t,e[t]]})}function Gt(t,e,n){e.push({command:Nt.removeSource,args:[t]}),n[t]=!0}function Ht(t,e,n,r){Gt(t,n,r),Vt(t,e,n)}function Zt(t,n,r){let i;for(i in t[r])if(t[r].hasOwnProperty(i)&&"data"!==i&&!e(t[r][i],n[r][i]))return!1;for(i in n[r])if(n[r].hasOwnProperty(i)&&"data"!==i&&!e(t[r][i],n[r][i]))return!1;return!0}function Wt(t,n,r,i,o,s){let a;for(a in n=n||{},t=t||{})t.hasOwnProperty(a)&&(e(t[a],n[a])||r.push({command:s,args:[i,a,n[a],o]}));for(a in n)n.hasOwnProperty(a)&&!t.hasOwnProperty(a)&&(e(t[a],n[a])||r.push({command:s,args:[i,a,n[a],o]}))}function Xt(t){return t.id}function Yt(t,e){return t[e.id]=e,t}class qt{constructor(t,e){this.reset(t,e)}reset(t,e){this.points=t||[],this._distances=[0];for(let t=1;t<this.points.length;t++)this._distances[t]=this._distances[t-1]+this.points[t].dist(this.points[t-1]);this.length=this._distances[this._distances.length-1],this.padding=Math.min(e||0,.5*this.length),this.paddedLength=this.length-2*this.padding}lerp(e){if(1===this.points.length)return this.points[0];e=t.clamp(e,0,1);let n=1,r=this._distances[n];const i=e*this.paddedLength+this.padding;for(;r<i&&n<this._distances.length;)r=this._distances[++n];const o=n-1,s=this._distances[o],a=r-s,c=a>0?(i-s)/a:0;return this.points[o].mult(1-c).add(this.points[n].mult(c))}}class Kt{constructor(t,e,n){const r=this.boxCells=[],i=this.circleCells=[];this.xCellCount=Math.ceil(t/n),this.yCellCount=Math.ceil(e/n);for(let t=0;t<this.xCellCount*this.yCellCount;t++)r.push([]),i.push([]);this.circleKeys=[],this.boxKeys=[],this.bboxes=[],this.circles=[],this.width=t,this.height=e,this.xScale=this.xCellCount/t,this.yScale=this.yCellCount/e,this.boxUid=0,this.circleUid=0}keysLength(){return this.boxKeys.length+this.circleKeys.length}insert(t,e,n,r,i){this._forEachCell(e,n,r,i,this._insertBoxCell,this.boxUid++),this.boxKeys.push(t),this.bboxes.push(e),this.bboxes.push(n),this.bboxes.push(r),this.bboxes.push(i)}insertCircle(t,e,n,r){this._forEachCell(e-r,n-r,e+r,n+r,this._insertCircleCell,this.circleUid++),this.circleKeys.push(t),this.circles.push(e),this.circles.push(n),this.circles.push(r)}_insertBoxCell(t,e,n,r,i,o){this.boxCells[i].push(o)}_insertCircleCell(t,e,n,r,i,o){this.circleCells[i].push(o)}_query(t,e,n,r,i,o){if(n<0||t>this.width||r<0||e>this.height)return!i&&[];const s=[];if(t<=0&&e<=0&&this.width<=n&&this.height<=r){if(i)return!0;for(let t=0;t<this.boxKeys.length;t++)s.push({key:this.boxKeys[t],x1:this.bboxes[4*t],y1:this.bboxes[4*t+1],x2:this.bboxes[4*t+2],y2:this.bboxes[4*t+3]});for(let t=0;t<this.circleKeys.length;t++){const e=this.circles[3*t],n=this.circles[3*t+1],r=this.circles[3*t+2];s.push({key:this.circleKeys[t],x1:e-r,y1:n-r,x2:e+r,y2:n+r})}return o?s.filter(o):s}return this._forEachCell(t,e,n,r,this._queryCell,s,{hitTest:i,seenUids:{box:{},circle:{}}},o),i?s.length>0:s}_queryCircle(t,e,n,r,i){const o=t-n,s=t+n,a=e-n,c=e+n;if(s<0||o>this.width||c<0||a>this.height)return!r&&[];const l=[];return this._forEachCell(o,a,s,c,this._queryCellCircle,l,{hitTest:r,circle:{x:t,y:e,radius:n},seenUids:{box:{},circle:{}}},i),r?l.length>0:l}query(t,e,n,r,i){return this._query(t,e,n,r,!1,i)}hitTest(t,e,n,r,i){return this._query(t,e,n,r,!0,i)}hitTestCircle(t,e,n,r){return this._queryCircle(t,e,n,!0,r)}_queryCell(t,e,n,r,i,o,s,a){const c=s.seenUids,l=this.boxCells[i];if(null!==l){const i=this.bboxes;for(const u of l)if(!c.box[u]){c.box[u]=!0;const l=4*u;if(t<=i[l+2]&&e<=i[l+3]&&n>=i[l+0]&&r>=i[l+1]&&(!a||a(this.boxKeys[u]))){if(s.hitTest)return o.push(!0),!0;o.push({key:this.boxKeys[u],x1:i[l],y1:i[l+1],x2:i[l+2],y2:i[l+3]})}}}const u=this.circleCells[i];if(null!==u){const i=this.circles;for(const l of u)if(!c.circle[l]){c.circle[l]=!0;const u=3*l;if(this._circleAndRectCollide(i[u],i[u+1],i[u+2],t,e,n,r)&&(!a||a(this.circleKeys[l]))){if(s.hitTest)return o.push(!0),!0;{const t=i[u],e=i[u+1],n=i[u+2];o.push({key:this.circleKeys[l],x1:t-n,y1:e-n,x2:t+n,y2:e+n})}}}}}_queryCellCircle(t,e,n,r,i,o,s,a){const c=s.circle,l=s.seenUids,u=this.boxCells[i];if(null!==u){const t=this.bboxes;for(const e of u)if(!l.box[e]){l.box[e]=!0;const n=4*e;if(this._circleAndRectCollide(c.x,c.y,c.radius,t[n+0],t[n+1],t[n+2],t[n+3])&&(!a||a(this.boxKeys[e])))return o.push(!0),!0}}const h=this.circleCells[i];if(null!==h){const t=this.circles;for(const e of h)if(!l.circle[e]){l.circle[e]=!0;const n=3*e;if(this._circlesCollide(t[n],t[n+1],t[n+2],c.x,c.y,c.radius)&&(!a||a(this.circleKeys[e])))return o.push(!0),!0}}}_forEachCell(t,e,n,r,i,o,s,a){const c=this._convertToXCellCoord(t),l=this._convertToYCellCoord(e),u=this._convertToXCellCoord(n),h=this._convertToYCellCoord(r);for(let f=c;f<=u;f++)for(let c=l;c<=h;c++)if(i.call(this,t,e,n,r,this.xCellCount*c+f,o,s,a))return}_convertToXCellCoord(t){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(t*this.xScale)))}_convertToYCellCoord(t){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(t*this.yScale)))}_circlesCollide(t,e,n,r,i,o){const s=r-t,a=i-e,c=n+o;return c*c>s*s+a*a}_circleAndRectCollide(t,e,n,r,i,o,s){const a=(o-r)/2,c=Math.abs(t-(r+a));if(c>a+n)return!1;const l=(s-i)/2,u=Math.abs(e-(i+l));if(u>l+n)return!1;if(c<=a||u<=l)return!0;const h=c-a,f=u-l;return h*h+f*f<=n*n}}const Jt=0,$t=1,te=2,ee=Math.tan(85*Math.PI/180);function ne(e,n,r,i,o,s,a){const c=t.create();if(r)if("globe"===s.name){const e=t.calculateGlobeLabelMatrix(o,n);t.multiply(c,c,e)}else{const e=_([],a);c[0]=e[0],c[1]=e[1],c[4]=e[2],c[5]=e[3],i||t.rotateZ(c,c,o.angle)}else t.multiply(c,o.labelPlaneMatrix,e);return c}function re(t,e,n,r,i,o,s){const a=ne(t,e,n,r,i,o,s);return"globe"===o.name&&n||(a[2]=a[6]=a[10]=a[14]=0),a}function ie(e,n,r,i,o,s,a){if(r){if("globe"===s.name){const c=ne(e,n,r,i,o,s,a);return t.invert(c,c),t.multiply(c,e,c),c}{const n=t.clone(e),r=t.identity([]);return r[0]=a[0],r[1]=a[1],r[4]=a[2],r[5]=a[3],t.multiply(n,n,r),i||t.rotateZ(n,n,-o.angle),n}}return o.glCoordMatrix}function oe(e,n,r,i){const o=[e,n,r,1];r?t.transformMat4$1(o,o,i):me(o,o,i);const s=o[3];return o[0]/=s,o[1]/=s,o[2]/=s,o}function se(t,e){return Math.min(.5+t/e*.5,1.5)}function ae(t,e){const n=t[0]/t[3],r=t[1]/t[3];return n>=-e[0]&&n<=e[0]&&r>=-e[1]&&r<=e[1]}function ce(e,n,r,i,o,s,a,c,l,u){const h=r.transform,f=i?e.textSizeData:e.iconSizeData,d=t.evaluateSizeForZoom(f,r.transform.zoom),p="globe"===h.projection.name,g=[256/r.width*2+1,256/r.height*2+1],m=i?e.text.dynamicLayoutVertexArray:e.icon.dynamicLayoutVertexArray;m.clear();let y=null;p&&(y=i?e.text.globeExtVertexArray:e.icon.globeExtVertexArray);const _=e.lineVertexArray,v=i?e.text.placedSymbolArray:e.icon.placedSymbolArray,b=r.transform.width/r.transform.height;let x,w=!1;for(let i=0;i<v.length;i++){const p=v.get(i),{numGlyphs:E,writingMode:S}=p;if(S!==t.WritingMode.vertical||w||x===t.WritingMode.horizontal||(w=!0),x=S,(p.hidden||S===t.WritingMode.vertical)&&!w){ge(E,m);continue}w=!1;const C=new t.Point(p.tileAnchorX,p.tileAnchorY);let{x:A,y:I,z:T}=h.projection.projectTilePoint(C.x,C.y,u.canonical);if(l){const[t,e,n]=l(C);A+=t,I+=e,T+=n}const M=[A,I,T,1];if(t.transformMat4$1(M,M,n),!ae(M,g)){ge(E,m);continue}const F=se(r.transform.cameraToCenterDistance,M[3]),B=t.evaluateSizeForFeature
27(f,d,p),L=a?B/F:B*F,O=oe(A,I,T,o);if(O[3]<=0){ge(E,m);continue}let U={};const k=a?null:l,P=he(p,L,!1,c,n,o,s,e.glyphOffsetArray,_,m,y,O,C,U,b,k,h.projection,u,a);w=P.useVertical,k&&P.needsFlipping&&(U={}),(P.notEnoughRoom||w||P.needsFlipping&&he(p,L,!0,c,n,o,s,e.glyphOffsetArray,_,m,y,O,C,U,b,k,h.projection,u,a).notEnoughRoom)&&ge(E,m)}i?(e.text.dynamicLayoutVertexBuffer.updateData(m),y&&e.text.globeExtVertexBuffer.updateData(y)):(e.icon.dynamicLayoutVertexBuffer.updateData(m),y&&e.icon.globeExtVertexBuffer.updateData(y))}function le(t,e,n,r,i,o,s,a,c,l,u,h,f,d,p,g){const{lineStartIndex:m,glyphStartIndex:y,segment:_}=a,v=y+a.numGlyphs,b=m+a.lineLength,x=e.getoffsetX(y),w=e.getoffsetX(v-1),E=pe(t*x,n,r,i,o,s,_,m,b,c,l,u,h,f,!0,d,p,g);if(!E)return null;const S=pe(t*w,n,r,i,o,s,_,m,b,c,l,u,h,f,!0,d,p,g);return S?{first:E,last:S}:null}function ue(e,n,r,i){return e===t.WritingMode.horizontal&&Math.abs(i)>Math.abs(r)?{useVertical:!0}:e===t.WritingMode.vertical?i>0?{needsFlipping:!0}:null:n!==Jt&&function(t,e){return 0===t||Math.abs(e/t)>ee}(r,i)?n===$t?{needsFlipping:!0}:null:r<0?{needsFlipping:!0}:null}function he(e,n,r,i,o,s,a,c,l,u,h,f,d,p,g,m,y,_,v){const b=n/24,x=e.lineOffsetX*b,w=e.lineOffsetY*b,{lineStartIndex:E,glyphStartIndex:S,numGlyphs:C,segment:A,writingMode:I,flipState:T}=e,M=E+e.lineLength,F=e=>{if(h){const[n,r,i]=e.up,o=u.length;t.updateGlobeVertexNormal(h,o+0,n,r,i),t.updateGlobeVertexNormal(h,o+1,n,r,i),t.updateGlobeVertexNormal(h,o+2,n,r,i),t.updateGlobeVertexNormal(h,o+3,n,r,i)}const[n,r,i]=e.point;t.addDynamicAttributes(u,n,r,i,e.angle)};if(C>1){const t=le(b,c,x,w,r,f,d,e,l,s,p,m,!1,y,_,v);if(!t)return{notEnoughRoom:!0};if(i&&!r){let[n,r,i]=t.first.point,[o,s,c]=t.last.point;[n,r]=oe(n,r,i,a),[o,s]=oe(o,s,c,a);const l=ue(I,T,(o-n)*g,s-r);if(e.flipState=l&&l.needsFlipping?$t:te,l)return l}F(t.first);for(let t=S+1;t<S+C-1;t++){const e=pe(b*c.getoffsetX(t),x,w,r,f,d,A,E,M,l,s,p,m,!1,!1,y,_,v);if(!e)return u.length-=4*(t-S),{notEnoughRoom:!0};F(e)}F(t.last)}else{if(i&&!r){const n=oe(d.x,d.y,0,o),r=E+A+1,i=new t.Point(l.getx(r),l.gety(r)),s=oe(i.x,i.y,0,o),a=s[3]>0?s:de(d,i,n,1,o,void 0,y,_.canonical),c=ue(I,T,(a[0]-n[0])*g,a[1]-n[1]);if(e.flipState=c&&c.needsFlipping?$t:te,c)return c}const n=pe(b*c.getoffsetX(S),x,w,r,f,d,A,E,M,l,s,p,m,!1,!1,y,_,v);if(!n)return{notEnoughRoom:!0};F(n)}return{}}function fe(t,e,n,r,i){const{x:o,y:s,z:a}=r.projectTilePoint(t.x,t.y,e);if(!i)return oe(o,s,a,n);const[c,l,u]=i(t);return oe(o+c,s+l,a+u,n)}function de(e,n,r,i,o,s,a,c){const l=fe(e.sub(n)._unit()._add(e),c,o,a,s);return t.sub(l,r,l),t.normalize(l,l),t.scaleAndAdd(l,r,l,i)}function pe(e,n,r,i,o,s,a,c,l,u,h,f,d,p,g,m,y,_){const v=i?e-n:e+n;let b=v>0?1:-1,x=0;i&&(b*=-1,x=Math.PI),b<0&&(x+=Math.PI);let w=c+a+(b>0?0:1)|0,E=o,S=o,C=0,A=0;const I=Math.abs(v),T=[],M=[];let F=s,B=F;const L=()=>de(B,F,S,I-C+1,h,d,m,y.canonical);for(;C+A<=I;){if(w+=b,w<c||w>=l)return null;if(S=E,B=F,T.push(S),p&&M.push(B),F=new t.Point(u.getx(w),u.gety(w)),E=f[w],!E){const t=fe(F,y.canonical,h,m,d);E=t[3]>0?f[w]=t:L()}C+=A,A=t.distance(S,E)}g&&d&&(f[w]&&(E=L(),A=t.distance(S,E)),f[w]=E);const O=(I-C)/A,U=F.sub(B)._mult(O)._add(B),k=t.sub([],E,S),P=t.scaleAndAdd([],S,
vendor: 4,719 bytes, line 27
27k,O);let D=[0,0,1],R=k[0],j=k[1];if(_&&(D=m.upVector(y.canonical,U.x,U.y),0!==D[0]||0!==D[1]||1!==D[2])){const e=[D[2],0,-D[0]],n=t.cross([],D,e);t.normalize(e,e),t.normalize(n,n),R=t.dot(k,e),j=t.dot(k,n)}if(r){const e=t.cross([],D,k);t.normalize(e,e),t.scaleAndAdd(P,P,e,r*b)}const z=x+Math.atan2(j,R);return T.push(P),p&&M.push(U),{point:P,angle:z,path:T,tilePath:M,up:D}}function ge(t,e){const n=e.length,r=n+4*t;e.resize(r),e.float32.fill(-1/0,4*n,4*r)}function me(t,e,n){const r=e[0],i=e[1];return t[0]=n[0]*r+n[4]*i+n[12],t[1]=n[1]*r+n[5]*i+n[13],t[3]=n[3]*r+n[7]*i+n[15],t}const ye=100;class _e{constructor(t,e,n=new Kt(t.width+200,t.height+200,25),r=new Kt(t.width+200,t.height+200,25)){this.transform=t,this.grid=n,this.ignoredGrid=r,this.pitchfactor=Math.cos(t._pitch)*t.cameraToCenterDistance,this.screenRightBoundary=t.width+ye,this.screenBottomBoundary=t.height+ye,this.gridRightBoundary=t.width+200,this.gridBottomBoundary=t.height+200,this.fogState=e}placeCollisionBox(t,e,n,r,i,o,s,a){let c=n.projectedAnchorX,l=n.projectedAnchorY,u=n.projectedAnchorZ;const h=n.elevation,f=n.tileID,d=t.getProjection();if(h&&f){const[t,e,r]=d.upVector(f.canonical,n.tileAnchorX,n.tileAnchorY),i=d.upVectorScale(f.canonical,this.transform.center.lat,this.transform.worldSize).metersToTile;c+=t*h*i,l+=e*h*i,u+=r*h*i}const p=this.projectAndGetPerspectiveRatio(s,c,l,u,n.tileID,"globe"===d.name||!!h||this.transform.pitch>0,d),g=o*p.perspectiveRatio,m=(n.x1*e+r.x-n.padding)*g+p.point.x,y=(n.y1*e+r.y-n.padding)*g+p.point.y,_=(n.x2*e+r.x+n.padding)*g+p.point.x,v=(n.y2*e+r.y+n.padding)*g+p.point.y,b=p.perspectiveRatio<=.55||p.occluded;return!this.isInsideGrid(m,y,_,v)||!i&&this.grid.hitTest(m,y,_,v,a)||b?{box:[],offscreen:!1,occluded:p.occluded}:{box:[m,y,_,v],offscreen:this.isOffscreen(m,y,_,v),occluded:!1}}placeCollisionCircles(e,n,r,i,o,s,a,c,l,u,h,f,d,p,g){const m=[],y=this.transform.elevation,_=e.getProjection(),v=y?y.getAtTileOffsetFunc(g,this.transform.center.lat,this.transform.worldSize,_):null,b=new t.Point(r.tileAnchorX,r.tileAnchorY);let{x:x,y:w,z:E}=_.projectTilePoint(b.x,b.y,g.canonical);if(v){const[t,e,n]=v(b);x+=t,w+=e,E+=n}const S="globe"===_.name,C=this.projectAndGetPerspectiveRatio(a,x,w,E,g,S||!!y||this.transform.pitch>0,_),{perspectiveRatio:A}=C,I=(h?s/A:s*A)/t.ONE_EM,T=oe(x,w,E,c),M=C.signedDistanceFromCamera>0?le(I,o,r.lineOffsetX*I,r.lineOffsetY*I,!1,T,b,r,i,c,{},y&&!h?v:null,h&&!!y,_,g,h):null;let F=!1,B=!1,L=!0;if(M&&!C.occluded){const e=.5*d*A+p,r=new t.Point(-100,-100),i=new t.Point(this.screenRightBoundary,this.screenBottomBoundary),o=new qt,{first:s,last:a}=M,c=s.path.length;let h=[];for(let t=c-1;t>=1;t--)h.push(s.path[t]);for(let t=1;t<a.path.length;t++)h.push(a.path[t]);const g=2.5*e;l&&(h=h.map(([t,e,n],r)=>(v&&!S&&(n=v(r<c-1?s.tilePath[c-1-r]:a.tilePath[r-c+2])[2]),oe(t,e,n,l))),h.some(t=>t[3]<=0)&&(h=[]));let y=[];if(h.length>0){let e=1/0,n=-1/0,o=1/0,s=-1/0;for(const t of h)e=Math.min(e,t[0]),o=Math.min(o,t[1]),n=Math.max(n,t[0]),s=Math.max(s,t[1]);n>=r.x&&e<=i.x&&s>=r.y&&o<=i.y&&(y=[h.map(e=>new t.Point(e[0],e[1]))],(e<r.x||n>i.x||o<r.y||s>i.y)&&(y=t.clipLine(y,r.x,r.y,i.x,i.y)))}for(const t of y){o.reset(t,.25*e);let r=0;r=o.length<=.5*e?1:Math.ceil(o.paddedLength/g)+1;for(let t=0;t<r;t++){const i=t/Math.max(r-1,1),s=o.lerp(i),a=s.x+ye,c=s.y+ye;m.push(a,c,e,0);const l=a-e,h=c-e,d=a+e,p=c+e;if(L=L&&this.isOffscreen(l,h,d,p),B=B||this.isInsideGrid(l,h,d,p),!n&&this.grid.hitTestCircle(a,c,e,f)&&(F=!0,!u))return{circles:[],offscreen:!1,collisionDetected:F,occluded:!1}}}}return{circles:!u&&F||!B?[]:m,offscreen:L,collisionDetected:F,occluded:C.occluded}}queryRenderedSymbols(e){if(0===e.length||0===this.grid.keysLength()&&0===this.ignoredGrid.keysLength())return{};const n=[];let r=1/0,i=1/0,o=-1/0,s=-1/0;for(const a of e){const e=new t.Point(a.x+ye,a.y+ye);r=Math.min(r,e.x),i=Math.min(i,e.y),o=Math.max(o,e.x),s=Math.max(s,e.y),n.push(e)}const a=this.grid.query(r,i,o,s).concat(this.ignoredGrid.query(r,i,o,s)),c={},l={};for(const e of a){const r=e.key;if(void 0===c[r.bucketInstanceId]&&(c[r.bucketInstanceId]={}),c[r.bucketInstanceId][r.featureIndex])continue;const i=[new t.Point(e.x1,e.y1),new t.Point(e.x2,e.y1),new t.Point(e.x2,e.y2),new t.Point(e.x1,e.y2)];t.polygonIntersectsPolygon(n,i)&&(c[r.bucketInstanceId][r.featureIndex]=!0,void 0===l[r.bucketInstanceId]&&(l[r.bucketInstanceId]=[]),l[r.bucketInstanceId].push(r.featureIndex))}return l}insertCollisionBox(t,e,n,r,i){(e?this.ignoredGrid:this.grid).insert({bucketInstanceId:n,featureIndex:r,collisionGroupID:i},t[0],t[1],t[2],t[3])}insertCollisionCircles(t,e,n,r,i){const o=e?this.ignoredGrid:this.grid,s={bucketInstanceId:n,featureIndex:r,collisionGroupID:i};for(let e=0;e<t.length;
vendor: 4,067 bytes, line 27
27e+=4)o.insertCircle(s,t[e],t[e+1],t[e+2])}projectAndGetPerspectiveRatio(e,n,r,i,o,s,a){const c=[n,r,i,1];let l=!1;i||this.transform.pitch>0?(t.transformMat4$1(c,c,e),this.fogState&&o&&"globe"!==a.name&&(l=function(e,n,r,i,o,s){const a=s.calculateFogTileMatrix(o),c=[n,r,i];return t.transformMat4(c,c,a),C(e,c,s.pitch,s._fov)}(this.fogState,n,r,i,o.toUnwrapped(),this.transform)>.9)):me(c,c,e);const u=c[3];return{point:new t.Point((c[0]/u+1)/2*this.transform.width+ye,(-c[1]/u+1)/2*this.transform.height+ye),perspectiveRatio:Math.min(.5+this.transform.getCameraToCenterDistance(a)/u*.5,1.5),signedDistanceFromCamera:u,occluded:s&&c[2]>u||l}}isOffscreen(t,e,n,r){return n<ye||t>=this.screenRightBoundary||r<ye||e>this.screenBottomBoundary}isInsideGrid(t,e,n,r){return n>=0&&t<this.gridRightBoundary&&r>=0&&e<this.gridBottomBoundary}getViewportMatrix(){const e=t.identity([]);return t.translate(e,e,[-100,-100,0]),e}}function ve(e,n,r){const i=n.createTileMatrix(e,e.worldSize,r.toUnwrapped());return t.multiply(new Float32Array(16),e.projMatrix,i)}function be(t,e,n){if(e.projection.name===n.projection.name)return t.projMatrix;const r=n.clone();return r.setProjection(e.projection),ve(r,e.getProjection(),t)}function xe(t,e,n){return e.name===n.projection.name?t.projMatrix:ve(n,e,t)}class we{constructor(t,e,n,r){this.opacity=t?Math.max(0,Math.min(1,t.opacity+(t.placed?e:-e))):r&&n?1:0,this.placed=n}isHidden(){return 0===this.opacity&&!this.placed}}class Ee{constructor(t,e,n,r,i,o=!1){this.text=new we(t?t.text:null,e,n,i),this.icon=new we(t?t.icon:null,e,r,i),this.clipped=o}isHidden(){return this.text.isHidden()&&this.icon.isHidden()}}class Se{constructor(t,e,n,r=!1){this.text=t,this.icon=e,this.skipFade=n,this.clipped=r}}class Ce{constructor(){this.invProjMatrix=t.create(),this.viewportMatrix=t.create(),this.circles=[]}}class Ae{constructor(t,e,n,r,i){this.bucketInstanceId=t,this.featureIndex=e,this.sourceLayerIndex=n,this.bucketIndex=r,this.tileID=i}}class Ie{constructor(t){this.crossSourceCollisions=t,this.maxGroupID=0,this.collisionGroups={}}get(t){if(this.crossSourceCollisions)return{ID:0,predicate:null};if(!this.collisionGroups[t]){const e=++this.maxGroupID;this.collisionGroups[t]={ID:e,predicate:t=>t.collisionGroupID===e}}return this.collisionGroups[t]}}function Te(e,n,r,i,o){const{horizontalAlign:s,verticalAlign:a}=t.getAnchorAlignment(e),c=-(s-.5)*n,l=-(a-.5)*r,u=t.evaluateVariableOffset(e,i);return new t.Point(c+u[0]*o,l+u[1]*o)}function Me(e,n,r,i,o){const s=new t.Point(e,n);return r&&s._rotate(i?o:-o),s}class Fe{constructor(t,e,n,r,i){this.transform=t.clone(),this.projection=t.projection.name,this.collisionIndex=new _e(this.transform,i),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=e,this.retainedQueryData={},this.collisionGroups=new Ie(n),this.collisionCircleArrays={},this.prevPlacement=r,r&&(r.prevPlacement=void 0),this.placedOrientations={}}getBucketParts(e,n,r,i){const o=r.getBucket(n),s=r.latestFeatureIndex;if(!o||!s||n.id!==o.layerIds[0])return;const a=o.layers[0].layout,c=r.collisionBoxArray,l=Math.pow(2,this.transform.zoom-r.tileID.overscaledZ),u=r.tileSize/t.EXTENT,h=r.tileID.toUnwrapped();this.transform.setProjection(o.projection);const f=(d=r.tileID,p=o.getProjection(),g=this.transform,p.name===this.projection?g.calculateProjMatrix(d.toUnwrapped()):ve(g,p,d));var d,p,g;const m="map"===a.get("text-pitch-alignment"),y="map"===a.get("text-rotation-alignment");n.compileFilter();const _=n.dynamicFilter(),v=n.dynamicFilterNeedsFeature(),b=this.transform.calculatePixelsToTileUnitsMatrix(r),x=re(f,r.tileID.canonical,m,y,this.transform,o.getProjection(),b);let w=null;if(m){const e=ie(f,r.tileID.canonical,m,y,this.transform,o.getProjection(),b);w=t.multiply([],this.transform.labelPlaneMatrix,e)}let E=null;_&&r.latestFeatureIndex&&(E={unwrappedTileID:h,dynamicFilter:_,dynamicFilterNeedsFeature:v,featureIndex:r.latestFeatureIndex}),this.retainedQueryData[o.bucketInstanceId]=new Ae(o.bucketInstanceId,s,o.sourceLayerIndex,o.index,r.tileID);
27const S={bucket:o,layout:a,posMatrix:f,textLabelPlaneMatrix:x,labelToScreenMatrix:w,clippingData:E,scale:l,textPixelRatio:u,holdingForFade:r.holdingForFade(),collisionBoxArray:c,partiallyEvaluatedTextSize:t.evaluateSizeForZoom(o.textSizeData,this.transform.zoom),partiallyEvaluatedIconSize:t.evaluateSizeForZoom(o.iconSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(o.sourceID)};if(i)for(const t of o.sortKeyRanges){const{sortKey:n,symbolInstanceStart:r,symbolInstanceEnd:i}=t;e.push({sortKey:n,symbolInstanceStart:r,symbolInstanceEnd:i,parameters:S})}else e.push({symbolInstanceStart:0,symbolInstanceEnd:o.symbolInstances.length,parameters:S})}attemptAnchorPlacement(t,e,n,r,i,o,s,a,c,l,u,h,f,d,p,g,m,y){const{textOffset0:_,textOffset1:v,crossTileID:b}=h,x=[_,v],w=Te(t,n,r,x,i),E=this.collisionIndex.placeCollisionBox(d,i,e,Me(w.x,w.y,o,s,this.transform.angle),u,a,c,l.predicate);if(g){const t=d.getSymbolInstanceIconSize(y,this.transform.zoom,h.placedIconSymbolIndex);if(0===this.collisionIndex.placeCollisionBox(d,t,g,Me(w.x,w.y,o,s,this.transform.angle),u,a,c,l.predicate).box.length)return}if(E.box.length>0){let e;return this.prevPlacement&&this.prevPlacement.variableOffsets[b]&&this.prevPlacement.placements[b]&&this.prevPlacement.placements[b].text&&(e=this.prevPlacement.variableOffsets[b].anchor),this.variableOffsets[b]={textOffset:x,width:n,height:r,anchor:t,textScale:i,prevAnchor:e},this.markUsedJustification(d,t,h,p),d.allowVerticalPlacement&&(this.markUsedOrientation(d,p,h),this.placedOrientations[b]=p),{shift:w,placedGlyphBoxes:E}}}placeLayerBucketPart(e,n,r,i){const{bucket:o,layout:s,posMatrix:a,textLabelPlaneMatrix:c,labelToScreenMatrix:l,clippingData:u,textPixelRatio:h,holdingForFade:f,collisionBoxArray:d,partiallyEvaluatedTextSize:p,partiallyEvaluatedIconSize:g,collisionGroup:m}=e.parameters,y=s.get("text-optional"),_=s.get("icon-optional"),v=s.get("text-allow-overlap"),b=s.get("icon-allow-overlap"),x="map"===s.get("text-rotation-alignment"),w="map"===s.get("text-pitch-alignment"),E="none"!==s.get("icon-text-fit"),S="viewport-y"===s.get("symbol-z-order");this.transform.setProjection(o.projection);let C=v&&(b||!o.hasIconData()||_),A=b&&(v||!o.hasTextData()||y);!o.collisionArrays&&d&&o.deserializeCollisionBoxes(d),r&&i&&o.updateCollisionDebugBuffers(this.transform.zoom,d);const I=(e,i,d)=>{const{crossTileID:S,numVerticalGlyphVertices:I}=e;if(u){const r={zoom:this.transform.zoom,pitch:this.transform.pitch};let i=null;if(u.dynamicFilterNeedsFeature){const t=this.retainedQueryData[o.bucketInstanceId];i=u.featureIndex.loadFeature({featureIndex:e.featureIndex,bucketIndex:t.bucketIndex,sourceLayerIndex:t.sourceLayerIndex,layoutVertexArrayOffset:0})}if(!(0,u.dynamicFilter)(r,i,this.retainedQueryData[o.bucketInstanceId].tileID.canonical,new t.Point(e.tileAnchorX,e.tileAnchorY),this.transform.calculateDistanceTileData(u.unwrappedTileID)))return this.placements[S]=new Se(!1,!1,!1,!0),void n.add(S)}if(n.has(S))return;if(f)return void(this.placements[S]=new Se(!1,!1,!1));let T=!1,M=!1,F=!0,B=!1,L=!1,O=null,U={box:null,offscreen:null,occluded:null},k={box:null,offscreen:null,occluded:null},P=null,D=null,R=null,j=0,z=0,Q=0;d.textFeatureIndex?j=d.textFeatureIndex:e.useRuntimeCollisionCircles&&(j=e.featureIndex),d.verticalTextFeatureIndex&&(z=d.verticalTextFeatureIndex);const N=t=>{t.tileID=this.retainedQueryData[o.bucketInstanceId].tileID;const e=this.transform.elevation;(e||t.elevation)&&(t.elevation=e?e.getAtTileOffset(t.tileID,t.tileAnchorX,t.tileAnchorY):0)},V=d.textBox;if(V){N(V);const n=n=>{let r=t.WritingMode.horizontal;if(o.allowVerticalPlacement&&!n&&this.prevPlacement){const t=this.prevPlacement.placedOrientations[S];t&&(this.placedOrientations[S]=t,r=t,this.markUsedOrientation(o,r,e))}return r},r=(e,n)=>{if(o.allowVerticalPlacement&&I>0&&d.verticalTextBox){for(const r of o.writingModes)if(r===t.WritingMode.vertical?(U=n(),k=U):U=e(),U&&U.box&&U.box.length)break}else U=e()};if(s.get("text-variable-anchor")){let c=s.get("text-variable-anchor");if(this.prevPlacement&&this.prevPlacement.variableOffsets[S]){const t=this.prevPlacement.variableOffsets[S];c.indexOf(t.anchor)>0&&(c=c.filter(e=>
vendor: 6,444 bytes, line 27
27e!==t.anchor),c.unshift(t.anchor))}const l=(t,n,r)=>{const s=o.getSymbolInstanceTextSize(p,e,this.transform.zoom,i),l=(t.x2-t.x1)*s+2*t.padding,u=(t.y2-t.y1)*s+2*t.padding,f=E&&!b?n:null;f&&N(f);let d={box:[],offscreen:!1,occluded:!1};const y=v?2*c.length:c.length;for(let n=0;n<y;++n){const y=this.attemptAnchorPlacement(c[n%c.length],t,l,u,s,x,w,h,a,m,n>=c.length,e,i,o,r,f,p,g);if(y&&(d=y.placedGlyphBoxes,d&&d.box&&d.box.length)){T=!0,O=y.shift;break}}return d};r(()=>l(V,d.iconBox,t.WritingMode.horizontal),()=>{const e=d.verticalTextBox;return e&&N(e),o.allowVerticalPlacement&&!(U&&U.box&&U.box.length)&&I>0&&e?l(e,d.verticalIconBox,t.WritingMode.vertical):{box:null,offscreen:null,occluded:null}}),U&&(T=U.box,F=U.offscreen,B=U.occluded);const u=n(!(!U||!U.box));if(!T&&this.prevPlacement){const t=this.prevPlacement.variableOffsets[S];t&&(this.variableOffsets[S]=t,this.markUsedJustification(o,t.anchor,e,u))}}else{const s=(n,r)=>{const s=o.getSymbolInstanceTextSize(p,e,this.transform.zoom,i),c=this.collisionIndex.placeCollisionBox(o,s,n,new t.Point(0,0),v,h,a,m.predicate);return c&&c.box&&c.box.length&&(this.markUsedOrientation(o,r,e),this.placedOrientations[S]=r),c};r(()=>s(V,t.WritingMode.horizontal),()=>{const e=d.verticalTextBox;return o.allowVerticalPlacement&&I>0&&e?(N(e),s(e,t.WritingMode.vertical)):{box:null,offscreen:null,occluded:null}}),n(!!(U&&U.box&&U.box.length))}}if(P=U,T=P&&P.box&&P.box.length>0,F=P&&P.offscreen,B=P&&P.occluded,e.useRuntimeCollisionCircles){const n=o.text.placedSymbolArray.get(e.centerJustifiedTextSymbolIndex>=0?e.centerJustifiedTextSymbolIndex:e.verticalPlacedTextSymbolIndex),i=t.evaluateSizeForFeature(o.textSizeData,p,n),u=s.get("text-padding");D=this.collisionIndex.placeCollisionCircles(o,v,n,o.lineVertexArray,o.glyphOffsetArray,i,a,c,l,r,w,m.predicate,e.collisionCircleDiameter*i/t.ONE_EM,u,this.retainedQueryData[o.bucketInstanceId].tileID),T=v||D.circles.length>0&&!D.collisionDetected,F=F&&D.offscreen,B=D.occluded}if(d.iconFeatureIndex&&(Q=d.iconFeatureIndex),d.iconBox){const n=n=>{N(n);const r=E&&O?Me(O.x,O.y,x,w,this.transform.angle):new t.Point(0,0),i=o.getSymbolInstanceIconSize(g,this.transform.zoom,e.placedIconSymbolIndex);return this.collisionIndex.placeCollisionBox(o,i,n,r,b,h,a,m.predicate)};k&&k.box&&k.box.length&&d.verticalIconBox?(R=n(d.verticalIconBox),M=R.box.length>0):(R=n(d.iconBox),M=R.box.length>0),F=F&&R.offscreen,L=R.occluded}const G=y||0===e.numHorizontalGlyphVertices&&0===I,H=_||0===e.numIconVertices;if(G||H?H?G||(M=M&&T):T=M&&T:M=T=M&&T,T&&P&&P.box&&this.collisionIndex.insertCollisionBox(P.box,s.get("text-ignore-placement"),o.bucketInstanceId,k&&k.box&&z?z:j,m.ID),M&&R&&this.collisionIndex.insertCollisionBox(R.box,s.get("icon-ignore-placement"),o.bucketInstanceId,Q,m.ID),D&&(T&&this.collisionIndex.insertCollisionCircles(D.circles,s.get("text-ignore-placement"),o.bucketInstanceId,j,m.ID),r)){const t=o.bucketInstanceId;let e=this.collisionCircleArrays[t];void 0===e&&(e=this.collisionCircleArrays[t]=new Ce);for(let t=0;t<D.circles.length;t+=4)e.circles.push(D.circles[t+0]),e.circles.push(D.circles[t+1]),e.circles.push(D.circles[t+2]),e.circles.push(D.collisionDetected?1:0)}const Z="globe"!==o.projection.name;C=C&&(Z||!B),A=A&&(Z||!L),this.placements[S]=new Se(T||C,M||A,F||o.justReloaded),n.add(S)};if(S){const t=o.getSortedSymbolIndexes(this.transform.angle);for(let e=t.length-1;e>=0;--e){const n=t[e];I(o.symbolInstances.get(n),n,o.collisionArrays[n])}}else for(let t=e.symbolInstanceStart;t<e.symbolInstanceEnd;t++)I(o.symbolInstances.get(t),t,o.collisionArrays[t]);if(r&&o.bucketInstanceId in this.collisionCircleArrays){const e=this.collisionCircleArrays[o.bucketInstanceId];t.invert(e.invProjMatrix,a),e.viewportMatrix=this.collisionIndex.getViewportMatrix()}o.justReloaded=!1}markUsedJustification(e,n,r,i){const{leftJustifiedTextSymbolIndex:o,centerJustifiedTextSymbolIndex:s,rightJustifiedTextSymbolIndex:a,verticalPlacedTextSymbolIndex:c,crossTileID:l}=r,u=t.getAnchorJustification(n),h=i===t.WritingMode.vertical?c:"left"===u?o:"center"===u?s:"right"===u?a:-1;o>=0&&(e.text.placedSymbolArray.get(o).crossTileID=h>=0&&o!==h?0:l),s>=0&&(e.text.placedSymbolArray.get(s).crossTileID=h>=0&&s!==h?0:l),a>=0&&(e.text.placedSymbolArray.get(a).crossTileID=h>=0&&a!==h?0:l),c>=0&&(e.text.placedSymbolArray.get(c).crossTileID=h>=0&&c!==h?0:l)}markUsedOrientation(e,n,r){const i=n===t.WritingMode.horizontal||n===t.WritingMode.horizontalOnly?n:0,o=n===t.WritingMode.vertical?n:0,{leftJustifiedTextSymbolIndex:s,centerJustifiedTextSymbolIndex:a,rightJustifiedTextSymbolIndex:c,verticalPlacedTextSymbolIndex:l}=r,u=e.text.placedSymbolArray;s>=0&&(u.get(s).placedOrientation=i),a>=0&&(u.get(a).placedOrientation=i),c>=0&&(u.get(c).placedOrientation=i),l>=0&&(u.get(l).placedOrientation=o)}commit(t){this.commitTime=t,this.zoomAtLastRecencyCheck=this.transform.zoom;const e=this.prevPlacement;let n=!1;this.prevZoomAdjustment=e?e.zoomAdjustment(this.transform.zoom):0;const r=e?e.symbolFadeChange(t):1,i=e?e.opacities:{},o=e?e.variableOffsets:{},s=e?e.placedOrientations:{};for(const t in this.placements){const e=this.placements[t],o=i[t];o?(this.opacities[t]=new Ee(o,r,e.text,e.icon,null,e.clipped),n=n||e.text!==o.text.placed||e.icon!==o.icon.placed):(this.opacities[t]=new Ee(null,r,e.text,e.icon,e.skipFade,e.clipped),n=n||e.text||e.icon)}for(const t in i){const e=i[t];if(!this.opacities[t]){const i=new Ee(e,r,!1,!1);i.isHidden()||(this.opacities[t]=i,n=n||e.text.placed||e.icon.placed)}}for(const t in o)this.variableOffsets[t]||!this.opacities[t]||this.opacities[t].isHidden()||(this.variableOffsets[t]=o[t]);for(const t in s)this.placedOrientations[t]||!this.opacities[t]||this.opacities[t].isHidden()||(this.placedOrientations[t]=s[t]);n?this.lastPlacementChangeTime=t:"number"!=typeof this.lastPlacementChangeTime&&(this.lastPlacementChangeTime=e?e.lastPlacementChangeTime:t)}updateLayerOpacities(t,e){const n=new Set;for(const r of e){const e=r.getBucket(t);e&&r.latestFeatureIndex&&t.id===e.layerIds[0]&&this.updateBucketOpacities(e,n,r.collisionBoxArray)}}updateBucketOpacities(e,n,r){e.hasTextData()&&e.text.opacityVertexArray.clear(),e.hasIconData()&&e.icon.opacityVertexArray.clear(),e.hasIconCollisionBoxData()&&e.iconCollisionBox.collisionVertexArray.clear(),e.hasTextCollisionBoxData()&&e.textCollisionBox.collisionVertexArray.clear();const i=e.layers[0].layout,o=!!e.layers[0].dynamicFilter(),s=new Ee(null,0,!1,!1,
vendor: 5,200 bytes, line 27
27!0),a=i.get("text-allow-overlap"),c=i.get("icon-allow-overlap"),l=i.get("text-variable-anchor"),u="map"===i.get("text-rotation-alignment"),h="map"===i.get("text-pitch-alignment"),f="none"!==i.get("icon-text-fit"),d=new Ee(null,0,a&&(c||!e.hasIconData()||i.get("icon-optional")),c&&(a||!e.hasTextData()||i.get("text-optional")),!0);!e.collisionArrays&&r&&(e.hasIconCollisionBoxData()||e.hasTextCollisionBoxData())&&e.deserializeCollisionBoxes(r);const p=(t,e,n)=>{for(let r=0;r<e/4;r++)t.opacityVertexArray.emplaceBack(n)};let g=0;for(let r=0;r<e.symbolInstances.length;r++){const i=e.symbolInstances.get(r),{numHorizontalGlyphVertices:a,numVerticalGlyphVertices:c,crossTileID:m,numIconVertices:y}=i,_=n.has(m);let v=this.opacities[m];_?v=s:v||(v=d,this.opacities[m]=v),n.add(m);const b=a>0||c>0,x=y>0,w=this.placedOrientations[m],E=w===t.WritingMode.vertical,S=w===t.WritingMode.horizontal||w===t.WritingMode.horizontalOnly;if(!b&&!x||v.isHidden()||g++,b){const t=je(v.text);p(e.text,a,E?ze:t),p(e.text,c,S?ze:t);const n=v.text.isHidden(),{leftJustifiedTextSymbolIndex:r,centerJustifiedTextSymbolIndex:o,rightJustifiedTextSymbolIndex:s,verticalPlacedTextSymbolIndex:l}=i,u=e.text.placedSymbolArray,h=n||E?1:0;r>=0&&(u.get(r).hidden=h),o>=0&&(u.get(o).hidden=h),s>=0&&(u.get(s).hidden=h),l>=0&&(u.get(l).hidden=n||S?1:0);const f=this.variableOffsets[m];f&&this.markUsedJustification(e,f.anchor,i,w);const d=this.placedOrientations[m];d&&(this.markUsedJustification(e,"left",i,d),this.markUsedOrientation(e,d,i))}if(x){const t=je(v.icon),{placedIconSymbolIndex:n,verticalPlacedIconSymbolIndex:r}=i,o=e.icon.placedSymbolArray,s=v.icon.isHidden()?1:0;n>=0&&(p(e.icon,y,E?ze:t),o.get(n).hidden=s),r>=0&&(p(e.icon,i.numVerticalIconVertices,S?ze:t),o.get(r).hidden=s)}if(e.hasIconCollisionBoxData()||e.hasTextCollisionBoxData()){const n=e.collisionArrays[r];if(n){let r=new t.Point(0,0),i=!0;if(n.textBox||n.verticalTextBox){if(l){const t=this.variableOffsets[m];t?(r=Te(t.anchor,t.width,t.height,t.textOffset,t.textScale),u&&r._rotate(h?this.transform.angle:-this.transform.angle)):i=!1}o&&(i=!v.clipped),n.textBox&&Be(e.textCollisionBox.collisionVertexArray,v.text.placed,!i||E,r.x,r.y),n.verticalTextBox&&Be(e.textCollisionBox.collisionVertexArray,v.text.placed,!i||S,r.x,r.y)}const s=i&&Boolean(!S&&n.verticalIconBox);n.iconBox&&Be(e.iconCollisionBox.collisionVertexArray,v.icon.placed,s,f?r.x:0,f?r.y:0),n.verticalIconBox&&Be(e.iconCollisionBox.collisionVertexArray,v.icon.placed,!s,f?r.x:0,f?r.y:0)}}}if(e.fullyClipped=0===g,e.sortFeatures(this.transform.angle),this.retainedQueryData[e.bucketInstanceId]&&(this.retainedQueryData[e.bucketInstanceId].featureSortOrder=e.featureSortOrder),e.hasTextData()&&e.text.opacityVertexBuffer&&e.text.opacityVertexBuffer.updateData(e.text.opacityVertexArray),e.hasIconData()&&e.icon.opacityVertexBuffer&&e.icon.opacityVertexBuffer.updateData(e.icon.opacityVertexArray),e.hasIconCollisionBoxData()&&e.iconCollisionBox.collisionVertexBuffer&&e.iconCollisionBox.collisionVertexBuffer.updateData(e.iconCollisionBox.collisionVertexArray),e.hasTextCollisionBoxData()&&e.textCollisionBox.collisionVertexBuffer&&e.textCollisionBox.collisionVertexBuffer.updateData(e.textCollisionBox.collisionVertexArray),e.bucketInstanceId in this.collisionCircleArrays){const t=this.collisionCircleArrays[e.bucketInstanceId];e.placementInvProjMatrix=t.invProjMatrix,e.placementViewportMatrix=t.viewportMatrix,e.collisionCircleArray=t.circles,delete this.collisionCircleArrays[e.bucketInstanceId]}}symbolFadeChange(t){return 0===this.fadeDuration?1:(t-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment}zoomAdjustment(t){return Math.max(0,(this.transform.zoom-t)/1.5)}hasTransitions(t){return this.stale||t-this.lastPlacementChangeTime<this.fadeDuration}stillRecent(t,e){const n=this.zoomAtLastRecencyCheck===e?1-this.zoomAdjustment(e):1;return this.zoomAtLastRecencyCheck=e,this.commitTime+this.fadeDuration*n>t}setStale(){this.stale=!0}}function Be(t,e,n,r,i){t.emplaceBack(e?1:0,n?1:0,r||0,i||0),t.emplaceBack(e?1:0,n?1:0,r||0,i||0),t.emplaceBack(e?1:0,n?1:0,r||0,i||0),t.emplaceBack(e?1:0,n?1:0,r||0,i||0)}const Le=Math.pow(2,25),Oe=Math.pow(2,24),Ue=Math.pow(2,17),ke=Math.pow(2,16),Pe=Math.pow(2,9),De=Math.pow(2,8),Re=Math.pow(2,1);function je(t){if(0===t.opacity&&!t.placed)return 0;if(1===t.opacity&&t.placed)return 4294967295;const e=t.placed?1:0,n=Math.floor(127*t.opacity);return n*Le+e*Oe+n*Ue+e*ke+n*Pe+e*De+n*Re+e}const ze=0;class Qe{constructor(t){this._sortAcrossTiles="viewport-y"!==t.layout.get("symbol-z-order")&&void 0!==t.layout.get("symbol-sort-key").constantOr(1),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs=new Set,this._bucketParts=[]}continuePlacement(t,e,n,r,i){const o=this._bucketParts;for(;this._currentTileIndex<t.length;)if(e.getBucketParts(o,r,t[this._currentTileIndex],this._sortAcrossTiles),this._currentTileIndex++,i())return!0;for(this._sortAcrossTiles&&(this._sortAcrossTiles=!1,o.sort((t,e)=>t.sortKey-e.sortKey));this._currentPartIndex<o.length;){const t=o[this._currentPartIndex];if(e.placeLayerBucketPart(t,this._seenCrossTileIDs,n,0===t.symbolInstanceStart),this._currentPartIndex++,i())return!0}return!1}}
vendor: 4,195 bytes, line 27
27class Ne{constructor(t,e,n,r,i,o,s,a){this.placement=new Fe(t,i,o,s,a),this._currentPlacementIndex=e.length-1,this._forceFullPlacement=n,this._showCollisionBoxes=r,this._done=!1}isDone(){return this._done}continuePlacement(e,n,r){const i=t.exported.now(),o=()=>{const e=t.exported.now()-i;return!this._forceFullPlacement&&e>2};for(;this._currentPlacementIndex>=0;){const t=n[e[this._currentPlacementIndex]],i=this.placement.collisionIndex.transform.zoom;if("symbol"===t.type&&(!t.minzoom||t.minzoom<=i)&&(!t.maxzoom||t.maxzoom>i)){if(this._inProgressLayer||(this._inProgressLayer=new Qe(t)),this._inProgressLayer.continuePlacement(r[t.source],this.placement,this._showCollisionBoxes,t,o))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0}commit(t){return this.placement.commit(t),this.placement}}const Ve=512/t.EXTENT/2;class Ge{constructor(e,n,r){this.tileID=e,this.bucketInstanceId=r,this.index=new t.KDBush(n.length,16,Int32Array),this.keys=[],this.crossTileIDs=[];const i=e.canonical.x*t.EXTENT,o=e.canonical.y*t.EXTENT;for(let t=0;t<n.length;t++){const{key:e,crossTileID:r,tileAnchorX:s,tileAnchorY:a}=n.get(t),c=Math.floor((i+s)*Ve),l=Math.floor((o+a)*Ve);this.index.add(c,l),this.keys.push(e),this.crossTileIDs.push(r)}this.index.finish()}findMatches(e,n,r){const i=this.tileID.canonical.z<n.canonical.z?1:Math.pow(2,this.tileID.canonical.z-n.canonical.z),o=Ve/Math.pow(2,n.canonical.z-this.tileID.canonical.z),s=n.canonical.x*t.EXTENT,a=n.canonical.y*t.EXTENT;for(let t=0;t<e.length;t++){const n=e.get(t);if(n.crossTileID)continue;const{key:c,tileAnchorX:l,tileAnchorY:u}=n,h=Math.floor((s+l)*o),f=Math.floor((a+u)*o),d=this.index.range(h-i,f-i,h+i,f+i);for(const t of d){const e=this.crossTileIDs[t];if(this.keys[t]===c&&!r.has(e)){r.add(e),n.crossTileID=e;break}}}}}class He{constructor(){this.maxCrossTileID=0}generate(){return++this.maxCrossTileID}}class Ze{constructor(){this.indexes={},this.usedCrossTileIDs={},this.lng=0}handleWrapJump(t){const e=Math.round((t-this.lng)/360);if(0!==e)for(const t in this.indexes){const n=this.indexes[t],r={};for(const t in n){const i=n[t];i.tileID=i.tileID.unwrapTo(i.tileID.wrap+e),r[i.tileID.key]=i}this.indexes[t]=r}this.lng=t}addBucket(t,e,n){if(this.indexes[t.overscaledZ]&&this.indexes[t.overscaledZ][t.key]){if(this.indexes[t.overscaledZ][t.key].bucketInstanceId===e.bucketInstanceId)return!1;this.removeBucketCrossTileIDs(t.overscaledZ,this.indexes[t.overscaledZ][t.key])}for(let t=0;t<e.symbolInstances.length;t++)e.symbolInstances.get(t).crossTileID=0;this.usedCrossTileIDs[t.overscaledZ]||(this.usedCrossTileIDs[t.overscaledZ]=new Set);const r=this.usedCrossTileIDs[t.overscaledZ];for(const n in this.indexes){const i=this.indexes[n];if(Number(n)>t.overscaledZ)for(const n in i){const o=i[n];o.tileID.isChildOf(t)&&o.findMatches(e.symbolInstances,t,r)}else{const o=i[t.scaledTo(Number(n)).key];o&&o.findMatches(e.symbolInstances,t,r)}}for(let t=0;t<e.symbolInstances.length;t++){const i=e.symbolInstances.get(t);i.crossTileID||(i.crossTileID=n.generate(),r.add(i.crossTileID))}return void 0===this.indexes[t.overscaledZ]&&(this.indexes[t.overscaledZ]={}),this.indexes[t.overscaledZ][t.key]=new Ge(t,e.symbolInstances,e.bucketInstanceId),!0}removeBucketCrossTileIDs(t,e){for(const n of e.crossTileIDs)this.usedCrossTileIDs[t].delete(n)}removeStaleBuckets(t){let e=!1;for(const n in this.indexes){const r=this.indexes[n];for(const i in r)t[r[i].bucketInstanceId]||(this.removeBucketCrossTileIDs(n,r[i]),delete r[i],e=!0)}return e}}class We{constructor(){this.layerIndexes={},this.crossTileIDs=new He,this.maxBucketInstanceId=0,this.bucketsInCurrentPlacement={}}addLayer(t,e,n,r){let i=this.layerIndexes[t.id];void 0===i&&(i=this.layerIndexes[t.id]=new Ze);let o=!1;const s={};"globe"!==r.name&&i.handleWrapJump(n);for(const n of e){const e=n.getBucket(t);e&&t.id===e.layerIds[0]&&(e.bucketInstanceId||(e.bucketInstanceId=++this.maxBucketInstanceId),i.addBucket(n.tileID,e,this.crossTileIDs)&&(o=!0),s[e.bucketInstanceId]=!0)}return i.removeStaleBuckets(s)&&(o=!0),o}pruneUnusedLayers(t){const e={};t.forEach(t=>{e[t]=!0});for(const t in this.layerIndexes)e[t]||delete this.layerIndexes[t]}}const Xe=(e,n)=>
27t.emitValidationErrors(e,n&&n.filter(t=>"source.canvas"!==t.identifier)),Ye=t.pick(Nt,["addLayer","removeLayer","setPaintProperty","setLayoutProperty","setFilter","addSource","removeSource","setLayerZoomRange","setLight","setTransition","setGeoJSONSourceData","setTerrain","setFog","setProjection"]),qe=t.pick(Nt,["setCenter","setZoom","setBearing","setPitch"]),Ke={version:8,layers:[],sources:{}},Je={fill:!0,line:!0,background:!0,hillshade:!0,raster:!0};class $e extends t.Evented{constructor(e,n={}){super(),this.map=e,this.dispatcher=new M(jt(),this),this.imageManager=new b,this.imageManager.setEventedParent(this),this.glyphManager=new t.GlyphManager(e._requestManager,n.localFontFamily?t.LocalGlyphMode.all:n.localIdeographFontFamily?t.LocalGlyphMode.ideographs:t.LocalGlyphMode.none,n.localFontFamily||n.localIdeographFontFamily),this.crossTileSymbolIndex=new We,this._layers={},this._num3DLayers=0,this._numSymbolLayers=0,this._numCircleLayers=0,this._serializedLayers={},this._sourceCaches={},this._otherSourceCaches={},this._symbolSourceCaches={},this._loaded=!1,this._availableImages=[],this._order=[],this._drapedFirstOrder=[],this._markersNeedUpdate=!1,this._resetUpdates(),this.dispatcher.broadcast("setReferrer",t.getReferrer());const r=this;this._rtlTextPluginCallback=$e.registerForPluginStateChange(e=>{r.dispatcher.broadcast("syncRTLPluginState",{pluginStatus:e.pluginStatus,pluginURL:e.pluginURL},(e,n)=>{if(t.triggerPluginCompletionEvent(e),n&&n.every(t=>t))for(const t in r._sourceCaches){const e=r._sourceCaches[t],n=e.getSource().type;"vector"!==n&&"geojson"!==n||e.reload()}})}),this.on("data",t=>{if("source"!==t.dataType||"metadata"!==t.sourceDataType)return;const e=this.getSource(t.sourceId);if(e&&e.vectorLayerIds)for(const t in this._layers){const n=this._layers[t];n.source===e.id&&this._validateLayer(n)}})}loadURL(e,n={}){this.fire(new t.Event("dataloading",{dataType:"style"}));const r="boolean"==typeof n.validate?n.validate:!t.isMapboxURL(e);e=this.map._requestManager.normalizeStyleURL(e,n.accessToken);const i=this.map._requestManager.transformRequest(e,t.ResourceType.Style);this._request=t.getJSON(i,(e,n)=>{this._request=null,e?this.fire(new t.ErrorEvent(e)):n&&this._load(n,r)})}loadJSON(e,n={}){this.fire(new t.Event("dataloading",{dataType:"style"})),this._request=t.exported.frame(()=>{this._request=null,this._load(e,!1!==n.validate)})}loadEmpty(){this.fire(new t.Event("dataloading",{dataType:"style"})),this._load(Ke,!1)}_updateLayerCount(t,e){const n=e?1:-1;t.is3D()&&(this._num3DLayers+=n),"circle"===t.type&&(this._numCircleLayers+=n),"symbol"===t.type&&(this._numSymbolLayers+=n)}_load(e,n){if(n&&Xe(this,t.validateStyle(e)))return;this._loaded=!0,this.stylesheet=t.clone$1(e),this._updateMapProjection();for(const t in e.sources)this.addSource(t,e.sources[t],{validate:!1});this._changed=!1,e.sprite?this._loadSprite(e.sprite):(this.imageManager.setLoaded(!0),this.dispatcher.broadcast("spriteLoaded",!0)),this.glyphManager.setURL(e.glyphs);
vendor: 28,990 bytes, line 27
27const r=Qt(this.stylesheet.layers);this._order=r.map(t=>t.id),this._layers={},this._serializedLayers={};for(const e of r){const n=t.createStyleLayer(e);n.setEventedParent(this,{layer:{id:n.id}}),this._layers[n.id]=n,this._serializedLayers[n.id]=n.serialize(),this._updateLayerCount(n,!0)}this.dispatcher.broadcast("setLayers",this._serializeLayers(this._order)),this.light=new w(this.stylesheet.light),this.stylesheet.terrain&&!this.terrainSetForDrapingOnly()&&this._createTerrain(this.stylesheet.terrain,1),this.stylesheet.fog&&this._createFog(this.stylesheet.fog),this._updateDrapeFirstLayers(),this.fire(new t.Event("data",{dataType:"style"})),this.fire(new t.Event("style.load"))}terrainSetForDrapingOnly(){return!!this.terrain&&0===this.terrain.drapeRenderMode}setProjection(t){t?this.stylesheet.projection=t:delete this.stylesheet.projection,this._updateMapProjection()}applyProjectionUpdate(){this._loaded&&(this.dispatcher.broadcast("setProjection",this.map.transform.projectionOptions),this.map.transform.projection.requiresDraping?this.getTerrain()||this.stylesheet.terrain||this.setTerrainForDraping():this.terrainSetForDrapingOnly()&&this.setTerrain(null))}_updateMapProjection(){this.map._useExplicitProjection?this.applyProjectionUpdate():this.map._prioritizeAndUpdateProjection(null,this.stylesheet.projection)}_loadSprite(e){this._spriteRequest=function(e,n,r){let i,o,s;const a=t.exported.devicePixelRatio>1?"@2x":"";let c=t.getJSON(n.transformRequest(n.normalizeSpriteURL(e,a,".json"),t.ResourceType.SpriteJSON),(t,e)=>{c=null,s||(s=t,i=e,u())}),l=t.getImage(n.transformRequest(n.normalizeSpriteURL(e,a,".png"),t.ResourceType.SpriteImage),(t,e)=>{l=null,s||(s=t,o=e,u())});function u(){if(s)r(s);else if(i&&o){const e=t.exported.getImageData(o),n={};for(const r in i){const{width:o,height:s,x:a,y:c,sdf:l,pixelRatio:u,stretchX:h,stretchY:f,content:d}=i[r],p=new t.RGBAImage({width:o,height:s});t.RGBAImage.copy(e,p,{x:a,y:c},{x:0,y:0},{width:o,height:s}),n[r]={data:p,pixelRatio:u,sdf:l,stretchX:h,stretchY:f,content:d}}r(null,n)}}return{cancel(){c&&(c.cancel(),c=null),l&&(l.cancel(),l=null)}}}(e,this.map._requestManager,(e,n)=>{if(this._spriteRequest=null,e)this.fire(new t.ErrorEvent(e));else if(n)for(const t in n)this.imageManager.addImage(t,n[t]);this.imageManager.setLoaded(!0),this._availableImages=this.imageManager.listImages(),this.dispatcher.broadcast("setImages",this._availableImages),this.dispatcher.broadcast("spriteLoaded",!0),this.fire(new t.Event("data",{dataType:"style"}))})}_validateLayer(e){const n=this.getSource(e.source);if(!n)return;const r=e.sourceLayer;r&&("geojson"===n.type||n.vectorLayerIds&&-1===n.vectorLayerIds.indexOf(r))&&this.fire(new t.ErrorEvent(new Error(`Source layer "${r}" does not exist on source "${n.id}" as specified by style layer "${e.id}"`)))}loaded(){if(!this._loaded)return!1;if(Object.keys(this._updatedSources).length)return!1;for(const t in this._sourceCaches)if(!this._sourceCaches[t].loaded())return!1;return!!this.imageManager.isLoaded()}_serializeLayers(t){const e=[];for(const n of t){const t=this._layers[n];"custom"!==t.type&&e.push(t.serialize())}return e}hasTransitions(){if(this.light&&this.light.hasTransition())return!0;if(this.fog&&this.fog.hasTransition())return!0;for(const t in this._sourceCaches)if(this._sourceCaches[t].hasTransition())return!0;for(const t in this._layers)if(this._layers[t].hasTransition())return!0;return!1}get order(){return this.map._optimizeForTerrain&&this.terrain?this._drapedFirstOrder:this._order}isLayerDraped(t){return!!this.terrain&&("function"==typeof t.isLayerDraped?t.isLayerDraped():Je[t.type])}_checkLoaded(){if(!this._loaded)throw new Error("Style is not done loading")}update(e){if(!this._loaded)return;const n=this._changed;if(this._changed){const t=Object.keys(this._updatedLayers),n=Object.keys(this._removedLayers);(t.length||n.length)&&this._updateWorkerLayers(t,n);for(const t in this._updatedSources){const e=this._updatedSources[t];"reload"===e?this._reloadSource(t):"clear"===e&&this._clearSource(t)}this._updateTilesForChangedImages();for(const t in this._updatedPaintProps)this._layers[t].updateTransitions(e);this.light.updateTransitions(e),this.fog&&this.fog.updateTransitions(e),this._resetUpdates()}const r={};for(const t in this._sourceCaches){const e=this._sourceCaches[t];r[t]=e.used,e.used=!1}for(const t of this._order){const n=this._layers[t];if(n.recalculate(e,this._availableImages),!n.isHidden(e.zoom)){const t=this._getLayerSourceCache(n);t&&(t.used=!0)}const r=this.map.painter;if(r){const t=n.getProgramIds();if(!t)continue;const i=n.getProgramConfiguration(e.zoom);for(const e of t)r.useProgram(e,i)}}for(const e in r){const n=this._sourceCaches[e];r[e]!==n.used&&n.getSource().fire(new t.Event("data",{sourceDataType:"visibility",dataType:"source",sourceId:n.getSource().id}))}this.light.recalculate(e),this.terrain&&this.terrain.recalculate(e),this.fog&&this.fog.recalculate(e),this.z=e.zoom,this._markersNeedUpdate&&(this._updateMarkersOpacity(),this._markersNeedUpdate=!1),n&&this.fire(new t.Event("data",{dataType:"style"}))}_updateTilesForChangedImages(){const t=Object.keys(this._changedImages);if(t.length){for(const e in this._sourceCaches)this._sourceCaches[e].reloadTilesForDependencies(["icons","patterns"],t);this._changedImages={}}}_updateWorkerLayers(t,e){this.dispatcher.broadcast("updateLayers",{layers:this._serializeLayers(t),removedIds:e})}_resetUpdates(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={},this._changedImages={}}setState(n){if(this._checkLoaded(),Xe(this,t.validateStyle(n)))return!1;(n=t.clone$1(n)).layers=Qt(n.layers);const r=function(t,n){if(!t)return[{command:Nt.setStyle,args:[n]}];let r=[];try{if(!e(t.version,n.version))return[{command:Nt.setStyle,args:[n]}];e(t.center,n.center)||r.push({command:Nt.setCenter,args:[n.center]}),e(t.zoom,n.zoom)||r.push({command:Nt.setZoom,args:[n.zoom]}),e(t.bearing,n.bearing)||r.push({command:Nt.setBearing,args:[n.bearing]}),e(t.pitch,n.pitch)||r.push({command:Nt.setPitch,args:[n.pitch]}),e(t.sprite,n.sprite)||r.push({command:Nt.setSprite,args:[n.sprite]}),e(t.glyphs,n.glyphs)||r.push({command:Nt.setGlyphs,args:[n.glyphs]}),e(t.transition,n.transition)||r.push({command:Nt.setTransition,args:[n.transition]}),e(t.light,n.light)||r.push({command:Nt.setLight,args:[n.light]}),e(t.fog,n.fog)||r.push({command:Nt.setFog,args:[n.fog]}),e(t.projection,n.projection)||r.push({command:Nt.setProjection,args:[n.projection]});const i={},o=[];!function(t,n,r,i){let o;for(o in n=n||{},t=t||{})t.hasOwnProperty(o)&&(n.hasOwnProperty(o)||Gt(o,r,i));for(o in n){if(!n.hasOwnProperty(o))continue;const s=n[o];t.hasOwnProperty(o)?e(t[o],s)||("geojson"===t[o].type&&"geojson"===s.type&&Zt(t,n,o)?r.push({command:Nt.setGeoJSONSourceData,args:[o,s.data]}):Ht(o,n,r,i)):Vt(o,n,r)}}(t.sources,n.sources,o,i);const s=[];t.layers&&t.layers.forEach(t=>{t.source&&i[t.source]?r.push({command:Nt.removeLayer,args:[t.id]}):s.push(t)});let a=t.terrain;a&&i[a.source]&&(r.push({command:Nt.setTerrain,args:[void 0]}),a=void 0),r=r.concat(o),e(a,n.terrain)||r.push({command:Nt.setTerrain,args:[n.terrain]}),function(t,n,r){n=n||[];const i=(t=t||[]).map(Xt),o=n.map(Xt),s=t.reduce(Yt,{}),a=n.reduce(Yt,{}),c=i.slice(),l=Object.create(null);let u,h,f,d,p,g,m;for(u=0,h=0;u<i.length;u++)f=i[u],a.hasOwnProperty(f)?h++:(r.push({command:Nt.removeLayer,args:[f]}),c.splice(c.indexOf(f,h),1));for(u=0,h=0;u<o.length;u++)f=o[o.length-1-u],c[c.length-1-u]!==f&&(s.hasOwnProperty(f)?(r.push({command:Nt.removeLayer,args:[f]}),c.splice(c.lastIndexOf(f,c.length-h),1)):h++,g=c[c.length-u],r.push({command:Nt.addLayer,args:[a[f],g]}),c.splice(c.length-u,0,f),l[f]=!0);for(u=0;u<o.length;u++)if(f=o[u],d=s[f],p=a[f],!l[f]&&!e(d,p))if(e(d.source,p.source)&&e(d["source-layer"],p["source-layer"])&&e(d.type,p.type)){for(m in Wt(d.layout,p.layout,r,f,null,Nt.setLayoutProperty),Wt(d.paint,p.paint,r,f,null,Nt.setPaintProperty),e(d.filter,p.filter)||r.push({command:Nt.setFilter,args:[f,p.filter]}),e(d.minzoom,p.minzoom)&&e(d.maxzoom,p.maxzoom)||r.push({command:Nt.setLayerZoomRange,args:[f,p.minzoom,p.maxzoom]}),d)d.hasOwnProperty(m)&&"layout"!==m&&"paint"!==m&&"filter"!==m&&"metadata"!==m&&"minzoom"!==m&&"maxzoom"!==m&&(0===m.indexOf("paint.")?Wt(d[m],p[m],r,f,m.slice(6),Nt.setPaintProperty):e(d[m],p[m])||r.push({command:Nt.setLayerProperty,args:[f,m,p[m]]}));for(m in p)p.hasOwnProperty(m)&&!d.hasOwnProperty(m)&&"layout"!==m&&"paint"!==m&&"filter"!==m&&"metadata"!==m&&"minzoom"!==m&&"maxzoom"!==m&&(0===m.indexOf("paint.")?Wt(d[m],p[m],r,f,m.slice(6),Nt.setPaintProperty):e(d[m],p[m])||r.push({command:Nt.setLayerProperty,args:[f,m,p[m]]}))}else r.push({command:Nt.removeLayer,args:[f]}),g=c[c.lastIndexOf(f)+1],r.push({command:Nt.addLayer,args:[p,g]})}(s,n.layers,r)}catch(t){console.warn("Unable to compute style diff:",t),r=[{command:Nt.setStyle,args:[n]}]}return r}(this.serialize(),n).filter(t=>!(t.command in qe));if(0===r.length)return!1;const i=r.filter(t=>!(t.command in Ye));if(i.length>0)throw new Error(`Unimplemented: ${i.map(t=>t.command).join(", ")}.`);return r.forEach(t=>{"setTransition"!==t.command&&"setProjection"!==t.command&&this[t.command].apply(this,t.args)}),this.stylesheet=n,this._updateMapProjection(),!0}addImage(e,n){return this.getImage(e)?this.fire(new t.ErrorEvent(new Error("An image with this name already exists."))):(this.imageManager.addImage(e,n),this._afterImageUpdated(e),this)}updateImage(t,e){this.imageManager.updateImage(t,e)}getImage(t){return this.imageManager.getImage(t)}removeImage(e){return this.getImage(e)?(this.imageManager.removeImage(e),this._afterImageUpdated(e),this):this.fire(new t.ErrorEvent(new Error("No image with this name exists.")))}_afterImageUpdated(e){this._availableImages=this.imageManager.listImages(),this._changedImages[e]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new t.Event("data",{dataType:"style"}))}listImages(){return this._checkLoaded(),this._availableImages.slice()}addSource(e,n,r={}){if(this._checkLoaded(),void 0!==this.getSource(e))throw new Error("There is already a source with this ID");if(!n.type)throw new Error(`The type property must be defined, but only the following properties were given: ${Object.keys(n).join(", ")}.`);if(["vector","raster","geojson","video","image"].indexOf(n.type)>=0&&this._validate(t.validateSource,"sources."+e,n,null,r))return;this.map&&this.map._collectResourceTiming&&(n.collectResourceTiming=!0);const i=Ft(e,n,this.dispatcher,this);i.setEventedParent(this,()=>({isSourceLoaded:this._isSourceCacheLoaded(e),source:i.serialize(),sourceId:e}));const o=n=>{const r=(n?"symbol:":"other:")+e,o=this._sourceCaches[r]=new t.SourceCache(r,i,n);(n?this._symbolSourceCaches:this._otherSourceCaches)[e]=o,o.style=this,o.onAdd(this.map)};o(!1),"vector"!==n.type&&"geojson"!==n.type||o(!0),i.onAdd&&i.onAdd(this.map),this._changed=!0}removeSource(e){this._checkLoaded();const n=this.getSource(e);if(!n)throw new Error("There is no source with this ID");for(const n in this._layers)if(this._layers[n].source===e)return this.fire(new t.ErrorEvent(new Error(`Source "${e}" cannot be removed while layer "${n}" is using it.`)));if(this.terrain&&this.terrain.get().source===e)return this.fire(new t.ErrorEvent(new Error(`Source "${e}" cannot be removed while terrain is using it.`)));const r=this._getSourceCaches(e);for(const e of r)delete this._sourceCaches[e.id],delete this._updatedSources[e.id],e.fire(new t.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:e.getSource().id})),e.setEventedParent(null),e.clearTiles();return delete this._otherSourceCaches[e],delete this._symbolSourceCaches[e],n.setEventedParent(null),n.onRemove&&n.onRemove(this.map),this._changed=!0,this}setGeoJSONSourceData(t,e){this._checkLoaded(),this.getSource(t).setData(e),this._changed=!0}getSource(t){const e=this._getSourceCache(t);return e&&e.getSource()}_getSources(){const t=[];for(const e in this._otherSourceCaches){const n=this._getSourceCache(e);n&&t.push(n.getSource())}return t}addLayer(e,n,r={}){this._checkLoaded();const i=e.id;if(this.getLayer(i))return void this.fire(new t.ErrorEvent(new Error(`Layer with id "${i}" already exists on this map`)));let o;if("custom"===e.type){if(Xe(this,t.validateCustomStyleLayer(e)))return;o=t.createStyleLayer(e)}else{if("object"==typeof e.source&&(this.addSource(i,e.source),e=t.clone$1(e),e=t.extend(e,{source:i})),this._validate(t.validateLayer,"layers."+i,e,{arrayIndex:-1},r))return;o=t.createStyleLayer(e),this._validateLayer(o),o.setEventedParent(this,{layer:{id:i}}),this._serializedLayers[o.id]=o.serialize(),this._updateLayerCount(o,!0)}const s=n?this._order.indexOf(n):this._order.length;if(n&&-1===s)return void this.fire(new t.ErrorEvent(new Error(`Layer with id "${n}" does not exist on this map.`)));this._order.splice(s,0,i),this._layerOrderChanged=!0,this._layers[i]=o;const a=this._getLayerSourceCache(o);if(this._removedLayers[i]&&o.source&&a&&"custom"!==o.type){const t=this._removedLayers[i];delete this._removedLayers[i],t.type!==o.type?this._updatedSources[o.source]="clear":(this._updatedSources[o.source]="reload",a.pause())}this._updateLayer(o),o.onAdd&&o.onAdd(this.map),this._updateDrapeFirstLayers()}moveLayer(e,n){if(this._checkLoaded(),this._changed=!0,!this._layers[e])return void this.fire(new t.ErrorEvent(new Error(`The layer '${e}' does not exist in the map's style and cannot be moved.`)));if(e===n)return;const r=this._order.indexOf(e);this._order.splice(r,1);const i=n?this._order.indexOf(n):this._order.length;n&&-1===i?this.fire(new t.ErrorEvent(new Error(`Layer with id "${n}" does not exist on this map.`))):(this._order.splice(i,0,e),this._layerOrderChanged=!0,this._updateDrapeFirstLayers())}removeLayer(e){this._checkLoaded();const n=this._layers[e];if(!n)return void this.fire(new t.ErrorEvent(new Error(`The layer '${e}' does not exist in the map's style and cannot be removed.`)));n.setEventedParent(null),this._updateLayerCount(n,!1);const r=this._order.indexOf(e);this._order.splice(r,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[e]=n,delete this._layers[e],delete this._serializedLayers[e],delete this._updatedLayers[e],delete this._updatedPaintProps[e],n.onRemove&&n.onRemove(this.map),this._updateDrapeFirstLayers()}getLayer(t){return this._layers[t]}hasLayer(t){return t in this._layers}hasLayerType(t){for(const e in this._layers)if(this._layers[e].type===t)return!0;return!1}setLayerZoomRange(e,n,r){this._checkLoaded();const i=this.getLayer(e);i?i.minzoom===n&&i.maxzoom===r||(null!=n&&(i.minzoom=n),null!=r&&(i.maxzoom=r),this._updateLayer(i)):this.fire(new t.ErrorEvent(new Error(`The layer '${e}' does not exist in the map's style and cannot have zoom extent.`)))}setFilter(n,r,i={}){this._checkLoaded();const o=this.getLayer(n);if(o){if(!e(o.filter,r))return null==r?(o.filter=void 0,void this._updateLayer(o)):void(this._validate(t.validateFilter,`layers.${o.id}.filter`,r,{layerType:o.type},i)||(o.filter=t.clone$1(r),this._updateLayer(o)))}else this.fire(new t.ErrorEvent(new Error(`The layer '${n}' does not exist in the map's style and cannot be filtered.`)))}getFilter(e){const n=this.getLayer(e);return n&&t.clone$1(n.filter)}setLayoutProperty(n,r,i,o={}){this._checkLoaded();const s=this.getLayer(n);s?e(s.getLayoutProperty(r),i)||(s.setLayoutProperty(r,i,o),this._updateLayer(s)):this.fire(new t.ErrorEvent(new Error(`The layer '${n}' does not exist in the map's style and cannot be styled.`)))}getLayoutProperty(e,n){const r=this.getLayer(e);if(r)return r.getLayoutProperty(n);this.fire(new t.ErrorEvent(new Error(`The layer '${e}' does not exist in the map's style.`)))}setPaintProperty(n,r,i,o={}){this._checkLoaded();const s=this.getLayer(n);s?e(s.getPaintProperty(r),i)||(s.setPaintProperty(r,i,o)&&this._updateLayer(s),this._changed=!0,this._updatedPaintProps[n]=!0):this.fire(new t.ErrorEvent(new Error(`The layer '${n}' does not exist in the map's style and cannot be styled.`)))}getPaintProperty(t,e){const n=this.getLayer(t);return n&&n.getPaintProperty(e)}setFeatureState(e,n){this._checkLoaded();const r=e.source,i=e.sourceLayer,o=this.getSource(r);if(!o)return void this.fire(new t.ErrorEvent(new Error(`The source '${r}' does not exist in the map's style.`)));const s=o.type;if("geojson"===s&&i)return void this.fire(new t.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter.")));if("vector"===s&&!i)return void this.fire(new t.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));void 0===e.id&&this.fire(new t.ErrorEvent(new Error("The feature id parameter must be provided.")));const a=this._getSourceCaches(r);for(const t of a)t.setFeatureState(i,e.id,n)}removeFeatureState(e,n){this._checkLoaded();const r=e.source,i=this.getSource(r);if(!i)return void this.fire(new t.ErrorEvent(new Error(`The source '${r}' does not exist in the map's style.`)));const o=i.type,s="vector"===o?e.sourceLayer:void 0;if("vector"===o&&!s)return void this.fire(new t.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));if(n&&"string"!=typeof e.id&&"number"!=typeof e.id)return void this.fire(new t.ErrorEvent(new Error("A feature id is required to remove its specific state property.")));const a=this._getSourceCaches(r);for(const t of a)t.removeFeatureState(s,e.id,n)}getFeatureState(e){this._checkLoaded();const n=e.source,r=e.sourceLayer,i=this.getSource(n);if(i){if("vector"!==i.type||r)return void 0===e.id&&this.fire(new t.ErrorEvent(new Error("The feature id parameter must be provided."))),this._getSourceCaches(n)[0].getFeatureState(r,e.id);this.fire(new t.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new t.ErrorEvent(new Error(`The source '${n}' does not exist in the map's style.`)))}getTransition(){return t.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)}serialize(){const e={};for(const t in this._sourceCaches){const n=this._sourceCaches[t].getSource();e[n.id]||(e[n.id]=n.serialize())}return t.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,terrain:this.getTerrain()||void 0,fog:this.stylesheet.fog,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,projection:this.stylesheet.projection,sources:e,layers:this._serializeLayers(this._order)},t=>void 0!==t)}_updateLayer(t){this._updatedLayers[t.id]=!0;const e=this._getLayerSourceCache(t);t.source&&!this._updatedSources[t.source]&&e&&"raster"!==e.getSource().type&&(this._updatedSources[t.source]="reload",e.pause()),this._changed=!0,t.invalidateCompiledFilter()}_flattenAndSortRenderedFeatures(t){const e=t=>"fill-extrusion"===this._layers[t].type,n={},r=[];for(let i=this._order.length-1;i>=0;i--){const o=this._order[i];if(e(o)){n[o]=i;for(const e of t){const t=e[o];if(t)for(const e of t)r.push(e)}}}r.sort((t,e)=>e.intersectionZ-t.intersectionZ);const i=[];for(let o=this._order.length-1;o>=0;o--){const s=this._order[o];if(e(s))for(let t=r.length-1;t>=0;t--){const e=r[t].feature;if(n[e.layer.id]<o)break;i.push(e),r.pop()}else for(const e of t){const t=e[s];if(t)for(const e of t)i.push(e.feature)}}return i}queryRenderedFeatures(e,n,r){n&&n.filter&&this._validate(t.validateFilter,"queryRenderedFeatures.filter",n.filter,null,n);const i={};if(n&&n.layers){if(!Array.isArray(n.layers))return this.fire(new t.ErrorEvent(new Error("parameters.layers must be an Array."))),[];for(const e of n.layers){const n=this._layers[e];if(!n)return this.fire(new t.ErrorEvent(new Error(`The layer '${e}' does not exist in the map's style and cannot be queried for features.`))),[];i[n.source]=!0}}const o=[];n.availableImages=this._availableImages;const s=n&&n.layers?n.layers.some(t=>{const e=this.getLayer(t);return e&&e.is3D()}):this.has3DLayers(),a=B.createFromScreenPoints(e,r);for(const t in this._sourceCaches){const e=this._sourceCaches[t].getSource().id;n.layers&&!i[e]||o.push(Lt(this._sourceCaches[t],this._layers,this._serializedLayers,a,n,r,s,!!this.map._showQueryGeometry))}return this.placement&&o.push(function(t,e,n,r,i,o,s){const a={},c=o.queryRenderedSymbols(r),l=[];for(const t of Object.keys(c).map(Number))l.push(s[t]);l.sort(Ut);for(const n of l){const r=n.featureIndex.lookupSymbolFeatures(c[n.bucketInstanceId],e,n.bucketIndex,n.sourceLayerIndex,i.filter,i.layers,i.availableImages,t);for(const t in r){const e=a[t]=a[t]||[],i=r[t];i.sort((t,e)=>{const r=n.featureSortOrder;if(r){const n=r.indexOf(t.featureIndex);return r.indexOf(e.featureIndex)-n}return e.featureIndex-t.featureIndex});for(const t of i)e.push(t)}}for(const e in a)a[e].forEach(r=>{const i=r.feature,o=n(t[e]);if(!o)return;const s=o.getFeatureState(i.layer["source-layer"],i.id);i.source=i.layer.source,i.layer["source-layer"]&&(i.sourceLayer=i.layer["source-layer"]),i.state=s});return a}(this._layers,this._serializedLayers,this._getLayerSourceCache.bind(this),a.screenGeometry,n,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(o)}querySourceFeatures(e,n){n&&n.filter&&this._validate(t.validateFilter,"querySourceFeatures.filter",n.filter,null,n);const r=this._getSourceCaches(e);let i=[];for(const t of r)i=i.concat(Ot(t,n));return i}addSourceType(t,e,n){return $e.getSourceType(t)?n(new Error(`A source type called "${t}" already exists.`)):($e.setSourceType(t,e),e.workerSourceURL?void this.dispatcher.broadcast("loadWorkerSource",{name:t,url:e.workerSourceURL},n):n(null,null))}getLight(){return this.light.getLight()}setLight(t,n={}){this._checkLoaded();const r=this.light.getLight();let i=!1;for(const n in t)if(!e(t[n],r[n])){i=!0;break}if(!i)return;const o=this._setTransitionParameters({duration:300,delay:0});this.light.setLight(t,n),this.light.updateTransitions(o)}getTerrain(){return this.terrain&&1===this.terrain.drapeRenderMode?this.terrain.get():null}setTerrainForDraping(){this.setTerrain({source:"",exaggeration:0},0)}setTerrain(n,r=1){if(this._checkLoaded(),!n)return delete this.terrain,delete this.stylesheet.terrain,this.dispatcher.broadcast("enableTerrain",!1),this._force3DLayerUpdate(),void(this._markersNeedUpdate=!0);let i=n;if(1===r){if("object"==typeof i.source){const e="terrain-dem-src";this.addSource(e,i.source),i=t.clone$1(i),i=t.extend(i,{source:e})}if(this._validate(t.validateTerrain,"terrain",i))return}if(!this.terrain||this.terrain&&r!==this.terrain.drapeRenderMode){if(!i)return;this._createTerrain(i,r)}else{const n=this.terrain,r=n.get();for(const e of Object.keys(t.spec.terrain))!i.hasOwnProperty(e)&&t.spec.terrain[e].default&&(i[e]=t.spec.terrain[e].default);for(const t in i)if(!e(i[t],r[t])){n.set(i),this.stylesheet.terrain=i;const t=this._setTransitionParameters({duration:0});n.updateTransitions(t);break}}this._updateDrapeFirstLayers(),this._markersNeedUpdate=!0}_createFog(t){const e=this.fog=new T(t,this.map.transform);this.stylesheet.fog=t;const n=this._setTransitionParameters({duration:0});e.updateTransitions(n)}_updateMarkersOpacity(){0!==this.map._markers.length&&this.map._requestDomTask(()=>{for(const t of this.map._markers)t._evaluateOpacity()})}getFog(){return this.fog?this.fog.get():null}setFog(t){if(this._checkLoaded(),!t)return delete this.fog,delete this.stylesheet.fog,void(this._markersNeedUpdate=!0);if(this.fog){const n=this.fog,r=n.get();0===Object.keys(t).length&&n.set(t);for(const i in t)if(!e(t[i],r[i])){n.set(t),this.stylesheet.fog=t;const e=this._setTransitionParameters({duration:0});n.updateTransitions(e);break}}else this._createFog(t);this._markersNeedUpdate=!0}_setTransitionParameters(e){return{now:t.exported.now(),transition:t.extend(e,this.stylesheet.transition)}}_updateDrapeFirstLayers(){if(!this.map._optimizeForTerrain||!this.terrain)return;const t=this._order.filter(t=>this.isLayerDraped(this._layers[t])),e=this._order.filter(t=>!this.isLayerDraped(this._layers[t]));this._drapedFirstOrder=[],this._drapedFirstOrder.push(...t),this._drapedFirstOrder.push(...e)}_createTerrain(t,e){const n=this.terrain=new S(t,e);this.stylesheet.terrain=t,this.dispatcher.broadcast("enableTerrain",!this.terrainSetForDrapingOnly()),this._force3DLayerUpdate();const r=this._setTransitionParameters({duration:0});n.updateTransitions(r)}_force3DLayerUpdate(){for(const t in this._layers){const e=this._layers[t];"fill-extrusion"===e.type&&this._updateLayer(e)}}_forceSymbolLayerUpdate(){for(const t in this._layers){const e=this._layers[t];"symbol"===e.type&&this._updateLayer(e)}}_validate(e,n,r,i,o={}){return(!o||!1!==o.validate)&&Xe(this,e.call(t.validateStyle,t.extend({key:n,style:this.serialize(),value:r,styleSpec:t.spec},i)))}_remove(){this._request&&(this._request.cancel(),this._request=null),this._spriteRequest&&(this._spriteRequest.cancel(),this._spriteRequest=null),t.evented.off("pluginStateChange",this._rtlTextPluginCallback);for(const t in this._layers)this._layers[t].setEventedParent(null);for(const t in this._sourceCaches)this._sourceCaches[t].clearTiles(),this._sourceCaches[t].setEventedParent(null);this.imageManager.setEventedParent(null),this.setEventedParent(null),this.dispatcher.remove()}_clearSource(t){const e=this._getSourceCaches(t);for(const t of e)t.clearTiles()}_reloadSource(t){const e=this._getSourceCaches(t);for(const t of e)t.resume(),t.reload()}_reloadSources(){for(const t of this._getSources())t.reload&&t.reload()}_updateSources(t){for(const e in this._sourceCaches)this._sourceCaches[e].update(t)}_generateCollisionBoxes(){for(const t in this._sourceCaches){const e=this._sourceCaches[t];e.resume(),e.reload()}}_updatePlacement(e,n,r,i,o=!1){let s=!1,a=!1;const c={};for(const t of this._order){const n=this._layers[t];if("symbol"!==n.type)continue;if(!c[n.source]){const t=this._getLayerSourceCache(n);if(!t)continue;c[n.source]=t.getRenderableIds(!0).map(e=>t.getTileByID(e)).sort((t,e)=>e.tileID.overscaledZ-t.tileID.overscaledZ||(t.tileID.isLessThan(e.tileID)?-1:1))}const r=this.crossTileSymbolIndex.addLayer(n,c[n.source],e.center.lng,e.projection);s=s||r}if(this.crossTileSymbolIndex.pruneUnusedLayers(this._order),o=o||this._layerOrderChanged||0===r,this._layerOrderChanged&&this.fire(new t.Event("neworder")),(o||!this.pauseablePlacement||this.pauseablePlacement.isDone()&&!this.placement.stillRecent(t.exported.now(),e.zoom))&&(this.pauseablePlacement=new Ne(e,this._order,o,n,r,i,this.placement,this.fog&&e.projection.supportsFog?this.fog.state:null),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,c),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(t.exported.now()),a=!0),s&&this.pauseablePlacement.placement.setStale()),a||s)for(const t of this._order){const e=this._layers[t];"symbol"===e.type&&this.placement.updateLayerOpacities(e,c[e.source])}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(t.exported.now())}_releaseSymbolFadeTiles(){for(const t in this._sourceCaches)this._sourceCaches[t].releaseSymbolFadeTiles()}getImages(t,e,n){this.imageManager.getImages(e.icons,n),this._updateTilesForChangedImages();const r=t=>{t&&t.setDependencies(e.tileID.key,e.type,e.icons)};r(this._otherSourceCaches[e.source]),r(this._symbolSourceCaches[e.source])}getGlyphs(t,e,n){this.glyphManager.getGlyphs(e.stacks,n)}getResource(e,n,r){return t.makeRequest(n,r)}_getSourceCache(t){return this._otherSourceCaches[t]}_getLayerSourceCache(t){return"symbol"===t.type?this._symbolSourceCaches[t.source]:this._otherSourceCaches[t.source]}_getSourceCaches(t){const e=[];return this._otherSourceCaches[t]&&e.push(this._otherSourceCaches[t]),this._symbolSourceCaches[t]&&e.push(this._symbolSourceCaches[t]),e}_isSourceCacheLoaded(e){const n=this._getSourceCaches(e);return 0===n.length?(this.fire(new t.ErrorEvent(new Error(`There is no source with ID '${e}'`))),!1):n.every(t=>t.loaded())}has3DLayers(){return this._num3DLayers>0}hasSymbolLayers(){return this._numSymbolLayers>0}hasCircleLayers(){return this._numCircleLayers>0}_clearWorkerCaches(){this.dispatcher.broadcast("clearCaches")}destroy(){this._clearWorkerCaches(),this.terrainSetForDrapingOnly()&&(delete this.terrain,delete this.stylesheet.terrain)}}$e.getSourceType=function(t){return Mt[t]},$e.setSourceType=function(t,e){Mt[t]=e},$e.registerForPluginStateChange=t.registerForPluginStateChange;var tn="\n#define EPSILON 0.0000001\n#define PI 3.141592653589793\n#define EXTENT 8192.0\n#define HALF_PI PI/2.0\n#define QUARTER_PI PI/4.0\n#define RAD_TO_DEG 180.0/PI\n#define DEG_TO_RAD PI/180.0\n#define GLOBE_RADIUS EXTENT/PI/2.0",en="attribute highp vec3 a_pos_3f;uniform lowp mat4 u_matrix;varying highp vec3 v_uv;
27void main() {const mat3 half_neg_pi_around_x=mat3(1.0,0.0, 0.0,0.0,0.0,-1.0,0.0,1.0, 0.0);v_uv=half_neg_pi_around_x*a_pos_3f;vec4 pos=u_matrix*vec4(a_pos_3f,1.0);gl_Position=pos.xyww;}",nn="\n#define ELEVATION_SCALE 7.0\n#define ELEVATION_OFFSET 450.0\n#ifdef PROJECTION_GLOBE_VIEW\nuniform vec3 u_tile_tl_up;uniform vec3 u_tile_tr_up;uniform vec3 u_tile_br_up;uniform vec3 u_tile_bl_up;uniform float u_tile_up_scale;vec3 elevationVector(vec2 pos) {vec2 uv=pos/EXTENT;vec3 up=normalize(mix(\nmix(u_tile_tl_up,u_tile_tr_up,uv.xxx),mix(u_tile_bl_up,u_tile_br_up,uv.xxx),uv.yyy));return up*u_tile_up_scale;}\n#else\nvec3 elevationVector(vec2 pos) { return vec3(0,0,1); }\n#endif\nconst float skirtOffset=24575.0;vec3 decomposeToPosAndSkirt(vec2 posWithComposedSkirt)\n{float skirt=float(posWithComposedSkirt.x >=skirtOffset);vec2 pos=posWithComposedSkirt-vec2(skirt*skirtOffset,0.0);return vec3(pos,skirt);}\n#ifdef TERRAIN\n#ifdef TERRAIN_DEM_FLOAT_FORMAT\nuniform highp sampler2D u_dem;uniform highp sampler2D u_dem_prev;\n#else\nuniform sampler2D u_dem;uniform sampler2D u_dem_prev;\n#endif\nuniform vec4 u_dem_unpack;uniform vec2 u_dem_tl;uniform vec2 u_dem_tl_prev;uniform float u_dem_scale;uniform float u_dem_scale_prev;uniform float u_dem_size;uniform float u_dem_lerp;uniform float u_exaggeration;uniform float u_meter_to_dem;uniform mat4 u_label_plane_matrix_inv;uniform sampler2D u_depth;uniform vec2 u_depth_size_inv;vec4 tileUvToDemSample(vec2 uv,float dem_size,float dem_scale,vec2 dem_tl) {vec2 pos=dem_size*(uv*dem_scale+dem_tl)+1.0;vec2 f=fract(pos);return vec4((pos-f+0.5)/(dem_size+2.0),f);}float decodeElevation(vec4 v) {return dot(vec4(v.xyz*255.0,-1.0),u_dem_unpack);}float currentElevation(vec2 apos) {\n#ifdef TERRAIN_DEM_FLOAT_FORMAT\nvec2 pos=(u_dem_size*(apos/8192.0*u_dem_scale+u_dem_tl)+1.5)/(u_dem_size+2.0);return u_exaggeration*texture2D(u_dem,pos).a;\n#else\nfloat dd=1.0/(u_dem_size+2.0);vec4 r=tileUvToDemSample(apos/8192.0,u_dem_size,u_dem_scale,u_dem_tl);vec2 pos=r.xy;vec2 f=r.zw;float tl=decodeElevation(texture2D(u_dem,pos));\n#ifdef TERRAIN_DEM_NEAREST_FILTER\nreturn u_exaggeration*tl;\n#endif\nfloat tr=decodeElevation(texture2D(u_dem,pos+vec2(dd,0.0)));float bl=decodeElevation(texture2D(u_dem,pos+vec2(0.0,dd)));float br=decodeElevation(texture2D(u_dem,pos+vec2(dd,dd)));return u_exaggeration*mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y);\n#endif\n}float prevElevation(vec2 apos) {\n#ifdef TERRAIN_DEM_FLOAT_FORMAT\nvec2 pos=(u_dem_size*(apos/8192.0*u_dem_scale_prev+u_dem_tl_prev)+1.5)/(u_dem_size+2.0);return u_exaggeration*texture2D(u_dem_prev,pos).a;\n#else\nfloat dd=1.0/(u_dem_size+2.0);vec4 r=tileUvToDemSample(apos/8192.0,u_dem_size,u_dem_scale_prev,u_dem_tl_prev);vec2 pos=r.xy;vec2 f=r.zw;float tl=decodeElevation(texture2D(u_dem_prev,pos));float tr=decodeElevation(texture2D(u_dem_prev,pos+vec2(dd,0.0)));float bl=decodeElevation(texture2D(u_dem_prev,pos+vec2(0.0,dd)));float br=decodeElevation(texture2D(u_dem_prev,pos+vec2(dd,dd)));return u_exaggeration*mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y);\n#endif\n}\n#ifdef TERRAIN_VERTEX_MORPHING\nfloat elevation(vec2 apos) {\n#ifdef ZERO_EXAGGERATION\nreturn 0.0;\n#endif\nfloat nextElevation=currentElevation(apos);float prevElevation=prevElevation(apos);return mix(prevElevation,nextElevation,u_dem_lerp);}\n#else\nfloat elevation(vec2 apos) {\n#ifdef ZERO_EXAGGERATION\nreturn 0.0;\n#endif\nreturn currentElevation(apos);}\n#endif\nhighp float unpack_depth(highp vec4 rgba_depth)\n{const highp vec4 bit_shift=vec4(1.0/(255.0*255.0*255.0),1.0/(255.0*255.0),1.0/255.0,1.0);return dot(rgba_depth,bit_shift)*2.0-1.0;}bool isOccluded(vec4 frag) {vec3 coord=frag.xyz/frag.w;float depth=unpack_depth(texture2D(u_depth,(coord.xy+1.0)*0.5));return coord.z > depth+0.0005;}float occlusionFade(vec4 frag) {vec3 coord=frag.xyz/frag.w;vec3 df=vec3(5.0*u_depth_size_inv,0.0);vec2 uv=0.5*coord.xy+0.5;vec4 depth=vec4(\nunpack_depth(texture2D(u_depth,uv-df.xz)),unpack_depth(texture2D(u_depth,uv+df.xz)),unpack_depth(texture2D(u_depth,uv-df.zy)),unpack_depth(texture2D(u_depth,uv+df.zy))\n);return dot(vec4(0.25),vec4(1.0)-clamp(300.0*(vec4(coord.z-0.001)-depth),0.0,1.0));}vec4 fourSample(vec2 pos,vec2 off) {\n#ifdef TERRAIN_DEM_FLOAT_FORMAT\nfloat tl=texture2D(u_dem,pos).a;float tr=texture2D(u_dem,pos+vec2(off.x,0.0)).a;float bl=texture2D(u_dem,pos+vec2(0.0,off.y)).a;float br=texture2D(u_dem,pos+off).a;\n#else\nvec4 demtl=vec4(texture2D(u_dem,pos).xyz*255.0,-1.0);float tl=dot(demtl,u_dem_unpack);
27vec4 demtr=vec4(texture2D(u_dem,pos+vec2(off.x,0.0)).xyz*255.0,-1.0);float tr=dot(demtr,u_dem_unpack);vec4 dembl=vec4(texture2D(u_dem,pos+vec2(0.0,off.y)).xyz*255.0,-1.0);float bl=dot(dembl,u_dem_unpack);vec4 dembr=vec4(texture2D(u_dem,pos+off).xyz*255.0,-1.0);float br=dot(dembr,u_dem_unpack);\n#endif\nreturn vec4(tl,tr,bl,br);}float flatElevation(vec2 pack) {vec2 apos=floor(pack/8.0);vec2 span=10.0*(pack-apos*8.0);vec2 uvTex=(apos-vec2(1.0,1.0))/8190.0;float size=u_dem_size+2.0;float dd=1.0/size;vec2 pos=u_dem_size*(uvTex*u_dem_scale+u_dem_tl)+1.0;vec2 f=fract(pos);pos=(pos-f+0.5)*dd;vec4 h=fourSample(pos,vec2(dd));float z=mix(mix(h.x,h.y,f.x),mix(h.z,h.w,f.x),f.y);vec2 w=floor(0.5*(span*u_meter_to_dem-1.0));vec2 d=dd*w;h=fourSample(pos-d,2.0*d+vec2(dd));vec4 diff=abs(h.xzxy-h.ywzw);vec2 slope=min(vec2(0.25),u_meter_to_dem*0.5*(diff.xz+diff.yw)/(2.0*w+vec2(1.0)));vec2 fix=slope*span;float base=z+max(fix.x,fix.y);return u_exaggeration*base;}float elevationFromUint16(float word) {return u_exaggeration*(word/ELEVATION_SCALE-ELEVATION_OFFSET);}\n#else\nfloat elevation(vec2 pos) { return 0.0; }bool isOccluded(vec4 frag) { return false; }float occlusionFade(vec4 frag) { return 1.0; }\n#endif",rn="#ifdef FOG\nuniform mediump vec4 u_fog_color;uniform mediump vec2 u_fog_range;uniform mediump float u_fog_horizon_blend;uniform mediump mat4 u_fog_matrix;varying vec3 v_fog_pos;float fog_range(float depth) {return (depth-u_fog_range[0])/(u_fog_range[1]-u_fog_range[0]);}float fog_horizon_blending(vec3 camera_dir) {float t=max(0.0,camera_dir.z/u_fog_horizon_blend);return u_fog_color.a*exp(-3.0*t*t);}float fog_opacity(float t) {const float decay=6.0;float falloff=1.0-min(1.0,exp(-decay*t));falloff*=falloff*falloff;return u_fog_color.a*min(1.0,1.00747*falloff);}vec3 fog_position(vec3 pos) {return (u_fog_matrix*vec4(pos,1.0)).xyz;}vec3 fog_position(vec2 pos) {return fog_position(vec3(pos,0.0));}float fog(vec3 pos) {float depth=length(pos);float opacity=fog_opacity(fog_range(depth));return opacity*fog_horizon_blending(pos/depth);}\n#endif",on="#ifdef FOG\nuniform mediump vec4 u_fog_color;uniform mediump vec2 u_fog_range;uniform mediump float u_fog_horizon_blend;uniform mediump float u_fog_temporal_offset;varying vec3 v_fog_pos;uniform highp vec3 u_frustum_tl;uniform highp vec3 u_frustum_tr;uniform highp vec3 u_frustum_br;uniform highp vec3 u_frustum_bl;uniform highp vec3 u_globe_pos;uniform highp float u_globe_radius;uniform highp vec2 u_viewport;uniform float u_globe_transition;uniform int u_is_globe;float fog_range(float depth) {return (depth-u_fog_range[0])/(u_fog_range[1]-u_fog_range[0]);}float fog_horizon_blending(vec3 camera_dir) {float t=max(0.0,camera_dir.z/u_fog_horizon_blend);return u_fog_color.a*exp(-3.0*t*t);}float fog_opacity(float t) {const float decay=6.0;float falloff=1.0-min(1.0,exp(-decay*t));falloff*=falloff*falloff;return u_fog_color.a*min(1.0,1.00747*falloff);}float globe_glow_progress() {highp vec2 uv=gl_FragCoord.xy/u_viewport;highp vec3 ray_dir=mix(\nmix(u_frustum_tl,u_frustum_tr,uv.x),mix(u_frustum_bl,u_frustum_br,uv.x),1.0-uv.y);highp vec3 dir=normalize(ray_dir);highp vec3 closest_point=dot(u_globe_pos,dir)*dir;highp float sdf=length(closest_point-u_globe_pos)/u_globe_radius;return sdf+PI*0.5;}float fog_opacity(vec3 pos) {float depth=length(pos);return fog_opacity(fog_range(depth));}vec3 fog_apply(vec3 color,vec3 pos) {float depth=length(pos);float opacity;if (u_is_globe==1) {float glow_progress=globe_glow_progress();float t=mix(glow_progress,depth,u_globe_transition);opacity=fog_opacity(fog_range(t));} else {opacity=fog_opacity(fog_range(depth));opacity*=fog_horizon_blending(pos/depth);}return mix(color,u_fog_color.rgb,opacity);}vec4 fog_apply_from_vert(vec4 color,float fog_opac) {float alpha=EPSILON+color.a;color.rgb=mix(color.rgb/alpha,u_fog_color.rgb,fog_opac)*alpha;return color;}vec3 fog_apply_sky_gradient(vec3 camera_ray,vec3 sky_color) {float horizon_blend=fog_horizon_blending(normalize(camera_ray));return mix(sky_color,u_fog_color.rgb,horizon_blend);}vec4 fog_apply_premultiplied(vec4 color,vec3 pos) {float alpha=EPSILON+color.a;color.rgb=fog_apply(color.rgb/alpha,pos)*alpha;return color;}vec3 fog_dither(vec3 color) {vec2 dither_seed=gl_FragCoord.xy+u_fog_temporal_offset;return dither(color,dither_seed);}vec4 fog_dither(vec4 color) {return vec4(fog_dither(color.rgb),color.a);}\n#endif";let sn={},an={};const cn=[];dn(tn,cn),dn(nn,cn),dn(rn,cn),dn(on,cn),sn=pn("",nn),an=pn(on,rn);const ln=pn("\n#if __VERSION__ >=300\n#define varying in\n#define gl_FragColor glFragColor\n#define texture2D texture\n#define textureCube texture\nout vec4 glFragColor;\n#endif\nhighp vec3 hash(highp vec2 p) {highp vec3 p3=fract(p.xyx*vec3(443.8975,397.2973,491.1871));p3+=dot(p3,p3.yxz+19.19);return fract((p3.xxy+p3.yzz)*p3.zyx);}
27vec3 dither(vec3 color,highp vec2 seed) {vec3 rnd=hash(seed)+hash(seed+0.59374)-0.5;return color+rnd/255.0;}highp float unpack_depth(highp vec4 rgba_depth)\n{const highp vec4 bit_shift=vec4(1.0/(255.0*255.0*255.0),1.0/(255.0*255.0),1.0/255.0,1.0);return dot(rgba_depth,bit_shift)*2.0-1.0;}highp vec4 pack_depth(highp float ndc_z) {highp float depth=ndc_z*0.5+0.5;const highp vec4 bit_shift=vec4(255.0*255.0*255.0,255.0*255.0,255.0,1.0);const highp vec4 bit_mask =vec4(0.0,1.0/255.0,1.0/255.0,1.0/255.0);highp vec4 res=fract(depth*bit_shift);res-=res.xxyz*bit_mask;return res;}","\n#if __VERSION__ >=300\n#define attribute in\n#define varying out\n#define texture2D texture\n#endif\nfloat wrap(float n,float min,float max) {float d=max-min;float w=mod(mod(n-min,d)+d,d)+min;return (w==min) ? max : w;}\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 mercator_tile_position(mat4 matrix,vec2 tile_anchor,vec3 tile_id,vec2 mercator_center) {\n#ifndef PROJECTED_POS_ON_VIEWPORT\nfloat tiles=tile_id.z;vec2 mercator=(tile_anchor/EXTENT+tile_id.xy)/tiles;mercator-=mercator_center;mercator.x=wrap(mercator.x,-0.5,0.5);vec4 mercator_tile=vec4(mercator.xy*EXTENT,EXTENT/(2.0*PI),1.0);mercator_tile=matrix*mercator_tile;return mercator_tile.xyz;\n#else\nreturn vec3(0.0);\n#endif\n}vec3 mix_globe_mercator(vec3 globe,vec3 mercator,float t) {return mix(globe,mercator,t);}mat3 globe_mercator_surface_vectors(vec3 pos_normal,vec3 up_dir,float zoom_transition) {vec3 normal=zoom_transition==0.0 ? pos_normal : normalize(mix(pos_normal,up_dir,zoom_transition));vec3 xAxis=normalize(vec3(normal.z,0.0,-normal.x));vec3 yAxis=normalize(cross(normal,xAxis));return mat3(xAxis,yAxis,normal);}\n#endif\nvec2 unpack_float(const float packedValue) {int packedIntValue=int(packedValue);int v0=packedIntValue/256;return vec2(v0,packedIntValue-v0*256);}vec2 unpack_opacity(const float packedOpacity) {int intOpacity=int(packedOpacity)/2;return vec2(float(intOpacity)/127.0,mod(packedOpacity,2.0));}vec4 decode_color(const vec2 encodedColor) {return vec4(\nunpack_float(encodedColor[0])/255.0,unpack_float(encodedColor[1])/255.0\n);}float unpack_mix_vec2(const vec2 packedValue,const float t) {return mix(packedValue[0],packedValue[1],t);}vec4 unpack_mix_color(const vec4 packedColors,const float t) {vec4 minColor=decode_color(vec2(packedColors[0],packedColors[1]));vec4 maxColor=decode_color(vec2(packedColors[2],packedColors[3]));return mix(minColor,maxColor,t);}vec2 get_pattern_pos(const vec2 pixel_coord_upper,const vec2 pixel_coord_lower,const vec2 pattern_size,const float tile_units_to_pixels,const vec2 pos) {vec2 offset=mod(mod(mod(pixel_coord_upper,pattern_size)*256.0,pattern_size)*256.0+pixel_coord_lower,pattern_size);return (tile_units_to_pixels*pos+offset)/pattern_size;}const vec4 AWAY=vec4(-1000.0,-1000.0,-1000.0,1);//Normalized device coordinate that is not rendered."),un=tn,hn="\n#ifdef GL_ES\nprecision mediump float;\n#else\n\n#if !defined(lowp)\n#define lowp\n#endif\n\n#if !defined(mediump)\n#define mediump\n#endif\n\n#if !defined(highp)\n#define highp\n#endif\n\n#endif";var fn={background:pn("uniform vec4 u_color;uniform float u_opacity;\n#ifdef LIGHTING_3D_MODE\nvarying vec4 v_color;\n#endif\nvoid main() {vec4 out_color;\n#ifdef LIGHTING_3D_MODE\nout_color=v_color;\n#else\nout_color=u_color;\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;\n#ifdef LIGHTING_3D_MODE\nuniform vec4 u_color;varying vec4 v_color;\n#endif\nvoid main() {gl_Position=u_matrix*vec4(a_pos,0,1);\n#ifdef LIGHTING_3D_MODE\nv_color=apply_lighting(u_color);\n#endif\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),backgroundPattern:pn("uniform vec2 u_pattern_tl;uniform vec2 u_pattern_br;uniform vec2 u_texsize;uniform float u_opacity;uniform sampler2D u_image;varying vec2 v_pos;void main() {vec2 imagecoord=mod(v_pos,1.0);vec2 pos=mix(u_pattern_tl/u_texsize,u_pattern_br/u_texsize,imagecoord);vec4 out_color=texture2D(u_image,pos);\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting(out_color);\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pattern_size;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_tile_units_to_pixels;attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_pattern_size,u_tile_units_to_pixels,a_pos);\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),circle:pn("varying vec3 v_data;varying float v_visibility;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=v_data.xy;float extrude_length=length(extrude);lowp float antialiasblur=v_data.z;float antialiased_blur=-max(blur,antialiasblur);float opacity_t=smoothstep(0.0,antialiased_blur,extrude_length-1.0);float color_t=stroke_width < 0.01 ? 0.0 : smoothstep(\nantialiased_blur,0.0,extrude_length-radius
27/(radius+stroke_width)\n);vec4 out_color=mix(color*opacity,stroke_color*stroke_opacity,color_t);\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting(out_color);\n#endif\n#ifdef FOG\nout_color=fog_apply_premultiplied(out_color,v_fog_pos);\n#endif\ngl_FragColor=out_color*(v_visibility*opacity_t);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","#define NUM_VISIBILITY_RINGS 2\n#define INV_SQRT2 0.70710678\n#define ELEVATION_BIAS 0.0001\n#define NUM_SAMPLES_PER_RING 16\nuniform mat4 u_matrix;uniform mat2 u_extrude_scale;uniform lowp float u_device_pixel_ratio;uniform highp float u_camera_to_center_distance;attribute vec2 a_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_pos_3;attribute vec3 a_pos_normal_3;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;uniform vec3 u_up_dir;\n#endif\nvarying vec3 v_data;varying float v_visibility;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvec2 calc_offset(vec2 extrusion,float radius,float stroke_width, float view_scale) {return extrusion*(radius+stroke_width)*u_extrude_scale*view_scale;}float cantilevered_elevation(vec2 pos,float radius,float stroke_width,float view_scale) {vec2 c1=pos+calc_offset(vec2(-1,-1),radius,stroke_width,view_scale);vec2 c2=pos+calc_offset(vec2(1,-1),radius,stroke_width,view_scale);vec2 c3=pos+calc_offset(vec2(1,1),radius,stroke_width,view_scale);vec2 c4=pos+calc_offset(vec2(-1,1),radius,stroke_width,view_scale);float h1=elevation(c1)+ELEVATION_BIAS;float h2=elevation(c2)+ELEVATION_BIAS;float h3=elevation(c3)+ELEVATION_BIAS;float h4=elevation(c4)+ELEVATION_BIAS;return max(h4,max(h3,max(h1,h2)));}float circle_elevation(vec2 pos) {\n#if defined(TERRAIN)\nreturn elevation(pos)+ELEVATION_BIAS;\n#else\nreturn 0.0;\n#endif\n}vec4 project_vertex(vec2 extrusion,vec4 world_center,vec4 projected_center,float radius,float stroke_width, float view_scale,mat3 surface_vectors) {vec2 sample_offset=calc_offset(extrusion,radius,stroke_width,view_scale);\n#ifdef PITCH_WITH_MAP\n#ifdef PROJECTION_GLOBE_VIEW\nreturn u_matrix*( world_center+vec4(sample_offset.x*surface_vectors[0]+sample_offset.y*surface_vectors[1],0) );\n#else\nreturn u_matrix*( world_center+vec4(sample_offset,0,0) );\n#endif\n#else\nreturn projected_center+vec4(sample_offset,0,0);\n#endif\n}float get_sample_step() {\n#ifdef PITCH_WITH_MAP\nreturn 2.0*PI/float(NUM_SAMPLES_PER_RING);\n#else\nreturn PI/float(NUM_SAMPLES_PER_RING);\n#endif\n}void main(void) {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=vec2(mod(a_pos,2.0)*2.0-1.0);vec2 circle_center=floor(a_pos*0.5);vec4 world_center;mat3 surface_vectors;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 pos_normal_3=a_pos_normal_3/16384.0;surface_vectors=globe_mercator_surface_vectors(pos_normal_3,u_up_dir,u_zoom_transition);vec3 surface_extrusion=extrude.x*surface_vectors[0]+extrude.y*surface_vectors[1];vec3 globe_elevation=elevationVector(circle_center)*circle_elevation(circle_center);vec3 globe_pos=a_pos_3+surface_extrusion+globe_elevation;vec3 mercator_elevation=u_up_dir*u_tile_up_scale*circle_elevation(circle_center);vec3 merc_pos=mercator_tile_position(u_inv_rot_matrix,circle_center,u_tile_id,u_merc_center)+surface_extrusion+mercator_elevation;vec3 pos=mix_globe_mercator(globe_pos,merc_pos,u_zoom_transition);world_center=vec4(pos,1);\n#else \nsurface_vectors=mat3(1.0);float height=circle_elevation(circle_center);world_center=vec4(circle_center,height,1);\n#endif\nvec4 projected_center=u_matrix*world_center;float view_scale=0.0;\n#ifdef PITCH_WITH_MAP\n#ifdef SCALE_WITH_MAP\nview_scale=1.0;\n#else\nview_scale=projected_center.w/u_camera_to_center_distance;\n#endif\n#else\n#ifdef SCALE_WITH_MAP\nview_scale=u_camera_to_center_distance;\n#else\nview_scale=projected_center.w;\n#endif\n#endif\ngl_Position=project_vertex(extrude,world_center,projected_center,radiu
27s,stroke_width,view_scale,surface_vectors);float visibility=0.0;\n#ifdef TERRAIN\nfloat step=get_sample_step();vec4 occlusion_world_center;vec4 occlusion_projected_center;\n#ifdef PITCH_WITH_MAP\nfloat cantilevered_height=cantilevered_elevation(circle_center,radius,stroke_width,view_scale);occlusion_world_center=vec4(circle_center,cantilevered_height,1);occlusion_projected_center=u_matrix*occlusion_world_center;\n#else\nocclusion_world_center=world_center;occlusion_projected_center=projected_center;\n#endif\nfor(int ring=0; ring < NUM_VISIBILITY_RINGS; ring++) {float scale=(float(ring)+1.0)/float(NUM_VISIBILITY_RINGS);for(int i=0; i < NUM_SAMPLES_PER_RING; i++) {vec2 extrusion=vec2(cos(step*float(i)),-sin(step*float(i)))*scale;vec4 frag_pos=project_vertex(extrusion,occlusion_world_center,occlusion_projected_center,radius,stroke_width,view_scale,surface_vectors);visibility+=float(!isOccluded(frag_pos));}}visibility/=float(NUM_VISIBILITY_RINGS)*float(NUM_SAMPLES_PER_RING);\n#else\nvisibility=1.0;\n#endif\n#ifdef PROJECTION_GLOBE_VIEW\nvisibility=1.0;\n#endif\nv_visibility=visibility;lowp float antialiasblur=1.0/u_device_pixel_ratio/(radius+stroke_width);v_data=vec3(extrude.x,extrude.y,antialiasblur);\n#ifdef FOG\nv_fog_pos=fog_position(world_center.xyz);\n#endif\n}"),clippingMask:pn("void main() {gl_FragColor=vec4(1.0);}","attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),heatmap:pn("uniform highp float u_intensity;varying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#define GAUSS_COEF 0.3989422804014327\nvoid main() {\n#pragma mapbox: initialize highp float weight\nfloat d=-0.5*3.0*3.0*dot(v_extrude,v_extrude);float val=weight*u_intensity*GAUSS_COEF*exp(d);gl_FragColor=vec4(val,1.0,1.0,1.0);\n#ifdef FOG\nif (u_is_globe==0) {gl_FragColor.r*=pow(1.0-fog_opacity(v_fog_pos),2.0);}\n#endif\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform float u_extrude_scale;uniform float u_opacity;uniform float u_intensity;attribute vec2 a_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_pos_3;attribute vec3 a_pos_normal_3;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;uniform vec3 u_up_dir;\n#endif\nvarying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#pragma mapbox: define mediump float radius\nconst highp float ZERO=1.0/255.0/16.0;\n#define GAUSS_COEF 0.3989422804014327\nvoid main(void) {\n#pragma mapbox: initialize highp float weight\n#pragma mapbox: initialize mediump float radius\nvec2 unscaled_extrude=vec2(mod(a_pos,2.0)*2.0-1.0);float S=sqrt(-2.0*log(ZERO/weight/u_intensity/GAUSS_COEF))/3.0;v_extrude=S*unscaled_extrude;vec2 extrude=v_extrude*radius*u_extrude_scale;vec2 tilePos=floor(a_pos*0.5);vec3 pos;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 pos_normal_3=a_pos_normal_3/16384.0;mat3 surface_vectors=globe_mercator_surface_vectors(pos_normal_3,u_up_dir,u_zoom_transition);vec3 surface_extrusion=extrude.x*surface_vectors[0]+extrude.y*surface_vectors[1];vec3 globe_elevation=elevationVector(tilePos)*elevation(tilePos);vec3 globe_pos=a_pos_3+surface_extrusion+globe_elevation;vec3 mercator_elevation=u_up_dir*u_tile_up_scale*elevation(tilePos);vec3 merc_pos=mercator_tile_position(u_inv_rot_matrix,tilePos,u_tile_id,u_merc_center)+surface_extrusion+mercator_elevation;pos=mix_globe_mercator(globe_pos,merc_pos,u_zoom_transition);\n#else\npos=vec3(tilePos+extrude,elevation(tilePos));\n#endif\ngl_Position=u_matrix*vec4(pos,1);\n#ifdef FOG\nv_fog_pos=fog_position(pos);\n#endif\n}"),heatmapTexture:pn("uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;varying vec2 v_pos;void main() {float t=texture2D(u_image,v_pos).r;vec4 color=texture2D(u_color_ramp,vec2(t,0.5));gl_FragColor=color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(0.0);\n#endif\n}","attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=vec4(a_pos,0,1);v_pos=a_pos*0.5+0.5;}"),collisionBox:pn("varying float v_placed;varying float v_notUsed;void main() {vec4 red =vec4(1.0,0.0,0.0,1.0);vec4 blue=vec4(0.0,0.0,1.0,0.5);gl_FragColor =mix(red,blue,step(0.5,v_placed))*0.5;gl_FragColor*=mix(1.0,0.1,step(0.5,v_notUsed));}","attribute vec3 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;attribute vec2 a_shift;attribute float a_size_scale;attribute vec2 a_padding;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;void main() {vec4 projectedPoint=u_matrix*vec4(a_pos+elevationVector(a_anchor_pos)*elevation(a_anchor_pos),1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(\n0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,1.5);gl_Position=projectedPoint;gl_Position.xy+=(a_extrude*a_size_scale+a_shift+a_padding)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}"),collisionCircle:pn("varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}","attribute vec2 a_pos_2f;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos_2f;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(\nmix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(\n0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}"),debug:pn("uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}","attribute vec2 a_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_pos_3;\n#endif\nvarying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {float h=elevation(a_pos);v_uv=a_pos/8192.0;\n#ifdef PROJECTION_GLOBE_VIEW\ngl_Position=u_matrix*vec4(a_pos_3+elevationVector(a_pos)*h,1
27);\n#else\ngl_Position=u_matrix*vec4(a_pos*u_overlay_scale,h,1);\n#endif\n}"),fill:pn("#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\nvec4 out_color=color;\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting(out_color);\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),fillOutline:pn("varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);vec4 out_color=outline_color;\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting(out_color);\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;uniform vec2 u_world;varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),fillOutlinePattern:pn("uniform vec2 u_texsize;uniform sampler2D u_image;varying vec2 v_pos;varying vec2 v_pos_world;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern\nvec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;vec2 imagecoord=mod(v_pos,1.0);vec2 pos=mix(pattern_tl/u_texsize,pattern_br/u_texsize,imagecoord);float dist=length(v_pos_world-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);vec4 out_color=texture2D(u_image,pos);\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting(out_color);\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_tile_units_to_pixels;attribute vec2 a_pos;varying vec2 v_pos;varying vec2 v_pos_world;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern\n#pragma mapbox: define lowp float pixel_ratio\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern\n#pragma mapbox: initialize lowp float pixel_ratio\nvec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size=(pattern_br-pattern_tl)/pixel_ratio;v_pos=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,display_size,u_tile_units_to_pixels,a_pos);v_pos_world=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),fillPattern:pn("uniform vec2 u_texsize;uniform sampler2D u_image;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern\nvec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;vec2 imagecoord=mod(v_pos,1.0);vec2 pos=mix(pattern_tl/u_texsize,pattern_br/u_texsize,imagecoord);vec4 out_color=texture2D(u_image,pos);\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting(out_color);\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_tile_units_to_pixels;attribute vec2 a_pos;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern\n#pragma mapbox: define lowp float pixel_ratio\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern\n#pragma mapbox: initialize lowp float pixel_ratio\nvec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;vec2 display_size=(pattern_br-pattern_tl)/pixel_ratio;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,display_size,u_tile_units_to_pixels,a_pos);\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),fillExtrusion:pn("varying vec4 v_color;\n#ifdef RENDER_SHADOWS\nvarying highp vec4 v_pos_light_view_0;varying highp vec4 v_pos_light_view_1;varying float v_depth;\n#endif\n#ifdef FAUX_AO\nuniform lowp vec2 u_ao;varying vec3 v_ao;\n#endif\n#ifdef ZERO_ROOF_RADIUS\nvarying vec4 v_roof_color;\n#endif\n#if defined(ZERO_ROOF_RADIUS) || defined(RENDER_SHADOWS)\nvarying highp vec3 v_normal;\n#endif\nvoid main() {\n#if defined(ZERO_ROOF_RADIUS) || defined(RENDER_SHADOWS)\nvec3 normal=v_normal;\n#endif\nfloat z;vec4 color;\n#ifdef ZERO_ROOF_RADIUS\nz=float(normal.z > 0.00001);color=mix(v_color,v_roof_color,z);\n#else\ncolor=v_color;\n#endif\n#ifdef FAUX_AO\nfloat intensity=u_ao[0];float h=max(0.0,v_ao.z);float h_floors=h/u_ao[1];float y_shade=1.0-0.9*intensity*min(v_ao.y,1.0);float shade=(1.0-0.08*intensity)*(y_shade+(1.0-y_shade)*(1.0-pow(1.0-min(h_floors/16.0,1.0
27),16.0)))+0.08*intensity*min(h_floors/160.0,1.0);float concave=v_ao.x*v_ao.x;\n#ifdef ZERO_ROOF_RADIUS\nconcave*=(1.0-z);\n#endif\nfloat x_shade=mix(1.0,mix(0.6,0.75,min(h_floors/30.0,1.0)),intensity)+0.1*intensity*min(h,1.0);shade*=mix(1.0,x_shade*x_shade*x_shade,concave);color.rgb=color.rgb*shade;\n#endif\n#ifdef RENDER_SHADOWS\n#ifdef ZERO_ROOF_RADIUS\nnormal=mix(normal,vec3(0.0,0.0,1.0),z);\n#endif\ncolor.xyz=shadowed_color_normal(color.xyz,normalize(normal),v_pos_light_view_0,v_pos_light_view_1,v_depth);\n#endif\n#ifdef FOG\ncolor=fog_dither(fog_apply_premultiplied(color,v_fog_pos));\n#endif\ngl_FragColor=color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform float u_edge_radius;attribute vec4 a_pos_normal_ed;attribute vec2 a_centroid_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_pos_3;attribute vec3 a_pos_normal_3;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;uniform vec3 u_up_dir;uniform float u_height_lift;\n#endif\nvarying vec4 v_color;\n#ifdef RENDER_SHADOWS\nuniform mat4 u_light_matrix_0;uniform mat4 u_light_matrix_1;varying highp vec4 v_pos_light_view_0;varying highp vec4 v_pos_light_view_1;varying float v_depth;\n#endif\n#ifdef ZERO_ROOF_RADIUS\nvarying vec4 v_roof_color;\n#endif\n#if defined(ZERO_ROOF_RADIUS) || defined(RENDER_SHADOWS)\nvarying highp vec3 v_normal;\n#endif\n#ifdef FAUX_AO\nuniform lowp vec2 u_ao;varying vec3 v_ao;\n#endif\n#pragma mapbox: define highp float base\n#pragma mapbox: define highp float height\n#pragma mapbox: define highp vec4 color\nvoid main() {\n#pragma mapbox: initialize highp float base\n#pragma mapbox: initialize highp float height\n#pragma mapbox: initialize highp vec4 color\nvec4 pos_nx=floor(a_pos_normal_ed*0.5);vec4 top_up_ny_start=a_pos_normal_ed-2.0*pos_nx;vec3 top_up_ny=top_up_ny_start.xyz;float x_normal=pos_nx.z/8192.0;vec3 normal=top_up_ny.y==1.0 ? vec3(0.0,0.0,1.0) : normalize(vec3(x_normal,(2.0*top_up_ny.z-1.0)*(1.0-abs(x_normal)),0.0));\n#if defined(ZERO_ROOF_RADIUS) || defined(RENDER_SHADOWS)\nv_normal=normal;\n#endif\nbase=max(0.0,base);height=max(0.0,top_up_ny.y==0.0 && top_up_ny.x==1.0 ? height-u_edge_radius : height);float t=top_up_ny.x;vec2 centroid_pos=vec2(0.0);\n#if defined(HAS_CENTROID) || defined(TERRAIN)\ncentroid_pos=a_centroid_pos;\n#endif\nfloat ele=0.0;float h=0.0;float c_ele;vec3 pos;\n#ifdef TERRAIN\nbool flat_roof=centroid_pos.x !=0.0 && t > 0.0;ele=elevation(pos_nx.xy);c_ele=flat_roof ? centroid_pos.y==0.0 ? elevationFromUint16(centroid_pos.x) : flatElevation(centroid_pos) : ele;h=flat_roof ? max(c_ele+height,ele+base+2.0) : ele+(t > 0.0 ? height : base==0.0 ?-5.0 : base);pos=vec3(pos_nx.xy,h);\n#else\nh=t > 0.0 ? height : base;pos=vec3(pos_nx.xy,h);\n#endif\n#ifdef PROJECTION_GLOBE_VIEW\nfloat lift=float((t+base) > 0.0)*u_height_lift;h+=lift;vec3 globe_normal=normalize(mix(a_pos_normal_3/16384.0,u_up_dir,u_zoom_transition));vec3 globe_pos=a_pos_3+globe_normal*(u_tile_up_scale*h);vec3 merc_pos=mercator_tile_position(u_inv_rot_matrix,pos.xy,u_tile_id,u_merc_center)+u_up_dir*u_tile_up_scale*pos.z;pos=mix_globe_mercator(globe_pos,merc_pos,u_zoom_transition);\n#endif\nfloat hidden=float(centroid_pos.x==0.0 && centroid_pos.y==1.0);gl_Position=mix(u_matrix*vec4(pos,1),AWAY,hidden);\n#ifdef RENDER_SHADOWS\nv_pos_light_view_0=u_light_matrix_0*vec4(pos,1);v_pos_light_view_1=u_light_matrix_1*vec4(pos,1);v_depth=gl_Position.w;\n#endif\nfloat NdotL=0.0;float colorvalue=0.0;\n#ifdef LIGHTING_3D_MODE\nNdotL=calculate_NdotL(normal);\n#else\ncolorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;NdotL=clamp(dot(normal,u_lightpos),0.0,1.0);NdotL=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),NdotL);\n#endif\nif (normal.y !=0.0) {float r=0.84;\n#ifndef LIGHTING_3D_MODE\nr=mix(0.7,0.98,1.0-u_lightintensity);
27\n#endif\nNdotL*=(\n(1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),r,1.0)));}v_color=vec4(0.0,0.0,0.0,1.0);\n#ifdef FAUX_AO\nfloat concave=pos_nx.w-floor(pos_nx.w*0.5)*2.0;float start=top_up_ny_start.w;float y_ground=1.0-clamp(t+base,0.0,1.0);float top_height=height;\n#ifdef TERRAIN\ntop_height=mix(max(c_ele+height,ele+base+2.0),ele+height,float(centroid_pos.x==0.0))-ele;y_ground+=y_ground*5.0/max(3.0,top_height);\n#endif\nv_ao=vec3(mix(concave,-concave,start),y_ground,h-ele);NdotL*=(1.0+0.05*(1.0-top_up_ny.y)*u_ao[0]);\n#ifdef PROJECTION_GLOBE_VIEW\ntop_height+=u_height_lift;\n#endif\ngl_Position.z-=(0.0000006*(min(top_height,500.)+2.0*min(base,500.0)+60.0*concave+3.0*start))*gl_Position.w;\n#endif\n#ifdef LIGHTING_3D_MODE\nv_color=apply_lighting(color,NdotL);\n#else\nv_color.rgb+=clamp(color.rgb*NdotL*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));\n#endif\nv_color*=u_opacity;\n#ifdef ZERO_ROOF_RADIUS\nv_roof_color=vec4(0.0,0.0,0.0,1.0);\n#ifdef LIGHTING_3D_MODE\nv_roof_color=apply_lighting(color,calculate_NdotL(vec3(0.0,0.0,1.0)));\n#else\nfloat roofNdotL=clamp(u_lightpos.z,0.0,1.0);roofNdotL=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),roofNdotL);v_roof_color.rgb+=clamp(color.rgb*roofNdotL*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));\n#endif\nv_roof_color*=u_opacity;\n#endif\n#ifdef FOG\nv_fog_pos=fog_position(pos);\n#endif\n}"),fillExtrusionPattern:pn("uniform vec2 u_texsize;uniform sampler2D u_image;\n#ifdef FAUX_AO\nuniform lowp vec2 u_ao;varying vec3 v_ao;\n#endif\n#ifdef LIGHTING_3D_MODE\nvarying float v_NdotL;\n#endif\nvarying vec2 v_pos;varying vec4 v_lighting;uniform lowp float u_opacity;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern\n#pragma mapbox: define lowp float pixel_ratio\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern\n#pragma mapbox: initialize lowp float pixel_ratio\nvec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;vec2 imagecoord=mod(v_pos,1.0);vec2 pos=mix(pattern_tl/u_texsize,pattern_br/u_texsize,imagecoord);vec4 out_color=texture2D(u_image,pos);\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting(out_color,v_NdotL)*u_opacity;\n#else\nout_color=out_color*v_lighting;\n#endif\n#ifdef FAUX_AO\nfloat intensity=u_ao[0];float h=max(0.0,v_ao.z);float h_floors=h/u_ao[1];float y_shade=1.0-0.9*intensity*min(v_ao.y,1.0);float shade=(1.0-0.08*intensity)*(y_shade+(1.0-y_shade)*(1.0-pow(1.0-min(h_floors/16.0,1.0),16.0)))+0.08*intensity*min(h_floors/160.0,1.0);float concave=v_ao.x*v_ao.x;float x_shade=mix(1.0,mix(0.6,0.75,min(h_floors/30.0,1.0)),intensity)+0.1*intensity*min(h,1.0);shade*=mix(1.0,x_shade*x_shade*x_shade,concave);out_color.rgb=out_color.rgb*shade;\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform float u_tile_units_to_pixels;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;attribute vec4 a_pos_normal_ed;attribute vec2 a_centroid_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_pos_3;attribute vec3 a_pos_normal_3;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;uniform vec3 u_up_dir;uniform float u_height_lift;\n#endif\nvarying vec2 v_pos;varying vec4 v_lighting;\n#ifdef FAUX_AO\nuniform lowp vec2 u_ao;varying vec3 v_ao;\n#endif\n#ifdef LIGHTING_3D_MODE\nvarying float v_NdotL;\n#endif\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern\n#pragma mapbox: define lowp float pixel_ratio\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern\n#pragma mapbox: initialize lowp float pixel_ratio\nvec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;vec4 pos_nx=floor(a_pos_normal_ed*0.5);mediump vec4 top_up_ny_start=a_pos_normal_ed-2.0*pos_nx;mediump vec3 top_up_ny=top_up_ny_start.xyz;float x_normal=pos_nx.z/8192.0;vec3 normal=top_up_ny.y==1.0 ? vec3(0.0,0.0,1.0) : normalize(vec3(x_normal,(2.0*top_up_ny.z-1.0)*(1.0-abs(x_normal)),0.0));float edgedistance=a_pos_normal_ed.w;vec2 display_size=(pattern_br-pattern_tl)/pixel_ratio;
27base=max(0.0,base);height=max(0.0,height);float t=top_up_ny.x;float z=t > 0.0 ? height : base;vec2 centroid_pos=vec2(0.0);\n#if defined(HAS_CENTROID) || defined(TERRAIN)\ncentroid_pos=a_centroid_pos;\n#endif\nfloat ele=0.0;float h=z;vec3 p;float c_ele;\n#ifdef TERRAIN\nbool flat_roof=centroid_pos.x !=0.0 && t > 0.0;ele=elevation(pos_nx.xy);c_ele=flat_roof ? centroid_pos.y==0.0 ? elevationFromUint16(centroid_pos.x) : flatElevation(centroid_pos) : ele;h=flat_roof ? max(c_ele+height,ele+base+2.0) : ele+(t > 0.0 ? height : base==0.0 ?-5.0 : base);p=vec3(pos_nx.xy,h);\n#else\np=vec3(pos_nx.xy,z);\n#endif\n#ifdef PROJECTION_GLOBE_VIEW\nfloat lift=float((t+base) > 0.0)*u_height_lift;h+=lift;vec3 globe_normal=normalize(mix(a_pos_normal_3/16384.0,u_up_dir,u_zoom_transition));vec3 globe_pos=a_pos_3+globe_normal*(u_tile_up_scale*(p.z+lift));vec3 merc_pos=mercator_tile_position(u_inv_rot_matrix,p.xy,u_tile_id,u_merc_center)+u_up_dir*u_tile_up_scale*p.z;p=mix_globe_mercator(globe_pos,merc_pos,u_zoom_transition);\n#endif\nfloat hidden=float(centroid_pos.x==0.0 && centroid_pos.y==1.0);gl_Position=mix(u_matrix*vec4(p,1),AWAY,hidden);vec2 pos=normal.z==1.0\n? pos_nx.xy\n: vec2(edgedistance,z*u_height_factor);v_pos=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,display_size,u_tile_units_to_pixels,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float NdotL=0.0;\n#ifdef LIGHTING_3D_MODE\nNdotL=calculate_NdotL(normal);\n#else\nNdotL=clamp(dot(normal,u_lightpos),0.0,1.0);NdotL=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),NdotL);\n#endif\nif (normal.y !=0.0) {float r=0.84;\n#ifndef LIGHTING_3D_MODE\nr=mix(0.7,0.98,1.0-u_lightintensity);\n#endif\nNdotL*=(\n(1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),r,1.0)));}\n#ifdef FAUX_AO\nfloat concave=pos_nx.w-floor(pos_nx.w*0.5)*2.0;float start=top_up_ny_start.w;float y_ground=1.0-clamp(t+base,0.0,1.0);float top_height=height;\n#ifdef TERRAIN\ntop_height=mix(max(c_ele+height,ele+base+2.0),ele+height,float(ce
27ntroid_pos.x==0.0))-ele;y_ground+=y_ground*5.0/max(3.0,top_height);\n#endif\nv_ao=vec3(mix(concave,-concave,start),y_ground,h-ele);NdotL*=(1.0+0.05*(1.0-top_up_ny.y)*u_ao[0]);\n#ifdef PROJECTION_GLOBE_VIEW\ntop_height+=u_height_lift;\n#endif\ngl_Position.z-=(0.0000006*(min(top_height,500.)+2.0*min(base,500.0)+60.0*concave+3.0*start))*gl_Position.w;\n#endif\n#ifdef LIGHTING_3D_MODE\nv_NdotL=NdotL;\n#else\nv_lighting.rgb+=clamp(NdotL*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;\n#endif \n#ifdef FOG\nv_fog_pos=fog_position(p);\n#endif\n}"),hillshadePrepare:pn("#ifdef GL_ES\nprecision highp float;\n#endif\nuniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform vec4 u_unpack;float getElevation(vec2 coord) {\n#ifdef TERRAIN_DEM_FLOAT_FORMAT\nreturn texture2D(u_image,coord).a/4.0;\n#else\nvec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/4.0;\n#endif\n}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y));float b=getElevation(v_pos+vec2(0,-epsilon.y));float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y));float d=getElevation(v_pos+vec2(-epsilon.x,0));float e=getElevation(v_pos+vec2(epsilon.x,0));float f=getElevation(v_pos+vec2(-epsilon.x,epsilon.y));float g=getElevation(v_pos+vec2(0,epsilon.y));float h=getElevation(v_pos+vec2(epsilon.x,epsilon.y));float exaggerationFactor=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;float exaggeration=u_zoom < 15.0 ? (u_zoom-15.0)*exaggerationFactor : 0.0;vec2 deriv=vec2(\n(c+e+e+h)-(a+d+d+f),(f+g+g+h)-(a+b+b+c)\n)/pow(2.0,exaggeration+(19.2562-u_zoom));gl_FragColor=clamp(vec4(\nderiv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}"),hillshade:pn("uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent;void main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color;\n#ifdef LIGHTING_3D_MODE\ngl_FragColor=apply_lighting(gl_FragColor);\n#endif\n#ifdef FOG\ngl_FragColor=fog_dither(fog_apply_premultiplied(gl_FragColor,v_fog_pos));\n#endif\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),line:pn("uniform lowp float u_device_pixel_ratio;uniform float u_alpha_discard_threshold;uniform highp vec2 u_trim_offset;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp vec4 v_uv;\n#ifdef RENDER_LINE_DASH\nuniform sampler2D u_dash_image;varying vec2 v_tex;\n#endif\n#ifdef RENDER_LINE_GRADIENT\nuniform sampler2D u_gradient_image;\n#endif\nuniform float u_border_width;uniform vec4 u_border_color;float luminance(vec3 c) {return (c.r+c.r+c.b+c.g+c.g+c.g)*0.1667;}\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define lowp vec4 dash\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nfloat linearstep(float edge0,float edge1,float x) {return
27clamp((x-edge0)/(edge1-edge0),0.0,1.0);}void main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize lowp vec4 dash\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);\n#ifdef RENDER_LINE_DASH\nfloat sdfdist=texture2D(u_dash_image,v_tex).a;float sdfgamma=1.0/(2.0*u_device_pixel_ratio)/dash.z;alpha*=linearstep(0.5-sdfgamma/floorwidth,0.5+sdfgamma/floorwidth,sdfdist);\n#endif\nhighp vec4 out_color;\n#ifdef RENDER_LINE_GRADIENT\nout_color=texture2D(u_gradient_image,v_uv.xy);\n#else\nout_color=color;\n#endif\nfloat trimmed=1.0;\n#ifdef RENDER_LINE_TRIM_OFFSET\nhighp float start=v_uv[2];highp float end=v_uv[3];highp float trim_start=u_trim_offset[0];highp float trim_end=u_trim_offset[1];highp float line_progress=(start+(v_uv.x)*(end-start));if (trim_end > trim_start) {if (line_progress <=trim_end && line_progress >=trim_start) {out_color=vec4(0,0,0,0);trimmed=0.0;}}\n#endif\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting(out_color);\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\n#ifdef RENDER_LINE_ALPHA_DISCARD\nif (alpha < u_alpha_discard_threshold) {discard;}\n#endif\n#ifdef RENDER_LINE_BORDER\nfloat edgeBlur=(u_border_width+1.0/u_device_pixel_ratio);float alpha2=clamp(min(dist-(v_width2.t-edgeBlur),v_width2.s-dist)/edgeBlur,0.0,1.0);if (alpha2 < 1.) {float smoothAlpha=smoothstep(0.6,1.0,alpha2);\n#ifdef RENDER_LINE_BORDER_AUTO\nfloat Y=(out_color.a > 0.01) ? luminance(out_color.rgb/out_color.a) : 1.;float adjustment=(Y > 0.) ? 0.5/Y : 0.45;if (out_color.a > 0.25 && Y < 0.25) {vec3 borderColor=(Y > 0.) ? out_color.rgb : vec3(1,1,1)*out_color.a;out_color.rgb=out_color.rgb+borderColor*(adjustment*(1.0-smoothAlpha));} else {out_color.rgb*=(0.6 +0.4*smoothAlpha);}\n#else\nout_color.rgb=mix(u_border_color.rgb*u_border_color.a*trimmed,out_color.rgb,smoothAlpha);\n#endif\n}\n#endif\ngl_FragColor=out_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define EXTRUDE_SCALE 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;\n#if defined(RENDER_LINE_GRADIENT) || defined(RENDER_LINE_TRIM_OFFSET)\nattribute highp vec4 a_packed;\n#endif\n#ifdef RENDER_LINE_DASH\nattribute float a_linesofar;\n#endif\nuniform mat4 u_matrix;uniform mat2 u_pixels_to_tile_units;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp vec4 v_uv;\n#ifdef RENDER_LINE_DASH\nuniform vec2 u_texsize;uniform float u_tile_units_to_pixels;varying vec2 v_tex;\n#endif\n#ifdef RENDER_LINE_GRADIENT\nuniform float u_image_height;\n#endif\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define lowp vec4 dash\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize lowp vec4 dash\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*EXTRUDE_SCALE;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*EXTRUDE_SCALE*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist*u_pixels_to_tile_units,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2*u_pixels_to_tile_units,0.0,1.0)+projected_extrude;\n#ifndef RENDER_TO_TEXTURE\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\n#else\nv_gamma_scale=1.0;\n#endif\n#if defined(RENDER_LINE_GRADIENT) || defined(RENDER_LINE_TRIM_OFFSET)\nfloat a_uv_x=a_packed[0];float a_split_index=a_packed[1];highp float a_clip_start=a_packed[2];highp float a_clip_end=a_packed[3];\n#ifdef RENDER_LINE_GRADIENT\nhighp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec4(a_uv_x,a_split_index*texel_height-half_texel_height,a_clip_start,a_clip_end);\n#else\nv_uv=vec4(a_uv_x,0.0,a_clip_start,a_clip_end);\n#endif\n#endif\n#ifdef RENDER_LINE_DASH\nfloat scale=dash.z==0.0 ? 0.0 : u_tile_units_to_pixels/dash.z;float height=dash.y;v_tex=vec2(a_linesofar*scale/floorwidth,(-normal.y*height+dash.x+0.5)/u_texsize.y);\n#endif\nv_width2=vec2(outset,inset);\n#ifdef FOG\nv_fog_pos=fog_position(pos);\n#endif\n}"),linePattern:pn("uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_tile_units_to_pixels;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp vec4 pattern\n#pragma mapbox: define lowp float pixel_ratio\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize mediump vec4 pattern\n#pragma mapbox: initialize lowp float pixel_ratio\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nvec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;vec2 display_size=(pattern_br-pattern_tl)/pixel_ratio;vec2 pattern_size=vec2(display_size.x/u_tile_units_to_pixels,display_size.y);float aspect=display_size.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x=mod(v_linesofar/pattern_size.x*aspect,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos=mix(pattern_tl*texel_size-texel_size,pattern_br*texel_size+texel_size,vec2(x,y));vec4 color=texture2D(u_image,pos);\n#ifdef LIGHTING_3D_MODE\ncolor=apply_lighting(color);\n#endif\n#ifdef FOG\ncolor=fog_dither(fog_apply_premultiplied(color,v_fog_pos));\n#endif\ngl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;attribute float a_linesofar;uniform mat4 u_matrix;uniform vec2 u_units_to_pixels;uniform mat2 u_pixels_to_tile_units;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define lowp vec4 pattern\n#pragma mapbox: define lowp float pixel_ratio\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize mediump vec4 pattern\n#pragma mapbox: initialize lowp float pixel_ratio\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist*u_pixels_to_tile_units,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2*u_pixels_to_tile_units,0.0,1.0)+projected_extrude;\n#ifndef RENDER_TO_TEXTURE\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\n#else\nv_gamma_scale=1.0;\n#endif\nv_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;\n#ifdef FOG\nv_fog_pos=fog_position(pos);\n#endif\n}"),raster:pn("uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(\ndot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);vec3 out_color=mix(u_high_vec,u_low_vec,rgb);\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting(out_color);\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply(out_color,v_fog_pos));\n#endif\ngl_FragColor=vec4(out_color*color.a,color.a);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform vec2 u_perspective_transform;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {float w=1.0+dot(a_texture_pos,u_perspective_transform);gl_Position=u_matrix*vec4(a_pos*w,0,w);v_pos0=a_texture_pos/8192.0;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),symbolIcon:pn("uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nlowp float alpha=opacity*v_fade_opacity;gl_FragColor=texture2D(u_texture,v_tex)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec4 a_pos_offset;attribute vec4 a_tex_size;attribute vec4 a_pixeloffset;attribute vec4 a_projected_pos;attribute float a_fade_opacity;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_globe_anchor;attribute vec3 a_globe_normal;\n#endif\nuniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;uniform vec3 u_up_vector;\n#ifdef PROJECTION_GLOBE_VIEW\nuniform vec3 u_tile_id;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_camera_forward;uniform float u_zoom_transition;uniform vec3 u_ecef_origin;uniform mat4 u_tile_matrix;\n#endif\nvarying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_tex_size.xy;vec2 a_size=a_tex_size.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_min_font_scale=a_pixeloffset.zw/256.0;highp float segment_angle=-a_projected_pos[3];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 tile_anchor=a_pos;vec3 h=elevationVector(tile_anchor)*elevation(tile_anchor);float globe_occlusion_fade;vec3 world_pos;vec3 mercator_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nmercator_pos=mercator_tile_position(u_inv_rot_matrix,tile_anchor,u_tile_id,u_merc_center);world_pos=mix_globe_mercator(a_globe_anchor+h,mercator_pos,u_zoom_transition);vec4 ecef_point=u_tile_matrix*vec4(world_pos,1.0);vec3 origin_to_point=ecef_point.xyz-u_ecef_origin;globe_occlusion_fade=dot(origin_to_point,u_camera_forward) >=0.0 ? 0.0 : 1.0;\n#else\nworld_pos=vec3(tile_anchor,0)+h;globe_occlusion_fade=1.0;\n#endif\nvec4 projected_point=u_matrix*vec4(world_pos,1);highp float camera_to_anchor_distance=projected_point.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(\n0.5+0.5*distance_ratio,0.0,1.5);size*=perspective_ratio;float font_scale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjected_point;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 displacement=vec3(a_globe_normal.z,0,-a_globe_normal.x);offsetProjected_point=u_matrix*vec4(a_globe_anchor+displacement,1);\n#else\noffsetProjected_point=u_matrix*vec4(tile_anchor+vec2(1,0),0,1);\n#endif\nvec2 a=projected_point.xy/projected_point.w;vec2 b=offsetProjected_point.xy/offsetProjected_point.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}vec4 projected_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 proj_pos=mix_globe_mercator(a_projected_pos.xyz+h,mercator_pos,u_zoom_transition);projected_pos=u_label_plane_matrix*vec4(proj_pos,1.0);\n#else\nprojected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,h.z,1.0);\n#endif\nhighp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);float z=0.0;vec2 offset=rotation_matrix*(a_offset/32.0*max(a_min_font_scale,font_scale)+a_pxoffset/16.0);\n#ifdef TERRAIN\n#ifdef PITCH_WITH_MAP_TERRAIN\nvec4 tile_pos=u_label_plane_matrix_inv*vec4(a_projected_pos.xy+offset,0.0,1.0);z=elevation(tile_pos.xy);\n#endif\n#endif\nfloat occlusion_fade=occlusionFade(projected_point)*globe_occlusion_fade;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 xAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,u_up_vector)) : vec3(1,0,0);vec3 yAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,xAxis)) : vec3(0,1,0);gl_Position=mix(u_coord_matrix*vec4(projected_pos.xyz/projected_pos.w+xAxis*offset.x+yAxis*offset.y,1.0),AWAY,float(projected_point.w <=0.0 || occlusion_fade==0.0));\n#else\ngl_Position=mix(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+offset,z,1.0),AWAY,float(projected_point.w <=0.0 || occlusion_fade==0.0));\n#endif\nfloat projection_transition_fade=1.0;\n#if defined(PROJECTED_POS_ON_VIEWPORT) && defined(PROJECTION_GLOBE_VIEW)\nprojection_transition_fade=1.0-step(EPSILON,u_zoom_transition);\n#endif\nv_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;v_fade_opacity=max(0.0,min(occlusion_fade,fade_opacity[0]+fade_change))*projection_transition_fade;}"),symbolSDF:pn("#define SDF_PX 8.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;u
27niform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float fade_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec4 a_pos_offset;attribute vec4 a_tex_size;attribute vec4 a_pixeloffset;attribute vec4 a_projected_pos;attribute float a_fade_opacity;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_globe_anchor;attribute vec3 a_globe_normal;\n#endif\nuniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec3 u_up_vector;\n#ifdef PROJECTION_GLOBE_VIEW\nuniform vec3 u_tile_id;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_camera_forward;uniform float u_zoom_transition;uniform vec3 u_ecef_origin;uniform mat4 u_tile_matrix;\n#endif\nvarying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_tex_size.xy;vec2 a_size=a_tex_size.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;highp float segment_angle=-a_projected_pos[3];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 tile_anchor=a_pos;vec3 h=elevationVector(tile_anchor)*elevation(tile_anchor);float globe_occlusion_fade;vec3 world_pos;vec3 mercator_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nmercator_pos=mercator_tile_position(u_inv_rot_matrix,tile_anchor,u_tile_id,u_merc_center);world_pos=mix_globe_mercator(a_globe_anchor+h,mercator_pos,u_zoom_transition);vec4 ecef_point=u_tile_matrix*vec4(world_pos,1.0);vec3 origin_to_point=ecef_point.xyz-u_ecef_origin;globe_occlusion_fade=dot(origin_to_point,u_camera_forward) >=0.0 ? 0.0 : 1.0;\n#else\nworld_pos=vec3(tile_anchor,0)+h;globe_occlusion_fade=1.0;\n#endif\nvec4 projected_point=u_matrix*vec4(world_pos,1);highp float camera_to_anchor_distance=projected_point.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(\n0.5+0.5*distance_ratio,0.0,1.5);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetprojected_point;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 displacement=vec3(a_globe_normal.z,0,-a_globe_normal.x);offsetprojected_point=u_matrix*vec4(a_globe_anchor+displacement,1);\n#else\noffsetprojected_point=u_matrix*vec4(tile_anchor+vec2(1,0),0,1);\n#endif\nvec2 a=projected_point.xy/projected_point.w;vec2 b=offsetprojected_point.xy/offsetprojected_point.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}vec4 projected_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 proj_pos=mix_globe_mercator(a_projected_pos.xyz+h,mercator_pos,u_zoom_transition);projected_pos=u_label_plane_matrix*vec4(proj_pos,1.0);\n#else\nprojected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,h.z,1.0);\n#endif\nhighp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);float z=0.0;vec2 offset=rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset);\n#ifdef TERRAIN\n#ifdef PITCH_WITH_MAP_TERRAIN\nvec4 tile_pos=u_label_plane_matrix_inv*vec4(a_projected_pos.xy+offset,0.0,1.0);z=elevation(tile_pos.xy);\n#endif\n#endif\nfloat occlusion_fade=occlusionFade(projected_point)*globe_occlusion_fade;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 xAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,u_up_vector)) : vec3(1,0,0);vec3 yAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,xAxis)) : vec3(0,1,0);gl_Position=mix(u_coord_matrix*vec4(projected_pos.xyz/projected_pos.w+xAxis*offset.x+yAxis*offset.y,1.0),AWAY,float(projected_point.w <=0.0 || occlusion_fade==0.0));\n#else\ngl_Position=mix(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+offset,z,1.0),AWAY,float(projected_point.w <=0.0 || occlusion_fade==0.0));\n#endif\nfloat gamma_scale=gl_Position.w;float projection_transition_fade=1.0;\n#if defined(PROJECTED_POS_ON_VIEWPORT) && defined(PROJECTION_GLOBE_VIEW)\nprojection_transition_fade=1.0-step(EPSILON,u_zoom_transition);\n#endif\nvec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(occlusion_fade,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity*projection_transition_fade);}"),symbolTextAndIcon:pn("#define SDF_PX 8.0\n#define SDF 1.0\n#define ICON 0.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;varying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat fade_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;lowp float alpha=opacity*fade_opacity;
27gl_FragColor=texture2D(u_texture_icon,tex_icon)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\nreturn;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec4 a_pos_offset;attribute vec4 a_tex_size;attribute vec4 a_projected_pos;attribute float a_fade_opacity;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_globe_anchor;attribute vec3 a_globe_normal;\n#endif\nuniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec3 u_up_vector;uniform vec2 u_texsize_icon;\n#ifdef PROJECTION_GLOBE_VIEW\nuniform vec3 u_tile_id;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_camera_forward;uniform float u_zoom_transition;uniform vec3 u_ecef_origin;uniform mat4 u_tile_matrix;\n#endif\nvarying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_tex_size.xy;vec2 a_size=a_tex_size.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;highp float segment_angle=-a_projected_pos[3];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 tile_anchor=a_pos;vec3 h=elevationVector(tile_anchor)*elevation(tile_anchor);float globe_occlusion_fade;vec3 world_pos;vec3 mercator_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nmercator_pos=mercator_tile_position(u_inv_rot_matrix,tile_anchor,u_tile_id,u_merc_center);world_pos=mix_globe_mercator(a_globe_anchor+h,mercator_pos,u_zoom_transition);vec4 ecef_point=u_tile_matrix*vec4(world_pos,1.0);vec3 origin_to_point=ecef_point.xyz-u_ecef_origin;globe_occlusion_fade=dot(origin_to_point,u_camera_forward) >=0.0 ? 0.0 : 1.0;\n#else\nworld_pos=vec3(tile_anchor,0)+h;globe_occlusion_fade=1.0;\n#endif\nvec4 projected_point=u_matrix*vec4(world_pos,1);highp float camera_to_anchor_distance=projected_point.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(\n0.5+0.5*distance_ratio,0.0,1.5);size*=perspective_ratio;float font_scale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offset_projected_point=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projected_point.xy/projected_point.w;vec2 b=offset_projected_point.xy/offset_projected_point.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}vec4 projected_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 proj_pos=mix_globe_mercator(a_projected_pos.xyz+h,mercator_pos,u_zoom_transition);projected_pos=u_label_plane_matrix*vec4(proj_pos,1.0);\n#else\nprojected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,h.z,1.0);\n#endif\nhighp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);float z=0.0;vec2 offset=rotation_matrix*(a_offset/32.0*font_scale);\n#ifdef TERRAIN\n#ifdef PITCH_WITH_MAP_TERRAIN\nvec4 tile_pos=u_label_plane_matrix_inv*vec4(a_projected_pos.xy+offset,0.0,1.0);z=elevation(tile_pos.xy);\n#endif\n#endif\nfloat occlusion_fade=occlusionFade(projected_point)*globe_occlusion_fade;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 xAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,u_up_vector)) : vec3(1,0,0);vec3 yAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,xAxis)) : vec3(0,1,0);gl_Position=mix(u_coord_matrix*vec4(projected_pos.xyz/projected_pos.w+xAxis*offset.x+yAxis*offset.y,1.0),AWAY,float(projected_point.w <=0.0 || occlusion_fade==0.0));\n#else\ngl_Position=mix(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+offset,z,1.0),AWAY,float(projected_point.w <=0.0 || occlusion_fade==0.0));\n#endif\nfloat gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(occlusion_fade,fade_opacity[0]+fade_change));float projection_transition_fade=1.0;\n#if defined(PROJECTED_POS_ON_VIEWPORT) && defined(PROJECTION_GLOBE_VIEW)\nprojection_transition_fade=1.0-step(EPSILON,u_zoom_transition);\n#endif\nv_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity*projection_transition_fade,is_s
27df);}"),terrainRaster:pn("uniform sampler2D u_image0;varying vec2 v_pos0;\n#ifdef FOG\nvarying float v_fog_opacity;\n#endif\n#ifdef RENDER_SHADOWS\nvarying vec4 v_pos_light_view_0;varying vec4 v_pos_light_view_1;varying float v_depth;\n#endif\nvoid main() {vec4 color=texture2D(u_image0,v_pos0);\n#ifdef RENDER_SHADOWS\ncolor.xyz=shadowed_color(color.xyz,v_pos_light_view_0,v_pos_light_view_1,v_depth);\n#endif\n#ifdef FOG\n#ifdef ZERO_EXAGGERATION\ncolor=fog_dither(fog_apply_premultiplied(color,v_fog_pos));\n#else\ncolor=fog_dither(fog_apply_from_vert(color,v_fog_opacity));\n#endif\n#endif\ngl_FragColor=color;\n#ifdef TERRAIN_WIREFRAME\ngl_FragColor=vec4(1.0,0.0,0.0,0.8);\n#endif\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform float u_skirt_height;attribute vec2 a_pos;varying vec2 v_pos0;\n#ifdef FOG\nvarying float v_fog_opacity;\n#endif\n#ifdef RENDER_SHADOWS\nuniform mat4 u_light_matrix_0;uniform mat4 u_light_matrix_1;varying vec4 v_pos_light_view_0;varying vec4 v_pos_light_view_1;varying float v_depth;\n#endif\nconst float wireframeOffset=0.00015;void main() {vec3 decomposedPosAndSkirt=decomposeToPosAndSkirt(a_pos);float skirt=decomposedPosAndSkirt.z;vec2 decodedPos=decomposedPosAndSkirt.xy;float elevation=elevation(decodedPos)-skirt*u_skirt_height;\n#ifdef TERRAIN_WIREFRAME\nelevation+=wireframeOffset;\n#endif\nv_pos0=decodedPos/8192.0;gl_Position=u_matrix*vec4(decodedPos,elevation,1.0);\n#ifdef FOG\n#ifdef ZERO_EXAGGERATION\nv_fog_pos=fog_position(decodedPos);\n#else\nv_fog_opacity=fog(fog_position(vec3(decodedPos,elevation)));\n#endif\n#endif\n#ifdef RENDER_SHADOWS\nvec3 pos=vec3(decodedPos,elevation);v_pos_light_view_0=u_light_matrix_0*vec4(pos,1.);v_pos_light_view_1=u_light_matrix_1*vec4(pos,1.);v_depth=gl_Position.w;\n#endif\n}"),terrainDepth:pn("#ifdef GL_ES\nprecision highp float;\n#endif\nvarying float v_depth;void main() {gl_FragColor=pack_depth(v_depth);}","uniform mat4 u_matrix;attribute vec2 a_pos;varying float v_depth;void main() {float elevation=elevation(a_pos);gl_Position=u_matrix*vec4(a_pos,elevation,1.0);v_depth=gl_Position.z/gl_Position.w;}"),skybox:pn("\nvarying lowp vec3 v_uv;uniform lowp samplerCube u_cubemap;uniform lowp float u_opacity;uniform highp float u_temporal_offset;uniform highp vec3 u_sun_direction;float sun_disk(highp vec3 ray_direction,highp vec3 sun_direction) {highp float cos_angle=dot(normalize(ray_direction),sun_direction);const highp float cos_sun_angular_diameter=0.99996192306;const highp float smoothstep_delta=1e-5;return smoothstep(\ncos_sun_angular_diameter-smoothstep_delta,cos_sun_angular_diameter+smoothstep_delta,cos_angle);}float map(float value,float start,float end,float new_start,float new_end) {return ((value-start)*(new_end-new_start))/(e
27nd-start)+new_start;}void main() {vec3 uv=v_uv;const float y_bias=0.015;uv.y+=y_bias;uv.y=pow(abs(uv.y),1.0/5.0);uv.y=map(uv.y,0.0,1.0,-1.0,1.0);vec3 sky_color=textureCube(u_cubemap,uv).rgb;\n#ifdef FOG\nsky_color=fog_apply_sky_gradient(v_uv.xzy,sky_color);\n#endif\nsky_color.rgb=dither(sky_color.rgb,gl_FragCoord.xy+u_temporal_offset);sky_color+=0.1*sun_disk(v_uv,u_sun_direction);gl_FragColor=vec4(sky_color*u_opacity,u_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}",en),skyboxGradient:pn("varying highp vec3 v_uv;uniform lowp sampler2D u_color_ramp;uniform highp vec3 u_center_direction;uniform lowp float u_radius;uniform lowp float u_opacity;uniform highp float u_temporal_offset;void main() {float progress=acos(dot(normalize(v_uv),u_center_direction))/u_radius;vec4 color=texture2D(u_color_ramp,vec2(progress,0.5));\n#ifdef FOG\ncolor.rgb=fog_apply_sky_gradient(v_uv.xzy,color.rgb/color.a)*color.a;\n#endif\ncolor*=u_opacity;color.rgb=dither(color.rgb,gl_FragCoord.xy+u_temporal_offset);gl_FragColor=color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}",en),skyboxCapture:pn
vendor: 3,851 bytes, line 27
27("\nvarying highp vec3 v_position;uniform highp float u_sun_intensity;uniform highp float u_luminance;uniform lowp vec3 u_sun_direction;uniform highp vec4 u_color_tint_r;uniform highp vec4 u_color_tint_m;\n#ifdef GL_ES\nprecision highp float;\n#endif\n#define BETA_R vec3(5.5e-6,13.0e-6,22.4e-6)\n#define BETA_M vec3(21e-6,21e-6,21e-6)\n#define MIE_G 0.76\n#define DENSITY_HEIGHT_SCALE_R 8000.0\n#define DENSITY_HEIGHT_SCALE_M 1200.0\n#define PLANET_RADIUS 6360e3\n#define ATMOSPHERE_RADIUS 6420e3\n#define SAMPLE_STEPS 10\n#define DENSITY_STEPS 4\nfloat ray_sphere_exit(vec3 orig,vec3 dir,float radius) {float a=dot(dir,dir);float b=2.0*dot(dir,orig);float c=dot(orig,orig)-radius*radius;float d=sqrt(b*b-4.0*a*c);return (-b+d)/(2.0*a);}vec3 extinction(vec2 density) {return exp(-vec3(BETA_R*u_color_tint_r.a*density.x+BETA_M*u_color_tint_m.a*density.y));}vec2 local_density(vec3 point) {float height=max(length(point)-PLANET_RADIUS,0.0);float exp_r=exp(-height/DENSITY_HEIGHT_SCALE_R);float exp_m=exp(-height/DENSITY_HEIGHT_SCALE_M);return vec2(exp_r,exp_m);}float phase_ray(float cos_angle) {return (3.0/(16.0*PI))*(1.0+cos_angle*cos_angle);}float phase_mie(float cos_angle) {return (3.0/(8.0*PI))*((1.0-MIE_G*MIE_G)*(1.0+cos_angle*cos_angle))/((2.0+MIE_G*MIE_G)*pow(1.0+MIE_G*MIE_G-2.0*MIE_G*cos_angle,1.5));}vec2 density_to_atmosphere(vec3 point,vec3 light_dir) {float ray_len=ray_sphere_exit(point,light_dir,ATMOSPHERE_RADIUS);float step_len=ray_len/float(DENSITY_STEPS);vec2 density_point_to_atmosphere=vec2(0.0);for (int i=0; i < DENSITY_STEPS;++i) {vec3 point_on_ray=point+light_dir*((float(i)+0.5)*step_len);density_point_to_atmosphere+=local_density(point_on_ray)*step_len;;}return density_point_to_atmosphere;}vec3 atmosphere(vec3 ray_dir,vec3 sun_direction,float sun_intensity) {vec2 density_orig_to_point=vec2(0.0);vec3 scatter_r=vec3(0.0);vec3 scatter_m=vec3(0.0);vec3 origin=vec3(0.0,PLANET_RADIUS,0.0);float ray_len=ray_sphere_exit(origin,ray_dir,ATMOSPHERE_RADIUS);float step_len=ray_len/float(SAMPLE_STEPS);for (int i=0; i < SAMPLE_STEPS;++i) {vec3 point_on_ray=origin+ray_dir*((float(i)+0.5)*step_len);vec2 density=local_density(point_on_ray)*step_len;density_orig_to_point+=density;vec2 density_point_to_atmosphere=density_to_atmosphere(point_on_ray,sun_direction);vec2 density_orig_to_atmosphere=density_orig_to_point+density_point_to_atmosphere;vec3 extinction=extinction(density_orig_to_atmosphere);scatter_r+=density.x*extinction;scatter_m+=density.y*extinction;}float cos_angle=dot(ray_dir,sun_direction);float phase_r=phase_ray(cos_angle);float phase_m=phase_mie(cos_angle);vec3 beta_r=BETA_R*u_color_tint_r.rgb*u_color_tint_r.a;vec3 beta_m=BETA_M*u_color_tint_m.rgb*u_color_tint_m.a;return (scatter_r*phase_r*beta_r+scatter_m*phase_m*beta_m)*sun_intensity;}const float A=0.15;const float B=0.50;const float C=0.10;const float D=0.20;const float E=0.02;const float F=0.30;vec3 uncharted2_tonemap(vec3 x) {return ((x*(A*x+C*B)+D*E)/(x*(A*x+B)+D*F))-E/F;}void main() {vec3 ray_direction=v_position;ray_direction.y=pow(ray_direction.y,5.0);const float y_bias=0.015;ray_direction.y+=y_bias;vec3 color=atmosphere(normalize(ray_direction),u_sun_direction,u_sun_intensity);float white_scale=1.0748724675633854;color=uncharted2_tonemap((log2(2.0/pow(u_luminance,4.0)))*color)*white_scale;gl_FragColor=vec4(color,1.0);}","attribute highp vec3 a_pos_3f;uniform mat3 u_matrix_3f;varying highp vec3 v_position;float map(float value,float start,float end,float new_start,float new_end) {return ((value-start)*(new_end-new_start))/(end-start)+new_start;}void main() {vec4 pos=vec4(u_matrix_3f*a_pos_3f,1.0);v_position=pos.xyz;v_position.y*=-1.0;v_position.y=map(v_position.y,-1.0,1.0,0.0,1.0);gl_Position=vec4(a_pos_3f.xy,0.0,1.0);}"),globeRaster:
27pn("uniform sampler2D u_image0;varying vec2 v_pos0;\n#ifndef FOG\nuniform highp vec3 u_frustum_tl;uniform highp vec3 u_frustum_tr;uniform highp vec3 u_frustum_br;uniform highp vec3 u_frustum_bl;uniform highp vec3 u_globe_pos;uniform highp float u_globe_radius;uniform vec2 u_viewport;\n#endif\nvoid main() {vec4 color;\n#ifdef CUSTOM_ANTIALIASING\nvec2 uv=gl_FragCoord.xy/u_viewport;highp vec3 ray_dir=mix(\nmix(u_frustum_tl,u_frustum_tr,uv.x),mix(u_frustum_bl,u_frustum_br,uv.x),1.0-uv.y);vec3 dir=normalize(ray_dir);vec3 closest_point=dot(u_globe_pos,dir)*dir;float norm_dist_from_center=1.0-length(closest_point-u_globe_pos)/u_globe_radius;const float antialias_pixel=2.0;float antialias_factor=antialias_pixel*fwidth(norm_dist_from_center);float antialias=smoothstep(0.0,antialias_factor,norm_dist_from_center);vec4 raster=texture2D(u_image0,v_pos0);color=vec4(raster.rgb*antialias,raster.a*antialias);\n#else\ncolor=texture2D(u_image0,v_pos0);\n#endif\n#ifdef FOG\ncolor=fog_dither(fog_apply_premultiplied(color,v_fog_pos));\n#endif\ngl_FragColor=color;\n#ifdef TERRAIN_WIREFRAME\ngl_FragColor=vec4(1.0,0.0,0.0,0.8);\n#endif\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_proj_matrix;uniform mat4 u_normalize_matrix;uniform mat4 u_globe_matrix;uniform mat4 u_merc_matrix;uniform float u_zoom_transition;uniform vec2 u_merc_center;uniform mat3 u_grid_matrix;uniform float u_skirt_height;\n#ifdef GLOBE_POLES\nattribute vec3 a_globe_pos;attribute vec2 a_uv;\n#else\nattribute vec2 a_pos;\n#endif\nvarying vec2 v_pos0;const float wireframeOffset=1e3;float mercatorXfromLng(float lng) {return (180.0+lng)/360.0;}float mercatorYfromLat(float lat) {return (180.0-(RAD_TO_DEG*log(tan(QUARTER_PI+lat/2.0*DEG_TO_RAD))))/360.0;}vec3 latLngToECEF(vec2 latLng) {latLng=DEG_TO_RAD*latLng;float cosLat=cos(latLng[0]);float sinLat=sin(latLng[0]);float cosLng=cos(latLng[1]);float sinLng=sin(latLng[1]);float sx=cosLat*sinLng*GLOBE_RADIUS;float sy=-sinLat*GLOBE_RADIUS;float sz=cosLat*cosLng*GLOBE_RADIUS;return vec3(sx,sy,sz);}void main() {\n#ifdef GLOBE_POLES\nvec3 globe_pos=a_globe_pos;vec2 uv=a_uv;\n#else\nfloat tiles=u_grid_matrix[0][2];float idx=u_grid_matrix[1][2];float idy=u_grid_matrix[2][2];vec3 decomposed_pos_and_skirt=decomposeToPosAndSkirt(a_pos);vec3 latLng=u_grid_matrix*vec3(decomposed_pos_and_skirt.xy,1.0);float mercatorY=mercatorYfromLat(latLng[0]);float uvY=mercatorY*tiles-idy;float mercatorX=mercatorXfromLng(latLng[1]);float uvX=mercatorX*tiles-idx;vec3 globe_pos=latLngToECEF(latLng.xy);vec2 merc_pos=vec2(mercatorX,mercatorY);vec2 uv=vec2(uvX,uvY);\n#endif\nv_pos0=uv;vec2 tile_pos=uv*EXTENT;vec3 globe_derived_up_vector=normalize(globe_pos)*u_tile_up_scale;\n#ifdef GLOBE_POLES\nvec3 up_vector=globe_derived_up_vector;\n#else\nvec3 up_vector=elevationVector(tile_pos);\n#endif\nfloat height=elevation(tile_pos);\n#ifdef TERRAIN_WIREFRAME\nheight+=wireframeOffset;\n#endif\nglobe_pos+=up_vector*height;\n#ifndef GLOBE_POLES\nglobe_pos-=globe_derived_up_vector*u_skirt_height*decomposed_pos_and_skirt.z;\n#endif\n#ifdef GLOBE_POLES\nvec4 interpolated_pos=u_globe_matrix*vec4(globe_pos,1.0);\n#else\nvec4 globe_world_pos=u_globe_matrix*vec4(globe_pos,1.0);vec4 merc_world_pos=vec4(0.0);if (u_zoom_transition > 0.0) {merc_world_pos=vec4(merc_pos,height-u_skirt_height*decomposed_pos_and_skirt.z,1.0);merc_world_pos.xy-=u_merc_center;merc_world_pos.x=wrap(merc_world_pos.x,-0.5,0.5);merc_world_pos=u_merc_matrix*merc_world_pos;}vec4 interpolated_pos=vec4(mix(globe_world_pos.xyz,merc_world_pos.xyz,u_zoom_transition),1.0);\n#endif\ngl_Position=u_proj_matrix*interpolated_pos;\n#ifdef FOG\nv_fog_pos=fog_position((u_normalize_matrix*vec4(globe_pos,1.0)).xyz);\n#endif\n}"),globeAtmosphere:pn("uniform float u_transition;uniform highp float u_fadeout_range;uniform highp float u_temporal_offset;uniform vec3 u_start_color;uniform vec4 u_color;uniform vec4 u_space_color;uniform vec4 u_high_color;uniform float u_star_intensity;uniform float u_star_size;uniform float u_star_density;uniform float u_horizon_angle;uniform mat4 u_rotation_matrix;varying highp vec3 v_ray_dir;varying highp vec3 v_horizon_dir;
27highp float random(highp vec3 p) {p=fract(p*vec3(23.2342,97.1231,91.2342));p+=dot(p.zxy,p.yxz+123.1234);return fract(p.x*p.y);}float stars(vec3 p,float scale,vec2 offset) {vec2 uv_scale=(u_viewport/u_star_size)*scale;vec3 position=vec3(p.xy*uv_scale+offset*u_viewport,p.z);vec3 q=fract(position)-0.5;vec3 id=floor(position);float random_visibility=step(random(id),u_star_density);float circle=smoothstep(0.5+u_star_intensity,0.5,length(q));return circle*random_visibility;}void main() {highp vec3 dir=normalize(v_ray_dir);float globe_pos_dot_dir;\n#ifdef PROJECTION_GLOBE_VIEW\nglobe_pos_dot_dir=dot(u_globe_pos,dir);highp vec3 closest_point_forward=abs(globe_pos_dot_dir)*dir;float norm_dist_from_center=length(closest_point_forward-u_globe_pos)/u_globe_radius;if (norm_dist_from_center < 0.98) {discard;return;}\n#endif\nhighp vec3 horizon_dir=normalize(v_horizon_dir);float horizon_angle_mercator=dir.y < horizon_dir.y ?\n0.0 : max(acos(dot(dir,horizon_dir)),0.0);float horizon_angle;\n#ifdef PROJECTION_GLOBE_VIEW\nhighp vec3 closest_point=globe_pos_dot_dir*dir;float closest_point_to_center=length(closest_point-u_globe_pos);float theta=asin(clamp(closest_point_to_center/length(u_globe_pos),-1.0,1.0));horizon_angle=globe_pos_dot_dir < 0.0 ?\nPI-theta-u_horizon_angle : theta-u_horizon_angle;float angle_t=pow(u_transition,10.0);horizon_angle=mix(horizon_angle,horizon_angle_mercator,angle_t);\n#else\nhorizon_angle=horizon_angle_mercator;\n#endif\nhorizon_angle/=PI;float t=exp(-horizon_angle/u_fadeout_range);float alpha_0=u_color.a;float alpha_1=u_high_color.a;float alpha_2=u_space_color.a;vec3 color_stop_0=u_color.rgb;vec3 color_stop_1=u_high_color.rgb;vec3 color_stop_2=u_space_color.rgb;vec3 c0=mix(color_stop_2,color_stop_1,alpha_1);vec3 c1=mix(c0,color_stop_0,alpha_0);vec3 c2=mix(c0,c1,t);vec3 c =mix(color_stop_2,c2,t);float a0=mix(alpha_2,1.0,alpha_1);float a1=mix(a0,1.0,alpha_0);float a2=mix(a0,a1,t);float a =mix(alpha_2,a2,t);vec2 uv=gl_FragCoord.xy/u_viewport-0.5;float aspect_ratio=u_viewport.x/u_viewport.y;vec4 uv_dir=vec4(normalize(vec3(uv.x*aspect_ratio,uv.y,1.0)),1.0);uv_dir=u_rotation_matrix*uv_dir;vec3 n=abs(uv_dir.xyz);vec2 uv_remap=(n.x > n.y && n.x > n.z) ? uv_dir.yz/uv_dir.x:\n(n.y > n.x && n.y > n.z) ? uv_dir.zx/uv_dir.y:\nuv_dir.xy/uv_dir.z;uv_remap.x/=aspect_ratio;vec3 D=vec3(uv_remap,1.0);highp float star_field=0.0;if (u_star_intensity > 0.0) {star_field+=stars(D,1.2,vec2(0.0,0.0));star_field+=stars(D,1.0,vec2(1.0,0.0));star_field+=stars(D,0.8,vec2(0.0,1.0));star_field+=stars(D,0.6,vec2(1.0,1.0));star_field*=(1.0-pow(t,0.25+(1.0-u_high_color.a)*0.75));c+=star_field*alpha_2;}c=dither(c,gl_FragCoord.xy+u_temporal_offset);gl_FragColor=vec4(c,a);}","attribute vec3 a_pos;attribute vec2 a_uv;uniform vec3 u_frustum_tl;uniform vec3 u_frustum_tr;uniform vec3 u_frustum_br;uniform vec3 u_frustum_bl;uniform float u_horizon;varying highp vec3 v_ray_dir;varying highp vec3 v_horizon_dir;void main() {v_ray_dir=mix(\nmix(u_frustum_tl,u_frustum_tr,a_uv.x),mix(u_frustum_bl,u_frustum_br,a_uv.x),a_uv.y);v_horizon_dir=mix(\nmix(u_frustum_tl,u_frustum_bl,u_horizon),mix(u_frustum_tr,u_frustum_br,u_horizon),a_uv.x);gl_Position=vec4(a_pos,1.0);}")};function dn(t,e){const n=t.replace(/\s*\/\/[^\n]*\n/g,"\n").split("\n");for(let t of n)if(t=t.trim(),"#"===t[0]&&t.includes("if")&&!t.includes("endif")){t=t.replace("#","").replace(/ifdef|ifndef|elif|if/g,"").replace(/!|defined|\(|\)|\|\||&&/g,"").replace(/\s+/g," ").trim();const n=t.split(" ");for(const t of n)e.includes(t)||e.push(t)}}function pn(t,e){const n=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,r=e.match(/attribute (highp |mediump |lowp )?([\w]+) ([\w]+)/g),i={},o=[...cn];return dn(t,o),dn(e,o),{fragmentSource:t=t.replace(n,(t,e,n,r,o)=>(i[o]=!0,"define"===e?`\n#ifndef HAS_UNIFORM_u_${o}\nvarying ${n} ${r} ${o};\n#else\nuniform ${n} ${r} u_${o};\n#endif\n`:`\n#ifdef HAS_UNIFORM_u_${o}\n ${n} ${r} ${o} = u_${o};\n#endif\n`)),vertexSource:e=e.replace(n,(t,e,n,r,o)=>{const s="float"===r?"vec2":"vec4",a=o.match(/color/)?"color":s;return i[o]?"define"===e?`\n#ifndef HAS_UNIFORM_u_${o}\nuniform lowp float u_${o}_t;\nattribute ${n} ${s} a_${o};\nvarying ${n} ${r} ${o};\n#else\nuniform ${n} ${r} u_${o};\n#endif\n`:"vec4"===a?`\n#ifndef HAS_UNIFORM_u_${o}\n ${o} = a_${o};\n#else\n ${n} ${r} ${o} = u_${o};\n#endif\n`:`\n#ifndef HAS_UNIFORM_u_${o}\n ${o} = unpack_mix_${a}(a_${o}, u_${o}_t);\n#else\n ${n} ${r} ${o} = u_${o};\n#endif\n`:"define"===e?`\n#ifndef HAS_UNIFORM_u_${o}\nuniform lowp float u_${o}_t;\nattribute ${n} ${s} a_${o};\n#else\nuniform ${n} ${r} u_${o};\n#endif\n`:"vec4"===a?`\n#ifndef HAS_UNIFORM_u_${o}\n ${n} ${r} ${o} = a_${o};\n#else\n ${n} ${r} ${o} = u_${o};\n#endif\n`:`\n#ifndef HAS_UNIFORM_u_${o}\n ${n} ${r} ${o} = unpack_mix_${a}(a_${o}, u_${o}_t);\n#else\n ${n} ${r} ${o} = u_${o};\n#endif\n`}),staticAttributes:r,usedDefines:o}}class gn{constructor(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffers=[],this.vao=null}bind(t,e,n,r,i,o,s){this.context=t;let a=this.boundPaintVertexBuffers.length!==r.length;for(let t=0;!a&&t<r.length;t++)this.boundPaintVertexBuffers[t]!==r[t]&&(a=!0);let c=this.boundDynamicVertexBuffers.length!==s.length;for(let t=0;!c&&t<s.length;t++)this.boundDynamicVertexBuffers[t]!==s[t]&&(c=!0);if(!t.extVertexArrayObject||!this.vao||this.boundProgram!==e||this.boundLayoutVertexBuffer!==n||a||c||this.boundIndexBuffer!==i||this.boundVertexOffset!==o)this.freshBind(e,n,r,i,o,s);else{t.bindVertexArrayOES.set(this.vao);for(const t of s)t&&t.bind();i&&i.dynamicDraw&&i.bind()}}freshBind(t,e,n,r,i,o){let s;const a=t.numAttributes,c=this.context,l=c.gl;if(c.extVertexArrayObject)this.vao&&this.destroy(),this.vao=c.extVertexArrayObject.createVertexArrayOES(),c.bindVertexArrayOES.set(this.vao),s=0,this.boundProgram=t,this.boundLayoutVertexBuffer=e,this.boundPaintVertexBuffers=n,this.boundIndexBuffer=r,this.boundVertexOffset=i,this.boundDynamicVertexBuffers=o;else{s=c.currentNumAttributes||0;for(let t=a;t<s;t++)l.disableVertexAttribArray(t)}e.enableAttributes(l,t),e.bind(),e.setVertexAttribPointers(l,t,i);for(const e of n)e.enableAttributes(l,t),e.bind(),e.setVertexAttribPointers(l,t,i);for(const e of o)e&&(e.enableAttributes(l,t),e.bind(),e.setVertexAttribPointers(l,t,i));r&&r.bind(),c.currentNumAttributes=a}destroy(){this.vao&&(this.context.extVertexArrayObject.deleteVertexArrayOES(this.vao),this.vao=null)}}function mn(e,n){const r=Math.pow(2,n.canonical.z),i=n.canonical.y;return[new t.MercatorCoordinate(0,i/r).toLngLat().lat,new t.MercatorCoordinate(0,(i+1)/r).toLngLat().lat]}function yn(e,n,r,i,o,s,a){const c=e.context,l=c.gl,u=r.fbo;if(!u)return;e.prepareDrawTile();const h=e.useProgram("hillshade");c.activeTexture.set(l.TEXTURE0),l.bindTexture(l.TEXTURE_2D,u.colorAttachment.get());const f=((t,e,n,r)=>{const i=n.paint.get("hillshade-shadow-color"),o=n.paint.get("hillshade-highlight-color"),s=n.paint.get("hillshade-accent-color");let a=n.paint.get("hillshade-illumination-direction")*(Math.PI/180);"viewport"===n.paint.get("hillshade-illumination-anchor")&&(a-=t.transform.angle);const c=!t.options.moving;return{u_matrix:r||t.transform.calculateProjMatrix(e.tileID.toUnwrapped(),c),u_image:0,u_latrange:mn(0,e.tileID),u_light:[n.paint.get("hillshade-exaggeration"),a],u_shadow:i,u_highlight:o,u_accent:s}})(e,r,i,e.terrain?n.projMatrix:null);e.prepareDrawProgram(c,h,n.toUnwrapped());const{tileBoundsBuffer:d,tileBoundsIndexBuffer:p,tileBoundsSegments:g}=e.getTileBoundsBuffers(r);h.draw(c,l.TRIANGLES,o,s,a,t.CullFaceMode.disabled,f,i.id,d,p,g)}function _n(e,n,r){if(!n.needsDEMTextureUpload)return;const i=e.context,o=i.gl;i.pixelStoreUnpackPremultiplyAlpha.set(!1),n.demTexture=n.demTexture||e.getTileTexture(r.stride);const s=r.getPixels();n.demTexture?n.demTexture.update(s,{premultiply:!1}):n.demTexture=new t.Texture(i,s,o.RGBA,{premultiply:!1}),n.needsDEMTextureUpload=!1}function vn(e,n,r,i,o,s){const a=e.context,c=a.gl;if(!n.dem)return;const l=n.dem;if(a.activeTexture.set(c.TEXTURE1),_n(e,n,l),!n.demTexture)return;n.demTexture.bind(c.NEAREST,c.CLAMP_TO_EDGE);const u=l.dim;a.activeTexture.set(c.TEXTURE0);let h=n.fbo;if(!h){const e=new t.Texture(a,{width:u,height:u,data:null},c.RGBA);e.bind(c.LINEAR,c.CLAMP_TO_EDGE),h=n.fbo=a.createFramebuffer(u,u,!0),h.colorAttachment.set(e.texture)}a.bindFramebuffer.set(h.framebuffer),a.viewport.set([0,0,u,u]);const{tileBoundsBuffer:f,tileBoundsIndexBuffer:d,tileBoundsSegments:p}=e.getMercatorTileBoundsBuffers();e.useProgram("hillshadePrepare").draw(a,c.TRIANGLES,i,o,s,t.CullFaceMode.disabled,((e,n)=>{const r=n.stride,i=t.create();return t.ortho(i,0,t.EXTENT,-t.EXTENT,0,0,1),t.translate(i,i,[0,-t.EXTENT,0]),{u_matrix:i,u_image:1,u_dimension:[r,r],u_zoom:e.overscaledZ,u_unpack:n.unpackVector}})(n.tileID,l),r.id,f,d,p),n.needsHillshadePrepare=!1}const bn=e=>({u_matrix:new t.UniformMatrix4f(e),u_image0:new t.Uniform1i(e),u_skirt_height:new t.Uniform1f(e)}),xn=(t,e)=>({u_matrix:t,u_image0:0,u_skirt_height:e}),wn=(t,e,n,r,i,o,s,a,c,l,u,h,f,d,p)=>({u_proj_matrix:Float32Array.from(t),u_globe_matrix:e,u_normalize_matrix:Float32Array.from(r),u_merc_matrix:n,u_zoom_transition:i,u_merc_center:o,u_image0:0,u_frustum_tl:s,u_frustum_tr:a,u_frustum_br:c,u_frustum_bl:l,u_globe_pos:u,u_globe_radius:h,u_viewport:f,u_grid_matrix:p?Float32Array.from(p):new Float32Array(9),u_skirt_height:d});function En(t,e){return null!=t&&null!=e&&!(!t.hasData()||!e.hasData())&&null!=t.demTexture&&null!=e.demTexture&&t.tileID.key!==e.tileID.key}const Sn=new class{constructor(){this.operations={}}newMorphing(t,e,n,r,i){if(t in this.operations){const e=this.operations[t];e.to.tileID.key!==n.tileID.key&&(e.queued=n)}else this.operations[t]={startTime:r,phase:0,duration:i,from:e,to:n,queued:null}}getMorphValuesForProxy(t){if(!(t in this.operations))return null;const e=this.operations[t];return{from:e.from,to:e.to,phase:e.phase}}update(t){for(const e in this.operations){const n=this.operations[e];for(n.phase=(t-n.startTime)/n.duration;n.phase>
vendor: 10,810 bytes, line 27
27=1||!this._validOp(n);)if(!this._nextOp(n,t)){delete this.operations[e];break}}}_nextOp(t,e){return!!t.queued&&(t.from=t.to,t.to=t.queued,t.queued=null,t.phase=0,t.startTime=e,!0)}_validOp(t){return t.from.hasData()&&t.to.hasData()}},Cn={0:null,1:"TERRAIN_VERTEX_MORPHING",2:"TERRAIN_WIREFRAME"};function An(t){return 6*Math.pow(1.5,22-t)}function In(t,e){const n=1<<t.z;return!e&&(0===t.x||t.x===n-1)||0===t.y||t.y===n-1}const Tn=t=>({u_matrix:t});function Mn(e,n,r,i,o){if(o>0){const s=t.exported.now(),a=(s-e.timeAdded)/o,c=n?(s-n.timeAdded)/o:-1,l=r.getSource(),u=i.coveringZoomLevel({tileSize:l.tileSize,roundZoom:l.roundZoom}),h=!n||Math.abs(n.tileID.overscaledZ-u)>Math.abs(e.tileID.overscaledZ-u),f=h&&e.refreshedUponExpiration?1:t.clamp(h?a:1-c,0,1);return e.refreshedUponExpiration&&a>=1&&(e.refreshedUponExpiration=!1),n?{opacity:1,mix:1-f}:{opacity:f,mix:0}}return{opacity:1,mix:0}}class Fn extends t.SourceCache{constructor(t){const e={type:"raster-dem",maxzoom:t.transform.maxZoom},n=new M(jt(),null),r=Ft("mock-dem",e,n,t.style);super("mock-dem",r,!1),r.setEventedParent(this),this._sourceLoaded=!0}_loadTile(t,e){t.state="loaded",e(null)}}class Bn extends t.SourceCache{constructor(t){const e=Ft("proxy",{type:"geojson",maxzoom:t.transform.maxZoom},new M(jt(),null),t.style);super("proxy",e,!1),e.setEventedParent(this),this.map=this.getSource().map=t,this.used=this._sourceLoaded=!0,this.renderCache=[],this.renderCachePool=[],this.proxyCachedFBO={}}update(e,n,r){if(e.freezeTileCoverage)return;this.transform=e;const i=e.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}).reduce((n,r)=>{if(n[r.key]="",!this._tiles[r.key]){const n=new t.Tile(r,this._source.tileSize*r.overscaleFactor(),e.tileZoom);n.state="loaded",this._tiles[r.key]=n}return n},{});for(const t in this._tiles)t in i||(this.freeFBO(t),this._tiles[t].unloadVectorData(),delete this._tiles[t])}freeFBO(t){const e=this.proxyCachedFBO[t];if(void 0!==e){const n=Object.values(e);this.renderCachePool.push(...n),delete this.proxyCachedFBO[t]}}deallocRenderCache(){this.renderCache.forEach(t=>t.fb.destroy()),this.renderCache=[],this.renderCachePool=[],this.proxyCachedFBO={}}}class Ln extends t.OverscaledTileID{constructor(t,e,n){super(t.overscaledZ,t.wrap,t.canonical.z,t.canonical.x,t.canonical.y),this.proxyTileKey=e,this.projMatrix=n}}class On extends t.Elevation{constructor(e,n){super(),this.painter=e,this.terrainTileForTile={},this.prevTerrainTileForTile={};const[r,i,o]=function(e){const n=new t.StructArrayLayout2i4,r=new t.StructArrayLayout3ui6,i=131;n.reserve(17161),r.reserve(33800);const o=t.EXTENT/128,s=t.EXTENT+o/2,a=s+o;for(let e=-o;e<a;e+=o)for(let r=-o;r<a;r+=o){const i=r<0||r>s||e<0||e>s?24575:0,o=t.clamp(Math.round(r),0,t.EXTENT),a=t.clamp(Math.round(e),0,t.EXTENT);n.emplaceBack(o+i,a)}const c=(t,e)=>{const n=e*i+t;r.emplaceBack(n+1,n,n+i),r.emplaceBack(n+i,n+i+1,n+1)};for(let t=1;t<129;t++)for(let e=1;e<129;e++)c(e,t);return[0,129].forEach(t=>{for(let e=0;e<130;e++)c(e,t),c(t,e)}),[n,r,32768]}(),s=e.context;this.gridBuffer=s.createVertexBuffer(r,t.posAttributes.members),this.gridIndexBuffer=s.createIndexBuffer(i),this.gridSegments=t.SegmentVector.simpleSegment(0,0,r.length,i.length),this.gridNoSkirtSegments=t.SegmentVector.simpleSegment(0,0,r.length,o),this.proxyCoords=[],this.proxiedCoords={},this._visibleDemTiles=[],this._drapedRenderBatches=[],this._sourceTilesOverlap={},this.proxySourceCache=new Bn(n.map),this.orthoMatrix=t.create(),t.ortho(this.orthoMatrix,"globe"===this.painter.transform.projection.name?.015:0,t.EXTENT,0,t.EXTENT,0,1);const a=s.gl;this._overlapStencilMode=new t.StencilMode({func:a.GEQUAL,mask:255},0,255,a.KEEP,a.KEEP,a.REPLACE),this._previousZoom=e.transform.zoom,this.pool=[],this._findCoveringTileCache={},this._tilesDirty={},this.style=n,this._useVertexMorphing=!0,this._exaggeration=1,this._mockSourceCache=new Fn(n.map)}set style(t){t.on("data",this._onStyleDataEvent.bind(this)),t.on("neworder",this._checkRenderCacheEfficiency.bind(this)),this._style=t,this._checkRenderCacheEfficiency(),this._style.map.on("moveend",()=>{this._clearLineLayersFromRenderCache()})}update(e,n,r){if(e&&e.terrain){this._style!==e&&(this.style=e),this.enabled=!0;const i=e.terrain.properties;this.sourceCache=0===e.terrain.drapeRenderMode?this._mockSourceCache:e._getSourceCache(i.get("source")),this._exaggeration=i.get("exaggeration");const o=()=>{this.sourceCache.used&&t.warnOnce(`Raster DEM source '${this.sourceCache.id}' is used both for terrain and as layer source.\nThis leads to lower resolution of hillshade. For full hillshade resolution but higher memory consumption, define another raster DEM source.`);const e=this.getScaledDemTileSize();this.sourceCache.update(n,e,!0),this.resetTileLookupCache(this.sourceCache.id)};this.sourceCache.usedForTerrain||(this.resetTileLookupCache(this.sourceCache.id),this.sourceCache.usedForTerrain=!0,o(),this._initializing=!0),o(),n.updateElevation(!0,r),this.resetTileLookupCache(this.proxySourceCache.id),this.proxySourceCache.update(n),this._emptyDEMTextureDirty=!0}else this._disable()}resetTileLookupCache(t){this._findCoveringTileCache[t]={}}getScaledDemTileSize(){return this.sourceCache.getSource().tileSize/128*this.proxySourceCache.getSource().tileSize}_checkRenderCacheEfficiency(){const e=this.renderCacheEfficiency(this._style);this._style.map._optimizeForTerrain||100!==e.efficiency&&t.warnOnce(`Terrain render cache efficiency is not optimal (${e.efficiency}%) and performance\n may be affected negatively, consider placing all background, fill and line layers before layer\n with id '${e.firstUndrapedLayer}' or create a map using optimizeForTerrain: true option.`)}_onStyleDataEvent(t){t.coord&&"source"===t.dataType?this._clearRenderCacheForTile(t.sourceCacheId,t.coord):"style"===t.dataType&&(this._invalidateRenderCache=!0)}_disable(){if(this.enabled&&(this.enabled=!1,this._sharedDepthStencil=void 0,this.proxySourceCache.deallocRenderCache(),this._style))for(const t in this._style._sourceCaches)this._style._sourceCaches[t].usedForTerrain=!1}destroy(){this._disable(),this._emptyDEMTexture&&this._emptyDEMTexture.destroy(),this._emptyDepthBufferTexture&&this._emptyDepthBufferTexture.destroy(),this.pool.forEach(t=>t.fb.destroy()),this.pool=[],this._depthFBO&&(this._depthFBO.destroy(),this._depthFBO=void 0,this._depthTexture=void 0)}_source(){return this.enabled?this.sourceCache:null}isUsingMockSource(){return this.sourceCache===this._mockSourceCache}exaggeration(){return this._exaggeration}get visibleDemTiles(){return this._visibleDemTiles}get drapeBufferSize(){const t=2*this.proxySourceCache.getSource().tileSize;return[t,t]}set useVertexMorphing(t){this._useVertexMorphing=t}updateTileBinding(e){if(!this.enabled)return;this.prevTerrainTileForTile=this.terrainTileForTile;const n=this.proxySourceCache,r=this.painter.transform;this._initializing&&(this._initializing=0===r._centerAltitude&&-1===this.getAtPointOrZero(t.MercatorCoordinate.fromLngLat(r.center),-1),this._emptyDEMTextureDirty=!this._initializing);const i=this.proxyCoords=n.getIds().map(t=>{const e=n.getTileByID(t).tileID;return e.projMatrix=r.calculateProjMatrix(e.toUnwrapped()),e});!function(e,n){const r=n.transform.pointCoordinate(n.transform.getCameraPoint()),i=new t.Point(r.x,r.y);e.sort((e,n)=>{if(n.overscaledZ-e.overscaledZ)return n.overscaledZ-e.overscaledZ;const r=new t.Point(e.canonical.x+(1<<e.canonical.z)*e.wrap,e.canonical.y),o=new t.Point(n.canonical.x+(1<<n.canonical.z)*n.wrap,n.canonical.y),s=i.mult(1<<e.canonical.z);return s.x-=.5,s.y-=.5,s.distSqr(r)-s.distSqr(o)})}(i,this.painter),this._previousZoom=r.zoom;const o=this.proxyToSource||{};this.proxyToSource={},i.forEach(t=>{this.proxyToSource[t.key]={}}),this.terrainTileForTile={};const s=this._style._sourceCaches;for(const t in s){const n=s[t];if(!n.used)continue;if(n!==this.sourceCache&&this.resetTileLookupCache(n.id),this._setupProxiedCoordsForOrtho(n,e[t],o),n.usedForTerrain)continue;const r=e[t];n.getSource().reparseOverscaled&&this._assignTerrainTiles(r)}this.proxiedCoords[n.id]=i.map(t=>new Ln(t,t.key,this.orthoMatrix)),this._assignTerrainTiles(i),this._prepareDEMTextures(),this._setupDrapedRenderBatches(),this._initFBOPool(),this._setupRenderCache(o),this.renderingToTexture=!1,this._updateTimestamp=t.exported.now();const a={};this._visibleDemTiles=[];for(const t of this.proxyCoords){const e=this.terrainTileForTile[t.key];if(!e)continue;const n=e.tileID.key;n in a||(this._visibleDemTiles.push(e),a[n]=n)}}_assignTerrainTiles(t){this._initializing||t.forEach(t=>{if(this.terrainTileForTile[t.key])return;const e=this._findTileCoveringTileID(t,this.sourceCache);e&&(this.terrainTileForTile[t.key]=e)})}_prepareDEMTextures(){const t=this.painter.context,e=t.gl;for(const n in this.terrainTileForTile){const r=this.terrainTileForTile[n],i=r.dem;!i||r.demTexture&&!r.needsDEMTextureUpload||(t.activeTexture.set(e.TEXTURE1),_n(this.painter,r,i))}}_prepareDemTileUniforms(t,e,n,r){if(!e||null==e.demTexture)return!1;const i=t.tileID.canonical,o=Math.pow(2,e.tileID.canonical.z-i.z),s=r||"";return n["u_dem_tl"+s]=[i.x*o%1,i.y*o%1],n["u_dem_scale"+s]=o,!0}get emptyDEMTexture(){return!this._emptyDEMTextureDirty&&this._emptyDEMTexture?this._emptyDEMTexture:this._updateEmptyDEMTexture()}get emptyDepthBufferTexture(){const e=this.painter.context,n=e.gl;if(!this._emptyDepthBufferTexture){const r=new t.RGBAImage({width:1,height:1},Uint8Array.of(255,255,255,255));this._emptyDepthBufferTexture=new t.Texture(e,r,n.RGBA,{premultiply:!1})}return this._emptyDepthBufferTexture}_getLoadedAreaMinimum(){let t=0;const e=this._visibleDemTiles.reduce((e,n)=>{if(!n.dem)return e;const r=n.dem.tree.minimums[0];return r>0&&t++,e+r},0);return t?e/t:0}_updateEmptyDEMTexture(){const e=this.painter.context,n=e.gl;e.activeTexture.set(n.TEXTURE2);const r=this._getLoadedAreaMinimum(),i=new t.RGBAImage({width:1,height:1},new Uint8Array(t.DEMData.pack(r,this.sourceCache.getSource().encoding)));this._emptyDEMTextureDirty=!1;let o=this._emptyDEMTexture;return o?o.update(i,{premultiply:!1}):o=this._emptyDEMTexture=new t.Texture(e,i,n.RGBA,{premultiply:!1}),o}setupElevationDraw(e,n,r){const i=this.painter.context,o=i.gl,s=(a=this.sourceCache.getSource().encoding,{u_dem:2,u_dem_prev:4,u_dem_unpack:t.DEMData.getUnpackVector(a),u_dem_tl:[0,0],u_dem_tl_prev:[0,0],u_dem_scale:0,u_dem_scale_prev:0,u_dem_size:0,u_dem_lerp:1,u_depth:3,u_depth_size_inv:[0,0],u_exaggeration:0});var a;s.u_dem_size=this.sourceCache.getSource().tileSize,s.u_exaggeration=this.exaggeration();let c=null,l=null,u=1;if(r&&r.morphing&&this._useVertexMorphing){const t=r.morphing.srcDemTile,n=r.morphing.dstDemTile;
27u=r.morphing.phase,t&&n&&(this._prepareDemTileUniforms(e,t,s,"_prev")&&(l=t),this._prepareDemTileUniforms(e,n,s)&&(c=n))}if(l&&c?(i.activeTexture.set(o.TEXTURE2),c.demTexture.bind(o.NEAREST,o.CLAMP_TO_EDGE,o.NEAREST),i.activeTexture.set(o.TEXTURE4),l.demTexture.bind(o.NEAREST,o.CLAMP_TO_EDGE,o.NEAREST),s.u_dem_lerp=u):(c=this.terrainTileForTile[e.tileID.key],i.activeTexture.set(o.TEXTURE2),(this._prepareDemTileUniforms(e,c,s)?c.demTexture:this.emptyDEMTexture).bind(o.NEAREST,o.CLAMP_TO_EDGE)),i.activeTexture.set(o.TEXTURE3),r&&r.useDepthForOcclusion?(this._depthTexture&&this._depthTexture.bind(o.NEAREST,o.CLAMP_TO_EDGE),this._depthFBO&&(s.u_depth_size_inv=[1/this._depthFBO.width,1/this._depthFBO.height])):(this.emptyDepthBufferTexture.bind(o.NEAREST,o.CLAMP_TO_EDGE),s.u_depth_size_inv=[1,1]),r&&r.useMeterToDem&&c){const e=(1<<c.tileID.canonical.z)*t.mercatorZfromAltitude(1,this.painter.transform.center.lat)*this.sourceCache.getSource().tileSize;s.u_meter_to_dem=e}if(r&&r.labelPlaneMatrixInv&&(s.u_label_plane_matrix_inv=r.labelPlaneMatrixInv),n.setTerrainUniformValues(i,s),"globe"===this.painter.transform.projection.name){const t=this.globeUniformValues(this.painter.transform,e.tileID.canonical,r&&r.useDenormalizedUpVectorScale);n.setGlobeUniformValues(i,t)}}globeUniformValues(e,n,r){const i=e.projection;return{u_tile_tl_up:i.upVector(n,0,0),u_tile_tr_up:i.upVector(n,t.EXTENT,0),u_tile_br_up:i.upVector(n,t.EXTENT,t.EXTENT),u_tile_bl_up:i.upVector(n,0,t.EXTENT),u_tile_up_scale:r?t.globeMetersToEcef(1):i.upVectorScale(n,e.center.lat,e.worldSize).metersToTile}}renderToBackBuffer(e){const n=this.painter,r=this.painter.context;0!==e.length&&(r.bindFramebuffer.set(null),r.viewport.set([0,0,n.width,n.height]),n.gpuTimingDeferredRenderStart(),this.renderingToTexture=!1,function(e,n,r,i,o){if("globe"===e.transform.projection.name)!function(e,n,r,i,o){const s=e.context,a=s.gl;let c,l;const u=e.options.showTerrainWireframe?2:0,h=e.transform,f=t.globeUseCustomAntiAliasing(e,s,h),d=(t,n)=>{if(l===t)return;const r=[Cn[t],"PROJECTION_GLOBE_VIEW"];f&&r.push("CUSTOM_ANTIALIASING"),n&&r.push(Cn[u]),c=e.useProgram("globeRaster",null,r),l=t},p=e.colorModeForRenderPass(),g=new t.DepthMode(a.LEQUAL,t.DepthMode.ReadWrite,e.depthRangeFor3D);Sn.update(o);const m=t.calculateGlobeMercatorMatrix(h),y=[t.mercatorXfromLng(h.center.lng),t.mercatorYfromLat(h.center.lat)],_=u?[!1,!0]:[!1],v=e.globeSharedBuffers,b=[h.width*t.exported.devicePixelRatio,h.height*t.exported.devicePixelRatio],x=Float32Array.from(h.globeMatrix),w={useDenormalizedUpVectorScale:!0};if(_.forEach(u=>{const h=e.transform,f=An(h.zoom)*n.exaggeration();l=-1;const _=u?a.LINES:a.TRIANGLES;for(const l of i){const i=r.getTile(l),E=t.StencilMode.disabled,S=n.prevTerrainTileForTile[l.key],C=n.terrainTileForTile[l.key];En(S,C)&&Sn.newMorphing(l.key,S,C,o,250),s.activeTexture.set(a.TEXTURE0),i.texture.bind(a.LINEAR,a.CLAMP_TO_EDGE);const A=Sn.getMorphValuesForProxy(l.key),I=A?1:0;A&&t.extend$1(w,{morphing:{srcDemTile:A.from,dstDemTile:A.to,phase:t.easeCubicInOut(A.phase)}});const T=t.tileCornersToBounds(l.canonical),M=t.getLatitudinalLod(T.getCenter().lat),F=t.getGridMatrix(l.canonical,T,M,h.worldSize/h._pixelsPerMercatorPixel),B=t.globeNormalizeECEF(t.globeTileBounds(l.canonical)),L=wn(h.projMatrix,x,m,B,t.globeToMercatorTransition(h.zoom),y,h.frustumCorners.TL,h.frustumCorners.TR,h.frustumCorners.BR,h.frustumCorners.BL,h.globeCenterInViewSpace,h.globeRadius,b,f,F);if(d(I,u),n.setupElevationDraw(i,c,w),e.prepareDrawProgram(s,c,l.toUnwrapped()),v){const[n,r,i]=u?v.getWirefameBuffers(e.context,M):v.getGridBuffers(M,0!==f);c.draw(s,_,g,E,p,t.CullFaceMode.backCCW,L,"globe_raster",n,r,i)}}}),v){const o=["GLOBE_POLES","PROJECTION_GLOBE_VIEW"];f&&o.push("CUSTOM_ANTIALIASING"),c=e.useProgram("globeRaster",null,o);for(const o of i){const{x:i,y:l,z:u}=o.canonical,f=0===l,d=l===(1<<u)-1,[m,_,x,E]=v.getPoleBuffers(u);if(E&&(f||d)){const l=r.getTile(o);s.activeTexture.set(a.TEXTURE0),l.texture.bind(a.LINEAR,a.CLAMP_TO_EDGE);let v=t.globePoleMatrixForTile(u,i,h);const S=t.globeNormalizeECEF(t.globeTileBounds(o.canonical)),C=(e,n)=>e.draw(s,a.TRIANGLES,g,t.StencilMode.disabled,p,t.CullFaceMode.disabled,wn(h.projMatrix,v,v,S,0,y,h.frustumCorners.TL,h.frustumCorners.TR,h.frustumCorners.BR,h.frustumCorners.BL,h.globeCenterInViewSpace,h.globeRadius,b,0),"globe_pole_raster",n,x,E);n.setupElevationDraw(l,c,w),e.prepareDrawProgram(s,c,o.toUnwrapped()),f&&C(c,m),d&&(v=t.scale(t.create(),v,[1,-1,1]),C(c,_))}}}}(e,n,r,i,o);else{const s=e.context,a=s.gl;let c,l;const u=e.options.showTerrainWireframe?2:0,h=(t,n)=>{if(l===t)return;const r=[Cn[t]];n&&r.push(Cn[u]),c=e.useProgram("terrainRaster",null,r),l=t},f=e.colorModeForRenderPass(),d=new t.DepthMode(a.LEQUAL,t.DepthMode.ReadWrite,e.depthRangeFor3D);Sn.update(o);const p=e.transform,g=An(p.zoom)*n.exaggeration();
vendor: 13,001 bytes, line 27
27(u?[!1,!0]:[!1]).forEach(u=>{l=-1;const m=u?a.LINES:a.TRIANGLES,[y,_]=u?n.getWirefameBuffer():[n.gridIndexBuffer,n.gridSegments];for(const l of i){const i=r.getTile(l),v=t.StencilMode.disabled,b=n.prevTerrainTileForTile[l.key],x=n.terrainTileForTile[l.key];En(b,x)&&Sn.newMorphing(l.key,b,x,o,250),s.activeTexture.set(a.TEXTURE0),i.texture.bind(a.LINEAR,a.CLAMP_TO_EDGE,a.LINEAR_MIPMAP_NEAREST);const w=Sn.getMorphValuesForProxy(l.key),E=w?1:0;let S;w&&(S={morphing:{srcDemTile:w.from,dstDemTile:w.to,phase:t.easeCubicInOut(w.phase)}});const C=xn(l.projMatrix,In(l.canonical,p.renderWorldCopies)?g/10:g);h(E,u),n.setupElevationDraw(i,c,S),e.prepareDrawProgram(s,c,l.toUnwrapped()),c.draw(s,m,d,v,f,t.CullFaceMode.backCCW,C,"terrain_raster",n.gridBuffer,y,_)}})}}(n,this,this.proxySourceCache,e,this._updateTimestamp),this.renderingToTexture=!0,n.gpuTimingDeferredRenderEnd(),e.splice(0,e.length))}renderBatch(e){if(0===this._drapedRenderBatches.length)return e+1;this.renderingToTexture=!0;const n=this.painter,r=this.painter.context,i=this.proxySourceCache,o=this.proxiedCoords[i.id],s=this._drapedRenderBatches.shift(),a=[],c=n.style.order;let l=0;for(const u of o){const o=i.getTileByID(u.proxyTileKey),h=i.proxyCachedFBO[u.key]?i.proxyCachedFBO[u.key][e]:void 0,f=void 0!==h?i.renderCache[h]:this.pool[l++],d=void 0!==h;if(o.texture=f.tex,d&&!f.dirty){a.push(o.tileID);continue}let p;r.bindFramebuffer.set(f.fb.framebuffer),this.renderedToTile=!1,f.dirty&&(r.clear({color:t.Color.transparent,stencil:0}),f.dirty=!1);for(let t=s.start;t<=s.end;++t){const e=n.style._layers[c[t]];if(e.isHidden(n.transform.zoom))continue;const i=n.style._getLayerSourceCache(e),o=i?this.proxyToSource[u.key][i.id]:[u];if(!o)continue;const s=o;r.viewport.set([0,0,f.fb.width,f.fb.height]),p!==(i?i.id:null)&&(this._setupStencil(f,o,e,i),p=i?i.id:null),n.renderLayer(n,i,e,s)}this.renderedToTile?(f.dirty=!0,a.push(o.tileID)):d||--l,5===l&&(l=0,this.renderToBackBuffer(a))}return this.renderToBackBuffer(a),this.renderingToTexture=!1,r.bindFramebuffer.set(null),r.viewport.set([0,0,n.width,n.height]),s.end+1}postRender(){}renderCacheEfficiency(t){const e=t.order.length;if(0===e)return{efficiency:100};let n,r=0,i=0,o=!1;for(let s=0;s<e;++s){const e=t._layers[t.order[s]];this._style.isLayerDraped(e)?(o&&++r,++i):o||(o=!0,n=e.id)}return 0===i?{efficiency:100}:{efficiency:100*(1-r/i),firstUndrapedLayer:n}}getMinElevationBelowMSL(){let t=0;return this._visibleDemTiles.filter(t=>t.dem).forEach(e=>{t=Math.min(t,e.dem.tree.minimums[0])}),0===t?t:(t-30)*this._exaggeration}raycast(t,e,n){if(!this._visibleDemTiles)return null;const r=this._visibleDemTiles.filter(t=>t.dem).map(r=>{const i=r.tileID,o=1<<i.overscaledZ,{x:s,y:a}=i.canonical,c=s/o,l=(s+1)/o,u=a/o,h=(a+1)/o;return{minx:c,miny:u,maxx:l,maxy:h,t:r.dem.tree.raycastRoot(c,u,l,h,t,e,n),tile:r}});r.sort((t,e)=>(null!==t.t?t.t:Number.MAX_VALUE)-(null!==e.t?e.t:Number.MAX_VALUE));for(const i of r){if(null==i.t)return null;const r=i.tile.dem.tree.raycast(i.minx,i.miny,i.maxx,i.maxy,t,e,n);if(null!=r)return r}return null}_createFBO(){const e=this.painter.context,n=e.gl,r=this.drapeBufferSize;e.activeTexture.set(n.TEXTURE0);const i=new t.Texture(e,{width:r[0],height:r[1],data:null},n.RGBA);i.bind(n.LINEAR,n.CLAMP_TO_EDGE);const o=e.createFramebuffer(r[0],r[1],!1);return o.colorAttachment.set(i.texture),o.depthAttachment=new wt(e,o.framebuffer),void 0===this._sharedDepthStencil?(this._sharedDepthStencil=e.createRenderbuffer(e.gl.DEPTH_STENCIL,r[0],r[1]),this._stencilRef=0,o.depthAttachment.set(this._sharedDepthStencil),e.clear({stencil:0})):o.depthAttachment.set(this._sharedDepthStencil),e.extTextureFilterAnisotropic&&!e.extTextureFilterAnisotropicForceOff&&n.texParameterf(n.TEXTURE_2D,e.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,e.extTextureFilterAnisotropicMax),{fb:o,tex:i,dirty:!1}}_initFBOPool(){for(;this.pool.length<Math.min(5,this.proxyCoords.length);)this.pool.push(this._createFBO())}_shouldDisableRenderCache(){if(this._style.light&&this._style.light.hasTransition())return!0;for(const t in this._style._sourceCaches)if(this._style._sourceCaches[t].hasTransition())return!0;return this._style.order.some(t=>{const e=this._style._layers[t],n=e.isHidden(this.painter.transform.zoom);return"custom"===e.type?!n&&e.shouldRedrape():!n&&e.hasTransition()})}_clearLineLayersFromRenderCache(){let e=!1;for(const t of this._style._getSources())if(t instanceof Ct){e=!0;break}if(!e)return;const n={};for(let e=0;e<this._style.order.length;++e){const r=this._style._layers[this._style.order[e]],i=this._style._getLayerSourceCache(r);if(i&&!n[i.id]&&!r.isHidden(this.painter.transform.zoom)&&"line"===r.type&&r.widthExpression()instanceof t.ZoomDependentExpression){n[i.id]=!0;for(const t of this.proxyCoords){const e=this.proxyToSource[t.key][i.id];if(e)for(const t of e)this._clearRenderCacheForTile(i.id,t)}}}}_clearRasterLayersFromRenderCache(){let t=!1;for(const e in this._style._sourceCaches)if(this._style._sourceCaches[e]._source instanceof At){t=!0;break}if(!t)return;const e={};for(let t=0;t<this._style.order.length;++t){const n=this._style._layers[this._style.order[t]],r=this._style._getLayerSourceCache(n);if(!r||e[r.id])continue;if(n.isHidden(this.painter.transform.zoom)||"raster"!==n.type)continue;const i=n.paint.get("raster-fade-duration");for(const t of this.proxyCoords){const e=this.proxyToSource[t.key][r.id];if(e)for(const t of e){const e=Mn(r.getTile(t),r.findLoadedParent(t,0),r,this.painter.transform,i);(1!==e.opacity||0!==e.mix)&&this._clearRenderCacheForTile(r.id,t)}}}}_setupDrapedRenderBatches(){const t=this._style.order,e=t.length;if(0===e)return;const n=[];let r,i=0,o=this._style._layers[t[i]];for(;!this._style.isLayerDraped(o)&&o.isHidden(this.painter.transform.zoom)&&++i<e;)o=this._style._layers[t[i]];for(;i<e;++i){const e=this._style._layers[t[i]];e.isHidden(this.painter.transform.zoom)||(this._style.isLayerDraped(e)?void 0===r&&(r=i):void 0!==r&&(n.push({start:r,end:i-1}),r=void 0))}void 0!==r&&n.push({start:r,end:i-1}),this._drapedRenderBatches=n}_setupRenderCache(t){const e=this.proxySourceCache;if(this._shouldDisableRenderCache()||this._invalidateRenderCache){if(this._invalidateRenderCache=!1,e.renderCache.length>e.renderCachePool.length){const t=Object.values(e.proxyCachedFBO);e.proxyCachedFBO={};for(let n=0;n<t.length;++n){const r=Object.values(t[n]);e.renderCachePool.push(...r)}}return}this._clearRasterLayersFromRenderCache();const n=this.proxyCoords,r=this._tilesDirty;for(let i=n.length-1;i>=0;i--){const o=n[i];if(e.getTileByID(o.key),void 0!==e.proxyCachedFBO[o.key]){const n=t[o.key],i=this.proxyToSource[o.key];let s=0;for(const t in i){const e=i[t],o=n[t];if(!o||o.length!==e.length||e.some((e,n)=>e!==o[n]||r[t]&&r[t].hasOwnProperty(e.key))){s=-1;break}++s}for(const t in e.proxyCachedFBO[o.key])e.renderCache[e.proxyCachedFBO[o.key][t]].dirty=s<0||s!==Object.values(n).length}}const i=[...this._drapedRenderBatches];i.sort((t,e)=>e.end-e.start-(t.end-t.start));for(const t of i)for(const r of n){if(e.proxyCachedFBO[r.key])continue;let n=e.renderCachePool.pop();void 0===n&&e.renderCache.length<50&&(n=e.renderCache.length,e.renderCache.push(this._createFBO())),void 0!==n&&(e.proxyCachedFBO[r.key]={},e.proxyCachedFBO[r.key][t.start]=n,e.renderCache[n].dirty=!0)}this._tilesDirty={}}_setupStencil(t,e,n,r){if(!r||!this._sourceTilesOverlap[r.id])return void(this._overlapStencilType&&(this._overlapStencilType=!1));const i=this.painter.context,o=i.gl;if(e.length<=1)return void(this._overlapStencilType=!1);let s;if(n.isTileClipped())s=e.length,this._overlapStencilMode.test={func:o.EQUAL,mask:255},this._overlapStencilType="Clip";else{if(!(e[0].overscaledZ>e[e.length-1].overscaledZ))return void(this._overlapStencilType=!1);s=1,this._overlapStencilMode.test={func:o.GREATER,mask:255},this._overlapStencilType="Mask"}this._stencilRef+s>255&&(i.clear({stencil:0}),this._stencilRef=0),this._stencilRef+=s,this._overlapStencilMode.ref=this._stencilRef,n.isTileClipped()&&this._renderTileClippingMasks(e,this._overlapStencilMode.ref)}clipOrMaskOverlapStencilType(){return"Clip"===this._overlapStencilType||"Mask"===this._overlapStencilType}stencilModeForRTTOverlap(e){return this.renderingToTexture&&this._overlapStencilType?("Clip"===this._overlapStencilType&&(this._overlapStencilMode.ref=this.painter._tileClippingMaskIDs[e.key]),this._overlapStencilMode):t.StencilMode.disabled}_renderTileClippingMasks(e,n){const r=this.painter,i=this.painter.context,o=i.gl;r._tileClippingMaskIDs={},i.setColorMode(t.ColorMode.disabled),i.setDepthMode(t.DepthMode.disabled);const s=r.useProgram("clippingMask");for(const a of e){const e=r._tileClippingMaskIDs[a.key]=--n;s.draw(i,o.TRIANGLES,t.DepthMode.disabled,new t.StencilMode({func:o.ALWAYS,mask:0},e,255,o.KEEP,o.KEEP,o.REPLACE),t.ColorMode.disabled,t.CullFaceMode.disabled,Tn(a.projMatrix),"$clipping",r.tileExtentBuffer,r.quadTriangleIndexBuffer,r.tileExtentSegments)}}pointCoordinate(e){const n=this.painter.transform;if(e.x<0||e.x>n.width||e.y<0||e.y>n.height)return null;const r=[e.x,e.y,1,1];t.transformMat4$1(r,r,n.pixelMatrixInverse),t.scale$1(r,r,1/r[3]),r[0]/=n.worldSize,r[1]/=n.worldSize;const i=n._camera.position,o=t.mercatorZfromAltitude(1,n.center.lat),s=[i[0],i[1],i[2]/o,0],a=t.subtract([],r.slice(0,3),s);t.normalize(a,a);const c=this.raycast(s,a,this._exaggeration);return null!==c&&c?(t.scaleAndAdd(s,s,a,c),s[3]=s[2],s[2]*=o,s):null}drawDepth(){const e=this.painter,n=e.context,r=this.proxySourceCache,i=Math.ceil(e.width),o=Math.ceil(e.height);if(!this._depthFBO||this._depthFBO.width===i&&this._depthFBO.height===o||(this._depthFBO.destroy(),this._depthFBO=void 0,this._depthTexture=void 0),!this._depthFBO){const e=n.gl,r=n.createFramebuffer(i,o,!0);n.activeTexture.set(e.TEXTURE0);const s=new t.Texture(n,{width:i,height:o,data:null},e.RGBA);s.bind(e.NEAREST,e.CLAMP_TO_EDGE),r.colorAttachment.set(s.texture);const a=n.createRenderbuffer(n.gl.DEPTH_COMPONENT16,i,o);r.depthAttachment.set(a),this._depthFBO=r,this._depthTexture=s}n.bindFramebuffer.set(this._depthFBO.framebuffer),n.viewport.set([0,0,i,o]),function(e,n,r,i){if("globe"===e.transform.projection.name)return;const o=e.context,s=o.gl;o.clear({depth:1});const a=e.useProgram("terrainDepth"),c=new t.DepthMode(s.LESS,t.DepthMode.ReadWrite,e.depthRangeFor3D);for(const e of i){const i=r.getTile(e),l=xn(e.projMatrix,0);n.setupElevationDraw(i,a),a.draw(o,s.TRIANGLES,c,t.StencilMode.disabled,t.ColorMode.unblended,t.CullFaceMode.backCCW,l,"terrain_depth",n.gridBuffer,n.gridIndexBuffer,n.gridNoSkirtSegments)}}(e,this,r,this.proxyCoords)}_setupProxiedCoordsForOrtho(t,e,n){if(t.getSource()instanceof Tt)return this._setupProxiedCoordsForImageSource(t,e,n);this._findCoveringTileCache[t.id]=this._findCoveringTileCache[t.id]||{};const r=this.proxiedCoords[t.id]=[],i=this.proxyCoords;for(let e=0;e<i.length;e++){const o=i[e],s=this._findTileCoveringTileID(o,t);if(s){const e=this._createProxiedId(o,s,n[o.key]&&n[o.key][t.id]);r.push(e),this.proxyToSource[o.key][t.id]=[e]}}let o=!1;for(let i=0;i<e.length;i++){const s=t.getTile(e[i]);if(!s||!s.hasData())continue;const a=this._findTileCoveringTileID(s.tileID,this.proxySourceCache);if(a&&a.tileID.canonical.z!==s.tileID.canonical.z){const e=this.proxyToSource[a.tileID.key][t.id],i=this._createProxiedId(a.tileID,s,n[a.tileID.key]&&n[a.tileID.key][t.id]);e?e.splice(e.length-1,0,i):this.proxyToSource[a.tileID.key][t.id]=[i],r.push(i),o=!0}}this._sourceTilesOverlap[t.id]=o}_setupProxiedCoordsForImageSource(e,n,r){if(!e.getSource().loaded())return;const i=this.proxiedCoords[e.id]=[],o=this.proxyCoords,s=e.getSource(),a=new t.Point(s.tileID.x,s.tileID.y)._div(1<<s.tileID.z),c=s.coordinates.map(t.MercatorCoordinate.fromLngLat).reduce((t,e)=>(t.min.x=Math.min(t.min.x,e.x-a.x),t.min.y=Math.min(t.min.y,e.y-a.y),t.max.x=Math.max(t.max.x,e.x-a.x),t.max.y=Math.max(t.max.y,e.y-a.y),t),{min:new t.Point(Number.MAX_VALUE,Number.MAX_VALUE),max:new t.Point(-Number.MAX_VALUE,-Number.MAX_VALUE)}),l=(e,n)=>{const r=e.wrap+e.canonical.x/(1<<e.canonical.z),i=e.canonical.y/(1<<e.canonical.z),o=t.EXTENT/(1<<e.canonical.z),s=n.wrap+n.canonical.x/(1<<n.canonical.z),a=n.canonical.y/(1<<n.canonical.z);return r+o<s+c.min.x||r>s+c.max.x||i+o<a+c.min.y||i>a+c.max.y};for(let t=0;t<o.length;t++){const s=o[t];for(let t=0;t<n.length;t++){const o=e.getTile(n[t]);if(!o||!o.hasData())continue;if(l(s,o.tileID))continue;const a=this._createProxiedId(s,o,r[s.key]&&r[s.key][e.id]),c=this.proxyToSource[s.key][e.id];c?c.push(a):this.proxyToSource[s.key][e.id]=[a],i.push(a)}}}_createProxiedId(e,n,r){let i=this.orthoMatrix;if(r){const t=r.find(t=>t.key===n.tileID.key);if(t)return t}if(n.tileID.key!==e.key){const r=e.canonical.z-n.tileID.canonical.z;let o,s,a;i=t.create();const c=n.tileID.wrap-e.wrap<<e.overscaledZ;r>0?(o=t.EXTENT>>r,s=o*((n.tileID.canonical.x<<r)-e.canonical.x+c),a=o*((n.tileID.canonical.y<<r)-e.canonical.y)):(o=t.EXTENT<<-r,s=t.EXTENT*(n.tileID.canonical.x-(e.canonical.x+c<<-r)),a=t.
27EXTENT*(n.tileID.canonical.y-(e.canonical.y<<-r))),t.ortho(i,0,o,0,o,0,1),t.translate(i,i,[s,a,0])}return new Ln(n.tileID,e.key,i)}_findTileCoveringTileID(e,n){let r=n.getTile(e);if(r&&r.hasData())return r;const i=this._findCoveringTileCache[n.id],o=i[e.key];if(r=o?n.getTileByID(o):null,r&&r.hasData()||null===o)return r;let s=r?r.tileID:e,a=s.overscaledZ;const c=n.getSource().minzoom,l=[];if(!o){const i=n.getSource().maxzoom;if(e.canonical.z>=i){const r=e.canonical.z-i;n.getSource().reparseOverscaled?(a=Math.max(e.canonical.z+2,n.transform.tileZoom),s=new t.OverscaledTileID(a,e.wrap,i,e.canonical.x>>r,e.canonical.y>>r)):0!==r&&(a=i,s=new t.OverscaledTileID(a,e.wrap,i,e.canonical.x>>r,e.canonical.y>>r))}s.key!==e.key&&(l.push(s.key),r=n.getTile(s))}const u=t=>{l.forEach(e=>{i[e]=t}),l.length=0};for(a-=1;a>=c&&(!r||!r.hasData());a--){r&&u(r.tileID.key);const t=s.calculateScaledKey(a);if(r=n.getTileByID(t),r&&r.hasData())break;const e=i[t];if(null===e)break;void 0===e?l.push(t):r=n.getTileByID(e)}return u(r?r.tileID.key:null),r&&r.hasData()?r:null}findDEMTileFor(t){return this.enabled?this._findTileCoveringTileID(t,this.sourceCache):null}prepareDrawTile(){this.renderedToTile=!0}_clearRenderCacheForTile(t,e){let n=this._tilesDirty[t];n||(n=this._tilesDirty[t]={}),n[e.key]=!0}getWirefameBuffer(){if(!this.wireframeSegments){const e=function(e){let n=0;const r=new t.StructArrayLayout2ui4,i=131;for(let t=1;t<129;t++){for(let e=1;e<129;e++)n=t*i+e,r.emplaceBack(n,n+1),r.emplaceBack(n,n+i),r.emplaceBack(n+1,n+i),128===t&&r.emplaceBack(n+i,n+i+1);r.emplaceBack(n+1,n+1+i)}return r}();this.wireframeIndexBuffer=this.painter.context.createIndexBuffer(e),this.wireframeSegments=t.SegmentVector.simpleSegment(0,0,this.gridBuffer.length,e.length)}return[this.wireframeIndexBuffer,this.wireframeSegments]}}class Un{static cacheKey(t,e,n,r){let i=`${e}${r?r.cacheKey:""}`;for(const e of n)t.usedDefines.includes(e)&&(i+="/"+e);return i}constructor(e,n,r,i,o,s){const a=e.gl;this.program=a.createProgram();const c=function(t){const e=[];for(let n=0;n<t.length;n++){if(null===t[n])continue;const r=t[n].split(" ");e.push(r.pop())}return e}(r.staticAttributes),l=i?i.getBinderAttributes():[],u=c.concat(l);let h=i?i.defines():[];h=h.concat(s.map(t=>"#define "+t));const f=e.isWebGL2?"#version 300 es\n":"",d=f+h.concat(e.extStandardDerivatives&&0===f.length?"#extension GL_OES_standard_derivatives : enable\n".concat(hn):hn,hn,un,ln.fragmentSource,an.fragmentSource,r.fragmentSource).join("\n"),p=f+h.concat("\n#ifdef GL_ES\nprecision highp float;\n#else\n\n#if !defined(lowp)\n#define lowp\n#endif\n\n#if !defined(mediump)\n#define mediump\n#endif\n\n#if !defined(highp)\n#define highp\n#endif\n\n#endif",un,ln.vertexSource,an.vertexSource,sn.vertexSource,r.vertexSource).join("\n"),g=a.createShader(a.FRAGMENT_SHADER);if(a.isContextLost())return void(this.failedToCreate=!0);a.shaderSource(g,d),a.compileShader(g),a.attachShader(this.program,g);const m=a.createShader(a.VERTEX_SHADER);if(a.isContextLost())this.failedToCreate=!0;else{a.shaderSource(m,p),a.compileShader(m),a.attachShader(this.program,m),this.attributes={},this.numAttributes=u.length;for(let t=0;t<this.numAttributes;t++)u[t]&&(a.bindAttribLocation(this.program,t,u[t]),this.attributes[u[t]]=t);a.linkProgram(this.program),a.deleteShader(m),a.deleteShader(g),this.fixedUniforms=o(e),this.binderUniforms=i?i.getUniforms(e):[],s.includes("TERRAIN")&&(this.terrainUniforms=(e=>({u_dem:new t.Uniform1i(e),u_dem_prev:new t.Uniform1i(e),u_dem_unpack:new t.Uniform4f(e),u_dem_tl:new t.Uniform2f(e),u_dem_scale:new t.Uniform1f(e),u_dem_tl_prev:new t.Uniform2f(e),u_dem_scale_prev:new t.Uniform1f(e),u_dem_size:new t.Uniform1f(e),u_dem_lerp:new t.Uniform1f(e),u_exaggeration:new t.Uniform1f(e),u_depth:new t.Uniform1i(e),u_depth_size_inv:new t.Uniform2f(e),u_meter_to_dem:new t.Uniform1f(e),u_label_plane_matrix_inv:new t.UniformMatrix4f(e)}))(e)),s.includes("GLOBE")&&(this.globeUniforms=(e=>({u_tile_tl_up:new t.Uniform3f(e),u_tile_tr_up:new t.Uniform3f(e),u_tile_br_up:new t.Uniform3f(e),u_tile_bl_up:new t.Uniform3f(e),u_tile_up_scale:new t.Uniform1f(e)}))(e)),s.includes("FOG")&&(this.fogUniforms=(e=>({u_fog_matrix:new t.UniformMatrix4f(e),u_fog_range:new t.Uniform2f(e),u_fog_color:new t.Uniform4f(e),u_fog_horizon_blend:new t.Uniform1f(e),u_fog_temporal_offset:new t.Uniform1f(e),u_frustum_tl:new t.Uniform3f(e),u_frustum_tr:new t.Uniform3f(e),u_frustum_br:new t.Uniform3f(e),u_frustum_bl:new t.Uniform3f(e),u_globe_pos:new t.Uniform3f(e),u_globe_radius:new t.Uniform1f(e),u_globe_transition:new t.Uniform1f(e),u_is_globe:new t.Uniform1i(e),u_viewport:new t.Uniform2f(e)}))(e))}}setTerrainUniformValues(t,e){if(!this.terrainUniforms)return;const n=this.terrainUniforms;if(!this.failedToCreate){t.program.set(this.program);for(const t in e)n[t]&&n[t].set(this.program,t,e[t])}}setGlobeUniformValues(t,e){if(!this.globeUniforms)return;const n=this.globeUniforms;if(!this.failedToCreate){t.program.set(this.program);for(const t in e)n[t]&&n[t].set(this.program,t,e[t])}}setFogUniformValues(t,e){if(!this.fogUniforms)return;const n=this.fogUniforms;if(!this.failedToCreate){t.program.set(this.program);for(const t in e)n[t].set(this.program,t,e[t])}}draw(t,e,n,r,i,o,s,a,c,l,u,h,f,d,p){const g=t.gl;if(this.failedToCreate)return;t.program.set(this.program),t.setDepthMode(n),t.setStencilMode(r),t.setColorMode(i),t.setCullFace(o);for(const t of Object.keys(this.fixedUniforms))this.fixedUniforms[t].set(this.program,t,s[t]);d&&d.setUniforms(this.program,t,this.binderUniforms,h,{zoom:f});const m={[g.LINES]:2,[g.TRIANGLES]:3,[g.LINE_STRIP]:1}[e];for(const n of u.get()){const r=n.vaos||(n.vaos={});(r[a]||(r[a]=new gn)).bind(t,this,c,d?d.getPaintVertexBuffers():[],l,n.vertexOffset,p||[]),g.drawElements(e,n.primitiveLength*m,g.UNSIGNED_SHORT,n.primitiveOffset*m*2)}}}
vendor: 16,670 bytes, line 27
27function kn(t,e){const n=Math.pow(2,e.tileID.overscaledZ),r=e.tileSize*Math.pow(2,t.transform.tileZoom)/n,i=r*(e.tileID.canonical.x+e.tileID.wrap*n),o=r*e.tileID.canonical.y;return{u_image:0,u_texsize:e.imageAtlasTexture.size,u_tile_units_to_pixels:1/F(e,1,t.transform.tileZoom),u_pixel_coord_upper:[i>>16,o>>16],u_pixel_coord_lower:[65535&i,65535&o]}}const Pn=t.create(),Dn=(e,n,r,i,o,s,a,c,l,u,h)=>{const f=n.style.light,d=f.properties.get("position"),p=[d.x,d.y,d.z],g=t.create$1();"viewport"===f.properties.get("anchor")&&(t.fromRotation(g,-n.transform.angle),t.transformMat3(p,p,g));const m=f.properties.get("color"),y=n.transform,_={u_matrix:e,u_lightpos:p,u_lightintensity:f.properties.get("intensity"),u_lightcolor:[m.r,m.g,m.b],u_vertical_gradient:+r,u_opacity:i,u_tile_id:[0,0,0],u_zoom_transition:0,u_inv_rot_matrix:Pn,u_merc_center:[0,0],u_up_dir:[0,0,0],u_height_lift:0,u_ao:o,u_edge_radius:s};return"globe"===y.projection.name&&(_.u_tile_id=[a.canonical.x,a.canonical.y,1<<a.canonical.z],_.u_zoom_transition=l,_.u_inv_rot_matrix=h,_.u_merc_center=u,_.u_up_dir=y.projection.upVector(new t.CanonicalTileID(0,0,0),u[0]*t.EXTENT,u[1]*t.EXTENT),_.u_height_lift=c),_},Rn=(e,n,r,i,o,s,a,c,l,u,h,f)=>{const d=Dn(e,n,r,i,o,s,a,l,u,h,f),p={u_height_factor:-Math.pow(2,a.overscaledZ)/c.tileSize/8};return t.extend(d,kn(n,c),p)},jn=t=>({u_matrix:t}),zn=(e,n,r)=>t.extend(jn(e),kn(n,r)),Qn=(t,e)=>({u_matrix:t,u_world:e}),Nn=(e,n,r,i)=>t.extend(zn(e,n,r),{u_world:i}),Vn=t.create(),Gn=(e,n,r,i,o,s)=>{const a=e.transform,c="globe"===a.projection.name;let l;if("map"===s.paint.get("circle-pitch-alignment"))if(c){const e=t.globePixelsToTileUnits(a.zoom,n.canonical)*a._pixelsPerMercatorPixel;l=Float32Array.from([e,0,0,e])}else l=a.calculatePixelsToTileUnitsMatrix(r);else l=new Float32Array([a.pixelsToGLUnits[0],0,0,a.pixelsToGLUnits[1]]);const u={u_camera_to_center_distance:a.cameraToCenterDistance,u_matrix:e.translatePosMatrix(n.projMatrix,r,s.paint.get("circle-translate"),s.paint.get("circle-translate-anchor")),u_device_pixel_ratio:t.exported.devicePixelRatio,u_extrude_scale:l,u_inv_rot_matrix:Vn,u_merc_center:[0,0],u_tile_id:[0,0,0],u_zoom_transition:0,u_up_dir:[0,0,0]};if(c){u.u_inv_rot_matrix=i,u.u_merc_center=o,u.u_tile_id=[n.canonical.x,n.canonical.y,1<<n.canonical.z],u.u_zoom_transition=t.globeToMercatorTransition(a.zoom);const e=o[0]*t.EXTENT,r=o[1]*t.EXTENT;u.u_up_dir=a.projection.upVector(new t.CanonicalTileID(0,0,0),e,r)}return u},Hn=t=>{const e=[];return"map"===t.paint.get("circle-pitch-alignment")&&e.push("PITCH_WITH_MAP"),"map"===t.paint.get("circle-pitch-scale")&&e.push("SCALE_WITH_MAP"),e},Zn=(e,n,r,i)=>{const o=t.EXTENT/r.tileSize;return{u_matrix:e,u_camera_to_center_distance:n.getCameraToCenterDistance(i),u_extrude_scale:[n.pixelsToGLUnits[0]/o,n.pixelsToGLUnits[1]/o]}},Wn=(t,e,n=1)=>({u_matrix:t,u_color:e,u_overlay:0,u_overlay_scale:n}),Xn=t.create(),Yn=(e,n,r,i,o,s,a)=>{const c=e.transform,l="globe"===c.projection.name,u=l?t.globePixelsToTileUnits(c.zoom,n.canonical)*c._pixelsPerMercatorPixel:F(r,1,s),h={u_matrix:n.projMatrix,u_extrude_scale:u,u_intensity:a,u_inv_rot_matrix:Xn,u_merc_center:[0,0],u_tile_id:[0,0,0],u_zoom_transition:0,u_up_dir:[0,0,0]};if(l){h.u_inv_rot_matrix=i,h.u_merc_center=o,h.u_tile_id=[n.canonical.x,n.canonical.y,1<<n.canonical.z],h.u_zoom_transition=t.globeToMercatorTransition(c.zoom);const e=o[0]*t.EXTENT,r=o[1]*t.EXTENT;h.u_up_dir=c.projection.upVector(new t.CanonicalTileID(0,0,0),e,r)}return h},qn=(t,e,n,r,i,o,s)=>{const a=t.transform,c=a.calculatePixelsToTileUnitsMatrix(e);return{u_matrix:$n(t,e,n,r),u_pixels_to_tile_units:c,u_device_pixel_ratio:o,u_units_to_pixels:[1/a.pixelsToGLUnits[0],1/a.pixelsToGLUnits[1]],u_dash_image:0,u_gradient_image:1,u_image_height:i,u_texsize:tr(n)?e.lineAtlasTexture.size:[0,0],u_tile_units_to_pixels:Jn(e,t.transform),u_alpha_discard_threshold:0,u_trim_offset:s}},Kn=(t,e,n,r,i)=>{const o=t.transform;return{u_matrix:$n(t,e,n,r),u_texsize:e.imageAtlasTexture.size,u_pixels_to_tile_units:o.calculatePixelsToTileUnitsMatrix(e),u_device_pixel_ratio:i,u_image:0,u_tile_units_to_pixels:Jn(e,o),u_units_to_pixels:[1/o.pixelsToGLUnits[0],1/o.pixelsToGLUnits[1]],u_alpha_discard_threshold:0}};function Jn(t,e){return 1/F(t,1,e.tileZoom)}function $n(t,e,n,r){return t.translatePosMatrix(r||e.tileID.projMatrix,e,n.paint.get("line-translate"),n.paint.get("line-translate-anchor"))}function tr(t){const e=t.paint.get("line-dasharray").value;return e.value||"constant"!==e.kind}const er=(t,e,n,r,i,o)=>{return{u_matrix:t,u_tl_parent:e,u_scale_parent:n,u_fade_t:r.mix,u_opacity:r.opacity*i.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:i.paint.get("raster-brightness-min"),u_brightness_high:i.paint.get("raster-brightness-max"),u_saturation_factor:(a=i.paint.get("raster-saturation"),a>0?1-1/(1.001-a):-a),u_contrast_factor:(s=i.paint.get("raster-contrast"),s>0?1/(1-s):1+s),u_spin_weights:nr(i.paint.get("raster-hue-rotate")),u_perspective_transform:o};var s,a};function nr(t){t*=Math.PI/180;const e=Math.sin(t),n=Math.cos(t);return[(2*n+1)/3,(-Math.sqrt(3)*e-n+1)/3,(Math.sqrt(3)*e-n+1)/3]}const rr=t.create(),ir=(e,n,r,i,o,s,a,c,l,u,h,f,d,p,g,m)=>{const y=o.transform,_={u_is_size_zoom_constant:+("constant"===e||"source"===e),u_is_size_feature_constant:+("constant"===e||"camera"===e),u_size_t:n?n.uSizeT:0,u_size:n?n.uSize:0,u_camera_to_center_distance:y.cameraToCenterDistance,u_rotate_symbol:+r,u_aspect_ratio:y.width/y.height,u_fade_change:o.options.fadeDuration?o.symbolFadeChange:1,u_matrix:s,u_label_plane_matrix:a,u_coord_matrix:c,u_is_text:+l,u_pitch_with_map:+i,u_texsize:u,u_texture:0,u_tile_id:[0,0,0],u_zoom_transition:0,u_inv_rot_matrix:rr,u_merc_center:[0,0],u_camera_forward:[0,0,0],u_ecef_origin:[0,0,0],u_tile_matrix:rr,u_up_vector:[0,-1,0]};return"globe"===m.name&&(_.u_tile_id=[h.canonical.x,h.canonical.y,1<<h.canonical.z],_.u_zoom_transition=f,_.u_inv_rot_matrix=p,_.u_merc_center=d,_.u_camera_forward=y._camera.forward(),_.u_ecef_origin=t.globeECEFOrigin(y.globeMatrix,h.toUnwrapped()),_.u_tile_matrix=Float32Array.from(y.globeMatrix),_.u_up_vector=g),_},or=(e,n,r,i,o,s,a,c,l,u,h,f,d,p,g,m,y)=>t.extend(ir(e,n,r,i,o,s,a,c,l,u,f,d,p,g,m,y),{u_gamma_scale:i?o.transform.cameraToCenterDistance*Math.cos(o.terrain?0:o.transform._pitch):1,u_device_pixel_ratio:t.exported.devicePixelRatio,u_is_halo:+h}),sr=(e,n,r,i,o,s,a,c,l,u,h,f,d,p,g,m)=>t.extend(or(e,n,r,i,o,s,a,c,!0,l,!0,h,f,d,p,g,m),{u_texsize_icon:u,u_texture_icon:1}),ar=(t,e,n)=>({u_matrix:t,u_opacity:e,u_color:n}),cr=(e,n,r,i,o)=>t.extend(function(t,e,n){const r=e.imageManager.getPattern(t.toString()),{width:i,height:o}=e.imageManager.getPixelSize(),s=Math.pow(2,n.tileID.overscaledZ),a=n.tileSize*Math.pow(2,e.transform.tileZoom)/s,c=a*(n.tileID.canonical.x+n.tileID.wrap*s),l=a*n.tileID.canonical.y;return{u_image:0,u_pattern_tl:r.tl,u_pattern_br:r.br,u_texsize:[i,o],u_pattern_size:r.displaySize,u_tile_units_to_pixels:1/F(n,1,e.transform.tileZoom),u_pixel_coord_upper:[c>>16,l>>16],u_pixel_coord_lower:[65535&c,65535&l]}}(i,r,o),{u_matrix:e,u_opacity:n}),lr={fillExtrusion:e=>({u_matrix:new t.UniformMatrix4f(e),u_lightpos:new t.Uniform3f(e),u_lightintensity:new t.Uniform1f(e),u_lightcolor:new t.Uniform3f(e),u_vertical_gradient:new t.Uniform1f(e),u_opacity:new t.Uniform1f(e),u_edge_radius:new t.Uniform1f(e),u_ao:new t.Uniform2f(e),u_tile_id:new t.Uniform3f(e),u_zoom_transition:new t.Uniform1f(e),u_inv_rot_matrix:new t.UniformMatrix4f(e),u_merc_center:new t.Uniform2f(e),u_up_dir:new t.Uniform3f(e),u_height_lift:new t.Uniform1f(e)}),fillExtrusionPattern:e=>({u_matrix:new t.UniformMatrix4f(e),u_lightpos:new t.Uniform3f(e),u_lightintensity:new t.Uniform1f(e),u_lightcolor:new t.Uniform3f(e),u_vertical_gradient:new t.Uniform1f(e),u_height_factor:new t.Uniform1f(e),u_edge_radius:new t.Uniform1f(e),u_ao:new t.Uniform2f(e),u_tile_id:new t.Uniform3f(e),u_zoom_transition:new t.Uniform1f(e),u_inv_rot_matrix:new t.UniformMatrix4f(e),u_merc_center:new t.Uniform2f(e),u_up_dir:new t.Uniform3f(e),u_height_lift:new t.Uniform1f(e),u_image:new t.Uniform1i(e),u_texsize:new t.Uniform2f(e),u_pixel_coord_upper:new t.Uniform2f(e),u_pixel_coord_lower:new t.Uniform2f(e),u_tile_units_to_pixels:new t.Uniform1f(e),u_opacity:new t.Uniform1f(e)}),fill:e=>({u_matrix:new t.UniformMatrix4f(e)}),fillPattern:e=>({u_matrix:new t.UniformMatrix4f(e),u_image:new t.Uniform1i(e),u_texsize:new t.Uniform2f(e),u_pixel_coord_upper:new t.Uniform2f(e),u_pixel_coord_lower:new t.Uniform2f(e),u_tile_units_to_pixels:new t.Uniform1f(e)}),fillOutline:e=>({u_matrix:new t.UniformMatrix4f(e),u_world:new t.Uniform2f(e)}),fillOutlinePattern:e=>({u_matrix:new t.UniformMatrix4f(e),u_world:new t.Uniform2f(e),u_image:new t.Uniform1i(e),u_texsize:new t.Uniform2f(e),u_pixel_coord_upper:new t.Uniform2f(e),u_pixel_coord_lower:new t.Uniform2f(e),u_tile_units_to_pixels:new t.Uniform1f(e)}),circle:e=>({u_camera_to_center_distance:new t.Uniform1f(e),u_extrude_scale:new t.UniformMatrix2f(e),u_device_pixel_ratio:new t.Uniform1f(e),u_matrix:new t.UniformMatrix4f(e),u_inv_rot_matrix:new t.UniformMatrix4f(e),u_merc_center:new t.Uniform2f(e),u_tile_id:new t.Uniform3f(e),u_zoom_transition:new t.Uniform1f(e),u_up_dir:new t.Uniform3f(e)}),collisionBox:e=>({u_matrix:new t.UniformMatrix4f(e),u_camera_to_center_distance:new t.Uniform1f(e),u_extrude_scale:new t.Uniform2f(e)}),collisionCircle:e=>({u_matrix:new t.UniformMatrix4f(e),u_inv_matrix:new t.UniformMatrix4f(e),u_camera_to_center_distance:new t.Uniform1f(e),u_viewport_size:new t.Uniform2f(e)}),debug:e=>({u_color:new t.UniformColor(e),u_matrix:new t.UniformMatrix4f(e),u_overlay:new t.Uniform1i(e),u_overlay_scale:new t.Uniform1f(e)}),clippingMask:e=>({u_matrix:new t.UniformMatrix4f(e)}),heatmap:e=>({u_extrude_scale:new t.Uniform1f(e),u_intensity:new t.Uniform1f(e),u_matrix:new t.UniformMatrix4f(e),u_inv_rot_matrix:new t.UniformMatrix4f(e),u_merc_center:new t.Uniform2f(e),u_tile_id:new t.Uniform3f(e),u_zoom_transition:new t.Uniform1f(e),u_up_dir:new t.Uniform3f(e)}),heatmapTexture:e=>({u_image:new t.Uniform1i(e),u_color_ramp:new t.Uniform1i(e),u_opacity:new t.Uniform1f(e)}),hillshade:e=>({u_matrix:new t.UniformMatrix4f(e),u_image:new t.Uniform1i(e),u_latrange:new t.Uniform2f(e),u_light:new t.Uniform2f(e),u_shadow:new t.UniformColor(e),u_highlight:new t.UniformColor(e),u_accent:new t.UniformColor(e)}),hillshadePrepare:e=>({u_matrix:new t.UniformMatrix4f(e),u_image:new t.Uniform1i(e),u_dimension:new t.Uniform2f(e),u_zoom:new t.Uniform1f(e),u_unpack:new t.Uniform4f(e)}),line:e=>({u_matrix:new t.UniformMatrix4f(e),u_pixels_to_tile_units:new t.UniformMatrix2f(e),u_device_pixel_ratio:new t.Uniform1f(e),u_units_to_pixels:new t.Uniform2f(e),u_dash_image:new t.Uniform1i(e),u_gradient_image:new t.Uniform1i(e),u_image_height:new t.Uniform1f(e),u_texsize:new t.Uniform2f(e),u_tile_units_to_pixels:new t.Uniform1f(e),u_alpha_discard_threshold:new t.Uniform1f(e),u_trim_offset:new t.Uniform2f(e)}),linePattern:e=>({u_matrix:new t.UniformMatrix4f(e),u_texsize:new t.Uniform2f(e),u_pixels_to_tile_units:new t.UniformMatrix2f(e),u_device_pixel_ratio:new t.Uniform1f(e),u_image:new t.Uniform1i(e),u_units_to_pixels:new t.Uniform2f(e),u_tile_units_to_pixels:new t.Uniform1f(e),u_alpha_discard_threshold:new t.Uniform1f(e)}),raster:e=>({u_matrix:new t.UniformMatrix4f(e),u_tl_parent:new t.Uniform2f(e),u_scale_parent:new t.Uniform1f(e),u_fade_t:new t.Uniform1f(e),u_opacity:new t.Uniform1f(e),u_image0:new t.Uniform1i(e),u_image1:new t.Uniform1i(e),u_brightness_low:new t.Uniform1f(e),u_brightness_high:new t.Uniform1f(e),u_saturation_factor:new t.Uniform1f(e),u_contrast_factor:new t.Uniform1f(e),u_spin_weights:new t.Uniform3f(e),u_perspective_transform:new t.Uniform2f(e)}),symbolIcon:e=>({u_is_size_zoom_constant:new t.Uniform1i(e),u_is_size_feature_constant:new t.Uniform1i(e),u_size_t:new t.Uniform1f(e),u_size:new t.Uniform1f(e),u_camera_to_center_distance:new t.Uniform1f(e),u_rotate_symbol:new t.Uniform1i(e),u_aspect_ratio:new t.Uniform1f(e),u_fade_change:new t.Uniform1f(e),u_matrix:new t.UniformMatrix4f(e),u_label_plane_matrix:new t.UniformMatrix4f(e),u_coord_matrix:new t.UniformMatrix4f(e),u_is_text:new t.Uniform1i(e),u_pitch_with_map:new t.Uniform1i(e),u_texsize:new t.Uniform2f(e),u_tile_id:new t.Uniform3f(e),u_zoom_transition:new t.Uniform1f(e),u_inv_rot_matrix:new t.UniformMatrix4f(e),u_merc_center:new t.Uniform2f(e),u_camera_forward:new t.Uniform3f(e),u_tile_matrix:new t.UniformMatrix4f(e),u_up_vector:new t.Uniform3f(e),u_ecef_origin:new t.Uniform3f(e),u_texture:new t.Uniform1i(e)}),symbolSDF:e=>({u_is_size_zoom_constant:new t.Uniform1i(e),u_is_size_feature_constant:new t.Uniform1i(e),u_size_t:new t.Uniform1f(e),u_size:new t.Uniform1f(e),u_camera_to_center_distance:new t.Uniform1f(e),u_rotate_symbol:new t.Uniform1i(e),u_aspect_ratio:new t.Uniform1f(e),u_fade_change:new t.Uniform1f(e),u_matrix:new t.UniformMatrix4f(e),u_label_plane_matrix:new t.UniformMatrix4f(e),u_coord_matrix:new t.UniformMatrix4f(e),u_is_text:new t.Uniform1i(e),u_pitch_with_map:new t.Uniform1i(e),u_texsize:new t.Uniform2f(e),u_texture:new t.Uniform1i(e),u_gamma_scale:new t.Uniform1f(e),u_device_pixel_ratio:new t.Uniform1f(e),u_tile_id:new t.Uniform3f(e),u_zoom_transition:new t.Uniform1f(e),u_inv_rot_matrix:new t.UniformMatrix4f(e),u_merc_center:new t.Uniform2f(e),u_camera_forward:new t.Uniform3f(e),u_tile_matrix:new t.UniformMatrix4f(e),u_up_vector:new t.Uniform3f(e),u_ecef_origin:new t.Uniform3f(e),u_is_halo:new t.Uniform1i(e)}),symbolTextAndIcon:e=>({u_is_size_zoom_constant:new t.Uniform1i(e),u_is_size_feature_constant:new t.Uniform1i(e),u_size_t:new t.Uniform1f(e),u_size:new t.Uniform1f(e),u_camera_to_center_distance:new t.Uniform1f(e),u_rotate_symbol:new t.Uniform1i(e),u_aspect_ratio:new t.Uniform1f(e),u_fade_change:new t.Uniform1f(e),u_matrix:new t.UniformMatrix4f(e),u_label_plane_matrix:new t.UniformMatrix4f(e),u_coord_matrix:new t.UniformMatrix4f(e),u_is_text:new t.Uniform1i(e),u_pitch_with_map:new t.Uniform1i(e),u_texsize:new t.Uniform2f(e),u_texsize_icon:new t.Uniform2f(e),u_texture:new t.Uniform1i(e),u_texture_icon:new t.Uniform1i(e),u_gamma_scale:new t.Uniform1f(e),u_device_pixel_ratio:new t.Uniform1f(e),u_is_halo:new t.Uniform1i(e)}),background:e=>({u_matrix:new t.UniformMatrix4f(e),u_opacity:new t.Uniform1f(e),u_color:new t.UniformColor(e)}),backgroundPattern:e=>({u_matrix:new t.UniformMatrix4f(e),u_opacity:new t.Uniform1f(e),u_image:new t.Uniform1i(e),u_pattern_tl:new t.Uniform2f(e),u_pattern_br:new t.Uniform2f(e),u_texsize:new t.Uniform2f(e),u_pattern_size:new t.Uniform2f(e),u_pixel_coord_upper:new t.Uniform2f(e),u_pixel_coord_lower:new t.Uniform2f(e),u_tile_units_to_pixels:new t.Uniform1f(e)}),terrainRaster:bn,terrainDepth:bn,skybox:e=>({u_matrix:new t.UniformMatrix4f(e),u_sun_direction:new t.Uniform3f(e),u_cubemap:new t.Uniform1i(e),u_opacity:new t.Uniform1f(e),u_temporal_offset:new t.Uniform1f(e)}),skyboxGradient:e=>({u_matrix:new t.UniformMatrix4f(e),u_color_ramp:new t.Uniform1i(e),u_center_direction:new t.Uniform3f(e),u_radius:new t.Uniform1f(e),u_opacity:new t.Uniform1f(e),u_temporal_offset:new t.Uniform1f(e)}),skyboxCapture:e=>({u_matrix_3f:new t.UniformMatrix3f(e),u_sun_direction:new t.Uniform3f(e),u_sun_intensity:new t.Uniform1f(e),u_color_tint_r:new t.Uniform4f(e),u_color_tint_m:new t.Uniform4f(e),u_luminance:new t.Uniform1f(e)}),globeRaster:e=>({u_proj_matrix:new t.UniformMatrix4f(e),u_globe_matrix:new t.UniformMatrix4f(e),u_normalize_matrix:new t.UniformMatrix4f(e),u_merc_matrix:new t.UniformMatrix4f(e),u_zoom_transition:new t.Uniform1f(e),u_merc_center:new t.Uniform2f(e),u_image0:new t.Uniform1i(e),u_grid_matrix:new t.UniformMatrix3f(e),u_skirt_height:new t.Uniform1f(e),u_frustum_tl:new t.Uniform3f(e),u_frustum_tr:new t.Uniform3f(e),u_frustum_br:new t.Uniform3f(e),u_frustum_bl:new t.Uniform3f(e),u_globe_pos:new t.Uniform3f(e),u_globe_radius:new t.Uniform1f(e),u_viewport:new t.Uniform2f(e)}),globeAtmosphere:e=>({u_frustum_tl:new t.Uniform3f(e),u_frustum_tr:new t.Uniform3f(e),u_frustum_br:new t.Uniform3f(e),u_frustum_bl:new t.Uniform3f(e),u_horizon:new t.Uniform1f(e),u_transition:new t.Uniform1f(e),u_fadeout_range:new t.Uniform1f(e),u_color:new t.Uniform4f(e),u_high_color:new t.Uniform4f(e),u_space_color:new t.Uniform4f(e),u_star_intensity:new t.Uniform1f(e),u_star_density:new t.Uniform1f(e),u_star_size:new t.Uniform1f(e),u_temporal_offset:new t.Uniform1f(e),u_horizon_angle:new t.Uniform1f(e),u_rotation_matrix:new t.UniformMatrix4f(e)})};let ur;function hr(e,n,r,i,o,s,a){const c=e.context,l=c.gl,u=e.transform,h=e.useProgram("collisionBox"),f=[];let d=0,p=0;for(let g=0;g<i.length;g++){const m=i[g],y=n.getTile(m),_=y.getBucket(r);
27if(!_)continue;const v=be(m,_,u);let b=v;0===o[0]&&0===o[1]||(b=e.translatePosMatrix(v,y,o,s));const x=a?_.textCollisionBox:_.iconCollisionBox,w=_.collisionCircleArray;if(w.length>0){const e=t.create(),n=b;t.mul(e,_.placementInvProjMatrix,u.glCoordMatrix),t.mul(e,e,_.placementViewportMatrix),f.push({circleArray:w,circleOffset:p,transform:n,invTransform:e,projection:_.getProjection()}),d+=w.length/4,p=d}x&&(e.terrain&&e.terrain.setupElevationDraw(y,h),h.draw(c,l.LINES,t.DepthMode.disabled,t.StencilMode.disabled,e.colorModeForRenderPass(),t.CullFaceMode.disabled,Zn(b,u,y,_.getProjection()),r.id,x.layoutVertexBuffer,x.indexBuffer,x.segments,null,u.zoom,null,[x.collisionVertexBuffer,x.collisionVertexBufferExt]))}if(!a||!f.length)return;const g=e.useProgram("collisionCircle"),m=new t.StructArrayLayout2f1f2i16;m.resize(4*d),m._trim();let y=0;for(const t of f)for(let e=0;e<t.circleArray.length/4;e++){const n=4*e,r=t.circleArray[n+0],i=t.circleArray[n+1],o=t.circleArray[n+2],s=t.circleArray[n+3];m.emplace(y++,r,i,o,s,0),m.emplace(y++,r,i,o,s,1),m.emplace(y++,r,i,o,s,2),m.emplace(y++,r,i,o,s,3)}(!ur||ur.length<2*d)&&(ur=function(e){const n=2*e,r=new t.StructArrayLayout3ui6;r.resize(n),r._trim();for(let t=0;t<n;t++){const e=6*t;r.uint16[e+0]=4*t+0,r.uint16[e+1]=4*t+1,r.uint16[e+2]=4*t+2,r.uint16[e+3]=4*t+2,r.uint16[e+4]=4*t+3,r.uint16[e+5]=4*t+0}return r}(d));const _=c.createIndexBuffer(ur,!0),v=c.createVertexBuffer(m,t.collisionCircleLayout.members,!0);for(const n of f){const i={u_matrix:n.transform,u_inv_matrix:n.invTransform,u_camera_to_center_distance:(b=u).getCameraToCenterDistance(n.projection),u_viewport_size:[b.width,b.height]};g.draw(c,l.TRIANGLES,t.DepthMode.disabled,t.StencilMode.disabled,e.colorModeForRenderPass(),t.CullFaceMode.disabled,i,r.id,v,_,t.SegmentVector.simpleSegment(0,2*n.circleOffset,n.circleArray.length,n.circleArray.length/2),null,u.zoom)}var b;v.destroy(),_.destroy()}const fr=t.create();function dr({width:e,height:n,anchor:r,textOffset:i,textScale:o},s){const{horizontalAlign:a,verticalAlign:c}=t.getAnchorAlignment(r),l=-(a-.5)*e,u=-(c-.5)*n,h=t.evaluateVariableOffset(r,i);return new t.Point((l/o+h[0])*s,(u/o+h[1])*s)}function pr(e,n,r,i,o,s,a,c,l,u,h){const f=e.text.placedSymbolArray,d=e.text.dynamicLayoutVertexArray,p=e.icon.dynamicLayoutVertexArray,g={},m=e.getProjection(),y=xe(c,m,s),_=s.elevation,v=m.upVectorScale(c.canonical,s.center.lat,s.worldSize).metersToTile;d.clear();for(let p=0;p<f.length;p++){const b=f.get(p),{tileAnchorX:x,tileAnchorY:w,numGlyphs:E}=b,S=b.hidden||!b.crossTileID||e.allowVerticalPlacement&&!b.placedOrientation?null:i[b.crossTileID];if(S){let i=0,f=0,p=0;if(_){const t=_?_.getAtTileOffset(c,x,w):0,[e,n,r]=m.upVector(c.canonical,x,w);i=t*e*v,f=t*n*v,p=t*r*v}let[C,A,I,T]=oe(b.projectedAnchorX+i,b.projectedAnchorY+f,b.projectedAnchorZ+p,r?y:a);const M=se(s.getCameraToCenterDistance(m),T);let F=o.evaluateSizeForFeature(e.textSizeData,u,b)*M/t.ONE_EM;r&&(F*=e.tilePixelRatio/l);const B=dr(S,F);r?(({x:C,y:A,z:I}=m.projectTilePoint(x+B.x,w+B.y,c.canonical)),[C,A,I]=oe(C+i,A+f,I+p,a)):(n&&B._rotate(-s.angle),C+=B.x,A+=B.y,I=0);const L=e.allowVerticalPlacement&&b.placedOrientation===t.WritingMode.vertical?Math.PI/2:0;for(let e=0;e<E;e++)t.addDynamicAttributes(d,C,A,I,L);h&&b.associatedIconIndex>=0&&(g[b.associatedIconIndex]={x:C,y:A,z:I,angle:L})}else ge(E,d)}if(h){p.clear();const n=e.icon.placedSymbolArray;for(let e=0;e<n.length;e++){const r=n.get(e),{numGlyphs:i}=r,o=g[e];if(r.hidden||!o)ge(i,p);else{const{x:e,y:n,z:r,angle:s}=o;for(let o=0;o<i;o++)t.addDynamicAttributes(p,e,n,r,s)}}e.icon.dynamicLayoutVertexBuffer.updateData(p)}e.text.dynamicLayoutVertexBuffer.updateData(d)}function gr(t,e,n){return n.iconsInText&&e?"symbolTextAndIcon":t?"symbolSDF":"symbolIcon"}function mr(e,n,r,i,o,s,a,c,l,u,h,f){const d=e.context,p=d.gl,g=e.transform,m="map"===c,y="map"===l,_=m&&"point"!==r.layout.get("symbol-placement"),v=m&&!y&&!_,b=void 0!==r.layout.get("symbol-sort-key").constantOr(1);let x=!1;const w=e.depthModeForSublayer(0,t.DepthMode.ReadOnly),E=[t.mercatorXfromLng(g.center.lng),t.mercatorYfromLat(g.center.lat)],S=r.layout.get("text-variable-anchor"),C="globe"===g.projection.name,A=[],I=[0,-1,0];let T=I;!C&&!g.mercatorFromTransition||m||(T=function(e){const n=e._camera.getWorldToCamera(e.worldSize,1),r=t.multiply([],n,e.globeMatrix);t.invert(r,r);const i=[0,0,0],o=[0,1,0,0];return t.transformMat4$1(o,o,r),i[0]=o[0],i[1]=o[1],i[2]=o[2],t.normalize(i,i),i}(g));for(const c of i){const i=n.getTile(c),l=i.getBucket(r);
vendor: 10,885 bytes, line 27
27if(!l)continue;if("mercator"===l.projection.name&&C)continue;const h=o?l.text:l.icon;if(!h||l.fullyClipped||!h.segments.get().length)continue;const f=h.programConfigurations.get(r.id),d=o||l.sdfIcons,w=o?l.textSizeData:l.iconSizeData,M=y||0!==g.pitch,F=t.evaluateSizeForZoom(w,g.zoom);let B,L,O,U,k=[0,0],P=null;if(o)L=i.glyphAtlasTexture,O=p.LINEAR,B=i.glyphAtlasTexture.size,l.iconsInText&&(k=i.imageAtlasTexture.size,P=i.imageAtlasTexture,U=M||e.options.rotating||e.options.zooming||"composite"===w.kind||"camera"===w.kind?p.LINEAR:p.NEAREST);else{const t=1!==r.layout.get("icon-size").constantOr(0)||l.iconsNeedLinear;L=i.imageAtlasTexture,O=d||e.options.rotating||e.options.zooming||t||M?p.LINEAR:p.NEAREST,B=i.imageAtlasTexture.size}const D="globe"===l.projection.name,R=D?T:I,j=D?t.globeToMercatorTransition(g.zoom):0,z=xe(c,l.getProjection(),g),Q=g.calculatePixelsToTileUnitsMatrix(i),N=ne(z,i.tileID.canonical,y,m,g,l.getProjection(),Q),V=e.terrain&&y&&_?t.invert(t.create(),N):fr,G=ie(z,i.tileID.canonical,y,m,g,l.getProjection(),Q),H=S&&l.hasTextData(),Z="none"!==r.layout.get("icon-text-fit")&&H&&l.hasIconData();if(_){const t=g.elevation,n=t?t.getAtTileOffsetFunc(c,g.center.lat,g.worldSize,l.getProjection()):null,r=re(z,i.tileID.canonical,y,m,g,l.getProjection(),Q);ce(l,z,e,o,r,G,y,u,n,c)}const W=_||o&&S||Z,X=e.translatePosMatrix(z,i,s,a),Y=W?fr:N,q=e.translatePosMatrix(G,i,s,a,!0),K=l.getProjection().createInversionMatrix(g,c.canonical),J=[];e.terrainRenderModeElevated()&&y&&J.push("PITCH_WITH_MAP_TERRAIN"),D&&J.push("PROJECTION_GLOBE_VIEW"),W&&J.push("PROJECTED_POS_ON_VIEWPORT");const $=d&&0!==r.paint.get(o?"text-halo-width":"icon-halo-width").constantOr(1);let tt;tt=d?l.iconsInText?sr(w.kind,F,v,y,e,X,Y,q,B,k,c,j,E,K,R,l.getProjection()):or(w.kind,F,v,y,e,X,Y,q,o,B,!0,c,j,E,K,R,l.getProjection()):ir(w.kind,F,v,y,e,X,Y,q,o,B,c,j,E,K,R,l.getProjection());const et={program:e.useProgram(gr(d,o,l),f,J),buffers:h,uniformValues:tt,atlasTexture:L,atlasTextureIcon:P,atlasInterpolation:O,atlasInterpolationIcon:U,isSDF:d,hasHalo:$,tile:i,labelPlaneMatrixInv:V};if(b&&l.canOverlap){x=!0;const e=h.segments.get();for(const n of e)A.push({segments:new t.SegmentVector([n]),sortKey:n.sortKey,state:et})}else A.push({segments:h.segments,sortKey:0,state:et})}x&&A.sort((t,e)=>t.sortKey-e.sortKey);for(const t of A){const n=t.state;if(e.terrain&&e.terrain.setupElevationDraw(n.tile,n.program,{useDepthForOcclusion:!C,labelPlaneMatrixInv:n.labelPlaneMatrixInv}),d.activeTexture.set(p.TEXTURE0),n.atlasTexture.bind(n.atlasInterpolation,p.CLAMP_TO_EDGE),n.atlasTextureIcon&&(d.activeTexture.set(p.TEXTURE1),n.atlasTextureIcon&&n.atlasTextureIcon.bind(n.atlasInterpolationIcon,p.CLAMP_TO_EDGE)),n.isSDF){const i=n.uniformValues;n.hasHalo&&(i.u_is_halo=1,yr(n.buffers,t.segments,r,e,n.program,w,h,f,i)),i.u_is_halo=0}yr(n.buffers,t.segments,r,e,n.program,w,h,f,n.uniformValues)}}function yr(e,n,r,i,o,s,a,c,l){const u=i.context,h=[e.dynamicLayoutVertexBuffer,e.opacityVertexBuffer,e.globeExtVertexBuffer];o.draw(u,u.gl.TRIANGLES,s,a,c,t.CullFaceMode.disabled,l,r.id,e.layoutVertexBuffer,e.indexBuffer,n,r.paint,i.transform.zoom,e.programConfigurations.get(r.id),h)}function _r(e,n,r,i,o,s,a){const c=e.context.gl,l=r.paint.get("fill-pattern"),u=l&&l.constantOr(1);let h,f,d,p,g;a?(f=u&&!r.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline",h=c.LINES):(f=u?"fillPattern":"fill",h=c.TRIANGLES);for(const m of i){const i=n.getTile(m);if(u&&!i.patternsLoaded())continue;const y=i.getBucket(r);if(!y)continue;e.prepareDrawTile();const _=y.programConfigurations.get(r.id),v=e.useProgram(f,_);u&&(e.context.activeTexture.set(c.TEXTURE0),i.imageAtlasTexture.bind(c.LINEAR,c.CLAMP_TO_EDGE),_.updatePaintBuffers());const b=l.constantOr(null);if(b&&i.imageAtlas){const t=i.imageAtlas.patternPositions[b.toString()];t&&_.setConstantPatternPositions(t)}const x=e.translatePosMatrix(m.projMatrix,i,r.paint.get("fill-translate"),r.paint.get("fill-translate-anchor"));if(a){p=y.indexBuffer2,g=y.segments2;const t=e.terrain&&e.terrain.renderingToTexture?e.terrain.drapeBufferSize:[c.drawingBufferWidth,c.drawingBufferHeight];d="fillOutlinePattern"===f&&u?Nn(x,e,i,t):Qn(x,t)}else p=y.indexBuffer,g=y.segments,d=u?zn(x,e,i):jn(x);e.prepareDrawProgram(e.context,v,m.toUnwrapped()),v.draw(e.context,h,o,e.stencilModeForClipping(m),s,t.CullFaceMode.disabled,d,r.id,y.layoutVertexBuffer,p,g,r.paint,e.transform.zoom,_)}}function vr(e,n,r,i,o,s,a){const c=e.context,l=c.gl,u=e.transform,h=r.paint.get("fill-extrusion-pattern"),f=h.constantOr(1),d=r.paint.get("fill-extrusion-opacity"),p=[r.paint.get("fill-extrusion-ambient-occlusion-intensity"),r.paint.get("fill-extrusion-ambient-occlusion-radius")],g=r.layout.get("fill-extrusion-edge-radius"),m=g>0&&!r.paint.get("fill-extrusion-rounded-roof"),y=m?0:g,_="globe"===u.projection.name?t.fillExtrusionHeightLift():0,v="globe"===u.projection.name,b=v?t.globeToMercatorTransition(u.zoom):0,x=[t.mercatorXfromLng(u.center.lng),t.mercatorYfromLat(u.center.lat)],w=[];v&&w.push("PROJECTION_GLOBE_VIEW"),p[0]>0&&w.push("FAUX_AO"),m&&w.push("ZERO_ROOF_RADIUS");for(const g of i){const i=n.getTile(g),m=i.getBucket(r);if(!m||m.projection.name!==u.projection.name)continue;const E=m.programConfigurations.get(r.id),S=e.useProgram(f?"fillExtrusionPattern":"fillExtrusion",E,w);if(e.terrain){const t=e.terrain;if(e.style.terrainSetForDrapingOnly())t.setupElevationDraw(i,S,{useMeterToDem:!0});else{if(!m.enableTerrain)continue;if(t.setupElevationDraw(i,S,{useMeterToDem:!0}),br(c,n,g,m,r,t),!m.centroidVertexBuffer){const t=S.attributes.a_centroid_pos;void 0!==t&&l.vertexAttrib2f(t,0,0)}}}f&&(e.context.activeTexture.set(l.TEXTURE0),i.imageAtlasTexture.bind(l.LINEAR,l.CLAMP_TO_EDGE),E.updatePaintBuffers());const C=h.constantOr(null);if(C&&i.imageAtlas){const t=i.imageAtlas.patternPositions[C.toString()];t&&E.setConstantPatternPositions(t)}const A=e.translatePosMatrix(g.projMatrix,i,r.paint.get("fill-extrusion-translate"),r.paint.get("fill-extrusion-translate-anchor")),I=u.projection.createInversionMatrix(u,g.canonical),T=r.paint.get("fill-extrusion-vertical-gradient"),M=f?Rn(A,e,T,d,p,y,g,i,_,b,x,I):Dn(A,e,T,d,p,y,g,_,b,x,I);e.prepareDrawProgram(c,S,g.toUnwrapped());const F=[];e.terrain&&F.push(m.centroidVertexBuffer),v&&F.push(m.layoutVertexExtBuffer),S.draw(c,c.gl.TRIANGLES,o,s,a,t.CullFaceMode.backCCW,M,r.id,m.layoutVertexBuffer,m.indexBuffer,m.segments,r.paint,e.transform.zoom,E,F)}}function br(e,n,r,i,o,s){const a=[e=>{let n=e.canonical.x-1,r=e.wrap;return n<0&&(n=(1<<e.canonical.z)-1,r--),new t.OverscaledTileID(e.overscaledZ,r,e.canonical.z,n,e.canonical.y)},e=>{let n=e.canonical.x+1,r=e.wrap;return n===1<<e.canonical.z&&(n=0,r++),new t.OverscaledTileID(e.overscaledZ,r,e.canonical.z,n,e.canonical.y)},e=>new t.OverscaledTileID(e.overscaledZ,e.wrap,e.canonical.z,e.canonical.x,(0===e.canonical.y?1<<e.canonical.z:e.canonical.y)-1),e=>new t.OverscaledTileID(e.overscaledZ,e.wrap,e.canonical.z,e.canonical.x,e.canonical.y===(1<<e.canonical.z)-1?0:e.canonical.y+1)],c=t=>{const e=n.getSource().minzoom,r=t=>{const e=n.getTileByID(t);if(e&&e.hasData())return e.getBucket(o)},i=[0,-1,1];for(const n of i){if(t.overscaledZ+n<e)continue;const i=r(t.calculateScaledKey(t.overscaledZ+n));if(i)return i}},l=[0,0,0],u=(e,n)=>(l[0]=Math.min(e.min.y,n.min.y),l[1]=Math.max(e.max.y,n.max.y),l[2]=t.EXTENT-n.min.x>e.max.x?n.min.x-t.EXTENT:e.max.x,l),h=(e,n)=>(l[0]=Math.min(e.min.x,n.min.x),l[1]=Math.max(e.max.x,n.max.x),l[2]=t.EXTENT-n.min.y>e.max.y?n.min.y-t.EXTENT:e.max.y,l),f=[(t,e)=>u(t,e),(t,e)=>u(e,t),(t,e)=>h(t,e),(t,e)=>h(e,t)],d=new t.Point(0,0);let p,g,m;const y=(e,n,i,o,a)=>{const c=[[o?i:e,o?e:i,0],[o?i:n,o?n:i,0]],l=a<0?t.EXTENT+a:a,u=[o?l:(e+n)/2,o?(e+n)/2:l,0];return 0===i&&a<0||0!==i&&a>0?s.getForTilePoints(m,[u],!0,g):c.push(u),s.getForTilePoints(r,c,!0,p),Math.max(c[0][2],c[1][2],u[2])/s.exaggeration()};for(let e=0;e<4;e++){const n=(e<2?1:5)-e,o=i.borders[e];if(0===o.length)continue;const l=m=a[e](r),u=c(l);if(!(u&&u instanceof t.FillExtrusionBucket&&u.enableTerrain))continue;if(i.borderDoneWithNeighborZ[e]===u.canonical.z&&u.borderDoneWithNeighborZ[n]===i.canonical.z)continue;if(g=s.findDEMTileFor(l),!g||!g.dem)continue;if(!p){const t=s.findDEMTileFor(r);if(!t||!t.dem)return;p=t}const h=u.borders[n];let _=0;const v=u.borderDoneWithNeighborZ[n]!==i.canonical.z;if(i.canonical.z===u.canonical.z){for(let r=0;r<o.length;r++){const s=i.featuresOnBorder[o[r]],a=s.borders[e];let c;for(;_<h.length&&(c=u.featuresOnBorder[h[_]],!(c.borders[n][1]>a[0]+3));)v&&u.encodeCentroid(void 0,c,!1),_++;if(c&&_<h.length){const r=_;let o=0;for(;!(c.borders[n][0]>a[1]-3)&&(o++,++_!==h.length);)c=u.featuresOnBorder[h[_]];if(c=u.featuresOnBorder[h[r]],s.intersectsCount()>1||c.intersectsCount()>1||1!==o){1!==o&&(_=r),i.encodeCentroid(void 0,s,!1),v&&u.encodeCentroid(void 0,c,!1);continue}const l=f[e](s,c),p=e%2?t.EXTENT-1:0;d.x=y(l[0],Math.min(t.EXTENT-1,l[1]),p,e<2,l[2]),d.y=0,i.encodeCentroid(d,s,!1),v&&u.encodeCentroid(d,c,!1)}else i.encodeCentroid(void 0,s,!1)}i.borderDoneWithNeighborZ[e]=u.canonical.z,i.needsCentroidUpdate=!0,v&&(u.borderDoneWithNeighborZ[n]=i.canonical.z,u.needsCentroidUpdate=!0)}else{for(const t of o)i.encodeCentroid(void 0,i.featuresOnBorder[t],!1);if(v){for(const t of h)u.encodeCentroid(void 0,u.featuresOnBorder[t],!1);u.borderDoneWithNeighborZ[n]=i.canonical.z,u.needsCentroidUpdate=!0}i.borderDoneWithNeighborZ[e]=u.canonical.z,i.needsCentroidUpdate=!0}}(i.needsCentroidUpdate||!i.centroidVertexBuffer&&0!==i.centroidVertexArray.length)&&i.uploadCentroid(e)}const xr=new t.Color(1,0,0,1),wr=new t.Color(0,1,0,1),Er=new t.Color(0,0,1,1),Sr=new t.Color(1,0,1,1),Cr=new t.Color(0,1,1,1);function Ar(e,n,r){const i=e.context,o=e.transform,s=i.gl,a="globe"===o.projection.name,c=a?["PROJECTION_GLOBE_VIEW"]:null;let l=r.projMatrix;if(a&&t.globeToMercatorTransition(o.zoom)>0){const e=t.transitionTileAABBinECEF(r.canonical,o),n=t.globeDenormalizeECEF(e);l=t.multiply(new Float32Array(16),o.globeMatrix,n),t.multiply(l,o.projMatrix,l)}const u=e.useProgram("debug",null,c),h=n.getTileByID(r.key);e.terrain&&e.terrain.setupElevationDraw(h,u);const f=t.DepthMode.disabled,d=t.StencilMode.disabled,p=e.colorModeForRenderPass(),g="$debug";i.activeTexture.set(s.TEXTURE0),e.emptyTexture.bind(s.LINEAR,s.CLAMP_TO_EDGE),a?h._makeGlobeTileDebugBuffers(e.context,o):h._makeDebugTileBoundsBuffers(e.context,o.projection);const m=h._tileDebugBuffer||e.debugBuffer,y=h._tileDebugIndexBuffer||e.debugIndexBuffer,_=h._tileDebugSegments||e.debugSegments;u.draw(i,s.LINE_STRIP,f,d,p,t.CullFaceMode.disabled,Wn(l,t.Color.red),g,m,y,_,null,null,null,[h._globeTileDebugBorderBuffer]);const v=h.latestRawTileData,b=Math.floor((v&&v.byteLength||0)/1024),x=n.getTile(r).tileSize,w=512/Math.min(x,512)*(r.overscaledZ/o.zoom)*.5;let E=r.canonical.toString();r.overscaledZ!==r.canonical.z&&(E+=" =>
27 "+r.overscaledZ),E+=` ${b}kb`,function(t,e){t.initDebugOverlayCanvas();const n=t.debugOverlayCanvas,r=t.context.gl,i=t.debugOverlayCanvas.getContext("2d");i.clearRect(0,0,n.width,n.height),i.shadowColor="white",i.shadowBlur=2,i.lineWidth=1.5,i.strokeStyle="white",i.textBaseline="top",i.font="bold 36px Open Sans, sans-serif",i.fillText(e,5,5),i.strokeText(e,5,5),t.debugOverlayTexture.update(n),t.debugOverlayTexture.bind(r.LINEAR,r.CLAMP_TO_EDGE)}(e,E);const S=h._tileDebugTextBuffer||e.debugBuffer,C=h._tileDebugTextIndexBuffer||e.quadTriangleIndexBuffer,A=h._tileDebugTextSegments||e.debugSegments;u.draw(i,s.TRIANGLES,f,d,t.ColorMode.alphaBlended,t.CullFaceMode.disabled,Wn(l,t.Color.transparent,w),g,S,C,A,null,null,null,[h._globeTileDebugTextBuffer])}function Ir(t,e,n,r){Mr(t,0,e+n/2,t.transform.width,n,r)}function Tr(t,e,n,r){Mr(t,e-n/2,0,n,t.transform.height,r)}function Mr(e,n,r,i,o,s){const a=e.context,c=a.gl;c.enable(c.SCISSOR_TEST),c.scissor(n*t.exported.devicePixelRatio,r*t.exported.devicePixelRatio,i*t.exported.devicePixelRatio,o*t.exported.devicePixelRatio),a.clear({color:s}),c.disable(c.SCISSOR_TEST)}const Fr=t.createLayout([{name:"a_pos_3f",components:3,type:"Float32"}]),{members:Br}=Fr;function Lr(t,e,n,r){t.emplaceBack(e,n,r)}class Or{constructor(e){this.vertexArray=new t.StructArrayLayout3f12,this.indices=new t.StructArrayLayout3ui6,Lr(this.vertexArray,-1,-1,1),Lr(this.vertexArray,1,-1,1),Lr(this.vertexArray,-1,1,1),Lr(this.vertexArray,1,1,1),Lr(this.vertexArray,-1,-1,-1),Lr(this.vertexArray,1,-1,-1),Lr(this.vertexArray,-1,1,-1),Lr(this.vertexArray,1,1,-1),this.indices.emplaceBack(5,1,3),this.indices.emplaceBack(3,7,5),this.indices.emplaceBack(6,2,0),this.indices.emplaceBack(0,4,6),this.indices.emplaceBack(2,6,7),this.indices.emplaceBack(7,3,2),this.indices.emplaceBack(5,4,0),this.indices.emplaceBack(0,1,5),this.indices.emplaceBack(0,2,3),this.indices.emplaceBack(3,1,0),this.indices.emplaceBack(7,6,4),this.indices.emplaceBack(4,5,7),this.vertexBuffer=e.createVertexBuffer(this.vertexArray,Br),this.indexBuffer=e.createIndexBuffer(this.indices),this.segment=t.SegmentVector.simpleSegment(0,0,36,12)}}function Ur(e,n,r,i,o,s){const a=e.gl,c=n.paint.get("sky-atmosphere-color"),l=n.paint.get("sky-atmosphere-halo-color"),u=n.paint.get("sky-atmosphere-sun-intensity"),h=((t,e,n,r,i)=>({u_matrix_3f:t,u_sun_direction:e,u_sun_intensity:n,u_color_tint_r:[r.r,r.g,r.b,r.a],u_color_tint_m:[i.r,i.g,i.b,i.a],u_luminance:5e-5}))(t.fromMat4(t.create$1(),i),o,u,c,l);a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_CUBE_MAP_POSITIVE_X+s,n.skyboxTexture,0),r.draw(e,a.TRIANGLES,t.DepthMode.disabled,t.StencilMode.disabled,t.ColorMode.unblended,t.CullFaceMode.frontCW,h,"skyboxCapture",n.skyboxGeometry.vertexBuffer,n.skyboxGeometry.indexBuffer,n.skyboxGeometry.segment)}const kr=t.createLayout([{type:"Float32",name:"a_pos",components:3},{type:"Float32",name:"a_uv",components:2}]);class Pr{constructor(e){const n=new t.StructArrayLayout5f20;n.emplaceBack(-1,1,1,0,0),n.emplaceBack(1,1,1,1,0),n.emplaceBack(1,-1,1,1,1),n.emplaceBack(-1,-1,1,0,1);const r=new t.StructArrayLayout3ui6;r.emplaceBack(0,1,2),r.emplaceBack(2,3,0),this.vertexBuffer=e.createVertexBuffer(n,kr.members),this.indexBuffer=e.createIndexBuffer(r),this.segments=t.SegmentVector.simpleSegment(0,0,4,2)}destroy(){this.vertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy()}}const Dr={symbol:function(e,n,r,i,o){if("translucent"!==e.renderPass)return;const s=t.StencilMode.disabled,a=e.colorModeForRenderPass();r.layout.get("text-variable-anchor")&&function(e,n,r,i,o,s,a){const c=n.transform,l="map"===o,u="map"===s;for(const n of e){const e=i.getTile(n),o=e.getBucket(r);if(!o||!o.text||!o.text.segments.get().length)continue;const s=t.evaluateSizeForZoom(o.textSizeData,c.zoom),h=xe(n,o.getProjection(),c),f=c.calculatePixelsToTileUnitsMatrix(e),d=ne(h,e.tileID.canonical,u,l,c,o.getProjection(),f),p="none"!==r.layout.get("icon-text-fit")&&o.hasIconData();if(s){const r=Math.pow(2,c.zoom-e.tileID.overscaledZ);pr(o,l,u,a,t.symbolSize,c,d,n,r,s,p)}}}(i,e,r,n,r.layout.get("text-rotation-alignment"),r.layout.get("text-pitch-alignment"),o),0!==r.paint.get("icon-opacity").constantOr(1)&&mr(e,n,r,i,!1,r.paint.get("icon-translate"),r.paint.get("icon-translate-anchor"),r.layout.get("icon-rotation-alignment"),r.layout.get("icon-pitch-alignment"),r.layout.get("icon-keep-upright"),s,a),0!==r.paint.get("text-opacity").constantOr(1)&&mr(e,n,r,i,!0,r.paint.get("text-translate"),r.paint.get("text-translate-anchor"),r.layout.get("text-rotation-alignment"),r.layout.get("text-pitch-alignment"),r.layout.get("text-keep-upright"),s,a),n.map.showCollisionBoxes&&(hr(e,n,r,i,r.paint.get("text-translate"),r.paint.get("text-translate-anchor"),!0),hr(e,n,r,i,r.paint.get("icon-translate"),r.paint.get("icon-translate-anchor"),!1))},circle:function(e,n,r,i){if("translucent"!==e.renderPass)return;const o=r.paint.get("circle-opacity"),s=r.paint.get("circle-stroke-width"),a=r.paint.get("circle-stroke-opacity"),c=void 0!==r.layout.get("
27circle-sort-key").constantOr(1);if(0===o.constantOr(1)&&(0===s.constantOr(1)||0===a.constantOr(1)))return;const l=e.context,u=l.gl,h=e.transform,f=e.depthModeForSublayer(0,t.DepthMode.ReadOnly),d=t.StencilMode.disabled,p=e.colorModeForRenderPass(),g="globe"===h.projection.name,m=[t.mercatorXfromLng(h.center.lng),t.mercatorYfromLat(h.center.lat)],y=[];for(let o=0;o<i.length;o++){const s=i[o],a=n.getTile(s),l=a.getBucket(r);if(!l||l.projection.name!==h.projection.name)continue;const u=l.programConfigurations.get(r.id),f=Hn(r);g&&f.push("PROJECTION_GLOBE_VIEW");const d=e.useProgram("circle",u,f),p=l.layoutVertexBuffer,_=l.globeExtVertexBuffer,v=l.indexBuffer,b=h.projection.createInversionMatrix(h,s.canonical),x={programConfiguration:u,program:d,layoutVertexBuffer:p,globeExtVertexBuffer:_,indexBuffer:v,uniformValues:Gn(e,s,a,b,m,r),tile:a};if(c){const e=l.segments.get();for(const n of e)y.push({segments:new t.SegmentVector([n]),sortKey:n.sortKey,state:x})}else y.push({segments:l.segments,sortKey:0,state:x})}c&&y.sort((t,e)=>t.sortKey-e.sortKey);const _={useDepthForOcclusion:!g};for(const n of y){const{programConfiguration:i,program:o,layoutVertexBuffer:s,globeExtVertexBuffer:a,indexBuffer:c,uniformValues:g,tile:m}=n.state,y=n.segments;e.terrain&&e.terrain.setupElevationDraw(m,o,_),e.prepareDrawProgram(l,o,m.tileID.toUnwrapped()),o.draw(l,u.TRIANGLES,f,d,p,t.CullFaceMode.disabled,g,r.id,s,c,y,r.paint,h.zoom,i,[a])}},heatmap:function(e,n,r,i){if(0!==r.paint.get("heatmap-opacity"))if("offscreen"===e.renderPass){const o=e.context,s=o.gl,a=t.StencilMode.disabled,c=new t.ColorMode([s.ONE,s.ONE],t.Color.transparent,[!0,!0,!0,!0]);!function(t,e,n,r){const i=t.gl,o=e.width*r,s=e.height*r;t.activeTexture.set(i.TEXTURE1),t.viewport.set([0,0,o,s]);let a=n.heatmapFbo;if(!a||a&&(a.width!==o||a.height!==s)){a&&a.destroy();const e=i.createTexture();i.bindTexture(i.TEXTURE_2D,e),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,i.CLAMP_TO_EDGE),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,i.CLAMP_TO_EDGE),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MIN_FILTER,i.LINEAR),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MAG_FILTER,i.LINEAR),a=n.heatmapFbo=t.createFramebuffer(o,s,!1),function(t,e,n,r,i,o){const s=t.gl;s.texImage2D(s.TEXTURE_2D,0,t.isWebGL2&&t.extRenderToTextureHalfFloat?s.RGBA16F:s.RGBA,i,o,0,s.RGBA,t.extRenderToTextureHalfFloat?t.isWebGL2?s.HALF_FLOAT:t.extTextureHalfFloat.HALF_FLOAT_OES:s.UNSIGNED_BYTE,null),r.colorAttachment.set(n)}(t,0,e,a,o,s)}else i.bindTexture(i.TEXTURE_2D,a.colorAttachment.get()),t.bindFramebuffer.set(a.framebuffer)}(o,e,r,"globe"===e.transform.projection.name?.5:.25),o.clear({color:t.Color.transparent});const l=e.transform,u="globe"===l.projection.name,h=u?["PROJECTION_GLOBE_VIEW"]:null,f=u?t.CullFaceMode.frontCCW:t.CullFaceMode.disabled,d=[t.mercatorXfromLng(l.center.lng),t.mercatorYfromLat(l.center.lat)];for(let p=0;p<i.length;p++){const g=i[p];if(n.hasRenderableParent(g))continue;const m=n.getTile(g),y=m.getBucket(r);if(!y||y.projection.name!==l.projection.name)continue;const _=y.programConfigurations.get(r.id),v=e.useProgram("heatmap",_,h),{zoom:b}=e.transform;e.terrain&&e.terrain.setupElevationDraw(m,v),e.prepareDrawProgram(o,v,g.toUnwrapped());const x=l.projection.createInversionMatrix(l,g.canonical);v.draw(o,s.TRIANGLES,t.DepthMode.disabled,a,c,f,Yn(e,g,m,x,d,b,r.paint.get("heatmap-intensity")),r.id,y.layoutVertexBuffer,y.indexBuffer,y.segments,r.paint,e.transform.zoom,_,u?[y.globeExtVertexBuffer]:null)}o.viewport.set([0,0,e.width,e.height])}else"translucent"===e.renderPass&&(e.context.setColorMode(e.colorModeForRenderPass()),function(e,n){const r=e.context,i=r.gl,o=n.heatmapFbo;if(!o)return;r.activeTexture.set(i.TEXTURE0),i.bindTexture(i.TEXTURE_2D,o.colorAttachment.get()),r.activeTexture.set(i.TEXTURE1);let s=n.colorRampTexture;s||(s=n.colorRampTexture=new t.Texture(r,n.colorRamp,i.RGBA)),s.bind(i.LINEAR,i.CLAMP_TO_EDGE),e.useProgram("heatmapTexture").draw(r,i.TRIANGLES,t.DepthMode.disabled,t.StencilMode.disabled,e.colorModeForRenderPass(),t.CullFaceMode.disabled,((t,e,n,r)=>({u_image:0,u_color_ramp:1,u_opacity:e.paint.get("heatmap-opacity")}))(0,n),n.id,e.viewportBuffer,e.quadTriangleIndexBuffer,e.viewportSegments,n.paint,e.transform.zoom)}(e,r))},line:function(e,n,r,i){if("translucent"!==e.renderPass)return;const o=r.paint.get("line-opacity"),s=r.paint.get("line-width");if(0===o.constantOr(1)||0===s.constantOr(1))return;const a=e.depthModeForSublayer(0,t.DepthMode.ReadOnly),c=e.colorModeForRenderPass(),l=e.terrain&&e.terrain.renderingToTexture?1:t.exported.devicePixelRatio,u=r.paint.get("line-dasharray"),h=u.constantOr(1),f=r.layout.get("line-cap"),d=r.paint.get("line-pattern"),p=d.constantOr(1),g=r.paint.get("line-gradient"),m=p?"linePattern":"line",y=e.context,_=y.gl,v=(t=>{const e=[];tr(t)&&e.push("RENDER_LINE_DASH"),t.paint.get("line-gradient")&&e.push("RENDER_LINE_GRADIENT");const n=t.paint.get("line-trim-offset");0===n[0]&&0===n[1]||e.push("RENDER_LINE_TRIM_OFFSET");const r=t.paint.get("line-pattern").constantOr(1),i=1!==t.paint.get("line-opacity").constantOr(1);return!r&&i&&e.push("RENDER_LINE_ALPHA_DISCARD"),e})(r);let b=v.includes("RENDER_LINE_ALPHA_DISCARD");e.terrain&&e.terrain.clipOrMaskOverlapStencilType()&&(b=!1);for(const o of i){const i=n.getTile(o);if(p&&!i.patternsLoaded())continue;const s=i.getBucket(r);
vendor: 36,015 bytes, line 27
27if(!s)continue;e.prepareDrawTile();const x=s.programConfigurations.get(r.id),w=e.useProgram(m,x,v),E=d.constantOr(null);if(E&&i.imageAtlas){const t=i.imageAtlas.patternPositions[E.toString()];t&&x.setConstantPatternPositions(t)}const S=u.constantOr(null),C=f.constantOr(null);if(!p&&S&&C&&i.lineAtlas){const t=i.lineAtlas.getDash(S,C);t&&x.setConstantPatternPositions(t)}let[A,I]=r.paint.get("line-trim-offset");if("round"===C||"square"===C){const t=1;A!==I&&(0===A&&(A-=t),1===I&&(I+=t))}const T=e.terrain?o.projMatrix:null,M=p?Kn(e,i,r,T,l):qn(e,i,r,T,s.lineClipsArray.length,l,[A,I]);if(g){const i=s.gradients[r.id];let a=i.texture;if(r.gradientVersion!==i.version){let c=256;if(r.stepInterpolant){const r=n.getSource().maxzoom,i=o.canonical.z===r?Math.ceil(1<<e.transform.maxZoom-o.canonical.z):1;c=t.clamp(t.nextPowerOfTwo(s.maxLineLength/t.EXTENT*1024*i),256,y.maxTextureSize)}i.gradient=t.renderColorRamp({expression:r.gradientExpression(),evaluationKey:"lineProgress",resolution:c,image:i.gradient||void 0,clips:s.lineClipsArray}),i.texture?i.texture.update(i.gradient):i.texture=new t.Texture(y,i.gradient,_.RGBA),i.version=r.gradientVersion,a=i.texture}y.activeTexture.set(_.TEXTURE1),a.bind(r.stepInterpolant?_.NEAREST:_.LINEAR,_.CLAMP_TO_EDGE)}h&&(y.activeTexture.set(_.TEXTURE0),i.lineAtlasTexture.bind(_.LINEAR,_.REPEAT),x.updatePaintBuffers()),p&&(y.activeTexture.set(_.TEXTURE0),i.imageAtlasTexture.bind(_.LINEAR,_.CLAMP_TO_EDGE),x.updatePaintBuffers()),e.prepareDrawProgram(y,w,o.toUnwrapped());const F=n=>{w.draw(y,_.TRIANGLES,a,n,c,t.CullFaceMode.disabled,M,r.id,s.layoutVertexBuffer,s.indexBuffer,s.segments,r.paint,e.transform.zoom,x,[s.layoutVertexBuffer2])};if(b){const n=e.stencilModeForClipping(o).ref;0===n&&e.terrain&&y.clear({stencil:0});const r={func:_.EQUAL,mask:255};M.u_alpha_discard_threshold=.8,F(new t.StencilMode(r,n,255,_.KEEP,_.KEEP,_.INVERT)),M.u_alpha_discard_threshold=0,F(new t.StencilMode(r,n,255,_.KEEP,_.KEEP,_.KEEP))}else F(e.stencilModeForClipping(o))}b&&(e.resetStencilClippingMasks(),e.terrain&&y.clear({stencil:0}))},fill:function(e,n,r,i){const o=r.paint.get("fill-color"),s=r.paint.get("fill-opacity");if(0===s.constantOr(1))return;const a=e.colorModeForRenderPass(),c=r.paint.get("fill-pattern"),l=e.opaquePassEnabledForLayer()&&!c.constantOr(1)&&1===o.constantOr(t.Color.transparent).a&&1===s.constantOr(0)?"opaque":"translucent";if(e.renderPass===l){const o=e.depthModeForSublayer(1,"opaque"===e.renderPass?t.DepthMode.ReadWrite:t.DepthMode.ReadOnly);_r(e,n,r,i,o,a,!1)}if("translucent"===e.renderPass&&r.paint.get("fill-antialias")){const o=e.depthModeForSublayer(r.getPaintProperty("fill-outline-color")?2:0,t.DepthMode.ReadOnly);_r(e,n,r,i,o,a,!0)}},"fill-extrusion":function(e,n,r,i){const o=r.paint.get("fill-extrusion-opacity");if(0!==o&&"translucent"===e.renderPass){const s=new t.DepthMode(e.context.gl.LEQUAL,t.DepthMode.ReadWrite,e.depthRangeFor3D);if(1!==o||r.paint.get("fill-extrusion-pattern").constantOr(1))vr(e,n,r,i,s,t.StencilMode.disabled,t.ColorMode.disabled),vr(e,n,r,i,s,e.stencilModeFor3D(),e.colorModeForRenderPass()),e.resetStencilClippingMasks();else{const o=e.colorModeForRenderPass();vr(e,n,r,i,s,t.StencilMode.disabled,o)}}},hillshade:function(e,n,r,i){if("offscreen"!==e.renderPass&&"translucent"!==e.renderPass)return;const o=e.context,s=e.depthModeForSublayer(0,t.DepthMode.ReadOnly),a=e.colorModeForRenderPass(),c=e.terrain&&e.terrain.renderingToTexture,[l,u]="translucent"!==e.renderPass||c?[{},i]:e.stencilConfigForOverlap(i);for(const i of u){const o=n.getTile(i);if(o.needsHillshadePrepare&&"offscreen"===e.renderPass)vn(e,o,r,s,t.StencilMode.disabled,a);else if("translucent"===e.renderPass){const t=c&&e.terrain?e.terrain.stencilModeForRTTOverlap(i):l[i.overscaledZ];yn(e,i,o,r,s,t,a)}}o.viewport.set([0,0,e.width,e.height]),e.resetStencilClippingMasks()},raster:function(e,n,r,i,o,s){if("translucent"!==e.renderPass)return;if(0===r.paint.get("raster-opacity"))return;if(!i.length)return;const a=e.context,c=a.gl,l=n.getSource(),u=e.useProgram("raster"),h=e.colorModeForRenderPass(),f=e.terrain&&e.terrain.renderingToTexture,[d,p]=l instanceof Tt||f?[{},i]:e.stencilConfigForOverlap(i),g=p[p.length-1].overscaledZ,m=!e.options.moving;for(const i of p){const o=f?t.DepthMode.disabled:e.depthModeForSublayer(i.overscaledZ-g,1===r.paint.get("raster-opacity")?t.DepthMode.ReadWrite:t.DepthMode.ReadOnly,c.LESS),p=i.toUnwrapped(),y=n.getTile(i);if(f&&(!y||!y.hasData()))continue;const _=f?i.projMatrix:e.transform.calculateProjMatrix(p,m),v=e.terrain&&f?e.terrain.stencilModeForRTTOverlap(i):d[i.overscaledZ],b=s?0:r.paint.get("raster-fade-duration");y.registerFadeDuration(b);const x=n.findLoadedParent(i,0),w=Mn(y,x,n,e.transform,b);let E,S;e.terrain&&e.terrain.prepareDrawTile();const C="nearest"===r.paint.get("raster-resampling")?c.NEAREST:c.LINEAR;a.activeTexture.set(c.TEXTURE0),y.texture.bind(C,c.CLAMP_TO_EDGE),a.activeTexture.set(c.TEXTURE1),x?(x.texture.bind(C,c.CLAMP_TO_EDGE),E=Math.pow(2,x.tileID.overscaledZ-y.tileID.overscaledZ),S=[y.tileID.canonical.x*E%1,y.tileID.canonical.y*E%1]):y.texture.bind(C,c.CLAMP_TO_EDGE),y.texture.useMipmap&&a.extTextureFilterAnisotropic&&e.transform.pitch>20&&c.texParameterf(c.TEXTURE_2D,a.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,a.extTextureFilterAnisotropicMax);const A=er(_,S||[0,0],E||1,w,r,l instanceof Tt?l.perspectiveTransform:[0,0]);if(e.prepareDrawProgram(a,u,p),l instanceof Tt)l.boundsBuffer&&l.boundsSegments&&u.draw(a,c.TRIANGLES,o,t.StencilMode.disabled,h,t.CullFaceMode.disabled,A,r.id,l.boundsBuffer,e.quadTriangleIndexBuffer,l.boundsSegments);else{const{tileBoundsBuffer:n,tileBoundsIndexBuffer:i,tileBoundsSegments:s}=e.getTileBoundsBuffers(y);u.draw(a,c.TRIANGLES,o,v,h,t.CullFaceMode.disabled,A,r.id,n,i,s)}}e.resetStencilClippingMasks()},background:function(e,n,r,i){const o=r.paint.get("background-color"),s=r.paint.get("background-opacity");if(0===s)return;const a=e.context,c=a.gl,l=e.transform,u=l.tileSize,h=r.paint.get("background-pattern");if(e.isPatternMissing(h))return;const f=!h&&1===o.a&&1===s&&e.opaquePassEnabledForLayer()?"opaque":"translucent";if(e.renderPass!==f)return;const d=t.StencilMode.disabled,p=e.depthModeForSublayer(0,"opaque"===f?t.DepthMode.ReadWrite:t.DepthMode.ReadOnly),g=e.colorModeForRenderPass(),m=e.useProgram(h?"backgroundPattern":"background");let y,_=i;_||(y=e.getBackgroundTiles(),_=Object.values(y).map(t=>t.tileID)),h&&(a.activeTexture.set(c.TEXTURE0),e.imageManager.bind(e.context));for(const f of _){const _=f.toUnwrapped(),v=i?f.projMatrix:e.transform.calculateProjMatrix(_);e.prepareDrawTile();const b=n?n.getTile(f):y?y[f.key]:new t.Tile(f,u,l.zoom,e),x=h?cr(v,s,e,h,{tileID:f,tileSize:u}):ar(v,s,o);e.prepareDrawProgram(a,m,_);const{tileBoundsBuffer:w,tileBoundsIndexBuffer:E,tileBoundsSegments:S}=e.getTileBoundsBuffers(b);m.draw(a,c.TRIANGLES,p,d,g,t.CullFaceMode.disabled,x,r.id,w,E,S)}},sky:function(e,n,r){const i=e.transform,o="mercator"===i.projection.name||"globe"===i.projection.name?1:t.smoothstep(7,8,i.zoom),s=r.paint.get("sky-opacity")*o;if(0===s)return;const a=e.context,c=r.paint.get("sky-type"),l=new t.DepthMode(a.gl.LEQUAL,t.DepthMode.ReadOnly,[0,1]),u=e.frameCounter/1e3%1;"atmosphere"===c?"offscreen"===e.renderPass?r.needsSkyboxCapture(e)&&(function(e,n,r,i){const o=e.context,s=o.gl;let a=n.skyboxFbo;if(!a){a=n.skyboxFbo=o.createFramebuffer(32,32,!1),n.skyboxGeometry=new Or(o),n.skyboxTexture=o.gl.createTexture(),s.bindTexture(s.TEXTURE_CUBE_MAP,n.skyboxTexture),s.texParameteri(s.TEXTURE_CUBE_MAP,s.TEXTURE_WRAP_S,s.CLAMP_TO_EDGE),s.texParameteri(s.TEXTURE_CUBE_MAP,s.TEXTURE_WRAP_T,s.CLAMP_TO_EDGE),s.texParameteri(s.TEXTURE_CUBE_MAP,s.TEXTURE_MIN_FILTER,s.LINEAR),s.texParameteri(s.TEXTURE_CUBE_MAP,s.TEXTURE_MAG_FILTER,s.LINEAR);for(let t=0;t<6;++t)s.texImage2D(s.TEXTURE_CUBE_MAP_POSITIVE_X+t,0,s.RGBA,32,32,0,s.RGBA,s.UNSIGNED_BYTE,null)}o.bindFramebuffer.set(a.framebuffer),o.viewport.set([0,0,32,32]);const c=n.getCenter(e,!0),l=e.useProgram("skyboxCapture"),u=new Float64Array(16);t.identity(u),t.rotateY(u,u,.5*-Math.PI),Ur(o,n,l,u,c,0),t.identity(u),t.rotateY(u,u,.5*Math.PI),Ur(o,n,l,u,c,1),t.identity(u),t.rotateX(u,u,.5*-Math.PI),Ur(o,n,l,u,c,2),t.identity(u),t.rotateX(u,u,.5*Math.PI),Ur(o,n,l,u,c,3),t.identity(u),Ur(o,n,l,u,c,4),t.identity(u),t.rotateY(u,u,Math.PI),Ur(o,n,l,u,c,5),o.viewport.set([0,0,e.width,e.height])}(e,r),r.markSkyboxValid(e)):"sky"===e.renderPass&&function(e,n,r,i,o){const s=e.context,a=s.gl,c=e.transform,l=e.useProgram("skybox");s.activeTexture.set(a.TEXTURE0),a.bindTexture(a.TEXTURE_CUBE_MAP,n.skyboxTexture);const u=((t,e,n,r,i)=>({u_matrix:t,u_sun_direction:e,u_cubemap:0,u_opacity:r,u_temporal_offset:i}))(c.skyboxMatrix,n.getCenter(e,!1),0,i,o);e.prepareDrawProgram(s,l),l.draw(s,a.TRIANGLES,r,t.StencilMode.disabled,e.colorModeForRenderPass(),t.CullFaceMode.backCW,u,"skybox",n.skyboxGeometry.vertexBuffer,n.skyboxGeometry.indexBuffer,n.skyboxGeometry.segment)}(e,r,l,s,u):"gradient"===c&&"sky"===e.renderPass&&function(e,n,r,i,o){const s=e.context,a=s.gl,c=e.transform,l=e.useProgram("skyboxGradient");n.skyboxGeometry||(n.skyboxGeometry=new Or(s)),s.activeTexture.set(a.TEXTURE0);let u=n.colorRampTexture;u||(u=n.colorRampTexture=new t.Texture(s,n.colorRamp,a.RGBA)),u.bind(a.LINEAR,a.CLAMP_TO_EDGE);const h=((e,n,r,i,o)=>({u_matrix:e,u_color_ramp:0,u_center_direction:n,u_radius:t.degToRad(r),u_opacity:i,u_temporal_offset:o}))(c.skyboxMatrix,n.getCenter(e,!1),n.paint.get("sky-gradient-radius"),i,o);e.prepareDrawProgram(s,l),l.draw(s,a.TRIANGLES,r,t.StencilMode.disabled,e.colorModeForRenderPass(),t.CullFaceMode.backCW,h,"skyboxGradient",n.skyboxGeometry.vertexBuffer,n.skyboxGeometry.indexBuffer,n.skyboxGeometry.segment)}(e,r,l,s,u)},debug:function(t,e,n){for(let r=0;r<n.length;r++)Ar(t,e,n[r])},custom:function(e,n,r,i){const o=e.context,s=r.implementation;if(!e.transform.projection.unsupportedLayers||!e.transform.projection.unsupportedLayers.includes("custom")||e.terrain&&(e.terrain.renderingToTexture||"offscreen"===e.renderPass)&&r.isLayerDraped()){if("offscreen"===e.renderPass){const n=s.prerender;if(n){if(e.setCustomLayerDefaults(),o.setColorMode(e.colorModeForRenderPass()),"globe"===e.transform.projection.name){const r=e.transform.pointMerc;n.call(s,o.gl,e.transform.customLayerMatrix(),e.transform.getProjection(),e.transform.globeToMercatorMatrix(),t.globeToMercatorTransition(e.transform.zoom),[r.x,r.y],e.transform.pixelsPerMeterRatio)}else n.call(s,o.gl,e.transform.customLayerMatrix());o.setDirty(),e.setBaseState()}}else if("translucent"===e.renderPass){if(e.terrain&&e.terrain.renderingToTexture){const n=s.renderToTile;if(n){const r=i[0].canonical,a=new t.MercatorCoordinate(r.x+i[0].wrap*(1<<r.z),r.y,r.z);o.setDepthMode(t.DepthMode.disabled),o.setStencilMode(t.StencilMode.disabled),o.setColorMode(e.colorModeForRenderPass()),e.setCustomLayerDefaults(),n.call(s,o.gl,a),o.setDirty(),e.setBaseState()}return}e.setCustomLayerDefaults(),o.setColorMode(e.colorModeForRenderPass()),o.setStencilMode(t.StencilMode.disabled);const n="3d"===s.renderingMode?new t.DepthMode(e.context.gl.LEQUAL,t.DepthMode.ReadWrite,e.depthRangeFor3D):e.depthModeForSublayer(0,t.DepthMode.ReadOnly);if(o.setDepthMode(n),"globe"===e.transform.projection.name){const n=e.transform.pointMerc;s.render(o.gl,e.transform.customLayerMatrix(),e.transform.getProjection(),e.transform.globeToMercatorMatrix(),t.globeToMercatorTransition(e.transform.zoom),[n.x,n.y],e.transform.pixelsPerMeterRatio)}else s.render(o.gl,e.transform.customLayerMatrix());o.setDirty(),e.setBaseState(),o.bindFramebuffer.set(null)}}else t.warnOnce("Custom layers are not yet supported with this projection. Use mercator or globe to enable usage of custom layers.")}};class Rr{constructor(e,n,r=!1){this.context=new St(e,r),this.transform=n,this._tileTextures={},this.frameCopies=[],this.loadTimeStamps=[],this.setup(),this.numSublayers=t.SourceCache.maxUnderzooming+t.SourceCache.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.deferredRenderGpuTimeQueries=[],this.gpuTimers={},this.frameCounter=0,this._backgroundTiles={}}updateTerrain(t,e){const n=!!t&&!!t.terrain&&this.transform.projection.supportsTerrain;if(!(n||this._terrain&&this._terrain.enabled))return;this._terrain||(this._terrain=new On(this,t));const r=this._terrain;this.transform.elevation=n?r:null,r.update(t,this.transform,e)}_updateFog(t){const e=t.fog;if(!e||"globe"===this.transform.projection.name||e.getOpacity(this.transform.pitch)<1||e.properties.get("horizon-blend")<.03)return void(this.transform.fogCullDistSq=null);const[n,r]=e.getFovAdjustedRange(this.transform._fov);if(n>r)return void(this.transform.fogCullDistSq=null);const i=n+.78*(r-n);this.transform.fogCullDistSq=i*i}get terrain(){return this.transform._terrainEnabled()&&this._terrain&&this._terrain.enabled?this._terrain:null}resize(e,n){if(this.width=e*t.exported.devicePixelRatio,this.height=n*t.exported.devicePixelRatio,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(const t of this.style.order)this.style._layers[t].resize()}setup(){const e=this.context,n=new t.StructArrayLayout2i4;n.emplaceBack(0,0),n.emplaceBack(t.EXTENT,0),n.emplaceBack(0,t.EXTENT),n.emplaceBack(t.EXTENT,t.EXTENT),this.tileExtentBuffer=e.createVertexBuffer(n,t.posAttributes.members),this.tileExtentSegments=t.SegmentVector.simpleSegment(0,0,4,2);const r=new t.StructArrayLayout2i4;r.emplaceBack(0,0),r.emplaceBack(t.EXTENT,0),r.emplaceBack(0,t.EXTENT),r.emplaceBack(t.EXTENT,t.EXTENT),this.debugBuffer=e.createVertexBuffer(r,t.posAttributes.members),this.debugSegments=t.SegmentVector.simpleSegment(0,0,4,5);const i=new t.StructArrayLayout2i4;i.emplaceBack(-1,-1),i.emplaceBack(1,-1),i.emplaceBack(-1,1),i.emplaceBack(1,1),this.viewportBuffer=e.createVertexBuffer(i,t.posAttributes.members),this.viewportSegments=t.SegmentVector.simpleSegment(0,0,4,2);const o=new t.StructArrayLayout4i8;o.emplaceBack(0,0,0,0),o.emplaceBack(t.EXTENT,0,t.EXTENT,0),o.emplaceBack(0,t.EXTENT,0,t.EXTENT),o.emplaceBack(t.EXTENT,t.EXTENT,t.EXTENT,t.EXTENT),this.mercatorBoundsBuffer=e.createVertexBuffer(o,t.boundsAttributes.members),this.mercatorBoundsSegments=t.SegmentVector.simpleSegment(0,0,4,2);const s=new t.StructArrayLayout3ui6;s.emplaceBack(0,1,2),s.emplaceBack(2,1,3),this.quadTriangleIndexBuffer=e.createIndexBuffer(s);const a=new t.StructArrayLayout1ui2;for(const t of[0,1,3,2,0])a.emplaceBack(t);this.debugIndexBuffer=e.createIndexBuffer(a),this.emptyTexture=new t.Texture(e,new t.RGBAImage({width:1,height:1},Uint8Array.of(0,0,0,0)),e.gl.RGBA),this.identityMat=t.create();const c=this.context.gl;this.stencilClearMode=new t.StencilMode({func:c.ALWAYS,mask:0},0,255,c.ZERO,c.ZERO,c.ZERO),this.loadTimeStamps.push(t.window.performance.now()),this.atmosphereBuffer=new Pr(this.context)}getMercatorTileBoundsBuffers(){return{tileBoundsBuffer:this.mercatorBoundsBuffer,tileBoundsIndexBuffer:this.quadTriangleIndexBuffer,tileBoundsSegments:this.mercatorBoundsSegments}}getTileBoundsBuffers(t){return t._makeTileBoundsBuffers(this.context,this.transform.projection),t._tileBoundsBuffer?{tileBoundsBuffer:t._tileBoundsBuffer,tileBoundsIndexBuffer:t._tileBoundsIndexBuffer,tileBoundsSegments:t._tileBoundsSegments}:this.getMercatorTileBoundsBuffers()}clearStencil(){const e=this.context,n=e.gl;this.nextStencilID=1,this.currentStencilSource=void 0,this._tileClippingMaskIDs={},this.useProgram("clippingMask").draw(e,n.TRIANGLES,t.DepthMode.disabled,this.stencilClearMode,t.ColorMode.disabled,t.CullFaceMode.disabled,Tn(this.identityMat),"$clipping",this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)}resetStencilClippingMasks(){this.terrain||(this.currentStencilSource=void 0,this._tileClippingMaskIDs={})}_renderTileClippingMasks(e,n,r){if(!n||this.currentStencilSource===n.id||!e.isTileClipped()||!r||0===r.length)return;if(this._tileClippingMaskIDs&&!this.terrain){let t=!1;for(const e of r)if(void 0===this._tileClippingMaskIDs[e.key]){t=!0;break}if(!t)return}this.currentStencilSource=n.id;const i=this.context,o=i.gl;this.nextStencilID+r.length>256&&this.clearStencil(),i.setColorMode(t.ColorMode.disabled),i.setDepthMode(t.DepthMode.disabled);const s=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(const e of r){const r=n.getTile(e),a=this._tileClippingMaskIDs[e.key]=this.nextStencilID++,{tileBoundsBuffer:c,tileBoundsIndexBuffer:l,tileBoundsSegments:u}=this.getTileBoundsBuffers(r);s.draw(i,o.TRIANGLES,t.DepthMode.disabled,new t.StencilMode({func:o.ALWAYS,mask:0},a,255,o.KEEP,o.KEEP,o.REPLACE),t.ColorMode.disabled,t.CullFaceMode.disabled,Tn(e.projMatrix),"$clipping",c,l,u)}}stencilModeFor3D(){this.currentStencilSource=void 0,this.nextStencilID+1>256&&this.clearStencil();const e=this.nextStencilID++,n=this.context.gl;return new t.StencilMode({func:n.NOTEQUAL,mask:255},e,255,n.KEEP,n.KEEP,n.REPLACE)}stencilModeForClipping(e){if(this.terrain)return this.terrain.stencilModeForRTTOverlap(e);const n=this.context.gl;return new t.StencilMode({func:n.EQUAL,mask:255},this._tileClippingMaskIDs[e.key],0,n.KEEP,n.KEEP,n.REPLACE)}stencilConfigForOverlap(e){const n=this.context.gl,r=e.sort((t,e)=>e.overscaledZ-t.overscaledZ),i=r[r.length-1].overscaledZ,o=r[0].overscaledZ-i+1;if(o>1){this.currentStencilSource=void 0,this.nextStencilID+o>256&&this.clearStencil();const e={};for(let r=0;r<o;r++)e[r+i]=new t.StencilMode({func:n.GEQUAL,mask:255},r+this.nextStencilID,255,n.KEEP,n.KEEP,n.REPLACE);return this.nextStencilID+=o,[e,r]}return[{[i]:t.StencilMode.disabled},r]}colorModeForRenderPass(){const e=this.context.gl;if(this._showOverdrawInspector){const n=1/8;return new t.ColorMode([e.CONSTANT_COLOR,e.ONE],new t.Color(n,n,n,0),[!0,!0,!0,!0])}return"opaque"===this.renderPass?t.ColorMode.unblended:t.ColorMode.alphaBlended}depthModeForSublayer(e,n,r){if(!this.opaquePassEnabledForLayer())return t.DepthMode.disabled;const i=1-((1+this.currentLayer)*this.numSublayers+e)*this.depthEpsilon;return new t.DepthMode(r||this.context.gl.LEQUAL,n,[i,i])}opaquePassEnabledForLayer(){return this.currentLayer<this.opaquePassCutoff}render(e,n){this.style=e,this.options=n,this.imageManager=e.imageManager,this.glyphManager=e.glyphManager,this.symbolFadeChange=e.placement.symbolFadeChange(t.exported.now()),this.imageManager.beginFrame();const r=this.style.order,i=this.style._sourceCaches;for(const t in i){const e=i[t];e.used&&e.prepare(this.context)}const o={},s={},a={};for(const t in i){const e=i[t];o[t]=e.getVisibleCoordinates(),s[t]=o[t].slice().reverse(),a[t]=e.getVisibleCoordinates(!0).reverse()}this.opaquePassCutoff=1/0;for(let t=0;t<r.length;t++)if(this.style._layers[r[t]].is3D()){this.opaquePassCutoff=t;break}if(this.terrain&&(this.terrain.updateTileBinding(a),this.opaquePassCutoff=0),"globe"!==this.transform.projection.name||this.globeSharedBuffers||(this.globeSharedBuffers=new t.GlobeSharedBuffers(this.context)),!t.isMapAuthenticated(this.context.gl))return;this.renderPass="offscreen";for(const t of r){const n=this.style._layers[t],r=e._getLayerSourceCache(n);if(!n.hasOffscreenPass()||n.isHidden(this.transform.zoom))continue;const i=r?s[r.id]:void 0;("custom"===n.type||n.isSky()||i&&i.length)&&this.renderLayer(this,r,n,i)}this.depthRangeFor3D=[0,1-(e.order.length+2)*this.numSublayers*this.depthEpsilon];const c=this.terrain;if(c&&(this.style.hasSymbolLayers()||this.style.hasCircleLayers())&&c.drawDepth(),this.context.bindFramebuffer.set(null),this.context.viewport.set([0,0,this.width,this.height]),this.context.clear({color:n.showOverdrawInspector?t.Color.black:t.Color.transparent,depth:1}),this.clearStencil(),this._showOverdrawInspector=n.showOverdrawInspector,this.renderPass="opaque",!this.terrain)for(this.currentLayer=r.length-1;this.currentLayer>=0;this.currentLayer--){const t=this.style._layers[r[this.currentLayer]],n=e._getLayerSourceCache(t);if(t.isSky())continue;const i=n?s[n.id]:void 0;this._renderTileClippingMasks(t,n,i),this.renderLayer(this,n,t,i)}if(this.style.fog&&this.transform.projection.supportsFog&&function(e,n){const r=e.context,i=r.gl,o=e.transform,s=new t.DepthMode(i.LEQUAL,t.DepthMode.ReadOnly,[0,1]),a=e.useProgram("globeAtmosphere",null,"globe"===o.projection.name?["PROJECTION_GLOBE_VIEW","FOG"]:["FOG"]),c=t.globeToMercatorTransition(o.zoom),l=n.properties.get("color").toArray01(),u=n.properties.get("high-color").toArray01(),h=n.properties.get("space-color").toArray01PremultipliedAlpha(),f=t.identity$1([]);t.rotateY$1(f,f,-t.degToRad(o._center.lng)),t.rotateX$1(f,f,t.degToRad(o._center.lat)),t.rotateZ$1(f,f,o.angle),t.rotateX$1(f,f,-o._pitch);const d=t.fromQuat(new Float32Array(16),f),p=t.mapValue(n.properties.get("star-intensity"),0,1,0,.25),g=5e-4,m=t.mapValue(n.properties.get("horizon-blend"),0,1,g,.25),y=t.globeUseCustomAntiAliasing(e,r,o)&&m===g?o.worldSize/(2*Math.PI*1.025)-1:o.globeRadius,_=e.frameCounter/1e3%1,v=t.length(o.globeCenterInViewSpace),b=Math.sqrt(Math.pow(v,2)-Math.pow(y,2)),x=Math.acos(b/v),w=((e,n,r,i,o,s,a,c,l,u,h,f,d,p)=>({u_frustum_tl:e,u_frustum_tr:n,u_frustum_br:r,u_frustum_bl:i,u_horizon:o,u_transition:s,u_fadeout_range:a,u_color:c,u_high_color:l,u_space_color:u,u_star_intensity:h,u_star_size:5*t.exported.devicePixelRatio,u_star_density:0,u_temporal_offset:f,u_horizon_angle:d,u_rotation_matrix:p}))(o.frustumCorners.TL,o.frustumCorners.TR,o.frustumCorners.BR,o.frustumCorners.BL,o.frustumCorners.horizon,c,m,l,u,h,p,_,x,d);e.prepareDrawProgram(r,a);const E=e.atmosphereBuffer;E&&a.draw(r,i.TRIANGLES,s,t.StencilMode.disabled,t.ColorMode.alphaBlended,t.CullFaceMode.backCW,w,"skybox",E.vertexBuffer,E.indexBuffer,E.segments)}(this,this.style.fog),this.renderPass="sky",(t.globeToMercatorTransition(this.transform.zoom)>0||"globe"!==this.transform.projection.name)&&this.transform.isHorizonVisible())for(this.currentLayer=0;this.currentLayer<r.length;this.currentLayer++){const t=this.style._layers[r[this.currentLayer]],n=e._getLayerSourceCache(t);t.isSky()&&this.renderLayer(this,n,t,n?s[n.id]:void 0)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer<r.length;){const t=this.style._layers[r[this.currentLayer]],n=e._getLayerSourceCache(t);if(t.isSky()){++this.currentLayer;continue}if(this.terrain&&this.style.isLayerDraped(t)){if(t.isHidden(this.transform.zoom)){++this.currentLayer;continue}this.currentLayer=this.terrain.renderBatch(this.currentLayer);continue}const i=n?("symbol"===t.type?a:s)[n.id]:void 0;this._renderTileClippingMasks(t,n,n?o[n.id]:void 0),this.renderLayer(this,n,t,i),++this.currentLayer}if(this.terrain&&this.terrain.postRender(),this.options.showTileBoundaries||this.options.showQueryGeometry||this.options.showTileAABBs){let n=null;t.values(this.style._layers).forEach(t=>{const r=e._getLayerSourceCache(t);r&&!t.isHidden(this.transform.zoom)&&(!n||n.getSource().maxzoom<r.getSource().maxzoom)&&(n=r)}),n&&this.options.showTileBoundaries&&Dr.debug(this,n,n.getVisibleCoordinates())}this.options.showPadding&&function(t){const e=t.transform.padding;Ir(t,t.transform.height-(e.top||0),3,xr),Ir(t,e.bottom||0,3,wr),Tr(t,e.left||0,3,Er),Tr(t,t.transform.width-(e.right||0),3,Sr);const n=t.transform.centerPoint;!function(t,e,n,r){Mr(t,e-1,n-10,2,20,r),Mr(t,e-10,n-1,20,2,r)}(t,n.x,t.transform.height-n.y,Cr)}(this),this.context.setDefault(),this.frameCounter=(this.frameCounter+1)%Number.MAX_SAFE_INTEGER,this.tileLoaded&&this.options.speedIndexTiming&&(this.loadTimeStamps.push(t.window.performance.now()),this.saveCanvasCopy())}renderLayer(t,e,n,r){n.isHidden(this.transform.zoom)||("background"===n.type||"sky"===n.type||"custom"===n.type||r&&r.length)&&(this.id=n.id,this.gpuTimingStart(n),(!t.transform.projection.unsupportedLayers||!t.transform.projection.unsupportedLayers.includes(n.type)||t.terrain&&"custom"===n.type)&&Dr[n.type](t,e,n,r,this.style.placement.variableOffsets,this.options.isInitialLoad),this.gpuTimingEnd())}gpuTimingStart(t){if(!this.options.gpuTiming)return;const e=this.context.extTimerQuery;let n=this.gpuTimers[t.id];n||(n=this.gpuTimers[t.id]={calls:0,cpuTime:0,query:e.createQueryEXT()}),n.calls++,e.beginQueryEXT(e.TIME_ELAPSED_EXT,n.query)}gpuTimingDeferredRenderStart(){if(this.options.gpuTimingDeferredRender){const t=this.context.extTimerQuery,e=t.createQueryEXT();this.deferredRenderGpuTimeQueries.push(e),t.beginQueryEXT(t.TIME_ELAPSED_EXT,e)}}gpuTimingDeferredRenderEnd(){if(!this.options.gpuTimingDeferredRender)return;const t=this.context.extTimerQuery;t.endQueryEXT(t.TIME_ELAPSED_EXT)}gpuTimingEnd(){if(!this.options.gpuTiming)return;const t=this.context.extTimerQuery;t.endQueryEXT(t.TIME_ELAPSED_EXT)}collectGpuTimers(){const t=this.gpuTimers;return this.gpuTimers={},t}collectDeferredRenderGpuQueries(){const t=this.deferredRenderGpuTimeQueries;return this.deferredRenderGpuTimeQueries=[],t}queryGpuTimers(t){const e={};for(const n in t){const r=t[n],i=this.context.extTimerQuery,o=i.getQueryObjectEXT(r.query,i.QUERY_RESULT_EXT)/1e6;i.deleteQueryEXT(r.query),e[n]=o}return e}queryGpuTimeDeferredRender(t){if(!this.options.gpuTimingDeferredRender)return 0;const e=this.context.extTimerQuery;let n=0;for(const r of t)n+=e.getQueryObjectEXT(r,e.QUERY_RESULT_EXT)/1e6,e.deleteQueryEXT(r);return n}translatePosMatrix(e,n,r,i,o){if(!r[0]&&!r[1])return e;const s=o?"map"===i?this.transform.angle:0:"viewport"===i?-this.transform.angle:0;if(s){const t=Math.sin(s),e=Math.cos(s);r=[r[0]*e-r[1]*t,r[0]*t+r[1]*e]}const a=[o?r[0]:F(n,r[0],this.transform.zoom),o?r[1]:F(n,r[1],this.transform.zoom),0],c=new Float32Array(16);return t.translate(c,e,a),c}saveTileTexture(t){const e=this._tileTextures[t.size[0]];e?e.push(t):this._tileTextures[t.size[0]]=[t]}getTileTexture(t){const e=this._tileTextures[t];return e&&e.length>0?e.pop():null}isPatternMissing(t){return null===t||void 0!==t&&!this.imageManager.getPattern(t.toString())}terrainRenderModeElevated(){return this.style&&!!this.style.getTerrain()&&!!this.terrain&&!this.terrain.renderingToTexture}currentGlobalDefines(){const t=this.terrain&&this.terrain.renderingToTexture,e=this.terrain&&0===this.terrain.exaggeration(),n=this.style&&this.style.fog,r=[];return this.terrainRenderModeElevated()&&r.push("TERRAIN"),"globe"===this.transform.projection.name&&r.push("GLOBE"),e&&r.push("ZERO_EXAGGERATION"),n&&!t&&0!==n.getOpacity(this.transform.pitch)&&r.push("FOG"),t&&r.push("RENDER_TO_TEXTURE"),this._showOverdrawInspector&&r.push("OVERDRAW_INSPECTOR"),r}useProgram(t,e,n){this.cache=this.cache||{};const r=n||[],i=this.currentGlobalDefines().concat(r),o=Un.cacheKey(fn[t],t,i,e);return this.cache[o]||(this.cache[o]=new Un(this.context,t,fn[t],e,lr[t],i)),this.cache[o]}setCustomLayerDefaults(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.frontFace.setDefault(),this.context.cullFaceSide.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()}setBaseState(){const t=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(t.FUNC_ADD)}initDebugOverlayCanvas(){null==this.debugOverlayCanvas&&(this.debugOverlayCanvas=t.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new t.Texture(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))}destroy(){this._terrain&&this._terrain.destroy(),this.globeSharedBuffers&&this.globeSharedBuffers.destroy(),this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy(),this.atmosphereBuffer&&this.atmosphereBuffer.destroy()}prepareDrawTile(){this.terrain&&this.terrain.prepareDrawTile()}prepareDrawProgram(e,n,r){if(this.terrain&&this.terrain.renderingToTexture)return;const i=this.style.fog;if(i){const o=i.getOpacity(this.transform.pitch),s=((e,n,r,i,o,s,a,c,l,u,h)=>{const f=e.transform,d=n.properties.get("color").toArray01();d[3]=i;const p=e.frameCounter/1e3%1;return{u_fog_matrix:r?f.calculateFogTileMatrix(r):e.identityMat,u_fog_range:n.getFovAdjustedRange(f._fov),u_fog_color:d,u_fog_horizon_blend:n.properties.get("horizon-blend"),u_fog_temporal_offset:p,u_frustum_tl:o,u_frustum_tr:s,u_frustum_br:a,u_frustum_bl:c,u_globe_pos:l,u_globe_radius:u,u_viewport:h,u_globe_transition:t.globeToMercatorTransition(f.zoom),u_is_globe:+("globe"===f.projection.name)}})(this,i,r,o,this.transform.frustumCorners.TL,this.transform.frustumCorners.TR,this.transform.frustumCorners.BR,this.transform.frustumCorners.BL,this.transform.globeCenterInViewSpace,this.transform.globeRadius,[this.transform.width*t.exported.devicePixelRatio,this.transform.height*t.exported.devicePixelRatio]);n.setFogUniformValues(e,s)}}setTileLoadedFlag(t){this.tileLoaded=t}saveCanvasCopy(){const t=this.canvasCopy();t&&(this.frameCopies.push(t),this.tileLoaded=!1)}canvasCopy(){const t=this.context.gl,e=t.createTexture();return t.bindTexture(t.TEXTURE_2D,e),t.copyTexImage2D(t.TEXTURE_2D,0,t.RGBA,0,0,t.drawingBufferWidth,t.drawingBufferHeight,0),e}getCanvasCopiesAndTimestamps(){return{canvasCopies:this.frameCopies,timeStamps:this.loadTimeStamps}}averageElevationNeedsEasing(){if(!this.transform._elevation)return!1;const t=this.style&&this.style.fog;return!!t&&0!==t.getOpacity(this.transform.pitch)}getBackgroundTiles(){const e=this._backgroundTiles,n=this._backgroundTiles={},r=this.transform.coveringTiles({tileSize:512});for(const i of r)n[i.key]=e[i.key]||new t.Tile(i,512,this.transform.tileZoom,this);return n}clearBackgroundTiles(){this._backgroundTiles={}}}class jr{constructor(t=0,e=0,n=0,r=0){if(isNaN(t)||t<0||isNaN(e)||e<0||isNaN(n)||n<0||isNaN(r)||r<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=t,this.bottom=e,this.left=n,this.right=r}interpolate(e,n,r){return null!=n.top&&null!=e.top&&(this.top=t.number(e.top,n.top,r)),null!=n.bottom&&null!=e.bottom&&(this.bottom=t.number(e.bottom,n.bottom,r)),null!=n.left&&null!=e.left&&(this.left=t.number(e.left,n.left,r)),null!=n.right&&null!=e.right&&(this.right=t.number(e.right,n.right,r)),this}getCenter(e,n){const r=t.clamp((this.left+e-this.right)/2,0,e),i=t.clamp((this.top+n-this.bottom)/2,0,n);return new t.Point(r,i)}equals(t){return this.top===t.top&&this.bottom===t.bottom&&this.left===t.left&&this.right===t.right}clone(){return new jr(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}function zr(e,n){const r=t.getColumn(e,3);t.fromQuat(e,n),t.setColumn(e,3,r)}function Qr(e,n){const r=t.identity$1([]);return t.rotateZ$1(r,r,-n),t.rotateX$1(r,r,-e),r}function Nr(e,n){const r=[e[0],e[1],0],i=[n[0],n[1],0];if(t.length(r)>=1e-15){const e=t.normalize([],r);t.scale$2(i,e,t.dot(i,e)),n[0]=i[0],n[1]=i[1]}const o=t.cross([],n,e);if(t.len(o)<1e-15)return null;const s=Math.atan2(-o[1],o[0]);return Qr(Math.atan2(Math.sqrt(e[0]*e[0]+e[1]*e[1]),-e[2]),s)}class Vr{constructor(t,e){this.position=t,this.orientation=e}get position(){return this._position}set position(e){if(e){const n=e instanceof t.MercatorCoordinate?e:new t.MercatorCoordinate(e[0],e[1],e[2]);this._renderWorldCopies&&(n.x=t.wrap(n.x,0,1)),this._position=n}else this._position=null}lookAtPoint(e,n){if(this.orientation=null,!this.position)return;const r=this.position,i=this._elevation?this._elevation.getAtPointOrZero(t.MercatorCoordinate.fromLngLat(e)):0,o=t.MercatorCoordinate.fromLngLat(e,i),s=[o.x-r.x,o.y-r.y,o.z-r.z];n||(n=[0,0,1]),n[2]=Math.abs(n[2]),this.orientation=Nr(s,n)}setPitchBearing(e,n){this.orientation=Qr(t.degToRad(e),t.degToRad(-n))}}class Gr{constructor(e,n){this._transform=t.identity([]),this.orientation=n,this.position=e}get mercatorPosition(){const e=this.position;return new t.MercatorCoordinate(e[0],e[1],e[2])}get position(){const e=t.getColumn(this._transform,3);return[e[0],e[1],e[2]]}set position(e){var n;e&&t.setColumn(this._transform,3,[(n=e)[0],n[1],n[2],1])}get orientation(){return this._orientation}set orientation(e){this._orientation=e||t.identity$1([]),e&&zr(this._transform,this._orientation)}getPitchBearing(){const t=this.forward(),e=this.right();return{bearing:Math.atan2(-e[1],e[0]),pitch:Math.atan2(Math.sqrt(t[0]*t[0]+t[1]*t[1]),-t[2])}}setPitchBearing(t,e){this._orientation=Qr(t,e),zr(this._transform,this._orientation)}forward(){const e=t.getColumn(this._transform,2);return[-e[0],-e[1],-e[2]]}up(){const e=t.getColumn(this._transform,1);return[-e[0],-e[1],-e[2]]}right(){const e=t.getColumn(this._transform,0);return[e[0],e[1],e[2]]}getCameraToWorld(e,n){const r=new Float64Array(16);return t.invert(r,this.getWorldToCamera(e,n)),r}getWorldToCameraPosition(e,n,r){const i=this.position;t.scale$2(i,i,-e);const o=new Float64Array(16);return t.fromScaling(o,[r,r,r]),t.translate(o,o,i),o[10]*=n,o}getWorldToCamera(e,n){const r=new Float64Array(16),i=new Float64Array(4),o=this.position;return t.conjugate(i,this._orientation),t.scale$2(o,o,-e),t.fromQuat(r,i),t.translate(r,r,o),r[1]*=-1,r[5]*=-1,r[9]*=-1,r[13]*=-1,r[8]*=n,r[9]*=n,r[10]*=n,r[11]*=n,r}getCameraToClipPerspective(e,n,r,i){const o=new Float64Array(16);return t.perspective(o,e,n,r,i),o}getDistanceToElevation(e,n=!1){const r=0===e?0:t.mercatorZfromAltitude(e,n?t.latFromMercatorY(this.position[1]):this.position[1]),i=this.forward();return(r-this.position[2])/i[2]}clone(){return new Gr([...this.position],[...this.orientation])}}function Hr(e,n){const r=Wr(e.projection,e.zoom,e.width,e.height),i=function(e,n,r,i,o){const s=new t.LngLat(r.lng-180*Xr,r.lat),a=new t.LngLat(r.lng+180*Xr,r.lat),c=e.project(s.lng,s.lat),l=e.project(a.lng,a.lat),u=-Math.atan2(l.y-c.y,l.x-c.x),h=t.MercatorCoordinate.fromLngLat(r);h.y=t.clamp(h.y,-1+Xr,1-Xr);const f=h.toLngLat(),d=e.project(f.lng,f.lat),p=t.MercatorCoordinate.fromLngLat(f);p.x+=Xr;const g=p.toLngLat(),m=e.project(g.lng,g.lat),y=qr(m.x-d.x,m.y-d.y,u),_=t.MercatorCoordinate.fromLngLat(f);_.y+=Xr;const v=_.toLngLat(),b=e.project(v.lng,v.lat),x=qr(b.x-d.x,b.y-d.y,u),w=Math.abs(y.x)/Math.abs(x.y),E=t.identity([]);t.rotateZ(E,E,-u*(1-(o?0:i)));const S=t.identity([]);return t.scale(S,S,[1,1-(1-w)*i,1]),S[4]=-x.x/x.y*i,t.rotateZ(S,S,u),t.multiply(S,E,S),S}(e.projection,0,e.center,r,n),o=Zr(e);return t.scale(i,i,[o,o,1]),i}function Zr(e){const n=e.projection,r=Wr(e.projection,e.zoom,e.width,e.height),i=Yr(n,e.center),o=Yr(n,t.LngLat.convert(n.center));return Math.pow(2,i*r+(1-r)*o)}function Wr(e,n,r,i,o=1/0){const s=e.range;if(!s)return 0;const a=Math.min(o,Math.max(r,i)),c=Math.log(a/1024)/Math.LN2;return t.smoothstep(s[0]+c,s[1]+c,n)}const Xr=1/4e4;function Yr(e,n){const r=t.clamp(n.lat,-t.MAX_MERCATOR_LATITUDE,t.MAX_MERCATOR_LATITUDE),i=new t.LngLat(n.lng-180*Xr,r),o=new t.LngLat(n.lng+180*Xr,r),s=e.project(i.lng,r),a=e.project(o.lng,r),c=t.MercatorCoordinate.fromLngLat(i),l=t.MercatorCoordinate.fromLngLat(o),u=a.x-s.x,h=a.y-s.y,f=l.x-c.x,d=l.y-c.y,p=Math.sqrt((f*f+d*d)/(u*u+h*h));return Math.log(p)/Math.LN2}function qr(t,e,n){const r=Math.cos(n),i=Math.sin(n);return{x:t*r-e*i,y:t*i+e*r}}class Kr{constructor(e,n,r,i,o,s,a){this.tileSize=512,this._renderWorldCopies=void 0===o||o,this._minZoom=e||0,this._maxZoom=n||22,this._minPitch=null==r?0:r,this._maxPitch=null==i?60:i,this.setProjection(s),this.setMaxBounds(a),this.width=0,this.height=0,this._center=new t.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._nearZ=0,this._farZ=0,this._unmodified=!0,this._edgeInsets=new jr,this._projMatrixCache={},this._alignedProjMatrixCache={},this._fogTileMatrixCache={},this._distanceTileDataCache={},this._camera=new Gr,this._centerAltitude=0,this._averageElevation=0,this.cameraElevationReference="ground",this._pixelsPerMercatorPixel=1,this.globeRadius=0,this.globeCenterInViewSpace=[0,0,0],this._horizonShift=.1}clone(){const t=new Kr(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies,this.getProjection());return t._elevation=this._elevation,t._centerAltitude=this._centerAltitude,t._centerAltitudeValidForE
27xaggeration=this._centerAltitudeValidForExaggeration,t.tileSize=this.tileSize,t.mercatorFromTransition=this.mercatorFromTransition,t.width=this.width,t.height=this.height,t.cameraElevationReference=this.cameraElevationReference,t._center=this._center,t._setZoom(this.zoom),t._seaLevelZoom=this._seaLevelZoom,t.angle=this.angle,t._fov=this._fov,t._pitch=this._pitch,t._nearZ=this._nearZ,t._farZ=this._farZ,t._averageElevation=this._averageElevation,t._unmodified=this._unmodified,t._edgeInsets=this._edgeInsets.clone(),t._camera=this._camera.clone(),t._calcMatrices(),t.freezeTileCoverage=this.freezeTileCoverage,t.frustumCorners=this.frustumCorners,t}get elevation(){return this._elevation}set elevation(t){this._elevation!==t&&(this._elevation=t,this._updateCameraOnTerrain(),this._calcMatrices())}updateElevation(t,e=!1){const n=this._elevation&&this._elevation.exaggeration()!==this._centerAltitudeValidForExaggeration;(null==this._seaLevelZoom||n)&&this._updateCameraOnTerrain(),(t||n)&&this._constrainCamera(e),this._calcMatrices()}getProjection(){return t.pick(this.projection,["name","center","parallels"])}setProjection(n){this.projectionOptions=n||{name:"mercator"};const r=this.projection?this.getProjection():void 0;this.projection=t.getProjection(this.projectionOptions);const i=!e(r,this.getProjection());return i&&this._calcMatrices(),this.mercatorFromTransition=!1,i}setMercatorFromTransition(){const e=this.projection.name;this.mercatorFromTransition=!0,this.projectionOptions={name:"mercator"},this.projection=t.getProjection({name:"mercator"});const n=e!==this.projection.name;return n&&this._calcMatrices(),n}get minZoom(){return this._minZoom}set minZoom(t){this._minZoom!==t&&(this._minZoom=t,this.zoom=Math.max(this.zoom,t))}get maxZoom(){return this._maxZoom}set maxZoom(t){this._maxZoom!==t&&(this._maxZoom=t,this.zoom=Math.min(this.zoom,t))}get minPitch(){return this._minPitch}set minPitch(t){this._minPitch!==t&&(this._minPitch=t,this.pitch=Math.max(this.pitch,t))}get maxPitch(){return this._maxPitch}set maxPitch(t){this._maxPitch!==t&&(this._maxPitch=t,this.pitch=Math.min(this.pitch,t))}get renderWorldCopies(){return this._renderWorldCopies&&!0===this.projection.supportsWorldCopies}set renderWorldCopies(t){void 0===t?t=!0:null===t&&(t=!1),this._renderWorldCopies=t}get worldSize(){return this.tileSize*this.scale}get cameraWorldSizeForFog(){const t=Math.max(this._camera.getDistanceToElevation(this._averageElevation),Number.EPSILON);return this._worldSizeFromZoom(this._zoomFromMercatorZ(t))}get cameraWorldSize(){const t=Math.max(this._camera.getDistanceToElevation(this._averageElevation,!0),Number.EPSILON);return this._worldSizeFromZoom(this._zoomFromMercatorZ(t))}get pixelsPerMeter(){return this.projection.pixelsPerMeter(this.center.lat,this.worldSize)}get cameraPixelsPerMeter(){return t.mercatorZfromAltitude(this.center.lat,this.cameraWorldSizeForFog)}get centerOffset(){return this.centerPoint._sub(this.size._div(2))}get size(){return new t.Point(this.width,this.height)}get bearing(){return t.wrap(this.rotation,-180,180)}set bearing(t){this.rotation=t}get rotation(){return-this.angle/Math.PI*180}set rotation(e){const n=-e*Math.PI/180;var r;this.angle!==n&&(this._unmodified=!1,this.angle=n,this._calcMatrices(),this.rotationMatrix=(r=new t.ARRAY_TYPE(4),t.ARRAY_TYPE!=Float32Array&&(r[1]=0,r[2]=0),r[0]=1,r[3]=1,r),function(t,e,n){var r=e[0],i=e[1],o=e[2],s=e[3],a=Math.sin(n),c=Math.cos(n);t[0]=r*c+o*a,t[1]=i*c+s*a,t[2]=r*-a+o*c,t[3]=i*-a+s*c}(this.rotationMatrix,this.rotationMatrix,this.angle))}get pitch(){return this._pitch/Math.PI*180}set pitch(e){const n=t.clamp(e,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==n&&(this._unmodified=!1,this._pitch=n,this._calcMatrices())}get aspect(){return this.width/this.height}get fov(){return this._fov/Math.PI*180}get fovX(){return this._fov}get fovY(){const t=1/Math.tan(.5*this.fovX);return 2*Math.atan(1/this.aspect/t)}set fov(e){e=Math.max(.01,Math.min(60,e)),this._fov!==e&&(this._unmodified=!1,this._fov=t.degToRad(e),this._calcMatrices())}get averageElevation(){return this._averageElevation}set averageElevation(t){this._averageElevation=t,this._calcFogMatrices(),this._distanceTileDataCache={}}get zoom(){return this._zoom}set zoom(t){const e=Math.min(Math.max(t,this.minZoom),this.maxZoom);this._zoom!==e&&(this._unmodified=!1,this._setZoom(e),this._updateSeaLevelZoom(),this._constrain(),this._calcMatrices())}_setZoom(t){this._zoom=t,this.scale=this.zoomScale(t),this.tileZoom=Math.floor(t),this.zoomFraction=t-this.tileZoom}_updateCameraOnTerrain(){if(!this._elevation||!this._elevation.isDataAvailableAtPoint(this.locationCoordinate(this.center)))return this._centerAltitude=0,this._seaLevelZoom=null,void(this._centerAltitudeValidForE
vendor: 11,086 bytes, line 27
27xaggeration=void 0);const t=this._elevation;this._centerAltitude=t.getAtPointOrZero(this.locationCoordinate(this.center)),this._centerAltitudeValidForExaggeration=t.exaggeration(),this._updateSeaLevelZoom()}_updateSeaLevelZoom(){void 0!==this._centerAltitudeValidForExaggeration&&(this._seaLevelZoom=this._zoomFromMercatorZ((this.pixelsPerMeter*this._centerAltitude+this.cameraToCenterDistance)/this.worldSize))}sampleAverageElevation(){if(!this._elevation)return 0;const e=this._elevation,n=[[.5,.2],[.3,.5],[.5,.5],[.7,.5],[.5,.8]],r=this.horizonLineFromTop();let i=0,o=0;for(let s=0;s<n.length;s++){const a=new t.Point(n[s][0]*this.width,r+n[s][1]*(this.height-r)),c=e.pointCoordinate(a);if(!c)continue;const l=1/Math.hypot(c[0]-this._camera.position[0],c[1]-this._camera.position[1]);i+=c[3]*l,o+=l}return 0===o?NaN:i/o}get center(){return this._center}set center(t){t.lat===this._center.lat&&t.lng===this._center.lng||(this._unmodified=!1,this._center=t,this._terrainEnabled()&&("ground"===this.cameraElevationReference?this._updateCameraOnTerrain():this._updateZoomFromElevation()),this._constrain(),this._calcMatrices())}_updateZoomFromElevation(){if(null==this._seaLevelZoom||!this._elevation)return;const t=this._seaLevelZoom,e=this._elevation.getAtPointOrZero(this.locationCoordinate(this.center)),n=this.pixelsPerMeter/this.worldSize*e,r=this._mercatorZfromZoom(t),i=this._mercatorZfromZoom(this._maxZoom),o=Math.max(r-n,i);this._setZoom(this._zoomFromMercatorZ(o))}get padding(){return this._edgeInsets.toJSON()}set padding(t){this._edgeInsets.equals(t)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,t,1),this._calcMatrices())}computeZoomRelativeTo(e){const n=this.rayIntersectionCoordinate(this.pointRayIntersection(this.centerPoint,e.toAltitude()));let r;r=e.z<this._camera.position[2]?[n.x,n.y,n.z]:[e.x,e.y,e.z];const i=t.length(t.sub([],this._camera.position,r));return t.clamp(this._zoomFromMercatorZ(i),this._minZoom,this._maxZoom)}setFreeCameraOptions(e){if(!this.height)return;if(!e.position&&!e.orientation)return;this._updateCameraState();let n=!1;if(e.orientation&&!t.exactEquals(e.orientation,this._camera.orientation)&&(n=this._setCameraOrientation(e.orientation)),e.position){const r=[e.position.x,e.position.y,e.position.z];t.exactEquals$1(r,this._camera.position)||(this._setCameraPosition(r),n=!0)}n&&(this._updateStateFromCamera(),this.recenterOnTerrain())}getFreeCameraOptions(){this._updateCameraState();const e=this._camera.position,n=new Vr;return n.position=new t.MercatorCoordinate(e[0],e[1],e[2]),n.orientation=this._camera.orientation,n._elevation=this.elevation,n._renderWorldCopies=this.renderWorldCopies,n}_setCameraOrientation(e){if(!t.length$1(e))return!1;t.normalize$1(e,e);const n=t.transformQuat([],[0,0,-1],e),r=t.transformQuat([],[0,-1,0],e);if(r[2]<0)return!1;const i=Nr(n,r);return!!i&&(this._camera.orientation=i,!0)}_setCameraPosition(e){const n=this.zoomScale(this.minZoom)*this.tileSize,r=this.zoomScale(this.maxZoom)*this.tileSize,i=this.cameraToCenterDistance;e[2]=t.clamp(e[2],i/r,i/n),this._camera.position=e}get centerPoint(){return this._edgeInsets.getCenter(this.width,this.height)}get fovAboveCenter(){return this._fov*(.5+this.centerOffset.y/this.height)}isPaddingEqual(t){return this._edgeInsets.equals(t)}interpolatePadding(t,e,n){this._unmodified=!1,this._edgeInsets.interpolate(t,e,n),this._constrain(),this._calcMatrices()}coveringZoomLevel(t){const e=(t.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/t.tileSize));return Math.max(0,e)}getVisibleUnwrappedCoordinates(e){const n=[new t.UnwrappedTileID(0,e)];if(this.renderWorldCopies){const r=this.pointCoordinate(new t.Point(0,0)),i=this.pointCoordinate(new t.Point(this.width,0)),o=this.pointCoordinate(new t.Point(this.width,this.height)),s=this.pointCoordinate(new t.Point(0,this.height)),a=Math.floor(Math.min(r.x,i.x,o.x,s.x)),c=Math.floor(Math.max(r.x,i.x,o.x,s.x)),l=1;for(let r=a-l;r<=c+l;r++)0!==r&&n.push(new t.UnwrappedTileID(r,e))}return n}coveringTiles(e){let n=this.coveringZoomLevel(e);const r=n,i=this.elevation&&!e.isTerrainDEM,o="mercator"===this.projection.name;if(void 0!==e.minzoom&&n<e.minzoom)return[];void 0!==e.maxzoom&&n>e.maxzoom&&(n=e.maxzoom);const s=this.locationCoordinate(this.center),a=this.center.lat,c=1<<n,l=[c*s.x,c*s.y,0],u="globe"===this.projection.name,h=!u,f=t.Frustum.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,n,h),d=u?this._camera.mercatorPosition:this.pointCoordinate(this.getCameraPoint()),p=c*t.mercatorZfromAltitude(1,this.center.lat),g=this._camera.position[2]/t.mercatorZfromAltitude(1,this.center.lat),m=[c*d.x,c*d.y,g*(h?1:p)],y=this.cameraToCenterDistance/e.tileSize*(e.roundZoom?1:.502),_=this.pitch<=60&&this._edgeInsets.top<=this._edgeInsets.bottom&&!this._elevation&&!this.projection.isReprojectedInTileSpace?n:0,v=e.isTerrainDEM&&this._elevation?1e4*this._elevation.exaggeration():this._centerAltitude,b=e.isTerrainDEM?-v:this._elevation?this._elevation.getMinElevationBelowMSL():0,x=this.projection.isReprojectedInTileSpace?Zr(this):1,w=e=>{const n=1/4e4,r=new t.MercatorCoordinate(e.x+n,e.y,e.z),i=new t.MercatorCoordinate(e.x,e.y+n,e.z),o=e.toLngLat(),s=r.toLngLat(),a=i.toLngLat(),c=this.locationCoordinate(o),l=this.locationCoordinate(s),u=this.locationCoordinate(a),h=Math.hypot(l.x-c.x,l.y-c.y),f=Math.hypot(u.x-c.x,u.y-c.y);return Math.sqrt(h*f)*x/n},E=e=>{const n=v,r=b;return{aabb:t.tileAABB(this,c,0,0,0,e,r,n,this.projection),zoom:0,x:0,y:0,minZ:r,maxZ:n,wrap:e,fullyVisible:!1}},S=[];let C=[];const A=n,I=e.reparseOverscaled?r:n,T=t=>t*t,M=T((g-this._centerAltitude)*p),F=t=>{if(!this._elevation||!t.tileID||!o)return;const e=this._elevation.getMinMaxForTile(t.tileID),n=t.aabb;e?(n.min[2]=e.min,n.max[2]=e.max,n.center[2]=(n.min[2]+n.max[2])/2):(t.shouldSplit=B(t),t.shouldSplit||(n.min[2]=n.max[2]=n.center[2]=this._centerAltitude))},B=e=>{if(e.zoom<_)return!0;if(e.zoom===A)return!1;if(null!=e.shouldSplit)return e.shouldSplit;const n=e.aabb.distanceX(m),o=e.aabb.distanceY(m);let s=M,c=1;if(u){s=T(e.aabb.distanceZ(m));const n=Math.pow(2,e.zoom),r=t.latFromMercatorY((e.y+1)/n),i=t.latFromMercatorY(e.y/n),o=Math.min(Math.max(a,r),i),l=t.circumferenceAtLatitude(o)/t.circumferenceAtLatitude(a);if(c=o===a?1/Math.max(1,this._mercatorScaleRatio-.3):Math.min(1,l/this._mercatorScaleRatio),this.zoom<=t.GLOBE_ZOOM_THRESHOLD_MIN&&e.zoom===A-1&&l>=.9)return!0}else if(i&&(s=T(e.aabb.distanceZ(m)*p)),this.projection.isReprojectedInTileSpace&&r<=5){const n=Math.pow(2,e.zoom),r=w(new t.MercatorCoordinate((e.x+.5)/n,(e.y+.5)/n));c=r>.85?1:r}const l=n*n+o*o+s;return l<T((1<<A-e.zoom)*y*c*((t,e)=>{if(e*T(.707)<t)return 1;const n=Math.sqrt(e/t);return n/(1.4144271570014144+(Math.pow(1.1,n-1.4144271570014144+1)-1)/(1.1-1)-1)})(Math.max(s,M),l))};if(this.renderWorldCopies)for(let t=1;t<=3;t++)S.push(E(-t)),S.push(E(t));for(S.push(E(0));S.length>0;){const r=S.pop(),s=r.x,a=r.y;let h=r.fullyVisible;if(!h){const t=r.aabb.intersects(f);if(0===t)continue;h=2===t}if(r.zoom!==A&&B(r))for(let e=0;e<4;e++){const n=(s<<1)+e%2,l=(a<<1)+(e>>1),f={aabb:o?r.aabb.quadrant(e):t.tileAABB(this,c,r.zoom+1,n,l,r.wrap,r.minZ,r.maxZ,this.projection),zoom:r.zoom+1,x:n,y:l,wrap:r.wrap,fullyVisible:h,tileID:void 0,shouldSplit:void 0,minZ:r.minZ,maxZ:r.maxZ};i&&!u&&(f.tileID=new t.OverscaledTileID(r.zoom+1===A?I:r.zoom+1,r.wrap,r.zoom+1,n,l),F(f)),S.push(f)}else{const i=r.zoom===A?I:r.zoom;if(e.minzoom&&e.minzoom>i)continue;const o=l[0]-(.5+s+(r.wrap<<r.zoom))*(1<<n-r.zoom),c=l[1]-.5-a,u=r.tileID?r.tileID:new t.OverscaledTileID(i,r.wrap,r.zoom,s,a);C.push({tileID:u,distanceSq:o*o+c*c})}}if(this.fogCullDistSq){const n=this.fogCullDistSq,r=this.horizonLineFromTop();C=C.filter(i=>{const o=[0,0,0,1],s=[t.EXTENT,t.EXTENT,0,1],a=this.calculateFogTileMatrix(i.tileID.toUnwrapped());t.transformMat4$1(o,o,a),t.transformMat4$1(s,s,a);const c=t.getAABBPointSquareDist(o,s);if(0===c)return!0;let l=!1;const u=this._elevation;if(u&&c>n&&0!==r){const n=this.calculateProjMatrix(i.tileID.toUnwrapped());let o;e.isTerrainDEM||(o=u.getMinMaxForTile(i.tileID)),o||(o={min:b,max:v});const s=t.furthestTileCorner(this.rotation),a=[s[0]*t.EXTENT,s[1]*t.EXTENT,o.max];t.transformMat4(a,a,n),l=(1-a[1])*this.height*.5<r}return c<n||l})}return C.sort((t,e)=>t.distanceSq-e.distanceSq).map(t=>t.tileID)}resize(t,e){this.width=t,this.height=e,this.pixelsToGLUnits=[2/t,-2/e],this._constrain(),this._calcMatrices()}get unmodified(){return this._unmodified}zoomScale(t){return Math.pow(2,t)}scaleZoom(t){return Math.log(t)/Math.LN2}project(e){const n=t.clamp(e.lat,-t.MAX_MERCATOR_LATITUDE,t.MAX_MERCATOR_LATITUDE),r=this.projection.project(e.lng,n);return new t.Point(r.x*this.worldSize,r.y*this.worldSize)}unproject(t){return this.projection.unproject(t.x/this.worldSize,t.y/this.worldSize)}get point(){return this.project(this.center)}get pointMerc(){return this.point._div(this.worldSize)}get pixelsPerMeterRatio(){return this.pixelsPerMeter/t.mercatorZfromAltitude(1,this.center.lat)/this.worldSize}setLocationAtPoint(e,n){let r,i;const o=this.centerPoint;if("globe"===this.projection.name){const t=this.worldSize;r=(n.x-o.x)/t,i=(n.y-o.y)/t}else{const t=this.pointCoordinate(n),e=this.pointCoordinate(o);r=t.x-e.x,i=t.y-e.y}const s=this.locationCoordinate(e);this.setLocation(new t.MercatorCoordinate(s.x-r,s.y-i))}setLocation(t){this.center=this.coordinateLocation(t),this.projection.wrap&&(this.center=this.center.wrap())}locationPoint(t){return this.projection.locationPoint(this,t)}locationPoint3D(t){return this.projection.locationPoint(this,t,!0)}pointLocation(t){return this.coordinateLocation(this.pointCoordinate(t))}pointLocation3D(t){return this.coordinateLocation(this.pointCoordinate3D(t))}locationCoordinate(e,n){const r=n?t.mercatorZfromAltitude(n,e.lat):void 0,i=this.projection.project(e.lng,e.lat);return new t.MercatorCoordinate(i.x,i.y,r)}coordinateLocation(t){return this.projection.unproject(t.x,t.y)}pointRayIntersection(e,n){const r=null!=n?n:this._centerAltitude,i=[e.x,e.y,0,1],o=[e.x,e.y,1,1];t.transformMat4$1(i,i,this.pixelMatrixInverse),t.transformMat4$1(o,o,this.pixelMatrixInverse);const s=o[3];t.scale$1(i,i,1/i[3]),t.scale$1(o,o,1/s);const a=i[2],c=o[2];return{p0:i,p1:o,t:a===c?0:(r-a)/(c-a)}}screenPointToMercatorRay(e){const n=[e.x,e.y,0,1],r=[e.x,e.y,1,1];return t.transformMat4$1(n,n,this.pixelMatrixInverse),t.transformMat4$1(r,r,this.pixelMatrixInverse),t.scale$1(n,n,1/n[3]),t.scale$1(r,r,1/r[3]),n[2]=t.mercatorZfromAltitude(n[2],this._center.lat)*this.worldSize,r[2]=t.mercatorZfromAltitude(r[2],this._center.lat)*this.worldSize,t.scale$1(n,n,1/this.worldSize),t.scale$1(r,r,1/this.worldSize),new t.Ray([n[0],n[1],n[2]],t.normalize([],t.sub([],r,n)))}rayIntersectionCoordinate(e){const{p0:n,p1:r,t:i}=e,o=t.mercatorZfromAltitude(n[2],this._center.lat),s=t.mercatorZfromAltitude(r[2],this._center.lat);return new t.MercatorCoordinate(t.number(n[0],r[0],i)/this.worldSize,t.number(n[1],r[1],i)/this.worldSize,t.number(o,s,i))}pointCoordinate(t,e=this._centerAltitude){return this.projection.pointCoordinate(this,t.x,t.y,e)}
vendor: 8,831 bytes, line 27
27pointCoordinate3D(e){if(!this.elevation)return this.pointCoordinate(e);let n=this.projection.pointCoordinate3D(this,e.x,e.y);if(n)return new t.MercatorCoordinate(n[0],n[1],n[2]);let r=0,i=this.horizonLineFromTop();if(e.y>i)return this.pointCoordinate(e);const o=.02*i,s=e.clone();for(let e=0;e<10&&i-r>o;e++){s.y=t.number(r,i,.66);const e=this.projection.pointCoordinate3D(this,s.x,s.y);e?(i=s.y,n=e):r=s.y}return n?new t.MercatorCoordinate(n[0],n[1],n[2]):this.pointCoordinate(e)}isPointAboveHorizon(t){return this.projection.isPointAboveHorizon(this,t)}isPointOnSurface(e){if(e.y<0||e.y>this.height||e.x<0||e.x>this.width)return!1;if(this.elevation||this.zoom>=t.GLOBE_ZOOM_THRESHOLD_MAX)return!this.isPointAboveHorizon(e);const n=this.pointCoordinate(e);return n.y>=0&&n.y<=1}_coordinatePoint(e,n){const r=n&&this.elevation?this.elevation.getAtPointOrZero(e,this._centerAltitude):this._centerAltitude,i=[e.x*this.worldSize,e.y*this.worldSize,r+e.toAltitude(),1];return t.transformMat4$1(i,i,this.pixelMatrix),i[3]>0?new t.Point(i[0]/i[3],i[1]/i[3]):new t.Point(Number.MAX_VALUE,Number.MAX_VALUE)}_getBoundsNonRectangular(){const{top:e,left:n}=this._edgeInsets,r=this.height-this._edgeInsets.bottom,i=this.width-this._edgeInsets.right,o=this.pointLocation3D(new t.Point(n,e)),s=this.pointLocation3D(new t.Point(i,e)),a=this.pointLocation3D(new t.Point(i,r)),c=this.pointLocation3D(new t.Point(n,r));let l=Math.min(o.lng,s.lng,a.lng,c.lng),u=Math.max(o.lng,s.lng,a.lng,c.lng),h=Math.min(o.lat,s.lat,a.lat,c.lat),f=Math.max(o.lat,s.lat,a.lat,c.lat);const d=Math.pow(2,-this.zoom)/16*270,p="globe"===this.projection.name?1:4,g=(e,n,r,i,o)=>{const s=(e+r)/2,a=(n+i)/2,c=new t.Point(s,a),{lng:m,lat:y}=this.pointLocation3D(c),_=Math.max(0,l-m,h-y,m-u,y-f);l=Math.min(l,m),u=Math.max(u,m),h=Math.min(h,y),f=Math.max(f,y),(o<p||_>d)&&(g(e,n,s,a,o+1),g(s,a,r,i,o+1))};if(g(n,e,i,e,1),g(i,e,i,r,1),g(i,r,n,r,1),g(n,r,n,e,1),"globe"===this.projection.name){const[e,n]=t.polesInViewport(this);e?(f=90,u=180,l=-180):n&&(h=-90,u=180,l=-180)}return new t.LngLatBounds(new t.LngLat(l,h),new t.LngLat(u,f))}_getBoundsRectangular(e,n){const{top:r,left:i}=this._edgeInsets,o=this.height-this._edgeInsets.bottom,s=this.width-this._edgeInsets.right,a=new t.Point(i,r),c=new t.Point(s,r),l=new t.Point(s,o),u=new t.Point(i,o);let h=this.pointCoordinate(a,e),f=this.pointCoordinate(c,e);const d=this.pointCoordinate(l,n),p=this.pointCoordinate(u,n),g=(t,e)=>(e.y-t.y)/(e.x-t.x);return h.y>1&&f.y>=0?h=new t.MercatorCoordinate((1-p.y)/g(p,h)+p.x,1):h.y<0&&f.y<=1&&(h=new t.MercatorCoordinate(-p.y/g(p,h)+p.x,0)),f.y>1&&h.y>=0?f=new t.MercatorCoordinate((1-d.y)/g(d,f)+d.x,1):f.y<0&&h.y<=1&&(f=new t.MercatorCoordinate(-d.y/g(d,f)+d.x,0)),(new t.LngLatBounds).extend(this.coordinateLocation(h)).extend(this.coordinateLocation(f)).extend(this.coordinateLocation(p)).extend(this.coordinateLocation(d))}_getBoundsRectangularTerrain(){const t=this.elevation;if(!t.visibleDemTiles.length||t.isUsingMockSource())return this._getBoundsRectangular(0,0);const e=t.visibleDemTiles.reduce((t,e)=>{if(e.dem){const n=e.dem.tree;t.min=Math.min(t.min,n.minimums[0]),t.max=Math.max(t.max,n.maximums[0])}return t},{min:Number.MAX_VALUE,max:0});return this._getBoundsRectangular(e.min*t.exaggeration(),e.max*t.exaggeration())}getBounds(){return"mercator"===this.projection.name||"equirectangular"===this.projection.name?this._terrainEnabled()?this._getBoundsRectangularTerrain():this._getBoundsRectangular(0,0):this._getBoundsNonRectangular()}horizonLineFromTop(t=!0){const e=this.height/2/Math.tan(this._fov/2)/Math.tan(Math.max(this._pitch,.1))+this.centerOffset.y,n=this.height/2-e*(1-this._horizonShift);return t?Math.max(0,n):n}getMaxBounds(){return this.maxBounds}setMaxBounds(e){this.maxBounds=e,this.minLat=-t.MAX_MERCATOR_LATITUDE,this.maxLat=t.MAX_MERCATOR_LATITUDE,this.minLng=-180,this.maxLng=180,e&&(this.minLat=e.getSouth(),this.maxLat=e.getNorth(),this.minLng=e.getWest(),this.maxLng=e.getEast(),this.maxLng<this.minLng&&(this.maxLng+=360)),this.worldMinX=t.mercatorXfromLng(this.minLng)*this.tileSize,this.worldMaxX=t.mercatorXfromLng(this.maxLng)*this.tileSize,this.worldMinY=t.mercatorYfromLat(this.maxLat)*this.tileSize,this.worldMaxY=t.mercatorYfromLat(this.minLat)*this.tileSize,this._constrain()}calculatePosMatrix(t,e){return this.projection.createTileMatrix(this,e,t)}calculateDistanceTileData(e){const n=e.key,r=this._distanceTileDataCache;if(r[n])return r[n];const i=e.canonical,o=1/this.height,s=this.cameraWorldSize,a=s/this.zoomScale(i.z),c=(i.x+Math.pow(2,i.z)*e.wrap)*a,l=i.y*a,u=this.point;u.x*=s/this.worldSize,u.y*=s/this.worldSize;const h=this.angle,f=Math.sin(-h),d=-Math.cos(-h);return r[n]={bearing:[f,d],center:[(u.x-c)*o,(u.y-l)*o],scale:a/t.EXTENT*o},r[n]}calculateFogTileMatrix(e){const n=e.key,r=this._fogTileMatrixCache;if(r[n])return r[n];const i=this.projection.createTileMatrix(this,this.cameraWorldSizeForFog,e);return t.multiply(i,this.worldToFogMatrix,i),r[n]=new Float32Array(i),r[n]}calculateProjMatrix(e,n=!1){const r=e.key,i=n?this._alignedProjMatrixCache:this._projMatrixCache;if(i[r])return i[r];const o=this.calculatePosMatrix(e,this.worldSize);return t.multiply(o,this.projection.isReprojectedInTileSpace?this.mercatorMatrix:n?this.alignedProjMatrix:this.projMatrix,o),i[r]=new Float32Array(o),i[r]}calculatePixelsToTileUnitsMatrix(e){const n=e.tileID.key,r=this._pixelsToTileUnitsCache;if(r[n])return r[n];const i=function(e,n){const{scale:r}=e.tileTransform,i=r*t.EXTENT/(e.tileSize*Math.pow(2,n.zoom-e.tileID.overscaledZ+e.tileID.canonical.z));return o=new Float32Array(4),c=(s=n.inverseAdjustmentMatrix)[1],l=s[2],u=s[3],f=(a=[i,i])[1],o[0]=s[0]*(h=a[0]),o[1]=c*h,o[2]=l*f,o[3]=u*f,o;var o,s,a,c,l,u,h,f}(e,this);return r[n]=i,r[n]}customLayerMatrix(){return this.mercatorMatrix.slice()}globeToMercatorMatrix(){if("globe"===this.projection.name){const e=1/this.worldSize,n=t.fromScaling([],[e,e,e]);return t.multiply(n,n,this.globeMatrix),n}}recenterOnTerrain(){if(!this._elevation||"globe"===this.projection.name)return;const e=this._elevation;this._updateCameraState();const n=t.mercatorZfromAltitude(1,this._center.lat)*this.worldSize,r=this._computeCameraPosition(n),i=this._camera.forward(),o=t.mercatorZfromAltitude(1,this._center.lat);r[2]/=o,i[2]/=o,t.normalize(i,i);const s=e.raycast(r,i,e.exaggeration());if(s){const e=t.scaleAndAdd([],r,i,s),n=new t.MercatorCoordinate(e[0],e[1],t.mercatorZfromAltitude(e[2],t.latFromMercatorY(e[1]))),a=(n.z+t.length([n.x-r[0],n.y-r[1],n.z-r[2]*o]))*this._pixelsPerMercatorPixel;this._seaLevelZoom=this._zoomFromMercatorZ(a),this._centerAltitude=n.toAltitude(),this._center=this.coordinateLocation(n),this._updateZoomFromElevation(),this._constrain(),this._calcMatrices()}}_constrainCamera(e=!1){if(!this._elevation)return;const n=this._elevation,r=t.mercatorZfromAltitude(1,this._center.lat)*this.worldSize,i=this._computeCameraPosition(r),o=n.getAtPointOrZero(new t.MercatorCoordinate(...i)),s=this.pixelsPerMeter/this.worldSize*o,a=this._minimumHeightOverTerrain(),c=i[2]-s;if(c<=a)if(c<0||e){const e=this.locationCoordinate(this._center,this._centerAltitude),n=[i[0],i[1],e.z-i[2]],r=t.length(n);n[2]-=(a-c)/this._pixelsPerMercatorPixel;const o=t.length(n);if(0===o)return;t.scale$2(n,n,r/o*this._pixelsPerMercatorPixel),this._camera.position=[i[0],i[1],e.z*this._pixelsPerMercatorPixel-n[2]],this._updateStateFromCamera()}else this._isCameraConstrained=!0}_constrain(){if(!this.center||!this.width||!this.height||this._constraining)return;this._constraining=!0;const e="globe"===this.projection.name||this.mercatorFromTransition;if(this.projection.isReprojectedInTileSpace||e){const n=this.center;return n.lat=t.clamp(n.lat,this.minLat,this.maxLat),(this.maxBounds||!this.renderWorldCopies&&!e)&&(n.lng=t.clamp(n.lng,this.minLng,this.maxLng)),this.center=n,void(this._constraining=!1)}const n=this._unmodified,{x:r,y:i}=this.point;let o=0,s=r,a=i;const c=this.width/2,l=this.height/2,u=this.worldMinY*this.scale,h=this.worldMaxY*this.scale;if(i-l<u&&(a=u+l),i+l>h&&(a=h-l),h-u<this.height&&(o=Math.max(o,this.height/(h-u)),a=(h+u)/2),this.maxBounds||!this._renderWorldCopies||!this.projection.wrap){const t=this.worldMinX*this.scale,e=this.worldMaxX*this.scale,n=this.worldSize/2-(t+e)/2;s=(r+n+this.worldSize)%this.worldSize-n,s-c<t&&(s=t+c),s+c>e&&(s=e-c),e-t<this.width&&(o=Math.max(o,this.width/(e-t)),s=(e+t)/2)}s===r&&a===i||(this.center=this.unproject(new t.Point(s,a))),o&&(this.zoom+=this.scaleZoom(o)),this._constrainCamera(),this._unmodified=n,this._constraining=!1}_minZoomForBounds(){let t=Math.max(0,this.scaleZoom(this.height/(this.worldMaxY-this.worldMinY)));return this.maxBounds&&(t=Math.max(t,this.scaleZoom(this.width/(this.worldMaxX-this.worldMinX)))),t}_maxCameraBoundsDistance(){return this._mercatorZfromZoom(this._minZoomForBounds())}
vendor: 6,033 bytes, line 27
27_calcMatrices(){if(!this.height)return;const e=this.centerOffset,n=this.pixelsPerMeter;"globe"===this.projection.name&&(this._mercatorScaleRatio=t.mercatorZfromAltitude(1,this.center.lat)/t.mercatorZfromAltitude(1,t.GLOBE_SCALE_MATCH_LATITUDE));const r=Wr(this.projection,this.zoom,this.width,this.height,1024);this._pixelsPerMercatorPixel=this.projection.pixelSpaceConversion(this.center.lat,this.worldSize,r),this.cameraToCenterDistance=.5/Math.tan(.5*this._fov)*this.height*this._pixelsPerMercatorPixel,this._updateCameraState(),this._farZ=this.projection.farthestPixelDistance(this),this._nearZ=this.height/50;const i="meters"===this.projection.zAxisUnit?n:1,o=this._camera.getWorldToCamera(this.worldSize,i),s=this._camera.getCameraToClipPerspective(this._fov,this.width/this.height,this._nearZ,this._farZ);s[8]=2*-e.x/this.width,s[9]=2*e.y/this.height;let a=t.mul([],s,o);if(this.projection.isReprojectedInTileSpace){const e=this.locationCoordinate(this.center),n=t.identity([]);t.translate(n,n,[e.x*this.worldSize,e.y*this.worldSize,0]),t.multiply(n,n,Hr(this)),t.translate(n,n,[-e.x*this.worldSize,-e.y*this.worldSize,0]),t.multiply(a,a,n),this.inverseAdjustmentMatrix=function(t){const e=Hr(t,!0);return _([],[e[0],e[1],e[4],e[5]])}(this)}else this.inverseAdjustmentMatrix=[1,0,0,1];this.mercatorMatrix=t.scale([],a,[this.worldSize,this.worldSize,this.worldSize/i,1]),this.projMatrix=a,this.invProjMatrix=t.invert(new Float64Array(16),this.projMatrix);const c=t.invert([],s);this.frustumCorners=t.FrustumCorners.fromInvProjectionMatrix(c,this.horizonLineFromTop(),this.height);const l=new Float32Array(16);t.identity(l),t.scale(l,l,[1,-1,1]),t.rotateX(l,l,this._pitch),t.rotateZ(l,l,this.angle);const u=t.perspective(new Float32Array(16),this._fov,this.width/this.height,this._nearZ,this._farZ),h=(Math.PI/2-this._pitch)*(this.height/this._fov)*this._horizonShift;u[8]=2*-e.x/this.width,u[9]=2*(e.y+h)/this.height,this.skyboxMatrix=t.multiply(l,u,l);const f=this.point,d=f.x,p=f.y,g=this.width%2/2,m=this.height%2/2,y=Math.cos(this.angle),v=Math.sin(this.angle),b=d-Math.round(d)+y*g+v*m,x=p-Math.round(p)+y*m+v*g,w=new Float64Array(a);if(t.translate(w,w,[b>.5?b-1:b,x>.5?x-1:x,0]),this.alignedProjMatrix=w,a=t.create(),t.scale(a,a,[this.width/2,-this.height/2,1]),t.translate(a,a,[1,-1,0]),this.labelPlaneMatrix=a,a=t.create(),t.scale(a,a,[1,-1,1]),t.translate(a,a,[-1,-1,0]),t.scale(a,a,[2/this.width,2/this.height,1]),this.glCoordMatrix=a,this.pixelMatrix=t.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),this._calcFogMatrices(),this._distanceTileDataCache={},a=t.invert(new Float64Array(16),this.pixelMatrix),!a)throw new Error("failed to invert matrix");if(this.pixelMatrixInverse=a,"globe"===this.projection.name||this.mercatorFromTransition){this.globeMatrix=t.calculateGlobeMatrix(this);const e=[this.globeMatrix[12],this.globeMatrix[13],this.globeMatrix[14]];this.globeCenterInViewSpace=t.transformMat4(e,e,o),this.globeRadius=this.worldSize/2/Math.PI-1}else this.globeMatrix=a;this._projMatrixCache={},this._alignedProjMatrixCache={},this._pixelsToTileUnitsCache={}}_calcFogMatrices(){this._fogTileMatrixCache={};const e=this.cameraWorldSizeForFog,n=this.cameraPixelsPerMeter,r=this._camera.position,i=1/this.height/this._pixelsPerMercatorPixel,o=[e,e,n];t.scale$2(o,o,i),t.scale$2(r,r,-1),t.multiply$2(r,r,o);const s=t.create();t.translate(s,s,r),t.scale(s,s,o),this.mercatorFogMatrix=s,this.worldToFogMatrix=this._camera.getWorldToCameraPosition(e,n,i)}_computeCameraPosition(t){const e=(t=t||this.pixelsPerMeter)/this.pixelsPerMeter,n=this._camera.forward(),r=this.point,i=this._mercatorZfromZoom(this._seaLevelZoom?this._seaLevelZoom:this._zoom)*e-t/this.worldSize*this._centerAltitude;return[r.x/this.worldSize-n[0]*i,r.y/this.worldSize-n[1]*i,t/this.worldSize*this._centerAltitude-n[2]*i]}_updateCameraState(){this.height&&(this._camera.setPitchBearing(this._pitch,this.angle),this._camera.position=this._computeCameraPosition())}_translateCameraConstrained(e){const n=this._maxCameraBoundsDistance()*Math.cos(this._pitch),r=this._camera.position[2],i=e[2];let o=1;this.projection.wrap&&(this.center=this.center.wrap()),i>0&&(o=Math.min((n-r)/i,1)),this._camera.position=t.scaleAndAdd([],this._camera.position,e,o),this._updateStateFromCamera()}_updateStateFromCamera(){const e=this._camera.position,n=this._camera.forward(),{pitch:r,bearing:i}=this._camera.getPitchBearing(),o=t.mercatorZfromAltitude(this._centerAltitude,this.center.lat)*this._pixelsPerMercatorPixel,s=this._mercatorZfromZoom(this._maxZoom)*Math.cos(t.degToRad(this._maxPitch)),a=Math.max((e[2]-o)/Math.cos(r),s),c=this._zoomFromMercatorZ(a);t.scaleAndAdd(e,e,n,a),this._pitch=t.clamp(r,t.degToRad(this.minPitch),t.degToRad(this.maxPitch)),this.angle=t.wrap(i,-Math.PI,Math.PI),this._setZoom(t.clamp(c,this._minZoom,this._maxZoom)),this._updateSeaLevelZoom(),this._center=this.coordinateLocation(new t.MercatorCoordinate(e[0],e[1],e[2])),this._unmodified=!1,this._constrain(),this._calcMatrices()}_worldSizeFromZoom(t){return Math.pow(2,t)*this.tileSize}_mercatorZfromZoom(t){return this.cameraToCenterDistance/this._worldSizeFromZoom(t)}_minimumHeightOverTerrain(){const t=Math.min((null!=this._seaLevelZoom?this._seaLevelZoom:this._zoom)+4,this._maxZoom);return this._mercatorZfromZoom(t)}_zoomFromMercatorZ(t){return this.scaleZoom(this.cameraToCenterDistance/(t*this.tileSize))}zoomFromMercatorZAdjusted(e){let n=0,r=t.GLOBE_ZOOM_THRESHOLD_MAX,i=0,o=1/0;for(;r-n>1e-6&&r>n;){const t=n+.5*(r-n),s=this.tileSize*Math.pow(2,t),a=this.getCameraToCenterDistance(this.projection,t,s),c=this.scaleZoom(a/(e*this.tileSize)),l=Math.abs(t-c);l<o&&(o=l,i=t),t<c?n=t:r=t}return i}_terrainEnabled(){return!(!this._elevation||!this.projection.supportsTerrain&&(t.warnOnce("Terrain is not yet supported with alternate projections. Use mercator or globe to enable terrain."),1))}anyCornerOffEdge(e,n){const r=Math.min(e.x,n.x),i=Math.max(e.x,n.x),o=Math.min(e.y,n.y),s=Math.max(e.y,n.y);if(o<this.horizonLineFromTop(!1))return!0;
27if("mercator"!==this.projection.name)return!1;const a=[new t.Point(r,o),new t.Point(i,s),new t.Point(r,s),new t.Point(i,o)],c=this.renderWorldCopies?-3:0,l=this.renderWorldCopies?4:1;for(const t of a){const e=this.pointRayIntersection(t);if(e.t<0)return!0;const n=this.rayIntersectionCoordinate(e);if(n.x<c||n.y<0||n.x>l||n.y>1)return!0}return!1}isHorizonVisible(){return this.pitch+t.radToDeg(this.fovAboveCenter)>88||this.anyCornerOffEdge(new t.Point(0,0),new t.Point(this.width,this.height))}zoomDeltaToMovement(e,n){const r=t.length(t.sub([],this._camera.position,e)),i=this._zoomFromMercatorZ(r)+n;return r-this._mercatorZfromZoom(i)}getCameraPoint(){if("globe"===this.projection.name){const e=function([e,n,r],i){const o=[e,n,r,1];t.transformMat4$1(o,o,i);const s=o[3]=Math.max(o[3],1e-6);return o[0]/=s,o[1]/=s,o[2]/=s,o}([this.globeMatrix[12],this.globeMatrix[13],this.globeMatrix[14]],this.pixelMatrix);return new t.Point(e[0],e[1])}{const e=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new t.Point(0,e))}}getCameraToCenterDistance(t,e=this.zoom,n=this.worldSize){const r=Wr(t,e,this.width,this.height,1024),i=t.pixelSpaceConversion(this.center.lat,n,r);return.5/Math.tan(.5*this._fov)*this.height*i}getWorldToCameraMatrix(){const e=this._camera.getWorldToCamera(this.worldSize,"meters"===this.projection.zAxisUnit?this.pixelsPerMeter:1);return"globe"===this.projection.name&&t.multiply(e,e,this.globeMatrix),e}}function Jr(t,e){let n=!1,r=null;const i=()=>{r=null,n&&(t(),r=setTimeout(i,e),n=!1)};return()=>(n=!0,r||i(),r)}class $r{constructor(e){this._hashName=e&&encodeURIComponent(e),t.bindAll(["_getCurrentHash","_onHashChange","_updateHash"],this),this._updateHash=Jr(this._updateHashUnthrottled.bind(this),300)}addTo(e){return this._map=e,t.window.addEventListener("hashchange",this._onHashChange,!1),e.on("moveend",this._updateHash),this}remove(){return this._map?(this._map.off("moveend",this._updateHash),t.window.removeEventListener("hashchange",this._onHashChange,!1),clearTimeout(this._updateHash()),this._map=void 0,this):this}getHashString(){const e=this._map;if(!e)return"";const n=ti(e);if(this._hashName){const e=this._hashName;let r=!1;const i=t.window.location.hash.slice(1).split("&").map(t=>{const i=t.split("=")[0];return i===e?(r=!0,`${i}=${n}`):t}).filter(t=>t);return r||i.push(`${e}=${n}`),"#"+i.join("&")}return"#"+n}_getCurrentHash(){const e=t.window.location.hash.replace("#","");if(this._hashName){let t;return e.split("&").map(t=>t.split("=")).forEach(e=>{e[0]===this._hashName&&(t=e)}),(t&&t[1]||"").split("/")}return e.split("/")}_onHashChange(){const t=this._map;if(!t)return!1;const e=this._getCurrentHash();if(e.length>=3&&!e.some(t=>isNaN(t))){const n=t.dragRotate.isEnabled()&&t.touchZoomRotate.isEnabled()?+(e[3]||0):t.getBearing();return t.jumpTo({center:[+e[2],+e[1]],zoom:+e[0],bearing:n,pitch:+(e[4]||0)}),!0}return!1}_updateHashUnthrottled(){const e=t.window.location.href.replace(/(#.+)?$/,this.getHashString());t.window.history.replaceState(t.window.history.state,null,e)}}function ti(t,e){const n=t.getCenter(),r=Math.round(100*t.getZoom())/100,i=Math.ceil((r*Math.LN2+Math.log(512/360/.5))/Math.LN10),o=Math.pow(10,i),s=Math.round(n.lng*o)/o,a=Math.round(n.lat*o)/o,c=t.getBearing(),l=t.getPitch();let u=e?`/${s}/${a}/${r}`:`${r}/${a}/${s}`;return(c||l)&&(u+="/"+Math.round(10*c)/10),l&&(u+="/"+Math.round(l)),u}const ei={linearity:.3,easing:t.bezier(0,0,.3,1)},ni=t.extend({deceleration:2500,maxSpeed:1400},ei),ri=t.extend({deceleration:20,maxSpeed:1400},ei),ii=t.extend({deceleration:1e3,maxSpeed:360},ei),oi=t.extend({deceleration:1e3,maxSpeed:90},ei);class si{constructor(t){this._map=t,this.clear()}clear(){this._inertiaBuffer=[]}record(e){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:t.exported.now(),settings:e})}_drainInertiaBuffer(){const e=this._inertiaBuffer,n=t.exported.now();for(;e.length>0&&n-e[0].time>160;)e.shift()}_onMoveEnd(e){if(this._map._prefersReducedMotion())return;if(this._drainInertiaBuffer(),this._inertiaBuffer.length<2)return;const n={zoom:0,bearing:0,pitch:0,pan:new t.Point(0,0),pinchAround:void 0,around:void 0};for(const{settings:t}of this._inertiaBuffer)n.zoom+=t.zoomDelta||0,n.bearing+=t.bearingDelta||0,n.pitch+=t.pitchDelta||0,t.panDelta&&n.pan._add(t.panDelta),t.around&&(n.around=t.around),t.pinchAround&&(n.pinchAround=t.pinchAround);const r=this._inertiaBuffer[this._inertiaBuffer.length-1].time-this._inertiaBuffer[0].time,i={};if(n.pan.mag()){const o=ci(n.pan.mag(),r,t.extend({},ni,e||{}));i.offset=n.pan.mult(o.amount/n.pan.mag()),i.center=this._map.transform.center,ai(i,o)}if(n.zoom){const t=ci(n.zoom,r,ri);i.zoom=this._map.transform.zoom+t.amount,ai(i,t)}if(n.bearing){const e=ci(n.bearing,r,ii);
vendor: 8,572 bytes, line 27
27i.bearing=this._map.transform.bearing+t.clamp(e.amount,-179,179),ai(i,e)}if(n.pitch){const t=ci(n.pitch,r,oi);i.pitch=this._map.transform.pitch+t.amount,ai(i,t)}if(i.zoom||i.bearing){const t=void 0===n.pinchAround?n.around:n.pinchAround;i.around=t?this._map.unproject(t):this._map.getCenter()}return this.clear(),i.noMoveStart=!0,i}}function ai(t,e){(!t.duration||t.duration<e.duration)&&(t.duration=e.duration,t.easing=e.easing)}function ci(e,n,r){const{maxSpeed:i,linearity:o,deceleration:s}=r,a=t.clamp(e*o/(n/1e3),-i,i),c=Math.abs(a)/(s*o);return{easing:r.easing,duration:1e3*c,amount:a*(c/2)}}class li extends t.Event{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(e,n,r,i={}){const o=p(n.getCanvasContainer(),r),s=n.unproject(o);super(e,t.extend({point:o,lngLat:s,originalEvent:r},i)),this._defaultPrevented=!1,this.target=n}}class ui extends t.Event{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(e,n,r){const i="touchend"===e?r.changedTouches:r.touches,o=g(n.getCanvasContainer(),i),s=o.map(t=>n.unproject(t)),a=o.reduce((t,e,n,r)=>t.add(e.div(r.length)),new t.Point(0,0));super(e,{points:o,point:a,lngLats:s,lngLat:n.unproject(a),originalEvent:r}),this._defaultPrevented=!1}}class hi extends t.Event{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(t,e,n){super(t,{originalEvent:n}),this._defaultPrevented=!1}}class fi{constructor(t,e){this._map=t,this._clickTolerance=e.clickTolerance}reset(){this._mousedownPos=void 0}wheel(t){return this._firePreventable(new hi(t.type,this._map,t))}mousedown(t,e){return this._mousedownPos=e,this._firePreventable(new li(t.type,this._map,t))}mouseup(t){this._map.fire(new li(t.type,this._map,t))}preclick(e){const n=t.extend({},e);n.type="preclick",this._map.fire(new li(n.type,this._map,n))}click(t,e){this._mousedownPos&&this._mousedownPos.dist(e)>=this._clickTolerance||(this.preclick(t),this._map.fire(new li(t.type,this._map,t)))}dblclick(t){return this._firePreventable(new li(t.type,this._map,t))}mouseover(t){this._map.fire(new li(t.type,this._map,t))}mouseout(t){this._map.fire(new li(t.type,this._map,t))}touchstart(t){return this._firePreventable(new ui(t.type,this._map,t))}touchmove(t){this._map.fire(new ui(t.type,this._map,t))}touchend(t){this._map.fire(new ui(t.type,this._map,t))}touchcancel(t){this._map.fire(new ui(t.type,this._map,t))}_firePreventable(t){if(this._map.fire(t),t.defaultPrevented)return{}}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class di{constructor(t){this._map=t}reset(){this._delayContextMenu=!1,this._contextMenuEvent=void 0}mousemove(t){this._map.fire(new li(t.type,this._map,t))}mousedown(){this._delayContextMenu=!0}mouseup(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new li("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)}contextmenu(t){this._delayContextMenu?this._contextMenuEvent=t:this._map.fire(new li(t.type,this._map,t)),this._map.listens("contextmenu")&&t.preventDefault()}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class pi{constructor(t,e){this._map=t,this._el=t.getCanvasContainer(),this._container=t.getContainer(),this._clickTolerance=e.clickTolerance||1}isEnabled(){return!!this._enabled}isActive(){return!!this._active}enable(){this.isEnabled()||(this._enabled=!0)}disable(){this.isEnabled()&&(this._enabled=!1)}mousedown(t,e){this.isEnabled()&&t.shiftKey&&0===t.button&&(u(),this._startPos=this._lastPos=e,this._active=!0)}mousemoveWindow(t,e){if(!this._active)return;const n=e,r=this._startPos,i=this._lastPos;if(!r||!i||i.equals(n)||!this._box&&n.dist(r)<this._clickTolerance)return;this._lastPos=n,this._box||(this._box=o("div","mapboxgl-boxzoom",this._container),this._container.classList.add("mapboxgl-crosshair"),this._fireEvent("boxzoomstart",t));const s=Math.min(r.x,n.x),a=Math.max(r.x,n.x),c=Math.min(r.y,n.y),l=Math.max(r.y,n.y);this._map._requestDomTask(()=>{this._box&&(this._box.style.transform=`translate(${s}px,${c}px)`,this._box.style.width=a-s+"px",this._box.style.height=l-c+"px")})}mouseupWindow(e,n){if(!this._active)return;const r=this._startPos,i=n;if(r&&0===e.button){if(this.reset(),d(),r.x!==i.x||r.y!==i.y)return this._map.fire(new t.Event("boxzoomend",{originalEvent:e})),{cameraAnimation:t=>t.fitScreenCoordinates(r,i,this._map.getBearing(),{linear:!1})};this._fireEvent("boxzoomcancel",e)}}keydown(t){this._active&&27===t.keyCode&&(this.reset(),this._fireEvent("boxzoomcancel",t))}blur(){this.reset()}reset(){this._active=!1,this._container.classList.remove("mapboxgl-crosshair"),this._box&&(this._box.remove(),this._box=null),h(),delete this._startPos,delete this._lastPos}_fireEvent(e,n){return this._map.fire(new t.Event(e,{originalEvent:n}))}}function gi(t,e){const n={};for(let r=0;r<t.length;r++)n[t[r].identifier]=e[r];return n}class mi{constructor(t){this.reset(),this.numTouches=t.numTouches}reset(){this.centroid=void 0,this.startTime=0,this.touches={},this.aborted=!1}touchstart(e,n,r){(this.centroid||r.length>this.numTouches)&&(this.aborted=!0),this.aborted||(0===this.startTime&&(this.startTime=e.timeStamp),r.length===this.numTouches&&(this.centroid=function(e){const n=new t.Point(0,0);for(const t of e)n._add(t);return n.div(e.length)}(n),this.touches=gi(r,n)))}touchmove(t,e,n){if(this.aborted||!this.centroid)return;const r=gi(n,e);for(const t in this.touches){const e=r[t];(!e||e.dist(this.touches[t])>30)&&(this.aborted=!0)}}touchend(t,e,n){if((!this.centroid||t.timeStamp-this.startTime>500)&&(this.aborted=!0),0===n.length){const t=!this.aborted&&this.centroid;if(this.reset(),t)return t}}}class yi{constructor(t){this.singleTap=new mi(t),this.numTaps=t.numTaps,this.reset()}reset(){this.lastTime=1/0,this.lastTap=void 0,this.count=0,this.singleTap.reset()}touchstart(t,e,n){this.singleTap.touchstart(t,e,n)}touchmove(t,e,n){this.singleTap.touchmove(t,e,n)}touchend(t,e,n){const r=this.singleTap.touchend(t,e,n);if(r){const e=t.timeStamp-this.lastTime<500,n=!this.lastTap||this.lastTap.dist(r)<30;if(e&&n||this.reset(),this.count++,this.lastTime=t.timeStamp,this.lastTap=r,this.count===this.numTaps)return this.reset(),r}}}class _i{constructor(){this._zoomIn=new yi({numTouches:1,numTaps:2}),this._zoomOut=new yi({numTouches:2,numTaps:1}),this.reset()}reset(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()}touchstart(t,e,n){this._zoomIn.touchstart(t,e,n),this._zoomOut.touchstart(t,e,n)}touchmove(t,e,n){this._zoomIn.touchmove(t,e,n),this._zoomOut.touchmove(t,e,n)}touchend(t,e,n){const r=this._zoomIn.touchend(t,e,n),i=this._zoomOut.touchend(t,e,n);return r?(this._active=!0,t.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:e=>e.easeTo({duration:300,zoom:e.getZoom()+1,around:e.unproject(r)},{originalEvent:t})}):i?(this._active=!0,t.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:e=>e.easeTo({duration:300,zoom:e.getZoom()-1,around:e.unproject(i)},{originalEvent:t})}):void 0}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}const vi={0:1,2:2};class bi{constructor(t){this.reset(),this._clickTolerance=t.clickTolerance||1}blur(){this.reset()}reset(){this._active=!1,this._moved=!1,this._lastPoint=void 0,this._eventButton=void 0}_correctButton(t,e){return!1}_move(t,e){return{}}mousedown(t,e){if(this._lastPoint)return;const n=m(t);this._correctButton(t,n)&&(this._lastPoint=e,this._eventButton=n)}mousemoveWindow(t,e){const n=this._lastPoint;if(n)if(t.preventDefault(),null!=this._eventButton&&function(t,e){const n=vi[e];return void 0===t.buttons||(t.buttons&n)!==n}(t,this._eventButton))this.reset();else if(this._moved||!(e.dist(n)<this._clickTolerance))return this._moved=!0,this._lastPoint=e,this._move(n,e)}mouseupWindow(t){this._lastPoint&&m(t)===this._eventButton&&(this._moved&&d(),this.reset())}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class xi extends bi{mousedown(t,e){super.mousedown(t,e),this._lastPoint&&(this._active=!0)}_correctButton(t,e){return 0===e&&!t.ctrlKey}_move(t,e){return{around:e,panDelta:e.sub(t)}}}class wi extends bi{_correctButton(t,e){return 0===e&&t.ctrlKey||2===e}_move(t,e){const n=.8*(e.x-t.x);if(n)return this._active=!0,{bearingDelta:n}}contextmenu(t){t.preventDefault()}}class Ei extends bi{_correctButton(t,e){return 0===e&&t.ctrlKey||2===e}
vendor: 4,575 bytes, line 27
27_move(t,e){const n=-.5*(e.y-t.y);if(n)return this._active=!0,{pitchDelta:n}}contextmenu(t){t.preventDefault()}}class Si{constructor(e,n){this._map=e,this._el=e.getCanvasContainer(),this._minTouches=1,this._clickTolerance=n.clickTolerance||1,this.reset(),t.bindAll(["_addTouchPanBlocker","_showTouchPanBlockerAlert"],this)}reset(){this._active=!1,this._touches={},this._sum=new t.Point(0,0)}touchstart(t,e,n){return this._calculateTransform(t,e,n)}touchmove(e,n,r){if(this._active&&!(r.length<this._minTouches)){if(this._map._cooperativeGestures&&!this._map.isMoving()){if(1===r.length&&!t.isFullscreen())return void this._showTouchPanBlockerAlert();"hidden"!==this._alertContainer.style.visibility&&(this._alertContainer.style.visibility="hidden",clearTimeout(this._alertTimer))}return e.cancelable&&e.preventDefault(),this._calculateTransform(e,n,r)}}touchend(t,e,n){this._calculateTransform(t,e,n),this._active&&n.length<this._minTouches&&this.reset()}touchcancel(){this.reset()}_calculateTransform(e,n,r){r.length>0&&(this._active=!0);const i=gi(r,n),o=new t.Point(0,0),s=new t.Point(0,0);let a=0;for(const t in i){const e=i[t],n=this._touches[t];n&&(o._add(e),s._add(e.sub(n)),a++,i[t]=e)}if(this._touches=i,a<this._minTouches||!s.mag())return;const c=s.div(a);return this._sum._add(c),this._sum.mag()<this._clickTolerance?void 0:{around:o.div(a),panDelta:c}}enable(){this._enabled=!0,this._map._cooperativeGestures&&(this._addTouchPanBlocker(),this._el.classList.add("mapboxgl-touch-pan-blocker-override","mapboxgl-scrollable-page"))}disable(){this._enabled=!1,this._map._cooperativeGestures&&(clearTimeout(this._alertTimer),this._alertContainer.remove(),this._el.classList.remove("mapboxgl-touch-pan-blocker-override","mapboxgl-scrollable-page")),this.reset()}isEnabled(){return!!this._enabled}isActive(){return!!this._active}_addTouchPanBlocker(){this._map&&!this._alertContainer&&(this._alertContainer=o("div","mapboxgl-touch-pan-blocker",this._map._container),this._alertContainer.textContent=this._map._getUIString("TouchPanBlocker.Message"),this._alertContainer.style.fontSize=Math.max(10,Math.min(24,Math.floor(.05*this._el.clientWidth)))+"px")}_showTouchPanBlockerAlert(){this._alertContainer.style.visibility="visible",this._alertContainer.classList.add("mapboxgl-touch-pan-blocker-show"),this._alertContainer.setAttribute("role","alert"),clearTimeout(this._alertTimer),this._alertTimer=setTimeout(()=>{this._alertContainer.classList.remove("mapboxgl-touch-pan-blocker-show"),this._alertContainer.setAttribute("role","null")},500)}}class Ci{constructor(){this.reset()}reset(){this._active=!1,this._firstTwoTouches=void 0}_start(t){}_move(t,e,n){return{}}touchstart(t,e,n){this._firstTwoTouches||n.length<2||(this._firstTwoTouches=[n[0].identifier,n[1].identifier],this._start([e[0],e[1]]))}touchmove(t,e,n){const r=this._firstTwoTouches;if(!r)return;t.preventDefault();const[i,o]=r,s=Ai(n,e,i),a=Ai(n,e,o);if(!s||!a)return;const c=this._aroundCenter?null:s.add(a).div(2);return this._move([s,a],c,t)}touchend(t,e,n){if(!this._firstTwoTouches)return;const[r,i]=this._firstTwoTouches,o=Ai(n,e,r),s=Ai(n,e,i);o&&s||(this._active&&d(),this.reset())}touchcancel(){this.reset()}enable(t){this._enabled=!0,this._aroundCenter=!!t&&"center"===t.around}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}function Ai(t,e,n){for(let r=0;r<t.length;r++)if(t[r].identifier===n)return e[r]}function Ii(t,e){return Math.log(t/e)/Math.LN2}class Ti extends Ci{reset(){super.reset(),this._distance=0,this._startDistance=0}_start(t){this._startDistance=this._distance=t[0].dist(t[1])}_move(t,e){const n=this._distance;if(this._distance=t[0].dist(t[1]),this._active||!(Math.abs(Ii(this._distance,this._startDistance))<.1))return this._active=!0,{zoomDelta:Ii(this._distance,n),pinchAround:e}}}function Mi(t,e){return 180*t.angleWith(e)/Math.PI}class Fi extends Ci{reset(){super.reset(),this._minDiameter=0,this._startVector=void 0,this._vector=void 0}_start(t){this._startVector=this._vector=t[0].sub(t[1]),this._minDiameter=t[0].dist(t[1])}_move(t,e){const n=this._vector;if(this._vector=t[0].sub(t[1]),n&&(this._active||!this._isBelowThreshold(this._vector)))return this._active=!0,{bearingDelta:Mi(this._vector,n),pinchAround:e}}_isBelowThreshold(t){this._minDiameter=Math.min(this._minDiameter,t.mag());const e=25/(Math.PI*this._minDiameter)*360,n=this._startVector;if(!n)return!1;const r=Mi(t,n);return Math.abs(r)<e}}function Bi(t){return Math.abs(t.y)>Math.abs(t.x)}class Li extends Ci{constructor(t){super(),this._map=t}
vendor: 14,412 bytes, line 27
27reset(){super.reset(),this._valid=void 0,this._firstMove=void 0,this._lastPoints=void 0}_start(t){this._lastPoints=t,Bi(t[0].sub(t[1]))&&(this._valid=!1)}_move(e,n,r){const i=this._lastPoints;if(!i)return;const o=e[0].sub(i[0]),s=e[1].sub(i[1]);return this._map._cooperativeGestures&&!t.isFullscreen()&&r.touches.length<3||(this._valid=this.gestureBeginsVertically(o,s,r.timeStamp),!this._valid)?void 0:(this._lastPoints=e,this._active=!0,{pitchDelta:(o.y+s.y)/2*-.5})}gestureBeginsVertically(t,e,n){if(void 0!==this._valid)return this._valid;const r=t.mag()>=2,i=e.mag()>=2;if(!r&&!i)return;if(!r||!i)return null==this._firstMove&&(this._firstMove=n),n-this._firstMove<100&&void 0;const o=t.y>0==e.y>0;return Bi(t)&&Bi(e)&&o}}const Oi={panStep:100,bearingStep:15,pitchStep:10};class Ui{constructor(){const t=Oi;this._panStep=t.panStep,this._bearingStep=t.bearingStep,this._pitchStep=t.pitchStep,this._rotationDisabled=!1}blur(){this.reset()}reset(){this._active=!1}keydown(t){if(t.altKey||t.ctrlKey||t.metaKey)return;let e=0,n=0,r=0,i=0,o=0;switch(t.keyCode){case 61:case 107:case 171:case 187:e=1;break;case 189:case 109:case 173:e=-1;break;case 37:t.shiftKey?n=-1:(t.preventDefault(),i=-1);break;case 39:t.shiftKey?n=1:(t.preventDefault(),i=1);break;case 38:t.shiftKey?r=1:(t.preventDefault(),o=-1);break;case 40:t.shiftKey?r=-1:(t.preventDefault(),o=1);break;default:return}return this._rotationDisabled&&(n=0,r=0),{cameraAnimation:s=>{const a=s.getZoom();s.easeTo({duration:300,easeId:"keyboardHandler",easing:ki,zoom:e?Math.round(a)+e*(t.shiftKey?2:1):a,bearing:s.getBearing()+n*this._bearingStep,pitch:s.getPitch()+r*this._pitchStep,offset:[-i*this._panStep,-o*this._panStep],center:s.getCenter()},{originalEvent:t})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}disableRotation(){this._rotationDisabled=!0}enableRotation(){this._rotationDisabled=!1}}function ki(t){return t*(2-t)}const Pi=4.000244140625;class Di{constructor(e,n){this._map=e,this._el=e.getCanvasContainer(),this._handler=n,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=.0022222222222222222,t.bindAll(["_onTimeout","_addScrollZoomBlocker","_showBlockerAlert"],this)}setZoomRate(t){this._defaultZoomRate=t}setWheelZoomRate(t){this._wheelZoomRate=t}isEnabled(){return!!this._enabled}isActive(){return this._active||void 0!==this._finishTimeout}isZooming(){return!!this._zooming}enable(t){this.isEnabled()||(this._enabled=!0,this._aroundCenter=!!t&&"center"===t.around,this._map._cooperativeGestures&&this._addScrollZoomBlocker())}disable(){this.isEnabled()&&(this._enabled=!1,this._map._cooperativeGestures&&(clearTimeout(this._alertTimer),this._alertContainer.remove()))}wheel(e){if(!this.isEnabled())return;if(this._map._cooperativeGestures){if(!(e.ctrlKey||e.metaKey||this.isZooming()||t.isFullscreen()))return void this._showBlockerAlert();"hidden"!==this._alertContainer.style.visibility&&(this._alertContainer.style.visibility="hidden",clearTimeout(this._alertTimer))}let n=e.deltaMode===t.window.WheelEvent.DOM_DELTA_LINE?40*e.deltaY:e.deltaY;const r=t.exported.now(),i=r-(this._lastWheelEventTime||0);this._lastWheelEventTime=r,0!==n&&n%Pi==0?this._type="wheel":0!==n&&Math.abs(n)<4?this._type="trackpad":i>400?(this._type=null,this._lastValue=n,this._timeout=setTimeout(this._onTimeout,40,e)):this._type||(this._type=Math.abs(i*n)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,n+=this._lastValue)),e.shiftKey&&n&&(n/=4),this._type&&(this._lastWheelEvent=e,this._delta-=n,this._active||this._start(e)),e.preventDefault()}_onTimeout(t){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(t)}_start(t){if(!this._delta)return;this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);const e=p(this._el,t);this._aroundPoint=this._aroundCenter?this._map.transform.centerPoint:e,this._aroundCoord=this._map.transform.pointCoordinate3D(this._aroundPoint),this._targetZoom=void 0,this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}renderFrame(){if(!this._frameId)return;if(this._frameId=null,!this.isActive())return;const e=this._map.transform;"wheel"===this._type&&e.projection.wrap&&(e._center.lng>=180||e._center.lng<=-180)&&(this._prevEase=null,this._easing=null,this._lastWheelEvent=null,this._lastWheelEventTime=0);const n=()=>e._terrainEnabled()&&this._aroundCoord?e.computeZoomRelativeTo(this._aroundCoord):e.zoom;if(0!==this._delta){const t="wheel"===this._type&&Math.abs(this._delta)>Pi?this._wheelZoomRate:this._defaultZoomRate;let r=2/(1+Math.exp(-Math.abs(this._delta*t)));this._delta<0&&0!==r&&(r=1/r);const i=n(),o=Math.pow(2,i),s="number"==typeof this._targetZoom?e.zoomScale(this._targetZoom):o;this._targetZoom=Math.min(e.maxZoom,Math.max(e.minZoom,e.scaleZoom(s*r))),"wheel"===this._type&&(this._startZoom=i,this._easing=this._smoothOutEasing(200)),this._delta=0}const r="number"==typeof this._targetZoom?this._targetZoom:n(),i=this._startZoom,o=this._easing;let s,a=!1;if("wheel"===this._type&&i&&o){const e=Math.min((t.exported.now()-this._lastWheelEventTime)/200,1),n=o(e);s=t.number(i,r,n),e<1?this._frameId||(this._frameId=!0):a=!0}else s=r,a=!0;return this._active=!0,a&&(this._active=!1,this._finishTimeout=setTimeout(()=>{this._zooming=!1,this._handler._triggerRenderFrame(),delete this._targetZoom,delete this._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!a,zoomDelta:s-n(),around:this._aroundPoint,aroundCoord:this._aroundCoord,originalEvent:this._lastWheelEvent}}_smoothOutEasing(e){let n=t.ease;if(this._prevEase){const e=this._prevEase,r=(t.exported.now()-e.start)/e.duration,i=e.easing(r+.01)-e.easing(r),o=.27/Math.sqrt(i*i+1e-4)*.01,s=Math.sqrt(.0729-o*o);n=t.bezier(o,s,.25,1)}return this._prevEase={start:t.exported.now(),duration:e,easing:n},n}blur(){this.reset()}reset(){this._active=!1}_addScrollZoomBlocker(){this._map&&!this._alertContainer&&(this._alertContainer=o("div","mapboxgl-scroll-zoom-blocker",this._map._container),this._alertContainer.textContent=/(Mac|iPad)/i.test(t.window.navigator.userAgent)?this._map._getUIString("ScrollZoomBlocker.CmdMessage"):this._map._getUIString("ScrollZoomBlocker.CtrlMessage"),this._alertContainer.style.fontSize=Math.max(10,Math.min(24,Math.floor(.05*this._el.clientWidth)))+"px")}_showBlockerAlert(){this._alertContainer.style.visibility="visible",this._alertContainer.classList.add("mapboxgl-scroll-zoom-blocker-show"),this._alertContainer.setAttribute("role","alert"),clearTimeout(this._alertTimer),this._alertTimer=setTimeout(()=>{this._alertContainer.classList.remove("mapboxgl-scroll-zoom-blocker-show"),this._alertContainer.setAttribute("role","null")},200)}}class Ri{constructor(t,e){this._clickZoom=t,this._tapZoom=e}enable(){this._clickZoom.enable(),this._tapZoom.enable()}disable(){this._clickZoom.disable(),this._tapZoom.disable()}isEnabled(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()}isActive(){return this._clickZoom.isActive()||this._tapZoom.isActive()}}class ji{constructor(){this.reset()}reset(){this._active=!1}blur(){this.reset()}dblclick(t,e){return t.preventDefault(),{cameraAnimation:n=>{n.easeTo({duration:300,zoom:n.getZoom()+(t.shiftKey?-1:1),around:n.unproject(e)},{originalEvent:t})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class zi{constructor(){this._tap=new yi({numTouches:1,numTaps:1}),this.reset()}reset(){this._active=!1,this._swipePoint=void 0,this._swipeTouch=0,this._tapTime=0,this._tap.reset()}touchstart(t,e,n){this._swipePoint||(this._tapTime&&t.timeStamp-this._tapTime>500&&this.reset(),this._tapTime?n.length>0&&(this._swipePoint=e[0],this._swipeTouch=n[0].identifier):this._tap.touchstart(t,e,n))}touchmove(t,e,n){if(this._tapTime){if(this._swipePoint){if(n[0].identifier!==this._swipeTouch)return;const r=e[0],i=r.y-this._swipePoint.y;return this._swipePoint=r,t.preventDefault(),this._active=!0,{zoomDelta:i/128}}}else this._tap.touchmove(t,e,n)}touchend(t,e,n){this._tapTime?this._swipePoint&&0===n.length&&this.reset():this._tap.touchend(t,e,n)&&(this._tapTime=t.timeStamp)}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class Qi{constructor(t,e,n){this._el=t,this._mousePan=e,this._touchPan=n}enable(t){this._inertiaOptions=t||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")}disable(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")}isEnabled(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()}isActive(){return this._mousePan.isActive()||this._touchPan.isActive()}}class Ni{constructor(t,e,n){this._pitchWithRotate=t.pitchWithRotate,this._mouseRotate=e,this._mousePitch=n}enable(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()}disable(){this._mouseRotate.disable(),this._mousePitch.disable()}isEnabled(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())}isActive(){return this._mouseRotate.isActive()||this._mousePitch.isActive()}}class Vi{constructor(t,e,n,r){this._el=t,this._touchZoom=e,this._touchRotate=n,this._tapDragZoom=r,this._rotationDisabled=!1,this._enabled=!0}enable(t){this._touchZoom.enable(t),this._rotationDisabled||this._touchRotate.enable(t),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")}disable(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")}isEnabled(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()}isActive(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()}disableRotation(){this._rotationDisabled=!0,this._touchRotate.disable()}enableRotation(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()}}const Gi=t=>t.zoom||t.drag||t.pitch||t.rotate;class Hi extends t.Event{}class Zi{constructor(){this.constants=[1,1,.01],this.radius=0}setup(e,n){const r=t.sub([],n,e);this.radius=t.length(r[2]<0?t.div([],r,this.constants):[r[0],r[1],0])}projectRay(e){t.div(e,e,this.constants),t.normalize(e,e),t.mul$1(e,e,this.constants);const n=t.scale$2([],e,this.radius);if(n[2]>0){const e=t.scale$2([],[0,0,1],t.dot(n,[0,0,1])),r=t.scale$2([],t.normalize([],[n[0],n[1],0]),this.radius),i=t.add([],n,t.scale$2([],t.sub([],t.add([],r,e),n),2));n[0]=i[0],n[1]=i[1]}return n}}function Wi(t){return t.panDelta&&t.panDelta.mag()||t.zoomDelta||t.bearingDelta||t.pitchDelta}class Xi{constructor(e,n){this._map=e,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new si(e),this._bearingSnap=n.bearingSnap,this._previousActiveHandlers={},this._trackingEllipsoid=new Zi,this._dragOrigin=null,this._eventsInProgress={},this._addDefaultHandlers(n),t.bindAll(["handleEvent","handleWindowEvent"],this);const r=this._el;this._listeners=[[r,"touchstart",{passive:!0}],[r,"touchmove",{passive:!1}],[r,"touchend",void 0],[r,"touchcancel",void 0],[r,"mousedown",void 0],[r,"mousemove",void 0],[r,"mouseup",void 0],[t.window.document,"mousemove",{capture:!0}],[t.window.document,"mouseup",void 0],[r,"mouseover",void 0],[r,"mouseout",void 0],[r,"dblclick",void 0],[r,"click",void 0],[r,"keydown",{capture:!1}],[r,"keyup",void 0],[r,"wheel",{passive:!1}],[r,"contextmenu",void 0],[t.window,"blur",void 0]];for(const[e,n,r]of this._listeners)e.addEventListener(n,e===t.window.document?this.handleWindowEvent:this.handleEvent,r)}destroy(){for(const[e,n,r]of this._listeners)e.removeEventListener(n,e===t.window.document?this.handleWindowEvent:this.handleEvent,r)}_addDefaultHandlers(t){const e=this._map,n=e.getCanvasContainer();this._add("mapEvent",new fi(e,t));const r=e.boxZoom=new pi(e,t);this._add("boxZoom",r);const i=new _i,o=new ji;e.doubleClickZoom=new Ri(o,i),this._add("tapZoom",i),this._add("clickZoom",o);const s=new zi;this._add("tapDragZoom",s);const a=e.touchPitch=new Li(e);this._add("touchPitch",a);const c=new wi(t),l=new Ei(t);e.dragRotate=new Ni(t,c,l),this._add("mouseRotate",c,["mousePitch"]),this._add("mousePitch",l,["mouseRotate"]);const u=new xi(t),h=new Si(e,t);e.dragPan=new Qi(n,u,h),this._add("mousePan",u),this._add("touchPan",h,["touchZoom","touchRotate"]);const f=new Fi,d=new Ti;e.touchZoomRotate=new Vi(n,d,f,s),this._add("touchRotate",f,["touchPan","touchZoom"]),this._add("touchZoom",d,["touchPan","touchRotate"]),this._add("blockableMapEvent",new di(e));const p=e.scrollZoom=new Di(e,this);this._add("scrollZoom",p,["mousePan"]);const g=e.keyboard=new Ui;this._add("keyboard",g);for(const n of["boxZoom","doubleClickZoom","tapDragZoom","touchPitch","dragRotate","dragPan","touchZoomRotate","scrollZoom","keyboard"])t.interactive&&t[n]&&e[n].enable(t[n])}_add(t,e,n){this._handlers.push({handlerName:t,handler:e,allowed:n}),this._handlersById[t]=e}stop(t){if(!this._updatingCamera){for(const{handler:t}of this._handlers)t.reset();this._inertia.clear(),this._fireEvents({},{},t),this._changes=[]}}isActive(){for(const{handler:t}of this._handlers)if(t.isActive())return!0;return!1}isZooming(){return!!this._eventsInProgress.zoom||this._map.scrollZoom.isZooming()}isRotating(){return!!this._eventsInProgress.rotate}isMoving(){return!!Gi(this._eventsInProgress)||this.isZooming()}_isDragging(){return!!this._eventsInProgress.drag}_blockedByActive(t,e,n){for(const r in t)if(r!==n&&(!e||e.indexOf(r)<0))return!0;return!1}handleWindowEvent(t){this.handleEvent(t,t.type+"Window")}_getMapTouches(t){const e=[];for(const n of t)this._el.contains(n.target)&&e.push(n);return e}handleEvent(t,e){this._updatingCamera=!0;const n="renderFrame"===t.type,r=n?void 0:t,i={needsRenderFrame:!1},o={},s={},a=t.touches?this._getMapTouches(t.touches):void 0,c=a?g(this._el,a):n?void 0:p(this._el,t);for(const{handlerName:n,handler:l,allowed:u}of this._handlers){if(!l.isEnabled())continue;let h;this._blockedByActive(s,u,n)?l.reset():l[e||t.type]&&(h=l[e||t.type](t,c,a),this.mergeHandlerResult(i,o,h,n,r),h&&h.needsRenderFrame&&this._triggerRe
vendor: 4,435 bytes, line 27
27nderFrame()),(h||l.isActive())&&(s[n]=l)}const l={};for(const t in this._previousActiveHandlers)s[t]||(l[t]=r);this._previousActiveHandlers=s,(Object.keys(l).length||Wi(i))&&(this._changes.push([i,o,l]),this._triggerRenderFrame()),(Object.keys(s).length||Wi(i))&&this._map._stop(!0),this._updatingCamera=!1;const{cameraAnimation:u}=i;u&&(this._inertia.clear(),this._fireEvents({},{},!0),this._changes=[],u(this._map))}mergeHandlerResult(e,n,r,i,o){if(!r)return;t.extend(e,r);const s={handlerName:i,originalEvent:r.originalEvent||o};void 0!==r.zoomDelta&&(n.zoom=s),void 0!==r.panDelta&&(n.drag=s),void 0!==r.pitchDelta&&(n.pitch=s),void 0!==r.bearingDelta&&(n.rotate=s)}_applyChanges(){const e={},n={},r={};for(const[i,o,s]of this._changes)i.panDelta&&(e.panDelta=(e.panDelta||new t.Point(0,0))._add(i.panDelta)),i.zoomDelta&&(e.zoomDelta=(e.zoomDelta||0)+i.zoomDelta),i.bearingDelta&&(e.bearingDelta=(e.bearingDelta||0)+i.bearingDelta),i.pitchDelta&&(e.pitchDelta=(e.pitchDelta||0)+i.pitchDelta),void 0!==i.around&&(e.around=i.around),void 0!==i.aroundCoord&&(e.aroundCoord=i.aroundCoord),void 0!==i.pinchAround&&(e.pinchAround=i.pinchAround),i.noInertia&&(e.noInertia=i.noInertia),t.extend(n,o),t.extend(r,s);this._updateMapTransform(e,n,r),this._changes=[]}_updateMapTransform(e,n,r){const i=this._map,o=i.transform,s=t=>[t.x,t.y,t.z];if((t=>{const e=this._eventsInProgress.drag;return e&&!this._handlersById[e.handlerName].isActive()})()&&!Wi(e)){const t=o.zoom;o.cameraElevationReference="sea",o.recenterOnTerrain(),o.cameraElevationReference="ground",t!==o.zoom&&this._map._update(!0)}if(o._isCameraConstrained&&i._stop(!0),!Wi(e))return void this._fireEvents(n,r,!0);let{panDelta:a,zoomDelta:c,bearingDelta:l,pitchDelta:u,around:h,aroundCoord:f,pinchAround:d}=e;o._isCameraConstrained&&(c>0&&(c=0),o._isCameraConstrained=!1),void 0!==d&&(h=d),(c||(t=>n[t]&&!this._eventsInProgress[t])("drag"))&&h&&(this._dragOrigin=s(o.pointCoordinate3D(h)),this._trackingEllipsoid.setup(o._camera.position,this._dragOrigin)),o.cameraElevationReference="sea",i._stop(!0),h=h||i.transform.centerPoint,l&&(o.bearing+=l),u&&(o.pitch+=u),o._updateCameraState();const p=[0,0,0];if(a)if("mercator"===o.projection.name){const t=this._trackingEllipsoid.projectRay(o.screenPointToMercatorRay(h).dir),e=this._trackingEllipsoid.projectRay(o.screenPointToMercatorRay(h.sub(a)).dir);p[0]=e[0]-t[0],p[1]=e[1]-t[1]}else{const e=o.pointCoordinate(h);if("globe"===o.projection.name){a=a.rotate(-o.angle);const n=o._pixelsPerMercatorPixel/o.worldSize;p[0]=-a.x*t.mercatorScale(t.latFromMercatorY(e.y))*n,p[1]=-a.y*t.mercatorScale(o.center.lat)*n}else{const t=o.pointCoordinate(h.sub(a));e&&t&&(p[0]=t.x-e.x,p[1]=t.y-e.y)}}const g=o.zoom,m=[0,0,0];if(c){const e=s(f||o.pointCoordinate3D(h)),n={dir:t.normalize([],t.sub([],e,o._camera.position))};if(n.dir[2]<0){const r=o.zoomDeltaToMovement(e,c);t.scale$2(m,n.dir,r)}}const y=t.add(p,p,m);o._translateCameraConstrained(y),c&&Math.abs(o.zoom-g)>1e-4&&o.recenterOnTerrain(),o.cameraElevationReference="ground",this._map._update(),e.noInertia||this._inertia.record(e),this._fireEvents(n,r,!0)}_fireEvents(e,n,r){const i=Gi(this._eventsInProgress),o=Gi(e),s={};for(const t in e){const{originalEvent:n}=e[t];this._eventsInProgress[t]||(s[t+"start"]=n),this._eventsInProgress[t]=e[t]}!i&&o&&this._fireEvent("movestart",o.originalEvent);for(const t in s)this._fireEvent(t,s[t]);o&&this._fireEvent("move",o.originalEvent);for(const t in e){const{originalEvent:n}=e[t];this._fireEvent(t,n)}const a={};let c;for(const t in this._eventsInProgress){const{handlerName:e,originalEvent:r}=this._eventsInProgress[t];this._handlersById[e].isActive()||(delete this._eventsInProgress[t],c=n[e]||r,a[t+"end"]=c)}for(const t in a)this._fireEvent(t,a[t]);const l=Gi(this._eventsInProgress);if(r&&(i||o)&&!l){this._updatingCamera=!0;const e=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),n=t=>0!==t&&-this._bearingSnap<t&&t<this._bearingSnap;e?(n(e.bearing||this._map.getBearing())&&(e.bearing=0),this._map.easeTo(e,{originalEvent:c})):(this._map.fire(new t.Event("moveend",{originalEvent:c})),n(this._map.getBearing())&&this._map.resetNorth()),this._updatingCamera=!1}}_fireEvent(e,n){this._map.fire(new t.Event(e,n?{originalEvent:n}:{}))}_requestFrame(){return this._map.triggerRepaint(),this._map._renderTaskQueue.add(t=>{this._frameId=void 0,this.handleEvent(new Hi("renderFrame",{timeStamp:t})),this._applyChanges()})}
27_triggerRenderFrame(){void 0===this._frameId&&(this._frameId=this._requestFrame())}}const Yi="map.setFreeCameraOptions(...) and map.getFreeCameraOptions() are not yet supported for non-mercator projections.";class qi extends t.Evented{constructor(e,n){super(),this._moving=!1,this._zooming=!1,this.transform=e,this._bearingSnap=n.bearingSnap,this._respectPrefersReducedMotion=!1!==n.respectPrefersReducedMotion,t.bindAll(["_renderFrameCallback"],this)}getCenter(){return new t.LngLat(this.transform.center.lng,this.transform.center.lat)}setCenter(t,e){return this.jumpTo({center:t},e)}panBy(e,n,r){return e=t.Point.convert(e).mult(-1),this.panTo(this.transform.center,t.extend({offset:e},n),r)}panTo(e,n,r){return this.easeTo(t.extend({center:e},n),r)}getZoom(){return this.transform.zoom}setZoom(t,e){return this.jumpTo({zoom:t},e),this}zoomTo(e,n,r){return this.easeTo(t.extend({zoom:e},n),r)}zoomIn(t,e){return this.zoomTo(this.getZoom()+1,t,e),this}zoomOut(t,e){return this.zoomTo(this.getZoom()-1,t,e),this}getBearing(){return this.transform.bearing}setBearing(t,e){return this.jumpTo({bearing:t},e),this}getPadding(){return this.transform.padding}setPadding(t,e){return this.jumpTo({padding:t},e),this}rotateTo(e,n,r){return this.easeTo(t.extend({bearing:e},n),r)}resetNorth(e,n){return this.rotateTo(0,t.extend({duration:1e3},e),n),this}resetNorthPitch(e,n){return this.easeTo(t.extend({bearing:0,pitch:0,duration:1e3},e),n),this}snapToNorth(t,e){return Math.abs(this.getBearing())<this._bearingSnap?this.resetNorth(t,e):this}getPitch(){return this.transform.pitch}setPitch(t,e){return this.jumpTo({pitch:t},e),this}cameraForBounds(e,n){e=t.LngLatBounds.convert(e);const r=n&&n.bearing||0,i=n&&n.pitch||0,o=e.getNorthWest(),s=e.getSouthEast();return this._cameraForBounds(this.transform,o,s,r,i,n)}_extendCameraOptions(e){const n={top:0,bottom:0,right:0,left:0};if("number"==typeof(e=t.extend({padding:n,offset:[0,0],maxZoom:this.transform.maxZoom},e)).padding){const t=e.padding;e.padding={top:t,bottom:t,right:t,left:t}}return e.padding=t.extend(n,e.padding),e}_minimumAABBFrustumDistance(t,e){const n=e.max[0]-e.min[0],r=e.max[1]-e.min[1];return n/r>t.aspect?n/(2*Math.tan(.5*t.fovX)*t.aspect):r/(2*Math.tan(.5*t.fovY)*t.aspect)}_cameraForBoundsOnGlobe(e,n,r,i,o,s){const a=e.clone(),c=this._extendCameraOptions(s);a.bearing=i,a.pitch=o;const l=t.LngLat.convert(n),u=t.LngLat.convert(r),h=.5*(l.lat+u.lat),f=.5*(l.lng+u.lng),d=t.latLngToECEF(h,f),p=t.normalize([],d),g=t.normalize([],t.cross([],p,[0,1,0])),m=t.cross([],g,p),y=[g[0],g[1],g[2],0,m[0],m[1],m[2],0,p[0],p[1],p[2],0,0,0,0,1],_=[d,t.latLngToECEF(l.lat,l.lng),t.latLngToECEF(u.lat,l.lng),t.latLngToECEF(u.lat,u.lng),t.latLngToECEF(l.lat,u.lng),t.latLngToECEF(h,l.lng),t.latLngToECEF(h,u.lng),t.latLngToECEF(l.lat,f),t.latLngToECEF(u.lat,f)];let v=t.Aabb.fromPoints(_.map(e=>[t.dot(g,e),t.dot(m,e),t.dot(p,e)]));const b=t.transformMat4([],v.center,y);0===t.squaredLength(b)&&t.set(b,0,0,1),t.normalize(b,b),t.scale$2(b,b,t.GLOBE_RADIUS),a.center=t.ecefToLatLng(b);const x=a.getWorldToCameraMatrix(),w=t.invert(new Float64Array(16),x);v=t.Aabb.applyTransform(v,t.multiply([],x,y)),t.transformMat4(b,b,x);const E=.5*(v.max[2]-v.min[2]),S=this._minimumAABBFrustumDistance(a,v),C=t.scale$2([],[0,0,1],E),A=t.add(C,b,C),I=S+(0===a.pitch?0:t.distance(b,A)),T=a.globeCenterInViewSpace,M=t.sub([],b,[T[0],T[1],T[2]]);t.normalize(M,M),t.scale$2(M,M,I);const F=t.add([],b,M);t.transformMat4(F,F,w);const B=t.earthRadius/t.GLOBE_RADIUS,L=t.length(F),O=t.mercatorZfromAltitude(Math.max(L*B-t.earthRadius,Number.EPSILON),0),U=Math.min(a.zoomFromMercatorZAdjusted(O),c.maxZoom);return U>.5*(t.GLOBE_ZOOM_THRESHOLD_MIN+t.GLOBE_ZOOM_THRESHOLD_MAX)?(a.setProjection({name:"mercator"}),a.zoom=U,this._cameraForBounds(a,n,r,i,o,s)):{center:a.center,zoom:U,bearing:i,pitch:o}}queryTerrainElevation(e,n){const r=this.transform.elevation;return r?(n=t.extend({},{exaggerated:!0},n),r.getAtPoint(t.MercatorCoordinate.fromLngLat(e),null,n.exaggerated)):null}_cameraForBounds(e,n,r,i,o,s){if("globe"===e.projection.name)return this._cameraForBoundsOnGlobe(e,n,r,i,o,s);const a=e.clone(),c=this._extendCameraOptions(s),l=a.padding;a.bearing=i,a.pitch=o;const u=t.LngLat.convert(n),h=t.LngLat.convert(r),f=new t.LngLat(u.lng,h.lat),d=new t.LngLat(h.lng,u.lat),p=a.project(u),g=a.project(h),m=this.queryTerrainElevation(u),y=this.queryTerrainElevation(h),_=this.queryTerrainElevation(f),v=this.queryTerrainElevation(d),b=[[p.x,p.y,Math.min(m||0,y||0,_||0,v||0)],[g.x,g.y,Math.max(m||0,y||0,_||0,v||0)]];let x=t.Aabb.fromPoints(b);const w=a.getWorldToCameraMatrix(),E=t.invert(new Float64Array(16),w);x=t.Aabb.applyTransform(x,w);const S=t.sub([],x.max,x.min),C=l.left||0,A=l.right||0,I=l.bottom||0,T=l.top||0,{left:M,right:F,top:B,bottom:L}=c.padding,O=.5*(C+A),U=.5*(T+I),k=Math.min(a.scaleZoom(a.scale*Math.min((a.width-(C+A+M+F))/S[0],(a.height-(I+T+L+B))/S[1])),c.maxZoom),P=a.scale/a.zoomScale(k);x=new t.Aabb([x.min[0]-(M+O)*P,x.min[1]-(L+U)*P,x.min[2]],[x.max[0]+(F+O)*P,x.max[1]+(B+U)*P,x.max[2]]);const D=.5*S[2],R=this._minimumAABBFrustumDistance(a,x),j=[0,0,1,0];t.transformMat4$1(j,j,w),t.normalize$2(j,j);const z=t.scale$2([],j,R+D),Q=t.add([],x.center,z),N=("number"==typeof c.offset.x&&"number"==typeof c.offset.y?new t.Point(c.offset.x,c.offset.y):t.Point.convert(c.offset)).rotate(-t.degToRad(i));x.center[0]-=N.x*P,x.center[1]+=N.y*P,t.transformMat4(x.center,x.center,E),t.transformMat4(Q,Q,E);const V=[x.center[0],x.center[1],Q[2]*a.pixelsPerMeter];t.scale$2(V,V,1/a.worldSize);const G=t.lngFromMercatorX(V[0]),H=t.latFromMercatorY(V[1]),Z=Math.min(a._zoomFromMercatorZ(V[2]),c.maxZoom),W=new t.LngLat(G,H);return a.mercatorFromTransition&&Z<.5*(t.GLOBE_ZOOM_THRESHOLD_MIN+t.GLOBE_ZOOM_THRESHOLD_MAX)?(a.setProjection({name:"globe"}),a.zoom=Z,this._cameraForBounds(a,n,r,i,o,s)):{center:W,zoom:Z,bearing:i,pitch:o}}fitBounds(t,e,n){const r=this.cameraForBounds(t,e);return this._fitInternal(r,e,n)}fitScreenCoordinates(e,n,r,i,o){const s=t.Point.convert(e),a=t.Point.convert(n),c=new t.Point(Math.min(s.x,a.x),Math.min(s.y,a.y)),l=new t.Point(Math.max(s.x,a.x),Math.max(s.y,a.y));if("mercator"===this.transform.projection.name&&this.transform.anyCornerOffEdge(s,a))return this;const u=this.transform.pointLocation3D(c),h=this.transform.pointLocation3D(l),f=this.transform.pointLocation3D(new t.Point(c.x,l.y)),d=this.transform.pointLocation3D(new t.Point(l.x,c.y)),p=[Math.min(u.lng,h.lng,f.lng,d.lng),Math.min(u.lat,h.lat,f.lat,d.lat)],g=[Math.max(u.lng,h.lng,f.lng,d.lng),Math.max(u.lat,h.lat,f.lat,d.lat)],m=i&&i.pitch?i.pitch:this.getPitch(),y=this._cameraForBounds(this.transform,p,g,r,m,i);return this._fitInternal(y,i,o)}_fitInternal(e,n,r){return e?(delete(n=t.extend(e,n)).padding,n.linear?this.easeTo(n,r):this.flyTo(n,r)):this}jumpTo(e,n){this.stop();const r=e.preloadOnly?this.transform.clone():this.transform;let i=!1,o=!1,s=!1;return"zoom"in e&&r.zoom!==+e.zoom&&(i=!0,r.zoom=+e.zoom),void 0!==e.center&&(r.center=t.LngLat.convert(e.center)),"bearing"in e&&r.bearing!==+e.bearing&&(o=!0,r.bearing=+e.bearing),"pitch"in e&&r.pitch!==+e.pitch&&(s=!0,r.pitch=+e.pitch),null==e.padding||r.isPaddingEqual(e.padding)||(r.padding=e.padding),e.preloadOnly?(this._preloadTiles(r),this):(this.fire(new t.Event("movestart",n)).fire(new t.Event("move",n)),i&&this.fire(new t.Event("zoomstart",n)).fire(new t.Event("zoom",n)).fire(new t.Event("zoomend",n)),o&&this.fire(new t.Event("rotatestart",n)).fire(new t.Event("rotate",n)).fire(new t.Event("rotateend",n)),s&&this.fire(new t.Event("pitchstart",n)).fire(new t.Event("pitch",n)).fire(new t.Event("pitchend",n)),this.fire(new t.Event("moveend",n)))}getFreeCameraOptions(){return this.transform.projection.supportsFreeCamera||t.warnOnce(Yi),this.transform.getFreeCameraOptions()}setFreeCameraOptions(e,n){const r=this.transform;if(!r.projection.supportsFreeCamera)return t.warnOnce(Yi),this;this.stop();const i=r.zoom,o=r.pitch,s=r.bearing;r.setFreeCameraOptions(e);const a=i!==r.zoom,c=o!==r.pitch,l=s!==r.bearing;return this.fire(new t.Event("movestart",n)).fire(new t.Event("move",n)),a&&this.fire(new t.Event("zoomstart",n)).fire(new t.Event("zoom",n)).fire(new t.Event("zoomend",n)),l&&this.fire(new t.Event("rotatestart",n)).fire(new t.Event("rotate",n)).fire(new t.Event("rotateend",n)),c&&this.fire(new t.Event("pitchstart",n)).fire(new t.Event("pitch",n)).fire(new t.Event("pitchend",n)),this.fire(new t.Event("moveend",n)),this}easeTo(e,n){this._stop(!1,e.easeId),(!1===(e=t.extend({offset:[0,0],duration:500,easing:t.ease},e)).animate||this._prefersReducedMotion(e))&&(e.duration=0);const r=this.transform,i=this.getZoom(),o=this.getBearing(),s=this.getPitch(),a=this.getPadding(),c="zoom"in e?+e.zoom:i,l="bearing"in e?this._normalizeBearing(e.bearing,o):o,u="pitch"in e?+e.pitch:s,h="padding"in e?e.padding:r.padding,f
vendor: 15,483 bytes, line 27
27=t.Point.convert(e.offset);let d,p,g;if("globe"===r.projection.name){const n=t.MercatorCoordinate.fromLngLat(r.center),i=f.rotate(-r.angle);n.x+=i.x/r.worldSize,n.y+=i.y/r.worldSize;const o=n.toLngLat(),s=t.LngLat.convert(e.center||o);this._normalizeCenter(s),d=r.centerPoint.add(i),p=new t.Point(n.x,n.y).mult(r.worldSize),g=new t.Point(t.mercatorXfromLng(s.lng),t.mercatorYfromLat(s.lat)).mult(r.worldSize).sub(p)}else{d=r.centerPoint.add(f);const n=r.pointLocation(d),i=t.LngLat.convert(e.center||n);this._normalizeCenter(i),p=r.project(n),g=r.project(i).sub(p)}const m=r.zoomScale(c-i);let y,_;e.around&&(y=t.LngLat.convert(e.around),_=r.locationPoint(y));const v=this._zooming||c!==i,b=this._rotating||o!==l,x=this._pitching||u!==s,w=!r.isPaddingEqual(h),E=r=>E=>{if(v&&(r.zoom=t.number(i,c,E)),b&&(r.bearing=t.number(o,l,E)),x&&(r.pitch=t.number(s,u,E)),w&&(r.interpolatePadding(a,h,E),d=r.centerPoint.add(f)),y)r.setLocationAtPoint(y,_);else{const t=r.zoomScale(r.zoom-i),e=c>i?Math.min(2,m):Math.max(.5,m),n=Math.pow(e,1-E),o=r.unproject(p.add(g.mult(E*n)).mult(t));r.setLocationAtPoint(r.renderWorldCopies?o.wrap():o,d)}return e.preloadOnly||this._fireMoveEvents(n),r};if(e.preloadOnly){const t=this._emulate(E,e.duration,r);return this._preloadTiles(t),this}const S={moving:this._moving,zooming:this._zooming,rotating:this._rotating,pitching:this._pitching};return this._zooming=v,this._rotating=b,this._pitching=x,this._padding=w,this._easeId=e.easeId,this._prepareEase(n,e.noMoveStart,S),this._ease(E(r),t=>{r.recenterOnTerrain(),this._afterEase(n,t)},e),this}_prepareEase(e,n,r={}){this._moving=!0,this.transform.cameraElevationReference="sea",n||r.moving||this.fire(new t.Event("movestart",e)),this._zooming&&!r.zooming&&this.fire(new t.Event("zoomstart",e)),this._rotating&&!r.rotating&&this.fire(new t.Event("rotatestart",e)),this._pitching&&!r.pitching&&this.fire(new t.Event("pitchstart",e))}_fireMoveEvents(e){this.fire(new t.Event("move",e)),this._zooming&&this.fire(new t.Event("zoom",e)),this._rotating&&this.fire(new t.Event("rotate",e)),this._pitching&&this.fire(new t.Event("pitch",e))}_afterEase(e,n){if(this._easeId&&n&&this._easeId===n)return;this._easeId=void 0,this.transform.cameraElevationReference="ground";const r=this._zooming,i=this._rotating,o=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,r&&this.fire(new t.Event("zoomend",e)),i&&this.fire(new t.Event("rotateend",e)),o&&this.fire(new t.Event("pitchend",e)),this.fire(new t.Event("moveend",e))}flyTo(e,n){if(this._prefersReducedMotion(e)){const r=t.pick(e,["center","zoom","bearing","pitch","around"]);return this.jumpTo(r,n)}this.stop(),e=t.extend({offset:[0,0],speed:1.2,curve:1.42,easing:t.ease},e);const r=this.transform,i=this.getZoom(),o=this.getBearing(),s=this.getPitch(),a=this.getPadding(),c="zoom"in e?t.clamp(+e.zoom,r.minZoom,r.maxZoom):i,l="bearing"in e?this._normalizeBearing(e.bearing,o):o,u="pitch"in e?+e.pitch:s,h="padding"in e?e.padding:r.padding,f=r.zoomScale(c-i),d=t.Point.convert(e.offset);let p=r.centerPoint.add(d);const g=r.pointLocation(p),m=t.LngLat.convert(e.center||g);this._normalizeCenter(m);const y=r.project(g),_=r.project(m).sub(y);let v=e.curve;const b=Math.max(r.width,r.height),x=b/f,w=_.mag();if("minZoom"in e){const n=t.clamp(Math.min(e.minZoom,i,c),r.minZoom,r.maxZoom),o=b/r.zoomScale(n-i);v=Math.sqrt(o/w*2)}const E=v*v;function S(t){const e=(x*x-b*b+(t?-1:1)*E*E*w*w)/(2*(t?x:b)*E*w);return Math.log(Math.sqrt(e*e+1)-e)}function C(t){return(Math.exp(t)-Math.exp(-t))/2}function A(t){return(Math.exp(t)+Math.exp(-t))/2}const I=S(0);let T=function(t){return A(I)/A(I+v*t)},M=function(t){return b*((A(I)*(C(e=I+v*t)/A(e))-C(I))/E)/w;var e},F=(S(1)-I)/v;if(Math.abs(w)<1e-6||!isFinite(F)){if(Math.abs(b-x)<1e-6)return this.easeTo(e,n);const t=x<b?-1:1;F=Math.abs(Math.log(x/b))/v,M=function(){return 0},T=function(e){return Math.exp(t*v*e)}}e.duration="duration"in e?+e.duration:1e3*F/("screenSpeed"in e?+e.screenSpeed/v:+e.speed),e.maxDuration&&e.duration>e.maxDuration&&(e.duration=0);const B=o!==l,L=u!==s,O=!r.isPaddingEqual(h),U=r=>f=>{const g=f*F,v=1/T(g);r.zoom=1===f?c:i+r.scaleZoom(v),B&&(r.bearing=t.number(o,l,f)),L&&(r.pitch=t.number(s,u,f)),O&&(r.interpolatePadding(a,h,f),p=r.centerPoint.add(d));const b=1===f?m:r.unproject(y.add(_.mult(M(g))).mult(v));return r.setLocationAtPoint(r.renderWorldCopies?b.wrap():b,p),r._updateCameraOnTerrain(),e.preloadOnly||this._fireMoveEvents(n),r};if(e.preloadOnly){const t=this._emulate(U,e.duration,r);return this._preloadTiles(t),this}return this._zooming=!0,this._rotating=B,this._pitching=L,this._padding=O,this._prepareEase(n,!1),this._ease(U(r),()=>this._afterEase(n),e),this}isEasing(){return!!this._easeFrameId}stop(){return this._stop()}_stop(t,e){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),this._easeFrameId=void 0,this._onEaseFrame=void 0),this._onEaseEnd){const t=this._onEaseEnd;this._onEaseEnd=void 0,t.call(this,e)}if(!t){const t=this.handlers;t&&t.stop(!1)}return this}_ease(e,n,r){!1===r.animate||0===r.duration?(e(1),n()):(this._easeStart=t.exported.now(),this._easeOptions=r,this._onEaseFrame=e,this._onEaseEnd=n,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))}_renderFrameCallback(){const e=Math.min((t.exported.now()-this._easeStart)/this._easeOptions.duration,1),n=this._onEaseFrame;n&&n(this._easeOptions.easing(e)),e<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()}_normalizeBearing(e,n){e=t.wrap(e,-180,180);const r=Math.abs(e-n);return Math.abs(e-360-n)<r&&(e-=360),Math.abs(e+360-n)<r&&(e+=360),e}_normalizeCenter(t){const e=this.transform;if(!e.renderWorldCopies||e.maxBounds)return;const n=t.lng-e.center.lng;t.lng+=n>180?-360:n<-180?360:0}_prefersReducedMotion(e){return this._respectPrefersReducedMotion&&t.exported.prefersReducedMotion&&!(e&&e.essential)}_emulate(t,e,n){const r=Math.ceil(15*e/1e3),i=[],o=t(n.clone());for(let t=0;t<=r;t++){const e=o(t/r);i.push(e.clone())}return i}}class Ki{constructor(e={}){this.options=e,t.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)}getDefaultPosition(){return"bottom-right"}onAdd(t){const e=this.options&&this.options.compact;return this._map=t,this._container=o("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=o("button","mapboxgl-ctrl-attrib-button",this._container),o("span","mapboxgl-ctrl-icon",this._compactButton).setAttribute("aria-hidden","true"),this._compactButton.type="button",this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=o("div","mapboxgl-ctrl-attrib-inner",this._container),this._innerContainer.setAttribute("role","list"),e&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),void 0===e&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container}onRemove(){this._container.remove(),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0,this._attribHTML=void 0}_setElementTitle(t,e){const n=this._map._getUIString("AttributionControl."+e);t.setAttribute("aria-label",n),t.removeAttribute("title"),t.firstElementChild&&t.firstElementChild.setAttribute("title",n)}_toggleAttribution(){this._container.classList.contains("mapboxgl-compact-show")?(this._container.classList.remove("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-expanded","false")):(this._container.classList.add("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-expanded","true"))}_updateEditLink(){let e=this._editLink;e||(e=this._editLink=this._container.querySelector(".mapbox-improve-map"));const n=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||t.config.ACCESS_TOKEN}];if(e){const r=n.reduce((t,e,r)=>(e.value&&(t+=`${e.key}=${e.value}${r<n.length-1?"&":""}`),t),"?");e.href=`${t.config.FEEDBACK_URL}/${r}#${ti(this._map,!0)}`,e.rel="noopener nofollow",this._setElementTitle(e,"MapFeedback")}}_updateData(t){!t||"metadata"!==t.sourceDataType&&"visibility"!==t.sourceDataType&&"style"!==t.dataType||(this._updateAttributions(),this._updateEditLink())}_updateAttributions(){if(!this._map.style)return;let t=[];if(this._map.style.stylesheet){const t=this._map.style.stylesheet;this.styleOwner=t.owner,this.styleId=t.id}const e=this._map.style._sourceCaches;for(const n in e){const r=e[n];if(r.used){const e=r.getSource();e.attribution&&t.indexOf(e.attribution)<0&&t.push(e.attribution)}}t.sort((t,e)=>t.length-e.length),t=t.filter((e,n)=>{for(let r=n+1;r<t.length;r++)if(t[r].indexOf(e)>=0)return!1;return!0}),this.options.customAttribution&&(Array.isArray(this.options.customAttribution)?t=[...this.options.customAttribution,...t]:t.unshift(this.options.customAttribution));const n=t.join(" | ");n!==this._attribHTML&&(this._attribHTML=n,t.length?(this._innerContainer.innerHTML=n,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}_updateCompact(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")}}class Ji{constructor(){t.bindAll(["_updateLogo","_updateCompact"],this)}onAdd(t){this._map=t,this._container=o("div","mapboxgl-ctrl");const e=o("a","mapboxgl-ctrl-logo");return e.target="_blank",e.rel="noopener nofollow",e.href="https://www.mapbox.com/",e.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),e.setAttribute("rel","noopener nofollow"),this._container.appendChild(e),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container}onRemove(){this._container.remove(),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)}getDefaultPosition(){return"bottom-left"}_updateLogo(t){t&&"metadata"!==t.sourceDataType||(this._container.style.display=this._logoRequired()?"block":"none")}_logoRequired(){if(!this._map.style)return!0;const t=this._map.style._sourceCaches;if(0===Object.entries(t).length)return!0;for(const e in t){const n=t[e].getSource();if(n.hasOwnProperty("mapbox_logo")&&!n.mapbox_logo)return!1}return!0}_updateCompact(){const t=this._container.children;if(t.length){const e=t[0];this._map.getCanvasContainer().offsetWidth<250?e.classList.add("mapboxgl-compact"):e.classList.remove("mapboxgl-compact")}}}class $i{constructor(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1}add(t){const e=++this._id;return this._queue.push({callback:t,id:e,cancelled:!1}),e}remove(t){const e=this._currentlyRunning,n=e?this._queue.concat(e):this._queue;for(const e of n)if(e.id===t)return void(e.cancelled=!0)}run(t=0){const e=this._currentlyRunning=this._queue;this._queue=[];for(const n of e)if(!n.cancelled&&(n.callback(t),this._cleared))break;this._cleared=!1,this._currentlyRunning=!1}clear(){this._currentlyRunning&&(this._cleared=!0),this._queue=[]}}function to(e,n,r){if(e=new t.LngLat(e.lng,e.lat),n){const i=new t.LngLat(e.lng-360,e.lat),o=new t.LngLat(e.lng+360,e.lat),s=360*Math.ceil(Math.abs(e.lng-r.center.lng)/360),a=r.locationPoint(e).distSqr(n),c=n.x<0||n.y<0||n.x>r.width||n.y>r.height;r.locationPoint(i).distSqr(n)<a&&(c||Math.abs(i.lng-r.center.lng)<s)?e=i:r.locationPoint(o).distSqr(n)<a&&(c||Math.abs(o.lng-r.center.lng)<s)&&(e=o)}for(;Math.abs(e.lng-r.center.lng)>180;){const t=r.locationPoint(e);if(t.x>=0&&t.y>=0&&t.x<=r.width&&t.y<=r.height)break;e.lng>r.center.lng?e.lng-=360:e.lng+=360}return e}const eo={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};class no extends t.Evented{constructor(e,n){if(super(),(e instanceof t.window.HTMLElement||n)&&(e=t.extend({element:e},n)),t.bindAll(["_update","_onMove","_onUp","_addDragHandler","_onMapClick","_onKeyPress","_clearFadeTimer"],this),this._anchor=e&&e.anchor||"center",this._color=e&&e.color||"#3FB1CE",this._scale=e&&e.scale||1,this._draggable=e&&e.draggable||!1,this._clickTolerance=e&&e.clickTolerance||0,this._isDragging=!1,this._state="inactive",this._rotation=e&&e.rotation||0,this._rotationAlignment=e&&e.rotationAlignment||"auto",this._pitchAlignment=e&&e.pitchAlignment&&e.pitchAlignment||"auto",this._updateMoving=()=>this._update(!0),this._occludedOpacity=e&&e.occludedOpacity||.2,e&&e.element)this._element=e.element,this._offset=t.Point.convert(e&&e.offset||[0,0]);else{this._defaultMarker=!0,this._element=o("div");const n=41,r=27,i=s("svg",{display:"block",height:n*this._scale+"px",width:r*this._scale+"px",viewBox:`0 0 ${r} ${n}`},this._element),a=s("radialGradient",{id:"shadowGradient"},s("defs",{},i));s("stop",{offset:"10%","stop-opacity":.4},a),s("stop",{offset:"100%","stop-opacity":.05},a),s("ellipse",{cx:13.5,cy:34.8,rx:10.5,ry:5.25,fill:"url(#shadowGradient)"},i),s("path",{fill:this._color,d:"M27,13.5C27,19.07 20.25,27 14.75,34.5C14.02,35.5 12.98,35.5 12.25,34.5C6.75,27 0,19.22 0,13.5C0,6.04 6.04,0 13.5,0C20.96,0 27,6.04 27,13.5Z"},i),s("path",{opacity:.25,d:"M13.5,0C6.04,0 0,6.04 0,13.5C0,19.22 6.75,27 12.25,34.5C13,35.52 14.02,35.5 14.75,34.5C20.25,27 27,19.07 27,13.5C27,6.04 20.96,0 13.5,0ZM13.5,1C20.42,1 26,6.58 26,13.5C26,15.9 24.5,19.18 22.22,22.74C19.95,26.3 16.71,30.14 13.94,33.91C13.74,34.18 13.61,34.32 13.5,34.44C13.39,34.32 13.26,34.18 13.06,33.91C10.28,30.13 7.41,26.31 5.02,22.77C2.62,19.23 1,15.95 1,13.5C1,6.58 6.58,1 13.5,1Z"},i),s("circle",{fill:"white",cx:13.5,cy:13.5,r:5.5},i),this._offset=t.Point.convert(e&&e.offset||[0,-14])}this._element.hasAttribute("aria-label")||this._element.setAttribute("aria-label","Map marker"),this._element.classList.add("mapboxgl-marker"),this._element.addEventListener("dragstart",t=>{t.preventDefault()}),this._element.addEventListener("mousedown",t=>{t.preventDefault()});const r=this._element.classList;for(const t in eo)r.remove("mapboxgl-marker-anchor-"+t);r.add("mapboxgl-marker-anchor-"+this._anchor),this._popup=null}addTo(t){return t===this._map||(this.remove(),this._map=t,t.getCanvasContainer().appendChild(this._element),t.on("move",this._updateMoving),t.on("moveend",this._update),t.on("remove",this._clearFadeTimer),t._addMarker(this),this.setDraggable(this._draggable),this._update(),t.on("click",this._onMapClick)),this}remove(){const t=this._map;return t&&(t.off("click",this._onMapClick),t.off("move",this._updateMoving),t.off("moveend",this._update),t.off("mousedown",this._addDragHandler),t.off("touchstart",this._addDragHandler),t.off("mouseup",this._onUp),t.off("touchend",this._onUp),t.off("mousemove",this._onMove),t.off("touchmove",this._onMove),t.off("remove",this._clearFadeTimer),t._removeMarker(this),this._map=void 0),this._clearFadeTimer(),this._element.remove(),this._popup&&this._popup.remove(),this}getLngLat(){return this._lngLat}
vendor: 3,836 bytes, line 27
27setLngLat(e){return this._lngLat=t.LngLat.convert(e),this._pos=null,this._popup&&this._popup.setLngLat(this._lngLat),this._update(!0),this}getElement(){return this._element}setPopup(t){if(this._popup&&(this._popup.remove(),this._popup=null,this._element.removeAttribute("role"),this._element.removeEventListener("keypress",this._onKeyPress),this._originalTabIndex||this._element.removeAttribute("tabindex")),t){if(!("offset"in t.options)){const e=38.1,n=13.5,r=Math.sqrt(Math.pow(n,2)/2);t.options.offset=this._defaultMarker?{top:[0,0],"top-left":[0,0],"top-right":[0,0],bottom:[0,-e],"bottom-left":[r,-1*(e-n+r)],"bottom-right":[-r,-1*(e-n+r)],left:[n,-1*(e-n)],right:[-n,-1*(e-n)]}:this._offset}this._popup=t,t._marker=this,this._lngLat&&this._popup.setLngLat(this._lngLat),this._element.setAttribute("role","button"),this._originalTabIndex=this._element.getAttribute("tabindex"),this._originalTabIndex||this._element.setAttribute("tabindex","0"),this._element.addEventListener("keypress",this._onKeyPress),this._element.setAttribute("aria-expanded","false")}return this}_onKeyPress(t){const e=t.code,n=t.charCode||t.keyCode;"Space"!==e&&"Enter"!==e&&32!==n&&13!==n||this.togglePopup()}_onMapClick(t){const e=t.originalEvent.target,n=this._element;this._popup&&(e===n||n.contains(e))&&this.togglePopup()}getPopup(){return this._popup}togglePopup(){const t=this._popup;return t?(t.isOpen()?(t.remove(),this._element.setAttribute("aria-expanded","false")):this._map&&(t.addTo(this._map),this._element.setAttribute("aria-expanded","true")),this):this}_behindTerrain(){const t=this._map,e=this._pos;if(!t||!e)return!1;const n=t.unproject(e),r=t.getFreeCameraOptions();if(!r.position)return!1;const i=r.position.toLngLat();return i.distanceTo(n)<.9*i.distanceTo(this._lngLat)}_evaluateOpacity(){const e=this._map;if(!e)return;const n=this._pos;if(!n||n.x<0||n.x>e.transform.width||n.y<0||n.y>e.transform.height)return void this._clearFadeTimer();const r=e.unproject(n);let i;e._showingGlobe()&&t.isLngLatBehindGlobe(e.transform,this._lngLat)?i=0:(i=1-e._queryFogOpacity(r),e.transform._terrainEnabled()&&e.getTerrain()&&this._behindTerrain()&&(i*=this._occludedOpacity)),this._element.style.opacity=""+i,this._element.style.pointerEvents=i>0?"auto":"none",this._popup&&this._popup._setOpacity(i),this._fadeTimer=null}_clearFadeTimer(){this._fadeTimer&&(clearTimeout(this._fadeTimer),this._fadeTimer=null)}_updateDOM(){const t=this._pos;if(!t||!this._map)return;const e=this._offset.mult(this._scale);this._element.style.transform=`\n translate(${t.x}px,${t.y}px)\n ${eo[this._anchor]}\n ${this._calculateXYTransform()} ${this._calculateZTransform()}\n translate(${e.x}px,${e.y}px)\n `}_calculateXYTransform(){const e=this._pos,n=this._map,r=this.getPitchAlignment();if(!n||!e||"map"!==r)return"";if(!n._showingGlobe()){const t=n.getPitch();return t?`rotateX(${t}deg)`:""}const i=t.radToDeg(t.globeTiltAtLngLat(n.transform,this._lngLat)),o=e.sub(t.globeCenterToScreenPoint(n.transform)),s=Math.abs(o.x)+Math.abs(o.y);if(0===s)return"";const a=i/s;return`rotateX(${-o.y*a}deg) rotateY(${o.x*a}deg)`}_calculateZTransform(){const e=this._pos,n=this._map;if(!n||!e)return"";let r=0;const i=this.getRotationAlignment();if("map"===i)if(n._showingGlobe()){const e=n.project(new t.LngLat(this._lngLat.lng,this._lngLat.lat+.001)),i=n.project(new t.LngLat(this._lngLat.lng,this._lngLat.lat-.001)).sub(e);r=t.radToDeg(Math.atan2(i.y,i.x))-90}else r=-n.getBearing();else if("horizon"===i){const i=t.smoothstep(4,6,n.getZoom()),o=t.globeCenterToScreenPoint(n.transform);o.y+=i*n.transform.height;const s=e.sub(o),a=t.radToDeg(Math.atan2(s.y,s.x));r=(a>90?a-270:a+90)*(1-i)}return r+=this._rotation,r?`rotateZ(${r}deg)`:""}_update(e){t.window.cancelAnimationFrame(this._updateFrameId);const n=this._map;
vendor: 12,542 bytes, line 27
27n&&(n.transform.renderWorldCopies&&(this._lngLat=to(this._lngLat,this._pos,n.transform)),this._pos=n.project(this._lngLat),!0===e?this._updateFrameId=t.window.requestAnimationFrame(()=>{this._element&&this._pos&&this._anchor&&(this._pos=this._pos.round(),this._updateDOM())}):this._pos=this._pos.round(),n._requestDomTask(()=>{this._map&&(this._element&&this._pos&&this._anchor&&this._updateDOM(),(n._showingGlobe()||n.getTerrain()||n.getFog())&&!this._fadeTimer&&(this._fadeTimer=setTimeout(this._evaluateOpacity.bind(this),60)))}))}getOffset(){return this._offset}setOffset(e){return this._offset=t.Point.convert(e),this._update(),this}_onMove(e){const n=this._map;if(!n)return;const r=this._pointerdownPos,i=this._positionDelta;if(r&&i){if(!this._isDragging){const t=this._clickTolerance||n._clickTolerance;if(e.point.dist(r)<t)return;this._isDragging=!0}this._pos=e.point.sub(i),this._lngLat=n.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none","pending"===this._state&&(this._state="active",this.fire(new t.Event("dragstart"))),this.fire(new t.Event("drag"))}}_onUp(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1;const e=this._map;e&&(e.off("mousemove",this._onMove),e.off("touchmove",this._onMove)),"active"===this._state&&this.fire(new t.Event("dragend")),this._state="inactive"}_addDragHandler(t){const e=this._map,n=this._pos;e&&n&&this._element.contains(t.originalEvent.target)&&(t.preventDefault(),this._positionDelta=t.point.sub(n),this._pointerdownPos=t.point,this._state="pending",e.on("mousemove",this._onMove),e.on("touchmove",this._onMove),e.once("mouseup",this._onUp),e.once("touchend",this._onUp))}setDraggable(t){this._draggable=!!t;const e=this._map;return e&&(t?(e.on("mousedown",this._addDragHandler),e.on("touchstart",this._addDragHandler)):(e.off("mousedown",this._addDragHandler),e.off("touchstart",this._addDragHandler))),this}isDraggable(){return this._draggable}setRotation(t){return this._rotation=t||0,this._update(),this}getRotation(){return this._rotation}setRotationAlignment(t){return this._rotationAlignment=t||"auto",this._update(),this}getRotationAlignment(){return"auto"===this._rotationAlignment||"horizon"===this._rotationAlignment&&this._map&&!this._map._showingGlobe()?"viewport":this._rotationAlignment}setPitchAlignment(t){return this._pitchAlignment=t||"auto",this._update(),this}getPitchAlignment(){return"auto"===this._pitchAlignment?this.getRotationAlignment():this._pitchAlignment}setOccludedOpacity(t){return this._occludedOpacity=t||.2,this._update(),this}getOccludedOpacity(){return this._occludedOpacity}}const ro={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},io=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", ");function oo(e=new t.Point(0,0),n="bottom"){if("number"==typeof e){const r=Math.round(Math.sqrt(.5*Math.pow(e,2)));switch(n){case"top":return new t.Point(0,e);case"top-left":return new t.Point(r,r);case"top-right":return new t.Point(-r,r);case"bottom":return new t.Point(0,-e);case"bottom-left":return new t.Point(r,-r);case"bottom-right":return new t.Point(-r,-r);case"left":return new t.Point(e,0);case"right":return new t.Point(-e,0)}return new t.Point(0,0)}return e instanceof t.Point||Array.isArray(e)?t.Point.convert(e):t.Point.convert(e[n]||[0,0])}class so{constructor(t){this.jumpTo(t)}getValue(e){if(e<=this._startTime)return this._start;if(e>=this._endTime)return this._end;const n=t.easeCubicInOut((e-this._startTime)/(this._endTime-this._startTime));return this._start*(1-n)+this._end*n}isEasing(t){return t>=this._startTime&&t<=this._endTime}jumpTo(t){this._startTime=-1/0,this._endTime=-1/0,this._start=t,this._end=t}easeTo(t,e,n){this._start=this.getValue(e),this._end=t,this._startTime=e,this._endTime=e+n}}const ao={"AttributionControl.ToggleAttribution":"Toggle attribution","AttributionControl.MapFeedback":"Map feedback","FullscreenControl.Enter":"Enter fullscreen","FullscreenControl.Exit":"Exit fullscreen","GeolocateControl.FindMyLocation":"Find my location","GeolocateControl.LocationNotAvailable":"Location not available","LogoControl.Title":"Mapbox logo","Map.Title":"Map","NavigationControl.ResetBearing":"Reset bearing to north","NavigationControl.ZoomIn":"Zoom in","NavigationControl.ZoomOut":"Zoom out","ScrollZoomBlocker.CtrlMessage":"Use ctrl + scroll to zoom the map","ScrollZoomBlocker.CmdMessage":"Use â + scroll to zoom the map","TouchPanBlocker.Message":"Use two fingers to move the map"},co={center:[0,0],zoom:0,bearing:0,pitch:0,minZoom:-2,maxZoom:22,minPitch:0,maxPitch:85,interactive:!0,scrollZoom:!0,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,cooperativeGestures:!1,performanceMetricsCollection:!0,bearingSnap:7,clickTolerance:3,pitchWithRotate:!0,hash:!1,attributionControl:!0,failIfMajorPerformanceCaveat:!1,preserveDrawingBuffer:!1,trackResize:!0,optimizeForTerrain:!0,renderWorldCopies:!0,refreshExpiredTiles:!0,minTileCacheSize:null,maxTileCacheSize:null,localIdeographFontFamily:"sans-serif",localFontFamily:null,transformRequest:null,accessToken:null,fadeDuration:300,respectPrefersReducedMotion:!0,crossSourceCollisions:!0},lo={showCompass:!0,showZoom:!0,visualizePitch:!1};class uo{constructor(e,n,r=!1){this._clickTolerance=10,this.element=n,this.mouseRotate=new wi({clickTolerance:e.dragRotate._mouseRotate._clickTolerance}),this.map=e,r&&(this.mousePitch=new Ei({clickTolerance:e.dragRotate._mousePitch._clickTolerance})),t.bindAll(["mousedown","mousemove","mouseup","touchstart","touchmove","touchend","reset"],this),n.addEventListener("mousedown",this.mousedown),n.addEventListener("touchstart",this.touchstart,{passive:!1}),n.addEventListener("touchmove",this.touchmove),n.addEventListener("touchend",this.touchend),n.addEventListener("touchcancel",this.reset)}down(t,e){this.mouseRotate.mousedown(t,e),this.mousePitch&&this.mousePitch.mousedown(t,e),u()}move(t,e){const n=this.map,r=this.mouseRotate.mousemoveWindow(t,e),i=r&&r.bearingDelta;if(i&&n.setBearing(n.getBearing()+i),this.mousePitch){const r=this.mousePitch.mousemoveWindow(t,e),i=r&&r.pitchDelta;i&&n.setPitch(n.getPitch()+i)}}off(){const t=this.element;t.removeEventListener("mousedown",this.mousedown),t.removeEventListener("touchstart",this.touchstart,{passive:!1}),t.removeEventListener("touchmove",this.touchmove),t.removeEventListener("touchend",this.touchend),t.removeEventListener("touchcancel",this.reset),this.offTemp()}offTemp(){h(),t.window.removeEventListener("mousemove",this.mousemove),t.window.removeEventListener("mouseup",this.mouseup)}mousedown(e){this.down(t.extend({},e,{ctrlKey:!0,preventDefault:()=>e.preventDefault()}),p(this.element,e)),t.window.addEventListener("mousemove",this.mousemove),t.window.addEventListener("mouseup",this.mouseup)}mousemove(t){this.move(t,p(this.element,t))}mouseup(t){this.mouseRotate.mouseupWindow(t),this.mousePitch&&this.mousePitch.mouseupWindow(t),this.offTemp()}touchstart(t){1!==t.targetTouches.length?this.reset():(this._startPos=this._lastPos=g(this.element,t.targetTouches)[0],this.down({type:"mousedown",button:0,ctrlKey:!0,preventDefault:()=>t.preventDefault()},this._startPos))}touchmove(t){1!==t.targetTouches.length?this.reset():(this._lastPos=g(this.element,t.targetTouches)[0],this.move({preventDefault:()=>t.preventDefault()},this._lastPos))}touchend(t){0===t.targetTouches.length&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos)<this._clickTolerance&&this.element.click(),this.reset()}reset(){this.mouseRotate.reset(),this.mousePitch&&this.mousePitch.reset(),delete this._startPos,delete this._lastPos,this.offTemp()}}const ho={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0,showUserHeading:!1},fo={maxWidth:100,unit:"metric"},po={kilometer:"km",meter:"m",mile:"mi",foot:"ft","nautical-mile":"nm"},go={version:t.version,supported:n,setRTLTextPlugin:t.setRTLTextPlugin,getRTLTextPluginStatus:t.getRTLTextPluginStatus,Map:class extends qi{constructor(e){if(t.LivePerformanceUtils.mark(t.PerformanceMarkers.create),null!=(e=t.extend({},co,e)).minZoom&&null!=e.maxZoom&&e.minZoom>e.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(null!=e.minPitch&&null!=e.maxPitch&&e.minPitch>e.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(null!=e.minPitch&&e.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(null!=e.maxPitch&&e.maxPitch>85)throw new Error("maxPitch must be less than or equal to 85");if(e.antialias&&t.isSafariWithAntialiasingBug(t.window)&&(e.antialias=!1,t.warnOnce("Antialiasing is disabled for this WebGL context to avoid browser bug: https://github.com/mapbox/mapbox-gl-js/issues/11609")),super(new Kr(e.minZoom,e.maxZoom,e.minPitch,e.maxPitch,e.renderWorldCopies),e),this._interactive=e.interactive,this._minTileCacheSize=e.minTileCacheSize,this._maxTileCacheSize=e.maxTileCacheSize,this._failIfMajorPerformanceCaveat=e.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=e.preserveDrawingBuffer,this._antialias=e.antialias,this._useWebGL2=e.useWebGL2,this._trackResize=e.trackResize,this._bearingSnap=e.bearingSnap,this._refreshExpiredTiles=e.refreshExpiredTiles,this._fadeDuration=e.fadeDuration,this._isInitialLoad=!0,this._crossSourceCollisions=e.crossSourceCollisions,this._collectResourceTiming=e.collectResourceTiming,this._optimizeForTerrain=e.optimizeForTerrain,this._language=this._parseLanguage(e.language),this._worldview=e.worldview,this._renderTaskQueue=new $i,this._domRenderTaskQueue=new $i,this._controls=[],this._markers=[],this._popups=[],this._mapId=t.uniqueId(),this._locale=t.extend({},ao,e.locale),this._clickTolerance=e.clickTolerance,this._cooperativeGestures=e.cooperativeGestures,this._performanceMetricsCollection=e.performanceMetricsCollection,this._containerWidth=0,this._containerHeight=0,this._averageElevationLastSampledAt=-1/0,this._averageElevationExaggeration=0,this._averageElevation=new so(0),this._interactionRange=[1/0,-1/0],this._visibilityHidden=0,this._useExplicitProjection=!1,this._requestManager=new t.RequestManager(e.transformRequest,e.accessToken,e.testMode),this._silenceAuthErrors=!!e.testMode,"string"==typeof e.container){if(this._container=t.window.document.getElementById(e.container),!this._container)throw new Error(`Container '${e.container}' not found.`)}else{if(!(e.container instanceof t.window.HTMLElement))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=e.container}if(this._container.childNodes.length>0&&t.warnOnce("The map container element should be empty, otherwise the map's interactivity will be negatively impacted. If you want to display a message when WebGL is not supported, use the Mapbox GL Supported plugin instead."),e.maxBounds&&this.setMaxBounds(e.maxBounds),t.bindAll(["_onWindowOnline","_onWindowResize","_onVisibilityChange","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),void 0===this.painter)throw new Error("Failed to initialize WebGL.");this.on("move",()=>this._update(!1)),this.on("moveend",()=>this._update(!1)),this.on("zoom",()=>this._update(!0)),void 0!==t.window&&(t.window.addEventListener("online",this._onWindowOnline,!1),t.window.addEventListener("resize",this._onWindowResize,!1),t.window.addEventListener("orientationchange",this._onWindowResize,!1),t.window.addEventListener("webkitfullscreenchange",this._onWindowResize,!1),t.window.addEventListener("visibilitychange",this._onVisibilityChange,!1)),this.handlers=new Xi(this,e),this._localFontFamily=e.localFontFamily,this._localIdeographFontFamily=e.localIdeographFontFamily,e.style&&this.setStyle(e.style,{localFontFamily:this._localFontFamily,localIdeographFontFamily:this._localIdeographFontFamily}),e.projection&&this.setProjection(e.projection),this._hash=e.hash&&new $r("string"==typeof e.hash&&e.hash||void 0).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:e.center,zoom:e.zoom,bearing:e.bearing,pitch:e.pitch}),e.bounds&&(this.resize(),this.fitBounds(e.bounds,t.extend({},e.fitBoundsOptions,{duration:0})))),this.resize(),e.attributionControl&&this.addControl(new Ki({customAttribution:e.customAttribution}
vendor: 5,118 bytes, line 27
27)),this._logoControl=new Ji,this.addControl(this._logoControl,e.logoPosition),this.on("style.load",()=>{this.transform.unmodified&&this.jumpTo(this.style.stylesheet)}),this.on("data",e=>{this._update("style"===e.dataType),this.fire(new t.Event(e.dataType+"data",e))}),this.on("dataloading",e=>{this.fire(new t.Event(e.dataType+"dataloading",e))})}_getMapId(){return this._mapId}addControl(e,n){if(void 0===n&&(n=e.getDefaultPosition?e.getDefaultPosition():"top-right"),!e||!e.onAdd)return this.fire(new t.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));const r=e.onAdd(this);this._controls.push(e);const i=this._controlPositions[n];return-1!==n.indexOf("bottom")?i.insertBefore(r,i.firstChild):i.appendChild(r),this}removeControl(e){if(!e||!e.onRemove)return this.fire(new t.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));const n=this._controls.indexOf(e);return n>-1&&this._controls.splice(n,1),e.onRemove(this),this}hasControl(t){return this._controls.indexOf(t)>-1}getContainer(){return this._container}getCanvasContainer(){return this._canvasContainer}getCanvas(){return this._canvas}resize(e){if(this._updateContainerDimensions(),this._containerWidth===this.transform.width&&this._containerHeight===this.transform.height)return this;this._resizeCanvas(this._containerWidth,this._containerHeight),this.transform.resize(this._containerWidth,this._containerHeight),this.painter.resize(Math.ceil(this._containerWidth),Math.ceil(this._containerHeight));const n=!this._moving;return n&&this.fire(new t.Event("movestart",e)).fire(new t.Event("move",e)),this.fire(new t.Event("resize",e)),n&&this.fire(new t.Event("moveend",e)),this}getBounds(){return this.transform.getBounds()}getMaxBounds(){return this.transform.getMaxBounds()||null}setMaxBounds(e){return this.transform.setMaxBounds(t.LngLatBounds.convert(e)),this._update()}setMinZoom(e){if((e=null==e?-2:e)>=-2&&e<=this.transform.maxZoom)return this.transform.minZoom=e,this._update(),this.getZoom()<e?this.setZoom(e):this.fire(new t.Event("zoomstart")).fire(new t.Event("zoom")).fire(new t.Event("zoomend")),this;throw new Error("minZoom must be between -2 and the current maxZoom, inclusive")}getMinZoom(){return this.transform.minZoom}setMaxZoom(e){if((e=null==e?22:e)>=this.transform.minZoom)return this.transform.maxZoom=e,this._update(),this.getZoom()>e?this.setZoom(e):this.fire(new t.Event("zoomstart")).fire(new t.Event("zoom")).fire(new t.Event("zoomend")),this;throw new Error("maxZoom must be greater than the current minZoom")}getMaxZoom(){return this.transform.maxZoom}setMinPitch(e){if((e=null==e?0:e)<0)throw new Error("minPitch must be greater than or equal to 0");if(e>=0&&e<=this.transform.maxPitch)return this.transform.minPitch=e,this._update(),this.getPitch()<e?this.setPitch(e):this.fire(new t.Event("pitchstart")).fire(new t.Event("pitch")).fire(new t.Event("pitchend")),this;throw new Error("minPitch must be between 0 and the current maxPitch, inclusive")}getMinPitch(){return this.transform.minPitch}setMaxPitch(e){if((e=null==e?85:e)>85)throw new Error("maxPitch must be less than or equal to 85");if(e>=this.transform.minPitch)return this.transform.maxPitch=e,this._update(),this.getPitch()>e?this.setPitch(e):this.fire(new t.Event("pitchstart")).fire(new t.Event("pitch")).fire(new t.Event("pitchend")),this;throw new Error("maxPitch must be greater than or equal to minPitch")}getMaxPitch(){return this.transform.maxPitch}getRenderWorldCopies(){return this.transform.renderWorldCopies}setRenderWorldCopies(t){return this.transform.renderWorldCopies=t,this.transform.renderWorldCopies||this._forceMarkerAndPopupUpdate(!0),this._update()}getLanguage(){return this._language}_parseLanguage(e){return"auto"===e?t.window.navigator.language:Array.isArray(e)?0===e.length?void 0:e.map(e=>"auto"===e?t.window.navigator.language:e):e}setLanguage(t){const e=this._parseLanguage(t);if(!this.style||e===this._language)return this;this._language=e,this.style._reloadSources();for(const t of this._controls)t._setLanguage&&t._setLanguage(this._language);return this}getWorldview(){return this._worldview}setWorldview(t){return this.style&&t!==this._worldview?(this._worldview=t,this.style._reloadSources(),this):this}getProjection(){return this.transform.mercatorFromTransition?{name:"globe",center:[0,0]}:this.transform.getProjection()}_showingGlobe(){return"globe"===this.transform.projection.name}setProjection(t){return this._lazyInitEmptyStyle(),t?"string"==typeof t&&(t={name:t}):t=null,this._useExplicitProjection=!!t,this._prioritizeAndUpdateProjection(t,this.style.stylesheet?this.style.stylesheet.projection:null)}_updateProjectionTransition(){if("globe"!==this.getProjection().name)return;const e=this.transform,n=e.projection.name;let r;"globe"===n&&e.zoom>=t.GLOBE_ZOOM_THRESHOLD_MAX?(e.setMercatorFromTransition(),r=!0):"mercator"===n&&e.zoom<t.GLOBE_ZOOM_THRESHOLD_MAX&&(e.setProjection({name:"globe"}),r=!0),r&&(this.style.applyProjectionUpdate(),this.style._forceSymbolLayer
vendor: 10,330 bytes, line 27
27Update())}_prioritizeAndUpdateProjection(t,e){return this._updateProjection(t||e||{name:"mercator"})}_updateProjection(e){let n;if(n="globe"===e.name&&this.transform.zoom>=t.GLOBE_ZOOM_THRESHOLD_MAX?this.transform.setMercatorFromTransition():this.transform.setProjection(e),this.style.applyProjectionUpdate(),n){this.painter.clearBackgroundTiles();for(const t in this.style._sourceCaches)this.style._sourceCaches[t].clearTiles();this._update(!0),this._forceMarkerAndPopupUpdate(!0)}return this}project(e){return this.transform.locationPoint3D(t.LngLat.convert(e))}unproject(e){return this.transform.pointLocation3D(t.Point.convert(e))}isMoving(){return this._moving||this.handlers&&this.handlers.isMoving()||!1}isZooming(){return this._zooming||this.handlers&&this.handlers.isZooming()||!1}isRotating(){return this._rotating||this.handlers&&this.handlers.isRotating()||!1}_isDragging(){return this.handlers&&this.handlers._isDragging()||!1}_createDelegatedListener(t,e,n){if("mouseenter"===t||"mouseover"===t){let r=!1;const i=i=>{const o=e.filter(t=>this.getLayer(t)),s=o.length?this.queryRenderedFeatures(i.point,{layers:o}):[];s.length?r||(r=!0,n.call(this,new li(t,this,i.originalEvent,{features:s}))):r=!1},o=()=>{r=!1};return{layers:new Set(e),listener:n,delegates:{mousemove:i,mouseout:o}}}if("mouseleave"===t||"mouseout"===t){let r=!1;const i=i=>{const o=e.filter(t=>this.getLayer(t));(o.length?this.queryRenderedFeatures(i.point,{layers:o}):[]).length?r=!0:r&&(r=!1,n.call(this,new li(t,this,i.originalEvent)))},o=e=>{r&&(r=!1,n.call(this,new li(t,this,e.originalEvent)))};return{layers:new Set(e),listener:n,delegates:{mousemove:i,mouseout:o}}}{const r=t=>{const r=e.filter(t=>this.getLayer(t)),i=r.length?this.queryRenderedFeatures(t.point,{layers:r}):[];i.length&&(t.features=i,n.call(this,t),delete t.features)};return{layers:new Set(e),listener:n,delegates:{[t]:r}}}}on(t,e,n){if(void 0===n)return super.on(t,e);Array.isArray(e)||(e=[e]);const r=this._createDelegatedListener(t,e,n);this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[t]=this._delegatedListeners[t]||[],this._delegatedListeners[t].push(r);for(const t in r.delegates)this.on(t,r.delegates[t]);return this}once(t,e,n){if(void 0===n)return super.once(t,e);Array.isArray(e)||(e=[e]);const r=this._createDelegatedListener(t,e,n);for(const t in r.delegates)this.once(t,r.delegates[t]);return this}off(t,e,n){if(void 0===n)return super.off(t,e);e=new Set(Array.isArray(e)?e:[e]);const r=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0},i=this._delegatedListeners?this._delegatedListeners[t]:void 0;return i&&(t=>{for(let i=0;i<t.length;i++){const o=t[i];if(o.listener===n&&r(o.layers,e)){for(const t in o.delegates)this.off(t,o.delegates[t]);return t.splice(i,1),this}}})(i),this}queryRenderedFeatures(e,n){return this.style?(void 0!==n||void 0===e||e instanceof t.Point||Array.isArray(e)||(n=e,e=void 0),this.style.queryRenderedFeatures(e=e||[[0,0],[this.transform.width,this.transform.height]],n=n||{},this.transform)):[]}querySourceFeatures(t,e){return this.style.querySourceFeatures(t,e)}isPointOnSurface(e){const{name:n}=this.transform.projection;return"globe"!==n&&"mercator"!==n&&t.warnOnce(n+" projection does not support isPointOnSurface, this API may behave unexpectedly."),this.transform.isPointOnSurface(t.Point.convert(e))}setStyle(e,n){return!1!==(n=t.extend({},{localIdeographFontFamily:this._localIdeographFontFamily,localFontFamily:this._localFontFamily},n)).diff&&n.localIdeographFontFamily===this._localIdeographFontFamily&&n.localFontFamily===this._localFontFamily&&this.style&&e?(this._diffStyle(e,n),this):(this._localIdeographFontFamily=n.localIdeographFontFamily,this._localFontFamily=n.localFontFamily,this._updateStyle(e,n))}_getUIString(t){const e=this._locale[t];if(null==e)throw new Error(`Missing UI string '${t}'`);return e}_updateStyle(t,e){return this.style&&(this.style.setEventedParent(null),this.style._remove(),this.style=void 0),t&&(this.style=new $e(this,e||{}),this.style.setEventedParent(this,{style:this.style}),"string"==typeof t?this.style.loadURL(t):this.style.loadJSON(t)),this._updateTerrain(),this}_lazyInitEmptyStyle(){this.style||(this.style=new $e(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty())}_diffStyle(e,n){if("string"==typeof e){const r=this._requestManager.normalizeStyleURL(e),i=this._requestManager.transformRequest(r,t.ResourceType.Style);t.getJSON(i,(e,r)=>{e?this.fire(new t.ErrorEvent(e)):r&&this._updateDiff(r,n)})}else"object"==typeof e&&this._updateDiff(e,n)}_updateDiff(e,n){try{this.style.setState(e)&&this._update(!0)}catch(r){t.warnOnce(`Unable to perform style diff: ${r.message||r.error||r}. Rebuilding the style from scratch.`),this._updateStyle(e,n)}}getStyle(){if(this.style)return this.style.serialize()}isStyleLoaded(){return this.style?this.style.loaded():(t.warnOnce("There is no style added to the map."),!1)}addSource(t,e){return this._lazyInitEmptyStyle(),this.style.addSource(t,e),this._update(!0)}isSourceLoaded(t){return!!this.style&&this.style._isSourceCacheLoaded(t)}areTilesLoaded(){const t=this.style&&this.style._sourceCaches;for(const e in t){const n=t[e]._tiles;for(const t in n){const e=n[t];if("loaded"!==e.state&&"errored"!==e.state)return!1}}return!0}addSourceType(t,e,n){this._lazyInitEmptyStyle(),this.style.addSourceType(t,e,n)}removeSource(t){return this.style.removeSource(t),this._updateTerrain(),this._update(!0)}getSource(t){return this.style.getSource(t)}addImage(e,n,{pixelRatio:r=1,sdf:i=!1,stretchX:o,stretchY:s,content:a}={}){if(this._lazyInitEmptyStyle(),n instanceof t.window.HTMLImageElement||t.window.ImageBitmap&&n instanceof t.window.ImageBitmap){const{width:c,height:l,data:u}=t.exported.getImageData(n);this.style.addImage(e,{data:new t.RGBAImage({width:c,height:l},u),pixelRatio:r,stretchX:o,stretchY:s,content:a,sdf:i,version:0})}else if(void 0===n.width||void 0===n.height)this.fire(new t.ErrorEvent(new Error("Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));else{const{width:c,height:l}=n,u=n;this.style.addImage(e,{data:new t.RGBAImage({width:c,height:l},new Uint8Array(u.data)),pixelRatio:r,stretchX:o,stretchY:s,content:a,sdf:i,version:0,userImage:u}),u.onAdd&&u.onAdd(this,e)}}updateImage(e,n){const r=this.style.getImage(e);if(!r)return void this.fire(new t.ErrorEvent(new Error("The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.")));const i=n instanceof t.window.HTMLImageElement||t.window.ImageBitmap&&n instanceof t.window.ImageBitmap?t.exported.getImageData(n):n,{width:o,height:s}=i;void 0!==o&&void 0!==s?o===r.data.width&&s===r.data.height?(r.data.replace(i.data,!(n instanceof t.window.HTMLImageElement||t.window.ImageBitmap&&n instanceof t.window.ImageBitmap)),this.style.updateImage(e,r)):this.fire(new t.ErrorEvent(new Error(`The width and height of the updated image (${o}, ${s})\n must be that same as the previous version of the image\n (${r.data.width}, ${r.data.height})`))):this.fire(new t.ErrorEvent(new Error("Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")))}hasImage(e){return e?!!this.style.getImage(e):(this.fire(new t.ErrorEvent(new Error("Missing required image id"))),!1)}removeImage(t){this.style.removeImage(t)}loadImage(e,n){t.getImage(this._requestManager.transformRequest(e,t.ResourceType.Image),(e,r)=>{n(e,r instanceof t.window.HTMLImageElement?t.exported.getImageData(r):r)})}listImages(){return this.style.listImages()}addLayer(t,e){return this._lazyInitEmptyStyle(),this.style.addLayer(t,e),this._update(!0)}moveLayer(t,e){return this.style.moveLayer(t,e),this._update(!0)}removeLayer(t){return this.style.removeLayer(t),this._update(!0)}getLayer(t){return this.style.getLayer(t)}setLayerZoomRange(t,e,n){return this.style.setLayerZoomRange(t,e,n),this._update(!0)}setFilter(t,e,n={}){return this.style.setFilter(t,e,n),this._update(!0)}getFilter(t){return this.style.getFilter(t)}setPaintProperty(t,e,n,r={}){return this.style.setPaintProperty(t,e,n,r),this._update(!0)}getPaintProperty(t,e){return this.style.getPaintProperty(t,e)}setLayoutProperty(t,e,n,r={}){return this.style.setLayoutProperty(t,e,n,r),this._update(!0)}getLayoutProperty(t,e){return this.style.getLayoutProperty(t,e)}setLight(t,e={}){return this._lazyInitEmptyStyle(),this.style.setLight(t,e),this._update(!0)}getLight(){return this.style.getLight()}setTerrain(t){return this._lazyInitEmptyStyle(),!t&&this.transform.projection.requiresDraping?this.style.setTerrainForDraping():this.style.setTerrain(t),this._averageElevationLastSampledAt=-1/0,this._update(!0)}getTerrain(){return this.style?this.style.getTerrain():null}setFog(t){return this._lazyInitEmptyStyle(),this.style.setFog(t),this._update(!0)}getFog(){return this.style?this.style.getFog():null}_queryFogOpacity(e){return this.style&&this.style.fog?this.style.fog.getOpacityAtLatLng(t.LngLat.convert(e),this.transform):0}setFeatureState(t,e){return this.style.setFeatureState(t,e),this._update()}removeFeatureState(t,e){return this.style.removeFeatureState(t,e),this._update()}getFeatureState(t){return this.style.getFeatureState(t)}_updateContainerDimensions(){if(!this._container)return;const e=this._container.getBoundingClientRect().width||400,n=this._container.getBoundingClientRect().height||300;let r,i,o,s=this._container;for(;s&&(!i||!o);){const e=t.window.getComputedStyle(s).transform;e&&"none"!==e&&(r=e.match(/matrix.*\((.+)\)/)[1].split(", "),r[0]&&"0"!==r[0]&&"1"!==r[0]&&(i=r[0]),r[3]&&"0"!==r[3]&&"1"!==r[3]&&(o=r[3])),s=s.parentElement}this._containerWidth=i?Math.abs(e/i):e,this._containerHeight=o?Math.abs(n/o):n}_detectMissingCSS(){"rgb(250, 128, 114)"!==t.window.getComputedStyle(this._missingCSSCanary).getPropertyValue("background-color")&&t.warnOnce("This page appears to be missing CSS declarations for Mapbox GL JS, which may cause the map to display incorrectly. Please ensure your page includes mapbox-gl.css, as described
27in https://www.mapbox.com/mapbox-gl-js/api/.")}_setupContainer(){const t=this._container;t.classList.add("mapboxgl-map"),(this._missingCSSCanary=o("div","mapboxgl-canary",t)).style.visibility="hidden",this._detectMissingCSS();const e=this._canvasContainer=o("div","mapboxgl-canvas-container",t);this._interactive&&e.classList.add("mapboxgl-interactive"),this._canvas=o("canvas","mapboxgl-canvas",e),this._canvas.addEventListener("webglcontextlost",this._contextLost,!1),this._canvas.addEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.setAttribute("tabindex","0"),this._canvas.setAttribute("aria-label",this._getUIString("Map.Title")),this._canvas.setAttribute("role","region"),this._updateContainerDimensions(),this._resizeCanvas(this._containerWidth,this._containerHeight);const n=this._controlContainer=o("div","mapboxgl-control-container",t),r=this._controlPositions={};["top-left","top-right","bottom-left","bottom-right"].forEach(t=>{r[t]=o("div","mapboxgl-ctrl-"+t,n)}),this._container.addEventListener("scroll",this._onMapScroll,!1)}_resizeCanvas(e,n){const r=t.exported.devicePixelRatio||1;this._canvas.width=r*Math.ceil(e),this._canvas.height=r*Math.ceil(n),this._canvas.style.width=e+"px",this._canvas.style.height=n+"px"}_addMarker(t){this._markers.push(t)}_removeMarker(t){const e=this._markers.indexOf(t);-1!==e&&this._markers.splice(e,1)}_addPopup(t){this._popups.push(t)}_removePopup(t){const e=this._popups.indexOf(t);-1!==e&&this._popups.splice(e,1)}_setupPainter(){const e=t.extend({},n.webGLContextAttributes,{failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1}),r=this._useWebGL2&&this._canvas.getContext("webgl2",e),i=r||this._canvas.getContext("webgl",e)||this._canvas.getContext("experimental-webgl",e);i?(this._useWebGL2&&!r&&t.warnOnce("Failed to create WebGL 2 context. Using WebGL 1."),t.storeAuthState(i,!0),this.painter=new Rr(i,this.transform,!!r),this.on("data",t=>{"source"===t.dataType&&this.painter.setTileLoadedFlag(!0)}),t.exported$1.testSupport(i)):this.fire(new t.ErrorEvent(new Error("Failed to initialize WebGL")))}_contextLost(e){e.preventDefault(),this._frame&&(this._frame.cancel(),this._frame=null),this.fire(new t.Event("webglcontextlost",{originalEvent:e}))}_contextRestored(e){this._setupPainter(),this.resize(),this._update(),this.fire(new t.Event("webglcontextrestored",{originalEvent:e}))}_onMapScroll(t){if(t.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1}loaded(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()}_update(t){return this.style?(this._styleDirty=this._styleDirty||t,this._sourcesDirty=!0,this.triggerRepaint(),this):this}_requestRenderFrame(t){return this._update(),this._renderTaskQueue.add(t)}_cancelRenderFrame(t){this._renderTaskQueue.remove(t)}_requestDomTask(t){!this.loaded()||this.loaded()&&!this.isMoving()?t():this._domRenderTaskQueue.add(t)}_render(e){let n;const r=this.painter.context.extTimerQuery,i=t.exported.now();if(this.listens("gpu-timing-frame")&&(n=r.createQueryEXT(),r.beginQueryEXT(r.TIME_ELAPSED_EXT,n)),this.painter.context.setDirty(),this.painter.setBaseState(),(this.isMoving()||this.isRotating()||this.isZooming())&&(this._interactionRange[0]=Math.min(this._interactionRange[0],t.window.performance.now()),this._interactionRange[1]=Math.max(this._interactionRange[1],t.window.performance.now())),this._renderTaskQueue.run(e),this._domRenderTaskQueue.run(e),this._removed)return;this._updateProjectionTransition();const o=this._isInitialLoad?0:this._fadeDuration;if(this.style&&this._styleDirty){this._styleDirty=!1;const e=this.transform.zoom,n=this.transform.pitch,r=t.exported.now(),i=new t.EvaluationParameters(e,{now:r,fadeDuration:o,pitch:n,transition:this.style.getTransition()});this.style.update(i)}this.style&&this.style.fog&&this.style.fog.hasTransition()&&(this.style._markersNeedUpdate=!0,this._sourcesDirty=!0);let s=!1;if(this.style&&this._sourcesDirty?(this._sourcesDirty=!1,this.painter._updateFog(this.style),this._updateTerrain(),s=this._updateAverageElevation(i),this.style._updateSources(this.transform),this._forceMar
27kerAndPopupUpdate()):s=this._updateAverageElevation(i),this._placementDirty=this.style&&this.style._updatePlacement(this.painter.transform,this.showCollisionBoxes,o,this._crossSourceCollisions),this.style&&this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showTerrainWireframe:this.showTerrainWireframe,showOverdrawInspector:this._showOverdrawInspector,showQueryGeometry:!!this._showQueryGeometry,showTileAABBs:this.showTileAABBs,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:o,isInitialLoad:this._isInitialLoad,showPadding:this.showPadding,gpuTiming:!!this.listens("gpu-timing-layer"),gpuTimingDeferredRender:!!this.listens("gpu-timing-deferred-render"),speedIndexTiming:this.speedIndexTiming}),this.fire(new t.Event("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,this.fire(new t.Event("load"))),this.style&&this.style.hasTransitions()&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles(),n){const e=t.exported.now()-i;r.endQueryEXT(r.TIME_ELAPSED_EXT,n),setTimeout(()=>{const o=r.getQueryObjectEXT(n,r.QUERY_RESULT_EXT)/1e6;r.deleteQueryEXT(n),this.fire(new t.Event("gpu-timing-frame",{cpuTime:e,gpuTime:o})),t.window.performance.mark("frame-gpu",{startTime:i,detail:{gpuTime:o}})},50)}if(this.listens("gpu-timing-layer")){const e=this.painter.collectGpuTimers();setTimeout(()=>{const n=this.painter.queryGpuTimers(e);this.fire(new t.Event("gpu-timing-layer",{layerTimes:n}))},50)}if(this.listens("gpu-timing-deferred-render")){const e=this.painter.collectDeferredRenderGpuQueries();setTimeout(()=>{const n=this.painter.queryGpuTimeDeferredRender(e);this.fire(new t.Event("gpu-timing-deferred-render",{gpuTime:n}))},50)}const a=this._sourcesDirty||this._styleDirty||this._placementDirty||s;if(a||this._repaint)this.triggerRepaint();else{const e=!this.isMoving()&&this.loaded();if(e&&(s=this._updateAverageElevation(i,!0)),s)this.triggerRepaint();else if(this._triggerFrame(!1),e&&(this.fire(new t.Event("idle")),this._isInitialLoad=!1,this.speedIndexTiming)){const e=this._calculateSpeedIndex();this.fire(new t.Event("speedindexcompleted",{speedIndex:e})),this.speedIndexTiming=!1}}!this._loaded||this._fullyLoaded||a||(this._fullyLoaded=!0,t.LivePerformanceUtils.mark(t.PerformanceMarkers.fullLoad),this._performanceMetricsCollection&&t.postPerformanceEvent(this._requestManager._customAccessToken,{width:this.painter.width,height:this.painter.height,interactionRange:this._interactionRange,visibilityHidden:this._visibilityHidden,terrainEnabled:!!this.painter.style.getTerrain(),fogEnabled:!!this.painter.style.getFog(),projection:this.getProjection().name,zoom:this.transform.zoom,renderer:this.painter.context.renderer,vendor:this.painter.context.vendor}),this._authenticate())}_forceMarkerAndPopupUpdate(t){for(const e of this._markers)t&&!this.getRenderWorldCopies()&&(e._lngLat=e._lngLat.wrap()),e._update();for(const e of this._popups)!t||this.getRenderWorldCopies()||e._trackPointer||(e._lngLat=e._lngLat.wrap()),e._update()}_updateAverageElevation(t,e=!1){const n=t=>(this.transform.averageElevation=t,this._update(!1),!0);if(!this.painter.averageElevationNeedsEasing())return 0!==this.transform.averageElevation&&n(0);if((e||t-this._averageElevationLastSampledAt>500)&&!this._averageElevation.isEasing(t)){const e=this.transform.averageElevation;let r=this.transform.sampleAverageElevation(),i=!1;this.transform.elevation&&(i=this.transform.elevation.exaggeration()!==this._averageElevationExaggeration,this._averageElevationExaggeration=this.transform.elevation.exaggeration()),isNaN(r)?r=0:this._averageElevationLastSampledAt=t;const o=Math.abs(e-r);if(o>1){if(this._isInitialLoad||i)return this._averageElevation.jumpTo(r),n(r);this._averageElevation.easeTo(r,t,300)}else if(o>1e-4)return this._averageElevation.jumpTo(r),n(r)}return!!this._averageElevation.isEasing(t)&&n(this._averageElevation.getValue(t))}_authenticate(){t.getMapSessionAPI(this._getMapId(),this._requestManager._skuToken,this._requestManager._customAccessToken,e=>{if(e&&(e.message===t.AUTH_ERR_MSG||401===e.status)){const e=this.painter.context.gl;t.storeAuthState(e,!1),this._logoControl instanceof Ji&&this._logoControl._updateLogo(),e&&e.clear(e.DEPTH_BUFFER_BIT|e.COLOR_BUFFER_BIT|e.STENCIL_BUFFER_BIT),this._silenceAuthErrors||this.fire(new t.ErrorEvent(new Error("A valid Mapbox access token is required to use Mapbox GL JS. To create an account or a new access token, visit https://account.mapbox.com/")))}}),t.postMapLoadEvent(this._getMapId(),this._requestManager._skuToken,this._requestManager._customAccessToken,()=>{})}_updateTerrain(){const t=this._isDragging();this.painter.updateTerrain(this.style,t)}_calculateSpeedIndex(){const t=this.painter.canvasCopy(),e=this.painter.getCanvasCopiesAndTimestamps();e.timeStamps.push(performance.now());const n=this.painter.context.gl,r=n.createFramebuffer();function i(t){n.framebufferTexture2D(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0,n.TEXTURE_2D,t,0);const e=new Uint8Array(n.drawingBufferWidth*n.drawingBufferHeight*4);return n.readPixels(0,0,n.drawingBufferWidth,n.drawingBufferHeight,n.RGBA,n.UNSIGNED_BYTE,e),e}return n.bindFramebuffer(n.FRAMEBUFFER,r),this._canvasPixelComparison(i(t),e.canvasCopies.map(i),e.t
27imeStamps)}_canvasPixelComparison(t,e,n){let r=n[1]-n[0];const i=t.length/4;for(let o=0;o<e.length;o++){const s=e[o];let a=0;for(let e=0;e<s.length;e+=4)s[e]===t[e]&&s[e+1]===t[e+1]&&s[e+2]===t[e+2]&&s[e+3]===t[e+3]&&(a+=1);r+=(n[o+2]-n[o+1])*(1-a/i)}return r}remove(){this._hash&&this._hash.remove();for(const t of this._controls)t.onRemove(this);this._controls=[],this._frame&&(this._frame.cancel(),this._frame=null),this._renderTaskQueue.clear(),this._domRenderTaskQueue.clear(),this.style&&this.style.destroy(),this.painter.destroy(),this.handlers&&this.handlers.destroy(),this.handlers=void 0,this.setStyle(null),void 0!==t.window&&(t.window.removeEventListener("resize",this._onWindowResize,!1),t.window.removeEventListener("orientationchange",this._onWindowResize,!1),t.window.removeEventListener("webkitfullscreenchange",this._onWindowResize,!1),t.window.removeEventListener("online",this._onWindowOnline,!1),t.window.removeEventListener("visibilitychange",this._onVisibilityChange,!1));const e=this.painter.context.gl.getExtension("WEBGL_lose_context");e&&e.loseContext(),this._canvas.removeEventListener("webglcontextlost",this._contextLost,!1),this._canvas.removeEventListener("webglcontextrestored",this._contextRestored,!1),this._canvasContainer.remove(),this._controlContainer.remove(),this._missingCSSCanary.remove(),this._canvas=void 0,this._canvasContainer=void 0,this._controlContainer=void 0,this._missingCSSCanary=void 0,this._container.classList.remove("mapboxgl-map"),this._container.removeEventListener("scroll",this._onMapScroll,!1),t.removeAuthState(this.painter.context.gl),this._removed=!0,this.fire(new t.Event("remove"))}triggerRepaint(){this._triggerFrame(!0)}_triggerFrame(e){this._renderNextFrame=this._renderNextFrame||e,this.style&&!this._frame&&(this._frame=t.exported.frame(t=>{const e=!!this._renderNextFrame;this._frame=null,this._renderNextFrame=null,e&&this._render(t)}))}_preloadTiles(e){const n=this.style?Object.values(this.style._sourceCaches):[];return t.asyncAll(n,(t,n)=>t._preloadTiles(e,n),()=>{this.triggerRepaint()}),this}_onWindowOnline(){this._update()}_onWindowResize(t){this._trackResize&&this.resize({originalEvent:t})._update()}_onVisibilityChange(){"hidden"===t.window.document.visibilityState&&this._visibilityHidden++}get showTileBoundaries(){return!!this._showTileBoundaries}set showTileBoundaries(t){this._showTileBoundaries!==t&&(this._showTileBoundaries=t,this._update())}get showTerrainWireframe(){return!!this._showTerrainWireframe}set showTerrainWireframe(t){this._showTerrainWireframe!==t&&(this._showTerrainWireframe=t,this._update())}get speedIndexTiming(){return!!this._speedIndexTiming}set speedIndexTiming(t){this._speedIndexTiming!==t&&(this._speedIndexTiming=t,this._update())}get showPadding(){return!!this._showPadding}set showPadding(t){this._showPadding!==t&&(this._showPadding=t,this._update())}get showCollisionBoxes(){return!!this._showCollisionBoxes}set showCollisionBoxes(t){this._showCollisionBoxes!==t&&(this._showCollisionBoxes=t,t?this.style._generateCollisionBoxes():this._update())}get showOverdrawInspector(){return!!this._showOverdrawInspector}set showOverdrawInspector(t){this._showOverdrawInspector!==t&&(this._showOverdrawInspector=t,this._update())}get repaint(){return!!this._repaint}set repaint(t){this._repaint!==t&&(this._repaint=t,this.triggerRepaint())}get vertices(){return!!this._vertices}set vertices(t){this._vertices=t,this._update()}get showTileAABBs(){return!!this._showTileAABBs}set showTileAABBs(t){this._showTileAABBs!==t&&(this._showTileAABBs=t,t&&this._update())}_setCacheLimits(e,n){t.setCacheLimits(e,n)}get version(){return t.version}},NavigationControl:class{constructor(e){this.options=t.extend({},lo,e),this._container=o("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._container.addEventListener("contextmenu",t=>t.preventDefault()),this.options.showZoom&&(t.bindAll(["_setButtonTitle","_updateZoomButtons"],this),this._zoomInButton=this._createButton("mapboxgl-ctrl-zoom-in",t=>{this._map&&this._map.zoomIn({},{originalEvent:t})}),o("span","mapboxgl-ctrl-icon",this._zoomInButton).setAttribute("aria-hidden","true"),this._zoomOutButton=this._createButton("mapboxgl-ctrl-zoom-out",t=>{this._map&&this._map.zoomOut({},{originalEvent:t})}),o("span","mapboxgl-ctrl-icon",this._zoomOutButton).setAttribute("aria-hidden","true")),this.options.showCompass&&(t.bindAll(["_rotateCompassArrow"],this),this._compass=this._createButton("mapboxgl-ctrl-compass",t=>{const e=this._map;e&&(this.options.visualizePitch?e.resetNorthPitch({},{originalEvent:t}):e.resetNorth({},{originalEvent:t}))}),this._compassIcon=o("span","mapboxgl-ctrl-icon",this._compass),this._compassIcon.setAttribute("aria-hidden","true"))}_updateZoomButtons(){const t=this._map;if(!t)return;const e=t.getZoom(),n=e===t.getMaxZoom(),r=e===t.getMinZoom();this._zoomInButton.disabled=n,this._zoomOutButton.disabled=r,this._zoomInButton.setAttribute("aria-disabled",n.toString()),this._zoomOutButton.setAttribute("aria-disabled",r.toString())}_rotateCompassArrow(){const t=this._map;if(!t)return;const e=this.options.visualizePitch?`scale(${1/Math.pow(Math.cos(t.transform.pitch*(Math.PI/180)
27),.5)}) rotateX(${t.transform.pitch}deg) rotateZ(${t.transform.angle*(180/Math.PI)}deg)`:`rotate(${t.transform.angle*(180/Math.PI)}deg)`;t._requestDomTask(()=>{this._compassIcon&&(this._compassIcon.style.transform=e)})}onAdd(t){return this._map=t,this.options.showZoom&&(this._setButtonTitle(this._zoomInButton,"ZoomIn"),this._setButtonTitle(this._zoomOutButton,"ZoomOut"),t.on("zoom",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this._setButtonTitle(this._compass,"ResetBearing"),this.options.visualizePitch&&t.on("pitch",this._rotateCompassArrow),t.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new uo(t,this._compass,this.options.visualizePitch)),this._container}onRemove(){const t=this._map;t&&(this._container.remove(),this.options.showZoom&&t.off("zoom",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&t.off("pitch",this._rotateCompassArrow),t.off("rotate",this._rotateCompassArrow),this._handler&&this._handler.off(),this._handler=void 0),this._map=void 0)}_createButton(t,e){const n=o("button",t,this._container);return n.type="button",n.addEventListener("click",e),n}_setButtonTitle(t,e){if(!this._map)return;const n=this._map._getUIString("NavigationControl."+e);t.setAttribute("aria-label",n),t.firstElementChild&&t.firstElementChild.setAttribute("title",n)}},GeolocateControl:class extends t.Evented{constructor(e){super(),this.options=t.extend({geolocation:t.window.navigator.geolocation},ho,e),t.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker","_updateMarkerRotation","_onDeviceOrientation"],this),this._updateMarkerRotationThrottled=Jr(this._updateMarkerRotation,20),this._numberOfWatches=0}onAdd(t){return this._map=t,this._container=o("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkGeolocationSupport(this._setupUI),this._container}onRemove(){void 0!==this._geolocationWatchID&&(this.options.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),this._container.remove(),this._map.off("zoom",this._onZoom),this._map=void 0,this._numberOfWatches=0,this._noTimeout=!1}_checkGeolocationSupport(e){const n=(t=!!this.options.geolocation)=>{this._supportsGeolocation=t,e(t)};void 0!==this._supportsGeolocation?e(this._supportsGeolocation):void 0!==t.window.navigator.permissions?t.window.navigator.permissions.query({name:"geolocation"}).then(t=>n("denied"!==t.state)).catch(()=>n()):n()}_isOutOfMapMaxBounds(t){const e=this._map.getMaxBounds(),n=t.coords;return!!e&&(n.longitude<e.getWest()||n.longitude>e.getEast()||n.latitude<e.getSouth()||n.latitude>e.getNorth())}_setErrorState(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting")}}_onSuccess(e){if(this._map){if(this._isOutOfMapMaxBounds(e))return this._setErrorState(),this.fire(new t.Event("outofmaxbounds",e)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=e,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background")}this.options.showUserLocation&&"OFF"!==this._watchState&&this._updateMarker(e),this.options.trackUserLocation&&"ACTIVE_LOCK"!==this._watchState||this._updateCamera(e),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new t.Event("geolocate",e)),this._finish()}}_updateCamera(e){const n=new t.LngLat(e.coords.longitude,e.coords.latitude),r=e.coords.accuracy,i=this._map.getBearing(),o=t.extend({bearing:i},this.options.fitBoundsOptions);this._map.fitBounds(n.toBounds(r),o,{geolocateSource:!0})}_updateMarker(e){if(e){const n=new t.LngLat(e.coords.longitude,e.coords.latitude);this._accuracyCircleMarker.setLngLat(n).addTo(this._map),this._userLocationDotMarker.setLngLat(n).addTo(this._map),this._accuracy=e.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()}_updateCircleRadius(){const e=this._map.transform,n=t.mercatorZfromAltitude(1,e._center.lat)*e.worldSize,r=Math.ceil(2*this._accuracy*n);this._circleElement.style.width=r+"px",this._circleElement.style.height=r+"px"}_onZoom(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}_updateMarkerRotation(){this._userLocationDotMarker&&"number"==typeof this._heading?(this._userLocationDotMarker.setRotation(this._heading),this._dotElement.classList.add("mapboxgl-user-location-show-heading")):(this._dotElement.classList.remove("mapboxgl-user-location-show-heading"),this._userLocationDotMarker.setRotation(0))}_onError(e){if(this._map){if(this.options.trackUserLocation)if(1===e.code){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;const t=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.setAttribute("aria-label",t),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",t),void 0!==this._geolocationWatchID&&this._clearWatch()}else{if(3===e.code&&this._noTimeout)return;this._setErrorState()}"OFF"!==this._watchState&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new t.Event("error",e)),this._finish()}}_finish(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0}_setupUI(e){if(void 0!==this._map){if(this._container.addEventListener("contextmenu",t=>t.preventDefault()),this._geolocateButton=o("button","mapboxgl-ctrl-geolocate",this._container),o("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden","true"),this._geolocateButton.type="button",!1===e){t.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");const e=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.setAttribute("aria-label",e),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",e)}else{const t=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.setAttribute("aria-label",t),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",t)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","fal
27se"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=o("div","mapboxgl-user-location"),this._dotElement.appendChild(o("div","mapboxgl-user-location-dot")),this._dotElement.appendChild(o("div","mapboxgl-user-location-heading")),this._userLocationDotMarker=new no({element:this._dotElement,rotationAlignment:"map",pitchAlignment:"map"}),this._circleElement=o("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new no({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",e=>{e.geolocateSource||"ACTIVE_LOCK"!==this._watchState||e.originalEvent&&"resize"===e.originalEvent.type||(this._watchState="BACKGROUND",this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this.fire(new t.Event("trackuserlocationend")))})}}_onDeviceOrientation(t){this._userLocationDotMarker&&(t.webkitCompassHeading?this._heading=t.webkitCompassHeading:!0===t.absolute&&(this._heading=-1*t.alpha),this._updateMarkerRotationThrottled())}trigger(){if(!this._setup)return t.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new t.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":this._numberOfWatches--,this._noTimeout=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new t.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new t.Event("trackuserlocationstart"))}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error")}if("OFF"===this._watchState&&void 0!==this._geolocationWatchID)this._clearWatch();else if(void 0===this._geolocationWatchID){let t;this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),this._numberOfWatches++,this._numberOfWatches>1?(t={maximumAge:6e5,timeout:0},this._noTimeout=!0):(t=this.options.positionOptions,this._noTimeout=!1),this._geolocationWatchID=this.options.geolocation.watchPosition(this._onSuccess,this._onError,t),this.options.showUserHeading&&this._addDeviceOrientationListener()}}else this.options.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0}_addDeviceOrientationListener(){const e=()=>{t.window.addEventListener("ondeviceorientationabsolute"in t.window?"deviceorientationabsolute":"deviceorientation",this._onDeviceOrientation)};void 0!==t.window.DeviceMotionEvent&&"function"==typeof t.window.DeviceMotionEvent.requestPermission?DeviceOrientationEvent.requestPermission().then(t=>{"granted"===t&&e()}).catch(console.error):e()}_clearWatch(){this.options.geolocation.clearWatch(this._geolocationWatchID),t.window.removeEventListener("deviceorientation",this._onDeviceOrientation),t.window.removeEventListener("deviceorientationabsolute",this._onDeviceOrientation),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","fal
27se"),this.options.showUserLocation&&this._updateMarker(null)}},AttributionControl:Ki,ScaleControl:class{constructor(e){this.options=t.extend({},fo,e),this._isNumberFormatSupported=function(){try{return new Intl.NumberFormat("en",{style:"unit",unitDisplay:"short",unit:"meter"}),!0}catch(t){return!1}}(),t.bindAll(["_update","_setScale","setUnit"],this)}getDefaultPosition(){return"bottom-left"}_update(){const t=this.options.maxWidth||100,e=this._map,n=e._containerHeight/2,r=e._containerWidth/2-t/2,i=e.unproject([r,n]),o=e.unproject([r+t,n]),s=i.distanceTo(o);if("imperial"===this.options.unit){const e=3.2808*s;e>5280?this._setScale(t,e/5280,"mile"):this._setScale(t,e,"foot")}else"nautical"===this.options.unit?this._setScale(t,s/1852,"nautical-mile"):s>=1e3?this._setScale(t,s/1e3,"kilometer"):this._setScale(t,s,"meter")}_setScale(t,e,n){this._map._requestDomTask(()=>{const r=function(t){const e=Math.pow(10,(""+Math.floor(t)).length-1);let n=t/e;return n=n>=10?10:n>=5?5:n>=3?3:n>=2?2:n>=1?1:function(t){const e=Math.pow(10,Math.ceil(-Math.log(t)/Math.LN10));return Math.round(t*e)/e}(n),e*n}(e),i=r/e;this._container.innerHTML=this._isNumberFormatSupported&&"nautical-mile"!==n?new Intl.NumberFormat(this._language,{style:"unit",unitDisplay:"short",unit:n}).format(r):`${r} ${po[n]}`,this._container.style.width=t*i+"px"})}onAdd(t){return this._map=t,this._language=t.getLanguage(),this._container=o("div","mapboxgl-ctrl mapboxgl-ctrl-scale",t.getContainer()),this._container.dir="auto",this._map.on("move",this._update),this._update(),this._container}onRemove(){this._container.remove(),this._map.off("move",this._update),this._map=void 0}_setLanguage(t){this._language=t,this._update()}setUnit(t){this.options.unit=t,this._update()}},FullscreenControl:class{constructor(e){this._fullscreen=!1,e&&e.container&&(e.container instanceof t.window.HTMLElement?this._container=e.container:t.warnOnce("Full screen control 'container' must be a DOM element.")),t.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in t.window.document?this._fullscreenchange="fullscreenchange":"onwebkitfullscreenchange"in t.window.document&&(this._fullscreenchange="webkitfullscreenchange")}onAdd(e){return this._map=e,this._container||(this._container=this._map.getContainer()),this._controlContainer=o("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",t.warnOnce("This device does not support fullscreen mode.")),this._controlContainer}onRemove(){this._controlContainer.remove(),this._map=null,t.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)}_checkFullscreenSupport(){return!(!t.window.document.fullscreenEnabled&&!t.window.document.webkitFullscreenEnabled)}_setupUI(){const e=this._fullscreenButton=o("button","mapboxgl-ctrl-fullscreen",this._controlContainer);o("span","mapboxgl-ctrl-icon",e).setAttribute("aria-hidden","true"),e.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),t.window.document.addEventListener(this._fullscreenchange,this._changeIcon)}_updateTitle(){const t=this._getTitle();this._fullscreenButton.setAttribute("aria-label",t),this._fullscreenButton.firstElementChild&&this._fullscreenButton.firstElementChild.setAttribute("title",t)}_getTitle(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")}_isFullscreen(){return this._fullscreen}_changeIcon(){(t.window.document.fullscreenElement||t.window.document.webkitFullscreenElement)===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())}_onClickFullscreen(){this._isFullscreen()?t.window.document.exitFullscreen?t.window.document.exitFullscreen():t.window.document.webkitCancelFullScreen&&t.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()}},Popup:class extends t.Evented{constructor(e){super(),this.options=t.extend(Object.create(ro),e),t.bindAll(["_update","_onClose","remove","_onMouseEvent"],this),this._classList=new Set(e&&e.className?e.className.trim().split(/\s+/):[])}addTo(e){return this._map&&this.remove(),this._map=e,this.options.closeOnClick&&e.on("preclick",this._onClose),this.options.closeOnMove&&e.on("move",this._onClose),e.on("remove",this.remove),this._update(),e._addPopup(this),this._focusFirstElement(),this._trackPointer?(e.on("mousemove",this._onMouseEvent),e.on("mouseup",this._onMouseEvent),e._canvasContainer.classList.add("mapboxgl-track-pointer")):e.on("move",this._update),this.fire(new t.Event("open")),this}isOpen(){return!!this._map}remove(){this._content&&this._content.remove(),this._container&&(this._container.remove(),this._container=void 0);const e=this._map;return e&&(e.off("move",this._update),e.off("move",this._onClose),e.off("preclick",this._onClose),e.off("click",this._onClose),e.off("remove",this.remove),e.off("mousemove",this._onMouseEvent),e.off("mouseup",this._onMouseEvent),e.off("drag",this._onMouseEvent),e._canvasContainer&&e._canvasContainer.classList.remove("mapboxgl-track-pointer"),e._removePopup(this),this._map=void 0),this.fire(new t.Event("close")),this}getLngLat(){return this._lngLat}
vendor: 3,844 bytes, line 27
27setLngLat(e){this._lngLat=t.LngLat.convert(e),this._pos=null,this._trackPointer=!1,this._update();const n=this._map;return n&&(n.on("move",this._update),n.off("mousemove",this._onMouseEvent),n._canvasContainer.classList.remove("mapboxgl-track-pointer")),this}trackPointer(){this._trackPointer=!0,this._pos=null,this._update();const t=this._map;return t&&(t.off("move",this._update),t.on("mousemove",this._onMouseEvent),t.on("drag",this._onMouseEvent),t._canvasContainer.classList.add("mapboxgl-track-pointer")),this}getElement(){return this._container}setText(e){return this.setDOMContent(t.window.document.createTextNode(e))}setHTML(e){const n=t.window.document.createDocumentFragment(),r=t.window.document.createElement("body");let i;for(r.innerHTML=e;i=r.firstChild,i;)n.appendChild(i);return this.setDOMContent(n)}getMaxWidth(){return this._container&&this._container.style.maxWidth}setMaxWidth(t){return this.options.maxWidth=t,this._update(),this}setDOMContent(t){let e=this._content;if(e)for(;e.hasChildNodes();)e.firstChild&&e.removeChild(e.firstChild);else e=this._content=o("div","mapboxgl-popup-content",this._container||void 0);if(e.appendChild(t),this.options.closeButton){const t=this._closeButton=o("button","mapboxgl-popup-close-button",e);t.type="button",t.setAttribute("aria-label","Close popup"),t.setAttribute("aria-hidden","true"),t.innerHTML="×",t.addEventListener("click",this._onClose)}return this._update(),this._focusFirstElement(),this}addClassName(t){return this._classList.add(t),this._updateClassList(),this}removeClassName(t){return this._classList.delete(t),this._updateClassList(),this}setOffset(t){return this.options.offset=t,this._update(),this}toggleClassName(t){let e;return this._classList.delete(t)?e=!1:(this._classList.add(t),e=!0),this._updateClassList(),e}_onMouseEvent(t){this._update(t.point)}_getAnchor(t){if(this.options.anchor)return this.options.anchor;const e=this._map,n=this._container,r=this._pos;if(!e||!n||!r)return"bottom";const i=n.offsetWidth,o=n.offsetHeight,s=r.x<i/2,a=r.x>e.transform.width-i/2;if(r.y+t<o)return s?"top-left":a?"top-right":"top";if(r.y>e.transform.height-o){if(s)return"bottom-left";if(a)return"bottom-right"}return s?"left":a?"right":"bottom"}_updateClassList(){const t=this._container;if(!t)return;const e=[...this._classList];e.push("mapboxgl-popup"),this._anchor&&e.push("mapboxgl-popup-anchor-"+this._anchor),this._trackPointer&&e.push("mapboxgl-popup-track-pointer"),t.className=e.join(" ")}_update(e){const n=this._map,r=this._content;if(!n||!this._lngLat&&!this._trackPointer||!r)return;let i=this._container;if(i||(i=this._container=o("div","mapboxgl-popup",n.getContainer()),this._tip=o("div","mapboxgl-popup-tip",i),i.appendChild(r)),this.options.maxWidth&&i.style.maxWidth!==this.options.maxWidth&&(i.style.maxWidth=this.options.maxWidth),n.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=to(this._lngLat,this._pos,n.transform)),!this._trackPointer||e){const t=this._pos=this._trackPointer&&e?e:n.project(this._lngLat),r=oo(this.options.offset),i=this._anchor=this._getAnchor(r.y),o=oo(this.options.offset,i),s=t.add(o).round();n._requestDomTask(()=>{this._container&&i&&(this._container.style.transform=`${eo[i]} translate(${s.x}px,${s.y}px)`)})}if(!this._marker&&n._showingGlobe()){const e=t.isLngLatBehindGlobe(n.transform,this._lngLat)?0:1;this._setOpacity(e)}this._updateClassList()}_focusFirstElement(){if(!this.options.focusAfterOpen||!this._container)return;const t=this._container.querySelector(io);t&&t.focus()}_onClose(){this.remove()}_setOpacity(t){this._container&&(this._container.style.opacity=""+t),this._content&&(this._content.style.pointerEvents=t?"auto":"none")}},Marker:no,Style:$e,LngLat:t.LngLat,LngLatBounds:t.LngLatBounds,Point:t.Point,MercatorCoordinate:t.MercatorCoordinate,FreeCameraOptions:Vr,Evented:t.
27Evented,config:t.config,prewarm:function(){jt().acquire(Pt)},clearPrewarmedResources:function(){const t=Rt;t&&(t.isPreloaded()&&1===t.numActive()?(t.release(Pt),Rt=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))},get accessToken(){return t.config.ACCESS_TOKEN},set accessToken(e){t.config.ACCESS_TOKEN=e},get baseApiUrl(){return t.config.API_URL},set baseApiUrl(e){t.config.API_URL=e},get workerCount(){return Dt.workerCount},set workerCount(t){Dt.workerCount=t},get maxParallelImageRequests(){return t.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(e){t.config.MAX_PARALLEL_IMAGE_REQUESTS=e},clearStorage(e){t.clearTileCache(e)},workerUrl:"",workerClass:null,setNow:t.exported.setNow,restoreNow:t.exported.restoreNow};return go})),n},"object"==typeof e&&void 0!==t?t.exports=r():"function"==typeof define&&define.amd?define(r):(n="undefined"!=typeof globalThis?globalThis:n||self).mapboxgl=r()},function(t,e,n){var r=n(336),i=n(572),o=n(540),s=n(107)("iterator");t.exports=function(t){if(null!=t)return i(t,s)||i(t,"@@iterator")||o[r(t)]}},,,function(t,e,n){"use strict";const r={pickingSelectedColor:null,pickingHighlightColor:new Uint8Array([0,255,255,255]),pickingActive:!1,pickingAttribute:!1};const i={name:"picking",vs:"uniform bool picking_uActive;\nuniform bool picking_uAttribute;\nuniform vec3 picking_uSelectedColor;\nuniform bool picking_uSelectedColorValid;\n\nout vec4 picking_vRGBcolor_Avalid;\n\nconst float COLOR_SCALE = 1. / 255.;\n\nbool picking_isColorValid(vec3 color) {\n return dot(color, vec3(1.0)) > 0.001;\n}\n\nbool isVertexPicked(vec3 vertexColor) {\n return\n picking_uSelectedColorValid &&\n !picking_isColorValid(abs(vertexColor - picking_uSelectedColor));\n}\n\nvoid picking_setPickingColor(vec3 pickingColor) {\n if (picking_uActive) {\n picking_vRGBcolor_Avalid.a = float(picking_isColorValid(pickingColor));\n\n if (!picking_uAttribute) {\n picking_vRGBcolor_Avalid.rgb = pickingColor * COLOR_SCALE;\n }\n } else {\n picking_vRGBcolor_Avalid.a = float(isVertexPicked(pickingColor));\n }\n}\n\nvoid picking_setPickingAttribute(float value) {\n if (picking_uAttribute) {\n picking_vRGBcolor_Avalid.r = value;\n }\n}\nvoid picking_setPickingAttribute(vec2 value) {\n if (picking_uAttribute) {\n picking_vRGBcolor_Avalid.rg = value;\n }\n}\nvoid picking_setPickingAttribute(vec3 value) {\n if (picking_uAttribute) {\n picking_vRGBcolor_Avalid.rgb = value;\n }\n}\n",fs:"uniform bool picking_uActive;\nuniform vec3 picking_uSelectedColor;\nuniform vec4 picking_uHighlightColor;\n\nin vec4 picking_vRGBcolor_Avalid;\nvec4 picking_filterHighlightColor(vec4 color) {\n if (picking_uActive) {\n return color;\n }\n bool selected = bool(picking_vRGBcolor_Avalid.a);\n\n if (selected) {\n float highLightAlpha = picking_uHighlightColor.a;\n float blendedAlpha = highLightAlpha + color.a * (1.0 - highLightAlpha);\n float highLightRatio = highLightAlpha / blendedAlpha;\n\n vec3 blendedRGB = mix(color.rgb, picking_uHighlightColor.rgb, highLightRatio);\n return vec4(blendedRGB, blendedAlpha);\n } else {\n return color;\n }\n}\nvec4 picking_filterPickingColor(vec4 color) {\n if (picking_uActive) {\n if (picking_vRGBcolor_Avalid.a == 0.0) {\n discard;\n }\n return picking_vRGBcolor_Avalid;\n }\n return color;\n}\nvec4 picking_filterColor(vec4 color) {\n vec4 highightColor = picking_filterHighlightColor(color);\n return picking_filterPickingColor(highightColor);\n}\n\n",getUniforms:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r;const e={};if(void 0!==t.pickingSelectedColor)if(t.pickingSelectedColor){const n=t.pickingSelectedColor.slice(0,3);e.picking_uSelectedColorValid=1,e.picking_uSelectedColor=n}else e.picking_uSelectedColorValid=0;if(t.pickingHighlightColor){const n=Array.from(t.pickingHighlightColor,t=>t/255);Number.isFinite(n[3])||(n[3]=1),e.picking_uHighlightColor=n}return void 0!==t.pickingActive&&(e.picking_uActive=Boolean(t.pickingActive),e.picking_uAttribute=Boolean(t.pickingAttribute)),e}};e.a={inject:{"vs:DECKGL_FILTER_COLOR":"\n picking_setPickingColor(geometry.pickingColor);\n // for picking depth values\n picking_setPickingAttribute(geometry.position.z);\n ","fs:DECKGL_FILTER_COLOR":{order:99,injection:"\n // use highlight color if this fragment belongs to the selected object.\n color = picking_filterHighlightColor(color);\n\n // use picking color if rendering to picking FBO.\n color = picking_filterPickingColor(color);\n "}},...i}},function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n(700),i=n(141),o=n(458);class s extends r.a{get x(){return this[0]}set x(t){this[0]=Object(i.a)(t)}get y(){return this[1]}set y(t){this[1]=Object(i.a)(t)}len(){return Math.sqrt(this.lengthSquared())}magnitude(){return this.len()}lengthSquared(){let t=0;for(let e=0;e<this.ELEMENTS;++e)t+=this[e]*this[e];return t}magnitudeSquared(){return this.lengthSquared()}distance(t){return Math.sqrt(this.distanceSquared(t))}distanceSquared(t){let e=0;for(let n=0;n<this.ELEMENTS;++n){const r=this[n]-t[n];e+=r*r}return Object(i.a)(e)}dot(t){let e=0;for(let n=0;n<this.ELEMENTS;++n)e+=this[n]*t[n];return Object(i.a)(e)}normalize(){const t=this.magnitude();if(0!==t)for(let e=0;e<this.ELEMENTS;++e)this[e]/=t;return this.check()}multiply(...t){for(const e of t)for(let t=0;t<this.ELEMENTS;++t)this[t]*=e[t];return this.check()}divide(...t){for(const e of t)for(let t=0;t<this.ELEMENTS;++t)this[t]/=e[t];return this.check()}lengthSq(){return this.lengthSquared()}distanceTo(t){return this.distance(t)}distanceToSquared(t){return this.distanceSquared(t)}getComponent(t){return Object(o.a)(t>=0&&t<this.ELEMENTS,"index is out of range"),Object(i.a)(this[t])}setComponent(t,e){return Object(o.a)(t>=0&&t<this.ELEMENTS,"index is out of range"),this[t]=e,this.check()}addVectors(t,e){return this.copy(t).add(e)}subVectors(t,e){return this.copy(t).subtract(e)}multiplyVectors(t,e){return this.copy(t).multiply(e)}addScaledVector(t,e){return this.add(new this.constructor(t).multiplyScalar(e))}}var a=n(68),c=n(161),l=n(530);const u=[0,0,0];let h;class f extends s{static get ZERO(){return h||(h=new f(0,0,0),Object.freeze(h)),h}constructor(t=0,e=0,n=0){super(-0,-0,-0),1===arguments.length&&Object(a.e)(t)?this.copy(t):(a.b.debug&&(Object(i.a)(t),Object(i.a)(e),Object(i.a)(n)),this[0]=t,this[1]=e,this[2]=n)}set(t,e,n){return this[0]=t,this[1]=e,this[2]=n,this.check()}copy(t){return this[0]=t[0],this[1]=t[1],this[2]=t[2],this.check()}fromObject(t){return a.b.debug&&(Object(i.a)(t.x),Object(i.a)(t.y),Object(i.a)(t.z)),this[0]=t.x,this[1]=t.y,this[2]=t.z,this.check()}toObject(t){return t.x=this[0],t.y=this[1],t.z=this[2],t}get ELEMENTS(){return 3}get z(){return this[2]}set z(t){this[2]=Object(i.a)(t)}angle(t){return c.b(this,t)}cross(t){return c.c(this,this,t),this.check()}rotateX({radians:t,origin:e=u}){return c.f(this,this,e,t),this.check()}rotateY({radians:t,origin:e=u}){return c.g(this,this,e,t),this.check()}rotateZ({radians:t,origin:e=u}){return c.h(this,this,e,t),this.check()}transform(t){return this.transformAsPoint(t)}transformAsPoint(t){return c.k(this,this,t),this.check()}transformAsVector(t){return Object(l.c)(this,this,t),this.check()}transformByMatrix3(t){return c.j(this,this,t),this.check()}transformByMatrix2(t){return Object(l.b)(this,this,t),this.check()}transformByQuaternion(t){return c.l(this,this,t),this.check()}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return _}));var r=n(700),i=n(141),o=n(68);class s extends r.a{toString(){let t="[";if(o.b.printRowMajor){t+="row-major:";for(let e=0;e<this.RANK;++e)for(let n=0;n<this.RANK;++n)t+=" ".concat(this[n*this.RANK+e])}else{t+="column-major:";for(let e=0;e<this.ELEMENTS;++e)t+=" ".concat(this[e])}return t+="]",t}getElementIndex(t,e){return e*this.RANK+t}getElement(t,e){return this[e*this.RANK+t]}setElement(t,e,n){return this[e*this.RANK+t]=Object(i.a)(n),this}getColumn(t,e=new Array(this.RANK).fill(-0)){const n=t*this.RANK;for(let t=0;t<this.RANK;++t)e[t]=this[n+t];return e}setColumn(t,e){const n=t*this.RANK;for(let t=0;t<this.RANK;++t)this[n+t]=e[t];return this}}var a,c=n(530),l=n(46),u=n(151),h=n(161),f=n(322);!function(t){t[t.COL0ROW0=0]="COL0ROW0",t[t.COL0ROW1=1]="COL0ROW1",t[t.COL0ROW2=2]="COL0ROW2",t[t.COL0ROW3=3]="COL0ROW3",t[t.COL1ROW0=4]="COL1ROW0",t[t.COL1ROW1=5]="COL1ROW1",t[t.COL1ROW2=6]="COL1ROW2",t[t.COL1ROW3=7]="COL1ROW3",t[t.COL2ROW0=8]="COL2ROW0",t[t.COL2ROW1=9]="COL2ROW1",t[t.COL2ROW2=10]="COL2ROW2",t[t.COL2ROW3=11]="COL2ROW3",t[t.COL3ROW0=12]="COL3ROW0",t[t.COL3ROW1=13]="COL3ROW1",t[t.COL3ROW2=14]="COL3ROW2",t[t.COL3ROW3=15]="COL3ROW3"}(a||(a={}));const d=45*Math.PI/180,p=1,g=.1,m=500,y=Object.freeze([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]);class _ extends s{static get IDENTITY(){return function(){b||(b=new _,Object.freeze(b));return b}()}
27static get ZERO(){return function(){v||(v=new _([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),Object.freeze(v));return v}()}get ELEMENTS(){return 16}get RANK(){return 4}get INDICES(){return a}constructor(t){super(-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0),1===arguments.length&&Array.isArray(t)?this.copy(t):this.identity()}copy(t){return this[0]=t[0],this[1]=t[1],this[2]=t[2],this[3]=t[3],this[4]=t[4],this[5]=t[5],this[6]=t[6],this[7]=t[7],this[8]=t[8],this[9]=t[9],this[10]=t[10],this[11]=t[11],this[12]=t[12],this[13]=t[13],this[14]=t[14],this[15]=t[15],this.check()}set(t,e,n,r,i,o,s,a,c,l,u,h,f,d,p,g){return this[0]=t,this[1]=e,this[2]=n,this[3]=r,this[4]=i,this[5]=o,this[6]=s,this[7]=a,this[8]=c,this[9]=l,this[10]=u,this[11]=h,this[12]=f,this[13]=d,this[14]=p,this[15]=g,this.check()}setRowMajor(t,e,n,r,i,o,s,a,c,l,u,h,f,d,p,g){return this[0]=t,this[1]=i,this[2]=c,this[3]=f,this[4]=e,this[5]=o,this[6]=l,this[7]=d,this[8]=n,this[9]=s,this[10]=u,this[11]=p,this[12]=r,this[13]=a,this[14]=h,this[15]=g,this.check()}toRowMajor(t){return t[0]=this[0],t[1]=this[4],t[2]=this[8],t[3]=this[12],t[4]=this[1],t[5]=this[5],t[6]=this[9],t[7]=this[13],t[8]=this[2],t[9]=this[6],t[10]=this[10],t[11]=this[14],t[12]=this[3],t[13]=this[7],t[14]=this[11],t[15]=this[15],t}identity(){return this.copy(y)}fromObject(t){return this.check()}fromQuaternion(t){return l.c(this,t),this.check()}frustum(t){const{left:e,right:n,bottom:r,top:i,near:o=g,far:s=m}=t;return s===1/0?function(t,e,n,r,i,o){const s=2*o/(n-e),a=2*o/(i-r),c=(n+e)/(n-e),l=(i+r)/(i-r),u=-2*o;t[0]=s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,t[6]=0,t[7]=0,t[8]=c,t[9]=l,t[10]=-1,t[11]=-1,t[12]=0,t[13]=0,t[14]=u,t[15]=0}(this,e,n,r,i,o):l.d(this,e,n,r,i,o,s),this.check()}lookAt(t){const{eye:e,center:n=[0,0,0],up:r=[0,1,0]}=t;return l.f(this,e,n,r),this.check()}ortho(t){const{left:e,right:n,bottom:r,top:i,near:o=g,far:s=m}=t;return l.h(this,e,n,r,i,o,s),this.check()}orthographic(t){const{fovy:e=d,aspect:n=p,focalDistance:r=1,near:i=g,far:o=m}=t;x(e);const s=e/2,a=r*Math.tan(s),c=a*n;return this.ortho({left:-c,right:c,bottom:-a,top:a,near:i,far:o})}perspective(t){const{fovy:e=45*Math.PI/180,aspect:n=1,near:r=.1,far:i=500}=t;return x(e),l.i(this,e,n,r,i),this.check()}determinant(){return l.a(this)}getScale(t=[-0,-0,-0]){return t[0]=Math.sqrt(this[0]*this[0]+this[1]*this[1]+this[2]*this[2]),t[1]=Math.sqrt(this[4]*this[4]+this[5]*this[5]+this[6]*this[6]),t[2]=Math.sqrt(this[8]*this[8]+this[9]*this[9]+this[10]*this[10]),t}getTranslation(t=[-0,-0,-0]){return t[0]=this[12],t[1]=this[13],t[2]=this[14],t}getRotation(t,e){t=t||[-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0],e=e||[-0,-0,-0];const n=this.getScale(e),r=1/n[0],i=1/n[1],o=1/n[2];return t[0]=this[0]*r,t[1]=this[1]*i,t[2]=this[2]*o,t[3]=0,t[4]=this[4]*r,t[5]=this[5]*i,t[6]=this[6]*o,t[7]=0,t[8]=this[8]*r,t[9]=this[9]*i,t[10]=this[10]*o,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}getRotationMatrix3(t,e){t=t||[-0,-0,-0,-0,-0,-0,-0,-0,-0],e=e||[-0,-0,-0];const n=this.getScale(e),r=1/n[0],i=1/n[1],o=1/n[2];return t[0]=this[0]*r,t[1]=this[1]*i,t[2]=this[2]*o,t[3]=this[4]*r,t[4]=this[5]*i,t[5]=this[6]*o,t[6]=this[8]*r,t[7]=this[9]*i,t[8]=this[10]*o,t}transpose(){return l.p(this,this),this.check()}invert(){return l.e(this,this),this.check()}multiplyLeft(t){return l.g(this,t,this),this.check()}multiplyRight(t){return l.g(this,this,t),this.check()}rotateX(t){return l.k(this,this,t),this.check()}rotateY(t){return l.l(this,this,t),this.check()}rotateZ(t){return l.m(this,this,t),this.check()}rotateXYZ(t){return this.rotateX(t[0]).rotateY(t[1]).rotateZ(t[2])}rotateAxis(t,e){return l.j(this,this,t,e),this.check()}scale(t){return l.n(this,this,Array.isArray(t)?t:[t,t,t]),this.check()}translate(t){return l.o(this,this,t),this.check()}transform(t,e){return 4===t.length?(e=f.b(e||[-0,-0,-0,-0],t,this),Object(i.b)(e,4),e):this.transformAsPoint(t,e)}transformAsPoint(t,e){const{length:n}=t;let r;switch(n){case 2:r=u.g(e||[-0,-0],t,this);break;case 3:r=h.k(e||[-0,-0,-0],t,this);break;default:throw new Error("Illegal vector")}return Object(i.b)(r,t.length),r}transformAsVector(t,e){let n;switch(t.length){case 2:n=Object(c.a)(e||[-0,-0],t,this);break;case 3:n=Object(c.c)(e||[-0,-0,-0],t,this);break;default:throw new Error("Illegal vector")}return Object(i.b)(n,t.length),n}transformPoint(t,e){return this.transformAsPoint(t,e)}transformVector(t,e){return this.transformAsPoint(t,e)}transformDirection(t,e){return this.transformAsVector(t,e)}makeRotationX(t){return this.identity().rotateX(t)}makeTranslation(t,e,n){return this.identity().translate([t,e,n])}}let v,b;function x(t){if(t>2*Math.PI)throw Error("expected radians")}},,function(t,e,n){"use strict";(function(t){function r(){var e;if(void 0!==t&&void 0!==t.cwd)return t.cwd();const n=null===(e=window.location)||void 0===e?void 0:e.pathname;return(null==n?void 0:n.slice(0,n.lastIndexOf("/")+1))||""}n.d(e,"a",(function(){return r}))}).call(this,n(297))},function(t,e,n){"use strict";n.d(e,"b",(function(){return s})),n.d(e,"a",(function(){return a}));var r=n(359),i=n(463);const o=()=>{const t=Object(i.b)();return t.loaderRegistry=t.loaderRegistry||[],t.loaderRegistry};function s(t){const e=o();t=Array.isArray(t)?t:[t];for(const n of t){const t=Object(r.b)(n);e.find(e=>t===e)||e.unshift(t)}}function a(){return o()}},function(t,e,n){"use strict";(function(t){var n=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var n=-1;return t.some((function(t,r){return t[0]===e&&(n=r,!0)})),n}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var n=t(this.__entries__,e),r=this.__entries__[n];return r&&r[1]},e.prototype.set=function(e,n){var r=t(this.__entries__,e);~r?this.__entries__[r][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,r=t(n,e);~r&&n.splice(r,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];t.call(e,i[1],i[0])}},e}()}(),r="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,i=void 0!==t&&t.Math===Math?t:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),o="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(t){return setTimeout((function(){return t(Date.now())}),1e3/60)};var s=["top","right","bottom","left","width","height","size","weight"],a="undefined"!=typeof MutationObserver,c=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(t,e){var n=!1,r=!1,i=0;
vendor: 5,308 bytes, line 27
27function s(){n&&(n=!1,t()),r&&c()}function a(){o(s)}function c(){var t=Date.now();if(n){if(t-i<2)return;r=!0}else n=!0,r=!1,setTimeout(a,e);i=t}return c}(this.refresh.bind(this),20)}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var e=this.observers_,n=e.indexOf(t);~n&&e.splice(n,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter((function(t){return t.gatherActive(),t.hasActive()}));return t.forEach((function(t){return t.broadcastActive()})),t.length>0},t.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),a?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e;s.some((function(t){return!!~n.indexOf(t)}))&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),l=function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];Object.defineProperty(t,i,{value:e[i],enumerable:!1,writable:!1,configurable:!0})}return t},u=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||i},h=y(0,0,0,0);function f(t){return parseFloat(t)||0}function d(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce((function(e,n){return e+f(t["border-"+n+"-width"])}),0)}function p(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return h;var r=u(t).getComputedStyle(t),i=function(t){for(var e={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var i=r[n],o=t["padding-"+i];e[i]=f(o)}return e}(r),o=i.left+i.right,s=i.top+i.bottom,a=f(r.width),c=f(r.height);if("border-box"===r.boxSizing&&(Math.round(a+o)!==e&&(a-=d(r,"left","right")+o),Math.round(c+s)!==n&&(c-=d(r,"top","bottom")+s)),!function(t){return t===u(t).document.documentElement}(t)){var l=Math.round(a+o)-e,p=Math.round(c+s)-n;1!==Math.abs(l)&&(a-=l),1!==Math.abs(p)&&(c-=p)}return y(i.left,i.top,a,c)}var g="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof u(t).SVGGraphicsElement}:function(t){return t instanceof u(t).SVGElement&&"function"==typeof t.getBBox};function m(t){return r?g(t)?function(t){var e=t.getBBox();return y(0,0,e.width,e.height)}(t):p(t):h}function y(t,e,n,r){return{x:t,y:e,width:n,height:r}}var _=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=y(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=m(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),v=function(t,e){var n,r,i,o,s,a,c,u=(r=(n=e).x,i=n.y,o=n.width,s=n.height,a="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,c=Object.create(a.prototype),l(c,{x:r,y:i,width:o,height:s,top:i,right:r+o,bottom:s+i,left:r}),c);l(this,{target:t,contentRect:u})},b=function(){function t(t,e,r){if(this.activeObservations_=[],this.observations_=new n,"function"!=typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=r}return t.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof u(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new _(t)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof u(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach((function(e){e.isActive()&&t.activeObservations_.push(e)}))},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map((function(t){return new v(t.target,t.broadcastRect())}
27));this.callback_.call(t,e,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),x="undefined"!=typeof WeakMap?new WeakMap:new n,w=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=c.getInstance(),r=new b(e,n,this);x.set(this,r)};["observe","unobserve","disconnect"].forEach((function(t){w.prototype[t]=function(){var e;return(e=x.get(this))[t].apply(e,arguments)}}));var E=void 0!==i.ResizeObserver?i.ResizeObserver:w;e.a=E}).call(this,n(121))},function(t,e,n){"use strict";n.d(e,"a",(function(){return k}));var r=n(16),i=n(1199),o=n(216),s=n(20),a=n(980),c=n(2327),l=n(257),u=n(128),h=n(159);let f=null;function d(t,e){var n;return new t((n=t.BYTES_PER_ELEMENT*e,(!f||f.byteLength<n)&&(f=new ArrayBuffer(n)),f),0,e)}var p=n(973);class g extends h.a{get[Symbol.toStringTag](){return"VertexArrayObject"}static isSupported(t){return!(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).constantAttributeZero||(Object(r.i)(t)||"Chrome"===Object(p.a)())}static getDefaultArray(t){return t.luma=t.luma||{},t.luma.defaultVertexArray||(t.luma.defaultVertexArray=new g(t,{handle:null,isDefaultArray:!0})),t.luma.defaultVertexArray}static getMaxAttributes(t){return g.MAX_ATTRIBUTES=g.MAX_ATTRIBUTES||t.getParameter(34921),g.MAX_ATTRIBUTES}static setConstant(t,e,n){switch(n.constructor){case Float32Array:g._setConstantFloatArray(t,e,n);break;case Int32Array:g._setConstantIntArray(t,e,n);break;case Uint32Array:g._setConstantUintArray(t,e,n);break;default:Object(s.a)(!1)}}constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=e.id||e.program&&e.program.id;super(t,Object.assign({},e,{id:n})),this.buffer=null,this.bufferValue=null,this.isDefaultArray=e.isDefaultArray||!1,this.gl2=t,this.initialize(e),Object.seal(this)}delete(){return super.delete(),this.buffer&&this.buffer.delete(),this}get MAX_ATTRIBUTES(){return g.getMaxAttributes(this.gl)}initialize(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.setProps(t)}setProps(t){return this}setElementBuffer(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return Object(s.a)(!t||34963===t.target,"elements must be GL.ELEMENT_ARRAY_BUFFER"),this.bind(()=>{this.gl.bindBuffer(34963,t?t.handle:null)}),this}setBuffer(t,e,n){if(34963===e.target)return this.setElementBuffer(e,n);const{size:i,type:o,stride:a,offset:c,normalized:l,integer:u,divisor:h}=n,{gl:f,gl2:d}=this;return t=Number(t),this.bind(()=>{f.bindBuffer(34962,e.handle),u?(Object(s.a)(Object(r.i)(f)),d.vertexAttribIPointer(t,i,o,a,c)):f.vertexAttribPointer(t,i,o,l,a,c),f.enableVertexAttribArray(t),d.vertexAttribDivisor(t,h||0)}),this}enable(t){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return!e&&0===t&&!g.isSupported(this.gl,{constantAttributeZero:!0})||(t=Number(t),this.bind(()=>e?this.gl.enableVertexAttribArray(t):this.gl.disableVertexAttribArray(t))),this}getConstantBuffer(t,e){const n=this._normalizeConstantArrayValue(e),r=n.byteLength*t,i=n.length*t;let o=!this.buffer;if(this.buffer=this.buffer||new u.a(this.gl,r),o=o||this.buffer.reallocate(r),o=o||!this._compareConstantArrayValues(n,this.bufferValue),o){const t=d(e.constructor,i);!function(t){let{target:e,source:n,start:r=0,count:i=1}=t;const o=n.length,s=i*o;let a=0;for(let t=r;a<o;a++)e[t++]=n[a];for(;a<s;)a<s-a?(e.copyWithin(r+a,r,r+a),a*=2):(e.copyWithin(r+a,r,r+s-a),a=s)}({target:t,source:n,start:0,count:i}),this.buffer.subData(t),this.bufferValue=e}return this.buffer}_normalizeConstantArrayValue(t){return Array.isArray(t)?new Float32Array(t):t}_compareConstantArrayValues(t,e){if(!t||!e||t.length!==e.length||t.constructor!==e.constructor)return!1;for(let n=0;n<t.length;++n)if(t[n]!==e[n])return!1;return!0}static _setConstantFloatArray(t,e,n){switch(n.length){case 1:t.vertexAttrib1fv(e,n);break;case 2:t.vertexAttrib2fv(e,n);break;case 3:t.vertexAttrib3fv(e,n);break;case 4:t.vertexAttrib4fv(e,n);break;default:Object(s.a)(!1)}}static _setConstantIntArray(t,e,n){switch(Object(s.a)(Object(r.i)(t)),n.length){case 1:t.vertexAttribI1iv(e,n);break;case 2:t.vertexAttribI2iv(e,n);break;case 3:t.vertexAttribI3iv(e,n);break;case 4:t.vertexAttribI4iv(e,n);break;default:Object(s.a)(!1)}}static _setConstantUintArray(t,e,n){switch(Object(s.a)(Object(r.i)(t)),n.length){case 1:t.vertexAttribI1uiv(e,n);break;case 2:t.vertexAttribI2uiv(e,n);break;case 3:t.vertexAttribI3uiv(e,n);break;case 4:t.vertexAttribI4uiv(e,n);break;default:Object(s.a)(!1)}}_createHandle(){return this.gl.createVertexArray()}_deleteHandle(t){return this.gl2.deleteVertexArray(t),[this.elements]}_bindHandle(t){this.gl2.bindVertexArray(t)}_getParameter(t,e){let{location:n}=e;return Object(s.a)(Number.isFinite(n)),this.bind(()=>{switch(t){case 34373:return this.gl.getVertexAttribOffset(n,t);default:return this.gl.getVertexAttrib(n,t)}})}}var m=n(698);const y=/^(.+)__LOCATION_([0-9]+)$/,_=["setBuffers","setGeneric","clearBindings","setLocations","setGenericValues","setDivisor","enable","disable"];class v{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=e.id||e.program&&e.program.id;this.id=n,this.gl=t,this.configuration=null,this.elements=null,this.elementsAccessor=null,this.values=null,this.accessors=null,this.unused=null,this.drawParams=null,this.buffer=null,this.attributes={}
27,this.vertexArrayObject=new g(t),Object(m.a)(this,"VertexArray","v6.0",_),this.initialize(e),Object.seal(this)}delete(){this.buffer&&this.buffer.delete(),this.vertexArrayObject.delete()}initialize(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.reset(),this.configuration=null,this.bindOnUse=!1,this.setProps(t)}reset(){this.elements=null,this.elementsAccessor=null;const{MAX_ATTRIBUTES:t}=this.vertexArrayObject;return this.values=new Array(t).fill(null),this.accessors=new Array(t).fill(null),this.unused={},this.drawParams=null,this}setProps(t){return"program"in t&&(this.configuration=t.program&&t.program.configuration),"configuration"in t&&(this.configuration=t.configuration),"attributes"in t&&this.setAttributes(t.attributes),"elements"in t&&this.setElementBuffer(t.elements),"bindOnUse"in t&&(t=t.bindOnUse),this}clearDrawParams(){this.drawParams=null}getDrawParams(){return this.drawParams=this.drawParams||this._updateDrawParams(),this.drawParams}setAttributes(t){return Object.assign(this.attributes,t),this.vertexArrayObject.bind(()=>{for(const e in t){const n=t[e];this._setAttribute(e,n)}this.gl.bindBuffer(34962,null)}),this}setElementBuffer(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.elements=t,this.elementsAccessor=e,this.clearDrawParams(),this.vertexArrayObject.setElementBuffer(t,e),this}setBuffer(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(34963===e.target)return this.setElementBuffer(e,n);const{location:r,accessor:i}=this._resolveLocationAndAccessor(t,e,e.accessor,n);return r>=0&&(this.values[r]=e,this.accessors[r]=i,this.clearDrawParams(),this.vertexArrayObject.setBuffer(r,e,i)),this}setConstant(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{location:r,accessor:i}=this._resolveLocationAndAccessor(t,e,Object.assign({size:e.length},n));return r>=0&&(e=this.vertexArrayObject._normalizeConstantArrayValue(e),this.values[r]=e,this.accessors[r]=i,this.clearDrawParams(),this.vertexArrayObject.enable(r,!1)),this}unbindBuffers(){return this.vertexArrayObject.bind(()=>{this.elements&&this.vertexArrayObject.setElementBuffer(null),this.buffer=this.buffer||new u.a(this.gl,{accessor:{size:4}});for(let t=0;t<this.vertexArrayObject.MAX_ATTRIBUTES;t++)this.values[t]instanceof u.a&&(this.gl.disableVertexAttribArray(t),this.gl.bindBuffer(34962,this.buffer.handle),this.gl.vertexAttribPointer(t,1,5126,!1,0,0))}),this}bindBuffers(){return this.vertexArrayObject.bind(()=>{this.elements&&this.setElementBuffer(this.elements);for(let t=0;t<this.vertexArrayObject.MAX_ATTRIBUTES;t++){const e=this.values[t];e instanceof u.a&&this.setBuffer(t,e)}}),this}bindForDraw(t,e,n){let r;return this.vertexArrayObject.bind(()=>{this._setConstantAttributes(t,e),r=n()}),r}_resolveLocationAndAccessor(t,e,n,i){const o={location:-1,accessor:null},{location:a,name:c}=this._getAttributeIndex(t);if(!Number.isFinite(a)||a<0)return this.unused[t]=e,r.j.once(3,()=>"unused value ".concat(t," in ").concat(this.id))(),o;const u=this._getAttributeInfo(c||a);if(!u)return o;const h=this.accessors[a]||{},f=l.a.resolve(u.accessor,h,n,i),{size:d,type:p}=f;return Object(s.a)(Number.isFinite(d)&&Number.isFinite(p)),{location:a,accessor:f}}_getAttributeInfo(t){return this.configuration&&this.configuration.getAttributeInfo(t)}_getAttributeIndex(t){const e=Number(t);if(Number.isFinite(e))return{location:e};const n=y.exec(t),r=n?n[1]:t,i=n?Number(n[2]):0;return this.configuration?{location:this.configuration.getAttributeLocation(r)+i,name:r}:{location:-1}}_setAttribute(t,e){if(e instanceof u.a)this.setBuffer(t,e);else if(Array.isArray(e)&&e.length&&e[0]instanceof u.a){const n=e[0],r=e[1];this.setBuffer(t,n,r)}else if(ArrayBuffer.isView(e)||Array.isArray(e)){const n=e;this.setConstant(t,n)}else{if(!(e.buffer instanceof u.a))throw new Error("VertexArray: attributes must be Buffers or constants (i.e. typed array)");{const n=e;this.setBuffer(t,n.buffer,n)}}}_setConstantAttributes(t,e){const n=Math.max(0|t,0|e);let r=this.values[0];ArrayBuffer.isView(r)&&this._setConstantAttributeZero(r,n);for(let t=1;t<this.vertexArrayObject.MAX_ATTRIBUTES;t++)r=this.values[t],ArrayBuffer.isView(r)&&this._setConstantAttribute(t,r)}_setConstantAttributeZero(t,e){if(g.isSupported(this.gl,{constantAttributeZero:!0}))return void this._setConstantAttribute(0,t);const n=this.vertexArrayObject.getConstantBuffer(e,t);
27this.vertexArrayObject.setBuffer(0,n,this.accessors[0])}_setConstantAttribute(t,e){g.setConstant(this.gl,t,e)}_updateDrawParams(){const t={isIndexed:!1,isInstanced:!1,indexCount:1/0,vertexCount:1/0,instanceCount:1/0};for(let e=0;e<this.vertexArrayObject.MAX_ATTRIBUTES;e++)this._updateDrawParamsForLocation(t,e);return this.elements&&(t.elementCount=this.elements.getElementCount(this.elements.accessor),t.isIndexed=!0,t.indexType=this.elementsAccessor.type||this.elements.accessor.type,t.indexOffset=this.elementsAccessor.offset||0),t.indexCount===1/0&&(t.indexCount=0),t.vertexCount===1/0&&(t.vertexCount=0),t.instanceCount===1/0&&(t.instanceCount=0),t}_updateDrawParamsForLocation(t,e){const n=this.values[e],r=this.accessors[e];if(!n)return;const{divisor:i}=r,o=i>0;if(t.isInstanced=t.isInstanced||o,n instanceof u.a){const e=n;if(o){const n=e.getVertexCount(r);t.instanceCount=Math.min(t.instanceCount,n)}else{const n=e.getVertexCount(r);t.vertexCount=Math.min(t.vertexCount,n)}}}setElements(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r.j.deprecated("setElements","setElementBuffer")(),this.setElementBuffer(t,e)}}var b=n(2275),x=n(197),w=n(360);function E(t,e){const{maxElts:n=16,size:r=1}=e;let i="[";for(let o=0;o<t.length&&o<n;++o)o>0&&(i+=",".concat(o%r==0?" ":"")),i+=S(t[o],e);const o=t.length>n?"...":"]";return"".concat(i).concat(o)}function S(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=1e-16,{isInteger:r=!1}=e;if(Array.isArray(t)||ArrayBuffer.isView(t))return E(t,e);if(!Number.isFinite(t))return String(t);if(Math.abs(t)<n)return r?"0":"0.";if(r)return t.toFixed(0);if(Math.abs(t)>100&&Math.abs(t)<1e4)return t.toFixed(0);const i=t.toPrecision(2),o=i.indexOf(".0");return o===i.length-2?i.slice(0,-1):i}function C(t,e,n,r){const{gl:i}=t;if(!e)return{[r]:"null","Format ":"N/A"};let o,s,a,c="NOT PROVIDED",l=1,h=0,f=0;if(n&&(c=n.type,l=n.size,c=String(c).replace("Array",""),o=-1!==c.indexOf("nt")),e instanceof u.a){const t=e,{data:u,changed:d}=t.getDebugData();let p;if(s=d?"*":"",a=u,f=t.byteLength,h=f/u.BYTES_PER_ELEMENT/l,n){const t=n.divisor>0;p="".concat(t?"I ":"P "," ").concat(h," (x").concat(l,"=").concat(f," bytes ").concat(Object(x.a)(i,c),")")}else o=!0,p="".concat(f," bytes");return{[r]:"".concat(s).concat(S(a,{size:l,isInteger:o})),"Format ":p}}return a=e,l=e.length,c=String(e.constructor.name).replace("Array",""),o=-1!==c.indexOf("nt"),{[r]:"".concat(S(a,{size:l,isInteger:o})," (constant)"),"Format ":"".concat(l,"x").concat(c," (constant)")}}function A(t,e){const{type:n,size:r}=e,i=Object(w.b)(n,r);return i?"".concat(t," (").concat(i.name,")"):t}function I(t){let{header:e="Uniforms",program:n,uniforms:r,undefinedOnly:i=!1}=t;Object(s.a)(n);const o=n._uniformSetters,a={},c=Object.keys(o).sort();let l=0;for(const t of c)t.match(".*_.*")||t.match(".*Matrix")||T({table:a,header:e,uniforms:r,uniformName:t,undefinedOnly:i})&&l++;for(const t of c)t.match(".*Matrix")&&T({table:a,header:e,uniforms:r,uniformName:t,undefinedOnly:i})&&l++;for(const t of c)a[t]||T({table:a,header:e,uniforms:r,uniformName:t,undefinedOnly:i})&&l++;let u=0;const h={};if(!i)for(const t in r){const n=r[t];a[t]||(u++,h[t]={Type:"NOT USED: ".concat(n),[e]:S(n)})}return{table:a,count:l,unusedTable:h,unusedCount:u}}function T(t){let{table:e,header:n,uniforms:r,uniformName:i,undefinedOnly:o}=t;const s=r[i],a=function(t){return null!=t}(s);return(!o||!a)&&(e[i]={[n]:a?S(s):"N/A","Uniform Type":a?s:"NOT PROVIDED"},!0)}function M(t){const{type:e,size:n}=t.accessor,r=Object(w.b)(e,n);return r?"".concat(r.name," ").concat(t.name):t.name}const F={POSITION:"positions",NORMAL:"normals",COLOR_0:"colors",TEXCOORD_0:"texCoords",TEXCOORD_1:"texCoords1",TEXCOORD_2:"texCoords2"};function B(t,e){const{attributeMap:n=F}=e||{};return n&&n[t]||t}function L(t,e){let n;switch(t){case"texCoords":case"texCoord1":case"texCoord2":case"texCoord3":n="uvs";break;case"vertices":case"positions":case"normals":case"pickingColors":n="vectors"}switch(n){case"vectors":e.size=e.size||3;break;case"uvs":e.size=e.size||2}Object(s.a)(Number.isFinite(e.size),"attribute ".concat(t," needs size"))}const O=()=>{},U={};class k{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{id:n=Object(o.c)("model")}=e;Object(s.a)(Object(r.h)(t)),this.id=n,this.gl=t,this.id=e.id||Object(o.c)("Model"),this.lastLogTime=0,this.animated=!1,this.initialize(e)}initialize(t){this.props={},this.programManager=t.programManager||i.a.getDefaultProgramManager(this.gl),this._programManagerState=-1,this._managedProgram=!1;const{program:e=null,vs:n,fs:r,modules:o,defines:a,inject:c,varyings:l,bufferMode:u,transpileToGLSL100:h}=t;this.programProps={program:e,vs:n,fs:r,modules:o,defines:a,inject:c,varyings:l,bufferMode:u,transpileToGLSL100:h},this.program=null,this.vertexArray=null,this._programDirty=!0,this.userData={},this.needsRedraw=!0,this._attributes={},this.attributes={},this.uniforms={},this.pickable=!0,this._checkProgram(),this.setUniforms(Object.assign({},this.getModuleUniforms(t.moduleSettings))),this.drawMode=void 0!==t.drawMode?t.drawMode:4,this.vertexCount=t.vertexCount||0,this.geometryBuffers={},this.isInstanced=t.isInstanced||t.instanced||t.instanceCount>0,this._setModelProps(t),this.geometry={},Object(s.a)(void 0!==this.drawMode&&Number.isFinite(this.vertexCount),"Model needs drawMode and vertexCount")}setProps(t){this._setModelProps(t)}delete(){for(const t in this._attributes)this._attributes[t]!==this.attributes[t]&&this._attributes[t].delete();this._managedProgram&&(this.programManager.release(this.program),this._managedProgram=!1),this.vertexArray.delete(),this._deleteGeometryBuffers()}getDrawMode(){return this.drawMode}getVertexCount(){return this.vertexCount}getInstanceCount(){return this.instanceCount}getAttributes(){return this.attributes}getProgram(){return this.program}setProgram(t){const{program:e,vs:n,fs:r,modules:i,defines:o,inject:s,varyings:a,bufferMode:c,transpileToGLSL100:l}=t;this.programProps={program:e,vs:n,fs:r,modules:i,defines:o,inject:s,varyings:a,bufferMode:c,transpileToGLSL100:l},this._programDirty=!0}getUniforms(){return this.uniforms}setDrawMode(t){return this.drawMode=t,this}setVertexCount(t){return Object(s.a)(Number.isFinite(t)),this.vertexCount=t,this}setInstanceCount(t){return Object(s.a)(Number.isFinite(t)),this.instanceCount=t,this}setGeometry(t){return this.drawMode=t.drawMode,this.vertexCount=t.getVertexCount(),this._deleteGeometryBuffers(),this.geometryBuffers=function(t,e,n){const r={};let i=e.indices;for(const o in e.attributes){const s=e.attributes[o],a=B(o,n);if("indices"===o)i=s;else if(s.constant)r[a]=s.value;
27else{const e=s.value,n={...s};delete n.value,r[a]=[new u.a(t,e),n],L(o,n)}}if(i){const e=i.value||i;Object(s.a)(e instanceof Uint16Array||e instanceof Uint32Array,'attribute array for "indices" must be of integer type');const n={size:1,isIndexed:void 0===i.isIndexed||i.isIndexed};r.indices=[new u.a(t,{data:e,target:34963}),n]}return r}(this.gl,t),this.vertexArray.setAttributes(this.geometryBuffers),this}setAttributes(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(Object(o.a)(t))return this;const e={};for(const n in t){const r=t[n];e[n]=r.getValue?r.getValue():r}return this.vertexArray.setAttributes(e),this}setUniforms(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign(this.uniforms,t),this}getModuleUniforms(t){this._checkProgram();const e=this.programManager.getUniforms(this.program);return e?e(t):{}}updateModuleSettings(t){const e=this.getModuleUniforms(t||{});return this.setUniforms(e)}clear(t){return Object(a.a)(this.program.gl,t),this}draw(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._checkProgram();const{moduleSettings:e=null,framebuffer:n,uniforms:i={},attributes:o={},transformFeedback:s=this.transformFeedback,parameters:a={},vertexArray:c=this.vertexArray}=t;let l;this.setAttributes(o),this.updateModuleSettings(e),this.setUniforms(i),r.j.priority>=2&&(l=this._logDrawCallStart(2));const u=this.vertexArray.getDrawParams(),{isIndexed:h=u.isIndexed,indexType:f=u.indexType,indexOffset:d=u.indexOffset,vertexArrayInstanced:p=u.isInstanced}=this.props;p&&!this.isInstanced&&r.j.warn("Found instanced attributes on non-instanced model",this.id)();const{isInstanced:g,instanceCount:m}=this,{onBeforeRender:y=O,onAfterRender:_=O}=this.props;y(),this.program.setUniforms(this.uniforms);const v=this.program.draw(Object.assign(U,t,{logPriority:l,uniforms:null,framebuffer:n,parameters:a,drawMode:this.getDrawMode(),vertexCount:this.getVertexCount(),vertexArray:c,transformFeedback:s,isIndexed:h,indexType:f,isInstanced:g,instanceCount:m,offset:h?d:0}));return _(),r.j.priority>=2&&this._logDrawCallEnd(l,c,n),v}transform(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{discard:e=!0,feedbackBuffers:n,unbindModels:r=[]}=t;let{parameters:i}=t;n&&this._setFeedbackBuffers(n),e&&(i=Object.assign({},i,{35977:e})),r.forEach(t=>t.vertexArray.unbindBuffers());try{this.draw(Object.assign({},t,{parameters:i}))}finally{r.forEach(t=>t.vertexArray.bindBuffers())}return this}render(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.j.warn("Model.render() is deprecated. Use Model.setUniforms() and Model.draw()")(),this.setUniforms(t).draw()}_setModelProps(t){Object.assign(this.props,t),"uniforms"in t&&this.setUniforms(t.uniforms),"pickable"in t&&(this.pickable=t.pickable),"instanceCount"in t&&(this.instanceCount=t.instanceCount),"geometry"in t&&this.setGeometry(t.geometry),"attributes"in t&&this.setAttributes(t.attributes),"_feedbackBuffers"in t&&this._setFeedbackBuffers(t._feedbackBuffers)}_checkProgram(){if(!(this._programDirty||this.programManager.stateHash!==this._programManagerState))return;let{program:t}=this.programProps;if(t)this._managedProgram=!1;else{const{vs:e,fs:n,modules:r,inject:i,defines:o,varyings:s,bufferMode:a,transpileToGLSL100:c}=this.programProps;t=this.programManager.get({vs:e,fs:n,modules:r,inject:i,defines:o,varyings:s,bufferMode:a,transpileToGLSL100:c}),this.program&&this._managedProgram&&this.programManager.release(this.program),this._programManagerState=this.programManager.stateHash,this._managedProgram=!0}Object(s.a)(t instanceof c.a,"Model needs a program"),this._programDirty=!1,t!==this.program&&(this.program=t,this.vertexArray?this.vertexArray.setProps({program:this.program,attributes:this.vertexArray.attributes}):this.vertexArray=new v(this.gl,{program:this.program}),this.setUniforms(Object.assign({},this.getModuleUniforms())))}_deleteGeometryBuffers(){for(const t in this.geometryBuffers){const e=this.geometryBuffers[t][0]||this.geometryBuffers[t];e instanceof u.a&&e.delete()}}_setAnimationProps(t){this.animated&&Object(s.a)(t,"Model.draw(): animated uniforms but no animationProps")}_setFeedbackBuffers(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(Object(o.a)(t))return this;const{gl:e}=this.program;return this.transformFeedback=this.transformFeedback||new b.a(e,{program:this.program}),this.transformFeedback.setBuffers(t),this}_logDrawCallStart(t){const e=t>3?0:1e4;
27if(!(Date.now()-this.lastLogTime<e))return this.lastLogTime=Date.now(),r.j.group(2,">>> DRAWING MODEL ".concat(this.id),{collapsed:r.j.level<=2})(),t}_logDrawCallEnd(t,e,n,i){if(void 0===t)return;const o=function(t){let{vertexArray:e,header:n="Attributes"}=t;if(!e.configuration)return{};const r={};e.elements&&(r.ELEMENT_ARRAY_BUFFER=C(e,e.elements,null,n));const i=e.values;for(const t in i){const o=e._getAttributeInfo(t);if(o){let s="".concat(t,": ").concat(o.name);const a=e.accessors[o.location];a&&(s="".concat(t,": ").concat(A(o.name,a))),r[s]=C(e,i[t],a,n)}}return r}({vertexArray:e,header:"".concat(this.id," attributes"),attributes:this._attributes}),{table:s,unusedTable:a,unusedCount:c}=I({header:"".concat(this.id," uniforms"),program:this.program,uniforms:Object.assign({},this.program.uniforms,n)}),{table:l,count:u}=I({header:"".concat(this.id," uniforms"),program:this.program,uniforms:Object.assign({},this.program.uniforms,n),undefinedOnly:!0});u>0&&r.j.log("MISSING UNIFORMS",Object.keys(l))(),c>0&&r.j.log("UNUSED UNIFORMS",Object.keys(a))();const h=function(t){const e={},n="Accessors for ".concat(t.id);for(const r of t.attributeInfos)if(r){const t=M(r);e["in ".concat(t)]={[n]:JSON.stringify(r.accessor)}}for(const r of t.varyingInfos)if(r){const t=M(r);e["out ".concat(t)]={[n]:JSON.stringify(r.accessor)}}return e}(this.vertexArray.configuration);r.j.table(t,o)(),r.j.table(t,s)(),r.j.table(t+1,h)(),i&&i.log({logLevel:2,message:"Rendered to ".concat(i.id)}),r.j.groupEnd(2)()}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return P}));var r=n(324),i=n(707);const o={number:{validate:(t,e)=>Number.isFinite(t)&&(!("max"in e)||t<=e.max)&&(!("min"in e)||t>=e.min)},array:{validate:(t,e)=>Array.isArray(t)||ArrayBuffer.isView(t)}};function s(t){let e=a(t);return"object"===e?t?"type"in t?Object.assign({},t,o[t.type]):"value"in t?(e=a(t.value),Object.assign({type:e},t,o[e])):{type:"object",value:t}:{type:"object",value:null}:Object.assign({type:e,value:t},o[e])}function a(t){return Array.isArray(t)||ArrayBuffer.isView(t)?"array":typeof t}class c{constructor(t){let{name:e,vs:n,fs:r,dependencies:o=[],uniforms:a,getUniforms:c,deprecations:l=[],defines:u={},inject:h={},vertexShader:f,fragmentShader:d}=t;Object(i.a)("string"==typeof e),this.name=e,this.vs=n||f,this.fs=r||d,this.getModuleUniforms=c,this.dependencies=o,this.deprecations=this._parseDeprecationDefinitions(l),this.defines=u,this.injections=function(t){const e={vs:{},fs:{}};for(const n in t){let r=t[n];const i=n.slice(0,2);"string"==typeof r&&(r={order:0,injection:r}),e[i][n]=r}return e}(h),a&&(this.uniforms=function(t){const e={};for(const n in t){const r=s(t[n]);e[n]=r}return e}(a))}getModuleSource(t){let e;switch(t){case"vs":e=this.vs||"";break;case"fs":e=this.fs||"";break;default:Object(i.a)(!1)}return"#define MODULE_".concat(this.name.toUpperCase().replace(/[^0-9a-z]/gi,"_"),"\n").concat(e,"// END MODULE_").concat(this.name,"\n\n")}getUniforms(t,e){return this.getModuleUniforms?this.getModuleUniforms(t,e):this.uniforms?this._defaultGetUniforms(t):{}}getDefines(){return this.defines}checkDeprecations(t,e){this.deprecations.forEach(n=>{n.regex.test(t)&&(n.deprecated?e.deprecated(n.old,n.new)():e.removed(n.old,n.new)())})}_parseDeprecationDefinitions(t){return t.forEach(t=>{switch(t.type){case"function":t.regex=new RegExp("\\b".concat(t.old,"\\("));break;default:t.regex=new RegExp("".concat(t.type," ").concat(t.old,";"))}}),t}_defaultGetUniforms(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const e={},n=this.uniforms;for(const r in n){const o=n[r];r in t&&!o.private?(o.validate&&Object(i.a)(o.validate(t[r],o),"".concat(this.name,": invalid ").concat(r)),e[r]=t[r]):e[r]=o.value}return e}}function l(t){return u(function t(e,n){return e.map(e=>(e instanceof c||(Object(i.a)("string"!=typeof e,"Shader module use by name is deprecated. Import shader module '".concat(e,"' and use it directly.")),Object(i.a)(e.name,"shader module has no name"),(e=new c(e)).dependencies=t(e.dependencies)),e))}(t))}function u(t){const e={},n={};return h({modules:t,level:0,moduleMap:e,moduleDepth:n}),Object.keys(n).sort((t,e)=>n[e]-n[t]).map(t=>e[t])}function h(t){let{modules:e,level:n,moduleMap:r,moduleDepth:i}=t;if(n>=5)throw new Error("Possible loop in shader dependency graph");for(const t of e)r[t.name]=t,(void 0===i[t.name]||i[t.name]<n)&&(i[t.name]=n);for(const t of e)t.dependencies&&h({modules:t.dependencies,level:n+1,moduleMap:r,moduleDepth:i})}function f(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const e="undefined"!=typeof window&&window.navigator||{},n=t.userAgent||e.userAgent||"",r=-1!==n.indexOf("MSIE "),i=-1!==n.indexOf("Trident/");return r||i}const d={GLSL_FRAG_DATA:["WEBGL_draw_buffers",!0],GLSL_FRAG_DEPTH:["EXT_frag_depth",!0],GLSL_DERIVATIVES:["OES_standard_derivatives",!0],GLSL_TEXTURE_LOD:["EXT_shader_texture_lod",!0]},p={};
27Object.keys(d).forEach(t=>{p[t]=t});const g={};function m(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=d[e];if(Object(i.a)(r,e),!f(n))return!0;if(e in g)return g[e];const o=r[0],s=n.behavior||"enable",a="#extension GL_".concat(o," : ").concat(s,"\nvoid main(void) {}"),c=t.createShader(35633);t.shaderSource(c,a),t.compileShader(c);const l=t.getShaderParameter(c,35713);return t.deleteShader(c),g[e]=l,l}function y(t,e){const n=d[e];Object(i.a)(n,e);const r=function(t){return"undefined"!=typeof WebGL2RenderingContext&&t instanceof WebGL2RenderingContext||Boolean(t&&2===t._version)}(t)&&n[1]||n[0],o="string"==typeof r?Boolean(t.getExtension(r)):r;return Object(i.a)(!1===o||!0===o),o}function _(t,e){return(e=Array.isArray(e)?e:[e]).every(e=>y(t,e))}var v=n(710);function b(t){return new RegExp("\\b".concat(t,"[ \\t]+(\\w+[ \\t]+\\w+(\\[\\w+\\])?;)"),"g")}const x=[[/^(#version[ \t]+(100|300[ \t]+es))?[ \t]*\n/,"#version 300 es\n"],[/\btexture(2D|2DProj|Cube)Lod(EXT)?\(/g,"textureLod("],[/\btexture(2D|2DProj|Cube)(EXT)?\(/g,"texture("]],w=[...x,[b("attribute"),"in $1"],[b("varying"),"out $1"]],E=[...x,[b("varying"),"in $1"]],S=[[/^#version[ \t]+300[ \t]+es/,"#version 100"],[/\btexture(2D|2DProj|Cube)Lod\(/g,"texture$1LodEXT("],[/\btexture\(/g,"texture2D("],[/\btextureLod\(/g,"texture2DLodEXT("]],C=[...S,[b("in"),"attribute $1"],[b("out"),"varying $1"]],A=[...S,[b("in"),"varying $1"]],I=/\bout[ \t]+vec4[ \t]+(\w+)[ \t]*;\n?/,T=/void\s+main\s*\([^)]*\)\s*\{\n?/;function M(t,e,n){switch(e){case 300:return n?F(t,w):function(t){const e=(t=F(t,E)).match(I);if(e){const n=e[1];t=t.replace(new RegExp("\\b".concat("gl_FragColor","\\b"),"g"),n)}else{const e="fragmentColor";t=t.replace(T,t=>"out vec4 ".concat(e,";\n").concat(t)).replace(new RegExp("\\b".concat("gl_FragColor","\\b"),"g"),e)}return t}(t);case 100:return n?F(t,C):function(t){const e=(t=F(t,A)).match(I);if(e){const n=e[1];t=t.replace(I,"").replace(new RegExp("\\b".concat(n,"\\b"),"g"),"gl_FragColor")}return t}(t);default:throw new Error("unknown GLSL version ".concat(e))}}function F(t,e){for(const[n,r]of e)t=t.replace(n,r);return t}const B="\n\n".concat(v.a,"\n\n"),L={[r.b]:"vertex",[r.a]:"fragment"};function O(t,e){let{id:n,source:o,type:s,modules:a,defines:c={},hookFunctions:l=[],inject:u={},transpileToGLSL100:h=!1,prologue:f=!0,log:d}=e;Object(i.a)("string"==typeof o,"shader source must be a string");const g=s===r.b,y=o.split("\n");let b=100,x="",w=o;0===y[0].indexOf("#version ")?(b=300,x=y[0],w=y.slice(1).join("\n")):x="#version ".concat(b);const E={};a.forEach(t=>{Object.assign(E,t.getDefines())}),Object.assign(E,c);let S=f?"".concat(x,"\n").concat(function(t){let{id:e,source:n,type:r}=t;return e&&"string"==typeof e&&-1===n.indexOf("SHADER_NAME")?"\n#define SHADER_NAME ".concat(e,"_").concat(L[r],"\n\n"):""}({id:n,source:o,type:s}),"\n").concat(function(t){let{type:e}=t;return"\n#define SHADER_TYPE_".concat(L[e].toUpperCase(),"\n")}({type:s}),"\n").concat(function(t){switch(function(t){const e=t.getExtension("WEBGL_debug_renderer_info"),n=t.getParameter(e&&e.UNMASKED_VENDOR_WEBGL||7936),r=t.getParameter(e&&e.UNMASKED_RENDERER_WEBGL||7937);return{gpuVendor:function(t,e){if(t.match(/NVIDIA/i)||e.match(/NVIDIA/i))return"NVIDIA";if(t.match(/INTEL/i)||e.match(/INTEL/i))return"INTEL";if(t.match(/AMD/i)||e.match(/AMD/i)||t.match(/ATI/i)||e.match(/ATI/i))return"AMD";return"UNKNOWN GPU"}(n,r),vendor:n,renderer:r,version:t.getParameter(7938),shadingLanguageVersion:t.getParameter(35724)}}(t).gpuVendor.toLowerCase()){case"nvidia":return"#define NVIDIA_GPU\n// Nvidia optimizes away the calculation necessary for emulated fp64\n#define LUMA_FP64_CODE_ELIMINATION_WORKAROUND 1\n";case"intel":return"#define INTEL_GPU\n// Intel optimizes away the calculation necessary for emulated fp64\n#define LUMA_FP64_CODE_ELIMINATION_WORKAROUND 1\n// Intel's built-in 'tan' function doesn't have acceptable precision\n#define LUMA_FP32_TAN_PRECISION_WORKAROUND 1\n// Intel GPU doesn't have full 32 bits precision in same cases, causes overflow\n#define LUMA_FP64_HIGH_BITS_OVERFLOW_WORKAROUND 1\n";case"amd":return"#define AMD_GPU\n";default:return"#define DEFAULT_GPU\n// Prevent driver from optimizing away the calculation necessary for emulated fp64\n#define LUMA_FP64_CODE_ELIMINATION_WORKAROUND 1\n// Intel's built-in 'tan' function doesn't have acceptable precision\n#define LUMA_FP32_TAN_PRECISION_WORKAROUND 1\n// Intel GPU doesn't have full 32 bits precision in same cases, causes overflow\n#define LUMA_FP64_HIGH_BITS_OVERFLOW_WORKAROUND 1\n"}}(t),"\n").concat(function(t,e,n){let r="#if (__VERSION__ > 120)\n\n# define FEATURE_GLSL_DERIVATIVES\n# define FEATURE_GLSL_DRAW_BUFFERS\n# define FEATURE_GLSL_FRAG_DEPTH\n# define FEATURE_GLSL_TEXTURE_LOD\n\n// DEPRECATED FLAGS, remove in v9\n# define FRAG_DEPTH\n# define DERIVATIVES\n# define DRAW_BUFFERS\n# define TEXTURE_LOD\n\n#endif // __VERSION\n";return _(t,p.GLSL_FRAG_DEPTH)&&(r+="\n// FRAG_DEPTH => gl_FragDepth is available\n#ifdef GL_EXT_frag_depth\n#extension GL_EXT_frag_depth : enable\n# define FEATURE_GLSL_FRAG_DEPTH\n# define FRAG_DEPTH\n# define gl_FragDepth gl_FragDepthEXT\n#endif\n"),_(t,p.GLSL_DERIVATIVES)&&m(t,p.GLSL_DERIVATIVES)&&(r+="\n// DERIVATIVES => dxdF, dxdY and fwidth are available\n#ifdef GL_OES_standard_derivatives\n#extension GL_OES_standard_derivatives : enable\n# define FEATURE_GLSL_DERIVATIVES\n# define DERIVATIVES\n#endif\n"),_(t,p.GLSL_FRAG_DATA)&&m(t,p.GLSL_FRAG_DATA,{behavior:"require"})&&(r+="\n// DRAW_BUFFERS => gl_FragData[] is available\n#ifdef GL_EXT_draw_buffers\n#extension GL_EXT_draw_buffers : require\n#define FEATURE_GLSL_DRAW_BUFFERS\n#define DRAW_BUFFERS\n#endif\n"),_(t,p.GLSL_TEXTURE_LOD)&&(r+="// TEXTURE_LOD => texture2DLod etc are available\n#ifdef GL_EXT_shader_texture_lod\n#extension GL_EXT_shader_texture_lod : enable\n\n# define FEATURE_GLSL_TEXTURE_LOD\n# define TEXTURE_LOD\n\n#endif\n"),r}(t),"\n").concat(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=0,n="";for(const r in t){0===e&&(n+="\n// APPLICATION DEFINES\n"),e++;const i=t[r];(i||Number.isFinite(i))&&(n+="#define ".concat(r.toUpperCase()," ").concat(t[r],"\n"))}0===e&&(n+="\n");return n}(E),"\n").concat(g?"":"precision highp float;\n\n","\n"):"".concat(x,"\n");const C=function(t){const e={vs:{},fs:{}};return t.forEach(t=>{let n;"string"!=typeof t?(n=t,t=n.hook):n={},t=t.trim();const[r,i]=t.split(":"),o=t.replace(/\(.+/,"");e[r][o]=Object.assign(n,{signature:i})}),e}(l),A={},I={},T={};for(const t in u){const e="string"==typeof u[t]?{injection:u[t],order:0}:u[t],n=t.match(/^(v|f)s:(#)?([\w-]+)$/);if(n){const r=n[2],i=n[3];r?"decl"===i?I[t]=[e]:T[t]=[e]:A[t]=[e]}else T[t]=[e]}for(const t of a){d&&t.checkDeprecations(w,d);S+=t.getModuleSource(s,b);const e=t.injections[s];for(const t in e){const n=t.match(/^(v|f)s:#([\w-]+)$/);if(n){const r="decl"===n[2]?I:T;r[t]=r[t]||[],r[t].push(e[t])}else A[t]=A[t]||[],A[t].push(e[t])}}return S+=B,S=Object(v.c)(S,s,I),S+=function(t,e){let n="";for(const r in t){const i=t[r];
27if(n+="void ".concat(i.signature," {\n"),i.header&&(n+=" ".concat(i.header)),e[r]){const t=e[r];t.sort((t,e)=>t.order-e.order);for(const e of t)n+=" ".concat(e.injection,"\n")}i.footer&&(n+=" ".concat(i.footer)),n+="}\n"}return n}(C[s],A),S+=w,S=Object(v.c)(S,s,T),S=M(S,h?100:b,g),S}function U(t){return function(e){const n={};for(const r of t){const t=r.getUniforms(e,n);Object.assign(n,t)}return n}}var k=n(2327);class P{static getDefaultProgramManager(t){return t.luma=t.luma||{},t.luma.defaultProgramManager=t.luma.defaultProgramManager||new P(t),t.luma.defaultProgramManager}constructor(t){this.gl=t,this._programCache={},this._getUniforms={},this._registeredModules={},this._hookFunctions=[],this._defaultModules=[],this._hashes={},this._hashCounter=0,this.stateHash=0,this._useCounts={}}addDefaultModule(t){this._defaultModules.find(e=>e.name===t.name)||this._defaultModules.push(t),this.stateHash++}removeDefaultModule(t){const e="string"==typeof t?t:t.name;this._defaultModules=this._defaultModules.filter(t=>t.name!==e),this.stateHash++}addShaderHook(t,e){e&&(t=Object.assign(e,{hook:t})),this._hookFunctions.push(t),this.stateHash++}get(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{vs:e="",fs:n="",defines:i={},inject:o={},varyings:s=[],bufferMode:a=35981,transpileToGLSL100:c=!1}=t,u=this._getModuleList(t.modules),h=this._getHash(e),f=this._getHash(n),d=u.map(t=>this._getHash(t.name)).sort(),p=s.map(t=>this._getHash(t)),g=Object.keys(i).sort(),m=Object.keys(o).sort(),y=[],_=[];for(const t of g)y.push(this._getHash(t)),y.push(this._getHash(i[t]));for(const t of m)_.push(this._getHash(t)),_.push(this._getHash(o[t]));const v="".concat(h,"/").concat(f,"D").concat(y.join("/"),"M").concat(d.join("/"),"I").concat(_.join("/"),"V").concat(p.join("/"),"H").concat(this.stateHash,"B").concat(a).concat(c?"T":"");if(!this._programCache[v]){const t=function(t,e){const{vs:n,fs:i}=e,o=l(e.modules||[]);return{gl:t,vs:O(t,Object.assign({},e,{source:n,type:r.b,modules:o})),fs:O(t,Object.assign({},e,{source:i,type:r.a,modules:o})),getUniforms:U(o)}}(this.gl,{vs:e,fs:n,modules:u,inject:o,defines:i,hookFunctions:this._hookFunctions,transpileToGLSL100:c});this._programCache[v]=new k.a(this.gl,{hash:v,vs:t.vs,fs:t.fs,varyings:s,bufferMode:a}),this._getUniforms[v]=t.getUniforms||(t=>{}),this._useCounts[v]=0}return this._useCounts[v]++,this._programCache[v]}getUniforms(t){return this._getUniforms[t.hash]||null}release(t){const e=t.hash;this._useCounts[e]--,0===this._useCounts[e]&&(this._programCache[e].delete(),delete this._programCache[e],delete this._getUniforms[e],delete this._useCounts[e])}_getHash(t){return void 0===this._hashes[t]&&(this._hashes[t]=this._hashCounter++),this._hashes[t]}_getModuleList(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const e=new Array(this._defaultModules.length+t.length),n={};let r=0;for(let t=0,i=this._defaultModules.length;t<i;++t){const i=this._defaultModules[t],o=i.name;e[r++]=i,n[o]=!0}for(let i=0,o=t.length;i<o;++i){const o=t[i],s=o.name;n[s]||(e[r++]=o,n[s]=!0)}return e.length=r,e}}},function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"a",(function(){return s}));var i=n(593);class o{constructor(t,e){r(this,"name",void 0),r(this,"type",void 0),r(this,"sampleSize",1),r(this,"time",void 0),r(this,"count",void 0),r(this,"samples",void 0),r(this,"lastTiming",void 0),r(this,"lastSampleTime",void 0),r(this,"lastSampleCount",void 0),r(this,"_count",0),r(this,"_time",0),r(this,"_samples",0),r(this,"_startTime",0),r(this,"_timerPending",!1),this.name=t,this.type=e,this.reset()}setSampleSize(t){return this.sampleSize=t,this}incrementCount(){return this.addCount(1),this}decrementCount(){return this.subtractCount(1),this}addCount(t){return this._count+=t,this._samples++,this._checkSampling(),this}subtractCount(t){return this._count-=t,this._samples++,this._checkSampling(),this}addTime(t){return this._time+=t,this.lastTiming=t,this._samples++,this._checkSampling(),this}timeStart(){return this._startTime=Object(i.a)(),this._timerPending=!0,this}timeEnd(){return this._timerPending?(this.addTime(Object(i.a)()-this._startTime),this._timerPending=!1,this._checkSampling(),this):this}getSampleAverageCount(){return this.sampleSize>0?this.lastSampleCount/this.sampleSize:0}getSampleAverageTime(){return this.sampleSize>0?this.lastSampleTime/this.sampleSize:0}getSampleHz(){return this.lastSampleTime>0?this.sampleSize/(this.lastSampleTime/1e3):0}getAverageCount(){return this.samples>0?this.count/this.samples:0}getAverageTime(){return this.samples>0?this.time/this.samples:0}getHz(){return this.time>0?this.samples/(this.time/1e3):0}reset(){return this.time=0,this.count=0,this.samples=0,this.lastTiming=0,this.lastSampleTime=0,this.lastSampleCount=0,this._count=0,this._time=0,this._samples=0,this._startTime=0,this._timerPending=!1,this}_checkSampling(){this._samples===this.sampleSize&&(this.lastSampleTime=this._time,this.lastSampleCount=this._count,this.count+=this._count,this.time+=this._time,this.samples+=this._samples,this._time=0,this._count=0,this._samples=0)}}class s{constructor(t){r(this,"id",void 0),r(this,"stats",{}),this.id=t.id,this.stats={},this._initializeStats(t.stats),Object.seal(this)}get(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"count";return this._getOrCreate({name:t,type:e})}get size(){return Object.keys(this.stats).length}reset(){for(const t in this.stats)this.stats[t].reset();return this}forEach(t){for(const e in this.stats)t(this.stats[e])}getTable(){const t={};
27return this.forEach(e=>{t[e.name]={time:e.time||0,count:e.count||0,average:e.getAverageTime()||0,hz:e.getHz()||0}}),t}_initializeStats(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach(t=>this._getOrCreate(t))}_getOrCreate(t){if(!t||!t.name)return null;const{name:e,type:n}=t;return this.stats[e]||(this.stats[e]=t instanceof o?t:new o(e,n)),this.stats[e]}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return d})),n.d(e,"b",(function(){return p}));var r=n(527),i=n(16),o=n(241);const s=[34069,34070,34071,34072,34073,34074];class a extends o.a{get[Symbol.toStringTag](){return"TextureCube"}constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object(i.b)(t),super(t,Object.assign({},e,{target:34067})),this.initialize(e),Object.seal(this)}initialize(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{mipmaps:e=!0,parameters:n={}}=t;return this.opts=t,this.setCubeMapImageData(t).then(()=>{this.loaded=!0,e&&this.generateMipmap(t),this.setParameters(n)}),this}subImage(t){let{face:e,data:n,x:r=0,y:i=0,mipmapLevel:o=0}=t;return this._subImage({target:e,data:n,x:r,y:i,mipmapLevel:o})}async setCubeMapImageData(t){let{width:e,height:n,pixels:r,data:o,border:a=0,format:c=6408,type:l=5121}=t;const{gl:u}=this,h=r||o,f=await Promise.all(s.map(t=>{const e=h[t];return Promise.all(Array.isArray(e)?e:[e])}));
27this.bind(),s.forEach((t,r)=>{f[r].length>1&&!1!==this.opts.mipmaps&&i.j.warn("".concat(this.id," has mipmap and multiple LODs."))(),f[r].forEach((r,i)=>{e&&n?u.texImage2D(t,i,c,e,n,a,c,l,r):u.texImage2D(t,i,c,c,l,r)})}),this.unbind()}setImageDataForFace(t){const{face:e,width:n,height:r,pixels:i,data:o,border:s=0,format:a=6408,type:c=5121}=t,{gl:l}=this,u=i||o;return this.bind(),u instanceof Promise?u.then(n=>this.setImageDataForFace(Object.assign({},t,{face:e,data:n,pixels:n}))):this.width||this.height?l.texImage2D(e,0,a,n,r,s,a,c,u):l.texImage2D(e,0,a,a,c,u),this}}a.FACES=s;var c=n(363),l=n(128);class u extends o.a{get[Symbol.toStringTag](){return"Texture3D"}static isSupported(t){return Object(i.i)(t)}constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object(i.a)(t),e=Object.assign({depth:1},e,{target:32879,unpackFlipY:!1}),super(t,e),this.initialize(e),Object.seal(this)}setImageData(t){let{level:e=0,dataFormat:n=6408,width:r,height:o,depth:s=1,border:a=0,format:u,type:h=5121,offset:f=0,data:d,parameters:p={}}=t;if(this._trackDeallocatedMemory("Texture"),this.gl.bindTexture(this.target,this.handle),Object(i.n)(this.gl,p,()=>{ArrayBuffer.isView(d)&&this.gl.texImage3D(this.target,e,n,r,o,s,a,u,h,d),d instanceof l.a&&(this.gl.bindBuffer(35052,d.handle),this.gl.texImage3D(this.target,e,n,r,o,s,a,u,h,f))}),d&&d.byteLength)this._trackAllocatedMemory(d.byteLength,"Texture");else{const t=c.a[this.dataFormat]||4,e=c.c[this.type]||1;this._trackAllocatedMemory(this.width*this.height*this.depth*t*e,"Texture")}return this.loaded=!0,this}}var h=n(321),f=n(20);function d(t,e){Object(f.a)(t instanceof r.a||t instanceof a||t instanceof u);const n=t.constructor,{gl:i,width:o,height:s,format:c,type:l,dataFormat:h,border:d,mipmaps:p}=t;return new n(i,Object.assign({width:o,height:s,format:c,type:l,dataFormat:h,border:d,mipmaps:p},e))}function p(t,e){const{gl:n,width:r,height:i,id:o}=t;return new h.a(n,Object.assign({},e,{id:"framebuffer-for-".concat(o),width:r,height:i,attachments:{36064:t}}))}},,,,,,,,,,,,,,function(t,e,n){var r=n(56),i=n(303),o=n(1612);
27t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return i(n),o(r),e?t(n,r):n.__proto__=r,n}}():void 0)},,,,,,,,,function(t,e,n){var r=n(1237),i=n(1019);t.exports=Object.keys||function(t){return r(t,i)}},function(t,e,n){var r=n(26),i=n(229),o=n(294),s=n(303),a=n(553),c=n(1188),l=r.TypeError;t.exports=function(t,e){var n=arguments.length<2?c(t):e;if(o(n))return s(i(n,t));throw l(a(t)+" is not iterable")}},,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return h}));var r=n(1579),i=n(1186),o=n(1191),s=n(39),a=n(1198),c=n(2276);const l=[0,0,0,255],u={radiusUnits:"meters",radiusScale:{type:"number",min:0,value:1},radiusMinPixels:{type:"number",min:0,value:0},radiusMaxPixels:{type:"number",min:0,value:Number.MAX_SAFE_INTEGER},lineWidthUnits:"meters",lineWidthScale:{type:"number",min:0,value:1},lineWidthMinPixels:{type:"number",min:0,value:0},lineWidthMaxPixels:{type:"number",min:0,value:Number.MAX_SAFE_INTEGER},stroked:!1,filled:!0,billboard:!1,antialiasing:!0,getPosition:{type:"accessor",value:t=>t.position},getRadius:{type:"accessor",value:1},getFillColor:{type:"accessor",value:l},getLineColor:{type:"accessor",value:l},getLineWidth:{type:"accessor",value:1},strokeWidth:{deprecatedFor:"getLineWidth"},outline:{deprecatedFor:"stroked"},getColor:{deprecatedFor:["getFillColor","getLineColor"]}};class h extends r.a{getShaders(){return super.getShaders({vs:"#define SHADER_NAME scatterplot-layer-vertex-shader\n\nattribute vec3 positions;\n\nattribute vec3 instancePositions;\nattribute vec3 instancePositions64Low;\nattribute float instanceRadius;\nattribute float instanceLineWidths;
27\nattribute vec4 instanceFillColors;\nattribute vec4 instanceLineColors;\nattribute vec3 instancePickingColors;\n\nuniform float opacity;\nuniform float radiusScale;\nuniform float radiusMinPixels;\nuniform float radiusMaxPixels;\nuniform float lineWidthScale;\nuniform float lineWidthMinPixels;\nuniform float lineWidthMaxPixels;\nuniform float stroked;\nuniform bool filled;\nuniform bool billboard;\nuniform int radiusUnits;\nuniform int lineWidthUnits;\n\nvarying vec4 vFillColor;\nvarying vec4 vLineColor;\nvarying vec2 unitPosition;\nvarying float innerUnitRadius;\nvarying float outerRadiusPixels;\n\nvoid main(void) {\n geometry.worldPosition = instancePositions;\n outerRadiusPixels = clamp(\n project_size_to_pixel(radiusScale * instanceRadius, radiusUnits),\n radiusMinPixels, radiusMaxPixels\n );\n float lineWidthPixels = clamp(\n project_size_to_pixel(lineWidthScale * instanceLineWidths, lineWidthUnits),\n lineWidthMinPixels, lineWidthMaxPixels\n );\n outerRadiusPixels += stroked * lineWidthPixels / 2.0;\n unitPosition = positions.xy;\n geometry.uv = unitPosition;\n geometry.pickingColor = instancePickingColors;\n\n innerUnitRadius = 1.0 - stroked * lineWidthPixels / outerRadiusPixels;\n \n if (billboard) {\n gl_Position = project_position_to_clipspace(instancePositions, instancePositions64Low, vec3(0.0), geometry.position);\n vec3 offset = positions * outerRadiusPixels;\n DECKGL_FILTER_SIZE(offset, geometry);\n gl_Position.xy += project_pixel_size_to_clipspace(offset.xy);\n } else {\n vec3 offset = positions * project_pixel_size(outerRadiusPixels);\n DECKGL_FILTER_SIZE(offset, geometry);\n gl_Position = project_position_to_clipspace(instancePositions, instancePositions64Low, offset, geometry.position);\n }\n\n DECKGL_FILTER_GL_POSITION(gl_Position, geometry);\n vFillColor = vec4(instanceFillColors.rgb, instanceFillColors.a * opacity);\n DECKGL_FILTER_COLOR(vFillColor, geometry);\n vLineColor = vec4(instanceLineColors.rgb, instanceLineColors.a * opacity);\n DECKGL_FILTER_COLOR(vLineColor, geometry);\n}\n",fs:"#define SHADER_NAME scatterplot-layer-fragment-shader\n\nprecision highp float;\n\nuniform bool filled;\nuniform float stroked;\nuniform bool antialiasing;\n\nvarying vec4 vFillColor;\nvarying vec4 vLineColor;\nvarying vec2 unitPosition;\nvarying float innerUnitRadius;\nvarying float outerRadiusPixels;\n\nvoid main(void) {\n geometry.uv = unitPosition;\n\n float distToCenter = length(unitPosition) * outerRadiusPixels;\n float inCircle = antialiasing ? \n smoothedge(distToCenter, outerRadiusPixels) : \n step(distToCenter, outerRadiusPixels);\n\n if (inCircle == 0.0) {\n discard;\n }\n\n if (stroked > 0.5) {\n float isLine = antialiasing ? \n smoothedge(innerUnitRadius * outerRadiusPixels, distToCenter) :\n step(innerUnitRadius * outerRadiusPixels, distToCenter);\n\n if (filled) {\n gl_FragColor = mix(vFillColor, vLineColor, isLine);\n } else {\n if (isLine == 0.0) {\n discard;\n }\n gl_FragColor = vec4(vLineColor.rgb, vLineColor.a * isLine);\n }\n } else if (filled) {\n gl_FragColor = vFillColor;\n } else {\n discard;\n }\n\n gl_FragColor.a *= inCircle;\n DECKGL_FILTER_COLOR(gl_FragColor, geometry);\n}\n",modules:[i.a,o.a]})}initializeState(){this.getAttributeManager().addInstanced({instancePositions:{size:3,type:5130,fp64:this.use64bitPositions(),transition:!0,accessor:"getPosition"},instanceRadius:{size:1,transition:!0,accessor:"getRadius",defaultValue:1},instanceFillColors:{size:this.props.colorFormat.length,transition:!0,normalized:!0,type:5121,accessor:"getFillColor",defaultValue:[0,0,0,255]},instanceLineColors:{size:this.props.colorFormat.length,transition:!0,normalized:!0,type:5121,accessor:"getLineColor",defaultValue:[0,0,0,255]},instanceLineWidths:{size:1,transition:!0,accessor:"getLineWidth",defaultValue:1}})}updateState({props:t,oldProps:e,changeFlags:n}){if(super.updateState({props:t,oldProps:e,changeFlags:n}),n.extensionsChanged){var r;const{gl:t}=this.context;null===(r=this.state.model)||void 0===r||r.delete(),this.state.model=this._getModel(t),this.getAttributeManager().invalidateAll()}}draw({uniforms:t}
27){const{radiusUnits:e,radiusScale:n,radiusMinPixels:r,radiusMaxPixels:i,stroked:o,filled:a,billboard:c,antialiasing:l,lineWidthUnits:u,lineWidthScale:h,lineWidthMinPixels:f,lineWidthMaxPixels:d}=this.props;this.state.model.setUniforms(t).setUniforms({stroked:o?1:0,filled:a,billboard:c,antialiasing:l,radiusUnits:s.d[e],radiusScale:n,radiusMinPixels:r,radiusMaxPixels:i,lineWidthUnits:s.d[u],lineWidthScale:h,lineWidthMinPixels:f,lineWidthMaxPixels:d}).draw()}_getModel(t){return new a.a(t,{...this.getShaders(),id:this.props.id,geometry:new c.a({drawMode:6,vertexCount:4,attributes:{positions:{size:3,value:new Float32Array([-1,-1,0,1,-1,0,1,1,0,-1,1,0])}}}),isInstanced:!0})}}h.layerName="ScatterplotLayer",h.defaultProps=u},,,,,,,function(t,e,n){var r=n(56),i=n(171),o=n(281),s=n(1238).indexOf,a=n(721),c=r([].push);t.exports=function(t,e){var n,r=o(t),l=0,u=[];for(n in r)!i(a,n)&&i(r,n)&&c(u,n);for(;e.length>l;)i(r,n=e[l++])&&(~s(u,n)||c(u,n));return u}},function(t,e,n){var r=n(281),i=n(495),o=n(271),s=function(t){return function(e,n,s){var a,c=r(e),l=o(c),u=i(s,l);if(t&&n!=n){for(;l>u;)if((a=c[u++])!=a)return!0}else for(;l>u;u++)if((t||u in c)&&c[u]===n)return t||u||0;return!t&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},,,,,,,,function(t,e,n){var r=n(276);t.exports=r("document","documentElement")},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return ce}));var r=n(39),i=n(1894),o=n(979),s=n(128);class a{constructor(t,e){this.opts=e,this.source=t}get value(){return this.source.value}getValue(){const t=this.source.getBuffer(),e=this.getAccessor();if(t)return[t,e];const{value:n}=this.source,{size:r}=e;let i=n;if(n&&n.length!==r){i=new Float32Array(r);const t=e.elementOffset||0;for(let e=0;e<r;++e)i[e]=n[t+e]}return i}getAccessor(){return{...this.source.getAccessor(),...this.opts}}}var c=n(308),l=n(260),u=n(48);function h(t){return t.stride||t.size*t.bytesPerElement}function f(t,e){e.offset&&u.a.removed("shaderAttribute.offset","vertexOffset, elementOffset")();const n=h(t),r=("vertexOffset"in e?e.vertexOffset:t.vertexOffset||0)*n+(e.elementOffset||0)*t.bytesPerElement+(t.offset||0);return{...e,offset:r,stride:n}}var d=n(150),p=n(361),g=n(430);const m=[],y=[[0,1/0]];function _({source:t,target:e,start:n=0,end:r,size:i,getData:o}){r=r||e.length;const s=t.length,a=r-n;if(s>a)return void e.set(t.subarray(0,a),n);if(e.set(t,n),!o)return;let c=s;for(;c<a;){const r=o(c,t);for(let t=0;t<i;t++)e[n+c]=r[t]||0,c++}}const v={interpolation:{duration:0,easing:t=>t},spring:{stiffness:.05,damping:.5}};function b(t,e){return t?(Number.isFinite(t)&&(t={duration:t}),t.type=t.type||"interpolation",{...v[t.type],...e,...t}):null}function x(t,e){return e.getBuffer()?[e.getBuffer(),{divisor:0,size:e.size,normalized:e.settings.normalized}]:e.value}function w(t){switch(t){case 1:return"float";case 2:return"vec2";case 3:return"vec3";case 4:return"vec4";default:throw new Error('No defined attribute type for size "'.concat(t,'"'))}}function E(t){t.push(t.shift())}function S(t,e){const{doublePrecision:n,settings:r,value:i,size:o}=t,s=n&&i instanceof Float64Array?2:1;return(r.noAlloc?i.length:e*o)*s}function C({buffer:t,numInstances:e,attribute:n,fromLength:r,fromStartIndices:i,getData:o=(t=>t)}){const s=n.doublePrecision&&n.value instanceof Float64Array?2:1,a=n.size*s,c=n.byteOffset,l=n.startIndices,u=i&&l,h=S(n,e),f=n.state.constant;if(!u&&r>=h)return;const d=f?n.value:n.getBuffer().getData({srcByteOffset:c});if(n.settings.normalized&&!f){const t=o;o=(e,r)=>n._normalizeConstant(t(e,r))}const p=f?(t,e)=>o(d,e):(t,e)=>o(d.subarray(t,t+a),e),g=t.getData({length:r}),m=new Float32Array(h);!function({source:t,target:e,size:n,getData:r,sourceStartIndices:i,targetStartIndices:o}){if(!Array.isArray(o))return _({source:t,target:e,size:n,getData:r}),e;let s=0,a=0;const c=r&&((t,e)=>r(t+a,e)),l=Math.min(i.length,o.length);for(let r=1;r<l;r++){const l=i[r]*n,u=o[r]*n;_({source:t.subarray(s,l),target:e,start:a,end:u,size:n,getData:c}),s=l,a=u}a<e.length&&_({source:[],target:e,start:a,size:n,getData:c})}({source:g,target:m,sourceStartIndices:i,targetStartIndices:l,size:a,getData:p}),t.byteLength<m.byteLength+c&&t.reallocate(m.byteLength+c),t.subData({data:m,offset:c})}class A extends class{constructor(t,e){this.gl=t,this.id=e.id,this.size=e.size;const n=e.logicalType||e.type,r=5130===n;let{defaultValue:s}=e;s=Number.isFinite(s)?[s]:s||new Array(this.size).fill(0),e.defaultValue=s;let a=n;r?a=5126:!a&&e.isIndexed?a=t&&Object(i.b)(t,o.a.ELEMENT_INDEX_UINT32)?5125:5123:a||(a=5126),e.logicalType=n,e.type=a;let c=function(t){switch(t){case 5126:return Float32Array;case 5130:return Float64Array;case 5123:case 33635:case 32819:case 32820:return Uint16Array;case 5125:return Uint32Array;case 5121:return Uint8ClampedArray;case 5120:return Int8Array;case 5122:return Int16Array;case 5124:return Int32Array;default:throw new Error("Unknown GL type")}}(n||a||5126);this.shaderAttributes={},this.doublePrecision=r,r&&!1===e.fp64&&(c=Float32Array),e.bytesPerElement=c.BYTES_PER_ELEMENT,this.defaultType=c,this.value=null,this.settings=e,this.state={externalBuffer:null,bufferAccessor:e,allocatedValue:null,constant:!1},this._buffer=null,this.setData(e)}get buffer(){if(!this._buffer){const{isIndexed:t,type:e}=this.settings;this._buffer=new s.a(this.gl,{id:this.id,target:t?34963:34962,accessor:{type:e}})}return this._buffer}get byteOffset(){const t=this.getAccessor();return t.vertexOffset?t.vertexOffset*h(t):0}delete(){this._buffer&&(this._buffer.delete(),this._buffer=null),c.a.release(this.state.allocatedValue)}getShaderAttributes(t,e){if(this.doublePrecision){const n={},r=this.value instanceof Float64Array,i=function(t,e){const n=f(t,e);return{high:n,low:{...n,offset:n.offset+4*t.size}}}(this.getAccessor(),e||{});return n[t]=new a(this,i.high),n["".concat(t,"64Low")]=r?new a(this,i.low):new Float32Array(this.size),n}if(e){const n=f(this.getAccessor(),e);return{[t]:new a(this,n)}}return{[t]:this}}getBuffer(){return this.state.constant?null:this.state.externalBuffer||this._buffer}getValue(){return this.state.constant?this.value:[this.getBuffer(),this.getAccessor()]}getAccessor(){return this.state.bufferAccessor}setData(t){const{state:e}=this;ArrayBuffer.isView(t)?t={value:t}:t instanceof s.a&&(t={buffer:t});const n={...this.settings,...t};if(e.bufferAccessor=n,t.constant){let n=t.value;n=this._normalizeValue(n,[],0),this.settings.normalized&&(n=this._normalizeConstant(n));if(!(!e.constant||!this._areValuesEqual(n,this.value)))return!1;e.externalBuffer=null,e.constant=!0,this.value=n}else if(t.buffer){const r=t.buffer;e.externalBuffer=r,e.constant=!1,this.value=t.value;const i=t.value instanceof Float64Array;n.type=t.type||r.accessor.type,n.bytesPerElement=r.accessor.BYTES_PER_ELEMENT*(i?2:1),n.stride=h(n)}else if(t.value){this._checkExternalBuffer(t);let r=t.value;e.externalBuffer=null,e.constant=!1,this.value=r,n.bytesPerElement=r.BYTES_PER_ELEMENT,n.stride=h(n);const{buffer:i,byteOffset:o}=this;this.doublePrecision&&r instanceof Float64Array&&(r=Object(l.d)(r,n));const s=r.byteLength+o+2*n.stride;i.byteLength<s&&i.reallocate(s),i.setAccessor(null),i.subData({data:r,offset:o}),n.type=t.type||i.accessor.type}return!0}updateSubBuffer(t={}){const{value:e}=this,{startOffset:n=0,endOffset:r}=t;this.buffer.subData({data:this.doublePrecision&&e instanceof Float64Array?Object(l.d)(e,{size:this.size,startIndex:n,endIndex:r}):e.subarray(n,r),offset:n*e.BYTES_PER_ELEMENT+this.byteOffset})}allocate({numInstances:t,copy:e=!1}){const{state:n}=this,r=n.allocatedValue,i=c.a.allocate(r,t+1,{size:this.size,type:this.defaultType,copy:e});this.value=i;const{buffer:o,byteOffset:s}=this;return o.byteLength<i.byteLength+s&&(o.reallocate(i.byteLength+s),e&&r&&o.subData({data:r instanceof Float64Array?Object(l.d)(r,this):r,offset:s}
27)),n.allocatedValue=i,n.constant=!1,n.externalBuffer=null,n.bufferAccessor=this.settings,!0}_checkExternalBuffer(t){const{value:e}=t;if(!t.constant&&e){const n=this.defaultType;let r=!1;if(this.doublePrecision&&(r=e.BYTES_PER_ELEMENT<4),r)throw new Error("Attribute ".concat(this.id," does not support ").concat(e.constructor.name));e instanceof n||!this.settings.normalized||"normalized"in t||u.a.warn("Attribute ".concat(this.id," is normalized"))()}}_normalizeConstant(t){switch(this.settings.type){case 5120:return new Float32Array(t).map(t=>(t+128)/255*2-1);case 5122:return new Float32Array(t).map(t=>(t+32768)/65535*2-1);case 5121:return new Float32Array(t).map(t=>t/255);case 5123:return new Float32Array(t).map(t=>t/65535);default:return t}}_normalizeValue(t,e,n){const{defaultValue:r,size:i}=this.settings;if(Number.isFinite(t))return e[n]=t,e;if(!t)return e[n]=r[0],e;switch(i){case 4:e[n+3]=Number.isFinite(t[3])?t[3]:r[3];case 3:e[n+2]=Number.isFinite(t[2])?t[2]:r[2];case 2:e[n+1]=Number.isFinite(t[1])?t[1]:r[1];case 1:e[n+0]=Number.isFinite(t[0])?t[0]:r[0];break;default:let o=i;for(;--o>=0;)e[n+o]=Number.isFinite(t[o])?t[o]:r[o]}return e}_areValuesEqual(t,e){if(!t||!e)return!1;const{size:n}=this;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}}{constructor(t,e={}){super(t,e);const{transition:n=!1,noAlloc:r=!1,update:i=null,accessor:o=null,transform:s=null,startIndices:a=null}=e;Object.assign(this.settings,{transition:n,noAlloc:r,update:i||o&&this._autoUpdater,accessor:o,transform:s}),Object.assign(this.state,{lastExternalBuffer:null,binaryValue:null,binaryAccessor:null,needsUpdate:!0,needsRedraw:!1,updateRanges:y,startIndices:a}),Object.seal(this.settings),Object.seal(this.state),this._validateAttributeUpdaters()}get startIndices(){return this.state.startIndices}set startIndices(t){this.state.startIndices=t}needsUpdate(){return this.state.needsUpdate}needsRedraw({clearChangedFlags:t=!1}={}){const e=this.state.needsRedraw;return this.state.needsRedraw=e&&!t,e}getUpdateTriggers(){const{accessor:t}=this.settings;return[this.id].concat("function"!=typeof t&&t||[])}supportsTransition(){return Boolean(this.settings.transition)}getTransitionSetting(t){if(!t||!this.supportsTransition())return null;const{accessor:e}=this.settings,n=this.settings.transition;return b(Array.isArray(e)?t[e.find(e=>t[e])]:t[e],n)}setNeedsUpdate(t=this.id,e){if(this.state.needsUpdate=this.state.needsUpdate||t,this.setNeedsRedraw(t),e){const{startRow:t=0,endRow:n=1/0}=e;this.state.updateRanges=function(t,e){if(t===y)return t;if(e[0]<0&&(e[0]=0),e[0]>=e[1])return t;const n=[],r=t.length;let i=0;for(let o=0;o<r;o++){const r=t[o];r[1]<e[0]?(n.push(r),i=o+1):r[0]>e[1]?n.push(r):e=[Math.min(r[0],e[0]),Math.max(r[1],e[1])]}return n.splice(i,0,e),n}(this.state.updateRanges,[t,n])}else this.state.updateRanges=y}clearNeedsUpdate(){this.state.needsUpdate=!1,this.state.updateRanges=m}setNeedsRedraw(t=this.id){this.state.needsRedraw=this.state.needsRedraw||t}update(t){this.setData(t)}allocate(t){const{state:e,settings:n}=this;return!n.noAlloc&&(!!n.update&&(super.allocate({numInstances:t,copy:e.updateRanges!==y}),!0))}updateBuffer({numInstances:t,data:e,props:n,context:r}){if(!this.needsUpdate())return!1;const{state:{updateRanges:i},settings:{update:o,noAlloc:s}}=this;let a=!0;if(o){for(const[s,a]of i)o.call(r,this,{data:e,startRow:s,endRow:a,props:n,numInstances:t});if(this.value)if(this.constant||this.buffer.byteLength<this.value.byteLength+this.byteOffset)this.setData({value:this.value,constant:this.constant}),this.constant=!1;else for(const[e,n]of i){const r=Number.isFinite(e)?this.getVertexOffset(e):0,i=Number.isFinite(n)?this.getVertexOffset(n):s||!Number.isFinite(t)?this.value.length:t*this.size;super.updateSubBuffer({startOffset:r,endOffset:i})}else;this._checkAttributeArray()}else a=!1;return this.clearNeedsUpdate(),this.setNeedsRedraw(),a}setConstantValue(t){if(void 0===t||"function"==typeof t)return!1;return this.setData({constant:!0,value:t})&&this.setNeedsRedraw(),this.clearNeedsUpdate(),!0}setExternalBuffer(t){const{state:e}=this;
27return t?(this.clearNeedsUpdate(),e.lastExternalBuffer===t||(e.lastExternalBuffer=t,this.setNeedsRedraw(),this.setData(t)),!0):(e.lastExternalBuffer=null,!1)}setBinaryValue(t,e=null){const{state:n,settings:r}=this;if(!t)return n.binaryValue=null,n.binaryAccessor=null,!1;if(r.noAlloc)return!1;if(n.binaryValue===t)return this.clearNeedsUpdate(),!0;n.binaryValue=t,this.setNeedsRedraw(),ArrayBuffer.isView(t)&&(t={value:t});if(r.transform||e!==this.startIndices){Object(d.a)(ArrayBuffer.isView(t.value),"invalid ".concat(r.accessor));const i=t.size&&t.size!==this.size;return n.binaryAccessor=Object(p.b)(t.value,{size:t.size||this.size,stride:t.stride,offset:t.offset,startIndices:e,nested:i}),!1}return this.clearNeedsUpdate(),this.setData(t),!0}getVertexOffset(t){const{startIndices:e}=this;return(e?e[t]:t)*this.size}getShaderAttributes(){const t=this.settings.shaderAttributes||{[this.id]:null},e={};for(const n in t)Object.assign(e,super.getShaderAttributes(n,t[n]));return e}_autoUpdater(t,{data:e,startRow:n,endRow:r,props:i,numInstances:o}){if(t.constant)return;const{settings:s,state:a,value:c,size:l,startIndices:u}=t,{accessor:h,transform:f}=s,m=a.binaryAccessor||("function"==typeof h?h:i[h]);Object(d.a)("function"==typeof m,'accessor "'.concat(h,'" is not a function'));let y=t.getVertexOffset(n);const{iterable:_,objectInfo:v}=Object(p.a)(e,n,r);for(const e of _){v.index++;let n=m(e,v);if(f&&(n=f.call(this,n)),u){const e=(v.index<u.length-1?u[v.index+1]:o)-u[v.index];if(n&&Array.isArray(n[0])){let e=y;for(const r of n)t._normalizeValue(r,c,e),e+=l}else n&&n.length>l?c.set(n,y):(t._normalizeValue(n,v.target,0),Object(g.a)({target:c,source:v.target,start:y,count:e}));y+=e*l}else t._normalizeValue(n,c,y),y+=l}}_validateAttributeUpdaters(){const{settings:t}=this;if(!(t.noAlloc||"function"==typeof t.update))throw new Error("Attribute ".concat(this.id," missing update or accessor"))}_checkAttributeArray(){const{value:t}=this,e=Math.min(4,this.size);if(t&&t.length>=e){let n=!0;switch(e){case 4:n=n&&Number.isFinite(t[3]);case 3:n=n&&Number.isFinite(t[2]);case 2:n=n&&Number.isFinite(t[1]);case 1:n=n&&Number.isFinite(t[0]);break;default:n=!1}if(!n)throw new Error("Illegal attribute generated for ".concat(this.id))}}}var I=n(118),T=n(707);const M="void main() {gl_FragColor = vec4(0);}",F="out vec4 transform_output;\nvoid main() {\n transform_output = vec4(0);\n}",B="#version 300 es\n".concat(F);function L(t,e){e=Array.isArray(e)?e:[e];const n=t.replace(/^\s+/,"").split(/\s+/),[r,i,o]=n;if(!e.includes(r)||!i||!o)return null;return{qualifier:r,type:i,name:o.split(";")[0]}}function O(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{version:e=100,input:n,inputType:r,output:i}=t;if(!n)return 300===e?B:e>300?"#version ".concat(e,"\n").concat(F):M;const o=U(n,r);return e>=300?"#version ".concat(e," ").concat(300===e?"es":"","\nin ").concat(r," ").concat(n,";\nout vec4 ").concat(i,";\nvoid main() {\n ").concat(i," = ").concat(o,";\n}"):"varying ".concat(r," ").concat(n,";\nvoid main() {\n gl_FragColor = ").concat(o,";\n}")}function U(t,e){switch(e){case"float":return"vec4(".concat(t,", 0.0, 0.0, 1.0)");case"vec2":return"vec4(".concat(t,", 0.0, 1.0)");case"vec3":return"vec4(".concat(t,", 1.0)");case"vec4":return t;default:return Object(T.a)(!1),null}}var k=n(16),P=n(2275),D=n(20);class R{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.gl=t,this.currentIndex=0,this.feedbackMap={},this.varyings=null,this.bindings=[],this.resources={},this._initialize(e),Object.seal(this)}setupResources(t){for(const e of this.bindings)this._setupTransformFeedback(e,t)}updateModelProps(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{varyings:e}=this;return e.length>0&&(t=Object.assign({},t,{varyings:e})),t}getDrawOptions(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const e=this.bindings[this.currentIndex],{sourceBuffers:n,transformFeedback:r}=e;return{attributes:Object.assign({},n,t.attributes),transformFeedback:r}}swap(){return!!this.feedbackMap&&(this.currentIndex=this._getNextIndex(),!0)}update(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setupBuffers(t)}getBuffer(t){const{feedbackBuffers:e}=this.bindings[this.currentIndex],n=t?e[t]:null;return n?n instanceof s.a?n:n.buffer:null}getData(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{varyingName:e}=t,n=this.getBuffer(e);return n?n.getData():null}delete(){for(const t in this.resources)this.resources[t].delete()}_initialize(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setupBuffers(t),this.varyings=t.varyings||Object.keys(this.bindings[this.currentIndex].feedbackBuffers),this.varyings.length>0&&Object(D.a)(Object(k.i)(this.gl))}_getFeedbackBuffers(t){const{sourceBuffers:e={}}=t,n={};if(this.bindings[this.currentIndex]&&Object.assign(n,this.bindings[this.currentIndex].feedbackBuffers),this.feedbackMap)for(const t in this.feedbackMap){const r=this.feedbackMap[t];t in e&&(n[r]=t)}Object.assign(n,t.feedbackBuffers);for(const t in n){const r=n[t];if("string"==typeof r){const i=e[r],{byteLength:o,usage:s,accessor:a}=i;n[t]=this._createNewBuffer(t,{byteLength:o,usage:s,accessor:a})}}return n}_setupBuffers(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{sourceBuffers:e=null}=t;Object.assign(this.feedbackMap,t.feedbackMap);const n=this._getFeedbackBuffers(t);this._updateBindings({sourceBuffers:e,feedbackBuffers:n})}_setupTransformFeedback(t,e){let{model:n}=e;const{program:r}=n;t.transformFeedback=new P.a(this.gl,{program:r,buffers:t.feedbackBuffers})}_updateBindings(t){if(this.bindings[this.currentIndex]=this._updateBinding(this.bindings[this.currentIndex],t),this.feedbackMap){const{sourceBuffers:t,feedbackBuffers:e}=this._swapBuffers(this.bindings[this.currentIndex]),n=this._getNextIndex();this.bindings[n]=this._updateBinding(this.bindings[n],{sourceBuffers:t,feedbackBuffers:e})}}_updateBinding(t,e){return t?(Object.assign(t.sourceBuffers,e.sourceBuffers),Object.assign(t.feedbackBuffers,e.feedbackBuffers),t.transformFeedback&&t.transformFeedback.setBuffers(t.feedbackBuffers),t):{sourceBuffers:Object.assign({},e.sourceBuffers),feedbackBuffers:Object.assign({},e.feedbackBuffers)}}_swapBuffers(t){if(!this.feedbackMap)return null;const e=Object.assign({},t.sourceBuffers),n=Object.assign({},t.feedbackBuffers);for(const r in this.feedbackMap){const i=this.feedbackMap[r];e[r]=t.feedbackBuffers[i],n[i]=t.sourceBuffers[r],Object(D.a)(n[i]instanceof s.a)}return{sourceBuffers:e,feedbackBuffers:n}}_createNewBuffer(t,e){const n=new s.a(this.gl,e);return this.resources[t]&&this.resources[t].delete(),this.resources[t]=n,n}_getNextIndex(){return(this.currentIndex+1)%2}}var j=n(982),z=n(527),Q=n(321),N=n(1201);function V(t){let e=100;const n=t.match(/[^\s]+/g);if(n.length>=2&&"#version"===n[0]){const t=parseInt(n[1],10);Number.isFinite(t)&&(e=t)}return e}var G=n(710);const H={name:"transform",vs:"attribute float transform_elementID;\nvec2 transform_getPixelSizeHalf(vec2 size) {\n return vec2(1.) / (2. * size);\n}\n\nvec2 transform_getPixelIndices(vec2 texSize, vec2 pixelSizeHalf) {\n float yIndex = floor((transform_elementID / texSize[0]) + pixelSizeHalf[1]);\n float xIndex = transform_elementID - (yIndex * texSize[0]);\n return vec2(xIndex, yIndex);\n}\nvec2 transform_getTexCoord(vec2 size) {\n vec2 pixelSizeHalf = transform_getPixelSizeHalf(size);\n vec2 indices = transform_getPixelIndices(size, pixelSizeHalf);\n vec2 coord = indices / size + pixelSizeHalf;\n return coord;\n}\nvec2 transform_getPos(vec2 size) {\n vec2 texCoord = transform_getTexCoord(size);\n vec2 pos = (texCoord * (2.0, 2.0)) - (1., 1.);\n return pos;\n}\nvec4 transform_getInput(sampler2D texSampler, vec2 size) {\n vec2 texCoord = transform_getTexCoord(size);\n vec4 textureColor = texture2D(texSampler, texCoord);\n return textureColor;\n}\n",fs:null};function Z(t){let{vs:e,sourceTextureMap:n,targetTextureVarying:r,targetTexture:i}=t;let o=Object.keys(n).length,s=null;const a={};let c=e,l={};
27if(o>0||r){const t=c.split("\n"),e=t.slice();if(t.forEach((t,i,c)=>{if(o>0){const r=function(t,e){const n={},r=function(t){return L(t,["attribute","in"])}(t);if(!r)return null;const{type:i,name:o}=r;if(o&&e[o]){const e="// ".concat(t," => Replaced by Transform with a sampler"),{samplerName:r,sizeName:s,uniformDeclerations:a}=function(t){const e="".concat("transform_uSampler_").concat(t),n="".concat("transform_uSize_").concat(t),r=" uniform sampler2D ".concat(e,";\n uniform vec2 ").concat(n,";");return{samplerName:e,sizeName:n,uniformDeclerations:r}}(o),c=function(t){switch(t){case"float":return"x";case"vec2":return"xy";case"vec3":return"xyz";case"vec4":return"xyzw";default:return Object(T.a)(!1),null}}(i),l=" ".concat(i," ").concat(o," = transform_getInput(").concat(r,", ").concat(s,").").concat(c,";\n");n[r]=o;return{updatedLine:e,inject:{"vs:#decl":a,"vs:#main-start":l},samplerTextureMap:n}}return null}(t,n);if(r){const{updatedLine:t,inject:n}=r;e[i]=t,l=Object(G.b)([l,n]),Object.assign(a,r.samplerTextureMap),o--}}r&&!s&&(s=function(t,e){const n=L(t,["varying","out"]);if(!n)return null;return n.name===e?n.type:null}(t,r))}),r){Object(D.a)(i);const t="".concat("transform_uSize_").concat(r),e={"vs:#decl":"uniform vec2 ".concat(t,";\n"),"vs:#main-start":" vec2 ".concat("transform_position"," = transform_getPos(").concat(t,");\n gl_Position = vec4(").concat("transform_position",", 0, 1.);\n")};l=Object(G.b)([l,e])}c=e.join("\n")}return{vs:c,targetTextureType:s,inject:l,samplerTextureMap:a}}const W={10241:9728,10240:9728,10242:33071,10243:33071};class X{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.gl=t,this.id=this.currentIndex=0,this._swapTexture=null,this.targetTextureVarying=null,this.targetTextureType=null,this.samplerTextureMap=null,this.bindings=[],this.resources={},this._initialize(e),Object.seal(this)}updateModelProps(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const e=this._processVertexShader(t);return Object.assign({},t,e)}getDrawOptions(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{sourceBuffers:e,sourceTextures:n,framebuffer:r,targetTexture:i}=this.bindings[this.currentIndex],o=Object.assign({},e,t.attributes),s=Object.assign({},t.uniforms),a=Object.assign({},t.parameters);let c=t.discard;if(this.hasSourceTextures||this.hasTargetTexture){o.transform_elementID=this.elementIDBuffer;for(const t in this.samplerTextureMap){const e=this.samplerTextureMap[t];s[t]=n[e]}this._setSourceTextureParameters();const t=function(t){let{sourceTextureMap:e,targetTextureVarying:n,targetTexture:r}=t;const i={};let o,s;n&&(({width:o,height:s}=r),i["".concat("transform_uSize_").concat(n)]=[o,s]);for(const t in e)({width:o,height:s}=e[t]),i["".concat("transform_uSize_").concat(t)]=[o,s];return i}({sourceTextureMap:n,targetTextureVarying:this.targetTextureVarying,targetTexture:i});Object.assign(s,t)}return this.hasTargetTexture&&(c=!1,a.viewport=[0,0,r.width,r.height]),{attributes:o,framebuffer:r,uniforms:s,discard:c,parameters:a}}swap(){return!!this._swapTexture&&(this.currentIndex=this._getNextIndex(),!0)}update(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setupTextures(t)}getTargetTexture(){const{targetTexture:t}=this.bindings[this.currentIndex];return t}getData(){let{packed:t=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{framebuffer:e}=this.bindings[this.currentIndex],n=Object(j.c)(e);if(!t)return n;const r=n.constructor,i=function(t){switch(t){case"float":return 1;case"vec2":return 2;case"vec3":return 3;case"vec4":return 4;default:return Object(T.a)(!1),null}}(this.targetTextureType),o=new r(n.length*i/4);let s=0;for(let t=0;t<n.length;t+=4)for(let e=0;e<i;e++)o[s++]=n[t+e];return o}getFramebuffer(){return this.bindings[this.currentIndex].framebuffer}delete(){this.ownTexture&&this.ownTexture.delete(),this.elementIDBuffer&&this.elementIDBuffer.delete()}_initialize(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{_targetTextureVarying:e,_swapTexture:n}=t;this._swapTexture=n,this.targetTextureVarying=e,this.hasTargetTexture=e,this._setupTextures(t)}_createTargetTexture(t){const{sourceTextures:e,textureOrReference:n}=t;if(n instanceof z.a)return n;const r=e[n];return r?(this._targetRefTexName=n,this._createNewTexture(r)):null}_setupTextures(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{sourceBuffers:e,_sourceTextures:n={},_targetTexture:r}=t,i=this._createTargetTexture({sourceTextures:n,textureOrReference:r});this.hasSourceTextures=this.hasSourceTextures||n&&Object.keys(n).length>0,this._updateBindings({sourceBuffers:e,sourceTextures:n,targetTexture:i}),"elementCount"in t&&this._updateElementIDBuffer(t.elementCount)}
27_updateElementIDBuffer(t){if("number"!=typeof t||this.elementCount>=t)return;const e=new Float32Array(t);e.forEach((t,e,n)=>{n[e]=e}),this.elementIDBuffer?this.elementIDBuffer.setData({data:e}):this.elementIDBuffer=new s.a(this.gl,{data:e,accessor:{size:1}}),this.elementCount=t}_updateBindings(t){if(this.bindings[this.currentIndex]=this._updateBinding(this.bindings[this.currentIndex],t),this._swapTexture){const{sourceTextures:t,targetTexture:e}=this._swapTextures(this.bindings[this.currentIndex]),n=this._getNextIndex();this.bindings[n]=this._updateBinding(this.bindings[n],{sourceTextures:t,targetTexture:e})}}_updateBinding(t,e){const{sourceBuffers:n,sourceTextures:r,targetTexture:i}=e;if(t||(t={sourceBuffers:{},sourceTextures:{},targetTexture:null}),Object.assign(t.sourceTextures,r),Object.assign(t.sourceBuffers,n),i){t.targetTexture=i;const{width:e,height:n}=i,{framebuffer:r}=t;r?(r.update({attachments:{36064:i},resizeAttachments:!1}),r.resize({width:e,height:n})):t.framebuffer=new Q.a(this.gl,{id:"transform-framebuffer",width:e,height:n,attachments:{36064:i}})}return t}_setSourceTextureParameters(){const t=this.currentIndex,{sourceTextures:e}=this.bindings[t];for(const t in e)e[t].setParameters(W)}_swapTextures(t){if(!this._swapTexture)return null;const e=Object.assign({},t.sourceTextures);e[this._swapTexture]=t.targetTexture;return{sourceTextures:e,targetTexture:t.sourceTextures[this._swapTexture]}}_createNewTexture(t){const e=Object(N.a)(t,{parameters:{10241:9728,10240:9728,10242:33071,10243:33071},pixelStore:{37440:!1}});return this.ownTexture&&this.ownTexture.delete(),this.ownTexture=e,e}_getNextIndex(){return(this.currentIndex+1)%2}_processVertexShader(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{sourceTextures:e,targetTexture:n}=this.bindings[this.currentIndex],{vs:r,uniforms:i,targetTextureType:o,inject:s,samplerTextureMap:a}=Z({vs:t.vs,sourceTextureMap:e,targetTextureVarying:this.targetTextureVarying,targetTexture:n}),c=Object(G.b)([t.inject||{},s]);this.targetTextureType=o,this.samplerTextureMap=a;return{vs:r,fs:t._fs||O({version:V(r),input:this.targetTextureVarying,inputType:o,output:"transform_output"}),modules:this.hasSourceTextures||this.targetTextureVarying?[H].concat(t.modules||[]):t.modules,uniforms:i,inject:c}}}var Y=n(216),q=n(1198);class K{static isSupported(t){return Object(k.i)(t)}constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.gl=t,this.model=null,this.elementCount=0,this.bufferTransform=null,this.textureTransform=null,this.elementIDBuffer=null,this._initialize(e),Object.seal(this)}delete(){const{model:t,bufferTransform:e,textureTransform:n}=this;t&&t.delete(),e&&e.delete(),n&&n.delete()}run(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{clearRenderTarget:e=!0}=t,n=this._updateDrawOptions(t);e&&n.framebuffer&&n.framebuffer.clear({color:!0}),this.model.transform(n)}swap(){let t=!1;const e=[this.bufferTransform,this.textureTransform].filter(Boolean);for(const n of e)t=t||n.swap();Object(D.a)(t,"Nothing to swap")}getBuffer(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this.bufferTransform&&this.bufferTransform.getBuffer(t)}getData(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const e=[this.bufferTransform,this.textureTransform].filter(Boolean);for(const n of e){const e=n.getData(t);if(e)return e}return null}getFramebuffer(){return this.textureTransform&&this.textureTransform.getFramebuffer()}update(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};"elementCount"in t&&this.model.setVertexCount(t.elementCount);const e=[this.bufferTransform,this.textureTransform].filter(Boolean);for(const n of e)n.update(t)}_initialize(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{gl:e}=this;this._buildResourceTransforms(e,t),t=this._updateModelProps(t),this.model=new q.a(e,Object.assign({},t,{fs:t.fs||O({version:V(t.vs)}),id:t.id||"transform-model",drawMode:t.drawMode||0,vertexCount:t.elementCount})),this.bufferTransform&&this.bufferTransform.setupResources({model:this.model})}_updateModelProps(t){let e=Object.assign({},t);
27const n=[this.bufferTransform,this.textureTransform].filter(Boolean);for(const t of n)e=t.updateModelProps(e);return e}_buildResourceTransforms(t,e){(function(t){if(!Object(Y.a)(t.feedbackBuffers)||!Object(Y.a)(t.feedbackMap)||t.varyings&&t.varyings.length>0)return!0;return!1})(e)&&(this.bufferTransform=new R(t,e)),function(t){if(!Object(Y.a)(t._sourceTextures)||t._targetTexture||t._targetTextureVarying)return!0;return!1}(e)&&(this.textureTransform=new X(t,e)),Object(D.a)(this.bufferTransform||this.textureTransform,"must provide source/feedback buffers or source/target textures")}_updateDrawOptions(t){let e=Object.assign({},t);const n=[this.bufferTransform,this.textureTransform].filter(Boolean);for(const t of n)e=Object.assign(e,t.getDrawOptions(e));return e}}var J=n(320);const $={interpolation:class{constructor({gl:t,attribute:e,timeline:n}){this.gl=t,this.type="interpolation",this.transition=new J.a(n),this.attribute=e,this.attributeInTransition=new A(t,e.settings),this.currentStartIndices=e.startIndices,this.currentLength=0,this.transform=function(t,e){const n=w(e.size);return new K(t,{vs:"\n#define SHADER_NAME interpolation-transition-vertex-shader\n\nuniform float time;\nattribute ATTRIBUTE_TYPE aFrom;\nattribute ATTRIBUTE_TYPE aTo;\nvarying ATTRIBUTE_TYPE vCurrent;\n\nvoid main(void) {\n vCurrent = mix(aFrom, aTo, time);\n gl_Position = vec4(0.0);\n}\n",defines:{ATTRIBUTE_TYPE:n},varyings:["vCurrent"]})}(t,e);const r={byteLength:0,usage:35050};this.buffers=[new s.a(t,r),new s.a(t,r)]}get inProgress(){return this.transition.inProgress}start(t,e){if(t.duration<=0)return void this.transition.cancel();const{gl:n,buffers:r,attribute:i}=this;E(r);const o={numInstances:e,attribute:i,fromLength:this.currentLength,fromStartIndices:this.currentStartIndices,getData:t.enter};for(const t of r)C({buffer:t,...o});this.currentStartIndices=i.startIndices,this.currentLength=S(i,e),this.attributeInTransition.update({buffer:r[1],value:i.value}),this.transition.start(t),this.transform.update({elementCount:Math.floor(this.currentLength/i.size),sourceBuffers:{aFrom:r[0],aTo:x(0,i)},feedbackBuffers:{vCurrent:r[1]}})}update(){const t=this.transition.update();if(t){const{time:t,settings:{duration:e,easing:n}}=this.transition,r=n(t/e);this.transform.run({uniforms:{time:r}})}return t}cancel(){for(this.transition.cancel(),this.transform.delete();this.buffers.length;)this.buffers.pop().delete()}},spring:class{constructor({gl:t,attribute:e,timeline:n}){this.gl=t,this.type="spring",this.transition=new J.a(n),this.attribute=e,this.attributeInTransition=new A(t,{...e.settings,normalized:!1}),this.currentStartIndices=e.startIndices,this.currentLength=0,this.texture=function(t){return new z.a(t,{data:new Uint8Array(4),format:6408,type:5121,border:0,mipmaps:!1,dataFormat:6408,width:1,height:1})}(t),this.framebuffer=function(t,e){return new Q.a(t,{id:"spring-transition-is-transitioning-framebuffer",width:1,height:1,attachments:{36064:e}})}(t,this.texture),this.transform=function(t,e,n){const r=w(e.size);return new K(t,{framebuffer:n,vs:"\n#define SHADER_NAME spring-transition-vertex-shader\n\n#define EPSILON 0.00001\n\nuniform float stiffness;\nuniform float damping;\nattribute ATTRIBUTE_TYPE aPrev;\nattribute ATTRIBUTE_TYPE aCur;\nattribute ATTRIBUTE_TYPE aTo;\nvarying ATTRIBUTE_TYPE vNext;\nvarying float vIsTransitioningFlag;\n\nATTRIBUTE_TYPE getNextValue(ATTRIBUTE_TYPE cur, ATTRIBUTE_TYPE prev, ATTRIBUTE_TYPE dest) {\n ATTRIBUTE_TYPE velocity = cur - prev;\n ATTRIBUTE_TYPE delta = dest - cur;\n ATTRIBUTE_TYPE spring = delta * stiffness;\n ATTRIBUTE_TYPE damper = velocity * -1.0 * damping;\n return spring + damper + velocity + cur;\n}\n\nvoid main(void) {\n bool isTransitioning = length(aCur - aPrev) > EPSILON || length(aTo - aCur) > EPSILON;\n vIsTransitioningFlag = isTransitioning ? 1.0 : 0.0;\n\n vNext = getNextValue(aCur, aPrev, aTo);\n gl_Position = vec4(0, 0, 0, 1);\n gl_PointSize = 100.0;\n}\n",fs:"\n#define SHADER_NAME spring-transition-is-transitioning-fragment-shader\n\nvarying float vIsTransitioningFlag;\n\nvoid main(void) {\n if (vIsTransitioningFlag == 0.0) {\n discard;\n }\n gl_FragColor = vec4(1.0);\n}",defines:{ATTRIBUTE_TYPE:r},varyings:["vNext"]})}(t,e,this.framebuffer);const r={byteLength:0,usage:35050};this.buffers=[new s.a(t,r),new s.a(t,r),new s.a(t,r)]}get inProgress(){return this.transition.inProgress}start(t,e){const{gl:n,buffers:r,attribute:i}=this,o={numInstances:e,attribute:i,fromLength:this.currentLength,fromStartIndices:this.currentStartIndices,getData:t.enter};for(const t of r)C({buffer:t,...o}
27);this.currentStartIndices=i.startIndices,this.currentLength=S(i,e),this.attributeInTransition.update({buffer:r[1],value:i.value}),this.transition.start(t),this.transform.update({elementCount:Math.floor(this.currentLength/i.size),sourceBuffers:{aTo:x(0,i)}})}update(){const{buffers:t,transform:e,framebuffer:n,transition:r}=this;if(!r.update())return!1;e.update({sourceBuffers:{aPrev:t[0],aCur:t[1]},feedbackBuffers:{vNext:t[2]}}),e.run({framebuffer:n,discard:!1,clearRenderTarget:!0,uniforms:{stiffness:r.settings.stiffness,damping:r.settings.damping},parameters:{depthTest:!1,blend:!0,viewport:[0,0,1,1],blendFunc:[1,1],blendEquation:[32776,32776]}}),E(t),this.attributeInTransition.update({buffer:t[1],value:this.attribute.value});return Object(j.c)(n)[0]>0||r.end(),!0}cancel(){for(this.transition.cancel(),this.transform.delete();this.buffers.length;)this.buffers.pop().delete();this.texture.delete(),this.texture=null,this.framebuffer.delete(),this.framebuffer=null}}};class tt{constructor(t,{id:e,timeline:n}){this.id=e,this.gl=t,this.timeline=n,this.transitions={},this.needsRedraw=!1,this.numInstances=1,this.isSupported=K.isSupported(t)}finalize(){for(const t in this.transitions)this._removeTransition(t)}update({attributes:t,transitions:e,numInstances:n}){this.numInstances=n||1;for(const n in t){const r=t[n],i=r.getTransitionSetting(e);i&&this._updateAttribute(n,r,i)}for(const n in this.transitions){const r=t[n];r&&r.getTransitionSetting(e)||this._removeTransition(n)}}hasAttribute(t){const e=this.transitions[t];return e&&e.inProgress}getAttributes(){const t={};for(const e in this.transitions){const n=this.transitions[e];n.inProgress&&(t[e]=n.attributeInTransition)}return t}run(){if(!this.isSupported||0===this.numInstances)return!1;for(const t in this.transitions){this.transitions[t].update()&&(this.needsRedraw=!0)}const t=this.needsRedraw;return this.needsRedraw=!1,t}_removeTransition(t){this.transitions[t].cancel(),delete this.transitions[t]}_updateAttribute(t,e,n){const r=this.transitions[t];let i=!r||r.type!==n.type;if(i){if(!this.isSupported)return void u.a.warn("WebGL2 not supported by this browser. Transition for ".concat(t," is disabled."))();r&&this._removeTransition(t);const o=$[n.type];o?this.transitions[t]=new o({attribute:e,timeline:this.timeline,gl:this.gl}):(u.a.error("unsupported transition type '".concat(n.type,"'"))(),i=!1)}(i||e.needsRedraw())&&(this.needsRedraw=!0,this.transitions[t].start(n,this.numInstances))}}class et{constructor(t,{id:e="attribute-manager",stats:n,timeline:r}={}){this.id=e,this.gl=t,this.attributes={},this.updateTriggers={},this.accessors={},this.needsRedraw=!0,this.userData={},this.stats=n,this.attributeTransitionManager=new tt(t,{id:"".concat(e,"-transitions"),timeline:r}),Object.seal(this)}finalize(){for(const t in this.attributes)this.attributes[t].delete();this.attributeTransitionManager.finalize()}getNeedsRedraw(t={clearRedrawFlags:!1}){const e=this.needsRedraw;return this.needsRedraw=this.needsRedraw&&!t.clearRedrawFlags,e&&this.id}setNeedsRedraw(t=!0){return this.needsRedraw=!0,this}add(t,e){this._add(t,e)}addInstanced(t,e){this._add(t,e,{instanced:1})}remove(t){for(let e=0;e<t.length;e++){const n=t[e];void 0!==this.attributes[n]&&(this.attributes[n].delete(),delete this.attributes[n])}}invalidate(t,e){const n=this._invalidateTrigger(t,e);Object(I.a)("attributeManager.invalidate",this,t,n)}invalidateAll(t){for(const e in this.attributes)this.attributes[e].setNeedsUpdate(e,t);Object(I.a)("attributeManager.invalidate",this,"all")}update({data:t,numInstances:e,startIndices:n=null,transitions:r,props:i={},buffers:o={},context:s={}}={}){let a=!1;Object(I.a)("attributeManager.updateStart",this),this.stats&&this.stats.get("Update Attributes").timeStart();for(const r in this.attributes){const c=this.attributes[r],l=c.settings.accessor;c.startIndices=n,i[r]&&u.a.removed("props.".concat(r),"data.attributes.".concat(r))(),c.setExternalBuffer(o[r])||c.setBinaryValue(o[l],t.startIndices)||!o[l]&&c.setConstantValue(i[l])||c.needsUpdate()&&(a=!0,this._updateAttribute({attribute:c,numInstances:e,data:t,props:i,context:s})),this.needsRedraw|=c.needsRedraw()}a&&Object(I.a)("attributeManager.updateEnd",this,e),this.stats&&this.stats.get("Update Attributes").timeEnd(),this.attributeTransitionManager.update({attributes:this.attributes,numInstances:e,transitions:r})}updateTransition(){const{attributeTransitionManager:t}=this,e=t.run();return this.needsRedraw=this.needsRedraw||e,e}getAttributes(){return this.attributes}getChangedAttributes(t={clearChangedFlags:!1}){const{attributes:e,attributeTransitionManager:n}=this,r={...n.getAttributes()};for(const i in e){const o=e[i];o.needsRedraw(t)&&!n.hasAttribute(i)&&(r[i]=o)}return r}getShaderAttributes(t,e={}){t||(t=this.getAttributes());const n={};for(const r in t)e[r]||Object.assign(n,t[r].getShaderAttributes());return n}getAccessors(){return this.updateTriggers}_add(t,e,n={}){e&&u.a.warn("AttributeManager.add({updaters}) - updater map no longer supported")();for(const e in t){const r=t[e];this.attributes[e]=this._createAttribute(e,r,n)}this._mapUpdateTriggersToAttributes()}_createAttribute(t,e,n){const r={...e,id:t,isIndexed:e.isIndexed||e.elements||!1,constant:e.constant||!1,size:(e.elements?1:e.size)||1,value:e.value||null,divisor:e.instanced||n.instanced?1:e.divisor||0};return new A(this.gl,r)}_mapUpdateTriggersToAttributes(){const t={};for(const e in this.attributes){this.attributes[e].getUpdateTriggers().forEac
27h(n=>{t[n]||(t[n]=[]),t[n].push(e)})}this.updateTriggers=t}_invalidateTrigger(t,e){const{attributes:n,updateTriggers:r}=this,i=r[t];return i&&i.forEach(t=>{const r=n[t];r&&r.setNeedsUpdate(r.id,e)}),i}_updateAttribute(t){const{attribute:e,numInstances:n}=t;if(Object(I.a)("attribute.updateStart",e),e.constant)return void e.setConstantValue(e.value);e.allocate(n)&&Object(I.a)("attribute.allocate",e,n);e.updateBuffer(t)&&(this.needsRedraw=!0,Object(I.a)("attribute.updateEnd",e,n))}}var nt=n(60);class rt extends J.a{get value(){return this._value}_onUpdate(){const{time:t,settings:{fromValue:e,toValue:n,duration:r,easing:i}}=this,o=i(t/r);this._value=Object(nt.e)(e,n,o)}}function it(t,e,n,r,i){const o=e-t;return(n-e)*i+-o*r+o+e}function ot(t,e){if(Array.isArray(t)){let n=0;for(let r=0;r<t.length;r++){const i=t[r]-e[r];n+=i*i}return Math.sqrt(n)}return Math.abs(t-e)}class st extends J.a{get value(){return this._currValue}_onUpdate(){const{fromValue:t,toValue:e,damping:n,stiffness:r}=this.settings,{_prevValue:i=t,_currValue:o=t}=this;let s=function(t,e,n,r,i){if(Array.isArray(n)){const o=[];for(let s=0;s<n.length;s++)o[s]=it(t[s],e[s],n[s],r,i);return o}return it(t,e,n,r,i)}(i,o,e,n,r);const a=ot(s,e),c=ot(s,o);a<1e-5&&c<1e-5&&(s=e,this.end()),this._prevValue=o,this._currValue=s}}const at={interpolation:rt,spring:st};class ct{constructor(t){this.transitions=new Map,this.timeline=t}get active(){return this.transitions.size>0}add(t,e,n,r){const{transitions:i}=this;if(i.has(t)){const n=i.get(t),{value:r=n.settings.fromValue}=n;e=r,this.remove(t)}if(!(r=b(r)))return;const o=at[r.type];if(!o)return void u.a.error("unsupported transition type '".concat(r.type,"'"))();const s=new o(this.timeline);s.start({...r,fromValue:e,toValue:n}),i.set(t,s)}remove(t){const{transitions:e}=this;e.has(t)&&(e.get(t).cancel(),e.delete(t))}update(){const t={};for(const[e,n]of this.transitions)n.update(),t[e]=n.value,n.inProgress||this.remove(e);return t}clear(){for(const t of this.transitions.keys())this.remove(t)}}var lt=n(187);const{COMPONENT:ut}=lt.b;function ht(t,e){const n=dt({newProps:t,oldProps:e,propTypes:yt(t),ignoreProps:{data:null,updateTriggers:null,extensions:null,transitions:null}}),r=function(t,e){if(null===e)return"oldProps is null, initial diff";let n=null;const{dataComparator:r,_dataDiff:i}=t;r?r(t.data,e.data)||(n="Data comparator detected a change"):t.data!==e.data&&(n="A new data container was supplied");n&&i&&(n=i(t.data,e.data)||n);return n}(t,e);let i=!1;return r||(i=function(t,e){if(null===e)return"oldProps is null, initial diff";if("all"in t.updateTriggers){if(mt(t,e,"all"))return{all:!0}}const n={};let r=!1;for(const i in t.updateTriggers)if("all"!==i){mt(t,e,i)&&(n[i]=!0,r=n)}return r}(t,e)),{dataChanged:r,propsChanged:n,updateTriggersChanged:i,extensionsChanged:gt(t,e),transitionsChanged:ft(t,e)}}function ft(t,e){if(!t.transitions)return null;const n={},r=yt(t);for(const i in t.transitions){const o=r[i],s=o&&o.type;("number"===s||"color"===s||"array"===s)&&pt(t[i],e[i],o)&&(n[i]=!0)}return n}function dt({newProps:t,oldProps:e,ignoreProps:n={},propTypes:r={},triggerName:i="props"}={}){if(e===t)return null;if("object"!=typeof t||null===t)return"".concat(i," changed shallowly");if("object"!=typeof e||null===e)return"".concat(i," changed shallowly");for(const o of Object.keys(t))if(!(o in n)){if(!(o in e))return"".concat(i,".").concat(o," added");const n=pt(t[o],e[o],r[o]);if(n)return"".concat(i,".").concat(o," ").concat(n)}for(const o of Object.keys(e))if(!(o in n)){if(!(o in t))return"".concat(i,".").concat(o," dropped");if(!Object.hasOwnProperty.call(t,o)){const n=pt(t[o],e[o],r[o]);if(n)return"".concat(i,".").concat(o," ").concat(n)}}return null}function pt(t,e,n){let r=n&&n.equal;return r&&!r(t,e,n)?"changed deeply":r||(r=t&&e&&t.equals,!r||r.call(t,e))?r||e===t?null:"changed shallowly":"changed deeply"}function gt(t,e){if(null===e)return"oldProps is null, initial diff";const n=e.extensions,{extensions:r}=t;if(r===n)return!1;if(r.length!==n.length)return!0;for(let t=0;t<r.length;t++)if(!r[t].equals(n[t]))return!0;return!1}function mt(t,e,n){let r=t.updateTriggers[n];r=null==r?{}:r;let i=e.updateTriggers[n];i=null==i?{}:i;return dt({oldProps:i,newProps:r,triggerName:n})}function yt(t){const e=t[ut],n=e&&e.constructor;return n?n._propTypes:{}}function _t(t){if(null===(e=t)||"object"!=typeof e)throw new Error("count(): argument not an object");var e;if("function"==typeof t.count)return t.count();if(Number.isFinite(t.size))return t.size;if(Number.isFinite(t.length))return t.length;if(function(t){return null!==t&&"object"==typeof t&&t.constructor===Object}(t))return Object.keys(t).length;throw new Error("count(): argument not a container")}var vt=n(461);function bt(t,e){if(!e)return t;const n={...t,...e};if("defines"in e&&(n.defines={...t.defines,...e.defines}),"modules"in e&&(n.modules=(t.modules||[]).concat(e.modules),e.modules.some(t=>"project64"===t.name))){const t=n.modules.findIndex(t=>"project32"===t.name);t>=0&&n.modules.splice(t,1)}if("inject"in e)if(t.inject){const r={...t.inject};for(const t in e.inject)r[t]=(r[t]||"")+e.inject[t];n.inject=r}else n.inject=e.inject;return n}var xt=n(701),wt=n(699),Et=n(322),St=n(161),Ct=n(83);function At(t,e,n=!1){const r=e.projectPosition(t);
27if(n&&e instanceof wt.a){const[n,i,o=0]=t,s=e.getDistanceScales([n,i]);r[2]=o*s.unitsPerMeter[2]}return r}function It(t,{viewport:e,modelMatrix:n,coordinateSystem:i,coordinateOrigin:o,offsetMode:s}){let[a,c,l=0]=t;switch(n&&([a,c,l]=Et.b([],[a,c,l,1],n)),i){case r.a.LNGLAT:return At([a,c,l],e,s);case r.a.LNGLAT_OFFSETS:return At([a+o[0],c+o[1],l+(o[2]||0)],e,s);case r.a.METER_OFFSETS:return At(Object(Ct.c)(o,[a,c,l]),e,s);case r.a.CARTESIAN:default:return e.isGeospatial?[a+o[0],c+o[1],l+o[2]]:e.projectPosition([a,c,l])}}function Tt(t,e){const{viewport:n,coordinateSystem:i,coordinateOrigin:o,modelMatrix:s,fromCoordinateSystem:a,fromCoordinateOrigin:c}=function(t){const e={...t};let{coordinateSystem:n}=t;const{viewport:i,coordinateOrigin:o,fromCoordinateSystem:s,fromCoordinateOrigin:a}=t;return n===r.a.DEFAULT&&(n=i.isGeospatial?r.a.LNGLAT:r.a.CARTESIAN),void 0===s&&(e.fromCoordinateSystem=n),void 0===a&&(e.fromCoordinateOrigin=o),e.coordinateSystem=n,e}(e),{geospatialOrigin:l,shaderCoordinateOrigin:u,offsetMode:h}=Object(xt.a)(n,i,o),f=It(t,{viewport:n,modelMatrix:s,coordinateSystem:a,coordinateOrigin:c,offsetMode:h});if(h){const t=n.projectPosition(l||u);St.i(f,f,t)}return f}const Mt={10241:9987,10240:9729,10242:33071,10243:33071},Ft={};const Bt={boolean:{validate:(t,e)=>!0,equal:(t,e,n)=>Boolean(t)===Boolean(e)},number:{validate:(t,e)=>Number.isFinite(t)&&(!("max"in e)||t<=e.max)&&(!("min"in e)||t>=e.min)},color:{validate:(t,e)=>e.optional&&!t||kt(t)&&(3===t.length||4===t.length),equal:(t,e,n)=>Lt(t,e)},accessor:{validate(t,e){const n=Pt(t);return"function"===n||n===Pt(e.value)},equal:(t,e,n)=>"function"==typeof e||Lt(t,e)},array:{validate:(t,e)=>e.optional&&!t||kt(t),equal:(t,e,n)=>n.compare?Lt(t,e):t===e},function:{validate:(t,e)=>e.optional&&!t||"function"==typeof t,equal:(t,e,n)=>!n.compare||t===e},data:{transform:(t,e,n)=>{const{dataTransform:r}=n?n.props:{};return r&&t?r(t):t}},image:{transform:(t,e,n)=>function(t,e){const n=t.context&&t.context.gl;if(!n||!e)return null;if(e instanceof z.a)return e;e.constructor&&"Object"!==e.constructor.name&&(e={data:e});let r=null;e.compressed&&(r={10241:e.data.length>1?9985:9729});const i=new z.a(n,{...e,parameters:{...Mt,...r,...t.props.textureParameters}});return Ft[i.id]=!0,i}(n,t),release:t=>{var e;(e=t)&&e instanceof z.a&&Ft[e.id]&&(e.delete(),delete Ft[e.id])}}};function Lt(t,e){if(t===e)return!0;if(!kt(t)||!kt(e))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function Ot(t,e){switch(Pt(e)){case"object":return Ut(t,e);case"array":return Ut(t,{type:"array",value:e,compare:!1});case"boolean":return Ut(t,{type:"boolean",value:e});case"number":return Ut(t,{type:"number",value:e});case"function":return Ut(t,{type:"function",value:e,compare:!0});default:return{name:t,type:"unknown",value:e}}}function Ut(t,e){return"type"in e?{name:t,...Bt[e.type],...e}:"value"in e?{name:t,type:Pt(e.value),...e}:{name:t,type:"object",value:e}}function kt(t){return Array.isArray(t)||ArrayBuffer.isView(t)}function Pt(t){return kt(t)?"array":null===t?"null":typeof t}const{COMPONENT:Dt,ASYNC_ORIGINAL:Rt,ASYNC_RESOLVED:jt,ASYNC_DEFAULTS:zt}=lt.b;function Qt(){const t=this,e=Nt(t.constructor),n=Object.create(e);n[Dt]=t,n[Rt]={},n[jt]={};for(let t=0;t<arguments.length;++t){const e=arguments[t];for(const t in e)n[t]=e[t]}return Object.freeze(n),n}function Nt(t){const e=Ht(t,"_mergedDefaultProps");return e||(function(t){if(!t.prototype)return;const e=Object.getPrototypeOf(t),n=Nt(e),r=function(t){const e={},n={},r={};for(const[i,o]of Object.entries(t))if(o&&o.deprecatedFor)r[i]=Array.isArray(o.deprecatedFor)?o.deprecatedFor:[o.deprecatedFor];else{const t=Ot(i,o);e[i]=t,n[i]=t.value}return{propTypes:e,defaultProps:n,deprecatedProps:r}}(Ht(t,"defaultProps")||{}),i=function(t,e,n){const r=Object.create(null);Object.assign(r,e,t);const i=function(t){const e=Ht(t,"layerName")||Ht(t,"componentName");e||u.a.once(0,"".concat(t.name,".componentName not specified"))();return e||t.name}(n);return delete t.id,Object.defineProperties(r,{id:{writable:!0,value:i}}),r}
27(r.defaultProps,n,t),o={...e._propTypes,...r.propTypes};!function(t,e){const n={},r={};for(const t in e){const i=e[t],{name:o,value:s}=i;i.async&&(n[o]=s,r[o]=Vt(o))}t[zt]=n,t[Rt]={},Object.defineProperties(t,r)}(i,o);const s={...e._deprecatedProps,...r.deprecatedProps};(function(t,e){for(const n in e)Object.defineProperty(t,n,{enumerable:!1,set(t){const r="".concat(this.id,": ").concat(n);for(const r of e[n])Gt(this,r)||(this[r]=t);u.a.deprecated(r,e[n].join("/"))()}})})(i,s),t._mergedDefaultProps=i,t._propTypes=o,t._deprecatedProps=s}(t),t._mergedDefaultProps)}function Vt(t){return{enumerable:!0,set(e){"string"==typeof e||e instanceof Promise||Object(p.c)(e)?this[Rt][t]=e:this[jt][t]=e},get(){if(this[jt]){if(t in this[jt]){return this[jt][t]||this[zt][t]}if(t in this[Rt]){const e=this[Dt]&&this[Dt].internalState;if(e&&e.hasAsyncProp(t))return e.getAsyncProp(t)||this[zt][t]}}return this[zt][t]}}}function Gt(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Ht(t,e){return Gt(t,e)&&t[e]}const{ASYNC_ORIGINAL:Zt,ASYNC_RESOLVED:Wt,ASYNC_DEFAULTS:Xt}=lt.b,Yt=Object.freeze({});class qt{constructor(t=null){this.component=t,this.asyncProps={},this.onAsyncPropUpdated=()=>{},this.oldProps=Yt,this.oldAsyncProps=null}finalize(){for(const t in this.asyncProps){const e=this.asyncProps[t];e.type&&e.type.release&&e.type.release(e.resolvedValue,e.type,this.component)}}getOldProps(){return this.oldAsyncProps||this.oldProps}resetOldProps(){this.oldAsyncProps=null,this.oldProps=this.component.props}freezeAsyncOldProps(){if(!this.oldAsyncProps){this.oldProps=this.oldProps||this.component.props,this.oldAsyncProps=Object.create(this.oldProps);for(const t in this.asyncProps)Object.defineProperty(this.oldAsyncProps,t,{enumerable:!0,value:this.oldProps[t]})}}hasAsyncProp(t){return t in this.asyncProps}getAsyncProp(t){const e=this.asyncProps[t];return e&&e.resolvedValue}isAsyncPropLoading(t){if(t){const e=this.asyncProps[t];return Boolean(e&&e.pendingLoadCount>0&&e.pendingLoadCount!==e.resolvedLoadCount)}for(const t in this.asyncProps)if(this.isAsyncPropLoading(t))return!0;return!1}reloadAsyncProp(t,e){this._watchPromise(t,Promise.resolve(e))}setAsyncProps(t){const e=t[Wt]||{},n=t[Zt]||t,r=t[Xt]||{};for(const t in e){const n=e[t];this._createAsyncPropData(t,r[t]),this._updateAsyncProp(t,n),e[t]=this.getAsyncProp(t)}for(const t in n){const e=n[t];this._createAsyncPropData(t,r[t]),this._updateAsyncProp(t,e)}}_updateAsyncProp(t,e){if(this._didAsyncInputValueChange(t,e)){if("string"==typeof e){var n;const r=null===(n=this.layer)||void 0===n?void 0:n.props.fetch,i=e;r&&(e=r(i,{propName:t,layer:this.layer}))}e instanceof Promise?this._watchPromise(t,e):Object(p.c)(e)?this._resolveAsyncIterable(t,e):this._setPropValue(t,e)}}_didAsyncInputValueChange(t,e){const n=this.asyncProps[t];return e!==n.resolvedValue&&e!==n.lastValue&&(n.lastValue=e,!0)}_setPropValue(t,e){this.freezeAsyncOldProps();const n=this.asyncProps[t];e=this._postProcessValue(n,e),n.resolvedValue=e,n.pendingLoadCount++,n.resolvedLoadCount=n.pendingLoadCount}_setAsyncPropValue(t,e,n){const r=this.asyncProps[t];r&&n>=r.resolvedLoadCount&&void 0!==e&&(this.freezeAsyncOldProps(),r.resolvedValue=e,r.resolvedLoadCount=n,this.onAsyncPropUpdated(t,e))}_watchPromise(t,e){const n=this.asyncProps[t];n.pendingLoadCount++;const r=n.pendingLoadCount;e.then(e=>{var i;e=this._postProcessValue(n,e),this._setAsyncPropValue(t,e,r);const o=null===(i=this.layer)||void 0===i?void 0:i.props.onDataLoad;"data"===t&&o&&o(e,{propName:t,layer:this.layer})}).catch(e=>{var n;null===(n=this.layer)||void 0===n||n.raiseError(e,"loading ".concat(t," of ").concat(this.layer))})}async _resolveAsyncIterable(t,e){var n;"data"!==t&&this._setPropValue(t,e);const r=this.asyncProps[t];r.pendingLoadCount++;const i=r.pendingLoadCount;let o=[],s=0;for await(const n of e){const{dataTransform:e}=this.component?this.component.props:{};o=e?e(n,o):o.concat(n),Object.defineProperty(o,"__diff",{enumerable:!1,value:[{startRow:s,endRow:o.length}]}),s=o.length,this._setAsyncPropValue(t,o,i)}const a=null===(n=this.layer)||void 0===n?void 0:n.props.onDataLoad;a&&a(o,{propName:t,layer:this.layer})}_postProcessValue(t,e){const n=t.type;return n&&(n.release&&n.release(t.resolvedValue,n,this.component),n.transform)?n.transform(e,n,this.component):e}_createAsyncPropData(t,e){if(!this.asyncProps[t]){const n=this.component&&this.component.constructor._propTypes;this.asyncProps[t]={type:n&&n[t],lastValue:null,resolvedValue:e,pendingLoadCount:0,resolvedLoadCount:0}}}}const{ASYNC_ORIGINAL:Kt,ASYNC_RESOLVED:Jt,ASYNC_DEFAULTS:$t}=lt.b;let te=0;class ee{constructor(){this.props=Qt.apply(this,arguments),this.id=this.props.id,this.count=te++,this.lifecycle=lt.a.NO_STATE,this.parent=null,this.context=null,this.state=null,this.internalState=null,Object.seal(this)}get root(){let t=this;for(;t.parent;)t=t.parent;return t}clone(t){const{props:e}=this,n={};for(const t in e[$t])t in e[Jt]?n[t]=e[Jt][t]:t in e[Kt]&&(n[t]=e[Kt][t]);return new this.constructor({...e,...n,...t})}get stats(){return this.internalState.stats}_initState(){this.internalState=new qt({})}}ee.componentName="Component",ee.defaultProps={};class ne extends qt{constructor({attributeManager:t,layer:e}){super(e),this.attributeManager=t,this.model=null,this.needsRedraw=!0,this.subLayers=null,this.usesPickingColorCache=!1}get layer(){return this.component}set layer(t){this.component=t}}var re=n(2325);const ie=Object.freeze([]),oe=Object(vt.a)(({oldViewport:t,viewport:e})=>t.equals(e));let se=new Uint8ClampedArray(0);const ae={data:{type:"data",value:ie,async:!0},dataComparator:null,_dataDiff:{type:"function",value:t=>t&&t.__diff,compare:!1,optional:!0},dataTransform:{type:"function",value:null,compare:!1,optional:!0},onDataLoad:{type:"function",value:null,compare:!1,optional:!0},onError:{type:"function",value:null,compare:!1,optional:!0},fetch:{type:"function",value:(t,{propName:e,layer:n,loaders:r,loadOptions:i,signal:o})=>{const{resourceManager:s}=n.context;var a;(i=i||n.getLoadOptions(),r=r||n.props.loaders,o)&&(i={...i,fetch:{...null===(a=i)||void 0===a?void 0:a.fetch,signal:o}});
27let c=s.contains(t);return c||i||(s.add({resourceId:t,data:Object(re.a)(t,r),persistent:!1}),c=!0),c?s.subscribe({resourceId:t,onChange:t=>n.internalState.reloadAsyncProp(e,t),consumerId:n.id,requestId:e}):Object(re.a)(t,r,i)},compare:!1},updateTriggers:{},visible:!0,pickable:!1,opacity:{type:"number",min:0,max:1,value:1},onHover:{type:"function",value:null,compare:!1,optional:!0},onClick:{type:"function",value:null,compare:!1,optional:!0},onDragStart:{type:"function",value:null,compare:!1,optional:!0},onDrag:{type:"function",value:null,compare:!1,optional:!0},onDragEnd:{type:"function",value:null,compare:!1,optional:!0},coordinateSystem:r.a.DEFAULT,coordinateOrigin:{type:"array",value:[0,0,0],compare:!0},modelMatrix:{type:"array",value:null,compare:!0,optional:!0},wrapLongitude:!1,positionFormat:"XYZ",colorFormat:"RGBA",parameters:{},transitions:null,extensions:[],loaders:{type:"array",value:[],optional:!0,compare:!0},getPolygonOffset:{type:"function",value:({layerIndex:t})=>[0,100*-t],compare:!1},highlightedObjectIndex:-1,autoHighlight:!1,highlightColor:{type:"accessor",value:[0,0,128,128]}};class ce extends ee{toString(){const t=this.constructor.layerName||this.constructor.name;return"".concat(t,"({id: '").concat(this.props.id,"'})")}raiseError(t,e){var n,r,i,o;(e&&(t.message="".concat(e,": ").concat(t.message)),null===(n=(r=this.props).onError)||void 0===n?void 0:n.call(r,t))||(null===(i=this.context)||void 0===i||null===(o=i.onError)||void 0===o||o.call(i,t,this))}setState(t){this.setChangeFlags({stateChanged:!0}),Object.assign(this.state,t),this.setNeedsRedraw()}setNeedsRedraw(t=!0){this.internalState&&(this.internalState.needsRedraw=t)}setNeedsUpdate(){this.context.layerManager.setNeedsUpdate(String(this)),this.internalState.needsUpdate=!0}getNeedsRedraw(t={clearRedrawFlags:!1}){return this._getNeedsRedraw(t)}needsUpdate(){return this.internalState.needsUpdate||this.hasUniformTransition()||this.shouldUpdateState(this._getUpdateParams())}hasUniformTransition(){return this.internalState.uniformTransitions.active}get isLoaded(){return this.internalState&&!this.internalState.isAsyncPropLoading()}get wrapLongitude(){return this.props.wrapLongitude}isPickable(){return this.props.pickable&&this.props.visible}getModels(){return this.state&&(this.state.models||(this.state.model?[this.state.model]:[]))}getAttributeManager(){return this.internalState&&this.internalState.attributeManager}getCurrentLayer(){return this.internalState&&this.internalState.layer}getLoadOptions(){return this.props.loadOptions}project(t){const{viewport:e}=this.context,n=It(t,{viewport:e,modelMatrix:this.props.modelMatrix,coordinateOrigin:this.props.coordinateOrigin,coordinateSystem:this.props.coordinateSystem}),[r,i,o]=Object(Ct.u)(n,e.pixelProjectionMatrix);return 2===t.length?[r,i]:[r,i,o]}unproject(t){const{viewport:e}=this.context;return e.unproject(t)}projectPosition(t){return Tt(t,{viewport:this.context.viewport,modelMatrix:this.props.modelMatrix,coordinateOrigin:this.props.coordinateOrigin,coordinateSystem:this.props.coordinateSystem})}use64bitPositions(){const{coordinateSystem:t}=this.props;return t===r.a.DEFAULT||t===r.a.LNGLAT||t===r.a.CARTESIAN}onHover(t,e){return!!this.props.onHover&&this.props.onHover(t,e)}onClick(t,e){return!!this.props.onClick&&this.props.onClick(t,e)}nullPickingColor(){return[0,0,0]}encodePickingColor(t,e=[]){return e[0]=t+1&255,e[1]=t+1>>8&255,e[2]=t+1>>8>>8&255,e}decodePickingColor(t){Object(d.a)(t instanceof Uint8Array);const[e,n,r]=t;return e+256*n+65536*r-1}initializeState(){throw new Error("Layer ".concat(this," has not defined initializeState"))}getShaders(t){for(const e of this.props.extensions)t=bt(t,e.getShaders.call(this,e));return t}shouldUpdateState({oldProps:t,props:e,context:n,changeFlags:r}){return r.propsOrDataChanged}updateState({oldProps:t,props:e,context:n,changeFlags:r}){const i=this.getAttributeManager();if(r.dataChanged&&i){const{dataChanged:t}=r;if(Array.isArray(t))for(const e of t)i.invalidateAll(e);else i.invalidateAll()}const o=t.highlightedObjectIndex>=0||t.pickable,s=e.highlightedObjectIndex>=0||e.pickable;if(o!==s&&i){const{pickingColors:t,instancePickingColors:e}=i.attributes,n=t||e;
27n&&(s&&n.constant&&(n.constant=!1,i.invalidate(n.id)),n.value||s||(n.constant=!0,n.value=[0,0,0]))}}finalizeState(){for(const t of this.getModels())t.delete();const t=this.getAttributeManager();t&&t.finalize(),this.context.resourceManager.unsubscribe({consumerId:this.id}),this.internalState.uniformTransitions.clear(),this.internalState.finalize()}draw(t){for(const e of this.getModels())e.draw(t)}getPickingInfo({info:t,mode:e}){const{index:n}=t;return n>=0&&Array.isArray(this.props.data)&&(t.object=this.props.data[n]),t}activateViewport(t){const e=this.internalState.viewport;this.internalState.viewport=t,e&&oe({oldViewport:e,viewport:t})||(this.setChangeFlags({viewportChanged:!0}),this.isComposite?this.needsUpdate()&&this.setNeedsUpdate():this._update())}invalidateAttribute(t="all",e=""){const n=this.getAttributeManager();n&&("all"===t?n.invalidateAll():n.invalidate(t))}updateAttributes(t){for(const e of this.getModels())this._setModelAttributes(e,t)}_updateAttributes(t){const e=this.getAttributeManager();if(!e)return;const n=this.getNumInstances(t),r=this.getStartIndices(t);e.update({data:t.data,numInstances:n,startIndices:r,props:t,transitions:t.transitions,buffers:t.data.attributes,context:this,ignoreUnknownAttributes:!0});const i=e.getChangedAttributes({clearChangedFlags:!0});this.updateAttributes(i)}_updateAttributeTransition(){const t=this.getAttributeManager();t&&t.updateTransition()}_updateUniformTransition(){const{uniformTransitions:t}=this.internalState;if(t.active){const e=t.update(),n=Object.create(this.props);for(const t in e)Object.defineProperty(n,t,{value:e[t]});return n}return this.props}calculateInstancePickingColors(t,{numInstances:e}){if(t.constant)return;const n=Math.floor(se.length/3);if(this.internalState.usesPickingColorCache=!0,n<e){e>2**24-1&&u.a.warn("Layer has too many data objects. Picking might not be able to distinguish all objects.")(),se=c.a.allocate(se,e,{size:3,copy:!0,maxCount:Math.max(e,2**24-1)});const t=Math.floor(se.length/3),r=[];for(let e=n;e<t;e++)this.encodePickingColor(e,r),se[3*e+0]=r[0],se[3*e+1]=r[1],se[3*e+2]=r[2]}t.value=se.subarray(0,3*e)}_setModelAttributes(t,e){const n=this.getAttributeManager(),r=t.userData.excludeAttributes||{},i=n.getShaderAttributes(e,r);t.setAttributes(i)}disablePickingIndex(t){this._disablePickingIndex(t)}_disablePickingIndex(t){const{pickingColors:e,instancePickingColors:n}=this.getAttributeManager().attributes,r=e||n,i=r.getVertexOffset(t),o=r.getVertexOffset(t+1);r.buffer.subData({data:new Uint8Array(o-i),offset:i})}restorePickingColors(){const{pickingColors:t,instancePickingColors:e}=this.getAttributeManager().attributes,n=t||e;this.internalState.usesPickingColorCache&&n.value.buffer!==se.buffer&&(n.value=se.subarray(0,n.value.length)),n.updateSubBuffer({startOffset:0})}getNumInstances(t){return void 0!==(t=t||this.props).numInstances?t.numInstances:this.state&&void 0!==this.state.numInstances?this.state.numInstances:_t(t.data)}getStartIndices(t){return void 0!==(t=t||this.props).startIndices?t.startIndices:this.state&&this.state.startIndices?this.state.startIndices:null}_initialize(){Object(I.a)("layer.initialize",this),this._initState(),this.initializeState(this.context);for(const t of this.props.extensions)t.initializeState.call(this,this.context,t);this.setChangeFlags({dataChanged:!0,propsChanged:!0,viewportChanged:!0,extensionsChanged:!0}),this._updateState()}_update(){const t=this.needsUpdate();Object(I.a)("layer.update",this,t),t&&this._updateState()}_updateState(){const t=this.props,e=this.context.viewport,n=this._updateUniformTransition();this.internalState.propsInTransition=n,this.context.viewport=this.internalState.viewport||e,this.props=n;try{const n=this._getUpdateParams(),r=this.getModels();if(this.context.gl)this.updateState(n);else try{this.updateState(n)}catch(t){}for(const t of this.props.extensions)t.updateState.call(this,n,t);const i=this.getModels()[0]!==r[0];this._updateModules(n,i),this.isComposite?this._renderLayers(n):(this.setNeedsRedraw(),this._updateAttributes(this.props),this.state.model&&this.state.model.setInstanceCount(this.getNumInstances()))}finally{this.context.viewport=e,this.props=t,this.clearChangeFlags(),this.internalState.needsUpdate=!1,this.internalState.resetOldProps()}}_finalize(){Object(I.a)("layer.finalize",this),this.finalizeState(this.context);for(const t of this.props.extensions)t.finalizeState.call(this,t)}drawLayer({moduleParameters:t=null,uniforms:e={},parameters:n={}}){this._updateAttributeTransition();const r=this.props;this.props=this.internalState.propsInTransition||r;const{opacity:i}=this.props;e.opacity=Math.pow(i,1/2.2);try{t&&this.setModuleParameters(t);const{getPolygonOffset:i}=this.props,o=i&&i(e)||[0,0];Object(k.m)(this.context.gl,{polygonOffset:o}),Object(k.n)(this.context.gl,n,()=>{const r={moduleParameters:t,uniforms:e,parameters:n,context:this.context};for(const t of this.props.extensions)t.draw.call(this,r,t);this.draw(r)})}finally{this.props=r}}getChangeFlags(){return this.internalState.changeFlags}setChangeFlags(t){const{changeFlags:e}=this.internalState;for(const n in t)if(t[n]){let r=!1;switch(n){case"dataChanged":Array.isArray(e[n])&&(e[n]=Array.isArray(t[n])?e[n].concat(t[n]):t[n],r=!0);default:e[n]||(e[n]=t[n],r=!0)}r&&Object(I.a)("layer.changeFlag",this,n,t)}const n=e.dataChanged||e.updateTriggersChanged||e.propsChanged||e.extensionsChanged;e.propsOrDataChanged=n,e.somethingChanged=n||t.viewportChanged||t.stateChanged}clearChangeFlags(){this.internalState.changeFlags={dataChanged:!1,propsChanged:!1,updateTriggersChanged:!1,viewportChanged:!1,stateChanged:!1,extensionsChanged:!1,propsOrDataChanged:!1,somethingChanged:!1}}diffProps(t,e){const n=ht(t,e);if(n.updateTriggersChanged)for(const t in n.updateTriggersChanged)n.updateTriggersChanged[t]&&this.invalidateAttribute(t);if(n.transitionsChanged)for(const r in n.transitionsChanged)this.internalState.uniformTransitions.add(r,e[r],t[r],t.transitions[r]);return this.setChangeFlags(n)}validateProps(){!function(t){const e=yt(t);for(const n in e){const r=e[n],{validate:i}=r;if(i&&!i(t[n],r))throw new Error("Invalid prop ".concat(n,": ").concat(t[n]))}}(this.props)}setModuleParameters(t){for(const e of this.getModels())e.updateModuleSettings(t)}updateAutoHighlight(t){this.props.autoHighlight&&this._updateAutoHighlight(t)}_updateAutoHighlight(t){const e={pickingSelectedColor:t.picked?t.color:null},{highlightColor:n}=this.props;t.picked&&"function"==typeof n&&(e.pickingHighlightColor=n(t)),this.setModuleParameters(e),this.setNeedsRedraw()}_updateModules({props:t,oldProps:e},n){const{autoHighlight:r,highlightedObjectIndex:i,highlightColor:o}=t;if(n||e.autoHighlight!==r||e.highlightedObjectIndex!==i||e.highlightColor!==o){const t={};r||(t.pickingSelectedColor=null),Array.isArray(o)&&(t.pickingHighlightColor=o),Number.isInteger(i)&&(t.pickingSelectedColor=i>=0?this.encodePickingColor(i):null),this.setModuleParameters(t)}}_getUpdateParams(){return{props:this.props,oldProps:this.internalState.getOldProps(),context:this.context,changeFlags:this.internalState.changeFlags}}_getNeedsRedraw(t){if(!this.internalState)return!1;let e=!1;e=e||this.internalState.needsRedraw&&this.id,this.internalState.needsRedraw=this.internalState.needsRedraw&&!t.clearRedrawFlags;const n=this.getAttributeManager(),r=n&&n.getNeedsRedraw(t);return e=e||r,e}_getAttributeManager(){return new et(this.context.gl,{id:this.props.id,stats:this.context.stats,timeline:this.context.timeline})}_initState(){Object(d.a)(!this.internalState&&!this.state),Object(d.a)(isFinite(this.props.coordinateSystem));const t=this._getAttributeManager();t&&t.addInstanced({instancePickingColors:{type:5121,size:3,noAlloc:!0,update:this.calculateInstancePickingColors}}),this.internalState=new ne({attributeManager:t,layer:this}),this.clearChangeFlags(),this.state={},Object.defineProperty(this.state,"attributeManager",{get:()=>(u.a.deprecated("layer.state.attributeManager","layer.getAttributeManager()"),t)}),this.internalState.layer=this,this.internalState.uniformTransitions=new ct(this.context.timeline),this.internalState.onAsyncPropUpdated=this._onAsyncPropUpdated.bind(this),this.internalState.setAsyncProps(this.props)}_transferState(t){Object(I.a)("layer.matched",this,this===t);const{state:e,internalState:n}=t;this!==t&&(this.internalState=n,this.internalState.layer=this,this.state=e,this.internalState.setAsyncProps(this.props),this.diffProps(this.props,this.internalState.getOldProps()))}_onAsyncPropUpdated(){this.diffProps(this.props,this.internalState.getOldProps()),this.setNeedsUpdate()}}ce.layerName="Layer",ce.defaultProps=ae},,,,,,,,,,,,,,,,,,function(t,e){t.exports=function(){}},,,,,,,,,,function(t,e,n){var r=n(26),i=n(76),o=n(637),s=r.WeakMap;t.exports=i(s)&&/native code/.test(o(s))},function(t,e,n){"use strict";var r=n(1126).IteratorPrototype,i=n(975),o=n(302),s=n(886),a=n(540),c=function(){return this};t.exports=function(t,e,n,l){var u=e+" Iterator";return t.prototype=i(r,{next:o(+!l,n)}),s(t,u,!1,!0),a[u]=c,t}},function(t,e,n){var r=n(182),i=n(296),o=n(303),s=n(281),a=n(1224);t.exports=r?Object.defineProperties:function(t,e){o(t);for(var n,r=s(e),c=a(e),l=c.length,u=0;l>u;)i.f(t,n=c[u++],r[n]);return t}},function(t,e,n){var r=n(89);t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},function(t,e,n){"use strict";var r=n(513),i=n(336);t.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},function(t,e,n){var r=n(26),i=n(76),o=r.String,s=r.TypeError;t.exports=function(t){if("object"==typeof t||i(t))return t;throw s("Can't set "+o(t)+" as a prototype")}},function(t,e,n){var r=n(56),i=n(482),o=n(335),s=n(326),a=r("".charAt),c=r("".charCodeAt),l=r("".slice),u=function(t){return function(e,n){var r,u,h=o(s(e)),f=i(n),d=h.length;return f<0||f>=d?t?"":void 0:(r=c(h,f))<55296||r>56319||f+1===d||(u=c(h,f+1))<56320||u>57343?t?a(h,f):r:t?l(h,f,f+2):u-56320+(r-55296<<10)+65536}};t.exports={codeAt:u(!1),charAt:u(!0)}},function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){n(1651),n(1859),t.exports=n(515)},function(t,e,n){n(1652),n(1653),n(1654),n(1655),n(1656),n(1657),n(1658),n(1659),n(1660),n(1661),n(1662),n(1663),n(1664),n(1665),n(1666),n(1667),n(1668),n(1669),n(1670),n(1671),n(1672),n(1673),n(1674),n(1675),n(1676),n(1677),n(1678),n(1679),n(1680),n(1681),n(1682),n(1683),n(1684),n(1685),n(1686),n(1687),n(1689),n(1690),n(1691),n(1692),n(1693),n(1694),n(1695),n(1696),n(1697),n(1698),n(1699),n(1700),n(1701),n(1702),n(1703),n(1704),n(1705),n(1706),n(1707),n(1708),n(1709),n(1710),n(1711),n(1712),n(1713),n(1714),n(1715),n(1716),n(1717),n(1718),n(1719),n(1720),n(1721),n(1722),n(1723),n(680),n(1724),n(1725),n(1726),n(1727),n(1728),n(1729),n(1730),n(1731),n(1732),n(1733),n(1734),n(1735),n(1736),n(1737),n(1738),n(1739),n(1740),n(1167),n(1741),n(1742),n(1743),n(1744),n(1745),n(1746),n(1747),n(1748),n(1749),n(1750),n(1751),n(1752),n(1753),n(1754),n(1755),n(1756),n(1757),n(1758),n(1759),n(1760),n(1761),n(1762),n(1764),n(1765),n(1766),n(1767),n(1768),n(1769),n(1770),n(1771),n(1772),n(1773),n(1774),n(1775),n(1776),n(1777),n(1778),n(1779),n(1780),n(1782),n(1783),n(1784),n(1785),n(1786),n(1787),n(1788),n(1789),n(1790),n(1791),n(1792),n(1793),n(1794),n(1796),n(1797),n(1799),n(1800),n(1803),n(1804),n(1805),n(1806),n(1807),n(1808),n(1809),n(1810),n(1811),n(1812),n(1813),n(1814),n(1815),n(1816),n(1817),n(1818),n(1819),n(1820),n(1821),n(1822),n(1823),n(1824),n(1825),n(1826),n(1827),n(1828),n(1829),n(1830),n(1831),n(1832),n(1833),n(1834),n(1835),n(1836),n(1837),n(1838),n(1839),n(1840),n(1841),n(1842),n(1843),n(1844),n(1845),n(1846),n(1847),n(1848),n(1849),n(1850),n(1851),n(1852),n(1853),n(1854),n(1855),n(1856),n(1857),n(1858),t.exports=n(515)},function(t,e,n){"use strict";var r=n(12),i=n(57),o=n(401),s=n(81),a=n(1150),c=n(36),l=n(138),u=n(454),h=n(72),f=n(73),d=n(114),p=n(232),g=n(284),m=n(452),y=n(404),_=n(583),v=n(453),b=n(1152),x=n(934),w=n(211),E=n(110),S=n(675),C=n(184),A=n(212),I=n(578),T=n(676),M=n(580),F=n(579),B=n(82),L=n(1153),O=n(213),U=n(318),k=n(233),P=n(172).forEach,D=T("hidden"),R=B("toPrimitive"),j=k.set,z=k.getterFor("Symbol"),Q=Object.prototype,N=i.Symbol,V=i.JSON,G=V&&V.stringify,H=w.f,Z=E.f,W=b.f,X=S.f,Y=I("symbols"),q=I("op-symbol
27s"),K=I("string-to-symbol-registry"),J=I("symbol-to-string-registry"),$=I("wks"),tt=i.QObject,et=!tt||!tt.prototype||!tt.prototype.findChild,nt=s&&c((function(){return 7!=y(Z({},"a",{get:function(){return Z(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=H(Q,e);r&&delete Q[e],Z(t,e,n),r&&t!==Q&&Z(Q,e,r)}:Z,rt=function(t,e){var n=Y[t]=y(N.prototype);return j(n,{type:"Symbol",tag:t,description:e}),s||(n.description=e),n},it=a&&"symbol"==typeof N.iterator?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof N},ot=function(t,e,n){t===Q&&ot(q,e,n),f(t);var r=g(e,!0);return f(n),l(Y,r)?(n.enumerable?(l(t,D)&&t[D][r]&&(t[D][r]=!1),n=y(n,{enumerable:m(0,!1)})):(l(t,D)||Z(t,D,m(1,{})),t[D][r]=!0),nt(t,r,n)):Z(t,r,n)},st=function(t,e){f(t);var n=p(e),r=_(n).concat(ut(n));return P(r,(function(e){s&&!at.call(n,e)||ot(t,e,n[e])})),t},at=function(t){var e=g(t,!0),n=X.call(this,e);return!(this===Q&&l(Y,e)&&!l(q,e))&&(!(n||!l(this,e)||!l(Y,e)||l(this,D)&&this[D][e])||n)},ct=function(t,e){var n=p(t),r=g(e,!0);if(n!==Q||!l(Y,r)||l(q,r)){var i=H(n,r);return!i||!l(Y,r)||l(n,D)&&n[D][r]||(i.enumerable=!0),i}},lt=function(t){var e=W(p(t)),n=[];return P(e,(function(t){l(Y,t)||l(M,t)||n.push(t)})),n},ut=function(t){var e=t===Q,n=W(e?q:p(t)),r=[];return P(n,(function(t){!l(Y,t)||e&&!l(Q,t)||r.push(Y[t])})),r};a||(A((N=function(){if(this instanceof N)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=F(t),n=function(t){this===Q&&n.call(q,t),l(this,D)&&l(this[D],e)&&(this[D][e]=!1),nt(this,e,m(1,t))};return s&&et&&nt(Q,e,{configurable:!0,set:n}),rt(e,t)}).prototype,"toString",(function(){return z(this).tag})),S.f=at,E.f=ot,w.f=ct,v.f=b.f=lt,x.f=ut,s&&(Z(N.prototype,"description",{configurable:!0,get:function(){return z(this).description}}),o||A(Q,"propertyIsEnumerable",at,{unsafe:!0})),L.f=function(t){return rt(B(t),t)}),r({global:!0,wrap:!0,forced:!a,sham:!a},{Symbol:N}),P(_($),(function(t){O(t)})),r({target:"Symbol",stat:!0,forced:!a},{for:function(t){var e=String(t);if(l(K,e))return K[e];var n=N(e);return K[e]=n,J[n]=e,n},keyFor:function(t){if(!it(t))throw TypeError(t+" is not a symbol");if(l(J,t))return J[t]},useSetter:function(){et=!0},useSimple:function(){et=!1}}),r({target:"Object",stat:!0,forced:!a,sham:!s},{create:function(t,e){return void 0===e?y(t):st(y(t),e)},defineProperty:ot,defineProperties:st,getOwnPropertyDescriptor:ct}),r({target:"Object",stat:!0,forced:!a},{getOwnPropertyNames:lt,getOwnPropertySymbols:ut}),r({target:"Object",stat:!0,forced:c((function(){x.f(1)}))},{getOwnPropertySymbols:function(t){return x.f(d(t))}}),V&&r({target:"JSON",stat:!0,forced:!a||c((function(){var t=N();return"[null]"!=G([t])||"{}"!=G({a:t})||"{}"!=G(Object(t))}))},{stringify:function(t){for(var e,n,r=[t],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=e=r[1],(h(e)||void 0!==t)&&!it(t))return u(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!it(e))return e}),r[1]=e,G.apply(V,r)}}),N.prototype[R]||C(N.prototype,R,N.prototype.valueOf),U(N,"Symbol"),M[D]=!0},function(t,e,n){n(213)("asyncIterator")},function(t,e,n){"use strict";var r=n(12),i=n(81),o=n(57),s=n(138),a=n(72),c=n(110).f,l=n(1148),u=o.Symbol;if(i&&"function"==typeof u&&(!("description"in u.prototype)||void 0!==u().description)){var h={},f=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof f?new u(t):void 0===t?u():u(t);return""===t&&(h[e]=!0),e};l(f,u);var d=f.prototype=u.prototype;d.constructor=f;var p=d.toString,g="Symbol(test)"==String(u("test")),m=/^Symbol\((.*)\)[^)]+$/;c(d,"description",{configurable:!0,get:function(){var t=a(this)?this.valueOf():this,e=p.call(t);if(s(h,t))return"";var n=g?e.slice(7,-1):e.replace(m,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:f})}},function(t,e,n){n(213)("hasInstance")},function(t,e,n){n(213)("isConcatSpreadable")},function(t,e,n){n(213)("iterator")},function(t,e,n){n(213)("match")},function(t,e,n){n(213)("matchAll")},function(t,e,n){n(213)("replace")},function(t,e,n){n(213)("search")},function(t,e,n){n(213)("species")},function(t,e,n){n(213)("split")},function(t,e,n){n(213)("toPrimitive")},function(t,e,n){n(213)("toStringTag")},function(t,e,n){n(213)("unscopables")}
vendor: 5,490 bytes, line 27
27,function(t,e,n){var r=n(12),i=n(1154);r({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},function(t,e,n){n(12)({target:"Object",stat:!0,sham:!n(81)},{create:n(404)})},function(t,e,n){var r=n(12),i=n(81);r({target:"Object",stat:!0,forced:!i,sham:!i},{defineProperty:n(110).f})},function(t,e,n){var r=n(12),i=n(81);r({target:"Object",stat:!0,forced:!i,sham:!i},{defineProperties:n(935)})},function(t,e,n){var r=n(12),i=n(1155).entries;r({target:"Object",stat:!0},{entries:function(t){return i(t)}})},function(t,e,n){var r=n(12),i=n(585),o=n(36),s=n(72),a=n(455).onFreeze,c=Object.freeze;r({target:"Object",stat:!0,forced:o((function(){c(1)})),sham:!i},{freeze:function(t){return c&&s(t)?c(a(t)):t}})},function(t,e,n){var r=n(12),i=n(586),o=n(456);r({target:"Object",stat:!0},{fromEntries:function(t){var e={};return i(t,(function(t,n){o(e,t,n)}),void 0,!0),e}})},function(t,e,n){var r=n(12),i=n(36),o=n(232),s=n(211).f,a=n(81),c=i((function(){s(1)}));r({target:"Object",stat:!0,forced:!a||c,sham:!a},{getOwnPropertyDescriptor:function(t,e){return s(o(t),e)}})},function(t,e,n){var r=n(12),i=n(81),o=n(932),s=n(232),a=n(211),c=n(456);r({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(t){for(var e,n,r=s(t),i=a.f,l=o(r),u={},h=0;l.length>h;)void 0!==(n=i(r,e=l[h++]))&&c(u,e,n);return u}})},function(t,e,n){var r=n(12),i=n(36),o=n(1152).f;r({target:"Object",stat:!0,forced:i((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:o})},function(t,e,n){var r=n(12),i=n(36),o=n(114),s=n(319),a=n(937);r({target:"Object",stat:!0,forced:i((function(){s(1)})),sham:!a},{getPrototypeOf:function(t){return s(o(t))}})},function(t,e,n){n(12)({target:"Object",stat:!0},{is:n(1157)})},function(t,e,n){var r=n(12),i=n(36),o=n(72),s=Object.isExtensible;r({target:"Object",stat:!0,forced:i((function(){s(1)}))},{isExtensible:function(t){return!!o(t)&&(!s||s(t))}})},function(t,e,n){var r=n(12),i=n(36),o=n(72),s=Object.isFrozen;r({target:"Object",stat:!0,forced:i((function(){s(1)}))},{isFrozen:function(t){return!o(t)||!!s&&s(t)}})},function(t,e,n){var r=n(12),i=n(36),o=n(72),s=Object.isSealed;r({target:"Object",stat:!0,forced:i((function(){s(1)}))},{isSealed:function(t){return!o(t)||!!s&&s(t)}})},function(t,e,n){var r=n(12),i=n(114),o=n(583);r({target:"Object",stat:!0,forced:n(36)((function(){o(1)}))},{keys:function(t){return o(i(t))}})},function(t,e,n){var r=n(12),i=n(72),o=n(455).onFreeze,s=n(585),a=n(36),c=Object.preventExtensions;r({target:"Object",stat:!0,forced:a((function(){c(1)})),sham:!s},{preventExtensions:function(t){return c&&i(t)?c(o(t)):t}})},function(t,e,n){var r=n(12),i=n(72),o=n(455).onFreeze,s=n(585),a=n(36),c=Object.seal;r({target:"Object",stat:!0,forced:a((function(){c(1)})),sham:!s},{seal:function(t){return c&&i(t)?c(o(t)):t}})},function(t,e,n){n(12)({target:"Object",stat:!0},{setPrototypeOf:n(516)})},function(t,e,n){var r=n(12),i=n(1155).values;r({target:"Object",stat:!0},{values:function(t){return i(t)}})},function(t,e,n){var r=n(212),i=n(1688),o=Object.prototype;i!==o.toString&&r(o,"toString",i,{unsafe:!0})},function(t,e,n){"use strict";var r=n(589),i={};i[n(82)("toStringTag")]="z",t.exports="[object z]"!==String(i)?function(){return"[object "+r(this)+"]"}:i.toString},function(t,e,n){"use strict";var r=n(12),i=n(81),o=n(677),s=n(114),a=n(234),c=n(110);i&&r({target:"Object",proto:!0,forced:o},{__defineGetter__:function(t,e){c.f(s(this),t,{get:a(e),enumerable:!0,configurable:!0})}})},function(t,e,n){"use strict";var r=n(12),i=n(81),o=n(677),s=n(114),a=n(234),c=n(110);i&&r({target:"Object",proto:!0,forced:o},{__defineSetter__:function(t,e){c.f(s(this),t,{set:a(e),enumerable:!0,configurable:!0})}})},function(t,e,n){"use strict";var r=n(12),i=n(81),o=n(677),s=n(114),a=n(284),c=n(319),l=n(211).f;i&&r({target:"Object",proto:!0,forced:o},{__lookupGetter__:function(t){var e,n=s(this),r=a(t,!0);do{if(e=l(n,r))return e.get}while(n=c(n))}})},function(t,e,n){"use strict";var r=n(12),i=n(81),o=n(677),s=n(114),a=n(284),c=n(319),l=n(211).f;i&&r({target:"Object",proto:!0,forced:o},{__lookupSetter__:function(t){var e,n=s(this),r=a(t,!0);do{if(e=l(n,r))return e.set}while(n=c(n))}})},function(t,e,n){n(12)({target:"Function",proto:!0},{bind:n(1159)})},function(t,e,n){var r=n(81),i=n(110).f,o=Function.prototype,s=o.toString,a=/^\s*function ([^ (]*)/;r&&!("name"in o)&&i(o,"name",{configurable:!0,get:function(){try{return s.call(this).match(a)[1]}catch(t){return""}}})},function(t,e,n){"use strict";var r=n(72),i=n(110),o=n(319),s=n(82)("hasInstance"),a=Function.prototype;s in a||i.f(a,s,{value:function(t){if("function"!=typeof this||!r(t))return!1;if(!r(this.prototype))return t instanceof this;for(;t=o(t);)if(this.prototype===t)return!0;return!1}})},function(t,e,n){var r=n(12),i=n(1160);r({target:"Array",stat:!0,forced:!n(678)((function(t){Array.from(t)}))},{from:i})},function(t,e,n){n(12)({target:"Array",stat:!0},{isArray:n(454)})},function(t,e,n){"use strict";var r=n(12),i=n(36),o=n(456);r({target:"Array",stat:!0,forced:i((function(){function t(){}return!(Array.of.call(t)instanceof t)}))},{of:function(){for(var t=0,e=arguments.length,n=new("function"==typeof this?this:Array)(e);e>t;)o(n,t,arguments[t++]);return n.length=e,n}})},function(t,e,n){"use strict";var r=n(12),i=n(36),o=n(454),s=n(72),a=n(114),c=n(87),l=n(456),u=n(584),h=n(590),f=n(82)("isConcatSpreadable"),d=!i((function(){var t=[];return t[f]=!1,t.concat()[0]!==t})),p=h("concat"),g=function(t){if(!s(t))return!1;var e=t[f];
vendor: 4,585 bytes, line 27
27return void 0!==e?!!e:o(t)};r({target:"Array",proto:!0,forced:!d||!p},{concat:function(t){var e,n,r,i,o,s=a(this),h=u(s,0),f=0;for(e=-1,r=arguments.length;e<r;e++)if(g(o=-1===e?s:arguments[e])){if(f+(i=c(o.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<i;n++,f++)n in o&&l(h,f,o[n])}else{if(f>=9007199254740991)throw TypeError("Maximum allowed index exceeded");l(h,f++,o)}return h.length=f,h}})},function(t,e,n){var r=n(12),i=n(1161),o=n(406);r({target:"Array",proto:!0},{copyWithin:i}),o("copyWithin")},function(t,e,n){"use strict";var r=n(12),i=n(172).every;r({target:"Array",proto:!0,forced:n(351)("every")},{every:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(12),i=n(938),o=n(406);r({target:"Array",proto:!0},{fill:i}),o("fill")},function(t,e,n){"use strict";var r=n(12),i=n(172).filter;r({target:"Array",proto:!0,forced:!n(590)("filter")},{filter:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var r=n(12),i=n(172).find,o=n(406),s=!0;"find"in[]&&Array(1).find((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o("find")},function(t,e,n){"use strict";var r=n(12),i=n(172).findIndex,o=n(406),s=!0;"findIndex"in[]&&Array(1).findIndex((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{findIndex:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o("findIndex")},function(t,e,n){"use strict";var r=n(12),i=n(1162),o=n(114),s=n(87),a=n(255),c=n(584);r({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=o(this),n=s(e.length),r=c(e,0);return r.length=i(r,e,e,n,0,void 0===t?1:a(t)),r}})},function(t,e,n){"use strict";var r=n(12),i=n(1162),o=n(114),s=n(87),a=n(234),c=n(584);r({target:"Array",proto:!0},{flatMap:function(t){var e,n=o(this),r=s(n.length);return a(t),(e=c(n,0)).length=i(e,n,n,r,0,1,t,arguments.length>1?arguments[1]:void 0),e}})},function(t,e,n){"use strict";var r=n(12),i=n(1163);r({target:"Array",proto:!0,forced:[].forEach!=i},{forEach:i})},function(t,e,n){"use strict";var r=n(12),i=n(581).includes,o=n(406);r({target:"Array",proto:!0},{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o("includes")},function(t,e,n){"use strict";var r=n(12),i=n(581).indexOf,o=n(351),s=[].indexOf,a=!!s&&1/[1].indexOf(1,-0)<0,c=o("indexOf");r({target:"Array",proto:!0,forced:a||c},{indexOf:function(t){return a?s.apply(this,arguments)||0:i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var r=n(12),i=n(577),o=n(232),s=n(351),a=[].join,c=i!=Object,l=s("join",",");r({target:"Array",proto:!0,forced:c||l},{join:function(t){return a.call(o(this),void 0===t?",":t)}})},function(t,e,n){var r=n(12),i=n(1164);r({target:"Array",proto:!0,forced:i!==[].lastIndexOf},{lastIndexOf:i})},function(t,e,n){"use strict";var r=n(12),i=n(172).map;r({target:"Array",proto:!0,forced:!n(590)("map")},{map:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var r=n(12),i=n(679).left;r({target:"Array",proto:!0,forced:n(351)("reduce")},{reduce:function(t){return i(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var r=n(12),i=n(679).right;r({target:"Array",proto:!0,forced:n(351)("reduceRight")},{reduceRight:function(t){return i(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var r=n(12),i=n(454),o=[].reverse,s=[1,2];r({target:"Array",proto:!0,forced:String(s)===String(s.reverse())},{reverse:function(){return i(this)&&(this.length=this.length),o.call(this)}})},function(t,e,n){"use strict";var r=n(12),i=n(72),o=n(454),s=n(403),a=n(87),c=n(232),l=n(456),u=n(590),h=n(82)("species"),f=[].slice,d=Math.max;r({target:"Array",proto:!0,forced:!u("slice")},{slice:function(t,e){var n,r,u,p=c(this),g=a(p.length),m=s(t,g),y=s(void 0===e?g:e,g);if(o(p)&&("function"!=typeof(n=p.constructor)||n!==Array&&!o(n.prototype)?i(n)&&null===(n=n[h])&&(n=void 0):n=void 0,n===Array||void 0===n))return f.call(p,m,y);for(r=new(void 0===n?Array:n)(d(y-m,0)),u=0;m<y;m++,u++)m in p&&l(r,u,p[m]);return r.length=u,r}})},function(t,e,n){"use strict";var r=n(12),i=n(172).some;r({target:"Array",proto:!0,forced:n(351)("some")},{some:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var r=n(12),i=n(234),o=n(114),s=n(36),a=n(351),c=[].sort,l=[1,2,3],u=s((function(){l.
vendor: 12,733 bytes, line 27
27sort(void 0)})),h=s((function(){l.sort(null)})),f=a("sort");r({target:"Array",proto:!0,forced:u||!h||f},{sort:function(t){return void 0===t?c.call(o(this)):c.call(o(this),i(t))}})},function(t,e,n){"use strict";var r=n(12),i=n(403),o=n(255),s=n(87),a=n(114),c=n(584),l=n(456),u=n(590),h=Math.max,f=Math.min;r({target:"Array",proto:!0,forced:!u("splice")},{splice:function(t,e){var n,r,u,d,p,g,m=a(this),y=s(m.length),_=i(t,y),v=arguments.length;if(0===v?n=r=0:1===v?(n=0,r=y-_):(n=v-2,r=f(h(o(e),0),y-_)),y+n-r>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(u=c(m,r),d=0;d<r;d++)(p=_+d)in m&&l(u,d,m[p]);if(u.length=r,n<r){for(d=_;d<y-r;d++)g=d+n,(p=d+r)in m?m[g]=m[p]:delete m[g];for(d=y;d>y-r+n;d--)delete m[d-1]}else if(n>r)for(d=y-r;d>_;d--)g=d+n-1,(p=d+r-1)in m?m[g]=m[p]:delete m[g];for(d=0;d<n;d++)m[d+_]=arguments[d+2];return m.length=y-r+n,u}})},function(t,e,n){n(517)("Array")},function(t,e,n){n(406)("flat")},function(t,e,n){n(406)("flatMap")},function(t,e,n){var r=n(12),i=n(403),o=String.fromCharCode,s=String.fromCodePoint;r({target:"String",stat:!0,forced:!!s&&1!=s.length},{fromCodePoint:function(t){for(var e,n=[],r=arguments.length,s=0;r>s;){if(e=+arguments[s++],i(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(e<65536?o(e):o(55296+((e-=65536)>>10),e%1024+56320))}return n.join("")}})},function(t,e,n){var r=n(12),i=n(232),o=n(87);r({target:"String",stat:!0},{raw:function(t){for(var e=i(t.raw),n=o(e.length),r=arguments.length,s=[],a=0;n>a;)s.push(String(e[a++])),a<r&&s.push(String(arguments[a]));return s.join("")}})},function(t,e,n){"use strict";var r=n(12),i=n(681).codeAt;r({target:"String",proto:!0},{codePointAt:function(t){return i(this,t)}})},function(t,e,n){"use strict";var r=n(12),i=n(87),o=n(941),s=n(196),a=n(943),c="".endsWith,l=Math.min;r({target:"String",proto:!0,forced:!a("endsWith")},{endsWith:function(t){var e=String(s(this));o(t);var n=arguments.length>1?arguments[1]:void 0,r=i(e.length),a=void 0===n?r:l(i(n),r),u=String(t);return c?c.call(e,u,a):e.slice(a-u.length,a)===u}})},function(t,e,n){"use strict";var r=n(12),i=n(941),o=n(196);r({target:"String",proto:!0,forced:!n(943)("includes")},{includes:function(t){return!!~String(o(this)).indexOf(i(t),arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var r=n(682),i=n(73),o=n(87),s=n(196),a=n(684),c=n(685);r("match",1,(function(t,e,n){return[function(e){var n=s(this),r=null==e?void 0:e[t];return void 0!==r?r.call(e,n):new RegExp(e)[t](String(n))},function(t){var r=n(e,t,this);if(r.done)return r.value;var s=i(t),l=String(this);if(!s.global)return c(s,l);var u=s.unicode;s.lastIndex=0;for(var h,f=[],d=0;null!==(h=c(s,l));){var p=String(h[0]);f[d]=p,""===p&&(s.lastIndex=a(l,o(s.lastIndex),u)),d++}return 0===d?null:f}]}))},function(t,e,n){"use strict";var r=n(12),i=n(940),o=n(196),s=n(87),a=n(234),c=n(73),l=n(589),u=n(591),h=n(184),f=n(82),d=n(352),p=n(684),g=n(233),m=n(401),y=f("matchAll"),_=g.set,v=g.getterFor("RegExp String Iterator"),b=RegExp.prototype,x=b.exec,w=i((function(t,e,n,r){_(this,{type:"RegExp String Iterator",regexp:t,string:e,global:n,unicode:r,done:!1})}),"RegExp String",(function(){var t=v(this);if(t.done)return{value:void 0,done:!0};var e=t.regexp,n=t.string,r=function(t,e){var n,r=t.exec;if("function"==typeof r){if("object"!=typeof(n=r.call(t,e)))throw TypeError("Incorrect exec result");return n}return x.call(t,e)}(e,n);return null===r?{value:void 0,done:t.done=!0}:t.global?(""==String(r[0])&&(e.lastIndex=p(n,s(e.lastIndex),t.unicode)),{value:r,done:!1}):(t.done=!0,{value:r,done:!1})})),E=function(t){var e,n,r,i,o,a,l=c(this),h=String(t);return e=d(l,RegExp),void 0===(n=l.flags)&&l instanceof RegExp&&!("flags"in b)&&(n=u.call(l)),r=void 0===n?"":String(n),i=new e(e===RegExp?l.source:l,r),o=!!~r.indexOf("g"),a=!!~r.indexOf("u"),i.lastIndex=s(l.lastIndex),new w(i,h,o,a)};r({target:"String",proto:!0},{matchAll:function(t){var e,n,r,i=o(this);return null!=t&&(void 0===(n=t[y])&&m&&"RegExp"==l(t)&&(n=E),null!=n)?a(n).call(t,i):(e=String(i),r=new RegExp(t,"g"),m?E.call(r,e):r[y](e))}}),m||y in b||h(b,y,E)},function(t,e,n){"use strict";var r=n(12),i=n(944).end;r({target:"String",proto:!0,forced:n(1166)},{padEnd:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var r=n(12),i=n(944).start;r({target:"String",proto:!0,forced:n(1166)},{padStart:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){n(12)({target:"String",proto:!0},{repeat:n(945)})},function(t,e,n){"use strict";var r=n(682),i=n(73),o=n(114),s=n(87),a=n(255),c=n(196),l=n(684),u=n(685),h=Math.max,f=Math.min,d=Math.floor,p=/\$([$&'`]|\d\d?|<[^>]*>)/g,g=/\$([$&'`]|\d\d?)/g;r("replace",2,(function(t,e,n){return[function(n,r){var i=c(this),o=null==n?void 0:n[t];return void 0!==o?o.call(n,i,r):e.call(String(i),n,r)},function(t,o){var c=n(e,t,this,o);if(c.done)return c.value;var d=i(t),p=String(this),g="function"==typeof o;g||(o=String(o));var m=d.global;if(m){var y=d.unicode;d.lastIndex=0}for(var _=[];;){var v=u(d,p);if(null===v)break;if(_.push(v),!m)break;""===String(v[0])&&(d.lastIndex=l(p,s(d.lastIndex),y))}for(var b,x="",w=0,E=0;E<_.length;E++){v=_[E];for(var S=String(v[0]),C=h(f(a(v.index),p.length),0),A=[],I=1;I<v.length;I++)A.push(void 0===(b=v[I])?b:String(b));var T=v.groups;if(g){var M=[S].concat(A,C,p);void 0!==T&&M.push(T);var F=String(o.apply(void 0,M))}else F=r(S,p,C,A,T,o);C>=w&&(x+=p.slice(w,C)+F,w=C+S.length)}return x+p.slice(w)}];function r(t,n,r,i,s,a){var c=r+t.length,l=i.length,u=g;return void 0!==s&&(s=o(s),u=p),e.call(a,u,(function(e,o){var a;switch(o.charAt(0)){case"$":return"$";case"&":return t;case"`":return n.slice(0,r);case"'":return n.slice(c);case"<":a=s[o.slice(1,-1)];break;default:var u=+o;if(0===u)return e;if(u>l){var h=d(u/10);return 0===h?e:h<=l?void 0===i[h-1]?o.charAt(1):i[h-1]+o.charAt(1):e}a=i[u-1]}return void 0===a?"":a}))}}))},function(t,e,n){"use strict";var r=n(682),i=n(73),o=n(196),s=n(1157),a=n(685);r("search",1,(function(t,e,n){return[function(e){var n=o(this),r=null==e?void 0:e[t];return void 0!==r?r.call(e,n):new RegExp(e)[t](String(n))},function(t){var r=n(e,t,this);if(r.done)return r.value;var o=i(t),c=String(this),l=o.lastIndex;s(l,0)||(o.lastIndex=0);var u=a(o,c);return s(o.lastIndex,l)||(o.lastIndex=l),null===u?-1:u.index}]}))},function(t,e,n){"use strict";var r=n(682),i=n(942),o=n(73),s=n(196),a=n(352),c=n(684),l=n(87),u=n(685),h=n(683),f=n(36),d=[].push,p=Math.min,g=!f((function(){return!RegExp(4294967295,"y")}));r("split",2,(function(t,e,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var r=String(s(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===t)return[r];if(!i(t))return e.call(r,t,o);for(var a,c,l,u=[],f=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),p=0,g=new RegExp(t.source,f+"g");(a=h.call(g,r))&&!((c=g.lastIndex)>p&&(u.push(r.slice(p,a.index)),a.length>1&&a.index<r.length&&d.apply(u,a.slice(1)),l=a[0].length,p=c,u.length>=o));)g.lastIndex===a.index&&g.lastIndex++;return p===r.length?!l&&g.test("")||u.push(""):u.push(r.slice(p)),u.length>o?u.slice(0,o):u}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:e.call(this,t,n)}:e,[function(e,n){var i=s(this),o=null==e?void 0:e[t];return void 0!==o?o.call(e,i,n):r.call(String(i),e,n)},function(t,i){var s=n(r,t,this,i,r!==e);if(s.done)return s.value;var h=o(t),f=String(this),d=a(h,RegExp),m=h.unicode,y=(h.ignoreCase?"i":"")+(h.multiline?"m":"")+(h.unicode?"u":"")+(g?"y":"g"),_=new d(g?h:"^(?:"+h.source+")",y),v=void 0===i?4294967295:i>>>0;if(0===v)return[];if(0===f.length)return null===u(_,f)?[f]:[];for(var b=0,x=0,w=[];x<f.length;){_.lastIndex=g?x:0;var E,S=u(_,g?f:f.slice(x));if(null===S||(E=p(l(_.lastIndex+(g?0:x)),f.length))===b)x=c(f,x,m);else{if(w.push(f.slice(b,x)),w.length===v)return w;for(var C=1;C<=S.length-1;C++)if(w.push(S[C]),w.length===v)return w;x=b=E}}return w.push(f.slice(b)),w}]}),!g)},function(t,e,n){"use strict";var r=n(12),i=n(87),o=n(941),s=n(196),a=n(943),c="".startsWith,l=Math.min;r({target:"String",proto:!0,forced:!a("startsWith")},{startsWith:function(t){var e=String(s(this));o(t);var n=i(l(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return c?c.call(e,r,n):e.slice(n,n+r.length)===r}})},function(t,e,n){"use strict";var r=n(12),i=n(518).trim;r({target:"String",proto:!0,forced:n(946)("trim")},{trim:function(){return i(this)}})},function(t,e,n){"use strict";var r=n(12),i=n(518).start,o=n(946)("trimStart"),s=o?function(){return i(this)}:"".trimStart;r({target:"String",proto:!0,forced:o},{trimStart:s,trimLeft:s})},function(t,e,n){"use strict";var r=n(12),i=n(518).end,o=n(946)("trimEnd"),s=o?function(){return i(this)}:"".trimEnd;r({target:"String",proto:!0,forced:o},{trimEnd:s,trimRight:s})},function(t,e,n){"use strict";var r=n(12),i=n(235);r({target:"String",proto:!0,forced:n(236)("anchor")},{anchor:function(t){return i(this,"a","name",t)}})},function(t,e,n){"use strict";var r=n(12),i=n(235);r({target:"String",proto:!0,forced:n(236)("big")},{big:function(){return i(this,"big","","")}})},function(t,e,n){"use strict";var r=n(12),i=n(235);r({target:"String",proto:!0,forced:n(236)("blink")},{blink:function(){return i(this,"blink","","")}})},function(t,e,n){"use strict";var r=n(12),i=n(235);r({target:"String",proto:!0,forced:n(236)("bold")},{bold:function(){return i(this,"b","","")}})},function(t,e,n){"use strict";var r=n(12),i=n(235);r({target:"String",proto:!0,forced:n(236)("fixed")},{fixed:function(){return i(this,"tt","","")}})},function(t,e,n){"use strict";var r=n(12),i=n(235);r({target:"String",proto:!0,forced:n(236)("fontcolor")},{fontcolor:function(t){return i(this,"font","color",t)}})},function(t,e,n){"use strict";var r=n(12),i=n(235);r({target:"String",proto:!0,forced:n(236)("fontsize")},{fontsize:function(t){return i(this,"font","size",t)}})},function(t,e,n){"use strict";var r=n(12),i=n(235);r({target:"String",proto:!0,forced:n(236)("italics")},{italics:function(){return i(this,"i","","")}})},function(t,e,n){"use strict";var r=n(12),i=n(235);r({target:"String",proto:!0,forced:n(236)("link")},{link:function(t){return i(this,"a","href",t)}})},function(t,e,n){"use strict";var r=n(12),i=n(235);r({target:"String",proto:!0,forced:n(236)("small")},{small:function(){return i(this,"small","","")}})},function(t,e,n){"use strict";var r=n(12),i=n(235);r({target:"String",proto:!0,forced:n(236)("strike")},{strike:function(){return i(this,"strike","","")}})},function(t,e,n){"use strict";var r=n(12),i=n(235);r({target:"String",proto:!0,forced:n(236)("sub")},{sub:function(){return i(this,"sub","","")}})},function(t,e,n){"use strict";var r=n(12),i=n(235);r({target:"String",proto:!0,forced:n(236)("sup")},{sup:function(){return i(this,"sup","","")}})},function(t,e,n){var r=n(81),i=n(57),o=n(582),s=n(947),a=n(110).f,c=n(453).f,l=n(942),u=n(591),h=n(212),f=n(36),d=n(517),p=n(82)("match"),g=i.RegExp,m=g.prototype,y=/a/g,_=/a/g,v=new g(y)!==y;if(r&&o("RegExp",!v||f((function(){return _[p]=!1,g(y)!=y||g(_)==_||"/a/i"!=g(y,"i")})))){for(var b=function(t,e){var n=this instanceof b,r=l(t),i=void 0===e;return!n&&r&&t.constructor===b&&i?t:s(v?new g(r&&!i?t.source:t,e):g((r=t instanceof b)?t.source:t,r&&i?u.call(t):e),n?this:m,b)},x=function(t){t in b||a(b,t,{configurable:!0,get:function(){return g[t]},set:function(e){g[t]=e}})},w=c(g),E=0;w.length>E;)x(w[E++]);m.constructor=b,b.prototype=m,h(i,"RegExp",b)}d("RegExp")},function(t,e,n){"use strict";var r=n(12),i=n(683);r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},function(t,e,n){var r=n(81),i=n(110),o=n(591);r&&"g"!=/./g.flags&&i.f(RegExp.prototype,"flags",{configurable:!0,get:o})},function(t,e,n){"use strict";var r=n(212),i=n(73),o=n(36),s=n(591),a=RegExp.prototype,c=a.toString,l=o((function(){return"/a/b"!=c.call({source:"a",flags:"b"})})),u="toString"!=c.name;(l||u)&&r(RegExp.prototype,"toString",(function(){var t=i(this),e=String(t.source),n=t.flags;return"/"+e+"/"+String(void 0===n&&t instanceof RegExp&&!("flags"in a)?s.call(t):n)}),{unsafe:!0})},function(t,e,n){var r=n(12),i=n(1168);r({global:!0,forced:parseInt!=i},{parseInt:i})},function(t,e,n){var r=n(12),i=n(1169);r({global:!0,forced:parseFloat!=i},{parseFloat:i})},function(t,e,n){"use strict";var r=n(81),i=n(57),o=n(582),s=n(212),a=n(138),c=n(283),l=n(947),u=n(284),h=n(36),f=n(404),d=n(453).f,p=n(211).f,g=n(110).f,m=n(518).trim,y=i.Number,_=y.prototype,v="Number"==c(f(_)),b=function(t){var e,n,r,i,o,s,a,c,l=u(t,!1);if("string"==typeof l&&l.length>
vendor: 5,806 bytes, line 27
272)if(43===(e=(l=m(l)).charCodeAt(0))||45===e){if(88===(n=l.charCodeAt(2))||120===n)return NaN}else if(48===e){switch(l.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+l}for(s=(o=l.slice(2)).length,a=0;a<s;a++)if((c=o.charCodeAt(a))<48||c>i)return NaN;return parseInt(o,r)}return+l};if(o("Number",!y(" 0o1")||!y("0b1")||y("+0x1"))){for(var x,w=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof w&&(v?h((function(){_.valueOf.call(n)})):"Number"!=c(n))?l(new y(b(e)),n,w):b(e)},E=r?d(y):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),S=0;E.length>S;S++)a(y,x=E[S])&&!a(w,x)&&g(w,x,p(y,x));w.prototype=_,_.constructor=w,s(i,"Number",w)}},function(t,e,n){n(12)({target:"Number",stat:!0},{EPSILON:Math.pow(2,-52)})},function(t,e,n){n(12)({target:"Number",stat:!0},{isFinite:n(1763)})},function(t,e,n){var r=n(57).isFinite;t.exports=Number.isFinite||function(t){return"number"==typeof t&&r(t)}},function(t,e,n){n(12)({target:"Number",stat:!0},{isInteger:n(1170)})},function(t,e,n){n(12)({target:"Number",stat:!0},{isNaN:function(t){return t!=t}})},function(t,e,n){var r=n(12),i=n(1170),o=Math.abs;r({target:"Number",stat:!0},{isSafeInteger:function(t){return i(t)&&o(t)<=9007199254740991}})},function(t,e,n){n(12)({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991})},function(t,e,n){n(12)({target:"Number",stat:!0},{MIN_SAFE_INTEGER:-9007199254740991})},function(t,e,n){var r=n(12),i=n(1169);r({target:"Number",stat:!0,forced:Number.parseFloat!=i},{parseFloat:i})},function(t,e,n){var r=n(12),i=n(1168);r({target:"Number",stat:!0,forced:Number.parseInt!=i},{parseInt:i})},function(t,e,n){"use strict";var r=n(12),i=n(255),o=n(1171),s=n(945),a=n(36),c=1..toFixed,l=Math.floor,u=function(t,e,n){return 0===e?n:e%2==1?u(t,e-1,n*t):u(t*t,e/2,n)};r({target:"Number",proto:!0,forced:c&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!a((function(){c.call({})}))},{toFixed:function(t){var e,n,r,a,c=o(this),h=i(t),f=[0,0,0,0,0,0],d="",p="0",g=function(t,e){for(var n=-1,r=e;++n<6;)r+=t*f[n],f[n]=r%1e7,r=l(r/1e7)},m=function(t){for(var e=6,n=0;--e>=0;)n+=f[e],f[e]=l(n/t),n=n%t*1e7},y=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==f[t]){var n=String(f[t]);e=""===e?n:e+s.call("0",7-n.length)+n}return e};if(h<0||h>20)throw RangeError("Incorrect fraction digits");if(c!=c)return"NaN";if(c<=-1e21||c>=1e21)return String(c);if(c<0&&(d="-",c=-c),c>1e-21)if(n=(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(c*u(2,69,1))-69)<0?c*u(2,-e,1):c/u(2,e,1),n*=4503599627370496,(e=52-e)>0){for(g(0,n),r=h;r>=7;)g(1e7,0),r-=7;for(g(u(10,r,1),0),r=e-1;r>=23;)m(1<<23),r-=23;m(1<<r),g(1,1),m(2),p=y()}else g(0,n),g(1<<-e,0),p=y()+s.call("0",h);return p=h>0?d+((a=p.length)<=h?"0."+s.call("0",h-a)+p:p.slice(0,a-h)+"."+p.slice(a-h)):d+p}})},function(t,e,n){"use strict";var r=n(12),i=n(36),o=n(1171),s=1..toPrecision;r({target:"Number",proto:!0,forced:i((function(){return"1"!==s.call(1,void 0)}))||!i((function(){s.call({})}))},{toPrecision:function(t){return void 0===t?s.call(o(this)):s.call(o(this),t)}})},function(t,e,n){var r=n(12),i=n(1172),o=Math.acosh,s=Math.log,a=Math.sqrt,c=Math.LN2;r({target:"Math",stat:!0,forced:!o||710!=Math.floor(o(Number.MAX_VALUE))||o(1/0)!=1/0},{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?s(t)+c:i(t-1+a(t-1)*a(t+1))}})},function(t,e,n){var r=n(12),i=Math.asinh,o=Math.log,s=Math.sqrt;r({target:"Math",stat:!0,forced:!(i&&1/i(0)>0)},{asinh:function t(e){return isFinite(e=+e)&&0!=e?e<0?-t(-e):o(e+s(e*e+1)):e}})},function(t,e,n){var r=n(12),i=Math.atanh,o=Math.log;r({target:"Math",stat:!0,forced:!(i&&1/i(-0)<0)},{atanh:function(t){return 0==(t=+t)?t:o((1+t)/(1-t))/2}})},function(t,e,n){var r=n(12),i=n(948),o=Math.abs,s=Math.pow;r({target:"Math",stat:!0},{cbrt:function(t){return i(t=+t)*s(o(t),1/3)}})},function(t,e,n){var r=n(12),i=Math.floor,o=Math.log,s=Math.LOG2E;r({target:"Math",stat:!0},{clz32:function(t){return(t>>>=0)?31-i(o(t+.5)*s):32}})},function(t,e,n){var r=n(12),i=n(688),o=Math.cosh,s=Math.abs,a=Math.E;r({target:"Math",stat:!0,forced:!o||o(710)===1/0},{cosh:function(t){var e=i(s(t)-1)+1;return(e+1/(e*a*a))*(a/2)}})},function(t,e,n){var r=n(12),i=n(688);r({target:"Math",stat:!0,forced:i!=Math.expm1},{expm1:i})},function(t,e,n){n(12)({target:"Math",stat:!0},{fround:n(1781)})},function(t,e,n){var r=n(948),i=Math.abs,o=Math.pow,s=o(2,-52),a=o(2,-23),c=o(2,127)*(2-a),l=o(2,-126);t.exports=Math.fround||function(t){var e,n,o=i(t),u=r(t);return o<l?u*(o/l/a+1/s-1/s)*l*a:(n=(e=(1+a/s)*o)-(e-o))>c||n!=n?u*(1/0):u*n}},function(t,e,n){var r=n(12),i=Math.abs,o=Math.sqrt;r({target:"Math",stat:!0},{hypot:function(t,e){for(var n,r,s=0,a=0,c=arguments.length,l=0;a<c;)l<(n=i(arguments[a++]))?(s=s*(r=l/n)*r+1,l=n):s+=n>0?(r=n/l)*r:n;return l===1/0?1/0:l*o(s)}})},function(t,e,n){var r=n(12),i=n(36),o=Math.imul;r({target:"Math",stat:!0,forced:i((function(){return-5!=o(4294967295,5)||2!=o.length}))},{imul:function(t,e){var n=+t,r=+e,i=65535&n,o=65535&r;return 0|i*o+((65535&n>>>16)*o+i*(65535&r>>>16)<<16>>>0)}})},function(t,e,n){var r=n(12),i=Math.log,o=Math.LOG10E;r({target:"Math",stat:!0},{log10:function(t){return i(t)*o}})},function(t,e,n){n(12)({target:"Math",stat:!0},{log1p:n(1172)})},function(t,e,n){var r=n(12),i=Math.log,o=Math.LN2;r({target:"Math",stat:!0},{log2:function(t){return i(t)/o}})},function(t,e,n){n(12)({target:"Math",stat:!0},{sign:n(948)})},function(t,e,n){var r=n(12),i=n(36),o=n(688),s=Math.abs,a=Math.exp,c=Math.E;r({target:"Math",stat:!0,forced:i((function(){return-2e-17!=Math.sinh(-2e-17)}
27))},{sinh:function(t){return s(t=+t)<1?(o(t)-o(-t))/2:(a(t-1)-a(-t-1))*(c/2)}})},function(t,e,n){var r=n(12),i=n(688),o=Math.exp;r({target:"Math",stat:!0},{tanh:function(t){var e=i(t=+t),n=i(-t);return e==1/0?1:n==1/0?-1:(e-n)/(o(t)+o(-t))}})},function(t,e,n){n(318)(Math,"Math",!0)},function(t,e,n){var r=n(12),i=Math.ceil,o=Math.floor;r({target:"Math",stat:!0},{trunc:function(t){return(t>0?o:i)(t)}})},function(t,e,n){n(12)({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}})},function(t,e,n){"use strict";var r=n(12),i=n(36),o=n(114),s=n(284);r({target:"Date",proto:!0,forced:i((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}))},{toJSON:function(t){var e=o(this),n=s(e);return"number"!=typeof n||isFinite(n)?e.toISOString():null}})},function(t,e,n){var r=n(12),i=n(1795);r({target:"Date",proto:!0,forced:Date.prototype.toISOString!==i},{toISOString:i})},function(t,e,n){"use strict";var r=n(36),i=n(944).start,o=Math.abs,s=Date.prototype,a=s.getTime,c=s.toISOString;t.exports=r((function(){return"0385-07-25T07:06:39.999Z"!=c.call(new Date(-50000000000001))}))||!r((function(){c.call(new Date(NaN))}))?function(){if(!isFinite(a.call(this)))throw RangeError("Invalid time value");var t=this.getUTCFullYear(),e=this.getUTCMilliseconds(),n=t<0?"-":t>9999?"+":"";return n+i(o(t),n?6:4,0)+"-"+i(this.getUTCMonth()+1,2,0)+"-"+i(this.getUTCDate(),2,0)+"T"+i(this.getUTCHours(),2,0)+":"+i(this.getUTCMinutes(),2,0)+":"+i(this.getUTCSeconds(),2,0)+"."+i(e,3,0)+"Z"}:c},function(t,e,n){var r=n(212),i=Date.prototype,o=i.toString,s=i.getTime;new Date(NaN)+""!="Invalid Date"&&r(i,"toString",(function(){var t=s.call(this);return t==t?o.call(this):"Invalid Date"}))},function(t,e,n){var r=n(184),i=n(1798),o=n(82)("toPrimitive"),s=Date.prototype;o in s||r(s,o,i)},function(t,e,n){"use strict";var r=n(73),i=n(284);t.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return i(r(this),"number"!==t)}},function(t,e,n){var r=n(57);n(318)(r.JSON,"JSON",!0)},function(t,e,n){"use strict";var r,i,o,s=n(12),a=n(401),c=n(57),l=n(515),u=n(519),h=n(318),f=n(517),d=n(72),p=n(234),g=n(407),m=n(283),y=n(586),_=n(678),v=n(352),b=n(949).set,x=n(1173),w=n(1174),E=n(1801),S=n(1175),C=n(1802),A=n(686),I=n(233),T=n(582),M=n(82)("species"),F="Promise",B=I.get,L=I.set,O=I.getterFor(F),U=c[F],k=c.TypeError,P=c.document,D=c.process,R=c.fetch,j=D&&D.versions,z=j&&j.v8||"",Q=S.f,N=Q,V="process"==m(D),G=!!(P&&P.createEvent&&c.dispatchEvent),H=T(F,(function(){var t=U.resolve(1),e=function(){},n=(t.constructor={})[M]=function(t){t(e,e)};return!((V||"function"==typeof PromiseRejectionEvent)&&(!a||t.finally)&&t.then(e)instanceof n&&0!==z.indexOf("6.6")&&-1===A.indexOf("Chrome/66"))})),Z=H||!_((function(t){U.all(t).catch((function(){}))})),W=function(t){var e;return!(!d(t)||"function"!=typeof(e=t.then))&&e},X=function(t,e,n){if(!e.notified){e.notified=!0;var r=e.reactions;x((function(){for(var i=e.value,o=1==e.state,s=0;r.length>s;){var a,c,l,u=r[s++],h=o?u.ok:u.fail,f=u.resolve,d=u.reject,p=u.domain;try{h?(o||(2===e.rejection&&J(t,e),e.rejection=1),!0===h?a=i:(p&&p.enter(),a=h(i),p&&(p.exit(),l=!0)),a===u.promise?d(k("Promise-chain cycle")):(c=W(a))?c.call(a,f,d):f(a)):d(i)}catch(t){p&&!l&&p.exit(),d(t)}}e.reactions=[],e.notified=!1,n&&!e.rejection&&q(t,e)}))}},Y=function(t,e,n){var r,i;G?((r=P.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),c.dispatchEvent(r)):r={promise:e,reason:n},(i=c["on"+t])?i(r):"unhandledrejection"===t&&E("Unhandled promise rejection",n)},q=function(t,e){b.call(c,(function(){var n,r=e.value;if(K(e)&&(n=C((function(){V?D.emit("unhandledRejection",r,t):Y("unhandledrejection",t,r)})),e.rejection=V||K(e)?2:1,n.error))throw n.value}))},K=function(t){return 1!==t.rejection&&!t.parent},J=function(t,e){b.call(c,(function(){V?D.emit("rejectionHandled",t):Y("rejectionhandled",t,e.value)}))},$=function(t,e,n,r){return function(i){t(e,n,i,r)}},tt=function(t,e,n,r){e.done||(e.done=!0,r&&(e=r),e.value=n,e.state=2,X(t,e,!0))},et=function(t,e,n,r){if(!e.done){e.done=!0,r&&(e=r);
27try{if(t===n)throw k("Promise can't be resolved itself");var i=W(n);i?x((function(){var r={done:!1};try{i.call(n,$(et,t,r,e),$(tt,t,r,e))}catch(n){tt(t,r,n,e)}})):(e.value=n,e.state=1,X(t,e,!1))}catch(n){tt(t,{done:!1},n,e)}}};H&&(U=function(t){g(this,U,F),p(t),r.call(this);var e=B(this);try{t($(et,this,e),$(tt,this,e))}catch(t){tt(this,e,t)}},(r=function(t){L(this,{type:F,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=u(U.prototype,{then:function(t,e){var n=O(this),r=Q(v(this,U));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=V?D.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&X(this,n,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new r,e=B(t);this.promise=t,this.resolve=$(et,t,e),this.reject=$(tt,t,e)},S.f=Q=function(t){return t===U||t===o?new i(t):N(t)},a||"function"!=typeof R||s({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return w(U,R.apply(c,arguments))}})),s({global:!0,wrap:!0,forced:H},{Promise:U}),h(U,F,!1,!0),f(F),o=l[F],s({target:F,stat:!0,forced:H},{reject:function(t){var e=Q(this);return e.reject.call(void 0,t),e.promise}}),s({target:F,stat:!0,forced:a||H},{resolve:function(t){return w(a&&this===o?U:this,t)}}),s({target:F,stat:!0,forced:Z},{all:function(t){var e=this,n=Q(e),r=n.resolve,i=n.reject,o=C((function(){var n=p(e.resolve),o=[],s=0,a=1;y(t,(function(t){var c=s++,l=!1;o.push(void 0),a++,n.call(e,t).then((function(t){l||(l=!0,o[c]=t,--a||r(o))}),i)})),--a||r(o)}));return o.error&&i(o.value),n.promise},race:function(t){var e=this,n=Q(e),r=n.reject,i=C((function(){var i=p(e.resolve);y(t,(function(t){i.call(e,t).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}})},function(t,e,n){var r=n(57);t.exports=function(t,e){var n=r.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}},function(t,e){t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},function(t,e,n){"use strict";var r=n(12),i=n(402),o=n(352),s=n(1174);r({target:"Promise",proto:!0,real:!0},{finally:function(t){var e=o(this,i("Promise")),n="function"==typeof t;return this.then(n?function(n){return s(e,t()).then((function(){return n}))}:t,n?function(n){return s(e,t()).then((function(){throw n}))}:t)}})},function(t,e,n){"use strict";var r=n(689),i=n(1176);t.exports=r("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),i,!0)},function(t,e,n){"use strict";var r=n(689),i=n(1176);t.exports=r("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),i)},function(t,e,n){"use strict";var r,i=n(57),o=n(519),s=n(455),a=n(689),c=n(1177),l=n(72),u=n(233).enforce,h=n(1147),f=!i.ActiveXObject&&"ActiveXObject"in i,d=Object.isExtensible,p=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},g=t.exports=a("WeakMap",p,c,!0,!0);if(h&&f){r=c.getConstructor(p,"WeakMap",!0),s.REQUIRED=!0;var m=g.prototype,y=m.delete,_=m.has,v=m.get,b=m.set;o(m,{delete:function(t){if(l(t)&&!d(t)){var e=u(this);return e.frozen||(e.frozen=new r),y.call(this,t)||e.frozen.delete(t)}return y.call(this,t)},has:function(t){if(l(t)&&!d(t)){var e=u(this);return e.frozen||(e.frozen=new r),_.call(this,t)||e.frozen.has(t)}return _.call(this,t)},get:function(t){if(l(t)&&!d(t)){var e=u(this);return e.frozen||(e.frozen=new r),_.call(this,t)?v.call(this,t):e.frozen.get(t)}return v.call(this,t)},set:function(t,e){if(l(t)&&!d(t)){var n=u(this);n.frozen||(n.frozen=new r),_.call(this,t)?b.call(this,t,e):n.frozen.set(t,e)}else b.call(this,t,e);return this}})}},function(t,e,n){"use strict";n(689)("WeakSet",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),n(1177),!1,!0)},function(t,e,n){"use strict";var r=n(12),i=n(57),o=n(690),s=n(517),a=o.ArrayBuffer;r({global:!0,forced:i.ArrayBuffer!==a},{ArrayBuffer:a}),s("ArrayBuffer")},function(t,e,n){var r=n(12),i=n(77);r({target:"ArrayBuffer",stat:!0,forced:!i.NATIVE_ARRAY_BUFFER_VIEWS},{isView:i.isView})},function(t,e,n){"use strict";var r=n(12),i=n(36),o=n(690),s=n(73),a=n(403),c=n(87),l=n(352),u=o.ArrayBuffer,h=o.DataView,f=u.prototype.slice;r({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:i((function(){return!new u(2).slice(1,void 0).byteLength}))},{slice:function(t,e){if(void 0!==f&&void 0===e)return f.call(s(this),t);for(var n=s(this).byteLength,r=a(t,n),i=a(void 0===e?n:e,n),o=new(l(this,u))(c(i-r)),d=new h(this),p=new h(o),g=0;r<i;)p.setUint8(g++,d.getUint8(r++));return o}})},function(t,e,n){var r=n(12),i=n(690);r({global:!0,forced:!n(77).NATIVE_ARRAY_BUFFER},{DataView:i.DataView})},function(t,e,n){n(353)("Int8",1,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(353)("Uint8",1,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(353)("Uint8",1,(function(t){return function(e,n,r){return t(this,e,n,r)}}),!0)},function(t,e,n){n(353)("Int16",2,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(353)("Uint16",2,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(353)("Int32",4,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(353)("Uint32",4,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(353)("Float32",4,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(353)("Float64",8,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){"use strict";var r=n(950),i=n(77),o=n(1180);i.exportStatic("from",o,r)},function(t,e,n){"use strict";var r=n(77),i=n(950),o=r.aTypedArrayConstructor;r.exportStatic("of",(function(){for(var t=0,e=arguments.length,n=new(o(this))(e);e>t;)n[t]=arguments[t++];return n}),i)},function(t,e,n){"use strict";var r=n(77),i=n(1161),o=r.aTypedArray;r.exportProto("copyWithin",(function(t,e){return i.call(o(this),t,e,arguments.length>2?arguments[2]:void 0)}))},function(t,e,n){"use strict";var r=n(77),i=n(172).every,o=r.aTypedArray;r.exportProto("every",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var r=n(77),i=n(938),o=r.aTypedArray;r.exportProto("fill",(function(t){return i.apply(o(this),arguments)}))},function(t,e,n){"use strict";var r=n(77),i=n(172).filter,o=n(352),s=r.aTypedArray,a=r.aTypedArrayConstructor;r.exportProto("filter",(function(t){for(var e=i(s(this),t,arguments.length>1?arguments[1]:void 0),n=o(this,this.constructor),r=0,c=e.length,l=new(a(n))(c);c>r;)l[r]=e[r++];return l}))},function(t,e,n){"use strict";var r=n(77),i=n(172).find,o=r.aTypedArray;r.exportProto("find",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var r=n(77),i=n(172).findIndex,o=r.aTypedArray;r.exportProto("findIndex",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var r=n(77),i=n(172).forEach,o=r.aTypedArray;
27r.exportProto("forEach",(function(t){i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var r=n(77),i=n(581).includes,o=r.aTypedArray;r.exportProto("includes",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var r=n(77),i=n(581).indexOf,o=r.aTypedArray;r.exportProto("indexOf",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var r=n(57),i=n(77),o=n(680),s=n(82)("iterator"),a=r.Uint8Array,c=o.values,l=o.keys,u=o.entries,h=i.aTypedArray,f=i.exportProto,d=a&&a.prototype[s],p=!!d&&("values"==d.name||null==d.name),g=function(){return c.call(h(this))};f("entries",(function(){return u.call(h(this))})),f("keys",(function(){return l.call(h(this))})),f("values",g,!p),f(s,g,!p)},function(t,e,n){"use strict";var r=n(77),i=r.aTypedArray,o=[].join;r.exportProto("join",(function(t){return o.apply(i(this),arguments)}))},function(t,e,n){"use strict";var r=n(77),i=n(1164),o=r.aTypedArray;r.exportProto("lastIndexOf",(function(t){return i.apply(o(this),arguments)}))},function(t,e,n){"use strict";var r=n(77),i=n(172).map,o=n(352),s=r.aTypedArray,a=r.aTypedArrayConstructor;r.exportProto("map",(function(t){return i(s(this),t,arguments.length>1?arguments[1]:void 0,(function(t,e){return new(a(o(t,t.constructor)))(e)}))}))},function(t,e,n){"use strict";var r=n(77),i=n(679).left,o=r.aTypedArray;r.exportProto("reduce",(function(t){return i(o(this),t,arguments.length,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var r=n(77),i=n(679).right,o=r.aTypedArray;r.exportProto("reduceRight",(function(t){return i(o(this),t,arguments.length,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var r=n(77),i=r.aTypedArray,o=Math.floor;r.exportProto("reverse",(function(){for(var t,e=i(this).length,n=o(e/2),r=0;r<n;)t=this[r],this[r++]=this[--e],this[e]=t;return this}))},function(t,e,n){"use strict";var r=n(77),i=n(87),o=n(1179),s=n(114),a=n(36),c=r.aTypedArray,l=a((function(){new Int8Array(1).set({})}));r.exportProto("set",(function(t){c(this);var e=o(arguments.length>1?arguments[1]:void 0,1),n=this.length,r=s(t),a=i(r.length),l=0;if(a+e>n)throw RangeError("Wrong length");for(;l<a;)this[e+l]=r[l++]}),l)},function(t,e,n){"use strict";var r=n(77),i=n(352),o=n(36),s=r.aTypedArray,a=r.aTypedArrayConstructor,c=[].slice,l=o((function(){new Int8Array(1).slice()}));r.exportProto("slice",(function(t,e){for(var n=c.call(s(this),t,e),r=i(this,this.constructor),o=0,l=n.length,u=new(a(r))(l);l>o;)u[o]=n[o++];return u}),l)},function(t,e,n){"use strict";var r=n(77),i=n(172).some,o=r.aTypedArray;r.exportProto("some",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var r=n(77),i=r.aTypedArray,o=[].sort;r.exportProto("sort",(function(t){return o.call(i(this),t)}))},function(t,e,n){"use strict";var r=n(77),i=n(87),o=n(403),s=n(352),a=r.aTypedArray;r.exportProto("subarray",(function(t,e){var n=a(this),r=n.length,c=o(t,r);return new(s(n,n.constructor))(n.buffer,n.byteOffset+c*n.BYTES_PER_ELEMENT,i((void 0===e?r:o(e,r))-c))}))},function(t,e,n){"use strict";var r=n(57),i=n(77),o=n(36),s=r.Int8Array,a=i.aTypedArray,c=[].toLocaleString,l=[].slice,u=!!s&&o((function(){c.call(new s(1))})),h=o((function(){return[1,2].toLocaleString()!=new s([1,2]).toLocaleString()}))||!o((function(){s.prototype.toLocaleString.call([1,2])}));i.exportProto("toLocaleString",(function(){return c.apply(u?l.call(a(this)):a(this),arguments)}),h)},function(t,e,n){"use strict";var r=n(57),i=n(77),o=n(36),s=r.Uint8Array,a=s&&s.prototype,c=[].toString,l=[].join;o((function(){c.call({})}))&&(c=function(){return l.call(this)}),i.exportProto("toString",c,(a||{}).toString!=c)},function(t,e,n){var r=n(12),i=n(402),o=n(234),s=n(73),a=n(36),c=i("Reflect","apply"),l=Function.apply;r({target:"Reflect",stat:!0,forced:!a((function(){c((function(){}))}))},{apply:function(t,e,n){return o(t),s(n),c?c(t,e,n):l.call(t,e,n)}})},function(t,e,n){var r=n(12),i=n(402),o=n(234),s=n(73),a=n(72),c=n(404),l=n(1159),u=n(36),h=i("Reflect","construct"),f=u((function(){function t(){}return!(h((function(){}),[],t)instanceof t)})),d=!u((function(){h((function(){}))})),p=f||d;r({target:"Reflect",stat:!0,forced:p,sham:p},{construct:function(t,e){o(t),s(e);var n=arguments.length<3?t:o(arguments[2]);if(d&&!f)return h(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}
27var r=[null];return r.push.apply(r,e),new(l.apply(t,r))}var i=n.prototype,u=c(a(i)?i:Object.prototype),p=Function.apply.call(t,u,e);return a(p)?p:u}})},function(t,e,n){var r=n(12),i=n(81),o=n(73),s=n(284),a=n(110);r({target:"Reflect",stat:!0,forced:n(36)((function(){Reflect.defineProperty(a.f({},1,{value:1}),1,{value:2})})),sham:!i},{defineProperty:function(t,e,n){o(t);var r=s(e,!0);o(n);try{return a.f(t,r,n),!0}catch(t){return!1}}})},function(t,e,n){var r=n(12),i=n(73),o=n(211).f;r({target:"Reflect",stat:!0},{deleteProperty:function(t,e){var n=o(i(t),e);return!(n&&!n.configurable)&&delete t[e]}})},function(t,e,n){var r=n(12),i=n(72),o=n(73),s=n(138),a=n(211),c=n(319);r({target:"Reflect",stat:!0},{get:function t(e,n){var r,l,u=arguments.length<3?e:arguments[2];return o(e)===u?e[n]:(r=a.f(e,n))?s(r,"value")?r.value:void 0===r.get?void 0:r.get.call(u):i(l=c(e))?t(l,n,u):void 0}})},function(t,e,n){var r=n(12),i=n(81),o=n(73),s=n(211);r({target:"Reflect",stat:!0,sham:!i},{getOwnPropertyDescriptor:function(t,e){return s.f(o(t),e)}})},function(t,e,n){var r=n(12),i=n(73),o=n(319);r({target:"Reflect",stat:!0,sham:!n(937)},{getPrototypeOf:function(t){return o(i(t))}})},function(t,e,n){n(12)({target:"Reflect",stat:!0},{has:function(t,e){return e in t}})},function(t,e,n){var r=n(12),i=n(73),o=Object.isExtensible;r({target:"Reflect",stat:!0},{isExtensible:function(t){return i(t),!o||o(t)}})},function(t,e,n){n(12)({target:"Reflect",stat:!0},{ownKeys:n(932)})},function(t,e,n){var r=n(12),i=n(402),o=n(73);r({target:"Reflect",stat:!0,sham:!n(585)},{preventExtensions:function(t){o(t);try{var e=i("Object","preventExtensions");return e&&e(t),!0}catch(t){return!1}}})},function(t,e,n){var r=n(12),i=n(73),o=n(72),s=n(138),a=n(110),c=n(211),l=n(319),u=n(452);r({target:"Reflect",stat:!0},{set:function t(e,n,r){var h,f,d=arguments.length<4?e:arguments[3],p=c.f(i(e),n);if(!p){if(o(f=l(e)))return t(f,n,r,d);p=u(0)}if(s(p,"value")){if(!1===p.writable||!o(d))return!1;if(h=c.f(d,n)){if(h.get||h.set||!1===h.writable)return!1;h.value=r,a.f(d,n,h)}else a.f(d,n,u(0,r));return!0}return void 0!==p.set&&(p.set.call(d,r),!0)}})},function(t,e,n){var r=n(12),i=n(73),o=n(1158),s=n(516);s&&r({target:"Reflect",stat:!0},{setPrototypeOf:function(t,e){i(t),o(e);try{return s(t,e),!0}catch(t){return!1}}})},function(t,e,n){n(1860),n(1861),n(1862),n(1863),n(1864),n(1865),n(1868),n(1183),t.exports=n(515)},function(t,e,n){var r=n(57),i=n(1181),o=n(1163),s=n(184);for(var a in i){var c=r[a],l=c&&c.prototype;if(l&&l.forEach!==o)try{s(l,"forEach",o)}catch(t){l.forEach=o}}},function(t,e,n){var r=n(57),i=n(1181),o=n(680),s=n(184),a=n(82),c=a("iterator"),l=a("toStringTag"),u=o.values;for(var h in i){var f=r[h],d=f&&f.prototype;if(d){if(d[c]!==u)try{s(d,c,u)}catch(t){d[c]=u}if(d[l]||s(d,l,h),i[h])for(var p in o)if(d[p]!==o[p])try{s(d,p,o[p])}catch(t){d[p]=o[p]}}}},function(t,e,n){var r=n(57),i=n(949),o=!r.setImmediate||!r.clearImmediate;n(12)({global:!0,bind:!0,enumerable:!0,forced:o},{setImmediate:i.set,clearImmediate:i.clear})},function(t,e,n){var r=n(12),i=n(57),o=n(1173),s=n(283),a=i.process,c="process"==s(a);r({global:!0,enumerable:!0,noTargetGet:!0},{queueMicrotask:function(t){var e=c&&a.domain;o(e?e.bind(t):t)}})},function(t,e,n){var r=n(12),i=n(57),o=n(686),s=[].slice,a=function(t){return function(e,n){var r=arguments.length>2,i=r?s.call(arguments,2):void 0;return t(r?function(){("function"==typeof e?e:Function(e)).apply(this,i)}:e,n)}};r({global:!0,bind:!0,forced:/MSIE .\./.test(o)},{setTimeout:a(i.setTimeout),setInterval:a(i.setInterval)})},function(t,e,n){"use strict";n(1167);var r,i=n(12),o=n(81),s=n(1182),a=n(57),c=n(935),l=n(212),u=n(407),h=n(138),f=n(1154),d=n(1160),p=n(681).codeAt,g=n(1866),m=n(318),y=n(1183),_=n(233),v=a.URL,b=y.URLSearchParams,x=y.getState,w=_.set,E=_.getterFor("URL"),S=Math.floor,C=Math.pow,A=/[A-Za-z]/,I=/[\d+\-.A-Za-z]/,T=/\d/,M=/^(0x|0X)/,F=/^[0-7]+$/,B=/^\d+$/,L=/^[\dA-Fa-f]+$/,O=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,U=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,k=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,P=/[\u0009\u000A\u000D]/g,D=function(t,e){var n,r,i;if("["==e.charAt(0)){if("]"!=e.charAt(e.length-1))return"Invalid host";if(!(n=j(e.slice(1,-1))))return"Invalid host";t.host=n}
vendor: 10,786 bytes, line 27
27else if(W(t)){if(e=g(e),O.test(e))return"Invalid host";if(null===(n=R(e)))return"Invalid host";t.host=n}else{if(U.test(e))return"Invalid host";for(n="",r=d(e),i=0;i<r.length;i++)n+=H(r[i],Q);t.host=n}},R=function(t){var e,n,r,i,o,s,a,c=t.split(".");if(c.length&&""==c[c.length-1]&&c.pop(),(e=c.length)>4)return t;for(n=[],r=0;r<e;r++){if(""==(i=c[r]))return t;if(o=10,i.length>1&&"0"==i.charAt(0)&&(o=M.test(i)?16:8,i=i.slice(8==o?1:2)),""===i)s=0;else{if(!(10==o?B:8==o?F:L).test(i))return t;s=parseInt(i,o)}n.push(s)}for(r=0;r<e;r++)if(s=n[r],r==e-1){if(s>=C(256,5-e))return null}else if(s>255)return null;for(a=n.pop(),r=0;r<n.length;r++)a+=n[r]*C(256,3-r);return a},j=function(t){var e,n,r,i,o,s,a,c=[0,0,0,0,0,0,0,0],l=0,u=null,h=0,f=function(){return t.charAt(h)};if(":"==f()){if(":"!=t.charAt(1))return;h+=2,u=++l}for(;f();){if(8==l)return;if(":"!=f()){for(e=n=0;n<4&&L.test(f());)e=16*e+parseInt(f(),16),h++,n++;if("."==f()){if(0==n)return;if(h-=n,l>6)return;for(r=0;f();){if(i=null,r>0){if(!("."==f()&&r<4))return;h++}if(!T.test(f()))return;for(;T.test(f());){if(o=parseInt(f(),10),null===i)i=o;else{if(0==i)return;i=10*i+o}if(i>255)return;h++}c[l]=256*c[l]+i,2!=++r&&4!=r||l++}if(4!=r)return;break}if(":"==f()){if(h++,!f())return}else if(f())return;c[l++]=e}else{if(null!==u)return;h++,u=++l}}if(null!==u)for(s=l-u,l=7;0!=l&&s>0;)a=c[l],c[l--]=c[u+s-1],c[u+--s]=a;else if(8!=l)return;return c},z=function(t){var e,n,r,i;if("number"==typeof t){for(e=[],n=0;n<4;n++)e.unshift(t%256),t=S(t/256);return e.join(".")}if("object"==typeof t){for(e="",r=function(t){for(var e=null,n=1,r=null,i=0,o=0;o<8;o++)0!==t[o]?(i>n&&(e=r,n=i),r=null,i=0):(null===r&&(r=o),++i);return i>n&&(e=r,n=i),e}(t),n=0;n<8;n++)i&&0===t[n]||(i&&(i=!1),r===n?(e+=n?":":"::",i=!0):(e+=t[n].toString(16),n<7&&(e+=":")));return"["+e+"]"}return t},Q={},N=f({},Q,{" ":1,'"':1,"<":1,">":1,"`":1}),V=f({},N,{"#":1,"?":1,"{":1,"}":1}),G=f({},V,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),H=function(t,e){var n=p(t,0);return n>32&&n<127&&!h(e,t)?t:encodeURIComponent(t)},Z={ftp:21,file:null,gopher:70,http:80,https:443,ws:80,wss:443},W=function(t){return h(Z,t.scheme)},X=function(t){return""!=t.username||""!=t.password},Y=function(t){return!t.host||t.cannotBeABaseURL||"file"==t.scheme},q=function(t,e){var n;return 2==t.length&&A.test(t.charAt(0))&&(":"==(n=t.charAt(1))||!e&&"|"==n)},K=function(t){var e;return t.length>1&&q(t.slice(0,2))&&(2==t.length||"/"===(e=t.charAt(2))||"\\"===e||"?"===e||"#"===e)},J=function(t){var e=t.path,n=e.length;!n||"file"==t.scheme&&1==n&&q(e[0],!0)||e.pop()},$=function(t){return"."===t||"%2e"===t.toLowerCase()},tt={},et={},nt={},rt={},it={},ot={},st={},at={},ct={},lt={},ut={},ht={},ft={},dt={},pt={},gt={},mt={},yt={},_t={},vt={},bt={},xt=function(t,e,n,i){var o,s,a,c,l,u=n||tt,f=0,p="",g=!1,m=!1,y=!1;for(n||(t.scheme="",t.username="",t.password="",t.host=null,t.port=null,t.path=[],t.query=null,t.fragment=null,t.cannotBeABaseURL=!1,e=e.replace(k,"")),e=e.replace(P,""),o=d(e);f<=o.length;){switch(s=o[f],u){case tt:if(!s||!A.test(s)){if(n)return"Invalid scheme";u=nt;continue}p+=s.toLowerCase(),u=et;break;case et:if(s&&(I.test(s)||"+"==s||"-"==s||"."==s))p+=s.toLowerCase();else{if(":"!=s){if(n)return"Invalid scheme";p="",u=nt,f=0;continue}if(n&&(W(t)!=h(Z,p)||"file"==p&&(X(t)||null!==t.port)||"file"==t.scheme&&!t.host))return;if(t.scheme=p,n)return void(W(t)&&Z[t.scheme]==t.port&&(t.port=null));p="","file"==t.scheme?u=dt:W(t)&&i&&i.scheme==t.scheme?u=rt:W(t)?u=at:"/"==o[f+1]?(u=it,f++):(t.cannotBeABaseURL=!0,t.path.push(""),u=_t)}break;case nt:if(!i||i.cannotBeABaseURL&&"#"!=s)return"Invalid scheme";if(i.cannotBeABaseURL&&"#"==s){t.scheme=i.scheme,t.path=i.path.slice(),t.query=i.query,t.fragment="",t.cannotBeABaseURL=!0,u=bt;break}u="file"==i.scheme?dt:ot;continue;case rt:if("/"!=s||"/"!=o[f+1]){u=ot;continue}u=ct,f++;break;case it:if("/"==s){u=lt;break}u=yt;continue;case ot:if(t.scheme=i.scheme,s==r)t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,t.path=i.path.slice(),t.query=i.query;else if("/"==s||"\\"==s&&W(t))u=st;else if("?"==s)t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,t.path=i.path.slice(),t.query="",u=vt;else{if("#"!=s){t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,t.path=i.path.slice(),t.path.pop(),u=yt;continue}t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,t.path=i.path.slice(),t.query=i.query,t.fragment="",u=bt}break;case st:if(!W(t)||"/"!=s&&"\\"!=s){if("/"!=s){t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,u=yt;continue}u=lt}else u=ct;break;case at:if(u=ct,"/"!=s||"/"!=p.charAt(f+1))continue;f++;break;case ct:if("/"!=s&&"\\"!=s){u=lt;continue}break;case lt:if("@"==s){g&&(p="%40"+p),g=!0,a=d(p);for(var _=0;_<a.length;_++){var v=a[_];if(":"!=v||y){var b=H(v,G);y?t.password+=b:t.username+=b}else y=!0}p=""}else if(s==r||"/"==s||"?"==s||"#"==s||"\\"==s&&W(t)){if(g&&""==p)return"Invalid authority";f-=d(p).length+1,p="",u=ut}else p+=s;break;case ut:case ht:if(n&&"file"==t.scheme){u=gt;continue}if(":"!=s||m){if(s==r||"/"==s||"?"==s||"#"==s||"\\"==s&&W(t)){if(W(t)&&""==p)return"Invalid host";if(n&&""==p&&(X(t)||null!==t.port))return;if(c=D(t,p))return c;if(p="",u=mt,n)return;continue}"["==s?m=!0:"]"==s&&(m=!1),p+=s}else{if(""==p)return"Invalid host";if(c=D(t,p))return c;if(p="",u=ft,n==ht)return}break;case ft:if(!T.test(s)){if(s==r||"/"==s||"?"==s||"#"==s||"\\"==s&&W(t)||n){if(""!=p){var x=parseInt(p,10);if(x>65535)return"Invalid port";t.port=W(t)&&x===Z[t.scheme]?null:x,p=""}if(n)return;u=mt;continue}return"Invalid port"}p+=s;break;case dt:if(t.scheme="file","/"==s||"\\"==s)u=pt;else{if(!i||"file"!=i.scheme){u=yt;continue}if(s==r)t.host=i.host,t.path=i.path.slice(),t.query=i.query;else if("?"==s)t.host=i.host,t.path=i.path.slice(),t.query="",u=vt;else{if("#"!=s){K(o.slice(f).join(""))||(t.host=i.host,t.path=i.path.slice(),J(t)),u=yt;continue}t.host=i.host,t.path=i.path.slice(),t.query=i.query,t.fragment="",u=bt}}break;case pt:if("/"==s||"\\"==s){u=gt;break}i&&"file"==i.scheme&&!K(o.slice(f).join(""))&&(q(i.path[0],!0)?t.path.push(i.path[0]):t.host=i.host),u=yt;continue;case gt:if(s==r||"/"==s||"\\"==s||"?"==s||"#"==s){if(!n&&q(p))u=yt;else if(""==p){if(t.host="",n)return;u=mt}else{if(c=D(t,p))return c;if("localhost"==t.host&&(t.host=""),n)return;p="",u=mt}continue}p+=s;break;case mt:if(W(t)){if(u=yt,"/"!=s&&"\\"!=s)continue}else if(n||"?"!=s)if(n||"#"!=s){if(s!=r&&(u=yt,"/"!=s))continue}else t.fragment="",u=bt;else t.query="",u=vt;break;case yt:if(s==r||"/"==s||"\\"==s&&W(t)||!n&&("?"==s||"#"==s)){if(".."===(l=(l=p).toLowerCase())||"%2e."===l||".%2e"===l||"%2e%2e"===l?(J(t),"/"==s||"\\"==s&&W(t)||t.path.push("")):$(p)?"/"==s||"\\"==s&&W(t)||t.path.push(""):("file"==t.scheme&&!t.path.length&&q(p)&&(t.host&&(t.host=""),p=p.charAt(0)+":"),t.path.push(p)),p="","file"==t.scheme&&(s==r||"?"==s||"#"==s))for(;t.path.length>1&&""===t.path[0];)t.path.shift();"?"==s?(t.query="",u=vt):"#"==s&&(t.fragment="",u=bt)}else p+=H(s,V);break;case _t:"?"==s?(t.query="",u=vt):"#"==s?(t.fragment="",u=bt):s!=r&&(t.path[0]+=H(s,Q));break;case vt:n||"#"!=s?s!=r&&("'"==s&&W(t)?t.query+="%27":t.query+="#"==s?"%23":H(s,Q)):(t.fragment="",u=bt);break;case bt:s!=r&&(t.fragment+=H(s,N))}f++}},wt=function(t){var e,n,r=u(this,wt,"URL"),i=arguments.length>1?arguments[1]:void 0,s=String(t),a=w(r,{type:"URL"});if(void 0!==i)if(i instanceof wt)e=E(i);else if(n=xt(e={},String(i)))throw TypeError(n);if(n=xt(a,s,null,e))throw TypeError(n);var c=a.searchParams=new b,l=x(c);l.updateSearchParams(a.query),l.updateURL=function(){a.query=String(c)||null},o||(r.href=St.call(r),r.origin=Ct.call(r),r.protocol=At.call(r),r.username=It.call(r),r.password=Tt.call(r),r.host=Mt.call(r),r.hostname=Ft.call(r),r.port=Bt.call(r),r.pathname=Lt.call(r),r.search=Ot.call(r),r.searchParams=Ut.call(r),r.hash=kt.call(r))},Et=wt.prototype,St=function(){var t=E(this),e=t.scheme,n=t.username,r=t.password,i=t.host,o=t.port,s=t.path,a=t.query,c=t.fragment,l=e+":";return null!==i?(l+="//",X(t)&&(l+=n+(r?":"+r:"")+"@"),l+=z(i),null!==o&&(l+=":"+o)):"file"==e&&(l+="//"),l+=t.cannotBeABaseURL?s[0]:s.length?"/"+s.join("/"):"",null!==a&&(l+="?"+a),null!==c&&(l+="#"+c),l},Ct=function(){var t=E(this),e=t.scheme,n=t.port;if("blob"==e)try{return new URL(e.path[0]).origin}catch(t){return"null"}return"file"!=e&&W(t)?e+"://"+z(t.host)+(null!==n?":"+n:""):"null"},At=function(){return E(this).scheme+":"},It=function(){return E(this).username},Tt=function(){return E(this).password},Mt=function(){var t=E(this),e=t.host,n=t.port;return null===e?"":null===n?z(e):z(e)+":"+n},Ft=function(){var t=E(this).host;return null===t?"":z(t)},Bt=function(){var t=E(this).port;return null===t?"":String(t)},Lt=function(){var t=E(this),e=t.path;return t.cannotBeABaseURL?e[0]:e.length?"/"+e.join("/"):""},Ot=function(){var t=E(this).query;return t?"?"+t:""},Ut=function(){return E(this).searchParams},kt=function(){var t=E(this).fragment;return t?"#"+t:""},Pt=function(t,e){return{get:t,set:e,configurable:!0,enumerable:!0}};if(o&&c(Et,{href:Pt(St,(function(t){var e=E(this),n=String(t),r=xt(e,n);if(r)throw TypeError(r);x(e.searchParams).updateSearchParams(e.query)})),origin:Pt(Ct),protocol:Pt(At,(function(t){var e=E(this);xt(e,String(t)+":",tt)})),username:Pt(It,(function(t){var e=E(this),n=d(String(t));if(!Y(e)){e.username="";for(var r=0;r<n.length;r++)e.username+=H(n[r],G)}})),password:Pt(Tt,(function(t){var e=E(this),n=d(String(t));if(!Y(e)){e.password="";for(var r=0;r<n.length;r++)e.password+=H(n[r],G)}})),host:Pt(Mt,(function(t){var e=E(this);e.cannotBeABaseURL||xt(e,String(t),ut)})),hostname:Pt(Ft,(function(t){var e=E(this);e.cannotBeABaseURL||xt(e,String(t),ht)})),port:Pt(Bt,(function(t){var e=E(this);Y(e)||(""==(t=String(t))?e.port=null:xt(e,t,ft))})),pathname:Pt(Lt,(function(t){var e=E(this);e.cannotBeABaseURL||(e.path=[],xt(e,t+"",mt))})),search:Pt(Ot,(function(t){var e=E(this);""==(t=String(t))?e.query=null:("?"==t.charAt(0)&&(t=t.slice(1)),e.query="",xt(e,t,vt)),x(e.searchParams).updateSearchParams(e.query)})),searchParams:Pt(Ut),hash:Pt(kt,(function(t){var e=E(this);""!=(t=String(t))?("#"==t.charAt(0)&&(t=t.slice(1)),e.fragment="",xt(e,t,bt)):e.fragment=null}))}),l(Et,"toJSON",(function(){return St.call(this)}),{enumerable:!0}),l(Et,"toString",(function(){return St.call(this)}),{enumerable:!0}),v){var Dt=v.createObjectURL,Rt=v.revokeObjectURL;Dt&&l(wt,"createObjectURL",(function(t){return Dt.apply(v,arguments)})),Rt&&l(wt,"revokeObjectURL",(function(t){return Rt.apply(v,arguments)}))}m(wt,"URL"),i({global:!0,forced:!s,sham:!o},{URL:wt})},function(t,e,n){"use strict";var r=/[^\0-\u007E]/,i=/[.\u3002\uFF0E\uFF61]/g,o="Overflow: input needs wider integers to process",
27s=Math.floor,a=String.fromCharCode,c=function(t){return t+22+75*(t<26)},l=function(t,e,n){var r=0;for(t=n?s(t/700):t>>1,t+=s(t/e);t>455;r+=36)t=s(t/35);return s(r+36*t/(t+38))},u=function(t){var e,n,r=[],i=(t=function(t){for(var e=[],n=0,r=t.length;n<r;){var i=t.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var o=t.charCodeAt(n++);56320==(64512&o)?e.push(((1023&i)<<10)+(1023&o)+65536):(e.push(i),n--)}else e.push(i)}return e}(t)).length,u=128,h=0,f=72;for(e=0;e<t.length;e++)(n=t[e])<128&&r.push(a(n));var d=r.length,p=d;for(d&&r.push("-");p<i;){var g=2147483647;for(e=0;e<t.length;e++)(n=t[e])>=u&&n<g&&(g=n);var m=p+1;if(g-u>s((2147483647-h)/m))throw RangeError(o);for(h+=(g-u)*m,u=g,e=0;e<t.length;e++){if((n=t[e])<u&&++h>2147483647)throw RangeError(o);if(n==u){for(var y=h,_=36;;_+=36){var v=_<=f?1:_>=f+26?26:_-f;if(y<v)break;var b=y-v,x=36-v;r.push(a(c(v+b%x))),y=s(b/x)}r.push(a(c(y))),f=l(h,m,p==d),h=0,++p}}++h,++u}return r.join("")};t.exports=function(t){var e,n,o=[],s=t.toLowerCase().replace(i,".").split(".");for(e=0;e<s.length;e++)n=s[e],o.push(r.test(n)?"xn--"+u(n):n);return o.join(".")}},function(t,e,n){var r=n(73),i=n(588);t.exports=function(t){var e=i(t);if("function"!=typeof e)throw TypeError(String(t)+" is not iterable");return r(e.call(t))}},function(t,e,n){"use strict";n(12)({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},function(t,e,n){var r=n(1870);t.exports=r},function(t,e,n){var r=n(1871);t.exports=r},function(t,e,n){var r=n(1872);n(1020),t.exports=r},function(t,e,n){n(987),n(1130);var r=n(1225);t.exports=r},,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n.d(e,"b",(function(){return s})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return c}));var r=n(979),i=n(16),o=n(20);function s(t,e){return a(t,e)}function a(t,e){return(e=Array.isArray(e)?e:[e]).every(e=>l(t,e))}function c(t){t.luma=t.luma||{},t.luma.caps=t.luma.caps||{};for(const e in r.b)void 0===t.luma.caps[e]&&(t.luma.caps[e]=l(t,e));return t.luma.caps}function l(t,e){return t.luma=t.luma||{},t.luma.caps=t.luma.caps||{},void 0===t.luma.caps[e]&&(t.luma.caps[e]=function(t,e){const n=r.b[e];let s;Object(o.a)(n,e);const a=Object(i.i)(t)&&n[1]||n[0];if("function"==typeof a)s=a(t);else if(Array.isArray(a)){s=!0;for(const e of a)s=s&&Boolean(t.getExtension(e))}else"string"==typeof a?s=Boolean(t.getExtension(a)):"boolean"==typeof a?s=a:Object(o.a)(!1);return s}(t,e)),t.luma.caps[e]||i.j.log(2,"Feature: ".concat(e," not supported"))(),t.luma.caps[e]}},,,,,,,,function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"a",(function(){return _}));var i=n(411),o=n(1185);class s{constructor(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"sessionStorage";r(this,"storage",void 0),r(this,"id",void 0),r(this,"config",void 0),this.storage=function(t){try{const e=window[t],n="__storage_test__";return e.setItem(n,n),e.removeItem(n),e}catch(t){return null}}(n),this.id=t,this.config=e,this._loadConfiguration()}getConfiguration(){return this.config}setConfiguration(t){if(Object.assign(this.config,t),this.storage){const t=JSON.stringify(this.config);this.storage.setItem(this.id,t)}}_loadConfiguration(){let t={};if(this.storage){const e=this.storage.getItem(this.id);t=e?JSON.parse(e):{}}return Object.assign(this.config,t),this}}function a(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:600;const i=t.src.replace(/\(/g,"%28").replace(/\)/g,"%29");t.width>r&&(n=Math.min(n,r/t.width));const o=t.width*n,s=t.height*n,a=["font-size:1px;","padding:".concat(Math.floor(s/2),"px ").concat(Math.floor(o/2),"px;"),"line-height:".concat(s,"px;"),"background:url(".concat(i,");"),"background-size:".concat(o,"px ").concat(s,"px;"),"color:transparent;"].join("");return["".concat(e," %c+"),a]}let c;function l(t){return"string"==typeof t?c[t.toUpperCase()]||c.WHITE:t}function u(t,e){if(!t)throw new Error(e||"Assertion failed")}!function(t){t[t.BLACK=30]="BLACK",t[t.RED=31]="RED",t[t.GREEN=32]="GREEN",t[t.YELLOW=33]="YELLOW",t[t.BLUE=34]="BLUE",t[t.MAGENTA=35]="MAGENTA",t[t.CYAN=36]="CYAN",t[t.WHITE=37]="WHITE",t[t.BRIGHT_BLACK=90]="BRIGHT_BLACK",t[t.BRIGHT_RED=91]="BRIGHT_RED",t[t.BRIGHT_GREEN=92]="BRIGHT_GREEN",t[t.BRIGHT_YELLOW=93]="BRIGHT_YELLOW",t[t.BRIGHT_BLUE=94]="BRIGHT_BLUE",t[t.BRIGHT_MAGENTA=95]="BRIGHT_MAGENTA",t[t.BRIGHT_CYAN=96]="BRIGHT_CYAN",t[t.BRIGHT_WHITE=97]="BRIGHT_WHITE"}(c||(c={}));var h=n(214);function f(){let t;var e,n;if(i.a&&"performance"in h.f)t=null===h.f||void 0===h.f||null===(e=h.f.performance)||void 0===e||null===(n=e.now)||void 0===n?void 0:n.call(e);else if("hrtime"in h.d){var r;const e=null===h.d||void 0===h.d||null===(r=h.d.hrtime)||void 0===r?void 0:r.call(h.d);t=1e3*e[0]+e[1]/1e6}else t=Date.now();return t}const d={debug:i.a&&console.debug||console.log,log:console.log,info:console.info,warn:console.warn,error:console.error},p={enabled:!0,level:0};function g(){}const m={},y={once:!0};class _{constructor(){let{id:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{id:""};r(this,"id",void 0),r(this,"VERSION",o.a),r(this,"_startTs",f()),r(this,"_deltaTs",f()),r(this,"_storage",void 0),r(this,"userData",{}),r(this,"LOG_THROTTLE_TIMEOUT",0),this.id=t,this.userData={},this._storage=new s("__probe-".concat(this.id,"__"),p),this.timeStamp("".concat(this.id," started")),function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["constructor"];const n=Object.getPrototypeOf(t),r=Object.getOwnPropertyNames(n);for(const n of r)"function"==typeof t[n]&&(e.find(t=>n===t)||(t[n]=t[n].bind(t)))}
27(this),Object.seal(this)}set level(t){this.setLevel(t)}get level(){return this.getLevel()}isEnabled(){return this._storage.config.enabled}getLevel(){return this._storage.config.level}getTotal(){return Number((f()-this._startTs).toPrecision(10))}getDelta(){return Number((f()-this._deltaTs).toPrecision(10))}set priority(t){this.level=t}get priority(){return this.level}getPriority(){return this.level}enable(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._storage.setConfiguration({enabled:t}),this}setLevel(t){return this._storage.setConfiguration({level:t}),this}get(t){return this._storage.config[t]}set(t,e){this._storage.setConfiguration({[t]:e})}settings(){console.table?console.table(this._storage.config):console.log(this._storage.config)}assert(t,e){u(t,e)}warn(t){return this._getLogFunction(0,t,d.warn,arguments,y)}error(t){return this._getLogFunction(0,t,d.error,arguments)}deprecated(t,e){return this.warn("`".concat(t,"` is deprecated and will be removed in a later version. Use `").concat(e,"` instead"))}removed(t,e){return this.error("`".concat(t,"` has been removed. Use `").concat(e,"` instead"))}probe(t,e){return this._getLogFunction(t,e,d.log,arguments,{time:!0,once:!0})}log(t,e){return this._getLogFunction(t,e,d.debug,arguments)}info(t,e){return this._getLogFunction(t,e,console.info,arguments)}once(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return this._getLogFunction(t,e,d.debug||d.info,arguments,y)}table(t,e,n){return e?this._getLogFunction(t,e,console.table||g,n&&[n],{tag:x(e)}):g}image(t){let{logLevel:e,priority:n,image:r,message:o="",scale:s=1}=t;return this._shouldLog(e||n)?i.a?function(t){let{image:e,message:n="",scale:r=1}=t;if("string"==typeof e){const t=new Image;return t.onload=()=>{const e=a(t,n,r);console.log(...e)},t.src=e,g}const i=e.nodeName||"";if("img"===i.toLowerCase())return console.log(...a(e,n,r)),g;if("canvas"===i.toLowerCase()){const t=new Image;return t.onload=()=>console.log(...a(t,n,r)),t.src=e.toDataURL(),g}return g}({image:r,message:o,scale:s}):function(t){let{image:e,message:n="",scale:r=1}=t;return console.warn("removed"),g}({image:r,message:o,scale:s}):g}time(t,e){return this._getLogFunction(t,e,console.time?console.time:console.info)}timeEnd(t,e){return this._getLogFunction(t,e,console.timeEnd?console.timeEnd:console.info)}timeStamp(t,e){return this._getLogFunction(t,e,console.timeStamp||g)}group(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{collapsed:!1};const r=b({logLevel:t,message:e,opts:n}),{collapsed:i}=n;return r.method=(i?console.groupCollapsed:console.group)||console.info,this._getLogFunction(r)}groupCollapsed(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.group(t,e,Object.assign({},n,{collapsed:!0}))}groupEnd(t){return this._getLogFunction(t,"",console.groupEnd||g)}withGroup(t,e,n){this.group(t,e)();try{n()}finally{this.groupEnd(t)()}}trace(){console.trace&&console.trace()}_shouldLog(t){return this.isEnabled()&&this.getLevel()>=v(t)}_getLogFunction(t,e,n,r,o){if(this._shouldLog(t)){o=b({logLevel:t,message:e,args:r,opts:o}),u(n=n||o.method),o.total=this.getTotal(),o.delta=this.getDelta(),this._deltaTs=f();const s=o.tag||o.message;if(o.once){if(m[s])return g;m[s]=f()}return e=function(t,e,n){if("string"==typeof e){const a=n.time?function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:8;const n=Math.max(e-t.length,0);return"".concat(" ".repeat(n)).concat(t)}(function(t){let e;return e=t<10?"".concat(t.toFixed(2),"ms"):t<100?"".concat(t.toFixed(1),"ms"):t<1e3?"".concat(t.toFixed(0),"ms"):"".concat((t/1e3).toFixed(2),"s"),e}(n.total)):"";e=n.time?"".concat(t,": ").concat(a," ").concat(e):"".concat(t,": ").concat(e),r=e,o=n.color,s=n.background,i.a||"string"!=typeof r||(o&&(o=l(o),r="�[".concat(o,"m").concat(r,"�[39m")),s&&(o=l(s),r="�[".concat(s+10,"m").concat(r,"�[49m"))),e=r}var r,o,s;return e}(this.id,o.message,o),n.bind(console,e,...o.args)}return g}}function v(t){if(!t)return 0;let e;switch(typeof t){case"number":e=t;break;case"object":e=t.logLevel||t.priority||0;break;default:return 0}return u(Number.isFinite(e)&&e>=0),e}function b(t){const{logLevel:e,message:n}=t;t.logLevel=v(e);const r=t.args?Array.from(t.args):[];for(;r.length&&r.shift()!==n;);switch(typeof e){case"string":case"function":void 0!==n&&r.unshift(n),t.message=e;break;case"object":Object.assign(t,e)}"function"==typeof t.message&&(t.message=t.message());const i=typeof t.message;
27return u("string"===i||"object"===i),Object.assign(t,{args:r},t.opts)}function x(t){for(const e in t)for(const n in t[e])return n||"untitled";return"empty"}r(_,"VERSION",o.a)},,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return s})),n.d(e,"c",(function(){return a})),n.d(e,"b",(function(){return c}));var r=function(t,e){var n=c().version;if("v1-iframe"===n)i(t,e);else{if("v2-script-tag"!==n)throw new Error("unknown version");o(t,e)}},i=function(t,e){e(window.confirm(t))},o=function(t,e){var n=function(t){var r=t.data;if("compliance-response"===r.type){var i=r.result;e(i)}window.removeEventListener("message",n)};window.addEventListener("message",n),window.parent.postMessage({type:"compliance-prompt",text:t},"*")},s=function(t){return function(e){e.preventDefault(),function(t){var e=c(),n=e.compliance,i=e.auth_client_id;t+="?utm_source=embed-"+i,n?r(n,(function(e){e&&window.open(t)})):window.open(t)}(t)}},a=function(){var t=c();return t?t.theme:void 0},c=function(){return window.Thinknum.EMBED_CONFIG}},function(t,e,n){t.exports={CompanyMetricsList:"CompanyMetricsList_1KtUb",ListItem:"ListItem_23tP7",placeholder:"placeholder_JZoq7",placeholderLoading:"placeholderLoading_3RGM7",valueContainer:"valueContainer_Kqavp",header:"header_LqTRA",nowrap:"nowrap_3cU3R",infoButton:"infoButton_3Rlp_",meta:"meta_1AR4P",withButtons:"withButtons_2qISx",updated:"updated_3WeID",buttons:"buttons_1JdDv",alertButton:"alertButton_1-fU9",CompanyMetricValue:"CompanyMetricValue_fi3Q0",map:"map_OiOYU",chart:"chart_U8cmY",regular:"regular_34qR_",number:"number_wKo_I",embed:"embed_cduuj",MapValue:"MapValue_2gA4W",tooltip:"tooltip_oELbB",icon:"icon_fpyVj"}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";var r=n(0),i=n.n(r),o=n(1),s=n.n(o);let a=1,c=1;class l{constructor(){this.time=0,this.channels=new Map,this.animations=new Map,this.playing=!1,this.lastEngineTime=-1}addChannel(t){const{delay:e=0,duration:n=Number.POSITIVE_INFINITY,rate:r=1,repeat:i=1}=t,o=a++,s={time:0,delay:e,duration:n,rate:r,repeat:i};return this._setChannelTime(s,this.time),this.channels.set(o,s),o}removeChannel(t){this.channels.delete(t);for(const[e,n]of this.animations)n.channel===t&&this.detachAnimation(e)}isFinished(t){const e=this.channels.get(t);return void 0!==e&&this.time>=e.delay+e.duration*e.repeat}getTime(t){if(void 0===t)return this.time;const e=this.channels.get(t);return void 0===e?-1:e.time}setTime(t){this.time=Math.max(0,t);const e=this.channels.values();for(const t of e)this._setChannelTime(t,this.time);const n=this.animations.values();for(const t of n){const{animation:e,channel:n}=t;e.setTime(this.getTime(n))}}play(){this.playing=!0}pause(){this.playing=!1,this.lastEngineTime=-1}reset(){this.setTime(0)}attachAnimation(t,e){const n=c++;return this.animations.set(n,{animation:t,channel:e}),t.setTime(this.getTime(e)),n}detachAnimation(t){this.animations.delete(t)}update(t){this.playing&&(-1===this.lastEngineTime&&(this.lastEngineTime=t),this.setTime(this.time+(t-this.lastEngineTime)),this.lastEngineTime=t)}_setChannelTime(t,e){const n=e-t.delay;n>=t.duration*t.repeat?t.time=t.duration*t.rate:(t.time=Math.max(0,n)%t.duration,t.time*=t.rate)}}var u=n(187),h=n(48),f=n(118),d=n(430),p=n(1200),g=n(2325);class m{constructor(t,e,n){this.id=t,this.context=n,this._loadCount=0,this._subscribers=new Set,this.setData(e)}subscribe(t){this._subscribers.add(t)}unsubscribe(t){this._subscribers.delete(t)}inUse(){return this._subscribers.size>0}delete(){}getData(){return this.isLoaded?this._error?Promise.reject(this._error):this._content:this._loader.then(()=>this.getData())}setData(t,e){if(t===this._data&&!e)return;this._data=t;const n=++this._loadCount;let r=t;"string"==typeof t&&(r=Object(g.a)(t)),r instanceof Promise?(this.isLoaded=!1,this._loader=r.then(t=>{this._loadCount===n&&(this.isLoaded=!0,this._error=null,this._content=t)}).catch(t=>{this._loadCount===n&&(this.isLoaded=!0,this._error=t||!0)})):(this.isLoaded=!0,this._error=null,this._content=t);for(const t of this._subscribers)t.onChange(this.getData())}}class y{constructor({gl:t,protocol:e}){this.protocol=e||"resource://",this._context={gl:t,resourceManager:this},this._resources={},this._consumers={},this._pruneRequest=null}contains(t){return!!t.startsWith(this.protocol)||t in this._resources}add({resourceId:t,data:e,forceUpdate:n=!1,persistent:r=!0}){let i=this._resources[t];i?i.setData(e,n):(i=new m(t,e,this._context),this._resources[t]=i),i.persistent=r}remove(t){const e=this._resources[t];e&&(e.delete(),delete this._resources[t])}unsubscribe({consumerId:t}){const e=this._consumers[t];if(e){for(const t in e){const n=e[t];n.resource&&n.resource.unsubscribe(n)}delete this._consumers[t],this.prune()}}subscribe({resourceId:t,onChange:e,consumerId:n,requestId:r="default"}){const{_resources:i,protocol:o}=this;t.startsWith(o)&&(i[t=t.replace(o,"")]||this.add({resourceId:t,data:null,persistent:!1}));const s=i[t];if(this._track(n,r,s,e),s)return s.getData()}prune(){this._pruneRequest||(this._pruneRequest=setTimeout(()=>this._prune(),0))}finalize(){for(const t in this._resources)this._resources[t].delete()}_track(t,e,n,r){const i=this._consumers,o=i[t]=i[t]||{},s=o[e]||{};s.resource&&(s.resource.unsubscribe(s),s.resource=null,this.prune()),n&&(o[e]=s,s.onChange=r,s.resource=n,n.subscribe(s))}_prune(){this._pruneRequest=null;for(const t of Object.keys(this._resources)){const e=this._resources[t];e.persistent||e.inUse()||(e.delete(),delete this._resources[t])}}}var _=n(462),v=n(1199),b=n(459);const x=[b.a],w=["vs:DECKGL_FILTER_SIZE(inout vec3 size, VertexGeometry geometry)","vs:DECKGL_FILTER_GL_POSITION(inout vec4 position, VertexGeometry geometry)","vs:DECKGL_FILTER_COLOR(inout vec4 color, VertexGeometry geometry)","fs:DECKGL_FILTER_COLOR(inout vec4 color, FragmentGeometry geometry)"];function E(t){const e=v.a.getDefaultProgramManager(t);for(const t of x)e.addDefaultModule(t);for(const t of w)e.addShaderHook(t);return e}
27const S=Object.seal({layerManager:null,resourceManager:null,deck:null,gl:null,stats:null,shaderCache:null,pickingFBO:null,mousePosition:null,userData:{}});class C{constructor(t,{deck:e,stats:n,viewport:r,timeline:i}={}){this.lastRenderedLayers=[],this.layers=[],this.resourceManager=new y({gl:t,protocol:"deck://"}),this.context={...S,layerManager:this,gl:t,deck:e,programManager:t&&E(t),stats:n||new p.a({id:"deck.gl"}),viewport:r||new _.a({id:"DEFAULT-INITIAL-VIEWPORT"}),timeline:i||new l,resourceManager:this.resourceManager},this._nextLayers=null,this._needsRedraw="Initial render",this._needsUpdate=!1,this._debug=!1,this.activateViewport=this.activateViewport.bind(this),Object.seal(this)}finalize(){this.resourceManager.finalize();for(const t of this.layers)this._finalizeLayer(t)}needsRedraw(t={clearRedrawFlags:!1}){let e=this._needsRedraw;t.clearRedrawFlags&&(this._needsRedraw=!1);for(const n of this.layers){const r=n.getNeedsRedraw(t);e=e||r}return e}needsUpdate(){return this._nextLayers&&this._nextLayers!==this.lastRenderedLayers?"layers changed":this._needsUpdate}setNeedsRedraw(t){this._needsRedraw=this._needsRedraw||t}setNeedsUpdate(t){this._needsUpdate=this._needsUpdate||t}getLayers({layerIds:t=null}={}){return t?this.layers.filter(e=>t.find(t=>0===e.id.indexOf(t))):this.layers}setProps(t){"debug"in t&&(this._debug=t.debug),"userData"in t&&(this.context.userData=t.userData),"layers"in t&&(this._nextLayers=t.layers),"onError"in t&&(this.context.onError=t.onError)}setLayers(t,e){Object(f.a)("layerManager.setLayers",this,e,t),this.lastRenderedLayers=t,t=Object(d.b)(t,Boolean);for(const e of t)e.context=this.context;return this._updateLayers(this.layers,t),this}updateLayers(){const t=this.needsUpdate();t&&(this.setNeedsRedraw("updating layers: ".concat(t)),this.setLayers(this._nextLayers||this.lastRenderedLayers,t)),this._nextLayers=null}activateViewport(t){return Object(f.a)("layerManager.activateViewport",this,t),t&&(this.context.viewport=t),this}_handleError(t,e,n){n.raiseError(e,"".concat(t," of ").concat(n))}_updateLayers(t,e){const n={};for(const e of t)n[e.id]?h.a.warn("Multiple old layers with same id ".concat(e.id))():n[e.id]=e;const r=[];this._updateSublayersRecursively(e,n,r),this._finalizeOldLayers(n);let i=!1;for(const t of r)if(t.hasUniformTransition()){i=!0;break}this._needsUpdate=i,this.layers=r}_updateSublayersRecursively(t,e,n){for(const r of t){r.context=this.context;const t=e[r.id];null===t&&h.a.warn("Multiple new layers with same id ".concat(r.id))(),e[r.id]=null;let i=null;try{this._debug&&t!==r&&r.validateProps(),t?(this._transferLayerState(t,r),this._updateLayer(r)):this._initializeLayer(r),n.push(r),i=r.isComposite&&r.getSubLayers()}catch(t){this._handleError("matching",t,r)}i&&this._updateSublayersRecursively(i,e,n)}}_finalizeOldLayers(t){for(const e in t){const n=t[e];n&&this._finalizeLayer(n)}}_initializeLayer(t){try{t._initialize(),t.lifecycle=u.a.INITIALIZED}catch(e){this._handleError("initialization",e,t)}}_transferLayerState(t,e){e._transferState(t),e.lifecycle=u.a.MATCHED,e!==t&&(t.lifecycle=u.a.AWAITING_GC)}_updateLayer(t){try{t._update()}catch(e){this._handleError("update",e,t)}}_finalizeLayer(t){this._needsRedraw=this._needsRedraw||"finalized ".concat(t),t.lifecycle=u.a.AWAITING_FINALIZATION;try{t._finalize(),t.lifecycle=u.a.FINALIZED}catch(e){this._handleError("finalization",e,t)}}}function A(t,e){if(t===e)return!0;if(!t||!e)return!1;for(const n in t){const r=t[n],i=e[n];if(!(r===i||Array.isArray(r)&&Array.isArray(i)&&A(r,i)))return!1}return!0}class I{constructor(t={}){this.views=[],this.width=100,this.height=100,this.viewState={},this.controllers={},this.timeline=t.timeline,this._viewports=[],this._viewportMap={},this._isUpdating=!1,this._needsRedraw="Initial render",this._needsUpdate=!0,this._eventManager=t.eventManager,this._eventCallbacks={onViewStateChange:t.onViewStateChange,onInteractionStateChange:t.onInteractionStateChange},Object.seal(this),this.setProps(t)}finalize(){for(const t in this.controllers)this.controllers[t]&&this.controllers[t].finalize();this.controllers={}}needsRedraw(t={clearRedrawFlags:!1}){const e=this._needsRedraw;return t.clearRedrawFlags&&(this._needsRedraw=!1),e}setNeedsUpdate(t){this._needsUpdate=this._needsUpdate||t,this._needsRedraw=this._needsRedraw||t}updateViewStates(){for(const t in this.controllers){const e=this.controllers[t];e&&e.updateTransition()}}getViewports(t){return t?this._viewports.filter(e=>e.containsPixel(t)):this._viewports}getViews(){const t={};
27return this.views.forEach(e=>{t[e.id]=e}),t}getView(t){return"string"==typeof t?this.views.find(e=>e.id===t):t}getViewState(t){const e=this.getView(t),n=e&&this.viewState[e.getViewStateId()]||this.viewState;return e?e.filterViewState(n):n}getViewport(t){return this._viewportMap[t]}unproject(t,e){const n=this.getViewports(),r={x:t[0],y:t[1]};for(let i=n.length-1;i>=0;--i){const o=n[i];if(o.containsPixel(r)){const n=t.slice();return n[0]-=o.x,n[1]-=o.y,o.unproject(n,e)}}return null}setProps(t){"views"in t&&this._setViews(t.views),"viewState"in t&&this._setViewState(t.viewState),("width"in t||"height"in t)&&this._setSize(t.width,t.height),this._isUpdating||this._update()}_update(){this._isUpdating=!0,this._needsUpdate&&(this._needsUpdate=!1,this._rebuildViewports()),this._needsUpdate&&(this._needsUpdate=!1,this._rebuildViewports()),this._isUpdating=!1}_setSize(t,e){t===this.width&&e===this.height||(this.width=t,this.height=e,this.setNeedsUpdate("Size changed"))}_setViews(t){t=Object(d.b)(t,Boolean);this._diffViews(t,this.views)&&this.setNeedsUpdate("views changed"),this.views=t}_setViewState(t){if(t){!A(t,this.viewState)&&this.setNeedsUpdate("viewState changed"),this.viewState=t}else h.a.warn("missing `viewState` or `initialViewState`")()}_onViewStateChange(t,e){e.viewId=t,this._eventCallbacks.onViewStateChange&&this._eventCallbacks.onViewStateChange(e)}_createController(t,e){return new(0,e.type)({timeline:this.timeline,eventManager:this._eventManager,onViewStateChange:this._onViewStateChange.bind(this,e.id),onStateChange:this._eventCallbacks.onInteractionStateChange,makeViewport:e=>t._getViewport(e,{width:e.width,height:e.height}),...e})}_updateController(t,e,n,r){let i=t.controller;return i?(i={...e,...t.props,...i,id:t.id,x:n.x,y:n.y,width:n.width,height:n.height},r?r.setProps(i):r=this._createController(t,i),r):null}_rebuildViewports(){const{width:t,height:e,views:n}=this,r=this.controllers;this._viewports=[],this.controllers={};let i=!1;for(let o=n.length;o--;){const s=n[o],a=this.getViewState(s),c=s.makeViewport({width:t,height:e,viewState:a});let l=r[s.id];s.controller&&!l&&(i=!0),!i&&s.controller||!l||(l.finalize(),l=null),this.controllers[s.id]=this._updateController(s,a,c,l),this._viewports.unshift(c)}for(const t in r)r[t]&&!this.controllers[t]&&r[t].finalize();this._buildViewportMap()}_buildViewportMap(){this._viewportMap={},this._viewports.forEach(t=>{t.id&&(this._viewportMap[t.id]=this._viewportMap[t.id]||t)})}_diffViews(t,e){return t.length!==e.length||t.some((n,r)=>!t[r].equals(e[r]))}}const T=/([0-9]+\.?[0-9]*)(%|px)/;function M(t){switch(typeof t){case"number":return{position:t,relative:!1};case"string":const e=t.match(T);if(e&&e.length>=3){const t="%"===e[2],n=parseFloat(e[1]);return{position:t?n/100:n,relative:t}}default:throw new Error("Could not parse position string ".concat(t))}}function F(t,e){return t.relative?Math.round(t.position*e):t.position}var B=n(150);class L{constructor(t={}){const{id:e=null,x:n=0,y:r=0,width:i="100%",height:o="100%",viewportInstance:s,type:a=_.a}=t;Object(B.a)(!s||s instanceof _.a),this.viewportInstance=s,this.id=e||this.constructor.displayName||"view",this.type=a,this.props={...t,id:this.id},this._parseDimensions({x:n,y:r,width:i,height:o}),this.equals=this.equals.bind(this),Object.seal(this)}equals(t){if(this===t)return!0;if(this.viewportInstance)return t.viewportInstance&&this.viewportInstance.equals(t.viewportInstance);return A(this.props,t.props)}makeViewport({width:t,height:e,viewState:n}){if(this.viewportInstance)return this.viewportInstance;n=this.filterViewState(n);const r=this.getDimensions({width:t,height:e});return this._getViewport(n,r)}getViewStateId(){switch(typeof this.props.viewState){case"string":return this.props.viewState;case"object":return this.props.viewState&&this.props.viewState.id;default:return this.id}}filterViewState(t){if(this.props.viewState&&"object"==typeof this.props.viewState){if(!this.props.viewState.id)return this.props.viewState;const e={...t};for(const t in this.props.viewState)"id"!==t&&(e[t]=this.props.viewState[t]);return e}return t}getDimensions({width:t,height:e}){return{x:F(this._x,t),y:F(this._y,e),width:F(this._width,t),height:F(this._height,e)}}_getControllerProps(t){let e=this.props.controller;return e?!0===e?t:("function"==typeof e&&(e={type:e}),{...t,...e}):null}_getViewport(t,e){const{type:n}=this;return new n({...t,...this.props,...e})}_parseDimensions({x:t,y:e,width:n,height:r}){this._x=M(t),this._y=M(e),this._width=M(n),this._height=M(r)}}var O=n(699),U=n(60),k=n(320);const P=()=>{},D=1,R=2,j=3,z={transitionEasing:t=>t,transitionInterruption:D,onTransitionStart:P,onTransitionInterrupt:P,onTransitionEnd:P};class Q{constructor(t,e={}){this.ControllerState=t,this.props={...z,...e},this.propsInTransition=null,this.transition=new k.a(e.timeline),this.onViewStateChange=e.onViewStateChange||P,this.onStateChange=e.onStateChange||P,this._onTransitionUpdate=this._onTransitionUpdate.bind(this)}finalize(){this.transition.cancel()}getViewportInTransition(){return this.propsInTransition}processViewStateChange(t){let e=!1;const n=this.props;if(t={...z,...t},this.props=t,this._shouldIgnoreViewportChange(n,t))return e;if(this._isTransitionEnabled(t)){const{interruption:r,endProps:i}=this.transition.settings,o={...n,...r===R?i:this.propsInTransition||n};this._triggerTransition(o,t),e=!0}else this.transition.cancel();return e}updateTransition(){this.transition.update()}_isTransitionEnabled(t){const{transitionDuration:e,transitionInterpolator:n}=t;return(e>0||"auto"===e)&&Boolean(n)}_isUpdateDueToCurrentTransition(t){return!!this.transition.inProgress&&this.transition.settings.interpolator.arePropsEqual(t,this.propsInTransition)}_shouldIgnoreViewportChange(t,e){return this.transition.inProgress?this.transition.settings.interruption===j||this._isUpdateDueToCurrentTransition(e):!this._isTransitionEnabled(e)||e.transitionInterpolator.arePropsEqual(t,e)}_triggerTransition(t,e){const n=new this.ControllerState(t),r=new this.ControllerState(e).shortestPathFrom(n),{transitionInterpolator:i}=e,o=i.getDuration?i.getDuration(t,e):e.transitionDuration;if(0===o)return;const s=e.transitionInterpolator.initializeProps(t,r);this.propsInTransition={},this.duration=o,this.transition.start({duration:o,easing:e.transitionEasing,interpolator:e.transitionInterpolator,interruption:e.transitionInterruption,startProps:s.start,endProps:s.end,onStart:e.onTransitionStart,onUpdate:this._onTransitionUpdate,onInterrupt:this._onTransitionEnd(e.onTransitionInterrupt),onEnd:this._onTransitionEnd(e.onTransitionEnd)}),this.onStateChange({inTransition:!0}),this.updateTransition()}_onTransitionEnd(t){return e=>{this.propsInTransition=null,this.onStateChange({inTransition:!1,isZooming:!1,isPanning:!1,isRotating:!1}),t(e)}}_onTransitionUpdate(t){const{time:e,settings:{interpolator:n,startProps:r,endProps:i,duration:o,easing:s}}=t,a=s(e/o),c=n.interpolateProps(r,i,a);this.propsInTransition=new this.ControllerState({...this.props,...c}).getViewportProps(),this.onViewStateChange({viewState:this.propsInTransition,oldViewState:this.props})}}const N=["longitude","latitude","zoom","bearing","pitch"],V=["longitude","latitude","zoom"];class G extends class{constructor(t={}){Array.isArray(t)&&(t={compare:t,extract:t,required:t});const{compare:e,extract:n,required:r}=t;this._propsToCompare=e,this._propsToExtract=n,this._requiredProps=r}arePropsEqual(t,e){for(const n of this._propsToCompare||Object.keys(e))if(!(n in t)||!(n in e)||!Object(U.d)(t[n],e[n]))return!1;return!0}initializeProps(t,e){let n;if(this._propsToExtract){const r={},i={};for(const n of this._propsToExtract)r[n]=t[n],i[n]=e[n];n={start:r,end:i}}else n={start:t,end:e};return this._checkRequiredProps(n.start),this._checkRequiredProps(n.end),n}interpolateProps(t,e,n){return e}getDuration(t,e){return e.transitionDuration}_checkRequiredProps(t){this._requiredProps&&this._requiredProps.forEach(e
27=>{const n=t[e];Object(B.a)(Number.isFinite(n)||Array.isArray(n),"".concat(e," is required for transition"))})}}{constructor(t={}){super((Array.isArray(t)?t:t.transitionProps)||{compare:N,extract:N,required:V}),this.opts=t}initializeProps(t,e){const n=super.initializeProps(t,e),{makeViewport:r,around:i}=this.opts;if(r&&i){const o=r(t),s=r(e),a=o.unproject(i);n.start.around=i,Object.assign(n.end,{around:s.project(a),aroundPosition:a,width:e.width,height:e.height})}return n}interpolateProps(t,e,n){const r={};for(const i of this._propsToExtract)r[i]=Object(U.e)(t[i]||0,e[i]||0,n);if(e.aroundPosition){const i=this.opts.makeViewport({...e,...r});Object.assign(r,i.panByPosition(e.aroundPosition,Object(U.e)(t.around,e.around,n)))}return r}}const H={transitionDuration:0},Z={transitionDuration:300,transitionEasing:t=>t,transitionInterruption:D},W=t=>1-(1-t)*(1-t),X=["wheel"],Y=["panstart","panmove","panend"],q=["pinchstart","pinchmove","pinchend"],K=["tripanstart","tripanmove","tripanend"],J=["doubletap"],$=["keydown"];var tt=n(83);const et=0,nt=0,rt=1.5,it=0,ot=20,st=0,at=60;class ct extends class{constructor(t){this._viewportProps=this._applyConstraints(t)}getViewportProps(){return this._viewportProps}getState(){return this._state}shortestPathFrom(t){return this._viewportProps}_applyConstraints(t){return t}}{constructor({makeViewport:t,width:e,height:n,latitude:r,longitude:i,zoom:o,bearing:s=nt,pitch:a=et,altitude:c=rt,maxZoom:l=ot,minZoom:u=it,maxPitch:h=at,minPitch:f=st,startPanLngLat:d,startZoomLngLat:p,startRotatePos:g,startBearing:m,startPitch:y,startZoom:_,normalize:v}={}){Object(B.a)(Number.isFinite(i)),Object(B.a)(Number.isFinite(r)),Object(B.a)(Number.isFinite(o)),super({width:e,height:n,latitude:r,longitude:i,zoom:o,bearing:s,pitch:a,altitude:c,maxZoom:l,minZoom:u,maxPitch:h,minPitch:f,normalize:v}),this._state={startPanLngLat:d,startZoomLngLat:p,startRotatePos:g,startBearing:m,startPitch:y,startZoom:_},this.makeViewport=t}panStart({pos:t}){return this._getUpdatedState({startPanLngLat:this._unproject(t)})}pan({pos:t,startPos:e}){const n=this._state.startPanLngLat||this._unproject(e);if(!n)return this;const r=this.makeViewport(this._viewportProps).panByPosition(n,t);return this._getUpdatedState(r)}panEnd(){return this._getUpdatedState({startPanLngLat:null})}rotateStart({pos:t}){return this._getUpdatedState({startRotatePos:t,startBearing:this._viewportProps.bearing,startPitch:this._viewportProps.pitch})}rotate({pos:t,deltaAngleX:e=0,deltaAngleY:n=0}){const{startRotatePos:r,startBearing:i,startPitch:o}=this._state;if(!r||!Number.isFinite(i)||!Number.isFinite(o))return this;let s;return s=t?this._calculateNewPitchAndBearing({...this._getRotationParams(t,r),startBearing:i,startPitch:o}):{bearing:i+e,pitch:o+n},this._getUpdatedState(s)}rotateEnd(){return this._getUpdatedState({startBearing:null,startPitch:null})}zoomStart({pos:t}){return this._getUpdatedState({startZoomLngLat:this._unproject(t),startZoom:this._viewportProps.zoom})}zoom({pos:t,startPos:e,scale:n}){let{startZoom:r,startZoomLngLat:i}=this._state;Number.isFinite(r)||(r=this._viewportProps.zoom,i=this._unproject(e)||this._unproject(t));const o=this._calculateNewZoom({scale:n,startZoom:r}),s=this.makeViewport({...this._viewportProps,zoom:o});return this._getUpdatedState({zoom:o,...s.panByPosition(i,t)})}zoomEnd(){return this._getUpdatedState({startZoomLngLat:null,startZoom:null})}zoomIn(t=2){return this._zoomFromCenter(t)}zoomOut(t=2){return this._zoomFromCenter(1/t)}moveLeft(t=100){return this._panFromCenter([t,0])}moveRight(t=100){return this._panFromCenter([-t,0])}moveUp(t=100){return this._panFromCenter([0,t])}moveDown(t=100){return this._panFromCenter([0,-t])}rotateLeft(t=15){return this._getUpdatedState({bearing:this._viewportProps.bearing-t})}rotateRight(t=15){return this._getUpdatedState({bearing:this._viewportProps.bearing+t})}rotateUp(t=10){return this._getUpdatedState({pitch:this._viewportProps.pitch+t})}rotateDown(t=10){return this._getUpdatedState({pitch:this._viewportProps.pitch-t})}shortestPathFrom(t){const e=t.getViewportProps(),n={...this._viewportProps},{bearing:r,longitude:i}=n;return Math.abs(r-e.bearing)>180&&(n.bearing=r<0?r+360:r-360),Math.abs(i-e.longitude)>
27180&&(n.longitude=i<0?i+360:i-360),n}_zoomFromCenter(t){const{width:e,height:n}=this._viewportProps;return this.zoom({pos:[e/2,n/2],scale:t})}_panFromCenter(t){const{width:e,height:n}=this._viewportProps;return this.pan({startPos:[e/2,n/2],pos:[e/2+t[0],n/2+t[1]]})}_getUpdatedState(t){return new this.constructor({makeViewport:this.makeViewport,...this._viewportProps,...this._state,...t})}_applyConstraints(t){const{maxZoom:e,minZoom:n,zoom:r}=t;t.zoom=Object(U.c)(r,n,e);const{maxPitch:i,minPitch:o,pitch:s}=t;t.pitch=Object(U.c)(s,o,i);const{normalize:a=!0}=t;return a&&Object.assign(t,Object(tt.p)(t)),t}_unproject(t){const e=this.makeViewport(this._viewportProps);return t&&e.unproject(t)}_calculateNewZoom({scale:t,startZoom:e}){const{maxZoom:n,minZoom:r}=this._viewportProps,i=e+Math.log2(t);return Object(U.c)(i,r,n)}_calculateNewPitchAndBearing({deltaScaleX:t,deltaScaleY:e,startBearing:n,startPitch:r}){e=Object(U.c)(e,-1,1);const{minPitch:i,maxPitch:o}=this._viewportProps;let s=r;return e>0?s=r+e*(o-r):e<0&&(s=r-e*(i-r)),{pitch:s,bearing:n+180*t}}_getRotationParams(t,e){const n=t[0]-e[0],r=t[1]-e[1],i=t[1],o=e[1],{width:s,height:a}=this._viewportProps,c=n/s;let l=0;return r>0?Math.abs(a-o)>5&&(l=r/(o-a)*1.2):r<0&&o>5&&(l=1-i/o),l=Math.min(1,Math.max(-1,l)),{deltaScaleX:c,deltaScaleY:l}}}class lt extends class{constructor(t,e={}){this.ControllerState=t,this.controllerState=null,this.controllerStateProps=null,this.eventManager=null,this.transitionManager=new Q(t,{...e,onViewStateChange:this._onTransition.bind(this),onStateChange:this._setInteractionState.bind(this)});const n=this.linearTransitionProps;this._transition=n&&{...Z,transitionInterpolator:new G({transitionProps:n})},this._events=null,this._interactionState={isDragging:!1},this._customEvents=[],this.onViewStateChange=null,this.onStateChange=null,this.handleEvent=this.handleEvent.bind(this),this.setProps(e)}get linearTransitionProps(){return null}set events(t){this.toggleEvents(this._customEvents,!1),this.toggleEvents(t,!0),this._customEvents=t,this.setProps(this.controllerStateProps)}finalize(){for(const t in this._events)this._events[t]&&this.eventManager.off(t,this.handleEvent);this.transitionManager.finalize()}handleEvent(t){const{ControllerState:e}=this;this.controllerState=new e({makeViewport:this.makeViewport,...this.controllerStateProps,...this._state});const n=this._eventStartBlocked;switch(t.type){case"panstart":return!n&&this._onPanStart(t);case"panmove":return this._onPan(t);case"panend":return this._onPanEnd(t);case"pinchstart":return!n&&this._onPinchStart(t);case"pinchmove":return this._onPinch(t);case"pinchend":return this._onPinchEnd(t);case"tripanstart":return!n&&this._onTriplePanStart(t);case"tripanmove":return this._onTriplePan(t);case"tripanend":return this._onTriplePanEnd(t);case"doubletap":return this._onDoubleTap(t);case"wheel":return this._onWheel(t);case"keydown":return this._onKeyDown(t);default:return!1}}getCenter(t){const{x:e,y:n}=this.controllerStateProps,{offsetCenter:r}=t;return[r.x-e,r.y-n]}isPointInBounds(t,e){const{width:n,height:r}=this.controllerStateProps;if(e&&e.handled)return!1;const i=t[0]>=0&&t[0]<=n&&t[1]>=0&&t[1]<=r;return i&&e&&e.stopPropagation(),i}isFunctionKeyPressed(t){const{srcEvent:e}=t;return Boolean(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}isDragging(){return this._interactionState.isDragging}blockEvents(t){const e=setTimeout(()=>{this._eventStartBlocked===e&&(this._eventStartBlocked=null)},t);this._eventStartBlocked=e}setProps(t){"onViewStateChange"in t&&(this.onViewStateChange=t.onViewStateChange),"onStateChange"in t&&(this.onStateChange=t.onStateChange),"makeViewport"in t&&(this.makeViewport=t.makeViewport),"dragMode"in t&&(this.dragMode=t.dragMode),this.controllerStateProps=t,"eventManager"in t&&this.eventManager!==t.eventManager&&(this.eventManager=t.eventManager,this._events={},this.toggleEvents(this._customEvents,!0)),"transitionInterpolator"in t||(t.transitionInterpolator=this._getTransitionProps().transitionInterpolator),this.transitionManager.processViewStateChange(t);let{inertia:e}=t;!0===e&&(e=300),this.inertia=e;const{scrollZoom:n=!0,dragPan:r=!0,dragRotate:i=!0,doubleClickZoom:o=!0,touchZoom:s=!0,touchRotate:a=!1,keyboard:c=!0}=t,l=Boolean(this.onViewStateChange);this.toggleEvents(X,l&&n),this.toggleEvents(Y,l&&(r||i)),this.toggleEvents(q,l&&(s||a)),this.toggleEvents(K,l&&a),this.toggleEvents(J,l&&o),this.toggleEvents($,l&&c),this.scrollZoom=n,this.dragPan=r,this.dragRotate=i,this.doubleClickZoom=o,this.touchZoom=s,this.touchRotate=a,this.keyboard=c}updateTransition(){this.transitionManager.updateTransition()}toggleEvents(t,e){this.eventManager&&t.forEach(t=>{this._events[t]!==e&&(this._events[t]=e,e?this.eventManager.on(t,this.handleEvent):this.eventManager.off(t,this.handleEvent))})}updateViewport(t,e={},n={}){const r={...t.getViewportProps(),...e},i=this.controllerState!==t;if(this._state=t.getState(),this._setInteractionState(n),i){const t=this.controllerState?this.controllerState.getViewportProps():null;this.onViewStateChange&&this.onViewStateChange({viewState:r,interactionState:this._interactionState,oldViewState:t})}}_onTransition(t){this.onViewStateChange&&(t.interactionState=this._interactionState,this.onViewStateChange(t))}_setInteractionState(t){Object.assign(this._interactionState,t),this.onStateChange&&this.onStateChange(this._interactionState)}_onPanStart(t){const e=this.getCenter(t);if(!this.isPointInBounds(e,t))return!1;let n=this.isFunctionKeyPressed(t)||t.rightButton;(this.invertPan||"pan"===this.dragMode)&&(n=!n);const r=this.controllerState[n?"panStart":"rotateStart"]({pos:e});return this._panMove=n,this.updateViewport(r,H,{isDragging:!0}),!0}_onPan(t){return!!this.isDragging()&&(this._panMove?this._onPanMove(t):this._onPanRotate(t))}_onPanEnd(t){return!!this.isDragging()&&(this._panMove?this._onPanMoveEnd(t):this._onPanRotateEnd(t))}_onPanMove(t){if(!this.dragPan)return!1;const e=this.getCenter(t),n=this.controllerState.pan({pos:e});return this.updateViewport(n,H,{isDragging:!0,isPanning:!0}),!0}_onPanMoveEnd(t){const{inertia:e}=this;if(this.dragPan&&e&&t.velocity){const n=this.getCenter(t),r=[n[0]+t.velocityX*e/2,n[1]+t.velocityY*e/2],i=this.controllerState.pan({pos:r}).panEnd();this.updateViewport(i,{...this._getTransitionProps(),transitionDuration:e,transitionEasing:W},{isDragging:!1,isPanning:!0})}else{const t=this.controllerState.panEnd();this.updateViewport(t,null,{isDragging:!1,isPanning:!1})}return!0}_onPanRotate(t){if(!this.dragRotate)return!1;const e=this.getCenter(t),n=this.controllerState.rotate({pos:e});return this.updateViewport(n,H,{isDragging:!0,isRotating:!0}),!0}_onPanRotateEnd(t){const{inertia:e}=this;if(this.dragRotate&&e&&t.velocity){const n=this.getCenter(t),r=[n[0]+t.velocityX*e/2,n[1]+t.velocityY*e/2],i=this.controllerState.rotate({pos:r}).rotateEnd();this.updateViewport(i,{...this._getTransitionProps(),transitionDuration:e,transitionEasing:W},{isDragging:!1,isRotating:!0})}else{const t=this.controllerState.rotateEnd();this.updateViewport(t,null,{isDragging:!1,isRotating:!1})}return!0}_onWheel(t){if(!this.scrollZoom)return!1;t.preventDefault();const e=this.getCenter(t);if(!this.isPointInBounds(e,t))return!1;
27const{speed:n=.01,smooth:r=!1}=this.scrollZoom,{delta:i}=t;let o=2/(1+Math.exp(-Math.abs(i*n)));i<0&&0!==o&&(o=1/o);const s=this.controllerState.zoom({pos:e,scale:o});return this.updateViewport(s,{...this._getTransitionProps({around:e}),transitionDuration:r?250:1},{isZooming:!0,isPanning:!0}),!0}_onTriplePanStart(t){const e=this.getCenter(t);if(!this.isPointInBounds(e,t))return!1;const n=this.controllerState.rotateStart({pos:e});return this.updateViewport(n,H,{isDragging:!0}),!0}_onTriplePan(t){if(!this.touchRotate)return!1;if(!this.isDragging())return!1;const e=this.getCenter(t);e[0]-=t.deltaX;const n=this.controllerState.rotate({pos:e});return this.updateViewport(n,H,{isDragging:!0,isRotating:!0}),!0}_onTriplePanEnd(t){if(!this.isDragging())return!1;const{inertia:e}=this;if(this.touchRotate&&e&&t.velocityY){const n=this.getCenter(t),r=[n[0],n[1]+=t.velocityY*e/2],i=this.controllerState.rotate({pos:r});this.updateViewport(i,{...this._getTransitionProps(),transitionDuration:e,transitionEasing:W},{isDragging:!1,isRotating:!0}),this.blockEvents(e)}else{const t=this.controllerState.rotateEnd();this.updateViewport(t,null,{isDragging:!1,isRotating:!1})}return!0}_onPinchStart(t){const e=this.getCenter(t);if(!this.isPointInBounds(e,t))return!1;const n=this.controllerState.zoomStart({pos:e}).rotateStart({pos:e});return this._startPinchRotation=t.rotation,this._lastPinchEvent=t,this.updateViewport(n,H,{isDragging:!0}),!0}_onPinch(t){if(!this.touchZoom&&!this.touchRotate)return!1;if(!this.isDragging())return!1;let e=this.controllerState;if(this.touchZoom){const{scale:n}=t,r=this.getCenter(t);e=e.zoom({pos:r,scale:n})}if(this.touchRotate){const{rotation:n}=t;e=e.rotate({deltaAngleX:this._startPinchRotation-n})}return this.updateViewport(e,H,{isDragging:!0,isPanning:this.touchZoom,isZooming:this.touchZoom,isRotating:this.touchRotate}),this._lastPinchEvent=t,!0}_onPinchEnd(t){if(!this.isDragging())return!1;const{inertia:e,_lastPinchEvent:n}=this;if(this.touchZoom&&e&&n&&t.scale!==n.scale){const r=this.getCenter(t);let i=this.controllerState.rotateEnd();const o=Math.log2(t.scale),s=(o-Math.log2(n.scale))/(t.deltaTime-n.deltaTime),a=Math.pow(2,o+s*e/2);i=i.zoom({pos:r,scale:a}).zoomEnd(),this.updateViewport(i,{...this._getTransitionProps({around:r}),transitionDuration:e,transitionEasing:W},{isDragging:!1,isPanning:this.touchZoom,isZooming:this.touchZoom,isRotating:!1}),this.blockEvents(e)}else{const t=this.controllerState.zoomEnd().rotateEnd();this.updateViewport(t,null,{isDragging:!1,isPanning:!1,isZooming:!1,isRotating:!1})}return this._startPinchRotation=null,this._lastPinchEvent=null,!0}_onDoubleTap(t){if(!this.doubleClickZoom)return!1;const e=this.getCenter(t);if(!this.isPointInBounds(e,t))return!1;const n=this.isFunctionKeyPressed(t),r=this.controllerState.zoom({pos:e,scale:n?.5:2});return this.updateViewport(r,this._getTransitionProps({around:e}),{isZooming:!0,isPanning:!0}),this.blockEvents(100),!0}_onKeyDown(t){if(!this.keyboard)return!1;const e=this.isFunctionKeyPressed(t),{zoomSpeed:n,moveSpeed:r,rotateSpeedX:i,rotateSpeedY:o}=this.keyboard,{controllerState:s}=this;let a;const c={};switch(t.srcEvent.code){case"Minus":a=e?s.zoomOut(n).zoomOut(n):s.zoomOut(n),c.isZooming=!0;break;case"Equal":a=e?s.zoomIn(n).zoomIn(n):s.zoomIn(n),c.isZooming=!0;break;case"ArrowLeft":e?(a=s.rotateLeft(i),c.isRotating=!0):(a=s.moveLeft(r),c.isPanning=!0);break;case"ArrowRight":e?(a=s.rotateRight(i),c.isRotating=!0):(a=s.moveRight(r),c.isPanning=!0);break;case"ArrowUp":e?(a=s.rotateUp(o),c.isRotating=!0):(a=s.moveUp(r),c.isPanning=!0);break;case"ArrowDown":e?(a=s.rotateDown(o),c.isRotating=!0):(a=s.moveDown(r),c.isPanning=!0);break;default:return!1}return this.updateViewport(a,this._getTransitionProps(),c),!0}_getTransitionProps(t){const{_transition:e}=this;return e?t?{...e,transitionInterpolator:new G({...t,transitionProps:this.linearTransitionProps,makeViewport:this.controllerState.makeViewport})}:e:H}}{constructor(t){t.dragMode=t.dragMode||"pan",super(ct,t)}setProps(t){const e=this.controllerStateProps;super.setProps(t);(!e||e.height!==t.height)&&this.updateViewport(new this.ControllerState({makeViewport:this.makeViewport,...this.controllerStateProps,...this._state}))}get linearTransitionProps(){return["longitude","latitude","zoom","bearing","pitch"]}}class ut extends L{constructor(t){super({...t,type:O.a})}get controller(){return this._getControllerProps({type:lt})}}ut.displayName="MapView";var ht=n(527);
27const ft=[255,255,255],dt=1;let pt=0;class gt{constructor(t={}){const{color:e=ft}=t,{intensity:n=dt}=t;this.id=t.id||"ambient-".concat(pt++),this.color=e,this.intensity=n,this.type="ambient"}}const mt=[255,255,255],yt=1,_t=[0,0,-1];let vt=0;class bt{constructor(t={}){const{color:e=mt}=t,{intensity:n=yt}=t,{direction:r=_t}=t,{_shadow:i=!1}=t;this.id=t.id||"directional-".concat(vt++),this.color=e,this.intensity=n,this.type="directional",this.direction=new U.b(r).normalize().toArray(),this.shadow=i}getProjectedLight(){return this}}class xt{constructor(t={}){const{id:e="effect"}=t;this.id=e,this.props={...t}}preRender(){}getModuleParameters(){}cleanup(){}}var wt=n(16),Et=n(980);class St extends class{constructor(t,e={}){const{id:n="pass"}=e;this.id=n,this.gl=t,this.props={...e}}setProps(t){Object.assign(this.props,t)}render(){}cleanup(){}}{render(t){const e=this.gl;return Object(wt.m)(e,{framebuffer:t.target}),this._drawLayers(t)}_drawLayers(t){const{viewports:e,views:n,onViewportActive:r,clearCanvas:i=!0}=t;t.pass=t.pass||"unknown";const o=this.gl;i&&function(t){const e=t.drawingBufferWidth,n=t.drawingBufferHeight;Object(wt.m)(t,{viewport:[0,0,e,n]}),t.clear(16640)}(o);const s=[];for(const i of e){const e=i.viewport||i,a=n&&n[e.id];r(e);const c=this._getDrawLayerParams(e,t);t.view=a;const l=e.subViewports||[e];for(const e of l){t.viewport=e;const n=this._drawLayersInViewport(o,t,c);s.push(n)}}return s}_getDrawLayerParams(t,{layers:e,pass:n,layerFilter:r,effects:i,moduleParameters:o}){const s=[],a=function t(e=0,n={}){const r={},i=(o,s)=>{const a=o.props._offset,c=o.id,l=o.parent&&o.parent.id;let u;if(l&&!(l in n)&&i(o.parent,!1),l in r){const e=r[l]=r[l]||t(n[l],n);u=e(o,s),r[c]=e}else Number.isFinite(a)?(u=a+(n[l]||0),r[c]=null):u=e;return s&&u>=e&&(e=u+1),n[c]=u,u};return i}(),c={viewport:t,isPicking:n.startsWith("picking"),renderPass:n},l={};for(let u=0;u<e.length;u++){const h=e[u],f=this._shouldDrawLayer(h,c,r,l),d={shouldDrawLayer:f,layerRenderIndex:a(h,f)};f&&(d.moduleParameters=this._getModuleParameters(h,i,n,o),d.layerParameters=this.getLayerParameters(h,u,t)),s[u]=d}return s}_drawLayersInViewport(t,{layers:e,pass:n,viewport:r,view:i},o){const s=function(t,{viewport:e}){const n=t.canvas?t.canvas.clientHeight||t.canvas.height:100,r=e,i=Object(wt.e)(t);return[r.x*i,(n-r.y-r.height)*i,r.width*i,r.height*i]}(t,{viewport:r});if(i&&i.props.clear){const e=!0===i.props.clear?{color:!0,depth:!0}:i.props.clear;Object(wt.n)(t,{scissorTest:!0,scissor:s},()=>Object(Et.a)(t,e))}const a={totalCount:e.length,visibleCount:0,compositeCount:0,pickableCount:0};Object(wt.m)(t,{viewport:s});for(let t=0;t<e.length;t++){const i=e[t],{shouldDrawLayer:s,layerRenderIndex:c,moduleParameters:l,layerParameters:u}=o[t];if(s&&i.props.pickable&&a.pickableCount++,i.isComposite)a.compositeCount++;else if(s){a.visibleCount++,l.viewport=r;try{i.drawLayer({moduleParameters:l,uniforms:{layerIndex:c},parameters:u})}catch(t){i.raiseError(t,"drawing ".concat(i," to ").concat(n))}}}return a}shouldDrawLayer(t){return!0}getModuleParameters(t,e){return null}getLayerParameters(t,e){return t.props.parameters}_shouldDrawLayer(t,e,n,r){if(!(this.shouldDrawLayer(t)&&t.props.visible))return!1;e.layer=t;let i=t.parent;for(;i;){if(!i.props.visible||!i.filterSubLayer(e))return!1;e.layer=i,i=i.parent}if(n){const t=e.layer.id;if(t in r||(r[t]=n(e)),!r[t])return!1}return t.activateViewport(e.viewport),!0}_getModuleParameters(t,e,n,r){const i=Object.assign(Object.create(t.props),{autoWrapLongitude:t.wrapLongitude,viewport:t.context.viewport,mousePosition:t.context.mousePosition,pickingActive:0,devicePixelRatio:Object(wt.e)(this.gl)});if(e)for(const n of e)Object.assign(i,n.getModuleParameters(t));return Object.assign(i,this.getModuleParameters(t,e),r)}}var Ct=n(464),At=n(321);class It extends St{constructor(t,e){super(t,e),this.shadowMap=new ht.a(t,{width:1,height:1,parameters:{10241:9729,10240:9729,10242:33071,10243:33071}}),this.depthBuffer=new Ct.a(t,{format:33189,width:1,height:1}),this.fbo=new At.a(t,{id:"shadowmap",width:1,height:1,attachments:{36064:this.shadowMap,36096:this.depthBuffer}})}render(t){const e=this.fbo;Object(wt.n)(this.gl,{depthRange:[0,1],depthTest:!0,blend:!1,clearColor:[1,1,1,1]},()=>{const n=t.viewports[0],r=Object(wt.e)(this.gl),i=n.width*r,o=n.height*r;i===e.width&&o===e.height||e.resize({width:i,height:o}),super.render({...t,target:e,pass:"shadow"})})}shouldDrawLayer(t){return!1!==t.props.shadowEnabled}getModuleParameters(){return{drawToShadowMap:!0}}delete(){this.fbo&&(this.fbo.delete(),this.fbo=null),this.shadowMap&&(this.shadowMap.delete(),this.shadowMap=null),this.depthBuffer&&(this.depthBuffer.delete(),this.depthBuffer=null)}}var Tt=n(39),Mt=n(461);const Ft=Object(Mt.a)((function({viewport:t,center:e}){return new U.a(t.viewProjectionMatrix).invert().transform(e)}
27)),Bt=Object(Mt.a)((function({viewport:t,shadowMatrices:e}){const n=[],r=t.pixelUnprojectionMatrix,i=t.isGeospatial?void 0:1,o=[[0,0,i],[t.width,0,i],[0,t.height,i],[t.width,t.height,i],[0,0,-1],[t.width,0,-1],[0,t.height,-1],[t.width,t.height,-1]].map(t=>function(t,e){const[n,r,i]=t,o=Object(tt.q)([n,r,i],e);if(Number.isFinite(i))return o;return[o[0],o[1],0]}(t,r));for(const r of e){const e=r.clone().translate(new U.b(t.center).negate()),i=o.map(t=>e.transform(t)),s=(new U.a).ortho({left:Math.min(...i.map(t=>t[0])),right:Math.max(...i.map(t=>t[0])),bottom:Math.min(...i.map(t=>t[1])),top:Math.max(...i.map(t=>t[1])),near:Math.min(...i.map(t=>-t[2])),far:Math.max(...i.map(t=>-t[2]))});n.push(s.multiplyRight(r))}return n})),Lt=[0,0,0,1],Ot=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0];var Ut={name:"shadow",dependencies:[b.a],vs:"\nconst int max_lights = 2;\nuniform mat4 shadow_uViewProjectionMatrices[max_lights];\nuniform vec4 shadow_uProjectCenters[max_lights];\nuniform bool shadow_uDrawShadowMap;\nuniform bool shadow_uUseShadowMap;\nuniform int shadow_uLightId;\nuniform float shadow_uLightCount;\n\nvarying vec3 shadow_vPosition[max_lights];\n\nvec4 shadow_setVertexPosition(vec4 position_commonspace) {\n if (shadow_uDrawShadowMap) {\n return project_common_position_to_clipspace(position_commonspace, shadow_uViewProjectionMatrices[shadow_uLightId], shadow_uProjectCenters[shadow_uLightId]);\n }\n if (shadow_uUseShadowMap) {\n for (int i = 0; i < max_lights; i++) {\n if(i < int(shadow_uLightCount)) {\n vec4 shadowMap_position = project_common_position_to_clipspace(position_commonspace, shadow_uViewProjectionMatrices[i], shadow_uProjectCenters[i]);\n shadow_vPosition[i] = (shadowMap_position.xyz / shadowMap_position.w + 1.0) / 2.0;\n }\n }\n }\n return gl_Position;\n}\n",fs:"\nconst int max_lights = 2;\nuniform bool shadow_uDrawShadowMap;\nuniform bool shadow_uUseShadowMap;\nuniform sampler2D shadow_uShadowMap0;\nuniform sampler2D shadow_uShadowMap1;\nuniform vec4 shadow_uColor;\nuniform float shadow_uLightCount;\n\nvarying vec3 shadow_vPosition[max_lights];\n\nconst vec4 bitPackShift = vec4(1.0, 255.0, 65025.0, 16581375.0);\nconst vec4 bitUnpackShift = 1.0 / bitPackShift;\nconst vec4 bitMask = vec4(1.0 / 255.0, 1.0 / 255.0, 1.0 / 255.0, 0.0);\n\nfloat shadow_getShadowWeight(vec3 position, sampler2D shadowMap) {\n vec4 rgbaDepth = texture2D(shadowMap, position.xy);\n\n float z = dot(rgbaDepth, bitUnpackShift);\n return smoothstep(0.001, 0.01, position.z - z);\n}\n\nvec4 shadow_filterShadowColor(vec4 color) {\n if (shadow_uDrawShadowMap) {\n vec4 rgbaDepth = fract(gl_FragCoord.z * bitPackShift);\n rgbaDepth -= rgbaDepth.gbaa * bitMask;\n return rgbaDepth;\n }\n if (shadow_uUseShadowMap) {\n float shadowAlpha = 0.0;\n shadowAlpha += shadow_getShadowWeight(shadow_vPosition[0], shadow_uShadowMap0);\n if(shadow_uLightCount > 1.0) {\n shadowAlpha += shadow_getShadowWeight(shadow_vPosition[1], shadow_uShadowMap1);\n }\n shadowAlpha *= shadow_uColor.a / shadow_uLightCount;\n float blendedAlpha = shadowAlpha + color.a * (1.0 - shadowAlpha);\n\n return vec4(\n mix(color.rgb, shadow_uColor.rgb, shadowAlpha / blendedAlpha),\n blendedAlpha\n );\n }\n return color;\n}\n",inject:{"vs:DECKGL_FILTER_GL_POSITION":"\n position = shadow_setVertexPosition(geometry.position);\n ","fs:DECKGL_FILTER_COLOR":"\n color = shadow_filterShadowColor(color);\n "},getUniforms:(t={},e={})=>{if(t.drawToShadowMap||t.shadowMaps&&t.shadowMaps.length>0){const{shadowEnabled:n=!0}=t;return n&&t.shadowMatrices&&t.shadowMatrices.length>0?function(t={},e={}){const n={shadow_uDrawShadowMap:Boolean(t.drawToShadowMap),shadow_uUseShadowMap:!!t.shadowMaps&&t.shadowMaps.length>0,shadow_uColor:t.shadowColor||Lt,shadow_uLightId:t.shadowLightId||0,shadow_uLightCount:t.shadowMatrices.length},r=Ft({viewport:t.viewport,center:e.project_uCenter}),i=[],o=Bt({shadowMatrices:t.shadowMatrices,viewport:t.viewport}).slice();for(let n=0;n<t.shadowMatrices.length;n++){const s=o[n],a=s.clone().translate(new U.b(t.viewport.center).negate());e.project_uCoordinateSystem===Tt.a.LNGLAT&&e.project_uProjectionMode===Tt.c.WEB_MERCATOR?(o[n]=a,i[n]=r):(o[n]=s.clone().multiplyRight(Ot),i[n]=a.transform(r))}for(let e=0;e<o.length;e++)n["shadow_uViewProjectionMatrices[".concat(e,"]")]=o[e],n["shadow_uProjectCenters[".concat(e,"]")]=i[e],t.shadowMaps&&t.shadowMaps.length>
270?n["shadow_uShadowMap".concat(e)]=t.shadowMaps[e]:n["shadow_uShadowMap".concat(e)]=t.dummyShadowMap;return n}(t,e):{shadow_uDrawShadowMap:!1,shadow_uUseShadowMap:!1}}return{}}};const kt={color:[255,255,255],intensity:1},Pt=[{color:[255,255,255],intensity:1,direction:[-1,3,-1]},{color:[255,255,255],intensity:.9,direction:[1,-8,-2.5]}],Dt=[0,0,0,200/255];class Rt extends xt{constructor(t){super(t),this.ambientLight=null,this.directionalLights=[],this.pointLights=[],this.shadowColor=Dt,this.shadowPasses=[],this.shadowMaps=[],this.dummyShadowMap=null,this.shadow=!1,this.programManager=null;for(const e in t){const n=t[e];switch(n.type){case"ambient":this.ambientLight=n;break;case"directional":this.directionalLights.push(n);break;case"point":this.pointLights.push(n)}}this._applyDefaultLights(),this.shadow=this.directionalLights.some(t=>t.shadow)}preRender(t,{layers:e,layerFilter:n,viewports:r,onViewportActive:i,views:o}){if(this.shadow){this.shadowMatrices=this._createLightMatrix(),0===this.shadowPasses.length&&this._createShadowPasses(t),this.programManager||(this.programManager=v.a.getDefaultProgramManager(t),Ut&&this.programManager.addDefaultModule(Ut)),this.dummyShadowMap||(this.dummyShadowMap=new ht.a(t,{width:1,height:1}));for(let t=0;t<this.shadowPasses.length;t++){this.shadowPasses[t].render({layers:e,layerFilter:n,viewports:r,onViewportActive:i,views:o,moduleParameters:{shadowLightId:t,dummyShadowMap:this.dummyShadowMap,shadowMatrices:this.shadowMatrices}})}}}getModuleParameters(t){const e=this.shadow?{shadowMaps:this.shadowMaps,dummyShadowMap:this.dummyShadowMap,shadowColor:this.shadowColor,shadowMatrices:this.shadowMatrices}:{};return e.lightSources={ambientLight:this.ambientLight,directionalLights:this.directionalLights.map(e=>e.getProjectedLight({layer:t})),pointLights:this.pointLights.map(e=>e.getProjectedLight({layer:t}))},e}cleanup(){for(const t of this.shadowPasses)t.delete();this.shadowPasses.length=0,this.shadowMaps.length=0,this.dummyShadowMap&&(this.dummyShadowMap.delete(),this.dummyShadowMap=null),this.shadow&&this.programManager&&(this.programManager.removeDefaultModule(Ut),this.programManager=null)}_createLightMatrix(){const t=[];for(const e of this.directionalLights){const n=(new U.a).lookAt({eye:new U.b(e.direction).negate()});t.push(n)}return t}_createShadowPasses(t){for(let e=0;e<this.directionalLights.length;e++){const n=new It(t);this.shadowPasses[e]=n,this.shadowMaps[e]=n.shadowMap}}_applyDefaultLights(){const{ambientLight:t,pointLights:e,directionalLights:n}=this;t||0!==e.length||0!==n.length||(this.ambientLight=new gt(kt),this.directionalLights.push(new bt(Pt[0]),new bt(Pt[1])))}}const jt=new Rt;class zt{constructor(){this.effects=[],this._internalEffects=[],this._needsRedraw="Initial render",this.setEffects()}setProps(t){"effects"in t&&(t.effects.length===this.effects.length&&A(t.effects,this.effects)||(this.setEffects(t.effects),this._needsRedraw="effects changed"))}needsRedraw(t={clearRedrawFlags:!1}){const e=this._needsRedraw;return t.clearRedrawFlags&&(this._needsRedraw=!1),e}getEffects(){return this._internalEffects}finalize(){this.cleanup()}setEffects(t=[]){this.cleanup(),this.effects=t,this._createInternalEffects()}cleanup(){for(const t of this.effects)t.cleanup();for(const t of this._internalEffects)t.cleanup();this.effects.length=0,this._internalEffects.length=0}_createInternalEffects(){this._internalEffects=this.effects.slice(),this.effects.some(t=>t instanceof Rt)||this._internalEffects.push(jt)}}class Qt extends St{}const Nt={blendFunc:[1,0,32771,0],blendEquation:32774};class Vt extends St{render(t){return t.pickingFBO?this._drawPickingBuffer(t):super.render(t)}_drawPickingBuffer({layers:t,layerFilter:e,views:n,viewports:r,onViewportActive:i,pickingFBO:o,deviceRect:{x:s,y:a,width:c,height:l},pass:u="picking",redrawReason:h,pickZ:f}){const d=this.gl;this.pickZ=f;const p=!f&&{byLayer:new Map,byAlpha:[]};this._colors=p;const g=Object(wt.n)(d,{scissorTest:!0,scissor:[s,a,c,l],clearColor:[0,0,0,0],depthMask:!0,depthTest:!0,depthRange:[0,1],colorMask:[!0,!0,!0,!0],...Nt,blend:!f},()=>super.render({target:o,layers:t,layerFilter:e,views:n,viewports:r,onViewportActive:i,pass:u,redrawReason:h}));this._colors=null;return{decodePickingColor:p&&Gt.bind(null,p),stats:g}}shouldDrawLayer(t){return t.props.pickable}getModuleParameters(){return{pickingActive:1,pickingAttribute:this.pickZ,lightSources:{}}}getLayerParameters(t,e,n){const r={...t.props.parameters};return this.pickZ?r.blend=!1:(Object.assign(r,Nt),r.blend=!0,r.blendColor=function(t,e,n){const{byLayer:r,byAlpha:i}=t;let o;if(r.has(e)){const t=r.get(e);t.viewports.push(n),o=t.a}else if(o=r.size+1,o<=255){const t={a:o,layer:e,viewports:[n]};r.set(e,t),i[o]=t}else h.a.warn("Too many pickable layers, only picking the first 255")(),o=0;return[0,0,0,o/255]}(this._colors,t,n)),r}}function Gt(t,e){const n=t.byAlpha[e[3]];return n&&{pickedLayer:n.layer,pickedViewports:n.viewports,pickedObjectIndex:n.layer.decodePickingColor(e)}}class Ht{constructor(t){this.gl=t,this.layerFilter=null,this.drawPickingColors=!1,this.drawLayersPass=new Qt(t),this.pickLayersPass=new Vt(t),this.renderCount=0,this._needsRedraw="Initial render",this.renderBuffers=[],this.lastPostProcessEffect=null}setProps(t){"layerFilter"in t&&this.layerFilter!==t.layerFilter&&(this.layerFilter=t.layerFilter,this._needsRedraw="layerFilter changed"),"drawPickingColors"in t&&this.drawPickingColors!==t.drawPickingColors&&(this.drawPickingColors=t.drawPickingColors,this._needsRedraw="drawPickingColors changed")}renderLayers(t){const e=this.drawPickingColors?this.pickLayersPass:this.drawLayersPass;t.layerFilter=t.layerFilter||this.layerFilter,t.effects=t.effects||[],t.target=t.target||At.a.getDefaultFramebuffer(this.gl),this._preRender(t.effects,t);const n=this.lastPostProcessEffect?this.renderBuffers[0]:t.target,r=e.render({...t,target:n});this._postRender(t.effects,t),this.renderCount++,Object(f.a)("deckRenderer.renderLayers",this,r,t)}needsRedraw(t={clearRedrawFlags:!1}){const e=this._needsRedraw;return t.clearRedrawFlags&&(this._needsRedraw=!1),e}finalize(){const{renderBuffers:t}=this;for(const e of t)e.delete();t.length=0}_preRender(t,e){let n=null;for(const r of t)r.preRender(this.gl,e),r.postRender&&(n=r);n&&this._resizeRenderBuffers(),this.lastPostProcessEffect=n}_resizeRenderBuffers(){const{renderBuffers:t}=this;0===t.length&&t.push(new At.a(this.gl),new At.a(this.gl));for(const e of t)e.resize()}_postRender(t,e){const{renderBuffers:n}=this,r={inputBuffer:n[0],swapBuffer:n[1],target:null};for(const i of t)if(i.postRender){if(i===this.lastPostProcessEffect){r.target=e.target,i.postRender(this.gl,r);break}const t=i.postRender(this.gl,r);r.inputBuffer=t,r.swapBuffer=t===n[0]?n[1]:n[0]}}}var Zt=n(982);const Wt={pickedColor:null,pickedLayer:null,pickedObjectIndex:-1};function Xt({pickedColors:t,decodePickingColor:e,deviceX:n,deviceY:r,deviceRadius:i,deviceRect:o}){if(t){const{x:s,y:a,width:c,height:l}=o;let u=i*i,f=-1,d=0;for(let e=0;e<l;e++){const i=e+a-r,o=i*i;if(o>u)d+=4*c;else for(let e=0;e<c;e++){if(t[d+3]-1>
27=0){const t=e+s-n,r=t*t+o;r<=u&&(u=r,f=d)}d+=4}}if(f>=0){const n=t.slice(f,f+4),r=e(n);if(r){const t=Math.floor(f/4/c),e=f/4-t*c;return{...r,pickedColor:n,pickedX:s+e,pickedY:a+t}}h.a.error("Picked non-existent layer. Is picking buffer corrupt?")()}}return Wt}function Yt({pickInfo:t,viewports:e,pixelRatio:n,x:r,y:i,z:o}){let s=e[0];e.length>1&&(s=function(t,e){for(let n=t.length-1;n>=0;n--){const r=t[n];if(r.containsPixel(e))return r}return t[0]}((null==t?void 0:t.pickedViewports)||e,{x:r,y:i}));const a=s&&s.unproject([r-s.x,i-s.y],{targetZ:o});return{color:null,layer:null,viewport:s,index:-1,picked:!1,x:r,y:i,pixel:[r,i],coordinate:a,devicePixel:t&&"pickedX"in t?[t.pickedX,t.pickedY]:null,pixelRatio:n}}function qt(t){const{pickInfo:e,lastPickedInfo:n,mode:r,layers:i}=t,{pickedColor:o,pickedLayer:s,pickedObjectIndex:a}=e,c=s?[s]:[];if("hover"===r){const t=n.index,e=n.layerId,r=s&&s.props.id;if(r!==e||a!==t){if(r!==e){const t=i.find(t=>t.props.id===e);t&&c.unshift(t)}n.layerId=r,n.index=a,n.info=null}}const l=Yt(t),u=new Map;return u.set(null,l),c.forEach(t=>{let e={...l};t===s&&(e.color=o,e.index=a,e.picked=!0),e=Kt({layer:t,info:e,mode:r}),t===s&&"hover"===r&&(n.info=e),u.set(e.layer.id,e),"hover"===r&&e.layer.updateAutoHighlight(e)}),u}function Kt({layer:t,info:e,mode:n}){for(;t&&e;){const r=e.layer||null;e.sourceLayer=r,e.layer=t,e=t.getPickingInfo({info:e,mode:n,sourceLayer:r}),t=t.parent}return e}class Jt{constructor(t){this.gl=t,this.pickingFBO=null,this.pickLayersPass=new Vt(t),this.layerFilter=null,this.lastPickedInfo={index:-1,layerId:null,info:null}}setProps(t){"layerFilter"in t&&(this.layerFilter=t.layerFilter),"_pickable"in t&&(this._pickable=t._pickable)}finalize(){this.pickingFBO&&this.pickingFBO.delete(),this.depthFBO&&(this.depthFBO.color.delete(),this.depthFBO.delete())}
27pickObject(t){return this._pickClosestObject(t)}pickObjects(t){return this._pickVisibleObjects(t)}getLastPickedObject({x:t,y:e,layers:n,viewports:r},i=this.lastPickedInfo.info){const o=i&&i.layer&&i.layer.id,s=i&&i.viewport&&i.viewport.id,a=o?n.find(t=>t.id===o):null,c=s&&r.find(t=>t.id===s)||r[0],l=c&&c.unproject([t-c.x,e-c.y]),u={x:t,y:e,viewport:c,coordinate:l,layer:a};return{...i,...u}}_resizeBuffer(){const{gl:t}=this;return this.pickingFBO||(this.pickingFBO=new At.a(t),At.a.isSupported(t,{colorBufferFloat:!0})&&(this.depthFBO=new At.a(t),this.depthFBO.attach({36064:new ht.a(t,{format:Object(wt.i)(t)?34836:6408,type:5126})}))),this.pickingFBO.resize({width:t.canvas.width,height:t.canvas.height}),this.depthFBO&&this.depthFBO.resize({width:t.canvas.width,height:t.canvas.height}),this.pickingFBO}_getPickable(t){if(!1===this._pickable)return null;const e=t.filter(t=>t.isPickable()&&!t.isComposite);return e.length?e:null}_pickClosestObject({layers:t,views:e,viewports:n,x:r,y:i,radius:o=0,depth:s=1,mode:a="query",unproject3D:c,onViewportActive:l}){if(!(t=this._getPickable(t)))return{result:[],emptyInfo:Yt({viewports:n,x:r,y:i})};this._resizeBuffer();const u=Object(wt.e)(this.gl),h=Object(wt.d)(this.gl,[r,i],!0),f=[h.x+Math.floor(h.width/2),h.y+Math.floor(h.height/2)],d=Math.round(o*u),{width:p,height:g}=this.pickingFBO,m=this._getPickingRect({deviceX:f[0],deviceY:f[1],deviceRadius:d,deviceWidth:p,deviceHeight:g});let y;const _=[],v=new Set;for(let o=0;o<s;o++){const h=Xt({...m&&this._drawAndSample({layers:t,views:e,viewports:n,onViewportActive:l,deviceRect:m,pass:"picking:".concat(a),redrawReason:a}),deviceX:f[0],deviceY:f[1],deviceRadius:d,deviceRect:m});let p;if(h.pickedLayer&&c&&this.depthFBO){p=this._drawAndSample({layers:[h.pickedLayer],views:e,viewports:n,onViewportActive:l,deviceRect:{x:h.pickedX,y:h.pickedY,width:1,height:1},pass:"picking:".concat(a),redrawReason:"pick-z",pickZ:!0}).pickedColors[0]*n[0].distanceScales.metersPerUnit[2]+n[0].position[2]}h.pickedLayer&&o+1<s&&(v.add(h.pickedLayer),h.pickedLayer.disablePickingIndex(h.pickedObjectIndex)),y=qt({pickInfo:h,lastPickedInfo:this.lastPickedInfo,mode:a,layers:t,viewports:n,x:r,y:i,z:p,pixelRatio:u});for(const t of y.values())t.layer&&_.push(t);if(!h.pickedColor)break}for(const t of v)t.restorePickingColors();return{result:_,emptyInfo:y&&y.get(null)}}_pickVisibleObjects({layers:t,views:e,viewports:n,x:r,y:i,width:o=1,height:s=1,mode:a="query",maxObjects:c=null,onViewportActive:l}){if(!(t=this._getPickable(t)))return[];this._resizeBuffer();const u=Object(wt.e)(this.gl),f=Object(wt.d)(this.gl,[r,i],!0),d=f.x,p=f.y+f.height,g=Object(wt.d)(this.gl,[r+o,i+s],!0),m=g.x+g.width,y=g.y,_={x:d,y:y,width:m-d,height:p-y},v=function({pickedColors:t,decodePickingColor:e}){const n=new Map;if(t)for(let r=0;r<t.length;r+=4){if(t[r+3]-1>=0){const i=t.slice(r,r+4),o=i.join(",");if(!n.has(o)){const t=e(i);t?n.set(o,{...t,pickedColor:i}):h.a.error("Picked non-existent layer. Is picking buffer corrupt?")()}}}return Array.from(n.values())}(this._drawAndSample({layers:t,views:e,viewports:n,onViewportActive:l,deviceRect:_,pass:"picking:".concat(a),redrawReason:a})),b=new Map,x=Number.isFinite(c);for(let t=0;t<v.length&&!(x&&b.size>=c);t++){const e=v[t];let n={color:e.pickedColor,layer:null,index:e.pickedObjectIndex,picked:!0,x:r,y:i,width:o,height:s,pixelRatio:u};n=Kt({layer:e.pickedLayer,info:n,mode:a}),b.has(n.object)||b.set(n.object,n)}return Array.from(b.values())}_drawAndSample({layers:t,views:e,viewports:n,onViewportActive:r,deviceRect:i,pass:o,redrawReason:s,pickZ:a}){const c=a?this.depthFBO:this.pickingFBO,{decodePickingColor:l}=this.pickLayersPass.render({layers:t,layerFilter:this.layerFilter,views:e,viewports:n,onViewportActive:r,pickingFBO:c,deviceRect:i,pass:o,redrawReason:s,pickZ:a}),{x:u,y:h,width:f,height:d}=i,p=new(a?Float32Array:Uint8Array)(f*d*4);return Object(Zt.c)(c,{sourceX:u,sourceY:h,sourceWidth:f,sourceHeight:d,target:p}),{pickedColors:p,decodePickingColor:l}}_getPickingRect({deviceX:t,deviceY:e,deviceRadius:n,deviceWidth:r,deviceHeight:i}){const o=Math.max(0,t-n),s=Math.max(0,e-n),a=Math.min(r,t+n+1)-o,c=Math.min(i,e+n+1)-s;return a<=0||c<=0?null:{x:o,y:s,width:a,height:c}}}const $t={zIndex:1,position:"absolute",pointerEvents:"none",color:"#a0a7b4",backgroundColor:"#29323c",padding:"10px",top:0,left:0,display:"none"};class te{constructor(t){const e=t.parentElement;e&&(this.el=document.createElement("div"),this.el.className="deck-tooltip",Object.assign(this.el.style,$t),e.appendChild(this.el)),this.isVisible=!1}setTooltip(t,e,n){const r=this.el;if("string"==typeof t)r.innerText=t;else{if(!t)return this.isVisible=!1,void(r.style.display="none");"text"in t&&(r.innerText=t.text),"html"in t&&(r.innerHTML=t.html),"className"in t&&(r.className=t.className),Object.assign(r.style,t.style)}
27this.isVisible=!0,r.style.display="block",r.style.transform="translate(".concat(e,"px, ").concat(n,"px)")}remove(){this.el&&this.el.remove()}}var ee=n(308),ne=n(1196),re=n(2326),ie=n(412);var oe={name:"JSON",extensions:["json","geojson"],mimeTypes:["application/json","application/geo+json"],testText:function(t){const e=t[0],n=t[t.length-1];return"{"===e&&"}"===n||"["===e&&"]"===n},parseTextSync:JSON.parse};const se=ie.global.deck&&ie.global.deck.VERSION;if(se&&"8.6.4"!==se)throw new Error("deck.gl - multiple versions detected: ".concat(se," vs ").concat("8.6.4"));se||(h.a.log(1,"deck.gl ".concat("8.6.4"))(),ie.global.deck=Object.assign(ie.global.deck||{},{VERSION:"8.6.4",version:"8.6.4",log:h.a,_registerLoggers:f.b}),Object(ne.b)([oe,[re.a,{imagebitmap:{premultiplyAlpha:"none"}}]]));var ae=ie.global.deck,ce=n(595),le=n(20),ue=n(159),he=n(1894),fe=n(979);class de extends ue.a{get[Symbol.toStringTag](){return"Query"}static isSupported(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n=Object(wt.i)(t),r=Object(he.c)(t,fe.a.TIMER_QUERY);let i=n||r;for(const t of e)switch(t){case"queries":i=i&&n;break;case"timers":i=i&&r;break;default:Object(le.a)(!1)}return i}constructor(t){super(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),this.target=null,this._queryPending=!1,this._pollingPromise=null,Object.seal(this)}beginTimeElapsedQuery(){return this.begin(35007)}beginOcclusionQuery(){let{conservative:t=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.begin(t?36202:35887)}beginTransformFeedbackQuery(){return this.begin(35976)}begin(t){return this._queryPending||(this.target=t,this.gl2.beginQuery(this.target,this.handle)),this}end(){return this._queryPending||this.target&&(this.gl2.endQuery(this.target),this.target=null,this._queryPending=!0),this}isResultAvailable(){if(!this._queryPending)return!1;const t=this.gl2.getQueryParameter(this.handle,34919);return t&&(this._queryPending=!1),t}isTimerDisjoint(){return this.gl2.getParameter(36795)}getResult(){return this.gl2.getQueryParameter(this.handle,34918)}getTimerMilliseconds(){return this.getResult()/1e6}createPoll(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;if(this._pollingPromise)return this._pollingPromise;let e=0;return this._pollingPromise=new Promise((n,r)=>{const i=()=>{this.isResultAvailable()?(n(this.getResult()),this._pollingPromise=null):e++>t?(r("Timed out"),this._pollingPromise=null):requestAnimationFrame(i)};requestAnimationFrame(i)}),this._pollingPromise}_createHandle(){return de.isSupported(this.gl)?this.gl2.createQuery():null}_deleteHandle(){this.gl2.deleteQuery(this.handle)}}var pe=n(411);const ge=Object(pe.a)()&&"undefined"!=typeof document;let me=0;class ye{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{onCreateContext:e=(t=>Object(wt.c)(t)),onAddHTML:n=null,onInitialize:r=(()=>{}),onRender:i=(()=>{}),onFinalize:o=(()=>{}),onError:s,gl:a=null,glOptions:c={},debug:l=!1,createFramebuffer:u=!1,autoResizeViewport:h=!0,autoResizeDrawingBuffer:f=!0,stats:d=ce.a.get("animation-loop-".concat(me++))}=t;let{useDevicePixels:p=!0}=t;"useDevicePixelRatio"in t&&(wt.j.deprecated("useDevicePixelRatio","useDevicePixels")(),p=t.useDevicePixelRatio),this.props={onCreateContext:e,onAddHTML:n,onInitialize:r,onRender:i,onFinalize:o,onError:s,gl:a,glOptions:c,debug:l,createFramebuffer:u},this.gl=a,this.needsRedraw=null,this.timeline=null,this.stats=d,this.cpuTime=this.stats.get("CPU Time"),this.gpuTime=this.stats.get("GPU Time"),this.frameRate=this.stats.get("Frame Rate"),this._initialized=!1,this._running=!1,this._animationFrameId=null,this._nextFramePromise=null,this._resolveNextFrame=null,this._cpuStartTime=0,this.setProps({autoResizeViewport:h,autoResizeDrawingBuffer:f,useDevicePixels:p}),this.start=this.start.bind(this),this.stop=this.stop.bind(this),this._pageLoadPromise=null,this._onMousemove=this._onMousemove.bind(this),this._onMouseleave=this._onMouseleave.bind(this)}delete(){this.stop(),this._setDisplay(null)}setNeedsRedraw(t){return Object(le.a)("string"==typeof t),this.needsRedraw=this.needsRedraw||t,this}setProps(t){return"autoResizeViewport"in t&&(this.autoResizeViewport=t.autoResizeViewport),"autoResizeDrawingBuffer"in t&&(this.autoResizeDrawingBuffer=t.autoResizeDrawingBuffer),"useDevicePixels"in t&&(this.useDevicePixels=t.useDevicePixels),this}start(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this._running)return this;this._running=!0;const e=this._getPageLoadPromise().then(()=>!this._running||this._initialized?null:(this._createWebGLContext(t),this._createFramebuffer(),this._startEventHandling(),this._initializeCallbackData(),this._updateCallbackData(),this._resizeCanvasDrawingBuffer(),this._resizeViewport(),this._gpuTimeQuery=de.isSupported(this.gl,["timers"])?new de(this.gl):null,this._initialized=!0,this.onInitialize(this.animationProps))).then(t=>{this._running&&(this._addCallbackData(t||{}),!1!==t&&this._startLoop())});return this.props.onError&&e.catch(this.props.onError),this}redraw(){return this.isContextLost()||(this._beginTimers(),this._setupFrame(),this._updateCallbackData(),this._renderFrame(this.animationProps),this._clearNeedsRedraw(),this.offScreen&&this.gl.commit&&this.gl.commit(),this._resolveNextFrame&&(this._resolveNextFrame(this),this._nextFramePromise=null,this._resolveNextFrame=null),this._endTimers()),this}stop(){return this._running&&(this._finalizeCallbackData(),this._cancelAnimationFrame(this._animationFrameId),this._nextFramePromise=null,this._resolveNextFrame=null,this._animationFrameId=null,this._running=!1),this}attachTimeline(t){return this.timeline=t,this.timeline}detachTimeline(){this.timeline=null}waitForRender(){return this.setNeedsRedraw("waitForRender"),this._nextFramePromise||(this._nextFramePromise=new Promise(t=>{this._resolveNextFrame=t})),this._nextFramePromise}async toDataURL(){return this.setNeedsRedraw("toDataURL"),await this.waitForRender(),this.gl.canvas.toDataURL()}isContextLost(){return this.gl.isContextLost()}onCreateContext(){return this.props.onCreateContext(...arguments)}onInitialize(){return this.props.onInitialize(...arguments)}onRender(){return this.props.onRender(...arguments)}onFinalize(){return this.props.onFinalize(...arguments)}getHTMLControlValue(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const n=document.getElementById(t);return n?Number(n.value):e}
27setViewParameters(){return wt.j.removed("AnimationLoop.setViewParameters","AnimationLoop.setProps")(),this}_startLoop(){const t=()=>{this._running&&(this.redraw(),this._animationFrameId=this._requestAnimationFrame(t))};this._cancelAnimationFrame(this._animationFrameId),this._animationFrameId=this._requestAnimationFrame(t)}_getPageLoadPromise(){return this._pageLoadPromise||(this._pageLoadPromise=ge?new Promise((t,e)=>{ge&&"complete"===document.readyState?t(document):window.addEventListener("load",()=>{t(document)})}):Promise.resolve({})),this._pageLoadPromise}_setDisplay(t){this.display&&(this.display.delete(),this.display.animationLoop=null),t&&(t.animationLoop=this),this.display=t}_cancelAnimationFrame(t){return this.display&&this.display.cancelAnimationFrame?this.display.cancelAnimationFrame(t):(e=t,"undefined"!=typeof window&&window.cancelAnimationFrame?window.cancelAnimationFrame(e):clearTimeout(e));var e}_requestAnimationFrame(t){if(this._running)return this.display&&this.display.requestAnimationFrame?this.display.requestAnimationFrame(t):(e=t,"undefined"!=typeof window&&window.requestAnimationFrame?window.requestAnimationFrame(e):setTimeout(e,1e3/60));var e}_renderFrame(){this.display?this.display._renderFrame(...arguments):this.onRender(...arguments)}_clearNeedsRedraw(){this.needsRedraw=null}_setupFrame(){this._resizeCanvasDrawingBuffer(),this._resizeViewport(),this._resizeFramebuffer()}_initializeCallbackData(){this.animationProps={gl:this.gl,stop:this.stop,canvas:this.gl.canvas,framebuffer:this.framebuffer,useDevicePixels:this.useDevicePixels,needsRedraw:null,startTime:Date.now(),engineTime:0,tick:0,tock:0,time:0,_timeline:this.timeline,_loop:this,_animationLoop:this,_mousePosition:null}}_updateCallbackData(){const{width:t,height:e,aspect:n}=this._getSizeAndAspect();t===this.animationProps.width&&e===this.animationProps.height||this.setNeedsRedraw("drawing buffer resized"),n!==this.animationProps.aspect&&this.setNeedsRedraw("drawing buffer aspect changed"),this.animationProps.width=t,this.animationProps.height=e,this.animationProps.aspect=n,this.animationProps.needsRedraw=this.needsRedraw,this.animationProps.engineTime=Date.now()-this.animationProps.startTime,this.timeline&&this.timeline.update(this.animationProps.engineTime),this.animationProps.tick=Math.floor(this.animationProps.time/1e3*60),this.animationProps.tock++,this.animationProps.time=this.timeline?this.timeline.getTime():this.animationProps.engineTime,this.animationProps._offScreen=this.offScreen}_finalizeCallbackData(){this.onFinalize(this.animationProps)}_addCallbackData(t){"object"==typeof t&&null!==t&&(this.animationProps=Object.assign({},this.animationProps,t))}_createWebGLContext(t){if(this.offScreen=t.canvas&&"undefined"!=typeof OffscreenCanvas&&t.canvas instanceof OffscreenCanvas,t=Object.assign({},t,this.props.glOptions),this.gl=this.props.gl?Object(wt.g)(this.props.gl,t):this.onCreateContext(t),!Object(wt.h)(this.gl))throw new Error("AnimationLoop.onCreateContext - illegal context returned");Object(wt.k)(this.gl),this._createInfoDiv()}_createInfoDiv(){if(this.gl.canvas&&this.props.onAddHTML){const t=document.createElement("div");document.body.appendChild(t),t.style.position="relative";const e=document.createElement("div");e.style.position="absolute",e.style.left="10px",e.style.bottom="10px",e.style.width="300px",e.style.background="white",t.appendChild(this.gl.canvas),t.appendChild(e);const n=this.props.onAddHTML(e);n&&(e.innerHTML=n)}}_getSizeAndAspect(){const t=this.gl.drawingBufferWidth,e=this.gl.drawingBufferHeight;let n=1;const{canvas:r}=this.gl;return r&&r.clientHeight?n=r.clientWidth/r.clientHeight:t>0&&e>0&&(n=t/e),{width:t,height:e,aspect:n}}_resizeViewport(){this.autoResizeViewport&&this.gl.viewport(0,0,this.gl.drawingBufferWidth,this.gl.drawingBufferHeight)}_resizeCanvasDrawingBuffer(){this.autoResizeDrawingBuffer&&Object(wt.l)(this.gl,{useDevicePixels:this.useDevicePixels})}_createFramebuffer(){this.props.createFramebuffer&&(this.framebuffer=new At.a(this.gl))}_resizeFramebuffer(){this.framebuffer&&this.framebuffer.resize({width:this.gl.drawingBufferWidth,height:this.gl.drawingBufferHeight})}_beginTimers(){this.frameRate.timeEnd(),this.frameRate.timeStart(),this._gpuTimeQuery&&this._gpuTimeQuery.isResultAvailable()&&!this._gpuTimeQuery.isTimerDisjoint(
27)&&this.stats.get("GPU Time").addTime(this._gpuTimeQuery.getTimerMilliseconds()),this._gpuTimeQuery&&this._gpuTimeQuery.beginTimeElapsedQuery(),this.cpuTime.timeStart()}_endTimers(){this.cpuTime.timeEnd(),this._gpuTimeQuery&&this._gpuTimeQuery.end()}_startEventHandling(){const{canvas:t}=this.gl;t&&(t.addEventListener("mousemove",this._onMousemove),t.addEventListener("mouseleave",this._onMouseleave))}_onMousemove(t){this.animationProps._mousePosition=[t.offsetX,t.offsetY]}_onMouseleave(t){this.animationProps._mousePosition=null}}var _e=n(702);function ve(){}const be={id:"",width:"100%",height:"100%",pickingRadius:0,layerFilter:null,glOptions:{},gl:null,layers:[],effects:[],views:null,controller:null,useDevicePixels:!0,touchAction:"none",eventRecognizerOptions:{},_framebuffer:null,_animate:!1,_pickable:!0,_typedArrayManagerProps:{},onWebGLInitialized:ve,onResize:ve,onViewStateChange:ve,onInteractionStateChange:ve,onBeforeRender:ve,onAfterRender:ve,onLoad:ve,onError:(t,e)=>h.a.error(t)(),_onMetrics:null,getCursor:({isDragging:t})=>t?"grabbing":"grab",debug:!1,drawPickingColors:!1};class xe{constructor(t){t={...be,...t},this.props={},this.width=0,this.height=0,this.viewManager=null,this.layerManager=null,this.effectManager=null,this.deckRenderer=null,this.deckPicker=null,this._needsRedraw=!0,this._pickRequest={},this._lastPointerDownInfo=null,this.viewState=null,this.interactiveState={isHovering:!1,isDragging:!1},this._onEvent=this._onEvent.bind(this),this._onPointerDown=this._onPointerDown.bind(this),this._onPointerMove=this._onPointerMove.bind(this),t.viewState&&t.initialViewState&&h.a.warn("View state tracking is disabled. Use either `initialViewState` for auto update or `viewState` for manual update.")(),"IE"===Object(ie.getBrowser)()&&h.a.warn("IE 11 support will be deprecated
27in v8.0")(),t.gl||"undefined"!=typeof document&&(this.canvas=this._createCanvas(t)),this.animationLoop=this._createAnimationLoop(t),this.stats=new p.a({id:"deck.gl"}),this.metrics={fps:0,setPropsTime:0,updateAttributesTime:0,framesRedrawn:0,pickTime:0,pickCount:0,gpuTime:0,gpuTimePerFrame:0,cpuTime:0,cpuTimePerFrame:0,bufferMemory:0,textureMemory:0,renderbufferMemory:0,gpuMemory:0},this._metricsCounter=0,this.setProps(t),t._typedArrayManagerProps&&ee.a.setProps(t._typedArrayManagerProps),this.animationLoop.start()}finalize(){this.animationLoop.stop(),this.animationLoop=null,this._lastPointerDownInfo=null,this.layerManager&&(this.layerManager.finalize(),this.layerManager=null,this.viewManager.finalize(),this.viewManager=null,this.effectManager.finalize(),this.effectManager=null,this.deckRenderer.finalize(),this.deckRenderer=null,this.deckPicker.finalize(),this.deckPicker=null,this.eventManager.destroy(),this.eventManager=null,this.tooltip.remove(),this.tooltip=null),this.props.canvas||this.props.gl||!this.canvas||(this.canvas.parentElement.removeChild(this.canvas),this.canvas=null)}setProps(t){this.stats.get("setProps Time").timeStart(),"onLayerHover"in t&&h.a.removed("onLayerHover","onHover")(),"onLayerClick"in t&&h.a.removed("onLayerClick","onClick")(),t.initialViewState&&!A(this.props.initialViewState,t.initialViewState)&&(this.viewState=t.initialViewState),Object.assign(this.props,t),this._setCanvasSize(this.props);const e=Object.create(this.props);Object.assign(e,{views:this._getViews(),width:this.width,height:this.height,viewState:this._getViewState()}),this.animationLoop.setProps(e),this.layerManager&&(this.viewManager.setProps(e),this.layerManager.activateViewport(this.getViewports()[0]),this.layerManager.setProps(e),this.effectManager.setProps(e),this.deckRenderer.setProps(e),this.deckPicker.setProps(e)),this.stats.get("setProps Time").timeEnd()}needsRedraw(t={clearRedrawFlags:!1}){if(this.props._animate)return"Deck._animate";let e=this._needsRedraw;t.clearRedrawFlags&&(this._needsRedraw=!1);const n=this.viewManager.needsRedraw(t),r=this.layerManager.needsRedraw(t),i=this.effectManager.needsRedraw(t),o=this.deckRenderer.needsRedraw(t);return e=e||n||r||i||o,e}redraw(t){if(!this.layerManager)return;const e=t||this.needsRedraw({clearRedrawFlags:!0});e&&(this.stats.get("Redraw Count").incrementCount(),this.props._customRender?this.props._customRender(e):this._drawLayers(e))}getViews(){return this.viewManager.views}getViewports(t){return this.viewManager.getViewports(t)}pickObject(t){const e=this._pick("pickObject","pickObject Time",t).result;return e.length?e[0]:null}pickMultipleObjects(t){return t.depth=t.depth||10,this._pick("pickObject","pickMultipleObjects Time",t).result}pickObjects(t){return this._pick("pickObjects","pickObjects Time",t)}_addResources(t,e=!1){for(const n in t)this.layerManager.resourceManager.add({resourceId:n,data:t[n],forceUpdate:e})}_removeResources(t){for(const e of t)this.layerManager.resourceManager.remove(e)}_pick(t,e,n){const{stats:r}=this;r.get("Pick Count").incrementCount(),r.get(e).timeStart();const i=this.deckPicker[t]({layers:this.layerManager.getLayers(n),views:this.viewManager.getViews(),viewports:this.getViewports(n),onViewportActive:this.layerManager.activateViewport,...n});return r.get(e).timeEnd(),i}_createCanvas(t){let e=t.canvas;if("string"==typeof e&&(e=document.getElementById(e),Object(B.a)(e)),!e){e=document.createElement("canvas"),e.id=t.id||"deckgl-overlay";(t.parent||document.body).appendChild(e)}return Object.assign(e.style,t.style),e}_setCanvasSize(t){if(!this.canvas)return;let{width:e,height:n}=t;(e||0===e)&&(e=Number.isFinite(e)?"".concat(e,"px"):e,this.canvas.style.width=e),(n||0===n)&&(n=Number.isFinite(n)?"".concat(n,"px"):n,this.canvas.style.position="absolute",this.canvas.style.height=n)}_updateCanvasSize(){if(this._checkForCanvasSizeChange()){const{width:t,height:e}=this;this.viewManager.setProps({width:t,height:e}),this.props.onResize({width:this.width,height:this.height})}}_checkForCanvasSizeChange(){const{canvas:t}=this;if(!t)return!1;const e=t.clientWidth||t.width,n=t.clientHeight||t.height;return(e!==this.width||n!==this.height)&&(this.width=e,this.height=n,!0)}_createAnimationLoop(t){const{width:e,height:n,gl:r,glOptions:i,debug:o,onError:s,onBeforeRender:a,onAfterRender:c,useDevicePixels:l,autoResizeDrawingBuffer:u}=t;return new ye({width:e,height:n,useDevicePixels:l,autoResizeDrawingBuffer:u,autoResizeViewport:!1,gl:r,onCreateContext:t=>Object(wt.c)({...i,...t,canvas:this.canvas,debug:o,onContextLost:()=>this._onContextLost()}),onInitialize:t=>this._setGLContext(t.gl),onRender:this._onRenderFrame.bind(this),onBeforeRender:a,onAfterRender:c,onError:s})}_getViewState(){return this.props.viewState||this.viewState}_getViews(){let t=this.props.views||[new ut({id:"default-view"})];return t=Array.isArray(t)?t:[t],t.length&&this.props.controller&&(t[0].props.controller=this.props.controller),t}_onContextLost(){const{onError:t}=this.props;this.animationLoop&&t&&t(new Error("WebGL context is lost"))}_onPointerMove(t){const{_pickRequest:e}=this;if("pointerleave"===t.type)e.x=-1,e.y=-1,e.radius=0;else{if(t.leftButton||t.rightButton)return;{const n=t.offsetCenter;if(!n)return;e.x=n.x,e.y=n.y,e.radius=this.props.pickingRadius}}this.layerManager&&(this.layerManager.context.mousePosition={x:e.x,y:e.y}),e.event=t,e.mode="hover"}_pickAndCallback(){const{_pickRequest:t}=this;if(t.event){const{result:e,emptyInfo:n}=this._pick("pickObject","pickObject Time",t);this.interactiveState.isHovering=e.length>0;let r=n,i=!1;for(const n of e)r=n,i=n.layer.onHover(n,t.event);if(!i&&this.props.onHover&&this.props.onHover(r,t.event),this.props.getTooltip){const t=this.props.getTooltip(r);this.tooltip.setTooltip(t,r.x,r.y)}t.event=null}}
27_updateCursor(){const t=this.props.parent||this.canvas;t&&(t.style.cursor=this.props.getCursor(this.interactiveState))}_setGLContext(t){if(this.layerManager)return;this.canvas||(this.canvas=t.canvas,Object(wt.g)(t,{enable:!0,copyState:!0})),this.tooltip=new te(this.canvas),Object(wt.m)(t,{blend:!0,blendFunc:[770,771,1,771],polygonOffsetFill:!0,depthTest:!0,depthFunc:515}),this.props.onWebGLInitialized(t);const e=new l;e.play(),this.animationLoop.attachTimeline(e),this.eventManager=new _e.a(this.props.parent||t.canvas,{touchAction:this.props.touchAction,recognizerOptions:this.props.eventRecognizerOptions,events:{pointerdown:this._onPointerDown,pointermove:this._onPointerMove,pointerleave:this._onPointerMove}});for(const t in Tt.b)this.eventManager.on(t,this._onEvent);this.viewManager=new I({timeline:e,eventManager:this.eventManager,onViewStateChange:this._onViewStateChange.bind(this),onInteractionStateChange:this._onInteractionStateChange.bind(this),views:this._getViews(),viewState:this._getViewState(),width:this.width,height:this.height});const n=this.viewManager.getViewports()[0];this.layerManager=new C(t,{deck:this,stats:this.stats,viewport:n,timeline:e}),this.effectManager=new zt,this.deckRenderer=new Ht(t),this.deckPicker=new Jt(t),this.setProps(this.props),this._updateCanvasSize(),this.props.onLoad()}_drawLayers(t,e){const{gl:n}=this.layerManager.context;Object(wt.m)(n,this.props.parameters),this.props.onBeforeRender({gl:n}),this.deckRenderer.renderLayers({target:this.props._framebuffer,layers:this.layerManager.getLayers(),viewports:this.viewManager.getViewports(),onViewportActive:this.layerManager.activateViewport,views:this.viewManager.getViews(),pass:"screen",redrawReason:t,effects:this.effectManager.getEffects(),...e}),this.props.onAfterRender({gl:n})}_onRenderFrame(t){this._getFrameStats(),this._metricsCounter++%60==0&&(this._getMetrics(),this.stats.reset(),h.a.table(4,this.metrics)(),this.props._onMetrics&&this.props._onMetrics(this.metrics)),this._updateCanvasSize(),this._updateCursor(),this.tooltip.isVisible&&this.viewManager.needsRedraw()&&this.tooltip.setTooltip(null),this.layerManager.updateLayers(),this._pickAndCallback(),this.redraw(!1),this.viewManager&&this.viewManager.updateViewStates()}_onViewStateChange(t){const e=this.props.onViewStateChange(t)||t.viewState;this.viewState&&(this.viewState={...this.viewState,[t.viewId]:e},this.props.viewState||this.viewManager&&this.viewManager.setProps({viewState:this.viewState}))}_onInteractionStateChange(t){this.interactiveState.isDragging=t.isDragging,this.props.onInteractionStateChange(t)}_onEvent(t){const e=Tt.b[t.type],n=t.offsetCenter;if(!e||!n)return;const r=this.layerManager.getLayers(),i=this.deckPicker.getLastPickedObject({x:n.x,y:n.y,layers:r,viewports:this.getViewports(n)},this._lastPointerDownInfo),{layer:o}=i,s=o&&(o[e.handler]||o.props[e.handler]),a=this.props[e.handler];let c=!1;s&&(c=s.call(o,i,t)),!c&&a&&a(i,t)}_onPointerDown(t){const e=t.offsetCenter,n=this._pick("pickObject","pickObject Time",{x:e.x,y:e.y,radius:this.props.pickingRadius});this._lastPointerDownInfo=n.result[0]||n.emptyInfo}_getFrameStats(){const{stats:t}=this;t.get("frameRate").timeEnd(),t.get("frameRate").timeStart();const e=this.animationLoop.stats;t.get("GPU Time").addTime(e.get("GPU Time").lastTiming),t.get("CPU Time").addTime(e.get("CPU Time").lastTiming)}_getMetrics(){const{metrics:t,stats:e}=this;t.fps=e.get("frameRate").getHz(),t.setPropsTime=e.get("setProps Time").time,t.updateAttributesTime=e.get("Update Attributes").time,t.framesRedrawn=e.get("Redraw Count").count,t.pickTime=e.get("pickObject Time").time+e.get("pickMultipleObjects Time").time+e.get("pickObjects Time").time,t.pickCount=e.get("Pick Count").count,t.gpuTime=e.get("GPU Time").time,t.cpuTime=e.get("CPU Time").time,t.gpuTimePerFrame=e.get("GPU Time").getAverageTime(),t.cpuTimePerFrame=e.get("CPU Time").getAverageTime();const n=ce.a.get("Memory Usage");t.bufferMemory=n.get("Buffer Memory").count,t.textureMemory=n.get("Texture Memory").count,t.renderbufferMemory=n.get("Renderbuffer Memory").count,t.gpuMemory=n.get("GPU Memory").count}}xe.getPropTypes=function(t){return{id:t.string,width:t.oneOfType([t.number,t.string]),height:t.oneOfType([t.number,t.string]),layers:t.oneOfType([t.object,t.array]),layerFilter:t.func,views:t.oneOfType([t.object,t.array]),viewState:t.object,effects:t.arrayOf(t.instanceOf(xt)),controller:t.oneOfType([t.func,t.bool,t.object]),gl:t.object,glOptions:t.object,parameters:t.object,pickingRadius:t.number,useDevicePixels:t.oneOfType([t.bool,t.number]),touchAction:t.string,eventRecognizerOptions:t.object,onWebGLInitialized:t.func,onResize:t.func,onViewStateChange:t.func,onInteractionStateChange:t.func,onBeforeRender:t.func,onAfterRender:t.func,onLoad:t.func,onError:t.func,debug:t.bool,drawPickingColors:t.bool,_framebuffer:t.object,_animate:t.bool,_pickable:t.bool,_t
27ypedArrayManagerProps:t.object}},xe.defaultProps=be,xe.VERSION=ae.VERSION;var we="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;function Ee(t,e){for(;t;){if(t===e)return!0;t=Object.getPrototypeOf(t)}return!1}var Se=n(1579);function Ce(t){return t?"function"==typeof t?Object(r.createElement)(L,{},t):Array.isArray(t)?t.map(Ce):t.type===i.a.Fragment?Ce(t.props.children):(Ee(t.type,L),t):t}const Ae={position:"absolute",zIndex:-1};function Ie(t,e){return t?"function"==typeof t?t(e):Array.isArray(t)?t.map(t=>Ie(t,e)):function(t){const e=t&&t.type,n=e&&e.defaultProps;return n&&n.mapStyle}(t)?(e.style=Ae,Object(r.cloneElement)(t,e)):function(t){const e=t&&t.type;return e&&e.deckGLViewProps}(t)?Object(r.cloneElement)(t,e):t:t}const Te={mixBlendMode:null};function Me(t){t.redrawReason&&(t.deck._drawLayers(t.redrawReason),t.redrawReason=null)}const Fe=Object(r.forwardRef)((t,e)=>{const n=Object(r.useRef)({}).current,[o,s]=Object(r.useState)(0);n.forceUpdate=s;const a=Object(r.useRef)(null),c=Object(r.useRef)(null),l=Object(r.useMemo)(()=>function({children:t,layers:e,views:n}){const r=[],o=[],s={};return i.a.Children.forEach(Ce(t),t=>{if(t){const e=t.type;if(Ee(e,Se.a)){const n=function(t,e){const n={},r=t.defaultProps||{};for(const t in e)r[t]!==e[t]&&(n[t]=e[t]);return new t(n)}(e,t.props);o.push(n)}else r.push(t);if(e!==L&&Ee(e,L)&&t.props.id){const n=new e(t.props);s[n.id]=n}}}),Object.keys(s).length>0&&(Array.isArray(n)?n.forEach(t=>{s[t.id]=t}):n&&(s[n.id]=n),n=Object.values(s)),{layers:e=o.length>0?[...o,...e]:e,children:r,views:n}}(t),[t.layers,t.views,t.children]);let u=!0;const h=e=>u&&t.viewState?(n.viewStateUpdateRequested=e,null):(n.viewStateUpdateRequested=null,t.onViewStateChange(e)),f=e=>{u?n.interactionStateUpdateRequested=e:(n.interactionStateUpdateRequested=null,t.onInteractionStateChange(e))},d=Object(r.useMemo)(()=>{const e={...t,style:null,width:"100%",height:"100%",layers:l.layers,views:l.views,onViewStateChange:h,onInteractionStateChange:f};return n.deck&&n.deck.setProps(e),e},[t]);Object(r.useEffect)(()=>(n.deck=function(t,e){const n=new(e.Deck||xe)({...e,style:null,width:"100%",height:"100%",_customRender:e=>{t.redrawReason=e;const r=n.viewManager.getViewports();t.lastRenderedViewports!==r?t.forceUpdate(t=>t+1):Me(t)}});return n}(n,{...d,parent:a.current,canvas:c.current}),()=>n.deck.finalize()),[]),we(()=>{Me(n);const{viewStateUpdateRequested:t,interactionStateUpdateRequested:e}=n;t&&h(t),e&&f(e)}),Object(r.useImperativeHandle)(e,()=>function(t){const e={pickObject:e=>t.deck.pickObject(e),pickMultipleObjects:e=>t.deck.pickMultipleObjects(e),pickObjects:e=>t.deck.pickObjects(e)};return Object.defineProperty(e,"deck",{get:()=>t.deck}),e}(n),[]);const{viewManager:p}=n.deck||{},g=p&&p.getViewports(),{ContextProvider:m,width:y,height:_,id:v,style:b}=t,{containerStyle:x,canvasStyle:w}=Object(r.useMemo)(()=>function({width:t,height:e,style:n}){const r={position:"absolute",zIndex:0,left:0,top:0,width:t,height:e},i={left:0,top:0};if(n)for(const t in n)t in Te?i[t]=n[t]:r[t]=n[t];return{containerStyle:r,canvasStyle:i}}({width:y,height:_,style:b}),[y,_,b]);if(!n.viewStateUpdateRequested&&n.lastRenderedViewports===g||n.version!==o){n.lastRenderedViewports=g,n.version=o;const t=function({children:t,deck:e,ContextProvider:n}){const{viewManager:i}=e||{};if(!i||!i.views.length)return[];const o={},s=i.views[0].id;for(const e of t){let t=s,n=e;Ee(e.type,L)&&(t=e.props.id||s,n=e.props.children);const r=i.getViewport(t),a=i.getViewState(t);if(r){const{x:e,y:i,width:s,height:c}=r;n=Ie(n,{x:e,y:i,width:s,height:c,viewport:r,viewState:a}),o[t]||(o[t]={viewport:r,children:[]}),o[t].children.push(n)}}return Object.keys(o).map(t=>{const{viewport:i,children:s}=o[t],{x:a,y:c,width:l,height:u}=i,h={position:"absolute",left:a,top:c,width:l,height:u},f="view-".concat(t),d=Object(r.createElement)("div",{key:f,id:f,style:h},...s);if(n){const o={viewport:i,container:e.canvas.offsetParent,eventManager:e.eventManager,onViewStateChange:n=>{n.viewId=t,e._onViewStateChange(n)}};return Object(r.createElement)(n,{key:f,value:o},d)}return d})}
27({children:l.children,deck:n.deck,ContextProvider:m}),e=Object(r.createElement)("canvas",{key:"canvas",id:v||"deckgl-overlay",ref:c,style:w});n.control=Object(r.createElement)("div",{id:"".concat(v||"deckgl","-wrapper"),ref:a,style:x},[e,t])}return u=!1,n.control});Fe.propTypes=xe.getPropTypes(s.a),Fe.defaultProps=xe.defaultProps;e.a=Fe},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(16),i=n(159),o=n(128),s=n(216);class a extends i.a{get[Symbol.toStringTag](){return"TransformFeedback"}static isSupported(t){return Object(r.i)(t)}constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object(r.a)(t),super(t,e),this.initialize(e),this.stubRemovedMethods("TransformFeedback","v6.0",["pause","resume"]),Object.seal(this)}initialize(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.buffers={},this.unused={},this.configuration=null,this.bindOnUse=!0,Object(s.a)(this.buffers)||this.bind(()=>this._unbindBuffers()),this.setProps(t),this}setProps(t){"program"in t&&(this.configuration=t.program&&t.program.configuration),"configuration"in t&&(this.configuration=t.configuration),"bindOnUse"in t&&(t=t.bindOnUse),"buffers"in t&&this.setBuffers(t.buffers)}setBuffers(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.bind(()=>{for(const e in t)this.setBuffer(e,t[e])}),this}setBuffer(t,e){const n=this._getVaryingIndex(t),{buffer:i,byteSize:o,byteOffset:s}=this._getBufferParams(e);return n<0?(this.unused[t]=i,r.j.warn("".concat(this.id," unused varying buffer ").concat(t))(),this):(this.buffers[n]=e,this.bindOnUse||this._bindBuffer(n,i,s,o),this)}begin(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.gl.bindTransformFeedback(36386,this.handle),this._bindBuffers(),this.gl.beginTransformFeedback(t),this}end(){return this.gl.endTransformFeedback(),this._unbindBuffers(),this.gl.bindTransformFeedback(36386,null),this}_getBufferParams(t){let e,n,r;return t instanceof o.a==!1?(r=t.buffer,n=t.byteSize,e=t.byteOffset):r=t,void 0===e&&void 0===n||(e=e||0,n=n||r.byteLength-e),{buffer:r,byteOffset:e,byteSize:n}}_getVaryingInfo(t){return this.configuration&&this.configuration.getVaryingInfo(t)}_getVaryingIndex(t){if(this.configuration)return this.configuration.getVaryingInfo(t).location;const e=Number(t);return Number.isFinite(e)?e:-1}_bindBuffers(){if(this.bindOnUse)for(const t in this.buffers){const{buffer:e,byteSize:n,byteOffset:r}=this._getBufferParams(this.buffers[t]);this._bindBuffer(t,e,r,n)}}_unbindBuffers(){if(this.bindOnUse)for(const t in this.buffers)this._bindBuffer(t,null)}_bindBuffer(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3?arguments[3]:void 0;const i=e&&e.handle;return i&&void 0!==r?this.gl.bindBufferRange(35982,t,i,n,r):this.gl.bindBufferBase(35982,t,i),this}_createHandle(){return this.gl.createTransformFeedback()}_deleteHandle(){this.gl.deleteTransformFeedback(this.handle)}_bindHandle(t){this.gl.bindTransformFeedback(36386,this.handle)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(216),i=n(20);const o={POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6};class s{static get DRAW_MODE(){return o}constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{id:e=Object(r.c)("geometry"),drawMode:n=o.TRIANGLES,attributes:i={},indices:s=null,vertexCount:a=null}=t;this.id=e,this.drawMode=0|n,this.attributes={},this.userData={},this._setAttributes(i,s),this.vertexCount=a||this._calculateVertexCount(this.attributes,this.indices)}get mode(){return this.drawMode}getVertexCount(){return this.vertexCount}getAttributes(){return this.indices?{indices:this.indices,...this.attributes}:this.attributes}
27_print(t){return"Geometry ".concat(this.id," attribute ").concat(t)}_setAttributes(t,e){e&&(this.indices=ArrayBuffer.isView(e)?{value:e,size:1}:e);for(const e in t){let n=t[e];n=ArrayBuffer.isView(n)?{value:n}:n,Object(i.a)(ArrayBuffer.isView(n.value),"".concat(this._print(e),": must be typed array or object with value as typed array")),"POSITION"!==e&&"positions"!==e||n.size||(n.size=3),"indices"===e?(Object(i.a)(!this.indices),this.indices=n):this.attributes[e]=n}return this.indices&&void 0!==this.indices.isIndexed&&(this.indices=Object.assign({},this.indices),delete this.indices.isIndexed),this}_calculateVertexCount(t,e){if(e)return e.value.length;let n=1/0;for(const e in t){const r=t[e],{value:i,size:o,constant:s}=r;!s&&i&&o>=1&&(n=Math.min(n,i.length/o))}return Object(i.a)(Number.isFinite(n)),n}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return Z}));var r=n(51),i=n(359),o=n(520);const s=/^data:([-\w.]+\/[-\w.+]+)(;|,)/,a=/^([-\w.]+\/[-\w.+]+)/;function c(t){const e=s.exec(t);return e?e[1]:""}const l=/\?.*/;function u(t){return t.replace(l,"")}function h(t){if(Object(r.i)(t)){return t.url}if(Object(r.b)(t)){return t.name||""}return"string"==typeof t?t:""}function f(t){if(Object(r.i)(t)){const e=t,n=e.headers.get("content-type")||"",r=u(e.url);return function(t){const e=a.exec(t);return e?e[1]:t}(n)||c(r)}if(Object(r.b)(t)){return t.type||""}return"string"==typeof t?c(t):""}async function d(t){if(Object(r.i)(t))return t;const e={},n=function(t){if(Object(r.i)(t)){return t.headers["content-length"]||-1}if(Object(r.b)(t)){return t.size}return"string"==typeof t?t.length:t instanceof ArrayBuffer||ArrayBuffer.isView(t)?t.byteLength:-1}(t);n>=0&&(e["content-length"]=String(n));const i=h(t),o=f(t);o&&(e["content-type"]=o);const s=await async function(t){if("string"==typeof t)return"data:,".concat(t.slice(0,5));if(t instanceof Blob){const e=t.slice(0,5);return await new Promise(t=>{const n=new FileReader;n.onload=e=>{var n;return t(null==e||null===(n=e.target)||void 0===n?void 0:n.result)},n.readAsDataURL(e)})}if(t instanceof ArrayBuffer){const e=function(t){let e="";const n=new Uint8Array(t);for(let t=0;t<n.byteLength;t++)e+=String.fromCharCode(n[t]);return btoa(e)}(t.slice(0,5));return"data:base64,".concat(e)}return null}(t);s&&(e["x-first-bytes"]=s),"string"==typeof t&&(t=(new TextEncoder).encode(t));const a=new Response(t,{headers:e});return Object.defineProperty(a,"url",{value:i}),a}async function p(t){if(!t.ok){const e=await async function(t){let e="Failed to fetch resource ".concat(t.url," (").concat(t.status,"): ");try{const n=t.headers.get("Content-Type");let r=t.statusText;n.includes("application/json")&&(r+=" ".concat(await t.text())),e+=r,e=e.length>60?"".concat(e.slice(0,60),"..."):e}catch(t){}return e}(t);throw new Error(e)}}async function g(t,e){if("string"==typeof t){t=Object(o.a)(t);let n=e;return null!=e&&e.fetch&&"function"!=typeof(null==e?void 0:e.fetch)&&(n=e.fetch),await fetch(t,n)}return await d(t)}var m=n(463);function y(t,e){const n=Object(m.a)(),i=t||n;return"function"==typeof i.fetch?i.fetch:Object(r.f)(i.fetch)?t=>g(t,i):null!=e&&e.fetch?null==e?void 0:e.fetch:g}var _=n(256),v=n(978);var b=n(976),x=n(972);const w=262144;var E=n(408),S=n(691);function C(t,e){return E.a?async function*(t,e){const n=t.getReader();let r;try{for(;;){const t=r||n.read();null!=e&&e._streamReadAhead&&(r=n.read());const{done:i,value:o}=await t;if(i)return;yield Object(S.a)(o)}}catch(t){n.releaseLock()}}(t,e):async function*(t,e){for await(const e of t)yield Object(S.a)(e)}(t)}function A(t,e){if("string"==typeof t)return function*(t,e){const n=(null==e?void 0:e.chunkSize)||262144;let r=0;const i=new TextEncoder;for(;r<t.length;){const e=Math.min(t.length-r,n),o=t.slice(r,r+e);r+=e,yield i.encode(o)}}(t,e);if(t instanceof ArrayBuffer)return function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function*(){const{chunkSize:n=w}=e;let r=0;for(;r<t.byteLength;){const e=Math.min(t.byteLength-r,n),i=new ArrayBuffer(e),o=new Uint8Array(t,r,e);new Uint8Array(i).set(o),r+=e,yield i}}()}(t,e);if(Object(r.b)(t))return async function*(t,e){const n=(null==e?void 0:e.chunkSize)||
271048576;let r=0;for(;r<t.size;){const e=r+n,i=await t.slice(r,e).arrayBuffer();r=e,yield i}}(t,e);if(Object(r.h)(t))return C(t,e);if(Object(r.i)(t)){return C(t.body,e)}throw new Error("makeIterator")}const I="Cannot convert supplied data type";async function T(t,e,n){const i=t instanceof ArrayBuffer||ArrayBuffer.isView(t);if("string"==typeof t||i)return function(t,e,n){if(e.text&&"string"==typeof t)return t;if(Object(r.c)(t)&&(t=t.buffer),t instanceof ArrayBuffer){const n=t;if(e.text&&!e.binary){return new TextDecoder("utf8").decode(n)}return n}if(ArrayBuffer.isView(t)){if(e.text&&!e.binary){return new TextDecoder("utf8").decode(t)}let n=t.buffer;const r=t.byteLength||t.length;return 0===t.byteOffset&&r===n.byteLength||(n=n.slice(t.byteOffset,t.byteOffset+r)),n}throw new Error(I)}(t,e);if(Object(r.b)(t)&&(t=await d(t)),Object(r.i)(t)){const n=t;return await p(n),e.binary?await n.arrayBuffer():await n.text()}if(Object(r.h)(t)&&(t=A(t,n)),Object(r.d)(t)||Object(r.a)(t))return Object(x.a)(t);throw new Error(I)}var M=n(215);function F(t,e,n){if(n)return n;const r={fetch:y(e,t),...t};if(r.url){const t=u(r.url);r.baseUrl=t,r.queryString=function(t){const e=t.match(l);return e&&e[0]}(r.url),r.filename=M.a.filename(t),r.baseUrl=M.a.dirname(t)}return Array.isArray(r.loaders)||(r.loaders=null),r}var B=n(457);const L=new(n(1902).a)({id:"loaders.gl"});var O=n(1196);const U=/\.([^.]+)$/;function k(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;if(!D(t))return null;if(e&&!Array.isArray(e))return Object(i.b)(e);let o=[];e&&(o=o.concat(e)),null!=n&&n.ignoreRegisteredLoaders||o.push(...Object(O.a)()),j(o);const s=P(t,o,n,r);if(!(s||null!=n&&n.nothrow))throw new Error(R(t));return s}function P(t,e,n,r){const i=h(t),o=f(t),s=u(i)||(null==r?void 0:r.url);let a=null,c="";var l;(null!=n&&n.mimeType&&(a=z(e,null==n?void 0:n.mimeType),c="match forced by supplied MIME type ".concat(null==n?void 0:n.mimeType)),a=a||function(t,e){const n=e&&U.exec(e),r=n&&n[1];return r?function(t,e){e=e.toLowerCase();for(const n of t)for(const t of n.extensions)if(t.toLowerCase()===e)return n;return null}(t,r):null}(e,s),c=c||(a?"matched url ".concat(s):""),a=a||z(e,o),c=c||(a?"matched MIME type ".concat(o):""),a=a||function(t,e){if(!e)return null;for(const n of t)if("string"==typeof e){if(Q(e,n))return n}else if(ArrayBuffer.isView(e)){if(N(e.buffer,e.byteOffset,n))return n}else if(e instanceof ArrayBuffer){if(N(e,0,n))return n}return null}(e,t),c=c||(a?"matched initial data ".concat(V(t)):""),a=a||z(e,null==n?void 0:n.fallbackMimeType),c=c||(a?"matched fallback MIME type ".concat(o):""),c)&&L.log(1,"selectLoader selected ".concat(null===(l=a)||void 0===l?void 0:l.name,": ").concat(c,"."));return a}function D(t){return!(t instanceof Response&&204===t.status)}function R(t){const e=h(t),n=f(t);let r="No valid loader found (";r+=e?"".concat(M.a.filename(e),", "):"no url provided, ",r+="MIME type: ".concat(n?'"'.concat(n,'"'):"not provided",", ");const i=t?V(t):"";return r+=i?' first bytes: "'.concat(i,'"'):"first bytes: not available",r+=")",r}function j(t){for(const e of t)Object(i.b)(e)}function z(t,e){for(const n of t){if(n.mimeTypes&&n.mimeTypes.includes(e))return n;if(e==="application/x.".concat(n.id))return n}return null}function Q(t,e){if(e.testText)return e.testText(t);return(Array.isArray(e.tests)?e.tests:[e.tests]).some(e=>t.startsWith(e))}function N(t,e,n){return(Array.isArray(n.tests)?n.tests:[n.tests]).some(r=>function(t,e,n,r){if(r instanceof ArrayBuffer)return Object(B.a)(r,t,r.byteLength);switch(typeof r){case"function":return r(t,n);case"string":const i=G(t,e,r.length);return r===i;default:return!1}}(t,e,n,r))}function V(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;if("string"==typeof t)return t.slice(0,e);if(ArrayBuffer.isView(t))return G(t.buffer,t.byteOffset,e);if(t instanceof ArrayBuffer){return G(t,0,e)}return""}function G(t,e,n){if(t.byteLength<e+n)return"";const r=new DataView(t);let i="";for(let t=0;t<n;t++)i+=String.fromCharCode(r.getUint8(e+t));return i}async function H(t,e,n,o){Object(_.a)(!o||"object"==typeof o),!e||Array.isArray(e)||Object(i.a)(e)||(o=void 0,n=e,e=void 0),n=n||{};const s=h(t=await t),a=function(t,e){if(!e&&t&&!Array.isArray(t))return t;let n;if(t&&(n=Array.isArray(t)?t:[t]),e&&e.loaders){const t=Array.isArray(e.loaders)?e.loaders:[e.loaders];n=n?[...n,...t]:t}return n&&n.length?n:null}(e,o),c=await async function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0;if(!D(t))return null;let o=k(t,e,{...n,nothrow:!0},i);if(o)return o;if(Object(r.b)(t)&&(o=k(t=await t.slice(0,10).arrayBuffer(),e,n,i)),!(o||null!=n&&n.nothrow))throw new Error(R(t));return o}(t,a,n);return c?(o=F({url:s,parse:H,loaders:a},n=Object(m.c)(n,c,a,s),o||null),await async function(t,e,n,i){if(function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:v.a;Object(_.a)(t,"no worker provided");
27const n=t.version}(t),Object(r.i)(e)){const t=e,{ok:n,redirected:r,status:o,statusText:s,type:a,url:c}=t,l=Object.fromEntries(t.headers.entries());i.response={headers:l,ok:n,redirected:r,status:o,statusText:s,type:a,url:c}}if(e=await T(e,t,n),t.parseTextSync&&"string"==typeof e)return n.dataType="text",t.parseTextSync(e,n,i,t);if(Object(b.a)(t,n))return await Object(b.b)(t,e,n,i,H);if(t.parseText&&"string"==typeof e)return await t.parseText(e,n,i,t);if(t.parse)return await t.parse(e,n,i,t);throw Object(_.a)(!t.parseSync),new Error("".concat(t.id," loader - no parser found and worker is disabled"))}(c,t,n,o)):null}async function Z(t,e,n,o){Array.isArray(e)||Object(i.a)(e)||(void 0,n=e,e=void 0);const s=y(n);let a=t;return"string"==typeof t&&(a=await s(t)),Object(r.b)(t)&&(a=await s(t)),await H(a,e,n)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return A}));var r=n(697),i=n(408);const{_parseImageNode:o}=globalThis,s="undefined"!=typeof Image,a="undefined"!=typeof ImageBitmap,c=Boolean(o),l=!!i.a||c;function u(t){const e=f(t);if(!e)throw new Error("Not an image");return e}function h(t){switch(u(t)){case"data":return t;case"image":case"imagebitmap":const e=document.createElement("canvas"),n=e.getContext("2d");if(!n)throw new Error("getImageData");return e.width=t.width,e.height=t.height,n.drawImage(t,0,0),n.getImageData(0,0,t.width,t.height);default:throw new Error("getImageData")}}function f(t){return"undefined"!=typeof ImageBitmap&&t instanceof ImageBitmap?"imagebitmap":"undefined"!=typeof Image&&t instanceof Image?"image":t&&"object"==typeof t&&t.data&&t.width&&t.height?"data":null}const d=/^data:image\/svg\+xml/,p=/\.svg((\?|#).*)?$/;function g(t){return t&&(d.test(t)||p.test(t))}function m(t,e){if(g(e))throw new Error("SVG cannot be parsed directly to imagebitmap");return new Blob([new Uint8Array(t)])}async function y(t,e,n){const r=function(t,e){if(g(e)){let e=(new TextDecoder).decode(t);try{"function"==typeof unescape&&"function"==typeof encodeURIComponent&&(e=unescape(encodeURIComponent(e)))}catch(t){throw new Error(t.message)}return"data:image/svg+xml;base64,".concat(btoa(e))}return m(t,e)}(t,n),i=self.URL||self.webkitURL,o="string"!=typeof r&&i.createObjectURL(r);try{return await async function(t,e){const n=new Image;if(n.src=t,e.image&&e.image.decode&&n.decode)return await n.decode(),n;return await new Promise((e,r)=>{try{n.onload=()=>e(n),n.onerror=e=>r(new Error("Could not load image ".concat(t,": ").concat(e)))}catch(t){r(t)}})}(o||r,e)}finally{o&&i.revokeObjectURL(o)}}const _={};let v=!0;async function b(t,e,n){let r;if(g(n)){r=await y(t,e,n)}else r=m(t,n);const i=e&&e.imagebitmap;return await async function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;!x(e)&&v||(e=null);if(e)try{return await createImageBitmap(t,e)}catch(t){console.warn(t),v=!1}return await createImageBitmap(t)}(r,i)}function x(t){for(const e in t||_)return!1;return!0}function w(t){return function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const r=E(e);for(let e=0;e<r.length;++e)if(r[e]!==t[e+n])return!1;return!0}(t,"ftyp",4)?0==(96&t[8])?null:function(t){switch((e=t,n=8,r=12,String.fromCharCode(...e.slice(n,r))).replace("\0"," ").trim()){case"avif":case"avis":return{extension:"avif",mimeType:"image/avif"};default:return null}var e,n,r}(t):null}function E(t){return[...t].map(t=>t.charCodeAt(0))}function S(t){const e=C(t);return function(t){const e=C(t);if(!(e.byteLength>=24&&2303741511===e.getUint32(0,!1)))return null;return{mimeType:"image/png",width:e.getUint32(16,!1),height:e.getUint32(20,!1)}}(e)||function(t){const e=C(t);if(!(e.byteLength>=3&&65496===e.getUint16(0,!1)&&255===e.getUint8(2)))return null;const{tableMarkers:n,sofMarkers:r}=function(){const t=new Set([65499,65476,65484,65501,65534]);for(let e=65504;e<65520;++e)t.add(e);const e=new Set([65472,65473,65474,65475,65477,65478,65479,65481,65482,65483,65485,65486,65487,65502]);return{tableMarkers:t,sofMarkers:e}}();let i=2;for(;i+9<e.byteLength;){const t=e.getUint16(i,!1);if(r.has(t))return{mimeType:"image/jpeg",height:e.getUint16(i+5,!1),width:e.getUint16(i+7,!1)};if(!n.has(t))return null;i+=2,i+=e.getUint16(i,!1)}return null}(e)||function(t){const e=C(t);if(!(e.byteLength>=10&&1195984440===e.getUint32(0,!1)))return null;return{mimeType:"image/gif",width:e.getUint16(6,!0),height:e.getUint16(8,!0)}}(e)||function(t){const e=C(t);if(!(e.byteLength>=14&&16973===e.getUint16(0,!1)&&e.getUint32(2,!0)===e.byteLength))return null;return{mimeType:"image/bmp",width:e.getUint32(18,!0),height:e.getUint32(22,!0)}}(e)||function(t){const e=w(new Uint8Array(t instanceof DataView?t.buffer:t));if(!e)return null;return{mimeType:e.mimeType,width:0,height:0}}(e)}function C(t){if(t instanceof DataView)return t;if(ArrayBuffer.isView(t))return new DataView(t.buffer);if(t instanceof ArrayBuffer)return new DataView(t);throw new Error("toDataView")}const A={id:"image",module:"images",name:"Images",version:"3.4.15",mimeTypes:["image/png","image/jpeg","image/gif","
27image/webp","image/avif","image/bmp","image/vnd.microsoft.icon","image/svg+xml"],extensions:["png","jpg","jpeg","gif","webp","bmp","ico","svg","avif"],parse:async function(t,e,n){const i=((e=e||{}).image||{}).type||"auto",{url:o}=n||{};let c;switch(function(t){switch(t){case"auto":case"data":return function(){if(a)return"imagebitmap";if(s)return"image";if(l)return"data";throw new Error("Install '@loaders.gl/polyfills' to parse images under Node.js")}();default:return function(t){switch(t){case"auto":return a||s||l;case"imagebitmap":return a;case"image":return s;case"data":return l;default:throw new Error("@loaders.gl/images: image ".concat(t," not supported in this environment"))}}(t),t}}(i)){case"imagebitmap":c=await b(t,e,o);break;case"image":c=await y(t,e,o);break;case"data":c=await async function(t,e){const{mimeType:n}=S(t)||{},i=globalThis._parseImageNode;return Object(r.a)(i),await i(t,n)}(t);break;default:Object(r.a)(!1)}return"data"===i&&(c=h(c)),c},tests:[t=>Boolean(S(new DataView(t)))],options:{image:{type:"auto",decode:!0}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return z}));var r=n(159),i=n(241),o=n(321),s=n(16),a=n(464),c=n(20);const l={5126:E.bind(null,"uniform1fv",g,1,S),35664:E.bind(null,"uniform2fv",g,2,S),35665:E.bind(null,"uniform3fv",g,3,S),35666:E.bind(null,"uniform4fv",g,4,S),5124:E.bind(null,"uniform1iv",m,1,S),35667:E.bind(null,"uniform2iv",m,2,S),35668:E.bind(null,"uniform3iv",m,3,S),35669:E.bind(null,"uniform4iv",m,4,S),35670:E.bind(null,"uniform1iv",m,1,S),35671:E.bind(null,"uniform2iv",m,2,S),35672:E.bind(null,"uniform3iv",m,3,S),35673:E.bind(null,"uniform4iv",m,4,S),35674:E.bind(null,"uniformMatrix2fv",g,4,C),35675:E.bind(null,"uniformMatrix3fv",g,9,C),35676:E.bind(null,"uniformMatrix4fv",g,16,C),35678:w,35680:w,5125:E.bind(null,"uniform1uiv",y,1,S),36294:E.bind(null,"uniform2uiv",y,2,S),36295:E.bind(null,"uniform3uiv",y,3,S),36296:E.bind(null,"uniform4uiv",y,4,S),35685:E.bind(null,"uniformMatrix2x3fv",g,6,C),35686:E.bind(null,"uniformMatrix2x4fv",g,8,C),35687:E.bind(null,"uniformMatrix3x2fv",g,6,C),35688:E.bind(null,"uniformMatrix3x4fv",g,12,C),35689:E.bind(null,"uniformMatrix4x2fv",g,8,C),35690:E.bind(null,"uniformMatrix4x3fv",g,12,C),35678:w,35680:w,35679:w,35682:w,36289:w,36292:w,36293:w,36298:w,36299:w,36300:w,36303:w,36306:w,36307:w,36308:w,36311:w},u={},h={},f={},d=[0];function p(t,e,n,r){1===e&&"boolean"==typeof t&&(t=t?1:0),Number.isFinite(t)&&(d[0]=t,t=d);const i=t.length;if(i%e&&s.j.warn("Uniform size should be multiples of ".concat(e),t)(),t instanceof n)return t;let o=r[i];o||(o=new n(i),r[i]=o);for(let e=0;e<i;e++)o[e]=t[e];return o}function g(t,e){return p(t,e,Float32Array,u)}function m(t,e){return p(t,e,Int32Array,h)}function y(t,e){return p(t,e,Uint32Array,f)}function _(t,e,n){const r=l[n.type];if(!r)throw new Error("Unknown GLSL uniform type ".concat(n.type));return r().bind(null,t,e)}function v(t){if("]"!==t[t.length-1])return{name:t,length:1,isArray:!1};const e=t.match(/([^[]*)(\[[0-9]+\])?/);if(!e||e.length<2)throw new Error("Failed to parse GLSL uniform name ".concat(t));return{name:e[1],length:e[2]||1,isArray:Boolean(e[2])}}function b(t){return Array.isArray(t)||ArrayBuffer.isView(t)?function(t){if(0===t.length)return!1;const e=Math.min(t.length,16);for(let n=0;n<e;++n)if(!Number.isFinite(t[n]))return!1;return!0}(t):!!isFinite(t)||(!0===t||!1===t||(t instanceof i.a||(t instanceof a.a||t instanceof o.a&&Boolean(t.texture))))}function x(t,e,n){if(Array.isArray(n)||ArrayBuffer.isView(n))if(t[e]){const r=t[e];for(let t=0,e=n.length;t<e;++t)r[t]=n[t]}else t[e]=n.slice();else t[e]=n}function w(){let t=null;return(e,n,r)=>{const i=t!==r;return i&&(e.uniform1i(n,r),t=r),i}}function E(t,e,n,r){let i=null,o=null;return(s,a,l)=>{const u=e(l,n),h=u.length;let f=!1;if(null===i)i=new Float32Array(h),o=h,f=!0;else{Object(c.a)(o===h,"Uniform length cannot change.");for(let t=0;t<h;++t)if(u[t]!==i[t]){f=!0;break}}return f&&(r(s,t,a,u),i.set(u)),f}}function S(t,e,n,r){t[e](n,r)}function C(t,e,n,r){t[e](n,!1,r)}function A(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"unnamed";const n=/#define[\s*]SHADER_NAME[\s*]([A-Za-z0-9_-]+)[\s*]/,r=t.match(n);return r?r[1]:e}function I(t,e,n,r){const i=t.split(/\r?\n/),o={},s={},a=r||A(e)||"(unnamed)",c="".concat(function(t){switch(t){case 35632:return"fragment";case 35633:return"vertex";default:return"unknown type"}}(n)," shader ").concat(a);for(let e=0;e<i.length;e++){const n=i[e];if(n.length<=1)continue;const r=n.split(":"),a=r[0],l=parseInt(r[2],10);if(isNaN(l))throw new Error("GLSL compilation error in ".concat(c,": ").concat(t));"WARNING"!==a?o[l]=n:s[l]=n}const l=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:": ";const r=t.split(/\r?\n/),i=String(r.length+e-1).length;return r.map((t,r)=>{const o=String(r+e),s=o.length;return M(o,i-s)+n+t})}(e);return{shaderName:c,errors:T(o,l),warnings:T(s,l)}}function T(t,e){let n="";for(let r=0;r<e.length;r++){const i=e[r];if((t[r+3]||t[r+2]||t[r+1])&&(n+="".concat(i,"\n"),t[r+1])){const e=t[r+1],i=e.split(":",3),o=i[0],s=parseInt(i[1],10)||0,a=e.substring(i.join(":").length+1).trim();n+=M("^^^ ".concat(o,": ").concat(a,"\n\n"),s)}}return n}function M(t,e){let n="";for(let t=0;t<e;++t)n+=" ";return"".concat(n).concat(t)}var F=n(216);class B extends r.a{get[Symbol.toStringTag](){return"Shader"}static getTypeName(t){switch(t){case 35633:return"vertex-shader";case 35632:return"fragment-shader";default:return Object(c.a)(!1),"unknown"}}constructor(t,e){Object(s.b)(t),Object(c.a)("string"==typeof e.source,"Shader: GLSL source code must be a JavaScript string");super(t,{id:A(e.source,null)||e.id||Object(F.c)("unnamed ".concat(B.getTypeName(e.shaderType)))}),this.shaderType=e.shaderType,this.source=e.source,this.initialize(e)}initialize(t){let{source:e}=t;const n=A(e,null);n&&(this.id=Object(F.c)(n)),this._compile(e)}getParameter(t){return this.gl.getShaderParameter(this.handle,t)}toString(){return"".concat(B.getTypeName(this.shaderType),":").concat(this.id
27)}getName(){return A(this.source)||"unnamed-shader"}getSource(){return this.gl.getShaderSource(this.handle)}getTranslatedSource(){const t=this.gl.getExtension("WEBGL_debug_shaders");return t?t.getTranslatedShaderSource(this.handle):"No translated source available. WEBGL_debug_shaders not implemented"}_compile(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.source;t.startsWith("#version ")||(t="#version 100\n".concat(t)),this.source=t,this.gl.shaderSource(this.handle,this.source),this.gl.compileShader(this.handle);if(!this.getParameter(35713)){const t=this.gl.getShaderInfoLog(this.handle),{shaderName:e,errors:n,warnings:r}=I(t,this.source,this.shaderType,this.id);throw s.j.error("GLSL compilation errors in ".concat(e,"\n").concat(n))(),s.j.warn("GLSL compilation warnings in ".concat(e,"\n").concat(r))(),new Error("GLSL compilation errors in ".concat(e))}}_deleteHandle(){this.gl.deleteShader(this.handle)}_getOptsFromHandle(){return{type:this.getParameter(35663),source:this.getSource()}}}class L extends B{get[Symbol.toStringTag](){return"VertexShader"}constructor(t,e){"string"==typeof e&&(e={source:e}),super(t,Object.assign({},e,{shaderType:35633}))}_createHandle(){return this.gl.createShader(35633)}}class O extends B{get[Symbol.toStringTag](){return"FragmentShader"}constructor(t,e){"string"==typeof e&&(e={source:e}),super(t,Object.assign({},e,{shaderType:35632}))}_createHandle(){return this.gl.createShader(35632)}}var U=n(257),k=n(360);class P{constructor(t){this.id=t.id,this.attributeInfos=[],this.attributeInfosByName={},this.attributeInfosByLocation=[],this.varyingInfos=[],this.varyingInfosByName={},Object.seal(this),this._readAttributesFromProgram(t),this._readVaryingsFromProgram(t)}getAttributeInfo(t){const e=Number(t);return Number.isFinite(e)?this.attributeInfosByLocation[e]:this.attributeInfosByName[t]||null}getAttributeLocation(t){const e=this.getAttributeInfo(t);return e?e.location:-1}getAttributeAccessor(t){const e=this.getAttributeInfo(t);return e?e.accessor:null}getVaryingInfo(t){const e=Number(t);return Number.isFinite(e)?this.varyingInfos[e]:this.varyingInfosByName[t]||null}getVaryingIndex(t){const e=this.getVaryingInfo();return e?e.location:-1}getVaryingAccessor(t){const e=this.getVaryingInfo();return e?e.accessor:null}_readAttributesFromProgram(t){const{gl:e}=t,n=e.getProgramParameter(t.handle,35721);for(let r=0;r<n;r++){const{name:n,type:i,size:o}=e.getActiveAttrib(t.handle,r),s=e.getAttribLocation(t.handle,n);s>=0&&this._addAttribute(s,n,i,o)}this.attributeInfos.sort((t,e)=>t.location-e.location)}_readVaryingsFromProgram(t){const{gl:e}=t;if(!Object(s.i)(e))return;const n=e.getProgramParameter(t.handle,35971);for(let r=0;r<n;r++){const{name:n,type:i,size:o}=e.getTransformFeedbackVarying(t.handle,r);this._addVarying(r,n,i,o)}this.varyingInfos.sort((t,e)=>t.location-e.location)}_addAttribute(t,e,n,r){const{type:i,components:o}=Object(k.a)(n),s={type:i,size:r*o};this._inferProperties(t,e,s);const a={location:t,name:e,accessor:new U.a(s)};this.attributeInfos.push(a),this.attributeInfosByLocation[t]=a,this.attributeInfosByName[a.name]=a}_inferProperties(t,e,n){/instance/i.test(e)&&(n.divisor=1)}_addVarying(t,e,n,r){const{type:i,components:o}=Object(k.a)(n),s={location:t,name:e,accessor:new U.a({type:i,size:r*o})};this.varyingInfos.push(s),this.varyingInfosByName[s.name]=s}}var D=n(197);const R=35981,j=["setVertexArray","setAttributes","setBuffers","unsetBuffers","use","getUniformCount","getUniformInfo","getUniformLocation","getUniformValue","getVarying","getFragDataLocation","getAttachedShaders","getAttributeCount","getAttributeLocation","getAttributeInfo"];class z extends r.a{get[Symbol.toStringTag](){return"Program"}constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(t,e),this.stubRemovedMethods("Program","v6.0",j),this._isCached=!1,this.initialize(e),Object.seal(this),this._setId(e.id)}initialize(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{hash:e,vs:n,fs:r,varyings:i,bufferMode:o=R}=t;return this.hash=e||"",this.vs="string"==typeof n?new L(this.gl,{id:"".concat(t.id,"-vs"),source:n}):n,this.fs="string"==typeof r?new O(this.gl,{id:"".concat(t.id,"-fs"),source:r}):r,Object(c.a)(this.vs instanceof L),Object(c.a)(this.fs instanceof O),this.uniforms={},this._textureUniforms={},i&&i.length>0&&(Object(s.a)(this.gl),this.varyings=i,this.gl2.transformFeedbackVaryings(this.handle,i,o)),this._compileAndLink(),this._readUniformLocationsFromLinkedProgram(),this.configuration=new P(this),this.setProps(t)}delete(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._isCached?this:super.delete(t)}setProps(t){return"uniforms"in t&&this.setUniforms(t.uniforms),this}draw(t){let{logPriority:e,drawMode:n=4,vertexCount:r,offset:i=0,start:o,end:a,isIndexed:l=!1,indexType:u=5123,instanceCount:h=0,isInstanced:f=h>0,vertexArray:d=null,transformFeedback:p,framebuffer:g,parameters:m={},uniforms:y,samplers:_}=t;if((y||_)&&(s.j.deprecated("Program.draw({uniforms})","Program.setUniforms(uniforms)")(),this.setUniforms(y||{})),s.j.priority>=e){const t=g?g.id:"default",i="mode=".concat(Object(D.a)(this.gl,n)," verts=").concat(r," ")+"instances=".concat(h," indexType=").concat(Object(D.a)(this.gl,u)," ")+"isInstanced=".concat(f," isIndexed=").concat(l," ")+"Framebuffer=".concat(t);s.j.log(e,i)()}return Object(c.a)(d),this.gl.useProgram(this.handle),!(!this._areTexturesRenderable()||0===r||f&&0===h)&&(d.bindForDraw(r,h,()=>{if(void 0!==g&&(m=Object.assign({},m,{framebuffer:g})),p){const t=Object(k.c)(n);p.begin(t)}this._bindTextures(),Object(s.n)(this.gl,m,()=>{l&&f?this.gl2.drawElementsInstanced(n,r,u,i,h):l&&Object(s.i)(this.gl)&&!isNaN(o)&&!isNaN(a)?this.gl2.drawRangeElements(n,o,a,r,u,i):l?this.gl.drawElements(n,r,u,i):f?this.gl2.drawArraysInstanced(n,i,r,h):this.gl.drawArrays(n,i,r)}),p&&p.end()}),!0)}setUniforms(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s.j.priority>=2&&function(t,e,n){for(const r in t){const i=t[r];
27if((!n||Boolean(n[r]))&&!b(i))throw e=e?"".concat(e," "):"",console.error("".concat(e," Bad uniform ").concat(r),i),new Error("".concat(e," Bad uniform ").concat(r))}}(t,this.id,this._uniformSetters),this.gl.useProgram(this.handle);for(const e in t){const n=t[e],r=this._uniformSetters[e];if(r){let t=n,s=!1;if(t instanceof o.a&&(t=t.texture),t instanceof i.a)if(s=this.uniforms[e]!==n,s){void 0===r.textureIndex&&(r.textureIndex=this._textureIndexCounter++);const n=t,{textureIndex:i}=r;n.bind(i),t=i,this._textureUniforms[e]=n}else t=r.textureIndex;else this._textureUniforms[e]&&delete this._textureUniforms[e];(r(t)||s)&&x(this.uniforms,e,n)}}return this}_areTexturesRenderable(){let t=!0;for(const e in this._textureUniforms){const n=this._textureUniforms[e];n.update(),t=t&&n.loaded}return t}_bindTextures(){for(const t in this._textureUniforms){const e=this._uniformSetters[t].textureIndex;this._textureUniforms[t].bind(e)}}_createHandle(){return this.gl.createProgram()}_deleteHandle(){this.gl.deleteProgram(this.handle)}_getOptionsFromHandle(t){const e=this.gl.getAttachedShaders(t),n={};for(const t of e){switch(this.gl.getShaderParameter(this.handle,35663)){case 35633:n.vs=new L({handle:t});break;case 35632:n.fs=new O({handle:t})}}return n}_getParameter(t){return this.gl.getProgramParameter(this.handle,t)}_setId(t){if(!t){const t=this._getName();this.id=Object(F.c)(t)}}_getName(){let t=this.vs.getName()||this.fs.getName();return t=t.replace(/shader/i,""),t=t?"".concat(t,"-program"):"program",t}_compileAndLink(){const{gl:t}=this;if(t.attachShader(this.handle,this.vs.handle),t.attachShader(this.handle,this.fs.handle),s.j.time(4,"linkProgram for ".concat(this._getName()))(),t.linkProgram(this.handle),s.j.timeEnd(4,"linkProgram for ".concat(this._getName()))(),t.debug||s.j.level>0){if(!t.getProgramParameter(this.handle,35714))throw new Error("Error linking: ".concat(t.getProgramInfoLog(this.handle)));t.validateProgram(this.handle);if(!t.getProgramParameter(this.handle,35715))throw new Error("Error validating: ".concat(t.getProgramInfoLog(this.handle)))}}_readUniformLocationsFromLinkedProgram(){const{gl:t}=this;this._uniformSetters={},this._uniformCount=this._getParameter(35718);for(let e=0;e<this._uniformCount;e++){const n=this.gl.getActiveUniform(this.handle,e),{name:r}=v(n.name);let i=t.getUniformLocation(this.handle,r);if(this._uniformSetters[r]=_(t,i,n),n.size>1)for(let e=0;e<n.size;e++)i=t.getUniformLocation(this.handle,"".concat(r,"[").concat(e,"]")),this._uniformSetters["".concat(r,"[").concat(e,"]")]=_(t,i,n)}this._textureIndexCounter=0}getActiveUniforms(t,e){return this.gl2.getActiveUniforms(this.handle,t,e)}getUniformBlockIndex(t){return this.gl2.getUniformBlockIndex(this.handle,t)}getActiveUniformBlockParameter(t,e){return this.gl2.getActiveUniformBlockParameter(this.handle,t,e)}uniformBlockBinding(t,e){this.gl2.uniformBlockBinding(this.handle,t,e)}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return C}));var r,i=n(160),o=n(1230),s=n(230),a=n(386),c=n(2229),l=n(1919),u=n(131),h=n(2),f=n.n(h),d=n(69),p=n(0),g=n.n(p),m=n(473),y=n(11),_=n(10),v=n(1920),b=(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),x=function(){return(x=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},w=Object(y.withStateHandlers)((function(){return{tooltip:void 0}}),{setTooltip:function(t){return function(e){return x(x({},t),{tooltip:e})}}}),E=Object(y.withPropsOnChange)((function(t,e){return!Object(d.a)(t.series,e.series)}),(function(t){var e="dark"===Object(l.c)()?[232,162,30,240]:[31,84,220,255];return{layers:t.series.map((function(n,r){var s=n.data.map((function(t){return{position:t}})),a=0===r?e:Object(u.b)(i.d.colorAt(r));return new o.a({data:s,id:"series-"+r,radiusMinPixels:3,pickable:t.wantsTooltips,getColor:function(){return a},onHover:function(e){var r=e.x,i=e.y;e.picked?t.setTooltip({x:r,y:i,title:n.title}):t.setTooltip(void 0)}})}))}})),S=function(t){function e(e){var n=t.call(this,e)||this;return n.state={viewport:{bearing:0,latitude:40.7,longitude:-100,pitch:0,zoom:e.zoom||1}},n}return b(e,t),e.prototype.render=function(){var t=this,e=this.props,n=this.state,r=e.tooltip,i="dark"===Object(l.c)()?s.b.DARK:s.b.LIGHT,o=Object(s.e)()[i];
27return g.a.createElement("div",{className:f()(v.MapValue,v.map,e.className)},g.a.createElement(m.AutoSizer,null,(function(i){var s=i.width,l=i.height;return 0===s||0===l?null:g.a.createElement(g.a.Fragment,null,r&&r.title&&g.a.createElement("div",{className:v.tooltip,style:{left:r.x,top:r.y}},r.title.toUpperCase()),g.a.createElement("div",{className:v.buttons},g.a.createElement(_.a,{shape:_.b.PlusSmall,className:v.icon,onClick:function(){t.changeZoomBy(1)}}),g.a.createElement(_.a,{shape:_.b.MinusSmall,className:v.icon,onClick:function(){t.changeZoomBy(-1)}})),g.a.createElement(a.d,x({mapStyle:o,preserveDrawingBuffer:!0},n.viewport,{width:s,height:l,attributionControl:!1,onViewportChange:function(e){t.setState({viewport:e})}}),g.a.createElement(c.a,{viewState:n.viewport,width:s,height:l,layers:e.layers})))})))},e.prototype.changeZoomBy=function(t){var e=this.state.viewport;this.setState({viewport:x(x({},e),{zoom:e.zoom+t})})},e}(g.a.PureComponent),C=Object(y.compose)(w,E)(S)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(160),i=n(29),o=n(45),s=n(0),a=n.n(s),c=n(1920),l=n(277),u=function(t){var e=t.isPercentage,n=t.margin,s=function(t,e){var n,i=null===(n=null==t?void 0:t.chart_data)||void 0===n?void 0:n.map((function(t){var n=new Date(t[0]),r=parseFloat(t[1]);return e&&(r/=100),{date:n,value:r}}));if(void 0!==i)return i=Object(l.a)(i,(function(t){return t.date})),[{color:r.i,data:i,title:"",axis:"left"}]}(t.value,t.isPercentage),u=parseFloat(t.value.metric_value[0]),h=Object(o.d)(u);return e&&(h+="%"),a.a.createElement("div",null,a.a.createElement("h3",null,h),s&&a.a.createElement(r.f,{className:c.chart,type:i.ChartType.LINE,series:s,axesConfig:{primary:{usePercent:e}},margin:n||{top:5,right:40,bottom:10,left:50},legend:!1,compact:!0}))}},,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){t.exports={exampleContainer:"exampleContainer_hHsK8",map:"map_1vqIR",loading:"loading_2FPjG"}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n.r(e);n(1005),n(1650);var r=n(333),i=n(0),o=n.n(i),s=n(61),a=(n(1038),n(34)),c=n(2737),l=n(2646),u=n(49),h=n(2760),f=function(t){var e=t.companyId,n=t.metricId,r=t.title,s=t.description,f=Object(i.useState)(void 0),d=f[0],p=f[1];Object(i.useEffect)((function(){Object(a.J)(e,n).then((function(t){200===t.status&&p(t.results)}))}),[]);var g=Object(i.useMemo)((function(){return n.endsWith("percentage")}),[n]);return o.a.createElement("a",{href:null==d?void 0:d.url},o.a.createElement("h3",null,o.a.createElement("strong",null,r)," (",e,")"),s&&s.length>0&&o.a.createElement("p",null,s),d?o.a.createElement("div",{className:h.exampleContainer},d.map_data&&o.a.createElement(l.a,{series:[{data:d.map_data}],zoom:2,className:h.map,wantsTooltips:!1}),d.chart_data&&o.a.createElement(c.a,{isPercentage:g,value:d,margin:{top:5,right:10,bottom:25,left:50}})):o.a.createElement(u.a,{className:h.loading}))},d=document.querySelector("#dataset-examples-container");if(d)for(var p=d.children,g=0;g<p.length;g++){var m=p[g],y=Object(r.a)(m.getElementsByClassName("embed"));if(void 0!==y){var _=y.dataset.metricid,v=y.dataset.ticker,b=y.dataset.title,x=y.dataset.description;s.render(o.a.createElement(f,{companyId:v,metricId:_,title:b,description:x}),y)}}}]); 28//# sourceMappingURL=companies-app.4c62c64a5ee64b2ca674.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.