khoj 1.20.3.dev13__py3-none-any.whl → 1.20.5.dev10__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. khoj/configure.py +2 -1
  2. khoj/database/adapters/__init__.py +30 -11
  3. khoj/database/migrations/0056_searchmodelconfig_cross_encoder_model_config.py +17 -0
  4. khoj/database/models/__init__.py +2 -0
  5. khoj/interface/compiled/404/index.html +1 -1
  6. khoj/interface/compiled/_next/static/chunks/9178-ef3257c08d8973c8.js +1 -0
  7. khoj/interface/compiled/_next/static/chunks/app/agents/{page-3c01900e7b5c7e50.js → page-1ac024e05374f91f.js} +1 -1
  8. khoj/interface/compiled/_next/static/chunks/app/automations/page-176fd855ffabf08e.js +1 -0
  9. khoj/interface/compiled/_next/static/chunks/app/chat/{page-37ff98d93e65b5a4.js → page-8f7915867c7e42ba.js} +1 -1
  10. khoj/interface/compiled/_next/static/chunks/app/factchecker/{page-6ca723a9ff0dfd70.js → page-a6d96a122a65feb5.js} +1 -1
  11. khoj/interface/compiled/_next/static/chunks/app/{page-9b0df5db8165e408.js → page-59e25010247e3780.js} +1 -1
  12. khoj/interface/compiled/_next/static/chunks/app/search/{page-fa15807b1ad7e30b.js → page-fde8c956cc33a187.js} +1 -1
  13. khoj/interface/compiled/_next/static/chunks/app/settings/{page-b0fae6e054ca311e.js → page-ab10cb1c576956fc.js} +1 -1
  14. khoj/interface/compiled/_next/static/chunks/app/share/chat/{page-0ae8f5b868af65c1.js → page-de1049b418d21444.js} +1 -1
  15. khoj/interface/compiled/_next/static/chunks/{webpack-7a672be3ff6c1346.js → webpack-f162a207b26413cd.js} +1 -1
  16. khoj/interface/compiled/_next/static/css/17e284bae7dc4881.css +1 -0
  17. khoj/interface/compiled/_next/static/css/2602b0918043c1e5.css +1 -0
  18. khoj/interface/compiled/_next/static/css/4cae6c0e5c72fb2d.css +1 -0
  19. khoj/interface/compiled/_next/static/css/6bde1f2045622ef7.css +1 -0
  20. khoj/interface/compiled/_next/static/css/9d5b867ec04494a6.css +25 -0
  21. khoj/interface/compiled/agents/index.html +1 -1
  22. khoj/interface/compiled/agents/index.txt +3 -3
  23. khoj/interface/compiled/assets/icons/khoj_lantern_logomarktype_1200x630.png +0 -0
  24. khoj/interface/compiled/automations/index.html +1 -1
  25. khoj/interface/compiled/automations/index.txt +3 -3
  26. khoj/interface/compiled/chat/index.html +1 -1
  27. khoj/interface/compiled/chat/index.txt +3 -3
  28. khoj/interface/compiled/factchecker/index.html +1 -1
  29. khoj/interface/compiled/factchecker/index.txt +3 -3
  30. khoj/interface/compiled/index.html +1 -1
  31. khoj/interface/compiled/index.txt +3 -3
  32. khoj/interface/compiled/khoj.webmanifest +51 -0
  33. khoj/interface/compiled/search/index.html +1 -1
  34. khoj/interface/compiled/search/index.txt +3 -3
  35. khoj/interface/compiled/settings/index.html +1 -1
  36. khoj/interface/compiled/settings/index.txt +3 -3
  37. khoj/interface/compiled/share/chat/index.html +1 -1
  38. khoj/interface/compiled/share/chat/index.txt +3 -3
  39. khoj/interface/web/base_config.html +1 -1
  40. khoj/interface/web/login.html +2 -2
  41. khoj/processor/conversation/anthropic/anthropic_chat.py +6 -2
  42. khoj/processor/conversation/offline/chat_model.py +15 -3
  43. khoj/processor/conversation/openai/gpt.py +6 -3
  44. khoj/processor/conversation/openai/utils.py +3 -1
  45. khoj/processor/conversation/prompts.py +20 -0
  46. khoj/processor/embeddings.py +3 -1
  47. khoj/processor/tools/online_search.py +9 -3
  48. khoj/routers/api.py +21 -4
  49. khoj/routers/api_chat.py +3 -3
  50. khoj/routers/email.py +2 -1
  51. khoj/routers/helpers.py +31 -6
  52. khoj/search_filter/file_filter.py +5 -2
  53. {khoj-1.20.3.dev13.dist-info → khoj-1.20.5.dev10.dist-info}/METADATA +1 -1
  54. {khoj-1.20.3.dev13.dist-info → khoj-1.20.5.dev10.dist-info}/RECORD +70 -68
  55. khoj/interface/compiled/_next/static/chunks/9178-859894e0d9d67aa5.js +0 -1
  56. khoj/interface/compiled/_next/static/chunks/app/automations/page-a4a7ace34490f0f0.js +0 -1
  57. khoj/interface/compiled/_next/static/css/1de368beed21dfba.css +0 -25
  58. khoj/interface/compiled/_next/static/css/2272c73fc7a3b571.css +0 -1
  59. khoj/interface/compiled/_next/static/css/2bfe35fbe2c97a56.css +0 -1
  60. khoj/interface/compiled/_next/static/css/553f9cdcc7a2bcd6.css +0 -1
  61. khoj/interface/compiled/_next/static/css/a3530ec58b0b660f.css +0 -1
  62. khoj/interface/web/khoj.webmanifest +0 -51
  63. /khoj/interface/compiled/_next/static/chunks/{8423-132ea64eac83fd43.js → 8423-898d821eaab634af.js} +0 -0
  64. /khoj/interface/compiled/_next/static/chunks/{9417-2e54c6fd056982d8.js → 9417-5d14ac74aaab2c66.js} +0 -0
  65. /khoj/interface/compiled/_next/static/{LTedjk3WH_tAoVkNcAgbW → n2f7OOHpHHaOEKtsWrb_9}/_buildManifest.js +0 -0
  66. /khoj/interface/compiled/_next/static/{LTedjk3WH_tAoVkNcAgbW → n2f7OOHpHHaOEKtsWrb_9}/_ssgManifest.js +0 -0
  67. /khoj/interface/compiled/{favicon.ico → assets/icons/khoj_lantern.ico} +0 -0
  68. /khoj/interface/{web/assets/icons/favicon-128x128.png → compiled/assets/icons/khoj_lantern_128x128.png} +0 -0
  69. /khoj/interface/{web/assets/icons/favicon-256x256.png → compiled/assets/icons/khoj_lantern_256x256.png} +0 -0
  70. /khoj/interface/{web → compiled}/assets/samples/desktop-browse-draw-sample.png +0 -0
  71. /khoj/interface/{web → compiled}/assets/samples/desktop-plain-chat-sample.png +0 -0
  72. /khoj/interface/{web → compiled}/assets/samples/desktop-remember-plan-sample.png +0 -0
  73. /khoj/interface/{web → compiled}/assets/samples/phone-browse-draw-sample.png +0 -0
  74. /khoj/interface/{web → compiled}/assets/samples/phone-plain-chat-sample.png +0 -0
  75. /khoj/interface/{web → compiled}/assets/samples/phone-remember-plan-sample.png +0 -0
  76. {khoj-1.20.3.dev13.dist-info → khoj-1.20.5.dev10.dist-info}/WHEEL +0 -0
  77. {khoj-1.20.3.dev13.dist-info → khoj-1.20.5.dev10.dist-info}/entry_points.txt +0 -0
  78. {khoj-1.20.3.dev13.dist-info → khoj-1.20.5.dev10.dist-info}/licenses/LICENSE +0 -0
@@ -1,5 +1,5 @@
1
1
  khoj/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- khoj/configure.py,sha256=3kQ_cCqVmNb04OLSGiQMW69BrQ34gmNFfKm1URNfVEg,18359
2
+ khoj/configure.py,sha256=PMK7yNTK20NXTNsvmtrTw_eup53IEBiQBnftqOGtv3k,18466
3
3
  khoj/main.py,sha256=58Rssq2H5AM69dA2UyGHye3vPAMp5RRS6xLcGkB_G_w,8147
4
4
  khoj/manage.py,sha256=njo6uLxGaMamTPesHjFEOIBJbpIUrz39e1V59zKj544,664
5
5
  khoj/app/README.md,sha256=PSQjKCdpU2hgszLVF8yEhV7TWhbEEb-1aYLTRuuAsKI,2832
@@ -11,7 +11,7 @@ khoj/database/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
11
  khoj/database/admin.py,sha256=ztXOIjsHMKAuZqJ10xZi3wRIrnug_Rg5o85QFzRevjE,8882
12
12
  khoj/database/apps.py,sha256=pM4tkX5Odw4YW_hLLKK8Nd5kqGddf1en0oMCea44RZw,153
13
13
  khoj/database/tests.py,sha256=mrbGGRNg5jwbTJtWWa7zSKdDyeB4vmgZCRc2nk6VY-g,60
14
- khoj/database/adapters/__init__.py,sha256=P0tTZylp8gbFzthOTBc4XVIYiexQk8537XERjn-6acY,49887
14
+ khoj/database/adapters/__init__.py,sha256=PsE5cCNIcO4NW9IJ45KQ05ZB17EjPa_fg3Oibn2kjtM,51141
15
15
  khoj/database/management/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
16
  khoj/database/management/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
17
17
  khoj/database/management/commands/change_generated_images_url.py,sha256=w52FwRlyOL4YRpp9O6jJUjSIuGLxVhaS2w1D7gtQgOE,2644
@@ -80,25 +80,24 @@ khoj/database/migrations/0052_alter_searchmodelconfig_bi_encoder_docs_encode_con
80
80
  khoj/database/migrations/0053_agent_style_color_agent_style_icon.py,sha256=j30FqSaRJYiDXlFdip7Nslw3OZZWkymQbcV4yie1hbk,2054
81
81
  khoj/database/migrations/0054_alter_agent_style_color.py,sha256=f6RnyvEMR0-Y4R2CtNWfVYHxI_y_nADnD-7o_FoISb4,1151
82
82
  khoj/database/migrations/0055_alter_agent_style_icon.py,sha256=0lkxmyDmOW_3CsnLl8iEsCI6qHi2YS9wfdFfDMNbZ4k,1218
83
+ khoj/database/migrations/0056_searchmodelconfig_cross_encoder_model_config.py,sha256=RuR5lyAp6T_bRg2gxhOGS4dfXOWBBEQ3bAvKf4ru5Gw,430
83
84
  khoj/database/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
84
- khoj/database/models/__init__.py,sha256=INX6CQ23x8KRPeGy84ZdDyaW4t1i-Yog-JLE-9Vhjq8,18815
85
+ khoj/database/models/__init__.py,sha256=ObqIHUCRsmw8gvJfxIEBuY4x5rbn2Q1W-M4yd32SHHs,19003
85
86
  khoj/interface/compiled/agents.svg,sha256=yFCRwIM-Qawa0C5ggAo3ekb-Q1ElmotBOKIGhtfIQqM,1722
86
87
  khoj/interface/compiled/automation.svg,sha256=o7L2XYwJWRSMvl8h6TBv6Pt28RTRVMHqF04EPY0AFj0,1467
87
88
  khoj/interface/compiled/chat.svg,sha256=l2JoYRRgk201adTTdvJ-buKUrc0WGfsudix5xEvtM3A,2424
88
89
  khoj/interface/compiled/close.svg,sha256=hQ2iFLkNzHk0_iyTrSbwnWAeXYlgA-c2Eof2Iqh76n4,417
89
90
  khoj/interface/compiled/copy-button-success.svg,sha256=byqWAYD3Pn9IOXRjOKudJ-TJbP2UESbQGvtLWazNGjY,829
90
91
  khoj/interface/compiled/copy-button.svg,sha256=05bKM2eRxksfBlAPT7yMaoNJEk85bZCxQg67EVrPeHo,669
91
- khoj/interface/compiled/favicon.ico,sha256=eggu-B_v3z1R53EjOFhIqqPnICBGdoaw1xnc0NrzHck,174144
92
- khoj/interface/compiled/index.html,sha256=RpZ7y4wGy1YGDb7C4uLw-kxc8Gzs5Yc8DkqlGo7flxg,8625
93
- khoj/interface/compiled/index.txt,sha256=ENq_3pOxbSWaN9X8gYMS-RYN3W4XwOOVtHBocPjjA9c,3863
92
+ khoj/interface/compiled/index.html,sha256=aVmZe327pZIACWkfQ6ErRVrJr7-lyMrD-vtWjl6E9GQ,12220
93
+ khoj/interface/compiled/index.txt,sha256=kn0WQKy1ZtRen9pXWpflIWoInfNOtL6Kz6R2O04bj90,5648
94
+ khoj/interface/compiled/khoj.webmanifest,sha256=lsknYkvEdMbRTOUYKXPM_8krN2gamJmM4u3qj8u9lrU,1682
94
95
  khoj/interface/compiled/logo.svg,sha256=_QCKVYM4WT2Qhcf7aVFImjq_s5CwjynGXYAOgI7yf8w,8059
95
96
  khoj/interface/compiled/send.svg,sha256=VdavOWkVddcwcGcld6pdfmwfz7S91M-9O28cfeiKJkM,635
96
97
  khoj/interface/compiled/share.svg,sha256=91lwo75PvMDrgocuZQab6EQ62CxRbubh9Bhw7CWMKbg,1221
97
98
  khoj/interface/compiled/thumbs-down.svg,sha256=JGNl-DwoRmH2XFMPWwFFklmoYtKxaQbkLE3nuYKe8ZY,1019
98
99
  khoj/interface/compiled/thumbs-up.svg,sha256=yS1wxTRtiztkN-6nZciLoYQUB_KTYNPV8xFRwH2TQFw,1036
