khoj 1.26.5.dev15__py3-none-any.whl → 1.26.5.dev35__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 (73) hide show
  1. khoj/configure.py +2 -2
  2. khoj/database/adapters/__init__.py +41 -28
  3. khoj/database/admin.py +2 -0
  4. khoj/database/management/commands/change_default_model.py +182 -0
  5. khoj/database/migrations/0071_subscription_enabled_trial_at_and_more.py +32 -0
  6. khoj/database/migrations/0072_entry_search_model.py +24 -0
  7. khoj/database/models/__init__.py +4 -1
  8. khoj/interface/compiled/404/index.html +1 -1
  9. khoj/interface/compiled/_next/static/chunks/1279-f37ee4a388ebf544.js +1 -0
  10. khoj/interface/compiled/_next/static/chunks/1603-b9d95833e0e025e8.js +1 -0
  11. khoj/interface/compiled/_next/static/chunks/1970-1d6d0c1b00b4f343.js +1 -0
  12. khoj/interface/compiled/_next/static/chunks/{3423-aad88d6c1f029135.js → 3423-8e9c420574a9fbe3.js} +1 -1
  13. khoj/interface/compiled/_next/static/chunks/394-6bcb8c429f168f21.js +3 -0
  14. khoj/interface/compiled/_next/static/chunks/4602-8eeb4b76385ad159.js +1 -0
  15. khoj/interface/compiled/_next/static/chunks/5512-94c7c2bbcf58c19d.js +1 -0
  16. khoj/interface/compiled/_next/static/chunks/7113-f2e114d7034a0835.js +1 -0
  17. khoj/interface/compiled/_next/static/chunks/{3678-ef0d20e267e9f010.js → 7883-b1305ec254213afe.js} +2 -2
  18. khoj/interface/compiled/_next/static/chunks/9479-4b443fdcc99141c9.js +1 -0
  19. khoj/interface/compiled/_next/static/chunks/app/agents/page-adbf3cd470da248f.js +1 -0
  20. khoj/interface/compiled/_next/static/chunks/app/automations/{page-1688dead2f21270d.js → page-d3edae545a1b5393.js} +1 -1
  21. khoj/interface/compiled/_next/static/chunks/app/chat/page-460d262a3ef77503.js +1 -0
  22. khoj/interface/compiled/_next/static/chunks/app/factchecker/{page-f544113d240423e9.js → page-c8e5bd563a8155eb.js} +1 -1
  23. khoj/interface/compiled/_next/static/chunks/app/{page-88139ac728fe3533.js → page-337bba1c554d0742.js} +1 -1
  24. khoj/interface/compiled/_next/static/chunks/app/search/{page-3ada11cda5050eeb.js → page-a5c277eff207959e.js} +1 -1
  25. khoj/interface/compiled/_next/static/chunks/app/settings/page-60097571dd9f9d37.js +1 -0
  26. khoj/interface/compiled/_next/static/chunks/app/share/chat/page-97c4e60105009649.js +1 -0
  27. khoj/interface/compiled/_next/static/chunks/{webpack-95652a0eef2b0aeb.js → webpack-35c06f544e18305f.js} +1 -1
  28. khoj/interface/compiled/_next/static/css/76d55eb435962b19.css +25 -0
  29. khoj/interface/compiled/_next/static/css/{f84cf008d5ff4161.css → afd3d45cc65d55d8.css} +1 -1
  30. khoj/interface/compiled/agents/index.html +1 -1
  31. khoj/interface/compiled/agents/index.txt +2 -2
  32. khoj/interface/compiled/automations/index.html +1 -1
  33. khoj/interface/compiled/automations/index.txt +2 -2
  34. khoj/interface/compiled/chat/index.html +1 -1
  35. khoj/interface/compiled/chat/index.txt +2 -2
  36. khoj/interface/compiled/factchecker/index.html +1 -1
  37. khoj/interface/compiled/factchecker/index.txt +2 -2
  38. khoj/interface/compiled/index.html +1 -1
  39. khoj/interface/compiled/index.txt +2 -2
  40. khoj/interface/compiled/search/index.html +1 -1
  41. khoj/interface/compiled/search/index.txt +2 -2
  42. khoj/interface/compiled/settings/index.html +1 -1
  43. khoj/interface/compiled/settings/index.txt +2 -2
  44. khoj/interface/compiled/share/chat/index.html +1 -1
  45. khoj/interface/compiled/share/chat/index.txt +2 -2
  46. khoj/processor/content/text_to_entries.py +4 -2
  47. khoj/processor/image/generate.py +3 -3
  48. khoj/routers/api.py +3 -2
  49. khoj/routers/api_agents.py +41 -20
  50. khoj/routers/api_model.py +0 -33
  51. khoj/routers/{subscription.py → api_subscription.py} +20 -2
  52. khoj/routers/helpers.py +10 -10
  53. khoj/search_type/text_search.py +6 -2
  54. {khoj-1.26.5.dev15.dist-info → khoj-1.26.5.dev35.dist-info}/METADATA +1 -1
  55. {khoj-1.26.5.dev15.dist-info → khoj-1.26.5.dev35.dist-info}/RECORD +61 -57
  56. khoj/interface/compiled/_next/static/chunks/121-7024f479c297aef0.js +0 -1
  57. khoj/interface/compiled/_next/static/chunks/1603-bfc0b26e32ad88e3.js +0 -1
  58. khoj/interface/compiled/_next/static/chunks/477-ec86e93db10571c1.js +0 -1
  59. khoj/interface/compiled/_next/static/chunks/51-e8f5bdb69b5ea421.js +0 -1
  60. khoj/interface/compiled/_next/static/chunks/6327-18f0b45cc5a13afb.js +0 -3
  61. khoj/interface/compiled/_next/static/chunks/7762-79f2205740622b5c.js +0 -1
  62. khoj/interface/compiled/_next/static/chunks/9479-fcce773453e472c4.js +0 -1
  63. khoj/interface/compiled/_next/static/chunks/app/agents/page-997bf85681256672.js +0 -1
  64. khoj/interface/compiled/_next/static/chunks/app/chat/page-027e61d082025c50.js +0 -1
  65. khoj/interface/compiled/_next/static/chunks/app/settings/page-fa11cafaec7ab39f.js +0 -1
  66. khoj/interface/compiled/_next/static/chunks/app/share/chat/page-511186e77624eaec.js +0 -1
  67. khoj/interface/compiled/_next/static/css/825406e5ebee86d3.css +0 -25
  68. /khoj/interface/compiled/_next/static/{l0c66lMus19JlWgScUQtj → GH1Wb7mTB8D7ZsHW6iRF6}/_buildManifest.js +0 -0
  69. /khoj/interface/compiled/_next/static/{l0c66lMus19JlWgScUQtj → GH1Wb7mTB8D7ZsHW6iRF6}/_ssgManifest.js +0 -0
  70. /khoj/interface/compiled/_next/static/chunks/{2697-37579bcc7593dd5c.js → 2697-61fcba89fd87eab4.js} +0 -0
  71. {khoj-1.26.5.dev15.dist-info → khoj-1.26.5.dev35.dist-info}/WHEEL +0 -0
  72. {khoj-1.26.5.dev15.dist-info → khoj-1.26.5.dev35.dist-info}/entry_points.txt +0 -0
  73. {khoj-1.26.5.dev15.dist-info → khoj-1.26.5.dev35.dist-info}/licenses/LICENSE +0 -0
khoj/routers/helpers.py CHANGED
@@ -38,6 +38,7 @@ from starlette.requests import URL
38
38
 
39
39
  from khoj.database import adapters
