diff options
-rw-r--r-- | org-roam-ui.el | 6 | ||||
-rw-r--r-- | out/404.html | 2 | ||||
-rw-r--r-- | out/_next/static/chunks/pages/index-5445a2dc7c890c271b23.js (renamed from out/_next/static/chunks/pages/index-c7cb584a2066ed076189.js) | 2 | ||||
-rw-r--r-- | out/_next/static/jxIkEN4CD1mArgyfzungE/_buildManifest.js (renamed from out/_next/static/g6o_7G2hfKOrhwSuyMf3T/_buildManifest.js) | 2 | ||||
-rw-r--r-- | out/_next/static/jxIkEN4CD1mArgyfzungE/_ssgManifest.js (renamed from out/_next/static/g6o_7G2hfKOrhwSuyMf3T/_ssgManifest.js) | 0 | ||||
-rw-r--r-- | out/index.html | 2 | ||||
-rw-r--r-- | pages/index.tsx | 5 |
7 files changed, 10 insertions, 9 deletions
diff --git a/org-roam-ui.el b/org-roam-ui.el index f363331..ad0cad6 100644 --- a/org-roam-ui.el +++ b/org-roam-ui.el @@ -36,6 +36,7 @@ (require 'json) (require 'simple-httpd) (require 'org-roam) +(require 'org-roam-dailies) (require 'websocket) (defgroup org-roam-ui nil @@ -168,6 +169,7 @@ This serves the web-build and API over HTTP." :host 'local :on-open (lambda (ws) (progn (setq oru-ws ws) + (org-roam-ui--send-variables ws) (org-roam-ui--send-graphdata) (when org-roam-ui-update-on-save (add-hook 'after-save-hook #'org-roam-ui--on-save)) @@ -385,8 +387,8 @@ unchanged." (when (boundp 'org-roam-dailies-directory) (websocket-send-text ws (json-encode `((type . "variables") (data . - (("daily-directory" . ,(concat org-roam-directory org-roam-dailies-directory)) - ("org-roam-directory" . ,org-roam-directory)))))))) + (("dailyDir" . ,(concat org-roam-directory org-roam-dailies-directory)) + ("roamDir" . ,org-roam-directory)))))))) (defun org-roam-ui-sql-to-alist (column-names rows) "Convert sql result to alist for json encoding. diff --git a/out/404.html b/out/404.html index 33e610c..4a464fd 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/331301db207a91d407e5.css" as="style"/><link rel="stylesheet" href="/_next/static/css/331301db207a91d407e5.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-e7a279300235e161e32a.js"></script><script src="/_next/static/chunks/webpack-9c7513cc478a82b87a1b.js" defer=""></script><script src="/_next/static/chunks/framework-2f612445bd50b211f15a.js" defer=""></script><script src="/_next/static/chunks/main-18e5535ffc85f4a7d113.js" defer=""></script><script src="/_next/static/chunks/pages/_app-e0282e738dca0f9e7c71.js" defer=""></script><script src="/_next/static/chunks/pages/_error-4a5d36cf6de80ea8be7a.js" defer=""></script><script src="/_next/static/g6o_7G2hfKOrhwSuyMf3T/_buildManifest.js" defer=""></script><script src="/_next/static/g6o_7G2hfKOrhwSuyMf3T/_ssgManifest.js" defer=""></script></head><body><div id="__next"><style data-emotion="css-global 1n4e8ad">: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 1syi0wy">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;vertical-align:middle;}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, "Segoe UI", "Fira Sans", Avenir, "Helvetica Neue", "Lucida Grande", 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":"g6o_7G2hfKOrhwSuyMf3T","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/331301db207a91d407e5.css" as="style"/><link rel="stylesheet" href="/_next/static/css/331301db207a91d407e5.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-e7a279300235e161e32a.js"></script><script src="/_next/static/chunks/webpack-9c7513cc478a82b87a1b.js" defer=""></script><script src="/_next/static/chunks/framework-2f612445bd50b211f15a.js" defer=""></script><script src="/_next/static/chunks/main-18e5535ffc85f4a7d113.js" defer=""></script><script src="/_next/static/chunks/pages/_app-e0282e738dca0f9e7c71.js" defer=""></script><script src="/_next/static/chunks/pages/_error-4a5d36cf6de80ea8be7a.js" defer=""></script><script src="/_next/static/jxIkEN4CD1mArgyfzungE/_buildManifest.js" defer=""></script><script src="/_next/static/jxIkEN4CD1mArgyfzungE/_ssgManifest.js" defer=""></script></head><body><div id="__next"><style data-emotion="css-global 1n4e8ad">: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 1syi0wy">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;vertical-align:middle;}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, "Segoe UI", "Fira Sans", Avenir, "Helvetica Neue", "Lucida Grande", 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":"jxIkEN4CD1mArgyfzungE","nextExport":true,"isFallback":false,"gip":true,"scriptLoader":[]}</script></body></html>
\ No newline at end of file diff --git a/out/_next/static/chunks/pages/index-c7cb584a2066ed076189.js b/out/_next/static/chunks/pages/index-5445a2dc7c890c271b23.js index 205d301..b5d6e06 100644 --- a/out/_next/static/chunks/pages/index-c7cb584a2066ed076189.js +++ b/out/_next/static/chunks/pages/index-5445a2dc7c890c271b23.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{82993:function(e,n,t){"use strict";t.r(n),t.d(n,{Graph:function(){return gn},GraphPage:function(){return hn},default:function(){return dn}});var r=t(87757),i=t.n(r),o=t(92137),l=t(85893),s=t(87329),c=t(96156),a=t(34699),u=t(67294);function d(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 h(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?d(Object(t),!0).forEach((function(n){(0,c.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):d(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function g(e,n){var t,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=f(e,null!==(t=r.storage)&&void 0!==t?t:localStorage),o=i.get(),l=void 0!==o?o:n,s=null!=o&&"object"===typeof o&&!1===Array.isArray(o)?h(h({},n),o):l;s!==o&&i.update(s);var c=(0,u.useState)(s),a=c[0],d=c[1];(0,u.useEffect)((function(){a!==s&&d(s)}),[e]);var g=function(e){e instanceof Function?d((function(n){var t=e(n);return i.update(t),t})):(d(e),i.update(e))};return[a,g]}function f(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 p=t(54533),x=t(54309),j=t(32351),b=t(40980),v=t(48017),m=t(74860),y=t(36194),C=[],k={};for(var O in y.oY)for(var w in y.oY[O]){var S=O+w;"LinearNone"===S&&(S="Linear"),C.push(S),k[S]=y.oY[O][w]}var P=k,L={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},I={orphans:!1,dailies:!1,parent:"heading",filelessCites:!1,tagsBlacklist:[],tagsWhitelist:[],bad:!0,nodes:[],links:[],date:[]},D={particles:!1,particlesNumber:0,particlesWidth:4,arrows:!1,arrowsLength:1,arrowsPos:.5,arrowsColor:"",linkOpacity:.8,linkWidth:1,nodeRel:4,nodeOpacity:1,nodeResolution:12,labels:2,labelScale:1.5,labelFontSize:13,labelLength:40,labelWordWrap:25,labelLineSpace:1,highlight:!0,highlightNodeSize:2,highlightLinkSize:2,highlightFade:.8,highlightAnim:!0,animationSpeed:420,algorithmOptions:C,algorithmName:"SinusoidalOut",linkColorScheme:"gray.500",nodeColorScheme:["red.500","gray.600","yellow.500","green.500","cyan.500","blue.500","pink.500","purple.500","orange.500"],nodeHighlight:"purple.500",linkHighlight:"purple.500",backgroundColor:"white",emacsNodeColor:"gray.800",labelTextColor:"gray.900",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.3},N={follow:"zoom",localSame:"add",zoomPadding:200,zoomSpeed:2e3},z={highlight:"hover",local:"click",follow:"double",context:"right"},E=["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"],Z=t(81253),T=t(93924),R=t(83986),F=t(48931),H=t(48420),A=t(96699),V=t(40155),B=t(56769),W=t(336),M=t(86658),X=t(6569),_=t(72026),q=t(94096),Q=t(64115),G=t(48235),K=t(67273),U=t(88134),J=t(47647);function Y(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 $(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Y(Object(t),!0).forEach((function(n){(0,c.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Y(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var ee=function(e){var n=e.filter,t=e.setFilter,r=e.tags,i=e.highlightColor,o=e.mode,s=r.map((function(e){return{value:e,label:e}})),a="blacklist"===o?"tagsBlacklist":"tagsWhitelist",d=(0,u.useState)(n[a].map((function(e){return{value:e,label:e}}))),h=d[0],g=d[1];return(0,l.jsx)(J.CUIAutoComplete,{items:s,label:"Add tag to "+o,placeholder:" ",onCreateItem:function(e){return null},disableCreateItem:!0,selectedItems:h,onSelectedItemsChange:function(e){e.selectedItems&&(g(e.selectedItems),t($($({},n),{},(0,c.Z)({},a,e.selectedItems.map((function(e){return e.value}))))))},listItemStyleProps:{overflow:"hidden"},highlightItemBg:"gray.400",toggleButtonStyleProps:{variant:"outline"},inputStyleProps:{focusBorderColor:i,color:"gray.800",borderColor:"gray.600"},tagStyleProps:{rounded:"full",bg:i,height:8,paddingLeft:4,fontWeight:"bold"},hideToggleButton:!0,itemRenderer:function(e){return e.label}})},ne=t(2827);function te(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function re(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?te(Object(t),!0).forEach((function(n){(0,c.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):te(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var ie=function(e){var n=e.colorList,t=e.tagColors,r=e.setTagColors,i=e.highlightColor,o=e.tags.map((function(e){return{value:e,label:e}})),s=(0,u.useState)(Object.keys(t).map((function(e){return{value:e,label:e}}))),a=s[0],d=s[1];return(0,l.jsxs)(v.xu,{children:[(0,l.jsx)(J.CUIAutoComplete,{items:o,label:"Add tag to filter",placeholder:" ",disableCreateItem:!0,selectedItems:a,onSelectedItemsChange:function(e){e.selectedItems&&(d(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:{focusBorderColor:i,color:"gray.800",borderColor:"gray.600"},tagStyleProps:{display:"none",rounded:"full",bg:i,height:8,paddingLeft:4,fontWeight:"bold"},hideToggleButton:!0,itemRenderer:function(e){return e.label}}),(0,l.jsx)(_.gC,{spacing:2,justifyContent:"flex-start",divider:(0,l.jsx)(_.cX,{borderColor:"gray.500"}),align:"stretch",color:"gray.800",children:Object.keys(t).map((function(e){return(0,l.jsxs)(q.k,{alignItems:"center",justifyContent:"space-between",width:"100%",pl:2,children:[(0,l.jsx)(v.xu,{width:"100%",children:(0,l.jsx)(Q.x,{fontWeight:"bold",children:e})}),(0,l.jsxs)(G.v2,{isLazy:!0,placement:"right",children:[(0,l.jsx)(G.j2,{as:V.z,colorScheme:"",color:"black",children:(0,l.jsx)(v.xu,{bgColor:t[e],borderRadius:"sm",height:6,width:6})}),(0,l.jsxs)(K.h,{children:[" ",(0,l.jsx)(G.qy,{minW:10,zIndex:"popover",bgColor:"gray.200",children:n.map((function(n){return(0,l.jsx)(G.sN,{onClick:function(){return r(re(re({},t),{},(0,c.Z)({},e,n)))},justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,l.jsx)(v.xu,{bgColor:n,borderRadius:"sm",height:6,width:6})},n)}))})]})]}),(0,l.jsx)(H.h,{"aria-label":"Delete tag color",variant:"ghost",icon:(0,l.jsx)(ne.p,{}),onClick:function(){r(Object.fromEntries(Array.from(new Set(a)).map((function(e){var n;return[e.label,null!==(n=t[e.label])&&void 0!==n?n:"gray.600"]})))),d(a.filter((function(n){return n.value!==e})))}})]},e)}))})]})};function oe(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function le(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?oe(Object(t),!0).forEach((function(n){(0,c.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):oe(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var se=function(e){var n=e.filter,t=e.setFilter,r=e.tagColors,i=e.setTagColors,o=e.highlightColor,s=e.colorList,c=e.tags;return(0,l.jsxs)(v.xu,{children:[(0,l.jsxs)(_.gC,{spacing:2,justifyContent:"flex-start",divider:(0,l.jsx)(_.cX,{borderColor:"gray.500"}),align:"stretch",paddingLeft:7,color:"gray.800",children:[(0,l.jsxs)(q.k,{alignItems:"center",justifyContent:"space-between",children:[(0,l.jsx)(Q.x,{children:"Link children to"}),(0,l.jsxs)(G.v2,{isLazy:!0,placement:"right",children:[(0,l.jsx)(G.j2,{as:V.z,rightIcon:(0,l.jsx)(X.v,{}),colorScheme:"",color:"black",size:"sm",children:function(){switch(n.parent){case"parent":return(0,l.jsx)(Q.x,{children:"File"});case"heading":return(0,l.jsx)(Q.x,{children:"Heading"});default:return(0,l.jsx)(Q.x,{children:"Nothing"})}}()}),(0,l.jsxs)(K.h,{children:[" ",(0,l.jsxs)(G.qy,{bgColor:"gray.200",zIndex:"popover",children:[(0,l.jsx)(G.sN,{onClick:function(){return t((function(e){return le(le({},e),{},{parent:""})}))},children:"Nothing"}),(0,l.jsx)(G.sN,{onClick:function(){return t((function(e){return le(le({},e),{},{parent:"parent"})}))},children:"Parent file node"}),(0,l.jsx)(G.sN,{onClick:function(){return t((function(e){return le(le({},e),{},{parent:"heading"})}))},children:"Next highest heading node"})]})]})]})]}),(0,l.jsxs)(q.k,{justifyContent:"space-between",children:[(0,l.jsx)(Q.x,{children:"Orphans"}),(0,l.jsx)(U.r,{onChange:function(){t((function(e){return le(le({},e),{},{orphans:!e.orphans})}))},isChecked:n.orphans})]}),(0,l.jsxs)(q.k,{justifyContent:"space-between",children:[(0,l.jsx)(Q.x,{children:"Dailies"}),(0,l.jsx)(U.r,{onChange:function(){t((function(e){return le(le({},e),{},{dailies:!e.dailies})}))},isChecked:n.dailies})]}),(0,l.jsxs)(q.k,{justifyContent:"space-between",children:[(0,l.jsx)(Q.x,{children:"Citations without note files"}),(0,l.jsx)(U.r,{onChange:function(){t(le(le({},n),{},{filelessCites:!n.filelessCites}))},isChecked:n.filelessCites})]}),(0,l.jsxs)(q.k,{justifyContent:"space-between",children:[(0,l.jsx)(Q.x,{children:"Non-existant nodes"}),(0,l.jsx)(U.r,{onChange:function(){i(le(le({},r),{},{bad:"white"})),t(le(le({},n),{},{bad:!n.bad}))},isChecked:n.bad})]})]}),(0,l.jsxs)(B.UQ,{padding:0,allowToggle:!0,allowMultiple:!0,paddingLeft:3,children:[(0,l.jsxs)(B.Qd,{children:[(0,l.jsxs)(B.KF,{children:["Tag filters",(0,l.jsx)(B.XE,{})]}),(0,l.jsxs)(B.Hk,{pr:0,mr:0,children:[(0,l.jsx)(ee,{highlightColor:o,filter:n,setFilter:t,tags:c,mode:"blacklist"}),(0,l.jsx)(ee,{highlightColor:o,filter:n,setFilter:t,tags:c,mode:"whitelist"})]})]}),(0,l.jsxs)(B.Qd,{children:[(0,l.jsxs)(B.KF,{children:["Tag colors",(0,l.jsx)(B.XE,{})]}),(0,l.jsx)(B.Hk,{pr:0,mr:0,children:(0,l.jsx)(ie,{tags:c,colorList:s,tagColors:r,setTagColors:i,highlightColor:o})})]})]})]})},ce=t(29356),ae=t(15267),ue=t(24189),de=function(e){var n=e.infoText;return(0,l.jsx)(v.xu,{paddingLeft:"1",children:(0,l.jsx)(A.u,{label:n,placement:"top",color:"gray.100",bg:"gray.800",hasArrow:!0,children:(0,l.jsx)(ue.h,{})})})},he=function(e){var n=e.value,t=e.onChange,r=e.label,i=e.infoText,o=e.children;return(0,l.jsxs)(v.xu,{paddingTop:2,children:[(0,l.jsxs)(v.xu,{display:"flex",justifyContent:"space-between",paddingBottom:2,children:[(0,l.jsxs)(v.xu,{display:"flex",alignItems:"center",children:[(0,l.jsx)(Q.x,{children:r}),i&&(0,l.jsx)(de,{infoText:i})]}),(0,l.jsx)(U.r,{isChecked:!!n,onChange:t})]}),(0,l.jsx)(ae.U,{in:!!n,animateOpacity:!0,children:(0,l.jsx)(v.xu,{paddingLeft:4,paddingTop:2,paddingBottom:2,children:o})})]},r)},ge=t(95818),fe=function(e){var n=e.min,t=void 0===n?0:n,r=e.max,i=void 0===r?10:r,o=e.step,s=void 0===o?.1:o,c=e.value,a=void 0===c?1:c,d=(0,Z.Z)(e,["min","max","step","value"]),h=d.onChange,g=d.label,f=d.infoText,p=(0,u.useContext)(ce.N).highlightColor;return(0,l.jsxs)(v.xu,{children:[(0,l.jsxs)(v.xu,{display:"flex",alignItems:"flex-end",children:[(0,l.jsx)(Q.x,{children:g}),f&&(0,l.jsx)(de,{infoText:f})]}),(0,l.jsxs)(ge.iR,{value:a,onChange:h,min:t,max:i,step:s,children:[(0,l.jsx)(ge.Uj,{children:(0,l.jsx)(ge.Ms,{})}),(0,l.jsx)(A.u,{bg:p,label:a.toFixed(1),children:(0,l.jsx)(ge.gs,{bg:"white"})})]})]},g)};function pe(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 xe(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?pe(Object(t),!0).forEach((function(n){(0,c.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):pe(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var je=function(e){var n=e.physics,t=e.setPhysics,r=(0,u.useCallback)((function(e,n,r){t((function(t){return xe(xe({},t),{},(0,c.Z)({},n,e/r))}))}),[]);return(0,l.jsxs)(v.xu,{children:[(0,l.jsxs)(_.gC,{spacing:2,justifyContent:"flex-start",divider:(0,l.jsx)(_.cX,{borderColor:"gray.500"}),align:"stretch",paddingLeft:7,color:"gray.800",children:[(0,l.jsxs)(he,{label:"Gravity",value:n.gravityOn,onChange:function(){return t(xe(xe({},n),{},{gravityOn:!n.gravityOn}))},children:[(0,l.jsxs)(q.k,{justifyContent:"space-between",children:[(0,l.jsx)(Q.x,{children:"Also in local"}),(0,l.jsx)(U.r,{onChange:function(){t((function(e){return xe(xe({},e),{},{gravityLocal:!e.gravityLocal})}))},isChecked:n.gravityLocal})]}),(0,l.jsx)(fe,{label:"Strength",value:10*n.gravity,onChange:function(e){return r(e,"gravity",10)}})]}),(0,l.jsx)(fe,{value:-n.charge/100,onChange:function(e){return r(e,"charge",-.01)},label:"Repulsive Force"}),(0,l.jsx)(he,{label:"Collision",infoText:"Perfomance sap, disable if slow",value:n.collision,onChange:function(){return t(xe(xe({},n),{},{collision:!n.collision}))},children:(0,l.jsx)(fe,{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,l.jsx)(fe,{value:5*n.linkStrength,onChange:function(e){return r(e,"linkStrength",5)},label:"Link Force"}),(0,l.jsx)(fe,{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,l.jsx)(fe,{label:"Viscosity",value:10*n.velocityDecay,onChange:function(e){return r(e,"velocityDecay",10)}})]}),(0,l.jsx)(v.xu,{children:(0,l.jsx)(B.UQ,{paddingLeft:3,allowToggle:!0,children:(0,l.jsxs)(B.Qd,{children:[(0,l.jsxs)(B.KF,{children:[(0,l.jsx)(Q.x,{children:"Advanced"}),(0,l.jsx)(B.XE,{marginRight:2})]}),(0,l.jsx)(B.Hk,{children:(0,l.jsxs)(_.gC,{spacing:2,justifyContent:"flex-start",divider:(0,l.jsx)(_.cX,{borderColor:"gray.500"}),align:"stretch",paddingLeft:3,color:"gray.800",children:[(0,l.jsx)(fe,{label:"Stabilization rate",value:50*n.alphaDecay,onChange:function(e){return r(e,"alphaDecay",50)}}),(0,l.jsx)(he,{label:"Center nodes",value:n.centering,onChange:function(){return t(xe(xe({},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,l.jsx)(fe,{label:"Centering Strength",value:n.centeringStrength,max:2,step:.01,onChange:function(e){return r(e,"centeringStrength",1)}})})]})})]})})})]})},be=t(46049);function ve(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?ve(Object(t),!0).forEach((function(n){(0,c.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ve(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var ye=function(e){var n=e.visuals,t=e.setVisuals;return(0,l.jsx)(_.gC,{spacing:2,justifyContent:"flex-start",divider:(0,l.jsx)(_.cX,{borderColor:"gray.500"}),align:"stretch",color:"gray.800",children:(0,l.jsx)(v.xu,{children:(0,l.jsx)(he,{label:"Highlight",onChange:function(){return t((function(e){return me(me({},e),{},{highlight:!e.highlight})}))},value:n.highlight,children:(0,l.jsxs)(_.gC,{spacing:1,justifyContent:"flex-start",divider:(0,l.jsx)(_.cX,{borderColor:"gray.400"}),align:"stretch",paddingLeft:0,children:[(0,l.jsx)(fe,{label:"Highlight Link Thickness",value:n.highlightLinkSize,onChange:function(e){return t((function(n){return me(me({},n),{},{highlightLinkSize:e})}))}}),(0,l.jsx)(fe,{label:"Highlight Node Size",value:n.highlightNodeSize,onChange:function(e){return t((function(n){return me(me({},n),{},{highlightNodeSize:e})}))}}),(0,l.jsx)(fe,{min:0,max:1,label:"Highlight Fade",value:n.highlightFade,onChange:function(e){return t((function(n){return me(me({},n),{},{highlightFade:e})}))}}),(0,l.jsxs)(he,{label:"Highlight Animation",onChange:function(){t((function(e){return me(me({},e),{},{highlightAnim:!e.highlightAnim})}))},value:n.highlightAnim,children:[(0,l.jsx)(fe,{label:"Animation speed",onChange:function(e){return t((function(n){return me(me({},n),{},{animationSpeed:e})}))},value:n.animationSpeed,infoText:"Slower speed has a chance of being buggy",min:50,max:1e3,step:10}),(0,l.jsx)(be.Ph,{placeholder:n.algorithmName,onChange:function(e){t((function(n){return me(me({},n),{},{algorithmName:e.target.value})}))},children:n.algorithmOptions.map((function(e){return(0,l.jsx)("option",{value:e,children:e},e)}))})]})]})})})})},Ce=t(67546),ke=t(93441);function Oe(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function we(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Oe(Object(t),!0).forEach((function(n){(0,c.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Oe(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Se=function(e){var n=e.label,t=e.colorList,r=e.value,i=e.visValue,o=e.setVisuals,s=(0,u.useCallback)((function(e){return o((function(n){return we(we({},n),{},(0,c.Z)({},r,e))}))}),[]);return(0,l.jsxs)(q.k,{alignItems:"center",justifyContent:"space-between",children:[(0,l.jsx)(Q.x,{children:n}),(0,l.jsxs)(G.v2,{isLazy:!0,placement:"right",children:[(0,l.jsx)(G.j2,{as:V.z,colorScheme:"",color:"black",rightIcon:(0,l.jsx)(X.v,{}),children:(0,l.jsx)(v.xu,{bgColor:i,borderRadius:"sm",height:6,width:6})}),(0,l.jsxs)(K.h,{children:[" ",(0,l.jsxs)(G.qy,{minW:10,zIndex:"popover",bgColor:"gray.200",children:[(0,l.jsx)(G.sN,{onClick:function(){return s("")},justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,l.jsx)(v.xu,{height:6,width:6})}),t.map((function(e){return(0,l.jsx)(G.sN,{onClick:function(){return s(e)},justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,l.jsx)(v.xu,{bgColor:e,borderRadius:"sm",height:6,width:6})},e)}))]})]})]})]})};function Pe(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?Pe(Object(t),!0).forEach((function(n){(0,c.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Pe(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Ie=function(e){var n=e.visuals,t=e.setVisualsCallback,r=e.highlightColor,i=e.setHighlightColor;return(0,l.jsx)(_.gC,{spacing:2,justifyContent:"flex-start",divider:(0,l.jsx)(_.cX,{borderColor:"gray.500"}),align:"stretch",color:"gray.800",children:(0,l.jsxs)(v.xu,{children:[(0,l.jsxs)(q.k,{alignItems:"center",justifyContent:"space-between",children:[(0,l.jsx)(Q.x,{children:"Nodes"}),(0,l.jsx)(A.u,{label:"Shuffle node colors",children:(0,l.jsx)(H.h,{"aria-label":"Shuffle node colors",size:"sm",icon:(0,l.jsx)(Ce.n,{}),variant:"ghost",onClick:function(){var e,r=null!==(e=n.nodeColorScheme)&&void 0!==e?e:[];t(Le(Le({},n),{},{nodeColorScheme:r.map((function(e){return[Math.random(),e]})).sort((function(e,n){return(0,a.Z)(e,1)[0]-(0,a.Z)(n,1)[0]})).map((function(e){var n=(0,a.Z)(e,2);n[0];return n[1]}))}))}})}),(0,l.jsx)(A.u,{label:"Cycle node colors",children:(0,l.jsx)(H.h,{"aria-label":"Shift node colors",icon:(0,l.jsx)(ke.L,{}),size:"sm",variant:"ghost",onClick:function(){var e,r=null!==(e=n.nodeColorScheme)&&void 0!==e?e:[];t(Le(Le({},n),{},{nodeColorScheme:[].concat((0,s.Z)(r.slice(1,r.length)),[r[0]])}))}})}),(0,l.jsxs)(G.v2,{isLazy:!0,placement:"right",closeOnSelect:!1,matchWidth:!0,children:[(0,l.jsx)(G.j2,{width:20,as:V.z,colorScheme:"",color:"black",rightIcon:(0,l.jsx)(X.v,{}),children:(0,l.jsx)(q.k,{height:6,width:6,flexDirection:"column",flexWrap:"wrap",children:n.nodeColorScheme.map((function(e){return(0,l.jsx)(v.xu,{bgColor:e,flex:"1 1 8px",borderRadius:"2xl"},e)}))})}),(0,l.jsxs)(K.h,{children:[" ",(0,l.jsx)(G.qy,{minW:10,zIndex:"popover",bgColor:"gray.200",children:(0,l.jsx)(G.__,{width:500,type:"checkbox",defaultValue:n.nodeColorScheme,onChange:function(e){e.length&&t(Le(Le({},n),{},{nodeColorScheme:e}))},children:E.map((function(e){return(0,l.jsx)(G.ii,{isChecked:n.nodeColorScheme.some((function(n){return n===e})),value:e,isDisabled:1===n.nodeColorScheme.length&&n.nodeColorScheme[0]===e,children:(0,l.jsx)(v.xu,{justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,l.jsx)(v.xu,{bgColor:e,borderRadius:"sm",height:6,width:6})})},e)}))})})]})]})]}),(0,l.jsxs)(q.k,{alignItems:"center",justifyContent:"space-between",children:[(0,l.jsx)(Q.x,{children:"Links"}),(0,l.jsxs)(G.v2,{isLazy:!0,placement:"right",children:[(0,l.jsx)(G.j2,{as:V.z,colorScheme:"",color:"black",rightIcon:(0,l.jsx)(X.v,{}),children:(0,l.jsx)(v.xu,{children:n.linkColorScheme?(0,l.jsx)(v.xu,{bgColor:n.linkColorScheme,borderRadius:"sm",height:6,width:6}):(0,l.jsx)(q.k,{height:6,width:6,flexDirection:"column",flexWrap:"wrap",children:n.nodeColorScheme.map((function(e){return(0,l.jsx)(v.xu,{bgColor:e,flex:"1 1 8px",borderRadius:"2xl"},e)}))})})}),(0,l.jsxs)(K.h,{children:[" ",(0,l.jsxs)(G.qy,{minW:10,zIndex:"popover",bgColor:"gray.200",children:[(0,l.jsx)(G.sN,{onClick:function(){return t(Le(Le({},n),{},{linkColorScheme:""}))},justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,l.jsx)(q.k,{height:6,width:6,flexDirection:"column",flexWrap:"wrap",children:n.nodeColorScheme.map((function(e){return(0,l.jsx)(v.xu,{bgColor:e,flex:"1 1 8px",borderRadius:"2xl"},e)}))})}),E.map((function(e){return(0,l.jsx)(G.sN,{onClick:function(){return t(Le(Le({},n),{},{linkColorScheme:e}))},justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,l.jsx)(v.xu,{bgColor:e,borderRadius:"sm",height:6,width:6})},e)}))]})]})]})]}),(0,l.jsxs)(q.k,{alignItems:"center",justifyContent:"space-between",children:[(0,l.jsx)(Q.x,{children:"Accent"}),(0,l.jsxs)(G.v2,{isLazy:!0,placement:"right",children:[(0,l.jsx)(G.j2,{as:V.z,colorScheme:"",color:"black",rightIcon:(0,l.jsx)(X.v,{}),children:(0,l.jsx)(v.xu,{bgColor:r,borderRadius:"sm",height:6,width:6})}),(0,l.jsxs)(K.h,{children:[" ",(0,l.jsx)(G.qy,{minW:10,zIndex:"popover",bgColor:"gray.200",children:E.map((function(e){return(0,l.jsx)(G.sN,{onClick:function(){return i(e)},justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,l.jsx)(v.xu,{bgColor:e,borderRadius:"sm",height:6,width:6})},e)}))})]})]})]}),(0,l.jsx)(Se,{colorList:E,label:"Link highlight",setVisuals:t,value:"linkHighlight",visValue:n.linkHighlight}),(0,l.jsx)(Se,{colorList:E,label:"Node highlight",setVisuals:t,value:"nodeHighlight",visValue:n.nodeHighlight}),(0,l.jsx)(Se,{colorList:E,label:"Background",setVisuals:t,value:"backgroundColor",visValue:n.backgroundColor}),(0,l.jsx)(Se,{colorList:E,label:"Emacs node",setVisuals:t,value:"emacsNodeColor",visValue:n.emacsNodeColor})]})})};function De(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 Ne(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?De(Object(t),!0).forEach((function(n){(0,c.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):De(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var ze=function(e){var n=e.visuals,t=e.setVisuals,r=e.threeDim;return(0,l.jsx)(_.gC,{spacing:2,justifyContent:"flex-start",divider:(0,l.jsx)(_.cX,{borderColor:"gray.500"}),align:"stretch",color:"gray.800",children:(0,l.jsxs)(v.xu,{children:[(0,l.jsx)(fe,{label:"Node size",value:n.nodeRel,onChange:function(e){return t(Ne(Ne({},n),{},{nodeRel:e}))}}),(0,l.jsx)(fe,{label:"Node connections size scale",value:n.nodeSizeLinks,min:0,max:2,onChange:function(e){return t(Ne(Ne({},n),{},{nodeSizeLinks:e}))}}),(0,l.jsx)(fe,{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 Ne(Ne({},n),{},{nodeZoomSize:e})}))}}),r&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(fe,{label:"Node opacity",value:n.nodeOpacity,min:0,max:1,onChange:function(e){return t(Ne(Ne({},n),{},{nodeOpacity:e}))}}),(0,l.jsx)(fe,{label:"Node resolution",value:n.nodeResolution,min:5,max:32,step:1,onChange:function(e){return t(Ne(Ne({},n),{},{nodeResolution:e}))}})]}),(0,l.jsx)(fe,{label:"Link width",value:n.linkWidth,onChange:function(e){return t(Ne(Ne({},n),{},{linkWidth:e}))}}),r&&(0,l.jsx)(fe,{label:"Link opacity",min:0,max:1,value:n.linkOpacity,onChange:function(e){return t(Ne(Ne({},n),{},{linkOpacity:e}))}}),(0,l.jsxs)(he,{label:"Link arrows",value:n.arrows,onChange:function(){return t(Ne(Ne({},n),{},{arrows:!n.arrows}))},children:[(0,l.jsx)(fe,{label:"Arrow size",value:n.arrowsLength/10,onChange:function(e){return t(Ne(Ne({},n),{},{arrowsLength:10*e}))}}),(0,l.jsx)(fe,{label:"Arrow Position",value:n.arrowsPos,min:0,max:1,step:.01,onChange:function(e){return t(Ne(Ne({},n),{},{arrowsPos:e}))}}),(0,l.jsx)(Se,{colorList:E,label:"Arrow Color",setVisuals:t,value:"arrowsColor",visValue:n.arrowsColor},"arrow")]}),(0,l.jsxs)(he,{label:"Directional Particles",value:n.particles,onChange:function(){return t(Ne(Ne({},n),{},{particles:!n.particles}))},children:[(0,l.jsx)(fe,{label:"Particle Number",value:n.particlesNumber,max:5,step:1,onChange:function(e){return t(Ne(Ne({},n),{},{particlesNumber:e}))}}),(0,l.jsx)(fe,{label:"Particle Size",value:n.particlesWidth,onChange:function(e){return t(Ne(Ne({},n),{},{particlesWidth:e}))}})]})]})})};function Ee(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 Ze(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Ee(Object(t),!0).forEach((function(n){(0,c.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ee(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Te=function(e){var n=e.visuals,t=e.setVisuals;return(0,l.jsx)(_.gC,{spacing:2,justifyContent:"flex-start",divider:(0,l.jsx)(_.cX,{borderColor:"gray.500"}),align:"stretch",color:"gray.800",children:(0,l.jsxs)(v.xu,{children:[(0,l.jsxs)(q.k,{alignItems:"center",justifyContent:"space-between",children:[(0,l.jsx)(Q.x,{children:"Show labels"}),(0,l.jsxs)(G.v2,{isLazy:!0,placement:"right",children:[(0,l.jsx)(G.j2,{as:V.z,colorScheme:"",color:"black",rightIcon:(0,l.jsx)(X.v,{}),children:n.labels?n.labels<2?"On Highlight":"Always":"Never"}),(0,l.jsxs)(K.h,{children:[" ",(0,l.jsxs)(G.qy,{zIndex:"popover",bgColor:"gray.200",children:[(0,l.jsx)(G.sN,{onClick:function(){return t(Ze(Ze({},n),{},{labels:0}))},children:"Never"}),(0,l.jsx)(G.sN,{onClick:function(){return t(Ze(Ze({},n),{},{labels:1}))},children:"On Highlight"}),(0,l.jsx)(G.sN,{onClick:function(){return t(Ze(Ze({},n),{},{labels:2}))},children:"Always"}),(0,l.jsx)(G.sN,{onClick:function(){return t(Ze(Ze({},n),{},{labels:3}))},children:"Always (even in 3D)"})]})]})]})]}),(0,l.jsxs)(_.gC,{spacing:1,justifyContent:"flex-start",divider:(0,l.jsx)(_.cX,{borderColor:"gray.400"}),align:"stretch",paddingLeft:2,color:"gray.800",children:[(0,l.jsx)(fe,{label:"Label font size",value:n.labelFontSize,min:5,max:20,step:.5,onChange:function(e){return t(Ze(Ze({},n),{},{labelFontSize:e}))}}),(0,l.jsx)(fe,{label:"Max. label characters",value:n.labelLength,min:10,max:100,step:1,onChange:function(e){return t(Ze(Ze({},n),{},{labelLength:e}))}}),(0,l.jsx)(fe,{label:"Max. label line length",value:n.labelWordWrap,min:10,max:100,step:1,onChange:function(e){return t(Ze(Ze({},n),{},{labelWordWrap:e}))}}),(0,l.jsx)(fe,{label:"Space between label lines",value:n.labelLineSpace,min:.2,max:3,step:.1,onChange:function(e){return t(Ze(Ze({},n),{},{labelLineSpace:e}))}}),(0,l.jsx)(Se,{colorList:E,label:"Text",setVisuals:t,value:"labelTextColor",visValue:n.labelTextColor}),(0,l.jsx)(Se,{colorList:E,label:"Background",setVisuals:t,value:"labelBackgroundColor",visValue:n.labelBackgroundColor}),(0,l.jsx)(ae.U,{in:!!n.labelBackgroundColor,animateOpacity:!0,children:(0,l.jsx)(v.xu,{paddingTop:2,children:(0,l.jsx)(fe,{label:"Background opacity",value:n.labelBackgroundOpacity,onChange:function(e){console.log(n.labelBackgroundOpacity),t(Ze(Ze({},n),{},{labelBackgroundOpacity:e}))},min:0,max:1,step:.01})})}),(0,l.jsx)(ae.U,{in:n.labels>1,animateOpacity:!0,children:(0,l.jsx)(v.xu,{paddingTop:2,children:(0,l.jsx)(fe,{label:"Label Appearance Scale",value:5*n.labelScale,onChange:function(e){return t(Ze(Ze({},n),{},{labelScale:e/5}))}})})})]})]})})};function Re(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 Fe(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Re(Object(t),!0).forEach((function(n){(0,c.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Re(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var He=function(e){var n=e.visuals,t=e.setVisuals;return(0,l.jsx)(_.gC,{spacing:2,justifyContent:"flex-start",divider:(0,l.jsx)(_.cX,{borderColor:"gray.500"}),align:"stretch",color:"gray.800",children:(0,l.jsxs)(v.xu,{children:[(0,l.jsxs)(he,{label:"Dash cite links",infoText:"Add dashes to citation links made with org-roam-bibtex",value:n.citeDashes,onChange:function(){return t(Fe(Fe({},n),{},{citeDashes:!n.citeDashes}))},children:[(0,l.jsx)(fe,{label:"Dash length",value:n.citeDashLength/10,onChange:function(e){return t(Fe(Fe({},n),{},{citeDashLength:10*e}))}}),(0,l.jsx)(fe,{label:"Gap length",value:n.citeGapLength/5,onChange:function(e){return t(Fe(Fe({},n),{},{citeGapLength:5*e}))}})]}),(0,l.jsx)(Se,{colorList:E,label:"Citation node color",setVisuals:t,value:"citeNodeColor",visValue:n.citeNodeColor}),(0,l.jsx)(Se,{colorList:E,label:"Citation link color",setVisuals:t,value:"citeLinkColor",visValue:n.citeLinkColor}),(0,l.jsx)(Se,{colorList:E,label:"Reference link highlight",setVisuals:t,value:"citeLinkHighlightColor",visValue:n.citeLinkHighlightColor}),(0,l.jsxs)(he,{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(Fe(Fe({},n),{},{refDashes:!n.refDashes}))},children:[(0,l.jsx)(fe,{label:"Dash length",value:n.refDashLength/10,onChange:function(e){return t(Fe(Fe({},n),{},{refDashLength:10*e}))}}),(0,l.jsx)(fe,{label:"Gap length",value:n.refGapLength/5,onChange:function(e){return t(Fe(Fe({},n),{},{refGapLength:5*e}))}})]}),(0,l.jsx)(Se,{colorList:E,label:"Reference node color",setVisuals:t,value:"refNodeColor",visValue:n.refNodeColor}),(0,l.jsx)(Se,{colorList:E,label:"Reference link color",setVisuals:t,value:"refLinkColor",visValue:n.refLinkColor}),(0,l.jsx)(Se,{colorList:E,label:"Reference link highlight",setVisuals:t,value:"refLinkHighlightColor",visValue:n.refLinkHighlightColor})]})})},Ae=t(67690),Ve=function(){var e=(0,u.useContext)(ce.N),n=e.emacsTheme,t=e.setEmacsTheme;e.highlightColor;return(0,l.jsxs)(q.k,{alignItems:"center",justifyContent:"space-between",pl:7,pr:2,children:[(0,l.jsx)(Q.x,{children:"Theme"}),(0,l.jsxs)(G.v2,{isLazy:!0,placement:"bottom",closeOnSelect:!1,children:[(0,l.jsx)(G.j2,{as:V.z,colorScheme:"",color:"black",rightIcon:(0,l.jsx)(X.v,{}),children:n[0]}),(0,l.jsxs)(G.qy,{minW:10,zIndex:"popover",bgColor:"gray.200",children:[(0,l.jsx)(G.sN,{onClick:function(){return""},justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,l.jsx)(v.xu,{height:6,width:6})}),Object.keys(Ae.n).map((function(e,n){return(0,l.jsxs)(G.sN,{onClick:function(){return t([e,Ae.n[e]])},justifyContent:"space-between",alignItems:"center",display:"flex",children:[(0,l.jsx)(Q.x,{children:e}),(0,l.jsx)(q.k,{height:6,width:20,flexDirection:"column",flexWrap:"wrap",children:Object.values(Ae.n[e]).map((function(e){return(0,l.jsx)(v.xu,{bgColor:e,flex:"1 1 8px"},e)}))})]},e)}))]})]})]})},Be=function(e){var n=e.visuals,t=e.setVisuals,r=e.highlightColor,i=e.setHighlightColor,o=e.threeDim,s=(0,u.useCallback)((function(e){return t(e)}),[]);return(0,l.jsxs)(_.gC,{justifyContent:"flex-start",align:"stretch",children:[(0,l.jsx)(Ve,{}),(0,l.jsxs)(B.UQ,{allowToggle:!0,defaultIndex:[0],paddingLeft:3,children:[(0,l.jsxs)(B.Qd,{children:[(0,l.jsx)(B.KF,{children:(0,l.jsxs)(q.k,{justifyContent:"space-between",w:"100%",children:[(0,l.jsx)(Q.x,{children:"Colors"}),(0,l.jsx)(B.XE,{marginRight:2})]})}),(0,l.jsx)(B.Hk,{children:(0,l.jsx)(Ie,{visuals:n,setVisualsCallback:s,highlightColor:r,setHighlightColor:i})})]}),(0,l.jsxs)(B.Qd,{children:[(0,l.jsx)(B.KF,{children:(0,l.jsxs)(q.k,{justifyContent:"space-between",w:"100%",children:[(0,l.jsx)(Q.x,{children:"Nodes & Links"}),(0,l.jsx)(B.XE,{marginRight:2})]})}),(0,l.jsx)(B.Hk,{children:(0,l.jsx)(ze,{visuals:n,setVisuals:s,threeDim:o})})]}),(0,l.jsxs)(B.Qd,{children:[(0,l.jsx)(B.KF,{children:(0,l.jsxs)(q.k,{justifyContent:"space-between",w:"100%",children:[(0,l.jsx)(Q.x,{children:"Labels"}),(0,l.jsx)(B.XE,{marginRight:2})]})}),(0,l.jsx)(B.Hk,{children:(0,l.jsx)(Te,{visuals:n,setVisuals:s})})]}),(0,l.jsxs)(B.Qd,{children:[(0,l.jsx)(B.KF,{children:(0,l.jsxs)(q.k,{justifyContent:"space-between",w:"100%",children:[(0,l.jsx)(Q.x,{children:"Highlighting"}),(0,l.jsx)(B.XE,{marginRight:2})]})}),(0,l.jsx)(B.Hk,{children:(0,l.jsx)(ye,{visuals:n,setVisuals:s})})]}),(0,l.jsxs)(B.Qd,{children:[(0,l.jsx)(B.KF,{children:(0,l.jsxs)(q.k,{justifyContent:"space-between",w:"100%",children:[(0,l.jsx)(Q.x,{children:"Citations"}),(0,l.jsx)(B.XE,{marginRight:2})]})}),(0,l.jsx)(B.Hk,{children:(0,l.jsx)(He,{visuals:n,setVisuals:s})})]})]})]})};function We(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?We(Object(t),!0).forEach((function(n){(0,c.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):We(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Xe=function(e){var n=e.behavior,t=e.setBehavior,r=e.mouse,i=e.setMouse;return(0,l.jsxs)(_.gC,{spacing:2,justifyContent:"flex-start",divider:(0,l.jsx)(_.cX,{borderColor:"gray.500"}),align:"stretch",paddingLeft:7,color:"gray.800",children:[(0,l.jsxs)(q.k,{alignItems:"center",justifyContent:"space-between",children:[(0,l.jsxs)(q.k,{children:[(0,l.jsx)(Q.x,{children:"Expand Node"}),(0,l.jsx)(de,{infoText:"View only the node and its direct neighbors"})]}),(0,l.jsxs)(G.v2,{isLazy:!0,placement:"right",children:[(0,l.jsx)(G.j2,{as:V.z,rightIcon:(0,l.jsx)(X.v,{}),colorScheme:"",color:"black",children:(0,l.jsx)(Q.x,{children:r.local?r.local[0].toUpperCase()+r.local.slice(1):"Never"})}),(0,l.jsxs)(K.h,{children:[" ",(0,l.jsxs)(G.qy,{zIndex:"popover",bgColor:"gray.200",children:[(0,l.jsx)(G.sN,{onClick:function(){return i(Me(Me({},r),{},{local:""}))},children:"Never"}),(0,l.jsx)(G.sN,{onClick:function(){return i(Me(Me({},r),{},{local:"click"}))},children:"Click"}),(0,l.jsx)(G.sN,{onClick:function(){return i(Me(Me({},r),{},{local:"double"}))},children:"Double Click"}),(0,l.jsx)(G.sN,{onClick:function(){return i(Me(Me({},r),{},{local:"right"}))},children:"Right Click"})]})]})]})]}),(0,l.jsxs)(q.k,{alignItems:"center",justifyContent:"space-between",children:[(0,l.jsx)(Q.x,{children:"Open in Emacs"}),(0,l.jsxs)(G.v2,{isLazy:!0,placement:"right",children:[(0,l.jsx)(G.j2,{as:V.z,rightIcon:(0,l.jsx)(X.v,{}),colorScheme:"",color:"black",children:(0,l.jsx)(Q.x,{children:r.follow?r.follow[0].toUpperCase()+r.follow.slice(1):"Never"})}),(0,l.jsxs)(K.h,{children:[" ",(0,l.jsxs)(G.qy,{bgColor:"gray.200",zIndex:"popover",children:[(0,l.jsx)(G.sN,{onClick:function(){return i(Me(Me({},r),{},{follow:""}))},children:"Never"}),(0,l.jsx)(G.sN,{onClick:function(){return i(Me(Me({},r),{},{follow:"click"}))},children:"Click"}),(0,l.jsx)(G.sN,{onClick:function(){return i(Me(Me({},r),{},{follow:"double"}))},children:"Double Click"}),(0,l.jsx)(G.sN,{onClick:function(){return i(Me(Me({},r),{},{follow:"right"}))},children:"Right Click"})]})]})]})]}),(0,l.jsxs)(q.k,{alignItems:"center",justifyContent:"space-between",children:[(0,l.jsx)(Q.x,{children:"Follow Emacs by..."}),(0,l.jsxs)(G.v2,{isLazy:!0,placement:"right",children:[(0,l.jsx)(G.j2,{as:V.z,rightIcon:(0,l.jsx)(X.v,{}),colorScheme:"",color:"black",children:(0,l.jsx)(Q.x,{children:n.follow[0].toUpperCase()+n.follow.slice(1)})}),(0,l.jsxs)(K.h,{children:[" ",(0,l.jsxs)(G.qy,{bgColor:"gray.200",zIndex:"popover",children:[(0,l.jsx)(G.sN,{onClick:function(){return t(Me(Me({},n),{},{follow:"color"}))},children:"Just coloring the currently opened node"}),(0,l.jsx)(G.sN,{onClick:function(){return t(Me(Me({},n),{},{follow:"local"}))},children:"Opening the local graph"}),(0,l.jsx)(G.sN,{onClick:function(){return t(Me(Me({},n),{},{follow:"zoom"}))},children:"Zooming to the current node"})]})]})]})]}),(0,l.jsxs)(q.k,{alignItems:"center",justifyContent:"space-between",children:[(0,l.jsxs)(q.k,{children:[(0,l.jsx)(Q.x,{children:"Local graph"}),(0,l.jsx)(de,{infoText:"When in local mode and clicking a new node, should I add that node's local graph or open the new one?"})]}),(0,l.jsxs)(G.v2,{isLazy:!0,placement:"right",children:[(0,l.jsx)(G.j2,{as:V.z,rightIcon:(0,l.jsx)(X.v,{}),colorScheme:"",color:"black",children:(0,l.jsx)(Q.x,{children:"add"===n.localSame?"Add":"Replace"})}),(0,l.jsxs)(K.h,{children:[" ",(0,l.jsxs)(G.qy,{bgColor:"gray.200",zIndex:"popover",children:[(0,l.jsx)(G.sN,{onClick:function(){return t(Me(Me({},n),{},{localSame:"replace"}))},children:"Open that nodes graph"}),(0,l.jsx)(G.sN,{onClick:function(){return t(Me(Me({},n),{},{localSame:"add"}))},children:"Add node to local graph"})]})]})]})]}),(0,l.jsx)(fe,{label:"Zoom speed",value:n.zoomSpeed,min:0,max:4e3,step:100,onChange:function(e){return t(Me(Me({},n),{},{zoomSpeed:e}))}}),(0,l.jsx)(fe,{label:"Zoom padding",value:n.zoomPadding,min:0,max:400,step:1,onChange:function(e){return t(Me(Me({},n),{},{zoomPadding:e}))},infoText:"How much to zoom out to accomodate all nodes when changing the view."})]})};function _e(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 qe(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?_e(Object(t),!0).forEach((function(n){(0,c.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):_e(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Qe=function(e){var n=e.physics,t=e.setPhysics,r=e.threeDim,i=e.setThreeDim,o=e.filter,s=e.setFilter,c=e.visuals,d=e.setVisuals,h=e.mouse,f=e.setMouse,p=e.behavior,x=e.setBehavior,j=e.tags,b=e.tagColors,m=e.setTagColors,y=g("showTweaks",!1),C=(0,a.Z)(y,2),k=C[0],O=C[1],w=(0,u.useContext)(ce.N),S=w.highlightColor,P=w.setHighlightColor;return k?(0,l.jsxs)(v.xu,{bg:"alt.100",w:"xs",marginTop:10,marginLeft:10,borderRadius:"xl",paddingBottom:5,zIndex:300,position:"relative",boxShadow:"xl",maxH:.92*globalThis.innerHeight,marginBottom:10,children:[(0,l.jsxs)(v.xu,{display:"flex",justifyContent:"space-between",alignItems:"center",paddingRight:2,paddingTop:1,children:[(0,l.jsx)(A.u,{label:"2D",children:(0,l.jsx)(V.z,{onClick:function(){return i(!r)},variant:"ghost",zIndex:"overlay",children:r?"3D":"2D"})}),(0,l.jsxs)(v.xu,{display:"flex",alignItems:"center",children:[(0,l.jsx)(A.u,{label:"Reset settings to defaults",children:(0,l.jsx)(H.h,{"aria-label":"Reset Defaults",icon:(0,l.jsx)(R.A,{}),onClick:function(){d(D),s(I),f(z),t(L),x(N)},variant:"none",size:"sm"})}),(0,l.jsx)(H.h,{size:"sm",icon:(0,l.jsx)(F.T,{}),"aria-label":"Close Tweak Panel",variant:"ghost",onClick:function(){return O(!1)}})]})]}),(0,l.jsx)(M.ZP,{autoHeight:!0,autoHeightMax:.85*globalThis.innerHeight,autoHide:!0,renderThumbVertical:function(e){var n=e.style,t=(0,Z.Z)(e,["style"]);return(0,l.jsx)(v.xu,qe(qe({},t),{},{style:qe(qe({},n),{},{borderRadius:10}),bg:S}))},children:(0,l.jsxs)(B.UQ,{allowMultiple:!0,allowToggle:!0,color:"black",children:[(0,l.jsxs)(B.Qd,{children:[(0,l.jsxs)(B.KF,{children:[(0,l.jsx)(B.XE,{marginRight:2}),(0,l.jsx)(W.X,{size:"sm",children:"Filter"})]}),(0,l.jsx)(B.Hk,{children:(0,l.jsx)(se,{filter:o,setFilter:s,tagColors:b,setTagColors:m,highlightColor:S,colorList:E,tags:j})})]}),(0,l.jsxs)(B.Qd,{children:[(0,l.jsx)(B.KF,{display:"flex",justifyContent:"space-between",children:(0,l.jsxs)(v.xu,{display:"flex",children:[(0,l.jsx)(B.XE,{marginRight:2}),(0,l.jsx)(W.X,{size:"sm",children:"Physics"})]})}),(0,l.jsx)(B.Hk,{children:(0,l.jsx)(je,{physics:n,setPhysics:t})})]}),(0,l.jsxs)(B.Qd,{children:[(0,l.jsxs)(B.KF,{children:[(0,l.jsx)(B.XE,{marginRight:2}),(0,l.jsx)(W.X,{size:"sm",children:"Visual"})]}),(0,l.jsx)(B.Hk,{children:(0,l.jsx)(Be,{visuals:c,setVisuals:d,highlightColor:S,setHighlightColor:P,threeDim:r})})]}),(0,l.jsxs)(B.Qd,{children:[(0,l.jsxs)(B.KF,{children:[(0,l.jsx)(B.XE,{marginRight:2}),(0,l.jsx)(W.X,{size:"sm",children:"Behavior"})]}),(0,l.jsx)(B.Hk,{children:(0,l.jsx)(Xe,{behavior:p,setBehavior:x,mouse:h,setMouse:f})})]})]})})]}):(0,l.jsx)(v.xu,{position:"absolute",zIndex:"overlay",marginTop:10,marginLeft:10,display:k?"none":"block",children:(0,l.jsx)(H.h,{variant:"ghost","aria-label":"Settings",icon:(0,l.jsx)(T.e,{}),onClick:function(){return O(!0)}})})},Ge=t(30410),Ke=t(94030),Ue=t(55830),Je=t(46617),Ye=t(50862),$e=t(68928),en=function(e){e.background;var n=e.node,t=(e.nodeType,e.coordinates),r=e.handleLocal,i=e.menuClose,o=e.scope,s=e.openNodeInEmacs,c=e.deleteNodeInEmacs,a=e.createNodeInEmacs,d=(0,m.q)(),h=d.isOpen,g=d.onOpen,f=d.onClose;(0,u.useRef)();return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(v.xu,{position:"absolute",zIndex:"overlay",left:t[0]+10,top:t[1]-10,padding:5,children:(0,l.jsx)(G.v2,{closeOnBlur:!1,defaultIsOpen:!0,onClose:function(){return i()},children:(0,l.jsxs)(G.qy,{zIndex:"overlay",bgColor:"alt.100",borderColor:"gray.500",maxWidth:"xs",children:[n&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(W.X,{size:"sm",isTruncated:!0,px:3,py:1,children:n.title}),(0,l.jsx)(G.R,{borderColor:"gray.500"})]}),0!==o.nodeIds.length&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(G.sN,{onClick:function(){return r(n,"add")},icon:(0,l.jsx)(Ke.I,{}),children:"Expand local graph at node"}),(0,l.jsx)(G.sN,{onClick:function(){return r(n,"replace")},icon:(0,l.jsx)(Ue.O,{}),children:"Open local graph for this node"})]}),null!==n&&void 0!==n&&n.properties.FILELESS?(0,l.jsx)(G.sN,{icon:(0,l.jsx)(Ye.d,{}),onClick:function(){return a(n)},children:"Create node"}):(0,l.jsx)(G.sN,{icon:(0,l.jsx)(Je.d,{}),onClick:function(){return s(n)},children:"Open in Emacs"}),(null===n||void 0===n?void 0:n.properties.ROAM_REFS)&&(0,l.jsx)(G.sN,{icon:(0,l.jsx)($e.h,{}),children:"Open in Zotero"}),0===o.nodeIds.length&&(0,l.jsx)(G.sN,{icon:(0,l.jsx)(Ue.O,{}),onClick:function(){return r(n,"replace")},children:"Open local graph"}),0===(null===n||void 0===n?void 0:n.level)&&(0,l.jsx)(G.sN,{closeOnSelect:!1,icon:(0,l.jsx)(ne.p,{color:"red.500"}),color:"red.500",onClick:g,children:"Permenantly delete note"})]})})}),(0,l.jsxs)(Ge.u_,{isCentered:!0,isOpen:h,onClose:f,children:[(0,l.jsx)(Ge.ZA,{}),(0,l.jsxs)(Ge.hz,{zIndex:"popover",children:[(0,l.jsx)(Ge.xB,{children:"Delete node?"}),(0,l.jsx)(Ge.ol,{}),(0,l.jsx)(Ge.fe,{children:(0,l.jsxs)(_.gC,{spacing:4,display:"flex",alignItems:"flex-start",children:[(0,l.jsx)(Q.x,{children:"This will permanently delete your note:"}),(0,l.jsx)(Q.x,{fontWeight:"bold",children:null===n||void 0===n?void 0:n.title}),0!==(null===n||void 0===n?void 0:n.level)&&(0,l.jsx)(Q.x,{children:"This will only delete the from this heading until but not including the next node. Your parent file and all other nodes will not be deleted."}),(0,l.jsx)(Q.x,{children:"Are you sure you want to do continue?"})]})}),(0,l.jsxs)(Ge.mz,{children:[(0,l.jsx)(V.z,{mr:3,onClick:function(){console.log("closing"),f(),i()},children:"Cancel"}),(0,l.jsx)(V.z,{variant:"link",colorScheme:"red",ml:3,onClick:function(){console.log("aaaaa"),c(n),f(),i()},children:"Delete node"})]})]})]})]})},nn=t(31122),tn=t(22663),rn=t.n(tn),on=t(22003);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 sn(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,c.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}var cn=t.e(4).then(t.bind(t,57004)),an=t.g.window?t(61957).f$:null,un=t.g.window?t(61957).s6:null;function dn(){var e=(0,u.useState)(!1),n=e[0],t=e[1];return(0,u.useEffect)((function(){t(!0)}),[]),n?(0,l.jsx)(hn,{}):null}function hn(){var e=g("3d",!1),n=(0,a.Z)(e,2),t=n[0],r=n[1],i=g("tagCols",{}),o=(0,a.Z)(i,2),d=o[0],h=o[1],f=(0,u.useState)({nodeIds:[]}),p=f[0],x=f[1],j=g("physics",L),b=(0,a.Z)(j,2),m=b[0],y=b[1],C=g("filter",I),k=(0,a.Z)(C,2),O=k[0],w=k[1],S=g("visuals",D),P=(0,a.Z)(S,2),E=P[0],Z=P[1],T=(0,u.useState)(null),R=T[0],F=T[1],H=(0,u.useState)(null),A=H[0],V=H[1],B=g("behavior",N),W=(0,a.Z)(B,2),M=W[0],X=W[1],_=g("mouse",z),q=(0,a.Z)(_,2),Q=q[0],G=q[1],K=(0,u.useRef)({}),U=(0,u.useRef)({}),J=(0,u.useRef)([]),Y=(0,u.useRef)(null),$=(0,u.useRef)({}),ee=(0,u.useRef)({nodes:[],links:[]});(0,u.useEffect)((function(){R&&(ee.current=R)}),[R]);var ne=(0,u.useContext)(ce.N).setEmacsTheme,te=(0,u.useRef)({nodeIds:[]}),re=(0,u.useRef)(N);re.current=M;var ie=(0,u.useRef)(null);te.current=p;var oe=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 o=Y.current,l=te.current,c=re.current,a=null!==(t=U.current[n])&&void 0!==t?t:[],u=Object.fromEntries([n].concat((0,s.Z)(a.flatMap((function(e){return[e.source,e.target]})))).map((function(e){return[e,{}]})));if("zoom"===e)return l.nodeIds.length&&x({nodeIds:[]}),void setTimeout((function(){return o.zoomToFit(r,i,(function(e){return u[e.id]}))}),50);if(!l.nodeIds.length)return x({nodeIds:[n]}),void setTimeout((function(){o.centerAt(0,0,10),o.zoomToFit(1,i)}),50);if("add"!==c.localSame)return x({nodeIds:[n]}),void setTimeout((function(){o.centerAt(0,0,10),o.zoomToFit(1,i)}),50);if(!l.nodeIds.includes(n)||!l.nodeIds.some((function(e){return u[e]})))return x({nodeIds:[n]}),void setTimeout((function(){o.centerAt(0,0,10),o.zoomToFit(1,i)}),50);x((function(e){return sn(sn({},e),{},{nodeIds:[].concat((0,s.Z)(e.nodeIds),[n])})})),setTimeout((function(){o.centerAt(0,0,10),o.zoomToFit(1,i)}),50)}};return(0,u.useEffect)((function(){ie.current=new on.Z("ws://localhost:35903"),ie.current.addEventListener("open",(function(){console.log("Connection with Emacs established")})),ie.current.addEventListener("message",(function(e){var n=re.current,t=JSON.parse(e.data);switch(t.type){case"graphdata":return function(e){var n,t,r,i=K.current;J.current=null!==(n=e.tags)&&void 0!==n?n:[];var o=null!==(t=e.nodes)&&void 0!==t?t:[],l=null!==(r=e.links)&&void 0!==r?r:[],u=o.reduce((function(e,n){var t;return sn(sn({},e),{},(0,c.Z)({},n.file,[].concat((0,s.Z)(null!==(t=e[n.file])&&void 0!==t?t:[]),[n])))}),{}),d=Object.keys(u).flatMap((function(e){var n,t=null!==(n=u[e])&&void 0!==n?n:[],r=t.find((function(e){return 0===e.level})),i=t.filter((function(e){return 0!==e.level}));return r?i.map((function(e){var n=t.filter((function(n){var t;return!(n.level>=e.level||n.pos>=e.pos||null===(t=e.olp)||void 0===t||!t.includes(n.title))})).reduce((function(e,n){return n.level>e.level&&(e=n),e}),r);return{source:e.id,target:(null===n||void 0===n?void 0:n.id)||r.id,type:"heading"}})):[]})),h=Object.keys(u).flatMap((function(e){var n,t=null!==(n=u[e])&&void 0!==n?n:[],r=t.find((function(e){return 0===e.level})),i=t.filter((function(e){return 0!==e.level}));return r?i.map((function(e){return{source:e.id,target:r.id,type:"parent"}})):[]}));K.current=Object.fromEntries(o.map((function(e){return[e.id,e]})));var g=[].concat((0,s.Z)(l),(0,s.Z)(d),(0,s.Z)(h)),f=[],p=g.map((function(e){var n=e.source,t=e.target;return K.current[n]?K.current[t]?e:(f.push({id:t,tags:["bad"],properties:{FILELESS:"yes",bad:"yes"},file:"",title:t,level:0,pos:0,olp:null}),sn(sn({},e),{},{type:"bad"})):(f.push({id:n,tags:["bad"],properties:{FILELESS:"yes",bad:"yes"},file:"",title:n,level:0,pos:0,olp:null}),sn(sn({},e),{},{type:"bad"}))}));K.current=sn(sn({},K.current),Object.fromEntries(f.map((function(e){return[e.id,e]})))),U.current=p.reduce((function(e,n){var t,r,i;return sn(sn({},e),{},(i={},(0,c.Z)(i,n.source,[].concat((0,s.Z)(null!==(t=e[n.source])&&void 0!==t?t:[]),[n])),(0,c.Z)(i,n.target,[].concat((0,s.Z)(null!==(r=e[n.target])&&void 0!==r?r:[]),[n])),i))}),{});var x={nodes:[].concat((0,s.Z)(o),f),links:p},j=ee.current;if(0===j.nodes.length){var b=JSON.parse(JSON.stringify(x));return ee.current=b,void F(b)}var v=[].concat((0,s.Z)(j.nodes.flatMap((function(e){var n,t=null!==(n=K.current[null===e||void 0===e?void 0:e.id])&&void 0!==n&&n;return t?[sn(sn({},e),t)]:[]}))),(0,s.Z)(Object.keys(K.current).filter((function(e){return!i[e]})).map((function(e){return K.current[e]})))),m=v.reduce((function(e,n,t){var r=null===n||void 0===n?void 0:n.id;return sn(sn({},e),{},(0,c.Z)({},r,t))}),{}),y=p.map((function(e){var n=pn(e),t=(0,a.Z)(n,2),r=t[0],i=t[1];return sn(sn({},e),{},{source:v[m[r]],target:v[m[i]]})}));F({nodes:v,links:y})}(t.data);case"variables":return $.current=t.data,void console.log(t.data);case"theme":return ne(["custom",t.data]);case"command":switch(t.data.commandName){case"local":var r=M.zoomSpeed,i=M.zoomPadding;oe("local",t.data.id,r,i),V(t.data.id);break;case"zoom":var o,l,u=(null===t||void 0===t||null===(o=t.data)||void 0===o?void 0:o.speed)||n.zoomSpeed,d=(null===t||void 0===t||null===(l=t.data)||void 0===l?void 0:l.padding)||n.zoomPadding;oe("zoom",t.data.id,u,d),V(t.data.id);break;case"follow":oe(n.follow,t.data.id,n.zoomSpeed,n.zoomPadding),V(t.data.id);break;default:return console.error("unknown message type",t.type)}}}))}),[]),(0,u.useEffect)((function(){var e=Y.current;!e||p.nodeIds.length>1||(p.nodeIds.length||!m.gravityOn?setTimeout((function(){e.zoomToFit(5,200)}),50):e.zoomToFit())}),[p.nodeIds]),R?(0,l.jsxs)(v.xu,{display:"flex",alignItems:"flex-start",flexDirection:"row",height:"100%",overflow:"hidden",children:[(0,l.jsx)(Qe,sn(sn({},{physics:m,setPhysics:y,threeDim:t,setThreeDim:r,filter:O,setFilter:w,visuals:E,setVisuals:Z,mouse:Q,setMouse:G,behavior:M,setBehavior:X,tagColors:d,setTagColors:h}),{},{tags:J.current})),(0,l.jsx)(v.xu,{position:"absolute",alignItems:"top",overflow:"hidden",children:(0,l.jsx)(gn,sn({ref:Y,nodeById:K.current,linksByNodeId:U.current,webSocket:ie.current,variables:$.current},{physics:m,graphData:R,threeDim:t,emacsNodeId:A,filter:O,visuals:E,behavior:M,mouse:Q,scope:p,setScope:x,tagColors:d}))})]}):null}var gn=(0,u.forwardRef)((function(e,n){var t=e.physics,r=e.graphData,d=e.threeDim,h=e.linksByNodeId,g=e.filter,f=e.emacsNodeId,y=e.nodeById,C=e.visuals,k=e.behavior,O=e.mouse,w=e.scope,S=e.setScope,L=e.webSocket,I=e.tagColors,D=e.variables,N=D.dailyDir,z=(D.roamDir,(0,x.iP)()),Z=(0,a.Z)(z,2),T=Z[0],R=Z[1],F=(0,u.useState)(null),H=F[0],A=F[1],V=(0,u.useState)(null),B=V[0],W=V[1],M=(0,u.useState)([0,0]),X=M[0],_=M[1],q=(0,b.useTheme)(),Q=(0,u.useContext)(ce.N).emacsTheme,G=function(e,n){"replace"!==n?w.nodeIds.includes(e.id)||S((function(n){return sn(sn({},n),{},{nodeIds:[].concat((0,s.Z)(n.nodeIds),[e.id])})})):S({nodeIds:[e.id]})},K=function(e,n){L.send(JSON.stringify({command:e,data:n}))},U=function(e){K("open",{id:e.id})},J=(0,m.q)(),Y=function(e,n,t){switch(e){case O.local:G(n,k.localSame);break;case O.follow:U(n);break;case O.context:!function(e,n){_([n.pageX,n.pageY]),W(e),J.onOpen()}(n,t)}},$=(0,u.useRef)(null);(0,u.useEffect)((function(){f&&A(y[f])}),[f]);var ee=(0,u.useRef)({}),ne=(0,u.useRef)({}),te=(0,u.useMemo)((function(){var e;ne.current={};var n=null===r||void 0===r||null===(e=r.nodes)||void 0===e?void 0:e.filter((function(e){var n=e;return g.tagsBlacklist.length&&g.tagsBlacklist.some((function(e){var t;return(null===n||void 0===n||null===(t=n.tags)||void 0===t?void 0:t.indexOf(e))>-1}))||g.tagsWhitelist.length>0&&!g.tagsWhitelist.some((function(e){var t;return(null===n||void 0===n||null===(t=n.tags)||void 0===t?void 0:t.indexOf(e))>-1}))||g.filelessCites&&n.properties.FILELESS||g.bad&&n.properties.bad?(ne.current=sn(sn({},ne.current),{},(0,c.Z)({},n.id,n)),!1):!g.dailies||0===(null===N||void 0===N?void 0:N.length)||!n.file.includes(N)||(ne.current=sn(sn({},ne.current),{},(0,c.Z)({},n.id,n)),!1)})).filter((function(e){var n,t=(null!==(n=h[null===e||void 0===e?void 0:e.id])&&void 0!==n?n:[]).filter((function(e){return!ne.current[e.source]&&!ne.current[e.target]}));return!g.orphans||(g.parent?0!==t.length:0!==t.length&&t.some((function(e){return!["parent","heading"].includes(e.type)})))})),t=n.map((function(e){return e.id})),i=r.links.filter((function(e){var n=pn(e),r=(0,a.Z)(n,2),i=r[0],o=r[1];if(!t.includes(i)||!t.includes(o))return!1;var l=e;return g.parent?"heading"===g.parent?"parent"!==l.type:"heading"!==l.type:!["parent","heading"].includes(l.type)}));return ee.current=i.reduce((function(e,n){var t,r,i,o=n,l=pn(o),u=(0,a.Z)(l,2),d=u[0],h=u[1];return sn(sn({},e),{},(i={},(0,c.Z)(i,d,[].concat((0,s.Z)(null!==(t=e[d])&&void 0!==t?t:[]),[o])),(0,c.Z)(i,h,[].concat((0,s.Z)(null!==(r=e[h])&&void 0!==r?r:[]),[o])),i))}),{}),{nodes:n,links:i}}),[g,r]),re=(0,u.useState)({nodes:[],links:[]}),ie=re[0],oe=re[1];(0,u.useEffect)((function(){if(w.nodeIds.length){var e=w.nodeIds.length>1?ie.nodes:[],n=e.map((function(e){return e.id})),t=function(e,n){var t=[e[0]],r=[],i=[e[0]];return Array.from({length:n},(function(){t.forEach((function(e){var n;(null!==(n=ee.current[e])&&void 0!==n?n:[]).forEach((function(e){var n=pn(e),t=(0,a.Z)(n,2),o=t[0],l=t[1];i.includes(o)?i.includes(l)||r.push(l):r.push(o)}))})),t=r,r.forEach((function(e){return e&&i.push(e)})),r=[]})),i}(w.nodeIds,1),r=te.nodes.filter((function(r){var i;return e.length?!n.includes(r.id)&&(null!==(i=ee.current[r.id])&&void 0!==i?i:[]).some((function(e){var n=pn(e),t=(0,a.Z)(n,2),r=t[0],i=t[1];return w.nodeIds.includes(r)||w.nodeIds.includes(i)})):t.includes(r.id)})).map((function(e){return sn(sn({},e),{},{x:0,y:0,vy:0,vx:0})})),i=[].concat((0,s.Z)(e),(0,s.Z)(r)),o=i.map((function(e){return e.id})),l=w.nodeIds.length>1?ie.links:[],c=te.links.filter((function(e){var t=pn(e),r=(0,a.Z)(t,2),i=r[0],s=r[1];return!(l.length&&n.includes(s)&&n.includes(i))&&(o.includes(i)&&o.includes(s))})).map((function(e){var n=pn(e),t=(0,a.Z)(n,2);return{source:t[0],target:t[1]}})),u=[].concat((0,s.Z)(l),(0,s.Z)(c));oe({nodes:i,links:u})}}),[g,w,JSON.stringify(r),te.links,te.nodes]),$.current=H;var le=(0,u.useMemo)((function(){if(!$.current)return{};var e=ee.current[$.current.id];return e?Object.fromEntries([$.current.id].concat((0,s.Z)(e.flatMap((function(e){return[e.source,e.target]})))).map((function(e){return[e,{}]}))):{}}),[$.current,ee.current]);(0,u.useEffect)((function(){(0,o.Z)(i().mark((function e(){var r,o;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.current,e.next=3,cn;case 3:o=e.sent,!t.gravityOn||w.nodeIds.length&&!t.gravityLocal?(r.d3Force("x",null),r.d3Force("y",null),d&&r.d3Force("z",null)):(r.d3Force("x",o.forceX().strength(t.gravity)),r.d3Force("y",o.forceY().strength(t.gravity)),d&&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,d,w]),(0,u.useEffect)((function(){var e;null===(e=n.current)||void 0===e||e.d3ReheatSimulation()}),[t,w.nodeIds.length]);var se=(0,u.useRef)(0),ae=(0,u.useState)(1),ue=ae[0],de=ae[1],he=(0,j._7)((function(e){return de(e)}),{duration:C.animationSpeed,algorithm:P[C.algorithmName]}),ge=(0,a.Z)(he,2),fe=ge[0],pe=ge[1],xe=(0,j._7)((function(e){return de(Math.min(ue,-1*(e-1)))}),{duration:C.animationSpeed,algorithm:P[C.algorithmName]}),je=(0,a.Z)(xe,2),be=je[0],ve=je[1],me=(0,u.useRef)(null);(0,u.useEffect)((function(){if(H&&(me.current=H),!C.highlightAnim)return de(H?1:0);H?fe():(pe(),ue>.5?be():de(0))}),[H]);var ye=function(e){if(q)return e.split(".").reduce((function(e,n){return e[n]}),q.colors)},Ce=(0,u.useMemo)((function(){return Object.fromEntries(E.map((function(e){var n=ye(e),t=E.map((function(e){return[e,p.Z(n,ye(e))]}));return[e,Object.fromEntries(t)]})))}),[Q]),ke=(0,u.useMemo)((function(){var e,n,t,r=null!==(e=ee.current[null===(n=me.current)||void 0===n?void 0:n.id])&&void 0!==e?e:[];return Object.fromEntries([null===(t=me.current)||void 0===t?void 0:t.id].concat((0,s.Z)(r.flatMap((function(e){return pn(e)})))).map((function(e){return[e,{}]})))}),[JSON.stringify(H),me.current,ee.current]),Oe=function(e){var n,t,r,i,o,l=null!==(n=null===(t=ee.current[e])||void 0===t?void 0:t.length)&&void 0!==n?n:0;return C.nodeColorScheme[(r=l,i=0,o=C.nodeColorScheme.length-1,Math.min(Math.max(r,i),o))]},we=function(e,n){return ee.current[e].length>ee.current[n].length?Oe(e):Oe(n)},Se=(0,u.useMemo)((function(){return ye(C.labelTextColor)}),[C.labelTextColor,Q]),Pe=(0,u.useMemo)((function(){return ye(C.labelBackgroundColor)}),[C.labelBackgroundColor,Q]),Le=function(e){var n,t=null!==(n=ee.current[e.id])&&void 0!==n?n:[],r=t.length?t.filter((function(e){return"parent"===e.type})).length:0,i=3+t.length*C.nodeSizeLinks-(g.parent?0:r);return 1===C.highlightNodeSize?i:i*(le[e.id]||ke[e.id]?1+ue*(C.highlightNodeSize-1):1)},Ie=(0,u.useState)(!1),De=Ie[0],Ne=Ie[1],ze=(0,u.useState)(1),Ee=ze[0],Ze=ze[1],Te={graphData:w.nodeIds.length?ie:te,width:T,height:R,backgroundColor:q.colors.gray[C.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 Ze(n)},nodeLabel:function(e){return e.title},nodeColor:function(e){return function(e){var n=le[e.id]||ke[e.id];if(C.emacsNodeColor&&e.id===f)return ye(C.emacsNodeColor);if(I&&e.tags.some((function(e){return I[e]}))){var t=I[e.tags.filter((function(e){return I[e]}))[0]];return Ce[t][C.backgroundColor](C.highlightFade*ue)}return C.citeNodeColor&&e.properties.ROAM_REFS&&e.properties.FILELESS?n?ye(C.citeNodeColor):Ce[C.citeNodeColor][C.backgroundColor](C.highlightFade*ue):C.refNodeColor&&e.properties.ROAM_REFS?n?ye(C.refNodeColor):Ce[C.refNodeColor][C.backgroundColor](C.highlightFade*ue):n?C.nodeHighlight?Ce[Oe(e.id)][C.nodeHighlight](ue):ye(Oe(e.id)):Ce[Oe(e.id)][C.backgroundColor](C.highlightFade*ue)}(e)},nodeRelSize:C.nodeRel,nodeVal:function(e){return Le(e)/Math.pow(Ee,C.nodeZoomSize)},nodeCanvasObject:function(e,n,t){if(e&&!De&&C.labels){var r=ke[e.id];if(!(t<=C.labelScale||1===C.labels)||le[e.id]||r){var i=e.title,o=i.substring(0,C.labelLength),l=C.labelFontSize/(.75*Math.min(Math.max(.5,t),3)),c=[1.1*n.measureText(o).width,l].map((function(e){return e+.5*l})),a=Math.min(3*(t-C.labelScale)/C.labelScale,1),u=function(){return 1===C.labels||t<=C.labelScale?ue:le[e.id]||ke[e.id]?Math.max(a,ue):1*a*(-1*(C.highlightFade*ue-1))},d=8*Math.cbrt(Le(e)*C.nodeRel);if(C.labelBackgroundColor&&C.labelBackgroundOpacity){var h=u()*C.labelBackgroundOpacity,g=xn(Pe,h);n.fillStyle=g,n.fillRect.apply(n,[e.x-c[0]/2,e.y-c[1]/2+d].concat((0,s.Z)(c)))}var f=u();n.textAlign="center",n.textBaseline="middle";var p=xn(Se,f);n.fillStyle=p,n.font="".concat(l,"px Sans-Serif");var x=rn()(o,{width:C.labelWordWrap}).split("\n");(i.length>C.labelLength?[].concat((0,s.Z)(x.slice(0,-1)),["".concat(x.slice(-1),"...")]):x).forEach((function(t,r){n.fillText(t,e.x,e.y+d+C.labelLineSpace*l*r)}))}}},nodeCanvasObjectMode:function(){return"after"},linkDirectionalParticles:C.particles?C.particlesNumber:void 0,linkDirectionalArrowLength:C.arrows?C.arrowsLength:void 0,linkDirectionalArrowRelPos:C.arrowsPos,linkDirectionalArrowColor:C.arrowsColor?function(){return ye(C.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,i=fn(e,$.current),o=fn(e,me.current),l=i||o,s=e;return C.refLinkColor&&"ref"===s.type?l&&(C.refLinkHighlightColor||C.linkHighlight)?Ce[C.refLinkColor][C.refLinkHighlightColor||C.linkHighlight](ue):Ce[C.refLinkColor][C.backgroundColor](C.highlightFade*ue):C.citeLinkColor&&null!==(n=s.type)&&void 0!==n&&n.includes("cite")?l&&(C.citeLinkHighlightColor||C.linkHighlight)?Ce[C.citeLinkColor][C.citeLinkHighlightColor||C.linkHighlight](ue):Ce[C.citeLinkColor][C.backgroundColor](C.highlightFade*ue):function(e,n,t){if(!C.linkHighlight&&!C.linkColorScheme&&!t){var r=we(e,n);return ye(r)}if(!t&&!C.linkColorScheme){var i=we(e,n);return Ce[i][C.backgroundColor](C.highlightFade*ue)}if(!t)return Ce[C.linkColorScheme][C.backgroundColor](C.highlightFade*ue);if(!C.linkHighlight&&!C.linkColorScheme){var o=we(e,n);return ye(o)}return C.linkHighlight?C.linkColorScheme?Ce[C.linkColorScheme][C.linkHighlight](ue):Ce[we(e,n)][C.linkHighlight](ue):ye(C.linkColorScheme)}(t,r,l)},linkWidth:function(e){if(1===C.highlightLinkSize)return C.linkWidth;var n=fn(e,$.current),t=fn(e,me.current);return n||t?C.linkWidth*(1+ue*(C.highlightLinkSize-1)):C.linkWidth},linkDirectionalParticleWidth:C.particlesWidth,d3AlphaDecay:t.alphaDecay,d3AlphaMin:t.alphaMin,d3VelocityDecay:t.velocityDecay,onNodeClick:function(e,n){var t=e;J.onClose();var r=n.timeStamp-se.current<200;if(se.current=n.timeStamp,r)return Y("double",t,n);var i=se.current;return setTimeout((function(){if(se.current===i)return Y("click",t,n)}),200)},onBackgroundClick:function(){J.onClose(),A(null),0!==w.nodeIds.length&&S((function(e){return sn(sn({},e),{},{nodeIds:[]})}))},onNodeHover:function(e){C.highlight&&(H||(ve(),de(0)),A(e))},onNodeRightClick:function(e,n){Y("right",e,n)},onNodeDrag:function(e){J.onClose(),A(e),Ne(!0)},onNodeDragEnd:function(){A(null),Ne(!1)}};return(0,l.jsxs)(v.xu,{overflow:"hidden",children:[J.isOpen&&(0,l.jsx)(en,{scope:w,node:B,nodeType:null===B||void 0===B?void 0:B.id,background:!1,coordinates:X,handleLocal:G,menuClose:J.onClose.bind(J),openNodeInEmacs:U,deleteNodeInEmacs:function(e){0===e.level&&K("delete",{id:e.id,file:e.file})},createNodeInEmacs:function(e){K("create",{id:e.id,title:e.title,ref:e.properties.ROAM_REFS})}}),d?(0,l.jsx)(un,sn(sn({ref:n},Te),{},{nodeThreeObjectExtend:!0,backgroundColor:q.colors.white,nodeOpacity:C.nodeOpacity,nodeResolution:C.nodeResolution,linkOpacity:C.linkOpacity,nodeThreeObject:function(e){if(C.labels&&(!(C.labels<3)||le[e.id])){var n=new nn.Z(e.title.substring(0,40));return n.color=ye(C.labelTextColor),n.backgroundColor=ye(C.labelBackgroundColor),n.padding=2,n.textHeight=8,n}}})):(0,l.jsx)(an,sn(sn({ref:n},Te),{},{linkLineDash:function(e){var n,t=e;return C.citeDashes&&null!==(n=t.type)&&void 0!==n&&n.includes("cite")?[C.citeDashLength,C.citeGapLength]:C.refDashes&&"ref"==t.type?[C.refDashLength,C.refGapLength]:null}}))]})}));function fn(e,n){var t,r;return(null===(t=e.source)||void 0===t?void 0:t.id)===(null===n||void 0===n?void 0:n.id)||(null===(r=e.target)||void 0===r?void 0:r.id)===(null===n||void 0===n?void 0:n.id)}function pn(e){return["object"===typeof e.source?e.source.id:e.source,"object"===typeof e.target?e.target.id:e.target]}function xn(e,n){return"rgba("+(e=e.replace("#","")).match(new RegExp("(.{"+e.length/3+"})","g")).map((function(n){return parseInt(e.length%2?n+n:n,16)})).concat(isFinite(n)?n:1).join(",")+")"}},45301:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return t(82993)}])}},function(e){e.O(0,[774,737,446,476,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],{82993:function(e,n,t){"use strict";t.r(n),t.d(n,{Graph:function(){return gn},GraphPage:function(){return hn},default:function(){return dn}});var r=t(87757),i=t.n(r),o=t(92137),l=t(85893),s=t(87329),c=t(96156),a=t(34699),u=t(67294);function d(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 h(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?d(Object(t),!0).forEach((function(n){(0,c.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):d(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function g(e,n){var t,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=f(e,null!==(t=r.storage)&&void 0!==t?t:localStorage),o=i.get(),l=void 0!==o?o:n,s=null!=o&&"object"===typeof o&&!1===Array.isArray(o)?h(h({},n),o):l;s!==o&&i.update(s);var c=(0,u.useState)(s),a=c[0],d=c[1];(0,u.useEffect)((function(){a!==s&&d(s)}),[e]);var g=function(e){e instanceof Function?d((function(n){var t=e(n);return i.update(t),t})):(d(e),i.update(e))};return[a,g]}function f(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 p=t(54533),x=t(54309),j=t(32351),b=t(40980),v=t(48017),m=t(74860),y=t(36194),C=[],k={};for(var O in y.oY)for(var w in y.oY[O]){var S=O+w;"LinearNone"===S&&(S="Linear"),C.push(S),k[S]=y.oY[O][w]}var P=k,L={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},I={orphans:!1,dailies:!1,parent:"heading",filelessCites:!1,tagsBlacklist:[],tagsWhitelist:[],bad:!0,nodes:[],links:[],date:[]},D={particles:!1,particlesNumber:0,particlesWidth:4,arrows:!1,arrowsLength:1,arrowsPos:.5,arrowsColor:"",linkOpacity:.8,linkWidth:1,nodeRel:4,nodeOpacity:1,nodeResolution:12,labels:2,labelScale:1.5,labelFontSize:13,labelLength:40,labelWordWrap:25,labelLineSpace:1,highlight:!0,highlightNodeSize:2,highlightLinkSize:2,highlightFade:.8,highlightAnim:!0,animationSpeed:420,algorithmOptions:C,algorithmName:"SinusoidalOut",linkColorScheme:"gray.500",nodeColorScheme:["red.500","gray.600","yellow.500","green.500","cyan.500","blue.500","pink.500","purple.500","orange.500"],nodeHighlight:"purple.500",linkHighlight:"purple.500",backgroundColor:"white",emacsNodeColor:"gray.800",labelTextColor:"gray.900",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.3},N={follow:"zoom",localSame:"add",zoomPadding:200,zoomSpeed:2e3},z={highlight:"hover",local:"click",follow:"double",context:"right"},E=["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"],Z=t(81253),T=t(93924),R=t(83986),F=t(48931),H=t(48420),A=t(96699),V=t(40155),B=t(56769),W=t(336),M=t(86658),X=t(6569),_=t(72026),q=t(94096),Q=t(64115),G=t(48235),K=t(67273),U=t(88134),J=t(47647);function Y(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 $(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Y(Object(t),!0).forEach((function(n){(0,c.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Y(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var ee=function(e){var n=e.filter,t=e.setFilter,r=e.tags,i=e.highlightColor,o=e.mode,s=r.map((function(e){return{value:e,label:e}})),a="blacklist"===o?"tagsBlacklist":"tagsWhitelist",d=(0,u.useState)(n[a].map((function(e){return{value:e,label:e}}))),h=d[0],g=d[1];return(0,l.jsx)(J.CUIAutoComplete,{items:s,label:"Add tag to "+o,placeholder:" ",onCreateItem:function(e){return null},disableCreateItem:!0,selectedItems:h,onSelectedItemsChange:function(e){e.selectedItems&&(g(e.selectedItems),t($($({},n),{},(0,c.Z)({},a,e.selectedItems.map((function(e){return e.value}))))))},listItemStyleProps:{overflow:"hidden"},highlightItemBg:"gray.400",toggleButtonStyleProps:{variant:"outline"},inputStyleProps:{focusBorderColor:i,color:"gray.800",borderColor:"gray.600"},tagStyleProps:{rounded:"full",bg:i,height:8,paddingLeft:4,fontWeight:"bold"},hideToggleButton:!0,itemRenderer:function(e){return e.label}})},ne=t(2827);function te(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function re(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?te(Object(t),!0).forEach((function(n){(0,c.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):te(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var ie=function(e){var n=e.colorList,t=e.tagColors,r=e.setTagColors,i=e.highlightColor,o=e.tags.map((function(e){return{value:e,label:e}})),s=(0,u.useState)(Object.keys(t).map((function(e){return{value:e,label:e}}))),a=s[0],d=s[1];return(0,l.jsxs)(v.xu,{children:[(0,l.jsx)(J.CUIAutoComplete,{items:o,label:"Add tag to filter",placeholder:" ",disableCreateItem:!0,selectedItems:a,onSelectedItemsChange:function(e){e.selectedItems&&(d(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:{focusBorderColor:i,color:"gray.800",borderColor:"gray.600"},tagStyleProps:{display:"none",rounded:"full",bg:i,height:8,paddingLeft:4,fontWeight:"bold"},hideToggleButton:!0,itemRenderer:function(e){return e.label}}),(0,l.jsx)(_.gC,{spacing:2,justifyContent:"flex-start",divider:(0,l.jsx)(_.cX,{borderColor:"gray.500"}),align:"stretch",color:"gray.800",children:Object.keys(t).map((function(e){return(0,l.jsxs)(q.k,{alignItems:"center",justifyContent:"space-between",width:"100%",pl:2,children:[(0,l.jsx)(v.xu,{width:"100%",children:(0,l.jsx)(Q.x,{fontWeight:"bold",children:e})}),(0,l.jsxs)(G.v2,{isLazy:!0,placement:"right",children:[(0,l.jsx)(G.j2,{as:V.z,colorScheme:"",color:"black",children:(0,l.jsx)(v.xu,{bgColor:t[e],borderRadius:"sm",height:6,width:6})}),(0,l.jsxs)(K.h,{children:[" ",(0,l.jsx)(G.qy,{minW:10,zIndex:"popover",bgColor:"gray.200",children:n.map((function(n){return(0,l.jsx)(G.sN,{onClick:function(){return r(re(re({},t),{},(0,c.Z)({},e,n)))},justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,l.jsx)(v.xu,{bgColor:n,borderRadius:"sm",height:6,width:6})},n)}))})]})]}),(0,l.jsx)(H.h,{"aria-label":"Delete tag color",variant:"ghost",icon:(0,l.jsx)(ne.p,{}),onClick:function(){r(Object.fromEntries(Array.from(new Set(a)).map((function(e){var n;return[e.label,null!==(n=t[e.label])&&void 0!==n?n:"gray.600"]})))),d(a.filter((function(n){return n.value!==e})))}})]},e)}))})]})};function oe(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function le(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?oe(Object(t),!0).forEach((function(n){(0,c.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):oe(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var se=function(e){var n=e.filter,t=e.setFilter,r=e.tagColors,i=e.setTagColors,o=e.highlightColor,s=e.colorList,c=e.tags;return(0,l.jsxs)(v.xu,{children:[(0,l.jsxs)(_.gC,{spacing:2,justifyContent:"flex-start",divider:(0,l.jsx)(_.cX,{borderColor:"gray.500"}),align:"stretch",paddingLeft:7,color:"gray.800",children:[(0,l.jsxs)(q.k,{alignItems:"center",justifyContent:"space-between",children:[(0,l.jsx)(Q.x,{children:"Link children to"}),(0,l.jsxs)(G.v2,{isLazy:!0,placement:"right",children:[(0,l.jsx)(G.j2,{as:V.z,rightIcon:(0,l.jsx)(X.v,{}),colorScheme:"",color:"black",size:"sm",children:function(){switch(n.parent){case"parent":return(0,l.jsx)(Q.x,{children:"File"});case"heading":return(0,l.jsx)(Q.x,{children:"Heading"});default:return(0,l.jsx)(Q.x,{children:"Nothing"})}}()}),(0,l.jsxs)(K.h,{children:[" ",(0,l.jsxs)(G.qy,{bgColor:"gray.200",zIndex:"popover",children:[(0,l.jsx)(G.sN,{onClick:function(){return t((function(e){return le(le({},e),{},{parent:""})}))},children:"Nothing"}),(0,l.jsx)(G.sN,{onClick:function(){return t((function(e){return le(le({},e),{},{parent:"parent"})}))},children:"Parent file node"}),(0,l.jsx)(G.sN,{onClick:function(){return t((function(e){return le(le({},e),{},{parent:"heading"})}))},children:"Next highest heading node"})]})]})]})]}),(0,l.jsxs)(q.k,{justifyContent:"space-between",children:[(0,l.jsx)(Q.x,{children:"Orphans"}),(0,l.jsx)(U.r,{onChange:function(){t((function(e){return le(le({},e),{},{orphans:!e.orphans})}))},isChecked:n.orphans})]}),(0,l.jsxs)(q.k,{justifyContent:"space-between",children:[(0,l.jsx)(Q.x,{children:"Dailies"}),(0,l.jsx)(U.r,{onChange:function(){t((function(e){return le(le({},e),{},{dailies:!e.dailies})}))},isChecked:n.dailies})]}),(0,l.jsxs)(q.k,{justifyContent:"space-between",children:[(0,l.jsx)(Q.x,{children:"Citations without note files"}),(0,l.jsx)(U.r,{onChange:function(){t(le(le({},n),{},{filelessCites:!n.filelessCites}))},isChecked:n.filelessCites})]}),(0,l.jsxs)(q.k,{justifyContent:"space-between",children:[(0,l.jsx)(Q.x,{children:"Non-existant nodes"}),(0,l.jsx)(U.r,{onChange:function(){i(le(le({},r),{},{bad:"white"})),t(le(le({},n),{},{bad:!n.bad}))},isChecked:n.bad})]})]}),(0,l.jsxs)(B.UQ,{padding:0,allowToggle:!0,allowMultiple:!0,paddingLeft:3,children:[(0,l.jsxs)(B.Qd,{children:[(0,l.jsxs)(B.KF,{children:["Tag filters",(0,l.jsx)(B.XE,{})]}),(0,l.jsxs)(B.Hk,{pr:0,mr:0,children:[(0,l.jsx)(ee,{highlightColor:o,filter:n,setFilter:t,tags:c,mode:"blacklist"}),(0,l.jsx)(ee,{highlightColor:o,filter:n,setFilter:t,tags:c,mode:"whitelist"})]})]}),(0,l.jsxs)(B.Qd,{children:[(0,l.jsxs)(B.KF,{children:["Tag colors",(0,l.jsx)(B.XE,{})]}),(0,l.jsx)(B.Hk,{pr:0,mr:0,children:(0,l.jsx)(ie,{tags:c,colorList:s,tagColors:r,setTagColors:i,highlightColor:o})})]})]})]})},ce=t(29356),ae=t(15267),ue=t(24189),de=function(e){var n=e.infoText;return(0,l.jsx)(v.xu,{paddingLeft:"1",children:(0,l.jsx)(A.u,{label:n,placement:"top",color:"gray.100",bg:"gray.800",hasArrow:!0,children:(0,l.jsx)(ue.h,{})})})},he=function(e){var n=e.value,t=e.onChange,r=e.label,i=e.infoText,o=e.children;return(0,l.jsxs)(v.xu,{paddingTop:2,children:[(0,l.jsxs)(v.xu,{display:"flex",justifyContent:"space-between",paddingBottom:2,children:[(0,l.jsxs)(v.xu,{display:"flex",alignItems:"center",children:[(0,l.jsx)(Q.x,{children:r}),i&&(0,l.jsx)(de,{infoText:i})]}),(0,l.jsx)(U.r,{isChecked:!!n,onChange:t})]}),(0,l.jsx)(ae.U,{in:!!n,animateOpacity:!0,children:(0,l.jsx)(v.xu,{paddingLeft:4,paddingTop:2,paddingBottom:2,children:o})})]},r)},ge=t(95818),fe=function(e){var n=e.min,t=void 0===n?0:n,r=e.max,i=void 0===r?10:r,o=e.step,s=void 0===o?.1:o,c=e.value,a=void 0===c?1:c,d=(0,Z.Z)(e,["min","max","step","value"]),h=d.onChange,g=d.label,f=d.infoText,p=(0,u.useContext)(ce.N).highlightColor;return(0,l.jsxs)(v.xu,{children:[(0,l.jsxs)(v.xu,{display:"flex",alignItems:"flex-end",children:[(0,l.jsx)(Q.x,{children:g}),f&&(0,l.jsx)(de,{infoText:f})]}),(0,l.jsxs)(ge.iR,{value:a,onChange:h,min:t,max:i,step:s,children:[(0,l.jsx)(ge.Uj,{children:(0,l.jsx)(ge.Ms,{})}),(0,l.jsx)(A.u,{bg:p,label:a.toFixed(1),children:(0,l.jsx)(ge.gs,{bg:"white"})})]})]},g)};function pe(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 xe(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?pe(Object(t),!0).forEach((function(n){(0,c.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):pe(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var je=function(e){var n=e.physics,t=e.setPhysics,r=(0,u.useCallback)((function(e,n,r){t((function(t){return xe(xe({},t),{},(0,c.Z)({},n,e/r))}))}),[]);return(0,l.jsxs)(v.xu,{children:[(0,l.jsxs)(_.gC,{spacing:2,justifyContent:"flex-start",divider:(0,l.jsx)(_.cX,{borderColor:"gray.500"}),align:"stretch",paddingLeft:7,color:"gray.800",children:[(0,l.jsxs)(he,{label:"Gravity",value:n.gravityOn,onChange:function(){return t(xe(xe({},n),{},{gravityOn:!n.gravityOn}))},children:[(0,l.jsxs)(q.k,{justifyContent:"space-between",children:[(0,l.jsx)(Q.x,{children:"Also in local"}),(0,l.jsx)(U.r,{onChange:function(){t((function(e){return xe(xe({},e),{},{gravityLocal:!e.gravityLocal})}))},isChecked:n.gravityLocal})]}),(0,l.jsx)(fe,{label:"Strength",value:10*n.gravity,onChange:function(e){return r(e,"gravity",10)}})]}),(0,l.jsx)(fe,{value:-n.charge/100,onChange:function(e){return r(e,"charge",-.01)},label:"Repulsive Force"}),(0,l.jsx)(he,{label:"Collision",infoText:"Perfomance sap, disable if slow",value:n.collision,onChange:function(){return t(xe(xe({},n),{},{collision:!n.collision}))},children:(0,l.jsx)(fe,{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,l.jsx)(fe,{value:5*n.linkStrength,onChange:function(e){return r(e,"linkStrength",5)},label:"Link Force"}),(0,l.jsx)(fe,{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,l.jsx)(fe,{label:"Viscosity",value:10*n.velocityDecay,onChange:function(e){return r(e,"velocityDecay",10)}})]}),(0,l.jsx)(v.xu,{children:(0,l.jsx)(B.UQ,{paddingLeft:3,allowToggle:!0,children:(0,l.jsxs)(B.Qd,{children:[(0,l.jsxs)(B.KF,{children:[(0,l.jsx)(Q.x,{children:"Advanced"}),(0,l.jsx)(B.XE,{marginRight:2})]}),(0,l.jsx)(B.Hk,{children:(0,l.jsxs)(_.gC,{spacing:2,justifyContent:"flex-start",divider:(0,l.jsx)(_.cX,{borderColor:"gray.500"}),align:"stretch",paddingLeft:3,color:"gray.800",children:[(0,l.jsx)(fe,{label:"Stabilization rate",value:50*n.alphaDecay,onChange:function(e){return r(e,"alphaDecay",50)}}),(0,l.jsx)(he,{label:"Center nodes",value:n.centering,onChange:function(){return t(xe(xe({},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,l.jsx)(fe,{label:"Centering Strength",value:n.centeringStrength,max:2,step:.01,onChange:function(e){return r(e,"centeringStrength",1)}})})]})})]})})})]})},be=t(46049);function ve(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?ve(Object(t),!0).forEach((function(n){(0,c.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ve(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var ye=function(e){var n=e.visuals,t=e.setVisuals;return(0,l.jsx)(_.gC,{spacing:2,justifyContent:"flex-start",divider:(0,l.jsx)(_.cX,{borderColor:"gray.500"}),align:"stretch",color:"gray.800",children:(0,l.jsx)(v.xu,{children:(0,l.jsx)(he,{label:"Highlight",onChange:function(){return t((function(e){return me(me({},e),{},{highlight:!e.highlight})}))},value:n.highlight,children:(0,l.jsxs)(_.gC,{spacing:1,justifyContent:"flex-start",divider:(0,l.jsx)(_.cX,{borderColor:"gray.400"}),align:"stretch",paddingLeft:0,children:[(0,l.jsx)(fe,{label:"Highlight Link Thickness",value:n.highlightLinkSize,onChange:function(e){return t((function(n){return me(me({},n),{},{highlightLinkSize:e})}))}}),(0,l.jsx)(fe,{label:"Highlight Node Size",value:n.highlightNodeSize,onChange:function(e){return t((function(n){return me(me({},n),{},{highlightNodeSize:e})}))}}),(0,l.jsx)(fe,{min:0,max:1,label:"Highlight Fade",value:n.highlightFade,onChange:function(e){return t((function(n){return me(me({},n),{},{highlightFade:e})}))}}),(0,l.jsxs)(he,{label:"Highlight Animation",onChange:function(){t((function(e){return me(me({},e),{},{highlightAnim:!e.highlightAnim})}))},value:n.highlightAnim,children:[(0,l.jsx)(fe,{label:"Animation speed",onChange:function(e){return t((function(n){return me(me({},n),{},{animationSpeed:e})}))},value:n.animationSpeed,infoText:"Slower speed has a chance of being buggy",min:50,max:1e3,step:10}),(0,l.jsx)(be.Ph,{placeholder:n.algorithmName,onChange:function(e){t((function(n){return me(me({},n),{},{algorithmName:e.target.value})}))},children:n.algorithmOptions.map((function(e){return(0,l.jsx)("option",{value:e,children:e},e)}))})]})]})})})})},Ce=t(67546),ke=t(93441);function Oe(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function we(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Oe(Object(t),!0).forEach((function(n){(0,c.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Oe(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Se=function(e){var n=e.label,t=e.colorList,r=e.value,i=e.visValue,o=e.setVisuals,s=(0,u.useCallback)((function(e){return o((function(n){return we(we({},n),{},(0,c.Z)({},r,e))}))}),[]);return(0,l.jsxs)(q.k,{alignItems:"center",justifyContent:"space-between",children:[(0,l.jsx)(Q.x,{children:n}),(0,l.jsxs)(G.v2,{isLazy:!0,placement:"right",children:[(0,l.jsx)(G.j2,{as:V.z,colorScheme:"",color:"black",rightIcon:(0,l.jsx)(X.v,{}),children:(0,l.jsx)(v.xu,{bgColor:i,borderRadius:"sm",height:6,width:6})}),(0,l.jsxs)(K.h,{children:[" ",(0,l.jsxs)(G.qy,{minW:10,zIndex:"popover",bgColor:"gray.200",children:[(0,l.jsx)(G.sN,{onClick:function(){return s("")},justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,l.jsx)(v.xu,{height:6,width:6})}),t.map((function(e){return(0,l.jsx)(G.sN,{onClick:function(){return s(e)},justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,l.jsx)(v.xu,{bgColor:e,borderRadius:"sm",height:6,width:6})},e)}))]})]})]})]})};function Pe(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?Pe(Object(t),!0).forEach((function(n){(0,c.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Pe(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Ie=function(e){var n=e.visuals,t=e.setVisualsCallback,r=e.highlightColor,i=e.setHighlightColor;return(0,l.jsx)(_.gC,{spacing:2,justifyContent:"flex-start",divider:(0,l.jsx)(_.cX,{borderColor:"gray.500"}),align:"stretch",color:"gray.800",children:(0,l.jsxs)(v.xu,{children:[(0,l.jsxs)(q.k,{alignItems:"center",justifyContent:"space-between",children:[(0,l.jsx)(Q.x,{children:"Nodes"}),(0,l.jsx)(A.u,{label:"Shuffle node colors",children:(0,l.jsx)(H.h,{"aria-label":"Shuffle node colors",size:"sm",icon:(0,l.jsx)(Ce.n,{}),variant:"ghost",onClick:function(){var e,r=null!==(e=n.nodeColorScheme)&&void 0!==e?e:[];t(Le(Le({},n),{},{nodeColorScheme:r.map((function(e){return[Math.random(),e]})).sort((function(e,n){return(0,a.Z)(e,1)[0]-(0,a.Z)(n,1)[0]})).map((function(e){var n=(0,a.Z)(e,2);n[0];return n[1]}))}))}})}),(0,l.jsx)(A.u,{label:"Cycle node colors",children:(0,l.jsx)(H.h,{"aria-label":"Shift node colors",icon:(0,l.jsx)(ke.L,{}),size:"sm",variant:"ghost",onClick:function(){var e,r=null!==(e=n.nodeColorScheme)&&void 0!==e?e:[];t(Le(Le({},n),{},{nodeColorScheme:[].concat((0,s.Z)(r.slice(1,r.length)),[r[0]])}))}})}),(0,l.jsxs)(G.v2,{isLazy:!0,placement:"right",closeOnSelect:!1,matchWidth:!0,children:[(0,l.jsx)(G.j2,{width:20,as:V.z,colorScheme:"",color:"black",rightIcon:(0,l.jsx)(X.v,{}),children:(0,l.jsx)(q.k,{height:6,width:6,flexDirection:"column",flexWrap:"wrap",children:n.nodeColorScheme.map((function(e){return(0,l.jsx)(v.xu,{bgColor:e,flex:"1 1 8px",borderRadius:"2xl"},e)}))})}),(0,l.jsxs)(K.h,{children:[" ",(0,l.jsx)(G.qy,{minW:10,zIndex:"popover",bgColor:"gray.200",children:(0,l.jsx)(G.__,{width:500,type:"checkbox",defaultValue:n.nodeColorScheme,onChange:function(e){e.length&&t(Le(Le({},n),{},{nodeColorScheme:e}))},children:E.map((function(e){return(0,l.jsx)(G.ii,{isChecked:n.nodeColorScheme.some((function(n){return n===e})),value:e,isDisabled:1===n.nodeColorScheme.length&&n.nodeColorScheme[0]===e,children:(0,l.jsx)(v.xu,{justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,l.jsx)(v.xu,{bgColor:e,borderRadius:"sm",height:6,width:6})})},e)}))})})]})]})]}),(0,l.jsxs)(q.k,{alignItems:"center",justifyContent:"space-between",children:[(0,l.jsx)(Q.x,{children:"Links"}),(0,l.jsxs)(G.v2,{isLazy:!0,placement:"right",children:[(0,l.jsx)(G.j2,{as:V.z,colorScheme:"",color:"black",rightIcon:(0,l.jsx)(X.v,{}),children:(0,l.jsx)(v.xu,{children:n.linkColorScheme?(0,l.jsx)(v.xu,{bgColor:n.linkColorScheme,borderRadius:"sm",height:6,width:6}):(0,l.jsx)(q.k,{height:6,width:6,flexDirection:"column",flexWrap:"wrap",children:n.nodeColorScheme.map((function(e){return(0,l.jsx)(v.xu,{bgColor:e,flex:"1 1 8px",borderRadius:"2xl"},e)}))})})}),(0,l.jsxs)(K.h,{children:[" ",(0,l.jsxs)(G.qy,{minW:10,zIndex:"popover",bgColor:"gray.200",children:[(0,l.jsx)(G.sN,{onClick:function(){return t(Le(Le({},n),{},{linkColorScheme:""}))},justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,l.jsx)(q.k,{height:6,width:6,flexDirection:"column",flexWrap:"wrap",children:n.nodeColorScheme.map((function(e){return(0,l.jsx)(v.xu,{bgColor:e,flex:"1 1 8px",borderRadius:"2xl"},e)}))})}),E.map((function(e){return(0,l.jsx)(G.sN,{onClick:function(){return t(Le(Le({},n),{},{linkColorScheme:e}))},justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,l.jsx)(v.xu,{bgColor:e,borderRadius:"sm",height:6,width:6})},e)}))]})]})]})]}),(0,l.jsxs)(q.k,{alignItems:"center",justifyContent:"space-between",children:[(0,l.jsx)(Q.x,{children:"Accent"}),(0,l.jsxs)(G.v2,{isLazy:!0,placement:"right",children:[(0,l.jsx)(G.j2,{as:V.z,colorScheme:"",color:"black",rightIcon:(0,l.jsx)(X.v,{}),children:(0,l.jsx)(v.xu,{bgColor:r,borderRadius:"sm",height:6,width:6})}),(0,l.jsxs)(K.h,{children:[" ",(0,l.jsx)(G.qy,{minW:10,zIndex:"popover",bgColor:"gray.200",children:E.map((function(e){return(0,l.jsx)(G.sN,{onClick:function(){return i(e)},justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,l.jsx)(v.xu,{bgColor:e,borderRadius:"sm",height:6,width:6})},e)}))})]})]})]}),(0,l.jsx)(Se,{colorList:E,label:"Link highlight",setVisuals:t,value:"linkHighlight",visValue:n.linkHighlight}),(0,l.jsx)(Se,{colorList:E,label:"Node highlight",setVisuals:t,value:"nodeHighlight",visValue:n.nodeHighlight}),(0,l.jsx)(Se,{colorList:E,label:"Background",setVisuals:t,value:"backgroundColor",visValue:n.backgroundColor}),(0,l.jsx)(Se,{colorList:E,label:"Emacs node",setVisuals:t,value:"emacsNodeColor",visValue:n.emacsNodeColor})]})})};function De(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 Ne(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?De(Object(t),!0).forEach((function(n){(0,c.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):De(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var ze=function(e){var n=e.visuals,t=e.setVisuals,r=e.threeDim;return(0,l.jsx)(_.gC,{spacing:2,justifyContent:"flex-start",divider:(0,l.jsx)(_.cX,{borderColor:"gray.500"}),align:"stretch",color:"gray.800",children:(0,l.jsxs)(v.xu,{children:[(0,l.jsx)(fe,{label:"Node size",value:n.nodeRel,onChange:function(e){return t(Ne(Ne({},n),{},{nodeRel:e}))}}),(0,l.jsx)(fe,{label:"Node connections size scale",value:n.nodeSizeLinks,min:0,max:2,onChange:function(e){return t(Ne(Ne({},n),{},{nodeSizeLinks:e}))}}),(0,l.jsx)(fe,{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 Ne(Ne({},n),{},{nodeZoomSize:e})}))}}),r&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(fe,{label:"Node opacity",value:n.nodeOpacity,min:0,max:1,onChange:function(e){return t(Ne(Ne({},n),{},{nodeOpacity:e}))}}),(0,l.jsx)(fe,{label:"Node resolution",value:n.nodeResolution,min:5,max:32,step:1,onChange:function(e){return t(Ne(Ne({},n),{},{nodeResolution:e}))}})]}),(0,l.jsx)(fe,{label:"Link width",value:n.linkWidth,onChange:function(e){return t(Ne(Ne({},n),{},{linkWidth:e}))}}),r&&(0,l.jsx)(fe,{label:"Link opacity",min:0,max:1,value:n.linkOpacity,onChange:function(e){return t(Ne(Ne({},n),{},{linkOpacity:e}))}}),(0,l.jsxs)(he,{label:"Link arrows",value:n.arrows,onChange:function(){return t(Ne(Ne({},n),{},{arrows:!n.arrows}))},children:[(0,l.jsx)(fe,{label:"Arrow size",value:n.arrowsLength/10,onChange:function(e){return t(Ne(Ne({},n),{},{arrowsLength:10*e}))}}),(0,l.jsx)(fe,{label:"Arrow Position",value:n.arrowsPos,min:0,max:1,step:.01,onChange:function(e){return t(Ne(Ne({},n),{},{arrowsPos:e}))}}),(0,l.jsx)(Se,{colorList:E,label:"Arrow Color",setVisuals:t,value:"arrowsColor",visValue:n.arrowsColor},"arrow")]}),(0,l.jsxs)(he,{label:"Directional Particles",value:n.particles,onChange:function(){return t(Ne(Ne({},n),{},{particles:!n.particles}))},children:[(0,l.jsx)(fe,{label:"Particle Number",value:n.particlesNumber,max:5,step:1,onChange:function(e){return t(Ne(Ne({},n),{},{particlesNumber:e}))}}),(0,l.jsx)(fe,{label:"Particle Size",value:n.particlesWidth,onChange:function(e){return t(Ne(Ne({},n),{},{particlesWidth:e}))}})]})]})})};function Ee(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 Ze(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Ee(Object(t),!0).forEach((function(n){(0,c.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ee(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Te=function(e){var n=e.visuals,t=e.setVisuals;return(0,l.jsx)(_.gC,{spacing:2,justifyContent:"flex-start",divider:(0,l.jsx)(_.cX,{borderColor:"gray.500"}),align:"stretch",color:"gray.800",children:(0,l.jsxs)(v.xu,{children:[(0,l.jsxs)(q.k,{alignItems:"center",justifyContent:"space-between",children:[(0,l.jsx)(Q.x,{children:"Show labels"}),(0,l.jsxs)(G.v2,{isLazy:!0,placement:"right",children:[(0,l.jsx)(G.j2,{as:V.z,colorScheme:"",color:"black",rightIcon:(0,l.jsx)(X.v,{}),children:n.labels?n.labels<2?"On Highlight":"Always":"Never"}),(0,l.jsxs)(K.h,{children:[" ",(0,l.jsxs)(G.qy,{zIndex:"popover",bgColor:"gray.200",children:[(0,l.jsx)(G.sN,{onClick:function(){return t(Ze(Ze({},n),{},{labels:0}))},children:"Never"}),(0,l.jsx)(G.sN,{onClick:function(){return t(Ze(Ze({},n),{},{labels:1}))},children:"On Highlight"}),(0,l.jsx)(G.sN,{onClick:function(){return t(Ze(Ze({},n),{},{labels:2}))},children:"Always"}),(0,l.jsx)(G.sN,{onClick:function(){return t(Ze(Ze({},n),{},{labels:3}))},children:"Always (even in 3D)"})]})]})]})]}),(0,l.jsxs)(_.gC,{spacing:1,justifyContent:"flex-start",divider:(0,l.jsx)(_.cX,{borderColor:"gray.400"}),align:"stretch",paddingLeft:2,color:"gray.800",children:[(0,l.jsx)(fe,{label:"Label font size",value:n.labelFontSize,min:5,max:20,step:.5,onChange:function(e){return t(Ze(Ze({},n),{},{labelFontSize:e}))}}),(0,l.jsx)(fe,{label:"Max. label characters",value:n.labelLength,min:10,max:100,step:1,onChange:function(e){return t(Ze(Ze({},n),{},{labelLength:e}))}}),(0,l.jsx)(fe,{label:"Max. label line length",value:n.labelWordWrap,min:10,max:100,step:1,onChange:function(e){return t(Ze(Ze({},n),{},{labelWordWrap:e}))}}),(0,l.jsx)(fe,{label:"Space between label lines",value:n.labelLineSpace,min:.2,max:3,step:.1,onChange:function(e){return t(Ze(Ze({},n),{},{labelLineSpace:e}))}}),(0,l.jsx)(Se,{colorList:E,label:"Text",setVisuals:t,value:"labelTextColor",visValue:n.labelTextColor}),(0,l.jsx)(Se,{colorList:E,label:"Background",setVisuals:t,value:"labelBackgroundColor",visValue:n.labelBackgroundColor}),(0,l.jsx)(ae.U,{in:!!n.labelBackgroundColor,animateOpacity:!0,children:(0,l.jsx)(v.xu,{paddingTop:2,children:(0,l.jsx)(fe,{label:"Background opacity",value:n.labelBackgroundOpacity,onChange:function(e){console.log(n.labelBackgroundOpacity),t(Ze(Ze({},n),{},{labelBackgroundOpacity:e}))},min:0,max:1,step:.01})})}),(0,l.jsx)(ae.U,{in:n.labels>1,animateOpacity:!0,children:(0,l.jsx)(v.xu,{paddingTop:2,children:(0,l.jsx)(fe,{label:"Label Appearance Scale",value:5*n.labelScale,onChange:function(e){return t(Ze(Ze({},n),{},{labelScale:e/5}))}})})})]})]})})};function Re(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 Fe(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Re(Object(t),!0).forEach((function(n){(0,c.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Re(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var He=function(e){var n=e.visuals,t=e.setVisuals;return(0,l.jsx)(_.gC,{spacing:2,justifyContent:"flex-start",divider:(0,l.jsx)(_.cX,{borderColor:"gray.500"}),align:"stretch",color:"gray.800",children:(0,l.jsxs)(v.xu,{children:[(0,l.jsxs)(he,{label:"Dash cite links",infoText:"Add dashes to citation links made with org-roam-bibtex",value:n.citeDashes,onChange:function(){return t(Fe(Fe({},n),{},{citeDashes:!n.citeDashes}))},children:[(0,l.jsx)(fe,{label:"Dash length",value:n.citeDashLength/10,onChange:function(e){return t(Fe(Fe({},n),{},{citeDashLength:10*e}))}}),(0,l.jsx)(fe,{label:"Gap length",value:n.citeGapLength/5,onChange:function(e){return t(Fe(Fe({},n),{},{citeGapLength:5*e}))}})]}),(0,l.jsx)(Se,{colorList:E,label:"Citation node color",setVisuals:t,value:"citeNodeColor",visValue:n.citeNodeColor}),(0,l.jsx)(Se,{colorList:E,label:"Citation link color",setVisuals:t,value:"citeLinkColor",visValue:n.citeLinkColor}),(0,l.jsx)(Se,{colorList:E,label:"Reference link highlight",setVisuals:t,value:"citeLinkHighlightColor",visValue:n.citeLinkHighlightColor}),(0,l.jsxs)(he,{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(Fe(Fe({},n),{},{refDashes:!n.refDashes}))},children:[(0,l.jsx)(fe,{label:"Dash length",value:n.refDashLength/10,onChange:function(e){return t(Fe(Fe({},n),{},{refDashLength:10*e}))}}),(0,l.jsx)(fe,{label:"Gap length",value:n.refGapLength/5,onChange:function(e){return t(Fe(Fe({},n),{},{refGapLength:5*e}))}})]}),(0,l.jsx)(Se,{colorList:E,label:"Reference node color",setVisuals:t,value:"refNodeColor",visValue:n.refNodeColor}),(0,l.jsx)(Se,{colorList:E,label:"Reference link color",setVisuals:t,value:"refLinkColor",visValue:n.refLinkColor}),(0,l.jsx)(Se,{colorList:E,label:"Reference link highlight",setVisuals:t,value:"refLinkHighlightColor",visValue:n.refLinkHighlightColor})]})})},Ae=t(67690),Ve=function(){var e=(0,u.useContext)(ce.N),n=e.emacsTheme,t=e.setEmacsTheme;e.highlightColor;return(0,l.jsxs)(q.k,{alignItems:"center",justifyContent:"space-between",pl:7,pr:2,children:[(0,l.jsx)(Q.x,{children:"Theme"}),(0,l.jsxs)(G.v2,{isLazy:!0,placement:"bottom",closeOnSelect:!1,children:[(0,l.jsx)(G.j2,{as:V.z,colorScheme:"",color:"black",rightIcon:(0,l.jsx)(X.v,{}),children:n[0]}),(0,l.jsxs)(G.qy,{minW:10,zIndex:"popover",bgColor:"gray.200",children:[(0,l.jsx)(G.sN,{onClick:function(){return""},justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,l.jsx)(v.xu,{height:6,width:6})}),Object.keys(Ae.n).map((function(e,n){return(0,l.jsxs)(G.sN,{onClick:function(){return t([e,Ae.n[e]])},justifyContent:"space-between",alignItems:"center",display:"flex",children:[(0,l.jsx)(Q.x,{children:e}),(0,l.jsx)(q.k,{height:6,width:20,flexDirection:"column",flexWrap:"wrap",children:Object.values(Ae.n[e]).map((function(e){return(0,l.jsx)(v.xu,{bgColor:e,flex:"1 1 8px"},e)}))})]},e)}))]})]})]})},Be=function(e){var n=e.visuals,t=e.setVisuals,r=e.highlightColor,i=e.setHighlightColor,o=e.threeDim,s=(0,u.useCallback)((function(e){return t(e)}),[]);return(0,l.jsxs)(_.gC,{justifyContent:"flex-start",align:"stretch",children:[(0,l.jsx)(Ve,{}),(0,l.jsxs)(B.UQ,{allowToggle:!0,defaultIndex:[0],paddingLeft:3,children:[(0,l.jsxs)(B.Qd,{children:[(0,l.jsx)(B.KF,{children:(0,l.jsxs)(q.k,{justifyContent:"space-between",w:"100%",children:[(0,l.jsx)(Q.x,{children:"Colors"}),(0,l.jsx)(B.XE,{marginRight:2})]})}),(0,l.jsx)(B.Hk,{children:(0,l.jsx)(Ie,{visuals:n,setVisualsCallback:s,highlightColor:r,setHighlightColor:i})})]}),(0,l.jsxs)(B.Qd,{children:[(0,l.jsx)(B.KF,{children:(0,l.jsxs)(q.k,{justifyContent:"space-between",w:"100%",children:[(0,l.jsx)(Q.x,{children:"Nodes & Links"}),(0,l.jsx)(B.XE,{marginRight:2})]})}),(0,l.jsx)(B.Hk,{children:(0,l.jsx)(ze,{visuals:n,setVisuals:s,threeDim:o})})]}),(0,l.jsxs)(B.Qd,{children:[(0,l.jsx)(B.KF,{children:(0,l.jsxs)(q.k,{justifyContent:"space-between",w:"100%",children:[(0,l.jsx)(Q.x,{children:"Labels"}),(0,l.jsx)(B.XE,{marginRight:2})]})}),(0,l.jsx)(B.Hk,{children:(0,l.jsx)(Te,{visuals:n,setVisuals:s})})]}),(0,l.jsxs)(B.Qd,{children:[(0,l.jsx)(B.KF,{children:(0,l.jsxs)(q.k,{justifyContent:"space-between",w:"100%",children:[(0,l.jsx)(Q.x,{children:"Highlighting"}),(0,l.jsx)(B.XE,{marginRight:2})]})}),(0,l.jsx)(B.Hk,{children:(0,l.jsx)(ye,{visuals:n,setVisuals:s})})]}),(0,l.jsxs)(B.Qd,{children:[(0,l.jsx)(B.KF,{children:(0,l.jsxs)(q.k,{justifyContent:"space-between",w:"100%",children:[(0,l.jsx)(Q.x,{children:"Citations"}),(0,l.jsx)(B.XE,{marginRight:2})]})}),(0,l.jsx)(B.Hk,{children:(0,l.jsx)(He,{visuals:n,setVisuals:s})})]})]})]})};function We(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?We(Object(t),!0).forEach((function(n){(0,c.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):We(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Xe=function(e){var n=e.behavior,t=e.setBehavior,r=e.mouse,i=e.setMouse;return(0,l.jsxs)(_.gC,{spacing:2,justifyContent:"flex-start",divider:(0,l.jsx)(_.cX,{borderColor:"gray.500"}),align:"stretch",paddingLeft:7,color:"gray.800",children:[(0,l.jsxs)(q.k,{alignItems:"center",justifyContent:"space-between",children:[(0,l.jsxs)(q.k,{children:[(0,l.jsx)(Q.x,{children:"Expand Node"}),(0,l.jsx)(de,{infoText:"View only the node and its direct neighbors"})]}),(0,l.jsxs)(G.v2,{isLazy:!0,placement:"right",children:[(0,l.jsx)(G.j2,{as:V.z,rightIcon:(0,l.jsx)(X.v,{}),colorScheme:"",color:"black",children:(0,l.jsx)(Q.x,{children:r.local?r.local[0].toUpperCase()+r.local.slice(1):"Never"})}),(0,l.jsxs)(K.h,{children:[" ",(0,l.jsxs)(G.qy,{zIndex:"popover",bgColor:"gray.200",children:[(0,l.jsx)(G.sN,{onClick:function(){return i(Me(Me({},r),{},{local:""}))},children:"Never"}),(0,l.jsx)(G.sN,{onClick:function(){return i(Me(Me({},r),{},{local:"click"}))},children:"Click"}),(0,l.jsx)(G.sN,{onClick:function(){return i(Me(Me({},r),{},{local:"double"}))},children:"Double Click"}),(0,l.jsx)(G.sN,{onClick:function(){return i(Me(Me({},r),{},{local:"right"}))},children:"Right Click"})]})]})]})]}),(0,l.jsxs)(q.k,{alignItems:"center",justifyContent:"space-between",children:[(0,l.jsx)(Q.x,{children:"Open in Emacs"}),(0,l.jsxs)(G.v2,{isLazy:!0,placement:"right",children:[(0,l.jsx)(G.j2,{as:V.z,rightIcon:(0,l.jsx)(X.v,{}),colorScheme:"",color:"black",children:(0,l.jsx)(Q.x,{children:r.follow?r.follow[0].toUpperCase()+r.follow.slice(1):"Never"})}),(0,l.jsxs)(K.h,{children:[" ",(0,l.jsxs)(G.qy,{bgColor:"gray.200",zIndex:"popover",children:[(0,l.jsx)(G.sN,{onClick:function(){return i(Me(Me({},r),{},{follow:""}))},children:"Never"}),(0,l.jsx)(G.sN,{onClick:function(){return i(Me(Me({},r),{},{follow:"click"}))},children:"Click"}),(0,l.jsx)(G.sN,{onClick:function(){return i(Me(Me({},r),{},{follow:"double"}))},children:"Double Click"}),(0,l.jsx)(G.sN,{onClick:function(){return i(Me(Me({},r),{},{follow:"right"}))},children:"Right Click"})]})]})]})]}),(0,l.jsxs)(q.k,{alignItems:"center",justifyContent:"space-between",children:[(0,l.jsx)(Q.x,{children:"Follow Emacs by..."}),(0,l.jsxs)(G.v2,{isLazy:!0,placement:"right",children:[(0,l.jsx)(G.j2,{as:V.z,rightIcon:(0,l.jsx)(X.v,{}),colorScheme:"",color:"black",children:(0,l.jsx)(Q.x,{children:n.follow[0].toUpperCase()+n.follow.slice(1)})}),(0,l.jsxs)(K.h,{children:[" ",(0,l.jsxs)(G.qy,{bgColor:"gray.200",zIndex:"popover",children:[(0,l.jsx)(G.sN,{onClick:function(){return t(Me(Me({},n),{},{follow:"color"}))},children:"Just coloring the currently opened node"}),(0,l.jsx)(G.sN,{onClick:function(){return t(Me(Me({},n),{},{follow:"local"}))},children:"Opening the local graph"}),(0,l.jsx)(G.sN,{onClick:function(){return t(Me(Me({},n),{},{follow:"zoom"}))},children:"Zooming to the current node"})]})]})]})]}),(0,l.jsxs)(q.k,{alignItems:"center",justifyContent:"space-between",children:[(0,l.jsxs)(q.k,{children:[(0,l.jsx)(Q.x,{children:"Local graph"}),(0,l.jsx)(de,{infoText:"When in local mode and clicking a new node, should I add that node's local graph or open the new one?"})]}),(0,l.jsxs)(G.v2,{isLazy:!0,placement:"right",children:[(0,l.jsx)(G.j2,{as:V.z,rightIcon:(0,l.jsx)(X.v,{}),colorScheme:"",color:"black",children:(0,l.jsx)(Q.x,{children:"add"===n.localSame?"Add":"Replace"})}),(0,l.jsxs)(K.h,{children:[" ",(0,l.jsxs)(G.qy,{bgColor:"gray.200",zIndex:"popover",children:[(0,l.jsx)(G.sN,{onClick:function(){return t(Me(Me({},n),{},{localSame:"replace"}))},children:"Open that nodes graph"}),(0,l.jsx)(G.sN,{onClick:function(){return t(Me(Me({},n),{},{localSame:"add"}))},children:"Add node to local graph"})]})]})]})]}),(0,l.jsx)(fe,{label:"Zoom speed",value:n.zoomSpeed,min:0,max:4e3,step:100,onChange:function(e){return t(Me(Me({},n),{},{zoomSpeed:e}))}}),(0,l.jsx)(fe,{label:"Zoom padding",value:n.zoomPadding,min:0,max:400,step:1,onChange:function(e){return t(Me(Me({},n),{},{zoomPadding:e}))},infoText:"How much to zoom out to accomodate all nodes when changing the view."})]})};function _e(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 qe(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?_e(Object(t),!0).forEach((function(n){(0,c.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):_e(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Qe=function(e){var n=e.physics,t=e.setPhysics,r=e.threeDim,i=e.setThreeDim,o=e.filter,s=e.setFilter,c=e.visuals,d=e.setVisuals,h=e.mouse,f=e.setMouse,p=e.behavior,x=e.setBehavior,j=e.tags,b=e.tagColors,m=e.setTagColors,y=g("showTweaks",!1),C=(0,a.Z)(y,2),k=C[0],O=C[1],w=(0,u.useContext)(ce.N),S=w.highlightColor,P=w.setHighlightColor;return k?(0,l.jsxs)(v.xu,{bg:"alt.100",w:"xs",marginTop:10,marginLeft:10,borderRadius:"xl",paddingBottom:5,zIndex:300,position:"relative",boxShadow:"xl",maxH:.92*globalThis.innerHeight,marginBottom:10,children:[(0,l.jsxs)(v.xu,{display:"flex",justifyContent:"space-between",alignItems:"center",paddingRight:2,paddingTop:1,children:[(0,l.jsx)(A.u,{label:"2D",children:(0,l.jsx)(V.z,{onClick:function(){return i(!r)},variant:"ghost",zIndex:"overlay",children:r?"3D":"2D"})}),(0,l.jsxs)(v.xu,{display:"flex",alignItems:"center",children:[(0,l.jsx)(A.u,{label:"Reset settings to defaults",children:(0,l.jsx)(H.h,{"aria-label":"Reset Defaults",icon:(0,l.jsx)(R.A,{}),onClick:function(){d(D),s(I),f(z),t(L),x(N)},variant:"none",size:"sm"})}),(0,l.jsx)(H.h,{size:"sm",icon:(0,l.jsx)(F.T,{}),"aria-label":"Close Tweak Panel",variant:"ghost",onClick:function(){return O(!1)}})]})]}),(0,l.jsx)(M.ZP,{autoHeight:!0,autoHeightMax:.85*globalThis.innerHeight,autoHide:!0,renderThumbVertical:function(e){var n=e.style,t=(0,Z.Z)(e,["style"]);return(0,l.jsx)(v.xu,qe(qe({},t),{},{style:qe(qe({},n),{},{borderRadius:10}),bg:S}))},children:(0,l.jsxs)(B.UQ,{allowMultiple:!0,allowToggle:!0,color:"black",children:[(0,l.jsxs)(B.Qd,{children:[(0,l.jsxs)(B.KF,{children:[(0,l.jsx)(B.XE,{marginRight:2}),(0,l.jsx)(W.X,{size:"sm",children:"Filter"})]}),(0,l.jsx)(B.Hk,{children:(0,l.jsx)(se,{filter:o,setFilter:s,tagColors:b,setTagColors:m,highlightColor:S,colorList:E,tags:j})})]}),(0,l.jsxs)(B.Qd,{children:[(0,l.jsx)(B.KF,{display:"flex",justifyContent:"space-between",children:(0,l.jsxs)(v.xu,{display:"flex",children:[(0,l.jsx)(B.XE,{marginRight:2}),(0,l.jsx)(W.X,{size:"sm",children:"Physics"})]})}),(0,l.jsx)(B.Hk,{children:(0,l.jsx)(je,{physics:n,setPhysics:t})})]}),(0,l.jsxs)(B.Qd,{children:[(0,l.jsxs)(B.KF,{children:[(0,l.jsx)(B.XE,{marginRight:2}),(0,l.jsx)(W.X,{size:"sm",children:"Visual"})]}),(0,l.jsx)(B.Hk,{children:(0,l.jsx)(Be,{visuals:c,setVisuals:d,highlightColor:S,setHighlightColor:P,threeDim:r})})]}),(0,l.jsxs)(B.Qd,{children:[(0,l.jsxs)(B.KF,{children:[(0,l.jsx)(B.XE,{marginRight:2}),(0,l.jsx)(W.X,{size:"sm",children:"Behavior"})]}),(0,l.jsx)(B.Hk,{children:(0,l.jsx)(Xe,{behavior:p,setBehavior:x,mouse:h,setMouse:f})})]})]})})]}):(0,l.jsx)(v.xu,{position:"absolute",zIndex:"overlay",marginTop:10,marginLeft:10,display:k?"none":"block",children:(0,l.jsx)(H.h,{variant:"ghost","aria-label":"Settings",icon:(0,l.jsx)(T.e,{}),onClick:function(){return O(!0)}})})},Ge=t(30410),Ke=t(94030),Ue=t(55830),Je=t(46617),Ye=t(50862),$e=t(68928),en=function(e){e.background;var n=e.node,t=(e.nodeType,e.coordinates),r=e.handleLocal,i=e.menuClose,o=e.scope,s=e.openNodeInEmacs,c=e.deleteNodeInEmacs,a=e.createNodeInEmacs,d=(0,m.q)(),h=d.isOpen,g=d.onOpen,f=d.onClose;(0,u.useRef)();return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(v.xu,{position:"absolute",zIndex:"overlay",left:t[0]+10,top:t[1]-10,padding:5,children:(0,l.jsx)(G.v2,{closeOnBlur:!1,defaultIsOpen:!0,onClose:function(){return i()},children:(0,l.jsxs)(G.qy,{zIndex:"overlay",bgColor:"alt.100",borderColor:"gray.500",maxWidth:"xs",children:[n&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(W.X,{size:"sm",isTruncated:!0,px:3,py:1,children:n.title}),(0,l.jsx)(G.R,{borderColor:"gray.500"})]}),0!==o.nodeIds.length&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(G.sN,{onClick:function(){return r(n,"add")},icon:(0,l.jsx)(Ke.I,{}),children:"Expand local graph at node"}),(0,l.jsx)(G.sN,{onClick:function(){return r(n,"replace")},icon:(0,l.jsx)(Ue.O,{}),children:"Open local graph for this node"})]}),null!==n&&void 0!==n&&n.properties.FILELESS?(0,l.jsx)(G.sN,{icon:(0,l.jsx)(Ye.d,{}),onClick:function(){return a(n)},children:"Create node"}):(0,l.jsx)(G.sN,{icon:(0,l.jsx)(Je.d,{}),onClick:function(){return s(n)},children:"Open in Emacs"}),(null===n||void 0===n?void 0:n.properties.ROAM_REFS)&&(0,l.jsx)(G.sN,{icon:(0,l.jsx)($e.h,{}),children:"Open in Zotero"}),0===o.nodeIds.length&&(0,l.jsx)(G.sN,{icon:(0,l.jsx)(Ue.O,{}),onClick:function(){return r(n,"replace")},children:"Open local graph"}),0===(null===n||void 0===n?void 0:n.level)&&(0,l.jsx)(G.sN,{closeOnSelect:!1,icon:(0,l.jsx)(ne.p,{color:"red.500"}),color:"red.500",onClick:g,children:"Permenantly delete note"})]})})}),(0,l.jsxs)(Ge.u_,{isCentered:!0,isOpen:h,onClose:f,children:[(0,l.jsx)(Ge.ZA,{}),(0,l.jsxs)(Ge.hz,{zIndex:"popover",children:[(0,l.jsx)(Ge.xB,{children:"Delete node?"}),(0,l.jsx)(Ge.ol,{}),(0,l.jsx)(Ge.fe,{children:(0,l.jsxs)(_.gC,{spacing:4,display:"flex",alignItems:"flex-start",children:[(0,l.jsx)(Q.x,{children:"This will permanently delete your note:"}),(0,l.jsx)(Q.x,{fontWeight:"bold",children:null===n||void 0===n?void 0:n.title}),0!==(null===n||void 0===n?void 0:n.level)&&(0,l.jsx)(Q.x,{children:"This will only delete the from this heading until but not including the next node. Your parent file and all other nodes will not be deleted."}),(0,l.jsx)(Q.x,{children:"Are you sure you want to do continue?"})]})}),(0,l.jsxs)(Ge.mz,{children:[(0,l.jsx)(V.z,{mr:3,onClick:function(){console.log("closing"),f(),i()},children:"Cancel"}),(0,l.jsx)(V.z,{variant:"link",colorScheme:"red",ml:3,onClick:function(){console.log("aaaaa"),c(n),f(),i()},children:"Delete node"})]})]})]})]})},nn=t(31122),tn=t(22663),rn=t.n(tn),on=t(22003);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 sn(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,c.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}var cn=t.e(4).then(t.bind(t,57004)),an=t.g.window?t(61957).f$:null,un=t.g.window?t(61957).s6:null;function dn(){var e=(0,u.useState)(!1),n=e[0],t=e[1];return(0,u.useEffect)((function(){t(!0)}),[]),n?(0,l.jsx)(hn,{}):null}function hn(){var e=g("3d",!1),n=(0,a.Z)(e,2),t=n[0],r=n[1],i=g("tagCols",{}),o=(0,a.Z)(i,2),d=o[0],h=o[1],f=(0,u.useState)({nodeIds:[]}),p=f[0],x=f[1],j=g("physics",L),b=(0,a.Z)(j,2),m=b[0],y=b[1],C=g("filter",I),k=(0,a.Z)(C,2),O=k[0],w=k[1],S=g("visuals",D),P=(0,a.Z)(S,2),E=P[0],Z=P[1],T=(0,u.useState)(null),R=T[0],F=T[1],H=(0,u.useState)(null),A=H[0],V=H[1],B=g("behavior",N),W=(0,a.Z)(B,2),M=W[0],X=W[1],_=g("mouse",z),q=(0,a.Z)(_,2),Q=q[0],G=q[1],K=(0,u.useRef)({}),U=(0,u.useRef)({}),J=(0,u.useRef)([]),Y=(0,u.useRef)(null),$=(0,u.useRef)({}),ee=(0,u.useRef)({nodes:[],links:[]});(0,u.useEffect)((function(){R&&(ee.current=R)}),[R]);var ne=(0,u.useContext)(ce.N).setEmacsTheme,te=(0,u.useRef)({nodeIds:[]}),re=(0,u.useRef)(N);re.current=M;var ie=(0,u.useRef)(null);te.current=p;var oe=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 o=Y.current,l=te.current,c=re.current,a=null!==(t=U.current[n])&&void 0!==t?t:[],u=Object.fromEntries([n].concat((0,s.Z)(a.flatMap((function(e){return[e.source,e.target]})))).map((function(e){return[e,{}]})));if("zoom"===e)return l.nodeIds.length&&x({nodeIds:[]}),void setTimeout((function(){return o.zoomToFit(r,i,(function(e){return u[e.id]}))}),50);if(!l.nodeIds.length)return x({nodeIds:[n]}),void setTimeout((function(){o.centerAt(0,0,10),o.zoomToFit(1,i)}),50);if("add"!==c.localSame)return x({nodeIds:[n]}),void setTimeout((function(){o.centerAt(0,0,10),o.zoomToFit(1,i)}),50);if(!l.nodeIds.includes(n)||!l.nodeIds.some((function(e){return u[e]})))return x({nodeIds:[n]}),void setTimeout((function(){o.centerAt(0,0,10),o.zoomToFit(1,i)}),50);x((function(e){return sn(sn({},e),{},{nodeIds:[].concat((0,s.Z)(e.nodeIds),[n])})})),setTimeout((function(){o.centerAt(0,0,10),o.zoomToFit(1,i)}),50)}};return(0,u.useEffect)((function(){ie.current=new on.Z("ws://localhost:35903"),ie.current.addEventListener("open",(function(){console.log("Connection with Emacs established")})),ie.current.addEventListener("message",(function(e){var n=re.current,t=JSON.parse(e.data);switch(t.type){case"graphdata":return function(e){var n,t,r,i=K.current;J.current=null!==(n=e.tags)&&void 0!==n?n:[];var o=null!==(t=e.nodes)&&void 0!==t?t:[],l=null!==(r=e.links)&&void 0!==r?r:[],u=o.reduce((function(e,n){var t;return sn(sn({},e),{},(0,c.Z)({},n.file,[].concat((0,s.Z)(null!==(t=e[n.file])&&void 0!==t?t:[]),[n])))}),{}),d=Object.keys(u).flatMap((function(e){var n,t=null!==(n=u[e])&&void 0!==n?n:[],r=t.find((function(e){return 0===e.level})),i=t.filter((function(e){return 0!==e.level}));return r?i.map((function(e){var n=t.filter((function(n){var t;return!(n.level>=e.level||n.pos>=e.pos||null===(t=e.olp)||void 0===t||!t.includes(n.title))})).reduce((function(e,n){return n.level>e.level&&(e=n),e}),r);return{source:e.id,target:(null===n||void 0===n?void 0:n.id)||r.id,type:"heading"}})):[]})),h=Object.keys(u).flatMap((function(e){var n,t=null!==(n=u[e])&&void 0!==n?n:[],r=t.find((function(e){return 0===e.level})),i=t.filter((function(e){return 0!==e.level}));return r?i.map((function(e){return{source:e.id,target:r.id,type:"parent"}})):[]}));K.current=Object.fromEntries(o.map((function(e){return[e.id,e]})));var g=[].concat((0,s.Z)(l),(0,s.Z)(d),(0,s.Z)(h)),f=[],p=g.map((function(e){var n=e.source,t=e.target;return K.current[n]?K.current[t]?e:(f.push({id:t,tags:["bad"],properties:{FILELESS:"yes",bad:"yes"},file:"",title:t,level:0,pos:0,olp:null}),sn(sn({},e),{},{type:"bad"})):(f.push({id:n,tags:["bad"],properties:{FILELESS:"yes",bad:"yes"},file:"",title:n,level:0,pos:0,olp:null}),sn(sn({},e),{},{type:"bad"}))}));K.current=sn(sn({},K.current),Object.fromEntries(f.map((function(e){return[e.id,e]})))),U.current=p.reduce((function(e,n){var t,r,i;return sn(sn({},e),{},(i={},(0,c.Z)(i,n.source,[].concat((0,s.Z)(null!==(t=e[n.source])&&void 0!==t?t:[]),[n])),(0,c.Z)(i,n.target,[].concat((0,s.Z)(null!==(r=e[n.target])&&void 0!==r?r:[]),[n])),i))}),{});var x={nodes:[].concat((0,s.Z)(o),f),links:p},j=ee.current;if(0===j.nodes.length){var b=JSON.parse(JSON.stringify(x));return ee.current=b,void F(b)}var v=[].concat((0,s.Z)(j.nodes.flatMap((function(e){var n,t=null!==(n=K.current[null===e||void 0===e?void 0:e.id])&&void 0!==n&&n;return t?[sn(sn({},e),t)]:[]}))),(0,s.Z)(Object.keys(K.current).filter((function(e){return!i[e]})).map((function(e){return K.current[e]})))),m=v.reduce((function(e,n,t){var r=null===n||void 0===n?void 0:n.id;return sn(sn({},e),{},(0,c.Z)({},r,t))}),{}),y=p.map((function(e){var n=pn(e),t=(0,a.Z)(n,2),r=t[0],i=t[1];return sn(sn({},e),{},{source:v[m[r]],target:v[m[i]]})}));F({nodes:v,links:y})}(t.data);case"variables":return void($.current=t.data);case"theme":return ne(["custom",t.data]);case"command":switch(t.data.commandName){case"local":var r=M.zoomSpeed,i=M.zoomPadding;oe("local",t.data.id,r,i),V(t.data.id);break;case"zoom":var o,l,u=(null===t||void 0===t||null===(o=t.data)||void 0===o?void 0:o.speed)||n.zoomSpeed,d=(null===t||void 0===t||null===(l=t.data)||void 0===l?void 0:l.padding)||n.zoomPadding;oe("zoom",t.data.id,u,d),V(t.data.id);break;case"follow":oe(n.follow,t.data.id,n.zoomSpeed,n.zoomPadding),V(t.data.id);break;default:return console.error("unknown message type",t.type)}}}))}),[]),(0,u.useEffect)((function(){var e=Y.current;!e||p.nodeIds.length>1||(p.nodeIds.length||!m.gravityOn?setTimeout((function(){e.zoomToFit(5,200)}),50):e.zoomToFit())}),[p.nodeIds]),R?(0,l.jsxs)(v.xu,{display:"flex",alignItems:"flex-start",flexDirection:"row",height:"100%",overflow:"hidden",children:[(0,l.jsx)(Qe,sn(sn({},{physics:m,setPhysics:y,threeDim:t,setThreeDim:r,filter:O,setFilter:w,visuals:E,setVisuals:Z,mouse:Q,setMouse:G,behavior:M,setBehavior:X,tagColors:d,setTagColors:h}),{},{tags:J.current})),(0,l.jsx)(v.xu,{position:"absolute",alignItems:"top",overflow:"hidden",children:(0,l.jsx)(gn,sn({ref:Y,nodeById:K.current,linksByNodeId:U.current,webSocket:ie.current,variables:$.current},{physics:m,graphData:R,threeDim:t,emacsNodeId:A,filter:O,visuals:E,behavior:M,mouse:Q,scope:p,setScope:x,tagColors:d}))})]}):null}var gn=(0,u.forwardRef)((function(e,n){var t=e.physics,r=e.graphData,d=e.threeDim,h=e.linksByNodeId,g=e.filter,f=e.emacsNodeId,y=e.nodeById,C=e.visuals,k=e.behavior,O=e.mouse,w=e.scope,S=e.setScope,L=e.webSocket,I=e.tagColors,D=e.variables,N=D.dailyDir,z=(D.roamDir,(0,x.iP)()),Z=(0,a.Z)(z,2),T=Z[0],R=Z[1],F=(0,u.useState)(null),H=F[0],A=F[1],V=(0,u.useState)(null),B=V[0],W=V[1],M=(0,u.useState)([0,0]),X=M[0],_=M[1],q=(0,b.useTheme)(),Q=(0,u.useContext)(ce.N).emacsTheme,G=function(e,n){"replace"!==n?w.nodeIds.includes(e.id)||S((function(n){return sn(sn({},n),{},{nodeIds:[].concat((0,s.Z)(n.nodeIds),[e.id])})})):S({nodeIds:[e.id]})},K=function(e,n){L.send(JSON.stringify({command:e,data:n}))},U=function(e){K("open",{id:e.id})},J=(0,m.q)(),Y=function(e,n,t){switch(e){case O.local:G(n,k.localSame);break;case O.follow:U(n);break;case O.context:!function(e,n){_([n.pageX,n.pageY]),W(e),J.onOpen()}(n,t)}},$=(0,u.useRef)(null);(0,u.useEffect)((function(){f&&A(y[f])}),[f]);var ee=(0,u.useRef)({}),ne=(0,u.useRef)({}),te=(0,u.useMemo)((function(){var e;ne.current={};var n=null===r||void 0===r||null===(e=r.nodes)||void 0===e?void 0:e.filter((function(e){var n,t,r=e;return g.tagsBlacklist.length&&g.tagsBlacklist.some((function(e){var n;return(null===r||void 0===r||null===(n=r.tags)||void 0===n?void 0:n.indexOf(e))>-1}))||g.tagsWhitelist.length>0&&!g.tagsWhitelist.some((function(e){var n;return(null===r||void 0===r||null===(n=r.tags)||void 0===n?void 0:n.indexOf(e))>-1}))||g.filelessCites&&null!==r&&void 0!==r&&null!==(n=r.properties)&&void 0!==n&&n.FILELESS||g.bad&&r.properties.bad?(ne.current=sn(sn({},ne.current),{},(0,c.Z)({},r.id,r)),!1):!(g.dailies&&N&&null!==(t=r.file)&&void 0!==t&&t.includes(N))||(ne.current=sn(sn({},ne.current),{},(0,c.Z)({},r.id,r)),!1)})).filter((function(e){var n,t=(null!==(n=h[null===e||void 0===e?void 0:e.id])&&void 0!==n?n:[]).filter((function(e){return!ne.current[e.source]&&!ne.current[e.target]}));return!g.orphans||(g.parent?0!==t.length:0!==t.length&&t.some((function(e){return!["parent","heading"].includes(e.type)})))})),t=n.map((function(e){return e.id})),i=r.links.filter((function(e){var n=pn(e),r=(0,a.Z)(n,2),i=r[0],o=r[1];if(!t.includes(i)||!t.includes(o))return!1;var l=e;return g.parent?"heading"===g.parent?"parent"!==l.type:"heading"!==l.type:!["parent","heading"].includes(l.type)}));return ee.current=i.reduce((function(e,n){var t,r,i,o=n,l=pn(o),u=(0,a.Z)(l,2),d=u[0],h=u[1];return sn(sn({},e),{},(i={},(0,c.Z)(i,d,[].concat((0,s.Z)(null!==(t=e[d])&&void 0!==t?t:[]),[o])),(0,c.Z)(i,h,[].concat((0,s.Z)(null!==(r=e[h])&&void 0!==r?r:[]),[o])),i))}),{}),{nodes:n,links:i}}),[g,r]),re=(0,u.useState)({nodes:[],links:[]}),ie=re[0],oe=re[1];(0,u.useEffect)((function(){if(w.nodeIds.length){var e=w.nodeIds.length>1?ie.nodes:[],n=e.map((function(e){return e.id})),t=function(e,n){var t=[e[0]],r=[],i=[e[0]];return Array.from({length:n},(function(){t.forEach((function(e){var n;(null!==(n=ee.current[e])&&void 0!==n?n:[]).forEach((function(e){var n=pn(e),t=(0,a.Z)(n,2),o=t[0],l=t[1];i.includes(o)?i.includes(l)||r.push(l):r.push(o)}))})),t=r,r.forEach((function(e){return e&&i.push(e)})),r=[]})),i}(w.nodeIds,1),r=te.nodes.filter((function(r){var i;return e.length?!n.includes(r.id)&&(null!==(i=ee.current[r.id])&&void 0!==i?i:[]).some((function(e){var n=pn(e),t=(0,a.Z)(n,2),r=t[0],i=t[1];return w.nodeIds.includes(r)||w.nodeIds.includes(i)})):t.includes(r.id)})).map((function(e){return sn(sn({},e),{},{x:0,y:0,vy:0,vx:0})})),i=[].concat((0,s.Z)(e),(0,s.Z)(r)),o=i.map((function(e){return e.id})),l=w.nodeIds.length>1?ie.links:[],c=te.links.filter((function(e){var t=pn(e),r=(0,a.Z)(t,2),i=r[0],s=r[1];return!(l.length&&n.includes(s)&&n.includes(i))&&(o.includes(i)&&o.includes(s))})).map((function(e){var n=pn(e),t=(0,a.Z)(n,2);return{source:t[0],target:t[1]}})),u=[].concat((0,s.Z)(l),(0,s.Z)(c));oe({nodes:i,links:u})}}),[g,w,JSON.stringify(r),te.links,te.nodes]),$.current=H;var le=(0,u.useMemo)((function(){if(!$.current)return{};var e=ee.current[$.current.id];return e?Object.fromEntries([$.current.id].concat((0,s.Z)(e.flatMap((function(e){return[e.source,e.target]})))).map((function(e){return[e,{}]}))):{}}),[$.current,ee.current]);(0,u.useEffect)((function(){(0,o.Z)(i().mark((function e(){var r,o;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.current,e.next=3,cn;case 3:o=e.sent,!t.gravityOn||w.nodeIds.length&&!t.gravityLocal?(r.d3Force("x",null),r.d3Force("y",null),d&&r.d3Force("z",null)):(r.d3Force("x",o.forceX().strength(t.gravity)),r.d3Force("y",o.forceY().strength(t.gravity)),d&&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,d,w]),(0,u.useEffect)((function(){var e;null===(e=n.current)||void 0===e||e.d3ReheatSimulation()}),[t,w.nodeIds.length]);var se=(0,u.useRef)(0),ae=(0,u.useState)(1),ue=ae[0],de=ae[1],he=(0,j._7)((function(e){return de(e)}),{duration:C.animationSpeed,algorithm:P[C.algorithmName]}),ge=(0,a.Z)(he,2),fe=ge[0],pe=ge[1],xe=(0,j._7)((function(e){return de(Math.min(ue,-1*(e-1)))}),{duration:C.animationSpeed,algorithm:P[C.algorithmName]}),je=(0,a.Z)(xe,2),be=je[0],ve=je[1],me=(0,u.useRef)(null);(0,u.useEffect)((function(){if(H&&(me.current=H),!C.highlightAnim)return de(H?1:0);H?fe():(pe(),ue>.5?be():de(0))}),[H]);var ye=function(e){if(q)return e.split(".").reduce((function(e,n){return e[n]}),q.colors)},Ce=(0,u.useMemo)((function(){return Object.fromEntries(E.map((function(e){var n=ye(e),t=E.map((function(e){return[e,p.Z(n,ye(e))]}));return[e,Object.fromEntries(t)]})))}),[Q]),ke=(0,u.useMemo)((function(){var e,n,t,r=null!==(e=ee.current[null===(n=me.current)||void 0===n?void 0:n.id])&&void 0!==e?e:[];return Object.fromEntries([null===(t=me.current)||void 0===t?void 0:t.id].concat((0,s.Z)(r.flatMap((function(e){return pn(e)})))).map((function(e){return[e,{}]})))}),[JSON.stringify(H),me.current,ee.current]),Oe=function(e){var n,t,r,i,o,l=null!==(n=null===(t=ee.current[e])||void 0===t?void 0:t.length)&&void 0!==n?n:0;return C.nodeColorScheme[(r=l,i=0,o=C.nodeColorScheme.length-1,Math.min(Math.max(r,i),o))]},we=function(e,n){return ee.current[e].length>ee.current[n].length?Oe(e):Oe(n)},Se=(0,u.useMemo)((function(){return ye(C.labelTextColor)}),[C.labelTextColor,Q]),Pe=(0,u.useMemo)((function(){return ye(C.labelBackgroundColor)}),[C.labelBackgroundColor,Q]),Le=function(e){var n,t=null!==(n=ee.current[e.id])&&void 0!==n?n:[],r=t.length?t.filter((function(e){return"parent"===e.type})).length:0,i=3+t.length*C.nodeSizeLinks-(g.parent?0:r);return 1===C.highlightNodeSize?i:i*(le[e.id]||ke[e.id]?1+ue*(C.highlightNodeSize-1):1)},Ie=(0,u.useState)(!1),De=Ie[0],Ne=Ie[1],ze=(0,u.useState)(1),Ee=ze[0],Ze=ze[1],Te={graphData:w.nodeIds.length?ie:te,width:T,height:R,backgroundColor:q.colors.gray[C.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 Ze(n)},nodeLabel:function(e){return e.title},nodeColor:function(e){return function(e){var n=le[e.id]||ke[e.id];if(C.emacsNodeColor&&e.id===f)return ye(C.emacsNodeColor);if(I&&e.tags.some((function(e){return I[e]}))){var t=I[e.tags.filter((function(e){return I[e]}))[0]];return Ce[t][C.backgroundColor](C.highlightFade*ue)}return C.citeNodeColor&&e.properties.ROAM_REFS&&e.properties.FILELESS?n?ye(C.citeNodeColor):Ce[C.citeNodeColor][C.backgroundColor](C.highlightFade*ue):C.refNodeColor&&e.properties.ROAM_REFS?n?ye(C.refNodeColor):Ce[C.refNodeColor][C.backgroundColor](C.highlightFade*ue):n?C.nodeHighlight?Ce[Oe(e.id)][C.nodeHighlight](ue):ye(Oe(e.id)):Ce[Oe(e.id)][C.backgroundColor](C.highlightFade*ue)}(e)},nodeRelSize:C.nodeRel,nodeVal:function(e){return Le(e)/Math.pow(Ee,C.nodeZoomSize)},nodeCanvasObject:function(e,n,t){if(e&&!De&&C.labels){var r=ke[e.id];if(!(t<=C.labelScale||1===C.labels)||le[e.id]||r){var i=e.title,o=i.substring(0,C.labelLength),l=C.labelFontSize/(.75*Math.min(Math.max(.5,t),3)),c=[1.1*n.measureText(o).width,l].map((function(e){return e+.5*l})),a=Math.min(3*(t-C.labelScale)/C.labelScale,1),u=function(){return 1===C.labels||t<=C.labelScale?ue:le[e.id]||ke[e.id]?Math.max(a,ue):1*a*(-1*(C.highlightFade*ue-1))},d=8*Math.cbrt(Le(e)*C.nodeRel);if(C.labelBackgroundColor&&C.labelBackgroundOpacity){var h=u()*C.labelBackgroundOpacity,g=xn(Pe,h);n.fillStyle=g,n.fillRect.apply(n,[e.x-c[0]/2,e.y-c[1]/2+d].concat((0,s.Z)(c)))}var f=u();n.textAlign="center",n.textBaseline="middle";var p=xn(Se,f);n.fillStyle=p,n.font="".concat(l,"px Sans-Serif");var x=rn()(o,{width:C.labelWordWrap}).split("\n");(i.length>C.labelLength?[].concat((0,s.Z)(x.slice(0,-1)),["".concat(x.slice(-1),"...")]):x).forEach((function(t,r){n.fillText(t,e.x,e.y+d+C.labelLineSpace*l*r)}))}}},nodeCanvasObjectMode:function(){return"after"},linkDirectionalParticles:C.particles?C.particlesNumber:void 0,linkDirectionalArrowLength:C.arrows?C.arrowsLength:void 0,linkDirectionalArrowRelPos:C.arrowsPos,linkDirectionalArrowColor:C.arrowsColor?function(){return ye(C.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,i=fn(e,$.current),o=fn(e,me.current),l=i||o,s=e;return C.refLinkColor&&"ref"===s.type?l&&(C.refLinkHighlightColor||C.linkHighlight)?Ce[C.refLinkColor][C.refLinkHighlightColor||C.linkHighlight](ue):Ce[C.refLinkColor][C.backgroundColor](C.highlightFade*ue):C.citeLinkColor&&null!==(n=s.type)&&void 0!==n&&n.includes("cite")?l&&(C.citeLinkHighlightColor||C.linkHighlight)?Ce[C.citeLinkColor][C.citeLinkHighlightColor||C.linkHighlight](ue):Ce[C.citeLinkColor][C.backgroundColor](C.highlightFade*ue):function(e,n,t){if(!C.linkHighlight&&!C.linkColorScheme&&!t){var r=we(e,n);return ye(r)}if(!t&&!C.linkColorScheme){var i=we(e,n);return Ce[i][C.backgroundColor](C.highlightFade*ue)}if(!t)return Ce[C.linkColorScheme][C.backgroundColor](C.highlightFade*ue);if(!C.linkHighlight&&!C.linkColorScheme){var o=we(e,n);return ye(o)}return C.linkHighlight?C.linkColorScheme?Ce[C.linkColorScheme][C.linkHighlight](ue):Ce[we(e,n)][C.linkHighlight](ue):ye(C.linkColorScheme)}(t,r,l)},linkWidth:function(e){if(1===C.highlightLinkSize)return C.linkWidth;var n=fn(e,$.current),t=fn(e,me.current);return n||t?C.linkWidth*(1+ue*(C.highlightLinkSize-1)):C.linkWidth},linkDirectionalParticleWidth:C.particlesWidth,d3AlphaDecay:t.alphaDecay,d3AlphaMin:t.alphaMin,d3VelocityDecay:t.velocityDecay,onNodeClick:function(e,n){var t=e;J.onClose();var r=n.timeStamp-se.current<200;if(se.current=n.timeStamp,r)return Y("double",t,n);var i=se.current;return setTimeout((function(){if(se.current===i)return Y("click",t,n)}),200)},onBackgroundClick:function(){J.onClose(),A(null),0!==w.nodeIds.length&&S((function(e){return sn(sn({},e),{},{nodeIds:[]})}))},onNodeHover:function(e){C.highlight&&(H||(ve(),de(0)),A(e))},onNodeRightClick:function(e,n){Y("right",e,n)},onNodeDrag:function(e){J.onClose(),A(e),Ne(!0)},onNodeDragEnd:function(){A(null),Ne(!1)}};return(0,l.jsxs)(v.xu,{overflow:"hidden",children:[J.isOpen&&(0,l.jsx)(en,{scope:w,node:B,nodeType:null===B||void 0===B?void 0:B.id,background:!1,coordinates:X,handleLocal:G,menuClose:J.onClose.bind(J),openNodeInEmacs:U,deleteNodeInEmacs:function(e){0===e.level&&K("delete",{id:e.id,file:e.file})},createNodeInEmacs:function(e){K("create",{id:e.id,title:e.title,ref:e.properties.ROAM_REFS})}}),d?(0,l.jsx)(un,sn(sn({ref:n},Te),{},{nodeThreeObjectExtend:!0,backgroundColor:q.colors.white,nodeOpacity:C.nodeOpacity,nodeResolution:C.nodeResolution,linkOpacity:C.linkOpacity,nodeThreeObject:function(e){if(C.labels&&(!(C.labels<3)||le[e.id])){var n=new nn.Z(e.title.substring(0,40));return n.color=ye(C.labelTextColor),n.backgroundColor=ye(C.labelBackgroundColor),n.padding=2,n.textHeight=8,n}}})):(0,l.jsx)(an,sn(sn({ref:n},Te),{},{linkLineDash:function(e){var n,t=e;return C.citeDashes&&null!==(n=t.type)&&void 0!==n&&n.includes("cite")?[C.citeDashLength,C.citeGapLength]:C.refDashes&&"ref"==t.type?[C.refDashLength,C.refGapLength]:null}}))]})}));function fn(e,n){var t,r;return(null===(t=e.source)||void 0===t?void 0:t.id)===(null===n||void 0===n?void 0:n.id)||(null===(r=e.target)||void 0===r?void 0:r.id)===(null===n||void 0===n?void 0:n.id)}function pn(e){return["object"===typeof e.source?e.source.id:e.source,"object"===typeof e.target?e.target.id:e.target]}function xn(e,n){return"rgba("+(e=e.replace("#","")).match(new RegExp("(.{"+e.length/3+"})","g")).map((function(n){return parseInt(e.length%2?n+n:n,16)})).concat(isFinite(n)?n:1).join(",")+")"}},45301:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return t(82993)}])}},function(e){e.O(0,[774,737,446,476,888,179],(function(){return n=45301,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
\ No newline at end of file diff --git a/out/_next/static/g6o_7G2hfKOrhwSuyMf3T/_buildManifest.js b/out/_next/static/jxIkEN4CD1mArgyfzungE/_buildManifest.js index ae468c4..df8a9c3 100644 --- a/out/_next/static/g6o_7G2hfKOrhwSuyMf3T/_buildManifest.js +++ b/out/_next/static/jxIkEN4CD1mArgyfzungE/_buildManifest.js @@ -1 +1 @@ -self.__BUILD_MANIFEST={__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":["static/chunks/fb7d5399-0d6001c72a29ebec41eb.js","static/chunks/d25bd147-2c59edc357c0e2372258.js","static/chunks/476-a6ec73d8ce73332b9a2e.js","static/chunks/pages/index-c7cb584a2066ed076189.js"],"/_error":["static/chunks/pages/_error-4a5d36cf6de80ea8be7a.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-0d6001c72a29ebec41eb.js","static/chunks/d25bd147-2c59edc357c0e2372258.js","static/chunks/476-a6ec73d8ce73332b9a2e.js","static/chunks/pages/index-5445a2dc7c890c271b23.js"],"/_error":["static/chunks/pages/_error-4a5d36cf6de80ea8be7a.js"],sortedPages:["/","/_app","/_error"]},self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();
\ No newline at end of file diff --git a/out/_next/static/g6o_7G2hfKOrhwSuyMf3T/_ssgManifest.js b/out/_next/static/jxIkEN4CD1mArgyfzungE/_ssgManifest.js index 0511aa8..0511aa8 100644 --- a/out/_next/static/g6o_7G2hfKOrhwSuyMf3T/_ssgManifest.js +++ b/out/_next/static/jxIkEN4CD1mArgyfzungE/_ssgManifest.js diff --git a/out/index.html b/out/index.html index 7f012ea..5e194ac 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/331301db207a91d407e5.css" as="style"/><link rel="stylesheet" href="/_next/static/css/331301db207a91d407e5.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-e7a279300235e161e32a.js"></script><script src="/_next/static/chunks/webpack-9c7513cc478a82b87a1b.js" defer=""></script><script src="/_next/static/chunks/framework-2f612445bd50b211f15a.js" defer=""></script><script src="/_next/static/chunks/main-18e5535ffc85f4a7d113.js" defer=""></script><script src="/_next/static/chunks/pages/_app-e0282e738dca0f9e7c71.js" defer=""></script><script src="/_next/static/chunks/fb7d5399-0d6001c72a29ebec41eb.js" defer=""></script><script src="/_next/static/chunks/d25bd147-2c59edc357c0e2372258.js" defer=""></script><script src="/_next/static/chunks/476-a6ec73d8ce73332b9a2e.js" defer=""></script><script src="/_next/static/chunks/pages/index-c7cb584a2066ed076189.js" defer=""></script><script src="/_next/static/g6o_7G2hfKOrhwSuyMf3T/_buildManifest.js" defer=""></script><script src="/_next/static/g6o_7G2hfKOrhwSuyMf3T/_ssgManifest.js" defer=""></script></head><body><div id="__next"><style data-emotion="css-global 1n4e8ad">: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 1syi0wy">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;vertical-align:middle;}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":"g6o_7G2hfKOrhwSuyMf3T","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/331301db207a91d407e5.css" as="style"/><link rel="stylesheet" href="/_next/static/css/331301db207a91d407e5.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-e7a279300235e161e32a.js"></script><script src="/_next/static/chunks/webpack-9c7513cc478a82b87a1b.js" defer=""></script><script src="/_next/static/chunks/framework-2f612445bd50b211f15a.js" defer=""></script><script src="/_next/static/chunks/main-18e5535ffc85f4a7d113.js" defer=""></script><script src="/_next/static/chunks/pages/_app-e0282e738dca0f9e7c71.js" defer=""></script><script src="/_next/static/chunks/fb7d5399-0d6001c72a29ebec41eb.js" defer=""></script><script src="/_next/static/chunks/d25bd147-2c59edc357c0e2372258.js" defer=""></script><script src="/_next/static/chunks/476-a6ec73d8ce73332b9a2e.js" defer=""></script><script src="/_next/static/chunks/pages/index-5445a2dc7c890c271b23.js" defer=""></script><script src="/_next/static/jxIkEN4CD1mArgyfzungE/_buildManifest.js" defer=""></script><script src="/_next/static/jxIkEN4CD1mArgyfzungE/_ssgManifest.js" defer=""></script></head><body><div id="__next"><style data-emotion="css-global 1n4e8ad">: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 1syi0wy">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;vertical-align:middle;}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":"jxIkEN4CD1mArgyfzungE","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
\ No newline at end of file diff --git a/pages/index.tsx b/pages/index.tsx index a40f942..c180ad9 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -361,7 +361,6 @@ export function GraphPage() { return updateGraphData(message.data) case 'variables': variablesRef.current = message.data - console.log(message.data) return case 'theme': return setEmacsTheme(['custom', message.data]) @@ -626,7 +625,7 @@ export const Graph = forwardRef(function (props: GraphProps, graphRef: any) { hiddenNodeIdsRef.current = { ...hiddenNodeIdsRef.current, [node.id]: node } return false } - if (filter.filelessCites && node.properties.FILELESS) { + if (filter.filelessCites && node?.properties?.FILELESS) { hiddenNodeIdsRef.current = { ...hiddenNodeIdsRef.current, [node.id]: node } return false } @@ -635,7 +634,7 @@ export const Graph = forwardRef(function (props: GraphProps, graphRef: any) { return false } - if (filter.dailies && dailyDir?.length !== 0 && node.file.includes(dailyDir)) { + if (filter.dailies && dailyDir && node.file?.includes(dailyDir)) { hiddenNodeIdsRef.current = { ...hiddenNodeIdsRef.current, [node.id]: node } return false } |