text: /*! For license information please see component---src-pages-index-js-6943cd2e45773c39ed85.js.LICENSE.txt */
  (self.webpackChunkhofstede_globe=self.webpackChunkhofstede_globe||[]).push([[678],{7228:function(t){t.exports=function(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},t.exports.__esModule=!0,t.exports.default=t.exports},2858:function(t){t.exports=function(t){if(Array.isArray(t))return t},t.exports.__esModule=!0,t.exports.default=t.exports},3646:function(t,e,n){var r=n(7228);t.exports=function(t){if(Array.isArray(t))return r(t)},t.exports.__esModule=!0,t.exports.default=t.exports},4575:function(t){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports},9100:function(t,e,n){var r=n(9489),i=n(7067);function o(e,n,a){return i()?(t.exports=o=Reflect.construct,t.exports.__esModule=!0,t.exports.default=t.exports):(t.exports=o=function(t,e,n){var i=[null];i.push.apply(i,e);var o=new(Function.bind.apply(t,i));return n&&r(o,n.prototype),o},t.exports.__esModule=!0,t.exports.default=t.exports),o.apply(null,arguments)}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports},3913:function(t){function e(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)}}t.exports=function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports.default=t.exports},9713:function(t){t.exports=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},t.exports.__esModule=!0,t.exports.default=t.exports},6525:function(t,e,n){var r=n(8331);function i(){return"undefined"!=typeof Reflect&&Reflect.get?(t.exports=i=Reflect.get,t.exports.__esModule=!0,t.exports.default=t.exports):(t.exports=i=function(t,e,n){var i=r(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},t.exports.__esModule=!0,t.exports.default=t.exports),i.apply(this,arguments)}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports},9754:function(t){function e(n){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},2205:function(t,e,n){var r=n(9489);t.exports=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");Object.defineProperty(t,"prototype",{value:Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),writable:!1}),e&&r(t,e)},t.exports.__esModule=!0,t.exports.default=t.exports},430:function(t){t.exports=function(t){return-1!==Function.toString.call(t).indexOf("[native code]")},t.exports.__esModule=!0,t.exports.default=t.exports},7067:function(t){t.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}},t.exports.__esModule=!0,t.exports.default=t.exports},6860:function(t){t.exports=function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},t.exports.__esModule=!0,t.exports.default=t.exports},3884:function(t){t.exports=function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(u){s=!0,i=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}},t.exports.__esModule=!0,t.exports.default=t.exports},521:function(t){t.exports=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.")},t.exports.__esModule=!0,t.exports.default=t.exports},8206:function(t){t.exports=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.")},t.exports.__esModule=!0,t.exports.default=t.exports},8585:function(t,e,n){var r=n(8).default,i=n(1506);t.exports=function(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return i(t)},t.exports.__esModule=!0,t.exports.default=t.exports},3038:function(t,e,n){var r=n(2858),i=n(3884),o=n(379),a=n(521);t.exports=function(t,e){return r(t)||i(t,e)||o(t,e)||a()},t.exports.__esModule=!0,t.exports.default=t.exports},8331:function(t,e,n){var r=n(9754);t.exports=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=r(t)););return t},t.exports.__esModule=!0,t.exports.default=t.exports},8551:function(t,e,n){var r=n(2858),i=n(6860),o=n(379),a=n(521);t.exports=function(t){return r(t)||i(t)||o(t)||a()},t.exports.__esModule=!0,t.exports.default=t.exports},319:function(t,e,n){var r=n(3646),i=n(6860),o=n(379),a=n(8206);t.exports=function(t){return r(t)||i(t)||o(t)||a()},t.exports.__esModule=!0,t.exports.default=t.exports},8:function(t){function e(n){return t.exports=e="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.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},379:function(t,e,n){var r=n(7228);t.exports=function(t,e){if(t){if("string"==typeof t)return r(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)?r(t,e):void 0}},t.exports.__esModule=!0,t.exports.default=t.exports},5957:function(t,e,n){var r=n(9754),i=n(9489),o=n(430),a=n(9100);function s(e){var n="function"==typeof Map?new Map:void 0;return t.exports=s=function(t){if(null===t||!o(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(t))return n.get(t);n.set(t,e)}function e(){return a(t,arguments,r(this).constructor)}return e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),i(e,t)},t.exports.__esModule=!0,t.exports.default=t.exports,s(e)}t.exports=s,t.exports.__esModule=!0,t.exports.default=t.exports},3873:function(t){t.exports=function(){"use strict";for(var t=function(t,e,n){return void 0===e&&(e=0),void 0===n&&(n=1),t<e?e:t>n?n:t},e=function(e){e._clipped=!1,e._unclipped=e.slice(0);for(var n=0;n<=3;n++)n<3?((e[n]<0||e[n]>255)&&(e._clipped=!0),e[n]=t(e[n],0,255)):3===n&&(e[n]=t(e[n],0,1));return e},n={},r=0,i=["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"];r<i.length;r+=1){var o=i[r];n["[object "+o+"]"]=o.toLowerCase()}var a=function(t){return n[Object.prototype.toString.call(t)]||"object"},s=function(t,e){return void 0===e&&(e=null),t.length>=3?Array.prototype.slice.call(t):"object"==a(t[0])&&e?e.split("").filter((function(e){return void 0!==t[0][e]})).map((function(e){return t[0][e]})):t[0]},u=function(t){if(t.length<2)return null;var e=t.length-1;return"string"==a(t[e])?t[e].toLowerCase():null},c=Math.PI,l={clip_rgb:e,limit:t,type:a,unpack:s,last:u,PI:c,TWOPI:2*c,PITHIRD:c/3,DEG2RAD:c/180,RAD2DEG:180/c},f={format:{},autodetect:[]},p=l.last,d=l.clip_rgb,h=l.type,v=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=this;if("object"===h(t[0])&&t[0].constructor&&t[0].constructor===this.constructor)return t[0];var r=p(t),i=!1;if(!r){i=!0,f.sorted||(f.autodetect=f.autodetect.sort((function(t,e){return e.p-t.p})),f.sorted=!0);for(var o=0,a=f.autodetect;o<a.length;o+=1){var s=a[o];if(r=s.test.apply(s,t))break}}if(!f.format[r])throw new Error("unknown format: "+t);var u=f.format[r].apply(null,i?t:t.slice(0,-1));n._rgb=d(u),3===n._rgb.length&&n._rgb.push(1)};v.prototype.toString=function(){return"function"==h(this.hex)?this.hex():"["+this._rgb.join(",")+"]"};var m=v,g=function t(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];return new(Function.prototype.bind.apply(t.Color,[null].concat(e)))};g.Color=m,g.version="2.1.2";var y=g,b=l.unpack,w=Math.max,P=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=b(t,"rgb"),r=n[0],i=n[1],o=n[2],a=1-w(r/=255,w(i/=255,o/=255)),s=a<1?1/(1-a):0;return[(1-r-a)*s,(1-i-a)*s,(1-o-a)*s,a]},x=P,E=l.unpack,O=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=(t=E(t,"cmyk"))[0],r=t[1],i=t[2],o=t[3],a=t.length>4?t[4]:1;return 1===o?[0,0,0,a]:[n>=1?0:255*(1-n)*(1-o),r>=1?0:255*(1-r)*(1-o),i>=1?0:255*(1-i)*(1-o),a]},M=O,C=l.unpack,A=l.type;m.prototype.cmyk=function(){return x(this._rgb)},y.cmyk=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return new(Function.prototype.bind.apply(m,[null].concat(t,["cmyk"])))},f.format.cmyk=M,f.autodetect.push({p:2,test:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];if(t=C(t,"cmyk"),"array"===A(t)&&4===t.length)return"cmyk"}});var T=l.unpack,I=l.last,S=function(t){return Math.round(100*t)/100},k=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=T(t,"hsla"),r=I(t)||"lsa";return n[0]=S(n[0]||0),n[1]=S(100*n[1])+"%",n[2]=S(100*n[2])+"%","hsla"===r||n.length>3&&n[3]<1?(n[3]=n.length>3?n[3]:1,r="hsla"):n.length=3,r+"("+n.join(",")+")"},_=k,D=l.unpack,j=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=(t=D(t,"rgba"))[0],r=t[1],i=t[2];n/=255,r/=255,i/=255;var o,a,s=Math.min(n,r,i),u=Math.max(n,r,i),c=(u+s)/2;return u===s?(o=0,a=Number.NaN):o=c<.5?(u-s)/(u+s):(u-s)/(2-u-s),n==u?a=(r-i)/(u-s):r==u?a=2+(i-n)/(u-s):i==u&&(a=4+(n-r)/(u-s)),(a*=60)<0&&(a+=360),t.length>3&&void 0!==t[3]?[a,o,c,t[3]]:[a,o,c]},L=j,N=l.unpack,R=l.last,U=Math.round,V=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=N(t,"rgba"),r=R(t)||"rgb";return"hsl"==r.substr(0,3)?_(L(n),r):(n[0]=U(n[0]),n[1]=U(n[1]),n[2]=U(n[2]),("rgba"===r||n.length>3&&n[3]<1)&&(n[3]=n.length>3?n[3]:1,r="rgba"),r+"("+n.slice(0,"rgb"===r?3:4).join(",")+")")},F=V,z=l.unpack,B=Math.round,Z=function(){for(var t,e=[],n=arguments.length;n--;)e[n]=arguments[n];var r,i,o,a=(e=z(e,"hsl"))[0],s=e[1],u=e[2];if(0===s)r=i=o=255*u;else{var c=[0,0,0],l=[0,0,0],f=u<.5?u*(1+s):u+s-u*s,p=2*u-f,d=a/360;c[0]=d+1/3,c[1]=d,c[2]=d-1/3;for(var h=0;h<3;h++)c[h]<0&&(c[h]+=1),c[h]>1&&(c[h]-=1),6*c[h]<1?l[h]=p+6*(f-p)*c[h]:2*c[h]<1?l[h]=f:3*c[h]<2?l[h]=p+(f-p)*(2/3-c[h])*6:l[h]=p;r=(t=[B(255*l[0]),B(255*l[1]),B(255*l[2])])[0],i=t[1],o=t[2]}return e.length>3?[r,i,o,e[3]]:[r,i,o,1]},H=Z,G=/^rgb\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*\)$/,q=/^rgba\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*,\s*([01]|[01]?\.\d+)\)$/,W=/^rgb\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,Y=/^rgba\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,X=/^hsl\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,K=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,$=Math.round,J=function(t){var e;if(t=t.toLowerCase().trim(),f.format.named)try{return f.format.named(t)}catch(v){}if(e=t.match(G)){for(var n=e.slice(1,4),r=0;r<3;r++)n[r]=+n[r];return n[3]=1,n}if(e=t.match(q)){for(var i=e.slice(1,5),o=0;o<4;o++)i[o]=+i[o];return i}if(e=t.match(W)){for(var a=e.slice(1,4),s=0;s<3;s++)a[s]=$(2.55*a[s]);return a[3]=1,a}if(e=t.match(Y)){for(var u=e.slice(1,5),c=0;c<3;c++)u[c]=$(2.55*u[c]);return u[3]=+u[3],u}if(e=t.match(X)){var l=e.slice(1,4);l[1]*=.01,l[2]*=.01;var p=H(l);return p[3]=1,p}if(e=t.match(K)){var d=e.slice(1,4);d[1]*=.01,d[2]*=.01;var h=H(d);return h[3]=+e[4],h}};J.test=function(t){return G.test(t)||q.test(t)||W.test(t)||Y.test(t)||X.test(t)||K.test(t)};var Q=J,tt=l.type;m.prototype.css=function(t){return F(this._rgb,t)},y.css=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return new(Function.prototype.bind.apply(m,[null].concat(t,["css"])))},f.format.css=Q,f.autodetect.push({p:5,test:function(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];if(!e.length&&"string"===tt(t)&&Q.test(t))return"css"}});var et=l.unpack;f.format.gl=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=et(t,"rgba");return n[0]*=255,n[1]*=255,n[2]*=255,n},y.gl=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return new(Function.prototype.bind.apply(m,[null].concat(t,["gl"])))},m.prototype.gl=function(){var t=this._rgb;return[t[0]/255,t[1]/255,t[2]/255,t[3]]};var nt=l.unpack,rt=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n,r=nt(t,"rgb"),i=r[0],o=r[1],a=r[2],s=Math.min(i,o,a),u=Math.max(i,o,a),c=u-s,l=100*c/255,f=s/(255-c)*100;return 0===c?n=Number.NaN:(i===u&&(n=(o-a)/c),o===u&&(n=2+(a-i)/c),a===u&&(n=4+(i-o)/c),(n*=60)<0&&(n+=360)),[n,l,f]},it=rt,ot=l.unpack,at=Math.floor,st=function(){for(var t,e,n,r,i,o,a=[],s=arguments.length;s--;)a[s]=arguments[s];var u,c,l,f=(a=ot(a,"hcg"))[0],p=a[1],d=a[2];d*=255;var h=255*p;if(0===p)u=c=l=d;else{360===f&&(f=0),f>360&&(f-=360),f<0&&(f+=360);var v=at(f/=60),m=f-v,g=d*(1-p),y=g+h*(1-m),b=g+h*m,w=g+h;switch(v){case 0:u=(t=[w,b,g])[0],c=t[1],l=t[2];break;case 1:u=(e=[y,w,g])[0],c=e[1],l=e[2];break;case 2:u=(n=[g,w,b])[0],c=n[1],l=n[2];break;case 3:u=(r=[g,y,w])[0],c=r[1],l=r[2];break;case 4:u=(i=[b,g,w])[0],c=i[1],l=i[2];break;case 5:u=(o=[w,g,y])[0],c=o[1],l=o[2]}}return[u,c,l,a.length>3?a[3]:1]},ut=st,ct=l.unpack,lt=l.type;m.prototype.hcg=function(){return it(this._rgb)},y.hcg=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return new(Function.prototype.bind.apply(m,[null].concat(t,["hcg"])))},f.format.hcg=ut,f.autodetect.push({p:1,test:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];if(t=ct(t,"hcg"),"array"===lt(t)&&3===t.length)return"hcg"}});var ft=l.unpack,pt=l.last,dt=Math.round,ht=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=ft(t,"rgba"),r=n[0],i=n[1],o=n[2],a=n[3],s=pt(t)||"auto";void 0===a&&(a=1),"auto"===s&&(s=a<1?"rgba":"rgb");var u="000000"+((r=dt(r))<<16|(i=dt(i))<<8|(o=dt(o))).toString(16);u=u.substr(u.length-6);var c="0"+dt(255*a).toString(16);switch(c=c.substr(c.length-2),s.toLowerCase()){case"rgba":return"#"+u+c;case"argb":return"#"+c+u;default:return"#"+u}},vt=ht,mt=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,gt=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,yt=function(t){if(t.match(mt)){4!==t.length&&7!==t.length||(t=t.substr(1)),3===t.length&&(t=(t=t.split(""))[0]+t[0]+t[1]+t[1]+t[2]+t[2]);var e=parseInt(t,16);return[e>>16,e>>8&255,255&e,1]}if(t.match(gt)){5!==t.length&&9!==t.length||(t=t.substr(1)),4===t.length&&(t=(t=t.split(""))[0]+t[0]+t[1]+t[1]+t[2]+t[2]+t[3]+t[3]);var n=parseInt(t,16);return[n>>24&255,n>>16&255,n>>8&255,Math.round((255&n)/255*100)/100]}throw new Error("unknown hex color: "+t)},bt=l.type;m.prototype.hex=function(t){return vt(this._rgb,t)},y.hex=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return new(Function.prototype.bind.apply(m,[null].concat(t,["hex"])))},f.format.hex=yt,f.autodetect.push({p:4,test:function(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];if(!e.length&&"string"===bt(t)&&[3,4,5,6,7,8,9].indexOf(t.length)>=0)return"hex"}});var wt=l.unpack,Pt=l.TWOPI,xt=Math.min,Et=Math.sqrt,Ot=Math.acos,Mt=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n,r=wt(t,"rgb"),i=r[0],o=r[1],a=r[2],s=xt(i/=255,o/=255,a/=255),u=(i+o+a)/3,c=u>0?1-s/u:0;return 0===c?n=NaN:(n=(i-o+(i-a))/2,n/=Et((i-o)*(i-o)+(i-a)*(o-a)),n=Ot(n),a>o&&(n=Pt-n),n/=Pt),[360*n,c,u]},Ct=Mt,At=l.unpack,Tt=l.limit,It=l.TWOPI,St=l.PITHIRD,kt=Math.cos,_t=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n,r,i,o=(t=At(t,"hsi"))[0],a=t[1],s=t[2];return isNaN(o)&&(o=0),isNaN(a)&&(a=0),o>360&&(o-=360),o<0&&(o+=360),(o/=360)<1/3?r=1-((i=(1-a)/3)+(n=(1+a*kt(It*o)/kt(St-It*o))/3)):o<2/3?i=1-((n=(1-a)/3)+(r=(1+a*kt(It*(o-=1/3))/kt(St-It*o))/3)):n=1-((r=(1-a)/3)+(i=(1+a*kt(It*(o-=2/3))/kt(St-It*o))/3)),[255*(n=Tt(s*n*3)),255*(r=Tt(s*r*3)),255*(i=Tt(s*i*3)),t.length>3?t[3]:1]},Dt=_t,jt=l.unpack,Lt=l.type;m.prototype.hsi=function(){return Ct(this._rgb)},y.hsi=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return new(Function.prototype.bind.apply(m,[null].concat(t,["hsi"])))},f.format.hsi=Dt,f.autodetect.push({p:2,test:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];if(t=jt(t,"hsi"),"array"===Lt(t)&&3===t.length)return"hsi"}});var Nt=l.unpack,Rt=l.type;m.prototype.hsl=function(){return L(this._rgb)},y.hsl=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return new(Function.prototype.bind.apply(m,[null].concat(t,["hsl"])))},f.format.hsl=H,f.autodetect.push({p:2,test:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];if(t=Nt(t,"hsl"),"array"===Rt(t)&&3===t.length)return"hsl"}});var Ut=l.unpack,Vt=Math.min,Ft=Math.max,zt=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n,r,i,o=(t=Ut(t,"rgb"))[0],a=t[1],s=t[2],u=Vt(o,a,s),c=Ft(o,a,s),l=c-u;return i=c/255,0===c?(n=Number.NaN,r=0):(r=l/c,o===c&&(n=(a-s)/l),a===c&&(n=2+(s-o)/l),s===c&&(n=4+(o-a)/l),(n*=60)<0&&(n+=360)),[n,r,i]},Bt=zt,Zt=l.unpack,Ht=Math.floor,Gt=function(){for(var t,e,n,r,i,o,a=[],s=arguments.length;s--;)a[s]=arguments[s];var u,c,l,f=(a=Zt(a,"hsv"))[0],p=a[1],d=a[2];if(d*=255,0===p)u=c=l=d;else{360===f&&(f=0),f>360&&(f-=360),f<0&&(f+=360);var h=Ht(f/=60),v=f-h,m=d*(1-p),g=d*(1-p*v),y=d*(1-p*(1-v));switch(h){case 0:u=(t=[d,y,m])[0],c=t[1],l=t[2];break;case 1:u=(e=[g,d,m])[0],c=e[1],l=e[2];break;case 2:u=(n=[m,d,y])[0],c=n[1],l=n[2];break;case 3:u=(r=[m,g,d])[0],c=r[1],l=r[2];break;case 4:u=(i=[y,m,d])[0],c=i[1],l=i[2];break;case 5:u=(o=[d,m,g])[0],c=o[1],l=o[2]}}return[u,c,l,a.length>3?a[3]:1]},qt=Gt,Wt=l.unpack,Yt=l.type;m.prototype.hsv=function(){return Bt(this._rgb)},y.hsv=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return new(Function.prototype.bind.apply(m,[null].concat(t,["hsv"])))},f.format.hsv=qt,f.autodetect.push({p:2,test:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];if(t=Wt(t,"hsv"),"array"===Yt(t)&&3===t.length)return"hsv"}});var Xt={Kn:18,Xn:.95047,Yn:1,Zn:1.08883,t0:.137931034,t1:.206896552,t2:.12841855,t3:.008856452},Kt=l.unpack,$t=Math.pow,Jt=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=Kt(t,"rgb"),r=n[0],i=n[1],o=n[2],a=ee(r,i,o),s=a[0],u=a[1],c=116*u-16;return[c<0?0:c,500*(s-u),200*(u-a[2])]},Qt=function(t){return(t/=255)<=.04045?t/12.92:$t((t+.055)/1.055,2.4)},te=function(t){return t>Xt.t3?$t(t,1/3):t/Xt.t2+Xt.t0},ee=function(t,e,n){return t=Qt(t),e=Qt(e),n=Qt(n),[te((.4124564*t+.3575761*e+.1804375*n)/Xt.Xn),te((.2126729*t+.7151522*e+.072175*n)/Xt.Yn),te((.0193339*t+.119192*e+.9503041*n)/Xt.Zn)]},ne=Jt,re=l.unpack,ie=Math.pow,oe=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n,r,i,o=(t=re(t,"lab"))[0],a=t[1],s=t[2];return r=(o+16)/116,n=isNaN(a)?r:r+a/500,i=isNaN(s)?r:r-s/200,r=Xt.Yn*se(r),n=Xt.Xn*se(n),i=Xt.Zn*se(i),[ae(3.2404542*n-1.5371385*r-.4985314*i),ae(-.969266*n+1.8760108*r+.041556*i),ae(.0556434*n-.2040259*r+1.0572252*i),t.length>3?t[3]:1]},ae=function(t){return 255*(t<=.00304?12.92*t:1.055*ie(t,1/2.4)-.055)},se=function(t){return t>Xt.t1?t*t*t:Xt.t2*(t-Xt.t0)},ue=oe,ce=l.unpack,le=l.type;m.prototype.lab=function(){return ne(this._rgb)},y.lab=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return new(Function.prototype.bind.apply(m,[null].concat(t,["lab"])))},f.format.lab=ue,f.autodetect.push({p:2,test:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];if(t=ce(t,"lab"),"array"===le(t)&&3===t.length)return"lab"}});var fe=l.unpack,pe=l.RAD2DEG,de=Math.sqrt,he=Math.atan2,ve=Math.round,me=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=fe(t,"lab"),r=n[0],i=n[1],o=n[2],a=de(i*i+o*o),s=(he(o,i)*pe+360)%360;return 0===ve(1e4*a)&&(s=Number.NaN),[r,a,s]},ge=me,ye=l.unpack,be=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=ye(t,"rgb"),r=n[0],i=n[1],o=n[2],a=ne(r,i,o),s=a[0],u=a[1],c=a[2];return ge(s,u,c)},we=be,Pe=l.unpack,xe=l.DEG2RAD,Ee=Math.sin,Oe=Math.cos,Me=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=Pe(t,"lch"),r=n[0],i=n[1],o=n[2];return isNaN(o)&&(o=0),[r,Oe(o*=xe)*i,Ee(o)*i]},Ce=Me,Ae=l.unpack,Te=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=(t=Ae(t,"lch"))[0],r=t[1],i=t[2],o=Ce(n,r,i),a=o[0],s=o[1],u=o[2],c=ue(a,s,u);return[c[0],c[1],c[2],t.length>3?t[3]:1]},Ie=Te,Se=l.unpack,ke=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=Se(t,"hcl").reverse();return Ie.apply(void 0,n)},_e=ke,De=l.unpack,je=l.type;m.prototype.lch=function(){return we(this._rgb)},m.prototype.hcl=function(){return we(this._rgb).reverse()},y.lch=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return new(Function.prototype.bind.apply(m,[null].concat(t,["lch"])))},y.hcl=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return new(Function.prototype.bind.apply(m,[null].concat(t,["hcl"])))},f.format.lch=Ie,f.format.hcl=_e,["lch","hcl"].forEach((function(t){return f.autodetect.push({p:2,test:function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];if(e=De(e,t),"array"===je(e)&&3===e.length)return t}})}));var Le={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflower:"#6495ed",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",laserlemon:"#ffff54",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrod:"#fafad2",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",maroon2:"#7f0000",maroon3:"#b03060",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",purple2:"#7f007f",purple3:"#a020f0",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},Ne=l.type;m.prototype.name=function(){for(var t=vt(this._rgb,"rgb"),e=0,n=Object.keys(Le);e<n.length;e+=1){var r=n[e];if(Le[r]===t)return r.toLowerCase()}return t},f.format.named=function(t){if(t=t.toLowerCase(),Le[t])return yt(Le[t]);throw new Error("unknown color name: "+t)},f.autodetect.push({p:5,test:function(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];if(!e.length&&"string"===Ne(t)&&Le[t.toLowerCase()])return"named"}});var Re=l.unpack,Ue=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=Re(t,"rgb");return(n[0]<<16)+(n[1]<<8)+n[2]},Ve=Ue,Fe=l.type,ze=function(t){if("number"==Fe(t)&&t>=0&&t<=16777215)return[t>>16,t>>8&255,255&t,1];throw new Error("unknown num color: "+t)},Be=l.type;m.prototype.num=function(){return Ve(this._rgb)},y.num=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return new(Function.prototype.bind.apply(m,[null].concat(t,["num"])))},f.format.num=ze,f.autodetect.push({p:5,test:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];if(1===t.length&&"number"===Be(t[0])&&t[0]>=0&&t[0]<=16777215)return"num"}});var Ze=l.unpack,He=l.type,Ge=Math.round;m.prototype.rgb=function(t){return void 0===t&&(t=!0),!1===t?this._rgb.slice(0,3):this._rgb.slice(0,3).map(Ge)},m.prototype.rgba=function(t){return void 0===t&&(t=!0),this._rgb.slice(0,4).map((function(e,n){return n<3?!1===t?e:Ge(e):e}))},y.rgb=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return new(Function.prototype.bind.apply(m,[null].concat(t,["rgb"])))},f.format.rgb=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=Ze(t,"rgba");return void 0===n[3]&&(n[3]=1),n},f.autodetect.push({p:3,test:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];if(t=Ze(t,"rgba"),"array"===He(t)&&(3===t.length||4===t.length&&"number"==He(t[3])&&t[3]>=0&&t[3]<=1))return"rgb"}});var qe=Math.log,We=function(t){var e,n,r,i=t/100;return i<66?(e=255,n=-155.25485562709179-.44596950469579133*(n=i-2)+104.49216199393888*qe(n),r=i<20?0:.8274096064007395*(r=i-10)-254.76935184120902+115.67994401066147*qe(r)):(e=351.97690566805693+.114206453784165*(e=i-55)-40.25366309332127*qe(e),n=325.4494125711974+.07943456536662342*(n=i-50)-28.0852963507957*qe(n),r=255),[e,n,r,1]},Ye=l.unpack,Xe=Math.round,Ke=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];for(var n,r=Ye(t,"rgb"),i=r[0],o=r[2],a=1e3,s=4e4,u=.4;s-a>u;){var c=We(n=.5*(s+a));c[2]/c[0]>=o/i?s=n:a=n}return Xe(n)},$e=Ke;m.prototype.temp=m.prototype.kelvin=m.prototype.temperature=function(){return $e(this._rgb)},y.temp=y.kelvin=y.temperature=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return new(Function.prototype.bind.apply(m,[null].concat(t,["temp"])))},f.format.temp=f.format.kelvin=f.format.temperature=We;var Je=l.type;m.prototype.alpha=function(t,e){return void 0===e&&(e=!1),void 0!==t&&"number"===Je(t)?e?(this._rgb[3]=t,this):new m([this._rgb[0],this._rgb[1],this._rgb[2],t],"rgb"):this._rgb[3]},m.prototype.clipped=function(){return this._rgb._clipped||!1},m.prototype.darken=function(t){void 0===t&&(t=1);var e=this,n=e.lab();return n[0]-=Xt.Kn*t,new m(n,"lab").alpha(e.alpha(),!0)},m.prototype.brighten=function(t){return void 0===t&&(t=1),this.darken(-t)},m.prototype.darker=m.prototype.darken,m.prototype.brighter=m.prototype.brighten,m.prototype.get=function(t){var e=t.split("."),n=e[0],r=e[1],i=this[n]();if(r){var o=n.indexOf(r);if(o>-1)return i[o];throw new Error("unknown channel "+r+" in mode "+n)}return i};var Qe=l.type,tn=Math.pow,en=1e-7,nn=20;m.prototype.luminance=function(t){if(void 0!==t&&"number"===Qe(t)){if(0===t)return new m([0,0,0,this._rgb[3]],"rgb");if(1===t)return new m([255,255,255,this._rgb[3]],"rgb");var e=this.luminance(),n="rgb",r=nn,i=function e(i,o){var a=i.interpolate(o,.5,n),s=a.luminance();return Math.abs(t-s)<en||!r--?a:s>t?e(i,a):e(a,o)},o=(e>t?i(new m([0,0,0]),this):i(this,new m([255,255,255]))).rgb();return new m(o.concat([this._rgb[3]]))}return rn.apply(void 0,this._rgb.slice(0,3))};var rn=function(t,e,n){return.2126*(t=on(t))+.7152*(e=on(e))+.0722*(n=on(n))},on=function(t){return(t/=255)<=.03928?t/12.92:tn((t+.055)/1.055,2.4)},an={},sn=l.type,un=function(t,e,n){void 0===n&&(n=.5);for(var r=[],i=arguments.length-3;i-- >0;)r[i]=arguments[i+3];var o=r[0]||"lrgb";if(an[o]||r.length||(o=Object.keys(an)[0]),!an[o])throw new Error("interpolation mode "+o+" is not defined");return"object"!==sn(t)&&(t=new m(t)),"object"!==sn(e)&&(e=new m(e)),an[o](t,e,n).alpha(t.alpha()+n*(e.alpha()-t.alpha()))};m.prototype.mix=m.prototype.interpolate=function(t,e){void 0===e&&(e=.5);for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return un.apply(void 0,[this,t,e].concat(n))},m.prototype.premultiply=function(t){void 0===t&&(t=!1);var e=this._rgb,n=e[3];return t?(this._rgb=[e[0]*n,e[1]*n,e[2]*n,n],this):new m([e[0]*n,e[1]*n,e[2]*n,n],"rgb")},m.prototype.saturate=function(t){void 0===t&&(t=1);var e=this,n=e.lch();return n[1]+=Xt.Kn*t,n[1]<0&&(n[1]=0),new m(n,"lch").alpha(e.alpha(),!0)},m.prototype.desaturate=function(t){return void 0===t&&(t=1),this.saturate(-t)};var cn=l.type;m.prototype.set=function(t,e,n){void 0===n&&(n=!1);var r=t.split("."),i=r[0],o=r[1],a=this[i]();if(o){var s=i.indexOf(o);if(s>-1){if("string"==cn(e))switch(e.charAt(0)){case"+":case"-":a[s]+=+e;break;case"*":a[s]*=+e.substr(1);break;case"/":a[s]/=+e.substr(1);break;default:a[s]=+e}else{if("number"!==cn(e))throw new Error("unsupported value for Color.set");a[s]=e}var u=new m(a,i);return n?(this._rgb=u._rgb,this):u}throw new Error("unknown channel "+o+" in mode "+i)}return a};var ln=function(t,e,n){var r=t._rgb,i=e._rgb;return new m(r[0]+n*(i[0]-r[0]),r[1]+n*(i[1]-r[1]),r[2]+n*(i[2]-r[2]),"rgb")};an.rgb=ln;var fn=Math.sqrt,pn=Math.pow,dn=function(t,e,n){var r=t._rgb,i=r[0],o=r[1],a=r[2],s=e._rgb,u=s[0],c=s[1],l=s[2];return new m(fn(pn(i,2)*(1-n)+pn(u,2)*n),fn(pn(o,2)*(1-n)+pn(c,2)*n),fn(pn(a,2)*(1-n)+pn(l,2)*n),"rgb")};an.lrgb=dn;var hn=function(t,e,n){var r=t.lab(),i=e.lab();return new m(r[0]+n*(i[0]-r[0]),r[1]+n*(i[1]-r[1]),r[2]+n*(i[2]-r[2]),"lab")};an.lab=hn;var vn=function(t,e,n,r){var i,o,a,s,u,c,l,f,p,d,h,v;return"hsl"===r?(a=t.hsl(),s=e.hsl()):"hsv"===r?(a=t.hsv(),s=e.hsv()):"hcg"===r?(a=t.hcg(),s=e.hcg()):"hsi"===r?(a=t.hsi(),s=e.hsi()):"lch"!==r&&"hcl"!==r||(r="hcl",a=t.hcl(),s=e.hcl()),"h"===r.substr(0,1)&&(u=(i=a)[0],l=i[1],p=i[2],c=(o=s)[0],f=o[1],d=o[2]),isNaN(u)||isNaN(c)?isNaN(u)?isNaN(c)?v=Number.NaN:(v=c,1!=p&&0!=p||"hsv"==r||(h=f)):(v=u,1!=d&&0!=d||"hsv"==r||(h=l)):v=u+n*(c>u&&c-u>180?c-(u+360):c<u&&u-c>180?c+360-u:c-u),void 0===h&&(h=l+n*(f-l)),new m([v,h,p+n*(d-p)],r)},mn=function(t,e,n){return vn(t,e,n,"lch")};an.lch=mn,an.hcl=mn;var gn=function(t,e,n){var r=t.num(),i=e.num();return new m(r+n*(i-r),"num")};an.num=gn;var yn=function(t,e,n){return vn(t,e,n,"hcg")};an.hcg=yn;var bn=function(t,e,n){return vn(t,e,n,"hsi")};an.hsi=bn;var wn=function(t,e,n){return vn(t,e,n,"hsl")};an.hsl=wn;var Pn=function(t,e,n){return vn(t,e,n,"hsv")};an.hsv=Pn;var xn=l.clip_rgb,En=Math.pow,On=Math.sqrt,Mn=Math.PI,Cn=Math.cos,An=Math.sin,Tn=Math.atan2,In=function(t,e,n){void 0===e&&(e="lrgb"),void 0===n&&(n=null);var r=t.length;n||(n=Array.from(new Array(r)).map((function(){return 1})));var i=r/n.reduce((function(t,e){return t+e}));if(n.forEach((function(t,e){n[e]*=i})),t=t.map((function(t){return new m(t)})),"lrgb"===e)return Sn(t,n);for(var o=t.shift(),a=o.get(e),s=[],u=0,c=0,l=0;l<a.length;l++)if(a[l]=(a[l]||0)*n[0],s.push(isNaN(a[l])?0:n[0]),"h"===e.charAt(l)&&!isNaN(a[l])){var f=a[l]/180*Mn;u+=Cn(f)*n[0],c+=An(f)*n[0]}var p=o.alpha()*n[0];t.forEach((function(t,r){var i=t.get(e);p+=t.alpha()*n[r+1];for(var o=0;o<a.length;o++)if(!isNaN(i[o]))if(s[o]+=n[r+1],"h"===e.charAt(o)){var l=i[o]/180*Mn;u+=Cn(l)*n[r+1],c+=An(l)*n[r+1]}else a[o]+=i[o]*n[r+1]}));for(var d=0;d<a.length;d++)if("h"===e.charAt(d)){for(var h=Tn(c/s[d],u/s[d])/Mn*180;h<0;)h+=360;for(;h>=360;)h-=360;a[d]=h}else a[d]=a[d]/s[d];return p/=r,new m(a,e).alpha(p>.99999?1:p,!0)},Sn=function(t,e){for(var n=t.length,r=[0,0,0,0],i=0;i<t.length;i++){var o=t[i],a=e[i]/n,s=o._rgb;r[0]+=En(s[0],2)*a,r[1]+=En(s[1],2)*a,r[2]+=En(s[2],2)*a,r[3]+=s[3]*a}return r[0]=On(r[0]),r[1]=On(r[1]),r[2]=On(r[2]),r[3]>.9999999&&(r[3]=1),new m(xn(r))},kn=l.type,_n=Math.pow,Dn=function(t){var e="rgb",n=y("#ccc"),r=0,i=[0,1],o=[],a=[0,0],s=!1,u=[],c=!1,l=0,f=1,p=!1,d={},h=!0,v=1,m=function(t){if((t=t||["#fff","#000"])&&"string"===kn(t)&&y.brewer&&y.brewer[t.toLowerCase()]&&(t=y.brewer[t.toLowerCase()]),"array"===kn(t)){1===t.length&&(t=[t[0],t[0]]),t=t.slice(0);for(var e=0;e<t.length;e++)t[e]=y(t[e]);o.length=0;for(var n=0;n<t.length;n++)o.push(n/(t.length-1))}return x(),u=t},g=function(t){if(null!=s){for(var e=s.length-1,n=0;n<e&&t>=s[n];)n++;return n-1}return 0},b=function(t){return t},w=function(t){return t},P=function(t,r){var i,c;if(null==r&&(r=!1),isNaN(t)||null===t)return n;c=r?t:s&&s.length>2?g(t)/(s.length-2):f!==l?(t-l)/(f-l):1,c=w(c),r||(c=b(c)),1!==v&&(c=_n(c,v)),c=a[0]+c*(1-a[0]-a[1]),c=Math.min(1,Math.max(0,c));var p=Math.floor(1e4*c);if(h&&d[p])i=d[p];else{if("array"===kn(u))for(var m=0;m<o.length;m++){var P=o[m];if(c<=P){i=u[m];break}if(c>=P&&m===o.length-1){i=u[m];break}if(c>P&&c<o[m+1]){c=(c-P)/(o[m+1]-P),i=y.interpolate(u[m],u[m+1],c,e);break}}else"function"===kn(u)&&(i=u(c));h&&(d[p]=i)}return i},x=function(){return d={}};m(t);var E=function(t){var e=y(P(t));return c&&e[c]?e[c]():e};return E.classes=function(t){if(null!=t){if("array"===kn(t))s=t,i=[t[0],t[t.length-1]];else{var e=y.analyze(i);s=0===t?[e.min,e.max]:y.limits(e,"e",t)}return E}return s},E.domain=function(t){if(!arguments.length)return i;l=t[0],f=t[t.length-1],o=[];var e=u.length;if(t.length===e&&l!==f)for(var n=0,r=Array.from(t);n<r.length;n+=1){var a=r[n];o.push((a-l)/(f-l))}else{for(var s=0;s<e;s++)o.push(s/(e-1));if(t.length>2){var c=t.map((function(e,n){return n/(t.length-1)})),p=t.map((function(t){return(t-l)/(f-l)}));p.every((function(t,e){return c[e]===t}))||(w=function(t){if(t<=0||t>=1)return t;for(var e=0;t>=p[e+1];)e++;var n=(t-p[e])/(p[e+1]-p[e]);return c[e]+n*(c[e+1]-c[e])})}}return i=[l,f],E},E.mode=function(t){return arguments.length?(e=t,x(),E):e},E.range=function(t,e){return m(t,e),E},E.out=function(t){return c=t,E},E.spread=function(t){return arguments.length?(r=t,E):r},E.correctLightness=function(t){return null==t&&(t=!0),p=t,x(),b=p?function(t){for(var e=P(0,!0).lab()[0],n=P(1,!0).lab()[0],r=e>n,i=P(t,!0).lab()[0],o=e+(n-e)*t,a=i-o,s=0,u=1,c=20;Math.abs(a)>.01&&c-- >0;)r&&(a*=-1),a<0?(s=t,t+=.5*(u-t)):(u=t,t+=.5*(s-t)),i=P(t,!0).lab()[0],a=i-o;return t}:function(t){return t},E},E.padding=function(t){return null!=t?("number"===kn(t)&&(t=[t,t]),a=t,E):a},E.colors=function(e,n){arguments.length<2&&(n="hex");var r=[];if(0===arguments.length)r=u.slice(0);else if(1===e)r=[E(.5)];else if(e>1){var o=i[0],a=i[1]-o;r=jn(0,e,!1).map((function(t){return E(o+t/(e-1)*a)}))}else{t=[];var c=[];if(s&&s.length>2)for(var l=1,f=s.length,p=1<=f;p?l<f:l>f;p?l++:l--)c.push(.5*(s[l-1]+s[l]));else c=i;r=c.map((function(t){return E(t)}))}return y[n]&&(r=r.map((function(t){return t[n]()}))),r},E.cache=function(t){return null!=t?(h=t,E):h},E.gamma=function(t){return null!=t?(v=t,E):v},E.nodata=function(t){return null!=t?(n=y(t),E):n},E};function jn(t,e,n){for(var r=[],i=t<e,o=n?i?e+1:e-1:e,a=t;i?a<o:a>o;i?a++:a--)r.push(a);return r}var Ln=function t(e){var n,r,i,o,a,s,u;if(2===(e=e.map((function(t){return new m(t)}))).length)n=e.map((function(t){return t.lab()})),a=n[0],s=n[1],o=function(t){var e=[0,1,2].map((function(e){return a[e]+t*(s[e]-a[e])}));return new m(e,"lab")};else if(3===e.length)r=e.map((function(t){return t.lab()})),a=r[0],s=r[1],u=r[2],o=function(t){var e=[0,1,2].map((function(e){return(1-t)*(1-t)*a[e]+2*(1-t)*t*s[e]+t*t*u[e]}));return new m(e,"lab")};else if(4===e.length){var c;i=e.map((function(t){return t.lab()})),a=i[0],s=i[1],u=i[2],c=i[3],o=function(t){var e=[0,1,2].map((function(e){return(1-t)*(1-t)*(1-t)*a[e]+3*(1-t)*(1-t)*t*s[e]+3*(1-t)*t*t*u[e]+t*t*t*c[e]}));return new m(e,"lab")}}else if(5===e.length){var l=t(e.slice(0,3)),f=t(e.slice(2,5));o=function(t){return t<.5?l(2*t):f(2*(t-.5))}}return o},Nn=function(t){var e=Ln(t);return e.scale=function(){return Dn(e)},e},Rn=function t(e,n,r){if(!t[r])throw new Error("unknown blend mode "+r);return t[r](e,n)},Un=function(t){return function(e,n){var r=y(n).rgb(),i=y(e).rgb();return y.rgb(t(r,i))}},Vn=function(t){return function(e,n){var r=[];return r[0]=t(e[0],n[0]),r[1]=t(e[1],n[1]),r[2]=t(e[2],n[2]),r}},Fn=function(t){return t},zn=function(t,e){return t*e/255},Bn=function(t,e){return t>e?e:t},Zn=function(t,e){return t>e?t:e},Hn=function(t,e){return 255*(1-(1-t/255)*(1-e/255))},Gn=function(t,e){return e<128?2*t*e/255:255*(1-2*(1-t/255)*(1-e/255))},qn=function(t,e){return 255*(1-(1-e/255)/(t/255))},Wn=function(t,e){return 255===t||(t=e/255*255/(1-t/255))>255?255:t};Rn.normal=Un(Vn(Fn)),Rn.multiply=Un(Vn(zn)),Rn.screen=Un(Vn(Hn)),Rn.overlay=Un(Vn(Gn)),Rn.darken=Un(Vn(Bn)),Rn.lighten=Un(Vn(Zn)),Rn.dodge=Un(Vn(Wn)),Rn.burn=Un(Vn(qn));for(var Yn=Rn,Xn=l.type,Kn=l.clip_rgb,$n=l.TWOPI,Jn=Math.pow,Qn=Math.sin,tr=Math.cos,er=function(t,e,n,r,i){void 0===t&&(t=300),void 0===e&&(e=-1.5),void 0===n&&(n=1),void 0===r&&(r=1),void 0===i&&(i=[0,1]);var o,a=0;"array"===Xn(i)?o=i[1]-i[0]:(o=0,i=[i,i]);var s=function(s){var u=$n*((t+120)/360+e*s),c=Jn(i[0]+o*s,r),l=(0!==a?n[0]+s*a:n)*c*(1-c)/2,f=tr(u),p=Qn(u);return y(Kn([255*(c+l*(-.14861*f+1.78277*p)),255*(c+l*(-.29227*f-.90649*p)),255*(c+l*(1.97294*f)),1]))};return s.start=function(e){return null==e?t:(t=e,s)},s.rotations=function(t){return null==t?e:(e=t,s)},s.gamma=function(t){return null==t?r:(r=t,s)},s.hue=function(t){return null==t?n:("array"===Xn(n=t)?0==(a=n[1]-n[0])&&(n=n[1]):a=0,s)},s.lightness=function(t){return null==t?i:("array"===Xn(t)?(i=t,o=t[1]-t[0]):(i=[t,t],o=0),s)},s.scale=function(){return y.scale(s)},s.hue(n),s},nr="0123456789abcdef",rr=Math.floor,ir=Math.random,or=function(){for(var t="#",e=0;e<6;e++)t+=nr.charAt(rr(16*ir()));return new m(t,"hex")},ar=Math.log,sr=Math.pow,ur=Math.floor,cr=Math.abs,lr=function(t,e){void 0===e&&(e=null);var n={min:Number.MAX_VALUE,max:-1*Number.MAX_VALUE,sum:0,values:[],count:0};return"object"===a(t)&&(t=Object.values(t)),t.forEach((function(t){e&&"object"===a(t)&&(t=t[e]),null==t||isNaN(t)||(n.values.push(t),n.sum+=t,t<n.min&&(n.min=t),t>n.max&&(n.max=t),n.count+=1)})),n.domain=[n.min,n.max],n.limits=function(t,e){return fr(n,t,e)},n},fr=function(t,e,n){void 0===e&&(e="equal"),void 0===n&&(n=7),"array"==a(t)&&(t=lr(t));var r=t.min,i=t.max,o=t.values.sort((function(t,e){return t-e}));if(1===n)return[r,i];var s=[];if("c"===e.substr(0,1)&&(s.push(r),s.push(i)),"e"===e.substr(0,1)){s.push(r);for(var u=1;u<n;u++)s.push(r+u/n*(i-r));s.push(i)}else if("l"===e.substr(0,1)){if(r<=0)throw new Error("Logarithmic scales are only possible for values > 0");var c=Math.LOG10E*ar(r),l=Math.LOG10E*ar(i);s.push(r);for(var f=1;f<n;f++)s.push(sr(10,c+f/n*(l-c)));s.push(i)}else if("q"===e.substr(0,1)){s.push(r);for(var p=1;p<n;p++){var d=(o.length-1)*p/n,h=ur(d);if(h===d)s.push(o[h]);else{var v=d-h;s.push(o[h]*(1-v)+o[h+1]*v)}}s.push(i)}else if("k"===e.substr(0,1)){var m,g=o.length,y=new Array(g),b=new Array(n),w=!0,P=0,x=null;(x=[]).push(r);for(var E=1;E<n;E++)x.push(r+E/n*(i-r));for(x.push(i);w;){for(var O=0;O<n;O++)b[O]=0;for(var M=0;M<g;M++)for(var C=o[M],A=Number.MAX_VALUE,T=void 0,I=0;I<n;I++){var S=cr(x[I]-C);S<A&&(A=S,T=I),b[T]++,y[M]=T}for(var k=new Array(n),_=0;_<n;_++)k[_]=null;for(var D=0;D<g;D++)null===k[m=y[D]]?k[m]=o[D]:k[m]+=o[D];for(var j=0;j<n;j++)k[j]*=1/b[j];w=!1;for(var L=0;L<n;L++)if(k[L]!==x[L]){w=!0;break}x=k,++P>200&&(w=!1)}for(var N={},R=0;R<n;R++)N[R]=[];for(var U=0;U<g;U++)N[m=y[U]].push(o[U]);for(var V=[],F=0;F<n;F++)V.push(N[F][0]),V.push(N[F][N[F].length-1]);V=V.sort((function(t,e){return t-e})),s.push(V[0]);for(var z=1;z<V.length;z+=2){var B=V[z];isNaN(B)||-1!==s.indexOf(B)||s.push(B)}}return s},pr={analyze:lr,limits:fr},dr=function(t,e){t=new m(t),e=new m(e);var n=t.luminance(),r=e.luminance();return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)},hr=Math.sqrt,vr=Math.atan2,mr=Math.abs,gr=Math.cos,yr=Math.PI,br=function(t,e,n,r){void 0===n&&(n=1),void 0===r&&(r=1),t=new m(t),e=new m(e);for(var i=Array.from(t.lab()),o=i[0],a=i[1],s=i[2],u=Array.from(e.lab()),c=u[0],l=u[1],f=u[2],p=hr(a*a+s*s),d=hr(l*l+f*f),h=o<16?.511:.040975*o/(1+.01765*o),v=.0638*p/(1+.0131*p)+.638,g=p<1e-6?0:180*vr(s,a)/yr;g<0;)g+=360;for(;g>=360;)g-=360;var y=g>=164&&g<=345?.56+mr(.2*gr(yr*(g+168)/180)):.36+mr(.4*gr(yr*(g+35)/180)),b=p*p*p*p,w=hr(b/(b+1900)),P=v*(w*y+1-w),x=p-d,E=a-l,O=s-f,M=(o-c)/(n*h),C=x/(r*v);return hr(M*M+C*C+(E*E+O*O-x*x)/(P*P))},wr=function(t,e,n){void 0===n&&(n="lab"),t=new m(t),e=new m(e);var r=t.get(n),i=e.get(n),o=0;for(var a in r){var s=(r[a]||0)-(i[a]||0);o+=s*s}return Math.sqrt(o)},Pr=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];try{return new(Function.prototype.bind.apply(m,[null].concat(t))),!0}catch(n){return!1}},xr={cool:function(){return Dn([y.hsl(180,1,.9),y.hsl(250,.7,.4)])},hot:function(){return Dn(["#000","#f00","#ff0","#fff"],[0,.25,.75,1]).mode("rgb")}},Er={OrRd:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"],PuBu:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"],BuPu:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"],Oranges:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"],BuGn:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"],YlOrBr:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"],YlGn:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"],Reds:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"],RdPu:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177","#49006a"],Greens:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"],YlGnBu:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"],Purples:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"],GnBu:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"],Greys:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],YlOrRd:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"],PuRd:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"],Blues:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"],PuBuGn:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"],Viridis:["#440154","#482777","#3f4a8a","#31678e","#26838f","#1f9d8a","#6cce5a","#b6de2b","#fee825"],Spectral:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],RdYlGn:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],RdBu:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"],PiYG:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"],PRGn:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"],RdYlBu:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],BrBG:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"],RdGy:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"],PuOr:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"],Set2:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494","#b3b3b3"],Accent:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17","#666666"],Set1:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf","#999999"],Set3:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5","#ffed6f"],Dark2:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],Paired:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99","#b15928"],Pastel2:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc","#cccccc"],Pastel1:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec","#f2f2f2"]},Or=0,Mr=Object.keys(Er);Or<Mr.length;Or+=1){var Cr=Mr[Or];Er[Cr.toLowerCase()]=Er[Cr]}var Ar=Er;return y.average=In,y.bezier=Nn,y.blend=Yn,y.cubehelix=er,y.mix=y.interpolate=un,y.random=or,y.scale=Dn,y.analyze=pr.analyze,y.contrast=dr,y.deltaE=br,y.distance=wr,y.limits=pr.limits,y.valid=Pr,y.scales=xr,y.colors=Le,y.brewer=Ar,y}()},5087:function(t,e,n){var r;!function(i,o,a,s){"use strict";var u,c=["","webkit","Moz","MS","ms","o"],l=o.createElement("div"),f=Math.round,p=Math.abs,d=Date.now;function h(t,e,n){return setTimeout(P(t,n),e)}function v(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(t.length!==s)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 g(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)}}u="function"!=typeof Object.assign?function(t){if(t===s||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(r!==s&&null!==r)for(var i in r)r.hasOwnProperty(i)&&(e[i]=r[i])}return e}:Object.assign;var y=g((function(t,e,n){for(var r=Object.keys(e),i=0;i<r.length;)(!n||n&&t[r[i]]===s)&&(t[r[i]]=e[r[i]]),i++;return t}),"extend","Use `assign`."),b=g((function(t,e){return y(t,e,!0)}),"merge","Use `assign`.");function w(t,e,n){var r,i=e.prototype;(r=t.prototype=Object.create(i)).constructor=t,r._super=i,n&&u(r,n)}function P(t,e){return function(){return t.apply(e,arguments)}}function x(t,e){return"function"==typeof t?t.apply(e&&e[0]||s,e):t}function E(t,e){return t===s?e:t}function O(t,e,n){m(T(e),(function(e){t.addEventListener(e,n,!1)}))}function M(t,e,n){m(T(e),(function(e){t.removeEventListener(e,n,!1)}))}function C(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function A(t,e){return t.indexOf(e)>-1}function T(t){return t.trim().split(/\s+/g)}function I(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 S(t){return Array.prototype.slice.call(t,0)}function k(t,e,n){for(var r=[],i=[],o=0;o<t.length;){var a=e?t[o][e]:t[o];I(i,a)<0&&r.push(t[o]),i[o]=a,o++}return n&&(r=e?r.sort((function(t,n){return t[e]>n[e]})):r.sort()),r}function _(t,e){for(var n,r,i=e[0].toUpperCase()+e.slice(1),o=0;o<c.length;){if((r=(n=c[o])?n+i:e)in t)return r;o++}return s}var D=1;function j(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||i}var L="ontouchstart"in i,N=_(i,"PointerEvent")!==s,R=L&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),U="touch",V="mouse",F=24,z=["x","y"],B=["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){x(t.options.enable,[t])&&n.handler(e)},this.init()}function H(t,e,n){var r=n.pointers.length,i=n.changedPointers.length,o=1&e&&r-i==0,a=12&e&&r-i==0;n.isFirst=!!o,n.isFinal=!!a,o&&(t.session={}),n.eventType=e,function(t,e){var n=t.session,r=e.pointers,i=r.length;n.firstInput||(n.firstInput=G(e));i>1&&!n.firstMultiple?n.firstMultiple=G(e):1===i&&(n.firstMultiple=!1);var o=n.firstInput,a=n.firstMultiple,u=a?a.center:o.center,c=e.center=q(r);e.timeStamp=d(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=K(u,c),e.distance=X(u,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=Y(e.deltaX,e.deltaY);var l=W(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=l.x,e.overallVelocityY=l.y,e.overallVelocity=p(l.x)>p(l.y)?l.x:l.y,e.scale=a?(f=a.pointers,h=r,X(h[0],h[1],B)/X(f[0],f[1],B)):1,e.rotation=a?function(t,e){return K(e[1],e[0],B)+K(t[1],t[0],B)}(a.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,a=t.lastInterval||e,u=e.timeStamp-a.timeStamp;if(8!=e.eventType&&(u>25||a.velocity===s)){var c=e.deltaX-a.deltaX,l=e.deltaY-a.deltaY,f=W(u,c,l);r=f.x,i=f.y,n=p(f.x)>p(f.y)?f.x:f.y,o=Y(c,l),t.lastInterval=e}else n=a.velocity,r=a.velocityX,i=a.velocityY,o=a.direction;e.velocity=n,e.velocityX=r,e.velocityY=i,e.direction=o}(n,e);var f,h;var v=t.element;C(e.srcEvent.target,v)&&(v=e.srcEvent.target);e.target=v}(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function G(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:f(t.pointers[n].clientX),clientY:f(t.pointers[n].clientY)},n++;return{timeStamp:d(),pointers:e,center:q(e),deltaX:t.deltaX,deltaY:t.deltaY}}function q(t){var e=t.length;if(1===e)return{x:f(t[0].clientX),y:f(t[0].clientY)};for(var n=0,r=0,i=0;i<e;)n+=t[i].clientX,r+=t[i].clientY,i++;return{x:f(n/e),y:f(r/e)}}function W(t,e,n){return{x:e/t||0,y:n/t||0}}function Y(t,e){return t===e?1:p(t)>=p(e)?t<0?2:4:e<0?8:16}function X(t,e,n){n||(n=z);var r=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return Math.sqrt(r*r+i*i)}function K(t,e,n){n||(n=z);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&&O(this.element,this.evEl,this.domHandler),this.evTarget&&O(this.target,this.evTarget,this.domHandler),this.evWin&&O(j(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&M(this.element,this.evEl,this.domHandler),this.evTarget&&M(this.target,this.evTarget,this.domHandler),this.evWin&&M(j(this.element),this.evWin,this.domHandler)}};var $={mousedown:1,mousemove:2,mouseup:4},J="mousedown",Q="mousemove mouseup";function tt(){this.evEl=J,this.evWin=Q,this.pressed=!1,Z.apply(this,arguments)}w(tt,Z,{handler:function(t){var e=$[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:V,srcEvent:t}))}});var et={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},nt={2:U,3:"pen",4:V,5:"kinect"},rt="pointerdown",it="pointermove pointerup pointercancel";function ot(){this.evEl=rt,this.evWin=it,Z.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}i.MSPointerEvent&&!i.PointerEvent&&(rt="MSPointerDown",it="MSPointerMove MSPointerUp MSPointerCancel"),w(ot,Z,{handler:function(t){var e=this.store,n=!1,r=t.type.toLowerCase().replace("ms",""),i=et[r],o=nt[t.pointerType]||t.pointerType,a=o==U,s=I(e,t.pointerId,"pointerId");1&i&&(0===t.button||a)?s<0&&(e.push(t),s=e.length-1):12&i&&(n=!0),s<0||(e[s]=t,this.callback(this.manager,i,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),n&&e.splice(s,1))}});var at={touchstart:1,touchmove:2,touchend:4,touchcancel:8},st="touchstart",ut="touchstart touchmove touchend touchcancel";function ct(){this.evTarget=st,this.evWin=ut,this.started=!1,Z.apply(this,arguments)}function lt(t,e){var n=S(t.touches),r=S(t.changedTouches);return 12&e&&(n=k(n.concat(r),"identifier",!0)),[n,r]}w(ct,Z,{handler:function(t){var e=at[t.type];if(1===e&&(this.started=!0),this.started){var n=lt.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:U,srcEvent:t})}}});var ft={touchstart:1,touchmove:2,touchend:4,touchcancel:8},pt="touchstart touchmove touchend touchcancel";function dt(){this.evTarget=pt,this.targetIds={},Z.apply(this,arguments)}function ht(t,e){var n=S(t.touches),r=this.targetIds;if(3&e&&1===n.length)return r[n[0].identifier]=!0,[n,n];var i,o,a=S(t.changedTouches),s=[],u=this.target;if(o=n.filter((function(t){return C(t.target,u)})),1===e)for(i=0;i<o.length;)r[o[i].identifier]=!0,i++;for(i=0;i<a.length;)r[a[i].identifier]&&s.push(a[i]),12&e&&delete r[a[i].identifier],i++;return s.length?[k(o.concat(s),"identifier",!0),s]:void 0}w(dt,Z,{handler:function(t){var e=ft[t.type],n=ht.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:U,srcEvent:t})}});function vt(){Z.apply(this,arguments);var t=P(this.handler,this);this.touch=new dt(this.manager,t),this.mouse=new tt(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function mt(t,e){1&t?(this.primaryTouch=e.changedPointers[0].identifier,gt.call(this,e)):12&t&&gt.call(this,e)}function gt(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 yt(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),a=Math.abs(n-i.y);if(o<=25&&a<=25)return!0}return!1}w(vt,Z,{handler:function(t,e,n){var r=n.pointerType==U,i=n.pointerType==V;if(!(i&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(r)mt.call(this,e,n);else if(i&&yt.call(this,n))return;this.callback(t,e,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var bt=_(l.style,"touchAction"),wt=bt!==s,Pt="compute",xt="auto",Et="manipulation",Ot="none",Mt="pan-x",Ct="pan-y",At=function(){if(!wt)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 Tt(t,e){this.manager=t,this.set(e)}Tt.prototype={set:function(t){t==Pt&&(t=this.compute()),wt&&this.manager.element.style&&At[t]&&(this.manager.element.style[bt]=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){x(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(A(t,Ot))return Ot;var e=A(t,Mt),n=A(t,Ct);if(e&&n)return Ot;if(e||n)return e?Mt:Ct;if(A(t,Et))return Et;return xt}(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=A(r,Ot)&&!At.none,o=A(r,Ct)&&!At["pan-y"],a=A(r,Mt)&&!At["pan-x"];if(i){var s=1===t.pointers.length,u=t.distance<2,c=t.deltaTime<250;if(s&&u&&c)return}if(!a||!o)return i||o&&6&n||a&&n&F?this.preventSrc(e):void 0}},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var It=32;function St(t){this.options=u({},this.defaults,t||{}),this.id=D++,this.manager=null,this.options.enable=E(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function kt(t){return 16&t?"cancel":8&t?"end":4&t?"move":2&t?"start":""}function _t(t){return 16==t?"down":8==t?"up":2==t?"left":4==t?"right":""}function Dt(t,e){var n=e.manager;return n?n.get(t):t}function jt(){St.apply(this,arguments)}function Lt(){jt.apply(this,arguments),this.pX=null,this.pY=null}function Nt(){jt.apply(this,arguments)}function Rt(){St.apply(this,arguments),this._timer=null,this._input=null}function Ut(){jt.apply(this,arguments)}function Vt(){jt.apply(this,arguments)}function Ft(){St.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function zt(t,e){return(e=e||{}).recognizers=E(e.recognizers,zt.defaults.preset),new Bt(t,e)}St.prototype={defaults:{},set:function(t){return u(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(v(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=Dt(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return v(t,"dropRecognizeWith",this)||(t=Dt(t,this),delete this.simultaneous[t.id]),this},requireFailure:function(t){if(v(t,"requireFailure",this))return this;var e=this.requireFail;return-1===I(e,t=Dt(t,this))&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(v(t,"dropRequireFailure",this))return this;t=Dt(t,this);var e=I(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+kt(n)),r(e.options.event),t.additionalEvent&&r(t.additionalEvent),n>=8&&r(e.options.event+kt(n))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=It},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=u({},t);if(!x(this.options.enable,[this,e]))return this.reset(),void(this.state=It);56&this.state&&(this.state=1),this.state=this.process(e),30&this.state&&this.tryEmit(e)},process:function(t){},getTouchAction:function(){},reset:function(){}},w(jt,St,{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:It}}),w(Lt,jt,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var t=this.options.direction,e=[];return 6&t&&e.push(Ct),t&F&&e.push(Mt),e},directionTest:function(t){var e=this.options,n=!0,r=t.distance,i=t.direction,o=t.deltaX,a=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===a?1:a<0?8:16,n=a!=this.pY,r=Math.abs(t.deltaY))),t.direction=i,n&&r>e.threshold&&i&e.direction},attrTest:function(t){return jt.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=_t(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),w(Nt,jt,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Ot]},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)}}),w(Rt,St,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[xt]},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=h((function(){this.state=8,this.tryEmit()}),e.time,this);else if(4&t.eventType)return 8;return It},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)))}}),w(Ut,jt,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Ot]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||2&this.state)}}),w(Vt,jt,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return Lt.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return 30&n?e=t.overallVelocity:6&n?e=t.overallVelocityX:n&F&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&p(e)>this.options.velocity&&4&t.eventType},emit:function(t){var e=_t(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),w(Ft,St,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Et]},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,a=!this.pCenter||X(this.pCenter,t.center)<e.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,a&&o?this.count+=1:this.count=1,this._input=t,0===this.count%e.taps)return this.hasRequireFailures()?(this._timer=h((function(){this.state=8,this.tryEmit()}),e.interval,this),2):8}return It},failTimeout:function(){return this._timer=h((function(){this.state=It}),this.options.interval,this),It},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),zt.VERSION="2.0.7",zt.defaults={domEvents:!1,touchAction:Pt,enable:!0,inputTarget:null,inputClass:null,preset:[[Ut,{enable:!1}],[Nt,{enable:!1},["rotate"]],[Vt,{direction:6}],[Lt,{direction:6},["swipe"]],[Ft],[Ft,{event:"doubletap",taps:2},["tap"]],[Rt]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};function Bt(t,e){var n;this.options=u({},zt.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||(N?ot:R?dt:L?vt:tt))(n,H),this.touchAction=new Tt(this,this.options.touchAction),Zt(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 Zt(t,e){var n,r=t.element;r.style&&(m(t.options.cssProps,(function(i,o){n=_(r.style,o),e?(t.oldCssProps[n]=r.style[n],r.style[n]=i):r.style[n]=t.oldCssProps[n]||""})),e||(t.oldCssProps={}))}Bt.prototype={set:function(t){return u(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 St)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(v(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(v(t,"remove",this))return this;if(t=this.get(t)){var e=this.recognizers,n=I(e,t);-1!==n&&(e.splice(n,1),this.touchAction.update())}return this},on:function(t,e){if(t!==s&&e!==s){var n=this.handlers;return m(T(t),(function(t){n[t]=n[t]||[],n[t].push(e)})),this}},off:function(t,e){if(t!==s){var n=this.handlers;return m(T(t),(function(t){e?n[t]&&n[t].splice(I(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&&Zt(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},u(zt,{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:It,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:F,DIRECTION_ALL:30,Manager:Bt,Input:Z,TouchAction:Tt,TouchInput:dt,MouseInput:tt,PointerEventInput:ot,TouchMouseInput:vt,SingleTouchInput:ct,Recognizer:St,AttrRecognizer:jt,Tap:Ft,Pan:Lt,Swipe:Vt,Pinch:Nt,Rotate:Ut,Press:Rt,on:O,off:M,each:m,merge:b,extend:y,assign:u,inherit:w,bindFn:P,prefixed:_}),(void 0!==i?i:"undefined"!=typeof self?self:{}).Hammer=zt,(r=function(){return zt}.call(e,n,e,t))===s||(t.exports=r)}(window,document)},9662:function(t,e,n){var r=n(7854),i=n(614),o=n(6330),a=r.TypeError;t.exports=function(t){if(i(t))return t;throw a(o(t)+" is not a function")}},9670:function(t,e,n){var r=n(7854),i=n(111),o=r.String,a=r.TypeError;t.exports=function(t){if(i(t))return t;throw a(o(t)+" is not an object")}},1318:function(t,e,n){var r=n(5656),i=n(1400),o=n(6244),a=function(t){return function(e,n,a){var s,u=r(e),c=o(u),l=i(a,c);if(t&&n!=n){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},4326:function(t,e,n){var r=n(1702),i=r({}.toString),o=r("".slice);t.exports=function(t){return o(i(t),8,-1)}},9920:function(t,e,n){var r=n(2597),i=n(3887),o=n(1236),a=n(3070);t.exports=function(t,e){for(var n=i(e),s=a.f,u=o.f,c=0;c<n.length;c++){var l=n[c];r(t,l)||s(t,l,u(e,l))}}},8880:function(t,e,n){var r=n(9781),i=n(3070),o=n(9114);t.exports=r?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},9114:function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},9781:function(t,e,n){var r=n(7293);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},317:function(t,e,n){var r=n(7854),i=n(111),o=r.document,a=i(o)&&i(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},8113:function(t,e,n){var r=n(5005);t.exports=r("navigator","userAgent")||""},7392:function(t,e,n){var r,i,o=n(7854),a=n(8113),s=o.process,u=o.Deno,c=s&&s.versions||u&&u.version,l=c&&c.v8;l&&(i=(r=l.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(i=+r[1]),t.exports=i},748:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(t,e,n){var r=n(7854),i=n(1236).f,o=n(8880),a=n(1320),s=n(3505),u=n(9920),c=n(4705);t.exports=function(t,e){var n,l,f,p,d,h=t.target,v=t.global,m=t.stat;if(n=v?r:m?r[h]||s(h,{}):(r[h]||{}).prototype)for(l in e){if(p=e[l],f=t.noTargetGet?(d=i(n,l))&&d.value:n[l],!c(v?l:h+(m?".":"#")+l,t.forced)&&void 0!==f){if(typeof p==typeof f)continue;u(p,f)}(t.sham||f&&f.sham)&&o(p,"sham",!0),a(n,l,p,t)}}},7293:function(t){t.exports=function(t){try{return!!t()}catch(e){return!0}}},6916:function(t){var e=Function.prototype.call;t.exports=e.bind?e.bind(e):function(){return e.apply(e,arguments)}},6530:function(t,e,n){var r=n(9781),i=n(2597),o=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=i(o,"name"),u=s&&"something"===function(){}.name,c=s&&(!r||r&&a(o,"name").configurable);t.exports={EXISTS:s,PROPER:u,CONFIGURABLE:c}},1702:function(t){var e=Function.prototype,n=e.bind,r=e.call,i=n&&n.bind(r);t.exports=n?function(t){return t&&i(r,t)}:function(t){return t&&function(){return r.apply(t,arguments)}}},5005:function(t,e,n){var r=n(7854),i=n(614),o=function(t){return i(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?o(r[t]):r[t]&&r[t][e]}},8173:function(t,e,n){var r=n(9662);t.exports=function(t,e){var n=t[e];return null==n?void 0:r(n)}},7854:function(t,e,n){var r=function(t){return t&&t.Math==Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},2597:function(t,e,n){var r=n(1702),i=n(7908),o=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(i(t),e)}},3501:function(t){t.exports={}},4664:function(t,e,n){var r=n(9781),i=n(7293),o=n(317);t.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},8361:function(t,e,n){var r=n(7854),i=n(1702),o=n(7293),a=n(4326),s=r.Object,u=i("".split);t.exports=o((function(){return!s("z").propertyIsEnumerable(0)}))?function(t){return"String"==a(t)?u(t,""):s(t)}:s},2788:function(t,e,n){var r=n(1702),i=n(614),o=n(5465),a=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(t){return a(t)}),t.exports=o.inspectSource},9909:function(t,e,n){var r,i,o,a=n(8536),s=n(7854),u=n(1702),c=n(111),l=n(8880),f=n(2597),p=n(5465),d=n(6200),h=n(3501),v="Object already initialized",m=s.TypeError,g=s.WeakMap;if(a||p.state){var y=p.state||(p.state=new g),b=u(y.get),w=u(y.has),P=u(y.set);r=function(t,e){if(w(y,t))throw new m(v);return e.facade=t,P(y,t,e),e},i=function(t){return b(y,t)||{}},o=function(t){return w(y,t)}}else{var x=d("state");h[x]=!0,r=function(t,e){if(f(t,x))throw new m(v);return e.facade=t,l(t,x,e),e},i=function(t){return f(t,x)?t[x]:{}},o=function(t){return f(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(!c(e)||(n=i(e)).type!==t)throw m("Incompatible receiver, "+t+" required");return n}}}},614:function(t){t.exports=function(t){return"function"==typeof t}},4705:function(t,e,n){var r=n(7293),i=n(614),o=/#|\.prototype\./,a=function(t,e){var n=u[s(t)];return n==l||n!=c&&(i(e)?r(e):!!e)},s=a.normalize=function(t){return String(t).replace(o,".").toLowerCase()},u=a.data={},c=a.NATIVE="N",l=a.POLYFILL="P";t.exports=a},111:function(t,e,n){var r=n(614);t.exports=function(t){return"object"==typeof t?null!==t:r(t)}},1913:function(t){t.exports=!1},2190:function(t,e,n){var r=n(7854),i=n(5005),o=n(614),a=n(7976),s=n(3307),u=r.Object;t.exports=s?function(t){return"symbol"==typeof t}:function(t){var e=i("Symbol");return o(e)&&a(e.prototype,u(t))}},6244:function(t,e,n){var r=n(7466);t.exports=function(t){return r(t.length)}},133:function(t,e,n){var r=n(7392),i=n(7293);t.exports=!!Object.getOwnPropertySymbols&&!i((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},8536:function(t,e,n){var r=n(7854),i=n(614),o=n(2788),a=r.WeakMap;t.exports=i(a)&&/native code/.test(o(a))},3070:function(t,e,n){var r=n(7854),i=n(9781),o=n(4664),a=n(9670),s=n(4948),u=r.TypeError,c=Object.defineProperty;e.f=i?c:function(t,e,n){if(a(t),e=s(e),a(n),o)try{return c(t,e,n)}catch(r){}if("get"in n||"set"in n)throw u("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},1236:function(t,e,n){var r=n(9781),i=n(6916),o=n(5296),a=n(9114),s=n(5656),u=n(4948),c=n(2597),l=n(4664),f=Object.getOwnPropertyDescriptor;e.f=r?f:function(t,e){if(t=s(t),e=u(e),l)try{return f(t,e)}catch(n){}if(c(t,e))return a(!i(o.f,t,e),t[e])}},8006:function(t,e,n){var r=n(6324),i=n(748).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},5181:function(t,e){e.f=Object.getOwnPropertySymbols},7976:function(t,e,n){var r=n(1702);t.exports=r({}.isPrototypeOf)},6324:function(t,e,n){var r=n(1702),i=n(2597),o=n(5656),a=n(1318).indexOf,s=n(3501),u=r([].push);t.exports=function(t,e){var n,r=o(t),c=0,l=[];for(n in r)!i(s,n)&&i(r,n)&&u(l,n);for(;e.length>c;)i(r,n=e[c++])&&(~a(l,n)||u(l,n));return l}},5296:function(t,e){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!n.call({1:2},1);e.f=i?function(t){var e=r(this,t);return!!e&&e.enumerable}:n},2140:function(t,e,n){var r=n(7854),i=n(6916),o=n(614),a=n(111),s=r.TypeError;t.exports=function(t,e){var n,r;if("string"===e&&o(n=t.toString)&&!a(r=i(n,t)))return r;if(o(n=t.valueOf)&&!a(r=i(n,t)))return r;if("string"!==e&&o(n=t.toString)&&!a(r=i(n,t)))return r;throw s("Can't convert object to primitive value")}},3887:function(t,e,n){var r=n(5005),i=n(1702),o=n(8006),a=n(5181),s=n(9670),u=i([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=o.f(s(t)),n=a.f;return n?u(e,n(t)):e}},1320:function(t,e,n){var r=n(7854),i=n(614),o=n(2597),a=n(8880),s=n(3505),u=n(2788),c=n(9909),l=n(6530).CONFIGURABLE,f=c.get,p=c.enforce,d=String(String).split("String");(t.exports=function(t,e,n,u){var c,f=!!u&&!!u.unsafe,h=!!u&&!!u.enumerable,v=!!u&&!!u.noTargetGet,m=u&&void 0!==u.name?u.name:e;i(n)&&("Symbol("===String(m).slice(0,7)&&(m="["+String(m).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!o(n,"name")||l&&n.name!==m)&&a(n,"name",m),(c=p(n)).source||(c.source=d.join("string"==typeof m?m:""))),t!==r?(f?!v&&t[e]&&(h=!0):delete t[e],h?t[e]=n:a(t,e,n)):h?t[e]=n:s(e,n)})(Function.prototype,"toString",(function(){return i(this)&&f(this).source||u(this)}))},4488:function(t,e,n){var r=n(7854).TypeError;t.exports=function(t){if(null==t)throw r("Can't call method on "+t);return t}},3505:function(t,e,n){var r=n(7854),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}},6200:function(t,e,n){var r=n(2309),i=n(9711),o=r("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},5465:function(t,e,n){var r=n(7854),i=n(3505),o="__core-js_shared__",a=r[o]||i(o,{});t.exports=a},2309:function(t,e,n){var r=n(1913),i=n(5465);(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.19.3",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},1400:function(t,e,n){var r=n(9303),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)}},5656:function(t,e,n){var r=n(8361),i=n(4488);t.exports=function(t){return r(i(t))}},9303:function(t){var e=Math.ceil,n=Math.floor;t.exports=function(t){var r=+t;return r!=r||0===r?0:(r>0?n:e)(r)}},7466:function(t,e,n){var r=n(9303),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},7908:function(t,e,n){var r=n(7854),i=n(4488),o=r.Object;t.exports=function(t){return o(i(t))}},7593:function(t,e,n){var r=n(7854),i=n(6916),o=n(111),a=n(2190),s=n(8173),u=n(2140),c=n(5112),l=r.TypeError,f=c("toPrimitive");t.exports=function(t,e){if(!o(t)||a(t))return t;var n,r=s(t,f);if(r){if(void 0===e&&(e="default"),n=i(r,t,e),!o(n)||a(n))return n;throw l("Can't convert object to primitive value")}return void 0===e&&(e="number"),u(t,e)}},4948:function(t,e,n){var r=n(7593),i=n(2190);t.exports=function(t){var e=r(t,"string");return i(e)?e:e+""}},6330:function(t,e,n){var r=n(7854).String;t.exports=function(t){try{return r(t)}catch(e){return"Object"}}},9711:function(t,e,n){var r=n(1702),i=0,o=Math.random(),a=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++i+o,36)}},3307:function(t,e,n){var r=n(133);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},5112:function(t,e,n){var r=n(7854),i=n(2309),o=n(2597),a=n(9711),s=n(133),u=n(3307),c=i("wks"),l=r.Symbol,f=l&&l.for,p=u?l:l&&l.withoutSetter||a;t.exports=function(t){if(!o(c,t)||!s&&"string"!=typeof c[t]){var e="Symbol."+t;s&&o(l,t)?c[t]=l[t]:c[t]=u&&f?f(e):p(e)}return c[t]}},5837:function(t,e,n){n(2109)({global:!0},{globalThis:n(7854)})},5438:function(t,e,n){var r=n(2109),i=Math.hypot,o=Math.abs,a=Math.sqrt;r({target:"Math",stat:!0,forced:!!i&&i(1/0,NaN)!==1/0},{hypot:function(t,e){for(var n,r,i=0,s=0,u=arguments.length,c=0;s<u;)c<(n=o(arguments[s++]))?(i=i*(r=c/n)*r+1,c=n):i+=n>0?(r=n/c)*r:n;return c===1/0?1/0:c*a(i)}})},5743:function(t,e,n){n(5837)},7683:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return Dp}});var r=n(7294),i=n(9692),o="#cccccc",a={colors:{background:"#0a1930",backgroundLight:"#444444",backgroundDark:"060e1a",text:o,textLight:o,accent:"#ff8e5e",accentLight:"#ffa984",accentDark:"#b86440"},fonts:{sans:"IBM Plex Sans",mono:"IBM Plex Mono",extra:"Montserrat",sizeDefault:"20px",weightDefault:400}},s=(0,i.createGlobalStyle)(["body{margin:0;padding:0;background:",";font-family:",";color:#dddddd;font-size:",";line-height:1.5em;*{font-weight:",";}scrollbar-width:none;-ms-overflow-style:none;::-webkit-scrollbar{width:0;height:0;}a{text-decoration:none;color:",";}}}"],a.colors.background,a.fonts.sans,a.fonts.sizeDefault,a.fonts.weightDefault,a.colors.accent),u=((0,i.css)(["a{text-decoration:none;:link{color:",";}:visited{color:",";}:hover{color:",";}:active{color:",";}}"],a.colors.text,a.colors.text,a.colors.background,a.colors.background),i.default.div.withConfig({displayName:"color-key__Container",componentId:"sc-cgkydn-0"})(["position:fixed;right:10%;bottom:10%;background:",";width:15%;height:10%;border-radius:30px;box-shadow:0 0 20px #999999;"],a.colors.background)),c=i.default.div.withConfig({displayName:"color-key__Colors",componentId:"sc-cgkydn-1"})(["position:absolute;right:50%;bottom:50%;height:30%;width:80%;background-image:linear-gradient(to right,#00b3ff,#eeeeee,#ff4c00);border-radius:30px;transform:translate(50%,15%);"]),l=i.default.p.withConfig({displayName:"color-key__KeyText",componentId:"sc-cgkydn-2"})(["position:absolute;text-align:justify;text-align-last:justify;font-size:70%;width:70%;bottom:0px;left:15%;margin:0 0 6% 0;"]);function f(){return r.createElement(u,null,r.createElement(c,null),r.createElement(l,null,"0 50 100"))}var p={AFG:{Continent:"Asia","Country Name":"Afghanistan",Individualism:14,Indulgence:10,"Long Term Orientation":30,Masculinity:60,Population:38041754,"Power Distance":55,"Uncertainty Avoidance":70},ALB:{Continent:"Europe","Country Name":"Albania",Individualism:20,Indulgence:15,"Long Term Orientation":61,Masculinity:80,Population:2880917,"Power Distance":90,"Uncertainty Avoidance":70},DZA:{Continent:"Africa","Country Name":"Algeria",Individualism:50,Indulgence:32,"Long Term Orientation":26,Masculinity:50,Population:43053054,"Power Distance":70,"Uncertainty Avoidance":70},AND:{Continent:"Europe","Country Name":"Andorra",Individualism:50,Indulgence:65,"Long Term Orientation":50,Masculinity:40,Population:77142,"Power Distance":50,"Uncertainty Avoidance":90},AGO:{Continent:"Africa","Country Name":"Angola",Individualism:18,Indulgence:83,"Long Term Orientation":15,Masculinity:20,Population:31825295,"Power Distance":83,"Uncertainty Avoidance":60},ARG:{Continent:"Americas","Country Name":"Argentina",Individualism:46,Indulgence:62,"Long Term Orientation":20,Masculinity:56,Population:44780677,"Power Distance":49,"Uncertainty Avoidance":86},ARM:{Continent:"Asia","Country Name":"Armenia",Individualism:40,Indulgence:30,"Long Term Orientation":61,Masculinity:40,Population:2957731,"Power Distance":60,"Uncertainty Avoidance":90},AUS:{Continent:"Oceania","Country Name":"Australia",Individualism:90,Indulgence:71,"Long Term Orientation":21,Masculinity:61,Population:25203198,"Power Distance":38,"Uncertainty Avoidance":51},AUT:{Continent:"Europe","Country Name":"Austria",Individualism:55,Indulgence:63,"Long Term Orientation":60,Masculinity:79,Population:8955102,"Power Distance":11,"Uncertainty Avoidance":70},AZE:{Continent:"Asia","Country Name":"Azerbaijan",Individualism:40,Indulgence:22,"Long Term Orientation":61,Masculinity:40,Population:10047718,"Power Distance":60,"Uncertainty Avoidance":90},BGD:{Continent:"Asia","Country Name":"Bangladesh",Individualism:20,Indulgence:20,"Long Term Orientation":47,Masculinity:55,Population:163046161,"Power Distance":80,"Uncertainty Avoidance":60},BLR:{Continent:"Europe","Country Name":"Belarus",Individualism:40,Indulgence:15,"Long Term Orientation":81,Masculinity:30,Population:9452411,"Power Distance":90,"Uncertainty Avoidance":90},BEL:{Continent:"Europe","Country Name":"Belgium",Individualism:75,Indulgence:57,"Long Term Orientation":82,Masculinity:54,Population:11539328,"Power Distance":65,"Uncertainty Avoidance":94},BEN:{Continent:"Africa","Country Name":"Benin",Individualism:15,Indulgence:80,"Long Term Orientation":5,Masculinity:40,Population:11801151,"Power Distance":80,"Uncertainty Avoidance":65},BTN:{Continent:"Asia","Country Name":"Bhutan",Individualism:52,Indulgence:25,"Long Term Orientation":60,Masculinity:32,Population:763092,"Power Distance":94,"Uncertainty Avoidance":28},BOL:{Continent:"Americas","Country Name":"Bolivia",Individualism:8,Indulgence:50,"Long Term Orientation":25,Masculinity:63,Population:11513100,"Power Distance":78,"Uncertainty Avoidance":67},BIH:{Continent:"Europe","Country Name":"Bosnia",Individualism:30,Indulgence:44,"Long Term Orientation":70,Masculinity:40,Population:3301e3,"Power Distance":80,"Uncertainty Avoidance":90},BWA:{Continent:"Africa","Country Name":"Botswana",Individualism:40,Indulgence:40,"Long Term Orientation":40,Masculinity:30,Population:2303697,"Power Distance":60,"Uncertainty Avoidance":50},BRA:{Continent:"Americas","Country Name":"Brazil",Individualism:38,Indulgence:59,"Long Term Orientation":44,Masculinity:49,Population:211049527,"Power Distance":69,"Uncertainty Avoidance":76},BRN:{Continent:"Asia","Country Name":"Brunei",Individualism:26,Indulgence:57,"Long Term Orientation":41,Masculinity:50,Population:433285,"Power Distance":104,"Uncertainty Avoidance":36},BGR:{Continent:"Europe","Country Name":"Bulgaria",Individualism:30,Indulgence:16,"Long Term Orientation":69,Masculinity:40,Population:7000119,"Power Distance":70,"Uncertainty Avoidance":85},BFA:{Continent:"Africa","Country Name":"Burkina Faso",Individualism:15,Indulgence:18,"Long Term Orientation":27,Masculinity:50,Population:20321378,"Power Distance":70,"Uncertainty Avoidance":55},BDI:{Continent:"Africa","Country Name":"Burundi",Individualism:25,Indulgence:37,"Long Term Orientation":18,Masculinity:60,Population:10864245,"Power Distance":70,"Uncertainty Avoidance":50},KHM:{Continent:"Asia","Country Name":"Cambodia",Individualism:20,Indulgence:30,"Long Term Orientation":50,Masculinity:50,Population:16486542,"Power Distance":80,"Uncertainty Avoidance":60},CMR:{Continent:"Africa","Country Name":"Cameroon",Individualism:10,Indulgence:80,"Long Term Orientation":10,Masculinity:50,Population:25876380,"Power Distance":80,"Uncertainty Avoidance":50},CAN:{Continent:"Americas","Country Name":"Canada",Individualism:80,Indulgence:68,"Long Term Orientation":36,Masculinity:52,Population:37411047,"Power Distance":39,"Uncertainty Avoidance":48},CPV:{Continent:"Africa","Country Name":"Cape Verde",Individualism:20,Indulgence:83,"Long Term Orientation":12,Masculinity:15,Population:549935,"Power Distance":75,"Uncertainty Avoidance":40},CAF:{Continent:"Africa","Country Name":"Central African Republic",Individualism:20,Indulgence:20,"Long Term Orientation":10,Masculinity:60,Population:4745185,"Power Distance":80,"Uncertainty Avoidance":60},TCD:{Continent:"Africa","Country Name":"Chad",Individualism:20,Indulgence:20,"Long Term Orientation":10,Masculinity:60,Population:15946876,"Power Distance":80,"Uncertainty Avoidance":60},CHL:{Continent:"Americas","Country Name":"Chile",Individualism:23,Indulgence:68,"Long Term Orientation":31,Masculinity:28,Population:18952038,"Power Distance":63,"Uncertainty Avoidance":86},CHN:{Continent:"Asia","Country Name":"China",Individualism:20,Indulgence:24,"Long Term Orientation":87,Masculinity:66,Population:1433783686,"Power Distance":80,"Uncertainty Avoidance":30},COL:{Continent:"Americas","Country Name":"Colombia",Individualism:13,Indulgence:83,"Long Term Orientation":13,Masculinity:64,Population:50339443,"Power Distance":67,"Uncertainty Avoidance":80},COG:{Continent:"Africa","Country Name":"Congo",Individualism:20,Indulgence:80,"Long Term Orientation":10,Masculinity:60,Population:5380508,"Power Distance":80,"Uncertainty Avoidance":50},COD:{Continent:"Africa","Country Name":"Democratic Republic of the Congo",Individualism:20,Indulgence:80,"Long Term Orientation":10,Masculinity:60,Population:86790567,"Power Distance":80,"Uncertainty Avoidance":50},CRI:{Continent:"Americas","Country Name":"Costa Rica",Individualism:15,Indulgence:90,"Long Term Orientation":30,Masculinity:21,Population:5047561,"Power Distance":35,"Uncertainty Avoidance":86},CIV:{Continent:"Africa","Country Name":"Cote d'Ivoire",Individualism:20,Indulgence:40,"Long Term Orientation":20,Masculinity:40,Population:25716544,"Power Distance":80,"Uncertainty Avoidance":50},HRV:{Continent:"Europe","Country Name":"Croatia",Individualism:33,Indulgence:33,"Long Term Orientation":58,Masculinity:40,Population:4130304,"Power Distance":73,"Uncertainty Avoidance":80},CUB:{Continent:"Americas","Country Name":"Cuba",Individualism:20,Indulgence:80,"Long Term Orientation":20,Masculinity:40,Population:11333483,"Power Distance":80,"Uncertainty Avoidance":70},CYP:{Continent:"Asia","Country Name":"Cyprus",Individualism:30,Indulgence:70,"Long Term Orientation":45,Masculinity:40,Population:1179551,"Power Distance":60,"Uncertainty Avoidance":90},CZE:{Continent:"Europe","Country Name":"Czech Republic",Individualism:58,Indulgence:29,"Long Term Orientation":70,Masculinity:57,Population:10689209,"Power Distance":57,"Uncertainty Avoidance":74},DNK:{Continent:"Europe","Country Name":"Denmark",Individualism:74,Indulgence:70,"Long Term Orientation":35,Masculinity:16,Population:5771876,"Power Distance":18,"Uncertainty Avoidance":23},DJI:{Continent:"Africa","Country Name":"Djibouti",Individualism:20,Indulgence:20,"Long Term Orientation":10,Masculinity:65,Population:973560,"Power Distance":70,"Uncertainty Avoidance":55},DOM:{Continent:"Americas","Country Name":"Dominican Republic",Individualism:20,Indulgence:54,"Long Term Orientation":13,Masculinity:40,Population:10738958,"Power Distance":80,"Uncertainty Avoidance":50},ECU:{Continent:"Americas","Country Name":"Ecuador",Individualism:8,Indulgence:70,"Long Term Orientation":25,Masculinity:63,Population:17373662,"Power Distance":78,"Uncertainty Avoidance":67},GNQ:{Continent:"Africa","Country Name":"Equatorial Guinea",Individualism:20,Indulgence:80,"Long Term Orientation":10,Masculinity:60,Population:1355986,"Power Distance":80,"Uncertainty Avoidance":50},EGY:{Continent:"Africa","Country Name":"Egypt",Individualism:25,Indulgence:4,"Long Term Orientation":7,Masculinity:45,Population:100388073,"Power Distance":70,"Uncertainty Avoidance":80},SLV:{Continent:"Americas","Country Name":"El Salvador",Individualism:19,Indulgence:89,"Long Term Orientation":20,Masculinity:40,Population:6453553,"Power Distance":66,"Uncertainty Avoidance":94},ERI:{Continent:"Africa","Country Name":"Eritrea",Individualism:25,Indulgence:20,"Long Term Orientation":10,Masculinity:65,Population:3497117,"Power Distance":70,"Uncertainty Avoidance":60},EST:{Continent:"Europe","Country Name":"Estonia",Individualism:60,Indulgence:16,"Long Term Orientation":82,Masculinity:30,Population:1325648,"Power Distance":40,"Uncertainty Avoidance":60},SWZ:{Continent:"Africa","Country Name":"Eswatini",Individualism:30,Indulgence:70,"Long Term Orientation":15,Masculinity:40,Population:1148130,"Power Distance":70,"Uncertainty Avoidance":50},ETH:{Continent:"Africa","Country Name":"Ethiopia",Individualism:20,Indulgence:20,"Long Term Orientation":10,Masculinity:65,Population:112078730,"Power Distance":70,"Uncertainty Avoidance":55},FJI:{Continent:"Oceania","Country Name":"Fiji",Individualism:14,Indulgence:50,"Long Term Orientation":50,Masculinity:46,Population:889953,"Power Distance":78,"Uncertainty Avoidance":48},FIN:{Continent:"Europe","Country Name":"Finland",Individualism:63,Indulgence:57,"Long Term Orientation":38,Masculinity:26,Population:5532156,"Power Distance":33,"Uncertainty Avoidance":59},FRA:{Continent:"Europe","Country Name":"France",Individualism:71,Indulgence:48,"Long Term Orientation":63,Masculinity:43,Population:65129728,"Power Distance":68,"Uncertainty Avoidance":86},GAB:{Continent:"Africa","Country Name":"Gabon",Individualism:25,Indulgence:60,"Long Term Orientation":20,Masculinity:45,Population:2172579,"Power Distance":80,"Uncertainty Avoidance":50},GMB:{Continent:"Africa","Country Name":"Gambia",Individualism:25,Indulgence:40,"Long Term Orientation":25,Masculinity:45,Population:2347706,"Power Distance":70,"Uncertainty Avoidance":55},GEO:{Continent:"Asia","Country Name":"Georgia",Individualism:40,Indulgence:32,"Long Term Orientation":38,Masculinity:50,Population:3996765,"Power Distance":80,"Uncertainty Avoidance":90},DEU:{Continent:"Europe","Country Name":"Germany",Individualism:67,Indulgence:40,"Long Term Orientation":83,Masculinity:66,Population:83517045,"Power Distance":35,"Uncertainty Avoidance":65},GHA:{Continent:"Africa","Country Name":"Ghana",Individualism:30,Indulgence:72,"Long Term Orientation":4,Masculinity:40,Population:28833629,"Power Distance":80,"Uncertainty Avoidance":65},GBR:{Continent:"Europe","Country Name":"Great Britain",Individualism:89,Indulgence:69,"Long Term Orientation":51,Masculinity:66,Population:67530172,"Power Distance":35,"Uncertainty Avoidance":35},GRC:{Continent:"Europe","Country Name":"Greece",Individualism:35,Indulgence:50,"Long Term Orientation":45,Masculinity:57,Population:10473455,"Power Distance":60,"Uncertainty Avoidance":112},GRL:{Continent:"Americas","Country Name":"Greenland",Individualism:50,Indulgence:70,"Long Term Orientation":30,Masculinity:20,Population:56672,"Power Distance":20,"Uncertainty Avoidance":40},GTM:{Continent:"Americas","Country Name":"Guatemala",Individualism:6,Indulgence:90,"Long Term Orientation":20,Masculinity:37,Population:17581472,"Power Distance":95,"Uncertainty Avoidance":101},GUF:{Continent:"Americas","Country Name":"Guiana French",Individualism:47,Indulgence:80,"Long Term Orientation":20,Masculinity:37,Population:282731,"Power Distance":85,"Uncertainty Avoidance":92},GIN:{Continent:"Africa","Country Name":"Guinea",Individualism:25,Indulgence:40,"Long Term Orientation":25,Masculinity:45,Population:12771246,"Power Distance":70,"Uncertainty Avoidance":55},GNB:{Continent:"Africa","Country Name":"Guinea-Bissau",Individualism:25,Indulgence:40,"Long Term Orientation":25,Masculinity:45,Population:1920922,"Power Distance":70,"Uncertainty Avoidance":55},GUY:{Continent:"Americas","Country Name":"Guyana British",Individualism:47,Indulgence:80,"Long Term Orientation":20,Masculinity:37,Population:782766,"Power Distance":85,"Uncertainty Avoidance":92},HTI:{Continent:"Americas","Country Name":"Haiti",Individualism:20,Indulgence:80,"Long Term Orientation":5,Masculinity:40,Population:11263770,"Power Distance":80,"Uncertainty Avoidance":50},HND:{Continent:"Americas","Country Name":"Honduras",Individualism:20,Indulgence:90,"Long Term Orientation":20,Masculinity:40,Population:9746117,"Power Distance":80,"Uncertainty Avoidance":70},HKG:{Continent:"Asia","Country Name":"Hong Kong",Individualism:25,Indulgence:17,"Long Term Orientation":61,Masculinity:57,Population:7436154,"Power Distance":68,"Uncertainty Avoidance":29},HUN:{Continent:"Europe","Country Name":"Hungary",Individualism:80,Indulgence:31,"Long Term Orientation":58,Masculinity:88,Population:9684679,"Power Distance":46,"Uncertainty Avoidance":82},ISL:{Continent:"Europe","Country Name":"Iceland",Individualism:60,Indulgence:67,"Long Term Orientation":28,Masculinity:10,Population:339031,"Power Distance":30,"Uncertainty Avoidance":50},IND:{Continent:"Asia","Country Name":"India",Individualism:48,Indulgence:26,"Long Term Orientation":51,Masculinity:56,Population:1366417754,"Power Distance":77,"Uncertainty Avoidance":40},IDN:{Continent:"Asia","Country Name":"Indonesia",Individualism:14,Indulgence:38,"Long Term Orientation":62,Masculinity:46,Population:270625568,"Power Distance":78,"Uncertainty Avoidance":48},IRN:{Continent:"Asia","Country Name":"Iran",Individualism:41,Indulgence:40,"Long Term Orientation":14,Masculinity:43,Population:82913906,"Power Distance":58,"Uncertainty Avoidance":59},IRQ:{Continent:"Asia","Country Name":"Iraq",Individualism:30,Indulgence:17,"Long Term Orientation":25,Masculinity:70,Population:39309783,"Power Distance":95,"Uncertainty Avoidance":85},IRL:{Continent:"Europe","Country Name":"Ireland",Individualism:70,Indulgence:65,"Long Term Orientation":24,Masculinity:68,Population:4882495,"Power Distance":28,"Uncertainty Avoidance":35},ISR:{Continent:"Asia","Country Name":"Israel",Individualism:54,Indulgence:40,"Long Term Orientation":38,Masculinity:47,Population:8519377,"Power Distance":13,"Uncertainty Avoidance":81},ITA:{Continent:"Europe","Country Name":"Italy",Individualism:76,Indulgence:30,"Long Term Orientation":61,Masculinity:70,Population:60550075,"Power Distance":50,"Uncertainty Avoidance":75},JAM:{Continent:"Americas","Country Name":"Jamaica",Individualism:39,Indulgence:90,"Long Term Orientation":10,Masculinity:68,Population:2948279,"Power Distance":45,"Uncertainty Avoidance":13},JPN:{Continent:"Asia","Country Name":"Japan",Individualism:46,Indulgence:42,"Long Term Orientation":88,Masculinity:95,Population:126860301,"Power Distance":54,"Uncertainty Avoidance":92},JOR:{Continent:"Asia","Country Name":"Jordan",Individualism:30,Indulgence:43,"Long Term Orientation":16,Masculinity:45,Population:10101694,"Power Distance":70,"Uncertainty Avoidance":65},KAZ:{Continent:"Asia","Country Name":"Kazakhstan",Individualism:30,Indulgence:40,"Long Term Orientation":60,Masculinity:50,Population:18551427,"Power Distance":90,"Uncertainty Avoidance":90},KEN:{Continent:"Africa","Country Name":"Kenya",Individualism:25,Indulgence:40,"Long Term Orientation":30,Masculinity:60,Population:52573973,"Power Distance":70,"Uncertainty Avoidance":50},KWT:{Continent:"Asia","Country Name":"Kuwait",Individualism:25,Indulgence:40,"Long Term Orientation":20,Masculinity:40,Population:4207083,"Power Distance":90,"Uncertainty Avoidance":20},PRK:{Continent:"Asia","Country Name":"North Korea",Individualism:15,Indulgence:20,"Long Term Orientation":100,Masculinity:50,Population:25666161,"Power Distance":80,"Uncertainty Avoidance":85},KOR:{Continent:"Asia","Country Name":"South Korea",Individualism:18,Indulgence:29,"Long Term Orientation":100,Masculinity:39,Population:51225308,"Power Distance":60,"Uncertainty Avoidance":85},KGZ:{Continent:"Asia","Country Name":"Kyrgyzstan",Individualism:30,Indulgence:39,"Long Term Orientation":66,Masculinity:35,Population:6415850,"Power Distance":70,"Uncertainty Avoidance":90},LVA:{Continent:"Europe","Country Name":"Latvia",Individualism:70,Indulgence:13,"Long Term Orientation":69,Masculinity:9,Population:1906743,"Power Distance":44,"Uncertainty Avoidance":63},LAO:{Continent:"Asia","Country Name":"Laos",Individualism:10,Indulgence:40,"Long Term Orientation":20,Masculinity:30,Population:7169455,"Power Distance":80,"Uncertainty Avoidance":50},LBN:{Continent:"Asia","Country Name":"Lebanon",Individualism:40,Indulgence:60,"Long Term Orientation":14,Masculinity:50,Population:6855713,"Power Distance":75,"Uncertainty Avoidance":50},LSO:{Continent:"Africa","Country Name":"Lesotho",Individualism:30,Indulgence:70,"Long Term Orientation":15,Masculinity:40,Population:2125268,"Power Distance":70,"Uncertainty Avoidance":50},LBR:{Continent:"Africa","Country Name":"Liberia",Individualism:20,Indulgence:60,"Long Term Orientation":23,Masculinity:40,Population:4937374,"Power Distance":80,"Uncertainty Avoidance":50},LBY:{Continent:"Africa","Country Name":"Libya",Individualism:38,Indulgence:34,"Long Term Orientation":23,Masculinity:52,Population:6777452,"Power Distance":80,"Uncertainty Avoidance":68},LTU:{Continent:"Europe","Country Name":"Lithuania",Individualism:60,Indulgence:56,"Long Term Orientation":82,Masculinity:19,Population:2759627,"Power Distance":42,"Uncertainty Avoidance":65},LUX:{Continent:"Europe","Country Name":"Luxembourg",Individualism:60,Indulgence:35,"Long Term Orientation":64,Masculinity:50,Population:615729,"Power Distance":40,"Uncertainty Avoidance":70},MKD:{Continent:"Europe","Country Name":"North Macedonia",Individualism:30,Indulgence:50,"Long Term Orientation":62,Masculinity:50,Population:2083459,"Power Distance":80,"Uncertainty Avoidance":90},MDG:{Continent:"Africa","Country Name":"Madagascar",Individualism:10,Indulgence:42,"Long Term Orientation":30,Masculinity:50,Population:26969307,"Power Distance":80,"Uncertainty Avoidance":50},MWI:{Continent:"Africa","Country Name":"Malawi",Individualism:30,Indulgence:42,"Long Term Orientation":30,Masculinity:40,Population:18628747,"Power Distance":70,"Uncertainty Avoidance":50},MYS:{Continent:"Asia","Country Name":"Malaysia",Individualism:26,Indulgence:43,"Long Term Orientation":41,Masculinity:50,Population:31949777,"Power Distance":104,"Uncertainty Avoidance":36},MLI:{Continent:"Africa","Country Name":"Mali",Individualism:20,Indulgence:66,"Long Term Orientation":20,Masculinity:40,Population:19658031,"Power Distance":80,"Uncertainty Avoidance":50},MLT:{Continent:"Europe","Country Name":"Malta",Individualism:59,Indulgence:66,"Long Term Orientation":47,Masculinity:47,Population:440372,"Power Distance":56,"Uncertainty Avoidance":96},MRT:{Continent:"Africa","Country Name":"Mauritania",Individualism:40,Indulgence:10,"Long Term Orientation":15,Masculinity:50,Population:4525696,"Power Distance":70,"Uncertainty Avoidance":70},MEX:{Continent:"Americas","Country Name":"Mexico",Individualism:30,Indulgence:97,"Long Term Orientation":24,Masculinity:69,Population:127575529,"Power Distance":81,"Uncertainty Avoidance":82},MOL:{Continent:"Europe","Country Name":"Moldova",Individualism:40,Indulgence:19,"Long Term Orientation":71,Masculinity:40,Population:4043263,"Power Distance":90,"Uncertainty Avoidance":90},MNG:{Continent:"Asia","Country Name":"Mongolia",Individualism:20,Indulgence:20,"Long Term Orientation":70,Masculinity:60,Population:3225167,"Power Distance":70,"Uncertainty Avoidance":30},MNE:{Continent:"Europe","Country Name":"Montenegro",Individualism:30,Indulgence:20,"Long Term Orientation":75,Masculinity:50,Population:627987,"Power Distance":80,"Uncertainty Avoidance":90},MAR:{Continent:"Africa","Country Name":"Morocco",Individualism:46,Indulgence:25,"Long Term Orientation":14,Masculinity:53,Population:36471769,"Power Distance":70,"Uncertainty Avoidance":68},MOZ:{Continent:"Africa","Country Name":"Mozambique",Individualism:15,Indulgence:80,"Long Term Orientation":11,Masculinity:38,Population:30366036,"Power Distance":85,"Uncertainty Avoidance":44},MMR:{Continent:"Asia","Country Name":"Myanmar",Individualism:20,Indulgence:30,"Long Term Orientation":50,Masculinity:50,Population:54045420,"Power Distance":90,"Uncertainty Avoidance":60},NAM:{Continent:"Africa","Country Name":"Namibia",Individualism:30,Indulgence:50,"Long Term Orientation":35,Masculinity:40,Population:2494530,"Power Distance":65,"Uncertainty Avoidance":45},NPL:{Continent:"Asia","Country Name":"Nepal",Individualism:30,Indulgence:40,"Long Term Orientation":60,Masculinity:40,Population:28608710,"Power Distance":65,"Uncertainty Avoidance":40},NLD:{Continent:"Europe","Country Name":"Netherlands",Individualism:80,Indulgence:68,"Long Term Orientation":67,Masculinity:14,Population:17097130,"Power Distance":38,"Uncertainty Avoidance":53},NZL:{Continent:"Oceania","Country Name":"New Zealand",Individualism:79,Indulgence:75,"Long Term Orientation":33,Masculinity:58,Population:4783063,"Power Distance":22,"Uncertainty Avoidance":49},NIC:{Continent:"Americas","Country Name":"Nicaragua",Individualism:20,Indulgence:90,"Long Term Orientation":10,Masculinity:40,Population:6545502,"Power Distance":80,"Uncertainty Avoidance":70},NER:{Continent:"Africa","Country Name":"Niger",Individualism:30,Indulgence:50,"Long Term Orientation":20,Masculinity:60,Population:23310715,"Power Distance":80,"Uncertainty Avoidance":60},NGA:{Continent:"Africa","Country Name":"Nigeria",Individualism:30,Indulgence:84,"Long Term Orientation":13,Masculinity:60,Population:200963599,"Power Distance":80,"Uncertainty Avoidance":55},NOR:{Continent:"Europe","Country Name":"Norway",Individualism:69,Indulgence:55,"Long Term Orientation":35,Masculinity:8,Population:5378857,"Power Distance":31,"Uncertainty Avoidance":50},OMN:{Continent:"Asia","Country Name":"Oman",Individualism:25,Indulgence:52,"Long Term Orientation":35,Masculinity:60,Population:4974986,"Power Distance":90,"Uncertainty Avoidance":80},PAK:{Continent:"Asia","Country Name":"Pakistan",Individualism:14,Indulgence:0,"Long Term Orientation":50,Masculinity:50,Population:216565318,"Power Distance":55,"Uncertainty Avoidance":70},PSE:{Continent:"Asia","Country Name":"Palestine",Individualism:30,Indulgence:40,"Long Term Orientation":16,Masculinity:45,Population:4981420,"Power Distance":80,"Uncertainty Avoidance":65},PAN:{Continent:"Americas","Country Name":"Panama",Individualism:11,Indulgence:80,"Long Term Orientation":20,Masculinity:44,Population:4246439,"Power Distance":95,"Uncertainty Avoidance":86},PNG:{Continent:"Oceania","Country Name":"Papua New Guinea",Individualism:50,Indulgence:50,"Long Term Orientation":30,Masculinity:70,Population:8776109,"Power Distance":40,"Uncertainty Avoidance":60},PRY:{Continent:"Americas","Country Name":"Paraguay",Individualism:36,Indulgence:53,"Long Term Orientation":26,Masculinity:38,Population:7044636,"Power Distance":61,"Uncertainty Avoidance":100},PER:{Continent:"Americas","Country Name":"Peru",Individualism:16,Indulgence:46,"Long Term Orientation":25,Masculinity:42,Population:32510453,"Power Distance":64,"Uncertainty Avoidance":87},PHL:{Continent:"Asia","Country Name":"Philippines",Individualism:32,Indulgence:42,"Long Term Orientation":27,Masculinity:64,Population:108116615,"Power Distance":94,"Uncertainty Avoidance":44},POL:{Continent:"Europe","Country Name":"Poland",Individualism:60,Indulgence:29,"Long Term Orientation":38,Masculinity:64,Population:37887768,"Power Distance":68,"Uncertainty Avoidance":93},PRT:{Continent:"Europe","Country Name":"Portugal",Individualism:27,Indulgence:33,"Long Term Orientation":28,Masculinity:31,Population:10226187,"Power Distance":63,"Uncertainty Avoidance":104},PRI:{Continent:"Americas","Country Name":"Puerto Rico",Individualism:20,Indulgence:90,"Long Term Orientation":0,Masculinity:40,Population:2933408,"Power Distance":70,"Uncertainty Avoidance":50},ROU:{Continent:"Europe","Country Name":"Romania",Individualism:30,Indulgence:20,"Long Term Orientation":52,Masculinity:42,Population:19364557,"Power Distance":90,"Uncertainty Avoidance":90},RUS:{Continent:"Europe","Country Name":"Russia",Individualism:39,Indulgence:20,"Long Term Orientation":81,Masculinity:36,Population:145872256,"Power Distance":93,"Uncertainty Avoidance":95},RWA:{Continent:"Africa","Country Name":"Rwanda",Individualism:25,Indulgence:37,"Long Term Orientation":18,Masculinity:60,Population:12626950,"Power Distance":70,"Uncertainty Avoidance":50},SAU:{Continent:"Asia","Country Name":"Saudi Arabia",Individualism:25,Indulgence:52,"Long Term Orientation":36,Masculinity:60,Population:34268528,"Power Distance":95,"Uncertainty Avoidance":80},SEN:{Continent:"Africa","Country Name":"Senegal",Individualism:25,Indulgence:66,"Long Term Orientation":20,Masculinity:45,Population:16296364,"Power Distance":70,"Uncertainty Avoidance":55},SRB:{Continent:"Europe","Country Name":"Serbia",Individualism:25,Indulgence:28,"Long Term Orientation":52,Masculinity:43,Population:8772235,"Power Distance":86,"Uncertainty Avoidance":92},SLE:{Continent:"Africa","Country Name":"Sierra Leone",Individualism:20,Indulgence:46,"Long Term Orientation":20,Masculinity:40,Population:7813215,"Power Distance":80,"Uncertainty Avoidance":50},SGP:{Continent:"Asia","Country Name":"Singapore",Individualism:20,Indulgence:46,"Long Term Orientation":72,Masculinity:48,Population:5804337,"Power Distance":74,"Uncertainty Avoidance":8},SVK:{Continent:"Europe","Country Name":"Slovakia",Individualism:52,Indulgence:28,"Long Term Orientation":77,Masculinity:110,Population:5457013,"Power Distance":104,"Uncertainty Avoidance":51},SVN:{Continent:"Europe","Country Name":"Slovenia",Individualism:27,Indulgence:48,"Long Term Orientation":49,Masculinity:19,Population:2078654,"Power Distance":71,"Uncertainty Avoidance":88},SOM:{Continent:"Africa","Country Name":"Somalia",Individualism:25,Indulgence:20,"Long Term Orientation":10,Masculinity:65,Population:15442905,"Power Distance":70,"Uncertainty Avoidance":55},ZAF:{Continent:"Africa","Country Name":"South Africa",Individualism:65,Indulgence:63,"Long Term Orientation":34,Masculinity:63,Population:58558270,"Power Distance":49,"Uncertainty Avoidance":49},ESP:{Continent:"Europe","Country Name":"Spain",Individualism:51,Indulgence:30,"Long Term Orientation":48,Masculinity:42,Population:46736776,"Power Distance":57,"Uncertainty Avoidance":86},LKA:{Continent:"Asia","Country Name":"Sri Lanka",Individualism:40,Indulgence:30,"Long Term Orientation":10,Masculinity:50,Population:21323733,"Power Distance":70,"Uncertainty Avoidance":50},SDN:{Continent:"Africa","Country Name":"Sudan",Individualism:40,Indulgence:40,"Long Term Orientation":10,Masculinity:60,Population:42813238,"Power Distance":80,"Uncertainty Avoidance":80},SSD:{Continent:"Africa","Country Name":"Sudan South",Individualism:20,Indulgence:80,"Long Term Orientation":20,Masculinity:50,Population:11062113,"Power Distance":80,"Uncertainty Avoidance":70},SUR:{Continent:"Americas","Country Name":"Suriname",Individualism:47,Indulgence:80,"Long Term Orientation":30,Masculinity:37,Population:581372,"Power Distance":85,"Uncertainty Avoidance":92},SWE:{Continent:"Europe","Country Name":"Sweden",Individualism:71,Indulgence:78,"Long Term Orientation":53,Masculinity:5,Population:10036379,"Power Distance":31,"Uncertainty Avoidance":29},CHE:{Continent:"Europe","Country Name":"Switzerland",Individualism:68,Indulgence:66,"Long Term Orientation":74,Masculinity:70,Population:8591365,"Power Distance":34,"Uncertainty Avoidance":58},SYR:{Continent:"Asia","Country Name":"Syria",Individualism:35,Indulgence:20,"Long Term Orientation":30,Masculinity:52,Population:17070135,"Power Distance":80,"Uncertainty Avoidance":60},TWN:{Continent:"Asia","Country Name":"Taiwan",Individualism:17,Indulgence:49,"Long Term Orientation":93,Masculinity:45,Population:23773876,"Power Distance":58,"Uncertainty Avoidance":69},TJK:{Continent:"Asia","Country Name":"Tajikistan",Individualism:20,Indulgence:40,"Long Term Orientation":65,Masculinity:40,Population:9321018,"Power Distance":90,"Uncertainty Avoidance":90},TZA:{Continent:"Africa","Country Name":"Tanzania",Individualism:25,Indulgence:38,"Long Term Orientation":34,Masculinity:40,Population:58005463,"Power Distance":70,"Uncertainty Avoidance":50},THA:{Continent:"Asia","Country Name":"Thailand",Individualism:20,Indulgence:45,"Long Term Orientation":32,Masculinity:34,Population:69037513,"Power Distance":64,"Uncertainty Avoidance":64},TLS:{Continent:"Asia","Country Name":"Timor-Leste",Individualism:14,Indulgence:40,"Long Term Orientation":60,Masculinity:46,Population:1293119,"Power Distance":78,"Uncertainty Avoidance":48},TGO:{Continent:"Africa","Country Name":"Togo",Individualism:15,Indulgence:80,"Long Term Orientation":15,Masculinity:40,Population:8082366,"Power Distance":80,"Uncertainty Avoidance":65},TTO:{Continent:"Americas","Country Name":"Trinidad and Tobago",Individualism:16,Indulgence:80,"Long Term Orientation":13,Masculinity:58,Population:1394973,"Power Distance":47,"Uncertainty Avoidance":55},TUN:{Continent:"Africa","Country Name":"Tunisia",Individualism:50,Indulgence:30,"Long Term Orientation":25,Masculinity:40,Population:11694719,"Power Distance":70,"Uncertainty Avoidance":60},TUR:{Continent:"Asia","Country Name":"Turkey",Individualism:37,Indulgence:49,"Long Term Orientation":46,Masculinity:45,Population:83429615,"Power Distance":66,"Uncertainty Avoidance":85},TKM:{Continent:"Asia","Country Name":"Turkmenistan",Individualism:30,Indulgence:50,"Long Term Orientation":40,Masculinity:40,Population:5942089,"Power Distance":80,"Uncertainty Avoidance":80},UGA:{Continent:"Africa","Country Name":"Uganda",Individualism:25,Indulgence:52,"Long Term Orientation":24,Masculinity:60,Population:44269594,"Power Distance":70,"Uncertainty Avoidance":60},UKR:{Continent:"Europe","Country Name":"Ukraine",Individualism:40,Indulgence:14,"Long Term Orientation":86,Masculinity:40,Population:43993638,"Power Distance":90,"Uncertainty Avoidance":90},ARE:{Continent:"Asia","Country Name":"United Arab Emirates",Individualism:25,Indulgence:60,"Long Term Orientation":20,Masculinity:40,Population:9770529,"Power Distance":90,"Uncertainty Avoidance":80},USA:{Continent:"Americas","Country Name":"United States",Individualism:91,Indulgence:68,"Long Term Orientation":26,Masculinity:62,Population:329064917,"Power Distance":40,"Uncertainty Avoidance":46},URY:{Continent:"Americas","Country Name":"Uruguay",Individualism:36,Indulgence:40,"Long Term Orientation":26,Masculinity:38,Population:3461734,"Power Distance":61,"Uncertainty Avoidance":100},UZB:{Continent:"Asia","Country Name":"Uzbekistan",Individualism:20,Indulgence:35,"Long Term Orientation":60,Masculinity:40,Population:32981716,"Power Distance":90,"Uncertainty Avoidance":70},VEN:{Continent:"Americas","Country Name":"Venezuela",Individualism:12,Indulgence:100,"Long Term Orientation":16,Masculinity:73,Population:28515829,"Power Distance":81,"Uncertainty Avoidance":76},VNM:{Continent:"Asia","Country Name":"Vietnam",Individualism:20,Indulgence:35,"Long Term Orientation":57,Masculinity:40,Population:96462106,"Power Distance":70,"Uncertainty Avoidance":30},ESH:{Continent:"Africa","Country Name":"Western Sahara",Individualism:40,Indulgence:20,"Long Term Orientation":10,Masculinity:50,Population:582463,"Power Distance":70,"Uncertainty Avoidance":70},YEM:{Continent:"Asia","Country Name":"Yemen",Individualism:25,Indulgence:30,"Long Term Orientation":25,Masculinity:65,Population:29161922,"Power Distance":70,"Uncertainty Avoidance":80},ZMB:{Continent:"Africa","Country Name":"Zambia",Individualism:35,Indulgence:42,"Long Term Orientation":30,Masculinity:40,Population:17861030,"Power Distance":60,"Uncertainty Avoidance":50},ZWE:{Continent:"Africa","Country Name":"Zimbabwe",Individualism:30,Indulgence:28,"Long Term Orientation":15,Masculinity:30,Population:14645468,"Power Distance":70,"Uncertainty Avoidance":50}},d={"Power Distance":"This dimension expresses the degree to which the less powerful members of a society accept and expect that power is distributed unequally. The fundamental issue here is how a society handles inequalities among people. \n\nPeople in societies exhibiting a large degree of Power Distance accept a hierarchical order in which everybody has a place and which needs no further justification. In societies with low Power Distance, people strive to equalise the distribution of power and demand justification for inequalities of power.",Individualism:'The high side of this dimension, called Individualism, can be defined as a preference for a loosely-knit social framework in which individuals are expected to take care of only themselves and their immediate families. \n\nIts opposite, Collectivism, represents a preference for a tightly-knit framework in society in which individuals can expect their relatives or members of a particular ingroup to look after them in exchange for unquestioning loyalty. A society\'s position on this dimension is reflected in whether people\'s self-image is defined in terms of "I" or "we."',Masculinity:'The Masculinity side of this dimension represents a preference in society for achievement, heroism, assertiveness, and material rewards for success. Society at large is more competitive. Its opposite, Femininity, stands for a preference for cooperation, modesty, caring for the weak and quality of life. Society at large is more consensus-oriented. \n\nIn the business context Masculinity versus Femininity is sometimes also related to as "tough versus tender" cultures.',"Uncertainty Avoidance":"The Uncertainty Avoidance dimension expresses the degree to which the members of a society feel uncomfortable with uncertainty and ambiguity. The fundamental issue here is how a society deals with the fact that the future can never be known: should we try to control the future or just let it happen? \n\nCountries exhibiting strong UAI maintain rigid codes of belief and behaviour, and are intolerant of unorthodox behaviour and ideas. Weak UAI societies maintain a more relaxed attitude in which practice counts more than principles.","Long Term Orientation":'Every society has to maintain some links with its own past while dealing with the challenges of the present and the future. Societies prioritize these two existential goals differently. \n\nSocieties who score low on this dimension, for example, prefer to maintain time-honoured traditions and norms while viewing societal change with suspicion. \n\nThose with a culture which scores high, on the other hand, take a more pragmatic approach: they encourage thrift and efforts in modern education as a way to prepare for the future. \n\nIn the business context, this dimension is referred to as "(short-term) normative versus (long-term) pragmatic" (PRA). In the academic environment, the terminology Monumentalism versus Flexhumility is sometimes also used.',Indulgence:"Indulgence stands for a society that allows relatively free gratification of basic and natural human drives related to enjoying life and having fun. Restraint stands for a society that suppresses gratification of needs and regulates it by means of strict social norms."},h=i.default.p.withConfig({displayName:"dimension-info__InfoText",componentId:"sc-1gpwur7-0"})(["font-size:15px;white-space:pre-line;"]),v=i.default.hr.withConfig({displayName:"dimension-info__Separator",componentId:"sc-1gpwur7-1"})(["width:80%;"]);function m(t){return r.createElement("div",{style:{height:"28em"}},r.createElement(h,null,r.createElement("br",null),r.createElement(v,null),r.createElement("br",null),d[t.dimension]))}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},g.apply(this,arguments)}var y=n(2982),b=n(4942),w=n(5697);var P=n(181);function x(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(u){s=!0,i=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(t,e)||(0,P.Z)(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.")}()}function E(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function O(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 M(t,e,n){return e&&O(t.prototype,e),n&&O(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}n(5438);var C=1e-6,A="undefined"!=typeof Float32Array?Float32Array:Array;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)});var T,I;T=new A(4),A!=Float32Array&&(T[0]=0,T[1]=0,T[2]=0,T[3]=0),I=T;function S(t,e){var n=function(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3];return t[0]=n[0]*r+n[4]*i+n[8]*o+n[12]*a,t[1]=n[1]*r+n[5]*i+n[9]*o+n[13]*a,t[2]=n[2]*r+n[6]*i+n[10]*o+n[14]*a,t[3]=n[3]*r+n[7]*i+n[11]*o+n[15]*a,t}([],e,t);return function(t,e,n){t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n}(n,n,1/n[3]),n}function k(t,e){var n=t%e;return n<0?e+n:n}function _(t,e,n){return n*e+(1-n)*t}var D=Math.log2||function(t){return Math.log(t)*Math.LOG2E};function j(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],c=e[6],l=e[7],f=e[8],p=e[9],d=e[10],h=e[11],v=e[12],m=e[13],g=e[14],y=e[15],b=n[0],w=n[1],P=n[2],x=n[3];return t[0]=b*r+w*s+P*f+x*v,t[1]=b*i+w*u+P*p+x*m,t[2]=b*o+w*c+P*d+x*g,t[3]=b*a+w*l+P*h+x*y,b=n[4],w=n[5],P=n[6],x=n[7],t[4]=b*r+w*s+P*f+x*v,t[5]=b*i+w*u+P*p+x*m,t[6]=b*o+w*c+P*d+x*g,t[7]=b*a+w*l+P*h+x*y,b=n[8],w=n[9],P=n[10],x=n[11],t[8]=b*r+w*s+P*f+x*v,t[9]=b*i+w*u+P*p+x*m,t[10]=b*o+w*c+P*d+x*g,t[11]=b*a+w*l+P*h+x*y,b=n[12],w=n[13],P=n[14],x=n[15],t[12]=b*r+w*s+P*f+x*v,t[13]=b*i+w*u+P*p+x*m,t[14]=b*o+w*c+P*d+x*g,t[15]=b*a+w*l+P*h+x*y,t}function L(t,e,n){var r,i,o,a,s,u,c,l,f,p,d,h,v=n[0],m=n[1],g=n[2];return e===t?(t[12]=e[0]*v+e[4]*m+e[8]*g+e[12],t[13]=e[1]*v+e[5]*m+e[9]*g+e[13],t[14]=e[2]*v+e[6]*m+e[10]*g+e[14],t[15]=e[3]*v+e[7]*m+e[11]*g+e[15]):(r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],c=e[6],l=e[7],f=e[8],p=e[9],d=e[10],h=e[11],t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=s,t[5]=u,t[6]=c,t[7]=l,t[8]=f,t[9]=p,t[10]=d,t[11]=h,t[12]=r*v+s*m+f*g+e[12],t[13]=i*v+u*m+p*g+e[13],t[14]=o*v+c*m+d*g+e[14],t[15]=a*v+l*m+h*g+e[15]),t}function N(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 R(t,e){var n=t[0],r=t[1],i=t[2],o=t[3],a=t[4],s=t[5],u=t[6],c=t[7],l=t[8],f=t[9],p=t[10],d=t[11],h=t[12],v=t[13],m=t[14],g=t[15],y=e[0],b=e[1],w=e[2],P=e[3],x=e[4],E=e[5],O=e[6],M=e[7],A=e[8],T=e[9],I=e[10],S=e[11],k=e[12],_=e[13],D=e[14],j=e[15];return Math.abs(n-y)<=C*Math.max(1,Math.abs(n),Math.abs(y))&&Math.abs(r-b)<=C*Math.max(1,Math.abs(r),Math.abs(b))&&Math.abs(i-w)<=C*Math.max(1,Math.abs(i),Math.abs(w))&&Math.abs(o-P)<=C*Math.max(1,Math.abs(o),Math.abs(P))&&Math.abs(a-x)<=C*Math.max(1,Math.abs(a),Math.abs(x))&&Math.abs(s-E)<=C*Math.max(1,Math.abs(s),Math.abs(E))&&Math.abs(u-O)<=C*Math.max(1,Math.abs(u),Math.abs(O))&&Math.abs(c-M)<=C*Math.max(1,Math.abs(c),Math.abs(M))&&Math.abs(l-A)<=C*Math.max(1,Math.abs(l),Math.abs(A))&&Math.abs(f-T)<=C*Math.max(1,Math.abs(f),Math.abs(T))&&Math.abs(p-I)<=C*Math.max(1,Math.abs(p),Math.abs(I))&&Math.abs(d-S)<=C*Math.max(1,Math.abs(d),Math.abs(S))&&Math.abs(h-k)<=C*Math.max(1,Math.abs(h),Math.abs(k))&&Math.abs(v-_)<=C*Math.max(1,Math.abs(v),Math.abs(_))&&Math.abs(m-D)<=C*Math.max(1,Math.abs(m),Math.abs(D))&&Math.abs(g-j)<=C*Math.max(1,Math.abs(g),Math.abs(j))}function U(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function V(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function F(t){var e=t[0],n=t[1];return Math.hypot(e,n)}function z(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}var B=function(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t};!function(){var t=function(){var t=new A(2);return A!=Float32Array&&(t[0]=0,t[1]=0),t}()}();function Z(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}var H=function(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t};!function(){var t=function(){var t=new A(3);return A!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}()}();function G(t,e){if(!t)throw new Error(e||"@math.gl/web-mercator: assertion failed.")}var q=Math.PI,W=q/4,Y=q/180,X=180/q,K=512;function $(t){return Math.pow(2,t)}function J(t){return D(t)}function Q(t){var e=x(t,2),n=e[0],r=e[1];G(Number.isFinite(n)),G(Number.isFinite(r)&&r>=-90&&r<=90,"invalid latitude");var i=r*Y;return[K*(n*Y+q)/(2*q),K*(q+Math.log(Math.tan(W+.5*i)))/(2*q)]}function tt(t){var e=x(t,2),n=e[0],r=e[1],i=n/K*(2*q)-q,o=2*(Math.atan(Math.exp(r/K*(2*q)-q))-W);return[i*X,o*X]}function et(t){var e=t.latitude,n=t.longitude,r=t.highPrecision,i=void 0!==r&&r;G(Number.isFinite(e)&&Number.isFinite(n));var o={},a=Math.cos(e*Y),s=512/360,u=s/a,c=12790407194604047e-21/a;if(o.unitsPerMeter=[c,c,c],o.metersPerUnit=[1/c,1/c,1/c],o.unitsPerDegree=[s,u,c],o.degreesPerUnit=[.703125,1/u,1/c],i){var l=Y*Math.tan(e*Y)/a,f=s*l/2,p=12790407194604047e-21*l,d=p/u*c;o.unitsPerDegree2=[0,f,p],o.unitsPerMeter2=[d,0,d]}return o}function nt(t){var e=t.height,n=t.pitch,r=t.bearing,i=t.altitude,o=t.scale,a=t.center,s=void 0===a?null:a,u=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return L(u,u,[0,0,-i]),function(t,e,n){var r=Math.sin(n),i=Math.cos(n),o=e[4],a=e[5],s=e[6],u=e[7],c=e[8],l=e[9],f=e[10],p=e[11];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+c*r,t[5]=a*i+l*r,t[6]=s*i+f*r,t[7]=u*i+p*r,t[8]=c*i-o*r,t[9]=l*i-a*r,t[10]=f*i-s*r,t[11]=p*i-u*r}(u,u,-n*Y),function(t,e,n){var r=Math.sin(n),i=Math.cos(n),o=e[0],a=e[1],s=e[2],u=e[3],c=e[4],l=e[5],f=e[6],p=e[7];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+c*r,t[1]=a*i+l*r,t[2]=s*i+f*r,t[3]=u*i+p*r,t[4]=c*i-o*r,t[5]=l*i-a*r,t[6]=f*i-s*r,t[7]=p*i-u*r}(u,u,r*Y),N(u,u,[o/=e,o,o]),s&&L(u,u,function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}([],s)),u}function rt(t){var e=t.width,n=t.height,r=t.pitch,i=function(t){var e=t.width,n=t.height,r=t.fovy,i=void 0===r?it(1.5):r,o=t.altitude,a=t.pitch,s=void 0===a?0:a,u=t.nearZMultiplier,c=void 0===u?1:u,l=t.farZMultiplier,f=void 0===l?1:l;void 0!==o&&(i=it(o));var p=.5*i*Y,d=ot(i),h=s*Y,v=Math.sin(p)*d/Math.sin(Math.min(Math.max(Math.PI/2-h-p,.01),Math.PI-.01));return{fov:2*p,aspect:e/n,focalDistance:d,near:c,far:(Math.sin(h)*v+d)*f}}({width:e,height:n,altitude:t.altitude,fovy:t.fovy,pitch:r,nearZMultiplier:t.nearZMultiplier,farZMultiplier:t.farZMultiplier}),o=function(t,e,n,r,i){var o,a=1/Math.tan(e/2);return t[0]=a/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,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}([],i.fov,i.aspect,i.near,i.far);return o}function it(t){return 2*Math.atan(.5/t)*X}function ot(t){return.5/Math.tan(.5*t*Y)}function at(t,e){var n=x(t,3),r=n[0],i=n[1],o=n[2],a=void 0===o?0:o;return G(Number.isFinite(r)&&Number.isFinite(i)&&Number.isFinite(a)),S(e,[r,i,a,1])}function st(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=x(t,3),i=r[0],o=r[1],a=r[2];if(G(Number.isFinite(i)&&Number.isFinite(o),"invalid pixel coordinate"),Number.isFinite(a)){var s=S(e,[i,o,a,1]);return s}var u=S(e,[i,o,0,1]),c=S(e,[i,o,1,1]),l=u[2],f=c[2],p=l===f?0:((n||0)-l)/(f-l);return z([],u,c,p)}function ut(t){var e=t.width,n=t.height,r=t.bounds,i=t.minExtent,o=void 0===i?0:i,a=t.maxZoom,s=void 0===a?24:a,u=t.padding,c=void 0===u?0:u,l=t.offset,f=void 0===l?[0,0]:l,p=x(r,2),d=x(p[0],2),h=d[0],v=d[1],m=x(p[1],2),g=m[0],y=m[1];if(Number.isFinite(c)){c={top:c,bottom:c,left:c,right:c}}else G(Number.isFinite(c.top)&&Number.isFinite(c.bottom)&&Number.isFinite(c.left)&&Number.isFinite(c.right));var b=new pt({width:e,height:n,longitude:0,latitude:0,zoom:0}),w=b.project([h,y]),P=b.project([g,v]),E=[Math.max(Math.abs(P[0]-w[0]),o),Math.max(Math.abs(P[1]-w[1]),o)],O=[e-c.left-c.right-2*Math.abs(f[0]),n-c.top-c.bottom-2*Math.abs(f[1])];G(O[0]>0&&O[1]>0);var M=O[0]/E[0],C=O[1]/E[1],A=(c.right-c.left)/2/M,T=(c.bottom-c.top)/2/C,I=[(P[0]+w[0])/2+A,(P[1]+w[1])/2+T],S=b.unproject(I),k=Math.min(s,b.zoom+D(Math.abs(Math.min(M,C))));return G(Number.isFinite(k)),{longitude:S[0],latitude:S[1],zoom:k}}var ct=Math.PI/180;function lt(t){var e,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=t.width,o=t.height,a=t.unproject,s={targetZ:r},u=a([0,o],s),c=a([i,o],s),l=t.fovy?.5*t.fovy*ct:Math.atan(.5/t.altitude),f=(90-t.pitch)*ct;return l>f-.01?(e=ft(t,0,r),n=ft(t,i,r)):(e=a([0,0],s),n=a([i,0],s)),[u,c,n,e]}function ft(t,e,n){var r=t.pixelUnprojectionMatrix,i=S(r,[e,0,1,1]),o=S(r,[e,t.height,1,1]),a=tt(z([],i,o,(n*t.distanceScales.unitsPerMeter[2]-i[2])/(o[2]-i[2])));return a[2]=n,a}var pt=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{width:1,height:1},n=e.width,r=e.height,i=e.latitude,o=void 0===i?0:i,a=e.longitude,s=void 0===a?0:a,u=e.zoom,c=void 0===u?0:u,l=e.pitch,f=void 0===l?0:l,p=e.bearing,d=void 0===p?0:p,h=e.altitude,v=void 0===h?null:h,m=e.fovy,g=void 0===m?null:m,y=e.position,b=void 0===y?null:y,w=e.nearZMultiplier,P=void 0===w?.02:w,x=e.farZMultiplier,O=void 0===x?1.01:x;E(this,t),n=n||1,r=r||1,null===g&&null===v?g=it(v=1.5):null===g?g=it(v):null===v&&(v=ot(g));var M=$(c);v=Math.max(.75,v);var C=et({longitude:s,latitude:o}),A=Q([s,o]);A[2]=0,b&&Z(A,A,H([],b,C.unitsPerMeter)),this.projectionMatrix=rt({width:n,height:r,pitch:f,fovy:g,nearZMultiplier:P,farZMultiplier:O}),this.viewMatrix=nt({height:r,scale:M,center:A,pitch:f,bearing:d,altitude:v}),this.width=n,this.height=r,this.scale=M,this.latitude=o,this.longitude=s,this.zoom=c,this.pitch=f,this.bearing=d,this.altitude=v,this.fovy=g,this.center=A,this.meterOffset=b||[0,0,0],this.distanceScales=C,this._initMatrices(),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),Object.freeze(this)}return M(t,[{key:"_initMatrices",value:function(){var t=this.width,e=this.height,n=this.projectionMatrix,r=this.viewMatrix,i=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];j(i,i,n),j(i,i,r),this.viewProjectionMatrix=i;var o=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];N(o,o,[t/2,-e/2,1]),L(o,o,[1,-1,0]),j(o,o,i);var a=function(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],u=e[6],c=e[7],l=e[8],f=e[9],p=e[10],d=e[11],h=e[12],v=e[13],m=e[14],g=e[15],y=n*s-r*a,b=n*u-i*a,w=n*c-o*a,P=r*u-i*s,x=r*c-o*s,E=i*c-o*u,O=l*v-f*h,M=l*m-p*h,C=l*g-d*h,A=f*m-p*v,T=f*g-d*v,I=p*g-d*m,S=y*I-b*T+w*A+P*C-x*M+E*O;return S?(S=1/S,t[0]=(s*I-u*T+c*A)*S,t[1]=(i*T-r*I-o*A)*S,t[2]=(v*E-m*x+g*P)*S,t[3]=(p*x-f*E-d*P)*S,t[4]=(u*C-a*I-c*M)*S,t[5]=(n*I-i*C+o*M)*S,t[6]=(m*w-h*E-g*b)*S,t[7]=(l*E-p*w+d*b)*S,t[8]=(a*T-s*C+c*O)*S,t[9]=(r*C-n*T-o*O)*S,t[10]=(h*x-v*w+g*y)*S,t[11]=(f*w-l*x-d*y)*S,t[12]=(s*M-a*A-u*O)*S,t[13]=(n*A-r*M+i*O)*S,t[14]=(v*b-h*P-m*y)*S,t[15]=(l*P-f*b+p*y)*S,t):null}([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],o);if(!a)throw new Error("Pixel project matrix not invertible");this.pixelProjectionMatrix=o,this.pixelUnprojectionMatrix=a}},{key:"equals",value:function(e){return e instanceof t&&(e.width===this.width&&e.height===this.height&&R(e.projectionMatrix,this.projectionMatrix)&&R(e.viewMatrix,this.viewMatrix))}},{key:"project",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.topLeft,r=void 0===n||n,i=this.projectPosition(t),o=at(i,this.pixelProjectionMatrix),a=x(o,2),s=a[0],u=a[1],c=r?u:this.height-u;return 2===t.length?[s,c]:[s,c,o[2]]}},{key:"unproject",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.topLeft,r=void 0===n||n,i=e.targetZ,o=void 0===i?void 0:i,a=x(t,3),s=a[0],u=a[1],c=a[2],l=r?u:this.height-u,f=o&&o*this.distanceScales.unitsPerMeter[2],p=st([s,l,c],this.pixelUnprojectionMatrix,f),d=this.unprojectPosition(p),h=x(d,3),v=h[0],m=h[1],g=h[2];return Number.isFinite(c)?[v,m,g]:Number.isFinite(o)?[v,m,o]:[v,m]}},{key:"projectPosition",value:function(t){var e=x(Q(t),2);return[e[0],e[1],(t[2]||0)*this.distanceScales.unitsPerMeter[2]]}},{key:"unprojectPosition",value:function(t){var e=x(tt(t),2);return[e[0],e[1],(t[2]||0)*this.distanceScales.metersPerUnit[2]]}},{key:"projectFlat",value:function(t){return Q(t)}},{key:"unprojectFlat",value:function(t){return tt(t)}},{key:"getMapCenterByLngLatPosition",value:function(t){var e=t.lngLat,n=st(t.pos,this.pixelUnprojectionMatrix),r=U([],Q(e),function(t,e){return t[0]=-e[0],t[1]=-e[1],t}([],n));return tt(U([],this.center,r))}},{key:"getLocationAtPoint",value:function(t){var e=t.lngLat,n=t.pos;return this.getMapCenterByLngLatPosition({lngLat:e,pos:n})}},{key:"fitBounds",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.width,i=this.height,o=ut(Object.assign({width:r,height:i,bounds:e},n)),a=o.longitude,s=o.latitude,u=o.zoom;return new t({width:r,height:i,longitude:a,latitude:s,zoom:u})}},{key:"getBounds",value:function(t){var e=this.getBoundingRegion(t),n=Math.min.apply(Math,(0,y.Z)(e.map((function(t){return t[0]})))),r=Math.max.apply(Math,(0,y.Z)(e.map((function(t){return t[0]}))));return[[n,Math.min.apply(Math,(0,y.Z)(e.map((function(t){return t[1]}))))],[r,Math.max.apply(Math,(0,y.Z)(e.map((function(t){return t[1]}))))]]}},{key:"getBoundingRegion",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return lt(this,t.z||0)}}]),t}();function dt(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return ht(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 ht(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,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function ht(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 vt=.01,mt=["longitude","latitude","zoom"],gt={curve:1.414,speed:1.2};function yt(t,e,n){var r=(n=Object.assign({},gt,n)).curve,i=t.zoom,o=[t.longitude,t.latitude],a=$(i),s=e.zoom,u=[e.longitude,e.latitude],c=$(s-i),l=Q(o),f=Q(u),p=B([],f,l),d=Math.max(t.width,t.height),h=d/c,v=F(p)*a,m=Math.max(v,vt),g=r*r,y=(h*h-d*d+g*g*m*m)/(2*d*g*m),b=(h*h-d*d-g*g*m*m)/(2*h*g*m),w=Math.log(Math.sqrt(y*y+1)-y),P=Math.log(Math.sqrt(b*b+1)-b);return{startZoom:i,startCenterXY:l,uDelta:p,w0:d,u1:v,S:(P-w)/r,rho:r,rho2:g,r0:w,r1:P}}var bt=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}()}(),wt="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,Pt=void 0!==n.g&&n.g.Math===Math?n.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),xt="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(Pt):function(t){return setTimeout((function(){return t(Date.now())}),1e3/60)};var Et=["top","right","bottom","left","width","height","size","weight"],Ot="undefined"!=typeof MutationObserver,Mt=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;function o(){n&&(n=!1,t()),r&&s()}function a(){xt(o)}function s(){var t=Date.now();if(n){if(t-i<2)return;r=!0}else n=!0,r=!1,setTimeout(a,e);i=t}return s}(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(){wt&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Ot?(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(){wt&&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;Et.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}(),Ct=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},At=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||Pt},Tt=jt(0,0,0,0);function It(t){return parseFloat(t)||0}function St(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce((function(e,n){return e+It(t["border-"+n+"-width"])}),0)}function kt(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return Tt;var r=At(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]=It(o)}return e}(r),o=i.left+i.right,a=i.top+i.bottom,s=It(r.width),u=It(r.height);if("border-box"===r.boxSizing&&(Math.round(s+o)!==e&&(s-=St(r,"left","right")+o),Math.round(u+a)!==n&&(u-=St(r,"top","bottom")+a)),!function(t){return t===At(t).document.documentElement}(t)){var c=Math.round(s+o)-e,l=Math.round(u+a)-n;1!==Math.abs(c)&&(s-=c),1!==Math.abs(l)&&(u-=l)}return jt(i.left,i.top,s,u)}var _t="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof At(t).SVGGraphicsElement}:function(t){return t instanceof At(t).SVGElement&&"function"==typeof t.getBBox};function Dt(t){return wt?_t(t)?function(t){var e=t.getBBox();return jt(0,0,e.width,e.height)}(t):kt(t):Tt}function jt(t,e,n,r){return{x:t,y:e,width:n,height:r}}var Lt=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=jt(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=Dt(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}(),Nt=function(t,e){var n,r,i,o,a,s,u,c=(r=(n=e).x,i=n.y,o=n.width,a=n.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,u=Object.create(s.prototype),Ct(u,{x:r,y:i,width:o,height:a,top:i,right:r+o,bottom:a+i,left:r}),u);Ct(this,{target:t,contentRect:c})},Rt=function(){function t(t,e,n){if(this.activeObservations_=[],this.observations_=new bt,"function"!=typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=n}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 At(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new Lt(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 At(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 Nt(t.target,t.broadcastRect())}));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}(),Ut="undefined"!=typeof WeakMap?new WeakMap:new bt,Vt=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=Mt.getInstance(),r=new Rt(e,n,this);Ut.set(this,r)};["observe","unobserve","disconnect"].forEach((function(t){Vt.prototype[t]=function(){var e;return(e=Ut.get(this))[t].apply(e,arguments)}}));var Ft=void 0!==Pt.ResizeObserver?Pt.ResizeObserver:Vt,zt=("undefined"!=typeof window?window:n.g,void 0!==n.g?n.g:window,"undefined"!=typeof document?document:{});function Bt(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]:{};e%2?Bt(Object(n),!0).forEach((function(e){(0,b.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Bt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ht(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,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)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}var qt=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function Wt(t){if(!t)return null;if("string"==typeof t)return t;t.toJS&&(t=t.toJS());var e,n={},r=Ht(t.layers);try{for(r.s();!(e=r.n()).done;){var i=e.value;n[i.id]=i}}catch(a){r.e(a)}finally{r.f()}var o=t.layers.map((function(t){var e=n[t.ref],r=null;if("interactive"in t&&delete(r=Zt({},t)).interactive,e){delete(r=r||Zt({},t)).ref;var i,o=Ht(qt);try{for(o.s();!(i=o.n()).done;){var s=i.value;s in e&&(r[s]=e[s])}}catch(a){o.e(a)}finally{o.f()}}return r||t}));return Zt(Zt({},t),{},{layers:o})}var Yt={container:w.object,gl:w.object,mapboxApiAccessToken:w.string,mapboxApiUrl:w.string,attributionControl:w.bool,preserveDrawingBuffer:w.bool,reuseMaps:w.bool,transformRequest:w.func,mapOptions:w.object,mapStyle:w.oneOfType([w.string,w.object]),preventStyleDiffing:w.bool,visible:w.bool,asyncRender:w.bool,onLoad:w.func,onError:w.func,width:w.number,height:w.number,viewState:w.object,longitude:w.number,latitude:w.number,zoom:w.number,bearing:w.number,pitch:w.number,altitude:w.number},Xt={container:zt.body,mapboxApiAccessToken:function(){var t=null;if("undefined"!=typeof window&&window.location){var e=window.location.search.match(/access_token=([^&\/]*)/);t=e&&e[1]}t||"undefined"==typeof process||(t=t||{}.MapboxAccessToken||{}.REACT_APP_MAPBOX_ACCESS_TOKEN);return t||"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 Kt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"component";t.debug&&w.checkPropTypes(Yt,t,"prop",e)}var $t=function(){function t(e){var n=this;if(E(this,t),(0,b.Z)(this,"props",Xt),(0,b.Z)(this,"width",0),(0,b.Z)(this,"height",0),(0,b.Z)(this,"_fireLoadEvent",(function(){n.props.onLoad({type:"load",target:n._map})})),(0,b.Z)(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 M(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(Wt(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:Wt(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.savedMap=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;Kt(t=Object.assign({},Xt,t),"Mapbox"),this.mapboxgl.accessToken=t.mapboxApiAccessToken||Xt.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){Kt(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(Wt(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,a=void 0===o?0:o,s=e.bearing,u=void 0===s?0:s,c=e.altitude;return{longitude:n,latitude:r,zoom:i,pitch:a,bearing:u,altitude:void 0===c?1.5:c}}},{key:"_checkStyleSheet",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"0.47.0";if(void 0!==zt)try{var e=zt.createElement("div");e.className="mapboxgl-map",e.style.display="none",zt.body.appendChild(e);var n="static"!==window.getComputedStyle(e).position;if(!n){var r=zt.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")),zt.head.appendChild(r)}}catch(i){}}},{key:"_viewStateToMapboxProps",value:function(t){return{center:[t.longitude,t.latitude],zoom:t.zoom,bearing:t.bearing,pitch:t.pitch}}}]),t}();(0,b.Z)($t,"initialized",!1),(0,b.Z)($t,"propTypes",Yt),(0,b.Z)($t,"defaultProps",Xt),(0,b.Z)($t,"savedMap",null);var Jt=n(2974),Qt=n.n(Jt);function te(t){return Array.isArray(t)||ArrayBuffer.isView(t)}function ee(t,e){if(t===e)return!0;if(te(t)&&te(e)){if(t.length!==e.length)return!1;for(var n=0;n<t.length;++n)if(!ee(t[n],e[n]))return!1;return!0}return Math.abs(t-e)<=1e-7}function ne(t,e,n){return Math.max(e,Math.min(n,t))}function re(t,e,n){return te(t)?t.map((function(t,r){return re(t,e[r],n)})):n*e+(1-n)*t}function ie(t,e){if(!t)throw new Error(e||"react-map-gl: assertion failed.")}function oe(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?oe(Object(n),!0).forEach((function(e){(0,b.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):oe(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var se={minZoom:0,maxZoom:24,minPitch:0,maxPitch:85},ue=0,ce=0,le=1.5,fe=function(){function t(e){var n=e.width,r=e.height,i=e.latitude,o=e.longitude,a=e.zoom,s=e.bearing,u=void 0===s?ce:s,c=e.pitch,l=void 0===c?ue:c,f=e.altitude,p=void 0===f?le:f,d=e.maxZoom,h=void 0===d?se.maxZoom:d,v=e.minZoom,m=void 0===v?se.minZoom:v,g=e.maxPitch,y=void 0===g?se.maxPitch:g,b=e.minPitch,w=void 0===b?se.minPitch:b,P=e.transitionDuration,x=e.transitionEasing,O=e.transitionInterpolator,M=e.transitionInterruption,C=e.startPanLngLat,A=e.startZoomLngLat,T=e.startRotatePos,I=e.startBearing,S=e.startPitch,k=e.startZoom;E(this,t),ie(Number.isFinite(n),"`width` must be supplied"),ie(Number.isFinite(r),"`height` must be supplied"),ie(Number.isFinite(o),"`longitude` must be supplied"),ie(Number.isFinite(i),"`latitude` must be supplied"),ie(Number.isFinite(a),"`zoom` must be supplied"),this._viewportProps=this._applyConstraints({width:n,height:r,latitude:i,longitude:o,zoom:a,bearing:u,pitch:l,altitude:p,maxZoom:h,minZoom:m,maxPitch:y,minPitch:w,transitionDuration:P,transitionEasing:x,transitionInterpolator:O,transitionInterruption:M}),this._state={startPanLngLat:C,startZoomLngLat:A,startRotatePos:T,startBearing:I,startPitch:S,startZoom:k}}return M(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=x(this._calculateNewLngLat({startPanLngLat:r,pos:e}),2),o=i[0],a=i[1];return this._getUpdatedMapState({longitude:o,latitude:a})}},{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,a=void 0===o?0:o,s=this._state,u=s.startRotatePos,c=s.startBearing,l=s.startPitch;return Number.isFinite(c)&&Number.isFinite(l)?(e=n?this._calculateNewPitchAndBearing(ae(ae({},this._getRotationParams(n,u)),{},{startBearing:c,startPitch:l})):{bearing:c+i,pitch:l+a},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;ie(r>0,"`scale` must be a positive number");var i=this._state,o=i.startZoom,a=i.startZoomLngLat;Number.isFinite(o)||(o=this._viewportProps.zoom,a=this._unproject(n)||this._unproject(e)),ie(a,"`startZoomLngLat` prop is required for zoom behavior to calculate where to position the map.");var s=this._calculateNewZoom({scale:r,startZoom:o||0}),u=x(new pt(Object.assign({},this._viewportProps,{zoom:s})).getMapCenterByLngLatPosition({lngLat:a,pos:e}),2),c=u[0],l=u[1];return this._getUpdatedMapState({zoom:s,longitude:c,latitude:l})}},{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=ne(r,n,e);var i=t.maxPitch,o=t.minPitch,a=t.pitch;return t.pitch=ne(a,o,i),Object.assign(t,function(t){var e=t.width,n=t.height,r=t.longitude,i=t.latitude,o=t.zoom,a=t.pitch,s=void 0===a?0:a,u=t.bearing,c=void 0===u?0:u;(r<-180||r>180)&&(r=k(r+180,360)-180),(c<-180||c>180)&&(c=k(c+180,360)-180);var l=D(n/512);if(o<=l)o=l,i=0;else{var f=n/2/Math.pow(2,o),p=tt([0,f])[1];if(i<p)i=p;else{var d=tt([0,512-f])[1];i>d&&(i=d)}}return{width:e,height:n,longitude:r,latitude:i,zoom:o,pitch:s,bearing:c}}(t)),t}},{key:"_unproject",value:function(t){var e=new pt(this._viewportProps);return t&&e.unproject(t)}},{key:"_calculateNewLngLat",value:function(t){var e=t.startPanLngLat,n=t.pos;return new pt(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 ne(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=ne(n,-1,1);var o=this._viewportProps,a=o.minPitch,s=o.maxPitch,u=i;return n>0?u=i+n*(s-i):n<0&&(u=i-n*(a-i)),{pitch:u,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],a=this._viewportProps,s=a.width,u=a.height,c=n/s,l=0;return r>0?Math.abs(u-o)>5&&(l=r/(o-u)*1.2):r<0&&o>5&&(l=1-i/o),{deltaScaleX:c,deltaScaleY:l=Math.min(1,Math.max(-1,l))}}}]),t}();function pe(t){return t[0].toLowerCase()+t.slice(1)}function de(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 he(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?de(Object(n),!0).forEach((function(e){(0,b.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):de(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var ve=(0,r.createContext)({viewport:null,map:null,container:null,onViewportChange:null,onViewStateChange:null,eventManager:null}),me=ve.Provider;ve.Provider=function(t){var e=t.value,n=t.children,i=x((0,r.useState)(null),2),o=i[0],a=i[1],s=(0,r.useContext)(ve);return e=he(he({setMap:a},s),{},{map:s&&s.map||o},e),r.createElement(me,{value:e},n)};var ge=ve,ye="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;function be(t,e){var n=e.longitude,r=e.latitude;return t&&t.queryTerrainElevation&&t.queryTerrainElevation([n,r])||0}function we(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 Pe(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?we(Object(n),!0).forEach((function(e){(0,b.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):we(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var xe="A valid API access token is required to use Mapbox data";function Ee(t){var e=t.map,n=t.props,r=t.width,i=t.height,o=Pe(Pe(Pe({},n),n.viewState),{},{width:r,height:i});return o.position=[0,0,be(e,o)],new pt(o)}var Oe={position:"absolute",width:"100%",height:"100%",overflow:"hidden"},Me=Object.assign({},$t.defaultProps,{disableTokenWarning:!1,visible:!0,onResize:function(){},className:"",style:null,visibilityConstraints:se});function Ce(){return r.createElement("div",{key:"warning",id:"no-token-warning",style:{position:"absolute",left:0,top:0}},r.createElement("h3",{key:"header"},xe),r.createElement("div",{key:"text"},"For information on setting up your basemap, read"),r.createElement("a",{key:"link",href:"https://visgl.github.io/react-map-gl/docs/get-started/mapbox-tokens"},"Note on Map Tokens"))}var Ae=(0,r.forwardRef)((function(t,e){var n=x((0,r.useState)(!0),2),i=n[0],o=n[1],a=x((0,r.useState)({width:0,height:0}),2),s=a[0],u=a[1],c=(0,r.useRef)(null),l=(0,r.useRef)(null),f=(0,r.useRef)(null),p=(0,r.useRef)(null),d=(0,r.useContext)(ge);ye((function(){if(Ae.supported()){var e=new $t(Pe(Pe(Pe({},t),s),{},{mapboxgl:Qt(),container:l.current,onError:function(e){401===(e.error&&e.error.status||e.status)&&i&&(console.error(xe),o(!1)),t.onError(e)}}));c.current=e,d&&d.setMap&&d.setMap(e.getMap());var n=new Ft((function(e){if(e[0].contentRect){var n=e[0].contentRect,r=n.width,i=n.height;u({width:r,height:i}),t.onResize({width:r,height:i})}}));return n.observe(f.current),function(){e.finalize(),c.current=null,n.disconnect()}}}),[]),ye((function(){c.current&&c.current.setProps(Pe(Pe({},t),s))}));var h=c.current&&c.current.getMap();(0,r.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)}}}(c)}),[]);var v=(0,r.useCallback)((function(t){var e=t.target;e===p.current&&e.scrollTo(0,0)}),[]),m=h&&r.createElement(me,{value:Pe(Pe({},d),{},{viewport:d.viewport||Ee(Pe({map:h,props:t},s)),map:h,container:d.container||f.current})},r.createElement("div",{key:"map-overlays",className:"overlays",ref:p,style:Oe,onScroll:v},t.children)),g=t.className,y=t.width,b=t.height,w=t.style,P=t.visibilityConstraints,E=Object.assign({position:"relative"},w,{width:y,height:b}),O=t.visible&&function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:se;for(var n in e){var r=n.slice(0,3),i=pe(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,P),M=Object.assign({},Oe,{visibility:O?"inherit":"hidden"});return r.createElement("div",{key:"map-container",ref:f,style:E},r.createElement("div",{key:"map-mapbox",ref:l,style:M,className:g}),m,!i&&!t.disableTokenWarning&&r.createElement(Ce,null))}));Ae.supported=function(){return Qt()&&Qt().supported()},Ae.defaultProps=Me;var Te=Ae;function Ie(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 Se(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 Se(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,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Se(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 ke=function(){function t(){E(this,t),(0,b.Z)(this,"propNames",[])}return M(t,[{key:"arePropsEqual",value:function(t,e){var n,r=Ie(this.propNames||[]);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(!ee(t[i],e[i]))return!1}}catch(o){r.e(o)}finally{r.f()}return!0}},{key:"initializeProps",value:function(t,e){return{start:t,end:e}}},{key:"interpolateProps",value:function(t,e,n){ie(!1,"interpolateProps is not implemented")}},{key:"getDuration",value:function(t,e){return e.transitionDuration}}]),t}();function _e(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var De=n(9611);function je(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");Object.defineProperty(t,"prototype",{value:Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),writable:!1}),e&&(0,De.Z)(t,e)}var Le=n(8);function Ne(t,e){if(e&&("object"===Le(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _e(t)}function Re(t){return Re=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Re(t)}var Ue={longitude:1,bearing:1};function Ve(t){return Number.isFinite(t)||Array.isArray(t)}function Fe(t,e,n){return function(t){return t in Ue}(t)&&Math.abs(n-e)>180&&(n=n<0?n+360:n-360),n}function ze(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 Be(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 Be(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,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Be(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 Ze(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=Re(t);if(e){var i=Re(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Ne(this,n)}}var He=["longitude","latitude","zoom","bearing","pitch"],Ge=["latitude","longitude","zoom","width","height"],qe=["bearing","pitch"],We={speed:1.2,curve:1.414};!function(t){je(n,t);var e=Ze(n);function n(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return E(this,n),t=e.call(this),(0,b.Z)(_e(t),"propNames",He),t.props=Object.assign({},We,r),t}M(n,[{key:"initializeProps",value:function(t,e){var n,r={},i={},o=ze(Ge);try{for(o.s();!(n=o.n()).done;){var a=n.value,s=t[a],u=e[a];ie(Ve(s)&&Ve(u),"".concat(a," must be supplied for transition")),r[a]=s,i[a]=Fe(a,s,u)}}catch(h){o.e(h)}finally{o.f()}var c,l=ze(qe);try{for(l.s();!(c=l.n()).done;){var f=c.value,p=t[f]||0,d=e[f]||0;r[f]=p,i[f]=Fe(f,p,d)}}catch(h){l.e(h)}finally{l.f()}return{start:r,end:i}}},{key:"interpolateProps",value:function(t,e,n){var r,i=function(t,e,n){var r={},i=yt(t,e,arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}),o=i.startZoom,a=i.startCenterXY,s=i.uDelta,u=i.w0,c=i.u1,l=i.S,f=i.rho,p=i.rho2,d=i.r0;if(c<vt){var h,v=dt(mt);try{for(v.s();!(h=v.n()).done;){var m=h.value,g=t[m],y=e[m];r[m]=_(g,y,n)}}catch(M){v.e(M)}finally{v.f()}return r}var b=n*l,w=Math.cosh(d)/Math.cosh(d+f*b),P=u*((Math.cosh(d)*Math.tanh(d+f*b)-Math.sinh(d))/p)/c,x=o+J(1/w),E=V([],s,P);U(E,E,a);var O=tt(E);return r.longitude=O[0],r.latitude=O[1],r.zoom=x,r}(t,e,n,this.props),o=ze(qe);try{for(o.s();!(r=o.n()).done;){var a=r.value;i[a]=re(t[a],e[a],n)}}catch(s){o.e(s)}finally{o.f()}return i}},{key:"getDuration",value:function(t,e){var n=e.transitionDuration;return"auto"===n&&(n=function(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=r=Object.assign({},gt,r),o=i.screenSpeed,a=i.speed,s=i.maxDuration,u=yt(t,e,r),c=u.S,l=u.rho,f=1e3*c;return n=Number.isFinite(o)?f/(o/l):f/a,Number.isFinite(s)&&n>s?0:n}(t,e,this.props)),n}}])}(ke);function Ye(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 Xe(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 Xe(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,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Xe(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 Ke(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=Re(t);if(e){var i=Re(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Ne(this,n)}}var $e=["longitude","latitude","zoom","bearing","pitch"],Je=function(t){je(n,t);var e=Ke(n);function n(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return E(this,n),t=e.call(this),Array.isArray(r)&&(r={transitionProps:r}),t.propNames=r.transitionProps||$e,r.around&&(t.around=r.around),t}return M(n,[{key:"initializeProps",value:function(t,e){var n={},r={};if(this.around){n.around=this.around;var i=new pt(t).unproject(this.around);Object.assign(r,e,{around:new pt(e).project(i),aroundLngLat:i})}var o,a=Ye(this.propNames);try{for(a.s();!(o=a.n()).done;){var s=o.value,u=t[s],c=e[s];ie(Ve(u)&&Ve(c),"".concat(s," must be supplied for transition")),n[s]=u,r[s]=Fe(s,u,c)}}catch(l){a.e(l)}finally{a.f()}return{start:n,end:r}}},{key:"interpolateProps",value:function(t,e,n){var r,i={},o=Ye(this.propNames);try{for(o.s();!(r=o.n()).done;){var a=r.value;i[a]=re(t[a],e[a],n)}}catch(l){o.e(l)}finally{o.f()}if(e.around){var s=x(new pt(Object.assign({},e,i)).getMapCenterByLngLatPosition({lngLat:e.aroundLngLat,pos:re(t.around,e.around,n)}),2),u=s[0],c=s[1];i.longitude=u,i.latitude=c}return i}}]),n}(ke),Qe=function(){};var tn=1,en=2,nn=3,rn=4,on={transitionDuration:0,transitionEasing:function(t){return t},transitionInterpolator:new Je,transitionInterruption:tn,onTransitionStart:Qe,onTransitionInterrupt:Qe,onTransitionEnd:Qe},an=function(){function t(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};E(this,t),(0,b.Z)(this,"_animationFrame",null),(0,b.Z)(this,"_onTransitionFrame",(function(){e._animationFrame=requestAnimationFrame(e._onTransitionFrame),e._updateViewport()})),this.props=null,this.onViewportChange=n.onViewportChange||Qe,this.onStateChange=n.onStateChange||Qe,this.time=n.getTime||Date.now}return M(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===en?Object.assign(n,this.state.endProps):Object.assign(n,this.state.propsInTransition),this.state.interruption===rn)){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===nn||this._isUpdateDueToCurrentTransition(e):!this._isTransitionEnabled(e)||e.transitionInterpolator.arePropsEqual(t,e))}},{key:"_triggerTransition",value:function(t,e){ie(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,a=e.startProps,s=e.endProps,u=!1,c=(t-n)/r;c>=1&&(c=1,u=!0),c=i(c);var l=o.interpolateProps(a,s,c),f=new fe(Object.assign({},this.props,l));this.state.propsInTransition=f.getViewportProps(),this.onViewportChange(this.state.propsInTransition,this.props),u&&(this._endTransition(),this.props.onTransitionEnd())}}]),t}();(0,b.Z)(an,"defaultProps",on);var sn,un,cn=n(5087),ln=n.n(cn),fn={mousedown:1,mousemove:2,mouseup:4};sn=ln().PointerEventInput,un=sn.prototype.handler,sn.prototype.handler=function(t){var e=this.store;t.button>0&&"pointerdown"===t.type&&(function(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return!0;return!1}(e,(function(e){return e.pointerId===t.pointerId}))||e.push(t)),un.call(this,t)},ln().MouseInput.prototype.handler=function(t){var e=fn[t.type];1&e&&t.button>=0&&(this.pressed=!0),2&e&&0===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 pn=ln().Manager,dn=ln(),hn=dn?[[dn.Pan,{event:"tripan",pointers:3,threshold:0,enable:!1}],[dn.Rotate,{enable:!1}],[dn.Pinch,{enable:!1}],[dn.Swipe,{enable:!1}],[dn.Pan,{threshold:0,enable:!1}],[dn.Press,{enable:!1}],[dn.Tap,{event:"doubletap",taps:2,enable:!1}],[dn.Tap,{event:"anytap",enable:!1}],[dn.Tap,{enable:!1}]]:null,vn={tripan:["rotate","pinch","pan"],rotate:["pinch"],pinch:["pan"],pan:["press","doubletap","anytap","tap"],doubletap:["anytap"],anytap:["tap"]},mn={doubletap:["tap"]},gn={pointerdown:"pointerdown",pointermove:"pointermove",pointerup:"pointerup",touchstart:"pointerdown",touchmove:"pointermove",touchend:"pointerup",mousedown:"pointerdown",mousemove:"pointermove",mouseup:"pointerup"},yn=["keydown","keyup"],bn=["mousedown","mousemove","mouseup","mouseover","mouseout","mouseleave"],wn=["wheel","mousewheel"],Pn={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"},xn={click:"tap",anyclick:"anytap",dblclick:"doubletap",mousedown:"pointerdown",mousemove:"pointermove",mouseup:"pointerup",mouseover:"pointerover",mouseout:"pointerout",mouseleave:"pointerleave"},En="undefined"!=typeof navigator&&navigator.userAgent?navigator.userAgent.toLowerCase():"",On="undefined"!=typeof window?window:n.g,Mn=(void 0!==n.g?n.g:window,"undefined"!=typeof document&&document,!1);try{var Cn={get passive(){return Mn=!0,!0}};On.addEventListener("test",Cn,Cn),On.removeEventListener("test",Cn,Cn)}catch(jp){}var An=-1!==En.indexOf("firefox"),Tn=wn,In="wheel",Sn=4.000244140625,kn=function(){function t(e,n){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};E(this,t),this.element=e,this.callback=n,this.options=Object.assign({enable:!0},i),this.events=Tn.concat(i.events||[]),this.handleEvent=this.handleEvent.bind(this),this.events.forEach((function(t){return e.addEventListener(t,r.handleEvent,!!Mn&&{passive:!1})}))}return M(t,[{key:"destroy",value:function(){var t=this;this.events.forEach((function(e){return t.element.removeEventListener(e,t.handleEvent)}))}},{key:"enableEventType",value:function(t,e){t===In&&(this.options.enable=e)}},{key:"handleEvent",value:function(t){if(this.options.enable){var e=t.deltaY;On.WheelEvent&&(An&&t.deltaMode===On.WheelEvent.DOM_DELTA_PIXEL&&(e/=On.devicePixelRatio),t.deltaMode===On.WheelEvent.DOM_DELTA_LINE&&(e*=40));var n={x:t.clientX,y:t.clientY};0!==e&&e%Sn==0&&(e=Math.floor(e/Sn)),t.shiftKey&&e&&(e*=.25),this._onWheel(t,-e,n)}}},{key:"_onWheel",value:function(t,e,n){this.callback({type:In,center:n,delta:e,srcEvent:t,pointerType:"mouse",target:t.target})}}]),t}(),_n=bn,Dn="pointermove",jn="pointerover",Ln="pointerout",Nn="pointerleave",Rn=function(){function t(e,n){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};E(this,t),this.element=e,this.callback=n,this.pressed=!1,this.options=Object.assign({enable:!0},i),this.enableMoveEvent=this.options.enable,this.enableLeaveEvent=this.options.enable,this.enableOutEvent=this.options.enable,this.enableOverEvent=this.options.enable,this.events=_n.concat(i.events||[]),this.handleEvent=this.handleEvent.bind(this),this.events.forEach((function(t){return e.addEventListener(t,r.handleEvent)}))}return M(t,[{key:"destroy",value:function(){var t=this;this.events.forEach((function(e){return t.element.removeEventListener(e,t.handleEvent)}))}},{key:"enableEventType",value:function(t,e){t===Dn&&(this.enableMoveEvent=e),t===jn&&(this.enableOverEvent=e),t===Ln&&(this.enableOutEvent=e),t===Nn&&(this.enableLeaveEvent=e)}},{key:"handleEvent",value:function(t){this.handleOverEvent(t),this.handleOutEvent(t),this.handleLeaveEvent(t),this.handleMoveEvent(t)}},{key:"handleOverEvent",value:function(t){this.enableOverEvent&&"mouseover"===t.type&&this.callback({type:jn,srcEvent:t,pointerType:"mouse",target:t.target})}},{key:"handleOutEvent",value:function(t){this.enableOutEvent&&"mouseout"===t.type&&this.callback({type:Ln,srcEvent:t,pointerType:"mouse",target:t.target})}},{key:"handleLeaveEvent",value:function(t){this.enableLeaveEvent&&"mouseleave"===t.type&&this.callback({type:Nn,srcEvent:t,pointerType:"mouse",target:t.target})}},{key:"handleMoveEvent",value:function(t){if(this.enableMoveEvent)switch(t.type){case"mousedown":t.button>=0&&(this.pressed=!0);break;case"mousemove":0===t.which&&(this.pressed=!1),this.pressed||this.callback({type:Dn,srcEvent:t,pointerType:"mouse",target:t.target});break;case"mouseup":this.pressed=!1}}}]),t}(),Un=yn,Vn="keydown",Fn="keyup",zn=function(){function t(e,n){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};E(this,t),this.element=e,this.callback=n,this.options=Object.assign({enable:!0},i),this.enableDownEvent=this.options.enable,this.enableUpEvent=this.options.enable,this.events=Un.concat(i.events||[]),this.handleEvent=this.handleEvent.bind(this),e.tabIndex=i.tabIndex||0,e.style.outline="none",this.events.forEach((function(t){return e.addEventListener(t,r.handleEvent)}))}return M(t,[{key:"destroy",value:function(){var t=this;this.events.forEach((function(e){return t.element.removeEventListener(e,t.handleEvent)}))}},{key:"enableEventType",value:function(t,e){t===Vn&&(this.enableDownEvent=e),t===Fn&&(this.enableUpEvent=e)}},{key:"handleEvent",value:function(t){var e=t.target||t.srcElement;"INPUT"===e.tagName&&"text"===e.type||"TEXTAREA"===e.tagName||(this.enableDownEvent&&"keydown"===t.type&&this.callback({type:Vn,srcEvent:t,key:t.key,target:t.target}),this.enableUpEvent&&"keyup"===t.type&&this.callback({type:Fn,srcEvent:t,key:t.key,target:t.target}))}}]),t}(),Bn="contextmenu",Zn=function(){function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};E(this,t),this.element=e,this.callback=n,this.options=Object.assign({enable:!0},r),this.handleEvent=this.handleEvent.bind(this),e.addEventListener("contextmenu",this.handleEvent)}return M(t,[{key:"destroy",value:function(){this.element.removeEventListener("contextmenu",this.handleEvent)}},{key:"enableEventType",value:function(t,e){t===Bn&&(this.options.enable=e)}},{key:"handleEvent",value:function(t){this.options.enable&&this.callback({type:Bn,center:{x:t.clientX,y:t.clientY},srcEvent:t,pointerType:"mouse",target:t.target})}}]),t}(),Hn={pointerdown:1,pointermove:2,pointerup:4,mousedown:1,mousemove:2,mouseup:4};var Gn={srcElement:"root",priority:0},qn=function(){function t(e){E(this,t),this.eventManager=e,this.handlers=[],this.handlersByElement=new Map,this.handleEvent=this.handleEvent.bind(this),this._active=!1}return M(t,[{key:"isEmpty",value:function(){return!this._active}},{key:"add",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=this.handlers,a=this.handlersByElement;n&&("object"!=typeof n||n.addEventListener)&&(n={srcElement:n}),n=n?Object.assign({},Gn,n):Gn;var s=a.get(n.srcElement);s||(s=[],a.set(n.srcElement,s));var u={type:t,handler:e,srcElement:n.srcElement,priority:n.priority};r&&(u.once=!0),i&&(u.passive=!0),o.push(u),this._active=this._active||!u.passive;for(var c=s.length-1;c>=0&&!(s[c].priority>=u.priority);)c--;s.splice(c+1,0,u)}},{key:"remove",value:function(t,e){for(var n=this.handlers,r=this.handlersByElement,i=n.length-1;i>=0;i--){var o=n[i];if(o.type===t&&o.handler===e){n.splice(i,1);var a=r.get(o.srcElement);a.splice(a.indexOf(o),1),0===a.length&&r.delete(o.srcElement)}}this._active=n.some((function(t){return!t.passive}))}},{key:"handleEvent",value:function(t){if(!this.isEmpty()){for(var e=this._normalizeEvent(t),n=t.srcEvent.target;n&&n!==e.rootElement;){if(this._emit(e,n),e.handled)return;n=n.parentNode}this._emit(e,"root")}}},{key:"_emit",value:function(t,e){var n=this.handlersByElement.get(e);if(n){for(var r=!1,i=function(){t.handled=!0},o=function(){t.handled=!0,r=!0},a=[],s=0;s<n.length;s++){var u=n[s],c=u.type,l=u.handler,f=u.once;if(l(Object.assign({},t,{type:c,stopPropagation:i,stopImmediatePropagation:o})),f&&a.push(n[s]),r)break}for(var p=0;p<a.length;p++){var d=a[p],h=d.type,v=d.handler;this.remove(h,v)}}}},{key:"_normalizeEvent",value:function(t){var e=this.eventManager.element;return Object.assign({},t,function(t){var e=Hn[t.srcEvent.type];if(!e)return null;var n=t.srcEvent,r=n.buttons,i=n.button,o=n.which,a=!1,s=!1,u=!1;return 4===e||2===e&&!Number.isFinite(r)?(a=1===o,s=2===o,u=3===o):2===e?(a=Boolean(1&r),s=Boolean(4&r),u=Boolean(2&r)):1===e&&(a=0===i,s=1===i,u=2===i),{leftButton:a,middleButton:s,rightButton:u}}(t),function(t,e){var n=t.srcEvent;if(!t.center&&!Number.isFinite(n.clientX))return null;var r=t.center||{x:n.clientX,y:n.clientY},i=e.getBoundingClientRect(),o=i.width/e.offsetWidth||1,a=i.height/e.offsetHeight||1;return{center:r,offsetCenter:{x:(r.x-i.left-e.clientLeft)/o,y:(r.y-i.top-e.clientTop)/a}}}(t,e),{handled:!1,rootElement:e})}}]),t}();function Wn(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return Yn(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 Yn(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,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Yn(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 Xn={events:null,recognizers:null,recognizerOptions:{},Manager:pn,touchAction:"none",tabIndex:0},Kn=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};E(this,t),this.options=Object.assign({},Xn,n),this.events=new Map,this._onBasicInput=this._onBasicInput.bind(this),this._onOtherEvent=this._onOtherEvent.bind(this),this.setElement(e);var r=n.events;r&&this.on(r)}return M(t,[{key:"setElement",value:function(t){var e=this;if(this.element&&this.destroy(),this.element=t,t){var n=this.options,r=n.Manager;for(var i in this.manager=new r(t,{touchAction:n.touchAction,recognizers:n.recognizers||hn}).on("hammer.input",this._onBasicInput),n.recognizers||Object.keys(vn).forEach((function(t){var n=e.manager.get(t);n&&vn[t].forEach((function(t){n.recognizeWith(t)}))})),n.recognizerOptions){var o=this.manager.get(i);if(o){var a=n.recognizerOptions[i];delete a.enable,o.set(a)}}this.wheelInput=new kn(t,this._onOtherEvent,{enable:!1}),this.moveInput=new Rn(t,this._onOtherEvent,{enable:!1}),this.keyInput=new zn(t,this._onOtherEvent,{enable:!1,tabIndex:n.tabIndex}),this.contextmenuInput=new Zn(t,this._onOtherEvent,{enable:!1});var s,u=Wn(this.events);try{for(u.s();!(s=u.n()).done;){var c=x(s.value,2),l=c[0],f=c[1];f.isEmpty()||(this._toggleRecognizer(f.recognizerName,!0),this.manager.on(l,f.handleEvent))}}catch(jp){u.e(jp)}finally{u.f()}}}},{key:"destroy",value:function(){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)}},{key:"on",value:function(t,e,n){this._addEventHandler(t,e,n,!1)}},{key:"once",value:function(t,e,n){this._addEventHandler(t,e,n,!0)}},{key:"watch",value:function(t,e,n){this._addEventHandler(t,e,n,!1,!0)}},{key:"off",value:function(t,e){this._removeEventHandler(t,e)}},{key:"_toggleRecognizer",value:function(t,e){var n=this.manager;if(n){var r=n.get(t);if(r&&r.options.enable!==e){r.set({enable:e});var i=mn[t];i&&!this.options.recognizers&&i.forEach((function(i){var 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)}}},{key:"_addEventHandler",value:function(t,e,n,r,i){if("string"==typeof t){var o=this.manager,a=this.events,s=xn[t]||t,u=a.get(s);u||(u=new qn(this),a.set(s,u),u.recognizerName=Pn[s]||s,o&&o.on(s,u.handleEvent)),u.add(t,e,n,r,i),u.isEmpty()||this._toggleRecognizer(u.recognizerName,!0)}else for(var c in n=e,t)this._addEventHandler(c,t[c],n,r,i)}},{key:"_removeEventHandler",value:function(t,e){if("string"==typeof t){var n=this.events,r=xn[t]||t,i=n.get(r);if(i&&(i.remove(t,e),i.isEmpty())){var o,a=i.recognizerName,s=!1,u=Wn(n.values());try{for(u.s();!(o=u.n()).done;){var c=o.value;if(c.recognizerName===a&&!c.isEmpty()){s=!0;break}}}catch(jp){u.e(jp)}finally{u.f()}s||this._toggleRecognizer(a,!1)}}else for(var l in t)this._removeEventHandler(l,t[l])}},{key:"_onBasicInput",value:function(t){var e=t.srcEvent,n=gn[e.type];n&&this.manager.emit(n,t)}},{key:"_onOtherEvent",value:function(t){this.manager.emit(t.type,t)}}]),t}();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}function Jn(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){(0,b.Z)(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}var Qn={transitionDuration:0},tr={transitionDuration:300,transitionEasing:function(t){return t},transitionInterpolator:new Je,transitionInterruption:tn},er=300,nr=function(t){return 1-(1-t)*(1-t)},rr=["wheel"],ir=["panstart","panmove","panend"],or=["pinchstart","pinchmove","pinchend"],ar=["tripanstart","tripanmove","tripanend"],sr=["doubletap"],ur=["keydown"],cr=function(){function t(){var e=this;E(this,t),(0,b.Z)(this,"events",[]),(0,b.Z)(this,"scrollZoom",!0),(0,b.Z)(this,"dragPan",!0),(0,b.Z)(this,"dragRotate",!0),(0,b.Z)(this,"doubleClickZoom",!0),(0,b.Z)(this,"touchZoom",!0),(0,b.Z)(this,"touchRotate",!1),(0,b.Z)(this,"keyboard",!0),(0,b.Z)(this,"_interactionState",{isDragging:!1}),(0,b.Z)(this,"_events",{}),(0,b.Z)(this,"_setInteractionState",(function(t){Object.assign(e._interactionState,t),e.onStateChange&&e.onStateChange(e._interactionState)})),(0,b.Z)(this,"_onTransition",(function(t,n){e.onViewportChange(t,e._interactionState,n)})),this.handleEvent=this.handleEvent.bind(this),this._transitionManager=new an({onViewportChange:this._onTransition,onStateChange:this._setInteractionState})}return M(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 fe?this.mapState.getViewportProps():this.mapState,i=Jn(Jn({},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 fe(Jn(Jn(Jn({},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,a=void 0===o||o,s=t.scrollZoom,u=void 0===s?this.scrollZoom:s,c=t.dragPan,l=void 0===c?this.dragPan:c,f=t.dragRotate,p=void 0===f?this.dragRotate:f,d=t.doubleClickZoom,h=void 0===d?this.doubleClickZoom:d,v=t.touchZoom,m=void 0===v?this.touchZoom:v,g=t.touchRotate,y=void 0===g?this.touchRotate:g,b=t.keyboard,w=void 0===b?this.keyboard:b;this.onViewportChange=e,this.onStateChange=n;var P=this.mapStateProps||{},x=P.height!==t.height||P.width!==t.width;this.mapStateProps=t,x&&(this.mapState=P,this.updateViewport(new fe(t))),this._transitionManager.processViewportChange(t),this.eventManager!==i&&(this.eventManager=i,this._events={},this.toggleEvents(this.events,!0)),this.toggleEvents(rr,a&&Boolean(u)),this.toggleEvents(ir,a&&Boolean(l||p)),this.toggleEvents(or,a&&Boolean(m||y)),this.toggleEvents(ar,a&&Boolean(y)),this.toggleEvents(sr,a&&Boolean(h)),this.toggleEvents(ur,a&&Boolean(w)),this.scrollZoom=u,this.dragPan=l,this.dragRotate=p,this.doubleClickZoom=h,this.touchZoom=m,this.touchRotate=y,this.keyboard=w}},{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,Qn,{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,Qn,{isPanning:!0}),!0}},{key:"_onPanMoveEnd",value:function(t){if(this.dragPan){var e=this.dragPan.inertia,n=void 0===e?er: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,Jn(Jn({},tr),{},{transitionDuration:n,transitionEasing:nr}),{isDragging:!1,isPanning:!0}),!0}}var a=this.mapState.panEnd();return this.updateViewport(a,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,Qn,{isRotating:!0}),!0}},{key:"_onPanRotateEnd",value:function(t){if(this.dragRotate){var e=this.dragRotate.inertia,n=void 0===e?er: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,Jn(Jn({},tr),{},{transitionDuration:n,transitionEasing:nr}),{isDragging:!1,isRotating:!0}),!0}}var a=this.mapState.panEnd();return this.updateViewport(a,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 a=this.getCenter(t),s=t.delta,u=2/(1+Math.exp(-Math.abs(s*r)));s<0&&0!==u&&(u=1/u);var c=this.mapState.zoom({pos:a,scale:u});return c.getViewportProps().zoom!==this.mapStateProps.zoom&&(this.updateViewport(c,Jn(Jn({},tr),{},{transitionInterpolator:new Je({around:a}),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,Qn,{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,Qn,{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?er:e,r=this._lastPinchEvent;if(n&&r&&t.scale!==r.scale){var i=this.getCenter(t),o=this.mapState.rotateEnd(),a=Math.log2(t.scale),s=(a-Math.log2(r.scale))/(t.deltaTime-r.deltaTime),u=Math.pow(2,a+s*n/2);return o=o.zoom({pos:i,scale:u}).zoomEnd(),this.updateViewport(o,Jn(Jn({},tr),{},{transitionInterpolator:new Je({around:i}),transitionDuration:n,transitionEasing:nr}),{isDragging:!1,isPanning:Boolean(this.touchZoom),isZooming:Boolean(this.touchZoom),isRotating:!1}),this.blockEvents(n),!0}}var c=this.mapState.zoomEnd().rotateEnd();return this._state.startPinchRotation=0,this.updateViewport(c,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,Qn,{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,Qn,{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?er: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,Jn(Jn({},tr),{},{transitionDuration:n,transitionEasing:nr}),{isDragging:!1,isRotating:!0}),this.blockEvents(n),!1}}var a=this.mapState.rotateEnd();return this.updateViewport(a,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({},tr,{transitionInterpolator:new Je({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,a=r.moveSpeed,s=void 0===a?100:a,u=r.rotateSpeedX,c=void 0===u?15:u,l=r.rotateSpeedY,f=void 0===l?10:l,p=this.mapStateProps;switch(t.srcEvent.keyCode){case 189:e=n?this.getMapState({zoom:p.zoom-Math.log2(o)-1}):this.getMapState({zoom:p.zoom-Math.log2(o)});break;case 187:e=n?this.getMapState({zoom:p.zoom+Math.log2(o)+1}):this.getMapState({zoom:p.zoom+Math.log2(o)});break;case 37:e=n?this.getMapState({bearing:p.bearing-c}):this.mapState.pan({pos:[s,0],startPos:[0,0]});break;case 39:e=n?this.getMapState({bearing:p.bearing+c}):this.mapState.pan({pos:[-s,0],startPos:[0,0]});break;case 38:e=n?this.getMapState({pitch:p.pitch+f}):this.mapState.pan({pos:[0,s],startPos:[0,0]});break;case 40:e=n?this.getMapState({pitch:p.pitch-f}):this.mapState.pan({pos:[0,-s],startPos:[0,0]});break;default:return!1}return this.updateViewport(e,tr)}}]),t}();function lr(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 fr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?lr(Object(n),!0).forEach((function(e){(0,b.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):lr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var pr=Object.assign({},Te.propTypes,{maxZoom:w.number,minZoom:w.number,maxPitch:w.number,minPitch:w.number,onViewStateChange:w.func,onViewportChange:w.func,onInteractionStateChange:w.func,transitionDuration:w.oneOfType([w.number,w.string]),transitionInterpolator:w.object,transitionInterruption:w.number,transitionEasing:w.func,onTransitionStart:w.func,onTransitionInterrupt:w.func,onTransitionEnd:w.func,scrollZoom:w.oneOfType([w.bool,w.object]),dragPan:w.oneOfType([w.bool,w.object]),dragRotate:w.oneOfType([w.bool,w.object]),doubleClickZoom:w.bool,touchZoom:w.oneOfType([w.bool,w.object]),touchRotate:w.oneOfType([w.bool,w.object]),keyboard:w.oneOfType([w.bool,w.object]),onHover:w.func,onClick:w.func,onDblClick:w.func,onContextMenu:w.func,onMouseDown:w.func,onMouseMove:w.func,onMouseUp:w.func,onTouchStart:w.func,onTouchMove:w.func,onTouchEnd:w.func,onMouseEnter:w.func,onMouseLeave:w.func,onMouseOut:w.func,onWheel:w.func,touchAction:w.string,eventRecognizerOptions:w.object,clickRadius:w.number,interactiveLayerIds:w.array,getCursor:w.func,controller:w.instanceOf(cr)}),dr=Object.assign({},Te.defaultProps,se,an.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 hr(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];if(t.point=i,this.map){var o=this.map.unproject(i);t.lngLat=[o.lng,o.lat]}return t}function vr(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(i){return null}}function mr(t,e){var n=this.props[t];n&&n(hr.call(this,e))}function gr(t){mr.call(this,"touch"===t.pointerType?"onTouchStart":"onMouseDown",t)}function yr(t){mr.call(this,"touch"===t.pointerType?"onTouchEnd":"onMouseUp",t)}function br(t){if(mr.call(this,"touch"===t.pointerType?"onTouchMove":"onMouseMove",t),!this.state.isDragging){var e,n=this.props,r=n.onHover,i=n.interactiveLayerIds;t=hr.call(this,t),(i||r)&&(e=vr.call(this,t.point));var o=Boolean(i&&e&&e.length>0),a=o&&!this.state.isHovering,s=!o&&this.state.isHovering;(r||a)&&(t.features=e,r&&r(t)),a&&mr.call(this,"onMouseEnter",t),s&&mr.call(this,"onMouseLeave",t),(a||s)&&this.setState({isHovering:o})}}function wr(t){var e=this.props,n=e.onClick,r=e.onNativeClick,i=e.onDblClick,o=e.doubleClickZoom,a=[],s=i||o;switch(t.type){case"anyclick":a.push(r),s||a.push(n);break;case"click":s&&a.push(n)}(a=a.filter(Boolean)).length&&((t=hr.call(this,t)).features=vr.call(this,t.point),a.forEach((function(e){return e(t)})))}var Pr=(0,r.forwardRef)((function(t,e){var n=(0,r.useContext)(ge),i=(0,r.useMemo)((function(){return t.controller||new cr}),[]),o=(0,r.useMemo)((function(){return new Kn(null,{touchAction:t.touchAction,recognizerOptions:t.eventRecognizerOptions})}),[]),a=(0,r.useRef)(null),s=(0,r.useRef)(null),u=(0,r.useRef)({width:0,height:0,state:{isHovering:!1,isDragging:!1}}).current;u.props=t,u.map=s.current&&s.current.getMap(),u.setState=function(e){u.state=fr(fr({},u.state),e),a.current.style.cursor=t.getCursor(u.state)};var c,l,f=!0,p=function(t,e,n){if(f)c=[t,e,n];else{var r=u.props,i=r.onViewStateChange,o=r.onViewportChange;Object.defineProperty(t,"position",{get:function(){return[0,0,be(u.map,t)]}}),i&&i({viewState:t,interactionState:e,oldViewState:n}),o&&o(t,e,n)}};(0,r.useImperativeHandle)(e,(function(){return function(t){return{getMap:t.current&&t.current.getMap,queryRenderedFeatures:t.current&&t.current.queryRenderedFeatures}}(s)}),[]);var d=(0,r.useMemo)((function(){return fr(fr({},n),{},{eventManager:o,container:n.container||a.current})}),[n,a.current]);d.onViewportChange=p,d.viewport=n.viewport||Ee(u),u.viewport=d.viewport;var h=function(t){var e=t.isDragging,n=void 0!==e&&e;if(n!==u.state.isDragging&&u.setState({isDragging:n}),f)l=t;else{var r=u.props.onInteractionStateChange;r&&r(t)}},v=function(){u.width&&u.height&&i.setOptions(fr(fr(fr({},u.props),u.props.viewState),{},{isInteractive:Boolean(u.props.onViewStateChange||u.props.onViewportChange),onViewportChange:p,onStateChange:h,eventManager:o,width:u.width,height:u.height}))};(0,r.useEffect)((function(){return o.setElement(a.current),o.on({pointerdown:gr.bind(u),pointermove:br.bind(u),pointerup:yr.bind(u),pointerleave:mr.bind(u,"onMouseOut"),click:wr.bind(u),anyclick:wr.bind(u),dblclick:mr.bind(u,"onDblClick"),wheel:mr.bind(u,"onWheel"),contextmenu:mr.bind(u,"onContextMenu")}),function(){o.destroy()}}),[]),ye((function(){c&&p.apply(void 0,(0,y.Z)(c)),l&&h(l)})),v();var m=t.width,b=t.height,w=t.style,P=t.getCursor,x=(0,r.useMemo)((function(){return fr(fr({position:"relative"},w),{},{width:m,height:b,cursor:P(u.state)})}),[w,m,b,P,u.state]);return c&&u._child||(u._child=r.createElement(me,{value:d},r.createElement("div",{key:"event-canvas",ref:a,style:x},r.createElement(Te,g({},t,{width:"100%",height:"100%",style:null,onResize:function(t){var e=t.width,n=t.height;u.width=e,u.height=n,v(),u.props.onResize({width:e,height:n})},ref:s}))))),f=!1,u._child}));Pr.supported=Te.supported,Pr.propTypes=pr,Pr.defaultProps=dr;var xr=Pr;function Er(t){return Er="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},Er(t)}function Or(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(!Or(t[n],e[n]))return!1;return!0}if(Array.isArray(e))return!1;if("object"===Er(t)&&"object"===Er(e)){var r=Object.keys(t),i=Object.keys(e);if(r.length!==i.length)return!1;for(var o=0,a=r;o<a.length;o++){var s=a[o];if(!e.hasOwnProperty(s))return!1;if(!Or(t[s],e[s]))return!1}return!0}return!1}function Mr(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 Cr=0;function Ar(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?Mr(Object(n),!0).forEach((function(e){(0,b.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Mr(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}var Tr=function(t){var e=(0,r.useContext)(ge),n=(0,r.useRef)({id:t.id,type:t.type}),i=x((0,r.useState)(0),2)[1],o=(0,r.useMemo)((function(){return t.id||"jsx-source-".concat(Cr++)}),[]),a=e.map;(0,r.useEffect)((function(){if(a){var t=function(){return i((function(t){return t+1}))};return a.on("styledata",t),function(){a.off("styledata",t),requestAnimationFrame((function(){a.style&&a.style._loaded&&a.getSource(o)&&a.removeSource(o)}))}}}),[a,o]);var s=a&&a.style&&a.getSource(o);return s?function(t,e,n){ie(e.id===n.id,"source id changed"),ie(e.type===n.type,"source type changed");var r="",i=0;for(var o in e)"children"===o||"id"===o||Or(n[o],e[o])||(r=o,i++);if(i){var a=e.type;if("geojson"===a)t.setData(e.data);else if("image"===a)t.updateImage({url:e.url,coordinates:e.coordinates});else if("canvas"!==a&&"video"!==a||1!==i||"coordinates"!==r)if("vector"===a&&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=Ar(a,o,t),n.current=t,s&&r.Children.map(t.children,(function(t){return t&&(0,r.cloneElement)(t,{source:o})}))||null};function Ir(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 Sr(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 kr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Sr(Object(n),!0).forEach((function(e){(0,b.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Sr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var _r={type:w.oneOf(["fill","line","symbol","circle","fill-extrusion","raster","background","heatmap","hillshade","sky"]).isRequired,id:w.string,source:w.string,beforeId:w.string};function Dr(t,e,n,r){ie(n.id===r.id,"layer id changed"),ie(n.type===r.type,"layer type changed");try{!function(t,e,n,r){var i=n.layout,o=void 0===i?{}:i,a=n.paint,s=void 0===a?{}:a,u=n.filter,c=n.minzoom,l=n.maxzoom,f=n.beforeId,p=Ir(n,["layout","paint","filter","minzoom","maxzoom","beforeId"]);if(f!==r.beforeId&&t.moveLayer(e,f),o!==r.layout){var d=r.layout||{};for(var h in o)Or(o[h],d[h])||t.setLayoutProperty(e,h,o[h]);for(var v in d)o.hasOwnProperty(v)||t.setLayoutProperty(e,v,void 0)}if(s!==r.paint){var m=r.paint||{};for(var g in s)Or(s[g],m[g])||t.setPaintProperty(e,g,s[g]);for(var y in m)s.hasOwnProperty(y)||t.setPaintProperty(e,y,void 0)}for(var b in Or(u,r.filter)||t.setFilter(e,u),c===r.minzoom&&l===r.maxzoom||t.setLayerZoomRange(e,c,l),p)Or(p[b],r[b])||t.setLayerProperty(e,b,p[b])}(t,e,n,r)}catch(i){console.warn(i)}}var jr=0;function Lr(t){var e=(0,r.useContext)(ge),n=(0,r.useRef)({id:t.id,type:t.type}),i=x((0,r.useState)(0),2)[1],o=(0,r.useMemo)((function(){return t.id||"jsx-layer-".concat(jr++)}),[]),a=e.map;return(0,r.useEffect)((function(){if(a){var t=function(){return i((function(t){return t+1}))};return a.on("styledata",t),function(){a.off("styledata",t),a.style&&a.style._loaded&&a.removeLayer(o)}}}),[a]),a&&a.style&&a.getLayer(o)?Dr(a,o,t,n.current):function(t,e,n){if(t.style&&t.style._loaded){var r=kr(kr({},n),{},{id:e});delete r.beforeId,t.addLayer(r,n.beforeId)}}(a,o,t),n.current=t,null}Lr.propTypes=_r;var Nr=Lr,Rr={captureScroll:!1,captureDrag:!0,captureClick:!0,captureDoubleClick:!0,capturePointerMove:!1},Ur={captureScroll:w.bool,captureDrag:w.bool,captureClick:w.bool,captureDoubleClick:w.bool,capturePointerMove:w.bool};function Vr(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 Fr(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=(0,r.useContext)(ge),n=(0,r.useRef)(null),i=(0,r.useRef)({props:t,state:{},context:e,containerRef:n}),o=i.current;return o.props=t,o.context=e,(0,r.useEffect)((function(){return Vr(o)}),[e.eventManager]),o}function zr(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=Re(t);if(e){var i=Re(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Ne(this,n)}}function Br(t){var e=t.instance,n=Fr(t),r=n.context,i=n.containerRef;return e._context=r,e._containerRef=i,e._render()}var Zr=function(t){je(n,t);var e=zr(n);function n(){var t;E(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return t=e.call.apply(e,[this].concat(o)),(0,b.Z)(_e(t),"_context",{}),(0,b.Z)(_e(t),"_containerRef",(0,r.createRef)()),(0,b.Z)(_e(t),"_onScroll",(function(t){})),(0,b.Z)(_e(t),"_onDragStart",(function(t){})),(0,b.Z)(_e(t),"_onDblClick",(function(t){})),(0,b.Z)(_e(t),"_onClick",(function(t){})),(0,b.Z)(_e(t),"_onPointerMove",(function(t){})),t}return M(n,[{key:"_render",value:function(){throw new Error("_render() not implemented")}},{key:"render",value:function(){return r.createElement(Br,g({instance:this},this.props,{onScroll:this._onScroll,onDragStart:this._onDragStart,onDblClick:this._onDblClick,onClick:this._onClick,onPointerMove:this._onPointerMove}))}}]),n}(r.PureComponent);function Hr(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 Gr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Hr(Object(n),!0).forEach((function(e){(0,b.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Hr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}(0,b.Z)(Zr,"propTypes",Ur),(0,b.Z)(Zr,"defaultProps",Rr);Object.assign({},Ur,{draggable:w.bool,onDrag:w.func,onDragEnd:w.func,onDragStart:w.func,offsetLeft:w.number,offsetTop:w.number});var qr=Object.assign({},Rr,{draggable:!1,offsetLeft:0,offsetTop:0});function Wr(t){var e=t.offsetCenter;return[e.x,e.y]}function Yr(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 Xr(t,e){var n=e.props,r=e.callbacks,i=e.state,o=e.context,a=e.containerRef;if(n.draggable){t.stopPropagation();var s=Wr(t),u=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,a.current);if(i.setDragPos(s),i.setDragOffset(u),r.onDragStart&&u){var c=Object.assign({},t);c.lngLat=Yr(s,u,n,o),r.onDragStart(c)}}}function Kr(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 a=Wr(t);i.setDragPos(a);var s=i.dragOffset;if(r.onDrag&&s){var u=Object.assign({},t);u.lngLat=Yr(a,s,n,o),r.onDrag(u)}}(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 a=i.dragPos,s=i.dragOffset;if(i.setDragPos(null),i.setDragOffset(null),r.onDragEnd&&a&&s){var u=Object.assign({},t);u.lngLat=Yr(a,s,n,o),r.onDragEnd(u)}}(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 $r="undefined"!=typeof window&&window.devicePixelRatio||1,Jr=function(t){return Math.round(t*$r)/$r},Qr=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 Jr(e/100*r)/r*100},ti=Object.assign({},qr,{className:""});function ei(t){var e=function(t){var e=x((0,r.useState)(null),2),n=e[0],i=e[1],o=x((0,r.useState)(null),2),a=o[0],s=o[1],u=Fr(Gr(Gr({},t),{},{onDragStart:Xr}));return u.callbacks=t,u.state.dragPos=n,u.state.setDragPos=i,u.state.dragOffset=a,u.state.setDragOffset=s,(0,r.useEffect)((function(){return Kr(u)}),[u.context.eventManager,Boolean(n)]),u}(t),n=e.state,i=e.containerRef,o=t.children,a=t.className,s=t.draggable,u=n.dragPos,c=function(t){var e=t.props,n=t.state,r=t.context,i=e.longitude,o=e.latitude,a=e.offsetLeft,s=e.offsetTop,u=n.dragPos,c=n.dragOffset,l=r.viewport,f=r.map;if(u&&c)return[u[0]+c[0],u[1]+c[1]];var p=be(f,{longitude:i,latitude:o}),d=x(l.project([i,o,p]),2),h=d[0],v=d[1];return[h+=a,v+=s]}(e),l=x(c,2),f=l[0],p=l[1],d="translate(".concat(Jr(f),"px, ").concat(Jr(p),"px)"),h=s?u?"grabbing":"grab":"auto",v=(0,r.useMemo)((function(){var t={position:"absolute",left:0,top:0,transform:d,cursor:h};return r.createElement("div",{className:"mapboxgl-marker ".concat(a),ref:e.containerRef,style:t},o)}),[o,a]),m=i.current;return m&&(m.style.transform=d,m.style.cursor=h),v}ei.defaultProps=ti;r.memo(ei);var ni={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},left:{x:0,y:.5},right:{x:1,y:.5}},ri=Object.keys(ni);var ii=Object.assign({},Rr,{className:"",offsetLeft:0,offsetTop:0,tipSize:10,anchor:"bottom",dynamicPosition:!0,sortByDepth:!1,closeButton:!0,closeOnClick:!0,onClose:function(){}});function oi(t,e,n,r){var i=x(r,2),o=i[0],a=i[1],s=t.anchor,u=t.dynamicPosition,c=t.tipSize;return n&&u?function(t){var e=t.x,n=t.y,r=t.width,i=t.height,o=t.selfWidth,a=t.selfHeight,s=t.anchor,u=t.padding,c=void 0===u?0:u,l=ni[s],f=l.x,p=l.y,d=n-p*a,h=d+a,v=Math.max(0,c-d)+Math.max(0,h-i+c);if(v>0){var m=p,g=v;for(p=0;p<=1;p+=.5)h=(d=n-p*a)+a,(v=Math.max(0,c-d)+Math.max(0,h-i+c))<g&&(g=v,m=p);p=m}var y=.5;.5===p&&(f=Math.floor(f),y=1);var b=e-f*o,w=b+o,P=Math.max(0,c-b)+Math.max(0,w-r+c);if(P>0){var x=f,E=P;for(f=0;f<=1;f+=y)w=(b=e-f*o)+o,(P=Math.max(0,c-b)+Math.max(0,w-r+c))<E&&(E=P,x=f);f=x}return ri.find((function(t){var e=ni[t];return e.x===f&&e.y===p}))||s}({x:o,y:a,anchor:s,padding:c,width:e.width,height:e.height,selfWidth:n.clientWidth,selfHeight:n.clientHeight}):s}function ai(t){var e=(0,r.useRef)(null),n=Fr(t),i=n.context,o=n.containerRef,a=x((0,r.useState)(!1),2)[1];(0,r.useEffect)((function(){a(!0)}),[e.current]),(0,r.useEffect)((function(){if(i.eventManager&&t.closeOnClick){var e=function(){return n.props.onClose()};return i.eventManager.on("anyclick",e),function(){i.eventManager.off("anyclick",e)}}}),[i.eventManager,t.closeOnClick]);var s=i.viewport,u=i.map,c=t.className,l=t.longitude,f=t.latitude,p=t.tipSize,d=t.closeButton,h=t.children,v=t.altitude;void 0===v&&(v=be(u,{longitude:l,latitude:f}));var m=s.project([l,f,v]),g=oi(t,s,e.current,m),y=function(t,e,n,r,i){var o=x(r,3),a=o[0],s=o[1],u=o[2],c=t.offsetLeft,l=t.offsetTop,f=t.sortByDepth,p=ni[i],d=a+c,h=s+l,v=Qr(n,100*-p.x),m=Qr(n,100*-p.y,"y"),g={position:"absolute",transform:"\n      translate(".concat(v,"%, ").concat(m,"%)\n      translate(").concat(Jr(d),"px, ").concat(Jr(h),"px)\n    "),display:void 0,zIndex:void 0};return f?(u>1||u<-1||a<0||a>e.width||s<0||s>e.height?g.display="none":g.zIndex=Math.floor((1-u)/2*1e5),g):g}(t,s,o.current,m,g),b=(0,r.useCallback)((function(t){n.props.onClose();var e=n.context.eventManager;e&&e.once("click",(function(t){return t.stopPropagation()}),t.target)}),[]);return r.createElement("div",{className:"mapboxgl-popup mapboxgl-popup-anchor-".concat(g," ").concat(c),style:y,ref:o},r.createElement("div",{key:"tip",className:"mapboxgl-popup-tip",style:{borderWidth:p}}),r.createElement("div",{key:"content",ref:e,className:"mapboxgl-popup-content"},d&&r.createElement("button",{key:"close-button",className:"mapboxgl-popup-close-button",type:"button",onClick:b},"×"),h))}ai.defaultProps=ii;r.memo(ai);function si(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 ui=Object.assign({},Rr,{className:"",toggleLabel:"Toggle Attribution"});function ci(t){var e=Fr(t),n=e.context,i=e.containerRef,o=(0,r.useRef)(null),a=x((0,r.useState)(!1),2),s=a[0],u=a[1];(0,r.useEffect)((function(){var e;return n.map&&(e=function(t,e,n,r){var i=new(Qt().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,i.current,o.current)),function(){return e&&function(t){t._map.off("styledata",t._updateData),t._map.off("sourcedata",t._updateData)}(e)}}),[n.map]);var c=void 0===t.compact?n.viewport.width<=640:t.compact;(0,r.useEffect)((function(){!c&&s&&u(!1)}),[c]);var l=(0,r.useCallback)((function(){return u((function(t){return!t}))}),[]),f=(0,r.useMemo)((function(){return function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?si(Object(n),!0).forEach((function(e){(0,b.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):si(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({position:"absolute"},t.style)}),[t.style]);return r.createElement("div",{style:f,className:t.className},r.createElement("div",{ref:i,"aria-pressed":s,className:"mapboxgl-ctrl mapboxgl-ctrl-attrib ".concat(c?"mapboxgl-compact":""," ").concat(s?"mapboxgl-compact-show":"")},r.createElement("button",{type:"button",className:"mapboxgl-ctrl-attrib-button",title:t.toggleLabel,onClick:l}),r.createElement("div",{ref:o,className:"mapboxgl-ctrl-attrib-inner",role:"list"})))}ci.defaultProps=ui;r.memo(ci);function li(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 fi=Object.assign({},Rr,{className:"",container:null,label:"Toggle fullscreen"});function pi(t){var e=Fr(t),n=e.context,i=e.containerRef,o=x((0,r.useState)(!1),2),a=o[0],s=o[1],u=x((0,r.useState)(!1),2),c=u[0],l=u[1],f=x((0,r.useState)(null),2),p=f[0],d=f[1];(0,r.useEffect)((function(){var t=new(Qt().FullscreenControl);d(t),l(t._checkFullscreenSupport());var e=function(){var e=!t._fullscreen;t._fullscreen=e,s(e)};return zt.addEventListener(t._fullscreenchange,e),function(){zt.removeEventListener(t._fullscreenchange,e)}}),[]);var h=(0,r.useMemo)((function(){return function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?li(Object(n),!0).forEach((function(e){(0,b.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):li(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({position:"absolute"},t.style)}),[t.style]);if(!c)return null;var v=t.className,m=t.label,g=a?"shrink":"fullscreen";return r.createElement("div",{style:h,className:v},r.createElement("div",{className:"mapboxgl-ctrl mapboxgl-ctrl-group",ref:i},r.createElement("button",{key:g,className:"mapboxgl-ctrl-icon mapboxgl-ctrl-".concat(g),type:"button",title:m,onClick:function(){p&&(p._container=t.container||n.container,p._onClickFullscreen())}},r.createElement("span",{className:"mapboxgl-ctrl-icon","aria-hidden":"true"}))))}pi.defaultProps=fi;var di;r.memo(pi);function hi(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 vi=function(){},mi=Object.assign({},Rr,{className:"",label:"Find My Location",disabledLabel:"Location Not Available",auto:!1,positionOptions:{enableHighAccuracy:!1,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showUserLocation:!0,showUserHeading:!1,showAccuracyCircle:!0,onGeolocate:function(){}});function gi(t,e){var n=e.context,r=e.props,i=function(t){var e=new(Qt().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),a=o.longitude,s=o.latitude,u=o.zoom,c=Object.assign({},n.viewport,{longitude:a,latitude:s,zoom:u}),l=new fe(c),f=Object.assign({},l.getViewportProps(),tr),p=r.onViewportChange||n.onViewportChange||vi;(r.onViewStateChange||n.onViewStateChange||vi)({viewState:f}),p(f)}function yi(t){var e=Fr(t),n=e.context,i=e.containerRef,o=(0,r.useRef)(null),a=x((0,r.useState)(null),2),s=a[0],u=a[1],c=x((0,r.useState)(!1),2),l=c[0],f=c[1];(0,r.useEffect)((function(){var r;return n.map&&(void 0!==di?Promise.resolve(di):void 0!==window.navigator.permissions?window.navigator.permissions.query({name:"geolocation"}).then((function(t){return di="denied"!==t.state})):(di=Boolean(window.navigator.geolocation),Promise.resolve(di))).then((function(i){f(i),o.current&&(r=function(t,e,n){var r=new(Qt().GeolocateControl)(e);r._container=zt.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,o.current),r._updateCamera=function(t){return gi(t,e)},u(r))})),function(){r&&r._clearWatch()}}),[n.map]);var p=(0,r.useCallback)((function(){s&&(s.options=e.props,s.trigger())}),[s]);(0,r.useEffect)((function(){t.auto&&p()}),[s,t.auto]),(0,r.useEffect)((function(){s&&s._onZoom()}),[n.viewport.zoom]);var d=t.className,h=t.label,v=t.disabledLabel,m=t.trackUserLocation,g=(0,r.useMemo)((function(){return function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?hi(Object(n),!0).forEach((function(e){(0,b.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):hi(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({position:"absolute"},t.style)}),[t.style]);return r.createElement("div",{style:g,className:d},r.createElement("div",{key:"geolocate-control",className:"mapboxgl-ctrl mapboxgl-ctrl-group",ref:i},r.createElement("button",{key:"geolocate",className:"mapboxgl-ctrl-icon mapboxgl-ctrl-geolocate",ref:o,disabled:!l,"aria-pressed":!m,type:"button",title:l?h:v,"aria-label":l?h:v,onClick:p},r.createElement("span",{className:"mapboxgl-ctrl-icon","aria-hidden":"true"}))))}yi.defaultProps=mi;r.memo(yi);function bi(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 wi=function(){},Pi=Object.assign({},Rr,{className:"",showCompass:!0,showZoom:!0,zoomInLabel:"Zoom In",zoomOutLabel:"Zoom Out",compassLabel:"Reset North"});function xi(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,a=r[i]||0;if(o<a)return-1;if(o>a)return 1}return 0}(t,"1.6.0")>=0?2:1}function Ei(t,e,n){var r=t.viewport,i=new fe(Object.assign({},r,n)),o=Object.assign({},i.getViewportProps(),tr),a=e.onViewportChange||t.onViewportChange||wi;(e.onViewStateChange||t.onViewStateChange||wi)({viewState:o}),a(o)}function Oi(t,e,n,i){return r.createElement("button",{key:t,className:"mapboxgl-ctrl-icon mapboxgl-ctrl-".concat(t),type:"button",title:e,onClick:n},i||r.createElement("span",{className:"mapboxgl-ctrl-icon","aria-hidden":"true"}))}function Mi(t){var e=Fr(t),n=e.context,i=e.containerRef,o=t.className,a=t.showCompass,s=t.showZoom,u=t.zoomInLabel,c=t.zoomOutLabel,l=t.compassLabel,f=(0,r.useMemo)((function(){return function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?bi(Object(n),!0).forEach((function(e){(0,b.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):bi(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({position:"absolute"},t.style)}),[t.style]);return r.createElement("div",{style:f,className:o},r.createElement("div",{className:"mapboxgl-ctrl mapboxgl-ctrl-group",ref:i},s&&Oi("zoom-in",u,(function(){Ei(n,t,{zoom:n.viewport.zoom+1})})),s&&Oi("zoom-out",c,(function(){Ei(n,t,{zoom:n.viewport.zoom-1})})),a&&Oi("compass",l,(function(){Ei(n,t,{bearing:0,pitch:0})}),function(t){var e=(0,r.useMemo)((function(){return t.map?xi(t.map.version):2}),[t.map]),n=t.viewport.bearing,i={transform:"rotate(".concat(-n,"deg)")};return 2===e?r.createElement("span",{className:"mapboxgl-ctrl-icon","aria-hidden":"true",style:i}):r.createElement("span",{className:"mapboxgl-ctrl-compass-arrow",style:i})}(n))))}Mi.defaultProps=Pi;r.memo(Mi);function Ci(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 Ai=Object.assign({},Rr,{className:"",maxWidth:100,unit:"metric"});function Ti(t){var e=Fr(t),n=e.context,i=e.containerRef,o=x((0,r.useState)(null),2),a=o[0],s=o[1];(0,r.useEffect)((function(){if(n.map){var t=new(Qt().ScaleControl);t._map=n.map,t._container=i.current,s(t)}}),[n.map]),a&&(a.options=t,a._onMove());var u=(0,r.useMemo)((function(){return function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ci(Object(n),!0).forEach((function(e){(0,b.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ci(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({position:"absolute"},t.style)}),[t.style]);return r.createElement("div",{style:u,className:t.className},r.createElement("div",{ref:i,className:"mapboxgl-ctrl mapboxgl-ctrl-scale"}))}Ti.defaultProps=Ai;r.memo(Ti);var Ii="undefined"!=typeof window&&window.devicePixelRatio||1;function Si(t){var e=Fr(t),n=e.context,i=e.containerRef,o=x((0,r.useState)(null),2),a=o[0],s=o[1];(0,r.useEffect)((function(){s(i.current.getContext("2d"))}),[]);var u=n.viewport,c=n.isDragging;return a&&(a.save(),a.scale(Ii,Ii),t.redraw({width:u.width,height:u.height,ctx:a,isDragging:c,project:u.project,unproject:u.unproject}),a.restore()),r.createElement("canvas",{ref:i,width:u.width*Ii,height:u.height*Ii,style:{width:"".concat(u.width,"px"),height:"".concat(u.height,"px"),position:"absolute",left:0,top:0}})}Si.defaultProps={captureScroll:!1,captureDrag:!1,captureClick:!1,captureDoubleClick:!1,capturePointerMove:!1};function ki(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 _i(t){var e=Fr(t),n=e.context,i=e.containerRef,o=n.viewport,a=n.isDragging,s=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ki(Object(n),!0).forEach((function(e){(0,b.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ki(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({position:"absolute",left:0,top:0,width:o.width,height:o.height},t.style);return r.createElement("div",{ref:i,style:s},t.redraw({width:o.width,height:o.height,isDragging:a,project:o.project,unproject:o.unproject}))}_i.defaultProps={captureScroll:!1,captureDrag:!1,captureClick:!1,captureDoubleClick:!1,capturePointerMove:!1};function Di(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 ji(t){var e=Fr(t),n=e.context,i=e.containerRef,o=n.viewport,a=n.isDragging,s=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Di(Object(n),!0).forEach((function(e){(0,b.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Di(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({position:"absolute",left:0,top:0},t.style);return r.createElement("svg",{width:o.width,height:o.height,ref:i,style:s},t.redraw({width:o.width,height:o.height,isDragging:a,project:o.project,unproject:o.unproject}))}ji.defaultProps={captureScroll:!1,captureDrag:!1,captureClick:!1,captureDoubleClick:!1,capturePointerMove:!1};Qt()&&Qt().setRTLTextPlugin;var Li=n(3873),Ni=n.n(Li),Ri=i.default.div.withConfig({displayName:"map__HoverInfoContainer",componentId:"sc-sck41t-0"})(["position:absolute;background:"," 80%;font-size:15px;padding:1em;border-radius:20px;box-shadow:0 0 12px #999999;"],a.colors.background);function Ui(t){var e=(0,r.useState)({width:t.mapWidth,height:window.innerHeight,mapboxApiAccessToken:"pk.eyJ1IjoicnVzdG9tLWljaGhhcG9yaWEiLCJhIjoiY2t4Y3YxNWN6M2RpeDJwbXVpdnlsYWducSJ9.14tOov0CCEUjhs99yMRdbA",attributionControl:!1,logo:!1,latitude:20,longitude:-50,zoom:1.5}),n=e[0],i=e[1],o=(0,r.useMemo)((function(){var e=["match",["get","iso_3166_1_alpha_3"]],n=t.dimension,r=Ni().scale(["#00b3ff","#eeeeee","#ff4c00"]).mode("lab");for(var i in p){var o=r(p[i][n]/100).hex();e.push(i,o)}return e.push("rgba(255, 0, 0, 0)"),e}),[t.dimension]),a={id:"data",source:"countries","source-layer":"country_boundaries",beforeId:"admin-0-boundary-bg",type:"fill",paint:{"fill-color":o}},s=(0,r.useState)(null),u=s[0],c=s[1],l=(0,r.useCallback)((function(t){var e=t.features,n=t.srcEvent,r=n.offsetX,i=n.offsetY,o=e&&e[0];c(o?{feature:o,x:r,y:i}:null)}),[]);return r.createElement(xr,Object.assign({},n,{onViewportChange:function(t){return i(t)},mapStyle:"mapbox://styles/rustom-ichhaporia/ckxcv6hbt4oxs14o5tg4za93s",interactiveLayerIds:["data"],onHover:l}),r.createElement(Tr,{id:"countries",type:"vector",url:"mapbox://mapbox.country-boundaries-v1"},r.createElement(Nr,a)),u&&r.createElement(Ri,{style:{left:u.x,top:u.y}},u.feature.properties.name_en,":"," ",p[u.feature.properties.iso_3166_1_alpha_3]?p[u.feature.properties.iso_3166_1_alpha_3][t.dimension]>100?100:p[u.feature.properties.iso_3166_1_alpha_3][t.dimension]:"Unstudied"))}var Vi=function(t,e){return Vi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},Vi(t,e)};function Fi(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}Vi(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var zi=function(){return zi=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},zi.apply(this,arguments)};function Bi(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}Object.create;function Zi(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 Hi(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function Gi(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}Object.create;var qi=function(t){return{isEnabled:function(e){return t.some((function(t){return!!e[t]}))}}},Wi={measureLayout:qi(["layout","layoutId","drag"]),animation:qi(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:qi(["exit"]),drag:qi(["drag","dragControls"]),focus:qi(["whileFocus"]),hover:qi(["whileHover","onHoverStart","onHoverEnd"]),tap:qi(["whileTap","onTap","onTapStart","onTapCancel"]),pan:qi(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:qi(["whileInView","onViewportEnter","onViewportLeave"])};var Yi=(0,r.createContext)({strict:!1}),Xi=Object.keys(Wi),Ki=Xi.length;var $i=(0,r.createContext)({transformPagePoint:function(t){return t},isStatic:!1}),Ji=(0,r.createContext)({});var Qi=(0,r.createContext)(null),to="undefined"!=typeof window,eo=to?r.useLayoutEffect:r.useEffect;function no(t,e,n,i){var o=(0,r.useContext)(Yi),a=(0,r.useContext)(Ji).visualElement,s=(0,r.useContext)(Qi),u=(0,r.useRef)(void 0);i||(i=o.renderer),!u.current&&i&&(u.current=i(t,{visualState:e,parent:a,props:n,presenceId:null==s?void 0:s.id,blockInitialAnimation:!1===(null==s?void 0:s.initial)}));var c=u.current;return eo((function(){null==c||c.syncRender()})),(0,r.useEffect)((function(){var t;null===(t=null==c?void 0:c.animationState)||void 0===t||t.animateChanges()})),eo((function(){return function(){return null==c?void 0:c.notifyUnmount()}}),[]),c}function ro(t){return"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function io(t){return Array.isArray(t)}function oo(t){return"string"==typeof t||io(t)}function ao(t,e,n,r,i){var o;return void 0===r&&(r={}),void 0===i&&(i={}),"function"==typeof e&&(e=e(null!=n?n:t.custom,r,i)),"string"==typeof e&&(e=null===(o=t.variants)||void 0===o?void 0:o[e]),"function"==typeof e&&(e=e(null!=n?n:t.custom,r,i)),e}function so(t,e,n){var r=t.getProps();return ao(r,e,null!=n?n:r.custom,function(t){var e={};return t.forEachValue((function(t,n){return e[n]=t.get()})),e}(t),function(t){var e={};return t.forEachValue((function(t,n){return e[n]=t.getVelocity()})),e}(t))}function uo(t){var e;return"function"==typeof(null===(e=t.animate)||void 0===e?void 0:e.start)||oo(t.initial)||oo(t.animate)||oo(t.whileHover)||oo(t.whileDrag)||oo(t.whileTap)||oo(t.whileFocus)||oo(t.exit)}function co(t){return Boolean(uo(t)||t.variants)}function lo(t){var e=function(t,e){if(uo(t)){var n=t.initial,r=t.animate;return{initial:!1===n||oo(n)?n:void 0,animate:oo(r)?r:void 0}}return!1!==t.inherit?e:{}}(t,(0,r.useContext)(Ji)),n=e.initial,i=e.animate;return(0,r.useMemo)((function(){return{initial:n,animate:i}}),[fo(n),fo(i)])}function fo(t){return Array.isArray(t)?t.join(" "):t}function po(t){var e=(0,r.useRef)(null);return null===e.current&&(e.current=t()),e.current}var ho=1/60*1e3,vo="undefined"!=typeof performance?function(){return performance.now()}:function(){return Date.now()},mo="undefined"!=typeof window?function(t){return window.requestAnimationFrame(t)}:function(t){return setTimeout((function(){return t(vo())}),ho)};var go=!0,yo=!1,bo=!1,wo={delta:0,timestamp:0},Po=["read","update","preRender","render","postRender"],xo=Po.reduce((function(t,e){return t[e]=function(t){var e=[],n=[],r=0,i=!1,o=!1,a=new WeakSet,s={schedule:function(t){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2]&&i,s=o?e:n;return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&a.add(t),-1===s.indexOf(t)&&(s.push(t),o&&i&&(r=e.length)),t},cancel:function(t){var e=n.indexOf(t);-1!==e&&n.splice(e,1),a.delete(t)},process:function(u){if(i)o=!0;else{i=!0;var c=[n,e];if(e=c[0],(n=c[1]).length=0,r=e.length)for(var l=0;l<r;l++){var f=e[l];f(u),a.has(f)&&(s.schedule(f),t())}i=!1,o&&(o=!1,s.process(u))}}};return s}((function(){return yo=!0})),t}),{}),Eo=Po.reduce((function(t,e){var n=xo[e];return t[e]=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return yo||To(),n.schedule(t,e,r)},t}),{}),Oo=Po.reduce((function(t,e){return t[e]=xo[e].cancel,t}),{}),Mo=Po.reduce((function(t,e){return t[e]=function(){return xo[e].process(wo)},t}),{}),Co=function(t){return xo[t].process(wo)},Ao=function t(e){yo=!1,wo.delta=go?ho:Math.max(Math.min(e-wo.timestamp,40),1),wo.timestamp=e,bo=!0,Po.forEach(Co),bo=!1,yo&&(go=!1,mo(t))},To=function(){yo=!0,go=!0,bo||mo(Ao)},Io=function(){return wo},So=Eo,ko=function(t,e,n){return-n*t+n*e+t};function _o(t,e){return e?t*(1e3/e):0}function Do(t,e){-1===t.indexOf(e)&&t.push(e)}function jo(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var Lo=function(){function t(){this.subscriptions=[]}return t.prototype.add=function(t){var e=this;return Do(this.subscriptions,t),function(){return jo(e.subscriptions,t)}},t.prototype.notify=function(t,e,n){var r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](t,e,n);else for(var i=0;i<r;i++){var o=this.subscriptions[i];o&&o(t,e,n)}},t.prototype.getSize=function(){return this.subscriptions.length},t.prototype.clear=function(){this.subscriptions.length=0},t}(),No=function(){function t(t){var e,n=this;this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new Lo,this.velocityUpdateSubscribers=new Lo,this.renderSubscribers=new Lo,this.canTrackVelocity=!1,this.updateAndNotify=function(t,e){void 0===e&&(e=!0),n.prev=n.current,n.current=t;var r=Io(),i=r.delta,o=r.timestamp;n.lastUpdated!==o&&(n.timeDelta=i,n.lastUpdated=o,So.postRender(n.scheduleVelocityCheck)),n.prev!==n.current&&n.updateSubscribers.notify(n.current),n.velocityUpdateSubscribers.getSize()&&n.velocityUpdateSubscribers.notify(n.getVelocity()),e&&n.renderSubscribers.notify(n.current)},this.scheduleVelocityCheck=function(){return So.postRender(n.velocityCheck)},this.velocityCheck=function(t){t.timestamp!==n.lastUpdated&&(n.prev=n.current,n.velocityUpdateSubscribers.notify(n.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=(e=this.current,!isNaN(parseFloat(e)))}return t.prototype.onChange=function(t){return this.updateSubscribers.add(t)},t.prototype.clearListeners=function(){this.updateSubscribers.clear()},t.prototype.onRenderRequest=function(t){return t(this.get()),this.renderSubscribers.add(t)},t.prototype.attach=function(t){this.passiveEffect=t},t.prototype.set=function(t,e){void 0===e&&(e=!0),e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)},t.prototype.get=function(){return this.current},t.prototype.getPrevious=function(){return this.prev},t.prototype.getVelocity=function(){return this.canTrackVelocity?_o(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},t.prototype.start=function(t){var e=this;return this.stop(),new Promise((function(n){e.hasAnimated=!0,e.stopAnimation=t(n)})).then((function(){return e.clearAnimation()}))},t.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},t.prototype.isAnimating=function(){return!!this.stopAnimation},t.prototype.clearAnimation=function(){this.stopAnimation=null},t.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},t}();function Ro(t){return new No(t)}var Uo=function(t){return Boolean(null!==t&&"object"==typeof t&&t.getVelocity)};function Vo(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}Object.create;Object.create;var Fo=function(t,e,n){return Math.min(Math.max(n,t),e)},zo=.001;function Bo(t){var e,n,r=t.duration,i=void 0===r?800:r,o=t.bounce,a=void 0===o?.25:o,s=t.velocity,u=void 0===s?0:s,c=t.mass,l=void 0===c?1:c,f=1-a;f=Fo(.05,1,f),i=Fo(.01,10,i/1e3),f<1?(e=function(t){var e=t*f,n=e*i,r=e-u,o=Zo(t,f),a=Math.exp(-n);return zo-r/o*a},n=function(t){var n=t*f*i,r=n*u+u,o=Math.pow(f,2)*Math.pow(t,2)*i,a=Math.exp(-n),s=Zo(Math.pow(t,2),f);return(-e(t)+zo>0?-1:1)*((r-o)*a)/s}):(e=function(t){return Math.exp(-t*i)*((t-u)*i+1)-.001},n=function(t){return Math.exp(-t*i)*(i*i*(u-t))});var p=function(t,e,n){for(var r=n,i=1;i<12;i++)r-=t(r)/e(r);return r}(e,n,5/i);if(i*=1e3,isNaN(p))return{stiffness:100,damping:10,duration:i};var d=Math.pow(p,2)*l;return{stiffness:d,damping:2*f*Math.sqrt(l*d),duration:i}}function Zo(t,e){return t*Math.sqrt(1-e*e)}var Ho=["duration","bounce"],Go=["stiffness","damping","mass"];function qo(t,e){return e.some((function(e){return void 0!==t[e]}))}function Wo(t){var e=t.from,n=void 0===e?0:e,r=t.to,i=void 0===r?1:r,o=t.restSpeed,a=void 0===o?2:o,s=t.restDelta,u=Vo(t,["from","to","restSpeed","restDelta"]),c={done:!1,value:n},l=function(t){var e=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},t);if(!qo(t,Go)&&qo(t,Ho)){var n=Bo(t);(e=Object.assign(Object.assign(Object.assign({},e),n),{velocity:0,mass:1})).isResolvedFromDuration=!0}return e}(u),f=l.stiffness,p=l.damping,d=l.mass,h=l.velocity,v=l.duration,m=l.isResolvedFromDuration,g=Yo,y=Yo;function b(){var t=h?-h/1e3:0,e=i-n,r=p/(2*Math.sqrt(f*d)),o=Math.sqrt(f/d)/1e3;if(void 0===s&&(s=Math.min(Math.abs(i-n)/100,.4)),r<1){var a=Zo(o,r);g=function(n){var s=Math.exp(-r*o*n);return i-s*((t+r*o*e)/a*Math.sin(a*n)+e*Math.cos(a*n))},y=function(n){var i=Math.exp(-r*o*n);return r*o*i*(Math.sin(a*n)*(t+r*o*e)/a+e*Math.cos(a*n))-i*(Math.cos(a*n)*(t+r*o*e)-a*e*Math.sin(a*n))}}else if(1===r)g=function(n){return i-Math.exp(-o*n)*(e+(t+o*e)*n)};else{var u=o*Math.sqrt(r*r-1);g=function(n){var a=Math.exp(-r*o*n),s=Math.min(u*n,300);return i-a*((t+r*o*e)*Math.sinh(s)+u*e*Math.cosh(s))/u}}}return b(),{next:function(t){var e=g(t);if(m)c.done=t>=v;else{var n=1e3*y(t),r=Math.abs(n)<=a,o=Math.abs(i-e)<=s;c.done=r&&o}return c.value=c.done?i:e,c},flipTarget:function(){h=-h;var t=[i,n];n=t[0],i=t[1],b()}}}Wo.needsInterpolation=function(t,e){return"string"==typeof t||"string"==typeof e};var Yo=function(t){return 0},Xo=function(t,e,n){var r=e-t;return 0===r?1:(n-t)/r},Ko=function(t,e){return function(n){return Math.max(Math.min(n,e),t)}},$o=function(t){return t%1?Number(t.toFixed(5)):t},Jo=/(-)?([\d]*\.?[\d])+/g,Qo=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,ta=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function ea(t){return"string"==typeof t}var na={test:function(t){return"number"==typeof t},parse:parseFloat,transform:function(t){return t}},ra=Object.assign(Object.assign({},na),{transform:Ko(0,1)}),ia=Object.assign(Object.assign({},na),{default:1}),oa=function(t,e){return function(n){return Boolean(ea(n)&&ta.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e))}},aa=function(t,e,n){return function(r){var i;if(!ea(r))return r;var o=x(r.match(Jo),4),a=o[0],s=o[1],u=o[2],c=o[3];return i={},(0,b.Z)(i,t,parseFloat(a)),(0,b.Z)(i,e,parseFloat(s)),(0,b.Z)(i,n,parseFloat(u)),(0,b.Z)(i,"alpha",void 0!==c?parseFloat(c):1),i}},sa=Ko(0,255),ua=Object.assign(Object.assign({},na),{transform:function(t){return Math.round(sa(t))}}),ca={test:oa("rgb","red"),parse:aa("red","green","blue"),transform:function(t){var e=t.red,n=t.green,r=t.blue,i=t.alpha,o=void 0===i?1:i;return"rgba("+ua.transform(e)+", "+ua.transform(n)+", "+ua.transform(r)+", "+$o(ra.transform(o))+")"}};var la={test:oa("#"),parse:function(t){var e="",n="",r="",i="";return t.length>5?(e=t.substr(1,2),n=t.substr(3,2),r=t.substr(5,2),i=t.substr(7,2)):(e=t.substr(1,1),n=t.substr(2,1),r=t.substr(3,1),i=t.substr(4,1),e+=e,n+=n,r+=r,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:ca.transform},fa=function(t){return{test:function(e){return ea(e)&&e.endsWith(t)&&1===e.split(" ").length},parse:parseFloat,transform:function(e){return"".concat(e).concat(t)}}},pa=fa("deg"),da=fa("%"),ha=fa("px"),va=fa("vh"),ma=fa("vw"),ga=Object.assign(Object.assign({},da),{parse:function(t){return da.parse(t)/100},transform:function(t){return da.transform(100*t)}}),ya={test:oa("hsl","hue"),parse:aa("hue","saturation","lightness"),transform:function(t){var e=t.hue,n=t.saturation,r=t.lightness,i=t.alpha,o=void 0===i?1:i;return"hsla("+Math.round(e)+", "+da.transform($o(n))+", "+da.transform($o(r))+", "+$o(ra.transform(o))+")"}};function ba(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function wa(t){var e=t.hue,n=t.saturation,r=t.lightness,i=t.alpha;e/=360,r/=100;var o=0,a=0,s=0;if(n/=100){var u=r<.5?r*(1+n):r+n-r*n,c=2*r-u;o=ba(c,u,e+1/3),a=ba(c,u,e),s=ba(c,u,e-1/3)}else o=a=s=r;return{red:Math.round(255*o),green:Math.round(255*a),blue:Math.round(255*s),alpha:i}}var Pa=function(t,e,n){var r=t*t,i=e*e;return Math.sqrt(Math.max(0,n*(i-r)+r))},xa=[la,ca,ya],Ea=function(t){return xa.find((function(e){return e.test(t)}))},Oa=function(t){return"'".concat(t,"' is not an animatable color. Use the equivalent color code instead.")},Ma=function(t,e){var n=Ea(t),r=Ea(e);Oa(t),Oa(e);var i=n.parse(t),o=r.parse(e);n===ya&&(i=wa(i),n=ca),r===ya&&(o=wa(o),r=ca);var a=Object.assign({},i);return function(t){for(var e in a)"alpha"!==e&&(a[e]=Pa(i[e],o[e],t));return a.alpha=ko(i.alpha,o.alpha,t),n.transform(a)}},Ca={test:function(t){return ca.test(t)||la.test(t)||ya.test(t)},parse:function(t){return ca.test(t)?ca.parse(t):ya.test(t)?ya.parse(t):la.parse(t)},transform:function(t){return ea(t)?t:t.hasOwnProperty("red")?ca.transform(t):ya.transform(t)}},Aa="${c}",Ta="${n}";function Ia(t){"number"==typeof t&&(t="".concat(t));var e=[],n=0,r=t.match(Qo);r&&(n=r.length,t=t.replace(Qo,Aa),e.push.apply(e,(0,y.Z)(r.map(Ca.parse))));var i=t.match(Jo);return i&&(t=t.replace(Jo,Ta),e.push.apply(e,(0,y.Z)(i.map(na.parse)))),{values:e,numColors:n,tokenised:t}}function Sa(t){return Ia(t).values}function ka(t){var e=Ia(t),n=e.values,r=e.numColors,i=e.tokenised,o=n.length;return function(t){for(var e=i,n=0;n<o;n++)e=e.replace(n<r?Aa:Ta,n<r?Ca.transform(t[n]):$o(t[n]));return e}}var _a=function(t){return"number"==typeof t?0:t};var Da={test:function(t){var e,n,r,i;return isNaN(t)&&ea(t)&&(null!==(n=null===(e=t.match(Jo))||void 0===e?void 0:e.length)&&void 0!==n?n:0)+(null!==(i=null===(r=t.match(Qo))||void 0===r?void 0:r.length)&&void 0!==i?i:0)>0},parse:Sa,createTransformer:ka,getAnimatableNone:function(t){var e=Sa(t);return ka(t)(e.map(_a))}},ja=function(t){return"number"==typeof t},La=function(t,e){return function(n){return e(t(n))}},Na=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.reduce(La)};function Ra(t,e){return ja(t)?function(n){return ko(t,e,n)}:Ca.test(t)?Ma(t,e):za(t,e)}var Ua=function(t,e){var n=(0,y.Z)(t),r=n.length,i=t.map((function(t,n){return Ra(t,e[n])}));return function(t){for(var e=0;e<r;e++)n[e]=i[e](t);return n}},Va=function(t,e){var n=Object.assign(Object.assign({},t),e),r={};for(var i in n)void 0!==t[i]&&void 0!==e[i]&&(r[i]=Ra(t[i],e[i]));return function(t){for(var e in r)n[e]=r[e](t);return n}};function Fa(t){for(var e=Da.parse(t),n=e.length,r=0,i=0,o=0,a=0;a<n;a++)r||"number"==typeof e[a]?r++:void 0!==e[a].hue?o++:i++;return{parsed:e,numNumbers:r,numRGB:i,numHSL:o}}var za=function(t,e){var n=Da.createTransformer(e),r=Fa(t),i=Fa(e);return r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers?Na(Ua(r.parsed,i.parsed),n):("Complex values '".concat(t,"' and '").concat(e,"' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition."),function(n){return"".concat(n>0?e:t)})},Ba=function(t,e){return function(n){return ko(t,e,n)}};function Za(t,e,n){for(var r,i=[],o=n||("number"==typeof(r=t[0])?Ba:"string"==typeof r?Ca.test(r)?Ma:za:Array.isArray(r)?Ua:"object"==typeof r?Va:void 0),a=t.length-1,s=0;s<a;s++){var u=o(t[s],t[s+1]);if(e){var c=Array.isArray(e)?e[s]:e;u=Na(c,u)}i.push(u)}return i}function Ha(t,e){var n=x(t,2),r=n[0],i=n[1],o=x(e,1)[0];return function(t){return o(Xo(r,i,t))}}function Ga(t,e){var n=t.length,r=n-1;return function(i){var o=0,a=!1;if(i<=t[0]?a=!0:i>=t[r]&&(o=r-1,a=!0),!a){for(var s=1;s<n&&!(t[s]>i||s===r);s++);o=s-1}var u=Xo(t[o],t[o+1],i);return e[o](u)}}function qa(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.clamp,i=void 0===r||r,o=n.ease,a=n.mixer,s=t.length;e.length,!o||!Array.isArray(o)||o.length,t[0]>t[s-1]&&(t=[].concat(t),e=[].concat(e),t.reverse(),e.reverse());var u=Za(e,o,a),c=2===s?Ha(t,u):Ga(t,u);return i?function(e){return c(Fo(t[0],t[s-1],e))}:c}var Wa,Ya=function(t){return function(e){return 1-t(1-e)}},Xa=function(t){return function(e){return e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2}},Ka=function(t){return function(e){return e*e*((t+1)*e-t)}},$a=function(t){return t},Ja=(Wa=2,function(t){return Math.pow(t,Wa)}),Qa=Ya(Ja),ts=Xa(Ja),es=function(t){return 1-Math.sin(Math.acos(t))},ns=Ya(es),rs=Xa(ns),is=Ka(1.525),os=Ya(is),as=Xa(is),ss=function(t){var e=Ka(t);return function(t){return(t*=2)<1?.5*e(t):.5*(2-Math.pow(2,-10*(t-1)))}}(1.525),us=function(t){if(1===t||0===t)return t;var e=t*t;return t<.36363636363636365?7.5625*e:t<.7272727272727273?9.075*e-9.9*t+3.4:t<.9?12.066481994459833*e-19.63545706371191*t+8.898060941828255:10.8*t*t-20.52*t+10.72},cs=Ya(us);function ls(t,e){return t.map((function(){return e||ts})).splice(0,t.length-1)}function fs(t){var e=t.from,n=void 0===e?0:e,r=t.to,i=void 0===r?1:r,o=t.ease,a=t.offset,s=t.duration,u=void 0===s?300:s,c={done:!1,value:n},l=Array.isArray(i)?i:[n,i],f=function(t,e){return t.map((function(t){return t*e}))}(a&&a.length===l.length?a:function(t){var e=t.length;return t.map((function(t,n){return 0!==n?n/(e-1):0}))}(l),u);function p(){return qa(f,l,{ease:Array.isArray(o)?o:ls(l,o)})}var d=p();return{next:function(t){return c.value=d(t),c.done=t>=u,c},flipTarget:function(){l.reverse(),d=p()}}}var ps={keyframes:fs,spring:Wo,decay:function(t){var e=t.velocity,n=void 0===e?0:e,r=t.from,i=void 0===r?0:r,o=t.power,a=void 0===o?.8:o,s=t.timeConstant,u=void 0===s?350:s,c=t.restDelta,l=void 0===c?.5:c,f=t.modifyTarget,p={done:!1,value:i},d=a*n,h=i+d,v=void 0===f?h:f(h);return v!==h&&(d=v-i),{next:function(t){var e=-d*Math.exp(-t/u);return p.done=!(e>l||e<-l),p.value=p.done?v:v+e,p},flipTarget:function(){}}}};function ds(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return t-e-n}var hs=function(t){var e=function(e){var n=e.delta;return t(n)};return{start:function(){return So.update(e,!0)},stop:function(){return Oo.update(e)}}};function vs(t){var e,n,r,i,o,a=t.from,s=t.autoplay,u=void 0===s||s,c=t.driver,l=void 0===c?hs:c,f=t.elapsed,p=void 0===f?0:f,d=t.repeat,h=void 0===d?0:d,v=t.repeatType,m=void 0===v?"loop":v,g=t.repeatDelay,y=void 0===g?0:g,b=t.onPlay,w=t.onStop,P=t.onComplete,x=t.onRepeat,E=t.onUpdate,O=Vo(t,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]),M=O.to,C=0,A=O.duration,T=!1,I=!0,S=function(t){if(Array.isArray(t.to))return fs;if(ps[t.type])return ps[t.type];var e=new Set(Object.keys(t));return e.has("ease")||e.has("duration")&&!e.has("dampingRatio")?fs:e.has("dampingRatio")||e.has("stiffness")||e.has("mass")||e.has("damping")||e.has("restSpeed")||e.has("restDelta")?Wo:fs}(O);(null===(n=(e=S).needsInterpolation)||void 0===n?void 0:n.call(e,a,M))&&(o=qa([0,100],[a,M],{clamp:!1}),a=0,M=100);var k=S(Object.assign(Object.assign({},O),{from:a,to:M}));function _(){C++,"reverse"===m?p=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return arguments.length>3&&void 0!==arguments[3]&&!arguments[3]?e-(t-e)+n:ds(e+-t,e,n)}(p,A,y,I=C%2==0):(p=ds(p,A,y),"mirror"===m&&k.flipTarget()),T=!1,x&&x()}function D(t){if(I||(t=-t),p+=t,!T){var e=k.next(Math.max(0,p));i=e.value,o&&(i=o(i)),T=I?e.done:p<=0}null==E||E(i),T&&(0===C&&(null!=A||(A=p)),C<h?function(t,e,n,r){return r?t>=e+n:t<=-n}(p,A,y,I)&&_():(r.stop(),P&&P()))}return u&&(null==b||b(),(r=l(D)).start()),{stop:function(){null==w||w(),r.stop()}}}var ms=function(t){return 1e3*t},gs=function(t,e){return 1-3*e+3*t},ys=function(t,e){return 3*e-6*t},bs=function(t){return 3*t},ws=function(t,e,n){return((gs(e,n)*t+ys(e,n))*t+bs(e))*t},Ps=function(t,e,n){return 3*gs(e,n)*t*t+2*ys(e,n)*t+bs(e)};var xs=.1;function Es(t,e,n,r){if(t===e&&n===r)return $a;for(var i=new Float32Array(11),o=0;o<11;++o)i[o]=ws(o*xs,t,n);function a(e){for(var r=0,o=1;10!==o&&i[o]<=e;++o)r+=xs;--o;var a=r+(e-i[o])/(i[o+1]-i[o])*xs,s=Ps(a,t,n);return s>=.001?function(t,e,n,r){for(var i=0;i<8;++i){var o=Ps(e,n,r);if(0===o)return e;e-=(ws(e,n,r)-t)/o}return e}(e,a,t,n):0===s?a:function(t,e,n,r,i){var o,a,s=0;do{(o=ws(a=e+(n-e)/2,r,i)-t)>0?n=a:e=a}while(Math.abs(o)>1e-7&&++s<10);return a}(e,r,r+xs,t,n)}return function(t){return 0===t||1===t?t:ws(a(t),e,r)}}var Os={linear:$a,easeIn:Ja,easeInOut:ts,easeOut:Qa,circIn:es,circInOut:rs,circOut:ns,backIn:is,backInOut:as,backOut:os,anticipate:ss,bounceIn:cs,bounceInOut:function(t){return t<.5?.5*(1-us(1-2*t)):.5*us(2*t-1)+.5},bounceOut:us},Ms=function(t){if(Array.isArray(t)){t.length;var e=Hi(t,4);return Es(e[0],e[1],e[2],e[3])}return"string"==typeof t?("Invalid easing type '".concat(t,"'"),Os[t]):t},Cs=function(t,e){return"zIndex"!==t&&(!("number"!=typeof e&&!Array.isArray(e))||!("string"!=typeof e||!Da.test(e)||e.startsWith("url(")))},As=function(t){return Array.isArray(t)},Ts=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},Is=function(t){return{type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}},Ss=function(){return{type:"keyframes",ease:"linear",duration:.3}},ks=function(t){return{type:"keyframes",duration:.8,values:t}},_s={x:Ts,y:Ts,z:Ts,rotate:Ts,rotateX:Ts,rotateY:Ts,rotateZ:Ts,scaleX:Is,scaleY:Is,scale:Is,opacity:Ss,backgroundColor:Ss,color:Ss,default:Is},Ds=new Set(["brightness","contrast","saturate","opacity"]);function js(t){var e=x(t.slice(0,-1).split("("),2),n=e[0],r=e[1];if("drop-shadow"===n)return t;var i=x(r.match(Jo)||[],1)[0];if(!i)return t;var o=r.replace(i,""),a=Ds.has(n)?1:0;return i!==r&&(a*=100),n+"("+a+o+")"}var Ls=/([a-z-]*)\(.*?\)/g,Ns=Object.assign(Object.assign({},Da),{getAnimatableNone:function(t){var e=t.match(Ls);return e?e.map(js).join(" "):t}}),Rs=zi(zi({},na),{transform:Math.round}),Us={borderWidth:ha,borderTopWidth:ha,borderRightWidth:ha,borderBottomWidth:ha,borderLeftWidth:ha,borderRadius:ha,radius:ha,borderTopLeftRadius:ha,borderTopRightRadius:ha,borderBottomRightRadius:ha,borderBottomLeftRadius:ha,width:ha,maxWidth:ha,height:ha,maxHeight:ha,size:ha,top:ha,right:ha,bottom:ha,left:ha,padding:ha,paddingTop:ha,paddingRight:ha,paddingBottom:ha,paddingLeft:ha,margin:ha,marginTop:ha,marginRight:ha,marginBottom:ha,marginLeft:ha,rotate:pa,rotateX:pa,rotateY:pa,rotateZ:pa,scale:ia,scaleX:ia,scaleY:ia,scaleZ:ia,skew:pa,skewX:pa,skewY:pa,distance:ha,translateX:ha,translateY:ha,translateZ:ha,x:ha,y:ha,z:ha,perspective:ha,transformPerspective:ha,opacity:ra,originX:ga,originY:ga,originZ:ha,zIndex:Rs,fillOpacity:ra,strokeOpacity:ra,numOctaves:Rs},Vs=zi(zi({},Us),{color:Ca,backgroundColor:Ca,outlineColor:Ca,fill:Ca,stroke:Ca,borderColor:Ca,borderTopColor:Ca,borderRightColor:Ca,borderBottomColor:Ca,borderLeftColor:Ca,filter:Ns,WebkitFilter:Ns}),Fs=function(t){return Vs[t]};function zs(t,e){var n,r=Fs(t);return r!==Ns&&(r=Da),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,e)}var Bs=!1,Zs=function(t){return As(t)?t[t.length-1]||0:t};function Hs(t){var e=t.ease,n=t.times,r=t.yoyo,i=t.flip,o=t.loop,a=Bi(t,["ease","times","yoyo","flip","loop"]),s=zi({},a);return n&&(s.offset=n),a.duration&&(s.duration=ms(a.duration)),a.repeatDelay&&(s.repeatDelay=ms(a.repeatDelay)),e&&(s.ease=function(t){return Array.isArray(t)&&"number"!=typeof t[0]}(e)?e.map(Ms):Ms(e)),"tween"===a.type&&(s.type="keyframes"),(r||o||i)&&(!0,r?s.repeatType="reverse":o?s.repeatType="loop":i&&(s.repeatType="mirror"),s.repeat=o||r||i||a.repeat),"spring"!==a.type&&(s.type="keyframes"),s}function Gs(t,e,n){var r,i,o,a;return Array.isArray(e.to)&&(null!==(r=t.duration)&&void 0!==r||(t.duration=.8)),function(t){Array.isArray(t.to)&&null===t.to[0]&&(t.to=Gi([],Hi(t.to),!1),t.to[0]=t.from)}(e),function(t){t.when,t.delay,t.delayChildren,t.staggerChildren,t.staggerDirection,t.repeat,t.repeatType,t.repeatDelay,t.from;var e=Bi(t,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(e).length}(t)||(t=zi(zi({},t),(i=n,o=e.to,a=As(o)?ks:_s[i]||_s.default,zi({to:o},a(o))))),zi(zi({},e),Hs(t))}function qs(t,e,n,r,i){var o,a=Xs(r,t),s=null!==(o=a.from)&&void 0!==o?o:e.get(),u=Cs(t,n);"none"===s&&u&&"string"==typeof n?s=zs(t,n):Ws(s)&&"string"==typeof n?s=Ys(n):!Array.isArray(n)&&Ws(n)&&"string"==typeof s&&(n=Ys(s));var c=Cs(t,s);return"You are trying to animate ".concat(t,' from "').concat(s,'" to "').concat(n,'". ').concat(s," is not an animatable value - to enable this animation set ").concat(s," to a value animatable to ").concat(n," via the `style` property."),c&&u&&!1!==a.type?function(){var r={from:s,to:n,velocity:e.getVelocity(),onComplete:i,onUpdate:function(t){return e.set(t)}};return"inertia"===a.type||"decay"===a.type?function(t){var e,n=t.from,r=void 0===n?0:n,i=t.velocity,o=void 0===i?0:i,a=t.min,s=t.max,u=t.power,c=void 0===u?.8:u,l=t.timeConstant,f=void 0===l?750:l,p=t.bounceStiffness,d=void 0===p?500:p,h=t.bounceDamping,v=void 0===h?10:h,m=t.restDelta,g=void 0===m?1:m,y=t.modifyTarget,b=t.driver,w=t.onUpdate,P=t.onComplete,x=t.onStop;function E(t){return void 0!==a&&t<a||void 0!==s&&t>s}function O(t){return void 0===a?s:void 0===s||Math.abs(a-t)<Math.abs(s-t)?a:s}function M(t){null==e||e.stop(),e=vs(Object.assign(Object.assign({},t),{driver:b,onUpdate:function(e){var n;null==w||w(e),null===(n=t.onUpdate)||void 0===n||n.call(t,e)},onComplete:P,onStop:x}))}function C(t){M(Object.assign({type:"spring",stiffness:d,damping:v,restDelta:g},t))}if(E(r))C({from:r,velocity:o,to:O(r)});else{var A=c*o+r;void 0!==y&&(A=y(A));var T,I,S=O(A),k=S===a?-1:1;M({type:"decay",from:r,velocity:o,timeConstant:f,power:c,restDelta:g,modifyTarget:y,onUpdate:E(A)?function(t){T=I,I=t,o=_o(t-T,Io().delta),(1===k&&t>S||-1===k&&t<S)&&C({from:t,to:S,velocity:o})}:void 0})}return{stop:function(){return null==e?void 0:e.stop()}}}(zi(zi({},r),a)):vs(zi(zi({},Gs(a,r,t)),{onUpdate:function(t){var e;r.onUpdate(t),null===(e=a.onUpdate)||void 0===e||e.call(a,t)},onComplete:function(){var t;r.onComplete(),null===(t=a.onComplete)||void 0===t||t.call(a)}}))}:function(){var t,r,o=Zs(n);return e.set(o),i(),null===(t=null==a?void 0:a.onUpdate)||void 0===t||t.call(a,o),null===(r=null==a?void 0:a.onComplete)||void 0===r||r.call(a),{stop:function(){}}}}function Ws(t){return 0===t||"string"==typeof t&&0===parseFloat(t)&&-1===t.indexOf(" ")}function Ys(t){return"number"==typeof t?0:zs("",t)}function Xs(t,e){return t[e]||t.default||t}function Ks(t,e,n,r){return void 0===r&&(r={}),Bs&&(r={type:!1}),e.start((function(i){var o,a,s=qs(t,e,n,r,i),u=function(t,e){var n,r;return null!==(r=null!==(n=(Xs(t,e)||{}).delay)&&void 0!==n?n:t.delay)&&void 0!==r?r:0}(r,t),c=function(){return a=s()};return u?o=setTimeout(c,ms(u)):c(),function(){clearTimeout(o),null==a||a.stop()}}))}var $s=["TopLeft","TopRight","BottomLeft","BottomRight"],Js=$s.length;function Qs(t,e){var n;return null!==(n=t[e])&&void 0!==n?n:t.borderRadius}var tu=nu(0,.5,ns),eu=nu(.5,.95,$a);function nu(t,e,n){return function(r){return r<t?0:r>e?1:n(Xo(t,e,r))}}function ru(t,e){t.min=e.min,t.max=e.max}function iu(t,e){ru(t.x,e.x),ru(t.y,e.y)}function ou(t){return void 0===t||1===t}function au(t){var e=t.scale,n=t.scaleX,r=t.scaleY;return!ou(e)||!ou(n)||!ou(r)}function su(t){return au(t)||uu(t.x)||uu(t.y)||t.z||t.rotate||t.rotateX||t.rotateY}function uu(t){return t&&"0%"!==t}function cu(t,e,n){return n+e*(t-n)}function lu(t,e,n,r,i){return void 0!==i&&(t=cu(t,i,r)),cu(t,n,r)+e}function fu(t,e,n,r,i){void 0===e&&(e=0),void 0===n&&(n=1),t.min=lu(t.min,e,n,r,i),t.max=lu(t.max,e,n,r,i)}function pu(t,e){var n=e.x,r=e.y;fu(t.x,n.translate,n.scale,n.originPoint),fu(t.y,r.translate,r.scale,r.originPoint)}function du(t,e){t.min=t.min+e,t.max=t.max+e}function hu(t,e,n){var r=Hi(n,3),i=r[0],o=r[1],a=r[2],s=void 0!==e[a]?e[a]:.5,u=ko(t.min,t.max,s);fu(t,e[i],e[o],u,e.scale)}var vu=["x","scaleX","originX"],mu=["y","scaleY","originY"];function gu(t,e){hu(t.x,e,vu),hu(t.y,e,mu)}var yu=function(t){return t.hasOwnProperty("x")&&t.hasOwnProperty("y")},bu=function(t){return yu(t)&&t.hasOwnProperty("z")},wu=function(t,e){return Math.abs(t-e)};function Pu(t,e){if(ja(t)&&ja(e))return wu(t,e);if(yu(t)&&yu(e)){var n=wu(t.x,e.x),r=wu(t.y,e.y),i=bu(t)&&bu(e)?wu(t.z,e.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(i,2))}}function xu(t){return t.max-t.min}function Eu(t,e,n){return void 0===e&&(e=0),void 0===n&&(n=.01),Pu(t,e)<n}function Ou(t,e,n,r){void 0===r&&(r=.5),t.origin=r,t.originPoint=ko(e.min,e.max,t.origin),t.scale=xu(n)/xu(e),(Eu(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=ko(n.min,n.max,t.origin)-t.originPoint,(Eu(t.translate)||isNaN(t.translate))&&(t.translate=0)}function Mu(t,e,n,r){Ou(t.x,e.x,n.x,null==r?void 0:r.originX),Ou(t.y,e.y,n.y,null==r?void 0:r.originY)}function Cu(t,e,n){t.min=n.min+e.min,t.max=t.min+xu(e)}function Au(t,e,n){t.min=e.min-n.min,t.max=t.min+xu(e)}function Tu(t,e,n){Au(t.x,e.x,n.x),Au(t.y,e.y,n.y)}function Iu(t,e,n,r,i){return t=cu(t-=e,1/n,r),void 0!==i&&(t=cu(t,1/i,r)),t}function Su(t,e,n,r,i){var o=Hi(n,3),a=o[0],s=o[1],u=o[2];!function(t,e,n,r,i,o,a){if(void 0===e&&(e=0),void 0===n&&(n=1),void 0===r&&(r=.5),void 0===o&&(o=t),void 0===a&&(a=t),da.test(e)&&(e=parseFloat(e),e=ko(a.min,a.max,e/100)-a.min),"number"==typeof e){var s=ko(o.min,o.max,r);t===o&&(s-=e),t.min=Iu(t.min,e,n,s,i),t.max=Iu(t.max,e,n,s,i)}}(t,e[a],e[s],e[u],e.scale,r,i)}var ku=["x","scaleX","originX"],_u=["y","scaleY","originY"];function Du(t,e,n,r){Su(t.x,e,ku,null==n?void 0:n.x,null==r?void 0:r.x),Su(t.y,e,_u,null==n?void 0:n.y,null==r?void 0:r.y)}function ju(t){return 0===t.translate&&1===t.scale}function Lu(t){return ju(t.x)&&ju(t.y)}function Nu(t,e){return t.x.min===e.x.min&&t.x.max===e.x.max&&t.y.min===e.y.min&&t.y.max===e.y.max}var Ru=function(){function t(){this.members=[]}return t.prototype.add=function(t){Do(this.members,t),t.scheduleRender()},t.prototype.remove=function(t){if(jo(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){var e=this.members[this.members.length-1];e&&this.promote(e)}},t.prototype.relegate=function(t){var e,n=this.members.findIndex((function(e){return t===e}));if(0===n)return!1;for(var r=n;r>=0;r--){var i=this.members[r];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)},t.prototype.promote=function(t,e){var n,r=this.lead;t!==r&&(this.prevLead=r,this.lead=t,t.show(),r&&(r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,e&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues,t.snapshot.isShared=!0),(null===(n=t.root)||void 0===n?void 0:n.isUpdating)&&(t.isLayoutDirty=!0),!1===t.options.crossfade&&r.hide()))},t.prototype.exitAnimationComplete=function(){this.members.forEach((function(t){var e,n,r,i,o;null===(n=(e=t.options).onExitComplete)||void 0===n||n.call(e),null===(o=null===(r=t.resumingFrom)||void 0===r?void 0:(i=r.options).onExitComplete)||void 0===o||o.call(i)}))},t.prototype.scheduleRender=function(){this.members.forEach((function(t){t.instance&&t.scheduleRender(!1)}))},t.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},t}(),Uu={};function Vu(t,e,n){var r=t.x.translate/e.x,i=t.y.translate/e.y,o="translate3d(".concat(r,"px, ").concat(i,"px, 0) ");if(n){var a=n.rotate,s=n.rotateX,u=n.rotateY;a&&(o+="rotate(".concat(a,"deg) ")),s&&(o+="rotateX(".concat(s,"deg) ")),u&&(o+="rotateY(".concat(u,"deg) "))}return"translate3d(0px, 0px, 0) scale(1, 1)"===(o+="scale(".concat(t.x.scale,", ").concat(t.y.scale,")"))?"none":o}function Fu(t){return[t("x"),t("y")]}var zu=["","X","Y","Z"],Bu=["transformPerspective","x","y","z"];function Zu(t,e){return Bu.indexOf(t)-Bu.indexOf(e)}["translate","scale","rotate","skew"].forEach((function(t){return zu.forEach((function(e){return Bu.push(t+e)}))}));var Hu=new Set(Bu);function Gu(t){return Hu.has(t)}var qu=new Set(["originX","originY","originZ"]);function Wu(t){return qu.has(t)}var Yu=function(t,e){return t.depth-e.depth},Xu=function(){function t(){this.children=[],this.isDirty=!1}return t.prototype.add=function(t){Do(this.children,t),this.isDirty=!0},t.prototype.remove=function(t){jo(this.children,t),this.isDirty=!0},t.prototype.forEach=function(t){this.isDirty&&this.children.sort(Yu),this.isDirty=!1,this.children.forEach(t)},t}();function Ku(t){var e,n=Uo(t)?t.get():t;return e=n,Boolean(e&&"object"==typeof e&&e.mix&&e.toValue)?n.toValue():n}var $u={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Ju(t){var e=t.attachResizeListener,n=t.defaultParent,r=t.measureScroll,i=t.resetTransform;return function(){function t(t,e,r){var i=this;void 0===e&&(e={}),void 0===r&&(r=null==n?void 0:n()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){i.isUpdating&&(i.isUpdating=!1,i.clearAllSnapshots())},this.updateProjection=function(){i.nodes.forEach(oc),i.nodes.forEach(ac)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=t,this.latestValues=e,this.root=r?r.root||r:this,this.path=r?Gi(Gi([],Hi(r.path),!1),[r],!1):[],this.parent=r,this.depth=r?r.depth+1:0,t&&this.root.registerPotentialNode(t,this);for(var o=0;o<this.path.length;o++)this.path[o].shouldResetTransform=!0;this.root===this&&(this.nodes=new Xu)}return t.prototype.addEventListener=function(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new Lo),this.eventHandlers.get(t).add(e)},t.prototype.notifyListeners=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=this.eventHandlers.get(t);null==r||r.notify.apply(r,Gi([],Hi(e),!1))},t.prototype.hasListeners=function(t){return this.eventHandlers.has(t)},t.prototype.registerPotentialNode=function(t,e){this.potentialNodes.set(t,e)},t.prototype.mount=function(t,n){var r,i=this;if(void 0===n&&(n=!1),!this.instance){this.isSVG=t instanceof SVGElement&&"svg"!==t.tagName,this.instance=t;var o=this.options,a=o.layoutId,s=o.layout,u=o.visualElement;if(u&&!u.getInstance()&&u.mount(t),this.root.nodes.add(this),null===(r=this.parent)||void 0===r||r.children.add(this),this.id&&this.root.potentialNodes.delete(this.id),n&&(s||a)&&(this.isLayoutDirty=!0),e){var c,l=function(){return i.root.updateBlockedByResize=!1};e(t,(function(){i.root.updateBlockedByResize=!0,clearTimeout(c),c=setTimeout(l,250),$u.hasAnimatedSinceResize&&($u.hasAnimatedSinceResize=!1,i.nodes.forEach(ic))}))}a&&this.root.registerSharedNode(a,this),!1!==this.options.animate&&u&&(a||s)&&this.addEventListener("didUpdate",(function(t){var e,n,r,o,a,s=t.delta,c=t.hasLayoutChanged,l=t.hasRelativeTargetChanged,f=t.layout;if(i.isTreeAnimationBlocked())return i.target=void 0,void(i.relativeTarget=void 0);var p=null!==(n=null!==(e=i.options.transition)&&void 0!==e?e:u.getDefaultTransition())&&void 0!==n?n:pc,d=u.getProps().onLayoutAnimationComplete,h=!i.targetLayout||!Nu(i.targetLayout,f)||l,v=!c&&l;(null===(r=i.resumeFrom)||void 0===r?void 0:r.instance)||v||c&&(h||!i.currentAnimation)?(i.resumeFrom&&(i.resumingFrom=i.resumeFrom,i.resumingFrom.resumingFrom=void 0),i.setAnimationOrigin(s,v),i.startAnimation(zi(zi({},Xs(p,"layout")),{onComplete:d}))):i.isLead()&&(null===(a=(o=i.options).onExitComplete)||void 0===a||a.call(o)),i.targetLayout=f}))}},t.prototype.unmount=function(){var t,e;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),null===(t=this.getStack())||void 0===t||t.remove(this),null===(e=this.parent)||void 0===e||e.children.delete(this),this.instance=void 0,Oo.preRender(this.updateProjection)},t.prototype.blockUpdate=function(){this.updateManuallyBlocked=!0},t.prototype.unblockUpdate=function(){this.updateManuallyBlocked=!1},t.prototype.isUpdateBlocked=function(){return this.updateManuallyBlocked||this.updateBlockedByResize},t.prototype.isTreeAnimationBlocked=function(){var t;return this.isAnimationBlocked||(null===(t=this.parent)||void 0===t?void 0:t.isTreeAnimationBlocked())||!1},t.prototype.startUpdate=function(){var t;this.isUpdateBlocked()||(this.isUpdating=!0,null===(t=this.nodes)||void 0===t||t.forEach(sc))},t.prototype.willUpdate=function(t){var e,n,r;if(void 0===t&&(t=!0),this.root.isUpdateBlocked())null===(n=(e=this.options).onExitComplete)||void 0===n||n.call(e);else if(!this.root.isUpdating&&this.root.startUpdate(),!this.isLayoutDirty){this.isLayoutDirty=!0;for(var i=0;i<this.path.length;i++){var o=this.path[i];o.shouldResetTransform=!0,o.updateScroll()}var a=this.options,s=a.layoutId,u=a.layout;if(void 0!==s||u){var c=null===(r=this.options.visualElement)||void 0===r?void 0:r.getProps().transformTemplate;this.prevTransformTemplateValue=null==c?void 0:c(this.latestValues,""),this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}}},t.prototype.didUpdate=function(){if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(nc);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(dc),this.potentialNodes.clear()),this.nodes.forEach(rc),this.nodes.forEach(Qu),this.nodes.forEach(tc),this.clearAllSnapshots(),Mo.update(),Mo.preRender(),Mo.render())},t.prototype.clearAllSnapshots=function(){this.nodes.forEach(ec),this.sharedNodes.forEach(uc)},t.prototype.scheduleUpdateProjection=function(){So.preRender(this.updateProjection,!1,!0)},t.prototype.scheduleCheckAfterUnmount=function(){var t=this;So.postRender((function(){t.isLayoutDirty?t.root.didUpdate():t.root.checkUpdateFailed()}))},t.prototype.updateSnapshot=function(){if(!this.snapshot&&this.instance){var t=this.measure(),e=this.removeTransform(this.removeElementScroll(t));vc(e),this.snapshot={measured:t,layout:e,latestValues:{}}}},t.prototype.updateLayout=function(){var t;if(this.instance&&(this.updateScroll(),this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty)){if(this.resumeFrom&&!this.resumeFrom.instance)for(var e=0;e<this.path.length;e++){this.path[e].updateScroll()}var n=this.measure();vc(n);var r=this.layout;this.layout={measured:n,actual:this.removeElementScroll(n)},this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.actual),null===(t=this.options.visualElement)||void 0===t||t.notifyLayoutMeasure(this.layout.actual,null==r?void 0:r.actual)}},t.prototype.updateScroll=function(){this.options.layoutScroll&&this.instance&&(this.scroll=r(this.instance))},t.prototype.resetTransform=function(){var t;if(i){var e=this.isLayoutDirty||this.shouldResetTransform,n=this.projectionDelta&&!Lu(this.projectionDelta),r=null===(t=this.options.visualElement)||void 0===t?void 0:t.getProps().transformTemplate,o=null==r?void 0:r(this.latestValues,""),a=o!==this.prevTransformTemplateValue;e&&(n||su(this.latestValues)||a)&&(i(this.instance,o),this.shouldResetTransform=!1,this.scheduleRender())}},t.prototype.measure=function(){var t=this.options.visualElement;if(!t)return{x:{min:0,max:0},y:{min:0,max:0}};var e=t.measureViewportBox(),n=this.root.scroll;return n&&(du(e.x,n.x),du(e.y,n.y)),e},t.prototype.removeElementScroll=function(t){var e={x:{min:0,max:0},y:{min:0,max:0}};iu(e,t);for(var n=0;n<this.path.length;n++){var r=this.path[n],i=r.scroll,o=r.options;r!==this.root&&i&&o.layoutScroll&&(du(e.x,i.x),du(e.y,i.y))}return e},t.prototype.applyTransform=function(t,e){void 0===e&&(e=!1);var n={x:{min:0,max:0},y:{min:0,max:0}};iu(n,t);for(var r=0;r<this.path.length;r++){var i=this.path[r];!e&&i.options.layoutScroll&&i.scroll&&i!==i.root&&gu(n,{x:-i.scroll.x,y:-i.scroll.y}),su(i.latestValues)&&gu(n,i.latestValues)}return su(this.latestValues)&&gu(n,this.latestValues),n},t.prototype.removeTransform=function(t){var e,n={x:{min:0,max:0},y:{min:0,max:0}};iu(n,t);for(var r=0;r<this.path.length;r++){var i=this.path[r];if(i.instance&&su(i.latestValues)){au(i.latestValues)&&i.updateSnapshot();var o={x:{min:0,max:0},y:{min:0,max:0}};iu(o,i.measure()),Du(n,i.latestValues,null===(e=i.snapshot)||void 0===e?void 0:e.layout,o)}}return su(this.latestValues)&&Du(n,this.latestValues),n},t.prototype.setTargetDelta=function(t){this.targetDelta=t,this.root.scheduleUpdateProjection()},t.prototype.setOptions=function(t){var e;this.options=zi(zi(zi({},this.options),t),{crossfade:null===(e=t.crossfade)||void 0===e||e})},t.prototype.clearMeasurements=function(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1},t.prototype.resolveTargetDelta=function(){var t,e,n,r,i=this.options,o=i.layout,a=i.layoutId;this.layout&&(o||a)&&(this.targetDelta||this.relativeTarget||(this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&this.relativeParent.layout&&(this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Tu(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),iu(this.relativeTarget,this.relativeTargetOrigin))),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&(null===(t=this.relativeParent)||void 0===t?void 0:t.target)?(e=this.target,n=this.relativeTarget,r=this.relativeParent.target,Cu(e.x,n.x,r.x),Cu(e.y,n.y,r.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.actual):iu(this.target,this.layout.actual),pu(this.target,this.targetDelta)):iu(this.target,this.layout.actual),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&Boolean(this.relativeParent.resumingFrom)===Boolean(this.resumingFrom)&&!this.relativeParent.options.layoutScroll&&this.relativeParent.target&&(this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Tu(this.relativeTargetOrigin,this.target,this.relativeParent.target),iu(this.relativeTarget,this.relativeTargetOrigin)))))},t.prototype.getClosestProjectingParent=function(){if(this.parent&&!su(this.parent.latestValues))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()},t.prototype.calcProjection=function(){var t,e=this.options,n=e.layout,r=e.layoutId;if(this.isTreeAnimating=Boolean((null===(t=this.parent)||void 0===t?void 0:t.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),this.layout&&(n||r)){var i=this.getLead();iu(this.layoutCorrected,this.layout.actual),function(t,e,n,r){var i,o;void 0===r&&(r=!1);var a=n.length;if(a){var s,u;e.x=e.y=1;for(var c=0;c<a;c++)u=(s=n[c]).projectionDelta,"contents"!==(null===(o=null===(i=s.instance)||void 0===i?void 0:i.style)||void 0===o?void 0:o.display)&&(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&gu(t,{x:-s.scroll.x,y:-s.scroll.y}),u&&(e.x*=u.x.scale,e.y*=u.y.scale,pu(t,u)),r&&su(s.latestValues)&&gu(t,s.latestValues))}}(this.layoutCorrected,this.treeScale,this.path,Boolean(this.resumingFrom)||this!==i);var o=i.target;if(o){this.projectionDelta||(this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}});var a=this.treeScale.x,s=this.treeScale.y,u=this.projectionTransform;Mu(this.projectionDelta,this.layoutCorrected,o,this.latestValues),this.projectionTransform=Vu(this.projectionDelta,this.treeScale),this.projectionTransform===u&&this.treeScale.x===a&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",o))}}},t.prototype.hide=function(){this.isVisible=!1},t.prototype.show=function(){this.isVisible=!0},t.prototype.scheduleRender=function(t){var e,n,r;void 0===t&&(t=!0),null===(n=(e=this.options).scheduleRender)||void 0===n||n.call(e),t&&(null===(r=this.getStack())||void 0===r||r.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)},t.prototype.setAnimationOrigin=function(t,e){var n,r=this;void 0===e&&(e=!1);var i=this.snapshot,o=(null==i?void 0:i.latestValues)||{},a=zi({},this.latestValues),s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!e;var u={x:{min:0,max:0},y:{min:0,max:0}},c=null==i?void 0:i.isShared,l=((null===(n=this.getStack())||void 0===n?void 0:n.members.length)||0)<=1,f=Boolean(c&&!l&&!0===this.options.crossfade&&!this.path.some(fc));this.mixTargetDelta=function(e){var n,i,p,d,h,v=e/1e3;cc(s.x,t.x,v),cc(s.y,t.y,v),r.setTargetDelta(s),r.relativeTarget&&r.relativeTargetOrigin&&r.layout&&(null===(n=r.relativeParent)||void 0===n?void 0:n.layout)&&(Tu(u,r.layout.actual,r.relativeParent.layout.actual),i=r.relativeTarget,p=r.relativeTargetOrigin,d=u,h=v,lc(i.x,p.x,d.x,h),lc(i.y,p.y,d.y,h)),c&&(r.animationValues=a,function(t,e,n,r,i,o){var a,s,u,c;i?(t.opacity=ko(0,null!==(a=n.opacity)&&void 0!==a?a:1,tu(r)),t.opacityExit=ko(null!==(s=e.opacity)&&void 0!==s?s:1,0,eu(r))):o&&(t.opacity=ko(null!==(u=e.opacity)&&void 0!==u?u:1,null!==(c=n.opacity)&&void 0!==c?c:1,r));for(var l=0;l<Js;l++){var f="border".concat($s[l],"Radius"),p=Qs(e,f),d=Qs(n,f);if((void 0!==p||void 0!==d)&&(p||(p=0),d||(d=0),"number"==typeof p&&"number"==typeof d)){var h=Math.max(ko(p,d,r),0);t[f]=h}}(e.rotate||n.rotate)&&(t.rotate=ko(e.rotate||0,n.rotate||0,r))}(a,o,r.latestValues,v,f,l)),r.root.scheduleUpdateProjection(),r.scheduleRender()},this.mixTargetDelta(0)},t.prototype.startAnimation=function(t){var e,n,r=this;null===(e=this.currentAnimation)||void 0===e||e.stop(),this.resumingFrom&&(null===(n=this.resumingFrom.currentAnimation)||void 0===n||n.stop()),this.pendingAnimation&&(Oo.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=So.update((function(){$u.hasAnimatedSinceResize=!0,r.currentAnimation=function(t,e,n){void 0===n&&(n={});var r=Uo(t)?t:Ro(t);return Ks("",r,e,n),{stop:function(){return r.stop()},isAnimating:function(){return r.isAnimating()}}}(0,1e3,zi(zi({},t),{onUpdate:function(e){var n;r.mixTargetDelta(e),null===(n=t.onUpdate)||void 0===n||n.call(t,e)},onComplete:function(){var e;null===(e=t.onComplete)||void 0===e||e.call(t),r.completeAnimation()}})),r.resumingFrom&&(r.resumingFrom.currentAnimation=r.currentAnimation),r.pendingAnimation=void 0}))},t.prototype.completeAnimation=function(){var t;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),null===(t=this.getStack())||void 0===t||t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")},t.prototype.finishAnimation=function(){var t;this.currentAnimation&&(null===(t=this.mixTargetDelta)||void 0===t||t.call(this,1e3),this.currentAnimation.stop()),this.completeAnimation()},t.prototype.applyTransformsToTarget=function(){var t=this.getLead(),e=t.targetWithTransforms,n=t.target,r=t.layout,i=t.latestValues;e&&n&&r&&(iu(e,n),gu(e,i),Mu(this.projectionDeltaWithTransform,this.layoutCorrected,e,i))},t.prototype.registerSharedNode=function(t,e){var n,r,i;this.sharedNodes.has(t)||this.sharedNodes.set(t,new Ru),this.sharedNodes.get(t).add(e),e.promote({transition:null===(n=e.options.initialPromotionConfig)||void 0===n?void 0:n.transition,preserveFollowOpacity:null===(i=null===(r=e.options.initialPromotionConfig)||void 0===r?void 0:r.shouldPreserveFollowOpacity)||void 0===i?void 0:i.call(r,e)})},t.prototype.isLead=function(){var t=this.getStack();return!t||t.lead===this},t.prototype.getLead=function(){var t;return this.options.layoutId&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this},t.prototype.getPrevLead=function(){var t;return this.options.layoutId?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0},t.prototype.getStack=function(){var t=this.options.layoutId;if(t)return this.root.sharedNodes.get(t)},t.prototype.promote=function(t){var e=void 0===t?{}:t,n=e.needsReset,r=e.transition,i=e.preserveFollowOpacity,o=this.getStack();o&&o.promote(this,i),n&&(this.projectionDelta=void 0,this.needsReset=!0),r&&this.setOptions({transition:r})},t.prototype.relegate=function(){var t=this.getStack();return!!t&&t.relegate(this)},t.prototype.resetRotation=function(){var t=this.options.visualElement;if(t){for(var e=!1,n={},r=0;r<zu.length;r++){var i="rotate"+zu[r];t.getStaticValue(i)&&(e=!0,n[i]=t.getStaticValue(i),t.setStaticValue(i,0))}if(e){for(var i in null==t||t.syncRender(),n)t.setStaticValue(i,n[i]);t.scheduleRender()}}},t.prototype.getProjectionStyles=function(t){var e,n,r,i,o,a;void 0===t&&(t={});var s={};if(!this.instance||this.isSVG)return s;if(!this.isVisible)return{visibility:"hidden"};s.visibility="";var u=null===(e=this.options.visualElement)||void 0===e?void 0:e.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,s.opacity="",s.pointerEvents=Ku(t.pointerEvents)||"",s.transform=u?u(this.latestValues,""):"none",s;var c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){var l={};return this.options.layoutId&&(l.opacity=null!==(n=this.latestValues.opacity)&&void 0!==n?n:1,l.pointerEvents=Ku(t.pointerEvents)||""),this.hasProjected&&!su(this.latestValues)&&(l.transform=u?u({},""):"none",this.hasProjected=!1),l}var f=c.animationValues||c.latestValues;this.applyTransformsToTarget(),s.transform=Vu(this.projectionDeltaWithTransform,this.treeScale,f),u&&(s.transform=u(f,s.transform));var p=this.projectionDelta,d=p.x,h=p.y;for(var v in s.transformOrigin="".concat(100*d.origin,"% ").concat(100*h.origin,"% 0"),c.animationValues?s.opacity=c===this?null!==(i=null!==(r=f.opacity)&&void 0!==r?r:this.latestValues.opacity)&&void 0!==i?i:1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:s.opacity=c===this?null!==(o=f.opacity)&&void 0!==o?o:"":null!==(a=f.opacityExit)&&void 0!==a?a:0,Uu)if(void 0!==f[v]){var m=Uu[v],g=m.correct,y=m.applyTo,b=g(f[v],c);if(y)for(var w=y.length,P=0;P<w;P++)s[y[P]]=b;else s[v]=b}return this.options.layoutId&&(s.pointerEvents=c===this?Ku(t.pointerEvents)||"":"none"),s},t.prototype.clearSnapshot=function(){this.resumeFrom=this.snapshot=void 0},t.prototype.resetTree=function(){this.root.nodes.forEach((function(t){var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()})),this.root.nodes.forEach(nc),this.root.sharedNodes.clear()},t}()}function Qu(t){t.updateLayout()}function tc(t){var e,n,r,i,o=null!==(n=null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)&&void 0!==n?n:t.snapshot;if(t.isLead()&&t.layout&&o&&t.hasListeners("didUpdate")){var a=t.layout,s=a.actual,u=a.measured;"size"===t.options.animationType?Fu((function(t){var e=o.isShared?o.measured[t]:o.layout[t],n=xu(e);e.min=s[t].min,e.max=e.min+n})):"position"===t.options.animationType&&Fu((function(t){var e=o.isShared?o.measured[t]:o.layout[t],n=xu(s[t]);e.max=e.min+n}));var c={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};Mu(c,s,o.layout);var l={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};o.isShared?Mu(l,t.applyTransform(u,!0),o.measured):Mu(l,s,o.layout);var f=!Lu(c),p=!1;if(!t.resumeFrom&&(t.relativeParent=t.getClosestProjectingParent(),t.relativeParent&&!t.relativeParent.resumeFrom)){var d=t.relativeParent,h=d.snapshot,v=d.layout;if(h&&v){var m={x:{min:0,max:0},y:{min:0,max:0}};Tu(m,o.layout,h.layout);var g={x:{min:0,max:0},y:{min:0,max:0}};Tu(g,s,v.actual),Nu(m,g)||(p=!0)}}t.notifyListeners("didUpdate",{layout:s,snapshot:o,delta:l,layoutDelta:c,hasLayoutChanged:f,hasRelativeTargetChanged:p})}else t.isLead()&&(null===(i=(r=t.options).onExitComplete)||void 0===i||i.call(r));t.options.transition=void 0}function ec(t){t.clearSnapshot()}function nc(t){t.clearMeasurements()}function rc(t){t.resetTransform()}function ic(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0}function oc(t){t.resolveTargetDelta()}function ac(t){t.calcProjection()}function sc(t){t.resetRotation()}function uc(t){t.removeLeadSnapshot()}function cc(t,e,n){t.translate=ko(e.translate,0,n),t.scale=ko(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function lc(t,e,n,r){t.min=ko(e.min,n.min,r),t.max=ko(e.max,n.max,r)}function fc(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}var pc={duration:.45,ease:[.4,0,.1,1]};function dc(t,e){for(var n=t.root,r=t.path.length-1;r>=0;r--)if(Boolean(t.path[r].instance)){n=t.path[r];break}var i=(n&&n!==t.root?n.instance:document).querySelector('[data-projection-id="'.concat(e,'"]'));i&&t.mount(i,!0)}function hc(t){t.min=Math.round(t.min),t.max=Math.round(t.max)}function vc(t){hc(t.x),hc(t.y)}var mc=1;var gc=(0,r.createContext)({}),yc=(0,r.createContext)({});var bc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fi(e,t),e.prototype.getSnapshotBeforeUpdate=function(){return this.updateProps(),null},e.prototype.componentDidUpdate=function(){},e.prototype.updateProps=function(){var t=this.props,e=t.visualElement,n=t.props;e&&e.setProps(n)},e.prototype.render=function(){return this.props.children},e}(r.Component);function wc(t){var e=t.preloadedFeatures,n=t.createVisualElement,i=t.projectionNodeConstructor,o=t.useRender,a=t.useVisualState,s=t.Component;return e&&function(t){for(var e in t)null!==t[e]&&("projectionNodeConstructor"===e?Wi.projectionNodeConstructor=t[e]:Wi[e].Component=t[e])}(e),(0,r.forwardRef)((function(t,e){var u=function(t){var e,n=t.layoutId,i=null===(e=(0,r.useContext)(gc))||void 0===e?void 0:e.id;return i&&void 0!==n?i+"-"+n:n}(t);t=zi(zi({},t),{layoutId:u});var c=(0,r.useContext)($i),l=null,f=lo(t),p=c.isStatic?void 0:po((function(){if($u.hasEverUpdated)return mc++})),d=a(t,c.isStatic);return!c.isStatic&&to&&(f.visualElement=no(s,d,zi(zi({},c),t),n),function(t,e,n,i){var o,a=e.layoutId,s=e.layout,u=e.drag,c=e.dragConstraints,l=e.layoutScroll,f=(0,r.useContext)(yc);i&&n&&!(null==n?void 0:n.projection)&&(n.projection=new i(t,n.getLatestValues(),null===(o=n.parent)||void 0===o?void 0:o.projection),n.projection.setOptions({layoutId:a,layout:s,alwaysMeasureLayout:Boolean(u)||c&&ro(c),visualElement:n,scheduleRender:function(){return n.scheduleRender()},animationType:"string"==typeof s?s:"both",initialPromotionConfig:f,layoutScroll:l}))}(p,t,f.visualElement,i||Wi.projectionNodeConstructor),l=function(t,e,n){var i=[];if((0,r.useContext)(Yi),!e)return null;for(var o=0;o<Ki;o++){var a=Xi[o],s=Wi[a],u=s.isEnabled,c=s.Component;u(t)&&c&&i.push(r.createElement(c,zi({key:a},t,{visualElement:e})))}return i}(t,f.visualElement)),r.createElement(bc,{visualElement:f.visualElement,props:zi(zi({},c),t)},l,r.createElement(Ji.Provider,{value:f},o(s,t,p,function(t,e,n){return(0,r.useCallback)((function(r){var i;r&&(null===(i=t.mount)||void 0===i||i.call(t,r)),e&&(r?e.mount(r):e.unmount()),n&&("function"==typeof n?n(r):ro(n)&&(n.current=r))}),[e])}(d,f.visualElement,e),d,c.isStatic,f.visualElement)))}))}function Pc(t){function e(e,n){return void 0===n&&(n={}),wc(t(e,n))}if("undefined"==typeof Proxy)return e;var n=new Map;return new Proxy(e,{get:function(t,r){return n.has(r)||n.set(r,e(r)),n.get(r)}})}var xc=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function Ec(t){return"string"==typeof t&&!t.includes("-")&&!!(xc.indexOf(t)>-1||/[A-Z]/.test(t))}function Oc(t,e){var n=e.layout,r=e.layoutId;return Gu(t)||Wu(t)||(n||void 0!==r)&&(!!Uu[t]||"opacity"===t)}var Mc={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function Cc(t){return t.startsWith("--")}var Ac=function(t,e){return e&&"number"==typeof t?e.transform(t):t};function Tc(t,e,n,r){var i,o=t.style,a=t.vars,s=t.transform,u=t.transformKeys,c=t.transformOrigin;u.length=0;var l=!1,f=!1,p=!0;for(var d in e){var h=e[d];if(Cc(d))a[d]=h;else{var v=Us[d],m=Ac(h,v);if(Gu(d)){if(l=!0,s[d]=m,u.push(d),!p)continue;h!==(null!==(i=v.default)&&void 0!==i?i:0)&&(p=!1)}else Wu(d)?(c[d]=m,f=!0):o[d]=m}}l?o.transform=function(t,e,n,r){var i=t.transform,o=t.transformKeys,a=e.enableHardwareAcceleration,s=void 0===a||a,u=e.allowTransformNone,c=void 0===u||u,l="";o.sort(Zu);for(var f=!1,p=o.length,d=0;d<p;d++){var h=o[d];l+="".concat(Mc[h]||h,"(").concat(i[h],") "),"z"===h&&(f=!0)}return!f&&s?l+="translateZ(0)":l=l.trim(),r?l=r(i,n?"":l):c&&n&&(l="none"),l}(t,n,p,r):r&&(o.transform=r({},"")),f&&(o.transformOrigin=function(t){var e=t.originX,n=void 0===e?"50%":e,r=t.originY,i=void 0===r?"50%":r,o=t.originZ,a=void 0===o?0:o;return"".concat(n," ").concat(i," ").concat(a)}(c))}var Ic=function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}};function Sc(t,e,n){for(var r in e)Uo(e[r])||Oc(r,n)||(t[r]=e[r])}function kc(t,e,n){var i={};return Sc(i,t.style||{},t),Object.assign(i,function(t,e,n){var i=t.transformTemplate;return(0,r.useMemo)((function(){var t={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};Tc(t,e,{enableHardwareAcceleration:!n},i);var r=t.style;return zi(zi({},t.vars),r)}),[e])}(t,e,n)),t.transformValues&&(i=t.transformValues(i)),i}function _c(t,e,n){var r={},i=kc(t,e,n);return Boolean(t.drag)&&!1!==t.dragListener&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===t.drag?"none":"pan-".concat("x"===t.drag?"y":"x")),r.style=i,r}var Dc=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover","whileInView","onViewportEnter","onViewportLeave","viewport","layoutScroll"]);function jc(t){return Dc.has(t)}var Lc=function(t){return!jc(t)};try{var Nc=n(5264).Z;Lc=function(t){return t.startsWith("on")?!jc(t):Nc(t)}}catch(Lp){}function Rc(t,e,n){return"string"==typeof t?t:ha.transform(e+n*t)}var Uc={offset:"stroke-dashoffset",array:"stroke-dasharray"},Vc={offset:"strokeDashoffset",array:"strokeDasharray"};function Fc(t,e,n,r){var i=e.attrX,o=e.attrY,a=e.originX,s=e.originY,u=e.pathLength,c=e.pathSpacing,l=void 0===c?1:c,f=e.pathOffset,p=void 0===f?0:f;Tc(t,Bi(e,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]),n,r),t.attrs=t.style,t.style={};var d=t.attrs,h=t.style,v=t.dimensions;d.transform&&(v&&(h.transform=d.transform),delete d.transform),v&&(void 0!==a||void 0!==s||h.transform)&&(h.transformOrigin=function(t,e,n){var r=Rc(e,t.x,t.width),i=Rc(n,t.y,t.height);return"".concat(r," ").concat(i)}(v,void 0!==a?a:.5,void 0!==s?s:.5)),void 0!==i&&(d.x=i),void 0!==o&&(d.y=o),void 0!==u&&function(t,e,n,r,i){void 0===n&&(n=1),void 0===r&&(r=0),void 0===i&&(i=!0),t.pathLength=1;var o=i?Uc:Vc;t[o.offset]=ha.transform(-r);var a=ha.transform(e),s=ha.transform(n);t[o.array]="".concat(a," ").concat(s)}(d,u,l,p,!1)}var zc=function(){return zi(zi({},{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}),{attrs:{}})};function Bc(t,e){var n=(0,r.useMemo)((function(){var n=zc();return Fc(n,e,{enableHardwareAcceleration:!1},t.transformTemplate),zi(zi({},n.attrs),{style:zi({},n.style)})}),[e]);if(t.style){var i={};Sc(i,t.style,t),n.style=zi(zi({},i),n.style)}return n}function Zc(t){void 0===t&&(t=!1);return function(e,n,i,o,a,s){var u=a.latestValues,c=(Ec(e)?Bc:_c)(n,u,s),l=function(t,e,n){var r={};for(var i in t)(Lc(i)||!0===n&&jc(i)||!e&&!jc(i)||t.draggable&&i.startsWith("onDrag"))&&(r[i]=t[i]);return r}(n,"string"==typeof e,t),f=zi(zi(zi({},l),c),{ref:o});return i&&(f["data-projection-id"]=i),(0,r.createElement)(e,f)}}var Hc=/([a-z])([A-Z])/g,Gc=function(t){return t.replace(Hc,"$1-$2").toLowerCase()};function qc(t,e,n,r){var i=e.style,o=e.vars;for(var a in Object.assign(t.style,i,r&&r.getProjectionStyles(n)),o)t.style.setProperty(a,o[a])}var Wc=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function Yc(t,e){for(var n in qc(t,e),e.attrs)t.setAttribute(Wc.has(n)?n:Gc(n),e.attrs[n])}function Xc(t){var e=t.style,n={};for(var r in e)(Uo(e[r])||Oc(r,t))&&(n[r]=e[r]);return n}function Kc(t){var e=Xc(t);for(var n in t){if(Uo(t[n]))e["x"===n||"y"===n?"attr"+n.toUpperCase():n]=t[n]}return e}function $c(t){return"object"==typeof t&&"function"==typeof t.start}function Jc(t,e,n,r){var i=t.scrapeMotionValuesFromProps,o=t.createRenderState,a=t.onMount,s={latestValues:tl(e,n,r,i),renderState:o()};return a&&(s.mount=function(t){return a(e,t,s)}),s}var Qc=function(t){return function(e,n){var i=(0,r.useContext)(Ji),o=(0,r.useContext)(Qi);return n?Jc(t,e,i,o):po((function(){return Jc(t,e,i,o)}))}};function tl(t,e,n,r){var i={},o=!1===(null==n?void 0:n.initial),a=r(t);for(var s in a)i[s]=Ku(a[s]);var u=t.initial,c=t.animate,l=uo(t),f=co(t);e&&f&&!l&&!1!==t.inherit&&(null!=u||(u=e.initial),null!=c||(c=e.animate));var p=o||!1===u,d=p?c:u;d&&"boolean"!=typeof d&&!$c(d)&&(Array.isArray(d)?d:[d]).forEach((function(e){var n=ao(t,e);if(n){var r=n.transitionEnd;n.transition;var o=Bi(n,["transitionEnd","transition"]);for(var a in o){var s=o[a];if(Array.isArray(s))s=s[p?s.length-1:0];null!==s&&(i[a]=s)}for(var a in r)i[a]=r[a]}}));return i}var el,nl={useVisualState:Qc({scrapeMotionValuesFromProps:Kc,createRenderState:zc,onMount:function(t,e,n){var r=n.renderState,i=n.latestValues;try{r.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(o){r.dimensions={x:0,y:0,width:0,height:0}}Fc(r,i,{enableHardwareAcceleration:!1},t.transformTemplate),Yc(e,r)}})},rl={useVisualState:Qc({scrapeMotionValuesFromProps:Xc,createRenderState:Ic})};function il(t,e,n,r){return t.addEventListener(e,n,r),function(){return t.removeEventListener(e,n,r)}}function ol(t,e,n,i){(0,r.useEffect)((function(){var r=t.current;if(n&&r)return il(r,e,n,i)}),[t,e,n,i])}function al(t){return"undefined"!=typeof PointerEvent&&t instanceof PointerEvent?!("mouse"!==t.pointerType):t instanceof MouseEvent}function sl(t){return!!t.touches}!function(t){t.Animate="animate",t.Hover="whileHover",t.Tap="whileTap",t.Drag="whileDrag",t.Focus="whileFocus",t.InView="whileInView",t.Exit="exit"}(el||(el={}));var ul={pageX:0,pageY:0};function cl(t,e){void 0===e&&(e="page");var n=t.touches[0]||t.changedTouches[0]||ul;return{x:n[e+"X"],y:n[e+"Y"]}}function ll(t,e){return void 0===e&&(e="page"),{x:t[e+"X"],y:t[e+"Y"]}}function fl(t,e){return void 0===e&&(e="page"),{point:sl(t)?cl(t,e):ll(t,e)}}var pl=function(t,e){void 0===e&&(e=!1);var n,r=function(e){return t(e,fl(e))};return e?(n=r,function(t){var e=t instanceof MouseEvent;(!e||e&&0===t.button)&&n(t)}):r},dl={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},hl={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function vl(t){return to&&null===window.onpointerdown?t:to&&null===window.ontouchstart?hl[t]:to&&null===window.onmousedown?dl[t]:t}function ml(t,e,n,r){return il(t,vl(e),pl(n,"pointerdown"===e),r)}function gl(t,e,n,r){return ol(t,vl(e),n&&pl(n,"pointerdown"===e),r)}function yl(t){var e=null;return function(){return null===e&&(e=t,function(){e=null})}}var bl=yl("dragHorizontal"),wl=yl("dragVertical");function Pl(t){var e=!1;if("y"===t)e=wl();else if("x"===t)e=bl();else{var n=bl(),r=wl();n&&r?e=function(){n(),r()}:(n&&n(),r&&r())}return e}function xl(){var t=Pl(!0);return!t||(t(),!1)}function El(t,e,n){return function(r,i){var o;al(r)&&!xl()&&(null===(o=t.animationState)||void 0===o||o.setActive(el.Hover,e),null==n||n(r,i))}}var Ol=function t(e,n){return!!n&&(e===n||t(e,n.parentElement))};function Ml(t){return(0,r.useEffect)((function(){return function(){return t()}}),[])}var Cl=new WeakMap,Al=new WeakMap,Tl=function(t){var e;null===(e=Cl.get(t.target))||void 0===e||e(t)},Il=function(t){t.forEach(Tl)};function Sl(t,e,n){var r=function(t){var e=t.root,n=Bi(t,["root"]),r=e||document;Al.has(r)||Al.set(r,{});var i=Al.get(r),o=JSON.stringify(n);return i[o]||(i[o]=new IntersectionObserver(Il,zi({root:e},n))),i[o]}(e);return Cl.set(t,n),r.observe(t),function(){Cl.delete(t),r.unobserve(t)}}var kl={some:0,all:1};function _l(t,e,n,i){var o=i.root,a=i.margin,s=i.amount,u=void 0===s?"some":s,c=i.once;(0,r.useEffect)((function(){if(t){var r={root:null==o?void 0:o.current,rootMargin:a,threshold:"number"==typeof u?u:kl[u]};return Sl(n.getInstance(),r,(function(t){var r,i=t.isIntersecting;if(e.isInView!==i&&(e.isInView=i,!c||i||!e.hasEnteredView)){i&&(e.hasEnteredView=!0),null===(r=n.animationState)||void 0===r||r.setActive(el.InView,i);var o=n.getProps(),a=i?o.onViewportEnter:o.onViewportLeave;null==a||a(t)}}))}}),[t,o,a,u])}function Dl(t,e,n){(0,r.useEffect)((function(){t&&requestAnimationFrame((function(){var t;e.hasEnteredView=!0;var r=n.getProps().onViewportEnter;null==r||r(null),null===(t=n.animationState)||void 0===t||t.setActive(el.InView,!0)}))}),[t])}var jl=function(t){return function(e){return t(e),null}},Ll={inView:jl((function(t){var e=t.visualElement,n=t.whileInView,i=t.onViewportEnter,o=t.onViewportLeave,a=t.viewport,s=void 0===a?{}:a,u=(0,r.useRef)({hasEnteredView:!1,isInView:!1}),c=Boolean(n||i||o);s.once&&u.current.hasEnteredView&&(c=!1),("undefined"==typeof IntersectionObserver?Dl:_l)(c,u.current,e,s)})),tap:jl((function(t){var e=t.onTap,n=t.onTapStart,i=t.onTapCancel,o=t.whileTap,a=t.visualElement,s=e||n||i||o,u=(0,r.useRef)(!1),c=(0,r.useRef)(null);function l(){var t;null===(t=c.current)||void 0===t||t.call(c),c.current=null}function f(){var t;return l(),u.current=!1,null===(t=a.animationState)||void 0===t||t.setActive(el.Tap,!1),!xl()}function p(t,n){f()&&(Ol(a.getInstance(),t.target)?null==e||e(t,n):null==i||i(t,n))}function d(t,e){f()&&(null==i||i(t,e))}gl(a,"pointerdown",s?function(t,e){var r;l(),u.current||(u.current=!0,c.current=Na(ml(window,"pointerup",p),ml(window,"pointercancel",d)),null===(r=a.animationState)||void 0===r||r.setActive(el.Tap,!0),null==n||n(t,e))}:void 0),Ml(l)})),focus:jl((function(t){var e=t.whileFocus,n=t.visualElement;ol(n,"focus",e?function(){var t;null===(t=n.animationState)||void 0===t||t.setActive(el.Focus,!0)}:void 0),ol(n,"blur",e?function(){var t;null===(t=n.animationState)||void 0===t||t.setActive(el.Focus,!1)}:void 0)})),hover:jl((function(t){var e=t.onHoverStart,n=t.onHoverEnd,r=t.whileHover,i=t.visualElement;gl(i,"pointerenter",e||r?El(i,!0,e):void 0),gl(i,"pointerleave",n||r?El(i,!1,n):void 0)}))};function Nl(){var t=(0,r.useContext)(Qi);if(null===t)return[!0,null];var e=t.isPresent,n=t.onExitComplete,i=t.register,o=Vl();(0,r.useEffect)((function(){return i(o)}),[]);return!e&&n?[!1,function(){return null==n?void 0:n(o)}]:[!0]}var Rl=0,Ul=function(){return Rl++},Vl=function(){return po(Ul)};function Fl(t,e){if(!Array.isArray(e))return!1;var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}var zl=function(t){return/^0[^.\s]+$/.test(t)},Bl=function(t){return function(e){return e.test(t)}},Zl=[na,ha,da,pa,ma,va,{test:function(t){return"auto"===t},parse:function(t){return t}}],Hl=function(t){return Zl.find(Bl(t))},Gl=Gi(Gi([],Hi(Zl),!1),[Ca,Da],!1),ql=function(t){return Gl.find(Bl(t))};function Wl(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Ro(n))}function Yl(t,e){var n=so(t,e),r=n?t.makeTargetAnimatable(n,!1):{},i=r.transitionEnd,o=void 0===i?{}:i;r.transition;var a=Bi(r,["transitionEnd","transition"]);for(var s in a=zi(zi({},a),o)){Wl(t,s,Zs(a[s]))}}function Xl(t,e){if(e)return(e[t]||e.default||e).from}function Kl(t,e,n){var r;void 0===n&&(n={});var i=so(t,e,n.custom),o=(i||{}).transition,a=void 0===o?t.getDefaultTransition()||{}:o;n.transitionOverride&&(a=n.transitionOverride);var s=i?function(){return $l(t,i,n)}:function(){return Promise.resolve()},u=(null===(r=t.variantChildren)||void 0===r?void 0:r.size)?function(r){void 0===r&&(r=0);var i=a.delayChildren,o=void 0===i?0:i,s=a.staggerChildren,u=a.staggerDirection;return function(t,e,n,r,i,o){void 0===n&&(n=0);void 0===r&&(r=0);void 0===i&&(i=1);var a=[],s=(t.variantChildren.size-1)*r,u=1===i?function(t){return void 0===t&&(t=0),t*r}:function(t){return void 0===t&&(t=0),s-t*r};return Array.from(t.variantChildren).sort(Jl).forEach((function(t,r){a.push(Kl(t,e,zi(zi({},o),{delay:n+u(r)})).then((function(){return t.notifyAnimationComplete(e)})))})),Promise.all(a)}(t,e,o+r,s,u,n)}:function(){return Promise.resolve()},c=a.when;if(c){var l=Hi("beforeChildren"===c?[s,u]:[u,s],2),f=l[0],p=l[1];return f().then(p)}return Promise.all([s(),u(n.delay)])}function $l(t,e,n){var r,i=void 0===n?{}:n,o=i.delay,a=void 0===o?0:o,s=i.transitionOverride,u=i.type,c=t.makeTargetAnimatable(e),l=c.transition,f=void 0===l?t.getDefaultTransition():l,p=c.transitionEnd,d=Bi(c,["transition","transitionEnd"]);s&&(f=s);var h=[],v=u&&(null===(r=t.animationState)||void 0===r?void 0:r.getState()[u]);for(var m in d){var g=t.getValue(m),y=d[m];if(!(!g||void 0===y||v&&Ql(v,m))){var b=Ks(m,g,y,zi({delay:a},f));h.push(b)}}return Promise.all(h).then((function(){p&&Yl(t,p)}))}function Jl(t,e){return t.sortNodePosition(e)}function Ql(t,e){var n=t.protectedKeys,r=t.needsAnimating,i=n.hasOwnProperty(e)&&!0!==r[e];return r[e]=!1,i}var tf=[el.Animate,el.InView,el.Focus,el.Hover,el.Tap,el.Drag,el.Exit],ef=Gi([],Hi(tf),!1).reverse(),nf=tf.length;function rf(t){return function(e){return Promise.all(e.map((function(e){var n=e.animation,r=e.options;return function(t,e,n){var r;if(void 0===n&&(n={}),t.notifyAnimationStart(e),Array.isArray(e)){var i=e.map((function(e){return Kl(t,e,n)}));r=Promise.all(i)}else if("string"==typeof e)r=Kl(t,e,n);else{var o="function"==typeof e?so(t,e,n.custom):e;r=$l(t,o,n)}return r.then((function(){return t.notifyAnimationComplete(e)}))}(t,n,r)})))}}function of(t){var e,n=rf(t),r=((e={})[el.Animate]=af(!0),e[el.InView]=af(),e[el.Hover]=af(),e[el.Tap]=af(),e[el.Drag]=af(),e[el.Focus]=af(),e[el.Exit]=af(),e),i={},o=!0,a=function(e,n){var r=so(t,n);if(r){r.transition;var i=r.transitionEnd,o=Bi(r,["transition","transitionEnd"]);e=zi(zi(zi({},e),o),i)}return e};function s(e,s){for(var u,c=t.getProps(),l=t.getVariantContext(!0)||{},f=[],p=new Set,d={},h=1/0,v=function(n){var i=ef[n],v=r[i],m=null!==(u=c[i])&&void 0!==u?u:l[i],g=oo(m),y=i===s?v.isActive:null;!1===y&&(h=n);var b=m===l[i]&&m!==c[i]&&g;if(b&&o&&t.manuallyAnimateOnMount&&(b=!1),v.protectedKeys=zi({},d),!v.isActive&&null===y||!m&&!v.prevProp||$c(m)||"boolean"==typeof m)return"continue";var w=function(t,e){if("string"==typeof e)return e!==t;if(io(e))return!Fl(e,t);return!1}(v.prevProp,m),P=w||i===s&&v.isActive&&!b&&g||n>h&&g,x=Array.isArray(m)?m:[m],E=x.reduce(a,{});!1===y&&(E={});var O=v.prevResolvedValues,M=void 0===O?{}:O,C=zi(zi({},M),E),A=function(t){P=!0,p.delete(t),v.needsAnimating[t]=!0};for(var T in C){var I=E[T],S=M[T];d.hasOwnProperty(T)||(I!==S?As(I)&&As(S)?!Fl(I,S)||w?A(T):v.protectedKeys[T]=!0:void 0!==I?A(T):p.add(T):void 0!==I&&p.has(T)?A(T):v.protectedKeys[T]=!0)}v.prevProp=m,v.prevResolvedValues=E,v.isActive&&(d=zi(zi({},d),E)),o&&t.blockInitialAnimation&&(P=!1),P&&!b&&f.push.apply(f,Gi([],Hi(x.map((function(t){return{animation:t,options:zi({type:i},e)}}))),!1))},m=0;m<nf;m++)v(m);if(i=zi({},d),p.size){var g={};p.forEach((function(e){var n=t.getBaseTarget(e);void 0!==n&&(g[e]=n)})),f.push({animation:g})}var y=Boolean(f.length);return o&&!1===c.initial&&!t.manuallyAnimateOnMount&&(y=!1),o=!1,y?n(f):Promise.resolve()}return{isAnimated:function(t){return void 0!==i[t]},animateChanges:s,setActive:function(e,n,i){var o;return r[e].isActive===n?Promise.resolve():(null===(o=t.variantChildren)||void 0===o||o.forEach((function(t){var r;return null===(r=t.animationState)||void 0===r?void 0:r.setActive(e,n)})),r[e].isActive=n,s(i,e))},setAnimateFunction:function(e){n=e(t)},getState:function(){return r}}}function af(t){return void 0===t&&(t=!1),{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var sf={animation:jl((function(t){var e=t.visualElement,n=t.animate;e.animationState||(e.animationState=of(e)),$c(n)&&(0,r.useEffect)((function(){return n.subscribe(e)}),[n])})),exit:jl((function(t){var e=t.custom,n=t.visualElement,i=Hi(Nl(),2),o=i[0],a=i[1],s=(0,r.useContext)(Qi);(0,r.useEffect)((function(){var t,r;n.isPresent=o;var i=null===(t=n.animationState)||void 0===t?void 0:t.setActive(el.Exit,!o,{custom:null!==(r=null==s?void 0:s.custom)&&void 0!==r?r:e});!o&&(null==i||i.then(a))}),[o])}))},uf=function(){function t(t,e,n){var r=this,i=(void 0===n?{}:n).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(r.lastMoveEvent&&r.lastMoveEventInfo){var t=ff(r.lastMoveEventInfo,r.history),e=null!==r.startEvent,n=Pu(t.offset,{x:0,y:0})>=3;if(e||n){var i=t.point,o=Io().timestamp;r.history.push(zi(zi({},i),{timestamp:o}));var a=r.handlers,s=a.onStart,u=a.onMove;e||(s&&s(r.lastMoveEvent,t),r.startEvent=r.lastMoveEvent),u&&u(r.lastMoveEvent,t)}}},this.handlePointerMove=function(t,e){r.lastMoveEvent=t,r.lastMoveEventInfo=cf(e,r.transformPagePoint),al(t)&&0===t.buttons?r.handlePointerUp(t,e):So.update(r.updatePoint,!0)},this.handlePointerUp=function(t,e){r.end();var n=r.handlers,i=n.onEnd,o=n.onSessionEnd,a=ff(cf(e,r.transformPagePoint),r.history);r.startEvent&&i&&i(t,a),o&&o(t,a)},!(sl(t)&&t.touches.length>1)){this.handlers=e,this.transformPagePoint=i;var o=cf(fl(t),this.transformPagePoint),a=o.point,s=Io().timestamp;this.history=[zi(zi({},a),{timestamp:s})];var u=e.onSessionStart;u&&u(t,ff(o,this.history)),this.removeListeners=Na(ml(window,"pointermove",this.handlePointerMove),ml(window,"pointerup",this.handlePointerUp),ml(window,"pointercancel",this.handlePointerUp))}}return t.prototype.updateHandlers=function(t){this.handlers=t},t.prototype.end=function(){this.removeListeners&&this.removeListeners(),Oo.update(this.updatePoint)},t}();function cf(t,e){return e?{point:e(t.point)}:t}function lf(t,e){return{x:t.x-e.x,y:t.y-e.y}}function ff(t,e){var n=t.point;return{point:n,delta:lf(n,df(e)),offset:lf(n,pf(e)),velocity:hf(e,.1)}}function pf(t){return t[0]}function df(t){return t[t.length-1]}function hf(t,e){if(t.length<2)return{x:0,y:0};for(var n=t.length-1,r=null,i=df(t);n>=0&&(r=t[n],!(i.timestamp-r.timestamp>ms(e)));)n--;if(!r)return{x:0,y:0};var o=(i.timestamp-r.timestamp)/1e3;if(0===o)return{x:0,y:0};var a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function vf(t,e,n){return{min:void 0!==e?t.min+e:void 0,max:void 0!==n?t.max+n-(t.max-t.min):void 0}}function mf(t,e){var n,r=e.min-t.min,i=e.max-t.max;return e.max-e.min<t.max-t.min&&(r=(n=Hi([i,r],2))[0],i=n[1]),{min:r,max:i}}var gf=.35;function yf(t,e,n){return{min:bf(t,e),max:bf(t,n)}}function bf(t,e){var n;return"number"==typeof t?t:null!==(n=t[e])&&void 0!==n?n:0}function wf(t){var e=t.top;return{x:{min:t.left,max:t.right},y:{min:e,max:t.bottom}}}function Pf(t,e){return wf(function(t,e){if(!e)return t;var n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(t.getBoundingClientRect(),e))}var xf=new WeakMap,Ef=function(){function t(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=t}return t.prototype.start=function(t,e){var n=this,r=(void 0===e?{}:e).snapToCursor,i=void 0!==r&&r;if(!1!==this.visualElement.isPresent){this.panSession=new uf(t,{onSessionStart:function(t){n.stopAnimation(),i&&n.snapToCursor(fl(t,"page").point)},onStart:function(t,e){var r,i=n.getProps(),o=i.drag,a=i.dragPropagation,s=i.onDragStart;(!o||a||(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=Pl(o),n.openGlobalLock))&&(n.isDragging=!0,n.currentDirection=null,n.resolveConstraints(),n.visualElement.projection&&(n.visualElement.projection.isAnimationBlocked=!0,n.visualElement.projection.target=void 0),Fu((function(t){var e,r,i=n.getAxisMotionValue(t).get()||0;if(da.test(i)){var o=null===(r=null===(e=n.visualElement.projection)||void 0===e?void 0:e.layout)||void 0===r?void 0:r.actual[t];if(o)i=xu(o)*(parseFloat(i)/100)}n.originPoint[t]=i})),null==s||s(t,e),null===(r=n.visualElement.animationState)||void 0===r||r.setActive(el.Drag,!0))},onMove:function(t,e){var r=n.getProps(),i=r.dragPropagation,o=r.dragDirectionLock,a=r.onDirectionLock,s=r.onDrag;if(i||n.openGlobalLock){var u=e.offset;if(o&&null===n.currentDirection)return n.currentDirection=function(t,e){void 0===e&&(e=10);var n=null;Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x");return n}(u),void(null!==n.currentDirection&&(null==a||a(n.currentDirection)));n.updateAxis("x",e.point,u),n.updateAxis("y",e.point,u),n.visualElement.syncRender(),null==s||s(t,e)}},onSessionEnd:function(t,e){return n.stop(t,e)}},{transformPagePoint:this.visualElement.getTransformPagePoint()})}},t.prototype.stop=function(t,e){var n=this.isDragging;if(this.cancel(),n){var r=e.velocity;this.startAnimation(r);var i=this.getProps().onDragEnd;null==i||i(t,e)}},t.prototype.cancel=function(){var t,e;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(t=this.panSession)||void 0===t||t.end(),this.panSession=void 0,!this.getProps().dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(e=this.visualElement.animationState)||void 0===e||e.setActive(el.Drag,!1)},t.prototype.updateAxis=function(t,e,n){var r=this.getProps().drag;if(n&&Of(t,r,this.currentDirection)){var i=this.getAxisMotionValue(t),o=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(o=function(t,e,n){var r=e.min,i=e.max;return void 0!==r&&t<r?t=n?ko(r,t,n.min):Math.max(t,r):void 0!==i&&t>i&&(t=n?ko(i,t,n.max):Math.min(t,i)),t}(o,this.constraints[t],this.elastic[t])),i.set(o)}},t.prototype.resolveConstraints=function(){var t=this,e=this.getProps(),n=e.dragConstraints,r=e.dragElastic,i=(this.visualElement.projection||{}).layout,o=this.constraints;n&&ro(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!n||!i)&&function(t,e){var n=e.top,r=e.left,i=e.bottom,o=e.right;return{x:vf(t.x,r,o),y:vf(t.y,n,i)}}(i.actual,n),this.elastic=function(t){return void 0===t&&(t=gf),!1===t?t=0:!0===t&&(t=gf),{x:yf(t,"left","right"),y:yf(t,"top","bottom")}}(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Fu((function(e){t.getAxisMotionValue(e)&&(t.constraints[e]=function(t,e){var n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(i.actual[e],t.constraints[e]))}))},t.prototype.resolveRefConstraints=function(){var t=this.getProps(),e=t.dragConstraints,n=t.onMeasureDragConstraints;if(!e||!ro(e))return!1;var r=e.current,i=this.visualElement.projection;if(!i||!i.layout)return!1;var o=function(t,e,n){var r=Pf(t,n),i=e.scroll;return i&&(du(r.x,i.x),du(r.y,i.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),a=function(t,e){return{x:mf(t.x,e.x),y:mf(t.y,e.y)}}(i.layout.actual,o);if(n){var s=n(function(t){var e=t.x,n=t.y;return{top:n.min,right:e.max,bottom:n.max,left:e.min}}(a));this.hasMutatedConstraints=!!s,s&&(a=wf(s))}return a},t.prototype.startAnimation=function(t){var e=this,n=this.getProps(),r=n.drag,i=n.dragMomentum,o=n.dragElastic,a=n.dragTransition,s=n.dragSnapToOrigin,u=n.onDragTransitionEnd,c=this.constraints||{},l=Fu((function(n){var u;if(Of(n,r,e.currentDirection)){var l=null!==(u=null==c?void 0:c[n])&&void 0!==u?u:{};s&&(l={min:0,max:0});var f=o?200:1e6,p=o?40:1e7,d=zi(zi({type:"inertia",velocity:i?t[n]:0,bounceStiffness:f,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10},a),l);return e.startAxisValueAnimation(n,d)}}));return Promise.all(l).then(u)},t.prototype.startAxisValueAnimation=function(t,e){return Ks(t,this.getAxisMotionValue(t),0,e)},t.prototype.stopAnimation=function(){var t=this;Fu((function(e){return t.getAxisMotionValue(e).stop()}))},t.prototype.getAxisMotionValue=function(t){var e,n,r="_drag"+t.toUpperCase(),i=this.visualElement.getProps()[r];return i||this.visualElement.getValue(t,null!==(n=null===(e=this.visualElement.getProps().initial)||void 0===e?void 0:e[t])&&void 0!==n?n:0)},t.prototype.snapToCursor=function(t){var e=this;Fu((function(n){if(Of(n,e.getProps().drag,e.currentDirection)){var r=e.visualElement.projection,i=e.getAxisMotionValue(n);if(r&&r.layout){var o=r.layout.actual[n],a=o.min,s=o.max;i.set(t[n]-ko(a,s,.5))}}}))},t.prototype.scalePositionWithinConstraints=function(){var t,e=this,n=this.getProps(),r=n.drag,i=n.dragConstraints,o=this.visualElement.projection;if(ro(i)&&o&&this.constraints){this.stopAnimation();var a={x:0,y:0};Fu((function(t){var n=e.getAxisMotionValue(t);if(n){var r=n.get();a[t]=function(t,e){var n=.5,r=xu(t),i=xu(e);return i>r?n=Xo(e.min,e.max-r,t.min):r>i&&(n=Xo(t.min,t.max-i,e.min)),Fo(0,1,n)}({min:r,max:r},e.constraints[t])}}));var s=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=s?s({},""):"none",null===(t=o.root)||void 0===t||t.updateScroll(),o.updateLayout(),this.resolveConstraints(),Fu((function(t){if(Of(t,r,null)){var n=e.getAxisMotionValue(t),i=e.constraints[t],o=i.min,s=i.max;n.set(ko(o,s,a[t]))}}))}},t.prototype.addListeners=function(){var t,e=this;xf.set(this.visualElement,this);var n=ml(this.visualElement.getInstance(),"pointerdown",(function(t){var n=e.getProps(),r=n.drag,i=n.dragListener;r&&(void 0===i||i)&&e.start(t)})),r=function(){ro(e.getProps().dragConstraints)&&(e.constraints=e.resolveRefConstraints())},i=this.visualElement.projection,o=i.addEventListener("measure",r);i&&!i.layout&&(null===(t=i.root)||void 0===t||t.updateScroll(),i.updateLayout()),r();var a=il(window,"resize",(function(){e.scalePositionWithinConstraints()}));return i.addEventListener("didUpdate",(function(t){var n=t.delta,r=t.hasLayoutChanged;e.isDragging&&r&&(Fu((function(t){var r=e.getAxisMotionValue(t);r&&(e.originPoint[t]+=n[t].translate,r.set(r.get()+n[t].translate))})),e.visualElement.syncRender())})),function(){a(),n(),o()}},t.prototype.getProps=function(){var t=this.visualElement.getProps(),e=t.drag,n=void 0!==e&&e,r=t.dragDirectionLock,i=void 0!==r&&r,o=t.dragPropagation,a=void 0!==o&&o,s=t.dragConstraints,u=void 0!==s&&s,c=t.dragElastic,l=void 0===c?gf:c,f=t.dragMomentum,p=void 0===f||f;return zi(zi({},t),{drag:n,dragDirectionLock:i,dragPropagation:a,dragConstraints:u,dragElastic:l,dragMomentum:p})},t}();function Of(t,e,n){return!(!0!==e&&e!==t||null!==n&&n!==t)}var Mf={pan:jl((function(t){var e=t.onPan,n=t.onPanStart,i=t.onPanEnd,o=t.onPanSessionStart,a=t.visualElement,s=e||n||i||o,u=(0,r.useRef)(null),c=(0,r.useContext)($i).transformPagePoint,l={onSessionStart:o,onStart:n,onMove:e,onEnd:function(t,e){u.current=null,i&&i(t,e)}};(0,r.useEffect)((function(){null!==u.current&&u.current.updateHandlers(l)})),gl(a,"pointerdown",s&&function(t){u.current=new uf(t,l,{transformPagePoint:c})}),Ml((function(){return u.current&&u.current.end()}))})),drag:jl((function(t){var e=t.dragControls,n=t.visualElement,i=po((function(){return new Ef(n)}));(0,r.useEffect)((function(){return e&&e.subscribe(i)}),[i,e]),(0,r.useEffect)((function(){return i.addListeners()}),[i])}))},Cf=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","SetAxisTarget","Unmount"];var Af=function(t){var e=t.treeType,n=void 0===e?"":e,r=t.build,i=t.getBaseTarget,o=t.makeTargetAnimatable,a=t.measureViewportBox,s=t.render,u=t.readValueFromInstance,c=t.removeValueFromRenderState,l=t.sortNodePosition,f=t.scrapeMotionValuesFromProps;return function(t,e){var p=t.parent,d=t.props,h=t.presenceId,v=t.blockInitialAnimation,m=t.visualState;void 0===e&&(e={});var g,y,b=!1,w=m.latestValues,P=m.renderState,x=function(){var t=Cf.map((function(){return new Lo})),e={},n={clearAllListeners:function(){return t.forEach((function(t){return t.clear()}))},updatePropListeners:function(t){Cf.forEach((function(r){var i,o="on"+r,a=t[o];null===(i=e[r])||void 0===i||i.call(e),a&&(e[r]=n[o](a))}))}};return t.forEach((function(t,e){n["on"+Cf[e]]=function(e){return t.add(e)},n["notify"+Cf[e]]=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t.notify.apply(t,Gi([],Hi(e),!1))}})),n}(),E=new Map,O=new Map,M={},C=zi({},w);function A(){g&&b&&(T(),s(g,P,d.style,L.projection))}function T(){r(L,P,w,e,d)}function I(){x.notifyUpdate(w)}var S=f(d);for(var k in S){var _=S[k];void 0!==w[k]&&Uo(_)&&_.set(w[k],!1)}var D=uo(d),j=co(d),L=zi(zi({treeType:n,current:null,depth:p?p.depth+1:0,parent:p,children:new Set,presenceId:h,variantChildren:j?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(null==p?void 0:p.isMounted()),blockInitialAnimation:v,isMounted:function(){return Boolean(g)},mount:function(t){b=!0,g=L.current=t,L.projection&&L.projection.mount(t),j&&p&&!D&&(y=null==p?void 0:p.addVariantChild(L)),null==p||p.children.add(L),L.setProps(d)},unmount:function(){var t;null===(t=L.projection)||void 0===t||t.unmount(),Oo.update(I),Oo.render(A),O.forEach((function(t){return t()})),null==y||y(),null==p||p.children.delete(L),x.clearAllListeners(),g=void 0,b=!1},addVariantChild:function(t){var e,n=L.getClosestVariantNode();if(n)return null===(e=n.variantChildren)||void 0===e||e.add(t),function(){return n.variantChildren.delete(t)}},sortNodePosition:function(t){return l&&n===t.treeType?l(L.getInstance(),t.getInstance()):0},getClosestVariantNode:function(){return j?L:null==p?void 0:p.getClosestVariantNode()},getLayoutId:function(){return d.layoutId},getInstance:function(){return g},getStaticValue:function(t){return w[t]},setStaticValue:function(t,e){return w[t]=e},getLatestValues:function(){return w},setVisibility:function(t){L.isVisible!==t&&(L.isVisible=t,L.scheduleRender())},makeTargetAnimatable:function(t,e){return void 0===e&&(e=!0),o(L,t,d,e)},measureViewportBox:function(){return a(g,d)},addValue:function(t,e){L.hasValue(t)&&L.removeValue(t),E.set(t,e),w[t]=e.get(),function(t,e){var n=e.onChange((function(e){w[t]=e,d.onUpdate&&So.update(I,!1,!0)})),r=e.onRenderRequest(L.scheduleRender);O.set(t,(function(){n(),r()}))}(t,e)},removeValue:function(t){var e;E.delete(t),null===(e=O.get(t))||void 0===e||e(),O.delete(t),delete w[t],c(t,P)},hasValue:function(t){return E.has(t)},getValue:function(t,e){var n=E.get(t);return void 0===n&&void 0!==e&&(n=Ro(e),L.addValue(t,n)),n},forEachValue:function(t){return E.forEach(t)},readValue:function(t){var n;return null!==(n=w[t])&&void 0!==n?n:u(g,t,e)},setBaseTarget:function(t,e){C[t]=e},getBaseTarget:function(t){if(i){var e=i(d,t);if(void 0!==e&&!Uo(e))return e}return C[t]}},x),{build:function(){return T(),P},scheduleRender:function(){So.render(A,!1,!0)},syncRender:A,setProps:function(t){d=t,x.updatePropListeners(t),M=function(t,e,n){var r;for(var i in e){var o=e[i],a=n[i];if(Uo(o))t.addValue(i,o);else if(Uo(a))t.addValue(i,Ro(o));else if(a!==o)if(t.hasValue(i)){var s=t.getValue(i);!s.hasAnimated&&s.set(o)}else t.addValue(i,Ro(null!==(r=t.getStaticValue(i))&&void 0!==r?r:o))}for(var i in n)void 0===e[i]&&t.removeValue(i);return e}(L,f(d),M)},getProps:function(){return d},getVariant:function(t){var e;return null===(e=d.variants)||void 0===e?void 0:e[t]},getDefaultTransition:function(){return d.transition},getTransformPagePoint:function(){return d.transformPagePoint},getVariantContext:function(t){if(void 0===t&&(t=!1),t)return null==p?void 0:p.getVariantContext();if(!D){var e=(null==p?void 0:p.getVariantContext())||{};return void 0!==d.initial&&(e.initial=d.initial),e}for(var n={},r=0;r<If;r++){var i=Tf[r],o=d[i];(oo(o)||!1===o)&&(n[i]=o)}return n}});return L}},Tf=Gi(["initial"],Hi(tf),!1),If=Tf.length;function Sf(t){return"string"==typeof t&&t.startsWith("var(--")}var kf=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function _f(t,e,n){void 0===n&&(n=1),'Max CSS variable fallback depth detected in property "'.concat(t,'". This may indicate a circular fallback dependency.');var r=Hi(function(t){var e=kf.exec(t);if(!e)return[,];var n=Hi(e,3);return[n[1],n[2]]}(t),2),i=r[0],o=r[1];if(i){var a=window.getComputedStyle(e).getPropertyValue(i);return a?a.trim():Sf(o)?_f(o,e,n+1):o}}var Df,jf=new Set(["width","height","top","left","right","bottom","x","y"]),Lf=function(t){return jf.has(t)},Nf=function(t,e){t.set(e,!1),t.set(e)},Rf=function(t){return t===na||t===ha};!function(t){t.width="width",t.height="height",t.left="left",t.right="right",t.top="top",t.bottom="bottom"}(Df||(Df={}));var Uf=function(t,e){return parseFloat(t.split(", ")[e])},Vf=function(t,e){return function(n,r){var i=r.transform;if("none"===i||!i)return 0;var o=i.match(/^matrix3d\((.+)\)$/);if(o)return Uf(o[1],e);var a=i.match(/^matrix\((.+)\)$/);return a?Uf(a[1],t):0}},Ff=new Set(["x","y","z"]),zf=Bu.filter((function(t){return!Ff.has(t)}));var Bf={width:function(t,e){var n=t.x,r=e.paddingLeft,i=void 0===r?"0":r,o=e.paddingRight,a=void 0===o?"0":o;return n.max-n.min-parseFloat(i)-parseFloat(a)},height:function(t,e){var n=t.y,r=e.paddingTop,i=void 0===r?"0":r,o=e.paddingBottom,a=void 0===o?"0":o;return n.max-n.min-parseFloat(i)-parseFloat(a)},top:function(t,e){var n=e.top;return parseFloat(n)},left:function(t,e){var n=e.left;return parseFloat(n)},bottom:function(t,e){var n=t.y,r=e.top;return parseFloat(r)+(n.max-n.min)},right:function(t,e){var n=t.x,r=e.left;return parseFloat(r)+(n.max-n.min)},x:Vf(4,13),y:Vf(5,14)},Zf=function(t,e,n,r){void 0===n&&(n={}),void 0===r&&(r={}),e=zi({},e),r=zi({},r);var i=Object.keys(e).filter(Lf),o=[],a=!1,s=[];if(i.forEach((function(i){var u=t.getValue(i);if(t.hasValue(i)){var c,l=n[i],f=Hl(l),p=e[i];if(As(p)){var d=p.length,h=null===p[0]?1:0;l=p[h],f=Hl(l);for(var v=h;v<d;v++)c?Hl(p[v]):(c=Hl(p[v]))===f||Rf(f)&&Rf(c)}else c=Hl(p);if(f!==c)if(Rf(f)&&Rf(c)){var m=u.get();"string"==typeof m&&u.set(parseFloat(m)),"string"==typeof p?e[i]=parseFloat(p):Array.isArray(p)&&c===ha&&(e[i]=p.map(parseFloat))}else(null==f?void 0:f.transform)&&(null==c?void 0:c.transform)&&(0===l||0===p)?0===l?u.set(c.transform(l)):e[i]=f.transform(p):(a||(o=function(t){var e=[];return zf.forEach((function(n){var r=t.getValue(n);void 0!==r&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),e.length&&t.syncRender(),e}(t),a=!0),s.push(i),r[i]=void 0!==r[i]?r[i]:e[i],Nf(u,p))}})),s.length){var u=function(t,e,n){var r=e.measureViewportBox(),i=e.getInstance(),o=getComputedStyle(i),a=o.display,s={};"none"===a&&e.setStaticValue("display",t.display||"block"),n.forEach((function(t){s[t]=Bf[t](r,o)})),e.syncRender();var u=e.measureViewportBox();return n.forEach((function(n){var r=e.getValue(n);Nf(r,s[n]),t[n]=Bf[n](u,o)})),t}(e,t,s);return o.length&&o.forEach((function(e){var n=Hi(e,2),r=n[0],i=n[1];t.getValue(r).set(i)})),t.syncRender(),{target:u,transitionEnd:r}}return{target:e,transitionEnd:r}};function Hf(t,e,n,r){return function(t){return Object.keys(t).some(Lf)}(e)?Zf(t,e,n,r):{target:e,transitionEnd:r}}var Gf=function(t,e,n,r){var i=function(t,e,n){var r,i=Bi(e,[]),o=t.getInstance();if(!(o instanceof Element))return{target:i,transitionEnd:n};for(var a in n&&(n=zi({},n)),t.forEachValue((function(t){var e=t.get();if(Sf(e)){var n=_f(e,o);n&&t.set(n)}})),i){var s=i[a];if(Sf(s)){var u=_f(s,o);u&&(i[a]=u,n&&(null!==(r=n[a])&&void 0!==r||(n[a]=s)))}}return{target:i,transitionEnd:n}}(t,e,r);return Hf(t,e=i.target,n,r=i.transitionEnd)};var qf={treeType:"dom",readValueFromInstance:function(t,e){if(Gu(e)){var n=Fs(e);return n&&n.default||0}var r,i=(r=t,window.getComputedStyle(r));return(Cc(e)?i.getPropertyValue(e):i[e])||0},sortNodePosition:function(t,e){return 2&t.compareDocumentPosition(e)?1:-1},getBaseTarget:function(t,e){var n;return null===(n=t.style)||void 0===n?void 0:n[e]},measureViewportBox:function(t,e){return Pf(t,e.transformPagePoint)},resetTransform:function(t,e,n){var r=n.transformTemplate;e.style.transform=r?r({},""):"none",t.scheduleRender()},restoreTransform:function(t,e){t.style.transform=e.style.transform},removeValueFromRenderState:function(t,e){var n=e.vars,r=e.style;delete n[t],delete r[t]},makeTargetAnimatable:function(t,e,n,r){var i=n.transformValues;void 0===r&&(r=!0);var o=e.transition,a=e.transitionEnd,s=Bi(e,["transition","transitionEnd"]),u=function(t,e,n){var r,i,o={};for(var a in t)o[a]=null!==(r=Xl(a,e))&&void 0!==r?r:null===(i=n.getValue(a))||void 0===i?void 0:i.get();return o}(s,o||{},t);if(i&&(a&&(a=i(a)),s&&(s=i(s)),u&&(u=i(u))),r){!function(t,e,n){var r,i,o,a,s=Object.keys(e).filter((function(e){return!t.hasValue(e)})),u=s.length;if(u)for(var c=0;c<u;c++){var l=s[c],f=e[l],p=null;Array.isArray(f)&&(p=f[0]),null===p&&(p=null!==(i=null!==(r=n[l])&&void 0!==r?r:t.readValue(l))&&void 0!==i?i:e[l]),null!=p&&("string"==typeof p&&(/^\-?\d*\.?\d+$/.test(p)||zl(p))?p=parseFloat(p):!ql(p)&&Da.test(f)&&(p=zs(l,f)),t.addValue(l,Ro(p)),null!==(o=(a=n)[l])&&void 0!==o||(a[l]=p),t.setBaseTarget(l,p))}}(t,s,u);var c=Gf(t,s,u,a);a=c.transitionEnd,s=c.target}return zi({transition:o,transitionEnd:a},s)},scrapeMotionValuesFromProps:Xc,build:function(t,e,n,r,i){void 0!==t.isVisible&&(e.style.visibility=t.isVisible?"visible":"hidden"),Tc(e,n,r,i.transformTemplate)},render:qc},Wf=Af(qf),Yf=Af(zi(zi({},qf),{getBaseTarget:function(t,e){return t[e]},readValueFromInstance:function(t,e){var n;return Gu(e)?(null===(n=Fs(e))||void 0===n?void 0:n.default)||0:(e=Wc.has(e)?e:Gc(e),t.getAttribute(e))},scrapeMotionValuesFromProps:Kc,build:function(t,e,n,r,i){Fc(e,n,r,i.transformTemplate)},render:Yc})),Xf=function(t,e){return Ec(t)?Yf(e,{enableHardwareAcceleration:!1}):Wf(e,{enableHardwareAcceleration:!0})};function Kf(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}var $f={correct:function(t,e){if(!e.target)return t;if("string"==typeof t){if(!ha.test(t))return t;t=parseFloat(t)}var n=Kf(t,e.target.x),r=Kf(t,e.target.y);return"".concat(n,"% ").concat(r,"%")}},Jf="_$css",Qf={correct:function(t,e){var n=e.treeScale,r=e.projectionDelta,i=t,o=t.includes("var("),a=[];o&&(t=t.replace(kf,(function(t){return a.push(t),Jf})));var s=Da.parse(t);if(s.length>5)return i;var u=Da.createTransformer(t),c="number"!=typeof s[0]?1:0,l=r.x.scale*n.x,f=r.y.scale*n.y;s[0+c]/=l,s[1+c]/=f;var p=ko(l,f,.5);"number"==typeof s[2+c]&&(s[2+c]/=p),"number"==typeof s[3+c]&&(s[3+c]/=p);var d=u(s);if(o){var h=0;d=d.replace(Jf,(function(){var t=a[h];return h++,t}))}return d}},tp=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fi(e,t),e.prototype.componentDidMount=function(){var t,e=this,n=this.props,r=n.visualElement,i=n.layoutGroup,o=n.switchLayoutGroup,a=n.layoutId,s=r.projection;t=ep,Object.assign(Uu,t),s&&((null==i?void 0:i.group)&&i.group.add(s),(null==o?void 0:o.register)&&a&&o.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",(function(){e.safeToRemove()})),s.setOptions(zi(zi({},s.options),{onExitComplete:function(){return e.safeToRemove()}}))),$u.hasEverUpdated=!0},e.prototype.getSnapshotBeforeUpdate=function(t){var e=this,n=this.props,r=n.layoutDependency,i=n.visualElement,o=n.drag,a=n.isPresent,s=i.projection;return s?(s.isPresent=a,o||t.layoutDependency!==r||void 0===r?s.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?s.promote():s.relegate()||So.postRender((function(){var t;(null===(t=s.getStack())||void 0===t?void 0:t.members.length)||e.safeToRemove()}))),null):null},e.prototype.componentDidUpdate=function(){var t=this.props.visualElement.projection;t&&(t.root.didUpdate(),!t.currentAnimation&&t.isLead()&&this.safeToRemove())},e.prototype.componentWillUnmount=function(){var t=this.props,e=t.visualElement,n=t.layoutGroup,r=t.switchLayoutGroup,i=e.projection;i&&(i.scheduleCheckAfterUnmount(),(null==n?void 0:n.group)&&n.group.remove(i),(null==r?void 0:r.deregister)&&r.deregister(i))},e.prototype.safeToRemove=function(){var t=this.props.safeToRemove;null==t||t()},e.prototype.render=function(){return null},e}(r.Component);var ep={borderRadius:zi(zi({},$f),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:$f,borderTopRightRadius:$f,borderBottomLeftRadius:$f,borderBottomRightRadius:$f,boxShadow:Qf},np={measureLayout:function(t){var e=Hi(Nl(),2),n=e[0],i=e[1],o=(0,r.useContext)(gc);return r.createElement(tp,zi({},t,{layoutGroup:o,switchLayoutGroup:(0,r.useContext)(yc),isPresent:n,safeToRemove:i}))}},rp=Ju({attachResizeListener:function(t,e){return t.addEventListener("resize",e,{passive:!0}),function(){return t.removeEventListener("resize",e)}},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}}}),ip={current:void 0},op=Ju({measureScroll:function(t){return{x:t.scrollLeft,y:t.scrollTop}},defaultParent:function(){if(!ip.current){var t=new rp(0,{});t.mount(window),t.setOptions({layoutScroll:!0}),ip.current=t}return ip.current},resetTransform:function(t,e){t.style.transform=null!=e?e:"none"}}),ap=zi(zi(zi(zi({},sf),Ll),Mf),np),sp=Pc((function(t,e){return function(t,e,n,r,i){var o=e.forwardMotionProps,a=void 0!==o&&o,s=Ec(t)?nl:rl;return zi(zi({},s),{preloadedFeatures:n,useRender:Zc(a),createVisualElement:r,projectionNodeConstructor:i,Component:t})}(t,e,ap,Xf,op)}));var up=(0,i.default)(sp.div).withConfig({displayName:"menu__DimensionSelector",componentId:"sc-ayonqf-0"})(["background:transparent;"]),cp=(0,i.default)(sp.div).withConfig({displayName:"menu__SelectionHighlight",componentId:"sc-ayonqf-1"})(["background:",";height:3em;width:25em;top:100px;border-radius:2em;position:absolute;transition:0.5s;"],a.colors.accent);function lp(t){function e(){document.getElementById("selectionHighlight").style.top="calc("+document.getElementById(t.dimension.split(" ").join("")).getBoundingClientRect().top+"px - 0.8em + "+document.getElementById("sidebar").scrollTop+"px)",document.getElementById("selectionHighlight").style.width="500px",document.getElementById("selectionHighlight").style.left="-160px"}return window.addEventListener("resize",e),window.addEventListener("click",e),(0,r.useEffect)((function(){e()}),[]),r.createElement(up,{id:"dimensionSelector"},r.createElement(cp,{id:"selectionHighlight"}),t.dimensions&&t.dimensions.map((function(e,n){return r.createElement(pp,{childId:e.split(" ").join(""),key:n,dimension:e,setDimension:t.setDimension})})))}var fp=(0,i.default)(sp.p).withConfig({displayName:"menu-item__DimensionItem",componentId:"sc-d15bq3-0"})(["all:unset;font-family:",";text-transform:uppercase;display:block;margin:1em;mix-blend-mode:difference;cursor:pointer;"],a.fonts.mono);function pp(t){return r.createElement(fp,{whileHover:{scale:1.1},whileTap:{scale:.95},id:t.childId,onClick:function(){t.setDimension(t.dimension),document.getElementById("selectionHighlight").style.top="calc("+document.getElementById(t.dimension.split(" ").join("")).getBoundingClientRect().top+"px - 0.8em)"}},t.dimension)}var dp=0;function hp(){var t=dp;return dp++,t}var vp=function(t){var e=t.children,n=t.initial,i=t.isPresent,o=t.onExitComplete,a=t.custom,s=t.presenceAffectsLayout,u=po(mp),c=po(hp),l=(0,r.useMemo)((function(){return{id:c,initial:n,isPresent:i,custom:a,onExitComplete:function(t){var e,n;u.set(t,!0);try{for(var r=Zi(u.values()),i=r.next();!i.done;i=r.next()){if(!i.value)return}}catch(a){e={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}null==o||o()},register:function(t){return u.set(t,!1),function(){return u.delete(t)}}}}),s?void 0:[i]);return(0,r.useMemo)((function(){u.forEach((function(t,e){return u.set(e,!1)}))}),[i]),r.useEffect((function(){!i&&!u.size&&(null==o||o())}),[i]),r.createElement(Qi.Provider,{value:l},e)};function mp(){return new Map}function gp(t){return t.key||""}var yp=function(t){var e=t.children,n=t.custom,i=t.initial,o=void 0===i||i,a=t.onExitComplete,s=t.exitBeforeEnter,u=t.presenceAffectsLayout,c=void 0===u||u,l=Hi(function(){var t=(0,r.useRef)(!1),e=Hi((0,r.useState)(0),2),n=e[0],i=e[1];Ml((function(){return t.current=!0}));var o=(0,r.useCallback)((function(){!t.current&&i(n+1)}),[n]);return[(0,r.useCallback)((function(){return So.postRender(o)}),[o]),n]}(),1),f=l[0],p=(0,r.useContext)(gc).forceRender;p&&(f=p);var d=(0,r.useRef)(!0),h=(0,r.useRef)(!0);(0,r.useEffect)((function(){return function(){h.current=!1}}),[]);var v=function(t){var e=[];return r.Children.forEach(t,(function(t){(0,r.isValidElement)(t)&&e.push(t)})),e}(e),m=(0,r.useRef)(v),g=(0,r.useRef)(new Map).current,y=(0,r.useRef)(new Set).current;if(function(t,e){t.forEach((function(t){var n=gp(t);e.set(n,t)}))}(v,g),d.current)return d.current=!1,r.createElement(r.Fragment,null,v.map((function(t){return r.createElement(vp,{key:gp(t),isPresent:!0,initial:!!o&&void 0,presenceAffectsLayout:c},t)})));for(var b=Gi([],Hi(v),!1),w=m.current.map(gp),P=v.map(gp),x=w.length,E=0;E<x;E++){var O=w[E];-1===P.indexOf(O)?y.add(O):y.delete(O)}return s&&y.size&&(b=[]),y.forEach((function(t){if(-1===P.indexOf(t)){var e=g.get(t);if(e){var i=w.indexOf(t);b.splice(i,0,r.createElement(vp,{key:gp(e),isPresent:!1,onExitComplete:function(){g.delete(t),y.delete(t);var e=m.current.findIndex((function(e){return e.key===t}));if(m.current.splice(e,1),!y.size){if(m.current=v,!1===h.current)return;f(),a&&a()}},custom:n,presenceAffectsLayout:c},e))}}})),b=b.map((function(t){var e=t.key;return y.has(e)?t:r.createElement(vp,{key:gp(t),isPresent:!0,presenceAffectsLayout:c},t)})),m.current=b,r.createElement(r.Fragment,null,y.size?b:b.map((function(t){return(0,r.cloneElement)(t)})))},bp=(0,i.default)(sp.div).withConfig({displayName:"more-info__Container",componentId:"sc-akbfsp-0"})(["position:fixed;top:50%;left:35vw;width:30vw;height:80vh;transform:translate(0,-50%);background:",";border-radius:30px;box-shadow:0 0 20px #999999;padding:40px;overflow:scroll;scrollbar-width:none;-ms-overflow-style:none;::-webkit-scrollbar{width:0;height:0;}"],a.colors.background),wp=(0,i.default)(sp.button).withConfig({displayName:"more-info__CloseButton",componentId:"sc-akbfsp-1"})(["all:unset;font-size:50px;text-align:right;float:right;background:",";color:",";"],a.colors.background,a.colors.accent),Pp=(0,i.default)(sp.p).withConfig({displayName:"more-info__AnimatedText",componentId:"sc-akbfsp-2"})([""]),xp=i.default.a.withConfig({displayName:"more-info__OutboundLink",componentId:"sc-akbfsp-3"})([":hover{text-decoration:underline;}"]);function Ep(t){var e={beginning:{opacity:0,y:20},final:{opacity:1,y:0},exit:{opacity:0}};return r.createElement(yp,null,t.moreInfo&&r.createElement(bp,{key:"moreInfoContainer",variants:{beginning:{opacity:0},final:{opacity:1,transition:{when:"beforeChildren",staggerChildren:.1}},exit:{opacity:0}},intial:"beginning",animate:"final",exit:"exit"},r.createElement(wp,{key:"closeButton",onClick:function(){t.setMoreInfo(!1)}},"×"),r.createElement("br",null),r.createElement(Pp,{key:"1",variants:e},"Geert Hofstede, assisted by others, came up with six basic issues that society needs to come to term with in order to organize itself. These are called dimensions of culture. Each of them has been expressed on a scale that runs roughly from 0 to 100."),r.createElement(Pp,{key:"2",variants:e},'Each dimension has been derived by comparing many, but not all, countries in the world. The findings can be summarized into six world maps of the distribution of that dimension. Of course, in reality there can be quite a bit of within-country variation; these maps should be seen as rough "climate maps" of culture.'),r.createElement(Pp,{key:"3",variants:e},"This website allows you to explore the Hofstede's estimated scores for every available country and each dimension. Please do not consider this data official or static in any way. Hofstede's research methods naturally had flaws, and societal cultures are constantly shifting. Scores are just supposed to indications of general trends, and never tell the fully story of a country's people."),r.createElement(Pp,{key:"4",variants:e},"I hope this information helps people to understand and communicate with different cultures more effectively, rather than judge them. For more information about Hofstede's scientific methods, please consult the wealth of academic literature that can be found on the topic."),r.createElement(Pp,{key:"5",variants:e},"Summaries and data were taken from ",r.createElement(xp,{href:"https://geerthofstede.com/","aria-label":"Geert Hofstede",target:"_blank",rel:"noopener noreferrer"},"Geert Hofstede's website"),"."),r.createElement(Pp,{key:"6",variants:e},"Thank you so much for exploring my project! You can learn more about me at"," ",r.createElement(xp,{href:"https://rustom.dev/","aria-label":"Hofstede's Globe Source Code",target:"_blank",rel:"noopener noreferrer"},"my website")," ","and access the source code for this website on"," ",r.createElement(xp,{href:"https://github.com/rustom/hofstedes-globe","aria-label":"Hofstede's Globe Source Code",target:"_blank",rel:"noopener noreferrer"},"GitHub"),". I'd love it if you reached out to me with questions!")))}var Op=i.default.div.withConfig({displayName:"sidebar__Container",componentId:"sc-vl7o1l-0"})(["width:25vw;height:calc(100vh - 80px);position:absolute;overflow-y:scroll;scrollbar-width:none;-ms-overflow-style:none;::-webkit-scrollbar{width:0;height:0;}left:0px;top:0px;background:",";box-shadow:0 0 30px #999999;padding:40px;min-width:390px;"],a.colors.background),Mp=i.default.h1.withConfig({displayName:"sidebar__Title",componentId:"sc-vl7o1l-1"})(["position:relative;text-align:center;background:",";font-family:",";line-height:1.5em;font-weight:500;text-transform:uppercase;"],a.colors.background,a.fonts.mono),Cp=i.default.div.withConfig({displayName:"sidebar__TitleBoxLeft",componentId:"sc-vl7o1l-2"})(["position:absolute;background:",";left:28px;top:2.75em;height:3em;width:5em;"],a.colors.accent),Ap=i.default.div.withConfig({displayName:"sidebar__TitleBoxRight",componentId:"sc-vl7o1l-3"})(["position:absolute;background:",";right:25px;top:3.96em;height:3em;width:5em;"],a.colors.accent),Tp=i.default.hr.withConfig({displayName:"sidebar__Separator",componentId:"sc-vl7o1l-4"})(["width:80%;"]),Ip=i.default.button.withConfig({displayName:"sidebar__MoreInfoButton",componentId:"sc-vl7o1l-5"})(["all:unset;color:",";"],a.colors.accent);function Sp(t){return r.createElement(Op,{id:"sidebar"},r.createElement(Cp,null),r.createElement(Ap,null),r.createElement(Mp,null,"Hofstede's Globe"),r.createElement("p",{style:{paddingTop:"5%"}},"Hofstede's Globe is a tool for visualizing Geert Hofstede's 6 Cultural Dimensions."),r.createElement(Ip,{onClick:function(){t.setMoreInfo(!t.moreInfo)}},"What's that?"),r.createElement("div",{style:{fontSize:"15px"}},r.createElement("br",null),r.createElement(Tp,null),r.createElement("br",null)),r.createElement(lp,{dimensions:t.dimensions,dimension:t.dimension,setDimension:t.setDimension}),r.createElement(m,{dimension:t.dimension}))}var kp=i.default.div.withConfig({displayName:"pages__Container",componentId:"sc-ruhh6a-0"})(["position:fixed;width:100vw;height:100vh;"]),_p=["Power Distance","Individualism","Masculinity","Uncertainty Avoidance","Long Term Orientation","Indulgence"];function Dp(){var t=(0,r.useState)("Power Distance"),e=t[0],n=t[1],o=(0,r.useState)(!1),u=o[0],c=o[1];return r.createElement(r.Fragment,null,r.createElement(i.ThemeProvider,{theme:a},r.createElement(s,null),r.createElement(kp,null,r.createElement(Ui,{mapWidth:"100%",dimension:e}),r.createElement(f,null),r.createElement(Sp,{dimensions:_p,dimension:e,setDimension:n,moreInfo:u,setMoreInfo:c}),r.createElement(Ep,{moreInfo:u,setMoreInfo:c}))))}}}]);
  //# sourceMappingURL=component---src-pages-index-js-6943cd2e45773c39ed85.js.map