!function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=890)}([function(e,t,n){"use strict";e.exports=n(56)},function(e,t,n){"use strict";function r(e,t,n,r,o,a,s,l){if(i(t),!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,a,s,l],p=0;c=new Error(t.replace(/%s/g,function(){return u[p++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}}var i=function(e){};e.exports=r},function(e,t,n){"use strict";var r=n(12),i=r;e.exports=i},function(e,t,n){"use strict";function r(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,r=0;r2?n-2:0),i=2;i0))return o;do{o.push(new Date(+n))}while(t(n,i),e(n),n=t)for(;e(t),!n(t);)t.setTime(t-1)},function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););})},n&&(s.count=function(t,r){return i.setTime(+t),o.setTime(+r),e(i),e(o),Math.floor(n(i,o))},s.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?s.filter(a?function(t){return a(t)%e==0}:function(t){return s.count(0,t)%e==0}):s:null}),s}t.a=r;var i=new Date,o=new Date},function(e,t,n){"use strict";var r=!("undefined"==typeof window||!window.document||!window.document.createElement),i={canUseDOM:r,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen,isInWorker:!r};e.exports=i},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.experimental=t.SVGOverlay=t.HTMLOverlay=t.CanvasOverlay=t.NavigationControl=t.Popup=t.Marker=t.BaseControl=t.StaticMap=t.InteractiveMap=t.default=void 0;var i=n(329);Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r(i).default}}),Object.defineProperty(t,"InteractiveMap",{enumerable:!0,get:function(){return r(i).default}});var o=n(159);Object.defineProperty(t,"StaticMap",{enumerable:!0,get:function(){return r(o).default}});var a=n(28);Object.defineProperty(t,"BaseControl",{enumerable:!0,get:function(){return r(a).default}});var s=n(330);Object.defineProperty(t,"Marker",{enumerable:!0,get:function(){return r(s).default}});var l=n(332);Object.defineProperty(t,"Popup",{enumerable:!0,get:function(){return r(l).default}});var c=n(331);Object.defineProperty(t,"NavigationControl",{enumerable:!0,get:function(){return r(c).default}});var u=n(335);Object.defineProperty(t,"CanvasOverlay",{enumerable:!0,get:function(){return r(u).default}});var p=n(336);Object.defineProperty(t,"HTMLOverlay",{enumerable:!0,get:function(){return r(p).default}});var d=n(337);Object.defineProperty(t,"SVGOverlay",{enumerable:!0,get:function(){return r(d).default}});var f=n(161),m=r(f),h=n(40),g=r(h);t.experimental={MapControls:m.default,autobind:g.default}},function(e,t,n){"use strict";function r(e){return function(){return e}}var i=function(){};i.thatReturns=r,i.thatReturnsFalse=r(!1),i.thatReturnsTrue=r(!0),i.thatReturnsNull=r(null),i.thatReturnsThis=function(){return this},i.thatReturnsArgument=function(e){return e},e.exports=i},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(176);n.d(t,"bisect",function(){return r.a}),n.d(t,"bisectRight",function(){return r.b}),n.d(t,"bisectLeft",function(){return r.c});var i=n(46);n.d(t,"ascending",function(){return i.a});var o=n(177);n.d(t,"bisector",function(){return o.a});var a=n(404);n.d(t,"cross",function(){return a.a});var s=n(405);n.d(t,"descending",function(){return s.a});var l=n(178);n.d(t,"deviation",function(){return l.a});var c=n(179);n.d(t,"extent",function(){return c.a});var u=n(406);n.d(t,"histogram",function(){return u.a});var p=n(416);n.d(t,"thresholdFreedmanDiaconis",function(){return p.a});var d=n(417);n.d(t,"thresholdScott",function(){return d.a});var f=n(183);n.d(t,"thresholdSturges",function(){return f.a});var m=n(408);n.d(t,"max",function(){return m.a});var h=n(409);n.d(t,"mean",function(){return h.a});var g=n(410);n.d(t,"median",function(){return g.a});var v=n(411);n.d(t,"merge",function(){return v.a});var _=n(180);n.d(t,"min",function(){return _.a});var y=n(181);n.d(t,"pairs",function(){return y.a});var b=n(412);n.d(t,"permute",function(){return b.a});var x=n(112);n.d(t,"quantile",function(){return x.a});var w=n(182);n.d(t,"range",function(){return w.a});var E=n(413);n.d(t,"scan",function(){return E.a});var M=n(414);n.d(t,"shuffle",function(){return M.a});var A=n(415);n.d(t,"sum",function(){return A.a});var S=n(184);n.d(t,"ticks",function(){return S.a}),n.d(t,"tickIncrement",function(){return S.b}),n.d(t,"tickStep",function(){return S.c});var C=n(185);n.d(t,"transpose",function(){return C.a});var T=n(186);n.d(t,"variance",function(){return T.a});var N=n(418);n.d(t,"zip",function(){return N.a})},function(e,t,n){!function(t,n){e.exports=n()}(0,function(){"use strict";function e(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function t(e){return o(e)?e:N(e)}function n(e){return a(e)?e:O(e)}function r(e){return s(e)?e:D(e)}function i(e){return o(e)&&!l(e)?e:I(e)}function o(e){return!(!e||!e[cn])}function a(e){return!(!e||!e[un])}function s(e){return!(!e||!e[pn])}function l(e){return a(e)||s(e)}function c(e){return!(!e||!e[dn])}function u(e){return e.value=!1,e}function p(e){e&&(e.value=!0)}function d(){}function f(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),i=0;i>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?m(e)+t:t}function g(){return!0}function v(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function _(e,t){return b(e,t,0)}function y(e,t){return b(e,t,t)}function b(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}function x(e){this.next=e}function w(e,t,n,r){var i=0===e?t:1===e?n:[t,n];return r?r.value=i:r={value:i,done:!1},r}function E(){return{value:void 0,done:!0}}function M(e){return!!C(e)}function A(e){return e&&"function"==typeof e.next}function S(e){var t=C(e);return t&&t.call(e)}function C(e){var t=e&&(wn&&e[wn]||e[En]);if("function"==typeof t)return t}function T(e){return e&&"number"==typeof e.length}function N(e){return null===e||void 0===e?z():o(e)?e.toSeq():U(e)}function O(e){return null===e||void 0===e?z().toKeyedSeq():o(e)?a(e)?e.toSeq():e.fromEntrySeq():B(e)}function D(e){return null===e||void 0===e?z():o(e)?a(e)?e.entrySeq():e.toIndexedSeq():F(e)}function I(e){return(null===e||void 0===e?z():o(e)?a(e)?e.entrySeq():e:F(e)).toSetSeq()}function L(e){this._array=e,this.size=e.length}function k(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function P(e){this._iterable=e,this.size=e.length||e.size}function R(e){this._iterator=e,this._iteratorCache=[]}function j(e){return!(!e||!e[An])}function z(){return Sn||(Sn=new L([]))}function B(e){var t=Array.isArray(e)?new L(e).fromEntrySeq():A(e)?new R(e).fromEntrySeq():M(e)?new P(e).fromEntrySeq():"object"==typeof e?new k(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function F(e){var t=G(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function U(e){var t=G(e)||"object"==typeof e&&new k(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}function G(e){return T(e)?new L(e):A(e)?new R(e):M(e)?new P(e):void 0}function q(e,t,n,r){var i=e._cache;if(i){for(var o=i.length-1,a=0;a<=o;a++){var s=i[n?o-a:a];if(!1===t(s[1],r?s[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function V(e,t,n,r){var i=e._cache;if(i){var o=i.length-1,a=0;return new x(function(){var e=i[n?o-a:a];return a++>o?E():w(t,r?e[0]:a-1,e[1])})}return e.__iteratorUncached(t,n)}function H(e,t){return t?W(t,e,"",{"":e}):Z(e)}function W(e,t,n,r){return Array.isArray(t)?e.call(r,n,D(t).map(function(n,r){return W(e,n,r,t)})):Y(t)?e.call(r,n,O(t).map(function(n,r){return W(e,n,r,t)})):t}function Z(e){return Array.isArray(e)?D(e).map(Z).toList():Y(e)?O(e).map(Z).toMap():e}function Y(e){return e&&(e.constructor===Object||void 0===e.constructor)}function $(e,t){if(e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if(e=e.valueOf(),t=t.valueOf(),e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function Q(e,t){if(e===t)return!0;if(!o(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||a(e)!==a(t)||s(e)!==s(t)||c(e)!==c(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!l(e);if(c(e)){var r=e.entries();return t.every(function(e,t){var i=r.next().value;return i&&$(i[1],e)&&(n||$(i[0],t))})&&r.next().done}var i=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{i=!0;var u=e;e=t,t=u}var p=!0,d=t.__iterate(function(t,r){if(n?!e.has(t):i?!$(t,e.get(r,gn)):!$(e.get(r,gn),t))return p=!1,!1});return p&&e.size===d}function K(e,t){if(!(this instanceof K))return new K(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(Cn)return Cn;Cn=this}}function X(e,t){if(!e)throw new Error(t)}function J(e,t,n){if(!(this instanceof J))return new J(e,t,n);if(X(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t>>1&1073741824|3221225471&e}function oe(e){if(!1===e||null===e||void 0===e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null===e||void 0===e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){if(e!==e||e===1/0)return 0;var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)e/=4294967295,n^=e;return ie(n)}if("string"===t)return e.length>Rn?ae(e):se(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return le(e);if("function"==typeof e.toString)return se(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function ae(e){var t=Bn[e];return void 0===t&&(t=se(e),zn===jn&&(zn=0,Bn={}),zn++,Bn[e]=t),t}function se(e){for(var t=0,n=0;n0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}function ue(e){X(e!==1/0,"Cannot perform this action with an infinite size.")}function pe(e){return null===e||void 0===e?we():de(e)&&!c(e)?e:we().withMutations(function(t){var r=n(e);ue(r.size),r.forEach(function(e,n){return t.set(n,e)})})}function de(e){return!(!e||!e[Fn])}function fe(e,t){this.ownerID=e,this.entries=t}function me(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function he(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function ge(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function ve(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function _e(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&be(e._root)}function ye(e,t){return w(e,t[0],t[1])}function be(e,t){return{node:e,index:0,__prev:t}}function xe(e,t,n,r){var i=Object.create(Un);return i.size=e,i._root=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function we(){return Gn||(Gn=xe(0))}function Ee(e,t,n){var r,i;if(e._root){var o=u(vn),a=u(_n);if(r=Me(e._root,e.__ownerID,0,void 0,t,n,o,a),!a.value)return e;i=e.size+(o.value?n===gn?-1:1:0)}else{if(n===gn)return e;i=1,r=new fe(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=i,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?xe(i,r):we()}function Me(e,t,n,r,i,o,a,s){return e?e.update(t,n,r,i,o,a,s):o===gn?e:(p(s),p(a),new ve(t,r,[i,o]))}function Ae(e){return e.constructor===ve||e.constructor===ge}function Se(e,t,n,r,i){if(e.keyHash===r)return new ge(t,r,[e.entry,i]);var o,a=(0===n?e.keyHash:e.keyHash>>>n)&hn,s=(0===n?r:r>>>n)&hn;return new me(t,1<>>=1)a[s]=1&n?t[o++]:void 0;return a[r]=i,new he(e,o+1,a)}function Oe(e,t,r){for(var i=[],a=0;a>1&1431655765,e=(858993459&e)+(e>>2&858993459),e=e+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function Re(e,t,n,r){var i=r?e:f(e);return i[t]=n,i}function je(e,t,n,r){var i=e.length+1;if(r&&t+1===i)return e[t]=n,e;for(var o=new Array(i),a=0,s=0;s0&&io?0:o-n,c=a-n;return c>mn&&(c=mn),function(){if(i===c)return $n;var e=t?--c:i++;return r&&r[e]}}function i(e,r,i){var s,l=e&&e.array,c=i>o?0:o-i>>r,u=1+(a-i>>r);return u>mn&&(u=mn),function(){for(;;){if(s){var e=s();if(e!==$n)return e;s=null}if(c===u)return $n;var o=t?--u:c++;s=n(l&&l[o],r-fn,i+(o<=e.size||t<0)return e.withMutations(function(e){t<0?$e(e,t).set(0,n):$e(e,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,i=e._root,o=u(_n);return t>=Ke(e._capacity)?r=We(r,e.__ownerID,0,t,n,o):i=We(i,e.__ownerID,e._level,t,n,o),o.value?e.__ownerID?(e._root=i,e._tail=r,e.__hash=void 0,e.__altered=!0,e):qe(e._origin,e._capacity,e._level,i,r):e}function We(e,t,n,r,i,o){var a=r>>>n&hn,s=e&&a0){var c=e&&e.array[a],u=We(c,t,n-fn,r,i,o);return u===c?e:(l=Ze(e,t),l.array[a]=u,l)}return s&&e.array[a]===i?e:(p(o),l=Ze(e,t),void 0===i&&a===l.array.length-1?l.array.pop():l.array[a]=i,l)}function Ze(e,t){return t&&e&&t===e.ownerID?e:new Ue(e?e.array.slice():[],t)}function Ye(e,t){if(t>=Ke(e._capacity))return e._tail;if(t<1<0;)n=n.array[t>>>r&hn],r-=fn;return n}}function $e(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new d,i=e._origin,o=e._capacity,a=i+t,s=void 0===n?o:n<0?o+n:i+n;if(a===i&&s===o)return e;if(a>=s)return e.clear();for(var l=e._level,c=e._root,u=0;a+u<0;)c=new Ue(c&&c.array.length?[void 0,c]:[],r),l+=fn,u+=1<=1<p?new Ue([],r):m;if(m&&f>p&&afn;v-=fn){var _=p>>>v&hn;g=g.array[_]=Ze(g.array[_],r)}g.array[p>>>fn&hn]=m}if(s=f)a-=f,s-=f,l=fn,c=null,h=h&&h.removeBefore(r,0,a);else if(a>i||f>>l&hn;if(y!==f>>>l&hn)break;y&&(u+=(1<i&&(c=c.removeBefore(r,l,a-u)),c&&fa&&(a=c.size),o(l)||(c=c.map(function(e){return H(e)})),i.push(c)}return a>e.size&&(e=e.setSize(a)),Le(e,t,i)}function Ke(e){return e>>fn<=mn&&a.size>=2*o.size?(i=a.filter(function(e,t){return void 0!==e&&s!==t}),r=i.toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(r.__ownerID=i.__ownerID=e.__ownerID)):(r=o.remove(t),i=s===a.size-1?a.pop():a.set(s,void 0))}else if(l){if(n===a.get(s)[1])return e;r=o,i=a.set(s,[t,n])}else r=o.set(t,a.size),i=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=i,e.__hash=void 0,e):et(r,i)}function rt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function it(e){this._iter=e,this.size=e.size}function ot(e){this._iter=e,this.size=e.size}function at(e){this._iter=e,this.size=e.size}function st(e){var t=Tt(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=Nt,t.__iterateUncached=function(t,n){var r=this;return e.__iterate(function(e,n){return!1!==t(n,e,r)},n)},t.__iteratorUncached=function(t,n){if(t===xn){var r=e.__iterator(t,n);return new x(function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e})}return e.__iterator(t===bn?yn:bn,n)},t}function lt(e,t,n){var r=Tt(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,i){var o=e.get(r,gn);return o===gn?i:t.call(n,o,r,e)},r.__iterateUncached=function(r,i){var o=this;return e.__iterate(function(e,i,a){return!1!==r(t.call(n,e,i,a),i,o)},i)},r.__iteratorUncached=function(r,i){var o=e.__iterator(xn,i);return new x(function(){var i=o.next();if(i.done)return i;var a=i.value,s=a[0];return w(r,s,t.call(n,a[1],s,e),i)})},r}function ct(e,t){var n=Tt(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=st(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=Nt,n.__iterate=function(t,n){var r=this;return e.__iterate(function(e,n){return t(e,n,r)},!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function ut(e,t,n,r){var i=Tt(e);return r&&(i.has=function(r){var i=e.get(r,gn);return i!==gn&&!!t.call(n,i,r,e)},i.get=function(r,i){var o=e.get(r,gn);return o!==gn&&t.call(n,o,r,e)?o:i}),i.__iterateUncached=function(i,o){var a=this,s=0;return e.__iterate(function(e,o,l){if(t.call(n,e,o,l))return s++,i(e,r?o:s-1,a)},o),s},i.__iteratorUncached=function(i,o){var a=e.__iterator(xn,o),s=0;return new x(function(){for(;;){var o=a.next();if(o.done)return o;var l=o.value,c=l[0],u=l[1];if(t.call(n,u,c,e))return w(i,r?c:s++,u,o)}})},i}function pt(e,t,n){var r=pe().asMutable();return e.__iterate(function(i,o){r.update(t.call(n,i,o,e),0,function(e){return e+1})}),r.asImmutable()}function dt(e,t,n){var r=a(e),i=(c(e)?Xe():pe()).asMutable();e.__iterate(function(o,a){i.update(t.call(n,o,a,e),function(e){return e=e||[],e.push(r?[a,o]:o),e})});var o=Ct(e);return i.map(function(t){return Mt(e,o(t))})}function ft(e,t,n,r){var i=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n===1/0?n=i:n|=0),v(t,n,i))return e;var o=_(t,i),a=y(n,i);if(o!==o||a!==a)return ft(e.toSeq().cacheResult(),t,n,r);var s,l=a-o;l===l&&(s=l<0?0:l);var c=Tt(e);return c.size=0===s?s:e.size&&s||void 0,!r&&j(e)&&s>=0&&(c.get=function(t,n){return t=h(this,t),t>=0&&ts)return E();var e=i.next();return r||t===bn?e:t===yn?w(t,l-1,void 0,e):w(t,l-1,e.value[1],e)})},c}function mt(e,t,n){var r=Tt(e);return r.__iterateUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterate(r,i);var a=0;return e.__iterate(function(e,i,s){return t.call(n,e,i,s)&&++a&&r(e,i,o)}),a},r.__iteratorUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterator(r,i);var a=e.__iterator(xn,i),s=!0;return new x(function(){if(!s)return E();var e=a.next();if(e.done)return e;var i=e.value,l=i[0],c=i[1];return t.call(n,c,l,o)?r===xn?e:w(r,l,c,e):(s=!1,E())})},r}function ht(e,t,n,r){var i=Tt(e);return i.__iterateUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterate(i,o);var s=!0,l=0;return e.__iterate(function(e,o,c){if(!s||!(s=t.call(n,e,o,c)))return l++,i(e,r?o:l-1,a)}),l},i.__iteratorUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterator(i,o);var s=e.__iterator(xn,o),l=!0,c=0;return new x(function(){var e,o,u;do{if(e=s.next(),e.done)return r||i===bn?e:i===yn?w(i,c++,void 0,e):w(i,c++,e.value[1],e);var p=e.value;o=p[0],u=p[1],l&&(l=t.call(n,u,o,a))}while(l);return i===xn?e:w(i,o,u,e)})},i}function gt(e,t){var r=a(e),i=[e].concat(t).map(function(e){return o(e)?r&&(e=n(e)):e=r?B(e):F(Array.isArray(e)?e:[e]),e}).filter(function(e){return 0!==e.size});if(0===i.length)return e;if(1===i.length){var l=i[0];if(l===e||r&&a(l)||s(e)&&s(l))return l}var c=new L(i);return r?c=c.toKeyedSeq():s(e)||(c=c.toSetSeq()),c=c.flatten(!0),c.size=i.reduce(function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}},0),c}function vt(e,t,n){var r=Tt(e);return r.__iterateUncached=function(r,i){function a(e,c){var u=this;e.__iterate(function(e,i){return(!t||c0}function Et(e,n,r){var i=Tt(e);return i.size=new L(r).map(function(e){return e.size}).min(),i.__iterate=function(e,t){for(var n,r=this.__iterator(bn,t),i=0;!(n=r.next()).done&&!1!==e(n.value,i++,this););return i},i.__iteratorUncached=function(e,i){var o=r.map(function(e){return e=t(e),S(i?e.reverse():e)}),a=0,s=!1;return new x(function(){var t;return s||(t=o.map(function(e){return e.next()}),s=t.some(function(e){return e.done})),s?E():w(e,a++,n.apply(null,t.map(function(e){return e.value})))})},i}function Mt(e,t){return j(e)?t:e.constructor(t)}function At(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function St(e){return ue(e.size),m(e)}function Ct(e){return a(e)?n:s(e)?r:i}function Tt(e){return Object.create((a(e)?O:s(e)?D:I).prototype)}function Nt(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):N.prototype.cacheResult.call(this)}function Ot(e,t){return e>t?1:et?-1:0}function on(e){if(e.size===1/0)return 0;var t=c(e),n=a(e),r=t?1:0;return an(e.__iterate(n?t?function(e,t){r=31*r+sn(oe(e),oe(t))|0}:function(e,t){r=r+sn(oe(e),oe(t))|0}:t?function(e){r=31*r+oe(e)|0}:function(e){r=r+oe(e)|0}),r)}function an(e,t){return t=On(t,3432918353),t=On(t<<15|t>>>-15,461845907),t=On(t<<13|t>>>-13,5),t=(t+3864292196|0)^e,t=On(t^t>>>16,2246822507),t=On(t^t>>>13,3266489909),t=ie(t^t>>>16)}function sn(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}var ln=Array.prototype.slice;e(n,t),e(r,t),e(i,t),t.isIterable=o,t.isKeyed=a,t.isIndexed=s,t.isAssociative=l,t.isOrdered=c,t.Keyed=n,t.Indexed=r,t.Set=i;var cn="@@__IMMUTABLE_ITERABLE__@@",un="@@__IMMUTABLE_KEYED__@@",pn="@@__IMMUTABLE_INDEXED__@@",dn="@@__IMMUTABLE_ORDERED__@@",fn=5,mn=1<r?E():w(e,i,n[t?r-i++:i++])})},e(k,O),k.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},k.prototype.has=function(e){return this._object.hasOwnProperty(e)},k.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,i=r.length-1,o=0;o<=i;o++){var a=r[t?i-o:o];if(!1===e(n[a],a,this))return o+1}return o},k.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,i=r.length-1,o=0;return new x(function(){var a=r[t?i-o:o];return o++>i?E():w(e,a,n[a])})},k.prototype[dn]=!0,e(P,D),P.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=this._iterable,r=S(n),i=0;if(A(r))for(var o;!(o=r.next()).done&&!1!==e(o.value,i++,this););return i},P.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterable,r=S(n);if(!A(r))return new x(E);var i=0;return new x(function(){var t=r.next();return t.done?t:w(e,i++,t.value)})},e(R,D),R.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n=this._iterator,r=this._iteratorCache,i=0;i=r.length){var t=n.next();if(t.done)return t;r[i]=t.value}return w(e,i,r[i++])})};var Sn;e(K,D),K.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},K.prototype.get=function(e,t){return this.has(e)?this._value:t},K.prototype.includes=function(e){return $(this._value,e)},K.prototype.slice=function(e,t){var n=this.size;return v(e,t,n)?this:new K(this._value,y(t,n)-_(e,n))},K.prototype.reverse=function(){return this},K.prototype.indexOf=function(e){return $(this._value,e)?0:-1},K.prototype.lastIndexOf=function(e){return $(this._value,e)?this.size:-1},K.prototype.__iterate=function(e,t){for(var n=0;n=0&&t=0&&nn?E():w(e,o++,a)})},J.prototype.equals=function(e){return e instanceof J?this._start===e._start&&this._end===e._end&&this._step===e._step:Q(this,e)};var Tn;e(ee,t),e(te,ee),e(ne,ee),e(re,ee),ee.Keyed=te,ee.Indexed=ne,ee.Set=re;var Nn,On="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){e|=0,t|=0;var n=65535&e,r=65535&t;return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0},Dn=Object.isExtensible,In=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}(),Ln="function"==typeof WeakMap;Ln&&(Nn=new WeakMap);var kn=0,Pn="__immutablehash__";"function"==typeof Symbol&&(Pn=Symbol(Pn));var Rn=16,jn=255,zn=0,Bn={};e(pe,te),pe.of=function(){var e=ln.call(arguments,0);return we().withMutations(function(t){for(var n=0;n=e.length)throw new Error("Missing value for key: "+e[n]);t.set(e[n],e[n+1])}})},pe.prototype.toString=function(){return this.__toString("Map {","}")},pe.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},pe.prototype.set=function(e,t){return Ee(this,e,t)},pe.prototype.setIn=function(e,t){return this.updateIn(e,gn,function(){return t})},pe.prototype.remove=function(e){return Ee(this,e,gn)},pe.prototype.deleteIn=function(e){return this.updateIn(e,function(){return gn})},pe.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},pe.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=ke(this,Dt(e),t,n);return r===gn?void 0:r},pe.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):we()},pe.prototype.merge=function(){return Oe(this,void 0,arguments)},pe.prototype.mergeWith=function(e){return Oe(this,e,ln.call(arguments,1))},pe.prototype.mergeIn=function(e){var t=ln.call(arguments,1);return this.updateIn(e,we(),function(e){return"function"==typeof e.merge?e.merge.apply(e,t):t[t.length-1]})},pe.prototype.mergeDeep=function(){return Oe(this,De,arguments)},pe.prototype.mergeDeepWith=function(e){var t=ln.call(arguments,1);return Oe(this,Ie(e),t)},pe.prototype.mergeDeepIn=function(e){var t=ln.call(arguments,1);return this.updateIn(e,we(),function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,t):t[t.length-1]})},pe.prototype.sort=function(e){return Xe(bt(this,e))},pe.prototype.sortBy=function(e,t){return Xe(bt(this,t,e))},pe.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},pe.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new d)},pe.prototype.asImmutable=function(){return this.__ensureOwner()},pe.prototype.wasAltered=function(){return this.__altered},pe.prototype.__iterator=function(e,t){return new _e(this,e,t)},pe.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate(function(t){return r++,e(t[1],t[0],n)},t),r},pe.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?xe(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},pe.isMap=de;var Fn="@@__IMMUTABLE_MAP__@@",Un=pe.prototype;Un[Fn]=!0,Un.delete=Un.remove,Un.removeIn=Un.deleteIn,fe.prototype.get=function(e,t,n,r){for(var i=this.entries,o=0,a=i.length;o=qn)return Ce(e,l,r,i);var m=e&&e===this.ownerID,h=m?l:f(l);return d?s?c===u-1?h.pop():h[c]=h.pop():h[c]=[r,i]:h.push([r,i]),m?(this.entries=h,this):new fe(e,h)}},me.prototype.get=function(e,t,n,r){void 0===t&&(t=oe(n));var i=1<<((0===e?t:t>>>e)&hn),o=this.bitmap;return 0==(o&i)?r:this.nodes[Pe(o&i-1)].get(e+fn,t,n,r)},me.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=oe(r));var s=(0===t?n:n>>>t)&hn,l=1<=Vn)return Ne(e,d,c,s,m);if(u&&!m&&2===d.length&&Ae(d[1^p]))return d[1^p];if(u&&m&&1===d.length&&Ae(m))return m;var h=e&&e===this.ownerID,g=u?m?c:c^l:c|l,v=u?m?Re(d,p,m,h):ze(d,p,h):je(d,p,m,h);return h?(this.bitmap=g,this.nodes=v,this):new me(e,g,v)},he.prototype.get=function(e,t,n,r){void 0===t&&(t=oe(n));var i=(0===e?t:t>>>e)&hn,o=this.nodes[i];return o?o.get(e+fn,t,n,r):r},he.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=oe(r));var s=(0===t?n:n>>>t)&hn,l=i===gn,c=this.nodes,u=c[s];if(l&&!u)return this;var p=Me(u,e,t+fn,n,r,i,o,a);if(p===u)return this;var d=this.count;if(u){if(!p&&--d=0&&e>>t&hn;if(r>=this.array.length)return new Ue([],e);var i,o=0===r;if(t>0){var a=this.array[r];if((i=a&&a.removeBefore(e,t-fn,n))===a&&o)return this}if(o&&!i)return this;var s=Ze(this,e);if(!o)for(var l=0;l>>t&hn;if(r>=this.array.length)return this;var i;if(t>0){var o=this.array[r];if((i=o&&o.removeAfter(e,t-fn,n))===o&&r===this.array.length-1)return this}var a=Ze(this,e);return a.array.splice(r+1),i&&(a.array[r]=i),a};var Yn,$n={};e(Xe,pe),Xe.of=function(){return this(arguments)},Xe.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Xe.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},Xe.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):tt()},Xe.prototype.set=function(e,t){return nt(this,e,t)},Xe.prototype.remove=function(e){return nt(this,e,gn)},Xe.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Xe.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate(function(t){return t&&e(t[1],t[0],n)},t)},Xe.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Xe.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?et(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Xe.isOrderedMap=Je,Xe.prototype[dn]=!0,Xe.prototype.delete=Xe.prototype.remove;var Qn;e(rt,O),rt.prototype.get=function(e,t){return this._iter.get(e,t)},rt.prototype.has=function(e){return this._iter.has(e)},rt.prototype.valueSeq=function(){return this._iter.valueSeq()},rt.prototype.reverse=function(){var e=this,t=ct(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},rt.prototype.map=function(e,t){var n=this,r=lt(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},rt.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?St(this):0,function(i){return e(i,t?--n:n++,r)}),t)},rt.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(bn,t),r=t?St(this):0;return new x(function(){var i=n.next();return i.done?i:w(e,t?--r:r++,i.value,i)})},rt.prototype[dn]=!0,e(it,D),it.prototype.includes=function(e){return this._iter.includes(e)},it.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate(function(t){return e(t,r++,n)},t)},it.prototype.__iterator=function(e,t){var n=this._iter.__iterator(bn,t),r=0;return new x(function(){var t=n.next();return t.done?t:w(e,r++,t.value,t)})},e(ot,I),ot.prototype.has=function(e){return this._iter.includes(e)},ot.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){return e(t,t,n)},t)},ot.prototype.__iterator=function(e,t){var n=this._iter.__iterator(bn,t);return new x(function(){var t=n.next();return t.done?t:w(e,t.value,t.value,t)})},e(at,O),at.prototype.entrySeq=function(){return this._iter.toSeq()},at.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){if(t){At(t);var r=o(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}},t)},at.prototype.__iterator=function(e,t){var n=this._iter.__iterator(bn,t);return new x(function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){At(r);var i=o(r);return w(e,i?r.get(0):r[0],i?r.get(1):r[1],t)}}})},it.prototype.cacheResult=rt.prototype.cacheResult=ot.prototype.cacheResult=at.prototype.cacheResult=Nt,e(It,te),It.prototype.toString=function(){return this.__toString(kt(this)+" {","}")},It.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},It.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},It.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=Lt(this,we()))},It.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+kt(this));if(this._map&&!this._map.has(e)){if(t===this._defaultValues[e])return this}var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this:Lt(this,n)},It.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:Lt(this,t)},It.prototype.wasAltered=function(){return this._map.wasAltered()},It.prototype.__iterator=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterator(e,t)},It.prototype.__iterate=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterate(e,t)},It.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?Lt(this,t,e):(this.__ownerID=e,this._map=t,this)};var Kn=It.prototype;Kn.delete=Kn.remove,Kn.deleteIn=Kn.removeIn=Un.removeIn,Kn.merge=Un.merge,Kn.mergeWith=Un.mergeWith,Kn.mergeIn=Un.mergeIn,Kn.mergeDeep=Un.mergeDeep,Kn.mergeDeepWith=Un.mergeDeepWith,Kn.mergeDeepIn=Un.mergeDeepIn,Kn.setIn=Un.setIn,Kn.update=Un.update,Kn.updateIn=Un.updateIn,Kn.withMutations=Un.withMutations,Kn.asMutable=Un.asMutable,Kn.asImmutable=Un.asImmutable,e(jt,re),jt.of=function(){return this(arguments)},jt.fromKeys=function(e){return this(n(e).keySeq())},jt.prototype.toString=function(){return this.__toString("Set {","}")},jt.prototype.has=function(e){return this._map.has(e)},jt.prototype.add=function(e){return Bt(this,this._map.set(e,!0))},jt.prototype.remove=function(e){return Bt(this,this._map.remove(e))},jt.prototype.clear=function(){return Bt(this,this._map.clear())},jt.prototype.union=function(){var e=ln.call(arguments,0);return e=e.filter(function(e){return 0!==e.size}),0===e.length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations(function(t){for(var n=0;n=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Yt(e,t)},Wt.prototype.pushAll=function(e){if(e=r(e),0===e.size)return this;ue(e.size);var t=this.size,n=this._head;return e.reverse().forEach(function(e){t++,n={value:e,next:n}}),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Yt(t,n)},Wt.prototype.pop=function(){return this.slice(1)},Wt.prototype.unshift=function(){return this.push.apply(this,arguments)},Wt.prototype.unshiftAll=function(e){return this.pushAll(e)},Wt.prototype.shift=function(){return this.pop.apply(this,arguments)},Wt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):$t()},Wt.prototype.slice=function(e,t){if(v(e,t,this.size))return this;var n=_(e,this.size);if(y(t,this.size)!==this.size)return ne.prototype.slice.call(this,e,t);for(var r=this.size-n,i=this._head;n--;)i=i.next;return this.__ownerID?(this.size=r,this._head=i,this.__hash=void 0,this.__altered=!0,this):Yt(r,i)},Wt.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Yt(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Wt.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},Wt.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new x(function(){if(r){var t=r.value;return r=r.next,w(e,n++,t)}return E()})},Wt.isStack=Zt;var rr="@@__IMMUTABLE_STACK__@@",ir=Wt.prototype;ir[rr]=!0,ir.withMutations=Un.withMutations,ir.asMutable=Un.asMutable,ir.asImmutable=Un.asImmutable,ir.wasAltered=Un.wasAltered;var or;t.Iterator=x,Qt(t,{toArray:function(){ue(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate(function(t,n){e[n]=t}),e},toIndexedSeq:function(){return new it(this)},toJS:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJS?e.toJS():e}).__toJS()},toJSON:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e}).__toJS()},toKeyedSeq:function(){return new rt(this,!0)},toMap:function(){return pe(this.toKeyedSeq())},toObject:function(){ue(this.size);var e={};return this.__iterate(function(t,n){e[n]=t}),e},toOrderedMap:function(){return Xe(this.toKeyedSeq())},toOrderedSet:function(){return Gt(a(this)?this.valueSeq():this)},toSet:function(){return jt(a(this)?this.valueSeq():this)},toSetSeq:function(){return new ot(this)},toSeq:function(){return s(this)?this.toIndexedSeq():a(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Wt(a(this)?this.valueSeq():this)},toList:function(){return Be(a(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){return Mt(this,gt(this,ln.call(arguments,0)))},includes:function(e){return this.some(function(t){return $(t,e)})},entries:function(){return this.__iterator(xn)},every:function(e,t){ue(this.size);var n=!0;return this.__iterate(function(r,i,o){if(!e.call(t,r,i,o))return n=!1,!1}),n},filter:function(e,t){return Mt(this,ut(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},forEach:function(e,t){return ue(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){ue(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate(function(r){n?n=!1:t+=e,t+=null!==r&&void 0!==r?r.toString():""}),t},keys:function(){return this.__iterator(yn)},map:function(e,t){return Mt(this,lt(this,e,t))},reduce:function(e,t,n){ue(this.size);var r,i;return arguments.length<2?i=!0:r=t,this.__iterate(function(t,o,a){i?(i=!1,r=t):r=e.call(n,r,t,o,a)}),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return Mt(this,ct(this,!0))},slice:function(e,t){return Mt(this,ft(this,e,t,!0))},some:function(e,t){return!this.every(Jt(e),t)},sort:function(e){return Mt(this,bt(this,e))},values:function(){return this.__iterator(bn)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(e,t){return m(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return pt(this,e,t)},equals:function(e){return Q(this,e)},entrySeq:function(){var e=this;if(e._cache)return new L(e._cache);var t=e.toSeq().map(Xt).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(Jt(e),t)},findEntry:function(e,t,n){var r=n;return this.__iterate(function(n,i,o){if(e.call(t,n,i,o))return r=[i,n],!1}),r},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},findLastEntry:function(e,t,n){return this.toKeyedSeq().reverse().findEntry(e,t,n)},findLastKey:function(e,t){return this.toKeyedSeq().reverse().findKey(e,t)},first:function(){return this.find(g)},flatMap:function(e,t){return Mt(this,_t(this,e,t))},flatten:function(e){return Mt(this,vt(this,e,!0))},fromEntrySeq:function(){return new at(this)},get:function(e,t){return this.find(function(t,n){return $(n,e)},void 0,t)},getIn:function(e,t){for(var n,r=this,i=Dt(e);!(n=i.next()).done;){var o=n.value;if((r=r&&r.get?r.get(o,gn):gn)===gn)return t}return r},groupBy:function(e,t){return dt(this,e,t)},has:function(e){return this.get(e,gn)!==gn},hasIn:function(e){return this.getIn(e,gn)!==gn},isSubset:function(e){return e="function"==typeof e.includes?e:t(e),this.every(function(t){return e.includes(t)})},isSuperset:function(e){return e="function"==typeof e.isSubset?e:t(e),e.isSubset(this)},keyOf:function(e){return this.findKey(function(t){return $(t,e)})},keySeq:function(){return this.toSeq().map(Kt).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return xt(this,e)},maxBy:function(e,t){return xt(this,t,e)},min:function(e){return xt(this,e?en(e):rn)},minBy:function(e,t){return xt(this,t?en(t):rn,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return Mt(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return Mt(this,ht(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(Jt(e),t)},sortBy:function(e,t){return Mt(this,bt(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return Mt(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return Mt(this,mt(this,e,t))},takeUntil:function(e,t){return this.takeWhile(Jt(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=on(this))}});var ar=t.prototype;ar[cn]=!0,ar[Mn]=ar.values,ar.__toJS=ar.toArray,ar.__toStringMapper=tn,ar.inspect=ar.toSource=function(){return this.toString()},ar.chain=ar.flatMap,ar.contains=ar.includes,Qt(n,{flip:function(){return Mt(this,st(this))},mapEntries:function(e,t){var n=this,r=0;return Mt(this,this.toSeq().map(function(i,o){return e.call(t,[o,i],r++,n)}).fromEntrySeq())},mapKeys:function(e,t){var n=this;return Mt(this,this.toSeq().flip().map(function(r,i){return e.call(t,r,i,n)}).flip())}});var sr=n.prototype;return sr[un]=!0,sr[Mn]=ar.entries,sr.__toJS=ar.toObject,sr.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+tn(e)},Qt(r,{toKeyedSeq:function(){return new rt(this,!1)},filter:function(e,t){return Mt(this,ut(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return void 0===t?-1:t},reverse:function(){return Mt(this,ct(this,!1))},slice:function(e,t){return Mt(this,ft(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=_(e,e<0?this.count():this.size);var r=this.slice(0,e);return Mt(this,1===n?r:r.concat(f(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.findLastEntry(e,t);return n?n[0]:-1},first:function(){return this.get(0)},flatten:function(e){return Mt(this,vt(this,e,!1))},get:function(e,t){return e=h(this,e),e<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find(function(t,n){return n===e},void 0,t)},has:function(e){return(e=h(this,e))>=0&&(void 0!==this.size?this.size===1/0||e should not have a "'+t+'" prop')}t.__esModule=!0,t.routes=t.route=t.components=t.component=t.history=void 0,t.falsy=r;var i=n(0),o=i.PropTypes.func,a=i.PropTypes.object,s=i.PropTypes.arrayOf,l=i.PropTypes.oneOfType,c=i.PropTypes.element,u=i.PropTypes.shape,p=i.PropTypes.string,d=(t.history=u({listen:o.isRequired,push:o.isRequired,replace:o.isRequired,go:o.isRequired,goBack:o.isRequired,goForward:o.isRequired}),t.component=l([o,p])),f=(t.components=l([d,a]),t.route=l([a,c]));t.routes=l([f,s(f)])},function(e,t,n){"use strict";function r(e){var t=Object.getPrototypeOf(e),n=Object.getOwnPropertyNames(t),r=!0,o=!1,a=void 0;try{for(var s,l=n[Symbol.iterator]();!(r=(s=l.next()).done);r=!0)!function(){var t=s.value;"function"==typeof e[t]&&(i.find(function(e){return t===e})||(e[t]=e[t].bind(e)))}()}catch(e){o=!0,a=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw a}}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=["constructor","render","componentWillMount","componentDidMount","componentWillReceiveProps","shouldComponentUpdate","componentWillUpdate","componentDidUpdate","componentWillUnmount"]},function(e,t,n){var r=n(19),i=n(23),o=n(372),a=n(43),s=function(e,t,n){var l,c,u,p=e&s.F,d=e&s.G,f=e&s.S,m=e&s.P,h=e&s.B,g=e&s.W,v=d?i:i[t]||(i[t]={}),_=v.prototype,y=d?r:f?r[t]:(r[t]||{}).prototype;d&&(n=t);for(l in n)(c=!p&&y&&void 0!==y[l])&&l in v||(u=c?y[l]:n[l],v[l]=d&&"function"!=typeof y[l]?n[l]:h&&c?o(u,r):g&&y[l]==u?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(u):m&&"function"==typeof u?o(Function.call,u):u,m&&((v.virtual||(v.virtual={}))[l]=u,e&s.R&&_&&!_[l]&&a(_,l,u)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,e.exports=s},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var r=n(31),i=n(82);e.exports=n(29)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(172),i=n(100);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t,n){var r=n(106)("wks"),i=n(83),o=n(19).Symbol,a="function"==typeof o;(e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))}).store=r},function(e,t,n){"use strict";t.a=function(e,t){return et?1:e>=t?0:NaN}},function(e,t,n){"use strict";t.a=function(){return Math.random()}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){return l.stringify(e).replace(/%20/g,"+")}function o(e){return function(){function t(e){if(null==e.query){var t=e.search;e.query=w(t.substring(1)),e[m]={search:t,searchBase:""}}return e}function n(e,t){var n,r=e[m],i=t?x(t):"";if(!r&&!i)return e;"string"==typeof e&&(e=p.parsePath(e));var o=void 0;o=r&&e.search===r.search?r.searchBase:e.search||"";var s=o;return i&&(s+=(s?"&":"?")+i),a({},e,(n={search:s},n[m]={search:s,searchBase:o},n))}function r(e){return b.listenBefore(function(n,r){u.default(e,t(n),r)})}function o(e){return b.listen(function(n){e(t(n))})}function s(e){b.push(n(e,e.query))}function l(e){b.replace(n(e,e.query))}function c(e,t){return b.createPath(n(e,t||e.query))}function d(e,t){return b.createHref(n(e,t||e.query))}function g(e){for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o1)for(var n=1;n0||(0,p.default)(!1),null!=u&&(a+=encodeURI(u))):"("===l?i+=1:")"===l?i-=1:":"===l.charAt(0)?(c=l.substring(1),u=t[c],null!=u||i>0||(0,p.default)(!1),null!=u&&(a+=encodeURIComponent(u))):a+=l;return a.replace(/\/+/g,"/")}t.__esModule=!0,t.compilePattern=o,t.matchPattern=a,t.getParamNames=s,t.getParams=l,t.formatPattern=c;var u=n(7),p=function(e){return e&&e.__esModule?e:{default:e}}(u),d=Object.create(null)},function(e,t,n){"use strict";var r=n(4),i=n(274),o=n(854),a=n(855),s=n(57),l=n(856),c=n(857),u=n(858),p=n(862),d=s.createElement,f=s.createFactory,m=s.cloneElement,h=r,g=function(e){return e},v={Children:{map:o.map,forEach:o.forEach,count:o.count,toArray:o.toArray,only:p},Component:i.Component,PureComponent:i.PureComponent,createElement:d,cloneElement:m,isValidElement:s.isValidElement,PropTypes:l,createClass:u,createFactory:f,createMixin:g,DOM:a,version:c,__spread:h};e.exports=v},function(e,t,n){"use strict";function r(e){return void 0!==e.ref}function i(e){return void 0!==e.key}var o=n(4),a=n(22),s=(n(2),n(278),Object.prototype.hasOwnProperty),l=n(276),c={key:!0,ref:!0,__self:!0,__source:!0},u=function(e,t,n,r,i,o,a){var s={$$typeof:l,type:e,key:t,ref:n,props:a,_owner:o};return s};u.createElement=function(e,t,n){var o,l={},p=null,d=null;if(null!=t){r(t)&&(d=t.ref),i(t)&&(p=""+t.key),void 0===t.__self?null:t.__self,void 0===t.__source?null:t.__source;for(o in t)s.call(t,o)&&!c.hasOwnProperty(o)&&(l[o]=t[o])}var f=arguments.length-2;if(1===f)l.children=n;else if(f>1){for(var m=Array(f),h=0;h1){for(var v=Array(g),_=0;_180||i<-180?i-360*Math.round(i/360):i):n.i(l.a)(isNaN(e)?t:e)}function a(e){return 1==(e=+e)?s:function(t,r){return r-t?i(t,r,e):n.i(l.a)(isNaN(t)?r:t)}}function s(e,t){var i=t-e;return i?r(e,i):n.i(l.a)(isNaN(e)?t:e)}t.b=o,t.c=a,t.a=s;var l=n(196)},function(e,t,n){"use strict";t.a=function(e){return e.match(/.{6}/g).map(function(e){return"#"+e})}},function(e,t,n){"use strict";function r(e){var t=e.domain;return e.ticks=function(e){var r=t();return n.i(o.ticks)(r[0],r[r.length-1],null==e?10:e)},e.tickFormat=function(e,r){return n.i(l.a)(t(),e,r)},e.nice=function(r){null==r&&(r=10);var i,a=t(),s=0,l=a.length-1,c=a[s],u=a[l];return u0?(c=Math.floor(c/i)*i,u=Math.ceil(u/i)*i,i=n.i(o.tickIncrement)(c,u,r)):i<0&&(c=Math.ceil(c*i)/i,u=Math.floor(u*i)/i,i=n.i(o.tickIncrement)(c,u,r)),i>0?(a[s]=Math.floor(c/i)*i,a[l]=Math.ceil(u/i)*i,t(a)):i<0&&(a[s]=Math.ceil(c*i)/i,a[l]=Math.floor(u*i)/i,t(a)),e},e}function i(){var e=n.i(s.a)(s.b,a.a);return e.copy=function(){return n.i(s.c)(e,i())},r(e)}t.b=r,t.a=i;var o=n(14),a=n(60),s=n(86),l=n(469)},function(e,t,n){"use strict";t.__esModule=!0;var r=!("undefined"==typeof window||!window.document||!window.document.createElement);t.canUseDOM=r},function(e,t,n){function r(e,t){var n=o(e,t);return i(n)?n:void 0}var i=n(729),o=n(739);e.exports=r},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){"use strict";function r(e){return"button"===e||"input"===e||"select"===e||"textarea"===e}function i(e,t,n){switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":return!(!n.disabled||!r(t));default:return!1}}var o=n(3),a=n(136),s=n(137),l=n(141),c=n(256),u=n(257),p=(n(1),{}),d=null,f=function(e,t){e&&(s.executeDispatchesInOrder(e,t),e.isPersistent()||e.constructor.release(e))},m=function(e){return f(e,!0)},h=function(e){return f(e,!1)},g=function(e){return"."+e._rootNodeID},v={injection:{injectEventPluginOrder:a.injectEventPluginOrder,injectEventPluginsByName:a.injectEventPluginsByName},putListener:function(e,t,n){"function"!=typeof n&&o("94",t,typeof n);var r=g(e);(p[t]||(p[t]={}))[r]=n;var i=a.registrationNameModules[t];i&&i.didPutListener&&i.didPutListener(e,t,n)},getListener:function(e,t){var n=p[t];if(i(t,e._currentElement.type,e._currentElement.props))return null;var r=g(e);return n&&n[r]},deleteListener:function(e,t){var n=a.registrationNameModules[t];n&&n.willDeleteListener&&n.willDeleteListener(e,t);var r=p[t];if(r){delete r[g(e)]}},deleteAllListeners:function(e){var t=g(e);for(var n in p)if(p.hasOwnProperty(n)&&p[n][t]){var r=a.registrationNameModules[n];r&&r.willDeleteListener&&r.willDeleteListener(e,n),delete p[n][t]}},extractEvents:function(e,t,n,r){for(var i,o=a.plugins,s=0;s=n?1:r(e)}}}function o(e){return function(t,n){var r=e(t=+t,n=+n);return function(e){return e<=0?t:e>=1?n:r(e)}}}function a(e,t,n,r){var i=e[0],o=e[1],a=t[0],s=t[1];return o2?s:a,u=f=null,l}function l(t){return(u||(u=c(g,v,y?i(e):e,_)))(+t)}var c,u,f,g=h,v=h,_=p.b,y=!1;return l.invert=function(e){return(f||(f=c(v,g,r,y?o(t):t)))(+e)},l.domain=function(e){return arguments.length?(g=d.a.call(e,m.a),n()):g.slice()},l.range=function(e){return arguments.length?(v=d.b.call(e),n()):v.slice()},l.rangeRound=function(e){return v=d.b.call(e),_=p.c,n()},l.clamp=function(e){return arguments.length?(y=!!e,n()):y},l.interpolate=function(e){return arguments.length?(_=e,n()):_},n()}t.b=r,t.c=l,t.a=c;var u=n(14),p=n(60),d=n(33),f=n(120),m=n(206),h=[0,1]},function(e,t,n){"use strict";var r={};e.exports=r},function(e,t,n){"use strict";function r(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)}function i(e,t,n){e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)}function o(){return window.location.href.split("#")[1]||""}function a(e){window.location.replace(window.location.pathname+window.location.search+"#"+e)}function s(){return window.location.pathname+window.location.search+window.location.hash}function l(e){e&&window.history.go(e)}function c(e,t){t(window.confirm(e))}function u(){var e=navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)}function p(){return-1===navigator.userAgent.indexOf("Firefox")}t.__esModule=!0,t.addEventListener=r,t.removeEventListener=i,t.getHashPath=o,t.replaceHashPath=a,t.getWindowPath=s,t.go=l,t.getUserConfirmation=c,t.supportsHistory=u,t.supportsGoWithoutReloadUsingHash=p},function(e,t,n){"use strict";function r(e){return Object.prototype.hasOwnProperty.call(e,h)||(e[h]=f++,p[e[h]]={}),p[e[h]]}var i,o=n(4),a=n(136),s=n(792),l=n(255),c=n(824),u=n(147),p={},d=!1,f=0,m={topAbort:"abort",topAnimationEnd:c("animationend")||"animationend",topAnimationIteration:c("animationiteration")||"animationiteration",topAnimationStart:c("animationstart")||"animationstart",topBlur:"blur",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topChange:"change",topClick:"click",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topScroll:"scroll",topSeeked:"seeked",topSeeking:"seeking",topSelectionChange:"selectionchange",topStalled:"stalled",topSuspend:"suspend",topTextInput:"textInput",topTimeUpdate:"timeupdate",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topTransitionEnd:c("transitionend")||"transitionend",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"},h="_reactListenersID"+String(Math.random()).slice(2),g=o({},s,{ReactEventListener:null,injection:{injectReactEventListener:function(e){e.setHandleTopLevel(g.handleTopLevel),g.ReactEventListener=e}},setEnabled:function(e){g.ReactEventListener&&g.ReactEventListener.setEnabled(e)},isEnabled:function(){return!(!g.ReactEventListener||!g.ReactEventListener.isEnabled())},listenTo:function(e,t){for(var n=t,i=r(n),o=a.registrationNameDependencies[e],s=0;s]/;e.exports=i},function(e,t,n){"use strict";var r,i=n(10),o=n(135),a=/^[ \r\n\t\f]/,s=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,l=n(143),c=l(function(e,t){if(e.namespaceURI!==o.svg||"innerHTML"in e)e.innerHTML=t;else{r=r||document.createElement("div"),r.innerHTML=""+t+"";for(var n=r.firstChild;n.firstChild;)e.appendChild(n.firstChild)}});if(i.canUseDOM){var u=document.createElement("div");u.innerHTML=" ",""===u.innerHTML&&(c=function(e,t){if(e.parentNode&&e.parentNode.replaceChild(e,e),a.test(t)||"<"===t[0]&&s.test(t)){e.innerHTML=String.fromCharCode(65279)+t;var n=e.firstChild;1===n.data.length?e.removeChild(n):n.deleteData(0,1)}else e.innerHTML=t}),u=null}e.exports=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},o=Object.assign||function(e){for(var t=1;t * @license MIT */ function r(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i=0;s--)if(l[s]!==c[s])return!1;for(s=l.length-1;s>=0;s--)if(a=l[s],!f(e[a],t[a],n,r))return!1;return!0}function g(e,t,n){f(e,t,!0)&&p(e,t,n,"notDeepStrictEqual",g)}function v(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function _(e){var t;try{e()}catch(e){t=e}return t}function y(e,t,n,r){var i;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof n&&(r=n,n=null),i=_(t),r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),e&&!i&&p(i,n,"Missing expected exception"+r);var o="string"==typeof r,a=!e&&b.isError(i),s=!e&&i&&!n;if((a&&o&&v(i,n)||s)&&p(i,n,"Got unwanted exception"+r),e&&i&&n&&!v(i,n)||!e&&i)throw i}var b=n(885),x=Object.prototype.hasOwnProperty,w=Array.prototype.slice,E=function(){return"foo"===function(){}.name}(),M=e.exports=d,A=/\s*function\s+([^\(\s]*)\s*/;M.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=u(this),this.generatedMessage=!0);var t=e.stackStartFunction||p;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var n=new Error;if(n.stack){var r=n.stack,i=s(t),o=r.indexOf("\n"+i);if(o>=0){var a=r.indexOf("\n",o+1);r=r.substring(a+1)}this.stack=r}}},b.inherits(M.AssertionError,Error),M.fail=p,M.ok=d,M.equal=function(e,t,n){e!=t&&p(e,t,n,"==",M.equal)},M.notEqual=function(e,t,n){e==t&&p(e,t,n,"!=",M.notEqual)},M.deepEqual=function(e,t,n){f(e,t,!1)||p(e,t,n,"deepEqual",M.deepEqual)},M.deepStrictEqual=function(e,t,n){f(e,t,!0)||p(e,t,n,"deepStrictEqual",M.deepStrictEqual)},M.notDeepEqual=function(e,t,n){f(e,t,!1)&&p(e,t,n,"notDeepEqual",M.notDeepEqual)},M.notDeepStrictEqual=g,M.strictEqual=function(e,t,n){e!==t&&p(e,t,n,"===",M.strictEqual)},M.notStrictEqual=function(e,t,n){e===t&&p(e,t,n,"!==",M.notStrictEqual)},M.throws=function(e,t,n){y(!0,e,t,n)},M.doesNotThrow=function(e,t,n){y(!1,e,t,n)},M.ifError=function(e){if(e)throw e};var S=Object.keys||function(e){var t=[];for(var n in e)x.call(e,n)&&t.push(n);return t}}).call(t,n(27))},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){var n=e%t;return n<0?t+n:n}function o(e,t){return Number.isFinite(e)?e:t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.MAPBOX_LIMITS=void 0;var a=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},n=t.width,i=t.height,a=t.latitude,s=t.longitude,l=t.zoom,c=t.bearing,f=t.pitch,m=t.altitude,h=t.maxZoom,g=t.minZoom,v=t.maxPitch,_=t.minPitch,y=t.maxLatitude,b=t.minLatitude,x=t.startPanLngLat,w=t.startZoomLngLat,E=t.startBearing,M=t.startPitch,A=t.startZoom;r(this,e),(0,u.default)(Number.isFinite(n),"`width` must be supplied"),(0,u.default)(Number.isFinite(i),"`height` must be supplied"),(0,u.default)(Number.isFinite(s),"`longitude` must be supplied"),(0,u.default)(Number.isFinite(a),"`latitude` must be supplied"),(0,u.default)(Number.isFinite(l),"`zoom` must be supplied"),this._viewportProps=this._applyConstraints({width:n,height:i,latitude:a,longitude:s,zoom:l,bearing:o(c,d.bearing),pitch:o(f,d.pitch),altitude:o(m,d.altitude),maxZoom:o(h,p.maxZoom),minZoom:o(g,p.minZoom),maxPitch:o(v,p.maxPitch),minPitch:o(_,p.minPitch),maxLatitude:o(y,p.maxLatitude),minLatitude:o(b,p.minLatitude)}),this._interactiveState={startPanLngLat:x,startZoomLngLat:w,startBearing:E,startPitch:M,startZoom:A}}return s(e,[{key:"getViewportProps",value:function(){return this._viewportProps}},{key:"getInteractiveState",value:function(){return this._interactiveState}},{key:"panStart",value:function(e){var t=e.pos;return this._getUpdatedMapState({startPanLngLat:this._unproject(t)})}},{key:"pan",value:function(e){var t=e.pos,n=e.startPos,r=this._interactiveState.startPanLngLat||this._unproject(n);if(!r)return this;var i=this._calculateNewLngLat({startPanLngLat:r,pos:t}),o=a(i,2),s=o[0],l=o[1];return this._getUpdatedMapState({longitude:s,latitude:l})}},{key:"panEnd",value:function(){return this._getUpdatedMapState({startPanLngLat:null})}},{key:"rotateStart",value:function(e){e.pos;return this._getUpdatedMapState({startBearing:this._viewportProps.bearing,startPitch:this._viewportProps.pitch})}},{key:"rotate",value:function(e){var t=e.deltaScaleX,n=e.deltaScaleY;(0,u.default)(t>=-1&&t<=1,"`deltaScaleX` must be a number between [-1, 1]"),(0,u.default)(n>=-1&&n<=1,"`deltaScaleY` must be a number between [-1, 1]");var r=this._interactiveState,i=r.startBearing,o=r.startPitch;if(!Number.isFinite(i)||!Number.isFinite(o))return this;var a=this._calculateNewPitchAndBearing({deltaScaleX:t,deltaScaleY:n,startBearing:i,startPitch:o}),s=a.pitch,l=a.bearing;return this._getUpdatedMapState({bearing:l,pitch:s})}},{key:"rotateEnd",value:function(){return this._getUpdatedMapState({startBearing:null,startPitch:null})}},{key:"zoomStart",value:function(e){var t=e.pos;return this._getUpdatedMapState({startZoomLngLat:this._unproject(t),startZoom:this._viewportProps.zoom})}},{key:"zoom",value:function(e){var t=e.pos,n=e.startPos,r=e.scale;(0,u.default)(r>0,"`scale` must be a positive number");var i=this._interactiveState.startZoomLngLat||this._unproject(n)||this._unproject(t),o=this._interactiveState.startZoom;Number.isFinite(o)||(o=this._viewportProps.zoom),(0,u.default)(i,"`startZoomLngLat` prop is required for zoom behavior to calculate where to position the map.");var s=this._calculateNewZoom({scale:r,startZoom:o}),c=new l.PerspectiveMercatorViewport(Object.assign({},this._viewportProps,{zoom:s})),p=c.getLocationAtPoint({lngLat:i,pos:t}),d=a(p,2),f=d[0],m=d[1];return this._getUpdatedMapState({zoom:s,longitude:f,latitude:m})}},{key:"zoomEnd",value:function(){return this._getUpdatedMapState({startZoomLngLat:null,startZoom:null})}},{key:"_getUpdatedMapState",value:function(t){return new e(Object.assign({},this._viewportProps,this._interactiveState,t))}},{key:"_applyConstraints",value:function(e){e.longitude=i(e.longitude+180,360)-180,e.bearing=i(e.bearing+180,360)-180;var t=e.maxZoom,n=e.minZoom,r=e.zoom;e.zoom=r>t?t:r,e.zoom=ro?o:l,e.pitch=l0?h=d:fi?i:a,a=a0?c=i+n*(s-i):n<0&&(c=i-n*(a-i)),{pitch:c,bearing:l}}}]),e}();t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setHeaderOpacity=t.toggleMenu=t.useParams=t.updateParam=t.updateMeta=t.updateMap=t.loadContent=void 0;var r=n(203),i=function(e,t){var n={};return n[e]=t,{type:"LOAD_CONTENT",payload:n}},o=function(e){return i(e,"")};t.loadContent=function(e){return function(t,n){var a=n(),s=a.contents;e in s||(t(o(e)),(0,r.text)(e,function(n,r){t(i(e,n?n.target.response:r))}))}},t.updateMap=function(e){return{type:"UPDATE_MAP",viewport:e}},t.updateMeta=function(e){return{type:"UPDATE_META",meta:e}},t.updateParam=function(e,t){return{type:"UPDATE_PARAM",payload:{name:e,value:t}}},t.useParams=function(e){return{type:"USE_PARAMS",params:e}},t.toggleMenu=function(e){return{type:"TOGGLE_MENU",isOpen:e}},t.setHeaderOpacity=function(e){return{type:"SET_HEADER_OPACITY",opacity:e}}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){e.exports={}},function(e,t){e.exports=!0},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(31).f,i=n(30),o=n(45)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},function(e,t,n){var r=n(106)("keys"),i=n(83);e.exports=function(e){return r[e]||(r[e]=i(e))}},function(e,t,n){var r=n(19),i=r["__core-js_shared__"]||(r["__core-js_shared__"]={});e.exports=function(e){return i[e]||(i[e]={})}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(99);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=n(80);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var r=n(19),i=n(23),o=n(102),a=n(111),s=n(31).f;e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},function(e,t,n){t.f=n(45)},function(e,t,n){"use strict";var r=n(59);t.a=function(e,t,n){if(null==n&&(n=r.a),i=e.length){if((t=+t)<=0||i<2)return+n(e[0],0,e);if(t>=1)return+n(e[i-1],i-1,e);var i,o=(i-1)*t,a=Math.floor(o),s=+n(e[a],a,e);return s+(+n(e[a+1],a+1,e)-s)*(o-a)}}},function(e,t,n){"use strict";function r(){}function i(e,t){var n=new r;if(e instanceof r)e.each(function(e,t){n.set(t,e)});else if(Array.isArray(e)){var i,o=-1,a=e.length;if(null==t)for(;++o>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1)):(t=w.exec(e))?o(parseInt(t[1],16)):(t=E.exec(e))?new c(t[1],t[2],t[3],1):(t=M.exec(e))?new c(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=A.exec(e))?a(t[1],t[2],t[3],t[4]):(t=S.exec(e))?a(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=C.exec(e))?u(t[1],t[2]/100,t[3]/100,1):(t=T.exec(e))?u(t[1],t[2]/100,t[3]/100,t[4]):N.hasOwnProperty(e)?o(N[e]):"transparent"===e?new c(NaN,NaN,NaN,0):null}function o(e){return new c(e>>16&255,e>>8&255,255&e,1)}function a(e,t,n,r){return r<=0&&(e=t=n=NaN),new c(e,t,n,r)}function s(e){return e instanceof r||(e=i(e)),e?(e=e.rgb(),new c(e.r,e.g,e.b,e.opacity)):new c}function l(e,t,n,r){return 1===arguments.length?s(e):new c(e,t,n,null==r?1:r)}function c(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function u(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new f(e,t,n,r)}function p(e){if(e instanceof f)return new f(e.h,e.s,e.l,e.opacity);if(e instanceof r||(e=i(e)),!e)return new f;if(e instanceof f)return e;e=e.rgb();var t=e.r/255,n=e.g/255,o=e.b/255,a=Math.min(t,n,o),s=Math.max(t,n,o),l=NaN,c=s-a,u=(s+a)/2;return c?(l=t===s?(n-o)/c+6*(n0&&u<1?0:l,new f(l,c,u,e.opacity)}function d(e,t,n,r){return 1===arguments.length?p(e):new f(e,t,n,null==r?1:r)}function f(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function m(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}t.c=r,n.d(t,"e",function(){return g}),n.d(t,"d",function(){return v}),t.h=i,t.b=s,t.g=l,t.a=c,t.f=d;var h=n(115),g=.7,v=1/g,_="\\s*([+-]?\\d+)\\s*",y="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",b="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",x=/^#([0-9a-f]{3})$/,w=/^#([0-9a-f]{6})$/,E=new RegExp("^rgb\\("+[_,_,_]+"\\)$"),M=new RegExp("^rgb\\("+[b,b,b]+"\\)$"),A=new RegExp("^rgba\\("+[_,_,_,y]+"\\)$"),S=new RegExp("^rgba\\("+[b,b,b,y]+"\\)$"),C=new RegExp("^hsl\\("+[y,b,b]+"\\)$"),T=new RegExp("^hsla\\("+[y,b,b,y]+"\\)$"),N={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};n.i(h.a)(r,i,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),n.i(h.a)(c,l,n.i(h.b)(r,{brighter:function(e){return e=null==e?v:Math.pow(v,e),new c(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?g:Math.pow(g,e),new c(this.r*e,this.g*e,this.b*e,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},toString:function(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(1===e?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}})),n.i(h.a)(f,d,n.i(h.b)(r,{brighter:function(e){return e=null==e?v:Math.pow(v,e),new f(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?g:Math.pow(g,e),new f(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new c(m(e>=240?e-240:e+120,i,r),m(e,i,r),m(e<120?e+240:e-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}}))},function(e,t,n){"use strict";function r(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}t.b=r,t.a=function(e,t,n){e.prototype=t.prototype=n,n.constructor=e}},function(e,t,n){"use strict";function r(e){return new Function("d","return {"+e.map(function(e,t){return JSON.stringify(e)+": d["+t+"]"}).join(",")+"}")}function i(e,t){var n=r(e);return function(r,i){return t(n(r),i,e)}}function o(e){var t=Object.create(null),n=[];return e.forEach(function(e){for(var r in e)r in t||n.push(t[r]=r)}),n}t.a=function(e){function t(e,t){var o,a,s=n(e,function(e,n){if(o)return o(e,n-1);a=e,o=t?i(e,t):r(e)});return s.columns=a,s}function n(e,t){function n(){if(c>=l)return a;if(i)return i=!1,o;var t,n=c;if(34===e.charCodeAt(n)){for(var r=n;r++1?r[0]+r.slice(2):r,+e.slice(n+1)]}},function(e,t,n){"use strict";function r(e,t,n,r,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*n+(1+3*e+3*o-3*a)*r+a*i)/6}t.b=r,t.a=function(e){var t=e.length-1;return function(n){var i=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),o=e[i],a=e[i+1],s=i>0?e[i-1]:2*o-a,l=i1?t-1:0),o=1;o-1||a("96",e),!c.plugins[n]){t.extractEvents||a("97",e),c.plugins[n]=t;var r=t.eventTypes;for(var o in r)i(r[o],t,o)||a("98",o,e)}}}function i(e,t,n){c.eventNameDispatchConfigs.hasOwnProperty(n)&&a("99",n),c.eventNameDispatchConfigs[n]=e;var r=e.phasedRegistrationNames;if(r){for(var i in r)if(r.hasOwnProperty(i)){var s=r[i];o(s,t,n)}return!0}return!!e.registrationName&&(o(e.registrationName,t,n),!0)}function o(e,t,n){c.registrationNameModules[e]&&a("100",e),c.registrationNameModules[e]=t,c.registrationNameDependencies[e]=t.eventTypes[n].dependencies}var a=n(3),s=(n(1),null),l={},c={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(e){s&&a("101"),s=Array.prototype.slice.call(e),r()},injectEventPluginsByName:function(e){var t=!1;for(var n in e)if(e.hasOwnProperty(n)){var i=e[n];l.hasOwnProperty(n)&&l[n]===i||(l[n]&&a("102",n),l[n]=i,t=!0)}t&&r()},getPluginModuleForEvent:function(e){var t=e.dispatchConfig;if(t.registrationName)return c.registrationNameModules[t.registrationName]||null;if(void 0!==t.phasedRegistrationNames){var n=t.phasedRegistrationNames;for(var r in n)if(n.hasOwnProperty(r)){var i=c.registrationNameModules[n[r]];if(i)return i}}return null},_resetEventPlugins:function(){s=null;for(var e in l)l.hasOwnProperty(e)&&delete l[e];c.plugins.length=0;var t=c.eventNameDispatchConfigs;for(var n in t)t.hasOwnProperty(n)&&delete t[n];var r=c.registrationNameModules;for(var i in r)r.hasOwnProperty(i)&&delete r[i]}};e.exports=c},function(e,t,n){"use strict";function r(e){return"topMouseUp"===e||"topTouchEnd"===e||"topTouchCancel"===e}function i(e){return"topMouseMove"===e||"topTouchMove"===e}function o(e){return"topMouseDown"===e||"topTouchStart"===e}function a(e,t,n,r){var i=e.type||"unknown-event";e.currentTarget=v.getNodeFromInstance(r),t?h.invokeGuardedCallbackWithCatch(i,n,e):h.invokeGuardedCallback(i,n,e),e.currentTarget=null}function s(e,t){var n=e._dispatchListeners,r=e._dispatchInstances;if(Array.isArray(n))for(var i=0;i0&&r.length<20?n+" (keys: "+r.join(", ")+")":n}function o(e,t){var n=s.get(e);if(!n){return null}return n}var a=n(3),s=(n(22),n(69)),l=(n(16),n(18)),c=(n(1),n(2),{isMounted:function(e){var t=s.get(e);return!!t&&!!t._renderedComponent},enqueueCallback:function(e,t,n){c.validateCallback(t,n);var i=o(e);if(!i)return null;i._pendingCallbacks?i._pendingCallbacks.push(t):i._pendingCallbacks=[t],r(i)},enqueueCallbackInternal:function(e,t){e._pendingCallbacks?e._pendingCallbacks.push(t):e._pendingCallbacks=[t],r(e)},enqueueForceUpdate:function(e){var t=o(e,"forceUpdate");t&&(t._pendingForceUpdate=!0,r(t))},enqueueReplaceState:function(e,t,n){var i=o(e,"replaceState");i&&(i._pendingStateQueue=[t],i._pendingReplaceState=!0,void 0!==n&&null!==n&&(c.validateCallback(n,"replaceState"),i._pendingCallbacks?i._pendingCallbacks.push(n):i._pendingCallbacks=[n]),r(i))},enqueueSetState:function(e,t){var n=o(e,"setState");if(n){(n._pendingStateQueue||(n._pendingStateQueue=[])).push(t),r(n)}},enqueueElementInternal:function(e,t,n){e._pendingElement=t,e._context=n,r(e)},validateCallback:function(e,t){e&&"function"!=typeof e&&a("122",t,i(e))}});e.exports=c},function(e,t,n){"use strict";var r=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e};e.exports=r},function(e,t,n){"use strict";function r(e){var t,n=e.keyCode;return"charCode"in e?0===(t=e.charCode)&&13===n&&(t=13):t=n,t>=32||13===t?t:0}e.exports=r},function(e,t,n){"use strict";function r(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var r=o[e];return!!r&&!!n[r]}function i(e){return r}var o={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};e.exports=i},function(e,t,n){"use strict";function r(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}e.exports=r},function(e,t,n){"use strict";/** * Checks if an event is supported in the current execution environment. * * NOTE: This will not work correctly for non-generic events such as `change`, * `reset`, `load`, `error`, and `select`. * * Borrows from Modernizr. * * @param {string} eventNameSuffix Event name, e.g. "click". * @param {?boolean} capture Check if the capture phase is supported. * @return {boolean} True if the event is supported. * @internal * @license Modernizr 3.0.0pre (Custom Build) | MIT */ function r(e,t){if(!o.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,r=n in document;if(!r){var a=document.createElement("div");a.setAttribute(n,"return;"),r="function"==typeof a[n]}return!r&&i&&"wheel"===e&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var i,o=n(10);o.canUseDOM&&(i=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")),e.exports=r},function(e,t,n){"use strict";function r(e,t){var n=null===e||!1===e,r=null===t||!1===t;if(n||r)return n===r;var i=typeof e,o=typeof t;return"string"===i||"number"===i?"string"===o||"number"===o:"object"===o&&e.type===t.type&&e.key===t.key}e.exports=r},function(e,t,n){"use strict";var r=(n(4),n(12)),i=(n(2),r);e.exports=i},function(e,t,n){"use strict";function r(e,t,n){function r(){if(a=!0,s)return void(c=[].concat(Array.prototype.slice.call(arguments)));n.apply(this,arguments)}function i(){if(!a&&(l=!0,!s)){for(s=!0;!a&&o=e&&l&&(a=!0,n())}}var o=0,a=!1,s=!1,l=!1,c=void 0;i()}function i(e,t,n){function r(e,t,r){a||(t?(a=!0,n(t)):(o[e]=r,(a=++s===i)&&n(null,o)))}var i=e.length,o=[];if(0===i)return n(null,o);var a=!1,s=0;e.forEach(function(e,n){t(e,n,function(e,t){r(n,e,t)})})}t.__esModule=!0,t.loopAsync=r,t.mapAsync=i},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.router=t.routes=t.route=t.components=t.component=t.location=t.history=t.falsy=t.locationShape=t.routerShape=void 0;var i=n(0),o=n(95),a=(r(o),n(39)),s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(a),l=n(8),c=(r(l),i.PropTypes.func),u=i.PropTypes.object,p=i.PropTypes.shape,d=i.PropTypes.string,f=t.routerShape=p({push:c.isRequired,replace:c.isRequired,go:c.isRequired,goBack:c.isRequired,goForward:c.isRequired,setRouteLeaveHook:c.isRequired,isActive:c.isRequired}),m=t.locationShape=p({pathname:d.isRequired,search:d.isRequired,state:u,action:d.isRequired,key:d}),h=t.falsy=s.falsy,g=t.history=s.history,v=t.location=m,_=t.component=s.component,y=t.components=s.components,b=t.route=s.route,x=(t.routes=s.routes,t.router=f),w={falsy:h,history:g,location:v,component:_,components:y,route:b,router:x};t.default=w},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!0;return!1}function o(e,t){function n(t){var n=!(arguments.length<=1||void 0===arguments[1])&&arguments[1],r=arguments.length<=2||void 0===arguments[2]?null:arguments[2],i=void 0;return n&&!0!==n||null!==r?(t={pathname:t,query:n},i=r||!1):(t=e.createLocation(t),i=n),(0,d.default)(t,i,y.location,y.routes,y.params)}function r(e,n){b&&b.location===e?o(b,n):(0,g.default)(t,e,function(t,r){t?n(t):r?o(a({},r,{location:e}),n):n()})}function o(e,t){function n(n,i){if(n||i)return r(n,i);(0,m.default)(e,function(n,r){n?t(n):t(null,null,y=a({},e,{components:r}))})}function r(e,n){e?t(e):t(null,n)}var i=(0,c.default)(y,e),o=i.leaveRoutes,s=i.changeRoutes,l=i.enterRoutes;(0,u.runLeaveHooks)(o,y),o.filter(function(e){return-1===l.indexOf(e)}).forEach(h),(0,u.runChangeHooks)(s,y,e,function(t,i){if(t||i)return r(t,i);(0,u.runEnterHooks)(l,e,n)})}function s(e){var t=arguments.length<=1||void 0===arguments[1]||arguments[1];return e.__id__||t&&(e.__id__=x++)}function l(e){return e.reduce(function(e,t){return e.push.apply(e,w[s(t)]),e},[])}function p(e,n){(0,g.default)(t,e,function(t,r){if(null==r)return void n();b=a({},r,{location:e});for(var i=l((0,c.default)(y,b).leaveRoutes),o=void 0,s=0,u=i.length;null==o&&s0&&void 0!==arguments[0]?arguments[0]:{};a.forEach(function(t){if(e.hasOwnProperty(t.old)){var n=r(t.old);t.new&&(n=n+" "+i(t.new)),console.warn(n)}})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var a=[{old:"onChangeViewport",new:"onViewportChange"},{old:"perspectiveEnabled",new:"dragRotate"},{old:"onHoverFeatures",new:"onHover"},{old:"onClickFeatures",new:"onClick"}]},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},n=this.mapState.getViewportProps(),r=e.getViewportProps();this.onViewportChange&&Object.keys(r).some(function(e){return n[e]!==r[e]})&&this.onViewportChange(r),this.setState(Object.assign({},e.getInteractiveState(),t))}},{key:"getMapState",value:function(e){return new s.default(Object.assign({},this.mapStateProps,this._state,e))}},{key:"setOptions",value:function(e){var t=e.onChangeViewport,n=e.onViewportChange,r=e.onStateChange,i=void 0===r?this.onStateChange:r,o=e.eventManager,a=void 0===o?this.eventManager:o,s=e.scrollZoom,c=void 0===s||s,u=e.dragPan,p=void 0===u||u,d=e.dragRotate,f=void 0===d||d,m=e.doubleClickZoom,h=void 0===m||m,g=e.touchZoomRotate,v=void 0===g||g,_=e.keyboard,y=void 0===_||_;this.onViewportChange=n||t,this.onStateChange=i,this.mapStateProps=e,this.eventManager!==a&&(this.eventManager=a,this._events={},this.toggleEvents(this.events,!0));var b=Boolean(this.onViewportChange);this.toggleEvents(l.WHEEL,b&&c),this.toggleEvents(l.PAN,b&&(p||f)),this.toggleEvents(l.PINCH,b&&v),this.toggleEvents(l.DOUBLE_TAP,b&&h),this.toggleEvents(l.KEYBOARD,b&&y),this.scrollZoom=c,this.dragPan=p,this.dragRotate=f,this.doubleClickZoom=h,this.touchZoomRotate=v,this.keyboard=y}},{key:"toggleEvents",value:function(e,t){var n=this;this.eventManager&&e.forEach(function(e){n._events[e]!==t&&(n._events[e]=t,t?n.eventManager.on(e,n.handleEvent):n.eventManager.off(e,n.handleEvent))})}},{key:"_onPanStart",value:function(e){var t=this.getCenter(e),n=this.mapState.panStart({pos:t}).rotateStart({pos:t});return this.updateViewport(n,{isDragging:!0})}},{key:"_onPan",value:function(e){return this.isFunctionKeyPressed(e)||e.rightButton?this._onPanRotate(e):this._onPanMove(e)}},{key:"_onPanEnd",value:function(e){var t=this.mapState.panEnd().rotateEnd();return this.updateViewport(t,{isDragging:!1})}},{key:"_onPanMove",value:function(e){if(!this.dragPan)return!1;var t=this.getCenter(e),n=this.mapState.pan({pos:t});return this.updateViewport(n)}},{key:"_onPanRotate",value:function(e){if(!this.dragRotate)return!1;var t=e.deltaX,n=e.deltaY,r=this.getCenter(e),o=i(r,2),a=o[1],s=a-n,l=this.mapState.getViewportProps(),c=l.width,u=l.height,p=t/c,d=0;n>0?Math.abs(u-s)>5&&(d=n/(s-u)*1.2):n<0&&s>5&&(d=1-a/s),d=Math.min(1,Math.max(-1,d));var f=this.mapState.rotate({deltaScaleX:p,deltaScaleY:d});return this.updateViewport(f)}},{key:"_onWheel",value:function(e){if(!this.scrollZoom)return!1;var t=this.getCenter(e),n=e.delta,r=2/(1+Math.exp(-Math.abs(.01*n)));n<0&&0!==r&&(r=1/r);var i=this.mapState.zoom({pos:t,scale:r});return this.updateViewport(i)}},{key:"_onPinchStart",value:function(e){var t=this.getCenter(e),n=this.mapState.zoomStart({pos:t});return this.updateViewport(n,{isDragging:!0})}},{key:"_onPinch",value:function(e){if(!this.touchZoomRotate)return!1;var t=this.getCenter(e),n=e.scale,r=this.mapState.zoom({pos:t,scale:n});return this.updateViewport(r)}},{key:"_onPinchEnd",value:function(e){var t=this.mapState.zoomEnd();return this.updateViewport(t,{isDragging:!1})}},{key:"_onDoubleTap",value:function(e){if(!this.doubleClickZoom)return!1;var t=this.getCenter(e),n=this.isFunctionKeyPressed(e),r=this.mapState.zoom({pos:t,scale:n?.5:2});return this.updateViewport(r)}},{key:"_onKeyDown",value:function(e){if(!this.keyboard)return!1;var t=this.isFunctionKeyPressed(e),n=this.mapStateProps,r=void 0;switch(e.srcEvent.keyCode){case 189:r=t?this.getMapState({zoom:n.zoom-2}):this.getMapState({zoom:n.zoom-1});break;case 187:r=t?this.getMapState({zoom:n.zoom+2}):this.getMapState({zoom:n.zoom+1});break;case 37:r=t?this.getMapState({bearing:n.bearing-15}):this.mapState.pan({pos:[100,0],startPos:[0,0]});break;case 39:r=t?this.getMapState({bearing:n.bearing+15}):this.mapState.pan({pos:[-100,0],startPos:[0,0]});break;case 38:r=t?this.getMapState({pitch:n.pitch+10}):this.mapState.pan({pos:[0,100],startPos:[0,0]});break;case 40:r=t?this.getMapState({pitch:n.pitch-10}):this.mapState.pan({pos:[0,-100],startPos:[0,0]});break;default:return!1}return this.updateViewport(r)}}]),e}();t.default=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){return{contents:e.contents}}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"";return Array.isArray(e)&&e.forEach(function(e){return o(e,t)}),e.name&&(e.path=e.name.match(/(GeoJSON|3D|API|([A-Z]|^)[a-z'0-9]+|\d+)/g).join("-").toLowerCase().replace(/[^\w-]/g,"")),e.children&&o(e.children,t+"/"+e.path),"string"==typeof e.content&&(p[e.content]=t+"/"+e.path),e}Object.defineProperty(t,"__esModule",{value:!0}),t.Pages=t.markdownFiles=void 0;var a=n(320),s=n(343),l=r(s),c=n(162),u=r(c),p=t.markdownFiles={},d={title:"Examples",pageComponent:l.default,paths:o(a.standaloneExamples)},f={title:"Documentation",pageComponent:u.default,paths:o([{name:"Introduction",children:[{name:"Introduction",content:i("README.md")},{name:"What's New",content:i("whats-new.md")},{name:"Upgrade Guide",content:i("upgrade-guide.md")}]},{name:"Getting Started",children:[{name:"Get Started",content:i("get-started/README.md")},{name:"About Mapbox Tokens",content:i("get-started/mapbox-tokens.md")},{name:"Using with Redux",content:i("get-started/using-with-redux.md")}]},{name:"API Reference",children:[{name:"CanvasOverlay",content:i("overlays/canvas-overlay.md")},{name:"HTMLOverlay",content:i("overlays/html-overlay.md")},{name:"Interactive Map",content:i("components/interactive-map.md")},{name:"Marker",content:i("components/marker.md")},{name:"Navigation Control",content:i("components/navigation-control.md")},{name:"Popup",content:i("components/popup.md")},{name:"Static Map",content:i("components/static-map.md")},{name:"SVGOverlay",content:i("overlays/svg-overlay.md")}]},{name:"Advanced",children:[{name:"Custom Map Controls",content:i("advanced/custom-map-controls.md")}]}])};t.Pages=[d,f]},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(80),i=n(19).document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},function(e,t,n){e.exports=!n(29)&&!n(42)(function(){return 7!=Object.defineProperty(n(166)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(165);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t,n){"use strict";var r=n(102),i=n(41),o=n(173),a=n(43),s=n(30),l=n(101),c=n(376),u=n(104),p=n(384),d=n(45)("iterator"),f=!([].keys&&"next"in[].keys()),m=function(){return this};e.exports=function(e,t,n,h,g,v,_){c(n,t,h);var y,b,x,w=function(e){if(!f&&e in S)return S[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},E=t+" Iterator",M="values"==g,A=!1,S=e.prototype,C=S[d]||S["@@iterator"]||g&&S[g],T=C||w(g),N=g?M?w("entries"):T:void 0,O="Array"==t?S.entries||C:C;if(O&&(x=p(O.call(new e)))!==Object.prototype&&(u(x,E,!0),r||s(x,d)||a(x,d,m)),M&&C&&"values"!==C.name&&(A=!0,T=function(){return C.call(this)}),r&&!_||!f&&!A&&S[d]||a(S,d,T),l[t]=T,l[E]=m,g)if(y={values:M?T:w("values"),keys:v?T:w("keys"),entries:N},_)for(b in y)b in S||o(S,b,y[b]);else i(i.P+i.F*(f||A),t,y);return y}},function(e,t,n){var r=n(79),i=n(381),o=n(100),a=n(105)("IE_PROTO"),s=function(){},l=function(){var e,t=n(166)("iframe"),r=o.length;for(t.style.display="none",n(374).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write("