export const CHAR_LIMIT = 100_00;

export const API_VERSION = "3.5.34";

export const COMPLETION_CHARS =
  "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ(=[%/{+#.,\\<+-|&*=$#@!";

export const MAX_RESULTS = 5;

export const TABNINE_LOGO = "⌬";

export const POLL_STATE_INTERVAL = 10_000;

export const TABNINE_LOGO_SVG = `<svg width="89" height="16" viewBox="0 0 126 25" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M20.7069 12.2L5.92672 20.6M20.7069 12.2L5.87341 3.83063M20.7069 12.2V6.6L10.8534 1L5.87341 3.83063M20.7069 12.2V17.8L10.8534 23.4L5.92672 20.6M5.92672 20.6L5.87341 3.83063M5.92672 20.6L1 17.8L1 6.6L5.87341 3.83063" stroke="url(#paint0_linear)" stroke-width="1.6" stroke-linejoin="round"/>
<path d="M37.4878 20.5382C40.4518 20.5382 42.4798 18.8482 42.4798 15.4682V15.1822H40.7898V15.4682C40.7898 17.8342 39.4638 18.9262 37.4878 18.9262C35.4858 18.9262 34.1858 17.8082 34.1858 15.4682V8.94223H41.7518V7.35624H34.1858V2.80623H32.4438V15.4682C32.4438 18.8482 34.4978 20.5382 37.4878 20.5382Z" fill="#100F11"/>
<path d="M50.7927 20.5382C53.2887 20.5382 55.4207 19.3162 56.3307 17.0282V20.2002H57.9427V13.8562C57.9427 9.80023 55.1087 7.01823 51.0527 7.01823C46.9967 7.01823 44.1367 9.85223 44.1367 13.8562C44.1367 17.9642 47.1787 20.5382 50.7927 20.5382ZM51.0527 18.9262C47.9847 18.9262 45.9047 16.7422 45.9047 13.7782C45.9047 10.8142 47.9847 8.63023 51.0527 8.63023C54.1207 8.63023 56.2007 10.8142 56.2007 13.7782C56.2007 16.7422 54.1207 18.9262 51.0527 18.9262Z" fill="#100F11"/>
<path d="M67.3645 20.5382C71.4465 20.5382 74.3065 17.6782 74.3065 13.7262C74.3065 9.77424 71.4205 7.01823 67.6505 7.01823C65.2065 7.01823 63.2045 8.16223 62.2425 10.1122V1.74023H60.5005V13.7002C60.5005 17.8342 63.3865 20.5382 67.3645 20.5382ZM67.3905 18.9262C64.2965 18.9262 62.2425 16.7422 62.2425 13.7782C62.2425 10.8142 64.2965 8.63023 67.3905 8.63023C70.4585 8.63023 72.5385 10.8142 72.5385 13.7782C72.5385 16.7422 70.4585 18.9262 67.3905 18.9262Z" fill="#100F11"/>
<path d="M76.3442 20.2002H78.0862V13.4922C78.0862 10.3202 79.9062 8.63023 82.6882 8.63023C85.4702 8.63023 87.2902 10.3202 87.2902 13.4922V20.2002H89.0322V13.4922C89.0322 9.22824 86.4842 7.01823 82.6882 7.01823C78.8922 7.01823 76.3442 9.22824 76.3442 13.4922V20.2002Z" fill="#100F11"/>
<path d="M92.9306 4.86023C93.6846 4.86023 94.2566 4.28823 94.2566 3.53423C94.2566 2.78023 93.6846 2.20823 92.9306 2.20823C92.1766 2.20823 91.6046 2.78023 91.6046 3.53423C91.6046 4.28823 92.1766 4.86023 92.9306 4.86023ZM92.0726 20.2002H93.8146V7.35624H92.0726V20.2002Z" fill="#100F11"/>
<path d="M96.8345 20.2002H98.5765V13.4922C98.5765 10.3202 100.396 8.63023 103.178 8.63023C105.96 8.63023 107.78 10.3202 107.78 13.4922V20.2002H109.522V13.4922C109.522 9.22824 106.974 7.01823 103.178 7.01823C99.3825 7.01823 96.8345 9.22824 96.8345 13.4922V20.2002Z" fill="#100F11"/>
<path d="M118.465 20.5382C121.455 20.5382 123.795 18.9782 124.783 16.6122H122.885C122.053 18.0942 120.493 18.9262 118.465 18.9262C115.579 18.9262 113.577 17.0282 113.343 14.3502H125.329V13.7782C125.329 9.87824 122.521 7.01823 118.465 7.01823C114.409 7.01823 111.549 9.87824 111.549 13.7782C111.549 17.6782 114.409 20.5382 118.465 20.5382ZM113.395 12.7902C113.785 10.2682 115.787 8.63023 118.465 8.63023C121.065 8.63023 123.093 10.1902 123.509 12.7902H113.395Z" fill="#100F11"/>
<defs>
<linearGradient id="paint0_linear" x1="22.4471" y1="19.984" x2="1.30248" y2="0.668868" gradientUnits="userSpaceOnUse">
<stop stop-color="#4BA1FC"/>
<stop offset="1" stop-color="#EC2AED"/>
</linearGradient>
</defs>
</svg>`;