40
40
  from khoj.database.adapters import (
41
+ LENGTH_OF_FREE_TRIAL,
41
42
  AgentAdapters,
42
43
  AutomationAdapters,
43
44
  ConversationAdapters,
@@ -1673,10 +1674,16 @@ def get_user_config(user: KhojUser, request: Request, is_detailed: bool = False)
1673
1674
 
1674
1675
  user_subscription_state = get_user_subscription_state(user.email)
1675
1676
  user_subscription = adapters.get_user_subscription(user.email)
1677
+
1676
1678
  subscription_renewal_date = (
1677
1679
  user_subscription.renewal_date.strftime("%d %b %Y")
1678
1680
  if user_subscription and user_subscription.renewal_date
1679
- else (user_subscription.created_at + timedelta(days=7)).strftime("%d %b %Y")
1681
+ else None
1682
+ )
1683
+ subscription_enabled_trial_at = (
1684
+ user_subscription.enabled_trial_at.strftime("%d %b %Y")
1685
+ if user_subscription and user_subscription.enabled_trial_at
1686
+ else None
1680
1687
  )
1681
1688
  given_name = get_user_name(user)
1682
1689
 
@@ -1699,13 +1706,6 @@ def get_user_config(user: KhojUser, request: Request, is_detailed: bool = False)
1699
1706
  for chat_model in chat_models:
1700
1707
  chat_model_options.append({"name": chat_model.chat_model, "id": chat_model.id})
1701
1708
 
1702
- search_model_options = adapters.get_or_create_search_models().all()
1703
- all_search_model_options = list()
1704
- for search_model_option in search_model_options:
1705
- all_search_model_options.append({"name": search_model_option.name, "id": search_model_option.id})
1706
-
1707
- current_search_model_option = adapters.get_user_search_model_or_default(user)
1708
-
1709
1709
  selected_paint_model_config = ConversationAdapters.get_user_text_to_image_model_config(user)
1710
1710
  paint_model_options = ConversationAdapters.get_text_to_image_model_options().all()
1711
1711
  all_paint_model_options = list()
@@ -1738,8 +1738,6 @@ def get_user_config(user: KhojUser, request: Request, is_detailed: bool = False)
1738
1738
  "has_documents": has_documents,
1739
1739
  "notion_token": notion_token,
1740
1740
  # user model settings
1741
- "search_model_options": all_search_model_options,
1742
- "selected_search_model_config": current_search_model_option.id,
1743
1741
  "chat_model_options": chat_model_options,
1744
1742
  "selected_chat_model_config": selected_chat_model_config.id if selected_chat_model_config else None,
1745
1743
  "paint_model_options": all_paint_model_options,
@@ -1749,6 +1747,7 @@ def get_user_config(user: KhojUser, request: Request, is_detailed: bool = False)
1749
1747
  # user billing info
1750
1748
  "subscription_state": user_subscription_state,
1751
1749
  "subscription_renewal_date": subscription_renewal_date,
1750
+ "subscription_enabled_trial_at": subscription_enabled_trial_at,
1752
1751
  # server settings
1753
1752
  "khoj_cloud_subscription_url": os.getenv("KHOJ_CLOUD_SUBSCRIPTION_URL"),
1754
1753
  "billing_enabled": state.billing_enabled,
@@ -1757,6 +1756,7 @@ def get_user_config(user: KhojUser, request: Request, is_detailed: bool = False)
1757
1756
  "khoj_version": state.khoj_version,
1758
1757
  "anonymous_mode": state.anonymous_mode,
1759
1758
  "notion_oauth_url": notion_oauth_url,
1759
+ "length_of_free_trial": LENGTH_OF_FREE_TRIAL,
1760
1760
  }
1761
1761
 
1762
1762
 
@@ -8,7 +8,11 @@ import torch
8
8
  from asgiref.sync import sync_to_async
9
9
  from sentence_transformers import util
10
10
 
11
- from khoj.database.adapters import EntryAdapters, get_user_search_model_or_default
11
+ from khoj.database.adapters import (
12
+ EntryAdapters,
13
+ get_default_search_model,
14
+ get_user_default_search_model,
15
+ )
12
16
  from khoj.database.models import Agent
13
17
  from khoj.database.models import Entry as DbEntry
14
18
  from khoj.database.models import KhojUser
