@patricksurry/g3
Version:
A flexible Javascript framework for building steam gauge instrument panels that display live external metrics from flight (or other) simulators like XPlane or MS FS2020
1 lines • 122 kB
JavaScript
var g3=function(e){"use strict";!function(){const e={};try{if(process)return process.env=Object.assign({},process.env),void Object.assign(process.env,e)}catch(e){}globalThis.process={env:e}}();var t=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy?"production"===process.env.NODE_ENV:e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if("production"!==process.env.NODE_ENV){var n=64===e.charCodeAt(0)&&105===e.charCodeAt(1);n&&this._alreadyInsertedOrderInsensitiveRule&&console.error("You're attempting to insert the following rule:\n"+e+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!n}if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{r.insertRule(e,r.cssRules.length)}catch(t){"production"===process.env.NODE_ENV||/:(-moz-placeholder|-ms-input-placeholder|-moz-read-write|-moz-read-only){/.test(e)||console.error('There was a problem inserting the following rule: "'+e+'"',t)}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0,"production"!==process.env.NODE_ENV&&(this._alreadyInsertedOrderInsensitiveRule=!1)},e}(),n="-ms-",r="-moz-",a="-webkit-",i="comm",o="rule",l="decl",s=Math.abs,u=String.fromCharCode;function c(e){return e.trim()}function h(e,t,n){return e.replace(t,n)}function f(e,t){return e.indexOf(t)}function p(e,t){return 0|e.charCodeAt(t)}function m(e,t,n){return e.slice(t,n)}function g(e){return e.length}function d(e){return e.length}function y(e,t){return t.push(e),e}var v=1,_=1,b=0,w=0,x=0,M="";function k(e,t,n,r,a,i,o){return{value:e,root:t,parent:n,type:r,props:a,children:i,line:v,column:_,length:o,return:""}}function A(e,t,n){return k(e,t.root,t.parent,n,t.props,t.children,0)}function C(){return x=w>0?p(M,--w):0,_--,10===x&&(_=1,v--),x}function S(){return x=w<b?p(M,w++):0,_++,10===x&&(_=1,v++),x}function E(){return p(M,w)}function N(){return w}function O(e,t){return m(M,e,t)}function $(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function z(e){return v=_=1,b=g(M=e),w=0,[]}function D(e){return M="",e}function j(e){return c(O(w-1,P(91===e?e+2:40===e?e+1:e)))}function R(e){for(;(x=E())&&x<33;)S();return $(e)>2||$(x)>3?"":" "}function T(e,t){for(;--t&&S()&&!(x<48||x>102||x>57&&x<65||x>70&&x<97););return O(e,N()+(t<6&&32==E()&&32==S()))}function P(e){for(;S();)switch(x){case e:return w;case 34:case 39:return P(34===e||39===e?e:x);case 40:41===e&&P(e);break;case 92:S()}return w}function G(e,t){for(;S()&&e+x!==57&&(e+x!==84||47!==E()););return"/*"+O(t,w-1)+"*"+u(47===e?e:S())}function L(e){for(;!$(E());)S();return O(e,w)}function q(e){return D(I("",null,null,null,[""],e=z(e),0,[0],e))}function I(e,t,n,r,a,i,o,l,s){for(var c=0,f=0,p=o,m=0,d=0,v=0,_=1,b=1,w=1,x=0,M="",k=a,A=i,O=r,$=M;b;)switch(v=x,x=S()){case 34:case 39:case 91:case 40:$+=j(x);break;case 9:case 10:case 13:case 32:$+=R(v);break;case 92:$+=T(N()-1,7);continue;case 47:switch(E()){case 42:case 47:y(K(G(S(),N()),t,n),s);break;default:$+="/"}break;case 123*_:l[c++]=g($)*w;case 125*_:case 59:case 0:switch(x){case 0:case 125:b=0;case 59+f:d>0&&g($)-p&&y(d>32?B($+";",r,n,p-1):B(h($," ","")+";",r,n,p-2),s);break;case 59:$+=";";default:if(y(O=V($,t,n,c,f,a,l,M,k=[],A=[],p),i),123===x)if(0===f)I($,t,O,O,k,i,p,l,A);else switch(m){case 100:case 109:case 115:I(e,O,O,r&&y(V(e,O,O,0,0,a,l,M,a,k=[],p),A),a,A,p,l,r?k:A);break;default:I($,O,O,O,[""],A,p,l,A)}}c=f=d=0,_=w=1,M=$="",p=o;break;case 58:p=1+g($),d=v;default:if(_<1)if(123==x)--_;else if(125==x&&0==_++&&125==C())continue;switch($+=u(x),x*_){case 38:w=f>0?1:($+="\f",-1);break;case 44:l[c++]=(g($)-1)*w,w=1;break;case 64:45===E()&&($+=j(S())),m=E(),f=g(M=$+=L(N())),x++;break;case 45:45===v&&2==g($)&&(_=0)}}return i}function V(e,t,n,r,a,i,l,u,f,p,g){for(var y=a-1,v=0===a?i:[""],_=d(v),b=0,w=0,x=0;b<r;++b)for(var M=0,A=m(e,y+1,y=s(w=l[b])),C=e;M<_;++M)(C=c(w>0?v[M]+" "+A:h(A,/&\f/g,v[M])))&&(f[x++]=C);return k(e,t,n,0===a?o:u,f,p,g)}function K(e,t,n){return k(e,t,n,i,u(x),m(e,2,-2),0)}function B(e,t,n,r){return k(e,t,n,l,m(e,0,r),m(e,r+1,-1),r)}function H(e,t){switch(function(e,t){return(((t<<2^p(e,0))<<2^p(e,1))<<2^p(e,2))<<2^p(e,3)}(e,t)){case 5103:return a+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return a+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return a+e+r+e+n+e+e;case 6828:case 4268:return a+e+n+e+e;case 6165:return a+e+n+"flex-"+e+e;case 5187:return a+e+h(e,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+e;case 5443:return a+e+n+"flex-item-"+h(e,/flex-|-self/,"")+e;case 4675:return a+e+n+"flex-line-pack"+h(e,/align-content|flex-|-self/,"")+e;case 5548:return a+e+n+h(e,"shrink","negative")+e;case 5292:return a+e+n+h(e,"basis","preferred-size")+e;case 6060:return a+"box-"+h(e,"-grow","")+a+e+n+h(e,"grow","positive")+e;case 4554:return a+h(e,/([^-])(transform)/g,"$1-webkit-$2")+e;case 6187:return h(h(h(e,/(zoom-|grab)/,a+"$1"),/(image-set)/,a+"$1"),e,"")+e;case 5495:case 3959:return h(e,/(image-set\([^]*)/,a+"$1$`$1");case 4968:return h(h(e,/(.+:)(flex-)?(.*)/,"-webkit-box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+a+e+e;case 4095:case 3583:case 4068:case 2532:return h(e,/(.+)-inline(.+)/,a+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(g(e)-1-t>6)switch(p(e,t+1)){case 109:if(45!==p(e,t+4))break;case 102:return h(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1"+r+(108==p(e,t+3)?"$3":"$2-$3"))+e;case 115:return~f(e,"stretch")?H(h(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==p(e,t+1))break;case 6444:switch(p(e,g(e)-3-(~f(e,"!important")&&10))){case 107:return h(e,":",":"+a)+e;case 101:return h(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+a+(45===p(e,14)?"inline-":"")+"box$3$1"+a+"$2$3$1"+n+"$2box$3")+e}break;case 5936:switch(p(e,t+11)){case 114:return a+e+n+h(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return a+e+n+h(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return a+e+n+h(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return a+e+n+e+e}return e}function F(e,t){for(var n="",r=d(e),a=0;a<r;a++)n+=t(e[a],a,e,t)||"";return n}function U(e,t,n,r){switch(e.type){case"@import":case l:return e.return=e.return||e.value;case i:return"";case o:e.value=e.props.join(",")}return g(n=F(e.children,r))?e.return=e.value+"{"+n+"}":""}function W(e){var t=d(e);return function(n,r,a,i){for(var o="",l=0;l<t;l++)o+=e[l](n,r,a,i)||"";return o}}function Y(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var X,J,Q=function(e,t){return D(function(e,t){var n=-1,r=44;do{switch($(r)){case 0:38===r&&12===E()&&(t[n]=1),e[n]+=L(w-1);break;case 2:e[n]+=j(r);break;case 4:if(44===r){e[++n]=58===E()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=u(r)}}while(r=S());return e}(z(e),t))},Z=new WeakMap,ee=function(e){if("rule"===e.type&&e.parent&&e.length){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Z.get(n))&&!r){Z.set(e,!0);for(var a=[],i=Q(t,a),o=n.props,l=0,s=0;l<i.length;l++)for(var u=0;u<o.length;u++,s++)e.props[s]=a[l]?i[l].replace(/&\f/g,o[u]):o[u]+" "+i[l]}}},te=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},ne=function(e){return 105===e.type.charCodeAt(1)&&64===e.type.charCodeAt(0)},re=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},ae=function(e,t,n){ne(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),re(e)):function(e,t){for(var n=e-1;n>=0;n--)if(!ne(t[n]))return!0;return!1}(t,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),re(e)))},ie="undefined"!=typeof document,oe=ie?void 0:(X=function(){return Y((function(){var e={};return function(t){return e[t]}}))},J=new WeakMap,function(e){if(J.has(e))return J.get(e);var t=X(e);return J.set(e,t),t}),le=[function(e,t,r,i){if(!e.return)switch(e.type){case l:e.return=H(e.value,e.length);break;case"@keyframes":return F([A(h(e.value,"@","@"+a),e,"")],i);case o:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return F([A(h(t,/:(read-\w+)/,":-moz-$1"),e,"")],i);case"::placeholder":return F([A(h(t,/:(plac\w+)/,":-webkit-input-$1"),e,""),A(h(t,/:(plac\w+)/,":-moz-$1"),e,""),A(h(t,/:(plac\w+)/,n+"input-$1"),e,"")],i)}return""}))}}],se=function(e){var n=e.key;if("production"!==process.env.NODE_ENV&&!n)throw new Error("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\nIf multiple caches share the same key they might \"fight\" for each other's style elements.");if(ie&&"css"===n){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var a=e.stylisPlugins||le;if("production"!==process.env.NODE_ENV&&/[^a-z-]/.test(n))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+n+'" was passed');var o,l,s={},u=[];ie&&(o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)s[t[n]]=!0;u.push(e)})));var c,h=[ee,te];if("production"!==process.env.NODE_ENV&&h.push(function(e){return function(t,n,r){if("rule"===t.type){var a,i=t.value.match(/(:first|:nth|:nth-last)-child/g);if(i&&!0!==e.compat){var o=n>0?r[n-1]:null;if(o&&function(e){return!!e&&"comm"===e.type&&e.children.indexOf("emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason")>-1}((a=o.children).length?a[a.length-1]:null))return;i.forEach((function(e){console.error('The pseudo class "'+e+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+e.split("-child")[0]+'-of-type".')}))}}}}({get compat(){return _.compat}}),ae),ie){var f,p=[U,"production"!==process.env.NODE_ENV?function(e){e.root||(e.return?f.insert(e.return):e.value&&e.type!==i&&f.insert(e.value+"{}"))}:(c=function(e){f.insert(e)},function(e){e.root||(e=e.return)&&c(e)})],m=W(h.concat(a,p));l=function(e,t,n,r){f=n,"production"!==process.env.NODE_ENV&&void 0!==t.map&&(f={insert:function(e){n.insert(e+t.map)}}),F(q(e?e+"{"+t.styles+"}":t.styles),m),r&&(_.inserted[t.name]=!0)}}else{var g=[U],d=W(h.concat(a,g)),y=oe(a)(n),v=function(e,t){var n=t.name;return void 0===y[n]&&(y[n]=F(q(e?e+"{"+t.styles+"}":t.styles),d)),y[n]};l=function(e,t,n,r){var a=t.name,i=v(e,t);return void 0===_.compat?(r&&(_.inserted[a]=!0),"development"===process.env.NODE_ENV&&void 0!==t.map?i+t.map:i):r?void(_.inserted[a]=i):i}}var _={key:n,sheet:new t({key:n,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend}),nonce:e.nonce,inserted:s,registered:{},insert:l};return _.sheet.hydrate(u),_};var ue={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ce="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",he="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",fe=/[A-Z]|^ms/g,pe=/_EMO_([^_]+?)_([^]*?)_EMO_/g,me=function(e){return 45===e.charCodeAt(1)},ge=function(e){return null!=e&&"boolean"!=typeof e},de=Y((function(e){return me(e)?e:e.replace(fe,"-$&").toLowerCase()})),ye=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(pe,(function(e,t,n){return Ce={name:t,styles:n,next:Ce},t}))}return 1===ue[e]||me(e)||"number"!=typeof t||0===t?t:t+"px"};if("production"!==process.env.NODE_ENV){var ve=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,_e=["normal","none","initial","inherit","unset"],be=ye,we=/^-ms-/,xe=/-(.)/g,Me={};ye=function(e,t){if("content"===e&&("string"!=typeof t||-1===_e.indexOf(t)&&!ve.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||'"'!==t.charAt(0)&&"'"!==t.charAt(0))))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+t+"\"'`");var n=be(e,t);return""===n||me(e)||-1===e.indexOf("-")||void 0!==Me[e]||(Me[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(we,"ms-").replace(xe,(function(e,t){return t.toUpperCase()}))+"?")),n}}function ke(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles){if("production"!==process.env.NODE_ENV&&"NO_COMPONENT_SELECTOR"===n.toString())throw new Error("Component selectors can only be used in conjunction with @emotion/babel-plugin.");return n}switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return Ce={name:n.name,styles:n.styles,next:Ce},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)Ce={name:r.name,styles:r.styles,next:Ce},r=r.next;var a=n.styles+";";return"production"!==process.env.NODE_ENV&&void 0!==n.map&&(a+=n.map),a}return function(e,t,n){var r="";if(Array.isArray(n))for(var a=0;a<n.length;a++)r+=ke(e,t,n[a])+";";else for(var i in n){var o=n[i];if("object"!=typeof o)null!=t&&void 0!==t[o]?r+=i+"{"+t[o]+"}":ge(o)&&(r+=de(i)+":"+ye(i,o)+";");else{if("NO_COMPONENT_SELECTOR"===i&&"production"!==process.env.NODE_ENV)throw new Error("Component selectors can only be used in conjunction with @emotion/babel-plugin.");if(!Array.isArray(o)||"string"!=typeof o[0]||null!=t&&void 0!==t[o[0]]){var l=ke(e,t,o);switch(i){case"animation":case"animationName":r+=de(i)+":"+l+";";break;default:"production"!==process.env.NODE_ENV&&"undefined"===i&&console.error(he),r+=i+"{"+l+"}"}}else for(var s=0;s<o.length;s++)ge(o[s])&&(r+=de(i)+":"+ye(i,o[s])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var i=Ce,o=n(e);return Ce=i,ke(e,t,o)}"production"!==process.env.NODE_ENV&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break;case"string":if("production"!==process.env.NODE_ENV){var l=[],s=n.replace(pe,(function(e,t,n){var r="animation"+l.length;return l.push("const "+r+" = keyframes`"+n.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+r+"}"}));l.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(l,["`"+s+"`"]).join("\n")+"\n\nYou should wrap it with `css` like this:\n\ncss`"+s+"`")}}if(null==t)return n;var u=t[n];return void 0!==u?u:n}var Ae,Ce,Se=/label:\s*([^\s;\n{]+)\s*(;|$)/g;"production"!==process.env.NODE_ENV&&(Ae=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var Ee=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,a="";Ce=void 0;var i,o=e[0];null==o||void 0===o.raw?(r=!1,a+=ke(n,t,o)):("production"!==process.env.NODE_ENV&&void 0===o[0]&&console.error(ce),a+=o[0]);for(var l=1;l<e.length;l++)a+=ke(n,t,e[l]),r&&("production"!==process.env.NODE_ENV&&void 0===o[l]&&console.error(ce),a+=o[l]);"production"!==process.env.NODE_ENV&&(a=a.replace(Ae,(function(e){return i=e,""}))),Se.lastIndex=0;for(var s,u="";null!==(s=Se.exec(a));)u+="-"+s[1];var c=function(e){for(var t,n=0,r=0,a=e.length;a>=4;++r,a-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(a){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(a)+u;return"production"!==process.env.NODE_ENV?{name:c,styles:a,map:i,next:Ce,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:c,styles:a,next:Ce}},Ne="undefined"!=typeof document;function Oe(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var $e=function(e,t,n){var r=e.key+"-"+t.name;if((!1===n||!1===Ne&&void 0!==e.compat)&&void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var a="",i=t;do{var o=e.insert(t===i?"."+r:"",i,e.sheet,!0);Ne||void 0===o||(a+=o),i=i.next}while(void 0!==i);if(!Ne&&0!==a.length)return a}};function ze(e,t){if(void 0===e.inserted[t.name])return e.insert("",t,e.sheet,!0)}function De(e,t,n){var r=[],a=Oe(e,r,n);return r.length<2?n:a+t(r)}var je=function e(t){for(var n="",r=0;r<t.length;r++){var a=t[r];if(null!=a){var i=void 0;switch(typeof a){case"boolean":break;case"object":if(Array.isArray(a))i=e(a);else for(var o in i="",a)a[o]&&o&&(i&&(i+=" "),i+=o);break;default:i=a}i&&(n&&(n+=" "),n+=i)}}return n},Re=function(e){var t=se(e);t.sheet.speedy=function(e){if("production"!==process.env.NODE_ENV&&0!==this.ctr)throw new Error("speedy must be changed before any rules are inserted");this.isSpeedy=e},t.compat=!0;var n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var a=Ee(n,t.registered,void 0);return $e(t,a,!1),t.key+"-"+a.name};return{css:n,cx:function(){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return De(t.registered,n,je(r))},injectGlobal:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var a=Ee(n,t.registered);ze(t,a)},keyframes:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var a=Ee(n,t.registered),i="animation-"+a.name;return ze(t,{name:a.name,styles:"@keyframes "+i+"{"+a.styles+"}"}),i},hydrate:function(e){e.forEach((function(e){t.inserted[e]=!0}))},flush:function(){t.registered={},t.inserted={},t.sheet.flush()},sheet:t.sheet,cache:t,getRegisteredStyles:Oe.bind(null,t.registered),merge:De.bind(null,t.registered,n)}}({key:"css"}),Te=Re.injectGlobal,Pe=Re.css;function Ge(e,t,n){e=+e,t=+t,n=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+n;for(var r=-1,a=0|Math.max(0,Math.ceil((t-e)/n)),i=new Array(a);++r<a;)i[r]=e+r*n;return i}var Le={value:()=>{}};function qe(){for(var e,t=0,n=arguments.length,r={};t<n;++t){if(!(e=arguments[t]+"")||e in r||/[\s.]/.test(e))throw new Error("illegal type: "+e);r[e]=[]}return new Ie(r)}function Ie(e){this._=e}function Ve(e,t){return e.trim().split(/^|\s+/).map((function(e){var n="",r=e.indexOf(".");if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:n}}))}function Ke(e,t){for(var n,r=0,a=e.length;r<a;++r)if((n=e[r]).name===t)return n.value}function Be(e,t,n){for(var r=0,a=e.length;r<a;++r)if(e[r].name===t){e[r]=Le,e=e.slice(0,r).concat(e.slice(r+1));break}return null!=n&&e.push({name:t,value:n}),e}Ie.prototype=qe.prototype={constructor:Ie,on:function(e,t){var n,r=this._,a=Ve(e+"",r),i=-1,o=a.length;if(!(arguments.length<2)){if(null!=t&&"function"!=typeof t)throw new Error("invalid callback: "+t);for(;++i<o;)if(n=(e=a[i]).type)r[n]=Be(r[n],e.name,t);else if(null==t)for(n in r)r[n]=Be(r[n],e.name,null);return this}for(;++i<o;)if((n=(e=a[i]).type)&&(n=Ke(r[n],e.name)))return n},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new Ie(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,r,a=new Array(n),i=0;i<n;++i)a[i]=arguments[i+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(i=0,n=(r=this._[e]).length;i<n;++i)r[i].value.apply(t,a)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],a=0,i=r.length;a<i;++a)r[a].value.apply(t,n)}};var He="http://www.w3.org/1999/xhtml",Fe={svg:"http://www.w3.org/2000/svg",xhtml:He,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Ue(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),Fe.hasOwnProperty(t)?{space:Fe[t],local:e}:e}function We(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===He&&t.documentElement.namespaceURI===He?t.createElement(e):t.createElementNS(n,e)}}function Ye(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Xe(e){var t=Ue(e);return(t.local?Ye:We)(t)}function Je(){}function Qe(e){return null==e?Je:function(){return this.querySelector(e)}}function Ze(e){return null==e?[]:Array.isArray(e)?e:Array.from(e)}function et(){return[]}function tt(e){return null==e?et:function(){return this.querySelectorAll(e)}}function nt(e){return function(){return this.matches(e)}}function rt(e){return function(t){return t.matches(e)}}var at=Array.prototype.find;function it(){return this.firstElementChild}var ot=Array.prototype.filter;function lt(){return Array.from(this.children)}function st(e){return new Array(e.length)}function ut(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function ct(e){return function(){return e}}function ht(e,t,n,r,a,i){for(var o,l=0,s=t.length,u=i.length;l<u;++l)(o=t[l])?(o.__data__=i[l],r[l]=o):n[l]=new ut(e,i[l]);for(;l<s;++l)(o=t[l])&&(a[l]=o)}function ft(e,t,n,r,a,i,o){var l,s,u,c=new Map,h=t.length,f=i.length,p=new Array(h);for(l=0;l<h;++l)(s=t[l])&&(p[l]=u=o.call(s,s.__data__,l,t)+"",c.has(u)?a[l]=s:c.set(u,s));for(l=0;l<f;++l)u=o.call(e,i[l],l,i)+"",(s=c.get(u))?(r[l]=s,s.__data__=i[l],c.delete(u)):n[l]=new ut(e,i[l]);for(l=0;l<h;++l)(s=t[l])&&c.get(p[l])===s&&(a[l]=s)}function pt(e){return e.__data__}function mt(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function gt(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function dt(e){return function(){this.removeAttribute(e)}}function yt(e){return function(){this.removeAttributeNS(e.space,e.local)}}function vt(e,t){return function(){this.setAttribute(e,t)}}function _t(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function bt(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function wt(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function xt(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Mt(e){return function(){this.style.removeProperty(e)}}function kt(e,t,n){return function(){this.style.setProperty(e,t,n)}}function At(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function Ct(e,t){return e.style.getPropertyValue(t)||xt(e).getComputedStyle(e,null).getPropertyValue(t)}function St(e){return function(){delete this[e]}}function Et(e,t){return function(){this[e]=t}}function Nt(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function Ot(e){return e.trim().split(/^|\s+/)}function $t(e){return e.classList||new zt(e)}function zt(e){this._node=e,this._names=Ot(e.getAttribute("class")||"")}function Dt(e,t){for(var n=$t(e),r=-1,a=t.length;++r<a;)n.add(t[r])}function jt(e,t){for(var n=$t(e),r=-1,a=t.length;++r<a;)n.remove(t[r])}function Rt(e){return function(){Dt(this,e)}}function Tt(e){return function(){jt(this,e)}}function Pt(e,t){return function(){(t.apply(this,arguments)?Dt:jt)(this,e)}}function Gt(){this.textContent=""}function Lt(e){return function(){this.textContent=e}}function qt(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function It(){this.innerHTML=""}function Vt(e){return function(){this.innerHTML=e}}function Kt(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function Bt(){this.nextSibling&&this.parentNode.appendChild(this)}function Ht(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Ft(){return null}function Ut(){var e=this.parentNode;e&&e.removeChild(this)}function Wt(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Yt(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Xt(e){return e.trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}))}function Jt(e){return function(){var t=this.__on;if(t){for(var n,r=0,a=-1,i=t.length;r<i;++r)n=t[r],e.type&&n.type!==e.type||n.name!==e.name?t[++a]=n:this.removeEventListener(n.type,n.listener,n.options);++a?t.length=a:delete this.__on}}}function Qt(e,t,n){return function(){var r,a=this.__on,i=function(e){return function(t){e.call(this,t,this.__data__)}}(t);if(a)for(var o=0,l=a.length;o<l;++o)if((r=a[o]).type===e.type&&r.name===e.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=i,r.options=n),void(r.value=t);this.addEventListener(e.type,i,n),r={type:e.type,name:e.name,value:t,listener:i,options:n},a?a.push(r):this.__on=[r]}}function Zt(e,t,n){var r=xt(e),a=r.CustomEvent;"function"==typeof a?a=new a(t,n):(a=r.document.createEvent("Event"),n?(a.initEvent(t,n.bubbles,n.cancelable),a.detail=n.detail):a.initEvent(t,!1,!1)),e.dispatchEvent(a)}function en(e,t){return function(){return Zt(this,e,t)}}function tn(e,t){return function(){return Zt(this,e,t.apply(this,arguments))}}ut.prototype={constructor:ut,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}},zt.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var nn=[null];function rn(e,t){this._groups=e,this._parents=t}function an(){return new rn([[document.documentElement]],nn)}function on(e){return"string"==typeof e?new rn([[document.querySelector(e)]],[document.documentElement]):new rn([[e]],nn)}function ln(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function sn(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function un(){}rn.prototype=an.prototype={constructor:rn,select:function(e){"function"!=typeof e&&(e=Qe(e));for(var t=this._groups,n=t.length,r=new Array(n),a=0;a<n;++a)for(var i,o,l=t[a],s=l.length,u=r[a]=new Array(s),c=0;c<s;++c)(i=l[c])&&(o=e.call(i,i.__data__,c,l))&&("__data__"in i&&(o.__data__=i.__data__),u[c]=o);return new rn(r,this._parents)},selectAll:function(e){e="function"==typeof e?function(e){return function(){return Ze(e.apply(this,arguments))}}(e):tt(e);for(var t=this._groups,n=t.length,r=[],a=[],i=0;i<n;++i)for(var o,l=t[i],s=l.length,u=0;u<s;++u)(o=l[u])&&(r.push(e.call(o,o.__data__,u,l)),a.push(o));return new rn(r,a)},selectChild:function(e){return this.select(null==e?it:function(e){return function(){return at.call(this.children,e)}}("function"==typeof e?e:rt(e)))},selectChildren:function(e){return this.selectAll(null==e?lt:function(e){return function(){return ot.call(this.children,e)}}("function"==typeof e?e:rt(e)))},filter:function(e){"function"!=typeof e&&(e=nt(e));for(var t=this._groups,n=t.length,r=new Array(n),a=0;a<n;++a)for(var i,o=t[a],l=o.length,s=r[a]=[],u=0;u<l;++u)(i=o[u])&&e.call(i,i.__data__,u,o)&&s.push(i);return new rn(r,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,pt);var n=t?ft:ht,r=this._parents,a=this._groups;"function"!=typeof e&&(e=ct(e));for(var i=a.length,o=new Array(i),l=new Array(i),s=new Array(i),u=0;u<i;++u){var c=r[u],h=a[u],f=h.length,p=mt(e.call(c,c&&c.__data__,u,r)),m=p.length,g=l[u]=new Array(m),d=o[u]=new Array(m),y=s[u]=new Array(f);n(c,h,g,d,y,p,t);for(var v,_,b=0,w=0;b<m;++b)if(v=g[b]){for(b>=w&&(w=b+1);!(_=d[w])&&++w<m;);v._next=_||null}}return(o=new rn(o,r))._enter=l,o._exit=s,o},enter:function(){return new rn(this._enter||this._groups.map(st),this._parents)},exit:function(){return new rn(this._exit||this._groups.map(st),this._parents)},join:function(e,t,n){var r=this.enter(),a=this,i=this.exit();return"function"==typeof e?(r=e(r))&&(r=r.selection()):r=r.append(e+""),null!=t&&(a=t(a))&&(a=a.selection()),null==n?i.remove():n(i),r&&a?r.merge(a).order():a},merge:function(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,a=n.length,i=r.length,o=Math.min(a,i),l=new Array(a),s=0;s<o;++s)for(var u,c=n[s],h=r[s],f=c.length,p=l[s]=new Array(f),m=0;m<f;++m)(u=c[m]||h[m])&&(p[m]=u);for(;s<a;++s)l[s]=n[s];return new rn(l,this._parents)},selection:function(){return this},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r,a=e[t],i=a.length-1,o=a[i];--i>=0;)(r=a[i])&&(o&&4^r.compareDocumentPosition(o)&&o.parentNode.insertBefore(r,o),o=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=gt);for(var n=this._groups,r=n.length,a=new Array(r),i=0;i<r;++i){for(var o,l=n[i],s=l.length,u=a[i]=new Array(s),c=0;c<s;++c)(o=l[c])&&(u[c]=o);u.sort(t)}return new rn(a,this._parents).order()},call:function(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],a=0,i=r.length;a<i;++a){var o=r[a];if(o)return o}return null},size:function(){let e=0;for(const t of this)++e;return e},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var a,i=t[n],o=0,l=i.length;o<l;++o)(a=i[o])&&e.call(a,a.__data__,o,i);return this},attr:function(e,t){var n=Ue(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==t?n.local?yt:dt:"function"==typeof t?n.local?wt:bt:n.local?_t:vt)(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?Mt:"function"==typeof t?At:kt)(e,t,null==n?"":n)):Ct(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?St:"function"==typeof t?Nt:Et)(e,t)):this.node()[e]},classed:function(e,t){var n=Ot(e+"");if(arguments.length<2){for(var r=$t(this.node()),a=-1,i=n.length;++a<i;)if(!r.contains(n[a]))return!1;return!0}return this.each(("function"==typeof t?Pt:t?Rt:Tt)(n,t))},text:function(e){return arguments.length?this.each(null==e?Gt:("function"==typeof e?qt:Lt)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?It:("function"==typeof e?Kt:Vt)(e)):this.node().innerHTML},raise:function(){return this.each(Bt)},lower:function(){return this.each(Ht)},append:function(e){var t="function"==typeof e?e:Xe(e);return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var n="function"==typeof e?e:Xe(e),r=null==t?Ft:"function"==typeof t?t:Qe(t);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(Ut)},clone:function(e){return this.select(e?Yt:Wt)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var r,a,i=Xt(e+""),o=i.length;if(!(arguments.length<2)){for(l=t?Qt:Jt,r=0;r<o;++r)this.each(l(i[r],t,n));return this}var l=this.node().__on;if(l)for(var s,u=0,c=l.length;u<c;++u)for(r=0,s=l[u];r<o;++r)if((a=i[r]).type===s.type&&a.name===s.name)return s.value},dispatch:function(e,t){return this.each(("function"==typeof t?tn:en)(e,t))},[Symbol.iterator]:function*(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r,a=e[t],i=0,o=a.length;i<o;++i)(r=a[i])&&(yield r)}};var cn=.7,hn=1/cn,fn="\\s*([+-]?\\d+)\\s*",pn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",mn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",gn=/^#([0-9a-f]{3,8})$/,dn=new RegExp("^rgb\\("+[fn,fn,fn]+"\\)$"),yn=new RegExp("^rgb\\("+[mn,mn,mn]+"\\)$"),vn=new RegExp("^rgba\\("+[fn,fn,fn,pn]+"\\)$"),_n=new RegExp("^rgba\\("+[mn,mn,mn,pn]+"\\)$"),bn=new RegExp("^hsl\\("+[pn,mn,mn]+"\\)$"),wn=new RegExp("^hsla\\("+[pn,mn,mn,pn]+"\\)$"),xn={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Mn(){return this.rgb().formatHex()}function kn(){return this.rgb().formatRgb()}function An(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=gn.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Cn(t):3===n?new On(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Sn(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Sn(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=dn.exec(e))?new On(t[1],t[2],t[3],1):(t=yn.exec(e))?new On(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=vn.exec(e))?Sn(t[1],t[2],t[3],t[4]):(t=_n.exec(e))?Sn(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=bn.exec(e))?jn(t[1],t[2]/100,t[3]/100,1):(t=wn.exec(e))?jn(t[1],t[2]/100,t[3]/100,t[4]):xn.hasOwnProperty(e)?Cn(xn[e]):"transparent"===e?new On(NaN,NaN,NaN,0):null}function Cn(e){return new On(e>>16&255,e>>8&255,255&e,1)}function Sn(e,t,n,r){return r<=0&&(e=t=n=NaN),new On(e,t,n,r)}function En(e){return e instanceof un||(e=An(e)),e?new On((e=e.rgb()).r,e.g,e.b,e.opacity):new On}function Nn(e,t,n,r){return 1===arguments.length?En(e):new On(e,t,n,null==r?1:r)}function On(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function $n(){return"#"+Dn(this.r)+Dn(this.g)+Dn(this.b)}function zn(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function Dn(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function jn(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Tn(e,t,n,r)}function Rn(e){if(e instanceof Tn)return new Tn(e.h,e.s,e.l,e.opacity);if(e instanceof un||(e=An(e)),!e)return new Tn;if(e instanceof Tn)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,a=Math.min(t,n,r),i=Math.max(t,n,r),o=NaN,l=i-a,s=(i+a)/2;return l?(o=t===i?(n-r)/l+6*(n<r):n===i?(r-t)/l+2:(t-n)/l+4,l/=s<.5?i+a:2-i-a,o*=60):l=s>0&&s<1?0:o,new Tn(o,l,s,e.opacity)}function Tn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Pn(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}ln(un,An,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:Mn,formatHex:Mn,formatHsl:function(){return Rn(this).formatHsl()},formatRgb:kn,toString:kn}),ln(On,Nn,sn(un,{brighter:function(e){return e=null==e?hn:Math.pow(hn,e),new On(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?cn:Math.pow(cn,e),new On(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:$n,formatHex:$n,formatRgb:zn,toString:zn})),ln(Tn,(function(e,t,n,r){return 1===arguments.length?Rn(e):new Tn(e,t,n,null==r?1:r)}),sn(un,{brighter:function(e){return e=null==e?hn:Math.pow(hn,e),new Tn(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?cn:Math.pow(cn,e),new Tn(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,a=2*n-r;return new On(Pn(e>=240?e-240:e+120,a,r),Pn(e,a,r),Pn(e<120?e+240:e-120,a,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));var Gn=e=>()=>e;function Ln(e){return 1==(e=+e)?qn:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):Gn(isNaN(t)?n:t)}}function qn(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):Gn(isNaN(e)?t:e)}var In=function e(t){var n=Ln(t);function r(e,t){var r=n((e=Nn(e)).r,(t=Nn(t)).r),a=n(e.g,t.g),i=n(e.b,t.b),o=qn(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=a(t),e.b=i(t),e.opacity=o(t),e+""}}return r.gamma=e,r}(1);function Vn(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,a=t.slice();return function(i){for(n=0;n<r;++n)a[n]=e[n]*(1-i)+t[n]*i;return a}}function Kn(e,t){var n,r=t?t.length:0,a=e?Math.min(r,e.length):0,i=new Array(a),o=new Array(r);for(n=0;n<a;++n)i[n]=Xn(e[n],t[n]);for(;n<r;++n)o[n]=t[n];return function(e){for(n=0;n<a;++n)o[n]=i[n](e);return o}}function Bn(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Hn(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Fn(e,t){var n,r={},a={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=Xn(e[n],t[n]):a[n]=t[n];return function(e){for(n in r)a[n]=r[n](e);return a}}var Un=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Wn=new RegExp(Un.source,"g");function Yn(e,t){var n,r,a,i=Un.lastIndex=Wn.lastIndex=0,o=-1,l=[],s=[];for(e+="",t+="";(n=Un.exec(e))&&(r=Wn.exec(t));)(a=r.index)>i&&(a=t.slice(i,a),l[o]?l[o]+=a:l[++o]=a),(n=n[0])===(r=r[0])?l[o]?l[o]+=r:l[++o]=r:(l[++o]=null,s.push({i:o,x:Hn(n,r)})),i=Wn.lastIndex;return i<t.length&&(a=t.slice(i),l[o]?l[o]+=a:l[++o]=a),l.length<2?s[0]?function(e){return function(t){return e(t)+""}}(s[0].x):function(e){return function(){return e}}(t):(t=s.length,function(e){for(var n,r=0;r<t;++r)l[(n=s[r]).i]=n.x(e);return l.join("")})}function Xn(e,t){var n,r=typeof t;return null==t||"boolean"===r?Gn(t):("number"===r?Hn:"string"===r?(n=An(t))?(t=n,In):Yn:t instanceof An?In:t instanceof Date?Bn:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?Vn:Array.isArray(t)?Kn:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?Fn:Hn)(e,t)}function Jn(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var Qn,Zn=180/Math.PI,er={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function tr(e,t,n,r,a,i){var o,l,s;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(s=e*n+t*r)&&(n-=e*s,r-=t*s),(l=Math.sqrt(n*n+r*r))&&(n/=l,r/=l,s/=l),e*r<t*n&&(e=-e,t=-t,s=-s,o=-o),{translateX:a,translateY:i,rotate:Math.atan2(t,e)*Zn,skewX:Math.atan(s)*Zn,scaleX:o,scaleY:l}}function nr(e,t,n,r){function a(e){return e.length?e.pop()+" ":""}return function(i,o){var l=[],s=[];return i=e(i),o=e(o),function(e,r,a,i,o,l){if(e!==a||r!==i){var s=o.push("translate(",null,t,null,n);l.push({i:s-4,x:Hn(e,a)},{i:s-2,x:Hn(r,i)})}else(a||i)&&o.push("translate("+a+t+i+n)}(i.translateX,i.translateY,o.translateX,o.translateY,l,s),function(e,t,n,i){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),i.push({i:n.push(a(n)+"rotate(",null,r)-2,x:Hn(e,t)})):t&&n.push(a(n)+"rotate("+t+r)}(i.rotate,o.rotate,l,s),function(e,t,n,i){e!==t?i.push({i:n.push(a(n)+"skewX(",null,r)-2,x:Hn(e,t)}):t&&n.push(a(n)+"skewX("+t+r)}(i.skewX,o.skewX,l,s),function(e,t,n,r,i,o){if(e!==n||t!==r){var l=i.push(a(i)+"scale(",null,",",null,")");o.push({i:l-4,x:Hn(e,n)},{i:l-2,x:Hn(t,r)})}else 1===n&&1===r||i.push(a(i)+"scale("+n+","+r+")")}(i.scaleX,i.scaleY,o.scaleX,o.scaleY,l,s),i=o=null,function(e){for(var t,n=-1,r=s.length;++n<r;)l[(t=s[n]).i]=t.x(e);return l.join("")}}}var rr,ar,ir=nr((function(e){const t=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?er:tr(t.a,t.b,t.c,t.d,t.e,t.f)}),"px, ","px)","deg)"),or=nr((function(e){return null==e?er:(Qn||(Qn=document.createElementNS("http://www.w3.org/2000/svg","g")),Qn.setAttribute("transform",e),(e=Qn.transform.baseVal.consolidate())?tr((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):er)}),", ",")",")"),lr=0,sr=0,ur=0,cr=0,hr=0,fr=0,pr="object"==typeof performance&&performance.now?performance:Date,mr="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function gr(){return hr||(mr(dr),hr=pr.now()+fr)}function dr(){hr=0}function yr(){this._call=this._time=this._next=null}function vr(e,t,n){var r=new yr;return r.restart(e,t,n),r}function _r(){hr=(cr=pr.now())+fr,lr=sr=0;try{!function(){gr(),++lr;for(var e,t=rr;t;)(e=hr-t._time)>=0&&t._call.call(void 0,e),t=t._next;--lr}()}finally{lr=0,function(){var e,t,n=rr,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:rr=t);ar=e,wr(r)}(),hr=0}}function br(){var e=pr.now(),t=e-cr;t>1e3&&(fr-=t,cr=e)}function wr(e){lr||(sr&&(sr=clearTimeout(sr)),e-hr>24?(e<1/0&&(sr=setTimeout(_r,e-pr.now()-fr)),ur&&(ur=clearInterval(ur))):(ur||(cr=pr.now(),ur=setInterval(br,1e3)),lr=1,mr(_r)))}function xr(e,t,n){var r=new yr;return t=null==t?0:+t,r.restart((n=>{r.stop(),e(n+t)}),t,n),r}yr.prototype=vr.prototype={constructor:yr,restart:function(e,t,n){if("function"!=typeof e)throw new TypeError("callback is not a function");n=(null==n?gr():+n)+(null==t?0:+t),this._next||ar===this||(ar?ar._next=this:rr=this,ar=this),this._call=e,this._time=n,wr()},stop:function(){this._call&&(this._call=null,this._time=1/0,wr())}};var Mr=qe("start","end","cancel","interrupt"),kr=[];function Ar(e,t,n,r,a,i){var o=e.__transition;if(o){if(n in o)return}else e.__transition={};!function(e,t,n){var r,a=e.__transition;function i(e){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=e&&o(e-n.delay)}function o(i){var u,c,h,f;if(1!==n.state)return s();for(u in a)if((f=a[u]).name===n.name){if(3===f.state)return xr(o);4===f.state?(f.state=6,f.timer.stop(),f.on.call("interrupt",e,e.__data__,f.index,f.group),delete a[u]):+u<t&&(f.state=6,f.timer.stop(),f.on.call("cancel",e,e.__data__,f.index,f.group),delete a[u])}if(xr((function(){3===n.state&&(n.state=4,n.timer.restart(l,n.delay,n.time),l(i))})),n.state=2,n.on.call("start",e,e.__data__,n.index,n.group),2===n.state){for(n.state=3,r=new Array(h=n.tween.length),u=0,c=-1;u<h;++u)(f=n.tween[u].value.call(e,e.__data__,n.index,n.group))&&(r[++c]=f);r.length=c+1}}function l(t){for(var a=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(s),n.state=5,1),i=-1,o=r.length;++i<o;)r[i].call(e,a);5===n.state&&(n.on.call("end",e,e.__data__,n.index,n.group),s())}function s(){for(var r in n.state=6,n.timer.stop(),delete a[t],a)return;delete e.__transition}a[t]=n,n.timer=vr(i,0,n.time)}(e,n,{name:t,index:r,group:a,on:Mr,tween:kr,time:i.time,delay:i.delay,duration:i.duration,ease:i.ease,timer:null,state:0})}function Cr(e,t){var n=Er(e,t);if(n.state>0)throw new Error("too late; already scheduled");return n}function Sr(e,t){var n=Er(e,t);if(n.state>3)throw new Error("too late; already running");return n}function Er(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function Nr(e,t){var n,r;return function(){var a=Sr(this,e),i=a.tween;if(i!==n)for(var o=0,l=(r=n=i).length;o<l;++o)if(r[o].name===t){(r=r.slice()).splice(o,1);break}a.tween=r}}function Or(e,t,n){var r,a;if("function"!=typeof n)throw new Error;return function(){var i=Sr(this,e),o=i.tween;if(o!==r){a=(r=o).slice();for(var l={name:t,value:n},s=0,u=a.length;s<u;++s)if(a[s].name===t){a[s]=l;break}s===u&&a.push(l)}i.tween=a}}function $r(e,t,n){var r=e._id;return e.each((function(){var e=Sr(this,r);(e.value||(e.value={}))[t]=n.apply(this,arguments)})),function(e){return Er(e,r).value[t]}}function zr(e,t){var n;return("number"==typeof t?Hn:t instanceof An?In:(n=An(t))?(t=n,In):Yn)(e,t)}function Dr(e){return function(){this.removeAttribute(e)}}function jr(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Rr(e,t,n){var r,a,i=n+"";return function(){var o=this.getAttribute(e);return o===i?null:o===r?a:a=t(r=o,n)}}function Tr(e,t,n){var r,a,i=n+"";return function(){var o=this.getAttributeNS(e.space,e.local);return o===i?null:o===r?a:a=t(r=o,n)}}function Pr(e,t,n){var r,a,i;return function(){var o,l,s=n(this);if(null!=s)return(o=this.getAttribute(e))===(l=s+"")?null:o===r&&l