export const TABNINE_LOGO_PRO_SVG = `<svg width="122" height="16" viewBox="0 0 160 21" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M110.382 17.484V17.509H110.407H111.919H111.944V17.484V12.532H116.35C118.003 12.532 119.207 12.058 119.998 11.2673C120.789 10.4766 121.163 9.3724 121.163 8.118C121.163 6.85323 120.794 5.75414 120.006 4.97126C119.218 4.18836 118.014 3.725 116.35 3.725H110.407H110.382V3.75V17.484ZM122.575 17.484V17.509H122.6H124.007H124.032V17.484V11.268C124.032 10.1909 124.325 9.41594 124.836 8.91014C125.347 8.40428 126.08 8.164 126.968 8.164C127.846 8.164 128.579 8.40425 129.093 8.91019C129.606 9.41604 129.904 10.191 129.904 11.268V11.415V11.44H129.929H131.315H131.34V11.415V11.289C131.34 9.78257 130.898 8.66237 130.128 7.91889C129.358 7.17557 128.264 6.812 126.968 6.812C125.672 6.812 124.573 7.17557 123.798 7.91618C123.023 8.65698 122.575 9.77193 122.575 11.268V17.484ZM111.944 11.096V5.161H116.371C117.553 5.161 118.354 5.47999 118.86 6.00644C119.366 6.5331 119.58 7.2714 119.58 8.118C119.58 8.96461 119.366 9.70822 118.86 10.2401C118.354 10.7718 117.553 11.096 116.371 11.096H111.944ZM138.086 17.782C141.375 17.782 143.697 15.4612 143.697 12.297C143.697 9.13282 141.375 6.812 138.086 6.812C134.797 6.812 132.475 9.13282 132.475 12.297C132.475 15.4612 134.797 17.782 138.086 17.782ZM138.086 16.43C136.853 16.43 135.82 15.9913 135.096 15.2562C134.371 14.521 133.953 13.488 133.953 12.297C133.953 11.106 134.371 10.073 135.096 9.3378C135.82 8.6027 136.853 8.164 138.086 8.164C139.319 8.164 140.352 8.6027 141.076 9.3378C141.801 10.073 142.219 11.106 142.219 12.297C142.219 13.488 141.801 14.521 141.076 15.2562C140.352 15.9913 139.319 16.43 138.086 16.43Z" fill="#7E7885" stroke="#7E7885" stroke-width="0.05"/>
<path d="M17.4846 10.3687L5.12116 17.3952M17.4846 10.3687L5.07656 3.36779M17.4846 10.3687V5.68435L9.24232 1L5.07656 3.36779M17.4846 10.3687V15.053L9.24232 19.7374L5.12116 17.3952M5.12116 17.3952L5.07656 3.36779M5.12116 17.3952L1 15.053L1 5.68435L5.07656 3.36779" stroke="url(#paint0_linear)" stroke-width="1.6" stroke-linejoin="round"/>
<path d="M31.5218 17.3435C34.0011 17.3435 35.6975 15.9298 35.6975 13.1025V12.8633H34.2838V13.1025C34.2838 15.0816 33.1747 15.9951 31.5218 15.9951C29.8471 15.9951 28.7597 15.0599 28.7597 13.1025V7.64355H35.0885V6.31687H28.7597V2.51084H27.3025V13.1025C27.3025 15.9298 29.0206 17.3435 31.5218 17.3435Z" fill="#100F11"/>
<path d="M42.6512 17.3435C44.739 17.3435 46.5224 16.3213 47.2837 14.4074V17.0608H48.6321V11.7541C48.6321 8.36126 46.2615 6.03414 42.8687 6.03414C39.4758 6.03414 37.0835 8.40475 37.0835 11.7541C37.0835 15.1904 39.6281 17.3435 42.6512 17.3435ZM42.8687 15.9951C40.3023 15.9951 38.5624 14.1682 38.5624 11.6888C38.5624 9.20946 40.3023 7.38256 42.8687 7.38256C45.435 7.38256 47.1749 9.20946 47.1749 11.6888C47.1749 14.1682 45.435 15.9951 42.8687 15.9951Z" fill="#100F11"/>
<path d="M56.5133 17.3435C59.9278 17.3435 62.3202 14.9511 62.3202 11.6453C62.3202 8.33951 59.9061 6.03414 56.7525 6.03414C54.7081 6.03414 53.0335 6.99108 52.2288 8.62224V1.61914H50.7716V11.6236C50.7716 15.0816 53.1857 17.3435 56.5133 17.3435ZM56.535 15.9951C53.9469 15.9951 52.2288 14.1682 52.2288 11.6888C52.2288 9.20946 53.9469 7.38256 56.535 7.38256C59.1014 7.38256 60.8413 9.20946 60.8413 11.6888C60.8413 14.1682 59.1014 15.9951 56.535 15.9951Z" fill="#100F11"/>
<path d="M64.0248 17.0608H65.4819V11.4496C65.4819 8.79623 67.0043 7.38256 69.3315 7.38256C71.6586 7.38256 73.181 8.79623 73.181 11.4496V17.0608H74.6382V11.4496C74.6382 7.88278 72.5068 6.03414 69.3315 6.03414C66.1561 6.03414 64.0248 7.88278 64.0248 11.4496V17.0608Z" fill="#100F11"/>
<path d="M77.8991 4.22899C78.5298 4.22899 79.0083 3.75052 79.0083 3.11981C79.0083 2.48909 78.5298 2.01062 77.8991 2.01062C77.2684 2.01062 76.7899 2.48909 76.7899 3.11981C76.7899 3.75052 77.2684 4.22899 77.8991 4.22899ZM77.1814 17.0608H78.6386V6.31687H77.1814V17.0608Z" fill="#100F11"/>
<path d="M81.1647 17.0608H82.6218V11.4496C82.6218 8.79623 84.1442 7.38256 86.4714 7.38256C88.7985 7.38256 90.3209 8.79623 90.3209 11.4496V17.0608H91.7781V11.4496C91.7781 7.88278 89.6467 6.03414 86.4714 6.03414C83.296 6.03414 81.1647 7.88278 81.1647 11.4496V17.0608Z" fill="#100F11"/>
<path d="M99.2583 17.3435C101.759 17.3435 103.717 16.0386 104.543 14.0594H102.956C102.26 15.2991 100.955 15.9951 99.2583 15.9951C96.8442 15.9951 95.1695 14.4074 94.9738 12.1673H105V11.6888C105 8.4265 102.651 6.03414 99.2583 6.03414C95.8655 6.03414 93.4731 8.4265 93.4731 11.6888C93.4731 14.9511 95.8655 17.3435 99.2583 17.3435ZM95.0173 10.8624C95.3435 8.75273 97.0181 7.38256 99.2583 7.38256C101.433 7.38256 103.13 8.68749 103.478 10.8624H95.0173Z" fill="#100F11"/>
<defs>
<linearGradient id="paint0_linear" x1="18.9403" y1="16.8799" x2="1.25302" y2="0.723009" gradientUnits="userSpaceOnUse">
<stop stop-color="#4BA1FC"/>
<stop offset="1" stop-color="#EC2AED"/>
</linearGradient>
</defs>
</svg>`;

export const PYPI_TABNINE_JUPYTERLAB_PATH =
  "https://pypi.org/pypi/jupyterlab-tabnine/json";