99
- khoj/interface/compiled/404/index.html,sha256=3eeyxbMi1bqZ3GT2Pr929wPgUrdQReZs3Yp67nKVsg8,8660
100
- khoj/interface/compiled/_next/static/LTedjk3WH_tAoVkNcAgbW/_buildManifest.js,sha256=6I9QUstNpJnhe3leR2Daw0pSXwzcbBscv6h2jmmPpms,224
101
- khoj/interface/compiled/_next/static/LTedjk3WH_tAoVkNcAgbW/_ssgManifest.js,sha256=Z49s4suAsf5y_GfnQSvm4qtq2ggxEbZPfEDTXjy6XgA,80
100
+ khoj/interface/compiled/404/index.html,sha256=XYChc3IxpelGmSb6FCglEz4t9piKpE9G0OYlyntexak,11947
102
101
  khoj/interface/compiled/_next/static/chunks/1603-fb2d80ae73990df3.js,sha256=CCbOXifiixbhMf7lgTG96225tP1Pou72Wb0Zh6KC1Rs,71007
103
102
  khoj/interface/compiled/_next/static/chunks/2614-7cf01576d4457a75.js,sha256=aUjhjyxNPrZr4bLKzGkGgHH8K4J6g9dfiRjabnmvSDc,1104737
104
103
  khoj/interface/compiled/_next/static/chunks/3062-a42d847c919a9ea4.js,sha256=9UDsx_sY4b4x6jjR_A0AymC9rjBCoCcEpGR4U-0Ej3g,256170
@@ -109,11 +108,11 @@ khoj/interface/compiled/_next/static/chunks/6648-ff677e51f1b2bcf1.js,sha256=9bJl
109
108
  khoj/interface/compiled/_next/static/chunks/7023-52c1be60135eb057.js,sha256=CI8R2DdZNEt3nACmiXUG1NnKhnal1ImzXglW-xDuxcI,123657
110
109
  khoj/interface/compiled/_next/static/chunks/7071-b4711cecca6619a8.js,sha256=z-KSur3LbIFPg_90wN0EMhV0et9cJVfG_MR9POVmdCQ,7801
111
110
  khoj/interface/compiled/_next/static/chunks/743-1a64254447cda71f.js,sha256=YH4bEkjmttcOGzAzXKaDCJ-C68jk2qy1cQJP2ljjoAA,100834
112
- khoj/interface/compiled/_next/static/chunks/8423-132ea64eac83fd43.js,sha256=W8aFQibnAqcbhPYoD_WzHKoMwaWt3jXdan7n_LoY4t4,10327
111
+ khoj/interface/compiled/_next/static/chunks/8423-898d821eaab634af.js,sha256=W8aFQibnAqcbhPYoD_WzHKoMwaWt3jXdan7n_LoY4t4,10327
113
112
  khoj/interface/compiled/_next/static/chunks/9001-acbca3e19b1a5ddf.js,sha256=M2hBSe8WTnjEmUlOiOgt_zDJtv3sc4ghnubhkZyMvVA,35460
114
113
  khoj/interface/compiled/_next/static/chunks/9162-4a6d0d0dc5e27618.js,sha256=2csnvP4rJcL4oZlBAEkzeSxBJy4gwYxzAnqzeWbe9fw,149225
115
- khoj/interface/compiled/_next/static/chunks/9178-859894e0d9d67aa5.js,sha256=vMplZsfS0dVODT6NR_uUlzPeig4C8g9yZTOKLYDQQ4k,17213
116
- khoj/interface/compiled/_next/static/chunks/9417-2e54c6fd056982d8.js,sha256=FZ8xOLMdzrlVmwtcyuQSy8bBwd8_UZ1hH3FlL4DwXpA,17252
114
+ khoj/interface/compiled/_next/static/chunks/9178-ef3257c08d8973c8.js,sha256=2wBw6-Bg4NGBNwXOEmfnlVh-lO29bg85b9sirLSxSic,17645
115
+ khoj/interface/compiled/_next/static/chunks/9417-5d14ac74aaab2c66.js,sha256=FZ8xOLMdzrlVmwtcyuQSy8bBwd8_UZ1hH3FlL4DwXpA,17252
117
116
  khoj/interface/compiled/_next/static/chunks/9693-91b03052c5cabded.js,sha256=htVs3WyaR5jF7tXL_VBwqtPcQ53T3s9jWRazqz7DU-c,28957
118
117
  khoj/interface/compiled/_next/static/chunks/d3ac728e-a9e3522eef9b6b28.js,sha256=wK1TsLdl56xtbQG6HMRDpylzTOYXQaAnnn2xobFnX40,267216
119
118
  khoj/interface/compiled/_next/static/chunks/fd9d1056-2b978342deb60015.js,sha256=2lquiZSfbI-gX4j4TW4JSMLL_D5ShqwydgWpFyXrTy8,172834
@@ -121,34 +120,34 @@ khoj/interface/compiled/_next/static/chunks/framework-8e0e0f4a6b83a956.js,sha256
121
120
  khoj/interface/compiled/_next/static/chunks/main-175c164f5e0f026c.js,sha256=hlUnjERudON4V4kUKprrFz1e9JRtSp4A9i7vnM-1bzA,110324
122
121
  khoj/interface/compiled/_next/static/chunks/main-app-6d6ee3495efe03d4.js,sha256=i52E7sWOcSq1G8eYZL3mtTxbUbwRNxcAbSWQ6uWpMsY,475
123
122
  khoj/interface/compiled/_next/static/chunks/polyfills-78c92fac7aa8fdd8.js,sha256=6QPOwdWeAVe8x-SsiDrm-Ga6u2DkqgG5SFqglrlyIgA,91381
124
- khoj/interface/compiled/_next/static/chunks/webpack-7a672be3ff6c1346.js,sha256=UmzSuHFk7f92MMba4TVOPyJUvAHVyfuPXNEciJGf1JY,3724
123
+ khoj/interface/compiled/_next/static/chunks/webpack-f162a207b26413cd.js,sha256=gAX7sjf-w0uFThwnlwgc2SBsqE8NUyYMCR7G5GMdEdY,3725
125
124
  khoj/interface/compiled/_next/static/chunks/app/layout-f3e40d346da53112.js,sha256=nekGSUVbvB81OfqGgJa2UoDmbxPhNwFwtc4o11O_1jI,442
126
- khoj/interface/compiled/_next/static/chunks/app/page-9b0df5db8165e408.js,sha256=pz5TVfsf5puqm6MchJZnwpANPvz_wZEpz2DB5a2mvfg,28583
125
+ khoj/interface/compiled/_next/static/chunks/app/page-59e25010247e3780.js,sha256=b3hfRq5SyNa0iZLGPWCkMhECg6aKCGfrD8dDA5h-jZI,28607
127
126
  khoj/interface/compiled/_next/static/chunks/app/_not-found/page-07ff4ab42b07845e.js,sha256=3mCUnxfMxyK44eqk21TVBrC6u--WSbvx31fTmQuOvMQ,1755
128
127
  khoj/interface/compiled/_next/static/chunks/app/agents/layout-e71c8e913cccf792.js,sha256=VyIMrkvntFObMzXF-elNtngJ8mBdjg8XrOGfboJ2f_4,372
129
- khoj/interface/compiled/_next/static/chunks/app/agents/page-3c01900e7b5c7e50.js,sha256=8tp_0cKBkscDxbQcd5hwQPOI7sZHZeHy0S4zEiVFkl8,18092
128
+ khoj/interface/compiled/_next/static/chunks/app/agents/page-1ac024e05374f91f.js,sha256=PP5-VuD44-PrDrSK_9Hb-haAxjC-lOCRcDupgSqaXWM,18091
130
129
  khoj/interface/compiled/_next/static/chunks/app/automations/layout-27c28e923c9b1ff0.js,sha256=d2vJ_lVB0pfeFXNUPzHAe1ca5NzdNowHPh___SPqugM,5143
131
- khoj/interface/compiled/_next/static/chunks/app/automations/page-a4a7ace34490f0f0.js,sha256=kmcylJ0wmvItskRwm8q2YbhAXR-7Y_GXh6HCduq2bzQ,33855
130
+ khoj/interface/compiled/_next/static/chunks/app/automations/page-176fd855ffabf08e.js,sha256=NTBWbb1qVGIAYTSm7gumiOB3V9JDe8gT3HOJQ4_xfZQ,33990
132
131
  khoj/interface/compiled/_next/static/chunks/app/chat/layout-8102549127db3067.js,sha256=YIoA3fqOBt8nKWw5iQAwA_avg2t1Q5Afn65IA5PBOz4,374
133
- khoj/interface/compiled/_next/static/chunks/app/chat/page-37ff98d93e65b5a4.js,sha256=_FzCaSZxsbEjhWg09tPBR00KTyd5dLhJuXBj0dnhfq8,10163
132
+ khoj/interface/compiled/_next/static/chunks/app/chat/page-8f7915867c7e42ba.js,sha256=ni5VAmhx2Ru3x-hCMfvfuCRXBE9q_EVYwVWEILo_Hik,10158
134
133
  khoj/interface/compiled/_next/static/chunks/app/factchecker/layout-7b30c541c05fb904.js,sha256=yub2AuBKHKSCqrHRFnkZv9JXLmLJLOB99iiaD3DtZQM,170
135
- khoj/interface/compiled/_next/static/chunks/app/factchecker/page-6ca723a9ff0dfd70.js,sha256=haLJ9WVP9f8IEdmUiFaoVEV6nax1d2pKHArqzQxTecw,13988
134
+ khoj/interface/compiled/_next/static/chunks/app/factchecker/page-a6d96a122a65feb5.js,sha256=Cm2ZWOZvF9NBupUWzogsMnxE6iZw9Hl00Ot0s0QWL1g,13983
136
135
  khoj/interface/compiled/_next/static/chunks/app/search/layout-3720f1362310bebb.js,sha256=Smpa4MQaw5ItashtspsDKsOvRa6sOXH_lv4jIfWIbNI,170
137
- khoj/interface/compiled/_next/static/chunks/app/search/page-fa15807b1ad7e30b.js,sha256=st3BmeRoT8a_lJrTrUhOTVUuaZQJjC60_lE_GmreLeQ,6954
136
+ khoj/interface/compiled/_next/static/chunks/app/search/page-fde8c956cc33a187.js,sha256=9JUIPy-2BNZkbtisziJa3S3HjOs2nwvnqR78JrFSpoE,6953
138
137
  khoj/interface/compiled/_next/static/chunks/app/settings/layout-6f9314b0d7a26046.js,sha256=ikl3vCXnp81sa24uPSuRbgvgDtpHGWfhxEs4OAOYXIM,5347
139
- khoj/interface/compiled/_next/static/chunks/app/settings/page-b0fae6e054ca311e.js,sha256=AXnv2j64la18kzxbzLWmKNp0VHHP9ovHJXjL0IV4Rj8,31742
138
+ khoj/interface/compiled/_next/static/chunks/app/settings/page-ab10cb1c576956fc.js,sha256=n2rhXww9xICD9P-kxfOCYz8etMUbQskxf5NaTYR6Fjs,31741
140
139
  khoj/interface/compiled/_next/static/chunks/app/share/chat/layout-39f03f9e32399f0f.js,sha256=ClS8wrj6HOsRL4VX8DMiqX_MlQDsi_3CA-AQt4m7vuA,373
141
- khoj/interface/compiled/_next/static/chunks/app/share/chat/page-0ae8f5b868af65c1.js,sha256=jBRWhFfU0GMqlh1MKHZiyG_sv__d6eO8-WuNnwCKm5M,10147
140
+ khoj/interface/compiled/_next/static/chunks/app/share/chat/page-de1049b418d21444.js,sha256=GGsqFFHp0aZMPP16apH_pd9p9LN2yCo4R7tDD4y3fOk,10147
142
141
  khoj/interface/compiled/_next/static/chunks/pages/_app-f870474a17b7f2fd.js,sha256=eqdFPAN_XFyMUzZ9qwFk-_rhMWZrU7lgNVt1foVUANo,286
143
142
  khoj/interface/compiled/_next/static/chunks/pages/_error-c66a4e8afc46f17b.js,sha256=vjERjtMAbVk-19LyPf1Jc-H6TMcrSznSz6brzNqbqf8,253
144
143
  khoj/interface/compiled/_next/static/css/1538cedb321e3a97.css,sha256=-qLZhPN-wA3kcrVODVTaG1sN0pmuzRCqNH12gs5_qYc,2569
145
- khoj/interface/compiled/_next/static/css/1de368beed21dfba.css,sha256=XMXOkMb8g7zAKEdIoRvGXCtjSCwfz7kdElkPXiCeuMA,1880639
146
- khoj/interface/compiled/_next/static/css/2272c73fc7a3b571.css,sha256=1fHKFd8zLOHosAHx-kxv4b9lVSqHag_E71WkV3dXx2Y,26940
147
- khoj/interface/compiled/_next/static/css/2bfe35fbe2c97a56.css,sha256=ll38Skm4kA29LtqLUkDtUMT-6ua0ihpXJUJZh-HppCI,7371
148
- khoj/interface/compiled/_next/static/css/553f9cdcc7a2bcd6.css,sha256=JpjOOwmqP9Hba-w_8Lx9jWW0ZD0kD3wR0HvdPGDyUPo,2134
144
+ khoj/interface/compiled/_next/static/css/17e284bae7dc4881.css,sha256=wZ01J2B3sqHm6Qy8pPqRmLEXhBF3Uw6JbL3hafRrZ0c,5865
145
+ khoj/interface/compiled/_next/static/css/2602b0918043c1e5.css,sha256=EUN0CJQ_5P0FznfU8dfjI6APVIf4Hf40QV1NgNydhzc,29905
146
+ khoj/interface/compiled/_next/static/css/4cae6c0e5c72fb2d.css,sha256=3CjTMmtMrm_MYt1ywtUh2MHEjSLSl356SQLl4hdBuYw,534
149
147
  khoj/interface/compiled/_next/static/css/592ca99f5122e75a.css,sha256=BSqRkeb9vBh0phx5GkAlZirTFZintbyggGaUkuOBfaU,914
148
+ khoj/interface/compiled/_next/static/css/6bde1f2045622ef7.css,sha256=ZZh89VWxOO1B3gTyFDrvKmv9YKAuvPJkpNj2cEOcT_A,1711
149
+ khoj/interface/compiled/_next/static/css/9d5b867ec04494a6.css,sha256=X2BihvGWIRM1KI7iFgwUf6QAQh-_M_gBbcR-ZS66nEs,1880998
150
150
  khoj/interface/compiled/_next/static/css/a22d83f18a32957e.css,sha256=kgAD2DQYH2WF2wqL759i62nR093yU_UfFClMKkAue6U,17709
