summaryrefslogtreecommitdiff
path: root/out
diff options
context:
space:
mode:
Diffstat (limited to 'out')
-rw-r--r--out/404.html2
-rw-r--r--out/_next/static/6Q3_SCUKl8zGqWimdcq8f/_buildManifest.js (renamed from out/_next/static/OY7xgp5amTQ-MjS0RPi98/_buildManifest.js)2
-rw-r--r--out/_next/static/6Q3_SCUKl8zGqWimdcq8f/_ssgManifest.js (renamed from out/_next/static/OY7xgp5amTQ-MjS0RPi98/_ssgManifest.js)0
-rw-r--r--out/_next/static/chunks/pages/index-f97770bc257e872f8c86.js (renamed from out/_next/static/chunks/pages/index-f954a7866bfdd966749e.js)2
-rw-r--r--out/index.html2
5 files changed, 4 insertions, 4 deletions
diff --git a/out/404.html b/out/404.html
index 7b1f0b0..abda441 100644
--- a/out/404.html
+++ b/out/404.html
@@ -1 +1 @@
-<!DOCTYPE html><html><head><meta name="viewport" content="width=device-width"/><meta charSet="utf-8"/><title>404: This page could not be found</title><meta name="next-head-count" content="3"/><link rel="preload" href="/_next/static/css/a37ded5ec4cf14937ec5.css" as="style"/><link rel="stylesheet" href="/_next/static/css/a37ded5ec4cf14937ec5.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-a40ef1678bae11e696dba45124eadd70.js"></script><script src="/_next/static/chunks/webpack-97b7769aa68ab46953a1.js" defer=""></script><script src="/_next/static/chunks/framework-a62d654bd9699da79f2a.js" defer=""></script><script src="/_next/static/chunks/main-80dde85f3cea1551bba1.js" defer=""></script><script src="/_next/static/chunks/pages/_app-5686c15726fcbac980ca.js" defer=""></script><script src="/_next/static/chunks/pages/_error-ea939aab753d9e9db3bd.js" defer=""></script><script src="/_next/static/OY7xgp5amTQ-MjS0RPi98/_buildManifest.js" defer=""></script><script src="/_next/static/OY7xgp5amTQ-MjS0RPi98/_ssgManifest.js" defer=""></script></head><body><div id="__next"><style data-emotion="css-global 8u9pn4">:host,:root{--chakra-ring-inset:var(--chakra-empty,/*!*/ /*!*/);--chakra-ring-offset-width:0px;--chakra-ring-offset-color:#fff;--chakra-ring-color:rgba(66, 153, 225, 0.6);--chakra-ring-offset-shadow:0 0 #0000;--chakra-ring-shadow:0 0 #0000;--chakra-space-x-reverse:0;--chakra-space-y-reverse:0;--chakra-colors-transparent:transparent;--chakra-colors-current:currentColor;--chakra-colors-black:#bbc2cf;--chakra-colors-white:#242730;--chakra-colors-whiteAlpha-50:rgba(255, 255, 255, 0.04);--chakra-colors-whiteAlpha-100:rgba(255, 255, 255, 0.06);--chakra-colors-whiteAlpha-200:rgba(255, 255, 255, 0.08);--chakra-colors-whiteAlpha-300:rgba(255, 255, 255, 0.16);--chakra-colors-whiteAlpha-400:rgba(255, 255, 255, 0.24);--chakra-colors-whiteAlpha-500:rgba(255, 255, 255, 0.36);--chakra-colors-whiteAlpha-600:rgba(255, 255, 255, 0.48);--chakra-colors-whiteAlpha-700:rgba(255, 255, 255, 0.64);--chakra-colors-whiteAlpha-800:rgba(255, 255, 255, 0.80);--chakra-colors-whiteAlpha-900:rgba(255, 255, 255, 0.92);--chakra-colors-blackAlpha-50:rgba(0, 0, 0, 0.04);--chakra-colors-blackAlpha-100:rgba(0, 0, 0, 0.06);--chakra-colors-blackAlpha-200:rgba(0, 0, 0, 0.08);--chakra-colors-blackAlpha-300:rgba(0, 0, 0, 0.16);--chakra-colors-blackAlpha-400:rgba(0, 0, 0, 0.24);--chakra-colors-blackAlpha-500:rgba(0, 0, 0, 0.36);--chakra-colors-blackAlpha-600:rgba(0, 0, 0, 0.48);--chakra-colors-blackAlpha-700:rgba(0, 0, 0, 0.64);--chakra-colors-blackAlpha-800:rgba(0, 0, 0, 0.80);--chakra-colors-blackAlpha-900:rgba(0, 0, 0, 0.92);--chakra-colors-gray-50:#F7FAFC;--chakra-colors-gray-100:#1c1f24;--chakra-colors-gray-200:rgb(29, 33, 38);--chakra-colors-gray-300:#21272d;--chakra-colors-gray-400:#23272e;--chakra-colors-gray-500:#484854;--chakra-colors-gray-600:#62686E;--chakra-colors-gray-700:#757B80;--chakra-colors-gray-800:#9ca0a4;--chakra-colors-gray-900:#DFDFDF;--chakra-colors-red-50:#FFF5F5;--chakra-colors-red-100:#FED7D7;--chakra-colors-red-200:#FEB2B2;--chakra-colors-red-300:#FC8181;--chakra-colors-red-400:#F56565;--chakra-colors-red-500:#ff665c;--chakra-colors-red-600:#C53030;--chakra-colors-red-700:#9B2C2C;--chakra-colors-red-800:#822727;--chakra-colors-red-900:#63171B;--chakra-colors-orange-50:#FFFAF0;--chakra-colors-orange-100:#FEEBC8;--chakra-colors-orange-200:#FBD38D;--chakra-colors-orange-300:#F6AD55;--chakra-colors-orange-400:#ED8936;--chakra-colors-orange-500:#e69055;--chakra-colors-orange-600:#C05621;--chakra-colors-orange-700:#9C4221;--chakra-colors-orange-800:#7B341E;--chakra-colors-orange-900:#652B19;--chakra-colors-yellow-50:#FFFFF0;--chakra-colors-yellow-100:#FEFCBF;--chakra-colors-yellow-200:#FAF089;--chakra-colors-yellow-300:#F6E05E;--chakra-colors-yellow-400:#ECC94B;--chakra-colors-yellow-500:#FCCE7B;--chakra-colors-yellow-600:#B7791F;--chakra-colors-yellow-700:#975A16;--chakra-colors-yellow-800:#744210;--chakra-colors-yellow-900:#5F370E;--chakra-colors-green-50:#F0FFF4;--chakra-colors-green-100:#C6F6D5;--chakra-colors-green-200:#9AE6B4;--chakra-colors-green-300:#68D391;--chakra-colors-green-400:#48BB78;--chakra-colors-green-500:#7bc275;--chakra-colors-green-600:#2F855A;--chakra-colors-green-700:#276749;--chakra-colors-green-800:#22543D;--chakra-colors-green-900:#1C4532;--chakra-colors-teal-50:#E6FFFA;--chakra-colors-teal-100:#B2F5EA;--chakra-colors-teal-200:#81E6D9;--chakra-colors-teal-300:#4FD1C5;--chakra-colors-teal-400:#38B2AC;--chakra-colors-teal-500:#51afef;--chakra-colors-teal-600:#2C7A7B;--chakra-colors-teal-700:#285E61;--chakra-colors-teal-800:#234E52;--chakra-colors-teal-900:#1D4044;--chakra-colors-blue-50:#ebf8ff;--chakra-colors-blue-100:#bee3f8;--chakra-colors-blue-200:#90cdf4;--chakra-colors-blue-300:#63b3ed;--chakra-colors-blue-400:#4299e1;--chakra-colors-blue-500:#51afef;--chakra-colors-blue-600:#2b6cb0;--chakra-colors-blue-700:#2c5282;--chakra-colors-blue-800:#2a4365;--chakra-colors-blue-900:#1A365D;--chakra-colors-cyan-50:#EDFDFD;--chakra-colors-cyan-100:#C4F1F9;--chakra-colors-cyan-200:#9DECF9;--chakra-colors-cyan-300:#76E4F7;--chakra-colors-cyan-400:#0BC5EA;--chakra-colors-cyan-500:#5cEfFF;--chakra-colors-cyan-600:#00A3C4;--chakra-colors-cyan-700:#0987A0;--chakra-colors-cyan-800:#086F83;--chakra-colors-cyan-900:#065666;--chakra-colors-purple-50:#FAF5FF;--chakra-colors-purple-100:#E9D8FD;--chakra-colors-purple-200:#D6BCFA;--chakra-colors-purple-300:#B794F4;--chakra-colors-purple-400:#9F7AEA;--chakra-colors-purple-500:#a991f1;--chakra-colors-purple-600:#6B46C1;--chakra-colors-purple-700:#553C9A;--chakra-colors-purple-800:#44337A;--chakra-colors-purple-900:#322659;--chakra-colors-pink-50:#FFF5F7;--chakra-colors-pink-100:#FED7E2;--chakra-colors-pink-200:#FBB6CE;--chakra-colors-pink-300:#F687B3;--chakra-colors-pink-400:#ED64A6;--chakra-colors-pink-500:#C57BDB;--chakra-colors-pink-600:#B83280;--chakra-colors-pink-700:#97266D;--chakra-colors-pink-800:#702459;--chakra-colors-pink-900:#521B41;--chakra-colors-linkedin-50:#E8F4F9;--chakra-colors-linkedin-100:#CFEDFB;--chakra-colors-linkedin-200:#9BDAF3;--chakra-colors-linkedin-300:#68C7EC;--chakra-colors-linkedin-400:#34B3E4;--chakra-colors-linkedin-500:#00A0DC;--chakra-colors-linkedin-600:#008CC9;--chakra-colors-linkedin-700:#0077B5;--chakra-colors-linkedin-800:#005E93;--chakra-colors-linkedin-900:#004471;--chakra-colors-facebook-50:#E8F4F9;--chakra-colors-facebook-100:#D9DEE9;--chakra-colors-facebook-200:#B7C2DA;--chakra-colors-facebook-300:#6482C0;--chakra-colors-facebook-400:#4267B2;--chakra-colors-facebook-500:#385898;--chakra-colors-facebook-600:#314E89;--chakra-colors-facebook-700:#29487D;--chakra-colors-facebook-800:#223B67;--chakra-colors-facebook-900:#1E355B;--chakra-colors-messenger-50:#D0E6FF;--chakra-colors-messenger-100:#B9DAFF;--chakra-colors-messenger-200:#A2CDFF;--chakra-colors-messenger-300:#7AB8FF;--chakra-colors-messenger-400:#2E90FF;--chakra-colors-messenger-500:#0078FF;--chakra-colors-messenger-600:#0063D1;--chakra-colors-messenger-700:#0052AC;--chakra-colors-messenger-800:#003C7E;--chakra-colors-messenger-900:#002C5C;--chakra-colors-whatsapp-50:#dffeec;--chakra-colors-whatsapp-100:#b9f5d0;--chakra-colors-whatsapp-200:#90edb3;--chakra-colors-whatsapp-300:#65e495;--chakra-colors-whatsapp-400:#3cdd78;--chakra-colors-whatsapp-500:#22c35e;--chakra-colors-whatsapp-600:#179848;--chakra-colors-whatsapp-700:#0c6c33;--chakra-colors-whatsapp-800:#01421c;--chakra-colors-whatsapp-900:#001803;--chakra-colors-twitter-50:#E5F4FD;--chakra-colors-twitter-100:#C8E9FB;--chakra-colors-twitter-200:#A8DCFA;--chakra-colors-twitter-300:#83CDF7;--chakra-colors-twitter-400:#57BBF5;--chakra-colors-twitter-500:#1DA1F2;--chakra-colors-twitter-600:#1A94DA;--chakra-colors-twitter-700:#1681BF;--chakra-colors-twitter-800:#136B9E;--chakra-colors-twitter-900:#0D4D71;--chakra-colors-telegram-50:#E3F2F9;--chakra-colors-telegram-100:#C5E4F3;--chakra-colors-telegram-200:#A2D4EC;--chakra-colors-telegram-300:#7AC1E4;--chakra-colors-telegram-400:#47A9DA;--chakra-colors-telegram-500:#0088CC;--chakra-colors-telegram-600:#007AB8;--chakra-colors-telegram-700:#006BA1;--chakra-colors-telegram-800:#005885;--chakra-colors-telegram-900:#003F5E;--chakra-colors-alt-100:#2a2e38;--chakra-colors-alt-900:#5D656B;--chakra-borders-none:0;--chakra-borders-1px:1px solid;--chakra-borders-2px:2px solid;--chakra-borders-4px:4px solid;--chakra-borders-8px:8px solid;--chakra-fonts-heading:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";--chakra-fonts-body:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";--chakra-fonts-mono:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--chakra-fontSizes-xs:0.75rem;--chakra-fontSizes-sm:0.875rem;--chakra-fontSizes-md:1rem;--chakra-fontSizes-lg:1.125rem;--chakra-fontSizes-xl:1.25rem;--chakra-fontSizes-2xl:1.5rem;--chakra-fontSizes-3xl:1.875rem;--chakra-fontSizes-4xl:2.25rem;--chakra-fontSizes-5xl:3rem;--chakra-fontSizes-6xl:3.75rem;--chakra-fontSizes-7xl:4.5rem;--chakra-fontSizes-8xl:6rem;--chakra-fontSizes-9xl:8rem;--chakra-fontWeights-hairline:100;--chakra-fontWeights-thin:200;--chakra-fontWeights-light:300;--chakra-fontWeights-normal:400;--chakra-fontWeights-medium:500;--chakra-fontWeights-semibold:600;--chakra-fontWeights-bold:700;--chakra-fontWeights-extrabold:800;--chakra-fontWeights-black:900;--chakra-letterSpacings-tighter:-0.05em;--chakra-letterSpacings-tight:-0.025em;--chakra-letterSpacings-normal:0;--chakra-letterSpacings-wide:0.025em;--chakra-letterSpacings-wider:0.05em;--chakra-letterSpacings-widest:0.1em;--chakra-lineHeights-3:.75rem;--chakra-lineHeights-4:1rem;--chakra-lineHeights-5:1.25rem;--chakra-lineHeights-6:1.5rem;--chakra-lineHeights-7:1.75rem;--chakra-lineHeights-8:2rem;--chakra-lineHeights-9:2.25rem;--chakra-lineHeights-10:2.5rem;--chakra-lineHeights-normal:normal;--chakra-lineHeights-none:1;--chakra-lineHeights-shorter:1.25;--chakra-lineHeights-short:1.375;--chakra-lineHeights-base:1.5;--chakra-lineHeights-tall:1.625;--chakra-lineHeights-taller:2;--chakra-radii-none:0;--chakra-radii-sm:0.125rem;--chakra-radii-base:0.25rem;--chakra-radii-md:0.375rem;--chakra-radii-lg:0.5rem;--chakra-radii-xl:0.75rem;--chakra-radii-2xl:1rem;--chakra-radii-3xl:1.5rem;--chakra-radii-full:9999px;--chakra-space-1:0.25rem;--chakra-space-2:0.5rem;--chakra-space-3:0.75rem;--chakra-space-4:1rem;--chakra-space-5:1.25rem;--chakra-space-6:1.5rem;--chakra-space-7:1.75rem;--chakra-space-8:2rem;--chakra-space-9:2.25rem;--chakra-space-10:2.5rem;--chakra-space-12:3rem;--chakra-space-14:3.5rem;--chakra-space-16:4rem;--chakra-space-20:5rem;--chakra-space-24:6rem;--chakra-space-28:7rem;--chakra-space-32:8rem;--chakra-space-36:9rem;--chakra-space-40:10rem;--chakra-space-44:11rem;--chakra-space-48:12rem;--chakra-space-52:13rem;--chakra-space-56:14rem;--chakra-space-60:15rem;--chakra-space-64:16rem;--chakra-space-72:18rem;--chakra-space-80:20rem;--chakra-space-96:24rem;--chakra-space-px:1px;--chakra-space-0-5:0.125rem;--chakra-space-1-5:0.375rem;--chakra-space-2-5:0.625rem;--chakra-space-3-5:0.875rem;--chakra-shadows-xs:0 0 0 1px rgba(0, 0, 0, 0.05);--chakra-shadows-sm:0 1px 2px 0 rgba(0, 0, 0, 0.05);--chakra-shadows-base:0 1px 3px 0 rgba(0, 0, 0, 0.1),0 1px 2px 0 rgba(0, 0, 0, 0.06);--chakra-shadows-md:0 4px 6px -1px rgba(0, 0, 0, 0.1),0 2px 4px -1px rgba(0, 0, 0, 0.06);--chakra-shadows-lg:0 10px 15px -3px rgba(0, 0, 0, 0.1),0 4px 6px -2px rgba(0, 0, 0, 0.05);--chakra-shadows-xl:0 20px 25px -5px rgba(0, 0, 0, 0.1),0 10px 10px -5px rgba(0, 0, 0, 0.04);--chakra-shadows-2xl:0 25px 50px -12px rgba(0, 0, 0, 0.25);--chakra-shadows-outline:0 0 0 3px #a991f1aa;--chakra-shadows-inner:inset 0 2px 4px 0 rgba(0,0,0,0.06);--chakra-shadows-none:none;--chakra-shadows-dark-lg:rgba(0, 0, 0, 0.1) 0px 0px 0px 1px,rgba(0, 0, 0, 0.2) 0px 5px 10px,rgba(0, 0, 0, 0.4) 0px 15px 40px;--chakra-sizes-1:0.25rem;--chakra-sizes-2:0.5rem;--chakra-sizes-3:0.75rem;--chakra-sizes-4:1rem;--chakra-sizes-5:1.25rem;--chakra-sizes-6:1.5rem;--chakra-sizes-7:1.75rem;--chakra-sizes-8:2rem;--chakra-sizes-9:2.25rem;--chakra-sizes-10:2.5rem;--chakra-sizes-12:3rem;--chakra-sizes-14:3.5rem;--chakra-sizes-16:4rem;--chakra-sizes-20:5rem;--chakra-sizes-24:6rem;--chakra-sizes-28:7rem;--chakra-sizes-32:8rem;--chakra-sizes-36:9rem;--chakra-sizes-40:10rem;--chakra-sizes-44:11rem;--chakra-sizes-48:12rem;--chakra-sizes-52:13rem;--chakra-sizes-56:14rem;--chakra-sizes-60:15rem;--chakra-sizes-64:16rem;--chakra-sizes-72:18rem;--chakra-sizes-80:20rem;--chakra-sizes-96:24rem;--chakra-sizes-px:1px;--chakra-sizes-0-5:0.125rem;--chakra-sizes-1-5:0.375rem;--chakra-sizes-2-5:0.625rem;--chakra-sizes-3-5:0.875rem;--chakra-sizes-max:max-content;--chakra-sizes-min:min-content;--chakra-sizes-full:100%;--chakra-sizes-3xs:14rem;--chakra-sizes-2xs:16rem;--chakra-sizes-xs:20rem;--chakra-sizes-sm:24rem;--chakra-sizes-md:28rem;--chakra-sizes-lg:32rem;--chakra-sizes-xl:36rem;--chakra-sizes-2xl:42rem;--chakra-sizes-3xl:48rem;--chakra-sizes-4xl:56rem;--chakra-sizes-5xl:64rem;--chakra-sizes-6xl:72rem;--chakra-sizes-7xl:80rem;--chakra-sizes-8xl:90rem;--chakra-sizes-container-sm:640px;--chakra-sizes-container-md:768px;--chakra-sizes-container-lg:1024px;--chakra-sizes-container-xl:1280px;--chakra-zIndices-hide:-1;--chakra-zIndices-auto:auto;--chakra-zIndices-base:0;--chakra-zIndices-docked:10;--chakra-zIndices-dropdown:1000;--chakra-zIndices-sticky:1100;--chakra-zIndices-banner:1200;--chakra-zIndices-overlay:1300;--chakra-zIndices-modal:1400;--chakra-zIndices-popover:1500;--chakra-zIndices-skipLink:1600;--chakra-zIndices-toast:1700;--chakra-zIndices-tooltip:1800;--chakra-transition-property-common:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform;--chakra-transition-property-colors:background-color,border-color,color,fill,stroke;--chakra-transition-property-dimensions:width,height;--chakra-transition-property-position:left,right,top,bottom;--chakra-transition-property-background:background-color,background-image,background-position;--chakra-transition-easing-ease-in:cubic-bezier(0.4, 0, 1, 1);--chakra-transition-easing-ease-out:cubic-bezier(0, 0, 0.2, 1);--chakra-transition-easing-ease-in-out:cubic-bezier(0.4, 0, 0.2, 1);--chakra-transition-duration-ultra-fast:50ms;--chakra-transition-duration-faster:100ms;--chakra-transition-duration-fast:150ms;--chakra-transition-duration-normal:200ms;--chakra-transition-duration-slow:300ms;--chakra-transition-duration-slower:400ms;--chakra-transition-duration-ultra-slow:500ms;--chakra-blur-none:0;--chakra-blur-sm:4px;--chakra-blur-base:8px;--chakra-blur-md:12px;--chakra-blur-lg:16px;--chakra-blur-xl:24px;--chakra-blur-2xl:40px;--chakra-blur-3xl:64px;}</style><style data-emotion="css-global 1jqlf9g">html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:system-ui,sans-serif;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;touch-action:manipulation;}body{position:relative;min-height:100%;font-feature-settings:'kern';}*,*::before,*::after{border-width:0;border-style:solid;box-sizing:border-box;}main{display:block;}hr{border-top-width:1px;box-sizing:content-box;height:0;overflow:visible;}pre,code,kbd,samp{font-family:SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:1em;}a{background-color:transparent;color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit;}abbr[title]{border-bottom:none;-webkit-text-decoration:underline;text-decoration:underline;-webkit-text-decoration:underline dotted;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bold;}small{font-size:80%;}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline;}sub{bottom:-0.25em;}sup{top:-0.5em;}img{border-style:none;}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible;}button,select{text-transform:none;}button::-moz-focus-inner,[type="button"]::-moz-focus-inner,[type="reset"]::-moz-focus-inner,[type="submit"]::-moz-focus-inner{border-style:none;padding:0;}fieldset{padding:0.35em 0.75em 0.625em;}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline;}textarea{overflow:auto;}[type="checkbox"],[type="radio"]{box-sizing:border-box;padding:0;}[type="number"]::-webkit-inner-spin-button,[type="number"]::-webkit-outer-spin-button{-webkit-appearance:none!important;}input[type="number"]{-moz-appearance:textfield;}[type="search"]{-webkit-appearance:textfield;outline-offset:-2px;}[type="search"]::-webkit-search-decoration{-webkit-appearance:none!important;}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block;}summary{display:-webkit-box;display:-webkit-list-item;display:-ms-list-itembox;display:list-item;}template{display:none;}[hidden]{display:none!important;}body,blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0;}button{background:transparent;padding:0;}fieldset{margin:0;padding:0;}ol,ul{margin:0;padding:0;}textarea{resize:vertical;}button,[role="button"]{cursor:pointer;}button::-moz-focus-inner{border:0!important;}table{border-collapse:collapse;}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit;}button,input,optgroup,select,textarea{padding:0;line-height:inherit;color:inherit;}img,svg,video,canvas,audio,iframe,embed,object{display:block;}img,video{max-width:100%;height:auto;}[data-js-focus-visible] :focus:not([data-focus-visible-added]){outline:none;box-shadow:none;}select::-ms-expand{display:none;}</style><style data-emotion="css-global 1baqkrf">body{font-family:var(--chakra-fonts-body);color:var(--chakra-colors-gray-800);background:var(--chakra-colors-white);transition-property:background-color;transition-duration:var(--chakra-transition-duration-normal);line-height:var(--chakra-lineHeights-base);}*::-webkit-input-placeholder{color:var(--chakra-colors-gray-400);}*::-moz-placeholder{color:var(--chakra-colors-gray-400);}*:-ms-input-placeholder{color:var(--chakra-colors-gray-400);}*::placeholder{color:var(--chakra-colors-gray-400);}*,*::before,::after{border-color:var(--chakra-colors-gray-200);word-wrap:break-word;}</style><div style="color:#000;background:#fff;font-family:-apple-system, BlinkMacSystemFont, Roboto, &quot;Segoe UI&quot;, &quot;Fira Sans&quot;, Avenir, &quot;Helvetica Neue&quot;, &quot;Lucida Grande&quot;, sans-serif;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body { margin: 0 }</style><h1 style="display:inline-block;border-right:1px solid rgba(0, 0, 0,.3);margin:0;margin-right:20px;padding:10px 23px 10px 0;font-size:24px;font-weight:500;vertical-align:top">404</h1><div style="display:inline-block;text-align:left;line-height:49px;height:49px;vertical-align:middle"><h2 style="font-size:14px;font-weight:normal;line-height:inherit;margin:0;padding:0">This page could not be found<!-- -->.</h2></div></div></div><span></span></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"statusCode":404}},"page":"/_error","query":{},"buildId":"OY7xgp5amTQ-MjS0RPi98","nextExport":true,"isFallback":false,"gip":true,"scriptLoader":[]}</script></body></html> \ No newline at end of file
+<!DOCTYPE html><html><head><meta name="viewport" content="width=device-width"/><meta charSet="utf-8"/><title>404: This page could not be found</title><meta name="next-head-count" content="3"/><link rel="preload" href="/_next/static/css/a37ded5ec4cf14937ec5.css" as="style"/><link rel="stylesheet" href="/_next/static/css/a37ded5ec4cf14937ec5.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-a40ef1678bae11e696dba45124eadd70.js"></script><script src="/_next/static/chunks/webpack-97b7769aa68ab46953a1.js" defer=""></script><script src="/_next/static/chunks/framework-a62d654bd9699da79f2a.js" defer=""></script><script src="/_next/static/chunks/main-80dde85f3cea1551bba1.js" defer=""></script><script src="/_next/static/chunks/pages/_app-5686c15726fcbac980ca.js" defer=""></script><script src="/_next/static/chunks/pages/_error-ea939aab753d9e9db3bd.js" defer=""></script><script src="/_next/static/6Q3_SCUKl8zGqWimdcq8f/_buildManifest.js" defer=""></script><script src="/_next/static/6Q3_SCUKl8zGqWimdcq8f/_ssgManifest.js" defer=""></script></head><body><div id="__next"><style data-emotion="css-global 8u9pn4">:host,:root{--chakra-ring-inset:var(--chakra-empty,/*!*/ /*!*/);--chakra-ring-offset-width:0px;--chakra-ring-offset-color:#fff;--chakra-ring-color:rgba(66, 153, 225, 0.6);--chakra-ring-offset-shadow:0 0 #0000;--chakra-ring-shadow:0 0 #0000;--chakra-space-x-reverse:0;--chakra-space-y-reverse:0;--chakra-colors-transparent:transparent;--chakra-colors-current:currentColor;--chakra-colors-black:#bbc2cf;--chakra-colors-white:#242730;--chakra-colors-whiteAlpha-50:rgba(255, 255, 255, 0.04);--chakra-colors-whiteAlpha-100:rgba(255, 255, 255, 0.06);--chakra-colors-whiteAlpha-200:rgba(255, 255, 255, 0.08);--chakra-colors-whiteAlpha-300:rgba(255, 255, 255, 0.16);--chakra-colors-whiteAlpha-400:rgba(255, 255, 255, 0.24);--chakra-colors-whiteAlpha-500:rgba(255, 255, 255, 0.36);--chakra-colors-whiteAlpha-600:rgba(255, 255, 255, 0.48);--chakra-colors-whiteAlpha-700:rgba(255, 255, 255, 0.64);--chakra-colors-whiteAlpha-800:rgba(255, 255, 255, 0.80);--chakra-colors-whiteAlpha-900:rgba(255, 255, 255, 0.92);--chakra-colors-blackAlpha-50:rgba(0, 0, 0, 0.04);--chakra-colors-blackAlpha-100:rgba(0, 0, 0, 0.06);--chakra-colors-blackAlpha-200:rgba(0, 0, 0, 0.08);--chakra-colors-blackAlpha-300:rgba(0, 0, 0, 0.16);--chakra-colors-blackAlpha-400:rgba(0, 0, 0, 0.24);--chakra-colors-blackAlpha-500:rgba(0, 0, 0, 0.36);--chakra-colors-blackAlpha-600:rgba(0, 0, 0, 0.48);--chakra-colors-blackAlpha-700:rgba(0, 0, 0, 0.64);--chakra-colors-blackAlpha-800:rgba(0, 0, 0, 0.80);--chakra-colors-blackAlpha-900:rgba(0, 0, 0, 0.92);--chakra-colors-gray-50:#F7FAFC;--chakra-colors-gray-100:#1c1f24;--chakra-colors-gray-200:rgb(29, 33, 38);--chakra-colors-gray-300:#21272d;--chakra-colors-gray-400:#23272e;--chakra-colors-gray-500:#484854;--chakra-colors-gray-600:#62686E;--chakra-colors-gray-700:#757B80;--chakra-colors-gray-800:#9ca0a4;--chakra-colors-gray-900:#DFDFDF;--chakra-colors-red-50:#FFF5F5;--chakra-colors-red-100:#FED7D7;--chakra-colors-red-200:#FEB2B2;--chakra-colors-red-300:#FC8181;--chakra-colors-red-400:#F56565;--chakra-colors-red-500:#ff665c;--chakra-colors-red-600:#C53030;--chakra-colors-red-700:#9B2C2C;--chakra-colors-red-800:#822727;--chakra-colors-red-900:#63171B;--chakra-colors-orange-50:#FFFAF0;--chakra-colors-orange-100:#FEEBC8;--chakra-colors-orange-200:#FBD38D;--chakra-colors-orange-300:#F6AD55;--chakra-colors-orange-400:#ED8936;--chakra-colors-orange-500:#e69055;--chakra-colors-orange-600:#C05621;--chakra-colors-orange-700:#9C4221;--chakra-colors-orange-800:#7B341E;--chakra-colors-orange-900:#652B19;--chakra-colors-yellow-50:#FFFFF0;--chakra-colors-yellow-100:#FEFCBF;--chakra-colors-yellow-200:#FAF089;--chakra-colors-yellow-300:#F6E05E;--chakra-colors-yellow-400:#ECC94B;--chakra-colors-yellow-500:#FCCE7B;--chakra-colors-yellow-600:#B7791F;--chakra-colors-yellow-700:#975A16;--chakra-colors-yellow-800:#744210;--chakra-colors-yellow-900:#5F370E;--chakra-colors-green-50:#F0FFF4;--chakra-colors-green-100:#C6F6D5;--chakra-colors-green-200:#9AE6B4;--chakra-colors-green-300:#68D391;--chakra-colors-green-400:#48BB78;--chakra-colors-green-500:#7bc275;--chakra-colors-green-600:#2F855A;--chakra-colors-green-700:#276749;--chakra-colors-green-800:#22543D;--chakra-colors-green-900:#1C4532;--chakra-colors-teal-50:#E6FFFA;--chakra-colors-teal-100:#B2F5EA;--chakra-colors-teal-200:#81E6D9;--chakra-colors-teal-300:#4FD1C5;--chakra-colors-teal-400:#38B2AC;--chakra-colors-teal-500:#51afef;--chakra-colors-teal-600:#2C7A7B;--chakra-colors-teal-700:#285E61;--chakra-colors-teal-800:#234E52;--chakra-colors-teal-900:#1D4044;--chakra-colors-blue-50:#ebf8ff;--chakra-colors-blue-100:#bee3f8;--chakra-colors-blue-200:#90cdf4;--chakra-colors-blue-300:#63b3ed;--chakra-colors-blue-400:#4299e1;--chakra-colors-blue-500:#51afef;--chakra-colors-blue-600:#2b6cb0;--chakra-colors-blue-700:#2c5282;--chakra-colors-blue-800:#2a4365;--chakra-colors-blue-900:#1A365D;--chakra-colors-cyan-50:#EDFDFD;--chakra-colors-cyan-100:#C4F1F9;--chakra-colors-cyan-200:#9DECF9;--chakra-colors-cyan-300:#76E4F7;--chakra-colors-cyan-400:#0BC5EA;--chakra-colors-cyan-500:#5cEfFF;--chakra-colors-cyan-600:#00A3C4;--chakra-colors-cyan-700:#0987A0;--chakra-colors-cyan-800:#086F83;--chakra-colors-cyan-900:#065666;--chakra-colors-purple-50:#FAF5FF;--chakra-colors-purple-100:#E9D8FD;--chakra-colors-purple-200:#D6BCFA;--chakra-colors-purple-300:#B794F4;--chakra-colors-purple-400:#9F7AEA;--chakra-colors-purple-500:#a991f1;--chakra-colors-purple-600:#6B46C1;--chakra-colors-purple-700:#553C9A;--chakra-colors-purple-800:#44337A;--chakra-colors-purple-900:#322659;--chakra-colors-pink-50:#FFF5F7;--chakra-colors-pink-100:#FED7E2;--chakra-colors-pink-200:#FBB6CE;--chakra-colors-pink-300:#F687B3;--chakra-colors-pink-400:#ED64A6;--chakra-colors-pink-500:#C57BDB;--chakra-colors-pink-600:#B83280;--chakra-colors-pink-700:#97266D;--chakra-colors-pink-800:#702459;--chakra-colors-pink-900:#521B41;--chakra-colors-linkedin-50:#E8F4F9;--chakra-colors-linkedin-100:#CFEDFB;--chakra-colors-linkedin-200:#9BDAF3;--chakra-colors-linkedin-300:#68C7EC;--chakra-colors-linkedin-400:#34B3E4;--chakra-colors-linkedin-500:#00A0DC;--chakra-colors-linkedin-600:#008CC9;--chakra-colors-linkedin-700:#0077B5;--chakra-colors-linkedin-800:#005E93;--chakra-colors-linkedin-900:#004471;--chakra-colors-facebook-50:#E8F4F9;--chakra-colors-facebook-100:#D9DEE9;--chakra-colors-facebook-200:#B7C2DA;--chakra-colors-facebook-300:#6482C0;--chakra-colors-facebook-400:#4267B2;--chakra-colors-facebook-500:#385898;--chakra-colors-facebook-600:#314E89;--chakra-colors-facebook-700:#29487D;--chakra-colors-facebook-800:#223B67;--chakra-colors-facebook-900:#1E355B;--chakra-colors-messenger-50:#D0E6FF;--chakra-colors-messenger-100:#B9DAFF;--chakra-colors-messenger-200:#A2CDFF;--chakra-colors-messenger-300:#7AB8FF;--chakra-colors-messenger-400:#2E90FF;--chakra-colors-messenger-500:#0078FF;--chakra-colors-messenger-600:#0063D1;--chakra-colors-messenger-700:#0052AC;--chakra-colors-messenger-800:#003C7E;--chakra-colors-messenger-900:#002C5C;--chakra-colors-whatsapp-50:#dffeec;--chakra-colors-whatsapp-100:#b9f5d0;--chakra-colors-whatsapp-200:#90edb3;--chakra-colors-whatsapp-300:#65e495;--chakra-colors-whatsapp-400:#3cdd78;--chakra-colors-whatsapp-500:#22c35e;--chakra-colors-whatsapp-600:#179848;--chakra-colors-whatsapp-700:#0c6c33;--chakra-colors-whatsapp-800:#01421c;--chakra-colors-whatsapp-900:#001803;--chakra-colors-twitter-50:#E5F4FD;--chakra-colors-twitter-100:#C8E9FB;--chakra-colors-twitter-200:#A8DCFA;--chakra-colors-twitter-300:#83CDF7;--chakra-colors-twitter-400:#57BBF5;--chakra-colors-twitter-500:#1DA1F2;--chakra-colors-twitter-600:#1A94DA;--chakra-colors-twitter-700:#1681BF;--chakra-colors-twitter-800:#136B9E;--chakra-colors-twitter-900:#0D4D71;--chakra-colors-telegram-50:#E3F2F9;--chakra-colors-telegram-100:#C5E4F3;--chakra-colors-telegram-200:#A2D4EC;--chakra-colors-telegram-300:#7AC1E4;--chakra-colors-telegram-400:#47A9DA;--chakra-colors-telegram-500:#0088CC;--chakra-colors-telegram-600:#007AB8;--chakra-colors-telegram-700:#006BA1;--chakra-colors-telegram-800:#005885;--chakra-colors-telegram-900:#003F5E;--chakra-colors-alt-100:#2a2e38;--chakra-colors-alt-900:#5D656B;--chakra-borders-none:0;--chakra-borders-1px:1px solid;--chakra-borders-2px:2px solid;--chakra-borders-4px:4px solid;--chakra-borders-8px:8px solid;--chakra-fonts-heading:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";--chakra-fonts-body:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";--chakra-fonts-mono:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--chakra-fontSizes-xs:0.75rem;--chakra-fontSizes-sm:0.875rem;--chakra-fontSizes-md:1rem;--chakra-fontSizes-lg:1.125rem;--chakra-fontSizes-xl:1.25rem;--chakra-fontSizes-2xl:1.5rem;--chakra-fontSizes-3xl:1.875rem;--chakra-fontSizes-4xl:2.25rem;--chakra-fontSizes-5xl:3rem;--chakra-fontSizes-6xl:3.75rem;--chakra-fontSizes-7xl:4.5rem;--chakra-fontSizes-8xl:6rem;--chakra-fontSizes-9xl:8rem;--chakra-fontWeights-hairline:100;--chakra-fontWeights-thin:200;--chakra-fontWeights-light:300;--chakra-fontWeights-normal:400;--chakra-fontWeights-medium:500;--chakra-fontWeights-semibold:600;--chakra-fontWeights-bold:700;--chakra-fontWeights-extrabold:800;--chakra-fontWeights-black:900;--chakra-letterSpacings-tighter:-0.05em;--chakra-letterSpacings-tight:-0.025em;--chakra-letterSpacings-normal:0;--chakra-letterSpacings-wide:0.025em;--chakra-letterSpacings-wider:0.05em;--chakra-letterSpacings-widest:0.1em;--chakra-lineHeights-3:.75rem;--chakra-lineHeights-4:1rem;--chakra-lineHeights-5:1.25rem;--chakra-lineHeights-6:1.5rem;--chakra-lineHeights-7:1.75rem;--chakra-lineHeights-8:2rem;--chakra-lineHeights-9:2.25rem;--chakra-lineHeights-10:2.5rem;--chakra-lineHeights-normal:normal;--chakra-lineHeights-none:1;--chakra-lineHeights-shorter:1.25;--chakra-lineHeights-short:1.375;--chakra-lineHeights-base:1.5;--chakra-lineHeights-tall:1.625;--chakra-lineHeights-taller:2;--chakra-radii-none:0;--chakra-radii-sm:0.125rem;--chakra-radii-base:0.25rem;--chakra-radii-md:0.375rem;--chakra-radii-lg:0.5rem;--chakra-radii-xl:0.75rem;--chakra-radii-2xl:1rem;--chakra-radii-3xl:1.5rem;--chakra-radii-full:9999px;--chakra-space-1:0.25rem;--chakra-space-2:0.5rem;--chakra-space-3:0.75rem;--chakra-space-4:1rem;--chakra-space-5:1.25rem;--chakra-space-6:1.5rem;--chakra-space-7:1.75rem;--chakra-space-8:2rem;--chakra-space-9:2.25rem;--chakra-space-10:2.5rem;--chakra-space-12:3rem;--chakra-space-14:3.5rem;--chakra-space-16:4rem;--chakra-space-20:5rem;--chakra-space-24:6rem;--chakra-space-28:7rem;--chakra-space-32:8rem;--chakra-space-36:9rem;--chakra-space-40:10rem;--chakra-space-44:11rem;--chakra-space-48:12rem;--chakra-space-52:13rem;--chakra-space-56:14rem;--chakra-space-60:15rem;--chakra-space-64:16rem;--chakra-space-72:18rem;--chakra-space-80:20rem;--chakra-space-96:24rem;--chakra-space-px:1px;--chakra-space-0-5:0.125rem;--chakra-space-1-5:0.375rem;--chakra-space-2-5:0.625rem;--chakra-space-3-5:0.875rem;--chakra-shadows-xs:0 0 0 1px rgba(0, 0, 0, 0.05);--chakra-shadows-sm:0 1px 2px 0 rgba(0, 0, 0, 0.05);--chakra-shadows-base:0 1px 3px 0 rgba(0, 0, 0, 0.1),0 1px 2px 0 rgba(0, 0, 0, 0.06);--chakra-shadows-md:0 4px 6px -1px rgba(0, 0, 0, 0.1),0 2px 4px -1px rgba(0, 0, 0, 0.06);--chakra-shadows-lg:0 10px 15px -3px rgba(0, 0, 0, 0.1),0 4px 6px -2px rgba(0, 0, 0, 0.05);--chakra-shadows-xl:0 20px 25px -5px rgba(0, 0, 0, 0.1),0 10px 10px -5px rgba(0, 0, 0, 0.04);--chakra-shadows-2xl:0 25px 50px -12px rgba(0, 0, 0, 0.25);--chakra-shadows-outline:0 0 0 3px #a991f1aa;--chakra-shadows-inner:inset 0 2px 4px 0 rgba(0,0,0,0.06);--chakra-shadows-none:none;--chakra-shadows-dark-lg:rgba(0, 0, 0, 0.1) 0px 0px 0px 1px,rgba(0, 0, 0, 0.2) 0px 5px 10px,rgba(0, 0, 0, 0.4) 0px 15px 40px;--chakra-sizes-1:0.25rem;--chakra-sizes-2:0.5rem;--chakra-sizes-3:0.75rem;--chakra-sizes-4:1rem;--chakra-sizes-5:1.25rem;--chakra-sizes-6:1.5rem;--chakra-sizes-7:1.75rem;--chakra-sizes-8:2rem;--chakra-sizes-9:2.25rem;--chakra-sizes-10:2.5rem;--chakra-sizes-12:3rem;--chakra-sizes-14:3.5rem;--chakra-sizes-16:4rem;--chakra-sizes-20:5rem;--chakra-sizes-24:6rem;--chakra-sizes-28:7rem;--chakra-sizes-32:8rem;--chakra-sizes-36:9rem;--chakra-sizes-40:10rem;--chakra-sizes-44:11rem;--chakra-sizes-48:12rem;--chakra-sizes-52:13rem;--chakra-sizes-56:14rem;--chakra-sizes-60:15rem;--chakra-sizes-64:16rem;--chakra-sizes-72:18rem;--chakra-sizes-80:20rem;--chakra-sizes-96:24rem;--chakra-sizes-px:1px;--chakra-sizes-0-5:0.125rem;--chakra-sizes-1-5:0.375rem;--chakra-sizes-2-5:0.625rem;--chakra-sizes-3-5:0.875rem;--chakra-sizes-max:max-content;--chakra-sizes-min:min-content;--chakra-sizes-full:100%;--chakra-sizes-3xs:14rem;--chakra-sizes-2xs:16rem;--chakra-sizes-xs:20rem;--chakra-sizes-sm:24rem;--chakra-sizes-md:28rem;--chakra-sizes-lg:32rem;--chakra-sizes-xl:36rem;--chakra-sizes-2xl:42rem;--chakra-sizes-3xl:48rem;--chakra-sizes-4xl:56rem;--chakra-sizes-5xl:64rem;--chakra-sizes-6xl:72rem;--chakra-sizes-7xl:80rem;--chakra-sizes-8xl:90rem;--chakra-sizes-container-sm:640px;--chakra-sizes-container-md:768px;--chakra-sizes-container-lg:1024px;--chakra-sizes-container-xl:1280px;--chakra-zIndices-hide:-1;--chakra-zIndices-auto:auto;--chakra-zIndices-base:0;--chakra-zIndices-docked:10;--chakra-zIndices-dropdown:1000;--chakra-zIndices-sticky:1100;--chakra-zIndices-banner:1200;--chakra-zIndices-overlay:1300;--chakra-zIndices-modal:1400;--chakra-zIndices-popover:1500;--chakra-zIndices-skipLink:1600;--chakra-zIndices-toast:1700;--chakra-zIndices-tooltip:1800;--chakra-transition-property-common:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform;--chakra-transition-property-colors:background-color,border-color,color,fill,stroke;--chakra-transition-property-dimensions:width,height;--chakra-transition-property-position:left,right,top,bottom;--chakra-transition-property-background:background-color,background-image,background-position;--chakra-transition-easing-ease-in:cubic-bezier(0.4, 0, 1, 1);--chakra-transition-easing-ease-out:cubic-bezier(0, 0, 0.2, 1);--chakra-transition-easing-ease-in-out:cubic-bezier(0.4, 0, 0.2, 1);--chakra-transition-duration-ultra-fast:50ms;--chakra-transition-duration-faster:100ms;--chakra-transition-duration-fast:150ms;--chakra-transition-duration-normal:200ms;--chakra-transition-duration-slow:300ms;--chakra-transition-duration-slower:400ms;--chakra-transition-duration-ultra-slow:500ms;--chakra-blur-none:0;--chakra-blur-sm:4px;--chakra-blur-base:8px;--chakra-blur-md:12px;--chakra-blur-lg:16px;--chakra-blur-xl:24px;--chakra-blur-2xl:40px;--chakra-blur-3xl:64px;}</style><style data-emotion="css-global 1jqlf9g">html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:system-ui,sans-serif;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;touch-action:manipulation;}body{position:relative;min-height:100%;font-feature-settings:'kern';}*,*::before,*::after{border-width:0;border-style:solid;box-sizing:border-box;}main{display:block;}hr{border-top-width:1px;box-sizing:content-box;height:0;overflow:visible;}pre,code,kbd,samp{font-family:SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:1em;}a{background-color:transparent;color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit;}abbr[title]{border-bottom:none;-webkit-text-decoration:underline;text-decoration:underline;-webkit-text-decoration:underline dotted;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bold;}small{font-size:80%;}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline;}sub{bottom:-0.25em;}sup{top:-0.5em;}img{border-style:none;}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible;}button,select{text-transform:none;}button::-moz-focus-inner,[type="button"]::-moz-focus-inner,[type="reset"]::-moz-focus-inner,[type="submit"]::-moz-focus-inner{border-style:none;padding:0;}fieldset{padding:0.35em 0.75em 0.625em;}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline;}textarea{overflow:auto;}[type="checkbox"],[type="radio"]{box-sizing:border-box;padding:0;}[type="number"]::-webkit-inner-spin-button,[type="number"]::-webkit-outer-spin-button{-webkit-appearance:none!important;}input[type="number"]{-moz-appearance:textfield;}[type="search"]{-webkit-appearance:textfield;outline-offset:-2px;}[type="search"]::-webkit-search-decoration{-webkit-appearance:none!important;}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block;}summary{display:-webkit-box;display:-webkit-list-item;display:-ms-list-itembox;display:list-item;}template{display:none;}[hidden]{display:none!important;}body,blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0;}button{background:transparent;padding:0;}fieldset{margin:0;padding:0;}ol,ul{margin:0;padding:0;}textarea{resize:vertical;}button,[role="button"]{cursor:pointer;}button::-moz-focus-inner{border:0!important;}table{border-collapse:collapse;}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit;}button,input,optgroup,select,textarea{padding:0;line-height:inherit;color:inherit;}img,svg,video,canvas,audio,iframe,embed,object{display:block;}img,video{max-width:100%;height:auto;}[data-js-focus-visible] :focus:not([data-focus-visible-added]){outline:none;box-shadow:none;}select::-ms-expand{display:none;}</style><style data-emotion="css-global 1baqkrf">body{font-family:var(--chakra-fonts-body);color:var(--chakra-colors-gray-800);background:var(--chakra-colors-white);transition-property:background-color;transition-duration:var(--chakra-transition-duration-normal);line-height:var(--chakra-lineHeights-base);}*::-webkit-input-placeholder{color:var(--chakra-colors-gray-400);}*::-moz-placeholder{color:var(--chakra-colors-gray-400);}*:-ms-input-placeholder{color:var(--chakra-colors-gray-400);}*::placeholder{color:var(--chakra-colors-gray-400);}*,*::before,::after{border-color:var(--chakra-colors-gray-200);word-wrap:break-word;}</style><div style="color:#000;background:#fff;font-family:-apple-system, BlinkMacSystemFont, Roboto, &quot;Segoe UI&quot;, &quot;Fira Sans&quot;, Avenir, &quot;Helvetica Neue&quot;, &quot;Lucida Grande&quot;, sans-serif;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body { margin: 0 }</style><h1 style="display:inline-block;border-right:1px solid rgba(0, 0, 0,.3);margin:0;margin-right:20px;padding:10px 23px 10px 0;font-size:24px;font-weight:500;vertical-align:top">404</h1><div style="display:inline-block;text-align:left;line-height:49px;height:49px;vertical-align:middle"><h2 style="font-size:14px;font-weight:normal;line-height:inherit;margin:0;padding:0">This page could not be found<!-- -->.</h2></div></div></div><span></span></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"statusCode":404}},"page":"/_error","query":{},"buildId":"6Q3_SCUKl8zGqWimdcq8f","nextExport":true,"isFallback":false,"gip":true,"scriptLoader":[]}</script></body></html> \ No newline at end of file
diff --git a/out/_next/static/OY7xgp5amTQ-MjS0RPi98/_buildManifest.js b/out/_next/static/6Q3_SCUKl8zGqWimdcq8f/_buildManifest.js
index d412b2e..ed1bb53 100644
--- a/out/_next/static/OY7xgp5amTQ-MjS0RPi98/_buildManifest.js
+++ b/out/_next/static/6Q3_SCUKl8zGqWimdcq8f/_buildManifest.js
@@ -1 +1 @@
-self.__BUILD_MANIFEST={__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":["static/chunks/fb7d5399-9c00dff9225b87a317ed.js","static/chunks/17007de1-7d8b9c17ee7cc8107af3.js","static/chunks/252f366e-54a484ebfe8fe95dfdbb.js","static/chunks/95b64a6e-860b8751a48619de0c76.js","static/chunks/0c428ae2-753f1ebbec24c403674c.js","static/chunks/1a48c3c1-648f6631a5e9a5f8e954.js","static/chunks/b5f2ed29-b8c45246e6f61610d91f.js","static/chunks/d25bd147-2c59edc357c0e2372258.js","static/css/bdf775d76e641698f02f.css","static/chunks/879-09bfd8a9d59d1f41b6f4.js","static/chunks/pages/index-f954a7866bfdd966749e.js"],"/_error":["static/chunks/pages/_error-ea939aab753d9e9db3bd.js"],sortedPages:["/","/_app","/_error"]},self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file
+self.__BUILD_MANIFEST={__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":["static/chunks/fb7d5399-9c00dff9225b87a317ed.js","static/chunks/17007de1-7d8b9c17ee7cc8107af3.js","static/chunks/252f366e-54a484ebfe8fe95dfdbb.js","static/chunks/95b64a6e-860b8751a48619de0c76.js","static/chunks/0c428ae2-753f1ebbec24c403674c.js","static/chunks/1a48c3c1-648f6631a5e9a5f8e954.js","static/chunks/b5f2ed29-b8c45246e6f61610d91f.js","static/chunks/d25bd147-2c59edc357c0e2372258.js","static/css/bdf775d76e641698f02f.css","static/chunks/879-09bfd8a9d59d1f41b6f4.js","static/chunks/pages/index-f97770bc257e872f8c86.js"],"/_error":["static/chunks/pages/_error-ea939aab753d9e9db3bd.js"],sortedPages:["/","/_app","/_error"]},self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file
diff --git a/out/_next/static/OY7xgp5amTQ-MjS0RPi98/_ssgManifest.js b/out/_next/static/6Q3_SCUKl8zGqWimdcq8f/_ssgManifest.js
index 0511aa8..0511aa8 100644
--- a/out/_next/static/OY7xgp5amTQ-MjS0RPi98/_ssgManifest.js
+++ b/out/_next/static/6Q3_SCUKl8zGqWimdcq8f/_ssgManifest.js
diff --git a/out/_next/static/chunks/pages/index-f954a7866bfdd966749e.js b/out/_next/static/chunks/pages/index-f97770bc257e872f8c86.js
index 6f757f9..6d09837 100644
--- a/out/_next/static/chunks/pages/index-f954a7866bfdd966749e.js
+++ b/out/_next/static/chunks/pages/index-f97770bc257e872f8c86.js
@@ -1 +1 @@
-(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{46587:function(e,n,t){"use strict";t.r(n),t.d(n,{Graph:function(){return tr},GraphPage:function(){return nr},default:function(){return er}});var r=t(30266),o=t(83789),i=t(92809),l=t(80318),s=t(809),c=t.n(s),a=t(97375),d=t(68527),u=t(47398),h=t(68921),g=t(105),f=t(27549),p=t(74376),x=t(52596),j=t(9008),v=t(67294),b=t(32802),m=t.n(b),y=t(47516),C=t(63750),w=t(22003),O=t(31122),k=t(7520),S=t(36194),I=[],N={};for(var P in S.oY)for(var D in S.oY[P]){var B=P+D;"LinearNone"===B&&(B="Linear"),I.push(B),N[B]=S.oY[P][D]}var L=N,T={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:[],dirsBlocklist:[],dirsAllowlist:[],bad:!0,nodes:[],links:[],date:[],noter:!0},F={method:"degree"},E={particles:!1,particlesNumber:0,particlesWidth:4,arrows:!1,arrowsLength:1,arrowsPos:.5,arrowsColor:"",linkOpacity:.8,linkWidth:1,nodeRel:3,nodeOpacity:1,nodeResolution:12,labels:2,labelScale:1.5,labelFontSize:10,labelLength:40,labelWordWrap:25,labelLineSpace:1,labelDynamicDegree:8,labelDynamicStrength:.5,highlight:!0,highlightNodeSize:1.1,highlightLinkSize:.7,highlightFade:.8,highlightAnim:!0,animationSpeed:360,algorithmOptions:I,algorithmName:"CircularOut",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},R={follow:"zoom",localSame:"add",zoomPadding:200,zoomSpeed:2e3},Z={highlight:"hover",local:"double",follow:"never",context:"right",preview:"click",backgroundExitsLocal:!1},H={neighbors:1},W=["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(57324),M=t(90232),V=t(52072);function _(e,n,t){t.send(JSON.stringify({command:e,data:n}))}function U(e,n){_("open",{id:e.id},n)}var q=t(10219),X=t(44592),G=t(38554),Q=t.n(G),J=t(53869),K=t(99860);function $(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 Y(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?$(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):$(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var ee={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]};var ne=function(e,n){return Y(Y({},e),{},{delay:(0,X.hj)(n)?n:null===n||void 0===n?void 0:n.enter})},te=function(e,n){return Y(Y({},e),{},{delay:(0,X.hj)(n)?n:null===n||void 0===n?void 0:n.exit})},re=t(85893),oe=["in","unmountOnExit","animateOpacity","startingSize","endingSize","dimension","style","className","transition","transitionEnd"];function ie(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 le(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ie(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ie(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var se=function(e){return null!=e&&parseInt(e.toString(),10)>0},ce={exit:{size:{duration:.2,ease:ee.ease},opacity:{duration:.3,ease:ee.ease}},enter:{size:{duration:.3,ease:ee.ease},opacity:{duration:.4,ease:ee.ease}}},ae={exit:function(e){var n,t,r=e.animateOpacity,o=e.startingSize,l=e.transition,s=e.transitionEnd,c=e.delay,a=e.dimension;return le(le({},r&&{opacity:se(o)?1:0}),{},(t={overflow:"hidden"},(0,i.Z)(t,a,o),(0,i.Z)(t,"transitionEnd",null===s||void 0===s?void 0:s.exit),(0,i.Z)(t,"transition",null!==(n=null===l||void 0===l?void 0:l.exit)&&void 0!==n?n:te(ce.exit,c)),t))},enter:function(e){var n,t,r=e.animateOpacity,o=e.endingSize,l=e.transition,s=e.transitionEnd,c=e.delay,a=e.dimension;return le(le({},r&&{opacity:1}),{},(t={},(0,i.Z)(t,a,o),(0,i.Z)(t,"transitionEnd",null===s||void 0===s?void 0:s.enter),(0,i.Z)(t,"transition",null!==(n=null===l||void 0===l?void 0:l.enter)&&void 0!==n?n:ne(ce.enter,c)),t))}},de=v.forwardRef((function(e,n){var t=e.in,r=e.unmountOnExit,o=e.animateOpacity,i=void 0===o||o,s=e.startingSize,c=void 0===s?0:s,a=e.endingSize,d=void 0===a?"auto":a,u=e.dimension,h=void 0===u?"height":u,g=e.style,f=e.className,p=e.transition,x=e.transitionEnd,j=(0,q.Z)(e,oe),b=v.useState(!1),m=(0,l.Z)(b,2),y=m[0],C=m[1];v.useEffect((function(){var e=setTimeout((function(){C(!0)}));return function(){return clearTimeout(e)}}),[]),(0,X.ZK)({condition:Boolean(c>0&&r),message:"startingSize and unmountOnExit are mutually exclusive. You can't use them together"});var w=parseFloat(c.toString())>0,O={startingSize:c,endingSize:d,animateOpacity:i,dimension:h,transition:y?p:{enter:{duration:0}},transitionEnd:Q()(x,{enter:{overflow:"initial"},exit:r?void 0:{display:w?"block":"none"}})},k=!r||t,S=t||r?"enter":"exit";return(0,re.jsx)(J.M,{initial:!1,custom:O,children:k&&(0,re.jsx)(K.E.div,le(le({ref:n},j),{},{className:(0,X.cx)("chakra-collapse",f),style:le({overflow:"hidden",display:"block"},g),custom:O,variants:ae,initial:!!r&&"exit",animate:S,exit:"exit"}))})}));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 he(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ue(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ue(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}X.Ts&&(de.displayName="Collapse");var ge=function(e){var n=e.setTagColors,t=e.setFilter,r=e.filter,l=e.tagColors,s=e.target,c=r.tagsBlacklist,u=r.tagsWhitelist,h=c.indexOf(s)>-1,g=u.indexOf(s)>-1,f=(0,a.qY)();return(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(A.sN,{icon:(0,re.jsx)(d.Box,{bgColor:l[s],borderRadius:"sm",height:3,width:3,borderColor:l[s]||"gray.600",borderWidth:1}),closeOnSelect:!1,onClick:f.onToggle,children:(0,re.jsx)(d.Text,{children:"Change color"})}),(0,re.jsx)(de,{in:f.isOpen,children:(0,re.jsxs)(d.Flex,{ml:2,mt:2,flexWrap:"wrap",children:[(0,re.jsx)(d.Box,{children:(0,re.jsx)(d.Box,{tabIndex:0,cursor:"pointer",onClick:function(){return n((function(e){return Object.fromEntries(Object.keys(e).filter((function(e){return e!==s})).map((function(n){return[n,e[n]]})))}))},bgColor:"",m:1,borderRadius:"sm",borderColor:"gray.600",borderWidth:1,height:3,width:3})},"empty"),W.map((function(e){return(0,re.jsx)(d.Box,{children:(0,re.jsx)(d.Box,{tabIndex:0,cursor:"pointer",onClick:function(){return n(he(he({},l),{},(0,i.Z)({},s,e)))},bgColor:e,m:1,borderRadius:"sm",height:3,width:3})},e)}))]})}),!g&&(0,re.jsx)(A.sN,{onClick:function(){t(h?function(e){return he(he({},e),{},{tagsBlacklist:e.tagsBlacklist.filter((function(e){return e!==s}))})}:function(e){return he(he({},e),{},{tagsBlacklist:[].concat((0,o.Z)(e.tagsBlacklist),[s])})})},icon:h?(0,re.jsx)(V.MinusIcon,{}):(0,re.jsx)(V.ViewOffIcon,{}),children:h?"Remove from blocklist":"Add to blocklist"}),!h&&(0,re.jsx)(A.sN,{onClick:function(){t(g?function(e){return he(he({},e),{},{tagsWhitelist:e.tagsWhitelist.filter((function(e){return e!==s}))})}:function(e){return he(he({},e),{},{tagsWhitelist:[].concat((0,o.Z)(e.tagsWhitelist),[s])})})},icon:g?(0,re.jsx)(V.MinusIcon,{}):(0,re.jsx)(V.ViewIcon,{}),children:g?"Remove from allowlist":"Add to allowlist"})]})},fe=function(e){e.background;var n,t,r=e.target,o=(e.nodeType,e.coordinates),i=e.handleLocal,l=e.menuClose,s=e.scope,c=e.webSocket,u=e.setPreviewNode,g=e.setTagColors,f=e.tagColors,p=e.setFilter,x=e.filter,j=(0,a.qY)(),b=j.isOpen,m=j.onOpen,C=j.onClose;(0,v.useRef)();return(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(A.v2,{defaultIsOpen:!0,closeOnBlur:!1,onClose:function(){return l()},children:(0,re.jsx)(A.qy,{zIndex:"overlay",bgColor:"white",color:"black",position:"absolute",left:o.left,top:o.top,right:o.right,bottom:o.bottom,fontSize:"xs",boxShadow:"xl",children:"string"!==typeof r?(0,re.jsxs)(re.Fragment,{children:[r&&(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(d.Heading,{size:"xs",isTruncated:!0,px:3,py:1,children:r.title}),(0,re.jsx)(A.R,{borderColor:"gray.500"})]}),0!==s.nodeIds.length&&(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(A.sN,{onClick:function(){return i(r,"add")},icon:(0,re.jsx)(V.PlusSquareIcon,{}),children:"Expand local graph at node"}),(0,re.jsx)(A.sN,{onClick:function(){return i(r,"replace")},icon:(0,re.jsx)(y.DvO,{}),children:"Open local graph for this node"}),(0,re.jsx)(A.sN,{onClick:function(){return i(r,"remove")},icon:(0,re.jsx)(V.MinusIcon,{}),children:"Exclude node from local graph"})]}),null!==r&&void 0!==r&&null!==(n=r.properties)&&void 0!==n&&n.FILELESS?(0,re.jsx)(A.sN,{icon:(0,re.jsx)(V.AddIcon,{}),onClick:function(){return function(e,n){_("create",{id:e.id,title:e.title,ref:e.properties.ROAM_REFS},n)}(r,c)},children:"Create node"}):(0,re.jsx)(A.sN,{icon:(0,re.jsx)(V.EditIcon,{}),onClick:function(){return U(r,c)},children:"Open in Emacs"}),(null===r||void 0===r||null===(t=r.properties)||void 0===t?void 0:t.ROAM_REFS)&&(0,re.jsx)(A.sN,{icon:(0,re.jsx)(V.ExternalLinkIcon,{}),children:"Open in Zotero"}),0===s.nodeIds.length&&(0,re.jsx)(A.sN,{icon:(0,re.jsx)(y.DvO,{}),onClick:function(){return i(r,"replace")},children:"Open local graph"}),(0,re.jsx)(A.sN,{icon:(0,re.jsx)(V.ViewIcon,{}),onClick:function(){u(r)},children:"Preview"}),0===(null===r||void 0===r?void 0:r.level)&&(0,re.jsx)(A.sN,{closeOnSelect:!1,icon:(0,re.jsx)(V.DeleteIcon,{color:"red.500"}),color:"red.500",onClick:m,children:"Permanently delete note"})]}):(0,re.jsx)(ge,{target:r,tagColors:f,filter:x,setTagColors:g,setFilter:p})})}),"string"!==typeof r&&(0,re.jsxs)(M.u_,{isCentered:!0,isOpen:b,onClose:C,children:[(0,re.jsx)(M.ZA,{}),(0,re.jsxs)(M.hz,{zIndex:"popover",children:[(0,re.jsx)(M.xB,{children:"Delete node?"}),(0,re.jsx)(M.ol,{}),(0,re.jsx)(M.fe,{children:(0,re.jsxs)(d.VStack,{spacing:4,display:"flex",alignItems:"flex-start",children:[(0,re.jsx)(d.Text,{children:"This will permanently delete your note:"}),(0,re.jsx)(d.Text,{fontWeight:"bold",children:null===r||void 0===r?void 0:r.title}),0!==(null===r||void 0===r?void 0:r.level)&&(0,re.jsx)(d.Text,{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,re.jsx)(d.Text,{children:"Are you sure you want to do continue?"})]})}),(0,re.jsxs)(M.mz,{children:[(0,re.jsx)(h.Button,{mr:3,onClick:function(){console.log("closing"),C(),l()},children:"Cancel"}),(0,re.jsx)(h.Button,{variant:"link",colorScheme:"red",ml:3,onClick:function(){console.log("aaaaa"),function(e,n){0===e.level&&_("delete",{id:e.id,file:e.file},n)}(r,c),C(),l()},children:"Delete node"})]})]})]})]})},pe=t(5434),xe=t(51649),je=function(e){var n=e.setJustification,t=(e.setIndent,e.setFont,e.justification),r=(e.setPreviewNode,e.canUndo),o=e.canRedo,i=(e.resetPreviewNode,e.previousPreviewNode),l=e.nextPreviewNode,s=e.outline,c=e.setOutline,a=e.collapse,g=e.setCollapse;return(0,re.jsxs)(d.Flex,{flex:"0 1 40px",pb:3,alignItems:"center",justifyContent:"space-between",pr:1,children:[(0,re.jsx)(d.Flex,{children:(0,re.jsxs)(h.ButtonGroup,{isAttached:!0,children:[(0,re.jsx)(u.u,{label:"Go backward",children:(0,re.jsx)(h.IconButton,{_focus:{},variant:"subtle",icon:(0,re.jsx)(V.ChevronLeftIcon,{}),"aria-label":"Previous node",disabled:!r,onClick:function(){return i()}})}),(0,re.jsx)(u.u,{label:"Go forward",children:(0,re.jsx)(h.IconButton,{_focus:{},variant:"subtle",icon:(0,re.jsx)(V.ChevronRightIcon,{}),"aria-label":"Next node",disabled:!o,onClick:function(){return l()}})})]})}),(0,re.jsxs)(d.Flex,{children:[(0,re.jsx)(u.u,{label:"Justify content",children:(0,re.jsx)(h.IconButton,{variant:"subtle","aria-label":"Justify content",icon:[(0,re.jsx)(y.v9V,{},"justify"),(0,re.jsx)(y.YSr,{},"left"),(0,re.jsx)(y.RXA,{},"right"),(0,re.jsx)(y.tr_,{},"center")][t],onClick:function(){return n((function(e){return(e+1)%4}))}})}),(0,re.jsx)(u.u,{label:"Toggle outline view",children:(0,re.jsx)(h.IconButton,{variant:"subtle","aria-label":"Justify content",icon:s?(0,re.jsx)(xe.XQM,{}):(0,re.jsx)(xe.JfF,{}),onClick:function(){return c((function(e){return!e}))}})}),(0,re.jsx)(u.u,{label:"Toggle headers",children:(0,re.jsx)(h.IconButton,{variant:"subtle","aria-label":"Toggle headers",icon:a?(0,re.jsx)(pe.omV,{}):(0,re.jsx)(pe.egf,{}),onClick:function(){return g((function(e){return!e}))}})})]})]})},ve=t(96356);function be(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 me(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?be(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):be(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var ye=function(e){var n,t,r,i=e.filter,l=e.setFilter,s=e.tagColors,c=(e.setTagColors,e.openContextMenu),a=e.previewNode;return null!==a&&void 0!==a&&a.tags&&null!==(null===a||void 0===a||null===(n=a.tags)||void 0===n?void 0:n[0])?(0,re.jsx)(d.Flex,{mb:2,flexWrap:"wrap",children:null===a||void 0===a||null===(t=a.tags)||void 0===t||null===(r=t.map)||void 0===r?void 0:r.call(t,(function(e){var n,t,r,a=null!==(n=i.tagsBlacklist)&&void 0!==n?n:[],d=null!==(t=i.tagsWhitelist)&&void 0!==t?t:[],u=a.includes(e),h=d.includes(e);return(0,re.jsxs)(ve.Tag,{tabIndex:0,mr:2,mt:2,onContextMenu:function(n){n.preventDefault(),c(e,n)},cursor:"pointer",onClick:function(){l(u?function(n){return me(me({},n),{},{tagsBlacklist:n.tagsBlacklist.filter((function(n){return n!==e})),tagsWhitelist:[].concat((0,o.Z)(n.tagsWhitelist),[e])})}:h?function(n){return me(me({},n),{},{tagsWhitelist:n.tagsWhitelist.filter((function(n){return n!==e}))})}:function(n){return me(me({},n),{},{tagsBlacklist:[].concat((0,o.Z)(n.tagsBlacklist),[e])})})},size:"sm",variant:"outline",colorScheme:(null===(r=s[e])||void 0===r?void 0:r.replaceAll(/(.*?)\..*/g,"$1"))||void 0,children:[(0,re.jsx)(ve.TagLabel,{children:e}),u?(0,re.jsx)(ve.TagRightIcon,{as:V.ViewOffIcon}):h?(0,re.jsx)(ve.TagRightIcon,{as:V.ViewIcon}):null]},e)}))}):null},Ce=t(18835),we=t.n(Ce),Oe=t(13816),ke=t.n(Oe),Se=t(42728),Ie=t.n(Se),Ne=t(77890),Pe=t.n(Ne),De=t(94986),Be=t.n(De),Le=t(88541),Te=t.n(Le),ze=t(71167),Fe=t.n(ze),Ee=(t(85062),t(27431)),Re=t.n(Ee),Ze=t(12861),He=t.n(Ze),We=t(10043),Ae=t.n(We),Me=t(80816),Ve=t(93545),_e=t.n(Ve),Ue=t(15941),qe=t.n(Ue),Xe=t(67597),Ge=t.n(Xe),Qe=t(44549),Je=t.n(Qe),Ke=t(78818),$e=t.n(Ke),Ye=t(32095),en=t(46871),nn=t(29356),tn={".headingFlex":{flexDirection:"row-reverse",justifyContent:"flex-end"},".outlineHeadingButton":{display:"none"},h1:{color:"black",lineHeight:"1.2",fontSize:"16",fontWeight:"bold",paddingTop:2},h2:{fontSize:"14",color:"black",fontWeight:"bold",fontStyle:"bold italic",paddingTop:2},h3:{fontSize:"13",color:"black",paddingTop:2},h4:{fontSize:"12",fontStyle:"italic",color:"black",paddingTop:2},".sectionContent":{paddingTop:2}},rn={".headingFlex":{flexDirection:"row",justifyContent:"flex-start"},".viewerHeadingButton":{display:"none"},".sectionContent":{mt:3,paddingLeft:4,ml:"11px",borderLeftWidth:"1px",borderLeftColor:"gray.500"},".preHeadingContent":{},"h1,h2,h3,h4,h5,h6,h7,h8":{pl:1,lineHeight:"1.25",color:"black",fontSize:15,fontWeight:700},".sec":{pt:1},".wrapClass > div > p":{mb:2},p:{fontWeight:500,fontSize:14,pb:2}},on={".katex":{overflowX:"scroll"},ol:{paddingLeft:4,py:1},"li::marker":{fontSize:12,fontWeight:"bold"},li:{pt:1},ul:{paddingLeft:"5"},p:{fontSize:"14",fontWeight:"500 !important",pb:2},div:{hyphens:"auto !important"},".title":{textAlign:"center",marginBottom:".2em"},".subtitle":{textAlign:"center",fontSize:"medium",fontWeight:"bold",marginTop:0},".TODO":{color:"red.500"},".equationContainer":{display:"table",textAlign:"center",width:"100%"},".equation":{verticalAlign:"middle"},".equation-label":{display:"tableCell",textAlign:"right",verticalAlign:"middle"},".inlinetask":{padding:"10px",border:"2px solid gray",margin:"10px",background:"#ffffcc"},"#org-div-home-and-up":{textAlign:"right",fontSize:"70 % ",whiteSpace:"nowrap"},textarea:{overflowX:"auto"},".linenr":{fontSize:"smaller"},".org-info-js_info-navigation":{borderStyle:"none"},"#org-info-js_console-label":{fontSize:"10px",fontWeight:"bold",whiteSpace:"nowrap"},".org-info-js_search-highlight":{backgroundColor:"#ffff00",color:"#000000",fontWeight:"bold"},".org-svg":{width:"90%"},".DONE":{color:"green"},".priority":{fontFamily:"monospace",color:"orange"},".tag":{backgroundColor:"white",fontFamily:"monospace",padding:"2px",fontSize:"80%",fontWeight:"normal"},".timestamp":{color:"#bebebe"},".timestamp-kwd":{color:"#5f9ea0"},".org-right":{marginLeft:"auto",marginRight:"0px",textAlign:"right"},".org-left":{marginLeft:"0px",marginRight:"auto",textAlign:"left"},".org-center":{marginLeft:"auto",marginRight:"auto",textAlign:"center"},".underline":{textDecoration:"underline"},"#postamble p":{fontSize:"90%",margin:".2em"},"#preamble p":{fontSize:"90%",margin:".2em"},"p.verse":{marginLeft:"3%"},pre:{borderRadius:"3px",backgroundColor:"white",padding:"8pt",fontFamily:"monospace",overflow:"auto",margin:"1.2em"},"pre.src":{position:"relative",overflow:"auto"},"pre.src:before":{display:"none",position:"absolute",top:"-8px",right:"12px",padding:"3px",backgroundColor:"white"},"caption.t-above":{captionSide:"top"},"caption.t-bottom":{captionSide:"bottom"},"th.org-right":{textAlign:"center"},"th.org-left":{textAlign:"center"},"th.org-center":{textAlign:"center"},"td.org-right":{textAlign:"right"},"td.org-left":{textAlign:"left"},"td.org-center":{textAlign:"center"},".footpara":{display:"inline"},".footdef":{marginBottom:"1em"},".figure":{padding:"1em"},".figure p":{textAlign:"center"}},ln=t(86658),sn=function(e,n){return e.split(".").reduce((function(e,n){return e[n]}),n.colors)},cn=["style"];function an(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;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?an(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):an(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var un=function(e){var n=e.noUnderline,t=e.id,r=e.setSidebarHighlightedNode,o=e.setPreviewNode,i=e.nodeById,l=e.openContextMenu,s=e.href,c=e.children,a=e.isWiki,u=(0,v.useContext)(nn.N).highlightColor,h=(0,g.Fg)(),f=sn(u,h),p=(s.replaceAll(/(.*?)\:?.*/g,"$1"),s.replaceAll(/.*?\:(.*)/g,"$1")),x=null!==t&&void 0!==t?t:p,j=a?"[[".concat(c,"]]"):c;return(0,re.jsx)(d.Text,{as:"a",onMouseEnter:function(){return r(i[x])},onMouseLeave:function(){return r({})},tabIndex:0,display:"inline",overflow:"hidden",fontWeight:500,color:u,textDecoration:n?void 0:"underline",onContextMenu:function(e){e.preventDefault(),l(i[p],e)},onClick:function(){return o(i[p])},_hover:{textDecoration:"none",cursor:"pointer",bgColor:f+"22"},_focus:{outlineColor:u},children:j})},hn=function(e){var n=e.href,t=e.children,r=(0,v.useContext)(nn.N).highlightColor;return(0,re.jsxs)(d.Link,{color:r,isExternal:!0,href:n,children:[t,(0,re.jsx)(V.ExternalLinkIcon,{mx:"1px",pb:"2px"})]})},gn=function(e){var n,t=e.href,r=e.children,o=e.nodeById,i=e.setSidebarHighlightedNode,l=e.previewNode,s=e.setPreviewNode,c=e.nodeByCite,a=e.openContextMenu,u=e.outline,h=e.noUnderline,g=e.linksByNodeId,f=e.isWiki,p=e.macros,x=e.attachDir,j=e.useInheritance,b=(0,v.useState)(null),m=b[0],y=b[1],C=(0,v.useState)(!1),w=C[0],O=C[1],k=t.replaceAll(/(.*?)\:.*/g,"$1"),S=u?rn:tn;console.log(l);if((0,v.useEffect)((function(){k.replaceAll(/(http)?.*/g,"$1")||m||w&&fetch("http://localhost:35901/node/".concat(L)).then((function(e){return e.text()})).then((function(e){"error"===e||y(e)})).catch((function(e){return console.log(e),"Could not fetch the text for some reason, sorry!\n\n This can happen because you have an id with forward slashes (/) in it."}))}),[w,m]),!k)return(0,re.jsx)(d.Text,{color:"gray.700",children:r});if(k.replaceAll(/(http)?.*/g,"$1"))return(0,re.jsx)(hn,{href:t,children:r});var I,N,P,D,B=t.replaceAll(/.*?\:(.*)/g,"$1"),L=function(e,n){if("id"===e)return n;if(e.includes("cite")){var t,r=null!==(t=c[n])&&void 0!==t&&t;return r?null!==r&&void 0!==r&&r.properties.FILELESS?"":null===r||void 0===r?void 0:r.id:""}return""}(k,B);encodeURIComponent(encodeURIComponent(null===(n=o[L])||void 0===n?void 0:n.file));return L?(0,re.jsx)(re.Fragment,{children:(0,re.jsxs)(Ye.J2,{gutter:12,trigger:"hover",placement:"top-start",children:[(0,re.jsx)(Ye.xo,{children:(0,re.jsx)(d.Box,{display:"inline",onMouseEnter:function(){return O(!0)},onMouseLeave:function(){return O(!1)},children:(0,re.jsx)(un,{id:L,setSidebarHighlightedNode:i,setPreviewNode:s,nodeById:o,href:t,children:r,nodeByCite:c,openContextMenu:a,noUnderline:h,isWiki:f},null!==(I=null===(N=o[L])||void 0===N?void 0:N.title)&&void 0!==I?I:L)})}),(0,re.jsx)(en.h_,{children:(0,re.jsxs)(Ye.yk,{transform:"scale(1)",boxShadow:"xl",position:"relative",zIndex:"tooltip",onMouseEnter:function(){var e;i(null!==(e=o[L])&&void 0!==e?e:{})},onMouseLeave:function(){i({})},children:[(0,re.jsx)(Ye.QH,{}),(0,re.jsx)(Ye.b,{pb:5,fontSize:"xs",position:"relative",zIndex:"tooltip",transform:"scale(1)",width:"100%",children:(0,re.jsx)(ln.$B,{autoHeight:!0,autoHeightMax:300,autoHide:!0,renderThumbVertical:function(e){var n=e.style,t=(0,q.Z)(e,cn);return(0,re.jsx)(d.Box,dn({style:dn(dn({},n),{},{borderRadius:0})},t))},children:(0,re.jsx)(d.Box,{w:"100%",color:"black",px:3,sx:dn(dn({},on),S),children:(0,re.jsx)(On,{previewText:m,nodeById:o,setSidebarHighlightedNode:i,setPreviewNode:s,nodeByCite:c,openContextMenu:a,outline:u,linksByNodeId:g,macros:p,attachDir:x,useInheritance:j,previewNode:o[L],collapse:!1})})})})]},null!==(P=null===(D=o[L])||void 0===D?void 0:D.title)&&void 0!==P?P:L)})]})}):(0,re.jsx)(d.Text,{as:"span",display:"inline",className:t,color:"base.700",cursor:"not-allowed",children:r})},fn=t(25675),pn=t(62520),xn=t.n(pn),jn=function(e){var n=e.src,t=e.file;if(n.replaceAll(/(http)?.*/g,"$1"))return console.log(n.replaceAll(/(http)?.*/g,"$1")),(0,re.jsx)(fn.default,{layout:"responsive",loader:function(e){var n=e.src;return e.width,e.quality,"".concat(n)},src:n,alt:"",width:"auto",height:"auto"});var r=n.replaceAll(/file:/g,""),o=xn().dirname(t),i=xn().isAbsolute(r)||"~"===r.slice(0,1)?r:xn().join(o,r),l=encodeURIComponent(encodeURIComponent(i));return(0,re.jsx)(d.Container,{my:4,position:"relative",children:(0,re.jsx)("img",{alt:"Wow, an image.",src:"http://localhost:35901/img/".concat(l)})})},vn=t(14578),bn=(0,v.createContext)({outline:!1,collapse:!0}),mn=function(e){var n=e.children,t=e.className,r=(0,v.useState)(!0),o=r[0],i=r[1],l=(0,v.useContext)(bn).collapse;if((0,v.useEffect)((function(){i(!l)}),[l]),"h0Wrapper headingWrapper"===t)return(0,re.jsxs)(d.Box,{className:"preHeadingContent",children:[" ",n]});var s=n;return(0,re.jsxs)(d.Box,{className:"sec",children:[(0,re.jsx)(d.Box,{display:"block",children:(0,re.jsxs)(d.Flex,{className:"headingFlex",alignItems:"baseline",children:[o&&s.length>0?(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(h.IconButton,{className:"viewerHeadingButton",_focus:{},_active:{},"aria-label":"Expand heading",size:"xs",variant:"subtle",icon:(0,re.jsx)(V.ChevronUpIcon,{}),onClick:function(){return i(!o)},height:2,width:2}),(0,re.jsx)(h.IconButton,{className:"outlineHeadingButton",_focus:{},_active:{},"aria-label":"Expand heading",size:"xs",variant:"subtle",icon:(0,re.jsx)(vn.zOz,{}),onClick:function(){return i(!o)},height:2,width:2})]}):(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(h.IconButton,{className:"viewerHeadingButton",_active:{},_focus:{},"aria-label":"Collapse heading",height:2,width:2,size:"xs",variant:"subtle",icon:(0,re.jsx)(V.ChevronDownIcon,{}),onClick:function(){return i(!o)}}),(0,re.jsx)(h.IconButton,{className:"outlineHeadingButton",_active:{},_focus:{},"aria-label":"Collapse heading",height:2,width:2,size:"xs",variant:"subtle",icon:(0,re.jsx)(vn.O6Y,{}),onClick:function(){return i(!o)}})]}),s[0]]})}),o&&(0,re.jsx)(d.Box,{className:"sectionContent",children:s.slice(1)})]})};function yn(e){return["object"===typeof e.source?e.source.id:e.source,"object"===typeof e.target?e.target.id:e.target]}function Cn(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 wn(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Cn(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Cn(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var On=function(e){var n,t,r=e.nodeById,o=e.setSidebarHighlightedNode,l=e.setPreviewNode,s=e.previewText,c=e.nodeByCite,a=e.previewNode,u=e.openContextMenu,h=e.outline,f=e.collapse,p=e.linksByNodeId,x=e.macros,j=e.attachDir,b=e.useInheritance;if(!a||!p)return null;var m=we()().use(ke()).use(Be()).use(Te(),{idDir:j||void 0,useInheritance:b}).use(Pe()).use(Ie(),{useSections:!0}),y=(null===(n=p[null===a||void 0===a?void 0:a.id])||void 0===n?void 0:n.reduce((function(e,n){var t=yn(n).filter((function(e){return e!==a.id})).join("");return wn(wn({},e),{},(0,i.Z)({},t,r[t]))}),{}))||{},C=Object.entries(y),w=we()().use(He()).use(qe(),["yaml"]).use(Ge()).use(Me.Z,{permaLinks:Object.keys(y),pageResolver:function(e){var n,t=C.find((function(n){var t;return(null===n||void 0===n||null===(t=n[1])||void 0===t?void 0:t.title)===e}));return[null!==(n=null===t||void 0===t?void 0:t[0])&&void 0!==n?n:""]},hrefTemplate:function(e){return"id:".concat(e)}}).use(Je()).use(_e()).use(Ae()).use($e()),O=".md"===(null===a||void 0===a||null===(t=a.file)||void 0===t?void 0:t.slice(-3)),k=O?w:m,S=(0,v.useMemo)((function(){return k.use(Fe(),{trust:function(e){return["\\htmlId","\\href"].includes(e.command)},macros:wn({"\\eqref":"\\href{###1}{(\\text{#1})}","\\ref":"\\href{###1}{\\text{#1}}","\\label":"\\htmlId{#1}{}"},x)}).use(Re(),{createElement:v.createElement,components:{a:function(e){var n=e.children,t=e.href;return(0,re.jsx)(gn,{nodeByCite:c,setSidebarHighlightedNode:o,href:"".concat(t),nodeById:r,linksByNodeId:p,setPreviewNode:l,openContextMenu:u,outline:h,previewNode:a,isWiki:O,macros:x,attachDir:j,useInheritance:b,children:n})},img:function(e){var n=e.src;return(0,re.jsx)(jn,{src:n,file:null===a||void 0===a?void 0:a.file})},section:function(e){var n=e.children,t=e.className;return t&&t.slice(-1)==="".concat(a.level)?(0,re.jsx)(d.Box,{children:n.slice(1)}):(0,re.jsx)(mn,{outline:h,collapse:f,className:t,children:n})},blockquote:function(e){var n=e.children;return(0,re.jsx)(g.m$.blockquote,{color:"gray.800",bgColor:"gray.300",pt:4,pb:2,mb:4,mt:3,pl:4,borderLeftWidth:4,borderLeftColor:"gray.700",children:n})},p:function(e){var n=e.children;return(0,re.jsx)("p",{lang:"en",children:n})}}})}),[null===a||void 0===a?void 0:a.id]),I=(0,v.useMemo)((function(){return S.processSync(s).result}),[s]);return(0,re.jsx)(bn.Provider,{value:{collapse:f,outline:h},children:I})},kn=function(e){var n=e.openContextMenu,t=e.setSidebarHighlightedNode,r=e.nodeById,o=e.nodeByCite,i=e.previewNode,l=e.setPreviewNode,s=e.outline,c=e.collapse,a=e.linksByNodeId,d=e.macros,u=e.attachDir,h=e.useInheritance,g=(0,v.useState)(""),f=g[0],p=g[1],x=encodeURIComponent(encodeURIComponent(i.id));return(0,v.useEffect)((function(){fetch("http://localhost:35901/node/".concat(x)).then((function(e){return e.text()})).then((function(e){if(""===e)return"(empty node)";"error"!==e&&(console.log(e),p(e))})).catch((function(e){return p("(could not find node)"),console.log(e),"Could not fetch the text for some reason, sorry!\n\n This can happen because you have an id with forward slashes (/) in it."}))}),[i.id]),(0,re.jsx)(re.Fragment,{children:f&&i&&(0,re.jsx)(On,{nodeById:r,previewNode:i,setPreviewNode:l,previewText:f,nodeByCite:o,setSidebarHighlightedNode:t,openContextMenu:n,outline:s,collapse:c,linksByNodeId:a,attachDir:u,useInheritance:h,macros:d||{}})})},Sn=function(e){var n,t=e.previewNode,r=e.setPreviewNode,o=e.setSidebarHighlightedNode,i=e.nodeById,s=e.linksByNodeId,c=e.nodeByCite,a=e.openContextMenu,u=e.outline,h=e.macros,g=e.attachDir,f=e.useInheritance,p=(null!==(n=s[null===t||void 0===t?void 0:t.id])&&void 0!==n?n:[]).filter((function(e){var n=yn(e),r=(0,l.Z)(n,2),o=r[0];r[1];return o!==(null===t||void 0===t?void 0:t.id)})).map((function(e){return e.source}));return(0,re.jsxs)(d.Box,{className:"backlinks",borderRadius:"sm",mt:6,p:4,bg:"white",mb:10,children:[(0,re.jsx)("p",{style:{fontSize:16,fontWeight:600},children:"Linked references (".concat(p.length,")")}),(0,re.jsx)(d.VStack,{py:2,spacing:3,alignItems:"start",divider:(0,re.jsx)(d.StackDivider,{borderColor:"gray.500"}),align:"stretch",color:"gray.800",children:(null===t||void 0===t?void 0:t.id)&&p.map((function(e){var n,l,p;n=null===(l=i[e])||void 0===l?void 0:l.title;return(0,re.jsx)(d.Box,{overflow:"hidden",py:1,borderRadius:"sm",width:"100%",children:(0,re.jsx)(gn,{linksByNodeId:s,nodeByCite:c,setSidebarHighlightedNode:o,href:"id:".concat(e),nodeById:i,previewNode:t,setPreviewNode:r,openContextMenu:a,outline:u,noUnderline:!0,attachDir:g,useInheritance:f,macros:h,children:null===(p=i[e])||void 0===p?void 0:p.title})},e)}))})]})};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 Nn(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?In(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):In(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Pn=function(e){var n=e.setPreviewNode,t=e.justificationList,r=e.justification,o=e.previewNode,i=e.nodeById,l=e.nodeByCite,s=e.setSidebarHighlightedNode,c=e.linksByNodeId,a=e.openContextMenu,u=e.outline,h=e.collapse,g=e.macros,f=e.attachDir,p=e.useInheritance,x=u?rn:tn;return(0,re.jsx)(d.Box,{pr:8,pt:2,height:"100%",className:"org",sx:Nn(Nn(Nn({},on),x),{},{textAlign:t[r]}),children:(null===o||void 0===o?void 0:o.id)&&(0,re.jsxs)(d.Flex,{className:"wrapClass",height:"100%",flexDirection:"column",justifyContent:"space-between",children:[(0,re.jsx)(kn,{setPreviewNode:n,previewNode:o,nodeByCite:l,setSidebarHighlightedNode:s,openContextMenu:a,outline:u,collapse:h,nodeById:i,linksByNodeId:c,macros:g,attachDir:f,useInheritance:p}),(0,re.jsx)(Sn,{setPreviewNode:n,previewNode:o,nodeById:i,linksByNodeId:c,nodeByCite:l,setSidebarHighlightedNode:s,openContextMenu:a,outline:u,attachDir:f,useInheritance:p,macros:g||{}})]})})},Dn=function(e){var n=e.previewNode;return(0,re.jsx)(d.Flex,{maxW:"90%",children:(0,re.jsx)(d.Heading,{lineHeight:1.2,size:"md",fontWeight:600,pt:4,children:null===n||void 0===n?void 0:n.title})})},Bn=t(29119);function Ln(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 Tn(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Ln(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ln(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function zn(e,n){var t,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=Fn(e,null!==(t=r.storage)&&void 0!==t?t:localStorage),i=o.get(),l=void 0!==i?i:n,s=null!=i&&"object"===typeof i&&!1===Array.isArray(i)?Tn(Tn({},n),i):l;s!==i&&o.update(s);var c=(0,v.useState)(s),a=c[0],d=c[1];(0,v.useEffect)((function(){a!==s&&d(s)}),[e]);var u=function(e){e instanceof Function?d((function(n){var t=e(n);return o.update(t),t})):(d(e),o.update(e))};return[a,u]}function Fn(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 En=["style"];function Rn(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 Zn(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Rn(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Rn(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Hn=function(e){var n=e.isOpen,t=e.onOpen,r=e.onClose,o=e.previewNode,i=e.setPreviewNode,s=e.nodeById,c=e.linksByNodeId,a=e.nodeByCite,u=e.setSidebarHighlightedNode,g=e.canUndo,f=e.canRedo,p=e.resetPreviewNode,x=e.previousPreviewNode,j=e.nextPreviewNode,b=e.openContextMenu,m=(e.scope,e.setScope,e.windowWidth),C=e.filter,w=e.setFilter,O=e.tagColors,k=e.setTagColors,S=e.macros,I=e.attachDir,N=e.useInheritance,P=((0,v.useContext)(nn.N).highlightColor,(0,v.useState)()),D=P[0],B=P[1],L=zn("sidebarWidth",400),T=(0,l.Z)(L,2),z=T[0],F=T[1];(0,v.useEffect)((function(){null!==o&&void 0!==o&&o.id?(t(),B(o)):r()}),[null===o||void 0===o?void 0:o.id]);var E=zn("justification",1),R=(0,l.Z)(E,2),Z=R[0],H=R[1],W=zn("outline",!1),A=(0,l.Z)(W,2),M=A[0],V=A[1],_=(0,v.useState)("sans serif"),U=(_[0],_[1]),X=(0,v.useState)(0),G=(X[0],X[1]),Q=(0,v.useState)(!1),J=Q[0],K=Q[1];return(0,re.jsx)(de,{animateOpacity:!1,dimension:"width",in:n,unmountOnExit:!0,startingSize:0,style:{height:"100vh"},children:(0,re.jsx)(Bn.e,{size:{height:"100vh",width:z},onResizeStop:function(e,n,t,r){F((function(e){return e+r.width}))},enable:{top:!1,right:!1,bottom:!1,left:!0,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},minWidth:"220px",maxWidth:m-200,children:(0,re.jsxs)(d.Flex,{flexDir:"column",h:"100vh",pl:2,color:"black",bg:"alt.100",width:"100%",children:[(0,re.jsxs)(d.Flex,{pl:2,alignItems:"center",color:"black",width:"100%",children:[(0,re.jsx)(d.Flex,{pt:1,flexShrink:0,children:(0,re.jsx)(je,{setJustification:H,setIndent:G,setFont:U,justification:Z,setPreviewNode:i,canUndo:g,canRedo:f,resetPreviewNode:p,previousPreviewNode:x,nextPreviewNode:j,outline:M,setOutline:V,collapse:J,setCollapse:K})}),(0,re.jsx)(d.Flex,{whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",onContextMenu:function(e){e.preventDefault(),b(o,e)}}),(0,re.jsx)(d.Flex,{flexDir:"row",ml:"auto",children:(0,re.jsx)(h.IconButton,{m:1,icon:(0,re.jsx)(y.T41,{}),"aria-label":"Options",variant:"subtle",onClick:function(e){b(o,e,{left:void 0,top:12,right:20-m,bottom:void 0})}})})]}),(0,re.jsx)(ln.$B,{autoHide:!0,renderThumbVertical:function(e){var n=e.style,t=(0,q.Z)(e,En);return(0,re.jsx)(d.Box,Zn({style:Zn(Zn({},n),{},{borderRadius:0})},t))},children:D&&(0,re.jsxs)(d.VStack,{flexGrow:1,alignItems:"left",bg:"alt.100",paddingLeft:4,children:[(0,re.jsx)(Dn,{previewNode:D}),(0,re.jsx)(ye,{filter:C,setFilter:w,tagColors:O,setTagColors:k,openContextMenu:b,previewNode:o}),(0,re.jsx)(Pn,{setPreviewNode:i,previewNode:o,nodeById:s,nodeByCite:a,setSidebarHighlightedNode:u,justification:Z,justificationList:["justify","start","end","center"],linksByNodeId:c,openContextMenu:b,outline:M,setOutline:V,collapse:J,macros:S,attachDir:I,useInheritance:N})]})})]})})})},Wn=t(94090),An=t(88696),Mn=t(47647);function Vn(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 _n(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Vn(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Vn(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Un=function(e){var n,t=e.filter,r=e.listName,o=e.labelFilter,l=e.displayName,s=e.setFilter,c=e.options,a=void 0===c?[]:c,d=(0,v.useContext)(nn.N).highlightColor,u=(null===a||void 0===a?void 0:a.map((function(e){return{value:e,label:o?e.replace(o,""):e}})))||[],h=(0,v.useState)((null===(n=t[r])||void 0===n?void 0:n.map((function(e){return{value:e,label:o?null===e||void 0===e?void 0:e.replace(o,""):e}})))||[]),g=h[0],f=h[1];return(0,re.jsx)(Mn.CUIAutoComplete,{labelStyleProps:{fontWeight:300,fontSize:14},items:u,label:"Add tag to ".concat(l),placeholder:" ",onCreateItem:function(e){return null},disableCreateItem:!0,selectedItems:g,onSelectedItemsChange:function(e){e.selectedItems&&(f(e.selectedItems),s(_n(_n({},t),{},(0,i.Z)({},r,e.selectedItems.map((function(e){return e.value}))))))},listItemStyleProps:{overflow:"hidden"},highlightItemBg:"gray.400",toggleButtonStyleProps:{variant:"outline"},inputStyleProps:{mt:2,height:8,focusBorderColor:d,color:"gray.800",borderColor:"gray.500"},tagStyleProps:{justifyContent:"flex-start",fontSize:10,borderColor:d,borderWidth:1,borderRadius:"md",color:d,bg:"",height:4,mb:2},hideToggleButton:!0,itemRenderer:function(e){return e.label}})};function qn(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 Xn(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?qn(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):qn(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Gn=function(e){var n=e.colorList,t=e.tagColors,r=e.setTagColors,o=e.highlightColor,l=e.tags.map((function(e){return{value:e,label:e}})),s=(0,v.useState)(Object.keys(t).map((function(e){return{value:e,label:e}}))),c=s[0],a=s[1];return(0,re.jsxs)(d.Box,{children:[(0,re.jsx)(Mn.CUIAutoComplete,{items:l,labelStyleProps:{fontWeight:300,fontSize:14},label:"Add tag to color",placeholder:" ",disableCreateItem:!0,selectedItems:c,onSelectedItemsChange:function(e){e.selectedItems&&(a(Array.from(new Set(e.selectedItems))),r(Object.fromEntries(Array.from(new Set(e.selectedItems)).map((function(e){var n;return[e.label,null!==(n=t[e.label])&&void 0!==n?n:"gray.600"]})))))},listItemStyleProps:{overflow:"hidden"},highlightItemBg:"gray.400",toggleButtonStyleProps:{variant:"outline"},inputStyleProps:{height:8,focusBorderColor:o,color:"gray.800",borderColor:"gray.500"},tagStyleProps:{display:"none",rounded:"full",bg:o,height:8,paddingLeft:4,fontWeight:"bold"},hideToggleButton:!0,itemRenderer:function(e){return e.label}}),(0,re.jsx)(d.VStack,{spacing:2,justifyContent:"flex-start",divider:(0,re.jsx)(d.StackDivider,{borderColor:"gray.500"}),align:"stretch",color:"gray.800",children:Object.keys(t).map((function(e){return(0,re.jsxs)(d.Flex,{alignItems:"center",justifyContent:"space-between",width:"100%",pl:2,children:[(0,re.jsx)(d.Box,{width:"100%",children:(0,re.jsx)(d.Text,{children:e})}),(0,re.jsxs)(A.v2,{isLazy:!0,placement:"right",children:[(0,re.jsx)(A.j2,{as:h.Button,colorScheme:"",color:"black",children:(0,re.jsx)(d.Box,{bgColor:t[e],borderRadius:"sm",height:6,width:6})}),(0,re.jsx)(en.h_,{children:(0,re.jsx)(A.qy,{minW:10,zIndex:"popover",bgColor:"gray.200",children:n.map((function(n){return(0,re.jsx)(A.sN,{onClick:function(){return r(Xn(Xn({},t),{},(0,i.Z)({},e,n)))},justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,re.jsx)(d.Box,{bgColor:n,borderRadius:"sm",height:6,width:6})},n)}))})})]}),(0,re.jsx)(h.IconButton,{"aria-label":"Delete tag color",variant:"ghost",icon:(0,re.jsx)(V.DeleteIcon,{}),onClick:function(){r(Object.fromEntries(Array.from(new Set(c)).map((function(e){var n;return[e.label,null!==(n=t[e.label])&&void 0!==n?n:"gray.600"]})))),a(c.filter((function(n){return n.value!==e})))}})]},e)}))})]})},Qn=t(80918),Jn=function(e){var n=e.infoText;return(0,re.jsx)(d.Box,{paddingLeft:"1",children:(0,re.jsx)(u.u,{label:n,placement:"top",color:"gray.100",bg:"gray.800",hasArrow:!0,children:(0,re.jsx)(V.InfoOutlineIcon,{})})})},Kn=["min","max","step","value"],$n=function(e){var n=e.min,t=void 0===n?0:n,r=e.max,o=void 0===r?10:r,i=e.step,l=void 0===i?.1:i,s=e.value,c=void 0===s?1:s,a=(0,q.Z)(e,Kn),h=a.onChange,g=a.label,f=a.infoText,p=(0,v.useContext)(nn.N).highlightColor;return(0,re.jsxs)(d.Box,{pt:1,pb:2,children:[(0,re.jsxs)(d.Box,{display:"flex",alignItems:"flex-end",mb:2,children:[(0,re.jsx)(d.Text,{children:g}),f&&(0,re.jsx)(Jn,{infoText:f})]}),(0,re.jsxs)(Qn.iR,{value:c,onChange:h,min:t,max:o,step:l,children:[(0,re.jsx)(Qn.Uj,{children:(0,re.jsx)(Qn.Ms,{})}),(0,re.jsx)(u.u,{bg:p,label:c.toFixed(1),children:(0,re.jsx)(Qn.gs,{bg:"white"})})]})]},g)},Yn=(0,v.createContext)({subDirs:["dailies",".attach"],attachDir:".attach",useInheritance:!1,roamDir:"~/org",dailyDir:"dailies"});function et(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 nt(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?et(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):et(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var tt=function(e){var n=e.filter,t=e.setFilter,r=e.local,o=e.setLocal,i=e.tagColors,l=e.setTagColors,s=e.highlightColor,c=e.colorList,a=e.tags,u=(0,v.useContext)(Yn),g=u.roamDir,f=u.subDirs;return(0,re.jsxs)(d.Box,{children:[(0,re.jsxs)(d.VStack,{spacing:2,justifyContent:"flex-start",divider:(0,re.jsx)(d.StackDivider,{borderColor:"gray.500"}),align:"stretch",paddingLeft:7,color:"gray.800",children:[(0,re.jsxs)(d.Flex,{alignItems:"center",justifyContent:"space-between",children:[(0,re.jsx)(d.Text,{children:"Link children to"}),(0,re.jsxs)(A.v2,{isLazy:!0,placement:"right",children:[(0,re.jsx)(A.j2,{as:h.Button,rightIcon:(0,re.jsx)(V.ChevronDownIcon,{}),colorScheme:"",color:"black",size:"sm",children:function(){switch(n.parent){case"parent":return(0,re.jsx)(d.Text,{children:"File"});case"heading":return(0,re.jsx)(d.Text,{children:"Heading"});default:return(0,re.jsx)(d.Text,{children:"Nothing"})}}()}),(0,re.jsx)(en.h_,{children:(0,re.jsxs)(A.qy,{bgColor:"gray.200",zIndex:"popover",children:[(0,re.jsx)(A.sN,{onClick:function(){return t((function(e){return nt(nt({},e),{},{parent:""})}))},children:"Nothing"}),(0,re.jsx)(A.sN,{onClick:function(){return t((function(e){return nt(nt({},e),{},{parent:"parent"})}))},children:"Parent file node"}),(0,re.jsx)(A.sN,{onClick:function(){return t((function(e){return nt(nt({},e),{},{parent:"heading"})}))},children:"Next highest heading node"})]})})]})]}),(0,re.jsxs)(d.Flex,{justifyContent:"space-between",children:[(0,re.jsx)(d.Text,{children:"Orphans"}),(0,re.jsx)(An.r,{onChange:function(){t((function(e){return nt(nt({},e),{},{orphans:!e.orphans})}))},isChecked:n.orphans})]}),(0,re.jsxs)(d.Flex,{justifyContent:"space-between",children:[(0,re.jsx)(d.Text,{children:"Dailies"}),(0,re.jsx)(An.r,{onChange:function(){t((function(e){return nt(nt({},e),{},{dailies:!e.dailies})}))},isChecked:n.dailies})]}),(0,re.jsxs)(d.Flex,{justifyContent:"space-between",children:[(0,re.jsx)(d.Text,{children:"Org-noter pages"}),(0,re.jsx)(An.r,{onChange:function(){t((function(e){return nt(nt({},e),{},{noter:!e.noter})}))},isChecked:n.noter})]}),(0,re.jsxs)(d.Flex,{justifyContent:"space-between",children:[(0,re.jsx)(d.Text,{children:"Citations without note files"}),(0,re.jsx)(An.r,{onChange:function(){t(nt(nt({},n),{},{filelessCites:!n.filelessCites}))},isChecked:n.filelessCites})]}),(0,re.jsxs)(d.Flex,{justifyContent:"space-between",children:[(0,re.jsx)(d.Text,{children:"Non-existent nodes"}),(0,re.jsx)(An.r,{onChange:function(){l(nt(nt({},i),{},{bad:"white"})),t(nt(nt({},n),{},{bad:!n.bad}))},isChecked:n.bad})]}),(0,re.jsx)($n,{label:"Number of neighbors in local graph",value:r.neighbors,onChange:function(e){return o(nt(nt({},r),{},{neighbors:e}))},min:1,max:5,step:1})]}),(0,re.jsxs)(Wn.UQ,{padding:0,allowToggle:!0,allowMultiple:!0,paddingLeft:3,children:[(0,re.jsxs)(Wn.Qd,{children:[(0,re.jsxs)(Wn.KF,{children:["Directory filters",(0,re.jsx)(Wn.XE,{})]}),(0,re.jsxs)(Wn.Hk,{pr:0,mr:0,children:[(0,re.jsx)(Un,{filter:n,setFilter:t,options:f,displayName:"directory blocklist",listName:"dirsBlocklist",labelFilter:g}),(0,re.jsx)(Un,{filter:n,setFilter:t,options:f,displayName:"directory allowlist",listName:"dirsAllowlist",labelFilter:g})]})]}),(0,re.jsxs)(Wn.Qd,{children:[(0,re.jsxs)(Wn.KF,{children:["Tag filters",(0,re.jsx)(Wn.XE,{})]}),(0,re.jsxs)(Wn.Hk,{pr:0,mr:0,children:[(0,re.jsx)(Un,{filter:n,setFilter:t,options:a,displayName:"tag blocklist",listName:"tagsBlacklist"}),(0,re.jsx)(Un,{filter:n,setFilter:t,options:a,displayName:"tag allowlist",listName:"tagsWhitelist"})]})]}),(0,re.jsxs)(Wn.Qd,{children:[(0,re.jsxs)(Wn.KF,{children:["Tag colors",(0,re.jsx)(Wn.XE,{})]}),(0,re.jsx)(Wn.Hk,{pr:0,mr:0,children:(0,re.jsx)(Gn,{tags:a,colorList:c,tagColors:i,setTagColors:l,highlightColor:s})})]})]})]})},rt=t(37496),ot=function(e){var n=e.value,t=e.onChange,r=e.label,o=e.infoText,i=e.children;return(0,re.jsxs)(d.Box,{paddingTop:2,children:[(0,re.jsxs)(d.Box,{display:"flex",justifyContent:"space-between",paddingBottom:2,children:[(0,re.jsxs)(d.Box,{display:"flex",alignItems:"center",children:[(0,re.jsx)(d.Text,{children:r}),o&&(0,re.jsx)(Jn,{infoText:o})]}),(0,re.jsx)(An.r,{isChecked:!!n,onChange:t})]}),(0,re.jsx)(rt.UO,{in:!!n,animateOpacity:!0,children:(0,re.jsx)(d.Box,{paddingLeft:4,paddingTop:2,paddingBottom:2,children:i})})]},r)};function it(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 lt(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?it(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):it(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var st=function(e){var n=e.physics,t=e.setPhysics,r=(0,v.useCallback)((function(e,n,r){t((function(t){return lt(lt({},t),{},(0,i.Z)({},n,e/r))}))}),[]);return(0,re.jsxs)(d.Box,{children:[(0,re.jsxs)(d.VStack,{spacing:2,justifyContent:"flex-start",divider:(0,re.jsx)(d.StackDivider,{borderColor:"gray.500"}),align:"stretch",paddingLeft:7,color:"gray.800",children:[(0,re.jsxs)(ot,{label:"Gravity",value:n.gravityOn,onChange:function(){return t(lt(lt({},n),{},{gravityOn:!n.gravityOn}))},children:[(0,re.jsxs)(d.Flex,{justifyContent:"space-between",children:[(0,re.jsx)(d.Text,{children:"Also in local"}),(0,re.jsx)(An.r,{onChange:function(){t((function(e){return lt(lt({},e),{},{gravityLocal:!e.gravityLocal})}))},isChecked:n.gravityLocal})]}),(0,re.jsx)($n,{label:"Strength",value:10*n.gravity,onChange:function(e){return r(e,"gravity",10)}})]}),(0,re.jsx)($n,{value:-n.charge/100,onChange:function(e){return r(e,"charge",-.01)},label:"Repulsive Force"}),(0,re.jsx)($n,{value:5*n.linkStrength,onChange:function(e){return r(e,"linkStrength",5)},label:"Link Force"}),(0,re.jsx)($n,{label:"Stabilization rate",value:50*n.alphaDecay,onChange:function(e){return r(e,"alphaDecay",50)}})]}),(0,re.jsx)(d.Box,{children:(0,re.jsx)(Wn.UQ,{paddingLeft:3,allowToggle:!0,children:(0,re.jsxs)(Wn.Qd,{children:[(0,re.jsxs)(Wn.KF,{children:[(0,re.jsx)(d.Text,{children:"Advanced"}),(0,re.jsx)(Wn.XE,{marginRight:2})]}),(0,re.jsx)(Wn.Hk,{children:(0,re.jsxs)(d.VStack,{spacing:2,justifyContent:"flex-start",divider:(0,re.jsx)(d.StackDivider,{borderColor:"gray.500"}),align:"stretch",paddingLeft:3,color:"gray.800",children:[(0,re.jsx)(ot,{label:"Collision",infoText:"Perfomance sap, disable if slow",value:n.collision,onChange:function(){return t(lt(lt({},n),{},{collision:!n.collision}))},children:(0,re.jsx)($n,{value:n.collisionStrength/5,onChange:function(e){return r(e,"collisionStrength",.2)},label:"Collision Radius",infoText:"Easy with this one, high values can lead to a real jiggly mess"})}),(0,re.jsx)($n,{label:"Link iterations",value:n.linkIts,onChange:function(e){return r(e,"linkIts",1)},min:0,max:6,step:1,infoText:"How many links down the line the physics of a single node affects (Slow)"}),(0,re.jsx)($n,{label:"Viscosity",value:10*n.velocityDecay,onChange:function(e){return r(e,"velocityDecay",10)}}),(0,re.jsx)(ot,{label:"Center nodes",value:n.centering,onChange:function(){return t(lt(lt({},n),{},{centering:!n.centering}))},infoText:"Keeps the nodes in the center of the viewport. If disabled you can drag the nodes anywhere you want.",children:(0,re.jsx)($n,{label:"Centering Strength",value:n.centeringStrength,max:2,step:.01,onChange:function(e){return r(e,"centeringStrength",1)}})})]})})]})})})]})};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 at(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ct(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ct(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var dt=function(e){var n=e.behavior,t=e.setBehavior,r=e.mouse,o=e.setMouse;return(0,re.jsxs)(d.VStack,{spacing:2,justifyContent:"flex-start",divider:(0,re.jsx)(d.StackDivider,{borderColor:"gray.500"}),align:"stretch",paddingLeft:7,color:"gray.800",children:[(0,re.jsxs)(d.Flex,{alignItems:"center",justifyContent:"space-between",children:[(0,re.jsx)(d.Text,{children:"Preview node"}),(0,re.jsxs)(A.v2,{isLazy:!0,placement:"right",children:[(0,re.jsx)(A.j2,{as:h.Button,rightIcon:(0,re.jsx)(V.ChevronDownIcon,{}),colorScheme:"",color:"black",children:(0,re.jsx)(d.Text,{children:r.preview?r.preview[0].toUpperCase()+r.preview.slice(1):"Never"})}),(0,re.jsxs)(en.h_,{children:[" ",(0,re.jsxs)(A.qy,{bgColor:"gray.200",zIndex:"popover",children:[(0,re.jsx)(A.sN,{onClick:function(){return o(at(at({},r),{},{preview:""}))},children:"Never"}),(0,re.jsx)(A.sN,{onClick:function(){return o(at(at({},r),{},{preview:"click"}))},children:"Click"}),(0,re.jsx)(A.sN,{onClick:function(){return o(at(at({},r),{},{preview:"double"}))},children:"Double Click"})]})]})]})]}),(0,re.jsxs)(d.Flex,{alignItems:"center",justifyContent:"space-between",children:[(0,re.jsxs)(d.Flex,{children:[(0,re.jsx)(d.Text,{children:"Expand Node"}),(0,re.jsx)(Jn,{infoText:"View only the node and its direct neighbors"})]}),(0,re.jsxs)(A.v2,{isLazy:!0,placement:"right",children:[(0,re.jsx)(A.j2,{as:h.Button,rightIcon:(0,re.jsx)(V.ChevronDownIcon,{}),colorScheme:"",color:"black",children:(0,re.jsx)(d.Text,{children:r.local?r.local[0].toUpperCase()+r.local.slice(1):"Never"})}),(0,re.jsxs)(en.h_,{children:[" ",(0,re.jsxs)(A.qy,{zIndex:"popover",bgColor:"gray.200",children:[(0,re.jsx)(A.sN,{onClick:function(){return o(at(at({},r),{},{local:""}))},children:"Never"}),(0,re.jsx)(A.sN,{onClick:function(){return o(at(at({},r),{},{local:"click"}))},children:"Click"}),(0,re.jsx)(A.sN,{onClick:function(){return o(at(at({},r),{},{local:"double"}))},children:"Double Click"}),(0,re.jsx)(A.sN,{onClick:function(){return o(at(at({},r),{},{local:"right"}))},children:"Right Click"})]})]})]})]}),(0,re.jsxs)(d.Flex,{alignItems:"center",justifyContent:"space-between",children:[(0,re.jsx)(d.Text,{children:"Open in Emacs"}),(0,re.jsxs)(A.v2,{isLazy:!0,placement:"right",children:[(0,re.jsx)(A.j2,{as:h.Button,rightIcon:(0,re.jsx)(V.ChevronDownIcon,{}),colorScheme:"",color:"black",children:(0,re.jsx)(d.Text,{children:r.follow?r.follow[0].toUpperCase()+r.follow.slice(1):"Never"})}),(0,re.jsxs)(en.h_,{children:[" ",(0,re.jsxs)(A.qy,{bgColor:"gray.200",zIndex:"popover",children:[(0,re.jsx)(A.sN,{onClick:function(){return o(at(at({},r),{},{follow:""}))},children:"Never"}),(0,re.jsx)(A.sN,{onClick:function(){return o(at(at({},r),{},{follow:"click"}))},children:"Click"}),(0,re.jsx)(A.sN,{onClick:function(){return o(at(at({},r),{},{follow:"double"}))},children:"Double Click"}),(0,re.jsx)(A.sN,{onClick:function(){return o(at(at({},r),{},{follow:"right"}))},children:"Right Click"})]})]})]})]}),(0,re.jsxs)(d.Flex,{alignItems:"center",justifyContent:"space-between",children:[(0,re.jsx)(d.Text,{children:"Follow Emacs by..."}),(0,re.jsxs)(A.v2,{isLazy:!0,placement:"right",children:[(0,re.jsx)(A.j2,{as:h.Button,rightIcon:(0,re.jsx)(V.ChevronDownIcon,{}),colorScheme:"",color:"black",children:(0,re.jsx)(d.Text,{children:n.follow[0].toUpperCase()+n.follow.slice(1)})}),(0,re.jsxs)(en.h_,{children:[" ",(0,re.jsxs)(A.qy,{bgColor:"gray.200",zIndex:"popover",children:[(0,re.jsx)(A.sN,{onClick:function(){return t(at(at({},n),{},{follow:"color"}))},children:"Just coloring the currently opened node"}),(0,re.jsx)(A.sN,{onClick:function(){return t(at(at({},n),{},{follow:"local"}))},children:"Opening the local graph"}),(0,re.jsx)(A.sN,{onClick:function(){return t(at(at({},n),{},{follow:"zoom"}))},children:"Zooming to the current node"})]})]})]})]}),(0,re.jsxs)(d.Flex,{alignItems:"center",justifyContent:"space-between",children:[(0,re.jsxs)(d.Flex,{children:[(0,re.jsx)(d.Text,{children:"Local graph"}),(0,re.jsx)(Jn,{infoText:"When in local mode and clicking a new node, should I add that node's local graph or open the new one?"})]}),(0,re.jsxs)(A.v2,{isLazy:!0,placement:"right",children:[(0,re.jsx)(A.j2,{as:h.Button,rightIcon:(0,re.jsx)(V.ChevronDownIcon,{}),colorScheme:"",color:"black",children:(0,re.jsx)(d.Text,{children:"add"===n.localSame?"Add":"Replace"})}),(0,re.jsxs)(en.h_,{children:[" ",(0,re.jsxs)(A.qy,{bgColor:"gray.200",zIndex:"popover",children:[(0,re.jsx)(A.sN,{onClick:function(){return t(at(at({},n),{},{localSame:"replace"}))},children:"Open that nodes graph"}),(0,re.jsx)(A.sN,{onClick:function(){return t(at(at({},n),{},{localSame:"add"}))},children:"Add node to local graph"})]})]})]})]}),(0,re.jsx)($n,{label:"Zoom speed",value:n.zoomSpeed,min:0,max:4e3,step:100,onChange:function(e){return t(at(at({},n),{},{zoomSpeed:e}))}}),(0,re.jsx)($n,{label:"Zoom padding",value:n.zoomPadding,min:0,max:400,step:1,onChange:function(e){return t(at(at({},n),{},{zoomPadding:e}))},infoText:"How much to zoom out to accomodate all nodes when changing the view."})]})},ut=t(11391);function ht(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 gt(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ht(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ht(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var ft=function(e){var n=e.visuals,t=e.setVisuals;return(0,re.jsx)(d.VStack,{spacing:2,justifyContent:"flex-start",divider:(0,re.jsx)(d.StackDivider,{borderColor:"gray.500"}),align:"stretch",color:"gray.800",children:(0,re.jsx)(d.Box,{children:(0,re.jsx)(ot,{label:"Highlight",onChange:function(){return t((function(e){return gt(gt({},e),{},{highlight:!e.highlight})}))},value:n.highlight,children:(0,re.jsxs)(d.VStack,{spacing:1,justifyContent:"flex-start",divider:(0,re.jsx)(d.StackDivider,{borderColor:"gray.400"}),align:"stretch",paddingLeft:0,children:[(0,re.jsx)($n,{label:"Highlight Link Thickness",value:n.highlightLinkSize,onChange:function(e){return t((function(n){return gt(gt({},n),{},{highlightLinkSize:e})}))}}),(0,re.jsx)($n,{label:"Highlight Node Size",value:n.highlightNodeSize,onChange:function(e){return t((function(n){return gt(gt({},n),{},{highlightNodeSize:e})}))}}),(0,re.jsx)($n,{min:0,max:1,label:"Highlight Fade",value:n.highlightFade,onChange:function(e){return t((function(n){return gt(gt({},n),{},{highlightFade:e})}))}}),(0,re.jsxs)(ot,{label:"Highlight Animation",onChange:function(){t((function(e){return gt(gt({},e),{},{highlightAnim:!e.highlightAnim})}))},value:n.highlightAnim,children:[(0,re.jsx)($n,{label:"Animation speed",onChange:function(e){return t((function(n){return gt(gt({},n),{},{animationSpeed:e})}))},value:n.animationSpeed,infoText:"Slower speed has a chance of being buggy",min:50,max:1e3,step:10}),(0,re.jsx)(ut.Ph,{placeholder:n.algorithmName,onChange:function(e){t((function(n){return gt(gt({},n),{},{algorithmName:e.target.value})}))},children:n.algorithmOptions.map((function(e){return(0,re.jsx)("option",{value:e,children:e},e)}))})]})]})})})})};function pt(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 xt(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?pt(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):pt(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var jt=function(e){var n=e.label,t=e.colorList,r=e.value,o=e.visValue,l=e.setVisuals,s=e.noEmpty,c=(0,v.useCallback)((function(e){return l((function(n){return xt(xt({},n),{},(0,i.Z)({},r,e))}))}),[]);return(0,re.jsxs)(d.Flex,{alignItems:"center",justifyContent:"space-between",children:[(0,re.jsx)(d.Text,{children:n}),(0,re.jsxs)(Ye.J2,{isLazy:!0,placement:"right",children:[(0,re.jsx)(Ye.xo,{children:(0,re.jsx)(h.Button,{colorScheme:"",color:"black",rightIcon:(0,re.jsx)(V.ChevronDownIcon,{}),children:(0,re.jsx)(d.Box,{bgColor:o,borderRadius:"sm",height:6,width:6})})}),(0,re.jsx)(en.h_,{children:(0,re.jsx)(Ye.yk,{zIndex:"tooltip",maxW:36,position:"relative",children:(0,re.jsxs)(d.Flex,{flexWrap:"wrap",bgColor:"gray.200",children:[!s&&(0,re.jsx)(d.Box,{onClick:function(){return c("")},justifyContent:"space-between",alignItems:"center",display:"flex",m:1,children:(0,re.jsx)(d.Box,{height:6,width:6,borderColor:"gray.600",borderRadius:"xl",borderWidth:1})}),t.map((function(e){return(0,re.jsx)(d.Box,{m:1,onClick:function(){return c(e)},justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,re.jsx)(d.Box,{bgColor:e,borderRadius:"xl",height:6,width:6})},e)}))]})})})]})]})};function vt(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;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?vt(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):vt(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var mt=function(e){var n=e.visuals,t=e.setVisualsCallback,r=e.highlightColor,i=e.setHighlightColor;return(0,re.jsx)(d.VStack,{spacing:2,justifyContent:"flex-start",divider:(0,re.jsx)(d.StackDivider,{borderColor:"gray.500"}),align:"stretch",color:"gray.800",children:(0,re.jsxs)(d.Box,{children:[(0,re.jsxs)(d.Flex,{alignItems:"center",justifyContent:"space-between",children:[(0,re.jsx)(d.Text,{children:"Nodes"}),(0,re.jsx)(u.u,{label:"Shuffle node colors",children:(0,re.jsx)(h.IconButton,{"aria-label":"Shuffle node colors",size:"sm",icon:(0,re.jsx)(V.RepeatIcon,{}),variant:"ghost",onClick:function(){var e,r=null!==(e=n.nodeColorScheme)&&void 0!==e?e:[];t(bt(bt({},n),{},{nodeColorScheme:r.map((function(e){return[Math.random(),e]})).sort((function(e,n){return(0,l.Z)(e,1)[0]-(0,l.Z)(n,1)[0]})).map((function(e){var n=(0,l.Z)(e,2);n[0];return n[1]}))}))}})}),(0,re.jsx)(u.u,{label:"Cycle node colors",children:(0,re.jsx)(h.IconButton,{"aria-label":"Shift node colors",icon:(0,re.jsx)(V.ArrowRightIcon,{}),size:"sm",variant:"ghost",onClick:function(){var e,r=null!==(e=n.nodeColorScheme)&&void 0!==e?e:[];t(bt(bt({},n),{},{nodeColorScheme:[].concat((0,o.Z)(r.slice(1,r.length)),[r[0]])}))}})}),(0,re.jsxs)(A.v2,{isLazy:!0,placement:"right",closeOnSelect:!1,matchWidth:!0,children:[(0,re.jsx)(A.j2,{width:20,as:h.Button,colorScheme:"",color:"black",rightIcon:(0,re.jsx)(V.ChevronDownIcon,{}),children:(0,re.jsx)(d.Flex,{height:6,width:6,flexDirection:"column",flexWrap:"wrap",children:n.nodeColorScheme.map((function(e){return(0,re.jsx)(d.Box,{bgColor:e,flex:"1 1 8px",borderRadius:"2xl"},e)}))})}),(0,re.jsxs)(en.h_,{children:[" ",(0,re.jsx)(A.qy,{minW:10,zIndex:"popover",bgColor:"gray.200",children:(0,re.jsx)(A.__,{width:500,type:"checkbox",defaultValue:n.nodeColorScheme,onChange:function(e){e.length&&t(bt(bt({},n),{},{nodeColorScheme:e}))},children:W.map((function(e){return(0,re.jsx)(A.ii,{isChecked:n.nodeColorScheme.some((function(n){return n===e})),value:e,isDisabled:1===n.nodeColorScheme.length&&n.nodeColorScheme[0]===e,children:(0,re.jsx)(d.Box,{justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,re.jsx)(d.Box,{bgColor:e,borderRadius:"sm",height:6,width:6})})},e)}))})})]})]})]}),(0,re.jsxs)(d.Flex,{alignItems:"center",justifyContent:"space-between",children:[(0,re.jsx)(d.Text,{children:"Links"}),(0,re.jsxs)(A.v2,{isLazy:!0,placement:"right",children:[(0,re.jsx)(A.j2,{as:h.Button,colorScheme:"",color:"black",rightIcon:(0,re.jsx)(V.ChevronDownIcon,{}),children:(0,re.jsx)(d.Box,{children:n.linkColorScheme?(0,re.jsx)(d.Box,{bgColor:n.linkColorScheme,borderRadius:"sm",height:6,width:6}):(0,re.jsx)(d.Flex,{height:6,width:6,flexDirection:"column",flexWrap:"wrap",children:n.nodeColorScheme.map((function(e){return(0,re.jsx)(d.Box,{bgColor:e,flex:"1 1 8px",borderRadius:"2xl"},e)}))})})}),(0,re.jsxs)(en.h_,{children:[" ",(0,re.jsxs)(A.qy,{minW:10,zIndex:"popover",bgColor:"gray.200",children:[(0,re.jsx)(A.sN,{onClick:function(){return t(bt(bt({},n),{},{linkColorScheme:""}))},justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,re.jsx)(d.Flex,{height:6,width:6,flexDirection:"column",flexWrap:"wrap",children:n.nodeColorScheme.map((function(e){return(0,re.jsx)(d.Box,{bgColor:e,flex:"1 1 8px",borderRadius:"2xl"},e)}))})}),W.map((function(e){return(0,re.jsx)(A.sN,{onClick:function(){return t(bt(bt({},n),{},{linkColorScheme:e}))},justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,re.jsx)(d.Box,{bgColor:e,borderRadius:"sm",height:6,width:6})},e)}))]})]})]})]}),(0,re.jsxs)(d.Flex,{alignItems:"center",justifyContent:"space-between",children:[(0,re.jsx)(d.Text,{children:"Accent"}),(0,re.jsxs)(A.v2,{isLazy:!0,placement:"right",children:[(0,re.jsx)(A.j2,{as:h.Button,colorScheme:"",color:"black",rightIcon:(0,re.jsx)(V.ChevronDownIcon,{}),children:(0,re.jsx)(d.Box,{bgColor:r,borderRadius:"sm",height:6,width:6})}),(0,re.jsxs)(en.h_,{children:[" ",(0,re.jsx)(A.qy,{minW:10,zIndex:"popover",bgColor:"gray.200",children:W.map((function(e){return(0,re.jsx)(A.sN,{onClick:function(){return i(e)},justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,re.jsx)(d.Box,{bgColor:e,borderRadius:"sm",height:6,width:6})},e)}))})]})]})]}),(0,re.jsx)(jt,{colorList:W,label:"Link highlight",setVisuals:t,value:"linkHighlight",visValue:n.linkHighlight}),(0,re.jsx)(jt,{colorList:W,label:"Node highlight",setVisuals:t,value:"nodeHighlight",visValue:n.nodeHighlight}),(0,re.jsx)(jt,{colorList:W,label:"Background",setVisuals:t,value:"backgroundColor",visValue:n.backgroundColor}),(0,re.jsx)(jt,{colorList:W,label:"Emacs node",setVisuals:t,value:"emacsNodeColor",visValue:n.emacsNodeColor})]})})};function yt(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 Ct(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?yt(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):yt(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var wt=function(e){var n=e.visuals,t=e.setVisuals,r=e.threeDim;return(0,re.jsx)(d.VStack,{spacing:2,justifyContent:"flex-start",divider:(0,re.jsx)(d.StackDivider,{borderColor:"gray.500"}),align:"stretch",color:"gray.800",children:(0,re.jsxs)(d.Box,{children:[(0,re.jsx)($n,{label:"Node size",value:n.nodeRel,onChange:function(e){return t(Ct(Ct({},n),{},{nodeRel:e}))}}),(0,re.jsx)($n,{label:"Node degree size multiplier",value:n.nodeSizeLinks,min:0,max:2,onChange:function(e){return t(Ct(Ct({},n),{},{nodeSizeLinks:e}))}}),(0,re.jsx)($n,{label:"Node zoom invariance",value:n.nodeZoomSize,min:0,max:2,infoText:"How much the graph will try to keep the nodesize consistent across zoom scales. 0 is no consistency, node will always be their true size, 1 is linear, 2 is quadratic.",onChange:function(e){return t((function(n){return Ct(Ct({},n),{},{nodeZoomSize:e})}))}}),r&&(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)($n,{label:"Node opacity",value:n.nodeOpacity,min:0,max:1,onChange:function(e){return t(Ct(Ct({},n),{},{nodeOpacity:e}))}}),(0,re.jsx)($n,{label:"Node resolution",value:n.nodeResolution,min:5,max:32,step:1,onChange:function(e){return t(Ct(Ct({},n),{},{nodeResolution:e}))}})]}),(0,re.jsx)($n,{label:"Link width",value:n.linkWidth,onChange:function(e){return t(Ct(Ct({},n),{},{linkWidth:e}))}}),r&&(0,re.jsx)($n,{label:"Link opacity",min:0,max:1,value:n.linkOpacity,onChange:function(e){return t(Ct(Ct({},n),{},{linkOpacity:e}))}}),(0,re.jsxs)(ot,{label:"Link arrows",value:n.arrows,onChange:function(){return t(Ct(Ct({},n),{},{arrows:!n.arrows}))},children:[(0,re.jsx)($n,{label:"Arrow size",value:n.arrowsLength/10,onChange:function(e){return t(Ct(Ct({},n),{},{arrowsLength:10*e}))}}),(0,re.jsx)($n,{label:"Arrow Position",value:n.arrowsPos,min:0,max:1,step:.01,onChange:function(e){return t(Ct(Ct({},n),{},{arrowsPos:e}))}}),(0,re.jsx)(jt,{colorList:W,label:"Arrow Color",setVisuals:t,value:"arrowsColor",visValue:n.arrowsColor},"arrow")]}),(0,re.jsxs)(ot,{label:"Directional Particles",value:n.particles,onChange:function(){return t(Ct(Ct({},n),{},{particles:!n.particles}))},children:[(0,re.jsx)($n,{label:"Particle Number",value:n.particlesNumber,max:5,step:1,onChange:function(e){return t(Ct(Ct({},n),{},{particlesNumber:e}))}}),(0,re.jsx)($n,{label:"Particle Size",value:n.particlesWidth,onChange:function(e){return t(Ct(Ct({},n),{},{particlesWidth:e}))}})]})]})})};function Ot(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 kt(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Ot(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ot(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var St=function(e){var n=e.visuals,t=e.setVisuals;return(0,re.jsxs)(d.VStack,{spacing:2,justifyContent:"flex-start",divider:(0,re.jsx)(d.StackDivider,{borderColor:"gray.400"}),align:"stretch",color:"gray.800",children:[(0,re.jsxs)(d.Flex,{alignItems:"center",justifyContent:"space-between",children:[(0,re.jsx)(d.Text,{children:"Show labels"}),(0,re.jsxs)(A.v2,{isLazy:!0,placement:"right",children:[(0,re.jsx)(A.j2,{as:h.Button,colorScheme:"",color:"black",rightIcon:(0,re.jsx)(V.ChevronDownIcon,{}),children:n.labels?n.labels<2?"On Highlight":"Always":"Never"}),(0,re.jsxs)(en.h_,{children:[" ",(0,re.jsxs)(A.qy,{zIndex:"popover",bgColor:"gray.200",children:[(0,re.jsx)(A.sN,{onClick:function(){return t(kt(kt({},n),{},{labels:0}))},children:"Never"}),(0,re.jsx)(A.sN,{onClick:function(){return t(kt(kt({},n),{},{labels:1}))},children:"On Highlight"}),(0,re.jsx)(A.sN,{onClick:function(){return t(kt(kt({},n),{},{labels:2}))},children:"Always"}),(0,re.jsx)(A.sN,{onClick:function(){return t(kt(kt({},n),{},{labels:3}))},children:"Always (even in 3D)"})]})]})]})]}),(0,re.jsxs)(rt.UO,{in:n.labels>1,animateOpacity:!0,children:[(0,re.jsx)(d.Box,{paddingTop:2,children:(0,re.jsx)($n,{label:"Label Appearance Scale",value:2*n.labelScale,onChange:function(e){return t(kt(kt({},n),{},{labelScale:e/2}))}})}),(0,re.jsxs)(d.Box,{paddingTop:2,children:[(0,re.jsx)($n,{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 kt(kt({},n),{},{labelDynamicStrength:e})}))}}),(0,re.jsx)(rt.UO,{in:n.labelDynamicStrength>0,children:(0,re.jsx)($n,{label:"Dynamic zoom degree cap",infoText:"The maximum number of links that is considered for the 'dynamic zoom effect'. Past this number all number of links are treated the same.",value:n.labelDynamicDegree,min:1,max:15,step:1,onChange:function(e){return t((function(n){return kt(kt({},n),{},{labelDynamicDegree:e})}))}})})]})]}),(0,re.jsx)(jt,{colorList:W,label:"Text",setVisuals:t,value:"labelTextColor",visValue:n.labelTextColor}),(0,re.jsxs)(d.Box,{children:[(0,re.jsx)(jt,{colorList:W,label:"Background",setVisuals:t,value:"labelBackgroundColor",visValue:n.labelBackgroundColor}),(0,re.jsx)(rt.UO,{in:!!n.labelBackgroundColor,animateOpacity:!0,children:(0,re.jsx)(d.Box,{paddingTop:2,children:(0,re.jsx)($n,{label:"Background opacity",value:n.labelBackgroundOpacity,onChange:function(e){console.log(n.labelBackgroundOpacity),t(kt(kt({},n),{},{labelBackgroundOpacity:e}))},min:0,max:1,step:.01})})})]}),(0,re.jsx)($n,{label:"Label font size",value:n.labelFontSize,min:5,max:20,step:.5,onChange:function(e){return t(kt(kt({},n),{},{labelFontSize:e}))}}),(0,re.jsx)($n,{label:"Max. label characters",value:n.labelLength,min:10,max:100,step:1,onChange:function(e){return t(kt(kt({},n),{},{labelLength:e}))}}),(0,re.jsx)($n,{label:"Max. label line length",value:n.labelWordWrap,min:10,max:100,step:1,onChange:function(e){return t(kt(kt({},n),{},{labelWordWrap:e}))}}),(0,re.jsx)($n,{label:"Space between label lines",value:n.labelLineSpace,min:.2,max:3,step:.1,onChange:function(e){return t(kt(kt({},n),{},{labelLineSpace:e}))}})]})},It=t(67690),Nt=function(){var e=(0,v.useContext)(nn.N),n=e.emacsTheme,t=e.setEmacsTheme;e.highlightColor;return(0,re.jsxs)(d.Flex,{alignItems:"center",justifyContent:"space-between",pl:7,pr:2,children:[(0,re.jsx)(d.Text,{children:"Theme"}),(0,re.jsxs)(A.v2,{isLazy:!0,placement:"bottom",closeOnSelect:!1,children:[(0,re.jsx)(A.j2,{as:h.Button,size:"sm",colorScheme:"",color:"black",rightIcon:(0,re.jsx)(V.ChevronDownIcon,{}),children:n[0]}),(0,re.jsxs)(A.qy,{minW:10,zIndex:"popover",bgColor:"gray.200",children:[(0,re.jsx)(A.sN,{onClick:function(){return""},justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,re.jsx)(d.Box,{height:6,width:6})}),Object.keys(It.n).map((function(e,n){return(0,re.jsxs)(A.sN,{onClick:function(){return t([e,It.n[e]])},justifyContent:"space-between",alignItems:"center",display:"flex",children:[(0,re.jsx)(d.Text,{children:e}),(0,re.jsx)(d.Flex,{height:6,width:20,flexDirection:"column",flexWrap:"wrap",children:Object.values(It.n[e]).map((function(e){return(0,re.jsx)(d.Box,{bgColor:e,flex:"1 1 8px"},e)}))})]},e)}))]})]})]})};function Pt(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 Dt(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Pt(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Pt(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Bt=function(e){var n=e.visuals,t=e.setVisuals;return(0,re.jsx)(d.VStack,{spacing:2,justifyContent:"flex-start",divider:(0,re.jsx)(d.StackDivider,{borderColor:"gray.500"}),align:"stretch",color:"gray.800",children:(0,re.jsxs)(d.Box,{children:[(0,re.jsxs)(ot,{label:"Dash cite links",infoText:"Add dashes to citation links made with org-roam-bibtex",value:n.citeDashes,onChange:function(){return t(Dt(Dt({},n),{},{citeDashes:!n.citeDashes}))},children:[(0,re.jsx)($n,{label:"Dash length",value:n.citeDashLength/10,onChange:function(e){return t(Dt(Dt({},n),{},{citeDashLength:10*e}))}}),(0,re.jsx)($n,{label:"Gap length",value:n.citeGapLength/5,onChange:function(e){return t(Dt(Dt({},n),{},{citeGapLength:5*e}))}})]}),(0,re.jsx)(jt,{colorList:W,label:"Citation node color",setVisuals:t,value:"citeNodeColor",visValue:n.citeNodeColor}),(0,re.jsx)(jt,{colorList:W,label:"Citation link color",setVisuals:t,value:"citeLinkColor",visValue:n.citeLinkColor}),(0,re.jsx)(jt,{colorList:W,label:"Reference link highlight",setVisuals:t,value:"citeLinkHighlightColor",visValue:n.citeLinkHighlightColor}),(0,re.jsxs)(ot,{label:"Dash ref links",infoText:"Add dashes to citation links, whose target has a note, made with org-roam-bibtex",value:n.refDashes,onChange:function(){return t(Dt(Dt({},n),{},{refDashes:!n.refDashes}))},children:[(0,re.jsx)($n,{label:"Dash length",value:n.refDashLength/10,onChange:function(e){return t(Dt(Dt({},n),{},{refDashLength:10*e}))}}),(0,re.jsx)($n,{label:"Gap length",value:n.refGapLength/5,onChange:function(e){return t(Dt(Dt({},n),{},{refGapLength:5*e}))}})]}),(0,re.jsx)(jt,{colorList:W,label:"Reference node color",setVisuals:t,value:"refNodeColor",visValue:n.refNodeColor}),(0,re.jsx)(jt,{colorList:W,label:"Reference link color",setVisuals:t,value:"refLinkColor",visValue:n.refLinkColor}),(0,re.jsx)(jt,{colorList:W,label:"Reference link highlight",setVisuals:t,value:"refLinkHighlightColor",visValue:n.refLinkHighlightColor})]})})};function Lt(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 Tt(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Lt(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Lt(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var zt=function(e){var n=e.coloring,t=e.setColoring;return(0,re.jsxs)(d.Flex,{alignItems:"center",justifyContent:"space-between",pl:7,pr:2,children:[(0,re.jsx)(d.Text,{children:"Graph coloring"}),(0,re.jsxs)(A.v2,{isLazy:!0,placement:"right",children:[(0,re.jsx)(A.j2,{as:h.Button,size:"sm",colorScheme:"",color:"black",rightIcon:(0,re.jsx)(V.ChevronDownIcon,{}),children:"degree"===n.method?"Links":"Communities"}),(0,re.jsx)(en.h_,{children:(0,re.jsxs)(A.qy,{minW:10,zIndex:"popover",bgColor:"gray.200",children:[(0,re.jsx)(A.sN,{onClick:function(){return t((function(e){return Tt(Tt({},e),{},{method:"degree"})}))},justifyContent:"space-between",alignItems:"center",display:"flex",children:"Number of links"}),(0,re.jsx)(A.sN,{onClick:function(){return t((function(e){return Tt(Tt({},e),{},{method:"community"})}))},justifyContent:"space-between",alignItems:"center",display:"flex",children:"Communities"})]})})]})]})},Ft=function(e){var n=e.coloring,t=e.setColoring,r=e.visuals,o=e.setVisuals,i=e.highlightColor,l=e.setHighlightColor,s=e.threeDim,c=(0,v.useCallback)((function(e){return o(e)}),[]);return(0,re.jsxs)(d.VStack,{justifyContent:"flex-start",align:"stretch",children:[(0,re.jsx)(Nt,{}),(0,re.jsx)(zt,{coloring:n,setColoring:t}),(0,re.jsxs)(Wn.UQ,{allowToggle:!0,defaultIndex:[0],paddingLeft:3,children:[(0,re.jsxs)(Wn.Qd,{children:[(0,re.jsx)(Wn.KF,{children:(0,re.jsxs)(d.Flex,{justifyContent:"space-between",w:"100%",children:[(0,re.jsx)(d.Text,{children:"Colors"}),(0,re.jsx)(Wn.XE,{marginRight:2})]})}),(0,re.jsx)(Wn.Hk,{children:(0,re.jsx)(mt,{visuals:r,setVisualsCallback:c,highlightColor:i,setHighlightColor:l})})]}),(0,re.jsxs)(Wn.Qd,{children:[(0,re.jsx)(Wn.KF,{children:(0,re.jsxs)(d.Flex,{justifyContent:"space-between",w:"100%",children:[(0,re.jsx)(d.Text,{children:"Nodes & Links"}),(0,re.jsx)(Wn.XE,{marginRight:2})]})}),(0,re.jsx)(Wn.Hk,{children:(0,re.jsx)(wt,{visuals:r,setVisuals:c,threeDim:s})})]}),(0,re.jsxs)(Wn.Qd,{children:[(0,re.jsx)(Wn.KF,{children:(0,re.jsxs)(d.Flex,{justifyContent:"space-between",w:"100%",children:[(0,re.jsx)(d.Text,{children:"Labels"}),(0,re.jsx)(Wn.XE,{marginRight:2})]})}),(0,re.jsx)(Wn.Hk,{children:(0,re.jsx)(St,{visuals:r,setVisuals:c})})]}),(0,re.jsxs)(Wn.Qd,{children:[(0,re.jsx)(Wn.KF,{children:(0,re.jsxs)(d.Flex,{justifyContent:"space-between",w:"100%",children:[(0,re.jsx)(d.Text,{children:"Highlighting"}),(0,re.jsx)(Wn.XE,{marginRight:2})]})}),(0,re.jsx)(Wn.Hk,{children:(0,re.jsx)(ft,{visuals:r,setVisuals:c})})]}),(0,re.jsxs)(Wn.Qd,{children:[(0,re.jsx)(Wn.KF,{children:(0,re.jsxs)(d.Flex,{justifyContent:"space-between",w:"100%",children:[(0,re.jsx)(d.Text,{children:"Citations"}),(0,re.jsx)(Wn.XE,{marginRight:2})]})}),(0,re.jsx)(Wn.Hk,{children:(0,re.jsx)(Bt,{visuals:r,setVisuals:c})})]})]})]})},Et=["style"];function Rt(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 Zt(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Rt(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Rt(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Ht=function(e){var n=e.physics,t=e.setPhysics,r=e.threeDim,o=e.setThreeDim,i=e.filter,s=e.setFilter,c=e.visuals,a=e.setVisuals,g=e.mouse,f=e.setMouse,p=e.behavior,x=e.setBehavior,j=e.tags,b=e.tagColors,m=e.setTagColors,y=e.coloring,C=e.setColoring,w=e.local,O=e.setLocal,k=zn("showTweaks",!1),S=(0,l.Z)(k,2),I=S[0],N=S[1],P=(0,v.useContext)(nn.N),D=P.highlightColor,B=P.setHighlightColor;return I?(0,re.jsxs)(d.Box,{position:"absolute",bg:"alt.100",w:"xs",marginTop:2,marginLeft:2,borderRadius:"lg",paddingBottom:5,zIndex:10,boxShadow:"xl",maxH:"95vh",fontSize:"sm",children:[(0,re.jsxs)(d.Box,{display:"flex",justifyContent:"space-between",alignItems:"center",paddingRight:2,paddingTop:1,children:[(0,re.jsx)(u.u,{label:"2D",children:(0,re.jsx)(h.Button,{onClick:function(){return o(!r)},variant:"subtle",zIndex:"overlay",children:r?"3D":"2D"})}),(0,re.jsxs)(d.Box,{display:"flex",alignItems:"center",children:[(0,re.jsx)(u.u,{label:"Reset settings to defaults",children:(0,re.jsx)(h.IconButton,{"aria-label":"Reset Defaults",icon:(0,re.jsx)(V.RepeatClockIcon,{}),onClick:function(){a(E),s(z),f(Z),t(T),x(R),C(F),B("purple.500"),O(H)},variant:"subtle",size:"sm"})}),(0,re.jsx)(h.IconButton,{size:"sm",icon:(0,re.jsx)(V.CloseIcon,{}),"aria-label":"Close Tweak Panel",variant:"subtle",onClick:function(){return N(!1)}})]})]}),(0,re.jsx)(ln.ZP,{autoHeight:!0,autoHeightMax:.85*globalThis.innerHeight,autoHide:!0,renderThumbVertical:function(e){var n=e.style,t=(0,q.Z)(e,Et);return(0,re.jsx)(d.Box,Zt(Zt({},t),{},{style:Zt(Zt({},n),{},{borderRadius:10}),bg:D}))},children:(0,re.jsxs)(Wn.UQ,{allowMultiple:!0,allowToggle:!0,color:"black",children:[(0,re.jsxs)(Wn.Qd,{children:[(0,re.jsxs)(Wn.KF,{children:[(0,re.jsx)(Wn.XE,{marginRight:2}),(0,re.jsx)(d.Heading,{size:"sm",children:"Filter"})]}),(0,re.jsx)(Wn.Hk,{children:(0,re.jsx)(tt,{filter:i,setFilter:s,tagColors:b,setTagColors:m,highlightColor:D,colorList:W,tags:j,local:w,setLocal:O})})]}),(0,re.jsxs)(Wn.Qd,{children:[(0,re.jsx)(Wn.KF,{display:"flex",justifyContent:"space-between",children:(0,re.jsxs)(d.Box,{display:"flex",children:[(0,re.jsx)(Wn.XE,{marginRight:2}),(0,re.jsx)(d.Heading,{size:"sm",children:"Physics"})]})}),(0,re.jsx)(Wn.Hk,{children:(0,re.jsx)(st,{physics:n,setPhysics:t})})]}),(0,re.jsxs)(Wn.Qd,{children:[(0,re.jsxs)(Wn.KF,{children:[(0,re.jsx)(Wn.XE,{marginRight:2}),(0,re.jsx)(d.Heading,{size:"sm",children:"Visual"})]}),(0,re.jsx)(Wn.Hk,{children:(0,re.jsx)(Ft,{visuals:c,setVisuals:a,highlightColor:D,setHighlightColor:B,threeDim:r,coloring:y,setColoring:C})})]}),(0,re.jsxs)(Wn.Qd,{children:[(0,re.jsxs)(Wn.KF,{children:[(0,re.jsx)(Wn.XE,{marginRight:2}),(0,re.jsx)(d.Heading,{size:"sm",children:"Behavior"})]}),(0,re.jsx)(Wn.Hk,{children:(0,re.jsx)(dt,{behavior:p,setBehavior:x,mouse:g,setMouse:f})})]})]})})]}):(0,re.jsx)(d.Box,{position:"absolute",zIndex:"overlay",marginTop:1,marginLeft:0,display:I?"none":"block",children:(0,re.jsx)(h.IconButton,{variant:"subtle","aria-label":"Settings",icon:(0,re.jsx)(V.SettingsIcon,{}),onClick:function(){return N(!0)}})})},Wt=t(22663),At=t.n(Wt),Mt=t(94244),Vt=function(e){var n,t=e.linksByNodeId,r=e.visuals,o=e.highlightedNodes,i=e.previouslyHighlightedNodes,l=e.opacity,s=e.node,c=null!==(n=t[s.id])&&void 0!==n?n:[],a=c.length?c.filter((function(e){return"parent"===e.type})).length:0,d=3+c.length*r.nodeSizeLinks-(Mt.hX.parent?0:a);return 1===r.highlightNodeSize?d:d*(o[s.id]||i[s.id]?1+l*(r.highlightNodeSize-1):1)};function _t(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(",")+")"}function Ut(e){var n,t,r,i,l=e.labelBackgroundColor,s=e.labelTextColor,c=e.node,a=e.ctx,d=e.globalScale,u=e.highlightedNodes,h=e.previouslyHighlightedNodes,g=e.visuals,f=e.opacity,p=e.filteredLinksByNodeId,x=(e.nodeRel,e.hoverNode),j=e.lastHoverNode;if(c&&g.labels){var v=null!==(n=null===x||void 0===x?void 0:x.id)&&void 0!==n?n:"",b=null!==(t=null===j||void 0===j?void 0:j.id)&&void 0!==t?t:"",m=null!==(r=p[c.id])&&void 0!==r?r:[],y=!(!u[c.id]&&!h[c.id]),C=Math.min(5*(d-g.labelScale)+2*Math.pow(Math.min(m.length,g.labelDynamicDegree),g.labelDynamicStrength),1);if(!(C<.01)||y){var w=null!==(i=c.title)&&void 0!==i?i:"",O=w.substring(0,g.labelLength),k=Math.cbrt(g.nodeRel*Vt({node:c,highlightedNodes:u,linksByNodeId:p,opacity:f,previouslyHighlightedNodes:h,visuals:g})/Math.pow(d,g.nodeZoomSize)),S=g.labelFontSize/Math.cbrt(Math.pow(d,g.nodeZoomSize)),I=[1.1*a.measureText(O).width,S].map((function(e){return e+.5*S})),N=function(e,n,t,r,o){return o?Math.max(e,r):1*e*(-1*(n.highlightFade*r-1))}(C,g,0,f,y);if(g.labelBackgroundColor&&g.labelBackgroundOpacity){var P=_t(l,N*g.labelBackgroundOpacity);a.fillStyle=P,a.fillRect.apply(a,[c.x-I[0]/2,c.y-I[1]/2+k].concat((0,o.Z)(I)))}a.textAlign="center",a.textBaseline="middle";var D=_t(s,N);a.fillStyle=D,a.font="".concat(S,"px Sans-Serif");var B=At()(O,{width:g.labelWordWrap}).split("\n"),L=w.length>g.labelLength?[].concat((0,o.Z)(B.slice(0,-1)),["".concat(B.slice(-1),"...")]):B,T=[v,b].includes(c.id)?1+.3*f:1;L.forEach((function(e,n){a.fillText(e,c.x,c.y+T*k*8+g.labelLineSpace*S*n)}))}}}var qt=function(e){var n,t,r,o,i,l=e.id,s=e.linksByNodeId,c=e.visuals,a=e.coloring,d=e.cluster,u=null!==(n=null===(t=s[l])||void 0===t?void 0:t.length)&&void 0!==n?n:0;return"degree"===a.method?c.nodeColorScheme[(r=u,o=0,i=c.nodeColorScheme.length-1,Math.min(Math.max(r,o),i))]:c.nodeColorScheme[u&&d[l]%c.nodeColorScheme.length]},Xt=function(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)},Gt=function(e){var n=e.sourceId,t=e.targetId,r=e.linksByNodeId,o=e.visuals,i=e.coloring,l=e.cluster;return r[n].length>r[t].length?qt({id:n,linksByNodeId:r,visuals:o,cluster:l,coloring:i}):qt({id:t,visuals:o,linksByNodeId:r,cluster:l,coloring:i})};function Qt(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 Jt(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Qt(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Qt(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Kt=t.e(907).then(t.bind(t,99907)),$t=t.g.window?t(24878).f$:null,Yt=t.g.window?t(24878).s6:null;function er(){var e=(0,v.useState)(!1),n=e[0],t=e[1];return(0,v.useEffect)((function(){t(!0)}),[]),n?(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(j.default,{children:(0,re.jsx)("title",{children:"ORUI"})}),(0,re.jsx)(nr,{})]}):null}function nr(){var e=zn("3d",!1),n=(0,l.Z)(e,2),t=n[0],r=n[1],s=zn("tagCols",{}),c=(0,l.Z)(s,2),g=c[0],f=c[1],x=(0,v.useState)({nodeIds:[],excludedNodeIds:[]}),j=x[0],b=x[1],m=zn("physics",T),O=(0,l.Z)(m,2),S=O[0],I=O[1],N=zn("filter",z),P=(0,l.Z)(N,2),D=P[0],B=P[1],L=zn("visuals",E),W=(0,l.Z)(L,2),A=W[0],M=W[1],V=(0,v.useState)(null),_=V[0],U=V[1],q=(0,v.useState)(null),X=q[0],G=q[1],Q=zn("behavior",R),J=(0,l.Z)(Q,2),K=J[0],$=J[1],Y=zn("mouse",Z),ee=(0,l.Z)(Y,2),ne=ee[0],te=ee[1],oe=zn("coloring",F),ie=(0,l.Z)(oe,2),le=ie[0],se=ie[1],ce=zn("local",H),ae=(0,l.Z)(ce,2),de=ae[0],ue=ae[1],he=(0,k.Z)({}),ge=(0,l.Z)(he,2),pe=ge[0],xe=ge[1],je=xe.set,ve=xe.reset,be=xe.undo,me=xe.redo,ye=xe.canUndo,Ce=xe.canRedo,we=(pe.past,pe.present),Oe=(pe.future,(0,v.useState)(null)),ke=Oe[0],Se=Oe[1],Ie=(0,a.qY)(),Ne=Ie.isOpen,Pe=Ie.onOpen,De=Ie.onClose,Be=(0,v.useRef)({}),Le=(0,v.useRef)({}),Te=(0,v.useRef)({}),ze=(0,v.useRef)([]),Fe=(0,v.useRef)(null),Ee=(0,v.useState)({}),Re=Ee[0],Ze=Ee[1],He=(0,v.useRef)({}),We=(0,v.useRef)({nodes:[],links:[]});(0,v.useEffect)((function(){_&&(We.current=_)}),[_]);var Ae=(0,v.useContext)(nn.N).setEmacsTheme,Me=(0,v.useRef)({nodeIds:[],excludedNodeIds:[]}),Ve=(0,v.useRef)(R);Ve.current=K;var _e=(0,v.useRef)(null);Me.current=j;var Ue=function(e,n){var t,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2e3,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:200;if("color"!==e){var l=Fe.current,s=Me.current,c=Ve.current,a=null!==(t=Le.current[n])&&void 0!==t?t:[],d=Object.fromEntries([n].concat((0,o.Z)(a.flatMap((function(e){return[e.source,e.target]})))).map((function(e){return[e,{}]})));if("zoom"===e)return s.nodeIds.length&&b({nodeIds:[],excludedNodeIds:[]}),void setTimeout((function(){return l.zoomToFit(r,i,(function(e){return d[e.id]}))}),50);if(!s.nodeIds.length)return b((function(e){return Jt(Jt({},e),{},{nodeIds:[n]})})),void setTimeout((function(){l.centerAt(0,0,10),l.zoomToFit(1,i)}),50);if("add"!==c.localSame)return b((function(e){return Jt(Jt({},e),{},{nodeIds:[n]})})),void setTimeout((function(){l.centerAt(0,0,10),l.zoomToFit(1,i)}),50);if(!s.nodeIds.includes(n)||!s.nodeIds.some((function(e){return d[e]})))return b((function(e){return Jt(Jt({},e),{},{nodeIds:[n]})})),void setTimeout((function(){l.centerAt(0,0,10),l.zoomToFit(1,i)}),50);b((function(e){return Jt(Jt({},e),{},{nodeIds:[].concat((0,o.Z)(e.nodeIds),[n])})})),setTimeout((function(){l.centerAt(0,0,10),l.zoomToFit(1,i)}),50)}};(0,v.useEffect)((function(){_e.current=new w.Z("ws://localhost:35903"),_e.current.addEventListener("open",(function(){console.log("Connection with Emacs established")})),_e.current.addEventListener("message",(function(e){var n=Ve.current,t=JSON.parse(e.data);switch(t.type){case"graphdata":return function(e){var n,t,r,s=Be.current;ze.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:[],d=c.reduce((function(e,n){var t;return Jt(Jt({},e),{},(0,i.Z)({},n.file,[].concat((0,o.Z)(null!==(t=e[n.file])&&void 0!==t?t:[]),[n])))}),{}),u=Object.keys(d).flatMap((function(e){var n,t=null!==(n=d[e])&&void 0!==n?n:[],r=t.find((function(e){return 0===e.level})),o=t.filter((function(e){return 0!==e.level}));return r?o.map((function(e){var n=t.filter((function(n){var t,r;return!(n.level>=e.level||n.pos>=e.pos||null===(t=e.olp)||void 0===t||!t.includes(null===(r=n.title)||void 0===r?void 0:r.replace(/ *\[\d*\/\d*\] */g,"")))})).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(d).flatMap((function(e){var n,t=null!==(n=d[e])&&void 0!==n?n:[],r=t.find((function(e){return 0===e.level})),o=t.filter((function(e){return 0!==e.level}));return r?o.map((function(e){return{source:e.id,target:r.id,type:"parent"}})):[]}));Be.current=Object.fromEntries(c.map((function(e){return[e.id,e]})));var g=[].concat((0,o.Z)(a),(0,o.Z)(u),(0,o.Z)(h)),f=[],p=g.map((function(e){var n=e.source,t=e.target;return Be.current[n]?Be.current[t]?e:(f.push({id:t,tags:["bad"],properties:{FILELESS:"yes",bad:"yes"},file:"",title:t,level:0,pos:0,olp:null}),Jt(Jt({},e),{},{type:"bad"})):(f.push({id:n,tags:["bad"],properties:{FILELESS:"yes",bad:"yes"},file:"",title:n,level:0,pos:0,olp:null}),Jt(Jt({},e),{},{type:"bad"}))}));Be.current=Jt(Jt({},Be.current),Object.fromEntries(f.map((function(e){return[e.id,e]})))),Le.current=p.reduce((function(e,n){var t,r,l;return Jt(Jt({},e),{},(l={},(0,i.Z)(l,n.source,[].concat((0,o.Z)(null!==(t=e[n.source])&&void 0!==t?t:[]),[n])),(0,i.Z)(l,n.target,[].concat((0,o.Z)(null!==(r=e[n.target])&&void 0!==r?r:[]),[n])),l))}),{});var x=[].concat((0,o.Z)(c),f);Te.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 o=r.replaceAll(/cite:(.*)/g,"$1");return o?Jt(Jt({},e),{},(0,i.Z)({},o,n)):e}),{});var j={nodes:x,links:p},v=We.current;if(0===v.nodes.length){var b=JSON.parse(JSON.stringify(j));return We.current=b,void U(b)}var m=[].concat((0,o.Z)(v.nodes.flatMap((function(e){var n,t=null!==(n=Be.current[null===e||void 0===e?void 0:e.id])&&void 0!==n&&n;return t?[Jt(Jt({},e),t)]:[]}))),(0,o.Z)(Object.keys(Be.current).filter((function(e){return!s[e]})).map((function(e){return Be.current[e]})))),y=m.reduce((function(e,n,t){var r=null===n||void 0===n?void 0:n.id;return Jt(Jt({},e),{},(0,i.Z)({},r,t))}),{}),C=p.map((function(e){var n=yn(e),t=(0,l.Z)(n,2),r=t[0],o=t[1];return Jt(Jt({},e),{},{source:m[y[r]],target:m[y[o]]})}));U({nodes:m,links:C})}(t.data);case"variables":return Ze(t.data),void console.log(t);case"theme":return Ae(["custom",t.data]);case"command":switch(t.data.commandName){case"local":var r=K.zoomSpeed,s=K.zoomPadding;Ue("local",t.data.id,r,s),G(t.data.id);break;case"zoom":var c,a,d=(null===t||void 0===t||null===(c=t.data)||void 0===c?void 0:c.speed)||n.zoomSpeed,u=(null===t||void 0===t||null===(a=t.data)||void 0===a?void 0:a.padding)||n.zoomPadding;Ue("zoom",t.data.id,d,u),G(t.data.id);break;case"follow":Ue(n.follow,t.data.id,n.zoomSpeed,n.zoomPadding),G(t.data.id);break;case"change-local-graph":var h=Be.current[t.data.id];if(!h)break;console.log(t),sn(h,t.data.manipulation);break;default:return console.error("unknown message type",t.type)}}}))}),[]),(0,v.useEffect)((function(){var e=Fe.current;!e||j.nodeIds.length>1||(j.nodeIds.length||!S.gravityOn?setTimeout((function(){e.zoomToFit(5,200)}),50):e.zoomToFit())}),[j.nodeIds]);var qe=(0,p.iP)(),Xe=(0,l.Z)(qe,2),Ge=Xe[0],Qe=Xe[1],Je=(0,v.useRef)(),Ke=(0,v.useState)(null),$e=Ke[0],Ye=Ke[1],en=(0,v.useState)({left:0,top:0,right:void 0,bottom:void 0}),tn=en[0],rn=en[1],on=(0,a.qY)();(0,a.O3)({ref:Je,handler:function(){on.onClose()}});var ln=function(e,n,t){rn(t||{left:n.pageX,top:n.pageY,right:void 0,bottom:void 0}),Ye(e),on.onOpen()},sn=function(e,n){"remove"!==n?"replace"!==n?j.nodeIds.includes(e.id)||b((function(n){return{excludedNodeIds:n.excludedNodeIds.filter((function(n){return n!==e.id})),nodeIds:[].concat((0,o.Z)(n.nodeIds),[e.id])}})):b({nodeIds:[e.id],excludedNodeIds:[]}):b((function(n){return{nodeIds:n.nodeIds.filter((function(n){return n!==e.id})),excludedNodeIds:[].concat((0,o.Z)(n.excludedNodeIds),[e.id])}}))},cn=zn("mainWindowWidth",Ge),an=(0,l.Z)(cn,2),dn=an[0],un=an[1];return(0,re.jsx)(Yn.Provider,{value:Jt({},Re),children:(0,re.jsxs)(d.Box,{display:"flex",alignItems:"flex-start",flexDirection:"row",height:"100vh",overflow:"clip",children:[(0,re.jsx)(Ht,{physics:S,setPhysics:I,threeDim:t,setThreeDim:r,filter:D,setFilter:B,visuals:A,setVisuals:M,mouse:ne,setMouse:te,behavior:K,setBehavior:$,tagColors:g,setTagColors:f,coloring:le,setColoring:se,local:de,setLocal:ue,tags:ze.current}),(0,re.jsx)(d.Box,{position:"absolute",children:_&&(0,re.jsx)(tr,{nodeById:Be.current,linksByNodeId:Le.current,webSocket:_e.current,variables:Re,physics:S,graphData:_,threeDim:t,emacsNodeId:X,filter:D,visuals:A,behavior:K,mouse:ne,scope:j,setScope:b,tagColors:g,setPreviewNode:je,sidebarHighlightedNode:ke,windowWidth:Ge,windowHeight:Qe,openContextMenu:ln,contextMenu:on,handleLocal:sn,mainWindowWidth:dn,setMainWindowWidth:un,setContextMenuTarget:Ye,graphRef:Fe,clusterRef:He,coloring:le,local:de})}),(0,re.jsx)(d.Box,{position:"relative",zIndex:4,width:"100%",children:(0,re.jsx)(d.Flex,{className:"headerBar",h:10,flexDir:"column",children:(0,re.jsx)(d.Flex,{alignItems:"center",h:10,justifyContent:"flex-end",children:(0,re.jsxs)(d.Flex,{height:"100%",flexDirection:"row",children:[j.nodeIds.length>0&&(0,re.jsx)(u.u,{label:"Return to main graph",children:(0,re.jsx)(h.IconButton,{m:1,icon:(0,re.jsx)(y.DvO,{}),"aria-label":"Exit local mode",onClick:function(){return b((function(e){return Jt(Jt({},e),{},{nodeIds:[]})}))},variant:"subtle"})}),(0,re.jsx)(u.u,{label:Ne?"Close sidebar":"Open sidebar",children:(0,re.jsx)(h.IconButton,{m:1,icon:(0,re.jsx)(C.iBV,{}),"aria-label":"Close file-viewer",variant:"subtle",onClick:Ne?De:Pe})})]})})})}),(0,re.jsx)(d.Box,{position:"relative",zIndex:4,children:(0,re.jsx)(Hn,{isOpen:Ne,onOpen:Pe,onClose:De,previewNode:we,setPreviewNode:je,canUndo:ye,canRedo:Ce,previousPreviewNode:be,nextPreviewNode:me,resetPreviewNode:ve,setSidebarHighlightedNode:Se,openContextMenu:ln,scope:j,setScope:b,windowWidth:Ge,tagColors:g,setTagColors:f,filter:D,setFilter:B,macros:Re.katexMacros,attachDir:Re.attachDir||"",useInheritance:Re.useInheritance||!1,nodeById:Be.current,linksByNodeId:Le.current,nodeByCite:Te.current})}),on.isOpen&&(0,re.jsx)("div",{ref:Je,children:(0,re.jsx)(fe,{scope:j,target:$e,background:!1,coordinates:tn,handleLocal:sn,menuClose:on.onClose.bind(on),webSocket:_e.current,setPreviewNode:je,setFilter:B,filter:D,setTagColors:f,tagColors:g})})]})})}var tr=function(e){var n=e.graphRef,t=e.physics,s=e.graphData,a=e.threeDim,u=e.linksByNodeId,h=e.filter,p=e.emacsNodeId,j=e.nodeById,b=e.visuals,y=e.behavior,C=e.mouse,w=e.scope,k=e.local,S=(e.setScope,e.webSocket),I=e.tagColors,N=e.setPreviewNode,P=e.sidebarHighlightedNode,D=e.windowWidth,B=e.windowHeight,T=(e.setContextMenuTarget,e.openContextMenu),z=e.contextMenu,F=e.handleLocal,E=e.variables,R=e.clusterRef,Z=e.coloring,H=E.dailyDir,A=(E.roamDir,(0,v.useState)(null)),M=A[0],V=A[1],_=(0,g.Fg)(),q=(0,v.useContext)(nn.N).emacsTheme,X=function(e,n,t){switch(e){case C.preview:N(n);break;case C.local:F(n,y.localSame);break;case C.follow:U(n,S);break;case C.context:T(n,t)}},G=(0,v.useRef)(null);(0,v.useEffect)((function(){p&&V(j[p])}),[p]);var Q=(0,v.useRef)({}),J=(0,v.useRef)({}),K=(0,v.useMemo)((function(){var e;J.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,o,l=e;return h.dirsBlocklist.length&&h.dirsBlocklist.some((function(e){var n;return null===l||void 0===l||null===(n=l.file)||void 0===n?void 0:n.includes(e)}))||h.dirsAllowlist.length>0&&!h.dirsAllowlist.some((function(e){var n;return null===l||void 0===l||null===(n=l.file)||void 0===n?void 0:n.includes(e)}))||h.tagsBlacklist.length&&h.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}))||h.tagsWhitelist.length>0&&!h.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}))||h.filelessCites&&null!==l&&void 0!==l&&null!==(n=l.properties)&&void 0!==n&&n.FILELESS||null!==h&&void 0!==h&&h.bad&&null!==l&&void 0!==l&&null!==(t=l.properties)&&void 0!==t&&t.bad||h.dailies&&H&&null!==(r=l.file)&&void 0!==r&&r.includes(H)?(J.current=Jt(Jt({},J.current),{},(0,i.Z)({},l.id,l)),!1):!h.noter||null===(o=l.properties)||void 0===o||!o.NOTER_PAGE||(J.current=Jt(Jt({},J.current),{},(0,i.Z)({},l.id,l)),!1)})).filter((function(e){var n,t=(null!==(n=u[null===e||void 0===e?void 0:e.id])&&void 0!==n?n:[]).filter((function(e){return!J.current[e.source]&&!J.current[e.target]}));return!h.orphans||(h.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=yn(e),r=(0,l.Z)(n,2),o=r[0],i=r[1];if(!t.includes(o)||!t.includes(i))return!1;var s=e;return h.parent?"heading"===h.parent?"parent"!==s.type:"heading"!==s.type:!["parent","heading"].includes(s.type)}));Q.current=r.reduce((function(e,n){var t,r,s,c=n,a=yn(c),d=(0,l.Z)(a,2),u=d[0],h=d[1];return Jt(Jt({},e),{},(s={},(0,i.Z)(s,u,[].concat((0,o.Z)(null!==(t=e[u])&&void 0!==t?t:[]),[c])),(0,i.Z)(s,h,[].concat((0,o.Z)(null!==(r=e[h])&&void 0!==r?r:[]),[c])),s))}),{});var c=r.map((function(e){var n=yn(e),t=(0,l.Z)(n,2);return{target:t[0],source:t[1],weight:"cite"===e.type?1:2}}));if("community"===Z.method){var a=m()().nodes(t).edges(c);R.current=a()}return{nodes:n,links:r}}),[h,s,Z.method]),$=(0,v.useState)({nodes:[],links:[]}),Y=$[0],ee=$[1];(0,v.useEffect)((function(){if(w.nodeIds.length){var e=w.nodeIds.length>1?Y.nodes.filter((function(e){return!w.excludedNodeIds.includes(e.id)})):[],n=e.map((function(e){return e.id})),t=function(e){var n=e.ids,t=e.excludedIds,r=e.n,o=e.linksByNodeId,i=[n[0]],s=[],c=[n[0]];return Array.from({length:r},(function(){i.forEach((function(e){var n;(null!==(n=o[e])&&void 0!==n?n:[]).forEach((function(e){var n=yn(e),r=(0,l.Z)(n,2),o=r[0],i=r[1];t.some((function(e){return[o,i].includes(e)}))||(c.includes(o)?c.includes(i)||s.push(i):s.push(o))}))})),i=s,s.forEach((function(e){return e&&c.push(e)})),s=[]})),c}({ids:w.nodeIds,excludedIds:w.excludedNodeIds,n:k.neighbors,linksByNodeId:Q.current}),r=K.nodes.filter((function(r){var o;return e.length?!n.includes(r.id)&&(null!==(o=Q.current[r.id])&&void 0!==o?o:[]).some((function(e){var n=yn(e),t=(0,l.Z)(n,2),r=t[0],o=t[1];return!w.excludedNodeIds.includes(r)&&!w.excludedNodeIds.includes(o)&&(w.nodeIds.includes(r)||w.nodeIds.includes(o))})):t.includes(r.id)})).map((function(e){return Jt(Jt({},e),{},{x:0,y:0,vy:0,vx:0})})),i=[].concat((0,o.Z)(e),(0,o.Z)(r)),s=i.map((function(e){return e.id})),c=(w.nodeIds.length>1?Y.links:[]).filter((function(e){w.excludedNodeIds.some((function(n){return yn(e).includes(n)}))})),a=K.links.filter((function(e){var t=yn(e),r=(0,l.Z)(t,2),o=r[0],i=r[1];return!(c.length&&n.includes(i)&&n.includes(o))&&(s.includes(o)&&s.includes(i))})).map((function(e){var n=yn(e),t=(0,l.Z)(n,2);return{source:t[0],target:t[1]}})),d=[].concat((0,o.Z)(c),(0,o.Z)(a));ee({nodes:i,links:d})}}),[k.neighbors,h,w,w.excludedNodeIds,w.nodeIds,s,K.links,K.nodes]),(0,v.useEffect)((function(){(0,r.Z)(c().mark((function e(){var r,o;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.current,e.next=3,Kt;case 3:o=e.sent,!t.gravityOn||w.nodeIds.length&&!t.gravityLocal?(r.d3Force("x",null),r.d3Force("y",null),a&&r.d3Force("z",null)):(r.d3Force("x",o.forceX().strength(t.gravity)),r.d3Force("y",o.forceY().strength(t.gravity)),a&&r.d3Force("z",o.forceZ().strength(t.gravity))),t.centering?r.d3Force("center",o.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?o.forceCollide().radius(t.collisionStrength):null);case 10:case"end":return e.stop()}}),e)})))()}),[t,a,w]),(0,v.useEffect)((function(){var e;null===(e=n.current)||void 0===e||e.d3ReheatSimulation()}),[t,w.nodeIds.length]);var ne=(0,v.useRef)(0),te=(0,v.useState)(1),oe=te[0],ie=te[1],le=(0,f._7)((function(e){return ie(e)}),{duration:b.animationSpeed,algorithm:L[b.algorithmName]}),se=(0,l.Z)(le,2),ce=se[0],ae=se[1],de=(0,f._7)((function(e){return ie(Math.min(oe,-1*(e-1)))}),{duration:b.animationSpeed,algorithm:L[b.algorithmName]}),ue=(0,l.Z)(de,2),he=ue[0],ge=ue[1],fe=(0,v.useMemo)((function(){var e;if(!G.current)return{};var n=Q.current[G.current.id];return n?Object.fromEntries([null===(e=G.current)||void 0===e?void 0:e.id].concat((0,o.Z)(n.flatMap((function(e){return[e.source,e.target]})))).map((function(e){return[e,{}]}))):{}}),[G.current,Q.current]);(0,v.useEffect)((function(){null!==P&&void 0!==P&&P.id?V(P):V(null)}),[P]);var pe=(0,v.useRef)(null);(0,v.useEffect)((function(){if(G.current=M,M&&(pe.current=M),!b.highlightAnim)return ie(M?1:0);M?ce():(ae(),oe>.5?he():ie(0))}),[M]);var xe=(0,v.useMemo)((function(){return Object.fromEntries(W.map((function(e){var n=sn(e,_),t=W.map((function(e){return[e,x.Z(n,sn(e,_))]}));return[e,Object.fromEntries(t)]})))}),[q]),je=(0,v.useMemo)((function(){var e,n,t,r=null!==(e=Q.current[null===(n=pe.current)||void 0===n?void 0:n.id])&&void 0!==e?e:[];return Object.fromEntries([null===(t=pe.current)||void 0===t?void 0:t.id].concat((0,o.Z)(r.flatMap((function(e){return yn(e)})))).map((function(e){return[e,{}]})))}),[JSON.stringify(M),pe.current,Q.current]),ve=(0,v.useMemo)((function(){return sn(b.labelTextColor,_)}),[b.labelTextColor,q]),be=(0,v.useMemo)((function(){return sn(b.labelBackgroundColor,_)}),[b.labelBackgroundColor,q]),me=(0,v.useState)(!1),ye=me[0],Ce=me[1],we=(0,v.useRef)(1),Oe={graphData:w.nodeIds.length?Y:K,width:D,height:B,backgroundColor:sn(b.backgroundColor,_),warmupTicks:1===w.nodeIds.length?100:w.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){var n,t,r=e.node,o=e.theme,i=e.highlightedNodes,l=e.previouslyHighlightedNodes,s=e.visuals,c=e.tagColors,a=e.highlightColors,d=e.opacity,u=e.emacsNodeId,h=e.linksByNodeId,g=e.cluster,f=e.coloring,p=i[r.id]||l[r.id];if(s.emacsNodeColor&&r.id===u)return sn(s.emacsNodeColor,o);if(c&&null!==r&&void 0!==r&&r.tags.some((function(e){return c[e]}))){var x=c[null===r||void 0===r?void 0:r.tags.filter((function(e){return c[e]}))[0]];return p?a[x][x](s.highlightFade*d):a[x][s.backgroundColor](s.highlightFade*d)}return s.citeNodeColor&&null!==r&&void 0!==r&&null!==(n=r.properties)&&void 0!==n&&n.ROAM_REFS&&null!==r&&void 0!==r&&null!==(t=r.properties)&&void 0!==t&&t.FILELESS?p?sn(s.citeNodeColor,o):a[s.citeNodeColor][s.backgroundColor](s.highlightFade*d):s.refNodeColor&&r.properties.ROAM_REFS?p?sn(s.refNodeColor,o):a[s.refNodeColor][s.backgroundColor](s.highlightFade*d):p?s.nodeHighlight?a[qt({id:r.id,cluster:g,coloring:f,linksByNodeId:h,visuals:s})][s.nodeHighlight](d):sn(qt({id:r.id,cluster:g,coloring:f,linksByNodeId:h,visuals:s}),o):a[qt({id:r.id,cluster:g,coloring:f,linksByNodeId:h,visuals:s})][s.backgroundColor](s.highlightFade*d)}({node:e,theme:_,visuals:b,cluster:R.current,coloring:Z,emacsNodeId:p,highlightColors:xe,highlightedNodes:fe,previouslyHighlightedNodes:je,linksByNodeId:Q.current,opacity:oe,tagColors:I})},nodeRelSize:b.nodeRel,nodeVal:function(e){return Vt({node:e,highlightedNodes:fe,linksByNodeId:Q.current,opacity:oe,previouslyHighlightedNodes:je,visuals:b})/Math.pow(we.current,b.nodeZoomSize)},nodeCanvasObject:function(e,n,t){Ut(Jt({nodeRel:b.nodeRel,filteredLinksByNodeId:Q.current,lastHoverNode:pe.current},{node:e,ctx:n,globalScale:t,highlightedNodes:fe,previouslyHighlightedNodes:je,visuals:b,opacity:oe,labelTextColor:ve,labelBackgroundColor:be,hoverNode:M}))},nodeCanvasObjectMode:function(){return"after"},linkDirectionalParticles:b.particles?b.particlesNumber:void 0,linkDirectionalArrowLength:b.arrows?b.arrowsLength:void 0,linkDirectionalArrowRelPos:b.arrowsPos,linkDirectionalArrowColor:b.arrowsColor?function(){return sn(b.arrowsColor,_)}: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,o=Xt(e,G.current),i=Xt(e,pe.current),l=o||i,s=e;return b.refLinkColor&&"ref"===s.type?l&&(b.refLinkHighlightColor||b.linkHighlight)?xe[b.refLinkColor][b.refLinkHighlightColor||b.linkHighlight](oe):xe[b.refLinkColor][b.backgroundColor](b.highlightFade*oe):b.citeLinkColor&&null!==(n=s.type)&&void 0!==n&&n.includes("cite")?l&&(b.citeLinkHighlightColor||b.linkHighlight)?xe[b.citeLinkColor][b.citeLinkHighlightColor||b.linkHighlight](oe):xe[b.citeLinkColor][b.backgroundColor](b.highlightFade*oe):function(e){var n=e.sourceId,t=e.targetId,r=e.needsHighlighting,o=e.theme,i=e.visuals,l=e.highlightColors,s=e.opacity,c=e.linksByNodeId,a=e.coloring,d=e.cluster;if(!i.linkHighlight&&!i.linkColorScheme&&!r){var u=Gt({sourceId:n,targetId:t,linksByNodeId:c,visuals:i,coloring:a,cluster:d});return sn(u,o)}if(!r&&!i.linkColorScheme)return l[Gt({sourceId:n,targetId:t,linksByNodeId:c,visuals:i,coloring:a,cluster:d})][i.backgroundColor](i.highlightFade*s);if(!r)return l[i.linkColorScheme][i.backgroundColor](i.highlightFade*s);if(!i.linkHighlight&&!i.linkColorScheme){var h=Gt({sourceId:n,targetId:t,linksByNodeId:c,visuals:i,coloring:a,cluster:d});return sn(h,o)}return i.linkHighlight?i.linkColorScheme?l[i.linkColorScheme][i.linkHighlight](s):l[Gt({sourceId:n,targetId:t,linksByNodeId:c,visuals:i,coloring:a,cluster:d})][i.linkHighlight](s):sn(i.linkColorScheme,o)}({sourceId:t,targetId:r,needsHighlighting:l,theme:_,cluster:R.current,coloring:Z,highlightColors:xe,linksByNodeId:Q.current,opacity:oe,visuals:b})},linkWidth:function(e){if(1===b.highlightLinkSize)return b.linkWidth;var n=Xt(e,G.current),t=Xt(e,pe.current);return n||t?b.linkWidth*(1+oe*(b.highlightLinkSize-1)):b.linkWidth},linkDirectionalParticleWidth:b.particlesWidth,d3AlphaDecay:t.alphaDecay,d3AlphaMin:t.alphaMin,d3VelocityDecay:t.velocityDecay,onNodeClick:function(e,n){var t=e,r=n.timeStamp-ne.current<200;if(ne.current=n.timeStamp,r)return X("double",t,n);var o=ne.current;return setTimeout((function(){if(ne.current===o)return X("click",t,n)}),200)},onNodeHover:function(e){b.highlight&&(ye||(M||(ge(),ie(0)),V(e)))},onNodeRightClick:function(e,n){X("right",e,n)},onNodeDrag:function(e){V(e),Ce(!0)},onNodeDragEnd:function(){V(null),Ce(!1)}};return(0,re.jsx)(d.Box,{overflow:"hidden",onClick:z.onClose,children:a?(0,re.jsx)(Yt,Jt(Jt({ref:n},Oe),{},{nodeThreeObjectExtend:!0,nodeOpacity:b.nodeOpacity,nodeResolution:b.nodeResolution,linkOpacity:b.linkOpacity,nodeThreeObject:function(e){if(b.labels&&(!(b.labels<3)||fe[e.id])){var n=new O.Z(e.title.substring(0,40));return n.color=sn(b.labelTextColor,_),n.backgroundColor=sn(b.labelBackgroundColor,_),n.padding=2,n.textHeight=8,n}}})):(0,re.jsx)($t,Jt(Jt({ref:n},Oe),{},{linkLineDash:function(e){var n,t=e;return b.citeDashes&&null!==(n=t.type)&&void 0!==n&&n.includes("cite")?[b.citeDashLength,b.citeGapLength]:b.refDashes&&"ref"==t.type?[b.refDashLength,b.refGapLength]:null}}))})}},45301:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return t(46587)}])}},function(e){e.O(0,[774,737,876,228,866,13,874,573,446,879,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
+(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{46587:function(e,n,t){"use strict";t.r(n),t.d(n,{Graph:function(){return tr},GraphPage:function(){return nr},default:function(){return er}});var r=t(30266),o=t(83789),i=t(92809),l=t(80318),s=t(809),c=t.n(s),a=t(97375),d=t(68527),u=t(47398),h=t(68921),g=t(105),f=t(27549),p=t(74376),x=t(52596),j=t(9008),v=t(67294),b=t(32802),m=t.n(b),y=t(47516),C=t(63750),w=t(22003),O=t(31122),k=t(7520),S=t(36194),I=[],N={};for(var P in S.oY)for(var D in S.oY[P]){var B=P+D;"LinearNone"===B&&(B="Linear"),I.push(B),N[B]=S.oY[P][D]}var L=N,T={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:[],dirsBlocklist:[],dirsAllowlist:[],bad:!0,nodes:[],links:[],date:[],noter:!0},F={method:"degree"},E={particles:!1,particlesNumber:0,particlesWidth:4,arrows:!1,arrowsLength:1,arrowsPos:.5,arrowsColor:"",linkOpacity:.8,linkWidth:1,nodeRel:3,nodeOpacity:1,nodeResolution:12,labels:2,labelScale:1.5,labelFontSize:10,labelLength:40,labelWordWrap:25,labelLineSpace:1,labelDynamicDegree:8,labelDynamicStrength:.5,highlight:!0,highlightNodeSize:1.1,highlightLinkSize:.7,highlightFade:.8,highlightAnim:!0,animationSpeed:360,algorithmOptions:I,algorithmName:"CircularOut",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},R={follow:"zoom",localSame:"add",zoomPadding:200,zoomSpeed:2e3},Z={highlight:"hover",local:"double",follow:"never",context:"right",preview:"click",backgroundExitsLocal:!1},H={neighbors:1},W=["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(57324),M=t(90232),V=t(52072);function _(e,n,t){t.send(JSON.stringify({command:e,data:n}))}function U(e,n){_("open",{id:e.id},n)}var q=t(10219),X=t(44592),G=t(38554),Q=t.n(G),J=t(53869),K=t(99860);function $(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 Y(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?$(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):$(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var ee={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]};var ne=function(e,n){return Y(Y({},e),{},{delay:(0,X.hj)(n)?n:null===n||void 0===n?void 0:n.enter})},te=function(e,n){return Y(Y({},e),{},{delay:(0,X.hj)(n)?n:null===n||void 0===n?void 0:n.exit})},re=t(85893),oe=["in","unmountOnExit","animateOpacity","startingSize","endingSize","dimension","style","className","transition","transitionEnd"];function ie(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 le(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ie(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ie(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var se=function(e){return null!=e&&parseInt(e.toString(),10)>0},ce={exit:{size:{duration:.2,ease:ee.ease},opacity:{duration:.3,ease:ee.ease}},enter:{size:{duration:.3,ease:ee.ease},opacity:{duration:.4,ease:ee.ease}}},ae={exit:function(e){var n,t,r=e.animateOpacity,o=e.startingSize,l=e.transition,s=e.transitionEnd,c=e.delay,a=e.dimension;return le(le({},r&&{opacity:se(o)?1:0}),{},(t={overflow:"hidden"},(0,i.Z)(t,a,o),(0,i.Z)(t,"transitionEnd",null===s||void 0===s?void 0:s.exit),(0,i.Z)(t,"transition",null!==(n=null===l||void 0===l?void 0:l.exit)&&void 0!==n?n:te(ce.exit,c)),t))},enter:function(e){var n,t,r=e.animateOpacity,o=e.endingSize,l=e.transition,s=e.transitionEnd,c=e.delay,a=e.dimension;return le(le({},r&&{opacity:1}),{},(t={},(0,i.Z)(t,a,o),(0,i.Z)(t,"transitionEnd",null===s||void 0===s?void 0:s.enter),(0,i.Z)(t,"transition",null!==(n=null===l||void 0===l?void 0:l.enter)&&void 0!==n?n:ne(ce.enter,c)),t))}},de=v.forwardRef((function(e,n){var t=e.in,r=e.unmountOnExit,o=e.animateOpacity,i=void 0===o||o,s=e.startingSize,c=void 0===s?0:s,a=e.endingSize,d=void 0===a?"auto":a,u=e.dimension,h=void 0===u?"height":u,g=e.style,f=e.className,p=e.transition,x=e.transitionEnd,j=(0,q.Z)(e,oe),b=v.useState(!1),m=(0,l.Z)(b,2),y=m[0],C=m[1];v.useEffect((function(){var e=setTimeout((function(){C(!0)}));return function(){return clearTimeout(e)}}),[]),(0,X.ZK)({condition:Boolean(c>0&&r),message:"startingSize and unmountOnExit are mutually exclusive. You can't use them together"});var w=parseFloat(c.toString())>0,O={startingSize:c,endingSize:d,animateOpacity:i,dimension:h,transition:y?p:{enter:{duration:0}},transitionEnd:Q()(x,{enter:{overflow:"initial"},exit:r?void 0:{display:w?"block":"none"}})},k=!r||t,S=t||r?"enter":"exit";return(0,re.jsx)(J.M,{initial:!1,custom:O,children:k&&(0,re.jsx)(K.E.div,le(le({ref:n},j),{},{className:(0,X.cx)("chakra-collapse",f),style:le({overflow:"hidden",display:"block"},g),custom:O,variants:ae,initial:!!r&&"exit",animate:S,exit:"exit"}))})}));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 he(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ue(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ue(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}X.Ts&&(de.displayName="Collapse");var ge=function(e){var n=e.setTagColors,t=e.setFilter,r=e.filter,l=e.tagColors,s=e.target,c=r.tagsBlacklist,u=r.tagsWhitelist,h=c.indexOf(s)>-1,g=u.indexOf(s)>-1,f=(0,a.qY)();return(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(A.sN,{icon:(0,re.jsx)(d.Box,{bgColor:l[s],borderRadius:"sm",height:3,width:3,borderColor:l[s]||"gray.600",borderWidth:1}),closeOnSelect:!1,onClick:f.onToggle,children:(0,re.jsx)(d.Text,{children:"Change color"})}),(0,re.jsx)(de,{in:f.isOpen,children:(0,re.jsxs)(d.Flex,{ml:2,mt:2,flexWrap:"wrap",children:[(0,re.jsx)(d.Box,{children:(0,re.jsx)(d.Box,{tabIndex:0,cursor:"pointer",onClick:function(){return n((function(e){return Object.fromEntries(Object.keys(e).filter((function(e){return e!==s})).map((function(n){return[n,e[n]]})))}))},bgColor:"",m:1,borderRadius:"sm",borderColor:"gray.600",borderWidth:1,height:3,width:3})},"empty"),W.map((function(e){return(0,re.jsx)(d.Box,{children:(0,re.jsx)(d.Box,{tabIndex:0,cursor:"pointer",onClick:function(){return n(he(he({},l),{},(0,i.Z)({},s,e)))},bgColor:e,m:1,borderRadius:"sm",height:3,width:3})},e)}))]})}),!g&&(0,re.jsx)(A.sN,{onClick:function(){t(h?function(e){return he(he({},e),{},{tagsBlacklist:e.tagsBlacklist.filter((function(e){return e!==s}))})}:function(e){return he(he({},e),{},{tagsBlacklist:[].concat((0,o.Z)(e.tagsBlacklist),[s])})})},icon:h?(0,re.jsx)(V.MinusIcon,{}):(0,re.jsx)(V.ViewOffIcon,{}),children:h?"Remove from blocklist":"Add to blocklist"}),!h&&(0,re.jsx)(A.sN,{onClick:function(){t(g?function(e){return he(he({},e),{},{tagsWhitelist:e.tagsWhitelist.filter((function(e){return e!==s}))})}:function(e){return he(he({},e),{},{tagsWhitelist:[].concat((0,o.Z)(e.tagsWhitelist),[s])})})},icon:g?(0,re.jsx)(V.MinusIcon,{}):(0,re.jsx)(V.ViewIcon,{}),children:g?"Remove from allowlist":"Add to allowlist"})]})},fe=function(e){e.background;var n,t,r=e.target,o=(e.nodeType,e.coordinates),i=e.handleLocal,l=e.menuClose,s=e.scope,c=e.webSocket,u=e.setPreviewNode,g=e.setTagColors,f=e.tagColors,p=e.setFilter,x=e.filter,j=(0,a.qY)(),b=j.isOpen,m=j.onOpen,C=j.onClose;(0,v.useRef)();return(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(A.v2,{defaultIsOpen:!0,closeOnBlur:!1,onClose:function(){return l()},children:(0,re.jsx)(A.qy,{zIndex:"overlay",bgColor:"white",color:"black",position:"absolute",left:o.left,top:o.top,right:o.right,bottom:o.bottom,fontSize:"xs",boxShadow:"xl",children:"string"!==typeof r?(0,re.jsxs)(re.Fragment,{children:[r&&(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(d.Heading,{size:"xs",isTruncated:!0,px:3,py:1,children:r.title}),(0,re.jsx)(A.R,{borderColor:"gray.500"})]}),0!==s.nodeIds.length&&(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(A.sN,{onClick:function(){return i(r,"add")},icon:(0,re.jsx)(V.PlusSquareIcon,{}),children:"Expand local graph at node"}),(0,re.jsx)(A.sN,{onClick:function(){return i(r,"replace")},icon:(0,re.jsx)(y.DvO,{}),children:"Open local graph for this node"}),(0,re.jsx)(A.sN,{onClick:function(){return i(r,"remove")},icon:(0,re.jsx)(V.MinusIcon,{}),children:"Exclude node from local graph"})]}),null!==r&&void 0!==r&&null!==(n=r.properties)&&void 0!==n&&n.FILELESS?(0,re.jsx)(A.sN,{icon:(0,re.jsx)(V.AddIcon,{}),onClick:function(){return function(e,n){_("create",{id:e.id,title:e.title,ref:e.properties.ROAM_REFS},n)}(r,c)},children:"Create node"}):(0,re.jsx)(A.sN,{icon:(0,re.jsx)(V.EditIcon,{}),onClick:function(){return U(r,c)},children:"Open in Emacs"}),(null===r||void 0===r||null===(t=r.properties)||void 0===t?void 0:t.ROAM_REFS)&&(0,re.jsx)(A.sN,{icon:(0,re.jsx)(V.ExternalLinkIcon,{}),children:"Open in Zotero"}),0===s.nodeIds.length&&(0,re.jsx)(A.sN,{icon:(0,re.jsx)(y.DvO,{}),onClick:function(){return i(r,"replace")},children:"Open local graph"}),(0,re.jsx)(A.sN,{icon:(0,re.jsx)(V.ViewIcon,{}),onClick:function(){u(r)},children:"Preview"}),0===(null===r||void 0===r?void 0:r.level)&&(0,re.jsx)(A.sN,{closeOnSelect:!1,icon:(0,re.jsx)(V.DeleteIcon,{color:"red.500"}),color:"red.500",onClick:m,children:"Permanently delete note"})]}):(0,re.jsx)(ge,{target:r,tagColors:f,filter:x,setTagColors:g,setFilter:p})})}),"string"!==typeof r&&(0,re.jsxs)(M.u_,{isCentered:!0,isOpen:b,onClose:C,children:[(0,re.jsx)(M.ZA,{}),(0,re.jsxs)(M.hz,{zIndex:"popover",children:[(0,re.jsx)(M.xB,{children:"Delete node?"}),(0,re.jsx)(M.ol,{}),(0,re.jsx)(M.fe,{children:(0,re.jsxs)(d.VStack,{spacing:4,display:"flex",alignItems:"flex-start",children:[(0,re.jsx)(d.Text,{children:"This will permanently delete your note:"}),(0,re.jsx)(d.Text,{fontWeight:"bold",children:null===r||void 0===r?void 0:r.title}),0!==(null===r||void 0===r?void 0:r.level)&&(0,re.jsx)(d.Text,{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,re.jsx)(d.Text,{children:"Are you sure you want to do continue?"})]})}),(0,re.jsxs)(M.mz,{children:[(0,re.jsx)(h.Button,{mr:3,onClick:function(){console.log("closing"),C(),l()},children:"Cancel"}),(0,re.jsx)(h.Button,{variant:"link",colorScheme:"red",ml:3,onClick:function(){console.log("aaaaa"),function(e,n){0===e.level&&_("delete",{id:e.id,file:e.file},n)}(r,c),C(),l()},children:"Delete node"})]})]})]})]})},pe=t(5434),xe=t(51649),je=function(e){var n=e.setJustification,t=(e.setIndent,e.setFont,e.justification),r=(e.setPreviewNode,e.canUndo),o=e.canRedo,i=(e.resetPreviewNode,e.previousPreviewNode),l=e.nextPreviewNode,s=e.outline,c=e.setOutline,a=e.collapse,g=e.setCollapse;return(0,re.jsxs)(d.Flex,{flex:"0 1 40px",pb:3,alignItems:"center",justifyContent:"space-between",pr:1,children:[(0,re.jsx)(d.Flex,{children:(0,re.jsxs)(h.ButtonGroup,{isAttached:!0,children:[(0,re.jsx)(u.u,{label:"Go backward",children:(0,re.jsx)(h.IconButton,{_focus:{},variant:"subtle",icon:(0,re.jsx)(V.ChevronLeftIcon,{}),"aria-label":"Previous node",disabled:!r,onClick:function(){return i()}})}),(0,re.jsx)(u.u,{label:"Go forward",children:(0,re.jsx)(h.IconButton,{_focus:{},variant:"subtle",icon:(0,re.jsx)(V.ChevronRightIcon,{}),"aria-label":"Next node",disabled:!o,onClick:function(){return l()}})})]})}),(0,re.jsxs)(d.Flex,{children:[(0,re.jsx)(u.u,{label:"Justify content",children:(0,re.jsx)(h.IconButton,{variant:"subtle","aria-label":"Justify content",icon:[(0,re.jsx)(y.v9V,{},"justify"),(0,re.jsx)(y.YSr,{},"left"),(0,re.jsx)(y.RXA,{},"right"),(0,re.jsx)(y.tr_,{},"center")][t],onClick:function(){return n((function(e){return(e+1)%4}))}})}),(0,re.jsx)(u.u,{label:"Toggle outline view",children:(0,re.jsx)(h.IconButton,{variant:"subtle","aria-label":"Justify content",icon:s?(0,re.jsx)(xe.XQM,{}):(0,re.jsx)(xe.JfF,{}),onClick:function(){return c((function(e){return!e}))}})}),(0,re.jsx)(u.u,{label:"Toggle headers",children:(0,re.jsx)(h.IconButton,{variant:"subtle","aria-label":"Toggle headers",icon:a?(0,re.jsx)(pe.omV,{}):(0,re.jsx)(pe.egf,{}),onClick:function(){return g((function(e){return!e}))}})})]})]})},ve=t(96356);function be(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 me(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?be(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):be(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var ye=function(e){var n,t,r,i=e.filter,l=e.setFilter,s=e.tagColors,c=(e.setTagColors,e.openContextMenu),a=e.previewNode;return null!==a&&void 0!==a&&a.tags&&null!==(null===a||void 0===a||null===(n=a.tags)||void 0===n?void 0:n[0])?(0,re.jsx)(d.Flex,{mb:2,flexWrap:"wrap",children:null===a||void 0===a||null===(t=a.tags)||void 0===t||null===(r=t.map)||void 0===r?void 0:r.call(t,(function(e){var n,t,r,a=null!==(n=i.tagsBlacklist)&&void 0!==n?n:[],d=null!==(t=i.tagsWhitelist)&&void 0!==t?t:[],u=a.includes(e),h=d.includes(e);return(0,re.jsxs)(ve.Tag,{tabIndex:0,mr:2,mt:2,onContextMenu:function(n){n.preventDefault(),c(e,n)},cursor:"pointer",onClick:function(){l(u?function(n){return me(me({},n),{},{tagsBlacklist:n.tagsBlacklist.filter((function(n){return n!==e})),tagsWhitelist:[].concat((0,o.Z)(n.tagsWhitelist),[e])})}:h?function(n){return me(me({},n),{},{tagsWhitelist:n.tagsWhitelist.filter((function(n){return n!==e}))})}:function(n){return me(me({},n),{},{tagsBlacklist:[].concat((0,o.Z)(n.tagsBlacklist),[e])})})},size:"sm",variant:"outline",colorScheme:(null===(r=s[e])||void 0===r?void 0:r.replaceAll(/(.*?)\..*/g,"$1"))||void 0,children:[(0,re.jsx)(ve.TagLabel,{children:e}),u?(0,re.jsx)(ve.TagRightIcon,{as:V.ViewOffIcon}):h?(0,re.jsx)(ve.TagRightIcon,{as:V.ViewIcon}):null]},e)}))}):null},Ce=t(18835),we=t.n(Ce),Oe=t(13816),ke=t.n(Oe),Se=t(42728),Ie=t.n(Se),Ne=t(77890),Pe=t.n(Ne),De=t(94986),Be=t.n(De),Le=t(88541),Te=t.n(Le),ze=t(71167),Fe=t.n(ze),Ee=(t(85062),t(27431)),Re=t.n(Ee),Ze=t(12861),He=t.n(Ze),We=t(10043),Ae=t.n(We),Me=t(80816),Ve=t(93545),_e=t.n(Ve),Ue=t(15941),qe=t.n(Ue),Xe=t(67597),Ge=t.n(Xe),Qe=t(44549),Je=t.n(Qe),Ke=t(78818),$e=t.n(Ke),Ye=t(32095),en=t(46871),nn=t(29356),tn={".headingFlex":{flexDirection:"row-reverse",justifyContent:"flex-end"},".outlineHeadingButton":{display:"none"},h1:{color:"black",lineHeight:"1.2",fontSize:"16",fontWeight:"bold",paddingTop:2},h2:{fontSize:"14",color:"black",fontWeight:"bold",fontStyle:"bold italic",paddingTop:2},h3:{fontSize:"13",color:"black",paddingTop:2},h4:{fontSize:"12",fontStyle:"italic",color:"black",paddingTop:2},".sectionContent":{paddingTop:2}},rn={".headingFlex":{flexDirection:"row",justifyContent:"flex-start"},".viewerHeadingButton":{display:"none"},".sectionContent":{mt:3,paddingLeft:4,ml:"11px",borderLeftWidth:"1px",borderLeftColor:"gray.500"},".preHeadingContent":{},"h1,h2,h3,h4,h5,h6,h7,h8":{pl:1,lineHeight:"1.25",color:"black",fontSize:15,fontWeight:700},".sec":{pt:1},".wrapClass > div > p":{mb:2},p:{fontWeight:500,fontSize:14,pb:2}},on={".katex":{overflowX:"scroll"},ol:{paddingLeft:4,py:1},"li::marker":{fontSize:12,fontWeight:"bold"},li:{pt:1},ul:{paddingLeft:"5"},p:{fontSize:"14",fontWeight:"500 !important",pb:2},div:{hyphens:"auto !important"},".title":{textAlign:"center",marginBottom:".2em"},".subtitle":{textAlign:"center",fontSize:"medium",fontWeight:"bold",marginTop:0},".TODO":{color:"red.500"},".equationContainer":{display:"table",textAlign:"center",width:"100%"},".equation":{verticalAlign:"middle"},".equation-label":{display:"tableCell",textAlign:"right",verticalAlign:"middle"},".inlinetask":{padding:"10px",border:"2px solid gray",margin:"10px",background:"#ffffcc"},"#org-div-home-and-up":{textAlign:"right",fontSize:"70 % ",whiteSpace:"nowrap"},textarea:{overflowX:"auto"},".linenr":{fontSize:"smaller"},".org-info-js_info-navigation":{borderStyle:"none"},"#org-info-js_console-label":{fontSize:"10px",fontWeight:"bold",whiteSpace:"nowrap"},".org-info-js_search-highlight":{backgroundColor:"#ffff00",color:"#000000",fontWeight:"bold"},".org-svg":{width:"90%"},".DONE":{color:"green"},".priority":{fontFamily:"monospace",color:"orange"},".tag":{backgroundColor:"white",fontFamily:"monospace",padding:"2px",fontSize:"80%",fontWeight:"normal"},".timestamp":{color:"#bebebe"},".timestamp-kwd":{color:"#5f9ea0"},".org-right":{marginLeft:"auto",marginRight:"0px",textAlign:"right"},".org-left":{marginLeft:"0px",marginRight:"auto",textAlign:"left"},".org-center":{marginLeft:"auto",marginRight:"auto",textAlign:"center"},".underline":{textDecoration:"underline"},"#postamble p":{fontSize:"90%",margin:".2em"},"#preamble p":{fontSize:"90%",margin:".2em"},"p.verse":{marginLeft:"3%"},pre:{borderRadius:"3px",backgroundColor:"white",padding:"8pt",fontFamily:"monospace",overflow:"auto",margin:"1.2em"},"pre.src":{position:"relative",overflow:"auto"},"pre.src:before":{display:"none",position:"absolute",top:"-8px",right:"12px",padding:"3px",backgroundColor:"white"},"caption.t-above":{captionSide:"top"},"caption.t-bottom":{captionSide:"bottom"},"th.org-right":{textAlign:"center"},"th.org-left":{textAlign:"center"},"th.org-center":{textAlign:"center"},"td.org-right":{textAlign:"right"},"td.org-left":{textAlign:"left"},"td.org-center":{textAlign:"center"},".footpara":{display:"inline"},".footdef":{marginBottom:"1em"},".figure":{padding:"1em"},".figure p":{textAlign:"center"},".math.math-display .katex":{overflow:"auto",minHeight:"1.5em"}},ln=t(86658),sn=function(e,n){return e.split(".").reduce((function(e,n){return e[n]}),n.colors)},cn=["style"];function an(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;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?an(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):an(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var un=function(e){var n=e.noUnderline,t=e.id,r=e.setSidebarHighlightedNode,o=e.setPreviewNode,i=e.nodeById,l=e.openContextMenu,s=e.href,c=e.children,a=e.isWiki,u=(0,v.useContext)(nn.N).highlightColor,h=(0,g.Fg)(),f=sn(u,h),p=(s.replaceAll(/(.*?)\:?.*/g,"$1"),s.replaceAll(/.*?\:(.*)/g,"$1")),x=null!==t&&void 0!==t?t:p,j=a?"[[".concat(c,"]]"):c;return(0,re.jsx)(d.Text,{as:"a",onMouseEnter:function(){return r(i[x])},onMouseLeave:function(){return r({})},tabIndex:0,display:"inline",overflow:"hidden",fontWeight:500,color:u,textDecoration:n?void 0:"underline",onContextMenu:function(e){e.preventDefault(),l(i[p],e)},onClick:function(){return o(i[p])},_hover:{textDecoration:"none",cursor:"pointer",bgColor:f+"22"},_focus:{outlineColor:u},children:j})},hn=function(e){var n=e.href,t=e.children,r=(0,v.useContext)(nn.N).highlightColor;return(0,re.jsxs)(d.Link,{color:r,isExternal:!0,href:n,children:[t,(0,re.jsx)(V.ExternalLinkIcon,{mx:"1px",pb:"2px"})]})},gn=function(e){var n,t=e.href,r=e.children,o=e.nodeById,i=e.setSidebarHighlightedNode,l=e.previewNode,s=e.setPreviewNode,c=e.nodeByCite,a=e.openContextMenu,u=e.outline,h=e.noUnderline,g=e.linksByNodeId,f=e.isWiki,p=e.macros,x=e.attachDir,j=e.useInheritance,b=(0,v.useState)(null),m=b[0],y=b[1],C=(0,v.useState)(!1),w=C[0],O=C[1],k=t.replaceAll(/(.*?)\:.*/g,"$1"),S=u?rn:tn;console.log(l);if((0,v.useEffect)((function(){k.replaceAll(/(http)?.*/g,"$1")||m||w&&fetch("http://localhost:35901/node/".concat(L)).then((function(e){return e.text()})).then((function(e){"error"===e||y(e)})).catch((function(e){return console.log(e),"Could not fetch the text for some reason, sorry!\n\n This can happen because you have an id with forward slashes (/) in it."}))}),[w,m]),!k)return(0,re.jsx)(d.Text,{color:"gray.700",children:r});if(k.replaceAll(/(http)?.*/g,"$1"))return(0,re.jsx)(hn,{href:t,children:r});var I,N,P,D,B=t.replaceAll(/.*?\:(.*)/g,"$1"),L=function(e,n){if("id"===e)return n;if(e.includes("cite")){var t,r=null!==(t=c[n])&&void 0!==t&&t;return r?null!==r&&void 0!==r&&r.properties.FILELESS?"":null===r||void 0===r?void 0:r.id:""}return""}(k,B);encodeURIComponent(encodeURIComponent(null===(n=o[L])||void 0===n?void 0:n.file));return L?(0,re.jsx)(re.Fragment,{children:(0,re.jsxs)(Ye.J2,{gutter:12,trigger:"hover",placement:"top-start",children:[(0,re.jsx)(Ye.xo,{children:(0,re.jsx)(d.Box,{display:"inline",onMouseEnter:function(){return O(!0)},onMouseLeave:function(){return O(!1)},children:(0,re.jsx)(un,{id:L,setSidebarHighlightedNode:i,setPreviewNode:s,nodeById:o,href:t,children:r,nodeByCite:c,openContextMenu:a,noUnderline:h,isWiki:f},null!==(I=null===(N=o[L])||void 0===N?void 0:N.title)&&void 0!==I?I:L)})}),(0,re.jsx)(en.h_,{children:(0,re.jsxs)(Ye.yk,{transform:"scale(1)",boxShadow:"xl",position:"relative",zIndex:"tooltip",onMouseEnter:function(){var e;i(null!==(e=o[L])&&void 0!==e?e:{})},onMouseLeave:function(){i({})},children:[(0,re.jsx)(Ye.QH,{}),(0,re.jsx)(Ye.b,{pb:5,fontSize:"xs",position:"relative",zIndex:"tooltip",transform:"scale(1)",width:"100%",children:(0,re.jsx)(ln.$B,{autoHeight:!0,autoHeightMax:300,autoHide:!0,renderThumbVertical:function(e){var n=e.style,t=(0,q.Z)(e,cn);return(0,re.jsx)(d.Box,dn({style:dn(dn({},n),{},{borderRadius:0})},t))},children:(0,re.jsx)(d.Box,{w:"100%",color:"black",px:3,sx:dn(dn({},on),S),children:(0,re.jsx)(On,{previewText:m,nodeById:o,setSidebarHighlightedNode:i,setPreviewNode:s,nodeByCite:c,openContextMenu:a,outline:u,linksByNodeId:g,macros:p,attachDir:x,useInheritance:j,previewNode:o[L],collapse:!1})})})})]},null!==(P=null===(D=o[L])||void 0===D?void 0:D.title)&&void 0!==P?P:L)})]})}):(0,re.jsx)(d.Text,{as:"span",display:"inline",className:t,color:"base.700",cursor:"not-allowed",children:r})},fn=t(25675),pn=t(62520),xn=t.n(pn),jn=function(e){var n=e.src,t=e.file;if(n.replaceAll(/(http)?.*/g,"$1"))return console.log(n.replaceAll(/(http)?.*/g,"$1")),(0,re.jsx)(fn.default,{layout:"responsive",loader:function(e){var n=e.src;return e.width,e.quality,"".concat(n)},src:n,alt:"",width:"auto",height:"auto"});var r=n.replaceAll(/file:/g,""),o=xn().dirname(t),i=xn().isAbsolute(r)||"~"===r.slice(0,1)?r:xn().join(o,r),l=encodeURIComponent(encodeURIComponent(i));return(0,re.jsx)(d.Container,{my:4,position:"relative",children:(0,re.jsx)("img",{alt:"Wow, an image.",src:"http://localhost:35901/img/".concat(l)})})},vn=t(14578),bn=(0,v.createContext)({outline:!1,collapse:!0}),mn=function(e){var n=e.children,t=e.className,r=(0,v.useState)(!0),o=r[0],i=r[1],l=(0,v.useContext)(bn).collapse;if((0,v.useEffect)((function(){i(!l)}),[l]),"h0Wrapper headingWrapper"===t)return(0,re.jsxs)(d.Box,{className:"preHeadingContent",children:[" ",n]});var s=n;return(0,re.jsxs)(d.Box,{className:"sec",children:[(0,re.jsx)(d.Box,{display:"block",children:(0,re.jsxs)(d.Flex,{className:"headingFlex",alignItems:"baseline",children:[o&&s.length>0?(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(h.IconButton,{className:"viewerHeadingButton",_focus:{},_active:{},"aria-label":"Expand heading",size:"xs",variant:"subtle",icon:(0,re.jsx)(V.ChevronUpIcon,{}),onClick:function(){return i(!o)},height:2,width:2}),(0,re.jsx)(h.IconButton,{className:"outlineHeadingButton",_focus:{},_active:{},"aria-label":"Expand heading",size:"xs",variant:"subtle",icon:(0,re.jsx)(vn.zOz,{}),onClick:function(){return i(!o)},height:2,width:2})]}):(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(h.IconButton,{className:"viewerHeadingButton",_active:{},_focus:{},"aria-label":"Collapse heading",height:2,width:2,size:"xs",variant:"subtle",icon:(0,re.jsx)(V.ChevronDownIcon,{}),onClick:function(){return i(!o)}}),(0,re.jsx)(h.IconButton,{className:"outlineHeadingButton",_active:{},_focus:{},"aria-label":"Collapse heading",height:2,width:2,size:"xs",variant:"subtle",icon:(0,re.jsx)(vn.O6Y,{}),onClick:function(){return i(!o)}})]}),s[0]]})}),o&&(0,re.jsx)(d.Box,{className:"sectionContent",children:s.slice(1)})]})};function yn(e){return["object"===typeof e.source?e.source.id:e.source,"object"===typeof e.target?e.target.id:e.target]}function Cn(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 wn(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Cn(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Cn(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var On=function(e){var n,t,r=e.nodeById,o=e.setSidebarHighlightedNode,l=e.setPreviewNode,s=e.previewText,c=e.nodeByCite,a=e.previewNode,u=e.openContextMenu,h=e.outline,f=e.collapse,p=e.linksByNodeId,x=e.macros,j=e.attachDir,b=e.useInheritance;if(!a||!p)return null;var m=we()().use(ke()).use(Be()).use(Te(),{idDir:j||void 0,useInheritance:b}).use(Pe()).use(Ie(),{useSections:!0}),y=(null===(n=p[null===a||void 0===a?void 0:a.id])||void 0===n?void 0:n.reduce((function(e,n){var t=yn(n).filter((function(e){return e!==a.id})).join("");return wn(wn({},e),{},(0,i.Z)({},t,r[t]))}),{}))||{},C=Object.entries(y),w=we()().use(He()).use(qe(),["yaml"]).use(Ge()).use(Me.Z,{permaLinks:Object.keys(y),pageResolver:function(e){var n,t=C.find((function(n){var t;return(null===n||void 0===n||null===(t=n[1])||void 0===t?void 0:t.title)===e}));return[null!==(n=null===t||void 0===t?void 0:t[0])&&void 0!==n?n:""]},hrefTemplate:function(e){return"id:".concat(e)}}).use(Je()).use(_e()).use(Ae()).use($e()),O=".md"===(null===a||void 0===a||null===(t=a.file)||void 0===t?void 0:t.slice(-3)),k=O?w:m,S=(0,v.useMemo)((function(){return k.use(Fe(),{trust:function(e){return["\\htmlId","\\href"].includes(e.command)},macros:wn({"\\eqref":"\\href{###1}{(\\text{#1})}","\\ref":"\\href{###1}{\\text{#1}}","\\label":"\\htmlId{#1}{}"},x)}).use(Re(),{createElement:v.createElement,components:{a:function(e){var n=e.children,t=e.href;return(0,re.jsx)(gn,{nodeByCite:c,setSidebarHighlightedNode:o,href:"".concat(t),nodeById:r,linksByNodeId:p,setPreviewNode:l,openContextMenu:u,outline:h,previewNode:a,isWiki:O,macros:x,attachDir:j,useInheritance:b,children:n})},img:function(e){var n=e.src;return(0,re.jsx)(jn,{src:n,file:null===a||void 0===a?void 0:a.file})},section:function(e){var n=e.children,t=e.className;return t&&t.slice(-1)==="".concat(a.level)?(0,re.jsx)(d.Box,{children:n.slice(1)}):(0,re.jsx)(mn,{outline:h,collapse:f,className:t,children:n})},blockquote:function(e){var n=e.children;return(0,re.jsx)(g.m$.blockquote,{color:"gray.800",bgColor:"gray.300",pt:4,pb:2,mb:4,mt:3,pl:4,borderLeftWidth:4,borderLeftColor:"gray.700",children:n})},p:function(e){var n=e.children;return(0,re.jsx)("p",{lang:"en",children:n})}}})}),[null===a||void 0===a?void 0:a.id]),I=(0,v.useMemo)((function(){return S.processSync(s).result}),[s]);return(0,re.jsx)(bn.Provider,{value:{collapse:f,outline:h},children:I})},kn=function(e){var n=e.openContextMenu,t=e.setSidebarHighlightedNode,r=e.nodeById,o=e.nodeByCite,i=e.previewNode,l=e.setPreviewNode,s=e.outline,c=e.collapse,a=e.linksByNodeId,d=e.macros,u=e.attachDir,h=e.useInheritance,g=(0,v.useState)(""),f=g[0],p=g[1],x=encodeURIComponent(encodeURIComponent(i.id));return(0,v.useEffect)((function(){fetch("http://localhost:35901/node/".concat(x)).then((function(e){return e.text()})).then((function(e){if(""===e)return"(empty node)";"error"!==e&&(console.log(e),p(e))})).catch((function(e){return p("(could not find node)"),console.log(e),"Could not fetch the text for some reason, sorry!\n\n This can happen because you have an id with forward slashes (/) in it."}))}),[i.id]),(0,re.jsx)(re.Fragment,{children:f&&i&&(0,re.jsx)(On,{nodeById:r,previewNode:i,setPreviewNode:l,previewText:f,nodeByCite:o,setSidebarHighlightedNode:t,openContextMenu:n,outline:s,collapse:c,linksByNodeId:a,attachDir:u,useInheritance:h,macros:d||{}})})},Sn=function(e){var n,t=e.previewNode,r=e.setPreviewNode,o=e.setSidebarHighlightedNode,i=e.nodeById,s=e.linksByNodeId,c=e.nodeByCite,a=e.openContextMenu,u=e.outline,h=e.macros,g=e.attachDir,f=e.useInheritance,p=(null!==(n=s[null===t||void 0===t?void 0:t.id])&&void 0!==n?n:[]).filter((function(e){var n=yn(e),r=(0,l.Z)(n,2),o=r[0];r[1];return o!==(null===t||void 0===t?void 0:t.id)})).map((function(e){return e.source}));return(0,re.jsxs)(d.Box,{className:"backlinks",borderRadius:"sm",mt:6,p:4,bg:"white",mb:10,children:[(0,re.jsx)("p",{style:{fontSize:16,fontWeight:600},children:"Linked references (".concat(p.length,")")}),(0,re.jsx)(d.VStack,{py:2,spacing:3,alignItems:"start",divider:(0,re.jsx)(d.StackDivider,{borderColor:"gray.500"}),align:"stretch",color:"gray.800",children:(null===t||void 0===t?void 0:t.id)&&p.map((function(e){var n,l,p;n=null===(l=i[e])||void 0===l?void 0:l.title;return(0,re.jsx)(d.Box,{overflow:"hidden",py:1,borderRadius:"sm",width:"100%",children:(0,re.jsx)(gn,{linksByNodeId:s,nodeByCite:c,setSidebarHighlightedNode:o,href:"id:".concat(e),nodeById:i,previewNode:t,setPreviewNode:r,openContextMenu:a,outline:u,noUnderline:!0,attachDir:g,useInheritance:f,macros:h,children:null===(p=i[e])||void 0===p?void 0:p.title})},e)}))})]})};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 Nn(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?In(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):In(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Pn=function(e){var n=e.setPreviewNode,t=e.justificationList,r=e.justification,o=e.previewNode,i=e.nodeById,l=e.nodeByCite,s=e.setSidebarHighlightedNode,c=e.linksByNodeId,a=e.openContextMenu,u=e.outline,h=e.collapse,g=e.macros,f=e.attachDir,p=e.useInheritance,x=u?rn:tn;return(0,re.jsx)(d.Box,{pr:8,pt:2,height:"100%",className:"org",sx:Nn(Nn(Nn({},on),x),{},{textAlign:t[r]}),children:(null===o||void 0===o?void 0:o.id)&&(0,re.jsxs)(d.Flex,{className:"wrapClass",height:"100%",flexDirection:"column",justifyContent:"space-between",children:[(0,re.jsx)(kn,{setPreviewNode:n,previewNode:o,nodeByCite:l,setSidebarHighlightedNode:s,openContextMenu:a,outline:u,collapse:h,nodeById:i,linksByNodeId:c,macros:g,attachDir:f,useInheritance:p}),(0,re.jsx)(Sn,{setPreviewNode:n,previewNode:o,nodeById:i,linksByNodeId:c,nodeByCite:l,setSidebarHighlightedNode:s,openContextMenu:a,outline:u,attachDir:f,useInheritance:p,macros:g||{}})]})})},Dn=function(e){var n=e.previewNode;return(0,re.jsx)(d.Flex,{maxW:"90%",children:(0,re.jsx)(d.Heading,{lineHeight:1.2,size:"md",fontWeight:600,pt:4,children:null===n||void 0===n?void 0:n.title})})},Bn=t(29119);function Ln(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 Tn(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Ln(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ln(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function zn(e,n){var t,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=Fn(e,null!==(t=r.storage)&&void 0!==t?t:localStorage),i=o.get(),l=void 0!==i?i:n,s=null!=i&&"object"===typeof i&&!1===Array.isArray(i)?Tn(Tn({},n),i):l;s!==i&&o.update(s);var c=(0,v.useState)(s),a=c[0],d=c[1];(0,v.useEffect)((function(){a!==s&&d(s)}),[e]);var u=function(e){e instanceof Function?d((function(n){var t=e(n);return o.update(t),t})):(d(e),o.update(e))};return[a,u]}function Fn(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 En=["style"];function Rn(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 Zn(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Rn(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Rn(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Hn=function(e){var n=e.isOpen,t=e.onOpen,r=e.onClose,o=e.previewNode,i=e.setPreviewNode,s=e.nodeById,c=e.linksByNodeId,a=e.nodeByCite,u=e.setSidebarHighlightedNode,g=e.canUndo,f=e.canRedo,p=e.resetPreviewNode,x=e.previousPreviewNode,j=e.nextPreviewNode,b=e.openContextMenu,m=(e.scope,e.setScope,e.windowWidth),C=e.filter,w=e.setFilter,O=e.tagColors,k=e.setTagColors,S=e.macros,I=e.attachDir,N=e.useInheritance,P=((0,v.useContext)(nn.N).highlightColor,(0,v.useState)()),D=P[0],B=P[1],L=zn("sidebarWidth",400),T=(0,l.Z)(L,2),z=T[0],F=T[1];(0,v.useEffect)((function(){null!==o&&void 0!==o&&o.id?(t(),B(o)):r()}),[null===o||void 0===o?void 0:o.id]);var E=zn("justification",1),R=(0,l.Z)(E,2),Z=R[0],H=R[1],W=zn("outline",!1),A=(0,l.Z)(W,2),M=A[0],V=A[1],_=(0,v.useState)("sans serif"),U=(_[0],_[1]),X=(0,v.useState)(0),G=(X[0],X[1]),Q=(0,v.useState)(!1),J=Q[0],K=Q[1];return(0,re.jsx)(de,{animateOpacity:!1,dimension:"width",in:n,unmountOnExit:!0,startingSize:0,style:{height:"100vh"},children:(0,re.jsx)(Bn.e,{size:{height:"100vh",width:z},onResizeStop:function(e,n,t,r){F((function(e){return e+r.width}))},enable:{top:!1,right:!1,bottom:!1,left:!0,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},minWidth:"220px",maxWidth:m-200,children:(0,re.jsxs)(d.Flex,{flexDir:"column",h:"100vh",pl:2,color:"black",bg:"alt.100",width:"100%",children:[(0,re.jsxs)(d.Flex,{pl:2,alignItems:"center",color:"black",width:"100%",children:[(0,re.jsx)(d.Flex,{pt:1,flexShrink:0,children:(0,re.jsx)(je,{setJustification:H,setIndent:G,setFont:U,justification:Z,setPreviewNode:i,canUndo:g,canRedo:f,resetPreviewNode:p,previousPreviewNode:x,nextPreviewNode:j,outline:M,setOutline:V,collapse:J,setCollapse:K})}),(0,re.jsx)(d.Flex,{whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",onContextMenu:function(e){e.preventDefault(),b(o,e)}}),(0,re.jsx)(d.Flex,{flexDir:"row",ml:"auto",children:(0,re.jsx)(h.IconButton,{m:1,icon:(0,re.jsx)(y.T41,{}),"aria-label":"Options",variant:"subtle",onClick:function(e){b(o,e,{left:void 0,top:12,right:20-m,bottom:void 0})}})})]}),(0,re.jsx)(ln.$B,{autoHide:!0,renderThumbVertical:function(e){var n=e.style,t=(0,q.Z)(e,En);return(0,re.jsx)(d.Box,Zn({style:Zn(Zn({},n),{},{borderRadius:0})},t))},children:D&&(0,re.jsxs)(d.VStack,{flexGrow:1,alignItems:"left",bg:"alt.100",paddingLeft:4,children:[(0,re.jsx)(Dn,{previewNode:D}),(0,re.jsx)(ye,{filter:C,setFilter:w,tagColors:O,setTagColors:k,openContextMenu:b,previewNode:o}),(0,re.jsx)(Pn,{setPreviewNode:i,previewNode:o,nodeById:s,nodeByCite:a,setSidebarHighlightedNode:u,justification:Z,justificationList:["justify","start","end","center"],linksByNodeId:c,openContextMenu:b,outline:M,setOutline:V,collapse:J,macros:S,attachDir:I,useInheritance:N})]})})]})})})},Wn=t(94090),An=t(88696),Mn=t(47647);function Vn(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 _n(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Vn(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Vn(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Un=function(e){var n,t=e.filter,r=e.listName,o=e.labelFilter,l=e.displayName,s=e.setFilter,c=e.options,a=void 0===c?[]:c,d=(0,v.useContext)(nn.N).highlightColor,u=(null===a||void 0===a?void 0:a.map((function(e){return{value:e,label:o?e.replace(o,""):e}})))||[],h=(0,v.useState)((null===(n=t[r])||void 0===n?void 0:n.map((function(e){return{value:e,label:o?null===e||void 0===e?void 0:e.replace(o,""):e}})))||[]),g=h[0],f=h[1];return(0,re.jsx)(Mn.CUIAutoComplete,{labelStyleProps:{fontWeight:300,fontSize:14},items:u,label:"Add tag to ".concat(l),placeholder:" ",onCreateItem:function(e){return null},disableCreateItem:!0,selectedItems:g,onSelectedItemsChange:function(e){e.selectedItems&&(f(e.selectedItems),s(_n(_n({},t),{},(0,i.Z)({},r,e.selectedItems.map((function(e){return e.value}))))))},listItemStyleProps:{overflow:"hidden"},highlightItemBg:"gray.400",toggleButtonStyleProps:{variant:"outline"},inputStyleProps:{mt:2,height:8,focusBorderColor:d,color:"gray.800",borderColor:"gray.500"},tagStyleProps:{justifyContent:"flex-start",fontSize:10,borderColor:d,borderWidth:1,borderRadius:"md",color:d,bg:"",height:4,mb:2},hideToggleButton:!0,itemRenderer:function(e){return e.label}})};function qn(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 Xn(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?qn(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):qn(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Gn=function(e){var n=e.colorList,t=e.tagColors,r=e.setTagColors,o=e.highlightColor,l=e.tags.map((function(e){return{value:e,label:e}})),s=(0,v.useState)(Object.keys(t).map((function(e){return{value:e,label:e}}))),c=s[0],a=s[1];return(0,re.jsxs)(d.Box,{children:[(0,re.jsx)(Mn.CUIAutoComplete,{items:l,labelStyleProps:{fontWeight:300,fontSize:14},label:"Add tag to color",placeholder:" ",disableCreateItem:!0,selectedItems:c,onSelectedItemsChange:function(e){e.selectedItems&&(a(Array.from(new Set(e.selectedItems))),r(Object.fromEntries(Array.from(new Set(e.selectedItems)).map((function(e){var n;return[e.label,null!==(n=t[e.label])&&void 0!==n?n:"gray.600"]})))))},listItemStyleProps:{overflow:"hidden"},highlightItemBg:"gray.400",toggleButtonStyleProps:{variant:"outline"},inputStyleProps:{height:8,focusBorderColor:o,color:"gray.800",borderColor:"gray.500"},tagStyleProps:{display:"none",rounded:"full",bg:o,height:8,paddingLeft:4,fontWeight:"bold"},hideToggleButton:!0,itemRenderer:function(e){return e.label}}),(0,re.jsx)(d.VStack,{spacing:2,justifyContent:"flex-start",divider:(0,re.jsx)(d.StackDivider,{borderColor:"gray.500"}),align:"stretch",color:"gray.800",children:Object.keys(t).map((function(e){return(0,re.jsxs)(d.Flex,{alignItems:"center",justifyContent:"space-between",width:"100%",pl:2,children:[(0,re.jsx)(d.Box,{width:"100%",children:(0,re.jsx)(d.Text,{children:e})}),(0,re.jsxs)(A.v2,{isLazy:!0,placement:"right",children:[(0,re.jsx)(A.j2,{as:h.Button,colorScheme:"",color:"black",children:(0,re.jsx)(d.Box,{bgColor:t[e],borderRadius:"sm",height:6,width:6})}),(0,re.jsx)(en.h_,{children:(0,re.jsx)(A.qy,{minW:10,zIndex:"popover",bgColor:"gray.200",children:n.map((function(n){return(0,re.jsx)(A.sN,{onClick:function(){return r(Xn(Xn({},t),{},(0,i.Z)({},e,n)))},justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,re.jsx)(d.Box,{bgColor:n,borderRadius:"sm",height:6,width:6})},n)}))})})]}),(0,re.jsx)(h.IconButton,{"aria-label":"Delete tag color",variant:"ghost",icon:(0,re.jsx)(V.DeleteIcon,{}),onClick:function(){r(Object.fromEntries(Array.from(new Set(c)).map((function(e){var n;return[e.label,null!==(n=t[e.label])&&void 0!==n?n:"gray.600"]})))),a(c.filter((function(n){return n.value!==e})))}})]},e)}))})]})},Qn=t(80918),Jn=function(e){var n=e.infoText;return(0,re.jsx)(d.Box,{paddingLeft:"1",children:(0,re.jsx)(u.u,{label:n,placement:"top",color:"gray.100",bg:"gray.800",hasArrow:!0,children:(0,re.jsx)(V.InfoOutlineIcon,{})})})},Kn=["min","max","step","value"],$n=function(e){var n=e.min,t=void 0===n?0:n,r=e.max,o=void 0===r?10:r,i=e.step,l=void 0===i?.1:i,s=e.value,c=void 0===s?1:s,a=(0,q.Z)(e,Kn),h=a.onChange,g=a.label,f=a.infoText,p=(0,v.useContext)(nn.N).highlightColor;return(0,re.jsxs)(d.Box,{pt:1,pb:2,children:[(0,re.jsxs)(d.Box,{display:"flex",alignItems:"flex-end",mb:2,children:[(0,re.jsx)(d.Text,{children:g}),f&&(0,re.jsx)(Jn,{infoText:f})]}),(0,re.jsxs)(Qn.iR,{value:c,onChange:h,min:t,max:o,step:l,children:[(0,re.jsx)(Qn.Uj,{children:(0,re.jsx)(Qn.Ms,{})}),(0,re.jsx)(u.u,{bg:p,label:c.toFixed(1),children:(0,re.jsx)(Qn.gs,{bg:"white"})})]})]},g)},Yn=(0,v.createContext)({subDirs:["dailies",".attach"],attachDir:".attach",useInheritance:!1,roamDir:"~/org",dailyDir:"dailies"});function et(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 nt(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?et(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):et(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var tt=function(e){var n=e.filter,t=e.setFilter,r=e.local,o=e.setLocal,i=e.tagColors,l=e.setTagColors,s=e.highlightColor,c=e.colorList,a=e.tags,u=(0,v.useContext)(Yn),g=u.roamDir,f=u.subDirs;return(0,re.jsxs)(d.Box,{children:[(0,re.jsxs)(d.VStack,{spacing:2,justifyContent:"flex-start",divider:(0,re.jsx)(d.StackDivider,{borderColor:"gray.500"}),align:"stretch",paddingLeft:7,color:"gray.800",children:[(0,re.jsxs)(d.Flex,{alignItems:"center",justifyContent:"space-between",children:[(0,re.jsx)(d.Text,{children:"Link children to"}),(0,re.jsxs)(A.v2,{isLazy:!0,placement:"right",children:[(0,re.jsx)(A.j2,{as:h.Button,rightIcon:(0,re.jsx)(V.ChevronDownIcon,{}),colorScheme:"",color:"black",size:"sm",children:function(){switch(n.parent){case"parent":return(0,re.jsx)(d.Text,{children:"File"});case"heading":return(0,re.jsx)(d.Text,{children:"Heading"});default:return(0,re.jsx)(d.Text,{children:"Nothing"})}}()}),(0,re.jsx)(en.h_,{children:(0,re.jsxs)(A.qy,{bgColor:"gray.200",zIndex:"popover",children:[(0,re.jsx)(A.sN,{onClick:function(){return t((function(e){return nt(nt({},e),{},{parent:""})}))},children:"Nothing"}),(0,re.jsx)(A.sN,{onClick:function(){return t((function(e){return nt(nt({},e),{},{parent:"parent"})}))},children:"Parent file node"}),(0,re.jsx)(A.sN,{onClick:function(){return t((function(e){return nt(nt({},e),{},{parent:"heading"})}))},children:"Next highest heading node"})]})})]})]}),(0,re.jsxs)(d.Flex,{justifyContent:"space-between",children:[(0,re.jsx)(d.Text,{children:"Orphans"}),(0,re.jsx)(An.r,{onChange:function(){t((function(e){return nt(nt({},e),{},{orphans:!e.orphans})}))},isChecked:n.orphans})]}),(0,re.jsxs)(d.Flex,{justifyContent:"space-between",children:[(0,re.jsx)(d.Text,{children:"Dailies"}),(0,re.jsx)(An.r,{onChange:function(){t((function(e){return nt(nt({},e),{},{dailies:!e.dailies})}))},isChecked:n.dailies})]}),(0,re.jsxs)(d.Flex,{justifyContent:"space-between",children:[(0,re.jsx)(d.Text,{children:"Org-noter pages"}),(0,re.jsx)(An.r,{onChange:function(){t((function(e){return nt(nt({},e),{},{noter:!e.noter})}))},isChecked:n.noter})]}),(0,re.jsxs)(d.Flex,{justifyContent:"space-between",children:[(0,re.jsx)(d.Text,{children:"Citations without note files"}),(0,re.jsx)(An.r,{onChange:function(){t(nt(nt({},n),{},{filelessCites:!n.filelessCites}))},isChecked:n.filelessCites})]}),(0,re.jsxs)(d.Flex,{justifyContent:"space-between",children:[(0,re.jsx)(d.Text,{children:"Non-existent nodes"}),(0,re.jsx)(An.r,{onChange:function(){l(nt(nt({},i),{},{bad:"white"})),t(nt(nt({},n),{},{bad:!n.bad}))},isChecked:n.bad})]}),(0,re.jsx)($n,{label:"Number of neighbors in local graph",value:r.neighbors,onChange:function(e){return o(nt(nt({},r),{},{neighbors:e}))},min:1,max:5,step:1})]}),(0,re.jsxs)(Wn.UQ,{padding:0,allowToggle:!0,allowMultiple:!0,paddingLeft:3,children:[(0,re.jsxs)(Wn.Qd,{children:[(0,re.jsxs)(Wn.KF,{children:["Directory filters",(0,re.jsx)(Wn.XE,{})]}),(0,re.jsxs)(Wn.Hk,{pr:0,mr:0,children:[(0,re.jsx)(Un,{filter:n,setFilter:t,options:f,displayName:"directory blocklist",listName:"dirsBlocklist",labelFilter:g}),(0,re.jsx)(Un,{filter:n,setFilter:t,options:f,displayName:"directory allowlist",listName:"dirsAllowlist",labelFilter:g})]})]}),(0,re.jsxs)(Wn.Qd,{children:[(0,re.jsxs)(Wn.KF,{children:["Tag filters",(0,re.jsx)(Wn.XE,{})]}),(0,re.jsxs)(Wn.Hk,{pr:0,mr:0,children:[(0,re.jsx)(Un,{filter:n,setFilter:t,options:a,displayName:"tag blocklist",listName:"tagsBlacklist"}),(0,re.jsx)(Un,{filter:n,setFilter:t,options:a,displayName:"tag allowlist",listName:"tagsWhitelist"})]})]}),(0,re.jsxs)(Wn.Qd,{children:[(0,re.jsxs)(Wn.KF,{children:["Tag colors",(0,re.jsx)(Wn.XE,{})]}),(0,re.jsx)(Wn.Hk,{pr:0,mr:0,children:(0,re.jsx)(Gn,{tags:a,colorList:c,tagColors:i,setTagColors:l,highlightColor:s})})]})]})]})},rt=t(37496),ot=function(e){var n=e.value,t=e.onChange,r=e.label,o=e.infoText,i=e.children;return(0,re.jsxs)(d.Box,{paddingTop:2,children:[(0,re.jsxs)(d.Box,{display:"flex",justifyContent:"space-between",paddingBottom:2,children:[(0,re.jsxs)(d.Box,{display:"flex",alignItems:"center",children:[(0,re.jsx)(d.Text,{children:r}),o&&(0,re.jsx)(Jn,{infoText:o})]}),(0,re.jsx)(An.r,{isChecked:!!n,onChange:t})]}),(0,re.jsx)(rt.UO,{in:!!n,animateOpacity:!0,children:(0,re.jsx)(d.Box,{paddingLeft:4,paddingTop:2,paddingBottom:2,children:i})})]},r)};function it(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 lt(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?it(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):it(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var st=function(e){var n=e.physics,t=e.setPhysics,r=(0,v.useCallback)((function(e,n,r){t((function(t){return lt(lt({},t),{},(0,i.Z)({},n,e/r))}))}),[]);return(0,re.jsxs)(d.Box,{children:[(0,re.jsxs)(d.VStack,{spacing:2,justifyContent:"flex-start",divider:(0,re.jsx)(d.StackDivider,{borderColor:"gray.500"}),align:"stretch",paddingLeft:7,color:"gray.800",children:[(0,re.jsxs)(ot,{label:"Gravity",value:n.gravityOn,onChange:function(){return t(lt(lt({},n),{},{gravityOn:!n.gravityOn}))},children:[(0,re.jsxs)(d.Flex,{justifyContent:"space-between",children:[(0,re.jsx)(d.Text,{children:"Also in local"}),(0,re.jsx)(An.r,{onChange:function(){t((function(e){return lt(lt({},e),{},{gravityLocal:!e.gravityLocal})}))},isChecked:n.gravityLocal})]}),(0,re.jsx)($n,{label:"Strength",value:10*n.gravity,onChange:function(e){return r(e,"gravity",10)}})]}),(0,re.jsx)($n,{value:-n.charge/100,onChange:function(e){return r(e,"charge",-.01)},label:"Repulsive Force"}),(0,re.jsx)($n,{value:5*n.linkStrength,onChange:function(e){return r(e,"linkStrength",5)},label:"Link Force"}),(0,re.jsx)($n,{label:"Stabilization rate",value:50*n.alphaDecay,onChange:function(e){return r(e,"alphaDecay",50)}})]}),(0,re.jsx)(d.Box,{children:(0,re.jsx)(Wn.UQ,{paddingLeft:3,allowToggle:!0,children:(0,re.jsxs)(Wn.Qd,{children:[(0,re.jsxs)(Wn.KF,{children:[(0,re.jsx)(d.Text,{children:"Advanced"}),(0,re.jsx)(Wn.XE,{marginRight:2})]}),(0,re.jsx)(Wn.Hk,{children:(0,re.jsxs)(d.VStack,{spacing:2,justifyContent:"flex-start",divider:(0,re.jsx)(d.StackDivider,{borderColor:"gray.500"}),align:"stretch",paddingLeft:3,color:"gray.800",children:[(0,re.jsx)(ot,{label:"Collision",infoText:"Perfomance sap, disable if slow",value:n.collision,onChange:function(){return t(lt(lt({},n),{},{collision:!n.collision}))},children:(0,re.jsx)($n,{value:n.collisionStrength/5,onChange:function(e){return r(e,"collisionStrength",.2)},label:"Collision Radius",infoText:"Easy with this one, high values can lead to a real jiggly mess"})}),(0,re.jsx)($n,{label:"Link iterations",value:n.linkIts,onChange:function(e){return r(e,"linkIts",1)},min:0,max:6,step:1,infoText:"How many links down the line the physics of a single node affects (Slow)"}),(0,re.jsx)($n,{label:"Viscosity",value:10*n.velocityDecay,onChange:function(e){return r(e,"velocityDecay",10)}}),(0,re.jsx)(ot,{label:"Center nodes",value:n.centering,onChange:function(){return t(lt(lt({},n),{},{centering:!n.centering}))},infoText:"Keeps the nodes in the center of the viewport. If disabled you can drag the nodes anywhere you want.",children:(0,re.jsx)($n,{label:"Centering Strength",value:n.centeringStrength,max:2,step:.01,onChange:function(e){return r(e,"centeringStrength",1)}})})]})})]})})})]})};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 at(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ct(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ct(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var dt=function(e){var n=e.behavior,t=e.setBehavior,r=e.mouse,o=e.setMouse;return(0,re.jsxs)(d.VStack,{spacing:2,justifyContent:"flex-start",divider:(0,re.jsx)(d.StackDivider,{borderColor:"gray.500"}),align:"stretch",paddingLeft:7,color:"gray.800",children:[(0,re.jsxs)(d.Flex,{alignItems:"center",justifyContent:"space-between",children:[(0,re.jsx)(d.Text,{children:"Preview node"}),(0,re.jsxs)(A.v2,{isLazy:!0,placement:"right",children:[(0,re.jsx)(A.j2,{as:h.Button,rightIcon:(0,re.jsx)(V.ChevronDownIcon,{}),colorScheme:"",color:"black",children:(0,re.jsx)(d.Text,{children:r.preview?r.preview[0].toUpperCase()+r.preview.slice(1):"Never"})}),(0,re.jsxs)(en.h_,{children:[" ",(0,re.jsxs)(A.qy,{bgColor:"gray.200",zIndex:"popover",children:[(0,re.jsx)(A.sN,{onClick:function(){return o(at(at({},r),{},{preview:""}))},children:"Never"}),(0,re.jsx)(A.sN,{onClick:function(){return o(at(at({},r),{},{preview:"click"}))},children:"Click"}),(0,re.jsx)(A.sN,{onClick:function(){return o(at(at({},r),{},{preview:"double"}))},children:"Double Click"})]})]})]})]}),(0,re.jsxs)(d.Flex,{alignItems:"center",justifyContent:"space-between",children:[(0,re.jsxs)(d.Flex,{children:[(0,re.jsx)(d.Text,{children:"Expand Node"}),(0,re.jsx)(Jn,{infoText:"View only the node and its direct neighbors"})]}),(0,re.jsxs)(A.v2,{isLazy:!0,placement:"right",children:[(0,re.jsx)(A.j2,{as:h.Button,rightIcon:(0,re.jsx)(V.ChevronDownIcon,{}),colorScheme:"",color:"black",children:(0,re.jsx)(d.Text,{children:r.local?r.local[0].toUpperCase()+r.local.slice(1):"Never"})}),(0,re.jsxs)(en.h_,{children:[" ",(0,re.jsxs)(A.qy,{zIndex:"popover",bgColor:"gray.200",children:[(0,re.jsx)(A.sN,{onClick:function(){return o(at(at({},r),{},{local:""}))},children:"Never"}),(0,re.jsx)(A.sN,{onClick:function(){return o(at(at({},r),{},{local:"click"}))},children:"Click"}),(0,re.jsx)(A.sN,{onClick:function(){return o(at(at({},r),{},{local:"double"}))},children:"Double Click"}),(0,re.jsx)(A.sN,{onClick:function(){return o(at(at({},r),{},{local:"right"}))},children:"Right Click"})]})]})]})]}),(0,re.jsxs)(d.Flex,{alignItems:"center",justifyContent:"space-between",children:[(0,re.jsx)(d.Text,{children:"Open in Emacs"}),(0,re.jsxs)(A.v2,{isLazy:!0,placement:"right",children:[(0,re.jsx)(A.j2,{as:h.Button,rightIcon:(0,re.jsx)(V.ChevronDownIcon,{}),colorScheme:"",color:"black",children:(0,re.jsx)(d.Text,{children:r.follow?r.follow[0].toUpperCase()+r.follow.slice(1):"Never"})}),(0,re.jsxs)(en.h_,{children:[" ",(0,re.jsxs)(A.qy,{bgColor:"gray.200",zIndex:"popover",children:[(0,re.jsx)(A.sN,{onClick:function(){return o(at(at({},r),{},{follow:""}))},children:"Never"}),(0,re.jsx)(A.sN,{onClick:function(){return o(at(at({},r),{},{follow:"click"}))},children:"Click"}),(0,re.jsx)(A.sN,{onClick:function(){return o(at(at({},r),{},{follow:"double"}))},children:"Double Click"}),(0,re.jsx)(A.sN,{onClick:function(){return o(at(at({},r),{},{follow:"right"}))},children:"Right Click"})]})]})]})]}),(0,re.jsxs)(d.Flex,{alignItems:"center",justifyContent:"space-between",children:[(0,re.jsx)(d.Text,{children:"Follow Emacs by..."}),(0,re.jsxs)(A.v2,{isLazy:!0,placement:"right",children:[(0,re.jsx)(A.j2,{as:h.Button,rightIcon:(0,re.jsx)(V.ChevronDownIcon,{}),colorScheme:"",color:"black",children:(0,re.jsx)(d.Text,{children:n.follow[0].toUpperCase()+n.follow.slice(1)})}),(0,re.jsxs)(en.h_,{children:[" ",(0,re.jsxs)(A.qy,{bgColor:"gray.200",zIndex:"popover",children:[(0,re.jsx)(A.sN,{onClick:function(){return t(at(at({},n),{},{follow:"color"}))},children:"Just coloring the currently opened node"}),(0,re.jsx)(A.sN,{onClick:function(){return t(at(at({},n),{},{follow:"local"}))},children:"Opening the local graph"}),(0,re.jsx)(A.sN,{onClick:function(){return t(at(at({},n),{},{follow:"zoom"}))},children:"Zooming to the current node"})]})]})]})]}),(0,re.jsxs)(d.Flex,{alignItems:"center",justifyContent:"space-between",children:[(0,re.jsxs)(d.Flex,{children:[(0,re.jsx)(d.Text,{children:"Local graph"}),(0,re.jsx)(Jn,{infoText:"When in local mode and clicking a new node, should I add that node's local graph or open the new one?"})]}),(0,re.jsxs)(A.v2,{isLazy:!0,placement:"right",children:[(0,re.jsx)(A.j2,{as:h.Button,rightIcon:(0,re.jsx)(V.ChevronDownIcon,{}),colorScheme:"",color:"black",children:(0,re.jsx)(d.Text,{children:"add"===n.localSame?"Add":"Replace"})}),(0,re.jsxs)(en.h_,{children:[" ",(0,re.jsxs)(A.qy,{bgColor:"gray.200",zIndex:"popover",children:[(0,re.jsx)(A.sN,{onClick:function(){return t(at(at({},n),{},{localSame:"replace"}))},children:"Open that nodes graph"}),(0,re.jsx)(A.sN,{onClick:function(){return t(at(at({},n),{},{localSame:"add"}))},children:"Add node to local graph"})]})]})]})]}),(0,re.jsx)($n,{label:"Zoom speed",value:n.zoomSpeed,min:0,max:4e3,step:100,onChange:function(e){return t(at(at({},n),{},{zoomSpeed:e}))}}),(0,re.jsx)($n,{label:"Zoom padding",value:n.zoomPadding,min:0,max:400,step:1,onChange:function(e){return t(at(at({},n),{},{zoomPadding:e}))},infoText:"How much to zoom out to accomodate all nodes when changing the view."})]})},ut=t(11391);function ht(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 gt(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ht(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ht(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var ft=function(e){var n=e.visuals,t=e.setVisuals;return(0,re.jsx)(d.VStack,{spacing:2,justifyContent:"flex-start",divider:(0,re.jsx)(d.StackDivider,{borderColor:"gray.500"}),align:"stretch",color:"gray.800",children:(0,re.jsx)(d.Box,{children:(0,re.jsx)(ot,{label:"Highlight",onChange:function(){return t((function(e){return gt(gt({},e),{},{highlight:!e.highlight})}))},value:n.highlight,children:(0,re.jsxs)(d.VStack,{spacing:1,justifyContent:"flex-start",divider:(0,re.jsx)(d.StackDivider,{borderColor:"gray.400"}),align:"stretch",paddingLeft:0,children:[(0,re.jsx)($n,{label:"Highlight Link Thickness",value:n.highlightLinkSize,onChange:function(e){return t((function(n){return gt(gt({},n),{},{highlightLinkSize:e})}))}}),(0,re.jsx)($n,{label:"Highlight Node Size",value:n.highlightNodeSize,onChange:function(e){return t((function(n){return gt(gt({},n),{},{highlightNodeSize:e})}))}}),(0,re.jsx)($n,{min:0,max:1,label:"Highlight Fade",value:n.highlightFade,onChange:function(e){return t((function(n){return gt(gt({},n),{},{highlightFade:e})}))}}),(0,re.jsxs)(ot,{label:"Highlight Animation",onChange:function(){t((function(e){return gt(gt({},e),{},{highlightAnim:!e.highlightAnim})}))},value:n.highlightAnim,children:[(0,re.jsx)($n,{label:"Animation speed",onChange:function(e){return t((function(n){return gt(gt({},n),{},{animationSpeed:e})}))},value:n.animationSpeed,infoText:"Slower speed has a chance of being buggy",min:50,max:1e3,step:10}),(0,re.jsx)(ut.Ph,{placeholder:n.algorithmName,onChange:function(e){t((function(n){return gt(gt({},n),{},{algorithmName:e.target.value})}))},children:n.algorithmOptions.map((function(e){return(0,re.jsx)("option",{value:e,children:e},e)}))})]})]})})})})};function pt(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 xt(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?pt(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):pt(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var jt=function(e){var n=e.label,t=e.colorList,r=e.value,o=e.visValue,l=e.setVisuals,s=e.noEmpty,c=(0,v.useCallback)((function(e){return l((function(n){return xt(xt({},n),{},(0,i.Z)({},r,e))}))}),[]);return(0,re.jsxs)(d.Flex,{alignItems:"center",justifyContent:"space-between",children:[(0,re.jsx)(d.Text,{children:n}),(0,re.jsxs)(Ye.J2,{isLazy:!0,placement:"right",children:[(0,re.jsx)(Ye.xo,{children:(0,re.jsx)(h.Button,{colorScheme:"",color:"black",rightIcon:(0,re.jsx)(V.ChevronDownIcon,{}),children:(0,re.jsx)(d.Box,{bgColor:o,borderRadius:"sm",height:6,width:6})})}),(0,re.jsx)(en.h_,{children:(0,re.jsx)(Ye.yk,{zIndex:"tooltip",maxW:36,position:"relative",children:(0,re.jsxs)(d.Flex,{flexWrap:"wrap",bgColor:"gray.200",children:[!s&&(0,re.jsx)(d.Box,{onClick:function(){return c("")},justifyContent:"space-between",alignItems:"center",display:"flex",m:1,children:(0,re.jsx)(d.Box,{height:6,width:6,borderColor:"gray.600",borderRadius:"xl",borderWidth:1})}),t.map((function(e){return(0,re.jsx)(d.Box,{m:1,onClick:function(){return c(e)},justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,re.jsx)(d.Box,{bgColor:e,borderRadius:"xl",height:6,width:6})},e)}))]})})})]})]})};function vt(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;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?vt(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):vt(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var mt=function(e){var n=e.visuals,t=e.setVisualsCallback,r=e.highlightColor,i=e.setHighlightColor;return(0,re.jsx)(d.VStack,{spacing:2,justifyContent:"flex-start",divider:(0,re.jsx)(d.StackDivider,{borderColor:"gray.500"}),align:"stretch",color:"gray.800",children:(0,re.jsxs)(d.Box,{children:[(0,re.jsxs)(d.Flex,{alignItems:"center",justifyContent:"space-between",children:[(0,re.jsx)(d.Text,{children:"Nodes"}),(0,re.jsx)(u.u,{label:"Shuffle node colors",children:(0,re.jsx)(h.IconButton,{"aria-label":"Shuffle node colors",size:"sm",icon:(0,re.jsx)(V.RepeatIcon,{}),variant:"ghost",onClick:function(){var e,r=null!==(e=n.nodeColorScheme)&&void 0!==e?e:[];t(bt(bt({},n),{},{nodeColorScheme:r.map((function(e){return[Math.random(),e]})).sort((function(e,n){return(0,l.Z)(e,1)[0]-(0,l.Z)(n,1)[0]})).map((function(e){var n=(0,l.Z)(e,2);n[0];return n[1]}))}))}})}),(0,re.jsx)(u.u,{label:"Cycle node colors",children:(0,re.jsx)(h.IconButton,{"aria-label":"Shift node colors",icon:(0,re.jsx)(V.ArrowRightIcon,{}),size:"sm",variant:"ghost",onClick:function(){var e,r=null!==(e=n.nodeColorScheme)&&void 0!==e?e:[];t(bt(bt({},n),{},{nodeColorScheme:[].concat((0,o.Z)(r.slice(1,r.length)),[r[0]])}))}})}),(0,re.jsxs)(A.v2,{isLazy:!0,placement:"right",closeOnSelect:!1,matchWidth:!0,children:[(0,re.jsx)(A.j2,{width:20,as:h.Button,colorScheme:"",color:"black",rightIcon:(0,re.jsx)(V.ChevronDownIcon,{}),children:(0,re.jsx)(d.Flex,{height:6,width:6,flexDirection:"column",flexWrap:"wrap",children:n.nodeColorScheme.map((function(e){return(0,re.jsx)(d.Box,{bgColor:e,flex:"1 1 8px",borderRadius:"2xl"},e)}))})}),(0,re.jsxs)(en.h_,{children:[" ",(0,re.jsx)(A.qy,{minW:10,zIndex:"popover",bgColor:"gray.200",children:(0,re.jsx)(A.__,{width:500,type:"checkbox",defaultValue:n.nodeColorScheme,onChange:function(e){e.length&&t(bt(bt({},n),{},{nodeColorScheme:e}))},children:W.map((function(e){return(0,re.jsx)(A.ii,{isChecked:n.nodeColorScheme.some((function(n){return n===e})),value:e,isDisabled:1===n.nodeColorScheme.length&&n.nodeColorScheme[0]===e,children:(0,re.jsx)(d.Box,{justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,re.jsx)(d.Box,{bgColor:e,borderRadius:"sm",height:6,width:6})})},e)}))})})]})]})]}),(0,re.jsxs)(d.Flex,{alignItems:"center",justifyContent:"space-between",children:[(0,re.jsx)(d.Text,{children:"Links"}),(0,re.jsxs)(A.v2,{isLazy:!0,placement:"right",children:[(0,re.jsx)(A.j2,{as:h.Button,colorScheme:"",color:"black",rightIcon:(0,re.jsx)(V.ChevronDownIcon,{}),children:(0,re.jsx)(d.Box,{children:n.linkColorScheme?(0,re.jsx)(d.Box,{bgColor:n.linkColorScheme,borderRadius:"sm",height:6,width:6}):(0,re.jsx)(d.Flex,{height:6,width:6,flexDirection:"column",flexWrap:"wrap",children:n.nodeColorScheme.map((function(e){return(0,re.jsx)(d.Box,{bgColor:e,flex:"1 1 8px",borderRadius:"2xl"},e)}))})})}),(0,re.jsxs)(en.h_,{children:[" ",(0,re.jsxs)(A.qy,{minW:10,zIndex:"popover",bgColor:"gray.200",children:[(0,re.jsx)(A.sN,{onClick:function(){return t(bt(bt({},n),{},{linkColorScheme:""}))},justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,re.jsx)(d.Flex,{height:6,width:6,flexDirection:"column",flexWrap:"wrap",children:n.nodeColorScheme.map((function(e){return(0,re.jsx)(d.Box,{bgColor:e,flex:"1 1 8px",borderRadius:"2xl"},e)}))})}),W.map((function(e){return(0,re.jsx)(A.sN,{onClick:function(){return t(bt(bt({},n),{},{linkColorScheme:e}))},justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,re.jsx)(d.Box,{bgColor:e,borderRadius:"sm",height:6,width:6})},e)}))]})]})]})]}),(0,re.jsxs)(d.Flex,{alignItems:"center",justifyContent:"space-between",children:[(0,re.jsx)(d.Text,{children:"Accent"}),(0,re.jsxs)(A.v2,{isLazy:!0,placement:"right",children:[(0,re.jsx)(A.j2,{as:h.Button,colorScheme:"",color:"black",rightIcon:(0,re.jsx)(V.ChevronDownIcon,{}),children:(0,re.jsx)(d.Box,{bgColor:r,borderRadius:"sm",height:6,width:6})}),(0,re.jsxs)(en.h_,{children:[" ",(0,re.jsx)(A.qy,{minW:10,zIndex:"popover",bgColor:"gray.200",children:W.map((function(e){return(0,re.jsx)(A.sN,{onClick:function(){return i(e)},justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,re.jsx)(d.Box,{bgColor:e,borderRadius:"sm",height:6,width:6})},e)}))})]})]})]}),(0,re.jsx)(jt,{colorList:W,label:"Link highlight",setVisuals:t,value:"linkHighlight",visValue:n.linkHighlight}),(0,re.jsx)(jt,{colorList:W,label:"Node highlight",setVisuals:t,value:"nodeHighlight",visValue:n.nodeHighlight}),(0,re.jsx)(jt,{colorList:W,label:"Background",setVisuals:t,value:"backgroundColor",visValue:n.backgroundColor}),(0,re.jsx)(jt,{colorList:W,label:"Emacs node",setVisuals:t,value:"emacsNodeColor",visValue:n.emacsNodeColor})]})})};function yt(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 Ct(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?yt(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):yt(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var wt=function(e){var n=e.visuals,t=e.setVisuals,r=e.threeDim;return(0,re.jsx)(d.VStack,{spacing:2,justifyContent:"flex-start",divider:(0,re.jsx)(d.StackDivider,{borderColor:"gray.500"}),align:"stretch",color:"gray.800",children:(0,re.jsxs)(d.Box,{children:[(0,re.jsx)($n,{label:"Node size",value:n.nodeRel,onChange:function(e){return t(Ct(Ct({},n),{},{nodeRel:e}))}}),(0,re.jsx)($n,{label:"Node degree size multiplier",value:n.nodeSizeLinks,min:0,max:2,onChange:function(e){return t(Ct(Ct({},n),{},{nodeSizeLinks:e}))}}),(0,re.jsx)($n,{label:"Node zoom invariance",value:n.nodeZoomSize,min:0,max:2,infoText:"How much the graph will try to keep the nodesize consistent across zoom scales. 0 is no consistency, node will always be their true size, 1 is linear, 2 is quadratic.",onChange:function(e){return t((function(n){return Ct(Ct({},n),{},{nodeZoomSize:e})}))}}),r&&(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)($n,{label:"Node opacity",value:n.nodeOpacity,min:0,max:1,onChange:function(e){return t(Ct(Ct({},n),{},{nodeOpacity:e}))}}),(0,re.jsx)($n,{label:"Node resolution",value:n.nodeResolution,min:5,max:32,step:1,onChange:function(e){return t(Ct(Ct({},n),{},{nodeResolution:e}))}})]}),(0,re.jsx)($n,{label:"Link width",value:n.linkWidth,onChange:function(e){return t(Ct(Ct({},n),{},{linkWidth:e}))}}),r&&(0,re.jsx)($n,{label:"Link opacity",min:0,max:1,value:n.linkOpacity,onChange:function(e){return t(Ct(Ct({},n),{},{linkOpacity:e}))}}),(0,re.jsxs)(ot,{label:"Link arrows",value:n.arrows,onChange:function(){return t(Ct(Ct({},n),{},{arrows:!n.arrows}))},children:[(0,re.jsx)($n,{label:"Arrow size",value:n.arrowsLength/10,onChange:function(e){return t(Ct(Ct({},n),{},{arrowsLength:10*e}))}}),(0,re.jsx)($n,{label:"Arrow Position",value:n.arrowsPos,min:0,max:1,step:.01,onChange:function(e){return t(Ct(Ct({},n),{},{arrowsPos:e}))}}),(0,re.jsx)(jt,{colorList:W,label:"Arrow Color",setVisuals:t,value:"arrowsColor",visValue:n.arrowsColor},"arrow")]}),(0,re.jsxs)(ot,{label:"Directional Particles",value:n.particles,onChange:function(){return t(Ct(Ct({},n),{},{particles:!n.particles}))},children:[(0,re.jsx)($n,{label:"Particle Number",value:n.particlesNumber,max:5,step:1,onChange:function(e){return t(Ct(Ct({},n),{},{particlesNumber:e}))}}),(0,re.jsx)($n,{label:"Particle Size",value:n.particlesWidth,onChange:function(e){return t(Ct(Ct({},n),{},{particlesWidth:e}))}})]})]})})};function Ot(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 kt(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Ot(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ot(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var St=function(e){var n=e.visuals,t=e.setVisuals;return(0,re.jsxs)(d.VStack,{spacing:2,justifyContent:"flex-start",divider:(0,re.jsx)(d.StackDivider,{borderColor:"gray.400"}),align:"stretch",color:"gray.800",children:[(0,re.jsxs)(d.Flex,{alignItems:"center",justifyContent:"space-between",children:[(0,re.jsx)(d.Text,{children:"Show labels"}),(0,re.jsxs)(A.v2,{isLazy:!0,placement:"right",children:[(0,re.jsx)(A.j2,{as:h.Button,colorScheme:"",color:"black",rightIcon:(0,re.jsx)(V.ChevronDownIcon,{}),children:n.labels?n.labels<2?"On Highlight":"Always":"Never"}),(0,re.jsxs)(en.h_,{children:[" ",(0,re.jsxs)(A.qy,{zIndex:"popover",bgColor:"gray.200",children:[(0,re.jsx)(A.sN,{onClick:function(){return t(kt(kt({},n),{},{labels:0}))},children:"Never"}),(0,re.jsx)(A.sN,{onClick:function(){return t(kt(kt({},n),{},{labels:1}))},children:"On Highlight"}),(0,re.jsx)(A.sN,{onClick:function(){return t(kt(kt({},n),{},{labels:2}))},children:"Always"}),(0,re.jsx)(A.sN,{onClick:function(){return t(kt(kt({},n),{},{labels:3}))},children:"Always (even in 3D)"})]})]})]})]}),(0,re.jsxs)(rt.UO,{in:n.labels>1,animateOpacity:!0,children:[(0,re.jsx)(d.Box,{paddingTop:2,children:(0,re.jsx)($n,{label:"Label Appearance Scale",value:2*n.labelScale,onChange:function(e){return t(kt(kt({},n),{},{labelScale:e/2}))}})}),(0,re.jsxs)(d.Box,{paddingTop:2,children:[(0,re.jsx)($n,{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 kt(kt({},n),{},{labelDynamicStrength:e})}))}}),(0,re.jsx)(rt.UO,{in:n.labelDynamicStrength>0,children:(0,re.jsx)($n,{label:"Dynamic zoom degree cap",infoText:"The maximum number of links that is considered for the 'dynamic zoom effect'. Past this number all number of links are treated the same.",value:n.labelDynamicDegree,min:1,max:15,step:1,onChange:function(e){return t((function(n){return kt(kt({},n),{},{labelDynamicDegree:e})}))}})})]})]}),(0,re.jsx)(jt,{colorList:W,label:"Text",setVisuals:t,value:"labelTextColor",visValue:n.labelTextColor}),(0,re.jsxs)(d.Box,{children:[(0,re.jsx)(jt,{colorList:W,label:"Background",setVisuals:t,value:"labelBackgroundColor",visValue:n.labelBackgroundColor}),(0,re.jsx)(rt.UO,{in:!!n.labelBackgroundColor,animateOpacity:!0,children:(0,re.jsx)(d.Box,{paddingTop:2,children:(0,re.jsx)($n,{label:"Background opacity",value:n.labelBackgroundOpacity,onChange:function(e){console.log(n.labelBackgroundOpacity),t(kt(kt({},n),{},{labelBackgroundOpacity:e}))},min:0,max:1,step:.01})})})]}),(0,re.jsx)($n,{label:"Label font size",value:n.labelFontSize,min:5,max:20,step:.5,onChange:function(e){return t(kt(kt({},n),{},{labelFontSize:e}))}}),(0,re.jsx)($n,{label:"Max. label characters",value:n.labelLength,min:10,max:100,step:1,onChange:function(e){return t(kt(kt({},n),{},{labelLength:e}))}}),(0,re.jsx)($n,{label:"Max. label line length",value:n.labelWordWrap,min:10,max:100,step:1,onChange:function(e){return t(kt(kt({},n),{},{labelWordWrap:e}))}}),(0,re.jsx)($n,{label:"Space between label lines",value:n.labelLineSpace,min:.2,max:3,step:.1,onChange:function(e){return t(kt(kt({},n),{},{labelLineSpace:e}))}})]})},It=t(67690),Nt=function(){var e=(0,v.useContext)(nn.N),n=e.emacsTheme,t=e.setEmacsTheme;e.highlightColor;return(0,re.jsxs)(d.Flex,{alignItems:"center",justifyContent:"space-between",pl:7,pr:2,children:[(0,re.jsx)(d.Text,{children:"Theme"}),(0,re.jsxs)(A.v2,{isLazy:!0,placement:"bottom",closeOnSelect:!1,children:[(0,re.jsx)(A.j2,{as:h.Button,size:"sm",colorScheme:"",color:"black",rightIcon:(0,re.jsx)(V.ChevronDownIcon,{}),children:n[0]}),(0,re.jsxs)(A.qy,{minW:10,zIndex:"popover",bgColor:"gray.200",children:[(0,re.jsx)(A.sN,{onClick:function(){return""},justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,re.jsx)(d.Box,{height:6,width:6})}),Object.keys(It.n).map((function(e,n){return(0,re.jsxs)(A.sN,{onClick:function(){return t([e,It.n[e]])},justifyContent:"space-between",alignItems:"center",display:"flex",children:[(0,re.jsx)(d.Text,{children:e}),(0,re.jsx)(d.Flex,{height:6,width:20,flexDirection:"column",flexWrap:"wrap",children:Object.values(It.n[e]).map((function(e){return(0,re.jsx)(d.Box,{bgColor:e,flex:"1 1 8px"},e)}))})]},e)}))]})]})]})};function Pt(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 Dt(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Pt(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Pt(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Bt=function(e){var n=e.visuals,t=e.setVisuals;return(0,re.jsx)(d.VStack,{spacing:2,justifyContent:"flex-start",divider:(0,re.jsx)(d.StackDivider,{borderColor:"gray.500"}),align:"stretch",color:"gray.800",children:(0,re.jsxs)(d.Box,{children:[(0,re.jsxs)(ot,{label:"Dash cite links",infoText:"Add dashes to citation links made with org-roam-bibtex",value:n.citeDashes,onChange:function(){return t(Dt(Dt({},n),{},{citeDashes:!n.citeDashes}))},children:[(0,re.jsx)($n,{label:"Dash length",value:n.citeDashLength/10,onChange:function(e){return t(Dt(Dt({},n),{},{citeDashLength:10*e}))}}),(0,re.jsx)($n,{label:"Gap length",value:n.citeGapLength/5,onChange:function(e){return t(Dt(Dt({},n),{},{citeGapLength:5*e}))}})]}),(0,re.jsx)(jt,{colorList:W,label:"Citation node color",setVisuals:t,value:"citeNodeColor",visValue:n.citeNodeColor}),(0,re.jsx)(jt,{colorList:W,label:"Citation link color",setVisuals:t,value:"citeLinkColor",visValue:n.citeLinkColor}),(0,re.jsx)(jt,{colorList:W,label:"Reference link highlight",setVisuals:t,value:"citeLinkHighlightColor",visValue:n.citeLinkHighlightColor}),(0,re.jsxs)(ot,{label:"Dash ref links",infoText:"Add dashes to citation links, whose target has a note, made with org-roam-bibtex",value:n.refDashes,onChange:function(){return t(Dt(Dt({},n),{},{refDashes:!n.refDashes}))},children:[(0,re.jsx)($n,{label:"Dash length",value:n.refDashLength/10,onChange:function(e){return t(Dt(Dt({},n),{},{refDashLength:10*e}))}}),(0,re.jsx)($n,{label:"Gap length",value:n.refGapLength/5,onChange:function(e){return t(Dt(Dt({},n),{},{refGapLength:5*e}))}})]}),(0,re.jsx)(jt,{colorList:W,label:"Reference node color",setVisuals:t,value:"refNodeColor",visValue:n.refNodeColor}),(0,re.jsx)(jt,{colorList:W,label:"Reference link color",setVisuals:t,value:"refLinkColor",visValue:n.refLinkColor}),(0,re.jsx)(jt,{colorList:W,label:"Reference link highlight",setVisuals:t,value:"refLinkHighlightColor",visValue:n.refLinkHighlightColor})]})})};function Lt(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 Tt(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Lt(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Lt(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var zt=function(e){var n=e.coloring,t=e.setColoring;return(0,re.jsxs)(d.Flex,{alignItems:"center",justifyContent:"space-between",pl:7,pr:2,children:[(0,re.jsx)(d.Text,{children:"Graph coloring"}),(0,re.jsxs)(A.v2,{isLazy:!0,placement:"right",children:[(0,re.jsx)(A.j2,{as:h.Button,size:"sm",colorScheme:"",color:"black",rightIcon:(0,re.jsx)(V.ChevronDownIcon,{}),children:"degree"===n.method?"Links":"Communities"}),(0,re.jsx)(en.h_,{children:(0,re.jsxs)(A.qy,{minW:10,zIndex:"popover",bgColor:"gray.200",children:[(0,re.jsx)(A.sN,{onClick:function(){return t((function(e){return Tt(Tt({},e),{},{method:"degree"})}))},justifyContent:"space-between",alignItems:"center",display:"flex",children:"Number of links"}),(0,re.jsx)(A.sN,{onClick:function(){return t((function(e){return Tt(Tt({},e),{},{method:"community"})}))},justifyContent:"space-between",alignItems:"center",display:"flex",children:"Communities"})]})})]})]})},Ft=function(e){var n=e.coloring,t=e.setColoring,r=e.visuals,o=e.setVisuals,i=e.highlightColor,l=e.setHighlightColor,s=e.threeDim,c=(0,v.useCallback)((function(e){return o(e)}),[]);return(0,re.jsxs)(d.VStack,{justifyContent:"flex-start",align:"stretch",children:[(0,re.jsx)(Nt,{}),(0,re.jsx)(zt,{coloring:n,setColoring:t}),(0,re.jsxs)(Wn.UQ,{allowToggle:!0,defaultIndex:[0],paddingLeft:3,children:[(0,re.jsxs)(Wn.Qd,{children:[(0,re.jsx)(Wn.KF,{children:(0,re.jsxs)(d.Flex,{justifyContent:"space-between",w:"100%",children:[(0,re.jsx)(d.Text,{children:"Colors"}),(0,re.jsx)(Wn.XE,{marginRight:2})]})}),(0,re.jsx)(Wn.Hk,{children:(0,re.jsx)(mt,{visuals:r,setVisualsCallback:c,highlightColor:i,setHighlightColor:l})})]}),(0,re.jsxs)(Wn.Qd,{children:[(0,re.jsx)(Wn.KF,{children:(0,re.jsxs)(d.Flex,{justifyContent:"space-between",w:"100%",children:[(0,re.jsx)(d.Text,{children:"Nodes & Links"}),(0,re.jsx)(Wn.XE,{marginRight:2})]})}),(0,re.jsx)(Wn.Hk,{children:(0,re.jsx)(wt,{visuals:r,setVisuals:c,threeDim:s})})]}),(0,re.jsxs)(Wn.Qd,{children:[(0,re.jsx)(Wn.KF,{children:(0,re.jsxs)(d.Flex,{justifyContent:"space-between",w:"100%",children:[(0,re.jsx)(d.Text,{children:"Labels"}),(0,re.jsx)(Wn.XE,{marginRight:2})]})}),(0,re.jsx)(Wn.Hk,{children:(0,re.jsx)(St,{visuals:r,setVisuals:c})})]}),(0,re.jsxs)(Wn.Qd,{children:[(0,re.jsx)(Wn.KF,{children:(0,re.jsxs)(d.Flex,{justifyContent:"space-between",w:"100%",children:[(0,re.jsx)(d.Text,{children:"Highlighting"}),(0,re.jsx)(Wn.XE,{marginRight:2})]})}),(0,re.jsx)(Wn.Hk,{children:(0,re.jsx)(ft,{visuals:r,setVisuals:c})})]}),(0,re.jsxs)(Wn.Qd,{children:[(0,re.jsx)(Wn.KF,{children:(0,re.jsxs)(d.Flex,{justifyContent:"space-between",w:"100%",children:[(0,re.jsx)(d.Text,{children:"Citations"}),(0,re.jsx)(Wn.XE,{marginRight:2})]})}),(0,re.jsx)(Wn.Hk,{children:(0,re.jsx)(Bt,{visuals:r,setVisuals:c})})]})]})]})},Et=["style"];function Rt(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 Zt(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Rt(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Rt(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Ht=function(e){var n=e.physics,t=e.setPhysics,r=e.threeDim,o=e.setThreeDim,i=e.filter,s=e.setFilter,c=e.visuals,a=e.setVisuals,g=e.mouse,f=e.setMouse,p=e.behavior,x=e.setBehavior,j=e.tags,b=e.tagColors,m=e.setTagColors,y=e.coloring,C=e.setColoring,w=e.local,O=e.setLocal,k=zn("showTweaks",!1),S=(0,l.Z)(k,2),I=S[0],N=S[1],P=(0,v.useContext)(nn.N),D=P.highlightColor,B=P.setHighlightColor;return I?(0,re.jsxs)(d.Box,{position:"absolute",bg:"alt.100",w:"xs",marginTop:2,marginLeft:2,borderRadius:"lg",paddingBottom:5,zIndex:10,boxShadow:"xl",maxH:"95vh",fontSize:"sm",children:[(0,re.jsxs)(d.Box,{display:"flex",justifyContent:"space-between",alignItems:"center",paddingRight:2,paddingTop:1,children:[(0,re.jsx)(u.u,{label:"2D",children:(0,re.jsx)(h.Button,{onClick:function(){return o(!r)},variant:"subtle",zIndex:"overlay",children:r?"3D":"2D"})}),(0,re.jsxs)(d.Box,{display:"flex",alignItems:"center",children:[(0,re.jsx)(u.u,{label:"Reset settings to defaults",children:(0,re.jsx)(h.IconButton,{"aria-label":"Reset Defaults",icon:(0,re.jsx)(V.RepeatClockIcon,{}),onClick:function(){a(E),s(z),f(Z),t(T),x(R),C(F),B("purple.500"),O(H)},variant:"subtle",size:"sm"})}),(0,re.jsx)(h.IconButton,{size:"sm",icon:(0,re.jsx)(V.CloseIcon,{}),"aria-label":"Close Tweak Panel",variant:"subtle",onClick:function(){return N(!1)}})]})]}),(0,re.jsx)(ln.ZP,{autoHeight:!0,autoHeightMax:.85*globalThis.innerHeight,autoHide:!0,renderThumbVertical:function(e){var n=e.style,t=(0,q.Z)(e,Et);return(0,re.jsx)(d.Box,Zt(Zt({},t),{},{style:Zt(Zt({},n),{},{borderRadius:10}),bg:D}))},children:(0,re.jsxs)(Wn.UQ,{allowMultiple:!0,allowToggle:!0,color:"black",children:[(0,re.jsxs)(Wn.Qd,{children:[(0,re.jsxs)(Wn.KF,{children:[(0,re.jsx)(Wn.XE,{marginRight:2}),(0,re.jsx)(d.Heading,{size:"sm",children:"Filter"})]}),(0,re.jsx)(Wn.Hk,{children:(0,re.jsx)(tt,{filter:i,setFilter:s,tagColors:b,setTagColors:m,highlightColor:D,colorList:W,tags:j,local:w,setLocal:O})})]}),(0,re.jsxs)(Wn.Qd,{children:[(0,re.jsx)(Wn.KF,{display:"flex",justifyContent:"space-between",children:(0,re.jsxs)(d.Box,{display:"flex",children:[(0,re.jsx)(Wn.XE,{marginRight:2}),(0,re.jsx)(d.Heading,{size:"sm",children:"Physics"})]})}),(0,re.jsx)(Wn.Hk,{children:(0,re.jsx)(st,{physics:n,setPhysics:t})})]}),(0,re.jsxs)(Wn.Qd,{children:[(0,re.jsxs)(Wn.KF,{children:[(0,re.jsx)(Wn.XE,{marginRight:2}),(0,re.jsx)(d.Heading,{size:"sm",children:"Visual"})]}),(0,re.jsx)(Wn.Hk,{children:(0,re.jsx)(Ft,{visuals:c,setVisuals:a,highlightColor:D,setHighlightColor:B,threeDim:r,coloring:y,setColoring:C})})]}),(0,re.jsxs)(Wn.Qd,{children:[(0,re.jsxs)(Wn.KF,{children:[(0,re.jsx)(Wn.XE,{marginRight:2}),(0,re.jsx)(d.Heading,{size:"sm",children:"Behavior"})]}),(0,re.jsx)(Wn.Hk,{children:(0,re.jsx)(dt,{behavior:p,setBehavior:x,mouse:g,setMouse:f})})]})]})})]}):(0,re.jsx)(d.Box,{position:"absolute",zIndex:"overlay",marginTop:1,marginLeft:0,display:I?"none":"block",children:(0,re.jsx)(h.IconButton,{variant:"subtle","aria-label":"Settings",icon:(0,re.jsx)(V.SettingsIcon,{}),onClick:function(){return N(!0)}})})},Wt=t(22663),At=t.n(Wt),Mt=t(94244),Vt=function(e){var n,t=e.linksByNodeId,r=e.visuals,o=e.highlightedNodes,i=e.previouslyHighlightedNodes,l=e.opacity,s=e.node,c=null!==(n=t[s.id])&&void 0!==n?n:[],a=c.length?c.filter((function(e){return"parent"===e.type})).length:0,d=3+c.length*r.nodeSizeLinks-(Mt.hX.parent?0:a);return 1===r.highlightNodeSize?d:d*(o[s.id]||i[s.id]?1+l*(r.highlightNodeSize-1):1)};function _t(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(",")+")"}function Ut(e){var n,t,r,i,l=e.labelBackgroundColor,s=e.labelTextColor,c=e.node,a=e.ctx,d=e.globalScale,u=e.highlightedNodes,h=e.previouslyHighlightedNodes,g=e.visuals,f=e.opacity,p=e.filteredLinksByNodeId,x=(e.nodeRel,e.hoverNode),j=e.lastHoverNode;if(c&&g.labels){var v=null!==(n=null===x||void 0===x?void 0:x.id)&&void 0!==n?n:"",b=null!==(t=null===j||void 0===j?void 0:j.id)&&void 0!==t?t:"",m=null!==(r=p[c.id])&&void 0!==r?r:[],y=!(!u[c.id]&&!h[c.id]),C=Math.min(5*(d-g.labelScale)+2*Math.pow(Math.min(m.length,g.labelDynamicDegree),g.labelDynamicStrength),1);if(!(C<.01)||y){var w=null!==(i=c.title)&&void 0!==i?i:"",O=w.substring(0,g.labelLength),k=Math.cbrt(g.nodeRel*Vt({node:c,highlightedNodes:u,linksByNodeId:p,opacity:f,previouslyHighlightedNodes:h,visuals:g})/Math.pow(d,g.nodeZoomSize)),S=g.labelFontSize/Math.cbrt(Math.pow(d,g.nodeZoomSize)),I=[1.1*a.measureText(O).width,S].map((function(e){return e+.5*S})),N=function(e,n,t,r,o){return o?Math.max(e,r):1*e*(-1*(n.highlightFade*r-1))}(C,g,0,f,y);if(g.labelBackgroundColor&&g.labelBackgroundOpacity){var P=_t(l,N*g.labelBackgroundOpacity);a.fillStyle=P,a.fillRect.apply(a,[c.x-I[0]/2,c.y-I[1]/2+k].concat((0,o.Z)(I)))}a.textAlign="center",a.textBaseline="middle";var D=_t(s,N);a.fillStyle=D,a.font="".concat(S,"px Sans-Serif");var B=At()(O,{width:g.labelWordWrap}).split("\n"),L=w.length>g.labelLength?[].concat((0,o.Z)(B.slice(0,-1)),["".concat(B.slice(-1),"...")]):B,T=[v,b].includes(c.id)?1+.3*f:1;L.forEach((function(e,n){a.fillText(e,c.x,c.y+T*k*8+g.labelLineSpace*S*n)}))}}}var qt=function(e){var n,t,r,o,i,l=e.id,s=e.linksByNodeId,c=e.visuals,a=e.coloring,d=e.cluster,u=null!==(n=null===(t=s[l])||void 0===t?void 0:t.length)&&void 0!==n?n:0;return"degree"===a.method?c.nodeColorScheme[(r=u,o=0,i=c.nodeColorScheme.length-1,Math.min(Math.max(r,o),i))]:c.nodeColorScheme[u&&d[l]%c.nodeColorScheme.length]},Xt=function(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)},Gt=function(e){var n=e.sourceId,t=e.targetId,r=e.linksByNodeId,o=e.visuals,i=e.coloring,l=e.cluster;return r[n].length>r[t].length?qt({id:n,linksByNodeId:r,visuals:o,cluster:l,coloring:i}):qt({id:t,visuals:o,linksByNodeId:r,cluster:l,coloring:i})};function Qt(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 Jt(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Qt(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Qt(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Kt=t.e(907).then(t.bind(t,99907)),$t=t.g.window?t(24878).f$:null,Yt=t.g.window?t(24878).s6:null;function er(){var e=(0,v.useState)(!1),n=e[0],t=e[1];return(0,v.useEffect)((function(){t(!0)}),[]),n?(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(j.default,{children:(0,re.jsx)("title",{children:"ORUI"})}),(0,re.jsx)(nr,{})]}):null}function nr(){var e=zn("3d",!1),n=(0,l.Z)(e,2),t=n[0],r=n[1],s=zn("tagCols",{}),c=(0,l.Z)(s,2),g=c[0],f=c[1],x=(0,v.useState)({nodeIds:[],excludedNodeIds:[]}),j=x[0],b=x[1],m=zn("physics",T),O=(0,l.Z)(m,2),S=O[0],I=O[1],N=zn("filter",z),P=(0,l.Z)(N,2),D=P[0],B=P[1],L=zn("visuals",E),W=(0,l.Z)(L,2),A=W[0],M=W[1],V=(0,v.useState)(null),_=V[0],U=V[1],q=(0,v.useState)(null),X=q[0],G=q[1],Q=zn("behavior",R),J=(0,l.Z)(Q,2),K=J[0],$=J[1],Y=zn("mouse",Z),ee=(0,l.Z)(Y,2),ne=ee[0],te=ee[1],oe=zn("coloring",F),ie=(0,l.Z)(oe,2),le=ie[0],se=ie[1],ce=zn("local",H),ae=(0,l.Z)(ce,2),de=ae[0],ue=ae[1],he=(0,k.Z)({}),ge=(0,l.Z)(he,2),pe=ge[0],xe=ge[1],je=xe.set,ve=xe.reset,be=xe.undo,me=xe.redo,ye=xe.canUndo,Ce=xe.canRedo,we=(pe.past,pe.present),Oe=(pe.future,(0,v.useState)(null)),ke=Oe[0],Se=Oe[1],Ie=(0,a.qY)(),Ne=Ie.isOpen,Pe=Ie.onOpen,De=Ie.onClose,Be=(0,v.useRef)({}),Le=(0,v.useRef)({}),Te=(0,v.useRef)({}),ze=(0,v.useRef)([]),Fe=(0,v.useRef)(null),Ee=(0,v.useState)({}),Re=Ee[0],Ze=Ee[1],He=(0,v.useRef)({}),We=(0,v.useRef)({nodes:[],links:[]});(0,v.useEffect)((function(){_&&(We.current=_)}),[_]);var Ae=(0,v.useContext)(nn.N).setEmacsTheme,Me=(0,v.useRef)({nodeIds:[],excludedNodeIds:[]}),Ve=(0,v.useRef)(R);Ve.current=K;var _e=(0,v.useRef)(null);Me.current=j;var Ue=function(e,n){var t,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2e3,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:200;if("color"!==e){var l=Fe.current,s=Me.current,c=Ve.current,a=null!==(t=Le.current[n])&&void 0!==t?t:[],d=Object.fromEntries([n].concat((0,o.Z)(a.flatMap((function(e){return[e.source,e.target]})))).map((function(e){return[e,{}]})));if("zoom"===e)return s.nodeIds.length&&b({nodeIds:[],excludedNodeIds:[]}),void setTimeout((function(){return l.zoomToFit(r,i,(function(e){return d[e.id]}))}),50);if(!s.nodeIds.length)return b((function(e){return Jt(Jt({},e),{},{nodeIds:[n]})})),void setTimeout((function(){l.centerAt(0,0,10),l.zoomToFit(1,i)}),50);if("add"!==c.localSame)return b((function(e){return Jt(Jt({},e),{},{nodeIds:[n]})})),void setTimeout((function(){l.centerAt(0,0,10),l.zoomToFit(1,i)}),50);if(!s.nodeIds.includes(n)||!s.nodeIds.some((function(e){return d[e]})))return b((function(e){return Jt(Jt({},e),{},{nodeIds:[n]})})),void setTimeout((function(){l.centerAt(0,0,10),l.zoomToFit(1,i)}),50);b((function(e){return Jt(Jt({},e),{},{nodeIds:[].concat((0,o.Z)(e.nodeIds),[n])})})),setTimeout((function(){l.centerAt(0,0,10),l.zoomToFit(1,i)}),50)}};(0,v.useEffect)((function(){_e.current=new w.Z("ws://localhost:35903"),_e.current.addEventListener("open",(function(){console.log("Connection with Emacs established")})),_e.current.addEventListener("message",(function(e){var n=Ve.current,t=JSON.parse(e.data);switch(t.type){case"graphdata":return function(e){var n,t,r,s=Be.current;ze.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:[],d=c.reduce((function(e,n){var t;return Jt(Jt({},e),{},(0,i.Z)({},n.file,[].concat((0,o.Z)(null!==(t=e[n.file])&&void 0!==t?t:[]),[n])))}),{}),u=Object.keys(d).flatMap((function(e){var n,t=null!==(n=d[e])&&void 0!==n?n:[],r=t.find((function(e){return 0===e.level})),o=t.filter((function(e){return 0!==e.level}));return r?o.map((function(e){var n=t.filter((function(n){var t,r;return!(n.level>=e.level||n.pos>=e.pos||null===(t=e.olp)||void 0===t||!t.includes(null===(r=n.title)||void 0===r?void 0:r.replace(/ *\[\d*\/\d*\] */g,"")))})).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(d).flatMap((function(e){var n,t=null!==(n=d[e])&&void 0!==n?n:[],r=t.find((function(e){return 0===e.level})),o=t.filter((function(e){return 0!==e.level}));return r?o.map((function(e){return{source:e.id,target:r.id,type:"parent"}})):[]}));Be.current=Object.fromEntries(c.map((function(e){return[e.id,e]})));var g=[].concat((0,o.Z)(a),(0,o.Z)(u),(0,o.Z)(h)),f=[],p=g.map((function(e){var n=e.source,t=e.target;return Be.current[n]?Be.current[t]?e:(f.push({id:t,tags:["bad"],properties:{FILELESS:"yes",bad:"yes"},file:"",title:t,level:0,pos:0,olp:null}),Jt(Jt({},e),{},{type:"bad"})):(f.push({id:n,tags:["bad"],properties:{FILELESS:"yes",bad:"yes"},file:"",title:n,level:0,pos:0,olp:null}),Jt(Jt({},e),{},{type:"bad"}))}));Be.current=Jt(Jt({},Be.current),Object.fromEntries(f.map((function(e){return[e.id,e]})))),Le.current=p.reduce((function(e,n){var t,r,l;return Jt(Jt({},e),{},(l={},(0,i.Z)(l,n.source,[].concat((0,o.Z)(null!==(t=e[n.source])&&void 0!==t?t:[]),[n])),(0,i.Z)(l,n.target,[].concat((0,o.Z)(null!==(r=e[n.target])&&void 0!==r?r:[]),[n])),l))}),{});var x=[].concat((0,o.Z)(c),f);Te.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 o=r.replaceAll(/cite:(.*)/g,"$1");return o?Jt(Jt({},e),{},(0,i.Z)({},o,n)):e}),{});var j={nodes:x,links:p},v=We.current;if(0===v.nodes.length){var b=JSON.parse(JSON.stringify(j));return We.current=b,void U(b)}var m=[].concat((0,o.Z)(v.nodes.flatMap((function(e){var n,t=null!==(n=Be.current[null===e||void 0===e?void 0:e.id])&&void 0!==n&&n;return t?[Jt(Jt({},e),t)]:[]}))),(0,o.Z)(Object.keys(Be.current).filter((function(e){return!s[e]})).map((function(e){return Be.current[e]})))),y=m.reduce((function(e,n,t){var r=null===n||void 0===n?void 0:n.id;return Jt(Jt({},e),{},(0,i.Z)({},r,t))}),{}),C=p.map((function(e){var n=yn(e),t=(0,l.Z)(n,2),r=t[0],o=t[1];return Jt(Jt({},e),{},{source:m[y[r]],target:m[y[o]]})}));U({nodes:m,links:C})}(t.data);case"variables":return Ze(t.data),void console.log(t);case"theme":return Ae(["custom",t.data]);case"command":switch(t.data.commandName){case"local":var r=K.zoomSpeed,s=K.zoomPadding;Ue("local",t.data.id,r,s),G(t.data.id);break;case"zoom":var c,a,d=(null===t||void 0===t||null===(c=t.data)||void 0===c?void 0:c.speed)||n.zoomSpeed,u=(null===t||void 0===t||null===(a=t.data)||void 0===a?void 0:a.padding)||n.zoomPadding;Ue("zoom",t.data.id,d,u),G(t.data.id);break;case"follow":Ue(n.follow,t.data.id,n.zoomSpeed,n.zoomPadding),G(t.data.id);break;case"change-local-graph":var h=Be.current[t.data.id];if(!h)break;console.log(t),sn(h,t.data.manipulation);break;default:return console.error("unknown message type",t.type)}}}))}),[]),(0,v.useEffect)((function(){var e=Fe.current;!e||j.nodeIds.length>1||(j.nodeIds.length||!S.gravityOn?setTimeout((function(){e.zoomToFit(5,200)}),50):e.zoomToFit())}),[j.nodeIds]);var qe=(0,p.iP)(),Xe=(0,l.Z)(qe,2),Ge=Xe[0],Qe=Xe[1],Je=(0,v.useRef)(),Ke=(0,v.useState)(null),$e=Ke[0],Ye=Ke[1],en=(0,v.useState)({left:0,top:0,right:void 0,bottom:void 0}),tn=en[0],rn=en[1],on=(0,a.qY)();(0,a.O3)({ref:Je,handler:function(){on.onClose()}});var ln=function(e,n,t){rn(t||{left:n.pageX,top:n.pageY,right:void 0,bottom:void 0}),Ye(e),on.onOpen()},sn=function(e,n){"remove"!==n?"replace"!==n?j.nodeIds.includes(e.id)||b((function(n){return{excludedNodeIds:n.excludedNodeIds.filter((function(n){return n!==e.id})),nodeIds:[].concat((0,o.Z)(n.nodeIds),[e.id])}})):b({nodeIds:[e.id],excludedNodeIds:[]}):b((function(n){return{nodeIds:n.nodeIds.filter((function(n){return n!==e.id})),excludedNodeIds:[].concat((0,o.Z)(n.excludedNodeIds),[e.id])}}))},cn=zn("mainWindowWidth",Ge),an=(0,l.Z)(cn,2),dn=an[0],un=an[1];return(0,re.jsx)(Yn.Provider,{value:Jt({},Re),children:(0,re.jsxs)(d.Box,{display:"flex",alignItems:"flex-start",flexDirection:"row",height:"100vh",overflow:"clip",children:[(0,re.jsx)(Ht,{physics:S,setPhysics:I,threeDim:t,setThreeDim:r,filter:D,setFilter:B,visuals:A,setVisuals:M,mouse:ne,setMouse:te,behavior:K,setBehavior:$,tagColors:g,setTagColors:f,coloring:le,setColoring:se,local:de,setLocal:ue,tags:ze.current}),(0,re.jsx)(d.Box,{position:"absolute",children:_&&(0,re.jsx)(tr,{nodeById:Be.current,linksByNodeId:Le.current,webSocket:_e.current,variables:Re,physics:S,graphData:_,threeDim:t,emacsNodeId:X,filter:D,visuals:A,behavior:K,mouse:ne,scope:j,setScope:b,tagColors:g,setPreviewNode:je,sidebarHighlightedNode:ke,windowWidth:Ge,windowHeight:Qe,openContextMenu:ln,contextMenu:on,handleLocal:sn,mainWindowWidth:dn,setMainWindowWidth:un,setContextMenuTarget:Ye,graphRef:Fe,clusterRef:He,coloring:le,local:de})}),(0,re.jsx)(d.Box,{position:"relative",zIndex:4,width:"100%",children:(0,re.jsx)(d.Flex,{className:"headerBar",h:10,flexDir:"column",children:(0,re.jsx)(d.Flex,{alignItems:"center",h:10,justifyContent:"flex-end",children:(0,re.jsxs)(d.Flex,{height:"100%",flexDirection:"row",children:[j.nodeIds.length>0&&(0,re.jsx)(u.u,{label:"Return to main graph",children:(0,re.jsx)(h.IconButton,{m:1,icon:(0,re.jsx)(y.DvO,{}),"aria-label":"Exit local mode",onClick:function(){return b((function(e){return Jt(Jt({},e),{},{nodeIds:[]})}))},variant:"subtle"})}),(0,re.jsx)(u.u,{label:Ne?"Close sidebar":"Open sidebar",children:(0,re.jsx)(h.IconButton,{m:1,icon:(0,re.jsx)(C.iBV,{}),"aria-label":"Close file-viewer",variant:"subtle",onClick:Ne?De:Pe})})]})})})}),(0,re.jsx)(d.Box,{position:"relative",zIndex:4,children:(0,re.jsx)(Hn,{isOpen:Ne,onOpen:Pe,onClose:De,previewNode:we,setPreviewNode:je,canUndo:ye,canRedo:Ce,previousPreviewNode:be,nextPreviewNode:me,resetPreviewNode:ve,setSidebarHighlightedNode:Se,openContextMenu:ln,scope:j,setScope:b,windowWidth:Ge,tagColors:g,setTagColors:f,filter:D,setFilter:B,macros:Re.katexMacros,attachDir:Re.attachDir||"",useInheritance:Re.useInheritance||!1,nodeById:Be.current,linksByNodeId:Le.current,nodeByCite:Te.current})}),on.isOpen&&(0,re.jsx)("div",{ref:Je,children:(0,re.jsx)(fe,{scope:j,target:$e,background:!1,coordinates:tn,handleLocal:sn,menuClose:on.onClose.bind(on),webSocket:_e.current,setPreviewNode:je,setFilter:B,filter:D,setTagColors:f,tagColors:g})})]})})}var tr=function(e){var n=e.graphRef,t=e.physics,s=e.graphData,a=e.threeDim,u=e.linksByNodeId,h=e.filter,p=e.emacsNodeId,j=e.nodeById,b=e.visuals,y=e.behavior,C=e.mouse,w=e.scope,k=e.local,S=(e.setScope,e.webSocket),I=e.tagColors,N=e.setPreviewNode,P=e.sidebarHighlightedNode,D=e.windowWidth,B=e.windowHeight,T=(e.setContextMenuTarget,e.openContextMenu),z=e.contextMenu,F=e.handleLocal,E=e.variables,R=e.clusterRef,Z=e.coloring,H=E.dailyDir,A=(E.roamDir,(0,v.useState)(null)),M=A[0],V=A[1],_=(0,g.Fg)(),q=(0,v.useContext)(nn.N).emacsTheme,X=function(e,n,t){switch(e){case C.preview:N(n);break;case C.local:F(n,y.localSame);break;case C.follow:U(n,S);break;case C.context:T(n,t)}},G=(0,v.useRef)(null);(0,v.useEffect)((function(){p&&V(j[p])}),[p]);var Q=(0,v.useRef)({}),J=(0,v.useRef)({}),K=(0,v.useMemo)((function(){var e;J.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,o,l=e;return h.dirsBlocklist.length&&h.dirsBlocklist.some((function(e){var n;return null===l||void 0===l||null===(n=l.file)||void 0===n?void 0:n.includes(e)}))||h.dirsAllowlist.length>0&&!h.dirsAllowlist.some((function(e){var n;return null===l||void 0===l||null===(n=l.file)||void 0===n?void 0:n.includes(e)}))||h.tagsBlacklist.length&&h.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}))||h.tagsWhitelist.length>0&&!h.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}))||h.filelessCites&&null!==l&&void 0!==l&&null!==(n=l.properties)&&void 0!==n&&n.FILELESS||null!==h&&void 0!==h&&h.bad&&null!==l&&void 0!==l&&null!==(t=l.properties)&&void 0!==t&&t.bad||h.dailies&&H&&null!==(r=l.file)&&void 0!==r&&r.includes(H)?(J.current=Jt(Jt({},J.current),{},(0,i.Z)({},l.id,l)),!1):!h.noter||null===(o=l.properties)||void 0===o||!o.NOTER_PAGE||(J.current=Jt(Jt({},J.current),{},(0,i.Z)({},l.id,l)),!1)})).filter((function(e){var n,t=(null!==(n=u[null===e||void 0===e?void 0:e.id])&&void 0!==n?n:[]).filter((function(e){return!J.current[e.source]&&!J.current[e.target]}));return!h.orphans||(h.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=yn(e),r=(0,l.Z)(n,2),o=r[0],i=r[1];if(!t.includes(o)||!t.includes(i))return!1;var s=e;return h.parent?"heading"===h.parent?"parent"!==s.type:"heading"!==s.type:!["parent","heading"].includes(s.type)}));Q.current=r.reduce((function(e,n){var t,r,s,c=n,a=yn(c),d=(0,l.Z)(a,2),u=d[0],h=d[1];return Jt(Jt({},e),{},(s={},(0,i.Z)(s,u,[].concat((0,o.Z)(null!==(t=e[u])&&void 0!==t?t:[]),[c])),(0,i.Z)(s,h,[].concat((0,o.Z)(null!==(r=e[h])&&void 0!==r?r:[]),[c])),s))}),{});var c=r.map((function(e){var n=yn(e),t=(0,l.Z)(n,2);return{target:t[0],source:t[1],weight:"cite"===e.type?1:2}}));if("community"===Z.method){var a=m()().nodes(t).edges(c);R.current=a()}return{nodes:n,links:r}}),[h,s,Z.method]),$=(0,v.useState)({nodes:[],links:[]}),Y=$[0],ee=$[1];(0,v.useEffect)((function(){if(w.nodeIds.length){var e=w.nodeIds.length>1?Y.nodes.filter((function(e){return!w.excludedNodeIds.includes(e.id)})):[],n=e.map((function(e){return e.id})),t=function(e){var n=e.ids,t=e.excludedIds,r=e.n,o=e.linksByNodeId,i=[n[0]],s=[],c=[n[0]];return Array.from({length:r},(function(){i.forEach((function(e){var n;(null!==(n=o[e])&&void 0!==n?n:[]).forEach((function(e){var n=yn(e),r=(0,l.Z)(n,2),o=r[0],i=r[1];t.some((function(e){return[o,i].includes(e)}))||(c.includes(o)?c.includes(i)||s.push(i):s.push(o))}))})),i=s,s.forEach((function(e){return e&&c.push(e)})),s=[]})),c}({ids:w.nodeIds,excludedIds:w.excludedNodeIds,n:k.neighbors,linksByNodeId:Q.current}),r=K.nodes.filter((function(r){var o;return e.length?!n.includes(r.id)&&(null!==(o=Q.current[r.id])&&void 0!==o?o:[]).some((function(e){var n=yn(e),t=(0,l.Z)(n,2),r=t[0],o=t[1];return!w.excludedNodeIds.includes(r)&&!w.excludedNodeIds.includes(o)&&(w.nodeIds.includes(r)||w.nodeIds.includes(o))})):t.includes(r.id)})).map((function(e){return Jt(Jt({},e),{},{x:0,y:0,vy:0,vx:0})})),i=[].concat((0,o.Z)(e),(0,o.Z)(r)),s=i.map((function(e){return e.id})),c=(w.nodeIds.length>1?Y.links:[]).filter((function(e){w.excludedNodeIds.some((function(n){return yn(e).includes(n)}))})),a=K.links.filter((function(e){var t=yn(e),r=(0,l.Z)(t,2),o=r[0],i=r[1];return!(c.length&&n.includes(i)&&n.includes(o))&&(s.includes(o)&&s.includes(i))})).map((function(e){var n=yn(e),t=(0,l.Z)(n,2);return{source:t[0],target:t[1]}})),d=[].concat((0,o.Z)(c),(0,o.Z)(a));ee({nodes:i,links:d})}}),[k.neighbors,h,w,w.excludedNodeIds,w.nodeIds,s,K.links,K.nodes]),(0,v.useEffect)((function(){(0,r.Z)(c().mark((function e(){var r,o;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.current,e.next=3,Kt;case 3:o=e.sent,!t.gravityOn||w.nodeIds.length&&!t.gravityLocal?(r.d3Force("x",null),r.d3Force("y",null),a&&r.d3Force("z",null)):(r.d3Force("x",o.forceX().strength(t.gravity)),r.d3Force("y",o.forceY().strength(t.gravity)),a&&r.d3Force("z",o.forceZ().strength(t.gravity))),t.centering?r.d3Force("center",o.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?o.forceCollide().radius(t.collisionStrength):null);case 10:case"end":return e.stop()}}),e)})))()}),[t,a,w]),(0,v.useEffect)((function(){var e;null===(e=n.current)||void 0===e||e.d3ReheatSimulation()}),[t,w.nodeIds.length]);var ne=(0,v.useRef)(0),te=(0,v.useState)(1),oe=te[0],ie=te[1],le=(0,f._7)((function(e){return ie(e)}),{duration:b.animationSpeed,algorithm:L[b.algorithmName]}),se=(0,l.Z)(le,2),ce=se[0],ae=se[1],de=(0,f._7)((function(e){return ie(Math.min(oe,-1*(e-1)))}),{duration:b.animationSpeed,algorithm:L[b.algorithmName]}),ue=(0,l.Z)(de,2),he=ue[0],ge=ue[1],fe=(0,v.useMemo)((function(){var e;if(!G.current)return{};var n=Q.current[G.current.id];return n?Object.fromEntries([null===(e=G.current)||void 0===e?void 0:e.id].concat((0,o.Z)(n.flatMap((function(e){return[e.source,e.target]})))).map((function(e){return[e,{}]}))):{}}),[G.current,Q.current]);(0,v.useEffect)((function(){null!==P&&void 0!==P&&P.id?V(P):V(null)}),[P]);var pe=(0,v.useRef)(null);(0,v.useEffect)((function(){if(G.current=M,M&&(pe.current=M),!b.highlightAnim)return ie(M?1:0);M?ce():(ae(),oe>.5?he():ie(0))}),[M]);var xe=(0,v.useMemo)((function(){return Object.fromEntries(W.map((function(e){var n=sn(e,_),t=W.map((function(e){return[e,x.Z(n,sn(e,_))]}));return[e,Object.fromEntries(t)]})))}),[q]),je=(0,v.useMemo)((function(){var e,n,t,r=null!==(e=Q.current[null===(n=pe.current)||void 0===n?void 0:n.id])&&void 0!==e?e:[];return Object.fromEntries([null===(t=pe.current)||void 0===t?void 0:t.id].concat((0,o.Z)(r.flatMap((function(e){return yn(e)})))).map((function(e){return[e,{}]})))}),[JSON.stringify(M),pe.current,Q.current]),ve=(0,v.useMemo)((function(){return sn(b.labelTextColor,_)}),[b.labelTextColor,q]),be=(0,v.useMemo)((function(){return sn(b.labelBackgroundColor,_)}),[b.labelBackgroundColor,q]),me=(0,v.useState)(!1),ye=me[0],Ce=me[1],we=(0,v.useRef)(1),Oe={graphData:w.nodeIds.length?Y:K,width:D,height:B,backgroundColor:sn(b.backgroundColor,_),warmupTicks:1===w.nodeIds.length?100:w.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){var n,t,r=e.node,o=e.theme,i=e.highlightedNodes,l=e.previouslyHighlightedNodes,s=e.visuals,c=e.tagColors,a=e.highlightColors,d=e.opacity,u=e.emacsNodeId,h=e.linksByNodeId,g=e.cluster,f=e.coloring,p=i[r.id]||l[r.id];if(s.emacsNodeColor&&r.id===u)return sn(s.emacsNodeColor,o);if(c&&null!==r&&void 0!==r&&r.tags.some((function(e){return c[e]}))){var x=c[null===r||void 0===r?void 0:r.tags.filter((function(e){return c[e]}))[0]];return p?a[x][x](s.highlightFade*d):a[x][s.backgroundColor](s.highlightFade*d)}return s.citeNodeColor&&null!==r&&void 0!==r&&null!==(n=r.properties)&&void 0!==n&&n.ROAM_REFS&&null!==r&&void 0!==r&&null!==(t=r.properties)&&void 0!==t&&t.FILELESS?p?sn(s.citeNodeColor,o):a[s.citeNodeColor][s.backgroundColor](s.highlightFade*d):s.refNodeColor&&r.properties.ROAM_REFS?p?sn(s.refNodeColor,o):a[s.refNodeColor][s.backgroundColor](s.highlightFade*d):p?s.nodeHighlight?a[qt({id:r.id,cluster:g,coloring:f,linksByNodeId:h,visuals:s})][s.nodeHighlight](d):sn(qt({id:r.id,cluster:g,coloring:f,linksByNodeId:h,visuals:s}),o):a[qt({id:r.id,cluster:g,coloring:f,linksByNodeId:h,visuals:s})][s.backgroundColor](s.highlightFade*d)}({node:e,theme:_,visuals:b,cluster:R.current,coloring:Z,emacsNodeId:p,highlightColors:xe,highlightedNodes:fe,previouslyHighlightedNodes:je,linksByNodeId:Q.current,opacity:oe,tagColors:I})},nodeRelSize:b.nodeRel,nodeVal:function(e){return Vt({node:e,highlightedNodes:fe,linksByNodeId:Q.current,opacity:oe,previouslyHighlightedNodes:je,visuals:b})/Math.pow(we.current,b.nodeZoomSize)},nodeCanvasObject:function(e,n,t){Ut(Jt({nodeRel:b.nodeRel,filteredLinksByNodeId:Q.current,lastHoverNode:pe.current},{node:e,ctx:n,globalScale:t,highlightedNodes:fe,previouslyHighlightedNodes:je,visuals:b,opacity:oe,labelTextColor:ve,labelBackgroundColor:be,hoverNode:M}))},nodeCanvasObjectMode:function(){return"after"},linkDirectionalParticles:b.particles?b.particlesNumber:void 0,linkDirectionalArrowLength:b.arrows?b.arrowsLength:void 0,linkDirectionalArrowRelPos:b.arrowsPos,linkDirectionalArrowColor:b.arrowsColor?function(){return sn(b.arrowsColor,_)}: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,o=Xt(e,G.current),i=Xt(e,pe.current),l=o||i,s=e;return b.refLinkColor&&"ref"===s.type?l&&(b.refLinkHighlightColor||b.linkHighlight)?xe[b.refLinkColor][b.refLinkHighlightColor||b.linkHighlight](oe):xe[b.refLinkColor][b.backgroundColor](b.highlightFade*oe):b.citeLinkColor&&null!==(n=s.type)&&void 0!==n&&n.includes("cite")?l&&(b.citeLinkHighlightColor||b.linkHighlight)?xe[b.citeLinkColor][b.citeLinkHighlightColor||b.linkHighlight](oe):xe[b.citeLinkColor][b.backgroundColor](b.highlightFade*oe):function(e){var n=e.sourceId,t=e.targetId,r=e.needsHighlighting,o=e.theme,i=e.visuals,l=e.highlightColors,s=e.opacity,c=e.linksByNodeId,a=e.coloring,d=e.cluster;if(!i.linkHighlight&&!i.linkColorScheme&&!r){var u=Gt({sourceId:n,targetId:t,linksByNodeId:c,visuals:i,coloring:a,cluster:d});return sn(u,o)}if(!r&&!i.linkColorScheme)return l[Gt({sourceId:n,targetId:t,linksByNodeId:c,visuals:i,coloring:a,cluster:d})][i.backgroundColor](i.highlightFade*s);if(!r)return l[i.linkColorScheme][i.backgroundColor](i.highlightFade*s);if(!i.linkHighlight&&!i.linkColorScheme){var h=Gt({sourceId:n,targetId:t,linksByNodeId:c,visuals:i,coloring:a,cluster:d});return sn(h,o)}return i.linkHighlight?i.linkColorScheme?l[i.linkColorScheme][i.linkHighlight](s):l[Gt({sourceId:n,targetId:t,linksByNodeId:c,visuals:i,coloring:a,cluster:d})][i.linkHighlight](s):sn(i.linkColorScheme,o)}({sourceId:t,targetId:r,needsHighlighting:l,theme:_,cluster:R.current,coloring:Z,highlightColors:xe,linksByNodeId:Q.current,opacity:oe,visuals:b})},linkWidth:function(e){if(1===b.highlightLinkSize)return b.linkWidth;var n=Xt(e,G.current),t=Xt(e,pe.current);return n||t?b.linkWidth*(1+oe*(b.highlightLinkSize-1)):b.linkWidth},linkDirectionalParticleWidth:b.particlesWidth,d3AlphaDecay:t.alphaDecay,d3AlphaMin:t.alphaMin,d3VelocityDecay:t.velocityDecay,onNodeClick:function(e,n){var t=e,r=n.timeStamp-ne.current<200;if(ne.current=n.timeStamp,r)return X("double",t,n);var o=ne.current;return setTimeout((function(){if(ne.current===o)return X("click",t,n)}),200)},onNodeHover:function(e){b.highlight&&(ye||(M||(ge(),ie(0)),V(e)))},onNodeRightClick:function(e,n){X("right",e,n)},onNodeDrag:function(e){V(e),Ce(!0)},onNodeDragEnd:function(){V(null),Ce(!1)}};return(0,re.jsx)(d.Box,{overflow:"hidden",onClick:z.onClose,children:a?(0,re.jsx)(Yt,Jt(Jt({ref:n},Oe),{},{nodeThreeObjectExtend:!0,nodeOpacity:b.nodeOpacity,nodeResolution:b.nodeResolution,linkOpacity:b.linkOpacity,nodeThreeObject:function(e){if(b.labels&&(!(b.labels<3)||fe[e.id])){var n=new O.Z(e.title.substring(0,40));return n.color=sn(b.labelTextColor,_),n.backgroundColor=sn(b.labelBackgroundColor,_),n.padding=2,n.textHeight=8,n}}})):(0,re.jsx)($t,Jt(Jt({ref:n},Oe),{},{linkLineDash:function(e){var n,t=e;return b.citeDashes&&null!==(n=t.type)&&void 0!==n&&n.includes("cite")?[b.citeDashLength,b.citeGapLength]:b.refDashes&&"ref"==t.type?[b.refDashLength,b.refGapLength]:null}}))})}},45301:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return t(46587)}])}},function(e){e.O(0,[774,737,876,228,866,13,874,573,446,879,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/index.html b/out/index.html
index 5ca53eb..75a11b1 100644
--- a/out/index.html
+++ b/out/index.html
@@ -1 +1 @@
-<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/a37ded5ec4cf14937ec5.css" as="style"/><link rel="stylesheet" href="/_next/static/css/a37ded5ec4cf14937ec5.css" data-n-g=""/><link rel="preload" href="/_next/static/css/bdf775d76e641698f02f.css" as="style"/><link rel="stylesheet" href="/_next/static/css/bdf775d76e641698f02f.css" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-a40ef1678bae11e696dba45124eadd70.js"></script><script src="/_next/static/chunks/webpack-97b7769aa68ab46953a1.js" defer=""></script><script src="/_next/static/chunks/framework-a62d654bd9699da79f2a.js" defer=""></script><script src="/_next/static/chunks/main-80dde85f3cea1551bba1.js" defer=""></script><script src="/_next/static/chunks/pages/_app-5686c15726fcbac980ca.js" defer=""></script><script src="/_next/static/chunks/fb7d5399-9c00dff9225b87a317ed.js" defer=""></script><script src="/_next/static/chunks/17007de1-7d8b9c17ee7cc8107af3.js" defer=""></script><script src="/_next/static/chunks/252f366e-54a484ebfe8fe95dfdbb.js" defer=""></script><script src="/_next/static/chunks/95b64a6e-860b8751a48619de0c76.js" defer=""></script><script src="/_next/static/chunks/0c428ae2-753f1ebbec24c403674c.js" defer=""></script><script src="/_next/static/chunks/1a48c3c1-648f6631a5e9a5f8e954.js" defer=""></script><script src="/_next/static/chunks/b5f2ed29-b8c45246e6f61610d91f.js" defer=""></script><script src="/_next/static/chunks/d25bd147-2c59edc357c0e2372258.js" defer=""></script><script src="/_next/static/chunks/879-09bfd8a9d59d1f41b6f4.js" defer=""></script><script src="/_next/static/chunks/pages/index-f954a7866bfdd966749e.js" defer=""></script><script src="/_next/static/OY7xgp5amTQ-MjS0RPi98/_buildManifest.js" defer=""></script><script src="/_next/static/OY7xgp5amTQ-MjS0RPi98/_ssgManifest.js" defer=""></script></head><body><div id="__next"><style data-emotion="css-global 8u9pn4">:host,:root{--chakra-ring-inset:var(--chakra-empty,/*!*/ /*!*/);--chakra-ring-offset-width:0px;--chakra-ring-offset-color:#fff;--chakra-ring-color:rgba(66, 153, 225, 0.6);--chakra-ring-offset-shadow:0 0 #0000;--chakra-ring-shadow:0 0 #0000;--chakra-space-x-reverse:0;--chakra-space-y-reverse:0;--chakra-colors-transparent:transparent;--chakra-colors-current:currentColor;--chakra-colors-black:#bbc2cf;--chakra-colors-white:#242730;--chakra-colors-whiteAlpha-50:rgba(255, 255, 255, 0.04);--chakra-colors-whiteAlpha-100:rgba(255, 255, 255, 0.06);--chakra-colors-whiteAlpha-200:rgba(255, 255, 255, 0.08);--chakra-colors-whiteAlpha-300:rgba(255, 255, 255, 0.16);--chakra-colors-whiteAlpha-400:rgba(255, 255, 255, 0.24);--chakra-colors-whiteAlpha-500:rgba(255, 255, 255, 0.36);--chakra-colors-whiteAlpha-600:rgba(255, 255, 255, 0.48);--chakra-colors-whiteAlpha-700:rgba(255, 255, 255, 0.64);--chakra-colors-whiteAlpha-800:rgba(255, 255, 255, 0.80);--chakra-colors-whiteAlpha-900:rgba(255, 255, 255, 0.92);--chakra-colors-blackAlpha-50:rgba(0, 0, 0, 0.04);--chakra-colors-blackAlpha-100:rgba(0, 0, 0, 0.06);--chakra-colors-blackAlpha-200:rgba(0, 0, 0, 0.08);--chakra-colors-blackAlpha-300:rgba(0, 0, 0, 0.16);--chakra-colors-blackAlpha-400:rgba(0, 0, 0, 0.24);--chakra-colors-blackAlpha-500:rgba(0, 0, 0, 0.36);--chakra-colors-blackAlpha-600:rgba(0, 0, 0, 0.48);--chakra-colors-blackAlpha-700:rgba(0, 0, 0, 0.64);--chakra-colors-blackAlpha-800:rgba(0, 0, 0, 0.80);--chakra-colors-blackAlpha-900:rgba(0, 0, 0, 0.92);--chakra-colors-gray-50:#F7FAFC;--chakra-colors-gray-100:#1c1f24;--chakra-colors-gray-200:rgb(29, 33, 38);--chakra-colors-gray-300:#21272d;--chakra-colors-gray-400:#23272e;--chakra-colors-gray-500:#484854;--chakra-colors-gray-600:#62686E;--chakra-colors-gray-700:#757B80;--chakra-colors-gray-800:#9ca0a4;--chakra-colors-gray-900:#DFDFDF;--chakra-colors-red-50:#FFF5F5;--chakra-colors-red-100:#FED7D7;--chakra-colors-red-200:#FEB2B2;--chakra-colors-red-300:#FC8181;--chakra-colors-red-400:#F56565;--chakra-colors-red-500:#ff665c;--chakra-colors-red-600:#C53030;--chakra-colors-red-700:#9B2C2C;--chakra-colors-red-800:#822727;--chakra-colors-red-900:#63171B;--chakra-colors-orange-50:#FFFAF0;--chakra-colors-orange-100:#FEEBC8;--chakra-colors-orange-200:#FBD38D;--chakra-colors-orange-300:#F6AD55;--chakra-colors-orange-400:#ED8936;--chakra-colors-orange-500:#e69055;--chakra-colors-orange-600:#C05621;--chakra-colors-orange-700:#9C4221;--chakra-colors-orange-800:#7B341E;--chakra-colors-orange-900:#652B19;--chakra-colors-yellow-50:#FFFFF0;--chakra-colors-yellow-100:#FEFCBF;--chakra-colors-yellow-200:#FAF089;--chakra-colors-yellow-300:#F6E05E;--chakra-colors-yellow-400:#ECC94B;--chakra-colors-yellow-500:#FCCE7B;--chakra-colors-yellow-600:#B7791F;--chakra-colors-yellow-700:#975A16;--chakra-colors-yellow-800:#744210;--chakra-colors-yellow-900:#5F370E;--chakra-colors-green-50:#F0FFF4;--chakra-colors-green-100:#C6F6D5;--chakra-colors-green-200:#9AE6B4;--chakra-colors-green-300:#68D391;--chakra-colors-green-400:#48BB78;--chakra-colors-green-500:#7bc275;--chakra-colors-green-600:#2F855A;--chakra-colors-green-700:#276749;--chakra-colors-green-800:#22543D;--chakra-colors-green-900:#1C4532;--chakra-colors-teal-50:#E6FFFA;--chakra-colors-teal-100:#B2F5EA;--chakra-colors-teal-200:#81E6D9;--chakra-colors-teal-300:#4FD1C5;--chakra-colors-teal-400:#38B2AC;--chakra-colors-teal-500:#51afef;--chakra-colors-teal-600:#2C7A7B;--chakra-colors-teal-700:#285E61;--chakra-colors-teal-800:#234E52;--chakra-colors-teal-900:#1D4044;--chakra-colors-blue-50:#ebf8ff;--chakra-colors-blue-100:#bee3f8;--chakra-colors-blue-200:#90cdf4;--chakra-colors-blue-300:#63b3ed;--chakra-colors-blue-400:#4299e1;--chakra-colors-blue-500:#51afef;--chakra-colors-blue-600:#2b6cb0;--chakra-colors-blue-700:#2c5282;--chakra-colors-blue-800:#2a4365;--chakra-colors-blue-900:#1A365D;--chakra-colors-cyan-50:#EDFDFD;--chakra-colors-cyan-100:#C4F1F9;--chakra-colors-cyan-200:#9DECF9;--chakra-colors-cyan-300:#76E4F7;--chakra-colors-cyan-400:#0BC5EA;--chakra-colors-cyan-500:#5cEfFF;--chakra-colors-cyan-600:#00A3C4;--chakra-colors-cyan-700:#0987A0;--chakra-colors-cyan-800:#086F83;--chakra-colors-cyan-900:#065666;--chakra-colors-purple-50:#FAF5FF;--chakra-colors-purple-100:#E9D8FD;--chakra-colors-purple-200:#D6BCFA;--chakra-colors-purple-300:#B794F4;--chakra-colors-purple-400:#9F7AEA;--chakra-colors-purple-500:#a991f1;--chakra-colors-purple-600:#6B46C1;--chakra-colors-purple-700:#553C9A;--chakra-colors-purple-800:#44337A;--chakra-colors-purple-900:#322659;--chakra-colors-pink-50:#FFF5F7;--chakra-colors-pink-100:#FED7E2;--chakra-colors-pink-200:#FBB6CE;--chakra-colors-pink-300:#F687B3;--chakra-colors-pink-400:#ED64A6;--chakra-colors-pink-500:#C57BDB;--chakra-colors-pink-600:#B83280;--chakra-colors-pink-700:#97266D;--chakra-colors-pink-800:#702459;--chakra-colors-pink-900:#521B41;--chakra-colors-linkedin-50:#E8F4F9;--chakra-colors-linkedin-100:#CFEDFB;--chakra-colors-linkedin-200:#9BDAF3;--chakra-colors-linkedin-300:#68C7EC;--chakra-colors-linkedin-400:#34B3E4;--chakra-colors-linkedin-500:#00A0DC;--chakra-colors-linkedin-600:#008CC9;--chakra-colors-linkedin-700:#0077B5;--chakra-colors-linkedin-800:#005E93;--chakra-colors-linkedin-900:#004471;--chakra-colors-facebook-50:#E8F4F9;--chakra-colors-facebook-100:#D9DEE9;--chakra-colors-facebook-200:#B7C2DA;--chakra-colors-facebook-300:#6482C0;--chakra-colors-facebook-400:#4267B2;--chakra-colors-facebook-500:#385898;--chakra-colors-facebook-600:#314E89;--chakra-colors-facebook-700:#29487D;--chakra-colors-facebook-800:#223B67;--chakra-colors-facebook-900:#1E355B;--chakra-colors-messenger-50:#D0E6FF;--chakra-colors-messenger-100:#B9DAFF;--chakra-colors-messenger-200:#A2CDFF;--chakra-colors-messenger-300:#7AB8FF;--chakra-colors-messenger-400:#2E90FF;--chakra-colors-messenger-500:#0078FF;--chakra-colors-messenger-600:#0063D1;--chakra-colors-messenger-700:#0052AC;--chakra-colors-messenger-800:#003C7E;--chakra-colors-messenger-900:#002C5C;--chakra-colors-whatsapp-50:#dffeec;--chakra-colors-whatsapp-100:#b9f5d0;--chakra-colors-whatsapp-200:#90edb3;--chakra-colors-whatsapp-300:#65e495;--chakra-colors-whatsapp-400:#3cdd78;--chakra-colors-whatsapp-500:#22c35e;--chakra-colors-whatsapp-600:#179848;--chakra-colors-whatsapp-700:#0c6c33;--chakra-colors-whatsapp-800:#01421c;--chakra-colors-whatsapp-900:#001803;--chakra-colors-twitter-50:#E5F4FD;--chakra-colors-twitter-100:#C8E9FB;--chakra-colors-twitter-200:#A8DCFA;--chakra-colors-twitter-300:#83CDF7;--chakra-colors-twitter-400:#57BBF5;--chakra-colors-twitter-500:#1DA1F2;--chakra-colors-twitter-600:#1A94DA;--chakra-colors-twitter-700:#1681BF;--chakra-colors-twitter-800:#136B9E;--chakra-colors-twitter-900:#0D4D71;--chakra-colors-telegram-50:#E3F2F9;--chakra-colors-telegram-100:#C5E4F3;--chakra-colors-telegram-200:#A2D4EC;--chakra-colors-telegram-300:#7AC1E4;--chakra-colors-telegram-400:#47A9DA;--chakra-colors-telegram-500:#0088CC;--chakra-colors-telegram-600:#007AB8;--chakra-colors-telegram-700:#006BA1;--chakra-colors-telegram-800:#005885;--chakra-colors-telegram-900:#003F5E;--chakra-colors-alt-100:#2a2e38;--chakra-colors-alt-900:#5D656B;--chakra-borders-none:0;--chakra-borders-1px:1px solid;--chakra-borders-2px:2px solid;--chakra-borders-4px:4px solid;--chakra-borders-8px:8px solid;--chakra-fonts-heading:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";--chakra-fonts-body:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";--chakra-fonts-mono:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--chakra-fontSizes-xs:0.75rem;--chakra-fontSizes-sm:0.875rem;--chakra-fontSizes-md:1rem;--chakra-fontSizes-lg:1.125rem;--chakra-fontSizes-xl:1.25rem;--chakra-fontSizes-2xl:1.5rem;--chakra-fontSizes-3xl:1.875rem;--chakra-fontSizes-4xl:2.25rem;--chakra-fontSizes-5xl:3rem;--chakra-fontSizes-6xl:3.75rem;--chakra-fontSizes-7xl:4.5rem;--chakra-fontSizes-8xl:6rem;--chakra-fontSizes-9xl:8rem;--chakra-fontWeights-hairline:100;--chakra-fontWeights-thin:200;--chakra-fontWeights-light:300;--chakra-fontWeights-normal:400;--chakra-fontWeights-medium:500;--chakra-fontWeights-semibold:600;--chakra-fontWeights-bold:700;--chakra-fontWeights-extrabold:800;--chakra-fontWeights-black:900;--chakra-letterSpacings-tighter:-0.05em;--chakra-letterSpacings-tight:-0.025em;--chakra-letterSpacings-normal:0;--chakra-letterSpacings-wide:0.025em;--chakra-letterSpacings-wider:0.05em;--chakra-letterSpacings-widest:0.1em;--chakra-lineHeights-3:.75rem;--chakra-lineHeights-4:1rem;--chakra-lineHeights-5:1.25rem;--chakra-lineHeights-6:1.5rem;--chakra-lineHeights-7:1.75rem;--chakra-lineHeights-8:2rem;--chakra-lineHeights-9:2.25rem;--chakra-lineHeights-10:2.5rem;--chakra-lineHeights-normal:normal;--chakra-lineHeights-none:1;--chakra-lineHeights-shorter:1.25;--chakra-lineHeights-short:1.375;--chakra-lineHeights-base:1.5;--chakra-lineHeights-tall:1.625;--chakra-lineHeights-taller:2;--chakra-radii-none:0;--chakra-radii-sm:0.125rem;--chakra-radii-base:0.25rem;--chakra-radii-md:0.375rem;--chakra-radii-lg:0.5rem;--chakra-radii-xl:0.75rem;--chakra-radii-2xl:1rem;--chakra-radii-3xl:1.5rem;--chakra-radii-full:9999px;--chakra-space-1:0.25rem;--chakra-space-2:0.5rem;--chakra-space-3:0.75rem;--chakra-space-4:1rem;--chakra-space-5:1.25rem;--chakra-space-6:1.5rem;--chakra-space-7:1.75rem;--chakra-space-8:2rem;--chakra-space-9:2.25rem;--chakra-space-10:2.5rem;--chakra-space-12:3rem;--chakra-space-14:3.5rem;--chakra-space-16:4rem;--chakra-space-20:5rem;--chakra-space-24:6rem;--chakra-space-28:7rem;--chakra-space-32:8rem;--chakra-space-36:9rem;--chakra-space-40:10rem;--chakra-space-44:11rem;--chakra-space-48:12rem;--chakra-space-52:13rem;--chakra-space-56:14rem;--chakra-space-60:15rem;--chakra-space-64:16rem;--chakra-space-72:18rem;--chakra-space-80:20rem;--chakra-space-96:24rem;--chakra-space-px:1px;--chakra-space-0-5:0.125rem;--chakra-space-1-5:0.375rem;--chakra-space-2-5:0.625rem;--chakra-space-3-5:0.875rem;--chakra-shadows-xs:0 0 0 1px rgba(0, 0, 0, 0.05);--chakra-shadows-sm:0 1px 2px 0 rgba(0, 0, 0, 0.05);--chakra-shadows-base:0 1px 3px 0 rgba(0, 0, 0, 0.1),0 1px 2px 0 rgba(0, 0, 0, 0.06);--chakra-shadows-md:0 4px 6px -1px rgba(0, 0, 0, 0.1),0 2px 4px -1px rgba(0, 0, 0, 0.06);--chakra-shadows-lg:0 10px 15px -3px rgba(0, 0, 0, 0.1),0 4px 6px -2px rgba(0, 0, 0, 0.05);--chakra-shadows-xl:0 20px 25px -5px rgba(0, 0, 0, 0.1),0 10px 10px -5px rgba(0, 0, 0, 0.04);--chakra-shadows-2xl:0 25px 50px -12px rgba(0, 0, 0, 0.25);--chakra-shadows-outline:0 0 0 3px #a991f1aa;--chakra-shadows-inner:inset 0 2px 4px 0 rgba(0,0,0,0.06);--chakra-shadows-none:none;--chakra-shadows-dark-lg:rgba(0, 0, 0, 0.1) 0px 0px 0px 1px,rgba(0, 0, 0, 0.2) 0px 5px 10px,rgba(0, 0, 0, 0.4) 0px 15px 40px;--chakra-sizes-1:0.25rem;--chakra-sizes-2:0.5rem;--chakra-sizes-3:0.75rem;--chakra-sizes-4:1rem;--chakra-sizes-5:1.25rem;--chakra-sizes-6:1.5rem;--chakra-sizes-7:1.75rem;--chakra-sizes-8:2rem;--chakra-sizes-9:2.25rem;--chakra-sizes-10:2.5rem;--chakra-sizes-12:3rem;--chakra-sizes-14:3.5rem;--chakra-sizes-16:4rem;--chakra-sizes-20:5rem;--chakra-sizes-24:6rem;--chakra-sizes-28:7rem;--chakra-sizes-32:8rem;--chakra-sizes-36:9rem;--chakra-sizes-40:10rem;--chakra-sizes-44:11rem;--chakra-sizes-48:12rem;--chakra-sizes-52:13rem;--chakra-sizes-56:14rem;--chakra-sizes-60:15rem;--chakra-sizes-64:16rem;--chakra-sizes-72:18rem;--chakra-sizes-80:20rem;--chakra-sizes-96:24rem;--chakra-sizes-px:1px;--chakra-sizes-0-5:0.125rem;--chakra-sizes-1-5:0.375rem;--chakra-sizes-2-5:0.625rem;--chakra-sizes-3-5:0.875rem;--chakra-sizes-max:max-content;--chakra-sizes-min:min-content;--chakra-sizes-full:100%;--chakra-sizes-3xs:14rem;--chakra-sizes-2xs:16rem;--chakra-sizes-xs:20rem;--chakra-sizes-sm:24rem;--chakra-sizes-md:28rem;--chakra-sizes-lg:32rem;--chakra-sizes-xl:36rem;--chakra-sizes-2xl:42rem;--chakra-sizes-3xl:48rem;--chakra-sizes-4xl:56rem;--chakra-sizes-5xl:64rem;--chakra-sizes-6xl:72rem;--chakra-sizes-7xl:80rem;--chakra-sizes-8xl:90rem;--chakra-sizes-container-sm:640px;--chakra-sizes-container-md:768px;--chakra-sizes-container-lg:1024px;--chakra-sizes-container-xl:1280px;--chakra-zIndices-hide:-1;--chakra-zIndices-auto:auto;--chakra-zIndices-base:0;--chakra-zIndices-docked:10;--chakra-zIndices-dropdown:1000;--chakra-zIndices-sticky:1100;--chakra-zIndices-banner:1200;--chakra-zIndices-overlay:1300;--chakra-zIndices-modal:1400;--chakra-zIndices-popover:1500;--chakra-zIndices-skipLink:1600;--chakra-zIndices-toast:1700;--chakra-zIndices-tooltip:1800;--chakra-transition-property-common:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform;--chakra-transition-property-colors:background-color,border-color,color,fill,stroke;--chakra-transition-property-dimensions:width,height;--chakra-transition-property-position:left,right,top,bottom;--chakra-transition-property-background:background-color,background-image,background-position;--chakra-transition-easing-ease-in:cubic-bezier(0.4, 0, 1, 1);--chakra-transition-easing-ease-out:cubic-bezier(0, 0, 0.2, 1);--chakra-transition-easing-ease-in-out:cubic-bezier(0.4, 0, 0.2, 1);--chakra-transition-duration-ultra-fast:50ms;--chakra-transition-duration-faster:100ms;--chakra-transition-duration-fast:150ms;--chakra-transition-duration-normal:200ms;--chakra-transition-duration-slow:300ms;--chakra-transition-duration-slower:400ms;--chakra-transition-duration-ultra-slow:500ms;--chakra-blur-none:0;--chakra-blur-sm:4px;--chakra-blur-base:8px;--chakra-blur-md:12px;--chakra-blur-lg:16px;--chakra-blur-xl:24px;--chakra-blur-2xl:40px;--chakra-blur-3xl:64px;}</style><style data-emotion="css-global 1jqlf9g">html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:system-ui,sans-serif;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;touch-action:manipulation;}body{position:relative;min-height:100%;font-feature-settings:'kern';}*,*::before,*::after{border-width:0;border-style:solid;box-sizing:border-box;}main{display:block;}hr{border-top-width:1px;box-sizing:content-box;height:0;overflow:visible;}pre,code,kbd,samp{font-family:SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:1em;}a{background-color:transparent;color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit;}abbr[title]{border-bottom:none;-webkit-text-decoration:underline;text-decoration:underline;-webkit-text-decoration:underline dotted;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bold;}small{font-size:80%;}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline;}sub{bottom:-0.25em;}sup{top:-0.5em;}img{border-style:none;}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible;}button,select{text-transform:none;}button::-moz-focus-inner,[type="button"]::-moz-focus-inner,[type="reset"]::-moz-focus-inner,[type="submit"]::-moz-focus-inner{border-style:none;padding:0;}fieldset{padding:0.35em 0.75em 0.625em;}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline;}textarea{overflow:auto;}[type="checkbox"],[type="radio"]{box-sizing:border-box;padding:0;}[type="number"]::-webkit-inner-spin-button,[type="number"]::-webkit-outer-spin-button{-webkit-appearance:none!important;}input[type="number"]{-moz-appearance:textfield;}[type="search"]{-webkit-appearance:textfield;outline-offset:-2px;}[type="search"]::-webkit-search-decoration{-webkit-appearance:none!important;}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block;}summary{display:-webkit-box;display:-webkit-list-item;display:-ms-list-itembox;display:list-item;}template{display:none;}[hidden]{display:none!important;}body,blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0;}button{background:transparent;padding:0;}fieldset{margin:0;padding:0;}ol,ul{margin:0;padding:0;}textarea{resize:vertical;}button,[role="button"]{cursor:pointer;}button::-moz-focus-inner{border:0!important;}table{border-collapse:collapse;}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit;}button,input,optgroup,select,textarea{padding:0;line-height:inherit;color:inherit;}img,svg,video,canvas,audio,iframe,embed,object{display:block;}img,video{max-width:100%;height:auto;}[data-js-focus-visible] :focus:not([data-focus-visible-added]){outline:none;box-shadow:none;}select::-ms-expand{display:none;}</style><style data-emotion="css-global 1baqkrf">body{font-family:var(--chakra-fonts-body);color:var(--chakra-colors-gray-800);background:var(--chakra-colors-white);transition-property:background-color;transition-duration:var(--chakra-transition-duration-normal);line-height:var(--chakra-lineHeights-base);}*::-webkit-input-placeholder{color:var(--chakra-colors-gray-400);}*::-moz-placeholder{color:var(--chakra-colors-gray-400);}*:-ms-input-placeholder{color:var(--chakra-colors-gray-400);}*::placeholder{color:var(--chakra-colors-gray-400);}*,*::before,::after{border-color:var(--chakra-colors-gray-200);word-wrap:break-word;}</style><span></span></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/","query":{},"buildId":"OY7xgp5amTQ-MjS0RPi98","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html> \ No newline at end of file
+<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/a37ded5ec4cf14937ec5.css" as="style"/><link rel="stylesheet" href="/_next/static/css/a37ded5ec4cf14937ec5.css" data-n-g=""/><link rel="preload" href="/_next/static/css/bdf775d76e641698f02f.css" as="style"/><link rel="stylesheet" href="/_next/static/css/bdf775d76e641698f02f.css" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-a40ef1678bae11e696dba45124eadd70.js"></script><script src="/_next/static/chunks/webpack-97b7769aa68ab46953a1.js" defer=""></script><script src="/_next/static/chunks/framework-a62d654bd9699da79f2a.js" defer=""></script><script src="/_next/static/chunks/main-80dde85f3cea1551bba1.js" defer=""></script><script src="/_next/static/chunks/pages/_app-5686c15726fcbac980ca.js" defer=""></script><script src="/_next/static/chunks/fb7d5399-9c00dff9225b87a317ed.js" defer=""></script><script src="/_next/static/chunks/17007de1-7d8b9c17ee7cc8107af3.js" defer=""></script><script src="/_next/static/chunks/252f366e-54a484ebfe8fe95dfdbb.js" defer=""></script><script src="/_next/static/chunks/95b64a6e-860b8751a48619de0c76.js" defer=""></script><script src="/_next/static/chunks/0c428ae2-753f1ebbec24c403674c.js" defer=""></script><script src="/_next/static/chunks/1a48c3c1-648f6631a5e9a5f8e954.js" defer=""></script><script src="/_next/static/chunks/b5f2ed29-b8c45246e6f61610d91f.js" defer=""></script><script src="/_next/static/chunks/d25bd147-2c59edc357c0e2372258.js" defer=""></script><script src="/_next/static/chunks/879-09bfd8a9d59d1f41b6f4.js" defer=""></script><script src="/_next/static/chunks/pages/index-f97770bc257e872f8c86.js" defer=""></script><script src="/_next/static/6Q3_SCUKl8zGqWimdcq8f/_buildManifest.js" defer=""></script><script src="/_next/static/6Q3_SCUKl8zGqWimdcq8f/_ssgManifest.js" defer=""></script></head><body><div id="__next"><style data-emotion="css-global 8u9pn4">:host,:root{--chakra-ring-inset:var(--chakra-empty,/*!*/ /*!*/);--chakra-ring-offset-width:0px;--chakra-ring-offset-color:#fff;--chakra-ring-color:rgba(66, 153, 225, 0.6);--chakra-ring-offset-shadow:0 0 #0000;--chakra-ring-shadow:0 0 #0000;--chakra-space-x-reverse:0;--chakra-space-y-reverse:0;--chakra-colors-transparent:transparent;--chakra-colors-current:currentColor;--chakra-colors-black:#bbc2cf;--chakra-colors-white:#242730;--chakra-colors-whiteAlpha-50:rgba(255, 255, 255, 0.04);--chakra-colors-whiteAlpha-100:rgba(255, 255, 255, 0.06);--chakra-colors-whiteAlpha-200:rgba(255, 255, 255, 0.08);--chakra-colors-whiteAlpha-300:rgba(255, 255, 255, 0.16);--chakra-colors-whiteAlpha-400:rgba(255, 255, 255, 0.24);--chakra-colors-whiteAlpha-500:rgba(255, 255, 255, 0.36);--chakra-colors-whiteAlpha-600:rgba(255, 255, 255, 0.48);--chakra-colors-whiteAlpha-700:rgba(255, 255, 255, 0.64);--chakra-colors-whiteAlpha-800:rgba(255, 255, 255, 0.80);--chakra-colors-whiteAlpha-900:rgba(255, 255, 255, 0.92);--chakra-colors-blackAlpha-50:rgba(0, 0, 0, 0.04);--chakra-colors-blackAlpha-100:rgba(0, 0, 0, 0.06);--chakra-colors-blackAlpha-200:rgba(0, 0, 0, 0.08);--chakra-colors-blackAlpha-300:rgba(0, 0, 0, 0.16);--chakra-colors-blackAlpha-400:rgba(0, 0, 0, 0.24);--chakra-colors-blackAlpha-500:rgba(0, 0, 0, 0.36);--chakra-colors-blackAlpha-600:rgba(0, 0, 0, 0.48);--chakra-colors-blackAlpha-700:rgba(0, 0, 0, 0.64);--chakra-colors-blackAlpha-800:rgba(0, 0, 0, 0.80);--chakra-colors-blackAlpha-900:rgba(0, 0, 0, 0.92);--chakra-colors-gray-50:#F7FAFC;--chakra-colors-gray-100:#1c1f24;--chakra-colors-gray-200:rgb(29, 33, 38);--chakra-colors-gray-300:#21272d;--chakra-colors-gray-400:#23272e;--chakra-colors-gray-500:#484854;--chakra-colors-gray-600:#62686E;--chakra-colors-gray-700:#757B80;--chakra-colors-gray-800:#9ca0a4;--chakra-colors-gray-900:#DFDFDF;--chakra-colors-red-50:#FFF5F5;--chakra-colors-red-100:#FED7D7;--chakra-colors-red-200:#FEB2B2;--chakra-colors-red-300:#FC8181;--chakra-colors-red-400:#F56565;--chakra-colors-red-500:#ff665c;--chakra-colors-red-600:#C53030;--chakra-colors-red-700:#9B2C2C;--chakra-colors-red-800:#822727;--chakra-colors-red-900:#63171B;--chakra-colors-orange-50:#FFFAF0;--chakra-colors-orange-100:#FEEBC8;--chakra-colors-orange-200:#FBD38D;--chakra-colors-orange-300:#F6AD55;--chakra-colors-orange-400:#ED8936;--chakra-colors-orange-500:#e69055;--chakra-colors-orange-600:#C05621;--chakra-colors-orange-700:#9C4221;--chakra-colors-orange-800:#7B341E;--chakra-colors-orange-900:#652B19;--chakra-colors-yellow-50:#FFFFF0;--chakra-colors-yellow-100:#FEFCBF;--chakra-colors-yellow-200:#FAF089;--chakra-colors-yellow-300:#F6E05E;--chakra-colors-yellow-400:#ECC94B;--chakra-colors-yellow-500:#FCCE7B;--chakra-colors-yellow-600:#B7791F;--chakra-colors-yellow-700:#975A16;--chakra-colors-yellow-800:#744210;--chakra-colors-yellow-900:#5F370E;--chakra-colors-green-50:#F0FFF4;--chakra-colors-green-100:#C6F6D5;--chakra-colors-green-200:#9AE6B4;--chakra-colors-green-300:#68D391;--chakra-colors-green-400:#48BB78;--chakra-colors-green-500:#7bc275;--chakra-colors-green-600:#2F855A;--chakra-colors-green-700:#276749;--chakra-colors-green-800:#22543D;--chakra-colors-green-900:#1C4532;--chakra-colors-teal-50:#E6FFFA;--chakra-colors-teal-100:#B2F5EA;--chakra-colors-teal-200:#81E6D9;--chakra-colors-teal-300:#4FD1C5;--chakra-colors-teal-400:#38B2AC;--chakra-colors-teal-500:#51afef;--chakra-colors-teal-600:#2C7A7B;--chakra-colors-teal-700:#285E61;--chakra-colors-teal-800:#234E52;--chakra-colors-teal-900:#1D4044;--chakra-colors-blue-50:#ebf8ff;--chakra-colors-blue-100:#bee3f8;--chakra-colors-blue-200:#90cdf4;--chakra-colors-blue-300:#63b3ed;--chakra-colors-blue-400:#4299e1;--chakra-colors-blue-500:#51afef;--chakra-colors-blue-600:#2b6cb0;--chakra-colors-blue-700:#2c5282;--chakra-colors-blue-800:#2a4365;--chakra-colors-blue-900:#1A365D;--chakra-colors-cyan-50:#EDFDFD;--chakra-colors-cyan-100:#C4F1F9;--chakra-colors-cyan-200:#9DECF9;--chakra-colors-cyan-300:#76E4F7;--chakra-colors-cyan-400:#0BC5EA;--chakra-colors-cyan-500:#5cEfFF;--chakra-colors-cyan-600:#00A3C4;--chakra-colors-cyan-700:#0987A0;--chakra-colors-cyan-800:#086F83;--chakra-colors-cyan-900:#065666;--chakra-colors-purple-50:#FAF5FF;--chakra-colors-purple-100:#E9D8FD;--chakra-colors-purple-200:#D6BCFA;--chakra-colors-purple-300:#B794F4;--chakra-colors-purple-400:#9F7AEA;--chakra-colors-purple-500:#a991f1;--chakra-colors-purple-600:#6B46C1;--chakra-colors-purple-700:#553C9A;--chakra-colors-purple-800:#44337A;--chakra-colors-purple-900:#322659;--chakra-colors-pink-50:#FFF5F7;--chakra-colors-pink-100:#FED7E2;--chakra-colors-pink-200:#FBB6CE;--chakra-colors-pink-300:#F687B3;--chakra-colors-pink-400:#ED64A6;--chakra-colors-pink-500:#C57BDB;--chakra-colors-pink-600:#B83280;--chakra-colors-pink-700:#97266D;--chakra-colors-pink-800:#702459;--chakra-colors-pink-900:#521B41;--chakra-colors-linkedin-50:#E8F4F9;--chakra-colors-linkedin-100:#CFEDFB;--chakra-colors-linkedin-200:#9BDAF3;--chakra-colors-linkedin-300:#68C7EC;--chakra-colors-linkedin-400:#34B3E4;--chakra-colors-linkedin-500:#00A0DC;--chakra-colors-linkedin-600:#008CC9;--chakra-colors-linkedin-700:#0077B5;--chakra-colors-linkedin-800:#005E93;--chakra-colors-linkedin-900:#004471;--chakra-colors-facebook-50:#E8F4F9;--chakra-colors-facebook-100:#D9DEE9;--chakra-colors-facebook-200:#B7C2DA;--chakra-colors-facebook-300:#6482C0;--chakra-colors-facebook-400:#4267B2;--chakra-colors-facebook-500:#385898;--chakra-colors-facebook-600:#314E89;--chakra-colors-facebook-700:#29487D;--chakra-colors-facebook-800:#223B67;--chakra-colors-facebook-900:#1E355B;--chakra-colors-messenger-50:#D0E6FF;--chakra-colors-messenger-100:#B9DAFF;--chakra-colors-messenger-200:#A2CDFF;--chakra-colors-messenger-300:#7AB8FF;--chakra-colors-messenger-400:#2E90FF;--chakra-colors-messenger-500:#0078FF;--chakra-colors-messenger-600:#0063D1;--chakra-colors-messenger-700:#0052AC;--chakra-colors-messenger-800:#003C7E;--chakra-colors-messenger-900:#002C5C;--chakra-colors-whatsapp-50:#dffeec;--chakra-colors-whatsapp-100:#b9f5d0;--chakra-colors-whatsapp-200:#90edb3;--chakra-colors-whatsapp-300:#65e495;--chakra-colors-whatsapp-400:#3cdd78;--chakra-colors-whatsapp-500:#22c35e;--chakra-colors-whatsapp-600:#179848;--chakra-colors-whatsapp-700:#0c6c33;--chakra-colors-whatsapp-800:#01421c;--chakra-colors-whatsapp-900:#001803;--chakra-colors-twitter-50:#E5F4FD;--chakra-colors-twitter-100:#C8E9FB;--chakra-colors-twitter-200:#A8DCFA;--chakra-colors-twitter-300:#83CDF7;--chakra-colors-twitter-400:#57BBF5;--chakra-colors-twitter-500:#1DA1F2;--chakra-colors-twitter-600:#1A94DA;--chakra-colors-twitter-700:#1681BF;--chakra-colors-twitter-800:#136B9E;--chakra-colors-twitter-900:#0D4D71;--chakra-colors-telegram-50:#E3F2F9;--chakra-colors-telegram-100:#C5E4F3;--chakra-colors-telegram-200:#A2D4EC;--chakra-colors-telegram-300:#7AC1E4;--chakra-colors-telegram-400:#47A9DA;--chakra-colors-telegram-500:#0088CC;--chakra-colors-telegram-600:#007AB8;--chakra-colors-telegram-700:#006BA1;--chakra-colors-telegram-800:#005885;--chakra-colors-telegram-900:#003F5E;--chakra-colors-alt-100:#2a2e38;--chakra-colors-alt-900:#5D656B;--chakra-borders-none:0;--chakra-borders-1px:1px solid;--chakra-borders-2px:2px solid;--chakra-borders-4px:4px solid;--chakra-borders-8px:8px solid;--chakra-fonts-heading:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";--chakra-fonts-body:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";--chakra-fonts-mono:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--chakra-fontSizes-xs:0.75rem;--chakra-fontSizes-sm:0.875rem;--chakra-fontSizes-md:1rem;--chakra-fontSizes-lg:1.125rem;--chakra-fontSizes-xl:1.25rem;--chakra-fontSizes-2xl:1.5rem;--chakra-fontSizes-3xl:1.875rem;--chakra-fontSizes-4xl:2.25rem;--chakra-fontSizes-5xl:3rem;--chakra-fontSizes-6xl:3.75rem;--chakra-fontSizes-7xl:4.5rem;--chakra-fontSizes-8xl:6rem;--chakra-fontSizes-9xl:8rem;--chakra-fontWeights-hairline:100;--chakra-fontWeights-thin:200;--chakra-fontWeights-light:300;--chakra-fontWeights-normal:400;--chakra-fontWeights-medium:500;--chakra-fontWeights-semibold:600;--chakra-fontWeights-bold:700;--chakra-fontWeights-extrabold:800;--chakra-fontWeights-black:900;--chakra-letterSpacings-tighter:-0.05em;--chakra-letterSpacings-tight:-0.025em;--chakra-letterSpacings-normal:0;--chakra-letterSpacings-wide:0.025em;--chakra-letterSpacings-wider:0.05em;--chakra-letterSpacings-widest:0.1em;--chakra-lineHeights-3:.75rem;--chakra-lineHeights-4:1rem;--chakra-lineHeights-5:1.25rem;--chakra-lineHeights-6:1.5rem;--chakra-lineHeights-7:1.75rem;--chakra-lineHeights-8:2rem;--chakra-lineHeights-9:2.25rem;--chakra-lineHeights-10:2.5rem;--chakra-lineHeights-normal:normal;--chakra-lineHeights-none:1;--chakra-lineHeights-shorter:1.25;--chakra-lineHeights-short:1.375;--chakra-lineHeights-base:1.5;--chakra-lineHeights-tall:1.625;--chakra-lineHeights-taller:2;--chakra-radii-none:0;--chakra-radii-sm:0.125rem;--chakra-radii-base:0.25rem;--chakra-radii-md:0.375rem;--chakra-radii-lg:0.5rem;--chakra-radii-xl:0.75rem;--chakra-radii-2xl:1rem;--chakra-radii-3xl:1.5rem;--chakra-radii-full:9999px;--chakra-space-1:0.25rem;--chakra-space-2:0.5rem;--chakra-space-3:0.75rem;--chakra-space-4:1rem;--chakra-space-5:1.25rem;--chakra-space-6:1.5rem;--chakra-space-7:1.75rem;--chakra-space-8:2rem;--chakra-space-9:2.25rem;--chakra-space-10:2.5rem;--chakra-space-12:3rem;--chakra-space-14:3.5rem;--chakra-space-16:4rem;--chakra-space-20:5rem;--chakra-space-24:6rem;--chakra-space-28:7rem;--chakra-space-32:8rem;--chakra-space-36:9rem;--chakra-space-40:10rem;--chakra-space-44:11rem;--chakra-space-48:12rem;--chakra-space-52:13rem;--chakra-space-56:14rem;--chakra-space-60:15rem;--chakra-space-64:16rem;--chakra-space-72:18rem;--chakra-space-80:20rem;--chakra-space-96:24rem;--chakra-space-px:1px;--chakra-space-0-5:0.125rem;--chakra-space-1-5:0.375rem;--chakra-space-2-5:0.625rem;--chakra-space-3-5:0.875rem;--chakra-shadows-xs:0 0 0 1px rgba(0, 0, 0, 0.05);--chakra-shadows-sm:0 1px 2px 0 rgba(0, 0, 0, 0.05);--chakra-shadows-base:0 1px 3px 0 rgba(0, 0, 0, 0.1),0 1px 2px 0 rgba(0, 0, 0, 0.06);--chakra-shadows-md:0 4px 6px -1px rgba(0, 0, 0, 0.1),0 2px 4px -1px rgba(0, 0, 0, 0.06);--chakra-shadows-lg:0 10px 15px -3px rgba(0, 0, 0, 0.1),0 4px 6px -2px rgba(0, 0, 0, 0.05);--chakra-shadows-xl:0 20px 25px -5px rgba(0, 0, 0, 0.1),0 10px 10px -5px rgba(0, 0, 0, 0.04);--chakra-shadows-2xl:0 25px 50px -12px rgba(0, 0, 0, 0.25);--chakra-shadows-outline:0 0 0 3px #a991f1aa;--chakra-shadows-inner:inset 0 2px 4px 0 rgba(0,0,0,0.06);--chakra-shadows-none:none;--chakra-shadows-dark-lg:rgba(0, 0, 0, 0.1) 0px 0px 0px 1px,rgba(0, 0, 0, 0.2) 0px 5px 10px,rgba(0, 0, 0, 0.4) 0px 15px 40px;--chakra-sizes-1:0.25rem;--chakra-sizes-2:0.5rem;--chakra-sizes-3:0.75rem;--chakra-sizes-4:1rem;--chakra-sizes-5:1.25rem;--chakra-sizes-6:1.5rem;--chakra-sizes-7:1.75rem;--chakra-sizes-8:2rem;--chakra-sizes-9:2.25rem;--chakra-sizes-10:2.5rem;--chakra-sizes-12:3rem;--chakra-sizes-14:3.5rem;--chakra-sizes-16:4rem;--chakra-sizes-20:5rem;--chakra-sizes-24:6rem;--chakra-sizes-28:7rem;--chakra-sizes-32:8rem;--chakra-sizes-36:9rem;--chakra-sizes-40:10rem;--chakra-sizes-44:11rem;--chakra-sizes-48:12rem;--chakra-sizes-52:13rem;--chakra-sizes-56:14rem;--chakra-sizes-60:15rem;--chakra-sizes-64:16rem;--chakra-sizes-72:18rem;--chakra-sizes-80:20rem;--chakra-sizes-96:24rem;--chakra-sizes-px:1px;--chakra-sizes-0-5:0.125rem;--chakra-sizes-1-5:0.375rem;--chakra-sizes-2-5:0.625rem;--chakra-sizes-3-5:0.875rem;--chakra-sizes-max:max-content;--chakra-sizes-min:min-content;--chakra-sizes-full:100%;--chakra-sizes-3xs:14rem;--chakra-sizes-2xs:16rem;--chakra-sizes-xs:20rem;--chakra-sizes-sm:24rem;--chakra-sizes-md:28rem;--chakra-sizes-lg:32rem;--chakra-sizes-xl:36rem;--chakra-sizes-2xl:42rem;--chakra-sizes-3xl:48rem;--chakra-sizes-4xl:56rem;--chakra-sizes-5xl:64rem;--chakra-sizes-6xl:72rem;--chakra-sizes-7xl:80rem;--chakra-sizes-8xl:90rem;--chakra-sizes-container-sm:640px;--chakra-sizes-container-md:768px;--chakra-sizes-container-lg:1024px;--chakra-sizes-container-xl:1280px;--chakra-zIndices-hide:-1;--chakra-zIndices-auto:auto;--chakra-zIndices-base:0;--chakra-zIndices-docked:10;--chakra-zIndices-dropdown:1000;--chakra-zIndices-sticky:1100;--chakra-zIndices-banner:1200;--chakra-zIndices-overlay:1300;--chakra-zIndices-modal:1400;--chakra-zIndices-popover:1500;--chakra-zIndices-skipLink:1600;--chakra-zIndices-toast:1700;--chakra-zIndices-tooltip:1800;--chakra-transition-property-common:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform;--chakra-transition-property-colors:background-color,border-color,color,fill,stroke;--chakra-transition-property-dimensions:width,height;--chakra-transition-property-position:left,right,top,bottom;--chakra-transition-property-background:background-color,background-image,background-position;--chakra-transition-easing-ease-in:cubic-bezier(0.4, 0, 1, 1);--chakra-transition-easing-ease-out:cubic-bezier(0, 0, 0.2, 1);--chakra-transition-easing-ease-in-out:cubic-bezier(0.4, 0, 0.2, 1);--chakra-transition-duration-ultra-fast:50ms;--chakra-transition-duration-faster:100ms;--chakra-transition-duration-fast:150ms;--chakra-transition-duration-normal:200ms;--chakra-transition-duration-slow:300ms;--chakra-transition-duration-slower:400ms;--chakra-transition-duration-ultra-slow:500ms;--chakra-blur-none:0;--chakra-blur-sm:4px;--chakra-blur-base:8px;--chakra-blur-md:12px;--chakra-blur-lg:16px;--chakra-blur-xl:24px;--chakra-blur-2xl:40px;--chakra-blur-3xl:64px;}</style><style data-emotion="css-global 1jqlf9g">html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:system-ui,sans-serif;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;touch-action:manipulation;}body{position:relative;min-height:100%;font-feature-settings:'kern';}*,*::before,*::after{border-width:0;border-style:solid;box-sizing:border-box;}main{display:block;}hr{border-top-width:1px;box-sizing:content-box;height:0;overflow:visible;}pre,code,kbd,samp{font-family:SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:1em;}a{background-color:transparent;color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit;}abbr[title]{border-bottom:none;-webkit-text-decoration:underline;text-decoration:underline;-webkit-text-decoration:underline dotted;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bold;}small{font-size:80%;}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline;}sub{bottom:-0.25em;}sup{top:-0.5em;}img{border-style:none;}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible;}button,select{text-transform:none;}button::-moz-focus-inner,[type="button"]::-moz-focus-inner,[type="reset"]::-moz-focus-inner,[type="submit"]::-moz-focus-inner{border-style:none;padding:0;}fieldset{padding:0.35em 0.75em 0.625em;}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline;}textarea{overflow:auto;}[type="checkbox"],[type="radio"]{box-sizing:border-box;padding:0;}[type="number"]::-webkit-inner-spin-button,[type="number"]::-webkit-outer-spin-button{-webkit-appearance:none!important;}input[type="number"]{-moz-appearance:textfield;}[type="search"]{-webkit-appearance:textfield;outline-offset:-2px;}[type="search"]::-webkit-search-decoration{-webkit-appearance:none!important;}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block;}summary{display:-webkit-box;display:-webkit-list-item;display:-ms-list-itembox;display:list-item;}template{display:none;}[hidden]{display:none!important;}body,blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0;}button{background:transparent;padding:0;}fieldset{margin:0;padding:0;}ol,ul{margin:0;padding:0;}textarea{resize:vertical;}button,[role="button"]{cursor:pointer;}button::-moz-focus-inner{border:0!important;}table{border-collapse:collapse;}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit;}button,input,optgroup,select,textarea{padding:0;line-height:inherit;color:inherit;}img,svg,video,canvas,audio,iframe,embed,object{display:block;}img,video{max-width:100%;height:auto;}[data-js-focus-visible] :focus:not([data-focus-visible-added]){outline:none;box-shadow:none;}select::-ms-expand{display:none;}</style><style data-emotion="css-global 1baqkrf">body{font-family:var(--chakra-fonts-body);color:var(--chakra-colors-gray-800);background:var(--chakra-colors-white);transition-property:background-color;transition-duration:var(--chakra-transition-duration-normal);line-height:var(--chakra-lineHeights-base);}*::-webkit-input-placeholder{color:var(--chakra-colors-gray-400);}*::-moz-placeholder{color:var(--chakra-colors-gray-400);}*:-ms-input-placeholder{color:var(--chakra-colors-gray-400);}*::placeholder{color:var(--chakra-colors-gray-400);}*,*::before,::after{border-color:var(--chakra-colors-gray-200);word-wrap:break-word;}</style><span></span></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/","query":{},"buildId":"6Q3_SCUKl8zGqWimdcq8f","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html> \ No newline at end of file