nielsr HF Staff commited on
Commit
70fdaf6
·
verified ·
1 Parent(s): 6bd2ac1

Sync paperswithcode.co frontend

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .vite/manifest.json +863 -856
  2. assets/{AgentLogos-DmfyY5wp.js → AgentLogos-BGglpy29.js} +1 -1
  3. assets/{AiDeadlinesView-BTpqiv2W.js → AiDeadlinesView-BSHUHeo0.js} +1 -1
  4. assets/{ApiDocsView-C-pEbO6K.js → ApiDocsView-x-zSamei.js} +1 -1
  5. assets/{AreaSection-ixYJgExd.js → AreaSection-eDvRZ5YZ.js} +1 -1
  6. assets/{AstraForRoboticsView-D9IFRT3b.js → AstraForRoboticsView-DEi5RtZo.js} +1 -1
  7. assets/{AuthorAvatar-D53WcphF.js → AuthorAvatar-RLVSdcTr.js} +1 -1
  8. assets/{AuthorDetailView-CGfZLBuD.js → AuthorDetailView-DL-uye_I.js} +1 -1
  9. assets/{AuthorizePaperEditView-Cf7lN2tR.js → AuthorizePaperEditView-C33y_gny.js} +1 -1
  10. assets/{AutonomousOperations-VQEk1CYo.js → AutonomousOperations-Bnh5-stU.js} +1 -1
  11. assets/{BenchmarkDetailView-tyFsDQzp.js → BenchmarkDetailView-CGtDu5Yx.js} +1 -1
  12. assets/{BenchmarkTrendSparkline-DsB2YdnJ.js → BenchmarkTrendSparkline-e2Hr_BzC.js} +1 -1
  13. assets/{CatalogEntityPreviewLink-Br2W1MKt.js → CatalogEntityPreviewLink-BEEX6c5n.js} +1 -1
  14. assets/ChatView-DWJHl306.js +6 -0
  15. assets/ChatView-Dem6dkHV.js +0 -6
  16. assets/{ConferenceDetailView-DBeUagwh.js → ConferenceDetailView-BIgAthVP.js} +1 -1
  17. assets/{ConferenceTaskView-u8GXoK6R.js → ConferenceTaskView-CIOlr6as.js} +1 -1
  18. assets/{ConferencesIndexView-DgrLNXsN.js → ConferencesIndexView-SwvYvYVc.js} +1 -1
  19. assets/{CronDashboard-B3FMPuu4.js → CronDashboard-An3Raxu1.js} +1 -1
  20. assets/{CronDashboard-CFuRWi5s.js → CronDashboard-uLEk1l8b.js} +1 -1
  21. assets/{ExternalSourceEvalBadge-DVDMif98.js → ExternalSourceEvalBadge-DcDIi3qu.js} +1 -1
  22. assets/{FeedView-Bvrw2hFo.js → FeedView-Bux1HAcv.js} +1 -1
  23. assets/FollowingView-DkTrRhPH.js +1 -0
  24. assets/FollowingView-iOqIZWd5.js +0 -1
  25. assets/{FrameworksIndexView-Ba1P2nhU.js → FrameworksIndexView-DvcCH5CJ.js} +1 -1
  26. assets/{Icon-DQoMmS2z.js → Icon-BTX00T3U.js} +1 -1
  27. assets/{LatexTitle-CIj5wiaM.js → LatexTitle-C0en22SO.js} +1 -1
  28. assets/{LoadFailurePage-DvxhRUcs.js → LoadFailurePage-CbxBcR6o.js} +1 -1
  29. assets/{MarkdownText-CDVRt1ok.js → MarkdownText-CZlaYENs.js} +2 -2
  30. assets/MathMarkdownText-BmLaP91f.js +1 -0
  31. assets/MathMarkdownText-CbZJ6yfJ.js +0 -1
  32. assets/{McpShowcase-DSFseGGp.js → McpShowcase-BIaXtPrM.js} +1 -1
  33. assets/{McpView-DlbC-UXe.js → McpView-CbQ0ihMp.js} +1 -1
  34. assets/{MethodDetailView-BwnJP0nB.js → MethodDetailView-DQWrmGHv.js} +1 -1
  35. assets/{MethodsIndexView-Cve7w9wa.js → MethodsIndexView-r_It4Z0b.js} +1 -1
  36. assets/{NotFound-BLAjrkTN.js → NotFound-Dm23aroU.js} +1 -1
  37. assets/{OrganizationContributionGraph-DgJA6xQv.js → OrganizationContributionGraph-619a7ZA1.js} +1 -1
  38. assets/{OrganizationDetailView-CT65By-7.js → OrganizationDetailView-DiwWSGGc.js} +1 -1
  39. assets/{OrganizationsIndexView-_ZvSj6MP.js → OrganizationsIndexView-DcNR5yt2.js} +1 -1
  40. assets/{PaperCard-Do-fUKOE.js → PaperCard-CpWKB_q0.js} +1 -1
  41. assets/{PaperDetailView--GX78457.js → PaperDetailView-BQUJfM_c.js} +1 -1
  42. assets/{PaperPreviewLink-Dhou1ws3.js → PaperPreviewLink-BQBSQN0t.js} +1 -1
  43. assets/PaperReaderView-BJ1_bHyt.js +0 -1
  44. assets/PaperReaderView-BQq3sDX_.js +1 -0
  45. assets/{PapersListView-cP3dCWrx.js → PapersListView-CuPGMfr4.js} +1 -1
  46. assets/{PrivacyView-ZUudC-Wz.js → PrivacyView-BrL4IPUA.js} +1 -1
  47. assets/{RateLimitsView-CXDYWh4H.js → RateLimitsView-CuW0zveG.js} +1 -1
  48. assets/{ResearchFollowButton-ktN3oGoK.js → ResearchFollowButton-lWVVvGzA.js} +1 -1
  49. assets/{SavedPapersView-B5dDziEM.js → SavedPapersView-1LLDd2V8.js} +1 -1
  50. assets/{SearchOverlay-BPmyRq9O.js → SearchOverlay-B6JALIPr.js} +1 -1
.vite/manifest.json CHANGED
@@ -1,25 +1,25 @@
1
  {
2
- "_AgentLogos-DmfyY5wp.js": {
3
- "file": "assets/AgentLogos-DmfyY5wp.js",
4
  "name": "AgentLogos",
5
  "imports": [
6
  "index.html"
7
  ]
8
  },
9
- "_AreaSection-ixYJgExd.js": {
10
- "file": "assets/AreaSection-ixYJgExd.js",
11
  "name": "AreaSection",
12
  "imports": [
13
  "index.html",
14
- "_skeleton-7Kak9gS9.js"
15
  ]
16
  },
17
  "_AuthorAvatar-!~{017}~.js": {
18
  "file": "assets/AuthorAvatar-o5W6pl_W.css",
19
  "src": "_AuthorAvatar-!~{017}~.js"
20
  },
21
- "_AuthorAvatar-D53WcphF.js": {
22
- "file": "assets/AuthorAvatar-D53WcphF.js",
23
  "name": "AuthorAvatar",
24
  "imports": [
25
  "index.html"
@@ -28,27 +28,27 @@
28
  "assets/AuthorAvatar-o5W6pl_W.css"
29
  ]
30
  },
31
- "_BenchmarkTrendSparkline-DsB2YdnJ.js": {
32
- "file": "assets/BenchmarkTrendSparkline-DsB2YdnJ.js",
33
  "name": "BenchmarkTrendSparkline",
34
  "imports": [
35
  "index.html"
36
  ]
37
  },
38
- "_CatalogEntityPreviewLink-Br2W1MKt.js": {
39
- "file": "assets/CatalogEntityPreviewLink-Br2W1MKt.js",
40
  "name": "CatalogEntityPreviewLink",
41
  "imports": [
42
  "index.html",
43
- "_hover-card-CZZ0A1FG.js"
44
  ]
45
  },
46
  "_CronDashboard-!~{022}~.js": {
47
  "file": "assets/CronDashboard-DwChfW9h.css",
48
  "src": "_CronDashboard-!~{022}~.js"
49
  },
50
- "_CronDashboard-CFuRWi5s.js": {
51
- "file": "assets/CronDashboard-CFuRWi5s.js",
52
  "name": "CronDashboard",
53
  "imports": [
54
  "index.html"
@@ -61,27 +61,27 @@
61
  "file": "assets/ExternalSourceEvalBadge-CWUQ52cV.css",
62
  "src": "_ExternalSourceEvalBadge-!~{01L}~.js"
63
  },
64
- "_ExternalSourceEvalBadge-DVDMif98.js": {
65
- "file": "assets/ExternalSourceEvalBadge-DVDMif98.js",
66
  "name": "ExternalSourceEvalBadge",
67
  "imports": [
68
  "index.html",
69
- "_hover-card-CZZ0A1FG.js",
70
  "_safeExternalHref-CkBrsh84.js"
71
  ],
72
  "css": [
73
  "assets/ExternalSourceEvalBadge-CWUQ52cV.css"
74
  ]
75
  },
76
- "_Icon-DQoMmS2z.js": {
77
- "file": "assets/Icon-DQoMmS2z.js",
78
  "name": "Icon",
79
  "imports": [
80
  "index.html"
81
  ]
82
  },
83
- "_LatexTitle-CIj5wiaM.js": {
84
- "file": "assets/LatexTitle-CIj5wiaM.js",
85
  "name": "LatexTitle",
86
  "imports": [
87
  "index.html"
@@ -90,107 +90,107 @@
90
  "node_modules/katex/dist/katex.mjs"
91
  ]
92
  },
93
- "_LoadFailurePage-DvxhRUcs.js": {
94
- "file": "assets/LoadFailurePage-DvxhRUcs.js",
95
  "name": "LoadFailurePage",
96
  "imports": [
97
  "index.html",
98
- "_alert-CMc00cqX.js",
99
  "src/pages/NotFound.tsx"
100
  ]
101
  },
102
- "_MarkdownText-CDVRt1ok.js": {
103
- "file": "assets/MarkdownText-CDVRt1ok.js",
104
  "name": "MarkdownText",
105
  "imports": [
106
  "index.html",
107
- "_PaperPreviewLink-Dhou1ws3.js",
108
- "_index-CqH2_Dpk.js",
109
- "_index-BHTJgSQg.js"
110
  ],
111
  "dynamicImports": [
112
  "src/components/MathMarkdownText.tsx"
113
  ]
114
  },
115
- "_McpShowcase-DSFseGGp.js": {
116
- "file": "assets/McpShowcase-DSFseGGp.js",
117
  "name": "McpShowcase",
118
  "imports": [
119
  "index.html",
120
- "_AgentLogos-DmfyY5wp.js"
121
  ]
122
  },
123
- "_OrganizationContributionGraph-DgJA6xQv.js": {
124
- "file": "assets/OrganizationContributionGraph-DgJA6xQv.js",
125
  "name": "OrganizationContributionGraph",
126
  "imports": [
127
  "index.html",
128
- "_skeleton-7Kak9gS9.js"
129
  ]
130
  },
131
- "_PaperCard-Do-fUKOE.js": {
132
- "file": "assets/PaperCard-Do-fUKOE.js",
133
  "name": "PaperCard",
134
  "imports": [
135
  "index.html",
136
- "_AuthorAvatar-D53WcphF.js",
137
- "_SotaBadges-Cy5KKcKe.js",
138
- "_Icon-DQoMmS2z.js",
139
- "_LatexTitle-CIj5wiaM.js",
140
  "_safeExternalHref-CkBrsh84.js"
141
  ]
142
  },
143
- "_PaperPreviewLink-Dhou1ws3.js": {
144
- "file": "assets/PaperPreviewLink-Dhou1ws3.js",
145
  "name": "PaperPreviewLink",
146
  "imports": [
147
- "_index-CqH2_Dpk.js",
148
- "_index-BHTJgSQg.js",
149
  "index.html",
150
- "_hover-card-CZZ0A1FG.js",
151
- "_useMutation-BcnLcaMd.js"
152
  ]
153
  },
154
- "_ResearchFollowButton-ktN3oGoK.js": {
155
- "file": "assets/ResearchFollowButton-ktN3oGoK.js",
156
  "name": "ResearchFollowButton",
157
  "imports": [
158
  "index.html",
159
- "_researchTopic-elGDd7wA.js",
160
- "_plus-C20t97Ow.js"
161
  ]
162
  },
163
- "_SignInToEditDialog-TqUvJJvy.js": {
164
- "file": "assets/SignInToEditDialog-TqUvJJvy.js",
165
  "name": "SignInToEditDialog",
166
  "imports": [
167
  "index.html",
168
- "_button-Ow7LPhoW.js",
169
- "_input-BMQ_TuLd.js",
170
- "_textarea-DNcp7UYC.js",
171
- "_searchable-select-B_-gAqcr.js",
172
- "_dialog-Bk_CUlgJ.js",
173
- "_useMutation-BcnLcaMd.js",
174
- "_submissions-1Rk-8Ke6.js",
175
- "_loader-circle-CmbX91bp.js"
176
- ]
177
- },
178
- "_SotaBadges-Cy5KKcKe.js": {
179
- "file": "assets/SotaBadges-Cy5KKcKe.js",
180
  "name": "SotaBadges",
181
  "imports": [
182
  "index.html",
183
  "_colors-BkWRhvFI.js",
184
- "_transform-krmE0Oxv.js"
185
  ]
186
  },
187
- "_TaxonomySuggestionTile-NdypTQlh.js": {
188
- "file": "assets/TaxonomySuggestionTile-NdypTQlh.js",
189
  "name": "TaxonomySuggestionTile",
190
  "imports": [
191
  "index.html",
192
- "_SignInToEditDialog-TqUvJJvy.js",
193
- "_plus-C20t97Ow.js"
194
  ]
195
  },
196
  "__vite-browser-external": {
@@ -199,15 +199,15 @@
199
  "src": "__vite-browser-external",
200
  "isDynamicEntry": true
201
  },
202
- "_activity-D_eSbyYq.js": {
203
- "file": "assets/activity-D_eSbyYq.js",
204
  "name": "activity",
205
  "imports": [
206
  "index.html"
207
  ]
208
  },
209
- "_alert-CMc00cqX.js": {
210
- "file": "assets/alert-CMc00cqX.js",
211
  "name": "alert",
212
  "imports": [
213
  "index.html"
@@ -217,50 +217,50 @@
217
  "file": "assets/areas-Dvi8w2dp.js",
218
  "name": "areas"
219
  },
220
- "_arrow-left-BHT-3INU.js": {
221
- "file": "assets/arrow-left-BHT-3INU.js",
222
  "name": "arrow-left",
223
  "imports": [
224
  "index.html"
225
  ]
226
  },
227
- "_arrow-right-fRQqO2yg.js": {
228
- "file": "assets/arrow-right-fRQqO2yg.js",
229
  "name": "arrow-right",
230
  "imports": [
231
  "index.html"
232
  ]
233
  },
234
- "_arrow-up-right-D4ZJIEeB.js": {
235
- "file": "assets/arrow-up-right-D4ZJIEeB.js",
236
  "name": "arrow-up-right",
237
  "imports": [
238
  "index.html"
239
  ]
240
  },
241
- "_badge-C3csz_-c.js": {
242
- "file": "assets/badge-C3csz_-c.js",
243
  "name": "badge",
244
  "imports": [
245
  "index.html"
246
  ]
247
  },
248
- "_button-Ow7LPhoW.js": {
249
- "file": "assets/button-Ow7LPhoW.js",
250
  "name": "button",
251
  "imports": [
252
  "index.html"
253
  ]
254
  },
255
- "_cacheSync-C3q_x9UG.js": {
256
- "file": "assets/cacheSync-C3q_x9UG.js",
257
  "name": "cacheSync",
258
  "imports": [
259
  "index.html"
260
  ]
261
  },
262
- "_chat-BaxbAYDA.js": {
263
- "file": "assets/chat-BaxbAYDA.js",
264
  "name": "chat",
265
  "imports": [
266
  "index.html"
@@ -270,31 +270,31 @@
270
  "file": "assets/chatLifecycle-Lr_OJaUk.css",
271
  "src": "_chatLifecycle-!~{01l}~.js"
272
  },
273
- "_chatLifecycle-DTJ_7jbh.js": {
274
- "file": "assets/chatLifecycle-DTJ_7jbh.js",
275
  "name": "chatLifecycle",
276
  "imports": [
277
  "index.html",
278
- "_chatSessions-BHe2vEWV.js",
279
- "_hover-card-CZZ0A1FG.js",
280
- "_CatalogEntityPreviewLink-Br2W1MKt.js",
281
- "_github-CknlAJTS.js",
282
- "_file-text-CrUpLQJ2.js",
283
- "_PaperPreviewLink-Dhou1ws3.js",
284
- "_index-CqH2_Dpk.js",
285
- "_index-CRH6N9tH.js",
286
- "_index-BHTJgSQg.js",
287
- "_useMutation-BcnLcaMd.js",
288
- "_chat-BaxbAYDA.js",
289
- "_thumbs-up-Bc07M7BA.js",
290
- "_copy-COezQGP9.js",
291
- "_arrow-left-BHT-3INU.js",
292
- "_external-link-CCL892xT.js",
293
- "_plus-C20t97Ow.js",
294
- "_search-DfIPA_iX.js",
295
- "_chevron-up-DAPpOAWB.js",
296
- "_AuthorAvatar-D53WcphF.js",
297
- "_trash-2-cqcsUQJn.js"
298
  ],
299
  "dynamicImports": [
300
  "__vite-browser-external",
@@ -369,23 +369,15 @@
369
  "assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf"
370
  ]
371
  },
372
- "_chatSessions-BHe2vEWV.js": {
373
- "file": "assets/chatSessions-BHe2vEWV.js",
374
- "name": "chatSessions",
375
- "imports": [
376
- "index.html",
377
- "_chat-BaxbAYDA.js"
378
- ]
379
- },
380
- "_chevron-up-DAPpOAWB.js": {
381
- "file": "assets/chevron-up-DAPpOAWB.js",
382
  "name": "chevron-up",
383
  "imports": [
384
  "index.html"
385
  ]
386
  },
387
- "_circle-check-BKkD2pPD.js": {
388
- "file": "assets/circle-check-BKkD2pPD.js",
389
  "name": "circle-check",
390
  "imports": [
391
  "index.html"
@@ -399,15 +391,15 @@
399
  "file": "assets/conferenceListings-BnmhBx-_.js",
400
  "name": "conferenceListings"
401
  },
402
- "_copy-COezQGP9.js": {
403
- "file": "assets/copy-COezQGP9.js",
404
  "name": "copy",
405
  "imports": [
406
  "index.html"
407
  ]
408
  },
409
- "_database-B8UhKmRp.js": {
410
- "file": "assets/database-B8UhKmRp.js",
411
  "name": "database",
412
  "imports": [
413
  "index.html"
@@ -417,22 +409,22 @@
417
  "file": "assets/deadlines-BG5SWwEG.js",
418
  "name": "deadlines"
419
  },
420
- "_dialog-Bk_CUlgJ.js": {
421
- "file": "assets/dialog-Bk_CUlgJ.js",
422
  "name": "dialog",
423
  "imports": [
424
  "index.html"
425
  ]
426
  },
427
- "_external-link-CCL892xT.js": {
428
- "file": "assets/external-link-CCL892xT.js",
429
  "name": "external-link",
430
  "imports": [
431
  "index.html"
432
  ]
433
  },
434
- "_file-text-CrUpLQJ2.js": {
435
- "file": "assets/file-text-CrUpLQJ2.js",
436
  "name": "file-text",
437
  "imports": [
438
  "index.html"
@@ -442,108 +434,123 @@
442
  "file": "assets/frameworks-DDA0P4Tf.js",
443
  "name": "frameworks"
444
  },
445
- "_github-CknlAJTS.js": {
446
- "file": "assets/github-CknlAJTS.js",
447
  "name": "github",
448
  "imports": [
449
  "index.html"
450
  ]
451
  },
452
- "_globe-CT4vHjcD.js": {
453
- "file": "assets/globe-CT4vHjcD.js",
454
  "name": "globe",
455
  "imports": [
456
  "index.html"
457
  ]
458
  },
459
- "_hover-card-CZZ0A1FG.js": {
460
- "file": "assets/hover-card-CZZ0A1FG.js",
461
  "name": "hover-card",
462
  "imports": [
463
  "index.html"
464
  ]
465
  },
466
- "_index-BHTJgSQg.js": {
467
- "file": "assets/index-BHTJgSQg.js",
 
 
 
 
468
  "name": "index",
469
  "imports": [
470
- "_index-CqH2_Dpk.js"
471
  ]
472
  },
473
- "_index-CRH6N9tH.js": {
474
- "file": "assets/index-CRH6N9tH.js",
475
  "name": "index",
476
  "imports": [
477
- "_index-CqH2_Dpk.js",
478
- "node_modules/katex/dist/katex.mjs"
 
 
 
479
  ]
480
  },
481
- "_index-CqH2_Dpk.js": {
482
- "file": "assets/index-CqH2_Dpk.js",
483
  "name": "index",
484
  "imports": [
485
  "index.html"
486
  ]
487
  },
488
- "_index-Df3nFJJR.js": {
489
- "file": "assets/index-Df3nFJJR.js",
490
  "name": "index",
491
  "imports": [
492
- "index.html"
 
 
 
 
 
 
 
 
493
  ]
494
  },
495
- "_input-BMQ_TuLd.js": {
496
- "file": "assets/input-BMQ_TuLd.js",
497
  "name": "input",
498
  "imports": [
499
  "index.html"
500
  ]
501
  },
502
- "_link-2-BUINBL04.js": {
503
- "file": "assets/link-2-BUINBL04.js",
504
  "name": "link-2",
505
  "imports": [
506
  "index.html"
507
  ]
508
  },
509
- "_loader-circle-CmbX91bp.js": {
510
- "file": "assets/loader-circle-CmbX91bp.js",
511
  "name": "loader-circle",
512
  "imports": [
513
  "index.html"
514
  ]
515
  },
516
- "_mlIntern-CUgKrjLX.js": {
517
- "file": "assets/mlIntern-CUgKrjLX.js",
518
  "name": "mlIntern",
519
  "imports": [
520
  "index.html"
521
  ]
522
  },
523
- "_moon-D7UrDvZg.js": {
524
- "file": "assets/moon-D7UrDvZg.js",
525
  "name": "moon",
526
  "imports": [
527
  "index.html"
528
  ]
529
  },
530
- "_openrouter-CbaTDPpy.js": {
531
- "file": "assets/openrouter-CbaTDPpy.js",
532
  "name": "openrouter",
533
  "imports": [
534
  "index.html",
535
- "_chat-BaxbAYDA.js"
536
  ]
537
  },
538
  "_organizationNames-BVKzYEBp.js": {
539
  "file": "assets/organizationNames-BVKzYEBp.js",
540
  "name": "organizationNames"
541
  },
542
- "_pageTitles-CFPKZULe.js": {
543
- "file": "assets/pageTitles-CFPKZULe.js",
544
  "name": "pageTitles",
545
  "imports": [
546
- "_useDocumentTitle-_d-BLODt.js"
547
  ]
548
  },
549
  "_paperReader-D1y30HyW.js": {
@@ -553,82 +560,82 @@
553
  "_safeExternalHref-CkBrsh84.js"
554
  ]
555
  },
556
- "_plus-C20t97Ow.js": {
557
- "file": "assets/plus-C20t97Ow.js",
558
  "name": "plus",
559
  "imports": [
560
  "index.html"
561
  ]
562
  },
563
- "_popover-qWW92hSh.js": {
564
- "file": "assets/popover-qWW92hSh.js",
565
  "name": "popover",
566
  "imports": [
567
  "index.html"
568
  ]
569
  },
570
- "_preferences-BPB6rcxH.js": {
571
- "file": "assets/preferences-BPB6rcxH.js",
572
  "name": "preferences",
573
  "imports": [
574
  "index.html",
575
- "_useMutation-BcnLcaMd.js"
576
  ]
577
  },
578
- "_refresh-cw-BdvH7i2x.js": {
579
- "file": "assets/refresh-cw-BdvH7i2x.js",
580
  "name": "refresh-cw",
581
  "imports": [
582
  "index.html"
583
  ]
584
  },
585
- "_researchTopic-elGDd7wA.js": {
586
- "file": "assets/researchTopic-elGDd7wA.js",
587
  "name": "researchTopic",
588
  "imports": [
589
  "index.html",
590
- "_useMutation-BcnLcaMd.js"
591
  ]
592
  },
593
  "_safeExternalHref-CkBrsh84.js": {
594
  "file": "assets/safeExternalHref-CkBrsh84.js",
595
  "name": "safeExternalHref"
596
  },
597
- "_savedPapersAuth-CEGk1D0G.js": {
598
- "file": "assets/savedPapersAuth-CEGk1D0G.js",
599
  "name": "savedPapersAuth",
600
  "imports": [
601
  "index.html"
602
  ]
603
  },
604
- "_search-DfIPA_iX.js": {
605
- "file": "assets/search-DfIPA_iX.js",
606
  "name": "search",
607
  "imports": [
608
  "index.html"
609
  ]
610
  },
611
- "_searchable-select-B_-gAqcr.js": {
612
- "file": "assets/searchable-select-B_-gAqcr.js",
613
  "name": "searchable-select",
614
  "imports": [
615
  "index.html",
616
- "_button-Ow7LPhoW.js",
617
- "_popover-qWW92hSh.js",
618
- "_dialog-Bk_CUlgJ.js",
619
- "_search-DfIPA_iX.js",
620
- "_loader-circle-CmbX91bp.js"
621
  ]
622
  },
623
- "_share-2-uOkTzPmw.js": {
624
- "file": "assets/share-2-uOkTzPmw.js",
625
  "name": "share-2",
626
  "imports": [
627
  "index.html"
628
  ]
629
  },
630
- "_skeleton-7Kak9gS9.js": {
631
- "file": "assets/skeleton-7Kak9gS9.js",
632
  "name": "skeleton",
633
  "imports": [
634
  "index.html"
@@ -638,163 +645,163 @@
638
  "file": "assets/slug-BpH-Nkvz.js",
639
  "name": "slug"
640
  },
641
- "_submissions-1Rk-8Ke6.js": {
642
- "file": "assets/submissions-1Rk-8Ke6.js",
643
  "name": "submissions",
644
  "imports": [
645
  "index.html"
646
  ]
647
  },
648
- "_switch-idJDRCOy.js": {
649
- "file": "assets/switch-idJDRCOy.js",
650
  "name": "switch",
651
  "imports": [
652
  "index.html",
653
- "_index-Df3nFJJR.js"
654
  ]
655
  },
656
- "_taskIcons-BMFs356n.js": {
657
- "file": "assets/taskIcons-BMFs356n.js",
658
  "name": "taskIcons",
659
  "imports": [
660
  "index.html",
661
- "_search-DfIPA_iX.js",
662
- "_triangle-alert-DWlcmd9V.js",
663
- "_share-2-uOkTzPmw.js",
664
- "_trending-up-a8B6Ks2N.js",
665
- "_moon-D7UrDvZg.js",
666
- "_thumbs-up-Bc07M7BA.js",
667
- "_database-B8UhKmRp.js",
668
- "_link-2-BUINBL04.js",
669
- "_trophy-D0uB2X3s.js",
670
- "_file-text-CrUpLQJ2.js",
671
- "_activity-D_eSbyYq.js",
672
- "_globe-CT4vHjcD.js"
673
- ]
674
- },
675
- "_textarea-DNcp7UYC.js": {
676
- "file": "assets/textarea-DNcp7UYC.js",
677
  "name": "textarea",
678
  "imports": [
679
  "index.html"
680
  ]
681
  },
682
- "_thumbs-up-Bc07M7BA.js": {
683
- "file": "assets/thumbs-up-Bc07M7BA.js",
684
  "name": "thumbs-up",
685
  "imports": [
686
  "index.html"
687
  ]
688
  },
689
- "_transform-krmE0Oxv.js": {
690
- "file": "assets/transform-krmE0Oxv.js",
691
  "name": "transform",
692
  "imports": [
693
  "index.html"
694
  ]
695
  },
696
- "_trash-2-cqcsUQJn.js": {
697
- "file": "assets/trash-2-cqcsUQJn.js",
698
  "name": "trash-2",
699
  "imports": [
700
  "index.html"
701
  ]
702
  },
703
- "_trending-up-a8B6Ks2N.js": {
704
- "file": "assets/trending-up-a8B6Ks2N.js",
705
  "name": "trending-up",
706
  "imports": [
707
  "index.html"
708
  ]
709
  },
710
- "_triangle-alert-DWlcmd9V.js": {
711
- "file": "assets/triangle-alert-DWlcmd9V.js",
712
  "name": "triangle-alert",
713
  "imports": [
714
  "index.html"
715
  ]
716
  },
717
- "_trophy-D0uB2X3s.js": {
718
- "file": "assets/trophy-D0uB2X3s.js",
719
  "name": "trophy",
720
  "imports": [
721
  "index.html"
722
  ]
723
  },
724
- "_undo-2-CNDnHC37.js": {
725
- "file": "assets/undo-2-CNDnHC37.js",
726
  "name": "undo-2",
727
  "imports": [
728
  "index.html"
729
  ]
730
  },
731
- "_useDebounce-DUFNcXEQ.js": {
732
- "file": "assets/useDebounce-DUFNcXEQ.js",
733
  "name": "useDebounce",
734
  "imports": [
735
  "index.html"
736
  ]
737
  },
738
- "_useDocumentTitle-_d-BLODt.js": {
739
- "file": "assets/useDocumentTitle-_d-BLODt.js",
740
  "name": "useDocumentTitle",
741
  "imports": [
742
  "index.html"
743
  ]
744
  },
745
- "_useHashScrollOnReady-DXXE6OaL.js": {
746
- "file": "assets/useHashScrollOnReady-DXXE6OaL.js",
747
  "name": "useHashScrollOnReady",
748
  "imports": [
749
  "index.html",
750
- "_skeleton-7Kak9gS9.js",
751
- "_alert-CMc00cqX.js",
752
- "_trending-up-a8B6Ks2N.js"
753
  ]
754
  },
755
- "_useInfiniteQuery-Cvn4-XUc.js": {
756
- "file": "assets/useInfiniteQuery-Cvn4-XUc.js",
757
  "name": "useInfiniteQuery",
758
  "imports": [
759
  "index.html"
760
  ]
761
  },
762
- "_useIntersectionObserver-BjZh7B9X.js": {
763
- "file": "assets/useIntersectionObserver-BjZh7B9X.js",
764
  "name": "useIntersectionObserver",
765
  "imports": [
766
  "index.html"
767
  ]
768
  },
769
- "_useMutation-BcnLcaMd.js": {
770
- "file": "assets/useMutation-BcnLcaMd.js",
771
  "name": "useMutation",
772
  "imports": [
773
  "index.html"
774
  ]
775
  },
776
- "_usePapers-Df-AyQGj.js": {
777
- "file": "assets/usePapers-Df-AyQGj.js",
778
  "name": "usePapers",
779
  "imports": [
780
  "index.html",
781
- "_PaperCard-Do-fUKOE.js",
782
- "_popover-qWW92hSh.js",
783
- "_Icon-DQoMmS2z.js",
784
- "_skeleton-7Kak9gS9.js",
785
- "_useIntersectionObserver-BjZh7B9X.js",
786
- "_useInfiniteQuery-Cvn4-XUc.js"
787
  ]
788
  },
789
- "_useQueries-r_pw4lYy.js": {
790
- "file": "assets/useQueries-r_pw4lYy.js",
791
  "name": "useQueries",
792
  "imports": [
793
  "index.html"
794
  ]
795
  },
796
  "index.html": {
797
- "file": "assets/index-2xE415-f.js",
798
  "name": "index",
799
  "src": "index.html",
800
  "isEntry": true,
@@ -840,7 +847,7 @@
840
  "src/views/StagingAccessRequestView.tsx"
841
  ],
842
  "css": [
843
- "assets/index-CTRpgFfm.css"
844
  ],
845
  "assets": [
846
  "assets/inter-normal-latin-Dx4kXJAl.woff2",
@@ -1186,19 +1193,19 @@
1186
  "src": "src/assets/fonts/newsreader-normal-vietnamese.woff2"
1187
  },
1188
  "src/components/MathMarkdownText.tsx": {
1189
- "file": "assets/MathMarkdownText-CbZJ6yfJ.js",
1190
  "name": "MathMarkdownText",
1191
  "src": "src/components/MathMarkdownText.tsx",
1192
  "isDynamicEntry": true,
1193
  "imports": [
1194
  "index.html",
1195
- "_MarkdownText-CDVRt1ok.js",
1196
- "_index-CRH6N9tH.js",
1197
- "_PaperPreviewLink-Dhou1ws3.js",
1198
- "_index-CqH2_Dpk.js",
1199
- "_index-BHTJgSQg.js",
1200
- "_hover-card-CZZ0A1FG.js",
1201
- "_useMutation-BcnLcaMd.js",
1202
  "node_modules/katex/dist/katex.mjs"
1203
  ],
1204
  "css": [
@@ -1267,61 +1274,61 @@
1267
  ]
1268
  },
1269
  "src/components/SearchOverlay.tsx": {
1270
- "file": "assets/SearchOverlay-BPmyRq9O.js",
1271
  "name": "SearchOverlay",
1272
  "src": "src/components/SearchOverlay.tsx",
1273
  "isDynamicEntry": true,
1274
  "imports": [
1275
  "index.html",
1276
- "_LatexTitle-CIj5wiaM.js",
1277
- "_useDebounce-DUFNcXEQ.js",
1278
  "_colors-BkWRhvFI.js",
1279
- "_transform-krmE0Oxv.js"
1280
  ]
1281
  },
1282
  "src/pages/AutonomousOperations.tsx": {
1283
- "file": "assets/AutonomousOperations-VQEk1CYo.js",
1284
  "name": "AutonomousOperations",
1285
  "src": "src/pages/AutonomousOperations.tsx",
1286
  "isDynamicEntry": true,
1287
  "imports": [
1288
  "index.html",
1289
- "_useMutation-BcnLcaMd.js",
1290
- "_CronDashboard-CFuRWi5s.js",
1291
- "_badge-C3csz_-c.js",
1292
- "_button-Ow7LPhoW.js",
1293
- "_input-BMQ_TuLd.js",
1294
- "_activity-D_eSbyYq.js",
1295
- "_arrow-left-BHT-3INU.js"
1296
  ]
1297
  },
1298
  "src/pages/CronDashboard.tsx": {
1299
- "file": "assets/CronDashboard-B3FMPuu4.js",
1300
  "name": "CronDashboard",
1301
  "src": "src/pages/CronDashboard.tsx",
1302
  "isDynamicEntry": true,
1303
  "imports": [
1304
  "index.html",
1305
- "_useMutation-BcnLcaMd.js",
1306
- "_CronDashboard-CFuRWi5s.js",
1307
- "_badge-C3csz_-c.js",
1308
- "_button-Ow7LPhoW.js",
1309
- "_chevron-up-DAPpOAWB.js",
1310
- "_database-B8UhKmRp.js",
1311
- "_trending-up-a8B6Ks2N.js",
1312
- "_activity-D_eSbyYq.js",
1313
- "_file-text-CrUpLQJ2.js",
1314
- "_triangle-alert-DWlcmd9V.js",
1315
- "_external-link-CCL892xT.js",
1316
- "_refresh-cw-BdvH7i2x.js",
1317
- "_loader-circle-CmbX91bp.js",
1318
- "_circle-check-BKkD2pPD.js",
1319
- "_useInfiniteQuery-Cvn4-XUc.js",
1320
- "_chat-BaxbAYDA.js"
1321
  ]
1322
  },
1323
  "src/pages/NotFound.tsx": {
1324
- "file": "assets/NotFound-BLAjrkTN.js",
1325
  "name": "NotFound",
1326
  "src": "src/pages/NotFound.tsx",
1327
  "isDynamicEntry": true,
@@ -1330,194 +1337,194 @@
1330
  ]
1331
  },
1332
  "src/pages/SubmissionsDashboard.tsx": {
1333
- "file": "assets/SubmissionsDashboard-thzFbvM4.js",
1334
  "name": "SubmissionsDashboard",
1335
  "src": "src/pages/SubmissionsDashboard.tsx",
1336
  "isDynamicEntry": true,
1337
  "imports": [
1338
  "index.html",
1339
- "_cacheSync-C3q_x9UG.js",
1340
- "_useMutation-BcnLcaMd.js",
1341
- "_useInfiniteQuery-Cvn4-XUc.js",
1342
- "_useQueries-r_pw4lYy.js",
1343
  "_safeExternalHref-CkBrsh84.js",
1344
- "_submissions-1Rk-8Ke6.js",
1345
- "_refresh-cw-BdvH7i2x.js",
1346
- "_loader-circle-CmbX91bp.js",
1347
- "_circle-check-BKkD2pPD.js",
1348
- "_undo-2-CNDnHC37.js"
1349
  ],
1350
  "css": [
1351
  "assets/SubmissionsDashboard-Dgd_CI1v.css"
1352
  ]
1353
  },
1354
  "src/views/AiDeadlinesView.tsx": {
1355
- "file": "assets/AiDeadlinesView-BTpqiv2W.js",
1356
  "name": "AiDeadlinesView",
1357
  "src": "src/views/AiDeadlinesView.tsx",
1358
  "isDynamicEntry": true,
1359
  "imports": [
1360
  "index.html",
1361
- "_switch-idJDRCOy.js",
1362
- "_skeleton-7Kak9gS9.js",
1363
- "_alert-CMc00cqX.js",
1364
  "_safeExternalHref-CkBrsh84.js",
1365
- "_dialog-Bk_CUlgJ.js",
1366
  "_deadlines-BG5SWwEG.js",
1367
- "_useDocumentTitle-_d-BLODt.js",
1368
- "_pageTitles-CFPKZULe.js",
1369
- "_index-Df3nFJJR.js"
1370
  ]
1371
  },
1372
  "src/views/ApiDocsView.tsx": {
1373
- "file": "assets/ApiDocsView-C-pEbO6K.js",
1374
  "name": "ApiDocsView",
1375
  "src": "src/views/ApiDocsView.tsx",
1376
  "isDynamicEntry": true,
1377
  "imports": [
1378
  "index.html",
1379
- "_useDocumentTitle-_d-BLODt.js",
1380
- "_index-CqH2_Dpk.js"
1381
  ],
1382
  "css": [
1383
  "assets/ApiDocsView-DPuMdYvY.css"
1384
  ]
1385
  },
1386
  "src/views/AstraForRoboticsView.tsx": {
1387
- "file": "assets/AstraForRoboticsView-D9IFRT3b.js",
1388
  "name": "AstraForRoboticsView",
1389
  "src": "src/views/AstraForRoboticsView.tsx",
1390
  "isDynamicEntry": true,
1391
  "imports": [
1392
  "index.html",
1393
- "_usePapers-Df-AyQGj.js",
1394
- "_alert-CMc00cqX.js",
1395
- "_useDocumentTitle-_d-BLODt.js",
1396
- "_transform-krmE0Oxv.js",
1397
- "_PaperCard-Do-fUKOE.js",
1398
- "_AuthorAvatar-D53WcphF.js",
1399
- "_SotaBadges-Cy5KKcKe.js",
1400
  "_colors-BkWRhvFI.js",
1401
- "_Icon-DQoMmS2z.js",
1402
- "_LatexTitle-CIj5wiaM.js",
1403
  "_safeExternalHref-CkBrsh84.js",
1404
- "_popover-qWW92hSh.js",
1405
- "_skeleton-7Kak9gS9.js",
1406
- "_useIntersectionObserver-BjZh7B9X.js",
1407
- "_useInfiniteQuery-Cvn4-XUc.js"
1408
  ],
1409
  "css": [
1410
  "assets/AstraForRoboticsView-C_lTF_XB.css"
1411
  ]
1412
  },
1413
  "src/views/AuthorDetailView.tsx": {
1414
- "file": "assets/AuthorDetailView-CGfZLBuD.js",
1415
  "name": "AuthorDetailView",
1416
  "src": "src/views/AuthorDetailView.tsx",
1417
  "isDynamicEntry": true,
1418
  "imports": [
1419
  "index.html",
1420
- "_AuthorAvatar-D53WcphF.js",
1421
- "_usePapers-Df-AyQGj.js",
1422
- "_ResearchFollowButton-ktN3oGoK.js",
1423
- "_alert-CMc00cqX.js",
1424
- "_skeleton-7Kak9gS9.js",
1425
- "_transform-krmE0Oxv.js",
1426
  "src/pages/NotFound.tsx",
1427
- "_useDocumentTitle-_d-BLODt.js",
1428
- "_pageTitles-CFPKZULe.js",
1429
- "_PaperCard-Do-fUKOE.js",
1430
- "_SotaBadges-Cy5KKcKe.js",
1431
  "_colors-BkWRhvFI.js",
1432
- "_Icon-DQoMmS2z.js",
1433
- "_LatexTitle-CIj5wiaM.js",
1434
  "_safeExternalHref-CkBrsh84.js",
1435
- "_popover-qWW92hSh.js",
1436
- "_useIntersectionObserver-BjZh7B9X.js",
1437
- "_useInfiniteQuery-Cvn4-XUc.js",
1438
- "_researchTopic-elGDd7wA.js",
1439
- "_useMutation-BcnLcaMd.js",
1440
- "_plus-C20t97Ow.js"
1441
  ]
1442
  },
1443
  "src/views/AuthorizePaperEditView.tsx": {
1444
- "file": "assets/AuthorizePaperEditView-Cf7lN2tR.js",
1445
  "name": "AuthorizePaperEditView",
1446
  "src": "src/views/AuthorizePaperEditView.tsx",
1447
  "isDynamicEntry": true,
1448
  "imports": [
1449
  "index.html",
1450
- "_useMutation-BcnLcaMd.js",
1451
- "_button-Ow7LPhoW.js"
1452
  ]
1453
  },
1454
  "src/views/BenchmarkDetailView.tsx": {
1455
- "file": "assets/BenchmarkDetailView-tyFsDQzp.js",
1456
  "name": "BenchmarkDetailView",
1457
  "src": "src/views/BenchmarkDetailView.tsx",
1458
  "isDynamicEntry": true,
1459
  "imports": [
1460
  "index.html",
1461
- "_ResearchFollowButton-ktN3oGoK.js",
1462
- "_preferences-BPB6rcxH.js",
1463
- "_LatexTitle-CIj5wiaM.js",
1464
- "_ExternalSourceEvalBadge-DVDMif98.js",
1465
- "_switch-idJDRCOy.js",
1466
- "_Icon-DQoMmS2z.js",
1467
- "_skeleton-7Kak9gS9.js",
1468
- "_BenchmarkTrendSparkline-DsB2YdnJ.js",
1469
  "_safeExternalHref-CkBrsh84.js",
1470
  "_slug-BpH-Nkvz.js",
1471
  "src/pages/NotFound.tsx",
1472
- "_LoadFailurePage-DvxhRUcs.js",
1473
- "_useDocumentTitle-_d-BLODt.js",
1474
- "_pageTitles-CFPKZULe.js",
1475
- "_researchTopic-elGDd7wA.js",
1476
- "_useMutation-BcnLcaMd.js",
1477
- "_plus-C20t97Ow.js",
1478
- "_hover-card-CZZ0A1FG.js",
1479
- "_index-Df3nFJJR.js",
1480
- "_alert-CMc00cqX.js"
1481
  ],
1482
  "css": [
1483
  "assets/BenchmarkDetailView-CXxK75GR.css"
1484
  ]
1485
  },
1486
  "src/views/ChatView.tsx": {
1487
- "file": "assets/ChatView-Dem6dkHV.js",
1488
  "name": "ChatView",
1489
  "src": "src/views/ChatView.tsx",
1490
  "isDynamicEntry": true,
1491
  "imports": [
1492
  "index.html",
1493
- "_chatLifecycle-DTJ_7jbh.js",
1494
- "_chatSessions-BHe2vEWV.js",
1495
- "_chat-BaxbAYDA.js",
1496
- "_McpShowcase-DSFseGGp.js",
1497
- "_share-2-uOkTzPmw.js",
1498
- "_useMutation-BcnLcaMd.js",
1499
- "_Icon-DQoMmS2z.js",
1500
- "_mlIntern-CUgKrjLX.js",
1501
- "_openrouter-CbaTDPpy.js",
1502
- "_hover-card-CZZ0A1FG.js",
1503
- "_CatalogEntityPreviewLink-Br2W1MKt.js",
1504
- "_github-CknlAJTS.js",
1505
- "_file-text-CrUpLQJ2.js",
1506
- "_PaperPreviewLink-Dhou1ws3.js",
1507
- "_index-CqH2_Dpk.js",
1508
- "_index-BHTJgSQg.js",
1509
- "_index-CRH6N9tH.js",
1510
  "node_modules/katex/dist/katex.mjs",
1511
- "_thumbs-up-Bc07M7BA.js",
1512
- "_copy-COezQGP9.js",
1513
- "_arrow-left-BHT-3INU.js",
1514
- "_external-link-CCL892xT.js",
1515
- "_plus-C20t97Ow.js",
1516
- "_search-DfIPA_iX.js",
1517
- "_chevron-up-DAPpOAWB.js",
1518
- "_AuthorAvatar-D53WcphF.js",
1519
- "_trash-2-cqcsUQJn.js",
1520
- "_AgentLogos-DmfyY5wp.js"
1521
  ],
1522
  "css": [
1523
  "assets/katex-wklAmtGL.css"
@@ -1585,270 +1592,270 @@
1585
  ]
1586
  },
1587
  "src/views/ConferenceDetailView.tsx": {
1588
- "file": "assets/ConferenceDetailView-DBeUagwh.js",
1589
  "name": "ConferenceDetailView",
1590
  "src": "src/views/ConferenceDetailView.tsx",
1591
  "isDynamicEntry": true,
1592
  "imports": [
1593
  "index.html",
1594
- "_AreaSection-ixYJgExd.js",
1595
- "_MarkdownText-CDVRt1ok.js",
1596
  "_areas-Dvi8w2dp.js",
1597
  "_colors-BkWRhvFI.js",
1598
  "_conferenceListings-BnmhBx-_.js",
1599
  "_deadlines-BG5SWwEG.js",
1600
- "_transform-krmE0Oxv.js",
1601
- "_skeleton-7Kak9gS9.js",
1602
  "_safeExternalHref-CkBrsh84.js",
1603
- "_LoadFailurePage-DvxhRUcs.js",
1604
- "_useDocumentTitle-_d-BLODt.js",
1605
- "_pageTitles-CFPKZULe.js",
1606
- "_PaperPreviewLink-Dhou1ws3.js",
1607
- "_index-CqH2_Dpk.js",
1608
- "_index-BHTJgSQg.js",
1609
- "_hover-card-CZZ0A1FG.js",
1610
- "_useMutation-BcnLcaMd.js",
1611
- "_alert-CMc00cqX.js",
1612
  "src/pages/NotFound.tsx"
1613
  ]
1614
  },
1615
  "src/views/ConferenceTaskView.tsx": {
1616
- "file": "assets/ConferenceTaskView-u8GXoK6R.js",
1617
  "name": "ConferenceTaskView",
1618
  "src": "src/views/ConferenceTaskView.tsx",
1619
  "isDynamicEntry": true,
1620
  "imports": [
1621
  "index.html",
1622
- "_usePapers-Df-AyQGj.js",
1623
- "_MarkdownText-CDVRt1ok.js",
1624
  "_conferenceListings-BnmhBx-_.js",
1625
- "_transform-krmE0Oxv.js",
1626
- "_LoadFailurePage-DvxhRUcs.js",
1627
- "_PaperCard-Do-fUKOE.js",
1628
- "_AuthorAvatar-D53WcphF.js",
1629
- "_SotaBadges-Cy5KKcKe.js",
1630
  "_colors-BkWRhvFI.js",
1631
- "_Icon-DQoMmS2z.js",
1632
- "_LatexTitle-CIj5wiaM.js",
1633
  "_safeExternalHref-CkBrsh84.js",
1634
- "_popover-qWW92hSh.js",
1635
- "_skeleton-7Kak9gS9.js",
1636
- "_useIntersectionObserver-BjZh7B9X.js",
1637
- "_useInfiniteQuery-Cvn4-XUc.js",
1638
- "_PaperPreviewLink-Dhou1ws3.js",
1639
- "_index-CqH2_Dpk.js",
1640
- "_index-BHTJgSQg.js",
1641
- "_hover-card-CZZ0A1FG.js",
1642
- "_useMutation-BcnLcaMd.js",
1643
- "_alert-CMc00cqX.js",
1644
  "src/pages/NotFound.tsx"
1645
  ]
1646
  },
1647
  "src/views/ConferencesIndexView.tsx": {
1648
- "file": "assets/ConferencesIndexView-DgrLNXsN.js",
1649
  "name": "ConferencesIndexView",
1650
  "src": "src/views/ConferencesIndexView.tsx",
1651
  "isDynamicEntry": true,
1652
  "imports": [
1653
  "index.html",
1654
  "_deadlines-BG5SWwEG.js",
1655
- "_alert-CMc00cqX.js",
1656
- "_AreaSection-ixYJgExd.js",
1657
- "_TaxonomySuggestionTile-NdypTQlh.js",
1658
- "_useDocumentTitle-_d-BLODt.js",
1659
- "_pageTitles-CFPKZULe.js",
1660
- "_skeleton-7Kak9gS9.js",
1661
- "_SignInToEditDialog-TqUvJJvy.js",
1662
- "_button-Ow7LPhoW.js",
1663
- "_input-BMQ_TuLd.js",
1664
- "_textarea-DNcp7UYC.js",
1665
- "_searchable-select-B_-gAqcr.js",
1666
- "_popover-qWW92hSh.js",
1667
- "_dialog-Bk_CUlgJ.js",
1668
- "_search-DfIPA_iX.js",
1669
- "_loader-circle-CmbX91bp.js",
1670
- "_useMutation-BcnLcaMd.js",
1671
- "_submissions-1Rk-8Ke6.js",
1672
- "_plus-C20t97Ow.js"
1673
  ]
1674
  },
1675
  "src/views/FeedView.tsx": {
1676
- "file": "assets/FeedView-Bvrw2hFo.js",
1677
  "name": "FeedView",
1678
  "src": "src/views/FeedView.tsx",
1679
  "isDynamicEntry": true,
1680
  "imports": [
1681
  "index.html",
1682
- "_taskIcons-BMFs356n.js",
1683
- "_researchTopic-elGDd7wA.js",
1684
- "_plus-C20t97Ow.js",
1685
- "_dialog-Bk_CUlgJ.js",
1686
- "_switch-idJDRCOy.js",
1687
- "_useDebounce-DUFNcXEQ.js",
1688
- "_transform-krmE0Oxv.js",
1689
- "_chatSessions-BHe2vEWV.js",
1690
- "_trash-2-cqcsUQJn.js",
1691
- "_undo-2-CNDnHC37.js",
1692
- "_arrow-up-right-D4ZJIEeB.js",
1693
- "_arrow-right-fRQqO2yg.js",
1694
  "_colors-BkWRhvFI.js",
1695
- "_usePapers-Df-AyQGj.js",
1696
- "_McpShowcase-DSFseGGp.js",
1697
- "_chat-BaxbAYDA.js",
1698
- "_skeleton-7Kak9gS9.js",
1699
- "_alert-CMc00cqX.js",
1700
- "_useDocumentTitle-_d-BLODt.js",
1701
- "_pageTitles-CFPKZULe.js",
1702
- "_search-DfIPA_iX.js",
1703
- "_triangle-alert-DWlcmd9V.js",
1704
- "_share-2-uOkTzPmw.js",
1705
- "_trending-up-a8B6Ks2N.js",
1706
- "_moon-D7UrDvZg.js",
1707
- "_thumbs-up-Bc07M7BA.js",
1708
- "_database-B8UhKmRp.js",
1709
- "_link-2-BUINBL04.js",
1710
- "_trophy-D0uB2X3s.js",
1711
- "_file-text-CrUpLQJ2.js",
1712
- "_activity-D_eSbyYq.js",
1713
- "_globe-CT4vHjcD.js",
1714
- "_useMutation-BcnLcaMd.js",
1715
- "_index-Df3nFJJR.js",
1716
- "_PaperCard-Do-fUKOE.js",
1717
- "_AuthorAvatar-D53WcphF.js",
1718
- "_SotaBadges-Cy5KKcKe.js",
1719
- "_Icon-DQoMmS2z.js",
1720
- "_LatexTitle-CIj5wiaM.js",
1721
  "_safeExternalHref-CkBrsh84.js",
1722
- "_popover-qWW92hSh.js",
1723
- "_useIntersectionObserver-BjZh7B9X.js",
1724
- "_useInfiniteQuery-Cvn4-XUc.js",
1725
- "_AgentLogos-DmfyY5wp.js"
1726
  ]
1727
  },
1728
  "src/views/FollowingView.tsx": {
1729
- "file": "assets/FollowingView-iOqIZWd5.js",
1730
  "name": "FollowingView",
1731
  "src": "src/views/FollowingView.tsx",
1732
  "isDynamicEntry": true,
1733
  "imports": [
1734
  "index.html",
1735
  "src/views/FeedView.tsx",
1736
- "_taskIcons-BMFs356n.js",
1737
- "_search-DfIPA_iX.js",
1738
- "_triangle-alert-DWlcmd9V.js",
1739
- "_share-2-uOkTzPmw.js",
1740
- "_trending-up-a8B6Ks2N.js",
1741
- "_moon-D7UrDvZg.js",
1742
- "_thumbs-up-Bc07M7BA.js",
1743
- "_database-B8UhKmRp.js",
1744
- "_link-2-BUINBL04.js",
1745
- "_trophy-D0uB2X3s.js",
1746
- "_file-text-CrUpLQJ2.js",
1747
- "_activity-D_eSbyYq.js",
1748
- "_globe-CT4vHjcD.js",
1749
- "_researchTopic-elGDd7wA.js",
1750
- "_useMutation-BcnLcaMd.js",
1751
- "_plus-C20t97Ow.js",
1752
- "_dialog-Bk_CUlgJ.js",
1753
- "_switch-idJDRCOy.js",
1754
- "_index-Df3nFJJR.js",
1755
- "_useDebounce-DUFNcXEQ.js",
1756
- "_transform-krmE0Oxv.js",
1757
- "_chatSessions-BHe2vEWV.js",
1758
- "_chat-BaxbAYDA.js",
1759
- "_trash-2-cqcsUQJn.js",
1760
- "_undo-2-CNDnHC37.js",
1761
- "_arrow-up-right-D4ZJIEeB.js",
1762
- "_arrow-right-fRQqO2yg.js",
1763
  "_colors-BkWRhvFI.js",
1764
- "_usePapers-Df-AyQGj.js",
1765
- "_PaperCard-Do-fUKOE.js",
1766
- "_AuthorAvatar-D53WcphF.js",
1767
- "_SotaBadges-Cy5KKcKe.js",
1768
- "_Icon-DQoMmS2z.js",
1769
- "_LatexTitle-CIj5wiaM.js",
1770
  "_safeExternalHref-CkBrsh84.js",
1771
- "_popover-qWW92hSh.js",
1772
- "_skeleton-7Kak9gS9.js",
1773
- "_useIntersectionObserver-BjZh7B9X.js",
1774
- "_useInfiniteQuery-Cvn4-XUc.js",
1775
- "_McpShowcase-DSFseGGp.js",
1776
- "_AgentLogos-DmfyY5wp.js",
1777
- "_alert-CMc00cqX.js",
1778
- "_useDocumentTitle-_d-BLODt.js",
1779
- "_pageTitles-CFPKZULe.js"
1780
  ]
1781
  },
1782
  "src/views/FrameworksIndexView.tsx": {
1783
- "file": "assets/FrameworksIndexView-Ba1P2nhU.js",
1784
  "name": "FrameworksIndexView",
1785
  "src": "src/views/FrameworksIndexView.tsx",
1786
  "isDynamicEntry": true,
1787
  "imports": [
1788
  "index.html",
1789
- "_Icon-DQoMmS2z.js",
1790
  "_colors-BkWRhvFI.js",
1791
  "_frameworks-DDA0P4Tf.js",
1792
- "_useDocumentTitle-_d-BLODt.js",
1793
- "_pageTitles-CFPKZULe.js"
1794
  ]
1795
  },
1796
  "src/views/McpView.tsx": {
1797
- "file": "assets/McpView-DlbC-UXe.js",
1798
  "name": "McpView",
1799
  "src": "src/views/McpView.tsx",
1800
  "isDynamicEntry": true,
1801
  "imports": [
1802
  "index.html",
1803
- "_useDocumentTitle-_d-BLODt.js",
1804
- "_github-CknlAJTS.js",
1805
- "_arrow-up-right-D4ZJIEeB.js",
1806
- "_external-link-CCL892xT.js",
1807
- "_copy-COezQGP9.js"
1808
  ],
1809
  "css": [
1810
  "assets/McpView-EGeqkP46.css"
1811
  ]
1812
  },
1813
  "src/views/MethodDetailView.tsx": {
1814
- "file": "assets/MethodDetailView-BwnJP0nB.js",
1815
  "name": "MethodDetailView",
1816
  "src": "src/views/MethodDetailView.tsx",
1817
  "isDynamicEntry": true,
1818
  "imports": [
1819
  "index.html",
1820
- "_ResearchFollowButton-ktN3oGoK.js",
1821
- "_SotaBadges-Cy5KKcKe.js",
1822
- "_usePapers-Df-AyQGj.js",
1823
- "_MarkdownText-CDVRt1ok.js",
1824
  "_slug-BpH-Nkvz.js",
1825
- "_transform-krmE0Oxv.js",
1826
- "_skeleton-7Kak9gS9.js",
1827
  "_safeExternalHref-CkBrsh84.js",
1828
  "src/pages/NotFound.tsx",
1829
- "_LoadFailurePage-DvxhRUcs.js",
1830
- "_useDocumentTitle-_d-BLODt.js",
1831
- "_pageTitles-CFPKZULe.js",
1832
- "_researchTopic-elGDd7wA.js",
1833
- "_useMutation-BcnLcaMd.js",
1834
- "_plus-C20t97Ow.js",
1835
  "_colors-BkWRhvFI.js",
1836
- "_PaperCard-Do-fUKOE.js",
1837
- "_AuthorAvatar-D53WcphF.js",
1838
- "_Icon-DQoMmS2z.js",
1839
- "_LatexTitle-CIj5wiaM.js",
1840
- "_popover-qWW92hSh.js",
1841
- "_useIntersectionObserver-BjZh7B9X.js",
1842
- "_useInfiniteQuery-Cvn4-XUc.js",
1843
- "_PaperPreviewLink-Dhou1ws3.js",
1844
- "_index-CqH2_Dpk.js",
1845
- "_index-BHTJgSQg.js",
1846
- "_hover-card-CZZ0A1FG.js",
1847
- "_alert-CMc00cqX.js"
1848
  ]
1849
  },
1850
  "src/views/MethodsIndexView.tsx": {
1851
- "file": "assets/MethodsIndexView-Cve7w9wa.js",
1852
  "name": "MethodsIndexView",
1853
  "src": "src/views/MethodsIndexView.tsx",
1854
  "isDynamicEntry": true,
@@ -1856,180 +1863,180 @@
1856
  "index.html",
1857
  "_areas-Dvi8w2dp.js",
1858
  "_slug-BpH-Nkvz.js",
1859
- "_alert-CMc00cqX.js",
1860
- "_AreaSection-ixYJgExd.js",
1861
- "_TaxonomySuggestionTile-NdypTQlh.js",
1862
- "_useHashScrollOnReady-DXXE6OaL.js",
1863
- "_useDocumentTitle-_d-BLODt.js",
1864
- "_pageTitles-CFPKZULe.js",
1865
- "_skeleton-7Kak9gS9.js",
1866
- "_SignInToEditDialog-TqUvJJvy.js",
1867
- "_button-Ow7LPhoW.js",
1868
- "_input-BMQ_TuLd.js",
1869
- "_textarea-DNcp7UYC.js",
1870
- "_searchable-select-B_-gAqcr.js",
1871
- "_popover-qWW92hSh.js",
1872
- "_dialog-Bk_CUlgJ.js",
1873
- "_search-DfIPA_iX.js",
1874
- "_loader-circle-CmbX91bp.js",
1875
- "_useMutation-BcnLcaMd.js",
1876
- "_submissions-1Rk-8Ke6.js",
1877
- "_plus-C20t97Ow.js",
1878
- "_trending-up-a8B6Ks2N.js"
1879
  ]
1880
  },
1881
  "src/views/OrganizationDetailView.tsx": {
1882
- "file": "assets/OrganizationDetailView-CT65By-7.js",
1883
  "name": "OrganizationDetailView",
1884
  "src": "src/views/OrganizationDetailView.tsx",
1885
  "isDynamicEntry": true,
1886
  "imports": [
1887
  "index.html",
1888
- "_ResearchFollowButton-ktN3oGoK.js",
1889
- "_MarkdownText-CDVRt1ok.js",
1890
- "_OrganizationContributionGraph-DgJA6xQv.js",
1891
- "_usePapers-Df-AyQGj.js",
1892
- "_searchable-select-B_-gAqcr.js",
1893
- "_skeleton-7Kak9gS9.js",
1894
- "_transform-krmE0Oxv.js",
1895
  "_organizationNames-BVKzYEBp.js",
1896
  "src/pages/NotFound.tsx",
1897
- "_LoadFailurePage-DvxhRUcs.js",
1898
- "_useDocumentTitle-_d-BLODt.js",
1899
- "_pageTitles-CFPKZULe.js",
1900
- "_researchTopic-elGDd7wA.js",
1901
- "_useMutation-BcnLcaMd.js",
1902
- "_plus-C20t97Ow.js",
1903
- "_PaperPreviewLink-Dhou1ws3.js",
1904
- "_index-CqH2_Dpk.js",
1905
- "_index-BHTJgSQg.js",
1906
- "_hover-card-CZZ0A1FG.js",
1907
- "_PaperCard-Do-fUKOE.js",
1908
- "_AuthorAvatar-D53WcphF.js",
1909
- "_SotaBadges-Cy5KKcKe.js",
1910
  "_colors-BkWRhvFI.js",
1911
- "_Icon-DQoMmS2z.js",
1912
- "_LatexTitle-CIj5wiaM.js",
1913
  "_safeExternalHref-CkBrsh84.js",
1914
- "_popover-qWW92hSh.js",
1915
- "_useIntersectionObserver-BjZh7B9X.js",
1916
- "_useInfiniteQuery-Cvn4-XUc.js",
1917
- "_button-Ow7LPhoW.js",
1918
- "_dialog-Bk_CUlgJ.js",
1919
- "_search-DfIPA_iX.js",
1920
- "_loader-circle-CmbX91bp.js",
1921
- "_alert-CMc00cqX.js"
1922
  ]
1923
  },
1924
  "src/views/OrganizationsIndexView.tsx": {
1925
- "file": "assets/OrganizationsIndexView-_ZvSj6MP.js",
1926
  "name": "OrganizationsIndexView",
1927
  "src": "src/views/OrganizationsIndexView.tsx",
1928
  "isDynamicEntry": true,
1929
  "imports": [
1930
  "index.html",
1931
- "_alert-CMc00cqX.js",
1932
- "_useDocumentTitle-_d-BLODt.js",
1933
- "_pageTitles-CFPKZULe.js"
1934
  ],
1935
  "css": [
1936
  "assets/OrganizationsIndexView-CJnrfIkP.css"
1937
  ]
1938
  },
1939
  "src/views/PaperDetailView.tsx": {
1940
- "file": "assets/PaperDetailView--GX78457.js",
1941
  "name": "PaperDetailView",
1942
  "src": "src/views/PaperDetailView.tsx",
1943
  "isDynamicEntry": true,
1944
  "imports": [
1945
  "index.html",
1946
- "_useMutation-BcnLcaMd.js",
1947
- "_Icon-DQoMmS2z.js",
1948
- "_SotaBadges-Cy5KKcKe.js",
1949
- "_LatexTitle-CIj5wiaM.js",
1950
- "_preferences-BPB6rcxH.js",
1951
- "_transform-krmE0Oxv.js",
1952
  "_paperReader-D1y30HyW.js",
1953
- "_useDocumentTitle-_d-BLODt.js",
1954
  "_safeExternalHref-CkBrsh84.js",
1955
- "_mlIntern-CUgKrjLX.js",
1956
- "_skeleton-7Kak9gS9.js",
1957
- "_alert-CMc00cqX.js",
1958
- "_button-Ow7LPhoW.js",
1959
- "_dialog-Bk_CUlgJ.js",
1960
- "_AgentLogos-DmfyY5wp.js",
1961
- "_copy-COezQGP9.js",
1962
- "_cacheSync-C3q_x9UG.js",
1963
- "_input-BMQ_TuLd.js",
1964
- "_searchable-select-B_-gAqcr.js",
1965
- "_loader-circle-CmbX91bp.js",
1966
- "_trash-2-cqcsUQJn.js",
1967
- "_SignInToEditDialog-TqUvJJvy.js",
1968
- "_useQueries-r_pw4lYy.js",
1969
- "_submissions-1Rk-8Ke6.js",
1970
- "_database-B8UhKmRp.js",
1971
- "_plus-C20t97Ow.js",
1972
- "_search-DfIPA_iX.js",
1973
- "_badge-C3csz_-c.js",
1974
- "_CatalogEntityPreviewLink-Br2W1MKt.js",
1975
- "_globe-CT4vHjcD.js",
1976
- "_github-CknlAJTS.js",
1977
- "_index-Df3nFJJR.js",
1978
- "_ExternalSourceEvalBadge-DVDMif98.js",
1979
- "_index-CqH2_Dpk.js",
1980
- "_index-BHTJgSQg.js",
1981
- "_useIntersectionObserver-BjZh7B9X.js",
1982
- "_savedPapersAuth-CEGk1D0G.js",
1983
  "_organizationNames-BVKzYEBp.js",
1984
- "_AuthorAvatar-D53WcphF.js",
1985
  "_colors-BkWRhvFI.js",
1986
- "_popover-qWW92hSh.js",
1987
- "_textarea-DNcp7UYC.js",
1988
- "_hover-card-CZZ0A1FG.js"
1989
  ],
1990
  "css": [
1991
  "assets/PaperDetailView-DOQP9hzn.css"
1992
  ]
1993
  },
1994
  "src/views/PaperReaderView.tsx": {
1995
- "file": "assets/PaperReaderView-BJ1_bHyt.js",
1996
  "name": "PaperReaderView",
1997
  "src": "src/views/PaperReaderView.tsx",
1998
  "isDynamicEntry": true,
1999
  "imports": [
2000
  "index.html",
2001
- "_chatLifecycle-DTJ_7jbh.js",
2002
- "_MarkdownText-CDVRt1ok.js",
2003
  "_paperReader-D1y30HyW.js",
2004
- "_chat-BaxbAYDA.js",
2005
  "_safeExternalHref-CkBrsh84.js",
2006
  "src/views/ChatView.tsx",
2007
- "_chatSessions-BHe2vEWV.js",
2008
- "_hover-card-CZZ0A1FG.js",
2009
- "_CatalogEntityPreviewLink-Br2W1MKt.js",
2010
- "_github-CknlAJTS.js",
2011
- "_file-text-CrUpLQJ2.js",
2012
- "_PaperPreviewLink-Dhou1ws3.js",
2013
- "_index-CqH2_Dpk.js",
2014
- "_index-BHTJgSQg.js",
2015
- "_useMutation-BcnLcaMd.js",
2016
- "_index-CRH6N9tH.js",
2017
  "node_modules/katex/dist/katex.mjs",
2018
- "_thumbs-up-Bc07M7BA.js",
2019
- "_copy-COezQGP9.js",
2020
- "_arrow-left-BHT-3INU.js",
2021
- "_external-link-CCL892xT.js",
2022
- "_plus-C20t97Ow.js",
2023
- "_search-DfIPA_iX.js",
2024
- "_chevron-up-DAPpOAWB.js",
2025
- "_AuthorAvatar-D53WcphF.js",
2026
- "_trash-2-cqcsUQJn.js",
2027
- "_McpShowcase-DSFseGGp.js",
2028
- "_AgentLogos-DmfyY5wp.js",
2029
- "_share-2-uOkTzPmw.js",
2030
- "_Icon-DQoMmS2z.js",
2031
- "_mlIntern-CUgKrjLX.js",
2032
- "_openrouter-CbaTDPpy.js"
2033
  ],
2034
  "css": [
2035
  "assets/katex-wklAmtGL.css"
@@ -2097,44 +2104,44 @@
2097
  ]
2098
  },
2099
  "src/views/PapersListView.tsx": {
2100
- "file": "assets/PapersListView-cP3dCWrx.js",
2101
  "name": "PapersListView",
2102
  "src": "src/views/PapersListView.tsx",
2103
  "isDynamicEntry": true,
2104
  "imports": [
2105
  "index.html",
2106
- "_SotaBadges-Cy5KKcKe.js",
2107
- "_Icon-DQoMmS2z.js",
2108
- "_usePapers-Df-AyQGj.js",
2109
- "_transform-krmE0Oxv.js",
2110
- "_useDebounce-DUFNcXEQ.js",
2111
- "_skeleton-7Kak9gS9.js",
2112
- "_alert-CMc00cqX.js",
2113
  "_frameworks-DDA0P4Tf.js",
2114
- "_useDocumentTitle-_d-BLODt.js",
2115
- "_pageTitles-CFPKZULe.js",
2116
  "_colors-BkWRhvFI.js",
2117
- "_PaperCard-Do-fUKOE.js",
2118
- "_AuthorAvatar-D53WcphF.js",
2119
- "_LatexTitle-CIj5wiaM.js",
2120
  "_safeExternalHref-CkBrsh84.js",
2121
- "_popover-qWW92hSh.js",
2122
- "_useIntersectionObserver-BjZh7B9X.js",
2123
- "_useInfiniteQuery-Cvn4-XUc.js"
2124
  ]
2125
  },
2126
  "src/views/PrivacyView.tsx": {
2127
- "file": "assets/PrivacyView-ZUudC-Wz.js",
2128
  "name": "PrivacyView",
2129
  "src": "src/views/PrivacyView.tsx",
2130
  "isDynamicEntry": true,
2131
  "imports": [
2132
  "index.html",
2133
- "_useDocumentTitle-_d-BLODt.js"
2134
  ]
2135
  },
2136
  "src/views/RateLimitsView.tsx": {
2137
- "file": "assets/RateLimitsView-CXDYWh4H.js",
2138
  "name": "RateLimitsView",
2139
  "src": "src/views/RateLimitsView.tsx",
2140
  "isDynamicEntry": true,
@@ -2143,74 +2150,74 @@
2143
  ]
2144
  },
2145
  "src/views/SavedPapersView.tsx": {
2146
- "file": "assets/SavedPapersView-B5dDziEM.js",
2147
  "name": "SavedPapersView",
2148
  "src": "src/views/SavedPapersView.tsx",
2149
  "isDynamicEntry": true,
2150
  "imports": [
2151
  "index.html",
2152
- "_PaperCard-Do-fUKOE.js",
2153
- "_SotaBadges-Cy5KKcKe.js",
2154
- "_skeleton-7Kak9gS9.js",
2155
- "_alert-CMc00cqX.js",
2156
- "_transform-krmE0Oxv.js",
2157
- "_savedPapersAuth-CEGk1D0G.js",
2158
- "_AuthorAvatar-D53WcphF.js",
2159
- "_Icon-DQoMmS2z.js",
2160
- "_LatexTitle-CIj5wiaM.js",
2161
  "_safeExternalHref-CkBrsh84.js",
2162
  "_colors-BkWRhvFI.js"
2163
  ]
2164
  },
2165
  "src/views/SettingsView.tsx": {
2166
- "file": "assets/SettingsView-ymTycYV5.js",
2167
  "name": "SettingsView",
2168
  "src": "src/views/SettingsView.tsx",
2169
  "isDynamicEntry": true,
2170
  "imports": [
2171
  "index.html",
2172
- "_useMutation-BcnLcaMd.js",
2173
- "_researchTopic-elGDd7wA.js",
2174
- "_switch-idJDRCOy.js",
2175
- "_arrow-right-fRQqO2yg.js",
2176
- "_chat-BaxbAYDA.js",
2177
- "_useDocumentTitle-_d-BLODt.js",
2178
- "_openrouter-CbaTDPpy.js",
2179
- "_preferences-BPB6rcxH.js",
2180
- "_external-link-CCL892xT.js",
2181
- "_moon-D7UrDvZg.js",
2182
- "_index-Df3nFJJR.js"
2183
  ]
2184
  },
2185
  "src/views/SharedChatView.tsx": {
2186
- "file": "assets/SharedChatView-Bf6bq9l6.js",
2187
  "name": "SharedChatView",
2188
  "src": "src/views/SharedChatView.tsx",
2189
  "isDynamicEntry": true,
2190
  "imports": [
2191
  "index.html",
2192
- "_chatLifecycle-DTJ_7jbh.js",
2193
- "_chatSessions-BHe2vEWV.js",
2194
- "_chat-BaxbAYDA.js",
2195
- "_hover-card-CZZ0A1FG.js",
2196
- "_CatalogEntityPreviewLink-Br2W1MKt.js",
2197
- "_github-CknlAJTS.js",
2198
- "_file-text-CrUpLQJ2.js",
2199
- "_PaperPreviewLink-Dhou1ws3.js",
2200
- "_index-CqH2_Dpk.js",
2201
- "_index-BHTJgSQg.js",
2202
- "_useMutation-BcnLcaMd.js",
2203
- "_index-CRH6N9tH.js",
2204
  "node_modules/katex/dist/katex.mjs",
2205
- "_thumbs-up-Bc07M7BA.js",
2206
- "_copy-COezQGP9.js",
2207
- "_arrow-left-BHT-3INU.js",
2208
- "_external-link-CCL892xT.js",
2209
- "_plus-C20t97Ow.js",
2210
- "_search-DfIPA_iX.js",
2211
- "_chevron-up-DAPpOAWB.js",
2212
- "_AuthorAvatar-D53WcphF.js",
2213
- "_trash-2-cqcsUQJn.js"
2214
  ],
2215
  "css": [
2216
  "assets/katex-wklAmtGL.css"
@@ -2278,165 +2285,165 @@
2278
  ]
2279
  },
2280
  "src/views/StagingAccessRequestView.tsx": {
2281
- "file": "assets/StagingAccessRequestView-DDsTTipS.js",
2282
  "name": "StagingAccessRequestView",
2283
  "src": "src/views/StagingAccessRequestView.tsx",
2284
  "isDynamicEntry": true,
2285
  "imports": [
2286
  "index.html",
2287
- "_circle-check-BKkD2pPD.js"
2288
  ]
2289
  },
2290
  "src/views/SubmitView.tsx": {
2291
- "file": "assets/SubmitView-DOxOpHZ1.js",
2292
  "name": "SubmitView",
2293
  "src": "src/views/SubmitView.tsx",
2294
  "isDynamicEntry": true,
2295
  "imports": [
2296
  "index.html",
2297
- "_useMutation-BcnLcaMd.js",
2298
- "_alert-CMc00cqX.js",
2299
- "_button-Ow7LPhoW.js",
2300
- "_input-BMQ_TuLd.js",
2301
- "_textarea-DNcp7UYC.js",
2302
- "_cacheSync-C3q_x9UG.js"
2303
  ]
2304
  },
2305
  "src/views/TagBrowseView.tsx": {
2306
- "file": "assets/TagBrowseView-BnSK7qrB.js",
2307
  "name": "TagBrowseView",
2308
  "src": "src/views/TagBrowseView.tsx",
2309
  "isDynamicEntry": true,
2310
  "imports": [
2311
  "index.html",
2312
- "_ResearchFollowButton-ktN3oGoK.js",
2313
- "_SotaBadges-Cy5KKcKe.js",
2314
- "_usePapers-Df-AyQGj.js",
2315
- "_arrow-right-fRQqO2yg.js",
2316
- "_BenchmarkTrendSparkline-DsB2YdnJ.js",
2317
- "_MarkdownText-CDVRt1ok.js",
2318
  "_frameworks-DDA0P4Tf.js",
2319
- "_preferences-BPB6rcxH.js",
2320
  "_slug-BpH-Nkvz.js",
2321
- "_transform-krmE0Oxv.js",
2322
- "_skeleton-7Kak9gS9.js",
2323
  "src/pages/NotFound.tsx",
2324
- "_LoadFailurePage-DvxhRUcs.js",
2325
- "_useDocumentTitle-_d-BLODt.js",
2326
- "_pageTitles-CFPKZULe.js",
2327
- "_trophy-D0uB2X3s.js",
2328
- "_github-CknlAJTS.js",
2329
- "_researchTopic-elGDd7wA.js",
2330
- "_useMutation-BcnLcaMd.js",
2331
- "_plus-C20t97Ow.js",
2332
  "_colors-BkWRhvFI.js",
2333
- "_PaperCard-Do-fUKOE.js",
2334
- "_AuthorAvatar-D53WcphF.js",
2335
- "_Icon-DQoMmS2z.js",
2336
- "_LatexTitle-CIj5wiaM.js",
2337
  "_safeExternalHref-CkBrsh84.js",
2338
- "_popover-qWW92hSh.js",
2339
- "_useIntersectionObserver-BjZh7B9X.js",
2340
- "_useInfiniteQuery-Cvn4-XUc.js",
2341
- "_PaperPreviewLink-Dhou1ws3.js",
2342
- "_index-CqH2_Dpk.js",
2343
- "_index-BHTJgSQg.js",
2344
- "_hover-card-CZZ0A1FG.js",
2345
- "_alert-CMc00cqX.js"
2346
  ]
2347
  },
2348
  "src/views/TagsIndexView.tsx": {
2349
- "file": "assets/TagsIndexView-Bor622cd.js",
2350
  "name": "TagsIndexView",
2351
  "src": "src/views/TagsIndexView.tsx",
2352
  "isDynamicEntry": true,
2353
  "imports": [
2354
  "index.html",
2355
  "_colors-BkWRhvFI.js",
2356
- "_transform-krmE0Oxv.js",
2357
  "_slug-BpH-Nkvz.js",
2358
- "_taskIcons-BMFs356n.js",
2359
- "_alert-CMc00cqX.js",
2360
- "_AreaSection-ixYJgExd.js",
2361
- "_TaxonomySuggestionTile-NdypTQlh.js",
2362
- "_useHashScrollOnReady-DXXE6OaL.js",
2363
  "_areas-Dvi8w2dp.js",
2364
- "_useDocumentTitle-_d-BLODt.js",
2365
- "_pageTitles-CFPKZULe.js",
2366
- "_search-DfIPA_iX.js",
2367
- "_triangle-alert-DWlcmd9V.js",
2368
- "_share-2-uOkTzPmw.js",
2369
- "_trending-up-a8B6Ks2N.js",
2370
- "_moon-D7UrDvZg.js",
2371
- "_thumbs-up-Bc07M7BA.js",
2372
- "_database-B8UhKmRp.js",
2373
- "_link-2-BUINBL04.js",
2374
- "_trophy-D0uB2X3s.js",
2375
- "_file-text-CrUpLQJ2.js",
2376
- "_activity-D_eSbyYq.js",
2377
- "_globe-CT4vHjcD.js",
2378
- "_skeleton-7Kak9gS9.js",
2379
- "_SignInToEditDialog-TqUvJJvy.js",
2380
- "_button-Ow7LPhoW.js",
2381
- "_input-BMQ_TuLd.js",
2382
- "_textarea-DNcp7UYC.js",
2383
- "_searchable-select-B_-gAqcr.js",
2384
- "_popover-qWW92hSh.js",
2385
- "_dialog-Bk_CUlgJ.js",
2386
- "_loader-circle-CmbX91bp.js",
2387
- "_useMutation-BcnLcaMd.js",
2388
- "_submissions-1Rk-8Ke6.js",
2389
- "_plus-C20t97Ow.js"
2390
  ]
2391
  },
2392
  "src/views/TopicView.tsx": {
2393
- "file": "assets/TopicView-DEW8FUmf.js",
2394
  "name": "TopicView",
2395
  "src": "src/views/TopicView.tsx",
2396
  "isDynamicEntry": true,
2397
  "imports": [
2398
  "index.html",
2399
- "_usePapers-Df-AyQGj.js",
2400
- "_skeleton-7Kak9gS9.js",
2401
- "_researchTopic-elGDd7wA.js",
2402
- "_transform-krmE0Oxv.js",
2403
- "_plus-C20t97Ow.js",
2404
- "_link-2-BUINBL04.js",
2405
- "_PaperCard-Do-fUKOE.js",
2406
- "_AuthorAvatar-D53WcphF.js",
2407
- "_SotaBadges-Cy5KKcKe.js",
2408
  "_colors-BkWRhvFI.js",
2409
- "_Icon-DQoMmS2z.js",
2410
- "_LatexTitle-CIj5wiaM.js",
2411
  "_safeExternalHref-CkBrsh84.js",
2412
- "_popover-qWW92hSh.js",
2413
- "_useIntersectionObserver-BjZh7B9X.js",
2414
- "_useInfiniteQuery-Cvn4-XUc.js",
2415
- "_useMutation-BcnLcaMd.js"
2416
  ]
2417
  },
2418
  "src/views/TrendsView.tsx": {
2419
- "file": "assets/TrendsView-BR1U7T77.js",
2420
  "name": "TrendsView",
2421
  "src": "src/views/TrendsView.tsx",
2422
  "isDynamicEntry": true,
2423
  "imports": [
2424
  "index.html",
2425
- "_alert-CMc00cqX.js",
2426
- "_skeleton-7Kak9gS9.js",
2427
- "_useDocumentTitle-_d-BLODt.js",
2428
- "_pageTitles-CFPKZULe.js"
2429
  ]
2430
  },
2431
  "src/views/UserProfileView.tsx": {
2432
- "file": "assets/UserProfileView-0I8ZQDks.js",
2433
  "name": "UserProfileView",
2434
  "src": "src/views/UserProfileView.tsx",
2435
  "isDynamicEntry": true,
2436
  "imports": [
2437
  "index.html",
2438
- "_OrganizationContributionGraph-DgJA6xQv.js",
2439
- "_skeleton-7Kak9gS9.js"
2440
  ]
2441
  }
2442
  }
 
1
  {
2
+ "_AgentLogos-BGglpy29.js": {
3
+ "file": "assets/AgentLogos-BGglpy29.js",
4
  "name": "AgentLogos",
5
  "imports": [
6
  "index.html"
7
  ]
8
  },
9
+ "_AreaSection-eDvRZ5YZ.js": {
10
+ "file": "assets/AreaSection-eDvRZ5YZ.js",
11
  "name": "AreaSection",
12
  "imports": [
13
  "index.html",
14
+ "_skeleton-g9QeRZlQ.js"
15
  ]
16
  },
17
  "_AuthorAvatar-!~{017}~.js": {
18
  "file": "assets/AuthorAvatar-o5W6pl_W.css",
19
  "src": "_AuthorAvatar-!~{017}~.js"
20
  },
21
+ "_AuthorAvatar-RLVSdcTr.js": {
22
+ "file": "assets/AuthorAvatar-RLVSdcTr.js",
23
  "name": "AuthorAvatar",
24
  "imports": [
25
  "index.html"
 
28
  "assets/AuthorAvatar-o5W6pl_W.css"
29
  ]
30
  },
31
+ "_BenchmarkTrendSparkline-e2Hr_BzC.js": {
32
+ "file": "assets/BenchmarkTrendSparkline-e2Hr_BzC.js",
33
  "name": "BenchmarkTrendSparkline",
34
  "imports": [
35
  "index.html"
36
  ]
37
  },
38
+ "_CatalogEntityPreviewLink-BEEX6c5n.js": {
39
+ "file": "assets/CatalogEntityPreviewLink-BEEX6c5n.js",
40
  "name": "CatalogEntityPreviewLink",
41
  "imports": [
42
  "index.html",
43
+ "_hover-card-CcViKpG6.js"
44
  ]
45
  },
46
  "_CronDashboard-!~{022}~.js": {
47
  "file": "assets/CronDashboard-DwChfW9h.css",
48
  "src": "_CronDashboard-!~{022}~.js"
49
  },
50
+ "_CronDashboard-uLEk1l8b.js": {
51
+ "file": "assets/CronDashboard-uLEk1l8b.js",
52
  "name": "CronDashboard",
53
  "imports": [
54
  "index.html"
 
61
  "file": "assets/ExternalSourceEvalBadge-CWUQ52cV.css",
62
  "src": "_ExternalSourceEvalBadge-!~{01L}~.js"
63
  },
64
+ "_ExternalSourceEvalBadge-DcDIi3qu.js": {
65
+ "file": "assets/ExternalSourceEvalBadge-DcDIi3qu.js",
66
  "name": "ExternalSourceEvalBadge",
67
  "imports": [
68
  "index.html",
69
+ "_hover-card-CcViKpG6.js",
70
  "_safeExternalHref-CkBrsh84.js"
71
  ],
72
  "css": [
73
  "assets/ExternalSourceEvalBadge-CWUQ52cV.css"
74
  ]
75
  },
76
+ "_Icon-BTX00T3U.js": {
77
+ "file": "assets/Icon-BTX00T3U.js",
78
  "name": "Icon",
79
  "imports": [
80
  "index.html"
81
  ]
82
  },
83
+ "_LatexTitle-C0en22SO.js": {
84
+ "file": "assets/LatexTitle-C0en22SO.js",
85
  "name": "LatexTitle",
86
  "imports": [
87
  "index.html"
 
90
  "node_modules/katex/dist/katex.mjs"
91
  ]
92
  },
93
+ "_LoadFailurePage-CbxBcR6o.js": {
94
+ "file": "assets/LoadFailurePage-CbxBcR6o.js",
95
  "name": "LoadFailurePage",
96
  "imports": [
97
  "index.html",
98
+ "_alert-C8kkxn4G.js",
99
  "src/pages/NotFound.tsx"
100
  ]
101
  },
102
+ "_MarkdownText-CZlaYENs.js": {
103
+ "file": "assets/MarkdownText-CZlaYENs.js",
104
  "name": "MarkdownText",
105
  "imports": [
106
  "index.html",
107
+ "_PaperPreviewLink-BQBSQN0t.js",
108
+ "_index-C601BfBQ.js",
109
+ "_index-s2hHM8kO.js"
110
  ],
111
  "dynamicImports": [
112
  "src/components/MathMarkdownText.tsx"
113
  ]
114
  },
115
+ "_McpShowcase-BIaXtPrM.js": {
116
+ "file": "assets/McpShowcase-BIaXtPrM.js",
117
  "name": "McpShowcase",
118
  "imports": [
119
  "index.html",
120
+ "_AgentLogos-BGglpy29.js"
121
  ]
122
  },
123
+ "_OrganizationContributionGraph-619a7ZA1.js": {
124
+ "file": "assets/OrganizationContributionGraph-619a7ZA1.js",
125
  "name": "OrganizationContributionGraph",
126
  "imports": [
127
  "index.html",
128
+ "_skeleton-g9QeRZlQ.js"
129
  ]
130
  },
131
+ "_PaperCard-CpWKB_q0.js": {
132
+ "file": "assets/PaperCard-CpWKB_q0.js",
133
  "name": "PaperCard",
134
  "imports": [
135
  "index.html",
136
+ "_AuthorAvatar-RLVSdcTr.js",
137
+ "_SotaBadges-CmYGMLyy.js",
138
+ "_Icon-BTX00T3U.js",
139
+ "_LatexTitle-C0en22SO.js",
140
  "_safeExternalHref-CkBrsh84.js"
141
  ]
142
  },
143
+ "_PaperPreviewLink-BQBSQN0t.js": {
144
+ "file": "assets/PaperPreviewLink-BQBSQN0t.js",
145
  "name": "PaperPreviewLink",
146
  "imports": [
147
+ "_index-C601BfBQ.js",
148
+ "_index-s2hHM8kO.js",
149
  "index.html",
150
+ "_hover-card-CcViKpG6.js",
151
+ "_useMutation-DBnvCG24.js"
152
  ]
153
  },
154
+ "_ResearchFollowButton-lWVVvGzA.js": {
155
+ "file": "assets/ResearchFollowButton-lWVVvGzA.js",
156
  "name": "ResearchFollowButton",
157
  "imports": [
158
  "index.html",
159
+ "_researchTopic-BNud5CMS.js",
160
+ "_plus-D-JcHoGj.js"
161
  ]
162
  },
163
+ "_SignInToEditDialog-WFTfQEZb.js": {
164
+ "file": "assets/SignInToEditDialog-WFTfQEZb.js",
165
  "name": "SignInToEditDialog",
166
  "imports": [
167
  "index.html",
168
+ "_button-DUkH0QIr.js",
169
+ "_input-C419tHG_.js",
170
+ "_textarea-CVmk78KU.js",
171
+ "_searchable-select-ByX0DNkg.js",
172
+ "_dialog-BXnL_m2W.js",
173
+ "_useMutation-DBnvCG24.js",
174
+ "_submissions-8BlabU_Z.js",
175
+ "_loader-circle-DDE80rIr.js"
176
+ ]
177
+ },
178
+ "_SotaBadges-CmYGMLyy.js": {
179
+ "file": "assets/SotaBadges-CmYGMLyy.js",
180
  "name": "SotaBadges",
181
  "imports": [
182
  "index.html",
183
  "_colors-BkWRhvFI.js",
184
+ "_transform-BwK-yMDY.js"
185
  ]
186
  },
187
+ "_TaxonomySuggestionTile-BvFTS6DR.js": {
188
+ "file": "assets/TaxonomySuggestionTile-BvFTS6DR.js",
189
  "name": "TaxonomySuggestionTile",
190
  "imports": [
191
  "index.html",
192
+ "_SignInToEditDialog-WFTfQEZb.js",
193
+ "_plus-D-JcHoGj.js"
194
  ]
195
  },
196
  "__vite-browser-external": {
 
199
  "src": "__vite-browser-external",
200
  "isDynamicEntry": true
201
  },
202
+ "_activity-xD0SAWlk.js": {
203
+ "file": "assets/activity-xD0SAWlk.js",
204
  "name": "activity",
205
  "imports": [
206
  "index.html"
207
  ]
208
  },
209
+ "_alert-C8kkxn4G.js": {
210
+ "file": "assets/alert-C8kkxn4G.js",
211
  "name": "alert",
212
  "imports": [
213
  "index.html"
 
217
  "file": "assets/areas-Dvi8w2dp.js",
218
  "name": "areas"
219
  },
220
+ "_arrow-left-CsmoZGdZ.js": {
221
+ "file": "assets/arrow-left-CsmoZGdZ.js",
222
  "name": "arrow-left",
223
  "imports": [
224
  "index.html"
225
  ]
226
  },
227
+ "_arrow-right-xvOiHZHi.js": {
228
+ "file": "assets/arrow-right-xvOiHZHi.js",
229
  "name": "arrow-right",
230
  "imports": [
231
  "index.html"
232
  ]
233
  },
234
+ "_arrow-up-right-Cj_gCzhz.js": {
235
+ "file": "assets/arrow-up-right-Cj_gCzhz.js",
236
  "name": "arrow-up-right",
237
  "imports": [
238
  "index.html"
239
  ]
240
  },
241
+ "_badge-CJsdIbmG.js": {
242
+ "file": "assets/badge-CJsdIbmG.js",
243
  "name": "badge",
244
  "imports": [
245
  "index.html"
246
  ]
247
  },
248
+ "_button-DUkH0QIr.js": {
249
+ "file": "assets/button-DUkH0QIr.js",
250
  "name": "button",
251
  "imports": [
252
  "index.html"
253
  ]
254
  },
255
+ "_cacheSync-CEi6VAAO.js": {
256
+ "file": "assets/cacheSync-CEi6VAAO.js",
257
  "name": "cacheSync",
258
  "imports": [
259
  "index.html"
260
  ]
261
  },
262
+ "_chat-DGNTyNA6.js": {
263
+ "file": "assets/chat-DGNTyNA6.js",
264
  "name": "chat",
265
  "imports": [
266
  "index.html"
 
270
  "file": "assets/chatLifecycle-Lr_OJaUk.css",
271
  "src": "_chatLifecycle-!~{01l}~.js"
272
  },
273
+ "_chatLifecycle-U97-CRPf.js": {
274
+ "file": "assets/chatLifecycle-U97-CRPf.js",
275
  "name": "chatLifecycle",
276
  "imports": [
277
  "index.html",
278
+ "_index-EPaFPxpL.js",
279
+ "_hover-card-CcViKpG6.js",
280
+ "_CatalogEntityPreviewLink-BEEX6c5n.js",
281
+ "_github-rJ81k3MW.js",
282
+ "_file-text-DL8DB3Ia.js",
283
+ "_PaperPreviewLink-BQBSQN0t.js",
284
+ "_index-C601BfBQ.js",
285
+ "_index-UzLPH3v0.js",
286
+ "_index-s2hHM8kO.js",
287
+ "_useMutation-DBnvCG24.js",
288
+ "_chat-DGNTyNA6.js",
289
+ "_thumbs-up-BxzCyoEs.js",
290
+ "_copy-CuOS3fOv.js",
291
+ "_arrow-left-CsmoZGdZ.js",
292
+ "_external-link-CTPTD9wF.js",
293
+ "_plus-D-JcHoGj.js",
294
+ "_search-B0zhG2PN.js",
295
+ "_chevron-up-CoUJqJBK.js",
296
+ "_AuthorAvatar-RLVSdcTr.js",
297
+ "_trash-2-qhXxU9a8.js"
298
  ],
299
  "dynamicImports": [
300
  "__vite-browser-external",
 
369
  "assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf"
370
  ]
371
  },
372
+ "_chevron-up-CoUJqJBK.js": {
373
+ "file": "assets/chevron-up-CoUJqJBK.js",
 
 
 
 
 
 
 
 
374
  "name": "chevron-up",
375
  "imports": [
376
  "index.html"
377
  ]
378
  },
379
+ "_circle-check-zCzyP0_o.js": {
380
+ "file": "assets/circle-check-zCzyP0_o.js",
381
  "name": "circle-check",
382
  "imports": [
383
  "index.html"
 
391
  "file": "assets/conferenceListings-BnmhBx-_.js",
392
  "name": "conferenceListings"
393
  },
394
+ "_copy-CuOS3fOv.js": {
395
+ "file": "assets/copy-CuOS3fOv.js",
396
  "name": "copy",
397
  "imports": [
398
  "index.html"
399
  ]
400
  },
401
+ "_database-672kb9yv.js": {
402
+ "file": "assets/database-672kb9yv.js",
403
  "name": "database",
404
  "imports": [
405
  "index.html"
 
409
  "file": "assets/deadlines-BG5SWwEG.js",
410
  "name": "deadlines"
411
  },
412
+ "_dialog-BXnL_m2W.js": {
413
+ "file": "assets/dialog-BXnL_m2W.js",
414
  "name": "dialog",
415
  "imports": [
416
  "index.html"
417
  ]
418
  },
419
+ "_external-link-CTPTD9wF.js": {
420
+ "file": "assets/external-link-CTPTD9wF.js",
421
  "name": "external-link",
422
  "imports": [
423
  "index.html"
424
  ]
425
  },
426
+ "_file-text-DL8DB3Ia.js": {
427
+ "file": "assets/file-text-DL8DB3Ia.js",
428
  "name": "file-text",
429
  "imports": [
430
  "index.html"
 
434
  "file": "assets/frameworks-DDA0P4Tf.js",
435
  "name": "frameworks"
436
  },
437
+ "_github-rJ81k3MW.js": {
438
+ "file": "assets/github-rJ81k3MW.js",
439
  "name": "github",
440
  "imports": [
441
  "index.html"
442
  ]
443
  },
444
+ "_globe-8C5j9VAy.js": {
445
+ "file": "assets/globe-8C5j9VAy.js",
446
  "name": "globe",
447
  "imports": [
448
  "index.html"
449
  ]
450
  },
451
+ "_hover-card-CcViKpG6.js": {
452
+ "file": "assets/hover-card-CcViKpG6.js",
453
  "name": "hover-card",
454
  "imports": [
455
  "index.html"
456
  ]
457
  },
458
+ "_index-!~{00_}~.js": {
459
+ "file": "assets/index-Cw6yAXSE.css",
460
+ "src": "_index-!~{00_}~.js"
461
+ },
462
+ "_index-C601BfBQ.js": {
463
+ "file": "assets/index-C601BfBQ.js",
464
  "name": "index",
465
  "imports": [
466
+ "index.html"
467
  ]
468
  },
469
+ "_index-EPaFPxpL.js": {
470
+ "file": "assets/index-EPaFPxpL.js",
471
  "name": "index",
472
  "imports": [
473
+ "index.html",
474
+ "_chat-DGNTyNA6.js"
475
+ ],
476
+ "css": [
477
+ "assets/index-Cw6yAXSE.css"
478
  ]
479
  },
480
+ "_index-GshCUuRr.js": {
481
+ "file": "assets/index-GshCUuRr.js",
482
  "name": "index",
483
  "imports": [
484
  "index.html"
485
  ]
486
  },
487
+ "_index-UzLPH3v0.js": {
488
+ "file": "assets/index-UzLPH3v0.js",
489
  "name": "index",
490
  "imports": [
491
+ "_index-C601BfBQ.js",
492
+ "node_modules/katex/dist/katex.mjs"
493
+ ]
494
+ },
495
+ "_index-s2hHM8kO.js": {
496
+ "file": "assets/index-s2hHM8kO.js",
497
+ "name": "index",
498
+ "imports": [
499
+ "_index-C601BfBQ.js"
500
  ]
501
  },
502
+ "_input-C419tHG_.js": {
503
+ "file": "assets/input-C419tHG_.js",
504
  "name": "input",
505
  "imports": [
506
  "index.html"
507
  ]
508
  },
509
+ "_link-2-CfTozoIb.js": {
510
+ "file": "assets/link-2-CfTozoIb.js",
511
  "name": "link-2",
512
  "imports": [
513
  "index.html"
514
  ]
515
  },
516
+ "_loader-circle-DDE80rIr.js": {
517
+ "file": "assets/loader-circle-DDE80rIr.js",
518
  "name": "loader-circle",
519
  "imports": [
520
  "index.html"
521
  ]
522
  },
523
+ "_mlIntern-BWv6xBaQ.js": {
524
+ "file": "assets/mlIntern-BWv6xBaQ.js",
525
  "name": "mlIntern",
526
  "imports": [
527
  "index.html"
528
  ]
529
  },
530
+ "_moon-5JKAXetc.js": {
531
+ "file": "assets/moon-5JKAXetc.js",
532
  "name": "moon",
533
  "imports": [
534
  "index.html"
535
  ]
536
  },
537
+ "_openrouter-C1gmBS1C.js": {
538
+ "file": "assets/openrouter-C1gmBS1C.js",
539
  "name": "openrouter",
540
  "imports": [
541
  "index.html",
542
+ "_chat-DGNTyNA6.js"
543
  ]
544
  },
545
  "_organizationNames-BVKzYEBp.js": {
546
  "file": "assets/organizationNames-BVKzYEBp.js",
547
  "name": "organizationNames"
548
  },
549
+ "_pageTitles-BDUuOvJf.js": {
550
+ "file": "assets/pageTitles-BDUuOvJf.js",
551
  "name": "pageTitles",
552
  "imports": [
553
+ "_useDocumentTitle-xBtc80OB.js"
554
  ]
555
  },
556
  "_paperReader-D1y30HyW.js": {
 
560
  "_safeExternalHref-CkBrsh84.js"
561
  ]
562
  },
563
+ "_plus-D-JcHoGj.js": {
564
+ "file": "assets/plus-D-JcHoGj.js",
565
  "name": "plus",
566
  "imports": [
567
  "index.html"
568
  ]
569
  },
570
+ "_popover-CuCcJ8cK.js": {
571
+ "file": "assets/popover-CuCcJ8cK.js",
572
  "name": "popover",
573
  "imports": [
574
  "index.html"
575
  ]
576
  },
577
+ "_preferences-B5Lhs-WR.js": {
578
+ "file": "assets/preferences-B5Lhs-WR.js",
579
  "name": "preferences",
580
  "imports": [
581
  "index.html",
582
+ "_useMutation-DBnvCG24.js"
583
  ]
584
  },
585
+ "_refresh-cw-CXVlNP4b.js": {
586
+ "file": "assets/refresh-cw-CXVlNP4b.js",
587
  "name": "refresh-cw",
588
  "imports": [
589
  "index.html"
590
  ]
591
  },
592
+ "_researchTopic-BNud5CMS.js": {
593
+ "file": "assets/researchTopic-BNud5CMS.js",
594
  "name": "researchTopic",
595
  "imports": [
596
  "index.html",
597
+ "_useMutation-DBnvCG24.js"
598
  ]
599
  },
600
  "_safeExternalHref-CkBrsh84.js": {
601
  "file": "assets/safeExternalHref-CkBrsh84.js",
602
  "name": "safeExternalHref"
603
  },
604
+ "_savedPapersAuth-BSj_MUOM.js": {
605
+ "file": "assets/savedPapersAuth-BSj_MUOM.js",
606
  "name": "savedPapersAuth",
607
  "imports": [
608
  "index.html"
609
  ]
610
  },
611
+ "_search-B0zhG2PN.js": {
612
+ "file": "assets/search-B0zhG2PN.js",
613
  "name": "search",
614
  "imports": [
615
  "index.html"
616
  ]
617
  },
618
+ "_searchable-select-ByX0DNkg.js": {
619
+ "file": "assets/searchable-select-ByX0DNkg.js",
620
  "name": "searchable-select",
621
  "imports": [
622
  "index.html",
623
+ "_button-DUkH0QIr.js",
624
+ "_popover-CuCcJ8cK.js",
625
+ "_dialog-BXnL_m2W.js",
626
+ "_search-B0zhG2PN.js",
627
+ "_loader-circle-DDE80rIr.js"
628
  ]
629
  },
630
+ "_share-2-pHAfXukm.js": {
631
+ "file": "assets/share-2-pHAfXukm.js",
632
  "name": "share-2",
633
  "imports": [
634
  "index.html"
635
  ]
636
  },
637
+ "_skeleton-g9QeRZlQ.js": {
638
+ "file": "assets/skeleton-g9QeRZlQ.js",
639
  "name": "skeleton",
640
  "imports": [
641
  "index.html"
 
645
  "file": "assets/slug-BpH-Nkvz.js",
646
  "name": "slug"
647
  },
648
+ "_submissions-8BlabU_Z.js": {
649
+ "file": "assets/submissions-8BlabU_Z.js",
650
  "name": "submissions",
651
  "imports": [
652
  "index.html"
653
  ]
654
  },
655
+ "_switch-fRR_yusw.js": {
656
+ "file": "assets/switch-fRR_yusw.js",
657
  "name": "switch",
658
  "imports": [
659
  "index.html",
660
+ "_index-GshCUuRr.js"
661
  ]
662
  },
663
+ "_taskIcons-Bt2jN8U9.js": {
664
+ "file": "assets/taskIcons-Bt2jN8U9.js",
665
  "name": "taskIcons",
666
  "imports": [
667
  "index.html",
668
+ "_search-B0zhG2PN.js",
669
+ "_triangle-alert-BMeRW9rg.js",
670
+ "_share-2-pHAfXukm.js",
671
+ "_trending-up-CYDjl1mY.js",
672
+ "_moon-5JKAXetc.js",
673
+ "_thumbs-up-BxzCyoEs.js",
674
+ "_database-672kb9yv.js",
675
+ "_link-2-CfTozoIb.js",
676
+ "_trophy-CvSEu_DS.js",
677
+ "_file-text-DL8DB3Ia.js",
678
+ "_activity-xD0SAWlk.js",
679
+ "_globe-8C5j9VAy.js"
680
+ ]
681
+ },
682
+ "_textarea-CVmk78KU.js": {
683
+ "file": "assets/textarea-CVmk78KU.js",
684
  "name": "textarea",
685
  "imports": [
686
  "index.html"
687
  ]
688
  },
689
+ "_thumbs-up-BxzCyoEs.js": {
690
+ "file": "assets/thumbs-up-BxzCyoEs.js",
691
  "name": "thumbs-up",
692
  "imports": [
693
  "index.html"
694
  ]
695
  },
696
+ "_transform-BwK-yMDY.js": {
697
+ "file": "assets/transform-BwK-yMDY.js",
698
  "name": "transform",
699
  "imports": [
700
  "index.html"
701
  ]
702
  },
703
+ "_trash-2-qhXxU9a8.js": {
704
+ "file": "assets/trash-2-qhXxU9a8.js",
705
  "name": "trash-2",
706
  "imports": [
707
  "index.html"
708
  ]
709
  },
710
+ "_trending-up-CYDjl1mY.js": {
711
+ "file": "assets/trending-up-CYDjl1mY.js",
712
  "name": "trending-up",
713
  "imports": [
714
  "index.html"
715
  ]
716
  },
717
+ "_triangle-alert-BMeRW9rg.js": {
718
+ "file": "assets/triangle-alert-BMeRW9rg.js",
719
  "name": "triangle-alert",
720
  "imports": [
721
  "index.html"
722
  ]
723
  },
724
+ "_trophy-CvSEu_DS.js": {
725
+ "file": "assets/trophy-CvSEu_DS.js",
726
  "name": "trophy",
727
  "imports": [
728
  "index.html"
729
  ]
730
  },
731
+ "_undo-2-CJXBAR1q.js": {
732
+ "file": "assets/undo-2-CJXBAR1q.js",
733
  "name": "undo-2",
734
  "imports": [
735
  "index.html"
736
  ]
737
  },
738
+ "_useDebounce-3Rdi9v36.js": {
739
+ "file": "assets/useDebounce-3Rdi9v36.js",
740
  "name": "useDebounce",
741
  "imports": [
742
  "index.html"
743
  ]
744
  },
745
+ "_useDocumentTitle-xBtc80OB.js": {
746
+ "file": "assets/useDocumentTitle-xBtc80OB.js",
747
  "name": "useDocumentTitle",
748
  "imports": [
749
  "index.html"
750
  ]
751
  },
752
+ "_useHashScrollOnReady-B5hExIsK.js": {
753
+ "file": "assets/useHashScrollOnReady-B5hExIsK.js",
754
  "name": "useHashScrollOnReady",
755
  "imports": [
756
  "index.html",
757
+ "_skeleton-g9QeRZlQ.js",
758
+ "_alert-C8kkxn4G.js",
759
+ "_trending-up-CYDjl1mY.js"
760
  ]
761
  },
762
+ "_useInfiniteQuery-Dlybgr8f.js": {
763
+ "file": "assets/useInfiniteQuery-Dlybgr8f.js",
764
  "name": "useInfiniteQuery",
765
  "imports": [
766
  "index.html"
767
  ]
768
  },
769
+ "_useIntersectionObserver-CvTvi8t8.js": {
770
+ "file": "assets/useIntersectionObserver-CvTvi8t8.js",
771
  "name": "useIntersectionObserver",
772
  "imports": [
773
  "index.html"
774
  ]
775
  },
776
+ "_useMutation-DBnvCG24.js": {
777
+ "file": "assets/useMutation-DBnvCG24.js",
778
  "name": "useMutation",
779
  "imports": [
780
  "index.html"
781
  ]
782
  },
783
+ "_usePapers-CLqxSGhP.js": {
784
+ "file": "assets/usePapers-CLqxSGhP.js",
785
  "name": "usePapers",
786
  "imports": [
787
  "index.html",
788
+ "_PaperCard-CpWKB_q0.js",
789
+ "_popover-CuCcJ8cK.js",
790
+ "_Icon-BTX00T3U.js",
791
+ "_skeleton-g9QeRZlQ.js",
792
+ "_useIntersectionObserver-CvTvi8t8.js",
793
+ "_useInfiniteQuery-Dlybgr8f.js"
794
  ]
795
  },
796
+ "_useQueries-MNJ2SctB.js": {
797
+ "file": "assets/useQueries-MNJ2SctB.js",
798
  "name": "useQueries",
799
  "imports": [
800
  "index.html"
801
  ]
802
  },
803
  "index.html": {
804
+ "file": "assets/index-CqLopXcE.js",
805
  "name": "index",
806
  "src": "index.html",
807
  "isEntry": true,
 
847
  "src/views/StagingAccessRequestView.tsx"
848
  ],
849
  "css": [
850
+ "assets/index-Dc1xKVbU.css"
851
  ],
852
  "assets": [
853
  "assets/inter-normal-latin-Dx4kXJAl.woff2",
 
1193
  "src": "src/assets/fonts/newsreader-normal-vietnamese.woff2"
1194
  },
1195
  "src/components/MathMarkdownText.tsx": {
1196
+ "file": "assets/MathMarkdownText-BmLaP91f.js",
1197
  "name": "MathMarkdownText",
1198
  "src": "src/components/MathMarkdownText.tsx",
1199
  "isDynamicEntry": true,
1200
  "imports": [
1201
  "index.html",
1202
+ "_MarkdownText-CZlaYENs.js",
1203
+ "_index-UzLPH3v0.js",
1204
+ "_PaperPreviewLink-BQBSQN0t.js",
1205
+ "_index-C601BfBQ.js",
1206
+ "_index-s2hHM8kO.js",
1207
+ "_hover-card-CcViKpG6.js",
1208
+ "_useMutation-DBnvCG24.js",
1209
  "node_modules/katex/dist/katex.mjs"
1210
  ],
1211
  "css": [
 
1274
  ]
1275
  },
1276
  "src/components/SearchOverlay.tsx": {
1277
+ "file": "assets/SearchOverlay-B6JALIPr.js",
1278
  "name": "SearchOverlay",
1279
  "src": "src/components/SearchOverlay.tsx",
1280
  "isDynamicEntry": true,
1281
  "imports": [
1282
  "index.html",
1283
+ "_LatexTitle-C0en22SO.js",
1284
+ "_useDebounce-3Rdi9v36.js",
1285
  "_colors-BkWRhvFI.js",
1286
+ "_transform-BwK-yMDY.js"
1287
  ]
1288
  },
1289
  "src/pages/AutonomousOperations.tsx": {
1290
+ "file": "assets/AutonomousOperations-Bnh5-stU.js",
1291
  "name": "AutonomousOperations",
1292
  "src": "src/pages/AutonomousOperations.tsx",
1293
  "isDynamicEntry": true,
1294
  "imports": [
1295
  "index.html",
1296
+ "_useMutation-DBnvCG24.js",
1297
+ "_CronDashboard-uLEk1l8b.js",
1298
+ "_badge-CJsdIbmG.js",
1299
+ "_button-DUkH0QIr.js",
1300
+ "_input-C419tHG_.js",
1301
+ "_activity-xD0SAWlk.js",
1302
+ "_arrow-left-CsmoZGdZ.js"
1303
  ]
1304
  },
1305
  "src/pages/CronDashboard.tsx": {
1306
+ "file": "assets/CronDashboard-An3Raxu1.js",
1307
  "name": "CronDashboard",
1308
  "src": "src/pages/CronDashboard.tsx",
1309
  "isDynamicEntry": true,
1310
  "imports": [
1311
  "index.html",
1312
+ "_useMutation-DBnvCG24.js",
1313
+ "_CronDashboard-uLEk1l8b.js",
1314
+ "_badge-CJsdIbmG.js",
1315
+ "_button-DUkH0QIr.js",
1316
+ "_chevron-up-CoUJqJBK.js",
1317
+ "_database-672kb9yv.js",
1318
+ "_trending-up-CYDjl1mY.js",
1319
+ "_activity-xD0SAWlk.js",
1320
+ "_file-text-DL8DB3Ia.js",
1321
+ "_triangle-alert-BMeRW9rg.js",
1322
+ "_external-link-CTPTD9wF.js",
1323
+ "_refresh-cw-CXVlNP4b.js",
1324
+ "_loader-circle-DDE80rIr.js",
1325
+ "_circle-check-zCzyP0_o.js",
1326
+ "_useInfiniteQuery-Dlybgr8f.js",
1327
+ "_chat-DGNTyNA6.js"
1328
  ]
1329
  },
1330
  "src/pages/NotFound.tsx": {
1331
+ "file": "assets/NotFound-Dm23aroU.js",
1332
  "name": "NotFound",
1333
  "src": "src/pages/NotFound.tsx",
1334
  "isDynamicEntry": true,
 
1337
  ]
1338
  },
1339
  "src/pages/SubmissionsDashboard.tsx": {
1340
+ "file": "assets/SubmissionsDashboard-CU6ndMHG.js",
1341
  "name": "SubmissionsDashboard",
1342
  "src": "src/pages/SubmissionsDashboard.tsx",
1343
  "isDynamicEntry": true,
1344
  "imports": [
1345
  "index.html",
1346
+ "_cacheSync-CEi6VAAO.js",
1347
+ "_useMutation-DBnvCG24.js",
1348
+ "_useInfiniteQuery-Dlybgr8f.js",
1349
+ "_useQueries-MNJ2SctB.js",
1350
  "_safeExternalHref-CkBrsh84.js",
1351
+ "_submissions-8BlabU_Z.js",
1352
+ "_refresh-cw-CXVlNP4b.js",
1353
+ "_loader-circle-DDE80rIr.js",
1354
+ "_circle-check-zCzyP0_o.js",
1355
+ "_undo-2-CJXBAR1q.js"
1356
  ],
1357
  "css": [
1358
  "assets/SubmissionsDashboard-Dgd_CI1v.css"
1359
  ]
1360
  },
1361
  "src/views/AiDeadlinesView.tsx": {
1362
+ "file": "assets/AiDeadlinesView-BSHUHeo0.js",
1363
  "name": "AiDeadlinesView",
1364
  "src": "src/views/AiDeadlinesView.tsx",
1365
  "isDynamicEntry": true,
1366
  "imports": [
1367
  "index.html",
1368
+ "_switch-fRR_yusw.js",
1369
+ "_skeleton-g9QeRZlQ.js",
1370
+ "_alert-C8kkxn4G.js",
1371
  "_safeExternalHref-CkBrsh84.js",
1372
+ "_dialog-BXnL_m2W.js",
1373
  "_deadlines-BG5SWwEG.js",
1374
+ "_useDocumentTitle-xBtc80OB.js",
1375
+ "_pageTitles-BDUuOvJf.js",
1376
+ "_index-GshCUuRr.js"
1377
  ]
1378
  },
1379
  "src/views/ApiDocsView.tsx": {
1380
+ "file": "assets/ApiDocsView-x-zSamei.js",
1381
  "name": "ApiDocsView",
1382
  "src": "src/views/ApiDocsView.tsx",
1383
  "isDynamicEntry": true,
1384
  "imports": [
1385
  "index.html",
1386
+ "_useDocumentTitle-xBtc80OB.js",
1387
+ "_index-C601BfBQ.js"
1388
  ],
1389
  "css": [
1390
  "assets/ApiDocsView-DPuMdYvY.css"
1391
  ]
1392
  },
1393
  "src/views/AstraForRoboticsView.tsx": {
1394
+ "file": "assets/AstraForRoboticsView-DEi5RtZo.js",
1395
  "name": "AstraForRoboticsView",
1396
  "src": "src/views/AstraForRoboticsView.tsx",
1397
  "isDynamicEntry": true,
1398
  "imports": [
1399
  "index.html",
1400
+ "_usePapers-CLqxSGhP.js",
1401
+ "_alert-C8kkxn4G.js",
1402
+ "_useDocumentTitle-xBtc80OB.js",
1403
+ "_transform-BwK-yMDY.js",
1404
+ "_PaperCard-CpWKB_q0.js",
1405
+ "_AuthorAvatar-RLVSdcTr.js",
1406
+ "_SotaBadges-CmYGMLyy.js",
1407
  "_colors-BkWRhvFI.js",
1408
+ "_Icon-BTX00T3U.js",
1409
+ "_LatexTitle-C0en22SO.js",
1410
  "_safeExternalHref-CkBrsh84.js",
1411
+ "_popover-CuCcJ8cK.js",
1412
+ "_skeleton-g9QeRZlQ.js",
1413
+ "_useIntersectionObserver-CvTvi8t8.js",
1414
+ "_useInfiniteQuery-Dlybgr8f.js"
1415
  ],
1416
  "css": [
1417
  "assets/AstraForRoboticsView-C_lTF_XB.css"
1418
  ]
1419
  },
1420
  "src/views/AuthorDetailView.tsx": {
1421
+ "file": "assets/AuthorDetailView-DL-uye_I.js",
1422
  "name": "AuthorDetailView",
1423
  "src": "src/views/AuthorDetailView.tsx",
1424
  "isDynamicEntry": true,
1425
  "imports": [
1426
  "index.html",
1427
+ "_AuthorAvatar-RLVSdcTr.js",
1428
+ "_usePapers-CLqxSGhP.js",
1429
+ "_ResearchFollowButton-lWVVvGzA.js",
1430
+ "_alert-C8kkxn4G.js",
1431
+ "_skeleton-g9QeRZlQ.js",
1432
+ "_transform-BwK-yMDY.js",
1433
  "src/pages/NotFound.tsx",
1434
+ "_useDocumentTitle-xBtc80OB.js",
1435
+ "_pageTitles-BDUuOvJf.js",
1436
+ "_PaperCard-CpWKB_q0.js",
1437
+ "_SotaBadges-CmYGMLyy.js",
1438
  "_colors-BkWRhvFI.js",
1439
+ "_Icon-BTX00T3U.js",
1440
+ "_LatexTitle-C0en22SO.js",
1441
  "_safeExternalHref-CkBrsh84.js",
1442
+ "_popover-CuCcJ8cK.js",
1443
+ "_useIntersectionObserver-CvTvi8t8.js",
1444
+ "_useInfiniteQuery-Dlybgr8f.js",
1445
+ "_researchTopic-BNud5CMS.js",
1446
+ "_useMutation-DBnvCG24.js",
1447
+ "_plus-D-JcHoGj.js"
1448
  ]
1449
  },
1450
  "src/views/AuthorizePaperEditView.tsx": {
1451
+ "file": "assets/AuthorizePaperEditView-C33y_gny.js",
1452
  "name": "AuthorizePaperEditView",
1453
  "src": "src/views/AuthorizePaperEditView.tsx",
1454
  "isDynamicEntry": true,
1455
  "imports": [
1456
  "index.html",
1457
+ "_useMutation-DBnvCG24.js",
1458
+ "_button-DUkH0QIr.js"
1459
  ]
1460
  },
1461
  "src/views/BenchmarkDetailView.tsx": {
1462
+ "file": "assets/BenchmarkDetailView-CGtDu5Yx.js",
1463
  "name": "BenchmarkDetailView",
1464
  "src": "src/views/BenchmarkDetailView.tsx",
1465
  "isDynamicEntry": true,
1466
  "imports": [
1467
  "index.html",
1468
+ "_ResearchFollowButton-lWVVvGzA.js",
1469
+ "_preferences-B5Lhs-WR.js",
1470
+ "_LatexTitle-C0en22SO.js",
1471
+ "_ExternalSourceEvalBadge-DcDIi3qu.js",
1472
+ "_switch-fRR_yusw.js",
1473
+ "_Icon-BTX00T3U.js",
1474
+ "_skeleton-g9QeRZlQ.js",
1475
+ "_BenchmarkTrendSparkline-e2Hr_BzC.js",
1476
  "_safeExternalHref-CkBrsh84.js",
1477
  "_slug-BpH-Nkvz.js",
1478
  "src/pages/NotFound.tsx",
1479
+ "_LoadFailurePage-CbxBcR6o.js",
1480
+ "_useDocumentTitle-xBtc80OB.js",
1481
+ "_pageTitles-BDUuOvJf.js",
1482
+ "_researchTopic-BNud5CMS.js",
1483
+ "_useMutation-DBnvCG24.js",
1484
+ "_plus-D-JcHoGj.js",
1485
+ "_hover-card-CcViKpG6.js",
1486
+ "_index-GshCUuRr.js",
1487
+ "_alert-C8kkxn4G.js"
1488
  ],
1489
  "css": [
1490
  "assets/BenchmarkDetailView-CXxK75GR.css"
1491
  ]
1492
  },
1493
  "src/views/ChatView.tsx": {
1494
+ "file": "assets/ChatView-DWJHl306.js",
1495
  "name": "ChatView",
1496
  "src": "src/views/ChatView.tsx",
1497
  "isDynamicEntry": true,
1498
  "imports": [
1499
  "index.html",
1500
+ "_chatLifecycle-U97-CRPf.js",
1501
+ "_index-EPaFPxpL.js",
1502
+ "_chat-DGNTyNA6.js",
1503
+ "_McpShowcase-BIaXtPrM.js",
1504
+ "_share-2-pHAfXukm.js",
1505
+ "_useMutation-DBnvCG24.js",
1506
+ "_Icon-BTX00T3U.js",
1507
+ "_mlIntern-BWv6xBaQ.js",
1508
+ "_openrouter-C1gmBS1C.js",
1509
+ "_hover-card-CcViKpG6.js",
1510
+ "_CatalogEntityPreviewLink-BEEX6c5n.js",
1511
+ "_github-rJ81k3MW.js",
1512
+ "_file-text-DL8DB3Ia.js",
1513
+ "_PaperPreviewLink-BQBSQN0t.js",
1514
+ "_index-C601BfBQ.js",
1515
+ "_index-s2hHM8kO.js",
1516
+ "_index-UzLPH3v0.js",
1517
  "node_modules/katex/dist/katex.mjs",
1518
+ "_thumbs-up-BxzCyoEs.js",
1519
+ "_copy-CuOS3fOv.js",
1520
+ "_arrow-left-CsmoZGdZ.js",
1521
+ "_external-link-CTPTD9wF.js",
1522
+ "_plus-D-JcHoGj.js",
1523
+ "_search-B0zhG2PN.js",
1524
+ "_chevron-up-CoUJqJBK.js",
1525
+ "_AuthorAvatar-RLVSdcTr.js",
1526
+ "_trash-2-qhXxU9a8.js",
1527
+ "_AgentLogos-BGglpy29.js"
1528
  ],
1529
  "css": [
1530
  "assets/katex-wklAmtGL.css"
 
1592
  ]
1593
  },
1594
  "src/views/ConferenceDetailView.tsx": {
1595
+ "file": "assets/ConferenceDetailView-BIgAthVP.js",
1596
  "name": "ConferenceDetailView",
1597
  "src": "src/views/ConferenceDetailView.tsx",
1598
  "isDynamicEntry": true,
1599
  "imports": [
1600
  "index.html",
1601
+ "_AreaSection-eDvRZ5YZ.js",
1602
+ "_MarkdownText-CZlaYENs.js",
1603
  "_areas-Dvi8w2dp.js",
1604
  "_colors-BkWRhvFI.js",
1605
  "_conferenceListings-BnmhBx-_.js",
1606
  "_deadlines-BG5SWwEG.js",
1607
+ "_transform-BwK-yMDY.js",
1608
+ "_skeleton-g9QeRZlQ.js",
1609
  "_safeExternalHref-CkBrsh84.js",
1610
+ "_LoadFailurePage-CbxBcR6o.js",
1611
+ "_useDocumentTitle-xBtc80OB.js",
1612
+ "_pageTitles-BDUuOvJf.js",
1613
+ "_PaperPreviewLink-BQBSQN0t.js",
1614
+ "_index-C601BfBQ.js",
1615
+ "_index-s2hHM8kO.js",
1616
+ "_hover-card-CcViKpG6.js",
1617
+ "_useMutation-DBnvCG24.js",
1618
+ "_alert-C8kkxn4G.js",
1619
  "src/pages/NotFound.tsx"
1620
  ]
1621
  },
1622
  "src/views/ConferenceTaskView.tsx": {
1623
+ "file": "assets/ConferenceTaskView-CIOlr6as.js",
1624
  "name": "ConferenceTaskView",
1625
  "src": "src/views/ConferenceTaskView.tsx",
1626
  "isDynamicEntry": true,
1627
  "imports": [
1628
  "index.html",
1629
+ "_usePapers-CLqxSGhP.js",
1630
+ "_MarkdownText-CZlaYENs.js",
1631
  "_conferenceListings-BnmhBx-_.js",
1632
+ "_transform-BwK-yMDY.js",
1633
+ "_LoadFailurePage-CbxBcR6o.js",
1634
+ "_PaperCard-CpWKB_q0.js",
1635
+ "_AuthorAvatar-RLVSdcTr.js",
1636
+ "_SotaBadges-CmYGMLyy.js",
1637
  "_colors-BkWRhvFI.js",
1638
+ "_Icon-BTX00T3U.js",
1639
+ "_LatexTitle-C0en22SO.js",
1640
  "_safeExternalHref-CkBrsh84.js",
1641
+ "_popover-CuCcJ8cK.js",
1642
+ "_skeleton-g9QeRZlQ.js",
1643
+ "_useIntersectionObserver-CvTvi8t8.js",
1644
+ "_useInfiniteQuery-Dlybgr8f.js",
1645
+ "_PaperPreviewLink-BQBSQN0t.js",
1646
+ "_index-C601BfBQ.js",
1647
+ "_index-s2hHM8kO.js",
1648
+ "_hover-card-CcViKpG6.js",
1649
+ "_useMutation-DBnvCG24.js",
1650
+ "_alert-C8kkxn4G.js",
1651
  "src/pages/NotFound.tsx"
1652
  ]
1653
  },
1654
  "src/views/ConferencesIndexView.tsx": {
1655
+ "file": "assets/ConferencesIndexView-SwvYvYVc.js",
1656
  "name": "ConferencesIndexView",
1657
  "src": "src/views/ConferencesIndexView.tsx",
1658
  "isDynamicEntry": true,
1659
  "imports": [
1660
  "index.html",
1661
  "_deadlines-BG5SWwEG.js",
1662
+ "_alert-C8kkxn4G.js",
1663
+ "_AreaSection-eDvRZ5YZ.js",
1664
+ "_TaxonomySuggestionTile-BvFTS6DR.js",
1665
+ "_useDocumentTitle-xBtc80OB.js",
1666
+ "_pageTitles-BDUuOvJf.js",
1667
+ "_skeleton-g9QeRZlQ.js",
1668
+ "_SignInToEditDialog-WFTfQEZb.js",
1669
+ "_button-DUkH0QIr.js",
1670
+ "_input-C419tHG_.js",
1671
+ "_textarea-CVmk78KU.js",
1672
+ "_searchable-select-ByX0DNkg.js",
1673
+ "_popover-CuCcJ8cK.js",
1674
+ "_dialog-BXnL_m2W.js",
1675
+ "_search-B0zhG2PN.js",
1676
+ "_loader-circle-DDE80rIr.js",
1677
+ "_useMutation-DBnvCG24.js",
1678
+ "_submissions-8BlabU_Z.js",
1679
+ "_plus-D-JcHoGj.js"
1680
  ]
1681
  },
1682
  "src/views/FeedView.tsx": {
1683
+ "file": "assets/FeedView-Bux1HAcv.js",
1684
  "name": "FeedView",
1685
  "src": "src/views/FeedView.tsx",
1686
  "isDynamicEntry": true,
1687
  "imports": [
1688
  "index.html",
1689
+ "_taskIcons-Bt2jN8U9.js",
1690
+ "_researchTopic-BNud5CMS.js",
1691
+ "_plus-D-JcHoGj.js",
1692
+ "_dialog-BXnL_m2W.js",
1693
+ "_switch-fRR_yusw.js",
1694
+ "_useDebounce-3Rdi9v36.js",
1695
+ "_transform-BwK-yMDY.js",
1696
+ "_index-EPaFPxpL.js",
1697
+ "_trash-2-qhXxU9a8.js",
1698
+ "_undo-2-CJXBAR1q.js",
1699
+ "_arrow-up-right-Cj_gCzhz.js",
1700
+ "_arrow-right-xvOiHZHi.js",
1701
  "_colors-BkWRhvFI.js",
1702
+ "_usePapers-CLqxSGhP.js",
1703
+ "_McpShowcase-BIaXtPrM.js",
1704
+ "_chat-DGNTyNA6.js",
1705
+ "_skeleton-g9QeRZlQ.js",
1706
+ "_alert-C8kkxn4G.js",
1707
+ "_useDocumentTitle-xBtc80OB.js",
1708
+ "_pageTitles-BDUuOvJf.js",
1709
+ "_search-B0zhG2PN.js",
1710
+ "_triangle-alert-BMeRW9rg.js",
1711
+ "_share-2-pHAfXukm.js",
1712
+ "_trending-up-CYDjl1mY.js",
1713
+ "_moon-5JKAXetc.js",
1714
+ "_thumbs-up-BxzCyoEs.js",
1715
+ "_database-672kb9yv.js",
1716
+ "_link-2-CfTozoIb.js",
1717
+ "_trophy-CvSEu_DS.js",
1718
+ "_file-text-DL8DB3Ia.js",
1719
+ "_activity-xD0SAWlk.js",
1720
+ "_globe-8C5j9VAy.js",
1721
+ "_useMutation-DBnvCG24.js",
1722
+ "_index-GshCUuRr.js",
1723
+ "_PaperCard-CpWKB_q0.js",
1724
+ "_AuthorAvatar-RLVSdcTr.js",
1725
+ "_SotaBadges-CmYGMLyy.js",
1726
+ "_Icon-BTX00T3U.js",
1727
+ "_LatexTitle-C0en22SO.js",
1728
  "_safeExternalHref-CkBrsh84.js",
1729
+ "_popover-CuCcJ8cK.js",
1730
+ "_useIntersectionObserver-CvTvi8t8.js",
1731
+ "_useInfiniteQuery-Dlybgr8f.js",
1732
+ "_AgentLogos-BGglpy29.js"
1733
  ]
1734
  },
1735
  "src/views/FollowingView.tsx": {
1736
+ "file": "assets/FollowingView-DkTrRhPH.js",
1737
  "name": "FollowingView",
1738
  "src": "src/views/FollowingView.tsx",
1739
  "isDynamicEntry": true,
1740
  "imports": [
1741
  "index.html",
1742
  "src/views/FeedView.tsx",
1743
+ "_taskIcons-Bt2jN8U9.js",
1744
+ "_search-B0zhG2PN.js",
1745
+ "_triangle-alert-BMeRW9rg.js",
1746
+ "_share-2-pHAfXukm.js",
1747
+ "_trending-up-CYDjl1mY.js",
1748
+ "_moon-5JKAXetc.js",
1749
+ "_thumbs-up-BxzCyoEs.js",
1750
+ "_database-672kb9yv.js",
1751
+ "_link-2-CfTozoIb.js",
1752
+ "_trophy-CvSEu_DS.js",
1753
+ "_file-text-DL8DB3Ia.js",
1754
+ "_activity-xD0SAWlk.js",
1755
+ "_globe-8C5j9VAy.js",
1756
+ "_researchTopic-BNud5CMS.js",
1757
+ "_useMutation-DBnvCG24.js",
1758
+ "_plus-D-JcHoGj.js",
1759
+ "_dialog-BXnL_m2W.js",
1760
+ "_switch-fRR_yusw.js",
1761
+ "_index-GshCUuRr.js",
1762
+ "_useDebounce-3Rdi9v36.js",
1763
+ "_transform-BwK-yMDY.js",
1764
+ "_index-EPaFPxpL.js",
1765
+ "_chat-DGNTyNA6.js",
1766
+ "_trash-2-qhXxU9a8.js",
1767
+ "_undo-2-CJXBAR1q.js",
1768
+ "_arrow-up-right-Cj_gCzhz.js",
1769
+ "_arrow-right-xvOiHZHi.js",
1770
  "_colors-BkWRhvFI.js",
1771
+ "_usePapers-CLqxSGhP.js",
1772
+ "_PaperCard-CpWKB_q0.js",
1773
+ "_AuthorAvatar-RLVSdcTr.js",
1774
+ "_SotaBadges-CmYGMLyy.js",
1775
+ "_Icon-BTX00T3U.js",
1776
+ "_LatexTitle-C0en22SO.js",
1777
  "_safeExternalHref-CkBrsh84.js",
1778
+ "_popover-CuCcJ8cK.js",
1779
+ "_skeleton-g9QeRZlQ.js",
1780
+ "_useIntersectionObserver-CvTvi8t8.js",
1781
+ "_useInfiniteQuery-Dlybgr8f.js",
1782
+ "_McpShowcase-BIaXtPrM.js",
1783
+ "_AgentLogos-BGglpy29.js",
1784
+ "_alert-C8kkxn4G.js",
1785
+ "_useDocumentTitle-xBtc80OB.js",
1786
+ "_pageTitles-BDUuOvJf.js"
1787
  ]
1788
  },
1789
  "src/views/FrameworksIndexView.tsx": {
1790
+ "file": "assets/FrameworksIndexView-DvcCH5CJ.js",
1791
  "name": "FrameworksIndexView",
1792
  "src": "src/views/FrameworksIndexView.tsx",
1793
  "isDynamicEntry": true,
1794
  "imports": [
1795
  "index.html",
1796
+ "_Icon-BTX00T3U.js",
1797
  "_colors-BkWRhvFI.js",
1798
  "_frameworks-DDA0P4Tf.js",
1799
+ "_useDocumentTitle-xBtc80OB.js",
1800
+ "_pageTitles-BDUuOvJf.js"
1801
  ]
1802
  },
1803
  "src/views/McpView.tsx": {
1804
+ "file": "assets/McpView-CbQ0ihMp.js",
1805
  "name": "McpView",
1806
  "src": "src/views/McpView.tsx",
1807
  "isDynamicEntry": true,
1808
  "imports": [
1809
  "index.html",
1810
+ "_useDocumentTitle-xBtc80OB.js",
1811
+ "_github-rJ81k3MW.js",
1812
+ "_arrow-up-right-Cj_gCzhz.js",
1813
+ "_external-link-CTPTD9wF.js",
1814
+ "_copy-CuOS3fOv.js"
1815
  ],
1816
  "css": [
1817
  "assets/McpView-EGeqkP46.css"
1818
  ]
1819
  },
1820
  "src/views/MethodDetailView.tsx": {
1821
+ "file": "assets/MethodDetailView-DQWrmGHv.js",
1822
  "name": "MethodDetailView",
1823
  "src": "src/views/MethodDetailView.tsx",
1824
  "isDynamicEntry": true,
1825
  "imports": [
1826
  "index.html",
1827
+ "_ResearchFollowButton-lWVVvGzA.js",
1828
+ "_SotaBadges-CmYGMLyy.js",
1829
+ "_usePapers-CLqxSGhP.js",
1830
+ "_MarkdownText-CZlaYENs.js",
1831
  "_slug-BpH-Nkvz.js",
1832
+ "_transform-BwK-yMDY.js",
1833
+ "_skeleton-g9QeRZlQ.js",
1834
  "_safeExternalHref-CkBrsh84.js",
1835
  "src/pages/NotFound.tsx",
1836
+ "_LoadFailurePage-CbxBcR6o.js",
1837
+ "_useDocumentTitle-xBtc80OB.js",
1838
+ "_pageTitles-BDUuOvJf.js",
1839
+ "_researchTopic-BNud5CMS.js",
1840
+ "_useMutation-DBnvCG24.js",
1841
+ "_plus-D-JcHoGj.js",
1842
  "_colors-BkWRhvFI.js",
1843
+ "_PaperCard-CpWKB_q0.js",
1844
+ "_AuthorAvatar-RLVSdcTr.js",
1845
+ "_Icon-BTX00T3U.js",
1846
+ "_LatexTitle-C0en22SO.js",
1847
+ "_popover-CuCcJ8cK.js",
1848
+ "_useIntersectionObserver-CvTvi8t8.js",
1849
+ "_useInfiniteQuery-Dlybgr8f.js",
1850
+ "_PaperPreviewLink-BQBSQN0t.js",
1851
+ "_index-C601BfBQ.js",
1852
+ "_index-s2hHM8kO.js",
1853
+ "_hover-card-CcViKpG6.js",
1854
+ "_alert-C8kkxn4G.js"
1855
  ]
1856
  },
1857
  "src/views/MethodsIndexView.tsx": {
1858
+ "file": "assets/MethodsIndexView-r_It4Z0b.js",
1859
  "name": "MethodsIndexView",
1860
  "src": "src/views/MethodsIndexView.tsx",
1861
  "isDynamicEntry": true,
 
1863
  "index.html",
1864
  "_areas-Dvi8w2dp.js",
1865
  "_slug-BpH-Nkvz.js",
1866
+ "_alert-C8kkxn4G.js",
1867
+ "_AreaSection-eDvRZ5YZ.js",
1868
+ "_TaxonomySuggestionTile-BvFTS6DR.js",
1869
+ "_useHashScrollOnReady-B5hExIsK.js",
1870
+ "_useDocumentTitle-xBtc80OB.js",
1871
+ "_pageTitles-BDUuOvJf.js",
1872
+ "_skeleton-g9QeRZlQ.js",
1873
+ "_SignInToEditDialog-WFTfQEZb.js",
1874
+ "_button-DUkH0QIr.js",
1875
+ "_input-C419tHG_.js",
1876
+ "_textarea-CVmk78KU.js",
1877
+ "_searchable-select-ByX0DNkg.js",
1878
+ "_popover-CuCcJ8cK.js",
1879
+ "_dialog-BXnL_m2W.js",
1880
+ "_search-B0zhG2PN.js",
1881
+ "_loader-circle-DDE80rIr.js",
1882
+ "_useMutation-DBnvCG24.js",
1883
+ "_submissions-8BlabU_Z.js",
1884
+ "_plus-D-JcHoGj.js",
1885
+ "_trending-up-CYDjl1mY.js"
1886
  ]
1887
  },
1888
  "src/views/OrganizationDetailView.tsx": {
1889
+ "file": "assets/OrganizationDetailView-DiwWSGGc.js",
1890
  "name": "OrganizationDetailView",
1891
  "src": "src/views/OrganizationDetailView.tsx",
1892
  "isDynamicEntry": true,
1893
  "imports": [
1894
  "index.html",
1895
+ "_ResearchFollowButton-lWVVvGzA.js",
1896
+ "_MarkdownText-CZlaYENs.js",
1897
+ "_OrganizationContributionGraph-619a7ZA1.js",
1898
+ "_usePapers-CLqxSGhP.js",
1899
+ "_searchable-select-ByX0DNkg.js",
1900
+ "_skeleton-g9QeRZlQ.js",
1901
+ "_transform-BwK-yMDY.js",
1902
  "_organizationNames-BVKzYEBp.js",
1903
  "src/pages/NotFound.tsx",
1904
+ "_LoadFailurePage-CbxBcR6o.js",
1905
+ "_useDocumentTitle-xBtc80OB.js",
1906
+ "_pageTitles-BDUuOvJf.js",
1907
+ "_researchTopic-BNud5CMS.js",
1908
+ "_useMutation-DBnvCG24.js",
1909
+ "_plus-D-JcHoGj.js",
1910
+ "_PaperPreviewLink-BQBSQN0t.js",
1911
+ "_index-C601BfBQ.js",
1912
+ "_index-s2hHM8kO.js",
1913
+ "_hover-card-CcViKpG6.js",
1914
+ "_PaperCard-CpWKB_q0.js",
1915
+ "_AuthorAvatar-RLVSdcTr.js",
1916
+ "_SotaBadges-CmYGMLyy.js",
1917
  "_colors-BkWRhvFI.js",
1918
+ "_Icon-BTX00T3U.js",
1919
+ "_LatexTitle-C0en22SO.js",
1920
  "_safeExternalHref-CkBrsh84.js",
1921
+ "_popover-CuCcJ8cK.js",
1922
+ "_useIntersectionObserver-CvTvi8t8.js",
1923
+ "_useInfiniteQuery-Dlybgr8f.js",
1924
+ "_button-DUkH0QIr.js",
1925
+ "_dialog-BXnL_m2W.js",
1926
+ "_search-B0zhG2PN.js",
1927
+ "_loader-circle-DDE80rIr.js",
1928
+ "_alert-C8kkxn4G.js"
1929
  ]
1930
  },
1931
  "src/views/OrganizationsIndexView.tsx": {
1932
+ "file": "assets/OrganizationsIndexView-DcNR5yt2.js",
1933
  "name": "OrganizationsIndexView",
1934
  "src": "src/views/OrganizationsIndexView.tsx",
1935
  "isDynamicEntry": true,
1936
  "imports": [
1937
  "index.html",
1938
+ "_alert-C8kkxn4G.js",
1939
+ "_useDocumentTitle-xBtc80OB.js",
1940
+ "_pageTitles-BDUuOvJf.js"
1941
  ],
1942
  "css": [
1943
  "assets/OrganizationsIndexView-CJnrfIkP.css"
1944
  ]
1945
  },
1946
  "src/views/PaperDetailView.tsx": {
1947
+ "file": "assets/PaperDetailView-BQUJfM_c.js",
1948
  "name": "PaperDetailView",
1949
  "src": "src/views/PaperDetailView.tsx",
1950
  "isDynamicEntry": true,
1951
  "imports": [
1952
  "index.html",
1953
+ "_useMutation-DBnvCG24.js",
1954
+ "_Icon-BTX00T3U.js",
1955
+ "_SotaBadges-CmYGMLyy.js",
1956
+ "_LatexTitle-C0en22SO.js",
1957
+ "_preferences-B5Lhs-WR.js",
1958
+ "_transform-BwK-yMDY.js",
1959
  "_paperReader-D1y30HyW.js",
1960
+ "_useDocumentTitle-xBtc80OB.js",
1961
  "_safeExternalHref-CkBrsh84.js",
1962
+ "_mlIntern-BWv6xBaQ.js",
1963
+ "_skeleton-g9QeRZlQ.js",
1964
+ "_alert-C8kkxn4G.js",
1965
+ "_button-DUkH0QIr.js",
1966
+ "_dialog-BXnL_m2W.js",
1967
+ "_AgentLogos-BGglpy29.js",
1968
+ "_copy-CuOS3fOv.js",
1969
+ "_cacheSync-CEi6VAAO.js",
1970
+ "_input-C419tHG_.js",
1971
+ "_searchable-select-ByX0DNkg.js",
1972
+ "_loader-circle-DDE80rIr.js",
1973
+ "_trash-2-qhXxU9a8.js",
1974
+ "_SignInToEditDialog-WFTfQEZb.js",
1975
+ "_useQueries-MNJ2SctB.js",
1976
+ "_submissions-8BlabU_Z.js",
1977
+ "_database-672kb9yv.js",
1978
+ "_plus-D-JcHoGj.js",
1979
+ "_search-B0zhG2PN.js",
1980
+ "_badge-CJsdIbmG.js",
1981
+ "_CatalogEntityPreviewLink-BEEX6c5n.js",
1982
+ "_globe-8C5j9VAy.js",
1983
+ "_github-rJ81k3MW.js",
1984
+ "_index-GshCUuRr.js",
1985
+ "_ExternalSourceEvalBadge-DcDIi3qu.js",
1986
+ "_index-C601BfBQ.js",
1987
+ "_index-s2hHM8kO.js",
1988
+ "_useIntersectionObserver-CvTvi8t8.js",
1989
+ "_savedPapersAuth-BSj_MUOM.js",
1990
  "_organizationNames-BVKzYEBp.js",
1991
+ "_AuthorAvatar-RLVSdcTr.js",
1992
  "_colors-BkWRhvFI.js",
1993
+ "_popover-CuCcJ8cK.js",
1994
+ "_textarea-CVmk78KU.js",
1995
+ "_hover-card-CcViKpG6.js"
1996
  ],
1997
  "css": [
1998
  "assets/PaperDetailView-DOQP9hzn.css"
1999
  ]
2000
  },
2001
  "src/views/PaperReaderView.tsx": {
2002
+ "file": "assets/PaperReaderView-BQq3sDX_.js",
2003
  "name": "PaperReaderView",
2004
  "src": "src/views/PaperReaderView.tsx",
2005
  "isDynamicEntry": true,
2006
  "imports": [
2007
  "index.html",
2008
+ "_chatLifecycle-U97-CRPf.js",
2009
+ "_MarkdownText-CZlaYENs.js",
2010
  "_paperReader-D1y30HyW.js",
2011
+ "_chat-DGNTyNA6.js",
2012
  "_safeExternalHref-CkBrsh84.js",
2013
  "src/views/ChatView.tsx",
2014
+ "_index-EPaFPxpL.js",
2015
+ "_hover-card-CcViKpG6.js",
2016
+ "_CatalogEntityPreviewLink-BEEX6c5n.js",
2017
+ "_github-rJ81k3MW.js",
2018
+ "_file-text-DL8DB3Ia.js",
2019
+ "_PaperPreviewLink-BQBSQN0t.js",
2020
+ "_index-C601BfBQ.js",
2021
+ "_index-s2hHM8kO.js",
2022
+ "_useMutation-DBnvCG24.js",
2023
+ "_index-UzLPH3v0.js",
2024
  "node_modules/katex/dist/katex.mjs",
2025
+ "_thumbs-up-BxzCyoEs.js",
2026
+ "_copy-CuOS3fOv.js",
2027
+ "_arrow-left-CsmoZGdZ.js",
2028
+ "_external-link-CTPTD9wF.js",
2029
+ "_plus-D-JcHoGj.js",
2030
+ "_search-B0zhG2PN.js",
2031
+ "_chevron-up-CoUJqJBK.js",
2032
+ "_AuthorAvatar-RLVSdcTr.js",
2033
+ "_trash-2-qhXxU9a8.js",
2034
+ "_McpShowcase-BIaXtPrM.js",
2035
+ "_AgentLogos-BGglpy29.js",
2036
+ "_share-2-pHAfXukm.js",
2037
+ "_Icon-BTX00T3U.js",
2038
+ "_mlIntern-BWv6xBaQ.js",
2039
+ "_openrouter-C1gmBS1C.js"
2040
  ],
2041
  "css": [
2042
  "assets/katex-wklAmtGL.css"
 
2104
  ]
2105
  },
2106
  "src/views/PapersListView.tsx": {
2107
+ "file": "assets/PapersListView-CuPGMfr4.js",
2108
  "name": "PapersListView",
2109
  "src": "src/views/PapersListView.tsx",
2110
  "isDynamicEntry": true,
2111
  "imports": [
2112
  "index.html",
2113
+ "_SotaBadges-CmYGMLyy.js",
2114
+ "_Icon-BTX00T3U.js",
2115
+ "_usePapers-CLqxSGhP.js",
2116
+ "_transform-BwK-yMDY.js",
2117
+ "_useDebounce-3Rdi9v36.js",
2118
+ "_skeleton-g9QeRZlQ.js",
2119
+ "_alert-C8kkxn4G.js",
2120
  "_frameworks-DDA0P4Tf.js",
2121
+ "_useDocumentTitle-xBtc80OB.js",
2122
+ "_pageTitles-BDUuOvJf.js",
2123
  "_colors-BkWRhvFI.js",
2124
+ "_PaperCard-CpWKB_q0.js",
2125
+ "_AuthorAvatar-RLVSdcTr.js",
2126
+ "_LatexTitle-C0en22SO.js",
2127
  "_safeExternalHref-CkBrsh84.js",
2128
+ "_popover-CuCcJ8cK.js",
2129
+ "_useIntersectionObserver-CvTvi8t8.js",
2130
+ "_useInfiniteQuery-Dlybgr8f.js"
2131
  ]
2132
  },
2133
  "src/views/PrivacyView.tsx": {
2134
+ "file": "assets/PrivacyView-BrL4IPUA.js",
2135
  "name": "PrivacyView",
2136
  "src": "src/views/PrivacyView.tsx",
2137
  "isDynamicEntry": true,
2138
  "imports": [
2139
  "index.html",
2140
+ "_useDocumentTitle-xBtc80OB.js"
2141
  ]
2142
  },
2143
  "src/views/RateLimitsView.tsx": {
2144
+ "file": "assets/RateLimitsView-CuW0zveG.js",
2145
  "name": "RateLimitsView",
2146
  "src": "src/views/RateLimitsView.tsx",
2147
  "isDynamicEntry": true,
 
2150
  ]
2151
  },
2152
  "src/views/SavedPapersView.tsx": {
2153
+ "file": "assets/SavedPapersView-1LLDd2V8.js",
2154
  "name": "SavedPapersView",
2155
  "src": "src/views/SavedPapersView.tsx",
2156
  "isDynamicEntry": true,
2157
  "imports": [
2158
  "index.html",
2159
+ "_PaperCard-CpWKB_q0.js",
2160
+ "_SotaBadges-CmYGMLyy.js",
2161
+ "_skeleton-g9QeRZlQ.js",
2162
+ "_alert-C8kkxn4G.js",
2163
+ "_transform-BwK-yMDY.js",
2164
+ "_savedPapersAuth-BSj_MUOM.js",
2165
+ "_AuthorAvatar-RLVSdcTr.js",
2166
+ "_Icon-BTX00T3U.js",
2167
+ "_LatexTitle-C0en22SO.js",
2168
  "_safeExternalHref-CkBrsh84.js",
2169
  "_colors-BkWRhvFI.js"
2170
  ]
2171
  },
2172
  "src/views/SettingsView.tsx": {
2173
+ "file": "assets/SettingsView-CME_O2FB.js",
2174
  "name": "SettingsView",
2175
  "src": "src/views/SettingsView.tsx",
2176
  "isDynamicEntry": true,
2177
  "imports": [
2178
  "index.html",
2179
+ "_useMutation-DBnvCG24.js",
2180
+ "_researchTopic-BNud5CMS.js",
2181
+ "_switch-fRR_yusw.js",
2182
+ "_arrow-right-xvOiHZHi.js",
2183
+ "_chat-DGNTyNA6.js",
2184
+ "_useDocumentTitle-xBtc80OB.js",
2185
+ "_openrouter-C1gmBS1C.js",
2186
+ "_preferences-B5Lhs-WR.js",
2187
+ "_external-link-CTPTD9wF.js",
2188
+ "_moon-5JKAXetc.js",
2189
+ "_index-GshCUuRr.js"
2190
  ]
2191
  },
2192
  "src/views/SharedChatView.tsx": {
2193
+ "file": "assets/SharedChatView-CI3sx95-.js",
2194
  "name": "SharedChatView",
2195
  "src": "src/views/SharedChatView.tsx",
2196
  "isDynamicEntry": true,
2197
  "imports": [
2198
  "index.html",
2199
+ "_chatLifecycle-U97-CRPf.js",
2200
+ "_index-EPaFPxpL.js",
2201
+ "_chat-DGNTyNA6.js",
2202
+ "_hover-card-CcViKpG6.js",
2203
+ "_CatalogEntityPreviewLink-BEEX6c5n.js",
2204
+ "_github-rJ81k3MW.js",
2205
+ "_file-text-DL8DB3Ia.js",
2206
+ "_PaperPreviewLink-BQBSQN0t.js",
2207
+ "_index-C601BfBQ.js",
2208
+ "_index-s2hHM8kO.js",
2209
+ "_useMutation-DBnvCG24.js",
2210
+ "_index-UzLPH3v0.js",
2211
  "node_modules/katex/dist/katex.mjs",
2212
+ "_thumbs-up-BxzCyoEs.js",
2213
+ "_copy-CuOS3fOv.js",
2214
+ "_arrow-left-CsmoZGdZ.js",
2215
+ "_external-link-CTPTD9wF.js",
2216
+ "_plus-D-JcHoGj.js",
2217
+ "_search-B0zhG2PN.js",
2218
+ "_chevron-up-CoUJqJBK.js",
2219
+ "_AuthorAvatar-RLVSdcTr.js",
2220
+ "_trash-2-qhXxU9a8.js"
2221
  ],
2222
  "css": [
2223
  "assets/katex-wklAmtGL.css"
 
2285
  ]
2286
  },
2287
  "src/views/StagingAccessRequestView.tsx": {
2288
+ "file": "assets/StagingAccessRequestView-BII7BNyS.js",
2289
  "name": "StagingAccessRequestView",
2290
  "src": "src/views/StagingAccessRequestView.tsx",
2291
  "isDynamicEntry": true,
2292
  "imports": [
2293
  "index.html",
2294
+ "_circle-check-zCzyP0_o.js"
2295
  ]
2296
  },
2297
  "src/views/SubmitView.tsx": {
2298
+ "file": "assets/SubmitView-txKEiOoh.js",
2299
  "name": "SubmitView",
2300
  "src": "src/views/SubmitView.tsx",
2301
  "isDynamicEntry": true,
2302
  "imports": [
2303
  "index.html",
2304
+ "_useMutation-DBnvCG24.js",
2305
+ "_alert-C8kkxn4G.js",
2306
+ "_button-DUkH0QIr.js",
2307
+ "_input-C419tHG_.js",
2308
+ "_textarea-CVmk78KU.js",
2309
+ "_cacheSync-CEi6VAAO.js"
2310
  ]
2311
  },
2312
  "src/views/TagBrowseView.tsx": {
2313
+ "file": "assets/TagBrowseView-CIO6yAF8.js",
2314
  "name": "TagBrowseView",
2315
  "src": "src/views/TagBrowseView.tsx",
2316
  "isDynamicEntry": true,
2317
  "imports": [
2318
  "index.html",
2319
+ "_ResearchFollowButton-lWVVvGzA.js",
2320
+ "_SotaBadges-CmYGMLyy.js",
2321
+ "_usePapers-CLqxSGhP.js",
2322
+ "_arrow-right-xvOiHZHi.js",
2323
+ "_BenchmarkTrendSparkline-e2Hr_BzC.js",
2324
+ "_MarkdownText-CZlaYENs.js",
2325
  "_frameworks-DDA0P4Tf.js",
2326
+ "_preferences-B5Lhs-WR.js",
2327
  "_slug-BpH-Nkvz.js",
2328
+ "_transform-BwK-yMDY.js",
2329
+ "_skeleton-g9QeRZlQ.js",
2330
  "src/pages/NotFound.tsx",
2331
+ "_LoadFailurePage-CbxBcR6o.js",
2332
+ "_useDocumentTitle-xBtc80OB.js",
2333
+ "_pageTitles-BDUuOvJf.js",
2334
+ "_trophy-CvSEu_DS.js",
2335
+ "_github-rJ81k3MW.js",
2336
+ "_researchTopic-BNud5CMS.js",
2337
+ "_useMutation-DBnvCG24.js",
2338
+ "_plus-D-JcHoGj.js",
2339
  "_colors-BkWRhvFI.js",
2340
+ "_PaperCard-CpWKB_q0.js",
2341
+ "_AuthorAvatar-RLVSdcTr.js",
2342
+ "_Icon-BTX00T3U.js",
2343
+ "_LatexTitle-C0en22SO.js",
2344
  "_safeExternalHref-CkBrsh84.js",
2345
+ "_popover-CuCcJ8cK.js",
2346
+ "_useIntersectionObserver-CvTvi8t8.js",
2347
+ "_useInfiniteQuery-Dlybgr8f.js",
2348
+ "_PaperPreviewLink-BQBSQN0t.js",
2349
+ "_index-C601BfBQ.js",
2350
+ "_index-s2hHM8kO.js",
2351
+ "_hover-card-CcViKpG6.js",
2352
+ "_alert-C8kkxn4G.js"
2353
  ]
2354
  },
2355
  "src/views/TagsIndexView.tsx": {
2356
+ "file": "assets/TagsIndexView-f47kE4ba.js",
2357
  "name": "TagsIndexView",
2358
  "src": "src/views/TagsIndexView.tsx",
2359
  "isDynamicEntry": true,
2360
  "imports": [
2361
  "index.html",
2362
  "_colors-BkWRhvFI.js",
2363
+ "_transform-BwK-yMDY.js",
2364
  "_slug-BpH-Nkvz.js",
2365
+ "_taskIcons-Bt2jN8U9.js",
2366
+ "_alert-C8kkxn4G.js",
2367
+ "_AreaSection-eDvRZ5YZ.js",
2368
+ "_TaxonomySuggestionTile-BvFTS6DR.js",
2369
+ "_useHashScrollOnReady-B5hExIsK.js",
2370
  "_areas-Dvi8w2dp.js",
2371
+ "_useDocumentTitle-xBtc80OB.js",
2372
+ "_pageTitles-BDUuOvJf.js",
2373
+ "_search-B0zhG2PN.js",
2374
+ "_triangle-alert-BMeRW9rg.js",
2375
+ "_share-2-pHAfXukm.js",
2376
+ "_trending-up-CYDjl1mY.js",
2377
+ "_moon-5JKAXetc.js",
2378
+ "_thumbs-up-BxzCyoEs.js",
2379
+ "_database-672kb9yv.js",
2380
+ "_link-2-CfTozoIb.js",
2381
+ "_trophy-CvSEu_DS.js",
2382
+ "_file-text-DL8DB3Ia.js",
2383
+ "_activity-xD0SAWlk.js",
2384
+ "_globe-8C5j9VAy.js",
2385
+ "_skeleton-g9QeRZlQ.js",
2386
+ "_SignInToEditDialog-WFTfQEZb.js",
2387
+ "_button-DUkH0QIr.js",
2388
+ "_input-C419tHG_.js",
2389
+ "_textarea-CVmk78KU.js",
2390
+ "_searchable-select-ByX0DNkg.js",
2391
+ "_popover-CuCcJ8cK.js",
2392
+ "_dialog-BXnL_m2W.js",
2393
+ "_loader-circle-DDE80rIr.js",
2394
+ "_useMutation-DBnvCG24.js",
2395
+ "_submissions-8BlabU_Z.js",
2396
+ "_plus-D-JcHoGj.js"
2397
  ]
2398
  },
2399
  "src/views/TopicView.tsx": {
2400
+ "file": "assets/TopicView-CKwPero_.js",
2401
  "name": "TopicView",
2402
  "src": "src/views/TopicView.tsx",
2403
  "isDynamicEntry": true,
2404
  "imports": [
2405
  "index.html",
2406
+ "_usePapers-CLqxSGhP.js",
2407
+ "_skeleton-g9QeRZlQ.js",
2408
+ "_researchTopic-BNud5CMS.js",
2409
+ "_transform-BwK-yMDY.js",
2410
+ "_plus-D-JcHoGj.js",
2411
+ "_link-2-CfTozoIb.js",
2412
+ "_PaperCard-CpWKB_q0.js",
2413
+ "_AuthorAvatar-RLVSdcTr.js",
2414
+ "_SotaBadges-CmYGMLyy.js",
2415
  "_colors-BkWRhvFI.js",
2416
+ "_Icon-BTX00T3U.js",
2417
+ "_LatexTitle-C0en22SO.js",
2418
  "_safeExternalHref-CkBrsh84.js",
2419
+ "_popover-CuCcJ8cK.js",
2420
+ "_useIntersectionObserver-CvTvi8t8.js",
2421
+ "_useInfiniteQuery-Dlybgr8f.js",
2422
+ "_useMutation-DBnvCG24.js"
2423
  ]
2424
  },
2425
  "src/views/TrendsView.tsx": {
2426
+ "file": "assets/TrendsView-DpzR3dCe.js",
2427
  "name": "TrendsView",
2428
  "src": "src/views/TrendsView.tsx",
2429
  "isDynamicEntry": true,
2430
  "imports": [
2431
  "index.html",
2432
+ "_alert-C8kkxn4G.js",
2433
+ "_skeleton-g9QeRZlQ.js",
2434
+ "_useDocumentTitle-xBtc80OB.js",
2435
+ "_pageTitles-BDUuOvJf.js"
2436
  ]
2437
  },
2438
  "src/views/UserProfileView.tsx": {
2439
+ "file": "assets/UserProfileView-lCuXapAb.js",
2440
  "name": "UserProfileView",
2441
  "src": "src/views/UserProfileView.tsx",
2442
  "isDynamicEntry": true,
2443
  "imports": [
2444
  "index.html",
2445
+ "_OrganizationContributionGraph-619a7ZA1.js",
2446
+ "_skeleton-g9QeRZlQ.js"
2447
  ]
2448
  }
2449
  }
assets/{AgentLogos-DmfyY5wp.js → AgentLogos-BGglpy29.js} RENAMED
@@ -1 +1 @@
1
- import{j as e}from"./index-2xE415-f.js";const s="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='256'%20height='257'%20preserveAspectRatio='xMidYMid'%20viewBox='0%200%20256%20257'%3e%3cpath%20fill='%23D97757'%20d='m50.228%20170.321%2050.357-28.257.843-2.463-.843-1.361h-2.462l-8.426-.518-28.775-.778-24.952-1.037-24.175-1.296-6.092-1.297L0%20125.796l.583-3.759%205.12-3.434%207.324.648%2016.202%201.101%2024.304%201.685%2017.629%201.037%2026.118%202.722h4.148l.583-1.685-1.426-1.037-1.101-1.037-25.147-17.045-27.22-18.017-14.258-10.37-7.713-5.25-3.888-4.925-1.685-10.758%207-7.713%209.397.649%202.398.648%209.527%207.323%2020.35%2015.75L94.817%2091.9l3.889%203.24%201.555-1.102.195-.777-1.75-2.917-14.453-26.118-15.425-26.572-6.87-11.018-1.814-6.61c-.648-2.723-1.102-4.991-1.102-7.778l7.972-10.823L71.42%200%2082.05%201.426l4.472%203.888%206.61%2015.101%2010.694%2023.786%2016.591%2032.34%204.861%209.592%202.592%208.879.973%202.722h1.685v-1.556l1.36-18.211%202.528-22.36%202.463-28.776.843-8.1%204.018-9.722%207.971-5.25%206.222%202.981%205.12%207.324-.713%204.73-3.046%2019.768-5.962%2030.98-3.889%2020.739h2.268l2.593-2.593%2010.499-13.934%2017.628-22.036%207.778-8.749%209.073-9.657%205.833-4.601h11.018l8.1%2012.055-3.628%2012.443-11.342%2014.388-9.398%2012.184-13.48%2018.147-8.426%2014.518.778%201.166%202.01-.194%2030.46-6.481%2016.462-2.982%2019.637-3.37%208.88%204.148.971%204.213-3.5%208.62-20.998%205.184-24.628%204.926-36.682%208.685-.454.324.519.648%2016.526%201.555%207.065.389h17.304l32.21%202.398%208.426%205.574%205.055%206.805-.843%205.184-12.962%206.611-17.498-4.148-40.83-9.721-14-3.5h-1.944v1.167l11.666%2011.406%2021.387%2019.314%2026.767%2024.887%201.36%206.157-3.434%204.86-3.63-.518-23.526-17.693-9.073-7.972-20.545-17.304h-1.36v1.814l4.73%206.935%2025.017%2037.59%201.296%2011.536-1.814%203.76-6.481%202.268-7.13-1.297-14.647-20.544-15.1-23.138-12.185-20.739-1.49.843-7.194%2077.448-3.37%203.953-7.778%202.981-6.48-4.925-3.436-7.972%203.435-15.749%204.148-20.544%203.37-16.333%203.046-20.285%201.815-6.74-.13-.454-1.49.194-15.295%2020.999-23.267%2031.433-18.406%2019.702-4.407%201.75-7.648-3.954.713-7.064%204.277-6.286%2025.47-32.405%2015.36-20.092%209.917-11.6-.065-1.686h-.583L44.07%20198.125l-12.055%201.555-5.185-4.86.648-7.972%202.463-2.593%2020.35-13.999-.064.065Z'/%3e%3c/svg%3e",a="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='256'%20height='257'%20preserveAspectRatio='xMidYMid'%20viewBox='0%200%20256%20257'%3e%3cpath%20fill='%23D97757'%20d='m50.228%20170.321%2050.357-28.257.843-2.463-.843-1.361h-2.462l-8.426-.518-28.775-.778-24.952-1.037-24.175-1.296-6.092-1.297L0%20125.796l.583-3.759%205.12-3.434%207.324.648%2016.202%201.101%2024.304%201.685%2017.629%201.037%2026.118%202.722h4.148l.583-1.685-1.426-1.037-1.101-1.037-25.147-17.045-27.22-18.017-14.258-10.37-7.713-5.25-3.888-4.925-1.685-10.758%207-7.713%209.397.649%202.398.648%209.527%207.323%2020.35%2015.75L94.817%2091.9l3.889%203.24%201.555-1.102.195-.777-1.75-2.917-14.453-26.118-15.425-26.572-6.87-11.018-1.814-6.61c-.648-2.723-1.102-4.991-1.102-7.778l7.972-10.823L71.42%200%2082.05%201.426l4.472%203.888%206.61%2015.101%2010.694%2023.786%2016.591%2032.34%204.861%209.592%202.592%208.879.973%202.722h1.685v-1.556l1.36-18.211%202.528-22.36%202.463-28.776.843-8.1%204.018-9.722%207.971-5.25%206.222%202.981%205.12%207.324-.713%204.73-3.046%2019.768-5.962%2030.98-3.889%2020.739h2.268l2.593-2.593%2010.499-13.934%2017.628-22.036%207.778-8.749%209.073-9.657%205.833-4.601h11.018l8.1%2012.055-3.628%2012.443-11.342%2014.388-9.398%2012.184-13.48%2018.147-8.426%2014.518.778%201.166%202.01-.194%2030.46-6.481%2016.462-2.982%2019.637-3.37%208.88%204.148.971%204.213-3.5%208.62-20.998%205.184-24.628%204.926-36.682%208.685-.454.324.519.648%2016.526%201.555%207.065.389h17.304l32.21%202.398%208.426%205.574%205.055%206.805-.843%205.184-12.962%206.611-17.498-4.148-40.83-9.721-14-3.5h-1.944v1.167l11.666%2011.406%2021.387%2019.314%2026.767%2024.887%201.36%206.157-3.434%204.86-3.63-.518-23.526-17.693-9.073-7.972-20.545-17.304h-1.36v1.814l4.73%206.935%2025.017%2037.59%201.296%2011.536-1.814%203.76-6.481%202.268-7.13-1.297-14.647-20.544-15.1-23.138-12.185-20.739-1.49.843-7.194%2077.448-3.37%203.953-7.778%202.981-6.48-4.925-3.436-7.972%203.435-15.749%204.148-20.544%203.37-16.333%203.046-20.285%201.815-6.74-.13-.454-1.49.194-15.295%2020.999-23.267%2031.433-18.406%2019.702-4.407%201.75-7.648-3.954.713-7.064%204.277-6.286%2025.47-32.405%2015.36-20.092%209.917-11.6-.065-1.686h-.583L44.07%20198.125l-12.055%201.555-5.185-4.86.648-7.972%202.463-2.593%2020.35-13.999-.064.065Z'/%3e%3c/svg%3e",h="data:image/svg+xml,%3csvg%20fill='%23111'%20fill-rule='evenodd'%20height='1em'%20style='flex:none;line-height:1'%20viewBox='0%200%2024%2024'%20width='1em'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eCodex%3c/title%3e%3cpath%20clip-rule='evenodd'%20d='M8.086.457a6.105%206.105%200%20013.046-.415c1.333.153%202.521.72%203.564%201.7a.117.117%200%2000.107.029c1.408-.346%202.762-.224%204.061.366l.063.03.154.076c1.357.703%202.33%201.77%202.918%203.198.278.679.418%201.388.421%202.126a5.655%205.655%200%2001-.18%201.631.167.167%200%2000.04.155%205.982%205.982%200%20011.578%202.891c.385%201.901-.01%203.615-1.183%205.14l-.182.22a6.063%206.063%200%2001-2.934%201.851.162.162%200%2000-.108.102c-.255.736-.511%201.364-.987%201.992-1.199%201.582-2.962%202.462-4.948%202.451-1.583-.008-2.986-.587-4.21-1.736a.145.145%200%2000-.14-.032c-.518.167-1.04.191-1.604.185a5.924%205.924%200%2001-2.595-.622%206.058%206.058%200%2001-2.146-1.781c-.203-.269-.404-.522-.551-.821a7.74%207.74%200%2001-.495-1.283%206.11%206.11%200%2001-.017-3.064.166.166%200%2000.008-.074.115.115%200%2000-.037-.064%205.958%205.958%200%2001-1.38-2.202%205.196%205.196%200%2001-.333-1.589%206.915%206.915%200%2001.188-2.132c.45-1.484%201.309-2.648%202.577-3.493.282-.188.55-.334.802-.438.286-.12.573-.22.861-.304a.129.129%200%2000.087-.087A6.016%206.016%200%20015.635%202.31C6.315%201.464%207.132.846%208.086.457zm-.804%207.85a.848.848%200%2000-1.473.842l1.694%202.965-1.688%202.848a.849.849%200%20001.46.864l1.94-3.272a.849.849%200%2000.007-.854l-1.94-3.393zm5.446%206.24a.849.849%200%20000%201.695h4.848a.849.849%200%20000-1.696h-4.848z'%3e%3c/path%3e%3c/svg%3e",o="data:image/svg+xml,%3csvg%20fill='%23fff'%20fill-rule='evenodd'%20height='1em'%20style='flex:none;line-height:1'%20viewBox='0%200%2024%2024'%20width='1em'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eCodex%3c/title%3e%3cpath%20clip-rule='evenodd'%20d='M8.086.457a6.105%206.105%200%20013.046-.415c1.333.153%202.521.72%203.564%201.7a.117.117%200%2000.107.029c1.408-.346%202.762-.224%204.061.366l.063.03.154.076c1.357.703%202.33%201.77%202.918%203.198.278.679.418%201.388.421%202.126a5.655%205.655%200%2001-.18%201.631.167.167%200%2000.04.155%205.982%205.982%200%20011.578%202.891c.385%201.901-.01%203.615-1.183%205.14l-.182.22a6.063%206.063%200%2001-2.934%201.851.162.162%200%2000-.108.102c-.255.736-.511%201.364-.987%201.992-1.199%201.582-2.962%202.462-4.948%202.451-1.583-.008-2.986-.587-4.21-1.736a.145.145%200%2000-.14-.032c-.518.167-1.04.191-1.604.185a5.924%205.924%200%2001-2.595-.622%206.058%206.058%200%2001-2.146-1.781c-.203-.269-.404-.522-.551-.821a7.74%207.74%200%2001-.495-1.283%206.11%206.11%200%2001-.017-3.064.166.166%200%2000.008-.074.115.115%200%2000-.037-.064%205.958%205.958%200%2001-1.38-2.202%205.196%205.196%200%2001-.333-1.589%206.915%206.915%200%2001.188-2.132c.45-1.484%201.309-2.648%202.577-3.493.282-.188.55-.334.802-.438.286-.12.573-.22.861-.304a.129.129%200%2000.087-.087A6.016%206.016%200%20015.635%202.31C6.315%201.464%207.132.846%208.086.457zm-.804%207.85a.848.848%200%2000-1.473.842l1.694%202.965-1.688%202.848a.849.849%200%20001.46.864l1.94-3.272a.849.849%200%2000.007-.854l-1.94-3.393zm5.446%206.24a.849.849%200%20000%201.695h4.848a.849.849%200%20000-1.696h-4.848z'%3e%3c/path%3e%3c/svg%3e",r="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20id='cursor_light__Ebene_1'%20xmlns='http://www.w3.org/2000/svg'%20version='1.1'%20viewBox='0%200%20466.73%20532.09'%3e%3c!--Generator:%20Adobe%20Illustrator%2029.6.1,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%202.1.1%20Build%209)--%3e%3cdefs%3e%3cstyle%3e.cursor_light__st0{fill:%2326251e}%3c/style%3e%3c/defs%3e%3cpath%20class='cursor_light__st0'%20d='M457.43,125.94L244.42,2.96c-6.84-3.95-15.28-3.95-22.12,0L9.3,125.94c-5.75,3.32-9.3,9.46-9.3,16.11v247.99c0,6.65,3.55,12.79,9.3,16.11l213.01,122.98c6.84,3.95,15.28,3.95,22.12,0l213.01-122.98c5.75-3.32,9.3-9.46,9.3-16.11v-247.99c0-6.65-3.55-12.79-9.3-16.11h-.01ZM444.05,151.99l-205.63,356.16c-1.39,2.4-5.06,1.42-5.06-1.36v-233.21c0-4.66-2.49-8.97-6.53-11.31L24.87,145.67c-2.4-1.39-1.42-5.06,1.36-5.06h411.26c5.84,0,9.49,6.33,6.57,11.39h-.01Z'/%3e%3c/svg%3e",d="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20id='cursor_dark__Ebene_1'%20xmlns='http://www.w3.org/2000/svg'%20version='1.1'%20viewBox='0%200%20466.73%20532.09'%3e%3c!--Generator:%20Adobe%20Illustrator%2029.6.1,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%202.1.1%20Build%209)--%3e%3cdefs%3e%3cstyle%3e.cursor_dark__st0{fill:%23edecec}%3c/style%3e%3c/defs%3e%3cpath%20class='cursor_dark__st0'%20d='M457.43,125.94L244.42,2.96c-6.84-3.95-15.28-3.95-22.12,0L9.3,125.94c-5.75,3.32-9.3,9.46-9.3,16.11v247.99c0,6.65,3.55,12.79,9.3,16.11l213.01,122.98c6.84,3.95,15.28,3.95,22.12,0l213.01-122.98c5.75-3.32,9.3-9.46,9.3-16.11v-247.99c0-6.65-3.55-12.79-9.3-16.11h-.01ZM444.05,151.99l-205.63,356.16c-1.39,2.4-5.06,1.42-5.06-1.36v-233.21c0-4.66-2.49-8.97-6.53-11.31L24.87,145.67c-2.4-1.39-1.42-5.06,1.36-5.06h411.26c5.84,0,9.49,6.33,6.57,11.39h-.01Z'/%3e%3c/svg%3e",n="data:image/svg+xml,%3csvg%20width='512'%20height='512'%20viewBox='0%200%20512%20512'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='512'%20height='512'%20fill='%23FDFCFC'/%3e%3cpath%20d='M320%20224V352H192V224H320Z'%20fill='%23E6E5E6'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M384%20416H128V96H384V416ZM320%20160H192V352H320V160Z'%20fill='%2317181C'/%3e%3c/svg%3e",g="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20version='1.1'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='512'%20height='512'%3e%3csvg%20width='512'%20height='512'%20viewBox='0%200%20512%20512'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='512'%20height='512'%20fill='%23131010'%3e%3c/rect%3e%3cpath%20d='M320%20224V352H192V224H320Z'%20fill='%235A5858'%3e%3c/path%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M384%20416H128V96H384V416ZM320%20160H192V352H320V160Z'%20fill='white'%3e%3c/path%3e%3c/svg%3e%3cstyle%3e@media%20(prefers-color-scheme:%20light)%20{%20:root%20{%20filter:%20none;%20}%20}%20@media%20(prefers-color-scheme:%20dark)%20{%20:root%20{%20filter:%20none;%20}%20}%20%3c/style%3e%3c/svg%3e",i=[{name:"Claude",light:s,dark:a},{name:"Codex",light:h,dark:o},{name:"Cursor",light:r,dark:d},{name:"OpenCode",light:n,dark:g}];function w(){return e.jsx("span",{className:"inline-flex shrink-0 items-center gap-1.5","aria-hidden":"true",children:i.map(({name:l,light:t,dark:c})=>e.jsxs("span",{title:l,className:"inline-flex h-[18px] w-[18px]",children:[e.jsx("img",{src:t,alt:"",width:18,height:18,className:"h-full w-full object-contain dark:hidden"}),e.jsx("img",{src:c,alt:"",width:18,height:18,className:"hidden h-full w-full object-contain dark:block"})]},l))})}function x(){return e.jsx("ul",{className:"flex flex-wrap gap-2","aria-label":"Supported coding agents",children:i.map(({name:l,light:t,dark:c})=>e.jsxs("li",{className:"inline-flex items-center gap-2 rounded-full border px-3 py-1 text-sm",children:[e.jsx("img",{src:t,alt:"",width:18,height:18,className:"h-[18px] w-[18px] object-contain dark:hidden"}),e.jsx("img",{src:c,alt:"",width:18,height:18,className:"hidden h-[18px] w-[18px] object-contain dark:block"}),l]},l))})}export{w as A,x as a};
 
1
+ import{j as e}from"./index-CqLopXcE.js";const s="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='256'%20height='257'%20preserveAspectRatio='xMidYMid'%20viewBox='0%200%20256%20257'%3e%3cpath%20fill='%23D97757'%20d='m50.228%20170.321%2050.357-28.257.843-2.463-.843-1.361h-2.462l-8.426-.518-28.775-.778-24.952-1.037-24.175-1.296-6.092-1.297L0%20125.796l.583-3.759%205.12-3.434%207.324.648%2016.202%201.101%2024.304%201.685%2017.629%201.037%2026.118%202.722h4.148l.583-1.685-1.426-1.037-1.101-1.037-25.147-17.045-27.22-18.017-14.258-10.37-7.713-5.25-3.888-4.925-1.685-10.758%207-7.713%209.397.649%202.398.648%209.527%207.323%2020.35%2015.75L94.817%2091.9l3.889%203.24%201.555-1.102.195-.777-1.75-2.917-14.453-26.118-15.425-26.572-6.87-11.018-1.814-6.61c-.648-2.723-1.102-4.991-1.102-7.778l7.972-10.823L71.42%200%2082.05%201.426l4.472%203.888%206.61%2015.101%2010.694%2023.786%2016.591%2032.34%204.861%209.592%202.592%208.879.973%202.722h1.685v-1.556l1.36-18.211%202.528-22.36%202.463-28.776.843-8.1%204.018-9.722%207.971-5.25%206.222%202.981%205.12%207.324-.713%204.73-3.046%2019.768-5.962%2030.98-3.889%2020.739h2.268l2.593-2.593%2010.499-13.934%2017.628-22.036%207.778-8.749%209.073-9.657%205.833-4.601h11.018l8.1%2012.055-3.628%2012.443-11.342%2014.388-9.398%2012.184-13.48%2018.147-8.426%2014.518.778%201.166%202.01-.194%2030.46-6.481%2016.462-2.982%2019.637-3.37%208.88%204.148.971%204.213-3.5%208.62-20.998%205.184-24.628%204.926-36.682%208.685-.454.324.519.648%2016.526%201.555%207.065.389h17.304l32.21%202.398%208.426%205.574%205.055%206.805-.843%205.184-12.962%206.611-17.498-4.148-40.83-9.721-14-3.5h-1.944v1.167l11.666%2011.406%2021.387%2019.314%2026.767%2024.887%201.36%206.157-3.434%204.86-3.63-.518-23.526-17.693-9.073-7.972-20.545-17.304h-1.36v1.814l4.73%206.935%2025.017%2037.59%201.296%2011.536-1.814%203.76-6.481%202.268-7.13-1.297-14.647-20.544-15.1-23.138-12.185-20.739-1.49.843-7.194%2077.448-3.37%203.953-7.778%202.981-6.48-4.925-3.436-7.972%203.435-15.749%204.148-20.544%203.37-16.333%203.046-20.285%201.815-6.74-.13-.454-1.49.194-15.295%2020.999-23.267%2031.433-18.406%2019.702-4.407%201.75-7.648-3.954.713-7.064%204.277-6.286%2025.47-32.405%2015.36-20.092%209.917-11.6-.065-1.686h-.583L44.07%20198.125l-12.055%201.555-5.185-4.86.648-7.972%202.463-2.593%2020.35-13.999-.064.065Z'/%3e%3c/svg%3e",a="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='256'%20height='257'%20preserveAspectRatio='xMidYMid'%20viewBox='0%200%20256%20257'%3e%3cpath%20fill='%23D97757'%20d='m50.228%20170.321%2050.357-28.257.843-2.463-.843-1.361h-2.462l-8.426-.518-28.775-.778-24.952-1.037-24.175-1.296-6.092-1.297L0%20125.796l.583-3.759%205.12-3.434%207.324.648%2016.202%201.101%2024.304%201.685%2017.629%201.037%2026.118%202.722h4.148l.583-1.685-1.426-1.037-1.101-1.037-25.147-17.045-27.22-18.017-14.258-10.37-7.713-5.25-3.888-4.925-1.685-10.758%207-7.713%209.397.649%202.398.648%209.527%207.323%2020.35%2015.75L94.817%2091.9l3.889%203.24%201.555-1.102.195-.777-1.75-2.917-14.453-26.118-15.425-26.572-6.87-11.018-1.814-6.61c-.648-2.723-1.102-4.991-1.102-7.778l7.972-10.823L71.42%200%2082.05%201.426l4.472%203.888%206.61%2015.101%2010.694%2023.786%2016.591%2032.34%204.861%209.592%202.592%208.879.973%202.722h1.685v-1.556l1.36-18.211%202.528-22.36%202.463-28.776.843-8.1%204.018-9.722%207.971-5.25%206.222%202.981%205.12%207.324-.713%204.73-3.046%2019.768-5.962%2030.98-3.889%2020.739h2.268l2.593-2.593%2010.499-13.934%2017.628-22.036%207.778-8.749%209.073-9.657%205.833-4.601h11.018l8.1%2012.055-3.628%2012.443-11.342%2014.388-9.398%2012.184-13.48%2018.147-8.426%2014.518.778%201.166%202.01-.194%2030.46-6.481%2016.462-2.982%2019.637-3.37%208.88%204.148.971%204.213-3.5%208.62-20.998%205.184-24.628%204.926-36.682%208.685-.454.324.519.648%2016.526%201.555%207.065.389h17.304l32.21%202.398%208.426%205.574%205.055%206.805-.843%205.184-12.962%206.611-17.498-4.148-40.83-9.721-14-3.5h-1.944v1.167l11.666%2011.406%2021.387%2019.314%2026.767%2024.887%201.36%206.157-3.434%204.86-3.63-.518-23.526-17.693-9.073-7.972-20.545-17.304h-1.36v1.814l4.73%206.935%2025.017%2037.59%201.296%2011.536-1.814%203.76-6.481%202.268-7.13-1.297-14.647-20.544-15.1-23.138-12.185-20.739-1.49.843-7.194%2077.448-3.37%203.953-7.778%202.981-6.48-4.925-3.436-7.972%203.435-15.749%204.148-20.544%203.37-16.333%203.046-20.285%201.815-6.74-.13-.454-1.49.194-15.295%2020.999-23.267%2031.433-18.406%2019.702-4.407%201.75-7.648-3.954.713-7.064%204.277-6.286%2025.47-32.405%2015.36-20.092%209.917-11.6-.065-1.686h-.583L44.07%20198.125l-12.055%201.555-5.185-4.86.648-7.972%202.463-2.593%2020.35-13.999-.064.065Z'/%3e%3c/svg%3e",h="data:image/svg+xml,%3csvg%20fill='%23111'%20fill-rule='evenodd'%20height='1em'%20style='flex:none;line-height:1'%20viewBox='0%200%2024%2024'%20width='1em'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eCodex%3c/title%3e%3cpath%20clip-rule='evenodd'%20d='M8.086.457a6.105%206.105%200%20013.046-.415c1.333.153%202.521.72%203.564%201.7a.117.117%200%2000.107.029c1.408-.346%202.762-.224%204.061.366l.063.03.154.076c1.357.703%202.33%201.77%202.918%203.198.278.679.418%201.388.421%202.126a5.655%205.655%200%2001-.18%201.631.167.167%200%2000.04.155%205.982%205.982%200%20011.578%202.891c.385%201.901-.01%203.615-1.183%205.14l-.182.22a6.063%206.063%200%2001-2.934%201.851.162.162%200%2000-.108.102c-.255.736-.511%201.364-.987%201.992-1.199%201.582-2.962%202.462-4.948%202.451-1.583-.008-2.986-.587-4.21-1.736a.145.145%200%2000-.14-.032c-.518.167-1.04.191-1.604.185a5.924%205.924%200%2001-2.595-.622%206.058%206.058%200%2001-2.146-1.781c-.203-.269-.404-.522-.551-.821a7.74%207.74%200%2001-.495-1.283%206.11%206.11%200%2001-.017-3.064.166.166%200%2000.008-.074.115.115%200%2000-.037-.064%205.958%205.958%200%2001-1.38-2.202%205.196%205.196%200%2001-.333-1.589%206.915%206.915%200%2001.188-2.132c.45-1.484%201.309-2.648%202.577-3.493.282-.188.55-.334.802-.438.286-.12.573-.22.861-.304a.129.129%200%2000.087-.087A6.016%206.016%200%20015.635%202.31C6.315%201.464%207.132.846%208.086.457zm-.804%207.85a.848.848%200%2000-1.473.842l1.694%202.965-1.688%202.848a.849.849%200%20001.46.864l1.94-3.272a.849.849%200%2000.007-.854l-1.94-3.393zm5.446%206.24a.849.849%200%20000%201.695h4.848a.849.849%200%20000-1.696h-4.848z'%3e%3c/path%3e%3c/svg%3e",o="data:image/svg+xml,%3csvg%20fill='%23fff'%20fill-rule='evenodd'%20height='1em'%20style='flex:none;line-height:1'%20viewBox='0%200%2024%2024'%20width='1em'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eCodex%3c/title%3e%3cpath%20clip-rule='evenodd'%20d='M8.086.457a6.105%206.105%200%20013.046-.415c1.333.153%202.521.72%203.564%201.7a.117.117%200%2000.107.029c1.408-.346%202.762-.224%204.061.366l.063.03.154.076c1.357.703%202.33%201.77%202.918%203.198.278.679.418%201.388.421%202.126a5.655%205.655%200%2001-.18%201.631.167.167%200%2000.04.155%205.982%205.982%200%20011.578%202.891c.385%201.901-.01%203.615-1.183%205.14l-.182.22a6.063%206.063%200%2001-2.934%201.851.162.162%200%2000-.108.102c-.255.736-.511%201.364-.987%201.992-1.199%201.582-2.962%202.462-4.948%202.451-1.583-.008-2.986-.587-4.21-1.736a.145.145%200%2000-.14-.032c-.518.167-1.04.191-1.604.185a5.924%205.924%200%2001-2.595-.622%206.058%206.058%200%2001-2.146-1.781c-.203-.269-.404-.522-.551-.821a7.74%207.74%200%2001-.495-1.283%206.11%206.11%200%2001-.017-3.064.166.166%200%2000.008-.074.115.115%200%2000-.037-.064%205.958%205.958%200%2001-1.38-2.202%205.196%205.196%200%2001-.333-1.589%206.915%206.915%200%2001.188-2.132c.45-1.484%201.309-2.648%202.577-3.493.282-.188.55-.334.802-.438.286-.12.573-.22.861-.304a.129.129%200%2000.087-.087A6.016%206.016%200%20015.635%202.31C6.315%201.464%207.132.846%208.086.457zm-.804%207.85a.848.848%200%2000-1.473.842l1.694%202.965-1.688%202.848a.849.849%200%20001.46.864l1.94-3.272a.849.849%200%2000.007-.854l-1.94-3.393zm5.446%206.24a.849.849%200%20000%201.695h4.848a.849.849%200%20000-1.696h-4.848z'%3e%3c/path%3e%3c/svg%3e",r="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20id='cursor_light__Ebene_1'%20xmlns='http://www.w3.org/2000/svg'%20version='1.1'%20viewBox='0%200%20466.73%20532.09'%3e%3c!--Generator:%20Adobe%20Illustrator%2029.6.1,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%202.1.1%20Build%209)--%3e%3cdefs%3e%3cstyle%3e.cursor_light__st0{fill:%2326251e}%3c/style%3e%3c/defs%3e%3cpath%20class='cursor_light__st0'%20d='M457.43,125.94L244.42,2.96c-6.84-3.95-15.28-3.95-22.12,0L9.3,125.94c-5.75,3.32-9.3,9.46-9.3,16.11v247.99c0,6.65,3.55,12.79,9.3,16.11l213.01,122.98c6.84,3.95,15.28,3.95,22.12,0l213.01-122.98c5.75-3.32,9.3-9.46,9.3-16.11v-247.99c0-6.65-3.55-12.79-9.3-16.11h-.01ZM444.05,151.99l-205.63,356.16c-1.39,2.4-5.06,1.42-5.06-1.36v-233.21c0-4.66-2.49-8.97-6.53-11.31L24.87,145.67c-2.4-1.39-1.42-5.06,1.36-5.06h411.26c5.84,0,9.49,6.33,6.57,11.39h-.01Z'/%3e%3c/svg%3e",d="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20id='cursor_dark__Ebene_1'%20xmlns='http://www.w3.org/2000/svg'%20version='1.1'%20viewBox='0%200%20466.73%20532.09'%3e%3c!--Generator:%20Adobe%20Illustrator%2029.6.1,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%202.1.1%20Build%209)--%3e%3cdefs%3e%3cstyle%3e.cursor_dark__st0{fill:%23edecec}%3c/style%3e%3c/defs%3e%3cpath%20class='cursor_dark__st0'%20d='M457.43,125.94L244.42,2.96c-6.84-3.95-15.28-3.95-22.12,0L9.3,125.94c-5.75,3.32-9.3,9.46-9.3,16.11v247.99c0,6.65,3.55,12.79,9.3,16.11l213.01,122.98c6.84,3.95,15.28,3.95,22.12,0l213.01-122.98c5.75-3.32,9.3-9.46,9.3-16.11v-247.99c0-6.65-3.55-12.79-9.3-16.11h-.01ZM444.05,151.99l-205.63,356.16c-1.39,2.4-5.06,1.42-5.06-1.36v-233.21c0-4.66-2.49-8.97-6.53-11.31L24.87,145.67c-2.4-1.39-1.42-5.06,1.36-5.06h411.26c5.84,0,9.49,6.33,6.57,11.39h-.01Z'/%3e%3c/svg%3e",n="data:image/svg+xml,%3csvg%20width='512'%20height='512'%20viewBox='0%200%20512%20512'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='512'%20height='512'%20fill='%23FDFCFC'/%3e%3cpath%20d='M320%20224V352H192V224H320Z'%20fill='%23E6E5E6'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M384%20416H128V96H384V416ZM320%20160H192V352H320V160Z'%20fill='%2317181C'/%3e%3c/svg%3e",g="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20version='1.1'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='512'%20height='512'%3e%3csvg%20width='512'%20height='512'%20viewBox='0%200%20512%20512'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='512'%20height='512'%20fill='%23131010'%3e%3c/rect%3e%3cpath%20d='M320%20224V352H192V224H320Z'%20fill='%235A5858'%3e%3c/path%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M384%20416H128V96H384V416ZM320%20160H192V352H320V160Z'%20fill='white'%3e%3c/path%3e%3c/svg%3e%3cstyle%3e@media%20(prefers-color-scheme:%20light)%20{%20:root%20{%20filter:%20none;%20}%20}%20@media%20(prefers-color-scheme:%20dark)%20{%20:root%20{%20filter:%20none;%20}%20}%20%3c/style%3e%3c/svg%3e",i=[{name:"Claude",light:s,dark:a},{name:"Codex",light:h,dark:o},{name:"Cursor",light:r,dark:d},{name:"OpenCode",light:n,dark:g}];function w(){return e.jsx("span",{className:"inline-flex shrink-0 items-center gap-1.5","aria-hidden":"true",children:i.map(({name:l,light:t,dark:c})=>e.jsxs("span",{title:l,className:"inline-flex h-[18px] w-[18px]",children:[e.jsx("img",{src:t,alt:"",width:18,height:18,className:"h-full w-full object-contain dark:hidden"}),e.jsx("img",{src:c,alt:"",width:18,height:18,className:"hidden h-full w-full object-contain dark:block"})]},l))})}function x(){return e.jsx("ul",{className:"flex flex-wrap gap-2","aria-label":"Supported coding agents",children:i.map(({name:l,light:t,dark:c})=>e.jsxs("li",{className:"inline-flex items-center gap-2 rounded-full border px-3 py-1 text-sm",children:[e.jsx("img",{src:t,alt:"",width:18,height:18,className:"h-[18px] w-[18px] object-contain dark:hidden"}),e.jsx("img",{src:c,alt:"",width:18,height:18,className:"hidden h-[18px] w-[18px] object-contain dark:block"}),l]},l))})}export{w as A,x as a};
assets/{AiDeadlinesView-BTpqiv2W.js → AiDeadlinesView-BSHUHeo0.js} RENAMED
@@ -1,3 +1,3 @@
1
- import{i as y,j as t,b as A,v as L}from"./index-2xE415-f.js";import{S as B}from"./switch-idJDRCOy.js";import{S as W}from"./skeleton-7Kak9gS9.js";import{A as U,a as M}from"./alert-CMc00cqX.js";import{s as _}from"./safeExternalHref-CkBrsh84.js";import{D as O,a as V,c as P,b as G,d as H}from"./dialog-Bk_CUlgJ.js";import{s as Q,n as S,f as $,p as Y,u as N,l as k,a as z,c as b,D as K,i as I,b as R,d as X}from"./deadlines-BG5SWwEG.js";import{u as q}from"./useDocumentTitle-_d-BLODt.js";import{I as J}from"./pageTitles-CFPKZULe.js";import"./index-Df3nFJJR.js";const w={fontFamily:"var(--mono)",fontSize:10,letterSpacing:"0.12em",textTransform:"uppercase",color:"var(--ink-faint)"},Z=(e,s)=>{const l=Math.ceil((e-s)/K);return l<=0?"passed":`${l} ${l===1?"day":"days"}`},F=(e,s)=>{const l=$(e.start_date,e.end_date),r=e.venue||[e.city,e.country].filter(Boolean).join(", ");return[`${s.label||s.type||"Deadline"} for ${e.name}`,l?`Dates: ${l}`:null,r?`Location: ${r}`:null,e.url?`Website: ${e.url}`:null].filter(Boolean).join(`
2
  `)},C=e=>e.toISOString().replace(/[-:]/g,"").replace(/\.\d{3}/,""),ee=(e,s)=>{const l=new Date(s.deadline_at),r=new Date(l.getTime()+60*60*1e3),o=`${e.short_name||e.name} ${s.label||s.type||"deadline"}`,h=e.venue||[e.city,e.country].filter(Boolean).join(", "),a=`https://calendar.google.com/calendar/render?action=TEMPLATE&text=${encodeURIComponent(o)}&dates=${C(l)}/${C(r)}&details=${encodeURIComponent(F(e,s))}&location=${encodeURIComponent(h)}`,p=_(a);p&&window.open(p,"_blank","noopener,noreferrer")},te=(e,s)=>{const l=new Date(s.deadline_at),r=new Date(l.getTime()+60*60*1e3),o=`${e.short_name||e.name} ${s.label||s.type||"deadline"}`,h=e.venue||[e.city,e.country].filter(Boolean).join(", "),a=["BEGIN:VCALENDAR","VERSION:2.0","BEGIN:VEVENT",e.url?`URL:${e.url}`:null,`DTSTART:${C(l)}`,`DTEND:${C(r)}`,`SUMMARY:${o}`,`DESCRIPTION:${F(e,s).replace(/\n/g,"\\n")}`,h?`LOCATION:${h}`:null,"END:VEVENT","END:VCALENDAR"].filter(Boolean).join(`
3
  `),p=new Blob([a],{type:"text/calendar;charset=utf-8"}),d=document.createElement("a");d.href=URL.createObjectURL(p),d.download=`${(e.short_name||e.name).toLowerCase().replace(/\s+/g,"-")}-deadline.ics`,document.body.appendChild(d),d.click(),document.body.removeChild(d),URL.revokeObjectURL(d.href)},ae=({conf:e,open:s,onOpenChange:l})=>{const[r,o]=y.useState(()=>Date.now());y.useEffect(()=>{if(!s)return;o(Date.now());const i=setInterval(()=>o(Date.now()),1e3);return()=>clearInterval(i)},[s]);const h=y.useMemo(()=>e?Q(e):[],[e]),a=y.useMemo(()=>e?S(e,r):null,[e,r]),p=e?$(e.start_date,e.end_date):null,d=e?e.venue||[e.city,e.country].filter(Boolean).join(", ")||e.location:null,m=a?new Date(a.deadline_at).getTime():null;return t.jsx(O,{open:s,onOpenChange:l,children:t.jsx(V,{className:"max-w-xl",style:{background:"var(--bg-elevated)",maxHeight:"85vh",overflowY:"auto"},children:e&&t.jsxs(t.Fragment,{children:[t.jsxs(P,{children:[t.jsx(G,{asChild:!0,children:t.jsx("h2",{style:{fontFamily:"var(--serif)",fontSize:26,fontWeight:500,letterSpacing:"-0.01em",margin:0},children:e.short_name?`${e.short_name} ${e.year??""}`.trim():e.name})}),e.short_name&&e.name||e.description?t.jsx(H,{asChild:!0,children:t.jsx("span",{style:{fontFamily:"var(--serif)",fontSize:14,color:"var(--ink-soft)"},children:e.short_name?e.name:e.description})}):null]}),t.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:20,marginTop:4},children:[t.jsxs("div",{style:{display:"flex",flexWrap:"wrap",gap:24},children:[p&&t.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:4},children:[t.jsx("span",{style:w,children:"Dates"}),t.jsx("span",{style:{fontFamily:"var(--mono)",fontSize:13,color:"var(--ink-soft)"},children:p})]}),d&&t.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:4},children:[t.jsx("span",{style:w,children:"Venue"}),t.jsx("span",{style:{fontFamily:"var(--mono)",fontSize:13,color:"var(--ink-soft)"},children:d})]})]}),m!=null&&t.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:4,padding:"12px 14px",borderRadius:8,background:"var(--bg-subtle)",border:"1px solid var(--hairline)"},children:[t.jsx("span",{style:w,children:"Next deadline in"}),t.jsx("span",{style:{fontFamily:"var(--mono)",fontSize:22,fontWeight:600,color:N(m,r)},children:Y(m,r)})]}),t.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[t.jsx("span",{style:w,children:"Important deadlines"}),h.length===0?t.jsx("span",{style:{fontFamily:"var(--mono)",fontSize:13,color:"var(--ink-faint)"},children:"Deadlines not announced yet"}):h.map((i,c)=>{const f=new Date(i.deadline_at).getTime(),n=a!=null&&i.deadline_at===a.deadline_at&&i.type===a.type,u=f<=r;return t.jsxs("div",{style:{display:"flex",alignItems:"baseline",justifyContent:"space-between",gap:12,padding:"8px 12px",borderRadius:6,background:n?"var(--accent-soft)":"transparent",border:n?"1px solid var(--hairline-strong)":"1px solid var(--hairline)",opacity:u&&!n?.55:1},children:[t.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[t.jsxs("span",{style:{fontFamily:"var(--mono)",fontSize:13,color:"var(--ink)",fontWeight:n?600:400},children:[i.label||k(i.type||"deadline"),n&&t.jsx("span",{style:{...w,marginLeft:8},children:"Next"})]}),t.jsxs("span",{style:{fontFamily:"var(--mono)",fontSize:12,color:"var(--ink-faint)"},children:[z(i.deadline_at),i.timezone?` · ${i.timezone}`:""]})]}),t.jsx("span",{style:{fontFamily:"var(--mono)",fontSize:12,fontWeight:600,whiteSpace:"nowrap",color:N(u?null:f,r)},children:Z(f,r)})]},`${i.type??"deadline"}-${c}`)})]}),b(e).length>0&&t.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:6},children:b(e).map(i=>t.jsx("span",{className:"tag-chip",style:{background:"var(--bg-subtle)",color:"var(--ink-soft)"},children:k(i)},i))}),t.jsxs("div",{style:{display:"flex",flexWrap:"wrap",alignItems:"center",gap:16,paddingTop:12,borderTop:"1px solid var(--hairline)"},children:[e.url&&t.jsx("a",{href:_(e.url)??void 0,target:"_blank",rel:"noopener noreferrer",style:{fontFamily:"var(--mono)",fontSize:12,color:"var(--accent-text)"},children:"Visit website ↗"}),a&&t.jsxs("div",{style:{display:"flex",gap:12,marginLeft:"auto"},children:[t.jsx("button",{type:"button",className:"tag-chip",onClick:()=>ee(e,a),style:{background:"var(--bg-subtle)",color:"var(--ink-soft)"},children:"+ Google Calendar"}),t.jsx("button",{type:"button",className:"tag-chip",onClick:()=>te(e,a),style:{background:"var(--bg-subtle)",color:"var(--ink-soft)"},children:"+ Apple / .ics"})]})]})]})]})})})},E=({id:e,label:s,checked:l,onChange:r})=>t.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,fontFamily:"var(--mono)",fontSize:12,color:"var(--ink-soft)"},children:[t.jsx(B,{id:e,checked:l,onCheckedChange:r}),t.jsx("label",{htmlFor:e,style:{cursor:"pointer"},children:s})]}),ne=({conf:e,now:s,selectedDomains:l,onToggleDomain:r,onOpen:o})=>{const h=S(e,s),a=h??R(e),p=a?new Date(a.deadline_at).getTime():null,d=N(h?p:null,s),m=$(e.start_date,e.end_date),i=[e.city??null,e.country??null].filter(Boolean).join(", ");return t.jsxs("div",{role:"button",tabIndex:0,onClick:()=>o(e),onKeyDown:c=>{(c.key==="Enter"||c.key===" ")&&(c.preventDefault(),o(e))},style:{border:"1px solid var(--hairline)",borderRadius:8,padding:20,background:"var(--bg-elevated)",display:"flex",flexDirection:"column",gap:12,cursor:"pointer"},children:[t.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"baseline",gap:12},children:[t.jsx("h3",{style:{fontFamily:"var(--serif)",fontSize:20,fontWeight:500,letterSpacing:"-0.01em",margin:0},children:e.short_name?`${e.short_name} ${e.year??""}`.trim():e.name}),e.url&&t.jsx("a",{href:_(e.url)??void 0,target:"_blank",rel:"noopener noreferrer",onClick:c=>c.stopPropagation(),style:{fontFamily:"var(--mono)",fontSize:11,color:"var(--accent-text)",whiteSpace:"nowrap"},children:"website ↗"})]}),t.jsxs("div",{style:{display:"flex",alignItems:"baseline",justifyContent:"space-between",gap:12,paddingBottom:12,borderBottom:"1px solid var(--hairline)"},children:[t.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[t.jsx("span",{style:{fontFamily:"var(--mono)",fontSize:11,color:"var(--ink-faint)"},children:(a==null?void 0:a.label)||(a==null?void 0:a.type)||"Deadlines"}),t.jsx("span",{style:{fontFamily:"var(--mono)",fontSize:12,color:"var(--ink-soft)"},children:a?`${z(a.deadline_at)}${a.timezone?` · ${a.timezone}`:""}`:"Not announced yet"})]}),t.jsx("span",{style:{fontFamily:"var(--mono)",fontSize:14,fontWeight:600,color:d,whiteSpace:"nowrap"},children:p!=null?X(p,s):"TBA"})]}),t.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:4,fontFamily:"var(--mono)",fontSize:11,color:"var(--ink-faint)"},children:[m&&t.jsx("span",{children:m}),i&&t.jsx("span",{children:i})]}),b(e).length>0&&t.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:6},children:b(e).map(c=>{const f=l.has(c);return t.jsx("button",{className:"tag-chip",onClick:n=>{n.stopPropagation(),r(c)},style:{background:f?"var(--ink)":"var(--bg-subtle)",color:f?"var(--bg)":"var(--ink-soft)"},children:k(c)},c)})})]})},he=()=>{q(J.aiDeadlines);const[e,s]=y.useState(!0),[l,r]=y.useState(!1),[o,h]=y.useState(new Set),[a,p]=y.useState(null),d=y.useMemo(()=>Date.now(),[]),m=A(L.conferenceDeadlines()),i=n=>{h(u=>{const x=new Set(u);return x.has(n)?x.delete(n):x.add(n),x})},c=y.useMemo(()=>{var u;const n=new Map;return(u=m.data)==null||u.results.forEach(x=>{b(x).forEach(j=>n.set(j,(n.get(j)??0)+1))}),Array.from(n.entries()).sort((x,j)=>j[1]-x[1]).map(([x])=>x)},[m.data]),f=y.useMemo(()=>{var j;const u=(((j=m.data)==null?void 0:j.results)??[]).filter(g=>!(e&&g.tier!=="a"||o.size>0&&!b(g).some(v=>o.has(v))||!l&&!I(g)&&!S(g,d))),x=g=>{const D=S(g,d);if(D)return{group:0,time:new Date(D.deadline_at).getTime()};if(I(g))return{group:1,time:g.start_date?new Date(g.start_date).getTime():0};const v=R(g);return{group:2,time:-(v?new Date(v.deadline_at).getTime():0)}};return[...u].sort((g,D)=>{const v=x(g),T=x(D);return v.group!==T.group?v.group-T.group:v.time-T.time})},[m.data,e,l,o,d]);return m.error?t.jsx("div",{className:"page",children:t.jsx(U,{variant:"destructive",children:t.jsx(M,{children:"Failed to load conference deadlines. Please try again."})})}):t.jsxs("div",{className:"page",children:[t.jsx("div",{className:"feed-header",children:t.jsxs("div",{children:[t.jsxs("h1",{className:"feed-title",children:["AI Conference ",t.jsx("em",{children:"Deadlines"})]}),t.jsx("div",{className:"feed-subtitle",children:"Upcoming submission deadlines for major AI conferences, counting down."})]})}),t.jsxs("div",{style:{display:"flex",flexWrap:"wrap",alignItems:"center",gap:20,padding:"16px 0",borderBottom:"1px solid var(--hairline)",marginBottom:24},children:[t.jsx(E,{id:"top-tier-only",label:"Top tier only",checked:e,onChange:s}),t.jsx(E,{id:"show-past",label:"Show past conferences",checked:l,onChange:r})]}),c.length>0&&t.jsxs("div",{style:{display:"flex",flexWrap:"wrap",gap:6,marginBottom:24},children:[c.map(n=>{const u=o.has(n);return t.jsx("button",{className:"tag-chip",onClick:()=>i(n),style:{background:u?"var(--ink)":"var(--bg-subtle)",color:u?"var(--bg)":"var(--ink-soft)"},children:k(n)},n)}),o.size>0&&t.jsx("button",{className:"tag-chip",onClick:()=>h(new Set),style:{background:"transparent",color:"var(--ink-faint)"},children:"Clear ✕"})]}),t.jsx("div",{className:"sort-bar",children:t.jsx("div",{className:"results-count",children:m.isLoading?"…":`${f.length} conferences`})}),m.isLoading?t.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(320px, 1fr))",gap:16},children:Array.from({length:6}).map((n,u)=>t.jsx(W,{className:"h-44"},u))}):f.length===0?t.jsxs("div",{className:"no-results",children:["No conferences match these filters",l?".":" — try enabling “Show past conferences”."]}):t.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(320px, 1fr))",gap:16},children:f.map(n=>t.jsx(ne,{conf:n,now:d,selectedDomains:o,onToggleDomain:i,onOpen:p},n.id))}),t.jsx(ae,{conf:a,open:a!==null,onOpenChange:n=>{n||p(null)}})]})};export{he as default};
 
1
+ import{i as y,j as t,b as A,v as L}from"./index-CqLopXcE.js";import{S as B}from"./switch-fRR_yusw.js";import{S as W}from"./skeleton-g9QeRZlQ.js";import{A as U,a as M}from"./alert-C8kkxn4G.js";import{s as _}from"./safeExternalHref-CkBrsh84.js";import{D as O,a as V,c as P,b as G,d as H}from"./dialog-BXnL_m2W.js";import{s as Q,n as S,f as $,p as Y,u as N,l as k,a as z,c as b,D as K,i as I,b as R,d as X}from"./deadlines-BG5SWwEG.js";import{u as q}from"./useDocumentTitle-xBtc80OB.js";import{I as J}from"./pageTitles-BDUuOvJf.js";import"./index-GshCUuRr.js";const w={fontFamily:"var(--mono)",fontSize:10,letterSpacing:"0.12em",textTransform:"uppercase",color:"var(--ink-faint)"},Z=(e,s)=>{const l=Math.ceil((e-s)/K);return l<=0?"passed":`${l} ${l===1?"day":"days"}`},F=(e,s)=>{const l=$(e.start_date,e.end_date),r=e.venue||[e.city,e.country].filter(Boolean).join(", ");return[`${s.label||s.type||"Deadline"} for ${e.name}`,l?`Dates: ${l}`:null,r?`Location: ${r}`:null,e.url?`Website: ${e.url}`:null].filter(Boolean).join(`
2
  `)},C=e=>e.toISOString().replace(/[-:]/g,"").replace(/\.\d{3}/,""),ee=(e,s)=>{const l=new Date(s.deadline_at),r=new Date(l.getTime()+60*60*1e3),o=`${e.short_name||e.name} ${s.label||s.type||"deadline"}`,h=e.venue||[e.city,e.country].filter(Boolean).join(", "),a=`https://calendar.google.com/calendar/render?action=TEMPLATE&text=${encodeURIComponent(o)}&dates=${C(l)}/${C(r)}&details=${encodeURIComponent(F(e,s))}&location=${encodeURIComponent(h)}`,p=_(a);p&&window.open(p,"_blank","noopener,noreferrer")},te=(e,s)=>{const l=new Date(s.deadline_at),r=new Date(l.getTime()+60*60*1e3),o=`${e.short_name||e.name} ${s.label||s.type||"deadline"}`,h=e.venue||[e.city,e.country].filter(Boolean).join(", "),a=["BEGIN:VCALENDAR","VERSION:2.0","BEGIN:VEVENT",e.url?`URL:${e.url}`:null,`DTSTART:${C(l)}`,`DTEND:${C(r)}`,`SUMMARY:${o}`,`DESCRIPTION:${F(e,s).replace(/\n/g,"\\n")}`,h?`LOCATION:${h}`:null,"END:VEVENT","END:VCALENDAR"].filter(Boolean).join(`
3
  `),p=new Blob([a],{type:"text/calendar;charset=utf-8"}),d=document.createElement("a");d.href=URL.createObjectURL(p),d.download=`${(e.short_name||e.name).toLowerCase().replace(/\s+/g,"-")}-deadline.ics`,document.body.appendChild(d),d.click(),document.body.removeChild(d),URL.revokeObjectURL(d.href)},ae=({conf:e,open:s,onOpenChange:l})=>{const[r,o]=y.useState(()=>Date.now());y.useEffect(()=>{if(!s)return;o(Date.now());const i=setInterval(()=>o(Date.now()),1e3);return()=>clearInterval(i)},[s]);const h=y.useMemo(()=>e?Q(e):[],[e]),a=y.useMemo(()=>e?S(e,r):null,[e,r]),p=e?$(e.start_date,e.end_date):null,d=e?e.venue||[e.city,e.country].filter(Boolean).join(", ")||e.location:null,m=a?new Date(a.deadline_at).getTime():null;return t.jsx(O,{open:s,onOpenChange:l,children:t.jsx(V,{className:"max-w-xl",style:{background:"var(--bg-elevated)",maxHeight:"85vh",overflowY:"auto"},children:e&&t.jsxs(t.Fragment,{children:[t.jsxs(P,{children:[t.jsx(G,{asChild:!0,children:t.jsx("h2",{style:{fontFamily:"var(--serif)",fontSize:26,fontWeight:500,letterSpacing:"-0.01em",margin:0},children:e.short_name?`${e.short_name} ${e.year??""}`.trim():e.name})}),e.short_name&&e.name||e.description?t.jsx(H,{asChild:!0,children:t.jsx("span",{style:{fontFamily:"var(--serif)",fontSize:14,color:"var(--ink-soft)"},children:e.short_name?e.name:e.description})}):null]}),t.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:20,marginTop:4},children:[t.jsxs("div",{style:{display:"flex",flexWrap:"wrap",gap:24},children:[p&&t.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:4},children:[t.jsx("span",{style:w,children:"Dates"}),t.jsx("span",{style:{fontFamily:"var(--mono)",fontSize:13,color:"var(--ink-soft)"},children:p})]}),d&&t.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:4},children:[t.jsx("span",{style:w,children:"Venue"}),t.jsx("span",{style:{fontFamily:"var(--mono)",fontSize:13,color:"var(--ink-soft)"},children:d})]})]}),m!=null&&t.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:4,padding:"12px 14px",borderRadius:8,background:"var(--bg-subtle)",border:"1px solid var(--hairline)"},children:[t.jsx("span",{style:w,children:"Next deadline in"}),t.jsx("span",{style:{fontFamily:"var(--mono)",fontSize:22,fontWeight:600,color:N(m,r)},children:Y(m,r)})]}),t.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[t.jsx("span",{style:w,children:"Important deadlines"}),h.length===0?t.jsx("span",{style:{fontFamily:"var(--mono)",fontSize:13,color:"var(--ink-faint)"},children:"Deadlines not announced yet"}):h.map((i,c)=>{const f=new Date(i.deadline_at).getTime(),n=a!=null&&i.deadline_at===a.deadline_at&&i.type===a.type,u=f<=r;return t.jsxs("div",{style:{display:"flex",alignItems:"baseline",justifyContent:"space-between",gap:12,padding:"8px 12px",borderRadius:6,background:n?"var(--accent-soft)":"transparent",border:n?"1px solid var(--hairline-strong)":"1px solid var(--hairline)",opacity:u&&!n?.55:1},children:[t.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[t.jsxs("span",{style:{fontFamily:"var(--mono)",fontSize:13,color:"var(--ink)",fontWeight:n?600:400},children:[i.label||k(i.type||"deadline"),n&&t.jsx("span",{style:{...w,marginLeft:8},children:"Next"})]}),t.jsxs("span",{style:{fontFamily:"var(--mono)",fontSize:12,color:"var(--ink-faint)"},children:[z(i.deadline_at),i.timezone?` · ${i.timezone}`:""]})]}),t.jsx("span",{style:{fontFamily:"var(--mono)",fontSize:12,fontWeight:600,whiteSpace:"nowrap",color:N(u?null:f,r)},children:Z(f,r)})]},`${i.type??"deadline"}-${c}`)})]}),b(e).length>0&&t.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:6},children:b(e).map(i=>t.jsx("span",{className:"tag-chip",style:{background:"var(--bg-subtle)",color:"var(--ink-soft)"},children:k(i)},i))}),t.jsxs("div",{style:{display:"flex",flexWrap:"wrap",alignItems:"center",gap:16,paddingTop:12,borderTop:"1px solid var(--hairline)"},children:[e.url&&t.jsx("a",{href:_(e.url)??void 0,target:"_blank",rel:"noopener noreferrer",style:{fontFamily:"var(--mono)",fontSize:12,color:"var(--accent-text)"},children:"Visit website ↗"}),a&&t.jsxs("div",{style:{display:"flex",gap:12,marginLeft:"auto"},children:[t.jsx("button",{type:"button",className:"tag-chip",onClick:()=>ee(e,a),style:{background:"var(--bg-subtle)",color:"var(--ink-soft)"},children:"+ Google Calendar"}),t.jsx("button",{type:"button",className:"tag-chip",onClick:()=>te(e,a),style:{background:"var(--bg-subtle)",color:"var(--ink-soft)"},children:"+ Apple / .ics"})]})]})]})]})})})},E=({id:e,label:s,checked:l,onChange:r})=>t.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,fontFamily:"var(--mono)",fontSize:12,color:"var(--ink-soft)"},children:[t.jsx(B,{id:e,checked:l,onCheckedChange:r}),t.jsx("label",{htmlFor:e,style:{cursor:"pointer"},children:s})]}),ne=({conf:e,now:s,selectedDomains:l,onToggleDomain:r,onOpen:o})=>{const h=S(e,s),a=h??R(e),p=a?new Date(a.deadline_at).getTime():null,d=N(h?p:null,s),m=$(e.start_date,e.end_date),i=[e.city??null,e.country??null].filter(Boolean).join(", ");return t.jsxs("div",{role:"button",tabIndex:0,onClick:()=>o(e),onKeyDown:c=>{(c.key==="Enter"||c.key===" ")&&(c.preventDefault(),o(e))},style:{border:"1px solid var(--hairline)",borderRadius:8,padding:20,background:"var(--bg-elevated)",display:"flex",flexDirection:"column",gap:12,cursor:"pointer"},children:[t.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"baseline",gap:12},children:[t.jsx("h3",{style:{fontFamily:"var(--serif)",fontSize:20,fontWeight:500,letterSpacing:"-0.01em",margin:0},children:e.short_name?`${e.short_name} ${e.year??""}`.trim():e.name}),e.url&&t.jsx("a",{href:_(e.url)??void 0,target:"_blank",rel:"noopener noreferrer",onClick:c=>c.stopPropagation(),style:{fontFamily:"var(--mono)",fontSize:11,color:"var(--accent-text)",whiteSpace:"nowrap"},children:"website ↗"})]}),t.jsxs("div",{style:{display:"flex",alignItems:"baseline",justifyContent:"space-between",gap:12,paddingBottom:12,borderBottom:"1px solid var(--hairline)"},children:[t.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[t.jsx("span",{style:{fontFamily:"var(--mono)",fontSize:11,color:"var(--ink-faint)"},children:(a==null?void 0:a.label)||(a==null?void 0:a.type)||"Deadlines"}),t.jsx("span",{style:{fontFamily:"var(--mono)",fontSize:12,color:"var(--ink-soft)"},children:a?`${z(a.deadline_at)}${a.timezone?` · ${a.timezone}`:""}`:"Not announced yet"})]}),t.jsx("span",{style:{fontFamily:"var(--mono)",fontSize:14,fontWeight:600,color:d,whiteSpace:"nowrap"},children:p!=null?X(p,s):"TBA"})]}),t.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:4,fontFamily:"var(--mono)",fontSize:11,color:"var(--ink-faint)"},children:[m&&t.jsx("span",{children:m}),i&&t.jsx("span",{children:i})]}),b(e).length>0&&t.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:6},children:b(e).map(c=>{const f=l.has(c);return t.jsx("button",{className:"tag-chip",onClick:n=>{n.stopPropagation(),r(c)},style:{background:f?"var(--ink)":"var(--bg-subtle)",color:f?"var(--bg)":"var(--ink-soft)"},children:k(c)},c)})})]})},he=()=>{q(J.aiDeadlines);const[e,s]=y.useState(!0),[l,r]=y.useState(!1),[o,h]=y.useState(new Set),[a,p]=y.useState(null),d=y.useMemo(()=>Date.now(),[]),m=A(L.conferenceDeadlines()),i=n=>{h(u=>{const x=new Set(u);return x.has(n)?x.delete(n):x.add(n),x})},c=y.useMemo(()=>{var u;const n=new Map;return(u=m.data)==null||u.results.forEach(x=>{b(x).forEach(j=>n.set(j,(n.get(j)??0)+1))}),Array.from(n.entries()).sort((x,j)=>j[1]-x[1]).map(([x])=>x)},[m.data]),f=y.useMemo(()=>{var j;const u=(((j=m.data)==null?void 0:j.results)??[]).filter(g=>!(e&&g.tier!=="a"||o.size>0&&!b(g).some(v=>o.has(v))||!l&&!I(g)&&!S(g,d))),x=g=>{const D=S(g,d);if(D)return{group:0,time:new Date(D.deadline_at).getTime()};if(I(g))return{group:1,time:g.start_date?new Date(g.start_date).getTime():0};const v=R(g);return{group:2,time:-(v?new Date(v.deadline_at).getTime():0)}};return[...u].sort((g,D)=>{const v=x(g),T=x(D);return v.group!==T.group?v.group-T.group:v.time-T.time})},[m.data,e,l,o,d]);return m.error?t.jsx("div",{className:"page",children:t.jsx(U,{variant:"destructive",children:t.jsx(M,{children:"Failed to load conference deadlines. Please try again."})})}):t.jsxs("div",{className:"page",children:[t.jsx("div",{className:"feed-header",children:t.jsxs("div",{children:[t.jsxs("h1",{className:"feed-title",children:["AI Conference ",t.jsx("em",{children:"Deadlines"})]}),t.jsx("div",{className:"feed-subtitle",children:"Upcoming submission deadlines for major AI conferences, counting down."})]})}),t.jsxs("div",{style:{display:"flex",flexWrap:"wrap",alignItems:"center",gap:20,padding:"16px 0",borderBottom:"1px solid var(--hairline)",marginBottom:24},children:[t.jsx(E,{id:"top-tier-only",label:"Top tier only",checked:e,onChange:s}),t.jsx(E,{id:"show-past",label:"Show past conferences",checked:l,onChange:r})]}),c.length>0&&t.jsxs("div",{style:{display:"flex",flexWrap:"wrap",gap:6,marginBottom:24},children:[c.map(n=>{const u=o.has(n);return t.jsx("button",{className:"tag-chip",onClick:()=>i(n),style:{background:u?"var(--ink)":"var(--bg-subtle)",color:u?"var(--bg)":"var(--ink-soft)"},children:k(n)},n)}),o.size>0&&t.jsx("button",{className:"tag-chip",onClick:()=>h(new Set),style:{background:"transparent",color:"var(--ink-faint)"},children:"Clear ✕"})]}),t.jsx("div",{className:"sort-bar",children:t.jsx("div",{className:"results-count",children:m.isLoading?"…":`${f.length} conferences`})}),m.isLoading?t.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(320px, 1fr))",gap:16},children:Array.from({length:6}).map((n,u)=>t.jsx(W,{className:"h-44"},u))}):f.length===0?t.jsxs("div",{className:"no-results",children:["No conferences match these filters",l?".":" — try enabling “Show past conferences”."]}):t.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(320px, 1fr))",gap:16},children:f.map(n=>t.jsx(ne,{conf:n,now:d,selectedDomains:o,onToggleDomain:i,onOpen:p},n.id))}),t.jsx(ae,{conf:a,open:a!==null,onOpenChange:n=>{n||p(null)}})]})};export{he as default};
assets/{ApiDocsView-C-pEbO6K.js → ApiDocsView-x-zSamei.js} RENAMED
@@ -1,4 +1,4 @@
1
- import{ay as m,b as f,i as h,j as e}from"./index-2xE415-f.js";import{u as g}from"./useDocumentTitle-_d-BLODt.js";import{M as y}from"./index-CqH2_Dpk.js";const b={queryKey:["public-api-schema"],queryFn:()=>m("/openapi.json",{credentials:"omit"}),staleTime:5*60*1e3};function w(s,r){const n=new URLSearchParams;for(const[a,t]of Object.entries(r["x-example-parameters"]))s.includes(`{${a}}`)?s=s.replace(`{${a}}`,encodeURIComponent(String(t))):n.append(a,String(t));return`https://paperswithcode.co${s}${n.size?`?${n}`:""}`}function v(s,r){return r==="Python"?`import requests
2
 
3
  response = requests.get(${JSON.stringify(s)}, timeout=30)
4
  response.raise_for_status()
 
1
+ import{ay as m,b as f,i as h,j as e}from"./index-CqLopXcE.js";import{u as g}from"./useDocumentTitle-xBtc80OB.js";import{M as y}from"./index-C601BfBQ.js";const b={queryKey:["public-api-schema"],queryFn:()=>m("/openapi.json",{credentials:"omit"}),staleTime:5*60*1e3};function w(s,r){const n=new URLSearchParams;for(const[a,t]of Object.entries(r["x-example-parameters"]))s.includes(`{${a}}`)?s=s.replace(`{${a}}`,encodeURIComponent(String(t))):n.append(a,String(t));return`https://paperswithcode.co${s}${n.size?`?${n}`:""}`}function v(s,r){return r==="Python"?`import requests
2
 
3
  response = requests.get(${JSON.stringify(s)}, timeout=30)
4
  response.raise_for_status()
assets/{AreaSection-ixYJgExd.js → AreaSection-eDvRZ5YZ.js} RENAMED
@@ -1 +1 @@
1
- import{j as s}from"./index-2xE415-f.js";import{S as l}from"./skeleton-7Kak9gS9.js";const m=({id:t,title:a,description:e,meta:r,style:c,children:i})=>s.jsxs("section",{id:t,className:"area-section",style:c,children:[s.jsxs("div",{className:"area-section-head",children:[s.jsxs("div",{children:[s.jsx("h2",{className:"area-section-title",children:a}),e&&s.jsx("div",{className:"area-section-description",children:e})]}),s.jsx("div",{className:"area-section-meta",children:r})]}),s.jsx("div",{className:"tag-grid",children:i})]}),h=({sections:t=4,tiles:a,tileClassName:e})=>s.jsx("div",{className:"area-directory-skeleton",children:Array.from({length:t}).map((r,c)=>s.jsxs("div",{children:[s.jsx(l,{className:"h-8 w-1/3 mb-4"}),s.jsx("div",{className:"tag-grid",children:Array.from({length:a}).map((i,n)=>s.jsx(l,{className:e},n))})]},c))}),x=({areas:t})=>{const a=t.filter(r=>r.tasks.length>0),e=a.reduce((r,c)=>r+c.tasks.length,0);return e===0?null:s.jsxs("div",{className:"area-directory-footer",children:[e," tasks across ",a.length," areas."]})};export{h as A,m as a,x as b};
 
1
+ import{j as s}from"./index-CqLopXcE.js";import{S as l}from"./skeleton-g9QeRZlQ.js";const m=({id:t,title:a,description:e,meta:r,style:c,children:i})=>s.jsxs("section",{id:t,className:"area-section",style:c,children:[s.jsxs("div",{className:"area-section-head",children:[s.jsxs("div",{children:[s.jsx("h2",{className:"area-section-title",children:a}),e&&s.jsx("div",{className:"area-section-description",children:e})]}),s.jsx("div",{className:"area-section-meta",children:r})]}),s.jsx("div",{className:"tag-grid",children:i})]}),h=({sections:t=4,tiles:a,tileClassName:e})=>s.jsx("div",{className:"area-directory-skeleton",children:Array.from({length:t}).map((r,c)=>s.jsxs("div",{children:[s.jsx(l,{className:"h-8 w-1/3 mb-4"}),s.jsx("div",{className:"tag-grid",children:Array.from({length:a}).map((i,n)=>s.jsx(l,{className:e},n))})]},c))}),x=({areas:t})=>{const a=t.filter(r=>r.tasks.length>0),e=a.reduce((r,c)=>r+c.tasks.length,0);return e===0?null:s.jsxs("div",{className:"area-directory-footer",children:[e," tasks across ",a.length," areas."]})};export{h as A,m as a,x as b};
assets/{AstraForRoboticsView-D9IFRT3b.js → AstraForRoboticsView-DEi5RtZo.js} RENAMED
@@ -1 +1 @@
1
- import{w as p,i as u,j as a,L as o,B as g}from"./index-2xE415-f.js";import{b as x,u as b,c as f,P as j}from"./usePapers-Df-AyQGj.js";import{A as y,a as v}from"./alert-CMc00cqX.js";import{u as k,f as w}from"./useDocumentTitle-_d-BLODt.js";import{t as A}from"./transform-krmE0Oxv.js";import"./PaperCard-Do-fUKOE.js";import"./AuthorAvatar-D53WcphF.js";import"./SotaBadges-Cy5KKcKe.js";import"./colors-BkWRhvFI.js";import"./Icon-DQoMmS2z.js";import"./LatexTitle-CIj5wiaM.js";import"./safeExternalHref-CkBrsh84.js";import"./popover-qWW92hSh.js";import"./skeleton-7Kak9gS9.js";import"./useIntersectionObserver-BjZh7B9X.js";import"./useInfiniteQuery-Cvn4-XUc.js";const n="robotics",i="gpt-6-astra",_="https://x.com/YuXiang_IRVL/status/2100395131924840570",P=[{handle:"Frame_Robotics",author:"Frame Robotics",summary:"Real-arm control that fixes grip angle and carry height on the next try after a miss.",url:"https://x.com/Frame_Robotics/status/2099900836273090614"},{handle:"qineng_wang",author:"Qineng Wang",summary:"Dual-ALOHA spatial-constraint puzzles: unlocking interlocked parts and threading a rope through three rings.",url:"https://x.com/qineng_wang/status/2099893504658866561"},{handle:"__Rhodium__",author:"Lucas",summary:"In-context learning of the controls and the workspace, reaching the task goal in three tries.",url:"https://x.com/__Rhodium__/status/2099521054678925534"},{handle:"SuveenE",author:"Suveen Ellawela",summary:"Picking up a pipette and fitting a 5 mm tip on a MolmoAct2 real-world eval, using the free hand for a better view.",url:"https://x.com/SuveenE/status/2099448450341605672"},{handle:"cdngdev",author:"thijs",summary:"A robot arm with a paintbrush painting the Golden Gate Bridge, improving across attempts from camera feedback.",url:"https://x.com/cdngdev/status/2097339677128982873"},{handle:"IsaacSin12",author:"Isaac Sin",summary:"Zero-shot sorting of irregularly shaped blocks into cups by color.",url:"https://x.com/IsaacSin12/status/2096715382166098302"},{handle:"chooi_jeq",author:"Jay Chooi",summary:"Robocurve's robot-control comparison: 95% task completion versus 40% for Fable 5.1 at lower cost.",url:"https://x.com/chooi_jeq/status/2096064315115839904"}],R=[{handle:"Lingjun_Mao",author:"Lingjun Mao",summary:"Adapting to a new embodiment to put a cake into an air fryer through CuRobo motion-planning tool APIs.",url:"https://x.com/Lingjun_Mao/status/2100294902672462176"},{handle:"walterzhu8",author:"Wentao Zhu",summary:"A day-and-a-half autonomous run that builds and trains pen spinning on a Sharpa hand in Isaac Lab.",url:"https://x.com/walterzhu8/status/2100212420840989112"},{handle:"mishig25",author:"Mishig",summary:"Painting the Eiffel Tower in MuJoCo with an SO-101 and a brush, with the full experiment shared on Hugging Face.",url:"https://x.com/mishig25/status/2099611674793668676"},{handle:"RunpeiDong",author:"Runpei Dong",summary:"Getting a humanoid into a Tesla in MuJoCo: learning from feedback, then reusing that experience with egocentric perception.",url:"https://x.com/RunpeiDong/status/2099604536327614717"},{handle:"frankzydou",author:"Zhiyang (Frank) Dou",summary:"A LeRobot SO-101 real-world pickup from a third-person RGB camera, where the arm has to bend back to reach the pen.",url:"https://x.com/frankzydou/status/2099338127915512297"},{handle:"Parvkpr",author:"Parv Kapoor",summary:"Real-to-sim: building an interactive simulation environment from a single image or video.",url:"https://x.com/Parvkpr/status/2098847963867238597"},{handle:"z_code68632",author:"code_z",summary:"One demo per task: unscrewing a bottle cap, inserting a plug, clearing obstacles, and imitating a dance on a real robot.",url:"https://x.com/z_code68632/status/2098397364725895387"}],h=({posts:s,label:e})=>a.jsxs("div",{className:"astra-posts",children:[a.jsx("div",{className:"astra-posts-label",children:e}),a.jsx("ul",{children:s.map(t=>a.jsxs("li",{children:[a.jsxs("a",{href:t.url,target:"_blank",rel:"noreferrer",children:["@",t.handle]}),a.jsxs("span",{className:"astra-post-author",children:[" ",t.author]}),a.jsxs("span",{className:"astra-post-summary",children:[" — ",t.summary]})]},t.url))})]}),B=()=>{var l,c;const s=x(),e=b(p.list({task:n,method:i,...s.filters}),r=>g.list({...s.filters,task:n,method:i,page:r,page_size:12}));k(w("GPT-6 Astra for Robotics"));const t=u.useMemo(()=>{var r;return(((r=e.data)==null?void 0:r.pages)??[]).flatMap(d=>d.results.map(A))},[e.data]),m=((c=(l=e.data)==null?void 0:l.pages[0])==null?void 0:c.count)??0;return a.jsxs("div",{className:"page",children:[a.jsxs("nav",{className:"breadcrumb","aria-label":"Breadcrumb",children:[a.jsx(o,{to:"/",children:"Home"}),a.jsx("span",{children:" / "}),a.jsx("span",{children:"GPT-6 Astra for Robotics"})]}),a.jsx("header",{className:"feed-header",children:a.jsxs("div",{children:[a.jsx("div",{className:"astra-eyebrow",children:"Collection"}),a.jsxs("h1",{className:"feed-title",children:["GPT-6 Astra ",a.jsx("em",{children:"for Robotics"})]}),a.jsx("div",{className:"feed-subtitle",children:"Papers, technical reports, and evaluations that put OpenAI’s frontier model in control of real and simulated robots."}),a.jsxs("p",{className:"astra-lede",children:["The GPT-6 Astra launch never mentioned robots, yet within days the model was driving arms, hands, and humanoids. As"," ",a.jsx("a",{href:_,target:"_blank",rel:"noreferrer",children:"Yu Xiang"})," ","framed it, the work splits into two families: Astra acting as the robot policy itself, and Astra acting as an agent that orchestrates everything else."]})]})}),a.jsxs("section",{className:"astra-approaches","aria-label":"How GPT-6 Astra is used for robots",children:[a.jsxs("article",{className:"astra-approach",children:[a.jsx("div",{className:"astra-approach-num",children:"01 / Robot policy"}),a.jsx("h2",{children:"Astra as the policy, like a VLA"}),a.jsx("p",{children:"The model looks at camera frames and robot state and directly emits actions: end-effector poses, joint targets, or gripper commands, closing the control loop step by step with no task-specific training."}),a.jsx(h,{posts:P,label:"Seen on X"})]}),a.jsxs("article",{className:"astra-approach",children:[a.jsx("div",{className:"astra-approach-num",children:"02 / Agent"}),a.jsx("h2",{children:"Astra as the agent"}),a.jsx("p",{children:"The model reasons about the scene, writes and runs code, calls planners and tools, or delegates low-level motion to pretrained policies such as VLAs, and keeps the robot on task over long horizons."}),a.jsx(h,{posts:R,label:"Seen on X"})]})]}),a.jsxs("p",{className:"astra-note",children:["Listing is automatic: any paper tagged with both the"," ",a.jsx(o,{to:`/tasks/${n}`,children:"Robotics"})," task and the"," ",a.jsx(o,{to:`/methods/${i}`,children:"GPT-6 Astra"})," method appears here. Missing a report or preprint?"," ",a.jsx(o,{to:"/submit",children:"Submit it"}),"."]}),a.jsxs("div",{className:"task-section-head",style:{marginTop:36},children:[a.jsx("div",{className:"task-section-eyebrow",children:"Top trending · sort below"}),a.jsxs("div",{className:"task-section-title",children:["Papers ",a.jsxs("span",{className:"meta",children:["[",m.toLocaleString(),"]"]})]})]}),a.jsx(f,{feed:s,showDateFilter:!1}),e.error?a.jsx(y,{variant:"destructive",children:a.jsx(v,{children:"Failed to load the collection. Please try again."})}):a.jsx(j,{query:e,cards:t,empty:"No papers match this selection yet."})]})};export{B as default};
 
1
+ import{w as p,i as u,j as a,L as o,B as g}from"./index-CqLopXcE.js";import{b as x,u as b,c as f,P as j}from"./usePapers-CLqxSGhP.js";import{A as y,a as v}from"./alert-C8kkxn4G.js";import{u as k,f as w}from"./useDocumentTitle-xBtc80OB.js";import{t as A}from"./transform-BwK-yMDY.js";import"./PaperCard-CpWKB_q0.js";import"./AuthorAvatar-RLVSdcTr.js";import"./SotaBadges-CmYGMLyy.js";import"./colors-BkWRhvFI.js";import"./Icon-BTX00T3U.js";import"./LatexTitle-C0en22SO.js";import"./safeExternalHref-CkBrsh84.js";import"./popover-CuCcJ8cK.js";import"./skeleton-g9QeRZlQ.js";import"./useIntersectionObserver-CvTvi8t8.js";import"./useInfiniteQuery-Dlybgr8f.js";const n="robotics",i="gpt-6-astra",_="https://x.com/YuXiang_IRVL/status/2100395131924840570",P=[{handle:"Frame_Robotics",author:"Frame Robotics",summary:"Real-arm control that fixes grip angle and carry height on the next try after a miss.",url:"https://x.com/Frame_Robotics/status/2099900836273090614"},{handle:"qineng_wang",author:"Qineng Wang",summary:"Dual-ALOHA spatial-constraint puzzles: unlocking interlocked parts and threading a rope through three rings.",url:"https://x.com/qineng_wang/status/2099893504658866561"},{handle:"__Rhodium__",author:"Lucas",summary:"In-context learning of the controls and the workspace, reaching the task goal in three tries.",url:"https://x.com/__Rhodium__/status/2099521054678925534"},{handle:"SuveenE",author:"Suveen Ellawela",summary:"Picking up a pipette and fitting a 5 mm tip on a MolmoAct2 real-world eval, using the free hand for a better view.",url:"https://x.com/SuveenE/status/2099448450341605672"},{handle:"cdngdev",author:"thijs",summary:"A robot arm with a paintbrush painting the Golden Gate Bridge, improving across attempts from camera feedback.",url:"https://x.com/cdngdev/status/2097339677128982873"},{handle:"IsaacSin12",author:"Isaac Sin",summary:"Zero-shot sorting of irregularly shaped blocks into cups by color.",url:"https://x.com/IsaacSin12/status/2096715382166098302"},{handle:"chooi_jeq",author:"Jay Chooi",summary:"Robocurve's robot-control comparison: 95% task completion versus 40% for Fable 5.1 at lower cost.",url:"https://x.com/chooi_jeq/status/2096064315115839904"}],R=[{handle:"Lingjun_Mao",author:"Lingjun Mao",summary:"Adapting to a new embodiment to put a cake into an air fryer through CuRobo motion-planning tool APIs.",url:"https://x.com/Lingjun_Mao/status/2100294902672462176"},{handle:"walterzhu8",author:"Wentao Zhu",summary:"A day-and-a-half autonomous run that builds and trains pen spinning on a Sharpa hand in Isaac Lab.",url:"https://x.com/walterzhu8/status/2100212420840989112"},{handle:"mishig25",author:"Mishig",summary:"Painting the Eiffel Tower in MuJoCo with an SO-101 and a brush, with the full experiment shared on Hugging Face.",url:"https://x.com/mishig25/status/2099611674793668676"},{handle:"RunpeiDong",author:"Runpei Dong",summary:"Getting a humanoid into a Tesla in MuJoCo: learning from feedback, then reusing that experience with egocentric perception.",url:"https://x.com/RunpeiDong/status/2099604536327614717"},{handle:"frankzydou",author:"Zhiyang (Frank) Dou",summary:"A LeRobot SO-101 real-world pickup from a third-person RGB camera, where the arm has to bend back to reach the pen.",url:"https://x.com/frankzydou/status/2099338127915512297"},{handle:"Parvkpr",author:"Parv Kapoor",summary:"Real-to-sim: building an interactive simulation environment from a single image or video.",url:"https://x.com/Parvkpr/status/2098847963867238597"},{handle:"z_code68632",author:"code_z",summary:"One demo per task: unscrewing a bottle cap, inserting a plug, clearing obstacles, and imitating a dance on a real robot.",url:"https://x.com/z_code68632/status/2098397364725895387"}],h=({posts:s,label:e})=>a.jsxs("div",{className:"astra-posts",children:[a.jsx("div",{className:"astra-posts-label",children:e}),a.jsx("ul",{children:s.map(t=>a.jsxs("li",{children:[a.jsxs("a",{href:t.url,target:"_blank",rel:"noreferrer",children:["@",t.handle]}),a.jsxs("span",{className:"astra-post-author",children:[" ",t.author]}),a.jsxs("span",{className:"astra-post-summary",children:[" — ",t.summary]})]},t.url))})]}),B=()=>{var l,c;const s=x(),e=b(p.list({task:n,method:i,...s.filters}),r=>g.list({...s.filters,task:n,method:i,page:r,page_size:12}));k(w("GPT-6 Astra for Robotics"));const t=u.useMemo(()=>{var r;return(((r=e.data)==null?void 0:r.pages)??[]).flatMap(d=>d.results.map(A))},[e.data]),m=((c=(l=e.data)==null?void 0:l.pages[0])==null?void 0:c.count)??0;return a.jsxs("div",{className:"page",children:[a.jsxs("nav",{className:"breadcrumb","aria-label":"Breadcrumb",children:[a.jsx(o,{to:"/",children:"Home"}),a.jsx("span",{children:" / "}),a.jsx("span",{children:"GPT-6 Astra for Robotics"})]}),a.jsx("header",{className:"feed-header",children:a.jsxs("div",{children:[a.jsx("div",{className:"astra-eyebrow",children:"Collection"}),a.jsxs("h1",{className:"feed-title",children:["GPT-6 Astra ",a.jsx("em",{children:"for Robotics"})]}),a.jsx("div",{className:"feed-subtitle",children:"Papers, technical reports, and evaluations that put OpenAI’s frontier model in control of real and simulated robots."}),a.jsxs("p",{className:"astra-lede",children:["The GPT-6 Astra launch never mentioned robots, yet within days the model was driving arms, hands, and humanoids. As"," ",a.jsx("a",{href:_,target:"_blank",rel:"noreferrer",children:"Yu Xiang"})," ","framed it, the work splits into two families: Astra acting as the robot policy itself, and Astra acting as an agent that orchestrates everything else."]})]})}),a.jsxs("section",{className:"astra-approaches","aria-label":"How GPT-6 Astra is used for robots",children:[a.jsxs("article",{className:"astra-approach",children:[a.jsx("div",{className:"astra-approach-num",children:"01 / Robot policy"}),a.jsx("h2",{children:"Astra as the policy, like a VLA"}),a.jsx("p",{children:"The model looks at camera frames and robot state and directly emits actions: end-effector poses, joint targets, or gripper commands, closing the control loop step by step with no task-specific training."}),a.jsx(h,{posts:P,label:"Seen on X"})]}),a.jsxs("article",{className:"astra-approach",children:[a.jsx("div",{className:"astra-approach-num",children:"02 / Agent"}),a.jsx("h2",{children:"Astra as the agent"}),a.jsx("p",{children:"The model reasons about the scene, writes and runs code, calls planners and tools, or delegates low-level motion to pretrained policies such as VLAs, and keeps the robot on task over long horizons."}),a.jsx(h,{posts:R,label:"Seen on X"})]})]}),a.jsxs("p",{className:"astra-note",children:["Listing is automatic: any paper tagged with both the"," ",a.jsx(o,{to:`/tasks/${n}`,children:"Robotics"})," task and the"," ",a.jsx(o,{to:`/methods/${i}`,children:"GPT-6 Astra"})," method appears here. Missing a report or preprint?"," ",a.jsx(o,{to:"/submit",children:"Submit it"}),"."]}),a.jsxs("div",{className:"task-section-head",style:{marginTop:36},children:[a.jsx("div",{className:"task-section-eyebrow",children:"Top trending · sort below"}),a.jsxs("div",{className:"task-section-title",children:["Papers ",a.jsxs("span",{className:"meta",children:["[",m.toLocaleString(),"]"]})]})]}),a.jsx(f,{feed:s,showDateFilter:!1}),e.error?a.jsx(y,{variant:"destructive",children:a.jsx(v,{children:"Failed to load the collection. Please try again."})}):a.jsx(j,{query:e,cards:t,empty:"No papers match this selection yet."})]})};export{B as default};
assets/{AuthorAvatar-D53WcphF.js → AuthorAvatar-RLVSdcTr.js} RENAMED
@@ -1 +1 @@
1
- import{i as c,j as r}from"./index-2xE415-f.js";const p=a=>a!=null&&a.startsWith("https://")&&!a.startsWith("https://huggingface.co/avatars/")?a:null,h=({url:a,className:o,href:t,label:n})=>{const[i,l]=c.useState(!1),s=i?null:p(a);if(!s)return null;const e=r.jsx("img",{className:`author-avatar-base ${o}`,src:s,alt:"",loading:"lazy",onError:()=>l(!0)});return t?r.jsx("a",{href:t,target:"_blank",rel:"noopener noreferrer","aria-label":n,children:e}):e};export{h as A};
 
1
+ import{i as c,j as r}from"./index-CqLopXcE.js";const p=a=>a!=null&&a.startsWith("https://")&&!a.startsWith("https://huggingface.co/avatars/")?a:null,h=({url:a,className:o,href:t,label:n})=>{const[i,l]=c.useState(!1),s=i?null:p(a);if(!s)return null;const e=r.jsx("img",{className:`author-avatar-base ${o}`,src:s,alt:"",loading:"lazy",onError:()=>l(!0)});return t?r.jsx("a",{href:t,target:"_blank",rel:"noopener noreferrer","aria-label":n,children:e}):e};export{h as A};
assets/{AuthorDetailView-CGfZLBuD.js → AuthorDetailView-DL-uye_I.js} RENAMED
@@ -1 +1 @@
1
- import{u as b,j as a,b as N,w as v,i as F,m as y,aN as A,L as P,M as k,B as $}from"./index-2xE415-f.js";import{A as S}from"./AuthorAvatar-D53WcphF.js";import{b as w,u as L,c as R,P as T}from"./usePapers-Df-AyQGj.js";import{R as z}from"./ResearchFollowButton-ktN3oGoK.js";import{A as C,a as H}from"./alert-CMc00cqX.js";import{S as B}from"./skeleton-7Kak9gS9.js";import{t as D}from"./transform-krmE0Oxv.js";import f from"./NotFound-BLAjrkTN.js";import{u as M}from"./useDocumentTitle-_d-BLODt.js";import{e as Q}from"./pageTitles-CFPKZULe.js";import"./PaperCard-Do-fUKOE.js";import"./SotaBadges-Cy5KKcKe.js";import"./colors-BkWRhvFI.js";import"./Icon-DQoMmS2z.js";import"./LatexTitle-CIj5wiaM.js";import"./safeExternalHref-CkBrsh84.js";import"./popover-qWW92hSh.js";import"./useIntersectionObserver-BjZh7B9X.js";import"./useInfiniteQuery-Cvn4-XUc.js";import"./researchTopic-elGDd7wA.js";import"./useMutation-BcnLcaMd.js";import"./plus-C20t97Ow.js";const E=({authorId:r})=>{var n,i,l,c,p,d,h,u,m;const o=w(),{searchParams:g}=o,e=N(k.author(r));M(((n=e.data)==null?void 0:n.full_name)&&Q(e.data.full_name));const s=L(v.list({author:r,...o.filters}),t=>$.list({...o.filters,author:r,page:t,page_size:12})),x=F.useMemo(()=>{var t;return(((t=s.data)==null?void 0:t.pages)??[]).flatMap(_=>_.results.map(D))},[s.data]),j=((l=(i=s.data)==null?void 0:i.pages[0])==null?void 0:l.count)??0;if(y(e.error))return a.jsx(f,{});if((c=e.data)!=null&&c.organization_slug){const t=g.toString();return a.jsx(A,{to:`/orgs/${e.data.organization_slug}${t?`?${t}`:""}`,replace:!0})}return a.jsxs("div",{className:"page",children:[a.jsxs("nav",{className:"breadcrumb","aria-label":"Breadcrumb",children:[a.jsx(P,{to:"/",children:"Home"}),a.jsx("span",{children:" / "}),a.jsx("span",{children:"Authors"}),a.jsx("span",{children:" / "}),a.jsx("span",{children:((p=e.data)==null?void 0:p.full_name)??r})]}),a.jsxs("header",{className:"author-hero",children:[a.jsx("div",{className:"organizations-eyebrow",children:"AUTHOR"}),a.jsxs("div",{className:"author-hero-title",children:[(d=e.data)!=null&&d.photo?a.jsxs("figure",{className:"author-photo",children:[a.jsx("img",{className:"author-avatar-base author-avatar",src:e.data.photo.url,alt:""}),a.jsxs("figcaption",{children:["Photo:"," ",a.jsx("a",{href:e.data.photo.source_url,target:"_blank",rel:"noopener noreferrer",children:e.data.photo.credit}),", ",e.data.photo.license_url?a.jsx("a",{href:e.data.photo.license_url,target:"_blank",rel:"noopener noreferrer",children:e.data.photo.license}):e.data.photo.license]})]}):((h=e.data)==null?void 0:h.hf_username)&&a.jsx(S,{className:"author-avatar",url:e.data.hf_avatar_url,href:`https://huggingface.co/${e.data.hf_username}`,label:`@${e.data.hf_username} on Hugging Face`}),a.jsx("h1",{className:"feed-title",children:((u=e.data)==null?void 0:u.full_name)??a.jsx(B,{className:"h-12 w-64 inline-block"})})]}),e.data&&a.jsxs("div",{className:"feed-subtitle",children:[e.data.paper_count.toLocaleString()," ",e.data.paper_count===1?"paper":"papers",e.data.hf_username&&a.jsxs(a.Fragment,{children:[" · ",a.jsxs("a",{href:`https://huggingface.co/${e.data.hf_username}`,target:"_blank",rel:"noopener noreferrer",children:["@",e.data.hf_username," on Hugging Face ↗"]})]}),e.data.google_scholar_id&&a.jsxs(a.Fragment,{children:[" · ",a.jsx("a",{href:`https://scholar.google.com/citations?user=${encodeURIComponent(e.data.google_scholar_id)}`,target:"_blank",rel:"noopener noreferrer",children:"Google Scholar ↗"})]})]}),e.data&&a.jsx(z,{kind:"author",entityId:e.data.id})]}),a.jsx(R,{feed:o,style:{alignItems:"center",gap:16},children:a.jsxs("div",{className:"results-count",children:[j.toLocaleString()," papers"]})}),s.error?a.jsx(C,{variant:"destructive",children:a.jsxs(H,{children:["Failed to load papers."," ",a.jsx("button",{type:"button",onClick:()=>void s.refetch(),children:"Try again"})]})}):a.jsx(T,{query:s,cards:x,empty:((m=e.data)==null?void 0:m.paper_count)===0?"No public papers are available.":"No papers found for this selection."})]})},pa=()=>{const{authorId:r}=b();return r?a.jsx(E,{authorId:r},r):a.jsx(f,{})};export{pa as default};
 
1
+ import{u as b,j as a,b as N,w as v,i as F,m as y,aN as A,L as P,M as k,B as $}from"./index-CqLopXcE.js";import{A as S}from"./AuthorAvatar-RLVSdcTr.js";import{b as w,u as L,c as R,P as T}from"./usePapers-CLqxSGhP.js";import{R as z}from"./ResearchFollowButton-lWVVvGzA.js";import{A as C,a as H}from"./alert-C8kkxn4G.js";import{S as B}from"./skeleton-g9QeRZlQ.js";import{t as D}from"./transform-BwK-yMDY.js";import f from"./NotFound-Dm23aroU.js";import{u as M}from"./useDocumentTitle-xBtc80OB.js";import{e as Q}from"./pageTitles-BDUuOvJf.js";import"./PaperCard-CpWKB_q0.js";import"./SotaBadges-CmYGMLyy.js";import"./colors-BkWRhvFI.js";import"./Icon-BTX00T3U.js";import"./LatexTitle-C0en22SO.js";import"./safeExternalHref-CkBrsh84.js";import"./popover-CuCcJ8cK.js";import"./useIntersectionObserver-CvTvi8t8.js";import"./useInfiniteQuery-Dlybgr8f.js";import"./researchTopic-BNud5CMS.js";import"./useMutation-DBnvCG24.js";import"./plus-D-JcHoGj.js";const E=({authorId:r})=>{var n,i,l,c,p,d,h,u,m;const o=w(),{searchParams:g}=o,e=N(k.author(r));M(((n=e.data)==null?void 0:n.full_name)&&Q(e.data.full_name));const s=L(v.list({author:r,...o.filters}),t=>$.list({...o.filters,author:r,page:t,page_size:12})),x=F.useMemo(()=>{var t;return(((t=s.data)==null?void 0:t.pages)??[]).flatMap(_=>_.results.map(D))},[s.data]),j=((l=(i=s.data)==null?void 0:i.pages[0])==null?void 0:l.count)??0;if(y(e.error))return a.jsx(f,{});if((c=e.data)!=null&&c.organization_slug){const t=g.toString();return a.jsx(A,{to:`/orgs/${e.data.organization_slug}${t?`?${t}`:""}`,replace:!0})}return a.jsxs("div",{className:"page",children:[a.jsxs("nav",{className:"breadcrumb","aria-label":"Breadcrumb",children:[a.jsx(P,{to:"/",children:"Home"}),a.jsx("span",{children:" / "}),a.jsx("span",{children:"Authors"}),a.jsx("span",{children:" / "}),a.jsx("span",{children:((p=e.data)==null?void 0:p.full_name)??r})]}),a.jsxs("header",{className:"author-hero",children:[a.jsx("div",{className:"organizations-eyebrow",children:"AUTHOR"}),a.jsxs("div",{className:"author-hero-title",children:[(d=e.data)!=null&&d.photo?a.jsxs("figure",{className:"author-photo",children:[a.jsx("img",{className:"author-avatar-base author-avatar",src:e.data.photo.url,alt:""}),a.jsxs("figcaption",{children:["Photo:"," ",a.jsx("a",{href:e.data.photo.source_url,target:"_blank",rel:"noopener noreferrer",children:e.data.photo.credit}),", ",e.data.photo.license_url?a.jsx("a",{href:e.data.photo.license_url,target:"_blank",rel:"noopener noreferrer",children:e.data.photo.license}):e.data.photo.license]})]}):((h=e.data)==null?void 0:h.hf_username)&&a.jsx(S,{className:"author-avatar",url:e.data.hf_avatar_url,href:`https://huggingface.co/${e.data.hf_username}`,label:`@${e.data.hf_username} on Hugging Face`}),a.jsx("h1",{className:"feed-title",children:((u=e.data)==null?void 0:u.full_name)??a.jsx(B,{className:"h-12 w-64 inline-block"})})]}),e.data&&a.jsxs("div",{className:"feed-subtitle",children:[e.data.paper_count.toLocaleString()," ",e.data.paper_count===1?"paper":"papers",e.data.hf_username&&a.jsxs(a.Fragment,{children:[" · ",a.jsxs("a",{href:`https://huggingface.co/${e.data.hf_username}`,target:"_blank",rel:"noopener noreferrer",children:["@",e.data.hf_username," on Hugging Face ↗"]})]}),e.data.google_scholar_id&&a.jsxs(a.Fragment,{children:[" · ",a.jsx("a",{href:`https://scholar.google.com/citations?user=${encodeURIComponent(e.data.google_scholar_id)}`,target:"_blank",rel:"noopener noreferrer",children:"Google Scholar ↗"})]})]}),e.data&&a.jsx(z,{kind:"author",entityId:e.data.id})]}),a.jsx(R,{feed:o,style:{alignItems:"center",gap:16},children:a.jsxs("div",{className:"results-count",children:[j.toLocaleString()," papers"]})}),s.error?a.jsx(C,{variant:"destructive",children:a.jsxs(H,{children:["Failed to load papers."," ",a.jsx("button",{type:"button",onClick:()=>void s.refetch(),children:"Try again"})]})}):a.jsx(T,{query:s,cards:x,empty:((m=e.data)==null?void 0:m.paper_count)===0?"No public papers are available.":"No papers found for this selection."})]})},pa=()=>{const{authorId:r}=b();return r?a.jsx(E,{authorId:r},r):a.jsx(f,{})};export{pa as default};
assets/{AuthorizePaperEditView-Cf7lN2tR.js → AuthorizePaperEditView-C33y_gny.js} RENAMED
@@ -1 +1 @@
1
- import{u as o,a as u,b as d,p as l,j as e,L as c,H as p,c as h}from"./index-2xE415-f.js";import{u as g}from"./useMutation-BcnLcaMd.js";import{B as x}from"./button-Ow7LPhoW.js";function f(){const{authorizationId:i=""}=o(),{user:a,isLoading:n}=u(),t=d({...l.authorization(i),retry:!1}),r=g({mutationFn:()=>h.approve(i)}),s=t.data;return e.jsxs("section",{className:"mx-auto max-w-xl space-y-5 px-6 py-12",children:[e.jsx("h1",{className:"text-2xl font-semibold",children:"Authorize your agent to edit a paper"}),(t.isLoading||n)&&e.jsx("p",{children:"Loading authorization…"}),t.error&&e.jsx("p",{role:"alert",children:t.error.message}),s&&e.jsxs(e.Fragment,{children:[e.jsx(c,{className:"underline",to:`/paper/${s.paper_id}`,children:s.title}),e.jsxs("p",{children:["Check that your CLI shows this code: ",e.jsx("strong",{className:"font-mono",children:s.user_code})]}),e.jsx("p",{children:"Only approve a request you started. Your agent will be able to publish changes to this paper’s links, tags, and evaluation results for one hour, without further approval."}),e.jsx("p",{children:"Edits appear publicly under your Hugging Face username. You can edit up to 20 distinct papers per UTC day. Evaluation deletion and changes to shared benchmark definitions require an administrator."}),r.isSuccess||s.approved?e.jsx("p",{role:"status",children:"Access approved. Return to your CLI to continue."}):a?e.jsxs(e.Fragment,{children:[e.jsxs("p",{children:["Signed in as ",e.jsxs("strong",{children:["@",a.username]})]}),e.jsx(x,{disabled:r.isPending||!a.can_directly_edit_catalog,onClick:()=>r.mutate(),children:r.isPending?"Authorizing…":"Authorize for one hour"}),!a.can_directly_edit_catalog&&e.jsx("p",{children:"Direct editing is unavailable for this session."})]}):e.jsx(p,{returnTo:`/authorize-paper-edit/${i}`,label:"Sign in with Hugging Face"}),r.error&&e.jsx("p",{role:"alert",children:r.error.message})]})]})}export{f as default};
 
1
+ import{u as o,a as u,b as d,p as l,j as e,L as c,H as p,c as h}from"./index-CqLopXcE.js";import{u as g}from"./useMutation-DBnvCG24.js";import{B as x}from"./button-DUkH0QIr.js";function f(){const{authorizationId:i=""}=o(),{user:a,isLoading:n}=u(),t=d({...l.authorization(i),retry:!1}),r=g({mutationFn:()=>h.approve(i)}),s=t.data;return e.jsxs("section",{className:"mx-auto max-w-xl space-y-5 px-6 py-12",children:[e.jsx("h1",{className:"text-2xl font-semibold",children:"Authorize your agent to edit a paper"}),(t.isLoading||n)&&e.jsx("p",{children:"Loading authorization…"}),t.error&&e.jsx("p",{role:"alert",children:t.error.message}),s&&e.jsxs(e.Fragment,{children:[e.jsx(c,{className:"underline",to:`/paper/${s.paper_id}`,children:s.title}),e.jsxs("p",{children:["Check that your CLI shows this code: ",e.jsx("strong",{className:"font-mono",children:s.user_code})]}),e.jsx("p",{children:"Only approve a request you started. Your agent will be able to publish changes to this paper’s links, tags, and evaluation results for one hour, without further approval."}),e.jsx("p",{children:"Edits appear publicly under your Hugging Face username. You can edit up to 20 distinct papers per UTC day. Evaluation deletion and changes to shared benchmark definitions require an administrator."}),r.isSuccess||s.approved?e.jsx("p",{role:"status",children:"Access approved. Return to your CLI to continue."}):a?e.jsxs(e.Fragment,{children:[e.jsxs("p",{children:["Signed in as ",e.jsxs("strong",{children:["@",a.username]})]}),e.jsx(x,{disabled:r.isPending||!a.can_directly_edit_catalog,onClick:()=>r.mutate(),children:r.isPending?"Authorizing…":"Authorize for one hour"}),!a.can_directly_edit_catalog&&e.jsx("p",{children:"Direct editing is unavailable for this session."})]}):e.jsx(p,{returnTo:`/authorize-paper-edit/${i}`,label:"Sign in with Hugging Face"}),r.error&&e.jsx("p",{role:"alert",children:r.error.message})]})]})}export{f as default};
assets/{AutonomousOperations-VQEk1CYo.js → AutonomousOperations-Bnh5-stU.js} RENAMED
@@ -1 +1 @@
1
- import{o as R,i as d,b as B,$ as A,j as e,L as q,ae as g}from"./index-2xE415-f.js";import{u as Q}from"./useMutation-BcnLcaMd.js";import{C as i,e as n,S as H,b as l,c as r,t as E,f as m}from"./CronDashboard-CFuRWi5s.js";import{B as I}from"./badge-C3csz_-c.js";import{B as x}from"./button-Ow7LPhoW.js";import{I as h}from"./input-BMQ_TuLd.js";import{A as P}from"./activity-D_eSbyYq.js";import{A as $}from"./arrow-left-BHT-3INU.js";const u={submissions:"Submission review",curation:"Scheduled curation",cron_health:"CRON health",chat_reliability:"Chat reliability"},S={healthy:"healthy",degraded:"degraded",repairing:"running","rolled-back":"broken",manual:"degraded"},V=()=>{var C;const M=R(),[j,T]=d.useState(""),[p,_]=d.useState(""),[f,v]=d.useState({}),[b,N]=d.useState(""),c=B({...A.autonomousOperations(),refetchInterval:3e4,retry:!1}),t=Q({mutationFn:s=>s(),onSuccess:s=>{M.setQueryData(A.autonomousOperations().queryKey,s),_(""),v({}),N("")}}),a=c.data,y=t.error instanceof Error?t.error.message:null;if(c.isLoading)return e.jsx("div",{className:"page","aria-busy":"true",children:"Loading autonomous operations…"});if(c.error||!a)return e.jsxs("div",{className:"page",children:[e.jsx("h1",{children:"Autonomous operations unavailable"}),e.jsx("p",{children:c.error instanceof Error?c.error.message:"No status was returned."})]});const O=()=>t.mutate(()=>g.setAutonomousManualMode(!a.manual_mode,a.revision,p)),k=(s,o)=>t.mutate(()=>g.setAutonomousOperator(s,o,a.revision,f[s]??"")),w=()=>{var o;const s=((o=a.baseline)==null?void 0:o.revision)??0;t.mutate(()=>g.qualifyAutonomousChatBaseline(j,s,b))};return e.jsx("div",{className:"cron-dashboard","data-shadcn":!0,children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8 space-y-6",children:[e.jsxs("div",{className:"flex items-center justify-between gap-4 flex-wrap",children:[e.jsxs("div",{children:[e.jsxs("h1",{className:"text-3xl font-bold flex items-center gap-3",children:[e.jsx(P,{className:"h-8 w-8"}),"Autonomous operations"]}),e.jsx("p",{className:"mt-2 cron-muted",children:"Content-free supervision, remote controls, and bounded audit history."})]}),e.jsx(x,{asChild:!0,variant:"outline",children:e.jsxs(q,{to:"/admin-dashboard",children:[e.jsx($,{className:"h-4 w-4 mr-2"}),"Admin dashboard"]})})]}),a.manual_mode&&e.jsx(i,{className:"cron-status--degraded",role:"status",children:e.jsxs(n,{className:"pt-6 flex gap-3",children:[e.jsx(H,{className:"h-5 w-5"}),e.jsxs("div",{children:[e.jsx("strong",{children:"Manual mode is enabled."}),e.jsxs("p",{children:[a.monitoring_active?"Monitoring remains active":"Monitoring is not currently verified","; autonomous callbacks, retries, deployments, and data mutations fail closed."]})]})]})}),e.jsxs("div",{className:"grid md:grid-cols-4 gap-4",children:[e.jsxs(i,{className:E(S[a.display_state]),children:[e.jsx(l,{children:e.jsx(r,{className:"text-sm",children:"Overall state"})}),e.jsxs(n,{children:[e.jsx("div",{className:"text-2xl font-bold capitalize",children:a.display_state}),e.jsxs("p",{className:"text-sm",children:["Monitoring ",a.monitoring_active?"active":"inactive"]})]})]}),e.jsxs(i,{children:[e.jsx(l,{children:e.jsx(r,{className:"text-sm",children:"Codex cost"})}),e.jsxs(n,{children:[e.jsxs("div",{className:"text-2xl font-bold",children:["$",a.costs.total_usd]}),e.jsxs("p",{className:"text-sm",children:[a.costs.input_tokens+a.costs.output_tokens," tokens"]})]})]}),e.jsxs(i,{children:[e.jsx(l,{children:e.jsx(r,{className:"text-sm",children:"Repair lease"})}),e.jsxs(n,{children:[e.jsx("div",{className:"text-lg font-bold",children:a.active_lease?a.active_lease.owner_operator:"Available"}),e.jsx("p",{className:"text-sm",children:a.active_lease?`Expires ${m(a.active_lease.expires_at)}`:"No active source repair"})]})]}),e.jsxs(i,{children:[e.jsx(l,{children:e.jsx(r,{className:"text-sm",children:"Global control"})}),e.jsxs(n,{className:"space-y-2",children:[e.jsx(h,{"aria-label":"Manual mode confirmation",value:p,onChange:s=>_(s.target.value),placeholder:"Type SET_MANUAL_MODE"}),e.jsx(x,{disabled:t.isPending||p!=="SET_MANUAL_MODE",onClick:O,children:a.manual_mode?"Leave manual mode":"Enable manual mode"})]})]})]}),e.jsx("div",{className:"grid md:grid-cols-4 gap-4",children:a.operators.map(s=>e.jsxs(i,{className:E(S[s.status]),children:[e.jsx(l,{children:e.jsxs(r,{className:"flex justify-between gap-2",children:[e.jsx("span",{children:u[s.operator]}),e.jsx(I,{children:s.status})]})}),e.jsxs(n,{className:"space-y-3",children:[e.jsxs("p",{children:[s.enabled?"Mutation enabled":"Mutation disabled"," · monitoring ",s.monitoring_active?"active":"unverified"]}),e.jsxs("p",{className:"text-sm",children:["Next scheduled run: ",s.next_scheduled_run?m(s.next_scheduled_run):"not scheduled"]}),e.jsx(h,{"aria-label":`${u[s.operator]} confirmation`,value:f[s.operator]??"",onChange:o=>v(L=>({...L,[s.operator]:o.target.value})),placeholder:"Type SET_OPERATOR_STATE"}),e.jsx(x,{disabled:t.isPending||a.manual_mode&&!s.enabled||f[s.operator]!=="SET_OPERATOR_STATE",onClick:()=>k(s.operator,!s.enabled),children:s.enabled?"Disable":"Enable"})]})]},s.operator))}),e.jsxs(i,{children:[e.jsx(l,{children:e.jsx(r,{children:"Qualified scalable-chat baseline"})}),e.jsxs(n,{className:"space-y-3",children:[e.jsx("p",{className:"font-mono break-all",children:((C=a.baseline)==null?void 0:C.sha)??"No baseline qualified"}),a.baseline&&e.jsxs("p",{className:"text-sm",children:["Revision ",a.baseline.revision," · ",a.baseline.qualified_by," · ",m(a.baseline.qualified_at)]}),e.jsxs("div",{className:"grid md:grid-cols-[1fr_1fr_auto] gap-2",children:[e.jsx(h,{"aria-label":"Exact baseline SHA",value:j,onChange:s=>T(s.target.value),placeholder:"40-character lowercase commit SHA"}),e.jsx(h,{"aria-label":"Baseline confirmation",value:b,onChange:s=>N(s.target.value),placeholder:"Type QUALIFY_CHAT_BASELINE"}),e.jsx(x,{disabled:t.isPending||!/^[0-9a-f]{40}$/.test(j)||b!=="QUALIFY_CHAT_BASELINE",onClick:w,children:"Qualify exact SHA"})]})]})]}),e.jsxs(i,{children:[e.jsx(l,{children:e.jsx(r,{children:"Provider and fallback state"})}),e.jsx(n,{children:a.provider_states.length?e.jsx("ul",{className:"space-y-2",children:a.provider_states.map(s=>e.jsxs("li",{children:[e.jsx("strong",{children:s.environment}),": ",s.active_provider," · ",s.reason_code," · manifest ",s.manifest_revision]},s.environment))}):e.jsx("p",{children:"No provider state recorded."})})]}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[e.jsxs(i,{children:[e.jsx(l,{children:e.jsx(r,{children:"Recent runs"})}),e.jsx(n,{children:a.recent_runs.length?e.jsx("ul",{className:"space-y-2",children:a.recent_runs.map(s=>e.jsxs("li",{children:[e.jsx("strong",{children:u[s.operator]})," · ",s.status," · ",s.exit_classification," · $",s.cost_usd," · ",m(s.created_at)]},s.run_id))}):e.jsx("p",{children:"No runs recorded."})})]}),e.jsxs(i,{children:[e.jsx(l,{children:e.jsx(r,{children:"Recent actions"})}),e.jsx(n,{children:a.recent_actions.length?e.jsx("ul",{className:"space-y-2",children:a.recent_actions.map(s=>e.jsxs("li",{children:[e.jsx("strong",{children:u[s.operator]})," · ",s.capability," · ",s.reason_code," · ",s.resource_kind,"/",s.resource_identifier]},s.action_id))}):e.jsx("p",{children:"No actions recorded."})})]})]}),e.jsxs(i,{children:[e.jsx(l,{children:e.jsx(r,{children:"Hard exclusions"})}),e.jsx(n,{children:e.jsx("ul",{className:"list-disc pl-5",children:a.exclusions.map(s=>e.jsx("li",{children:s},s))})})]}),y&&e.jsxs("p",{role:"alert",children:["Control update failed: ",y,". Refresh before retrying."]})]})})};export{V as default};
 
1
+ import{o as R,i as d,b as B,$ as A,j as e,L as q,ae as g}from"./index-CqLopXcE.js";import{u as Q}from"./useMutation-DBnvCG24.js";import{C as i,e as n,S as H,b as l,c as r,t as E,f as m}from"./CronDashboard-uLEk1l8b.js";import{B as I}from"./badge-CJsdIbmG.js";import{B as x}from"./button-DUkH0QIr.js";import{I as h}from"./input-C419tHG_.js";import{A as P}from"./activity-xD0SAWlk.js";import{A as $}from"./arrow-left-CsmoZGdZ.js";const u={submissions:"Submission review",curation:"Scheduled curation",cron_health:"CRON health",chat_reliability:"Chat reliability"},S={healthy:"healthy",degraded:"degraded",repairing:"running","rolled-back":"broken",manual:"degraded"},V=()=>{var C;const M=R(),[j,T]=d.useState(""),[p,_]=d.useState(""),[f,v]=d.useState({}),[b,N]=d.useState(""),c=B({...A.autonomousOperations(),refetchInterval:3e4,retry:!1}),t=Q({mutationFn:s=>s(),onSuccess:s=>{M.setQueryData(A.autonomousOperations().queryKey,s),_(""),v({}),N("")}}),a=c.data,y=t.error instanceof Error?t.error.message:null;if(c.isLoading)return e.jsx("div",{className:"page","aria-busy":"true",children:"Loading autonomous operations…"});if(c.error||!a)return e.jsxs("div",{className:"page",children:[e.jsx("h1",{children:"Autonomous operations unavailable"}),e.jsx("p",{children:c.error instanceof Error?c.error.message:"No status was returned."})]});const O=()=>t.mutate(()=>g.setAutonomousManualMode(!a.manual_mode,a.revision,p)),k=(s,o)=>t.mutate(()=>g.setAutonomousOperator(s,o,a.revision,f[s]??"")),w=()=>{var o;const s=((o=a.baseline)==null?void 0:o.revision)??0;t.mutate(()=>g.qualifyAutonomousChatBaseline(j,s,b))};return e.jsx("div",{className:"cron-dashboard","data-shadcn":!0,children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8 space-y-6",children:[e.jsxs("div",{className:"flex items-center justify-between gap-4 flex-wrap",children:[e.jsxs("div",{children:[e.jsxs("h1",{className:"text-3xl font-bold flex items-center gap-3",children:[e.jsx(P,{className:"h-8 w-8"}),"Autonomous operations"]}),e.jsx("p",{className:"mt-2 cron-muted",children:"Content-free supervision, remote controls, and bounded audit history."})]}),e.jsx(x,{asChild:!0,variant:"outline",children:e.jsxs(q,{to:"/admin-dashboard",children:[e.jsx($,{className:"h-4 w-4 mr-2"}),"Admin dashboard"]})})]}),a.manual_mode&&e.jsx(i,{className:"cron-status--degraded",role:"status",children:e.jsxs(n,{className:"pt-6 flex gap-3",children:[e.jsx(H,{className:"h-5 w-5"}),e.jsxs("div",{children:[e.jsx("strong",{children:"Manual mode is enabled."}),e.jsxs("p",{children:[a.monitoring_active?"Monitoring remains active":"Monitoring is not currently verified","; autonomous callbacks, retries, deployments, and data mutations fail closed."]})]})]})}),e.jsxs("div",{className:"grid md:grid-cols-4 gap-4",children:[e.jsxs(i,{className:E(S[a.display_state]),children:[e.jsx(l,{children:e.jsx(r,{className:"text-sm",children:"Overall state"})}),e.jsxs(n,{children:[e.jsx("div",{className:"text-2xl font-bold capitalize",children:a.display_state}),e.jsxs("p",{className:"text-sm",children:["Monitoring ",a.monitoring_active?"active":"inactive"]})]})]}),e.jsxs(i,{children:[e.jsx(l,{children:e.jsx(r,{className:"text-sm",children:"Codex cost"})}),e.jsxs(n,{children:[e.jsxs("div",{className:"text-2xl font-bold",children:["$",a.costs.total_usd]}),e.jsxs("p",{className:"text-sm",children:[a.costs.input_tokens+a.costs.output_tokens," tokens"]})]})]}),e.jsxs(i,{children:[e.jsx(l,{children:e.jsx(r,{className:"text-sm",children:"Repair lease"})}),e.jsxs(n,{children:[e.jsx("div",{className:"text-lg font-bold",children:a.active_lease?a.active_lease.owner_operator:"Available"}),e.jsx("p",{className:"text-sm",children:a.active_lease?`Expires ${m(a.active_lease.expires_at)}`:"No active source repair"})]})]}),e.jsxs(i,{children:[e.jsx(l,{children:e.jsx(r,{className:"text-sm",children:"Global control"})}),e.jsxs(n,{className:"space-y-2",children:[e.jsx(h,{"aria-label":"Manual mode confirmation",value:p,onChange:s=>_(s.target.value),placeholder:"Type SET_MANUAL_MODE"}),e.jsx(x,{disabled:t.isPending||p!=="SET_MANUAL_MODE",onClick:O,children:a.manual_mode?"Leave manual mode":"Enable manual mode"})]})]})]}),e.jsx("div",{className:"grid md:grid-cols-4 gap-4",children:a.operators.map(s=>e.jsxs(i,{className:E(S[s.status]),children:[e.jsx(l,{children:e.jsxs(r,{className:"flex justify-between gap-2",children:[e.jsx("span",{children:u[s.operator]}),e.jsx(I,{children:s.status})]})}),e.jsxs(n,{className:"space-y-3",children:[e.jsxs("p",{children:[s.enabled?"Mutation enabled":"Mutation disabled"," · monitoring ",s.monitoring_active?"active":"unverified"]}),e.jsxs("p",{className:"text-sm",children:["Next scheduled run: ",s.next_scheduled_run?m(s.next_scheduled_run):"not scheduled"]}),e.jsx(h,{"aria-label":`${u[s.operator]} confirmation`,value:f[s.operator]??"",onChange:o=>v(L=>({...L,[s.operator]:o.target.value})),placeholder:"Type SET_OPERATOR_STATE"}),e.jsx(x,{disabled:t.isPending||a.manual_mode&&!s.enabled||f[s.operator]!=="SET_OPERATOR_STATE",onClick:()=>k(s.operator,!s.enabled),children:s.enabled?"Disable":"Enable"})]})]},s.operator))}),e.jsxs(i,{children:[e.jsx(l,{children:e.jsx(r,{children:"Qualified scalable-chat baseline"})}),e.jsxs(n,{className:"space-y-3",children:[e.jsx("p",{className:"font-mono break-all",children:((C=a.baseline)==null?void 0:C.sha)??"No baseline qualified"}),a.baseline&&e.jsxs("p",{className:"text-sm",children:["Revision ",a.baseline.revision," · ",a.baseline.qualified_by," · ",m(a.baseline.qualified_at)]}),e.jsxs("div",{className:"grid md:grid-cols-[1fr_1fr_auto] gap-2",children:[e.jsx(h,{"aria-label":"Exact baseline SHA",value:j,onChange:s=>T(s.target.value),placeholder:"40-character lowercase commit SHA"}),e.jsx(h,{"aria-label":"Baseline confirmation",value:b,onChange:s=>N(s.target.value),placeholder:"Type QUALIFY_CHAT_BASELINE"}),e.jsx(x,{disabled:t.isPending||!/^[0-9a-f]{40}$/.test(j)||b!=="QUALIFY_CHAT_BASELINE",onClick:w,children:"Qualify exact SHA"})]})]})]}),e.jsxs(i,{children:[e.jsx(l,{children:e.jsx(r,{children:"Provider and fallback state"})}),e.jsx(n,{children:a.provider_states.length?e.jsx("ul",{className:"space-y-2",children:a.provider_states.map(s=>e.jsxs("li",{children:[e.jsx("strong",{children:s.environment}),": ",s.active_provider," · ",s.reason_code," · manifest ",s.manifest_revision]},s.environment))}):e.jsx("p",{children:"No provider state recorded."})})]}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[e.jsxs(i,{children:[e.jsx(l,{children:e.jsx(r,{children:"Recent runs"})}),e.jsx(n,{children:a.recent_runs.length?e.jsx("ul",{className:"space-y-2",children:a.recent_runs.map(s=>e.jsxs("li",{children:[e.jsx("strong",{children:u[s.operator]})," · ",s.status," · ",s.exit_classification," · $",s.cost_usd," · ",m(s.created_at)]},s.run_id))}):e.jsx("p",{children:"No runs recorded."})})]}),e.jsxs(i,{children:[e.jsx(l,{children:e.jsx(r,{children:"Recent actions"})}),e.jsx(n,{children:a.recent_actions.length?e.jsx("ul",{className:"space-y-2",children:a.recent_actions.map(s=>e.jsxs("li",{children:[e.jsx("strong",{children:u[s.operator]})," · ",s.capability," · ",s.reason_code," · ",s.resource_kind,"/",s.resource_identifier]},s.action_id))}):e.jsx("p",{children:"No actions recorded."})})]})]}),e.jsxs(i,{children:[e.jsx(l,{children:e.jsx(r,{children:"Hard exclusions"})}),e.jsx(n,{children:e.jsx("ul",{className:"list-disc pl-5",children:a.exclusions.map(s=>e.jsx("li",{children:s},s))})})]}),y&&e.jsxs("p",{role:"alert",children:["Control update failed: ",y,". Refresh before retrying."]})]})})};export{V as default};
assets/{BenchmarkDetailView-tyFsDQzp.js → BenchmarkDetailView-CGtDu5Yx.js} RENAMED
@@ -1,2 +1,2 @@
1
- import{i as F,j as a,a3 as ce,L as le,n as ct,J as dt,u as mt,f as ut,b as te,K as ht,v as se}from"./index-2xE415-f.js";import{R as ft}from"./ResearchFollowButton-ktN3oGoK.js";import{u as pt}from"./preferences-BPB6rcxH.js";import{L as de}from"./LatexTitle-CIj5wiaM.js";import{C as gt,E as xt}from"./ExternalSourceEvalBadge-DVDMif98.js";import{S as Qe}from"./switch-idJDRCOy.js";import{I as bt}from"./Icon-DQoMmS2z.js";import{S as me}from"./skeleton-7Kak9gS9.js";import{B as yt}from"./BenchmarkTrendSparkline-DsB2YdnJ.js";import{s as wt}from"./safeExternalHref-CkBrsh84.js";import{s as vt}from"./slug-BpH-Nkvz.js";import jt from"./NotFound-BLAjrkTN.js";import{l as St}from"./LoadFailurePage-DvxhRUcs.js";import{u as _t}from"./useDocumentTitle-_d-BLODt.js";import{b as kt}from"./pageTitles-CFPKZULe.js";import"./researchTopic-elGDd7wA.js";import"./useMutation-BcnLcaMd.js";import"./plus-C20t97Ow.js";import"./hover-card-CZZ0A1FG.js";import"./index-Df3nFJJR.js";import"./alert-CMc00cqX.js";function oe(e){if(e==null)return null;if(typeof e=="number")return Number.isFinite(e)?e:null;const t=e.includes("±")?e.split("±")[0].trim():e.trim(),r=parseFloat(t);return Number.isFinite(r)?r:null}const Xe=[{label:"All",maxParametersExclusive:void 0},{label:"<10M",maxParametersExclusive:1e7},{label:"<100M",maxParametersExclusive:1e8},{label:"<1B",maxParametersExclusive:1e9},{label:"<3B",maxParametersExclusive:3e9},{label:"<6B",maxParametersExclusive:6e9},{label:"<12B",maxParametersExclusive:12e9},{label:"<32B",maxParametersExclusive:32e9},{label:"<128B",maxParametersExclusive:128e9},{label:"<500B",maxParametersExclusive:5e11}];function Ct(e){const t=e===null?void 0:Number(e);return Xe.some(r=>r.maxParametersExclusive===t)?t:void 0}function Et(e){return new Intl.NumberFormat("en",{notation:"compact",maximumSignificantDigits:3}).format(e)}function Nt(e){return[e.paper_id,e.task_id,e.dataset_id,e.model_name,e.harness??""].join("|")}function Rt(e){const t=new Map;for(const r of e){const s=Nt(r),n=t.get(s);if(!n){t.set(s,{...r,metrics:{...r.metrics||{}},sourceEvaluationIds:[r.id],ranksByMetric:r.best_metric&&r.best_rank!=null?{[r.best_metric]:r.best_rank}:{},parameterCount:r.num_parameters??null,hasParameterConflict:!1});continue}n.metrics={...n.metrics,...r.metrics||{}},n.sourceEvaluationIds.push(r.id),r.best_metric&&r.best_rank!=null&&(n.ranksByMetric[r.best_metric]=r.best_rank),r.num_parameters!=null&&!n.hasParameterConflict&&(n.parameterCount===null?n.parameterCount=r.num_parameters:n.parameterCount!==r.num_parameters&&(n.parameterCount=null,n.hasParameterConflict=!0))}return Array.from(t.values())}function Fe(e,t){return t===void 0?e:e.filter(r=>r.parameterCount!==null&&r.parameterCount<t)}function Pt(e,t){return t?e.id===t||e.sourceEvaluationIds.includes(t):!1}function Ie(e,t){return e.ranksByMetric[t]??e.best_rank??9999}function Mt(e){const t=Date.parse(e);return Number.isNaN(t)?"":new Date(t).toISOString().slice(0,10)}function $t(e){const t=new Map;for(const s of e)s.evaluated_on&&t.set(s.evaluated_on,(t.get(s.evaluated_on)??0)+1);const r=Array.from(t.values()).reduce((s,n)=>s+n,0);for(const[s,n]of t)if(n>=2&&n*2>r)return s;return null}function Tt(e,t){const r=e.evaluated_on;return r&&r!==t&&r!==Mt(e.updated_at)?r:e.paper_published_date||""}function Lt(e,t,r){if(e.length===0)return{points:[],sota:0,sotaModel:""};const s=$t(e),n=e.map(h=>{var j;const m=oe((j=h.metrics)==null?void 0:j[t]);return{eval:h,value:m,date:Tt(h,s)}}).filter(h=>h.value!==null&&!!h.date).sort((h,m)=>h.date.localeCompare(m.date)),i=[];let l=null;for(const h of n){const m=l==null?!0:r==="↓"?h.value<l:h.value>l;m&&(l=h.value),i.push({value:h.value,date:h.date,dateLabel:h.date.slice(0,7),modelName:h.eval.model_name||"",paperTitle:h.eval.paper_title||"",paperRouteId:h.eval.paper_arxiv_id||h.eval.paper_id||null,isSota:m})}const o=e.map(h=>{var m;return{eval:h,value:oe((m=h.metrics)==null?void 0:m[t])}}).filter(h=>h.value!==null).sort((h,m)=>r==="↓"?h.value-m.value:m.value-h.value)[0],f=(o==null?void 0:o.value)??0,p=(o==null?void 0:o.eval.model_name)||(o==null?void 0:o.eval.paper_title)||"";return{points:i,sota:f,sotaModel:p}}function Ft(e,t,r){const s=t?(e??[]).filter(l=>l.task_id===t):e??[],n=s.filter(l=>l.is_open===!1),i=n.reduce((l,d)=>l?(d.best_rank??Number.POSITIVE_INFINITY)<(l.best_rank??Number.POSITIVE_INFINITY)?d:l:d,null);return{visible:r?s.filter(l=>l.is_open!==!1):s,hiddenClosed:n,topHiddenClosed:i}}function Ke(e,t,r,s){const n=t.find(i=>i.id===s);if(e.length===0)return null;if(n!=null&&n.task_id&&e.some(i=>i.id===n.task_id))return n.task_id;if(r){const i=e.find(l=>l.slug===r);if(i)return i.id}if(e.length===1)return e[0].id;if(t.length>0){const i=new Map;for(const o of t)i.set(o.task_id,(i.get(o.task_id)||0)+1);let l=null,d=-1;for(const o of e){const f=i.get(o.id)||0;f>d&&(d=f,l=o.id)}if(l)return l}return e[0].id}function It(e){var X,k,K;const{evaluations:t,tasks:r,taskSlug:s,highlightEvalId:n,parameterBound:i,showMoreMetrics:l,fittingMetricCount:d=1}=e,o=Ke(r,t,s,n),f=r.find(x=>x.id===o)||r[0]||null,p=t.find(x=>x.id===n),h=Ft(t,o,e.hideClosed),m=Rt(h.visible),j=Fe(m,i),I=e.configuredMetrics.map(x=>x.metric_name),$=Array.from(new Set(m.flatMap(x=>[...x.best_metric?[x.best_metric]:[],...Object.keys(x.metrics||{})]))),_=I.length?I:$,T=new Map;for(const x of m){const c=x.best_metric;!c||oe(x.metrics[c])===null||I.length&&!_.includes(c)||T.set(c,(T.get(c)||0)+1)}const v=((X=[...T].sort((x,c)=>c[1]-x[1])[0])==null?void 0:X[0])||_[0]||"",y=_.find(x=>{var c;return x.toLocaleLowerCase()===((c=e.metric)==null?void 0:c.trim().toLocaleLowerCase())})||(p==null?void 0:p.best_metric)||v,O=((k=e.directions)==null?void 0:k.directions[y])==="lower_is_better"?"↓":"↑",U=y&&_.includes(y)?[y,..._.filter(x=>x!==y)]:_,G=U.length?l?U:U.slice(0,Math.max(1,d)):y?[y]:[],w=j.slice().sort((x,c)=>{const u=oe(x.metrics[y]),g=oe(c.metrics[y]);return u!==null&&g!==null?O==="↓"?u-g:g-u:u!==null?-1:g!==null?1:Ie(x,y)-Ie(c,y)});let W=null,A=0;const D=w.map((x,c)=>{const u=oe(x.metrics[y]);return u!==null&&u!==W&&(W=u,A=c+1),{evaluation:x,rank:u===null?null:A,isHighlighted:Pt(x,n)}}),{points:J,sota:Q,sotaModel:Z}=Lt(j,y,O),C=i===void 0?e.initialSummary:void 0,z=e.ready.evaluations&&e.ready.tasks&&e.ready.directions&&(!o||e.ready.metrics),ee={parameter_coverage_known:m.filter(x=>x.parameterCount!==null).length,parameter_coverage_total:m.length};return{currentTaskId:o,primaryTask:f,activeMetric:y,arrow:O,allowedMetrics:_,orderedMetrics:U,visibleMetrics:G,rows:D,chartPoints:J,highlightedEval:((K=D.find(x=>x.isHighlighted))==null?void 0:K.evaluation)||null,hiddenClosedEvals:h.hiddenClosed,hiddenClosedTopEval:h.topHiddenClosed,parameterBound:i,parameterCoverage:ee,hasParameterMetadata:ee.parameter_coverage_known>0,parameterFilters:Xe.map(x=>({...x,selected:i===x.maxParametersExclusive,disabled:i!==x.maxParametersExclusive&&Fe(m,x.maxParametersExclusive).length===0})),displayedMetric:z?y:C==null?void 0:C.metric,displayedSota:z?Q:C==null?void 0:C.value,displayedSotaModel:z?Z:C==null?void 0:C.model_name,isSummaryLoading:!z&&!C,isInitialFilteredViewLoading:i!==void 0&&!z}}function At(e,t,r,s=1,n=0){const i=e-t.fixed-(r?t.harness:0);if(t.metric<=0)return 1;const l=Math.floor(i/t.metric);if(l<s)return Math.max(1,l);const d=Math.floor((i-n)/t.metric);return Math.max(1,s,d)}function pe(e,t){return parseFloat(e.getPropertyValue(t))||0}function Bt(e){const t=getComputedStyle(e);return{fixed:["--bm-rank-width","--bm-model-width","--bm-parameters-width","--bm-paper-width","--bm-year-width"].reduce((r,s)=>r+pe(t,s),0),harness:pe(t,"--bm-harness-width"),metric:pe(t,"--bm-metric-width")}}const Dt=20;function Ae(e,t){return e?a.jsx(de,{title:e}):t||"—"}function Ht({datasetName:e,model:t,showHarness:r,setMetric:s,highlightRowRef:n,onFittingMetricCountChange:i}){const{rows:l,visibleMetrics:d,activeMetric:o,arrow:f}=t,[p,h]=F.useState(null);return F.useEffect(()=>{if(!p)return;const m=()=>{p.classList.toggle("has-horizontal-overflow",p.scrollWidth>p.clientWidth);const I=p.firstElementChild;if(!I)return;const $=p.clientWidth,_=Bt(I);p.classList.toggle("unpins-trailing-columns",$<_.fixed+_.metric);const T=document.documentElement,v=T.scrollHeight>T.clientHeight?0:Dt;i(N=>At($,_,r,N,v))},j=new ResizeObserver(m);return j.observe(p),p.firstElementChild&&j.observe(p.firstElementChild),m(),()=>j.disconnect()},[p,r,i]),a.jsx("div",{ref:h,className:"bm-table-scroll",role:"region","aria-label":`${e} leaderboard`,tabIndex:0,children:a.jsxs("table",{id:"benchmark-leaderboard",className:"bm-table",style:{"--bm-metric-count":d.length,"--bm-harness-count":r?1:0},children:[a.jsxs("caption",{className:"sr-only",children:[e," leaderboard"]}),a.jsxs("colgroup",{children:[a.jsx("col",{className:"bm-width-rank"}),a.jsx("col",{className:"bm-width-model"}),a.jsx("col",{className:"bm-width-parameters"}),r&&a.jsx("col",{className:"bm-width-harness"}),d.map(m=>a.jsx("col",{className:"bm-width-metric"},m)),a.jsx("col",{}),a.jsx("col",{className:"bm-width-year"})]}),a.jsx("thead",{children:a.jsxs("tr",{children:[a.jsx("th",{className:"col-rank",children:"Rank"}),a.jsx("th",{className:"col-model",children:"Model"}),a.jsxs("th",{className:"col-parameters",children:[a.jsx("span",{className:"bm-label-full",children:"Parameters"}),a.jsx("span",{className:"bm-label-short",children:"Params"})]}),r&&a.jsx("th",{className:"col-harness",children:"Harness"}),d.map(m=>{const j=m===o;return a.jsx("th",{className:`col-value ${j?"is-active":""}`,"aria-sort":j?f==="↓"?"ascending":"descending":"none",children:a.jsxs("button",{type:"button",className:"bm-metric-header",onClick:()=>s(m),"aria-pressed":j,title:`Sort by ${m}`,children:[m,j?` ${f}`:""]})},m)}),a.jsx("th",{className:"col-paper",children:"Paper"}),a.jsx("th",{className:"col-year",children:"Year"})]})}),a.jsx("tbody",{children:l.map(({evaluation:m,rank:j,isHighlighted:I})=>{var T;const $=m.paper_arxiv_id||m.paper_id,_=m.paper_title||(m.paper_arxiv_id?`arXiv:${m.paper_arxiv_id}`:null);return a.jsxs("tr",{ref:I?n:void 0,className:I?"is-highlighted":void 0,children:[a.jsx("td",{className:"col-rank",children:j??"—"}),a.jsxs("td",{className:"col-model",children:[I&&a.jsx("span",{className:"bm-row-marker","aria-hidden":"true"}),m.hf_model_url?a.jsx("a",{href:m.hf_model_url,target:"_blank",rel:"noopener noreferrer",className:"bm-model-link",title:`Open ${m.model_name||"model"} on Hugging Face`,children:m.model_name||"—"}):m.model_name||"—",m.is_open===!1&&a.jsx(gt,{}),(m.external??m.is_external)&&a.jsx(xt,{sourceUrl:m.source_url||m.external_source_url||m.result_url})]}),a.jsx("td",{className:"col-parameters",title:m.parameterCount===null?void 0:m.parameterCount.toLocaleString("en-US"),"aria-label":m.parameterCount===null?"Parameters unknown":`${m.parameterCount.toLocaleString("en-US")} parameters`,children:m.parameterCount===null?"—":Et(m.parameterCount)}),r&&a.jsx("td",{className:"col-harness",children:m.harness||"—"}),d.map(v=>{var O;const N=v===o,y=(O=m.metrics)==null?void 0:O[v];return a.jsx("td",{className:`col-value${N?" is-active":""}${N&&j===1?" is-best":""}`,children:y!=null&&y!==""?ce(y):"—"},v)}),a.jsx("td",{className:"col-paper",children:$?a.jsx(le,{to:`/paper/${$}`,title:m.paper_title||_||void 0,children:Ae(m.paper_title,_)}):Ae(m.paper_title,_)}),a.jsx("td",{className:"col-year",children:((T=m.evaluated_on||m.paper_published_date)==null?void 0:T.slice(0,4))||"—"})]},m.id)})})]})})}function Be(e){const t=e.length===7?`${e}-01`:e,r=new Date(t).getTime();return Number.isFinite(r)?r:0}const ge=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function xe(e){const t=new Date(e);return{year:t.getFullYear(),month:t.getMonth()}}function Vt(e,t){if(e===t){const{year:o,month:f}=xe(e);return[{timestamp:new Date(o,f,1).getTime(),key:`${o}-${f}`,label:`${ge[f]} ${o}`}]}const r=xe(e),s=xe(t);if(r.year===s.year){const o=s.month-r.month+1;let f=1;const p=12;o>p&&(f=Math.ceil(o/p));const h=[];for(let m=r.month;m<=s.month;m+=f)h.push({timestamp:new Date(r.year,m,1).getTime(),key:`${r.year}-${m}`,label:o<=3?`${ge[m]} ${r.year}`:ge[m]});return h}const n=s.year-r.year+1;let i=1;const l=12;n>l&&(i=Math.ceil(n/l));const d=[];for(let o=r.year;o<=s.year;o+=i)d.push({timestamp:new Date(o,0,1).getTime(),key:String(o),label:String(o)});return d}const Ot=({points:e,metric:t})=>{const r=ct(),[s,n]=F.useState(null),i=`${F.useId()}-label-halo`,l=880,d=320,o=60,f=30,p=40,h=50,m=e.map(c=>c.value),j=Math.min(...m),$=Math.max(...m)-j||1,_=l-o-f,T=d-p-h,v=e.map(c=>Be(c.date)),N=Math.min(...v),y=Math.max(...v),O=y-N||1,U=c=>N===y?o+_/2:o+(c-N)/O*_,G=e.map((c,u)=>{const g=U(Be(c.date)),E=(c.value-j)/$,L=p+T*(1-E);return{x:g,y:L,data:c,idx:u}}),w=G.filter(c=>c.data.isSota);let W="";if(w.length>=2){W=`M${w[0].x},${w[0].y}`;for(let c=1;c<w.length;c++){const u=w[c-1],g=w[c],E=(u.x+g.x)/2;W+=` C${E},${u.y} ${E},${g.y} ${g.x},${g.y}`}}const A=5.4,D=8,J=9,Q=c=>{const u=c.data.modelName||c.data.paperTitle||"";if(!u)return null;const g=u.length>22?u.slice(0,21)+"…":u,E=g.length*A;let L=c.x-E/2,P=c.x+E/2,H="middle";return L<o?(L=o,P=o+E,H="start"):P>l-f&&(P=l-f,L=P-E,H="end"),{x:H==="start"?o:H==="end"?l-f:c.x,y:c.y-J,text:g,anchor:H,left:L,right:P}},Z=[],C=w.length>0?Q(w[w.length-1]):null;let z=-1/0;for(let c=0;c<w.length-1;c++){const u=Q(w[c]);u&&(u.left<z+D||C&&u.right>C.left-D||(z=u.right,Z.push({x:u.x,y:u.y,text:u.text,anchor:u.anchor})))}C&&Z.push({x:C.x,y:C.y,text:C.text,anchor:C.anchor});const ee=Vt(N,y),X=5,k=c=>n(u=>u===c?null:u),K=c=>{c&&r(`/paper/${c}`)},x=(c,u)=>{const E=`${c.data.modelName||c.data.paperTitle||"Unknown model"}: ${ce(c.data.value)} on ${c.data.dateLabel}`,L=!!c.data.paperRouteId;return a.jsxs("g",{children:[u,a.jsx("circle",{cx:c.x,cy:c.y,r:"10",fill:"transparent",style:{cursor:L?"pointer":"default",outline:"none"},tabIndex:0,role:L?"link":"img","aria-label":E,onMouseEnter:()=>n(c.idx),onMouseLeave:()=>k(c.idx),onFocus:()=>n(c.idx),onBlur:()=>k(c.idx),onClick:()=>K(c.data.paperRouteId),onKeyDown:P=>{L&&(P.key==="Enter"||P.key===" ")&&(P.preventDefault(),K(c.data.paperRouteId))},children:a.jsx("title",{children:E})})]},c.idx)};return a.jsxs("svg",{width:"100%",viewBox:`0 0 ${l} ${d}`,style:{display:"block"},children:[a.jsx("defs",{children:a.jsxs("filter",{id:i,x:"-10%",y:"-30%",width:"120%",height:"160%",children:[a.jsx("feMorphology",{in:"SourceAlpha",operator:"dilate",radius:"1.5",result:"halo"}),a.jsx("feFlood",{style:{floodColor:"var(--bg-elevated)"}}),a.jsx("feComposite",{in2:"halo",operator:"in"}),a.jsxs("feMerge",{children:[a.jsx("feMergeNode",{}),a.jsx("feMergeNode",{in:"SourceGraphic"})]})]})}),a.jsx("text",{x:o-38,y:p+T/2,fontSize:"11",fontFamily:"var(--mono)",fill:"var(--ink-faint)",textAnchor:"middle",transform:`rotate(-90 ${o-38} ${p+T/2})`,children:t}),Array.from({length:X}).map((c,u)=>{const g=u/(X-1),E=p+T*(1-g),L=j+$*g;return a.jsxs("g",{children:[a.jsx("line",{x1:o,y1:E,x2:l-f,y2:E,stroke:"var(--hairline)",strokeWidth:"1"}),a.jsx("text",{x:o-10,y:E+4,fontSize:"11",fontFamily:"var(--mono)",fill:"var(--ink-faint)",textAnchor:"end",children:ce(L)})]},u)}),ee.map(c=>{const u=U(c.timestamp);return a.jsx("text",{x:u,y:d-h+18,fontSize:"11",fontFamily:"var(--mono)",fill:"var(--ink-soft)",textAnchor:"middle",children:c.label},c.key)}),G.filter(c=>!c.data.isSota).map(c=>{const u=s===c.idx;return x(c,a.jsx("circle",{cx:c.x,cy:c.y,r:u?3:2,fill:"var(--ink-faint)",opacity:u?1:.45,style:{transition:"r 0.12s ease, opacity 0.12s ease"}}))}),W&&a.jsx("path",{d:W,stroke:"var(--accent)",strokeWidth:"2",fill:"none",strokeLinejoin:"round",strokeLinecap:"round"}),w.map(c=>{const u=s===c.idx;return x(c,a.jsx("circle",{cx:c.x,cy:c.y,r:u?4.5:3,fill:u?"var(--accent)":"var(--bg-elevated)",stroke:"var(--accent)",strokeWidth:"1.5",style:{transition:"r 0.12s ease, fill 0.12s ease"}}))}),Z.map((c,u)=>a.jsx("text",{x:c.x,y:c.y,fontSize:"9.5",fontFamily:"var(--mono)",fill:"var(--ink-soft)",textAnchor:c.anchor,pointerEvents:"none",filter:`url(#${i})`,children:c.text},`label-${u}`)),s!==null&&G[s]&&(()=>{const c=G[s],u=c.data.modelName||c.data.paperTitle||"Unknown model",E=`${u.length>40?u.slice(0,39)+"…":u}: ${ce(c.data.value)}`,P=Math.max(120,Math.min(340,E.length*6.6+24)),H=30;let S=c.x-P/2;S<o&&(S=o),S+P>l-f&&(S=l-f-P);const q=c.y-H-14>=p?c.y-H-12:c.y+12;return a.jsxs("g",{pointerEvents:"none",children:[a.jsx("rect",{x:S,y:q,width:P,height:H,rx:"6",ry:"6",fill:"var(--bg-elevated)",stroke:"var(--hairline-strong)",strokeWidth:"1",style:{filter:"drop-shadow(0 2px 6px rgba(0,0,0,0.08))"}}),a.jsx("text",{x:S+12,y:q+19,fontSize:"12",fontFamily:"var(--sans)",fill:"var(--ink)",fontWeight:500,children:E})]})})()]})};function Ut(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;const r=document.implementation.createHTMLDocument(),s=r.createElement("base"),n=r.createElement("a");return r.head.appendChild(s),r.body.appendChild(n),t&&(s.href=t),n.href=e,n.href}const Wt=(()=>{let e=0;const t=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${t()}${e}`)})();function Y(e){const t=[];for(let r=0,s=e.length;r<s;r++)t.push(e[r]);return t}let ne=null;function Ye(e={}){return ne||(e.includeStyleProperties?(ne=e.includeStyleProperties,ne):(ne=Y(window.getComputedStyle(document.documentElement)),ne))}function ue(e,t){const s=(e.ownerDocument.defaultView||window).getComputedStyle(e).getPropertyValue(t);return s?parseFloat(s.replace("px","")):0}function zt(e){const t=ue(e,"border-left-width"),r=ue(e,"border-right-width");return e.clientWidth+t+r}function qt(e){const t=ue(e,"border-top-width"),r=ue(e,"border-bottom-width");return e.clientHeight+t+r}function Je(e,t={}){const r=t.width||zt(e),s=t.height||qt(e);return{width:r,height:s}}function Gt(){let e,t;try{t=process}catch{}const r=t&&t.env?t.env.devicePixelRatio:null;return r&&(e=parseInt(r,10),Number.isNaN(e)&&(e=1)),e||window.devicePixelRatio||1}const V=16384;function Qt(e){(e.width>V||e.height>V)&&(e.width>V&&e.height>V?e.width>e.height?(e.height*=V/e.width,e.width=V):(e.width*=V/e.height,e.height=V):e.width>V?(e.height*=V/e.width,e.width=V):(e.width*=V/e.height,e.height=V))}function Xt(e,t={}){return e.toBlob?new Promise(r=>{e.toBlob(r,t.type?t.type:"image/png",t.quality?t.quality:1)}):new Promise(r=>{const s=window.atob(e.toDataURL(t.type?t.type:void 0,t.quality?t.quality:void 0).split(",")[1]),n=s.length,i=new Uint8Array(n);for(let l=0;l<n;l+=1)i[l]=s.charCodeAt(l);r(new Blob([i],{type:t.type?t.type:"image/png"}))})}function he(e){return new Promise((t,r)=>{const s=new Image;s.onload=()=>{s.decode().then(()=>{requestAnimationFrame(()=>t(s))})},s.onerror=r,s.crossOrigin="anonymous",s.decoding="async",s.src=e})}async function Kt(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(t=>`data:image/svg+xml;charset=utf-8,${t}`)}async function Yt(e,t,r){const s="http://www.w3.org/2000/svg",n=document.createElementNS(s,"svg"),i=document.createElementNS(s,"foreignObject");return n.setAttribute("width",`${t}`),n.setAttribute("height",`${r}`),n.setAttribute("viewBox",`0 0 ${t} ${r}`),i.setAttribute("width","100%"),i.setAttribute("height","100%"),i.setAttribute("x","0"),i.setAttribute("y","0"),i.setAttribute("externalResourcesRequired","true"),n.appendChild(i),i.appendChild(e),Kt(n)}const B=(e,t)=>{if(e instanceof t)return!0;const r=Object.getPrototypeOf(e);return r===null?!1:r.constructor.name===t.name||B(r,t)};function Jt(e){const t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}function Zt(e,t){return Ye(t).map(r=>{const s=e.getPropertyValue(r),n=e.getPropertyPriority(r);return`${r}: ${s}${n?" !important":""};`}).join(" ")}function er(e,t,r,s){const n=`.${e}:${t}`,i=r.cssText?Jt(r):Zt(r,s);return document.createTextNode(`${n}{${i}}`)}function De(e,t,r,s){const n=window.getComputedStyle(e,r),i=n.getPropertyValue("content");if(i===""||i==="none")return;const l=Wt();try{t.className=`${t.className} ${l}`}catch{return}const d=document.createElement("style");d.appendChild(er(l,r,n,s)),t.appendChild(d)}function tr(e,t,r){De(e,t,":before",r),De(e,t,":after",r)}const He="application/font-woff",Ve="image/jpeg",rr={woff:He,woff2:He,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:Ve,jpeg:Ve,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function ar(e){const t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""}function je(e){const t=ar(e).toLowerCase();return rr[t]||""}function sr(e){return e.split(/,/)[1]}function we(e){return e.search(/^(data:)/)!==-1}function nr(e,t){return`data:${t};base64,${e}`}async function Ze(e,t,r){const s=await fetch(e,t);if(s.status===404)throw new Error(`Resource "${s.url}" not found`);const n=await s.blob();return new Promise((i,l)=>{const d=new FileReader;d.onerror=l,d.onloadend=()=>{try{i(r({res:s,result:d.result}))}catch(o){l(o)}},d.readAsDataURL(n)})}const be={};function ir(e,t,r){let s=e.replace(/\?.*/,"");return r&&(s=e),/ttf|otf|eot|woff2?/i.test(s)&&(s=s.replace(/.*\//,"")),t?`[${t}]${s}`:s}async function Se(e,t,r){const s=ir(e,t,r.includeQueryParams);if(be[s]!=null)return be[s];r.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());let n;try{const i=await Ze(e,r.fetchRequestInit,({res:l,result:d})=>(t||(t=l.headers.get("Content-Type")||""),sr(d)));n=nr(i,t)}catch(i){n=r.imagePlaceholder||"";let l=`Failed to fetch resource: ${e}`;i&&(l=typeof i=="string"?i:i.message),l&&console.warn(l)}return be[s]=n,n}async function lr(e){const t=e.toDataURL();return t==="data:,"?e.cloneNode(!1):he(t)}async function or(e,t){if(e.currentSrc){const i=document.createElement("canvas"),l=i.getContext("2d");i.width=e.clientWidth,i.height=e.clientHeight,l==null||l.drawImage(e,0,0,i.width,i.height);const d=i.toDataURL();return he(d)}const r=e.poster,s=je(r),n=await Se(r,s,t);return he(n)}async function cr(e,t){var r;try{if(!((r=e==null?void 0:e.contentDocument)===null||r===void 0)&&r.body)return await fe(e.contentDocument.body,t,!0)}catch{}return e.cloneNode(!1)}async function dr(e,t){return B(e,HTMLCanvasElement)?lr(e):B(e,HTMLVideoElement)?or(e,t):B(e,HTMLIFrameElement)?cr(e,t):e.cloneNode(et(e))}const mr=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SLOT",et=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SVG";async function ur(e,t,r){var s,n;if(et(t))return t;let i=[];return mr(e)&&e.assignedNodes?i=Y(e.assignedNodes()):B(e,HTMLIFrameElement)&&(!((s=e.contentDocument)===null||s===void 0)&&s.body)?i=Y(e.contentDocument.body.childNodes):i=Y(((n=e.shadowRoot)!==null&&n!==void 0?n:e).childNodes),i.length===0||B(e,HTMLVideoElement)||await i.reduce((l,d)=>l.then(()=>fe(d,r)).then(o=>{o&&t.appendChild(o)}),Promise.resolve()),t}function hr(e,t,r){const s=t.style;if(!s)return;const n=window.getComputedStyle(e);n.cssText?(s.cssText=n.cssText,s.transformOrigin=n.transformOrigin):Ye(r).forEach(i=>{let l=n.getPropertyValue(i);i==="font-size"&&l.endsWith("px")&&(l=`${Math.floor(parseFloat(l.substring(0,l.length-2)))-.1}px`),B(e,HTMLIFrameElement)&&i==="display"&&l==="inline"&&(l="block"),i==="d"&&t.getAttribute("d")&&(l=`path(${t.getAttribute("d")})`),s.setProperty(i,l,n.getPropertyPriority(i))})}function fr(e,t){B(e,HTMLTextAreaElement)&&(t.innerHTML=e.value),B(e,HTMLInputElement)&&t.setAttribute("value",e.value)}function pr(e,t){if(B(e,HTMLSelectElement)){const r=t,s=Array.from(r.children).find(n=>e.value===n.getAttribute("value"));s&&s.setAttribute("selected","")}}function gr(e,t,r){return B(t,Element)&&(hr(e,t,r),tr(e,t,r),fr(e,t),pr(e,t)),t}async function xr(e,t){const r=e.querySelectorAll?e.querySelectorAll("use"):[];if(r.length===0)return e;const s={};for(let i=0;i<r.length;i++){const d=r[i].getAttribute("xlink:href");if(d){const o=e.querySelector(d),f=document.querySelector(d);!o&&f&&!s[d]&&(s[d]=await fe(f,t,!0))}}const n=Object.values(s);if(n.length){const i="http://www.w3.org/1999/xhtml",l=document.createElementNS(i,"svg");l.setAttribute("xmlns",i),l.style.position="absolute",l.style.width="0",l.style.height="0",l.style.overflow="hidden",l.style.display="none";const d=document.createElementNS(i,"defs");l.appendChild(d);for(let o=0;o<n.length;o++)d.appendChild(n[o]);e.appendChild(l)}return e}async function fe(e,t,r){return!r&&t.filter&&!t.filter(e)?null:Promise.resolve(e).then(s=>dr(s,t)).then(s=>ur(e,s,t)).then(s=>gr(e,s,t)).then(s=>xr(s,t))}const tt=/url\((['"]?)([^'"]+?)\1\)/g,br=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,yr=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function wr(e){const t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}function vr(e){const t=[];return e.replace(tt,(r,s,n)=>(t.push(n),r)),t.filter(r=>!we(r))}async function jr(e,t,r,s,n){try{const i=r?Ut(t,r):t,l=je(t);let d;return n||(d=await Se(i,l,s)),e.replace(wr(t),`$1${d}$3`)}catch{}return e}function Sr(e,{preferredFontFormat:t}){return t?e.replace(yr,r=>{for(;;){const[s,,n]=br.exec(r)||[];if(!n)return"";if(n===t)return`src: ${s};`}}):e}function rt(e){return e.search(tt)!==-1}async function at(e,t,r){if(!rt(e))return e;const s=Sr(e,r);return vr(s).reduce((i,l)=>i.then(d=>jr(d,l,t,r)),Promise.resolve(s))}async function ie(e,t,r){var s;const n=(s=t.style)===null||s===void 0?void 0:s.getPropertyValue(e);if(n){const i=await at(n,null,r);return t.style.setProperty(e,i,t.style.getPropertyPriority(e)),!0}return!1}async function _r(e,t){await ie("background",e,t)||await ie("background-image",e,t),await ie("mask",e,t)||await ie("-webkit-mask",e,t)||await ie("mask-image",e,t)||await ie("-webkit-mask-image",e,t)}async function kr(e,t){const r=B(e,HTMLImageElement);if(!(r&&!we(e.src))&&!(B(e,SVGImageElement)&&!we(e.href.baseVal)))return;const s=r?e.src:e.href.baseVal,n=await Se(s,je(s),t);await new Promise((i,l)=>{e.onload=i,e.onerror=t.onImageErrorHandler?(...o)=>{try{i(t.onImageErrorHandler(...o))}catch(f){l(f)}}:l;const d=e;d.decode&&(d.decode=i),d.loading==="lazy"&&(d.loading="eager"),r?(e.srcset="",e.src=n):e.href.baseVal=n})}async function Cr(e,t){const s=Y(e.childNodes).map(n=>st(n,t));await Promise.all(s).then(()=>e)}async function st(e,t){B(e,Element)&&(await _r(e,t),await kr(e,t),await Cr(e,t))}function Er(e,t){const{style:r}=e;t.backgroundColor&&(r.backgroundColor=t.backgroundColor),t.width&&(r.width=`${t.width}px`),t.height&&(r.height=`${t.height}px`);const s=t.style;return s!=null&&Object.keys(s).forEach(n=>{r[n]=s[n]}),e}const Oe={};async function Ue(e){let t=Oe[e];if(t!=null)return t;const s=await(await fetch(e)).text();return t={url:e,cssText:s},Oe[e]=t,t}async function We(e,t){let r=e.cssText;const s=/url\(["']?([^"')]+)["']?\)/g,i=(r.match(/url\([^)]+\)/g)||[]).map(async l=>{let d=l.replace(s,"$1");return d.startsWith("https://")||(d=new URL(d,e.url).href),Ze(d,t.fetchRequestInit,({result:o})=>(r=r.replace(l,`url(${o})`),[l,o]))});return Promise.all(i).then(()=>r)}function ze(e){if(e==null)return[];const t=[],r=/(\/\*[\s\S]*?\*\/)/gi;let s=e.replace(r,"");const n=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const o=n.exec(s);if(o===null)break;t.push(o[0])}s=s.replace(n,"");const i=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,l="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",d=new RegExp(l,"gi");for(;;){let o=i.exec(s);if(o===null){if(o=d.exec(s),o===null)break;i.lastIndex=d.lastIndex}else d.lastIndex=i.lastIndex;t.push(o[0])}return t}async function Nr(e,t){const r=[],s=[];return e.forEach(n=>{if("cssRules"in n)try{Y(n.cssRules||[]).forEach((i,l)=>{if(i.type===CSSRule.IMPORT_RULE){let d=l+1;const o=i.href,f=Ue(o).then(p=>We(p,t)).then(p=>ze(p).forEach(h=>{try{n.insertRule(h,h.startsWith("@import")?d+=1:n.cssRules.length)}catch(m){console.error("Error inserting rule from remote css",{rule:h,error:m})}})).catch(p=>{console.error("Error loading remote css",p.toString())});s.push(f)}})}catch(i){const l=e.find(d=>d.href==null)||document.styleSheets[0];n.href!=null&&s.push(Ue(n.href).then(d=>We(d,t)).then(d=>ze(d).forEach(o=>{l.insertRule(o,l.cssRules.length)})).catch(d=>{console.error("Error loading remote stylesheet",d)})),console.error("Error inlining remote css file",i)}}),Promise.all(s).then(()=>(e.forEach(n=>{if("cssRules"in n)try{Y(n.cssRules||[]).forEach(i=>{r.push(i)})}catch(i){console.error(`Error while reading CSS rules from ${n.href}`,i)}}),r))}function Rr(e){return e.filter(t=>t.type===CSSRule.FONT_FACE_RULE).filter(t=>rt(t.style.getPropertyValue("src")))}async function Pr(e,t){if(e.ownerDocument==null)throw new Error("Provided element is not within a Document");const r=Y(e.ownerDocument.styleSheets),s=await Nr(r,t);return Rr(s)}function nt(e){return e.trim().replace(/["']/g,"")}function Mr(e){const t=new Set;function r(s){(s.style.fontFamily||getComputedStyle(s).fontFamily).split(",").forEach(i=>{t.add(nt(i))}),Array.from(s.children).forEach(i=>{i instanceof HTMLElement&&r(i)})}return r(e),t}async function $r(e,t){const r=await Pr(e,t),s=Mr(e);return(await Promise.all(r.filter(i=>s.has(nt(i.style.fontFamily))).map(i=>{const l=i.parentStyleSheet?i.parentStyleSheet.href:null;return at(i.cssText,l,t)}))).join(`
2
  `)}async function Tr(e,t){const r=t.fontEmbedCSS!=null?t.fontEmbedCSS:t.skipFonts?null:await $r(e,t);if(r){const s=document.createElement("style"),n=document.createTextNode(r);s.appendChild(n),e.firstChild?e.insertBefore(s,e.firstChild):e.appendChild(s)}}async function Lr(e,t={}){const{width:r,height:s}=Je(e,t),n=await fe(e,t,!0);return await Tr(n,t),await st(n,t),Er(n,t),await Yt(n,r,s)}async function Fr(e,t={}){const{width:r,height:s}=Je(e,t),n=await Lr(e,t),i=await he(n),l=document.createElement("canvas"),d=l.getContext("2d"),o=t.pixelRatio||Gt(),f=t.canvasWidth||r,p=t.canvasHeight||s;return l.width=f*o,l.height=p*o,t.skipAutoScale||Qt(l),l.style.width=`${f}`,l.style.height=`${p}`,t.backgroundColor&&(d.fillStyle=t.backgroundColor,d.fillRect(0,0,l.width,l.height)),d.drawImage(i,0,0,l.width,l.height),l}async function Ir(e,t={}){const r=await Fr(e,t);return await Xt(r)}const ve="#ffffff";function Ar(){return typeof window>"u"?ve:window.getComputedStyle(document.documentElement).getPropertyValue("--bg-elevated").trim()||ve}function Br(e){if(typeof window>"u")return ve;const t=window.getComputedStyle(e).backgroundColor;return!t||t==="rgba(0, 0, 0, 0)"||t==="transparent"?Ar():t}async function Dr(e){var r,s;if(typeof window>"u"||!((s=(r=window.navigator)==null?void 0:r.clipboard)!=null&&s.write))throw new Error("Clipboard image copy is not supported in this browser.");if(typeof window.ClipboardItem>"u")throw new Error("Clipboard image copy is not supported in this browser.");const t=await Ir(e,{pixelRatio:2,cacheBust:!0,backgroundColor:Br(e)});if(!t)throw new Error("Failed to render screenshot.");await window.navigator.clipboard.write([new window.ClipboardItem({"image/png":t})])}const it=({targetRef:e,label:t})=>{const{toast:r}=dt(),[s,n]=F.useState("idle"),i=F.useRef(null);F.useEffect(()=>()=>{i.current!==null&&window.clearTimeout(i.current)},[]);const l=F.useCallback(async()=>{const o=e.current;if(o){n("copying"),o.classList.add("is-capturing"),o.offsetHeight,await new Promise(f=>window.requestAnimationFrame(()=>f()));try{await Dr(o),n("copied"),r({title:"Screenshot copied",description:`Image of the ${t} copied to your clipboard.`}),i.current!==null&&window.clearTimeout(i.current),i.current=window.setTimeout(()=>n("idle"),1500)}catch(f){n("idle"),r({title:"Copy failed",description:f instanceof Error&&f.message?f.message:"Could not copy the screenshot to your clipboard.",variant:"destructive"})}finally{o.classList.remove("is-capturing")}}},[e,t,r]),d=s==="copied"?"Copied":s==="copying"?"Copying…":"Copy image";return a.jsxs("button",{type:"button",className:"bm-copy-btn",onClick:l,disabled:s==="copying","aria-label":`Copy ${t} screenshot to clipboard`,title:`Copy ${t} screenshot to clipboard`,children:[a.jsx(bt,{name:"copy",size:11}),d]})};function Hr({model:e,datasetName:t,hideClosed:r,setHideClosed:s,setMetric:n}){const i=F.useRef(null),{isInitialFilteredViewLoading:l,chartPoints:d,activeMetric:o,allowedMetrics:f,orderedMetrics:p,parameterBound:h}=e;return l||d.length===0?null:a.jsxs("div",{className:"bm-card",ref:i,children:[a.jsxs("div",{className:"bm-card-screenshot-header","aria-hidden":"true",children:[a.jsxs("div",{className:"bm-card-screenshot-title",children:[a.jsx("span",{className:"bm-card-screenshot-eyebrow",children:"Benchmark"}),a.jsx("span",{className:"bm-card-screenshot-name",children:t})]}),a.jsxs("div",{className:"bm-card-screenshot-brand",children:[a.jsxs("span",{className:"brand",children:[a.jsx("span",{className:"brand-mark"}),a.jsxs("span",{className:"brand-name",children:["Papers ",a.jsx("em",{children:"With Code"})]})]}),a.jsx("span",{className:"bm-card-screenshot-url",children:"paperswithcode.co"})]})]}),a.jsxs("div",{className:"bm-card-head",children:[a.jsx("h2",{className:"bm-card-title",children:"SOTA progression"}),a.jsxs("div",{className:"bm-card-actions",children:[f.length>1&&a.jsxs("label",{className:"bm-view-select",children:[a.jsx("span",{className:"bm-view-select-label",children:"View"}),a.jsx("select",{value:o,onChange:m=>n(m.target.value),children:p.map(m=>a.jsx("option",{value:m,children:m},m))})]}),a.jsxs("label",{className:"bm-closed-toggle",title:"Show or hide evaluations of closed-source models",children:[a.jsx(Qe,{className:"bm-closed-toggle-switch",checked:!r,onCheckedChange:m=>{s(!m)},"aria-label":"Show closed-source models"}),a.jsx("span",{className:"bm-closed-toggle-label",children:"Closed-source"})]}),a.jsx(it,{targetRef:i,label:"SOTA chart"})]})]}),a.jsx("div",{className:"bm-chart-wrap",children:a.jsx(Ot,{points:d,metric:o})}),a.jsxs("div",{className:"bm-chart-foot",children:[a.jsx("span",{className:"legend-dot"}),h===void 0?"All models":"Filtered models"," over time · highlighted dots track the running best · hover for the model · click to open the paper"]})]})}const ye="filter",qe="open-source";function Vr(e){if(!e)return null;const t=e.trim(),r=t.match(/^https?:\/\/(?:www\.)?arxiv\.org\/(?:abs|pdf)\/([^/?#]+)/i);if(r!=null&&r[1])return r[1].replace(/\.pdf$/i,"");const s=t.match(/^(?:https?:\/\/(?:www\.)?paperswithcode\.co)?\/paper\/([^/?#]+)/i);return(s==null?void 0:s[1])??null}function Ge(e,t){return e?a.jsx(de,{title:e}):t||"—"}const ca=()=>{var _e,ke,Ce,Ee,Ne,Re,Pe,Me;const{datasetSlug:e}=mt(),[t,r]=ut(),s=t.get("task")||void 0,n=t.get("eval")||void 0,i=Ct(t.get("max_parameters_exclusive")),{preferences:l,setHideClosedSourceEvals:d}=pt(),o=t.get(ye)===qe||l.hide_closed_source_evals,f=F.useRef(null),p=F.useRef(!1),h=F.useRef(null),[m,j]=F.useState(null),I=`${e}:${s||""}`,$=m===I,[_,T]=F.useState(1),v=te(se.datasetPage(e,{include_paper:!0,task:s,is_open:o?!0:void 0}));_t(v.data&&kt(v.data.name));const N=te(ht.byDataset((_e=v.data)==null?void 0:_e.id)),y=te(se.datasetTasks((ke=v.data)==null?void 0:ke.id)),O=te(se.metricDirections()),U=Ke(y.data||[],N.data||[],s,n),G=te({...se.taskBenchmarkTrends(U??void 0,{limit:100,min_recent_papers:0,is_open:o?!0:void 0}),enabled:!!((Ce=v.data)!=null&&Ce.id)}),w=F.useMemo(()=>{var b;return(((b=G.data)==null?void 0:b.results)||[]).find(M=>{var R;return M.id===((R=v.data)==null?void 0:R.id)})||null},[G.data,(Ee=v.data)==null?void 0:Ee.id]),W=te(se.leaderboardMetrics((Ne=v.data)==null?void 0:Ne.id,U??void 0)),A=It({evaluations:N.data||[],tasks:y.data||[],configuredMetrics:W.data||[],directions:O.data,initialSummary:(Re=v.data)==null?void 0:Re.leaderboard_summary,taskSlug:s,highlightEvalId:n,metric:t.get("metric")||void 0,hideClosed:o,parameterBound:i,showMoreMetrics:$,fittingMetricCount:_,ready:{evaluations:N.isSuccess,tasks:y.isSuccess,directions:O.isSuccess,metrics:W.isSuccess}}),{primaryTask:D,hiddenClosedEvals:J,hiddenClosedTopEval:Q,isSummaryLoading:Z,displayedMetric:C,displayedSota:z,displayedSotaModel:ee,isInitialFilteredViewLoading:X,highlightedEval:k,hasParameterMetadata:K,parameterCoverage:x,orderedMetrics:c}=A;F.useEffect(()=>{if(p.current||!n||!N.data||N.data.length===0)return;const b=f.current;b&&(p.current=!0,b.scrollIntoView({behavior:"smooth",block:"start"}))},[n,N.data]);const u=te(se.area(D==null?void 0:D.area_id));if(v.isLoading)return a.jsxs("div",{className:"page",children:[a.jsx(me,{className:"h-12 w-1/2 mb-6"}),a.jsx(me,{className:"h-64 w-full"})]});if(!v.data)return St([v.error],"Failed to load this benchmark. Please try again.")??a.jsx(jt,{});const g=v.data,E=!!g.supports_harness,L=b=>{r(M=>{const R=new URLSearchParams(M);return b===void 0?R.delete("max_parameters_exclusive"):R.set("max_parameters_exclusive",String(b)),R})},P=b=>{r(M=>{const R=new URLSearchParams(M);return b?R.set(ye,qe):R.delete(ye),R}),d(b)},H=b=>{r(M=>{const R=new URLSearchParams(M);return R.set("metric",b),R})},S=g.introducing_paper??void 0,re=(S==null?void 0:S.arxiv_id)||(S==null?void 0:S.id)||Vr(g.paper_url),q=(S==null?void 0:S.title)||g.introducing_paper_title||null,ae=((Pe=S==null?void 0:S.published)==null?void 0:Pe.slice(0,4))||g.introduced_year||null,lt=!!re||!!g.paper_url||!!q,ot=S!=null&&S.arxiv_id||(Me=g.paper_url)!=null&&Me.match(/^https?:\/\/(?:www\.)?arxiv\.org\//i)?`arXiv:${re}`:`Paper ${re}`;return a.jsx("div",{className:"page",children:a.jsxs("div",{className:"bm-page",children:[a.jsxs("div",{className:"breadcrumb",children:[a.jsx(le,{to:"/tasks",children:"Tasks"}),u.data&&a.jsxs(a.Fragment,{children:[a.jsx("span",{className:"sep",children:"/"}),a.jsx(le,{to:`/tasks#area-${vt(u.data.name)}`,children:u.data.name})]}),D&&a.jsxs(a.Fragment,{children:[a.jsx("span",{className:"sep",children:"/"}),a.jsx(le,{to:`/tasks/${D.slug||D.id}`,children:D.name})]}),a.jsx("span",{className:"sep",children:"/"}),a.jsx("span",{style:{color:"var(--accent-text)"},children:g.name})]}),a.jsxs("div",{className:"bm-title-row",children:[a.jsx("h1",{className:"bm-title",children:g.name}),w&&a.jsxs("div",{className:"bm-title-trend","aria-label":`${g.name} reporting trend`,children:[a.jsx(yt,{history:w.history,benchmarkName:w.name}),a.jsxs("span",{className:"bm-title-trend-summary",children:[a.jsx("strong",{children:w.recent_paper_count})," ",w.recent_paper_count===1?"paper":"papers",w.rate_change==null?w.recent_paper_count>0&&a.jsx("span",{className:"benchmark-trend-change is-new",children:"new"}):a.jsxs("span",{className:`benchmark-trend-change ${w.rate_change>=1?"is-up":"is-down"}`,children:[w.rate_change>=1?"↑":"↓"," ",w.rate_change.toFixed(1),"×"]})]})]})]}),a.jsx(ft,{kind:"benchmark",entityId:g.id}),a.jsxs("div",{className:"bm-subtitle",children:[Z?a.jsx(me,{className:"h-5 w-64 bm-summary-skeleton","aria-label":"Loading benchmark summary"}):a.jsxs("span",{children:[C&&a.jsxs(a.Fragment,{children:[a.jsx("span",{className:"metric-tag",children:C}),a.jsx("span",{style:{color:"var(--hairline-strong)",margin:"0 8px"},children:"·"})]}),ee?a.jsxs("span",{children:["Best: ",a.jsx("span",{className:"best-name",children:ce(z)})," by ",a.jsx("span",{className:"best-name",style:{fontStyle:"normal"},children:ee})]}):a.jsxs("span",{children:[A.rows.length," evaluations"]})]}),g.hf_url&&a.jsxs("a",{className:"bm-action-btn",href:g.hf_url,target:"_blank",rel:"noopener noreferrer",children:[a.jsx("span",{"aria-hidden":"true",children:"🤗"})," View on Hugging Face"]})]}),g.description&&a.jsx("p",{className:"bm-description",children:g.description}),o&&J.length>0&&a.jsxs("div",{className:"bm-hidden-closed-notice",children:[a.jsxs("span",{children:[J.length," closed-source ",J.length===1?"row is":"rows are"," hidden",Q!=null&&Q.model_name?a.jsxs(a.Fragment,{children:[", including ",a.jsx("strong",{children:Q.model_name})]}):null,"."]}),a.jsx("button",{type:"button",className:"bm-hidden-closed-action",onClick:()=>P(!1),children:"Show closed-source"})]}),lt&&a.jsxs("div",{className:"method-source",style:{marginTop:0,marginBottom:18},children:[a.jsx("span",{className:"method-source-label",children:"Source"}),re?a.jsxs(le,{to:`/paper/${re}`,target:"_blank",rel:"noopener noreferrer",className:"method-source-link",children:[a.jsx("span",{className:"method-source-title",children:q?a.jsx(de,{title:q}):ot}),ae&&a.jsx("span",{className:"method-source-meta",children:ae})]}):g.paper_url?a.jsxs("a",{href:wt(g.paper_url)??void 0,target:"_blank",rel:"noopener noreferrer",className:"method-source-link",children:[a.jsx("span",{className:"method-source-title",children:q?a.jsx(de,{title:q}):g.paper_url}),ae&&a.jsx("span",{className:"method-source-meta",children:ae})]}):a.jsxs("div",{className:"method-source-link is-static",children:[a.jsx("span",{className:"method-source-title",children:q?a.jsx(de,{title:q}):null}),ae&&a.jsx("span",{className:"method-source-meta",children:ae})]})]}),a.jsx(Hr,{model:A,datasetName:g.name,hideClosed:o,setHideClosed:P,setMetric:H}),k&&(()=>{var Te,Le;const b=k.paper_arxiv_id||k.paper_id,M=k.paper_title||(k.paper_arxiv_id?`arXiv:${k.paper_arxiv_id}`:null),R=k.best_metric&&((Te=k.metrics)==null?void 0:Te[k.best_metric])!==void 0?k.best_metric:A.activeMetric,$e=(Le=k.metrics)==null?void 0:Le[R];return a.jsxs("div",{className:"bm-highlight-banner",role:"status",children:[a.jsx("span",{className:"bm-highlight-dot","aria-hidden":"true"}),a.jsxs("div",{className:"bm-highlight-text",children:[a.jsx("span",{className:"bm-highlight-label",children:"Comparing result"}),a.jsxs("span",{className:"bm-highlight-paper",children:[k.model_name||M||"—",k.harness?` · ${k.harness}`:""]}),a.jsxs("span",{className:"bm-highlight-meta",children:[$e!==void 0&&R?a.jsxs(a.Fragment,{children:[R,": ",ce($e),M?" · ":""]}):null,b?a.jsx(le,{to:`/paper/${b}`,children:Ge(k.paper_title,M)}):Ge(k.paper_title,M)]})]})]})})(),a.jsxs("div",{className:"bm-card",ref:h,children:[a.jsxs("div",{className:"bm-card-screenshot-header","aria-hidden":"true",children:[a.jsxs("div",{className:"bm-card-screenshot-title",children:[a.jsx("span",{className:"bm-card-screenshot-eyebrow",children:"Benchmark"}),a.jsx("span",{className:"bm-card-screenshot-name",children:g.name})]}),a.jsxs("div",{className:"bm-card-screenshot-brand",children:[a.jsxs("span",{className:"brand",children:[a.jsx("span",{className:"brand-mark"}),a.jsxs("span",{className:"brand-name",children:["Papers ",a.jsx("em",{children:"With Code"})]})]}),a.jsx("span",{className:"bm-card-screenshot-url",children:"paperswithcode.co"})]})]}),a.jsxs("div",{className:"bm-card-head",children:[a.jsx("h2",{className:"bm-card-title",children:"Leaderboard"}),a.jsxs("div",{className:"bm-card-actions",children:[A.allowedMetrics.length>1&&a.jsxs("label",{className:"bm-view-select",children:[a.jsx("span",{className:"bm-view-select-label",children:"View"}),a.jsx("select",{value:A.activeMetric,onChange:b=>H(b.target.value),children:c.map(b=>a.jsx("option",{value:b,children:b},b))})]}),a.jsxs("label",{className:"bm-closed-toggle",title:"Show or hide evaluations of closed-source models",children:[a.jsx(Qe,{className:"bm-closed-toggle-switch",checked:!o,onCheckedChange:b=>P(!b),"aria-label":"Show closed-source models"}),a.jsx("span",{className:"bm-closed-toggle-label",children:"Closed-source"})]}),!X&&!K&&N.isSuccess?a.jsx("span",{className:"bm-parameter-unavailable",children:"Parameter metadata unavailable"}):null,a.jsx(it,{targetRef:h,label:"leaderboard"})]})]}),!X&&K&&a.jsxs("div",{className:"bm-parameter-filter-bar",children:[a.jsx("span",{className:"bm-parameter-filter-label",children:"Parameters Size"}),a.jsx("div",{className:"bm-parameter-filter-options",role:"group","aria-label":"Filter leaderboard by parameter size",children:A.parameterFilters.map(b=>{const{selected:M,disabled:R}=b;return a.jsx("button",{type:"button",className:`bm-parameter-filter-option${M?" is-active":""}`,"aria-pressed":M,disabled:R,onClick:()=>L(b.maxParametersExclusive),children:b.label},b.label)})}),a.jsxs("span",{className:"bm-parameter-coverage",children:["Parameters known for ",x.parameter_coverage_known," of ",x.parameter_coverage_total," entries"]})]}),N.isLoading||X?a.jsx("div",{style:{padding:16},children:Array.from({length:5}).map((b,M)=>a.jsx(me,{className:"h-10 w-full mb-2"},M))}):A.rows.length===0?i?a.jsxs("div",{className:"no-results",children:["No known parameter counts match this filter. "," ",a.jsx("button",{type:"button",className:"bm-empty-filter-action",onClick:()=>L(void 0),children:"Show all"})]}):a.jsx("div",{className:"no-results",children:"No evaluations submitted yet."}):a.jsxs(a.Fragment,{children:[c.length>_&&a.jsxs("div",{className:"bm-metric-columns-control",children:[a.jsx("button",{type:"button",className:"bm-metric-columns-toggle","aria-expanded":$,"aria-controls":"benchmark-leaderboard",onClick:()=>j($?null:I),children:$?"Show fewer metrics":`Show more metrics (${c.length-_})`}),$&&a.jsx("span",{children:"Scroll metrics horizontally; model and paper details stay visible."})]}),a.jsx(Ht,{datasetName:g.name,model:A,showHarness:E,setMetric:H,highlightRowRef:f,onFittingMetricCountChange:T})]})]})]})})};export{ca as default};
 
1
+ import{i as F,j as a,a3 as ce,L as le,n as ct,J as dt,u as mt,f as ut,b as te,K as ht,v as se}from"./index-CqLopXcE.js";import{R as ft}from"./ResearchFollowButton-lWVVvGzA.js";import{u as pt}from"./preferences-B5Lhs-WR.js";import{L as de}from"./LatexTitle-C0en22SO.js";import{C as gt,E as xt}from"./ExternalSourceEvalBadge-DcDIi3qu.js";import{S as Qe}from"./switch-fRR_yusw.js";import{I as bt}from"./Icon-BTX00T3U.js";import{S as me}from"./skeleton-g9QeRZlQ.js";import{B as yt}from"./BenchmarkTrendSparkline-e2Hr_BzC.js";import{s as wt}from"./safeExternalHref-CkBrsh84.js";import{s as vt}from"./slug-BpH-Nkvz.js";import jt from"./NotFound-Dm23aroU.js";import{l as St}from"./LoadFailurePage-CbxBcR6o.js";import{u as _t}from"./useDocumentTitle-xBtc80OB.js";import{b as kt}from"./pageTitles-BDUuOvJf.js";import"./researchTopic-BNud5CMS.js";import"./useMutation-DBnvCG24.js";import"./plus-D-JcHoGj.js";import"./hover-card-CcViKpG6.js";import"./index-GshCUuRr.js";import"./alert-C8kkxn4G.js";function oe(e){if(e==null)return null;if(typeof e=="number")return Number.isFinite(e)?e:null;const t=e.includes("±")?e.split("±")[0].trim():e.trim(),r=parseFloat(t);return Number.isFinite(r)?r:null}const Xe=[{label:"All",maxParametersExclusive:void 0},{label:"<10M",maxParametersExclusive:1e7},{label:"<100M",maxParametersExclusive:1e8},{label:"<1B",maxParametersExclusive:1e9},{label:"<3B",maxParametersExclusive:3e9},{label:"<6B",maxParametersExclusive:6e9},{label:"<12B",maxParametersExclusive:12e9},{label:"<32B",maxParametersExclusive:32e9},{label:"<128B",maxParametersExclusive:128e9},{label:"<500B",maxParametersExclusive:5e11}];function Ct(e){const t=e===null?void 0:Number(e);return Xe.some(r=>r.maxParametersExclusive===t)?t:void 0}function Et(e){return new Intl.NumberFormat("en",{notation:"compact",maximumSignificantDigits:3}).format(e)}function Nt(e){return[e.paper_id,e.task_id,e.dataset_id,e.model_name,e.harness??""].join("|")}function Rt(e){const t=new Map;for(const r of e){const s=Nt(r),n=t.get(s);if(!n){t.set(s,{...r,metrics:{...r.metrics||{}},sourceEvaluationIds:[r.id],ranksByMetric:r.best_metric&&r.best_rank!=null?{[r.best_metric]:r.best_rank}:{},parameterCount:r.num_parameters??null,hasParameterConflict:!1});continue}n.metrics={...n.metrics,...r.metrics||{}},n.sourceEvaluationIds.push(r.id),r.best_metric&&r.best_rank!=null&&(n.ranksByMetric[r.best_metric]=r.best_rank),r.num_parameters!=null&&!n.hasParameterConflict&&(n.parameterCount===null?n.parameterCount=r.num_parameters:n.parameterCount!==r.num_parameters&&(n.parameterCount=null,n.hasParameterConflict=!0))}return Array.from(t.values())}function Fe(e,t){return t===void 0?e:e.filter(r=>r.parameterCount!==null&&r.parameterCount<t)}function Pt(e,t){return t?e.id===t||e.sourceEvaluationIds.includes(t):!1}function Ie(e,t){return e.ranksByMetric[t]??e.best_rank??9999}function Mt(e){const t=Date.parse(e);return Number.isNaN(t)?"":new Date(t).toISOString().slice(0,10)}function $t(e){const t=new Map;for(const s of e)s.evaluated_on&&t.set(s.evaluated_on,(t.get(s.evaluated_on)??0)+1);const r=Array.from(t.values()).reduce((s,n)=>s+n,0);for(const[s,n]of t)if(n>=2&&n*2>r)return s;return null}function Tt(e,t){const r=e.evaluated_on;return r&&r!==t&&r!==Mt(e.updated_at)?r:e.paper_published_date||""}function Lt(e,t,r){if(e.length===0)return{points:[],sota:0,sotaModel:""};const s=$t(e),n=e.map(h=>{var j;const m=oe((j=h.metrics)==null?void 0:j[t]);return{eval:h,value:m,date:Tt(h,s)}}).filter(h=>h.value!==null&&!!h.date).sort((h,m)=>h.date.localeCompare(m.date)),i=[];let l=null;for(const h of n){const m=l==null?!0:r==="↓"?h.value<l:h.value>l;m&&(l=h.value),i.push({value:h.value,date:h.date,dateLabel:h.date.slice(0,7),modelName:h.eval.model_name||"",paperTitle:h.eval.paper_title||"",paperRouteId:h.eval.paper_arxiv_id||h.eval.paper_id||null,isSota:m})}const o=e.map(h=>{var m;return{eval:h,value:oe((m=h.metrics)==null?void 0:m[t])}}).filter(h=>h.value!==null).sort((h,m)=>r==="↓"?h.value-m.value:m.value-h.value)[0],f=(o==null?void 0:o.value)??0,p=(o==null?void 0:o.eval.model_name)||(o==null?void 0:o.eval.paper_title)||"";return{points:i,sota:f,sotaModel:p}}function Ft(e,t,r){const s=t?(e??[]).filter(l=>l.task_id===t):e??[],n=s.filter(l=>l.is_open===!1),i=n.reduce((l,d)=>l?(d.best_rank??Number.POSITIVE_INFINITY)<(l.best_rank??Number.POSITIVE_INFINITY)?d:l:d,null);return{visible:r?s.filter(l=>l.is_open!==!1):s,hiddenClosed:n,topHiddenClosed:i}}function Ke(e,t,r,s){const n=t.find(i=>i.id===s);if(e.length===0)return null;if(n!=null&&n.task_id&&e.some(i=>i.id===n.task_id))return n.task_id;if(r){const i=e.find(l=>l.slug===r);if(i)return i.id}if(e.length===1)return e[0].id;if(t.length>0){const i=new Map;for(const o of t)i.set(o.task_id,(i.get(o.task_id)||0)+1);let l=null,d=-1;for(const o of e){const f=i.get(o.id)||0;f>d&&(d=f,l=o.id)}if(l)return l}return e[0].id}function It(e){var X,k,K;const{evaluations:t,tasks:r,taskSlug:s,highlightEvalId:n,parameterBound:i,showMoreMetrics:l,fittingMetricCount:d=1}=e,o=Ke(r,t,s,n),f=r.find(x=>x.id===o)||r[0]||null,p=t.find(x=>x.id===n),h=Ft(t,o,e.hideClosed),m=Rt(h.visible),j=Fe(m,i),I=e.configuredMetrics.map(x=>x.metric_name),$=Array.from(new Set(m.flatMap(x=>[...x.best_metric?[x.best_metric]:[],...Object.keys(x.metrics||{})]))),_=I.length?I:$,T=new Map;for(const x of m){const c=x.best_metric;!c||oe(x.metrics[c])===null||I.length&&!_.includes(c)||T.set(c,(T.get(c)||0)+1)}const v=((X=[...T].sort((x,c)=>c[1]-x[1])[0])==null?void 0:X[0])||_[0]||"",y=_.find(x=>{var c;return x.toLocaleLowerCase()===((c=e.metric)==null?void 0:c.trim().toLocaleLowerCase())})||(p==null?void 0:p.best_metric)||v,O=((k=e.directions)==null?void 0:k.directions[y])==="lower_is_better"?"↓":"↑",U=y&&_.includes(y)?[y,..._.filter(x=>x!==y)]:_,G=U.length?l?U:U.slice(0,Math.max(1,d)):y?[y]:[],w=j.slice().sort((x,c)=>{const u=oe(x.metrics[y]),g=oe(c.metrics[y]);return u!==null&&g!==null?O==="↓"?u-g:g-u:u!==null?-1:g!==null?1:Ie(x,y)-Ie(c,y)});let W=null,A=0;const D=w.map((x,c)=>{const u=oe(x.metrics[y]);return u!==null&&u!==W&&(W=u,A=c+1),{evaluation:x,rank:u===null?null:A,isHighlighted:Pt(x,n)}}),{points:J,sota:Q,sotaModel:Z}=Lt(j,y,O),C=i===void 0?e.initialSummary:void 0,z=e.ready.evaluations&&e.ready.tasks&&e.ready.directions&&(!o||e.ready.metrics),ee={parameter_coverage_known:m.filter(x=>x.parameterCount!==null).length,parameter_coverage_total:m.length};return{currentTaskId:o,primaryTask:f,activeMetric:y,arrow:O,allowedMetrics:_,orderedMetrics:U,visibleMetrics:G,rows:D,chartPoints:J,highlightedEval:((K=D.find(x=>x.isHighlighted))==null?void 0:K.evaluation)||null,hiddenClosedEvals:h.hiddenClosed,hiddenClosedTopEval:h.topHiddenClosed,parameterBound:i,parameterCoverage:ee,hasParameterMetadata:ee.parameter_coverage_known>0,parameterFilters:Xe.map(x=>({...x,selected:i===x.maxParametersExclusive,disabled:i!==x.maxParametersExclusive&&Fe(m,x.maxParametersExclusive).length===0})),displayedMetric:z?y:C==null?void 0:C.metric,displayedSota:z?Q:C==null?void 0:C.value,displayedSotaModel:z?Z:C==null?void 0:C.model_name,isSummaryLoading:!z&&!C,isInitialFilteredViewLoading:i!==void 0&&!z}}function At(e,t,r,s=1,n=0){const i=e-t.fixed-(r?t.harness:0);if(t.metric<=0)return 1;const l=Math.floor(i/t.metric);if(l<s)return Math.max(1,l);const d=Math.floor((i-n)/t.metric);return Math.max(1,s,d)}function pe(e,t){return parseFloat(e.getPropertyValue(t))||0}function Bt(e){const t=getComputedStyle(e);return{fixed:["--bm-rank-width","--bm-model-width","--bm-parameters-width","--bm-paper-width","--bm-year-width"].reduce((r,s)=>r+pe(t,s),0),harness:pe(t,"--bm-harness-width"),metric:pe(t,"--bm-metric-width")}}const Dt=20;function Ae(e,t){return e?a.jsx(de,{title:e}):t||"—"}function Ht({datasetName:e,model:t,showHarness:r,setMetric:s,highlightRowRef:n,onFittingMetricCountChange:i}){const{rows:l,visibleMetrics:d,activeMetric:o,arrow:f}=t,[p,h]=F.useState(null);return F.useEffect(()=>{if(!p)return;const m=()=>{p.classList.toggle("has-horizontal-overflow",p.scrollWidth>p.clientWidth);const I=p.firstElementChild;if(!I)return;const $=p.clientWidth,_=Bt(I);p.classList.toggle("unpins-trailing-columns",$<_.fixed+_.metric);const T=document.documentElement,v=T.scrollHeight>T.clientHeight?0:Dt;i(N=>At($,_,r,N,v))},j=new ResizeObserver(m);return j.observe(p),p.firstElementChild&&j.observe(p.firstElementChild),m(),()=>j.disconnect()},[p,r,i]),a.jsx("div",{ref:h,className:"bm-table-scroll",role:"region","aria-label":`${e} leaderboard`,tabIndex:0,children:a.jsxs("table",{id:"benchmark-leaderboard",className:"bm-table",style:{"--bm-metric-count":d.length,"--bm-harness-count":r?1:0},children:[a.jsxs("caption",{className:"sr-only",children:[e," leaderboard"]}),a.jsxs("colgroup",{children:[a.jsx("col",{className:"bm-width-rank"}),a.jsx("col",{className:"bm-width-model"}),a.jsx("col",{className:"bm-width-parameters"}),r&&a.jsx("col",{className:"bm-width-harness"}),d.map(m=>a.jsx("col",{className:"bm-width-metric"},m)),a.jsx("col",{}),a.jsx("col",{className:"bm-width-year"})]}),a.jsx("thead",{children:a.jsxs("tr",{children:[a.jsx("th",{className:"col-rank",children:"Rank"}),a.jsx("th",{className:"col-model",children:"Model"}),a.jsxs("th",{className:"col-parameters",children:[a.jsx("span",{className:"bm-label-full",children:"Parameters"}),a.jsx("span",{className:"bm-label-short",children:"Params"})]}),r&&a.jsx("th",{className:"col-harness",children:"Harness"}),d.map(m=>{const j=m===o;return a.jsx("th",{className:`col-value ${j?"is-active":""}`,"aria-sort":j?f==="↓"?"ascending":"descending":"none",children:a.jsxs("button",{type:"button",className:"bm-metric-header",onClick:()=>s(m),"aria-pressed":j,title:`Sort by ${m}`,children:[m,j?` ${f}`:""]})},m)}),a.jsx("th",{className:"col-paper",children:"Paper"}),a.jsx("th",{className:"col-year",children:"Year"})]})}),a.jsx("tbody",{children:l.map(({evaluation:m,rank:j,isHighlighted:I})=>{var T;const $=m.paper_arxiv_id||m.paper_id,_=m.paper_title||(m.paper_arxiv_id?`arXiv:${m.paper_arxiv_id}`:null);return a.jsxs("tr",{ref:I?n:void 0,className:I?"is-highlighted":void 0,children:[a.jsx("td",{className:"col-rank",children:j??"—"}),a.jsxs("td",{className:"col-model",children:[I&&a.jsx("span",{className:"bm-row-marker","aria-hidden":"true"}),m.hf_model_url?a.jsx("a",{href:m.hf_model_url,target:"_blank",rel:"noopener noreferrer",className:"bm-model-link",title:`Open ${m.model_name||"model"} on Hugging Face`,children:m.model_name||"—"}):m.model_name||"—",m.is_open===!1&&a.jsx(gt,{}),(m.external??m.is_external)&&a.jsx(xt,{sourceUrl:m.source_url||m.external_source_url||m.result_url})]}),a.jsx("td",{className:"col-parameters",title:m.parameterCount===null?void 0:m.parameterCount.toLocaleString("en-US"),"aria-label":m.parameterCount===null?"Parameters unknown":`${m.parameterCount.toLocaleString("en-US")} parameters`,children:m.parameterCount===null?"—":Et(m.parameterCount)}),r&&a.jsx("td",{className:"col-harness",children:m.harness||"—"}),d.map(v=>{var O;const N=v===o,y=(O=m.metrics)==null?void 0:O[v];return a.jsx("td",{className:`col-value${N?" is-active":""}${N&&j===1?" is-best":""}`,children:y!=null&&y!==""?ce(y):"—"},v)}),a.jsx("td",{className:"col-paper",children:$?a.jsx(le,{to:`/paper/${$}`,title:m.paper_title||_||void 0,children:Ae(m.paper_title,_)}):Ae(m.paper_title,_)}),a.jsx("td",{className:"col-year",children:((T=m.evaluated_on||m.paper_published_date)==null?void 0:T.slice(0,4))||"—"})]},m.id)})})]})})}function Be(e){const t=e.length===7?`${e}-01`:e,r=new Date(t).getTime();return Number.isFinite(r)?r:0}const ge=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function xe(e){const t=new Date(e);return{year:t.getFullYear(),month:t.getMonth()}}function Vt(e,t){if(e===t){const{year:o,month:f}=xe(e);return[{timestamp:new Date(o,f,1).getTime(),key:`${o}-${f}`,label:`${ge[f]} ${o}`}]}const r=xe(e),s=xe(t);if(r.year===s.year){const o=s.month-r.month+1;let f=1;const p=12;o>p&&(f=Math.ceil(o/p));const h=[];for(let m=r.month;m<=s.month;m+=f)h.push({timestamp:new Date(r.year,m,1).getTime(),key:`${r.year}-${m}`,label:o<=3?`${ge[m]} ${r.year}`:ge[m]});return h}const n=s.year-r.year+1;let i=1;const l=12;n>l&&(i=Math.ceil(n/l));const d=[];for(let o=r.year;o<=s.year;o+=i)d.push({timestamp:new Date(o,0,1).getTime(),key:String(o),label:String(o)});return d}const Ot=({points:e,metric:t})=>{const r=ct(),[s,n]=F.useState(null),i=`${F.useId()}-label-halo`,l=880,d=320,o=60,f=30,p=40,h=50,m=e.map(c=>c.value),j=Math.min(...m),$=Math.max(...m)-j||1,_=l-o-f,T=d-p-h,v=e.map(c=>Be(c.date)),N=Math.min(...v),y=Math.max(...v),O=y-N||1,U=c=>N===y?o+_/2:o+(c-N)/O*_,G=e.map((c,u)=>{const g=U(Be(c.date)),E=(c.value-j)/$,L=p+T*(1-E);return{x:g,y:L,data:c,idx:u}}),w=G.filter(c=>c.data.isSota);let W="";if(w.length>=2){W=`M${w[0].x},${w[0].y}`;for(let c=1;c<w.length;c++){const u=w[c-1],g=w[c],E=(u.x+g.x)/2;W+=` C${E},${u.y} ${E},${g.y} ${g.x},${g.y}`}}const A=5.4,D=8,J=9,Q=c=>{const u=c.data.modelName||c.data.paperTitle||"";if(!u)return null;const g=u.length>22?u.slice(0,21)+"…":u,E=g.length*A;let L=c.x-E/2,P=c.x+E/2,H="middle";return L<o?(L=o,P=o+E,H="start"):P>l-f&&(P=l-f,L=P-E,H="end"),{x:H==="start"?o:H==="end"?l-f:c.x,y:c.y-J,text:g,anchor:H,left:L,right:P}},Z=[],C=w.length>0?Q(w[w.length-1]):null;let z=-1/0;for(let c=0;c<w.length-1;c++){const u=Q(w[c]);u&&(u.left<z+D||C&&u.right>C.left-D||(z=u.right,Z.push({x:u.x,y:u.y,text:u.text,anchor:u.anchor})))}C&&Z.push({x:C.x,y:C.y,text:C.text,anchor:C.anchor});const ee=Vt(N,y),X=5,k=c=>n(u=>u===c?null:u),K=c=>{c&&r(`/paper/${c}`)},x=(c,u)=>{const E=`${c.data.modelName||c.data.paperTitle||"Unknown model"}: ${ce(c.data.value)} on ${c.data.dateLabel}`,L=!!c.data.paperRouteId;return a.jsxs("g",{children:[u,a.jsx("circle",{cx:c.x,cy:c.y,r:"10",fill:"transparent",style:{cursor:L?"pointer":"default",outline:"none"},tabIndex:0,role:L?"link":"img","aria-label":E,onMouseEnter:()=>n(c.idx),onMouseLeave:()=>k(c.idx),onFocus:()=>n(c.idx),onBlur:()=>k(c.idx),onClick:()=>K(c.data.paperRouteId),onKeyDown:P=>{L&&(P.key==="Enter"||P.key===" ")&&(P.preventDefault(),K(c.data.paperRouteId))},children:a.jsx("title",{children:E})})]},c.idx)};return a.jsxs("svg",{width:"100%",viewBox:`0 0 ${l} ${d}`,style:{display:"block"},children:[a.jsx("defs",{children:a.jsxs("filter",{id:i,x:"-10%",y:"-30%",width:"120%",height:"160%",children:[a.jsx("feMorphology",{in:"SourceAlpha",operator:"dilate",radius:"1.5",result:"halo"}),a.jsx("feFlood",{style:{floodColor:"var(--bg-elevated)"}}),a.jsx("feComposite",{in2:"halo",operator:"in"}),a.jsxs("feMerge",{children:[a.jsx("feMergeNode",{}),a.jsx("feMergeNode",{in:"SourceGraphic"})]})]})}),a.jsx("text",{x:o-38,y:p+T/2,fontSize:"11",fontFamily:"var(--mono)",fill:"var(--ink-faint)",textAnchor:"middle",transform:`rotate(-90 ${o-38} ${p+T/2})`,children:t}),Array.from({length:X}).map((c,u)=>{const g=u/(X-1),E=p+T*(1-g),L=j+$*g;return a.jsxs("g",{children:[a.jsx("line",{x1:o,y1:E,x2:l-f,y2:E,stroke:"var(--hairline)",strokeWidth:"1"}),a.jsx("text",{x:o-10,y:E+4,fontSize:"11",fontFamily:"var(--mono)",fill:"var(--ink-faint)",textAnchor:"end",children:ce(L)})]},u)}),ee.map(c=>{const u=U(c.timestamp);return a.jsx("text",{x:u,y:d-h+18,fontSize:"11",fontFamily:"var(--mono)",fill:"var(--ink-soft)",textAnchor:"middle",children:c.label},c.key)}),G.filter(c=>!c.data.isSota).map(c=>{const u=s===c.idx;return x(c,a.jsx("circle",{cx:c.x,cy:c.y,r:u?3:2,fill:"var(--ink-faint)",opacity:u?1:.45,style:{transition:"r 0.12s ease, opacity 0.12s ease"}}))}),W&&a.jsx("path",{d:W,stroke:"var(--accent)",strokeWidth:"2",fill:"none",strokeLinejoin:"round",strokeLinecap:"round"}),w.map(c=>{const u=s===c.idx;return x(c,a.jsx("circle",{cx:c.x,cy:c.y,r:u?4.5:3,fill:u?"var(--accent)":"var(--bg-elevated)",stroke:"var(--accent)",strokeWidth:"1.5",style:{transition:"r 0.12s ease, fill 0.12s ease"}}))}),Z.map((c,u)=>a.jsx("text",{x:c.x,y:c.y,fontSize:"9.5",fontFamily:"var(--mono)",fill:"var(--ink-soft)",textAnchor:c.anchor,pointerEvents:"none",filter:`url(#${i})`,children:c.text},`label-${u}`)),s!==null&&G[s]&&(()=>{const c=G[s],u=c.data.modelName||c.data.paperTitle||"Unknown model",E=`${u.length>40?u.slice(0,39)+"…":u}: ${ce(c.data.value)}`,P=Math.max(120,Math.min(340,E.length*6.6+24)),H=30;let S=c.x-P/2;S<o&&(S=o),S+P>l-f&&(S=l-f-P);const q=c.y-H-14>=p?c.y-H-12:c.y+12;return a.jsxs("g",{pointerEvents:"none",children:[a.jsx("rect",{x:S,y:q,width:P,height:H,rx:"6",ry:"6",fill:"var(--bg-elevated)",stroke:"var(--hairline-strong)",strokeWidth:"1",style:{filter:"drop-shadow(0 2px 6px rgba(0,0,0,0.08))"}}),a.jsx("text",{x:S+12,y:q+19,fontSize:"12",fontFamily:"var(--sans)",fill:"var(--ink)",fontWeight:500,children:E})]})})()]})};function Ut(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;const r=document.implementation.createHTMLDocument(),s=r.createElement("base"),n=r.createElement("a");return r.head.appendChild(s),r.body.appendChild(n),t&&(s.href=t),n.href=e,n.href}const Wt=(()=>{let e=0;const t=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${t()}${e}`)})();function Y(e){const t=[];for(let r=0,s=e.length;r<s;r++)t.push(e[r]);return t}let ne=null;function Ye(e={}){return ne||(e.includeStyleProperties?(ne=e.includeStyleProperties,ne):(ne=Y(window.getComputedStyle(document.documentElement)),ne))}function ue(e,t){const s=(e.ownerDocument.defaultView||window).getComputedStyle(e).getPropertyValue(t);return s?parseFloat(s.replace("px","")):0}function zt(e){const t=ue(e,"border-left-width"),r=ue(e,"border-right-width");return e.clientWidth+t+r}function qt(e){const t=ue(e,"border-top-width"),r=ue(e,"border-bottom-width");return e.clientHeight+t+r}function Je(e,t={}){const r=t.width||zt(e),s=t.height||qt(e);return{width:r,height:s}}function Gt(){let e,t;try{t=process}catch{}const r=t&&t.env?t.env.devicePixelRatio:null;return r&&(e=parseInt(r,10),Number.isNaN(e)&&(e=1)),e||window.devicePixelRatio||1}const V=16384;function Qt(e){(e.width>V||e.height>V)&&(e.width>V&&e.height>V?e.width>e.height?(e.height*=V/e.width,e.width=V):(e.width*=V/e.height,e.height=V):e.width>V?(e.height*=V/e.width,e.width=V):(e.width*=V/e.height,e.height=V))}function Xt(e,t={}){return e.toBlob?new Promise(r=>{e.toBlob(r,t.type?t.type:"image/png",t.quality?t.quality:1)}):new Promise(r=>{const s=window.atob(e.toDataURL(t.type?t.type:void 0,t.quality?t.quality:void 0).split(",")[1]),n=s.length,i=new Uint8Array(n);for(let l=0;l<n;l+=1)i[l]=s.charCodeAt(l);r(new Blob([i],{type:t.type?t.type:"image/png"}))})}function he(e){return new Promise((t,r)=>{const s=new Image;s.onload=()=>{s.decode().then(()=>{requestAnimationFrame(()=>t(s))})},s.onerror=r,s.crossOrigin="anonymous",s.decoding="async",s.src=e})}async function Kt(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(t=>`data:image/svg+xml;charset=utf-8,${t}`)}async function Yt(e,t,r){const s="http://www.w3.org/2000/svg",n=document.createElementNS(s,"svg"),i=document.createElementNS(s,"foreignObject");return n.setAttribute("width",`${t}`),n.setAttribute("height",`${r}`),n.setAttribute("viewBox",`0 0 ${t} ${r}`),i.setAttribute("width","100%"),i.setAttribute("height","100%"),i.setAttribute("x","0"),i.setAttribute("y","0"),i.setAttribute("externalResourcesRequired","true"),n.appendChild(i),i.appendChild(e),Kt(n)}const B=(e,t)=>{if(e instanceof t)return!0;const r=Object.getPrototypeOf(e);return r===null?!1:r.constructor.name===t.name||B(r,t)};function Jt(e){const t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}function Zt(e,t){return Ye(t).map(r=>{const s=e.getPropertyValue(r),n=e.getPropertyPriority(r);return`${r}: ${s}${n?" !important":""};`}).join(" ")}function er(e,t,r,s){const n=`.${e}:${t}`,i=r.cssText?Jt(r):Zt(r,s);return document.createTextNode(`${n}{${i}}`)}function De(e,t,r,s){const n=window.getComputedStyle(e,r),i=n.getPropertyValue("content");if(i===""||i==="none")return;const l=Wt();try{t.className=`${t.className} ${l}`}catch{return}const d=document.createElement("style");d.appendChild(er(l,r,n,s)),t.appendChild(d)}function tr(e,t,r){De(e,t,":before",r),De(e,t,":after",r)}const He="application/font-woff",Ve="image/jpeg",rr={woff:He,woff2:He,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:Ve,jpeg:Ve,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function ar(e){const t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""}function je(e){const t=ar(e).toLowerCase();return rr[t]||""}function sr(e){return e.split(/,/)[1]}function we(e){return e.search(/^(data:)/)!==-1}function nr(e,t){return`data:${t};base64,${e}`}async function Ze(e,t,r){const s=await fetch(e,t);if(s.status===404)throw new Error(`Resource "${s.url}" not found`);const n=await s.blob();return new Promise((i,l)=>{const d=new FileReader;d.onerror=l,d.onloadend=()=>{try{i(r({res:s,result:d.result}))}catch(o){l(o)}},d.readAsDataURL(n)})}const be={};function ir(e,t,r){let s=e.replace(/\?.*/,"");return r&&(s=e),/ttf|otf|eot|woff2?/i.test(s)&&(s=s.replace(/.*\//,"")),t?`[${t}]${s}`:s}async function Se(e,t,r){const s=ir(e,t,r.includeQueryParams);if(be[s]!=null)return be[s];r.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());let n;try{const i=await Ze(e,r.fetchRequestInit,({res:l,result:d})=>(t||(t=l.headers.get("Content-Type")||""),sr(d)));n=nr(i,t)}catch(i){n=r.imagePlaceholder||"";let l=`Failed to fetch resource: ${e}`;i&&(l=typeof i=="string"?i:i.message),l&&console.warn(l)}return be[s]=n,n}async function lr(e){const t=e.toDataURL();return t==="data:,"?e.cloneNode(!1):he(t)}async function or(e,t){if(e.currentSrc){const i=document.createElement("canvas"),l=i.getContext("2d");i.width=e.clientWidth,i.height=e.clientHeight,l==null||l.drawImage(e,0,0,i.width,i.height);const d=i.toDataURL();return he(d)}const r=e.poster,s=je(r),n=await Se(r,s,t);return he(n)}async function cr(e,t){var r;try{if(!((r=e==null?void 0:e.contentDocument)===null||r===void 0)&&r.body)return await fe(e.contentDocument.body,t,!0)}catch{}return e.cloneNode(!1)}async function dr(e,t){return B(e,HTMLCanvasElement)?lr(e):B(e,HTMLVideoElement)?or(e,t):B(e,HTMLIFrameElement)?cr(e,t):e.cloneNode(et(e))}const mr=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SLOT",et=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SVG";async function ur(e,t,r){var s,n;if(et(t))return t;let i=[];return mr(e)&&e.assignedNodes?i=Y(e.assignedNodes()):B(e,HTMLIFrameElement)&&(!((s=e.contentDocument)===null||s===void 0)&&s.body)?i=Y(e.contentDocument.body.childNodes):i=Y(((n=e.shadowRoot)!==null&&n!==void 0?n:e).childNodes),i.length===0||B(e,HTMLVideoElement)||await i.reduce((l,d)=>l.then(()=>fe(d,r)).then(o=>{o&&t.appendChild(o)}),Promise.resolve()),t}function hr(e,t,r){const s=t.style;if(!s)return;const n=window.getComputedStyle(e);n.cssText?(s.cssText=n.cssText,s.transformOrigin=n.transformOrigin):Ye(r).forEach(i=>{let l=n.getPropertyValue(i);i==="font-size"&&l.endsWith("px")&&(l=`${Math.floor(parseFloat(l.substring(0,l.length-2)))-.1}px`),B(e,HTMLIFrameElement)&&i==="display"&&l==="inline"&&(l="block"),i==="d"&&t.getAttribute("d")&&(l=`path(${t.getAttribute("d")})`),s.setProperty(i,l,n.getPropertyPriority(i))})}function fr(e,t){B(e,HTMLTextAreaElement)&&(t.innerHTML=e.value),B(e,HTMLInputElement)&&t.setAttribute("value",e.value)}function pr(e,t){if(B(e,HTMLSelectElement)){const r=t,s=Array.from(r.children).find(n=>e.value===n.getAttribute("value"));s&&s.setAttribute("selected","")}}function gr(e,t,r){return B(t,Element)&&(hr(e,t,r),tr(e,t,r),fr(e,t),pr(e,t)),t}async function xr(e,t){const r=e.querySelectorAll?e.querySelectorAll("use"):[];if(r.length===0)return e;const s={};for(let i=0;i<r.length;i++){const d=r[i].getAttribute("xlink:href");if(d){const o=e.querySelector(d),f=document.querySelector(d);!o&&f&&!s[d]&&(s[d]=await fe(f,t,!0))}}const n=Object.values(s);if(n.length){const i="http://www.w3.org/1999/xhtml",l=document.createElementNS(i,"svg");l.setAttribute("xmlns",i),l.style.position="absolute",l.style.width="0",l.style.height="0",l.style.overflow="hidden",l.style.display="none";const d=document.createElementNS(i,"defs");l.appendChild(d);for(let o=0;o<n.length;o++)d.appendChild(n[o]);e.appendChild(l)}return e}async function fe(e,t,r){return!r&&t.filter&&!t.filter(e)?null:Promise.resolve(e).then(s=>dr(s,t)).then(s=>ur(e,s,t)).then(s=>gr(e,s,t)).then(s=>xr(s,t))}const tt=/url\((['"]?)([^'"]+?)\1\)/g,br=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,yr=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function wr(e){const t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}function vr(e){const t=[];return e.replace(tt,(r,s,n)=>(t.push(n),r)),t.filter(r=>!we(r))}async function jr(e,t,r,s,n){try{const i=r?Ut(t,r):t,l=je(t);let d;return n||(d=await Se(i,l,s)),e.replace(wr(t),`$1${d}$3`)}catch{}return e}function Sr(e,{preferredFontFormat:t}){return t?e.replace(yr,r=>{for(;;){const[s,,n]=br.exec(r)||[];if(!n)return"";if(n===t)return`src: ${s};`}}):e}function rt(e){return e.search(tt)!==-1}async function at(e,t,r){if(!rt(e))return e;const s=Sr(e,r);return vr(s).reduce((i,l)=>i.then(d=>jr(d,l,t,r)),Promise.resolve(s))}async function ie(e,t,r){var s;const n=(s=t.style)===null||s===void 0?void 0:s.getPropertyValue(e);if(n){const i=await at(n,null,r);return t.style.setProperty(e,i,t.style.getPropertyPriority(e)),!0}return!1}async function _r(e,t){await ie("background",e,t)||await ie("background-image",e,t),await ie("mask",e,t)||await ie("-webkit-mask",e,t)||await ie("mask-image",e,t)||await ie("-webkit-mask-image",e,t)}async function kr(e,t){const r=B(e,HTMLImageElement);if(!(r&&!we(e.src))&&!(B(e,SVGImageElement)&&!we(e.href.baseVal)))return;const s=r?e.src:e.href.baseVal,n=await Se(s,je(s),t);await new Promise((i,l)=>{e.onload=i,e.onerror=t.onImageErrorHandler?(...o)=>{try{i(t.onImageErrorHandler(...o))}catch(f){l(f)}}:l;const d=e;d.decode&&(d.decode=i),d.loading==="lazy"&&(d.loading="eager"),r?(e.srcset="",e.src=n):e.href.baseVal=n})}async function Cr(e,t){const s=Y(e.childNodes).map(n=>st(n,t));await Promise.all(s).then(()=>e)}async function st(e,t){B(e,Element)&&(await _r(e,t),await kr(e,t),await Cr(e,t))}function Er(e,t){const{style:r}=e;t.backgroundColor&&(r.backgroundColor=t.backgroundColor),t.width&&(r.width=`${t.width}px`),t.height&&(r.height=`${t.height}px`);const s=t.style;return s!=null&&Object.keys(s).forEach(n=>{r[n]=s[n]}),e}const Oe={};async function Ue(e){let t=Oe[e];if(t!=null)return t;const s=await(await fetch(e)).text();return t={url:e,cssText:s},Oe[e]=t,t}async function We(e,t){let r=e.cssText;const s=/url\(["']?([^"')]+)["']?\)/g,i=(r.match(/url\([^)]+\)/g)||[]).map(async l=>{let d=l.replace(s,"$1");return d.startsWith("https://")||(d=new URL(d,e.url).href),Ze(d,t.fetchRequestInit,({result:o})=>(r=r.replace(l,`url(${o})`),[l,o]))});return Promise.all(i).then(()=>r)}function ze(e){if(e==null)return[];const t=[],r=/(\/\*[\s\S]*?\*\/)/gi;let s=e.replace(r,"");const n=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const o=n.exec(s);if(o===null)break;t.push(o[0])}s=s.replace(n,"");const i=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,l="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",d=new RegExp(l,"gi");for(;;){let o=i.exec(s);if(o===null){if(o=d.exec(s),o===null)break;i.lastIndex=d.lastIndex}else d.lastIndex=i.lastIndex;t.push(o[0])}return t}async function Nr(e,t){const r=[],s=[];return e.forEach(n=>{if("cssRules"in n)try{Y(n.cssRules||[]).forEach((i,l)=>{if(i.type===CSSRule.IMPORT_RULE){let d=l+1;const o=i.href,f=Ue(o).then(p=>We(p,t)).then(p=>ze(p).forEach(h=>{try{n.insertRule(h,h.startsWith("@import")?d+=1:n.cssRules.length)}catch(m){console.error("Error inserting rule from remote css",{rule:h,error:m})}})).catch(p=>{console.error("Error loading remote css",p.toString())});s.push(f)}})}catch(i){const l=e.find(d=>d.href==null)||document.styleSheets[0];n.href!=null&&s.push(Ue(n.href).then(d=>We(d,t)).then(d=>ze(d).forEach(o=>{l.insertRule(o,l.cssRules.length)})).catch(d=>{console.error("Error loading remote stylesheet",d)})),console.error("Error inlining remote css file",i)}}),Promise.all(s).then(()=>(e.forEach(n=>{if("cssRules"in n)try{Y(n.cssRules||[]).forEach(i=>{r.push(i)})}catch(i){console.error(`Error while reading CSS rules from ${n.href}`,i)}}),r))}function Rr(e){return e.filter(t=>t.type===CSSRule.FONT_FACE_RULE).filter(t=>rt(t.style.getPropertyValue("src")))}async function Pr(e,t){if(e.ownerDocument==null)throw new Error("Provided element is not within a Document");const r=Y(e.ownerDocument.styleSheets),s=await Nr(r,t);return Rr(s)}function nt(e){return e.trim().replace(/["']/g,"")}function Mr(e){const t=new Set;function r(s){(s.style.fontFamily||getComputedStyle(s).fontFamily).split(",").forEach(i=>{t.add(nt(i))}),Array.from(s.children).forEach(i=>{i instanceof HTMLElement&&r(i)})}return r(e),t}async function $r(e,t){const r=await Pr(e,t),s=Mr(e);return(await Promise.all(r.filter(i=>s.has(nt(i.style.fontFamily))).map(i=>{const l=i.parentStyleSheet?i.parentStyleSheet.href:null;return at(i.cssText,l,t)}))).join(`
2
  `)}async function Tr(e,t){const r=t.fontEmbedCSS!=null?t.fontEmbedCSS:t.skipFonts?null:await $r(e,t);if(r){const s=document.createElement("style"),n=document.createTextNode(r);s.appendChild(n),e.firstChild?e.insertBefore(s,e.firstChild):e.appendChild(s)}}async function Lr(e,t={}){const{width:r,height:s}=Je(e,t),n=await fe(e,t,!0);return await Tr(n,t),await st(n,t),Er(n,t),await Yt(n,r,s)}async function Fr(e,t={}){const{width:r,height:s}=Je(e,t),n=await Lr(e,t),i=await he(n),l=document.createElement("canvas"),d=l.getContext("2d"),o=t.pixelRatio||Gt(),f=t.canvasWidth||r,p=t.canvasHeight||s;return l.width=f*o,l.height=p*o,t.skipAutoScale||Qt(l),l.style.width=`${f}`,l.style.height=`${p}`,t.backgroundColor&&(d.fillStyle=t.backgroundColor,d.fillRect(0,0,l.width,l.height)),d.drawImage(i,0,0,l.width,l.height),l}async function Ir(e,t={}){const r=await Fr(e,t);return await Xt(r)}const ve="#ffffff";function Ar(){return typeof window>"u"?ve:window.getComputedStyle(document.documentElement).getPropertyValue("--bg-elevated").trim()||ve}function Br(e){if(typeof window>"u")return ve;const t=window.getComputedStyle(e).backgroundColor;return!t||t==="rgba(0, 0, 0, 0)"||t==="transparent"?Ar():t}async function Dr(e){var r,s;if(typeof window>"u"||!((s=(r=window.navigator)==null?void 0:r.clipboard)!=null&&s.write))throw new Error("Clipboard image copy is not supported in this browser.");if(typeof window.ClipboardItem>"u")throw new Error("Clipboard image copy is not supported in this browser.");const t=await Ir(e,{pixelRatio:2,cacheBust:!0,backgroundColor:Br(e)});if(!t)throw new Error("Failed to render screenshot.");await window.navigator.clipboard.write([new window.ClipboardItem({"image/png":t})])}const it=({targetRef:e,label:t})=>{const{toast:r}=dt(),[s,n]=F.useState("idle"),i=F.useRef(null);F.useEffect(()=>()=>{i.current!==null&&window.clearTimeout(i.current)},[]);const l=F.useCallback(async()=>{const o=e.current;if(o){n("copying"),o.classList.add("is-capturing"),o.offsetHeight,await new Promise(f=>window.requestAnimationFrame(()=>f()));try{await Dr(o),n("copied"),r({title:"Screenshot copied",description:`Image of the ${t} copied to your clipboard.`}),i.current!==null&&window.clearTimeout(i.current),i.current=window.setTimeout(()=>n("idle"),1500)}catch(f){n("idle"),r({title:"Copy failed",description:f instanceof Error&&f.message?f.message:"Could not copy the screenshot to your clipboard.",variant:"destructive"})}finally{o.classList.remove("is-capturing")}}},[e,t,r]),d=s==="copied"?"Copied":s==="copying"?"Copying…":"Copy image";return a.jsxs("button",{type:"button",className:"bm-copy-btn",onClick:l,disabled:s==="copying","aria-label":`Copy ${t} screenshot to clipboard`,title:`Copy ${t} screenshot to clipboard`,children:[a.jsx(bt,{name:"copy",size:11}),d]})};function Hr({model:e,datasetName:t,hideClosed:r,setHideClosed:s,setMetric:n}){const i=F.useRef(null),{isInitialFilteredViewLoading:l,chartPoints:d,activeMetric:o,allowedMetrics:f,orderedMetrics:p,parameterBound:h}=e;return l||d.length===0?null:a.jsxs("div",{className:"bm-card",ref:i,children:[a.jsxs("div",{className:"bm-card-screenshot-header","aria-hidden":"true",children:[a.jsxs("div",{className:"bm-card-screenshot-title",children:[a.jsx("span",{className:"bm-card-screenshot-eyebrow",children:"Benchmark"}),a.jsx("span",{className:"bm-card-screenshot-name",children:t})]}),a.jsxs("div",{className:"bm-card-screenshot-brand",children:[a.jsxs("span",{className:"brand",children:[a.jsx("span",{className:"brand-mark"}),a.jsxs("span",{className:"brand-name",children:["Papers ",a.jsx("em",{children:"With Code"})]})]}),a.jsx("span",{className:"bm-card-screenshot-url",children:"paperswithcode.co"})]})]}),a.jsxs("div",{className:"bm-card-head",children:[a.jsx("h2",{className:"bm-card-title",children:"SOTA progression"}),a.jsxs("div",{className:"bm-card-actions",children:[f.length>1&&a.jsxs("label",{className:"bm-view-select",children:[a.jsx("span",{className:"bm-view-select-label",children:"View"}),a.jsx("select",{value:o,onChange:m=>n(m.target.value),children:p.map(m=>a.jsx("option",{value:m,children:m},m))})]}),a.jsxs("label",{className:"bm-closed-toggle",title:"Show or hide evaluations of closed-source models",children:[a.jsx(Qe,{className:"bm-closed-toggle-switch",checked:!r,onCheckedChange:m=>{s(!m)},"aria-label":"Show closed-source models"}),a.jsx("span",{className:"bm-closed-toggle-label",children:"Closed-source"})]}),a.jsx(it,{targetRef:i,label:"SOTA chart"})]})]}),a.jsx("div",{className:"bm-chart-wrap",children:a.jsx(Ot,{points:d,metric:o})}),a.jsxs("div",{className:"bm-chart-foot",children:[a.jsx("span",{className:"legend-dot"}),h===void 0?"All models":"Filtered models"," over time · highlighted dots track the running best · hover for the model · click to open the paper"]})]})}const ye="filter",qe="open-source";function Vr(e){if(!e)return null;const t=e.trim(),r=t.match(/^https?:\/\/(?:www\.)?arxiv\.org\/(?:abs|pdf)\/([^/?#]+)/i);if(r!=null&&r[1])return r[1].replace(/\.pdf$/i,"");const s=t.match(/^(?:https?:\/\/(?:www\.)?paperswithcode\.co)?\/paper\/([^/?#]+)/i);return(s==null?void 0:s[1])??null}function Ge(e,t){return e?a.jsx(de,{title:e}):t||"—"}const ca=()=>{var _e,ke,Ce,Ee,Ne,Re,Pe,Me;const{datasetSlug:e}=mt(),[t,r]=ut(),s=t.get("task")||void 0,n=t.get("eval")||void 0,i=Ct(t.get("max_parameters_exclusive")),{preferences:l,setHideClosedSourceEvals:d}=pt(),o=t.get(ye)===qe||l.hide_closed_source_evals,f=F.useRef(null),p=F.useRef(!1),h=F.useRef(null),[m,j]=F.useState(null),I=`${e}:${s||""}`,$=m===I,[_,T]=F.useState(1),v=te(se.datasetPage(e,{include_paper:!0,task:s,is_open:o?!0:void 0}));_t(v.data&&kt(v.data.name));const N=te(ht.byDataset((_e=v.data)==null?void 0:_e.id)),y=te(se.datasetTasks((ke=v.data)==null?void 0:ke.id)),O=te(se.metricDirections()),U=Ke(y.data||[],N.data||[],s,n),G=te({...se.taskBenchmarkTrends(U??void 0,{limit:100,min_recent_papers:0,is_open:o?!0:void 0}),enabled:!!((Ce=v.data)!=null&&Ce.id)}),w=F.useMemo(()=>{var b;return(((b=G.data)==null?void 0:b.results)||[]).find(M=>{var R;return M.id===((R=v.data)==null?void 0:R.id)})||null},[G.data,(Ee=v.data)==null?void 0:Ee.id]),W=te(se.leaderboardMetrics((Ne=v.data)==null?void 0:Ne.id,U??void 0)),A=It({evaluations:N.data||[],tasks:y.data||[],configuredMetrics:W.data||[],directions:O.data,initialSummary:(Re=v.data)==null?void 0:Re.leaderboard_summary,taskSlug:s,highlightEvalId:n,metric:t.get("metric")||void 0,hideClosed:o,parameterBound:i,showMoreMetrics:$,fittingMetricCount:_,ready:{evaluations:N.isSuccess,tasks:y.isSuccess,directions:O.isSuccess,metrics:W.isSuccess}}),{primaryTask:D,hiddenClosedEvals:J,hiddenClosedTopEval:Q,isSummaryLoading:Z,displayedMetric:C,displayedSota:z,displayedSotaModel:ee,isInitialFilteredViewLoading:X,highlightedEval:k,hasParameterMetadata:K,parameterCoverage:x,orderedMetrics:c}=A;F.useEffect(()=>{if(p.current||!n||!N.data||N.data.length===0)return;const b=f.current;b&&(p.current=!0,b.scrollIntoView({behavior:"smooth",block:"start"}))},[n,N.data]);const u=te(se.area(D==null?void 0:D.area_id));if(v.isLoading)return a.jsxs("div",{className:"page",children:[a.jsx(me,{className:"h-12 w-1/2 mb-6"}),a.jsx(me,{className:"h-64 w-full"})]});if(!v.data)return St([v.error],"Failed to load this benchmark. Please try again.")??a.jsx(jt,{});const g=v.data,E=!!g.supports_harness,L=b=>{r(M=>{const R=new URLSearchParams(M);return b===void 0?R.delete("max_parameters_exclusive"):R.set("max_parameters_exclusive",String(b)),R})},P=b=>{r(M=>{const R=new URLSearchParams(M);return b?R.set(ye,qe):R.delete(ye),R}),d(b)},H=b=>{r(M=>{const R=new URLSearchParams(M);return R.set("metric",b),R})},S=g.introducing_paper??void 0,re=(S==null?void 0:S.arxiv_id)||(S==null?void 0:S.id)||Vr(g.paper_url),q=(S==null?void 0:S.title)||g.introducing_paper_title||null,ae=((Pe=S==null?void 0:S.published)==null?void 0:Pe.slice(0,4))||g.introduced_year||null,lt=!!re||!!g.paper_url||!!q,ot=S!=null&&S.arxiv_id||(Me=g.paper_url)!=null&&Me.match(/^https?:\/\/(?:www\.)?arxiv\.org\//i)?`arXiv:${re}`:`Paper ${re}`;return a.jsx("div",{className:"page",children:a.jsxs("div",{className:"bm-page",children:[a.jsxs("div",{className:"breadcrumb",children:[a.jsx(le,{to:"/tasks",children:"Tasks"}),u.data&&a.jsxs(a.Fragment,{children:[a.jsx("span",{className:"sep",children:"/"}),a.jsx(le,{to:`/tasks#area-${vt(u.data.name)}`,children:u.data.name})]}),D&&a.jsxs(a.Fragment,{children:[a.jsx("span",{className:"sep",children:"/"}),a.jsx(le,{to:`/tasks/${D.slug||D.id}`,children:D.name})]}),a.jsx("span",{className:"sep",children:"/"}),a.jsx("span",{style:{color:"var(--accent-text)"},children:g.name})]}),a.jsxs("div",{className:"bm-title-row",children:[a.jsx("h1",{className:"bm-title",children:g.name}),w&&a.jsxs("div",{className:"bm-title-trend","aria-label":`${g.name} reporting trend`,children:[a.jsx(yt,{history:w.history,benchmarkName:w.name}),a.jsxs("span",{className:"bm-title-trend-summary",children:[a.jsx("strong",{children:w.recent_paper_count})," ",w.recent_paper_count===1?"paper":"papers",w.rate_change==null?w.recent_paper_count>0&&a.jsx("span",{className:"benchmark-trend-change is-new",children:"new"}):a.jsxs("span",{className:`benchmark-trend-change ${w.rate_change>=1?"is-up":"is-down"}`,children:[w.rate_change>=1?"↑":"↓"," ",w.rate_change.toFixed(1),"×"]})]})]})]}),a.jsx(ft,{kind:"benchmark",entityId:g.id}),a.jsxs("div",{className:"bm-subtitle",children:[Z?a.jsx(me,{className:"h-5 w-64 bm-summary-skeleton","aria-label":"Loading benchmark summary"}):a.jsxs("span",{children:[C&&a.jsxs(a.Fragment,{children:[a.jsx("span",{className:"metric-tag",children:C}),a.jsx("span",{style:{color:"var(--hairline-strong)",margin:"0 8px"},children:"·"})]}),ee?a.jsxs("span",{children:["Best: ",a.jsx("span",{className:"best-name",children:ce(z)})," by ",a.jsx("span",{className:"best-name",style:{fontStyle:"normal"},children:ee})]}):a.jsxs("span",{children:[A.rows.length," evaluations"]})]}),g.hf_url&&a.jsxs("a",{className:"bm-action-btn",href:g.hf_url,target:"_blank",rel:"noopener noreferrer",children:[a.jsx("span",{"aria-hidden":"true",children:"🤗"})," View on Hugging Face"]})]}),g.description&&a.jsx("p",{className:"bm-description",children:g.description}),o&&J.length>0&&a.jsxs("div",{className:"bm-hidden-closed-notice",children:[a.jsxs("span",{children:[J.length," closed-source ",J.length===1?"row is":"rows are"," hidden",Q!=null&&Q.model_name?a.jsxs(a.Fragment,{children:[", including ",a.jsx("strong",{children:Q.model_name})]}):null,"."]}),a.jsx("button",{type:"button",className:"bm-hidden-closed-action",onClick:()=>P(!1),children:"Show closed-source"})]}),lt&&a.jsxs("div",{className:"method-source",style:{marginTop:0,marginBottom:18},children:[a.jsx("span",{className:"method-source-label",children:"Source"}),re?a.jsxs(le,{to:`/paper/${re}`,target:"_blank",rel:"noopener noreferrer",className:"method-source-link",children:[a.jsx("span",{className:"method-source-title",children:q?a.jsx(de,{title:q}):ot}),ae&&a.jsx("span",{className:"method-source-meta",children:ae})]}):g.paper_url?a.jsxs("a",{href:wt(g.paper_url)??void 0,target:"_blank",rel:"noopener noreferrer",className:"method-source-link",children:[a.jsx("span",{className:"method-source-title",children:q?a.jsx(de,{title:q}):g.paper_url}),ae&&a.jsx("span",{className:"method-source-meta",children:ae})]}):a.jsxs("div",{className:"method-source-link is-static",children:[a.jsx("span",{className:"method-source-title",children:q?a.jsx(de,{title:q}):null}),ae&&a.jsx("span",{className:"method-source-meta",children:ae})]})]}),a.jsx(Hr,{model:A,datasetName:g.name,hideClosed:o,setHideClosed:P,setMetric:H}),k&&(()=>{var Te,Le;const b=k.paper_arxiv_id||k.paper_id,M=k.paper_title||(k.paper_arxiv_id?`arXiv:${k.paper_arxiv_id}`:null),R=k.best_metric&&((Te=k.metrics)==null?void 0:Te[k.best_metric])!==void 0?k.best_metric:A.activeMetric,$e=(Le=k.metrics)==null?void 0:Le[R];return a.jsxs("div",{className:"bm-highlight-banner",role:"status",children:[a.jsx("span",{className:"bm-highlight-dot","aria-hidden":"true"}),a.jsxs("div",{className:"bm-highlight-text",children:[a.jsx("span",{className:"bm-highlight-label",children:"Comparing result"}),a.jsxs("span",{className:"bm-highlight-paper",children:[k.model_name||M||"—",k.harness?` · ${k.harness}`:""]}),a.jsxs("span",{className:"bm-highlight-meta",children:[$e!==void 0&&R?a.jsxs(a.Fragment,{children:[R,": ",ce($e),M?" · ":""]}):null,b?a.jsx(le,{to:`/paper/${b}`,children:Ge(k.paper_title,M)}):Ge(k.paper_title,M)]})]})]})})(),a.jsxs("div",{className:"bm-card",ref:h,children:[a.jsxs("div",{className:"bm-card-screenshot-header","aria-hidden":"true",children:[a.jsxs("div",{className:"bm-card-screenshot-title",children:[a.jsx("span",{className:"bm-card-screenshot-eyebrow",children:"Benchmark"}),a.jsx("span",{className:"bm-card-screenshot-name",children:g.name})]}),a.jsxs("div",{className:"bm-card-screenshot-brand",children:[a.jsxs("span",{className:"brand",children:[a.jsx("span",{className:"brand-mark"}),a.jsxs("span",{className:"brand-name",children:["Papers ",a.jsx("em",{children:"With Code"})]})]}),a.jsx("span",{className:"bm-card-screenshot-url",children:"paperswithcode.co"})]})]}),a.jsxs("div",{className:"bm-card-head",children:[a.jsx("h2",{className:"bm-card-title",children:"Leaderboard"}),a.jsxs("div",{className:"bm-card-actions",children:[A.allowedMetrics.length>1&&a.jsxs("label",{className:"bm-view-select",children:[a.jsx("span",{className:"bm-view-select-label",children:"View"}),a.jsx("select",{value:A.activeMetric,onChange:b=>H(b.target.value),children:c.map(b=>a.jsx("option",{value:b,children:b},b))})]}),a.jsxs("label",{className:"bm-closed-toggle",title:"Show or hide evaluations of closed-source models",children:[a.jsx(Qe,{className:"bm-closed-toggle-switch",checked:!o,onCheckedChange:b=>P(!b),"aria-label":"Show closed-source models"}),a.jsx("span",{className:"bm-closed-toggle-label",children:"Closed-source"})]}),!X&&!K&&N.isSuccess?a.jsx("span",{className:"bm-parameter-unavailable",children:"Parameter metadata unavailable"}):null,a.jsx(it,{targetRef:h,label:"leaderboard"})]})]}),!X&&K&&a.jsxs("div",{className:"bm-parameter-filter-bar",children:[a.jsx("span",{className:"bm-parameter-filter-label",children:"Parameters Size"}),a.jsx("div",{className:"bm-parameter-filter-options",role:"group","aria-label":"Filter leaderboard by parameter size",children:A.parameterFilters.map(b=>{const{selected:M,disabled:R}=b;return a.jsx("button",{type:"button",className:`bm-parameter-filter-option${M?" is-active":""}`,"aria-pressed":M,disabled:R,onClick:()=>L(b.maxParametersExclusive),children:b.label},b.label)})}),a.jsxs("span",{className:"bm-parameter-coverage",children:["Parameters known for ",x.parameter_coverage_known," of ",x.parameter_coverage_total," entries"]})]}),N.isLoading||X?a.jsx("div",{style:{padding:16},children:Array.from({length:5}).map((b,M)=>a.jsx(me,{className:"h-10 w-full mb-2"},M))}):A.rows.length===0?i?a.jsxs("div",{className:"no-results",children:["No known parameter counts match this filter. "," ",a.jsx("button",{type:"button",className:"bm-empty-filter-action",onClick:()=>L(void 0),children:"Show all"})]}):a.jsx("div",{className:"no-results",children:"No evaluations submitted yet."}):a.jsxs(a.Fragment,{children:[c.length>_&&a.jsxs("div",{className:"bm-metric-columns-control",children:[a.jsx("button",{type:"button",className:"bm-metric-columns-toggle","aria-expanded":$,"aria-controls":"benchmark-leaderboard",onClick:()=>j($?null:I),children:$?"Show fewer metrics":`Show more metrics (${c.length-_})`}),$&&a.jsx("span",{children:"Scroll metrics horizontally; model and paper details stay visible."})]}),a.jsx(Ht,{datasetName:g.name,model:A,showHarness:E,setMetric:H,highlightRowRef:f,onFittingMetricCountChange:T})]})]})]})})};export{ca as default};
assets/{BenchmarkTrendSparkline-DsB2YdnJ.js → BenchmarkTrendSparkline-e2Hr_BzC.js} RENAMED
@@ -1 +1 @@
1
- import{i as C,j as t}from"./index-2xE415-f.js";const g=112,p=42,o=5,i=5,b=new Intl.DateTimeFormat("en",{month:"short",timeZone:"UTC"}),y=(e,d)=>{const r=new Date(`${e}T00:00:00Z`),n=new Date(`${d}T00:00:00Z`);return r.getUTCMonth()===n.getUTCMonth()?`${b.format(r)} ${r.getUTCDate()}–${n.getUTCDate()}`:`${b.format(r)} ${r.getUTCDate()}–${b.format(n)} ${n.getUTCDate()}`},I=({history:e,benchmarkName:d,interactive:r=!1})=>{const[n,x]=C.useState(null),h=e.map(s=>s.paper_count),M=Math.max(1,...h),f=g-o*2,T=p-i*2,v=h.length>1?f/(h.length-1):0,a=h.map((s,c)=>({x:o+v*c,y:i+T-s/M*T})),$=a.map(({x:s,y:c})=>`${s},${c}`).join(" "),_=a.length?`${o},${p-i} ${$} ${a[a.length-1].x},${p-i}`:"",D=h.reduce((s,c)=>s+c,0),u=49,N=14,m=n==null?null:a[n],j=m?Math.min(g-o-u,Math.max(o,m.x-u/2)):0,k=m?m.y>p/2?m.y-N-3:m.y+3:0;return t.jsxs("svg",{className:`benchmark-trend-sparkline${r?" is-interactive":""}`,viewBox:`0 0 ${g} ${p}`,role:r?"group":"img","aria-label":`${d}: ${D} reporting papers across the displayed trend history`,children:[t.jsxs("title",{children:[d,": ",D," reporting papers across the displayed trend history"]}),t.jsx("line",{className:"benchmark-trend-axis",x1:o,y1:p-i,x2:g-o,y2:p-i}),t.jsx("line",{className:"benchmark-trend-axis",x1:o,y1:i,x2:o,y2:p-i}),_&&t.jsx("polygon",{className:"benchmark-trend-area",points:_}),$&&t.jsx("polyline",{className:"benchmark-trend-line",points:$}),r?a.map(({x:s,y:c},l)=>t.jsxs("g",{className:"benchmark-trend-point",tabIndex:0,role:"img","aria-label":`${y(e[l].start_date,e[l].end_date)}: ${e[l].paper_count} ${e[l].paper_count===1?"paper":"papers"}`,onMouseEnter:()=>x(l),onMouseLeave:()=>x(null),onFocus:()=>x(l),onBlur:()=>x(null),children:[t.jsx("circle",{className:"benchmark-trend-point-hit",cx:s,cy:c,r:"5"}),t.jsx("circle",{className:"benchmark-trend-point-mark",cx:s,cy:c,r:"1.8"})]},`${e[l].start_date}-${e[l].end_date}`)):a.length>0&&t.jsx("circle",{className:"benchmark-trend-dot",cx:a[a.length-1].x,cy:a[a.length-1].y,r:"2.6"}),m&&n!=null&&t.jsxs("g",{className:"benchmark-trend-tooltip",pointerEvents:"none",children:[t.jsx("rect",{x:j,y:k,width:u,height:N,rx:"2"}),t.jsx("text",{x:j+3,y:k+5.4,children:y(e[n].start_date,e[n].end_date)}),t.jsxs("text",{className:"benchmark-trend-tooltip-value",x:j+3,y:k+11,children:[e[n].paper_count," ",e[n].paper_count===1?"paper":"papers"]})]})]})};export{I as B};
 
1
+ import{i as C,j as t}from"./index-CqLopXcE.js";const g=112,p=42,o=5,i=5,b=new Intl.DateTimeFormat("en",{month:"short",timeZone:"UTC"}),y=(e,d)=>{const r=new Date(`${e}T00:00:00Z`),n=new Date(`${d}T00:00:00Z`);return r.getUTCMonth()===n.getUTCMonth()?`${b.format(r)} ${r.getUTCDate()}–${n.getUTCDate()}`:`${b.format(r)} ${r.getUTCDate()}–${b.format(n)} ${n.getUTCDate()}`},I=({history:e,benchmarkName:d,interactive:r=!1})=>{const[n,x]=C.useState(null),h=e.map(s=>s.paper_count),M=Math.max(1,...h),f=g-o*2,T=p-i*2,v=h.length>1?f/(h.length-1):0,a=h.map((s,c)=>({x:o+v*c,y:i+T-s/M*T})),$=a.map(({x:s,y:c})=>`${s},${c}`).join(" "),_=a.length?`${o},${p-i} ${$} ${a[a.length-1].x},${p-i}`:"",D=h.reduce((s,c)=>s+c,0),u=49,N=14,m=n==null?null:a[n],j=m?Math.min(g-o-u,Math.max(o,m.x-u/2)):0,k=m?m.y>p/2?m.y-N-3:m.y+3:0;return t.jsxs("svg",{className:`benchmark-trend-sparkline${r?" is-interactive":""}`,viewBox:`0 0 ${g} ${p}`,role:r?"group":"img","aria-label":`${d}: ${D} reporting papers across the displayed trend history`,children:[t.jsxs("title",{children:[d,": ",D," reporting papers across the displayed trend history"]}),t.jsx("line",{className:"benchmark-trend-axis",x1:o,y1:p-i,x2:g-o,y2:p-i}),t.jsx("line",{className:"benchmark-trend-axis",x1:o,y1:i,x2:o,y2:p-i}),_&&t.jsx("polygon",{className:"benchmark-trend-area",points:_}),$&&t.jsx("polyline",{className:"benchmark-trend-line",points:$}),r?a.map(({x:s,y:c},l)=>t.jsxs("g",{className:"benchmark-trend-point",tabIndex:0,role:"img","aria-label":`${y(e[l].start_date,e[l].end_date)}: ${e[l].paper_count} ${e[l].paper_count===1?"paper":"papers"}`,onMouseEnter:()=>x(l),onMouseLeave:()=>x(null),onFocus:()=>x(l),onBlur:()=>x(null),children:[t.jsx("circle",{className:"benchmark-trend-point-hit",cx:s,cy:c,r:"5"}),t.jsx("circle",{className:"benchmark-trend-point-mark",cx:s,cy:c,r:"1.8"})]},`${e[l].start_date}-${e[l].end_date}`)):a.length>0&&t.jsx("circle",{className:"benchmark-trend-dot",cx:a[a.length-1].x,cy:a[a.length-1].y,r:"2.6"}),m&&n!=null&&t.jsxs("g",{className:"benchmark-trend-tooltip",pointerEvents:"none",children:[t.jsx("rect",{x:j,y:k,width:u,height:N,rx:"2"}),t.jsx("text",{x:j+3,y:k+5.4,children:y(e[n].start_date,e[n].end_date)}),t.jsxs("text",{className:"benchmark-trend-tooltip-value",x:j+3,y:k+11,children:[e[n].paper_count," ",e[n].paper_count===1?"paper":"papers"]})]})]})};export{I as B};
assets/{CatalogEntityPreviewLink-Br2W1MKt.js → CatalogEntityPreviewLink-BEEX6c5n.js} RENAMED
@@ -1 +1 @@
1
- import{ar as d,ab as u,b as m,j as s,L as h,ao as g,O as l}from"./index-2xE415-f.js";import{H as f,a as w,b as k}from"./hover-card-CZZ0A1FG.js";const y=new Set(["github.com","www.github.com"]);function R(r){let a;try{a=new URL(r)}catch{return null}if(a.protocol!=="https:"||!y.has(a.hostname))return null;const n=a.pathname.split("/").filter(Boolean);if(n.length!==2)return null;let t,e;try{t=decodeURIComponent(n[0]),e=decodeURIComponent(n[1]).replace(/\.git$/,"")}catch{return null}if(!/^[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,38})$/.test(t)||!/^[a-zA-Z0-9._-]{1,100}$/.test(e))return null;const o=`${t}/${e}`,i=[t,e].map(encodeURIComponent).join("/");return{owner:t,repository:e,repoId:o,url:`https://github.com/${i}`}}async function E(r,a){const n=[r.owner,r.repository].map(encodeURIComponent).join("/"),t=await fetch(d(`/api/v1/github/repositories/${n}/preview`),{signal:a});if(!t.ok)throw new Error(`GitHub repository lookup failed: ${t.status}`);const e=await t.json();return{description:typeof e.description=="string"?e.description:null,stars:typeof e.stars=="number"?e.stars:0,forks:typeof e.forks=="number"?e.forks:0,language:typeof e.language=="string"?e.language:null,archived:e.archived===!0,avatarUrl:typeof e.avatar_url=="string"?e.avatar_url:""}}function H(r){const a=r.trim();if(!a)return null;let n=a;!n.startsWith("http://")&&!n.startsWith("https://")&&(n=`https://${n}`);try{const t=new URL(n);if(t.hostname.toLowerCase()!=="github.com")return null;const e=t.pathname.split("/").filter(Boolean);if(e.length<2)return null;const o=e[0].toLowerCase();let i=e[1].toLowerCase();return i.endsWith(".git")&&(i=i.slice(0,-4)),`https://github.com/${o}/${i}`}catch{return null}}const v=/^(task|method|benchmark):([A-Za-z0-9][A-Za-z0-9._-]{0,199})$/;function L(r){const a=v.exec(r);return a?{kind:a[1],slug:a[2]}:null}const T=r=>/^(task|method|benchmark):/.test(r),b={task:"/tasks/",method:"/methods/",benchmark:"/benchmark/",framework:"/papers?framework="},C={task:"Task",method:"Method",benchmark:"Benchmark",framework:"Framework"},_={task:["paper","papers"],method:["paper","papers"],benchmark:["entry","entries"],framework:["paper","papers"]};async function U({kind:r,slug:a}){if(r==="task"){const t=await l.getTask(a);return{name:t.name,description:t.description??null,imageUrl:t.image_url??null,count:t.paper_count??null,detail:null}}if(r==="method"){const t=await l.getMethod(a);return{name:t.full_name||t.name,description:t.description??null,imageUrl:t.image_url??null,count:t.paper_count??null,detail:t.introduced_year?`Introduced ${t.introduced_year}`:null}}if(r==="framework"){const e=(await l.frameworkCatalog()).domains.flatMap(o=>o.categories).flatMap(o=>o.frameworks).find(o=>o.slug===a);if(!e)throw new Error(`Unknown framework ${a}`);return{name:e.name,description:e.description,imageUrl:null,count:e.paper_count,detail:e.organization_name??null}}const n=await l.getDatasetBySlug(a);return{name:n.full_name||n.name,description:n.description??null,imageUrl:null,count:n.paper_count??null,detail:n.introduced_year?`Introduced ${n.introduced_year}`:null}}function j(r){return r.replace(/!?\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/[*_`#>]+/g,"").replace(/\s+/g," ").trim()}const $=()=>typeof window.matchMedia=="function"&&window.matchMedia("(hover: none), (pointer: coarse)").matches,x=({kind:r,preview:a})=>{const[n,t]=u.useState(!1),e=g(a.imageUrl),o=[a.count!=null?`${a.count.toLocaleString()} ${_[r][a.count===1?0:1]}`:null,a.detail].filter(Boolean);return s.jsxs("div",{className:"catalog-preview-card",children:[e&&!n&&s.jsx("img",{className:"catalog-preview-image","data-testid":"catalog-preview-image",src:e,alt:"",loading:"lazy",decoding:"async",onError:()=>t(!0)}),s.jsxs("div",{className:"catalog-preview-meta",children:[s.jsx("span",{className:"catalog-preview-kind",children:C[r]}),s.jsx("strong",{children:a.name}),a.description&&s.jsx("p",{children:j(a.description)}),o.length>0&&s.jsx("span",{className:"catalog-preview-stats",children:o.join(" · ")})]})]})},z=({entity:r,children:a,className:n="chat-paper-link",newTab:t=!0,initialPreview:e})=>{const[o,i]=u.useState(!1),c=m({queryKey:["chat-catalog-preview",r.kind,r.slug],queryFn:()=>U(r),initialData:e,enabled:o&&!e,staleTime:10*60*1e3,gcTime:30*60*1e3,retry:!1});return s.jsxs(f,{open:o,onOpenChange:p=>{(!p||!$())&&i(p)},openDelay:150,closeDelay:100,children:[s.jsx(w,{asChild:!0,children:s.jsx(h,{className:n,to:`${b[r.kind]}${encodeURIComponent(r.slug)}`,target:t?"_blank":void 0,rel:t?"noopener noreferrer":void 0,onClick:()=>i(!1),children:a})}),s.jsx(k,{className:"catalog-preview-pop",side:"bottom",align:"start",collisionPadding:12,children:c.data?s.jsx(x,{kind:r.kind,preview:c.data}):c.isError?s.jsx("div",{className:"paper-preview-status",children:"Preview unavailable"}):s.jsx("div",{className:"paper-preview-status","aria-live":"polite",children:"Loading preview…"})})]})};export{z as C,R as a,E as f,T as i,H as n,L as p};
 
1
+ import{ar as d,ab as u,b as m,j as s,L as h,ao as g,O as l}from"./index-CqLopXcE.js";import{H as f,a as w,b as k}from"./hover-card-CcViKpG6.js";const y=new Set(["github.com","www.github.com"]);function R(r){let a;try{a=new URL(r)}catch{return null}if(a.protocol!=="https:"||!y.has(a.hostname))return null;const n=a.pathname.split("/").filter(Boolean);if(n.length!==2)return null;let t,e;try{t=decodeURIComponent(n[0]),e=decodeURIComponent(n[1]).replace(/\.git$/,"")}catch{return null}if(!/^[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,38})$/.test(t)||!/^[a-zA-Z0-9._-]{1,100}$/.test(e))return null;const o=`${t}/${e}`,i=[t,e].map(encodeURIComponent).join("/");return{owner:t,repository:e,repoId:o,url:`https://github.com/${i}`}}async function E(r,a){const n=[r.owner,r.repository].map(encodeURIComponent).join("/"),t=await fetch(d(`/api/v1/github/repositories/${n}/preview`),{signal:a});if(!t.ok)throw new Error(`GitHub repository lookup failed: ${t.status}`);const e=await t.json();return{description:typeof e.description=="string"?e.description:null,stars:typeof e.stars=="number"?e.stars:0,forks:typeof e.forks=="number"?e.forks:0,language:typeof e.language=="string"?e.language:null,archived:e.archived===!0,avatarUrl:typeof e.avatar_url=="string"?e.avatar_url:""}}function H(r){const a=r.trim();if(!a)return null;let n=a;!n.startsWith("http://")&&!n.startsWith("https://")&&(n=`https://${n}`);try{const t=new URL(n);if(t.hostname.toLowerCase()!=="github.com")return null;const e=t.pathname.split("/").filter(Boolean);if(e.length<2)return null;const o=e[0].toLowerCase();let i=e[1].toLowerCase();return i.endsWith(".git")&&(i=i.slice(0,-4)),`https://github.com/${o}/${i}`}catch{return null}}const v=/^(task|method|benchmark):([A-Za-z0-9][A-Za-z0-9._-]{0,199})$/;function L(r){const a=v.exec(r);return a?{kind:a[1],slug:a[2]}:null}const T=r=>/^(task|method|benchmark):/.test(r),b={task:"/tasks/",method:"/methods/",benchmark:"/benchmark/",framework:"/papers?framework="},C={task:"Task",method:"Method",benchmark:"Benchmark",framework:"Framework"},_={task:["paper","papers"],method:["paper","papers"],benchmark:["entry","entries"],framework:["paper","papers"]};async function U({kind:r,slug:a}){if(r==="task"){const t=await l.getTask(a);return{name:t.name,description:t.description??null,imageUrl:t.image_url??null,count:t.paper_count??null,detail:null}}if(r==="method"){const t=await l.getMethod(a);return{name:t.full_name||t.name,description:t.description??null,imageUrl:t.image_url??null,count:t.paper_count??null,detail:t.introduced_year?`Introduced ${t.introduced_year}`:null}}if(r==="framework"){const e=(await l.frameworkCatalog()).domains.flatMap(o=>o.categories).flatMap(o=>o.frameworks).find(o=>o.slug===a);if(!e)throw new Error(`Unknown framework ${a}`);return{name:e.name,description:e.description,imageUrl:null,count:e.paper_count,detail:e.organization_name??null}}const n=await l.getDatasetBySlug(a);return{name:n.full_name||n.name,description:n.description??null,imageUrl:null,count:n.paper_count??null,detail:n.introduced_year?`Introduced ${n.introduced_year}`:null}}function j(r){return r.replace(/!?\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/[*_`#>]+/g,"").replace(/\s+/g," ").trim()}const $=()=>typeof window.matchMedia=="function"&&window.matchMedia("(hover: none), (pointer: coarse)").matches,x=({kind:r,preview:a})=>{const[n,t]=u.useState(!1),e=g(a.imageUrl),o=[a.count!=null?`${a.count.toLocaleString()} ${_[r][a.count===1?0:1]}`:null,a.detail].filter(Boolean);return s.jsxs("div",{className:"catalog-preview-card",children:[e&&!n&&s.jsx("img",{className:"catalog-preview-image","data-testid":"catalog-preview-image",src:e,alt:"",loading:"lazy",decoding:"async",onError:()=>t(!0)}),s.jsxs("div",{className:"catalog-preview-meta",children:[s.jsx("span",{className:"catalog-preview-kind",children:C[r]}),s.jsx("strong",{children:a.name}),a.description&&s.jsx("p",{children:j(a.description)}),o.length>0&&s.jsx("span",{className:"catalog-preview-stats",children:o.join(" · ")})]})]})},z=({entity:r,children:a,className:n="chat-paper-link",newTab:t=!0,initialPreview:e})=>{const[o,i]=u.useState(!1),c=m({queryKey:["chat-catalog-preview",r.kind,r.slug],queryFn:()=>U(r),initialData:e,enabled:o&&!e,staleTime:10*60*1e3,gcTime:30*60*1e3,retry:!1});return s.jsxs(f,{open:o,onOpenChange:p=>{(!p||!$())&&i(p)},openDelay:150,closeDelay:100,children:[s.jsx(w,{asChild:!0,children:s.jsx(h,{className:n,to:`${b[r.kind]}${encodeURIComponent(r.slug)}`,target:t?"_blank":void 0,rel:t?"noopener noreferrer":void 0,onClick:()=>i(!1),children:a})}),s.jsx(k,{className:"catalog-preview-pop",side:"bottom",align:"start",collisionPadding:12,children:c.data?s.jsx(x,{kind:r.kind,preview:c.data}):c.isError?s.jsx("div",{className:"paper-preview-status",children:"Preview unavailable"}):s.jsx("div",{className:"paper-preview-status","aria-live":"polite",children:"Loading preview…"})})]})};export{z as C,R as a,E as f,T as i,H as n,L as p};
assets/ChatView-DWJHl306.js ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ var $t=Object.defineProperty;var Yt=(t,e,n)=>e in t?$t(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var $=(t,e,n)=>Yt(t,typeof e!="symbol"?e+"":e,n);import{d as Gt,i as o,j as s,X as kt,J as At,b as je,L as It,aj as Xt,ak as Jt,al as Zt,am as pt,ab as Ue,f as Mt,n as Tt,E as Nt,o as Dt,l as es,a as Ft,u as ts,A as ss}from"./index-CqLopXcE.js";import{C as ns,U as mt,b as rs,f as Ee,A as is,a as as,c as os,g as cs,h as ls,i as qe,j as us,k as gt,t as ds,l as hs,E as fs,m as ps,n as ms,o as gs,p as yt,q as bt}from"./chatLifecycle-U97-CRPf.js";import{k as Te,l as ys,m as bs,n as Lt,T as wt,h as Bt,o as Me,r as Qe,s as ws,t as vs,v as he,D as $e,w as Ss,x as xs,y as _s,z as Es,B as Cs,C as Rs,E as js,F as ks,G as As,H as tt,I as Is,J as vt,K as Ot,L as St,M as Ye,j as Ms,N as Ts,O as Ns,Q as qt,R as Ds,U as Fs,V as Ls,W as Bs,S as Os,X as Pt}from"./index-EPaFPxpL.js";import{c as ne}from"./chat-DGNTyNA6.js";import{M as qs}from"./McpShowcase-BIaXtPrM.js";import{S as Ps}from"./share-2-pHAfXukm.js";import{u as He}from"./useMutation-DBnvCG24.js";import{I as Us}from"./Icon-BTX00T3U.js";import{m as Hs}from"./mlIntern-BWv6xBaQ.js";import{u as Vs,O as Ks}from"./openrouter-C1gmBS1C.js";/* empty css */import"./hover-card-CcViKpG6.js";import"./CatalogEntityPreviewLink-BEEX6c5n.js";import"./github-rJ81k3MW.js";import"./file-text-DL8DB3Ia.js";import"./PaperPreviewLink-BQBSQN0t.js";import"./index-C601BfBQ.js";import"./index-s2hHM8kO.js";import"./index-UzLPH3v0.js";import"./katex-DkKDou_j.js";import"./thumbs-up-BxzCyoEs.js";import"./copy-CuOS3fOv.js";import"./arrow-left-CsmoZGdZ.js";import"./external-link-CTPTD9wF.js";import"./plus-D-JcHoGj.js";import"./search-B0zhG2PN.js";import"./chevron-up-CoUJqJBK.js";import"./AuthorAvatar-RLVSdcTr.js";import"./trash-2-qhXxU9a8.js";import"./AgentLogos-BGglpy29.js";/**
2
+ * @license lucide-react v0.462.0 - ISC
3
+ *
4
+ * This source code is licensed under the ISC license.
5
+ * See the LICENSE file in the root directory of this source tree.
6
+ */const Ws=Gt("EllipsisVertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]]);function zs(t){const[e,n]=o.useState("calc(100dvh - 60px)");return o.useLayoutEffect(()=>{if(!t)return;const i=document.querySelector(".app-header"),l=window.visualViewport,c=()=>{const p=l?l.height*l.scale:window.innerHeight;n(`${Math.max(0,p-((i==null?void 0:i.offsetHeight)??0))}px`)};c();const d=new ResizeObserver(c);return i&&d.observe(i),l==null||l.addEventListener("resize",c),window.addEventListener("resize",c),()=>{d.disconnect(),l==null||l.removeEventListener("resize",c),window.removeEventListener("resize",c)}},[t]),t?e:"100%"}const Qs="https://huggingface.co/settings/inference-providers",xt="pwc.chat.billing-notice-dismissed.v1";function $s({provider:t}){const[e,n]=o.useState(()=>localStorage.getItem(xt)==="1");return!Te()||e||t!=="huggingface"?null:s.jsxs("div",{className:"chat-billing-notice",role:"note",children:[s.jsx("span",{children:"Hugging Face models use the inference permission granted when you start chatting. Included monthly credits are used first, then extra usage requires purchased credits. You can choose organization billing in Settings."}),s.jsxs("div",{className:"chat-billing-notice-actions",children:[s.jsx("a",{href:"/settings",children:"Review billing"}),s.jsx("a",{href:Qs,target:"_blank",rel:"noreferrer",children:"Review usage"}),s.jsx("button",{type:"button",className:"chat-billing-notice-dismiss","aria-label":"Dismiss billing notice",title:"Dismiss",onClick:()=>{localStorage.setItem(xt,"1"),n(!0)},children:s.jsx(kt,{size:15,"aria-hidden":"true"})})]})]})}function _t({variant:t,composerProps:e,provider:n,sponsored:i=!1,paused:l,uploading:c=!1,error:d,suggestions:p=[],suggestionLinks:u}){var T;const y=s.jsxs(s.Fragment,{children:[!i&&s.jsx($s,{provider:n}),l&&s.jsx("div",{id:"chat-paused-description",className:"chat-paused-banner",role:"status",children:"Chat is temporarily disabled. You can keep browsing and editing your conversations. New research runs will return when chat is restored."}),d&&s.jsx("div",{className:"chat-composer-error",role:"alert",children:d}),s.jsx(ns,{...e,...t==="empty"?{autoFocus:!0}:{placeholder:(T=e.draft)!=null&&T.text?"Edit and send again…":"Ask a follow-up…"}}),t==="empty"&&s.jsxs("div",{className:"chat-examples",children:[p.map(h=>s.jsx("button",{type:"button",className:"chat-example",disabled:l||c,onClick:()=>e.onSend({...e.draft,text:h,paperMentions:[]}),children:h},h)),u]})]});return t==="empty"?y:s.jsx("div",{className:"chat-composer-wrap",children:s.jsxs("div",{className:"chat-composer-inner",children:[y,s.jsx("div",{className:"chat-composer-foot",children:Te()?s.jsxs(s.Fragment,{children:[n==="huggingface"&&s.jsxs("span",{className:"chat-provider-attribution",children:["Powered by 🤗 ",s.jsx("a",{href:"https://huggingface.co/docs/inference-providers/en/index",target:"_blank",rel:"noreferrer",children:"Inference Providers"}),"."]}),n==="openrouter"&&s.jsxs("span",{className:"chat-provider-attribution",children:["Powered by ",s.jsx("a",{href:"https://openrouter.ai",target:"_blank",rel:"noreferrer",children:"OpenRouter"}),"."]}),s.jsx("span",{children:"The AI assistant can make mistakes. Double-check responses."})]}):s.jsx(s.Fragment,{children:"Assistant preview — responses are simulated."})})]})})}function Ys({messages:t,papers:e,busy:n,queuedDraft:i,paperMentionsEnabled:l,archivePending:c,openRouterFallbackEnabled:d,onToggleBlock:p,onEditAndResend:u,onRetryFromProgress:y,onRetryWithLuna:T,onArchiveOld:h,onArchiveOldest:v}){var ce,ae;const[F,x]=o.useState(null),C=o.useRef(null),B=o.useRef(null),V=o.useRef("bottom"),R=o.useRef(0),A=o.useRef(0),[j,E]=o.useState(!1),M=o.useRef(null),I=o.useCallback(f=>{V.current=f},[]),P=o.useCallback(()=>{const f=C.current;f&&E(f.scrollHeight-f.scrollTop-f.clientHeight>1)},[]),W=t.filter(f=>f.role==="user"),N=W.length,Z=o.useRef(N),fe=o.useRef(!1),re=(ce=W[0])==null?void 0:ce.id,ie=(ae=W.at(-1))==null?void 0:ae.id;o.useEffect(()=>{n&&x(null)},[n]);const[te,Y]=o.useState(""),K=o.useRef(n),z=t.at(-1);o.useEffect(()=>{n?Y(""):K.current&&(z==null?void 0:z.role)==="assistant"&&Y(z.error?"The answer failed.":"Answer complete."),K.current=n},[n,z]),o.useLayoutEffect(()=>{const f=C.current;if(f){if(N>Z.current||n&&!fe.current){const L=Array.from(f.querySelectorAll("[data-message-id]")).at(-1);if(L){const U=f.getBoundingClientRect().top;R.current=f.scrollTop+L.getBoundingClientRect().top-U-24,I("question")}}if(Z.current=N,fe.current=n,B.current!==null){f.scrollTop=B.current,B.current=null;return}V.current==="bottom"&&(f.scrollTop=f.scrollHeight),V.current==="question"&&(f.scrollTop=R.current,A.current=f.scrollTop)}},[t,N,n,I]),o.useLayoutEffect(P),o.useEffect(()=>{const f=C.current;if(!f)return;const L=new ResizeObserver(P);return L.observe(f),f.firstElementChild&&L.observe(f.firstElementChild),()=>L.disconnect()},[P]);const G=(f,L)=>{var U;B.current=((U=C.current)==null?void 0:U.scrollTop)??null,p(f,L)};return s.jsxs("div",{className:"chat-conversation-viewport",children:[s.jsx("div",{className:"chat-conversation",ref:C,tabIndex:0,role:"region","aria-label":"Conversation",onWheel:f=>{(f.deltaY<0||V.current==="question")&&I("free")},onTouchStart:f=>{var L;M.current=((L=f.touches[0])==null?void 0:L.clientY)??null},onTouchMove:f=>{var U;const L=(U=f.touches[0])==null?void 0:U.clientY;L!==void 0&&M.current!==null&&(L>M.current||V.current==="question")&&I("free"),M.current=L??null},onKeyDown:f=>{f.target===f.currentTarget&&((["ArrowUp","PageUp","Home"].includes(f.key)||f.key===" "&&f.shiftKey)&&I("free"),["ArrowDown","PageDown","End"," "].includes(f.key)&&V.current==="question"&&I("free"))},onScroll:f=>{const{scrollHeight:L,scrollTop:U,clientHeight:pe}=f.currentTarget,se=L-U-pe<=1;V.current==="bottom"&&!se&&I("free");const X=U-A.current;V.current==="question"&&(X>1||X<-1&&!se)&&I("free"),P()},children:s.jsxs("div",{className:"chat-conversation-inner",children:[t.length===0&&(i==null?void 0:i.text)&&s.jsx(mt,{id:"queued-launch-preview",text:i.text,paperMentions:i.paperMentions,paperSelection:i.paperSelection,isInitial:!0}),t.map(f=>{var L,U,pe,se;return f.role==="user"?s.jsx(mt,{id:f.id,text:f.text??"",paperMentions:f.paperMentions??[],paperSelection:f.paperSelection,attachedFiles:f.attachedFiles,paperMentionsEnabled:l,isInitial:f.id===re,editingAllowed:!n&&!!f.revision,editing:F===f.id,editNotice:f.id===re?"Sending will replace this conversation.":f.id===ie?"Sending will replace the response.":"Sending will replace the response and all messages after it.",onEdit:()=>x(f.id),onCancel:()=>x(null),onResendDraft:X=>{const oe=u(f.id,X);return oe&&x(null),oe}},f.id):s.jsx(rs,{msg:f,papers:e,onToggleBlock:G,onRetryCompaction:!n&&f.id===((L=t.at(-1))==null?void 0:L.id)&&((U=W.at(-1))!=null&&U.revision)?y:void 0,onRetryWithLuna:!n&&f.id===((pe=t.at(-1))==null?void 0:pe.id)&&((se=W.at(-1))!=null&&se.revision)?T:void 0,onArchiveOldChats:h,onArchiveOldestChats:v,archivePending:c,hfBilling:null,openRouterFallbackEnabled:d,feedbackEnabled:!0},f.id)})]})}),j&&s.jsx("button",{type:"button",className:"chat-jump-latest",onClick:()=>{I("bottom");const f=C.current;f&&(f.focus({preventScroll:!0}),f.scrollTop=f.scrollHeight,P())},children:"Jump to latest"}),s.jsx("div",{className:"sr-only",role:"status","aria-live":"polite",children:te})]})}function Gs({retryAt:t,onRetry:e,onCancel:n}){const[i,l]=o.useState(()=>Math.max(0,Math.ceil((t-Date.now())/1e3))),c=o.useRef(null);return o.useEffect(()=>{var y;const d=document.activeElement instanceof HTMLElement?document.activeElement:null;(y=c.current)==null||y.focus();const p=()=>l(Math.max(0,Math.ceil((t-Date.now())/1e3)));p();const u=window.setInterval(p,250);return()=>{window.clearInterval(u),d==null||d.focus()}},[t]),s.jsx("div",{className:"chat-capacity-dialog-backdrop",role:"presentation",children:s.jsxs("div",{className:"chat-capacity-dialog",role:"dialog","aria-modal":"true","aria-labelledby":"chat-capacity-dialog-title","aria-describedby":"chat-capacity-dialog-description",onKeyDown:d=>{d.key==="Escape"&&(d.preventDefault(),n())},children:[s.jsx("h2",{id:"chat-capacity-dialog-title",children:"All research slots are currently in use"}),s.jsx("p",{id:"chat-capacity-dialog-description",children:"Your message was not sent or billed. Try again in a few seconds."}),s.jsx("p",{className:"chat-capacity-countdown","aria-live":"polite",children:i>0?`Try again available in ${i} second${i===1?"":"s"}.`:"You can try again now."}),s.jsxs("div",{className:"chat-capacity-dialog-actions",children:[s.jsx("button",{type:"button",className:"chat-capacity-cancel",ref:c,onClick:n,children:"Cancel"}),s.jsx("button",{type:"button",className:"chat-capacity-retry",disabled:i>0,onClick:e,children:"Try again"})]})]})})}function Xs({onClose:t}){const e=o.useRef(null);return o.useEffect(()=>{var i;const n=document.activeElement instanceof HTMLElement?document.activeElement:null;return(i=e.current)==null||i.focus(),()=>n==null?void 0:n.focus()},[]),s.jsx("div",{className:"chat-capacity-dialog-backdrop",role:"presentation",children:s.jsxs("div",{className:"chat-capacity-dialog",role:"dialog","aria-modal":"true","aria-labelledby":"chat-disabled-title","aria-describedby":"chat-disabled-description",onKeyDown:n=>{n.key==="Escape"&&(n.preventDefault(),t())},children:[s.jsx("h2",{id:"chat-disabled-title",children:"Chat is temporarily disabled"}),s.jsx("p",{id:"chat-disabled-description",children:"We've temporarily paused new research runs. Your message wasn't sent, and your draft is still here. Please try again later."}),s.jsx("div",{className:"chat-capacity-dialog-actions",children:s.jsx("button",{ref:e,type:"button",className:"chat-capacity-cancel",onClick:t,children:"Keep editing"})})]})})}function Js({url:t,onClose:e}){return t?s.jsx("div",{className:"chat-share-dialog-backdrop",role:"presentation",onMouseDown:e,children:s.jsxs("div",{className:"chat-share-dialog",role:"dialog","aria-modal":"true","aria-labelledby":"chat-share-dialog-title",onMouseDown:n=>n.stopPropagation(),children:[s.jsx("h2",{id:"chat-share-dialog-title",children:"Public link created"}),s.jsx("p",{children:"Anyone with this link can see this conversation. It could not be copied automatically, so copy it manually:"}),s.jsx("input",{readOnly:!0,value:t,"aria-label":"Public conversation link",autoFocus:!0,onFocus:n=>n.currentTarget.select()}),s.jsx("button",{type:"button",onClick:e,children:"Close"})]})}):null}const Ge="pwc:chat:sidebar-width",Xe=280,Je=200,Ze=480,Zs=12,et=t=>Math.max(Je,Math.min(Ze,t)),en=()=>{if(typeof window>"u")return Xe;const t=Number(localStorage.getItem(Ge));return Number.isFinite(t)&&t>0?et(t):Xe};function tn({sessions:t,activeSessionId:e,loading:n,error:i,open:l,onClose:c,onNew:d,onNavigate:p,onRename:u,onDelete:y,onDeleteMany:T}){const[h,v]=o.useState(en),F=o.useRef(null),x=o.useRef(h),[C,B]=o.useState(null),[V,R]=o.useState(""),[A,j]=o.useState(null),[E,M]=o.useState(!1),[I,P]=o.useState(new Set),W=t.filter(g=>I.has(g.id)).map(g=>g.id),N=W.length>0,[Z,fe]=o.useState(!1),re=[...t].sort((g,r)=>Date.parse(r.updated_at)-Date.parse(g.updated_at)),ie=re.filter((g,r)=>r<Zs||g.id===e),te=E?re:ie,Y=t.length-ie.length;o.useEffect(()=>{if(!A)return;const g=()=>j(null),r=a=>{a.key==="Escape"&&g()};return window.addEventListener("click",g),window.addEventListener("keydown",r),()=>{window.removeEventListener("click",g),window.removeEventListener("keydown",r)}},[A]),o.useEffect(()=>{if(!N)return;const g=r=>{r.key==="Escape"&&P(new Set)};return window.addEventListener("keydown",g),()=>window.removeEventListener("keydown",g)},[N]);const K=ys(te),z=K.flatMap(g=>g.items.map(r=>r.id)),G=o.useRef(null),ce=g=>{G.current=g,P(r=>{const a=new Set(r);return a.has(g)?a.delete(g):a.add(g),a})},ae=g=>{const a=(G.current&&I.has(G.current)?G.current:null)??(N?null:e??null);a&&(G.current=a);const S=a?z.indexOf(a):-1,w=z.indexOf(g);if(S<0||w<0){G.current=g,P(D=>new Set([...D,g]));return}const b=z.slice(Math.min(S,w),Math.max(S,w)+1);P(D=>new Set([...D,...b]))},f=async()=>{if(!(Z||!Ee())){fe(!0);try{await T(W)&&P(new Set)}finally{fe(!1)}}},L=g=>{B(g.id),R(g.title)},U=async g=>{const r=V.trim();r&&await u(g,r)&&B(null)},pe=(g,r,a)=>j({id:g,x:r,y:a}),se=g=>{if(!F.current)return;const r=et(F.current.width+g-F.current.x);x.current=r,v(r)},X=()=>{F.current&&(F.current=null,localStorage.setItem(Ge,String(x.current)))},oe=g=>{const r=et(g);x.current=r,v(r),localStorage.setItem(Ge,String(r))};return s.jsxs(s.Fragment,{children:[l&&s.jsx("div",{className:"chat-sidebar-backdrop","aria-hidden":"true",onClick:c}),s.jsxs("aside",{className:`chat-sidebar${l?"":" chat-sidebar-closed"}`,style:{"--chat-sidebar-width":`${h}px`},children:[s.jsxs("div",{className:"chat-sidebar-top",children:[s.jsxs("button",{type:"button",className:"chat-new-chat",onClick:()=>{Ee()&&d()},children:[s.jsx(bs,{})," New chat"]}),s.jsx("button",{type:"button",className:"icon-btn",onClick:c,title:"Collapse sidebar","aria-label":"Collapse sidebar",children:s.jsx(Lt,{})})]}),N&&s.jsxs("div",{className:"chat-sessions-bulk",role:"toolbar","aria-label":"Selected chats",children:[s.jsxs("span",{className:"chat-sessions-bulk-count",children:[W.length," selected"]}),s.jsxs("button",{type:"button",className:"chat-sessions-bulk-delete",disabled:Z,onClick:()=>void f(),children:[s.jsx(wt,{})," ",Z?"Deleting…":"Delete"]}),s.jsx("button",{type:"button",className:"chat-sessions-bulk-cancel",disabled:Z,onClick:()=>P(new Set),children:"Cancel"})]}),s.jsxs("nav",{className:"chat-sessions","aria-label":"Chat history",children:[n&&s.jsx("div",{className:"chat-sessions-empty",children:"Loading chats…"}),!n&&i&&s.jsx("div",{className:"chat-sessions-empty",children:i}),!n&&!i&&t.length===0&&s.jsx("div",{className:"chat-sessions-empty",children:"Conversations you start will show up here."}),K.map(g=>s.jsxs("div",{className:"chat-session-group",children:[s.jsx("div",{className:"chat-session-group-label",children:g.label}),g.items.map(r=>s.jsxs("div",{className:`chat-session${r.id===e?" chat-session-active":""}${I.has(r.id)?" chat-session-selected":""}`,role:"button",tabIndex:0,"aria-pressed":N?I.has(r.id):void 0,title:N?"Shift-click to select every chat up to here":"Shift-click to select several chats",onMouseDown:a=>{a.shiftKey&&a.preventDefault()},onClick:a=>{a.shiftKey?ae(r.id):N?ce(r.id):Ee()&&p(r.id)},onKeyDown:a=>{if(a.key==="Enter"&&a.shiftKey?ae(r.id):a.key==="Enter"&&N?ce(r.id):a.key==="Enter"&&Ee()&&p(r.id),a.key==="F2"&&L(r),a.key==="ContextMenu"||a.shiftKey&&a.key==="F10"){a.preventDefault();const S=a.currentTarget.getBoundingClientRect();pe(r.id,S.right-150,S.bottom)}},onContextMenu:a=>{a.preventDefault(),pe(r.id,a.clientX,a.clientY)},children:[C===r.id?s.jsx("input",{className:"chat-session-title-input",value:V,autoFocus:!0,maxLength:80,onClick:a=>a.stopPropagation(),onChange:a=>R(a.target.value),onBlur:()=>void U(r.id),onKeyDown:a=>{a.stopPropagation(),a.key==="Enter"&&U(r.id),a.key==="Escape"&&B(null)}}):s.jsx("span",{className:"chat-session-title",children:r.title}),s.jsx("button",{type:"button",className:"chat-session-menu","aria-label":"Chat actions","aria-haspopup":"menu",title:"Chat actions",onClick:a=>{a.stopPropagation();const S=a.currentTarget.getBoundingClientRect();pe(r.id,S.right-150,S.bottom)},children:"⋯"}),s.jsx("button",{type:"button",className:"chat-session-delete","aria-label":I.has(r.id)?"Delete selected conversations":"Delete conversation",onClick:a=>{a.stopPropagation(),I.has(r.id)?f():Ee()&&y(r.id)},children:s.jsx(wt,{})})]},r.id))]},g.label)),Y>0&&s.jsx("button",{type:"button",className:"chat-sessions-toggle","aria-expanded":E,onClick:()=>M(g=>!g),children:E?"Show less":`Show ${Y} older ${Y===1?"chat":"chats"}`})]}),s.jsx(qs,{className:"chat-sidebar-tools",canNavigate:Ee}),s.jsx("div",{className:"chat-sidebar-resize-handle",role:"separator","aria-label":"Resize chat history","aria-orientation":"vertical","aria-valuemin":Je,"aria-valuemax":Ze,"aria-valuenow":h,title:"Drag to resize; double-click to reset",tabIndex:0,onPointerDown:g=>{g.button===0&&(F.current={x:g.clientX,width:h},x.current=h,g.currentTarget.setPointerCapture(g.pointerId))},onPointerMove:g=>se(g.clientX),onPointerUp:X,onPointerCancel:X,onLostPointerCapture:X,onDoubleClick:()=>oe(Xe),onKeyDown:g=>{(g.key==="ArrowLeft"||g.key==="ArrowRight")&&(g.preventDefault(),oe(h+(g.key==="ArrowRight"?10:-10))),(g.key==="Home"||g.key==="End")&&(g.preventDefault(),oe(g.key==="Home"?Je:Ze))}}),A&&s.jsxs("div",{className:"chat-session-context-menu",role:"menu",style:{left:A.x,top:A.y},onClick:g=>g.stopPropagation(),children:[s.jsx("button",{type:"button",role:"menuitem",autoFocus:!0,onClick:()=>{const g=t.find(r=>r.id===A.id);g&&L(g),j(null)},children:"Rename chat"}),s.jsx("button",{type:"button",role:"menuitem",onClick:()=>{ce(A.id),j(null)},children:I.has(A.id)?"Deselect chat":"Select chat"})]})]})]})}function sn({sessionId:t,busy:e,loading:n,hasPaperSelection:i=!1,onError:l}){const{toast:c}=At(),[d,p]=o.useState(!1),[u,y]=o.useState(""),T=async()=>{var h;if(!(e||d)&&!(i&&!window.confirm("This public link will include the selected paper passage. Anyone with the link can read that passage. Continue?"))){p(!0);try{const v=await ne.createOrRefreshShare(t),F=new URL(v.public_path,window.location.origin).toString();try{if(!((h=navigator.clipboard)!=null&&h.writeText))throw new Error("Clipboard unavailable");await navigator.clipboard.writeText(F),c({className:"chat-share-toast",duration:5e3,title:"Public link copied to your clipboard",description:"Anyone with this link can see this conversation."})}catch{y(F)}}catch(v){const F=v instanceof Error?v.message:"Could not share this conversation";l(F),c({variant:"destructive",title:"Share failed",description:F})}finally{p(!1)}}};return s.jsxs(s.Fragment,{children:[s.jsxs("button",{type:"button",className:"chat-share-button",onClick:()=>void T(),disabled:e||d||n,"aria-label":"Share conversation",children:[d?s.jsx(Bt,{}):s.jsx(Ps,{"aria-hidden":"true"}),s.jsx("span",{children:"Share"})]}),s.jsx(Js,{url:u,onClose:()=>y("")})]})}const Ut=["chat","openai","usage"],nn=90,Ht="pwc:chat:openai-credits-notice:dismissed";function rn(t=!0){return je({queryKey:Ut,queryFn:()=>ne.getOpenAIUsage(),enabled:t,staleTime:3e4,retry:!1,refetchOnWindowFocus:!0})}function an(t,e,n){if(!t||e!=="openai"||t.used_percent<nn||n===t.resets_at)return null;const i=new Intl.DateTimeFormat(void 0,{month:"long",day:"numeric"}).format(new Date(t.resets_at));return{message:`You have ${t.remaining_percent}% left of your monthly OpenAI credits. They reset on ${i}.`,resetsAt:t.resets_at}}function on(){try{return localStorage.getItem(Ht)}catch{return null}}function cn(t){try{localStorage.setItem(Ht,t)}catch{}}const ln=({enabled:t,workspaceKey:e,children:n,onAskAiFix:i})=>t?s.jsx(is,{workspaceKey:e,onAskAiFix:i,children:n}):s.jsx(s.Fragment,{children:n}),un=({enabled:t,children:e})=>t?s.jsx(as,{variant:"chat",children:e}):s.jsx(s.Fragment,{children:e}),dn=({provider:t,enabled:e})=>{const n=rn(e),[i,l]=Ue.useState(()=>on()),c=an(n.data,t,i);return c?s.jsxs("div",{className:"chat-credits-notice",role:"status",children:[s.jsx("span",{children:c.message}),s.jsx("button",{type:"button",className:"chat-credits-notice-close","aria-label":"Dismiss credits notice",onClick:()=>{cn(c.resetsAt),l(c.resetsAt)},children:"×"})]}):null},hn=({onNewChat:t,onClose:e})=>s.jsxs(s.Fragment,{children:[s.jsxs(Xt,{children:[s.jsx(Jt,{asChild:!0,children:s.jsx("button",{type:"button",className:"icon-btn chat-reader-icon-btn","aria-label":"Chat options",title:"Chat options",children:s.jsx(Ws,{"aria-hidden":"true"})})}),s.jsxs(Zt,{align:"end",children:[s.jsx(pt,{onSelect:t,children:"New chat"}),s.jsx(pt,{asChild:!0,children:s.jsx(It,{to:"/chat",children:"All chats"})})]})]}),e&&s.jsx("button",{type:"button",className:"icon-btn chat-reader-icon-btn",onClick:e,"aria-label":"Close chat",title:"Close chat",children:s.jsx(kt,{"aria-hidden":"true"})})]}),fn=({routeId:t,sessionId:e,page:n})=>s.jsx(It,{className:"chat-reader-action",to:`/pdf/${t}`,onClick:i=>{if(!Ee()){i.preventDefault();return}sessionStorage.setItem(`pwc:reader:session:${t}`,e),n&&sessionStorage.setItem(`pwc:reader:page:${t}`,String(n))},children:"Open reader"}),pn=({mode:t,staging:e,children:n})=>s.jsx("div",{className:"chat-empty",children:s.jsxs("div",{className:"chat-empty-inner",children:[s.jsx("div",{className:"chat-empty-eyebrow",children:t==="paper"?"Paper chat":"Research chat"}),s.jsx("h1",{className:"chat-empty-title",children:t==="paper"?"Ask about this paper":s.jsxs(s.Fragment,{children:["Ask ",s.jsx("em",{children:"Papers With Code"})]})}),s.jsx("p",{className:"chat-empty-sub",children:t==="paper"?"Questions are grounded in the open paper. Add up to three other papers with @.":"Answers are grounded in a live hybrid search over papers, tasks, and benchmarks — with citations you can follow."}),e&&s.jsx("p",{className:"chat-staging-access-note",children:"This is a limited staging preview. Only approved Hugging Face users can start chats."}),n]})}),mn=({descriptor:t})=>{const e=os(),{open:n,register:i,unregister:l}=e,c=Ue.useRef(null),d=t.source_head??t.preview_head,p=Ue.useMemo(()=>d?{kind:"artifact",schema_version:1,scope:"owner",artifact_id:t.artifact_id,version_id:d.version_id,identifier:"latex-paper",version:d.version,artifact_kind:"latex_paper",title:t.title,status:"ready",preview_mime:"application/pdf",source_language:"latex",total_bytes:0}:null,[t.artifact_id,t.title,d]),u=p?cs(p):null;return Ue.useEffect(()=>{if(!(!p||!u))return i(p),c.current!==u&&(c.current=u,n(p)),()=>l(u)},[p,u,n,i,l]),null},gn={old:"Could not archive old chats",oldest:"Could not archive chats"};function yn({messages:t,refreshSessions:e,resetChat:n,restoreDraft:i}){const{toast:l}=At(),c=He({mutationFn:async u=>{const y=u==="old"?await ne.archiveOldChats():await ne.archiveOldestChats();return await e(),y},onSuccess:({archived_count:u},y)=>{if(y==="old"&&u===0){l({title:"No chats were archived",description:"There are no inactive chats older than 30 days."});return}const T=Me(t);n(),i(Qe(T)),l({title:`${u} ${u===1?"chat":"chats"} archived`,description:"Your question is ready to send again."})},onError:(u,y)=>{l({variant:"destructive",title:gn[y],description:u instanceof Error?u.message:"Try again."})}}),d=c.isPending?c.variables??null:null,p=async u=>{d===null&&await c.mutateAsync(u).catch(()=>{})};return{pending:d,archiveOld:()=>p("old"),archiveOldest:()=>p("oldest")}}function bn({pendingDraft:t,setPendingDraft:e,blocked:n,authLoading:i,signedIn:l,send:c,restoreDraft:d,setSelectedModel:p,onPaperSelectionChange:u}){const[y,T]=Mt(),h=o.useRef(!1);o.useEffect(()=>{if(i||!l)return;const v=ws();v&&(v.draft.paperSelection&&(u==null||u(v.draft.paperSelection)),v.autoSend?e(v.draft):(d(v.draft),vs()))},[i,u,d,e,l]),o.useEffect(()=>{var C;if(i)return;const v=(C=y.get("q"))==null?void 0:C.trim();if(!v)return;h.current=!1;const F=y.get("model");F&&p(F),e(he(v));const x=new URLSearchParams(y);x.delete("q"),x.delete("model"),T(x,{replace:!0})},[i,y,e,T,p]),o.useEffect(()=>{if(n||!t.text||h.current)return;const v=window.setTimeout(()=>{h.current||(h.current=!0,c(t).finally(()=>e(he())))},0);return()=>window.clearTimeout(v)},[n,t,c,e])}function wn(t,e){var c;const n=Tt(),i=je({queryKey:["chatSessionPublicShare",t],queryFn:()=>ne.getSessionPublicShare(t??""),enabled:!!t&&e,retry:!1}),l=(c=i.data)==null?void 0:c.public_path;return o.useEffect(()=>{l&&n(l,{replace:!0})},[n,l]),{pending:i.isFetching||!!l}}function vn({userId:t,signedIn:e,authLoading:n,requestedModel:i,routeSessionIdRef:l}){const c=o.useRef(i),d=o.useRef(null),[p,u]=o.useState(i||$e),y=o.useCallback(C=>{c.current=C,u(C)},[]),h=je({...ls(t),enabled:e&&!n}).data,v=(h==null?void 0:h.items)??(Nt()?Ss:xs);o.useEffect(()=>{if(n||!e)return;const C=_s();d.current=C,C&&u(C)},[n,e]),o.useEffect(()=>{if(!h||l.current)return;const C=c.current||d.current;u(C&&h.items.some(B=>B.id===C)?C:h.default_model)},[h,l]);const F=Es(v,p),x=Cs(v,p);return{models:v,selectedModel:p,setSelectedModel:y,provider:F,sponsored:x,userBilledInference:F==="huggingface"&&!x,lunaAvailable:v.some(C=>C.id===$e)}}const Sn=3e3,xn=150,ze=(t,e)=>t instanceof Error?t.message:e;function _n(t){const e=Dt(),n=o.useCallback(d=>{e.setQueryData(qe.list(t),p=>d(p??[]))},[e,t]),i=o.useCallback((d,p)=>{n(u=>u.map(y=>y.id===d?{...y,...p}:y)),e.setQueryData(qe.detail(t,d),u=>u&&{...u,...p})},[e,n,t]),l=o.useCallback(async()=>{await e.invalidateQueries({queryKey:qe.list(t)})},[e,t]);return{markSessionBusy:o.useCallback((d,p)=>{e.cancelQueries({queryKey:qe.list(t)});const u=new Date().toISOString();n(y=>y.some(T=>T.id===d)?y.map(T=>T.id===d?{...T,is_busy:!0}:T):[{id:d,title:"New chat",selected_model:p.model,created_at:u,updated_at:u,message_count:1,is_busy:!0,web_search_enabled:p.webSearchEnabled,reasoning_effort:p.reasoningEffort},...y])},[e,n,t]),patchSession:i,refreshSessions:l}}function En({routeSessionId:t,selectedModel:e,setSelectedModel:n,patchSession:i,onRenamed:l,refreshSessions:c,onError:d,onSelectedDeleted:p,isActive:u,stopActive:y}){const T=He({mutationFn:({id:R,title:A})=>ne.updateSession(R,{title:A}),onSuccess:(R,{id:A})=>{l(A),i(A,R)},onError:R=>d(ze(R,"Rename failed"))}),h=async(R,A)=>{if(A){const j=Date.now()+Sn;for(;(await ne.getSession(R)).is_busy;){if(Date.now()>=j)throw new Error("Generation is still stopping. The chat was not deleted.");await new Promise(M=>window.setTimeout(M,xn))}}await ne.removeSession(R)},v=He({mutationFn:async({ids:R,activeId:A})=>{let j=!1;try{for(const E of R)await h(E,E===A),E===t&&(j=!0)}finally{j&&p(),await c()}},onError:R=>d(ze(R,"Delete failed"))}),F=He({mutationFn:({sessionId:R,model:A})=>ne.updateSession(R,{selected_model:A}),onSuccess:(R,{sessionId:A})=>{i(A,{selected_model:R.selected_model}),d("")},onError:(R,{previous:A})=>{n(A),d(ze(R,"Model change failed"))}}),x=(R,A)=>T.mutateAsync({id:R,title:A}).then(()=>!0,()=>!1),C=async R=>{if(R.length===0)return!1;const A=R.find(u),j=R.length===1?"this chat":`these ${R.length} chats`;return window.confirm(`${A?"Stop and delete":"Delete"} ${j}? This cannot be undone.`)?(A&&y(),v.mutateAsync({ids:R,activeId:A}).then(()=>!0,()=>!1)):!1};return{rename:x,remove:async R=>{await C([R])},removeMany:C,changeModel:async R=>{const A=e;return n(R),t?F.mutateAsync({sessionId:t,model:R,previous:A}).then(()=>!0,()=>!1):!0}}}function Cn({returnTo:t,selectedModel:e,reasoningEffort:n,userBilledInference:i,onPromptRestored:l}){const c=o.useRef(!1),d=o.useRef(!1),p=o.useCallback(h=>{Rs(h,e,n),window.location.href=es(t(),{authorizeInference:i})},[n,t,e,i]),u=o.useCallback((h,v)=>{js(h,e),l(h,v)},[l,e]),y=o.useCallback(async h=>{if(d.current)return!1;d.current=!0;try{return(await ne.getInferenceBilling()).connected?(c.current=!0,!0):ks()?(u(h,"Hugging Face inference authorization was not completed. Your prompt is ready to retry."),!1):(p(h),!1)}catch(v){return u(h,v instanceof Error?v.message:"Could not check Hugging Face authorization."),!1}finally{d.current=!1}},[p,u]);return{authorizeSend:o.useCallback((h,v)=>v?i&&!c.current?y(h):!0:(p(h),!1),[p,y,i]),restorePrompt:u}}function Rn(t,e,n){return{message:e,...n,web_search_enabled:!!t.webSearchEnabled,reasoning_effort:t.reasoningEffort??tt}}function Vt(t){return t.primaryPaperRouteId?{primary_paper_route_id:t.primaryPaperRouteId}:{}}function Et(t,e){var i,l;const n=(i=t.viewerContext)==null?void 0:i.call(t);return{paper_mentions:e.paperMentions.map(({route_id:c,title:d,start:p,end:u})=>({route_id:c,title:d,start:p,end:u})),...Vt(t),...n?{viewer_context:n}:{},...e.paperSelection?{paper_selection:As(e.paperSelection)}:{},...(l=e.files)!=null&&l.length?{file_ids:e.files.map(c=>c.id)}:{}}}class jn{constructor(e,n=Is){$(this,"requestId");$(this,"firstVisibleAt");$(this,"streamStartReported",!1);$(this,"firstVisibleReported",!1);$(this,"terminalReported",!1);$(this,"semanticReported",new Set);this.submittedAt=e,this.report=n}recordStreamStart(e,n){this.requestId=e,this.streamStartReported||(this.streamStartReported=!0,this.send({submission_to_stream_start_ms:Math.max(0,n-this.submittedAt)})),this.reportFirstVisible()}recordFirstVisible(e){this.firstVisibleAt===void 0&&(this.firstVisibleAt=e,this.reportFirstVisible())}recordSemantic(e,n){if(this.semanticReported.has(e))return;this.semanticReported.add(e);const i=Math.max(0,n-this.submittedAt);this.send(e==="reasoning"?{submission_to_first_reasoning_delta_ms:i}:e==="tool"?{submission_to_first_tool_call_ms:i}:{submission_to_first_answer_delta_ms:i})}recordTerminal(e){this.terminalReported||(this.terminalReported=!0,this.send({terminal_classification:e}))}reportFirstVisible(){!this.requestId||this.firstVisibleAt===void 0||this.firstVisibleReported||(this.firstVisibleReported=!0,this.send({submission_to_first_visible_delta_ms:Math.max(0,this.firstVisibleAt-this.submittedAt)}))}send(e){this.requestId&&this.report(this.requestId,e)}}const _e={minDelayMs:5,maxDelayMs:80,minRateCharsPerMs:.3,maxBufferedMs:400,arrivalRateTauMs:1e3,arrivalRateHeadroom:1.1,maxPendingChars:64},kn={now:()=>performance.now(),sleep:(t,e)=>new Promise(n=>{if(e!=null&&e.aborted||t<=0){n();return}const i=window.setTimeout(l,t);function l(){e==null||e.removeEventListener("abort",l),window.clearTimeout(i),n()}e==null||e.addEventListener("abort",l,{once:!0})})};function An(t){return!["stream_start","sandbox_start","sandbox_ready","workspace_ready","session_title_start","session_title_delta","session_title_done"].includes(t.type)}function In(t,e=!1,n=_e.maxPendingChars){var l;if(!t)return{pieces:[],pending:""};if(e)return{pieces:[t],pending:""};const i=Intl.Segmenter;if(i){const d=[...new i(void 0,{granularity:"word"}).segment(t)].filter(u=>u.isWordLike);let p=0;if(d.length>1&&(p=d.at(-1).index),d.length&&/\s$/u.test(t)&&(p=t.length),p>0){const u=t.slice(0,p),y=[],h=[...new i(void 0,{granularity:"word"}).segment(u)].filter(v=>v.isWordLike);for(let v=0;v<h.length;v+=1){const F=v===0?0:h[v].index,x=((l=h[v+1])==null?void 0:l.index)??u.length;x>F&&y.push(u.slice(F,x))}return h.length||y.push(u),{pieces:y,pending:t.slice(p)}}}else{const c=[...t.matchAll(/\s+/gu)];if(c.length){const d=[];let p=0;for(const u of c){const y=u.index+u[0].length;d.push(t.slice(p,y)),p=y}return{pieces:d,pending:t.slice(p)}}}return t.length>=n?{pieces:[t.slice(0,n)],pending:t.slice(n)}:{pieces:[],pending:t}}function Mn(t,e={}){const n={minDelayMs:e.minDelayMs??_e.minDelayMs,maxDelayMs:e.maxDelayMs??_e.maxDelayMs,minRateCharsPerMs:e.minRateCharsPerMs??_e.minRateCharsPerMs,maxBufferedMs:e.maxBufferedMs??_e.maxBufferedMs,arrivalRateTauMs:e.arrivalRateTauMs??_e.arrivalRateTauMs,arrivalRateHeadroom:e.arrivalRateHeadroom??_e.arrivalRateHeadroom,maxPendingChars:e.maxPendingChars??_e.maxPendingChars},i=e.clock??kn,l=[];let c="",d=null,p=0,u=!0,y=!1,T=null,h=0,v=i.now(),F=!1;const x=()=>{T==null||T(),T=null},C=(E,M)=>{const I=E.type==="reasoning_delta"||E.type==="answer_delta"?E.text.length:0;l.push({kind:"event",event:E,arrivedAt:M,chars:I}),x()},B=E=>{if(!d||!c)return;const M=In(c,E,n.maxPendingChars);for(const I of M.pieces)I&&C({type:d,text:I},p),p=i.now();c=M.pending,c||(d=null)},V=E=>{if(!u)return;const M=i.now();if(E.type==="reasoning_delta"||E.type==="answer_delta"){const I=E.type;if(!E.text)return;if(!F){F=!0,h+=E.text.length,v=M;const W=Array.from(E.text)[0];C({type:I,text:W},M);const N=E.text.slice(W.length);if(N)for(d=I,c=N,p=M,B(!1);c.length>=n.maxPendingChars;)B(!1);return}d&&d!==I&&B(!0),d||(d=I,p=M),c+=E.text;const P=Math.max(0,M-v);for(h*=Math.exp(-P/n.arrivalRateTauMs),h+=E.text.length,v=M,B(!1);c.length>=n.maxPendingChars;)B(!1);return}An(E)&&B(!0),C(E,M)},R=(async()=>{var E;try{for await(const M of t)V(M);u&&B(!0)}catch(M){u&&!((E=e.signal)!=null&&E.aborted)&&(B(!0),l.push({kind:"error",error:M,arrivedAt:i.now(),chars:0}))}finally{y=!0,x()}})(),A=()=>l.length||y?Promise.resolve():new Promise(E=>{T=E});return{events:async function*(){var M,I,P,W;let E=Number.NEGATIVE_INFINITY;try{for(;;){if(await A(),!l.length){if(y||!u)return;continue}const N=l[0];if(N.kind==="error")throw l.shift(),N.error;if(N.chars&&!((M=e.isHidden)!=null&&M.call(e))){const Z=i.now(),fe=l.reduce((ae,f)=>ae+f.chars,0),re=((I=l.find(ae=>ae.chars))==null?void 0:I.arrivedAt)??Z,ie=Math.max(0,n.maxBufferedMs-(Z-re)),te=h*Math.exp(-Math.max(0,Z-v)/n.arrivalRateTauMs)/n.arrivalRateTauMs,Y=ie>0?fe/ie:Number.POSITIVE_INFINITY,K=Math.max(n.minRateCharsPerMs,te*n.arrivalRateHeadroom,Y),z=Math.min(n.maxDelayMs,Math.max(n.minDelayMs,N.chars/K)),G=Math.max(0,N.arrivedAt+n.maxBufferedMs-Z),ce=Math.max(N.arrivedAt,E+Math.min(z,G));if(await i.sleep(Math.max(0,ce-i.now()),e.signal),!u||(P=e.signal)!=null&&P.aborted)return}l.shift(),E=i.now(),yield N.event}}finally{u&&(u=!1,x(),await((W=t.return)==null?void 0:W.call(t,void 0))),await R}}(),takeAcceptedForStop(){var M;if(!u)return[];u=!1,d&&c&&(C({type:d,text:c},p),c="",d=null);const E=l.flatMap(I=>I.kind==="event"&&I.event.type!=="done"&&I.event.type!=="error"?[I.event]:[]);return l.length=0,x(),(M=t.return)==null||M.call(t,void 0),E}}}const Ct=[250,500,1e3],Tn=(t,e)=>new Promise(n=>{const i=()=>{window.clearTimeout(l),e.removeEventListener("abort",i),n()},l=window.setTimeout(i,t);e.addEventListener("abort",i,{once:!0})});async function*Nn(t,e){let n=t,i=0;for(;;){let l=!1;try{for await(const c of n)(c.type==="done"||c.type==="error")&&(l=!0),yield c;if(l||e.signal.aborted)return;throw new vt}catch(c){e.onDisconnect();const d=e.getSessionId();if(e.signal.aborted||l||!(c instanceof vt)||!d||i>=Ct.length)throw c;if(await Tn(Ct[i],e.signal),e.signal.aborted)return;i+=1,n=Ot(d,{signal:e.signal,afterSequence:e.getAfterSequence(),onSequence:e.onSequence})}}}class Dn{constructor(){$(this,"configuration");$(this,"lifecycle",us());$(this,"_phase",{status:"idle"});$(this,"_pendingCapacity",null);$(this,"view",{messages:[],sessionError:"",disabledRequest:null});$(this,"snapshot",this.buildSnapshot());$(this,"listeners",new Set);$(this,"viewEpoch",0);$(this,"activeEpoch",null);$(this,"current",null);$(this,"projecting",!1);$(this,"subscribe",e=>(this.listeners.add(e),()=>{this.listeners.delete(e)}));$(this,"getSnapshot",()=>this.snapshot)}beginRun(){const e=++this.viewEpoch;return this.activeEpoch=e,this.projecting=!0,this.current=new AbortController,{controller:this.current,epoch:e}}detachView(){return++this.viewEpoch}isCurrent(e){return this.current===e}get running(){return this.current!==null}get controller(){return this.current}ownsView(e){return this.viewEpoch===e}get projectsActive(){return this.activeEpoch===this.viewEpoch||this.projecting}projectsRun(e){return this.activeEpoch===e&&this.projecting}releaseRun(){this.current=null}abortRun(){var e;(e=this.current)==null||e.abort(),this.current=null,this.activeEpoch=null}buildSnapshot(){return{...this.view,busy:this.busy,capacityRequest:this._pendingCapacity}}publish(){const e=this.buildSnapshot(),n=this.snapshot;if(!Object.keys(e).every(i=>e[i]===n[i])){this.snapshot=e;for(const i of this.listeners)i()}}get visibleMessages(){return this.view.messages}present(e){this.view={...this.view,...e},this.publish()}get phase(){return this._phase}get busy(){return this._phase.status==="streaming"}get pendingCapacity(){return this._pendingCapacity}get sawStreamStart(){return this._phase.status!=="idle"&&this._phase.streamStart!==null}get outcome(){return this._phase.status==="idle"?{kind:"pending"}:this._phase.outcome}get sawTerminalEvent(){const{kind:e}=this.outcome;return e==="complete"||e==="error"}get streamFailed(){const{kind:e}=this.outcome;return e==="error"||e==="transport_error"||e==="admission_rejected"}get admissionRejected(){return this.outcome.kind==="admission_rejected"}get shouldRefreshProvider(){var e;return this._phase.status==="idle"?!1:!!((e=this._phase.streamStart)!=null&&e.providerExecuted)||this._phase.providerStatusChanged}progress(e){this._phase.status!=="idle"&&(this._phase={...this._phase,...e})}finish(){this._phase.status==="streaming"&&(this._phase={...this._phase,status:"settled"}),this.publish()}queueCapacity(e){this._pendingCapacity=e,this.publish()}cancelCapacity(){this._pendingCapacity=null,this.publish()}projectSession(e){return this.busy&&e===this.sessionId?this.messages:null}get state(){return this.lifecycle}get messages(){return this.lifecycle.messages}get sessionId(){return this.lifecycle.sessionId}transition(e,n=!1){return this.lifecycle=gt(this.lifecycle,e),n&&(this.view={...this.view,messages:this.lifecycle.messages}),this.publish(),this.lifecycle}start(e,n,i){this.configuration=i,this._phase={status:"streaming",streamStart:null,providerStatusChanged:!1,outcome:{kind:"pending"}},this.view={...this.view,messages:e,sessionError:""},this.transition({type:"start",messages:e,sessionId:n})}restore(e,{sessionId:n=this.sessionId,show:i=!1,view:l}={}){return this.lifecycle=gt(this.lifecycle,{type:"load",messages:e,sessionId:n}),this.view={...this.view,...i?{messages:e}:{},...l},this.publish(),this.lifecycle}observe(e){return e.type==="stream_start"&&this.progress({streamStart:{providerExecuted:e.provider_execution!==!1}}),(e.type==="done"||e.type==="error")&&this.progress({outcome:{kind:e.type==="done"?"complete":"error"}}),e.type==="error"&&St(e.code)==="provider"?(this.progress({providerStatusChanged:!0}),!0):!1}reject(e,n){const i=e instanceof Ye?e.code:void 0,l=St(i),c=n&&i==="chat_not_busy"?{kind:"already_complete"}:i==="chat_temporarily_disabled"?{kind:"admission_rejected",reason:"disabled"}:i==="chat_capacity"?{kind:"admission_rejected",reason:"capacity"}:l==="draft"?{kind:"admission_rejected",reason:"draft"}:{kind:"transport_error",provider:l==="provider"},d=c.kind==="transport_error"&&c.provider;return this.progress({outcome:c,...d?{providerStatusChanged:!0}:{}}),c}reset(){this._phase={status:"idle"},this._pendingCapacity=null,this.view={...this.view,messages:[],sessionError:""},this.transition({type:"reset"})}}const Fn=750,Ln=8e3,Bn="The assistant stream failed.",Rt="Couldn’t resend this message. Your original conversation was restored.";function Se(t){const e=o.useRef(t);return o.useLayoutEffect(()=>{e.current=t}),o.useCallback((...n)=>e.current(...n),[])}const Pe=t=>({id:t,role:"assistant",streaming:!0,blocks:[]});function On(t){const[e]=o.useState(()=>new Dn),n=o.useSyncExternalStore(e.subscribe,e.getSnapshot),i=o.useRef(t);i.current=t;const l=o.useRef(t.sessionId),c=o.useRef(null),d=o.useRef(null),p=o.useRef(!1),u=o.useRef({state:"cleared",timer:null}),y=o.useRef(null),T=o.useRef(null),h=o.useRef(he()),v=o.useRef(0),x=(l.current!==t.sessionId?e.projectSession(t.sessionId):null)??n.messages,C=n.busy,B=()=>{var r;(r=d.current)==null||r.cancel(),d.current=null},V=()=>{const r=u.current;r.timer!==null&&window.clearTimeout(r.timer),u.current={state:"cleared",timer:null}},R=Se(()=>{var a;const{timer:r}=u.current;r!==null&&window.clearTimeout(r),(a=e.controller)==null||a.abort(),c.current=null,B(),e.cancelCapacity()});o.useEffect(()=>R,[R]),o.useLayoutEffect(()=>{l.current!==t.sessionId&&(l.current=t.sessionId,e.sessionId!==t.sessionId&&(e.detachView(),y.current=null));const r=e.projectSession(t.sessionId);e.projecting=r!==null,r&&e.present({messages:r})},[t.sessionId,e]),o.useEffect(()=>{e.busy||e.restore(e.messages,{sessionId:t.sessionId})},[t.sessionId,e]);const A=o.useMemo(()=>Ms(x),[x]),j=()=>`m${++v.current}_${Date.now().toString(36)}`,E=(r,a=!0)=>{const S=e.state,w=e.transition(r,a),b=r.type==="event"&&r.event.type==="stream_start"?r.event.session_id:null;return b?i.current.onSessionId(b,S.sessionId,e.configuration):w.sessionId&&w.sessionId!==S.sessionId&&i.current.onSessionId(w.sessionId,S.sessionId,e.configuration),w.title!==S.title&&i.current.onTitle(w.title,w.sessionId),w},M=(r,a=!0)=>{E({type:"event",event:r},a)},I=(r,a,S,w={})=>{const b=e.ownsView(a);e.restore(r,{show:b,view:{...w,...b?{sessionError:S}:{}}})},P=()=>{B(),document.visibilityState!=="hidden"&&e.projecting&&(p.current=!1,e.present({messages:e.messages}))},W=()=>{if(!e.projecting||document.visibilityState==="hidden"||d.current!==null)return;const r=()=>{d.current=null,P()};if(typeof requestAnimationFrame=="function"){const a=requestAnimationFrame(r);d.current={cancel:()=>cancelAnimationFrame(a)}}else{const a=window.setTimeout(r,0);d.current={cancel:()=>window.clearTimeout(a)}}};o.useEffect(()=>{const r=()=>{document.visibilityState==="visible"&&p.current&&W()};return document.addEventListener("visibilitychange",r),()=>document.removeEventListener("visibilitychange",r)});const N=r=>{if(!e.isCurrent(r))return;const{state:a}=u.current;V(),a==="shown"&&E({type:"clear_workspace_status"},e.projectsActive)},Z=(r,a)=>{const{timer:S}=u.current;S!==null&&window.clearTimeout(S);const w=window.setTimeout(()=>{u.current={...u.current,timer:null},!(u.current.state!=="armed"||!e.isCurrent(r)||r.signal.aborted||!e.ownsView(a))&&(u.current={state:"shown",timer:null},E({type:"workspace_status"},e.projectsActive))},Fn);u.current={state:"armed",timer:w}},fe=(r,a)=>{const S=y.current;!S||S.controller!==r||S.tracker.recordStreamStart(a,performance.now())},re=(r,a)=>{const S=y.current;!S||S.controller!==r||S.tracker.recordTerminal(a)};o.useLayoutEffect(()=>{const r=y.current;if(!r)return;const a=x.at(-1);if((a==null?void 0:a.role)!=="assistant"||!(a.blocks??[]).some(b=>b.kind==="tool"||b.kind==="reasoning"&&!!b.text.trim()||b.kind==="answer"&&!!b.text.trim()))return;const w=performance.now();r.tracker.recordFirstVisible(w);for(const b of a.blocks??[])b.kind==="reasoning"&&b.text.trim()?r.tracker.recordSemantic("reasoning",w):b.kind==="tool"?r.tracker.recordSemantic("tool",w):b.kind==="answer"&&b.text.trim()&&r.tracker.recordSemantic("answer",w)},[x]);const ie=async(r,a)=>{var D;const w=await(i.current.loadSession??(H=>ne.getSession(H)))(r);let b=ps(e.state.messages,qt(w));return((D=T.current)==null?void 0:D.sessionId)===r&&(b=T.current.messages,T.current=null),!e.ownsView(a)&&!(e.projectsRun(a)&&i.current.sessionId===r)?null:(e.restore(b,{sessionId:r,show:!0}),b)},te=(r,a)=>Rn(i.current,r,a),Y=r=>{const a=typeof r=="string"?he(r.trim()):r;return!a.text||a.text.length>Ln||e.busy||e.pendingCapacity?null:a},K=(r,a,S,w,b,D,H)=>{const{controller:k,epoch:_}=e.beginRun(),we=r.text;return h.current=r,e.start(S,a.session_id,H??{model:i.current.initialModel,webSearchEnabled:!!a.web_search_enabled,reasoningEffort:a.reasoning_effort??tt}),y.current=D?null:{controller:k,tracker:new jn(performance.now())},u.current={...u.current,state:"cleared"},(async()=>{var Ne,ke,Ae,Ce,Re,Ie;let be=0;const ve=ee=>{ee>be&&(be=ee)};try{const ee=D?Ot(D,{signal:k.signal,onSequence:ve}):Ts(a,{signal:k.signal,onSequence:ve}),le=Nn(ee,{signal:k.signal,getSessionId:()=>e.sessionId,onDisconnect:()=>{!k.signal.aborted&&e.isCurrent(k)&&M({type:"compaction_status",state:"finished"},e.projectsActive)},getAfterSequence:()=>be,onSequence:ve}),ue=!D&&Te()&&Ns(),J=ue?Mn(le,{signal:k.signal,isHidden:()=>document.visibilityState==="hidden"}):null;J&&(c.current={controller:k,stream:J});for await(const de of(J==null?void 0:J.events)??le){if(k.signal.aborted||!e.isCurrent(k))break;const me=fs[de.type];de.type==="paper_artifact"&&((ke=(Ne=i.current).onPaperArtifact)==null||ke.call(Ne,de,e.sessionId)),de.type==="stream_start"&&fe(k,de.request_id),me.workspaceStatus==="arm"&&Z(k,_),me.workspaceStatus==="clear"&&N(k),e.observe(de)&&e.projectsActive&&i.current.onInterrupted(r),me.terminal&&re(k,me.terminal);const ge=e.projectsActive,De=ge&&!(ue&&document.visibilityState==="hidden");ue&&me.presentation==="structural"&&P(),ue&&me.presentation==="delta"?(M(de,!1),p.current||(p.current=ge),W()):(M(de,De),ue&&ge&&!De&&(p.current=!0))}}catch(ee){if(!k.signal.aborted&&e.isCurrent(k)){const le=e.reject(ee,!!D);N(k);const ue=ee instanceof Error?ee.message:Bn;switch(le.kind){case"already_complete":break;case"admission_rejected":if(le.reason==="disabled")I(w,_,"",{disabledRequest:{question:we,draft:r}});else if(le.reason==="capacity"){const J=ee instanceof Ye?ee.retryAfterSeconds??5:5;e.queueCapacity({question:we,draft:r,request:a,optimistic:S,original:w,edit:b,retryAfterSeconds:J,retryAt:Date.now()+J*1e3}),I(w,_,"")}else re(k,"network_error"),e.projectsActive&&i.current.onInterrupted(r),I(w,_,ue);break;case"transport_error":re(k,"network_error"),le.provider&&e.projectsActive&&i.current.onInterrupted(r),e.ownsView(_)&&M({type:"error",message:ue,code:ee instanceof Ye?ee.code:void 0});break}}}finally{if(e.isCurrent(k)){if(((Ae=c.current)==null?void 0:Ae.controller)===k&&(P(),c.current=null),N(k),!e.sawTerminalEvent&&!k.signal.aborted&&re(k,"network_error"),e.finish(),e.admissionRejected)i.current.onSettled(a.session_id);else if(!k.signal.aborted){e.shouldRefreshProvider&&((Re=(Ce=i.current).onProviderTerminal)==null||Re.call(Ce));const ee=e.sessionId,le=e.ownsView(_);if(b&&!e.sawStreamStart)I(b.snapshot,_,Rt);else if(ee){le&&b&&(e.streamFailed||!e.sawTerminalEvent)&&e.restore(b.snapshot,{show:!0});try{const ue=await ie(ee,_);ue&&b&&ue.some(J=>J.id===b.targetId)&&e.present({sessionError:Rt})}catch{e.ownsView(_)&&E({type:"settle"})}}else le&&E({type:"settle"});(!e.running||e.isCurrent(k))&&i.current.onSettled(ee)}((Ie=y.current)==null?void 0:Ie.controller)===k&&(y.current=null)}}})(),!0},z=Se(r=>{const a=Y(r);if(!a)return!1;const S=e.visibleMessages,w=Me(S),b=w!=null&&w.status&&w.status!=="complete"&&w.revision?{replace_message_id:w.id,prior_revision:w.revision}:null,D={id:j(),role:"user",text:a.text,paperMentions:a.paperMentions,paperSelection:a.paperSelection,attachedFiles:a.files},H=Pe(j()),k=b&&w?hs(S,ve=>ve.id===w.id):-1,_=k<0?[...S,D,H]:[...S.slice(0,k),D,H],we=i.current.sessionId??a.fileSessionId??null,{initialModel:be}=i.current;return K(a,te(a.text,{session_id:we,client_message_id:crypto.randomUUID(),...Et(i.current,a),...!we&&be?{initial_model:be}:{},...b??{}}),_,S)}),G=Se((r,a)=>{var be;const S=Y(a);if(!S)return!1;const w=e.visibleMessages.slice(),b=w.findIndex(ve=>ve.id===r&&ve.role==="user");if(b<0)return!1;const D=w[b],H=S.files||!((be=D.attachedFiles)!=null&&be.length)?S:{...S,files:D.attachedFiles},{sessionId:k}=i.current;if(!k||!D.revision)return!1;const _={id:D.id,role:"user",text:H.text,paperMentions:H.paperMentions,paperSelection:H.paperSelection,attachedFiles:H.files,revision:D.revision+1,status:"generating"},we=[...w.slice(0,b),_,Pe(j())];return K(H,te(H.text,{session_id:k,client_message_id:crypto.randomUUID(),...Et(i.current,H),replace_message_id:D.id,prior_revision:D.revision}),we,w,{targetId:D.id,snapshot:w})}),ce=Se(()=>{const r=e.visibleMessages.slice(),a=Me(r),{sessionId:S}=i.current;if(!S||!(a!=null&&a.revision)||e.busy||e.pendingCapacity)return!1;const w=he(a.text??"Continue the interrupted response from saved progress."),b=[...r,{id:j(),role:"user",text:w.text,paperMentions:[]},Pe(j())];return K(w,te(w.text,{session_id:S,client_message_id:crypto.randomUUID(),retry_message_id:a.id,...Vt(i.current)}),b,r)}),ae=Se(()=>{const r=Me(e.visibleMessages);return r!=null&&r.text?G(r.id,Qe(r)):!1}),f=o.useCallback(()=>{e.cancelCapacity()},[e]),L=Se(()=>{const r=e.pendingCapacity;return!r||Date.now()<r.retryAt||e.busy?!1:(e.cancelCapacity(),K(r.draft,r.request,r.optimistic,r.original,r.edit))}),U=Se(()=>{var H,k;const r=e.controller;if(!r)return;N(r),re(r,"stopped"),r.abort();const a=((H=c.current)==null?void 0:H.controller)===r?c.current.stream.takeAcceptedForStop():[];c.current=null;for(const _ of a)M(_,!1);P(),e.releaseRun(),((k=y.current)==null?void 0:k.controller)===r&&(y.current=null),e.finish();const S=e.projectsActive,w=E({type:"stop"},S).messages;S&&i.current.onInterrupted(h.current);const b=e.sessionId;b&&(T.current={sessionId:b,messages:w}),b&&ne.cancelSession(b).catch(()=>{});const D=e.detachView();window.setTimeout(()=>{b&&S&&e.ownsView(D)?ie(b,D).catch(()=>{}).finally(()=>{e.running||i.current.onSettled(b)}):e.running||i.current.onSettled(b)},450)}),pe=Se((r,a)=>{e.projecting?e.transition({type:"toggle_block",messageId:r,blockIndex:a},!0):e.present({messages:ds(e.visibleMessages,r,a)})}),se=()=>{e.detachView(),V(),B(),p.current=!1,y.current=null},X=Se(()=>{se(),e.abortRun(),c.current=null,T.current=null,e.projecting=!1,e.reset()}),oe=Se((r,a,S=!1,w)=>{if(se(),e.cancelCapacity(),e.busy&&a!==void 0&&a===e.sessionId){e.projecting=!0,e.present({messages:e.messages,sessionError:""});return}if(e.projecting=!1,e.busy||e.abortRun(),S&&a&&!e.busy){const b=Me(r);if(b){const D=Qe(b),H=[...r,Pe(`${b.id}-active`)];K(D,te(D.text,{session_id:a,client_message_id:"reconnect"}),H,r,void 0,a,w);return}}e.busy?e.present({messages:r,sessionError:""}):e.restore(r,{sessionId:a??i.current.sessionId,show:!0,view:{sessionError:""}})}),g=n.capacityRequest;return{messages:x,busy:C,activeSessionId:C?e.sessionId:null,activeTitle:e.state.title,activeConfiguration:e.configuration,selectedBusy:C&&e.sessionId===t.sessionId,papers:A,sessionError:n.sessionError,capacityRequest:g,disabledRequest:n.disabledRequest,send:z,editAndResend:G,retryFromProgress:ce,retryLatest:ae,retryCapacity:L,cancelCapacity:f,dismissDisabled:()=>e.present({disabledRequest:null}),stop:U,toggleBlock:pe,reset:X,load:oe}}const jt=(t,e,n)=>e?n?{...t,paperSelection:n}:Pt(t):t,qn=({mode:t="general",routeSessionId:e,primaryPaper:n,currentPage:i,paperSelection:l,onPaperSelectionChange:c,onSessionId:d,onReaderSubmit:p,onReaderNewChat:u,onReaderClose:y})=>{var ot,ct,lt,ut,dt;const{sessionId:T}=ts(),h=e??(t==="general"?T:void 0),v=Tt(),[F]=Mt(),{user:x,isLoading:C}=Ft(),B=Dt(),V=(x==null?void 0:x.hf_subject)??null,R=Nt(),A=je({...ms(),enabled:Te()&&!!x}),j=A.data,E=(j==null?void 0:j.status)==="paused"||t==="paper"&&(j==null?void 0:j.paper_reader_chat_enabled)===!1,M=je({...gs(V),enabled:!!x&&!C}),I=M.data??[],{markSessionBusy:P,patchSession:W,refreshSessions:N}=_n(V),[Z,fe]=o.useState(null),[re,ie]=o.useState(""),[te]=o.useState(Ds),Y=o.useRef(h);Y.current=h;const K=o.useRef(null),z=o.useRef(null),G=o.useRef(0),ce=o.useCallback(()=>{G.current+=1,K.current=null,z.current=null},[]),ae=o.useRef(h);ae.current!==h&&(ae.current=h,ce());const f=vn({userId:V,signedIn:!!x,authLoading:C,requestedModel:F.get("model")||(te==null?void 0:te.model),routeSessionIdRef:Y}),{selectedModel:L,setSelectedModel:U}=f,pe=Vs(!!(x&&f.provider==="openrouter")),[se,X]=o.useState(()=>he()),oe=tt,g=!!(j!=null&&j.web_search_available),[r,a]=o.useState(()=>{var O;const m=(O=F.get("q"))==null?void 0:O.trim();return m?he(m):(te==null?void 0:te.draft)??he()}),[S,w]=o.useState(()=>typeof window>"u"||window.innerWidth>900),b=o.useRef(new Set),[D,H]=o.useState(void 0),k=o.useCallback(m=>{X(m),c==null||c(m.paperSelection)},[c]),_=On({sessionId:h??null,initialModel:L,webSearchEnabled:g,reasoningEffort:oe,primaryPaperRouteId:t==="paper"?n==null?void 0:n.routeId:void 0,viewerContext:t==="paper"&&i?()=>({page:Math.max(1,Math.min(1e4,i()))}):void 0,loadSession:async m=>{const O=await B.fetchQuery(bt(V,m));return fe(q=>(q==null?void 0:q.sessionId)===m?null:q),O},onSessionId:(m,O,q)=>{P(m,{model:(q==null?void 0:q.model)??L,webSearchEnabled:(q==null?void 0:q.webSearchEnabled)??g,reasoningEffort:(q==null?void 0:q.reasoningEffort)??oe});const ye=Y.current??null,Oe=ye===null&&K.current!==null&&(m===K.current||O===K.current);(ye===O||Oe)&&m!==ye&&(t==="paper"?d==null||d(m):v(`/chat/${m}`,{replace:!0}))},onTitle:(m,O)=>{O&&!b.current.has(O)&&W(O,{title:m})},onSettled:m=>{m&&W(m,{is_busy:!1}),B.invalidateQueries({queryKey:Ut}),N()},onProviderTerminal:()=>{B.invalidateQueries({queryKey:Ks})},onPaperArtifact:(m,O)=>{O&&fe({sessionId:O,descriptor:m.descriptor})},onInterrupted:k}),we=_.send;o.useEffect(()=>{_.capacityRequest&&k(_.capacityRequest.draft)},[_.capacityRequest,k]);const be=o.useCallback(()=>t==="paper"&&n?`/pdf/${n.routeId}`:Y.current?`/chat/${Y.current}`:"/chat",[t,n]),ve=o.useCallback((m,O)=>{a(he()),k(m),ie(O)},[k]),Ne=Cn({returnTo:be,selectedModel:L,reasoningEffort:oe,userBilledInference:f.userBilledInference,onPromptRestored:ve}),{authorizeSend:ke,restorePrompt:Ae}=Ne,Ce=!!c,Re=o.useCallback(async m=>{const O=jt(m,Ce,l),q=!Y.current&&!O.fileSessionId&&K.current?{...O,fileSessionId:K.current}:O,ye=ke(q,!!x);if(!(ye!==!0&&!await ye)){if(Fs(),!we(q)){Ae(q,"Your prompt was not sent. It is ready to retry.");return}Ls(),X(he()),c==null||c(void 0),t==="paper"&&(p==null||p())}},[ke,t,c,p,l,Ce,Ae,we,x]),Ie=o.useCallback(async(m,O)=>{const q=G.current;let ye=Y.current??O??K.current;if(!ye){if(!z.current){const ht=ne.createSession(L,oe,t==="paper"?n==null?void 0:n.routeId:void 0).then(ft=>(q===G.current&&(K.current=ft.id),N(),ft.id)).finally(()=>{z.current===ht&&(z.current=null)});z.current=ht}ye=await z.current}if(q!==G.current)throw new yt;const Oe=await ne.uploadFile(ye,m);if(q!==G.current)throw ne.deleteFile(ye,Oe.id).catch(()=>{}),new yt;return{sessionId:ye,file:Oe}},[t,n==null?void 0:n.routeId,oe,N,L]),[ee,le]=o.useState(0),ue=o.useMemo(()=>({upload:async(m,O)=>{le(q=>q+1);try{return await Ie(m,O)}finally{le(q=>q-1)}},remove:(m,O)=>{ne.deleteFile(m,O).catch(()=>{})}}),[Ie]),J=_.selectedBusy,{load:de,activeConfiguration:me}=_,ge=je({...bt(V,h??null),enabled:!!(h&&x&&!C&&!J),refetchOnMount:"always"}),De=wn(t==="general"?h:void 0,!C&&(!x||ge.error instanceof ss&&ge.error.status===404)),Q=ge.data,Fe=J||D===(h??null),st=Z&&Z.sessionId===h?Z.descriptor:Q==null?void 0:Q.latex_paper,Kt=(ct=(ot=[...(Q==null?void 0:Q.messages)??[]].reverse().find(m=>m.role==="user"&&m.viewer_context))==null?void 0:ot.viewer_context)==null?void 0:ct.page;o.useLayoutEffect(()=>{const m=h??null;if(D!==m){if(J){H(m),me!=null&&me.model&&U(me.model);return}if(!m){de([],null),H(null);return}!Q||ge.isFetching||(H(m),de(qt(Q),m,Q.is_busy,{model:Q.selected_model,webSearchEnabled:Q.web_search_enabled,reasoningEffort:Q.reasoning_effort??"high"}),ie(""),U(Q.selected_model))}},[h,J,Q,de,me,ge.isFetching,D,U]),bn({pendingDraft:r,setPendingDraft:a,blocked:C||_.busy||!!x&&A.isFetching||!!(h&&!Fe),authLoading:C,signedIn:!!x,send:Re,restoreDraft:X,setSelectedModel:U,onPaperSelectionChange:c}),o.useEffect(()=>{const m=()=>{!x||_.busy||N()};return window.addEventListener("focus",m),()=>window.removeEventListener("focus",m)},[_.busy,N,x]);const Ve=()=>{ce(),window.innerWidth<=900&&w(!1),de([],null),H(null),X(he()),c==null||c(void 0),t==="paper"?u==null||u():v("/chat")},Le=En({routeSessionId:h,selectedModel:L,setSelectedModel:U,patchSession:W,onRenamed:m=>b.current.add(m),refreshSessions:N,onError:ie,onSelectedDeleted:Ve,isActive:m=>_.busy&&m===_.activeSessionId,stopActive:_.stop}),Ke=yn({messages:_.messages,refreshSessions:N,resetChat:_.reset,restoreDraft:X}),Wt=async()=>{await Le.changeModel($e)&&_.retryLatest()},zt=zs(t==="general"),nt=I.map(m=>m.id===_.activeSessionId&&_.busy?{...m,is_busy:!0,title:b.current.has(m.id)?m.title:_.activeTitle||m.title}:m),xe=nt.find(m=>m.id===h),rt=(xe==null?void 0:xe.primary_paper)??(Q==null?void 0:Q.primary_paper),We=_.messages.length===0,Be=!!(h&&(C||x&&!Fe&&!ge.isError||De.pending)),it=!Fe&&!Be&&((lt=ge.error)==null?void 0:lt.message),Qt=!se.fileSessionId||se.fileSessionId===(h??K.current)?se:{...se,files:void 0,fileSessionId:void 0},at={composerProps:{onSend:Re,busy:J,onStop:_.stop,draft:jt(Qt,Ce,l),onDraftChange:m=>{c?(X(Pt(m)),m.paperSelection!==l&&c(m.paperSelection)):X(m)},disabled:E||C||_.busy&&!J,describedBy:E?"chat-paused-description":void 0,paperMentionsEnabled:!!(j!=null&&j.paper_mentions_enabled),paperSelectionEnabled:(j==null?void 0:j.paper_reader_selection_enabled)===!0,paperArtifactsEnabled:t==="general"&&(j==null?void 0:j.paper_artifacts_enabled)===!0,fileUploads:(j==null?void 0:j.file_uploads_enabled)===!0&&x?ue:void 0},provider:f.provider,sponsored:f.sponsored,paused:E,uploading:ee>0,error:_.sessionError};return s.jsx(ln,{enabled:t==="general",workspaceKey:h??"new-chat",onAskAiFix:m=>{Re(he(m))},children:s.jsxs("div",{className:`chat-page${t==="paper"?" chat-page--reader":""}`,style:{height:zt},children:[t==="general"&&s.jsx(tn,{sessions:nt,activeSessionId:h,loading:M.isLoading,error:re||((ut=M.error)==null?void 0:ut.message)||"",open:S,onClose:()=>w(!1),onNew:Ve,onNavigate:m=>{window.innerWidth<=900&&w(!1),v(`/chat/${m}`)},onRename:Le.rename,onDelete:m=>void Le.remove(m),onDeleteMany:Le.removeMany}),s.jsx(un,{enabled:t==="general",children:s.jsxs("section",{className:"chat-main","data-testid":"active-chat-pane",children:[s.jsxs("div",{className:"chat-topbar",children:[t==="general"&&!S&&s.jsx("button",{type:"button",className:"icon-btn",onClick:()=>w(!0),title:"Open sidebar","aria-label":"Open sidebar",children:s.jsx(Lt,{})}),s.jsx("span",{className:"chat-topbar-title",children:Be?(xe==null?void 0:xe.title)||"":(xe==null?void 0:xe.title)||(Q==null?void 0:Q.title)||(We?"":"New chat")}),R&&s.jsx("span",{className:"chat-staging-badge",children:"Staging"}),t==="general"&&h&&rt&&s.jsx(fn,{routeId:rt.route_id,sessionId:h,page:Kt}),h&&Fe&&!We&&s.jsx(sn,{sessionId:h,busy:J,loading:Be,hasPaperSelection:_.messages.some(m=>!!m.paperSelection),onError:ie}),t==="paper"&&s.jsx(hn,{onNewChat:Ve,onClose:y})]}),s.jsx(dn,{provider:f.provider,enabled:Te()&&!!x&&f.provider==="openai"}),t==="general"&&st&&s.jsx(mn,{descriptor:st}),Be&&!r.text?s.jsxs("div",{className:"chat-session-loading",role:"status","aria-live":"polite",children:[s.jsx(Bt,{}),s.jsx("span",{children:"Loading conversation…"})]}):it?s.jsxs("div",{className:"chat-session-load-error",role:"alert",children:[s.jsx("p",{children:it}),s.jsx("button",{type:"button",onClick:()=>{ge.refetch()},children:"Try again"})]}):We&&!r.text?s.jsx(pn,{mode:t,staging:R,children:s.jsx(_t,{variant:"empty",...at,suggestions:t==="paper"?Bs:Os,suggestionLinks:t==="paper"&&n&&s.jsxs("a",{className:"chat-example",href:Hs(n.title,n.arxivId),target:"_blank",rel:"noopener noreferrer",title:"Ask Hugging Face ML Intern to reproduce this paper",children:[s.jsx("span",{className:"chat-example-icon",children:s.jsx(Us,{name:"robot",size:14})}),"Reproduce with ML Intern"]})})}):s.jsxs(s.Fragment,{children:[s.jsx(Ys,{messages:_.messages,papers:_.papers,busy:J,queuedDraft:r.text?r:void 0,paperMentionsEnabled:!!(j!=null&&j.paper_mentions_enabled),archivePending:Ke.pending,openRouterFallbackEnabled:!!((dt=pe.data)!=null&&dt.fallback_enabled),onToggleBlock:_.toggleBlock,onEditAndResend:_.editAndResend,onRetryFromProgress:_.retryFromProgress,onRetryWithLuna:f.lunaAvailable?()=>void Wt():void 0,onArchiveOld:()=>void Ke.archiveOld(),onArchiveOldest:()=>void Ke.archiveOldest()}),s.jsx(_t,{variant:"followup",...at})]})]})}),_.capacityRequest&&s.jsx(Gs,{retryAt:_.capacityRequest.retryAt,onCancel:_.cancelCapacity,onRetry:()=>{_.retryCapacity()&&(X(he()),c==null||c(void 0))}}),_.disabledRequest&&s.jsx(Xs,{onClose:()=>{var m;k(((m=_.disabledRequest)==null?void 0:m.draft)??se),_.dismissDisabled(),A.refetch()}})]})})},Pn=t=>{const{user:e}=Ft();return s.jsx(qn,{...t},(e==null?void 0:e.hf_subject)??"guest")},wr=()=>s.jsx(Pn,{});export{Pn as ChatExperience,wr as default};
assets/ChatView-Dem6dkHV.js DELETED
@@ -1,6 +0,0 @@
1
- var $t=Object.defineProperty;var Yt=(t,e,r)=>e in t?$t(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var $=(t,e,r)=>Yt(t,typeof e!="symbol"?e+"":e,r);import{d as Gt,i as c,j as s,X as kt,J as At,b as je,L as It,aj as Xt,ak as Jt,al as Zt,am as pt,ab as Ue,f as Mt,n as Tt,E as Nt,o as Dt,l as es,a as Ft,u as ts,A as ss}from"./index-2xE415-f.js";import{C as ns,U as mt,b as rs,f as Ee,A as is,a as as,c as os,g as cs,h as ls,i as qe,j as us,k as gt,t as ds,l as hs,E as fs,m as ps,n as ms,o as gs,p as yt,q as bt}from"./chatLifecycle-DTJ_7jbh.js";import{k as Te,l as ys,m as bs,n as Lt,T as wt,h as Bt,o as Me,r as Qe,s as ws,t as vs,v as ue,D as $e,w as Ss,x as xs,y as _s,z as Es,B as Cs,C as Rs,E as js,F as ks,G as As,H as tt,I as Is,J as vt,K as Ot,L as St,M as Ye,j as Ms,N as Ts,O as Ns,Q as qt,R as Ds,U as Fs,V as Ls,W as Bs,S as Os,X as Pt}from"./chatSessions-BHe2vEWV.js";import{c as se}from"./chat-BaxbAYDA.js";import{M as qs}from"./McpShowcase-DSFseGGp.js";import{S as Ps}from"./share-2-uOkTzPmw.js";import{u as He}from"./useMutation-BcnLcaMd.js";import{I as Us}from"./Icon-DQoMmS2z.js";import{m as Hs}from"./mlIntern-CUgKrjLX.js";import{u as Vs,O as Ks}from"./openrouter-CbaTDPpy.js";/* empty css */import"./hover-card-CZZ0A1FG.js";import"./CatalogEntityPreviewLink-Br2W1MKt.js";import"./github-CknlAJTS.js";import"./file-text-CrUpLQJ2.js";import"./PaperPreviewLink-Dhou1ws3.js";import"./index-CqH2_Dpk.js";import"./index-BHTJgSQg.js";import"./index-CRH6N9tH.js";import"./katex-DkKDou_j.js";import"./thumbs-up-Bc07M7BA.js";import"./copy-COezQGP9.js";import"./arrow-left-BHT-3INU.js";import"./external-link-CCL892xT.js";import"./plus-C20t97Ow.js";import"./search-DfIPA_iX.js";import"./chevron-up-DAPpOAWB.js";import"./AuthorAvatar-D53WcphF.js";import"./trash-2-cqcsUQJn.js";import"./AgentLogos-DmfyY5wp.js";/**
2
- * @license lucide-react v0.462.0 - ISC
3
- *
4
- * This source code is licensed under the ISC license.
5
- * See the LICENSE file in the root directory of this source tree.
6
- */const Ws=Gt("EllipsisVertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]]);function zs(t){const[e,r]=c.useState("calc(100dvh - 60px)");return c.useLayoutEffect(()=>{if(!t)return;const i=document.querySelector(".app-header"),l=window.visualViewport,o=()=>{const p=l?l.height*l.scale:window.innerHeight;r(`${Math.max(0,p-((i==null?void 0:i.offsetHeight)??0))}px`)};o();const d=new ResizeObserver(o);return i&&d.observe(i),l==null||l.addEventListener("resize",o),window.addEventListener("resize",o),()=>{d.disconnect(),l==null||l.removeEventListener("resize",o),window.removeEventListener("resize",o)}},[t]),t?e:"100%"}const Qs="https://huggingface.co/settings/inference-providers",xt="pwc.chat.billing-notice-dismissed.v1";function $s({provider:t}){const[e,r]=c.useState(()=>localStorage.getItem(xt)==="1");return!Te()||e||t!=="huggingface"?null:s.jsxs("div",{className:"chat-billing-notice",role:"note",children:[s.jsx("span",{children:"Hugging Face models use the inference permission granted when you start chatting. Included monthly credits are used first, then extra usage requires purchased credits. You can choose organization billing in Settings."}),s.jsxs("div",{className:"chat-billing-notice-actions",children:[s.jsx("a",{href:"/settings",children:"Review billing"}),s.jsx("a",{href:Qs,target:"_blank",rel:"noreferrer",children:"Review usage"}),s.jsx("button",{type:"button",className:"chat-billing-notice-dismiss","aria-label":"Dismiss billing notice",title:"Dismiss",onClick:()=>{localStorage.setItem(xt,"1"),r(!0)},children:s.jsx(kt,{size:15,"aria-hidden":"true"})})]})]})}function _t({variant:t,composerProps:e,provider:r,sponsored:i=!1,paused:l,uploading:o=!1,error:d,suggestions:p=[],suggestionLinks:u}){var T;const y=s.jsxs(s.Fragment,{children:[!i&&s.jsx($s,{provider:r}),l&&s.jsx("div",{id:"chat-paused-description",className:"chat-paused-banner",role:"status",children:"Chat is temporarily disabled. You can keep browsing and editing your conversations. New research runs will return when chat is restored."}),d&&s.jsx("div",{className:"chat-composer-error",role:"alert",children:d}),s.jsx(ns,{...e,...t==="empty"?{autoFocus:!0}:{placeholder:(T=e.draft)!=null&&T.text?"Edit and send again…":"Ask a follow-up…"}}),t==="empty"&&s.jsxs("div",{className:"chat-examples",children:[p.map(h=>s.jsx("button",{type:"button",className:"chat-example",disabled:l||o,onClick:()=>e.onSend({...e.draft,text:h,paperMentions:[]}),children:h},h)),u]})]});return t==="empty"?y:s.jsx("div",{className:"chat-composer-wrap",children:s.jsxs("div",{className:"chat-composer-inner",children:[y,s.jsx("div",{className:"chat-composer-foot",children:Te()?s.jsxs(s.Fragment,{children:[r==="huggingface"&&s.jsxs("span",{className:"chat-provider-attribution",children:["Powered by 🤗 ",s.jsx("a",{href:"https://huggingface.co/docs/inference-providers/en/index",target:"_blank",rel:"noreferrer",children:"Inference Providers"}),"."]}),r==="openrouter"&&s.jsxs("span",{className:"chat-provider-attribution",children:["Powered by ",s.jsx("a",{href:"https://openrouter.ai",target:"_blank",rel:"noreferrer",children:"OpenRouter"}),"."]}),s.jsx("span",{children:"The AI assistant can make mistakes. Double-check responses."})]}):s.jsx(s.Fragment,{children:"Assistant preview — responses are simulated."})})]})})}function Ys({messages:t,papers:e,busy:r,queuedDraft:i,paperMentionsEnabled:l,archivePending:o,openRouterFallbackEnabled:d,onToggleBlock:p,onEditAndResend:u,onRetryFromProgress:y,onRetryWithLuna:T,onArchiveOld:h,onArchiveOldest:v}){var Y,K;const[L,x]=c.useState(null),C=c.useRef(null),B=c.useRef(null),V=c.useRef("bottom"),R=c.useRef(0),A=c.useRef(0),[j,E]=c.useState(!1),M=c.useRef(null),I=c.useCallback(f=>{V.current=f},[]),P=c.useCallback(()=>{const f=C.current;f&&E(f.scrollHeight-f.scrollTop-f.clientHeight>1)},[]),W=t.filter(f=>f.role==="user"),D=W.length,X=c.useRef(D),de=c.useRef(!1),ne=(Y=W[0])==null?void 0:Y.id,re=(K=W.at(-1))==null?void 0:K.id;c.useEffect(()=>{r&&x(null)},[r]),c.useLayoutEffect(()=>{const f=C.current;if(f){if(D>X.current||r&&!de.current){const N=Array.from(f.querySelectorAll("[data-message-id]")).at(-1);if(N){const U=f.getBoundingClientRect().top;R.current=f.scrollTop+N.getBoundingClientRect().top-U-24,I("question")}}if(X.current=D,de.current=r,B.current!==null){f.scrollTop=B.current,B.current=null;return}V.current==="bottom"&&(f.scrollTop=f.scrollHeight),V.current==="question"&&(f.scrollTop=R.current,A.current=f.scrollTop)}},[t,D,r,I]),c.useLayoutEffect(P),c.useEffect(()=>{const f=C.current;if(!f)return;const N=new ResizeObserver(P);return N.observe(f),f.firstElementChild&&N.observe(f.firstElementChild),()=>N.disconnect()},[P]);const Z=(f,N)=>{var U;B.current=((U=C.current)==null?void 0:U.scrollTop)??null,p(f,N)};return s.jsxs("div",{className:"chat-conversation-viewport",children:[s.jsx("div",{className:"chat-conversation",ref:C,tabIndex:0,role:"region","aria-label":"Conversation",onWheel:f=>{(f.deltaY<0||V.current==="question")&&I("free")},onTouchStart:f=>{var N;M.current=((N=f.touches[0])==null?void 0:N.clientY)??null},onTouchMove:f=>{var U;const N=(U=f.touches[0])==null?void 0:U.clientY;N!==void 0&&M.current!==null&&(N>M.current||V.current==="question")&&I("free"),M.current=N??null},onKeyDown:f=>{f.target===f.currentTarget&&((["ArrowUp","PageUp","Home"].includes(f.key)||f.key===" "&&f.shiftKey)&&I("free"),["ArrowDown","PageDown","End"," "].includes(f.key)&&V.current==="question"&&I("free"))},onScroll:f=>{const{scrollHeight:N,scrollTop:U,clientHeight:ee}=f.currentTarget,z=N-U-ee<=1;V.current==="bottom"&&!z&&I("free");const te=U-A.current;V.current==="question"&&(te>1||te<-1&&!z)&&I("free"),P()},children:s.jsxs("div",{className:"chat-conversation-inner",children:[t.length===0&&(i==null?void 0:i.text)&&s.jsx(mt,{id:"queued-launch-preview",text:i.text,paperMentions:i.paperMentions,paperSelection:i.paperSelection,isInitial:!0}),t.map(f=>{var N,U,ee,z;return f.role==="user"?s.jsx(mt,{id:f.id,text:f.text??"",paperMentions:f.paperMentions??[],paperSelection:f.paperSelection,attachedFiles:f.attachedFiles,paperMentionsEnabled:l,isInitial:f.id===ne,editingAllowed:!r&&!!f.revision,editing:L===f.id,editNotice:f.id===ne?"Sending will replace this conversation.":f.id===re?"Sending will replace the response.":"Sending will replace the response and all messages after it.",onEdit:()=>x(f.id),onCancel:()=>x(null),onResendDraft:te=>{const ae=u(f.id,te);return ae&&x(null),ae}},f.id):s.jsx(rs,{msg:f,papers:e,onToggleBlock:Z,onRetryCompaction:!r&&f.id===((N=t.at(-1))==null?void 0:N.id)&&((U=W.at(-1))!=null&&U.revision)?y:void 0,onRetryWithLuna:!r&&f.id===((ee=t.at(-1))==null?void 0:ee.id)&&((z=W.at(-1))!=null&&z.revision)?T:void 0,onArchiveOldChats:h,onArchiveOldestChats:v,archivePending:o,hfBilling:null,openRouterFallbackEnabled:d,feedbackEnabled:!0},f.id)})]})}),j&&s.jsx("button",{type:"button",className:"chat-jump-latest",onClick:()=>{I("bottom");const f=C.current;f&&(f.focus({preventScroll:!0}),f.scrollTop=f.scrollHeight,P())},children:"Jump to latest"})]})}function Gs({retryAt:t,onRetry:e,onCancel:r}){const[i,l]=c.useState(()=>Math.max(0,Math.ceil((t-Date.now())/1e3))),o=c.useRef(null);return c.useEffect(()=>{var y;const d=document.activeElement instanceof HTMLElement?document.activeElement:null;(y=o.current)==null||y.focus();const p=()=>l(Math.max(0,Math.ceil((t-Date.now())/1e3)));p();const u=window.setInterval(p,250);return()=>{window.clearInterval(u),d==null||d.focus()}},[t]),s.jsx("div",{className:"chat-capacity-dialog-backdrop",role:"presentation",children:s.jsxs("div",{className:"chat-capacity-dialog",role:"dialog","aria-modal":"true","aria-labelledby":"chat-capacity-dialog-title","aria-describedby":"chat-capacity-dialog-description",onKeyDown:d=>{d.key==="Escape"&&(d.preventDefault(),r())},children:[s.jsx("h2",{id:"chat-capacity-dialog-title",children:"All research slots are currently in use"}),s.jsx("p",{id:"chat-capacity-dialog-description",children:"Your message was not sent or billed. Try again in a few seconds."}),s.jsx("p",{className:"chat-capacity-countdown","aria-live":"polite",children:i>0?`Try again available in ${i} second${i===1?"":"s"}.`:"You can try again now."}),s.jsxs("div",{className:"chat-capacity-dialog-actions",children:[s.jsx("button",{type:"button",className:"chat-capacity-cancel",ref:o,onClick:r,children:"Cancel"}),s.jsx("button",{type:"button",className:"chat-capacity-retry",disabled:i>0,onClick:e,children:"Try again"})]})]})})}function Xs({onClose:t}){const e=c.useRef(null);return c.useEffect(()=>{var i;const r=document.activeElement instanceof HTMLElement?document.activeElement:null;return(i=e.current)==null||i.focus(),()=>r==null?void 0:r.focus()},[]),s.jsx("div",{className:"chat-capacity-dialog-backdrop",role:"presentation",children:s.jsxs("div",{className:"chat-capacity-dialog",role:"dialog","aria-modal":"true","aria-labelledby":"chat-disabled-title","aria-describedby":"chat-disabled-description",onKeyDown:r=>{r.key==="Escape"&&(r.preventDefault(),t())},children:[s.jsx("h2",{id:"chat-disabled-title",children:"Chat is temporarily disabled"}),s.jsx("p",{id:"chat-disabled-description",children:"We've temporarily paused new research runs. Your message wasn't sent, and your draft is still here. Please try again later."}),s.jsx("div",{className:"chat-capacity-dialog-actions",children:s.jsx("button",{ref:e,type:"button",className:"chat-capacity-cancel",onClick:t,children:"Keep editing"})})]})})}function Js({url:t,onClose:e}){return t?s.jsx("div",{className:"chat-share-dialog-backdrop",role:"presentation",onMouseDown:e,children:s.jsxs("div",{className:"chat-share-dialog",role:"dialog","aria-modal":"true","aria-labelledby":"chat-share-dialog-title",onMouseDown:r=>r.stopPropagation(),children:[s.jsx("h2",{id:"chat-share-dialog-title",children:"Public link created"}),s.jsx("p",{children:"Anyone with this link can see this conversation. It could not be copied automatically, so copy it manually:"}),s.jsx("input",{readOnly:!0,value:t,"aria-label":"Public conversation link",autoFocus:!0,onFocus:r=>r.currentTarget.select()}),s.jsx("button",{type:"button",onClick:e,children:"Close"})]})}):null}const Ge="pwc:chat:sidebar-width",Xe=280,Je=200,Ze=480,Zs=12,et=t=>Math.max(Je,Math.min(Ze,t)),en=()=>{if(typeof window>"u")return Xe;const t=Number(localStorage.getItem(Ge));return Number.isFinite(t)&&t>0?et(t):Xe};function tn({sessions:t,activeSessionId:e,loading:r,error:i,open:l,onClose:o,onNew:d,onNavigate:p,onRename:u,onDelete:y,onDeleteMany:T}){const[h,v]=c.useState(en),L=c.useRef(null),x=c.useRef(h),[C,B]=c.useState(null),[V,R]=c.useState(""),[A,j]=c.useState(null),[E,M]=c.useState(!1),[I,P]=c.useState(new Set),W=t.filter(g=>I.has(g.id)).map(g=>g.id),D=W.length>0,[X,de]=c.useState(!1),ne=[...t].sort((g,n)=>Date.parse(n.updated_at)-Date.parse(g.updated_at)),re=ne.filter((g,n)=>n<Zs||g.id===e),Z=E?ne:re,Y=t.length-re.length;c.useEffect(()=>{if(!A)return;const g=()=>j(null),n=a=>{a.key==="Escape"&&g()};return window.addEventListener("click",g),window.addEventListener("keydown",n),()=>{window.removeEventListener("click",g),window.removeEventListener("keydown",n)}},[A]),c.useEffect(()=>{if(!D)return;const g=n=>{n.key==="Escape"&&P(new Set)};return window.addEventListener("keydown",g),()=>window.removeEventListener("keydown",g)},[D]);const K=ys(Z),f=K.flatMap(g=>g.items.map(n=>n.id)),N=c.useRef(null),U=g=>{N.current=g,P(n=>{const a=new Set(n);return a.has(g)?a.delete(g):a.add(g),a})},ee=g=>{const a=(N.current&&I.has(N.current)?N.current:null)??(D?null:e??null);a&&(N.current=a);const S=a?f.indexOf(a):-1,w=f.indexOf(g);if(S<0||w<0){N.current=g,P(F=>new Set([...F,g]));return}const b=f.slice(Math.min(S,w),Math.max(S,w)+1);P(F=>new Set([...F,...b]))},z=async()=>{if(!(X||!Ee())){de(!0);try{await T(W)&&P(new Set)}finally{de(!1)}}},te=g=>{B(g.id),R(g.title)},ae=async g=>{const n=V.trim();n&&await u(g,n)&&B(null)},_e=(g,n,a)=>j({id:g,x:n,y:a}),ye=g=>{if(!L.current)return;const n=et(L.current.width+g-L.current.x);x.current=n,v(n)},ie=()=>{L.current&&(L.current=null,localStorage.setItem(Ge,String(x.current)))},me=g=>{const n=et(g);x.current=n,v(n),localStorage.setItem(Ge,String(n))};return s.jsxs(s.Fragment,{children:[l&&s.jsx("div",{className:"chat-sidebar-backdrop","aria-hidden":"true",onClick:o}),s.jsxs("aside",{className:`chat-sidebar${l?"":" chat-sidebar-closed"}`,style:{"--chat-sidebar-width":`${h}px`},children:[s.jsxs("div",{className:"chat-sidebar-top",children:[s.jsxs("button",{type:"button",className:"chat-new-chat",onClick:()=>{Ee()&&d()},children:[s.jsx(bs,{})," New chat"]}),s.jsx("button",{type:"button",className:"icon-btn",onClick:o,title:"Collapse sidebar",children:s.jsx(Lt,{})})]}),D&&s.jsxs("div",{className:"chat-sessions-bulk",role:"toolbar","aria-label":"Selected chats",children:[s.jsxs("span",{className:"chat-sessions-bulk-count",children:[W.length," selected"]}),s.jsxs("button",{type:"button",className:"chat-sessions-bulk-delete",disabled:X,onClick:()=>void z(),children:[s.jsx(wt,{})," ",X?"Deleting…":"Delete"]}),s.jsx("button",{type:"button",className:"chat-sessions-bulk-cancel",disabled:X,onClick:()=>P(new Set),children:"Cancel"})]}),s.jsxs("nav",{className:"chat-sessions","aria-label":"Chat history",children:[r&&s.jsx("div",{className:"chat-sessions-empty",children:"Loading chats…"}),!r&&i&&s.jsx("div",{className:"chat-sessions-empty",children:i}),!r&&!i&&t.length===0&&s.jsx("div",{className:"chat-sessions-empty",children:"Conversations you start will show up here."}),K.map(g=>s.jsxs("div",{className:"chat-session-group",children:[s.jsx("div",{className:"chat-session-group-label",children:g.label}),g.items.map(n=>s.jsxs("div",{className:`chat-session${n.id===e?" chat-session-active":""}${I.has(n.id)?" chat-session-selected":""}`,role:"button",tabIndex:0,"aria-pressed":D?I.has(n.id):void 0,title:D?"Shift-click to select every chat up to here":"Shift-click to select several chats",onMouseDown:a=>{a.shiftKey&&a.preventDefault()},onClick:a=>{a.shiftKey?ee(n.id):D?U(n.id):Ee()&&p(n.id)},onKeyDown:a=>{if(a.key==="Enter"&&a.shiftKey?ee(n.id):a.key==="Enter"&&D?U(n.id):a.key==="Enter"&&Ee()&&p(n.id),a.key==="F2"&&te(n),a.key==="ContextMenu"||a.shiftKey&&a.key==="F10"){a.preventDefault();const S=a.currentTarget.getBoundingClientRect();_e(n.id,S.right-150,S.bottom)}},onContextMenu:a=>{a.preventDefault(),_e(n.id,a.clientX,a.clientY)},children:[C===n.id?s.jsx("input",{className:"chat-session-title-input",value:V,autoFocus:!0,maxLength:80,onClick:a=>a.stopPropagation(),onChange:a=>R(a.target.value),onBlur:()=>void ae(n.id),onKeyDown:a=>{a.stopPropagation(),a.key==="Enter"&&ae(n.id),a.key==="Escape"&&B(null)}}):s.jsx("span",{className:"chat-session-title",children:n.title}),s.jsx("button",{type:"button",className:"chat-session-menu","aria-label":"Chat actions","aria-haspopup":"menu",title:"Chat actions",onClick:a=>{a.stopPropagation();const S=a.currentTarget.getBoundingClientRect();_e(n.id,S.right-150,S.bottom)},children:"⋯"}),s.jsx("button",{type:"button",className:"chat-session-delete","aria-label":I.has(n.id)?"Delete selected conversations":"Delete conversation",onClick:a=>{a.stopPropagation(),I.has(n.id)?z():Ee()&&y(n.id)},children:s.jsx(wt,{})})]},n.id))]},g.label)),Y>0&&s.jsx("button",{type:"button",className:"chat-sessions-toggle","aria-expanded":E,onClick:()=>M(g=>!g),children:E?"Show less":`Show ${Y} older ${Y===1?"chat":"chats"}`})]}),s.jsx(qs,{className:"chat-sidebar-tools",canNavigate:Ee}),s.jsx("div",{className:"chat-sidebar-resize-handle",role:"separator","aria-label":"Resize chat history","aria-orientation":"vertical","aria-valuemin":Je,"aria-valuemax":Ze,"aria-valuenow":h,title:"Drag to resize; double-click to reset",tabIndex:0,onPointerDown:g=>{g.button===0&&(L.current={x:g.clientX,width:h},x.current=h,g.currentTarget.setPointerCapture(g.pointerId))},onPointerMove:g=>ye(g.clientX),onPointerUp:ie,onPointerCancel:ie,onLostPointerCapture:ie,onDoubleClick:()=>me(Xe),onKeyDown:g=>{(g.key==="ArrowLeft"||g.key==="ArrowRight")&&(g.preventDefault(),me(h+(g.key==="ArrowRight"?10:-10))),(g.key==="Home"||g.key==="End")&&(g.preventDefault(),me(g.key==="Home"?Je:Ze))}}),A&&s.jsxs("div",{className:"chat-session-context-menu",role:"menu",style:{left:A.x,top:A.y},onClick:g=>g.stopPropagation(),children:[s.jsx("button",{type:"button",role:"menuitem",autoFocus:!0,onClick:()=>{const g=t.find(n=>n.id===A.id);g&&te(g),j(null)},children:"Rename chat"}),s.jsx("button",{type:"button",role:"menuitem",onClick:()=>{U(A.id),j(null)},children:I.has(A.id)?"Deselect chat":"Select chat"})]})]})]})}function sn({sessionId:t,busy:e,loading:r,hasPaperSelection:i=!1,onError:l}){const{toast:o}=At(),[d,p]=c.useState(!1),[u,y]=c.useState(""),T=async()=>{var h;if(!(e||d)&&!(i&&!window.confirm("This public link will include the selected paper passage. Anyone with the link can read that passage. Continue?"))){p(!0);try{const v=await se.createOrRefreshShare(t),L=new URL(v.public_path,window.location.origin).toString();try{if(!((h=navigator.clipboard)!=null&&h.writeText))throw new Error("Clipboard unavailable");await navigator.clipboard.writeText(L),o({className:"chat-share-toast",duration:5e3,title:"Public link copied to your clipboard",description:"Anyone with this link can see this conversation."})}catch{y(L)}}catch(v){const L=v instanceof Error?v.message:"Could not share this conversation";l(L),o({variant:"destructive",title:"Share failed",description:L})}finally{p(!1)}}};return s.jsxs(s.Fragment,{children:[s.jsxs("button",{type:"button",className:"chat-share-button",onClick:()=>void T(),disabled:e||d||r,"aria-label":"Share conversation",children:[d?s.jsx(Bt,{}):s.jsx(Ps,{"aria-hidden":"true"}),s.jsx("span",{children:"Share"})]}),s.jsx(Js,{url:u,onClose:()=>y("")})]})}const Ut=["chat","openai","usage"],nn=90,Ht="pwc:chat:openai-credits-notice:dismissed";function rn(t=!0){return je({queryKey:Ut,queryFn:()=>se.getOpenAIUsage(),enabled:t,staleTime:3e4,retry:!1,refetchOnWindowFocus:!0})}function an(t,e,r){if(!t||e!=="openai"||t.used_percent<nn||r===t.resets_at)return null;const i=new Intl.DateTimeFormat(void 0,{month:"long",day:"numeric"}).format(new Date(t.resets_at));return{message:`You have ${t.remaining_percent}% left of your monthly OpenAI credits. They reset on ${i}.`,resetsAt:t.resets_at}}function on(){try{return localStorage.getItem(Ht)}catch{return null}}function cn(t){try{localStorage.setItem(Ht,t)}catch{}}const ln=({enabled:t,workspaceKey:e,children:r,onAskAiFix:i})=>t?s.jsx(is,{workspaceKey:e,onAskAiFix:i,children:r}):s.jsx(s.Fragment,{children:r}),un=({enabled:t,children:e})=>t?s.jsx(as,{variant:"chat",children:e}):s.jsx(s.Fragment,{children:e}),dn=({provider:t,enabled:e})=>{const r=rn(e),[i,l]=Ue.useState(()=>on()),o=an(r.data,t,i);return o?s.jsxs("div",{className:"chat-credits-notice",role:"status",children:[s.jsx("span",{children:o.message}),s.jsx("button",{type:"button",className:"chat-credits-notice-close","aria-label":"Dismiss credits notice",onClick:()=>{cn(o.resetsAt),l(o.resetsAt)},children:"×"})]}):null},hn=({onNewChat:t,onClose:e})=>s.jsxs(s.Fragment,{children:[s.jsxs(Xt,{children:[s.jsx(Jt,{asChild:!0,children:s.jsx("button",{type:"button",className:"icon-btn chat-reader-icon-btn","aria-label":"Chat options",title:"Chat options",children:s.jsx(Ws,{"aria-hidden":"true"})})}),s.jsxs(Zt,{align:"end",children:[s.jsx(pt,{onSelect:t,children:"New chat"}),s.jsx(pt,{asChild:!0,children:s.jsx(It,{to:"/chat",children:"All chats"})})]})]}),e&&s.jsx("button",{type:"button",className:"icon-btn chat-reader-icon-btn",onClick:e,"aria-label":"Close chat",title:"Close chat",children:s.jsx(kt,{"aria-hidden":"true"})})]}),fn=({routeId:t,sessionId:e,page:r})=>s.jsx(It,{className:"chat-reader-action",to:`/pdf/${t}`,onClick:i=>{if(!Ee()){i.preventDefault();return}sessionStorage.setItem(`pwc:reader:session:${t}`,e),r&&sessionStorage.setItem(`pwc:reader:page:${t}`,String(r))},children:"Open reader"}),pn=({mode:t,staging:e,children:r})=>s.jsx("div",{className:"chat-empty",children:s.jsxs("div",{className:"chat-empty-inner",children:[s.jsx("div",{className:"chat-empty-eyebrow",children:t==="paper"?"Paper chat":"Research chat"}),s.jsx("h1",{className:"chat-empty-title",children:t==="paper"?"Ask about this paper":s.jsxs(s.Fragment,{children:["Ask ",s.jsx("em",{children:"Papers With Code"})]})}),s.jsx("p",{className:"chat-empty-sub",children:t==="paper"?"Questions are grounded in the open paper. Add up to three other papers with @.":"Answers are grounded in a live hybrid search over papers, tasks, and benchmarks — with citations you can follow."}),e&&s.jsx("p",{className:"chat-staging-access-note",children:"This is a limited staging preview. Only approved Hugging Face users can start chats."}),r]})}),mn=({descriptor:t})=>{const e=os(),{open:r,register:i,unregister:l}=e,o=Ue.useRef(null),d=t.source_head??t.preview_head,p=Ue.useMemo(()=>d?{kind:"artifact",schema_version:1,scope:"owner",artifact_id:t.artifact_id,version_id:d.version_id,identifier:"latex-paper",version:d.version,artifact_kind:"latex_paper",title:t.title,status:"ready",preview_mime:"application/pdf",source_language:"latex",total_bytes:0}:null,[t.artifact_id,t.title,d]),u=p?cs(p):null;return Ue.useEffect(()=>{if(!(!p||!u))return i(p),o.current!==u&&(o.current=u,r(p)),()=>l(u)},[p,u,r,i,l]),null},gn={old:"Could not archive old chats",oldest:"Could not archive chats"};function yn({messages:t,refreshSessions:e,resetChat:r,restoreDraft:i}){const{toast:l}=At(),o=He({mutationFn:async u=>{const y=u==="old"?await se.archiveOldChats():await se.archiveOldestChats();return await e(),y},onSuccess:({archived_count:u},y)=>{if(y==="old"&&u===0){l({title:"No chats were archived",description:"There are no inactive chats older than 30 days."});return}const T=Me(t);r(),i(Qe(T)),l({title:`${u} ${u===1?"chat":"chats"} archived`,description:"Your question is ready to send again."})},onError:(u,y)=>{l({variant:"destructive",title:gn[y],description:u instanceof Error?u.message:"Try again."})}}),d=o.isPending?o.variables??null:null,p=async u=>{d===null&&await o.mutateAsync(u).catch(()=>{})};return{pending:d,archiveOld:()=>p("old"),archiveOldest:()=>p("oldest")}}function bn({pendingDraft:t,setPendingDraft:e,blocked:r,authLoading:i,signedIn:l,send:o,restoreDraft:d,setSelectedModel:p,onPaperSelectionChange:u}){const[y,T]=Mt(),h=c.useRef(!1);c.useEffect(()=>{if(i||!l)return;const v=ws();v&&(v.draft.paperSelection&&(u==null||u(v.draft.paperSelection)),v.autoSend?e(v.draft):(d(v.draft),vs()))},[i,u,d,e,l]),c.useEffect(()=>{var C;if(i)return;const v=(C=y.get("q"))==null?void 0:C.trim();if(!v)return;h.current=!1;const L=y.get("model");L&&p(L),e(ue(v));const x=new URLSearchParams(y);x.delete("q"),x.delete("model"),T(x,{replace:!0})},[i,y,e,T,p]),c.useEffect(()=>{if(r||!t.text||h.current)return;const v=window.setTimeout(()=>{h.current||(h.current=!0,o(t).finally(()=>e(ue())))},0);return()=>window.clearTimeout(v)},[r,t,o,e])}function wn(t,e){var o;const r=Tt(),i=je({queryKey:["chatSessionPublicShare",t],queryFn:()=>se.getSessionPublicShare(t??""),enabled:!!t&&e,retry:!1}),l=(o=i.data)==null?void 0:o.public_path;return c.useEffect(()=>{l&&r(l,{replace:!0})},[r,l]),{pending:i.isFetching||!!l}}function vn({userId:t,signedIn:e,authLoading:r,requestedModel:i,routeSessionIdRef:l}){const o=c.useRef(i),d=c.useRef(null),[p,u]=c.useState(i||$e),y=c.useCallback(C=>{o.current=C,u(C)},[]),h=je({...ls(t),enabled:e&&!r}).data,v=(h==null?void 0:h.items)??(Nt()?Ss:xs);c.useEffect(()=>{if(r||!e)return;const C=_s();d.current=C,C&&u(C)},[r,e]),c.useEffect(()=>{if(!h||l.current)return;const C=o.current||d.current;u(C&&h.items.some(B=>B.id===C)?C:h.default_model)},[h,l]);const L=Es(v,p),x=Cs(v,p);return{models:v,selectedModel:p,setSelectedModel:y,provider:L,sponsored:x,userBilledInference:L==="huggingface"&&!x,lunaAvailable:v.some(C=>C.id===$e)}}const Sn=3e3,xn=150,ze=(t,e)=>t instanceof Error?t.message:e;function _n(t){const e=Dt(),r=c.useCallback(d=>{e.setQueryData(qe.list(t),p=>d(p??[]))},[e,t]),i=c.useCallback((d,p)=>{r(u=>u.map(y=>y.id===d?{...y,...p}:y)),e.setQueryData(qe.detail(t,d),u=>u&&{...u,...p})},[e,r,t]),l=c.useCallback(async()=>{await e.invalidateQueries({queryKey:qe.list(t)})},[e,t]);return{markSessionBusy:c.useCallback((d,p)=>{e.cancelQueries({queryKey:qe.list(t)});const u=new Date().toISOString();r(y=>y.some(T=>T.id===d)?y.map(T=>T.id===d?{...T,is_busy:!0}:T):[{id:d,title:"New chat",selected_model:p.model,created_at:u,updated_at:u,message_count:1,is_busy:!0,web_search_enabled:p.webSearchEnabled,reasoning_effort:p.reasoningEffort},...y])},[e,r,t]),patchSession:i,refreshSessions:l}}function En({routeSessionId:t,selectedModel:e,setSelectedModel:r,patchSession:i,onRenamed:l,refreshSessions:o,onError:d,onSelectedDeleted:p,isActive:u,stopActive:y}){const T=He({mutationFn:({id:R,title:A})=>se.updateSession(R,{title:A}),onSuccess:(R,{id:A})=>{l(A),i(A,R)},onError:R=>d(ze(R,"Rename failed"))}),h=async(R,A)=>{if(A){const j=Date.now()+Sn;for(;(await se.getSession(R)).is_busy;){if(Date.now()>=j)throw new Error("Generation is still stopping. The chat was not deleted.");await new Promise(M=>window.setTimeout(M,xn))}}await se.removeSession(R)},v=He({mutationFn:async({ids:R,activeId:A})=>{let j=!1;try{for(const E of R)await h(E,E===A),E===t&&(j=!0)}finally{j&&p(),await o()}},onError:R=>d(ze(R,"Delete failed"))}),L=He({mutationFn:({sessionId:R,model:A})=>se.updateSession(R,{selected_model:A}),onSuccess:(R,{sessionId:A})=>{i(A,{selected_model:R.selected_model}),d("")},onError:(R,{previous:A})=>{r(A),d(ze(R,"Model change failed"))}}),x=(R,A)=>T.mutateAsync({id:R,title:A}).then(()=>!0,()=>!1),C=async R=>{if(R.length===0)return!1;const A=R.find(u),j=R.length===1?"this chat":`these ${R.length} chats`;return window.confirm(`${A?"Stop and delete":"Delete"} ${j}? This cannot be undone.`)?(A&&y(),v.mutateAsync({ids:R,activeId:A}).then(()=>!0,()=>!1)):!1};return{rename:x,remove:async R=>{await C([R])},removeMany:C,changeModel:async R=>{const A=e;return r(R),t?L.mutateAsync({sessionId:t,model:R,previous:A}).then(()=>!0,()=>!1):!0}}}function Cn({returnTo:t,selectedModel:e,reasoningEffort:r,userBilledInference:i,onPromptRestored:l}){const o=c.useRef(!1),d=c.useRef(!1),p=c.useCallback(h=>{Rs(h,e,r),window.location.href=es(t(),{authorizeInference:i})},[r,t,e,i]),u=c.useCallback((h,v)=>{js(h,e),l(h,v)},[l,e]),y=c.useCallback(async h=>{if(d.current)return!1;d.current=!0;try{return(await se.getInferenceBilling()).connected?(o.current=!0,!0):ks()?(u(h,"Hugging Face inference authorization was not completed. Your prompt is ready to retry."),!1):(p(h),!1)}catch(v){return u(h,v instanceof Error?v.message:"Could not check Hugging Face authorization."),!1}finally{d.current=!1}},[p,u]);return{authorizeSend:c.useCallback((h,v)=>v?i&&!o.current?y(h):!0:(p(h),!1),[p,y,i]),restorePrompt:u}}function Rn(t,e,r){return{message:e,...r,web_search_enabled:!!t.webSearchEnabled,reasoning_effort:t.reasoningEffort??tt}}function Vt(t){return t.primaryPaperRouteId?{primary_paper_route_id:t.primaryPaperRouteId}:{}}function Et(t,e){var i,l;const r=(i=t.viewerContext)==null?void 0:i.call(t);return{paper_mentions:e.paperMentions.map(({route_id:o,title:d,start:p,end:u})=>({route_id:o,title:d,start:p,end:u})),...Vt(t),...r?{viewer_context:r}:{},...e.paperSelection?{paper_selection:As(e.paperSelection)}:{},...(l=e.files)!=null&&l.length?{file_ids:e.files.map(o=>o.id)}:{}}}class jn{constructor(e,r=Is){$(this,"requestId");$(this,"firstVisibleAt");$(this,"streamStartReported",!1);$(this,"firstVisibleReported",!1);$(this,"terminalReported",!1);$(this,"semanticReported",new Set);this.submittedAt=e,this.report=r}recordStreamStart(e,r){this.requestId=e,this.streamStartReported||(this.streamStartReported=!0,this.send({submission_to_stream_start_ms:Math.max(0,r-this.submittedAt)})),this.reportFirstVisible()}recordFirstVisible(e){this.firstVisibleAt===void 0&&(this.firstVisibleAt=e,this.reportFirstVisible())}recordSemantic(e,r){if(this.semanticReported.has(e))return;this.semanticReported.add(e);const i=Math.max(0,r-this.submittedAt);this.send(e==="reasoning"?{submission_to_first_reasoning_delta_ms:i}:e==="tool"?{submission_to_first_tool_call_ms:i}:{submission_to_first_answer_delta_ms:i})}recordTerminal(e){this.terminalReported||(this.terminalReported=!0,this.send({terminal_classification:e}))}reportFirstVisible(){!this.requestId||this.firstVisibleAt===void 0||this.firstVisibleReported||(this.firstVisibleReported=!0,this.send({submission_to_first_visible_delta_ms:Math.max(0,this.firstVisibleAt-this.submittedAt)}))}send(e){this.requestId&&this.report(this.requestId,e)}}const xe={minDelayMs:5,maxDelayMs:80,minRateCharsPerMs:.3,maxBufferedMs:400,arrivalRateTauMs:1e3,arrivalRateHeadroom:1.1,maxPendingChars:64},kn={now:()=>performance.now(),sleep:(t,e)=>new Promise(r=>{if(e!=null&&e.aborted||t<=0){r();return}const i=window.setTimeout(l,t);function l(){e==null||e.removeEventListener("abort",l),window.clearTimeout(i),r()}e==null||e.addEventListener("abort",l,{once:!0})})};function An(t){return!["stream_start","sandbox_start","sandbox_ready","workspace_ready","session_title_start","session_title_delta","session_title_done"].includes(t.type)}function In(t,e=!1,r=xe.maxPendingChars){var l;if(!t)return{pieces:[],pending:""};if(e)return{pieces:[t],pending:""};const i=Intl.Segmenter;if(i){const d=[...new i(void 0,{granularity:"word"}).segment(t)].filter(u=>u.isWordLike);let p=0;if(d.length>1&&(p=d.at(-1).index),d.length&&/\s$/u.test(t)&&(p=t.length),p>0){const u=t.slice(0,p),y=[],h=[...new i(void 0,{granularity:"word"}).segment(u)].filter(v=>v.isWordLike);for(let v=0;v<h.length;v+=1){const L=v===0?0:h[v].index,x=((l=h[v+1])==null?void 0:l.index)??u.length;x>L&&y.push(u.slice(L,x))}return h.length||y.push(u),{pieces:y,pending:t.slice(p)}}}else{const o=[...t.matchAll(/\s+/gu)];if(o.length){const d=[];let p=0;for(const u of o){const y=u.index+u[0].length;d.push(t.slice(p,y)),p=y}return{pieces:d,pending:t.slice(p)}}}return t.length>=r?{pieces:[t.slice(0,r)],pending:t.slice(r)}:{pieces:[],pending:t}}function Mn(t,e={}){const r={minDelayMs:e.minDelayMs??xe.minDelayMs,maxDelayMs:e.maxDelayMs??xe.maxDelayMs,minRateCharsPerMs:e.minRateCharsPerMs??xe.minRateCharsPerMs,maxBufferedMs:e.maxBufferedMs??xe.maxBufferedMs,arrivalRateTauMs:e.arrivalRateTauMs??xe.arrivalRateTauMs,arrivalRateHeadroom:e.arrivalRateHeadroom??xe.arrivalRateHeadroom,maxPendingChars:e.maxPendingChars??xe.maxPendingChars},i=e.clock??kn,l=[];let o="",d=null,p=0,u=!0,y=!1,T=null,h=0,v=i.now(),L=!1;const x=()=>{T==null||T(),T=null},C=(E,M)=>{const I=E.type==="reasoning_delta"||E.type==="answer_delta"?E.text.length:0;l.push({kind:"event",event:E,arrivedAt:M,chars:I}),x()},B=E=>{if(!d||!o)return;const M=In(o,E,r.maxPendingChars);for(const I of M.pieces)I&&C({type:d,text:I},p),p=i.now();o=M.pending,o||(d=null)},V=E=>{if(!u)return;const M=i.now();if(E.type==="reasoning_delta"||E.type==="answer_delta"){const I=E.type;if(!E.text)return;if(!L){L=!0,h+=E.text.length,v=M;const W=Array.from(E.text)[0];C({type:I,text:W},M);const D=E.text.slice(W.length);if(D)for(d=I,o=D,p=M,B(!1);o.length>=r.maxPendingChars;)B(!1);return}d&&d!==I&&B(!0),d||(d=I,p=M),o+=E.text;const P=Math.max(0,M-v);for(h*=Math.exp(-P/r.arrivalRateTauMs),h+=E.text.length,v=M,B(!1);o.length>=r.maxPendingChars;)B(!1);return}An(E)&&B(!0),C(E,M)},R=(async()=>{var E;try{for await(const M of t)V(M);u&&B(!0)}catch(M){u&&!((E=e.signal)!=null&&E.aborted)&&(B(!0),l.push({kind:"error",error:M,arrivedAt:i.now(),chars:0}))}finally{y=!0,x()}})(),A=()=>l.length||y?Promise.resolve():new Promise(E=>{T=E});return{events:async function*(){var M,I,P,W;let E=Number.NEGATIVE_INFINITY;try{for(;;){if(await A(),!l.length){if(y||!u)return;continue}const D=l[0];if(D.kind==="error")throw l.shift(),D.error;if(D.chars&&!((M=e.isHidden)!=null&&M.call(e))){const X=i.now(),de=l.reduce((ee,z)=>ee+z.chars,0),ne=((I=l.find(ee=>ee.chars))==null?void 0:I.arrivedAt)??X,re=Math.max(0,r.maxBufferedMs-(X-ne)),Z=h*Math.exp(-Math.max(0,X-v)/r.arrivalRateTauMs)/r.arrivalRateTauMs,Y=re>0?de/re:Number.POSITIVE_INFINITY,K=Math.max(r.minRateCharsPerMs,Z*r.arrivalRateHeadroom,Y),f=Math.min(r.maxDelayMs,Math.max(r.minDelayMs,D.chars/K)),N=Math.max(0,D.arrivedAt+r.maxBufferedMs-X),U=Math.max(D.arrivedAt,E+Math.min(f,N));if(await i.sleep(Math.max(0,U-i.now()),e.signal),!u||(P=e.signal)!=null&&P.aborted)return}l.shift(),E=i.now(),yield D.event}}finally{u&&(u=!1,x(),await((W=t.return)==null?void 0:W.call(t,void 0))),await R}}(),takeAcceptedForStop(){var M;if(!u)return[];u=!1,d&&o&&(C({type:d,text:o},p),o="",d=null);const E=l.flatMap(I=>I.kind==="event"&&I.event.type!=="done"&&I.event.type!=="error"?[I.event]:[]);return l.length=0,x(),(M=t.return)==null||M.call(t,void 0),E}}}const Ct=[250,500,1e3],Tn=(t,e)=>new Promise(r=>{const i=()=>{window.clearTimeout(l),e.removeEventListener("abort",i),r()},l=window.setTimeout(i,t);e.addEventListener("abort",i,{once:!0})});async function*Nn(t,e){let r=t,i=0;for(;;){let l=!1;try{for await(const o of r)(o.type==="done"||o.type==="error")&&(l=!0),yield o;if(l||e.signal.aborted)return;throw new vt}catch(o){e.onDisconnect();const d=e.getSessionId();if(e.signal.aborted||l||!(o instanceof vt)||!d||i>=Ct.length)throw o;if(await Tn(Ct[i],e.signal),e.signal.aborted)return;i+=1,r=Ot(d,{signal:e.signal,afterSequence:e.getAfterSequence(),onSequence:e.onSequence})}}}class Dn{constructor(){$(this,"configuration");$(this,"lifecycle",us());$(this,"_phase",{status:"idle"});$(this,"_pendingCapacity",null);$(this,"view",{messages:[],sessionError:"",disabledRequest:null});$(this,"snapshot",this.buildSnapshot());$(this,"listeners",new Set);$(this,"viewEpoch",0);$(this,"activeEpoch",null);$(this,"current",null);$(this,"projecting",!1);$(this,"subscribe",e=>(this.listeners.add(e),()=>{this.listeners.delete(e)}));$(this,"getSnapshot",()=>this.snapshot)}beginRun(){const e=++this.viewEpoch;return this.activeEpoch=e,this.projecting=!0,this.current=new AbortController,{controller:this.current,epoch:e}}detachView(){return++this.viewEpoch}isCurrent(e){return this.current===e}get running(){return this.current!==null}get controller(){return this.current}ownsView(e){return this.viewEpoch===e}get projectsActive(){return this.activeEpoch===this.viewEpoch||this.projecting}projectsRun(e){return this.activeEpoch===e&&this.projecting}releaseRun(){this.current=null}abortRun(){var e;(e=this.current)==null||e.abort(),this.current=null,this.activeEpoch=null}buildSnapshot(){return{...this.view,busy:this.busy,capacityRequest:this._pendingCapacity}}publish(){const e=this.buildSnapshot(),r=this.snapshot;if(!Object.keys(e).every(i=>e[i]===r[i])){this.snapshot=e;for(const i of this.listeners)i()}}get visibleMessages(){return this.view.messages}present(e){this.view={...this.view,...e},this.publish()}get phase(){return this._phase}get busy(){return this._phase.status==="streaming"}get pendingCapacity(){return this._pendingCapacity}get sawStreamStart(){return this._phase.status!=="idle"&&this._phase.streamStart!==null}get outcome(){return this._phase.status==="idle"?{kind:"pending"}:this._phase.outcome}get sawTerminalEvent(){const{kind:e}=this.outcome;return e==="complete"||e==="error"}get streamFailed(){const{kind:e}=this.outcome;return e==="error"||e==="transport_error"||e==="admission_rejected"}get admissionRejected(){return this.outcome.kind==="admission_rejected"}get shouldRefreshProvider(){var e;return this._phase.status==="idle"?!1:!!((e=this._phase.streamStart)!=null&&e.providerExecuted)||this._phase.providerStatusChanged}progress(e){this._phase.status!=="idle"&&(this._phase={...this._phase,...e})}finish(){this._phase.status==="streaming"&&(this._phase={...this._phase,status:"settled"}),this.publish()}queueCapacity(e){this._pendingCapacity=e,this.publish()}cancelCapacity(){this._pendingCapacity=null,this.publish()}projectSession(e){return this.busy&&e===this.sessionId?this.messages:null}get state(){return this.lifecycle}get messages(){return this.lifecycle.messages}get sessionId(){return this.lifecycle.sessionId}transition(e,r=!1){return this.lifecycle=gt(this.lifecycle,e),r&&(this.view={...this.view,messages:this.lifecycle.messages}),this.publish(),this.lifecycle}start(e,r,i){this.configuration=i,this._phase={status:"streaming",streamStart:null,providerStatusChanged:!1,outcome:{kind:"pending"}},this.view={...this.view,messages:e,sessionError:""},this.transition({type:"start",messages:e,sessionId:r})}restore(e,{sessionId:r=this.sessionId,show:i=!1,view:l}={}){return this.lifecycle=gt(this.lifecycle,{type:"load",messages:e,sessionId:r}),this.view={...this.view,...i?{messages:e}:{},...l},this.publish(),this.lifecycle}observe(e){return e.type==="stream_start"&&this.progress({streamStart:{providerExecuted:e.provider_execution!==!1}}),(e.type==="done"||e.type==="error")&&this.progress({outcome:{kind:e.type==="done"?"complete":"error"}}),e.type==="error"&&St(e.code)==="provider"?(this.progress({providerStatusChanged:!0}),!0):!1}reject(e,r){const i=e instanceof Ye?e.code:void 0,l=St(i),o=r&&i==="chat_not_busy"?{kind:"already_complete"}:i==="chat_temporarily_disabled"?{kind:"admission_rejected",reason:"disabled"}:i==="chat_capacity"?{kind:"admission_rejected",reason:"capacity"}:l==="draft"?{kind:"admission_rejected",reason:"draft"}:{kind:"transport_error",provider:l==="provider"},d=o.kind==="transport_error"&&o.provider;return this.progress({outcome:o,...d?{providerStatusChanged:!0}:{}}),o}reset(){this._phase={status:"idle"},this._pendingCapacity=null,this.view={...this.view,messages:[],sessionError:""},this.transition({type:"reset"})}}const Fn=750,Ln=8e3,Bn="The assistant stream failed.",Rt="Couldn’t resend this message. Your original conversation was restored.";function ve(t){const e=c.useRef(t);return c.useLayoutEffect(()=>{e.current=t}),c.useCallback((...r)=>e.current(...r),[])}const Pe=t=>({id:t,role:"assistant",streaming:!0,blocks:[]});function On(t){const[e]=c.useState(()=>new Dn),r=c.useSyncExternalStore(e.subscribe,e.getSnapshot),i=c.useRef(t);i.current=t;const l=c.useRef(t.sessionId),o=c.useRef(null),d=c.useRef(null),p=c.useRef(!1),u=c.useRef({state:"cleared",timer:null}),y=c.useRef(null),T=c.useRef(null),h=c.useRef(ue()),v=c.useRef(0),x=(l.current!==t.sessionId?e.projectSession(t.sessionId):null)??r.messages,C=r.busy,B=()=>{var n;(n=d.current)==null||n.cancel(),d.current=null},V=()=>{const n=u.current;n.timer!==null&&window.clearTimeout(n.timer),u.current={state:"cleared",timer:null}},R=ve(()=>{var a;const{timer:n}=u.current;n!==null&&window.clearTimeout(n),(a=e.controller)==null||a.abort(),o.current=null,B(),e.cancelCapacity()});c.useEffect(()=>R,[R]),c.useLayoutEffect(()=>{l.current!==t.sessionId&&(l.current=t.sessionId,e.sessionId!==t.sessionId&&(e.detachView(),y.current=null));const n=e.projectSession(t.sessionId);e.projecting=n!==null,n&&e.present({messages:n})},[t.sessionId,e]),c.useEffect(()=>{e.busy||e.restore(e.messages,{sessionId:t.sessionId})},[t.sessionId,e]);const A=c.useMemo(()=>Ms(x),[x]),j=()=>`m${++v.current}_${Date.now().toString(36)}`,E=(n,a=!0)=>{const S=e.state,w=e.transition(n,a),b=n.type==="event"&&n.event.type==="stream_start"?n.event.session_id:null;return b?i.current.onSessionId(b,S.sessionId,e.configuration):w.sessionId&&w.sessionId!==S.sessionId&&i.current.onSessionId(w.sessionId,S.sessionId,e.configuration),w.title!==S.title&&i.current.onTitle(w.title,w.sessionId),w},M=(n,a=!0)=>{E({type:"event",event:n},a)},I=(n,a,S,w={})=>{const b=e.ownsView(a);e.restore(n,{show:b,view:{...w,...b?{sessionError:S}:{}}})},P=()=>{B(),document.visibilityState!=="hidden"&&e.projecting&&(p.current=!1,e.present({messages:e.messages}))},W=()=>{if(!e.projecting||document.visibilityState==="hidden"||d.current!==null)return;const n=()=>{d.current=null,P()};if(typeof requestAnimationFrame=="function"){const a=requestAnimationFrame(n);d.current={cancel:()=>cancelAnimationFrame(a)}}else{const a=window.setTimeout(n,0);d.current={cancel:()=>window.clearTimeout(a)}}};c.useEffect(()=>{const n=()=>{document.visibilityState==="visible"&&p.current&&W()};return document.addEventListener("visibilitychange",n),()=>document.removeEventListener("visibilitychange",n)});const D=n=>{if(!e.isCurrent(n))return;const{state:a}=u.current;V(),a==="shown"&&E({type:"clear_workspace_status"},e.projectsActive)},X=(n,a)=>{const{timer:S}=u.current;S!==null&&window.clearTimeout(S);const w=window.setTimeout(()=>{u.current={...u.current,timer:null},!(u.current.state!=="armed"||!e.isCurrent(n)||n.signal.aborted||!e.ownsView(a))&&(u.current={state:"shown",timer:null},E({type:"workspace_status"},e.projectsActive))},Fn);u.current={state:"armed",timer:w}},de=(n,a)=>{const S=y.current;!S||S.controller!==n||S.tracker.recordStreamStart(a,performance.now())},ne=(n,a)=>{const S=y.current;!S||S.controller!==n||S.tracker.recordTerminal(a)};c.useLayoutEffect(()=>{const n=y.current;if(!n)return;const a=x.at(-1);if((a==null?void 0:a.role)!=="assistant"||!(a.blocks??[]).some(b=>b.kind==="tool"||b.kind==="reasoning"&&!!b.text.trim()||b.kind==="answer"&&!!b.text.trim()))return;const w=performance.now();n.tracker.recordFirstVisible(w);for(const b of a.blocks??[])b.kind==="reasoning"&&b.text.trim()?n.tracker.recordSemantic("reasoning",w):b.kind==="tool"?n.tracker.recordSemantic("tool",w):b.kind==="answer"&&b.text.trim()&&n.tracker.recordSemantic("answer",w)},[x]);const re=async(n,a)=>{var F;const w=await(i.current.loadSession??(H=>se.getSession(H)))(n);let b=ps(e.state.messages,qt(w));return((F=T.current)==null?void 0:F.sessionId)===n&&(b=T.current.messages,T.current=null),!e.ownsView(a)&&!(e.projectsRun(a)&&i.current.sessionId===n)?null:(e.restore(b,{sessionId:n,show:!0}),b)},Z=(n,a)=>Rn(i.current,n,a),Y=n=>{const a=typeof n=="string"?ue(n.trim()):n;return!a.text||a.text.length>Ln||e.busy||e.pendingCapacity?null:a},K=(n,a,S,w,b,F,H)=>{const{controller:k,epoch:_}=e.beginRun(),be=n.text;return h.current=n,e.start(S,a.session_id,H??{model:i.current.initialModel,webSearchEnabled:!!a.web_search_enabled,reasoningEffort:a.reasoning_effort??tt}),y.current=F?null:{controller:k,tracker:new jn(performance.now())},u.current={...u.current,state:"cleared"},(async()=>{var Ne,ke,Ae,Ce,Re,Ie;let ge=0;const we=J=>{J>ge&&(ge=J)};try{const J=F?Ot(F,{signal:k.signal,onSequence:we}):Ts(a,{signal:k.signal,onSequence:we}),oe=Nn(J,{signal:k.signal,getSessionId:()=>e.sessionId,onDisconnect:()=>{!k.signal.aborted&&e.isCurrent(k)&&M({type:"compaction_status",state:"finished"},e.projectsActive)},getAfterSequence:()=>ge,onSequence:we}),ce=!F&&Te()&&Ns(),G=ce?Mn(oe,{signal:k.signal,isHidden:()=>document.visibilityState==="hidden"}):null;G&&(o.current={controller:k,stream:G});for await(const le of(G==null?void 0:G.events)??oe){if(k.signal.aborted||!e.isCurrent(k))break;const he=fs[le.type];le.type==="paper_artifact"&&((ke=(Ne=i.current).onPaperArtifact)==null||ke.call(Ne,le,e.sessionId)),le.type==="stream_start"&&de(k,le.request_id),he.workspaceStatus==="arm"&&X(k,_),he.workspaceStatus==="clear"&&D(k),e.observe(le)&&e.projectsActive&&i.current.onInterrupted(n),he.terminal&&ne(k,he.terminal);const fe=e.projectsActive,De=fe&&!(ce&&document.visibilityState==="hidden");ce&&he.presentation==="structural"&&P(),ce&&he.presentation==="delta"?(M(le,!1),p.current||(p.current=fe),W()):(M(le,De),ce&&fe&&!De&&(p.current=!0))}}catch(J){if(!k.signal.aborted&&e.isCurrent(k)){const oe=e.reject(J,!!F);D(k);const ce=J instanceof Error?J.message:Bn;switch(oe.kind){case"already_complete":break;case"admission_rejected":if(oe.reason==="disabled")I(w,_,"",{disabledRequest:{question:be,draft:n}});else if(oe.reason==="capacity"){const G=J instanceof Ye?J.retryAfterSeconds??5:5;e.queueCapacity({question:be,draft:n,request:a,optimistic:S,original:w,edit:b,retryAfterSeconds:G,retryAt:Date.now()+G*1e3}),I(w,_,"")}else ne(k,"network_error"),e.projectsActive&&i.current.onInterrupted(n),I(w,_,ce);break;case"transport_error":ne(k,"network_error"),oe.provider&&e.projectsActive&&i.current.onInterrupted(n),e.ownsView(_)&&M({type:"error",message:ce,code:J instanceof Ye?J.code:void 0});break}}}finally{if(e.isCurrent(k)){if(((Ae=o.current)==null?void 0:Ae.controller)===k&&(P(),o.current=null),D(k),!e.sawTerminalEvent&&!k.signal.aborted&&ne(k,"network_error"),e.finish(),e.admissionRejected)i.current.onSettled(a.session_id);else if(!k.signal.aborted){e.shouldRefreshProvider&&((Re=(Ce=i.current).onProviderTerminal)==null||Re.call(Ce));const J=e.sessionId,oe=e.ownsView(_);if(b&&!e.sawStreamStart)I(b.snapshot,_,Rt);else if(J){oe&&b&&(e.streamFailed||!e.sawTerminalEvent)&&e.restore(b.snapshot,{show:!0});try{const ce=await re(J,_);ce&&b&&ce.some(G=>G.id===b.targetId)&&e.present({sessionError:Rt})}catch{e.ownsView(_)&&E({type:"settle"})}}else oe&&E({type:"settle"});(!e.running||e.isCurrent(k))&&i.current.onSettled(J)}((Ie=y.current)==null?void 0:Ie.controller)===k&&(y.current=null)}}})(),!0},f=ve(n=>{const a=Y(n);if(!a)return!1;const S=e.visibleMessages,w=Me(S),b=w!=null&&w.status&&w.status!=="complete"&&w.revision?{replace_message_id:w.id,prior_revision:w.revision}:null,F={id:j(),role:"user",text:a.text,paperMentions:a.paperMentions,paperSelection:a.paperSelection,attachedFiles:a.files},H=Pe(j()),k=b&&w?hs(S,we=>we.id===w.id):-1,_=k<0?[...S,F,H]:[...S.slice(0,k),F,H],be=i.current.sessionId??a.fileSessionId??null,{initialModel:ge}=i.current;return K(a,Z(a.text,{session_id:be,client_message_id:crypto.randomUUID(),...Et(i.current,a),...!be&&ge?{initial_model:ge}:{},...b??{}}),_,S)}),N=ve((n,a)=>{var ge;const S=Y(a);if(!S)return!1;const w=e.visibleMessages.slice(),b=w.findIndex(we=>we.id===n&&we.role==="user");if(b<0)return!1;const F=w[b],H=S.files||!((ge=F.attachedFiles)!=null&&ge.length)?S:{...S,files:F.attachedFiles},{sessionId:k}=i.current;if(!k||!F.revision)return!1;const _={id:F.id,role:"user",text:H.text,paperMentions:H.paperMentions,paperSelection:H.paperSelection,attachedFiles:H.files,revision:F.revision+1,status:"generating"},be=[...w.slice(0,b),_,Pe(j())];return K(H,Z(H.text,{session_id:k,client_message_id:crypto.randomUUID(),...Et(i.current,H),replace_message_id:F.id,prior_revision:F.revision}),be,w,{targetId:F.id,snapshot:w})}),U=ve(()=>{const n=e.visibleMessages.slice(),a=Me(n),{sessionId:S}=i.current;if(!S||!(a!=null&&a.revision)||e.busy||e.pendingCapacity)return!1;const w=ue(a.text??"Continue the interrupted response from saved progress."),b=[...n,{id:j(),role:"user",text:w.text,paperMentions:[]},Pe(j())];return K(w,Z(w.text,{session_id:S,client_message_id:crypto.randomUUID(),retry_message_id:a.id,...Vt(i.current)}),b,n)}),ee=ve(()=>{const n=Me(e.visibleMessages);return n!=null&&n.text?N(n.id,Qe(n)):!1}),z=c.useCallback(()=>{e.cancelCapacity()},[e]),te=ve(()=>{const n=e.pendingCapacity;return!n||Date.now()<n.retryAt||e.busy?!1:(e.cancelCapacity(),K(n.draft,n.request,n.optimistic,n.original,n.edit))}),ae=ve(()=>{var H,k;const n=e.controller;if(!n)return;D(n),ne(n,"stopped"),n.abort();const a=((H=o.current)==null?void 0:H.controller)===n?o.current.stream.takeAcceptedForStop():[];o.current=null;for(const _ of a)M(_,!1);P(),e.releaseRun(),((k=y.current)==null?void 0:k.controller)===n&&(y.current=null),e.finish();const S=e.projectsActive,w=E({type:"stop"},S).messages;S&&i.current.onInterrupted(h.current);const b=e.sessionId;b&&(T.current={sessionId:b,messages:w}),b&&se.cancelSession(b).catch(()=>{});const F=e.detachView();window.setTimeout(()=>{b&&S&&e.ownsView(F)?re(b,F).catch(()=>{}).finally(()=>{e.running||i.current.onSettled(b)}):e.running||i.current.onSettled(b)},450)}),_e=ve((n,a)=>{e.projecting?e.transition({type:"toggle_block",messageId:n,blockIndex:a},!0):e.present({messages:ds(e.visibleMessages,n,a)})}),ye=()=>{e.detachView(),V(),B(),p.current=!1,y.current=null},ie=ve(()=>{ye(),e.abortRun(),o.current=null,T.current=null,e.projecting=!1,e.reset()}),me=ve((n,a,S=!1,w)=>{if(ye(),e.cancelCapacity(),e.busy&&a!==void 0&&a===e.sessionId){e.projecting=!0,e.present({messages:e.messages,sessionError:""});return}if(e.projecting=!1,e.busy||e.abortRun(),S&&a&&!e.busy){const b=Me(n);if(b){const F=Qe(b),H=[...n,Pe(`${b.id}-active`)];K(F,Z(F.text,{session_id:a,client_message_id:"reconnect"}),H,n,void 0,a,w);return}}e.busy?e.present({messages:n,sessionError:""}):e.restore(n,{sessionId:a??i.current.sessionId,show:!0,view:{sessionError:""}})}),g=r.capacityRequest;return{messages:x,busy:C,activeSessionId:C?e.sessionId:null,activeTitle:e.state.title,activeConfiguration:e.configuration,selectedBusy:C&&e.sessionId===t.sessionId,papers:A,sessionError:r.sessionError,capacityRequest:g,disabledRequest:r.disabledRequest,send:f,editAndResend:N,retryFromProgress:U,retryLatest:ee,retryCapacity:te,cancelCapacity:z,dismissDisabled:()=>e.present({disabledRequest:null}),stop:ae,toggleBlock:_e,reset:ie,load:me}}const jt=(t,e,r)=>e?r?{...t,paperSelection:r}:Pt(t):t,qn=({mode:t="general",routeSessionId:e,primaryPaper:r,currentPage:i,paperSelection:l,onPaperSelectionChange:o,onSessionId:d,onReaderSubmit:p,onReaderNewChat:u,onReaderClose:y})=>{var ot,ct,lt,ut,dt;const{sessionId:T}=ts(),h=e??(t==="general"?T:void 0),v=Tt(),[L]=Mt(),{user:x,isLoading:C}=Ft(),B=Dt(),V=(x==null?void 0:x.hf_subject)??null,R=Nt(),A=je({...ms(),enabled:Te()&&!!x}),j=A.data,E=(j==null?void 0:j.status)==="paused"||t==="paper"&&(j==null?void 0:j.paper_reader_chat_enabled)===!1,M=je({...gs(V),enabled:!!x&&!C}),I=M.data??[],{markSessionBusy:P,patchSession:W,refreshSessions:D}=_n(V),[X,de]=c.useState(null),[ne,re]=c.useState(""),[Z]=c.useState(Ds),Y=c.useRef(h);Y.current=h;const K=c.useRef(null),f=c.useRef(null),N=c.useRef(0),U=c.useCallback(()=>{N.current+=1,K.current=null,f.current=null},[]),ee=c.useRef(h);ee.current!==h&&(ee.current=h,U());const z=vn({userId:V,signedIn:!!x,authLoading:C,requestedModel:L.get("model")||(Z==null?void 0:Z.model),routeSessionIdRef:Y}),{selectedModel:te,setSelectedModel:ae}=z,_e=Vs(!!(x&&z.provider==="openrouter")),[ye,ie]=c.useState(()=>ue()),me=tt,g=!!(j!=null&&j.web_search_available),[n,a]=c.useState(()=>{var O;const m=(O=L.get("q"))==null?void 0:O.trim();return m?ue(m):(Z==null?void 0:Z.draft)??ue()}),[S,w]=c.useState(()=>typeof window>"u"||window.innerWidth>900),b=c.useRef(new Set),[F,H]=c.useState(void 0),k=c.useCallback(m=>{ie(m),o==null||o(m.paperSelection)},[o]),_=On({sessionId:h??null,initialModel:te,webSearchEnabled:g,reasoningEffort:me,primaryPaperRouteId:t==="paper"?r==null?void 0:r.routeId:void 0,viewerContext:t==="paper"&&i?()=>({page:Math.max(1,Math.min(1e4,i()))}):void 0,loadSession:async m=>{const O=await B.fetchQuery(bt(V,m));return de(q=>(q==null?void 0:q.sessionId)===m?null:q),O},onSessionId:(m,O,q)=>{P(m,{model:(q==null?void 0:q.model)??te,webSearchEnabled:(q==null?void 0:q.webSearchEnabled)??g,reasoningEffort:(q==null?void 0:q.reasoningEffort)??me});const pe=Y.current??null,Oe=pe===null&&K.current!==null&&(m===K.current||O===K.current);(pe===O||Oe)&&m!==pe&&(t==="paper"?d==null||d(m):v(`/chat/${m}`,{replace:!0}))},onTitle:(m,O)=>{O&&!b.current.has(O)&&W(O,{title:m})},onSettled:m=>{m&&W(m,{is_busy:!1}),B.invalidateQueries({queryKey:Ut}),D()},onProviderTerminal:()=>{B.invalidateQueries({queryKey:Ks})},onPaperArtifact:(m,O)=>{O&&de({sessionId:O,descriptor:m.descriptor})},onInterrupted:k}),be=_.send;c.useEffect(()=>{_.capacityRequest&&k(_.capacityRequest.draft)},[_.capacityRequest,k]);const ge=c.useCallback(()=>t==="paper"&&r?`/pdf/${r.routeId}`:Y.current?`/chat/${Y.current}`:"/chat",[t,r]),we=c.useCallback((m,O)=>{a(ue()),k(m),re(O)},[k]),Ne=Cn({returnTo:ge,selectedModel:te,reasoningEffort:me,userBilledInference:z.userBilledInference,onPromptRestored:we}),{authorizeSend:ke,restorePrompt:Ae}=Ne,Ce=!!o,Re=c.useCallback(async m=>{const O=jt(m,Ce,l),q=!Y.current&&!O.fileSessionId&&K.current?{...O,fileSessionId:K.current}:O,pe=ke(q,!!x);if(!(pe!==!0&&!await pe)){if(Fs(),!be(q)){Ae(q,"Your prompt was not sent. It is ready to retry.");return}Ls(),ie(ue()),o==null||o(void 0),t==="paper"&&(p==null||p())}},[ke,t,o,p,l,Ce,Ae,be,x]),Ie=c.useCallback(async(m,O)=>{const q=N.current;let pe=Y.current??O??K.current;if(!pe){if(!f.current){const ht=se.createSession(te,me,t==="paper"?r==null?void 0:r.routeId:void 0).then(ft=>(q===N.current&&(K.current=ft.id),D(),ft.id)).finally(()=>{f.current===ht&&(f.current=null)});f.current=ht}pe=await f.current}if(q!==N.current)throw new yt;const Oe=await se.uploadFile(pe,m);if(q!==N.current)throw se.deleteFile(pe,Oe.id).catch(()=>{}),new yt;return{sessionId:pe,file:Oe}},[t,r==null?void 0:r.routeId,me,D,te]),[J,oe]=c.useState(0),ce=c.useMemo(()=>({upload:async(m,O)=>{oe(q=>q+1);try{return await Ie(m,O)}finally{oe(q=>q-1)}},remove:(m,O)=>{se.deleteFile(m,O).catch(()=>{})}}),[Ie]),G=_.selectedBusy,{load:le,activeConfiguration:he}=_,fe=je({...bt(V,h??null),enabled:!!(h&&x&&!C&&!G),refetchOnMount:"always"}),De=wn(t==="general"?h:void 0,!C&&(!x||fe.error instanceof ss&&fe.error.status===404)),Q=fe.data,Fe=G||F===(h??null),st=X&&X.sessionId===h?X.descriptor:Q==null?void 0:Q.latex_paper,Kt=(ct=(ot=[...(Q==null?void 0:Q.messages)??[]].reverse().find(m=>m.role==="user"&&m.viewer_context))==null?void 0:ot.viewer_context)==null?void 0:ct.page;c.useLayoutEffect(()=>{const m=h??null;if(F!==m){if(G){H(m),he!=null&&he.model&&ae(he.model);return}if(!m){le([],null),H(null);return}!Q||fe.isFetching||(H(m),le(qt(Q),m,Q.is_busy,{model:Q.selected_model,webSearchEnabled:Q.web_search_enabled,reasoningEffort:Q.reasoning_effort??"high"}),re(""),ae(Q.selected_model))}},[h,G,Q,le,he,fe.isFetching,F,ae]),bn({pendingDraft:n,setPendingDraft:a,blocked:C||_.busy||!!x&&A.isFetching||!!(h&&!Fe),authLoading:C,signedIn:!!x,send:Re,restoreDraft:ie,setSelectedModel:ae,onPaperSelectionChange:o}),c.useEffect(()=>{const m=()=>{!x||_.busy||D()};return window.addEventListener("focus",m),()=>window.removeEventListener("focus",m)},[_.busy,D,x]);const Ve=()=>{U(),window.innerWidth<=900&&w(!1),le([],null),H(null),ie(ue()),o==null||o(void 0),t==="paper"?u==null||u():v("/chat")},Le=En({routeSessionId:h,selectedModel:te,setSelectedModel:ae,patchSession:W,onRenamed:m=>b.current.add(m),refreshSessions:D,onError:re,onSelectedDeleted:Ve,isActive:m=>_.busy&&m===_.activeSessionId,stopActive:_.stop}),Ke=yn({messages:_.messages,refreshSessions:D,resetChat:_.reset,restoreDraft:ie}),Wt=async()=>{await Le.changeModel($e)&&_.retryLatest()},zt=zs(t==="general"),nt=I.map(m=>m.id===_.activeSessionId&&_.busy?{...m,is_busy:!0,title:b.current.has(m.id)?m.title:_.activeTitle||m.title}:m),Se=nt.find(m=>m.id===h),rt=(Se==null?void 0:Se.primary_paper)??(Q==null?void 0:Q.primary_paper),We=_.messages.length===0,Be=!!(h&&(C||x&&!Fe&&!fe.isError||De.pending)),it=!Fe&&!Be&&((lt=fe.error)==null?void 0:lt.message),Qt=!ye.fileSessionId||ye.fileSessionId===(h??K.current)?ye:{...ye,files:void 0,fileSessionId:void 0},at={composerProps:{onSend:Re,busy:G,onStop:_.stop,draft:jt(Qt,Ce,l),onDraftChange:m=>{o?(ie(Pt(m)),m.paperSelection!==l&&o(m.paperSelection)):ie(m)},disabled:E||C||_.busy&&!G,describedBy:E?"chat-paused-description":void 0,paperMentionsEnabled:!!(j!=null&&j.paper_mentions_enabled),paperSelectionEnabled:(j==null?void 0:j.paper_reader_selection_enabled)===!0,paperArtifactsEnabled:t==="general"&&(j==null?void 0:j.paper_artifacts_enabled)===!0,fileUploads:(j==null?void 0:j.file_uploads_enabled)===!0&&x?ce:void 0},provider:z.provider,sponsored:z.sponsored,paused:E,uploading:J>0,error:_.sessionError};return s.jsx(ln,{enabled:t==="general",workspaceKey:h??"new-chat",onAskAiFix:m=>{Re(ue(m))},children:s.jsxs("div",{className:`chat-page${t==="paper"?" chat-page--reader":""}`,style:{height:zt},children:[t==="general"&&s.jsx(tn,{sessions:nt,activeSessionId:h,loading:M.isLoading,error:ne||((ut=M.error)==null?void 0:ut.message)||"",open:S,onClose:()=>w(!1),onNew:Ve,onNavigate:m=>{window.innerWidth<=900&&w(!1),v(`/chat/${m}`)},onRename:Le.rename,onDelete:m=>void Le.remove(m),onDeleteMany:Le.removeMany}),s.jsx(un,{enabled:t==="general",children:s.jsxs("section",{className:"chat-main","data-testid":"active-chat-pane",children:[s.jsxs("div",{className:"chat-topbar",children:[t==="general"&&!S&&s.jsx("button",{type:"button",className:"icon-btn",onClick:()=>w(!0),title:"Open sidebar",children:s.jsx(Lt,{})}),s.jsx("span",{className:"chat-topbar-title",children:Be?(Se==null?void 0:Se.title)||"":(Se==null?void 0:Se.title)||(Q==null?void 0:Q.title)||(We?"":"New chat")}),R&&s.jsx("span",{className:"chat-staging-badge",children:"Staging"}),t==="general"&&h&&rt&&s.jsx(fn,{routeId:rt.route_id,sessionId:h,page:Kt}),h&&Fe&&!We&&s.jsx(sn,{sessionId:h,busy:G,loading:Be,hasPaperSelection:_.messages.some(m=>!!m.paperSelection),onError:re}),t==="paper"&&s.jsx(hn,{onNewChat:Ve,onClose:y})]}),s.jsx(dn,{provider:z.provider,enabled:Te()&&!!x&&z.provider==="openai"}),t==="general"&&st&&s.jsx(mn,{descriptor:st}),Be&&!n.text?s.jsxs("div",{className:"chat-session-loading",role:"status","aria-live":"polite",children:[s.jsx(Bt,{}),s.jsx("span",{children:"Loading conversation…"})]}):it?s.jsxs("div",{className:"chat-session-load-error",role:"alert",children:[s.jsx("p",{children:it}),s.jsx("button",{type:"button",onClick:()=>{fe.refetch()},children:"Try again"})]}):We&&!n.text?s.jsx(pn,{mode:t,staging:R,children:s.jsx(_t,{variant:"empty",...at,suggestions:t==="paper"?Bs:Os,suggestionLinks:t==="paper"&&r&&s.jsxs("a",{className:"chat-example",href:Hs(r.title,r.arxivId),target:"_blank",rel:"noopener noreferrer",title:"Ask Hugging Face ML Intern to reproduce this paper",children:[s.jsx("span",{className:"chat-example-icon",children:s.jsx(Us,{name:"robot",size:14})}),"Reproduce with ML Intern"]})})}):s.jsxs(s.Fragment,{children:[s.jsx(Ys,{messages:_.messages,papers:_.papers,busy:G,queuedDraft:n.text?n:void 0,paperMentionsEnabled:!!(j!=null&&j.paper_mentions_enabled),archivePending:Ke.pending,openRouterFallbackEnabled:!!((dt=_e.data)!=null&&dt.fallback_enabled),onToggleBlock:_.toggleBlock,onEditAndResend:_.editAndResend,onRetryFromProgress:_.retryFromProgress,onRetryWithLuna:z.lunaAvailable?()=>void Wt():void 0,onArchiveOld:()=>void Ke.archiveOld(),onArchiveOldest:()=>void Ke.archiveOldest()}),s.jsx(_t,{variant:"followup",...at})]})]})}),_.capacityRequest&&s.jsx(Gs,{retryAt:_.capacityRequest.retryAt,onCancel:_.cancelCapacity,onRetry:()=>{_.retryCapacity()&&(ie(ue()),o==null||o(void 0))}}),_.disabledRequest&&s.jsx(Xs,{onClose:()=>{var m;k(((m=_.disabledRequest)==null?void 0:m.draft)??ye),_.dismissDisabled(),A.refetch()}})]})})},Pn=t=>{const{user:e}=Ft();return s.jsx(qn,{...t},(e==null?void 0:e.hf_subject)??"guest")},wr=()=>s.jsx(Pn,{});export{Pn as ChatExperience,wr as default};
 
 
 
 
 
 
 
assets/{ConferenceDetailView-DBeUagwh.js → ConferenceDetailView-BIgAthVP.js} RENAMED
@@ -1 +1 @@
1
- import{u as k,b as _,i as S,j as e,L as f,v as b}from"./index-2xE415-f.js";import{a as j,A as C,b as E}from"./AreaSection-ixYJgExd.js";import{M as N}from"./MarkdownText-CDVRt1ok.js";import{s as F}from"./areas-Dvi8w2dp.js";import{c as L,h as T}from"./colors-BkWRhvFI.js";import{C as $}from"./conferenceListings-BnmhBx-_.js";import{f as A}from"./deadlines-BG5SWwEG.js";import{d as P}from"./transform-krmE0Oxv.js";import{S as w}from"./skeleton-7Kak9gS9.js";import{s as D}from"./safeExternalHref-CkBrsh84.js";import{l as R}from"./LoadFailurePage-DvxhRUcs.js";import{u as B}from"./useDocumentTitle-_d-BLODt.js";import{e as M}from"./pageTitles-CFPKZULe.js";import"./PaperPreviewLink-Dhou1ws3.js";import"./index-CqH2_Dpk.js";import"./index-BHTJgSQg.js";import"./hover-card-CZZ0A1FG.js";import"./useMutation-BcnLcaMd.js";import"./alert-CMc00cqX.js";import"./NotFound-BLAjrkTN.js";const ie=()=>{var x,h;const{confSlug:c}=k(),r=_(b.conferenceAreasWithTasks(c)),m=S.useMemo(()=>{var s;return F(((s=r.data)==null?void 0:s.results)??[])},[r.data]),a=(x=r.data)==null?void 0:x.conference;B(a&&M(a.name));const d=((h=r.data)==null?void 0:h.total_paper_count)??0,v=$.filter(s=>{var t;return(((t=r.data)==null?void 0:t[s.countKey])??0)>0}),p=R([r.error],"Failed to load conference. Please try again.");if(p)return p;const u=a?A(a.start_date,a.end_date):null,g=a?[a.venue,a.location].filter(Boolean).join(", "):null,l=a==null?void 0:a.name;return e.jsxs("div",{className:"page",children:[e.jsxs("div",{className:a!=null&&a.image_url?"task-hero-grid":void 0,children:[e.jsxs("div",{children:[e.jsx("div",{style:{fontFamily:"var(--mono)",fontSize:11,color:"var(--accent-text)",letterSpacing:"0.1em",marginBottom:8},children:"CONFERENCE"}),e.jsx("h1",{className:"feed-title",children:l??e.jsx(w,{className:"h-10 w-64 inline-block"})}),e.jsxs("div",{className:"feed-subtitle",style:{display:"flex",flexDirection:"column",gap:4},children:[u&&e.jsx("span",{children:u}),g&&e.jsx("span",{children:g}),(a==null?void 0:a.url)&&e.jsx("a",{href:D(a.url)??void 0,target:"_blank",rel:"noopener noreferrer",style:{color:"var(--accent-text)"},children:a.url.replace(/^https?:\/\//,"")}),(a==null?void 0:a.hf_url)&&e.jsxs("a",{className:"bm-action-btn",href:a.hf_url,target:"_blank",rel:"noopener noreferrer",style:{alignSelf:"flex-start",marginTop:4},children:[e.jsx("span",{"aria-hidden":"true",children:"🤗"})," View on Hugging Face"]})]}),(a==null?void 0:a.description)&&e.jsx(N,{className:"method-description",text:a.description})]}),(a==null?void 0:a.image_url)&&e.jsxs("figure",{className:"task-figure-card",children:[e.jsx("div",{className:"task-figure-img-wrap",children:e.jsx("img",{className:"task-figure-img",src:a.image_url,alt:l?`${l} visual`:"Conference visual",onError:s=>{var t,n;(n=(t=s.currentTarget.parentElement)==null?void 0:t.parentElement)==null||n.style.setProperty("display","none")}})}),e.jsxs("figcaption",{children:["Figure · ",l??"Conference",a.image_credit&&e.jsxs(e.Fragment,{children:[e.jsx("br",{}),e.jsx(N,{className:"task-image-credit",text:a.image_credit})]})]})]})]}),!r.isLoading&&d>0&&e.jsx(j,{title:"Browse papers",description:"All accepted papers, plus oral, spotlight, outstanding, and best paper finalists.",meta:`${d.toLocaleString()} papers`,style:{marginTop:48},children:v.map(s=>{var t;return e.jsxs(f,{to:`/conferences/${c}/${s.slug}`,className:"tag-cell",children:[e.jsxs("div",{className:"name",children:[e.jsx("span",{className:"dot",style:{background:s.dotColor}}),s.label]}),e.jsx("div",{className:"meta",children:e.jsxs("span",{children:[(((t=r.data)==null?void 0:t[s.countKey])??0).toLocaleString()," papers"]})})]},s.slug)})}),r.isLoading?e.jsx(C,{tiles:6,tileClassName:"h-24"}):m.map(s=>{const t=s.tasks;if(t.length===0)return null;const n=t.reduce((i,o)=>i+(o.paper_count||0),0);return e.jsx(j,{title:s.name,description:s.description,meta:`${t.length} ${t.length===1?"task":"tasks"} · ${n.toLocaleString()} papers`,children:t.map(i=>{const o=i.slug||"",y=L(T(o));return e.jsxs(f,{to:`/conferences/${c}/${o}`,className:"tag-cell",children:[e.jsxs("div",{className:"name",children:[e.jsx("span",{className:"dot",style:{background:y.dot}}),P(i.name,o)]}),e.jsx("div",{className:"meta",children:e.jsxs("span",{children:[(i.paper_count??0).toLocaleString()," papers"]})})]},i.id)})},s.id)}),e.jsx(E,{areas:m})]})};export{ie as default};
 
1
+ import{u as k,b as _,i as S,j as e,L as f,v as b}from"./index-CqLopXcE.js";import{a as j,A as C,b as E}from"./AreaSection-eDvRZ5YZ.js";import{M as N}from"./MarkdownText-CZlaYENs.js";import{s as F}from"./areas-Dvi8w2dp.js";import{c as L,h as T}from"./colors-BkWRhvFI.js";import{C as $}from"./conferenceListings-BnmhBx-_.js";import{f as A}from"./deadlines-BG5SWwEG.js";import{d as P}from"./transform-BwK-yMDY.js";import{S as w}from"./skeleton-g9QeRZlQ.js";import{s as D}from"./safeExternalHref-CkBrsh84.js";import{l as R}from"./LoadFailurePage-CbxBcR6o.js";import{u as B}from"./useDocumentTitle-xBtc80OB.js";import{e as M}from"./pageTitles-BDUuOvJf.js";import"./PaperPreviewLink-BQBSQN0t.js";import"./index-C601BfBQ.js";import"./index-s2hHM8kO.js";import"./hover-card-CcViKpG6.js";import"./useMutation-DBnvCG24.js";import"./alert-C8kkxn4G.js";import"./NotFound-Dm23aroU.js";const ie=()=>{var x,h;const{confSlug:c}=k(),r=_(b.conferenceAreasWithTasks(c)),m=S.useMemo(()=>{var s;return F(((s=r.data)==null?void 0:s.results)??[])},[r.data]),a=(x=r.data)==null?void 0:x.conference;B(a&&M(a.name));const d=((h=r.data)==null?void 0:h.total_paper_count)??0,v=$.filter(s=>{var t;return(((t=r.data)==null?void 0:t[s.countKey])??0)>0}),p=R([r.error],"Failed to load conference. Please try again.");if(p)return p;const u=a?A(a.start_date,a.end_date):null,g=a?[a.venue,a.location].filter(Boolean).join(", "):null,l=a==null?void 0:a.name;return e.jsxs("div",{className:"page",children:[e.jsxs("div",{className:a!=null&&a.image_url?"task-hero-grid":void 0,children:[e.jsxs("div",{children:[e.jsx("div",{style:{fontFamily:"var(--mono)",fontSize:11,color:"var(--accent-text)",letterSpacing:"0.1em",marginBottom:8},children:"CONFERENCE"}),e.jsx("h1",{className:"feed-title",children:l??e.jsx(w,{className:"h-10 w-64 inline-block"})}),e.jsxs("div",{className:"feed-subtitle",style:{display:"flex",flexDirection:"column",gap:4},children:[u&&e.jsx("span",{children:u}),g&&e.jsx("span",{children:g}),(a==null?void 0:a.url)&&e.jsx("a",{href:D(a.url)??void 0,target:"_blank",rel:"noopener noreferrer",style:{color:"var(--accent-text)"},children:a.url.replace(/^https?:\/\//,"")}),(a==null?void 0:a.hf_url)&&e.jsxs("a",{className:"bm-action-btn",href:a.hf_url,target:"_blank",rel:"noopener noreferrer",style:{alignSelf:"flex-start",marginTop:4},children:[e.jsx("span",{"aria-hidden":"true",children:"🤗"})," View on Hugging Face"]})]}),(a==null?void 0:a.description)&&e.jsx(N,{className:"method-description",text:a.description})]}),(a==null?void 0:a.image_url)&&e.jsxs("figure",{className:"task-figure-card",children:[e.jsx("div",{className:"task-figure-img-wrap",children:e.jsx("img",{className:"task-figure-img",src:a.image_url,alt:l?`${l} visual`:"Conference visual",onError:s=>{var t,n;(n=(t=s.currentTarget.parentElement)==null?void 0:t.parentElement)==null||n.style.setProperty("display","none")}})}),e.jsxs("figcaption",{children:["Figure · ",l??"Conference",a.image_credit&&e.jsxs(e.Fragment,{children:[e.jsx("br",{}),e.jsx(N,{className:"task-image-credit",text:a.image_credit})]})]})]})]}),!r.isLoading&&d>0&&e.jsx(j,{title:"Browse papers",description:"All accepted papers, plus oral, spotlight, outstanding, and best paper finalists.",meta:`${d.toLocaleString()} papers`,style:{marginTop:48},children:v.map(s=>{var t;return e.jsxs(f,{to:`/conferences/${c}/${s.slug}`,className:"tag-cell",children:[e.jsxs("div",{className:"name",children:[e.jsx("span",{className:"dot",style:{background:s.dotColor}}),s.label]}),e.jsx("div",{className:"meta",children:e.jsxs("span",{children:[(((t=r.data)==null?void 0:t[s.countKey])??0).toLocaleString()," papers"]})})]},s.slug)})}),r.isLoading?e.jsx(C,{tiles:6,tileClassName:"h-24"}):m.map(s=>{const t=s.tasks;if(t.length===0)return null;const n=t.reduce((i,o)=>i+(o.paper_count||0),0);return e.jsx(j,{title:s.name,description:s.description,meta:`${t.length} ${t.length===1?"task":"tasks"} · ${n.toLocaleString()} papers`,children:t.map(i=>{const o=i.slug||"",y=L(T(o));return e.jsxs(f,{to:`/conferences/${c}/${o}`,className:"tag-cell",children:[e.jsxs("div",{className:"name",children:[e.jsx("span",{className:"dot",style:{background:y.dot}}),P(i.name,o)]}),e.jsx("div",{className:"meta",children:e.jsxs("span",{children:[(i.paper_count??0).toLocaleString()," papers"]})})]},i.id)})},s.id)}),e.jsx(E,{areas:m})]})};export{ie as default};
assets/{ConferenceTaskView-u8GXoK6R.js → ConferenceTaskView-CIOlr6as.js} RENAMED
@@ -1 +1 @@
1
- import{u as R,b as E,v as F,B as A,w as L,i as S,j as e,L as x}from"./index-2xE415-f.js";import{b as M,u as T,c as B,P as O}from"./usePapers-Df-AyQGj.js";import{M as f}from"./MarkdownText-CDVRt1ok.js";import{C as Q}from"./conferenceListings-BnmhBx-_.js";import{t as z,d as H}from"./transform-krmE0Oxv.js";import{l as I}from"./LoadFailurePage-DvxhRUcs.js";import"./PaperCard-Do-fUKOE.js";import"./AuthorAvatar-D53WcphF.js";import"./SotaBadges-Cy5KKcKe.js";import"./colors-BkWRhvFI.js";import"./Icon-DQoMmS2z.js";import"./LatexTitle-CIj5wiaM.js";import"./safeExternalHref-CkBrsh84.js";import"./popover-qWW92hSh.js";import"./skeleton-7Kak9gS9.js";import"./useIntersectionObserver-BjZh7B9X.js";import"./useInfiniteQuery-Cvn4-XUc.js";import"./PaperPreviewLink-Dhou1ws3.js";import"./index-CqH2_Dpk.js";import"./index-BHTJgSQg.js";import"./hover-card-CZZ0A1FG.js";import"./useMutation-BcnLcaMd.js";import"./alert-CMc00cqX.js";import"./NotFound-BLAjrkTN.js";const $={"iclr-2026/outstanding":"ICLR 2026 recognized two Outstanding Papers and one Honorable Mention. [Read the announcement](https://blog.iclr.cc/2026/04/23/announcing-the-iclr-2026-outstanding-papers/).","icml-2026/outstanding":"ICML 2026 recognized two Outstanding Papers and five Honorable Mentions. [Read the announcement](https://blog.icml.cc/2026/07/05/announcing-the-icml-2026-awards/).","cvpr-2026/best-paper-finalists":"CVPR 2026 recognized fifteen Best Paper Award finalists, including the winners. [Read the announcement](https://x.com/CVPR/status/2062912519522717978)."},ue=()=>{var P,v,w,k,y,_;const{confSlug:t,taskSlug:o}=R(),m=M(),a=Q.find(r=>r.slug===o),u=!!(a!=null&&a.award),i=E(F.conference(t)),p=E({...F.task(o),enabled:!a}),c=T(L.conference(t,o,m.filters),r=>A.forConference(t,{...m.filters,task:a?void 0:o,presentation:a==null?void 0:a.presentation,page:r,page_size:12}),{enabled:!!t}),g=S.useMemo(()=>{var r;return((r=c.data)==null?void 0:r.pages.flatMap(n=>n.results))??[]},[c.data]),h=S.useMemo(()=>g.map(z),[g]),l=(a==null?void 0:a.label)??H(((P=p.data)==null?void 0:P.name)||o||"",((v=p.data)==null?void 0:v.slug)||o),j=$[`${t}/${o}`],N=((k=(w=c.data)==null?void 0:w.pages[0])==null?void 0:k.count)??((y=i.data)==null?void 0:y.paper_count)??0,s=p.data,b=I([i.error,p.error,c.error],"Failed to load conference papers. Please try again.");return b||e.jsxs("div",{className:"page",children:[e.jsxs("nav",{className:"breadcrumb","aria-label":"Breadcrumb",children:[e.jsx(x,{to:"/",children:"Home"}),e.jsx("span",{children:" / "}),e.jsx(x,{to:"/conferences",children:"Conferences"}),e.jsx("span",{children:" / "}),e.jsx(x,{to:`/conferences/${t}`,children:((_=i.data)==null?void 0:_.name)??t}),e.jsx("span",{children:" / "}),e.jsx("span",{children:l})]}),e.jsxs("div",{className:!a&&(s!=null&&s.image_url)?"task-hero-grid":void 0,style:{marginTop:16,marginBottom:28},children:[e.jsxs("div",{children:[e.jsx("div",{style:{fontFamily:"var(--mono)",fontSize:11,color:"var(--accent-text)",letterSpacing:"0.1em",marginBottom:8},children:a?"BROWSE PAPERS":"TASK"}),e.jsx("h1",{className:"domain-mega-title",children:l}),j&&e.jsx(f,{className:"task-explainer",text:j}),!a&&(s==null?void 0:s.description)&&e.jsx(f,{className:"task-explainer",text:s.description}),i.data&&e.jsxs("div",{className:"task-quickstats",style:{marginTop:12},children:[e.jsxs("span",{children:[e.jsx("span",{className:"num",children:N.toLocaleString()}),"PAPERS"]}),e.jsx("span",{children:i.data.name})]})]}),!a&&(s==null?void 0:s.image_url)&&e.jsxs("figure",{className:"task-figure-card",children:[e.jsx("div",{className:"task-figure-img-wrap",children:e.jsx("img",{className:"task-figure-img",src:s.image_url,alt:`${l} schematic`,onError:r=>{var n,d;(d=(n=r.currentTarget.parentElement)==null?void 0:n.parentElement)==null||d.style.setProperty("display","none")}})}),e.jsxs("figcaption",{children:["Figure · ",l,s.image_credit&&e.jsxs(e.Fragment,{children:[e.jsx("br",{}),e.jsx(f,{className:"task-image-credit",text:s.image_credit})]})]})]})]}),e.jsxs("div",{className:"task-section-head",children:[e.jsx("div",{className:"task-section-eyebrow",children:u?"Award papers":"Conference papers · sort below"}),e.jsxs("div",{className:"task-section-title",children:["Papers ",e.jsxs("span",{className:"meta",children:["[",N.toLocaleString(),"]"]})]})]}),e.jsx(B,{feed:m,sorts:u?null:void 0,children:!u&&e.jsxs("div",{className:"results-count",children:[h.length," loaded in ",e.jsx("span",{children:l})]})}),e.jsx(O,{query:c,cards:h,empty:"No papers found for this selection.",cardHeader:r=>{var C;const n=(C=g[r])==null?void 0:C.conference_award,d=n==="outstanding"?"Outstanding Paper":n==="honorable_mention"?"Honorable Mention":n==="best_paper_finalist"&&(a==null?void 0:a.presentation)!=="best_paper_finalist"?"Best Paper Finalist":null;return d&&e.jsx("div",{className:"conference-award-label",children:d})}})]})};export{ue as default};
 
1
+ import{u as R,b as E,v as F,B as A,w as L,i as S,j as e,L as x}from"./index-CqLopXcE.js";import{b as M,u as T,c as B,P as O}from"./usePapers-CLqxSGhP.js";import{M as f}from"./MarkdownText-CZlaYENs.js";import{C as Q}from"./conferenceListings-BnmhBx-_.js";import{t as z,d as H}from"./transform-BwK-yMDY.js";import{l as I}from"./LoadFailurePage-CbxBcR6o.js";import"./PaperCard-CpWKB_q0.js";import"./AuthorAvatar-RLVSdcTr.js";import"./SotaBadges-CmYGMLyy.js";import"./colors-BkWRhvFI.js";import"./Icon-BTX00T3U.js";import"./LatexTitle-C0en22SO.js";import"./safeExternalHref-CkBrsh84.js";import"./popover-CuCcJ8cK.js";import"./skeleton-g9QeRZlQ.js";import"./useIntersectionObserver-CvTvi8t8.js";import"./useInfiniteQuery-Dlybgr8f.js";import"./PaperPreviewLink-BQBSQN0t.js";import"./index-C601BfBQ.js";import"./index-s2hHM8kO.js";import"./hover-card-CcViKpG6.js";import"./useMutation-DBnvCG24.js";import"./alert-C8kkxn4G.js";import"./NotFound-Dm23aroU.js";const $={"iclr-2026/outstanding":"ICLR 2026 recognized two Outstanding Papers and one Honorable Mention. [Read the announcement](https://blog.iclr.cc/2026/04/23/announcing-the-iclr-2026-outstanding-papers/).","icml-2026/outstanding":"ICML 2026 recognized two Outstanding Papers and five Honorable Mentions. [Read the announcement](https://blog.icml.cc/2026/07/05/announcing-the-icml-2026-awards/).","cvpr-2026/best-paper-finalists":"CVPR 2026 recognized fifteen Best Paper Award finalists, including the winners. [Read the announcement](https://x.com/CVPR/status/2062912519522717978)."},ue=()=>{var P,v,w,k,y,_;const{confSlug:t,taskSlug:o}=R(),m=M(),a=Q.find(r=>r.slug===o),u=!!(a!=null&&a.award),i=E(F.conference(t)),p=E({...F.task(o),enabled:!a}),c=T(L.conference(t,o,m.filters),r=>A.forConference(t,{...m.filters,task:a?void 0:o,presentation:a==null?void 0:a.presentation,page:r,page_size:12}),{enabled:!!t}),g=S.useMemo(()=>{var r;return((r=c.data)==null?void 0:r.pages.flatMap(n=>n.results))??[]},[c.data]),h=S.useMemo(()=>g.map(z),[g]),l=(a==null?void 0:a.label)??H(((P=p.data)==null?void 0:P.name)||o||"",((v=p.data)==null?void 0:v.slug)||o),j=$[`${t}/${o}`],N=((k=(w=c.data)==null?void 0:w.pages[0])==null?void 0:k.count)??((y=i.data)==null?void 0:y.paper_count)??0,s=p.data,b=I([i.error,p.error,c.error],"Failed to load conference papers. Please try again.");return b||e.jsxs("div",{className:"page",children:[e.jsxs("nav",{className:"breadcrumb","aria-label":"Breadcrumb",children:[e.jsx(x,{to:"/",children:"Home"}),e.jsx("span",{children:" / "}),e.jsx(x,{to:"/conferences",children:"Conferences"}),e.jsx("span",{children:" / "}),e.jsx(x,{to:`/conferences/${t}`,children:((_=i.data)==null?void 0:_.name)??t}),e.jsx("span",{children:" / "}),e.jsx("span",{children:l})]}),e.jsxs("div",{className:!a&&(s!=null&&s.image_url)?"task-hero-grid":void 0,style:{marginTop:16,marginBottom:28},children:[e.jsxs("div",{children:[e.jsx("div",{style:{fontFamily:"var(--mono)",fontSize:11,color:"var(--accent-text)",letterSpacing:"0.1em",marginBottom:8},children:a?"BROWSE PAPERS":"TASK"}),e.jsx("h1",{className:"domain-mega-title",children:l}),j&&e.jsx(f,{className:"task-explainer",text:j}),!a&&(s==null?void 0:s.description)&&e.jsx(f,{className:"task-explainer",text:s.description}),i.data&&e.jsxs("div",{className:"task-quickstats",style:{marginTop:12},children:[e.jsxs("span",{children:[e.jsx("span",{className:"num",children:N.toLocaleString()}),"PAPERS"]}),e.jsx("span",{children:i.data.name})]})]}),!a&&(s==null?void 0:s.image_url)&&e.jsxs("figure",{className:"task-figure-card",children:[e.jsx("div",{className:"task-figure-img-wrap",children:e.jsx("img",{className:"task-figure-img",src:s.image_url,alt:`${l} schematic`,onError:r=>{var n,d;(d=(n=r.currentTarget.parentElement)==null?void 0:n.parentElement)==null||d.style.setProperty("display","none")}})}),e.jsxs("figcaption",{children:["Figure · ",l,s.image_credit&&e.jsxs(e.Fragment,{children:[e.jsx("br",{}),e.jsx(f,{className:"task-image-credit",text:s.image_credit})]})]})]})]}),e.jsxs("div",{className:"task-section-head",children:[e.jsx("div",{className:"task-section-eyebrow",children:u?"Award papers":"Conference papers · sort below"}),e.jsxs("div",{className:"task-section-title",children:["Papers ",e.jsxs("span",{className:"meta",children:["[",N.toLocaleString(),"]"]})]})]}),e.jsx(B,{feed:m,sorts:u?null:void 0,children:!u&&e.jsxs("div",{className:"results-count",children:[h.length," loaded in ",e.jsx("span",{children:l})]})}),e.jsx(O,{query:c,cards:h,empty:"No papers found for this selection.",cardHeader:r=>{var C;const n=(C=g[r])==null?void 0:C.conference_award,d=n==="outstanding"?"Outstanding Paper":n==="honorable_mention"?"Honorable Mention":n==="best_paper_finalist"&&(a==null?void 0:a.presentation)!=="best_paper_finalist"?"Best Paper Finalist":null;return d&&e.jsx("div",{className:"conference-award-label",children:d})}})]})};export{ue as default};
assets/{ConferencesIndexView-DgrLNXsN.js → ConferencesIndexView-SwvYvYVc.js} RENAMED
@@ -1 +1 @@
1
- import{b as d,i as m,j as e,L as c,v as p}from"./index-2xE415-f.js";import{f as u}from"./deadlines-BG5SWwEG.js";import{A as f,a as h}from"./alert-CMc00cqX.js";import{A as x,a as g}from"./AreaSection-ixYJgExd.js";import{T as j}from"./TaxonomySuggestionTile-NdypTQlh.js";import{u as v}from"./useDocumentTitle-_d-BLODt.js";import{I as N}from"./pageTitles-CFPKZULe.js";import"./skeleton-7Kak9gS9.js";import"./SignInToEditDialog-TqUvJJvy.js";import"./button-Ow7LPhoW.js";import"./input-BMQ_TuLd.js";import"./textarea-DNcp7UYC.js";import"./searchable-select-B_-gAqcr.js";import"./popover-qWW92hSh.js";import"./dialog-Bk_CUlgJ.js";import"./search-DfIPA_iX.js";import"./loader-circle-CmbX91bp.js";import"./useMutation-BcnLcaMd.js";import"./submissions-1Rk-8Ke6.js";import"./plus-C20t97Ow.js";const _=r=>{var t;if(r.year!=null)return r.year;if(r.start_date)return Number(r.start_date.slice(0,4));const a=(t=r.slug.match(/-(\d{4})$/))==null?void 0:t[1];return a?Number(a):0},A=(r,a)=>{if(r.start_date&&a.start_date){const t=r.start_date.localeCompare(a.start_date);if(t!==0)return t}else{if(r.start_date)return-1;if(a.start_date)return 1}return r.name.localeCompare(a.name)},M=()=>{v(N.conferences);const r=d(p.conferences()),a=m.useMemo(()=>{var i;if(!((i=r.data)!=null&&i.results))return null;const t={};return r.data.results.forEach(n=>{const s=_(n);(t[s]||(t[s]=[])).push(n)}),Object.values(t).forEach(n=>n.sort(A)),Object.keys(t).map(Number).sort((n,s)=>s-n).map(n=>({year:n,conferences:t[n]}))},[r.data]);return r.error?e.jsx("div",{className:"page",children:e.jsx(f,{variant:"destructive",children:e.jsx(h,{children:"Failed to load conferences. Please try again."})})}):e.jsxs("div",{className:"page",children:[e.jsx("div",{className:"feed-header",children:e.jsxs("div",{children:[e.jsxs("h1",{className:"feed-title",children:["All ",e.jsx("em",{children:"Conferences"})]}),e.jsx("div",{className:"feed-subtitle",children:"Browse accepted papers from major AI conferences, grouped by research area and task."}),e.jsxs("div",{className:"conference-deadlines-link",children:["Find deadlines for upcoming conferences"," ",e.jsx(c,{to:"/ai-deadlines",className:"underline underline-offset-2 hover:text-foreground",children:"here"}),". Conference information is based on"," ",e.jsx("a",{href:"https://huggingface.co/ai-conferences",target:"_blank",rel:"noreferrer",className:"underline underline-offset-2 hover:text-foreground",children:"Hugging Face AI Conferences"}),"."]})]})}),r.isLoading?e.jsx(x,{sections:2,tiles:3,tileClassName:"h-32"}):a==null?void 0:a.map(({year:t,conferences:i})=>{const n=i.reduce((s,o)=>s+(o.paper_count??0),0);return e.jsxs(g,{title:t>0?String(t):"Unknown year",meta:`${i.length} ${i.length===1?"conference":"conferences"} · ${n.toLocaleString()} papers`,children:[i.map(s=>{const o=u(s.start_date,s.end_date),l=[s.venue,s.location].filter(Boolean).join(", ");return e.jsxs(c,{to:`/conferences/${s.slug}`,className:"tag-cell",children:[e.jsx("div",{className:"name",children:s.name}),e.jsxs("div",{className:"meta",style:{display:"flex",flexDirection:"column",gap:4},children:[o&&e.jsx("span",{children:o}),l&&e.jsx("span",{children:l}),e.jsxs("span",{children:[(s.paper_count??0).toLocaleString()," papers"]})]})]},s.id)}),e.jsx(j,{kind:"conference"})]},t)})]})};export{M as default};
 
1
+ import{b as d,i as m,j as e,L as c,v as p}from"./index-CqLopXcE.js";import{f as u}from"./deadlines-BG5SWwEG.js";import{A as f,a as h}from"./alert-C8kkxn4G.js";import{A as x,a as g}from"./AreaSection-eDvRZ5YZ.js";import{T as j}from"./TaxonomySuggestionTile-BvFTS6DR.js";import{u as v}from"./useDocumentTitle-xBtc80OB.js";import{I as N}from"./pageTitles-BDUuOvJf.js";import"./skeleton-g9QeRZlQ.js";import"./SignInToEditDialog-WFTfQEZb.js";import"./button-DUkH0QIr.js";import"./input-C419tHG_.js";import"./textarea-CVmk78KU.js";import"./searchable-select-ByX0DNkg.js";import"./popover-CuCcJ8cK.js";import"./dialog-BXnL_m2W.js";import"./search-B0zhG2PN.js";import"./loader-circle-DDE80rIr.js";import"./useMutation-DBnvCG24.js";import"./submissions-8BlabU_Z.js";import"./plus-D-JcHoGj.js";const _=r=>{var t;if(r.year!=null)return r.year;if(r.start_date)return Number(r.start_date.slice(0,4));const a=(t=r.slug.match(/-(\d{4})$/))==null?void 0:t[1];return a?Number(a):0},A=(r,a)=>{if(r.start_date&&a.start_date){const t=r.start_date.localeCompare(a.start_date);if(t!==0)return t}else{if(r.start_date)return-1;if(a.start_date)return 1}return r.name.localeCompare(a.name)},M=()=>{v(N.conferences);const r=d(p.conferences()),a=m.useMemo(()=>{var i;if(!((i=r.data)!=null&&i.results))return null;const t={};return r.data.results.forEach(n=>{const s=_(n);(t[s]||(t[s]=[])).push(n)}),Object.values(t).forEach(n=>n.sort(A)),Object.keys(t).map(Number).sort((n,s)=>s-n).map(n=>({year:n,conferences:t[n]}))},[r.data]);return r.error?e.jsx("div",{className:"page",children:e.jsx(f,{variant:"destructive",children:e.jsx(h,{children:"Failed to load conferences. Please try again."})})}):e.jsxs("div",{className:"page",children:[e.jsx("div",{className:"feed-header",children:e.jsxs("div",{children:[e.jsxs("h1",{className:"feed-title",children:["All ",e.jsx("em",{children:"Conferences"})]}),e.jsx("div",{className:"feed-subtitle",children:"Browse accepted papers from major AI conferences, grouped by research area and task."}),e.jsxs("div",{className:"conference-deadlines-link",children:["Find deadlines for upcoming conferences"," ",e.jsx(c,{to:"/ai-deadlines",className:"underline underline-offset-2 hover:text-foreground",children:"here"}),". Conference information is based on"," ",e.jsx("a",{href:"https://huggingface.co/ai-conferences",target:"_blank",rel:"noreferrer",className:"underline underline-offset-2 hover:text-foreground",children:"Hugging Face AI Conferences"}),"."]})]})}),r.isLoading?e.jsx(x,{sections:2,tiles:3,tileClassName:"h-32"}):a==null?void 0:a.map(({year:t,conferences:i})=>{const n=i.reduce((s,o)=>s+(o.paper_count??0),0);return e.jsxs(g,{title:t>0?String(t):"Unknown year",meta:`${i.length} ${i.length===1?"conference":"conferences"} · ${n.toLocaleString()} papers`,children:[i.map(s=>{const o=u(s.start_date,s.end_date),l=[s.venue,s.location].filter(Boolean).join(", ");return e.jsxs(c,{to:`/conferences/${s.slug}`,className:"tag-cell",children:[e.jsx("div",{className:"name",children:s.name}),e.jsxs("div",{className:"meta",style:{display:"flex",flexDirection:"column",gap:4},children:[o&&e.jsx("span",{children:o}),l&&e.jsx("span",{children:l}),e.jsxs("span",{children:[(s.paper_count??0).toLocaleString()," papers"]})]})]},s.id)}),e.jsx(j,{kind:"conference"})]},t)})]})};export{M as default};
assets/{CronDashboard-B3FMPuu4.js → CronDashboard-An3Raxu1.js} RENAMED
@@ -1,4 +1,4 @@
1
- import{d as q,i as h,a4 as ts,U as is,j as e,S as ie,aE as cs,a5 as ls,a6 as ds,W as oe,R as os,Z as ms,a7 as Ae,_ as $,b as G,$ as he,o as xe,a0 as I,A as Te,L as pe,ad as E,a1 as us,p as hs,O as me,c as xs,a as ps,ae as gs,E as js}from"./index-2xE415-f.js";import{u as L}from"./useMutation-BcnLcaMd.js";import{t as ge,f as v,a as S,S as Fe,C as g,b as N,c as b,d as P,e as j,g as C}from"./CronDashboard-CFuRWi5s.js";import{B as O}from"./badge-C3csz_-c.js";import{B as y}from"./button-Ow7LPhoW.js";import{C as vs,a as _s}from"./chevron-up-DAPpOAWB.js";import{D as fe}from"./database-B8UhKmRp.js";import{T as fs}from"./trending-up-a8B6Ks2N.js";import{A as ne}from"./activity-D_eSbyYq.js";import{F as Ne}from"./file-text-CrUpLQJ2.js";import{T as Ee,I as Ns}from"./triangle-alert-DWlcmd9V.js";import{E as Z}from"./external-link-CCL892xT.js";import{C as Y,R as be}from"./refresh-cw-BdvH7i2x.js";import{L as A}from"./loader-circle-CmbX91bp.js";import{C as je}from"./circle-check-BKkD2pPD.js";import{u as bs}from"./useInfiniteQuery-Cvn4-XUc.js";import{c as ye}from"./chat-BaxbAYDA.js";/**
2
  * @license lucide-react v0.462.0 - ISC
3
  *
4
  * This source code is licensed under the ISC license.
 
1
+ import{d as q,i as h,a4 as ts,U as is,j as e,S as ie,aE as cs,a5 as ls,a6 as ds,W as oe,R as os,Z as ms,a7 as Ae,_ as $,b as G,$ as he,o as xe,a0 as I,A as Te,L as pe,ad as E,a1 as us,p as hs,O as me,c as xs,a as ps,ae as gs,E as js}from"./index-CqLopXcE.js";import{u as L}from"./useMutation-DBnvCG24.js";import{t as ge,f as v,a as S,S as Fe,C as g,b as N,c as b,d as P,e as j,g as C}from"./CronDashboard-uLEk1l8b.js";import{B as O}from"./badge-CJsdIbmG.js";import{B as y}from"./button-DUkH0QIr.js";import{C as vs,a as _s}from"./chevron-up-CoUJqJBK.js";import{D as fe}from"./database-672kb9yv.js";import{T as fs}from"./trending-up-CYDjl1mY.js";import{A as ne}from"./activity-xD0SAWlk.js";import{F as Ne}from"./file-text-DL8DB3Ia.js";import{T as Ee,I as Ns}from"./triangle-alert-BMeRW9rg.js";import{E as Z}from"./external-link-CTPTD9wF.js";import{C as Y,R as be}from"./refresh-cw-CXVlNP4b.js";import{L as A}from"./loader-circle-DDE80rIr.js";import{C as je}from"./circle-check-zCzyP0_o.js";import{u as bs}from"./useInfiniteQuery-Dlybgr8f.js";import{c as ye}from"./chat-DGNTyNA6.js";/**
2
  * @license lucide-react v0.462.0 - ISC
3
  *
4
  * This source code is licensed under the ISC license.
assets/{CronDashboard-CFuRWi5s.js → CronDashboard-uLEk1l8b.js} RENAMED
@@ -1,4 +1,4 @@
1
- import{d as c,i as r,j as s,_ as o}from"./index-2xE415-f.js";/**
2
  * @license lucide-react v0.462.0 - ISC
3
  *
4
  * This source code is licensed under the ISC license.
 
1
+ import{d as c,i as r,j as s,_ as o}from"./index-CqLopXcE.js";/**
2
  * @license lucide-react v0.462.0 - ISC
3
  *
4
  * This source code is licensed under the ISC license.
assets/{ExternalSourceEvalBadge-DVDMif98.js → ExternalSourceEvalBadge-DcDIi3qu.js} RENAMED
@@ -1 +1 @@
1
- import{j as e,L as n}from"./index-2xE415-f.js";import{H as o,a as l,b as i}from"./hover-card-CZZ0A1FG.js";import{s as c}from"./safeExternalHref-CkBrsh84.js";const h=()=>e.jsxs(o,{openDelay:120,closeDelay:120,children:[e.jsx(l,{asChild:!0,children:e.jsx("button",{type:"button",className:"bm-closed-source-tag","aria-label":"Closed-source model",children:"closed"})}),e.jsxs(i,{side:"top",align:"start",className:"w-auto max-w-[260px] p-3 text-sm leading-snug",children:["This is an evaluation of a closed-source model. You can disable viewing these in your"," ",e.jsx(n,{to:"/settings",className:"closed-eval-tooltip-link",children:"settings"}),"."]})]});function d(a){if(!a)return"Evaluation sourced outside this paper";const r=a.toLowerCase();if(r.includes("open-asr-leaderboard"))return"Open ASR Leaderboard";if(r.includes("arcprize.org"))return"ARC Prize Leaderboard";if(r.includes("frontierswe.com"))return"FrontierSWE";if(r.includes("deepswe.datacurve.ai"))return"DeepSWE";try{const s=new URL(a,"https://paperswithcode.co");return s.pathname.startsWith("/paper/")?"Source paper":s.hostname.replace(/^www\./,"")}catch{return a}}const m=({sourceUrl:a})=>{const r=c(a),s=typeof a=="string"&&a.startsWith("/paper/")?a:null,t=d(a);return e.jsxs(o,{openDelay:120,closeDelay:120,children:[e.jsx(l,{asChild:!0,children:e.jsx("button",{type:"button",className:"bm-external-source-tag","aria-label":`Externally sourced evaluation: ${t}`,children:"External"})}),e.jsxs(i,{side:"top",align:"start",className:"w-auto max-w-[280px] p-3 text-sm leading-snug",children:["This score was sourced outside this paper.",s?e.jsxs(e.Fragment,{children:[" ",e.jsx(n,{to:s,target:"_blank",rel:"noopener noreferrer",className:"external-eval-tooltip-link",children:t}),"."]}):r?e.jsxs(e.Fragment,{children:[" ",e.jsx("a",{href:r,target:"_blank",rel:"noopener noreferrer",className:"external-eval-tooltip-link",children:t}),"."]}):e.jsxs(e.Fragment,{children:[" ",t,"."]})]})]})};export{h as C,m as E};
 
1
+ import{j as e,L as n}from"./index-CqLopXcE.js";import{H as o,a as l,b as i}from"./hover-card-CcViKpG6.js";import{s as c}from"./safeExternalHref-CkBrsh84.js";const h=()=>e.jsxs(o,{openDelay:120,closeDelay:120,children:[e.jsx(l,{asChild:!0,children:e.jsx("button",{type:"button",className:"bm-closed-source-tag","aria-label":"Closed-source model",children:"closed"})}),e.jsxs(i,{side:"top",align:"start",className:"w-auto max-w-[260px] p-3 text-sm leading-snug",children:["This is an evaluation of a closed-source model. You can disable viewing these in your"," ",e.jsx(n,{to:"/settings",className:"closed-eval-tooltip-link",children:"settings"}),"."]})]});function d(a){if(!a)return"Evaluation sourced outside this paper";const r=a.toLowerCase();if(r.includes("open-asr-leaderboard"))return"Open ASR Leaderboard";if(r.includes("arcprize.org"))return"ARC Prize Leaderboard";if(r.includes("frontierswe.com"))return"FrontierSWE";if(r.includes("deepswe.datacurve.ai"))return"DeepSWE";try{const s=new URL(a,"https://paperswithcode.co");return s.pathname.startsWith("/paper/")?"Source paper":s.hostname.replace(/^www\./,"")}catch{return a}}const m=({sourceUrl:a})=>{const r=c(a),s=typeof a=="string"&&a.startsWith("/paper/")?a:null,t=d(a);return e.jsxs(o,{openDelay:120,closeDelay:120,children:[e.jsx(l,{asChild:!0,children:e.jsx("button",{type:"button",className:"bm-external-source-tag","aria-label":`Externally sourced evaluation: ${t}`,children:"External"})}),e.jsxs(i,{side:"top",align:"start",className:"w-auto max-w-[280px] p-3 text-sm leading-snug",children:["This score was sourced outside this paper.",s?e.jsxs(e.Fragment,{children:[" ",e.jsx(n,{to:s,target:"_blank",rel:"noopener noreferrer",className:"external-eval-tooltip-link",children:t}),"."]}):r?e.jsxs(e.Fragment,{children:[" ",e.jsx("a",{href:r,target:"_blank",rel:"noopener noreferrer",className:"external-eval-tooltip-link",children:t}),"."]}):e.jsxs(e.Fragment,{children:[" ",t,"."]})]})]})};export{h as C,m as E};
assets/{FeedView-Bvrw2hFo.js → FeedView-Bux1HAcv.js} RENAMED
@@ -1,4 +1,4 @@
1
- import{d as tt,j as e,L as se,e as jt,n as Ue,b as J,o as st,i as d,X as Rt,l as vt,r as ne,a as Mt,q as $t,s as nt,t as at,C as $e,v as qe,f as Ot,w as Oe,k as Bt,x as Ye,y as kt,z as Ht,g as it,B as zt,D as qt}from"./index-2xE415-f.js";import{S as Nt,t as Ut}from"./taskIcons-BMFs356n.js";import{c as St,t as Y,d as Tt,e as Ct,f as _t,g as Pt,b as Kt,h as Et,u as Gt,i as Qt,j as Wt,k as Ve,a as rt,l as Yt,m as Vt,n as Xt,o as lt,p as ct,q as Ge,v as Zt}from"./researchTopic-elGDd7wA.js";import{P as De}from"./plus-C20t97Ow.js";import{D as Jt,a as es,b as ts}from"./dialog-Bk_CUlgJ.js";import{S as ss}from"./switch-idJDRCOy.js";import{u as os}from"./useDebounce-DUFNcXEQ.js";import{d as Xe,t as ns}from"./transform-krmE0Oxv.js";import{P as Ft,u as as,a as is,b as rs,D as Qe,q as ls,c as cs,d as ds,i as us,e as ps,A as hs,f as ms,S as de,g as fs}from"./chatSessions-BHe2vEWV.js";import{T as gs}from"./trash-2-cqcsUQJn.js";import{U as ws}from"./undo-2-CNDnHC37.js";import{A as xs}from"./arrow-up-right-D4ZJIEeB.js";import{A as bs}from"./arrow-right-fRQqO2yg.js";import{c as ys,h as js}from"./colors-BkWRhvFI.js";import{r as vs,u as ks,a as Ns,w as Ss,P as Ts}from"./usePapers-Df-AyQGj.js";import{M as Cs}from"./McpShowcase-DSFseGGp.js";import{c as _s}from"./chat-BaxbAYDA.js";import{S as dt}from"./skeleton-7Kak9gS9.js";import{A as Be,a as He}from"./alert-CMc00cqX.js";import{u as Ps}from"./useDocumentTitle-_d-BLODt.js";import{H as Es}from"./pageTitles-CFPKZULe.js";import"./search-DfIPA_iX.js";import"./triangle-alert-DWlcmd9V.js";import"./share-2-uOkTzPmw.js";import"./trending-up-a8B6Ks2N.js";import"./moon-D7UrDvZg.js";import"./thumbs-up-Bc07M7BA.js";import"./database-B8UhKmRp.js";import"./link-2-BUINBL04.js";import"./trophy-D0uB2X3s.js";import"./file-text-CrUpLQJ2.js";import"./activity-D_eSbyYq.js";import"./globe-CT4vHjcD.js";import"./useMutation-BcnLcaMd.js";import"./index-Df3nFJJR.js";import"./PaperCard-Do-fUKOE.js";import"./AuthorAvatar-D53WcphF.js";import"./SotaBadges-Cy5KKcKe.js";import"./Icon-DQoMmS2z.js";import"./LatexTitle-CIj5wiaM.js";import"./safeExternalHref-CkBrsh84.js";import"./popover-qWW92hSh.js";import"./useIntersectionObserver-BjZh7B9X.js";import"./useInfiniteQuery-Cvn4-XUc.js";import"./AgentLogos-DmfyY5wp.js";/**
2
  * @license lucide-react v0.462.0 - ISC
3
  *
4
  * This source code is licensed under the ISC license.
 
1
+ import{d as tt,j as e,L as se,e as jt,n as Ue,b as J,o as st,i as d,X as Rt,l as vt,r as ne,a as Mt,q as $t,s as nt,t as at,C as $e,v as qe,f as Ot,w as Oe,k as Bt,x as Ye,y as kt,z as Ht,g as it,B as zt,D as qt}from"./index-CqLopXcE.js";import{S as Nt,t as Ut}from"./taskIcons-Bt2jN8U9.js";import{c as St,t as Y,d as Tt,e as Ct,f as _t,g as Pt,b as Kt,h as Et,u as Gt,i as Qt,j as Wt,k as Ve,a as rt,l as Yt,m as Vt,n as Xt,o as lt,p as ct,q as Ge,v as Zt}from"./researchTopic-BNud5CMS.js";import{P as De}from"./plus-D-JcHoGj.js";import{D as Jt,a as es,b as ts}from"./dialog-BXnL_m2W.js";import{S as ss}from"./switch-fRR_yusw.js";import{u as os}from"./useDebounce-3Rdi9v36.js";import{d as Xe,t as ns}from"./transform-BwK-yMDY.js";import{P as Ft,u as as,a as is,b as rs,D as Qe,q as ls,c as cs,d as ds,i as us,e as ps,A as hs,f as ms,S as de,g as fs}from"./index-EPaFPxpL.js";import{T as gs}from"./trash-2-qhXxU9a8.js";import{U as ws}from"./undo-2-CJXBAR1q.js";import{A as xs}from"./arrow-up-right-Cj_gCzhz.js";import{A as bs}from"./arrow-right-xvOiHZHi.js";import{c as ys,h as js}from"./colors-BkWRhvFI.js";import{r as vs,u as ks,a as Ns,w as Ss,P as Ts}from"./usePapers-CLqxSGhP.js";import{M as Cs}from"./McpShowcase-BIaXtPrM.js";import{c as _s}from"./chat-DGNTyNA6.js";import{S as dt}from"./skeleton-g9QeRZlQ.js";import{A as Be,a as He}from"./alert-C8kkxn4G.js";import{u as Ps}from"./useDocumentTitle-xBtc80OB.js";import{H as Es}from"./pageTitles-BDUuOvJf.js";import"./search-B0zhG2PN.js";import"./triangle-alert-BMeRW9rg.js";import"./share-2-pHAfXukm.js";import"./trending-up-CYDjl1mY.js";import"./moon-5JKAXetc.js";import"./thumbs-up-BxzCyoEs.js";import"./database-672kb9yv.js";import"./link-2-CfTozoIb.js";import"./trophy-CvSEu_DS.js";import"./file-text-DL8DB3Ia.js";import"./activity-xD0SAWlk.js";import"./globe-8C5j9VAy.js";import"./useMutation-DBnvCG24.js";import"./index-GshCUuRr.js";import"./PaperCard-CpWKB_q0.js";import"./AuthorAvatar-RLVSdcTr.js";import"./SotaBadges-CmYGMLyy.js";import"./Icon-BTX00T3U.js";import"./LatexTitle-C0en22SO.js";import"./safeExternalHref-CkBrsh84.js";import"./popover-CuCcJ8cK.js";import"./useIntersectionObserver-CvTvi8t8.js";import"./useInfiniteQuery-Dlybgr8f.js";import"./AgentLogos-BGglpy29.js";/**
2
  * @license lucide-react v0.462.0 - ISC
3
  *
4
  * This source code is licensed under the ISC license.
assets/FollowingView-DkTrRhPH.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{j as o}from"./index-CqLopXcE.js";import{HomeFeed as r}from"./FeedView-Bux1HAcv.js";import"./taskIcons-Bt2jN8U9.js";import"./search-B0zhG2PN.js";import"./triangle-alert-BMeRW9rg.js";import"./share-2-pHAfXukm.js";import"./trending-up-CYDjl1mY.js";import"./moon-5JKAXetc.js";import"./thumbs-up-BxzCyoEs.js";import"./database-672kb9yv.js";import"./link-2-CfTozoIb.js";import"./trophy-CvSEu_DS.js";import"./file-text-DL8DB3Ia.js";import"./activity-xD0SAWlk.js";import"./globe-8C5j9VAy.js";import"./researchTopic-BNud5CMS.js";import"./useMutation-DBnvCG24.js";import"./plus-D-JcHoGj.js";import"./dialog-BXnL_m2W.js";import"./switch-fRR_yusw.js";import"./index-GshCUuRr.js";import"./useDebounce-3Rdi9v36.js";import"./transform-BwK-yMDY.js";import"./index-EPaFPxpL.js";import"./chat-DGNTyNA6.js";import"./trash-2-qhXxU9a8.js";import"./undo-2-CJXBAR1q.js";import"./arrow-up-right-Cj_gCzhz.js";import"./arrow-right-xvOiHZHi.js";import"./colors-BkWRhvFI.js";import"./usePapers-CLqxSGhP.js";import"./PaperCard-CpWKB_q0.js";import"./AuthorAvatar-RLVSdcTr.js";import"./SotaBadges-CmYGMLyy.js";import"./Icon-BTX00T3U.js";import"./LatexTitle-C0en22SO.js";import"./safeExternalHref-CkBrsh84.js";import"./popover-CuCcJ8cK.js";import"./skeleton-g9QeRZlQ.js";import"./useIntersectionObserver-CvTvi8t8.js";import"./useInfiniteQuery-Dlybgr8f.js";import"./McpShowcase-BIaXtPrM.js";import"./AgentLogos-BGglpy29.js";import"./alert-C8kkxn4G.js";import"./useDocumentTitle-xBtc80OB.js";import"./pageTitles-BDUuOvJf.js";function W(){return o.jsx(r,{mode:"following"})}export{W as default};
assets/FollowingView-iOqIZWd5.js DELETED
@@ -1 +0,0 @@
1
- import{j as o}from"./index-2xE415-f.js";import{HomeFeed as r}from"./FeedView-Bvrw2hFo.js";import"./taskIcons-BMFs356n.js";import"./search-DfIPA_iX.js";import"./triangle-alert-DWlcmd9V.js";import"./share-2-uOkTzPmw.js";import"./trending-up-a8B6Ks2N.js";import"./moon-D7UrDvZg.js";import"./thumbs-up-Bc07M7BA.js";import"./database-B8UhKmRp.js";import"./link-2-BUINBL04.js";import"./trophy-D0uB2X3s.js";import"./file-text-CrUpLQJ2.js";import"./activity-D_eSbyYq.js";import"./globe-CT4vHjcD.js";import"./researchTopic-elGDd7wA.js";import"./useMutation-BcnLcaMd.js";import"./plus-C20t97Ow.js";import"./dialog-Bk_CUlgJ.js";import"./switch-idJDRCOy.js";import"./index-Df3nFJJR.js";import"./useDebounce-DUFNcXEQ.js";import"./transform-krmE0Oxv.js";import"./chatSessions-BHe2vEWV.js";import"./chat-BaxbAYDA.js";import"./trash-2-cqcsUQJn.js";import"./undo-2-CNDnHC37.js";import"./arrow-up-right-D4ZJIEeB.js";import"./arrow-right-fRQqO2yg.js";import"./colors-BkWRhvFI.js";import"./usePapers-Df-AyQGj.js";import"./PaperCard-Do-fUKOE.js";import"./AuthorAvatar-D53WcphF.js";import"./SotaBadges-Cy5KKcKe.js";import"./Icon-DQoMmS2z.js";import"./LatexTitle-CIj5wiaM.js";import"./safeExternalHref-CkBrsh84.js";import"./popover-qWW92hSh.js";import"./skeleton-7Kak9gS9.js";import"./useIntersectionObserver-BjZh7B9X.js";import"./useInfiniteQuery-Cvn4-XUc.js";import"./McpShowcase-DSFseGGp.js";import"./AgentLogos-DmfyY5wp.js";import"./alert-CMc00cqX.js";import"./useDocumentTitle-_d-BLODt.js";import"./pageTitles-CFPKZULe.js";function W(){return o.jsx(r,{mode:"following"})}export{W as default};
 
 
assets/{FrameworksIndexView-Ba1P2nhU.js → FrameworksIndexView-DvcCH5CJ.js} RENAMED
@@ -1 +1 @@
1
- import{n as d,j as e,L as o,b as m,ab as h,v as u}from"./index-2xE415-f.js";import{I as p}from"./Icon-DQoMmS2z.js";import{c as g,h as x}from"./colors-BkWRhvFI.js";import{P as f}from"./frameworks-DDA0P4Tf.js";import{u as j}from"./useDocumentTitle-_d-BLODt.js";import{I as _}from"./pageTitles-CFPKZULe.js";const k={fontFamily:"var(--mono)",fontSize:13,fontWeight:600,letterSpacing:"0.04em",textTransform:"uppercase",color:"var(--ink)",marginBottom:6},N=({platform:s})=>{const n=g(x(s));return e.jsx("span",{className:"framework-platform-chip",style:{background:n.bg,color:n.text},children:f[s]})},v=({framework:s})=>{const n=d(),t=`/papers?framework=${encodeURIComponent(s.slug)}`;return e.jsxs("article",{id:`framework-${s.slug}`,className:"framework-card framework-card-clickable",role:"link",tabIndex:0,"aria-label":`View papers implemented by ${s.name}`,onClick:a=>{a.target.closest("a, button")||n(t)},onKeyDown:a=>{a.target===a.currentTarget&&(a.key==="Enter"||a.key===" ")&&(a.preventDefault(),n(t))},children:[e.jsxs("div",{className:"framework-card-head",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"framework-card-name",children:s.name}),s.organization_name&&e.jsx("div",{className:"framework-card-org",children:s.organization_name})]}),s.platforms&&s.platforms.length>0&&e.jsx("div",{className:"framework-platform-row",children:s.platforms.map(a=>e.jsx(N,{platform:a},a))})]}),e.jsx("p",{className:"framework-card-desc",children:s.description}),s.when_to_use&&e.jsxs("div",{className:"framework-card-when",children:[e.jsx("span",{className:"framework-card-when-label",children:"When to use"}),s.when_to_use]}),(s.github_url||s.docs_url||s.introducing_paper_arxiv_id)&&e.jsxs("div",{className:"framework-card-links",children:[s.introducing_paper_arxiv_id&&e.jsx(o,{to:`/paper/${s.introducing_paper_arxiv_id}`,className:"framework-link",children:"Introducing paper"}),s.github_url&&s.paper_count>0&&e.jsxs(o,{to:t,className:"framework-link",children:["Implements ",s.paper_count," ",s.paper_count===1?"paper":"papers"]}),s.github_url&&s.paper_count===0&&e.jsx("span",{className:"framework-link framework-link-disabled","aria-disabled":"true",children:"Implements 0 papers"}),s.github_url&&e.jsxs("a",{href:s.github_url,target:"_blank",rel:"noopener noreferrer",className:"framework-link",children:[e.jsx(p,{name:"github",size:13}),"GitHub"]}),s.docs_url&&s.docs_url!==s.github_url&&e.jsx("a",{href:s.docs_url,target:"_blank",rel:"noopener noreferrer",className:"framework-link",children:"Docs"})]})]})},F=()=>{var a;j(_.frameworks);const s=m(u.frameworkCatalog()),n=((a=s.data)==null?void 0:a.domains)??[],t=n.reduce((i,r)=>i+r.categories.reduce((l,c)=>l+c.frameworks.length,0),0);return h.useEffect(()=>{var r;const i=window.location.hash.slice(1);i&&((r=document.getElementById(i))==null||r.scrollIntoView())},[s.data]),e.jsxs("div",{className:"page",children:[e.jsx("div",{className:"feed-header",children:e.jsxs("div",{children:[e.jsxs("h1",{className:"feed-title",children:["AI ",e.jsx("em",{children:"Frameworks"})]}),e.jsx("div",{className:"feed-subtitle",children:"Curated libraries and tools to run, serve, and train models — pick the right stack for your hardware and workload."})]})}),s.isLoading&&e.jsx("div",{className:"empty",children:"Loading frameworks…"}),s.isError&&e.jsx("div",{className:"empty",children:"Could not load frameworks."}),n.map(i=>e.jsxs("section",{style:{marginBottom:56},children:[e.jsxs("div",{className:"area-section-head",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"area-section-title",children:i.name}),e.jsx("div",{className:"area-section-description",children:i.description})]}),e.jsxs("div",{className:"area-section-meta",children:[i.categories.length," ",i.categories.length===1?"category":"categories"," ·"," ",i.categories.reduce((r,l)=>r+l.frameworks.length,0)," frameworks"]})]}),i.categories.map(r=>e.jsxs("div",{className:"framework-category",children:[e.jsxs("div",{className:"framework-category-head",children:[e.jsxs("div",{children:[e.jsx("h3",{style:k,children:r.name}),r.description&&e.jsx("p",{className:"framework-category-blurb",children:r.description}),r.guide_url&&e.jsxs("a",{href:r.guide_url,target:"_blank",rel:"noopener noreferrer",className:"framework-guide-link",children:[r.guide_label??"Read guide"," →"]})]}),e.jsxs("div",{className:"framework-category-meta",children:[r.frameworks.length," ",r.frameworks.length===1?"framework":"frameworks"]})]}),e.jsx("div",{className:"framework-grid",children:r.frameworks.map(l=>e.jsx(v,{framework:l},l.slug))})]},r.slug))]},i.slug)),e.jsxs("div",{style:{fontFamily:"var(--mono)",fontSize:11,color:"var(--ink-faint)",marginTop:8},children:[t," frameworks across ",n.length," ",n.length===1?"domain":"domains",". More areas coming soon."]})]})};export{v as FrameworkCard,F as default};
 
1
+ import{n as d,j as e,L as o,b as m,ab as h,v as u}from"./index-CqLopXcE.js";import{I as p}from"./Icon-BTX00T3U.js";import{c as g,h as x}from"./colors-BkWRhvFI.js";import{P as f}from"./frameworks-DDA0P4Tf.js";import{u as j}from"./useDocumentTitle-xBtc80OB.js";import{I as _}from"./pageTitles-BDUuOvJf.js";const k={fontFamily:"var(--mono)",fontSize:13,fontWeight:600,letterSpacing:"0.04em",textTransform:"uppercase",color:"var(--ink)",marginBottom:6},N=({platform:s})=>{const n=g(x(s));return e.jsx("span",{className:"framework-platform-chip",style:{background:n.bg,color:n.text},children:f[s]})},v=({framework:s})=>{const n=d(),t=`/papers?framework=${encodeURIComponent(s.slug)}`;return e.jsxs("article",{id:`framework-${s.slug}`,className:"framework-card framework-card-clickable",role:"link",tabIndex:0,"aria-label":`View papers implemented by ${s.name}`,onClick:a=>{a.target.closest("a, button")||n(t)},onKeyDown:a=>{a.target===a.currentTarget&&(a.key==="Enter"||a.key===" ")&&(a.preventDefault(),n(t))},children:[e.jsxs("div",{className:"framework-card-head",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"framework-card-name",children:s.name}),s.organization_name&&e.jsx("div",{className:"framework-card-org",children:s.organization_name})]}),s.platforms&&s.platforms.length>0&&e.jsx("div",{className:"framework-platform-row",children:s.platforms.map(a=>e.jsx(N,{platform:a},a))})]}),e.jsx("p",{className:"framework-card-desc",children:s.description}),s.when_to_use&&e.jsxs("div",{className:"framework-card-when",children:[e.jsx("span",{className:"framework-card-when-label",children:"When to use"}),s.when_to_use]}),(s.github_url||s.docs_url||s.introducing_paper_arxiv_id)&&e.jsxs("div",{className:"framework-card-links",children:[s.introducing_paper_arxiv_id&&e.jsx(o,{to:`/paper/${s.introducing_paper_arxiv_id}`,className:"framework-link",children:"Introducing paper"}),s.github_url&&s.paper_count>0&&e.jsxs(o,{to:t,className:"framework-link",children:["Implements ",s.paper_count," ",s.paper_count===1?"paper":"papers"]}),s.github_url&&s.paper_count===0&&e.jsx("span",{className:"framework-link framework-link-disabled","aria-disabled":"true",children:"Implements 0 papers"}),s.github_url&&e.jsxs("a",{href:s.github_url,target:"_blank",rel:"noopener noreferrer",className:"framework-link",children:[e.jsx(p,{name:"github",size:13}),"GitHub"]}),s.docs_url&&s.docs_url!==s.github_url&&e.jsx("a",{href:s.docs_url,target:"_blank",rel:"noopener noreferrer",className:"framework-link",children:"Docs"})]})]})},F=()=>{var a;j(_.frameworks);const s=m(u.frameworkCatalog()),n=((a=s.data)==null?void 0:a.domains)??[],t=n.reduce((i,r)=>i+r.categories.reduce((l,c)=>l+c.frameworks.length,0),0);return h.useEffect(()=>{var r;const i=window.location.hash.slice(1);i&&((r=document.getElementById(i))==null||r.scrollIntoView())},[s.data]),e.jsxs("div",{className:"page",children:[e.jsx("div",{className:"feed-header",children:e.jsxs("div",{children:[e.jsxs("h1",{className:"feed-title",children:["AI ",e.jsx("em",{children:"Frameworks"})]}),e.jsx("div",{className:"feed-subtitle",children:"Curated libraries and tools to run, serve, and train models — pick the right stack for your hardware and workload."})]})}),s.isLoading&&e.jsx("div",{className:"empty",children:"Loading frameworks…"}),s.isError&&e.jsx("div",{className:"empty",children:"Could not load frameworks."}),n.map(i=>e.jsxs("section",{style:{marginBottom:56},children:[e.jsxs("div",{className:"area-section-head",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"area-section-title",children:i.name}),e.jsx("div",{className:"area-section-description",children:i.description})]}),e.jsxs("div",{className:"area-section-meta",children:[i.categories.length," ",i.categories.length===1?"category":"categories"," ·"," ",i.categories.reduce((r,l)=>r+l.frameworks.length,0)," frameworks"]})]}),i.categories.map(r=>e.jsxs("div",{className:"framework-category",children:[e.jsxs("div",{className:"framework-category-head",children:[e.jsxs("div",{children:[e.jsx("h3",{style:k,children:r.name}),r.description&&e.jsx("p",{className:"framework-category-blurb",children:r.description}),r.guide_url&&e.jsxs("a",{href:r.guide_url,target:"_blank",rel:"noopener noreferrer",className:"framework-guide-link",children:[r.guide_label??"Read guide"," →"]})]}),e.jsxs("div",{className:"framework-category-meta",children:[r.frameworks.length," ",r.frameworks.length===1?"framework":"frameworks"]})]}),e.jsx("div",{className:"framework-grid",children:r.frameworks.map(l=>e.jsx(v,{framework:l},l.slug))})]},r.slug))]},i.slug)),e.jsxs("div",{style:{fontFamily:"var(--mono)",fontSize:11,color:"var(--ink-faint)",marginTop:8},children:[t," frameworks across ",n.length," ",n.length===1?"domain":"domains",". More areas coming soon."]})]})};export{v as FrameworkCard,F as default};
assets/{Icon-DQoMmS2z.js → Icon-BTX00T3U.js} RENAMED
@@ -1 +1 @@
1
- import{j as o}from"./index-2xE415-f.js";const s=({name:t,size:r=14})=>{const e={search:o.jsx("path",{d:"M11 11l3 3M7 12.5a5.5 5.5 0 110-11 5.5 5.5 0 010 11z",stroke:"currentColor",strokeWidth:"1.5",fill:"none",strokeLinecap:"round"}),arrowUp:o.jsx("path",{d:"M8 3l5 6H3l5-6z",fill:"currentColor"}),arrowLeft:o.jsx("path",{d:"M9 3l-4 5 4 5",stroke:"currentColor",strokeWidth:"1.5",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"}),arrowRight:o.jsx("path",{d:"M7 3l4 5-4 5",stroke:"currentColor",strokeWidth:"1.5",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"}),external:o.jsx("path",{d:"M5 3h-2v8h8v-2M9 3h3v3M7 9l5-5",stroke:"currentColor",strokeWidth:"1.5",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"}),github:o.jsx("path",{d:"M8 1a7 7 0 00-2.21 13.64c.35.06.48-.15.48-.34v-1.2c-1.95.42-2.36-.94-2.36-.94-.32-.81-.78-1.03-.78-1.03-.64-.43.05-.43.05-.43.7.05 1.07.72 1.07.72.62 1.07 1.64.76 2.04.58.06-.45.24-.76.44-.94-1.55-.18-3.18-.78-3.18-3.46 0-.76.27-1.39.72-1.88-.07-.18-.31-.89.07-1.86 0 0 .59-.19 1.92.72.56-.15 1.16-.23 1.75-.24.59 0 1.19.08 1.75.24 1.33-.9 1.92-.72 1.92-.72.38.97.14 1.68.07 1.86.45.49.72 1.12.72 1.88 0 2.69-1.64 3.28-3.19 3.45.25.22.48.65.48 1.32v1.95c0 .19.13.41.49.34A7 7 0 008 1z",fill:"currentColor"}),citation:o.jsx("path",{d:"M3 4h3v3H3zM4 7v1.5a1.5 1.5 0 01-1.5 1.5M9 4h3v3H9zM10 7v1.5a1.5 1.5 0 01-1.5 1.5",stroke:"currentColor",strokeWidth:"1.2",fill:"none"}),x:o.jsx("path",{d:"M2.5 2.5h3l8 11h-3zM13.5 2.5L9 7.6M2.5 13.5L7 8.4",stroke:"currentColor",strokeWidth:"1.3",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"}),bookmark:o.jsx("path",{d:"M4 2h8v12l-4-3-4 3V2z",stroke:"currentColor",strokeWidth:"1.5",fill:"none",strokeLinejoin:"round"}),chart:o.jsx("path",{d:"M2 13h12M3 11l3-4 3 2 4-5",stroke:"currentColor",strokeWidth:"1.5",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"}),chat:o.jsx("path",{d:"M3 3h10v7H7l-3 3v-3H3V3z",stroke:"currentColor",strokeWidth:"1.5",fill:"none",strokeLinejoin:"round"}),pdf:o.jsx("path",{d:"M5 2h5l3 3v9H5V2z",stroke:"currentColor",strokeWidth:"1.5",fill:"none",strokeLinejoin:"round"}),copy:o.jsx("path",{d:"M5 5h7v8H5V5zM3 3h7v2M3 3v8h2",stroke:"currentColor",strokeWidth:"1.2",fill:"none",strokeLinejoin:"round"}),sparkle:o.jsx("path",{d:"M8 2l1.2 3.8L13 7l-3.8 1.2L8 12l-1.2-3.8L3 7l3.8-1.2L8 2z",fill:"currentColor"}),user:o.jsx("path",{d:"M8 8a3 3 0 100-6 3 3 0 000 6zM2 14c0-3 2.5-5 6-5s6 2 6 5",stroke:"currentColor",strokeWidth:"1.5",fill:"none",strokeLinecap:"round"}),globe:o.jsx("path",{d:"M8 1.5a6.5 6.5 0 100 13 6.5 6.5 0 000-13zM1.5 8h13M8 1.5c1.7 1.9 2.6 4.2 2.6 6.5s-.9 4.6-2.6 6.5M8 1.5C6.3 3.4 5.4 5.7 5.4 8s.9 4.6 2.6 6.5",stroke:"currentColor",strokeWidth:"1.2",fill:"none",strokeLinecap:"round"}),menu:o.jsx("path",{d:"M2 4h12M2 8h12M2 12h12",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"}),close:o.jsx("path",{d:"M3 3l10 10M13 3L3 13",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"}),pencil:o.jsx("path",{d:"M10.5 2.5l3 3L6 13H3v-3l7.5-7.5zM9 4l3 3",stroke:"currentColor",strokeWidth:"1.5",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"}),robot:o.jsx("path",{d:"M6 12.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3a.5.5 0 0 1-.5-.5M3 8.062C3 6.76 4.235 5.765 5.53 5.886a26.6 26.6 0 0 0 4.94 0C11.765 5.765 13 6.76 13 8.062v1.157a.93.93 0 0 1-.765.935c-.845.147-2.34.346-4.235.346s-3.39-.2-4.235-.346A.93.93 0 0 1 3 9.219zm4.542-.827a.25.25 0 0 0-.217.068l-.92.9a25 25 0 0 1-1.871-.183a.25.25 0 0 0-.068.495c.55.076 1.232.149 2.02.193a.25.25 0 0 0 .189-.071l.754-.736l.847 1.71a.25.25 0 0 0 .404.062l.932-.97a25 25 0 0 0 1.922-.188a.25.25 0 0 0-.068-.495c-.538.074-1.207.145-1.98.189a.25.25 0 0 0-.166.076l-.754.785l-.842-1.7a.25.25 0 0 0-.182-.135M8.5 1.866a1 1 0 1 0-1 0V3h-2A4.5 4.5 0 0 0 1 7.5V8a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1v1a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-1a1 1 0 0 0 1-1V9a1 1 0 0 0-1-1v-.5A4.5 4.5 0 0 0 10.5 3h-2zM14 7.5V13a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V7.5A3.5 3.5 0 0 1 5.5 4h5A3.5 3.5 0 0 1 14 7.5",fill:"currentColor"})};return o.jsx("svg",{className:r===11?"icon-sm":"icon",viewBox:"0 0 16 16",width:r,height:r,children:e[t]})};export{s as I};
 
1
+ import{j as o}from"./index-CqLopXcE.js";const s=({name:t,size:r=14})=>{const e={search:o.jsx("path",{d:"M11 11l3 3M7 12.5a5.5 5.5 0 110-11 5.5 5.5 0 010 11z",stroke:"currentColor",strokeWidth:"1.5",fill:"none",strokeLinecap:"round"}),arrowUp:o.jsx("path",{d:"M8 3l5 6H3l5-6z",fill:"currentColor"}),arrowLeft:o.jsx("path",{d:"M9 3l-4 5 4 5",stroke:"currentColor",strokeWidth:"1.5",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"}),arrowRight:o.jsx("path",{d:"M7 3l4 5-4 5",stroke:"currentColor",strokeWidth:"1.5",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"}),external:o.jsx("path",{d:"M5 3h-2v8h8v-2M9 3h3v3M7 9l5-5",stroke:"currentColor",strokeWidth:"1.5",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"}),github:o.jsx("path",{d:"M8 1a7 7 0 00-2.21 13.64c.35.06.48-.15.48-.34v-1.2c-1.95.42-2.36-.94-2.36-.94-.32-.81-.78-1.03-.78-1.03-.64-.43.05-.43.05-.43.7.05 1.07.72 1.07.72.62 1.07 1.64.76 2.04.58.06-.45.24-.76.44-.94-1.55-.18-3.18-.78-3.18-3.46 0-.76.27-1.39.72-1.88-.07-.18-.31-.89.07-1.86 0 0 .59-.19 1.92.72.56-.15 1.16-.23 1.75-.24.59 0 1.19.08 1.75.24 1.33-.9 1.92-.72 1.92-.72.38.97.14 1.68.07 1.86.45.49.72 1.12.72 1.88 0 2.69-1.64 3.28-3.19 3.45.25.22.48.65.48 1.32v1.95c0 .19.13.41.49.34A7 7 0 008 1z",fill:"currentColor"}),citation:o.jsx("path",{d:"M3 4h3v3H3zM4 7v1.5a1.5 1.5 0 01-1.5 1.5M9 4h3v3H9zM10 7v1.5a1.5 1.5 0 01-1.5 1.5",stroke:"currentColor",strokeWidth:"1.2",fill:"none"}),x:o.jsx("path",{d:"M2.5 2.5h3l8 11h-3zM13.5 2.5L9 7.6M2.5 13.5L7 8.4",stroke:"currentColor",strokeWidth:"1.3",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"}),bookmark:o.jsx("path",{d:"M4 2h8v12l-4-3-4 3V2z",stroke:"currentColor",strokeWidth:"1.5",fill:"none",strokeLinejoin:"round"}),chart:o.jsx("path",{d:"M2 13h12M3 11l3-4 3 2 4-5",stroke:"currentColor",strokeWidth:"1.5",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"}),chat:o.jsx("path",{d:"M3 3h10v7H7l-3 3v-3H3V3z",stroke:"currentColor",strokeWidth:"1.5",fill:"none",strokeLinejoin:"round"}),pdf:o.jsx("path",{d:"M5 2h5l3 3v9H5V2z",stroke:"currentColor",strokeWidth:"1.5",fill:"none",strokeLinejoin:"round"}),copy:o.jsx("path",{d:"M5 5h7v8H5V5zM3 3h7v2M3 3v8h2",stroke:"currentColor",strokeWidth:"1.2",fill:"none",strokeLinejoin:"round"}),sparkle:o.jsx("path",{d:"M8 2l1.2 3.8L13 7l-3.8 1.2L8 12l-1.2-3.8L3 7l3.8-1.2L8 2z",fill:"currentColor"}),user:o.jsx("path",{d:"M8 8a3 3 0 100-6 3 3 0 000 6zM2 14c0-3 2.5-5 6-5s6 2 6 5",stroke:"currentColor",strokeWidth:"1.5",fill:"none",strokeLinecap:"round"}),globe:o.jsx("path",{d:"M8 1.5a6.5 6.5 0 100 13 6.5 6.5 0 000-13zM1.5 8h13M8 1.5c1.7 1.9 2.6 4.2 2.6 6.5s-.9 4.6-2.6 6.5M8 1.5C6.3 3.4 5.4 5.7 5.4 8s.9 4.6 2.6 6.5",stroke:"currentColor",strokeWidth:"1.2",fill:"none",strokeLinecap:"round"}),menu:o.jsx("path",{d:"M2 4h12M2 8h12M2 12h12",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"}),close:o.jsx("path",{d:"M3 3l10 10M13 3L3 13",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"}),pencil:o.jsx("path",{d:"M10.5 2.5l3 3L6 13H3v-3l7.5-7.5zM9 4l3 3",stroke:"currentColor",strokeWidth:"1.5",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"}),robot:o.jsx("path",{d:"M6 12.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3a.5.5 0 0 1-.5-.5M3 8.062C3 6.76 4.235 5.765 5.53 5.886a26.6 26.6 0 0 0 4.94 0C11.765 5.765 13 6.76 13 8.062v1.157a.93.93 0 0 1-.765.935c-.845.147-2.34.346-4.235.346s-3.39-.2-4.235-.346A.93.93 0 0 1 3 9.219zm4.542-.827a.25.25 0 0 0-.217.068l-.92.9a25 25 0 0 1-1.871-.183a.25.25 0 0 0-.068.495c.55.076 1.232.149 2.02.193a.25.25 0 0 0 .189-.071l.754-.736l.847 1.71a.25.25 0 0 0 .404.062l.932-.97a25 25 0 0 0 1.922-.188a.25.25 0 0 0-.068-.495c-.538.074-1.207.145-1.98.189a.25.25 0 0 0-.166.076l-.754.785l-.842-1.7a.25.25 0 0 0-.182-.135M8.5 1.866a1 1 0 1 0-1 0V3h-2A4.5 4.5 0 0 0 1 7.5V8a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1v1a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-1a1 1 0 0 0 1-1V9a1 1 0 0 0-1-1v-.5A4.5 4.5 0 0 0 10.5 3h-2zM14 7.5V13a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V7.5A3.5 3.5 0 0 1 5.5 4h5A3.5 3.5 0 0 1 14 7.5",fill:"currentColor"})};return o.jsx("svg",{className:r===11?"icon-sm":"icon",viewBox:"0 0 16 16",width:r,height:r,children:e[t]})};export{s as I};
assets/{LatexTitle-CIj5wiaM.js → LatexTitle-C0en22SO.js} RENAMED
@@ -1,2 +1,2 @@
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/katex-wklAmtGL.css"])))=>i.map(i=>d[i]);
2
- import{j as l,i as A,au as $}from"./index-2xE415-f.js";let g=null,L=null;function M(){return L??(L=Promise.all([$(()=>import("./katex-DkKDou_j.js"),[]),$(()=>Promise.resolve({}),__vite__mapDeps([0]))]).then(([n])=>(g=n.default,g))),L}const O=new Set([",",";",":","!"," ","quad","qquad","enspace","thinspace"]),S={a:"á",e:"é",i:"í",o:"ó",u:"ú",y:"ý",A:"Á",E:"É",I:"Í",O:"Ó",U:"Ú",Y:"Ý"},w={a:"à",e:"è",i:"ì",o:"ò",u:"ù",A:"À",E:"È",I:"Ì",O:"Ò",U:"Ù"},b={a:"â",e:"ê",i:"î",o:"ô",u:"û",A:"Â",E:"Ê",I:"Î",O:"Ô",U:"Û"},N={a:"ä",e:"ë",i:"ï",o:"ö",u:"ü",y:"ÿ",A:"Ä",E:"Ë",I:"Ï",O:"Ö",U:"Ü",Y:"Ÿ"},k={"'":S,"`":w,"^":b,'"':N,"~":{n:"ñ",N:"Ñ"}},T={ss:"ß",ae:"æ",AE:"Æ",oe:"œ",OE:"Œ",o:"ø",O:"Ø",l:"ł",L:"Ł"};function I(n,i){var e;return((e=k[n])==null?void 0:e[i])??null}function v(n,i){const e=n.indexOf("$",i+1);if(e===-1||!/\d/.test(n[i+1]??""))return e;for(let t=e;t!==-1;t=n.indexOf("$",t+1)){if(/\s/.test(n[t-1]))return-1;if(!/\d/.test(n[t+1]??""))return t}return-1}function U(n){const i=[];let e=0,t="";const r=()=>{t&&(i.push({type:"text",content:t}),t="")};for(;e<n.length;){if(n[e]==="$"&&n[e+1]==="$"){r();const o=n.indexOf("$$",e+2);if(o===-1){t+=n.slice(e);break}i.push({type:"display",content:n.slice(e+2,o)}),e=o+2;continue}if(n[e]==="$"){const o=v(n,e);if(o===-1){t+="$",e+=1;continue}r(),i.push({type:"inline",content:n.slice(e+1,o)}),e=o+1;continue}t+=n[e],e+=1}return r(),i}function d(n,i){if(n[i]!=="{")return null;let e=0;for(let t=i;t<n.length;t+=1)if(n[t]==="{")e+=1;else if(n[t]==="}"&&(e-=1,e===0))return{content:n.slice(i+1,t),end:t+1};return null}function j(n,i){let e=i+1;if(e>=n.length)return{name:"",end:e};if(!/[a-zA-Z]/.test(n[e]))return{name:n[e],end:e+1};const t=e;for(;e<n.length&&/[a-zA-Z]/.test(n[e]);)e+=1;return{name:n.slice(t,e),end:e}}function z(n,i){const e=n[i];if(e!=="^"&&e!=="_"||i+1>=n.length)return null;if(n[i+1]==="{"){const t=d(n,i+1);return t?{end:t.end}:null}return/[A-Za-z0-9+\-=.]/.test(n[i+1])?{end:i+2}:null}function y(n,i){let e=i;if(n[e]==="\\"){const{name:o,end:s}=j(n,e);if(!o)return null;if(e=s,n[e]==="{"){const a=d(n,e);a&&(e=a.end)}}else if(/[A-Za-z0-9]/.test(n[e])){let o=e+1;for(;o<n.length&&/[A-Za-z0-9]/.test(n[o]);)o+=1;if(n[o]!=="^"&&n[o]!=="_")return null;e=o}else return null;const t=i;let r=0;for(;e<n.length;){const o=z(n,e);if(!o)break;r+=1,e=o.end}return r===0?null:{latex:n.slice(t,e),end:e}}function X(n){return Array.from(new Set((n||"").trim().split(/\s+/).filter(Boolean))).sort((i,e)=>e.length-i.length)}function D(n,i,e){const t=X(i);if(!t.length)return[n];const r=t.map(s=>s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")),o=new RegExp(`(${r.join("|")})`,"gi");return n.split(o).filter(Boolean).map((s,a)=>t.some(h=>h.toLocaleLowerCase()===s.toLocaleLowerCase())?l.jsx("mark",{children:s},`${e}-mark-${a}`):s)}function m(n,i,e){const t=[];let r=0,o=0;const s=()=>`${i}-${o++}`,a=(h,f)=>h==="strong"?l.jsx("strong",{children:f},s()):l.jsx("em",{children:f},s());for(;r<n.length;){if(n[r]==="\\"){const{name:u,end:C}=j(n,r);if(r=C,T[u]){t.push(T[u]);continue}if(u.length===1&&r<n.length&&/[A-Za-z]/.test(n[r])){const c=I(u,n[r]);if(c){t.push(c),r+=1;continue}}if(u==="c"){const c=d(n,r);if((c==null?void 0:c.content.length)===1){const p={c:"ç",C:"Ç"}[c.content];if(p){t.push(p),r=c.end;continue}}}if(u==="textbf"||u==="mathbf"){const c=d(n,r);if(c){r=c.end,t.push(a("strong",m(c.content,s(),e)));continue}}if(u==="emph"||u==="textit"||u==="textsl"||u==="texttt"){const c=d(n,r);if(c){r=c.end,t.push(a("em",m(c.content,s(),e)));continue}}if(u==="color"||u==="textcolor"){const c=d(n,r);if(c){r=c.end;const p=d(n,r);p&&(r=p.end,t.push(...m(p.content,s(),e)));continue}}if(O.has(u)){t.push(" ");continue}if(u==="~"){t.push(" ");continue}const E=d(n,r);if(E){r=E.end,t.push(...m(E.content,s(),e));continue}t.push(`\\${u}`);continue}if(n[r]==="~"){t.push(" "),r+=1;continue}const h=y(n,r);if(h){t.push(l.jsx(_,{latex:h.latex,display:!1},s())),r=h.end;continue}let f=r;for(;f<n.length&&n[f]!=="\\"&&n[f]!=="~"&&!y(n,f);)f+=1;f>r&&t.push(...D(n.slice(r,f),e,s())),r=f}return t}function _({latex:n,display:i}){const[e,t]=A.useState(g);A.useEffect(()=>{if(e)return;let o=!0;return M().then(s=>{o&&t(()=>s)}),()=>{o=!1}},[e]);const r=A.useMemo(()=>{if(e)try{return e.renderToString(n.trim(),{displayMode:i,throwOnError:!1})}catch{return null}},[e,n,i]);return r===void 0?l.jsx(l.Fragment,{children:n}):r?l.jsx("span",{className:i?"katex-display":void 0,dangerouslySetInnerHTML:{__html:r}}):l.jsx(l.Fragment,{children:i?`$$${n}$$`:`$${n}$`})}function P(n,i){const e=U(n),t=[];return e.forEach((r,o)=>{const s=`latex-${o}`;if(r.type==="text"){const a=m(r.content,s,i);a.length===1?t.push(a[0]):a.length>1&&t.push(l.jsx(A.Fragment,{children:a},s));return}if(r.type==="display"){t.push(l.jsx(_,{latex:r.content,display:!0},s));return}t.push(l.jsx(_,{latex:r.content,display:!1},s))}),t.length===1?t[0]:l.jsx(l.Fragment,{children:t})}const R=({text:n,className:i="",highlight:e})=>{const t=A.useMemo(()=>P(n,e),[n,e]);return l.jsx("span",{className:i,children:t})},F=({title:n,className:i="",highlight:e})=>l.jsx(R,{text:n,className:i,highlight:e});export{F as L,R as a};
 
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/katex-wklAmtGL.css"])))=>i.map(i=>d[i]);
2
+ import{j as l,i as A,au as $}from"./index-CqLopXcE.js";let g=null,L=null;function M(){return L??(L=Promise.all([$(()=>import("./katex-DkKDou_j.js"),[]),$(()=>Promise.resolve({}),__vite__mapDeps([0]))]).then(([n])=>(g=n.default,g))),L}const O=new Set([",",";",":","!"," ","quad","qquad","enspace","thinspace"]),S={a:"á",e:"é",i:"í",o:"ó",u:"ú",y:"ý",A:"Á",E:"É",I:"Í",O:"Ó",U:"Ú",Y:"Ý"},w={a:"à",e:"è",i:"ì",o:"ò",u:"ù",A:"À",E:"È",I:"Ì",O:"Ò",U:"Ù"},b={a:"â",e:"ê",i:"î",o:"ô",u:"û",A:"Â",E:"Ê",I:"Î",O:"Ô",U:"Û"},N={a:"ä",e:"ë",i:"ï",o:"ö",u:"ü",y:"ÿ",A:"Ä",E:"Ë",I:"Ï",O:"Ö",U:"Ü",Y:"Ÿ"},k={"'":S,"`":w,"^":b,'"':N,"~":{n:"ñ",N:"Ñ"}},T={ss:"ß",ae:"æ",AE:"Æ",oe:"œ",OE:"Œ",o:"ø",O:"Ø",l:"ł",L:"Ł"};function I(n,i){var e;return((e=k[n])==null?void 0:e[i])??null}function v(n,i){const e=n.indexOf("$",i+1);if(e===-1||!/\d/.test(n[i+1]??""))return e;for(let t=e;t!==-1;t=n.indexOf("$",t+1)){if(/\s/.test(n[t-1]))return-1;if(!/\d/.test(n[t+1]??""))return t}return-1}function U(n){const i=[];let e=0,t="";const r=()=>{t&&(i.push({type:"text",content:t}),t="")};for(;e<n.length;){if(n[e]==="$"&&n[e+1]==="$"){r();const o=n.indexOf("$$",e+2);if(o===-1){t+=n.slice(e);break}i.push({type:"display",content:n.slice(e+2,o)}),e=o+2;continue}if(n[e]==="$"){const o=v(n,e);if(o===-1){t+="$",e+=1;continue}r(),i.push({type:"inline",content:n.slice(e+1,o)}),e=o+1;continue}t+=n[e],e+=1}return r(),i}function d(n,i){if(n[i]!=="{")return null;let e=0;for(let t=i;t<n.length;t+=1)if(n[t]==="{")e+=1;else if(n[t]==="}"&&(e-=1,e===0))return{content:n.slice(i+1,t),end:t+1};return null}function j(n,i){let e=i+1;if(e>=n.length)return{name:"",end:e};if(!/[a-zA-Z]/.test(n[e]))return{name:n[e],end:e+1};const t=e;for(;e<n.length&&/[a-zA-Z]/.test(n[e]);)e+=1;return{name:n.slice(t,e),end:e}}function z(n,i){const e=n[i];if(e!=="^"&&e!=="_"||i+1>=n.length)return null;if(n[i+1]==="{"){const t=d(n,i+1);return t?{end:t.end}:null}return/[A-Za-z0-9+\-=.]/.test(n[i+1])?{end:i+2}:null}function y(n,i){let e=i;if(n[e]==="\\"){const{name:o,end:s}=j(n,e);if(!o)return null;if(e=s,n[e]==="{"){const a=d(n,e);a&&(e=a.end)}}else if(/[A-Za-z0-9]/.test(n[e])){let o=e+1;for(;o<n.length&&/[A-Za-z0-9]/.test(n[o]);)o+=1;if(n[o]!=="^"&&n[o]!=="_")return null;e=o}else return null;const t=i;let r=0;for(;e<n.length;){const o=z(n,e);if(!o)break;r+=1,e=o.end}return r===0?null:{latex:n.slice(t,e),end:e}}function X(n){return Array.from(new Set((n||"").trim().split(/\s+/).filter(Boolean))).sort((i,e)=>e.length-i.length)}function D(n,i,e){const t=X(i);if(!t.length)return[n];const r=t.map(s=>s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")),o=new RegExp(`(${r.join("|")})`,"gi");return n.split(o).filter(Boolean).map((s,a)=>t.some(h=>h.toLocaleLowerCase()===s.toLocaleLowerCase())?l.jsx("mark",{children:s},`${e}-mark-${a}`):s)}function m(n,i,e){const t=[];let r=0,o=0;const s=()=>`${i}-${o++}`,a=(h,f)=>h==="strong"?l.jsx("strong",{children:f},s()):l.jsx("em",{children:f},s());for(;r<n.length;){if(n[r]==="\\"){const{name:u,end:C}=j(n,r);if(r=C,T[u]){t.push(T[u]);continue}if(u.length===1&&r<n.length&&/[A-Za-z]/.test(n[r])){const c=I(u,n[r]);if(c){t.push(c),r+=1;continue}}if(u==="c"){const c=d(n,r);if((c==null?void 0:c.content.length)===1){const p={c:"ç",C:"Ç"}[c.content];if(p){t.push(p),r=c.end;continue}}}if(u==="textbf"||u==="mathbf"){const c=d(n,r);if(c){r=c.end,t.push(a("strong",m(c.content,s(),e)));continue}}if(u==="emph"||u==="textit"||u==="textsl"||u==="texttt"){const c=d(n,r);if(c){r=c.end,t.push(a("em",m(c.content,s(),e)));continue}}if(u==="color"||u==="textcolor"){const c=d(n,r);if(c){r=c.end;const p=d(n,r);p&&(r=p.end,t.push(...m(p.content,s(),e)));continue}}if(O.has(u)){t.push(" ");continue}if(u==="~"){t.push(" ");continue}const E=d(n,r);if(E){r=E.end,t.push(...m(E.content,s(),e));continue}t.push(`\\${u}`);continue}if(n[r]==="~"){t.push(" "),r+=1;continue}const h=y(n,r);if(h){t.push(l.jsx(_,{latex:h.latex,display:!1},s())),r=h.end;continue}let f=r;for(;f<n.length&&n[f]!=="\\"&&n[f]!=="~"&&!y(n,f);)f+=1;f>r&&t.push(...D(n.slice(r,f),e,s())),r=f}return t}function _({latex:n,display:i}){const[e,t]=A.useState(g);A.useEffect(()=>{if(e)return;let o=!0;return M().then(s=>{o&&t(()=>s)}),()=>{o=!1}},[e]);const r=A.useMemo(()=>{if(e)try{return e.renderToString(n.trim(),{displayMode:i,throwOnError:!1})}catch{return null}},[e,n,i]);return r===void 0?l.jsx(l.Fragment,{children:n}):r?l.jsx("span",{className:i?"katex-display":void 0,dangerouslySetInnerHTML:{__html:r}}):l.jsx(l.Fragment,{children:i?`$$${n}$$`:`$${n}$`})}function P(n,i){const e=U(n),t=[];return e.forEach((r,o)=>{const s=`latex-${o}`;if(r.type==="text"){const a=m(r.content,s,i);a.length===1?t.push(a[0]):a.length>1&&t.push(l.jsx(A.Fragment,{children:a},s));return}if(r.type==="display"){t.push(l.jsx(_,{latex:r.content,display:!0},s));return}t.push(l.jsx(_,{latex:r.content,display:!1},s))}),t.length===1?t[0]:l.jsx(l.Fragment,{children:t})}const R=({text:n,className:i="",highlight:e})=>{const t=A.useMemo(()=>P(n,e),[n,e]);return l.jsx("span",{className:i,children:t})},F=({title:n,className:i="",highlight:e})=>l.jsx(R,{text:n,className:i,highlight:e});export{F as L,R as a};
assets/{LoadFailurePage-DvxhRUcs.js → LoadFailurePage-CbxBcR6o.js} RENAMED
@@ -1 +1 @@
1
- import{m as t,j as r}from"./index-2xE415-f.js";import{A as i,a as s}from"./alert-CMc00cqX.js";import a from"./NotFound-BLAjrkTN.js";function u(e,o){return e.some(t)?r.jsx(a,{}):e.some(Boolean)?r.jsx("div",{className:"page",children:r.jsx(i,{variant:"destructive",children:r.jsx(s,{children:o})})}):null}export{u as l};
 
1
+ import{m as t,j as r}from"./index-CqLopXcE.js";import{A as i,a as s}from"./alert-C8kkxn4G.js";import a from"./NotFound-Dm23aroU.js";function u(e,o){return e.some(t)?r.jsx(a,{}):e.some(Boolean)?r.jsx("div",{className:"page",children:r.jsx(i,{variant:"destructive",children:r.jsx(s,{children:o})})}):null}export{u as l};
assets/{MarkdownText-CDVRt1ok.js → MarkdownText-CZlaYENs.js} RENAMED
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/MathMarkdownText-CbZJ6yfJ.js","assets/index-2xE415-f.js","assets/index-CTRpgFfm.css","assets/index-CRH6N9tH.js","assets/index-CqH2_Dpk.js","assets/katex-DkKDou_j.js","assets/PaperPreviewLink-Dhou1ws3.js","assets/index-BHTJgSQg.js","assets/hover-card-CZZ0A1FG.js","assets/useMutation-BcnLcaMd.js","assets/katex-wklAmtGL.css"])))=>i.map(i=>d[i]);
2
- import{I as d,j as a,i as m,L as p,au as h}from"./index-2xE415-f.js";import{r as x,P as f}from"./PaperPreviewLink-Dhou1ws3.js";import{M as w}from"./index-CqH2_Dpk.js";import{r as k}from"./index-BHTJgSQg.js";function P(t){return(t??"").split(",").map(s=>s.trim().toLowerCase()).filter(Boolean)}const _=new Set(["paperswithcode.co","www.paperswithcode.co","localhost","127.0.0.1",...P(void 0)]),j=["/methods","/paper","/papers","/tasks","/benchmark","/conferences"];function I(t,s=window.location.origin){if(!t)return null;let r;if(t.startsWith("/"))r=t;else try{const e=new URL(t,s);if(!_.has(e.hostname))return null;r=`${e.pathname}${e.search}${e.hash}`}catch{return null}const n=r.split(/[?#]/,1)[0];return j.some(e=>n===e||n.startsWith(`${e}/`))?r:null}function M(t){const r=t.split(/[?#]/,1)[0].match(/^\/papers?\/([^/]+)$/);if(!r||r[1].includes("%"))return null;const n=r[1],e=/^\d{4}[.-]\d{4,5}(?:v\d+)?$/.test(n),c=/^[1-9]\d*$/.test(n);return!e&&!c?null:d(n)}function E(t){return/\$|\\\(|\\\[/.test(t)}const L=m.lazy(()=>h(()=>import("./MathMarkdownText-CbZJ6yfJ.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]))),u=({text:t,className:s="",rehypePlugins:r})=>a.jsx("div",{className:s,children:a.jsx(w,{remarkPlugins:[k,x],rehypePlugins:r,components:{a:({href:n,children:e,node:c,...i})=>{const o=I(n);if(o){const l=M(o);return l?a.jsx(f,{routeId:l,to:o,...i,children:e}):a.jsx(p,{to:o,...i,children:e})}return a.jsx("a",{href:n,target:"_blank",rel:"noopener noreferrer",...i,children:e})}},children:t})}),A=t=>E(t.text)?a.jsx(m.Suspense,{fallback:a.jsx(u,{...t}),children:a.jsx(L,{...t})}):a.jsx(u,{...t});export{A as M,u as a,I as r};
 
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/MathMarkdownText-BmLaP91f.js","assets/index-CqLopXcE.js","assets/index-Dc1xKVbU.css","assets/index-UzLPH3v0.js","assets/index-C601BfBQ.js","assets/katex-DkKDou_j.js","assets/PaperPreviewLink-BQBSQN0t.js","assets/index-s2hHM8kO.js","assets/hover-card-CcViKpG6.js","assets/useMutation-DBnvCG24.js","assets/katex-wklAmtGL.css"])))=>i.map(i=>d[i]);
2
+ import{I as d,j as a,i as m,L as p,au as h}from"./index-CqLopXcE.js";import{r as x,P as f}from"./PaperPreviewLink-BQBSQN0t.js";import{M as w}from"./index-C601BfBQ.js";import{r as k}from"./index-s2hHM8kO.js";function P(t){return(t??"").split(",").map(s=>s.trim().toLowerCase()).filter(Boolean)}const _=new Set(["paperswithcode.co","www.paperswithcode.co","localhost","127.0.0.1",...P(void 0)]),j=["/methods","/paper","/papers","/tasks","/benchmark","/conferences"];function I(t,s=window.location.origin){if(!t)return null;let r;if(t.startsWith("/"))r=t;else try{const e=new URL(t,s);if(!_.has(e.hostname))return null;r=`${e.pathname}${e.search}${e.hash}`}catch{return null}const n=r.split(/[?#]/,1)[0];return j.some(e=>n===e||n.startsWith(`${e}/`))?r:null}function M(t){const r=t.split(/[?#]/,1)[0].match(/^\/papers?\/([^/]+)$/);if(!r||r[1].includes("%"))return null;const n=r[1],e=/^\d{4}[.-]\d{4,5}(?:v\d+)?$/.test(n),c=/^[1-9]\d*$/.test(n);return!e&&!c?null:d(n)}function E(t){return/\$|\\\(|\\\[/.test(t)}const L=m.lazy(()=>h(()=>import("./MathMarkdownText-BmLaP91f.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]))),u=({text:t,className:s="",rehypePlugins:r})=>a.jsx("div",{className:s,children:a.jsx(w,{remarkPlugins:[k,x],rehypePlugins:r,components:{a:({href:n,children:e,node:c,...i})=>{const o=I(n);if(o){const l=M(o);return l?a.jsx(f,{routeId:l,to:o,...i,children:e}):a.jsx(p,{to:o,...i,children:e})}return a.jsx("a",{href:n,target:"_blank",rel:"noopener noreferrer",...i,children:e})}},children:t})}),A=t=>E(t.text)?a.jsx(m.Suspense,{fallback:a.jsx(u,{...t}),children:a.jsx(L,{...t})}):a.jsx(u,{...t});export{A as M,u as a,I as r};
assets/MathMarkdownText-BmLaP91f.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{j as o}from"./index-CqLopXcE.js";/* empty css */import{a as t}from"./MarkdownText-CZlaYENs.js";import{r as m}from"./index-UzLPH3v0.js";import"./PaperPreviewLink-BQBSQN0t.js";import"./index-C601BfBQ.js";import"./index-s2hHM8kO.js";import"./hover-card-CcViKpG6.js";import"./useMutation-DBnvCG24.js";import"./katex-DkKDou_j.js";const j=r=>o.jsx(t,{...r,rehypePlugins:[m]});export{j as default};
assets/MathMarkdownText-CbZJ6yfJ.js DELETED
@@ -1 +0,0 @@
1
- import{j as o}from"./index-2xE415-f.js";/* empty css */import{a as t}from"./MarkdownText-CDVRt1ok.js";import{r as m}from"./index-CRH6N9tH.js";import"./PaperPreviewLink-Dhou1ws3.js";import"./index-CqH2_Dpk.js";import"./index-BHTJgSQg.js";import"./hover-card-CZZ0A1FG.js";import"./useMutation-BcnLcaMd.js";import"./katex-DkKDou_j.js";const j=r=>o.jsx(t,{...r,rehypePlugins:[m]});export{j as default};
 
 
assets/{McpShowcase-DSFseGGp.js → McpShowcase-BIaXtPrM.js} RENAMED
@@ -1 +1 @@
1
- import{j as e,L as t}from"./index-2xE415-f.js";import{A as a}from"./AgentLogos-DmfyY5wp.js";function n({className:s="",canNavigate:r}){return e.jsxs("div",{className:`sidebar-section sidebar-section-tools ${s}`.trim(),children:[e.jsx("div",{className:"sidebar-label",children:"Use PwC with your agent"}),e.jsxs(t,{to:"/mcp",className:"action-btn sidebar-tools-mcp",title:"Connect Claude, Codex, Cursor, or OpenCode to the PwC MCP server",onClick:o=>{r&&!r()&&o.preventDefault()},children:["MCP server",e.jsx(a,{})]}),e.jsxs("p",{className:"sidebar-tools-copy",children:["Search papers, benchmarks, and leaderboards from any MCP client, or from the terminal with the"," ",e.jsxs("a",{href:"https://github.com/huggingface/pwc-cli",target:"_blank",rel:"noreferrer",children:[e.jsx("code",{children:"pwc"})," CLI"]}),"."]})]})}export{n as M};
 
1
+ import{j as e,L as t}from"./index-CqLopXcE.js";import{A as a}from"./AgentLogos-BGglpy29.js";function n({className:s="",canNavigate:r}){return e.jsxs("div",{className:`sidebar-section sidebar-section-tools ${s}`.trim(),children:[e.jsx("div",{className:"sidebar-label",children:"Use PwC with your agent"}),e.jsxs(t,{to:"/mcp",className:"action-btn sidebar-tools-mcp",title:"Connect Claude, Codex, Cursor, or OpenCode to the PwC MCP server",onClick:o=>{r&&!r()&&o.preventDefault()},children:["MCP server",e.jsx(a,{})]}),e.jsxs("p",{className:"sidebar-tools-copy",children:["Search papers, benchmarks, and leaderboards from any MCP client, or from the terminal with the"," ",e.jsxs("a",{href:"https://github.com/huggingface/pwc-cli",target:"_blank",rel:"noreferrer",children:[e.jsx("code",{children:"pwc"})," CLI"]}),"."]})]})}export{n as M};
assets/{McpView-DlbC-UXe.js → McpView-CbQ0ihMp.js} RENAMED
@@ -1 +1 @@
1
- import{as as b,b as x,ab as m,j as e,C as j}from"./index-2xE415-f.js";import{u as g,f}from"./useDocumentTitle-_d-BLODt.js";import{G as y}from"./github-CknlAJTS.js";import{A as v}from"./arrow-up-right-D4ZJIEeB.js";import{E as o}from"./external-link-CCL892xT.js";import{C as w}from"./copy-COezQGP9.js";const h="https://paperswithcode.co/mcp",k="https://staging.paperswithcode.co/mcp";function u(s){const a=typeof window>"u"?void 0:window.location;return a?a.hostname==="staging.paperswithcode.co"?k:a.hostname==="paperswithcode.co"||a.hostname==="www.paperswithcode.co"?h:`${a.origin.replace(/\/$/,"")}/mcp`:h}function C(s){if(!s||typeof s!="object"||s.status!=="ok"||s.service!=="pwc-mcp"||typeof s.version!="string"||typeof s.protocol!="string")throw new Error("MCP health response is invalid");return s}async function N(s){const a=new AbortController,c=()=>a.abort();s==null||s.addEventListener("abort",c,{once:!0});const n=window.setTimeout(c,5e3);try{const t=await fetch(`${u()}/health`,{headers:{Accept:"application/json"},signal:a.signal,credentials:"omit"});if(!t.ok)throw new Error("MCP service is unavailable");return C(await t.json())}finally{window.clearTimeout(n),s==null||s.removeEventListener("abort",c)}}const P=()=>b({queryKey:["mcp","health"],queryFn:({signal:s})=>N(s),retry:!1,staleTime:3e4,refetchInterval:6e4}),_=[["search_papers","Search by topic, title, author, or arXiv ID."],["list_papers","Filter and order papers by taxonomy, venue, date, or organization."],["get_paper_info","Read canonical metadata, authors, abstract, links, and resources."],["read_paper","Read stored paper Markdown with safe continuation for long papers."],["list_recent_papers","Browse the most recently indexed research."],["get_related_papers","Find related work already indexed in the catalogue."],["list_trending_papers","Discover papers with recent repository momentum."],["get_paper_evaluations","Inspect benchmark results reported by one paper."],["get_paper_lineage","Follow explicit predecessor and successor relationships."],["list_tasks","Search tasks and retrieve stable slugs for exact lookup."],["get_task","Inspect a research task and its benchmark coverage."],["list_methods","Search methods and retrieve stable slugs for exact lookup."],["get_method","Inspect a method, its source paper, and catalogue metadata."],["list_conferences","Browse conferences with imported papers."],["get_conference","Inspect one exact conference edition."],["list_organizations","Browse research organizations."],["get_organization","Inspect one exact research organization."],["list_frameworks","Browse frameworks by domain, category, or platform."],["get_framework","Inspect one exact research framework."],["list_benchmarks","Browse and filter benchmark leaderboards."],["get_benchmark","Read one benchmark, metrics, datasets, and leading results."]],S=["pwc://papers/{paper}","pwc://papers/{paper}/markdown","pwc://tasks/{task}","pwc://benchmarks/{benchmark}"],T=["Find recent papers on test-time compute and summarize the main approaches.","Compare the methods and reported benchmarks in these three arXiv papers.","What are the leading benchmarks for text-to-video generation?","Trace the predecessor and successor papers for Mamba."],d=[{key:"chatgpt",label:"ChatGPT",summary:"In workspace developer settings, add a custom MCP app and paste the server URL. Availability and admin approval vary by plan."},{key:"claude",label:"Claude",summary:"Open Settings → Connectors → Add custom connector, paste the URL, then enable Papers With Code from Search and tools."},{key:"claude-code",label:"Claude Code",summary:"Add the anonymous Streamable HTTP server from a terminal.",code:s=>`claude mcp add --transport http paperswithcode ${s}`},{key:"cursor",label:"Cursor",summary:"Add this entry to your project or user MCP configuration.",code:s=>JSON.stringify({mcpServers:{paperswithcode:{url:s}}},null,2)},{key:"vscode",label:"VS Code",summary:"Add this Streamable HTTP server to .vscode/mcp.json.",code:s=>JSON.stringify({servers:{paperswithcode:{type:"http",url:s}}},null,2)},{key:"generic",label:"Generic",summary:"Configure an anonymous, stateless Streamable HTTP server using the URL below. No API key or OAuth flow is required."}],l=({value:s,label:a})=>{const[c,n]=m.useState(!1),t=async()=>{var i;(i=navigator.clipboard)!=null&&i.writeText&&(await navigator.clipboard.writeText(s),n(!0),window.setTimeout(()=>n(!1),1500))};return e.jsxs("button",{className:"action-btn mcp-copy",type:"button",onClick:()=>void t(),"aria-label":a,children:[c?e.jsx(j,{size:16,"aria-hidden":!0}):e.jsx(w,{size:16,"aria-hidden":!0}),c?"Copied":"Copy"]})},O=()=>{var i;const s=u(),a=x(P()),[c,n]=m.useState("chatgpt"),t=d.find(r=>r.key===c)??d[0];return g(f("MCP Server")),e.jsxs("article",{className:"page mcp-page",children:[e.jsxs("a",{className:"mcp-repo-banner",href:"https://github.com/huggingface/pwc-cli",target:"_blank",rel:"noreferrer",children:[e.jsx(y,{size:20,"aria-hidden":!0}),e.jsxs("span",{children:[e.jsx("strong",{children:"huggingface/pwc-cli"}),e.jsxs("span",{children:["Open-source MCP server and ",e.jsx("code",{children:"pwc"})," command-line client"]})]}),e.jsxs("span",{className:"mcp-repo-cta",children:["View on GitHub ",e.jsx(v,{size:14,"aria-hidden":!0})]})]}),e.jsxs("header",{className:"mcp-hero",children:[e.jsxs("div",{children:[e.jsx("p",{className:"sidebar-label mcp-kicker",children:"Model Context Protocol"}),e.jsx("h1",{className:"feed-title",children:"Use Papers With Code in your AI assistant"}),e.jsx("p",{className:"mcp-lede",children:"Search research, inspect methods and benchmarks, and read complete papers through one anonymous, read-only MCP connection."}),e.jsxs("div",{className:"mcp-status","aria-live":"polite",children:[e.jsx("span",{className:a.isSuccess?"is-up":"is-unknown","aria-hidden":!0}),a.isSuccess?"Operational":"Status unavailable",a.data?` · v${a.data.version}`:""]})]}),e.jsxs("div",{className:"mcp-endpoint-card",children:[e.jsx("span",{children:"Remote MCP URL"}),e.jsx("code",{children:s}),e.jsx(l,{value:s,label:"Copy MCP server URL"})]})]}),e.jsxs("section",{className:"mcp-section","aria-labelledby":"mcp-connect",children:[e.jsxs("div",{className:"mcp-section-heading",children:[e.jsx("p",{className:"sidebar-label",children:"Connect"}),e.jsx("h2",{id:"mcp-connect",children:"One URL, your preferred client"}),e.jsx("span",{children:"Setup matrix reviewed September 13, 2026; staging qualification pending."})]}),e.jsx("div",{className:"mcp-client-tabs",role:"tablist","aria-label":"MCP client setup",children:d.map(r=>e.jsx("button",{type:"button",role:"tab","aria-selected":c===r.key,onClick:()=>n(r.key),children:r.label},r.key))}),e.jsxs("div",{className:"mcp-setup",role:"tabpanel",children:[e.jsx("p",{children:t.summary}),t.code?e.jsxs("div",{className:"mcp-code-row",children:[e.jsx("pre",{children:e.jsx("code",{children:t.code(s)})}),e.jsx(l,{value:t.code(s),label:`Copy ${t.label} setup`})]}):e.jsxs("div",{className:"mcp-code-row",children:[e.jsx("pre",{children:e.jsx("code",{children:s})}),e.jsx(l,{value:s,label:`Copy ${t.label} endpoint`})]})]})]}),e.jsxs("section",{className:"mcp-section","aria-labelledby":"mcp-capabilities",children:[e.jsxs("div",{className:"mcp-section-heading",children:[e.jsx("p",{className:"sidebar-label",children:"Capabilities"}),e.jsx("h2",{id:"mcp-capabilities",children:"Research context, structured for assistants"})]}),e.jsx("div",{className:"mcp-capability-grid",children:[["Discover","Search recent and established work with catalogue filters."],["Read","Continue through long stored papers without presenting a partial document as complete."],["Connect","Explore related work, paper lineage, tasks, and methods."],["Compare","Inspect benchmarks, datasets, metrics, and reported evaluations."]].map(([r,p])=>e.jsxs("div",{children:[e.jsx("h3",{children:r}),e.jsx("p",{children:p})]},r))})]}),e.jsxs("section",{className:"mcp-section","aria-labelledby":"mcp-tools",children:[e.jsxs("div",{className:"mcp-section-heading",children:[e.jsx("p",{className:"sidebar-label",children:"Catalogue"}),e.jsx("h2",{id:"mcp-tools",children:"Twenty-one focused, read-only tools"})]}),e.jsx("div",{className:"mcp-tool-grid",children:_.map(([r,p])=>e.jsxs("div",{className:"mcp-tool",children:[e.jsx("code",{children:r}),e.jsx("p",{children:p})]},r))}),e.jsx("h3",{className:"mcp-subheading",children:"Resource templates"}),e.jsx("div",{className:"mcp-resource-list",children:S.map(r=>e.jsx("code",{children:r},r))})]}),e.jsxs("section",{className:"mcp-section","aria-labelledby":"mcp-prompts",children:[e.jsxs("div",{className:"mcp-section-heading",children:[e.jsx("p",{className:"sidebar-label",children:"Try asking"}),e.jsx("h2",{id:"mcp-prompts",children:"Prompts that start useful research"})]}),e.jsx("div",{className:"mcp-prompt-list",children:T.map(r=>e.jsxs("div",{children:[e.jsx("p",{children:r}),e.jsx(l,{value:r,label:"Copy example prompt"})]},r))})]}),e.jsxs("section",{className:"mcp-section mcp-notes","aria-labelledby":"mcp-limits",children:[e.jsxs("div",{children:[e.jsx("p",{className:"sidebar-label mcp-kicker",children:"Limits & privacy"}),e.jsx("h2",{id:"mcp-limits",children:"Public by design"}),e.jsx("p",{children:"No account, API key, or write access. Fair-use limits are 60 total requests per minute, 10 semantic searches per minute, four concurrent requests per client, and 25 list results per call."}),e.jsx("p",{children:"MCP telemetry retains tool name, status, latency, response size, protocol, and server version—not prompts, paper IDs, cursors, resource URIs, raw IPs, authorization values, or bodies. Catalogue infrastructure has its own operational logging policy."})]}),e.jsxs("div",{children:[e.jsx("p",{className:"sidebar-label mcp-kicker",children:"Protocol & troubleshooting"}),e.jsx("h2",{children:"Streamable HTTP"}),e.jsxs("p",{children:["Primary protocol: ",((i=a.data)==null?void 0:i.protocol)??"verified during connection setup",". If setup fails, confirm your client supports remote Streamable HTTP, that custom servers are enabled by your workspace administrator, and that you pasted the URL exactly."]}),e.jsxs("nav",{className:"mcp-links","aria-label":"MCP documentation links",children:[e.jsxs("a",{href:"https://github.com/huggingface/pwc-cli",target:"_blank",rel:"noreferrer",children:["CLI repository ",e.jsx(o,{size:13})]}),e.jsxs("a",{href:"https://modelcontextprotocol.io/docs/2026-07-28/learn/server-concepts",target:"_blank",rel:"noreferrer",children:["MCP specification ",e.jsx(o,{size:13})]}),e.jsxs("a",{href:"/docs",target:"_blank",rel:"noreferrer",children:["Public API ",e.jsx(o,{size:13})]}),e.jsxs("a",{href:"/mcp/schema",target:"_blank",rel:"noreferrer",children:["MCP tool schema ",e.jsx(o,{size:13})]}),e.jsxs("a",{href:"/llms.txt",target:"_blank",rel:"noreferrer",children:["llms.txt ",e.jsx(o,{size:13})]})]})]})]})]})};export{O as default};
 
1
+ import{as as b,b as x,ab as m,j as e,C as j}from"./index-CqLopXcE.js";import{u as g,f}from"./useDocumentTitle-xBtc80OB.js";import{G as y}from"./github-rJ81k3MW.js";import{A as v}from"./arrow-up-right-Cj_gCzhz.js";import{E as o}from"./external-link-CTPTD9wF.js";import{C as w}from"./copy-CuOS3fOv.js";const h="https://paperswithcode.co/mcp",k="https://staging.paperswithcode.co/mcp";function u(s){const a=typeof window>"u"?void 0:window.location;return a?a.hostname==="staging.paperswithcode.co"?k:a.hostname==="paperswithcode.co"||a.hostname==="www.paperswithcode.co"?h:`${a.origin.replace(/\/$/,"")}/mcp`:h}function C(s){if(!s||typeof s!="object"||s.status!=="ok"||s.service!=="pwc-mcp"||typeof s.version!="string"||typeof s.protocol!="string")throw new Error("MCP health response is invalid");return s}async function N(s){const a=new AbortController,c=()=>a.abort();s==null||s.addEventListener("abort",c,{once:!0});const n=window.setTimeout(c,5e3);try{const t=await fetch(`${u()}/health`,{headers:{Accept:"application/json"},signal:a.signal,credentials:"omit"});if(!t.ok)throw new Error("MCP service is unavailable");return C(await t.json())}finally{window.clearTimeout(n),s==null||s.removeEventListener("abort",c)}}const P=()=>b({queryKey:["mcp","health"],queryFn:({signal:s})=>N(s),retry:!1,staleTime:3e4,refetchInterval:6e4}),_=[["search_papers","Search by topic, title, author, or arXiv ID."],["list_papers","Filter and order papers by taxonomy, venue, date, or organization."],["get_paper_info","Read canonical metadata, authors, abstract, links, and resources."],["read_paper","Read stored paper Markdown with safe continuation for long papers."],["list_recent_papers","Browse the most recently indexed research."],["get_related_papers","Find related work already indexed in the catalogue."],["list_trending_papers","Discover papers with recent repository momentum."],["get_paper_evaluations","Inspect benchmark results reported by one paper."],["get_paper_lineage","Follow explicit predecessor and successor relationships."],["list_tasks","Search tasks and retrieve stable slugs for exact lookup."],["get_task","Inspect a research task and its benchmark coverage."],["list_methods","Search methods and retrieve stable slugs for exact lookup."],["get_method","Inspect a method, its source paper, and catalogue metadata."],["list_conferences","Browse conferences with imported papers."],["get_conference","Inspect one exact conference edition."],["list_organizations","Browse research organizations."],["get_organization","Inspect one exact research organization."],["list_frameworks","Browse frameworks by domain, category, or platform."],["get_framework","Inspect one exact research framework."],["list_benchmarks","Browse and filter benchmark leaderboards."],["get_benchmark","Read one benchmark, metrics, datasets, and leading results."]],S=["pwc://papers/{paper}","pwc://papers/{paper}/markdown","pwc://tasks/{task}","pwc://benchmarks/{benchmark}"],T=["Find recent papers on test-time compute and summarize the main approaches.","Compare the methods and reported benchmarks in these three arXiv papers.","What are the leading benchmarks for text-to-video generation?","Trace the predecessor and successor papers for Mamba."],d=[{key:"chatgpt",label:"ChatGPT",summary:"In workspace developer settings, add a custom MCP app and paste the server URL. Availability and admin approval vary by plan."},{key:"claude",label:"Claude",summary:"Open Settings → Connectors → Add custom connector, paste the URL, then enable Papers With Code from Search and tools."},{key:"claude-code",label:"Claude Code",summary:"Add the anonymous Streamable HTTP server from a terminal.",code:s=>`claude mcp add --transport http paperswithcode ${s}`},{key:"cursor",label:"Cursor",summary:"Add this entry to your project or user MCP configuration.",code:s=>JSON.stringify({mcpServers:{paperswithcode:{url:s}}},null,2)},{key:"vscode",label:"VS Code",summary:"Add this Streamable HTTP server to .vscode/mcp.json.",code:s=>JSON.stringify({servers:{paperswithcode:{type:"http",url:s}}},null,2)},{key:"generic",label:"Generic",summary:"Configure an anonymous, stateless Streamable HTTP server using the URL below. No API key or OAuth flow is required."}],l=({value:s,label:a})=>{const[c,n]=m.useState(!1),t=async()=>{var i;(i=navigator.clipboard)!=null&&i.writeText&&(await navigator.clipboard.writeText(s),n(!0),window.setTimeout(()=>n(!1),1500))};return e.jsxs("button",{className:"action-btn mcp-copy",type:"button",onClick:()=>void t(),"aria-label":a,children:[c?e.jsx(j,{size:16,"aria-hidden":!0}):e.jsx(w,{size:16,"aria-hidden":!0}),c?"Copied":"Copy"]})},O=()=>{var i;const s=u(),a=x(P()),[c,n]=m.useState("chatgpt"),t=d.find(r=>r.key===c)??d[0];return g(f("MCP Server")),e.jsxs("article",{className:"page mcp-page",children:[e.jsxs("a",{className:"mcp-repo-banner",href:"https://github.com/huggingface/pwc-cli",target:"_blank",rel:"noreferrer",children:[e.jsx(y,{size:20,"aria-hidden":!0}),e.jsxs("span",{children:[e.jsx("strong",{children:"huggingface/pwc-cli"}),e.jsxs("span",{children:["Open-source MCP server and ",e.jsx("code",{children:"pwc"})," command-line client"]})]}),e.jsxs("span",{className:"mcp-repo-cta",children:["View on GitHub ",e.jsx(v,{size:14,"aria-hidden":!0})]})]}),e.jsxs("header",{className:"mcp-hero",children:[e.jsxs("div",{children:[e.jsx("p",{className:"sidebar-label mcp-kicker",children:"Model Context Protocol"}),e.jsx("h1",{className:"feed-title",children:"Use Papers With Code in your AI assistant"}),e.jsx("p",{className:"mcp-lede",children:"Search research, inspect methods and benchmarks, and read complete papers through one anonymous, read-only MCP connection."}),e.jsxs("div",{className:"mcp-status","aria-live":"polite",children:[e.jsx("span",{className:a.isSuccess?"is-up":"is-unknown","aria-hidden":!0}),a.isSuccess?"Operational":"Status unavailable",a.data?` · v${a.data.version}`:""]})]}),e.jsxs("div",{className:"mcp-endpoint-card",children:[e.jsx("span",{children:"Remote MCP URL"}),e.jsx("code",{children:s}),e.jsx(l,{value:s,label:"Copy MCP server URL"})]})]}),e.jsxs("section",{className:"mcp-section","aria-labelledby":"mcp-connect",children:[e.jsxs("div",{className:"mcp-section-heading",children:[e.jsx("p",{className:"sidebar-label",children:"Connect"}),e.jsx("h2",{id:"mcp-connect",children:"One URL, your preferred client"}),e.jsx("span",{children:"Setup matrix reviewed September 13, 2026; staging qualification pending."})]}),e.jsx("div",{className:"mcp-client-tabs",role:"tablist","aria-label":"MCP client setup",children:d.map(r=>e.jsx("button",{type:"button",role:"tab","aria-selected":c===r.key,onClick:()=>n(r.key),children:r.label},r.key))}),e.jsxs("div",{className:"mcp-setup",role:"tabpanel",children:[e.jsx("p",{children:t.summary}),t.code?e.jsxs("div",{className:"mcp-code-row",children:[e.jsx("pre",{children:e.jsx("code",{children:t.code(s)})}),e.jsx(l,{value:t.code(s),label:`Copy ${t.label} setup`})]}):e.jsxs("div",{className:"mcp-code-row",children:[e.jsx("pre",{children:e.jsx("code",{children:s})}),e.jsx(l,{value:s,label:`Copy ${t.label} endpoint`})]})]})]}),e.jsxs("section",{className:"mcp-section","aria-labelledby":"mcp-capabilities",children:[e.jsxs("div",{className:"mcp-section-heading",children:[e.jsx("p",{className:"sidebar-label",children:"Capabilities"}),e.jsx("h2",{id:"mcp-capabilities",children:"Research context, structured for assistants"})]}),e.jsx("div",{className:"mcp-capability-grid",children:[["Discover","Search recent and established work with catalogue filters."],["Read","Continue through long stored papers without presenting a partial document as complete."],["Connect","Explore related work, paper lineage, tasks, and methods."],["Compare","Inspect benchmarks, datasets, metrics, and reported evaluations."]].map(([r,p])=>e.jsxs("div",{children:[e.jsx("h3",{children:r}),e.jsx("p",{children:p})]},r))})]}),e.jsxs("section",{className:"mcp-section","aria-labelledby":"mcp-tools",children:[e.jsxs("div",{className:"mcp-section-heading",children:[e.jsx("p",{className:"sidebar-label",children:"Catalogue"}),e.jsx("h2",{id:"mcp-tools",children:"Twenty-one focused, read-only tools"})]}),e.jsx("div",{className:"mcp-tool-grid",children:_.map(([r,p])=>e.jsxs("div",{className:"mcp-tool",children:[e.jsx("code",{children:r}),e.jsx("p",{children:p})]},r))}),e.jsx("h3",{className:"mcp-subheading",children:"Resource templates"}),e.jsx("div",{className:"mcp-resource-list",children:S.map(r=>e.jsx("code",{children:r},r))})]}),e.jsxs("section",{className:"mcp-section","aria-labelledby":"mcp-prompts",children:[e.jsxs("div",{className:"mcp-section-heading",children:[e.jsx("p",{className:"sidebar-label",children:"Try asking"}),e.jsx("h2",{id:"mcp-prompts",children:"Prompts that start useful research"})]}),e.jsx("div",{className:"mcp-prompt-list",children:T.map(r=>e.jsxs("div",{children:[e.jsx("p",{children:r}),e.jsx(l,{value:r,label:"Copy example prompt"})]},r))})]}),e.jsxs("section",{className:"mcp-section mcp-notes","aria-labelledby":"mcp-limits",children:[e.jsxs("div",{children:[e.jsx("p",{className:"sidebar-label mcp-kicker",children:"Limits & privacy"}),e.jsx("h2",{id:"mcp-limits",children:"Public by design"}),e.jsx("p",{children:"No account, API key, or write access. Fair-use limits are 60 total requests per minute, 10 semantic searches per minute, four concurrent requests per client, and 25 list results per call."}),e.jsx("p",{children:"MCP telemetry retains tool name, status, latency, response size, protocol, and server version—not prompts, paper IDs, cursors, resource URIs, raw IPs, authorization values, or bodies. Catalogue infrastructure has its own operational logging policy."})]}),e.jsxs("div",{children:[e.jsx("p",{className:"sidebar-label mcp-kicker",children:"Protocol & troubleshooting"}),e.jsx("h2",{children:"Streamable HTTP"}),e.jsxs("p",{children:["Primary protocol: ",((i=a.data)==null?void 0:i.protocol)??"verified during connection setup",". If setup fails, confirm your client supports remote Streamable HTTP, that custom servers are enabled by your workspace administrator, and that you pasted the URL exactly."]}),e.jsxs("nav",{className:"mcp-links","aria-label":"MCP documentation links",children:[e.jsxs("a",{href:"https://github.com/huggingface/pwc-cli",target:"_blank",rel:"noreferrer",children:["CLI repository ",e.jsx(o,{size:13})]}),e.jsxs("a",{href:"https://modelcontextprotocol.io/docs/2026-07-28/learn/server-concepts",target:"_blank",rel:"noreferrer",children:["MCP specification ",e.jsx(o,{size:13})]}),e.jsxs("a",{href:"/docs",target:"_blank",rel:"noreferrer",children:["Public API ",e.jsx(o,{size:13})]}),e.jsxs("a",{href:"/mcp/schema",target:"_blank",rel:"noreferrer",children:["MCP tool schema ",e.jsx(o,{size:13})]}),e.jsxs("a",{href:"/llms.txt",target:"_blank",rel:"noreferrer",children:["llms.txt ",e.jsx(o,{size:13})]})]})]})]})]})};export{O as default};
assets/{MethodDetailView-BwnJP0nB.js → MethodDetailView-DQWrmGHv.js} RENAMED
@@ -1 +1 @@
1
- import{j as e,i as D,u as P,b as k,v,B,w as $,L as _}from"./index-2xE415-f.js";import{R as H}from"./ResearchFollowButton-ktN3oGoK.js";import{M as R}from"./SotaBadges-Cy5KKcKe.js";import{b as V,u as Q,c as G,P as O}from"./usePapers-Df-AyQGj.js";import{r as U,M as z}from"./MarkdownText-CDVRt1ok.js";import{s as W}from"./slug-BpH-Nkvz.js";import{t as K}from"./transform-krmE0Oxv.js";import{S as b}from"./skeleton-7Kak9gS9.js";import{s as Z}from"./safeExternalHref-CkBrsh84.js";import q from"./NotFound-BLAjrkTN.js";import{l as X}from"./LoadFailurePage-DvxhRUcs.js";import{u as Y}from"./useDocumentTitle-_d-BLODt.js";import{e as J}from"./pageTitles-CFPKZULe.js";import"./researchTopic-elGDd7wA.js";import"./useMutation-BcnLcaMd.js";import"./plus-C20t97Ow.js";import"./colors-BkWRhvFI.js";import"./PaperCard-Do-fUKOE.js";import"./AuthorAvatar-D53WcphF.js";import"./Icon-DQoMmS2z.js";import"./LatexTitle-CIj5wiaM.js";import"./popover-qWW92hSh.js";import"./useIntersectionObserver-BjZh7B9X.js";import"./useInfiniteQuery-Cvn4-XUc.js";import"./PaperPreviewLink-Dhou1ws3.js";import"./index-CqH2_Dpk.js";import"./index-BHTJgSQg.js";import"./hover-card-CZZ0A1FG.js";import"./alert-CMc00cqX.js";const t={pink:"#F8D7D9",pinkS:"#D9B0B3",yellow:"#FBEFC2",yellowS:"#C9B97D",orange:"#F8D7B3",orangeS:"#C99466",blue:"#CDE2EE",blueS:"#7FA4BA",purple:"#D4D2EA",purpleS:"#8E8AC0",green:"#CCE2C5",greenS:"#7DA475",ink:"#1A1814",faint:"#8E8678"},n=({x:s,y:r,w:l,h:d,fill:o,stroke:p,label:h,fontSize:c=10})=>e.jsxs("g",{children:[e.jsx("rect",{x:s,y:r,width:l,height:d,rx:"3",ry:"3",fill:o,stroke:p,strokeWidth:"1"}),e.jsx("text",{x:s+l/2,y:r+d/2,fontSize:c,fontFamily:"var(--sans)",fill:t.ink,textAnchor:"middle",dominantBaseline:"middle",children:h})]}),ee=()=>e.jsxs("svg",{viewBox:"0 0 360 420",width:"100%",height:"100%",style:{display:"block"},children:[e.jsx("text",{x:"180",y:"20",fontSize:"11",fontFamily:"var(--serif)",fontStyle:"italic",fill:t.faint,textAnchor:"middle",children:"Scaled Dot-Product Attention"}),e.jsx(n,{x:140,y:40,w:80,h:26,fill:t.yellow,stroke:t.yellowS,label:"MatMul",fontSize:11}),e.jsx("path",{d:"M180 66 L180 80",stroke:t.ink}),e.jsx(n,{x:140,y:80,w:80,h:26,fill:t.green,stroke:t.greenS,label:"SoftMax",fontSize:11}),e.jsx("path",{d:"M180 106 L180 120",stroke:t.ink}),e.jsx(n,{x:140,y:120,w:80,h:26,fill:t.purple,stroke:t.purpleS,label:"Mask (opt.)",fontSize:11}),e.jsx("path",{d:"M180 146 L180 160",stroke:t.ink}),e.jsx(n,{x:140,y:160,w:80,h:26,fill:t.blue,stroke:t.blueS,label:"Scale ÷√dₖ",fontSize:11}),e.jsx("path",{d:"M180 186 L180 200",stroke:t.ink}),e.jsx(n,{x:140,y:200,w:80,h:26,fill:t.yellow,stroke:t.yellowS,label:"MatMul",fontSize:11}),e.jsx("path",{d:"M156 226 L120 270",stroke:t.ink}),e.jsx("path",{d:"M180 226 L180 270",stroke:t.ink}),e.jsx("path",{d:"M204 226 L240 270",stroke:t.ink}),e.jsx(n,{x:100,y:270,w:40,h:24,fill:t.pink,stroke:t.pinkS,label:"Q",fontSize:13}),e.jsx(n,{x:160,y:270,w:40,h:24,fill:t.pink,stroke:t.pinkS,label:"K",fontSize:13}),e.jsx(n,{x:220,y:270,w:40,h:24,fill:t.pink,stroke:t.pinkS,label:"V",fontSize:13}),e.jsxs("text",{x:"180",y:"330",fontSize:"14",fontFamily:"var(--serif)",fontStyle:"italic",fill:t.ink,textAnchor:"middle",children:["softmax(QK",e.jsx("tspan",{fontSize:"9",baselineShift:"super",children:"⊤"})," / √d) V"]})]}),te=()=>e.jsxs("svg",{viewBox:"0 0 360 420",width:"100%",height:"100%",style:{display:"block"},children:[e.jsx("text",{x:"180",y:"20",fontSize:"11",fontFamily:"var(--serif)",fontStyle:"italic",fill:t.faint,textAnchor:"middle",children:"Contrastive learning"}),e.jsx(n,{x:120,y:40,w:120,h:26,fill:t.blue,stroke:t.blueS,label:"Input x",fontSize:11}),e.jsx("path",{d:"M180 66 V76 M90 76 H270 M90 76 V88 M270 76 V88",stroke:t.ink}),e.jsx(n,{x:35,y:88,w:110,h:26,fill:t.yellow,stroke:t.yellowS,label:"Augment t₁",fontSize:11}),e.jsx(n,{x:215,y:88,w:110,h:26,fill:t.yellow,stroke:t.yellowS,label:"Augment t₂",fontSize:11}),e.jsx("path",{d:"M90 114 V138 M270 114 V138",stroke:t.ink}),e.jsx(n,{x:35,y:138,w:110,h:26,fill:t.orange,stroke:t.orangeS,label:"Encoder f",fontSize:11}),e.jsx(n,{x:215,y:138,w:110,h:26,fill:t.orange,stroke:t.orangeS,label:"Encoder f",fontSize:11}),e.jsx("text",{x:"180",y:"155",fontSize:"9",fontFamily:"var(--serif)",fontStyle:"italic",fill:t.faint,textAnchor:"middle",children:"shared weights"}),e.jsx("path",{d:"M90 164 V188 M270 164 V188",stroke:t.ink}),e.jsx(n,{x:35,y:188,w:110,h:26,fill:t.purple,stroke:t.purpleS,label:"Projection g",fontSize:11}),e.jsx(n,{x:215,y:188,w:110,h:26,fill:t.purple,stroke:t.purpleS,label:"Projection g",fontSize:11}),e.jsx("path",{d:"M90 214 V238 M270 214 V238",stroke:t.ink}),e.jsx(n,{x:35,y:238,w:110,h:26,fill:t.pink,stroke:t.pinkS,label:"z₁",fontSize:13}),e.jsx(n,{x:215,y:238,w:110,h:26,fill:t.pink,stroke:t.pinkS,label:"z₂",fontSize:13}),e.jsx("path",{d:"M145 251 H215",stroke:t.greenS,strokeWidth:"1.5",strokeDasharray:"4 3"}),e.jsx("text",{x:"180",y:"244",fontSize:"9",fontFamily:"var(--sans)",fill:t.greenS,textAnchor:"middle",children:"attract"}),e.jsx("text",{x:"180",y:"318",fontSize:"12",fontFamily:"var(--serif)",fontStyle:"italic",fill:t.ink,textAnchor:"middle",children:"Positive pair: pull together"}),e.jsx("text",{x:"180",y:"336",fontSize:"12",fontFamily:"var(--serif)",fontStyle:"italic",fill:t.ink,textAnchor:"middle",children:"Other samples: push apart"}),e.jsx("text",{x:"180",y:"370",fontSize:"11",fontFamily:"var(--serif)",fill:t.faint,textAnchor:"middle",children:"InfoNCE: maximize sim(z₁, z₂) / τ"})]}),se=[["my-skill/",""],["├── SKILL.md","# Required: metadata + instructions"],["├── scripts/","# Optional: executable code"],["├── references/","# Optional: documentation"],["├── assets/","# Optional: templates, resources"],["└── ...","# Any additional files or directories"]],ae=()=>e.jsxs("svg",{viewBox:"0 0 360 420",width:"100%",height:"100%",style:{display:"block"},children:[e.jsx("text",{x:"180",y:"20",fontSize:"11",fontFamily:"var(--serif)",fontStyle:"italic",fill:t.faint,textAnchor:"middle",children:"Skill package layout"}),e.jsx("rect",{x:"28",y:"48",width:"304",height:"318",rx:"8",fill:"#FFFDF8",stroke:t.faint,strokeWidth:"1"}),se.map(([s,r],l)=>{const d=92+l*44;return e.jsxs("g",{children:[e.jsx("text",{x:"44",y:d,fontSize:"11",fontFamily:"var(--mono)",fill:t.ink,dominantBaseline:"middle",children:s}),r?e.jsx("text",{x:"138",y:d,fontSize:"8.5",fontFamily:"var(--mono)",fill:t.faint,dominantBaseline:"middle",children:r}):null]},s)})]}),re={attention:ee,"contrastive-learning":te,"agent-skills":ae},le=({method:s})=>e.jsxs("svg",{viewBox:"0 0 360 420",width:"100%",height:"100%",children:[e.jsx("text",{x:"180",y:"20",fontSize:"11",fontFamily:"var(--serif)",fontStyle:"italic",fill:t.faint,textAnchor:"middle",children:s.name||"method"}),e.jsx(n,{x:80,y:70,w:200,h:50,fill:t.blue,stroke:t.blueS,label:"Input",fontSize:12}),e.jsx("path",{d:"M180 120 L180 150",stroke:t.ink}),e.jsx(n,{x:80,y:150,w:200,h:70,fill:t.orange,stroke:t.orangeS,label:s.name||"transform",fontSize:13}),e.jsx("path",{d:"M180 220 L180 250",stroke:t.ink}),e.jsx(n,{x:80,y:250,w:200,h:50,fill:t.purple,stroke:t.purpleS,label:"Output",fontSize:12})]}),ie=({method:s})=>{const r=(s.slug||"").toLowerCase(),l=re[r];if(l)return e.jsx("div",{className:"method-figure-svg method-figure-svg--schematic",children:e.jsx(l,{})});if(s.image_url){const d=r==="transformer"||r==="gpt-4"||r==="gpt-4o"||r==="multi-head-attention"?" method-figure-svg--compact":r==="rpn"?" method-figure-svg--scaled-80":"";return e.jsx("div",{className:`method-figure-svg method-figure-svg--image${d}`,children:e.jsx("img",{className:"method-figure-img",src:s.image_url,alt:`${s.name} figure`})})}return e.jsx("div",{className:"method-figure-svg method-figure-svg--schematic",children:e.jsx(le,{method:s})})},w=720,N=138,x={top:8,right:10,bottom:25,left:36},A=56,ne=new Intl.DateTimeFormat("en",{month:"short",year:"2-digit",timeZone:"UTC"}),oe=new Intl.DateTimeFormat("en",{year:"numeric",timeZone:"UTC"}),M=s=>ne.format(new Date(`${s}T00:00:00Z`)),ce=(s,r)=>{if(s===0)return new Set;const l=s>48?12:s>36?6:s>18?3:2,d=Math.max(1,Math.ceil(A/r)),o=Math.max(l,d),p=s-1,h=new Set([0,p]);for(let c=o;c<p;c+=o)(p-c)*r>=A&&h.add(c);return h},L=s=>{if(s.coverage_status===void 0||["complete","not_applicable"].includes(s.coverage_status))return null;const r=s.processed_paper_count!==void 0&&s.eligible_paper_count!==void 0?`; ${s.processed_paper_count.toLocaleString()} of ${s.eligible_paper_count.toLocaleString()} eligible papers processed`:"";return`Historical tagging ${s.coverage_status==="failed"?"needs retry":"in progress"}${r}`},de=({history:s,methodName:r})=>{const[l,d]=D.useState(null),o=Math.max(1,...s.map(i=>i.paper_count)),p=w-x.left-x.right,h=N-x.top-x.bottom,c=s.length?p/s.length:p,a=Math.max(2,c*.68),g=ce(s.length,c),j=Array.from(new Set([0,Math.ceil(o/2),o])),f=l==null?null:s[l],y=f?L(f):null;return e.jsxs("div",{className:"method-usage-chart-wrap",children:[e.jsxs("svg",{className:"method-usage-chart",viewBox:`0 0 ${w} ${N}`,role:"group","aria-label":`${r}: papers mentioning this method by publication month`,children:[e.jsxs("title",{children:[r,": papers mentioning this method by publication month"]}),j.map(i=>{const m=x.top+h-i/o*h;return e.jsxs("g",{children:[e.jsx("line",{className:"method-usage-gridline",x1:x.left,x2:w-x.right,y1:m,y2:m}),e.jsx("text",{className:"method-usage-y-label",x:x.left-8,y:m+3,textAnchor:"end",children:i})]},i)}),s.map((i,m)=>{const u=i.paper_count/o*h,S=i.paper_count>0?Math.max(1,u):0,E=x.left+c*m+(c-a)/2,I=x.top+h-S,C=l===m,T=m===s.length-1,F=L(i);return e.jsxs("g",{className:`method-usage-bar${C?" is-active":""}${T?" is-current":""}`,tabIndex:0,role:"img","aria-label":`${M(i.start_date)}: ${i.paper_count} ${i.paper_count===1?"paper":"papers"}${F?`. ${F}`:""}`,onMouseEnter:()=>d(m),onMouseLeave:()=>d(null),onFocus:()=>d(m),onBlur:()=>d(null),children:[e.jsx("rect",{className:"method-usage-bar-hit",x:x.left+c*m,y:x.top,width:c,height:h}),e.jsx("rect",{className:"method-usage-bar-mark",x:E,y:I,width:a,height:S,rx:"1.5"})]},i.start_date)}),s.map((i,m)=>g.has(m)?e.jsx("text",{className:"method-usage-x-label",x:x.left+c*(m+.5),y:N-11,textAnchor:"middle",children:s.length>48?oe.format(new Date(`${i.start_date}T00:00:00Z`)):M(i.start_date)},i.start_date):null)]}),f&&e.jsxs("div",{className:"method-usage-tooltip",role:"status",children:[e.jsx("strong",{children:M(f.start_date)}),e.jsxs("span",{children:[f.paper_count," ",f.paper_count===1?"paper":"papers",l===s.length-1?" · month to date":""]}),e.jsxs("span",{children:[(f.catalog_share??0).toFixed(2),"% of"," ",(f.catalog_paper_count??0).toLocaleString()," catalog papers"]}),y&&e.jsx("span",{children:y})]})]})},me=new Set(["grokking","latent-reasoning","world-action-models","continuous-language-model"]),Re=()=>{var y,i,m;const{methodSlug:s}=P(),r=V({defaultToLastMonth:!0}),l=k(v.method(s));Y(l.data&&J(l.data.name));const d=k({...v.areas(),enabled:!!((y=l.data)!=null&&y.area_id)}),o=k(v.methodTrend(s)),p=Q($.method(s,r.filters),u=>B.forMethod(s,{...r.filters,page:u,page_size:20,repository_limit:1}),{enabled:!!s}),h=k(v.relatedMethods(s)),c=D.useMemo(()=>{var u;return((u=p.data)==null?void 0:u.pages.flatMap(S=>S.results.map(K)))??[]},[p.data]);if(l.isLoading)return e.jsxs("div",{className:"page",children:[e.jsx(b,{className:"h-12 w-1/2 mb-4"}),e.jsx(b,{className:"h-64 w-full"})]});if(!l.data)return X([l.error],"Failed to load this method. Please try again.")??e.jsx(q,{});const a=l.data,g=(i=d.data)==null?void 0:i.results.find(u=>u.id===a.area_id),j=U(a.source_url),f=j?null:Z(a.source_url);return e.jsxs("div",{className:"page",children:[e.jsxs("div",{className:"breadcrumb",children:[e.jsx(_,{to:"/methods",children:"Methods"}),g&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"sep",children:"/"}),e.jsx(_,{to:`/methods#area-${W(g.name)}`,children:g.name})]}),e.jsx("span",{className:"sep",children:"/"}),e.jsx("span",{style:{color:"var(--ink)"},children:a.name})]}),e.jsxs("div",{className:`tag-hero method-hero-grid${me.has(a.slug)?" method-hero-grid--wide-figure":""}`,children:[e.jsxs("div",{children:[e.jsx("div",{className:"tag-hero-eyebrow",children:"METHOD"}),e.jsx("h1",{className:"tag-hero-title method-hero-title",children:a.name}),e.jsx(H,{kind:"method",entityId:a.id}),a.full_name&&!a.name.includes(a.full_name)&&e.jsx("div",{style:{fontFamily:"var(--serif)",fontSize:16,fontStyle:"italic",color:"var(--ink-soft)",marginTop:8},children:a.full_name}),a.description&&e.jsx(z,{className:"method-description",text:a.description}),a.source_url&&a.source_title&&e.jsxs("div",{className:"method-source",children:[e.jsx("span",{className:"method-source-label",children:"Source"}),j?e.jsxs(_,{className:"method-source-link",to:j,target:"_blank",rel:"noopener noreferrer",children:[e.jsx("span",{className:"method-source-title",children:a.source_title}),a.introduced_year&&e.jsx("span",{className:"method-source-meta",children:a.introduced_year})]}):f?e.jsxs("a",{className:"method-source-link",href:f,target:"_blank",rel:"noopener noreferrer",children:[e.jsx("span",{className:"method-source-title",children:a.source_title}),a.introduced_year&&e.jsx("span",{className:"method-source-meta",children:a.introduced_year})]}):e.jsxs("div",{className:"method-source-link is-static",children:[e.jsx("span",{className:"method-source-title",children:a.source_title}),a.introduced_year&&e.jsx("span",{className:"method-source-meta",children:a.introduced_year})]})]}),e.jsxs("div",{className:"tag-hero-meta",children:[e.jsxs("div",{className:"stat",children:[e.jsx("span",{className:"label",children:"Papers mentioning"}),e.jsx("span",{className:"value",children:(a.paper_count??0).toLocaleString()})]}),o.data&&e.jsxs("div",{className:"stat",children:[e.jsx("span",{className:"label",children:"Recent mentions"}),e.jsxs("span",{className:"value",children:[(o.data.recent_paper_count*30/o.data.recent_days).toFixed(1),e.jsx("small",{children:"/mo"})]}),!o.data.comparison_complete&&e.jsx("span",{title:"Tagging is still catching up. This rate reflects mentions found so far.",children:"Partial coverage"})]}),a.introduced_year!=null&&e.jsxs("div",{className:"stat",children:[e.jsx("span",{className:"label",children:"Introduced"}),e.jsx("span",{className:"value",children:a.introduced_year})]})]}),o.isLoading?e.jsx(b,{className:"h-36 w-full method-trend-skeleton"}):o.data?e.jsxs("section",{className:"method-trend-panel method-trend-panel--compact",children:[e.jsxs("div",{className:"method-trend-header",children:[e.jsx("div",{children:e.jsx("div",{className:"method-trend-eyebrow",children:"Usage trend"})}),e.jsxs("div",{className:"method-trend-summary",children:[e.jsx("strong",{children:o.data.recent_paper_count}),e.jsxs("span",{children:["papers / ",o.data.recent_days,"d"]})]})]}),e.jsx(de,{history:o.data.history,methodName:a.name})]}):null]}),e.jsxs("figure",{className:"method-figure-card",children:[e.jsx(ie,{method:a}),a.image_credit&&e.jsx("figcaption",{children:e.jsx(z,{className:"method-image-credit",text:a.image_credit})})]})]}),(((m=h.data)==null?void 0:m.results.length)??0)>0&&e.jsxs("div",{className:"filter-row",children:[e.jsx("span",{className:"label",children:"Related methods"}),h.data.results.map(u=>e.jsx(R,{method:{slug:u.slug,name:u.name}},u.id))]}),e.jsx(G,{feed:r,children:e.jsxs("div",{className:"results-count",children:[c.length," papers mentioning ",a.name]})}),e.jsx(O,{query:p,cards:c,empty:r.dateRange.startDate||r.dateRange.endDate?"No papers tagged with this method in this date range.":"No papers tagged with this method yet."})]})};export{Re as default};
 
1
+ import{j as e,i as D,u as P,b as k,v,B,w as $,L as _}from"./index-CqLopXcE.js";import{R as H}from"./ResearchFollowButton-lWVVvGzA.js";import{M as R}from"./SotaBadges-CmYGMLyy.js";import{b as V,u as Q,c as G,P as O}from"./usePapers-CLqxSGhP.js";import{r as U,M as z}from"./MarkdownText-CZlaYENs.js";import{s as W}from"./slug-BpH-Nkvz.js";import{t as K}from"./transform-BwK-yMDY.js";import{S as b}from"./skeleton-g9QeRZlQ.js";import{s as Z}from"./safeExternalHref-CkBrsh84.js";import q from"./NotFound-Dm23aroU.js";import{l as X}from"./LoadFailurePage-CbxBcR6o.js";import{u as Y}from"./useDocumentTitle-xBtc80OB.js";import{e as J}from"./pageTitles-BDUuOvJf.js";import"./researchTopic-BNud5CMS.js";import"./useMutation-DBnvCG24.js";import"./plus-D-JcHoGj.js";import"./colors-BkWRhvFI.js";import"./PaperCard-CpWKB_q0.js";import"./AuthorAvatar-RLVSdcTr.js";import"./Icon-BTX00T3U.js";import"./LatexTitle-C0en22SO.js";import"./popover-CuCcJ8cK.js";import"./useIntersectionObserver-CvTvi8t8.js";import"./useInfiniteQuery-Dlybgr8f.js";import"./PaperPreviewLink-BQBSQN0t.js";import"./index-C601BfBQ.js";import"./index-s2hHM8kO.js";import"./hover-card-CcViKpG6.js";import"./alert-C8kkxn4G.js";const t={pink:"#F8D7D9",pinkS:"#D9B0B3",yellow:"#FBEFC2",yellowS:"#C9B97D",orange:"#F8D7B3",orangeS:"#C99466",blue:"#CDE2EE",blueS:"#7FA4BA",purple:"#D4D2EA",purpleS:"#8E8AC0",green:"#CCE2C5",greenS:"#7DA475",ink:"#1A1814",faint:"#8E8678"},n=({x:s,y:r,w:l,h:d,fill:o,stroke:p,label:h,fontSize:c=10})=>e.jsxs("g",{children:[e.jsx("rect",{x:s,y:r,width:l,height:d,rx:"3",ry:"3",fill:o,stroke:p,strokeWidth:"1"}),e.jsx("text",{x:s+l/2,y:r+d/2,fontSize:c,fontFamily:"var(--sans)",fill:t.ink,textAnchor:"middle",dominantBaseline:"middle",children:h})]}),ee=()=>e.jsxs("svg",{viewBox:"0 0 360 420",width:"100%",height:"100%",style:{display:"block"},children:[e.jsx("text",{x:"180",y:"20",fontSize:"11",fontFamily:"var(--serif)",fontStyle:"italic",fill:t.faint,textAnchor:"middle",children:"Scaled Dot-Product Attention"}),e.jsx(n,{x:140,y:40,w:80,h:26,fill:t.yellow,stroke:t.yellowS,label:"MatMul",fontSize:11}),e.jsx("path",{d:"M180 66 L180 80",stroke:t.ink}),e.jsx(n,{x:140,y:80,w:80,h:26,fill:t.green,stroke:t.greenS,label:"SoftMax",fontSize:11}),e.jsx("path",{d:"M180 106 L180 120",stroke:t.ink}),e.jsx(n,{x:140,y:120,w:80,h:26,fill:t.purple,stroke:t.purpleS,label:"Mask (opt.)",fontSize:11}),e.jsx("path",{d:"M180 146 L180 160",stroke:t.ink}),e.jsx(n,{x:140,y:160,w:80,h:26,fill:t.blue,stroke:t.blueS,label:"Scale ÷√dₖ",fontSize:11}),e.jsx("path",{d:"M180 186 L180 200",stroke:t.ink}),e.jsx(n,{x:140,y:200,w:80,h:26,fill:t.yellow,stroke:t.yellowS,label:"MatMul",fontSize:11}),e.jsx("path",{d:"M156 226 L120 270",stroke:t.ink}),e.jsx("path",{d:"M180 226 L180 270",stroke:t.ink}),e.jsx("path",{d:"M204 226 L240 270",stroke:t.ink}),e.jsx(n,{x:100,y:270,w:40,h:24,fill:t.pink,stroke:t.pinkS,label:"Q",fontSize:13}),e.jsx(n,{x:160,y:270,w:40,h:24,fill:t.pink,stroke:t.pinkS,label:"K",fontSize:13}),e.jsx(n,{x:220,y:270,w:40,h:24,fill:t.pink,stroke:t.pinkS,label:"V",fontSize:13}),e.jsxs("text",{x:"180",y:"330",fontSize:"14",fontFamily:"var(--serif)",fontStyle:"italic",fill:t.ink,textAnchor:"middle",children:["softmax(QK",e.jsx("tspan",{fontSize:"9",baselineShift:"super",children:"⊤"})," / √d) V"]})]}),te=()=>e.jsxs("svg",{viewBox:"0 0 360 420",width:"100%",height:"100%",style:{display:"block"},children:[e.jsx("text",{x:"180",y:"20",fontSize:"11",fontFamily:"var(--serif)",fontStyle:"italic",fill:t.faint,textAnchor:"middle",children:"Contrastive learning"}),e.jsx(n,{x:120,y:40,w:120,h:26,fill:t.blue,stroke:t.blueS,label:"Input x",fontSize:11}),e.jsx("path",{d:"M180 66 V76 M90 76 H270 M90 76 V88 M270 76 V88",stroke:t.ink}),e.jsx(n,{x:35,y:88,w:110,h:26,fill:t.yellow,stroke:t.yellowS,label:"Augment t₁",fontSize:11}),e.jsx(n,{x:215,y:88,w:110,h:26,fill:t.yellow,stroke:t.yellowS,label:"Augment t₂",fontSize:11}),e.jsx("path",{d:"M90 114 V138 M270 114 V138",stroke:t.ink}),e.jsx(n,{x:35,y:138,w:110,h:26,fill:t.orange,stroke:t.orangeS,label:"Encoder f",fontSize:11}),e.jsx(n,{x:215,y:138,w:110,h:26,fill:t.orange,stroke:t.orangeS,label:"Encoder f",fontSize:11}),e.jsx("text",{x:"180",y:"155",fontSize:"9",fontFamily:"var(--serif)",fontStyle:"italic",fill:t.faint,textAnchor:"middle",children:"shared weights"}),e.jsx("path",{d:"M90 164 V188 M270 164 V188",stroke:t.ink}),e.jsx(n,{x:35,y:188,w:110,h:26,fill:t.purple,stroke:t.purpleS,label:"Projection g",fontSize:11}),e.jsx(n,{x:215,y:188,w:110,h:26,fill:t.purple,stroke:t.purpleS,label:"Projection g",fontSize:11}),e.jsx("path",{d:"M90 214 V238 M270 214 V238",stroke:t.ink}),e.jsx(n,{x:35,y:238,w:110,h:26,fill:t.pink,stroke:t.pinkS,label:"z₁",fontSize:13}),e.jsx(n,{x:215,y:238,w:110,h:26,fill:t.pink,stroke:t.pinkS,label:"z₂",fontSize:13}),e.jsx("path",{d:"M145 251 H215",stroke:t.greenS,strokeWidth:"1.5",strokeDasharray:"4 3"}),e.jsx("text",{x:"180",y:"244",fontSize:"9",fontFamily:"var(--sans)",fill:t.greenS,textAnchor:"middle",children:"attract"}),e.jsx("text",{x:"180",y:"318",fontSize:"12",fontFamily:"var(--serif)",fontStyle:"italic",fill:t.ink,textAnchor:"middle",children:"Positive pair: pull together"}),e.jsx("text",{x:"180",y:"336",fontSize:"12",fontFamily:"var(--serif)",fontStyle:"italic",fill:t.ink,textAnchor:"middle",children:"Other samples: push apart"}),e.jsx("text",{x:"180",y:"370",fontSize:"11",fontFamily:"var(--serif)",fill:t.faint,textAnchor:"middle",children:"InfoNCE: maximize sim(z₁, z₂) / τ"})]}),se=[["my-skill/",""],["├── SKILL.md","# Required: metadata + instructions"],["├── scripts/","# Optional: executable code"],["├── references/","# Optional: documentation"],["├── assets/","# Optional: templates, resources"],["└── ...","# Any additional files or directories"]],ae=()=>e.jsxs("svg",{viewBox:"0 0 360 420",width:"100%",height:"100%",style:{display:"block"},children:[e.jsx("text",{x:"180",y:"20",fontSize:"11",fontFamily:"var(--serif)",fontStyle:"italic",fill:t.faint,textAnchor:"middle",children:"Skill package layout"}),e.jsx("rect",{x:"28",y:"48",width:"304",height:"318",rx:"8",fill:"#FFFDF8",stroke:t.faint,strokeWidth:"1"}),se.map(([s,r],l)=>{const d=92+l*44;return e.jsxs("g",{children:[e.jsx("text",{x:"44",y:d,fontSize:"11",fontFamily:"var(--mono)",fill:t.ink,dominantBaseline:"middle",children:s}),r?e.jsx("text",{x:"138",y:d,fontSize:"8.5",fontFamily:"var(--mono)",fill:t.faint,dominantBaseline:"middle",children:r}):null]},s)})]}),re={attention:ee,"contrastive-learning":te,"agent-skills":ae},le=({method:s})=>e.jsxs("svg",{viewBox:"0 0 360 420",width:"100%",height:"100%",children:[e.jsx("text",{x:"180",y:"20",fontSize:"11",fontFamily:"var(--serif)",fontStyle:"italic",fill:t.faint,textAnchor:"middle",children:s.name||"method"}),e.jsx(n,{x:80,y:70,w:200,h:50,fill:t.blue,stroke:t.blueS,label:"Input",fontSize:12}),e.jsx("path",{d:"M180 120 L180 150",stroke:t.ink}),e.jsx(n,{x:80,y:150,w:200,h:70,fill:t.orange,stroke:t.orangeS,label:s.name||"transform",fontSize:13}),e.jsx("path",{d:"M180 220 L180 250",stroke:t.ink}),e.jsx(n,{x:80,y:250,w:200,h:50,fill:t.purple,stroke:t.purpleS,label:"Output",fontSize:12})]}),ie=({method:s})=>{const r=(s.slug||"").toLowerCase(),l=re[r];if(l)return e.jsx("div",{className:"method-figure-svg method-figure-svg--schematic",children:e.jsx(l,{})});if(s.image_url){const d=r==="transformer"||r==="gpt-4"||r==="gpt-4o"||r==="multi-head-attention"?" method-figure-svg--compact":r==="rpn"?" method-figure-svg--scaled-80":"";return e.jsx("div",{className:`method-figure-svg method-figure-svg--image${d}`,children:e.jsx("img",{className:"method-figure-img",src:s.image_url,alt:`${s.name} figure`})})}return e.jsx("div",{className:"method-figure-svg method-figure-svg--schematic",children:e.jsx(le,{method:s})})},w=720,N=138,x={top:8,right:10,bottom:25,left:36},A=56,ne=new Intl.DateTimeFormat("en",{month:"short",year:"2-digit",timeZone:"UTC"}),oe=new Intl.DateTimeFormat("en",{year:"numeric",timeZone:"UTC"}),M=s=>ne.format(new Date(`${s}T00:00:00Z`)),ce=(s,r)=>{if(s===0)return new Set;const l=s>48?12:s>36?6:s>18?3:2,d=Math.max(1,Math.ceil(A/r)),o=Math.max(l,d),p=s-1,h=new Set([0,p]);for(let c=o;c<p;c+=o)(p-c)*r>=A&&h.add(c);return h},L=s=>{if(s.coverage_status===void 0||["complete","not_applicable"].includes(s.coverage_status))return null;const r=s.processed_paper_count!==void 0&&s.eligible_paper_count!==void 0?`; ${s.processed_paper_count.toLocaleString()} of ${s.eligible_paper_count.toLocaleString()} eligible papers processed`:"";return`Historical tagging ${s.coverage_status==="failed"?"needs retry":"in progress"}${r}`},de=({history:s,methodName:r})=>{const[l,d]=D.useState(null),o=Math.max(1,...s.map(i=>i.paper_count)),p=w-x.left-x.right,h=N-x.top-x.bottom,c=s.length?p/s.length:p,a=Math.max(2,c*.68),g=ce(s.length,c),j=Array.from(new Set([0,Math.ceil(o/2),o])),f=l==null?null:s[l],y=f?L(f):null;return e.jsxs("div",{className:"method-usage-chart-wrap",children:[e.jsxs("svg",{className:"method-usage-chart",viewBox:`0 0 ${w} ${N}`,role:"group","aria-label":`${r}: papers mentioning this method by publication month`,children:[e.jsxs("title",{children:[r,": papers mentioning this method by publication month"]}),j.map(i=>{const m=x.top+h-i/o*h;return e.jsxs("g",{children:[e.jsx("line",{className:"method-usage-gridline",x1:x.left,x2:w-x.right,y1:m,y2:m}),e.jsx("text",{className:"method-usage-y-label",x:x.left-8,y:m+3,textAnchor:"end",children:i})]},i)}),s.map((i,m)=>{const u=i.paper_count/o*h,S=i.paper_count>0?Math.max(1,u):0,E=x.left+c*m+(c-a)/2,I=x.top+h-S,C=l===m,T=m===s.length-1,F=L(i);return e.jsxs("g",{className:`method-usage-bar${C?" is-active":""}${T?" is-current":""}`,tabIndex:0,role:"img","aria-label":`${M(i.start_date)}: ${i.paper_count} ${i.paper_count===1?"paper":"papers"}${F?`. ${F}`:""}`,onMouseEnter:()=>d(m),onMouseLeave:()=>d(null),onFocus:()=>d(m),onBlur:()=>d(null),children:[e.jsx("rect",{className:"method-usage-bar-hit",x:x.left+c*m,y:x.top,width:c,height:h}),e.jsx("rect",{className:"method-usage-bar-mark",x:E,y:I,width:a,height:S,rx:"1.5"})]},i.start_date)}),s.map((i,m)=>g.has(m)?e.jsx("text",{className:"method-usage-x-label",x:x.left+c*(m+.5),y:N-11,textAnchor:"middle",children:s.length>48?oe.format(new Date(`${i.start_date}T00:00:00Z`)):M(i.start_date)},i.start_date):null)]}),f&&e.jsxs("div",{className:"method-usage-tooltip",role:"status",children:[e.jsx("strong",{children:M(f.start_date)}),e.jsxs("span",{children:[f.paper_count," ",f.paper_count===1?"paper":"papers",l===s.length-1?" · month to date":""]}),e.jsxs("span",{children:[(f.catalog_share??0).toFixed(2),"% of"," ",(f.catalog_paper_count??0).toLocaleString()," catalog papers"]}),y&&e.jsx("span",{children:y})]})]})},me=new Set(["grokking","latent-reasoning","world-action-models","continuous-language-model"]),Re=()=>{var y,i,m;const{methodSlug:s}=P(),r=V({defaultToLastMonth:!0}),l=k(v.method(s));Y(l.data&&J(l.data.name));const d=k({...v.areas(),enabled:!!((y=l.data)!=null&&y.area_id)}),o=k(v.methodTrend(s)),p=Q($.method(s,r.filters),u=>B.forMethod(s,{...r.filters,page:u,page_size:20,repository_limit:1}),{enabled:!!s}),h=k(v.relatedMethods(s)),c=D.useMemo(()=>{var u;return((u=p.data)==null?void 0:u.pages.flatMap(S=>S.results.map(K)))??[]},[p.data]);if(l.isLoading)return e.jsxs("div",{className:"page",children:[e.jsx(b,{className:"h-12 w-1/2 mb-4"}),e.jsx(b,{className:"h-64 w-full"})]});if(!l.data)return X([l.error],"Failed to load this method. Please try again.")??e.jsx(q,{});const a=l.data,g=(i=d.data)==null?void 0:i.results.find(u=>u.id===a.area_id),j=U(a.source_url),f=j?null:Z(a.source_url);return e.jsxs("div",{className:"page",children:[e.jsxs("div",{className:"breadcrumb",children:[e.jsx(_,{to:"/methods",children:"Methods"}),g&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"sep",children:"/"}),e.jsx(_,{to:`/methods#area-${W(g.name)}`,children:g.name})]}),e.jsx("span",{className:"sep",children:"/"}),e.jsx("span",{style:{color:"var(--ink)"},children:a.name})]}),e.jsxs("div",{className:`tag-hero method-hero-grid${me.has(a.slug)?" method-hero-grid--wide-figure":""}`,children:[e.jsxs("div",{children:[e.jsx("div",{className:"tag-hero-eyebrow",children:"METHOD"}),e.jsx("h1",{className:"tag-hero-title method-hero-title",children:a.name}),e.jsx(H,{kind:"method",entityId:a.id}),a.full_name&&!a.name.includes(a.full_name)&&e.jsx("div",{style:{fontFamily:"var(--serif)",fontSize:16,fontStyle:"italic",color:"var(--ink-soft)",marginTop:8},children:a.full_name}),a.description&&e.jsx(z,{className:"method-description",text:a.description}),a.source_url&&a.source_title&&e.jsxs("div",{className:"method-source",children:[e.jsx("span",{className:"method-source-label",children:"Source"}),j?e.jsxs(_,{className:"method-source-link",to:j,target:"_blank",rel:"noopener noreferrer",children:[e.jsx("span",{className:"method-source-title",children:a.source_title}),a.introduced_year&&e.jsx("span",{className:"method-source-meta",children:a.introduced_year})]}):f?e.jsxs("a",{className:"method-source-link",href:f,target:"_blank",rel:"noopener noreferrer",children:[e.jsx("span",{className:"method-source-title",children:a.source_title}),a.introduced_year&&e.jsx("span",{className:"method-source-meta",children:a.introduced_year})]}):e.jsxs("div",{className:"method-source-link is-static",children:[e.jsx("span",{className:"method-source-title",children:a.source_title}),a.introduced_year&&e.jsx("span",{className:"method-source-meta",children:a.introduced_year})]})]}),e.jsxs("div",{className:"tag-hero-meta",children:[e.jsxs("div",{className:"stat",children:[e.jsx("span",{className:"label",children:"Papers mentioning"}),e.jsx("span",{className:"value",children:(a.paper_count??0).toLocaleString()})]}),o.data&&e.jsxs("div",{className:"stat",children:[e.jsx("span",{className:"label",children:"Recent mentions"}),e.jsxs("span",{className:"value",children:[(o.data.recent_paper_count*30/o.data.recent_days).toFixed(1),e.jsx("small",{children:"/mo"})]}),!o.data.comparison_complete&&e.jsx("span",{title:"Tagging is still catching up. This rate reflects mentions found so far.",children:"Partial coverage"})]}),a.introduced_year!=null&&e.jsxs("div",{className:"stat",children:[e.jsx("span",{className:"label",children:"Introduced"}),e.jsx("span",{className:"value",children:a.introduced_year})]})]}),o.isLoading?e.jsx(b,{className:"h-36 w-full method-trend-skeleton"}):o.data?e.jsxs("section",{className:"method-trend-panel method-trend-panel--compact",children:[e.jsxs("div",{className:"method-trend-header",children:[e.jsx("div",{children:e.jsx("div",{className:"method-trend-eyebrow",children:"Usage trend"})}),e.jsxs("div",{className:"method-trend-summary",children:[e.jsx("strong",{children:o.data.recent_paper_count}),e.jsxs("span",{children:["papers / ",o.data.recent_days,"d"]})]})]}),e.jsx(de,{history:o.data.history,methodName:a.name})]}):null]}),e.jsxs("figure",{className:"method-figure-card",children:[e.jsx(ie,{method:a}),a.image_credit&&e.jsx("figcaption",{children:e.jsx(z,{className:"method-image-credit",text:a.image_credit})})]})]}),(((m=h.data)==null?void 0:m.results.length)??0)>0&&e.jsxs("div",{className:"filter-row",children:[e.jsx("span",{className:"label",children:"Related methods"}),h.data.results.map(u=>e.jsx(R,{method:{slug:u.slug,name:u.name}},u.id))]}),e.jsx(G,{feed:r,children:e.jsxs("div",{className:"results-count",children:[c.length," papers mentioning ",a.name]})}),e.jsx(O,{query:p,cards:c,empty:r.dateRange.startDate||r.dateRange.endDate?"No papers tagged with this method in this date range.":"No papers tagged with this method yet."})]})};export{Re as default};
assets/{MethodsIndexView-Cve7w9wa.js → MethodsIndexView-r_It4Z0b.js} RENAMED
@@ -1,4 +1,4 @@
1
- import{d as f,b as c,v as l,i as m,j as s,L as _}from"./index-2xE415-f.js";import{s as y}from"./areas-Dvi8w2dp.js";import{s as v}from"./slug-BpH-Nkvz.js";import{A as N,a as L}from"./alert-CMc00cqX.js";import{A as T,a as M}from"./AreaSection-ixYJgExd.js";import{T as A}from"./TaxonomySuggestionTile-NdypTQlh.js";import{u as I,T as S}from"./useHashScrollOnReady-DXXE6OaL.js";import{u as E}from"./useDocumentTitle-_d-BLODt.js";import{I as F}from"./pageTitles-CFPKZULe.js";import"./skeleton-7Kak9gS9.js";import"./SignInToEditDialog-TqUvJJvy.js";import"./button-Ow7LPhoW.js";import"./input-BMQ_TuLd.js";import"./textarea-DNcp7UYC.js";import"./searchable-select-B_-gAqcr.js";import"./popover-qWW92hSh.js";import"./dialog-Bk_CUlgJ.js";import"./search-DfIPA_iX.js";import"./loader-circle-CmbX91bp.js";import"./useMutation-BcnLcaMd.js";import"./submissions-1Rk-8Ke6.js";import"./plus-C20t97Ow.js";import"./trending-up-a8B6Ks2N.js";/**
2
  * @license lucide-react v0.462.0 - ISC
3
  *
4
  * This source code is licensed under the ISC license.
 
1
+ import{d as f,b as c,v as l,i as m,j as s,L as _}from"./index-CqLopXcE.js";import{s as y}from"./areas-Dvi8w2dp.js";import{s as v}from"./slug-BpH-Nkvz.js";import{A as N,a as L}from"./alert-C8kkxn4G.js";import{A as T,a as M}from"./AreaSection-eDvRZ5YZ.js";import{T as A}from"./TaxonomySuggestionTile-BvFTS6DR.js";import{u as I,T as S}from"./useHashScrollOnReady-B5hExIsK.js";import{u as E}from"./useDocumentTitle-xBtc80OB.js";import{I as F}from"./pageTitles-BDUuOvJf.js";import"./skeleton-g9QeRZlQ.js";import"./SignInToEditDialog-WFTfQEZb.js";import"./button-DUkH0QIr.js";import"./input-C419tHG_.js";import"./textarea-CVmk78KU.js";import"./searchable-select-ByX0DNkg.js";import"./popover-CuCcJ8cK.js";import"./dialog-BXnL_m2W.js";import"./search-B0zhG2PN.js";import"./loader-circle-DDE80rIr.js";import"./useMutation-DBnvCG24.js";import"./submissions-8BlabU_Z.js";import"./plus-D-JcHoGj.js";import"./trending-up-CYDjl1mY.js";/**
2
  * @license lucide-react v0.462.0 - ISC
3
  *
4
  * This source code is licensed under the ISC license.
assets/{NotFound-BLAjrkTN.js → NotFound-Dm23aroU.js} RENAMED
@@ -1 +1 @@
1
- import{q as o,i as s,j as t,L as a}from"./index-2xE415-f.js";const r=()=>{const e=o();return s.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),t.jsxs("div",{className:"page",style:{textAlign:"center",paddingTop:96},children:[t.jsx("h1",{className:"detail-title",style:{fontSize:96,marginBottom:8},children:"404"}),t.jsx("p",{style:{fontFamily:"var(--serif)",fontStyle:"italic",color:"var(--ink-soft)",marginBottom:24},children:"That route isn't on the map."}),t.jsx(a,{to:"/",className:"action-btn",children:"Return home"})]})};export{r as default};
 
1
+ import{q as o,i as s,j as t,L as a}from"./index-CqLopXcE.js";const r=()=>{const e=o();return s.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),t.jsxs("div",{className:"page",style:{textAlign:"center",paddingTop:96},children:[t.jsx("h1",{className:"detail-title",style:{fontSize:96,marginBottom:8},children:"404"}),t.jsx("p",{style:{fontFamily:"var(--serif)",fontStyle:"italic",color:"var(--ink-soft)",marginBottom:24},children:"That route isn't on the map."}),t.jsx(a,{to:"/",className:"action-btn",children:"Return home"})]})};export{r as default};
assets/{OrganizationContributionGraph-DgJA6xQv.js → OrganizationContributionGraph-619a7ZA1.js} RENAMED
@@ -1 +1 @@
1
- import{i as b,j as o,b as z,v as T}from"./index-2xE415-f.js";import{S as v}from"./skeleton-7Kak9gS9.js";const x=24*60*60*1e3,f=12,w=3,N=new Map([[1,"Mon"],[3,"Wed"],[5,"Fri"]]),$=n=>new Date(`${n}T00:00:00Z`),S=n=>n.toISOString().slice(0,10),_=(n,a)=>{if(n===0)return 0;const i=a.findIndex(s=>n<=s);return i===-1?4:i+1},y=n=>{const a=$(n.start_date),i=$(n.end_date),s=new Date(a.getTime()-a.getUTCDay()*x),m=new Date(i.getTime()+(6-i.getUTCDay())*x),p=new Map(n.results.map(e=>[e.date,e.paper_count])),u=n.results.map(e=>e.paper_count).sort((e,g)=>e-g),c=[.25,.5,.75].map(e=>u[Math.min(u.length-1,Math.floor(u.length*e))]??1),l=[];for(let e=s.getTime();e<=m.getTime();e+=x){const g=new Date(e),d=S(g),h=e>=a.getTime()&&e<=i.getTime(),C=h?p.get(d)??0:0;l.push({key:d,date:g,count:C,inRange:h,level:_(C,c)})}const t=l.length/7,r=[];let j=-1;for(let e=0;e<t;e+=1){const d=l.slice(e*7,e*7+7).find(h=>h.inRange&&(e===0||h.date.getUTCDate()<=7));d&&d.date.getUTCMonth()!==j&&(j=d.date.getUTCMonth(),r.length>0&&e-r[r.length-1].column<3&&r.pop(),r.push({label:d.date.toLocaleString("en",{month:"short",timeZone:"UTC"}),column:e}))}return{days:l,months:r,weekCount:t}},D=({data:n,organizationName:a,title:i="Paper contributions",noun:s="paper"})=>{const m=b.useRef(null),{days:p,months:u,weekCount:c}=b.useMemo(()=>y(n),[n]),l=c*f+(c-1)*w;return b.useEffect(()=>{const t=m.current;t&&(t.scrollLeft=t.scrollWidth)},[c]),o.jsxs("section",{className:"organization-contributions","aria-labelledby":"organization-contributions-title",children:[o.jsxs("div",{className:"organization-contributions-header",children:[o.jsx("h2",{id:"organization-contributions-title",className:"organization-contributions-title",children:i}),o.jsxs("p",{className:"organization-contributions-summary",children:[n.total_count.toLocaleString()," ",n.total_count===1?s:`${s}s`," recorded in the last year"]})]}),o.jsx("div",{className:"organization-contributions-scroll",ref:m,children:o.jsxs("div",{className:"organization-contributions-plot",style:{width:l+34},role:"img","aria-label":`${a} recorded ${n.total_count} ${n.total_count===1?s:`${s}s`} in the last year`,children:[o.jsx("div",{className:"organization-contributions-weekdays","aria-hidden":"true",children:Array.from({length:7}).map((t,r)=>o.jsx("span",{children:N.get(r)??""},r))}),o.jsxs("div",{children:[o.jsx("div",{className:"organization-contributions-months",style:{width:l,gridTemplateColumns:`repeat(${c}, ${f}px)`},"aria-hidden":"true",children:u.map(t=>o.jsx("span",{style:{gridColumnStart:t.column+1},children:t.label},`${t.label}-${t.column}`))}),o.jsx("div",{className:"organization-contributions-grid",style:{width:l,gridTemplateColumns:`repeat(${c}, ${f}px)`},"aria-hidden":"true",children:p.map(t=>o.jsx("span",{className:`organization-contribution-cell ${t.inRange?`level-${t.level}`:"is-outside"}`,title:t.inRange?`${t.count} ${t.count===1?s:`${s}s`} on ${t.date.toLocaleDateString("en",{dateStyle:"long",timeZone:"UTC"})}`:void 0},t.key))})]})]})}),o.jsxs("div",{className:"organization-contributions-legend","aria-hidden":"true",children:[o.jsx("span",{children:"Fewer"}),[0,1,2,3,4].map(t=>o.jsx("span",{className:`organization-contribution-cell level-${t}`},t)),o.jsx("span",{children:"More"})]})]})},E=({organizationSlug:n,organizationName:a})=>{const i=z(T.organizationContributions(n));return i.isLoading?o.jsx(v,{className:"organization-contributions-skeleton"}):i.data?o.jsx(D,{data:i.data,organizationName:a}):null};export{D as C,E as O};
 
1
+ import{i as b,j as o,b as z,v as T}from"./index-CqLopXcE.js";import{S as v}from"./skeleton-g9QeRZlQ.js";const x=24*60*60*1e3,f=12,w=3,N=new Map([[1,"Mon"],[3,"Wed"],[5,"Fri"]]),$=n=>new Date(`${n}T00:00:00Z`),S=n=>n.toISOString().slice(0,10),_=(n,a)=>{if(n===0)return 0;const i=a.findIndex(s=>n<=s);return i===-1?4:i+1},y=n=>{const a=$(n.start_date),i=$(n.end_date),s=new Date(a.getTime()-a.getUTCDay()*x),m=new Date(i.getTime()+(6-i.getUTCDay())*x),p=new Map(n.results.map(e=>[e.date,e.paper_count])),u=n.results.map(e=>e.paper_count).sort((e,g)=>e-g),c=[.25,.5,.75].map(e=>u[Math.min(u.length-1,Math.floor(u.length*e))]??1),l=[];for(let e=s.getTime();e<=m.getTime();e+=x){const g=new Date(e),d=S(g),h=e>=a.getTime()&&e<=i.getTime(),C=h?p.get(d)??0:0;l.push({key:d,date:g,count:C,inRange:h,level:_(C,c)})}const t=l.length/7,r=[];let j=-1;for(let e=0;e<t;e+=1){const d=l.slice(e*7,e*7+7).find(h=>h.inRange&&(e===0||h.date.getUTCDate()<=7));d&&d.date.getUTCMonth()!==j&&(j=d.date.getUTCMonth(),r.length>0&&e-r[r.length-1].column<3&&r.pop(),r.push({label:d.date.toLocaleString("en",{month:"short",timeZone:"UTC"}),column:e}))}return{days:l,months:r,weekCount:t}},D=({data:n,organizationName:a,title:i="Paper contributions",noun:s="paper"})=>{const m=b.useRef(null),{days:p,months:u,weekCount:c}=b.useMemo(()=>y(n),[n]),l=c*f+(c-1)*w;return b.useEffect(()=>{const t=m.current;t&&(t.scrollLeft=t.scrollWidth)},[c]),o.jsxs("section",{className:"organization-contributions","aria-labelledby":"organization-contributions-title",children:[o.jsxs("div",{className:"organization-contributions-header",children:[o.jsx("h2",{id:"organization-contributions-title",className:"organization-contributions-title",children:i}),o.jsxs("p",{className:"organization-contributions-summary",children:[n.total_count.toLocaleString()," ",n.total_count===1?s:`${s}s`," recorded in the last year"]})]}),o.jsx("div",{className:"organization-contributions-scroll",ref:m,children:o.jsxs("div",{className:"organization-contributions-plot",style:{width:l+34},role:"img","aria-label":`${a} recorded ${n.total_count} ${n.total_count===1?s:`${s}s`} in the last year`,children:[o.jsx("div",{className:"organization-contributions-weekdays","aria-hidden":"true",children:Array.from({length:7}).map((t,r)=>o.jsx("span",{children:N.get(r)??""},r))}),o.jsxs("div",{children:[o.jsx("div",{className:"organization-contributions-months",style:{width:l,gridTemplateColumns:`repeat(${c}, ${f}px)`},"aria-hidden":"true",children:u.map(t=>o.jsx("span",{style:{gridColumnStart:t.column+1},children:t.label},`${t.label}-${t.column}`))}),o.jsx("div",{className:"organization-contributions-grid",style:{width:l,gridTemplateColumns:`repeat(${c}, ${f}px)`},"aria-hidden":"true",children:p.map(t=>o.jsx("span",{className:`organization-contribution-cell ${t.inRange?`level-${t.level}`:"is-outside"}`,title:t.inRange?`${t.count} ${t.count===1?s:`${s}s`} on ${t.date.toLocaleDateString("en",{dateStyle:"long",timeZone:"UTC"})}`:void 0},t.key))})]})]})}),o.jsxs("div",{className:"organization-contributions-legend","aria-hidden":"true",children:[o.jsx("span",{children:"Fewer"}),[0,1,2,3,4].map(t=>o.jsx("span",{className:`organization-contribution-cell level-${t}`},t)),o.jsx("span",{children:"More"})]})]})},E=({organizationSlug:n,organizationName:a})=>{const i=z(T.organizationContributions(n));return i.isLoading?o.jsx(v,{className:"organization-contributions-skeleton"}):i.data?o.jsx(D,{data:i.data,organizationName:a}):null};export{D as C,E as O};
assets/{OrganizationDetailView-CT65By-7.js → OrganizationDetailView-DiwWSGGc.js} RENAMED
@@ -1 +1 @@
1
- import{n as C,i as d,b as y,B as z,w as Q,m as I,j as a,L as F,v as L,u as E}from"./index-2xE415-f.js";import{R}from"./ResearchFollowButton-ktN3oGoK.js";import{M as q}from"./MarkdownText-CDVRt1ok.js";import{O as B}from"./OrganizationContributionGraph-DgJA6xQv.js";import{b as G,u as H,c as S,P as W}from"./usePapers-Df-AyQGj.js";import{S as D}from"./searchable-select-B_-gAqcr.js";import{S as K}from"./skeleton-7Kak9gS9.js";import{d as v,t as U}from"./transform-krmE0Oxv.js";import{o as V,i as Z}from"./organizationNames-BVKzYEBp.js";import k from"./NotFound-BLAjrkTN.js";import{l as J}from"./LoadFailurePage-DvxhRUcs.js";import{u as X}from"./useDocumentTitle-_d-BLODt.js";import{e as Y}from"./pageTitles-CFPKZULe.js";import"./researchTopic-elGDd7wA.js";import"./useMutation-BcnLcaMd.js";import"./plus-C20t97Ow.js";import"./PaperPreviewLink-Dhou1ws3.js";import"./index-CqH2_Dpk.js";import"./index-BHTJgSQg.js";import"./hover-card-CZZ0A1FG.js";import"./PaperCard-Do-fUKOE.js";import"./AuthorAvatar-D53WcphF.js";import"./SotaBadges-Cy5KKcKe.js";import"./colors-BkWRhvFI.js";import"./Icon-DQoMmS2z.js";import"./LatexTitle-CIj5wiaM.js";import"./safeExternalHref-CkBrsh84.js";import"./popover-qWW92hSh.js";import"./useIntersectionObserver-BjZh7B9X.js";import"./useInfiniteQuery-Cvn4-XUc.js";import"./button-Ow7LPhoW.js";import"./dialog-Bk_CUlgJ.js";import"./search-DfIPA_iX.js";import"./loader-circle-CmbX91bp.js";import"./alert-CMc00cqX.js";const ee=({organizationSlug:t,taskSlug:n})=>{var x,_,j,b,N;const P=C(),c=G({defaultToLastMonth:!0}),{searchParams:$}=c,[w,u]=d.useState(!1),h=y(L.organization(t)),l=y(L.organizationAreasWithTasks(t)),p=H(Q.organization(t,n,c.filters),s=>z.forOrganization(t,{...c.filters,task:n,page:s,page_size:12}),{enabled:!!t});d.useEffect(()=>{u(!1)},[t,n]);const g=d.useMemo(()=>{var s;return(((s=l.data)==null?void 0:s.results)??[]).flatMap(o=>o.tasks.filter(r=>!!r.slug).map(r=>({...r,slug:r.slug,label:v(r.name,r.slug)})))},[l.data]),i=g.find(s=>s.slug===n),O=d.useMemo(()=>{var s;return(((s=p.data)==null?void 0:s.pages)??[]).flatMap(o=>o.results.map(U))},[p.data]),e=h.data??((x=l.data)==null?void 0:x.organization);X(e&&Y(e.name));const m=e?V(e):null,T=((j=(_=p.data)==null?void 0:_.pages[0])==null?void 0:j.count)??0;if(I(h.error))return a.jsx(k,{});const f=J([l.error,p.error],"Failed to load organization papers. Please try again.");if(f)return f;const M=s=>{const o=s.trim().toLocaleLowerCase();return g.filter(r=>`${r.label} ${r.slug}`.toLocaleLowerCase().includes(o)).map(r=>({value:r.slug,label:r.label,description:`${r.paper_count.toLocaleString()} ${r.paper_count===1?"paper":"papers"}`}))},A=s=>{const o=s==="__all__"?`/orgs/${t}`:`/orgs/${t}/${s}`,r=$.toString();P({pathname:o,search:r?`?${r}`:""})};return a.jsxs("div",{className:"page",children:[a.jsxs("nav",{className:"breadcrumb","aria-label":"Breadcrumb",children:[a.jsx(F,{to:"/",children:"Home"}),a.jsx("span",{children:" / "}),a.jsx(F,{to:"/organizations",children:"Organizations"}),a.jsx("span",{children:" / "}),a.jsx("span",{children:(e==null?void 0:e.name)??t}),i&&a.jsxs(a.Fragment,{children:[a.jsx("span",{children:" / "}),a.jsx("span",{children:v(i.name,i.slug)})]})]}),a.jsxs("header",{className:"organization-hero",children:[a.jsxs("div",{className:"organization-hero-profile",children:[a.jsx("div",{className:"organizations-eyebrow",children:"ORGANIZATION"}),a.jsxs("h1",{className:`feed-title organization-hero-title${e&&!m&&Z(e.name)?" organization-hero-title--long":""}`,children:[e!=null&&e.logo_url&&!w?a.jsx("img",{src:e.logo_url,alt:"",width:58,height:58,onError:()=>u(!0)}):e?a.jsx("span",{className:"organization-hero-monogram","aria-hidden":"true",children:(m??e.name).slice(0,1).toUpperCase()}):null,e?a.jsxs("span",{className:"organization-hero-name",children:[m??e.name,m&&a.jsx("span",{className:"organization-hero-full-name",children:e.name})]}):a.jsx(K,{className:"h-12 w-64"})]}),e&&a.jsx(R,{kind:"organization",entityId:e.id}),e&&a.jsxs("div",{className:"feed-subtitle",children:[((b=e.paper_count)==null?void 0:b.toLocaleString())??0," papers",(e.organization_trending_score??0)>0&&e.trending_rank&&a.jsxs(a.Fragment,{children:[" · #",e.trending_rank," trending this month"]})]}),(e==null?void 0:e.description)&&a.jsx(q,{className:"method-description",text:e.description}),e&&a.jsxs("div",{className:"organization-hero-links",children:[e.website_url&&a.jsx("a",{href:e.website_url,target:"_blank",rel:"noreferrer",children:"Website ↗"}),e.hf_url&&a.jsx("a",{href:e.hf_url,target:"_blank",rel:"noreferrer",children:"Hugging Face ↗"}),e.github_url&&a.jsx("a",{href:e.github_url,target:"_blank",rel:"noreferrer",children:"GitHub ↗"})]})]}),a.jsx(B,{organizationSlug:t,organizationName:(e==null?void 0:e.name)??t})]}),a.jsx(S,{feed:c,style:{alignItems:"center",gap:16},leading:a.jsx("div",{style:{minWidth:260},children:a.jsx(D,{value:n??"__all__",onChange:A,placeholder:"All tasks",searchPlaceholder:"Search organization tasks...",emptyMessage:"No matching tasks.",ariaLabel:"Filter papers by task",selectedOption:i?{value:i.slug,label:i.label,description:`${i.paper_count.toLocaleString()} ${i.paper_count===1?"paper":"papers"}`}:{value:"__all__",label:"All tasks",description:`${((N=e==null?void 0:e.paper_count)==null?void 0:N.toLocaleString())??0} papers`},queryKey:["organization-task-options",t],queryFn:async s=>{var o;return[{value:"__all__",label:"All tasks",description:`${((o=e==null?void 0:e.paper_count)==null?void 0:o.toLocaleString())??0} papers`},...M(s)]},enabled:!l.isLoading,className:"h-[38px]"})}),children:a.jsxs("div",{className:"results-count",children:[T.toLocaleString()," papers"]})}),a.jsx(W,{query:p,cards:O,showInstitution:!1,empty:(e==null?void 0:e.paper_count)===0?"No papers indexed yet":"No papers found for this selection."})]})},Qe=()=>{const{orgSlug:t,taskSlug:n}=E();return t?a.jsx(ee,{organizationSlug:t,taskSlug:n}):a.jsx(k,{})};export{Qe as default};
 
1
+ import{n as C,i as d,b as y,B as z,w as Q,m as I,j as a,L as F,v as L,u as E}from"./index-CqLopXcE.js";import{R}from"./ResearchFollowButton-lWVVvGzA.js";import{M as q}from"./MarkdownText-CZlaYENs.js";import{O as B}from"./OrganizationContributionGraph-619a7ZA1.js";import{b as G,u as H,c as S,P as W}from"./usePapers-CLqxSGhP.js";import{S as D}from"./searchable-select-ByX0DNkg.js";import{S as K}from"./skeleton-g9QeRZlQ.js";import{d as v,t as U}from"./transform-BwK-yMDY.js";import{o as V,i as Z}from"./organizationNames-BVKzYEBp.js";import k from"./NotFound-Dm23aroU.js";import{l as J}from"./LoadFailurePage-CbxBcR6o.js";import{u as X}from"./useDocumentTitle-xBtc80OB.js";import{e as Y}from"./pageTitles-BDUuOvJf.js";import"./researchTopic-BNud5CMS.js";import"./useMutation-DBnvCG24.js";import"./plus-D-JcHoGj.js";import"./PaperPreviewLink-BQBSQN0t.js";import"./index-C601BfBQ.js";import"./index-s2hHM8kO.js";import"./hover-card-CcViKpG6.js";import"./PaperCard-CpWKB_q0.js";import"./AuthorAvatar-RLVSdcTr.js";import"./SotaBadges-CmYGMLyy.js";import"./colors-BkWRhvFI.js";import"./Icon-BTX00T3U.js";import"./LatexTitle-C0en22SO.js";import"./safeExternalHref-CkBrsh84.js";import"./popover-CuCcJ8cK.js";import"./useIntersectionObserver-CvTvi8t8.js";import"./useInfiniteQuery-Dlybgr8f.js";import"./button-DUkH0QIr.js";import"./dialog-BXnL_m2W.js";import"./search-B0zhG2PN.js";import"./loader-circle-DDE80rIr.js";import"./alert-C8kkxn4G.js";const ee=({organizationSlug:t,taskSlug:n})=>{var x,_,j,b,N;const P=C(),c=G({defaultToLastMonth:!0}),{searchParams:$}=c,[w,u]=d.useState(!1),h=y(L.organization(t)),l=y(L.organizationAreasWithTasks(t)),p=H(Q.organization(t,n,c.filters),s=>z.forOrganization(t,{...c.filters,task:n,page:s,page_size:12}),{enabled:!!t});d.useEffect(()=>{u(!1)},[t,n]);const g=d.useMemo(()=>{var s;return(((s=l.data)==null?void 0:s.results)??[]).flatMap(o=>o.tasks.filter(r=>!!r.slug).map(r=>({...r,slug:r.slug,label:v(r.name,r.slug)})))},[l.data]),i=g.find(s=>s.slug===n),O=d.useMemo(()=>{var s;return(((s=p.data)==null?void 0:s.pages)??[]).flatMap(o=>o.results.map(U))},[p.data]),e=h.data??((x=l.data)==null?void 0:x.organization);X(e&&Y(e.name));const m=e?V(e):null,T=((j=(_=p.data)==null?void 0:_.pages[0])==null?void 0:j.count)??0;if(I(h.error))return a.jsx(k,{});const f=J([l.error,p.error],"Failed to load organization papers. Please try again.");if(f)return f;const M=s=>{const o=s.trim().toLocaleLowerCase();return g.filter(r=>`${r.label} ${r.slug}`.toLocaleLowerCase().includes(o)).map(r=>({value:r.slug,label:r.label,description:`${r.paper_count.toLocaleString()} ${r.paper_count===1?"paper":"papers"}`}))},A=s=>{const o=s==="__all__"?`/orgs/${t}`:`/orgs/${t}/${s}`,r=$.toString();P({pathname:o,search:r?`?${r}`:""})};return a.jsxs("div",{className:"page",children:[a.jsxs("nav",{className:"breadcrumb","aria-label":"Breadcrumb",children:[a.jsx(F,{to:"/",children:"Home"}),a.jsx("span",{children:" / "}),a.jsx(F,{to:"/organizations",children:"Organizations"}),a.jsx("span",{children:" / "}),a.jsx("span",{children:(e==null?void 0:e.name)??t}),i&&a.jsxs(a.Fragment,{children:[a.jsx("span",{children:" / "}),a.jsx("span",{children:v(i.name,i.slug)})]})]}),a.jsxs("header",{className:"organization-hero",children:[a.jsxs("div",{className:"organization-hero-profile",children:[a.jsx("div",{className:"organizations-eyebrow",children:"ORGANIZATION"}),a.jsxs("h1",{className:`feed-title organization-hero-title${e&&!m&&Z(e.name)?" organization-hero-title--long":""}`,children:[e!=null&&e.logo_url&&!w?a.jsx("img",{src:e.logo_url,alt:"",width:58,height:58,onError:()=>u(!0)}):e?a.jsx("span",{className:"organization-hero-monogram","aria-hidden":"true",children:(m??e.name).slice(0,1).toUpperCase()}):null,e?a.jsxs("span",{className:"organization-hero-name",children:[m??e.name,m&&a.jsx("span",{className:"organization-hero-full-name",children:e.name})]}):a.jsx(K,{className:"h-12 w-64"})]}),e&&a.jsx(R,{kind:"organization",entityId:e.id}),e&&a.jsxs("div",{className:"feed-subtitle",children:[((b=e.paper_count)==null?void 0:b.toLocaleString())??0," papers",(e.organization_trending_score??0)>0&&e.trending_rank&&a.jsxs(a.Fragment,{children:[" · #",e.trending_rank," trending this month"]})]}),(e==null?void 0:e.description)&&a.jsx(q,{className:"method-description",text:e.description}),e&&a.jsxs("div",{className:"organization-hero-links",children:[e.website_url&&a.jsx("a",{href:e.website_url,target:"_blank",rel:"noreferrer",children:"Website ↗"}),e.hf_url&&a.jsx("a",{href:e.hf_url,target:"_blank",rel:"noreferrer",children:"Hugging Face ↗"}),e.github_url&&a.jsx("a",{href:e.github_url,target:"_blank",rel:"noreferrer",children:"GitHub ↗"})]})]}),a.jsx(B,{organizationSlug:t,organizationName:(e==null?void 0:e.name)??t})]}),a.jsx(S,{feed:c,style:{alignItems:"center",gap:16},leading:a.jsx("div",{style:{minWidth:260},children:a.jsx(D,{value:n??"__all__",onChange:A,placeholder:"All tasks",searchPlaceholder:"Search organization tasks...",emptyMessage:"No matching tasks.",ariaLabel:"Filter papers by task",selectedOption:i?{value:i.slug,label:i.label,description:`${i.paper_count.toLocaleString()} ${i.paper_count===1?"paper":"papers"}`}:{value:"__all__",label:"All tasks",description:`${((N=e==null?void 0:e.paper_count)==null?void 0:N.toLocaleString())??0} papers`},queryKey:["organization-task-options",t],queryFn:async s=>{var o;return[{value:"__all__",label:"All tasks",description:`${((o=e==null?void 0:e.paper_count)==null?void 0:o.toLocaleString())??0} papers`},...M(s)]},enabled:!l.isLoading,className:"h-[38px]"})}),children:a.jsxs("div",{className:"results-count",children:[T.toLocaleString()," papers"]})}),a.jsx(W,{query:p,cards:O,showInstitution:!1,empty:(e==null?void 0:e.paper_count)===0?"No papers indexed yet":"No papers found for this selection."})]})},Qe=()=>{const{orgSlug:t,taskSlug:n}=E();return t?a.jsx(ee,{organizationSlug:t,taskSlug:n}):a.jsx(k,{})};export{Qe as default};
assets/{OrganizationsIndexView-_ZvSj6MP.js → OrganizationsIndexView-DcNR5yt2.js} RENAMED
@@ -1 +1 @@
1
- import{f as g,b as x,i as h,j as e,L as u,v as j}from"./index-2xE415-f.js";import{A as N,a as y}from"./alert-CMc00cqX.js";import{u as f}from"./useDocumentTitle-_d-BLODt.js";import{I as _}from"./pageTitles-CFPKZULe.js";const v=n=>n==="papers"||n==="name"?n:"trending",z=({organization:n})=>{const[d,i]=h.useState(!1);return!n.logo_url||d?e.jsx("span",{className:"organization-logo organization-logo--fallback","aria-hidden":"true",children:n.name.slice(0,1).toUpperCase()}):e.jsx("span",{className:"organization-logo",children:e.jsx("img",{src:n.logo_url,alt:"",width:48,height:48,onError:()=>i(!0)})})},C=()=>{f(_.organizations);const[n,d]=g(),i=v(n.get("sort")),c=n.get("q")??"",o=x(j.organizationIndex()),p=s=>{const a=new URLSearchParams(n),t=s.sort??i,r=s.query??c;t==="trending"?a.delete("sort"):a.set("sort",t),r.trim()?a.set("q",r):a.delete("q"),d(a)},m=h.useMemo(()=>{var t;const s=c.trim().toLocaleLowerCase(),a=(((t=o.data)==null?void 0:t.results)??[]).filter(r=>[r.name,r.slug,r.hf_slug??""].join(" ").toLocaleLowerCase().includes(s));return i==="papers"?[...a].sort((r,l)=>(l.paper_count??0)-(r.paper_count??0)||r.name.localeCompare(l.name)||r.slug.localeCompare(l.slug)):i==="name"?[...a].sort((r,l)=>r.name.localeCompare(l.name)||r.slug.localeCompare(l.slug)):a},[o.data,c,i]);return e.jsxs("div",{className:"page organizations-page",children:[e.jsx("div",{className:"feed-header",children:e.jsxs("div",{children:[e.jsxs("h1",{className:"feed-title",children:["AI ",e.jsx("em",{children:"Organizations"})]}),e.jsx("div",{className:"feed-subtitle",children:"Explore papers from leading AI organizations, ranked by sustained community momentum over the past 30 days."})]})}),e.jsxs("section",{"aria-labelledby":"organizations-heading",children:[e.jsxs("div",{className:"organizations-section-heading",children:[e.jsx("h2",{id:"organizations-heading",children:o.data?`${o.data.count.toLocaleString()} organizations`:"Organizations"}),e.jsx("span",{children:i==="trending"?"Ranked by 30-day momentum":i==="papers"?"Sorted by linked papers":"Sorted A–Z"})]}),e.jsxs("div",{className:"organizations-controls",children:[e.jsxs("label",{children:[e.jsx("span",{className:"sr-only",children:"Search organizations"}),e.jsx("input",{type:"search",value:c,onChange:s=>p({query:s.target.value}),placeholder:"Search organizations"})]}),e.jsx("div",{className:"organizations-sort","aria-label":"Sort organizations",children:[["trending","Trending"],["papers","Most papers"],["name","A–Z"]].map(([s,a])=>e.jsx("button",{type:"button",className:i===s?"active":"","aria-pressed":i===s,onClick:()=>p({sort:s}),children:a},s))})]}),o.isLoading?e.jsx("div",{className:"organizations-grid","aria-busy":"true","aria-label":"Loading organizations",children:Array.from({length:12}).map((s,a)=>e.jsxs("div",{className:"organization-card organization-card-skeleton",children:[e.jsxs("div",{className:"organization-card-header",children:[e.jsx("span",{className:"organization-logo"}),e.jsxs("div",{children:[e.jsx("span",{className:"organization-skeleton-line"}),e.jsx("span",{className:"organization-skeleton-line short"})]})]}),e.jsx("div",{className:"organization-card-metrics",children:e.jsx("span",{className:"organization-skeleton-line short"})}),e.jsxs("div",{className:"organization-highlight",children:[e.jsx("span",{className:"organization-skeleton-line"}),e.jsx("span",{className:"organization-skeleton-line"})]})]},a))}):o.error?e.jsx(N,{variant:"destructive",children:e.jsxs(y,{children:["Failed to load organizations."," ",e.jsx("button",{type:"button",onClick:()=>o.refetch(),children:"Try again"})]})}):m.length===0?e.jsxs("div",{className:"organizations-empty",children:["No organizations match “",c,"”."]}):e.jsx("div",{className:"organizations-grid",children:m.map(s=>{var r;const a=s.paper_count??0,t=s.first_paper_year&&s.latest_paper_year?s.first_paper_year===s.latest_paper_year?String(s.first_paper_year):`${s.first_paper_year}–${s.latest_paper_year}`:null;return e.jsxs(u,{to:`/orgs/${s.slug}`,className:"organization-card","aria-label":a?`Browse ${a.toLocaleString()} ${s.name} papers`:`Browse ${s.name} papers`,children:[e.jsxs("div",{className:"organization-card-header",children:[e.jsx(z,{organization:s}),e.jsxs("div",{children:[e.jsx("h3",{children:s.name}),e.jsxs("span",{children:["@",s.hf_slug??s.slug]})]})]}),e.jsxs("div",{className:"organization-card-metrics",children:[e.jsx("strong",{children:a.toLocaleString()}),e.jsx("span",{children:a===1?"paper":"papers"}),i==="trending"&&s.trending_rank&&e.jsxs("span",{className:"organization-rank",children:["#",s.trending_rank]})]}),e.jsxs("div",{className:"organization-highlight",children:[e.jsx("span",{children:"Trending paper"}),e.jsx("strong",{children:((r=s.top_trending_paper)==null?void 0:r.title)??"No papers indexed yet"})]}),e.jsxs("div",{className:"organization-card-footer",children:[t?`Publishing ${t}`:"Research archive ready",e.jsx("span",{"aria-hidden":"true",children:"↗"})]})]},s.id)})})]})]})};export{C as default};
 
1
+ import{f as g,b as x,i as h,j as e,L as u,v as j}from"./index-CqLopXcE.js";import{A as N,a as y}from"./alert-C8kkxn4G.js";import{u as f}from"./useDocumentTitle-xBtc80OB.js";import{I as _}from"./pageTitles-BDUuOvJf.js";const v=n=>n==="papers"||n==="name"?n:"trending",z=({organization:n})=>{const[d,i]=h.useState(!1);return!n.logo_url||d?e.jsx("span",{className:"organization-logo organization-logo--fallback","aria-hidden":"true",children:n.name.slice(0,1).toUpperCase()}):e.jsx("span",{className:"organization-logo",children:e.jsx("img",{src:n.logo_url,alt:"",width:48,height:48,onError:()=>i(!0)})})},C=()=>{f(_.organizations);const[n,d]=g(),i=v(n.get("sort")),c=n.get("q")??"",o=x(j.organizationIndex()),p=s=>{const a=new URLSearchParams(n),t=s.sort??i,r=s.query??c;t==="trending"?a.delete("sort"):a.set("sort",t),r.trim()?a.set("q",r):a.delete("q"),d(a)},m=h.useMemo(()=>{var t;const s=c.trim().toLocaleLowerCase(),a=(((t=o.data)==null?void 0:t.results)??[]).filter(r=>[r.name,r.slug,r.hf_slug??""].join(" ").toLocaleLowerCase().includes(s));return i==="papers"?[...a].sort((r,l)=>(l.paper_count??0)-(r.paper_count??0)||r.name.localeCompare(l.name)||r.slug.localeCompare(l.slug)):i==="name"?[...a].sort((r,l)=>r.name.localeCompare(l.name)||r.slug.localeCompare(l.slug)):a},[o.data,c,i]);return e.jsxs("div",{className:"page organizations-page",children:[e.jsx("div",{className:"feed-header",children:e.jsxs("div",{children:[e.jsxs("h1",{className:"feed-title",children:["AI ",e.jsx("em",{children:"Organizations"})]}),e.jsx("div",{className:"feed-subtitle",children:"Explore papers from leading AI organizations, ranked by sustained community momentum over the past 30 days."})]})}),e.jsxs("section",{"aria-labelledby":"organizations-heading",children:[e.jsxs("div",{className:"organizations-section-heading",children:[e.jsx("h2",{id:"organizations-heading",children:o.data?`${o.data.count.toLocaleString()} organizations`:"Organizations"}),e.jsx("span",{children:i==="trending"?"Ranked by 30-day momentum":i==="papers"?"Sorted by linked papers":"Sorted A–Z"})]}),e.jsxs("div",{className:"organizations-controls",children:[e.jsxs("label",{children:[e.jsx("span",{className:"sr-only",children:"Search organizations"}),e.jsx("input",{type:"search",value:c,onChange:s=>p({query:s.target.value}),placeholder:"Search organizations"})]}),e.jsx("div",{className:"organizations-sort","aria-label":"Sort organizations",children:[["trending","Trending"],["papers","Most papers"],["name","A–Z"]].map(([s,a])=>e.jsx("button",{type:"button",className:i===s?"active":"","aria-pressed":i===s,onClick:()=>p({sort:s}),children:a},s))})]}),o.isLoading?e.jsx("div",{className:"organizations-grid","aria-busy":"true","aria-label":"Loading organizations",children:Array.from({length:12}).map((s,a)=>e.jsxs("div",{className:"organization-card organization-card-skeleton",children:[e.jsxs("div",{className:"organization-card-header",children:[e.jsx("span",{className:"organization-logo"}),e.jsxs("div",{children:[e.jsx("span",{className:"organization-skeleton-line"}),e.jsx("span",{className:"organization-skeleton-line short"})]})]}),e.jsx("div",{className:"organization-card-metrics",children:e.jsx("span",{className:"organization-skeleton-line short"})}),e.jsxs("div",{className:"organization-highlight",children:[e.jsx("span",{className:"organization-skeleton-line"}),e.jsx("span",{className:"organization-skeleton-line"})]})]},a))}):o.error?e.jsx(N,{variant:"destructive",children:e.jsxs(y,{children:["Failed to load organizations."," ",e.jsx("button",{type:"button",onClick:()=>o.refetch(),children:"Try again"})]})}):m.length===0?e.jsxs("div",{className:"organizations-empty",children:["No organizations match “",c,"”."]}):e.jsx("div",{className:"organizations-grid",children:m.map(s=>{var r;const a=s.paper_count??0,t=s.first_paper_year&&s.latest_paper_year?s.first_paper_year===s.latest_paper_year?String(s.first_paper_year):`${s.first_paper_year}–${s.latest_paper_year}`:null;return e.jsxs(u,{to:`/orgs/${s.slug}`,className:"organization-card","aria-label":a?`Browse ${a.toLocaleString()} ${s.name} papers`:`Browse ${s.name} papers`,children:[e.jsxs("div",{className:"organization-card-header",children:[e.jsx(z,{organization:s}),e.jsxs("div",{children:[e.jsx("h3",{children:s.name}),e.jsxs("span",{children:["@",s.hf_slug??s.slug]})]})]}),e.jsxs("div",{className:"organization-card-metrics",children:[e.jsx("strong",{children:a.toLocaleString()}),e.jsx("span",{children:a===1?"paper":"papers"}),i==="trending"&&s.trending_rank&&e.jsxs("span",{className:"organization-rank",children:["#",s.trending_rank]})]}),e.jsxs("div",{className:"organization-highlight",children:[e.jsx("span",{children:"Trending paper"}),e.jsx("strong",{children:((r=s.top_trending_paper)==null?void 0:r.title)??"No papers indexed yet"})]}),e.jsxs("div",{className:"organization-card-footer",children:[t?`Publishing ${t}`:"Research archive ready",e.jsx("span",{"aria-hidden":"true",children:"↗"})]})]},s.id)})})]})]})};export{C as default};
assets/{PaperCard-Do-fUKOE.js → PaperCard-CpWKB_q0.js} RENAMED
@@ -1 +1 @@
1
- import{o as M,ab as g,M as L,j as a,L as d}from"./index-2xE415-f.js";import{A as Z}from"./AuthorAvatar-D53WcphF.js";import{P as k,S as A,T as P,M as y}from"./SotaBadges-Cy5KKcKe.js";import{I as C}from"./Icon-DQoMmS2z.js";import{L as E,a as U}from"./LatexTitle-CIj5wiaM.js";import{s as h}from"./safeExternalHref-CkBrsh84.js";const $=({size:s=16})=>a.jsxs("svg",{className:"hf-logo",width:s,height:s,viewBox:"0 0 95 88",fill:"none","aria-hidden":"true",focusable:"false",children:[a.jsx("path",{fill:"#FFD21E",d:"M47.21 76.5a34.75 34.75 0 1 0 0-69.5 34.75 34.75 0 0 0 0 69.5Z"}),a.jsx("path",{fill:"#FF9D0B",d:"M81.96 41.75a34.75 34.75 0 1 0-69.5 0 34.75 34.75 0 0 0 69.5 0Zm-73.5 0a38.75 38.75 0 1 1 77.5 0 38.75 38.75 0 0 1-77.5 0Z"}),a.jsx("path",{fill:"#3A3B45",d:"M58.5 32.3c1.28.44 1.78 3.06 3.07 2.38a5 5 0 1 0-6.76-2.07c.61 1.15 2.55-.72 3.7-.32ZM34.95 32.3c-1.28.44-1.79 3.06-3.07 2.38a5 5 0 1 1 6.76-2.07c-.61 1.15-2.56-.72-3.7-.32Z"}),a.jsx("path",{fill:"#FF323D",d:"M46.96 56.29c9.83 0 13-8.76 13-13.26 0-2.34-1.57-1.6-4.09-.36-2.33 1.15-5.46 2.74-8.9 2.74-7.19 0-13-6.88-13-2.38s3.16 13.26 13 13.26Z"}),a.jsx("path",{fill:"#3A3B45",fillRule:"evenodd",clipRule:"evenodd",d:"M39.43 54a8.7 8.7 0 0 1 5.3-4.49c.4-.12.81.57 1.24 1.28.4.68.82 1.37 1.24 1.37.45 0 .9-.68 1.33-1.35.45-.7.89-1.38 1.32-1.25a8.61 8.61 0 0 1 5 4.17c3.73-2.94 5.1-7.74 5.1-10.7 0-2.34-1.57-1.6-4.09-.36l-.14.07c-2.31 1.15-5.39 2.67-8.77 2.67s-6.45-1.52-8.77-2.67c-2.6-1.29-4.23-2.1-4.23.29 0 3.05 1.46 8.06 5.47 10.97Z"}),a.jsx("path",{fill:"#FF9D0B",d:"M70.71 37a3.25 3.25 0 1 0 0-6.5 3.25 3.25 0 0 0 0 6.5ZM24.21 37a3.25 3.25 0 1 0 0-6.5 3.25 3.25 0 0 0 0 6.5ZM17.52 48c-1.62 0-3.06.66-4.07 1.87a5.97 5.97 0 0 0-1.33 3.76 7.1 7.1 0 0 0-1.94-.3c-1.55 0-2.95.59-3.94 1.66a5.8 5.8 0 0 0-.8 7 5.3 5.3 0 0 0-1.79 2.82c-.24.9-.48 2.8.8 4.74a5.22 5.22 0 0 0-.37 5.02c1.02 2.32 3.57 4.14 8.52 6.1 3.07 1.22 5.89 2 5.91 2.01a44.33 44.33 0 0 0 10.93 1.6c5.86 0 10.05-1.8 12.46-5.34 3.88-5.69 3.33-10.9-1.7-15.92-2.77-2.78-4.62-6.87-5-7.77-.78-2.66-2.84-5.62-6.25-5.62a5.7 5.7 0 0 0-4.6 2.46c-1-1.26-1.98-2.25-2.86-2.82A7.4 7.4 0 0 0 17.52 48Zm0 4c.51 0 1.14.22 1.82.65 2.14 1.36 6.25 8.43 7.76 11.18.5.92 1.37 1.31 2.14 1.31 1.55 0 2.75-1.53.15-3.48-3.92-2.93-2.55-7.72-.68-8.01.08-.02.17-.02.24-.02 1.7 0 2.45 2.93 2.45 2.93s2.2 5.52 5.98 9.3c3.77 3.77 3.97 6.8 1.22 10.83-1.88 2.75-5.47 3.58-9.16 3.58-3.81 0-7.73-.9-9.92-1.46-.11-.03-13.45-3.8-11.76-7 .28-.54.75-.76 1.34-.76 2.38 0 6.7 3.54 8.57 3.54.41 0 .7-.17.83-.6.79-2.85-12.06-4.05-10.98-8.17.2-.73.71-1.02 1.44-1.02 3.14 0 10.2 5.53 11.68 5.53.11 0 .2-.03.24-.1.74-1.2.33-2.04-4.9-5.2-5.21-3.16-8.88-5.06-6.8-7.33.24-.26.58-.38 1-.38 3.17 0 10.66 6.82 10.66 6.82s2.02 2.1 3.25 2.1c.28 0 .52-.1.68-.38.86-1.46-8.06-8.22-8.56-11.01-.34-1.9.24-2.85 1.31-2.85Z"}),a.jsx("path",{fill:"#FFD21E",d:"M38.6 76.69c2.75-4.04 2.55-7.07-1.22-10.84-3.78-3.77-5.98-9.3-5.98-9.3s-.82-3.2-2.69-2.9c-1.87.3-3.24 5.08.68 8.01 3.91 2.93-.78 4.92-2.29 2.17-1.5-2.75-5.62-9.82-7.76-11.18-2.13-1.35-3.63-.6-3.13 2.2.5 2.79 9.43 9.55 8.56 11-.87 1.47-3.93-1.71-3.93-1.71s-9.57-8.71-11.66-6.44c-2.08 2.27 1.59 4.17 6.8 7.33 5.23 3.16 5.64 4 4.9 5.2-.75 1.2-12.28-8.53-13.36-4.4-1.08 4.11 11.77 5.3 10.98 8.15-.8 2.85-9.06-5.38-10.74-2.18-1.7 3.21 11.65 6.98 11.76 7.01 4.3 1.12 15.25 3.49 19.08-2.12Z"}),a.jsx("path",{fill:"#FF9D0B",d:"M77.4 48c1.62 0 3.07.66 4.07 1.87a5.97 5.97 0 0 1 1.33 3.76 7.1 7.1 0 0 1 1.95-.3c1.55 0 2.95.59 3.94 1.66a5.8 5.8 0 0 1 .8 7 5.3 5.3 0 0 1 1.78 2.82c.24.9.48 2.8-.8 4.74a5.22 5.22 0 0 1 .37 5.02c-1.02 2.32-3.57 4.14-8.51 6.1-3.08 1.22-5.9 2-5.92 2.01a44.33 44.33 0 0 1-10.93 1.6c-5.86 0-10.05-1.8-12.46-5.34-3.88-5.69-3.33-10.9 1.7-15.92 2.78-2.78 4.63-6.87 5.01-7.77.78-2.66 2.83-5.62 6.24-5.62a5.7 5.7 0 0 1 4.6 2.46c1-1.26 1.98-2.25 2.87-2.82A7.4 7.4 0 0 1 77.4 48Zm0 4c-.51 0-1.13.22-1.82.65-2.13 1.36-6.25 8.43-7.76 11.18a2.43 2.43 0 0 1-2.14 1.31c-1.54 0-2.75-1.53-.14-3.48 3.91-2.93 2.54-7.72.67-8.01a1.54 1.54 0 0 0-.24-.02c-1.7 0-2.45 2.93-2.45 2.93s-2.2 5.52-5.97 9.3c-3.78 3.77-3.98 6.8-1.22 10.83 1.87 2.75 5.47 3.58 9.15 3.58 3.82 0 7.73-.9 9.93-1.46.1-.03 13.45-3.8 11.76-7-.29-.54-.75-.76-1.34-.76-2.38 0-6.71 3.54-8.57 3.54-.42 0-.71-.17-.83-.6-.8-2.85 12.05-4.05 10.97-8.17-.19-.73-.7-1.02-1.44-1.02-3.14 0-10.2 5.53-11.68 5.53-.1 0-.19-.03-.23-.1-.74-1.2-.34-2.04 4.88-5.2 5.23-3.16 8.9-5.06 6.8-7.33-.23-.26-.57-.38-.98-.38-3.18 0-10.67 6.82-10.67 6.82s-2.02 2.1-3.24 2.1a.74.74 0 0 1-.68-.38c-.87-1.46 8.05-8.22 8.55-11.01.34-1.9-.24-2.85-1.31-2.85Z"}),a.jsx("path",{fill:"#FFD21E",d:"M56.33 76.69c-2.75-4.04-2.56-7.07 1.22-10.84 3.77-3.77 5.97-9.3 5.97-9.3s.82-3.2 2.7-2.9c1.86.3 3.23 5.08-.68 8.01-3.92 2.93.78 4.92 2.28 2.17 1.51-2.75 5.63-9.82 7.76-11.18 2.13-1.35 3.64-.6 3.13 2.2-.5 2.79-9.42 9.55-8.55 11 .86 1.47 3.92-1.71 3.92-1.71s9.58-8.71 11.66-6.44c2.08 2.27-1.58 4.17-6.8 7.33-5.23 3.16-5.63 4-4.9 5.2.75 1.2 12.28-8.53 13.36-4.4 1.08 4.11-11.76 5.3-10.97 8.15.8 2.85 9.05-5.38 10.74-2.18 1.69 3.21-11.65 6.98-11.76 7.01-4.31 1.12-15.26 3.49-19.08-2.12Z"})]});function w(s){const t=[...new Set(s.map(n=>n.replace(/ \(subtask\)$/,"")))],l=t.length>3?[...t.slice(0,2),`${t.length-2} more`]:t;return l.length>1?`${l.slice(0,-1).join(", ")} and ${l[l.length-1]}`:l[0]}const z="language-modeling";function N(s){return s?s.toLowerCase().replace(/\(.*?\)/g," ").replace(/[^a-z]+/g," ").replace(/\bllm\b/g," ").replace(/\s+/g," ").trim().replace(/s$/,""):""}function B(s){return N(s.slug)==="large language model"||N(s.name)==="large language model"}function D(s){return s.tags.includes(z)?s.methods.filter(t=>!B(t)):s.methods}const S=({name:s,slug:t,logoUrl:l})=>{const[n,r]=g.useState(!1);return!l||n?null:a.jsx(d,{to:`/orgs/${t}`,className:"paper-organization-logo","aria-label":`View ${s} organization`,title:s,children:a.jsx("img",{src:l,alt:"",onError:()=>r(!0)})})},O=({paper:s,priority:t=!1,showInstitution:l=!0,highlightQuery:n,followReasons:r,isNew:m=!1})=>{const x=M(),u=`/paper/${s.id}`,i=g.useCallback(()=>{x.prefetchQuery(L.detail(s.id))},[s.id,x]),v=s.authors.slice(0,3).map((e,o)=>{var p,F;const f=(p=s.authorIds)==null?void 0:p[o],b=(F=s.authorHfProfiles)==null?void 0:F[o];return a.jsxs(g.Fragment,{children:[o>0&&", ",b&&a.jsx(Z,{className:"paper-card-author-avatar",url:b.avatarUrl}),f?a.jsx(d,{to:`/authors/${f}`,children:e}):e]},o)}),c=s.authors.length,j=D(s);return a.jsxs("article",{className:"paper-card",children:[a.jsx(d,{to:u,className:"paper-thumb-wrap",onFocus:i,onMouseEnter:i,children:a.jsx(k,{paperId:s.id,title:s.title,thumbnailUrl:s.thumbnailUrl,priority:t})}),a.jsxs("div",{className:"paper-body",children:[a.jsxs("div",{className:"paper-body-main",children:[(m||r&&r.length>0)&&a.jsxs("div",{className:"paper-follow-reason",children:[m&&a.jsx("span",{className:"paper-new-chip",children:"New"}),r&&r.length>0&&a.jsxs(a.Fragment,{children:["Because you follow ",w(r)]})]}),a.jsxs("h3",{className:"paper-title",children:[a.jsx(d,{to:u,onFocus:i,onMouseEnter:i,children:a.jsx(E,{title:s.title,highlight:n})}),l&&s.organizations.length>0&&a.jsx("span",{className:"paper-organization-logos",children:s.organizations.map(e=>a.jsx(S,{...e},e.slug))})]}),a.jsxs("div",{className:"paper-authors",children:[v,c>3&&a.jsxs("span",{children:[", ","+",c-3," authors"]}),s.date&&a.jsxs(a.Fragment,{children:[c>0?" · ":"",a.jsx("span",{children:s.date})]}),s.citations>0&&a.jsxs(a.Fragment,{children:[c>0||s.date?" · ":"",a.jsxs("span",{children:[s.citations.toLocaleString()," citations"]})]})]}),s.abstract&&a.jsx("p",{className:"paper-abstract",children:a.jsx(U,{text:s.abstract,highlight:n})}),s.sotaRanks.length>0&&a.jsx(A,{ranks:s.sotaRanks,paperHref:u}),(s.tags.length>0||j.length>0)&&a.jsxs("div",{className:"paper-tags paper-tags--clamped",children:[s.tags.map(e=>a.jsx(P,{slug:e},e)),j.map(e=>a.jsx(y,{method:e},e.id||e.slug||e.name))]})]}),(s.githubUrl||s.hfUrl)&&a.jsxs("div",{className:"paper-resources",children:[h(s.githubUrl)&&a.jsxs("a",{className:"paper-resource is-link",href:h(s.githubUrl)??void 0,target:"_blank",rel:"noopener noreferrer","aria-label":"Open GitHub repository",onClick:e=>e.stopPropagation(),children:[a.jsx(C,{name:"github",size:20}),s.velocity24h!=null&&s.velocity24h>0&&a.jsxs("span",{className:"resource-stat",children:[a.jsxs("span",{className:"resource-value",children:[a.jsx("span",{className:"gh-rate-arrow",children:"↑"}),s.velocity24h.toFixed(1)]}),a.jsx("span",{className:"resource-label",children:"stars / hr"})]})]}),h(s.hfUrl)&&s.hfKind&&a.jsxs("a",{className:"paper-resource is-link",href:h(s.hfUrl)??void 0,target:"_blank",rel:"noopener noreferrer","aria-label":`Open Hugging Face ${s.hfKind}`,onClick:e=>e.stopPropagation(),children:[a.jsx($,{size:20}),a.jsxs("span",{className:"resource-stat",children:[a.jsx("span",{className:"resource-value",children:s.hfCount}),a.jsx("span",{className:"resource-label",children:s.hfKind})]})]})]})]})]})};export{O as P};
 
1
+ import{o as M,ab as g,M as L,j as a,L as d}from"./index-CqLopXcE.js";import{A as Z}from"./AuthorAvatar-RLVSdcTr.js";import{P as k,S as A,T as P,M as y}from"./SotaBadges-CmYGMLyy.js";import{I as C}from"./Icon-BTX00T3U.js";import{L as E,a as U}from"./LatexTitle-C0en22SO.js";import{s as h}from"./safeExternalHref-CkBrsh84.js";const $=({size:s=16})=>a.jsxs("svg",{className:"hf-logo",width:s,height:s,viewBox:"0 0 95 88",fill:"none","aria-hidden":"true",focusable:"false",children:[a.jsx("path",{fill:"#FFD21E",d:"M47.21 76.5a34.75 34.75 0 1 0 0-69.5 34.75 34.75 0 0 0 0 69.5Z"}),a.jsx("path",{fill:"#FF9D0B",d:"M81.96 41.75a34.75 34.75 0 1 0-69.5 0 34.75 34.75 0 0 0 69.5 0Zm-73.5 0a38.75 38.75 0 1 1 77.5 0 38.75 38.75 0 0 1-77.5 0Z"}),a.jsx("path",{fill:"#3A3B45",d:"M58.5 32.3c1.28.44 1.78 3.06 3.07 2.38a5 5 0 1 0-6.76-2.07c.61 1.15 2.55-.72 3.7-.32ZM34.95 32.3c-1.28.44-1.79 3.06-3.07 2.38a5 5 0 1 1 6.76-2.07c-.61 1.15-2.56-.72-3.7-.32Z"}),a.jsx("path",{fill:"#FF323D",d:"M46.96 56.29c9.83 0 13-8.76 13-13.26 0-2.34-1.57-1.6-4.09-.36-2.33 1.15-5.46 2.74-8.9 2.74-7.19 0-13-6.88-13-2.38s3.16 13.26 13 13.26Z"}),a.jsx("path",{fill:"#3A3B45",fillRule:"evenodd",clipRule:"evenodd",d:"M39.43 54a8.7 8.7 0 0 1 5.3-4.49c.4-.12.81.57 1.24 1.28.4.68.82 1.37 1.24 1.37.45 0 .9-.68 1.33-1.35.45-.7.89-1.38 1.32-1.25a8.61 8.61 0 0 1 5 4.17c3.73-2.94 5.1-7.74 5.1-10.7 0-2.34-1.57-1.6-4.09-.36l-.14.07c-2.31 1.15-5.39 2.67-8.77 2.67s-6.45-1.52-8.77-2.67c-2.6-1.29-4.23-2.1-4.23.29 0 3.05 1.46 8.06 5.47 10.97Z"}),a.jsx("path",{fill:"#FF9D0B",d:"M70.71 37a3.25 3.25 0 1 0 0-6.5 3.25 3.25 0 0 0 0 6.5ZM24.21 37a3.25 3.25 0 1 0 0-6.5 3.25 3.25 0 0 0 0 6.5ZM17.52 48c-1.62 0-3.06.66-4.07 1.87a5.97 5.97 0 0 0-1.33 3.76 7.1 7.1 0 0 0-1.94-.3c-1.55 0-2.95.59-3.94 1.66a5.8 5.8 0 0 0-.8 7 5.3 5.3 0 0 0-1.79 2.82c-.24.9-.48 2.8.8 4.74a5.22 5.22 0 0 0-.37 5.02c1.02 2.32 3.57 4.14 8.52 6.1 3.07 1.22 5.89 2 5.91 2.01a44.33 44.33 0 0 0 10.93 1.6c5.86 0 10.05-1.8 12.46-5.34 3.88-5.69 3.33-10.9-1.7-15.92-2.77-2.78-4.62-6.87-5-7.77-.78-2.66-2.84-5.62-6.25-5.62a5.7 5.7 0 0 0-4.6 2.46c-1-1.26-1.98-2.25-2.86-2.82A7.4 7.4 0 0 0 17.52 48Zm0 4c.51 0 1.14.22 1.82.65 2.14 1.36 6.25 8.43 7.76 11.18.5.92 1.37 1.31 2.14 1.31 1.55 0 2.75-1.53.15-3.48-3.92-2.93-2.55-7.72-.68-8.01.08-.02.17-.02.24-.02 1.7 0 2.45 2.93 2.45 2.93s2.2 5.52 5.98 9.3c3.77 3.77 3.97 6.8 1.22 10.83-1.88 2.75-5.47 3.58-9.16 3.58-3.81 0-7.73-.9-9.92-1.46-.11-.03-13.45-3.8-11.76-7 .28-.54.75-.76 1.34-.76 2.38 0 6.7 3.54 8.57 3.54.41 0 .7-.17.83-.6.79-2.85-12.06-4.05-10.98-8.17.2-.73.71-1.02 1.44-1.02 3.14 0 10.2 5.53 11.68 5.53.11 0 .2-.03.24-.1.74-1.2.33-2.04-4.9-5.2-5.21-3.16-8.88-5.06-6.8-7.33.24-.26.58-.38 1-.38 3.17 0 10.66 6.82 10.66 6.82s2.02 2.1 3.25 2.1c.28 0 .52-.1.68-.38.86-1.46-8.06-8.22-8.56-11.01-.34-1.9.24-2.85 1.31-2.85Z"}),a.jsx("path",{fill:"#FFD21E",d:"M38.6 76.69c2.75-4.04 2.55-7.07-1.22-10.84-3.78-3.77-5.98-9.3-5.98-9.3s-.82-3.2-2.69-2.9c-1.87.3-3.24 5.08.68 8.01 3.91 2.93-.78 4.92-2.29 2.17-1.5-2.75-5.62-9.82-7.76-11.18-2.13-1.35-3.63-.6-3.13 2.2.5 2.79 9.43 9.55 8.56 11-.87 1.47-3.93-1.71-3.93-1.71s-9.57-8.71-11.66-6.44c-2.08 2.27 1.59 4.17 6.8 7.33 5.23 3.16 5.64 4 4.9 5.2-.75 1.2-12.28-8.53-13.36-4.4-1.08 4.11 11.77 5.3 10.98 8.15-.8 2.85-9.06-5.38-10.74-2.18-1.7 3.21 11.65 6.98 11.76 7.01 4.3 1.12 15.25 3.49 19.08-2.12Z"}),a.jsx("path",{fill:"#FF9D0B",d:"M77.4 48c1.62 0 3.07.66 4.07 1.87a5.97 5.97 0 0 1 1.33 3.76 7.1 7.1 0 0 1 1.95-.3c1.55 0 2.95.59 3.94 1.66a5.8 5.8 0 0 1 .8 7 5.3 5.3 0 0 1 1.78 2.82c.24.9.48 2.8-.8 4.74a5.22 5.22 0 0 1 .37 5.02c-1.02 2.32-3.57 4.14-8.51 6.1-3.08 1.22-5.9 2-5.92 2.01a44.33 44.33 0 0 1-10.93 1.6c-5.86 0-10.05-1.8-12.46-5.34-3.88-5.69-3.33-10.9 1.7-15.92 2.78-2.78 4.63-6.87 5.01-7.77.78-2.66 2.83-5.62 6.24-5.62a5.7 5.7 0 0 1 4.6 2.46c1-1.26 1.98-2.25 2.87-2.82A7.4 7.4 0 0 1 77.4 48Zm0 4c-.51 0-1.13.22-1.82.65-2.13 1.36-6.25 8.43-7.76 11.18a2.43 2.43 0 0 1-2.14 1.31c-1.54 0-2.75-1.53-.14-3.48 3.91-2.93 2.54-7.72.67-8.01a1.54 1.54 0 0 0-.24-.02c-1.7 0-2.45 2.93-2.45 2.93s-2.2 5.52-5.97 9.3c-3.78 3.77-3.98 6.8-1.22 10.83 1.87 2.75 5.47 3.58 9.15 3.58 3.82 0 7.73-.9 9.93-1.46.1-.03 13.45-3.8 11.76-7-.29-.54-.75-.76-1.34-.76-2.38 0-6.71 3.54-8.57 3.54-.42 0-.71-.17-.83-.6-.8-2.85 12.05-4.05 10.97-8.17-.19-.73-.7-1.02-1.44-1.02-3.14 0-10.2 5.53-11.68 5.53-.1 0-.19-.03-.23-.1-.74-1.2-.34-2.04 4.88-5.2 5.23-3.16 8.9-5.06 6.8-7.33-.23-.26-.57-.38-.98-.38-3.18 0-10.67 6.82-10.67 6.82s-2.02 2.1-3.24 2.1a.74.74 0 0 1-.68-.38c-.87-1.46 8.05-8.22 8.55-11.01.34-1.9-.24-2.85-1.31-2.85Z"}),a.jsx("path",{fill:"#FFD21E",d:"M56.33 76.69c-2.75-4.04-2.56-7.07 1.22-10.84 3.77-3.77 5.97-9.3 5.97-9.3s.82-3.2 2.7-2.9c1.86.3 3.23 5.08-.68 8.01-3.92 2.93.78 4.92 2.28 2.17 1.51-2.75 5.63-9.82 7.76-11.18 2.13-1.35 3.64-.6 3.13 2.2-.5 2.79-9.42 9.55-8.55 11 .86 1.47 3.92-1.71 3.92-1.71s9.58-8.71 11.66-6.44c2.08 2.27-1.58 4.17-6.8 7.33-5.23 3.16-5.63 4-4.9 5.2.75 1.2 12.28-8.53 13.36-4.4 1.08 4.11-11.76 5.3-10.97 8.15.8 2.85 9.05-5.38 10.74-2.18 1.69 3.21-11.65 6.98-11.76 7.01-4.31 1.12-15.26 3.49-19.08-2.12Z"})]});function w(s){const t=[...new Set(s.map(n=>n.replace(/ \(subtask\)$/,"")))],l=t.length>3?[...t.slice(0,2),`${t.length-2} more`]:t;return l.length>1?`${l.slice(0,-1).join(", ")} and ${l[l.length-1]}`:l[0]}const z="language-modeling";function N(s){return s?s.toLowerCase().replace(/\(.*?\)/g," ").replace(/[^a-z]+/g," ").replace(/\bllm\b/g," ").replace(/\s+/g," ").trim().replace(/s$/,""):""}function B(s){return N(s.slug)==="large language model"||N(s.name)==="large language model"}function D(s){return s.tags.includes(z)?s.methods.filter(t=>!B(t)):s.methods}const S=({name:s,slug:t,logoUrl:l})=>{const[n,r]=g.useState(!1);return!l||n?null:a.jsx(d,{to:`/orgs/${t}`,className:"paper-organization-logo","aria-label":`View ${s} organization`,title:s,children:a.jsx("img",{src:l,alt:"",onError:()=>r(!0)})})},O=({paper:s,priority:t=!1,showInstitution:l=!0,highlightQuery:n,followReasons:r,isNew:m=!1})=>{const x=M(),u=`/paper/${s.id}`,i=g.useCallback(()=>{x.prefetchQuery(L.detail(s.id))},[s.id,x]),v=s.authors.slice(0,3).map((e,o)=>{var p,F;const f=(p=s.authorIds)==null?void 0:p[o],b=(F=s.authorHfProfiles)==null?void 0:F[o];return a.jsxs(g.Fragment,{children:[o>0&&", ",b&&a.jsx(Z,{className:"paper-card-author-avatar",url:b.avatarUrl}),f?a.jsx(d,{to:`/authors/${f}`,children:e}):e]},o)}),c=s.authors.length,j=D(s);return a.jsxs("article",{className:"paper-card",children:[a.jsx(d,{to:u,className:"paper-thumb-wrap",onFocus:i,onMouseEnter:i,children:a.jsx(k,{paperId:s.id,title:s.title,thumbnailUrl:s.thumbnailUrl,priority:t})}),a.jsxs("div",{className:"paper-body",children:[a.jsxs("div",{className:"paper-body-main",children:[(m||r&&r.length>0)&&a.jsxs("div",{className:"paper-follow-reason",children:[m&&a.jsx("span",{className:"paper-new-chip",children:"New"}),r&&r.length>0&&a.jsxs(a.Fragment,{children:["Because you follow ",w(r)]})]}),a.jsxs("h3",{className:"paper-title",children:[a.jsx(d,{to:u,onFocus:i,onMouseEnter:i,children:a.jsx(E,{title:s.title,highlight:n})}),l&&s.organizations.length>0&&a.jsx("span",{className:"paper-organization-logos",children:s.organizations.map(e=>a.jsx(S,{...e},e.slug))})]}),a.jsxs("div",{className:"paper-authors",children:[v,c>3&&a.jsxs("span",{children:[", ","+",c-3," authors"]}),s.date&&a.jsxs(a.Fragment,{children:[c>0?" · ":"",a.jsx("span",{children:s.date})]}),s.citations>0&&a.jsxs(a.Fragment,{children:[c>0||s.date?" · ":"",a.jsxs("span",{children:[s.citations.toLocaleString()," citations"]})]})]}),s.abstract&&a.jsx("p",{className:"paper-abstract",children:a.jsx(U,{text:s.abstract,highlight:n})}),s.sotaRanks.length>0&&a.jsx(A,{ranks:s.sotaRanks,paperHref:u}),(s.tags.length>0||j.length>0)&&a.jsxs("div",{className:"paper-tags paper-tags--clamped",children:[s.tags.map(e=>a.jsx(P,{slug:e},e)),j.map(e=>a.jsx(y,{method:e},e.id||e.slug||e.name))]})]}),(s.githubUrl||s.hfUrl)&&a.jsxs("div",{className:"paper-resources",children:[h(s.githubUrl)&&a.jsxs("a",{className:"paper-resource is-link",href:h(s.githubUrl)??void 0,target:"_blank",rel:"noopener noreferrer","aria-label":"Open GitHub repository",onClick:e=>e.stopPropagation(),children:[a.jsx(C,{name:"github",size:20}),s.velocity24h!=null&&s.velocity24h>0&&a.jsxs("span",{className:"resource-stat",children:[a.jsxs("span",{className:"resource-value",children:[a.jsx("span",{className:"gh-rate-arrow",children:"↑"}),s.velocity24h.toFixed(1)]}),a.jsx("span",{className:"resource-label",children:"stars / hr"})]})]}),h(s.hfUrl)&&s.hfKind&&a.jsxs("a",{className:"paper-resource is-link",href:h(s.hfUrl)??void 0,target:"_blank",rel:"noopener noreferrer","aria-label":`Open Hugging Face ${s.hfKind}`,onClick:e=>e.stopPropagation(),children:[a.jsx($,{size:20}),a.jsxs("span",{className:"resource-stat",children:[a.jsx("span",{className:"resource-value",children:s.hfCount}),a.jsx("span",{className:"resource-label",children:s.hfKind})]})]})]})]})]})};export{O as P};
assets/{PaperDetailView--GX78457.js → PaperDetailView-BQUJfM_c.js} RENAMED
@@ -1,4 +1,4 @@
1
- import{d as Pe,b as O,F as Ys,G as ne,I as Js,n as Jt,J as K,i as x,K as Zs,M as me,B as z,N as mt,j as e,C as ht,o as Q,v as V,O as we,P as $e,X as Zt,Q as ea,R as es,S as J,U as ts,V as fe,W as pe,Y as ss,Z as pt,_ as Ce,$ as it,a0 as At,a1 as ta,a2 as sa,L as H,a3 as aa,a4 as ra,a5 as na,a6 as ia,a7 as as,a8 as oa,l as la,a9 as ca,A as Se,x as da,a as Re,aa as rs,ab as Ee,ac as It,k as ns,ad as ua,ae as ma,u as ha,af as Lt,ag as pa,ah as Tt,ai as fa,E as Dt,aj as ga,ak as xa,al as ba,am as ja,an as va,ao as _a,ap as ya}from"./index-2xE415-f.js";import{u as Y}from"./useMutation-BcnLcaMd.js";import{I as D}from"./Icon-DQoMmS2z.js";import{T as ka,M as Na,S as wa,P as Ca}from"./SotaBadges-Cy5KKcKe.js";import{L as ke,a as ot}from"./LatexTitle-CIj5wiaM.js";import{u as is}from"./preferences-BPB6rcxH.js";import{s as Sa,a as Ea}from"./transform-krmE0Oxv.js";import{r as os,p as Pa}from"./paperReader-D1y30HyW.js";import{u as $a,f as Ra}from"./useDocumentTitle-_d-BLODt.js";import{s as W}from"./safeExternalHref-CkBrsh84.js";import{m as Aa}from"./mlIntern-CUgKrjLX.js";import{S as he}from"./skeleton-7Kak9gS9.js";import{A as Ia,a as La}from"./alert-CMc00cqX.js";import{B as L}from"./button-Ow7LPhoW.js";import{D as Ae,a as Ie,c as Le,b as Te,d as De,e as ft}from"./dialog-Bk_CUlgJ.js";import{A as Ta,a as Da}from"./AgentLogos-DmfyY5wp.js";import{C as Fa}from"./copy-COezQGP9.js";import{i as ls,a as cs,r as Ua,b as za,e as Ma,p as Ba}from"./cacheSync-C3q_x9UG.js";import{I as U}from"./input-BMQ_TuLd.js";import{S as Ft}from"./searchable-select-B_-gAqcr.js";import{L as gt}from"./loader-circle-CmbX91bp.js";import{T as Fe}from"./trash-2-cqcsUQJn.js";import{S as ds,L as q,a as Ha}from"./SignInToEditDialog-TqUvJJvy.js";import{u as ve}from"./useQueries-r_pw4lYy.js";import{s as us,p as ms}from"./submissions-1Rk-8Ke6.js";import{D as Oa}from"./database-B8UhKmRp.js";import{P as ge}from"./plus-C20t97Ow.js";import{S as lt}from"./search-DfIPA_iX.js";import{B as qa}from"./badge-C3csz_-c.js";import{n as Ga,C as Xa}from"./CatalogEntityPreviewLink-Br2W1MKt.js";import{G as Ka}from"./globe-CT4vHjcD.js";import{G as Qa}from"./github-CknlAJTS.js";import{u as hs}from"./index-Df3nFJJR.js";import{C as Va,E as Wa}from"./ExternalSourceEvalBadge-DVDMif98.js";import{M as Ya}from"./index-CqH2_Dpk.js";import{r as Ja}from"./index-BHTJgSQg.js";import{u as Za}from"./useIntersectionObserver-BjZh7B9X.js";import{S as Ut,s as er}from"./savedPapersAuth-CEGk1D0G.js";import{o as tr}from"./organizationNames-BVKzYEBp.js";import{A as sr}from"./AuthorAvatar-D53WcphF.js";import"./colors-BkWRhvFI.js";import"./popover-qWW92hSh.js";import"./textarea-DNcp7UYC.js";import"./hover-card-CZZ0A1FG.js";/**
2
  * @license lucide-react v0.462.0 - ISC
3
  *
4
  * This source code is licensed under the ISC license.
 
1
+ import{d as Pe,b as O,F as Ys,G as ne,I as Js,n as Jt,J as K,i as x,K as Zs,M as me,B as z,N as mt,j as e,C as ht,o as Q,v as V,O as we,P as $e,X as Zt,Q as ea,R as es,S as J,U as ts,V as fe,W as pe,Y as ss,Z as pt,_ as Ce,$ as it,a0 as At,a1 as ta,a2 as sa,L as H,a3 as aa,a4 as ra,a5 as na,a6 as ia,a7 as as,a8 as oa,l as la,a9 as ca,A as Se,x as da,a as Re,aa as rs,ab as Ee,ac as It,k as ns,ad as ua,ae as ma,u as ha,af as Lt,ag as pa,ah as Tt,ai as fa,E as Dt,aj as ga,ak as xa,al as ba,am as ja,an as va,ao as _a,ap as ya}from"./index-CqLopXcE.js";import{u as Y}from"./useMutation-DBnvCG24.js";import{I as D}from"./Icon-BTX00T3U.js";import{T as ka,M as Na,S as wa,P as Ca}from"./SotaBadges-CmYGMLyy.js";import{L as ke,a as ot}from"./LatexTitle-C0en22SO.js";import{u as is}from"./preferences-B5Lhs-WR.js";import{s as Sa,a as Ea}from"./transform-BwK-yMDY.js";import{r as os,p as Pa}from"./paperReader-D1y30HyW.js";import{u as $a,f as Ra}from"./useDocumentTitle-xBtc80OB.js";import{s as W}from"./safeExternalHref-CkBrsh84.js";import{m as Aa}from"./mlIntern-BWv6xBaQ.js";import{S as he}from"./skeleton-g9QeRZlQ.js";import{A as Ia,a as La}from"./alert-C8kkxn4G.js";import{B as L}from"./button-DUkH0QIr.js";import{D as Ae,a as Ie,c as Le,b as Te,d as De,e as ft}from"./dialog-BXnL_m2W.js";import{A as Ta,a as Da}from"./AgentLogos-BGglpy29.js";import{C as Fa}from"./copy-CuOS3fOv.js";import{i as ls,a as cs,r as Ua,b as za,e as Ma,p as Ba}from"./cacheSync-CEi6VAAO.js";import{I as U}from"./input-C419tHG_.js";import{S as Ft}from"./searchable-select-ByX0DNkg.js";import{L as gt}from"./loader-circle-DDE80rIr.js";import{T as Fe}from"./trash-2-qhXxU9a8.js";import{S as ds,L as q,a as Ha}from"./SignInToEditDialog-WFTfQEZb.js";import{u as ve}from"./useQueries-MNJ2SctB.js";import{s as us,p as ms}from"./submissions-8BlabU_Z.js";import{D as Oa}from"./database-672kb9yv.js";import{P as ge}from"./plus-D-JcHoGj.js";import{S as lt}from"./search-B0zhG2PN.js";import{B as qa}from"./badge-CJsdIbmG.js";import{n as Ga,C as Xa}from"./CatalogEntityPreviewLink-BEEX6c5n.js";import{G as Ka}from"./globe-8C5j9VAy.js";import{G as Qa}from"./github-rJ81k3MW.js";import{u as hs}from"./index-GshCUuRr.js";import{C as Va,E as Wa}from"./ExternalSourceEvalBadge-DcDIi3qu.js";import{M as Ya}from"./index-C601BfBQ.js";import{r as Ja}from"./index-s2hHM8kO.js";import{u as Za}from"./useIntersectionObserver-CvTvi8t8.js";import{S as Ut,s as er}from"./savedPapersAuth-BSj_MUOM.js";import{o as tr}from"./organizationNames-BVKzYEBp.js";import{A as sr}from"./AuthorAvatar-RLVSdcTr.js";import"./colors-BkWRhvFI.js";import"./popover-CuCcJ8cK.js";import"./textarea-CVmk78KU.js";import"./hover-card-CcViKpG6.js";/**
2
  * @license lucide-react v0.462.0 - ISC
3
  *
4
  * This source code is licensed under the ISC license.
assets/{PaperPreviewLink-Dhou1ws3.js → PaperPreviewLink-BQBSQN0t.js} RENAMED
@@ -1,4 +1,4 @@
1
- import{o as b,f as k,m as y}from"./index-CqH2_Dpk.js";import{l as U}from"./index-BHTJgSQg.js";import{j as o,ab as T,ao as D,B as S,I as j,M as I,e as O,o as A,L as M,b as Q,m as B}from"./index-2xE415-f.js";import{H,a as V,b as K}from"./hover-card-CZZ0A1FG.js";import{u as X}from"./useMutation-BcnLcaMd.js";function Z(){return{enter:{mathFlow:e,mathFlowFenceMeta:r,mathText:h},exit:{mathFlow:n,mathFlowFence:t,mathFlowFenceMeta:s,mathFlowValue:c,mathText:m,mathTextData:c}};function e(a){const l={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[l]}},a)}function r(){this.buffer()}function s(){const a=this.resume(),l=this.stack[this.stack.length-1];b(l.type==="math"),l.meta=a}function t(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function n(a){const l=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),p=this.stack[this.stack.length-1];b(p.type==="math"),this.exit(a),p.value=l;const d=p.data.hChildren[0];b(d.type==="element"),b(d.tagName==="code"),d.children.push({type:"text",value:l}),this.data.mathFlowInside=void 0}function h(a){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},a),this.buffer()}function m(a){const l=this.resume(),p=this.stack[this.stack.length-1];b(p.type==="inlineMath"),this.exit(a),p.value=l,p.data.hChildren.push({type:"text",value:l})}function c(a){this.config.enter.data.call(this,a),this.config.exit.data.call(this,a)}}function G(e){let r=(e||{}).singleDollarTextMath;return r==null&&(r=!0),t.peek=n,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:`
2
  `,inConstruct:"mathFlowMeta"},{character:"$",after:r?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:s,inlineMath:t}};function s(h,m,c,a){const l=h.value||"",p=c.createTracker(a),d="$".repeat(Math.max(U(l,"$")+1,2)),w=c.enter("mathFlow");let x=p.move(d);if(h.meta){const v=c.enter("mathFlowMeta");x+=p.move(c.safe(h.meta,{after:`
3
  `,before:x,encode:["$"],...p.current()})),v()}return x+=p.move(`
4
  `),l&&(x+=p.move(l+`
 
1
+ import{o as b,f as k,m as y}from"./index-C601BfBQ.js";import{l as U}from"./index-s2hHM8kO.js";import{j as o,ab as T,ao as D,B as S,I as j,M as I,e as O,o as A,L as M,b as Q,m as B}from"./index-CqLopXcE.js";import{H,a as V,b as K}from"./hover-card-CcViKpG6.js";import{u as X}from"./useMutation-DBnvCG24.js";function Z(){return{enter:{mathFlow:e,mathFlowFenceMeta:r,mathText:h},exit:{mathFlow:n,mathFlowFence:t,mathFlowFenceMeta:s,mathFlowValue:c,mathText:m,mathTextData:c}};function e(a){const l={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[l]}},a)}function r(){this.buffer()}function s(){const a=this.resume(),l=this.stack[this.stack.length-1];b(l.type==="math"),l.meta=a}function t(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function n(a){const l=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),p=this.stack[this.stack.length-1];b(p.type==="math"),this.exit(a),p.value=l;const d=p.data.hChildren[0];b(d.type==="element"),b(d.tagName==="code"),d.children.push({type:"text",value:l}),this.data.mathFlowInside=void 0}function h(a){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},a),this.buffer()}function m(a){const l=this.resume(),p=this.stack[this.stack.length-1];b(p.type==="inlineMath"),this.exit(a),p.value=l,p.data.hChildren.push({type:"text",value:l})}function c(a){this.config.enter.data.call(this,a),this.config.exit.data.call(this,a)}}function G(e){let r=(e||{}).singleDollarTextMath;return r==null&&(r=!0),t.peek=n,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:`
2
  `,inConstruct:"mathFlowMeta"},{character:"$",after:r?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:s,inlineMath:t}};function s(h,m,c,a){const l=h.value||"",p=c.createTracker(a),d="$".repeat(Math.max(U(l,"$")+1,2)),w=c.enter("mathFlow");let x=p.move(d);if(h.meta){const v=c.enter("mathFlowMeta");x+=p.move(c.safe(h.meta,{after:`
3
  `,before:x,encode:["$"],...p.current()})),v()}return x+=p.move(`
4
  `),l&&(x+=p.move(l+`
assets/PaperReaderView-BJ1_bHyt.js DELETED
@@ -1 +0,0 @@
1
- import{i as s,b as E,M as F,j as a,A as te,u as Fe,I as Ke,n as Ue,ao as _e,ai as De,L as J}from"./index-2xE415-f.js";import{u as qe,R as Ve,A as Qe,c as Xe,d as Ye,a as Ze,P as Ge,e as Je}from"./chatLifecycle-DTJ_7jbh.js";import{M as et}from"./MarkdownText-CDVRt1ok.js";import{f as tt,w as at,s as rt,e as st,a as nt,b as ee,c as Se,d as Ce}from"./paperReader-D1y30HyW.js";import{c as it}from"./chat-BaxbAYDA.js";import{s as ae}from"./safeExternalHref-CkBrsh84.js";import{ChatExperience as ot}from"./ChatView-Dem6dkHV.js";import"./chatSessions-BHe2vEWV.js";/* empty css */import"./hover-card-CZZ0A1FG.js";import"./CatalogEntityPreviewLink-Br2W1MKt.js";import"./github-CknlAJTS.js";import"./file-text-CrUpLQJ2.js";import"./PaperPreviewLink-Dhou1ws3.js";import"./index-CqH2_Dpk.js";import"./index-BHTJgSQg.js";import"./useMutation-BcnLcaMd.js";import"./index-CRH6N9tH.js";import"./katex-DkKDou_j.js";import"./thumbs-up-Bc07M7BA.js";import"./copy-COezQGP9.js";import"./arrow-left-BHT-3INU.js";import"./external-link-CCL892xT.js";import"./plus-C20t97Ow.js";import"./search-DfIPA_iX.js";import"./chevron-up-DAPpOAWB.js";import"./AuthorAvatar-D53WcphF.js";import"./trash-2-cqcsUQJn.js";import"./McpShowcase-DSFseGGp.js";import"./AgentLogos-DmfyY5wp.js";import"./share-2-uOkTzPmw.js";import"./Icon-DQoMmS2z.js";import"./mlIntern-CUgKrjLX.js";import"./openrouter-CbaTDPpy.js";function ct(r){return r instanceof te&&r.status===422?"This page could not be turned into a readable paper.":r instanceof te&&r.status===503?"Paper content is still being prepared. Please try again later.":"The paper could not be loaded."}function lt({paperId:r,paperKey:i,paperTitle:c,paperHref:g,sourceUrl:e,resources:o,paperVersion:h="",selectionEnabled:b=!1,onReady:w,onPaperSelection:$,onPaperSelectionError:K}){var I;const l=s.useRef(null),C=tt(e),v=E({...F.webPage(r),enabled:!C,retry:!1}),T=!C&&v.isPending,x=C||((I=v.data)==null?void 0:I.frameable)===!0,[k,d]=s.useState("original"),y=x&&k==="original",u=E({...F.webMarkdown(r),retry:(U,M)=>U<2&&!(M instanceof te&&M.status<500),retryDelay:3e3}),P=u.isSuccess;s.useEffect(()=>{P&&(w==null||w())},[w,P]),qe({enabled:b&&!!h&&P&&!y,pagesRoot:l,routeId:i,paperVersion:h,numPages:1,onSelect:$,onError:K});const j=u.data?at(u.data):"",S=!!(o!=null&&o.projectPage&&rt(o.projectPage.href,e));return a.jsxs("div",{className:"pdf-viewer",children:[a.jsx(Ve,{paperTitle:c,paperHref:g,resources:o,label:"Paper controls",children:a.jsxs("div",{className:"pdf-toolbar-controls",children:[x&&a.jsxs("div",{className:"reader-web-view-toggle",role:"group","aria-label":"Paper view",children:[a.jsx("button",{type:"button","aria-pressed":y,onClick:()=>d("original"),children:"Original"}),a.jsx("button",{type:"button","aria-pressed":!y,title:"Readable text; select a passage to ask the chat about it",onClick:()=>d("text"),children:"Text"})]}),!S&&a.jsx("a",{href:e,target:"_blank",rel:"noopener noreferrer",children:"Open original"})]})}),a.jsx("div",{className:"pdf-scroll-frame",children:T?a.jsx("div",{className:"pdf-loading",role:"status",children:"Loading the paper…"}):y?a.jsx("iframe",{className:"reader-web-frame",src:e,title:`Original page: ${c}`,sandbox:"allow-scripts allow-same-origin allow-popups allow-popups-to-escape-sandbox",referrerPolicy:"strict-origin-when-cross-origin"}):a.jsx("div",{className:"pdf-scroll",role:"region","aria-label":"Paper web page",children:u.isPending?a.jsx("div",{className:"pdf-loading",role:"status",children:"Preparing a readable version of this page…"}):u.isError?a.jsxs("div",{className:"pdf-error",role:"alert",children:[a.jsx("p",{children:ct(u.error)}),a.jsxs("div",{children:[a.jsx("button",{type:"button",onClick:()=>void u.refetch(),children:"Retry"})," ",a.jsx("a",{href:e,target:"_blank",rel:"noopener noreferrer",children:"Open original"})]})]}):a.jsxs("article",{ref:l,className:"reader-web-document","data-page":"1",children:[!j.startsWith("# ")&&a.jsx("h1",{children:c}),a.jsx(et,{text:j})]})})})]})}const ke=66,dt=240,re="pwc:reader:split-ratio";function ut(r){const i=Number(sessionStorage.getItem(Ce(r)));return Number.isInteger(i)&&i>0?i:1}function ft(){const r=Number(localStorage.getItem(re));return Number.isFinite(r)&&r>=45&&r<=75?r:ke}function pt(r){const i=ae(r);if(!i)return null;const c=new URL(i);return(c.hostname==="arxiv.org"||c.hostname==="www.arxiv.org")&&c.pathname.startsWith("/pdf/")&&c.pathname.endsWith(".pdf")&&(c.pathname=c.pathname.slice(0,-4)),c.href}const mt=/^\/pdf\/(\d{4}\.\d{4,5}(?:v\d{1,3})?|[a-z]+(?:-[a-z]+)*(?:\.[A-Z]{2})?\/\d{7}(?:v\d{1,3})?)$/;function ht(r){const i=new URL(r),c=i.pathname.match(mt);return(i.hostname==="arxiv.org"||i.hostname==="www.arxiv.org")&&c&&!i.search?_e(`/paper-assets/arxiv-pdf/${c[1]}`)??r:r}function gt(r){return new URL(r).hostname.replace(/^www\./,"")}function bt(r){if(!r)return{};const i={};for(const e of r.repositories??[]){if(!e.is_official)continue;const o=ae(e.url);if(!o)continue;const h=new URL(o),b=h.pathname.split("/").filter(Boolean);if((h.hostname==="github.com"||h.hostname==="www.github.com")&&b.length>=2){i.repository={href:o,stars:e.num_stars||0};break}}const c=[...r.project_pages??[]].sort((e,o)=>Number(o.is_official)-Number(e.is_official));for(const e of c){const o=ae(e.url);if(o){i.projectPage={href:o,label:gt(o)};break}}const g=r.hf_artifact_summary?r.hf_artifact_summary.model_count+r.hf_artifact_summary.dataset_count+r.hf_artifact_summary.space_count:new Set([...r.hf_models??[],...r.hf_datasets??[],...r.hf_spaces??[]]).size;return g>0&&r.arxiv_id&&(i.huggingFace={href:`https://huggingface.co/papers/${r.arxiv_id.replace(/v\d+$/i,"")}`,count:g}),i}function vt({routeId:r}){var Pe,we,Re,ye,je;const i=Ue(),c=E(F.detail(r)),g=E({queryKey:["chatAvailability"],queryFn:()=>it.getAvailability(),refetchInterval:3e4,retry:!1}),e=c.data,o=e?st(e):null,h=o?null:(e==null?void 0:e.source)==="external"?_e(`/paper-assets/external/${e.id}/paper.pdf`):pt(e==null?void 0:e.url_pdf),b=h&&(e==null?void 0:e.source)!=="external"?ht(h):h,w=!o&&(e==null?void 0:e.source)==="external"?nt(e):null,$=bt(e),K=s.useMemo(()=>{var t;return(t=e==null?void 0:e.author_links)==null?void 0:t.flatMap(n=>n.id?[{id:n.id,name:n.name,avatarUrl:n.hf_avatar_url}]:[])},[e==null?void 0:e.author_links]),l=((Pe=e==null?void 0:e.arxiv_id)==null?void 0:Pe.replace(/v\d+$/i,""))||r,C=s.useCallback(()=>i(`/paper/${l}`),[l,i]),[v,T]=s.useState(()=>sessionStorage.getItem(ee(r))||void 0),[x,k]=s.useState(ft),[d,y]=s.useState(()=>sessionStorage.getItem(Se(r))==="1"),[u,P]=s.useState("paper"),[j,S]=s.useState(),[I,U]=s.useState(),[M,Ne]=s.useState(!1),Ae=s.useCallback(()=>Ne(!0),[]),[Ee,_]=s.useState(""),[se]=s.useState(()=>ut(r)),[N,$e]=s.useState(0),[ne,ie]=s.useState(!1),[Te,oe]=s.useState(!1),z=s.useRef(null),D=s.useRef(null),W=s.useRef(null),ce=s.useRef(null),le=s.useRef(null),q=s.useRef(!1),L=s.useRef(!1),V=s.useRef(0),R=s.useRef(0),Q=s.useRef(0),A=s.useRef(x),de=s.useRef(se),X=s.useRef(e==null?void 0:e.version),ue=Xe().reset,fe=s.useRef(v),p=N>=840;s.useEffect(()=>{fe.current!==v&&(fe.current=v,ue())},[v,ue]),s.useEffect(()=>{e!=null&&e.version&&X.current&&e.version!==X.current&&(S(void 0),_("")),X.current=e==null?void 0:e.version},[e==null?void 0:e.version]),s.useEffect(()=>()=>{window.clearTimeout(V.current),cancelAnimationFrame(R.current)},[]),s.useLayoutEffect(()=>{const t=z.current;if(!t)return;const n=()=>$e(t.clientWidth);n();const f=new ResizeObserver(n);return f.observe(t),()=>f.disconnect()},[e]),s.useEffect(()=>{if(!e)return;document.title=`${e.title} — Papers With Code reader`;let t=document.querySelector('meta[name="robots"]');const n=!t;t||(t=document.createElement("meta"),t.name="robots",document.head.appendChild(t));const f=t.content;t.content="noindex, nofollow";let m=document.querySelector('link[rel="canonical"]');const He=!m;m||(m=document.createElement("link"),m.rel="canonical",document.head.appendChild(m));const Oe=m.href;return m.href=`${window.location.origin}/paper/${l}`,()=>{document.title="Papers With Code",n?t==null||t.remove():t&&(t.content=f),He?m==null||m.remove():m&&(m.href=Oe)}},[l,e]);const B=s.useCallback(t=>{if(!N)return Math.max(45,Math.min(75,t));const n=480/N*100,f=100-360/N*100;return Math.max(n,Math.min(f,t))},[N]);s.useEffect(()=>k(t=>{const n=B(t);return A.current=n,n}),[B]);const H=t=>{const n=B(t);A.current=n,k(n),localStorage.setItem(re,String(n))},pe=t=>{var f;const n=B(t);A.current=n,D.current&&(D.current.style.width=`${n}%`),W.current&&(W.current.style.width=`${100-n}%`),(f=ce.current)==null||f.setAttribute("aria-valuenow",String(Math.round(n)))},me=t=>{Q.current=t,!R.current&&(R.current=requestAnimationFrame(()=>{var f;R.current=0;const n=(f=z.current)==null?void 0:f.getBoundingClientRect();n!=null&&n.width&&pe((Q.current-n.left)/n.width*100)}))},Ie=t=>{L.current=!0,ie(!0),t.currentTarget.setPointerCapture(t.pointerId),me(t.clientX)},Y=()=>{var t;if(L.current){if(R.current){cancelAnimationFrame(R.current),R.current=0;const n=(t=z.current)==null?void 0:t.getBoundingClientRect();n!=null&&n.width&&pe((Q.current-n.left)/n.width*100)}L.current=!1,k(A.current),localStorage.setItem(re,String(A.current)),ie(!1)}},he=t=>{window.clearTimeout(V.current),oe(!0),y(t),sessionStorage.setItem(Se(r),t?"1":"0"),V.current=window.setTimeout(()=>oe(!1),dt+40)},ge=t=>{q.current=!0,he(t)};s.useEffect(()=>{var t;q.current&&(q.current=!1,(t=d?le.current:W.current)==null||t.focus())},[d]);const Me=t=>{T(t),sessionStorage.setItem(ee(r),t)},ze=()=>{T(void 0),sessionStorage.removeItem(ee(r)),S(void 0),_("")},be=((we=g.data)==null?void 0:we.paper_reader_selection_enabled)===!0,ve=t=>{S(t),_(`Selection from page ${t.page} added to chat`),p&&d&&he(!1)},We=s.useCallback(t=>{S(t),t||_("")},[]),Z=((Re=g.data)==null?void 0:Re.paper_reader_citations_enabled)===!0&&!!b,O=E({...F.layout(l),enabled:Z&&!!l}).data,Le=s.useMemo(()=>Z?{layout:O,open:t=>{const n=O?Ye(O,t):[];n.length&&(U(f=>({boxes:n,nonce:((f==null?void 0:f.nonce)??0)+1})),P("paper"))}}:null,[Z,O]),xe=De()&&((ye=g.data)==null?void 0:ye.paper_reader_chat_enabled)!==!1,G=!!(e&&xe&&!(o&&!M)),Be=e&&xe&&!G?a.jsx("div",{className:"reader-chat-unavailable",role:"status",children:"Chat opens once the paper is ready."}):e&&G?a.jsx(ot,{mode:"paper",routeSessionId:v,primaryPaper:{id:e.id,routeId:l,title:e.title,arxivId:e.arxiv_id},currentPage:()=>de.current,paperSelection:j,onPaperSelectionChange:We,onSessionId:Me,onReaderSubmit:()=>P("assistant"),onReaderNewChat:ze,onReaderClose:p?()=>ge(!0):void 0}):a.jsx("div",{className:"reader-chat-unavailable",children:"Chat is not enabled for this preview."});return c.isLoading?a.jsx("div",{className:"reader-status",role:"status",children:"Loading paper…"}):c.error||!e?a.jsxs("div",{className:"reader-status",role:"alert",children:[a.jsx("p",{children:"Paper not found."}),a.jsx(J,{to:"/papers",children:"Browse papers"})]}):((je=g.data)==null?void 0:je.native_pdf_reader_enabled)===!1?a.jsxs("div",{className:"reader-status",role:"alert",children:[a.jsx("p",{children:"The native reader is currently unavailable."}),a.jsx(J,{to:`/paper/${l}`,children:"Back to paper"})]}):!b&&!o?a.jsxs("div",{className:"reader-status",role:"alert",children:[a.jsx("p",{children:"Native reading is unavailable for this resource."}),a.jsx(J,{to:`/paper/${l}`,children:"Back to paper"})]}):a.jsxs("div",{className:"paper-reader-shell",children:[!p&&a.jsxs("div",{className:"reader-tabs",role:"tablist","aria-label":"Reader panels",children:[a.jsx("button",{type:"button",role:"tab","aria-selected":u==="paper",onClick:()=>P("paper"),children:"Paper"}),a.jsxs("button",{type:"button",role:"tab","aria-selected":u==="assistant","aria-label":j&&u!=="assistant"?"Chat, selection attached":"Chat",onClick:()=>P("assistant"),children:["Chat",j&&u!=="assistant"&&a.jsx("span",{className:"reader-tab-pending","aria-hidden":"true"})]})]}),a.jsx(Ze,{variant:"reader",children:a.jsxs("div",{ref:z,className:`reader-workspace${p?" is-desktop":" is-tabs"}${d?" is-assistant-collapsed":""}${ne?" is-resizing":""}`,"data-testid":"paper-chat-workspace",children:[a.jsx("section",{ref:D,className:`reader-paper-pane${!p&&u!=="paper"?" is-hidden":""}`,style:p?{width:d?"100%":`${x}%`}:void 0,role:"tabpanel","aria-label":"Paper","aria-hidden":!p&&u!=="paper",children:o?a.jsx(lt,{paperId:e.id,paperKey:l,paperTitle:e.title,paperHref:`/paper/${l}`,sourceUrl:o,resources:$,paperVersion:e.version,selectionEnabled:be,onReady:Ae,onPaperSelection:ve,onPaperSelectionError:_}):b&&a.jsx(Ge,{url:b,fallbackUrl:w??void 0,downloadUrl:w??h??b,paperKey:l,paperTitle:e.title,paperHref:`/paper/${l}`,onClose:C,resources:$,initialPage:se,resizeActive:ne||Te,selectionEnabled:be,paperVersion:e.version,authors:K,loadErrorMessage:e.source==="external"?"Paper content is still being prepared. Please try again later.":void 0,onPaperSelection:ve,onPaperSelectionError:_,highlight:I,onPageChange:t=>{de.current=t,sessionStorage.setItem(Ce(r),String(t))}})}),p&&!d&&a.jsx("div",{ref:ce,className:"reader-resize-handle",role:"separator","aria-label":"Resize paper and Chat panels","aria-orientation":"vertical","aria-valuemin":45,"aria-valuemax":75,"aria-valuenow":Math.round(x),tabIndex:0,onPointerDown:Ie,onPointerMove:t=>{L.current&&me(t.clientX)},onPointerUp:Y,onPointerCancel:Y,onLostPointerCapture:Y,onDoubleClick:()=>H(ke),onKeyDown:t=>{(t.key==="ArrowLeft"||t.key==="ArrowRight")&&(t.preventDefault(),H(x+(t.key==="ArrowRight"?2:-2))),t.key==="Home"&&H(45),t.key==="End"&&H(75)}}),a.jsx("aside",{ref:W,id:"reader-chat-panel",className:`reader-assistant-pane${!p&&u!=="assistant"?" is-hidden":""}${p&&d?" is-collapsed":""}`,style:p?{width:d?0:`${100-x}%`}:void 0,role:"tabpanel","aria-label":"Chat","aria-hidden":!p&&u!=="assistant"||d,tabIndex:-1,children:a.jsx(Je.Provider,{value:Le,children:Be})}),a.jsx("div",{className:"sr-only","aria-live":"polite",children:Ee}),p&&(d||!G)&&a.jsx("button",{ref:le,type:"button",className:"reader-collapse-assistant","aria-controls":"reader-chat-panel","aria-expanded":!d,onClick:()=>ge(!d),children:d?"Open chat":"Hide chat"})]})})]})}function ta(){const{paperId:r=""}=Fe(),i=Ke(r).replace(/v\d+$/i,"");return a.jsx(Qe,{workspaceKey:`reader:${r}`,children:a.jsx(vt,{routeId:i},i)})}export{ta as default,bt as readerToolbarResources};
 
 
assets/PaperReaderView-BQq3sDX_.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{i as s,b as E,M as F,j as a,A as te,u as Fe,I as Ke,n as Ue,ao as _e,ai as De,L as J}from"./index-CqLopXcE.js";import{u as qe,R as Ve,A as Qe,c as Xe,d as Ye,a as Ze,P as Ge,e as Je}from"./chatLifecycle-U97-CRPf.js";import{M as et}from"./MarkdownText-CZlaYENs.js";import{f as tt,w as at,s as rt,e as st,a as nt,b as ee,c as Se,d as Ce}from"./paperReader-D1y30HyW.js";import{c as it}from"./chat-DGNTyNA6.js";import{s as ae}from"./safeExternalHref-CkBrsh84.js";import{ChatExperience as ot}from"./ChatView-DWJHl306.js";import"./index-EPaFPxpL.js";/* empty css */import"./hover-card-CcViKpG6.js";import"./CatalogEntityPreviewLink-BEEX6c5n.js";import"./github-rJ81k3MW.js";import"./file-text-DL8DB3Ia.js";import"./PaperPreviewLink-BQBSQN0t.js";import"./index-C601BfBQ.js";import"./index-s2hHM8kO.js";import"./useMutation-DBnvCG24.js";import"./index-UzLPH3v0.js";import"./katex-DkKDou_j.js";import"./thumbs-up-BxzCyoEs.js";import"./copy-CuOS3fOv.js";import"./arrow-left-CsmoZGdZ.js";import"./external-link-CTPTD9wF.js";import"./plus-D-JcHoGj.js";import"./search-B0zhG2PN.js";import"./chevron-up-CoUJqJBK.js";import"./AuthorAvatar-RLVSdcTr.js";import"./trash-2-qhXxU9a8.js";import"./McpShowcase-BIaXtPrM.js";import"./AgentLogos-BGglpy29.js";import"./share-2-pHAfXukm.js";import"./Icon-BTX00T3U.js";import"./mlIntern-BWv6xBaQ.js";import"./openrouter-C1gmBS1C.js";function ct(r){return r instanceof te&&r.status===422?"This page could not be turned into a readable paper.":r instanceof te&&r.status===503?"Paper content is still being prepared. Please try again later.":"The paper could not be loaded."}function lt({paperId:r,paperKey:i,paperTitle:c,paperHref:g,sourceUrl:e,resources:o,paperVersion:h="",selectionEnabled:b=!1,onReady:w,onPaperSelection:$,onPaperSelectionError:K}){var I;const l=s.useRef(null),C=tt(e),v=E({...F.webPage(r),enabled:!C,retry:!1}),T=!C&&v.isPending,x=C||((I=v.data)==null?void 0:I.frameable)===!0,[k,d]=s.useState("original"),y=x&&k==="original",u=E({...F.webMarkdown(r),retry:(U,M)=>U<2&&!(M instanceof te&&M.status<500),retryDelay:3e3}),P=u.isSuccess;s.useEffect(()=>{P&&(w==null||w())},[w,P]),qe({enabled:b&&!!h&&P&&!y,pagesRoot:l,routeId:i,paperVersion:h,numPages:1,onSelect:$,onError:K});const j=u.data?at(u.data):"",S=!!(o!=null&&o.projectPage&&rt(o.projectPage.href,e));return a.jsxs("div",{className:"pdf-viewer",children:[a.jsx(Ve,{paperTitle:c,paperHref:g,resources:o,label:"Paper controls",children:a.jsxs("div",{className:"pdf-toolbar-controls",children:[x&&a.jsxs("div",{className:"reader-web-view-toggle",role:"group","aria-label":"Paper view",children:[a.jsx("button",{type:"button","aria-pressed":y,onClick:()=>d("original"),children:"Original"}),a.jsx("button",{type:"button","aria-pressed":!y,title:"Readable text; select a passage to ask the chat about it",onClick:()=>d("text"),children:"Text"})]}),!S&&a.jsx("a",{href:e,target:"_blank",rel:"noopener noreferrer",children:"Open original"})]})}),a.jsx("div",{className:"pdf-scroll-frame",children:T?a.jsx("div",{className:"pdf-loading",role:"status",children:"Loading the paper…"}):y?a.jsx("iframe",{className:"reader-web-frame",src:e,title:`Original page: ${c}`,sandbox:"allow-scripts allow-same-origin allow-popups allow-popups-to-escape-sandbox",referrerPolicy:"strict-origin-when-cross-origin"}):a.jsx("div",{className:"pdf-scroll",role:"region","aria-label":"Paper web page",children:u.isPending?a.jsx("div",{className:"pdf-loading",role:"status",children:"Preparing a readable version of this page…"}):u.isError?a.jsxs("div",{className:"pdf-error",role:"alert",children:[a.jsx("p",{children:ct(u.error)}),a.jsxs("div",{children:[a.jsx("button",{type:"button",onClick:()=>void u.refetch(),children:"Retry"})," ",a.jsx("a",{href:e,target:"_blank",rel:"noopener noreferrer",children:"Open original"})]})]}):a.jsxs("article",{ref:l,className:"reader-web-document","data-page":"1",children:[!j.startsWith("# ")&&a.jsx("h1",{children:c}),a.jsx(et,{text:j})]})})})]})}const ke=66,dt=240,re="pwc:reader:split-ratio";function ut(r){const i=Number(sessionStorage.getItem(Ce(r)));return Number.isInteger(i)&&i>0?i:1}function ft(){const r=Number(localStorage.getItem(re));return Number.isFinite(r)&&r>=45&&r<=75?r:ke}function pt(r){const i=ae(r);if(!i)return null;const c=new URL(i);return(c.hostname==="arxiv.org"||c.hostname==="www.arxiv.org")&&c.pathname.startsWith("/pdf/")&&c.pathname.endsWith(".pdf")&&(c.pathname=c.pathname.slice(0,-4)),c.href}const mt=/^\/pdf\/(\d{4}\.\d{4,5}(?:v\d{1,3})?|[a-z]+(?:-[a-z]+)*(?:\.[A-Z]{2})?\/\d{7}(?:v\d{1,3})?)$/;function ht(r){const i=new URL(r),c=i.pathname.match(mt);return(i.hostname==="arxiv.org"||i.hostname==="www.arxiv.org")&&c&&!i.search?_e(`/paper-assets/arxiv-pdf/${c[1]}`)??r:r}function gt(r){return new URL(r).hostname.replace(/^www\./,"")}function bt(r){if(!r)return{};const i={};for(const e of r.repositories??[]){if(!e.is_official)continue;const o=ae(e.url);if(!o)continue;const h=new URL(o),b=h.pathname.split("/").filter(Boolean);if((h.hostname==="github.com"||h.hostname==="www.github.com")&&b.length>=2){i.repository={href:o,stars:e.num_stars||0};break}}const c=[...r.project_pages??[]].sort((e,o)=>Number(o.is_official)-Number(e.is_official));for(const e of c){const o=ae(e.url);if(o){i.projectPage={href:o,label:gt(o)};break}}const g=r.hf_artifact_summary?r.hf_artifact_summary.model_count+r.hf_artifact_summary.dataset_count+r.hf_artifact_summary.space_count:new Set([...r.hf_models??[],...r.hf_datasets??[],...r.hf_spaces??[]]).size;return g>0&&r.arxiv_id&&(i.huggingFace={href:`https://huggingface.co/papers/${r.arxiv_id.replace(/v\d+$/i,"")}`,count:g}),i}function vt({routeId:r}){var Pe,we,Re,ye,je;const i=Ue(),c=E(F.detail(r)),g=E({queryKey:["chatAvailability"],queryFn:()=>it.getAvailability(),refetchInterval:3e4,retry:!1}),e=c.data,o=e?st(e):null,h=o?null:(e==null?void 0:e.source)==="external"?_e(`/paper-assets/external/${e.id}/paper.pdf`):pt(e==null?void 0:e.url_pdf),b=h&&(e==null?void 0:e.source)!=="external"?ht(h):h,w=!o&&(e==null?void 0:e.source)==="external"?nt(e):null,$=bt(e),K=s.useMemo(()=>{var t;return(t=e==null?void 0:e.author_links)==null?void 0:t.flatMap(n=>n.id?[{id:n.id,name:n.name,avatarUrl:n.hf_avatar_url}]:[])},[e==null?void 0:e.author_links]),l=((Pe=e==null?void 0:e.arxiv_id)==null?void 0:Pe.replace(/v\d+$/i,""))||r,C=s.useCallback(()=>i(`/paper/${l}`),[l,i]),[v,T]=s.useState(()=>sessionStorage.getItem(ee(r))||void 0),[x,k]=s.useState(ft),[d,y]=s.useState(()=>sessionStorage.getItem(Se(r))==="1"),[u,P]=s.useState("paper"),[j,S]=s.useState(),[I,U]=s.useState(),[M,Ne]=s.useState(!1),Ae=s.useCallback(()=>Ne(!0),[]),[Ee,_]=s.useState(""),[se]=s.useState(()=>ut(r)),[N,$e]=s.useState(0),[ne,ie]=s.useState(!1),[Te,oe]=s.useState(!1),z=s.useRef(null),D=s.useRef(null),W=s.useRef(null),ce=s.useRef(null),le=s.useRef(null),q=s.useRef(!1),L=s.useRef(!1),V=s.useRef(0),R=s.useRef(0),Q=s.useRef(0),A=s.useRef(x),de=s.useRef(se),X=s.useRef(e==null?void 0:e.version),ue=Xe().reset,fe=s.useRef(v),p=N>=840;s.useEffect(()=>{fe.current!==v&&(fe.current=v,ue())},[v,ue]),s.useEffect(()=>{e!=null&&e.version&&X.current&&e.version!==X.current&&(S(void 0),_("")),X.current=e==null?void 0:e.version},[e==null?void 0:e.version]),s.useEffect(()=>()=>{window.clearTimeout(V.current),cancelAnimationFrame(R.current)},[]),s.useLayoutEffect(()=>{const t=z.current;if(!t)return;const n=()=>$e(t.clientWidth);n();const f=new ResizeObserver(n);return f.observe(t),()=>f.disconnect()},[e]),s.useEffect(()=>{if(!e)return;document.title=`${e.title} — Papers With Code reader`;let t=document.querySelector('meta[name="robots"]');const n=!t;t||(t=document.createElement("meta"),t.name="robots",document.head.appendChild(t));const f=t.content;t.content="noindex, nofollow";let m=document.querySelector('link[rel="canonical"]');const He=!m;m||(m=document.createElement("link"),m.rel="canonical",document.head.appendChild(m));const Oe=m.href;return m.href=`${window.location.origin}/paper/${l}`,()=>{document.title="Papers With Code",n?t==null||t.remove():t&&(t.content=f),He?m==null||m.remove():m&&(m.href=Oe)}},[l,e]);const B=s.useCallback(t=>{if(!N)return Math.max(45,Math.min(75,t));const n=480/N*100,f=100-360/N*100;return Math.max(n,Math.min(f,t))},[N]);s.useEffect(()=>k(t=>{const n=B(t);return A.current=n,n}),[B]);const H=t=>{const n=B(t);A.current=n,k(n),localStorage.setItem(re,String(n))},pe=t=>{var f;const n=B(t);A.current=n,D.current&&(D.current.style.width=`${n}%`),W.current&&(W.current.style.width=`${100-n}%`),(f=ce.current)==null||f.setAttribute("aria-valuenow",String(Math.round(n)))},me=t=>{Q.current=t,!R.current&&(R.current=requestAnimationFrame(()=>{var f;R.current=0;const n=(f=z.current)==null?void 0:f.getBoundingClientRect();n!=null&&n.width&&pe((Q.current-n.left)/n.width*100)}))},Ie=t=>{L.current=!0,ie(!0),t.currentTarget.setPointerCapture(t.pointerId),me(t.clientX)},Y=()=>{var t;if(L.current){if(R.current){cancelAnimationFrame(R.current),R.current=0;const n=(t=z.current)==null?void 0:t.getBoundingClientRect();n!=null&&n.width&&pe((Q.current-n.left)/n.width*100)}L.current=!1,k(A.current),localStorage.setItem(re,String(A.current)),ie(!1)}},he=t=>{window.clearTimeout(V.current),oe(!0),y(t),sessionStorage.setItem(Se(r),t?"1":"0"),V.current=window.setTimeout(()=>oe(!1),dt+40)},ge=t=>{q.current=!0,he(t)};s.useEffect(()=>{var t;q.current&&(q.current=!1,(t=d?le.current:W.current)==null||t.focus())},[d]);const Me=t=>{T(t),sessionStorage.setItem(ee(r),t)},ze=()=>{T(void 0),sessionStorage.removeItem(ee(r)),S(void 0),_("")},be=((we=g.data)==null?void 0:we.paper_reader_selection_enabled)===!0,ve=t=>{S(t),_(`Selection from page ${t.page} added to chat`),p&&d&&he(!1)},We=s.useCallback(t=>{S(t),t||_("")},[]),Z=((Re=g.data)==null?void 0:Re.paper_reader_citations_enabled)===!0&&!!b,O=E({...F.layout(l),enabled:Z&&!!l}).data,Le=s.useMemo(()=>Z?{layout:O,open:t=>{const n=O?Ye(O,t):[];n.length&&(U(f=>({boxes:n,nonce:((f==null?void 0:f.nonce)??0)+1})),P("paper"))}}:null,[Z,O]),xe=De()&&((ye=g.data)==null?void 0:ye.paper_reader_chat_enabled)!==!1,G=!!(e&&xe&&!(o&&!M)),Be=e&&xe&&!G?a.jsx("div",{className:"reader-chat-unavailable",role:"status",children:"Chat opens once the paper is ready."}):e&&G?a.jsx(ot,{mode:"paper",routeSessionId:v,primaryPaper:{id:e.id,routeId:l,title:e.title,arxivId:e.arxiv_id},currentPage:()=>de.current,paperSelection:j,onPaperSelectionChange:We,onSessionId:Me,onReaderSubmit:()=>P("assistant"),onReaderNewChat:ze,onReaderClose:p?()=>ge(!0):void 0}):a.jsx("div",{className:"reader-chat-unavailable",children:"Chat is not enabled for this preview."});return c.isLoading?a.jsx("div",{className:"reader-status",role:"status",children:"Loading paper…"}):c.error||!e?a.jsxs("div",{className:"reader-status",role:"alert",children:[a.jsx("p",{children:"Paper not found."}),a.jsx(J,{to:"/papers",children:"Browse papers"})]}):((je=g.data)==null?void 0:je.native_pdf_reader_enabled)===!1?a.jsxs("div",{className:"reader-status",role:"alert",children:[a.jsx("p",{children:"The native reader is currently unavailable."}),a.jsx(J,{to:`/paper/${l}`,children:"Back to paper"})]}):!b&&!o?a.jsxs("div",{className:"reader-status",role:"alert",children:[a.jsx("p",{children:"Native reading is unavailable for this resource."}),a.jsx(J,{to:`/paper/${l}`,children:"Back to paper"})]}):a.jsxs("div",{className:"paper-reader-shell",children:[!p&&a.jsxs("div",{className:"reader-tabs",role:"tablist","aria-label":"Reader panels",children:[a.jsx("button",{type:"button",role:"tab","aria-selected":u==="paper",onClick:()=>P("paper"),children:"Paper"}),a.jsxs("button",{type:"button",role:"tab","aria-selected":u==="assistant","aria-label":j&&u!=="assistant"?"Chat, selection attached":"Chat",onClick:()=>P("assistant"),children:["Chat",j&&u!=="assistant"&&a.jsx("span",{className:"reader-tab-pending","aria-hidden":"true"})]})]}),a.jsx(Ze,{variant:"reader",children:a.jsxs("div",{ref:z,className:`reader-workspace${p?" is-desktop":" is-tabs"}${d?" is-assistant-collapsed":""}${ne?" is-resizing":""}`,"data-testid":"paper-chat-workspace",children:[a.jsx("section",{ref:D,className:`reader-paper-pane${!p&&u!=="paper"?" is-hidden":""}`,style:p?{width:d?"100%":`${x}%`}:void 0,role:"tabpanel","aria-label":"Paper","aria-hidden":!p&&u!=="paper",children:o?a.jsx(lt,{paperId:e.id,paperKey:l,paperTitle:e.title,paperHref:`/paper/${l}`,sourceUrl:o,resources:$,paperVersion:e.version,selectionEnabled:be,onReady:Ae,onPaperSelection:ve,onPaperSelectionError:_}):b&&a.jsx(Ge,{url:b,fallbackUrl:w??void 0,downloadUrl:w??h??b,paperKey:l,paperTitle:e.title,paperHref:`/paper/${l}`,onClose:C,resources:$,initialPage:se,resizeActive:ne||Te,selectionEnabled:be,paperVersion:e.version,authors:K,loadErrorMessage:e.source==="external"?"Paper content is still being prepared. Please try again later.":void 0,onPaperSelection:ve,onPaperSelectionError:_,highlight:I,onPageChange:t=>{de.current=t,sessionStorage.setItem(Ce(r),String(t))}})}),p&&!d&&a.jsx("div",{ref:ce,className:"reader-resize-handle",role:"separator","aria-label":"Resize paper and Chat panels","aria-orientation":"vertical","aria-valuemin":45,"aria-valuemax":75,"aria-valuenow":Math.round(x),tabIndex:0,onPointerDown:Ie,onPointerMove:t=>{L.current&&me(t.clientX)},onPointerUp:Y,onPointerCancel:Y,onLostPointerCapture:Y,onDoubleClick:()=>H(ke),onKeyDown:t=>{(t.key==="ArrowLeft"||t.key==="ArrowRight")&&(t.preventDefault(),H(x+(t.key==="ArrowRight"?2:-2))),t.key==="Home"&&H(45),t.key==="End"&&H(75)}}),a.jsx("aside",{ref:W,id:"reader-chat-panel",className:`reader-assistant-pane${!p&&u!=="assistant"?" is-hidden":""}${p&&d?" is-collapsed":""}`,style:p?{width:d?0:`${100-x}%`}:void 0,role:"tabpanel","aria-label":"Chat","aria-hidden":!p&&u!=="assistant"||d,tabIndex:-1,children:a.jsx(Je.Provider,{value:Le,children:Be})}),a.jsx("div",{className:"sr-only","aria-live":"polite",children:Ee}),p&&(d||!G)&&a.jsx("button",{ref:le,type:"button",className:"reader-collapse-assistant","aria-controls":"reader-chat-panel","aria-expanded":!d,onClick:()=>ge(!d),children:d?"Open chat":"Hide chat"})]})})]})}function ta(){const{paperId:r=""}=Fe(),i=Ke(r).replace(/v\d+$/i,"");return a.jsx(Qe,{workspaceKey:`reader:${r}`,children:a.jsx(vt,{routeId:i},i)})}export{ta as default,bt as readerToolbarResources};
assets/{PapersListView-cP3dCWrx.js → PapersListView-CuPGMfr4.js} RENAMED
@@ -1 +1 @@
1
- import{f as Q,i as u,B,w as I,m as U,j as e,L as f,x as K,b as V,v as X}from"./index-2xE415-f.js";import{T as J}from"./SotaBadges-Cy5KKcKe.js";import{I as q}from"./Icon-DQoMmS2z.js";import{b as W,u as M,a as Y,c as Z,d as ee,P as se}from"./usePapers-Df-AyQGj.js";import{t as re,d as ae}from"./transform-krmE0Oxv.js";import{u as te}from"./useDebounce-DUFNcXEQ.js";import{S as ne}from"./skeleton-7Kak9gS9.js";import{A as ie,a as le}from"./alert-CMc00cqX.js";import{f as oe}from"./frameworks-DDA0P4Tf.js";import{u as de}from"./useDocumentTitle-_d-BLODt.js";import{p as ce}from"./pageTitles-CFPKZULe.js";import"./colors-BkWRhvFI.js";import"./PaperCard-Do-fUKOE.js";import"./AuthorAvatar-D53WcphF.js";import"./LatexTitle-CIj5wiaM.js";import"./safeExternalHref-CkBrsh84.js";import"./popover-qWW92hSh.js";import"./useIntersectionObserver-BjZh7B9X.js";import"./useInfiniteQuery-Cvn4-XUc.js";const g=360;function me(s,r){const a=s.toLocaleLowerCase();return r.trim().split(/\s+/).filter(Boolean).reduce((t,n)=>{const i=a.indexOf(n.toLocaleLowerCase());return i>=0&&(t<0||i<t)?i:t},-1)}function H(s,r,a){if((s.slice(0,r).match(/\$/g)||[]).length%2===0)return r;if(a==="start")return s.lastIndexOf("$",r)+1;const n=s.indexOf("$",r);return n>=0?n+1:r}function he(s,r){if(s.length<=g)return s;const a=me(s,r);if(a<0||a<g*.6)return s;let t=Math.max(0,a-Math.floor(g*.35)),n=Math.min(s.length,t+g);return t=H(s,t,"start"),n=H(s,n,"end"),`${t>0?"…":""}${s.slice(t,n).trim()}${n<s.length?"…":""}`}const pe=[["relevance","relevance"],["date_published","newest"],["citation_count","most cited"]];function ue(s){return s.get("framework")||s.get("repository")?"scoped":(s.get("search")||"").trim()?"search":"browse"}const Be=()=>{var D,L,R,E,T,$,C,A;const[s]=Q(),r=s.get("framework")||void 0,a=s.get("repository")||void 0,t=s.get("search")||"",n=ue(s),i=n==="search",l=W({defaultToLastMonth:!i}),{setSearchParams:c}=l,[x,b]=u.useState(t),p=te(x,300);u.useEffect(()=>b(t),[t]),u.useEffect(()=>{if(p===t)return;const d=new URLSearchParams(s);p?d.set("search",p):d.delete("search"),c(d,{replace:!0})},[p]),u.useEffect(()=>{const d=s.get("order_by"),h=new URLSearchParams(s);i&&!["relevance","date_published","citation_count"].includes(d||"")?(h.set("order_by","relevance"),c(h,{replace:!0})):!i&&d==="relevance"&&(h.delete("order_by"),c(h,{replace:!0}))},[i,s,c]);const j=i&&l.orderBy==="trending"?"relevance":l.orderBy,F=n!=="scoped"&&l.hasCode,S={...l.filters,has_code:F,search:n==="scoped"&&p||void 0,conference:s.get("conference")||void 0,latest_only:s.get("latest_only")!=="false",framework:r,repository:a},v=M(I.list(S),d=>B.list({...S,page:d,page_size:20}),{enabled:!i}),_={q:p.trim(),order_by:j==="trending"?"relevance":j,start_date:l.dateRange.startDate,end_date:l.dateRange.endDate,has_code:F,has_hf_artifacts:l.hasHfArtifacts},P=M(I.search(_),d=>B.searchFeed({..._,page:d,page_size:20,mode:"hybrid"}),{enabled:i&&_.q.length>0}),m=i?P:v,k=u.useMemo(()=>{var h;return(((h=m.data)==null?void 0:h.pages.flatMap(w=>w.results))||[]).map(w=>{const y=re(w);return i?{...y,abstract:he(y.abstract,t)}:y})},[m.data,i,t]),O=((R=(L=(D=v.data)==null?void 0:D.pages)==null?void 0:L[0])==null?void 0:R.count)??0,o=($=(T=(E=v.data)==null?void 0:E.pages)==null?void 0:T[0])==null?void 0:$.scope,z=((o==null?void 0:o.kind)==="framework"?o.framework_name:o==null?void 0:o.repository)||r||a;de(ce(n==="scoped"?`Papers implemented by ${z}`:n==="search"?`Search results for “${t.trim()}”`:"All Papers"));const N=(A=(C=P.data)==null?void 0:C.pages)==null?void 0:A.at(-1),G=r&&U(m.error);return e.jsxs("div",{className:"page",children:[(o==null?void 0:o.kind)==="framework"&&e.jsxs("nav",{className:"breadcrumb","aria-label":"Breadcrumb",children:[e.jsx(f,{to:"/",children:"Papers"}),e.jsx("span",{className:"sep",children:"/"}),e.jsx(f,{to:"/frameworks",children:"Frameworks"}),e.jsx("span",{className:"sep",children:"/"}),e.jsx("span",{style:{color:"var(--ink)"},children:o.framework_name})]}),e.jsxs("div",{className:"feed-header",children:[e.jsxs("div",{children:[e.jsx(fe,{mode:n,scope:o,scopeName:r||a,search:t,totalCount:O,loadedCount:k.length,hasDateRange:!!(l.dateRange.startDate||l.dateRange.endDate)}),n==="scoped"&&o&&e.jsx(xe,{scope:o})]}),e.jsx(Y,{startDate:l.dateRange.startDate,endDate:l.dateRange.endDate,onChange:l.setDateRange})]}),e.jsx("div",{className:"papers-search-row",children:e.jsxs("div",{className:"papers-search-input-wrap",children:[e.jsx(q,{name:"search",size:14}),e.jsx("input",{className:"papers-search-input",placeholder:"Search title or abstract…",value:x,onChange:d=>b(d.target.value)})]})}),e.jsxs("div",{className:n==="browse"?"layout-with-sidebar":"papers-feed-layout-scoped",children:[n==="browse"&&e.jsx(ge,{}),e.jsxs("div",{children:[e.jsx(Z,{feed:l,sorts:i?pe:ee,activeSort:j,showDateFilter:!1,showHasCode:n!=="scoped",children:e.jsxs("div",{className:"results-count",children:[k.length," loaded"]})}),G?e.jsx("div",{className:"no-results",children:"Framework not found."}):e.jsxs(e.Fragment,{children:[m.error&&e.jsx(ie,{variant:"destructive",className:"mb-4",children:e.jsx(le,{children:"Failed to load papers. Please try again."})}),e.jsx(se,{query:m,cards:k,skeleton:"card",highlightQuery:i?t:void 0,empty:e.jsxs(e.Fragment,{children:[e.jsx("p",{children:"No matching papers."}),i&&K()&&e.jsx(f,{to:`/chat?q=${encodeURIComponent(t.trim())}`,children:"Ask the assistant instead"})]}),children:!m.hasNextPage&&!m.isFetchingNextPage&&i&&e.jsx("div",{className:"search-results-end",children:N!=null&&N.cap_reached?"End of the top 100 results":"End of results"})})]})]})]})]})};function fe({mode:s,scope:r,scopeName:a,search:t,totalCount:n,loadedCount:i,hasDateRange:l}){const c=n>0&&`${n.toLocaleString()} papers.`;switch(s){case"scoped":{const x=(r==null?void 0:r.kind)==="framework"?r.framework_name:r==null?void 0:r.repository;return e.jsxs(e.Fragment,{children:[e.jsxs("h1",{className:"feed-title",children:["Papers implemented by ",e.jsx("em",{children:x||a})]}),e.jsx("div",{className:"feed-subtitle",children:(r==null?void 0:r.kind)==="framework"?c:r!=null&&r.repository?e.jsxs(e.Fragment,{children:["GitHub repository ",e.jsx("strong",{children:r.repository}),". ",c]}):"Repository-scoped paper feed."})]})}case"search":return e.jsxs(e.Fragment,{children:[e.jsxs("h1",{className:"feed-title",children:["Search results for ",e.jsxs("em",{children:["“",t,"”"]})]}),e.jsx("div",{className:"feed-subtitle",children:`${i} loaded from the most relevant results.`})]});case"browse":return e.jsxs(e.Fragment,{children:[e.jsxs("h1",{className:"feed-title",children:["All ",e.jsx("em",{children:"Papers"})]}),e.jsxs("div",{className:"feed-subtitle",children:["Search the full corpus. ",n>0&&`${n.toLocaleString()} ${l?"papers in this date range":"papers indexed"}.`]})]})}}function xe({scope:s}){const r=s.kind==="framework";return e.jsxs("div",{className:"paper-feed-scope-links",children:[e.jsxs("div",{className:"paper-feed-primary-links",children:[s.github_url&&e.jsxs("a",{href:s.github_url,target:"_blank",rel:"noopener noreferrer",className:r?"task-framework-link":"framework-link",children:[e.jsx(q,{name:"github",size:13}),r?e.jsxs(e.Fragment,{children:[e.jsx("span",{children:s.repository||"GitHub"}),s.num_stars!=null&&e.jsxs("span",{className:"task-framework-link-stars",children:["★ ",oe(s.num_stars)]})]}):"GitHub"]}),r&&s.introducing_paper_arxiv_id&&e.jsx(f,{to:`/paper/${s.introducing_paper_arxiv_id}`,className:"framework-link",children:"Introducing paper"})]}),r&&s.recommended_tasks&&s.recommended_tasks.length>0&&e.jsx("div",{className:"paper-feed-task-tags",children:s.recommended_tasks.map(a=>a.slug?e.jsx(J,{slug:a.slug,label:a.name},a.id):null)})]})}function ge(){var r;const s=V(X.topTasks(8));return e.jsx("aside",{className:"sidebar",children:e.jsxs("div",{className:"sidebar-section",children:[e.jsx("div",{className:"sidebar-label",children:"Top Domains"}),s.isLoading&&e.jsx("div",{style:{display:"flex",flexDirection:"column",gap:8},children:Array.from({length:6}).map((a,t)=>e.jsx(ne,{className:"h-5 w-full"},t))}),e.jsx("div",{className:"sidebar-links",children:(r=s.data)==null?void 0:r.map(a=>e.jsxs(f,{to:`/tasks/${a.slug}`,className:"sidebar-link",children:[ae(a.name,a.slug),a.paper_count!=null&&e.jsx("span",{className:"count",children:a.paper_count})]},a.id))})]})})}export{Be as default};
 
1
+ import{f as Q,i as u,B,w as I,m as U,j as e,L as f,x as K,b as V,v as X}from"./index-CqLopXcE.js";import{T as J}from"./SotaBadges-CmYGMLyy.js";import{I as q}from"./Icon-BTX00T3U.js";import{b as W,u as M,a as Y,c as Z,d as ee,P as se}from"./usePapers-CLqxSGhP.js";import{t as re,d as ae}from"./transform-BwK-yMDY.js";import{u as te}from"./useDebounce-3Rdi9v36.js";import{S as ne}from"./skeleton-g9QeRZlQ.js";import{A as ie,a as le}from"./alert-C8kkxn4G.js";import{f as oe}from"./frameworks-DDA0P4Tf.js";import{u as de}from"./useDocumentTitle-xBtc80OB.js";import{p as ce}from"./pageTitles-BDUuOvJf.js";import"./colors-BkWRhvFI.js";import"./PaperCard-CpWKB_q0.js";import"./AuthorAvatar-RLVSdcTr.js";import"./LatexTitle-C0en22SO.js";import"./safeExternalHref-CkBrsh84.js";import"./popover-CuCcJ8cK.js";import"./useIntersectionObserver-CvTvi8t8.js";import"./useInfiniteQuery-Dlybgr8f.js";const g=360;function me(s,r){const a=s.toLocaleLowerCase();return r.trim().split(/\s+/).filter(Boolean).reduce((t,n)=>{const i=a.indexOf(n.toLocaleLowerCase());return i>=0&&(t<0||i<t)?i:t},-1)}function H(s,r,a){if((s.slice(0,r).match(/\$/g)||[]).length%2===0)return r;if(a==="start")return s.lastIndexOf("$",r)+1;const n=s.indexOf("$",r);return n>=0?n+1:r}function he(s,r){if(s.length<=g)return s;const a=me(s,r);if(a<0||a<g*.6)return s;let t=Math.max(0,a-Math.floor(g*.35)),n=Math.min(s.length,t+g);return t=H(s,t,"start"),n=H(s,n,"end"),`${t>0?"…":""}${s.slice(t,n).trim()}${n<s.length?"…":""}`}const pe=[["relevance","relevance"],["date_published","newest"],["citation_count","most cited"]];function ue(s){return s.get("framework")||s.get("repository")?"scoped":(s.get("search")||"").trim()?"search":"browse"}const Be=()=>{var D,L,R,E,T,$,C,A;const[s]=Q(),r=s.get("framework")||void 0,a=s.get("repository")||void 0,t=s.get("search")||"",n=ue(s),i=n==="search",l=W({defaultToLastMonth:!i}),{setSearchParams:c}=l,[x,b]=u.useState(t),p=te(x,300);u.useEffect(()=>b(t),[t]),u.useEffect(()=>{if(p===t)return;const d=new URLSearchParams(s);p?d.set("search",p):d.delete("search"),c(d,{replace:!0})},[p]),u.useEffect(()=>{const d=s.get("order_by"),h=new URLSearchParams(s);i&&!["relevance","date_published","citation_count"].includes(d||"")?(h.set("order_by","relevance"),c(h,{replace:!0})):!i&&d==="relevance"&&(h.delete("order_by"),c(h,{replace:!0}))},[i,s,c]);const j=i&&l.orderBy==="trending"?"relevance":l.orderBy,F=n!=="scoped"&&l.hasCode,S={...l.filters,has_code:F,search:n==="scoped"&&p||void 0,conference:s.get("conference")||void 0,latest_only:s.get("latest_only")!=="false",framework:r,repository:a},v=M(I.list(S),d=>B.list({...S,page:d,page_size:20}),{enabled:!i}),_={q:p.trim(),order_by:j==="trending"?"relevance":j,start_date:l.dateRange.startDate,end_date:l.dateRange.endDate,has_code:F,has_hf_artifacts:l.hasHfArtifacts},P=M(I.search(_),d=>B.searchFeed({..._,page:d,page_size:20,mode:"hybrid"}),{enabled:i&&_.q.length>0}),m=i?P:v,k=u.useMemo(()=>{var h;return(((h=m.data)==null?void 0:h.pages.flatMap(w=>w.results))||[]).map(w=>{const y=re(w);return i?{...y,abstract:he(y.abstract,t)}:y})},[m.data,i,t]),O=((R=(L=(D=v.data)==null?void 0:D.pages)==null?void 0:L[0])==null?void 0:R.count)??0,o=($=(T=(E=v.data)==null?void 0:E.pages)==null?void 0:T[0])==null?void 0:$.scope,z=((o==null?void 0:o.kind)==="framework"?o.framework_name:o==null?void 0:o.repository)||r||a;de(ce(n==="scoped"?`Papers implemented by ${z}`:n==="search"?`Search results for “${t.trim()}”`:"All Papers"));const N=(A=(C=P.data)==null?void 0:C.pages)==null?void 0:A.at(-1),G=r&&U(m.error);return e.jsxs("div",{className:"page",children:[(o==null?void 0:o.kind)==="framework"&&e.jsxs("nav",{className:"breadcrumb","aria-label":"Breadcrumb",children:[e.jsx(f,{to:"/",children:"Papers"}),e.jsx("span",{className:"sep",children:"/"}),e.jsx(f,{to:"/frameworks",children:"Frameworks"}),e.jsx("span",{className:"sep",children:"/"}),e.jsx("span",{style:{color:"var(--ink)"},children:o.framework_name})]}),e.jsxs("div",{className:"feed-header",children:[e.jsxs("div",{children:[e.jsx(fe,{mode:n,scope:o,scopeName:r||a,search:t,totalCount:O,loadedCount:k.length,hasDateRange:!!(l.dateRange.startDate||l.dateRange.endDate)}),n==="scoped"&&o&&e.jsx(xe,{scope:o})]}),e.jsx(Y,{startDate:l.dateRange.startDate,endDate:l.dateRange.endDate,onChange:l.setDateRange})]}),e.jsx("div",{className:"papers-search-row",children:e.jsxs("div",{className:"papers-search-input-wrap",children:[e.jsx(q,{name:"search",size:14}),e.jsx("input",{className:"papers-search-input",placeholder:"Search title or abstract…",value:x,onChange:d=>b(d.target.value)})]})}),e.jsxs("div",{className:n==="browse"?"layout-with-sidebar":"papers-feed-layout-scoped",children:[n==="browse"&&e.jsx(ge,{}),e.jsxs("div",{children:[e.jsx(Z,{feed:l,sorts:i?pe:ee,activeSort:j,showDateFilter:!1,showHasCode:n!=="scoped",children:e.jsxs("div",{className:"results-count",children:[k.length," loaded"]})}),G?e.jsx("div",{className:"no-results",children:"Framework not found."}):e.jsxs(e.Fragment,{children:[m.error&&e.jsx(ie,{variant:"destructive",className:"mb-4",children:e.jsx(le,{children:"Failed to load papers. Please try again."})}),e.jsx(se,{query:m,cards:k,skeleton:"card",highlightQuery:i?t:void 0,empty:e.jsxs(e.Fragment,{children:[e.jsx("p",{children:"No matching papers."}),i&&K()&&e.jsx(f,{to:`/chat?q=${encodeURIComponent(t.trim())}`,children:"Ask the assistant instead"})]}),children:!m.hasNextPage&&!m.isFetchingNextPage&&i&&e.jsx("div",{className:"search-results-end",children:N!=null&&N.cap_reached?"End of the top 100 results":"End of results"})})]})]})]})]})};function fe({mode:s,scope:r,scopeName:a,search:t,totalCount:n,loadedCount:i,hasDateRange:l}){const c=n>0&&`${n.toLocaleString()} papers.`;switch(s){case"scoped":{const x=(r==null?void 0:r.kind)==="framework"?r.framework_name:r==null?void 0:r.repository;return e.jsxs(e.Fragment,{children:[e.jsxs("h1",{className:"feed-title",children:["Papers implemented by ",e.jsx("em",{children:x||a})]}),e.jsx("div",{className:"feed-subtitle",children:(r==null?void 0:r.kind)==="framework"?c:r!=null&&r.repository?e.jsxs(e.Fragment,{children:["GitHub repository ",e.jsx("strong",{children:r.repository}),". ",c]}):"Repository-scoped paper feed."})]})}case"search":return e.jsxs(e.Fragment,{children:[e.jsxs("h1",{className:"feed-title",children:["Search results for ",e.jsxs("em",{children:["“",t,"”"]})]}),e.jsx("div",{className:"feed-subtitle",children:`${i} loaded from the most relevant results.`})]});case"browse":return e.jsxs(e.Fragment,{children:[e.jsxs("h1",{className:"feed-title",children:["All ",e.jsx("em",{children:"Papers"})]}),e.jsxs("div",{className:"feed-subtitle",children:["Search the full corpus. ",n>0&&`${n.toLocaleString()} ${l?"papers in this date range":"papers indexed"}.`]})]})}}function xe({scope:s}){const r=s.kind==="framework";return e.jsxs("div",{className:"paper-feed-scope-links",children:[e.jsxs("div",{className:"paper-feed-primary-links",children:[s.github_url&&e.jsxs("a",{href:s.github_url,target:"_blank",rel:"noopener noreferrer",className:r?"task-framework-link":"framework-link",children:[e.jsx(q,{name:"github",size:13}),r?e.jsxs(e.Fragment,{children:[e.jsx("span",{children:s.repository||"GitHub"}),s.num_stars!=null&&e.jsxs("span",{className:"task-framework-link-stars",children:["★ ",oe(s.num_stars)]})]}):"GitHub"]}),r&&s.introducing_paper_arxiv_id&&e.jsx(f,{to:`/paper/${s.introducing_paper_arxiv_id}`,className:"framework-link",children:"Introducing paper"})]}),r&&s.recommended_tasks&&s.recommended_tasks.length>0&&e.jsx("div",{className:"paper-feed-task-tags",children:s.recommended_tasks.map(a=>a.slug?e.jsx(J,{slug:a.slug,label:a.name},a.id):null)})]})}function ge(){var r;const s=V(X.topTasks(8));return e.jsx("aside",{className:"sidebar",children:e.jsxs("div",{className:"sidebar-section",children:[e.jsx("div",{className:"sidebar-label",children:"Top Domains"}),s.isLoading&&e.jsx("div",{style:{display:"flex",flexDirection:"column",gap:8},children:Array.from({length:6}).map((a,t)=>e.jsx(ne,{className:"h-5 w-full"},t))}),e.jsx("div",{className:"sidebar-links",children:(r=s.data)==null?void 0:r.map(a=>e.jsxs(f,{to:`/tasks/${a.slug}`,className:"sidebar-link",children:[ae(a.name,a.slug),a.paper_count!=null&&e.jsx("span",{className:"count",children:a.paper_count})]},a.id))})]})})}export{Be as default};
assets/{PrivacyView-ZUudC-Wz.js → PrivacyView-BrL4IPUA.js} RENAMED
@@ -1 +1 @@
1
- import{j as e}from"./index-2xE415-f.js";import{u as i,f as s}from"./useDocumentTitle-_d-BLODt.js";const r=()=>(i(s("Privacy Policy")),e.jsxs("article",{className:"page legal-page",children:[e.jsxs("header",{className:"legal-header",children:[e.jsx("p",{className:"legal-kicker",children:"Legal"}),e.jsx("h1",{children:"Privacy Policy"}),e.jsx("p",{className:"legal-effective-date",children:"Effective November 13, 2026"})]}),e.jsx("p",{children:"This Privacy Policy explains how Hugging Face, Inc. (“Hugging Face,” “we,” or “us”) collects, uses, and shares information when you use Papers With Code, including its website, research assistant, APIs, and related services (the “Service”)."}),e.jsxs("section",{children:[e.jsx("h2",{children:"1. Information we collect"}),e.jsx("h3",{children:"Information you provide"}),e.jsxs("ul",{children:[e.jsxs("li",{children:[e.jsx("strong",{children:"Account information."})," If you sign in with Hugging Face, we receive account identifiers and profile details needed to authenticate you, such as your user ID, username, and avatar. If you request contributor access, we also receive and retain the verified email address associated with your Hugging Face account so we can review and communicate about your request."]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Contributions and preferences."})," We collect information you submit or save, such as paper submissions and edits, bookmarks, display preferences, feedback, and communications with us. Material you submit to a public research page may be publicly visible."]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Research assistant content."})," We collect your questions, files you attach, conversation history, generated answers, citations, tool calls and results, and feedback about answers. Chats are private to your account unless you choose to create a share link; anyone with that link may be able to view the shared chat."]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Uploaded files."})," If you attach a PDF, image, or text file to a chat, we store it privately with that chat so the research assistant can read it again later and so we can review chat quality. Uploaded files count toward your chat-data limit. A shared chat shows only each file's name and size, but answers in it may quote the file."]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Voice input."})," If you dictate into the research assistant, your microphone audio is streamed to a speech-recognition model to produce text in your message box. Papers With Code does not store the audio or a separate transcript; the text becomes research assistant content only if you send it. We keep the length and time of each voice session to enforce usage limits."]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Provider and billing information."})," If you enable a model provider, we process the authorization or API credentials needed to make requests on your behalf. Hugging Face or another provider processes its own billing information under its terms. Papers With Code does not collect your payment-card details."]})]}),e.jsx("h3",{children:"Information collected automatically"}),e.jsx("p",{children:"We collect technical and usage information such as IP address, browser and device type, operating system, pages or features used, dates and times, referring pages, request identifiers, cookies, logs, and diagnostic data. For research-assistant requests, this may include the selected model, token and cost details, latency, errors, and other operational metadata."}),e.jsx("h3",{children:"Research assistant tracing"}),e.jsxs("p",{children:["To evaluate, debug, secure, and improve the research assistant, we use Langfuse to record traces. A trace may contain the complete text of your question and the assistant's answer, as well as tool inputs, tool outputs, retrieved research material, model details, usage data, and related operational metadata.",e.jsx("strong",{children:" This trace content is not redacted before it is sent to Langfuse."})]}),e.jsx("p",{children:"Papers With Code is designed for questions about research literature. Do not put passwords, API keys, confidential information, health or financial data, or other sensitive personal information in research-assistant prompts."})]}),e.jsxs("section",{children:[e.jsx("h2",{children:"2. How we use information"}),e.jsx("p",{children:"We use information to:"}),e.jsxs("ul",{children:[e.jsx("li",{children:"provide, personalize, maintain, and operate the Service;"}),e.jsx("li",{children:"authenticate users and keep accounts and the Service secure;"}),e.jsx("li",{children:"run research-assistant requests and preserve conversation history;"}),e.jsx("li",{children:"measure performance, troubleshoot failures, and improve quality;"}),e.jsx("li",{children:"review contributions, prevent abuse, and enforce applicable terms;"}),e.jsx("li",{children:"communicate with you and respond to requests; and"}),e.jsx("li",{children:"comply with law and protect users, Hugging Face, and the public."})]})]}),e.jsxs("section",{children:[e.jsx("h2",{children:"3. How we share information"}),e.jsx("p",{children:"We may share information in these circumstances:"}),e.jsxs("ul",{children:[e.jsxs("li",{children:[e.jsx("strong",{children:"Service providers."})," Vendors process information for hosting, authentication, analytics, observability, security, and support. These include Hugging Face services, Langfuse for research-assistant tracing, Plausible for website analytics, and infrastructure providers."]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Speech recognition."})," Voice input audio is transcribed by a model hosted on Hugging Face Inference Endpoints. While that model is starting up or at capacity, the audio is transcribed by OpenAI instead. Neither audio nor transcripts are retained by Papers With Code."]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Model providers."})," Research-assistant content is sent to the model provider you use, such as OpenAI, Hugging Face Inference Providers, or OpenRouter, so it can generate a response. Files you attach are uploaded to OpenAI, which stores them until the chat is deleted. That provider's privacy terms also apply to its processing."]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Public and shared content."})," Contributions intended for public pages are public. A chat is disclosed through the Service when you create and distribute a share link."]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Legal, safety, and corporate events."})," We may disclose information when reasonably necessary to comply with law, protect rights and safety, investigate abuse, or complete a merger, acquisition, financing, or transfer of assets."]})]}),e.jsx("p",{children:"We do not sell your personal information."})]}),e.jsxs("section",{children:[e.jsx("h2",{children:"4. Cookies and analytics"}),e.jsx("p",{children:"We use cookies and similar storage when needed for sign-in, security, preferences, and operation of the Service. We also use Plausible to understand aggregate website usage. You can control cookies through your browser, but disabling necessary cookies may prevent account features from working."})]}),e.jsxs("section",{children:[e.jsx("h2",{children:"5. Legal bases"}),e.jsx("p",{children:"Where applicable law requires a legal basis, we process information as needed to perform our agreement with you, with your consent, to comply with legal obligations, and for legitimate interests such as operating, securing, and improving the Service. You may withdraw consent where consent is the basis for processing, without affecting earlier processing."})]}),e.jsxs("section",{children:[e.jsx("h2",{children:"6. Retention and deletion"}),e.jsx("p",{children:"Private chats are retained until you delete them, subject to limits of 500 active chats and 100 MB of chat data per user. Archiving hides a chat and frees active-chat quota but does not delete it. You may deliberately share an unlisted snapshot; deleting its private chat removes the durable transcript, workspace reference, uploaded files (including the copy held by OpenAI), and share link after deletion is verified. No dedicated private-chat export format is currently offered."}),e.jsx("p",{children:"We keep information for as long as reasonably needed for the purposes described here, including providing the Service, maintaining security and audit records, resolving disputes, and meeting legal obligations. Retention periods vary by data type and service provider. You can delete individual chats in the Service. Deletion may not immediately remove information from backups, security logs, or third-party systems where limited retention is required."})]}),e.jsxs("section",{children:[e.jsx("h2",{children:"7. Security and international transfers"}),e.jsx("p",{children:"We use reasonable administrative, technical, and organizational safeguards, but no internet service can guarantee absolute security. We and our service providers may process information in the United States and other countries, which may have different data-protection laws from your country. Where required, we use appropriate safeguards for international transfers."})]}),e.jsxs("section",{children:[e.jsx("h2",{children:"8. Your privacy rights"}),e.jsx("p",{children:"Depending on where you live, you may have rights to access, correct, delete, or receive a copy of your personal information; object to or restrict processing; withdraw consent; or appeal a decision about a request. You may also have the right to complain to a data-protection authority. We may need to verify your identity before fulfilling a request."})]}),e.jsxs("section",{children:[e.jsx("h2",{children:"9. Children"}),e.jsx("p",{children:"The Service is not directed to children under 13, and we do not knowingly collect personal information from children under 13. If you believe a child has provided personal information, please contact us."})]}),e.jsxs("section",{children:[e.jsx("h2",{children:"10. Changes to this policy"}),e.jsx("p",{children:"We may update this policy as the Service changes. We will post the revised policy here and update its effective date. If a change is material, we will provide additional notice when appropriate."})]}),e.jsxs("section",{children:[e.jsx("h2",{children:"11. Contact us"}),e.jsxs("p",{children:["For questions or privacy requests, contact"," ",e.jsx("a",{href:"mailto:privacy@huggingface.co",children:"privacy@huggingface.co"}),". Please do not include passwords, API keys, or other sensitive credentials in your message."]})]})]}));export{r as default};
 
1
+ import{j as e}from"./index-CqLopXcE.js";import{u as i,f as s}from"./useDocumentTitle-xBtc80OB.js";const r=()=>(i(s("Privacy Policy")),e.jsxs("article",{className:"page legal-page",children:[e.jsxs("header",{className:"legal-header",children:[e.jsx("p",{className:"legal-kicker",children:"Legal"}),e.jsx("h1",{children:"Privacy Policy"}),e.jsx("p",{className:"legal-effective-date",children:"Effective November 13, 2026"})]}),e.jsx("p",{children:"This Privacy Policy explains how Hugging Face, Inc. (“Hugging Face,” “we,” or “us”) collects, uses, and shares information when you use Papers With Code, including its website, research assistant, APIs, and related services (the “Service”)."}),e.jsxs("section",{children:[e.jsx("h2",{children:"1. Information we collect"}),e.jsx("h3",{children:"Information you provide"}),e.jsxs("ul",{children:[e.jsxs("li",{children:[e.jsx("strong",{children:"Account information."})," If you sign in with Hugging Face, we receive account identifiers and profile details needed to authenticate you, such as your user ID, username, and avatar. If you request contributor access, we also receive and retain the verified email address associated with your Hugging Face account so we can review and communicate about your request."]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Contributions and preferences."})," We collect information you submit or save, such as paper submissions and edits, bookmarks, display preferences, feedback, and communications with us. Material you submit to a public research page may be publicly visible."]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Research assistant content."})," We collect your questions, files you attach, conversation history, generated answers, citations, tool calls and results, and feedback about answers. Chats are private to your account unless you choose to create a share link; anyone with that link may be able to view the shared chat."]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Uploaded files."})," If you attach a PDF, image, or text file to a chat, we store it privately with that chat so the research assistant can read it again later and so we can review chat quality. Uploaded files count toward your chat-data limit. A shared chat shows only each file's name and size, but answers in it may quote the file."]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Voice input."})," If you dictate into the research assistant, your microphone audio is streamed to a speech-recognition model to produce text in your message box. Papers With Code does not store the audio or a separate transcript; the text becomes research assistant content only if you send it. We keep the length and time of each voice session to enforce usage limits."]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Provider and billing information."})," If you enable a model provider, we process the authorization or API credentials needed to make requests on your behalf. Hugging Face or another provider processes its own billing information under its terms. Papers With Code does not collect your payment-card details."]})]}),e.jsx("h3",{children:"Information collected automatically"}),e.jsx("p",{children:"We collect technical and usage information such as IP address, browser and device type, operating system, pages or features used, dates and times, referring pages, request identifiers, cookies, logs, and diagnostic data. For research-assistant requests, this may include the selected model, token and cost details, latency, errors, and other operational metadata."}),e.jsx("h3",{children:"Research assistant tracing"}),e.jsxs("p",{children:["To evaluate, debug, secure, and improve the research assistant, we use Langfuse to record traces. A trace may contain the complete text of your question and the assistant's answer, as well as tool inputs, tool outputs, retrieved research material, model details, usage data, and related operational metadata.",e.jsx("strong",{children:" This trace content is not redacted before it is sent to Langfuse."})]}),e.jsx("p",{children:"Papers With Code is designed for questions about research literature. Do not put passwords, API keys, confidential information, health or financial data, or other sensitive personal information in research-assistant prompts."})]}),e.jsxs("section",{children:[e.jsx("h2",{children:"2. How we use information"}),e.jsx("p",{children:"We use information to:"}),e.jsxs("ul",{children:[e.jsx("li",{children:"provide, personalize, maintain, and operate the Service;"}),e.jsx("li",{children:"authenticate users and keep accounts and the Service secure;"}),e.jsx("li",{children:"run research-assistant requests and preserve conversation history;"}),e.jsx("li",{children:"measure performance, troubleshoot failures, and improve quality;"}),e.jsx("li",{children:"review contributions, prevent abuse, and enforce applicable terms;"}),e.jsx("li",{children:"communicate with you and respond to requests; and"}),e.jsx("li",{children:"comply with law and protect users, Hugging Face, and the public."})]})]}),e.jsxs("section",{children:[e.jsx("h2",{children:"3. How we share information"}),e.jsx("p",{children:"We may share information in these circumstances:"}),e.jsxs("ul",{children:[e.jsxs("li",{children:[e.jsx("strong",{children:"Service providers."})," Vendors process information for hosting, authentication, analytics, observability, security, and support. These include Hugging Face services, Langfuse for research-assistant tracing, Plausible for website analytics, and infrastructure providers."]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Speech recognition."})," Voice input audio is transcribed by a model hosted on Hugging Face Inference Endpoints. While that model is starting up or at capacity, the audio is transcribed by OpenAI instead. Neither audio nor transcripts are retained by Papers With Code."]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Model providers."})," Research-assistant content is sent to the model provider you use, such as OpenAI, Hugging Face Inference Providers, or OpenRouter, so it can generate a response. Files you attach are uploaded to OpenAI, which stores them until the chat is deleted. That provider's privacy terms also apply to its processing."]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Public and shared content."})," Contributions intended for public pages are public. A chat is disclosed through the Service when you create and distribute a share link."]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Legal, safety, and corporate events."})," We may disclose information when reasonably necessary to comply with law, protect rights and safety, investigate abuse, or complete a merger, acquisition, financing, or transfer of assets."]})]}),e.jsx("p",{children:"We do not sell your personal information."})]}),e.jsxs("section",{children:[e.jsx("h2",{children:"4. Cookies and analytics"}),e.jsx("p",{children:"We use cookies and similar storage when needed for sign-in, security, preferences, and operation of the Service. We also use Plausible to understand aggregate website usage. You can control cookies through your browser, but disabling necessary cookies may prevent account features from working."})]}),e.jsxs("section",{children:[e.jsx("h2",{children:"5. Legal bases"}),e.jsx("p",{children:"Where applicable law requires a legal basis, we process information as needed to perform our agreement with you, with your consent, to comply with legal obligations, and for legitimate interests such as operating, securing, and improving the Service. You may withdraw consent where consent is the basis for processing, without affecting earlier processing."})]}),e.jsxs("section",{children:[e.jsx("h2",{children:"6. Retention and deletion"}),e.jsx("p",{children:"Private chats are retained until you delete them, subject to limits of 500 active chats and 100 MB of chat data per user. Archiving hides a chat and frees active-chat quota but does not delete it. You may deliberately share an unlisted snapshot; deleting its private chat removes the durable transcript, workspace reference, uploaded files (including the copy held by OpenAI), and share link after deletion is verified. No dedicated private-chat export format is currently offered."}),e.jsx("p",{children:"We keep information for as long as reasonably needed for the purposes described here, including providing the Service, maintaining security and audit records, resolving disputes, and meeting legal obligations. Retention periods vary by data type and service provider. You can delete individual chats in the Service. Deletion may not immediately remove information from backups, security logs, or third-party systems where limited retention is required."})]}),e.jsxs("section",{children:[e.jsx("h2",{children:"7. Security and international transfers"}),e.jsx("p",{children:"We use reasonable administrative, technical, and organizational safeguards, but no internet service can guarantee absolute security. We and our service providers may process information in the United States and other countries, which may have different data-protection laws from your country. Where required, we use appropriate safeguards for international transfers."})]}),e.jsxs("section",{children:[e.jsx("h2",{children:"8. Your privacy rights"}),e.jsx("p",{children:"Depending on where you live, you may have rights to access, correct, delete, or receive a copy of your personal information; object to or restrict processing; withdraw consent; or appeal a decision about a request. You may also have the right to complain to a data-protection authority. We may need to verify your identity before fulfilling a request."})]}),e.jsxs("section",{children:[e.jsx("h2",{children:"9. Children"}),e.jsx("p",{children:"The Service is not directed to children under 13, and we do not knowingly collect personal information from children under 13. If you believe a child has provided personal information, please contact us."})]}),e.jsxs("section",{children:[e.jsx("h2",{children:"10. Changes to this policy"}),e.jsx("p",{children:"We may update this policy as the Service changes. We will post the revised policy here and update its effective date. If a change is material, we will provide additional notice when appropriate."})]}),e.jsxs("section",{children:[e.jsx("h2",{children:"11. Contact us"}),e.jsxs("p",{children:["For questions or privacy requests, contact"," ",e.jsx("a",{href:"mailto:privacy@huggingface.co",children:"privacy@huggingface.co"}),". Please do not include passwords, API keys, or other sensitive credentials in your message."]})]})]}));export{r as default};
assets/{RateLimitsView-CXDYWh4H.js → RateLimitsView-CuW0zveG.js} RENAMED
@@ -1 +1 @@
1
- import{b as t,j as e,aa as s}from"./index-2xE415-f.js";const n=()=>{const i=t(s.rateLimitPolicy()).data;return e.jsxs("div",{className:"page",style:{maxWidth:760},children:[e.jsx("h1",{children:"Submission and rate-limit policy"}),i?e.jsxs(e.Fragment,{children:[e.jsxs("p",{children:["Each account may have up to ",i.active_pending," active submissions."]}),e.jsxs("p",{children:["New submissions are limited to ",i.subject_per_hour," per account and ",i.ip_per_hour," per source network in a rolling hour."]})]}):e.jsx("p",{children:"Loading current limits…"}),e.jsx("p",{children:"Duplicate, no-op, and idempotently replayed requests do not consume creation quota."}),e.jsx("p",{children:"Rate-limited responses use HTTP 429 with Retry-After, RateLimit, and RateLimit-Policy headers."}),e.jsx("p",{children:"Good-faith contributors who are blocked should contact the Papers with Code maintainers with their Hugging Face username."})]})};export{n as default};
 
1
+ import{b as t,j as e,aa as s}from"./index-CqLopXcE.js";const n=()=>{const i=t(s.rateLimitPolicy()).data;return e.jsxs("div",{className:"page",style:{maxWidth:760},children:[e.jsx("h1",{children:"Submission and rate-limit policy"}),i?e.jsxs(e.Fragment,{children:[e.jsxs("p",{children:["Each account may have up to ",i.active_pending," active submissions."]}),e.jsxs("p",{children:["New submissions are limited to ",i.subject_per_hour," per account and ",i.ip_per_hour," per source network in a rolling hour."]})]}):e.jsx("p",{children:"Loading current limits…"}),e.jsx("p",{children:"Duplicate, no-op, and idempotently replayed requests do not consume creation quota."}),e.jsx("p",{children:"Rate-limited responses use HTTP 429 with Retry-After, RateLimit, and RateLimit-Policy headers."}),e.jsx("p",{children:"Good-faith contributors who are blocked should contact the Papers with Code maintainers with their Hugging Face username."})]})};export{n as default};
assets/{ResearchFollowButton-ktN3oGoK.js → ResearchFollowButton-lWVVvGzA.js} RENAMED
@@ -1 +1 @@
1
- import{e as j,q as g,i as b,k as F,j as e,l as N,C as y,L as i}from"./index-2xE415-f.js";import{f as C,w as L}from"./researchTopic-elGDd7wA.js";import{P as u}from"./plus-C20t97Ow.js";const f={task:"Get new papers on this task",method:"Get new papers using this method",benchmark:"Get new results on this benchmark",author:"Get new papers by this author",organization:"Get new papers from this organization"};function R({kind:o,entityId:n}){var w;const l=j(),c=l==null?void 0:l.user,h=g(),[m,p]=b.useState(null),d=`${o}:${n}`,r=C(),s=((w=r.data)==null?void 0:w.some(a=>a.kind===o&&String(a.entity_id)===String(n)))??!1,t=L({onChanged:({follow:a})=>p(a?d:null),awaitRefresh:!0});if(!l||!c&&F())return null;if(!c)return e.jsxs("div",{className:"research-follow",children:[e.jsxs("a",{className:"research-follow-btn",href:N(h.pathname+h.search),children:[e.jsx(u,{"aria-hidden":"true"}),"Follow"]}),e.jsxs("span",{className:"research-follow-hint",children:["Sign in to ",f[o].toLowerCase(),"."]})]});const x=t.error||r.error;return e.jsxs("div",{className:"research-follow",children:[e.jsx("button",{type:"button",className:s?"research-follow-btn is-following":"research-follow-btn",disabled:r.isLoading||!!r.error||t.isPending,"aria-pressed":s,"aria-label":s?"Unfollow":"Follow",onClick:()=>t.mutate({kind:o,entityId:n,follow:!s}),children:s?e.jsxs(e.Fragment,{children:[e.jsx(y,{"aria-hidden":"true"}),e.jsx("span",{className:"research-follow-label",children:"Following"}),e.jsx("span",{className:"research-follow-label-hover",children:"Unfollow"})]}):e.jsxs(e.Fragment,{children:[e.jsx(u,{"aria-hidden":"true"}),"Follow"]})}),x?e.jsx("span",{className:"research-follow-hint is-error",role:"alert",children:"Could not update follows. Please try again."}):s?m===d&&e.jsxs("span",{className:"research-follow-hint",role:"status",children:["Added to ",e.jsx(i,{to:"/following",children:"your Following feed"})," · ",e.jsx(i,{to:"/following?edit=1",children:"Edit feed"})]}):e.jsxs("span",{className:"research-follow-hint",children:[f[o]," in ",e.jsx(i,{to:"/following",children:"your Following feed"}),"."]})]})}export{R};
 
1
+ import{e as j,q as g,i as b,k as F,j as e,l as N,C as y,L as i}from"./index-CqLopXcE.js";import{f as C,w as L}from"./researchTopic-BNud5CMS.js";import{P as u}from"./plus-D-JcHoGj.js";const f={task:"Get new papers on this task",method:"Get new papers using this method",benchmark:"Get new results on this benchmark",author:"Get new papers by this author",organization:"Get new papers from this organization"};function R({kind:o,entityId:n}){var w;const l=j(),c=l==null?void 0:l.user,h=g(),[m,p]=b.useState(null),d=`${o}:${n}`,r=C(),s=((w=r.data)==null?void 0:w.some(a=>a.kind===o&&String(a.entity_id)===String(n)))??!1,t=L({onChanged:({follow:a})=>p(a?d:null),awaitRefresh:!0});if(!l||!c&&F())return null;if(!c)return e.jsxs("div",{className:"research-follow",children:[e.jsxs("a",{className:"research-follow-btn",href:N(h.pathname+h.search),children:[e.jsx(u,{"aria-hidden":"true"}),"Follow"]}),e.jsxs("span",{className:"research-follow-hint",children:["Sign in to ",f[o].toLowerCase(),"."]})]});const x=t.error||r.error;return e.jsxs("div",{className:"research-follow",children:[e.jsx("button",{type:"button",className:s?"research-follow-btn is-following":"research-follow-btn",disabled:r.isLoading||!!r.error||t.isPending,"aria-pressed":s,"aria-label":s?"Unfollow":"Follow",onClick:()=>t.mutate({kind:o,entityId:n,follow:!s}),children:s?e.jsxs(e.Fragment,{children:[e.jsx(y,{"aria-hidden":"true"}),e.jsx("span",{className:"research-follow-label",children:"Following"}),e.jsx("span",{className:"research-follow-label-hover",children:"Unfollow"})]}):e.jsxs(e.Fragment,{children:[e.jsx(u,{"aria-hidden":"true"}),"Follow"]})}),x?e.jsx("span",{className:"research-follow-hint is-error",role:"alert",children:"Could not update follows. Please try again."}):s?m===d&&e.jsxs("span",{className:"research-follow-hint",role:"status",children:["Added to ",e.jsx(i,{to:"/following",children:"your Following feed"})," · ",e.jsx(i,{to:"/following?edit=1",children:"Edit feed"})]}):e.jsxs("span",{className:"research-follow-hint",children:[f[o]," in ",e.jsx(i,{to:"/following",children:"your Following feed"}),"."]})]})}export{R};
assets/{SavedPapersView-B5dDziEM.js → SavedPapersView-1LLDd2V8.js} RENAMED
@@ -1 +1 @@
1
- import{a as g,b as v,M as x,A as j,j as e,H as b,L as N}from"./index-2xE415-f.js";import{P as f}from"./PaperCard-Do-fUKOE.js";import{T as k}from"./SotaBadges-Cy5KKcKe.js";import{S as r}from"./skeleton-7Kak9gS9.js";import{A as y,a as w}from"./alert-CMc00cqX.js";import{t as A}from"./transform-krmE0Oxv.js";import{s as B}from"./savedPapersAuth-CEGk1D0G.js";import"./AuthorAvatar-D53WcphF.js";import"./Icon-DQoMmS2z.js";import"./LatexTitle-CIj5wiaM.js";import"./safeExternalHref-CkBrsh84.js";import"./colors-BkWRhvFI.js";const q=()=>{var o,l;const{user:t,isLoading:m}=g(),a=v({...x.saved(),enabled:!!t,staleTime:30*1e3}),c=a.error instanceof j&&a.error.code==="saved_papers_bucket_authorization_required",d=!!a.data&&!a.data.bucket_connected,n=()=>{window.location.assign(B())};if(m)return e.jsxs("div",{className:"page",children:[e.jsx(r,{className:"h-10 w-1/3 mb-4"}),e.jsx(r,{className:"h-6 w-1/2 mb-8"})]});if(!t)return e.jsxs("div",{className:"page",children:[e.jsx("div",{className:"feed-header",children:e.jsxs("div",{children:[e.jsxs("h1",{className:"feed-title",children:["Saved ",e.jsx("em",{children:"Papers"})]}),e.jsx("div",{className:"feed-subtitle",children:"Sign in with Hugging Face to save papers and revisit them later."})]})}),e.jsx("div",{className:"saved-signin-panel",children:e.jsx(b,{returnTo:"/saved"})})]});let h=0;return e.jsxs("div",{className:"page",children:[e.jsx("div",{className:"feed-header",children:e.jsxs("div",{children:[e.jsxs("h1",{className:"feed-title",children:["Saved ",e.jsx("em",{children:"Papers"})]}),e.jsxs("div",{className:"feed-subtitle",children:[(o=a.data)!=null&&o.count?`${a.data.count.toLocaleString()} saved · grouped by domain`:"Your bookmarked papers, grouped by domain.",(l=a.data)!=null&&l.bucket_connected?e.jsxs(e.Fragment,{children:[" · ",e.jsx("a",{href:`https://huggingface.co/buckets/${t.username}/pwc-saved-papers`,target:"_blank",rel:"noopener noreferrer",children:"Open your Hugging Face Bucket"})]}):null]})]})}),c?e.jsxs("div",{className:"saved-bucket-migration",children:[e.jsx("p",{children:"Your saved papers are still safe in Papers With Code. Approve Bucket access to copy them into a private Hugging Face Bucket that belongs to you."}),e.jsx("button",{type:"button",className:"hf-signin-btn",onClick:n,children:"Approve and migrate saved papers"})]}):a.error?e.jsx(y,{variant:"destructive",className:"mb-4",children:e.jsx(w,{children:"Failed to load your saved papers. Please try again."})}):null,d&&a.data.bucket_migrated?e.jsxs("div",{className:"saved-bucket-migration",children:[e.jsx("p",{children:"Your saved papers are already in your private Hugging Face Bucket. Reconnect it in this browser to read from it and save new papers there."}),e.jsx("button",{type:"button",className:"hf-signin-btn",onClick:n,children:"Reconnect Hugging Face Bucket"})]}):d?e.jsxs("div",{className:"saved-bucket-migration",children:[e.jsxs("p",{children:[a.data.count?`Your ${a.data.count.toLocaleString()} saved ${a.data.count===1?"paper is":"papers are"} still available below. `:"When you save your first paper, ","Approve Bucket access to copy saved papers into a private Hugging Face Bucket that belongs to you. The existing data is kept until the copy is verified."]}),e.jsx("button",{type:"button",className:"hf-signin-btn",onClick:n,children:a.data.count?"Approve and migrate saved papers":"Use a Hugging Face Bucket"})]}):null,c||a.error?null:a.isLoading?e.jsx("div",{className:"paper-list",children:Array.from({length:4}).map((i,s)=>e.jsxs("div",{className:"paper-card",children:[e.jsx(r,{className:"h-[220px] w-[160px]"}),e.jsxs("div",{className:"paper-body",style:{flex:1,gap:12},children:[e.jsx(r,{className:"h-6 w-3/4"}),e.jsx(r,{className:"h-4 w-1/2"}),e.jsx(r,{className:"h-12 w-full"})]})]},s))}):!a.data||a.data.count===0?e.jsxs("div",{className:"no-results",children:["No saved papers yet."," ",e.jsx(N,{to:"/papers",className:"sidebar-link",style:{display:"inline"},children:"Browse papers →"})]}):a.data.areas.map(i=>e.jsxs("section",{className:"saved-area-section",children:[e.jsx("h2",{className:"saved-area-heading",children:i.name}),i.tasks.map(s=>{const p=s.papers.length;return e.jsxs("div",{className:"saved-task-block",children:[e.jsxs("div",{className:"saved-task-row",children:[s.slug?e.jsx(k,{slug:s.slug,label:s.name}):e.jsx("span",{className:"tag-chip",style:{background:"var(--surface)"},children:s.name}),e.jsxs("span",{className:"saved-task-count",children:[p," ",p===1?"paper":"papers"]})]}),e.jsx("div",{className:"paper-list",children:s.papers.map(u=>e.jsx(f,{paper:A(u),priority:h++<3},u.id))})]},`task-${i.id??"other"}-${s.id??"untagged"}`)})]},`area-${i.id??"other"}`))]})};export{q as default};
 
1
+ import{a as g,b as v,M as x,A as j,j as e,H as b,L as N}from"./index-CqLopXcE.js";import{P as f}from"./PaperCard-CpWKB_q0.js";import{T as k}from"./SotaBadges-CmYGMLyy.js";import{S as r}from"./skeleton-g9QeRZlQ.js";import{A as y,a as w}from"./alert-C8kkxn4G.js";import{t as A}from"./transform-BwK-yMDY.js";import{s as B}from"./savedPapersAuth-BSj_MUOM.js";import"./AuthorAvatar-RLVSdcTr.js";import"./Icon-BTX00T3U.js";import"./LatexTitle-C0en22SO.js";import"./safeExternalHref-CkBrsh84.js";import"./colors-BkWRhvFI.js";const q=()=>{var o,l;const{user:t,isLoading:m}=g(),a=v({...x.saved(),enabled:!!t,staleTime:30*1e3}),c=a.error instanceof j&&a.error.code==="saved_papers_bucket_authorization_required",d=!!a.data&&!a.data.bucket_connected,n=()=>{window.location.assign(B())};if(m)return e.jsxs("div",{className:"page",children:[e.jsx(r,{className:"h-10 w-1/3 mb-4"}),e.jsx(r,{className:"h-6 w-1/2 mb-8"})]});if(!t)return e.jsxs("div",{className:"page",children:[e.jsx("div",{className:"feed-header",children:e.jsxs("div",{children:[e.jsxs("h1",{className:"feed-title",children:["Saved ",e.jsx("em",{children:"Papers"})]}),e.jsx("div",{className:"feed-subtitle",children:"Sign in with Hugging Face to save papers and revisit them later."})]})}),e.jsx("div",{className:"saved-signin-panel",children:e.jsx(b,{returnTo:"/saved"})})]});let h=0;return e.jsxs("div",{className:"page",children:[e.jsx("div",{className:"feed-header",children:e.jsxs("div",{children:[e.jsxs("h1",{className:"feed-title",children:["Saved ",e.jsx("em",{children:"Papers"})]}),e.jsxs("div",{className:"feed-subtitle",children:[(o=a.data)!=null&&o.count?`${a.data.count.toLocaleString()} saved · grouped by domain`:"Your bookmarked papers, grouped by domain.",(l=a.data)!=null&&l.bucket_connected?e.jsxs(e.Fragment,{children:[" · ",e.jsx("a",{href:`https://huggingface.co/buckets/${t.username}/pwc-saved-papers`,target:"_blank",rel:"noopener noreferrer",children:"Open your Hugging Face Bucket"})]}):null]})]})}),c?e.jsxs("div",{className:"saved-bucket-migration",children:[e.jsx("p",{children:"Your saved papers are still safe in Papers With Code. Approve Bucket access to copy them into a private Hugging Face Bucket that belongs to you."}),e.jsx("button",{type:"button",className:"hf-signin-btn",onClick:n,children:"Approve and migrate saved papers"})]}):a.error?e.jsx(y,{variant:"destructive",className:"mb-4",children:e.jsx(w,{children:"Failed to load your saved papers. Please try again."})}):null,d&&a.data.bucket_migrated?e.jsxs("div",{className:"saved-bucket-migration",children:[e.jsx("p",{children:"Your saved papers are already in your private Hugging Face Bucket. Reconnect it in this browser to read from it and save new papers there."}),e.jsx("button",{type:"button",className:"hf-signin-btn",onClick:n,children:"Reconnect Hugging Face Bucket"})]}):d?e.jsxs("div",{className:"saved-bucket-migration",children:[e.jsxs("p",{children:[a.data.count?`Your ${a.data.count.toLocaleString()} saved ${a.data.count===1?"paper is":"papers are"} still available below. `:"When you save your first paper, ","Approve Bucket access to copy saved papers into a private Hugging Face Bucket that belongs to you. The existing data is kept until the copy is verified."]}),e.jsx("button",{type:"button",className:"hf-signin-btn",onClick:n,children:a.data.count?"Approve and migrate saved papers":"Use a Hugging Face Bucket"})]}):null,c||a.error?null:a.isLoading?e.jsx("div",{className:"paper-list",children:Array.from({length:4}).map((i,s)=>e.jsxs("div",{className:"paper-card",children:[e.jsx(r,{className:"h-[220px] w-[160px]"}),e.jsxs("div",{className:"paper-body",style:{flex:1,gap:12},children:[e.jsx(r,{className:"h-6 w-3/4"}),e.jsx(r,{className:"h-4 w-1/2"}),e.jsx(r,{className:"h-12 w-full"})]})]},s))}):!a.data||a.data.count===0?e.jsxs("div",{className:"no-results",children:["No saved papers yet."," ",e.jsx(N,{to:"/papers",className:"sidebar-link",style:{display:"inline"},children:"Browse papers →"})]}):a.data.areas.map(i=>e.jsxs("section",{className:"saved-area-section",children:[e.jsx("h2",{className:"saved-area-heading",children:i.name}),i.tasks.map(s=>{const p=s.papers.length;return e.jsxs("div",{className:"saved-task-block",children:[e.jsxs("div",{className:"saved-task-row",children:[s.slug?e.jsx(k,{slug:s.slug,label:s.name}):e.jsx("span",{className:"tag-chip",style:{background:"var(--surface)"},children:s.name}),e.jsxs("span",{className:"saved-task-count",children:[p," ",p===1?"paper":"papers"]})]}),e.jsx("div",{className:"paper-list",children:s.papers.map(u=>e.jsx(f,{paper:A(u),priority:h++<3},u.id))})]},`task-${i.id??"other"}-${s.id??"untagged"}`)})]},`area-${i.id??"other"}`))]})};export{q as default};
assets/{SearchOverlay-BPmyRq9O.js → SearchOverlay-B6JALIPr.js} RENAMED
@@ -1 +1 @@
1
- import{i as $,n as H,ab as U,x as B,b as l,M as C,v as x,j as e,aF as G,aG as K,aH as Y,aI as X,aL as Z,L as i,bt as V}from"./index-2xE415-f.js";import{L as W}from"./LatexTitle-CIj5wiaM.js";import{u as J}from"./useDebounce-DUFNcXEQ.js";import{c as ss,h as es}from"./colors-BkWRhvFI.js";import{d as as}from"./transform-krmE0Oxv.js";const ts=10,D=6,ns=350,v=3,os=({open:h,onClose:t})=>{var L,Q,T,P,R,z;const _=$.useRef(null),I=H(),[r,O]=U.useState(""),n=J(r,ns),j=r.trim(),N=n.trim().length>=v,k=B();$.useEffect(()=>{if(!h)return;const s=a=>{a.key==="Escape"&&(a.preventDefault(),a.stopPropagation(),t())};return window.addEventListener("keydown",s,!0),()=>window.removeEventListener("keydown",s,!0)},[h,t]);const c={enabled:h&&N,staleTime:V,retry:!1},f=l({...C.search(n,ts),...c}),b=l({...x.taskList({q:n,page_size:6}),...c}),y=l({...x.methodList({q:n,page_size:6}),...c}),E=l({...x.datasetList({q:n,page_size:6}),...c}),F=l({...C.authorSearch(n,D),...c}),S=l({...x.organizationSearch(n,D),...c});if(!h)return null;const o=((L=b.data)==null?void 0:L.results)||[],d=((Q=y.data)==null?void 0:Q.results)||[],u=((T=E.data)==null?void 0:T.results)||[],m=((P=F.data)==null?void 0:P.results)||[],p=((R=S.data)==null?void 0:R.results)||[],g=((z=f.data)==null?void 0:z.results)||[],q=f.isFetching||b.isFetching||y.isFetching||E.isFetching||F.isFetching||S.isFetching,M=o.length||g.length||d.length||u.length||m.length||p.length,A=s=>{t(),I(s)},w=()=>{const s=r.trim();s&&A(`/chat?q=${encodeURIComponent(s)}`)};return e.jsx(G,{open:!0,onOpenChange:s=>!s&&t(),children:e.jsx(K,{children:e.jsx(Y,{className:"search-overlay",children:e.jsxs(X,{className:"search-modal","aria-modal":"true","aria-describedby":void 0,onOpenAutoFocus:s=>{var a;s.preventDefault(),(a=_.current)==null||a.focus()},children:[e.jsx(Z,{className:"sr-only",children:"Search"}),e.jsx("input",{ref:_,"aria-label":"Search papers, tasks, methods, benchmarks, authors, or organizations",className:"search-modal-input",placeholder:"Search papers, tasks, methods, benchmarks, authors, or organizations…",value:r,onChange:s=>O(s.target.value),onKeyDown:s=>{k&&s.key==="Enter"&&(s.preventDefault(),w())}}),e.jsxs("div",{className:"search-results",children:[k&&r.trim()&&e.jsxs("button",{type:"button",className:"search-ask-row",onClick:w,children:[e.jsx("span",{className:"search-ask-chip",children:"assistant"}),e.jsxs("span",{className:"search-ask-text",children:["Ask: “",r.trim(),"”"]}),e.jsx("kbd",{children:"↵"})]}),!n&&e.jsxs("div",{className:"search-empty",children:["Try “diffusion”, “object detection”, or an arXiv id.",k&&e.jsx("span",{className:"search-empty-sub",children:"Press Enter to ask the assistant"})]}),n&&!N&&e.jsxs("div",{className:"search-empty",children:["Keep typing: results appear from ",v," characters."]}),N&&!q&&!M&&e.jsxs("div",{className:"search-empty",children:['No matches for "',r,'"']}),o.length>0&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"search-section-label",children:["Tasks · ",o.length]}),o.map(s=>{const a=ss(es(s.slug||""));return e.jsxs(i,{className:"search-result-tag",to:`/tasks/${s.slug}`,onClick:t,children:[e.jsx("span",{className:"dot",style:{width:6,height:6,borderRadius:"50%",background:a.dot}}),e.jsx("span",{className:"name",children:as(s.name,s.slug)}),s.paper_count!=null&&e.jsxs("span",{className:"count",children:[s.paper_count," papers"]})]},s.id)})]}),d.length>0&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"search-section-label",children:["Methods · ",d.length]}),d.map(s=>e.jsxs(i,{className:"search-result-tag",to:`/methods/${s.slug||s.id}`,onClick:t,children:[e.jsx("span",{style:{fontFamily:"var(--mono)",fontWeight:600},children:s.name}),s.paper_count!=null&&e.jsxs("span",{className:"count",children:[s.paper_count," papers"]})]},s.id))]}),u.length>0&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"search-section-label",children:["Benchmarks · ",u.length]}),u.map(s=>e.jsxs(i,{className:"search-result-tag",to:`/benchmark/${s.slug||s.id}`,onClick:t,children:[e.jsx("span",{className:"name",children:s.name}),s.paper_count!=null&&s.paper_count>0&&e.jsxs("span",{className:"count",children:[s.paper_count," entries"]})]},s.id))]}),m.length>0&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"search-section-label",children:["Authors · ",m.length]}),m.map(s=>e.jsxs(i,{className:"search-result-tag",to:`/authors/${s.id}`,onClick:t,children:[e.jsx("span",{className:"name",children:s.full_name}),s.hf_username&&e.jsxs("span",{className:"handle",children:["@",s.hf_username]}),s.paper_count>0&&e.jsxs("span",{className:"count",children:[s.paper_count," papers"]})]},s.id))]}),p.length>0&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"search-section-label",children:["Organizations · ",p.length]}),p.map(s=>e.jsxs(i,{className:"search-result-tag",to:`/orgs/${s.slug}`,onClick:t,children:[s.logo_url&&e.jsx("img",{className:"logo",src:s.logo_url,alt:"",loading:"lazy"}),e.jsx("span",{className:"name",children:s.name}),s.paper_count!=null&&s.paper_count>0&&e.jsxs("span",{className:"count",children:[s.paper_count," papers"]})]},s.id))]}),g.length>0&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"search-section-label",children:["Papers · ",g.length]}),g.map(s=>{var a;return e.jsxs(i,{className:"search-result",to:`/paper/${s.arxiv_id||s.id}`,onClick:t,children:[e.jsx("div",{className:"search-result-title",children:e.jsx(W,{title:s.title})}),e.jsxs("div",{className:"search-result-meta",children:[e.jsx("span",{children:s.arxiv_id?`arXiv:${s.arxiv_id}`:"External resource"}),((a=s.authors)==null?void 0:a[0])&&e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"·"}),e.jsxs("span",{children:[s.authors[0],s.authors.length>1?" et al.":""]})]}),s.citation_count!=null&&e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"·"}),e.jsxs("span",{children:["↑ ",s.citation_count.toLocaleString()]})]})]})]},s.id)})]}),j.length>=v&&e.jsxs("button",{type:"button",className:"search-view-all-row",onClick:()=>A(`/papers?search=${encodeURIComponent(j)}`),children:["View all paper results for “",j,"”"]})]})]})})})})};export{os as default};
 
1
+ import{i as $,n as H,ab as U,x as B,b as l,M as C,v as x,j as e,aF as G,aG as K,aH as Y,aI as X,aL as Z,L as i,bt as V}from"./index-CqLopXcE.js";import{L as W}from"./LatexTitle-C0en22SO.js";import{u as J}from"./useDebounce-3Rdi9v36.js";import{c as ss,h as es}from"./colors-BkWRhvFI.js";import{d as as}from"./transform-BwK-yMDY.js";const ts=10,D=6,ns=350,v=3,os=({open:h,onClose:t})=>{var L,Q,T,P,R,z;const _=$.useRef(null),I=H(),[r,O]=U.useState(""),n=J(r,ns),j=r.trim(),N=n.trim().length>=v,k=B();$.useEffect(()=>{if(!h)return;const s=a=>{a.key==="Escape"&&(a.preventDefault(),a.stopPropagation(),t())};return window.addEventListener("keydown",s,!0),()=>window.removeEventListener("keydown",s,!0)},[h,t]);const c={enabled:h&&N,staleTime:V,retry:!1},f=l({...C.search(n,ts),...c}),b=l({...x.taskList({q:n,page_size:6}),...c}),y=l({...x.methodList({q:n,page_size:6}),...c}),E=l({...x.datasetList({q:n,page_size:6}),...c}),F=l({...C.authorSearch(n,D),...c}),S=l({...x.organizationSearch(n,D),...c});if(!h)return null;const o=((L=b.data)==null?void 0:L.results)||[],d=((Q=y.data)==null?void 0:Q.results)||[],u=((T=E.data)==null?void 0:T.results)||[],m=((P=F.data)==null?void 0:P.results)||[],p=((R=S.data)==null?void 0:R.results)||[],g=((z=f.data)==null?void 0:z.results)||[],q=f.isFetching||b.isFetching||y.isFetching||E.isFetching||F.isFetching||S.isFetching,M=o.length||g.length||d.length||u.length||m.length||p.length,A=s=>{t(),I(s)},w=()=>{const s=r.trim();s&&A(`/chat?q=${encodeURIComponent(s)}`)};return e.jsx(G,{open:!0,onOpenChange:s=>!s&&t(),children:e.jsx(K,{children:e.jsx(Y,{className:"search-overlay",children:e.jsxs(X,{className:"search-modal","aria-modal":"true","aria-describedby":void 0,onOpenAutoFocus:s=>{var a;s.preventDefault(),(a=_.current)==null||a.focus()},children:[e.jsx(Z,{className:"sr-only",children:"Search"}),e.jsx("input",{ref:_,"aria-label":"Search papers, tasks, methods, benchmarks, authors, or organizations",className:"search-modal-input",placeholder:"Search papers, tasks, methods, benchmarks, authors, or organizations…",value:r,onChange:s=>O(s.target.value),onKeyDown:s=>{k&&s.key==="Enter"&&(s.preventDefault(),w())}}),e.jsxs("div",{className:"search-results",children:[k&&r.trim()&&e.jsxs("button",{type:"button",className:"search-ask-row",onClick:w,children:[e.jsx("span",{className:"search-ask-chip",children:"assistant"}),e.jsxs("span",{className:"search-ask-text",children:["Ask: “",r.trim(),"”"]}),e.jsx("kbd",{children:"↵"})]}),!n&&e.jsxs("div",{className:"search-empty",children:["Try “diffusion”, “object detection”, or an arXiv id.",k&&e.jsx("span",{className:"search-empty-sub",children:"Press Enter to ask the assistant"})]}),n&&!N&&e.jsxs("div",{className:"search-empty",children:["Keep typing: results appear from ",v," characters."]}),N&&!q&&!M&&e.jsxs("div",{className:"search-empty",children:['No matches for "',r,'"']}),o.length>0&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"search-section-label",children:["Tasks · ",o.length]}),o.map(s=>{const a=ss(es(s.slug||""));return e.jsxs(i,{className:"search-result-tag",to:`/tasks/${s.slug}`,onClick:t,children:[e.jsx("span",{className:"dot",style:{width:6,height:6,borderRadius:"50%",background:a.dot}}),e.jsx("span",{className:"name",children:as(s.name,s.slug)}),s.paper_count!=null&&e.jsxs("span",{className:"count",children:[s.paper_count," papers"]})]},s.id)})]}),d.length>0&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"search-section-label",children:["Methods · ",d.length]}),d.map(s=>e.jsxs(i,{className:"search-result-tag",to:`/methods/${s.slug||s.id}`,onClick:t,children:[e.jsx("span",{style:{fontFamily:"var(--mono)",fontWeight:600},children:s.name}),s.paper_count!=null&&e.jsxs("span",{className:"count",children:[s.paper_count," papers"]})]},s.id))]}),u.length>0&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"search-section-label",children:["Benchmarks · ",u.length]}),u.map(s=>e.jsxs(i,{className:"search-result-tag",to:`/benchmark/${s.slug||s.id}`,onClick:t,children:[e.jsx("span",{className:"name",children:s.name}),s.paper_count!=null&&s.paper_count>0&&e.jsxs("span",{className:"count",children:[s.paper_count," entries"]})]},s.id))]}),m.length>0&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"search-section-label",children:["Authors · ",m.length]}),m.map(s=>e.jsxs(i,{className:"search-result-tag",to:`/authors/${s.id}`,onClick:t,children:[e.jsx("span",{className:"name",children:s.full_name}),s.hf_username&&e.jsxs("span",{className:"handle",children:["@",s.hf_username]}),s.paper_count>0&&e.jsxs("span",{className:"count",children:[s.paper_count," papers"]})]},s.id))]}),p.length>0&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"search-section-label",children:["Organizations · ",p.length]}),p.map(s=>e.jsxs(i,{className:"search-result-tag",to:`/orgs/${s.slug}`,onClick:t,children:[s.logo_url&&e.jsx("img",{className:"logo",src:s.logo_url,alt:"",loading:"lazy"}),e.jsx("span",{className:"name",children:s.name}),s.paper_count!=null&&s.paper_count>0&&e.jsxs("span",{className:"count",children:[s.paper_count," papers"]})]},s.id))]}),g.length>0&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"search-section-label",children:["Papers · ",g.length]}),g.map(s=>{var a;return e.jsxs(i,{className:"search-result",to:`/paper/${s.arxiv_id||s.id}`,onClick:t,children:[e.jsx("div",{className:"search-result-title",children:e.jsx(W,{title:s.title})}),e.jsxs("div",{className:"search-result-meta",children:[e.jsx("span",{children:s.arxiv_id?`arXiv:${s.arxiv_id}`:"External resource"}),((a=s.authors)==null?void 0:a[0])&&e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"·"}),e.jsxs("span",{children:[s.authors[0],s.authors.length>1?" et al.":""]})]}),s.citation_count!=null&&e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"·"}),e.jsxs("span",{children:["↑ ",s.citation_count.toLocaleString()]})]})]})]},s.id)})]}),j.length>=v&&e.jsxs("button",{type:"button",className:"search-view-all-row",onClick:()=>A(`/papers?search=${encodeURIComponent(j)}`),children:["View all paper results for “",j,"”"]})]})]})})})})};export{os as default};