151
- khoj/interface/compiled/_next/static/css/a3530ec58b0b660f.css,sha256=2fpX695nzJ6sNaNZbX_3Z0o-IA5kRlyN0ByIIXRgmtg,1570
152
151
  khoj/interface/compiled/_next/static/css/b81e909d403fb2df.css,sha256=bbu108v2_T74MIyokVmUz0A_oFCIHJpzHdYExXFYgjs,1913
153
152
  khoj/interface/compiled/_next/static/media/0e790e04fd40ad16-s.p.woff2,sha256=41ewITd0G1ZAoB62BTHMW58a1q8Hl6vSbTQkkHP7EbI,39372
154
153
  khoj/interface/compiled/_next/static/media/4221e1667cd19c7d-s.woff2,sha256=_Y3g0keA8P6nZnFfm_VO5o2Sne1iST3v9xz4fBo3fwM,75532
@@ -222,36 +221,45 @@ khoj/interface/compiled/_next/static/media/flags.3afdda2f.webp,sha256=M2AW_HLpBn
222
221
  khoj/interface/compiled/_next/static/media/flags@2x.5fbe9fc1.webp,sha256=BBeRPBZkxY3-aKkMnYv5TSkxmbeMbyUH4VRIPfrWg1E,137406
223
222
  khoj/interface/compiled/_next/static/media/globe.98e105ca.webp,sha256=g3ofb8-W9GM75zIhlvQhaS8I2py9TtrovOKR3_7Jf04,514
224
223
  khoj/interface/compiled/_next/static/media/globe@2x.974df6f8.webp,sha256=I_N7Yke3IOoS-0CC6XD8o0IUWG8PdPbrHmf6lpgWlZY,1380
225
- khoj/interface/compiled/agents/index.html,sha256=JFdjb5Oe62OYBklpJIJA4Y2LEselh6ASm9ZBBdm81P8,10409
226
- khoj/interface/compiled/agents/index.txt,sha256=uXkgmTJ_Jt9pLXf-KC2XsYMN-jwf_4hzXoUv3iRrufE,4909
227
- khoj/interface/compiled/automations/index.html,sha256=_p8m1LQxvhsYqIHZcaafCiBH2_wMLgzYIUsLkko09D4,28180
228
- khoj/interface/compiled/automations/index.txt,sha256=_L_ki8SUpA8UVj5BtmulwLenDIAGQs1hFKuU5ljxhVA,4266
229
- khoj/interface/compiled/chat/index.html,sha256=U0f6AQ8EdQDWrVIng3UMz6q4NfYIHOn_F92C1gGj7V4,11288
230
- khoj/interface/compiled/chat/index.txt,sha256=YSnGn-IuDU5vqiV4PjmM79EQKCZ-c5BZW8dKVtqXY7U,5261
231
- khoj/interface/compiled/factchecker/index.html,sha256=NdRUEQqiFEqXcZaTNePl1fxIhZnycEji7_HeZedWnrQ,27515
232
- khoj/interface/compiled/factchecker/index.txt,sha256=nPDKij26Eqbu53YAEe1VWoYY2sd2ZWBU1DMgMKOcVrw,4552
233
- khoj/interface/compiled/search/index.html,sha256=bv3ke5Sto039GLR1FFU3z-h5WPeXV6ZFw3HLOD43NCU,27864
234
- khoj/interface/compiled/search/index.txt,sha256=UHjrrwkZbhBAhLoBJ0czAzdos2R9cblpB_DjRJRCxNY,4083
235
- khoj/interface/compiled/settings/index.html,sha256=ZJouyDmOw8p9U1F6ma2yPOGpVumQOOrgZ6Y1EYstZfo,10525
236
- khoj/interface/compiled/settings/index.txt,sha256=mtxlKUkv-d_sIOwM3l-8m1GuNja2WXScfZzBZA3Blw8,4901
237
- khoj/interface/compiled/share/chat/index.html,sha256=gsoF7_IRNlEMA3NsM3VTsMcZ60AzUHckTT2Px8ccWP4,11609
238
- khoj/interface/compiled/share/chat/index.txt,sha256=depxC59m4EyP5UifYOQWOboZJZrFNQV4Ppl_kXy8iL4,5587
224
+ khoj/interface/compiled/_next/static/n2f7OOHpHHaOEKtsWrb_9/_buildManifest.js,sha256=6I9QUstNpJnhe3leR2Daw0pSXwzcbBscv6h2jmmPpms,224
225
+ khoj/interface/compiled/_next/static/n2f7OOHpHHaOEKtsWrb_9/_ssgManifest.js,sha256=Z49s4suAsf5y_GfnQSvm4qtq2ggxEbZPfEDTXjy6XgA,80
226
+ khoj/interface/compiled/agents/index.html,sha256=Tz1UQeE-psL6_ohAh8VOKofgBgXiaRv9vFCFDCF4JyI,12699
227
+ khoj/interface/compiled/agents/index.txt,sha256=ZJ8sTnvKslLbzkvI2al2vPDy4wfkulfRJAuYg618HWA,6075
228
+ khoj/interface/compiled/assets/icons/khoj_lantern.ico,sha256=eggu-B_v3z1R53EjOFhIqqPnICBGdoaw1xnc0NrzHck,174144
229
+ khoj/interface/compiled/assets/icons/khoj_lantern_128x128.png,sha256=aTxivDb3CYyThkVZWz8A19xl_dNut5DbkXhODWF3A9Q,5640
230
+ khoj/interface/compiled/assets/icons/khoj_lantern_256x256.png,sha256=xPCMLHiaL7lYOdQLZrKwWE-Qjn5ZaysSZB0ScYv4UZU,12312
231
+ khoj/interface/compiled/assets/icons/khoj_lantern_logomarktype_1200x630.png,sha256=fYyp7RW0WoCn-SbcqZhqQbQMyhySSlLWmH_n82M1LdY,46736
232
+ khoj/interface/compiled/assets/samples/desktop-browse-draw-sample.png,sha256=v6u1g7_uEG_xN1D5UrulUC-rUkpzTlSPiUrbfxt4H2g,591182
233
+ khoj/interface/compiled/assets/samples/desktop-plain-chat-sample.png,sha256=SG1nFvJ3kWs5F3XXZxnkE-UnXCWY0Mz-EqTeU0nhs30,197173
234
+ khoj/interface/compiled/assets/samples/desktop-remember-plan-sample.png,sha256=i9QOSuWE6wKPP-qWcZisBrT3P7kRwq0yXKv7bV-kOSw,268309
235
+ khoj/interface/compiled/assets/samples/phone-browse-draw-sample.png,sha256=Dd4fPwtFl6BWqnHjeb1mCK_ND0hhHsWtx8sNE7EiMuE,406179
236
+ khoj/interface/compiled/assets/samples/phone-plain-chat-sample.png,sha256=DEDaNRCkfEWUeh3kYZWIQDTVK1a6KKnYdwj5ZWisN_Q,82985
237
+ khoj/interface/compiled/assets/samples/phone-remember-plan-sample.png,sha256=Ma3blirRmq3X4oYSsDbbT7MDn29rymDrjwmUfA9BMuM,236285
238
+ khoj/interface/compiled/automations/index.html,sha256=RjLxaQwKOTBFV1g3OTb-kgOi0JV4aKqEDOmOV2fYqm8,30808
239
+ khoj/interface/compiled/automations/index.txt,sha256=ktcyStvN8P-Sgl88TR3IKlsK1ZfKkPy7Dyk6mwhKK4Q,5580
240
+ khoj/interface/compiled/chat/index.html,sha256=0NdIbG4FZR_1lGO24X-qjwSaEPM7x4FFDxTqRnzluVY,13258
241
+ khoj/interface/compiled/chat/index.txt,sha256=t1gZ2w-x_km82CfzjlXAWqsUVl2ZN7XNvzyIgAvxErY,6288
242
+ khoj/interface/compiled/factchecker/index.html,sha256=nPqmf_e1heX8t3fmwTtsLIVMhCKxCsweR9f3pjGXweg,29531
243
+ khoj/interface/compiled/factchecker/index.txt,sha256=DYl4DpEhR1ZBJYzKABcKNATv2sLW_6qIu6IWrm-EMzU,5602
244
+ khoj/interface/compiled/search/index.html,sha256=Dw-txAyXZKLCKJMRs_D0E5XekSDxN9X14MP9GRt4IFw,30154
245
+ khoj/interface/compiled/search/index.txt,sha256=Cpsplyor7JqWONRCzhpY1OzcEhtpbS809B0QPFKvMjI,5249
246
+ khoj/interface/compiled/settings/index.html,sha256=Nb0EaFPejQKO2jG1DTCQrqfkf8KfbHwGEiAE0JMtymc,12827
247
+ khoj/interface/compiled/settings/index.txt,sha256=TPlRQ3J4OCtblPmceOrApmByCOaB5LKn_-Ob2ebV6G0,6073
248
+ khoj/interface/compiled/share/chat/index.html,sha256=VYOOyL31joC-Oulq3HIe4SoYDu1q5yosIqkh1d-aiNc,14896
249
+ khoj/interface/compiled/share/chat/index.txt,sha256=_rrb9hCzIuuejJ1tA8VemeMG0GaxFUR1DID0aHXupRw,7239
239
250
  khoj/interface/email/feedback.html,sha256=xksuPFamx4hGWyTTxZKRgX_eiYQQEuv-eK9Xmkt-nwU,1216
240
251
  khoj/interface/email/magic_link.html,sha256=jXY_2hD3o15Ns5UDzbjLT8FHBnZiS7jo38YkYXIS-4w,947
241
252
  khoj/interface/email/task.html,sha256=yXywzC-5P4nXbhqvgCmwcCpTRbD5eWuDXMpgYSotztM,3311
242
253
  khoj/interface/email/welcome.html,sha256=Z4RP5J6c62adF7teH84OGx37shdsFzWQBwQjgfMjjUU,6577
243
- khoj/interface/web/base_config.html,sha256=vORIYJQ5UzaA3TAMcywRisk-YaaJEwkVAiEJGsbYxvA,12173
254
+ khoj/interface/web/base_config.html,sha256=3aRwGF546vUdtCqL4tbWDdvO3ThEzt627vopx_tS4zo,12181
244
255
  khoj/interface/web/content_source_github_input.html,sha256=YpsLBpsATW08ttrGysqktx2EczC4nebKlvWpwxtwmFY,8249
245
- khoj/interface/web/khoj.webmanifest,sha256=G_Aphzn6SMaY73AYLCD12mgztZvagh_U2YpkjQXIY1U,1628
246
- khoj/interface/web/login.html,sha256=WX0aKda5pxleEDsK4QEYM82UV3Ql9g1K0vhcN6o5eDk,6848
256
+ khoj/interface/web/login.html,sha256=4mYRX7521W4J8fFV-Cm_NqojMrpdwKZuzVAjnZRDsl4,6864
247
257
  khoj/interface/web/utils.html,sha256=_UrcCvSkx1SAzhlTsvrj9LFlnJuJ-_cMtz6HY-rEIkI,3143
248
258
  khoj/interface/web/assets/khoj.css,sha256=rhW8-RwvkpTC5GbtBt0EByaXaHjlxpxPYxrUuzMWDC0,5659
249
259
  khoj/interface/web/assets/utils.js,sha256=A22W1nOVuD1osI7TtZC8fZ0r1g4pE66tXQ_4XNbhreo,1269
250
260
  khoj/interface/web/assets/icons/agents.svg,sha256=_d5_QjyqF6U4Q7o5sIrQd8C0juJcsmJG-YgGcPKha7o,2579
251
261
  khoj/interface/web/assets/icons/automation.svg,sha256=5PYprcNRK3rb1fVS2E3caR0sqLj32K4Thr2QPy_ZgsY,1549
252
262
  khoj/interface/web/assets/icons/favicon-128x128.ico,sha256=JMZf9aZor9AUbh5kuFNDaG3Mjxvoau5k80yRA9ly5TQ,205167
253
- khoj/interface/web/assets/icons/favicon-128x128.png,sha256=aTxivDb3CYyThkVZWz8A19xl_dNut5DbkXhODWF3A9Q,5640
254
- khoj/interface/web/assets/icons/favicon-256x256.png,sha256=xPCMLHiaL7lYOdQLZrKwWE-Qjn5ZaysSZB0ScYv4UZU,12312
255
263
  khoj/interface/web/assets/icons/github.svg,sha256=E789GwMweG0aU1wJNp0FjWHlFX1AxuA5H0durEnw5hQ,964
256
264
  khoj/interface/web/assets/icons/khoj-logo-sideways-200.png,sha256=2_F1PpTZzfjvaHej9jjENx03H1vKtFsVkolwTPLJP9Q,6637
257
265
  khoj/interface/web/assets/icons/khoj-logo-sideways-500.png,sha256=VQsQ20NC-sKYHa9UgAvLM2N25DWRISZUIGW0zhnRres,18603
@@ -260,12 +268,6 @@ khoj/interface/web/assets/icons/khoj.svg,sha256=8QZ0q3vazgY0aGhTT9Um432GbwtY1Vn6
260
268
  khoj/interface/web/assets/icons/logotype.svg,sha256=diy7UEKDBv9dFtGfE8Y5gf9JTdQUKTnq_dSdC2RGVIA,4031
261
269
  khoj/interface/web/assets/icons/search.svg,sha256=OrZuIEzj3bREKy642KKPx01YLhEv0N4ns2o9MjYG0UY,2193
262
270
  khoj/interface/web/assets/icons/sync.svg,sha256=ZmwPaLLUBLDkNIly8bC1nCcWNspl30Kneiq-W9oYm34,639
