This repository has been archived by the owner on Sep 7, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
commons-3c62fc28a267bdd69995.js
2 lines (2 loc) · 85 KB
/
commons-3c62fc28a267bdd69995.js
1
2
(self.webpackChunkocf_website=self.webpackChunkocf_website||[]).push([[351],{2993:function(e){var t="undefined"!=typeof Element,n="function"==typeof Map,r="function"==typeof Set,o="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function a(e,i){if(e===i)return!0;if(e&&i&&"object"==typeof e&&"object"==typeof i){if(e.constructor!==i.constructor)return!1;var u,c,l,s;if(Array.isArray(e)){if((u=e.length)!=i.length)return!1;for(c=u;0!=c--;)if(!a(e[c],i[c]))return!1;return!0}if(n&&e instanceof Map&&i instanceof Map){if(e.size!==i.size)return!1;for(s=e.entries();!(c=s.next()).done;)if(!i.has(c.value[0]))return!1;for(s=e.entries();!(c=s.next()).done;)if(!a(c.value[1],i.get(c.value[0])))return!1;return!0}if(r&&e instanceof Set&&i instanceof Set){if(e.size!==i.size)return!1;for(s=e.entries();!(c=s.next()).done;)if(!i.has(c.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(i)){if((u=e.length)!=i.length)return!1;for(c=u;0!=c--;)if(e[c]!==i[c])return!1;return!0}if(e.constructor===RegExp)return e.source===i.source&&e.flags===i.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===i.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===i.toString();if((u=(l=Object.keys(e)).length)!==Object.keys(i).length)return!1;for(c=u;0!=c--;)if(!Object.prototype.hasOwnProperty.call(i,l[c]))return!1;if(t&&e instanceof Element)return!1;for(c=u;0!=c--;)if(("_owner"!==l[c]&&"__v"!==l[c]&&"__o"!==l[c]||!e.$$typeof)&&!a(e[l[c]],i[l[c]]))return!1;return!0}return e!=e&&i!=i}e.exports=function(e,t){try{return a(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},4839:function(e,t,n){"use strict";var r,o=n(7294),a=(r=o)&&"object"==typeof r&&"default"in r?r.default:r;function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=!("undefined"==typeof window||!window.document||!window.document.createElement);e.exports=function(e,t,n){if("function"!=typeof e)throw new Error("Expected reducePropsToState to be a function.");if("function"!=typeof t)throw new Error("Expected handleStateChangeOnClient to be a function.");if(void 0!==n&&"function"!=typeof n)throw new Error("Expected mapStateOnServer to either be undefined or a function.");return function(r){if("function"!=typeof r)throw new Error("Expected WrappedComponent to be a React component.");var c,l=[];function s(){c=e(l.map((function(e){return e.props}))),f.canUseDOM?t(c):n&&(c=n(c))}var f=function(e){var t,n;function o(){return e.apply(this,arguments)||this}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,o.peek=function(){return c},o.rewind=function(){if(o.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var e=c;return c=void 0,l=[],e};var i=o.prototype;return i.UNSAFE_componentWillMount=function(){l.push(this),s()},i.componentDidUpdate=function(){s()},i.componentWillUnmount=function(){var e=l.indexOf(this);l.splice(e,1),s()},i.render=function(){return a.createElement(r,this.props)},o}(o.PureComponent);return i(f,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(r)+")"),i(f,"canUseDOM",u),f}}},537:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(7294),o={links:[{name:"About",href:"#about"},{name:"Projects",href:"/projects"},{name:"Careers",href:"https://openclimatefix.homerun.co/"},{name:"Blog",href:"/blog"},{name:"Contact",href:"mailto:[email protected]"},{name:"Privacy",href:"https://docs.google.com/document/d/1ld-faFUnXpOmxXcxI8cxpH_S6NHnpQEzqQrYe6Y6Sjg/edit?usp=sharing"}],social:[{name:"Twitter",href:"https://twitter.com/openclimatefix",icon:function(e){return r.createElement(i,e)}},{name:"GitHub",href:"https://github.com/openclimatefix",icon:function(e){return r.createElement(u,e)}},{name:"YouTube",href:"https://www.youtube.com/channel/UCq2-AN_j8BMERxTqdSvtPAg",icon:function(e){return r.createElement(c,e)}}]};function a(){return r.createElement("footer",{className:"bg-black","aria-labelledby":"footerHeading"},r.createElement("h2",{id:"footerHeading",className:"sr-only"},"Footer"),r.createElement("div",{className:"max-w-5xl mx-auto py-12 px-4 sm:px-6 md:py-16 md:px-8"},r.createElement("div",{className:"md:grid md:grid-cols-5 md:gap-16"},r.createElement("div",{className:"md:mt-0 mx-auto md:mx-0 py-10",style:{maxWidth:"10rem"}},r.createElement(l,{fill:"white"})),r.createElement("div",{className:"md:col-span-4 md:flex md:items-center"},r.createElement("p",{className:"text-2xl text-white font-thin text-center md:text-left"},"We use computers to"," ",r.createElement("span",{className:"inline-block border-yellow-400 border-b-2"},"fix climate change"),"."))),r.createElement("div",{className:"mt-8 lg:flex lg:items-center lg:justify-between text-gray-400"},r.createElement("nav",{className:"grid grid-cols-2 md:grid-cols-6 gap-4 text-center md:order-2"},o.links.map((function(e){var t=e.name,n=e.href;return r.createElement("a",{href:n,key:t},t)}))),r.createElement("div",{className:"mt-8 lg:mt-0 justify-center flex space-x-6 md:order-3"},o.social.map((function(e){return r.createElement("a",{key:e.name,href:e.href,className:"text-yellow-400 hover:text-yellow-300"},r.createElement("span",{className:"sr-only"},e.name),r.createElement(e.icon,{className:"h-6 w-6","aria-hidden":"true"}))}))),r.createElement("p",{className:"mt-8 text-center text-base lg:mt-0 md:order-1"},"© 2021 Open Climate Fix"))))}function i(e){return r.createElement("svg",Object.assign({fill:"currentColor",viewBox:"0 0 27 27"},e),r.createElement("path",{d:"M26.3177 2.57129L26.8166 2.53821C26.8033 2.33764 26.6712 2.16453 26.4812 2.09879C26.2912 2.03304 26.0804 2.08745 25.9459 2.23689L26.3177 2.57129ZM24.9838 8.00601C24.9838 7.72987 24.7599 7.50601 24.4838 7.50601C24.2076 7.50601 23.9838 7.72987 23.9838 8.00601H24.9838ZM13.5002 9.64272V10.1427H14.0002V9.64272H13.5002ZM2.47697 2.57129L2.94522 2.39596C2.87545 2.20963 2.70184 2.08239 2.50315 2.07197C2.30445 2.06156 2.11849 2.16994 2.02962 2.34796L2.47697 2.57129ZM9.64307 19.2856L9.99689 19.6389C10.1193 19.5163 10.1695 19.3392 10.1297 19.1706C10.0899 19.0021 9.96567 18.8661 9.8014 18.8113L9.64307 19.2856ZM0.643066 22.7754V22.2754C0.422799 22.2754 0.228477 22.4195 0.164572 22.6303C0.100667 22.8411 0.182233 23.0689 0.36542 23.1912L0.643066 22.7754ZM23.0807 4.35913L22.7099 4.69447L22.89 4.89372L23.1556 4.85349L23.0807 4.35913ZM25.8188 2.60437C25.9149 4.05401 25.8309 4.98841 25.5711 5.72075C25.315 6.44264 24.8703 7.01862 24.1378 7.72048L24.8297 8.4425C25.6127 7.69223 26.1827 6.98787 26.5136 6.05508C26.8408 5.13273 26.916 4.03811 26.8166 2.53821L25.8188 2.60437ZM24.9838 9.34423V8.08149H23.9838V9.34423H24.9838ZM24.9838 8.08149V8.00601H23.9838V8.08149H24.9838ZM13.0002 8.357V9.64272H14.0002V8.357H13.0002ZM19.0574 2.07129C15.6757 2.07129 13.0002 5.02212 13.0002 8.357H14.0002C14.0002 5.52211 16.2789 3.07129 19.0574 3.07129V2.07129ZM23.9838 9.34423C23.9838 17.5102 17.1335 24.5713 9.00021 24.5713V25.5713C17.7053 25.5713 24.9838 18.0427 24.9838 9.34423H23.9838ZM2.00871 2.74661C2.97741 5.33381 6.6347 10.1427 13.5002 10.1427V9.14272C7.16164 9.14272 3.81042 4.70673 2.94522 2.39596L2.00871 2.74661ZM2.02962 2.34796C0.148615 6.11577 -0.159696 9.76028 1.12854 12.8432C2.41679 15.9261 5.26079 18.3497 9.48473 19.7598L9.8014 18.8113C5.77279 17.4664 3.19984 15.2063 2.05123 12.4576C0.902603 9.70883 1.13752 6.37374 2.92432 2.79462L2.02962 2.34796ZM9.28924 18.9323C8.13785 20.0855 4.8828 22.2754 0.643066 22.2754V23.2754C5.20606 23.2754 8.70312 20.9346 9.99689 19.6389L9.28924 18.9323ZM23.4516 4.02379C22.368 2.82541 20.8004 2.07129 19.0574 2.07129V3.07129C20.5057 3.07129 21.8077 3.69672 22.7099 4.69447L23.4516 4.02379ZM23.1556 4.85349C24.453 4.657 25.7292 3.97301 26.6894 2.90569L25.9459 2.23689C25.1346 3.13881 24.0654 3.7043 23.0058 3.86477L23.1556 4.85349ZM0.36542 23.1912C3.22452 25.1002 5.97481 25.5713 9.00021 25.5713V24.5713C6.09881 24.5713 3.56331 24.124 0.920713 22.3595L0.36542 23.1912Z"}))}function u(e){return r.createElement("svg",Object.assign({fill:"currentColor",viewBox:"0 0 21 25"},e),r.createElement("path",{d:"M7.79289 20.334C8.05628 20.2511 8.20254 19.9703 8.11958 19.7069C8.03662 19.4435 7.75585 19.2973 7.49246 19.3802L7.79289 20.334ZM1.24464 15.7735L0.761034 15.6466L0.507097 16.6138L0.990707 16.7408L1.24464 15.7735ZM14.8569 24.3571V24.8571H15.8569V24.3571H14.8569ZM14.7141 15.3571L14.6607 14.86C14.4689 14.8806 14.3061 15.0096 14.2423 15.1916C14.1784 15.3735 14.2249 15.576 14.3617 15.7119L14.7141 15.3571ZM20.4998 8.6425H20.9998L20.9998 8.64089L20.4998 8.6425ZM19.0002 5.03125L18.5341 4.85024C18.4624 5.03474 18.5064 5.24414 18.6461 5.3843L19.0002 5.03125ZM18.9102 1.40087L19.3667 1.19699C19.3065 1.06207 19.1896 0.960706 19.0475 0.920112L18.9102 1.40087ZM14.9997 2.82625L14.8736 3.31008C15.0091 3.34542 15.1533 3.32226 15.271 3.24625L14.9997 2.82625ZM7.99993 2.82625L7.72872 3.2463C7.84638 3.32227 7.99051 3.34541 8.12604 3.31008L7.99993 2.82625ZM4.08943 1.40087L3.95195 0.920146C3.80992 0.960764 3.69312 1.06211 3.63289 1.19699L4.08943 1.40087ZM3.99943 5.03125L4.35346 5.38433C4.49323 5.24417 4.53717 5.03475 4.46551 4.85024L3.99943 5.03125ZM2.4998 8.67175H2.9998L2.9998 8.67047L2.4998 8.67175ZM8.28553 15.3571L8.63849 15.7113C8.77419 15.576 8.82068 15.3751 8.75818 15.194C8.69568 15.0129 8.53518 14.8835 8.34494 14.8607L8.28553 15.3571ZM7.64268 18.0571H8.14268C8.14268 18.0449 8.14223 18.0327 8.14133 18.0205L7.64268 18.0571ZM7.14268 24.3571V24.8571H8.14268V24.3571H7.14268ZM7.49246 19.3802C6.35371 19.7389 5.57566 19.7162 5.01683 19.5317C4.45947 19.3478 4.0511 18.9805 3.69183 18.5122C3.51101 18.2765 3.34757 18.0218 3.18363 17.7564C3.02413 17.4982 2.85709 17.2178 2.68646 16.9662C2.35102 16.4715 1.91508 15.9495 1.24464 15.7735L0.990707 16.7408C1.2844 16.8179 1.54342 17.0623 1.8588 17.5274C2.01357 17.7557 2.1609 18.0035 2.33286 18.2819C2.50037 18.5531 2.68547 18.8433 2.8984 19.1208C3.32663 19.6791 3.8866 20.2118 4.70343 20.4814C5.51878 20.7505 6.52077 20.7347 7.79289 20.334L7.49246 19.3802ZM15.8569 17.9446C15.8569 16.8808 15.9159 15.8461 15.0665 15.0024L14.3617 15.7119C14.8601 16.2069 14.8569 16.7585 14.8569 17.9446H15.8569ZM14.7675 15.8543C16.3644 15.6826 17.9481 15.3046 19.1247 14.2114C20.3168 13.1039 20.9998 11.3517 20.9998 8.6425H19.9998C19.9998 11.1915 19.3599 12.628 18.4441 13.4788C17.5128 14.344 16.2036 14.6942 14.6607 14.86L14.7675 15.8543ZM20.9998 8.64089C20.995 7.15473 20.4036 5.73058 19.3542 4.6782L18.6461 5.3843C19.5094 6.25001 19.9959 7.42156 19.9998 8.64411L20.9998 8.64089ZM19.4663 5.21226C19.7158 4.56961 19.8356 3.88386 19.8185 3.19466L18.8188 3.21944C18.8326 3.77651 18.7358 4.33079 18.5341 4.85024L19.4663 5.21226ZM19.8185 3.19466C19.8014 2.50546 19.6478 1.82648 19.3667 1.19699L18.4536 1.60476C18.6809 2.11357 18.805 2.66237 18.8188 3.21944L19.8185 3.19466ZM18.9102 1.40087C19.0475 0.920112 19.0471 0.919977 19.0466 0.919842C19.0464 0.919795 19.0459 0.919659 19.0456 0.919566C19.045 0.91938 19.0443 0.91919 19.0436 0.918997C19.0422 0.91861 19.0407 0.918208 19.0392 0.917793C19.0361 0.916962 19.0327 0.916076 19.029 0.915145C19.0216 0.913284 19.013 0.911243 19.0033 0.909099C18.9837 0.90481 18.9593 0.900117 18.9301 0.895621C18.8715 0.886623 18.7938 0.878466 18.6963 0.875862C18.501 0.870649 18.2285 0.887754 17.8739 0.963519C17.1654 1.11489 16.1318 1.49975 14.7284 2.40625L15.271 3.24625C16.5968 2.38988 17.5184 2.06205 18.0829 1.94145C18.3647 1.88123 18.5581 1.87253 18.6696 1.87551C18.7255 1.877 18.7614 1.88144 18.7781 1.88401C18.7865 1.8853 18.7902 1.88613 18.7892 1.88593C18.7888 1.88583 18.7872 1.88547 18.7844 1.88477C18.783 1.88443 18.7814 1.884 18.7795 1.88348C18.7785 1.88322 18.7775 1.88294 18.7763 1.88263C18.7758 1.88248 18.7752 1.88232 18.7746 1.88215C18.7743 1.88207 18.7739 1.88194 18.7737 1.8819C18.7733 1.88177 18.7728 1.88164 18.9102 1.40087ZM15.1258 2.34241C12.7482 1.72267 10.2514 1.72267 7.87381 2.34241L8.12604 3.31008C10.3383 2.73345 12.6613 2.73345 14.8736 3.31008L15.1258 2.34241ZM8.27114 2.40619C6.8672 1.49974 5.83359 1.11489 5.12528 0.963523C4.77074 0.887759 4.49833 0.870647 4.30313 0.875863C4.20565 0.878467 4.12795 0.886627 4.06943 0.89563C4.0402 0.900128 4.01583 0.904825 3.99625 0.909118C3.98646 0.911264 3.97788 0.913307 3.9705 0.915171C3.96681 0.916103 3.96342 0.91699 3.96033 0.917823C3.95878 0.918239 3.95731 0.918642 3.95591 0.919029C3.95521 0.919223 3.95453 0.919413 3.95387 0.919599C3.95354 0.919693 3.95306 0.919829 3.9529 0.919876C3.95242 0.920012 3.95195 0.920146 4.08943 1.40087C4.22691 1.8816 4.22645 1.88173 4.22599 1.88186C4.22584 1.88191 4.22538 1.88203 4.22509 1.88212C4.2245 1.88228 4.22393 1.88244 4.22338 1.8826C4.22227 1.8829 4.22123 1.88319 4.22026 1.88345C4.21832 1.88397 4.21667 1.8844 4.21529 1.88475C4.21254 1.88544 4.21092 1.88581 4.21044 1.88591C4.20949 1.88612 4.21314 1.88529 4.2215 1.884C4.23819 1.88143 4.27402 1.877 4.32984 1.87551C4.44124 1.87253 4.6345 1.88122 4.9163 1.94144C5.48064 2.06204 6.40228 2.38988 7.72872 3.2463L8.27114 2.40619ZM3.63289 1.19699C3.35176 1.82648 3.19822 2.50546 3.18113 3.19466L4.18082 3.21944C4.19463 2.66237 4.31874 2.11357 4.54597 1.60476L3.63289 1.19699ZM3.18113 3.19466C3.16405 3.88386 3.28376 4.56961 3.53334 5.21226L4.46551 4.85024C4.26378 4.33079 4.16701 3.77651 4.18082 3.21944L3.18113 3.19466ZM3.6454 4.67817C3.12187 5.20311 2.70703 5.82617 2.42466 6.51168L3.34928 6.89255C3.58156 6.32867 3.9228 5.81614 4.35346 5.38433L3.6454 4.67817ZM2.42466 6.51168C2.14228 7.19718 1.99791 7.93165 1.9998 8.67303L2.9998 8.67047C2.99824 8.06061 3.117 7.45644 3.34928 6.89255L2.42466 6.51168ZM1.9998 8.67175C1.9998 11.3632 2.68355 13.0988 3.87626 14.1986C5.05154 15.2824 6.63337 15.663 8.22612 15.8536L8.34494 14.8607C6.79782 14.6755 5.48679 14.3235 4.55417 13.4635C3.63898 12.6195 2.9998 11.2003 2.9998 8.67175H1.9998ZM7.93258 15.003C7.50272 15.4314 7.2941 15.9858 7.1974 16.5222C7.10062 17.0591 7.10893 17.616 7.14402 18.0938L8.14133 18.0205C8.10892 17.5792 8.10622 17.1174 8.18153 16.6997C8.25691 16.2815 8.40347 15.9455 8.63849 15.7113L7.93258 15.003ZM7.14268 18.0571V24.3571H8.14268V18.0571H7.14268ZM15.8569 24.3571V17.9446H14.8569V24.3571H15.8569Z"}))}function c(e){return r.createElement("svg",Object.assign({fill:"currentColor",viewBox:"0 0 27 23"},e),r.createElement("path",{d:"M2.82995 20.9374L2.73189 21.4277H2.73189L2.82995 20.9374ZM24.1705 20.9374L24.2685 21.4277L24.1705 20.9374ZM24.317 2.24652L24.4217 1.75762L24.317 2.24652ZM2.68344 2.24652L2.7882 2.73542H2.7882L2.68344 2.24652ZM10.9288 7.64293L11.186 7.21418C11.0316 7.1215 10.8392 7.11907 10.6824 7.20783C10.5257 7.29658 10.4288 7.46279 10.4288 7.64293H10.9288ZM10.9288 15.3572H10.4288C10.4288 15.5373 10.5257 15.7036 10.6824 15.7923C10.8392 15.8811 11.0316 15.8786 11.186 15.786L10.9288 15.3572ZM17.3574 11.5001L17.6146 11.9288C17.7652 11.8385 17.8574 11.6757 17.8574 11.5001C17.8574 11.3244 17.7652 11.1617 17.6146 11.0713L17.3574 11.5001ZM0.143066 4.77043V18.2699H1.14307V4.77043H0.143066ZM26.8574 18.2699V4.77043H25.8574V18.2699H26.8574ZM2.73189 21.4277C9.84038 22.8494 17.16 22.8494 24.2685 21.4277L24.0724 20.4472C17.0934 21.843 9.90703 21.843 2.92801 20.4472L2.73189 21.4277ZM24.4217 1.75762C17.2224 0.214909 9.77798 0.214909 2.57867 1.75762L2.7882 2.73542C9.84939 1.22231 17.151 1.22231 24.2122 2.73542L24.4217 1.75762ZM26.8574 4.77043C26.8574 3.31752 25.8424 2.06204 24.4217 1.75762L24.2122 2.73542C25.1718 2.94105 25.8574 3.78906 25.8574 4.77043H26.8574ZM25.8574 18.2699C25.8574 19.3283 25.1103 20.2396 24.0724 20.4472L24.2685 21.4277C25.7738 21.1267 26.8574 19.805 26.8574 18.2699H25.8574ZM0.143066 18.2699C0.143066 19.805 1.2266 21.1267 2.73189 21.4277L2.92801 20.4472C1.89014 20.2396 1.14307 19.3283 1.14307 18.2699H0.143066ZM1.14307 4.77043C1.14307 3.78906 1.82862 2.94105 2.7882 2.73542L2.57867 1.75762C1.15802 2.06204 0.143066 3.31753 0.143066 4.77043H1.14307ZM10.4288 7.64293V15.3572H11.4288V7.64293H10.4288ZM11.186 15.786L17.6146 11.9288L17.1001 11.0713L10.6715 14.9285L11.186 15.786ZM17.6146 11.0713L11.186 7.21418L10.6715 8.07167L17.1001 11.9288L17.6146 11.0713Z"}))}function l(e){return r.createElement("svg",Object.assign({viewBox:"0 0 208.1 69.4"},e),r.createElement("path",{className:"st0",d:"M37.6,1c-1.4-1.4-3.6-1.4-5,0L1,32.6c-0.7,0.7-1,1.5-1,2.5c0,0.9,0.4,1.8,1,2.5l30.8,30.8 c0.7,0.7,1.6,1,2.5,1s1.8-0.3,2.5-1c1.4-1.4,1.4-3.6,0-4.9L8.4,35.1L37.6,6C38.9,4.6,38.9,2.4,37.6,1z"}),r.createElement("path",{className:"st0",d:"M139.6,1c-1.4-1.4-3.6-1.4-4.9,0L103,32.6c-1.4,1.4-1.4,3.6,0,4.9l30.8,30.8c0.7,0.7,1.6,1,2.5,1 s1.8-0.3,2.5-1c1.4-1.4,1.4-3.6,0-4.9l-28.3-28.3L139.6,6C140.9,4.6,140.9,2.4,139.6,1z"}),r.createElement("path",{className:"st0",d:"M207.1,17c-1.4-1.4-3.6-1.4-4.9,0l-18.2,18.2c-1.4,1.4-1.4,3.6,0,4.9c0.7,0.7,1.6,1,2.5,1s1.8-0.3,2.5-1 L207.1,22C208.4,20.6,208.4,18.4,207.1,17z"}),r.createElement("path",{className:"st0",d:"M162,35.1L191.1,6c1.4-1.4,1.4-3.6,0-5c-1.4-1.4-3.6-1.4-4.9,0l-31.6,31.6c0,0,0,0,0,0c0,0,0,0,0,0 c0,0-0.1,0.1-0.1,0.1c-0.1,0.1-0.2,0.3-0.3,0.4c-0.1,0.1-0.1,0.2-0.1,0.2c-0.1,0.1-0.1,0.2-0.2,0.4c0,0.1-0.1,0.2-0.1,0.3 c0,0.1-0.1,0.2-0.1,0.3c0,0.1,0,0.2,0,0.3c0,0.1,0,0.2,0,0.3c0,0.1,0,0.2,0,0.3c0,0.1,0,0.2,0,0.3c0,0.1,0.1,0.2,0.1,0.3 c0,0.1,0.1,0.2,0.1,0.4c0,0.1,0.1,0.2,0.1,0.3c0.1,0.1,0.1,0.2,0.2,0.3c0.1,0.1,0.1,0.2,0.2,0.3c0.1,0.1,0.1,0.2,0.2,0.3 c0,0,0,0,0,0s0,0,0,0l30.9,30.8c0.7,0.7,1.6,1,2.5,1c0.9,0,1.8-0.3,2.5-1c1.4-1.4,1.4-3.6,0-4.9L162,35.1z"}),r.createElement("path",{className:"st0",d:"M56.3,1c-1.4-1.4-3.6-1.4-5,0c-1.4,1.4-1.4,3.6,0,5l29.1,29.1L52.1,63.4c-1.4,1.4-1.4,3.6,0,4.9 c0.7,0.7,1.6,1,2.5,1s1.8-0.3,2.5-1l30.8-30.8c0.7-0.7,1-1.5,1-2.5c0-0.9-0.4-1.8-1-2.5L56.3,1z"}))}},9221:function(e,t,n){"use strict";n.d(t,{Z:function(){return jt}});var r,o,a,i=n(5444),u=n(7294),c=n(3935);function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function s(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function p(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}function d(e,t){if(e in t){for(var n=t[e],r=arguments.length,o=new Array(r>2?r-2:0),a=2;a<r;a++)o[a-2]=arguments[a];return"function"==typeof n?n.apply(void 0,o):n}var i=new Error('Tried to handle "'+e+'" but there is no handler defined. Only defined handlers are: '+Object.keys(t).map((function(e){return'"'+e+'"'})).join(", ")+".");throw Error.captureStackTrace&&Error.captureStackTrace(i,d),i}function v(e){var t=e.props,n=e.slot,a=e.defaultTag,i=e.features,u=e.visible,c=void 0===u||u,f=e.name;if(c)return m(t,n,a,f);var p=null!=i?i:r.None;if(p&r.Static){var v=t.static,b=void 0!==v&&v,h=s(t,["static"]);if(b)return m(h,n,a,f)}if(p&r.RenderStrategy){var y,g=t.unmount,C=void 0===g||g,x=s(t,["unmount"]);return d(C?o.Unmount:o.Hidden,((y={})[o.Unmount]=function(){return null},y[o.Hidden]=function(){return m(l({},x,{hidden:!0,style:{display:"none"}}),n,a,f)},y))}return m(t,n,a,f)}function m(e,t,n,r){var o;void 0===t&&(t={});var a=h(e,["unmount","static"]),i=a.as,c=void 0===i?n:i,l=a.children,f=a.refName,d=void 0===f?"ref":f,v=s(a,["as","children","refName"]),m=void 0!==e.ref?((o={})[d]=e.ref,o):{},b="function"==typeof l?l(t):l;if(v.className&&"function"==typeof v.className&&(v.className=v.className(t)),c===u.Fragment&&Object.keys(v).length>0){if(!(0,u.isValidElement)(b)||Array.isArray(b)&&b.length>1)throw new Error(['Passing props on "Fragment"!',"","The current component <"+r+' /> is rendering a "Fragment".',"However we need to passthrough the following props:",Object.keys(v).map((function(e){return" - "+e})).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((function(e){return" - "+e})).join("\n")].join("\n"));return(0,u.cloneElement)(b,Object.assign({},function(e,t,n){for(var r,o=Object.assign({},e),a=function(){var n,a=r.value;void 0!==e[a]&&void 0!==t[a]&&Object.assign(o,((n={})[a]=function(n){n.defaultPrevented||e[a](n),n.defaultPrevented||t[a](n)},n))},i=p(n);!(r=i()).done;)a();return o}(function(e){var t=Object.assign({},e);for(var n in t)void 0===t[n]&&delete t[n];return t}(h(v,["ref"])),b.props,["onClick"]),m))}return(0,u.createElement)(c,Object.assign({},h(v,["ref"]),c!==u.Fragment&&m),b)}function b(e){var t;return Object.assign((0,u.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function h(e,t){void 0===t&&(t=[]);for(var n,r=Object.assign({},e),o=p(t);!(n=o()).done;){var a=n.value;a in r&&delete r[a]}return r}function y(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=(0,u.useRef)(t);return(0,u.useEffect)((function(){r.current=t}),[t]),(0,u.useCallback)((function(e){for(var t,n=p(r.current);!(t=n()).done;){var o=t.value;null!=o&&("function"==typeof o?o(e):o.current=e)}}),[r])}function g(e){for(var t,n,r=e.parentElement,o=null;r&&!(r instanceof HTMLFieldSetElement);)r instanceof HTMLLegendElement&&(o=r),r=r.parentElement;var a=null!=(t=""===(null==(n=r)?void 0:n.getAttribute("disabled")))&&t;return(!a||!function(e){if(!e)return!1;var t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(o))&&a}!function(e){e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static"}(r||(r={})),function(e){e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden"}(o||(o={})),function(e){e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab"}(a||(a={}));var C="undefined"!=typeof window?u.useLayoutEffect:u.useEffect,x={serverHandoffComplete:!1},S=0;function E(){return++S}function w(){var e=(0,u.useState)(x.serverHandoffComplete?E:null),t=e[0],n=e[1];return C((function(){null===t&&n(E())}),[t]),(0,u.useEffect)((function(){!1===x.serverHandoffComplete&&(x.serverHandoffComplete=!0)}),[]),null!=t?""+t:void 0}var T,O,L,k,I=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((function(e){return e+":not([tabindex='-1'])"})).join(",");function P(e){return void 0===e&&(e=document.body),null==e?[]:Array.from(e.querySelectorAll(I))}function M(e,t){var n;return void 0===t&&(t=k.Strict),e!==document.body&&d(t,((n={})[k.Strict]=function(){return e.matches(I)},n[k.Loose]=function(){for(var t=e;null!==t;){if(t.matches(I))return!0;t=t.parentElement}return!1},n))}function R(e,t){var n=Array.isArray(e)?e:P(e),r=document.activeElement,o=function(){if(t&(T.First|T.Next))return L.Next;if(t&(T.Previous|T.Last))return L.Previous;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")}(),a=function(){if(t&T.First)return 0;if(t&T.Previous)return Math.max(0,n.indexOf(r))-1;if(t&T.Next)return Math.max(0,n.indexOf(r))+1;if(t&T.Last)return n.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")}(),i=t&T.NoScroll?{preventScroll:!0}:{},u=0,c=n.length,l=void 0;do{var s;if(u>=c||u+c<=0)return O.Error;var f=a+u;if(t&T.WrapAround)f=(f+c)%c;else{if(f<0)return O.Underflow;if(f>=c)return O.Overflow}null==(s=l=n[f])||s.focus(i),u+=o}while(l!==document.activeElement);return l.hasAttribute("tabindex")||l.setAttribute("tabindex","0"),O.Success}function A(e,t,n){(0,u.useEffect)((function(){return window.addEventListener(e,t,n),function(){return window.removeEventListener(e,t,n)}}),[e,t,n])}!function(e){e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll"}(T||(T={})),function(e){e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow"}(O||(O={})),function(e){e[e.Previous=-1]="Previous",e[e.Next=1]="Next"}(L||(L={})),function(e){e[e.Strict=0]="Strict",e[e.Loose=1]="Loose"}(k||(k={}));var N,D=(0,u.createContext)((function(){}));function F(){return(0,u.useContext)(D)}function j(e){var t=e.children,n=e.onUpdate,r=F(),o=(0,u.useCallback)((function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];null==n||n.apply(void 0,t),r.apply(void 0,t)}),[r,n]);return u.createElement(D.Provider,{value:o},t)}D.displayName="StackContext",function(e){e[e.AddElement=0]="AddElement",e[e.RemoveElement=1]="RemoveElement"}(N||(N={}));var H=(0,u.createContext)(!1);function Z(){var e=(0,u.useContext)(H),t=(0,u.useContext)(G),n=(0,u.useState)((function(){if(!e&&null!==t)return null;if("undefined"==typeof window)return null;var n=document.getElementById("headlessui-portal-root");if(n)return n;var r=document.createElement("div");return r.setAttribute("id","headlessui-portal-root"),document.body.appendChild(r)})),r=n[0],o=n[1];return(0,u.useEffect)((function(){e||null!==t&&o(t.current)}),[t,o,e]),r}var U=u.Fragment;function B(e){var t=e,n=Z(),r=(0,u.useState)((function(){return"undefined"==typeof window?null:document.createElement("div")}))[0];return function(e){var t=F();C((function(){if(e)return t(N.AddElement,e),function(){return t(N.RemoveElement,e)}}),[e])}(r),C((function(){if(n&&r)return n.appendChild(r),function(){var e;n&&(r&&(n.removeChild(r),n.childNodes.length<=0&&(null==(e=n.parentElement)||e.removeChild(n))))}}),[n,r]),u.createElement(j,null,n&&r?(0,c.createPortal)(v({props:t,defaultTag:U,name:"Portal"}),r):null)}var V=u.Fragment,G=(0,u.createContext)(null);B.Group=function(e){var t=e.target,n=s(e,["target"]);return u.createElement(G.Provider,{value:t},v({props:n,defaultTag:V,name:"Popover.Group"}))};var _=(0,u.createContext)(null);function K(){var e=(0,u.useContext)(_);if(null===e){var t=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,K),t}return e}function q(){var e=(0,u.useState)([]),t=e[0],n=e[1];return[t.length>0?t.join(" "):void 0,(0,u.useMemo)((function(){return function(e){var t=(0,u.useCallback)((function(e){return n((function(t){return[].concat(t,[e])})),function(){return n((function(t){var n=t.slice(),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n}))}}),[]),r=(0,u.useMemo)((function(){return{register:t,slot:e.slot,name:e.name,props:e.props}}),[t,e.slot,e.name,e.props]);return u.createElement(_.Provider,{value:r},e.children)}}),[n])]}var Q,W,Y;function z(e){var t=K(),n="headlessui-description-"+w();C((function(){return t.register(n)}),[n,t.register]);var r=e,o=l({},t.props,{id:n});return v({props:l({},r,o),slot:t.slot||{},defaultTag:"p",name:t.name||"Description"})}!function(e){e[e.Open=0]="Open",e[e.Closed=1]="Closed"}(W||(W={})),function(e){e[e.SetTitleId=0]="SetTitleId"}(Y||(Y={}));(Q={})[Y.SetTitleId]=function(e,t){return e.titleId===t.id?e:l({},e,{titleId:t.id})};var $=(0,u.createContext)(null);$.displayName="DialogContext";r.RenderStrategy,r.Static;var J,X,ee;!function(e){e[e.Open=0]="Open",e[e.Closed=1]="Closed"}(X||(X={})),function(e){e[e.ToggleDisclosure=0]="ToggleDisclosure",e[e.SetButtonId=1]="SetButtonId",e[e.SetPanelId=2]="SetPanelId",e[e.LinkPanel=3]="LinkPanel",e[e.UnlinkPanel=4]="UnlinkPanel"}(ee||(ee={}));var te=((J={})[ee.ToggleDisclosure]=function(e){var t;return l({},e,{disclosureState:d(e.disclosureState,(t={},t[X.Open]=X.Closed,t[X.Closed]=X.Open,t))})},J[ee.LinkPanel]=function(e){return!0===e.linkedPanel?e:l({},e,{linkedPanel:!0})},J[ee.UnlinkPanel]=function(e){return!1===e.linkedPanel?e:l({},e,{linkedPanel:!1})},J[ee.SetButtonId]=function(e,t){return e.buttonId===t.buttonId?e:l({},e,{buttonId:t.buttonId})},J[ee.SetPanelId]=function(e,t){return e.panelId===t.panelId?e:l({},e,{panelId:t.panelId})},J),ne=(0,u.createContext)(null);function re(e){var t=(0,u.useContext)(ne);if(null===t){var n=new Error("<"+e+" /> is missing a parent <"+ie.name+" /> component.");throw Error.captureStackTrace&&Error.captureStackTrace(n,re),n}return t}function oe(e,t){return d(t.type,te,e,t)}ne.displayName="DisclosureContext";var ae=u.Fragment;function ie(e){var t="headlessui-disclosure-button-"+w(),n="headlessui-disclosure-panel-"+w(),r=(0,u.useReducer)(oe,{disclosureState:X.Closed,linkedPanel:!1,buttonId:t,panelId:n}),o=r[0].disclosureState,a=r[1];(0,u.useEffect)((function(){return a({type:ee.SetButtonId,buttonId:t})}),[t,a]),(0,u.useEffect)((function(){return a({type:ee.SetPanelId,panelId:n})}),[n,a]);var i=(0,u.useMemo)((function(){return{open:o===X.Open}}),[o]);return u.createElement(ne.Provider,{value:r},v({props:e,slot:i,defaultTag:ae,name:"Disclosure"}))}var ue=b((function e(t,n){var r=re([ie.name,e.name].join(".")),o=r[0],i=r[1],c=y(n),s=(0,u.useCallback)((function(e){switch(e.key){case a.Space:case a.Enter:e.preventDefault(),e.stopPropagation(),i({type:ee.ToggleDisclosure})}}),[i]),f=(0,u.useCallback)((function(e){switch(e.key){case a.Space:e.preventDefault()}}),[]),p=(0,u.useCallback)((function(e){g(e.currentTarget)||t.disabled||i({type:ee.ToggleDisclosure})}),[i,t.disabled]),d=(0,u.useMemo)((function(){return{open:o.disclosureState===X.Open}}),[o]);return v({props:l({},t,{ref:c,id:o.buttonId,type:"button","aria-expanded":o.disclosureState===X.Open||void 0,"aria-controls":o.linkedPanel?o.panelId:void 0,onKeyDown:s,onKeyUp:f,onClick:p}),slot:d,defaultTag:"button",name:"Disclosure.Button"})})),ce=r.RenderStrategy|r.Static,le=b((function e(t,n){var r=re([ie.name,e.name].join(".")),o=r[0],a=r[1],i=y(n,(function(){o.linkedPanel||a({type:ee.LinkPanel})}));(0,u.useEffect)((function(){return function(){return a({type:ee.UnlinkPanel})}}),[a]),(0,u.useEffect)((function(){var e;o.disclosureState!==X.Closed||null!=(e=t.unmount)&&!e||a({type:ee.UnlinkPanel})}),[o.disclosureState,t.unmount,a]);var c=(0,u.useMemo)((function(){return{open:o.disclosureState===X.Open}}),[o]),s={ref:i,id:o.panelId};return v({props:l({},t,s),slot:c,defaultTag:"div",features:ce,visible:o.disclosureState===X.Open,name:"Disclosure.Panel"})}));ie.Button=ue,ie.Panel=le;var se,fe,pe,de;function ve(){var e=[],t={requestAnimationFrame:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){var e=requestAnimationFrame.apply(void 0,arguments);t.add((function(){return cancelAnimationFrame(e)}))})),nextFrame:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.requestAnimationFrame((function(){t.requestAnimationFrame.apply(t,n)}))},setTimeout:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){var e=setTimeout.apply(void 0,arguments);t.add((function(){return clearTimeout(e)}))})),add:function(t){e.push(t)},dispose:function(){for(var t,n=p(e.splice(0));!(t=n()).done;){var r=t.value;r()}}};return t}function me(){var e=(0,u.useState)(ve)[0];return(0,u.useEffect)((function(){return function(){return e.dispose()}}),[e]),e}function be(e,t){var n=(0,u.useState)(e),r=n[0],o=n[1],a=(0,u.useRef)(e);return C((function(){a.current=e}),[e]),C((function(){return o(a.current)}),[a,o].concat(t)),r}function he(e,t){var n=t.resolveItems();if(n.length<=0)return null;var r=t.resolveActiveIndex(),o=null!=r?r:-1,a=function(){switch(e.focus){case se.First:return n.findIndex((function(e){return!t.resolveDisabled(e)}));case se.Previous:var r=n.slice().reverse().findIndex((function(e,n,r){return!(-1!==o&&r.length-n-1>=o)&&!t.resolveDisabled(e)}));return-1===r?r:n.length-1-r;case se.Next:return n.findIndex((function(e,n){return!(n<=o)&&!t.resolveDisabled(e)}));case se.Last:var a=n.slice().reverse().findIndex((function(e){return!t.resolveDisabled(e)}));return-1===a?a:n.length-1-a;case se.Specific:return n.findIndex((function(n){return t.resolveId(n)===e.id}));case se.Nothing:return null;default:!function(e){throw new Error("Unexpected object: "+e)}(e)}}();return-1===a?r:a}!function(e){e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing"}(se||(se={})),function(e){e[e.Open=0]="Open",e[e.Closed=1]="Closed"}(pe||(pe={})),function(e){e[e.OpenListbox=0]="OpenListbox",e[e.CloseListbox=1]="CloseListbox",e[e.SetDisabled=2]="SetDisabled",e[e.GoToOption=3]="GoToOption",e[e.Search=4]="Search",e[e.ClearSearch=5]="ClearSearch",e[e.RegisterOption=6]="RegisterOption",e[e.UnregisterOption=7]="UnregisterOption"}(de||(de={}));var ye=((fe={})[de.CloseListbox]=function(e){return e.disabled||e.listboxState===pe.Closed?e:l({},e,{activeOptionIndex:null,listboxState:pe.Closed})},fe[de.OpenListbox]=function(e){return e.disabled||e.listboxState===pe.Open?e:l({},e,{listboxState:pe.Open})},fe[de.SetDisabled]=function(e,t){return e.disabled===t.disabled?e:l({},e,{disabled:t.disabled})},fe[de.GoToOption]=function(e,t){if(e.disabled)return e;if(e.listboxState===pe.Closed)return e;var n=he(t,{resolveItems:function(){return e.options},resolveActiveIndex:function(){return e.activeOptionIndex},resolveId:function(e){return e.id},resolveDisabled:function(e){return e.dataRef.current.disabled}});return""===e.searchQuery&&e.activeOptionIndex===n?e:l({},e,{searchQuery:"",activeOptionIndex:n})},fe[de.Search]=function(e,t){if(e.disabled)return e;if(e.listboxState===pe.Closed)return e;var n=e.searchQuery+t.value,r=e.options.findIndex((function(e){var t;return!e.dataRef.current.disabled&&(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(n))}));return-1===r||r===e.activeOptionIndex?l({},e,{searchQuery:n}):l({},e,{searchQuery:n,activeOptionIndex:r})},fe[de.ClearSearch]=function(e){return e.disabled||e.listboxState===pe.Closed||""===e.searchQuery?e:l({},e,{searchQuery:""})},fe[de.RegisterOption]=function(e,t){return l({},e,{options:[].concat(e.options,[{id:t.id,dataRef:t.dataRef}])})},fe[de.UnregisterOption]=function(e,t){var n=e.options.slice(),r=null!==e.activeOptionIndex?n[e.activeOptionIndex]:null,o=n.findIndex((function(e){return e.id===t.id}));return-1!==o&&n.splice(o,1),l({},e,{options:n,activeOptionIndex:o===e.activeOptionIndex||null===r?null:n.indexOf(r)})},fe),ge=(0,u.createContext)(null);function Ce(e){var t=(0,u.useContext)(ge);if(null===t){var n=new Error("<"+e+" /> is missing a parent <"+Ee.name+" /> component.");throw Error.captureStackTrace&&Error.captureStackTrace(n,Ce),n}return t}function xe(e,t){return d(t.type,ye,e,t)}ge.displayName="ListboxContext";var Se=u.Fragment;function Ee(e){var t=e.value,n=e.onChange,r=e.disabled,o=void 0!==r&&r,a=s(e,["value","onChange","disabled"]),i=(0,u.useReducer)(xe,{listboxState:pe.Closed,propsRef:{current:{value:t,onChange:n}},labelRef:(0,u.createRef)(),buttonRef:(0,u.createRef)(),optionsRef:(0,u.createRef)(),disabled:o,options:[],searchQuery:"",activeOptionIndex:null}),c=i[0],l=c.listboxState,f=c.propsRef,p=c.optionsRef,d=c.buttonRef,m=i[1];C((function(){f.current.value=t}),[t,f]),C((function(){f.current.onChange=n}),[n,f]),C((function(){return m({type:de.SetDisabled,disabled:o})}),[o]),A("mousedown",(function(e){var t,n,r,o=e.target;l===pe.Open&&((null==(t=d.current)?void 0:t.contains(o))||(null==(n=p.current)?void 0:n.contains(o))||(m({type:de.CloseListbox}),M(o,k.Loose)||(e.preventDefault(),null==(r=d.current)||r.focus())))}));var b=(0,u.useMemo)((function(){return{open:l===pe.Open,disabled:o}}),[l,o]);return u.createElement(ge.Provider,{value:i},v({props:a,slot:b,defaultTag:Se,name:"Listbox"}))}var we=b((function e(t,n){var r,o=Ce([Ee.name,e.name].join(".")),i=o[0],c=o[1],s=y(i.buttonRef,n),f="headlessui-listbox-button-"+w(),p=me(),d=(0,u.useCallback)((function(e){switch(e.key){case a.Space:case a.Enter:case a.ArrowDown:e.preventDefault(),c({type:de.OpenListbox}),p.nextFrame((function(){i.propsRef.current.value||c({type:de.GoToOption,focus:se.First})}));break;case a.ArrowUp:e.preventDefault(),c({type:de.OpenListbox}),p.nextFrame((function(){i.propsRef.current.value||c({type:de.GoToOption,focus:se.Last})}))}}),[c,i,p]),m=(0,u.useCallback)((function(e){switch(e.key){case a.Space:e.preventDefault()}}),[]),b=(0,u.useCallback)((function(e){if(g(e.currentTarget))return e.preventDefault();i.listboxState===pe.Open?(c({type:de.CloseListbox}),p.nextFrame((function(){var e;return null==(e=i.buttonRef.current)?void 0:e.focus({preventScroll:!0})}))):(e.preventDefault(),c({type:de.OpenListbox}))}),[c,p,i]),h=be((function(){if(i.labelRef.current)return[i.labelRef.current.id,f].join(" ")}),[i.labelRef.current,f]),C=(0,u.useMemo)((function(){return{open:i.listboxState===pe.Open,disabled:i.disabled}}),[i]);return v({props:l({},t,{ref:s,id:f,type:"button","aria-haspopup":!0,"aria-controls":null==(r=i.optionsRef.current)?void 0:r.id,"aria-expanded":i.listboxState===pe.Open||void 0,"aria-labelledby":h,disabled:i.disabled,onKeyDown:d,onKeyUp:m,onClick:b}),slot:C,defaultTag:"button",name:"Listbox.Button"})}));var Te,Oe,Le,ke=r.RenderStrategy|r.Static,Ie=b((function e(t,n){var r,o=Ce([Ee.name,e.name].join(".")),i=o[0],c=o[1],s=y(i.optionsRef,n),f="headlessui-listbox-options-"+w(),p=me(),d=me();C((function(){var e=i.optionsRef.current;e&&i.listboxState===pe.Open&&e!==document.activeElement&&e.focus({preventScroll:!0})}),[i.listboxState,i.optionsRef]);var m=(0,u.useCallback)((function(e){switch(d.dispose(),e.key){case a.Space:if(""!==i.searchQuery)return e.preventDefault(),e.stopPropagation(),c({type:de.Search,value:e.key});case a.Enter:if(e.preventDefault(),e.stopPropagation(),c({type:de.CloseListbox}),null!==i.activeOptionIndex){var t=i.options[i.activeOptionIndex].dataRef;i.propsRef.current.onChange(t.current.value)}ve().nextFrame((function(){var e;return null==(e=i.buttonRef.current)?void 0:e.focus({preventScroll:!0})}));break;case a.ArrowDown:return e.preventDefault(),e.stopPropagation(),c({type:de.GoToOption,focus:se.Next});case a.ArrowUp:return e.preventDefault(),e.stopPropagation(),c({type:de.GoToOption,focus:se.Previous});case a.Home:case a.PageUp:return e.preventDefault(),e.stopPropagation(),c({type:de.GoToOption,focus:se.First});case a.End:case a.PageDown:return e.preventDefault(),e.stopPropagation(),c({type:de.GoToOption,focus:se.Last});case a.Escape:return e.preventDefault(),e.stopPropagation(),c({type:de.CloseListbox}),p.nextFrame((function(){var e;return null==(e=i.buttonRef.current)?void 0:e.focus({preventScroll:!0})}));case a.Tab:e.preventDefault(),e.stopPropagation();break;default:1===e.key.length&&(c({type:de.Search,value:e.key}),d.setTimeout((function(){return c({type:de.ClearSearch})}),350))}}),[p,c,d,i]),b=be((function(){var e,t,n;return null!=(e=null==(t=i.labelRef.current)?void 0:t.id)?e:null==(n=i.buttonRef.current)?void 0:n.id}),[i.labelRef.current,i.buttonRef.current]),h=(0,u.useMemo)((function(){return{open:i.listboxState===pe.Open}}),[i]);return v({props:l({},t,{"aria-activedescendant":null===i.activeOptionIndex||null==(r=i.options[i.activeOptionIndex])?void 0:r.id,"aria-labelledby":b,id:f,onKeyDown:m,role:"listbox",tabIndex:0,ref:s}),slot:h,defaultTag:"ul",features:ke,visible:i.listboxState===pe.Open,name:"Listbox.Options"})}));function Pe(e){var t=e.container,n=e.accept,r=e.walk,o=e.enabled,a=void 0===o||o,i=(0,u.useRef)(n),c=(0,u.useRef)(r);(0,u.useEffect)((function(){i.current=n,c.current=r}),[n,r]),C((function(){if(t&&a)for(var e=i.current,n=c.current,r=Object.assign((function(t){return e(t)}),{acceptNode:e}),o=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,r,!1);o.nextNode();)n(o.currentNode)}),[t,a,i,c])}Ee.Button=we,Ee.Label=function e(t){var n=Ce([Ee.name,e.name].join("."))[0],r="headlessui-listbox-label-"+w(),o=(0,u.useCallback)((function(){var e;return null==(e=n.buttonRef.current)?void 0:e.focus({preventScroll:!0})}),[n.buttonRef]),a=(0,u.useMemo)((function(){return{open:n.listboxState===pe.Open,disabled:n.disabled}}),[n]);return v({props:l({},t,{ref:n.labelRef,id:r,onClick:o}),slot:a,defaultTag:"label",name:"Listbox.Label"})},Ee.Options=Ie,Ee.Option=function e(t){var n=t.disabled,r=void 0!==n&&n,o=t.value,a=s(t,["disabled","value"]),i=Ce([Ee.name,e.name].join(".")),c=i[0],f=i[1],p="headlessui-listbox-option-"+w(),d=null!==c.activeOptionIndex&&c.options[c.activeOptionIndex].id===p,m=c.propsRef.current.value===o,b=(0,u.useRef)({disabled:r,value:o});C((function(){b.current.disabled=r}),[b,r]),C((function(){b.current.value=o}),[b,o]),C((function(){var e,t;b.current.textValue=null==(e=document.getElementById(p))||null==(t=e.textContent)?void 0:t.toLowerCase()}),[b,p]);var h=(0,u.useCallback)((function(){return c.propsRef.current.onChange(o)}),[c.propsRef,o]);C((function(){return f({type:de.RegisterOption,id:p,dataRef:b}),function(){return f({type:de.UnregisterOption,id:p})}}),[b,p]),C((function(){var e;c.listboxState===pe.Open&&m&&(f({type:de.GoToOption,focus:se.Specific,id:p}),null==(e=document.getElementById(p))||null==e.focus||e.focus())}),[c.listboxState]),C((function(){if(c.listboxState===pe.Open&&d){var e=ve();return e.nextFrame((function(){var e;return null==(e=document.getElementById(p))||null==e.scrollIntoView?void 0:e.scrollIntoView({block:"nearest"})})),e.dispose}}),[p,d,c.listboxState]);var y=(0,u.useCallback)((function(e){if(r)return e.preventDefault();h(),f({type:de.CloseListbox}),ve().nextFrame((function(){var e;return null==(e=c.buttonRef.current)?void 0:e.focus({preventScroll:!0})}))}),[f,c.buttonRef,r,h]),g=(0,u.useCallback)((function(){if(r)return f({type:de.GoToOption,focus:se.Nothing});f({type:de.GoToOption,focus:se.Specific,id:p})}),[r,p,f]),x=(0,u.useCallback)((function(){r||d||f({type:de.GoToOption,focus:se.Specific,id:p})}),[r,d,p,f]),S=(0,u.useCallback)((function(){r||d&&f({type:de.GoToOption,focus:se.Nothing})}),[r,d,f]),E=(0,u.useMemo)((function(){return{active:d,selected:m,disabled:r}}),[d,m,r]);return v({props:l({},a,{id:p,role:"option",tabIndex:-1,"aria-disabled":!0===r||void 0,"aria-selected":!0===m||void 0,onClick:y,onFocus:g,onPointerMove:x,onMouseMove:x,onPointerLeave:S,onMouseLeave:S}),slot:E,defaultTag:"li",name:"Listbox.Option"})},function(e){e[e.Open=0]="Open",e[e.Closed=1]="Closed"}(Oe||(Oe={})),function(e){e[e.OpenMenu=0]="OpenMenu",e[e.CloseMenu=1]="CloseMenu",e[e.GoToItem=2]="GoToItem",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterItem=5]="RegisterItem",e[e.UnregisterItem=6]="UnregisterItem"}(Le||(Le={}));var Me=((Te={})[Le.CloseMenu]=function(e){return e.menuState===Oe.Closed?e:l({},e,{activeItemIndex:null,menuState:Oe.Closed})},Te[Le.OpenMenu]=function(e){return e.menuState===Oe.Open?e:l({},e,{menuState:Oe.Open})},Te[Le.GoToItem]=function(e,t){var n=he(t,{resolveItems:function(){return e.items},resolveActiveIndex:function(){return e.activeItemIndex},resolveId:function(e){return e.id},resolveDisabled:function(e){return e.dataRef.current.disabled}});return""===e.searchQuery&&e.activeItemIndex===n?e:l({},e,{searchQuery:"",activeItemIndex:n})},Te[Le.Search]=function(e,t){var n=e.searchQuery+t.value,r=e.items.findIndex((function(e){var t;return(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(n))&&!e.dataRef.current.disabled}));return-1===r||r===e.activeItemIndex?l({},e,{searchQuery:n}):l({},e,{searchQuery:n,activeItemIndex:r})},Te[Le.ClearSearch]=function(e){return""===e.searchQuery?e:l({},e,{searchQuery:""})},Te[Le.RegisterItem]=function(e,t){return l({},e,{items:[].concat(e.items,[{id:t.id,dataRef:t.dataRef}])})},Te[Le.UnregisterItem]=function(e,t){var n=e.items.slice(),r=null!==e.activeItemIndex?n[e.activeItemIndex]:null,o=n.findIndex((function(e){return e.id===t.id}));return-1!==o&&n.splice(o,1),l({},e,{items:n,activeItemIndex:o===e.activeItemIndex||null===r?null:n.indexOf(r)})},Te),Re=(0,u.createContext)(null);function Ae(e){var t=(0,u.useContext)(Re);if(null===t){var n=new Error("<"+e+" /> is missing a parent <"+Fe.name+" /> component.");throw Error.captureStackTrace&&Error.captureStackTrace(n,Ae),n}return t}function Ne(e,t){return d(t.type,Me,e,t)}Re.displayName="MenuContext";var De=u.Fragment;function Fe(e){var t=(0,u.useReducer)(Ne,{menuState:Oe.Closed,buttonRef:(0,u.createRef)(),itemsRef:(0,u.createRef)(),items:[],searchQuery:"",activeItemIndex:null}),n=t[0],r=n.menuState,o=n.itemsRef,a=n.buttonRef,i=t[1];A("mousedown",(function(e){var t,n,u,c=e.target;r===Oe.Open&&((null==(t=a.current)?void 0:t.contains(c))||(null==(n=o.current)?void 0:n.contains(c))||(i({type:Le.CloseMenu}),M(c,k.Loose)||(e.preventDefault(),null==(u=a.current)||u.focus())))}));var c=(0,u.useMemo)((function(){return{open:r===Oe.Open}}),[r]);return u.createElement(Re.Provider,{value:t},v({props:e,slot:c,defaultTag:De,name:"Menu"}))}var je,He,Ze,Ue=b((function e(t,n){var r,o=Ae([Fe.name,e.name].join(".")),i=o[0],c=o[1],s=y(i.buttonRef,n),f="headlessui-menu-button-"+w(),p=me(),d=(0,u.useCallback)((function(e){switch(e.key){case a.Space:case a.Enter:case a.ArrowDown:e.preventDefault(),e.stopPropagation(),c({type:Le.OpenMenu}),p.nextFrame((function(){return c({type:Le.GoToItem,focus:se.First})}));break;case a.ArrowUp:e.preventDefault(),e.stopPropagation(),c({type:Le.OpenMenu}),p.nextFrame((function(){return c({type:Le.GoToItem,focus:se.Last})}))}}),[c,p]),m=(0,u.useCallback)((function(e){switch(e.key){case a.Space:e.preventDefault()}}),[]),b=(0,u.useCallback)((function(e){if(g(e.currentTarget))return e.preventDefault();t.disabled||(i.menuState===Oe.Open?(c({type:Le.CloseMenu}),p.nextFrame((function(){var e;return null==(e=i.buttonRef.current)?void 0:e.focus({preventScroll:!0})}))):(e.preventDefault(),e.stopPropagation(),c({type:Le.OpenMenu})))}),[c,p,i,t.disabled]),h=(0,u.useMemo)((function(){return{open:i.menuState===Oe.Open}}),[i]);return v({props:l({},t,{ref:s,id:f,type:"button","aria-haspopup":!0,"aria-controls":null==(r=i.itemsRef.current)?void 0:r.id,"aria-expanded":i.menuState===Oe.Open||void 0,onKeyDown:d,onKeyUp:m,onClick:b}),slot:h,defaultTag:"button",name:"Menu.Button"})})),Be=r.RenderStrategy|r.Static,Ve=b((function e(t,n){var r,o,i=Ae([Fe.name,e.name].join(".")),c=i[0],s=i[1],f=y(c.itemsRef,n),p="headlessui-menu-items-"+w(),d=me();(0,u.useEffect)((function(){var e=c.itemsRef.current;e&&c.menuState===Oe.Open&&e!==document.activeElement&&e.focus({preventScroll:!0})}),[c.menuState,c.itemsRef]),Pe({container:c.itemsRef.current,enabled:c.menuState===Oe.Open,accept:function(e){return"menuitem"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk:function(e){e.setAttribute("role","none")}});var m=(0,u.useCallback)((function(e){switch(d.dispose(),e.key){case a.Space:if(""!==c.searchQuery)return e.preventDefault(),e.stopPropagation(),s({type:Le.Search,value:e.key});case a.Enter:if(e.preventDefault(),e.stopPropagation(),s({type:Le.CloseMenu}),null!==c.activeItemIndex){var t,n=c.items[c.activeItemIndex].id;null==(t=document.getElementById(n))||t.click()}ve().nextFrame((function(){var e;return null==(e=c.buttonRef.current)?void 0:e.focus({preventScroll:!0})}));break;case a.ArrowDown:return e.preventDefault(),e.stopPropagation(),s({type:Le.GoToItem,focus:se.Next});case a.ArrowUp:return e.preventDefault(),e.stopPropagation(),s({type:Le.GoToItem,focus:se.Previous});case a.Home:case a.PageUp:return e.preventDefault(),e.stopPropagation(),s({type:Le.GoToItem,focus:se.First});case a.End:case a.PageDown:return e.preventDefault(),e.stopPropagation(),s({type:Le.GoToItem,focus:se.Last});case a.Escape:e.preventDefault(),e.stopPropagation(),s({type:Le.CloseMenu}),ve().nextFrame((function(){var e;return null==(e=c.buttonRef.current)?void 0:e.focus({preventScroll:!0})}));break;case a.Tab:e.preventDefault(),e.stopPropagation();break;default:1===e.key.length&&(s({type:Le.Search,value:e.key}),d.setTimeout((function(){return s({type:Le.ClearSearch})}),350))}}),[s,d,c]),b=(0,u.useCallback)((function(e){switch(e.key){case a.Space:e.preventDefault()}}),[]),h=(0,u.useMemo)((function(){return{open:c.menuState===Oe.Open}}),[c]);return v({props:l({},t,{"aria-activedescendant":null===c.activeItemIndex||null==(r=c.items[c.activeItemIndex])?void 0:r.id,"aria-labelledby":null==(o=c.buttonRef.current)?void 0:o.id,id:p,onKeyDown:m,onKeyUp:b,role:"menu",tabIndex:0,ref:f}),slot:h,defaultTag:"div",features:Be,visible:c.menuState===Oe.Open,name:"Menu.Items"})})),Ge=u.Fragment;Fe.Button=Ue,Fe.Items=Ve,Fe.Item=function e(t){var n=t.disabled,r=void 0!==n&&n,o=t.onClick,a=s(t,["disabled","onClick"]),i=Ae([Fe.name,e.name].join(".")),c=i[0],f=i[1],p="headlessui-menu-item-"+w(),d=null!==c.activeItemIndex&&c.items[c.activeItemIndex].id===p;C((function(){if(c.menuState===Oe.Open&&d){var e=ve();return e.nextFrame((function(){var e;return null==(e=document.getElementById(p))||null==e.scrollIntoView?void 0:e.scrollIntoView({block:"nearest"})})),e.dispose}}),[p,d,c.menuState]);var m=(0,u.useRef)({disabled:r});C((function(){m.current.disabled=r}),[m,r]),C((function(){var e,t;m.current.textValue=null==(e=document.getElementById(p))||null==(t=e.textContent)?void 0:t.toLowerCase()}),[m,p]),C((function(){return f({type:Le.RegisterItem,id:p,dataRef:m}),function(){return f({type:Le.UnregisterItem,id:p})}}),[m,p]);var b=(0,u.useCallback)((function(e){return r?e.preventDefault():(f({type:Le.CloseMenu}),ve().nextFrame((function(){var e;return null==(e=c.buttonRef.current)?void 0:e.focus({preventScroll:!0})})),o?o(e):void 0)}),[f,c.buttonRef,r,o]),h=(0,u.useCallback)((function(){if(r)return f({type:Le.GoToItem,focus:se.Nothing});f({type:Le.GoToItem,focus:se.Specific,id:p})}),[r,p,f]),y=(0,u.useCallback)((function(){r||d||f({type:Le.GoToItem,focus:se.Specific,id:p})}),[r,d,p,f]),g=(0,u.useCallback)((function(){r||d&&f({type:Le.GoToItem,focus:se.Nothing})}),[r,d,f]),x=(0,u.useMemo)((function(){return{active:d,disabled:r}}),[d,r]);return v({props:l({},a,{id:p,role:"menuitem",tabIndex:-1,"aria-disabled":!0===r||void 0,onClick:b,onFocus:h,onPointerMove:y,onMouseMove:y,onPointerLeave:g,onMouseLeave:g}),slot:x,defaultTag:Ge,name:"Menu.Item"})},function(e){e[e.Open=0]="Open",e[e.Closed=1]="Closed"}(He||(He={})),function(e){e[e.TogglePopover=0]="TogglePopover",e[e.ClosePopover=1]="ClosePopover",e[e.SetButton=2]="SetButton",e[e.SetButtonId=3]="SetButtonId",e[e.SetPanel=4]="SetPanel",e[e.SetPanelId=5]="SetPanelId"}(Ze||(Ze={}));var _e=((je={})[Ze.TogglePopover]=function(e){var t;return l({},e,{popoverState:d(e.popoverState,(t={},t[He.Open]=He.Closed,t[He.Closed]=He.Open,t))})},je[Ze.ClosePopover]=function(e){return e.popoverState===He.Closed?e:l({},e,{popoverState:He.Closed})},je[Ze.SetButton]=function(e,t){return e.button===t.button?e:l({},e,{button:t.button})},je[Ze.SetButtonId]=function(e,t){return e.buttonId===t.buttonId?e:l({},e,{buttonId:t.buttonId})},je[Ze.SetPanel]=function(e,t){return e.panel===t.panel?e:l({},e,{panel:t.panel})},je[Ze.SetPanelId]=function(e,t){return e.panelId===t.panelId?e:l({},e,{panelId:t.panelId})},je),Ke=(0,u.createContext)(null);function qe(e){var t=(0,u.useContext)(Ke);if(null===t){var n=new Error("<"+e+" /> is missing a parent <"+$e.name+" /> component.");throw Error.captureStackTrace&&Error.captureStackTrace(n,qe),n}return t}Ke.displayName="PopoverContext";var Qe=(0,u.createContext)(null);function We(){return(0,u.useContext)(Qe)}Qe.displayName="PopoverGroupContext";var Ye=(0,u.createContext)(null);function ze(e,t){return d(t.type,_e,e,t)}Ye.displayName="PopoverPanelContext";function $e(e){var t="headlessui-popover-button-"+w(),n="headlessui-popover-panel-"+w(),r=(0,u.useReducer)(ze,{popoverState:He.Closed,button:null,buttonId:t,panel:null,panelId:n}),o=r[0],a=o.popoverState,i=o.button,c=o.panel,l=r[1];(0,u.useEffect)((function(){return l({type:Ze.SetButtonId,buttonId:t})}),[t,l]),(0,u.useEffect)((function(){return l({type:Ze.SetPanelId,panelId:n})}),[n,l]);var s=(0,u.useMemo)((function(){return{buttonId:t,panelId:n,close:function(){return l({type:Ze.ClosePopover})}}}),[t,n,l]),f=We(),p=null==f?void 0:f.registerPopover,d=(0,u.useCallback)((function(){var e;return null!=(e=null==f?void 0:f.isFocusWithinPopoverGroup())?e:(null==i?void 0:i.contains(document.activeElement))||(null==c?void 0:c.contains(document.activeElement))}),[f,i,c]);(0,u.useEffect)((function(){return null==p?void 0:p(s)}),[p,s]),A("focus",(function(){a===He.Open&&(d()||i&&c&&l({type:Ze.ClosePopover}))}),!0),A("mousedown",(function(e){var t=e.target;a===He.Open&&((null==i?void 0:i.contains(t))||(null==c?void 0:c.contains(t))||(l({type:Ze.ClosePopover}),M(t,k.Loose)||(e.preventDefault(),null==i||i.focus())))}));var m=(0,u.useMemo)((function(){return{open:a===He.Open}}),[a]);return u.createElement(Ke.Provider,{value:r},v({props:e,slot:m,defaultTag:"div",name:"Popover"}))}var Je=b((function e(t,n){var r=qe([$e.name,e.name].join(".")),o=r[0],i=r[1],c=(0,u.useRef)(null),s=We(),f=null==s?void 0:s.closeOthers,p=(0,u.useContext)(Ye),d=null!==p&&p===o.panelId,m=y(c,n,d?null:function(e){return i({type:Ze.SetButton,button:e})}),b=(0,u.useRef)(null),h=(0,u.useRef)("undefined"==typeof window?null:document.activeElement);A("focus",(function(){h.current=b.current,b.current=document.activeElement}),!0);var C=(0,u.useCallback)((function(e){var t;if(d){if(o.popoverState===He.Closed)return;switch(e.key){case a.Space:case a.Enter:e.preventDefault(),e.stopPropagation(),i({type:Ze.ClosePopover}),null==(t=o.button)||t.focus()}}else switch(e.key){case a.Space:case a.Enter:e.preventDefault(),e.stopPropagation(),o.popoverState===He.Closed&&(null==f||f(o.buttonId)),i({type:Ze.TogglePopover});break;case a.Escape:if(o.popoverState!==He.Open)return null==f?void 0:f(o.buttonId);if(!c.current)return;if(!c.current.contains(document.activeElement))return;i({type:Ze.ClosePopover});break;case a.Tab:if(o.popoverState!==He.Open)return;if(!o.panel)return;if(!o.button)return;if(e.shiftKey){var n;if(!h.current)return;if(null==(n=o.button)?void 0:n.contains(h.current))return;if(o.panel.contains(h.current))return;var r=P(),u=r.indexOf(h.current);if(r.indexOf(o.button)>u)return;e.preventDefault(),e.stopPropagation(),R(o.panel,T.Last)}else e.preventDefault(),e.stopPropagation(),R(o.panel,T.First)}}),[i,o.popoverState,o.buttonId,o.button,o.panel,c,f,d]),x=(0,u.useCallback)((function(e){var t;if(!d&&(e.key===a.Space&&e.preventDefault(),o.popoverState===He.Open&&o.panel&&o.button))switch(e.key){case a.Tab:if(!h.current)return;if(null==(t=o.button)?void 0:t.contains(h.current))return;if(o.panel.contains(h.current))return;var n=P(),r=n.indexOf(h.current);if(n.indexOf(o.button)>r)return;e.preventDefault(),e.stopPropagation(),R(o.panel,T.Last)}}),[o.popoverState,o.panel,o.button,d]),S=(0,u.useCallback)((function(e){var n,r;g(e.currentTarget)||(t.disabled||(d?(i({type:Ze.ClosePopover}),null==(n=o.button)||n.focus()):(o.popoverState===He.Closed&&(null==f||f(o.buttonId)),null==(r=o.button)||r.focus(),i({type:Ze.TogglePopover}))))}),[i,o.button,o.popoverState,o.buttonId,t.disabled,f,d]),E=(0,u.useMemo)((function(){return{open:o.popoverState===He.Open}}),[o]);return v({props:l({},t,d?{type:"button",onKeyDown:C,onClick:S}:{ref:m,id:o.buttonId,type:"button","aria-expanded":o.popoverState===He.Open||void 0,"aria-controls":o.panel?o.panelId:void 0,onKeyDown:C,onKeyUp:x,onClick:S}),slot:E,defaultTag:"button",name:"Popover.Button"})})),Xe=r.RenderStrategy|r.Static,et=b((function e(t,n){var r=qe([$e.name,e.name].join(".")),o=r[0].popoverState,a=r[1],i=y(n),c="headlessui-popover-overlay-"+w(),s=(0,u.useCallback)((function(e){if(g(e.currentTarget))return e.preventDefault();a({type:Ze.ClosePopover})}),[a]),f=(0,u.useMemo)((function(){return{open:o===He.Open}}),[o]);return v({props:l({},t,{ref:i,id:c,"aria-hidden":!0,onClick:s}),slot:f,defaultTag:"div",features:Xe,visible:o===He.Open,name:"Popover.Overlay"})})),tt=r.RenderStrategy|r.Static,nt=b((function e(t,n){var r=t.focus,o=void 0!==r&&r,i=s(t,["focus"]),c=qe([$e.name,e.name].join(".")),f=c[0],p=c[1],d=(0,u.useRef)(null),m=y(d,n,(function(e){p({type:Ze.SetPanel,panel:e})})),b=(0,u.useCallback)((function(e){var t;switch(e.key){case a.Escape:if(f.popoverState!==He.Open)return;if(!d.current)return;if(!d.current.contains(document.activeElement))return;e.preventDefault(),p({type:Ze.ClosePopover}),null==(t=f.button)||t.focus()}}),[f,d,p]);(0,u.useEffect)((function(){return function(){return p({type:Ze.SetPanel,panel:null})}}),[p]),(0,u.useEffect)((function(){var e;f.popoverState!==He.Closed||null!=(e=t.unmount)&&!e||p({type:Ze.SetPanel,panel:null})}),[f.popoverState,t.unmount,p]),(0,u.useEffect)((function(){if(o&&f.popoverState===He.Open&&d.current){var e=document.activeElement;d.current.contains(e)||R(d.current,T.First)}}),[o,d,f.popoverState]),A("keydown",(function(e){if(f.popoverState===He.Open&&d.current&&e.key===a.Tab&&document.activeElement&&d.current&&d.current.contains(document.activeElement)){e.preventDefault();var t,n=R(d.current,e.shiftKey?T.Previous:T.Next);if(n===O.Underflow)return null==(t=f.button)?void 0:t.focus();if(n===O.Overflow){if(!f.button)return;var r=P(),o=r.indexOf(f.button);R(r.splice(o+1).filter((function(e){var t;return!(null==(t=d.current)?void 0:t.contains(e))})),T.First)===O.Error&&R(document.body,T.First)}}})),A("focus",(function(){var e;o&&f.popoverState===He.Open&&d.current&&((null==(e=d.current)?void 0:e.contains(document.activeElement))||p({type:Ze.ClosePopover}))}),!0);var h=(0,u.useMemo)((function(){return{open:f.popoverState===He.Open}}),[f]),g={ref:m,id:f.panelId,onKeyDown:b};return u.createElement(Ye.Provider,{value:f.panelId},v({props:l({},i,g),slot:h,defaultTag:"div",features:tt,visible:f.popoverState===He.Open,name:"Popover.Panel"}))}));$e.Button=Je,$e.Overlay=et,$e.Panel=nt,$e.Group=function(e){var t=(0,u.useRef)(null),n=(0,u.useState)([]),r=n[0],o=n[1],a=(0,u.useCallback)((function(e){o((function(t){var n=t.indexOf(e);if(-1!==n){var r=t.slice();return r.splice(n,1),r}return t}))}),[o]),i=(0,u.useCallback)((function(e){return o((function(t){return[].concat(t,[e])})),function(){return a(e)}}),[o,a]),c=(0,u.useCallback)((function(){var e,n=document.activeElement;return!!(null==(e=t.current)?void 0:e.contains(n))||r.some((function(e){var t,r;return(null==(t=document.getElementById(e.buttonId))?void 0:t.contains(n))||(null==(r=document.getElementById(e.panelId))?void 0:r.contains(n))}))}),[t,r]),s=(0,u.useCallback)((function(e){for(var t,n=p(r);!(t=n()).done;){var o=t.value;o.buttonId!==e&&o.close()}}),[r]),f=(0,u.useMemo)((function(){return{registerPopover:i,unregisterPopover:a,isFocusWithinPopoverGroup:c,closeOthers:s}}),[i,a,c,s]),d=(0,u.useMemo)((function(){return{}}),[]),m={ref:t},b=e;return u.createElement(Qe.Provider,{value:f},v({props:l({},b,m),slot:d,defaultTag:"div",name:"Popover.Group"}))};var rt=(0,u.createContext)(null);function ot(){var e=(0,u.useContext)(rt);if(null===e){var t=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,ot),t}return e}function at(){var e=(0,u.useState)([]),t=e[0],n=e[1];return[t.length>0?t.join(" "):void 0,(0,u.useMemo)((function(){return function(e){var t=(0,u.useCallback)((function(e){return n((function(t){return[].concat(t,[e])})),function(){return n((function(t){var n=t.slice(),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n}))}}),[]),r=(0,u.useMemo)((function(){return{register:t,slot:e.slot,name:e.name,props:e.props}}),[t,e.slot,e.name,e.props]);return u.createElement(rt.Provider,{value:r},e.children)}}),[n])]}var it,ut;function ct(e){var t=e.passive,n=void 0!==t&&t,r=s(e,["passive"]),o=ot(),a="headlessui-label-"+w();C((function(){return o.register(a)}),[a,o.register]);var i=l({},o.props,{id:a}),u=l({},r,i);return n&&delete u.onClick,v({props:u,slot:o.slot||{},defaultTag:"label",name:o.name||"Label"})}!function(e){e[e.RegisterOption=0]="RegisterOption",e[e.UnregisterOption=1]="UnregisterOption"}(ut||(ut={}));var lt=((it={})[ut.RegisterOption]=function(e,t){return l({},e,{options:[].concat(e.options,[{id:t.id,element:t.element,propsRef:t.propsRef}])})},it[ut.UnregisterOption]=function(e,t){var n=e.options.slice(),r=e.options.findIndex((function(e){return e.id===t.id}));return-1===r?e:(n.splice(r,1),l({},e,{options:n}))},it),st=(0,u.createContext)(null);function ft(e){var t=(0,u.useContext)(st);if(null===t){var n=new Error("<"+e+" /> is missing a parent <"+vt.name+" /> component.");throw Error.captureStackTrace&&Error.captureStackTrace(n,ft),n}return t}function pt(e,t){return d(t.type,lt,e,t)}st.displayName="RadioGroupContext";var dt;function vt(e){var t=e.value,n=e.onChange,r=s(e,["value","onChange"]),o=(0,u.useReducer)(pt,{propsRef:{current:{value:t,onChange:n}},options:[]}),i=o[0],c=i.propsRef,f=i.options,p=at(),d=p[0],m=p[1],b=q(),h=b[0],y=b[1],g="headlessui-radiogroup-"+w(),x=(0,u.useRef)(null);C((function(){c.current.value=t}),[t,c]),C((function(){c.current.onChange=n}),[n,c]);var S=(0,u.useCallback)((function(e){if(e!==t)return n(e)}),[n,t]);Pe({container:x.current,accept:function(e){return"radio"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk:function(e){e.setAttribute("role","none")}});var E=(0,u.useCallback)((function(e){if(x.current)switch(e.key){case a.ArrowLeft:case a.ArrowUp:if(e.preventDefault(),e.stopPropagation(),R(f.map((function(e){return e.element.current})),T.Previous|T.WrapAround)===O.Success){var t=f.find((function(e){return e.element.current===document.activeElement}));t&&S(t.propsRef.current.value)}break;case a.ArrowRight:case a.ArrowDown:if(e.preventDefault(),e.stopPropagation(),R(f.map((function(e){return e.element.current})),T.Next|T.WrapAround)===O.Success){var n=f.find((function(e){return e.element.current===document.activeElement}));n&&S(n.propsRef.current.value)}break;case a.Space:e.preventDefault(),e.stopPropagation();var r=f.find((function(e){return e.element.current===document.activeElement}));r&&S(r.propsRef.current.value)}}),[x,f,S]),L={ref:x,id:g,role:"radiogroup","aria-labelledby":d,"aria-describedby":h,onKeyDown:E};return u.createElement(y,{name:"RadioGroup.Description"},u.createElement(m,{name:"RadioGroup.Label"},u.createElement(st.Provider,{value:o},v({props:l({},r,L),defaultTag:"div",name:"RadioGroup"}))))}!function(e){e[e.Empty=1]="Empty",e[e.Active=2]="Active"}(dt||(dt={}));vt.Option=function e(t){var n,r=(0,u.useRef)(null),o="headlessui-radiogroup-option-"+w(),a=at(),i=a[0],c=a[1],f=q(),p=f[0],d=f[1],m=function(e){void 0===e&&(e=0);var t=(0,u.useState)(e),n=t[0],r=t[1];return{addFlag:(0,u.useCallback)((function(e){return r((function(t){return t|e}))}),[r]),hasFlag:(0,u.useCallback)((function(e){return Boolean(n&e)}),[n]),removeFlag:(0,u.useCallback)((function(e){return r((function(t){return t&~e}))}),[r]),toggleFlag:(0,u.useCallback)((function(e){return r((function(t){return t^e}))}),[r])}}(dt.Empty),b=m.addFlag,h=m.removeFlag,y=m.hasFlag,g=t.value,x=s(t,["value"]),S=(0,u.useRef)({value:g});C((function(){S.current.value=g}),[g,S]);var E=ft([vt.name,e.name].join(".")),T=E[0],O=T.propsRef,L=T.options,k=E[1];C((function(){return k({type:ut.RegisterOption,id:o,element:r,propsRef:S}),function(){return k({type:ut.UnregisterOption,id:o})}}),[o,k,r,t]);var I=(0,u.useCallback)((function(){var e;O.current.value!==g&&(b(dt.Active),O.current.onChange(g),null==(e=r.current)||e.focus())}),[b,O,g]),P=(0,u.useCallback)((function(){return b(dt.Active)}),[b]),M=(0,u.useCallback)((function(){return h(dt.Active)}),[h]),R=(null==L||null==(n=L[0])?void 0:n.id)===o,A=O.current.value===g,N={ref:r,id:o,role:"radio","aria-checked":A?"true":"false","aria-labelledby":i,"aria-describedby":p,tabIndex:A||void 0===O.current.value&&R?0:-1,onClick:I,onFocus:P,onBlur:M},D=(0,u.useMemo)((function(){return{checked:A,active:y(dt.Active)}}),[A,y]);return u.createElement(d,{name:"RadioGroup.Description"},u.createElement(c,{name:"RadioGroup.Label"},v({props:l({},x,N),slot:D,defaultTag:"div",name:"RadioGroup.Option"})))},vt.Label=ct,vt.Description=z;var mt=(0,u.createContext)(null);mt.displayName="GroupContext";var bt=u.Fragment;var ht;function yt(e){var t=e.checked,n=e.onChange,r=s(e,["checked","onChange"]),o="headlessui-switch-"+w(),i=(0,u.useContext)(mt),c=(0,u.useCallback)((function(){return n(!t)}),[n,t]),f=(0,u.useCallback)((function(e){if(g(e.currentTarget))return e.preventDefault();e.preventDefault(),c()}),[c]),p=(0,u.useCallback)((function(e){e.key!==a.Tab&&e.preventDefault(),e.key===a.Space&&c()}),[c]),d=(0,u.useCallback)((function(e){return e.preventDefault()}),[]),m=(0,u.useMemo)((function(){return{checked:t}}),[t]),b={id:o,ref:null===i?void 0:i.setSwitch,role:"switch",tabIndex:0,"aria-checked":t,"aria-labelledby":null==i?void 0:i.labelledby,"aria-describedby":null==i?void 0:i.describedby,onClick:f,onKeyUp:p,onKeyPress:d};return"button"===r.as&&Object.assign(b,{type:"button"}),v({props:l({},r,b),slot:m,defaultTag:"button",name:"Switch"})}function gt(){var e=(0,u.useRef)(!0);return(0,u.useEffect)((function(){e.current=!1}),[]),e.current}function Ct(e){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e&&r.length>0&&(t=e.classList).add.apply(t,r)}function xt(e){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e&&r.length>0&&(t=e.classList).remove.apply(t,r)}function St(e,t,n,r,o){var a=ve(),i=void 0!==o?function(e){var t={called:!1};return function(){if(!t.called)return t.called=!0,e.apply(void 0,arguments)}}(o):function(){};return Ct.apply(void 0,[e].concat(t,n)),a.nextFrame((function(){xt.apply(void 0,[e].concat(n)),Ct.apply(void 0,[e].concat(r)),a.add(function(e,t){var n=ve();if(!e)return n.dispose;var r=getComputedStyle(e),o=[r.transitionDuration,r.transitionDelay].map((function(e){var t=e.split(",").filter(Boolean).map((function(e){return e.includes("ms")?parseFloat(e):1e3*parseFloat(e)})).sort((function(e,t){return t-e}))[0];return void 0===t?0:t})),a=o[0],i=o[1];return 0!==a?n.setTimeout((function(){t(ht.Finished)}),a+i):t(ht.Finished),n.add((function(){return t(ht.Cancelled)})),n.dispose}(e,(function(n){return xt.apply(void 0,[e].concat(r,t)),i(n)})))})),a.add((function(){return xt.apply(void 0,[e].concat(t,n,r))})),a.add((function(){return i(ht.Cancelled)})),a.dispose}function Et(e){return void 0===e&&(e=""),(0,u.useMemo)((function(){return e.split(" ").filter((function(e){return e.trim().length>1}))}),[e])}yt.Group=function(e){var t=(0,u.useState)(null),n=t[0],r=t[1],o=at(),a=o[0],i=o[1],c=q(),l=c[0],s=c[1],f=(0,u.useMemo)((function(){return{switch:n,setSwitch:r,labelledby:a,describedby:l}}),[n,r,a,l]);return u.createElement(s,{name:"Switch.Description"},u.createElement(i,{name:"Switch.Label",props:{onClick:function(){n&&(n.click(),n.focus({preventScroll:!0}))}}},u.createElement(mt.Provider,{value:f},v({props:e,defaultTag:bt,name:"Switch.Group"}))))},yt.Label=ct,yt.Description=z,function(e){e.Finished="finished",e.Cancelled="cancelled"}(ht||(ht={}));var wt,Tt=(0,u.createContext)(null);Tt.displayName="TransitionContext",function(e){e.Visible="visible",e.Hidden="hidden"}(wt||(wt={}));var Ot=(0,u.createContext)(null);function Lt(e){return"children"in e?Lt(e.children):e.current.filter((function(e){return e.state===wt.Visible})).length>0}function kt(e){var t=(0,u.useRef)(e),n=(0,u.useRef)([]),r=function(){var e=(0,u.useRef)(!0);return(0,u.useEffect)((function(){return function(){e.current=!1}}),[]),e}();(0,u.useEffect)((function(){t.current=e}),[e]);var a=(0,u.useCallback)((function(e,a){var i;void 0===a&&(a=o.Hidden);var u=n.current.findIndex((function(t){return t.id===e}));-1!==u&&(d(a,((i={})[o.Unmount]=function(){n.current.splice(u,1)},i[o.Hidden]=function(){n.current[u].state=wt.Hidden},i)),!Lt(n)&&r.current&&(null==t.current||t.current()))}),[t,r,n]),i=(0,u.useCallback)((function(e){var t=n.current.find((function(t){return t.id===e}));return t?t.state!==wt.Visible&&(t.state=wt.Visible):n.current.push({id:e,state:wt.Visible}),function(){return a(e,o.Unmount)}}),[n,a]);return(0,u.useMemo)((function(){return{children:n,register:i,unregister:a}}),[i,a,n])}function It(){}Ot.displayName="NestingContext";var Pt=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function Mt(e){for(var t,n={},r=p(Pt);!(t=r()).done;){var o,a=t.value;n[a]=null!=(o=e[a])?o:It}return n}var Rt=r.RenderStrategy;function At(e){var t=e.beforeEnter,n=e.afterEnter,r=e.beforeLeave,a=e.afterLeave,i=e.enter,c=e.enterFrom,f=e.enterTo,p=e.leave,m=e.leaveFrom,b=e.leaveTo,h=s(e,["beforeEnter","afterEnter","beforeLeave","afterLeave","enter","enterFrom","enterTo","leave","leaveFrom","leaveTo"]),y=(0,u.useRef)(null),g=(0,u.useState)(wt.Visible),x=g[0],S=g[1],E=h.unmount?o.Unmount:o.Hidden,T=function(){var e=(0,u.useContext)(Tt);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),O=T.show,L=T.appear,k=function(){var e=(0,u.useContext)(Ot);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),I=k.register,P=k.unregister,M=gt(),R=w(),A=(0,u.useRef)(!1),N=kt((function(){A.current||(S(wt.Hidden),P(R),B.current.afterLeave())}));C((function(){if(R)return I(R)}),[I,R]),C((function(){var e;E===o.Hidden&&R&&(O&&x!==wt.Visible?S(wt.Visible):d(x,((e={})[wt.Hidden]=function(){return P(R)},e[wt.Visible]=function(){return I(R)},e)))}),[x,R,I,P,O,E]);var D=Et(i),F=Et(c),j=Et(f),H=Et(p),Z=Et(m),U=Et(b),B=function(e){var t=(0,u.useRef)(Mt(e));return(0,u.useEffect)((function(){t.current=Mt(e)}),[e]),t}({beforeEnter:t,afterEnter:n,beforeLeave:r,afterLeave:a});(0,u.useEffect)((function(){if(x===wt.Visible&&null===y.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[y,x]);var V=M&&!L;C((function(){var e=y.current;if(e&&!V)return A.current=!0,O&&B.current.beforeEnter(),O||B.current.beforeLeave(),O?St(e,D,F,j,(function(e){A.current=!1,e===ht.Finished&&B.current.afterEnter()})):St(e,H,Z,U,(function(e){A.current=!1,e===ht.Finished&&(Lt(N)||(S(wt.Hidden),P(R),B.current.afterLeave()))}))}),[B,R,A,P,N,y,V,O,D,F,j,H,Z,U]);var G={ref:y},_=h;return u.createElement(Ot.Provider,{value:N},v({props:l({},_,G),defaultTag:"div",features:Rt,visible:x===wt.Visible,name:"Transition.Child"}))}function Nt(e){var t=e.show,n=e.appear,r=void 0!==n&&n,o=e.unmount,a=s(e,["show","appear","unmount"]);if(![!0,!1].includes(t))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");var i=(0,u.useState)(t?wt.Visible:wt.Hidden),c=i[0],f=i[1],p=kt((function(){f(wt.Hidden)})),d=gt(),m=(0,u.useMemo)((function(){return{show:t,appear:r||!d}}),[t,r,d]);(0,u.useEffect)((function(){t?f(wt.Visible):Lt(p)||f(wt.Hidden)}),[t,p]);var b={unmount:o};return u.createElement(Ot.Provider,{value:p},u.createElement(Tt.Provider,{value:m},v({props:l({},b,{as:u.Fragment,children:u.createElement(At,Object.assign({},b,a))}),defaultTag:u.Fragment,features:Rt,visible:c===wt.Visible,name:"Transition"})))}Nt.Child=At,Nt.Root=Nt;var Dt=function(e){return u.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},e),u.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 6h16M4 12h16M4 18h16"}))};var Ft=function(e){return u.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},e),u.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"}))};var jt=function(){var e=[{name:"Projects",href:"/projects"},{name:"About",href:"/#about"},{name:"Blog",href:"/blog"}];return u.createElement("header",null,u.createElement(ie,{as:"nav",className:"bg-black"},(function(t){var n=t.open;return u.createElement(u.Fragment,null,u.createElement("div",{className:"max-w-5xl mx-auto px-4 sm:px-6 lg:px-8"},u.createElement("div",{className:"flex items-center justify-between h-16"},u.createElement(i.Link,{to:"/",className:"flex items-center"},u.createElement("div",{className:"flex-shrink-0 text-white uppercase tracking-widest font-bold"},"Open Climate Fix")),u.createElement("div",{className:"hidden md:block"},u.createElement("div",{className:"ml-10 flex items-baseline space-x-4 uppercase"},e.map((function(e){var t=e.name,n=e.href;return u.createElement(i.Link,{key:t,to:n,className:"text-white hover:text-yellow-400 px-3 py-2 text-sm font-medium tracking-widest"},t)})))),u.createElement("div",{className:"-mr-2 flex md:hidden"},u.createElement(ie.Button,{className:"inline-flex items-center justify-center p-2 rounded-md text-white hover:text-yellow-400 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-black-800 focus:ring-white"},u.createElement("span",{className:"sr-only"},"Open main menu"),n?u.createElement(Ft,{className:"block h-6 w-6","aria-hidden":"true"}):u.createElement(Dt,{className:"block h-6 w-6","aria-hidden":"true"}))))),u.createElement(ie.Panel,{className:"md:hidden"},u.createElement("div",{className:"px-2 pt-2 pb-3 space-y-1 sm:px-3"},e.map((function(e){var t=e.name,n=e.href;return u.createElement("a",{key:{name:t},href:n,className:"text-white hover:text-yellow-400 block px-3 py-2 rounded-md text-base font-medium uppercase"},t)})))))})))}},1277:function(e,t,n){"use strict";n.d(t,{Z:function(){return ye}});var r,o,a,i,u=n(7294),c=n(5697),l=n.n(c),s=n(4839),f=n.n(s),p=n(2993),d=n.n(p),v=n(6494),m=n.n(v),b="bodyAttributes",h="htmlAttributes",y="titleAttributes",g={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},C=(Object.keys(g).map((function(e){return g[e]})),"charset"),x="cssText",S="href",E="http-equiv",w="innerHTML",T="itemprop",O="name",L="property",k="rel",I="src",P="target",M={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},R="defaultTitle",A="defer",N="encodeSpecialCharacters",D="onChangeClientState",F="titleTemplate",j=Object.keys(M).reduce((function(e,t){return e[M[t]]=t,e}),{}),H=[g.NOSCRIPT,g.SCRIPT,g.STYLE],Z="data-react-helmet",U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},B=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},V=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),G=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},K=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},q=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return!1===t?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},Q=function(e){var t=J(e,g.TITLE),n=J(e,F);if(n&&t)return n.replace(/%s/g,(function(){return Array.isArray(t)?t.join(""):t}));var r=J(e,R);return t||r||void 0},W=function(e){return J(e,D)||function(){}},Y=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return G({},e,t)}),{})},z=function(e,t){return t.filter((function(e){return void 0!==e[g.BASE]})).map((function(e){return e[g.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),o=0;o<r.length;o++){var a=r[o].toLowerCase();if(-1!==e.indexOf(a)&&n[a])return t.concat(n)}return t}),[])},$=function(e,t,n){var r={};return n.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&re("Helmet: "+e+' should be of type "Array". Instead found type "'+U(t[e])+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,n){var o={};n.filter((function(e){for(var n=void 0,a=Object.keys(e),i=0;i<a.length;i++){var u=a[i],c=u.toLowerCase();-1===t.indexOf(c)||n===k&&"canonical"===e[n].toLowerCase()||c===k&&"stylesheet"===e[c].toLowerCase()||(n=c),-1===t.indexOf(u)||u!==w&&u!==x&&u!==T||(n=u)}if(!n||!e[n])return!1;var l=e[n].toLowerCase();return r[n]||(r[n]={}),o[n]||(o[n]={}),!r[n][l]&&(o[n][l]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var a=Object.keys(o),i=0;i<a.length;i++){var u=a[i],c=m()({},r[u],o[u]);r[u]=c}return e}),[]).reverse()},J=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.hasOwnProperty(t))return r[t]}return null},X=(r=Date.now(),function(e){var t=Date.now();t-r>16?(r=t,e(t)):setTimeout((function(){X(e)}),0)}),ee=function(e){return clearTimeout(e)},te="undefined"!=typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||X:n.g.requestAnimationFrame||X,ne="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||ee:n.g.cancelAnimationFrame||ee,re=function(e){return console&&"function"==typeof console.warn&&console.warn(e)},oe=null,ae=function(e,t){var n=e.baseTag,r=e.bodyAttributes,o=e.htmlAttributes,a=e.linkTags,i=e.metaTags,u=e.noscriptTags,c=e.onChangeClientState,l=e.scriptTags,s=e.styleTags,f=e.title,p=e.titleAttributes;ce(g.BODY,r),ce(g.HTML,o),ue(f,p);var d={baseTag:le(g.BASE,n),linkTags:le(g.LINK,a),metaTags:le(g.META,i),noscriptTags:le(g.NOSCRIPT,u),scriptTags:le(g.SCRIPT,l),styleTags:le(g.STYLE,s)},v={},m={};Object.keys(d).forEach((function(e){var t=d[e],n=t.newTags,r=t.oldTags;n.length&&(v[e]=n),r.length&&(m[e]=d[e].oldTags)})),t&&t(),c(e,v,m)},ie=function(e){return Array.isArray(e)?e.join(""):e},ue=function(e,t){void 0!==e&&document.title!==e&&(document.title=ie(e)),ce(g.TITLE,t)},ce=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute(Z),o=r?r.split(","):[],a=[].concat(o),i=Object.keys(t),u=0;u<i.length;u++){var c=i[u],l=t[c]||"";n.getAttribute(c)!==l&&n.setAttribute(c,l),-1===o.indexOf(c)&&o.push(c);var s=a.indexOf(c);-1!==s&&a.splice(s,1)}for(var f=a.length-1;f>=0;f--)n.removeAttribute(a[f]);o.length===a.length?n.removeAttribute(Z):n.getAttribute(Z)!==i.join(",")&&n.setAttribute(Z,i.join(","))}},le=function(e,t){var n=document.head||document.querySelector(g.HEAD),r=n.querySelectorAll(e+"["+"data-react-helmet]"),o=Array.prototype.slice.call(r),a=[],i=void 0;return t&&t.length&&t.forEach((function(t){var n=document.createElement(e);for(var r in t)if(t.hasOwnProperty(r))if(r===w)n.innerHTML=t.innerHTML;else if(r===x)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{var u=void 0===t[r]?"":t[r];n.setAttribute(r,u)}n.setAttribute(Z,"true"),o.some((function(e,t){return i=t,n.isEqualNode(e)}))?o.splice(i,1):a.push(n)})),o.forEach((function(e){return e.parentNode.removeChild(e)})),a.forEach((function(e){return n.appendChild(e)})),{oldTags:o,newTags:a}},se=function(e){return Object.keys(e).reduce((function(t,n){var r=void 0!==e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+r:r}),"")},fe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[M[n]||n]=e[n],t}),t)},pe=function(e,t,n){switch(e){case g.TITLE:return{toComponent:function(){return e=t.title,n=t.titleAttributes,(r={key:e})[Z]=!0,o=fe(n,r),[u.createElement(g.TITLE,o,e)];var e,n,r,o},toString:function(){return function(e,t,n,r){var o=se(n),a=ie(t);return o?"<"+e+' data-react-helmet="true" '+o+">"+q(a,r)+"</"+e+">":"<"+e+' data-react-helmet="true">'+q(a,r)+"</"+e+">"}(e,t.title,t.titleAttributes,n)}};case b:case h:return{toComponent:function(){return fe(t)},toString:function(){return se(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,n){var r,o=((r={key:n})[Z]=!0,r);return Object.keys(t).forEach((function(e){var n=M[e]||e;if(n===w||n===x){var r=t.innerHTML||t.cssText;o.dangerouslySetInnerHTML={__html:r}}else o[n]=t[e]})),u.createElement(e,o)}))}(e,t)},toString:function(){return function(e,t,n){return t.reduce((function(t,r){var o=Object.keys(r).filter((function(e){return!(e===w||e===x)})).reduce((function(e,t){var o=void 0===r[t]?t:t+'="'+q(r[t],n)+'"';return e?e+" "+o:o}),""),a=r.innerHTML||r.cssText||"",i=-1===H.indexOf(e);return t+"<"+e+' data-react-helmet="true" '+o+(i?"/>":">"+a+"</"+e+">")}),"")}(e,t,n)}}}},de=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,o=e.htmlAttributes,a=e.linkTags,i=e.metaTags,u=e.noscriptTags,c=e.scriptTags,l=e.styleTags,s=e.title,f=void 0===s?"":s,p=e.titleAttributes;return{base:pe(g.BASE,t,r),bodyAttributes:pe(b,n,r),htmlAttributes:pe(h,o,r),link:pe(g.LINK,a,r),meta:pe(g.META,i,r),noscript:pe(g.NOSCRIPT,u,r),script:pe(g.SCRIPT,c,r),style:pe(g.STYLE,l,r),title:pe(g.TITLE,{title:f,titleAttributes:p},r)}},ve=f()((function(e){return{baseTag:z([S,P],e),bodyAttributes:Y(b,e),defer:J(e,A),encode:J(e,N),htmlAttributes:Y(h,e),linkTags:$(g.LINK,[k,S],e),metaTags:$(g.META,[O,C,E,L,T],e),noscriptTags:$(g.NOSCRIPT,[w],e),onChangeClientState:W(e),scriptTags:$(g.SCRIPT,[I,w],e),styleTags:$(g.STYLE,[x],e),title:Q(e),titleAttributes:Y(y,e)}}),(function(e){oe&&ne(oe),e.defer?oe=te((function(){ae(e,(function(){oe=null}))})):(ae(e),oe=null)}),de)((function(){return null})),me=(o=ve,i=a=function(e){function t(){return B(this,t),K(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.shouldComponentUpdate=function(e){return!d()(this.props,e)},t.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case g.SCRIPT:case g.NOSCRIPT:return{innerHTML:t};case g.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},t.prototype.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren,o=e.newChildProps,a=e.nestedChildren;return G({},r,((t={})[n.type]=[].concat(r[n.type]||[],[G({},o,this.mapNestedChildrenToProps(n,a))]),t))},t.prototype.mapObjectTypeChildren=function(e){var t,n,r=e.child,o=e.newProps,a=e.newChildProps,i=e.nestedChildren;switch(r.type){case g.TITLE:return G({},o,((t={})[r.type]=i,t.titleAttributes=G({},a),t));case g.BODY:return G({},o,{bodyAttributes:G({},a)});case g.HTML:return G({},o,{htmlAttributes:G({},a)})}return G({},o,((n={})[r.type]=G({},a),n))},t.prototype.mapArrayTypeChildrenToProps=function(e,t){var n=G({},t);return Object.keys(e).forEach((function(t){var r;n=G({},n,((r={})[t]=e[t],r))})),n},t.prototype.warnOnInvalidChildren=function(e,t){return!0},t.prototype.mapChildrenToProps=function(e,t){var n=this,r={};return u.Children.forEach(e,(function(e){if(e&&e.props){var o=e.props,a=o.children,i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[j[n]||n]=e[n],t}),t)}(_(o,["children"]));switch(n.warnOnInvalidChildren(e,a),e.type){case g.LINK:case g.META:case g.NOSCRIPT:case g.SCRIPT:case g.STYLE:r=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:r,newChildProps:i,nestedChildren:a});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:i,nestedChildren:a})}}})),t=this.mapArrayTypeChildrenToProps(r,t)},t.prototype.render=function(){var e=this.props,t=e.children,n=_(e,["children"]),r=G({},n);return t&&(r=this.mapChildrenToProps(t,r)),u.createElement(o,r)},V(t,null,[{key:"canUseDOM",set:function(e){o.canUseDOM=e}}]),t}(u.Component),a.propTypes={base:l().object,bodyAttributes:l().object,children:l().oneOfType([l().arrayOf(l().node),l().node]),defaultTitle:l().string,defer:l().bool,encodeSpecialCharacters:l().bool,htmlAttributes:l().object,link:l().arrayOf(l().object),meta:l().arrayOf(l().object),noscript:l().arrayOf(l().object),onChangeClientState:l().func,script:l().arrayOf(l().object),style:l().arrayOf(l().object),title:l().string,titleAttributes:l().object,titleTemplate:l().string},a.defaultProps={defer:!0,encodeSpecialCharacters:!0},a.peek=o.peek,a.rewind=function(){var e=o.rewind();return e||(e=de({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),e},i);me.renderStatic=me.rewind;var be=n(5444);function he(e){var t=e.description,n=e.lang,r=e.meta,o=e.title,a=e.imageUrl,i=e.authorTwitter,c=(0,be.useStaticQuery)("63159454").site,l=t||c.siteMetadata.description,s=a||"https://raw.githubusercontent.com/openclimatefix/website/master/src/images/logo_dark_square%402x.png",f=i?"@"+i:c.siteMetadata.author;return u.createElement(me,{htmlAttributes:{lang:n},title:o,titleTemplate:"%s | "+c.siteMetadata.title,link:[{href:"https://fonts.googleapis.com/css2?family=Inter&display=swap",rel:"stylesheet"}],meta:[{name:"description",content:l},{property:"og:title",content:o},{property:"og:description",content:l},{property:"og:type",content:"website"},{property:"og:image",content:s},{name:"twitter:card",content:"summary"},{name:"twitter:creator",content:f},{name:"twitter:title",content:o},{name:"twitter:description",content:l},{name:"twitter:image",content:s},{name:"twitter:site",content:"@OpenClimateFix"}].concat(r)})}he.defaultProps={lang:"en",meta:[],description:"Open Climate Fix is a new non-profit research and development lab, totally focused on reducing greenhouse gas emissions as rapidly as possible. Every part of the organisation is designed to maximise climate impact, such as our open and collaborative approach, our rapid prototyping, and our attention on finding scalable & practical solutions."};var ye=he}}]);
//# sourceMappingURL=commons-3c62fc28a267bdd69995.js.map