From 15fdbd4e9e36c858709651e035fe1339dba3a1e9 Mon Sep 17 00:00:00 2001 From: "Thomas F. K. Jorna" Date: Sat, 16 Oct 2021 22:21:24 +0200 Subject: feat(labels): better ui for labels --- out/_next/static/chunks/pages/_app-26fcb6c181a21bbc205c.js | 1 - out/_next/static/chunks/pages/_app-8bd0d6de2a60ac35d501.js | 1 + out/_next/static/chunks/pages/index-4b29b25ad1173eae2757.js | 1 - out/_next/static/chunks/pages/index-c3655ec8db181f6ae1ab.js | 1 + 4 files changed, 2 insertions(+), 2 deletions(-) delete mode 100644 out/_next/static/chunks/pages/_app-26fcb6c181a21bbc205c.js create mode 100644 out/_next/static/chunks/pages/_app-8bd0d6de2a60ac35d501.js delete mode 100644 out/_next/static/chunks/pages/index-4b29b25ad1173eae2757.js create mode 100644 out/_next/static/chunks/pages/index-c3655ec8db181f6ae1ab.js (limited to 'out/_next/static/chunks/pages') diff --git a/out/_next/static/chunks/pages/_app-26fcb6c181a21bbc205c.js b/out/_next/static/chunks/pages/_app-26fcb6c181a21bbc205c.js deleted file mode 100644 index f994126..0000000 --- a/out/_next/static/chunks/pages/_app-26fcb6c181a21bbc205c.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{24738:function(e,r,t){"use strict";t.d(r,{SG:function(){return x},If:function(){return v}});var n=t(73808),a=t(84461),o=t(80658),i=t(67294),s="chakra-ui-light",l="chakra-ui-dark",c={classList:{add:o.ZT,remove:o.ZT}};function u(e){var r=a.jU?document.body:c;r.classList.add(e?l:s),r.classList.remove(e?s:l)}var d="(prefers-color-scheme: dark)";function f(e){var r;return(null!=(r=function(e){var r=null==window.matchMedia?void 0:window.matchMedia(e);if(r)return!!r.media===r.matches}(d))?r:"dark"===e)?"dark":"light"}var b=()=>document.documentElement.style.getPropertyValue("--chakra-ui-color-mode"),g=e=>{a.jU&&document.documentElement.style.setProperty("--chakra-ui-color-mode",e)},p=()=>"undefined"!==typeof Storage,h="chakra-ui-color-mode",m={get(e){if(!p())return e;try{var r=localStorage.getItem(h);return null!=r?r:e}catch(t){return n.Ts&&console.log(t),e}},set(e){if(p())try{localStorage.setItem(h,e)}catch(r){n.Ts&&console.log(r)}},type:"localStorage"};var y=i.createContext({});n.Ts&&(y.displayName="ColorModeContext");var v=()=>{var e=i.useContext(y);if(void 0===e)throw new Error("useColorMode must be used within a ColorModeProvider");return e};function x(e){var{value:r,children:t,options:{useSystemColorMode:n,initialColorMode:s},colorModeManager:l=m}=e,[c,p]=i.useState("cookie"===l.type?l.get(s):s);i.useEffect((()=>{if(a.jU&&"localStorage"===l.type){var e=n?f(s):b()||l.get();e&&p(e)}}),[l,n,s]),i.useEffect((()=>{var e="dark"===c;u(e),g(e?"dark":"light")}),[c]);var h=i.useCallback((e=>{l.set(e),p(e)}),[l]),v=i.useCallback((()=>{h("light"===c?"dark":"light")}),[c,h]);i.useEffect((()=>{var e;return n&&(e=function(e){if(!("matchMedia"in window))return o.ZT;var r=window.matchMedia(d),t=()=>{e(r.matches?"dark":"light")};return t(),r.addListener(t),()=>{r.removeListener(t)}}(h)),()=>{e&&n&&e()}}),[h,n]);var x=i.useMemo((()=>({colorMode:null!=r?r:c,toggleColorMode:r?o.ZT:v,setColorMode:r?o.ZT:h})),[c,h,v,r]);return i.createElement(y.Provider,{value:x},t)}n.Ts&&(x.displayName="ColorModeProvider");n.Ts;n.Ts},94577:function(e,r,t){"use strict";t.d(r,{vc:function(){return i},Me:function(){return s},ZS:function(){return l}});var n=t(67294),a={prefix:Math.round(1e10*Math.random()),current:0},o=n.createContext(a),i=n.memo((e=>{var{children:r}=e,t=n.useContext(o),i=t===a,s=n.useMemo((()=>({prefix:i?0:++t.prefix,current:0})),[i,t]);return n.createElement(o.Provider,{value:s},r)}));function s(e,r){var t=n.useContext(o);return n.useMemo((()=>e||[r,t.prefix,++t.current].filter(Boolean).join("-")),[e,r])}function l(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),a=1;at.map((e=>e+"-"+o))),[o,t])}},34288:function(e,r,t){"use strict";t.d(r,{L:function(){return s},h:function(){return l}});var n=t(73808),a=t(28500),o=t(67294),[i,s]=(0,a.k)({strict:!1,name:"PortalManagerContext"});function l(e){var{children:r,zIndex:t}=e;return o.createElement(i,{value:{zIndex:t}},r)}n.Ts&&(l.displayName="PortalManager")},28500:function(e,r,t){"use strict";t.d(r,{k:function(){return a}});var n=t(67294);function a(e){void 0===e&&(e={});var{strict:r=!0,errorMessage:t="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:a}=e,o=n.createContext(void 0);return o.displayName=a,[o.Provider,function e(){var a=n.useContext(o);if(!a&&r){var i=new Error(t);throw i.name="ContextError",null==Error.captureStackTrace||Error.captureStackTrace(i,e),i}return a},o]}},13205:function(e,r,t){"use strict";t.d(r,{Oq:function(){return D},Cg:function(){return z},$_:function(){return R},cE:function(){return j},hX:function(){return O},GQ:function(){return T},eC:function(){return P},Mw:function(){return I},bK:function(){return M},pb:function(){return W},o_:function(){return $},FK:function(){return Z},v_:function(){return V},Dh:function(){return q},QX:function(){return G},vs:function(){return Y},eR:function(){return X},cp:function(){return U}});var n=t(73808);function a(e){var{scale:r,transform:t,compose:a}=e;return(e,o)=>{var i,s=((e,r)=>t=>{var a=String(r),o=e?e+"."+a:a;return(0,n.Kn)(t.__cssMap)&&o in t.__cssMap?t.__cssMap[o].varRef:r})(r,e)(o),l=null!=(i=null==t?void 0:t(s,o))?i:s;return a&&(l=a(l,o)),l}}function o(e,r){return t=>{var n={property:t,scale:e};return n.transform=a({scale:e,transform:r}),n}}var i=e=>{var{rtl:r,ltr:t}=e;return e=>"rtl"===e.direction?r:t};var s=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"];var l={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")},c={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"};var u={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},d="& > :not(style) ~ :not(style)",f={[d]:{marginInlineStart:"calc(var(--chakra-space-x) * calc(1 - var(--chakra-space-x-reverse)))",marginInlineEnd:"calc(var(--chakra-space-x) * var(--chakra-space-x-reverse))"}},b={[d]:{marginTop:"calc(var(--chakra-space-y) * calc(1 - var(--chakra-space-y-reverse)))",marginBottom:"calc(var(--chakra-space-y) * var(--chakra-space-y-reverse))"}};function g(e,r){g=function(e,r){return new o(e,void 0,r)};var t=h(RegExp),n=RegExp.prototype,a=new WeakMap;function o(e,r,n){var o=t.call(this,e,r);return a.set(o,n||a.get(e)),o}function i(e,r){var t=a.get(r);return Object.keys(t).reduce((function(r,n){return r[n]=e[t[n]],r}),Object.create(null))}return p(o,t),o.prototype.exec=function(e){var r=n.exec.call(this,e);return r&&(r.groups=i(r,this)),r},o.prototype[Symbol.replace]=function(e,r){if("string"===typeof r){var t=a.get(this);return n[Symbol.replace].call(this,e,r.replace(/\$<([^>]+)>/g,(function(e,r){return"$"+t[r]})))}if("function"===typeof r){var o=this;return n[Symbol.replace].call(this,e,(function(){var e=[];return e.push.apply(e,arguments),"object"!==typeof e[e.length-1]&&e.push(i(e,o)),r.apply(this,e)}))}return n[Symbol.replace].call(this,e,r)},g.apply(this,arguments)}function p(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&v(e,r)}function h(e){var r="function"===typeof Map?new Map:void 0;return(h=function(e){if(null===e||(t=e,-1===Function.toString.call(t).indexOf("[native code]")))return e;var t;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof r){if(r.has(e))return r.get(e);r.set(e,n)}function n(){return m(e,arguments,x(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),v(n,e)})(e)}function m(e,r,t){return(m=y()?Reflect.construct:function(e,r,t){var n=[null];n.push.apply(n,r);var a=new(Function.bind.apply(e,n));return t&&v(a,t.prototype),a}).apply(null,arguments)}function y(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function v(e,r){return(v=Object.setPrototypeOf||function(e,r){return e.__proto__=r,e})(e,r)}function x(e){return(x=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var k={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},w=new Set(Object.values(k)),S=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),C=e=>e.trim();var F=e=>r=>e+"("+r+")",A={filter:e=>"auto"!==e?e:l,backdropFilter:e=>"auto"!==e?e:c,ring:e=>function(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}(A.px(e)),bgClip:e=>"text"===e?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e},transform:e=>"auto"===e?["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...s].join(" "):"auto-gpu"===e?["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...s].join(" "):e,px(e){if(null==e)return e;var{unitless:r}=(e=>{var r=parseFloat(e.toString()),t=e.toString().replace(String(r),"");return{unitless:!t,value:r,unit:t}})(e);return r||(0,n.hj)(e)?e+"px":e},fraction:e=>!(0,n.hj)(e)||e>1?e:100*e+"%",float:(e,r)=>"rtl"===r.direction?{left:"right",right:"left"}[e]:e,degree(e){if((0,n.FS)(e)||null==e)return e;var r=(0,n.HD)(e)&&!e.endsWith("deg");return(0,n.hj)(e)||r?e+"deg":e},gradient:(e,r)=>function(e,r){var t,n;if(null==e||S.has(e))return e;var a=g(/(^[\x2DA-Za-z]+)\(((.*))\)/g,{type:1,values:2}),{type:o,values:i}=null!=(t=null==(n=a.exec(e))?void 0:n.groups)?t:{};if(!o||!i)return e;var s=o.includes("-gradient")?o:o+"-gradient",[l,...c]=i.split(",").map(C).filter(Boolean);if(0===(null==c?void 0:c.length))return e;var u=l in k?k[l]:l;return c.unshift(u),s+"("+c.map((e=>{if(w.has(e))return e;var[t,n]=e.split(" "),a="colors."+t,o=a in r.__cssMap?r.__cssMap[a].varRef:t;return n?[o,n].join(" "):o})).join(", ")+")"}(e,null!=r?r:{}),blur:F("blur"),opacity:F("opacity"),brightness:F("brightness"),contrast:F("contrast"),dropShadow:F("drop-shadow"),grayscale:F("grayscale"),hueRotate:F("hue-rotate"),invert:F("invert"),saturate:F("saturate"),sepia:F("sepia"),bgImage:e=>null==e||E(e)||S.has(e)?e:"url("+e+")",outline(e){var r="0"===String(e)||"none"===String(e);return null!==e&&r?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){var r,{space:t,divide:n}=null!=(r=u[e])?r:{},a={flexDirection:e};return t&&(a[t]=1),n&&(a[n]=1),a}},E=e=>(0,n.HD)(e)&&e.includes("(")&&e.includes(")");function _(){return(_=Object.assign||function(e){for(var r=1;r({property:e,transform:A.degree}),prop:(e,r,t)=>_({property:e,scale:r},r&&{transform:a({scale:r,transform:t})}),propT:(e,r)=>({property:e,transform:r}),sizes:o("sizes",A.px),sizesT:o("sizes",A.fraction),shadows:o("shadows"),logical:function(e){var{property:r,scale:t,transform:n}=e;return{scale:t,property:i(r),transform:t?a({scale:t,compose:n}):n}},blur:o("blur",A.blur)},D={background:B.colors("background"),backgroundColor:B.colors("backgroundColor"),backgroundImage:B.propT("backgroundImage",A.bgImage),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:A.bgClip},bgSize:B.prop("backgroundSize"),bgPosition:B.prop("backgroundPosition"),bg:B.colors("background"),bgColor:B.colors("backgroundColor"),bgPos:B.prop("backgroundPosition"),bgRepeat:B.prop("backgroundRepeat"),bgAttachment:B.prop("backgroundAttachment"),bgGradient:B.propT("backgroundImage",A.gradient),bgClip:{transform:A.bgClip}};Object.assign(D,{bgImage:D.backgroundImage,bgImg:D.backgroundImage});var z={border:B.borders("border"),borderWidth:B.borderWidths("borderWidth"),borderStyle:B.borderStyles("borderStyle"),borderColor:B.colors("borderColor"),borderRadius:B.radii("borderRadius"),borderTop:B.borders("borderTop"),borderBlockStart:B.borders("borderBlockStart"),borderTopLeftRadius:B.radii("borderTopLeftRadius"),borderStartStartRadius:B.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:B.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:B.radii("borderTopRightRadius"),borderStartEndRadius:B.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:B.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:B.borders("borderRight"),borderInlineEnd:B.borders("borderInlineEnd"),borderBottom:B.borders("borderBottom"),borderBlockEnd:B.borders("borderBlockEnd"),borderBottomLeftRadius:B.radii("borderBottomLeftRadius"),borderBottomRightRadius:B.radii("borderBottomRightRadius"),borderLeft:B.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:B.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:B.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:B.borders(["borderLeft","borderRight"]),borderInline:B.borders("borderInline"),borderY:B.borders(["borderTop","borderBottom"]),borderBlock:B.borders("borderBlock"),borderTopWidth:B.borderWidths("borderTopWidth"),borderBlockStartWidth:B.borderWidths("borderBlockStartWidth"),borderTopColor:B.colors("borderTopColor"),borderBlockStartColor:B.colors("borderBlockStartColor"),borderTopStyle:B.borderStyles("borderTopStyle"),borderBlockStartStyle:B.borderStyles("borderBlockStartStyle"),borderBottomWidth:B.borderWidths("borderBottomWidth"),borderBlockEndWidth:B.borderWidths("borderBlockEndWidth"),borderBottomColor:B.colors("borderBottomColor"),borderBlockEndColor:B.colors("borderBlockEndColor"),borderBottomStyle:B.borderStyles("borderBottomStyle"),borderBlockEndStyle:B.borderStyles("borderBlockEndStyle"),borderLeftWidth:B.borderWidths("borderLeftWidth"),borderInlineStartWidth:B.borderWidths("borderInlineStartWidth"),borderLeftColor:B.colors("borderLeftColor"),borderInlineStartColor:B.colors("borderInlineStartColor"),borderLeftStyle:B.borderStyles("borderLeftStyle"),borderInlineStartStyle:B.borderStyles("borderInlineStartStyle"),borderRightWidth:B.borderWidths("borderRightWidth"),borderInlineEndWidth:B.borderWidths("borderInlineEndWidth"),borderRightColor:B.colors("borderRightColor"),borderInlineEndColor:B.colors("borderInlineEndColor"),borderRightStyle:B.borderStyles("borderRightStyle"),borderInlineEndStyle:B.borderStyles("borderInlineEndStyle"),borderTopRadius:B.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:B.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:B.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:B.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(z,{rounded:z.borderRadius,roundedTop:z.borderTopRadius,roundedTopLeft:z.borderTopLeftRadius,roundedTopRight:z.borderTopRightRadius,roundedTopStart:z.borderStartStartRadius,roundedTopEnd:z.borderStartEndRadius,roundedBottom:z.borderBottomRadius,roundedBottomLeft:z.borderBottomLeftRadius,roundedBottomRight:z.borderBottomRightRadius,roundedBottomStart:z.borderEndStartRadius,roundedBottomEnd:z.borderEndEndRadius,roundedLeft:z.borderLeftRadius,roundedRight:z.borderRightRadius,roundedStart:z.borderInlineStartRadius,roundedEnd:z.borderInlineEndRadius,borderStart:z.borderInlineStart,borderEnd:z.borderInlineEnd,borderTopStartRadius:z.borderStartStartRadius,borderTopEndRadius:z.borderStartEndRadius,borderBottomStartRadius:z.borderEndStartRadius,borderBottomEndRadius:z.borderEndEndRadius,borderStartRadius:z.borderInlineStartRadius,borderEndRadius:z.borderInlineEndRadius,borderStartWidth:z.borderInlineStartWidth,borderEndWidth:z.borderInlineEndWidth,borderStartColor:z.borderInlineStartColor,borderEndColor:z.borderInlineEndColor,borderStartStyle:z.borderInlineStartStyle,borderEndStyle:z.borderInlineEndStyle});var R={color:B.colors("color"),textColor:B.colors("color"),fill:B.colors("fill"),stroke:B.colors("stroke")},j={boxShadow:B.shadows("boxShadow"),mixBlendMode:!0,blendMode:B.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:B.prop("backgroundBlendMode"),opacity:!0};Object.assign(j,{shadow:j.boxShadow});var O={filter:{transform:A.filter},blur:B.blur("--chakra-blur"),brightness:B.propT("--chakra-brightness",A.brightness),contrast:B.propT("--chakra-contrast",A.contrast),hueRotate:B.degreeT("--chakra-hue-rotate"),invert:B.propT("--chakra-invert",A.invert),saturate:B.propT("--chakra-saturate",A.saturate),dropShadow:B.propT("--chakra-drop-shadow",A.dropShadow),backdropFilter:{transform:A.backdropFilter},backdropBlur:B.blur("--chakra-backdrop-blur"),backdropBrightness:B.propT("--chakra-backdrop-brightness",A.brightness),backdropContrast:B.propT("--chakra-backdrop-contrast",A.contrast),backdropHueRotate:B.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:B.propT("--chakra-backdrop-invert",A.invert),backdropSaturate:B.propT("--chakra-backdrop-saturate",A.saturate)},T={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:A.flexDirection},experimental_spaceX:{static:f,transform:a({scale:"space",transform:e=>null!==e?{"--chakra-space-x":e}:null})},experimental_spaceY:{static:b,transform:a({scale:"space",transform:e=>null!=e?{"--chakra-space-y":e}:null})},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:B.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0};Object.assign(T,{flexDir:T.flexDirection});var P={gridGap:B.space("gridGap"),gridColumnGap:B.space("gridColumnGap"),gridRowGap:B.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},I={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:A.outline},outlineOffset:!0,outlineColor:B.colors("outlineColor")},M={width:B.sizesT("width"),inlineSize:B.sizesT("inlineSize"),height:B.sizes("height"),blockSize:B.sizes("blockSize"),boxSize:B.sizes(["width","height"]),minWidth:B.sizes("minWidth"),minInlineSize:B.sizes("minInlineSize"),minHeight:B.sizes("minHeight"),minBlockSize:B.sizes("minBlockSize"),maxWidth:B.sizes("maxWidth"),maxInlineSize:B.sizes("maxInlineSize"),maxHeight:B.sizes("maxHeight"),maxBlockSize:B.sizes("maxBlockSize"),d:B.prop("display"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:B.propT("float",A.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(M,{w:M.width,h:M.height,minW:M.minWidth,maxW:M.maxWidth,minH:M.minHeight,maxH:M.maxHeight,overscroll:M.overscrollBehavior,overscrollX:M.overscrollBehaviorX,overscrollY:M.overscrollBehaviorY});var W={listStyleType:!0,listStylePosition:!0,listStylePos:B.prop("listStylePosition"),listStyleImage:!0,listStyleImg:B.prop("listStyleImage")},J=t(4651),N={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},H={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},L=(e,r,t)=>{var n={},a=(0,J.Wf)(e,r,{});for(var o in a){o in t&&null!=t[o]||(n[o]=a[o])}return n},$={srOnly:{transform:e=>!0===e?N:"focusable"===e?H:{}},layerStyle:{processResult:!0,transform:(e,r,t)=>L(r,"layerStyles."+e,t)},textStyle:{processResult:!0,transform:(e,r,t)=>L(r,"textStyles."+e,t)},apply:{processResult:!0,transform:(e,r,t)=>L(r,e,t)}},Z={position:!0,pos:B.prop("position"),zIndex:B.prop("zIndex","zIndices"),inset:B.spaceT(["top","right","bottom","left"]),insetX:B.spaceT(["left","right"]),insetInline:B.spaceT("insetInline"),insetY:B.spaceT(["top","bottom"]),insetBlock:B.spaceT("insetBlock"),top:B.spaceT("top"),insetBlockStart:B.spaceT("insetBlockStart"),bottom:B.spaceT("bottom"),insetBlockEnd:B.spaceT("insetBlockEnd"),left:B.spaceT("left"),insetInlineStart:B.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:B.spaceT("right"),insetInlineEnd:B.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(Z,{insetStart:Z.insetInlineStart,insetEnd:Z.insetInlineEnd});var V={ring:{transform:A.ring},ringColor:B.colors("--chakra-ring-color"),ringOffset:B.prop("--chakra-ring-offset-width"),ringOffsetColor:B.colors("--chakra-ring-offset-color"),ringInset:B.prop("--chakra-ring-inset")},q={margin:B.spaceT("margin"),marginTop:B.spaceT("marginTop"),marginBlockStart:B.spaceT("marginBlockStart"),marginRight:B.spaceT("marginRight"),marginInlineEnd:B.spaceT("marginInlineEnd"),marginBottom:B.spaceT("marginBottom"),marginBlockEnd:B.spaceT("marginBlockEnd"),marginLeft:B.spaceT("marginLeft"),marginInlineStart:B.spaceT("marginInlineStart"),marginX:B.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:B.spaceT("marginInline"),marginY:B.spaceT(["marginTop","marginBottom"]),marginBlock:B.spaceT("marginBlock"),padding:B.space("padding"),paddingTop:B.space("paddingTop"),paddingBlockStart:B.space("paddingBlockStart"),paddingRight:B.space("paddingRight"),paddingBottom:B.space("paddingBottom"),paddingBlockEnd:B.space("paddingBlockEnd"),paddingLeft:B.space("paddingLeft"),paddingInlineStart:B.space("paddingInlineStart"),paddingInlineEnd:B.space("paddingInlineEnd"),paddingX:B.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:B.space("paddingInline"),paddingY:B.space(["paddingTop","paddingBottom"]),paddingBlock:B.space("paddingBlock")};Object.assign(q,{m:q.margin,mt:q.marginTop,mr:q.marginRight,me:q.marginInlineEnd,marginEnd:q.marginInlineEnd,mb:q.marginBottom,ml:q.marginLeft,ms:q.marginInlineStart,marginStart:q.marginInlineStart,mx:q.marginX,my:q.marginY,p:q.padding,pt:q.paddingTop,py:q.paddingY,px:q.paddingX,pb:q.paddingBottom,pl:q.paddingLeft,ps:q.paddingInlineStart,paddingStart:q.paddingInlineStart,pr:q.paddingRight,pe:q.paddingInlineEnd,paddingEnd:q.paddingInlineEnd});var G={textDecorationColor:B.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:B.shadows("textShadow")},Y={clipPath:!0,transform:B.propT("transform",A.transform),transformOrigin:!0,translateX:B.spaceT("--chakra-translate-x"),translateY:B.spaceT("--chakra-translate-y"),skewX:B.degreeT("--chakra-skew-x"),skewY:B.degreeT("--chakra-skew-y"),scaleX:B.prop("--chakra-scale-x"),scaleY:B.prop("--chakra-scale-y"),scale:B.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:B.degreeT("--chakra-rotate")},X={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:B.prop("transitionDuration","transition.duration"),transitionProperty:B.prop("transitionProperty","transition.property"),transitionTimingFunction:B.prop("transitionTimingFunction","transition.easing")},U={fontFamily:B.prop("fontFamily","fonts"),fontSize:B.prop("fontSize","fontSizes",A.px),fontWeight:B.prop("fontWeight","fontWeights"),lineHeight:B.prop("lineHeight","lineHeights"),letterSpacing:B.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"},isTruncated:{transform(e){if(!0===e)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}}}},55608:function(e,r,t){"use strict";t.d(r,{c0:function(){return F}});var n=t(73808);function a(e){return(0,n.Kn)(e)&&e.reference?e.reference:String(e)}var o=function(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n{var r=a(e);return null==r||Number.isNaN(parseFloat(r))?l(r,-1):String(r).startsWith("-")?String(r).slice(1):"-"+r},d=Object.assign((e=>({add:function(){for(var r=arguments.length,t=new Array(r),n=0;nd(u(e)),toString:()=>e.toString()})),{add:i,subtract:s,multiply:l,divide:c,negate:u}),f=t(88456);function b(e){var r=function(e,r){return void 0===r&&(r="-"),e.replace(/\s+/g,r)}(e.toString());return r.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?r.replace(".","\\."):e}function g(e,r){return"var("+b(e)+(r?", "+r:"")+")"}function p(e,r){return void 0===r&&(r=""),"--"+function(e,r){return void 0===r&&(r=""),[r,b(e)].filter(Boolean).join("-")}(e,r)}function h(e,r,t){var n=p(e,t);return{variable:n,reference:g(n,r)}}function m(){return(m=Object.assign||function(e){for(var r=1;re(r,[...a,String(t)]))):(0,n.Kn)(t)?Object.fromEntries(Object.entries(t).map((r=>{var[t,n]=r;return[t,e(n,[...a,t])]}))):r(t,a)})(e)}(e,((e,n)=>{var a,[o]=n,i=null!=(a=v[o])?a:v.defaultHandler,{cssVars:s,cssMap:l}=i(n,e,r);Object.assign(t.cssVars,s),Object.assign(t.cssMap,l)})),t}var v={space:(e,r,t)=>{var n=v.defaultHandler(e,r,t),[a,...o]=e,i=a+".-"+o.join("."),s=e.join("-"),{variable:l,reference:c}=h(s,void 0,t.cssVarPrefix),u=d.negate(r),f=d.negate(c);return{cssVars:n.cssVars,cssMap:m({},n.cssMap,{[i]:{value:""+u,var:""+l,varRef:f}})}},defaultHandler:(e,r,t)=>{var n=e.join("."),a=e.join("-"),{variable:o,reference:i}=h(a,void 0,t.cssVarPrefix);return{cssVars:{[o]:r},cssMap:{[n]:{value:r,var:o,varRef:i}}}}},x=t(4651);var k=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur"];function w(e){var r=k;return(0,x.ei)(e,r)}function S(e){return function(e,r){if(null==e)return{};var t,n,a={},o=Object.keys(e);for(n=0;n=0||(a[t]=e[t]);return a}(e,["__cssMap","__cssVars","__breakpoints"])}function C(){return(C=Object.assign||function(e){for(var r=1;re.startsWith("--")&&(0,n.HD)(r)&&!(0,n.FS)(r),u=(e,r)=>{var t,n;if(null==r)return r;var a=r=>{var t,n;return null==(t=e.__cssMap)||null==(n=t[r])?void 0:n.varRef},o=e=>{var r;return null!=(r=a(e))?r:e},i=r.split(",").map((e=>e.trim())),[s,l]=i;return r=null!=(t=null!=(n=a(s))?n:o(l))?t:o(r)};function d(e){var{configs:r={},pseudos:t={},theme:o}=e;return function e(s,l){void 0===l&&(l=!1);var d=(0,a.Pu)(s,o),f=(e=>r=>{if(!r.__breakpoints)return e;var{isResponsive:t,toArrayValue:o,media:i}=r.__breakpoints,s={};for(var l in e){var c=(0,a.Pu)(e[l],r);if(null!=c)if(c=(0,n.Kn)(c)&&t(c)?o(c):c,Array.isArray(c))for(var u=c.slice(0,i.length).length,d=0;dr=>d({theme:r,pseudos:s.v,configs:l.Ul})(e)},9421:function(e,r,t){"use strict";t.d(r,{iv:function(){return n.i},isStyleProp:function(){return i.ZR},layoutPropNames:function(){return i.oE},propNames:function(){return i.cC},toCSSVar:function(){return s.c0}});t(13205);var n=t(33565),a=t(41664);t.o(a,"isStyleProp")&&t.d(r,{isStyleProp:function(){return a.isStyleProp}}),t.o(a,"layoutPropNames")&&t.d(r,{layoutPropNames:function(){return a.layoutPropNames}}),t.o(a,"propNames")&&t.d(r,{propNames:function(){return a.propNames}}),t.o(a,"toCSSVar")&&t.d(r,{toCSSVar:function(){return a.toCSSVar}}),t.o(a,"useTheme")&&t.d(r,{useTheme:function(){return a.useTheme}});var o=t(87759);t.o(o,"isStyleProp")&&t.d(r,{isStyleProp:function(){return o.isStyleProp}}),t.o(o,"layoutPropNames")&&t.d(r,{layoutPropNames:function(){return o.layoutPropNames}}),t.o(o,"propNames")&&t.d(r,{propNames:function(){return o.propNames}}),t.o(o,"toCSSVar")&&t.d(r,{toCSSVar:function(){return o.toCSSVar}}),t.o(o,"useTheme")&&t.d(r,{useTheme:function(){return o.useTheme}});var i=t(25503),s=t(55608)},28680:function(e,r,t){"use strict";t.d(r,{v:function(){return d},_:function(){return f}});var n=t(4651),a=e=>e+":focus &, "+e+"[data-focus] &",o=e=>e+":active &, "+e+"[data-active] &",i=e=>e+":disabled &, "+e+"[data-disabled] &",s=e=>e+":invalid &, "+e+"[data-invalid] &",l=e=>e+":checked &, "+e+"[data-checked] &",c=e=>u(e,"[role=group]","[data-group]",".group"),u=function(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;ne+":hover &, "+e+"[data-hover] &")),_groupFocus:c(a),_groupActive:c(o),_groupDisabled:c(i),_groupInvalid:c(s),_groupChecked:c(l),_placeholder:"&::placeholder",_fullScreen:"&:fullscreen",_selection:"&::selection",_rtl:"[dir=rtl] &",_mediaDark:"@media (prefers-color-scheme: dark)",_dark:".chakra-ui-dark &, [data-theme=dark] &, &[data-theme=dark]",_light:".chakra-ui-light &, [data-theme=light] &, &[data-theme=light]"},f=(0,n.Yd)(d)},25503:function(e,r,t){"use strict";t.d(r,{Ul:function(){return c},oE:function(){return d},cC:function(){return f},ZR:function(){return g}});var n=t(38554),a=t.n(n),o=t(4651),i=t(13205),s=t(28680);function l(){return(l=Object.assign||function(e){for(var r=1;re in b},41664:function(){},87759:function(){},29676:function(e,r,t){"use strict";t.d(r,{f6:function(){return d},Fg:function(){return f},Fo:function(){return b},yK:function(){return g},ZL:function(){return p}});var n=t(24738),a=t(9421),o=t(4651),i=t(80658),s=t(28500),l=t(30495),c=t(70917),u=t(67294),d=e=>{var{cssVarsRoot:r=":host, :root",theme:t,children:n}=e,o=u.useMemo((()=>(0,a.toCSSVar)(t)),[t]);return u.createElement(l.a,{theme:o},u.createElement(c.Global,{styles:e=>({[r]:e.__cssVars})}),n)};function f(){var e=u.useContext(l.T);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `` or ``");return e}var[b,g]=(0,s.k)({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "}),p=()=>{var{colorMode:e}=(0,n.If)();return u.createElement(c.Global,{styles:r=>{var t=(0,o.Wf)(r,"styles.global"),n=(0,i.Pu)(t,{theme:r,colorMode:e});if(n)return(0,a.iv)(n)(r)}})}},63108:function(e,r,t){"use strict";function n(e,r){return t=>"dark"===t.colorMode?r:e}function a(e){var{orientation:r,vertical:t,horizontal:n}=e;return r?"vertical"===r?t:n:{}}t.d(r,{xJ:function(){return n},fL:function(){return a}})},83035:function(e,r,t){"use strict";t.d(r,{Z:function(){return Dr}});var n={parts:["container","button","panel","icon"],baseStyle:{container:{borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},button:{transitionProperty:"common",transitionDuration:"normal",fontSize:"1rem",_focus:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:4,py:2},panel:{pt:2,px:4,pb:5},icon:{fontSize:"1.25em"}}},a=t(17621),o=t.n(a),i=t(4651),s=t(73808),l=(e,r,t)=>{var n=(0,i.Wf)(e,"colors."+r,r);return o()(n).isValid()?n:t},c=e=>r=>{var t=l(r,e);return o()(t).isDark()?"dark":"light"},u=(e,r)=>t=>{var n=l(t,e);return o()(n).setAlpha(r).toRgbString()};function d(e,r){return void 0===e&&(e="1rem"),void 0===r&&(r="rgba(255, 255, 255, 0.15)"),{backgroundImage:"linear-gradient(\n 45deg,\n "+r+" 25%,\n transparent 25%,\n transparent 50%,\n "+r+" 50%,\n "+r+" 75%,\n transparent 75%,\n transparent\n )",backgroundSize:e+" "+e}}function f(e){var r=o().random().toHexString();return!e||(0,s.Qr)(e)?r:e.string&&e.colors?function(e,r){var t=0;if(0===e.length)return r[0];for(var n=0;n>8*a&255).toString(16)).substr(-2)}return n}(e.string):e.colors&&!e.string?function(e){return e[Math.floor(Math.random()*e.length)]}(e.colors):r}var b=t(63108);function g(e){var{theme:r,colorScheme:t}=e,n=l(r,t+".100",t),a=u(t+".200",.16)(r);return(0,b.xJ)(n,a)(e)}var p={parts:["container","title","description","icon"],baseStyle:{container:{px:4,py:3},title:{fontWeight:"bold",lineHeight:6,marginEnd:2},description:{lineHeight:6},icon:{flexShrink:0,marginEnd:3,w:5,h:6}},variants:{subtle:function(e){var{colorScheme:r}=e;return{container:{bg:g(e)},icon:{color:(0,b.xJ)(r+".500",r+".200")(e)}}},"left-accent":function(e){var{colorScheme:r}=e;return{container:{paddingStart:3,borderStartWidth:"4px",borderStartColor:(0,b.xJ)(r+".500",r+".200")(e),bg:g(e)},icon:{color:(0,b.xJ)(r+".500",r+".200")(e)}}},"top-accent":function(e){var{colorScheme:r}=e;return{container:{pt:2,borderTopWidth:"4px",borderTopColor:(0,b.xJ)(r+".500",r+".200")(e),bg:g(e)},icon:{color:(0,b.xJ)(r+".500",r+".200")(e)}}},solid:function(e){var{colorScheme:r}=e;return{container:{bg:(0,b.xJ)(r+".500",r+".200")(e),color:(0,b.xJ)("white","gray.900")(e)}}}},defaultProps:{variant:"subtle",colorScheme:"blue"}},h=t(54681);function m(e){return{transform:"translate(25%, 25%)",borderRadius:"full",border:"0.2em solid",borderColor:(0,b.xJ)("white","gray.800")(e)}}function y(e){return{bg:(0,b.xJ)("gray.200","whiteAlpha.400")(e)}}function v(e){var{name:r,theme:t}=e,n=r?f({string:r}):"gray.400",a=(e=>r=>"dark"===c(e)(r))(n)(t),o="white";return a||(o="gray.800"),{bg:n,color:o,borderColor:(0,b.xJ)("white","gray.800")(e),verticalAlign:"top"}}function x(e){var r=h.Z[e];return{container:{width:e,height:e,fontSize:"calc("+(null!=r?r:e)+" / 2.5)"},excessLabel:{width:e,height:e},label:{fontSize:"calc("+(null!=r?r:e)+" / 2.5)",lineHeight:"100%"!==e?null!=r?r:e:void 0}}}var k={parts:["container","excessLabel","badge","label"],baseStyle:e=>({badge:m(e),excessLabel:y(e),container:v(e)}),sizes:{"2xs":x("4"),xs:x("6"),sm:x("8"),md:x("12"),lg:x("16"),xl:x("24"),"2xl":x("32"),full:x("100%")},defaultProps:{size:"md"}};var w={baseStyle:{px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold"},variants:{solid:function(e){var{colorScheme:r,theme:t}=e,n=u(r+".500",.6)(t);return{bg:(0,b.xJ)(r+".500",n)(e),color:(0,b.xJ)("white","whiteAlpha.800")(e)}},subtle:function(e){var{colorScheme:r,theme:t}=e,n=u(r+".200",.16)(t);return{bg:(0,b.xJ)(r+".100",n)(e),color:(0,b.xJ)(r+".800",r+".200")(e)}},outline:function(e){var{colorScheme:r,theme:t}=e,n=u(r+".200",.8)(t),a=l(t,r+".500"),o=(0,b.xJ)(a,n)(e);return{color:o,boxShadow:"inset 0 0 0px 1px "+o}}},defaultProps:{variant:"subtle",colorScheme:"gray"}},S={parts:["container","item","link","separator"],baseStyle:{link:{transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focus:{boxShadow:"outline"}}}};function C(){return(C=Object.assign||function(e){for(var r=1;r({icon:D,control:_(e),label:B}),sizes:{sm:{control:{h:3,w:3},label:{fontSize:"sm"},icon:{fontSize:"0.45rem"}},md:{control:{w:4,h:4},label:{fontSize:"md"},icon:{fontSize:"0.625rem"}},lg:{control:{w:5,h:5},label:{fontSize:"lg"},icon:{fontSize:"0.625rem"}}},defaultProps:{size:"md",colorScheme:"blue"}};var R={baseStyle:function(e){return{borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{bg:(0,b.xJ)("blackAlpha.100","whiteAlpha.100")(e)},_active:{bg:(0,b.xJ)("blackAlpha.200","whiteAlpha.200")(e)},_focus:{boxShadow:"outline"}}},sizes:{lg:{w:"40px",h:"40px",fontSize:"16px"},md:{w:"32px",h:"32px",fontSize:"12px"},sm:{w:"24px",h:"24px",fontSize:"10px"}},defaultProps:{size:"md"}},{variants:j,defaultProps:O}=w,T={baseStyle:{fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm"},variants:j,defaultProps:O},P={baseStyle:{w:"100%",mx:"auto",maxW:"60ch",px:"1rem"}},I={baseStyle:{opacity:.6,borderColor:"inherit"},variants:{solid:{borderStyle:"solid"},dashed:{borderStyle:"dashed"}},defaultProps:{variant:"solid"}},M={bg:"blackAlpha.600",zIndex:"modal"};function W(e){var{isCentered:r,scrollBehavior:t}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:r?"center":"flex-start",overflow:"inside"===t?"hidden":"auto"}}function J(e){var{scrollBehavior:r}=e;return{borderRadius:"md",bg:(0,b.xJ)("white","gray.700")(e),color:"inherit",my:"3.75rem",zIndex:"modal",maxH:"inside"===r?"calc(100% - 7.5rem)":void 0,boxShadow:(0,b.xJ)("lg","dark-lg")(e)}}var N={px:6,py:4,fontSize:"xl",fontWeight:"semibold"},H={position:"absolute",top:2,insetEnd:3};function L(e){var{scrollBehavior:r}=e;return{px:6,py:2,flex:1,overflow:"inside"===r?"auto":void 0}}var $={px:6,py:4};function Z(e){return"full"===e?{dialog:{maxW:"100vw",minH:"100vh"}}:{dialog:{maxW:e}}}var V={parts:["overlay","dialogContainer","dialog","header","closeButton","body","footer"],baseStyle:e=>({overlay:M,dialogContainer:W(e),dialog:J(e),header:N,closeButton:H,body:L(e),footer:$}),sizes:{xs:Z("xs"),sm:Z("sm"),md:Z("md"),lg:Z("lg"),xl:Z("xl"),"2xl":Z("2xl"),"3xl":Z("3xl"),"4xl":Z("4xl"),"5xl":Z("5xl"),"6xl":Z("6xl"),full:Z("full")},defaultProps:{size:"md"}};function q(){return(q=Object.assign||function(e){for(var r=1;r({overlay:Y,dialogContainer:X,dialog:U(e),header:K,closeButton:Q,body:ee,footer:re}),sizes:{xs:G("xs"),sm:G("md"),md:G("lg"),lg:G("2xl"),xl:G("4xl"),full:G("full")},defaultProps:{size:"xs"}},ne={parts:["preview","input"],baseStyle:{preview:{borderRadius:"md",py:"3px",transitionProperty:"common",transitionDuration:"normal"},input:{borderRadius:"md",py:"3px",transitionProperty:"common",transitionDuration:"normal",width:"full",_focus:{boxShadow:"outline"},_placeholder:{opacity:.6}}}};function ae(e){return{marginStart:1,color:(0,b.xJ)("red.500","red.300")(e)}}function oe(e){return{mt:2,color:(0,b.xJ)("gray.500","whiteAlpha.600")(e),lineHeight:"normal",fontSize:"sm"}}var ie={parts:["requiredIndicator","helperText"],baseStyle:e=>({requiredIndicator:ae(e),helperText:oe(e)})},se={baseStyle:{fontSize:"md",marginEnd:3,mb:2,fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}}},le={baseStyle:{fontFamily:"heading",fontWeight:"bold"},sizes:{"4xl":{fontSize:["6xl",null,"7xl"],lineHeight:1},"3xl":{fontSize:["5xl",null,"6xl"],lineHeight:1},"2xl":{fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]},xl:{fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]},lg:{fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]},md:{fontSize:"xl",lineHeight:1.2},sm:{fontSize:"md",lineHeight:1.2},xs:{fontSize:"sm",lineHeight:1.2}},defaultProps:{size:"xl"}},ce={lg:{fontSize:"lg",px:4,h:12,borderRadius:"md"},md:{fontSize:"md",px:4,h:10,borderRadius:"md"},sm:{fontSize:"sm",px:3,h:8,borderRadius:"sm"},xs:{fontSize:"xs",px:2,h:6,borderRadius:"sm"}};function ue(e){var{focusBorderColor:r,errorBorderColor:t}=e;return{focusBorderColor:r||(0,b.xJ)("blue.500","blue.300")(e),errorBorderColor:t||(0,b.xJ)("red.500","red.300")(e)}}var de={parts:["field","addon"],baseStyle:{field:{width:"100%",minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal"}},sizes:{lg:{field:ce.lg,addon:ce.lg},md:{field:ce.md,addon:ce.md},sm:{field:ce.sm,addon:ce.sm},xs:{field:ce.xs,addon:ce.xs}},variants:{outline:function(e){var{theme:r}=e,{focusBorderColor:t,errorBorderColor:n}=ue(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:(0,b.xJ)("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_disabled:{opacity:.4,cursor:"not-allowed"},_invalid:{borderColor:l(r,n),boxShadow:"0 0 0 1px "+l(r,n)},_focus:{zIndex:1,borderColor:l(r,t),boxShadow:"0 0 0 1px "+l(r,t)}},addon:{border:"1px solid",borderColor:(0,b.xJ)("inherit","whiteAlpha.50")(e),bg:(0,b.xJ)("gray.100","whiteAlpha.300")(e)}}},filled:function(e){var{theme:r}=e,{focusBorderColor:t,errorBorderColor:n}=ue(e);return{field:{border:"2px solid",borderColor:"transparent",bg:(0,b.xJ)("gray.100","whiteAlpha.50")(e),_hover:{bg:(0,b.xJ)("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_disabled:{opacity:.4,cursor:"not-allowed"},_invalid:{borderColor:l(r,n)},_focus:{bg:"transparent",borderColor:l(r,t)}},addon:{border:"2px solid",borderColor:"transparent",bg:(0,b.xJ)("gray.100","whiteAlpha.50")(e)}}},flushed:function(e){var{theme:r}=e,{focusBorderColor:t,errorBorderColor:n}=ue(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:0,px:0,bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:l(r,n),boxShadow:"0px 1px 0px 0px "+l(r,n)},_focus:{borderColor:l(r,t),boxShadow:"0px 1px 0px 0px "+l(r,t)}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:0,px:0,bg:"transparent"}}},unstyled:{field:{bg:"transparent",px:0,height:"auto"},addon:{bg:"transparent",px:0,height:"auto"}}},defaultProps:{size:"md",variant:"outline"}};var fe={baseStyle:function(e){return{bg:(0,b.xJ)("gray.100","whiteAlpha")(e),borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"}}},be={baseStyle:{transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focus:{boxShadow:"outline"}}},ge={parts:["container","item","icon"],baseStyle:{container:{},item:{},icon:{marginEnd:"0.5rem",display:"inline",verticalAlign:"text-bottom"}}};function pe(e){return{bg:(0,b.xJ)("#fff","gray.700")(e),boxShadow:(0,b.xJ)("sm","dark-lg")(e),color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px"}}function he(e){return{py:"0.4rem",px:"0.8rem",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{bg:(0,b.xJ)("gray.100","whiteAlpha.100")(e)},_active:{bg:(0,b.xJ)("gray.200","whiteAlpha.200")(e)},_expanded:{bg:(0,b.xJ)("gray.100","whiteAlpha.100")(e)},_disabled:{opacity:.4,cursor:"not-allowed"}}}var me,ye={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},ve={opacity:.6},xe={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"0.5rem",opacity:.6},ke={transitionProperty:"common",transitionDuration:"normal"},we={parts:["item","command","list","button","groupTitle","divider"],baseStyle:e=>({button:ke,list:pe(e),item:he(e),groupTitle:ye,command:ve,divider:xe})},Se=t(35268);function Ce(){return(Ce=Object.assign||function(e){for(var r=1;r({root:Ee,field:_e,stepperGroup:Be,stepper:De(e)}),sizes:{xs:ze("xs"),sm:ze("sm"),md:ze("md"),lg:ze("lg")},variants:Fe,defaultProps:Ae};function je(){return(je=Object.assign||function(e){for(var r=1;rde.variants.outline(e).field,flushed:e=>de.variants.flushed(e).field,filled:e=>de.variants.filled(e).field,unstyled:de.variants.unstyled.field},defaultProps:de.defaultProps},Te={zIndex:10};function Pe(e){return{"--popover-bg":"colors."+(0,b.xJ)("white","gray.700")(e),bg:"var(--popover-bg)","--popper-arrow-bg":"var(--popover-bg)","--popper-arrow-shadow-color":"colors."+(0,b.xJ)("gray.200","whiteAlpha.300")(e),width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focus:{outline:0,boxShadow:"outline"}}}var Ie={px:3,py:2,borderBottomWidth:"1px"},Me={px:3,py:2},We={px:3,py:2,borderTopWidth:"1px"},Je={parts:["popper","content","header","body","footer","arrow"],baseStyle:e=>({popper:Te,content:Pe(e),header:Ie,body:Me,footer:We,arrow:{}})};function Ne(){return(Ne=Object.assign||function(e){for(var r=1;r({label:He,filledTrack:$e(e),track:Le(e)}),defaultProps:{size:"md",colorScheme:"blue"}};function Ve(){return(Ve=Object.assign||function(e){for(var r=1;r({label:z.baseStyle(e).label,control:qe(e)}),sizes:{md:{control:{w:4,h:4},label:{fontSize:"md"}},lg:{control:{w:5,h:5},label:{fontSize:"lg"}},sm:{control:{width:3,height:3},label:{fontSize:"sm"}}},defaultProps:{size:"md",colorScheme:"blue"}},Ye=t(38554);function Xe(){return(Xe=Object.assign||function(e){for(var r=1;r option, > optgroup":{bg:(0,b.xJ)("white","gray.700")(e)}})}var Ke={width:"1.5rem",height:"100%",insetEnd:"0.5rem",position:"relative",color:"currentColor",fontSize:"1.25rem",_disabled:{opacity:.5}},Qe={parts:["field","icon"],baseStyle:e=>({field:Ue(e),icon:Ke}),sizes:t.n(Ye)()({},de.sizes,{xs:{icon:{insetEnd:"0.25rem"}}}),variants:de.variants,defaultProps:de.defaultProps},er=t(70917),rr=(e,r)=>(0,er.keyframes)({from:{borderColor:e,background:e},to:{borderColor:r,background:r}}),tr={baseStyle:e=>{var r=(0,b.xJ)("gray.100","gray.800")(e),t=(0,b.xJ)("gray.400","gray.600")(e),{startColor:n=r,endColor:a=t,speed:o,theme:i}=e,s=l(i,n),c=l(i,a);return{opacity:.7,borderRadius:"2px",borderColor:s,background:c,animation:o+"s linear infinite alternate "+rr(s,c)}}},nr={baseStyle:e=>({borderRadius:"md",fontWeight:"semibold",_focus:{boxShadow:"outline",padding:"1rem",position:"fixed",top:"1.5rem",insetStart:"1.5rem",bg:(0,b.xJ)("white","gray.700")(e)}})};function ar(){return(ar=Object.assign||function(e){for(var r=1;r{var{orientation:r}=e;return ar({_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"}},(0,b.fL)({orientation:r,vertical:{h:"100%"},horizontal:{w:"100%"}}))};function ir(e){return{borderRadius:"sm",bg:(0,b.xJ)("gray.200","whiteAlpha.200")(e),_disabled:{bg:(0,b.xJ)("gray.300","whiteAlpha.300")(e)}}}function sr(e){return ar({zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focus:{boxShadow:"outline"},_disabled:{bg:"gray.300"}},function(e){return(0,b.fL)({orientation:e.orientation,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}})}(e))}function lr(e){var{colorScheme:r}=e;return{bg:(0,b.xJ)(r+".500",r+".200")(e)}}var cr={parts:["container","thumb","track","filledTrack"],sizes:{lg:function(e){return{thumb:{w:"16px",h:"16px"},track:(0,b.fL)({orientation:e.orientation,horizontal:{h:"4px"},vertical:{w:"4px"}})}},md:function(e){return{thumb:{w:"14px",h:"14px"},track:(0,b.fL)({orientation:e.orientation,horizontal:{h:"4px"},vertical:{w:"4px"}})}},sm:function(e){return{thumb:{w:"10px",h:"10px"},track:(0,b.fL)({orientation:e.orientation,horizontal:{h:"2px"},vertical:{w:"2px"}})}}},baseStyle:e=>({container:or(e),track:ir(e),thumb:sr(e),filledTrack:lr(e)}),defaultProps:{size:"md",colorScheme:"blue"}},ur={baseStyle:{width:"var(--spinner-size)",height:"var(--spinner-size)"},sizes:{xs:{"--spinner-size":"0.75rem"},sm:{"--spinner-size":"1rem"},md:{"--spinner-size":"1.5rem"},lg:{"--spinner-size":"2rem"},xl:{"--spinner-size":"3rem"}},defaultProps:{size:"md"}},dr={parts:["label","number","icon","helpText"],baseStyle:{label:{fontWeight:"medium"},helpText:{opacity:.8,marginBottom:2},number:{verticalAlign:"baseline",fontWeight:"semibold"},icon:{marginEnd:1,w:"14px",h:"14px",verticalAlign:"middle"}},sizes:{md:{label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}}},defaultProps:{size:"md"}};function fr(e){var{colorScheme:r}=e;return{borderRadius:"full",p:"2px",width:"var(--slider-track-width)",height:"var(--slider-track-height)",transitionProperty:"common",transitionDuration:"fast",bg:(0,b.xJ)("gray.300","whiteAlpha.400")(e),_focus:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{bg:(0,b.xJ)(r+".500",r+".200")(e)}}}var br={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:"var(--slider-track-height)",height:"var(--slider-track-height)",_checked:{transform:"translateX(var(--slider-thumb-x))"}},gr={parts:["container","track","thumb"],baseStyle:e=>({container:{"--slider-track-diff":"calc(var(--slider-track-width) - var(--slider-track-height))","--slider-thumb-x":"var(--slider-track-diff)",_rtl:{"--slider-thumb-x":"calc(-1 * var(--slider-track-diff))"}},track:fr(e),thumb:br}),sizes:{sm:{container:{"--slider-track-width":"1.375rem","--slider-track-height":"0.75rem"}},md:{container:{"--slider-track-width":"1.875rem","--slider-track-height":"1rem"}},lg:{container:{"--slider-track-width":"2.875rem","--slider-track-height":"1.5rem"}}},defaultProps:{size:"md",colorScheme:"blue"}};function pr(){return(pr=Object.assign||function(e){for(var r=1;r{var{colorScheme:r}=e;return{th:pr({color:(0,b.xJ)("gray.600","gray.400")(e),borderBottom:"1px",borderColor:(0,b.xJ)(r+".100",r+".700")(e)},hr),td:pr({borderBottom:"1px",borderColor:(0,b.xJ)(r+".100",r+".700")(e)},hr),caption:{color:(0,b.xJ)("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}},striped:e=>{var{colorScheme:r}=e;return{th:pr({color:(0,b.xJ)("gray.600","gray.400")(e),borderBottom:"1px",borderColor:(0,b.xJ)(r+".100",r+".700")(e)},hr),td:pr({borderBottom:"1px",borderColor:(0,b.xJ)(r+".100",r+".700")(e)},hr),caption:{color:(0,b.xJ)("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:(0,b.xJ)(r+".100",r+".700")(e)},td:{background:(0,b.xJ)(r+".100",r+".700")(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}},unstyled:{}},sizes:{sm:{th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}},md:{th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}},lg:{th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}}},defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}};function yr(e){var{orientation:r}=e;return{display:"vertical"===r?"flex":"block"}}function vr(e){var{isFitted:r}=e;return{flex:r?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focus:{zIndex:1,boxShadow:"outline"}}}function xr(e){var{align:r="start",orientation:t}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[r],flexDirection:"vertical"===t?"column":"row"}}var kr={p:4};var wr={parts:["root","tablist","tab","tabpanels","tabpanel","indicator"],baseStyle:e=>({root:yr(e),tab:vr(e),tablist:xr(e),tabpanel:kr}),sizes:{sm:{tab:{py:1,px:4,fontSize:"sm"}},md:{tab:{fontSize:"md",py:2,px:4}},lg:{tab:{fontSize:"lg",py:3,px:4}}},variants:{line:function(e){var{colorScheme:r,orientation:t}=e,n="vertical"===t?"borderStart":"borderBottom";return{tablist:{[n]:"2px solid",borderColor:"inherit"},tab:{[n]:"2px solid",borderColor:"transparent",["vertical"===t?"marginStart":"marginBottom"]:"-2px",_selected:{color:(0,b.xJ)(r+".600",r+".300")(e),borderColor:"currentColor"},_active:{bg:(0,b.xJ)("gray.200","whiteAlpha.300")(e)},_disabled:{opacity:.4,cursor:"not-allowed"}}}},enclosed:function(e){var{colorScheme:r}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",_selected:{color:(0,b.xJ)(r+".600",r+".300")(e),borderColor:"inherit",borderBottomColor:(0,b.xJ)("white","gray.800")(e)}},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}},"enclosed-colored":function(e){var{colorScheme:r}=e;return{tab:{border:"1px solid",borderColor:"inherit",bg:(0,b.xJ)("gray.50","whiteAlpha.50")(e),mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{bg:(0,b.xJ)("#fff","gray.800")(e),color:(0,b.xJ)(r+".600",r+".300")(e),borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"}},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}},"soft-rounded":function(e){var{colorScheme:r,theme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:l(t,r+".700"),bg:l(t,r+".100")}}}},"solid-rounded":function(e){var{colorScheme:r}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:(0,b.xJ)("gray.600","inherit")(e),_selected:{color:(0,b.xJ)("#fff","gray.800")(e),bg:(0,b.xJ)(r+".600",r+".300")(e)}}}},unstyled:{}},defaultProps:{size:"md",variant:"line",colorScheme:"blue"}},Sr={parts:["container","label","closeButton"],variants:{subtle:e=>({container:w.variants.subtle(e)}),solid:e=>({container:w.variants.solid(e)}),outline:e=>({container:w.variants.outline(e)})},baseStyle:{container:{fontWeight:"medium",lineHeight:1.2,outline:0,_focus:{boxShadow:"outline"}},label:{lineHeight:1.2},closeButton:{fontSize:"18px",w:"1.25rem",h:"1.25rem",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"0.375rem",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focus:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}}},sizes:{sm:{container:{minH:"1.25rem",minW:"1.25rem",fontSize:"xs",px:2,borderRadius:"md"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}},md:{container:{minH:"1.5rem",minW:"1.5rem",fontSize:"sm",borderRadius:"md",px:2}},lg:{container:{minH:8,minW:8,fontSize:"md",borderRadius:"md",px:3}}},defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}};function Cr(){return(Cr=Object.assign||function(e){for(var r=1;rde.variants.outline(e).field,flushed:e=>de.variants.flushed(e).field,filled:e=>de.variants.filled(e).field,unstyled:de.variants.unstyled.field},Er={xs:de.sizes.xs.field,sm:de.sizes.sm.field,md:de.sizes.md.field,lg:de.sizes.lg.field};function _r(e){return{color:(0,b.xJ)("red.500","red.300")(e),mt:2,fontSize:"sm"}}function Br(e){return{marginEnd:"0.5em",color:(0,b.xJ)("red.500","red.300")(e)}}var Dr={Accordion:n,Alert:p,Avatar:k,Badge:w,Breadcrumb:S,Button:E,Checkbox:z,CloseButton:R,Code:T,Container:P,Divider:I,Drawer:te,Editable:ne,Form:ie,FormLabel:se,Heading:le,Input:de,Kbd:fe,Link:be,List:ge,Menu:we,Modal:V,NumberInput:Re,PinInput:Oe,Popover:Je,Progress:Ze,Radio:Ge,Select:Qe,Skeleton:tr,SkipLink:nr,Slider:cr,Spinner:ur,Stat:dr,Switch:gr,Table:mr,Tabs:wr,Tag:Sr,Textarea:{baseStyle:Fr,sizes:Er,variants:Ar,defaultProps:{size:"md",variant:"outline"}},Tooltip:{baseStyle:function(e){return{"--tooltip-bg":"colors."+(0,b.xJ)("gray.700","gray.300")(e),px:"8px",py:"2px",bg:"var(--tooltip-bg)","--popper-arrow-bg":"var(--tooltip-bg)",color:(0,b.xJ)("whiteAlpha.900","gray.900")(e),borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"320px",zIndex:"tooltip"}}},FormError:{parts:["text","icon"],baseStyle:e=>({text:_r(e),icon:Br(e)})}}},42009:function(e,r,t){"use strict";t.d(r,{Z:function(){return p}});var n={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},a=t(80658);function o(){return(o=Object.assign||function(e){for(var r=1;r({body:{fontFamily:"body",color:(0,n.xJ)("gray.800","whiteAlpha.900")(e),bg:(0,n.xJ)("white","gray.800")(e),transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:(0,n.xJ)("gray.400","whiteAlpha.400")(e)},"*, *::before, &::after":{borderColor:(0,n.xJ)("gray.200","whiteAlpha.300")(e),wordWrap:"break-word"}})};r.Z=a},93025:function(){},27277:function(e,r,t){"use strict";function n(e){var r=null==e?0:e.length;return r?e[r-1]:void 0}function a(e,r){return[...e,r]}function o(e,r){return e.filter((e=>e!==r))}function i(e,r,t,n){if(null==r)return n;if(!n)return e.find((e=>t(e).toLowerCase().startsWith(r.toLowerCase())));var a,o=e.filter((e=>t(e).toLowerCase().startsWith(r.toLowerCase())));return o.length>0?o.includes(n)?((a=o.indexOf(n)+1)===o.length&&(a=0),o[a]):(a=e.indexOf(o[0]),e[a]):n}t.d(r,{s:function(){return n},jX:function(){return a},cl:function(){return o},LP:function(){return i}})},73808:function(e,r,t){"use strict";function n(e){return"number"===typeof e}function a(e){return"number"!==typeof e||Number.isNaN(e)||!Number.isFinite(e)}function o(e){return Array.isArray(e)}function i(e){return"function"===typeof e}function s(e){return"undefined"===typeof e||void 0===e}function l(e){var r=typeof e;return null!=e&&("object"===r||"function"===r)&&!o(e)}function c(e){return l(e)&&0===Object.keys(e).length}function u(e){return"[object String]"===Object.prototype.toString.call(e)}function d(e){return/^var\(--.+\)$/.test(e)}t.d(r,{hj:function(){return n},iy:function(){return a},kJ:function(){return o},mf:function(){return i},o8:function(){return s},Kn:function(){return l},Qr:function(){return c},HD:function(){return u},FS:function(){return d},Ts:function(){return f},Ys:function(){return b},Ik:function(){return g}});var f=!1,b=!1;function g(e){return"current"in e}},88456:function(e,r,t){"use strict";t.d(r,{px:function(){return i},y:function(){return d}});var n=t(27277),a=t(73808),o=t(4651);function i(e){if(null==e)return e;var{unitless:r}=function(e){var r=parseFloat(e.toString()),t=e.toString().replace(String(r),"");return{unitless:!t,value:r,unit:t}}(e);return r||(0,a.hj)(e)?e+"px":e}var s=(e,r)=>parseInt(e[1],10)>parseInt(r[1],10)?1:-1,l=e=>(0,o.sq)(Object.entries(e).sort(s));function c(e){var r=l(e);return Object.assign(Object.values(r),r)}function u(e,r){var t=[];return e&&t.push("@media screen and (min-width: "+i(e)+")"),t.length>0&&r&&t.push("and"),r&&t.push("@media screen and (max-width: "+i(r)+")"),t.join(" ")}function d(e){var r;if(!e)return null;e.base=null!=(r=e.base)?r:"0px";var t=c(e),o=Object.entries(e).sort(s).map(((e,r,t)=>{var n,[o,s]=e,[,l]=null!=(n=t[r+1])?n:[];return{breakpoint:o,minW:s,maxW:l=parseFloat(l)>0?function(e){var r;if(!e)return e;var t=(e=null!=(r=i(e))?r:e).endsWith("px")?-1:-.0635;return(0,a.hj)(e)?""+(e+t):e.replace(/([0-9]+\.?[0-9]*)/,(e=>""+(parseFloat(e)+t)))}(l):void 0,maxWQuery:u(null,l),minWQuery:u(s),minMaxQuery:u(s,l)}})),d=function(e){var r=Object.keys(l(e));return new Set(r)}(e),f=Array.from(d.values());return{keys:d,normalized:t,isResponsive(e){var r=Object.keys(e);return r.length>0&&r.every((e=>d.has(e)))},asObject:l(e),asArray:c(e),details:o,media:[null,...t.map((e=>u(e))).slice(1)],toArrayValue(e){if(!(0,a.Kn)(e))throw new Error("toArrayValue: value must be an object");for(var r=f.map((r=>{var t;return null!=(t=e[r])?t:null}));null===(0,n.s)(r);)r.pop();return r},toObjectValue(e){if(!Array.isArray(e))throw new Error("toObjectValue: value must be an array");return e.reduce(((e,r,t)=>{var n=f[t];return null!=n&&null!=r&&(e[n]=r),e}),{})}}}},84461:function(e,r,t){"use strict";function n(e){var r;return e instanceof Element&&null!=(r=e.ownerDocument)?r:document}t.d(r,{lZ:function(){return n},jU:function(){return a},PB:function(){return o},Qm:function(){return i},cx:function(){return s},vY:function(){return l},r3:function(){return c},EV:function(){return u},uh:function(){return d},wN:function(){return f},dO:function(){return b}});var a=!("undefined"===typeof window||!window.document||!window.document.createElement),o=e=>e?"":void 0,i=e=>!!e||void 0,s=function(){for(var e=arguments.length,r=new Array(e),t=0;t{e.removeEventListener(r,t,n)}}function d(e){var{key:r,keyCode:t}=e;return t>=37&&t<=40&&0!==r.indexOf("Arrow")?"Arrow"+r:r}function f(e){var r,t,n,a=l(null!=(r=e.target)?r:e.currentTarget),o=e.nativeEvent.explicitOriginalTarget;return null!=(t=null!=(n=e.relatedTarget)?n:o)?t:a}function b(e){return 0!==e.button}},80658:function(e,r,t){"use strict";t.d(r,{Pu:function(){return a},v0:function(){return o},ZT:function(){return s},ZK:function(){return l},A4:function(){return c},zG:function(){return u},TE:function(){return b}});var n=t(73808);function a(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),a=1;a(null==r||r(e),null==e?void 0:e.defaultPrevented)))}}function i(e){var r;return function(){if(e){for(var t=arguments.length,n=new Array(t),a=0;a{},l=i((e=>()=>{var{condition:r,message:t}=e;r&&n.Ts&&console.warn(t)})),c=(i((e=>()=>{var{condition:r,message:t}=e;r&&n.Ts&&console.error(t)})),n.Ys?e=>e():"function"===typeof queueMicrotask?queueMicrotask:e=>{Promise.resolve().then(e)}),u=function(){for(var e=arguments.length,r=new Array(e),t=0;tr.reduce(((e,r)=>r(e)),e)},d=(e,r)=>Math.abs(e-r),f=e=>"x"in e&&"y"in e;function b(e,r){if((0,n.hj)(e)&&(0,n.hj)(r))return d(e,r);if(f(e)&&f(r)){var t=d(e.x,r.x),a=d(e.y,r.y);return Math.sqrt(t**2+a**2)}return 0}},4651:function(e,r,t){"use strict";t.d(r,{CE:function(){return n},ei:function(){return a},Vl:function(){return o},Wf:function(){return i},lw:function(){return s},YU:function(){return l},Yd:function(){return c},sq:function(){return u},K1:function(){return d}});t(38554);function n(e,r){var t={};return Object.keys(e).forEach((n=>{r.includes(n)||(t[n]=e[n])})),t}function a(e,r){var t={};return r.forEach((r=>{r in e&&(t[r]=e[r])})),t}function o(e,r){var t={},n={};return Object.keys(e).forEach((a=>{r.includes(a)?t[a]=e[a]:n[a]=e[a]})),[t,n]}var i=(e=>{var r=new WeakMap;return(t,n,a,o)=>{if("undefined"===typeof t)return e(t,n,a);r.has(t)||r.set(t,new Map);var i=r.get(t);if(i.has(n))return i.get(n);var s=e(t,n,a,o);return i.set(n,s),s}})((function(e,r,t,n){var a="string"===typeof r?r.split("."):[r];for(n=0;n{var a=e[n];r(a,n,e)&&(t[n]=a)})),t}var l=e=>s(e,(e=>null!==e&&void 0!==e)),c=e=>Object.keys(e),u=e=>e.reduce(((e,r)=>{var[t,n]=r;return e[t]=n,e}),{}),d=(e,r,t)=>{var n,a;return null!=(n=null==(a=e.__cssMap[r+"."+t])?void 0:a.varRef)?n:t}},17861:function(e,r,t){"use strict";t.d(r,{Z:function(){return re}});var n=t(11526),a=Math.abs,o=String.fromCharCode;function i(e){return e.trim()}function s(e,r,t){return e.replace(r,t)}function l(e,r){return e.indexOf(r)}function c(e,r){return 0|e.charCodeAt(r)}function u(e,r,t){return e.slice(r,t)}function d(e){return e.length}function f(e){return e.length}function b(e,r){return r.push(e),e}var g=1,p=1,h=0,m=0,y=0,v="";function x(e,r,t,n,a,o,i){return{value:e,root:r,parent:t,type:n,props:a,children:o,line:g,column:p,length:i,return:""}}function k(e,r,t){return x(e,r.root,r.parent,t,r.props,r.children,0)}function w(){return y=m>0?c(v,--m):0,p--,10===y&&(p=1,g--),y}function S(){return y=m2||E(y)>3?"":" "}function R(e,r){for(;--r&&S()&&!(y<48||y>102||y>57&&y<65||y>70&&y<97););return A(e,F()+(r<6&&32==C()&&32==S()))}function j(e){for(;S();)switch(y){case e:return m;case 34:case 39:return j(34===e||39===e?e:y);case 40:41===e&&j(e);break;case 92:S()}return m}function O(e,r){for(;S()&&e+y!==57&&(e+y!==84||47!==C()););return"/*"+A(r,m-1)+"*"+o(47===e?e:S())}function T(e){for(;!E(C());)S();return A(e,m)}var P="-ms-",I="-moz-",M="-webkit-",W="comm",J="rule",N="decl";function H(e,r){for(var t="",n=f(e),a=0;a6)switch(c(e,r+1)){case 109:if(45!==c(e,r+4))break;case 102:return s(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1"+I+(108==c(e,r+3)?"$3":"$2-$3"))+e;case 115:return~l(e,"stretch")?$(s(e,"stretch","fill-available"),r)+e:e}break;case 4949:if(115!==c(e,r+1))break;case 6444:switch(c(e,d(e)-3-(~l(e,"!important")&&10))){case 107:return s(e,":",":"+M)+e;case 101:return s(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+M+(45===c(e,14)?"inline-":"")+"box$3$1"+M+"$2$3$1"+P+"$2box$3")+e}break;case 5936:switch(c(e,r+11)){case 114:return M+e+P+s(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return M+e+P+s(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return M+e+P+s(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return M+e+P+e+e}return e}function Z(e){return B(V("",null,null,null,[""],e=_(e),0,[0],e))}function V(e,r,t,n,a,i,l,c,u){for(var f=0,g=0,p=l,h=0,m=0,y=0,v=1,x=1,k=1,A=0,E="",_=a,B=i,j=n,P=E;x;)switch(y=A,A=S()){case 34:case 39:case 91:case 40:P+=D(A);break;case 9:case 10:case 13:case 32:P+=z(y);break;case 92:P+=R(F()-1,7);continue;case 47:switch(C()){case 42:case 47:b(G(O(S(),F()),r,t),u);break;default:P+="/"}break;case 123*v:c[f++]=d(P)*k;case 125*v:case 59:case 0:switch(A){case 0:case 125:x=0;case 59+g:m>0&&d(P)-p&&b(m>32?Y(P+";",n,t,p-1):Y(s(P," ","")+";",n,t,p-2),u);break;case 59:P+=";";default:if(b(j=q(P,r,t,f,g,a,c,E,_=[],B=[],p),i),123===A)if(0===g)V(P,r,j,j,_,i,p,c,B);else switch(h){case 100:case 109:case 115:V(e,j,j,n&&b(q(e,j,j,0,0,a,c,E,a,_=[],p),B),a,B,p,c,n?_:B);break;default:V(P,j,j,j,[""],B,p,c,B)}}f=g=m=0,v=k=1,E=P="",p=l;break;case 58:p=1+d(P),m=y;default:if(v<1)if(123==A)--v;else if(125==A&&0==v++&&125==w())continue;switch(P+=o(A),A*v){case 38:k=g>0?1:(P+="\f",-1);break;case 44:c[f++]=(d(P)-1)*k,k=1;break;case 64:45===C()&&(P+=D(S())),h=C(),g=d(E=P+=T(F())),A++;break;case 45:45===y&&2==d(P)&&(v=0)}}return i}function q(e,r,t,n,o,l,c,d,b,g,p){for(var h=o-1,m=0===o?l:[""],y=f(m),v=0,k=0,w=0;v0?m[S]+" "+C:s(C,/&\f/g,m[S])))&&(b[w++]=F);return x(e,r,t,0===o?J:d,b,g,p)}function G(e,r,t){return x(e,r,t,W,o(y),u(e,2,-2),0)}function Y(e,r,t,n){return x(e,r,t,N,u(e,0,n),u(e,n+1,-1),n)}var X=function(e,r){return B(function(e,r){var t=-1,n=44;do{switch(E(n)){case 0:38===n&&12===C()&&(r[t]=1),e[t]+=T(m-1);break;case 2:e[t]+=D(n);break;case 4:if(44===n){e[++t]=58===C()?"&\f":"",r[t]=e[t].length;break}default:e[t]+=o(n)}}while(n=S());return e}(_(e),r))},U=new WeakMap,K=function(e){if("rule"===e.type&&e.parent&&e.length){for(var r=e.value,t=e.parent,n=e.column===t.column&&e.line===t.line;"rule"!==t.type;)if(!(t=t.parent))return;if((1!==e.props.length||58===r.charCodeAt(0)||U.get(t))&&!n){U.set(e,!0);for(var a=[],o=X(r,a),i=t.props,s=0,l=0;s=4;++n,a-=4)r=1540483477*(65535&(r=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(r>>>16)<<16),t=1540483477*(65535&(r^=r>>>24))+(59797*(r>>>16)<<16)^1540483477*(65535&t)+(59797*(t>>>16)<<16);switch(a){case 3:t^=(255&e.charCodeAt(n+2))<<16;case 2:t^=(255&e.charCodeAt(n+1))<<8;case 1:t=1540483477*(65535&(t^=255&e.charCodeAt(n)))+(59797*(t>>>16)<<16)}return(((t=1540483477*(65535&(t^=t>>>13))+(59797*(t>>>16)<<16))^t>>>15)>>>0).toString(36)},a={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},o=t(67866),i=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,l=function(e){return 45===e.charCodeAt(1)},c=function(e){return null!=e&&"boolean"!==typeof e},u=(0,o.Z)((function(e){return l(e)?e:e.replace(i,"-$&").toLowerCase()})),d=function(e,r){switch(e){case"animation":case"animationName":if("string"===typeof r)return r.replace(s,(function(e,r,t){return b={name:r,styles:t,next:b},r}))}return 1===a[e]||l(e)||"number"!==typeof r||0===r?r:r+"px"};function f(e,r,t){if(null==t)return"";if(void 0!==t.__emotion_styles)return t;switch(typeof t){case"boolean":return"";case"object":if(1===t.anim)return b={name:t.name,styles:t.styles,next:b},t.name;if(void 0!==t.styles){var n=t.next;if(void 0!==n)for(;void 0!==n;)b={name:n.name,styles:n.styles,next:b},n=n.next;return t.styles+";"}return function(e,r,t){var n="";if(Array.isArray(t))for(var a=0;a-1},X.prototype.set=function(e,r){var t=this.__data__,n=te(t,e);return n<0?(++this.size,t.push([e,r])):t[n][1]=r,this},U.prototype.clear=function(){this.size=0,this.__data__={hash:new Y,map:new(V||X),string:new Y}},U.prototype.delete=function(e){var r=fe(this,e).delete(e);return this.size-=r?1:0,r},U.prototype.get=function(e){return fe(this,e).get(e)},U.prototype.has=function(e){return fe(this,e).has(e)},U.prototype.set=function(e,r){var t=fe(this,e),n=t.size;return t.set(e,r),this.size+=t.size==n?0:1,this},K.prototype.clear=function(){this.__data__=new X,this.size=0},K.prototype.delete=function(e){var r=this.__data__,t=r.delete(e);return this.size=r.size,t},K.prototype.get=function(e){return this.__data__.get(e)},K.prototype.has=function(e){return this.__data__.has(e)},K.prototype.set=function(e,r){var t=this.__data__;if(t instanceof X){var n=t.__data__;if(!V||n.length<199)return n.push([e,r]),this.size=++t.size,this;t=this.__data__=new U(n)}return t.set(e,r),this.size=t.size,this};var ae,oe=function(e,r,t){for(var n=-1,a=Object(e),o=t(e),i=o.length;i--;){var s=o[ae?i:++n];if(!1===r(a[s],s,a))break}return e};function ie(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":N&&N in Object(e)?function(e){var r=_.call(e,N),t=e[N];try{e[N]=void 0;var n=!0}catch(o){}var a=D.call(e);n&&(r?e[N]=t:delete e[N]);return a}(e):function(e){return D.call(e)}(e)}function se(e){return Ae(e)&&ie(e)==o}function le(e){return!(!Fe(e)||function(e){return!!B&&B in e}(e))&&(Se(e)?R:l).test(function(e){if(null!=e){try{return E.call(e)}catch(r){}try{return e+""}catch(r){}}return""}(e))}function ce(e){if(!Fe(e))return function(e){var r=[];if(null!=e)for(var t in Object(e))r.push(t);return r}(e);var r=pe(e),t=[];for(var n in e)("constructor"!=n||!r&&_.call(e,n))&&t.push(n);return t}function ue(e,r,t,n,a){e!==r&&oe(r,(function(o,i){if(a||(a=new K),Fe(o))!function(e,r,t,n,a,o,i){var l=he(e,t),c=he(r,t),u=i.get(c);if(u)return void ee(e,t,u);var d=o?o(l,c,t+"",e,r,i):void 0,f=void 0===d;if(f){var b=xe(c),g=!b&&we(c),p=!b&&!g&&Ee(c);d=c,b||g||p?xe(l)?d=l:Ae(h=l)&&ke(h)?d=function(e,r){var t=-1,n=e.length;r||(r=Array(n));for(;++t-1&&e%1==0&&e0){if(++r>=800)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}(H?function(e,r){return H(e,"toString",{configurable:!0,enumerable:!1,value:(t=r,function(){return t}),writable:!0});var t}:ze);function ye(e,r){return e===r||e!==e&&r!==r}var ve=se(function(){return arguments}())?se:function(e){return Ae(e)&&_.call(e,"callee")&&!W.call(e,"callee")},xe=Array.isArray;function ke(e){return null!=e&&Ce(e.length)&&!Se(e)}var we=L||function(){return!1};function Se(e){if(!Fe(e))return!1;var r=ie(e);return r==i||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r}function Ce(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=a}function Fe(e){var r=typeof e;return null!=e&&("object"==r||"function"==r)}function Ae(e){return null!=e&&"object"==typeof e}var Ee=v?function(e){return function(r){return e(r)}}(v):function(e){return Ae(e)&&Ce(e.length)&&!!u[ie(e)]};function _e(e){return ke(e)?Q(e,!0):ce(e)}var Be,De=(Be=function(e,r,t,n){ue(e,r,t,n)},de((function(e,r){var t=-1,n=r.length,a=n>1?r[n-1]:void 0,o=n>2?r[2]:void 0;for(a=Be.length>3&&"function"==typeof a?(n--,a):void 0,o&&function(e,r,t){if(!Fe(t))return!1;var n=typeof r;return!!("number"==n?ke(t)&&ge(r,t.length):"string"==n&&r in t)&&ye(t[r],e)}(r[0],r[1],o)&&(a=n<3?void 0:a,n=1),e=Object(e);++tObject.prototype.hasOwnProperty.call(e,r)))}var l=t(80658),c=t(38554),u=t.n(c);function d(){for(var e=arguments.length,r=new Array(e),t=0;tg.createElement(b.Global,{styles:'\n html {\n line-height: 1.5;\n -webkit-text-size-adjust: 100%;\n font-family: system-ui, sans-serif;\n -webkit-font-smoothing: antialiased;\n text-rendering: optimizeLegibility; \n -moz-osx-font-smoothing: grayscale; \n touch-action: manipulation; \n }\n\n body {\n position: relative;\n min-height: 100%;\n font-feature-settings: \'kern\';\n }\n\n *,\n *::before,\n *::after {\n border-width: 0;\n border-style: solid;\n box-sizing: border-box;\n }\n\n main {\n display: block;\n }\n\n hr {\n border-top-width: 1px;\n box-sizing: content-box;\n height: 0;\n overflow: visible;\n }\n\n pre,\n code,\n kbd,\n samp {\n font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;\n font-size: 1em;\n }\n\n a {\n background-color: transparent;\n color: inherit;\n text-decoration: inherit;\n }\n\n abbr[title] {\n border-bottom: none;\n text-decoration: underline;\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n }\n\n b,\n strong {\n font-weight: bold;\n }\n\n small {\n font-size: 80%;\n }\n\n sub,\n sup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n }\n\n sub {\n bottom: -0.25em;\n }\n\n sup {\n top: -0.5em;\n }\n\n img {\n border-style: none;\n }\n\n button,\n input,\n optgroup,\n select,\n textarea {\n font-family: inherit;\n font-size: 100%;\n line-height: 1.15;\n margin: 0;\n }\n\n button,\n input {\n overflow: visible;\n }\n\n button,\n select {\n text-transform: none;\n }\n\n button::-moz-focus-inner,\n [type="button"]::-moz-focus-inner,\n [type="reset"]::-moz-focus-inner,\n [type="submit"]::-moz-focus-inner {\n border-style: none;\n padding: 0;\n }\n\n fieldset {\n padding: 0.35em 0.75em 0.625em;\n }\n\n legend {\n box-sizing: border-box;\n color: inherit;\n display: table;\n max-width: 100%;\n padding: 0;\n white-space: normal;\n }\n\n progress {\n vertical-align: baseline;\n }\n\n textarea {\n overflow: auto;\n }\n\n [type="checkbox"],\n [type="radio"] {\n box-sizing: border-box;\n padding: 0;\n }\n\n [type="number"]::-webkit-inner-spin-button,\n [type="number"]::-webkit-outer-spin-button {\n -webkit-appearance: none !important;\n }\n\n input[type="number"] {\n -moz-appearance: textfield;\n }\n\n [type="search"] {\n -webkit-appearance: textfield;\n outline-offset: -2px;\n }\n\n [type="search"]::-webkit-search-decoration {\n -webkit-appearance: none !important;\n }\n\n ::-webkit-file-upload-button {\n -webkit-appearance: button;\n font: inherit;\n }\n\n details {\n display: block;\n }\n\n summary {\n display: list-item;\n }\n\n template {\n display: none;\n }\n\n [hidden] {\n display: none !important;\n }\n\n body,\n blockquote,\n dl,\n dd,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n hr,\n figure,\n p,\n pre {\n margin: 0;\n }\n\n button {\n background: transparent;\n padding: 0;\n }\n\n fieldset {\n margin: 0;\n padding: 0;\n }\n\n ol,\n ul {\n margin: 0;\n padding: 0;\n }\n\n textarea {\n resize: vertical;\n }\n\n button,\n [role="button"] {\n cursor: pointer;\n }\n\n button::-moz-focus-inner {\n border: 0 !important;\n }\n\n table {\n border-collapse: collapse;\n }\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n font-size: inherit;\n font-weight: inherit;\n }\n\n button,\n input,\n optgroup,\n select,\n textarea {\n padding: 0;\n line-height: inherit;\n color: inherit;\n }\n\n img,\n svg,\n video,\n canvas,\n audio,\n iframe,\n embed,\n object {\n display: block;\n vertical-align: middle;\n }\n\n img,\n video {\n max-width: 100%;\n height: auto;\n }\n\n [data-js-focus-visible] :focus:not([data-focus-visible-added]) {\n outline: none;\n box-shadow: none;\n }\n\n select::-ms-expand {\n display: none;\n }\n '}),h=t(34288),m=t(29676),y=t(24738),v=t(84461),x={body:{classList:{add(){},remove(){}}},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]})},k=()=>{},w={window:{document:x,navigator:{userAgent:""},CustomEvent:function(){return this},addEventListener:k,removeEventListener:k,getComputedStyle:()=>({getPropertyValue:()=>""}),matchMedia:()=>({matches:!1,addListener:k,removeListener:k}),requestAnimationFrame:e=>"undefined"===typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!==typeof setTimeout&&clearTimeout(e)},setTimeout:()=>0,clearTimeout:k,setInterval:()=>0,clearInterval:k},document:x},S=v.jU?{window:window,document:document}:w,C=(0,g.createContext)(S);function F(e){var{children:r,environment:t}=e,[n,a]=(0,g.useState)(null),o=(0,g.useMemo)((()=>{var e,r=null==n?void 0:n.ownerDocument,a=null==n?void 0:n.ownerDocument.defaultView;return null!=(e=null!=t?t:r?{document:r,window:a}:void 0)?e:S}),[n,t]),i=!n&&!t;return g.createElement(C.Provider,{value:o},r,i&&g.createElement("span",{ref:e=>{e&&a(e)}}))}o.Ts&&(C.displayName="EnvironmentContext"),o.Ts&&(F.displayName="EnvironmentProvider");var A=t(94577),E=e=>{var{children:r,colorModeManager:t,portalZIndex:n,resetCSS:o=!0,theme:i=a.Z,environment:s,cssVarsRoot:l}=e,c=g.createElement(F,{environment:s},r);return g.createElement(A.vc,null,g.createElement(m.f6,{theme:i,cssVarsRoot:l},g.createElement(y.SG,{colorModeManager:t,options:i.config},o&&g.createElement(p,null),g.createElement(m.ZL,null),n?g.createElement(h.h,{zIndex:n},c):c)))},_=t(52596),B=t(29356),D=t(67690),z=t(85893);function R(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function j(e){for(var r=1;r1?n=n.slice(0,n.length-1):i=a.Z,(0,l.zG)(...n.map((e=>r=>(0,o.mf)(e)?e(r):d(r,e))))(i)}((0,g.useMemo)((function(){return{colors:{white:c.bg,black:c.fg,gray:{100:c.base1,200:u,300:c.base2,400:c.base3,500:c.base4,600:c.base5,700:c.base6,800:c.base7,900:c.base8},blue:{500:c.blue},teal:{500:c.blue},yellow:{500:c.yellow},orange:{500:c.orange},red:{500:c.red},green:{500:c.green},purple:{500:c.violet},pink:{500:c.magenta},cyan:{500:c.cyan},alt:{100:c["bg-alt"],900:c["fg-alt"]}},shadows:{outline:"0 0 0 3px "+f},components:{Button:{variants:{outline:{border:"2px solid",borderColor:n,color:n},ghost:{color:n,_hover:{bg:"inherit",border:"1px solid",borderColor:n},_active:{color:"inherit",bg:n}},subtle:{color:"gray.800",_hover:{bg:"inherit",color:n},_active:{color:"inherit",bg:f}}}},Accordion:{baseStyle:{container:{marginTop:"10px",borderWidth:"0px",_last:{borderWidth:"0px"}},panel:{marginRight:"10px"}}},Slider:{baseStyle:function(e){return{thumb:{backgroundColor:n},filledTrack:{backgroundColor:"gray.200"}}}}}}}),[n,JSON.stringify(i)]),function(e){var{colorScheme:r,components:t}=e;return e=>{var n=Object.keys(e.components||{});return Array.isArray(t)?n=t:(0,o.Kn)(t)&&(n=Object.keys(t)),d(e,{components:Object.fromEntries(n.map((e=>[e,{defaultProps:{colorScheme:r}}])))})}}({colorScheme:n.split(".")[0]}));return(0,z.jsx)(E,{theme:b,children:r})}var T=function(e){var r=e.Component,t=e.pageProps,n=["one-vibrant",D.n["one-vibrant"]],a=(0,g.useState)(!1),o=a[0],i=a[1],s=(0,g.useState)(n),l=s[0],c=s[1],u=(0,g.useState)("purple.500"),d=u[0],f=u[1];(0,g.useEffect)((function(){o&&localStorage.setItem("colorTheme",JSON.stringify(l))}),[l]),(0,g.useEffect)((function(){o&&localStorage.setItem("highlightColor",JSON.stringify(d))}),[d]),(0,g.useEffect)((function(){var e,r,t,a;c(null!==(e=JSON.parse(null!==(r=localStorage.getItem("colorTheme"))&&void 0!==r?r:JSON.stringify(n)))&&void 0!==e?e:n),f(null!==(t=JSON.parse(null!==(a=localStorage.getItem("highlightColor"))&&void 0!==a?a:JSON.stringify(d)))&&void 0!==t?t:d),i(!0)}),[]);var b={emacsTheme:l,setEmacsTheme:c,highlightColor:d,setHighlightColor:f};return(0,z.jsx)(B.N.Provider,{value:b,children:(0,z.jsx)(O,{children:(0,z.jsx)(r,j({},t))})})}},29356:function(e,r,t){"use strict";t.d(r,{N:function(){return o}});var n=t(67294),a=["vibrant",t(67690).n["one-vibrant"]],o=(0,n.createContext)({emacsTheme:a,setEmacsTheme:null,highlightColor:"purple",setHighlightColor:null})},94798:function(e,r,t){"use strict";function n(e,r,t){e.prototype=r.prototype=t,t.constructor=e}function a(e,r){var t=Object.create(e.prototype);for(var n in r)t[n]=r[n];return t}function o(){}t.d(r,{ZP:function(){return k},B8:function(){return F}});var i=.7,s=1/i,l="\\s*([+-]?\\d+)\\s*",c="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",u="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",d=/^#([0-9a-f]{3,8})$/,f=new RegExp("^rgb\\("+[l,l,l]+"\\)$"),b=new RegExp("^rgb\\("+[u,u,u]+"\\)$"),g=new RegExp("^rgba\\("+[l,l,l,c]+"\\)$"),p=new RegExp("^rgba\\("+[u,u,u,c]+"\\)$"),h=new RegExp("^hsl\\("+[c,u,u]+"\\)$"),m=new RegExp("^hsla\\("+[c,u,u,c]+"\\)$"),y={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function v(){return this.rgb().formatHex()}function x(){return this.rgb().formatRgb()}function k(e){var r,t;return e=(e+"").trim().toLowerCase(),(r=d.exec(e))?(t=r[1].length,r=parseInt(r[1],16),6===t?w(r):3===t?new A(r>>8&15|r>>4&240,r>>4&15|240&r,(15&r)<<4|15&r,1):8===t?S(r>>24&255,r>>16&255,r>>8&255,(255&r)/255):4===t?S(r>>12&15|r>>8&240,r>>8&15|r>>4&240,r>>4&15|240&r,((15&r)<<4|15&r)/255):null):(r=f.exec(e))?new A(r[1],r[2],r[3],1):(r=b.exec(e))?new A(255*r[1]/100,255*r[2]/100,255*r[3]/100,1):(r=g.exec(e))?S(r[1],r[2],r[3],r[4]):(r=p.exec(e))?S(255*r[1]/100,255*r[2]/100,255*r[3]/100,r[4]):(r=h.exec(e))?D(r[1],r[2]/100,r[3]/100,1):(r=m.exec(e))?D(r[1],r[2]/100,r[3]/100,r[4]):y.hasOwnProperty(e)?w(y[e]):"transparent"===e?new A(NaN,NaN,NaN,0):null}function w(e){return new A(e>>16&255,e>>8&255,255&e,1)}function S(e,r,t,n){return n<=0&&(e=r=t=NaN),new A(e,r,t,n)}function C(e){return e instanceof o||(e=k(e)),e?new A((e=e.rgb()).r,e.g,e.b,e.opacity):new A}function F(e,r,t,n){return 1===arguments.length?C(e):new A(e,r,t,null==n?1:n)}function A(e,r,t,n){this.r=+e,this.g=+r,this.b=+t,this.opacity=+n}function E(){return"#"+B(this.r)+B(this.g)+B(this.b)}function _(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function B(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function D(e,r,t,n){return n<=0?e=r=t=NaN:t<=0||t>=1?e=r=NaN:r<=0&&(e=NaN),new R(e,r,t,n)}function z(e){if(e instanceof R)return new R(e.h,e.s,e.l,e.opacity);if(e instanceof o||(e=k(e)),!e)return new R;if(e instanceof R)return e;var r=(e=e.rgb()).r/255,t=e.g/255,n=e.b/255,a=Math.min(r,t,n),i=Math.max(r,t,n),s=NaN,l=i-a,c=(i+a)/2;return l?(s=r===i?(t-n)/l+6*(t0&&c<1?0:s,new R(s,l,c,e.opacity)}function R(e,r,t,n){this.h=+e,this.s=+r,this.l=+t,this.opacity=+n}function j(e,r,t){return 255*(e<60?r+(t-r)*e/60:e<180?t:e<240?r+(t-r)*(240-e)/60:r)}n(o,k,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:v,formatHex:v,formatHsl:function(){return z(this).formatHsl()},formatRgb:x,toString:x}),n(A,F,a(o,{brighter:function(e){return e=null==e?s:Math.pow(s,e),new A(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?i:Math.pow(i,e),new A(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:E,formatHex:E,formatRgb:_,toString:_})),n(R,(function(e,r,t,n){return 1===arguments.length?z(e):new R(e,r,t,null==n?1:n)}),a(o,{brighter:function(e){return e=null==e?s:Math.pow(s,e),new R(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?i:Math.pow(i,e),new R(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),r=isNaN(e)||isNaN(this.s)?0:this.s,t=this.l,n=t+(t<.5?t:1-t)*r,a=2*t-n;return new A(j(e>=240?e-240:e+120,a,n),j(e,a,n),j(e<120?e+240:e-120,a,n),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}))},57631:function(e,r){"use strict";r.Z=function(e){return function(){return e}}},13311:function(e,r,t){"use strict";function n(e,r){return e=+e,r=+r,function(t){return e*(1-t)+r*t}}t.d(r,{Z:function(){return n}})},20439:function(e,r,t){"use strict";t.d(r,{ZP:function(){return c}});var n=t(94798);function a(e,r,t,n,a){var o=e*e,i=o*e;return((1-3*e+3*o-i)*r+(4-6*o+3*i)*t+(1+3*e+3*o-3*i)*n+i*a)/6}var o=t(57631);function i(e,r){return function(t){return e+t*r}}function s(e){return 1===(e=+e)?l:function(r,t){return t-r?function(e,r,t){return e=Math.pow(e,t),r=Math.pow(r,t)-e,t=1/t,function(n){return Math.pow(e+n*r,t)}}(r,t,e):(0,o.Z)(isNaN(r)?t:r)}}function l(e,r){var t=r-e;return t?i(e,t):(0,o.Z)(isNaN(e)?r:e)}var c=function e(r){var t=s(r);function a(e,r){var a=t((e=(0,n.B8)(e)).r,(r=(0,n.B8)(r)).r),o=t(e.g,r.g),i=t(e.b,r.b),s=l(e.opacity,r.opacity);return function(r){return e.r=a(r),e.g=o(r),e.b=i(r),e.opacity=s(r),e+""}}return a.gamma=e,a}(1);function u(e){return function(r){var t,a,o=r.length,i=new Array(o),s=new Array(o),l=new Array(o);for(t=0;t=1?(t=1,r-1):Math.floor(t*r),o=e[n],i=e[n+1],s=n>0?e[n-1]:2*o-i,l=nl&&(s=r.slice(l,s),u[c]?u[c]+=s:u[++c]=s),(t=t[0])===(i=i[0])?u[c]?u[c]+=i:u[++c]=i:(u[++c]=null,d.push({i:c,x:(0,n.Z)(t,i)})),l=o.lastIndex;return l1&&(t-=1),t<1/6?e+6*(r-e)*t:t<.5?r:t<2/3?e+(r-e)*(2/3-t)*6:e}if(e=j(e,360),r=j(r,100),t=j(t,100),0===r)n=a=o=t;else{var s=t<.5?t*(1+r):t+r-t*r,l=2*t-s;n=i(l,s,e+1/3),a=i(l,s,e),o=i(l,s,e-1/3)}return{r:255*n,g:255*a,b:255*o}}(e.h,n,l),d=!0,f="hsl"),e.hasOwnProperty("a")&&(t=e.a));var b,g,p;return t=R(t),{ok:d,format:e.format||f,r:c(255,u(r.r,0)),g:c(255,u(r.g,0)),b:c(255,u(r.b,0)),a:t}}(e);this._originalInput=e,this._r=t.r,this._g=t.g,this._b=t.b,this._a=t.a,this._roundA=l(100*this._a)/100,this._format=r.format||t.format,this._gradientType=r.gradientType,this._r<1&&(this._r=l(this._r)),this._g<1&&(this._g=l(this._g)),this._b<1&&(this._b=l(this._b)),this._ok=t.ok,this._tc_id=s++}function b(e,r,t){e=j(e,255),r=j(r,255),t=j(t,255);var n,a,o=u(e,r,t),i=c(e,r,t),s=(o+i)/2;if(o==i)n=a=0;else{var l=o-i;switch(a=s>.5?l/(2-o-i):l/(o+i),o){case e:n=(r-t)/l+(r>1)+720)%360;--r;)n.h=(n.h+a)%360,o.push(f(n));return o}function B(e,r){r=r||6;for(var t=f(e).toHsv(),n=t.h,a=t.s,o=t.v,i=[],s=1/r;r--;)i.push(f({h:n,s:a,v:o})),o=(o+s)%1;return i}f.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,r,t,n=this.toRgb();return e=n.r/255,r=n.g/255,t=n.b/255,.2126*(e<=.03928?e/12.92:a.pow((e+.055)/1.055,2.4))+.7152*(r<=.03928?r/12.92:a.pow((r+.055)/1.055,2.4))+.0722*(t<=.03928?t/12.92:a.pow((t+.055)/1.055,2.4))},setAlpha:function(e){return this._a=R(e),this._roundA=l(100*this._a)/100,this},toHsv:function(){var e=g(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=g(this._r,this._g,this._b),r=l(360*e.h),t=l(100*e.s),n=l(100*e.v);return 1==this._a?"hsv("+r+", "+t+"%, "+n+"%)":"hsva("+r+", "+t+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var e=b(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=b(this._r,this._g,this._b),r=l(360*e.h),t=l(100*e.s),n=l(100*e.l);return 1==this._a?"hsl("+r+", "+t+"%, "+n+"%)":"hsla("+r+", "+t+"%, "+n+"%, "+this._roundA+")"},toHex:function(e){return p(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,r,t,n,a){var o=[P(l(e).toString(16)),P(l(r).toString(16)),P(l(t).toString(16)),P(M(n))];if(a&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1))return o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0);return o.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:l(this._r),g:l(this._g),b:l(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+l(this._r)+", "+l(this._g)+", "+l(this._b)+")":"rgba("+l(this._r)+", "+l(this._g)+", "+l(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:l(100*j(this._r,255))+"%",g:l(100*j(this._g,255))+"%",b:l(100*j(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+l(100*j(this._r,255))+"%, "+l(100*j(this._g,255))+"%, "+l(100*j(this._b,255))+"%)":"rgba("+l(100*j(this._r,255))+"%, "+l(100*j(this._g,255))+"%, "+l(100*j(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(z[p(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var r="#"+h(this._r,this._g,this._b,this._a),t=r,n=this._gradientType?"GradientType = 1, ":"";if(e){var a=f(e);t="#"+h(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+r+",endColorstr="+t+")"},toString:function(e){var r=!!e;e=e||this._format;var t=!1,n=this._a<1&&this._a>=0;return r||!n||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(t=this.toRgbString()),"prgb"===e&&(t=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(t=this.toHexString()),"hex3"===e&&(t=this.toHexString(!0)),"hex4"===e&&(t=this.toHex8String(!0)),"hex8"===e&&(t=this.toHex8String()),"name"===e&&(t=this.toName()),"hsl"===e&&(t=this.toHslString()),"hsv"===e&&(t=this.toHsvString()),t||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return f(this.toString())},_applyModification:function(e,r){var t=e.apply(null,[this].concat([].slice.call(r)));return this._r=t._r,this._g=t._g,this._b=t._b,this.setAlpha(t._a),this},lighten:function(){return this._applyModification(x,arguments)},brighten:function(){return this._applyModification(k,arguments)},darken:function(){return this._applyModification(w,arguments)},desaturate:function(){return this._applyModification(m,arguments)},saturate:function(){return this._applyModification(y,arguments)},greyscale:function(){return this._applyModification(v,arguments)},spin:function(){return this._applyModification(S,arguments)},_applyCombination:function(e,r){return e.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(_,arguments)},complement:function(){return this._applyCombination(C,arguments)},monochromatic:function(){return this._applyCombination(B,arguments)},splitcomplement:function(){return this._applyCombination(E,arguments)},triad:function(){return this._applyCombination(F,arguments)},tetrad:function(){return this._applyCombination(A,arguments)}},f.fromRatio=function(e,r){if("object"==typeof e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]="a"===n?e[n]:I(e[n]));e=t}return f(e,r)},f.equals=function(e,r){return!(!e||!r)&&f(e).toRgbString()==f(r).toRgbString()},f.random=function(){return f.fromRatio({r:d(),g:d(),b:d()})},f.mix=function(e,r,t){t=0===t?0:t||50;var n=f(e).toRgb(),a=f(r).toRgb(),o=t/100;return f({r:(a.r-n.r)*o+n.r,g:(a.g-n.g)*o+n.g,b:(a.b-n.b)*o+n.b,a:(a.a-n.a)*o+n.a})},f.readability=function(e,r){var t=f(e),n=f(r);return(a.max(t.getLuminance(),n.getLuminance())+.05)/(a.min(t.getLuminance(),n.getLuminance())+.05)},f.isReadable=function(e,r,t){var n,a,o=f.readability(e,r);switch(a=!1,(n=function(e){var r,t;r=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),t=(e.size||"small").toLowerCase(),"AA"!==r&&"AAA"!==r&&(r="AA");"small"!==t&&"large"!==t&&(t="small");return{level:r,size:t}}(t)).level+n.size){case"AAsmall":case"AAAlarge":a=o>=4.5;break;case"AAlarge":a=o>=3;break;case"AAAsmall":a=o>=7}return a},f.mostReadable=function(e,r,t){var n,a,o,i,s=null,l=0;a=(t=t||{}).includeFallbackColors,o=t.level,i=t.size;for(var c=0;cl&&(l=n,s=f(r[c]));return f.isReadable(e,s,{level:o,size:i})||!a?s:(t.includeFallbackColors=!1,f.mostReadable(e,["#fff","#000"],t))};var D=f.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},z=f.hexNames=function(e){var r={};for(var t in e)e.hasOwnProperty(t)&&(r[e[t]]=t);return r}(D);function R(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function j(e,r){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var t=function(e){return"string"===typeof e&&-1!=e.indexOf("%")}(e);return e=c(r,u(0,parseFloat(e))),t&&(e=parseInt(e*r,10)/100),a.abs(e-r)<1e-6?1:e%r/parseFloat(r)}function O(e){return c(1,u(0,e))}function T(e){return parseInt(e,16)}function P(e){return 1==e.length?"0"+e:""+e}function I(e){return e<=1&&(e=100*e+"%"),e}function M(e){return a.round(255*parseFloat(e)).toString(16)}function W(e){return T(e)/255}var J=function(){var e="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",r="[\\s|\\(]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")\\s*\\)?",t="[\\s|\\(]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")\\s*\\)?";return{CSS_UNIT:new RegExp(e),rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+t),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+t),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"+t),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function N(e){return!!J.CSS_UNIT.exec(e)}e.exports?e.exports=f:void 0===(n=function(){return f}.call(r,t,r,e))||(e.exports=n)}(Math)},4942:function(e,r,t){"use strict";function n(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}t.d(r,{Z:function(){return n}})},87462:function(e,r,t){"use strict";function n(){return(n=Object.assign||function(e){for(var r=1;rdocument.documentElement.style.getPropertyValue("--chakra-ui-color-mode"),g=e=>{a.jU&&document.documentElement.style.setProperty("--chakra-ui-color-mode",e)},p=()=>"undefined"!==typeof Storage,h="chakra-ui-color-mode",m={get(e){if(!p())return e;try{var r=localStorage.getItem(h);return null!=r?r:e}catch(t){return n.Ts&&console.log(t),e}},set(e){if(p())try{localStorage.setItem(h,e)}catch(r){n.Ts&&console.log(r)}},type:"localStorage"};var y=i.createContext({});n.Ts&&(y.displayName="ColorModeContext");var v=()=>{var e=i.useContext(y);if(void 0===e)throw new Error("useColorMode must be used within a ColorModeProvider");return e};function x(e){var{value:r,children:t,options:{useSystemColorMode:n,initialColorMode:s},colorModeManager:l=m}=e,[c,p]=i.useState("cookie"===l.type?l.get(s):s);i.useEffect((()=>{if(a.jU&&"localStorage"===l.type){var e=n?f(s):b()||l.get();e&&p(e)}}),[l,n,s]),i.useEffect((()=>{var e="dark"===c;u(e),g(e?"dark":"light")}),[c]);var h=i.useCallback((e=>{l.set(e),p(e)}),[l]),v=i.useCallback((()=>{h("light"===c?"dark":"light")}),[c,h]);i.useEffect((()=>{var e;return n&&(e=function(e){if(!("matchMedia"in window))return o.ZT;var r=window.matchMedia(d),t=()=>{e(r.matches?"dark":"light")};return t(),r.addListener(t),()=>{r.removeListener(t)}}(h)),()=>{e&&n&&e()}}),[h,n]);var x=i.useMemo((()=>({colorMode:null!=r?r:c,toggleColorMode:r?o.ZT:v,setColorMode:r?o.ZT:h})),[c,h,v,r]);return i.createElement(y.Provider,{value:x},t)}n.Ts&&(x.displayName="ColorModeProvider");n.Ts;n.Ts},94577:function(e,r,t){"use strict";t.d(r,{vc:function(){return i},Me:function(){return s},ZS:function(){return l}});var n=t(67294),a={prefix:Math.round(1e10*Math.random()),current:0},o=n.createContext(a),i=n.memo((e=>{var{children:r}=e,t=n.useContext(o),i=t===a,s=n.useMemo((()=>({prefix:i?0:++t.prefix,current:0})),[i,t]);return n.createElement(o.Provider,{value:s},r)}));function s(e,r){var t=n.useContext(o);return n.useMemo((()=>e||[r,t.prefix,++t.current].filter(Boolean).join("-")),[e,r])}function l(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),a=1;at.map((e=>e+"-"+o))),[o,t])}},34288:function(e,r,t){"use strict";t.d(r,{L:function(){return s},h:function(){return l}});var n=t(73808),a=t(28500),o=t(67294),[i,s]=(0,a.k)({strict:!1,name:"PortalManagerContext"});function l(e){var{children:r,zIndex:t}=e;return o.createElement(i,{value:{zIndex:t}},r)}n.Ts&&(l.displayName="PortalManager")},28500:function(e,r,t){"use strict";t.d(r,{k:function(){return a}});var n=t(67294);function a(e){void 0===e&&(e={});var{strict:r=!0,errorMessage:t="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:a}=e,o=n.createContext(void 0);return o.displayName=a,[o.Provider,function e(){var a=n.useContext(o);if(!a&&r){var i=new Error(t);throw i.name="ContextError",null==Error.captureStackTrace||Error.captureStackTrace(i,e),i}return a},o]}},13205:function(e,r,t){"use strict";t.d(r,{Oq:function(){return D},Cg:function(){return z},$_:function(){return R},cE:function(){return j},hX:function(){return O},GQ:function(){return T},eC:function(){return P},Mw:function(){return I},bK:function(){return M},pb:function(){return W},o_:function(){return $},FK:function(){return Z},v_:function(){return V},Dh:function(){return q},QX:function(){return G},vs:function(){return Y},eR:function(){return X},cp:function(){return U}});var n=t(73808);function a(e){var{scale:r,transform:t,compose:a}=e;return(e,o)=>{var i,s=((e,r)=>t=>{var a=String(r),o=e?e+"."+a:a;return(0,n.Kn)(t.__cssMap)&&o in t.__cssMap?t.__cssMap[o].varRef:r})(r,e)(o),l=null!=(i=null==t?void 0:t(s,o))?i:s;return a&&(l=a(l,o)),l}}function o(e,r){return t=>{var n={property:t,scale:e};return n.transform=a({scale:e,transform:r}),n}}var i=e=>{var{rtl:r,ltr:t}=e;return e=>"rtl"===e.direction?r:t};var s=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"];var l={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")},c={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"};var u={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},d="& > :not(style) ~ :not(style)",f={[d]:{marginInlineStart:"calc(var(--chakra-space-x) * calc(1 - var(--chakra-space-x-reverse)))",marginInlineEnd:"calc(var(--chakra-space-x) * var(--chakra-space-x-reverse))"}},b={[d]:{marginTop:"calc(var(--chakra-space-y) * calc(1 - var(--chakra-space-y-reverse)))",marginBottom:"calc(var(--chakra-space-y) * var(--chakra-space-y-reverse))"}};function g(e,r){g=function(e,r){return new o(e,void 0,r)};var t=h(RegExp),n=RegExp.prototype,a=new WeakMap;function o(e,r,n){var o=t.call(this,e,r);return a.set(o,n||a.get(e)),o}function i(e,r){var t=a.get(r);return Object.keys(t).reduce((function(r,n){return r[n]=e[t[n]],r}),Object.create(null))}return p(o,t),o.prototype.exec=function(e){var r=n.exec.call(this,e);return r&&(r.groups=i(r,this)),r},o.prototype[Symbol.replace]=function(e,r){if("string"===typeof r){var t=a.get(this);return n[Symbol.replace].call(this,e,r.replace(/\$<([^>]+)>/g,(function(e,r){return"$"+t[r]})))}if("function"===typeof r){var o=this;return n[Symbol.replace].call(this,e,(function(){var e=[];return e.push.apply(e,arguments),"object"!==typeof e[e.length-1]&&e.push(i(e,o)),r.apply(this,e)}))}return n[Symbol.replace].call(this,e,r)},g.apply(this,arguments)}function p(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&v(e,r)}function h(e){var r="function"===typeof Map?new Map:void 0;return(h=function(e){if(null===e||(t=e,-1===Function.toString.call(t).indexOf("[native code]")))return e;var t;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof r){if(r.has(e))return r.get(e);r.set(e,n)}function n(){return m(e,arguments,x(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),v(n,e)})(e)}function m(e,r,t){return(m=y()?Reflect.construct:function(e,r,t){var n=[null];n.push.apply(n,r);var a=new(Function.bind.apply(e,n));return t&&v(a,t.prototype),a}).apply(null,arguments)}function y(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function v(e,r){return(v=Object.setPrototypeOf||function(e,r){return e.__proto__=r,e})(e,r)}function x(e){return(x=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var k={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},w=new Set(Object.values(k)),S=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),C=e=>e.trim();var F=e=>r=>e+"("+r+")",A={filter:e=>"auto"!==e?e:l,backdropFilter:e=>"auto"!==e?e:c,ring:e=>function(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}(A.px(e)),bgClip:e=>"text"===e?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e},transform:e=>"auto"===e?["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...s].join(" "):"auto-gpu"===e?["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...s].join(" "):e,px(e){if(null==e)return e;var{unitless:r}=(e=>{var r=parseFloat(e.toString()),t=e.toString().replace(String(r),"");return{unitless:!t,value:r,unit:t}})(e);return r||(0,n.hj)(e)?e+"px":e},fraction:e=>!(0,n.hj)(e)||e>1?e:100*e+"%",float:(e,r)=>"rtl"===r.direction?{left:"right",right:"left"}[e]:e,degree(e){if((0,n.FS)(e)||null==e)return e;var r=(0,n.HD)(e)&&!e.endsWith("deg");return(0,n.hj)(e)||r?e+"deg":e},gradient:(e,r)=>function(e,r){var t,n;if(null==e||S.has(e))return e;var a=g(/(^[\x2DA-Za-z]+)\(((.*))\)/g,{type:1,values:2}),{type:o,values:i}=null!=(t=null==(n=a.exec(e))?void 0:n.groups)?t:{};if(!o||!i)return e;var s=o.includes("-gradient")?o:o+"-gradient",[l,...c]=i.split(",").map(C).filter(Boolean);if(0===(null==c?void 0:c.length))return e;var u=l in k?k[l]:l;return c.unshift(u),s+"("+c.map((e=>{if(w.has(e))return e;var[t,n]=e.split(" "),a="colors."+t,o=a in r.__cssMap?r.__cssMap[a].varRef:t;return n?[o,n].join(" "):o})).join(", ")+")"}(e,null!=r?r:{}),blur:F("blur"),opacity:F("opacity"),brightness:F("brightness"),contrast:F("contrast"),dropShadow:F("drop-shadow"),grayscale:F("grayscale"),hueRotate:F("hue-rotate"),invert:F("invert"),saturate:F("saturate"),sepia:F("sepia"),bgImage:e=>null==e||E(e)||S.has(e)?e:"url("+e+")",outline(e){var r="0"===String(e)||"none"===String(e);return null!==e&&r?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){var r,{space:t,divide:n}=null!=(r=u[e])?r:{},a={flexDirection:e};return t&&(a[t]=1),n&&(a[n]=1),a}},E=e=>(0,n.HD)(e)&&e.includes("(")&&e.includes(")");function _(){return(_=Object.assign||function(e){for(var r=1;r({property:e,transform:A.degree}),prop:(e,r,t)=>_({property:e,scale:r},r&&{transform:a({scale:r,transform:t})}),propT:(e,r)=>({property:e,transform:r}),sizes:o("sizes",A.px),sizesT:o("sizes",A.fraction),shadows:o("shadows"),logical:function(e){var{property:r,scale:t,transform:n}=e;return{scale:t,property:i(r),transform:t?a({scale:t,compose:n}):n}},blur:o("blur",A.blur)},D={background:B.colors("background"),backgroundColor:B.colors("backgroundColor"),backgroundImage:B.propT("backgroundImage",A.bgImage),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:A.bgClip},bgSize:B.prop("backgroundSize"),bgPosition:B.prop("backgroundPosition"),bg:B.colors("background"),bgColor:B.colors("backgroundColor"),bgPos:B.prop("backgroundPosition"),bgRepeat:B.prop("backgroundRepeat"),bgAttachment:B.prop("backgroundAttachment"),bgGradient:B.propT("backgroundImage",A.gradient),bgClip:{transform:A.bgClip}};Object.assign(D,{bgImage:D.backgroundImage,bgImg:D.backgroundImage});var z={border:B.borders("border"),borderWidth:B.borderWidths("borderWidth"),borderStyle:B.borderStyles("borderStyle"),borderColor:B.colors("borderColor"),borderRadius:B.radii("borderRadius"),borderTop:B.borders("borderTop"),borderBlockStart:B.borders("borderBlockStart"),borderTopLeftRadius:B.radii("borderTopLeftRadius"),borderStartStartRadius:B.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:B.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:B.radii("borderTopRightRadius"),borderStartEndRadius:B.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:B.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:B.borders("borderRight"),borderInlineEnd:B.borders("borderInlineEnd"),borderBottom:B.borders("borderBottom"),borderBlockEnd:B.borders("borderBlockEnd"),borderBottomLeftRadius:B.radii("borderBottomLeftRadius"),borderBottomRightRadius:B.radii("borderBottomRightRadius"),borderLeft:B.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:B.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:B.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:B.borders(["borderLeft","borderRight"]),borderInline:B.borders("borderInline"),borderY:B.borders(["borderTop","borderBottom"]),borderBlock:B.borders("borderBlock"),borderTopWidth:B.borderWidths("borderTopWidth"),borderBlockStartWidth:B.borderWidths("borderBlockStartWidth"),borderTopColor:B.colors("borderTopColor"),borderBlockStartColor:B.colors("borderBlockStartColor"),borderTopStyle:B.borderStyles("borderTopStyle"),borderBlockStartStyle:B.borderStyles("borderBlockStartStyle"),borderBottomWidth:B.borderWidths("borderBottomWidth"),borderBlockEndWidth:B.borderWidths("borderBlockEndWidth"),borderBottomColor:B.colors("borderBottomColor"),borderBlockEndColor:B.colors("borderBlockEndColor"),borderBottomStyle:B.borderStyles("borderBottomStyle"),borderBlockEndStyle:B.borderStyles("borderBlockEndStyle"),borderLeftWidth:B.borderWidths("borderLeftWidth"),borderInlineStartWidth:B.borderWidths("borderInlineStartWidth"),borderLeftColor:B.colors("borderLeftColor"),borderInlineStartColor:B.colors("borderInlineStartColor"),borderLeftStyle:B.borderStyles("borderLeftStyle"),borderInlineStartStyle:B.borderStyles("borderInlineStartStyle"),borderRightWidth:B.borderWidths("borderRightWidth"),borderInlineEndWidth:B.borderWidths("borderInlineEndWidth"),borderRightColor:B.colors("borderRightColor"),borderInlineEndColor:B.colors("borderInlineEndColor"),borderRightStyle:B.borderStyles("borderRightStyle"),borderInlineEndStyle:B.borderStyles("borderInlineEndStyle"),borderTopRadius:B.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:B.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:B.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:B.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(z,{rounded:z.borderRadius,roundedTop:z.borderTopRadius,roundedTopLeft:z.borderTopLeftRadius,roundedTopRight:z.borderTopRightRadius,roundedTopStart:z.borderStartStartRadius,roundedTopEnd:z.borderStartEndRadius,roundedBottom:z.borderBottomRadius,roundedBottomLeft:z.borderBottomLeftRadius,roundedBottomRight:z.borderBottomRightRadius,roundedBottomStart:z.borderEndStartRadius,roundedBottomEnd:z.borderEndEndRadius,roundedLeft:z.borderLeftRadius,roundedRight:z.borderRightRadius,roundedStart:z.borderInlineStartRadius,roundedEnd:z.borderInlineEndRadius,borderStart:z.borderInlineStart,borderEnd:z.borderInlineEnd,borderTopStartRadius:z.borderStartStartRadius,borderTopEndRadius:z.borderStartEndRadius,borderBottomStartRadius:z.borderEndStartRadius,borderBottomEndRadius:z.borderEndEndRadius,borderStartRadius:z.borderInlineStartRadius,borderEndRadius:z.borderInlineEndRadius,borderStartWidth:z.borderInlineStartWidth,borderEndWidth:z.borderInlineEndWidth,borderStartColor:z.borderInlineStartColor,borderEndColor:z.borderInlineEndColor,borderStartStyle:z.borderInlineStartStyle,borderEndStyle:z.borderInlineEndStyle});var R={color:B.colors("color"),textColor:B.colors("color"),fill:B.colors("fill"),stroke:B.colors("stroke")},j={boxShadow:B.shadows("boxShadow"),mixBlendMode:!0,blendMode:B.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:B.prop("backgroundBlendMode"),opacity:!0};Object.assign(j,{shadow:j.boxShadow});var O={filter:{transform:A.filter},blur:B.blur("--chakra-blur"),brightness:B.propT("--chakra-brightness",A.brightness),contrast:B.propT("--chakra-contrast",A.contrast),hueRotate:B.degreeT("--chakra-hue-rotate"),invert:B.propT("--chakra-invert",A.invert),saturate:B.propT("--chakra-saturate",A.saturate),dropShadow:B.propT("--chakra-drop-shadow",A.dropShadow),backdropFilter:{transform:A.backdropFilter},backdropBlur:B.blur("--chakra-backdrop-blur"),backdropBrightness:B.propT("--chakra-backdrop-brightness",A.brightness),backdropContrast:B.propT("--chakra-backdrop-contrast",A.contrast),backdropHueRotate:B.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:B.propT("--chakra-backdrop-invert",A.invert),backdropSaturate:B.propT("--chakra-backdrop-saturate",A.saturate)},T={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:A.flexDirection},experimental_spaceX:{static:f,transform:a({scale:"space",transform:e=>null!==e?{"--chakra-space-x":e}:null})},experimental_spaceY:{static:b,transform:a({scale:"space",transform:e=>null!=e?{"--chakra-space-y":e}:null})},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:B.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0};Object.assign(T,{flexDir:T.flexDirection});var P={gridGap:B.space("gridGap"),gridColumnGap:B.space("gridColumnGap"),gridRowGap:B.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},I={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:A.outline},outlineOffset:!0,outlineColor:B.colors("outlineColor")},M={width:B.sizesT("width"),inlineSize:B.sizesT("inlineSize"),height:B.sizes("height"),blockSize:B.sizes("blockSize"),boxSize:B.sizes(["width","height"]),minWidth:B.sizes("minWidth"),minInlineSize:B.sizes("minInlineSize"),minHeight:B.sizes("minHeight"),minBlockSize:B.sizes("minBlockSize"),maxWidth:B.sizes("maxWidth"),maxInlineSize:B.sizes("maxInlineSize"),maxHeight:B.sizes("maxHeight"),maxBlockSize:B.sizes("maxBlockSize"),d:B.prop("display"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:B.propT("float",A.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(M,{w:M.width,h:M.height,minW:M.minWidth,maxW:M.maxWidth,minH:M.minHeight,maxH:M.maxHeight,overscroll:M.overscrollBehavior,overscrollX:M.overscrollBehaviorX,overscrollY:M.overscrollBehaviorY});var W={listStyleType:!0,listStylePosition:!0,listStylePos:B.prop("listStylePosition"),listStyleImage:!0,listStyleImg:B.prop("listStyleImage")},J=t(4651),N={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},H={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},L=(e,r,t)=>{var n={},a=(0,J.Wf)(e,r,{});for(var o in a){o in t&&null!=t[o]||(n[o]=a[o])}return n},$={srOnly:{transform:e=>!0===e?N:"focusable"===e?H:{}},layerStyle:{processResult:!0,transform:(e,r,t)=>L(r,"layerStyles."+e,t)},textStyle:{processResult:!0,transform:(e,r,t)=>L(r,"textStyles."+e,t)},apply:{processResult:!0,transform:(e,r,t)=>L(r,e,t)}},Z={position:!0,pos:B.prop("position"),zIndex:B.prop("zIndex","zIndices"),inset:B.spaceT(["top","right","bottom","left"]),insetX:B.spaceT(["left","right"]),insetInline:B.spaceT("insetInline"),insetY:B.spaceT(["top","bottom"]),insetBlock:B.spaceT("insetBlock"),top:B.spaceT("top"),insetBlockStart:B.spaceT("insetBlockStart"),bottom:B.spaceT("bottom"),insetBlockEnd:B.spaceT("insetBlockEnd"),left:B.spaceT("left"),insetInlineStart:B.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:B.spaceT("right"),insetInlineEnd:B.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(Z,{insetStart:Z.insetInlineStart,insetEnd:Z.insetInlineEnd});var V={ring:{transform:A.ring},ringColor:B.colors("--chakra-ring-color"),ringOffset:B.prop("--chakra-ring-offset-width"),ringOffsetColor:B.colors("--chakra-ring-offset-color"),ringInset:B.prop("--chakra-ring-inset")},q={margin:B.spaceT("margin"),marginTop:B.spaceT("marginTop"),marginBlockStart:B.spaceT("marginBlockStart"),marginRight:B.spaceT("marginRight"),marginInlineEnd:B.spaceT("marginInlineEnd"),marginBottom:B.spaceT("marginBottom"),marginBlockEnd:B.spaceT("marginBlockEnd"),marginLeft:B.spaceT("marginLeft"),marginInlineStart:B.spaceT("marginInlineStart"),marginX:B.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:B.spaceT("marginInline"),marginY:B.spaceT(["marginTop","marginBottom"]),marginBlock:B.spaceT("marginBlock"),padding:B.space("padding"),paddingTop:B.space("paddingTop"),paddingBlockStart:B.space("paddingBlockStart"),paddingRight:B.space("paddingRight"),paddingBottom:B.space("paddingBottom"),paddingBlockEnd:B.space("paddingBlockEnd"),paddingLeft:B.space("paddingLeft"),paddingInlineStart:B.space("paddingInlineStart"),paddingInlineEnd:B.space("paddingInlineEnd"),paddingX:B.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:B.space("paddingInline"),paddingY:B.space(["paddingTop","paddingBottom"]),paddingBlock:B.space("paddingBlock")};Object.assign(q,{m:q.margin,mt:q.marginTop,mr:q.marginRight,me:q.marginInlineEnd,marginEnd:q.marginInlineEnd,mb:q.marginBottom,ml:q.marginLeft,ms:q.marginInlineStart,marginStart:q.marginInlineStart,mx:q.marginX,my:q.marginY,p:q.padding,pt:q.paddingTop,py:q.paddingY,px:q.paddingX,pb:q.paddingBottom,pl:q.paddingLeft,ps:q.paddingInlineStart,paddingStart:q.paddingInlineStart,pr:q.paddingRight,pe:q.paddingInlineEnd,paddingEnd:q.paddingInlineEnd});var G={textDecorationColor:B.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:B.shadows("textShadow")},Y={clipPath:!0,transform:B.propT("transform",A.transform),transformOrigin:!0,translateX:B.spaceT("--chakra-translate-x"),translateY:B.spaceT("--chakra-translate-y"),skewX:B.degreeT("--chakra-skew-x"),skewY:B.degreeT("--chakra-skew-y"),scaleX:B.prop("--chakra-scale-x"),scaleY:B.prop("--chakra-scale-y"),scale:B.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:B.degreeT("--chakra-rotate")},X={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:B.prop("transitionDuration","transition.duration"),transitionProperty:B.prop("transitionProperty","transition.property"),transitionTimingFunction:B.prop("transitionTimingFunction","transition.easing")},U={fontFamily:B.prop("fontFamily","fonts"),fontSize:B.prop("fontSize","fontSizes",A.px),fontWeight:B.prop("fontWeight","fontWeights"),lineHeight:B.prop("lineHeight","lineHeights"),letterSpacing:B.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"},isTruncated:{transform(e){if(!0===e)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}}}},55608:function(e,r,t){"use strict";t.d(r,{c0:function(){return F}});var n=t(73808);function a(e){return(0,n.Kn)(e)&&e.reference?e.reference:String(e)}var o=function(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n{var r=a(e);return null==r||Number.isNaN(parseFloat(r))?l(r,-1):String(r).startsWith("-")?String(r).slice(1):"-"+r},d=Object.assign((e=>({add:function(){for(var r=arguments.length,t=new Array(r),n=0;nd(u(e)),toString:()=>e.toString()})),{add:i,subtract:s,multiply:l,divide:c,negate:u}),f=t(88456);function b(e){var r=function(e,r){return void 0===r&&(r="-"),e.replace(/\s+/g,r)}(e.toString());return r.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?r.replace(".","\\."):e}function g(e,r){return"var("+b(e)+(r?", "+r:"")+")"}function p(e,r){return void 0===r&&(r=""),"--"+function(e,r){return void 0===r&&(r=""),[r,b(e)].filter(Boolean).join("-")}(e,r)}function h(e,r,t){var n=p(e,t);return{variable:n,reference:g(n,r)}}function m(){return(m=Object.assign||function(e){for(var r=1;re(r,[...a,String(t)]))):(0,n.Kn)(t)?Object.fromEntries(Object.entries(t).map((r=>{var[t,n]=r;return[t,e(n,[...a,t])]}))):r(t,a)})(e)}(e,((e,n)=>{var a,[o]=n,i=null!=(a=v[o])?a:v.defaultHandler,{cssVars:s,cssMap:l}=i(n,e,r);Object.assign(t.cssVars,s),Object.assign(t.cssMap,l)})),t}var v={space:(e,r,t)=>{var n=v.defaultHandler(e,r,t),[a,...o]=e,i=a+".-"+o.join("."),s=e.join("-"),{variable:l,reference:c}=h(s,void 0,t.cssVarPrefix),u=d.negate(r),f=d.negate(c);return{cssVars:n.cssVars,cssMap:m({},n.cssMap,{[i]:{value:""+u,var:""+l,varRef:f}})}},defaultHandler:(e,r,t)=>{var n=e.join("."),a=e.join("-"),{variable:o,reference:i}=h(a,void 0,t.cssVarPrefix);return{cssVars:{[o]:r},cssMap:{[n]:{value:r,var:o,varRef:i}}}}},x=t(4651);var k=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur"];function w(e){var r=k;return(0,x.ei)(e,r)}function S(e){return function(e,r){if(null==e)return{};var t,n,a={},o=Object.keys(e);for(n=0;n=0||(a[t]=e[t]);return a}(e,["__cssMap","__cssVars","__breakpoints"])}function C(){return(C=Object.assign||function(e){for(var r=1;re.startsWith("--")&&(0,n.HD)(r)&&!(0,n.FS)(r),u=(e,r)=>{var t,n;if(null==r)return r;var a=r=>{var t,n;return null==(t=e.__cssMap)||null==(n=t[r])?void 0:n.varRef},o=e=>{var r;return null!=(r=a(e))?r:e},i=r.split(",").map((e=>e.trim())),[s,l]=i;return r=null!=(t=null!=(n=a(s))?n:o(l))?t:o(r)};function d(e){var{configs:r={},pseudos:t={},theme:o}=e;return function e(s,l){void 0===l&&(l=!1);var d=(0,a.Pu)(s,o),f=(e=>r=>{if(!r.__breakpoints)return e;var{isResponsive:t,toArrayValue:o,media:i}=r.__breakpoints,s={};for(var l in e){var c=(0,a.Pu)(e[l],r);if(null!=c)if(c=(0,n.Kn)(c)&&t(c)?o(c):c,Array.isArray(c))for(var u=c.slice(0,i.length).length,d=0;dr=>d({theme:r,pseudos:s.v,configs:l.Ul})(e)},9421:function(e,r,t){"use strict";t.d(r,{iv:function(){return n.i},isStyleProp:function(){return i.ZR},layoutPropNames:function(){return i.oE},propNames:function(){return i.cC},toCSSVar:function(){return s.c0}});t(13205);var n=t(33565),a=t(41664);t.o(a,"isStyleProp")&&t.d(r,{isStyleProp:function(){return a.isStyleProp}}),t.o(a,"layoutPropNames")&&t.d(r,{layoutPropNames:function(){return a.layoutPropNames}}),t.o(a,"propNames")&&t.d(r,{propNames:function(){return a.propNames}}),t.o(a,"toCSSVar")&&t.d(r,{toCSSVar:function(){return a.toCSSVar}}),t.o(a,"useTheme")&&t.d(r,{useTheme:function(){return a.useTheme}});var o=t(87759);t.o(o,"isStyleProp")&&t.d(r,{isStyleProp:function(){return o.isStyleProp}}),t.o(o,"layoutPropNames")&&t.d(r,{layoutPropNames:function(){return o.layoutPropNames}}),t.o(o,"propNames")&&t.d(r,{propNames:function(){return o.propNames}}),t.o(o,"toCSSVar")&&t.d(r,{toCSSVar:function(){return o.toCSSVar}}),t.o(o,"useTheme")&&t.d(r,{useTheme:function(){return o.useTheme}});var i=t(25503),s=t(55608)},28680:function(e,r,t){"use strict";t.d(r,{v:function(){return d},_:function(){return f}});var n=t(4651),a=e=>e+":focus &, "+e+"[data-focus] &",o=e=>e+":active &, "+e+"[data-active] &",i=e=>e+":disabled &, "+e+"[data-disabled] &",s=e=>e+":invalid &, "+e+"[data-invalid] &",l=e=>e+":checked &, "+e+"[data-checked] &",c=e=>u(e,"[role=group]","[data-group]",".group"),u=function(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;ne+":hover &, "+e+"[data-hover] &")),_groupFocus:c(a),_groupActive:c(o),_groupDisabled:c(i),_groupInvalid:c(s),_groupChecked:c(l),_placeholder:"&::placeholder",_fullScreen:"&:fullscreen",_selection:"&::selection",_rtl:"[dir=rtl] &",_mediaDark:"@media (prefers-color-scheme: dark)",_dark:".chakra-ui-dark &, [data-theme=dark] &, &[data-theme=dark]",_light:".chakra-ui-light &, [data-theme=light] &, &[data-theme=light]"},f=(0,n.Yd)(d)},25503:function(e,r,t){"use strict";t.d(r,{Ul:function(){return c},oE:function(){return d},cC:function(){return f},ZR:function(){return g}});var n=t(38554),a=t.n(n),o=t(4651),i=t(13205),s=t(28680);function l(){return(l=Object.assign||function(e){for(var r=1;re in b},41664:function(){},87759:function(){},29676:function(e,r,t){"use strict";t.d(r,{f6:function(){return d},Fg:function(){return f},Fo:function(){return b},yK:function(){return g},ZL:function(){return p}});var n=t(24738),a=t(9421),o=t(4651),i=t(80658),s=t(28500),l=t(30495),c=t(70917),u=t(67294),d=e=>{var{cssVarsRoot:r=":host, :root",theme:t,children:n}=e,o=u.useMemo((()=>(0,a.toCSSVar)(t)),[t]);return u.createElement(l.a,{theme:o},u.createElement(c.Global,{styles:e=>({[r]:e.__cssVars})}),n)};function f(){var e=u.useContext(l.T);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `` or ``");return e}var[b,g]=(0,s.k)({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "}),p=()=>{var{colorMode:e}=(0,n.If)();return u.createElement(c.Global,{styles:r=>{var t=(0,o.Wf)(r,"styles.global"),n=(0,i.Pu)(t,{theme:r,colorMode:e});if(n)return(0,a.iv)(n)(r)}})}},63108:function(e,r,t){"use strict";function n(e,r){return t=>"dark"===t.colorMode?r:e}function a(e){var{orientation:r,vertical:t,horizontal:n}=e;return r?"vertical"===r?t:n:{}}t.d(r,{xJ:function(){return n},fL:function(){return a}})},83035:function(e,r,t){"use strict";t.d(r,{Z:function(){return Dr}});var n={parts:["container","button","panel","icon"],baseStyle:{container:{borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},button:{transitionProperty:"common",transitionDuration:"normal",fontSize:"1rem",_focus:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:4,py:2},panel:{pt:2,px:4,pb:5},icon:{fontSize:"1.25em"}}},a=t(17621),o=t.n(a),i=t(4651),s=t(73808),l=(e,r,t)=>{var n=(0,i.Wf)(e,"colors."+r,r);return o()(n).isValid()?n:t},c=e=>r=>{var t=l(r,e);return o()(t).isDark()?"dark":"light"},u=(e,r)=>t=>{var n=l(t,e);return o()(n).setAlpha(r).toRgbString()};function d(e,r){return void 0===e&&(e="1rem"),void 0===r&&(r="rgba(255, 255, 255, 0.15)"),{backgroundImage:"linear-gradient(\n 45deg,\n "+r+" 25%,\n transparent 25%,\n transparent 50%,\n "+r+" 50%,\n "+r+" 75%,\n transparent 75%,\n transparent\n )",backgroundSize:e+" "+e}}function f(e){var r=o().random().toHexString();return!e||(0,s.Qr)(e)?r:e.string&&e.colors?function(e,r){var t=0;if(0===e.length)return r[0];for(var n=0;n>8*a&255).toString(16)).substr(-2)}return n}(e.string):e.colors&&!e.string?function(e){return e[Math.floor(Math.random()*e.length)]}(e.colors):r}var b=t(63108);function g(e){var{theme:r,colorScheme:t}=e,n=l(r,t+".100",t),a=u(t+".200",.16)(r);return(0,b.xJ)(n,a)(e)}var p={parts:["container","title","description","icon"],baseStyle:{container:{px:4,py:3},title:{fontWeight:"bold",lineHeight:6,marginEnd:2},description:{lineHeight:6},icon:{flexShrink:0,marginEnd:3,w:5,h:6}},variants:{subtle:function(e){var{colorScheme:r}=e;return{container:{bg:g(e)},icon:{color:(0,b.xJ)(r+".500",r+".200")(e)}}},"left-accent":function(e){var{colorScheme:r}=e;return{container:{paddingStart:3,borderStartWidth:"4px",borderStartColor:(0,b.xJ)(r+".500",r+".200")(e),bg:g(e)},icon:{color:(0,b.xJ)(r+".500",r+".200")(e)}}},"top-accent":function(e){var{colorScheme:r}=e;return{container:{pt:2,borderTopWidth:"4px",borderTopColor:(0,b.xJ)(r+".500",r+".200")(e),bg:g(e)},icon:{color:(0,b.xJ)(r+".500",r+".200")(e)}}},solid:function(e){var{colorScheme:r}=e;return{container:{bg:(0,b.xJ)(r+".500",r+".200")(e),color:(0,b.xJ)("white","gray.900")(e)}}}},defaultProps:{variant:"subtle",colorScheme:"blue"}},h=t(54681);function m(e){return{transform:"translate(25%, 25%)",borderRadius:"full",border:"0.2em solid",borderColor:(0,b.xJ)("white","gray.800")(e)}}function y(e){return{bg:(0,b.xJ)("gray.200","whiteAlpha.400")(e)}}function v(e){var{name:r,theme:t}=e,n=r?f({string:r}):"gray.400",a=(e=>r=>"dark"===c(e)(r))(n)(t),o="white";return a||(o="gray.800"),{bg:n,color:o,borderColor:(0,b.xJ)("white","gray.800")(e),verticalAlign:"top"}}function x(e){var r=h.Z[e];return{container:{width:e,height:e,fontSize:"calc("+(null!=r?r:e)+" / 2.5)"},excessLabel:{width:e,height:e},label:{fontSize:"calc("+(null!=r?r:e)+" / 2.5)",lineHeight:"100%"!==e?null!=r?r:e:void 0}}}var k={parts:["container","excessLabel","badge","label"],baseStyle:e=>({badge:m(e),excessLabel:y(e),container:v(e)}),sizes:{"2xs":x("4"),xs:x("6"),sm:x("8"),md:x("12"),lg:x("16"),xl:x("24"),"2xl":x("32"),full:x("100%")},defaultProps:{size:"md"}};var w={baseStyle:{px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold"},variants:{solid:function(e){var{colorScheme:r,theme:t}=e,n=u(r+".500",.6)(t);return{bg:(0,b.xJ)(r+".500",n)(e),color:(0,b.xJ)("white","whiteAlpha.800")(e)}},subtle:function(e){var{colorScheme:r,theme:t}=e,n=u(r+".200",.16)(t);return{bg:(0,b.xJ)(r+".100",n)(e),color:(0,b.xJ)(r+".800",r+".200")(e)}},outline:function(e){var{colorScheme:r,theme:t}=e,n=u(r+".200",.8)(t),a=l(t,r+".500"),o=(0,b.xJ)(a,n)(e);return{color:o,boxShadow:"inset 0 0 0px 1px "+o}}},defaultProps:{variant:"subtle",colorScheme:"gray"}},S={parts:["container","item","link","separator"],baseStyle:{link:{transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focus:{boxShadow:"outline"}}}};function C(){return(C=Object.assign||function(e){for(var r=1;r({icon:D,control:_(e),label:B}),sizes:{sm:{control:{h:3,w:3},label:{fontSize:"sm"},icon:{fontSize:"0.45rem"}},md:{control:{w:4,h:4},label:{fontSize:"md"},icon:{fontSize:"0.625rem"}},lg:{control:{w:5,h:5},label:{fontSize:"lg"},icon:{fontSize:"0.625rem"}}},defaultProps:{size:"md",colorScheme:"blue"}};var R={baseStyle:function(e){return{borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{bg:(0,b.xJ)("blackAlpha.100","whiteAlpha.100")(e)},_active:{bg:(0,b.xJ)("blackAlpha.200","whiteAlpha.200")(e)},_focus:{boxShadow:"outline"}}},sizes:{lg:{w:"40px",h:"40px",fontSize:"16px"},md:{w:"32px",h:"32px",fontSize:"12px"},sm:{w:"24px",h:"24px",fontSize:"10px"}},defaultProps:{size:"md"}},{variants:j,defaultProps:O}=w,T={baseStyle:{fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm"},variants:j,defaultProps:O},P={baseStyle:{w:"100%",mx:"auto",maxW:"60ch",px:"1rem"}},I={baseStyle:{opacity:.6,borderColor:"inherit"},variants:{solid:{borderStyle:"solid"},dashed:{borderStyle:"dashed"}},defaultProps:{variant:"solid"}},M={bg:"blackAlpha.600",zIndex:"modal"};function W(e){var{isCentered:r,scrollBehavior:t}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:r?"center":"flex-start",overflow:"inside"===t?"hidden":"auto"}}function J(e){var{scrollBehavior:r}=e;return{borderRadius:"md",bg:(0,b.xJ)("white","gray.700")(e),color:"inherit",my:"3.75rem",zIndex:"modal",maxH:"inside"===r?"calc(100% - 7.5rem)":void 0,boxShadow:(0,b.xJ)("lg","dark-lg")(e)}}var N={px:6,py:4,fontSize:"xl",fontWeight:"semibold"},H={position:"absolute",top:2,insetEnd:3};function L(e){var{scrollBehavior:r}=e;return{px:6,py:2,flex:1,overflow:"inside"===r?"auto":void 0}}var $={px:6,py:4};function Z(e){return"full"===e?{dialog:{maxW:"100vw",minH:"100vh"}}:{dialog:{maxW:e}}}var V={parts:["overlay","dialogContainer","dialog","header","closeButton","body","footer"],baseStyle:e=>({overlay:M,dialogContainer:W(e),dialog:J(e),header:N,closeButton:H,body:L(e),footer:$}),sizes:{xs:Z("xs"),sm:Z("sm"),md:Z("md"),lg:Z("lg"),xl:Z("xl"),"2xl":Z("2xl"),"3xl":Z("3xl"),"4xl":Z("4xl"),"5xl":Z("5xl"),"6xl":Z("6xl"),full:Z("full")},defaultProps:{size:"md"}};function q(){return(q=Object.assign||function(e){for(var r=1;r({overlay:Y,dialogContainer:X,dialog:U(e),header:K,closeButton:Q,body:ee,footer:re}),sizes:{xs:G("xs"),sm:G("md"),md:G("lg"),lg:G("2xl"),xl:G("4xl"),full:G("full")},defaultProps:{size:"xs"}},ne={parts:["preview","input"],baseStyle:{preview:{borderRadius:"md",py:"3px",transitionProperty:"common",transitionDuration:"normal"},input:{borderRadius:"md",py:"3px",transitionProperty:"common",transitionDuration:"normal",width:"full",_focus:{boxShadow:"outline"},_placeholder:{opacity:.6}}}};function ae(e){return{marginStart:1,color:(0,b.xJ)("red.500","red.300")(e)}}function oe(e){return{mt:2,color:(0,b.xJ)("gray.500","whiteAlpha.600")(e),lineHeight:"normal",fontSize:"sm"}}var ie={parts:["requiredIndicator","helperText"],baseStyle:e=>({requiredIndicator:ae(e),helperText:oe(e)})},se={baseStyle:{fontSize:"md",marginEnd:3,mb:2,fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}}},le={baseStyle:{fontFamily:"heading",fontWeight:"bold"},sizes:{"4xl":{fontSize:["6xl",null,"7xl"],lineHeight:1},"3xl":{fontSize:["5xl",null,"6xl"],lineHeight:1},"2xl":{fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]},xl:{fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]},lg:{fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]},md:{fontSize:"xl",lineHeight:1.2},sm:{fontSize:"md",lineHeight:1.2},xs:{fontSize:"sm",lineHeight:1.2}},defaultProps:{size:"xl"}},ce={lg:{fontSize:"lg",px:4,h:12,borderRadius:"md"},md:{fontSize:"md",px:4,h:10,borderRadius:"md"},sm:{fontSize:"sm",px:3,h:8,borderRadius:"sm"},xs:{fontSize:"xs",px:2,h:6,borderRadius:"sm"}};function ue(e){var{focusBorderColor:r,errorBorderColor:t}=e;return{focusBorderColor:r||(0,b.xJ)("blue.500","blue.300")(e),errorBorderColor:t||(0,b.xJ)("red.500","red.300")(e)}}var de={parts:["field","addon"],baseStyle:{field:{width:"100%",minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal"}},sizes:{lg:{field:ce.lg,addon:ce.lg},md:{field:ce.md,addon:ce.md},sm:{field:ce.sm,addon:ce.sm},xs:{field:ce.xs,addon:ce.xs}},variants:{outline:function(e){var{theme:r}=e,{focusBorderColor:t,errorBorderColor:n}=ue(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:(0,b.xJ)("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_disabled:{opacity:.4,cursor:"not-allowed"},_invalid:{borderColor:l(r,n),boxShadow:"0 0 0 1px "+l(r,n)},_focus:{zIndex:1,borderColor:l(r,t),boxShadow:"0 0 0 1px "+l(r,t)}},addon:{border:"1px solid",borderColor:(0,b.xJ)("inherit","whiteAlpha.50")(e),bg:(0,b.xJ)("gray.100","whiteAlpha.300")(e)}}},filled:function(e){var{theme:r}=e,{focusBorderColor:t,errorBorderColor:n}=ue(e);return{field:{border:"2px solid",borderColor:"transparent",bg:(0,b.xJ)("gray.100","whiteAlpha.50")(e),_hover:{bg:(0,b.xJ)("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_disabled:{opacity:.4,cursor:"not-allowed"},_invalid:{borderColor:l(r,n)},_focus:{bg:"transparent",borderColor:l(r,t)}},addon:{border:"2px solid",borderColor:"transparent",bg:(0,b.xJ)("gray.100","whiteAlpha.50")(e)}}},flushed:function(e){var{theme:r}=e,{focusBorderColor:t,errorBorderColor:n}=ue(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:0,px:0,bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:l(r,n),boxShadow:"0px 1px 0px 0px "+l(r,n)},_focus:{borderColor:l(r,t),boxShadow:"0px 1px 0px 0px "+l(r,t)}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:0,px:0,bg:"transparent"}}},unstyled:{field:{bg:"transparent",px:0,height:"auto"},addon:{bg:"transparent",px:0,height:"auto"}}},defaultProps:{size:"md",variant:"outline"}};var fe={baseStyle:function(e){return{bg:(0,b.xJ)("gray.100","whiteAlpha")(e),borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"}}},be={baseStyle:{transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focus:{boxShadow:"outline"}}},ge={parts:["container","item","icon"],baseStyle:{container:{},item:{},icon:{marginEnd:"0.5rem",display:"inline",verticalAlign:"text-bottom"}}};function pe(e){return{bg:(0,b.xJ)("#fff","gray.700")(e),boxShadow:(0,b.xJ)("sm","dark-lg")(e),color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px"}}function he(e){return{py:"0.4rem",px:"0.8rem",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{bg:(0,b.xJ)("gray.100","whiteAlpha.100")(e)},_active:{bg:(0,b.xJ)("gray.200","whiteAlpha.200")(e)},_expanded:{bg:(0,b.xJ)("gray.100","whiteAlpha.100")(e)},_disabled:{opacity:.4,cursor:"not-allowed"}}}var me,ye={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},ve={opacity:.6},xe={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"0.5rem",opacity:.6},ke={transitionProperty:"common",transitionDuration:"normal"},we={parts:["item","command","list","button","groupTitle","divider"],baseStyle:e=>({button:ke,list:pe(e),item:he(e),groupTitle:ye,command:ve,divider:xe})},Se=t(35268);function Ce(){return(Ce=Object.assign||function(e){for(var r=1;r({root:Ee,field:_e,stepperGroup:Be,stepper:De(e)}),sizes:{xs:ze("xs"),sm:ze("sm"),md:ze("md"),lg:ze("lg")},variants:Fe,defaultProps:Ae};function je(){return(je=Object.assign||function(e){for(var r=1;rde.variants.outline(e).field,flushed:e=>de.variants.flushed(e).field,filled:e=>de.variants.filled(e).field,unstyled:de.variants.unstyled.field},defaultProps:de.defaultProps},Te={zIndex:10};function Pe(e){return{"--popover-bg":"colors."+(0,b.xJ)("white","gray.700")(e),bg:"var(--popover-bg)","--popper-arrow-bg":"var(--popover-bg)","--popper-arrow-shadow-color":"colors."+(0,b.xJ)("gray.200","whiteAlpha.300")(e),width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focus:{outline:0,boxShadow:"outline"}}}var Ie={px:3,py:2,borderBottomWidth:"1px"},Me={px:3,py:2},We={px:3,py:2,borderTopWidth:"1px"},Je={parts:["popper","content","header","body","footer","arrow"],baseStyle:e=>({popper:Te,content:Pe(e),header:Ie,body:Me,footer:We,arrow:{}})};function Ne(){return(Ne=Object.assign||function(e){for(var r=1;r({label:He,filledTrack:$e(e),track:Le(e)}),defaultProps:{size:"md",colorScheme:"blue"}};function Ve(){return(Ve=Object.assign||function(e){for(var r=1;r({label:z.baseStyle(e).label,control:qe(e)}),sizes:{md:{control:{w:4,h:4},label:{fontSize:"md"}},lg:{control:{w:5,h:5},label:{fontSize:"lg"}},sm:{control:{width:3,height:3},label:{fontSize:"sm"}}},defaultProps:{size:"md",colorScheme:"blue"}},Ye=t(38554);function Xe(){return(Xe=Object.assign||function(e){for(var r=1;r option, > optgroup":{bg:(0,b.xJ)("white","gray.700")(e)}})}var Ke={width:"1.5rem",height:"100%",insetEnd:"0.5rem",position:"relative",color:"currentColor",fontSize:"1.25rem",_disabled:{opacity:.5}},Qe={parts:["field","icon"],baseStyle:e=>({field:Ue(e),icon:Ke}),sizes:t.n(Ye)()({},de.sizes,{xs:{icon:{insetEnd:"0.25rem"}}}),variants:de.variants,defaultProps:de.defaultProps},er=t(70917),rr=(e,r)=>(0,er.keyframes)({from:{borderColor:e,background:e},to:{borderColor:r,background:r}}),tr={baseStyle:e=>{var r=(0,b.xJ)("gray.100","gray.800")(e),t=(0,b.xJ)("gray.400","gray.600")(e),{startColor:n=r,endColor:a=t,speed:o,theme:i}=e,s=l(i,n),c=l(i,a);return{opacity:.7,borderRadius:"2px",borderColor:s,background:c,animation:o+"s linear infinite alternate "+rr(s,c)}}},nr={baseStyle:e=>({borderRadius:"md",fontWeight:"semibold",_focus:{boxShadow:"outline",padding:"1rem",position:"fixed",top:"1.5rem",insetStart:"1.5rem",bg:(0,b.xJ)("white","gray.700")(e)}})};function ar(){return(ar=Object.assign||function(e){for(var r=1;r{var{orientation:r}=e;return ar({_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"}},(0,b.fL)({orientation:r,vertical:{h:"100%"},horizontal:{w:"100%"}}))};function ir(e){return{borderRadius:"sm",bg:(0,b.xJ)("gray.200","whiteAlpha.200")(e),_disabled:{bg:(0,b.xJ)("gray.300","whiteAlpha.300")(e)}}}function sr(e){return ar({zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focus:{boxShadow:"outline"},_disabled:{bg:"gray.300"}},function(e){return(0,b.fL)({orientation:e.orientation,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}})}(e))}function lr(e){var{colorScheme:r}=e;return{bg:(0,b.xJ)(r+".500",r+".200")(e)}}var cr={parts:["container","thumb","track","filledTrack"],sizes:{lg:function(e){return{thumb:{w:"16px",h:"16px"},track:(0,b.fL)({orientation:e.orientation,horizontal:{h:"4px"},vertical:{w:"4px"}})}},md:function(e){return{thumb:{w:"14px",h:"14px"},track:(0,b.fL)({orientation:e.orientation,horizontal:{h:"4px"},vertical:{w:"4px"}})}},sm:function(e){return{thumb:{w:"10px",h:"10px"},track:(0,b.fL)({orientation:e.orientation,horizontal:{h:"2px"},vertical:{w:"2px"}})}}},baseStyle:e=>({container:or(e),track:ir(e),thumb:sr(e),filledTrack:lr(e)}),defaultProps:{size:"md",colorScheme:"blue"}},ur={baseStyle:{width:"var(--spinner-size)",height:"var(--spinner-size)"},sizes:{xs:{"--spinner-size":"0.75rem"},sm:{"--spinner-size":"1rem"},md:{"--spinner-size":"1.5rem"},lg:{"--spinner-size":"2rem"},xl:{"--spinner-size":"3rem"}},defaultProps:{size:"md"}},dr={parts:["label","number","icon","helpText"],baseStyle:{label:{fontWeight:"medium"},helpText:{opacity:.8,marginBottom:2},number:{verticalAlign:"baseline",fontWeight:"semibold"},icon:{marginEnd:1,w:"14px",h:"14px",verticalAlign:"middle"}},sizes:{md:{label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}}},defaultProps:{size:"md"}};function fr(e){var{colorScheme:r}=e;return{borderRadius:"full",p:"2px",width:"var(--slider-track-width)",height:"var(--slider-track-height)",transitionProperty:"common",transitionDuration:"fast",bg:(0,b.xJ)("gray.300","whiteAlpha.400")(e),_focus:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{bg:(0,b.xJ)(r+".500",r+".200")(e)}}}var br={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:"var(--slider-track-height)",height:"var(--slider-track-height)",_checked:{transform:"translateX(var(--slider-thumb-x))"}},gr={parts:["container","track","thumb"],baseStyle:e=>({container:{"--slider-track-diff":"calc(var(--slider-track-width) - var(--slider-track-height))","--slider-thumb-x":"var(--slider-track-diff)",_rtl:{"--slider-thumb-x":"calc(-1 * var(--slider-track-diff))"}},track:fr(e),thumb:br}),sizes:{sm:{container:{"--slider-track-width":"1.375rem","--slider-track-height":"0.75rem"}},md:{container:{"--slider-track-width":"1.875rem","--slider-track-height":"1rem"}},lg:{container:{"--slider-track-width":"2.875rem","--slider-track-height":"1.5rem"}}},defaultProps:{size:"md",colorScheme:"blue"}};function pr(){return(pr=Object.assign||function(e){for(var r=1;r{var{colorScheme:r}=e;return{th:pr({color:(0,b.xJ)("gray.600","gray.400")(e),borderBottom:"1px",borderColor:(0,b.xJ)(r+".100",r+".700")(e)},hr),td:pr({borderBottom:"1px",borderColor:(0,b.xJ)(r+".100",r+".700")(e)},hr),caption:{color:(0,b.xJ)("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}},striped:e=>{var{colorScheme:r}=e;return{th:pr({color:(0,b.xJ)("gray.600","gray.400")(e),borderBottom:"1px",borderColor:(0,b.xJ)(r+".100",r+".700")(e)},hr),td:pr({borderBottom:"1px",borderColor:(0,b.xJ)(r+".100",r+".700")(e)},hr),caption:{color:(0,b.xJ)("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:(0,b.xJ)(r+".100",r+".700")(e)},td:{background:(0,b.xJ)(r+".100",r+".700")(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}},unstyled:{}},sizes:{sm:{th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}},md:{th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}},lg:{th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}}},defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}};function yr(e){var{orientation:r}=e;return{display:"vertical"===r?"flex":"block"}}function vr(e){var{isFitted:r}=e;return{flex:r?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focus:{zIndex:1,boxShadow:"outline"}}}function xr(e){var{align:r="start",orientation:t}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[r],flexDirection:"vertical"===t?"column":"row"}}var kr={p:4};var wr={parts:["root","tablist","tab","tabpanels","tabpanel","indicator"],baseStyle:e=>({root:yr(e),tab:vr(e),tablist:xr(e),tabpanel:kr}),sizes:{sm:{tab:{py:1,px:4,fontSize:"sm"}},md:{tab:{fontSize:"md",py:2,px:4}},lg:{tab:{fontSize:"lg",py:3,px:4}}},variants:{line:function(e){var{colorScheme:r,orientation:t}=e,n="vertical"===t?"borderStart":"borderBottom";return{tablist:{[n]:"2px solid",borderColor:"inherit"},tab:{[n]:"2px solid",borderColor:"transparent",["vertical"===t?"marginStart":"marginBottom"]:"-2px",_selected:{color:(0,b.xJ)(r+".600",r+".300")(e),borderColor:"currentColor"},_active:{bg:(0,b.xJ)("gray.200","whiteAlpha.300")(e)},_disabled:{opacity:.4,cursor:"not-allowed"}}}},enclosed:function(e){var{colorScheme:r}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",_selected:{color:(0,b.xJ)(r+".600",r+".300")(e),borderColor:"inherit",borderBottomColor:(0,b.xJ)("white","gray.800")(e)}},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}},"enclosed-colored":function(e){var{colorScheme:r}=e;return{tab:{border:"1px solid",borderColor:"inherit",bg:(0,b.xJ)("gray.50","whiteAlpha.50")(e),mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{bg:(0,b.xJ)("#fff","gray.800")(e),color:(0,b.xJ)(r+".600",r+".300")(e),borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"}},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}},"soft-rounded":function(e){var{colorScheme:r,theme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:l(t,r+".700"),bg:l(t,r+".100")}}}},"solid-rounded":function(e){var{colorScheme:r}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:(0,b.xJ)("gray.600","inherit")(e),_selected:{color:(0,b.xJ)("#fff","gray.800")(e),bg:(0,b.xJ)(r+".600",r+".300")(e)}}}},unstyled:{}},defaultProps:{size:"md",variant:"line",colorScheme:"blue"}},Sr={parts:["container","label","closeButton"],variants:{subtle:e=>({container:w.variants.subtle(e)}),solid:e=>({container:w.variants.solid(e)}),outline:e=>({container:w.variants.outline(e)})},baseStyle:{container:{fontWeight:"medium",lineHeight:1.2,outline:0,_focus:{boxShadow:"outline"}},label:{lineHeight:1.2},closeButton:{fontSize:"18px",w:"1.25rem",h:"1.25rem",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"0.375rem",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focus:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}}},sizes:{sm:{container:{minH:"1.25rem",minW:"1.25rem",fontSize:"xs",px:2,borderRadius:"md"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}},md:{container:{minH:"1.5rem",minW:"1.5rem",fontSize:"sm",borderRadius:"md",px:2}},lg:{container:{minH:8,minW:8,fontSize:"md",borderRadius:"md",px:3}}},defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}};function Cr(){return(Cr=Object.assign||function(e){for(var r=1;rde.variants.outline(e).field,flushed:e=>de.variants.flushed(e).field,filled:e=>de.variants.filled(e).field,unstyled:de.variants.unstyled.field},Er={xs:de.sizes.xs.field,sm:de.sizes.sm.field,md:de.sizes.md.field,lg:de.sizes.lg.field};function _r(e){return{color:(0,b.xJ)("red.500","red.300")(e),mt:2,fontSize:"sm"}}function Br(e){return{marginEnd:"0.5em",color:(0,b.xJ)("red.500","red.300")(e)}}var Dr={Accordion:n,Alert:p,Avatar:k,Badge:w,Breadcrumb:S,Button:E,Checkbox:z,CloseButton:R,Code:T,Container:P,Divider:I,Drawer:te,Editable:ne,Form:ie,FormLabel:se,Heading:le,Input:de,Kbd:fe,Link:be,List:ge,Menu:we,Modal:V,NumberInput:Re,PinInput:Oe,Popover:Je,Progress:Ze,Radio:Ge,Select:Qe,Skeleton:tr,SkipLink:nr,Slider:cr,Spinner:ur,Stat:dr,Switch:gr,Table:mr,Tabs:wr,Tag:Sr,Textarea:{baseStyle:Fr,sizes:Er,variants:Ar,defaultProps:{size:"md",variant:"outline"}},Tooltip:{baseStyle:function(e){return{"--tooltip-bg":"colors."+(0,b.xJ)("gray.700","gray.300")(e),px:"8px",py:"2px",bg:"var(--tooltip-bg)","--popper-arrow-bg":"var(--tooltip-bg)",color:(0,b.xJ)("whiteAlpha.900","gray.900")(e),borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"320px",zIndex:"tooltip"}}},FormError:{parts:["text","icon"],baseStyle:e=>({text:_r(e),icon:Br(e)})}}},42009:function(e,r,t){"use strict";t.d(r,{Z:function(){return p}});var n={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},a=t(80658);function o(){return(o=Object.assign||function(e){for(var r=1;r({body:{fontFamily:"body",color:(0,n.xJ)("gray.800","whiteAlpha.900")(e),bg:(0,n.xJ)("white","gray.800")(e),transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:(0,n.xJ)("gray.400","whiteAlpha.400")(e)},"*, *::before, &::after":{borderColor:(0,n.xJ)("gray.200","whiteAlpha.300")(e),wordWrap:"break-word"}})};r.Z=a},93025:function(){},27277:function(e,r,t){"use strict";function n(e){var r=null==e?0:e.length;return r?e[r-1]:void 0}function a(e,r){return[...e,r]}function o(e,r){return e.filter((e=>e!==r))}function i(e,r,t,n){if(null==r)return n;if(!n)return e.find((e=>t(e).toLowerCase().startsWith(r.toLowerCase())));var a,o=e.filter((e=>t(e).toLowerCase().startsWith(r.toLowerCase())));return o.length>0?o.includes(n)?((a=o.indexOf(n)+1)===o.length&&(a=0),o[a]):(a=e.indexOf(o[0]),e[a]):n}t.d(r,{s:function(){return n},jX:function(){return a},cl:function(){return o},LP:function(){return i}})},73808:function(e,r,t){"use strict";function n(e){return"number"===typeof e}function a(e){return"number"!==typeof e||Number.isNaN(e)||!Number.isFinite(e)}function o(e){return Array.isArray(e)}function i(e){return"function"===typeof e}function s(e){return"undefined"===typeof e||void 0===e}function l(e){var r=typeof e;return null!=e&&("object"===r||"function"===r)&&!o(e)}function c(e){return l(e)&&0===Object.keys(e).length}function u(e){return"[object String]"===Object.prototype.toString.call(e)}function d(e){return/^var\(--.+\)$/.test(e)}t.d(r,{hj:function(){return n},iy:function(){return a},kJ:function(){return o},mf:function(){return i},o8:function(){return s},Kn:function(){return l},Qr:function(){return c},HD:function(){return u},FS:function(){return d},Ts:function(){return f},Ys:function(){return b},Ik:function(){return g}});var f=!1,b=!1;function g(e){return"current"in e}},88456:function(e,r,t){"use strict";t.d(r,{px:function(){return i},y:function(){return d}});var n=t(27277),a=t(73808),o=t(4651);function i(e){if(null==e)return e;var{unitless:r}=function(e){var r=parseFloat(e.toString()),t=e.toString().replace(String(r),"");return{unitless:!t,value:r,unit:t}}(e);return r||(0,a.hj)(e)?e+"px":e}var s=(e,r)=>parseInt(e[1],10)>parseInt(r[1],10)?1:-1,l=e=>(0,o.sq)(Object.entries(e).sort(s));function c(e){var r=l(e);return Object.assign(Object.values(r),r)}function u(e,r){var t=[];return e&&t.push("@media screen and (min-width: "+i(e)+")"),t.length>0&&r&&t.push("and"),r&&t.push("@media screen and (max-width: "+i(r)+")"),t.join(" ")}function d(e){var r;if(!e)return null;e.base=null!=(r=e.base)?r:"0px";var t=c(e),o=Object.entries(e).sort(s).map(((e,r,t)=>{var n,[o,s]=e,[,l]=null!=(n=t[r+1])?n:[];return{breakpoint:o,minW:s,maxW:l=parseFloat(l)>0?function(e){var r;if(!e)return e;var t=(e=null!=(r=i(e))?r:e).endsWith("px")?-1:-.0635;return(0,a.hj)(e)?""+(e+t):e.replace(/([0-9]+\.?[0-9]*)/,(e=>""+(parseFloat(e)+t)))}(l):void 0,maxWQuery:u(null,l),minWQuery:u(s),minMaxQuery:u(s,l)}})),d=function(e){var r=Object.keys(l(e));return new Set(r)}(e),f=Array.from(d.values());return{keys:d,normalized:t,isResponsive(e){var r=Object.keys(e);return r.length>0&&r.every((e=>d.has(e)))},asObject:l(e),asArray:c(e),details:o,media:[null,...t.map((e=>u(e))).slice(1)],toArrayValue(e){if(!(0,a.Kn)(e))throw new Error("toArrayValue: value must be an object");for(var r=f.map((r=>{var t;return null!=(t=e[r])?t:null}));null===(0,n.s)(r);)r.pop();return r},toObjectValue(e){if(!Array.isArray(e))throw new Error("toObjectValue: value must be an array");return e.reduce(((e,r,t)=>{var n=f[t];return null!=n&&null!=r&&(e[n]=r),e}),{})}}}},84461:function(e,r,t){"use strict";function n(e){var r;return e instanceof Element&&null!=(r=e.ownerDocument)?r:document}t.d(r,{lZ:function(){return n},jU:function(){return a},PB:function(){return o},Qm:function(){return i},cx:function(){return s},vY:function(){return l},r3:function(){return c},EV:function(){return u},uh:function(){return d},wN:function(){return f},dO:function(){return b}});var a=!("undefined"===typeof window||!window.document||!window.document.createElement),o=e=>e?"":void 0,i=e=>!!e||void 0,s=function(){for(var e=arguments.length,r=new Array(e),t=0;t{e.removeEventListener(r,t,n)}}function d(e){var{key:r,keyCode:t}=e;return t>=37&&t<=40&&0!==r.indexOf("Arrow")?"Arrow"+r:r}function f(e){var r,t,n,a=l(null!=(r=e.target)?r:e.currentTarget),o=e.nativeEvent.explicitOriginalTarget;return null!=(t=null!=(n=e.relatedTarget)?n:o)?t:a}function b(e){return 0!==e.button}},80658:function(e,r,t){"use strict";t.d(r,{Pu:function(){return a},v0:function(){return o},ZT:function(){return s},ZK:function(){return l},A4:function(){return c},zG:function(){return u},TE:function(){return b}});var n=t(73808);function a(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),a=1;a(null==r||r(e),null==e?void 0:e.defaultPrevented)))}}function i(e){var r;return function(){if(e){for(var t=arguments.length,n=new Array(t),a=0;a{},l=i((e=>()=>{var{condition:r,message:t}=e;r&&n.Ts&&console.warn(t)})),c=(i((e=>()=>{var{condition:r,message:t}=e;r&&n.Ts&&console.error(t)})),n.Ys?e=>e():"function"===typeof queueMicrotask?queueMicrotask:e=>{Promise.resolve().then(e)}),u=function(){for(var e=arguments.length,r=new Array(e),t=0;tr.reduce(((e,r)=>r(e)),e)},d=(e,r)=>Math.abs(e-r),f=e=>"x"in e&&"y"in e;function b(e,r){if((0,n.hj)(e)&&(0,n.hj)(r))return d(e,r);if(f(e)&&f(r)){var t=d(e.x,r.x),a=d(e.y,r.y);return Math.sqrt(t**2+a**2)}return 0}},4651:function(e,r,t){"use strict";t.d(r,{CE:function(){return n},ei:function(){return a},Vl:function(){return o},Wf:function(){return i},lw:function(){return s},YU:function(){return l},Yd:function(){return c},sq:function(){return u},K1:function(){return d}});t(38554);function n(e,r){var t={};return Object.keys(e).forEach((n=>{r.includes(n)||(t[n]=e[n])})),t}function a(e,r){var t={};return r.forEach((r=>{r in e&&(t[r]=e[r])})),t}function o(e,r){var t={},n={};return Object.keys(e).forEach((a=>{r.includes(a)?t[a]=e[a]:n[a]=e[a]})),[t,n]}var i=(e=>{var r=new WeakMap;return(t,n,a,o)=>{if("undefined"===typeof t)return e(t,n,a);r.has(t)||r.set(t,new Map);var i=r.get(t);if(i.has(n))return i.get(n);var s=e(t,n,a,o);return i.set(n,s),s}})((function(e,r,t,n){var a="string"===typeof r?r.split("."):[r];for(n=0;n{var a=e[n];r(a,n,e)&&(t[n]=a)})),t}var l=e=>s(e,(e=>null!==e&&void 0!==e)),c=e=>Object.keys(e),u=e=>e.reduce(((e,r)=>{var[t,n]=r;return e[t]=n,e}),{}),d=(e,r,t)=>{var n,a;return null!=(n=null==(a=e.__cssMap[r+"."+t])?void 0:a.varRef)?n:t}},17861:function(e,r,t){"use strict";t.d(r,{Z:function(){return re}});var n=t(11526),a=Math.abs,o=String.fromCharCode;function i(e){return e.trim()}function s(e,r,t){return e.replace(r,t)}function l(e,r){return e.indexOf(r)}function c(e,r){return 0|e.charCodeAt(r)}function u(e,r,t){return e.slice(r,t)}function d(e){return e.length}function f(e){return e.length}function b(e,r){return r.push(e),e}var g=1,p=1,h=0,m=0,y=0,v="";function x(e,r,t,n,a,o,i){return{value:e,root:r,parent:t,type:n,props:a,children:o,line:g,column:p,length:i,return:""}}function k(e,r,t){return x(e,r.root,r.parent,t,r.props,r.children,0)}function w(){return y=m>0?c(v,--m):0,p--,10===y&&(p=1,g--),y}function S(){return y=m2||E(y)>3?"":" "}function R(e,r){for(;--r&&S()&&!(y<48||y>102||y>57&&y<65||y>70&&y<97););return A(e,F()+(r<6&&32==C()&&32==S()))}function j(e){for(;S();)switch(y){case e:return m;case 34:case 39:return j(34===e||39===e?e:y);case 40:41===e&&j(e);break;case 92:S()}return m}function O(e,r){for(;S()&&e+y!==57&&(e+y!==84||47!==C()););return"/*"+A(r,m-1)+"*"+o(47===e?e:S())}function T(e){for(;!E(C());)S();return A(e,m)}var P="-ms-",I="-moz-",M="-webkit-",W="comm",J="rule",N="decl";function H(e,r){for(var t="",n=f(e),a=0;a6)switch(c(e,r+1)){case 109:if(45!==c(e,r+4))break;case 102:return s(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1"+I+(108==c(e,r+3)?"$3":"$2-$3"))+e;case 115:return~l(e,"stretch")?$(s(e,"stretch","fill-available"),r)+e:e}break;case 4949:if(115!==c(e,r+1))break;case 6444:switch(c(e,d(e)-3-(~l(e,"!important")&&10))){case 107:return s(e,":",":"+M)+e;case 101:return s(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+M+(45===c(e,14)?"inline-":"")+"box$3$1"+M+"$2$3$1"+P+"$2box$3")+e}break;case 5936:switch(c(e,r+11)){case 114:return M+e+P+s(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return M+e+P+s(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return M+e+P+s(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return M+e+P+e+e}return e}function Z(e){return B(V("",null,null,null,[""],e=_(e),0,[0],e))}function V(e,r,t,n,a,i,l,c,u){for(var f=0,g=0,p=l,h=0,m=0,y=0,v=1,x=1,k=1,A=0,E="",_=a,B=i,j=n,P=E;x;)switch(y=A,A=S()){case 34:case 39:case 91:case 40:P+=D(A);break;case 9:case 10:case 13:case 32:P+=z(y);break;case 92:P+=R(F()-1,7);continue;case 47:switch(C()){case 42:case 47:b(G(O(S(),F()),r,t),u);break;default:P+="/"}break;case 123*v:c[f++]=d(P)*k;case 125*v:case 59:case 0:switch(A){case 0:case 125:x=0;case 59+g:m>0&&d(P)-p&&b(m>32?Y(P+";",n,t,p-1):Y(s(P," ","")+";",n,t,p-2),u);break;case 59:P+=";";default:if(b(j=q(P,r,t,f,g,a,c,E,_=[],B=[],p),i),123===A)if(0===g)V(P,r,j,j,_,i,p,c,B);else switch(h){case 100:case 109:case 115:V(e,j,j,n&&b(q(e,j,j,0,0,a,c,E,a,_=[],p),B),a,B,p,c,n?_:B);break;default:V(P,j,j,j,[""],B,p,c,B)}}f=g=m=0,v=k=1,E=P="",p=l;break;case 58:p=1+d(P),m=y;default:if(v<1)if(123==A)--v;else if(125==A&&0==v++&&125==w())continue;switch(P+=o(A),A*v){case 38:k=g>0?1:(P+="\f",-1);break;case 44:c[f++]=(d(P)-1)*k,k=1;break;case 64:45===C()&&(P+=D(S())),h=C(),g=d(E=P+=T(F())),A++;break;case 45:45===y&&2==d(P)&&(v=0)}}return i}function q(e,r,t,n,o,l,c,d,b,g,p){for(var h=o-1,m=0===o?l:[""],y=f(m),v=0,k=0,w=0;v0?m[S]+" "+C:s(C,/&\f/g,m[S])))&&(b[w++]=F);return x(e,r,t,0===o?J:d,b,g,p)}function G(e,r,t){return x(e,r,t,W,o(y),u(e,2,-2),0)}function Y(e,r,t,n){return x(e,r,t,N,u(e,0,n),u(e,n+1,-1),n)}var X=function(e,r){return B(function(e,r){var t=-1,n=44;do{switch(E(n)){case 0:38===n&&12===C()&&(r[t]=1),e[t]+=T(m-1);break;case 2:e[t]+=D(n);break;case 4:if(44===n){e[++t]=58===C()?"&\f":"",r[t]=e[t].length;break}default:e[t]+=o(n)}}while(n=S());return e}(_(e),r))},U=new WeakMap,K=function(e){if("rule"===e.type&&e.parent&&e.length){for(var r=e.value,t=e.parent,n=e.column===t.column&&e.line===t.line;"rule"!==t.type;)if(!(t=t.parent))return;if((1!==e.props.length||58===r.charCodeAt(0)||U.get(t))&&!n){U.set(e,!0);for(var a=[],o=X(r,a),i=t.props,s=0,l=0;s=4;++n,a-=4)r=1540483477*(65535&(r=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(r>>>16)<<16),t=1540483477*(65535&(r^=r>>>24))+(59797*(r>>>16)<<16)^1540483477*(65535&t)+(59797*(t>>>16)<<16);switch(a){case 3:t^=(255&e.charCodeAt(n+2))<<16;case 2:t^=(255&e.charCodeAt(n+1))<<8;case 1:t=1540483477*(65535&(t^=255&e.charCodeAt(n)))+(59797*(t>>>16)<<16)}return(((t=1540483477*(65535&(t^=t>>>13))+(59797*(t>>>16)<<16))^t>>>15)>>>0).toString(36)},a={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},o=t(67866),i=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,l=function(e){return 45===e.charCodeAt(1)},c=function(e){return null!=e&&"boolean"!==typeof e},u=(0,o.Z)((function(e){return l(e)?e:e.replace(i,"-$&").toLowerCase()})),d=function(e,r){switch(e){case"animation":case"animationName":if("string"===typeof r)return r.replace(s,(function(e,r,t){return b={name:r,styles:t,next:b},r}))}return 1===a[e]||l(e)||"number"!==typeof r||0===r?r:r+"px"};function f(e,r,t){if(null==t)return"";if(void 0!==t.__emotion_styles)return t;switch(typeof t){case"boolean":return"";case"object":if(1===t.anim)return b={name:t.name,styles:t.styles,next:b},t.name;if(void 0!==t.styles){var n=t.next;if(void 0!==n)for(;void 0!==n;)b={name:n.name,styles:n.styles,next:b},n=n.next;return t.styles+";"}return function(e,r,t){var n="";if(Array.isArray(t))for(var a=0;a-1},X.prototype.set=function(e,r){var t=this.__data__,n=te(t,e);return n<0?(++this.size,t.push([e,r])):t[n][1]=r,this},U.prototype.clear=function(){this.size=0,this.__data__={hash:new Y,map:new(V||X),string:new Y}},U.prototype.delete=function(e){var r=fe(this,e).delete(e);return this.size-=r?1:0,r},U.prototype.get=function(e){return fe(this,e).get(e)},U.prototype.has=function(e){return fe(this,e).has(e)},U.prototype.set=function(e,r){var t=fe(this,e),n=t.size;return t.set(e,r),this.size+=t.size==n?0:1,this},K.prototype.clear=function(){this.__data__=new X,this.size=0},K.prototype.delete=function(e){var r=this.__data__,t=r.delete(e);return this.size=r.size,t},K.prototype.get=function(e){return this.__data__.get(e)},K.prototype.has=function(e){return this.__data__.has(e)},K.prototype.set=function(e,r){var t=this.__data__;if(t instanceof X){var n=t.__data__;if(!V||n.length<199)return n.push([e,r]),this.size=++t.size,this;t=this.__data__=new U(n)}return t.set(e,r),this.size=t.size,this};var ae,oe=function(e,r,t){for(var n=-1,a=Object(e),o=t(e),i=o.length;i--;){var s=o[ae?i:++n];if(!1===r(a[s],s,a))break}return e};function ie(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":N&&N in Object(e)?function(e){var r=_.call(e,N),t=e[N];try{e[N]=void 0;var n=!0}catch(o){}var a=D.call(e);n&&(r?e[N]=t:delete e[N]);return a}(e):function(e){return D.call(e)}(e)}function se(e){return Ae(e)&&ie(e)==o}function le(e){return!(!Fe(e)||function(e){return!!B&&B in e}(e))&&(Se(e)?R:l).test(function(e){if(null!=e){try{return E.call(e)}catch(r){}try{return e+""}catch(r){}}return""}(e))}function ce(e){if(!Fe(e))return function(e){var r=[];if(null!=e)for(var t in Object(e))r.push(t);return r}(e);var r=pe(e),t=[];for(var n in e)("constructor"!=n||!r&&_.call(e,n))&&t.push(n);return t}function ue(e,r,t,n,a){e!==r&&oe(r,(function(o,i){if(a||(a=new K),Fe(o))!function(e,r,t,n,a,o,i){var l=he(e,t),c=he(r,t),u=i.get(c);if(u)return void ee(e,t,u);var d=o?o(l,c,t+"",e,r,i):void 0,f=void 0===d;if(f){var b=xe(c),g=!b&&we(c),p=!b&&!g&&Ee(c);d=c,b||g||p?xe(l)?d=l:Ae(h=l)&&ke(h)?d=function(e,r){var t=-1,n=e.length;r||(r=Array(n));for(;++t-1&&e%1==0&&e0){if(++r>=800)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}(H?function(e,r){return H(e,"toString",{configurable:!0,enumerable:!1,value:(t=r,function(){return t}),writable:!0});var t}:ze);function ye(e,r){return e===r||e!==e&&r!==r}var ve=se(function(){return arguments}())?se:function(e){return Ae(e)&&_.call(e,"callee")&&!W.call(e,"callee")},xe=Array.isArray;function ke(e){return null!=e&&Ce(e.length)&&!Se(e)}var we=L||function(){return!1};function Se(e){if(!Fe(e))return!1;var r=ie(e);return r==i||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r}function Ce(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=a}function Fe(e){var r=typeof e;return null!=e&&("object"==r||"function"==r)}function Ae(e){return null!=e&&"object"==typeof e}var Ee=v?function(e){return function(r){return e(r)}}(v):function(e){return Ae(e)&&Ce(e.length)&&!!u[ie(e)]};function _e(e){return ke(e)?Q(e,!0):ce(e)}var Be,De=(Be=function(e,r,t,n){ue(e,r,t,n)},de((function(e,r){var t=-1,n=r.length,a=n>1?r[n-1]:void 0,o=n>2?r[2]:void 0;for(a=Be.length>3&&"function"==typeof a?(n--,a):void 0,o&&function(e,r,t){if(!Fe(t))return!1;var n=typeof r;return!!("number"==n?ke(t)&&ge(r,t.length):"string"==n&&r in t)&&ye(t[r],e)}(r[0],r[1],o)&&(a=n<3?void 0:a,n=1),e=Object(e);++tObject.prototype.hasOwnProperty.call(e,r)))}var l=t(80658),c=t(38554),u=t.n(c);function d(){for(var e=arguments.length,r=new Array(e),t=0;tg.createElement(b.Global,{styles:'\n html {\n line-height: 1.5;\n -webkit-text-size-adjust: 100%;\n font-family: system-ui, sans-serif;\n -webkit-font-smoothing: antialiased;\n text-rendering: optimizeLegibility; \n -moz-osx-font-smoothing: grayscale; \n touch-action: manipulation; \n }\n\n body {\n position: relative;\n min-height: 100%;\n font-feature-settings: \'kern\';\n }\n\n *,\n *::before,\n *::after {\n border-width: 0;\n border-style: solid;\n box-sizing: border-box;\n }\n\n main {\n display: block;\n }\n\n hr {\n border-top-width: 1px;\n box-sizing: content-box;\n height: 0;\n overflow: visible;\n }\n\n pre,\n code,\n kbd,\n samp {\n font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;\n font-size: 1em;\n }\n\n a {\n background-color: transparent;\n color: inherit;\n text-decoration: inherit;\n }\n\n abbr[title] {\n border-bottom: none;\n text-decoration: underline;\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n }\n\n b,\n strong {\n font-weight: bold;\n }\n\n small {\n font-size: 80%;\n }\n\n sub,\n sup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n }\n\n sub {\n bottom: -0.25em;\n }\n\n sup {\n top: -0.5em;\n }\n\n img {\n border-style: none;\n }\n\n button,\n input,\n optgroup,\n select,\n textarea {\n font-family: inherit;\n font-size: 100%;\n line-height: 1.15;\n margin: 0;\n }\n\n button,\n input {\n overflow: visible;\n }\n\n button,\n select {\n text-transform: none;\n }\n\n button::-moz-focus-inner,\n [type="button"]::-moz-focus-inner,\n [type="reset"]::-moz-focus-inner,\n [type="submit"]::-moz-focus-inner {\n border-style: none;\n padding: 0;\n }\n\n fieldset {\n padding: 0.35em 0.75em 0.625em;\n }\n\n legend {\n box-sizing: border-box;\n color: inherit;\n display: table;\n max-width: 100%;\n padding: 0;\n white-space: normal;\n }\n\n progress {\n vertical-align: baseline;\n }\n\n textarea {\n overflow: auto;\n }\n\n [type="checkbox"],\n [type="radio"] {\n box-sizing: border-box;\n padding: 0;\n }\n\n [type="number"]::-webkit-inner-spin-button,\n [type="number"]::-webkit-outer-spin-button {\n -webkit-appearance: none !important;\n }\n\n input[type="number"] {\n -moz-appearance: textfield;\n }\n\n [type="search"] {\n -webkit-appearance: textfield;\n outline-offset: -2px;\n }\n\n [type="search"]::-webkit-search-decoration {\n -webkit-appearance: none !important;\n }\n\n ::-webkit-file-upload-button {\n -webkit-appearance: button;\n font: inherit;\n }\n\n details {\n display: block;\n }\n\n summary {\n display: list-item;\n }\n\n template {\n display: none;\n }\n\n [hidden] {\n display: none !important;\n }\n\n body,\n blockquote,\n dl,\n dd,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n hr,\n figure,\n p,\n pre {\n margin: 0;\n }\n\n button {\n background: transparent;\n padding: 0;\n }\n\n fieldset {\n margin: 0;\n padding: 0;\n }\n\n ol,\n ul {\n margin: 0;\n padding: 0;\n }\n\n textarea {\n resize: vertical;\n }\n\n button,\n [role="button"] {\n cursor: pointer;\n }\n\n button::-moz-focus-inner {\n border: 0 !important;\n }\n\n table {\n border-collapse: collapse;\n }\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n font-size: inherit;\n font-weight: inherit;\n }\n\n button,\n input,\n optgroup,\n select,\n textarea {\n padding: 0;\n line-height: inherit;\n color: inherit;\n }\n\n img,\n svg,\n video,\n canvas,\n audio,\n iframe,\n embed,\n object {\n display: block;\n vertical-align: middle;\n }\n\n img,\n video {\n max-width: 100%;\n height: auto;\n }\n\n [data-js-focus-visible] :focus:not([data-focus-visible-added]) {\n outline: none;\n box-shadow: none;\n }\n\n select::-ms-expand {\n display: none;\n }\n '}),h=t(34288),m=t(29676),y=t(24738),v=t(84461),x={body:{classList:{add(){},remove(){}}},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]})},k=()=>{},w={window:{document:x,navigator:{userAgent:""},CustomEvent:function(){return this},addEventListener:k,removeEventListener:k,getComputedStyle:()=>({getPropertyValue:()=>""}),matchMedia:()=>({matches:!1,addListener:k,removeListener:k}),requestAnimationFrame:e=>"undefined"===typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!==typeof setTimeout&&clearTimeout(e)},setTimeout:()=>0,clearTimeout:k,setInterval:()=>0,clearInterval:k},document:x},S=v.jU?{window:window,document:document}:w,C=(0,g.createContext)(S);function F(e){var{children:r,environment:t}=e,[n,a]=(0,g.useState)(null),o=(0,g.useMemo)((()=>{var e,r=null==n?void 0:n.ownerDocument,a=null==n?void 0:n.ownerDocument.defaultView;return null!=(e=null!=t?t:r?{document:r,window:a}:void 0)?e:S}),[n,t]),i=!n&&!t;return g.createElement(C.Provider,{value:o},r,i&&g.createElement("span",{ref:e=>{e&&a(e)}}))}o.Ts&&(C.displayName="EnvironmentContext"),o.Ts&&(F.displayName="EnvironmentProvider");var A=t(94577),E=e=>{var{children:r,colorModeManager:t,portalZIndex:n,resetCSS:o=!0,theme:i=a.Z,environment:s,cssVarsRoot:l}=e,c=g.createElement(F,{environment:s},r);return g.createElement(A.vc,null,g.createElement(m.f6,{theme:i,cssVarsRoot:l},g.createElement(y.SG,{colorModeManager:t,options:i.config},o&&g.createElement(p,null),g.createElement(m.ZL,null),n?g.createElement(h.h,{zIndex:n},c):c)))},_=t(52596),B=t(29356),D=t(67690),z=t(85893);function R(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function j(e){for(var r=1;r1?n=n.slice(0,n.length-1):i=a.Z,(0,l.zG)(...n.map((e=>r=>(0,o.mf)(e)?e(r):d(r,e))))(i)}((0,g.useMemo)((function(){return{colors:{white:c.bg,black:c.fg,gray:{100:c.base1,200:u,300:c.base2,400:c.base3,500:c.base4,600:c.base5,700:c.base6,800:c.base7,900:c.base8},blue:{500:c.blue},teal:{500:c.blue},yellow:{500:c.yellow},orange:{500:c.orange},red:{500:c.red},green:{500:c.green},purple:{500:c.violet},pink:{500:c.magenta},cyan:{500:c.cyan},alt:{100:c["bg-alt"],900:c["fg-alt"]}},shadows:{outline:"0 0 0 3px "+f},components:{Button:{variants:{outline:{border:"2px solid",borderColor:n,color:n},ghost:{color:n,_hover:{bg:"inherit",border:"1px solid",borderColor:n},_active:{color:"inherit",bg:n}},subtle:{color:"gray.800",_hover:{bg:"inherit",color:n},_active:{color:"inherit",bg:f}}}},Accordion:{baseStyle:{container:{marginTop:"10px",borderWidth:"0px",_last:{borderWidth:"0px"}},panel:{marginRight:"10px"}}},Slider:{baseStyle:function(e){return{thumb:{backgroundColor:n},filledTrack:{backgroundColor:"gray.400"},track:{backgroundColor:"gray.400"}}}}}}}),[n,JSON.stringify(i)]),function(e){var{colorScheme:r,components:t}=e;return e=>{var n=Object.keys(e.components||{});return Array.isArray(t)?n=t:(0,o.Kn)(t)&&(n=Object.keys(t)),d(e,{components:Object.fromEntries(n.map((e=>[e,{defaultProps:{colorScheme:r}}])))})}}({colorScheme:n.split(".")[0]}));return(0,z.jsx)(E,{theme:b,children:r})}var T=function(e){var r=e.Component,t=e.pageProps,n=["one-vibrant",D.n["one-vibrant"]],a=(0,g.useState)(!1),o=a[0],i=a[1],s=(0,g.useState)(n),l=s[0],c=s[1],u=(0,g.useState)("purple.500"),d=u[0],f=u[1];(0,g.useEffect)((function(){o&&localStorage.setItem("colorTheme",JSON.stringify(l))}),[l]),(0,g.useEffect)((function(){o&&localStorage.setItem("highlightColor",JSON.stringify(d))}),[d]),(0,g.useEffect)((function(){var e,r,t,a;c(null!==(e=JSON.parse(null!==(r=localStorage.getItem("colorTheme"))&&void 0!==r?r:JSON.stringify(n)))&&void 0!==e?e:n),f(null!==(t=JSON.parse(null!==(a=localStorage.getItem("highlightColor"))&&void 0!==a?a:JSON.stringify(d)))&&void 0!==t?t:d),i(!0)}),[]);var b={emacsTheme:l,setEmacsTheme:c,highlightColor:d,setHighlightColor:f};return(0,z.jsx)(B.N.Provider,{value:b,children:(0,z.jsx)(O,{children:(0,z.jsx)(r,j({},t))})})}},29356:function(e,r,t){"use strict";t.d(r,{N:function(){return o}});var n=t(67294),a=["vibrant",t(67690).n["one-vibrant"]],o=(0,n.createContext)({emacsTheme:a,setEmacsTheme:null,highlightColor:"purple",setHighlightColor:null})},94798:function(e,r,t){"use strict";function n(e,r,t){e.prototype=r.prototype=t,t.constructor=e}function a(e,r){var t=Object.create(e.prototype);for(var n in r)t[n]=r[n];return t}function o(){}t.d(r,{ZP:function(){return k},B8:function(){return F}});var i=.7,s=1/i,l="\\s*([+-]?\\d+)\\s*",c="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",u="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",d=/^#([0-9a-f]{3,8})$/,f=new RegExp("^rgb\\("+[l,l,l]+"\\)$"),b=new RegExp("^rgb\\("+[u,u,u]+"\\)$"),g=new RegExp("^rgba\\("+[l,l,l,c]+"\\)$"),p=new RegExp("^rgba\\("+[u,u,u,c]+"\\)$"),h=new RegExp("^hsl\\("+[c,u,u]+"\\)$"),m=new RegExp("^hsla\\("+[c,u,u,c]+"\\)$"),y={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function v(){return this.rgb().formatHex()}function x(){return this.rgb().formatRgb()}function k(e){var r,t;return e=(e+"").trim().toLowerCase(),(r=d.exec(e))?(t=r[1].length,r=parseInt(r[1],16),6===t?w(r):3===t?new A(r>>8&15|r>>4&240,r>>4&15|240&r,(15&r)<<4|15&r,1):8===t?S(r>>24&255,r>>16&255,r>>8&255,(255&r)/255):4===t?S(r>>12&15|r>>8&240,r>>8&15|r>>4&240,r>>4&15|240&r,((15&r)<<4|15&r)/255):null):(r=f.exec(e))?new A(r[1],r[2],r[3],1):(r=b.exec(e))?new A(255*r[1]/100,255*r[2]/100,255*r[3]/100,1):(r=g.exec(e))?S(r[1],r[2],r[3],r[4]):(r=p.exec(e))?S(255*r[1]/100,255*r[2]/100,255*r[3]/100,r[4]):(r=h.exec(e))?D(r[1],r[2]/100,r[3]/100,1):(r=m.exec(e))?D(r[1],r[2]/100,r[3]/100,r[4]):y.hasOwnProperty(e)?w(y[e]):"transparent"===e?new A(NaN,NaN,NaN,0):null}function w(e){return new A(e>>16&255,e>>8&255,255&e,1)}function S(e,r,t,n){return n<=0&&(e=r=t=NaN),new A(e,r,t,n)}function C(e){return e instanceof o||(e=k(e)),e?new A((e=e.rgb()).r,e.g,e.b,e.opacity):new A}function F(e,r,t,n){return 1===arguments.length?C(e):new A(e,r,t,null==n?1:n)}function A(e,r,t,n){this.r=+e,this.g=+r,this.b=+t,this.opacity=+n}function E(){return"#"+B(this.r)+B(this.g)+B(this.b)}function _(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function B(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function D(e,r,t,n){return n<=0?e=r=t=NaN:t<=0||t>=1?e=r=NaN:r<=0&&(e=NaN),new R(e,r,t,n)}function z(e){if(e instanceof R)return new R(e.h,e.s,e.l,e.opacity);if(e instanceof o||(e=k(e)),!e)return new R;if(e instanceof R)return e;var r=(e=e.rgb()).r/255,t=e.g/255,n=e.b/255,a=Math.min(r,t,n),i=Math.max(r,t,n),s=NaN,l=i-a,c=(i+a)/2;return l?(s=r===i?(t-n)/l+6*(t0&&c<1?0:s,new R(s,l,c,e.opacity)}function R(e,r,t,n){this.h=+e,this.s=+r,this.l=+t,this.opacity=+n}function j(e,r,t){return 255*(e<60?r+(t-r)*e/60:e<180?t:e<240?r+(t-r)*(240-e)/60:r)}n(o,k,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:v,formatHex:v,formatHsl:function(){return z(this).formatHsl()},formatRgb:x,toString:x}),n(A,F,a(o,{brighter:function(e){return e=null==e?s:Math.pow(s,e),new A(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?i:Math.pow(i,e),new A(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:E,formatHex:E,formatRgb:_,toString:_})),n(R,(function(e,r,t,n){return 1===arguments.length?z(e):new R(e,r,t,null==n?1:n)}),a(o,{brighter:function(e){return e=null==e?s:Math.pow(s,e),new R(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?i:Math.pow(i,e),new R(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),r=isNaN(e)||isNaN(this.s)?0:this.s,t=this.l,n=t+(t<.5?t:1-t)*r,a=2*t-n;return new A(j(e>=240?e-240:e+120,a,n),j(e,a,n),j(e<120?e+240:e-120,a,n),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}))},57631:function(e,r){"use strict";r.Z=function(e){return function(){return e}}},13311:function(e,r,t){"use strict";function n(e,r){return e=+e,r=+r,function(t){return e*(1-t)+r*t}}t.d(r,{Z:function(){return n}})},20439:function(e,r,t){"use strict";t.d(r,{ZP:function(){return c}});var n=t(94798);function a(e,r,t,n,a){var o=e*e,i=o*e;return((1-3*e+3*o-i)*r+(4-6*o+3*i)*t+(1+3*e+3*o-3*i)*n+i*a)/6}var o=t(57631);function i(e,r){return function(t){return e+t*r}}function s(e){return 1===(e=+e)?l:function(r,t){return t-r?function(e,r,t){return e=Math.pow(e,t),r=Math.pow(r,t)-e,t=1/t,function(n){return Math.pow(e+n*r,t)}}(r,t,e):(0,o.Z)(isNaN(r)?t:r)}}function l(e,r){var t=r-e;return t?i(e,t):(0,o.Z)(isNaN(e)?r:e)}var c=function e(r){var t=s(r);function a(e,r){var a=t((e=(0,n.B8)(e)).r,(r=(0,n.B8)(r)).r),o=t(e.g,r.g),i=t(e.b,r.b),s=l(e.opacity,r.opacity);return function(r){return e.r=a(r),e.g=o(r),e.b=i(r),e.opacity=s(r),e+""}}return a.gamma=e,a}(1);function u(e){return function(r){var t,a,o=r.length,i=new Array(o),s=new Array(o),l=new Array(o);for(t=0;t=1?(t=1,r-1):Math.floor(t*r),o=e[n],i=e[n+1],s=n>0?e[n-1]:2*o-i,l=nl&&(s=r.slice(l,s),u[c]?u[c]+=s:u[++c]=s),(t=t[0])===(i=i[0])?u[c]?u[c]+=i:u[++c]=i:(u[++c]=null,d.push({i:c,x:(0,n.Z)(t,i)})),l=o.lastIndex;return l1&&(t-=1),t<1/6?e+6*(r-e)*t:t<.5?r:t<2/3?e+(r-e)*(2/3-t)*6:e}if(e=j(e,360),r=j(r,100),t=j(t,100),0===r)n=a=o=t;else{var s=t<.5?t*(1+r):t+r-t*r,l=2*t-s;n=i(l,s,e+1/3),a=i(l,s,e),o=i(l,s,e-1/3)}return{r:255*n,g:255*a,b:255*o}}(e.h,n,l),d=!0,f="hsl"),e.hasOwnProperty("a")&&(t=e.a));var b,g,p;return t=R(t),{ok:d,format:e.format||f,r:c(255,u(r.r,0)),g:c(255,u(r.g,0)),b:c(255,u(r.b,0)),a:t}}(e);this._originalInput=e,this._r=t.r,this._g=t.g,this._b=t.b,this._a=t.a,this._roundA=l(100*this._a)/100,this._format=r.format||t.format,this._gradientType=r.gradientType,this._r<1&&(this._r=l(this._r)),this._g<1&&(this._g=l(this._g)),this._b<1&&(this._b=l(this._b)),this._ok=t.ok,this._tc_id=s++}function b(e,r,t){e=j(e,255),r=j(r,255),t=j(t,255);var n,a,o=u(e,r,t),i=c(e,r,t),s=(o+i)/2;if(o==i)n=a=0;else{var l=o-i;switch(a=s>.5?l/(2-o-i):l/(o+i),o){case e:n=(r-t)/l+(r>1)+720)%360;--r;)n.h=(n.h+a)%360,o.push(f(n));return o}function B(e,r){r=r||6;for(var t=f(e).toHsv(),n=t.h,a=t.s,o=t.v,i=[],s=1/r;r--;)i.push(f({h:n,s:a,v:o})),o=(o+s)%1;return i}f.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,r,t,n=this.toRgb();return e=n.r/255,r=n.g/255,t=n.b/255,.2126*(e<=.03928?e/12.92:a.pow((e+.055)/1.055,2.4))+.7152*(r<=.03928?r/12.92:a.pow((r+.055)/1.055,2.4))+.0722*(t<=.03928?t/12.92:a.pow((t+.055)/1.055,2.4))},setAlpha:function(e){return this._a=R(e),this._roundA=l(100*this._a)/100,this},toHsv:function(){var e=g(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=g(this._r,this._g,this._b),r=l(360*e.h),t=l(100*e.s),n=l(100*e.v);return 1==this._a?"hsv("+r+", "+t+"%, "+n+"%)":"hsva("+r+", "+t+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var e=b(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=b(this._r,this._g,this._b),r=l(360*e.h),t=l(100*e.s),n=l(100*e.l);return 1==this._a?"hsl("+r+", "+t+"%, "+n+"%)":"hsla("+r+", "+t+"%, "+n+"%, "+this._roundA+")"},toHex:function(e){return p(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,r,t,n,a){var o=[P(l(e).toString(16)),P(l(r).toString(16)),P(l(t).toString(16)),P(M(n))];if(a&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1))return o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0);return o.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:l(this._r),g:l(this._g),b:l(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+l(this._r)+", "+l(this._g)+", "+l(this._b)+")":"rgba("+l(this._r)+", "+l(this._g)+", "+l(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:l(100*j(this._r,255))+"%",g:l(100*j(this._g,255))+"%",b:l(100*j(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+l(100*j(this._r,255))+"%, "+l(100*j(this._g,255))+"%, "+l(100*j(this._b,255))+"%)":"rgba("+l(100*j(this._r,255))+"%, "+l(100*j(this._g,255))+"%, "+l(100*j(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(z[p(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var r="#"+h(this._r,this._g,this._b,this._a),t=r,n=this._gradientType?"GradientType = 1, ":"";if(e){var a=f(e);t="#"+h(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+r+",endColorstr="+t+")"},toString:function(e){var r=!!e;e=e||this._format;var t=!1,n=this._a<1&&this._a>=0;return r||!n||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(t=this.toRgbString()),"prgb"===e&&(t=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(t=this.toHexString()),"hex3"===e&&(t=this.toHexString(!0)),"hex4"===e&&(t=this.toHex8String(!0)),"hex8"===e&&(t=this.toHex8String()),"name"===e&&(t=this.toName()),"hsl"===e&&(t=this.toHslString()),"hsv"===e&&(t=this.toHsvString()),t||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return f(this.toString())},_applyModification:function(e,r){var t=e.apply(null,[this].concat([].slice.call(r)));return this._r=t._r,this._g=t._g,this._b=t._b,this.setAlpha(t._a),this},lighten:function(){return this._applyModification(x,arguments)},brighten:function(){return this._applyModification(k,arguments)},darken:function(){return this._applyModification(w,arguments)},desaturate:function(){return this._applyModification(m,arguments)},saturate:function(){return this._applyModification(y,arguments)},greyscale:function(){return this._applyModification(v,arguments)},spin:function(){return this._applyModification(S,arguments)},_applyCombination:function(e,r){return e.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(_,arguments)},complement:function(){return this._applyCombination(C,arguments)},monochromatic:function(){return this._applyCombination(B,arguments)},splitcomplement:function(){return this._applyCombination(E,arguments)},triad:function(){return this._applyCombination(F,arguments)},tetrad:function(){return this._applyCombination(A,arguments)}},f.fromRatio=function(e,r){if("object"==typeof e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]="a"===n?e[n]:I(e[n]));e=t}return f(e,r)},f.equals=function(e,r){return!(!e||!r)&&f(e).toRgbString()==f(r).toRgbString()},f.random=function(){return f.fromRatio({r:d(),g:d(),b:d()})},f.mix=function(e,r,t){t=0===t?0:t||50;var n=f(e).toRgb(),a=f(r).toRgb(),o=t/100;return f({r:(a.r-n.r)*o+n.r,g:(a.g-n.g)*o+n.g,b:(a.b-n.b)*o+n.b,a:(a.a-n.a)*o+n.a})},f.readability=function(e,r){var t=f(e),n=f(r);return(a.max(t.getLuminance(),n.getLuminance())+.05)/(a.min(t.getLuminance(),n.getLuminance())+.05)},f.isReadable=function(e,r,t){var n,a,o=f.readability(e,r);switch(a=!1,(n=function(e){var r,t;r=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),t=(e.size||"small").toLowerCase(),"AA"!==r&&"AAA"!==r&&(r="AA");"small"!==t&&"large"!==t&&(t="small");return{level:r,size:t}}(t)).level+n.size){case"AAsmall":case"AAAlarge":a=o>=4.5;break;case"AAlarge":a=o>=3;break;case"AAAsmall":a=o>=7}return a},f.mostReadable=function(e,r,t){var n,a,o,i,s=null,l=0;a=(t=t||{}).includeFallbackColors,o=t.level,i=t.size;for(var c=0;cl&&(l=n,s=f(r[c]));return f.isReadable(e,s,{level:o,size:i})||!a?s:(t.includeFallbackColors=!1,f.mostReadable(e,["#fff","#000"],t))};var D=f.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},z=f.hexNames=function(e){var r={};for(var t in e)e.hasOwnProperty(t)&&(r[e[t]]=t);return r}(D);function R(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function j(e,r){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var t=function(e){return"string"===typeof e&&-1!=e.indexOf("%")}(e);return e=c(r,u(0,parseFloat(e))),t&&(e=parseInt(e*r,10)/100),a.abs(e-r)<1e-6?1:e%r/parseFloat(r)}function O(e){return c(1,u(0,e))}function T(e){return parseInt(e,16)}function P(e){return 1==e.length?"0"+e:""+e}function I(e){return e<=1&&(e=100*e+"%"),e}function M(e){return a.round(255*parseFloat(e)).toString(16)}function W(e){return T(e)/255}var J=function(){var e="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",r="[\\s|\\(]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")\\s*\\)?",t="[\\s|\\(]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")\\s*\\)?";return{CSS_UNIT:new RegExp(e),rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+t),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+t),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"+t),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function N(e){return!!J.CSS_UNIT.exec(e)}e.exports?e.exports=f:void 0===(n=function(){return f}.call(r,t,r,e))||(e.exports=n)}(Math)},4942:function(e,r,t){"use strict";function n(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}t.d(r,{Z:function(){return n}})},87462:function(e,r,t){"use strict";function n(){return(n=Object.assign||function(e){for(var r=1;r0},Ce={exit:{size:{duration:.2,ease:fe.ease},opacity:{duration:.3,ease:fe.ease}},enter:{size:{duration:.3,ease:fe.ease},opacity:{duration:.4,ease:fe.ease}}},Oe={exit:function(e){var n,t,r=e.animateOpacity,i=e.startingSize,l=e.transition,s=e.transitionEnd,c=e.delay,a=e.dimension;return me(me({},r&&{opacity:ye(i)?1:0}),{},(t={overflow:"hidden"},(0,o.Z)(t,a,i),(0,o.Z)(t,"transitionEnd",null===s||void 0===s?void 0:s.exit),(0,o.Z)(t,"transition",null!==(n=null===l||void 0===l?void 0:l.exit)&&void 0!==n?n:xe(Ce.exit,c)),t))},enter:function(e){var n,t,r=e.animateOpacity,i=e.endingSize,l=e.transition,s=e.transitionEnd,c=e.delay,a=e.dimension;return me(me({},r&&{opacity:1}),{},(t={},(0,o.Z)(t,a,i),(0,o.Z)(t,"transitionEnd",null===s||void 0===s?void 0:s.enter),(0,o.Z)(t,"transition",null!==(n=null===l||void 0===l?void 0:l.enter)&&void 0!==n?n:pe(Ce.enter,c)),t))}},we=m.forwardRef((function(e,n){var t=e.in,r=e.unmountOnExit,i=e.animateOpacity,o=void 0===i||i,s=e.startingSize,c=void 0===s?0:s,a=e.endingSize,u=void 0===a?"auto":a,d=e.dimension,h=void 0===d?"height":d,g=e.style,f=e.className,p=e.transition,x=e.transitionEnd,j=(0,ie.Z)(e,be),b=m.useState(!1),v=(0,l.Z)(b,2),y=v[0],C=v[1];m.useEffect((function(){var e=setTimeout((function(){C(!0)}));return function(){return clearTimeout(e)}}),[]),(0,oe.ZK)({condition:Boolean(c>0&&r),message:"startingSize and unmountOnExit are mutually exclusive. You can't use them together"});var O=parseFloat(c.toString())>0,w={startingSize:c,endingSize:u,animateOpacity:o,dimension:h,transition:y?p:{enter:{duration:0}},transitionEnd:se()(x,{enter:{overflow:"initial"},exit:r?void 0:{display:O?"block":"none"}})},k=!r||t,S=t||r?"enter":"exit";return(0,je.jsx)(ue.M,{initial:!1,custom:w,children:k&&(0,je.jsx)(de.E.div,me(me({ref:n},j),{},{className:(0,ce.cx)("chakra-collapse",f),style:me({overflow:"hidden",display:"block"},g),custom:w,variants:Oe,initial:!!r&&"exit",animate:S,exit:"exit"}))})}));function ke(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Se(e){for(var n=1;n-1,f=a.indexOf(s)>-1,p=(0,u.q)();return(0,je.jsxs)(je.Fragment,{children:[(0,je.jsx)(W.sN,{icon:(0,je.jsx)(h.xu,{bgColor:l[s],borderRadius:"sm",height:3,width:3,borderColor:l[s]||"gray.600",borderWidth:1}),closeOnSelect:!1,onClick:p.onToggle,children:(0,je.jsx)(U.x,{children:"Change color"})}),(0,je.jsx)(we,{in:p.isOpen,children:(0,je.jsx)(g.k,{ml:2,mt:2,flexWrap:"wrap",children:M.map((function(e){return(0,je.jsx)(h.xu,{children:(0,je.jsx)(h.xu,{tabIndex:0,cursor:"pointer",onClick:function(){return n(Se(Se({},l),{},(0,o.Z)({},s,e)))},bgColor:e,m:1,borderRadius:"sm",height:3,width:3})},e)}))})}),!f&&(0,je.jsx)(W.sN,{onClick:function(){t(d?function(e){return Se(Se({},e),{},{tagsBlacklist:e.tagsBlacklist.filter((function(e){return e!==s}))})}:function(e){return Se(Se({},e),{},{tagsBlacklist:[].concat((0,i.Z)(e.tagsBlacklist),[s])})})},icon:d?(0,je.jsx)(te.V,{}):(0,je.jsx)(re.t,{}),children:d?"Remove from blacklist":"Add to blacklist"}),!d&&(0,je.jsx)(W.sN,{onClick:function(){t(f?function(e){return Se(Se({},e),{},{tagsWhitelist:e.tagsWhitelist.filter((function(e){return e!==s}))})}:function(e){return Se(Se({},e),{},{tagsWhitelist:[].concat((0,i.Z)(e.tagsWhitelist),[s])})})},icon:f?(0,je.jsx)(te.V,{}):(0,je.jsx)(Y.O,{}),children:f?"Remove from whitelist":"Add to whitelist"})]})},Ne=function(e){e.background;var n,t,r=e.target,i=(e.nodeType,e.coordinates),o=e.handleLocal,l=e.menuClose,s=e.scope,c=e.webSocket,a=e.setPreviewNode,d=e.setTagColors,h=e.tagColors,g=e.setFilter,f=e.filter,p=(0,u.q)(),x=p.isOpen,j=p.onOpen,b=p.onClose;(0,m.useRef)();return(0,je.jsxs)(je.Fragment,{children:[(0,je.jsx)(W.v2,{defaultIsOpen:!0,closeOnBlur:!1,onClose:function(){return l()},children:(0,je.jsx)(W.qy,{zIndex:"overlay",bgColor:"white",color:"black",position:"absolute",left:i.left,top:i.top,right:i.right,bottom:i.bottom,fontSize:"xs",boxShadow:"xl",children:"string"!==typeof r?(0,je.jsxs)(je.Fragment,{children:[r&&(0,je.jsxs)(je.Fragment,{children:[(0,je.jsx)(V.X,{size:"xs",isTruncated:!0,px:3,py:1,children:r.title}),(0,je.jsx)(W.R,{borderColor:"gray.500"})]}),0!==s.nodeIds.length&&(0,je.jsxs)(je.Fragment,{children:[(0,je.jsx)(W.sN,{onClick:function(){return o(r,"add")},icon:(0,je.jsx)(G.I,{}),children:"Expand local graph at node"}),(0,je.jsx)(W.sN,{onClick:function(){return o(r,"replace")},icon:(0,je.jsx)(y.DvO,{}),children:"Open local graph for this node"})]}),null!==r&&void 0!==r&&null!==(n=r.properties)&&void 0!==n&&n.FILELESS?(0,je.jsx)(W.sN,{icon:(0,je.jsx)(Q.d,{}),onClick:function(){return function(e,n){ee("create",{id:e.id,title:e.title,ref:e.properties.ROAM_REFS},n)}(r,c)},children:"Create node"}):(0,je.jsx)(W.sN,{icon:(0,je.jsx)(J.d,{}),onClick:function(){return ne(r,c)},children:"Open in Emacs"}),(null===r||void 0===r||null===(t=r.properties)||void 0===t?void 0:t.ROAM_REFS)&&(0,je.jsx)(W.sN,{icon:(0,je.jsx)(K.h,{}),children:"Open in Zotero"}),0===s.nodeIds.length&&(0,je.jsx)(W.sN,{icon:(0,je.jsx)(y.DvO,{}),onClick:function(){return o(r,"replace")},children:"Open local graph"}),(0,je.jsx)(W.sN,{icon:(0,je.jsx)(Y.O,{}),onClick:function(){a(r)},children:"Preview"}),0===(null===r||void 0===r?void 0:r.level)&&(0,je.jsx)(W.sN,{closeOnSelect:!1,icon:(0,je.jsx)($.p,{color:"red.500"}),color:"red.500",onClick:j,children:"Permenantly delete note"})]}):(0,je.jsx)(Pe,{target:r,tagColors:h,filter:f,setTagColors:d,setFilter:g})})}),"string"!==typeof r&&(0,je.jsxs)(X.u_,{isCentered:!0,isOpen:x,onClose:b,children:[(0,je.jsx)(X.ZA,{}),(0,je.jsxs)(X.hz,{zIndex:"popover",children:[(0,je.jsx)(X.xB,{children:"Delete node?"}),(0,je.jsx)(X.ol,{}),(0,je.jsx)(X.fe,{children:(0,je.jsxs)(_.gC,{spacing:4,display:"flex",alignItems:"flex-start",children:[(0,je.jsx)(U.x,{children:"This will permanently delete your note:"}),(0,je.jsx)(U.x,{fontWeight:"bold",children:null===r||void 0===r?void 0:r.title}),0!==(null===r||void 0===r?void 0:r.level)&&(0,je.jsx)(U.x,{children:"This will only delete the from this heading until but not including the next node. Your parent file and all other nodes will not be deleted."}),(0,je.jsx)(U.x,{children:"Are you sure you want to do continue?"})]})}),(0,je.jsxs)(X.mz,{children:[(0,je.jsx)(q.z,{mr:3,onClick:function(){console.log("closing"),b(),l()},children:"Cancel"}),(0,je.jsx)(q.z,{variant:"link",colorScheme:"red",ml:3,onClick:function(){console.log("aaaaa"),function(e,n){0===e.level&&ee("delete",{id:e.id,file:e.file},n)}(r,c),b(),l()},children:"Delete node"})]})]})]})]})},Ie=t(67101),De=t(35255),Le=t(56884),ze=function(e){var n=e.setJustification,t=(e.setIndent,e.setFont,e.justification),r=(e.setPreviewNode,e.canUndo),i=e.canRedo,o=(e.resetPreviewNode,e.previousPreviewNode),l=e.nextPreviewNode;return(0,je.jsxs)(g.k,{flex:"0 1 40px",pb:3,alignItems:"center",justifyContent:"space-between",pl:1,pr:1,children:[(0,je.jsx)(g.k,{children:(0,je.jsxs)(Ie.h,{isAttached:!0,children:[(0,je.jsx)(f.u,{label:"Go backward",children:(0,je.jsx)(p.h,{variant:"subtle",icon:(0,je.jsx)(De.w,{}),"aria-label":"Previous node",disabled:!r,onClick:function(){return o()}})}),(0,je.jsx)(f.u,{label:"Go forward",children:(0,je.jsx)(p.h,{variant:"subtle",icon:(0,je.jsx)(Le.X,{}),"aria-label":"Next node",disabled:!i,onClick:function(){return l()}})})]})}),(0,je.jsx)(g.k,{children:(0,je.jsx)(f.u,{label:"Justify content",children:(0,je.jsx)(p.h,{variant:"subtle","aria-label":"Justify content",icon:[(0,je.jsx)(y.v9V,{},"justify"),(0,je.jsx)(y.YSr,{},"left"),(0,je.jsx)(y.RXA,{},"right"),(0,je.jsx)(y.tr_,{},"center")][t],onClick:function(){return n((function(e){return(e+1)%4}))}})})})]})},Ee=t(35528);function Ze(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Re(e){for(var n=1;n2&&void 0!==arguments[2]?arguments[2]:{},i=Pn(e,null!==(t=r.storage)&&void 0!==t?t:localStorage),o=i.get(),l=void 0!==o?o:n,s=null!=o&&"object"===typeof o&&!1===Array.isArray(o)?kn(kn({},n),o):l;s!==o&&i.update(s);var c=(0,m.useState)(s),a=c[0],u=c[1];(0,m.useEffect)((function(){a!==s&&u(s)}),[e]);var d=function(e){e instanceof Function?u((function(n){var t=e(n);return i.update(t),t})):(u(e),i.update(e))};return[a,d]}function Pn(e,n){return{get:function(){var t=n.getItem(e);if(t&&"undefined"!==t)return JSON.parse(t)},update:function(t){n.setItem(e,JSON.stringify(t))},remove:function(){n.removeItem(e)}}}var Nn=["style"];function In(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Dn(e){for(var n=1;n1,animateOpacity:!0,children:(0,je.jsx)(h.xu,{paddingTop:2,children:(0,je.jsx)(Jn,{label:"Label Appearance Scale",value:5*n.labelScale,onChange:function(e){return t(mt(mt({},n),{},{labelScale:e/5}))}})})})]})]})})};function Ct(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Ot(e){for(var n=1;n2&&void 0!==arguments[2]?arguments[2]:2e3,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:200;if("color"!==e){var l=ze.current,s=Te.current,c=Be.current,a=null!==(t=Ie.current[n])&&void 0!==t?t:[],u=Object.fromEntries([n].concat((0,i.Z)(a.flatMap((function(e){return[e.source,e.target]})))).map((function(e){return[e,{}]})));if("zoom"===e)return s.nodeIds.length&&w({nodeIds:[]}),void setTimeout((function(){return l.zoomToFit(r,o,(function(e){return u[e.id]}))}),50);if(!s.nodeIds.length)return w({nodeIds:[n]}),void setTimeout((function(){l.centerAt(0,0,10),l.zoomToFit(1,o)}),50);if("add"!==c.localSame)return w({nodeIds:[n]}),void setTimeout((function(){l.centerAt(0,0,10),l.zoomToFit(1,o)}),50);if(!s.nodeIds.includes(n)||!s.nodeIds.some((function(e){return u[e]})))return w({nodeIds:[n]}),void setTimeout((function(){l.centerAt(0,0,10),l.zoomToFit(1,o)}),50);w((function(e){return Tt(Tt({},e),{},{nodeIds:[].concat((0,i.Z)(e.nodeIds),[n])})})),setTimeout((function(){l.centerAt(0,0,10),l.zoomToFit(1,o)}),50)}};(0,m.useEffect)((function(){Fe.current=new O.Z("ws://localhost:35903"),Fe.current.addEventListener("open",(function(){console.log("Connection with Emacs established")})),Fe.current.addEventListener("message",(function(e){var n=Be.current,t=JSON.parse(e.data);switch(t.type){case"graphdata":return function(e){var n,t,r,s=Pe.current;Le.current=null!==(n=e.tags)&&void 0!==n?n:[];var c=null!==(t=e.nodes)&&void 0!==t?t:[],a=null!==(r=e.links)&&void 0!==r?r:[],u=c.reduce((function(e,n){var t;return Tt(Tt({},e),{},(0,o.Z)({},n.file,[].concat((0,i.Z)(null!==(t=e[n.file])&&void 0!==t?t:[]),[n])))}),{}),d=Object.keys(u).flatMap((function(e){var n,t=null!==(n=u[e])&&void 0!==n?n:[],r=t.find((function(e){return 0===e.level})),i=t.filter((function(e){return 0!==e.level}));return r?i.map((function(e){var n=t.filter((function(n){var t;return!(n.level>=e.level||n.pos>=e.pos||null===(t=e.olp)||void 0===t||!t.includes(n.title))})).reduce((function(e,n){return n.level>e.level&&(e=n),e}),r);return{source:e.id,target:(null===n||void 0===n?void 0:n.id)||r.id,type:"heading"}})):[]})),h=Object.keys(u).flatMap((function(e){var n,t=null!==(n=u[e])&&void 0!==n?n:[],r=t.find((function(e){return 0===e.level})),i=t.filter((function(e){return 0!==e.level}));return r?i.map((function(e){return{source:e.id,target:r.id,type:"parent"}})):[]}));Pe.current=Object.fromEntries(c.map((function(e){return[e.id,e]})));var g=[].concat((0,i.Z)(a),(0,i.Z)(d),(0,i.Z)(h)),f=[],p=g.map((function(e){var n=e.source,t=e.target;return Pe.current[n]?Pe.current[t]?e:(f.push({id:t,tags:["bad"],properties:{FILELESS:"yes",bad:"yes"},file:"",title:t,level:0,pos:0,olp:null}),Tt(Tt({},e),{},{type:"bad"})):(f.push({id:n,tags:["bad"],properties:{FILELESS:"yes",bad:"yes"},file:"",title:n,level:0,pos:0,olp:null}),Tt(Tt({},e),{},{type:"bad"}))}));Pe.current=Tt(Tt({},Pe.current),Object.fromEntries(f.map((function(e){return[e.id,e]})))),Ie.current=p.reduce((function(e,n){var t,r,l;return Tt(Tt({},e),{},(l={},(0,o.Z)(l,n.source,[].concat((0,i.Z)(null!==(t=e[n.source])&&void 0!==t?t:[]),[n])),(0,o.Z)(l,n.target,[].concat((0,i.Z)(null!==(r=e[n.target])&&void 0!==r?r:[]),[n])),l))}),{});var x=[].concat((0,i.Z)(c),f);De.current=x.reduce((function(e,n){var t,r=null===(t=n.properties)||void 0===t?void 0:t.ROAM_REFS;if(null===r||void 0===r||!r.includes("cite"))return e;var i=r.replaceAll(/cite:(.*)/g,"$1");return i?Tt(Tt({},e),{},(0,o.Z)({},i,n)):e}),{});var j={nodes:x,links:p},b=Ze.current;if(0===b.nodes.length){var v=JSON.parse(JSON.stringify(j));return Ze.current=v,void U(v)}var m=[].concat((0,i.Z)(b.nodes.flatMap((function(e){var n,t=null!==(n=Pe.current[null===e||void 0===e?void 0:e.id])&&void 0!==n&&n;return t?[Tt(Tt({},e),t)]:[]}))),(0,i.Z)(Object.keys(Pe.current).filter((function(e){return!s[e]})).map((function(e){return Pe.current[e]})))),y=m.reduce((function(e,n,t){var r=null===n||void 0===n?void 0:n.id;return Tt(Tt({},e),{},(0,o.Z)({},r,t))}),{}),C=p.map((function(e){var n=Xt(e),t=(0,l.Z)(n,2),r=t[0],i=t[1];return Tt(Tt({},e),{},{source:m[y[r]],target:m[y[i]]})}));U({nodes:m,links:C})}(t.data);case"variables":return console.log(t.data),void(Ee.current=t.data);case"theme":return Re(["custom",t.data]);case"command":switch(t.data.commandName){case"local":var r=Y.zoomSpeed,s=Y.zoomPadding;He("local",t.data.id,r,s),J(t.data.id);break;case"zoom":var c,a,u=(null===t||void 0===t||null===(c=t.data)||void 0===c?void 0:c.speed)||n.zoomSpeed,d=(null===t||void 0===t||null===(a=t.data)||void 0===a?void 0:a.padding)||n.zoomPadding;He("zoom",t.data.id,u,d),J(t.data.id);break;case"follow":He(n.follow,t.data.id,n.zoomSpeed,n.zoomPadding),J(t.data.id);break;default:return console.error("unknown message type",t.type)}}}))}),[]),(0,m.useEffect)((function(){var e=ze.current;!e||v.nodeIds.length>1||(v.nodeIds.length||!N.gravityOn?setTimeout((function(){e.zoomToFit(5,200)}),50):e.zoomToFit())}),[v.nodeIds]);var Ae=(0,j.iP)(),Me=(0,l.Z)(Ae,2),We=Me[0],Ve=Me[1],Xe=(0,m.useRef)(),_e=(0,m.useState)(null),Ue=_e[0],qe=_e[1],Ge=(0,m.useState)({left:0,top:0,right:void 0,bottom:void 0}),Je=Ge[0],Qe=Ge[1],Ke=(0,u.q)();(0,d.O)({ref:Xe,handler:function(){Ke.onClose()}});var Ye=function(e,n,t){Qe(t||{left:n.pageX,top:n.pageY,right:void 0,bottom:void 0}),qe(e),Ke.onOpen()},$e=function(e,n){"replace"!==n?v.nodeIds.includes(e.id)||w((function(n){return Tt(Tt({},n),{},{nodeIds:[].concat((0,i.Z)(n.nodeIds),[e.id])})})):w({nodeIds:[e.id]})},en=(0,m.useState)({type:"Graph",title:"Graph",icon:(0,je.jsx)(y.DvO,{})}),nn=(en[0],en[1],Sn("mainWindowWidth",We)),rn=(0,l.Z)(nn,2),on=rn[0],ln=rn[1];return(0,je.jsxs)(h.xu,{display:"flex",alignItems:"flex-start",flexDirection:"row",height:"100vh",overflow:"clip",children:[(0,je.jsx)(Zt,{physics:N,setPhysics:I,threeDim:t,setThreeDim:r,filter:z,setFilter:E,visuals:W,setVisuals:V,mouse:te,setMouse:re,behavior:Y,setBehavior:$,tagColors:a,setTagColors:x,local:le,setLocal:se,tags:Le.current}),(0,je.jsx)(h.xu,{position:"absolute",children:_&&(0,je.jsx)(Wt,{nodeById:Pe.current,linksByNodeId:Ie.current,webSocket:Fe.current,variables:Ee.current,physics:N,graphData:_,threeDim:t,emacsNodeId:G,filter:z,visuals:W,behavior:Y,mouse:te,scope:v,setScope:w,tagColors:a,setPreviewNode:he,sidebarHighlightedNode:ye,windowWidth:We,windowHeight:Ve,openContextMenu:Ye,contextMenu:Ke,handleLocal:$e,mainWindowWidth:on,setMainWindowWidth:ln,setContextMenuTarget:qe,graphRef:ze,local:le})}),(0,je.jsx)(h.xu,{position:"relative",zIndex:4,width:"100%",children:(0,je.jsx)(g.k,{className:"headerBar",h:10,flexDir:"column",children:(0,je.jsx)(g.k,{alignItems:"center",h:10,justifyContent:"flex-end",children:(0,je.jsxs)(g.k,{height:"100%",flexDirection:"row",children:[v.nodeIds.length>0&&(0,je.jsx)(f.u,{label:"Return to main graph",children:(0,je.jsx)(p.h,{m:1,icon:(0,je.jsx)(y.DvO,{}),"aria-label":"Exit local mode",onClick:function(){return w((function(e){return Tt(Tt({},e),{},{nodeIds:[]})}))},variant:"subtle"})}),(0,je.jsx)(f.u,{label:we?"Close sidebar":"Open sidebar",children:(0,je.jsx)(p.h,{m:1,icon:(0,je.jsx)(C.iBV,{}),"aria-label":"Close file-viewer",variant:"subtle",onClick:we?Se:ke})})]})})})}),(0,je.jsx)(h.xu,{position:"relative",zIndex:4,children:(0,je.jsx)(Ln,{isOpen:we,onOpen:ke,onClose:Se,previewNode:ve,setPreviewNode:he,canUndo:xe,canRedo:be,previousPreviewNode:fe,nextPreviewNode:pe,resetPreviewNode:ge,setSidebarHighlightedNode:Ce,openContextMenu:Ye,scope:v,setScope:w,windowWidth:We,tagColors:a,setTagColors:x,filter:z,setFilter:E,nodeById:Pe.current,linksByNodeId:Ie.current,nodeByCite:De.current})}),Ke.isOpen&&(0,je.jsx)("div",{ref:Xe,children:(0,je.jsx)(Ne,{scope:v,target:Ue,background:!1,coordinates:Je,handleLocal:$e,menuClose:Ke.onClose.bind(Ke),webSocket:Fe.current,setPreviewNode:he,setFilter:E,filter:z,setTagColors:x,tagColors:a})})]})}var Wt=function(e){var n=e.graphRef,t=e.physics,s=e.graphData,u=e.threeDim,d=e.linksByNodeId,g=e.filter,f=e.emacsNodeId,p=e.nodeById,j=e.visuals,v=e.behavior,y=e.mouse,C=e.scope,O=e.local,k=(e.setScope,e.webSocket),S=e.tagColors,N=e.setPreviewNode,I=e.sidebarHighlightedNode,D=e.windowWidth,L=e.windowHeight,z=(e.setContextMenuTarget,e.openContextMenu),E=e.contextMenu,R=e.handleLocal,T=e.variables,B=T.dailyDir,F=(T.roamDir,(0,m.useState)(null)),H=F[0],A=F[1],W=(0,a.useTheme)(),V=(0,m.useContext)(tn.N).emacsTheme,X=function(e,n,t){switch(e){case y.preview:N(n);break;case y.local:R(n,v.localSame);break;case y.follow:ne(n,k);break;case y.context:z(n,t)}},_=(0,m.useRef)(null);(0,m.useEffect)((function(){f&&A(p[f])}),[f]);var U=(0,m.useRef)({}),q=(0,m.useRef)({}),G=(0,m.useMemo)((function(){var e;q.current={};var n=null===s||void 0===s||null===(e=s.nodes)||void 0===e?void 0:e.filter((function(e){var n,t,r,i,l=e;return g.tagsBlacklist.length&&g.tagsBlacklist.some((function(e){var n;return(null===l||void 0===l||null===(n=l.tags)||void 0===n?void 0:n.indexOf(e))>-1}))||g.tagsWhitelist.length>0&&!g.tagsWhitelist.some((function(e){var n;return(null===l||void 0===l||null===(n=l.tags)||void 0===n?void 0:n.indexOf(e))>-1}))||g.filelessCites&&null!==l&&void 0!==l&&null!==(n=l.properties)&&void 0!==n&&n.FILELESS||null!==g&&void 0!==g&&g.bad&&null!==l&&void 0!==l&&null!==(t=l.properties)&&void 0!==t&&t.bad||g.dailies&&B&&null!==(r=l.file)&&void 0!==r&&r.includes(B)?(q.current=Tt(Tt({},q.current),{},(0,o.Z)({},l.id,l)),!1):!g.noter||null===(i=l.properties)||void 0===i||!i.NOTER_PAGE||(q.current=Tt(Tt({},q.current),{},(0,o.Z)({},l.id,l)),!1)})).filter((function(e){var n,t=(null!==(n=d[null===e||void 0===e?void 0:e.id])&&void 0!==n?n:[]).filter((function(e){return!q.current[e.source]&&!q.current[e.target]}));return!g.orphans||(g.parent?0!==t.length:0!==t.length&&t.some((function(e){return!["parent","heading"].includes(e.type)})))})),t=n.map((function(e){return e.id})),r=s.links.filter((function(e){var n=Xt(e),r=(0,l.Z)(n,2),i=r[0],o=r[1];if(!t.includes(i)||!t.includes(o))return!1;var s=e;return g.parent?"heading"===g.parent?"parent"!==s.type:"heading"!==s.type:!["parent","heading"].includes(s.type)}));return U.current=r.reduce((function(e,n){var t,r,s,c=n,a=Xt(c),u=(0,l.Z)(a,2),d=u[0],h=u[1];return Tt(Tt({},e),{},(s={},(0,o.Z)(s,d,[].concat((0,i.Z)(null!==(t=e[d])&&void 0!==t?t:[]),[c])),(0,o.Z)(s,h,[].concat((0,i.Z)(null!==(r=e[h])&&void 0!==r?r:[]),[c])),s))}),{}),{nodes:n,links:r}}),[g,s]),J=(0,m.useState)({nodes:[],links:[]}),Q=J[0],K=J[1];(0,m.useEffect)((function(){if(C.nodeIds.length){var e=C.nodeIds.length>1?Q.nodes:[],n=e.map((function(e){return e.id})),t=function(e,n){var t=[e[0]],r=[],i=[e[0]];return Array.from({length:n},(function(){t.forEach((function(e){var n;(null!==(n=U.current[e])&&void 0!==n?n:[]).forEach((function(e){var n=Xt(e),t=(0,l.Z)(n,2),o=t[0],s=t[1];i.includes(o)?i.includes(s)||r.push(s):r.push(o)}))})),t=r,r.forEach((function(e){return e&&i.push(e)})),r=[]})),i}(C.nodeIds,O.neighbors),r=G.nodes.filter((function(r){var i;return e.length?!n.includes(r.id)&&(null!==(i=U.current[r.id])&&void 0!==i?i:[]).some((function(e){var n=Xt(e),t=(0,l.Z)(n,2),r=t[0],i=t[1];return C.nodeIds.includes(r)||C.nodeIds.includes(i)})):t.includes(r.id)})).map((function(e){return Tt(Tt({},e),{},{x:0,y:0,vy:0,vx:0})})),o=[].concat((0,i.Z)(e),(0,i.Z)(r)),s=o.map((function(e){return e.id})),c=C.nodeIds.length>1?Q.links:[],a=G.links.filter((function(e){var t=Xt(e),r=(0,l.Z)(t,2),i=r[0],o=r[1];return!(c.length&&n.includes(o)&&n.includes(i))&&(s.includes(i)&&s.includes(o))})).map((function(e){var n=Xt(e),t=(0,l.Z)(n,2);return{source:t[0],target:t[1]}})),u=[].concat((0,i.Z)(c),(0,i.Z)(a));K({nodes:o,links:u})}}),[O.neighbors,g,C,JSON.stringify(s),G.links,G.nodes]),(0,m.useEffect)((function(){(0,r.Z)(c().mark((function e(){var r,i;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.current,e.next=3,Bt;case 3:i=e.sent,!t.gravityOn||C.nodeIds.length&&!t.gravityLocal?(r.d3Force("x",null),r.d3Force("y",null),u&&r.d3Force("z",null)):(r.d3Force("x",i.forceX().strength(t.gravity)),r.d3Force("y",i.forceY().strength(t.gravity)),u&&r.d3Force("z",i.forceZ().strength(t.gravity))),t.centering?r.d3Force("center",i.forceCenter().strength(t.centeringStrength)):r.d3Force("center",null),t.linkStrength&&r.d3Force("link").strength(t.linkStrength),t.linkIts&&r.d3Force("link").iterations(t.linkIts),t.charge&&r.d3Force("charge").strength(t.charge),r.d3Force("collide",t.collision?i.forceCollide().radius(t.collisionStrength):null);case 10:case"end":return e.stop()}}),e)})))()}),[t,u,C]),(0,m.useEffect)((function(){var e;null===(e=n.current)||void 0===e||e.d3ReheatSimulation()}),[t,C.nodeIds.length]);var Y=(0,m.useRef)(0),$=(0,m.useState)(1),ee=$[0],te=$[1],re=(0,x._7)((function(e){return te(e)}),{duration:j.animationSpeed,algorithm:Z[j.algorithmName]}),ie=(0,l.Z)(re,2),oe=ie[0],le=ie[1],se=(0,x._7)((function(e){return te(Math.min(ee,-1*(e-1)))}),{duration:j.animationSpeed,algorithm:Z[j.algorithmName]}),ce=(0,l.Z)(se,2),ae=ce[0],ue=ce[1],de=(0,m.useMemo)((function(){var e;if(!_.current)return{};var n=U.current[_.current.id];return n?Object.fromEntries([null===(e=_.current)||void 0===e?void 0:e.id].concat((0,i.Z)(n.flatMap((function(e){return[e.source,e.target]})))).map((function(e){return[e,{}]}))):{}}),[JSON.stringify(_.current),JSON.stringify(U.current)]);(0,m.useEffect)((function(){null!==I&&void 0!==I&&I.id?A(I):A(null)}),[I]);var he=(0,m.useRef)(null);(0,m.useEffect)((function(){if(_.current=H,H&&(he.current=H),!j.highlightAnim)return te(H?1:0);H?oe():(le(),ee>.5?ae():te(0))}),[H]);var ge=(0,m.useMemo)((function(){return Object.fromEntries(M.map((function(e){var n=_t(e,W),t=M.map((function(e){return[e,b.Z(n,_t(e,W))]}));return[e,Object.fromEntries(t)]})))}),[V]),fe=(0,m.useMemo)((function(){var e,n,t,r=null!==(e=U.current[null===(n=he.current)||void 0===n?void 0:n.id])&&void 0!==e?e:[];return Object.fromEntries([null===(t=he.current)||void 0===t?void 0:t.id].concat((0,i.Z)(r.flatMap((function(e){return Xt(e)})))).map((function(e){return[e,{}]})))}),[JSON.stringify(H),he.current,U.current]),pe=function(e){var n,t,r,i,o,l=null!==(n=null===(t=U.current[e])||void 0===t?void 0:t.length)&&void 0!==n?n:0;return j.nodeColorScheme[(r=l,i=0,o=j.nodeColorScheme.length-1,Math.min(Math.max(r,i),o))]},xe=function(e,n){return U.current[e].length>U.current[n].length?pe(e):pe(n)},be=(0,m.useMemo)((function(){return _t(j.labelTextColor,W)}),[j.labelTextColor,V]),ve=(0,m.useMemo)((function(){return _t(j.labelBackgroundColor,W)}),[j.labelBackgroundColor,V]),me=function(e){var n,t=null!==(n=U.current[e.id])&&void 0!==n?n:[],r=t.length?t.filter((function(e){return"parent"===e.type})).length:0,i=3+t.length*j.nodeSizeLinks-(g.parent?0:r);return 1===j.highlightNodeSize?i:i*(de[e.id]||fe[e.id]?1+ee*(j.highlightNodeSize-1):1)},ye=(0,m.useState)(!1),Ce=ye[0],Oe=ye[1],we=(0,m.useRef)(1),ke={graphData:C.nodeIds.length?Q:G,width:D,height:L,backgroundColor:_t(j.backgroundColor,W),warmupTicks:1===C.nodeIds.length?100:C.nodeIds.length>1?20:0,onZoom:function(e){var n=e.k;e.x,e.y;return we.current=n},nodeColor:function(e){return function(e,n){var t,r,i=de[e.id]||fe[e.id];if(j.emacsNodeColor&&e.id===f)return _t(j.emacsNodeColor,n);if(S&&null!==e&&void 0!==e&&e.tags.some((function(e){return S[e]}))){var o=S[null===e||void 0===e?void 0:e.tags.filter((function(e){return S[e]}))[0]];return i?ge[o][o](j.highlightFade*ee):ge[o][j.backgroundColor](j.highlightFade*ee)}return j.citeNodeColor&&null!==e&&void 0!==e&&null!==(t=e.properties)&&void 0!==t&&t.ROAM_REFS&&null!==e&&void 0!==e&&null!==(r=e.properties)&&void 0!==r&&r.FILELESS?i?_t(j.citeNodeColor,n):ge[j.citeNodeColor][j.backgroundColor](j.highlightFade*ee):j.refNodeColor&&e.properties.ROAM_REFS?i?_t(j.refNodeColor,n):ge[j.refNodeColor][j.backgroundColor](j.highlightFade*ee):i?j.nodeHighlight?ge[pe(e.id)][j.nodeHighlight](ee):_t(pe(e.id),n):ge[pe(e.id)][j.backgroundColor](j.highlightFade*ee)}(e,W)},nodeRelSize:j.nodeRel,nodeVal:function(e){return me(e)/Math.pow(we.current,j.nodeZoomSize)},nodeCanvasObject:function(e,n,t){if(e&&!Ce&&j.labels){var r=fe[e.id];if(!(t<=j.labelScale||1===j.labels)||de[e.id]||r){var o=e.title,l=o.substring(0,j.labelLength),s=j.labelFontSize/(.75*Math.min(Math.max(.5,t),3)),c=[1.1*n.measureText(l).width,s].map((function(e){return e+.5*s})),a=Math.min(3*(t-j.labelScale)/j.labelScale,1),u=function(){return 1===j.labels||t<=j.labelScale?ee:de[e.id]||fe[e.id]?Math.max(a,ee):1*a*(-1*(j.highlightFade*ee-1))},d=8*Math.cbrt(me(e)*j.nodeRel);if(j.labelBackgroundColor&&j.labelBackgroundOpacity){var h=u()*j.labelBackgroundOpacity,g=Ut(ve,h);n.fillStyle=g,n.fillRect.apply(n,[e.x-c[0]/2,e.y-c[1]/2+d].concat((0,i.Z)(c)))}var f=u();n.textAlign="center",n.textBaseline="middle";var p=Ut(be,f);n.fillStyle=p,n.font="".concat(s,"px Sans-Serif");var x=P()(l,{width:j.labelWordWrap}).split("\n");(o.length>j.labelLength?[].concat((0,i.Z)(x.slice(0,-1)),["".concat(x.slice(-1),"...")]):x).forEach((function(t,r){n.fillText(t,e.x,e.y+d+j.labelLineSpace*s*r)}))}}},nodeCanvasObjectMode:function(){return"after"},linkDirectionalParticles:j.particles?j.particlesNumber:void 0,linkDirectionalArrowLength:j.arrows?j.arrowsLength:void 0,linkDirectionalArrowRelPos:j.arrowsPos,linkDirectionalArrowColor:j.arrowsColor?function(){return _t(j.arrowsColor,W)}:void 0,linkColor:function(e){var n,t="object"===typeof e.source?e.source.id:e.source,r="object"===typeof e.target?e.target.id:e.target,i=Vt(e,_.current),o=Vt(e,he.current),l=i||o,s=e;return j.refLinkColor&&"ref"===s.type?l&&(j.refLinkHighlightColor||j.linkHighlight)?ge[j.refLinkColor][j.refLinkHighlightColor||j.linkHighlight](ee):ge[j.refLinkColor][j.backgroundColor](j.highlightFade*ee):j.citeLinkColor&&null!==(n=s.type)&&void 0!==n&&n.includes("cite")?l&&(j.citeLinkHighlightColor||j.linkHighlight)?ge[j.citeLinkColor][j.citeLinkHighlightColor||j.linkHighlight](ee):ge[j.citeLinkColor][j.backgroundColor](j.highlightFade*ee):function(e,n,t,r){if(!j.linkHighlight&&!j.linkColorScheme&&!t)return _t(xe(e,n),r);if(!t&&!j.linkColorScheme){var i=xe(e,n);return ge[i][j.backgroundColor](j.highlightFade*ee)}return t?j.linkHighlight||j.linkColorScheme?j.linkHighlight?j.linkColorScheme?ge[j.linkColorScheme][j.linkHighlight](ee):ge[xe(e,n)][j.linkHighlight](ee):_t(j.linkColorScheme,r):_t(xe(e,n),r):ge[j.linkColorScheme][j.backgroundColor](j.highlightFade*ee)}(t,r,l,W)},linkWidth:function(e){if(1===j.highlightLinkSize)return j.linkWidth;var n=Vt(e,_.current),t=Vt(e,he.current);return n||t?j.linkWidth*(1+ee*(j.highlightLinkSize-1)):j.linkWidth},linkDirectionalParticleWidth:j.particlesWidth,d3AlphaDecay:t.alphaDecay,d3AlphaMin:t.alphaMin,d3VelocityDecay:t.velocityDecay,onNodeClick:function(e,n){var t=e,r=n.timeStamp-Y.current<200;if(Y.current=n.timeStamp,r)return X("double",t,n);var i=Y.current;return setTimeout((function(){if(Y.current===i)return X("click",t,n)}),200)},onNodeHover:function(e){j.highlight&&(H||(ue(),te(0)),A(e))},onNodeRightClick:function(e,n){X("right",e,n)},onNodeDrag:function(e){A(e),Oe(!0)},onNodeDragEnd:function(){A(null),Oe(!1)}};return(0,je.jsx)(h.xu,{overflow:"hidden",onClick:E.onClose,children:u?(0,je.jsx)(Ht,Tt(Tt({ref:n},ke),{},{nodeThreeObjectExtend:!0,nodeOpacity:j.nodeOpacity,nodeResolution:j.nodeResolution,linkOpacity:j.linkOpacity,nodeThreeObject:function(e){if(j.labels&&(!(j.labels<3)||de[e.id])){var n=new w.Z(e.title.substring(0,40));return n.color=_t(j.labelTextColor,W),n.backgroundColor=_t(j.labelBackgroundColor,W),n.padding=2,n.textHeight=8,n}}})):(0,je.jsx)(Ft,Tt(Tt({ref:n},ke),{},{linkLineDash:function(e){var n,t=e;return j.citeDashes&&null!==(n=t.type)&&void 0!==n&&n.includes("cite")?[j.citeDashLength,j.citeGapLength]:j.refDashes&&"ref"==t.type?[j.refDashLength,j.refGapLength]:null}}))})};function Vt(e,n){var t,r;return(null===(t=e.source)||void 0===t?void 0:t.id)===(null===n||void 0===n?void 0:n.id)||(null===(r=e.target)||void 0===r?void 0:r.id)===(null===n||void 0===n?void 0:n.id)}function Xt(e){return["object"===typeof e.source?e.source.id:e.source,"object"===typeof e.target?e.target.id:e.target]}function _t(e,n){return e.split(".").reduce((function(e,n){return e[n]}),n.colors)}function Ut(e,n){return"rgba("+(e=e.replace("#","")).match(new RegExp("(.{"+e.length/3+"})","g")).map((function(n){return parseInt(e.length%2?n+n:n,16)})).concat(isFinite(n)?n:1).join(",")+")"}},45301:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return t(64685)}])}},function(e){e.O(0,[774,737,13,874,573,446,816,888,179],(function(){return n=45301,e(e.s=n);var n}));var n=e.O();_N_E=n}]); \ No newline at end of file diff --git a/out/_next/static/chunks/pages/index-c3655ec8db181f6ae1ab.js b/out/_next/static/chunks/pages/index-c3655ec8db181f6ae1ab.js new file mode 100644 index 0000000..6f09db5 --- /dev/null +++ b/out/_next/static/chunks/pages/index-c3655ec8db181f6ae1ab.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{54530:function(e,n,t){"use strict";t.r(n),t.d(n,{Graph:function(){return Vt},GraphPage:function(){return Wt},default:function(){return Mt},getThemeColor:function(){return Ut},hexToRGBA:function(){return qt},normalizeLinkEnds:function(){return _t}});var r=t(15861),i=t(42982),o=t(4942),l=t(70885),s=t(87757),c=t.n(s),a=t(40980),u=t(74860),d=t(95869),h=t(48017),g=t(94096),f=t(96699),p=t(48420),x=t(57775),j=t(54309),b=t(52596),v=t(9008),m=t(67294),y=t(47516),C=t(63750),O=t(22003),w=t(31122),k=t(7520),S=t(36194),P=[],N={};for(var D in S.oY)for(var I in S.oY[D]){var L=D+I;"LinearNone"===L&&(L="Linear"),P.push(L),N[L]=S.oY[D][I]}var z=N,E={enabled:!0,charge:-700,collision:!0,collisionStrength:20,centering:!0,centeringStrength:.2,linkStrength:.3,linkIts:1,alphaDecay:.05,alphaTarget:0,alphaMin:0,velocityDecay:.25,gravity:.3,gravityOn:!0,gravityLocal:!1},Z={orphans:!1,dailies:!1,parent:"heading",filelessCites:!1,tagsBlacklist:[],tagsWhitelist:[],bad:!0,nodes:[],links:[],date:[],noter:!0},R={particles:!1,particlesNumber:0,particlesWidth:4,arrows:!1,arrowsLength:1,arrowsPos:.5,arrowsColor:"",linkOpacity:.8,linkWidth:1,nodeRel:4,nodeOpacity:1,nodeResolution:12,labels:2,labelScale:1,labelFontSize:10,labelLength:40,labelWordWrap:25,labelLineSpace:1,labelDynamicDegree:8,labelDynamicStrength:.5,highlight:!0,highlightNodeSize:1.1,highlightLinkSize:1,highlightFade:.8,highlightAnim:!0,animationSpeed:360,algorithmOptions:P,algorithmName:"SinusoidalOut",linkColorScheme:"gray.500",nodeColorScheme:["red.500","gray.600","yellow.500","green.500","cyan.500","blue.500","pink.500","purple.500","orange.500"],nodeHighlight:"purple.500",linkHighlight:"purple.500",backgroundColor:"white",emacsNodeColor:"gray.800",labelTextColor:"black",labelBackgroundColor:"",labelBackgroundOpacity:.7,citeDashes:!0,citeDashLength:35,citeGapLength:15,citeLinkColor:"gray.700",citeLinkHighlightColor:"",citeNodeColor:"black",refDashes:!0,refDashLength:35,refGapLength:15,refLinkColor:"gray.700",refLinkHighlightColor:"",refNodeColor:"black",nodeSizeLinks:.5,nodeZoomSize:1.2},T={follow:"zoom",localSame:"add",zoomPadding:200,zoomSpeed:2e3},B={highlight:"hover",local:"double",follow:"never",context:"right",preview:"click",backgroundExitsLocal:!1},F={neighbors:1},H=["red.500","orange.500","yellow.500","green.500","cyan.500","blue.500","pink.500","purple.500","white","gray.100","gray.200","gray.300","gray.400","gray.500","gray.600","gray.700","gray.800","gray.900","black"],A=t(11252),M=t(336),W=t(85675),V=t(72026),X=t(64115),_=t(49364),U=t(94030),q=t(46617),G=t(50862),J=t(68928),Q=t(55830),K=t(2827);function Y(e,n,t){t.send(JSON.stringify({command:e,data:n}))}function $(e,n){Y("open",{id:e.id},n)}var ee=t(85305),ne=t(77787),te=t(45987),re=t(80658),ie=t(38554),oe=t.n(ie),le=t(84461),se=t(73808),ce=t(53869),ae=t(39629);function ue(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function de(e){for(var n=1;n0},me={exit:{size:{duration:.2,ease:he.ease},opacity:{duration:.3,ease:he.ease}},enter:{size:{duration:.3,ease:he.ease},opacity:{duration:.4,ease:he.ease}}},ye={exit:function(e){var n,t,r=e.animateOpacity,i=e.startingSize,l=e.transition,s=e.transitionEnd,c=e.delay,a=e.dimension;return be(be({},r&&{opacity:ve(i)?1:0}),{},(t={overflow:"hidden"},(0,o.Z)(t,a,i),(0,o.Z)(t,"transitionEnd",null===s||void 0===s?void 0:s.exit),(0,o.Z)(t,"transition",null!==(n=null===l||void 0===l?void 0:l.exit)&&void 0!==n?n:fe(me.exit,c)),t))},enter:function(e){var n,t,r=e.animateOpacity,i=e.endingSize,l=e.transition,s=e.transitionEnd,c=e.delay,a=e.dimension;return be(be({},r&&{opacity:1}),{},(t={},(0,o.Z)(t,a,i),(0,o.Z)(t,"transitionEnd",null===s||void 0===s?void 0:s.enter),(0,o.Z)(t,"transition",null!==(n=null===l||void 0===l?void 0:l.enter)&&void 0!==n?n:ge(me.enter,c)),t))}},Ce=m.forwardRef((function(e,n){var t=e.in,r=e.unmountOnExit,i=e.animateOpacity,o=void 0===i||i,s=e.startingSize,c=void 0===s?0:s,a=e.endingSize,u=void 0===a?"auto":a,d=e.dimension,h=void 0===d?"height":d,g=e.style,f=e.className,p=e.transition,x=e.transitionEnd,j=(0,te.Z)(e,xe),b=m.useState(!1),v=(0,l.Z)(b,2),y=v[0],C=v[1];m.useEffect((function(){var e=setTimeout((function(){C(!0)}));return function(){return clearTimeout(e)}}),[]),(0,re.ZK)({condition:Boolean(c>0&&r),message:"startingSize and unmountOnExit are mutually exclusive. You can't use them together"});var O=parseFloat(c.toString())>0,w={startingSize:c,endingSize:u,animateOpacity:o,dimension:h,transition:y?p:{enter:{duration:0}},transitionEnd:oe()(x,{enter:{overflow:"initial"},exit:r?void 0:{display:O?"block":"none"}})},k=!r||t,S=t||r?"enter":"exit";return(0,pe.jsx)(ce.M,{initial:!1,custom:w,children:k&&(0,pe.jsx)(ae.E.div,be(be({ref:n},j),{},{className:(0,le.cx)("chakra-collapse",f),style:be({overflow:"hidden",display:"block"},g),custom:w,variants:ye,initial:!!r&&"exit",animate:S,exit:"exit"}))})}));function Oe(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function we(e){for(var n=1;n-1,f=a.indexOf(s)>-1,p=(0,u.q)();return(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)(A.sN,{icon:(0,pe.jsx)(h.xu,{bgColor:l[s],borderRadius:"sm",height:3,width:3,borderColor:l[s]||"gray.600",borderWidth:1}),closeOnSelect:!1,onClick:p.onToggle,children:(0,pe.jsx)(X.x,{children:"Change color"})}),(0,pe.jsx)(Ce,{in:p.isOpen,children:(0,pe.jsx)(g.k,{ml:2,mt:2,flexWrap:"wrap",children:H.map((function(e){return(0,pe.jsx)(h.xu,{children:(0,pe.jsx)(h.xu,{tabIndex:0,cursor:"pointer",onClick:function(){return n(we(we({},l),{},(0,o.Z)({},s,e)))},bgColor:e,m:1,borderRadius:"sm",height:3,width:3})},e)}))})}),!f&&(0,pe.jsx)(A.sN,{onClick:function(){t(d?function(e){return we(we({},e),{},{tagsBlacklist:e.tagsBlacklist.filter((function(e){return e!==s}))})}:function(e){return we(we({},e),{},{tagsBlacklist:[].concat((0,i.Z)(e.tagsBlacklist),[s])})})},icon:d?(0,pe.jsx)(ee.V,{}):(0,pe.jsx)(ne.t,{}),children:d?"Remove from blacklist":"Add to blacklist"}),!d&&(0,pe.jsx)(A.sN,{onClick:function(){t(f?function(e){return we(we({},e),{},{tagsWhitelist:e.tagsWhitelist.filter((function(e){return e!==s}))})}:function(e){return we(we({},e),{},{tagsWhitelist:[].concat((0,i.Z)(e.tagsWhitelist),[s])})})},icon:f?(0,pe.jsx)(ee.V,{}):(0,pe.jsx)(Q.O,{}),children:f?"Remove from whitelist":"Add to whitelist"})]})},Se=function(e){e.background;var n,t,r=e.target,i=(e.nodeType,e.coordinates),o=e.handleLocal,l=e.menuClose,s=e.scope,c=e.webSocket,a=e.setPreviewNode,d=e.setTagColors,h=e.tagColors,g=e.setFilter,f=e.filter,p=(0,u.q)(),x=p.isOpen,j=p.onOpen,b=p.onClose;(0,m.useRef)();return(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)(A.v2,{defaultIsOpen:!0,closeOnBlur:!1,onClose:function(){return l()},children:(0,pe.jsx)(A.qy,{zIndex:"overlay",bgColor:"white",color:"black",position:"absolute",left:i.left,top:i.top,right:i.right,bottom:i.bottom,fontSize:"xs",boxShadow:"xl",children:"string"!==typeof r?(0,pe.jsxs)(pe.Fragment,{children:[r&&(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)(M.X,{size:"xs",isTruncated:!0,px:3,py:1,children:r.title}),(0,pe.jsx)(A.R,{borderColor:"gray.500"})]}),0!==s.nodeIds.length&&(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)(A.sN,{onClick:function(){return o(r,"add")},icon:(0,pe.jsx)(U.I,{}),children:"Expand local graph at node"}),(0,pe.jsx)(A.sN,{onClick:function(){return o(r,"replace")},icon:(0,pe.jsx)(y.DvO,{}),children:"Open local graph for this node"})]}),null!==r&&void 0!==r&&null!==(n=r.properties)&&void 0!==n&&n.FILELESS?(0,pe.jsx)(A.sN,{icon:(0,pe.jsx)(G.d,{}),onClick:function(){return function(e,n){Y("create",{id:e.id,title:e.title,ref:e.properties.ROAM_REFS},n)}(r,c)},children:"Create node"}):(0,pe.jsx)(A.sN,{icon:(0,pe.jsx)(q.d,{}),onClick:function(){return $(r,c)},children:"Open in Emacs"}),(null===r||void 0===r||null===(t=r.properties)||void 0===t?void 0:t.ROAM_REFS)&&(0,pe.jsx)(A.sN,{icon:(0,pe.jsx)(J.h,{}),children:"Open in Zotero"}),0===s.nodeIds.length&&(0,pe.jsx)(A.sN,{icon:(0,pe.jsx)(y.DvO,{}),onClick:function(){return o(r,"replace")},children:"Open local graph"}),(0,pe.jsx)(A.sN,{icon:(0,pe.jsx)(Q.O,{}),onClick:function(){a(r)},children:"Preview"}),0===(null===r||void 0===r?void 0:r.level)&&(0,pe.jsx)(A.sN,{closeOnSelect:!1,icon:(0,pe.jsx)(K.p,{color:"red.500"}),color:"red.500",onClick:j,children:"Permenantly delete note"})]}):(0,pe.jsx)(ke,{target:r,tagColors:h,filter:f,setTagColors:d,setFilter:g})})}),"string"!==typeof r&&(0,pe.jsxs)(W.u_,{isCentered:!0,isOpen:x,onClose:b,children:[(0,pe.jsx)(W.ZA,{}),(0,pe.jsxs)(W.hz,{zIndex:"popover",children:[(0,pe.jsx)(W.xB,{children:"Delete node?"}),(0,pe.jsx)(W.ol,{}),(0,pe.jsx)(W.fe,{children:(0,pe.jsxs)(V.gC,{spacing:4,display:"flex",alignItems:"flex-start",children:[(0,pe.jsx)(X.x,{children:"This will permanently delete your note:"}),(0,pe.jsx)(X.x,{fontWeight:"bold",children:null===r||void 0===r?void 0:r.title}),0!==(null===r||void 0===r?void 0:r.level)&&(0,pe.jsx)(X.x,{children:"This will only delete the from this heading until but not including the next node. Your parent file and all other nodes will not be deleted."}),(0,pe.jsx)(X.x,{children:"Are you sure you want to do continue?"})]})}),(0,pe.jsxs)(W.mz,{children:[(0,pe.jsx)(_.z,{mr:3,onClick:function(){console.log("closing"),b(),l()},children:"Cancel"}),(0,pe.jsx)(_.z,{variant:"link",colorScheme:"red",ml:3,onClick:function(){console.log("aaaaa"),function(e,n){0===e.level&&Y("delete",{id:e.id,file:e.file},n)}(r,c),b(),l()},children:"Delete node"})]})]})]})]})},Pe=t(67101),Ne=t(35255),De=t(56884),Ie=function(e){var n=e.setJustification,t=(e.setIndent,e.setFont,e.justification),r=(e.setPreviewNode,e.canUndo),i=e.canRedo,o=(e.resetPreviewNode,e.previousPreviewNode),l=e.nextPreviewNode;return(0,pe.jsxs)(g.k,{flex:"0 1 40px",pb:3,alignItems:"center",justifyContent:"space-between",pl:1,pr:1,children:[(0,pe.jsx)(g.k,{children:(0,pe.jsxs)(Pe.h,{isAttached:!0,children:[(0,pe.jsx)(f.u,{label:"Go backward",children:(0,pe.jsx)(p.h,{variant:"subtle",icon:(0,pe.jsx)(Ne.w,{}),"aria-label":"Previous node",disabled:!r,onClick:function(){return o()}})}),(0,pe.jsx)(f.u,{label:"Go forward",children:(0,pe.jsx)(p.h,{variant:"subtle",icon:(0,pe.jsx)(De.X,{}),"aria-label":"Next node",disabled:!i,onClick:function(){return l()}})})]})}),(0,pe.jsx)(g.k,{children:(0,pe.jsx)(f.u,{label:"Justify content",children:(0,pe.jsx)(p.h,{variant:"subtle","aria-label":"Justify content",icon:[(0,pe.jsx)(y.v9V,{},"justify"),(0,pe.jsx)(y.YSr,{},"left"),(0,pe.jsx)(y.RXA,{},"right"),(0,pe.jsx)(y.tr_,{},"center")][t],onClick:function(){return n((function(e){return(e+1)%4}))}})})})]})},Le=t(35528);function ze(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Ee(e){for(var n=1;n2&&void 0!==arguments[2]?arguments[2]:{},i=kn(e,null!==(t=r.storage)&&void 0!==t?t:localStorage),o=i.get(),l=void 0!==o?o:n,s=null!=o&&"object"===typeof o&&!1===Array.isArray(o)?On(On({},n),o):l;s!==o&&i.update(s);var c=(0,m.useState)(s),a=c[0],u=c[1];(0,m.useEffect)((function(){a!==s&&u(s)}),[e]);var d=function(e){e instanceof Function?u((function(n){var t=e(n);return i.update(t),t})):(u(e),i.update(e))};return[a,d]}function kn(e,n){return{get:function(){var t=n.getItem(e);if(t&&"undefined"!==t)return JSON.parse(t)},update:function(t){n.setItem(e,JSON.stringify(t))},remove:function(){n.removeItem(e)}}}var Sn=["style"];function Pn(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Nn(e){for(var n=1;n1,animateOpacity:!0,children:[(0,pe.jsx)(h.xu,{paddingTop:2,children:(0,pe.jsx)(qn,{label:"Label Appearance Scale",value:2*n.labelScale,onChange:function(e){return t(bt(bt({},n),{},{labelScale:e/2}))}})}),(0,pe.jsxs)(h.xu,{paddingTop:2,children:[(0,pe.jsx)(qn,{label:"Label dynamicity",infoText:"By default, labels of nodes with more links will appear earlier than those with fewer. This slider changes the strength of this effect, put it at zero to disable it.",value:n.labelDynamicStrength,min:0,max:1,step:.05,onChange:function(e){return t((function(n){return bt(bt({},n),{},{labelDynamicStrength:e})}))}}),(0,pe.jsx)(Kn.U,{in:n.labelDynamicStrength>0,children:(0,pe.jsx)(qn,{label:"Dynamic zoom degree cap",infoText:"By default, labels of nodes with more links will appear earlier than those with fewer. This slider changes the strength of this effect, put it at zero to disable it.",value:n.labelDynamicDegree,min:1,max:15,step:1,onChange:function(e){return t((function(n){return bt(bt({},n),{},{labelDynamicDegree:e})}))}})})]})]}),(0,pe.jsx)(ut,{colorList:H,label:"Text",setVisuals:t,value:"labelTextColor",visValue:n.labelTextColor}),(0,pe.jsxs)(h.xu,{children:[(0,pe.jsx)(ut,{colorList:H,label:"Background",setVisuals:t,value:"labelBackgroundColor",visValue:n.labelBackgroundColor}),(0,pe.jsx)(Kn.U,{in:!!n.labelBackgroundColor,animateOpacity:!0,children:(0,pe.jsx)(h.xu,{paddingTop:2,children:(0,pe.jsx)(qn,{label:"Background opacity",value:n.labelBackgroundOpacity,onChange:function(e){console.log(n.labelBackgroundOpacity),t(bt(bt({},n),{},{labelBackgroundOpacity:e}))},min:0,max:1,step:.01})})})]}),(0,pe.jsx)(qn,{label:"Label font size",value:n.labelFontSize,min:5,max:20,step:.5,onChange:function(e){return t(bt(bt({},n),{},{labelFontSize:e}))}}),(0,pe.jsx)(qn,{label:"Max. label characters",value:n.labelLength,min:10,max:100,step:1,onChange:function(e){return t(bt(bt({},n),{},{labelLength:e}))}}),(0,pe.jsx)(qn,{label:"Max. label line length",value:n.labelWordWrap,min:10,max:100,step:1,onChange:function(e){return t(bt(bt({},n),{},{labelWordWrap:e}))}}),(0,pe.jsx)(qn,{label:"Space between label lines",value:n.labelLineSpace,min:.2,max:3,step:.1,onChange:function(e){return t(bt(bt({},n),{},{labelLineSpace:e}))}})]})};function mt(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function yt(e){for(var n=1;ng.labelLength?[].concat((0,i.Z)(z.slice(0,-1)),["".concat(z.slice(-1),"...")]):z,Z=[v,m].includes(c.id)?1+.3*f:1;E.forEach((function(e,n){a.fillText(e,c.x,c.y+Z*S*8+g.labelLineSpace*P*n)}))}}}function Tt(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Bt(e){for(var n=1;n2&&void 0!==arguments[2]?arguments[2]:2e3,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:200;if("color"!==e){var l=ze.current,s=Te.current,c=Be.current,a=null!==(t=De.current[n])&&void 0!==t?t:[],u=Object.fromEntries([n].concat((0,i.Z)(a.flatMap((function(e){return[e.source,e.target]})))).map((function(e){return[e,{}]})));if("zoom"===e)return s.nodeIds.length&&w({nodeIds:[]}),void setTimeout((function(){return l.zoomToFit(r,o,(function(e){return u[e.id]}))}),50);if(!s.nodeIds.length)return w({nodeIds:[n]}),void setTimeout((function(){l.centerAt(0,0,10),l.zoomToFit(1,o)}),50);if("add"!==c.localSame)return w({nodeIds:[n]}),void setTimeout((function(){l.centerAt(0,0,10),l.zoomToFit(1,o)}),50);if(!s.nodeIds.includes(n)||!s.nodeIds.some((function(e){return u[e]})))return w({nodeIds:[n]}),void setTimeout((function(){l.centerAt(0,0,10),l.zoomToFit(1,o)}),50);w((function(e){return Bt(Bt({},e),{},{nodeIds:[].concat((0,i.Z)(e.nodeIds),[n])})})),setTimeout((function(){l.centerAt(0,0,10),l.zoomToFit(1,o)}),50)}};(0,m.useEffect)((function(){Fe.current=new O.Z("ws://localhost:35903"),Fe.current.addEventListener("open",(function(){console.log("Connection with Emacs established")})),Fe.current.addEventListener("message",(function(e){var n=Be.current,t=JSON.parse(e.data);switch(t.type){case"graphdata":return function(e){var n,t,r,s=Ne.current;Le.current=null!==(n=e.tags)&&void 0!==n?n:[];var c=null!==(t=e.nodes)&&void 0!==t?t:[],a=null!==(r=e.links)&&void 0!==r?r:[],u=c.reduce((function(e,n){var t;return Bt(Bt({},e),{},(0,o.Z)({},n.file,[].concat((0,i.Z)(null!==(t=e[n.file])&&void 0!==t?t:[]),[n])))}),{}),d=Object.keys(u).flatMap((function(e){var n,t=null!==(n=u[e])&&void 0!==n?n:[],r=t.find((function(e){return 0===e.level})),i=t.filter((function(e){return 0!==e.level}));return r?i.map((function(e){var n=t.filter((function(n){var t;return!(n.level>=e.level||n.pos>=e.pos||null===(t=e.olp)||void 0===t||!t.includes(n.title))})).reduce((function(e,n){return n.level>e.level&&(e=n),e}),r);return{source:e.id,target:(null===n||void 0===n?void 0:n.id)||r.id,type:"heading"}})):[]})),h=Object.keys(u).flatMap((function(e){var n,t=null!==(n=u[e])&&void 0!==n?n:[],r=t.find((function(e){return 0===e.level})),i=t.filter((function(e){return 0!==e.level}));return r?i.map((function(e){return{source:e.id,target:r.id,type:"parent"}})):[]}));Ne.current=Object.fromEntries(c.map((function(e){return[e.id,e]})));var g=[].concat((0,i.Z)(a),(0,i.Z)(d),(0,i.Z)(h)),f=[],p=g.map((function(e){var n=e.source,t=e.target;return Ne.current[n]?Ne.current[t]?e:(f.push({id:t,tags:["bad"],properties:{FILELESS:"yes",bad:"yes"},file:"",title:t,level:0,pos:0,olp:null}),Bt(Bt({},e),{},{type:"bad"})):(f.push({id:n,tags:["bad"],properties:{FILELESS:"yes",bad:"yes"},file:"",title:n,level:0,pos:0,olp:null}),Bt(Bt({},e),{},{type:"bad"}))}));Ne.current=Bt(Bt({},Ne.current),Object.fromEntries(f.map((function(e){return[e.id,e]})))),De.current=p.reduce((function(e,n){var t,r,l;return Bt(Bt({},e),{},(l={},(0,o.Z)(l,n.source,[].concat((0,i.Z)(null!==(t=e[n.source])&&void 0!==t?t:[]),[n])),(0,o.Z)(l,n.target,[].concat((0,i.Z)(null!==(r=e[n.target])&&void 0!==r?r:[]),[n])),l))}),{});var x=[].concat((0,i.Z)(c),f);Ie.current=x.reduce((function(e,n){var t,r=null===(t=n.properties)||void 0===t?void 0:t.ROAM_REFS;if(null===r||void 0===r||!r.includes("cite"))return e;var i=r.replaceAll(/cite:(.*)/g,"$1");return i?Bt(Bt({},e),{},(0,o.Z)({},i,n)):e}),{});var j={nodes:x,links:p},b=Ze.current;if(0===b.nodes.length){var v=JSON.parse(JSON.stringify(j));return Ze.current=v,void U(v)}var m=[].concat((0,i.Z)(b.nodes.flatMap((function(e){var n,t=null!==(n=Ne.current[null===e||void 0===e?void 0:e.id])&&void 0!==n&&n;return t?[Bt(Bt({},e),t)]:[]}))),(0,i.Z)(Object.keys(Ne.current).filter((function(e){return!s[e]})).map((function(e){return Ne.current[e]})))),y=m.reduce((function(e,n,t){var r=null===n||void 0===n?void 0:n.id;return Bt(Bt({},e),{},(0,o.Z)({},r,t))}),{}),C=p.map((function(e){var n=_t(e),t=(0,l.Z)(n,2),r=t[0],i=t[1];return Bt(Bt({},e),{},{source:m[y[r]],target:m[y[i]]})}));U({nodes:m,links:C})}(t.data);case"variables":return console.log(t.data),void(Ee.current=t.data);case"theme":return Re(["custom",t.data]);case"command":switch(t.data.commandName){case"local":var r=Y.zoomSpeed,s=Y.zoomPadding;He("local",t.data.id,r,s),J(t.data.id);break;case"zoom":var c,a,u=(null===t||void 0===t||null===(c=t.data)||void 0===c?void 0:c.speed)||n.zoomSpeed,d=(null===t||void 0===t||null===(a=t.data)||void 0===a?void 0:a.padding)||n.zoomPadding;He("zoom",t.data.id,u,d),J(t.data.id);break;case"follow":He(n.follow,t.data.id,n.zoomSpeed,n.zoomPadding),J(t.data.id);break;default:return console.error("unknown message type",t.type)}}}))}),[]),(0,m.useEffect)((function(){var e=ze.current;!e||v.nodeIds.length>1||(v.nodeIds.length||!N.gravityOn?setTimeout((function(){e.zoomToFit(5,200)}),50):e.zoomToFit())}),[v.nodeIds]);var Ae=(0,j.iP)(),Me=(0,l.Z)(Ae,2),We=Me[0],Ve=Me[1],Xe=(0,m.useRef)(),_e=(0,m.useState)(null),Ue=_e[0],qe=_e[1],Ge=(0,m.useState)({left:0,top:0,right:void 0,bottom:void 0}),Je=Ge[0],Qe=Ge[1],Ke=(0,u.q)();(0,d.O)({ref:Xe,handler:function(){Ke.onClose()}});var Ye=function(e,n,t){Qe(t||{left:n.pageX,top:n.pageY,right:void 0,bottom:void 0}),qe(e),Ke.onOpen()},$e=function(e,n){"replace"!==n?v.nodeIds.includes(e.id)||w((function(n){return Bt(Bt({},n),{},{nodeIds:[].concat((0,i.Z)(n.nodeIds),[e.id])})})):w({nodeIds:[e.id]})},nn=(0,m.useState)({type:"Graph",title:"Graph",icon:(0,pe.jsx)(y.DvO,{})}),tn=(nn[0],nn[1],wn("mainWindowWidth",We)),rn=(0,l.Z)(tn,2),on=rn[0],ln=rn[1];return(0,pe.jsxs)(h.xu,{display:"flex",alignItems:"flex-start",flexDirection:"row",height:"100vh",overflow:"clip",children:[(0,pe.jsx)(zt,{physics:N,setPhysics:D,threeDim:t,setThreeDim:r,filter:z,setFilter:H,visuals:W,setVisuals:V,mouse:te,setMouse:re,behavior:Y,setBehavior:$,tagColors:a,setTagColors:x,local:le,setLocal:se,tags:Le.current}),(0,pe.jsx)(h.xu,{position:"absolute",children:_&&(0,pe.jsx)(Vt,{nodeById:Ne.current,linksByNodeId:De.current,webSocket:Fe.current,variables:Ee.current,physics:N,graphData:_,threeDim:t,emacsNodeId:G,filter:z,visuals:W,behavior:Y,mouse:te,scope:v,setScope:w,tagColors:a,setPreviewNode:he,sidebarHighlightedNode:ye,windowWidth:We,windowHeight:Ve,openContextMenu:Ye,contextMenu:Ke,handleLocal:$e,mainWindowWidth:on,setMainWindowWidth:ln,setContextMenuTarget:qe,graphRef:ze,local:le})}),(0,pe.jsx)(h.xu,{position:"relative",zIndex:4,width:"100%",children:(0,pe.jsx)(g.k,{className:"headerBar",h:10,flexDir:"column",children:(0,pe.jsx)(g.k,{alignItems:"center",h:10,justifyContent:"flex-end",children:(0,pe.jsxs)(g.k,{height:"100%",flexDirection:"row",children:[v.nodeIds.length>0&&(0,pe.jsx)(f.u,{label:"Return to main graph",children:(0,pe.jsx)(p.h,{m:1,icon:(0,pe.jsx)(y.DvO,{}),"aria-label":"Exit local mode",onClick:function(){return w((function(e){return Bt(Bt({},e),{},{nodeIds:[]})}))},variant:"subtle"})}),(0,pe.jsx)(f.u,{label:we?"Close sidebar":"Open sidebar",children:(0,pe.jsx)(p.h,{m:1,icon:(0,pe.jsx)(C.iBV,{}),"aria-label":"Close file-viewer",variant:"subtle",onClick:we?Pe:ke})})]})})})}),(0,pe.jsx)(h.xu,{position:"relative",zIndex:4,children:(0,pe.jsx)(Dn,{isOpen:we,onOpen:ke,onClose:Pe,previewNode:ve,setPreviewNode:he,canUndo:je,canRedo:be,previousPreviewNode:fe,nextPreviewNode:xe,resetPreviewNode:ge,setSidebarHighlightedNode:Ce,openContextMenu:Ye,scope:v,setScope:w,windowWidth:We,tagColors:a,setTagColors:x,filter:z,setFilter:H,nodeById:Ne.current,linksByNodeId:De.current,nodeByCite:Ie.current})}),Ke.isOpen&&(0,pe.jsx)("div",{ref:Xe,children:(0,pe.jsx)(Se,{scope:v,target:Ue,background:!1,coordinates:Je,handleLocal:$e,menuClose:Ke.onClose.bind(Ke),webSocket:Fe.current,setPreviewNode:he,setFilter:H,filter:z,setTagColors:x,tagColors:a})})]})}var Vt=function(e){var n=e.graphRef,t=e.physics,s=e.graphData,u=e.threeDim,d=e.linksByNodeId,g=e.filter,f=e.emacsNodeId,p=e.nodeById,j=e.visuals,v=e.behavior,y=e.mouse,C=e.scope,O=e.local,k=(e.setScope,e.webSocket),S=e.tagColors,P=e.setPreviewNode,N=e.sidebarHighlightedNode,D=e.windowWidth,I=e.windowHeight,L=(e.setContextMenuTarget,e.openContextMenu),E=e.contextMenu,Z=e.handleLocal,R=e.variables,T=R.dailyDir,B=(R.roamDir,(0,m.useState)(null)),F=B[0],A=B[1],M=(0,a.useTheme)(),W=(0,m.useContext)(en.N).emacsTheme,V=function(e,n,t){switch(e){case y.preview:P(n);break;case y.local:Z(n,v.localSame);break;case y.follow:$(n,k);break;case y.context:L(n,t)}},X=(0,m.useRef)(null);(0,m.useEffect)((function(){f&&A(p[f])}),[f]);var _=(0,m.useRef)({}),U=(0,m.useRef)({}),q=(0,m.useMemo)((function(){var e;U.current={};var n=null===s||void 0===s||null===(e=s.nodes)||void 0===e?void 0:e.filter((function(e){var n,t,r,i,l=e;return g.tagsBlacklist.length&&g.tagsBlacklist.some((function(e){var n;return(null===l||void 0===l||null===(n=l.tags)||void 0===n?void 0:n.indexOf(e))>-1}))||g.tagsWhitelist.length>0&&!g.tagsWhitelist.some((function(e){var n;return(null===l||void 0===l||null===(n=l.tags)||void 0===n?void 0:n.indexOf(e))>-1}))||g.filelessCites&&null!==l&&void 0!==l&&null!==(n=l.properties)&&void 0!==n&&n.FILELESS||null!==g&&void 0!==g&&g.bad&&null!==l&&void 0!==l&&null!==(t=l.properties)&&void 0!==t&&t.bad||g.dailies&&T&&null!==(r=l.file)&&void 0!==r&&r.includes(T)?(U.current=Bt(Bt({},U.current),{},(0,o.Z)({},l.id,l)),!1):!g.noter||null===(i=l.properties)||void 0===i||!i.NOTER_PAGE||(U.current=Bt(Bt({},U.current),{},(0,o.Z)({},l.id,l)),!1)})).filter((function(e){var n,t=(null!==(n=d[null===e||void 0===e?void 0:e.id])&&void 0!==n?n:[]).filter((function(e){return!U.current[e.source]&&!U.current[e.target]}));return!g.orphans||(g.parent?0!==t.length:0!==t.length&&t.some((function(e){return!["parent","heading"].includes(e.type)})))})),t=n.map((function(e){return e.id})),r=s.links.filter((function(e){var n=_t(e),r=(0,l.Z)(n,2),i=r[0],o=r[1];if(!t.includes(i)||!t.includes(o))return!1;var s=e;return g.parent?"heading"===g.parent?"parent"!==s.type:"heading"!==s.type:!["parent","heading"].includes(s.type)}));return _.current=r.reduce((function(e,n){var t,r,s,c=n,a=_t(c),u=(0,l.Z)(a,2),d=u[0],h=u[1];return Bt(Bt({},e),{},(s={},(0,o.Z)(s,d,[].concat((0,i.Z)(null!==(t=e[d])&&void 0!==t?t:[]),[c])),(0,o.Z)(s,h,[].concat((0,i.Z)(null!==(r=e[h])&&void 0!==r?r:[]),[c])),s))}),{}),{nodes:n,links:r}}),[g,s]),G=(0,m.useState)({nodes:[],links:[]}),J=G[0],Q=G[1];(0,m.useEffect)((function(){if(C.nodeIds.length){var e=C.nodeIds.length>1?J.nodes:[],n=e.map((function(e){return e.id})),t=function(e,n){var t=[e[0]],r=[],i=[e[0]];return Array.from({length:n},(function(){t.forEach((function(e){var n;(null!==(n=_.current[e])&&void 0!==n?n:[]).forEach((function(e){var n=_t(e),t=(0,l.Z)(n,2),o=t[0],s=t[1];i.includes(o)?i.includes(s)||r.push(s):r.push(o)}))})),t=r,r.forEach((function(e){return e&&i.push(e)})),r=[]})),i}(C.nodeIds,O.neighbors),r=q.nodes.filter((function(r){var i;return e.length?!n.includes(r.id)&&(null!==(i=_.current[r.id])&&void 0!==i?i:[]).some((function(e){var n=_t(e),t=(0,l.Z)(n,2),r=t[0],i=t[1];return C.nodeIds.includes(r)||C.nodeIds.includes(i)})):t.includes(r.id)})).map((function(e){return Bt(Bt({},e),{},{x:0,y:0,vy:0,vx:0})})),o=[].concat((0,i.Z)(e),(0,i.Z)(r)),s=o.map((function(e){return e.id})),c=C.nodeIds.length>1?J.links:[],a=q.links.filter((function(e){var t=_t(e),r=(0,l.Z)(t,2),i=r[0],o=r[1];return!(c.length&&n.includes(o)&&n.includes(i))&&(s.includes(i)&&s.includes(o))})).map((function(e){var n=_t(e),t=(0,l.Z)(n,2);return{source:t[0],target:t[1]}})),u=[].concat((0,i.Z)(c),(0,i.Z)(a));Q({nodes:o,links:u})}}),[O.neighbors,g,C,JSON.stringify(s),q.links,q.nodes]),(0,m.useEffect)((function(){(0,r.Z)(c().mark((function e(){var r,i;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.current,e.next=3,Ft;case 3:i=e.sent,!t.gravityOn||C.nodeIds.length&&!t.gravityLocal?(r.d3Force("x",null),r.d3Force("y",null),u&&r.d3Force("z",null)):(r.d3Force("x",i.forceX().strength(t.gravity)),r.d3Force("y",i.forceY().strength(t.gravity)),u&&r.d3Force("z",i.forceZ().strength(t.gravity))),t.centering?r.d3Force("center",i.forceCenter().strength(t.centeringStrength)):r.d3Force("center",null),t.linkStrength&&r.d3Force("link").strength(t.linkStrength),t.linkIts&&r.d3Force("link").iterations(t.linkIts),t.charge&&r.d3Force("charge").strength(t.charge),r.d3Force("collide",t.collision?i.forceCollide().radius(t.collisionStrength):null);case 10:case"end":return e.stop()}}),e)})))()}),[t,u,C]),(0,m.useEffect)((function(){var e;null===(e=n.current)||void 0===e||e.d3ReheatSimulation()}),[t,C.nodeIds.length]);var K=(0,m.useRef)(0),Y=(0,m.useState)(1),ee=Y[0],ne=Y[1],te=(0,x._7)((function(e){return ne(e)}),{duration:j.animationSpeed,algorithm:z[j.algorithmName]}),re=(0,l.Z)(te,2),ie=re[0],oe=re[1],le=(0,x._7)((function(e){return ne(Math.min(ee,-1*(e-1)))}),{duration:j.animationSpeed,algorithm:z[j.algorithmName]}),se=(0,l.Z)(le,2),ce=se[0],ae=se[1],ue=(0,m.useMemo)((function(){var e;if(!X.current)return{};var n=_.current[X.current.id];return n?Object.fromEntries([null===(e=X.current)||void 0===e?void 0:e.id].concat((0,i.Z)(n.flatMap((function(e){return[e.source,e.target]})))).map((function(e){return[e,{}]}))):{}}),[JSON.stringify(X.current),JSON.stringify(_.current)]);(0,m.useEffect)((function(){null!==N&&void 0!==N&&N.id?A(N):A(null)}),[N]);var de=(0,m.useRef)(null);(0,m.useEffect)((function(){if(X.current=F,F&&(de.current=F),!j.highlightAnim)return ne(F?1:0);F?ie():(oe(),ee>.5?ce():ne(0))}),[F]);var he=(0,m.useMemo)((function(){return Object.fromEntries(H.map((function(e){var n=Ut(e,M),t=H.map((function(e){return[e,b.Z(n,Ut(e,M))]}));return[e,Object.fromEntries(t)]})))}),[W]),ge=(0,m.useMemo)((function(){var e,n,t,r=null!==(e=_.current[null===(n=de.current)||void 0===n?void 0:n.id])&&void 0!==e?e:[];return Object.fromEntries([null===(t=de.current)||void 0===t?void 0:t.id].concat((0,i.Z)(r.flatMap((function(e){return _t(e)})))).map((function(e){return[e,{}]})))}),[JSON.stringify(F),de.current,_.current]),fe=function(e){var n,t,r,i,o,l=null!==(n=null===(t=_.current[e])||void 0===t?void 0:t.length)&&void 0!==n?n:0;return j.nodeColorScheme[(r=l,i=0,o=j.nodeColorScheme.length-1,Math.min(Math.max(r,i),o))]},xe=function(e,n){return _.current[e].length>_.current[n].length?fe(e):fe(n)},je=(0,m.useMemo)((function(){return Ut(j.labelTextColor,M)}),[j.labelTextColor,W]),be=(0,m.useMemo)((function(){return Ut(j.labelBackgroundColor,M)}),[j.labelBackgroundColor,W]),ve=function(e){var n,t=null!==(n=_.current[e.id])&&void 0!==n?n:[],r=t.length?t.filter((function(e){return"parent"===e.type})).length:0,i=3+t.length*j.nodeSizeLinks-(g.parent?0:r);return 1===j.highlightNodeSize?i:i*(ue[e.id]||ge[e.id]?1+ee*(j.highlightNodeSize-1):1)},me=(0,m.useState)(!1),ye=me[0],Ce=me[1],Oe=(0,m.useRef)(1),we={graphData:C.nodeIds.length?J:q,width:D,height:I,backgroundColor:Ut(j.backgroundColor,M),warmupTicks:1===C.nodeIds.length?100:C.nodeIds.length>1?20:0,onZoom:function(e){var n=e.k;e.x,e.y;return Oe.current=n},nodeColor:function(e){return function(e,n){var t,r,i=ue[e.id]||ge[e.id];if(j.emacsNodeColor&&e.id===f)return Ut(j.emacsNodeColor,n);if(S&&null!==e&&void 0!==e&&e.tags.some((function(e){return S[e]}))){var o=S[null===e||void 0===e?void 0:e.tags.filter((function(e){return S[e]}))[0]];return i?he[o][o](j.highlightFade*ee):he[o][j.backgroundColor](j.highlightFade*ee)}return j.citeNodeColor&&null!==e&&void 0!==e&&null!==(t=e.properties)&&void 0!==t&&t.ROAM_REFS&&null!==e&&void 0!==e&&null!==(r=e.properties)&&void 0!==r&&r.FILELESS?i?Ut(j.citeNodeColor,n):he[j.citeNodeColor][j.backgroundColor](j.highlightFade*ee):j.refNodeColor&&e.properties.ROAM_REFS?i?Ut(j.refNodeColor,n):he[j.refNodeColor][j.backgroundColor](j.highlightFade*ee):i?j.nodeHighlight?he[fe(e.id)][j.nodeHighlight](ee):Ut(fe(e.id),n):he[fe(e.id)][j.backgroundColor](j.highlightFade*ee)}(e,M)},nodeRelSize:j.nodeRel,nodeVal:function(e){return ve(e)/Math.pow(Oe.current,j.nodeZoomSize)},nodeCanvasObject:function(e,n,t){Rt(Bt({nodeRel:j.nodeRel,filteredLinksByNodeId:_.current,lastHoverNode:de.current},{node:e,ctx:n,globalScale:t,highlightedNodes:ue,previouslyHighlightedNodes:ge,visuals:j,opacity:ee,nodeSize:ve,labelTextColor:je,labelBackgroundColor:be,hoverNode:F}))},nodeCanvasObjectMode:function(){return"after"},linkDirectionalParticles:j.particles?j.particlesNumber:void 0,linkDirectionalArrowLength:j.arrows?j.arrowsLength:void 0,linkDirectionalArrowRelPos:j.arrowsPos,linkDirectionalArrowColor:j.arrowsColor?function(){return Ut(j.arrowsColor,M)}:void 0,linkColor:function(e){var n,t="object"===typeof e.source?e.source.id:e.source,r="object"===typeof e.target?e.target.id:e.target,i=Xt(e,X.current),o=Xt(e,de.current),l=i||o,s=e;return j.refLinkColor&&"ref"===s.type?l&&(j.refLinkHighlightColor||j.linkHighlight)?he[j.refLinkColor][j.refLinkHighlightColor||j.linkHighlight](ee):he[j.refLinkColor][j.backgroundColor](j.highlightFade*ee):j.citeLinkColor&&null!==(n=s.type)&&void 0!==n&&n.includes("cite")?l&&(j.citeLinkHighlightColor||j.linkHighlight)?he[j.citeLinkColor][j.citeLinkHighlightColor||j.linkHighlight](ee):he[j.citeLinkColor][j.backgroundColor](j.highlightFade*ee):function(e,n,t,r){if(!j.linkHighlight&&!j.linkColorScheme&&!t)return Ut(xe(e,n),r);if(!t&&!j.linkColorScheme){var i=xe(e,n);return he[i][j.backgroundColor](j.highlightFade*ee)}return t?j.linkHighlight||j.linkColorScheme?j.linkHighlight?j.linkColorScheme?he[j.linkColorScheme][j.linkHighlight](ee):he[xe(e,n)][j.linkHighlight](ee):Ut(j.linkColorScheme,r):Ut(xe(e,n),r):he[j.linkColorScheme][j.backgroundColor](j.highlightFade*ee)}(t,r,l,M)},linkWidth:function(e){if(1===j.highlightLinkSize)return j.linkWidth;var n=Xt(e,X.current),t=Xt(e,de.current);return n||t?j.linkWidth*(1+ee*(j.highlightLinkSize-1)):j.linkWidth},linkDirectionalParticleWidth:j.particlesWidth,d3AlphaDecay:t.alphaDecay,d3AlphaMin:t.alphaMin,d3VelocityDecay:t.velocityDecay,onNodeClick:function(e,n){var t=e,r=n.timeStamp-K.current<200;if(K.current=n.timeStamp,r)return V("double",t,n);var i=K.current;return setTimeout((function(){if(K.current===i)return V("click",t,n)}),200)},onNodeHover:function(e){j.highlight&&(ye||(F||(ae(),ne(0)),A(e)))},onNodeRightClick:function(e,n){V("right",e,n)},onNodeDrag:function(e){A(e),Ce(!0)},onNodeDragEnd:function(){A(null),Ce(!1)}};return(0,pe.jsx)(h.xu,{overflow:"hidden",onClick:E.onClose,children:u?(0,pe.jsx)(At,Bt(Bt({ref:n},we),{},{nodeThreeObjectExtend:!0,nodeOpacity:j.nodeOpacity,nodeResolution:j.nodeResolution,linkOpacity:j.linkOpacity,nodeThreeObject:function(e){if(j.labels&&(!(j.labels<3)||ue[e.id])){var n=new w.Z(e.title.substring(0,40));return n.color=Ut(j.labelTextColor,M),n.backgroundColor=Ut(j.labelBackgroundColor,M),n.padding=2,n.textHeight=8,n}}})):(0,pe.jsx)(Ht,Bt(Bt({ref:n},we),{},{linkLineDash:function(e){var n,t=e;return j.citeDashes&&null!==(n=t.type)&&void 0!==n&&n.includes("cite")?[j.citeDashLength,j.citeGapLength]:j.refDashes&&"ref"==t.type?[j.refDashLength,j.refGapLength]:null}}))})};function Xt(e,n){var t,r;return(null===(t=e.source)||void 0===t?void 0:t.id)===(null===n||void 0===n?void 0:n.id)||(null===(r=e.target)||void 0===r?void 0:r.id)===(null===n||void 0===n?void 0:n.id)}function _t(e){return["object"===typeof e.source?e.source.id:e.source,"object"===typeof e.target?e.target.id:e.target]}function Ut(e,n){return e.split(".").reduce((function(e,n){return e[n]}),n.colors)}function qt(e,n){return"rgba("+(e=e.replace("#","")).match(new RegExp("(.{"+e.length/3+"})","g")).map((function(n){return parseInt(e.length%2?n+n:n,16)})).concat(isFinite(n)?n:1).join(",")+")"}},45301:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return t(54530)}])}},function(e){e.O(0,[774,737,13,874,573,446,816,888,179],(function(){return n=45301,e(e.s=n);var n}));var n=e.O();_N_E=n}]); \ No newline at end of file -- cgit v1.2.3