263
- khoj/interface/web/assets/samples/desktop-browse-draw-sample.png,sha256=v6u1g7_uEG_xN1D5UrulUC-rUkpzTlSPiUrbfxt4H2g,591182
264
- khoj/interface/web/assets/samples/desktop-plain-chat-sample.png,sha256=SG1nFvJ3kWs5F3XXZxnkE-UnXCWY0Mz-EqTeU0nhs30,197173
265
- khoj/interface/web/assets/samples/desktop-remember-plan-sample.png,sha256=i9QOSuWE6wKPP-qWcZisBrT3P7kRwq0yXKv7bV-kOSw,268309
266
- khoj/interface/web/assets/samples/phone-browse-draw-sample.png,sha256=Dd4fPwtFl6BWqnHjeb1mCK_ND0hhHsWtx8sNE7EiMuE,406179
267
- khoj/interface/web/assets/samples/phone-plain-chat-sample.png,sha256=DEDaNRCkfEWUeh3kYZWIQDTVK1a6KKnYdwj5ZWisN_Q,82985
268
- khoj/interface/web/assets/samples/phone-remember-plan-sample.png,sha256=Ma3blirRmq3X4oYSsDbbT7MDn29rymDrjwmUfA9BMuM,236285
269
271
  khoj/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
270
272
  khoj/migrations/migrate_offline_chat_default_model.py,sha256=AQE4a9Lrj4bOgN6iyNl2S3NtKc0_sau-vkBQ96rDQFA,1928
271
273
  khoj/migrations/migrate_offline_chat_default_model_2.py,sha256=Ybk9w7EAKpHzMo7uvDAwxy80emT5XhGAaD_IJwtNUpw,2034
@@ -275,7 +277,7 @@ khoj/migrations/migrate_processor_config_openai.py,sha256=FfeUU2JPQMtlr1iYoc4Cer
275
277
  khoj/migrations/migrate_server_pg.py,sha256=b6ULFFBEF__W10YpgF28deKoOzGqDbdvyL4nBdj3eNU,5015
276
278
  khoj/migrations/migrate_version.py,sha256=6CTsLuxiLnFVF8A7CjsIz3PcnJd8fAOZeIx6tTu6Vgg,569
277
279
  khoj/processor/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
278
- khoj/processor/embeddings.py,sha256=80irR_-dxQJ3LVTGUgaC1QyyCqyJ2CDUZ131u_rDLA0,5149
280
+ khoj/processor/embeddings.py,sha256=MUUNvv_2zDmm5auOhEyU_uAcl6wvdrUsTvpT7UbSMQ8,5262
279
281
  khoj/processor/content/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
280
282
  khoj/processor/content/text_to_entries.py,sha256=Oa4Ny8c5S1_IGCmjCtUI45hX1fPTRwxXhHg1lHFqHy8,14537
281
283
  khoj/processor/content/docx/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -295,33 +297,33 @@ khoj/processor/content/pdf/pdf_to_entries.py,sha256=OE90osFchohih3RYvDmZepbtzWoG
295
297
  khoj/processor/content/plaintext/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
296
298
  khoj/processor/content/plaintext/plaintext_to_entries.py,sha256=97i7Cm0DTY7jW4iqKOT_oVc2ooa_XhQ8iImsljp1Kek,4994
297
299
  khoj/processor/conversation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
298
- khoj/processor/conversation/prompts.py,sha256=8X0FzJ8iZR0lTdNtCv0WmGPTm4EyP-YZiKJsluZkC9g,32086
300
+ khoj/processor/conversation/prompts.py,sha256=TGMniRnekGkJ2h6k2eCMqrUR5CE8AW8hixMUyKrZY4I,33527
299
301
  khoj/processor/conversation/utils.py,sha256=_uWu1nxcY-Cv2ip-TBdyqepUkMYhijvzjnproumvzXk,10586
300
302
  khoj/processor/conversation/anthropic/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
301
- khoj/processor/conversation/anthropic/anthropic_chat.py,sha256=7yBlY26PNI4wzwHph4TTQ_tJlLmoNjiXyhzHPJeUVmI,7887
303
+ khoj/processor/conversation/anthropic/anthropic_chat.py,sha256=fOT75wfC4r53M_tGDL6T7kvnRekZbdVM3jvvl3ohH9w,8108
302
304
  khoj/processor/conversation/anthropic/utils.py,sha256=uc9d_gIk4Ux2NRlkw3FP9L9KeLRoUI7nC_qb2Qp6d_4,3253
303
305
  khoj/processor/conversation/offline/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
304
- khoj/processor/conversation/offline/chat_model.py,sha256=7OIexLDXfdyF2jk-JFMqojNW-grlc2jtCt1zxCO-VAY,9349
306
+ khoj/processor/conversation/offline/chat_model.py,sha256=twkCgnPGvPYxwvp1EWrS4F6k0zG6kigVfmqmfYrO26M,9741
305
307
  khoj/processor/conversation/offline/utils.py,sha256=n2T3vwAIZnSe9-UN1VORLPrLEUcamXXE9isL2ie-9R8,3033
306
308
  khoj/processor/conversation/offline/whisper.py,sha256=DJI-8y8DULO2cQ49m2VOvRyIZ2TxBypc15gM8O3HuMI,470
307
309
  khoj/processor/conversation/openai/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
308
- khoj/processor/conversation/openai/gpt.py,sha256=bbEyiOeRgko65bLsFHNlkMw1cvbiawQsjmDipCpy0E4,7111
309
- khoj/processor/conversation/openai/utils.py,sha256=UCfu-dHnkgcKxMajUaWnlxW5Zdidqecv5jIdmimie6o,4067
310
+ khoj/processor/conversation/openai/gpt.py,sha256=KHkTVo8cpEhTc01HDSwQfQSoI81nmx14A-nYep50_do,7312
311
+ khoj/processor/conversation/openai/utils.py,sha256=ozEsdrfm12yoi7XqXIgzF3QpKz2LSkXJ_Q9tn5hV4TQ,4131
310
312
  khoj/processor/conversation/openai/whisper.py,sha256=RuwDtxSJrVWYdZz4aVnk0XiMQy9w8W9lFcVfE0hMiFY,432
311
313
  khoj/processor/speech/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
312
314
  khoj/processor/speech/text_to_speech.py,sha256=Q7sapi5Hv6woXOumtrGqR0t6izZrFBkWXFOGrHM6dJ4,1929
313
315
  khoj/processor/tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
314
- khoj/processor/tools/online_search.py,sha256=cQZ6Aw7Kg0QXCthK4Vdn3gtF2K9GtUZmCkbxWYC_hJw,9620
316
+ khoj/processor/tools/online_search.py,sha256=0FcUwGbD91bhfBgIbEvW-kRflisbG-cZyZlznlSYI5w,9727
315
317
  khoj/routers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
316
- khoj/routers/api.py,sha256=Zbr81RHU00SQxRbbFlYM_gT81oLb3lAXoksj-I1-pPg,25066
318
+ khoj/routers/api.py,sha256=I-mQ6FSXw99yIRGMNDB_YQbqN82YE69WImnKjdeRvpM,25619
317
319
  khoj/routers/api_agents.py,sha256=ks8QzjmZiio6j1QGi6xFtDmVxd9lvC6LPB-WcDPnF8o,1525
318
- khoj/routers/api_chat.py,sha256=k5E6X6qcL7ULLrMrO_cPnYraJBFFaJOYMIcfNiBSKnM,35502
320
+ khoj/routers/api_chat.py,sha256=ii-eeS9vYvX2kc4_5Ss7F5hrH0JQD-UVO9Jg_2adF8Q,35503
319
321
  khoj/routers/api_content.py,sha256=OfY05ggRmg0FuVWzodBfV_5Gc6UbGCfchiIk8eqKA2o,17387
320
322
  khoj/routers/api_model.py,sha256=5m7JWwgd9jILiLivRu7NEyY2E-tUkqoEkGg6j6uM1g0,4646
321
323
  khoj/routers/api_phone.py,sha256=p9yfc4WeMHDC0hg3aQk60a2VBy8rZPdEnz9wdJ7DzkU,2208
322
324
  khoj/routers/auth.py,sha256=pCOLSRihJWcn097DRPxLjPdlejsjHJFRs9jHIzLujZU,6247
323
- khoj/routers/email.py,sha256=hhxyLdmgSUfeHTXTco7g4aWDAEaVzF82mV-hshxzHsg,3695
324
- khoj/routers/helpers.py,sha256=mw94UTGrcGC7wtSMRx2AaZ9WfsrSNaa-HxDHBtdn5GU,62566
325
+ khoj/routers/email.py,sha256=jA4jDTrYHUpY7mFHL4himeRlTBLRQmQKHqC91Dw1Zu0,3730
326
+ khoj/routers/helpers.py,sha256=9N6Pgh1BPKBKsD_2Hnvdy_M7Z40e4_ci6lpnqo1cZKw,63307
325
327
  khoj/routers/notion.py,sha256=0iG_DPVjg8n_LBWGHA8M6eHnJJDL-isARSEHTYStz6c,2809
326
328
  khoj/routers/storage.py,sha256=9ZfBsr_omxdFV-Lcj6p30xTQcF_7wwCZ9XFJukzjITE,1429
327
329
  khoj/routers/subscription.py,sha256=qEyV7m7mrY6MGtaij8W3v61tpzX2a7ydm2B-E8h_R-M,4285
@@ -330,7 +332,7 @@ khoj/routers/web_client.py,sha256=-bmzl6yCLgYxCnyIOYS0DePNZtcC5z2k0lk-EmbK2pg,47
330
332
  khoj/search_filter/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
331
333
  khoj/search_filter/base_filter.py,sha256=BzoZA_wAUg_eZ5vhaaipwVTSG0ZMxWCHxHsZrzo4KS0,358
332
334
  khoj/search_filter/date_filter.py,sha256=4VL63kDVqYKFOzkCeV6R8Z8lxFaAbbn_z_RWaWQNDWY,10103
333
- khoj/search_filter/file_filter.py,sha256=1b6xgFqBNB6ZvQFbEXERdTEYV6PDxfHpUVbnz3aFaws,939
335
+ khoj/search_filter/file_filter.py,sha256=tHYW-ibaENf_jrJ88kiO_xhrPZb6FQLtngG9ISTB6h8,1168
334
336
  khoj/search_filter/word_filter.py,sha256=5Yx95aSiqGke9kEIbp8T-Ak4dS9cTd3VxI1SaJoK1wY,1005
335
337
  khoj/search_type/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
336
338
  khoj/search_type/text_search.py,sha256=AEDBbkjMwDieDiz6_Bdaoq0cywIova1Uz6V1O-XRldQ,8939
@@ -346,8 +348,8 @@ khoj/utils/models.py,sha256=Q5tcC9-z25sCiub048fLnvZ6_IIO1bcPNxt5payekk0,2009
346
348
  khoj/utils/rawconfig.py,sha256=luk7Vb_ODuoTdMd_IG-yVXGoyoU-RktyapBG5D1N_VI,3985
347
349
  khoj/utils/state.py,sha256=x4GTewP1YhOA6c_32N4wOjnV-3AA3xG_qbY1-wC2Uxc,1559
348
350
  khoj/utils/yaml.py,sha256=H0mfw0ZvBFUvFmCQn8pWkfxdmIebsrSykza7D8Wv6wQ,1430
