@carbonplan/components 13.2.0 → 13.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dst/index.esm.js CHANGED
@@ -1,2 +1,2 @@
1
- import e,{Children as t,forwardRef as n,cloneElement as r,useRef as o,useState as a,useEffect as i,useCallback as l,useMemo as c}from"react";import{Box as s,Image as m,Grid as p,Link as d,Flex as u,useThemeUI as x,IconButton as h,Container as f,useColorMode as g,Text as y,Input as E,Slider as b}from"theme-ui";import{transparentize as v}from"@theme-ui/color";import w from"next/link";import{Arrow as k,Sun as C,RotatingArrow as S}from"@carbonplan/icons";import{PoopSad as z}from"@carbonplan/emoji";import W from"next/head";import{keyframes as A}from"@emotion/react";function M(){return M=Object.assign?Object.assign.bind():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},M.apply(this,arguments)}function L(e){if(null==e)throw new TypeError("Cannot destructure "+e)}function T(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}var F=["color","width","maxWidth","name","github","alt","src","sx"],I=function(t){var n,r,o=t.color,a=void 0===o?"transparent":o,i=t.width,l=void 0===i?"90px":i,c=t.maxWidth,p=t.name,d=t.github,u=t.alt,x=t.src,h=t.sx,f=T(t,F);return p||x||d||console.warn("must specify either name, github, or src"),p?(n="https://images.carbonplan.org/team/"+p.toLowerCase().replaceAll(" ","-")+".png",r=u||p):d?(n="https://github.com/"+d+".png",r=u||d):(n=x,r=u),e.createElement(s,M({sx:M({width:l,maxWidth:c,height:"auto",borderRadius:"50%",position:"relative",display:"inline-block",verticalAlign:"top",bg:a},h)},f),e.createElement(m,{alt:r,src:n,sx:{opacity:a&&"transparent"!==a?.25:1,filter:a&&"transparent"!==a?"grayscale(100%) contrast(200%) brightness(100%)":"none",width:"100%",borderRadius:"50%",display:"block"}}))},B=["children","sx","columns","gap"],O=function(t){var n,r,o=t.children,a=t.sx,i=t.columns,l=t.gap,c=T(t,B),s=function(e){if(Array.isArray(e)||(e=[e,e,e,e]),Array.isArray(e)&&![1,2,4].includes(e.length))throw new Error("Array length must be 1, 2, or 4");return Array.isArray(e)&&1==e.length&&(e=e.map(function(e){return[e]}).flat()),Array.isArray(e)&&2==e.length&&(e=e.map(function(e){return[e,e]}).flat()),e};return Number.isInteger(l)||Array.isArray(l)?(n=l=s(l),r=l):(n=[4,5,5,6],r=[0,0,0,0]),i=Number.isInteger(i)||Array.isArray(i)?s(i):[6,8,12,12],e.createElement(p,M({},c,{columns:i,sx:M({columnGap:n,rowGap:r},a)}),o)},R=["start","width","dl","dr","children","sx"],D=function(t){var n=t.start,r=t.width,o=t.dl,a=t.dr,i=t.children,l=t.sx,c=T(t,R);r=r||"auto";var m=function(e){if(e&&!Array.isArray(e)&&(e=[e]),![1,2,4].includes(e.length))throw new Error("Array length must be 1, 2, or 4");return Array.isArray(e)&&1==e.length?e=e.map(function(e){return[e,e,e,e]}).flat():Array.isArray(e)&&2==e.length&&(e=e.map(function(e){return[e,e]}).flat()),e};n=m(n=n||"auto"),r=m(r);var p,d,u=n.map(function(e,t){return"auto"==e?"auto":e+r[t]});if(o){if(![.5,1].includes(o))throw new Error("dl must be 0.5 or 1");.5===o&&(p=["-12px",-3,-3,-4]),1===o&&(p=[-4,-5,-5,-6])}if(a){if(![.5,1].includes(a))throw new Error("dr must be 0.5 or 1");.5===a&&(d=["-12px",-3,-3,-4]),1===a&&(d=[-4,-5,-5,-6])}return e.createElement(s,M({},c,{sx:M({gridColumnStart:n,gridColumnEnd:u,ml:p,mr:d},l)}),i)},N={xs:[1],sm:[3],md:[5],lg:[7],xl:[9]},H=function(t){var n,r=t.children,o=t.direction,a=void 0===o?"vertical":o,i=t.spacing,l=void 0===i?"md":i,c=t.sx;if(n="string"==typeof l&&N.hasOwnProperty(l)?N[l]:l,!["horizontal","vertical"].includes(a))throw new Error("Invalid direction value. Must be either horizontal or vertical");var m="vertical"===a?"mb":"mr",p="horizontal"===a?{display:"inline-block"}:{};return e.createElement(s,{sx:c},e.Children.map(r,function(t,o){var a;return e.createElement(s,{sx:M((a={},a[m]=o<r.length-1?n:0,a),p)},t)}))},V=["members","direction","align","spacing","limit","width","maxWidth","fixedCount","sx"],j={xs:[1],sm:[3],md:[5],lg:[7],xl:[9]},P=function(t){return e.createElement(s,{sx:{bg:"muted",height:"100%",maxWidth:t.maxWidth,borderRadius:"50%"}},e.createElement(s,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%"}},e.createElement(s,{sx:{fontFamily:"mono",letterSpacing:"mono",fontSize:[3,3,3,4]}},"+",t.overflow)))},G=function(t){var n,r=t.members,o=t.direction,a=void 0===o?"horizontal":o,i=t.align,l=t.spacing,c=void 0===l?"md":l,s=t.limit,m=t.width,p=t.maxWidth,d=t.fixedCount,u=t.sx,x=T(t,V);n=j.hasOwnProperty(c)?j[c]:c;var h=function(e){return"auto"};i&&(Array.isArray(i)||(i=[i]),h=function(e){return i.map(function(t){if("left"===t)return"auto";if("right"===t)return(Math.max(0,d-r.length)+e)%d+1;throw Error("alignment '"+t+"' not recognized")})});var f=r.length>s,g=r.length-s+1;return e.createElement(e.Fragment,null,d&&e.createElement(O,M({columns:d,gap:n,sx:u},x),r.map(function(t,n){return e.createElement(D,{key:n,start:h(n)},(!f||n<s-1)&&e.createElement(I,M({},t,{width:m,maxWidth:p})),f&&n===s-1&&e.createElement(P,{overflow:g,maxWidth:p}))})),!d&&e.createElement(H,M({direction:a,spacing:c,sx:u},x),r.map(function(t,n){return e.createElement(I,M({key:n},t,{width:m,maxWidth:p}))})))},_=["sx","children"],Y=function(t){var n=t.sx,r=t.children,o=T(t,_),a=n&&n.color?n.color:"primary";return e.createElement(s,M({sx:M({display:"inline-block",width:"fit-content",height:["24px","24px","24px","26px"],borderRadius:"5px",backgroundColor:"primary"==a||"secondary"==a?"muted":v(a,.7),textAlign:"center",userSelect:"none",fontSize:[2,2,2,3]},n)},o),e.createElement(s,{sx:{letterSpacing:"0.02em",fontFamily:"mono",mt:["1px","1px","1px","0px"],px:[1,1,1,"5px"],color:a}},r))},X=["“",'"',"'","‘"],U=function(n){var r=n.children;return e.createElement(s,{variant:"styles.blockquote"},t.map(r,function(t,n){var o="",a=r;return t.props&&"string"==typeof t.props.children?(o=t.props.children.slice(0,1),a=t.props.children.slice(1)):"string"==typeof t&&(o=t.slice(0,1),a=t.slice(1)),e.createElement(e.Fragment,null,X.includes(o)&&e.createElement(s,{as:"span",sx:{position:"absolute",ml:"-0.4em"}},o),X.includes(o)?a:t)}))},q=["href","children","internal"],K=n(function(t,n){var r=t.href,o=t.children,a=t.internal,i=void 0!==a&&a,l=T(t,q);return i||r&&r.startsWith("/")?e.createElement(w,{href:r,passHref:!0,legacyBehavior:!0},e.createElement(d,M({ref:n},l),o)):e.createElement(d,M({ref:n,href:r},l),o)}),Z=function(e){if(!["xs","sm","md","lg","xl"].includes(e))throw new Error("Size must be xs, sm, md, lg, or xl");var t,n,r,o;return"xs"===e&&(t=[2,2,2,3],n="body",r="body",o=[1.2]),"sm"===e&&(t=[3,3,3,4],n="body",r="body",o=[1.2]),"md"===e&&(t=[4,4,4,5],n="body",r="body",o=[1.2]),"lg"===e&&(t=[5,5,6,7],n="heading",r="heading",o=[1.2,1.2,1.25,1.25]),"xl"===e&&(t=[6,7,8,9],n="heading",r="heading",o=[1.25]),{fontSize:t,fontFamily:n,letterSpacing:r,lineHeight:o}},$=["size","prefix","suffix","inverted","sx","children","align","href","internal"],J=["color"],Q=n(function(t,n){var o,a,i,l,c,m=t.size,p=void 0===m?"sm":m,d=t.prefix,u=t.suffix,x=t.inverted,h=t.sx,f=t.children,g=t.align,y=t.href,E=t.internal,b=T(t,$);if(!["xs","sm","md","lg","xl"].includes(p))throw new Error("Size must be xs, sm, md, lg, or xl");var v,w,k,C,S,z,W=h||{},A=W.color,L=T(W,J),F=A||(x?"secondary":"primary"),I=A||x?"primary":"secondary";"xs"===p&&(a=["6px","6px","6px","6px"],i=[12,12,12,13],l=[12,12,12,13],c=[1.5,1.5,1.5,1.5],o={transform:"translateY(0.25px)"}),"sm"===p&&(a=["7px","7px","7px","7px"],i=[13,13,13,18],l=[13,13,13,18],c=[1.5,1.5,1.5,2],o={transform:"translateY(0.25px)"}),"md"===p&&(a=["8px","8px","8px","8px"],i=[18,18,18,24],l=[18,18,18,24],c=[2,2,2,3]),"lg"===p&&(a=["10px","10px","12px","16px"],i=[24,24,34,46],l=[24,24,34,46],c=[3,3,4,5]),"xl"===p&&(a=["12px","16px","18px","20px"],i=[34,46,56,68],l=[34,46,56,68],c=[4,5,6,7]),g?(k=g,C=g):d&&u?(k="initial",C="initial"):d?k="initial":u&&(C="middle"),S="middle"===k?{}:o,z="middle"===C?{}:o,d&&(v={"&:hover > #prefix-span > #prefix":M({color:I},d.type.hover)},d=r(d,{id:"prefix",sx:M({position:"relative",height:i,width:l,mr:f?a:[0],strokeWidth:c,verticalAlign:k,transition:"color 0.15s, transform 0.15s"},d.props.sx)})),u&&(w={"&:hover > #suffix-span >#suffix":M({color:I},u.type.hover)},u=r(u,{id:"suffix",sx:M({height:i,width:l,ml:f?a:[0],strokeWidth:c,verticalAlign:C,transition:"color 0.15s, transform 0.15s"},u.props.sx)}));var B=M({},Z(p),{lineHeight:1.05,border:"none",background:"transparent",display:"block",color:F,padding:[0],textAlign:"left",cursor:"pointer",width:"fit-content","@media (hover: hover) and (pointer: fine)":M({"&:hover":{color:I}},w,v)},L),O=e.createElement(e.Fragment,null,e.createElement(s,{as:"span",id:"prefix-span",sx:M({display:"inline-block"},S)},d&&d),e.createElement(s,{as:"span",sx:{transition:"color 0.15s"}},f),e.createElement(s,{as:"span",id:"suffix-span",sx:M({display:"inline-block"},z)},u&&u));return y?e.createElement(K,M({ref:n,href:y,internal:E,sx:M({},B,{textDecoration:"none"})},b),O):e.createElement(s,M({ref:n,as:"button",sx:B},b),O)}),ee=["label","children","inverted","color","href","internal","sx"],te=n(function(t,n){var r=t.label,o=t.children,a=t.inverted,i=t.color,l=t.href,c=t.internal,m=t.sx,p=T(t,ee),d=i||(a?"secondary":"primary"),u=i||a?"primary":"secondary",x=M({border:"none",padding:[0],fontSize:[3,3,3,4],color:d,background:"transparent",textDecoration:"none",fontFamily:"body",lineHeight:"h3",letterSpacing:"body",width:"fit-content",cursor:"pointer",textAlign:"left",mb:[1],"@media (hover: hover) and (pointer: fine)":{"&:hover > #container > #arrow":{transform:"rotate(45deg)",fill:u},"&:hover":{color:u}}},m),h=e.createElement(e.Fragment,null,e.createElement(s,{sx:{transition:"0.15s",letterSpacing:"body",pb:["6px"]}},o),e.createElement(s,{sx:{transition:"0.15s",display:"inline-block",textTransform:"uppercase",letterSpacing:"smallcaps",fontFamily:"heading",fontSize:[2,2,2,3]}},r),e.createElement(s,{as:"span",id:"container",sx:{ml:[2],display:"inline-block"}},e.createElement(k,{id:"arrow",sx:{transition:"fill 0.15s, transform 0.15s",position:"relative",top:["2px"],color:d,height:[15,15,15,17],width:[15,15,15,17]}})));return l?e.createElement(K,M({ref:n,href:l,internal:c,sx:x},p),h):e.createElement(s,M({ref:n,as:"button",sx:x},p),h)}),ne=function(t){var n=t.as,r=t.number,o=t.children,a=t.label;return e.createElement(s,{as:void 0===n?"figcaption":n,sx:{color:"secondary",display:"block",textAlign:"left",fontSize:[2,2,2,3],"& a":{color:"secondary"},"& a:hover":{color:"primary"},"& > p":{display:"inline",fontSize:[2,2,2,3]}}},r&&e.createElement(e.Fragment,null,e.createElement(s,{sx:{textTransform:"uppercase",letterSpacing:"smallcaps",display:"inline-block"}},void 0===a?"figure":a," ",r)," ",e.createElement(s,{sx:{display:"inline-block",mx:[1],pr:[1]}},"/")),o)},re=["colormap","label","clim","setClim","setClimStep","discrete","units","width","height","format","horizontal","bottom","sx","sxClim"],oe=function(e){return{bg:"unset",border:"none",color:"primary",px:0,fontFamily:"mono",fontSize:["9px",0,0,1],letterSpacing:"smallcaps",textTransform:"uppercase",transition:"border 0.15s",userSelect:e?"none !important":"unset",width:"fit-content",minWidth:"fit-content"}},ae={width:["10px","16px","16px","17px"],height:["80px","110px","110px","130px"]},ie=function(t){var n=t.colormap,r=t.discrete,o=t.horizontal,a=t.width,i=t.height,l=1/n.length*100,c=String(n[0]).startsWith("#"),m="linear-gradient(to "+(o?"right":"top")+", "+n.map(function(e,t){var o;return"rgb("+(c?(o=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e))?parseInt(o[1],16)+", "+parseInt(o[2],16)+", "+parseInt(o[3],16):null:e)+") "+t*l+"% "+(r&&t<n.length-1?(t+1)*l+"%":"")}).join(",")+")";return e.createElement(s,{sx:M({},o?{width:a||ae.height,height:i||ae.width}:{width:a||ae.width,minHeight:i||ae.height},{mt:o?["1px","1px","1px",0]:0,border:function(e){return"solid 1px "+e.colors.hinted},background:m})})},le=function(t){var n=t.label,r=t.units,o=t.horizontal;return e.createElement(s,{sx:!o&&{width:["13px","17px","17px","19px"],alignSelf:"flex-end"}},e.createElement(s,{sx:M({mb:o?0:["-4px","-4px","-4px","-3px"],fontFamily:"mono",fontSize:["9px",0,0,1],letterSpacing:"smallcaps",textTransform:"uppercase"},o?{}:{writingMode:"vertical-rl",transform:"rotate(180deg)",whiteSpace:"nowrap",display:"inline-block",overflow:"visible"})},n," ",e.createElement(s,{as:"span",sx:{textTransform:"none",color:"secondary",display:"inline-block"}},r)))},ce=function(t){var n=t.colormap,r=t.label,l=t.clim,c=t.setClim,m=t.setClimStep,p=void 0===m?1:m,d=t.discrete,x=t.units,h=t.width,f=t.height,g=t.format,y=void 0===g?function(e){return e}:g,E=t.horizontal,b=void 0!==E&&E,v=t.bottom,w=void 0!==v&&v,k=t.sx,C=t.sxClim,S=T(t,re);if(!Array.isArray(n))throw new Error("expected array for colormap, got '"+n+"'.");var z,W,A,L=[o(),o()],F=a(!1),I=F[0],B=F[1],O=a(!1),R=O[0],D=O[1],N=0,H=null,V=[0,0],j=p,P=function(e){"min"!==H||I||B(!0),"max"!==H||R||D(!0),A=e.pageX-z,N=e.pageY-W,b?("min"===H&&c(function(e){return[Math.min(V[0]+A*j,V[1]),e[1]]}),"max"===H&&c(function(e){return[e[0],Math.max(V[1]+A*j,V[0])]})):("min"===H&&c(function(e){return[Math.min(V[0]-N*j,V[1]),e[1]]}),"max"===H&&c(function(e){return[e[0],Math.max(V[1]-N*j,V[0])]}))},G=function(e){W=e.pageY,z=e.pageX,H=e.target.id,V=l,document.body.setAttribute("style",b?"cursor: ew-resize !important":"cursor: ns-resize !important"),document.addEventListener("mousemove",P),window.addEventListener("mouseup",function e(){document.body.setAttribute("style","cursor: unset"),document.removeEventListener("mousemove",P),window.removeEventListener("mouseup",e),"min"===H&&B(!1),"max"===H&&D(!1)})};i(function(){var e=function(e){(["ArrowUp","ArrowRight"].includes(e.code)||["ArrowUp","ArrowRight"].includes(e.key))&&function(e){L[0].current===document.activeElement&&(e.preventDefault(),c(function(e){return[Math.min(e[0]+j,e[1]),e[1]]}),L[0].current.focus()),L[1].current===document.activeElement&&(e.preventDefault(),c(function(e){return[e[0],Math.max(e[1]+j,e[0])]}),L[1].current.focus())}(e),(["ArrowDown","ArrowLeft"].includes(e.code)||["ArrowDown","ArrowLeft"].includes(e.key))&&function(e){L[0].current===document.activeElement&&(e.preventDefault(),c(function(e){return[Math.min(e[0]-j,e[1]),e[1]]}),L[0].current.focus()),L[1].current===document.activeElement&&(e.preventDefault(),c(function(e){return[e[0],Math.max(e[1]-j,e[0])]}),L[1].current.focus())}(e)};return window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}},[l]);var _=function(){return e.createElement(s,{id:"min",as:c?"button":"div",ref:L[0],tabIndex:0,sx:M({},oe(c),{ml:r?b?w?"0px":"10px":["2px","1px","1px","2px"]:0,mr:b?["2px","1px","1px","2px"]:0,mb:b?0:["-2px","-2px","-2px","-3px"],borderBottom:c?function(e){return"solid 1px "+e.colors.primary}:"unset",cursor:c?b?"ew-resize":"ns-resize":"default"},C),onMouseDown:c?G:function(){},onClick:function(){return L[0].current.focus()}},y(l[0]))},Y=function(){return e.createElement(s,{id:"max",as:c?"button":"div",ref:L[1],tabIndex:0,sx:M({},oe(c),{ml:["2px","1px","1px","2px"],mt:b?0:["-2px","-3px","-3px","-3px"],borderBottom:c?function(e){return"solid 1px "+e.colors.primary}:"unset",cursor:c?b?"ew-resize":"ns-resize":"default"},C),onMouseDown:c?G:function(){},onClick:function(){return L[1].current.focus()}},y(l[1]))};return e.createElement(u,M({},S,{sx:M({flexDirection:"row",alignItems:"start",justifyContent:"flex-start",gap:["3px","6px","6px","7px"],height:b?"unset":"100%"},k)}),r&&e.createElement(le,{label:r,units:x,horizontal:b}),e.createElement(u,{sx:{flexGrow:b?1:"unset",flexDirection:"column",ml:w&&r?"4px":"0px",height:b?"unset":"100%"}},e.createElement(u,{sx:{gap:["3px","6px","6px","7px"],height:b?"unset":"100%"}},b&&l&&!w&&e.createElement(_,null),e.createElement(ie,{colormap:n,horizontal:b,discrete:d,width:h,height:f}),b&&l&&!w&&e.createElement(Y,null)),b&&l&&w&&e.createElement(u,{sx:{justifyContent:"space-between"}},e.createElement(_,null),e.createElement(Y,null))),!b&&e.createElement(u,{sx:{flexDirection:"column-reverse",justifyContent:"space-between",height:f||ae.height}},l&&e.createElement(_,null),l&&e.createElement(Y,null)))},se=["sx","color","children"],me=function(t){var n=t.sx,r=t.color,o=t.children,a=T(t,se);return e.createElement(s,M({as:"span",sx:M({display:"inline-block",color:r},n)},a),o)},pe={Primary:function(t){return e.createElement(me,M({color:"primary"},t))},Secondary:function(t){return e.createElement(me,M({color:"secondary"},t))},Background:function(t){return e.createElement(me,M({color:"background"},t))},Red:function(t){return e.createElement(me,M({color:"red"},t))},Orange:function(t){return e.createElement(me,M({color:"orange"},t))},Yellow:function(t){return e.createElement(me,M({color:"yellow"},t))},Green:function(t){return e.createElement(me,M({color:"green"},t))},Teal:function(t){return e.createElement(me,M({color:"teal"},t))},Blue:function(t){return e.createElement(me,M({color:"blue"},t))},Purple:function(t){return e.createElement(me,M({color:"purple"},t))},Pink:function(t){return e.createElement(me,M({color:"pink"},t))},Grey:function(t){return e.createElement(me,M({color:"grey"},t))}},de=function(t){var n=t.title,r=t.description,o=t.card,a=t.url,i=x(),l=i.theme,c=i.colorMode;r||console.warn("a custom description should be used for search engine optimization"),n||console.warn("a custom title should be used for search engine optimization");var s=n||"CarbonPlan",m=r||"Improving the transparency and scientific integrity of climate solutions with open data and tools.",p=o||"https://images.carbonplan.org/social/homepage.png",d=a||"https://carbonplan.org";return e.createElement(W,null,e.createElement("title",null,s),e.createElement("meta",{name:"description",content:m}),e.createElement("meta",{name:"viewport",content:"initial-scale=1.0, width=device-width"}),a&&e.createElement("link",{rel:"canonical",href:a}),e.createElement("link",{rel:"alternate icon",type:"image/png",href:"https://images.carbonplan.org/favicon.png"}),e.createElement("link",{rel:"icon",type:"image/svg+xml",href:"https://images.carbonplan.org/favicon.svg"}),e.createElement("link",{rel:"preload",href:"https://fonts.carbonplan.org/relative/relative-book-pro.woff2",as:"font",type:"font/woff2",crossOrigin:"anonymous"}),e.createElement("link",{rel:"preload",href:"https://fonts.carbonplan.org/relative/relative-medium-pro.woff2",as:"font",type:"font/woff2",crossOrigin:"anonymous"}),e.createElement("link",{rel:"preload",href:"https://fonts.carbonplan.org/relative/relative-mono-11-pitch-pro.woff2",as:"font",type:"font/woff2",crossOrigin:"anonymous"}),e.createElement("link",{rel:"preload",href:"https://fonts.carbonplan.org/relative/relative-faux-book-pro.woff2",as:"font",type:"font/woff2",crossOrigin:"anonymous"}),e.createElement("link",{rel:"manifest",href:"https://images.carbonplan.org/manifest.json"}),e.createElement("meta",{name:"theme-color",content:l.colors.background}),e.createElement("meta",{name:"color-scheme",content:"light"===c?"light":"dark"}),e.createElement("link",{rel:"mask-icon",href:"https://images.carbonplan.org/safari-pinned-tab.svg",color:"#000000"}),e.createElement("link",{rel:"apple-touch-icon",sizes:"180x180",href:"https://images.carbonplan.org/apple-touch-icon.png"}),e.createElement("meta",{name:"msapplication-TileColor",content:l.colors.background}),e.createElement("meta",{name:"msapplication-TileImage",content:"https://images.carbonplan.org/mstile-144x144.png"}),e.createElement("meta",{name:"msapplication-config",content:"https://images.carbonplan.org/browserconfig.xml"}),e.createElement("meta",{property:"og:title",content:s}),e.createElement("meta",{property:"og:description",content:m}),e.createElement("meta",{property:"og:image",content:p}),e.createElement("meta",{property:"og:url",content:d}),e.createElement("meta",{name:"twitter:title",content:s}),e.createElement("meta",{name:"twitter:description",content:m}),e.createElement("meta",{name:"twitter:image",content:p}),e.createElement("meta",{name:"twitter:card",content:"summary_large_image"}),e.createElement("meta",{name:"format-detection",content:"telephone=no"}))},ue=function(t){var n=M({},(L(t),t));return e.createElement(s,M({as:"svg",width:"150",fill:"currentColor",stroke:"none",viewBox:"0 0 151.1 28.8"},n),e.createElement("g",null,e.createElement("g",null,e.createElement("path",{d:"M9.7,20.1c-1.3-1.4-2-3.1-2-5.2c0-2.1,0.7-3.9,2-5.2c1.3-1.4,3-2,5.1-2c1.7,0,3.1,0.4,4.3,1.3 c1.1,0.9,1.8,2.1,2.1,3.5c0,0.1,0,0.2,0,0.3s-0.1,0.2-0.2,0.2h-2.3c-0.2,0-0.3-0.1-0.4-0.2c-0.3-0.8-0.7-1.4-1.3-1.8 c-0.6-0.4-1.4-0.6-2.2-0.6c-1.3,0-2.3,0.4-3,1.2c-0.8,0.8-1.1,1.9-1.1,3.4c0,1.5,0.4,2.6,1.1,3.4c0.8,0.8,1.8,1.2,3,1.2 c0.8,0,1.6-0.2,2.2-0.6c0.6-0.4,1.1-1,1.3-1.8c0.1-0.2,0.2-0.2,0.4-0.3H21c0.1,0,0.2,0.1,0.2,0.2c0,0.1,0,0.2,0,0.3 c-0.3,1.4-1,2.6-2.1,3.5c-1.1,0.9-2.5,1.3-4.3,1.3C12.7,22.1,11,21.4,9.7,20.1z"})),e.createElement("g",null,e.createElement("path",{d:"M22.5,17.6c0-1.5,0.5-2.6,1.6-3.5c1.1-0.8,2.4-1.2,4.1-1.2c1.1,0,2.4,0.2,3.7,0.6V13c0-0.9-0.3-1.6-0.8-2.1 c-0.5-0.5-1.2-0.8-2.2-0.8c-1.4,0-2.4,0.6-2.9,1.8c-0.1,0.2-0.2,0.2-0.4,0.2h-2.3c-0.1,0-0.2-0.1-0.2-0.2c0-0.1,0-0.2,0-0.3 c0.3-1.2,0.9-2.2,1.9-2.9c1-0.8,2.3-1.1,3.8-1.1C30.6,7.6,32,8.1,33,9c1,0.9,1.5,2.2,1.5,3.8V19c0,1.1,0.2,1.9,0.5,2.6 c0,0.1,0.1,0.1,0.1,0.1c0,0.1-0.1,0.1-0.3,0.1h-2.8c-0.2,0-0.3-0.1-0.3-0.3v-1c-1.1,1.1-2.5,1.6-4.3,1.6c-1.4,0-2.6-0.4-3.6-1.2 C23,20.1,22.5,19,22.5,17.6z M25.4,17.5c0,0.6,0.2,1.1,0.7,1.5c0.4,0.4,1.1,0.5,1.9,0.5c1.1,0,2-0.3,2.8-0.9 c0.8-0.6,1.1-1.5,1.1-2.6c-1.3-0.4-2.5-0.6-3.6-0.6c-0.8,0-1.5,0.2-2.1,0.5C25.7,16.3,25.4,16.8,25.4,17.5z"})),e.createElement("g",null,e.createElement("path",{d:"M37,21.6V8.2c0-0.2,0.1-0.3,0.3-0.3h2.2c0.2,0,0.3,0.1,0.3,0.3v1.1c1-1.1,2.3-1.6,3.7-1.6 c0.8,0,1.7,0.1,2.5,0.4c0.2,0.1,0.3,0.3,0.3,0.5v2.2c0,0.2-0.1,0.3-0.2,0.3c0,0-0.1,0-0.2-0.1c-1.1-0.5-2-0.8-2.9-0.8 c-0.9,0-1.7,0.4-2.3,1.1c-0.6,0.7-0.9,1.7-0.9,3v7.3c0,0.2-0.1,0.3-0.3,0.3h-2.2C37.1,21.8,37,21.7,37,21.6z"})),e.createElement("g",null,e.createElement("path",{d:"M47.6,21.6V2.7c0-0.2,0.1-0.3,0.3-0.3H50c0.2,0,0.3,0.1,0.3,0.3v6.5c1.3-1.1,2.7-1.6,4.3-1.6 c1.9,0,3.4,0.7,4.6,2c1.1,1.3,1.7,3.1,1.7,5.3c0,2.2-0.6,4-1.7,5.3c-1.1,1.3-2.7,2-4.6,2c-1.8,0-3.2-0.5-4.3-1.6v1 c0,0.2-0.1,0.3-0.3,0.3h-2.2C47.7,21.8,47.6,21.7,47.6,21.6z M51.2,11.5c-0.7,0.9-1.1,2-1.1,3.3c0,1.4,0.4,2.5,1.1,3.3 s1.7,1.3,2.9,1.3c1.2,0,2.2-0.4,2.9-1.3c0.7-0.9,1.1-2,1.1-3.3c0-1.4-0.4-2.5-1.1-3.3c-0.7-0.9-1.7-1.3-2.9-1.3 C52.9,10.2,51.9,10.7,51.2,11.5z"})),e.createElement("g",null,e.createElement("path",{d:"M64.3,20.1c-1.4-1.4-2.1-3.1-2.1-5.2c0-2.1,0.7-3.9,2.1-5.2c1.4-1.4,3.1-2,5.2-2c2.1,0,3.8,0.7,5.2,2 c1.4,1.4,2.1,3.1,2.1,5.2c0,2.1-0.7,3.9-2.1,5.2c-1.4,1.4-3.1,2-5.2,2C67.4,22.1,65.7,21.4,64.3,20.1z M66.4,11.5 c-0.8,0.8-1.2,2-1.2,3.4c0,1.4,0.4,2.5,1.2,3.4s1.9,1.3,3.1,1.3c1.3,0,2.3-0.4,3.1-1.3c0.8-0.8,1.2-2,1.2-3.4 c0-1.4-0.4-2.5-1.2-3.4c-0.8-0.8-1.9-1.3-3.1-1.3C68.2,10.2,67.2,10.7,66.4,11.5z"})),e.createElement("g",null,e.createElement("path",{d:"M78.7,21.6V8.2c0-0.2,0.1-0.3,0.3-0.3h2.2c0.2,0,0.3,0.1,0.3,0.3v1.3c1.3-1.2,2.7-1.8,4.4-1.8 c1.5,0,2.7,0.4,3.5,1.3c0.8,0.9,1.3,2,1.3,3.6v9.1c0,0.2-0.1,0.3-0.3,0.3h-2.2c-0.2,0-0.3-0.1-0.3-0.3v-8.3c0-2-0.9-3.1-2.8-3.1 c-1.1,0-1.9,0.4-2.7,1.2c-0.7,0.8-1.1,2-1.1,3.5v6.6c0,0.2-0.1,0.3-0.3,0.3h-2.2C78.7,21.8,78.7,21.7,78.7,21.6z"})),e.createElement("g",null,e.createElement("path",{d:"M101.7,27.1V8.2c0-0.2,0.1-0.3,0.3-0.3h2.2c0.2,0,0.3,0.1,0.3,0.3v1c1.1-1.1,2.5-1.6,4.3-1.6 c1.9,0,3.4,0.7,4.6,2s1.7,3.1,1.7,5.3c0,2.2-0.6,4-1.7,5.3c-1.1,1.3-2.7,2-4.6,2c-1.5,0-3-0.5-4.3-1.6v6.6c0,0.2-0.1,0.3-0.3,0.3 H102C101.8,27.3,101.7,27.2,101.7,27.1z M105.3,11.5c-0.7,0.9-1.1,2-1.1,3.3c0,1.4,0.4,2.5,1.1,3.3s1.7,1.3,2.9,1.3 c1.2,0,2.2-0.4,2.9-1.3c0.7-0.9,1.1-2,1.1-3.3c0-1.4-0.4-2.5-1.1-3.3c-0.7-0.9-1.7-1.3-2.9-1.3C107,10.2,106,10.7,105.3,11.5z"})),e.createElement("g",null,e.createElement("path",{d:"M117.2,21.6V2.7c0-0.2,0.1-0.3,0.3-0.3h2.2c0.2,0,0.3,0.1,0.3,0.3v18.9c0,0.2-0.1,0.3-0.3,0.3h-2.2 C117.3,21.8,117.2,21.7,117.2,21.6z"})),e.createElement("g",null,e.createElement("path",{d:"M122,17.6c0-1.5,0.5-2.6,1.6-3.5c1.1-0.8,2.4-1.2,4.1-1.2c1.1,0,2.4,0.2,3.7,0.6V13c0-0.9-0.3-1.6-0.8-2.1 c-0.5-0.5-1.2-0.8-2.2-0.8c-1.4,0-2.4,0.6-2.9,1.8c-0.1,0.2-0.2,0.2-0.4,0.2h-2.3c-0.1,0-0.2-0.1-0.2-0.2c0-0.1,0-0.2,0-0.3 c0.3-1.2,0.9-2.2,1.9-2.9c1-0.8,2.3-1.1,3.8-1.1c1.7,0,3.1,0.5,4.2,1.4s1.5,2.2,1.5,3.8V19c0,1.1,0.2,1.9,0.5,2.6 c0,0.1,0.1,0.1,0.1,0.1c0,0.1-0.1,0.1-0.3,0.1h-2.8c-0.2,0-0.3-0.1-0.3-0.3v-1c-1.1,1.1-2.5,1.6-4.3,1.6c-1.4,0-2.6-0.4-3.6-1.2 C122.5,20.1,122,19,122,17.6z M124.9,17.5c0,0.6,0.2,1.1,0.7,1.5c0.4,0.4,1.1,0.5,1.9,0.5c1.1,0,2-0.3,2.8-0.9 c0.8-0.6,1.1-1.5,1.1-2.6c-1.3-0.4-2.5-0.6-3.6-0.6c-0.8,0-1.5,0.2-2.1,0.5C125.2,16.3,124.9,16.8,124.9,17.5z"})),e.createElement("g",null,e.createElement("path",{d:"M136.9,21.6V8.2c0-0.2,0.1-0.3,0.3-0.3h2.2c0.2,0,0.3,0.1,0.3,0.3v1.3c1.3-1.2,2.7-1.8,4.4-1.8 c1.5,0,2.7,0.4,3.5,1.3c0.8,0.9,1.3,2,1.3,3.6v9.1c0,0.2-0.1,0.3-0.3,0.3h-2.2c-0.2,0-0.3-0.1-0.3-0.3v-8.3c0-2-0.9-3.1-2.8-3.1 c-1.1,0-1.9,0.4-2.7,1.2c-0.7,0.8-1.1,2-1.1,3.5v6.6c0,0.2-0.1,0.3-0.3,0.3h-2.2C137,21.8,136.9,21.7,136.9,21.6z"})),e.createElement("path",{d:"M97.6,14.9c0,4.2-0.6,8.3-1.6,12.3c0,0.1-0.1,0.2-0.2,0.2h-2.4c-0.1,0-0.2-0.1-0.2-0.3c1.1-3.9,1.7-8,1.7-12.2 s-0.6-8.3-1.7-12.2c0-0.1,0.1-0.3,0.2-0.3l2.4,0c0.1,0,0.2,0.1,0.2,0.2C97.1,6.5,97.6,10.6,97.6,14.9z"}),e.createElement("path",{d:"M1.4,14.9C1.4,10.6,2,6.5,3,2.6c0-0.1,0.1-0.2,0.2-0.2l2.4,0c0.1,0,0.2,0.1,0.2,0.3c-1.1,3.9-1.7,8-1.7,12.2 s0.6,8.3,1.7,12.2c0,0.1-0.1,0.3-0.2,0.3H3.3c-0.1,0-0.2-0.1-0.2-0.2C2,23.2,1.4,19.1,1.4,14.9z"})))},xe=["value","sx"],he=function(t){var n=t.value,r=t.sx,o=T(t,xe);return e.createElement(h,M({sx:M({cursor:"pointer",fill:"none",strokeWidth:"2px",stroke:"text",".paren":{opacity:"0"},"@media (hover: hover) and (pointer: fine)":{"&:hover .paren":{opacity:"1"}}},r),"aria-label":"Toggle Menu"},o),!n&&e.createElement("svg",{style:{width:"50px",height:"30px",marginTop:"-3px",flexShrink:0},xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 68 36"},e.createElement("line",{x1:"52",y1:"29.9",x2:"16",y2:"29.9"}),e.createElement("line",{x1:"52",y1:"6.1",x2:"16",y2:"6.1"}),e.createElement("line",{x1:"52",y1:"18",x2:"16",y2:"18"}),e.createElement("path",{style:{transition:"all 0.2s"},className:"paren",d:"M6.4,1.2c-6.3,10.3-6.3,23.3,0,33.6"}),e.createElement("path",{style:{transition:"all 0.2s"},className:"paren",d:"M61.6,34.8c6.3-10.3,6.3-23.3,0-33.6"})),n&&e.createElement("svg",{style:{width:"50px",height:"30px",marginTop:"-3px",flexShrink:0},xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 68 36"},e.createElement("line",{x1:"50.85",y1:"29.79",x2:"17.15",y2:"6.21"}),e.createElement("line",{x1:"17.15",y1:"29.79",x2:"50.85",y2:"6.21"}),e.createElement("path",{style:{transition:"all 0.2s"},className:"paren",d:"M6.4,1.2c-6.3,10.3-6.3,23.3,0,33.6"}),e.createElement("path",{style:{transition:"all 0.2s"},className:"paren",d:"M61.6,34.8c6.3-10.3,6.3-23.3,0-33.6"})))},fe=function(e,t,n){return void 0===n&&(n=!1),{width:"auto",color:e===t?"secondary":"text",fontSize:[6,6,7,8],fontFamily:"heading",letterSpacing:"heading",borderStyle:"solid",borderColor:"muted",borderWidth:"0px",borderBottomWidth:"1px",borderTopWidth:n?"1px":"0px",py:[3,3,4,5],textDecoration:"none",display:"block",position:"relative",transition:"color 0.15s","@media (hover: hover) and (pointer: fine)":{"&:hover > #arrow":{opacity:1}},"&:hover":{color:e==t?"secondary":"text"}}},ge=[{url:"about",display:"About"},{url:"research",display:"Research"},{url:"blog",display:"Blog"},{url:"press",display:"Press"}],ye=function(){return e.createElement(k,{id:"arrow",sx:{pointerEvents:"none",display:"inline-block",position:"absolute",left:["-60px","-68px","-80px","-104px"],top:["32px","32px","46px","62px"],opacity:0,transition:"opacity 0.2s ease-out",transform:"rotate(45deg)",width:[36,36,48,56],height:[36,36,48,56]}})},Ee=function(t){var n=t.link,r=t.mode,o=t.nav,a=t.first,i=t.setExpanded,l=n.url,c=n.display,s="remote"===r?"https://carbonplan.org/"+l:"/"+l;return"homepage"===r||"local"===r&&o===l?e.createElement(w,{href:s,passHref:!0,legacyBehavior:!0},e.createElement(d,{onClick:function(){o===l&&i(!1)},sx:fe(o,l,a)},e.createElement(ye,null),c)):e.createElement(d,{href:s,sx:fe(o,l,a)},e.createElement(ye,null),c)},be=function(t){var n=t.nav,r=t.mode,o=t.setExpanded;return t.links.map(function(t,a){return e.createElement(Ee,{key:a,link:t,mode:r,nav:n,first:0===a,setExpanded:o})})},ve=function(t){var n=t.status,r=t.mode,o=t.nav,i=t.menuItems,l=a(!1),c=l[0],m=l[1];return e.createElement(O,{sx:{pt:["12px"],pb:[3]}},e.createElement(D,{start:[1],width:[2]},e.createElement(s,{sx:{pointerEvents:"all",display:"block",width:"fit-content"}},("homepage"==r||"local"==r)&&e.createElement(w,{href:"/",passHref:!0,legacyBehavior:!0},e.createElement(d,{"aria-label":"CarbonPlan Homepage",sx:{display:"block"}},e.createElement(ue,{id:"logo",sx:{cursor:"pointer",color:"primary"}}))),(null==r||"remote"==r)&&e.createElement(d,{href:"https://carbonplan.org","aria-label":"CarbonPlan Homepage",sx:{display:"block"}},e.createElement(ue,{sx:{cursor:"pointer",color:"primary"}})))),e.createElement(D,{start:[4,9],width:[2,2],dr:1,sx:{display:[n?"flex":"none","flex","flex","flex"],alignItems:"center"}},e.createElement(s,{sx:{fontSize:[1,2,3],position:"relative",top:["-2px","-3px","-3px"]}},n?"("+n+")":"")),e.createElement(D,{start:[n?6:4,6,11,11],width:[n?1:3,3,2,2],sx:{zIndex:5e3}},e.createElement(u,{sx:{pointerEvents:"all",justifyContent:"flex-end"}},e.createElement(s,{sx:{display:[n?"none":"flex","flex","flex","flex"],mr:"18px",gap:"18px",opacity:c?0:1,transition:"opacity 0.15s",justifyContent:"space-between",alignItems:"center"}},i),e.createElement(he,{sx:{flexShrink:0,mr:["-2px"]},value:c,onClick:function(e){m(!c)}}))),e.createElement(s,{sx:{opacity:c?1:0,pointerEvents:c?"all":"none",position:"fixed",top:"0px",right:"0px",bottom:"0px",minWidth:"0px",maxHeight:"100vh",width:"100vw",backgroundColor:"background",zIndex:4e3,pt:["79px"],transition:"opacity 0.25s"}},e.createElement(f,null,e.createElement(O,null,e.createElement(D,{start:[2,4,7,7],width:[5,4,5,5]},e.createElement(s,{as:"nav",sx:{display:c?"inherit":"none",mt:[5,5,5,6]}},e.createElement(be,{links:ge,nav:o,mode:r,setExpanded:m})))))))},we=function(t){var n=M({},(L(t),t));return e.createElement(s,M({as:"svg",width:"80",stroke:"none",fill:"currentColor",viewBox:"0 0 32 32"},n),e.createElement("path",{d:"M21.9395,14.9395 L17.5005,19.3785 L17.5005,7.0005 L14.5005,7.0005 L14.5005,19.3785 L10.0605,14.9395 L7.9395,17.0605 L14.9395,24.0605 C15.2325,24.3535 15.6165,24.5005 16.0005,24.5005 C16.3835,24.5005 16.7675,24.3535 17.0605,24.0605 L24.0605,17.0605 L21.9395,14.9395 Z"}),e.createElement("path",{d:"M27.5986,4 L22.8966,4 C26.5556,6.303 28.9996,10.366 28.9996,15 C28.9996,20.4 25.6896,25.039 20.9926,27 L26.5586,27 C29.8886,24.068 31.9996,19.785 31.9996,15 C31.9996,10.734 30.3196,6.868 27.5986,4"}),e.createElement("path",{d:"M3,15 C3,10.366 5.444,6.303 9.104,4 L4.401,4 C1.68,6.868 0,10.734 0,15 C0,19.785 2.112,24.068 5.441,27 L11.008,27 C6.311,25.039 3,20.4 3,15"}))},ke=function(){return e.createElement(s,{sx:{mt:[7,7,7,8],mb:[7,7,7,8],pb:[2,1,0,0]}},e.createElement(O,{sx:{mb:[0,0,4,5]}},e.createElement(D,{start:[1,2],width:[3,3]},e.createElement(s,null,e.createElement(s,{sx:{fontSize:[2,2,2,3],fontFamily:"heading",letterSpacing:"mono",mb:[2]}},"EMAIL"),e.createElement(d,{href:"mailto:hello@carbonplan.org",sx:{textDecoration:"none",fontSize:[2,2,2,3]}},"hello@carbonplan.org"))),e.createElement(D,{start:[5],width:[1],dl:1,dr:1,sx:{display:["flex","none","none","none"],justifyContent:["center"]}},e.createElement(we,{sx:{mt:["-4px"],width:"60px",height:"60px"}})),e.createElement(D,{start:[1,5,5,5],width:[3,3],sx:{mt:[3,0,0,0]}},e.createElement(s,null,e.createElement(s,{sx:{fontSize:[2,2,2,3],fontFamily:"heading",letterSpacing:"mono",mb:[2]}},"NEWSLETTER"),e.createElement(d,{href:"https://carbonplan.org/newsletter",sx:{textDecoration:"none",fontSize:[2,2,2,3]}},"Subscribe"))),e.createElement(D,{start:[1,9],width:[5,4,3,3],sx:{mt:["42px","42px",0,0],mb:[3,3,0,0]}},e.createElement(s,null,e.createElement(s,{sx:{fontSize:[2,2,2,3],fontFamily:"body",color:"secondary"}},"CarbonPlan is a registered nonprofit public benefit corporation in California with 501(c)(3) status.")))),e.createElement(O,{sx:{mb:["2px"],mt:[5,5,4]}},e.createElement(D,{start:[1,1,2,2],width:[3,2,3,3],sx:{display:"flex",alignItems:["flex-start","flex-start","flex-end"]}},e.createElement(s,{sx:{bottom:"0px",borderStyle:"solid",borderColor:"muted",borderWidth:"0px",borderTopWidth:"1px",display:"inline-block",pt:[2]}},e.createElement(s,{sx:{color:"secondary",fontSize:[1,1,1,2],fontFamily:"mono",letterSpacing:"mono"}},e.createElement(u,{sx:{flexDirection:["column","column","row","row"],gap:[0,0,"10px","12px"]}},e.createElement(s,null,"(c) ",(new Date).getFullYear()),e.createElement(s,null,"CARBONPLAN"))))),e.createElement(D,{start:[4,3,5,5],width:[3,3,4,4],sx:{display:"flex",alignItems:["flex-start","flex-start","flex-end"],mt:[0,0,0,0]}},e.createElement(s,{sx:{bottom:"0px",borderStyle:"solid",borderColor:"muted",borderWidth:"0px",borderTopWidth:"1px",pt:[2]}},e.createElement(u,{sx:{color:"secondary",fontSize:[1,1,1,2],fontFamily:"mono",letterSpacing:"mono",flexDirection:["column","column","row","row"],gap:[0,0,"10px","12px"]}},e.createElement(w,{href:"/terms",passHref:!0,legacyBehavior:!0},e.createElement(s,{as:"a",sx:{color:"secondary","&:hover":{color:"primary"}}},"TERMS OF USE")),e.createElement(s,{sx:{display:["none","none","initial","initial"]}}," / "),e.createElement(w,{href:"/privacy",passHref:!0,legacyBehavior:!0},e.createElement(s,{as:"a",sx:{color:"secondary","&:hover":{color:"primary"}}},"PRIVACY POLICY"))))),e.createElement(D,{start:[5,7,9,9],width:[2,2,3,3],sx:{display:["none","initial","initial","initial"]}},e.createElement(we,{sx:{width:80,height:80,mt:[0,"-10px",4,5],mb:["-12px"]}}))))},Ce=["sx"],Se=function(t){var n=t.sx,r=T(t,Ce),o=g(),a=o[0],i=o[1],c=l(function(){i("light"===a?"dark":"light")},[a]);return e.createElement(h,M({"aria-label":"Toggle dark mode",onClick:c,role:"checkbox",sx:M({width:32,height:32,display:"inline-block",cursor:"pointer",color:"secondary"},n)},r),e.createElement(C,{sx:{strokeWidth:"1.75",transition:"stroke 0.15s","@media (hover: hover) and (pointer: fine)":{"&:hover":{stroke:"primary"}}}}))},ze=function(){var t=process.env.NEXT_PUBLIC_VERCEL_GIT_COMMIT_SHA,n=process.env.NEXT_PUBLIC_VERCEL_GIT_REPO_OWNER,r=process.env.NEXT_PUBLIC_VERCEL_GIT_REPO_SLUG,o=x().theme.rawColors.secondary;if(t&&n&&r){var a=t.substring(0,7),i="https://github.com/"+n+"/"+r+"/tree/"+t;return e.createElement(s,{sx:{display:"inline-block",width:"87px"}},e.createElement(We,{color:o}),e.createElement(d,{href:i,sx:{whiteSpace:"nowrap",display:"inline-block",ml:[2],fontFamily:"mono",letterSpacing:"body",color:o,fontSize:[1],textTransform:"uppercase",textDecoration:"none"}},a))}return e.createElement(s,{sx:{display:"inline-block",width:"87px"}},e.createElement(We,{color:o}),e.createElement(y,{sx:{whiteSpace:"nowrap",display:"inline-block",ml:[2],fontFamily:"mono",letterSpacing:"body",color:o,fontSize:[1],textTransform:"uppercase"}},o))},We=function(t){return e.createElement("svg",{fill:t.color,opacity:"0.8",viewBox:"0 0 24 24",width:"24",height:"24"},e.createElement("circle",{r:5,cx:19,cy:19}))},Ae=function(t){var n=t.mode,r=a(function(e){return"mouse"===e?"X,Y: "+Le(0,4)+","+Le(0,4):"scroll"===e?"SCROLL: 0."+Le((0).toFixed(0),2):e}(n)),o=r[0],l=r[1];return i(function(){if("mouse"===n){var e=function(e){var t=Le(e.clientX,4),n=Le(e.clientY,4);l("X,Y: "+t+","+n)};return window.addEventListener("mousemove",e),function(){window.removeEventListener("mousemove",e)}}if("scroll"===n){var t=function(e){var t=function(e,t){return Math.min(e.scrollY/(document.body.offsetHeight-770),.99)}(window);l("SCROLL: 0."+Le((100*t).toFixed(0),2))};return window.addEventListener("scroll",t),function(){window.removeEventListener("scroll",t)}}},[]),e.createElement(y,{sx:{whiteSpace:"nowrap",display:"inline-block",mr:"-6px",fontFamily:"mono",letterSpacing:"body",color:"secondary",fontSize:[1],textTransform:"uppercase"}},o)},Me=function(t){return e.createElement(s,{sx:{userSelect:"none",position:"fixed",bottom:"42px",right:"24px",transformOrigin:"right",transform:"rotate(90deg)",display:["none","none","initial"]}},e.createElement(Ae,{mode:t.mode}),e.createElement(ze,null))};function Le(e,t){return e.toString().padStart(t,"0")}var Te=["duration","delay","children"],Fe=A({from:{opacity:0},to:{opacity:1}}),Ie=function(t){var n=t.duration,r=void 0===n?300:n,o=t.delay,a=void 0===o?0:o,i=t.children,l=T(t,Te);return e.createElement(s,M({},l,{sx:{animationDuration:r+"ms",animationDelay:a+"ms",animationName:Fe.toString(),animationFillMode:"backwards"}}),i)},Be=function(e){var t=e.createElement("div");t.style.visibility="hidden",t.style.width="100px",e.body.appendChild(t),t.style.overflow="scroll";var n=e.createElement("div");n.style.width="100%",t.appendChild(n);var r=t.offsetWidth-n.offsetWidth;return t.parentNode.removeChild(t),r},Oe=function(){return i(function(){"undefined"!=typeof document&&Be(document)>0&&(document.body.classList.add("custom-scrollbar"),document.getElementsByTagName("html")[0].classList.add("custom-scrollbar"))},[]),null},Re=function(t){var n=t.color,r=void 0===n?"muted":n,o=a(!1),l=o[0],c=o[1];return i(function(){function e(e){";"===e.key&&e.metaKey&&c(function(e){return!e})}return document.addEventListener("keydown",e),function(){document.removeEventListener("keydown",e)}},[]),e.createElement(s,{sx:{position:"fixed",width:"100%",left:0,top:0,zIndex:"teal"===r?5e3:-1,pointerEvents:"none",display:l?"initial":"none"}},e.createElement(f,null,e.createElement(s,{sx:{display:["none","none","initial","initial"]}},e.createElement(Ne,{indices:[1,2,3,4,5,6,7,8,9,10,11,12],color:r})),e.createElement(s,{sx:{display:["none","initial","none","none"]}},e.createElement(Ne,{indices:[1,2,3,4,5,6,7,8],color:r})),e.createElement(s,{sx:{display:["initial","none","none","none"]}},e.createElement(Ne,{indices:[1,2,3,4,5,6],color:r}))))},De=["red","orange","yellow","green","teal","blue","purple","pink"];function Ne(t){var n=t.color,r={outerGuideColumn:{borderStyle:"solid",borderWidth:"0px",borderLeftWidth:"teal"===n?"0px":"1px",borderRightWidth:"teal"===n?"0px":"1px",opacity:"teal"==n?.4:1},innerGuideColumn:{borderStyle:"solid",borderWidth:"0px",borderLeftWidth:"0px",borderRightWidth:"0px",opacity:"teal"==n?.4:1}};return e.createElement(O,null,t.indices.map(function(t){return e.createElement(D,{key:t,start:[t],width:[1,1],dl:.5,dr:.5,sx:M({bg:"teal"===n?"teal":"transparent",height:"100vh"},r.innerGuideColumn)},e.createElement(s,{sx:M({mx:["12px",3,3,4],bg:"teal"===n?"background":"transparent",height:"100%",borderLeftColor:"rainbow"===n?De[t%8]:"muted",borderRightColor:"rainbow"===n?De[t%8]:"muted"},r.outerGuideColumn)}))}))}var He=["value","sx"],Ve=function(t){var n=t.value,r=t.sx,o=T(t,He);return e.createElement(h,M({sx:M({cursor:"pointer",fill:"none",strokeWidth:"2px",stroke:"text",".paren":{opacity:"0"},"@media (hover: hover) and (pointer: fine)":{"&:hover .paren":{opacity:"1"}}},r),"aria-label":"Toggle Menu"},o),!n&&e.createElement("svg",{style:{width:"50px",height:"30px",marginTop:"-3px",flexShrink:0},xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 68 36"},e.createElement("line",{x1:"24",y1:"2.1",x2:"24",y2:"6.1"}),e.createElement("line",{x1:"24",y1:"24.1",x2:"24",y2:"33.9"}),e.createElement("line",{x1:"44",y1:"2.1",x2:"44",y2:"12.1"}),e.createElement("line",{x1:"44",y1:"30.1",x2:"44",y2:"33.9"}),e.createElement("circle",{cx:"24",cy:"15.1",r:"5"}),e.createElement("circle",{cx:"44",cy:"21.1",r:"5"}),e.createElement("path",{style:{transition:"all 0.2s"},className:"paren",d:"M6.4,1.2c-6.3,10.3-6.3,23.3,0,33.6"}),e.createElement("path",{style:{transition:"all 0.2s"},className:"paren",d:"M61.6,34.8c6.3-10.3,6.3-23.3,0-33.6"})),n&&e.createElement("svg",{style:{width:"50px",height:"30px",marginTop:"-3px",flexShrink:0},xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 68 36"},e.createElement("line",{x1:"50.85",y1:"29.79",x2:"17.15",y2:"6.21"}),e.createElement("line",{x1:"17.15",y1:"29.79",x2:"50.85",y2:"6.21"}),e.createElement("path",{style:{transition:"all 0.2s"},className:"paren",d:"M6.4,1.2c-6.3,10.3-6.3,23.3,0,33.6"}),e.createElement("path",{style:{transition:"all 0.2s"},className:"paren",d:"M61.6,34.8c6.3-10.3,6.3-23.3,0-33.6"})))},je=function(t){var n=t.title,r=t.description,o=t.url,a=t.card,l=t.status,c=t.nav,m=t.settings,p=t.footer,d=void 0===p||p,h=t.header,g=void 0===h||h,y=t.metadata,E=void 0===y?"mouse":y,b=t.links,v=void 0===b?"remote":b,w=t.dimmer,k=void 0===w?"bottom":w,C=t.guide,S=void 0===C||C,z=t.scrollbar,W=void 0!==z&&z,A=t.fade,L=t.container,T=void 0===L||L,F=t.printable,I=void 0!==F&&F,B=t.children;(void 0===A||A)&&(B=e.createElement(Ie,{duration:250},B)),T&&(B=e.createElement(s,{sx:{mb:[8,8,9,10]}},e.createElement(f,null,B)));var O=x().theme,R=I?{"@media print":{display:"none"}}:{};i(function(){if(O){var e=window.matchMedia("(min-width: "+O.breakpoints[1]+")");return e.onchange=function(e){e.matches&&null!=m&&m.value&&null!=m&&m.onClick&&(null==m||m.onClick())},function(){e.onchange=null}}},[null==O?void 0:O.breakpoints,null==m?void 0:m.value,null==m?void 0:m.onClick]);var D=[e.createElement(Se,{key:"dimmer",sx:{color:"primary",mt:"-2px",display:["block","block","top"===k?"block":"none","top"===k?"block":"none"]}})];return m&&D.push(e.createElement(Ve,M({key:"settings",sx:{mr:["2px"],display:["inherit","inherit","none","none"]}},m))),e.createElement(e.Fragment,null,S&&e.createElement(Re,{color:S}),W&&e.createElement(Oe,null),e.createElement(de,{card:a,description:r,title:n,url:o}),e.createElement(u,{sx:{flexDirection:"column",minHeight:"100vh"}},g&&e.createElement(s,{as:"header",sx:M({width:"100%",borderStyle:"solid",borderColor:"muted",borderWidth:"0px",borderBottomWidth:"1px",position:"sticky",top:0,bg:"background",height:"56px",zIndex:2e3},R)},e.createElement(f,null,e.createElement(ve,{mode:v,status:l,nav:c,menuItems:D}))),e.createElement(s,{sx:{width:"100%",flex:"1 1 auto"}},B),d&&e.createElement(s,{as:"footer",sx:M({width:"100%",borderStyle:"solid",borderColor:"muted",borderWidth:"0px",borderTopWidth:"1px"},R)},e.createElement(f,null,e.createElement(ke,null))),"bottom"===k&&e.createElement(s,{sx:{display:["none","none","initial","initial"],position:["fixed"],right:[13],bottom:[17,17,15,15]}},e.createElement(Se,null)),E&&e.createElement(Me,{mode:E})))},Pe=function(){return e.createElement(je,{footer:!1,title:"404 – CarbonPlan",description:"Sorry but we can't seem to find the page you are looking for."},e.createElement(O,{sx:{mb:[5,0,0],pt:[0,0,6]}},e.createElement(D,{start:[1,1,3,3],width:[6,4,4,4]},e.createElement(s,{as:"h1",variant:"styles.h1"},"Oops!"),e.createElement(s,{sx:{fontSize:[4,4,4,5],lineHeight:"h3",mt:[3,4,4],mb:[2,3,3],maxWidth:["90%","90%","400px"]}},"Sorry but we can't seem to find the page you are looking for."),e.createElement(s,{sx:{color:"secondary",fontFamily:"mono",letterSpacing:"mono",fontSize:[2,2,2,3],mt:[4,5,5]}},"ERROR CODE 404")),e.createElement(D,{start:[2,5,7,7],width:[4,4,4,4]},e.createElement(s,{sx:{width:["100%"],mt:[2,4,4,5],fill:"primary"}},e.createElement(z,{sx:{width:"100%",height:"auto"}})))))},Ge=function(t){var n=t.value;return e.createElement(h,{onClick:t.onClick,id:t.id,role:"checkbox","aria-checked":n,"aria-label":"Expand",sx:M({display:"inline-block",width:24,height:24,p:[1],cursor:"pointer",fill:"secondary",stroke:"secondary","@media (hover: hover) and (pointer: fine)":{"&:hover":{fill:"primary",stroke:"primary"}}},t.sx)},e.createElement("svg",{viewBox:"0 0 16 16"},e.createElement("path",{d:"M8,0 V16 M0,8 H16",style:{strokeWidth:2,transition:"0.25s all",transformOrigin:"8px 8px",transform:n?"rotate(45deg)":"rotate(0deg)"}})))},_e=function(t){var n,r,o=t.as,a=void 0===o?"figure":o,i=t.children,l=t.sx,c=e.Children.toArray(i).find(function(t){var n;return e.isValidElement(t)&&(null==(n=t.type)?void 0:n.displayName)&&("FigureCaption"===t.type.displayName||"TableCaption"===t.type.displayName)}),m=null==c||null==(n=c.props)?void 0:n.number,p="TableCaption"===(null==c||null==(r=c.type)?void 0:r.displayName)?"table":"figure";return e.createElement(s,{as:a,id:m?p+"-"+m:void 0,sx:M({my:[6,6,6,7],scrollMarginTop:"60px","@media print":{breakInside:"avoid"}},l)},e.createElement(H,{spacing:[4,4,4,5]},i))},Ye=function(t){var n=t.as;return e.createElement(ne,{as:void 0===n?"figcaption":n,number:t.number,label:"figure"},t.children)};Ye.displayName="FigureCaption";var Xe=["label","value","sx","children"],Ue=function(t){var n=t.label,r=t.value,o=t.sx,a=t.children,i=T(t,Xe),l=o&&o.color?o.color:"primary",c=i&&(i.onClick||i.onDoubleClick);return e.createElement(s,M({as:c?"button":"span",role:"checkbox","aria-checked":r,"aria-label":n,sx:M({display:"inline-block",fontSize:[1,1,1,2],fontFamily:"mono",letterSpacing:"mono",cursor:c?"pointer":"inherit",color:l,backgroundColor:"transparent",borderStyle:"solid",borderColor:l,lineHeight:"body",borderWidth:"0px",borderBottomWidth:"1px",textTransform:"uppercase",userSelect:"none",transition:"opacity 0.05s",pt:["1px"],pb:["2px"],px:[0],m:[0],opacity:null==r||r?1:"primary"==l?.24:.33},o)},i),a)},qe=["values","setValues","label","colors","order","labels","showAll","multiSelect"],Ke={label:{fontFamily:"mono",letterSpacing:"mono",fontSize:[1,1,1,2],color:"secondary",userSelect:"none",textTransform:"uppercase"}},Ze=function(e,t,n){return void 0===n&&(n={}),Object.keys(e).reduce(function(e,r){var o;return Object.assign(e,((o={})[r]=n[r]||t,o))},{})},$e=function(e){return Object.keys(e).filter(function(t){return e[t]}).length==Object.keys(e).length},Je=function(e){var t,n=e.values,r=e.multiSelect,o=e.setValues,a=e.value,i=$e(n),l="all"===a;if(r)if(l&&!i)t=Ze(n,!0);else if(l&&i)t=Ze(n,!1);else{var c;t=M({},n,((c={})[a]=!n[a],c))}else if(l&&!i)t=Ze(n,!0);else if(l&&i);else{var s;t=Ze(n,!1,((s={})[a]=!0,s))}t&&o(t)},Qe=function(t){var n=t.values,r=t.setValues,o=t.label,a=t.colors,i=t.order,l=t.labels,m=t.showAll,p=void 0!==m&&m,d=t.multiSelect,u=void 0!==d&&d,x=T(t,qe),h=c(function(){return i||Object.keys(n)},[i].concat(Object.keys(n).sort()));return e.createElement(s,x,o&&e.createElement(s,{sx:Ke.label},o),e.createElement(s,{sx:{mt:o?[3]:0}},p&&e.createElement(Ue,{onClick:function(){return Je({values:n,multiSelect:u,setValues:r,value:"all"})},value:$e(n),sx:{mr:[2]}},"All"),h.map(function(t,o){return e.createElement(Ue,{onClick:function(){return Je({values:n,multiSelect:u,setValues:r,value:t})},onDoubleClick:function(){return Je({values:n,multiSelect:!1,setValues:r,value:t})},key:o,value:n[t],sx:{width:"max-content",color:a?a[t]:"primary",mr:[2],mb:[1]}},l?l[t]:t)})))},et=function(t){var n,r=t.children,o=t.variant,a=void 0===o?"h1":o;return"h1"===a&&(n=[4,"27px","42px","54px"]),"h2"===a&&(n=[4,4,"14px","25px"]),e.createElement(e.Fragment,null,e.createElement(D,{start:[1,4,8,8],width:[1,1,1,1]},e.createElement(s,{sx:{mt:n,fontFamily:"faux",letterSpacing:"faux",fontSize:[2,2,2,3],textAlign:"right"}},"/")),e.createElement(D,{start:[2,5,9,9],width:[3,3,2,2]},e.createElement(s,{sx:{mt:n,fontFamily:"faux",letterSpacing:"faux",fontSize:[2,2,2,3],height:["100%","0px","0px","0px"]}},r)))},tt=function(t){var n=t.children,r=t.sidenote,o=t.variant,a=void 0===o?"h1":o,i=t.description,l=t.descriptionStart,c=void 0===l?[1,3,5,5]:l,m=t.descriptionWidth,p=void 0===m?[5,5,5,4]:m,d=t.sx,u=[6,6,6,6];if(i&&(u[1]=c[1]-1,u[2]=c[2]-2,u[3]=c[3]-2),!["h1","h2"].includes(a))throw new Error("variant must be 'h1' or 'h2' but got '"+a+"'");return e.createElement(O,{sx:M({mt:[5,6,7,8],mb:[5,6,7,8]},d)},e.createElement(D,{start:[1,1,2,2],width:u},"h1"===a&&e.createElement(s,{as:"h1",variant:"styles.h1",sx:{my:[0,0,0,0]}},n),"h2"===a&&e.createElement(s,{as:"h2",variant:"styles.h2",sx:{my:[0,0,0,0]}},n)),r&&e.createElement(et,{variant:a},r),i&&e.createElement(D,{start:c,width:p},e.createElement(s,{sx:{mt:[4,"5px","20px","31px"],fontSize:[2,2,2,3]}},i)))},nt=["size","inverted","sx"],rt=n(function(t,n){var r,o=t.size,a=void 0===o?"sm":o,i=t.inverted,l=t.sx,c=T(t,nt),s=M(((r={color:i?"secondary":"primary",borderColor:"secondary",borderStyle:"solid",borderWidth:"0px",borderBottomWidth:"1px",borderRadius:"0px",transition:"border 0.15s"}).borderBottomWidth="1px",r.width="calc(min(15ch, 100%))",r.p=[0],r.py=["2px"],r["input::-webkit-outer-spin-button"]={WebkitAppearance:"none",margin:0},r["input::-webkit-inner-spin-button"]={WebkitAppearance:"none",margin:0},r[":focus"]={borderColor:"primary"},r[":focus-visible"]={outline:"none !important",background:"none !important"},r),Z(a),l);return e.createElement(E,M({},c,{ref:n,sx:s}))}),ot=function(t){var n=t.members,r=t.color,o=t.inverted,a=t.size,i=void 0===a?"xs":a,l=t.rowGap,c=t.columnGap,s=t.direction;return e.createElement(u,{sx:M({flexDirection:"horizontal"===(void 0===s?"horizontal":s)?"row":"column",rowGap:void 0===l?[2,2,2,3]:l,columnGap:void 0===c?[3,3,3,4]:c,flexWrap:"wrap"},t.sx)},n.map(function(t,n){return e.createElement(Q,{key:n,href:t.href,label:t.label,size:i,sx:{color:r},inverted:o,suffix:e.createElement(S,null)},t.label)}))},at=["children","size","sx","sxSelect"],it=function(t){var n,r,a,i,l,c,m,p=t.children,d=t.size,u=void 0===d?"sm":d,x=t.sx,h=t.sxSelect,f=T(t,at),g=x&&x.color?x.color:"primary",y=Z(u),E=o(null),b=f.onChange,v=(r=function(e){return"onChange"!==e},function(e){var t={};for(var n in e)r(n||"")&&(t[n]=e[n]);return t})(f);if(!["xs","sm","md"].includes(u))throw new Error("Size must be xs, sm, or md");return"xs"===u&&(i=[14,14,14,16],l=[14,14,14,14],m=["1px"],c=["-14px","-14px","-14px","-16px"]),"sm"===u&&(i=[15,15,15,20],l=[15,15,15,20],m=["1px"],c=["-16px","-16px","-16px","-20px"]),"md"===u&&(i=[20,20,20,20],l=[20,20,20,20],m=["2px"],c=["-20px","-20px","-20px","-20px"]),a=l.map(function(e){return e+12}),e.createElement(s,{sx:M({display:"inline-block"},x)},e.createElement(s,M({as:"select",ref:E,onChange:function(e){E.current.blur(),b&&b(e)},sx:M({},y,(n={lineHeight:"normal",cursor:"pointer",WebkitAppearance:"none",MozAppearance:"none",pb:["5px"],bg:"background",pr:a,border:"none",borderBottomStyle:"solid",borderBottomWidth:"1px",borderBottomColor:"primary",borderRadius:"0px",color:"text",width:"fit-content"},n.color=g,n.userSelect="none",n["@media (hover: none) and (pointer: coarse)"]={"&:focus-visible":{outline:"none !important",background:"transparent !important"}},n),h)},v),p),e.createElement(k,{sx:{width:l,height:i,position:"relative",ml:c,top:m,fill:"secondary",transform:"rotate(135deg)",pointerEvents:"none"}}))},lt=["sx"],ct=n(function(t,n){var r=t.sx,o=T(t,lt),a=r&&r.color?r.color:"primary",i=x().theme.rawColors;return e.createElement(b,M({ref:n,sx:M({"&::-webkit-slider-thumb":{height:[22,18,16],width:[22,18,16],boxShadow:"0 0 0 0px "+i.secondary,transition:"box-shadow .15s ease"},"&::-moz-range-thumb":{height:[22,18,16],width:[22,18,16],boxShadow:"0 0 0 0px "+i.secondary,transition:"box-shadow .15s ease"},":focus-visible":{outline:"none !important",background:i.secondary+" !important"},":focus":{color:a,"&::-webkit-slider-thumb":{boxShadow:"0 0 0 4px "+i.secondary},"&::-moz-range-thumb":{boxShadow:"0 0 0 4px "+i.secondary}},color:a},r)},o))}),st={reset:{verticalAlign:"baseline",border:0,outline:0,margin:0,padding:0},row:{borderStyle:"solid",borderWidth:"0px",borderTopWidth:"1px",borderColor:"muted",pt:[3,3,3,"20px"],pb:[3,3,3,"20px"],mb:["2px"]},header:{display:"block",textTransform:"uppercase",letterSpacing:"smallcaps",fontFamily:"heading",fontSize:[2,2,2,3]},index:{display:"block",textTransform:"uppercase",letterSpacing:"smallcaps",fontFamily:"heading",fontSize:[2,2,2,3]},entry:{display:"block",fontSize:[2,2,2,3],fontFamily:"faux",letterSpacing:"faux",mb:["1px"],mt:[2,0,0,0]}},mt=function(t){var n=t.data,r=t.sx,o=t.color,a=t.header,i=t.columns,l=t.start,c=t.width,m=t.index,p=void 0===m||m,d=t.borderBottom,u=void 0===d||d,x=t.borderTop,h=void 0===x||x;if(!l||!i||!c)throw new Error("Must provide columns, start, and width");return e.createElement(s,{as:"table",sx:M({display:"block"},r)},e.createElement(s,{as:"tbody",sx:{display:"block"}},a&&e.createElement(O,{as:"tr",sx:M({},st.reset,st.header,st.row,{color:o,borderTopWidth:h?"1px":"0px"})},e.createElement(D,{as:"td",start:[1],width:i,sx:st.index},a)),n.map(function(t,r){return e.createElement(O,{as:"tr",columns:i,key:r,sx:M({},st.reset,st.row,{pb:u&&r===n.length-1?["18px","18px","18px","22px"]:[3,3,3,"20px"],borderBottomWidth:u&&r===n.length-1?"1px":"0px",borderTopWidth:h||0!==r||a?"1px":"0px"})},t.map(function(t,n){return e.createElement(D,{as:"td",key:n,start:l[n],width:c[n],sx:M({},st.reset,0==n&&p?st.index:st.entry)},t)}))})))},pt=function(t){var n=t.as;return e.createElement(ne,{as:void 0===n?"figcaption":n,number:t.number,label:"table"},t.children)};pt.displayName="TableCaption";var dt=["value","onClick","disabled","sx"],ut=n(function(t,n){var r=t.value,o=t.onClick,a=t.disabled,i=t.sx,l=T(t,dt),c=i&&i.color?i.color:"primary";return e.createElement(s,M({ref:n,as:"button",onClick:o,role:"checkbox","aria-checked":r=!a&&r,"aria-label":"Toggle",sx:M({border:"none",background:"none",cursor:a?"default":"pointer",p:[0],m:[0],display:"inline-block"},i)},l),e.createElement(s,{sx:{width:"50px",height:"20px",borderRadius:"20px",backgroundColor:r?v(c,"primary"==c?.5:.45):"muted",position:"relative",transition:"0.15s",display:"inline-block"}},e.createElement(s,{sx:{width:"14px",height:"14px",borderRadius:"7px",position:"absolute",left:r?"32px":"4px",top:"3px",backgroundColor:r?c:"secondary",transition:"0.15s"}})))}),xt=function(t){var n=t.expanded,r=t.sx,o=t.children;return e.createElement(e.Fragment,null,e.createElement(s,{sx:{position:"fixed",top:"56px",bottom:"0px",left:"0px",width:"calc(100vw)",mt:["56px"],bg:"background",zIndex:1e3,transition:"opacity 0.15s",opacity:n?.9:0,pointerEvents:n?"all":"none"}}),e.createElement(s,{sx:M({position:"fixed",width:"calc(100vw)",top:"0px",mt:["56px"],pb:[6,7,7,8],pt:[5,6,7,8],bg:"background",zIndex:1100,borderStyle:"solid",borderColor:"muted",borderWidth:"0px",borderBottomWidth:"1px",transition:"transform 0.15s",ml:[-3,-4,-5,-6],pl:[3,4,5,6],pr:[3,4,5,6],transform:n?"translateY(0)":"translateY(-100%)"},r)},e.createElement(O,null,e.createElement(D,{start:[1,1,1,1],width:[6,8,10,10]},o))))},ht={month:"short",day:"numeric",year:"numeric"},ft=function(e,t,n){var r;if(!n)return null;var o="string"==typeof n?n:ht[t],a=e.toLocaleString("default",((r={})[t]=o,r));return"numeric"===o&&["day","month"].includes(t)?a.padStart(2,"0"):a},gt=function(e,t){var n;void 0===t&&(t=ht);var r=new Date(e.replace(/-/g,"/"));return[ft(r,"month",t.month),ft(r,"day",t.day),ft(r,"year",t.year)].filter(Boolean).join(null!=(n=t.separator)?n:" ")},yt=function(){var e=a(null),t=e[0],n=e[1];return i(function(){document&&Be(document)>0&&n("custom-scrollbar")},[]),t};export{I as Avatar,G as AvatarGroup,Y as Badge,U as Blockquote,Q as Button,te as Callout,ne as Caption,ce as Colorbar,pe as Colors,D as Column,Pe as Custom404,Se as Dimmer,Ge as Expander,Ie as FadeIn,_e as Figure,Ye as FigureCaption,Qe as Filter,ke as Footer,H as Group,Re as Guide,ve as Header,tt as Heading,rt as Input,je as Layout,K as Link,ot as LinkGroup,ue as Logo,he as Menu,de as Meta,we as Monogram,O as Row,Oe as Scrollbar,it as Select,Ve as Settings,ct as Slider,mt as Table,pt as TableCaption,Ue as Tag,ut as Toggle,xt as Tray,gt as formatDate,Be as getScrollbarWidth,yt as useScrollbarClass};
1
+ import e,{Children as t,forwardRef as n,cloneElement as r,useRef as o,useState as a,useEffect as i,useCallback as l,useMemo as c}from"react";import{Box as s,Image as m,Grid as p,Link as d,Flex as u,useThemeUI as x,IconButton as h,Container as f,useColorMode as g,Text as y,Input as E,Slider as b}from"theme-ui";import{transparentize as v}from"@theme-ui/color";import w from"next/link";import{Arrow as k,Sun as C,RotatingArrow as S}from"@carbonplan/icons";import{PoopSad as z}from"@carbonplan/emoji";import W from"next/head";import{keyframes as A}from"@emotion/react";function M(){return M=Object.assign?Object.assign.bind():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},M.apply(this,arguments)}function L(e){if(null==e)throw new TypeError("Cannot destructure "+e)}function T(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}var F=["color","width","maxWidth","name","github","alt","src","sx"],I=function(t){var n,r,o=t.color,a=void 0===o?"transparent":o,i=t.width,l=void 0===i?"90px":i,c=t.maxWidth,p=t.name,d=t.github,u=t.alt,x=t.src,h=t.sx,f=T(t,F);return p||x||d||console.warn("must specify either name, github, or src"),p?(n="https://images.carbonplan.org/team/"+p.toLowerCase().replaceAll(" ","-")+".png",r=u||p):d?(n="https://github.com/"+d+".png",r=u||d):(n=x,r=u),e.createElement(s,M({sx:M({width:l,maxWidth:c,height:"auto",borderRadius:"50%",position:"relative",display:"inline-block",verticalAlign:"top",bg:a},h)},f),e.createElement(m,{alt:r,src:n,sx:{opacity:a&&"transparent"!==a?.25:1,filter:a&&"transparent"!==a?"grayscale(100%) contrast(200%) brightness(100%)":"none",width:"100%",borderRadius:"50%",display:"block"}}))},B=["children","sx","columns","gap"],O=function(t){var n,r,o=t.children,a=t.sx,i=t.columns,l=t.gap,c=T(t,B),s=function(e){if(Array.isArray(e)||(e=[e,e,e,e]),Array.isArray(e)&&![1,2,4].includes(e.length))throw new Error("Array length must be 1, 2, or 4");return Array.isArray(e)&&1==e.length&&(e=e.map(function(e){return[e]}).flat()),Array.isArray(e)&&2==e.length&&(e=e.map(function(e){return[e,e]}).flat()),e};return Number.isInteger(l)||Array.isArray(l)?(n=l=s(l),r=l):(n=[4,5,5,6],r=[0,0,0,0]),i=Number.isInteger(i)||Array.isArray(i)?s(i):[6,8,12,12],e.createElement(p,M({},c,{columns:i,sx:M({columnGap:n,rowGap:r},a)}),o)},R=["start","width","dl","dr","children","sx"],D=function(t){var n=t.start,r=t.width,o=t.dl,a=t.dr,i=t.children,l=t.sx,c=T(t,R);r=r||"auto";var m=function(e){if(e&&!Array.isArray(e)&&(e=[e]),![1,2,4].includes(e.length))throw new Error("Array length must be 1, 2, or 4");return Array.isArray(e)&&1==e.length?e=e.map(function(e){return[e,e,e,e]}).flat():Array.isArray(e)&&2==e.length&&(e=e.map(function(e){return[e,e]}).flat()),e};n=m(n=n||"auto"),r=m(r);var p,d,u=n.map(function(e,t){return"auto"==e?"auto":e+r[t]});if(o){if(![.5,1].includes(o))throw new Error("dl must be 0.5 or 1");.5===o&&(p=["-12px",-3,-3,-4]),1===o&&(p=[-4,-5,-5,-6])}if(a){if(![.5,1].includes(a))throw new Error("dr must be 0.5 or 1");.5===a&&(d=["-12px",-3,-3,-4]),1===a&&(d=[-4,-5,-5,-6])}return e.createElement(s,M({},c,{sx:M({gridColumnStart:n,gridColumnEnd:u,ml:p,mr:d},l)}),i)},N={xs:[1],sm:[3],md:[5],lg:[7],xl:[9]},H=function(t){var n,r=t.children,o=t.direction,a=void 0===o?"vertical":o,i=t.spacing,l=void 0===i?"md":i,c=t.sx;if(n="string"==typeof l&&N.hasOwnProperty(l)?N[l]:l,!["horizontal","vertical"].includes(a))throw new Error("Invalid direction value. Must be either horizontal or vertical");var m="vertical"===a?"mb":"mr",p="horizontal"===a?{display:"inline-block"}:{};return e.createElement(s,{sx:c},e.Children.map(r,function(t,o){var a;return e.createElement(s,{sx:M((a={},a[m]=o<r.length-1?n:0,a),p)},t)}))},V=["members","direction","align","spacing","limit","width","maxWidth","fixedCount","sx"],j={xs:[1],sm:[3],md:[5],lg:[7],xl:[9]},P=function(t){return e.createElement(s,{sx:{bg:"muted",height:"100%",maxWidth:t.maxWidth,borderRadius:"50%"}},e.createElement(s,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%"}},e.createElement(s,{sx:{fontFamily:"mono",letterSpacing:"mono",fontSize:[3,3,3,4]}},"+",t.overflow)))},G=function(t){var n,r=t.members,o=t.direction,a=void 0===o?"horizontal":o,i=t.align,l=t.spacing,c=void 0===l?"md":l,s=t.limit,m=t.width,p=t.maxWidth,d=t.fixedCount,u=t.sx,x=T(t,V);n=j.hasOwnProperty(c)?j[c]:c;var h=function(e){return"auto"};i&&(Array.isArray(i)||(i=[i]),h=function(e){return i.map(function(t){if("left"===t)return"auto";if("right"===t)return(Math.max(0,d-r.length)+e)%d+1;throw Error("alignment '"+t+"' not recognized")})});var f=r.length>s,g=r.length-s+1;return e.createElement(e.Fragment,null,d&&e.createElement(O,M({columns:d,gap:n,sx:u},x),r.map(function(t,n){return e.createElement(D,{key:n,start:h(n)},(!f||n<s-1)&&e.createElement(I,M({},t,{width:m,maxWidth:p})),f&&n===s-1&&e.createElement(P,{overflow:g,maxWidth:p}))})),!d&&e.createElement(H,M({direction:a,spacing:c,sx:u},x),r.map(function(t,n){return e.createElement(I,M({key:n},t,{width:m,maxWidth:p}))})))},_=["sx","children"],Y=function(t){var n=t.sx,r=t.children,o=T(t,_),a=n&&n.color?n.color:"primary";return e.createElement(s,M({sx:M({display:"inline-block",width:"fit-content",height:["24px","24px","24px","26px"],borderRadius:"5px",backgroundColor:"primary"==a||"secondary"==a?"muted":v(a,.7),textAlign:"center",userSelect:"none",fontSize:[2,2,2,3]},n)},o),e.createElement(s,{sx:{letterSpacing:"0.02em",fontFamily:"mono",mt:["1px","1px","1px","0px"],px:[1,1,1,"5px"],color:a}},r))},X=["“",'"',"'","‘"],U=function(n){var r=n.children;return e.createElement(s,{variant:"styles.blockquote"},t.map(r,function(t,n){var o="",a=r;return t.props&&"string"==typeof t.props.children?(o=t.props.children.slice(0,1),a=t.props.children.slice(1)):"string"==typeof t&&(o=t.slice(0,1),a=t.slice(1)),e.createElement(e.Fragment,null,X.includes(o)&&e.createElement(s,{as:"span",sx:{position:"absolute",ml:"-0.4em"}},o),X.includes(o)?a:t)}))},q=["href","children","internal"],K=n(function(t,n){var r=t.href,o=t.children,a=t.internal,i=void 0!==a&&a,l=T(t,q);return i||r&&r.startsWith("/")?e.createElement(w,{href:r,passHref:!0,legacyBehavior:!0},e.createElement(d,M({ref:n},l),o)):e.createElement(d,M({ref:n,href:r},l),o)}),Z=function(e){if(!["xs","sm","md","lg","xl"].includes(e))throw new Error("Size must be xs, sm, md, lg, or xl");var t,n,r,o;return"xs"===e&&(t=[2,2,2,3],n="body",r="body",o=[1.2]),"sm"===e&&(t=[3,3,3,4],n="body",r="body",o=[1.2]),"md"===e&&(t=[4,4,4,5],n="body",r="body",o=[1.2]),"lg"===e&&(t=[5,5,6,7],n="heading",r="heading",o=[1.2,1.2,1.25,1.25]),"xl"===e&&(t=[6,7,8,9],n="heading",r="heading",o=[1.25]),{fontSize:t,fontFamily:n,letterSpacing:r,lineHeight:o}},$=["size","prefix","suffix","inverted","sx","children","align","href","internal"],J=["color"],Q=n(function(t,n){var o,a,i,l,c,m=t.size,p=void 0===m?"sm":m,d=t.prefix,u=t.suffix,x=t.inverted,h=t.sx,f=t.children,g=t.align,y=t.href,E=t.internal,b=T(t,$);if(!["xs","sm","md","lg","xl"].includes(p))throw new Error("Size must be xs, sm, md, lg, or xl");var v,w,k,C,S,z,W=h||{},A=W.color,L=T(W,J),F=A||(x?"secondary":"primary"),I=A||x?"primary":"secondary";"xs"===p&&(a=["6px","6px","6px","6px"],i=[12,12,12,13],l=[12,12,12,13],c=[1.5,1.5,1.5,1.5],o={transform:"translateY(0.25px)"}),"sm"===p&&(a=["7px","7px","7px","7px"],i=[13,13,13,18],l=[13,13,13,18],c=[1.5,1.5,1.5,2],o={transform:"translateY(0.25px)"}),"md"===p&&(a=["8px","8px","8px","8px"],i=[18,18,18,24],l=[18,18,18,24],c=[2,2,2,3]),"lg"===p&&(a=["10px","10px","12px","16px"],i=[24,24,34,46],l=[24,24,34,46],c=[3,3,4,5]),"xl"===p&&(a=["12px","16px","18px","20px"],i=[34,46,56,68],l=[34,46,56,68],c=[4,5,6,7]),g?(k=g,C=g):d&&u?(k="initial",C="initial"):d?k="initial":u&&(C="middle"),S="middle"===k?{}:o,z="middle"===C?{}:o,d&&(v={"&:hover > #prefix-span > #prefix":M({color:I},d.type.hover)},d=r(d,{id:"prefix",sx:M({position:"relative",height:i,width:l,mr:f?a:[0],strokeWidth:c,verticalAlign:k,transition:"color 0.15s, transform 0.15s"},d.props.sx)})),u&&(w={"&:hover > #suffix-span >#suffix":M({color:I},u.type.hover)},u=r(u,{id:"suffix",sx:M({height:i,width:l,ml:f?a:[0],strokeWidth:c,verticalAlign:C,transition:"color 0.15s, transform 0.15s"},u.props.sx)}));var B=M({},Z(p),{lineHeight:1.05,border:"none",background:"transparent",display:"block",color:F,padding:[0],textAlign:"left",cursor:"pointer",width:"fit-content","@media (hover: hover) and (pointer: fine)":M({"&:hover":{color:I}},w,v)},L),O=e.createElement(e.Fragment,null,e.createElement(s,{as:"span",id:"prefix-span",sx:M({display:"inline-block"},S)},d&&d),e.createElement(s,{as:"span",sx:{transition:"color 0.15s"}},f),e.createElement(s,{as:"span",id:"suffix-span",sx:M({display:"inline-block"},z)},u&&u));return y?e.createElement(K,M({ref:n,href:y,internal:E,sx:M({},B,{textDecoration:"none"})},b),O):e.createElement(s,M({ref:n,as:"button",sx:B},b),O)}),ee=["label","children","inverted","color","href","internal","sx"],te=n(function(t,n){var r=t.label,o=t.children,a=t.inverted,i=t.color,l=t.href,c=t.internal,m=t.sx,p=T(t,ee),d=i||(a?"secondary":"primary"),u=i||a?"primary":"secondary",x=M({border:"none",padding:[0],fontSize:[3,3,3,4],color:d,background:"transparent",textDecoration:"none",fontFamily:"body",lineHeight:"h3",letterSpacing:"body",width:"fit-content",cursor:"pointer",textAlign:"left",mb:[1],"@media (hover: hover) and (pointer: fine)":{"&:hover > #container > #arrow":{transform:"rotate(45deg)",fill:u},"&:hover":{color:u}}},m),h=e.createElement(e.Fragment,null,e.createElement(s,{sx:{transition:"0.15s",letterSpacing:"body",pb:["6px"]}},o),e.createElement(s,{sx:{transition:"0.15s",display:"inline-block",textTransform:"uppercase",letterSpacing:"smallcaps",fontFamily:"heading",fontSize:[2,2,2,3]}},r),e.createElement(s,{as:"span",id:"container",sx:{ml:[2],display:"inline-block"}},e.createElement(k,{id:"arrow",sx:{transition:"fill 0.15s, transform 0.15s",position:"relative",top:["2px"],color:d,height:[15,15,15,17],width:[15,15,15,17]}})));return l?e.createElement(K,M({ref:n,href:l,internal:c,sx:x},p),h):e.createElement(s,M({ref:n,as:"button",sx:x},p),h)}),ne=function(t){var n=t.as,r=t.number,o=t.children,a=t.label;return e.createElement(s,{as:void 0===n?"figcaption":n,sx:{color:"secondary",display:"block",textAlign:"left",fontSize:[2,2,2,3],"& a":{color:"secondary"},"& a:hover":{color:"primary"},"& > p":{display:"inline",fontSize:[2,2,2,3]}}},r&&e.createElement(e.Fragment,null,e.createElement(s,{sx:{textTransform:"uppercase",letterSpacing:"smallcaps",display:"inline-block"}},void 0===a?"figure":a," ",r)," ",e.createElement(s,{sx:{display:"inline-block",mx:[1],pr:[1]}},"/")),o)},re=["colormap","label","clim","setClim","setClimStep","discrete","units","width","height","format","horizontal","bottom","sx","sxClim"],oe=function(e){return{bg:"unset",border:"none",color:"primary",px:0,fontFamily:"mono",fontSize:["9px",0,0,1],letterSpacing:"smallcaps",textTransform:"uppercase",transition:"border 0.15s",userSelect:e?"none !important":"unset",width:"fit-content",minWidth:"fit-content"}},ae={width:["10px","16px","16px","17px"],height:["80px","110px","110px","130px"]},ie=function(t){var n=t.colormap,r=t.discrete,o=t.horizontal,a=t.width,i=t.height,l=1/n.length*100,c=String(n[0]).startsWith("#"),m="linear-gradient(to "+(o?"right":"top")+", "+n.map(function(e,t){var o;return"rgb("+(c?(o=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e))?parseInt(o[1],16)+", "+parseInt(o[2],16)+", "+parseInt(o[3],16):null:e)+") "+t*l+"% "+(r&&t<n.length-1?(t+1)*l+"%":"")}).join(",")+")";return e.createElement(s,{sx:M({},o?{width:a||ae.height,height:i||ae.width}:{width:a||ae.width,minHeight:i||ae.height},{mt:o?["1px","1px","1px",0]:0,border:function(e){return"solid 1px "+e.colors.hinted},background:m})})},le=function(t){var n=t.label,r=t.units,o=t.horizontal;return e.createElement(s,{sx:!o&&{width:["13px","17px","17px","19px"],alignSelf:"flex-end"}},e.createElement(s,{sx:M({mb:o?0:["-4px","-4px","-4px","-3px"],fontFamily:"mono",fontSize:["9px",0,0,1],letterSpacing:"smallcaps",textTransform:"uppercase"},o?{}:{writingMode:"vertical-rl",transform:"rotate(180deg)",whiteSpace:"nowrap",display:"inline-block",overflow:"visible"})},n," ",e.createElement(s,{as:"span",sx:{textTransform:"none",color:"secondary",display:"inline-block"}},r)))},ce=function(t){var n=t.colormap,r=t.label,l=t.clim,c=t.setClim,m=t.setClimStep,p=void 0===m?1:m,d=t.discrete,x=t.units,h=t.width,f=t.height,g=t.format,y=void 0===g?function(e){return e}:g,E=t.horizontal,b=void 0!==E&&E,v=t.bottom,w=void 0!==v&&v,k=t.sx,C=t.sxClim,S=T(t,re);if(!Array.isArray(n))throw new Error("expected array for colormap, got '"+n+"'.");var z,W,A,L=[o(),o()],F=a(!1),I=F[0],B=F[1],O=a(!1),R=O[0],D=O[1],N=0,H=null,V=[0,0],j=p,P=function(e){"min"!==H||I||B(!0),"max"!==H||R||D(!0),A=e.pageX-z,N=e.pageY-W,b?("min"===H&&c(function(e){return[Math.min(V[0]+A*j,V[1]),e[1]]}),"max"===H&&c(function(e){return[e[0],Math.max(V[1]+A*j,V[0])]})):("min"===H&&c(function(e){return[Math.min(V[0]-N*j,V[1]),e[1]]}),"max"===H&&c(function(e){return[e[0],Math.max(V[1]-N*j,V[0])]}))},G=function(e){W=e.pageY,z=e.pageX,H=e.target.id,V=l,document.body.setAttribute("style",b?"cursor: ew-resize !important":"cursor: ns-resize !important"),document.addEventListener("mousemove",P),window.addEventListener("mouseup",function e(){document.body.setAttribute("style","cursor: unset"),document.removeEventListener("mousemove",P),window.removeEventListener("mouseup",e),"min"===H&&B(!1),"max"===H&&D(!1)})};i(function(){var e=function(e){(["ArrowUp","ArrowRight"].includes(e.code)||["ArrowUp","ArrowRight"].includes(e.key))&&function(e){L[0].current===document.activeElement&&(e.preventDefault(),c(function(e){return[Math.min(e[0]+j,e[1]),e[1]]}),L[0].current.focus()),L[1].current===document.activeElement&&(e.preventDefault(),c(function(e){return[e[0],Math.max(e[1]+j,e[0])]}),L[1].current.focus())}(e),(["ArrowDown","ArrowLeft"].includes(e.code)||["ArrowDown","ArrowLeft"].includes(e.key))&&function(e){L[0].current===document.activeElement&&(e.preventDefault(),c(function(e){return[Math.min(e[0]-j,e[1]),e[1]]}),L[0].current.focus()),L[1].current===document.activeElement&&(e.preventDefault(),c(function(e){return[e[0],Math.max(e[1]-j,e[0])]}),L[1].current.focus())}(e)};return window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}},[l]);var _=function(){return e.createElement(s,{id:"min",as:c?"button":"div",ref:L[0],tabIndex:0,sx:M({},oe(c),{ml:r?b?w?"0px":"10px":["2px","1px","1px","2px"]:0,mr:b?["2px","1px","1px","2px"]:0,mb:b?0:["-2px","-2px","-2px","-3px"],borderBottom:c?function(e){return"solid 1px "+e.colors.primary}:"unset",cursor:c?b?"ew-resize":"ns-resize":"default"},C),onMouseDown:c?G:function(){},onClick:function(){return L[0].current.focus()}},y(l[0]))},Y=function(){return e.createElement(s,{id:"max",as:c?"button":"div",ref:L[1],tabIndex:0,sx:M({},oe(c),{ml:["2px","1px","1px","2px"],mt:b?0:["-2px","-3px","-3px","-3px"],borderBottom:c?function(e){return"solid 1px "+e.colors.primary}:"unset",cursor:c?b?"ew-resize":"ns-resize":"default"},C),onMouseDown:c?G:function(){},onClick:function(){return L[1].current.focus()}},y(l[1]))};return e.createElement(u,M({},S,{sx:M({flexDirection:"row",alignItems:"start",justifyContent:"flex-start",gap:["3px","6px","6px","7px"],height:b?"unset":"100%"},k)}),r&&e.createElement(le,{label:r,units:x,horizontal:b}),e.createElement(u,{sx:{flexGrow:b?1:"unset",flexDirection:"column",ml:w&&r?"4px":"0px",height:b?"unset":"100%"}},e.createElement(u,{sx:{gap:["3px","6px","6px","7px"],height:b?"unset":"100%"}},b&&l&&!w&&e.createElement(_,null),e.createElement(ie,{colormap:n,horizontal:b,discrete:d,width:h,height:f}),b&&l&&!w&&e.createElement(Y,null)),b&&l&&w&&e.createElement(u,{sx:{justifyContent:"space-between"}},e.createElement(_,null),e.createElement(Y,null))),!b&&e.createElement(u,{sx:{flexDirection:"column-reverse",justifyContent:"space-between",height:f||ae.height}},l&&e.createElement(_,null),l&&e.createElement(Y,null)))},se=["sx","color","children"],me=function(t){var n=t.sx,r=t.color,o=t.children,a=T(t,se);return e.createElement(s,M({as:"span",sx:M({display:"inline-block",color:r},n)},a),o)},pe={Primary:function(t){return e.createElement(me,M({color:"primary"},t))},Secondary:function(t){return e.createElement(me,M({color:"secondary"},t))},Background:function(t){return e.createElement(me,M({color:"background"},t))},Red:function(t){return e.createElement(me,M({color:"red"},t))},Orange:function(t){return e.createElement(me,M({color:"orange"},t))},Yellow:function(t){return e.createElement(me,M({color:"yellow"},t))},Green:function(t){return e.createElement(me,M({color:"green"},t))},Teal:function(t){return e.createElement(me,M({color:"teal"},t))},Blue:function(t){return e.createElement(me,M({color:"blue"},t))},Purple:function(t){return e.createElement(me,M({color:"purple"},t))},Pink:function(t){return e.createElement(me,M({color:"pink"},t))},Grey:function(t){return e.createElement(me,M({color:"grey"},t))}},de=function(t){var n=t.title,r=t.description,o=t.card,a=t.url,i=x(),l=i.theme,c=i.colorMode;r||console.warn("a custom description should be used for search engine optimization"),n||console.warn("a custom title should be used for search engine optimization");var s=n||"CarbonPlan",m=r||"Improving the transparency and scientific integrity of climate solutions with open data and tools.",p=o||"https://images.carbonplan.org/social/homepage.png",d=a||"https://carbonplan.org";return e.createElement(W,null,e.createElement("title",null,s),e.createElement("meta",{name:"description",content:m}),e.createElement("meta",{name:"viewport",content:"initial-scale=1.0, width=device-width"}),a&&e.createElement("link",{rel:"canonical",href:a}),e.createElement("link",{rel:"alternate icon",type:"image/png",href:"https://images.carbonplan.org/favicon.png"}),e.createElement("link",{rel:"icon",type:"image/svg+xml",href:"https://images.carbonplan.org/favicon.svg"}),e.createElement("link",{rel:"preload",href:"https://fonts.carbonplan.org/relative/relative-book-pro.woff2",as:"font",type:"font/woff2",crossOrigin:"anonymous"}),e.createElement("link",{rel:"preload",href:"https://fonts.carbonplan.org/relative/relative-medium-pro.woff2",as:"font",type:"font/woff2",crossOrigin:"anonymous"}),e.createElement("link",{rel:"preload",href:"https://fonts.carbonplan.org/relative/relative-mono-11-pitch-pro.woff2",as:"font",type:"font/woff2",crossOrigin:"anonymous"}),e.createElement("link",{rel:"preload",href:"https://fonts.carbonplan.org/relative/relative-faux-book-pro.woff2",as:"font",type:"font/woff2",crossOrigin:"anonymous"}),e.createElement("link",{rel:"manifest",href:"https://images.carbonplan.org/manifest.json"}),e.createElement("meta",{name:"theme-color",content:l.colors.background}),e.createElement("meta",{name:"color-scheme",content:"light"===c?"light":"dark"}),e.createElement("link",{rel:"mask-icon",href:"https://images.carbonplan.org/safari-pinned-tab.svg",color:"#000000"}),e.createElement("link",{rel:"apple-touch-icon",sizes:"180x180",href:"https://images.carbonplan.org/apple-touch-icon.png"}),e.createElement("meta",{name:"msapplication-TileColor",content:l.colors.background}),e.createElement("meta",{name:"msapplication-TileImage",content:"https://images.carbonplan.org/mstile-144x144.png"}),e.createElement("meta",{name:"msapplication-config",content:"https://images.carbonplan.org/browserconfig.xml"}),e.createElement("meta",{property:"og:title",content:s}),e.createElement("meta",{property:"og:description",content:m}),e.createElement("meta",{property:"og:image",content:p}),e.createElement("meta",{property:"og:url",content:d}),e.createElement("meta",{name:"twitter:title",content:s}),e.createElement("meta",{name:"twitter:description",content:m}),e.createElement("meta",{name:"twitter:image",content:p}),e.createElement("meta",{name:"twitter:card",content:"summary_large_image"}),e.createElement("meta",{name:"format-detection",content:"telephone=no"}))},ue=function(t){var n=M({},(L(t),t));return e.createElement(s,M({as:"svg",width:"150",fill:"currentColor",stroke:"none",viewBox:"0 0 151.1 28.8"},n),e.createElement("g",null,e.createElement("g",null,e.createElement("path",{d:"M9.7,20.1c-1.3-1.4-2-3.1-2-5.2c0-2.1,0.7-3.9,2-5.2c1.3-1.4,3-2,5.1-2c1.7,0,3.1,0.4,4.3,1.3 c1.1,0.9,1.8,2.1,2.1,3.5c0,0.1,0,0.2,0,0.3s-0.1,0.2-0.2,0.2h-2.3c-0.2,0-0.3-0.1-0.4-0.2c-0.3-0.8-0.7-1.4-1.3-1.8 c-0.6-0.4-1.4-0.6-2.2-0.6c-1.3,0-2.3,0.4-3,1.2c-0.8,0.8-1.1,1.9-1.1,3.4c0,1.5,0.4,2.6,1.1,3.4c0.8,0.8,1.8,1.2,3,1.2 c0.8,0,1.6-0.2,2.2-0.6c0.6-0.4,1.1-1,1.3-1.8c0.1-0.2,0.2-0.2,0.4-0.3H21c0.1,0,0.2,0.1,0.2,0.2c0,0.1,0,0.2,0,0.3 c-0.3,1.4-1,2.6-2.1,3.5c-1.1,0.9-2.5,1.3-4.3,1.3C12.7,22.1,11,21.4,9.7,20.1z"})),e.createElement("g",null,e.createElement("path",{d:"M22.5,17.6c0-1.5,0.5-2.6,1.6-3.5c1.1-0.8,2.4-1.2,4.1-1.2c1.1,0,2.4,0.2,3.7,0.6V13c0-0.9-0.3-1.6-0.8-2.1 c-0.5-0.5-1.2-0.8-2.2-0.8c-1.4,0-2.4,0.6-2.9,1.8c-0.1,0.2-0.2,0.2-0.4,0.2h-2.3c-0.1,0-0.2-0.1-0.2-0.2c0-0.1,0-0.2,0-0.3 c0.3-1.2,0.9-2.2,1.9-2.9c1-0.8,2.3-1.1,3.8-1.1C30.6,7.6,32,8.1,33,9c1,0.9,1.5,2.2,1.5,3.8V19c0,1.1,0.2,1.9,0.5,2.6 c0,0.1,0.1,0.1,0.1,0.1c0,0.1-0.1,0.1-0.3,0.1h-2.8c-0.2,0-0.3-0.1-0.3-0.3v-1c-1.1,1.1-2.5,1.6-4.3,1.6c-1.4,0-2.6-0.4-3.6-1.2 C23,20.1,22.5,19,22.5,17.6z M25.4,17.5c0,0.6,0.2,1.1,0.7,1.5c0.4,0.4,1.1,0.5,1.9,0.5c1.1,0,2-0.3,2.8-0.9 c0.8-0.6,1.1-1.5,1.1-2.6c-1.3-0.4-2.5-0.6-3.6-0.6c-0.8,0-1.5,0.2-2.1,0.5C25.7,16.3,25.4,16.8,25.4,17.5z"})),e.createElement("g",null,e.createElement("path",{d:"M37,21.6V8.2c0-0.2,0.1-0.3,0.3-0.3h2.2c0.2,0,0.3,0.1,0.3,0.3v1.1c1-1.1,2.3-1.6,3.7-1.6 c0.8,0,1.7,0.1,2.5,0.4c0.2,0.1,0.3,0.3,0.3,0.5v2.2c0,0.2-0.1,0.3-0.2,0.3c0,0-0.1,0-0.2-0.1c-1.1-0.5-2-0.8-2.9-0.8 c-0.9,0-1.7,0.4-2.3,1.1c-0.6,0.7-0.9,1.7-0.9,3v7.3c0,0.2-0.1,0.3-0.3,0.3h-2.2C37.1,21.8,37,21.7,37,21.6z"})),e.createElement("g",null,e.createElement("path",{d:"M47.6,21.6V2.7c0-0.2,0.1-0.3,0.3-0.3H50c0.2,0,0.3,0.1,0.3,0.3v6.5c1.3-1.1,2.7-1.6,4.3-1.6 c1.9,0,3.4,0.7,4.6,2c1.1,1.3,1.7,3.1,1.7,5.3c0,2.2-0.6,4-1.7,5.3c-1.1,1.3-2.7,2-4.6,2c-1.8,0-3.2-0.5-4.3-1.6v1 c0,0.2-0.1,0.3-0.3,0.3h-2.2C47.7,21.8,47.6,21.7,47.6,21.6z M51.2,11.5c-0.7,0.9-1.1,2-1.1,3.3c0,1.4,0.4,2.5,1.1,3.3 s1.7,1.3,2.9,1.3c1.2,0,2.2-0.4,2.9-1.3c0.7-0.9,1.1-2,1.1-3.3c0-1.4-0.4-2.5-1.1-3.3c-0.7-0.9-1.7-1.3-2.9-1.3 C52.9,10.2,51.9,10.7,51.2,11.5z"})),e.createElement("g",null,e.createElement("path",{d:"M64.3,20.1c-1.4-1.4-2.1-3.1-2.1-5.2c0-2.1,0.7-3.9,2.1-5.2c1.4-1.4,3.1-2,5.2-2c2.1,0,3.8,0.7,5.2,2 c1.4,1.4,2.1,3.1,2.1,5.2c0,2.1-0.7,3.9-2.1,5.2c-1.4,1.4-3.1,2-5.2,2C67.4,22.1,65.7,21.4,64.3,20.1z M66.4,11.5 c-0.8,0.8-1.2,2-1.2,3.4c0,1.4,0.4,2.5,1.2,3.4s1.9,1.3,3.1,1.3c1.3,0,2.3-0.4,3.1-1.3c0.8-0.8,1.2-2,1.2-3.4 c0-1.4-0.4-2.5-1.2-3.4c-0.8-0.8-1.9-1.3-3.1-1.3C68.2,10.2,67.2,10.7,66.4,11.5z"})),e.createElement("g",null,e.createElement("path",{d:"M78.7,21.6V8.2c0-0.2,0.1-0.3,0.3-0.3h2.2c0.2,0,0.3,0.1,0.3,0.3v1.3c1.3-1.2,2.7-1.8,4.4-1.8 c1.5,0,2.7,0.4,3.5,1.3c0.8,0.9,1.3,2,1.3,3.6v9.1c0,0.2-0.1,0.3-0.3,0.3h-2.2c-0.2,0-0.3-0.1-0.3-0.3v-8.3c0-2-0.9-3.1-2.8-3.1 c-1.1,0-1.9,0.4-2.7,1.2c-0.7,0.8-1.1,2-1.1,3.5v6.6c0,0.2-0.1,0.3-0.3,0.3h-2.2C78.7,21.8,78.7,21.7,78.7,21.6z"})),e.createElement("g",null,e.createElement("path",{d:"M101.7,27.1V8.2c0-0.2,0.1-0.3,0.3-0.3h2.2c0.2,0,0.3,0.1,0.3,0.3v1c1.1-1.1,2.5-1.6,4.3-1.6 c1.9,0,3.4,0.7,4.6,2s1.7,3.1,1.7,5.3c0,2.2-0.6,4-1.7,5.3c-1.1,1.3-2.7,2-4.6,2c-1.5,0-3-0.5-4.3-1.6v6.6c0,0.2-0.1,0.3-0.3,0.3 H102C101.8,27.3,101.7,27.2,101.7,27.1z M105.3,11.5c-0.7,0.9-1.1,2-1.1,3.3c0,1.4,0.4,2.5,1.1,3.3s1.7,1.3,2.9,1.3 c1.2,0,2.2-0.4,2.9-1.3c0.7-0.9,1.1-2,1.1-3.3c0-1.4-0.4-2.5-1.1-3.3c-0.7-0.9-1.7-1.3-2.9-1.3C107,10.2,106,10.7,105.3,11.5z"})),e.createElement("g",null,e.createElement("path",{d:"M117.2,21.6V2.7c0-0.2,0.1-0.3,0.3-0.3h2.2c0.2,0,0.3,0.1,0.3,0.3v18.9c0,0.2-0.1,0.3-0.3,0.3h-2.2 C117.3,21.8,117.2,21.7,117.2,21.6z"})),e.createElement("g",null,e.createElement("path",{d:"M122,17.6c0-1.5,0.5-2.6,1.6-3.5c1.1-0.8,2.4-1.2,4.1-1.2c1.1,0,2.4,0.2,3.7,0.6V13c0-0.9-0.3-1.6-0.8-2.1 c-0.5-0.5-1.2-0.8-2.2-0.8c-1.4,0-2.4,0.6-2.9,1.8c-0.1,0.2-0.2,0.2-0.4,0.2h-2.3c-0.1,0-0.2-0.1-0.2-0.2c0-0.1,0-0.2,0-0.3 c0.3-1.2,0.9-2.2,1.9-2.9c1-0.8,2.3-1.1,3.8-1.1c1.7,0,3.1,0.5,4.2,1.4s1.5,2.2,1.5,3.8V19c0,1.1,0.2,1.9,0.5,2.6 c0,0.1,0.1,0.1,0.1,0.1c0,0.1-0.1,0.1-0.3,0.1h-2.8c-0.2,0-0.3-0.1-0.3-0.3v-1c-1.1,1.1-2.5,1.6-4.3,1.6c-1.4,0-2.6-0.4-3.6-1.2 C122.5,20.1,122,19,122,17.6z M124.9,17.5c0,0.6,0.2,1.1,0.7,1.5c0.4,0.4,1.1,0.5,1.9,0.5c1.1,0,2-0.3,2.8-0.9 c0.8-0.6,1.1-1.5,1.1-2.6c-1.3-0.4-2.5-0.6-3.6-0.6c-0.8,0-1.5,0.2-2.1,0.5C125.2,16.3,124.9,16.8,124.9,17.5z"})),e.createElement("g",null,e.createElement("path",{d:"M136.9,21.6V8.2c0-0.2,0.1-0.3,0.3-0.3h2.2c0.2,0,0.3,0.1,0.3,0.3v1.3c1.3-1.2,2.7-1.8,4.4-1.8 c1.5,0,2.7,0.4,3.5,1.3c0.8,0.9,1.3,2,1.3,3.6v9.1c0,0.2-0.1,0.3-0.3,0.3h-2.2c-0.2,0-0.3-0.1-0.3-0.3v-8.3c0-2-0.9-3.1-2.8-3.1 c-1.1,0-1.9,0.4-2.7,1.2c-0.7,0.8-1.1,2-1.1,3.5v6.6c0,0.2-0.1,0.3-0.3,0.3h-2.2C137,21.8,136.9,21.7,136.9,21.6z"})),e.createElement("path",{d:"M97.6,14.9c0,4.2-0.6,8.3-1.6,12.3c0,0.1-0.1,0.2-0.2,0.2h-2.4c-0.1,0-0.2-0.1-0.2-0.3c1.1-3.9,1.7-8,1.7-12.2 s-0.6-8.3-1.7-12.2c0-0.1,0.1-0.3,0.2-0.3l2.4,0c0.1,0,0.2,0.1,0.2,0.2C97.1,6.5,97.6,10.6,97.6,14.9z"}),e.createElement("path",{d:"M1.4,14.9C1.4,10.6,2,6.5,3,2.6c0-0.1,0.1-0.2,0.2-0.2l2.4,0c0.1,0,0.2,0.1,0.2,0.3c-1.1,3.9-1.7,8-1.7,12.2 s0.6,8.3,1.7,12.2c0,0.1-0.1,0.3-0.2,0.3H3.3c-0.1,0-0.2-0.1-0.2-0.2C2,23.2,1.4,19.1,1.4,14.9z"})))},xe=["value","sx"],he=function(t){var n=t.value,r=t.sx,o=T(t,xe);return e.createElement(h,M({sx:M({cursor:"pointer",fill:"none",strokeWidth:"2px",stroke:"text",".paren":{opacity:"0"},"@media (hover: hover) and (pointer: fine)":{"&:hover .paren":{opacity:"1"}}},r),"aria-label":"Toggle Menu"},o),!n&&e.createElement("svg",{style:{width:"50px",height:"30px",marginTop:"-3px",flexShrink:0},xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 68 36"},e.createElement("line",{x1:"52",y1:"29.9",x2:"16",y2:"29.9"}),e.createElement("line",{x1:"52",y1:"6.1",x2:"16",y2:"6.1"}),e.createElement("line",{x1:"52",y1:"18",x2:"16",y2:"18"}),e.createElement("path",{style:{transition:"all 0.2s"},className:"paren",d:"M6.4,1.2c-6.3,10.3-6.3,23.3,0,33.6"}),e.createElement("path",{style:{transition:"all 0.2s"},className:"paren",d:"M61.6,34.8c6.3-10.3,6.3-23.3,0-33.6"})),n&&e.createElement("svg",{style:{width:"50px",height:"30px",marginTop:"-3px",flexShrink:0},xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 68 36"},e.createElement("line",{x1:"50.85",y1:"29.79",x2:"17.15",y2:"6.21"}),e.createElement("line",{x1:"17.15",y1:"29.79",x2:"50.85",y2:"6.21"}),e.createElement("path",{style:{transition:"all 0.2s"},className:"paren",d:"M6.4,1.2c-6.3,10.3-6.3,23.3,0,33.6"}),e.createElement("path",{style:{transition:"all 0.2s"},className:"paren",d:"M61.6,34.8c6.3-10.3,6.3-23.3,0-33.6"})))},fe=function(e,t,n){return void 0===n&&(n=!1),{width:"auto",color:e===t?"secondary":"text",fontSize:[6,6,7,8],fontFamily:"heading",letterSpacing:"heading",borderStyle:"solid",borderColor:"muted",borderWidth:"0px",borderBottomWidth:"1px",borderTopWidth:n?"1px":"0px",py:[3,3,4,5],textDecoration:"none",display:"block",position:"relative",transition:"color 0.15s","@media (hover: hover) and (pointer: fine)":{"&:hover > #arrow":{opacity:1}},"&:hover":{color:e==t?"secondary":"text"}}},ge=[{url:"about",display:"About"},{url:"research",display:"Research"},{url:"blog",display:"Blog"},{url:"press",display:"Press"}],ye=function(){return e.createElement(k,{id:"arrow",sx:{pointerEvents:"none",display:"inline-block",position:"absolute",left:["-60px","-68px","-80px","-104px"],top:["32px","32px","46px","62px"],opacity:0,transition:"opacity 0.2s ease-out",transform:"rotate(45deg)",width:[36,36,48,56],height:[36,36,48,56]}})},Ee=function(t){var n=t.link,r=t.mode,o=t.nav,a=t.first,i=t.setExpanded,l=n.url,c=n.display,s="remote"===r?"https://carbonplan.org/"+l:"/"+l;return"homepage"===r||"local"===r&&o===l?e.createElement(w,{href:s,passHref:!0,legacyBehavior:!0},e.createElement(d,{onClick:function(){o===l&&i(!1)},sx:fe(o,l,a)},e.createElement(ye,null),c)):e.createElement(d,{href:s,sx:fe(o,l,a)},e.createElement(ye,null),c)},be=function(t){var n=t.nav,r=t.mode,o=t.setExpanded;return t.links.map(function(t,a){return e.createElement(Ee,{key:a,link:t,mode:r,nav:n,first:0===a,setExpanded:o})})},ve=function(t){var n=t.status,r=t.mode,o=t.nav,i=t.menuItems,l=a(!1),c=l[0],m=l[1];return e.createElement(O,{sx:{pt:["12px"],pb:[3]}},e.createElement(D,{start:[1],width:[2]},e.createElement(s,{sx:{pointerEvents:"all",display:"block",width:"fit-content"}},("homepage"==r||"local"==r)&&e.createElement(w,{href:"/",passHref:!0,legacyBehavior:!0},e.createElement(d,{"aria-label":"CarbonPlan Homepage",sx:{display:"block"}},e.createElement(ue,{id:"logo",sx:{cursor:"pointer",color:"primary"}}))),(null==r||"remote"==r)&&e.createElement(d,{href:"https://carbonplan.org","aria-label":"CarbonPlan Homepage",sx:{display:"block"}},e.createElement(ue,{sx:{cursor:"pointer",color:"primary"}})))),e.createElement(D,{start:[4,9],width:[2,2],dr:1,sx:{display:[n?"flex":"none","flex","flex","flex"],alignItems:"center"}},e.createElement(s,{sx:{fontSize:[1,2,3],position:"relative",top:["-2px","-3px","-3px"]}},n?"("+n+")":"")),e.createElement(D,{start:[n?6:4,6,11,11],width:[n?1:3,3,2,2],sx:{zIndex:5e3}},e.createElement(u,{sx:{pointerEvents:"all",justifyContent:"flex-end"}},e.createElement(s,{sx:{display:[n?"none":"flex","flex","flex","flex"],mr:"18px",gap:"18px",opacity:c?0:1,transition:"opacity 0.15s",justifyContent:"space-between",alignItems:"center"}},i),e.createElement(he,{sx:{flexShrink:0,mr:["-2px"]},value:c,onClick:function(e){m(!c)}}))),e.createElement(s,{sx:{opacity:c?1:0,pointerEvents:c?"all":"none",position:"fixed",top:"0px",right:"0px",bottom:"0px",minWidth:"0px",maxHeight:"100vh",width:"100vw",backgroundColor:"background",zIndex:4e3,pt:["79px"],transition:"opacity 0.25s"}},e.createElement(f,null,e.createElement(O,null,e.createElement(D,{start:[2,4,7,7],width:[5,4,5,5]},e.createElement(s,{as:"nav",sx:{display:c?"inherit":"none",mt:[5,5,5,6]}},e.createElement(be,{links:ge,nav:o,mode:r,setExpanded:m})))))))},we=function(t){var n=M({},(L(t),t));return e.createElement(s,M({as:"svg",width:"80",stroke:"none",fill:"currentColor",viewBox:"0 0 32 32"},n),e.createElement("path",{d:"M21.9395,14.9395 L17.5005,19.3785 L17.5005,7.0005 L14.5005,7.0005 L14.5005,19.3785 L10.0605,14.9395 L7.9395,17.0605 L14.9395,24.0605 C15.2325,24.3535 15.6165,24.5005 16.0005,24.5005 C16.3835,24.5005 16.7675,24.3535 17.0605,24.0605 L24.0605,17.0605 L21.9395,14.9395 Z"}),e.createElement("path",{d:"M27.5986,4 L22.8966,4 C26.5556,6.303 28.9996,10.366 28.9996,15 C28.9996,20.4 25.6896,25.039 20.9926,27 L26.5586,27 C29.8886,24.068 31.9996,19.785 31.9996,15 C31.9996,10.734 30.3196,6.868 27.5986,4"}),e.createElement("path",{d:"M3,15 C3,10.366 5.444,6.303 9.104,4 L4.401,4 C1.68,6.868 0,10.734 0,15 C0,19.785 2.112,24.068 5.441,27 L11.008,27 C6.311,25.039 3,20.4 3,15"}))},ke=function(){var t=a(null),n=t[0],r=t[1];return i(function(){r((new Date).getFullYear())},[]),e.createElement(s,{sx:{mt:[7,7,7,8],mb:[7,7,7,8],pb:[2,1,0,0]}},e.createElement(O,{sx:{mb:[0,0,4,5]}},e.createElement(D,{start:[1,2],width:[3,3]},e.createElement(s,null,e.createElement(s,{sx:{fontSize:[2,2,2,3],fontFamily:"heading",letterSpacing:"mono",mb:[2]}},"EMAIL"),e.createElement(d,{href:"mailto:hello@carbonplan.org",sx:{textDecoration:"none",fontSize:[2,2,2,3]}},"hello@carbonplan.org"))),e.createElement(D,{start:[5],width:[1],dl:1,dr:1,sx:{display:["flex","none","none","none"],justifyContent:["center"]}},e.createElement(we,{sx:{mt:["-4px"],width:"60px",height:"60px"}})),e.createElement(D,{start:[1,5,5,5],width:[3,3],sx:{mt:[3,0,0,0]}},e.createElement(s,null,e.createElement(s,{sx:{fontSize:[2,2,2,3],fontFamily:"heading",letterSpacing:"mono",mb:[2]}},"NEWSLETTER"),e.createElement(d,{href:"https://carbonplan.org/newsletter",sx:{textDecoration:"none",fontSize:[2,2,2,3]}},"Subscribe"))),e.createElement(D,{start:[1,9],width:[5,4,3,3],sx:{mt:["42px","42px",0,0],mb:[3,3,0,0]}},e.createElement(s,null,e.createElement(s,{sx:{fontSize:[2,2,2,3],fontFamily:"body",color:"secondary"}},"CarbonPlan is a registered nonprofit public benefit corporation in California with 501(c)(3) status.")))),e.createElement(O,{sx:{mb:["2px"],mt:[5,5,4]}},e.createElement(D,{start:[1,1,2,2],width:[3,2,3,3],sx:{display:"flex",alignItems:["flex-start","flex-start","flex-end"]}},e.createElement(s,{sx:{bottom:"0px",borderStyle:"solid",borderColor:"muted",borderWidth:"0px",borderTopWidth:"1px",display:"inline-block",pt:[2]}},e.createElement(s,{sx:{color:"secondary",fontSize:[1,1,1,2],fontFamily:"mono",letterSpacing:"mono"}},e.createElement(u,{sx:{flexDirection:["column","column","row","row"],gap:[0,0,"10px","12px"]}},e.createElement(s,null,"(c) ",n),e.createElement(s,null,"CARBONPLAN"))))),e.createElement(D,{start:[4,3,5,5],width:[3,3,4,4],sx:{display:"flex",alignItems:["flex-start","flex-start","flex-end"],mt:[0,0,0,0]}},e.createElement(s,{sx:{bottom:"0px",borderStyle:"solid",borderColor:"muted",borderWidth:"0px",borderTopWidth:"1px",pt:[2]}},e.createElement(u,{sx:{color:"secondary",fontSize:[1,1,1,2],fontFamily:"mono",letterSpacing:"mono",flexDirection:["column","column","row","row"],gap:[0,0,"10px","12px"]}},e.createElement(w,{href:"/terms",passHref:!0,legacyBehavior:!0},e.createElement(s,{as:"a",sx:{color:"secondary","&:hover":{color:"primary"}}},"TERMS OF USE")),e.createElement(s,{sx:{display:["none","none","initial","initial"]}}," / "),e.createElement(w,{href:"/privacy",passHref:!0,legacyBehavior:!0},e.createElement(s,{as:"a",sx:{color:"secondary","&:hover":{color:"primary"}}},"PRIVACY POLICY"))))),e.createElement(D,{start:[5,7,9,9],width:[2,2,3,3],sx:{display:["none","initial","initial","initial"]}},e.createElement(we,{sx:{width:80,height:80,mt:[0,"-10px",4,5],mb:["-12px"]}}))))},Ce=["sx"],Se=function(t){var n=t.sx,r=T(t,Ce),o=g(),a=o[0],i=o[1],c=l(function(){i("light"===a?"dark":"light")},[a]);return e.createElement(h,M({"aria-label":"Toggle dark mode",onClick:c,role:"checkbox",sx:M({width:32,height:32,display:"inline-block",cursor:"pointer",color:"secondary"},n)},r),e.createElement(C,{sx:{strokeWidth:"1.75",transition:"stroke 0.15s","@media (hover: hover) and (pointer: fine)":{"&:hover":{stroke:"primary"}}}}))},ze=function(){var t=process.env.NEXT_PUBLIC_VERCEL_GIT_COMMIT_SHA,n=process.env.NEXT_PUBLIC_VERCEL_GIT_REPO_OWNER,r=process.env.NEXT_PUBLIC_VERCEL_GIT_REPO_SLUG,o=x().theme.rawColors.secondary;if(t&&n&&r){var a=t.substring(0,7),i="https://github.com/"+n+"/"+r+"/tree/"+t;return e.createElement(s,{sx:{display:"inline-block",width:"87px"}},e.createElement(We,{color:o}),e.createElement(d,{href:i,sx:{whiteSpace:"nowrap",display:"inline-block",ml:[2],fontFamily:"mono",letterSpacing:"body",color:o,fontSize:[1],textTransform:"uppercase",textDecoration:"none"}},a))}return e.createElement(s,{sx:{display:"inline-block",width:"87px"}},e.createElement(We,{color:o}),e.createElement(y,{sx:{whiteSpace:"nowrap",display:"inline-block",ml:[2],fontFamily:"mono",letterSpacing:"body",color:o,fontSize:[1],textTransform:"uppercase"}},o))},We=function(t){return e.createElement("svg",{fill:t.color,opacity:"0.8",viewBox:"0 0 24 24",width:"24",height:"24"},e.createElement("circle",{r:5,cx:19,cy:19}))},Ae=function(t){var n=t.mode,r=a(function(e){return"mouse"===e?"X,Y: "+Le(0,4)+","+Le(0,4):"scroll"===e?"SCROLL: 0."+Le((0).toFixed(0),2):e}(n)),o=r[0],l=r[1];return i(function(){if("mouse"===n){var e=function(e){var t=Le(e.clientX,4),n=Le(e.clientY,4);l("X,Y: "+t+","+n)};return window.addEventListener("mousemove",e),function(){window.removeEventListener("mousemove",e)}}if("scroll"===n){var t=function(e){var t=function(e,t){return Math.min(e.scrollY/(document.body.offsetHeight-770),.99)}(window);l("SCROLL: 0."+Le((100*t).toFixed(0),2))};return window.addEventListener("scroll",t),function(){window.removeEventListener("scroll",t)}}},[]),e.createElement(y,{sx:{whiteSpace:"nowrap",display:"inline-block",mr:"-6px",fontFamily:"mono",letterSpacing:"body",color:"secondary",fontSize:[1],textTransform:"uppercase"}},o)},Me=function(t){return e.createElement(s,{sx:{userSelect:"none",position:"fixed",bottom:"42px",right:"24px",transformOrigin:"right",transform:"rotate(90deg)",display:["none","none","initial"]}},e.createElement(Ae,{mode:t.mode}),e.createElement(ze,null))};function Le(e,t){return e.toString().padStart(t,"0")}var Te=["duration","delay","children"],Fe=A({from:{opacity:0},to:{opacity:1}}),Ie=function(t){var n=t.duration,r=void 0===n?300:n,o=t.delay,a=void 0===o?0:o,i=t.children,l=T(t,Te);return e.createElement(s,M({},l,{sx:{animationDuration:r+"ms",animationDelay:a+"ms",animationName:Fe.toString(),animationFillMode:"backwards"}}),i)},Be=function(e){var t=e.createElement("div");t.style.visibility="hidden",t.style.width="100px",e.body.appendChild(t),t.style.overflow="scroll";var n=e.createElement("div");n.style.width="100%",t.appendChild(n);var r=t.offsetWidth-n.offsetWidth;return t.parentNode.removeChild(t),r},Oe=function(){return i(function(){"undefined"!=typeof document&&Be(document)>0&&(document.body.classList.add("custom-scrollbar"),document.getElementsByTagName("html")[0].classList.add("custom-scrollbar"))},[]),null},Re=function(t){var n=t.color,r=void 0===n?"muted":n,o=a(!1),l=o[0],c=o[1];return i(function(){function e(e){";"===e.key&&e.metaKey&&c(function(e){return!e})}return document.addEventListener("keydown",e),function(){document.removeEventListener("keydown",e)}},[]),e.createElement(s,{sx:{position:"fixed",width:"100%",left:0,top:0,zIndex:"teal"===r?5e3:-1,pointerEvents:"none",display:l?"initial":"none"}},e.createElement(f,null,e.createElement(s,{sx:{display:["none","none","initial","initial"]}},e.createElement(Ne,{indices:[1,2,3,4,5,6,7,8,9,10,11,12],color:r})),e.createElement(s,{sx:{display:["none","initial","none","none"]}},e.createElement(Ne,{indices:[1,2,3,4,5,6,7,8],color:r})),e.createElement(s,{sx:{display:["initial","none","none","none"]}},e.createElement(Ne,{indices:[1,2,3,4,5,6],color:r}))))},De=["red","orange","yellow","green","teal","blue","purple","pink"];function Ne(t){var n=t.color,r={outerGuideColumn:{borderStyle:"solid",borderWidth:"0px",borderLeftWidth:"teal"===n?"0px":"1px",borderRightWidth:"teal"===n?"0px":"1px",opacity:"teal"==n?.4:1},innerGuideColumn:{borderStyle:"solid",borderWidth:"0px",borderLeftWidth:"0px",borderRightWidth:"0px",opacity:"teal"==n?.4:1}};return e.createElement(O,null,t.indices.map(function(t){return e.createElement(D,{key:t,start:[t],width:[1,1],dl:.5,dr:.5,sx:M({bg:"teal"===n?"teal":"transparent",height:"100vh"},r.innerGuideColumn)},e.createElement(s,{sx:M({mx:["12px",3,3,4],bg:"teal"===n?"background":"transparent",height:"100%",borderLeftColor:"rainbow"===n?De[t%8]:"muted",borderRightColor:"rainbow"===n?De[t%8]:"muted"},r.outerGuideColumn)}))}))}var He=["value","sx"],Ve=function(t){var n=t.value,r=t.sx,o=T(t,He);return e.createElement(h,M({sx:M({cursor:"pointer",fill:"none",strokeWidth:"2px",stroke:"text",".paren":{opacity:"0"},"@media (hover: hover) and (pointer: fine)":{"&:hover .paren":{opacity:"1"}}},r),"aria-label":"Toggle Menu"},o),!n&&e.createElement("svg",{style:{width:"50px",height:"30px",marginTop:"-3px",flexShrink:0},xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 68 36"},e.createElement("line",{x1:"24",y1:"2.1",x2:"24",y2:"6.1"}),e.createElement("line",{x1:"24",y1:"24.1",x2:"24",y2:"33.9"}),e.createElement("line",{x1:"44",y1:"2.1",x2:"44",y2:"12.1"}),e.createElement("line",{x1:"44",y1:"30.1",x2:"44",y2:"33.9"}),e.createElement("circle",{cx:"24",cy:"15.1",r:"5"}),e.createElement("circle",{cx:"44",cy:"21.1",r:"5"}),e.createElement("path",{style:{transition:"all 0.2s"},className:"paren",d:"M6.4,1.2c-6.3,10.3-6.3,23.3,0,33.6"}),e.createElement("path",{style:{transition:"all 0.2s"},className:"paren",d:"M61.6,34.8c6.3-10.3,6.3-23.3,0-33.6"})),n&&e.createElement("svg",{style:{width:"50px",height:"30px",marginTop:"-3px",flexShrink:0},xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 68 36"},e.createElement("line",{x1:"50.85",y1:"29.79",x2:"17.15",y2:"6.21"}),e.createElement("line",{x1:"17.15",y1:"29.79",x2:"50.85",y2:"6.21"}),e.createElement("path",{style:{transition:"all 0.2s"},className:"paren",d:"M6.4,1.2c-6.3,10.3-6.3,23.3,0,33.6"}),e.createElement("path",{style:{transition:"all 0.2s"},className:"paren",d:"M61.6,34.8c6.3-10.3,6.3-23.3,0-33.6"})))},je=function(t){var n=t.title,r=t.description,o=t.url,a=t.card,l=t.status,c=t.nav,m=t.settings,p=t.footer,d=void 0===p||p,h=t.header,g=void 0===h||h,y=t.metadata,E=void 0===y?"mouse":y,b=t.links,v=void 0===b?"remote":b,w=t.dimmer,k=void 0===w?"bottom":w,C=t.guide,S=void 0===C||C,z=t.scrollbar,W=void 0!==z&&z,A=t.fade,L=t.container,T=void 0===L||L,F=t.printable,I=void 0!==F&&F,B=t.children;(void 0===A||A)&&(B=e.createElement(Ie,{duration:250},B)),T&&(B=e.createElement(s,{sx:{mb:[8,8,9,10]}},e.createElement(f,null,B)));var O=x().theme,R=I?{"@media print":{display:"none"}}:{};i(function(){if(O){var e=window.matchMedia("(min-width: "+O.breakpoints[1]+")");return e.onchange=function(e){e.matches&&null!=m&&m.value&&null!=m&&m.onClick&&(null==m||m.onClick())},function(){e.onchange=null}}},[null==O?void 0:O.breakpoints,null==m?void 0:m.value,null==m?void 0:m.onClick]);var D=[e.createElement(Se,{key:"dimmer",sx:{color:"primary",mt:"-2px",display:["block","block","top"===k?"block":"none","top"===k?"block":"none"]}})];return m&&D.push(e.createElement(Ve,M({key:"settings",sx:{mr:["2px"],display:["inherit","inherit","none","none"]}},m))),e.createElement(e.Fragment,null,S&&e.createElement(Re,{color:S}),W&&e.createElement(Oe,null),e.createElement(de,{card:a,description:r,title:n,url:o}),e.createElement(u,{sx:{flexDirection:"column",minHeight:"100vh"}},g&&e.createElement(s,{as:"header",sx:M({width:"100%",borderStyle:"solid",borderColor:"muted",borderWidth:"0px",borderBottomWidth:"1px",position:"sticky",top:0,bg:"background",height:"56px",zIndex:2e3},R)},e.createElement(f,null,e.createElement(ve,{mode:v,status:l,nav:c,menuItems:D}))),e.createElement(s,{sx:{width:"100%",flex:"1 1 auto"}},B),d&&e.createElement(s,{as:"footer",sx:M({width:"100%",borderStyle:"solid",borderColor:"muted",borderWidth:"0px",borderTopWidth:"1px"},R)},e.createElement(f,null,e.createElement(ke,null))),"bottom"===k&&e.createElement(s,{sx:{display:["none","none","initial","initial"],position:["fixed"],right:[13],bottom:[17,17,15,15]}},e.createElement(Se,null)),E&&e.createElement(Me,{mode:E})))},Pe=function(){return e.createElement(je,{footer:!1,title:"404 – CarbonPlan",description:"Sorry but we can't seem to find the page you are looking for."},e.createElement(O,{sx:{mb:[5,0,0],pt:[0,0,6]}},e.createElement(D,{start:[1,1,3,3],width:[6,4,4,4]},e.createElement(s,{as:"h1",variant:"styles.h1"},"Oops!"),e.createElement(s,{sx:{fontSize:[4,4,4,5],lineHeight:"h3",mt:[3,4,4],mb:[2,3,3],maxWidth:["90%","90%","400px"]}},"Sorry but we can't seem to find the page you are looking for."),e.createElement(s,{sx:{color:"secondary",fontFamily:"mono",letterSpacing:"mono",fontSize:[2,2,2,3],mt:[4,5,5]}},"ERROR CODE 404")),e.createElement(D,{start:[2,5,7,7],width:[4,4,4,4]},e.createElement(s,{sx:{width:["100%"],mt:[2,4,4,5],fill:"primary"}},e.createElement(z,{sx:{width:"100%",height:"auto"}})))))},Ge=function(t){var n=t.value;return e.createElement(h,{onClick:t.onClick,id:t.id,role:"checkbox","aria-checked":n,"aria-label":"Expand",sx:M({display:"inline-block",width:24,height:24,p:[1],cursor:"pointer",fill:"secondary",stroke:"secondary","@media (hover: hover) and (pointer: fine)":{"&:hover":{fill:"primary",stroke:"primary"}}},t.sx)},e.createElement("svg",{viewBox:"0 0 16 16"},e.createElement("path",{d:"M8,0 V16 M0,8 H16",style:{strokeWidth:2,transition:"0.25s all",transformOrigin:"8px 8px",transform:n?"rotate(45deg)":"rotate(0deg)"}})))},_e=function(t){var n,r,o=t.as,a=void 0===o?"figure":o,i=t.children,l=t.sx,c=e.Children.toArray(i).find(function(t){var n;return e.isValidElement(t)&&(null==(n=t.type)?void 0:n.displayName)&&("FigureCaption"===t.type.displayName||"TableCaption"===t.type.displayName)}),m=null==c||null==(n=c.props)?void 0:n.number,p="TableCaption"===(null==c||null==(r=c.type)?void 0:r.displayName)?"table":"figure";return e.createElement(s,{as:a,id:m?p+"-"+m:void 0,sx:M({my:[6,6,6,7],scrollMarginTop:"60px","@media print":{breakInside:"avoid"}},l)},e.createElement(H,{spacing:[4,4,4,5]},i))},Ye=function(t){var n=t.as;return e.createElement(ne,{as:void 0===n?"figcaption":n,number:t.number,label:"figure"},t.children)};Ye.displayName="FigureCaption";var Xe=["label","value","sx","children"],Ue=function(t){var n=t.label,r=t.value,o=t.sx,a=t.children,i=T(t,Xe),l=o&&o.color?o.color:"primary",c=i&&(i.onClick||i.onDoubleClick);return e.createElement(s,M({as:c?"button":"span",role:"checkbox","aria-checked":r,"aria-label":n,sx:M({display:"inline-block",fontSize:[1,1,1,2],fontFamily:"mono",letterSpacing:"mono",cursor:c?"pointer":"inherit",color:l,backgroundColor:"transparent",borderStyle:"solid",borderColor:l,lineHeight:"body",borderWidth:"0px",borderBottomWidth:"1px",textTransform:"uppercase",userSelect:"none",transition:"opacity 0.05s",pt:["1px"],pb:["2px"],px:[0],m:[0],opacity:null==r||r?1:"primary"==l?.24:.33},o)},i),a)},qe=["values","setValues","label","colors","order","labels","showAll","multiSelect"],Ke={label:{fontFamily:"mono",letterSpacing:"mono",fontSize:[1,1,1,2],color:"secondary",userSelect:"none",textTransform:"uppercase"}},Ze=function(e,t,n){return void 0===n&&(n={}),Object.keys(e).reduce(function(e,r){var o;return Object.assign(e,((o={})[r]=n[r]||t,o))},{})},$e=function(e){return Object.keys(e).filter(function(t){return e[t]}).length==Object.keys(e).length},Je=function(e){var t,n=e.values,r=e.multiSelect,o=e.setValues,a=e.value,i=$e(n),l="all"===a;if(r)if(l&&!i)t=Ze(n,!0);else if(l&&i)t=Ze(n,!1);else{var c;t=M({},n,((c={})[a]=!n[a],c))}else if(l&&!i)t=Ze(n,!0);else if(l&&i);else{var s;t=Ze(n,!1,((s={})[a]=!0,s))}t&&o(t)},Qe=function(t){var n=t.values,r=t.setValues,o=t.label,a=t.colors,i=t.order,l=t.labels,m=t.showAll,p=void 0!==m&&m,d=t.multiSelect,u=void 0!==d&&d,x=T(t,qe),h=c(function(){return i||Object.keys(n)},[i].concat(Object.keys(n).sort()));return e.createElement(s,x,o&&e.createElement(s,{sx:Ke.label},o),e.createElement(s,{sx:{mt:o?[3]:0}},p&&e.createElement(Ue,{onClick:function(){return Je({values:n,multiSelect:u,setValues:r,value:"all"})},value:$e(n),sx:{mr:[2]}},"All"),h.map(function(t,o){return e.createElement(Ue,{onClick:function(){return Je({values:n,multiSelect:u,setValues:r,value:t})},onDoubleClick:function(){return Je({values:n,multiSelect:!1,setValues:r,value:t})},key:o,value:n[t],sx:{width:"max-content",color:a?a[t]:"primary",mr:[2],mb:[1]}},l?l[t]:t)})))},et=function(t){var n,r=t.children,o=t.variant,a=void 0===o?"h1":o;return"h1"===a&&(n=[4,"27px","42px","54px"]),"h2"===a&&(n=[4,4,"14px","25px"]),e.createElement(e.Fragment,null,e.createElement(D,{start:[1,4,8,8],width:[1,1,1,1]},e.createElement(s,{sx:{mt:n,fontFamily:"faux",letterSpacing:"faux",fontSize:[2,2,2,3],textAlign:"right"}},"/")),e.createElement(D,{start:[2,5,9,9],width:[3,3,2,2]},e.createElement(s,{sx:{mt:n,fontFamily:"faux",letterSpacing:"faux",fontSize:[2,2,2,3],height:["100%","0px","0px","0px"]}},r)))},tt=function(t){var n=t.children,r=t.sidenote,o=t.variant,a=void 0===o?"h1":o,i=t.description,l=t.descriptionStart,c=void 0===l?[1,3,5,5]:l,m=t.descriptionWidth,p=void 0===m?[5,5,5,4]:m,d=t.sx,u=[6,6,6,6];if(i&&(u[1]=c[1]-1,u[2]=c[2]-2,u[3]=c[3]-2),!["h1","h2"].includes(a))throw new Error("variant must be 'h1' or 'h2' but got '"+a+"'");return e.createElement(O,{sx:M({mt:[5,6,7,8],mb:[5,6,7,8]},d)},e.createElement(D,{start:[1,1,2,2],width:u},"h1"===a&&e.createElement(s,{as:"h1",variant:"styles.h1",sx:{my:[0,0,0,0]}},n),"h2"===a&&e.createElement(s,{as:"h2",variant:"styles.h2",sx:{my:[0,0,0,0]}},n)),r&&e.createElement(et,{variant:a},r),i&&e.createElement(D,{start:c,width:p},e.createElement(s,{sx:{mt:[4,"5px","20px","31px"],fontSize:[2,2,2,3]}},i)))},nt=["size","inverted","sx"],rt=n(function(t,n){var r,o=t.size,a=void 0===o?"sm":o,i=t.inverted,l=t.sx,c=T(t,nt),s=M(((r={color:i?"secondary":"primary",borderColor:"secondary",borderStyle:"solid",borderWidth:"0px",borderBottomWidth:"1px",borderRadius:"0px",transition:"border 0.15s"}).borderBottomWidth="1px",r.width="calc(min(15ch, 100%))",r.p=[0],r.py=["2px"],r["input::-webkit-outer-spin-button"]={WebkitAppearance:"none",margin:0},r["input::-webkit-inner-spin-button"]={WebkitAppearance:"none",margin:0},r[":focus"]={borderColor:"primary"},r[":focus-visible"]={outline:"none !important",background:"none !important"},r),Z(a),l);return e.createElement(E,M({},c,{ref:n,sx:s}))}),ot=function(t){var n=t.members,r=t.color,o=t.inverted,a=t.size,i=void 0===a?"xs":a,l=t.rowGap,c=t.columnGap,s=t.direction;return e.createElement(u,{sx:M({flexDirection:"horizontal"===(void 0===s?"horizontal":s)?"row":"column",rowGap:void 0===l?[2,2,2,3]:l,columnGap:void 0===c?[3,3,3,4]:c,flexWrap:"wrap"},t.sx)},n.map(function(t,n){return e.createElement(Q,{key:n,href:t.href,label:t.label,size:i,sx:{color:r},inverted:o,suffix:e.createElement(S,null)},t.label)}))},at=["children","size","sx","sxSelect"],it=function(t){var n,r,a,i,l,c,m,p=t.children,d=t.size,u=void 0===d?"sm":d,x=t.sx,h=t.sxSelect,f=T(t,at),g=x&&x.color?x.color:"primary",y=Z(u),E=o(null),b=f.onChange,v=(r=function(e){return"onChange"!==e},function(e){var t={};for(var n in e)r(n||"")&&(t[n]=e[n]);return t})(f);if(!["xs","sm","md"].includes(u))throw new Error("Size must be xs, sm, or md");return"xs"===u&&(i=[14,14,14,16],l=[14,14,14,14],m=["1px"],c=["-14px","-14px","-14px","-16px"]),"sm"===u&&(i=[15,15,15,20],l=[15,15,15,20],m=["1px"],c=["-16px","-16px","-16px","-20px"]),"md"===u&&(i=[20,20,20,20],l=[20,20,20,20],m=["2px"],c=["-20px","-20px","-20px","-20px"]),a=l.map(function(e){return e+12}),e.createElement(s,{sx:M({display:"inline-block"},x)},e.createElement(s,M({as:"select",ref:E,onChange:function(e){E.current.blur(),b&&b(e)},sx:M({},y,(n={lineHeight:"normal",cursor:"pointer",WebkitAppearance:"none",MozAppearance:"none",pb:["5px"],bg:"background",pr:a,border:"none",borderBottomStyle:"solid",borderBottomWidth:"1px",borderBottomColor:"primary",borderRadius:"0px",color:"text",width:"fit-content"},n.color=g,n.userSelect="none",n["@media (hover: none) and (pointer: coarse)"]={"&:focus-visible":{outline:"none !important",background:"transparent !important"}},n),h)},v),p),e.createElement(k,{sx:{width:l,height:i,position:"relative",ml:c,top:m,fill:"secondary",transform:"rotate(135deg)",pointerEvents:"none"}}))},lt=["sx"],ct=n(function(t,n){var r=t.sx,o=T(t,lt),a=r&&r.color?r.color:"primary",i=x().theme.rawColors;return e.createElement(b,M({ref:n,sx:M({"&::-webkit-slider-thumb":{height:[22,18,16],width:[22,18,16],boxShadow:"0 0 0 0px "+i.secondary,transition:"box-shadow .15s ease"},"&::-moz-range-thumb":{height:[22,18,16],width:[22,18,16],boxShadow:"0 0 0 0px "+i.secondary,transition:"box-shadow .15s ease"},":focus-visible":{outline:"none !important",background:i.secondary+" !important"},":focus":{color:a,"&::-webkit-slider-thumb":{boxShadow:"0 0 0 4px "+i.secondary},"&::-moz-range-thumb":{boxShadow:"0 0 0 4px "+i.secondary}},color:a},r)},o))}),st={reset:{verticalAlign:"baseline",border:0,outline:0,margin:0,padding:0},row:{borderStyle:"solid",borderWidth:"0px",borderTopWidth:"1px",borderColor:"muted",pt:[3,3,3,"20px"],pb:[3,3,3,"20px"],mb:["2px"]},header:{display:"block",textTransform:"uppercase",letterSpacing:"smallcaps",fontFamily:"heading",fontSize:[2,2,2,3]},index:{display:"block",textTransform:"uppercase",letterSpacing:"smallcaps",fontFamily:"heading",fontSize:[2,2,2,3]},entry:{display:"block",fontSize:[2,2,2,3],fontFamily:"faux",letterSpacing:"faux",mb:["1px"],mt:[2,0,0,0]}},mt=function(t){var n=t.data,r=t.sx,o=t.color,a=t.header,i=t.columns,l=t.start,c=t.width,m=t.index,p=void 0===m||m,d=t.borderBottom,u=void 0===d||d,x=t.borderTop,h=void 0===x||x;if(!l||!i||!c)throw new Error("Must provide columns, start, and width");return e.createElement(s,{as:"table",sx:M({display:"block"},r)},e.createElement(s,{as:"tbody",sx:{display:"block"}},a&&e.createElement(O,{as:"tr",sx:M({},st.reset,st.header,st.row,{color:o,borderTopWidth:h?"1px":"0px"})},e.createElement(D,{as:"td",start:[1],width:i,sx:st.index},a)),n.map(function(t,r){return e.createElement(O,{as:"tr",columns:i,key:r,sx:M({},st.reset,st.row,{pb:u&&r===n.length-1?["18px","18px","18px","22px"]:[3,3,3,"20px"],borderBottomWidth:u&&r===n.length-1?"1px":"0px",borderTopWidth:h||0!==r||a?"1px":"0px"})},t.map(function(t,n){return e.createElement(D,{as:"td",key:n,start:l[n],width:c[n],sx:M({},st.reset,0==n&&p?st.index:st.entry)},t)}))})))},pt=function(t){var n=t.as;return e.createElement(ne,{as:void 0===n?"figcaption":n,number:t.number,label:"table"},t.children)};pt.displayName="TableCaption";var dt=["value","onClick","disabled","sx"],ut=n(function(t,n){var r=t.value,o=t.onClick,a=t.disabled,i=t.sx,l=T(t,dt),c=i&&i.color?i.color:"primary";return e.createElement(s,M({ref:n,as:"button",onClick:o,role:"checkbox","aria-checked":r=!a&&r,"aria-label":"Toggle",sx:M({border:"none",background:"none",cursor:a?"default":"pointer",p:[0],m:[0],display:"inline-block"},i)},l),e.createElement(s,{sx:{width:"50px",height:"20px",borderRadius:"20px",backgroundColor:r?v(c,"primary"==c?.5:.45):"muted",position:"relative",transition:"0.15s",display:"inline-block"}},e.createElement(s,{sx:{width:"14px",height:"14px",borderRadius:"7px",position:"absolute",left:r?"32px":"4px",top:"3px",backgroundColor:r?c:"secondary",transition:"0.15s"}})))}),xt=function(t){var n=t.expanded,r=t.sx,o=t.children;return e.createElement(e.Fragment,null,e.createElement(s,{sx:{position:"fixed",top:"56px",bottom:"0px",left:"0px",width:"calc(100vw)",mt:["56px"],bg:"background",zIndex:1e3,transition:"opacity 0.15s",opacity:n?.9:0,pointerEvents:n?"all":"none"}}),e.createElement(s,{sx:M({position:"fixed",width:"calc(100vw)",top:"0px",mt:["56px"],pb:[6,7,7,8],pt:[5,6,7,8],bg:"background",zIndex:1100,borderStyle:"solid",borderColor:"muted",borderWidth:"0px",borderBottomWidth:"1px",transition:"transform 0.15s",ml:[-3,-4,-5,-6],pl:[3,4,5,6],pr:[3,4,5,6],transform:n?"translateY(0)":"translateY(-100%)"},r)},e.createElement(O,null,e.createElement(D,{start:[1,1,1,1],width:[6,8,10,10]},o))))},ht={month:"short",day:"numeric",year:"numeric"},ft=function(e,t,n){var r;if(!n)return null;var o="string"==typeof n?n:ht[t],a=e.toLocaleString("default",((r={})[t]=o,r));return"numeric"===o&&["day","month"].includes(t)?a.padStart(2,"0"):a},gt=function(e,t){var n;void 0===t&&(t=ht);var r=new Date(e.replace(/-/g,"/"));return[ft(r,"month",t.month),ft(r,"day",t.day),ft(r,"year",t.year)].filter(Boolean).join(null!=(n=t.separator)?n:" ")},yt=function(){var e=a(null),t=e[0],n=e[1];return i(function(){document&&Be(document)>0&&n("custom-scrollbar")},[]),t};export{I as Avatar,G as AvatarGroup,Y as Badge,U as Blockquote,Q as Button,te as Callout,ne as Caption,ce as Colorbar,pe as Colors,D as Column,Pe as Custom404,Se as Dimmer,Ge as Expander,Ie as FadeIn,_e as Figure,Ye as FigureCaption,Qe as Filter,ke as Footer,H as Group,Re as Guide,ve as Header,tt as Heading,rt as Input,je as Layout,K as Link,ot as LinkGroup,ue as Logo,he as Menu,de as Meta,we as Monogram,O as Row,Oe as Scrollbar,it as Select,Ve as Settings,ct as Slider,mt as Table,pt as TableCaption,Ue as Tag,ut as Toggle,xt as Tray,gt as formatDate,Be as getScrollbarWidth,yt as useScrollbarClass};
2
2
  //# sourceMappingURL=index.esm.js.map