@@ -110,7 +114,7 @@ async def query(
110
114
  file_type = search_type_to_embeddings_type[type.value]
111
115
 
112
116
  query = raw_query
113
- search_model = await sync_to_async(get_user_search_model_or_default)(user)
117
+ search_model = await sync_to_async(get_user_default_search_model)(user)
114
118
  if not max_distance:
115
119
  if search_model.bi_encoder_confidence_threshold:
116
120
  max_distance = search_model.bi_encoder_confidence_threshold
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: khoj
3
- Version: 1.26.5.dev15
3
+ Version: 1.26.5.dev35
4
4
  Summary: Your Second Brain
5
5
  Project-URL: Homepage, https://khoj.dev
6
6
  Project-URL: Documentation, https://docs.khoj.dev
@@ -1,5 +1,5 @@
1
1
  khoj/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- khoj/configure.py,sha256=SIBuujc8C-QWn_i-8BbQKhvGkV51to2BvWQgUMlV6JY,17501
2
+ khoj/configure.py,sha256=iaF27X04az671jmK58orD957QZe0Ez1pHN2poiI9XvE,17521
3
3
  khoj/main.py,sha256=9YMJEaKlVin5hxU0TcVH5X1CP6wX9HE8Z7qWSxNGPd0,8161
4
4
  khoj/manage.py,sha256=njo6uLxGaMamTPesHjFEOIBJbpIUrz39e1V59zKj544,664
5
5
  khoj/app/README.md,sha256=PSQjKCdpU2hgszLVF8yEhV7TWhbEEb-1aYLTRuuAsKI,2832
@@ -8,12 +8,13 @@ khoj/app/asgi.py,sha256=soh3C1xazlgHt_bDgKzrfzo2TKXbNYJsckcXNEgTip8,388
8
8
  khoj/app/settings.py,sha256=M6sQUu_AdeKl3eruecBaifRBhYOBIait0KA2NPizcBM,6198
9
9
  khoj/app/urls.py,sha256=7ECnusoAPAfbO_H_b5FUzYGvnb4LLdWaRDyKNvYuBvg,869
10
10
  khoj/database/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
- khoj/database/admin.py,sha256=VGXfQYYURbfeAslZq9icTsKKk3s93iTmssW6UtTtw88,9571
11
+ khoj/database/admin.py,sha256=4QoMRRyfvc834Qg4Z8KMZ3MW3cbsTqtElpkwnP3oyz4,9618
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=VB9NGoQ3sAV3DeDSCamKRIt77dLL3eWuj1LEy4Hq8J8,64648
14
+ khoj/database/adapters/__init__.py,sha256=ODHbZU-52jX8c0wafIOZA8KcS5lfLash7t8PGJJMQ6U,65101
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
+ khoj/database/management/commands/change_default_model.py,sha256=kPcUJk3R72YeF5ay20xR0uZThZJf33U3gMB5dNYDPlM,8446
17
18
  khoj/database/management/commands/change_generated_images_url.py,sha256=w52FwRlyOL4YRpp9O6jJUjSIuGLxVhaS2w1D7gtQgOE,2644
18
19
  khoj/database/management/commands/convert_images_png_to_webp.py,sha256=C74kEGa_BYkH0dIwtSUinU9qJFCFoVdo3HJRD1eLFuc,4630
19
20
  khoj/database/migrations/0001_khojuser.py,sha256=1AjGQ4cOX8rUUMLOsKWFSUlQvO4nklKQB-BILSjiric,4077
@@ -98,43 +99,48 @@ khoj/database/migrations/0067_alter_agent_style_icon.py,sha256=Z2HrLjBV5gx_Oguze
98
99
  khoj/database/migrations/0068_alter_agent_output_modes.py,sha256=G86wHkT2eWUSwsO4U2NS1t_UzVjEz4kzbgENy8mpicw,692
99
100
  khoj/database/migrations/0069_webscraper_serverchatsettings_web_scraper.py,sha256=5yQ4DsYqtz2SvUU7b1izrNtgFOHNsVD2l05oC_gBAjU,3145
100
101
  khoj/database/migrations/0070_alter_agent_input_tools_alter_agent_output_modes.py,sha256=ngMtW34OPde72xa3tRIAKiICiJtpbxE4oZmAP4GFhrQ,1451
102
+ khoj/database/migrations/0071_subscription_enabled_trial_at_and_more.py,sha256=GX1ps5yrhLc1IxkPhmvzcoVSjCcZ-EAnicXSqz9TCtY,1026
103
+ khoj/database/migrations/0072_entry_search_model.py,sha256=qamubOLbkRcbCeyhOWiRhrYT3WTD9ZG8WNaZEWS-a-0,639
101
104
  khoj/database/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
102
- khoj/database/models/__init__.py,sha256=pCQpkUQT9jbaYxiDWEuHdHbRo69DdynKb7WmxgzJcvE,23986
105
+ khoj/database/models/__init__.py,sha256=YWmaAAO6Ec3XDCFSgr2z69M9cO28qAMDlgQ4xrVRD4s,24282
103
106
  khoj/interface/compiled/agents.svg,sha256=yFCRwIM-Qawa0C5ggAo3ekb-Q1ElmotBOKIGhtfIQqM,1722
104
107
  khoj/interface/compiled/automation.svg,sha256=o7L2XYwJWRSMvl8h6TBv6Pt28RTRVMHqF04EPY0AFj0,1467
105
108
  khoj/interface/compiled/chat.svg,sha256=l2JoYRRgk201adTTdvJ-buKUrc0WGfsudix5xEvtM3A,2424
106
109
  khoj/interface/compiled/close.svg,sha256=hQ2iFLkNzHk0_iyTrSbwnWAeXYlgA-c2Eof2Iqh76n4,417
107
110
  khoj/interface/compiled/copy-button-success.svg,sha256=byqWAYD3Pn9IOXRjOKudJ-TJbP2UESbQGvtLWazNGjY,829
108
111
  khoj/interface/compiled/copy-button.svg,sha256=05bKM2eRxksfBlAPT7yMaoNJEk85bZCxQg67EVrPeHo,669
109
- khoj/interface/compiled/index.html,sha256=ilRbN5lKaxQpPNxJaeuHOgWHJWa8j5iW5mudzdQQLtY,11791
110
- khoj/interface/compiled/index.txt,sha256=luXbVO49jrFf9fIUfR-xjsSkVU4rCqnnYq9Lai6cjJQ,5479
112
+ khoj/interface/compiled/index.html,sha256=vFgwf9x48NQK6mYMLWViic1BrDige9jY4Qi58JNEfyE,12184
113
+ khoj/interface/compiled/index.txt,sha256=ueo3F3SjGGnKsQ9LvPIxA4jGqyinYKhiJIiqLiBAJJU,5625
111
114
  khoj/interface/compiled/khoj.webmanifest,sha256=lsknYkvEdMbRTOUYKXPM_8krN2gamJmM4u3qj8u9lrU,1682
112
115
  khoj/interface/compiled/logo.svg,sha256=_QCKVYM4WT2Qhcf7aVFImjq_s5CwjynGXYAOgI7yf8w,8059
113
116
  khoj/interface/compiled/send.svg,sha256=VdavOWkVddcwcGcld6pdfmwfz7S91M-9O28cfeiKJkM,635
114
117
  khoj/interface/compiled/share.svg,sha256=91lwo75PvMDrgocuZQab6EQ62CxRbubh9Bhw7CWMKbg,1221
115
118
  khoj/interface/compiled/thumbs-down.svg,sha256=JGNl-DwoRmH2XFMPWwFFklmoYtKxaQbkLE3nuYKe8ZY,1019
116
119
  khoj/interface/compiled/thumbs-up.svg,sha256=yS1wxTRtiztkN-6nZciLoYQUB_KTYNPV8xFRwH2TQFw,1036
117
- khoj/interface/compiled/404/index.html,sha256=Z-9VXkOuPW_QQdUO1uXk6RH9zmCv9BdJ-ZBJPTLlPok,12051
118
- khoj/interface/compiled/_next/static/chunks/121-7024f479c297aef0.js,sha256=CcRT2AArGYTo7Orl5w69nrnMqdI_EmyEP_YqIj3FU1c,20952
120
+ khoj/interface/compiled/404/index.html,sha256=7I9nb9knVD6v7uDxbehiO1TrVZMQaqrXdvDteP5f5r8,12051
121
+ khoj/interface/compiled/_next/static/GH1Wb7mTB8D7ZsHW6iRF6/_buildManifest.js,sha256=6I9QUstNpJnhe3leR2Daw0pSXwzcbBscv6h2jmmPpms,224
122
+ khoj/interface/compiled/_next/static/GH1Wb7mTB8D7ZsHW6iRF6/_ssgManifest.js,sha256=Z49s4suAsf5y_GfnQSvm4qtq2ggxEbZPfEDTXjy6XgA,80
119
123
  khoj/interface/compiled/_next/static/chunks/1210.132a7e1910006bbb.js,sha256=2dJueIfOg5qlQdanOM9HrgwcfrUXCD57bfd8Iv7iJcU,2104
124
+ khoj/interface/compiled/_next/static/chunks/1279-f37ee4a388ebf544.js,sha256=U_1WaocOdgJ4HZB8tRx_izzYGD1EZlCohC1uLCffCWc,45582
120
125
  khoj/interface/compiled/_next/static/chunks/1459.690bf20e7d7b7090.js,sha256=z-ruZPxF_Z3ef_WOThd9Ox36AMhxaW3znizVivNnA34,34239
121
- khoj/interface/compiled/_next/static/chunks/1603-bfc0b26e32ad88e3.js,sha256=Yu5-AcdrNfo7p0p_DQu2srZFyiwiiFpQB42-_bP-rxg,71237
122
- khoj/interface/compiled/_next/static/chunks/2697-37579bcc7593dd5c.js,sha256=zPnrqFOi2Hvli7WScWqgktXmBOy1gpC-g6UZwGY2hDg,7652
126
+ khoj/interface/compiled/_next/static/chunks/1603-b9d95833e0e025e8.js,sha256=bewoFif2zocxT9G-vxZvuyAFIN201YpJ8jBpSjREIOo,71609
127
+ khoj/interface/compiled/_next/static/chunks/1970-1d6d0c1b00b4f343.js,sha256=6cdvTgAJqyyihAHrhAN0Ht8yA-Y6ERdj99lLIveswZg,29835
128
+ khoj/interface/compiled/_next/static/chunks/2697-61fcba89fd87eab4.js,sha256=zPnrqFOi2Hvli7WScWqgktXmBOy1gpC-g6UZwGY2hDg,7652
123
129
  khoj/interface/compiled/_next/static/chunks/3062-71ed4b46ac2bb87c.js,sha256=847h3nNxc8t4GOW20GIAp8c5kquVPEQ7EZurPzGySo0,258667
124
130
  khoj/interface/compiled/_next/static/chunks/3110-ef2cacd1b8d79ad8.js,sha256=6Mbnwyhm_BJLppjqXE74SDZsekJV-t1mhjTK86iE904,9508
125
- khoj/interface/compiled/_next/static/chunks/3423-aad88d6c1f029135.js,sha256=tsAIhjP-ZyHzVJf63D4hRlxAb1TPg-6Q1EesOpePO3k,18599
126
- khoj/interface/compiled/_next/static/chunks/3678-ef0d20e267e9f010.js,sha256=xe1GN5CzNYfUrURzJ1FwCG-_u-EZ6nbGPK9OHI5DDfw,244206
131
+ khoj/interface/compiled/_next/static/chunks/3423-8e9c420574a9fbe3.js,sha256=i5gfw1PCHxXx0MOOKVXBT-SjCw7xPs8cCFOk_nB95pk,18747
132
+ khoj/interface/compiled/_next/static/chunks/394-6bcb8c429f168f21.js,sha256=eg8aHEE09K4aI1MfxpslzHWU_ol0iR52EqlcrsJr20I,1084027
127
133
  khoj/interface/compiled/_next/static/chunks/4504-1629487c8bc82203.js,sha256=z6NvJ2KOjYPbMNsYQKyX9PV4DeURUoP6LKoNb4kZXg0,11637
128
- khoj/interface/compiled/_next/static/chunks/477-ec86e93db10571c1.js,sha256=MSiRegYq-346mf5_9yRCeLwjNMsK1-AzVhB6nip8yv8,42703
129
- khoj/interface/compiled/_next/static/chunks/51-e8f5bdb69b5ea421.js,sha256=djNz3mrp61T3Ixalz5DatfDHULsVY5eO2Vp6cQqgPmI,106523
134
+ khoj/interface/compiled/_next/static/chunks/4602-8eeb4b76385ad159.js,sha256=pz2lEr0JOrMdrddv2R2vej4e9uxpOr5KFX966ClLbOU,29928
135
+ khoj/interface/compiled/_next/static/chunks/5512-94c7c2bbcf58c19d.js,sha256=ySpWRBlOMbttpBPr-j6_y9FmVrWfeRdardPkVnYAXzw,103730
130
136
  khoj/interface/compiled/_next/static/chunks/6297-d1c842ed3f714ab0.js,sha256=4nzZ2umR-q6wQ-8L4RSivWXKV_SE1dWoN9qA1I9lCRI,25675
131
- khoj/interface/compiled/_next/static/chunks/6327-18f0b45cc5a13afb.js,sha256=prjFVZ8jf-E8RCTErsbvEy1vnnpypwamIKoQOlWn9y8,1089902
132
137
  khoj/interface/compiled/_next/static/chunks/7023-a5bf5744d19b3bd3.js,sha256=TBJA7dTnI8nymtbljKuZzo2hbStXWR-P8Qkl57k2Tw8,123898
133
- khoj/interface/compiled/_next/static/chunks/7762-79f2205740622b5c.js,sha256=DOPdP09qQbmaPZhirSEh6YqTkC7afirl0Pzu3v3A9Pg,35789
138
+ khoj/interface/compiled/_next/static/chunks/7113-f2e114d7034a0835.js,sha256=_WB4I13sT-IJhhwbN6-pePwZYGrtDRVKERptTLMANzU,26827
139
+ khoj/interface/compiled/_next/static/chunks/7883-b1305ec254213afe.js,sha256=dDbERTNiKRIIdC7idybjZq03gnxQtudMawrekye0zH8,241134
134
140
  khoj/interface/compiled/_next/static/chunks/8840-b8d7b9f0923c6651.js,sha256=n1JrzFrvB_rC6THUiPniysyjauEG3Q3qAh20PTcfmhQ,173276
135
141
  khoj/interface/compiled/_next/static/chunks/9001-3b27af6d5f21df44.js,sha256=ran2mMGTO2kiAJebRGMyfyAu4Sdjw-WobS_m6g-qjz8,34223
136
142
  khoj/interface/compiled/_next/static/chunks/9417-759984ad62caa3dc.js,sha256=F_6dFaA3bWVQX8ISxQ7mlz1CEaGFGsClOk0Fg_BQGSM,19548
137
- khoj/interface/compiled/_next/static/chunks/9479-fcce773453e472c4.js,sha256=pavkdX37uLHfl3B5qRDakj1INLi0qHohncHpWH-0Wn8,22666
143
+ khoj/interface/compiled/_next/static/chunks/9479-4b443fdcc99141c9.js,sha256=8woo-yV7jJ1tHKJOw02oiIK4Nr0QA4ai_2bNo7WdT3s,22838
138
144
  khoj/interface/compiled/_next/static/chunks/94ca1967.5584df65931cfe83.js,sha256=lxdrZ8h3_IWkTuk6QlzM2Hd9Pvu9_p8h_EI4aveSOgE,1174519
139
145
  khoj/interface/compiled/_next/static/chunks/964ecbae.ea4eab2a3a835ffe.js,sha256=EccPkhdFk6L0NIAVQfWe4kOpRWqhf20PkYecy7R_fyo,1175119
140
146
  khoj/interface/compiled/_next/static/chunks/d3ac728e-a9e3522eef9b6b28.js,sha256=wK1TsLdl56xtbQG6HMRDpylzTOYXQaAnnn2xobFnX40,267216
@@ -143,24 +149,24 @@ khoj/interface/compiled/_next/static/chunks/framework-8e0e0f4a6b83a956.js,sha256
143
149
  khoj/interface/compiled/_next/static/chunks/main-app-6d6ee3495efe03d4.js,sha256=i52E7sWOcSq1G8eYZL3mtTxbUbwRNxcAbSWQ6uWpMsY,475
144
150
  khoj/interface/compiled/_next/static/chunks/main-f84cd3c1873cd842.js,sha256=jKg2A4pPMmEAQmrA10rACH3daS8XXJeMnGOz1AsTkdI,111099
145
151
  khoj/interface/compiled/_next/static/chunks/polyfills-78c92fac7aa8fdd8.js,sha256=6QPOwdWeAVe8x-SsiDrm-Ga6u2DkqgG5SFqglrlyIgA,91381
146
- khoj/interface/compiled/_next/static/chunks/webpack-95652a0eef2b0aeb.js,sha256=Z1kLO-N6LPVYImrsr4BICCB_MeXtYe8evo5xp7PulUM,4065
152
+ khoj/interface/compiled/_next/static/chunks/webpack-35c06f544e18305f.js,sha256=ZuxsXq0uYdIL31iB1idMGAPRLcWkrs75JMJ0SpBNV04,4065
147
153
  khoj/interface/compiled/_next/static/chunks/app/layout-d0f0a9067427fb20.js,sha256=ilPUPuMQt_2D48lC5c6AYeXT7J28ElR_Ym6VtjQwCO0,442
148
- khoj/interface/compiled/_next/static/chunks/app/page-88139ac728fe3533.js,sha256=VJoxLYWTmgAsqIVgS4uiLPxWLc2Zttpyes5WF1tQEe4,28721
154
+ khoj/interface/compiled/_next/static/chunks/app/page-337bba1c554d0742.js,sha256=BXBu_vztHaYCc2NL7iaPBWP2D8xKb07ffH7BiaNVj_M,29522
149
155
  khoj/interface/compiled/_next/static/chunks/app/_not-found/page-07ff4ab42b07845e.js,sha256=3mCUnxfMxyK44eqk21TVBrC6u--WSbvx31fTmQuOvMQ,1755
150
156
  khoj/interface/compiled/_next/static/chunks/app/agents/layout-75636ab3a413fa8e.js,sha256=0bdI7GBXZxpLy88hdWQiOc26QRZaD9R86YNMmGakWl4,372
151
- khoj/interface/compiled/_next/static/chunks/app/agents/page-997bf85681256672.js,sha256=HvuCSUCiKF3LOeD7aWNKo60ivR1ntqwumGkvdtqG_VQ,38511
157
+ khoj/interface/compiled/_next/static/chunks/app/agents/page-adbf3cd470da248f.js,sha256=2DJiNl6pLAAwDJ7il9fQSrpolusRPsq-ssgDddMCMGc,17729
152
158
  khoj/interface/compiled/_next/static/chunks/app/automations/layout-27c28e923c9b1ff0.js,sha256=d2vJ_lVB0pfeFXNUPzHAe1ca5NzdNowHPh___SPqugM,5143
153
- khoj/interface/compiled/_next/static/chunks/app/automations/page-1688dead2f21270d.js,sha256=Opqz4kE3FLbVI5dLo1OTIg8Vx8qsxV4CSOPyjG-hV_E,35446
159
+ khoj/interface/compiled/_next/static/chunks/app/automations/page-d3edae545a1b5393.js,sha256=_rz2I87Y1B7HdtEn6h4k0ZZfp4K3UUKtb-j8RaL_jTg,35449
154
160
  khoj/interface/compiled/_next/static/chunks/app/chat/layout-96fcf62857bf8f30.js,sha256=1CjjxW27P-98-jfx8gBX3eBiLI-3k9zQ6nJqcZoNMBQ,374
155
- khoj/interface/compiled/_next/static/chunks/app/chat/page-027e61d082025c50.js,sha256=r8vEg3oCVKGf_SZtzdxzIm0fsHZeGWULdLe84Eqqzqo,6031
161
+ khoj/interface/compiled/_next/static/chunks/app/chat/page-460d262a3ef77503.js,sha256=n4-VslRG7b2wJwmxtuvx46B20CU-R_Kde3VNh28_YpM,6128
156
162
  khoj/interface/compiled/_next/static/chunks/app/factchecker/layout-7b30c541c05fb904.js,sha256=yub2AuBKHKSCqrHRFnkZv9JXLmLJLOB99iiaD3DtZQM,170
157
- khoj/interface/compiled/_next/static/chunks/app/factchecker/page-f544113d240423e9.js,sha256=417VBxP5tW21IfWcE2S4fqONOQPgjNiVnjKBpjWy818,14032
163
+ khoj/interface/compiled/_next/static/chunks/app/factchecker/page-c8e5bd563a8155eb.js,sha256=tckk3UoaFMi4T7Wwu6E0sZi4gYsMpYini6PelUkysVs,14032
158
164
  khoj/interface/compiled/_next/static/chunks/app/search/layout-3720f1362310bebb.js,sha256=Smpa4MQaw5ItashtspsDKsOvRa6sOXH_lv4jIfWIbNI,170
159
- khoj/interface/compiled/_next/static/chunks/app/search/page-3ada11cda5050eeb.js,sha256=ArnHYRJIg0NJh9meWAlO0KWl-uiSo2ppCZJRSPrFRJg,6958
165
+ khoj/interface/compiled/_next/static/chunks/app/search/page-a5c277eff207959e.js,sha256=JE9P84ko6vhBzqw7zmd2PxCt3E7xcZjq-DWV0x8gVIM,6958
160
166
  khoj/interface/compiled/_next/static/chunks/app/settings/layout-a8f33dfe92f997fb.js,sha256=VQp-ZD9hDz-r6yXCDMgdxrvnm6qcuKViX7AKc9B6JBw,5347
161
- khoj/interface/compiled/_next/static/chunks/app/settings/page-fa11cafaec7ab39f.js,sha256=p_AXxBnAB4OD3db46ij_E7P0AEqSuS7LTmf3ccFNo3g,31848
167
+ khoj/interface/compiled/_next/static/chunks/app/settings/page-60097571dd9f9d37.js,sha256=JM7y1glSPLQD64iNrqVX6MzmPdBuU6zekT3An3tsC_g,32383
162
168
  khoj/interface/compiled/_next/static/chunks/app/share/chat/layout-2df56074e42adaa0.js,sha256=RPeayaV3Gbu0bJnD9vW5ml-xN-zN6UFBlTel-vOMYys,373
163
- khoj/interface/compiled/_next/static/chunks/app/share/chat/page-511186e77624eaec.js,sha256=i68VST9oqAoE7WiJPBeXB6T7_Wl-a05Hvadhf9opReY,5464
169
+ khoj/interface/compiled/_next/static/chunks/app/share/chat/page-97c4e60105009649.js,sha256=CDuNxtk75Ylp9fd8ZITf_A2bQvrUyguh_d7o_MVvx0I,5491
164
170
  khoj/interface/compiled/_next/static/chunks/pages/_app-f870474a17b7f2fd.js,sha256=eqdFPAN_XFyMUzZ9qwFk-_rhMWZrU7lgNVt1foVUANo,286
165
171
  khoj/interface/compiled/_next/static/chunks/pages/_error-c66a4e8afc46f17b.js,sha256=vjERjtMAbVk-19LyPf1Jc-H6TMcrSznSz6brzNqbqf8,253
166
172
  khoj/interface/compiled/_next/static/css/2272c73fc7a3b571.css,sha256=1fHKFd8zLOHosAHx-kxv4b9lVSqHag_E71WkV3dXx2Y,26940
@@ -170,10 +176,8 @@ khoj/interface/compiled/_next/static/css/4cae6c0e5c72fb2d.css,sha256=3CjTMmtMrm_
170
176
  khoj/interface/compiled/_next/static/css/553f9cdcc7a2bcd6.css,sha256=JpjOOwmqP9Hba-w_8Lx9jWW0ZD0kD3wR0HvdPGDyUPo,2134
171
177
  khoj/interface/compiled/_next/static/css/592ca99f5122e75a.css,sha256=BSqRkeb9vBh0phx5GkAlZirTFZintbyggGaUkuOBfaU,914
172
178
  khoj/interface/compiled/_next/static/css/5a400c87d295e68a.css,sha256=ojDUPJ9fJpEo9DzTAsEa-k1cg7Bef-nSTfpszMiqknQ,17711
173
- khoj/interface/compiled/_next/static/css/825406e5ebee86d3.css,sha256=m1fSHI9O9C1eznC6OH6spMi1WzRHSd5x8gT1eqdgMk0,1883048
174
- khoj/interface/compiled/_next/static/css/f84cf008d5ff4161.css,sha256=QP2tuCdaQ0msoGZSegkK8t6Q6rExrFkKhotg8h2OCGk,9176
175
- khoj/interface/compiled/_next/static/l0c66lMus19JlWgScUQtj/_buildManifest.js,sha256=6I9QUstNpJnhe3leR2Daw0pSXwzcbBscv6h2jmmPpms,224
176
- khoj/interface/compiled/_next/static/l0c66lMus19JlWgScUQtj/_ssgManifest.js,sha256=Z49s4suAsf5y_GfnQSvm4qtq2ggxEbZPfEDTXjy6XgA,80
179
+ khoj/interface/compiled/_next/static/css/76d55eb435962b19.css,sha256=7HKgJ7f1C6d03khVlJNAp387XUseDejbiOe3Ky3LSY8,1883083
180
+ khoj/interface/compiled/_next/static/css/afd3d45cc65d55d8.css,sha256=-7If7QmrpJNWgXMESy0E9nUtqkQI2_HejCNYVCZplRM,9505
177
181
  khoj/interface/compiled/_next/static/media/0e790e04fd40ad16-s.p.woff2,sha256=41ewITd0G1ZAoB62BTHMW58a1q8Hl6vSbTQkkHP7EbI,39372
178
182
  khoj/interface/compiled/_next/static/media/4221e1667cd19c7d-s.woff2,sha256=_Y3g0keA8P6nZnFfm_VO5o2Sne1iST3v9xz4fBo3fwM,75532
179
183
  khoj/interface/compiled/_next/static/media/6c276159aa0eb14b-s.woff2,sha256=i9Ibzi_O7y5KpImujj2rEdOZf96lpNYxYzVvCryW5Uc,140408
@@ -246,8 +250,8 @@ khoj/interface/compiled/_next/static/media/flags.3afdda2f.webp,sha256=M2AW_HLpBn
246
250
  khoj/interface/compiled/_next/static/media/flags@2x.5fbe9fc1.webp,sha256=BBeRPBZkxY3-aKkMnYv5TSkxmbeMbyUH4VRIPfrWg1E,137406
247
251
  khoj/interface/compiled/_next/static/media/globe.98e105ca.webp,sha256=g3ofb8-W9GM75zIhlvQhaS8I2py9TtrovOKR3_7Jf04,514
248
252
  khoj/interface/compiled/_next/static/media/globe@2x.974df6f8.webp,sha256=I_N7Yke3IOoS-0CC6XD8o0IUWG8PdPbrHmf6lpgWlZY,1380
249
- khoj/interface/compiled/agents/index.html,sha256=WwjRnC-jLzWpF67SbgGWNEARP8A9ntx0snsgEZ5PxfM,12830
250
- khoj/interface/compiled/agents/index.txt,sha256=QOq-yWToC1XddQdNxNkEraGh2SteL-977MXJdEJjheo,6126
253
+ khoj/interface/compiled/agents/index.html,sha256=1ElisXkIVmUT1VSDBjzMyeOsb4-qu6Ubyo74XLxQkTQ,12966
254
+ khoj/interface/compiled/agents/index.txt,sha256=JcopdxZTMV0wHGtTfBdG4UTFWpevFs2zMafc-PgmnKk,6178
251
255
  khoj/interface/compiled/assets/icons/khoj_lantern.ico,sha256=eggu-B_v3z1R53EjOFhIqqPnICBGdoaw1xnc0NrzHck,174144
252
256
  khoj/interface/compiled/assets/icons/khoj_lantern_128x128.png,sha256=aTxivDb3CYyThkVZWz8A19xl_dNut5DbkXhODWF3A9Q,5640
253
257
  khoj/interface/compiled/assets/icons/khoj_lantern_256x256.png,sha256=xPCMLHiaL7lYOdQLZrKwWE-Qjn5ZaysSZB0ScYv4UZU,12312
@@ -258,18 +262,18 @@ khoj/interface/compiled/assets/samples/desktop-remember-plan-sample.png,sha256=i
258
262
  khoj/interface/compiled/assets/samples/phone-browse-draw-sample.png,sha256=Dd4fPwtFl6BWqnHjeb1mCK_ND0hhHsWtx8sNE7EiMuE,406179
259
263
  khoj/interface/compiled/assets/samples/phone-plain-chat-sample.png,sha256=DEDaNRCkfEWUeh3kYZWIQDTVK1a6KKnYdwj5ZWisN_Q,82985
260
264
  khoj/interface/compiled/assets/samples/phone-remember-plan-sample.png,sha256=Ma3blirRmq3X4oYSsDbbT7MDn29rymDrjwmUfA9BMuM,236285
261
- khoj/interface/compiled/automations/index.html,sha256=CakdEZB4IKqHJ-bv4KYzhzGMNI3xFcRfg4JXkq4zYIw,30932
262
- khoj/interface/compiled/automations/index.txt,sha256=mX75GT0BzMV6HCNbaF84h0SDdSDgG7_bpGZu96ah2Xs,5627
263
- khoj/interface/compiled/chat/index.html,sha256=d6HlIJt-vV_5v9YlMQ3uZBHfZgX5QktKJFyMbY_TXbo,13679
264
- khoj/interface/compiled/chat/index.txt,sha256=Z09T353aBgvF81fmHhMj2RLOSDszLG6sP29yQLLDdvA,6503
265
- khoj/interface/compiled/factchecker/index.html,sha256=gnp51HhhIwHZGSqZJMYqi5EfsQy_rNirZarus0s0ELA,29973
266
- khoj/interface/compiled/factchecker/index.txt,sha256=bxg1B2qdJ29ccOIIzhO8hX14fr1V5B3aHDmaOdsqOV0,5788
267
- khoj/interface/compiled/search/index.html,sha256=jHHa6nPEbH9Y9M6Exdc2f_J_29D51jyk4lxeWjcYr0U,30161
268
- khoj/interface/compiled/search/index.txt,sha256=sCmFxm4bXIb9fBNzTkCJIZHuNNJrv92hhA6DMcZvxDY,5256
269
- khoj/interface/compiled/settings/index.html,sha256=XtP0WSvtQLj5t9ta27f2DxBilfHpTloAUI2fB0VVk0o,12831
270
- khoj/interface/compiled/settings/index.txt,sha256=i4Qc1TjHx01jPUGIuFFaK2ERQwD2MTlkWzJRMzThIJQ,6078
271
- khoj/interface/compiled/share/chat/index.html,sha256=MXspPTa79iulaLhg-GVf1IQisxuCBWltaBE5IxZT7JI,15312
272
- khoj/interface/compiled/share/chat/index.txt,sha256=x9ceUW_SE_tkmAijanMDTLlMRs61pc6fQTiC8TKy1ME,7447
265
+ khoj/interface/compiled/automations/index.html,sha256=7U8QtpWN0ipR3jUw6ZAQtbt7aYZr6WWoJWr4mcJS9OQ,30941
266
+ khoj/interface/compiled/automations/index.txt,sha256=9FNFXJgJdYp2vJcraSvsSdLgNBrKQyFsiJmnAqgbkCI,5633
267
+ khoj/interface/compiled/chat/index.html,sha256=xdDfSklhNbBrjCZn3MWhw2aKBjBwNFR2Qa0wW3l7y6o,13679
268
+ khoj/interface/compiled/chat/index.txt,sha256=Jz0yOK0d_VZhhN_V7z1W3qtKPNQ7c4FMFraWhIrKU0Q,6503
269
+ khoj/interface/compiled/factchecker/index.html,sha256=MomzecWOAyIJJDlp2aIs7n--ACtO-9BmyM-JaVfiebo,29973
270
+ khoj/interface/compiled/factchecker/index.txt,sha256=wFPBoj5YVm83yUwPLsnh1_J73lbzpvgnxjT0Lpwi_3w,5788
271
+ khoj/interface/compiled/search/index.html,sha256=WYDQf5L1Vs1NXaZk4mbjlCRX6Iw8OdC_7lfkSbvdeN4,30161
272
+ khoj/interface/compiled/search/index.txt,sha256=WxtgQCcbdZduV9aLoJJE0WPUrbWWpx2HcIQqWx_kJhE,5256
273
+ khoj/interface/compiled/settings/index.html,sha256=jClpVnikAK5d0mjlwfcE-6CU4F5GFw4edBOU1uo1StM,12831
274
+ khoj/interface/compiled/settings/index.txt,sha256=Vut_zp_ieW1G50-h4EBLX64dQznpwG2y_8T_zFbzJg0,6078
275
+ khoj/interface/compiled/share/chat/index.html,sha256=-ayS-fsu6gsDo2xQgimvmja183VG8X24QEKFvbluzSk,15312
276
+ khoj/interface/compiled/share/chat/index.txt,sha256=x0ELXqXn6emOjgshtyOy-9MnWkjwbgnXTGIChIa15ME,7447
273
277
  khoj/interface/email/feedback.html,sha256=xksuPFamx4hGWyTTxZKRgX_eiYQQEuv-eK9Xmkt-nwU,1216
274
278
  khoj/interface/email/magic_link.html,sha256=EoGKQucfPj3xQrWXhSZAzPFOYCHF_ZX94TWCd1XHl1M,941
275
279
  khoj/interface/email/task.html,sha256=tY7a0gzVeQ2lSQNu7WyXR_s7VYeWTrxWEj1iHVuoVE4,2813
@@ -303,7 +307,7 @@ khoj/migrations/migrate_version.py,sha256=6CTsLuxiLnFVF8A7CjsIz3PcnJd8fAOZeIx6tT
303
307
  khoj/processor/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
304
308
  khoj/processor/embeddings.py,sha256=DirOTKBVBJ9kuzxixdT227zgEHQV3ttjLLGdzedYsFs,5467
305
309
  khoj/processor/content/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
306
- khoj/processor/content/text_to_entries.py,sha256=Oa4Ny8c5S1_IGCmjCtUI45hX1fPTRwxXhHg1lHFqHy8,14537
310
+ khoj/processor/content/text_to_entries.py,sha256=-xDXtAtPd283d_YPfbmOfPZr71kVP2VF7rTDnei5VXI,14610
307
311
  khoj/processor/content/docx/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
308
312
  khoj/processor/content/docx/docx_to_entries.py,sha256=qCVbvetCDG30lxxUeEjg_BTNJtlYmCHZ1qDH0sBSkqk,4333
309
313
  khoj/processor/content/github/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -337,24 +341,24 @@ khoj/processor/conversation/openai/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQe
337
341
  khoj/processor/conversation/openai/gpt.py,sha256=QkSDxP_oKWmDrjP0GieO_VCztrZBj0Iltu6UWGkV7K8,7803
338
342
  khoj/processor/conversation/openai/utils.py,sha256=tGRUauPfrRGPQ7W_9-lBxpRLld8EWzMuRiTY9EptFgY,5313
339
343
  khoj/processor/conversation/openai/whisper.py,sha256=zoEeK1LNCg_tzP4xzYi5vRPzNPGuDGzpkrkG7d1LUn4,447
340
- khoj/processor/image/generate.py,sha256=jugIZ7JjUbPg0W8dN39niPuFMRXYigatNlYiHyPo7Nk,8949
344
+ khoj/processor/image/generate.py,sha256=czsxx3trVKc0zScTR5I2PxKeFU8YEl-a5vz7NXnv6dY,8950
341
345
  khoj/processor/speech/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
342
346
  khoj/processor/speech/text_to_speech.py,sha256=Q7sapi5Hv6woXOumtrGqR0t6izZrFBkWXFOGrHM6dJ4,1929
343
347
  khoj/processor/tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
344
348
  khoj/processor/tools/online_search.py,sha256=jqKvcvRyeWsBaRBKtRmNQHVoL_dhJs4C0K8yJrDhSK8,14299
345
349
  khoj/routers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
346
- khoj/routers/api.py,sha256=AdHvRkGVxGwdgw3yn3Odf6BhCQWp5AKtrai1qmB2zfs,27936
347
- khoj/routers/api_agents.py,sha256=1rmFp6rnvf3JxL0VS7X5awEvartYieBHjEWNJNnObvQ,8877
350
+ khoj/routers/api.py,sha256=mFDs5VuQZN76ognirGzLF2bJh1GTmYHp36r_No1RXto,27960
351
+ khoj/routers/api_agents.py,sha256=4T0osmOGFmYC-BhdAkT5HpT2zaktlL7Agj47-To-jxo,9773
348
352
  khoj/routers/api_chat.py,sha256=XKcbYV4AS0Zs4z3pukW8ycgaoLY3Dnsp2zDjziQ2h-w,42119
349
353
  khoj/routers/api_content.py,sha256=lWunOwVWYvnl1ue_D81g9ZSwBc0UxHmBIrdJoVPxN_A,17900
350
- khoj/routers/api_model.py,sha256=CR6aMVwgbh6dZEq1NZEeUBRVMMZubBQHTWAu6uzckf8,4650
354
+ khoj/routers/api_model.py,sha256=KDsxNwHspC94eTcv6l3ehr773EOvgc670UnZLE1WZ4o,3642
351
355
  khoj/routers/api_phone.py,sha256=p9yfc4WeMHDC0hg3aQk60a2VBy8rZPdEnz9wdJ7DzkU,2208
356
+ khoj/routers/api_subscription.py,sha256=sR5_XxQ4e_1hk3K4g0i3S8PZeULP23lnGtrWnfjhNDI,5307
352
357
  khoj/routers/auth.py,sha256=HO54PR-BkWA_iJIktEobUrObcXVYG-00jpnIcEVdR5s,6564
353
358
  khoj/routers/email.py,sha256=SGYNPQvfcvYeHf70F0YqpY0FLMRElF2ZekROXdwGI18,3821
354
- khoj/routers/helpers.py,sha256=z5l_305hBm2O6Y_LJdBqRqQWIPpKwZg-NeBdfc4y2Vw,75030
359
+ khoj/routers/helpers.py,sha256=VLsANjXF63h3O4xNooF7GWWz7y3YXQZYR2YOputEBts,74827
355
360
  khoj/routers/notion.py,sha256=Lp67xP9rVgpAF9BQoGTjZFcVdF1HYtvPP0kjq6uurKU,2802
356
361
  khoj/routers/storage.py,sha256=tJrwhFRVWv0MHv7V7huMc1Diwm-putZSwnZXJ3tqT_c,2338
357
- khoj/routers/subscription.py,sha256=2Jng8HoWQ2AxEAwgc2dBAaFdZqFuJ0nPcAY-GysfXHs,4701
358
362
  khoj/routers/twilio.py,sha256=MLsuCm4--ETvr3sLxbF0CL_ehlg_l2rKBSLR2Qh2Xls,1081
359
363
  khoj/routers/web_client.py,sha256=zvvYdBPPDS5PzPiO1mXTGp88wrDnR_1jyMM781XDpZs,4456
360
364
  khoj/search_filter/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -363,7 +367,7 @@ khoj/search_filter/date_filter.py,sha256=4VL63kDVqYKFOzkCeV6R8Z8lxFaAbbn_z_RWaWQ
363
367
  khoj/search_filter/file_filter.py,sha256=tHYW-ibaENf_jrJ88kiO_xhrPZb6FQLtngG9ISTB6h8,1168
364
368
  khoj/search_filter/word_filter.py,sha256=5Yx95aSiqGke9kEIbp8T-Ak4dS9cTd3VxI1SaJoK1wY,1005
365
369
  khoj/search_type/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
366
- khoj/search_type/text_search.py,sha256=S7aHl6WhOuIe5HyXVAukmWJDu5NwzBo_XOvEDbUHH7A,9470
370
+ khoj/search_type/text_search.py,sha256=TwiKoUQ6UG8inAW7eReSRD5H3J5n49STirain0QZVQY,9507
367
371
  khoj/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
368
372
  khoj/utils/cli.py,sha256=AgO3rO-bN5oI71sIReGxrJXPeXEH80fnCIsyVlZYgjI,3695
369
373
  khoj/utils/config.py,sha256=aiOkH0je8A30DAGYTHMRePrgJonFv_i07_7CdhhhcdA,1805
@@ -376,8 +380,8 @@ khoj/utils/models.py,sha256=Q5tcC9-z25sCiub048fLnvZ6_IIO1bcPNxt5payekk0,2009
376
380
  khoj/utils/rawconfig.py,sha256=kURDuk7x0MDtniGLU4x1IsvU4UIBS-V9dSM4GD8X-LY,4274
377
381
  khoj/utils/state.py,sha256=x4GTewP1YhOA6c_32N4wOjnV-3AA3xG_qbY1-wC2Uxc,1559
378
382
  khoj/utils/yaml.py,sha256=H0mfw0ZvBFUvFmCQn8pWkfxdmIebsrSykza7D8Wv6wQ,1430
379
- khoj-1.26.5.dev15.dist-info/METADATA,sha256=2v68R5_v1CxP5VSFWTjMLBYMsiiRKAWXw0raR7ZLD_M,7026
380
- khoj-1.26.5.dev15.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
381
- khoj-1.26.5.dev15.dist-info/entry_points.txt,sha256=KBIcez5N_jCgq_ER4Uxf-e1lxTBMTE_BBjMwwfeZyAg,39
382
- khoj-1.26.5.dev15.dist-info/licenses/LICENSE,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
383
- khoj-1.26.5.dev15.dist-info/RECORD,,
383
+ khoj-1.26.5.dev35.dist-info/METADATA,sha256=Bx9c0WS0mIlnTW2pFRCBfzcv0NXB-Xqe091kOOM8awI,7026
384
+ khoj-1.26.5.dev35.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
385
+ khoj-1.26.5.dev35.dist-info/entry_points.txt,sha256=KBIcez5N_jCgq_ER4Uxf-e1lxTBMTE_BBjMwwfeZyAg,39
386
+ khoj-1.26.5.dev35.dist-info/licenses/LICENSE,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
387
+ khoj-1.26.5.dev35.dist-info/RECORD,,
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[121],{11838:function(e){var t;t=function(){"use strict";let{entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:o,getOwnPropertyDescriptor:r}=Object,{freeze:i,seal:a,create:l}=Object,{apply:c,construct:s}="undefined"!=typeof Reflect&&Reflect;i||(i=function(e){return e}),a||(a=function(e){return e}),c||(c=function(e,t,n){return e.apply(t,n)}),s||(s=function(e,t){return new e(...t)});let u=b(Array.prototype.forEach),m=b(Array.prototype.pop),p=b(Array.prototype.push),f=b(String.prototype.toLowerCase),d=b(String.prototype.toString),h=b(String.prototype.match),g=b(String.prototype.replace),y=b(String.prototype.indexOf),T=b(String.prototype.trim),E=b(Object.prototype.hasOwnProperty),_=b(RegExp.prototype.test),A=(q=TypeError,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return s(q,t)});function b(e){return function(t){for(var n=arguments.length,o=Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return c(e,t,o)}}function N(e,o){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f;t&&t(e,null);let i=o.length;for(;i--;){let t=o[i];if("string"==typeof t){let e=r(t);e!==t&&(n(o)||(o[i]=e),t=e)}e[t]=!0}return e}function S(t){let n=l(null);for(let[o,r]of e(t))E(t,o)&&(Array.isArray(r)?n[o]=function(e){for(let t=0;t<e.length;t++)E(e,t)||(e[t]=null);return e}(r):r&&"object"==typeof r&&r.constructor===Object?n[o]=S(r):n[o]=r);return n}function w(e,t){for(;null!==e;){let n=r(e,t);if(n){if(n.get)return b(n.get);if("function"==typeof n.value)return b(n.value)}e=o(e)}return function(){return null}}let R=i(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),C=i(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),v=i(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),L=i(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),k=i(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),D=i(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),x=i(["#text"]),O=i(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),I=i(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),M=i(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),U=i(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),P=a(/\{\{[\w\W]*|[\w\W]*\}\}/gm),H=a(/<%[\w\W]*|[\w\W]*%>/gm),F=a(/\${[\w\W]*}/gm),z=a(/^data-[\-\w.\u00B7-\uFFFF]/),W=a(/^aria-[\-\w]+$/),B=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),G=a(/^(?:\w+script|data):/i),Y=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),j=a(/^html$/i);var q,X=Object.freeze({__proto__:null,MUSTACHE_EXPR:P,ERB_EXPR:H,TMPLIT_EXPR:F,DATA_ATTR:z,ARIA_ATTR:W,IS_ALLOWED_URI:B,IS_SCRIPT_OR_DATA:G,ATTR_WHITESPACE:Y,DOCTYPE_NAME:j,CUSTOM_ELEMENT:a(/^[a-z][.\w]*(-[.\w]+)+$/i)});let $={element:1,text:3,progressingInstruction:7,comment:8,document:9},K=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null,o="data-tt-policy-suffix";t&&t.hasAttribute(o)&&(n=t.getAttribute(o));let r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}};return function t(){let n,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window,r=e=>t(e);if(r.version="3.1.6",r.removed=[],!o||!o.document||o.document.nodeType!==$.document)return r.isSupported=!1,r;let{document:a}=o,c=a,s=c.currentScript,{DocumentFragment:b,HTMLTemplateElement:P,Node:H,Element:F,NodeFilter:z,NamedNodeMap:W=o.NamedNodeMap||o.MozNamedAttrMap,HTMLFormElement:G,DOMParser:Y,trustedTypes:q}=o,V=F.prototype,Z=w(V,"cloneNode"),J=w(V,"remove"),Q=w(V,"nextSibling"),ee=w(V,"childNodes"),et=w(V,"parentNode");if("function"==typeof P){let e=a.createElement("template");e.content&&e.content.ownerDocument&&(a=e.content.ownerDocument)}let en="",{implementation:eo,createNodeIterator:er,createDocumentFragment:ei,getElementsByTagName:ea}=a,{importNode:el}=c,ec={};r.isSupported="function"==typeof e&&"function"==typeof et&&eo&&void 0!==eo.createHTMLDocument;let{MUSTACHE_EXPR:es,ERB_EXPR:eu,TMPLIT_EXPR:em,DATA_ATTR:ep,ARIA_ATTR:ef,IS_SCRIPT_OR_DATA:ed,ATTR_WHITESPACE:eh,CUSTOM_ELEMENT:eg}=X,{IS_ALLOWED_URI:ey}=X,eT=null,eE=N({},[...R,...C,...v,...k,...x]),e_=null,eA=N({},[...O,...I,...M,...U]),eb=Object.seal(l(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),eN=null,eS=null,ew=!0,eR=!0,eC=!1,ev=!0,eL=!1,ek=!0,eD=!1,ex=!1,eO=!1,eI=!1,eM=!1,eU=!1,eP=!0,eH=!1,eF=!0,ez=!1,eW={},eB=null,eG=N({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),eY=null,ej=N({},["audio","video","img","source","image","track"]),eq=null,eX=N({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),e$="http://www.w3.org/1998/Math/MathML",eK="http://www.w3.org/2000/svg",eV="http://www.w3.org/1999/xhtml",eZ=eV,eJ=!1,eQ=null,e0=N({},[e$,eK,eV],d),e1=null,e2=["application/xhtml+xml","text/html"],e3=null,e9=null,e8=a.createElement("form"),e5=function(e){return e instanceof RegExp||e instanceof Function},e6=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!e9||e9!==e){if(e&&"object"==typeof e||(e={}),e=S(e),e3="application/xhtml+xml"===(e1=-1===e2.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE)?d:f,eT=E(e,"ALLOWED_TAGS")?N({},e.ALLOWED_TAGS,e3):eE,e_=E(e,"ALLOWED_ATTR")?N({},e.ALLOWED_ATTR,e3):eA,eQ=E(e,"ALLOWED_NAMESPACES")?N({},e.ALLOWED_NAMESPACES,d):e0,eq=E(e,"ADD_URI_SAFE_ATTR")?N(S(eX),e.ADD_URI_SAFE_ATTR,e3):eX,eY=E(e,"ADD_DATA_URI_TAGS")?N(S(ej),e.ADD_DATA_URI_TAGS,e3):ej,eB=E(e,"FORBID_CONTENTS")?N({},e.FORBID_CONTENTS,e3):eG,eN=E(e,"FORBID_TAGS")?N({},e.FORBID_TAGS,e3):{},eS=E(e,"FORBID_ATTR")?N({},e.FORBID_ATTR,e3):{},eW=!!E(e,"USE_PROFILES")&&e.USE_PROFILES,ew=!1!==e.ALLOW_ARIA_ATTR,eR=!1!==e.ALLOW_DATA_ATTR,eC=e.ALLOW_UNKNOWN_PROTOCOLS||!1,ev=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,eL=e.SAFE_FOR_TEMPLATES||!1,ek=!1!==e.SAFE_FOR_XML,eD=e.WHOLE_DOCUMENT||!1,eI=e.RETURN_DOM||!1,eM=e.RETURN_DOM_FRAGMENT||!1,eU=e.RETURN_TRUSTED_TYPE||!1,eO=e.FORCE_BODY||!1,eP=!1!==e.SANITIZE_DOM,eH=e.SANITIZE_NAMED_PROPS||!1,eF=!1!==e.KEEP_CONTENT,ez=e.IN_PLACE||!1,ey=e.ALLOWED_URI_REGEXP||B,eZ=e.NAMESPACE||eV,eb=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&e5(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(eb.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&e5(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(eb.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(eb.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),eL&&(eR=!1),eM&&(eI=!0),eW&&(eT=N({},x),e_=[],!0===eW.html&&(N(eT,R),N(e_,O)),!0===eW.svg&&(N(eT,C),N(e_,I),N(e_,U)),!0===eW.svgFilters&&(N(eT,v),N(e_,I),N(e_,U)),!0===eW.mathMl&&(N(eT,k),N(e_,M),N(e_,U))),e.ADD_TAGS&&(eT===eE&&(eT=S(eT)),N(eT,e.ADD_TAGS,e3)),e.ADD_ATTR&&(e_===eA&&(e_=S(e_)),N(e_,e.ADD_ATTR,e3)),e.ADD_URI_SAFE_ATTR&&N(eq,e.ADD_URI_SAFE_ATTR,e3),e.FORBID_CONTENTS&&(eB===eG&&(eB=S(eB)),N(eB,e.FORBID_CONTENTS,e3)),eF&&(eT["#text"]=!0),eD&&N(eT,["html","head","body"]),eT.table&&(N(eT,["tbody"]),delete eN.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw A('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw A('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');en=(n=e.TRUSTED_TYPES_POLICY).createHTML("")}else void 0===n&&(n=K(q,s)),null!==n&&"string"==typeof en&&(en=n.createHTML(""));i&&i(e),e9=e}},e7=N({},["mi","mo","mn","ms","mtext"]),e4=N({},["foreignobject","annotation-xml"]),te=N({},["title","style","font","a","script"]),tt=N({},[...C,...v,...L]),tn=N({},[...k,...D]),to=function(e){let t=et(e);t&&t.tagName||(t={namespaceURI:eZ,tagName:"template"});let n=f(e.tagName),o=f(t.tagName);return!!eQ[e.namespaceURI]&&(e.namespaceURI===eK?t.namespaceURI===eV?"svg"===n:t.namespaceURI===e$?"svg"===n&&("annotation-xml"===o||e7[o]):!!tt[n]:e.namespaceURI===e$?t.namespaceURI===eV?"math"===n:t.namespaceURI===eK?"math"===n&&e4[o]:!!tn[n]:e.namespaceURI===eV?(t.namespaceURI!==eK||!!e4[o])&&(t.namespaceURI!==e$||!!e7[o])&&!tn[n]&&(te[n]||!tt[n]):"application/xhtml+xml"===e1&&!!eQ[e.namespaceURI])},tr=function(e){p(r.removed,{element:e});try{et(e).removeChild(e)}catch(t){J(e)}},ti=function(e,t){try{p(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){p(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!e_[e]){if(eI||eM)try{tr(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}}},ta=function(e){let t=null,o=null;if(eO)e="<remove></remove>"+e;else{let t=h(e,/^[\r\n\t ]+/);o=t&&t[0]}"application/xhtml+xml"===e1&&eZ===eV&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");let r=n?n.createHTML(e):e;if(eZ===eV)try{t=new Y().parseFromString(r,e1)}catch(e){}if(!t||!t.documentElement){t=eo.createDocument(eZ,"template",null);try{t.documentElement.innerHTML=eJ?en:r}catch(e){}}let i=t.body||t.documentElement;return(e&&o&&i.insertBefore(a.createTextNode(o),i.childNodes[0]||null),eZ===eV)?ea.call(t,eD?"html":"body")[0]:eD?t.documentElement:i},tl=function(e){return er.call(e.ownerDocument||e,e,z.SHOW_ELEMENT|z.SHOW_COMMENT|z.SHOW_TEXT|z.SHOW_PROCESSING_INSTRUCTION|z.SHOW_CDATA_SECTION,null)},tc=function(e){return e instanceof G&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof W)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},ts=function(e){return"function"==typeof H&&e instanceof H},tu=function(e,t,n){ec[e]&&u(ec[e],e=>{e.call(r,t,n,e9)})},tm=function(e){let t=null;if(tu("beforeSanitizeElements",e,null),tc(e))return tr(e),!0;let n=e3(e.nodeName);if(tu("uponSanitizeElement",e,{tagName:n,allowedTags:eT}),e.hasChildNodes()&&!ts(e.firstElementChild)&&_(/<[/\w]/g,e.innerHTML)&&_(/<[/\w]/g,e.textContent)||e.nodeType===$.progressingInstruction||ek&&e.nodeType===$.comment&&_(/<[/\w]/g,e.data))return tr(e),!0;if(!eT[n]||eN[n]){if(!eN[n]&&tf(n)&&(eb.tagNameCheck instanceof RegExp&&_(eb.tagNameCheck,n)||eb.tagNameCheck instanceof Function&&eb.tagNameCheck(n)))return!1;if(eF&&!eB[n]){let t=et(e)||e.parentNode,n=ee(e)||e.childNodes;if(n&&t){let o=n.length;for(let r=o-1;r>=0;--r){let o=Z(n[r],!0);o.__removalCount=(e.__removalCount||0)+1,t.insertBefore(o,Q(e))}}}return tr(e),!0}return e instanceof F&&!to(e)||("noscript"===n||"noembed"===n||"noframes"===n)&&_(/<\/no(script|embed|frames)/i,e.innerHTML)?(tr(e),!0):(eL&&e.nodeType===$.text&&(t=e.textContent,u([es,eu,em],e=>{t=g(t,e," ")}),e.textContent!==t&&(p(r.removed,{element:e.cloneNode()}),e.textContent=t)),tu("afterSanitizeElements",e,null),!1)},tp=function(e,t,n){if(eP&&("id"===t||"name"===t)&&(n in a||n in e8))return!1;if(eR&&!eS[t]&&_(ep,t));else if(ew&&_(ef,t));else if(!e_[t]||eS[t]){if(!(tf(e)&&(eb.tagNameCheck instanceof RegExp&&_(eb.tagNameCheck,e)||eb.tagNameCheck instanceof Function&&eb.tagNameCheck(e))&&(eb.attributeNameCheck instanceof RegExp&&_(eb.attributeNameCheck,t)||eb.attributeNameCheck instanceof Function&&eb.attributeNameCheck(t))||"is"===t&&eb.allowCustomizedBuiltInElements&&(eb.tagNameCheck instanceof RegExp&&_(eb.tagNameCheck,n)||eb.tagNameCheck instanceof Function&&eb.tagNameCheck(n))))return!1}else if(eq[t]);else if(_(ey,g(n,eh,"")));else if(("src"===t||"xlink:href"===t||"href"===t)&&"script"!==e&&0===y(n,"data:")&&eY[e]);else if(eC&&!_(ed,g(n,eh,"")));else if(n)return!1;return!0},tf=function(e){return"annotation-xml"!==e&&h(e,eg)},td=function(e){tu("beforeSanitizeAttributes",e,null);let{attributes:t}=e;if(!t)return;let o={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:e_},i=t.length;for(;i--;){let{name:a,namespaceURI:l,value:c}=t[i],s=e3(a),p="value"===a?c:T(c);if(o.attrName=s,o.attrValue=p,o.keepAttr=!0,o.forceKeepAttr=void 0,tu("uponSanitizeAttribute",e,o),p=o.attrValue,ek&&_(/((--!?|])>)|<\/(style|title)/i,p)){ti(a,e);continue}if(o.forceKeepAttr||(ti(a,e),!o.keepAttr))continue;if(!ev&&_(/\/>/i,p)){ti(a,e);continue}eL&&u([es,eu,em],e=>{p=g(p,e," ")});let f=e3(e.nodeName);if(tp(f,s,p)){if(eH&&("id"===s||"name"===s)&&(ti(a,e),p="user-content-"+p),n&&"object"==typeof q&&"function"==typeof q.getAttributeType){if(l);else switch(q.getAttributeType(f,s)){case"TrustedHTML":p=n.createHTML(p);break;case"TrustedScriptURL":p=n.createScriptURL(p)}}try{l?e.setAttributeNS(l,a,p):e.setAttribute(a,p),tc(e)?tr(e):m(r.removed)}catch(e){}}}tu("afterSanitizeAttributes",e,null)},th=function e(t){let n=null,o=tl(t);for(tu("beforeSanitizeShadowDOM",t,null);n=o.nextNode();)tu("uponSanitizeShadowNode",n,null),tm(n)||(n.content instanceof b&&e(n.content),td(n));tu("afterSanitizeShadowDOM",t,null)};return r.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=null,i=null,a=null,l=null;if((eJ=!e)&&(e="<!-->"),"string"!=typeof e&&!ts(e)){if("function"==typeof e.toString){if("string"!=typeof(e=e.toString()))throw A("dirty is not a string, aborting")}else throw A("toString is not a function")}if(!r.isSupported)return e;if(ex||e6(t),r.removed=[],"string"==typeof e&&(ez=!1),ez){if(e.nodeName){let t=e3(e.nodeName);if(!eT[t]||eN[t])throw A("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof H)(i=(o=ta("<!---->")).ownerDocument.importNode(e,!0)).nodeType===$.element&&"BODY"===i.nodeName?o=i:"HTML"===i.nodeName?o=i:o.appendChild(i);else{if(!eI&&!eL&&!eD&&-1===e.indexOf("<"))return n&&eU?n.createHTML(e):e;if(!(o=ta(e)))return eI?null:eU?en:""}o&&eO&&tr(o.firstChild);let s=tl(ez?e:o);for(;a=s.nextNode();)tm(a)||(a.content instanceof b&&th(a.content),td(a));if(ez)return e;if(eI){if(eM)for(l=ei.call(o.ownerDocument);o.firstChild;)l.appendChild(o.firstChild);else l=o;return(e_.shadowroot||e_.shadowrootmode)&&(l=el.call(c,l,!0)),l}let m=eD?o.outerHTML:o.innerHTML;return eD&&eT["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&_(j,o.ownerDocument.doctype.name)&&(m="<!DOCTYPE "+o.ownerDocument.doctype.name+">\n"+m),eL&&u([es,eu,em],e=>{m=g(m,e," ")}),n&&eU?n.createHTML(m):m},r.setConfig=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e6(e),ex=!0},r.clearConfig=function(){e9=null,ex=!1},r.isValidAttribute=function(e,t,n){return e9||e6({}),tp(e3(e),e3(t),n)},r.addHook=function(e,t){"function"==typeof t&&(ec[e]=ec[e]||[],p(ec[e],t))},r.removeHook=function(e){if(ec[e])return m(ec[e])},r.removeHooks=function(e){ec[e]&&(ec[e]=[])},r.removeAllHooks=function(){ec={}},r}()},e.exports=t()},7395:function(){}}]);