349
- khoj-1.20.3.dev13.dist-info/METADATA,sha256=bLa1OAPW2qlfJ5pIRZLC5bD3fK6azbj1yWU-eKJQr_U,6876
350
- khoj-1.20.3.dev13.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
351
- khoj-1.20.3.dev13.dist-info/entry_points.txt,sha256=KBIcez5N_jCgq_ER4Uxf-e1lxTBMTE_BBjMwwfeZyAg,39
352
- khoj-1.20.3.dev13.dist-info/licenses/LICENSE,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
353
- khoj-1.20.3.dev13.dist-info/RECORD,,
351
+ khoj-1.20.5.dev10.dist-info/METADATA,sha256=wbFJ-w-s2VHuICfUHZBBG5yvtolH53pc82vlKsbEYrg,6876
352
+ khoj-1.20.5.dev10.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
353
+ khoj-1.20.5.dev10.dist-info/entry_points.txt,sha256=KBIcez5N_jCgq_ER4Uxf-e1lxTBMTE_BBjMwwfeZyAg,39
354
+ khoj-1.20.5.dev10.dist-info/licenses/LICENSE,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
355
+ khoj-1.20.5.dev10.dist-info/RECORD,,
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9178],{89178:function(e,t,a){"use strict";a.d(t,{H:function(){return Q},Z:function(){return X}});var n=a(57437),s=a(34531),o=a.n(s),l=a(14944),r=a(39952),c=a.n(r),i=a(2265);a(7395);var d=a(26100),h=a(36013),u=a(13304),m=a(12218),g=a(74697),p=a(37440);let f=u.fC,x=u.xz;u.x8;let w=u.h_,j=i.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,n.jsx)(u.aV,{className:(0,p.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",a),...s,ref:t})});j.displayName=u.aV.displayName;let y=(0,m.j)("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),b=i.forwardRef((e,t)=>{let{side:a="right",className:s,children:o,...l}=e;return(0,n.jsxs)(w,{children:[(0,n.jsx)(j,{}),(0,n.jsxs)(u.VY,{ref:t,className:(0,p.cn)(y({side:a}),s),...l,children:[o,(0,n.jsxs)(u.x8,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[(0,n.jsx)(g.Z,{className:"h-4 w-4"}),(0,n.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});b.displayName=u.VY.displayName;let k=e=>{let{className:t,...a}=e;return(0,n.jsx)("div",{className:(0,p.cn)("flex flex-col space-y-2 text-center sm:text-left",t),...a})};k.displayName="SheetHeader";let C=i.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,n.jsx)(u.Dx,{ref:t,className:(0,p.cn)("text-lg font-semibold text-foreground",a),...s})});C.displayName=u.Dx.displayName;let N=i.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,n.jsx)(u.dk,{ref:t,className:(0,p.cn)("text-sm text-muted-foreground",a),...s})});N.displayName=u.dk.displayName;var M=a(19573),v=a(11838),_=a.n(v),R=a(89417);let E=new l.Z({html:!0,linkify:!0,typographer:!0});function T(e){let t=(0,R.L)(e.title||".txt","w-6 h-6 text-muted-foreground inline-flex mr-2"),a=function(e){let t=["org","md","markdown"].includes(e.title.split(".").pop()||"")?e.content.split("\n").slice(1).join("\n"):e.content;return e.showFullContent?_().sanitize(E.render(t)):_().sanitize(t)}(e),[s,o]=(0,i.useState)(!1);return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(M.J2,{open:s&&!e.showFullContent,onOpenChange:o,children:[(0,n.jsx)(M.xo,{asChild:!0,children:(0,n.jsxs)(h.Zb,{onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),className:"".concat(e.showFullContent?"w-auto":"w-[200px]"," overflow-hidden break-words text-balance rounded-lg p-2 bg-muted border-none"),children:[(0,n.jsxs)("h3",{className:"".concat(e.showFullContent?"block":"line-clamp-1"," text-muted-foreground}"),children:[t,e.title]}),(0,n.jsx)("p",{className:"".concat(e.showFullContent?"block":"overflow-hidden line-clamp-2"),dangerouslySetInnerHTML:{__html:a}})]})}),(0,n.jsx)(M.yk,{className:"w-[400px] mx-2",children:(0,n.jsxs)(h.Zb,{className:"w-auto overflow-hidden break-words text-balance rounded-lg p-2 border-none",children:[(0,n.jsxs)("h3",{className:"line-clamp-2 text-muted-foreground}",children:[t,e.title]}),(0,n.jsx)("p",{className:"overflow-hidden line-clamp-3",dangerouslySetInnerHTML:{__html:a}})]})})]})})}function D(e){let[t,a]=(0,i.useState)(!1);if(!e.link||e.link.split(" ").length>1)return null;let s="https://www.google.com/s2/favicons?domain=globe",o="unknown";try{o=new URL(e.link).hostname,s="https://www.google.com/s2/favicons?domain=".concat(o)}catch(t){return console.warn("Error parsing domain from link: ".concat(e.link)),null}return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(M.J2,{open:t&&!e.showFullContent,onOpenChange:a,children:[(0,n.jsx)(M.xo,{asChild:!0,children:(0,n.jsx)(h.Zb,{onMouseEnter:()=>{a(!0)},onMouseLeave:()=>{a(!1)},className:"".concat(e.showFullContent?"w-auto":"w-[200px]"," overflow-hidden break-words rounded-lg text-balance p-2 bg-muted border-none"),children:(0,n.jsx)("div",{className:"flex flex-col",children:(0,n.jsxs)("a",{href:e.link,target:"_blank",rel:"noreferrer",className:"!no-underline p-2",children:[(0,n.jsxs)("div",{className:"flex items-center",children:[(0,n.jsx)("img",{src:s,alt:"",className:"!w-4 h-4 mr-2"}),(0,n.jsx)("h3",{className:"overflow-hidden ".concat(e.showFullContent?"block":"line-clamp-1"," text-muted-foreground"),children:o})]}),(0,n.jsx)("h3",{className:"overflow-hidden ".concat(e.showFullContent?"block":"line-clamp-1"," font-bold"),children:e.title}),(0,n.jsx)("p",{className:"overflow-hidden ".concat(e.showFullContent?"block":"line-clamp-2"),children:e.description})]})})})}),(0,n.jsx)(M.yk,{className:"w-[400px] mx-2",children:(0,n.jsx)(h.Zb,{className:"w-auto overflow-hidden break-words text-balance rounded-lg border-none",children:(0,n.jsx)("div",{className:"flex flex-col",children:(0,n.jsxs)("a",{href:e.link,target:"_blank",rel:"noreferrer",className:"!no-underline p-2",children:[(0,n.jsxs)("div",{className:"flex items-center",children:[(0,n.jsx)("img",{src:s,alt:"",className:"!w-4 h-4 mr-2"}),(0,n.jsx)("h3",{className:"overflow-hidden ".concat(e.showFullContent?"block":"line-clamp-2"," text-muted-foreground"),children:o})]}),(0,n.jsx)("h3",{className:"overflow-hidden ".concat(e.showFullContent?"block":"line-clamp-2"," font-bold"),children:e.title}),(0,n.jsx)("p",{className:"overflow-hidden ".concat(e.showFullContent?"block":"line-clamp-3"),children:e.description})]})})})})]})})}function L(e){let[t,a]=(0,i.useState)(3);(0,i.useEffect)(()=>{a(e.isMobileWidth?1:3)},[e.isMobileWidth]);let s=e.notesReferenceCardData.slice(0,t),o=s.length<t?e.onlineReferenceCardData.slice(0,t-s.length):[],l=e.notesReferenceCardData.length>0||e.onlineReferenceCardData.length>0,r=e.notesReferenceCardData.length+e.onlineReferenceCardData.length;return 0===r?null:(0,n.jsxs)("div",{className:"pt-0 px-4 pb-4 md:px-6",children:[(0,n.jsxs)("h3",{className:"inline-flex items-center",children:["References",(0,n.jsxs)("p",{className:"text-gray-400 m-2",children:[r," sources"]})]}),(0,n.jsxs)("div",{className:"flex flex-wrap gap-2 w-auto mt-2",children:[s.map((e,t)=>(0,i.createElement)(T,{showFullContent:!1,...e,key:"".concat(e.title,"-").concat(t)})),o.map((e,t)=>(0,i.createElement)(D,{showFullContent:!1,...e,key:"".concat(e.title,"-").concat(t)})),l&&(0,n.jsx)(F,{notesReferenceCardData:e.notesReferenceCardData,onlineReferenceCardData:e.onlineReferenceCardData})]})]})}function F(e){return e.notesReferenceCardData||e.onlineReferenceCardData?(0,n.jsxs)(f,{children:[(0,n.jsxs)(x,{className:"text-balance w-auto md:w-[200px] justify-start overflow-hidden break-words p-0 bg-transparent border-none text-gray-400 align-middle items-center !m-2 inline-flex",children:["View references",(0,n.jsx)(d.o,{className:"m-1"})]}),(0,n.jsxs)(b,{className:"overflow-y-scroll",children:[(0,n.jsxs)(k,{children:[(0,n.jsx)(C,{children:"References"}),(0,n.jsx)(N,{children:"View all references for this response"})]}),(0,n.jsxs)("div",{className:"flex flex-wrap gap-2 w-auto mt-2",children:[e.notesReferenceCardData.map((e,t)=>(0,i.createElement)(T,{showFullContent:!0,...e,key:"".concat(e.title,"-").concat(t)})),e.onlineReferenceCardData.map((e,t)=>(0,i.createElement)(D,{showFullContent:!0,...e,key:"".concat(e.title,"-").concat(t)}))]})]})]}):null}var B=a(34149),S=a(29386),H=a(31784),O=a(60665),A=a(96006),Z=a(18444),q=a(35304),$=a(8589),P=a(63205),W=a(92880),z=a(48408),G=a(67722),I=a(58485),U=a(58575),V=a(25800);let Y=new l.Z({html:!0,linkify:!0,typographer:!0});function J(e,t,a){fetch("/api/chat/feedback",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({uquery:e,kquery:t,sentiment:a})})}function K(e){let{uquery:t,kquery:a}=e;return(0,n.jsxs)("div",{className:"".concat(o().feedbackButtons," flex align-middle justify-center items-center"),children:[(0,n.jsx)("button",{title:"Like",className:o().thumbsUpButton,onClick:()=>J(t,a,"positive"),children:(0,n.jsx)(B.V,{alt:"Like Message",color:"hsl(var(--muted-foreground))"})}),(0,n.jsx)("button",{title:"Dislike",className:o().thumbsDownButton,onClick:()=>J(t,a,"negative"),children:(0,n.jsx)(S.L,{alt:"Dislike Message",color:"hsl(var(--muted-foreground))"})})]})}function Q(e){let t=e.message.match(/\*\*(.*)\*\*/),a=function(e,t){let a=e.toLowerCase(),s="inline mt-1 mr-2 ".concat(t," h-4 w-4");return a.includes("understanding")?(0,n.jsx)(H.a,{className:"".concat(s)}):a.includes("generating")?(0,n.jsx)(O.Z,{className:"".concat(s)}):a.includes("data sources")||a.includes("notes")?(0,n.jsx)(A.g,{className:"".concat(s)}):a.includes("read")?(0,n.jsx)(Z.f,{className:"".concat(s)}):a.includes("search")?(0,n.jsx)(q.Y,{className:"".concat(s)}):a.includes("summary")||a.includes("summarize")||a.includes("enhanc")?(0,n.jsx)($.u,{className:"".concat(s)}):a.includes("paint")?(0,n.jsx)(P.Y,{className:"".concat(s)}):(0,n.jsx)(H.a,{className:"".concat(s)})}(t?t[1]:"",e.primary?(0,U.oz)(e.agentColor):"text-gray-500"),s=_().sanitize(Y.render(e.message));return(0,n.jsxs)("div",{className:"".concat(o().trainOfThoughtElement," items-center ").concat(e.primary?"text-gray-400":"text-gray-300"," ").concat(o().trainOfThought," ").concat(e.primary?o().primary:""),children:[a,(0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:s}})]})}function X(e){var t,a;let s,l,r,c,d;let[h,u]=(0,i.useState)(!1),[m,g]=(0,i.useState)(!1),[p,f]=(0,i.useState)(""),[x,w]=(0,i.useState)(!1),[j,y]=(0,i.useState)(!1),b=(0,i.useRef)(!1),k=(0,i.useRef)(null);if((0,i.useEffect)(()=>{b.current=j},[j]),(0,i.useEffect)(()=>{let e=new MutationObserver((e,t)=>{if(k.current)for(let t of e)"childList"===t.type&&t.addedNodes.length>0&&(0,V.Z)(k.current,{delimiters:[{left:"$$",right:"$$",display:!0},{left:"\\[",right:"\\]",display:!0},{left:"$",right:"$",display:!1},{left:"\\(",right:"\\)",display:!1}]})});return k.current&&e.observe(k.current,{childList:!0}),()=>e.disconnect()},[k.current]),(0,i.useEffect)(()=>{var t;let a=e.chatMessage.message;a=a.replace(/\\\(/g,"LEFTPAREN").replace(/\\\)/g,"RIGHTPAREN").replace(/\\\[/g,"LEFTBRACKET").replace(/\\\]/g,"RIGHTBRACKET"),e.chatMessage.intent&&"text-to-image"==e.chatMessage.intent.type?a="![generated image](data:image/png;base64,".concat(a,")"):e.chatMessage.intent&&"text-to-image2"==e.chatMessage.intent.type?a="![generated image](".concat(a,")"):e.chatMessage.intent&&"text-to-image-v3"==e.chatMessage.intent.type&&(a="![generated image](data:image/webp;base64,".concat(a,")")),e.chatMessage.intent&&e.chatMessage.intent.type.includes("text-to-image")&&(null===(t=e.chatMessage.intent["inferred-queries"])||void 0===t?void 0:t.length)>0&&(a+="\n\n**Inferred Query**\n\n".concat(e.chatMessage.intent["inferred-queries"][0]));let n=Y.render(a);n=n.replace(/LEFTPAREN/g,"\\(").replace(/RIGHTPAREN/g,"\\)").replace(/LEFTBRACKET/g,"\\[").replace(/RIGHTBRACKET/g,"\\]"),f(_().sanitize(n))},[e.chatMessage.message,e.chatMessage.intent]),(0,i.useEffect)(()=>{h&&setTimeout(()=>{u(!1)},2e3)},[h]),(0,i.useEffect)(()=>{k.current&&(k.current.querySelectorAll("pre > .hljs").forEach(e=>{let t=document.createElement("button"),a=document.createElement("img");a.src="/static/copy-button.svg",a.alt="Copy",a.width=24,a.height=24,t.appendChild(a),t.className="hljs ".concat(o().codeCopyButton),t.addEventListener("click",()=>{let t=e.textContent||"";t=(t=(t=t.replace(/^\$+/,"")).replace(/^Copy/,"")).trim(),navigator.clipboard.writeText(t),a.src="/static/copy-button-success.svg"}),e.prepend(t)}),console.log("render katex within the chat message"),(0,V.Z)(k.current,{delimiters:[{left:"$$",right:"$$",display:!0},{left:"\\[",right:"\\]",display:!0},{left:"$",right:"$",display:!1},{left:"\\(",right:"\\)",display:!1}]}))},[p,m,k]),!e.chatMessage.message)return null;async function C(){let t=e.chatMessage.message.match(/[^.!?]+[.!?]*/g)||[];if(!t||0===t.length||!t[0])return;w(!0);let a=N(t[0]);for(let e=0;e<t.length&&!b.current;e++){let n=a;e<t.length-1&&(a=N(t[e+1]));try{let e=await n,t=URL.createObjectURL(e);await function(e){return new Promise((t,a)=>{let n=new Audio(e);n.onended=t,n.onerror=a,n.play()})}(t)}catch(e){console.error("Error:",e);break}}w(!1),y(!1)}async function N(e){let t=await fetch("/api/chat/speech?text=".concat(encodeURIComponent(e)),{method:"POST",headers:{"Content-Type":"application/json"}});if(!t.ok)throw Error("Network response was not ok");return await t.blob()}let M=function(e,t){let a=[],n=[];if(t){let e=[];for(let[a,n]of Object.entries(t)){if(n.answerBox&&e.push({title:n.answerBox.title,description:n.answerBox.answer,link:n.answerBox.source}),n.knowledgeGraph&&e.push({title:n.knowledgeGraph.title,description:n.knowledgeGraph.description,link:n.knowledgeGraph.descriptionLink}),n.webpages){if(n.webpages instanceof Array){let t=n.webpages.map(e=>({title:e.query,description:e.snippet,link:e.link}));e.push(...t)}else{let t=n.webpages;e.push({title:t.query,description:t.snippet,link:t.link})}}if(n.organic){let t=n.organic.map(e=>({title:e.title,description:e.snippet,link:e.link}));e.push(...t)}}a.push(...e)}if(e){let t=e.map(e=>e.compiled?{title:e.file,content:e.compiled}:{title:e.split("\n")[0],content:e.split("\n").slice(1).join("\n")});n.push(...t)}return{notesReferenceCardData:n,onlineReferenceCardData:a}}(e.chatMessage.context,e.chatMessage.onlineContext);return(0,n.jsxs)("div",{className:(t=e.chatMessage,(s=[o().chatMessageContainer,"shadow-md"]).push(o()[t.by]),e.customClassName&&s.push(o()["".concat(t.by).concat(e.customClassName)]),s.join(" ")),onMouseLeave:e=>g(!1),onMouseEnter:e=>g(!0),onClick:"khoj"===e.chatMessage.by?e=>void 0:void 0,children:[(0,n.jsx)("div",{className:(a=e.chatMessage,(l=[o().chatMessageWrapper]).push(o()[a.by]),"khoj"===a.by&&l.push("border-l-4 border-opacity-50 ".concat("border-l-"+e.borderLeftColor)),l.join(" ")),children:(0,n.jsx)("div",{ref:k,className:o().chatMessage,dangerouslySetInnerHTML:{__html:p}})}),(0,n.jsx)("div",{className:o().teaserReferencesContainer,children:(0,n.jsx)(L,{isMobileWidth:e.isMobileWidth,notesReferenceCardData:M.notesReferenceCardData,onlineReferenceCardData:M.onlineReferenceCardData})}),(0,n.jsx)("div",{className:o().chatFooter,children:(m||e.isMobileWidth||e.isLastMessage||x)&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{title:(c=(r=new Date(e.chatMessage.created+"Z")).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!0}).toUpperCase(),d=r.toLocaleString("en-US",{year:"numeric",month:"short",day:"2-digit"}).replaceAll("-"," "),"".concat(c," on ").concat(d)),className:"text-gray-400 relative top-0 left-4",children:function(e){e.endsWith("Z")||(e+="Z");let t=new Date(e),a=new Date().getTime()-t.getTime();return a<6e4?"Just now":a<36e5?"".concat(Math.round(a/6e4),"m ago"):a<864e5?"".concat(Math.round(a/36e5),"h ago"):"".concat(Math.round(a/864e5),"d ago")}(e.chatMessage.created)}),(0,n.jsxs)("div",{className:"".concat(o().chatButtons," shadow-sm"),children:["khoj"===e.chatMessage.by&&(x?j?(0,n.jsx)(I.l,{iconClassName:"p-0",className:"m-0"}):(0,n.jsx)("button",{title:"Pause Speech",onClick:e=>y(!0),children:(0,n.jsx)(W.d,{alt:"Pause Message",color:"hsl(var(--muted-foreground))"})}):(0,n.jsx)("button",{title:"Speak",onClick:e=>C(),children:(0,n.jsx)(z.j,{alt:"Speak Message",color:"hsl(var(--muted-foreground))"})})),(0,n.jsx)("button",{title:"Copy",className:"".concat(o().copyButton),onClick:()=>{navigator.clipboard.writeText(e.chatMessage.message),u(!0)},children:h?(0,n.jsx)(G.C,{alt:"Copied Message",weight:"fill",color:"green"}):(0,n.jsx)(G.C,{alt:"Copy Message",color:"hsl(var(--muted-foreground))"})}),"khoj"===e.chatMessage.by&&(e.chatMessage.intent?(0,n.jsx)(K,{uquery:e.chatMessage.intent.query,kquery:e.chatMessage.message}):(0,n.jsx)(K,{uquery:e.chatMessage.rawQuery||e.chatMessage.message,kquery:e.chatMessage.message}))]})]})})]})}Y.use(c(),{inline:!0,code:!0})},34531:function(e){e.exports={chatMessageContainer:"chatMessage_chatMessageContainer__sAivf",chatMessageWrapper:"chatMessage_chatMessageWrapper__u5m8A",khojfullHistory:"chatMessage_khojfullHistory__NPu2l",youfullHistory:"chatMessage_youfullHistory__ioyfH",you:"chatMessage_you__6GUC4",khoj:"chatMessage_khoj__cjWON",khojChatMessage:"chatMessage_khojChatMessage__BabQz",author:"chatMessage_author__muRtC",chatFooter:"chatMessage_chatFooter__0vR8s",chatButtons:"chatMessage_chatButtons__Lbk8T",codeCopyButton:"chatMessage_codeCopyButton__Y_Ujv",feedbackButtons:"chatMessage_feedbackButtons___Brdy",copyButton:"chatMessage_copyButton__jd7q7",trainOfThought:"chatMessage_trainOfThought__mR2Gg",primary:"chatMessage_primary__WYPEb",trainOfThoughtElement:"chatMessage_trainOfThoughtElement__le_bC"}}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4371],{2743:function(e,t,a){Promise.resolve().then(a.bind(a,40393))},40393:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return eP}});var s=a(57437),n=a(29039),r=a(58485),o=a(36013),i=a(50495),l=a(2265),c=a(77539),d=a(42421),u=a(14392),m=a(22468),h=a(37440);let x=c.fC;c.ZA;let f=c.B4,p=l.forwardRef((e,t)=>{let{className:a,children:n,...r}=e;return(0,s.jsxs)(c.xz,{ref:t,className:(0,h.cn)("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",a),...r,children:[n,(0,s.jsx)(c.JO,{asChild:!0,children:(0,s.jsx)(d.Z,{className:"h-4 w-4 opacity-50"})})]})});p.displayName=c.xz.displayName;let g=l.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,s.jsx)(c.u_,{ref:t,className:(0,h.cn)("flex cursor-default items-center justify-center py-1",a),...n,children:(0,s.jsx)(u.Z,{className:"h-4 w-4"})})});g.displayName=c.u_.displayName;let j=l.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,s.jsx)(c.$G,{ref:t,className:(0,h.cn)("flex cursor-default items-center justify-center py-1",a),...n,children:(0,s.jsx)(d.Z,{className:"h-4 w-4"})})});j.displayName=c.$G.displayName;let y=l.forwardRef((e,t)=>{let{className:a,children:n,position:r="popper",...o}=e;return(0,s.jsx)(c.h_,{children:(0,s.jsxs)(c.VY,{ref:t,className:(0,h.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===r&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",a),position:r,...o,children:[(0,s.jsx)(g,{}),(0,s.jsx)(c.l_,{className:(0,h.cn)("p-1","popper"===r&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:n}),(0,s.jsx)(j,{})]})})});y.displayName=c.VY.displayName,l.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,s.jsx)(c.__,{ref:t,className:(0,h.cn)("py-1.5 pl-8 pr-2 text-sm font-semibold",a),...n})}).displayName=c.__.displayName;let w=l.forwardRef((e,t)=>{let{className:a,children:n,...r}=e;return(0,s.jsxs)(c.ck,{ref:t,className:(0,h.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),...r,children:[(0,s.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,s.jsx)(c.wU,{children:(0,s.jsx)(m.Z,{className:"h-4 w-4"})})}),(0,s.jsx)(c.eT,{children:n})]})});w.displayName=c.ck.displayName,l.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,s.jsx)(c.Z0,{ref:t,className:(0,h.cn)("-mx-1 my-1 h-px bg-muted",a),...n})}).displayName=c.Z0.displayName;var v=a(18760),b=a.n(v),N=a(31014),D=a(39343),S=a(59772),C=a(71538),k=a(67135);let _=D.RV,A=l.createContext({}),I=e=>{let{...t}=e;return(0,s.jsx)(A.Provider,{value:{name:t.name},children:(0,s.jsx)(D.Qr,{...t})})},M=()=>{let e=l.useContext(A),t=l.useContext(T),{getFieldState:a,formState:s}=(0,D.Gc)(),n=a(e.name,s);if(!e)throw Error("useFormField should be used within <FormField>");let{id:r}=t;return{id:r,name:e.name,formItemId:"".concat(r,"-form-item"),formDescriptionId:"".concat(r,"-form-item-description"),formMessageId:"".concat(r,"-form-item-message"),...n}},T=l.createContext({}),R=l.forwardRef((e,t)=>{let{className:a,...n}=e,r=l.useId();return(0,s.jsx)(T.Provider,{value:{id:r},children:(0,s.jsx)("div",{ref:t,className:(0,h.cn)("space-y-2",a),...n})})});R.displayName="FormItem";let L=l.forwardRef((e,t)=>{let{className:a,...n}=e,{error:r,formItemId:o}=M();return(0,s.jsx)(k._,{ref:t,className:(0,h.cn)(r&&"text-destructive",a),htmlFor:o,...n})});L.displayName="FormLabel";let O=l.forwardRef((e,t)=>{let{...a}=e,{error:n,formItemId:r,formDescriptionId:o,formMessageId:i}=M();return(0,s.jsx)(C.g7,{ref:t,id:r,"aria-describedby":n?"".concat(o," ").concat(i):"".concat(o),"aria-invalid":!!n,...a})});O.displayName="FormControl";let P=l.forwardRef((e,t)=>{let{className:a,...n}=e,{formDescriptionId:r}=M();return(0,s.jsx)("p",{ref:t,id:r,className:(0,h.cn)("text-sm text-muted-foreground",a),...n})});P.displayName="FormDescription";let z=l.forwardRef((e,t)=>{let{className:a,children:n,...r}=e,{error:o,formMessageId:i}=M(),l=o?String(null==o?void 0:o.message):n;return l?(0,s.jsx)("p",{ref:t,id:i,className:(0,h.cn)("text-sm font-medium text-destructive",a),...r,children:l}):null});z.displayName="FormMessage";var q=a(83102),W=a(90837),E=a(13304),U=a(93146),V=a(69591),F=a(23611),Z=a.n(F),B=a(18642),G=a(16463),Y=a(19573),$=a(20319),H=a(22049),K=a(55362),Q=a(13537),X=a(76082),J=a(52674),ee=a(23751),et=a(83522),ea=a(8837),es=a(21819),en=a(35418),er=a(64945),eo=a(79306),ei=a(66820),el=a(35657),ec=a(50151),ed=a(47412),eu=a(48861),em=a(7951);let eh=()=>window.fetch("/api/automations").then(e=>e.json()).catch(e=>console.log(e));function ex(e){let t=e.split(" "),a=t[2],s=t[4];return"*"===a&&"*"===s?"Day":"*"!==s?"Week":"*"!==a?"Month":"Day"}function ef(e){let t=e.split(" ");if("*"===t[3]&&"*"!==t[4])return Number(t[4])}function ep(e){let t=e.split(" "),a=t[1],s=t[0],n=Number(a)>=12?"PM":"AM",r=Number(a)>12?Number(a)-12:a;"00"===r&&(r="12");let o=s;return 10>Number(o)&&"00"!==o&&(o="0".concat(o)),"".concat(r,":").concat(o," ").concat(n)}function eg(e){return String(e.split(" ")[2])}function ej(e){return b().toString(e)}let ey=["Day","Week","Month"],ew=Array.from({length:31},(e,t)=>String(t+1)),ev=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],eb=[],eN=["AM","PM"];for(var eD=0;eD<eN.length;eD++)for(var eS=0;eS<12;eS++)for(var eC=0;eC<60;eC+=15){let e=String(eC).padStart(2,"0"),t=0===eS?12:eS;eb.push("".concat(t,":").concat(e," ").concat(eN[eD]))}let ek=Date.now(),e_=[{subject:"Weekly Newsletter",query_to_run:"Compile a message including: 1. A recap of news from last week 2. An at-home workout I can do before work 3. A quote to inspire me for the week ahead",schedule:"9AM every Monday",next:"Next run at 9AM on Monday",crontime:"0 9 * * 1",id:ek,scheduling_request:""},{subject:"Daily Bedtime Story",query_to_run:"Compose a bedtime story that a five-year-old might enjoy. It should not exceed five paragraphs. Appeal to the imagination, but weave in learnings.",schedule:"9PM every night",next:"Next run at 9PM today",crontime:"0 21 * * *",id:ek+1,scheduling_request:""},{subject:"Front Page of Hacker News",query_to_run:"Summarize the top 5 posts from https://news.ycombinator.com/best and share them with me, including links",schedule:"9PM on every Wednesday",next:"Next run at 9PM on Wednesday",crontime:"0 21 * * 3",id:ek+2,scheduling_request:""},{subject:"Market Summary",query_to_run:"Get the market summary for today and share it with me. Focus on tech stocks and the S&P 500.",schedule:"9AM on every weekday",next:"Next run at 9AM on Monday",crontime:"0 9 * * *",id:ek+3,scheduling_request:""}];function eA(e){let t=encodeURIComponent(e.subject),a=encodeURIComponent(e.query_to_run),s=encodeURIComponent(e.crontime);return"".concat(window.location.origin,"/automations?subject=").concat(t,"&query=").concat(a,"&crontime=").concat(s)}function eI(e){let[t,a]=(0,l.useState)(!1),[n,r]=(0,l.useState)(null),[c,d]=(0,l.useState)(!1),[u,m]=(0,l.useState)(""),{toast:h}=(0,el.pm)(),x=e.automation,[f,p]=(0,l.useState)(""),[g,j]=(0,l.useState)("");return((0,l.useEffect)(()=>{let e=n||x;p(ep(e.crontime));let t=ex(e.crontime);if("Day"===t)j("Daily");else if("Week"===t){let t=ef(e.crontime);void 0===t?j("Weekly"):j("".concat(ev[t]))}else if("Month"===t){let t=eg(e.crontime);j("Monthly on the ".concat(t))}},[n,x]),(0,l.useEffect)(()=>{let e="Automation: ".concat((null==n?void 0:n.subject)||x.subject);u&&(h({title:e,description:u,action:(0,s.jsx)(ec.gD,{altText:"Dismiss",children:"Ok"})}),m(""))},[u,n,x,h]),c)?null:(0,s.jsxs)(o.Zb,{className:"bg-secondary h-full shadow-sm rounded-lg bg-gradient-to-b from-background to-slate-50 dark:to-gray-950 border ".concat(Z().automationCard),children:[(0,s.jsx)(o.Ol,{children:(0,s.jsxs)(o.ll,{className:"line-clamp-2 leading-normal flex justify-between",children:[(null==n?void 0:n.subject)||x.subject,(0,s.jsxs)(Y.J2,{children:[(0,s.jsx)(Y.xo,{asChild:!0,children:(0,s.jsx)(i.z,{className:"bg-background",variant:"ghost",children:(0,s.jsx)($.F,{className:"h-4 w-4"})})}),(0,s.jsxs)(Y.yk,{className:"w-auto grid gap-2 text-left bg-secondary",children:[!e.suggestedCard&&e.locationData&&(0,s.jsx)(eO,{isMobileWidth:e.isMobileWidth,callToAction:"Edit",createNew:!1,setIsCreating:a,setShowLoginPrompt:e.setShowLoginPrompt,setNewAutomationData:r,authenticatedData:e.authenticatedData,isCreating:t,ipLocationData:e.locationData}),(0,s.jsx)(B.Z,{buttonTitle:"Share",includeIcon:!0,buttonClassName:"justify-start px-4 py-2 h-10",buttonVariant:"outline",title:"Share Automation",description:"Copy the link below and share it with your coworkers or friends.",url:eA(x),onShare:()=>{navigator.clipboard.writeText(eA(x))}}),!e.suggestedCard&&(0,s.jsxs)(i.z,{variant:"outline",className:"justify-start",onClick:()=>{!function(e,t){fetch("/api/trigger/automation?automation_id=".concat(e),{method:"POST"}).then(e=>{if(!e.ok)throw Error("Network response was not ok");return e}).then(e=>{t("Automation triggered. Check your inbox in a few minutes!")}).catch(e=>{t("Sorry, something went wrong. Try again later.")})}(x.id.toString(),m)},children:[(0,s.jsx)(H.s,{className:"h-4 w-4 mr-2"}),"Run Now"]}),(0,s.jsxs)(i.z,{variant:"destructive",className:"justify-start",onClick:()=>{if(e.suggestedCard){d(!0);return}!function(e,t){fetch("/api/automation?automation_id=".concat(e),{method:"DELETE"}).then(e=>e.json()).then(e=>{t(!0)})}(x.id.toString(),d)},children:[(0,s.jsx)(K.r,{className:"h-4 w-4 mr-2"}),"Delete"]})]})]})]})}),(0,s.jsx)(o.aY,{className:"text-secondary-foreground break-all",children:(null==n?void 0:n.query_to_run)||x.query_to_run}),(0,s.jsxs)(o.eW,{className:"flex flex-col items-start md:flex-row md:justify-between md:items-center gap-2",children:[(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsxs)("div",{className:"flex items-center bg-blue-50 rounded-lg p-1.5 border-blue-200 border dark:bg-blue-800 dark:border-blue-500",children:[(0,s.jsx)(Q.T,{className:"h-4 w-4 mr-2 text-blue-700 dark:text-blue-300"}),(0,s.jsx)("div",{className:"text-s text-blue-700 dark:text-blue-300",children:f})]}),(0,s.jsxs)("div",{className:"flex items-center bg-purple-50 rounded-lg p-1.5 border-purple-200 border dark:bg-purple-800 dark:border-purple-500",children:[(0,s.jsx)(X.u,{className:"h-4 w-4 mr-2 text-purple-700 dark:text-purple-300"}),(0,s.jsx)("div",{className:"text-s text-purple-700 dark:text-purple-300",children:g})]})]}),e.suggestedCard&&e.setNewAutomationData&&(0,s.jsx)(eO,{isMobileWidth:e.isMobileWidth,callToAction:"Add",createNew:!0,setIsCreating:a,setShowLoginPrompt:e.setShowLoginPrompt,setNewAutomationData:e.setNewAutomationData,authenticatedData:e.authenticatedData,isCreating:t,automation:x,ipLocationData:e.locationData})]})]})}function eM(e){let t=(0,G.useSearchParams)(),[a,n]=(0,l.useState)(!0),r=t.get("subject"),o=t.get("query"),i=t.get("crontime");if(!r||!o||!i)return null;let c={id:0,subject:decodeURIComponent(r),query_to_run:decodeURIComponent(o),scheduling_request:"",schedule:ej(decodeURIComponent(i)),crontime:decodeURIComponent(i),next:""};return a?(0,s.jsx)(eO,{isMobileWidth:e.isMobileWidth,callToAction:"Shared",createNew:!0,setIsCreating:n,setShowLoginPrompt:e.setShowLoginPrompt,setNewAutomationData:e.setNewAutomationData,authenticatedData:e.authenticatedData,isCreating:a,automation:c,ipLocationData:e.locationData}):null}let eT=S.z.object({subject:S.z.optional(S.z.string()),everyBlah:S.z.string({required_error:"Every is required"}),dayOfWeek:S.z.optional(S.z.number()),dayOfMonth:S.z.optional(S.z.string()),timeRecurrence:S.z.string({required_error:"Time Recurrence is required"}),queryToRun:S.z.string({required_error:"Query to Run is required"})});function eR(e){let t=e.automation,a=(0,D.cI)({resolver:(0,N.F)(eT),defaultValues:{subject:null==t?void 0:t.subject,everyBlah:(null==t?void 0:t.crontime)?ex(t.crontime):"Day",dayOfWeek:(null==t?void 0:t.crontime)?ef(t.crontime):void 0,timeRecurrence:(null==t?void 0:t.crontime)?ep(t.crontime):"12:00 PM",dayOfMonth:(null==t?void 0:t.crontime)?eg(t.crontime):"1",queryToRun:null==t?void 0:t.query_to_run}});return(0,s.jsx)(eL,{authenticatedData:e.authenticatedData,locationData:e.locationData||null,form:a,onSubmit:a=>{let s=function(e,t,a,s){let n="",r=t.split(":")[1].split(" ")[0],o=t.split(":")[1].split(" ")[1],i=Number(t.split(":")[0]),l="PM"===o&&i<12?String(i+12):i;switch(e){case"Day":n="".concat(r," ").concat(l," * * *");break;case"Week":n="".concat(r," ").concat(l," * * ").concat(a||"*");break;case"Month":n="".concat(r," ").concat(l," ").concat(s," * *")}return n}(a.everyBlah,a.timeRecurrence,a.dayOfWeek,a.dayOfMonth),n="/api/automation?";n+="q=".concat(a.queryToRun),(null==t?void 0:t.id)&&!e.createNew&&(n+="&automation_id=".concat(t.id)),a.subject&&(n+="&subject=".concat(a.subject)),n+="&crontime=".concat(s),e.locationData&&(n+="&city=".concat(e.locationData.city)+"&region=".concat(e.locationData.region)+"&country=".concat(e.locationData.country)+"&timezone=".concat(e.locationData.timezone)),fetch(n,{method:e.createNew?"POST":"PUT"}).then(e=>e.json()).then(t=>{e.setIsEditing(!1),e.setUpdatedAutomationData({id:t.id,subject:t.subject||"",query_to_run:t.query_to_run,scheduling_request:t.scheduling_request,schedule:ej(t.crontime),crontime:t.crontime,next:t.next})})},create:e.createNew,isLoggedIn:e.isLoggedIn,setShowLoginPrompt:e.setShowLoginPrompt})}function eL(e){var t,a;let[n,r]=(0,l.useState)(!1),{errors:o}=e.form.formState,c=["Make a picture of","Generate a summary of","Create a newsletter of","Notify me when"];return(0,s.jsx)(_,{...e.form,children:(0,s.jsxs)("form",{onSubmit:e.form.handleSubmit(t=>{e.onSubmit(t),r(!0)}),className:"space-y-8",children:[(0,s.jsxs)(R,{children:[(0,s.jsx)(L,{children:"Setup"}),(0,s.jsxs)(P,{children:["Emails will be sent to this address. Timezone and location data will be used to schedule automations.",e.locationData&&(t=e.locationData,a=e.authenticatedData,(0,s.jsxs)("div",{className:"flex flex-wrap gap-2 items-center justify-start md:justify-end",children:[a?(0,s.jsxs)("span",{className:"rounded-lg text-sm border-secondary border p-1 flex items-center shadow-sm",children:[(0,s.jsx)(et.w,{className:"h-4 w-4 mr-2 inline text-orange-500 shadow-sm"}),a.email]}):null,t&&(0,s.jsxs)("span",{className:"rounded-lg text-sm border-secondary border p-1 flex items-center shadow-sm",children:[(0,s.jsx)(ea.x,{className:"h-4 w-4 mr-2 inline text-purple-500"}),t?"".concat(t.city,", ").concat(t.country):"Unknown"]}),t&&(0,s.jsxs)("span",{className:"rounded-lg text-sm border-secondary border p-1 flex items-center shadow-sm",children:[(0,s.jsx)(es.S,{className:"h-4 w-4 mr-2 inline text-green-500"}),t?"".concat(t.timezone):"Unknown"]})]}))]})]}),!e.create&&(0,s.jsx)(I,{control:e.form.control,name:"subject",render:e=>{var t;let{field:a}=e;return(0,s.jsxs)(R,{children:[(0,s.jsx)(L,{children:"Subject"}),(0,s.jsx)(P,{children:"This is the subject of the email you will receive."}),(0,s.jsx)(O,{children:(0,s.jsx)(q.I,{placeholder:"Digest of Healthcare AI trends",...a})}),(0,s.jsx)(z,{}),o.subject&&(0,s.jsx)(z,{children:null===(t=o.subject)||void 0===t?void 0:t.message})]})}}),(0,s.jsx)(I,{control:e.form.control,name:"everyBlah",render:e=>{var t;let{field:a}=e;return(0,s.jsxs)(R,{className:"w-full",children:[(0,s.jsx)(L,{children:"Frequency"}),(0,s.jsx)(P,{children:"How often should this automation run?"}),(0,s.jsxs)(x,{onValueChange:a.onChange,defaultValue:a.value,children:[(0,s.jsx)(O,{children:(0,s.jsxs)(p,{className:"w-[200px]",children:[(0,s.jsxs)("div",{className:"flex items-center",children:[(0,s.jsx)(J.W,{className:"h-4 w-4 mr-2 inline"}),"Every"]}),(0,s.jsx)(f,{placeholder:""})]})}),(0,s.jsx)(y,{children:ey.map(e=>(0,s.jsx)(w,{value:e,children:e},e))})]}),(0,s.jsx)(z,{}),o.subject&&(0,s.jsx)(z,{children:null===(t=o.everyBlah)||void 0===t?void 0:t.message})]})}}),"Week"===e.form.watch("everyBlah")&&(0,s.jsx)(I,{control:e.form.control,name:"dayOfWeek",render:e=>{var t;let{field:a}=e;return(0,s.jsxs)(R,{className:"w-full",children:[(0,s.jsx)(P,{children:"Every week, on which day should this automation run?"}),(0,s.jsxs)(x,{onValueChange:e=>a.onChange(Number(e)),defaultValue:String(a.value),children:[(0,s.jsx)(O,{children:(0,s.jsxs)(p,{className:"w-[200px]",children:[(0,s.jsxs)("div",{className:"flex items-center",children:[(0,s.jsx)(ee.n,{className:"h-4 w-4 mr-2 inline"}),"On"]}),(0,s.jsx)(f,{placeholder:""})]})}),(0,s.jsx)(y,{children:ev.map((e,t)=>(0,s.jsx)(w,{value:String(t),children:e},e))})]}),(0,s.jsx)(z,{}),o.subject&&(0,s.jsx)(z,{children:null===(t=o.dayOfWeek)||void 0===t?void 0:t.message})]})}}),"Month"===e.form.watch("everyBlah")&&(0,s.jsx)(I,{control:e.form.control,name:"dayOfMonth",render:e=>{var t;let{field:a}=e;return(0,s.jsxs)(R,{className:"w-full",children:[(0,s.jsx)(P,{children:"Every month, on which day should the automation run?"}),(0,s.jsxs)(x,{onValueChange:a.onChange,defaultValue:a.value,children:[(0,s.jsx)(O,{children:(0,s.jsxs)(p,{className:"w-[200px]",children:[(0,s.jsxs)("div",{className:"flex items-center",children:[(0,s.jsx)(ee.n,{className:"h-4 w-4 mr-2 inline"}),"On the"]}),(0,s.jsx)(f,{placeholder:""})]})}),(0,s.jsx)(y,{children:ew.map(e=>(0,s.jsx)(w,{value:e,children:e},e))})]}),(0,s.jsx)(z,{}),o.subject&&(0,s.jsx)(z,{children:null===(t=o.dayOfMonth)||void 0===t?void 0:t.message})]})}}),("Day"===e.form.watch("everyBlah")||"Week"==e.form.watch("everyBlah")||"Month"==e.form.watch("everyBlah"))&&(0,s.jsx)(I,{control:e.form.control,name:"timeRecurrence",render:e=>{var t;let{field:a}=e;return(0,s.jsxs)(R,{className:"w-full",children:[(0,s.jsx)(L,{children:"Time"}),(0,s.jsx)(P,{children:"On the days this automation runs, at what time should it run?"}),(0,s.jsxs)(x,{onValueChange:a.onChange,defaultValue:a.value,children:[(0,s.jsx)(O,{children:(0,s.jsxs)(p,{className:"w-[200px]",children:[(0,s.jsxs)("div",{className:"flex items-center",children:[(0,s.jsx)(X.u,{className:"h-4 w-4 mr-2 inline"}),"At"]}),(0,s.jsx)(f,{placeholder:""})]})}),(0,s.jsx)(y,{children:eb.map(e=>(0,s.jsx)(w,{value:e,children:e},e))})]}),(0,s.jsx)(z,{}),o.subject&&(0,s.jsx)(z,{children:null===(t=o.timeRecurrence)||void 0===t?void 0:t.message})]})}}),(0,s.jsx)(I,{control:e.form.control,name:"queryToRun",render:t=>{var a;let{field:n}=t;return(0,s.jsxs)(R,{children:[(0,s.jsx)(L,{children:"Instructions"}),(0,s.jsx)(P,{children:"What do you want Khoj to do?"}),e.create&&(0,s.jsx)("div",{children:c.map(e=>{var t;return t=n.onChange,(0,s.jsxs)(i.z,{className:"text-xs bg-slate-50 dark:bg-slate-950 h-auto p-1.5 m-1 rounded-full",variant:"ghost",onClick:a=>{a.preventDefault(),t({target:{value:e}},a)},children:[e,"..."]},e)})}),(0,s.jsx)(O,{children:(0,s.jsx)(U.g,{placeholder:"Create a summary of the latest news about AI in healthcare.",value:n.value,onChange:n.onChange})}),(0,s.jsx)(z,{}),o.subject&&(0,s.jsx)(z,{children:null===(a=o.queryToRun)||void 0===a?void 0:a.message})]})}}),(0,s.jsx)("fieldset",{disabled:n,children:e.isLoggedIn?n?(0,s.jsx)(i.z,{type:"submit",disabled:!0,children:"Saving..."}):(0,s.jsx)(i.z,{type:"submit",children:"Save"}):(0,s.jsx)(i.z,{onClick:t=>{t.preventDefault(),e.setShowLoginPrompt(!0)},variant:"default",children:"Login to Save"})})]})})}function eO(e){return e.isMobileWidth?(0,s.jsxs)(em.dy,{open:e.isCreating,onOpenChange:t=>{e.setIsCreating(t)},children:[(0,s.jsx)(em.Qz,{asChild:!0,children:(0,s.jsxs)(i.z,{className:"shadow-sm justify-start",variant:"outline",children:[(0,s.jsx)(en.v,{className:"h-4 w-4 mr-2"}),e.callToAction]})}),(0,s.jsxs)(em.sc,{className:"p-2",children:[(0,s.jsx)(em.iI,{children:"Automation"}),(0,s.jsx)(eR,{createNew:e.createNew,automation:e.automation,setIsEditing:e.setIsCreating,isLoggedIn:!!e.authenticatedData,authenticatedData:e.authenticatedData,setShowLoginPrompt:e.setShowLoginPrompt,setUpdatedAutomationData:e.setNewAutomationData,locationData:e.ipLocationData})]})]}):(0,s.jsxs)(W.Vq,{open:e.isCreating,onOpenChange:t=>{e.setIsCreating(t)},children:[(0,s.jsx)(W.hg,{asChild:!0,children:(0,s.jsxs)(i.z,{className:"shadow-sm justify-start",variant:"outline",children:[(0,s.jsx)(en.v,{className:"h-4 w-4 mr-2"}),e.callToAction]})}),(0,s.jsxs)(W.cZ,{children:[(0,s.jsx)(E.$N,{children:"Automation"}),(0,s.jsx)(eR,{automation:e.automation,createNew:e.createNew,setIsEditing:e.setIsCreating,isLoggedIn:!!e.authenticatedData,authenticatedData:e.authenticatedData,setShowLoginPrompt:e.setShowLoginPrompt,setUpdatedAutomationData:e.setNewAutomationData,locationData:e.ipLocationData})]})]})}function eP(){let e=(0,eo.G)(),{data:t,error:a,isLoading:o}=(0,n.ZP)(e?"automations":null,eh,{revalidateOnFocus:!1}),[c,d]=(0,l.useState)(!1),[u,m]=(0,l.useState)(null),[h,x]=(0,l.useState)([]),[f,p]=(0,l.useState)([]),[g,j]=(0,l.useState)(!1),y=(0,V.IC)(),w=(0,V.k6)();return((0,l.useEffect)(()=>{u&&(x([...h,u]),m(null))},[u,h]),(0,l.useEffect)(()=>{let e=t?t.concat(h):h;e&&p(e_.filter(t=>void 0===e.find(e=>t.subject===e.subject)))},[t,h]),a)?(0,s.jsx)(r.l,{message:"Oops, something went wrong. Please refresh the page."}):(0,s.jsx)("main",{className:"w-full mx-auto",children:(0,s.jsxs)("div",{className:"grid w-full mx-auto",children:[(0,s.jsx)("div",{className:"".concat(Z().sidePanel," top-0"),children:(0,s.jsx)(eu.Z,{conversationId:null,uploadedFiles:[],isMobileWidth:y})}),(0,s.jsxs)("div",{className:"".concat(Z().pageLayout," w-full"),children:[(0,s.jsxs)("div",{className:"pt-6 md:pt-8 grid gap-1 md:flex md:justify-between",children:[(0,s.jsx)("h1",{className:"text-3xl flex items-center",children:"Automations"}),(0,s.jsxs)("div",{className:"flex flex-wrap gap-2 items-center justify-start",children:[e?(0,s.jsxs)("span",{className:"rounded-lg text-sm border-secondary border p-1 flex items-center shadow-sm",children:[(0,s.jsx)(et.w,{className:"h-4 w-4 mr-2 inline text-orange-500 shadow-sm"}),e.email]}):null,w&&(0,s.jsxs)("span",{className:"rounded-lg text-sm border-secondary border p-1 flex items-center shadow-sm",children:[(0,s.jsx)(ea.x,{className:"h-4 w-4 mr-2 inline text-purple-500"}),w?"".concat(w.city,", ").concat(w.country):"Unknown"]}),w&&(0,s.jsxs)("span",{className:"rounded-lg text-sm border-secondary border p-1 flex items-center shadow-sm",children:[(0,s.jsx)(es.S,{className:"h-4 w-4 mr-2 inline text-green-500"}),w?"".concat(w.timezone):"Unknown"]})]})]}),g&&(0,s.jsx)(ei.Z,{loginRedirectMessage:"Create an account to make your own automation",onOpenChange:j}),(0,s.jsx)(ed.bZ,{className:"bg-secondary border-none my-4",children:(0,s.jsxs)(ed.X,{children:[(0,s.jsx)(er.B,{weight:"fill",className:"h-4 w-4 text-purple-400 inline"}),(0,s.jsx)("span",{className:"font-bold",children:"How it works"})," Automations help you structure your time by automating tasks you do regularly. Build your own, or try out our presets. Get results straight to your inbox."]})}),(0,s.jsxs)("div",{className:"flex justify-between items-center py-4",children:[(0,s.jsx)("h3",{className:"text-xl",children:"Your Creations"}),e?(0,s.jsx)(eO,{isMobileWidth:y,callToAction:"Create Automation",createNew:!0,setIsCreating:d,setShowLoginPrompt:j,setNewAutomationData:m,authenticatedData:e,isCreating:c,ipLocationData:w}):(0,s.jsxs)(i.z,{className:"shadow-sm",onClick:()=>j(!0),variant:"outline",children:[(0,s.jsx)(en.v,{className:"h-4 w-4 mr-2"}),"Create Automation"]})]}),(0,s.jsx)(l.Suspense,{children:(0,s.jsx)(eM,{isMobileWidth:y,authenticatedData:e,locationData:w,isLoggedIn:!!e,setShowLoginPrompt:j,setNewAutomationData:m})}),(!t||0===t.length)&&0==h.length&&!o&&(0,s.jsxs)("div",{className:"px-4",children:["So empty! Create your own automation to get started.",(0,s.jsx)("div",{className:"mt-4",children:e?(0,s.jsx)(eO,{isMobileWidth:y,callToAction:"Design Automation",createNew:!0,setIsCreating:d,setShowLoginPrompt:j,setNewAutomationData:m,authenticatedData:e,isCreating:c,ipLocationData:w}):(0,s.jsx)(i.z,{onClick:()=>j(!0),variant:"default",children:"Design"})})]}),o&&(0,s.jsx)(r.l,{message:"booting up your automations"}),(0,s.jsxs)("div",{className:"".concat(Z().automationsLayout),children:[t&&t.map(t=>(0,s.jsx)(eI,{isMobileWidth:y,authenticatedData:e,automation:t,locationData:w,isLoggedIn:!!e,setShowLoginPrompt:j},t.id)),h.map(t=>(0,s.jsx)(eI,{isMobileWidth:y,authenticatedData:e,automation:t,locationData:w,isLoggedIn:!!e,setShowLoginPrompt:j},t.id))]}),(0,s.jsx)("h3",{className:"text-xl py-4",children:"Try these out"}),(0,s.jsx)("div",{className:"".concat(Z().automationsLayout),children:f.map(t=>(0,s.jsx)(eI,{isMobileWidth:y,setNewAutomationData:m,authenticatedData:e,automation:t,locationData:w,isLoggedIn:!!e,setShowLoginPrompt:j,suggestedCard:!0},t.id))})]})]})})}},66820:function(e,t,a){"use strict";a.d(t,{Z:function(){return o}});var s=a(57437),n=a(6780),r=a(87138);function o(e){return(0,s.jsx)(n.aR,{open:!0,onOpenChange:e.onOpenChange,children:(0,s.jsxs)(n._T,{children:[(0,s.jsx)(n.fY,{children:(0,s.jsx)(n.f$,{children:"Sign in to Khoj to continue"})}),(0,s.jsxs)(n.yT,{children:[e.loginRedirectMessage,". By logging in, you agree to our"," ",(0,s.jsx)(r.default,{href:"https://khoj.dev/terms-of-service",children:"Terms of Service."})]}),(0,s.jsxs)(n.xo,{children:[(0,s.jsx)(n.le,{children:"Dismiss"}),(0,s.jsx)(n.OL,{className:"bg-slate-400 hover:bg-slate-500",onClick:()=>{window.location.href="/login?next=".concat(encodeURIComponent(window.location.pathname))},children:(0,s.jsxs)(r.default,{href:"/login?next=".concat(encodeURIComponent(window.location.pathname)),children:[" ","Login"]})})]})]})})}},18642:function(e,t,a){"use strict";a.d(t,{Z:function(){return c}});var s=a(57437),n=a(90837),r=a(50495),o=a(83102),i=a(67135),l=a(34797);function c(e){var t;return(0,s.jsxs)(n.Vq,{children:[(0,s.jsx)(n.hg,{asChild:!0,onClick:e.onShare,children:(0,s.jsxs)(r.z,{size:"sm",className:"".concat(e.buttonClassName||"px-3"),variant:null!==(t=e.buttonVariant)&&void 0!==t?t:"default",children:[e.includeIcon&&(0,s.jsx)(l.m,{className:"w-4 h-4 mr-2"}),e.buttonTitle]})}),(0,s.jsxs)(n.cZ,{children:[(0,s.jsxs)(n.fK,{children:[(0,s.jsx)(n.$N,{children:e.title}),(0,s.jsx)(n.Be,{children:e.description})]}),(0,s.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,s.jsxs)("div",{className:"grid flex-1 gap-2",children:[(0,s.jsx)(i._,{htmlFor:"link",className:"sr-only",children:"Link"}),(0,s.jsx)(o.I,{id:"link",defaultValue:e.url,readOnly:!0})]}),(0,s.jsx)(r.z,{type:"submit",size:"sm",className:"px-3",onClick:()=>(function(e){let t=navigator.clipboard;t&&t.writeText(e)})(e.url),children:(0,s.jsx)("span",{children:"Copy"})})]})]})]})}},47412:function(e,t,a){"use strict";a.d(t,{X:function(){return c},bZ:function(){return l}});var s=a(57437),n=a(2265),r=a(12218),o=a(37440);let i=(0,r.j)("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),l=n.forwardRef((e,t)=>{let{className:a,variant:n,...r}=e;return(0,s.jsx)("div",{ref:t,role:"alert",className:(0,o.cn)(i({variant:n}),a),...r})});l.displayName="Alert",n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,s.jsx)("h5",{ref:t,className:(0,o.cn)("mb-1 font-medium leading-none tracking-tight",a),...n})}).displayName="AlertTitle";let c=n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,s.jsx)("div",{ref:t,className:(0,o.cn)("text-sm [&_p]:leading-relaxed",a),...n})});c.displayName="AlertDescription"},67135:function(e,t,a){"use strict";a.d(t,{_:function(){return c}});var s=a(57437),n=a(2265),r=a(38364),o=a(12218),i=a(37440);let l=(0,o.j)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),c=n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,s.jsx)(r.f,{ref:t,className:(0,i.cn)(l(),a),...n})});c.displayName=r.f.displayName},93146:function(e,t,a){"use strict";a.d(t,{g:function(){return o}});var s=a(57437),n=a(2265),r=a(37440);let o=n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,s.jsx)("textarea",{className:(0,r.cn)("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",a),ref:t,...n})});o.displayName="Textarea"},50151:function(e,t,a){"use strict";a.d(t,{FN:function(){return m},Mi:function(){return f},VW:function(){return c},_i:function(){return d},gD:function(){return h},lj:function(){return p},sA:function(){return x}});var s=a(57437),n=a(2265),r=a(44504),o=a(12218),i=a(74697),l=a(37440);let c=r.zt,d=n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,s.jsx)(r.l_,{ref:t,className:(0,l.cn)("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",a),...n})});d.displayName=r.l_.displayName;let u=(0,o.j)("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),m=n.forwardRef((e,t)=>{let{className:a,variant:n,...o}=e;return(0,s.jsx)(r.fC,{ref:t,className:(0,l.cn)(u({variant:n}),a),...o})});m.displayName=r.fC.displayName;let h=n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,s.jsx)(r.aU,{ref:t,className:(0,l.cn)("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",a),...n})});h.displayName=r.aU.displayName;let x=n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,s.jsx)(r.x8,{ref:t,className:(0,l.cn)("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",a),"toast-close":"",...n,children:(0,s.jsx)(i.Z,{className:"h-4 w-4"})})});x.displayName=r.x8.displayName;let f=n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,s.jsx)(r.Dx,{ref:t,className:(0,l.cn)("text-sm font-semibold",a),...n})});f.displayName=r.Dx.displayName;let p=n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,s.jsx)(r.dk,{ref:t,className:(0,l.cn)("text-sm opacity-90",a),...n})});p.displayName=r.dk.displayName},35657:function(e,t,a){"use strict";a.d(t,{pm:function(){return m}});var s=a(2265);let n=0,r=new Map,o=e=>{if(r.has(e))return;let t=setTimeout(()=>{r.delete(e),d({type:"REMOVE_TOAST",toastId:e})},1e6);r.set(e,t)},i=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:a}=t;return a?o(a):e.toasts.forEach(e=>{o(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===a||void 0===a?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},l=[],c={toasts:[]};function d(e){c=i(c,e),l.forEach(e=>{e(c)})}function u(e){let{...t}=e,a=(n=(n+1)%Number.MAX_SAFE_INTEGER).toString(),s=()=>d({type:"DISMISS_TOAST",toastId:a});return d({type:"ADD_TOAST",toast:{...t,id:a,open:!0,onOpenChange:e=>{e||s()}}}),{id:a,dismiss:s,update:e=>d({type:"UPDATE_TOAST",toast:{...e,id:a}})}}function m(){let[e,t]=s.useState(c);return s.useEffect(()=>(l.push(t),()=>{let e=l.indexOf(t);e>-1&&l.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>d({type:"DISMISS_TOAST",toastId:e})}}},23611:function(e){e.exports={automationsLayout:"automations_automationsLayout__Atoh_",automationCard:"automations_automationCard__BKidA",pageLayout:"automations_pageLayout__OaoYA",sidePanel:"automations_sidePanel__MPciO"}}},function(e){e.O(0,[9427,9001,3062,4504,9162,1603,2971,7023,1744],function(){return e(e.s=2743)}),_N_E=e.O()}]);