nielsr HF Staff commited on
Commit
8adcbed
·
verified ·
1 Parent(s): ba260f4

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 +881 -871
  2. assets/{AgentLogos-Cm3YQ6TB.js → AgentLogos-C8ZXxWoe.js} +1 -1
  3. assets/{AiDeadlinesView-lKh8LMvb.js → AiDeadlinesView-DsBSDIOp.js} +1 -1
  4. assets/{ApiDocsView-DqyzLYIA.js → ApiDocsView-wg6yIkGv.js} +1 -1
  5. assets/{AreaSection-Cj-nzCCB.js → AreaSection-uCYjp549.js} +1 -1
  6. assets/{AstraForRoboticsView-Bl1EiHhN.js → AstraForRoboticsView-DKkvKvD9.js} +1 -1
  7. assets/{AuthorAvatar-CB9dFjtV.js → AuthorAvatar-BjZbMuV8.js} +1 -1
  8. assets/{AuthorDetailView-C5BtQK97.js → AuthorDetailView-pQ7SiOfG.js} +1 -1
  9. assets/{AuthorizePaperEditView-D5uMLzlp.js → AuthorizePaperEditView-BDHCnZXe.js} +1 -1
  10. assets/AutonomousOperations-CcI_H7-U.js +1 -0
  11. assets/AutonomousOperations-D6KN3s3k.js +0 -1
  12. assets/{BenchmarkDetailView-Duv0vS2p.js → BenchmarkDetailView-lho6oAUw.js} +2 -2
  13. assets/{BenchmarkTrendSparkline--B-upW1V.js → BenchmarkTrendSparkline-FNGhTOi0.js} +1 -1
  14. assets/CatalogEntityPreviewLink-Cz-PGV0F.js +1 -0
  15. assets/CatalogEntityPreviewLink-Pt3-UZ8j.js +0 -1
  16. assets/{ChatView-C2A0qsMW.js → ChatView-WlFZxtHx.js} +1 -1
  17. assets/{ConferenceDetailView-BH6OBx1-.js → ConferenceDetailView-COjc0vVe.js} +1 -1
  18. assets/{ConferenceTaskView-CEZW30T_.js → ConferenceTaskView-djYm1oC1.js} +1 -1
  19. assets/{ConferencesIndexView-C9U7ydQA.js → ConferencesIndexView-D1jA1Rdx.js} +1 -1
  20. assets/CronDashboard-BT2f77Tw.js +0 -36
  21. assets/{CronDashboard-FA5RkvGJ.js → CronDashboard-BW4JZfWT.js} +1 -1
  22. assets/CronDashboard-aoQzJHeN.js +36 -0
  23. assets/{ExternalSourceEvalBadge-CJDvhRpF.js → ExternalSourceEvalBadge-CDxpNEEw.js} +1 -1
  24. assets/FeedView-B_tdgnbh.js +0 -16
  25. assets/FeedView-DR3f1Ub6.js +16 -0
  26. assets/FollowingView-BeszOQDK.js +0 -1
  27. assets/FollowingView-D3KIcKQr.js +1 -0
  28. assets/{FrameworksIndexView-37ptGtep.js → FrameworksIndexView-wyQa2J3D.js} +1 -1
  29. assets/{Icon-BCKS3hPB.js → Icon-DqGTBJZ9.js} +1 -1
  30. assets/{LatexTitle-YKOmpgD5.js → LatexTitle-CKwsnD2Q.js} +1 -1
  31. assets/{LoadFailurePage-C6rCculu.js → LoadFailurePage-CyeoE8bL.js} +1 -1
  32. assets/{MarkdownText-WX3kW92g.js → MarkdownText-DxIZLXr2.js} +2 -2
  33. assets/MathMarkdownText-1MS5q-3T.js +0 -1
  34. assets/MathMarkdownText-D7CxppIF.js +1 -0
  35. assets/{McpShowcase-aTKzx9IH.js → McpShowcase-2nbI0Yx2.js} +1 -1
  36. assets/{McpView-BuSGzB0f.js → McpView-B2bCep7F.js} +1 -1
  37. assets/MethodDetailView-BY_sVybJ.js +1 -0
  38. assets/MethodDetailView-By5dCsx2.js +0 -1
  39. assets/{MethodsIndexView-DcCWv5JL.js → MethodsIndexView-BbgFBzW6.js} +2 -2
  40. assets/{NotFound-DGnhJDkz.js → NotFound-Dscbr324.js} +1 -1
  41. assets/{OrganizationContributionGraph-P1HEV0Zn.js → OrganizationContributionGraph-BafN-XpT.js} +1 -1
  42. assets/{OrganizationDetailView-BKgEoM1B.js → OrganizationDetailView-C7Aoz1g6.js} +1 -1
  43. assets/{OrganizationsIndexView-D5R_8uqp.js → OrganizationsIndexView-CdY_6WL6.js} +1 -1
  44. assets/{PaperCard-DXVTfuSM.js → PaperCard-VdH8pI7u.js} +1 -1
  45. assets/{PaperDetailView-BRXTv_cJ.js → PaperDetailView-BcOY-9rS.js} +1 -1
  46. assets/{PaperPreviewLink-CyaI4izq.js → PaperPreviewLink-Cn8gltdd.js} +2 -2
  47. assets/PaperReaderView-CyZ3sOmY.js +1 -0
  48. assets/PaperReaderView-x7MwOUS_.js +0 -1
  49. assets/PapersListView-CL7-i5R7.js +1 -0
  50. assets/PapersListView-DrBZoavI.js +0 -1
.vite/manifest.json CHANGED
@@ -1,25 +1,25 @@
1
  {
2
- "_AgentLogos-Cm3YQ6TB.js": {
3
- "file": "assets/AgentLogos-Cm3YQ6TB.js",
4
  "name": "AgentLogos",
5
  "imports": [
6
  "index.html"
7
  ]
8
  },
9
- "_AreaSection-Cj-nzCCB.js": {
10
- "file": "assets/AreaSection-Cj-nzCCB.js",
11
  "name": "AreaSection",
12
  "imports": [
13
  "index.html",
14
- "_skeleton-BkAt4a_A.js"
15
  ]
16
  },
17
- "_AuthorAvatar-!~{017}~.js": {
18
  "file": "assets/AuthorAvatar-o5W6pl_W.css",
19
- "src": "_AuthorAvatar-!~{017}~.js"
20
  },
21
- "_AuthorAvatar-CB9dFjtV.js": {
22
- "file": "assets/AuthorAvatar-CB9dFjtV.js",
23
  "name": "AuthorAvatar",
24
  "imports": [
25
  "index.html"
@@ -28,27 +28,27 @@
28
  "assets/AuthorAvatar-o5W6pl_W.css"
29
  ]
30
  },
31
- "_BenchmarkTrendSparkline--B-upW1V.js": {
32
- "file": "assets/BenchmarkTrendSparkline--B-upW1V.js",
33
  "name": "BenchmarkTrendSparkline",
34
  "imports": [
35
  "index.html"
36
  ]
37
  },
38
- "_CatalogEntityPreviewLink-Pt3-UZ8j.js": {
39
- "file": "assets/CatalogEntityPreviewLink-Pt3-UZ8j.js",
40
  "name": "CatalogEntityPreviewLink",
41
  "imports": [
42
  "index.html",
43
- "_hover-card-C0nRSsFV.js"
44
  ]
45
  },
46
- "_CronDashboard-!~{022}~.js": {
47
  "file": "assets/CronDashboard-DwChfW9h.css",
48
- "src": "_CronDashboard-!~{022}~.js"
49
  },
50
- "_CronDashboard-FA5RkvGJ.js": {
51
- "file": "assets/CronDashboard-FA5RkvGJ.js",
52
  "name": "CronDashboard",
53
  "imports": [
54
  "index.html"
@@ -57,31 +57,31 @@
57
  "assets/CronDashboard-DwChfW9h.css"
58
  ]
59
  },
60
- "_ExternalSourceEvalBadge-!~{01L}~.js": {
61
  "file": "assets/ExternalSourceEvalBadge-CWUQ52cV.css",
62
- "src": "_ExternalSourceEvalBadge-!~{01L}~.js"
63
  },
64
- "_ExternalSourceEvalBadge-CJDvhRpF.js": {
65
- "file": "assets/ExternalSourceEvalBadge-CJDvhRpF.js",
66
  "name": "ExternalSourceEvalBadge",
67
  "imports": [
68
  "index.html",
69
- "_hover-card-C0nRSsFV.js",
70
  "_safeExternalHref-CkBrsh84.js"
71
  ],
72
  "css": [
73
  "assets/ExternalSourceEvalBadge-CWUQ52cV.css"
74
  ]
75
  },
76
- "_Icon-BCKS3hPB.js": {
77
- "file": "assets/Icon-BCKS3hPB.js",
78
  "name": "Icon",
79
  "imports": [
80
  "index.html"
81
  ]
82
  },
83
- "_LatexTitle-YKOmpgD5.js": {
84
- "file": "assets/LatexTitle-YKOmpgD5.js",
85
  "name": "LatexTitle",
86
  "imports": [
87
  "index.html"
@@ -90,108 +90,108 @@
90
  "node_modules/katex/dist/katex.mjs"
91
  ]
92
  },
93
- "_LoadFailurePage-C6rCculu.js": {
94
- "file": "assets/LoadFailurePage-C6rCculu.js",
95
  "name": "LoadFailurePage",
96
  "imports": [
97
  "index.html",
98
- "_alert-CbcJsgVQ.js",
99
  "src/pages/NotFound.tsx"
100
  ]
101
  },
102
- "_MarkdownText-WX3kW92g.js": {
103
- "file": "assets/MarkdownText-WX3kW92g.js",
104
  "name": "MarkdownText",
105
  "imports": [
106
  "index.html",
107
- "_PaperPreviewLink-CyaI4izq.js",
108
- "_index-C_uAq02v.js",
109
- "_index-DPECPebL.js"
110
  ],
111
  "dynamicImports": [
112
  "src/components/MathMarkdownText.tsx"
113
  ]
114
  },
115
- "_McpShowcase-aTKzx9IH.js": {
116
- "file": "assets/McpShowcase-aTKzx9IH.js",
117
  "name": "McpShowcase",
118
  "imports": [
119
  "index.html",
120
- "_AgentLogos-Cm3YQ6TB.js"
121
  ]
122
  },
123
- "_OrganizationContributionGraph-P1HEV0Zn.js": {
124
- "file": "assets/OrganizationContributionGraph-P1HEV0Zn.js",
125
  "name": "OrganizationContributionGraph",
126
  "imports": [
127
  "index.html",
128
- "_skeleton-BkAt4a_A.js"
129
  ]
130
  },
131
- "_PaperCard-DXVTfuSM.js": {
132
- "file": "assets/PaperCard-DXVTfuSM.js",
133
  "name": "PaperCard",
134
  "imports": [
135
  "index.html",
136
- "_AuthorAvatar-CB9dFjtV.js",
137
- "_SotaBadges-D5Rygs2E.js",
138
- "_Icon-BCKS3hPB.js",
139
- "_LatexTitle-YKOmpgD5.js",
140
  "_safeExternalHref-CkBrsh84.js"
141
  ]
142
  },
143
- "_PaperPreviewLink-CyaI4izq.js": {
144
- "file": "assets/PaperPreviewLink-CyaI4izq.js",
145
  "name": "PaperPreviewLink",
146
  "imports": [
147
- "_index-C_uAq02v.js",
148
- "_index-DPECPebL.js",
149
  "index.html",
150
- "_hover-card-C0nRSsFV.js",
151
- "_useMutation-pFc9AV9q.js"
152
  ]
153
  },
154
- "_ResearchFollowButton-Jethi4Re.js": {
155
- "file": "assets/ResearchFollowButton-Jethi4Re.js",
156
  "name": "ResearchFollowButton",
157
  "imports": [
158
  "index.html",
159
- "_researchTopic-D0w4lDHH.js",
160
- "_plus-CsPEBwC8.js"
161
  ]
162
  },
163
- "_SignInToEditDialog-By7mFzd-.js": {
164
- "file": "assets/SignInToEditDialog-By7mFzd-.js",
165
  "name": "SignInToEditDialog",
166
  "imports": [
167
  "index.html",
168
- "_button-k_NH4ciO.js",
169
- "_input-DaoHFpPY.js",
170
- "_textarea-DZVopFEC.js",
171
- "_searchable-select-CfqOxthQ.js",
172
- "_dialog-DxQjeKSp.js",
173
- "_useMutation-pFc9AV9q.js",
174
- "_submissions-CIyYa4oU.js",
175
- "_cacheSync-BaUSLOpe.js",
176
- "_loader-circle-Cd5BHkxG.js"
177
- ]
178
- },
179
- "_SotaBadges-D5Rygs2E.js": {
180
- "file": "assets/SotaBadges-D5Rygs2E.js",
181
  "name": "SotaBadges",
182
  "imports": [
183
  "index.html",
184
  "_colors-BkWRhvFI.js",
185
- "_transform-yHyLdRgB.js"
186
  ]
187
  },
188
- "_TaxonomySuggestionTile-BRJohRi7.js": {
189
- "file": "assets/TaxonomySuggestionTile-BRJohRi7.js",
190
  "name": "TaxonomySuggestionTile",
191
  "imports": [
192
  "index.html",
193
- "_SignInToEditDialog-By7mFzd-.js",
194
- "_plus-CsPEBwC8.js"
195
  ]
196
  },
197
  "__vite-browser-external": {
@@ -200,15 +200,15 @@
200
  "src": "__vite-browser-external",
201
  "isDynamicEntry": true
202
  },
203
- "_activity-BOriX-5O.js": {
204
- "file": "assets/activity-BOriX-5O.js",
205
  "name": "activity",
206
  "imports": [
207
  "index.html"
208
  ]
209
  },
210
- "_alert-CbcJsgVQ.js": {
211
- "file": "assets/alert-CbcJsgVQ.js",
212
  "name": "alert",
213
  "imports": [
214
  "index.html"
@@ -218,84 +218,84 @@
218
  "file": "assets/areas-Dvi8w2dp.js",
219
  "name": "areas"
220
  },
221
- "_arrow-left-CXkxRjJa.js": {
222
- "file": "assets/arrow-left-CXkxRjJa.js",
223
  "name": "arrow-left",
224
  "imports": [
225
  "index.html"
226
  ]
227
  },
228
- "_arrow-right-pTo64XGZ.js": {
229
- "file": "assets/arrow-right-pTo64XGZ.js",
230
  "name": "arrow-right",
231
  "imports": [
232
  "index.html"
233
  ]
234
  },
235
- "_arrow-up-right-DW6w7lkJ.js": {
236
- "file": "assets/arrow-up-right-DW6w7lkJ.js",
237
  "name": "arrow-up-right",
238
  "imports": [
239
  "index.html"
240
  ]
241
  },
242
- "_badge-L_EHeT-o.js": {
243
- "file": "assets/badge-L_EHeT-o.js",
244
  "name": "badge",
245
  "imports": [
246
  "index.html"
247
  ]
248
  },
249
- "_button-k_NH4ciO.js": {
250
- "file": "assets/button-k_NH4ciO.js",
251
  "name": "button",
252
  "imports": [
253
  "index.html"
254
  ]
255
  },
256
- "_cacheSync-BaUSLOpe.js": {
257
- "file": "assets/cacheSync-BaUSLOpe.js",
258
  "name": "cacheSync",
259
  "imports": [
260
  "index.html"
261
  ]
262
  },
263
- "_chat-DOACRtqV.js": {
264
- "file": "assets/chat-DOACRtqV.js",
265
  "name": "chat",
266
  "imports": [
267
  "index.html"
268
  ]
269
  },
270
- "_chatLifecycle-!~{01l}~.js": {
271
  "file": "assets/chatLifecycle-Lr_OJaUk.css",
272
- "src": "_chatLifecycle-!~{01l}~.js"
273
  },
274
- "_chatLifecycle-C463R-m5.js": {
275
- "file": "assets/chatLifecycle-C463R-m5.js",
276
  "name": "chatLifecycle",
277
  "imports": [
278
  "index.html",
279
- "_index-DdF_Us_6.js",
280
- "_hover-card-C0nRSsFV.js",
281
- "_CatalogEntityPreviewLink-Pt3-UZ8j.js",
282
- "_github-DjuSO7M4.js",
283
- "_file-text-Brc6F3oH.js",
284
- "_PaperPreviewLink-CyaI4izq.js",
285
- "_index-C_uAq02v.js",
286
- "_index-LFG-CrNl.js",
287
- "_index-DPECPebL.js",
288
- "_useMutation-pFc9AV9q.js",
289
- "_chat-DOACRtqV.js",
290
- "_thumbs-up-Cez8oCuZ.js",
291
- "_copy-B-raWDut.js",
292
- "_arrow-left-CXkxRjJa.js",
293
- "_external-link-C27iK9fF.js",
294
- "_plus-CsPEBwC8.js",
295
- "_search-CXZqc5xK.js",
296
- "_chevron-up-Dd1OUf8-.js",
297
- "_AuthorAvatar-CB9dFjtV.js",
298
- "_trash-2-CcR0dxP7.js"
299
  ],
300
  "dynamicImports": [
301
  "__vite-browser-external",
@@ -370,15 +370,15 @@
370
  "assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf"
371
  ]
372
  },
373
- "_chevron-up-Dd1OUf8-.js": {
374
- "file": "assets/chevron-up-Dd1OUf8-.js",
375
  "name": "chevron-up",
376
  "imports": [
377
  "index.html"
378
  ]
379
  },
380
- "_circle-check-K4AzWUKO.js": {
381
- "file": "assets/circle-check-K4AzWUKO.js",
382
  "name": "circle-check",
383
  "imports": [
384
  "index.html"
@@ -392,15 +392,15 @@
392
  "file": "assets/conferenceListings-BnmhBx-_.js",
393
  "name": "conferenceListings"
394
  },
395
- "_copy-B-raWDut.js": {
396
- "file": "assets/copy-B-raWDut.js",
397
  "name": "copy",
398
  "imports": [
399
  "index.html"
400
  ]
401
  },
402
- "_database-DZEp-NYz.js": {
403
- "file": "assets/database-DZEp-NYz.js",
404
  "name": "database",
405
  "imports": [
406
  "index.html"
@@ -410,22 +410,22 @@
410
  "file": "assets/deadlines-BG5SWwEG.js",
411
  "name": "deadlines"
412
  },
413
- "_dialog-DxQjeKSp.js": {
414
- "file": "assets/dialog-DxQjeKSp.js",
415
  "name": "dialog",
416
  "imports": [
417
  "index.html"
418
  ]
419
  },
420
- "_external-link-C27iK9fF.js": {
421
- "file": "assets/external-link-C27iK9fF.js",
422
  "name": "external-link",
423
  "imports": [
424
  "index.html"
425
  ]
426
  },
427
- "_file-text-Brc6F3oH.js": {
428
- "file": "assets/file-text-Brc6F3oH.js",
429
  "name": "file-text",
430
  "imports": [
431
  "index.html"
@@ -435,123 +435,123 @@
435
  "file": "assets/frameworks-DDA0P4Tf.js",
436
  "name": "frameworks"
437
  },
438
- "_github-DjuSO7M4.js": {
439
- "file": "assets/github-DjuSO7M4.js",
440
  "name": "github",
441
  "imports": [
442
  "index.html"
443
  ]
444
  },
445
- "_globe-eD910DAK.js": {
446
- "file": "assets/globe-eD910DAK.js",
447
  "name": "globe",
448
  "imports": [
449
  "index.html"
450
  ]
451
  },
452
- "_hover-card-C0nRSsFV.js": {
453
- "file": "assets/hover-card-C0nRSsFV.js",
454
  "name": "hover-card",
455
  "imports": [
456
  "index.html"
457
  ]
458
  },
459
- "_index-!~{00_}~.js": {
460
  "file": "assets/index-Cw6yAXSE.css",
461
- "src": "_index-!~{00_}~.js"
462
  },
463
- "_index-BPlx9he0.js": {
464
- "file": "assets/index-BPlx9he0.js",
465
  "name": "index",
466
  "imports": [
467
- "index.html"
468
  ]
469
  },
470
- "_index-C_uAq02v.js": {
471
- "file": "assets/index-C_uAq02v.js",
472
  "name": "index",
473
  "imports": [
474
  "index.html"
475
  ]
476
  },
477
- "_index-DPECPebL.js": {
478
- "file": "assets/index-DPECPebL.js",
479
- "name": "index",
480
- "imports": [
481
- "_index-C_uAq02v.js"
482
- ]
483
- },
484
- "_index-DdF_Us_6.js": {
485
- "file": "assets/index-DdF_Us_6.js",
486
  "name": "index",
487
  "imports": [
488
  "index.html",
489
- "_chat-DOACRtqV.js"
490
  ],
491
  "css": [
492
  "assets/index-Cw6yAXSE.css"
493
  ]
494
  },
495
- "_index-LFG-CrNl.js": {
496
- "file": "assets/index-LFG-CrNl.js",
 
 
 
 
 
 
 
497
  "name": "index",
498
  "imports": [
499
- "_index-C_uAq02v.js",
500
  "node_modules/katex/dist/katex.mjs"
501
  ]
502
  },
503
- "_input-DaoHFpPY.js": {
504
- "file": "assets/input-DaoHFpPY.js",
505
  "name": "input",
506
  "imports": [
507
  "index.html"
508
  ]
509
  },
510
- "_link-2-3eIiK81e.js": {
511
- "file": "assets/link-2-3eIiK81e.js",
512
  "name": "link-2",
513
  "imports": [
514
  "index.html"
515
  ]
516
  },
517
- "_loader-circle-Cd5BHkxG.js": {
518
- "file": "assets/loader-circle-Cd5BHkxG.js",
519
  "name": "loader-circle",
520
  "imports": [
521
  "index.html"
522
  ]
523
  },
524
- "_mlIntern-BWyozZfZ.js": {
525
- "file": "assets/mlIntern-BWyozZfZ.js",
526
  "name": "mlIntern",
527
  "imports": [
528
  "index.html"
529
  ]
530
  },
531
- "_moon-DEPcyTHG.js": {
532
- "file": "assets/moon-DEPcyTHG.js",
533
  "name": "moon",
534
  "imports": [
535
  "index.html"
536
  ]
537
  },
538
- "_openrouter-KxEsvD0W.js": {
539
- "file": "assets/openrouter-KxEsvD0W.js",
540
  "name": "openrouter",
541
  "imports": [
542
  "index.html",
543
- "_chat-DOACRtqV.js"
544
  ]
545
  },
546
  "_organizationNames-BVKzYEBp.js": {
547
  "file": "assets/organizationNames-BVKzYEBp.js",
548
  "name": "organizationNames"
549
  },
550
- "_pageTitles-DTKTKJOp.js": {
551
- "file": "assets/pageTitles-DTKTKJOp.js",
552
  "name": "pageTitles",
553
  "imports": [
554
- "_useDocumentTitle-Dgxi21fr.js"
555
  ]
556
  },
557
  "_paperReader-D1y30HyW.js": {
@@ -561,82 +561,82 @@
561
  "_safeExternalHref-CkBrsh84.js"
562
  ]
563
  },
564
- "_plus-CsPEBwC8.js": {
565
- "file": "assets/plus-CsPEBwC8.js",
566
  "name": "plus",
567
  "imports": [
568
  "index.html"
569
  ]
570
  },
571
- "_popover-BTut4e1S.js": {
572
- "file": "assets/popover-BTut4e1S.js",
573
  "name": "popover",
574
  "imports": [
575
  "index.html"
576
  ]
577
  },
578
- "_preferences-BdWonpOv.js": {
579
- "file": "assets/preferences-BdWonpOv.js",
580
  "name": "preferences",
581
  "imports": [
582
  "index.html",
583
- "_useMutation-pFc9AV9q.js"
584
  ]
585
  },
586
- "_refresh-cw-B_f4d2VU.js": {
587
- "file": "assets/refresh-cw-B_f4d2VU.js",
588
  "name": "refresh-cw",
589
  "imports": [
590
  "index.html"
591
  ]
592
  },
593
- "_researchTopic-D0w4lDHH.js": {
594
- "file": "assets/researchTopic-D0w4lDHH.js",
595
  "name": "researchTopic",
596
  "imports": [
597
  "index.html",
598
- "_useMutation-pFc9AV9q.js"
599
  ]
600
  },
601
  "_safeExternalHref-CkBrsh84.js": {
602
  "file": "assets/safeExternalHref-CkBrsh84.js",
603
  "name": "safeExternalHref"
604
  },
605
- "_savedPapersAuth-H1hgdsXP.js": {
606
- "file": "assets/savedPapersAuth-H1hgdsXP.js",
607
  "name": "savedPapersAuth",
608
  "imports": [
609
  "index.html"
610
  ]
611
  },
612
- "_search-CXZqc5xK.js": {
613
- "file": "assets/search-CXZqc5xK.js",
614
  "name": "search",
615
  "imports": [
616
  "index.html"
617
  ]
618
  },
619
- "_searchable-select-CfqOxthQ.js": {
620
- "file": "assets/searchable-select-CfqOxthQ.js",
621
  "name": "searchable-select",
622
  "imports": [
623
  "index.html",
624
- "_button-k_NH4ciO.js",
625
- "_popover-BTut4e1S.js",
626
- "_dialog-DxQjeKSp.js",
627
- "_search-CXZqc5xK.js",
628
- "_loader-circle-Cd5BHkxG.js"
629
  ]
630
  },
631
- "_share-2-BlNTW9Lm.js": {
632
- "file": "assets/share-2-BlNTW9Lm.js",
633
  "name": "share-2",
634
  "imports": [
635
  "index.html"
636
  ]
637
  },
638
- "_skeleton-BkAt4a_A.js": {
639
- "file": "assets/skeleton-BkAt4a_A.js",
640
  "name": "skeleton",
641
  "imports": [
642
  "index.html"
@@ -646,163 +646,170 @@
646
  "file": "assets/slug-BpH-Nkvz.js",
647
  "name": "slug"
648
  },
649
- "_submissions-CIyYa4oU.js": {
650
- "file": "assets/submissions-CIyYa4oU.js",
651
  "name": "submissions",
652
  "imports": [
653
  "index.html"
654
  ]
655
  },
656
- "_switch-WsS9i_IX.js": {
657
- "file": "assets/switch-WsS9i_IX.js",
658
  "name": "switch",
659
  "imports": [
660
  "index.html",
661
- "_index-BPlx9he0.js"
 
 
 
 
 
 
 
662
  ]
663
  },
664
- "_taskIcons-9fl0jLm1.js": {
665
- "file": "assets/taskIcons-9fl0jLm1.js",
666
  "name": "taskIcons",
667
  "imports": [
668
  "index.html",
669
- "_search-CXZqc5xK.js",
670
- "_triangle-alert-99rDZz9U.js",
671
- "_share-2-BlNTW9Lm.js",
672
- "_trending-up-C4QuPkw3.js",
673
- "_moon-DEPcyTHG.js",
674
- "_thumbs-up-Cez8oCuZ.js",
675
- "_database-DZEp-NYz.js",
676
- "_link-2-3eIiK81e.js",
677
- "_trophy-D0mSSUi2.js",
678
- "_file-text-Brc6F3oH.js",
679
- "_activity-BOriX-5O.js",
680
- "_globe-eD910DAK.js"
681
- ]
682
- },
683
- "_textarea-DZVopFEC.js": {
684
- "file": "assets/textarea-DZVopFEC.js",
685
  "name": "textarea",
686
  "imports": [
687
  "index.html"
688
  ]
689
  },
690
- "_thumbs-up-Cez8oCuZ.js": {
691
- "file": "assets/thumbs-up-Cez8oCuZ.js",
692
  "name": "thumbs-up",
693
  "imports": [
694
  "index.html"
695
  ]
696
  },
697
- "_transform-yHyLdRgB.js": {
698
- "file": "assets/transform-yHyLdRgB.js",
699
  "name": "transform",
700
  "imports": [
701
  "index.html"
702
  ]
703
  },
704
- "_trash-2-CcR0dxP7.js": {
705
- "file": "assets/trash-2-CcR0dxP7.js",
706
  "name": "trash-2",
707
  "imports": [
708
  "index.html"
709
  ]
710
  },
711
- "_trending-up-C4QuPkw3.js": {
712
- "file": "assets/trending-up-C4QuPkw3.js",
713
  "name": "trending-up",
714
  "imports": [
715
  "index.html"
716
  ]
717
  },
718
- "_triangle-alert-99rDZz9U.js": {
719
- "file": "assets/triangle-alert-99rDZz9U.js",
720
  "name": "triangle-alert",
721
  "imports": [
722
  "index.html"
723
  ]
724
  },
725
- "_trophy-D0mSSUi2.js": {
726
- "file": "assets/trophy-D0mSSUi2.js",
727
  "name": "trophy",
728
  "imports": [
729
  "index.html"
730
  ]
731
  },
732
- "_undo-2-lzOlsuTo.js": {
733
- "file": "assets/undo-2-lzOlsuTo.js",
734
  "name": "undo-2",
735
  "imports": [
736
  "index.html"
737
  ]
738
  },
739
- "_useDebounce-Biol71Ue.js": {
740
- "file": "assets/useDebounce-Biol71Ue.js",
741
  "name": "useDebounce",
742
  "imports": [
743
  "index.html"
744
  ]
745
  },
746
- "_useDocumentTitle-Dgxi21fr.js": {
747
- "file": "assets/useDocumentTitle-Dgxi21fr.js",
748
  "name": "useDocumentTitle",
749
  "imports": [
750
  "index.html"
751
  ]
752
  },
753
- "_useHashScrollOnReady-BovvYGlz.js": {
754
- "file": "assets/useHashScrollOnReady-BovvYGlz.js",
755
  "name": "useHashScrollOnReady",
756
  "imports": [
757
  "index.html",
758
- "_skeleton-BkAt4a_A.js",
759
- "_alert-CbcJsgVQ.js",
760
- "_trending-up-C4QuPkw3.js"
761
  ]
762
  },
763
- "_useInfiniteQuery-DGk1REJi.js": {
764
- "file": "assets/useInfiniteQuery-DGk1REJi.js",
765
  "name": "useInfiniteQuery",
766
  "imports": [
767
  "index.html"
768
  ]
769
  },
770
- "_useIntersectionObserver-BiqrXJxS.js": {
771
- "file": "assets/useIntersectionObserver-BiqrXJxS.js",
772
  "name": "useIntersectionObserver",
773
  "imports": [
774
  "index.html"
775
  ]
776
  },
777
- "_useMutation-pFc9AV9q.js": {
778
- "file": "assets/useMutation-pFc9AV9q.js",
779
  "name": "useMutation",
780
  "imports": [
781
  "index.html"
782
  ]
783
  },
784
- "_usePapers-CrZh8ngx.js": {
785
- "file": "assets/usePapers-CrZh8ngx.js",
786
  "name": "usePapers",
787
  "imports": [
788
  "index.html",
789
- "_PaperCard-DXVTfuSM.js",
790
- "_popover-BTut4e1S.js",
791
- "_Icon-BCKS3hPB.js",
792
- "_skeleton-BkAt4a_A.js",
793
- "_useIntersectionObserver-BiqrXJxS.js",
794
- "_useInfiniteQuery-DGk1REJi.js"
795
  ]
796
  },
797
- "_useQueries-cMUjfdG4.js": {
798
- "file": "assets/useQueries-cMUjfdG4.js",
799
  "name": "useQueries",
800
  "imports": [
801
  "index.html"
802
  ]
803
  },
804
  "index.html": {
805
- "file": "assets/index-D6aEInmu.js",
806
  "name": "index",
807
  "src": "index.html",
808
  "isEntry": true,
@@ -848,7 +855,7 @@
848
  "src/views/StagingAccessRequestView.tsx"
849
  ],
850
  "css": [
851
- "assets/index-Wx4xO8QJ.css"
852
  ],
853
  "assets": [
854
  "assets/inter-normal-latin-Dx4kXJAl.woff2",
@@ -1194,19 +1201,19 @@
1194
  "src": "src/assets/fonts/newsreader-normal-vietnamese.woff2"
1195
  },
1196
  "src/components/MathMarkdownText.tsx": {
1197
- "file": "assets/MathMarkdownText-1MS5q-3T.js",
1198
  "name": "MathMarkdownText",
1199
  "src": "src/components/MathMarkdownText.tsx",
1200
  "isDynamicEntry": true,
1201
  "imports": [
1202
  "index.html",
1203
- "_MarkdownText-WX3kW92g.js",
1204
- "_index-LFG-CrNl.js",
1205
- "_PaperPreviewLink-CyaI4izq.js",
1206
- "_index-C_uAq02v.js",
1207
- "_index-DPECPebL.js",
1208
- "_hover-card-C0nRSsFV.js",
1209
- "_useMutation-pFc9AV9q.js",
1210
  "node_modules/katex/dist/katex.mjs"
1211
  ],
1212
  "css": [
@@ -1275,61 +1282,62 @@
1275
  ]
1276
  },
1277
  "src/components/SearchOverlay.tsx": {
1278
- "file": "assets/SearchOverlay-CJaRttD6.js",
1279
  "name": "SearchOverlay",
1280
  "src": "src/components/SearchOverlay.tsx",
1281
  "isDynamicEntry": true,
1282
  "imports": [
1283
  "index.html",
1284
- "_LatexTitle-YKOmpgD5.js",
1285
- "_useDebounce-Biol71Ue.js",
1286
  "_colors-BkWRhvFI.js",
1287
- "_transform-yHyLdRgB.js"
1288
  ]
1289
  },
1290
  "src/pages/AutonomousOperations.tsx": {
1291
- "file": "assets/AutonomousOperations-D6KN3s3k.js",
1292
  "name": "AutonomousOperations",
1293
  "src": "src/pages/AutonomousOperations.tsx",
1294
  "isDynamicEntry": true,
1295
  "imports": [
1296
  "index.html",
1297
- "_useMutation-pFc9AV9q.js",
1298
- "_CronDashboard-FA5RkvGJ.js",
1299
- "_badge-L_EHeT-o.js",
1300
- "_button-k_NH4ciO.js",
1301
- "_input-DaoHFpPY.js",
1302
- "_activity-BOriX-5O.js",
1303
- "_arrow-left-CXkxRjJa.js"
1304
  ]
1305
  },
1306
  "src/pages/CronDashboard.tsx": {
1307
- "file": "assets/CronDashboard-BT2f77Tw.js",
1308
  "name": "CronDashboard",
1309
  "src": "src/pages/CronDashboard.tsx",
1310
  "isDynamicEntry": true,
1311
  "imports": [
1312
  "index.html",
1313
- "_useMutation-pFc9AV9q.js",
1314
- "_CronDashboard-FA5RkvGJ.js",
1315
- "_badge-L_EHeT-o.js",
1316
- "_button-k_NH4ciO.js",
1317
- "_chevron-up-Dd1OUf8-.js",
1318
- "_database-DZEp-NYz.js",
1319
- "_trending-up-C4QuPkw3.js",
1320
- "_activity-BOriX-5O.js",
1321
- "_file-text-Brc6F3oH.js",
1322
- "_triangle-alert-99rDZz9U.js",
1323
- "_external-link-C27iK9fF.js",
1324
- "_refresh-cw-B_f4d2VU.js",
1325
- "_loader-circle-Cd5BHkxG.js",
1326
- "_circle-check-K4AzWUKO.js",
1327
- "_useInfiniteQuery-DGk1REJi.js",
1328
- "_chat-DOACRtqV.js"
 
1329
  ]
1330
  },
1331
  "src/pages/NotFound.tsx": {
1332
- "file": "assets/NotFound-DGnhJDkz.js",
1333
  "name": "NotFound",
1334
  "src": "src/pages/NotFound.tsx",
1335
  "isDynamicEntry": true,
@@ -1338,197 +1346,197 @@
1338
  ]
1339
  },
1340
  "src/pages/SubmissionsDashboard.tsx": {
1341
- "file": "assets/SubmissionsDashboard-DgVP3QRE.js",
1342
  "name": "SubmissionsDashboard",
1343
  "src": "src/pages/SubmissionsDashboard.tsx",
1344
  "isDynamicEntry": true,
1345
  "imports": [
1346
  "index.html",
1347
- "_cacheSync-BaUSLOpe.js",
1348
- "_useMutation-pFc9AV9q.js",
1349
- "_useInfiniteQuery-DGk1REJi.js",
1350
- "_useQueries-cMUjfdG4.js",
1351
  "_safeExternalHref-CkBrsh84.js",
1352
- "_submissions-CIyYa4oU.js",
1353
- "_refresh-cw-B_f4d2VU.js",
1354
- "_loader-circle-Cd5BHkxG.js",
1355
- "_circle-check-K4AzWUKO.js",
1356
- "_undo-2-lzOlsuTo.js"
1357
  ],
1358
  "css": [
1359
  "assets/SubmissionsDashboard-Dgd_CI1v.css"
1360
  ]
1361
  },
1362
  "src/views/AiDeadlinesView.tsx": {
1363
- "file": "assets/AiDeadlinesView-lKh8LMvb.js",
1364
  "name": "AiDeadlinesView",
1365
  "src": "src/views/AiDeadlinesView.tsx",
1366
  "isDynamicEntry": true,
1367
  "imports": [
1368
  "index.html",
1369
- "_switch-WsS9i_IX.js",
1370
- "_skeleton-BkAt4a_A.js",
1371
- "_alert-CbcJsgVQ.js",
1372
  "_safeExternalHref-CkBrsh84.js",
1373
- "_dialog-DxQjeKSp.js",
1374
  "_deadlines-BG5SWwEG.js",
1375
- "_useDocumentTitle-Dgxi21fr.js",
1376
- "_pageTitles-DTKTKJOp.js",
1377
- "_index-BPlx9he0.js"
1378
  ]
1379
  },
1380
  "src/views/ApiDocsView.tsx": {
1381
- "file": "assets/ApiDocsView-DqyzLYIA.js",
1382
  "name": "ApiDocsView",
1383
  "src": "src/views/ApiDocsView.tsx",
1384
  "isDynamicEntry": true,
1385
  "imports": [
1386
  "index.html",
1387
- "_useDocumentTitle-Dgxi21fr.js",
1388
- "_trophy-D0mSSUi2.js",
1389
- "_database-DZEp-NYz.js",
1390
- "_file-text-Brc6F3oH.js",
1391
- "_index-C_uAq02v.js"
1392
  ],
1393
  "css": [
1394
  "assets/ApiDocsView-D5oxGRv8.css"
1395
  ]
1396
  },
1397
  "src/views/AstraForRoboticsView.tsx": {
1398
- "file": "assets/AstraForRoboticsView-Bl1EiHhN.js",
1399
  "name": "AstraForRoboticsView",
1400
  "src": "src/views/AstraForRoboticsView.tsx",
1401
  "isDynamicEntry": true,
1402
  "imports": [
1403
  "index.html",
1404
- "_usePapers-CrZh8ngx.js",
1405
- "_alert-CbcJsgVQ.js",
1406
- "_useDocumentTitle-Dgxi21fr.js",
1407
- "_transform-yHyLdRgB.js",
1408
- "_PaperCard-DXVTfuSM.js",
1409
- "_AuthorAvatar-CB9dFjtV.js",
1410
- "_SotaBadges-D5Rygs2E.js",
1411
  "_colors-BkWRhvFI.js",
1412
- "_Icon-BCKS3hPB.js",
1413
- "_LatexTitle-YKOmpgD5.js",
1414
  "_safeExternalHref-CkBrsh84.js",
1415
- "_popover-BTut4e1S.js",
1416
- "_skeleton-BkAt4a_A.js",
1417
- "_useIntersectionObserver-BiqrXJxS.js",
1418
- "_useInfiniteQuery-DGk1REJi.js"
1419
  ],
1420
  "css": [
1421
  "assets/AstraForRoboticsView-C_lTF_XB.css"
1422
  ]
1423
  },
1424
  "src/views/AuthorDetailView.tsx": {
1425
- "file": "assets/AuthorDetailView-C5BtQK97.js",
1426
  "name": "AuthorDetailView",
1427
  "src": "src/views/AuthorDetailView.tsx",
1428
  "isDynamicEntry": true,
1429
  "imports": [
1430
  "index.html",
1431
- "_AuthorAvatar-CB9dFjtV.js",
1432
- "_usePapers-CrZh8ngx.js",
1433
- "_ResearchFollowButton-Jethi4Re.js",
1434
- "_alert-CbcJsgVQ.js",
1435
- "_skeleton-BkAt4a_A.js",
1436
- "_transform-yHyLdRgB.js",
1437
  "src/pages/NotFound.tsx",
1438
- "_useDocumentTitle-Dgxi21fr.js",
1439
- "_pageTitles-DTKTKJOp.js",
1440
- "_PaperCard-DXVTfuSM.js",
1441
- "_SotaBadges-D5Rygs2E.js",
1442
  "_colors-BkWRhvFI.js",
1443
- "_Icon-BCKS3hPB.js",
1444
- "_LatexTitle-YKOmpgD5.js",
1445
  "_safeExternalHref-CkBrsh84.js",
1446
- "_popover-BTut4e1S.js",
1447
- "_useIntersectionObserver-BiqrXJxS.js",
1448
- "_useInfiniteQuery-DGk1REJi.js",
1449
- "_researchTopic-D0w4lDHH.js",
1450
- "_useMutation-pFc9AV9q.js",
1451
- "_plus-CsPEBwC8.js"
1452
  ]
1453
  },
1454
  "src/views/AuthorizePaperEditView.tsx": {
1455
- "file": "assets/AuthorizePaperEditView-D5uMLzlp.js",
1456
  "name": "AuthorizePaperEditView",
1457
  "src": "src/views/AuthorizePaperEditView.tsx",
1458
  "isDynamicEntry": true,
1459
  "imports": [
1460
  "index.html",
1461
- "_useMutation-pFc9AV9q.js",
1462
- "_button-k_NH4ciO.js"
1463
  ]
1464
  },
1465
  "src/views/BenchmarkDetailView.tsx": {
1466
- "file": "assets/BenchmarkDetailView-Duv0vS2p.js",
1467
  "name": "BenchmarkDetailView",
1468
  "src": "src/views/BenchmarkDetailView.tsx",
1469
  "isDynamicEntry": true,
1470
  "imports": [
1471
  "index.html",
1472
- "_ResearchFollowButton-Jethi4Re.js",
1473
- "_preferences-BdWonpOv.js",
1474
- "_LatexTitle-YKOmpgD5.js",
1475
- "_ExternalSourceEvalBadge-CJDvhRpF.js",
1476
- "_switch-WsS9i_IX.js",
1477
- "_Icon-BCKS3hPB.js",
1478
- "_skeleton-BkAt4a_A.js",
1479
- "_BenchmarkTrendSparkline--B-upW1V.js",
1480
  "_safeExternalHref-CkBrsh84.js",
1481
  "_slug-BpH-Nkvz.js",
1482
  "src/pages/NotFound.tsx",
1483
- "_LoadFailurePage-C6rCculu.js",
1484
- "_useDocumentTitle-Dgxi21fr.js",
1485
- "_pageTitles-DTKTKJOp.js",
1486
- "_researchTopic-D0w4lDHH.js",
1487
- "_useMutation-pFc9AV9q.js",
1488
- "_plus-CsPEBwC8.js",
1489
- "_hover-card-C0nRSsFV.js",
1490
- "_index-BPlx9he0.js",
1491
- "_alert-CbcJsgVQ.js"
1492
  ],
1493
  "css": [
1494
  "assets/BenchmarkDetailView-CXxK75GR.css"
1495
  ]
1496
  },
1497
  "src/views/ChatView.tsx": {
1498
- "file": "assets/ChatView-C2A0qsMW.js",
1499
  "name": "ChatView",
1500
  "src": "src/views/ChatView.tsx",
1501
  "isDynamicEntry": true,
1502
  "imports": [
1503
  "index.html",
1504
- "_chatLifecycle-C463R-m5.js",
1505
- "_index-DdF_Us_6.js",
1506
- "_chat-DOACRtqV.js",
1507
- "_McpShowcase-aTKzx9IH.js",
1508
- "_share-2-BlNTW9Lm.js",
1509
- "_useMutation-pFc9AV9q.js",
1510
- "_Icon-BCKS3hPB.js",
1511
- "_mlIntern-BWyozZfZ.js",
1512
- "_openrouter-KxEsvD0W.js",
1513
- "_hover-card-C0nRSsFV.js",
1514
- "_CatalogEntityPreviewLink-Pt3-UZ8j.js",
1515
- "_github-DjuSO7M4.js",
1516
- "_file-text-Brc6F3oH.js",
1517
- "_PaperPreviewLink-CyaI4izq.js",
1518
- "_index-C_uAq02v.js",
1519
- "_index-DPECPebL.js",
1520
- "_index-LFG-CrNl.js",
1521
  "node_modules/katex/dist/katex.mjs",
1522
- "_thumbs-up-Cez8oCuZ.js",
1523
- "_copy-B-raWDut.js",
1524
- "_arrow-left-CXkxRjJa.js",
1525
- "_external-link-C27iK9fF.js",
1526
- "_plus-CsPEBwC8.js",
1527
- "_search-CXZqc5xK.js",
1528
- "_chevron-up-Dd1OUf8-.js",
1529
- "_AuthorAvatar-CB9dFjtV.js",
1530
- "_trash-2-CcR0dxP7.js",
1531
- "_AgentLogos-Cm3YQ6TB.js"
1532
  ],
1533
  "css": [
1534
  "assets/katex-wklAmtGL.css"
@@ -1596,271 +1604,273 @@
1596
  ]
1597
  },
1598
  "src/views/ConferenceDetailView.tsx": {
1599
- "file": "assets/ConferenceDetailView-BH6OBx1-.js",
1600
  "name": "ConferenceDetailView",
1601
  "src": "src/views/ConferenceDetailView.tsx",
1602
  "isDynamicEntry": true,
1603
  "imports": [
1604
  "index.html",
1605
- "_AreaSection-Cj-nzCCB.js",
1606
- "_MarkdownText-WX3kW92g.js",
1607
  "_areas-Dvi8w2dp.js",
1608
  "_colors-BkWRhvFI.js",
1609
  "_conferenceListings-BnmhBx-_.js",
1610
  "_deadlines-BG5SWwEG.js",
1611
- "_transform-yHyLdRgB.js",
1612
- "_skeleton-BkAt4a_A.js",
1613
  "_safeExternalHref-CkBrsh84.js",
1614
- "_LoadFailurePage-C6rCculu.js",
1615
- "_useDocumentTitle-Dgxi21fr.js",
1616
- "_pageTitles-DTKTKJOp.js",
1617
- "_PaperPreviewLink-CyaI4izq.js",
1618
- "_index-C_uAq02v.js",
1619
- "_index-DPECPebL.js",
1620
- "_hover-card-C0nRSsFV.js",
1621
- "_useMutation-pFc9AV9q.js",
1622
- "_alert-CbcJsgVQ.js",
1623
  "src/pages/NotFound.tsx"
1624
  ]
1625
  },
1626
  "src/views/ConferenceTaskView.tsx": {
1627
- "file": "assets/ConferenceTaskView-CEZW30T_.js",
1628
  "name": "ConferenceTaskView",
1629
  "src": "src/views/ConferenceTaskView.tsx",
1630
  "isDynamicEntry": true,
1631
  "imports": [
1632
  "index.html",
1633
- "_usePapers-CrZh8ngx.js",
1634
- "_MarkdownText-WX3kW92g.js",
1635
  "_conferenceListings-BnmhBx-_.js",
1636
- "_transform-yHyLdRgB.js",
1637
- "_LoadFailurePage-C6rCculu.js",
1638
- "_PaperCard-DXVTfuSM.js",
1639
- "_AuthorAvatar-CB9dFjtV.js",
1640
- "_SotaBadges-D5Rygs2E.js",
1641
  "_colors-BkWRhvFI.js",
1642
- "_Icon-BCKS3hPB.js",
1643
- "_LatexTitle-YKOmpgD5.js",
1644
  "_safeExternalHref-CkBrsh84.js",
1645
- "_popover-BTut4e1S.js",
1646
- "_skeleton-BkAt4a_A.js",
1647
- "_useIntersectionObserver-BiqrXJxS.js",
1648
- "_useInfiniteQuery-DGk1REJi.js",
1649
- "_PaperPreviewLink-CyaI4izq.js",
1650
- "_index-C_uAq02v.js",
1651
- "_index-DPECPebL.js",
1652
- "_hover-card-C0nRSsFV.js",
1653
- "_useMutation-pFc9AV9q.js",
1654
- "_alert-CbcJsgVQ.js",
1655
  "src/pages/NotFound.tsx"
1656
  ]
1657
  },
1658
  "src/views/ConferencesIndexView.tsx": {
1659
- "file": "assets/ConferencesIndexView-C9U7ydQA.js",
1660
  "name": "ConferencesIndexView",
1661
  "src": "src/views/ConferencesIndexView.tsx",
1662
  "isDynamicEntry": true,
1663
  "imports": [
1664
  "index.html",
1665
  "_deadlines-BG5SWwEG.js",
1666
- "_alert-CbcJsgVQ.js",
1667
- "_AreaSection-Cj-nzCCB.js",
1668
- "_TaxonomySuggestionTile-BRJohRi7.js",
1669
- "_useDocumentTitle-Dgxi21fr.js",
1670
- "_pageTitles-DTKTKJOp.js",
1671
- "_skeleton-BkAt4a_A.js",
1672
- "_SignInToEditDialog-By7mFzd-.js",
1673
- "_button-k_NH4ciO.js",
1674
- "_input-DaoHFpPY.js",
1675
- "_textarea-DZVopFEC.js",
1676
- "_searchable-select-CfqOxthQ.js",
1677
- "_popover-BTut4e1S.js",
1678
- "_dialog-DxQjeKSp.js",
1679
- "_search-CXZqc5xK.js",
1680
- "_loader-circle-Cd5BHkxG.js",
1681
- "_useMutation-pFc9AV9q.js",
1682
- "_submissions-CIyYa4oU.js",
1683
- "_cacheSync-BaUSLOpe.js",
1684
- "_plus-CsPEBwC8.js"
1685
  ]
1686
  },
1687
  "src/views/FeedView.tsx": {
1688
- "file": "assets/FeedView-B_tdgnbh.js",
1689
  "name": "FeedView",
1690
  "src": "src/views/FeedView.tsx",
1691
  "isDynamicEntry": true,
1692
  "imports": [
1693
  "index.html",
1694
- "_taskIcons-9fl0jLm1.js",
1695
- "_researchTopic-D0w4lDHH.js",
1696
- "_plus-CsPEBwC8.js",
1697
- "_dialog-DxQjeKSp.js",
1698
- "_switch-WsS9i_IX.js",
1699
- "_useDebounce-Biol71Ue.js",
1700
- "_transform-yHyLdRgB.js",
1701
- "_index-DdF_Us_6.js",
1702
- "_trash-2-CcR0dxP7.js",
1703
- "_undo-2-lzOlsuTo.js",
1704
- "_arrow-up-right-DW6w7lkJ.js",
1705
- "_arrow-right-pTo64XGZ.js",
 
1706
  "_colors-BkWRhvFI.js",
1707
- "_usePapers-CrZh8ngx.js",
1708
- "_McpShowcase-aTKzx9IH.js",
1709
- "_chat-DOACRtqV.js",
1710
- "_skeleton-BkAt4a_A.js",
1711
- "_alert-CbcJsgVQ.js",
1712
- "_useDocumentTitle-Dgxi21fr.js",
1713
- "_pageTitles-DTKTKJOp.js",
1714
- "_search-CXZqc5xK.js",
1715
- "_triangle-alert-99rDZz9U.js",
1716
- "_share-2-BlNTW9Lm.js",
1717
- "_trending-up-C4QuPkw3.js",
1718
- "_moon-DEPcyTHG.js",
1719
- "_thumbs-up-Cez8oCuZ.js",
1720
- "_database-DZEp-NYz.js",
1721
- "_link-2-3eIiK81e.js",
1722
- "_trophy-D0mSSUi2.js",
1723
- "_file-text-Brc6F3oH.js",
1724
- "_activity-BOriX-5O.js",
1725
- "_globe-eD910DAK.js",
1726
- "_useMutation-pFc9AV9q.js",
1727
- "_index-BPlx9he0.js",
1728
- "_PaperCard-DXVTfuSM.js",
1729
- "_AuthorAvatar-CB9dFjtV.js",
1730
- "_SotaBadges-D5Rygs2E.js",
1731
- "_Icon-BCKS3hPB.js",
1732
- "_LatexTitle-YKOmpgD5.js",
1733
  "_safeExternalHref-CkBrsh84.js",
1734
- "_popover-BTut4e1S.js",
1735
- "_useIntersectionObserver-BiqrXJxS.js",
1736
- "_useInfiniteQuery-DGk1REJi.js",
1737
- "_AgentLogos-Cm3YQ6TB.js"
1738
  ]
1739
  },
1740
  "src/views/FollowingView.tsx": {
1741
- "file": "assets/FollowingView-BeszOQDK.js",
1742
  "name": "FollowingView",
1743
  "src": "src/views/FollowingView.tsx",
1744
  "isDynamicEntry": true,
1745
  "imports": [
1746
  "index.html",
1747
  "src/views/FeedView.tsx",
1748
- "_taskIcons-9fl0jLm1.js",
1749
- "_search-CXZqc5xK.js",
1750
- "_triangle-alert-99rDZz9U.js",
1751
- "_share-2-BlNTW9Lm.js",
1752
- "_trending-up-C4QuPkw3.js",
1753
- "_moon-DEPcyTHG.js",
1754
- "_thumbs-up-Cez8oCuZ.js",
1755
- "_database-DZEp-NYz.js",
1756
- "_link-2-3eIiK81e.js",
1757
- "_trophy-D0mSSUi2.js",
1758
- "_file-text-Brc6F3oH.js",
1759
- "_activity-BOriX-5O.js",
1760
- "_globe-eD910DAK.js",
1761
- "_researchTopic-D0w4lDHH.js",
1762
- "_useMutation-pFc9AV9q.js",
1763
- "_plus-CsPEBwC8.js",
1764
- "_dialog-DxQjeKSp.js",
1765
- "_switch-WsS9i_IX.js",
1766
- "_index-BPlx9he0.js",
1767
- "_useDebounce-Biol71Ue.js",
1768
- "_transform-yHyLdRgB.js",
1769
- "_index-DdF_Us_6.js",
1770
- "_chat-DOACRtqV.js",
1771
- "_trash-2-CcR0dxP7.js",
1772
- "_undo-2-lzOlsuTo.js",
1773
- "_arrow-up-right-DW6w7lkJ.js",
1774
- "_arrow-right-pTo64XGZ.js",
 
1775
  "_colors-BkWRhvFI.js",
1776
- "_usePapers-CrZh8ngx.js",
1777
- "_PaperCard-DXVTfuSM.js",
1778
- "_AuthorAvatar-CB9dFjtV.js",
1779
- "_SotaBadges-D5Rygs2E.js",
1780
- "_Icon-BCKS3hPB.js",
1781
- "_LatexTitle-YKOmpgD5.js",
1782
  "_safeExternalHref-CkBrsh84.js",
1783
- "_popover-BTut4e1S.js",
1784
- "_skeleton-BkAt4a_A.js",
1785
- "_useIntersectionObserver-BiqrXJxS.js",
1786
- "_useInfiniteQuery-DGk1REJi.js",
1787
- "_McpShowcase-aTKzx9IH.js",
1788
- "_AgentLogos-Cm3YQ6TB.js",
1789
- "_alert-CbcJsgVQ.js",
1790
- "_useDocumentTitle-Dgxi21fr.js",
1791
- "_pageTitles-DTKTKJOp.js"
1792
  ]
1793
  },
1794
  "src/views/FrameworksIndexView.tsx": {
1795
- "file": "assets/FrameworksIndexView-37ptGtep.js",
1796
  "name": "FrameworksIndexView",
1797
  "src": "src/views/FrameworksIndexView.tsx",
1798
  "isDynamicEntry": true,
1799
  "imports": [
1800
  "index.html",
1801
- "_Icon-BCKS3hPB.js",
1802
  "_colors-BkWRhvFI.js",
1803
  "_frameworks-DDA0P4Tf.js",
1804
- "_useDocumentTitle-Dgxi21fr.js",
1805
- "_pageTitles-DTKTKJOp.js"
1806
  ]
1807
  },
1808
  "src/views/McpView.tsx": {
1809
- "file": "assets/McpView-BuSGzB0f.js",
1810
  "name": "McpView",
1811
  "src": "src/views/McpView.tsx",
1812
  "isDynamicEntry": true,
1813
  "imports": [
1814
  "index.html",
1815
- "_useDocumentTitle-Dgxi21fr.js",
1816
- "_github-DjuSO7M4.js",
1817
- "_arrow-up-right-DW6w7lkJ.js",
1818
- "_external-link-C27iK9fF.js",
1819
- "_copy-B-raWDut.js"
1820
  ],
1821
  "css": [
1822
  "assets/McpView-EGeqkP46.css"
1823
  ]
1824
  },
1825
  "src/views/MethodDetailView.tsx": {
1826
- "file": "assets/MethodDetailView-By5dCsx2.js",
1827
  "name": "MethodDetailView",
1828
  "src": "src/views/MethodDetailView.tsx",
1829
  "isDynamicEntry": true,
1830
  "imports": [
1831
  "index.html",
1832
- "_ResearchFollowButton-Jethi4Re.js",
1833
- "_SotaBadges-D5Rygs2E.js",
1834
- "_usePapers-CrZh8ngx.js",
1835
- "_MarkdownText-WX3kW92g.js",
1836
  "_slug-BpH-Nkvz.js",
1837
- "_transform-yHyLdRgB.js",
1838
- "_skeleton-BkAt4a_A.js",
1839
  "_safeExternalHref-CkBrsh84.js",
1840
  "src/pages/NotFound.tsx",
1841
- "_LoadFailurePage-C6rCculu.js",
1842
- "_useDocumentTitle-Dgxi21fr.js",
1843
- "_pageTitles-DTKTKJOp.js",
1844
- "_researchTopic-D0w4lDHH.js",
1845
- "_useMutation-pFc9AV9q.js",
1846
- "_plus-CsPEBwC8.js",
1847
  "_colors-BkWRhvFI.js",
1848
- "_PaperCard-DXVTfuSM.js",
1849
- "_AuthorAvatar-CB9dFjtV.js",
1850
- "_Icon-BCKS3hPB.js",
1851
- "_LatexTitle-YKOmpgD5.js",
1852
- "_popover-BTut4e1S.js",
1853
- "_useIntersectionObserver-BiqrXJxS.js",
1854
- "_useInfiniteQuery-DGk1REJi.js",
1855
- "_PaperPreviewLink-CyaI4izq.js",
1856
- "_index-C_uAq02v.js",
1857
- "_index-DPECPebL.js",
1858
- "_hover-card-C0nRSsFV.js",
1859
- "_alert-CbcJsgVQ.js"
1860
  ]
1861
  },
1862
  "src/views/MethodsIndexView.tsx": {
1863
- "file": "assets/MethodsIndexView-DcCWv5JL.js",
1864
  "name": "MethodsIndexView",
1865
  "src": "src/views/MethodsIndexView.tsx",
1866
  "isDynamicEntry": true,
@@ -1868,181 +1878,181 @@
1868
  "index.html",
1869
  "_areas-Dvi8w2dp.js",
1870
  "_slug-BpH-Nkvz.js",
1871
- "_alert-CbcJsgVQ.js",
1872
- "_AreaSection-Cj-nzCCB.js",
1873
- "_TaxonomySuggestionTile-BRJohRi7.js",
1874
- "_useHashScrollOnReady-BovvYGlz.js",
1875
- "_useDocumentTitle-Dgxi21fr.js",
1876
- "_pageTitles-DTKTKJOp.js",
1877
- "_skeleton-BkAt4a_A.js",
1878
- "_SignInToEditDialog-By7mFzd-.js",
1879
- "_button-k_NH4ciO.js",
1880
- "_input-DaoHFpPY.js",
1881
- "_textarea-DZVopFEC.js",
1882
- "_searchable-select-CfqOxthQ.js",
1883
- "_popover-BTut4e1S.js",
1884
- "_dialog-DxQjeKSp.js",
1885
- "_search-CXZqc5xK.js",
1886
- "_loader-circle-Cd5BHkxG.js",
1887
- "_useMutation-pFc9AV9q.js",
1888
- "_submissions-CIyYa4oU.js",
1889
- "_cacheSync-BaUSLOpe.js",
1890
- "_plus-CsPEBwC8.js",
1891
- "_trending-up-C4QuPkw3.js"
1892
  ]
1893
  },
1894
  "src/views/OrganizationDetailView.tsx": {
1895
- "file": "assets/OrganizationDetailView-BKgEoM1B.js",
1896
  "name": "OrganizationDetailView",
1897
  "src": "src/views/OrganizationDetailView.tsx",
1898
  "isDynamicEntry": true,
1899
  "imports": [
1900
  "index.html",
1901
- "_ResearchFollowButton-Jethi4Re.js",
1902
- "_MarkdownText-WX3kW92g.js",
1903
- "_OrganizationContributionGraph-P1HEV0Zn.js",
1904
- "_usePapers-CrZh8ngx.js",
1905
- "_searchable-select-CfqOxthQ.js",
1906
- "_skeleton-BkAt4a_A.js",
1907
- "_transform-yHyLdRgB.js",
1908
  "_organizationNames-BVKzYEBp.js",
1909
  "src/pages/NotFound.tsx",
1910
- "_LoadFailurePage-C6rCculu.js",
1911
- "_useDocumentTitle-Dgxi21fr.js",
1912
- "_pageTitles-DTKTKJOp.js",
1913
- "_researchTopic-D0w4lDHH.js",
1914
- "_useMutation-pFc9AV9q.js",
1915
- "_plus-CsPEBwC8.js",
1916
- "_PaperPreviewLink-CyaI4izq.js",
1917
- "_index-C_uAq02v.js",
1918
- "_index-DPECPebL.js",
1919
- "_hover-card-C0nRSsFV.js",
1920
- "_PaperCard-DXVTfuSM.js",
1921
- "_AuthorAvatar-CB9dFjtV.js",
1922
- "_SotaBadges-D5Rygs2E.js",
1923
  "_colors-BkWRhvFI.js",
1924
- "_Icon-BCKS3hPB.js",
1925
- "_LatexTitle-YKOmpgD5.js",
1926
  "_safeExternalHref-CkBrsh84.js",
1927
- "_popover-BTut4e1S.js",
1928
- "_useIntersectionObserver-BiqrXJxS.js",
1929
- "_useInfiniteQuery-DGk1REJi.js",
1930
- "_button-k_NH4ciO.js",
1931
- "_dialog-DxQjeKSp.js",
1932
- "_search-CXZqc5xK.js",
1933
- "_loader-circle-Cd5BHkxG.js",
1934
- "_alert-CbcJsgVQ.js"
1935
  ]
1936
  },
1937
  "src/views/OrganizationsIndexView.tsx": {
1938
- "file": "assets/OrganizationsIndexView-D5R_8uqp.js",
1939
  "name": "OrganizationsIndexView",
1940
  "src": "src/views/OrganizationsIndexView.tsx",
1941
  "isDynamicEntry": true,
1942
  "imports": [
1943
  "index.html",
1944
- "_alert-CbcJsgVQ.js",
1945
- "_useDocumentTitle-Dgxi21fr.js",
1946
- "_pageTitles-DTKTKJOp.js"
1947
  ],
1948
  "css": [
1949
  "assets/OrganizationsIndexView-CJnrfIkP.css"
1950
  ]
1951
  },
1952
  "src/views/PaperDetailView.tsx": {
1953
- "file": "assets/PaperDetailView-BRXTv_cJ.js",
1954
  "name": "PaperDetailView",
1955
  "src": "src/views/PaperDetailView.tsx",
1956
  "isDynamicEntry": true,
1957
  "imports": [
1958
  "index.html",
1959
- "_useMutation-pFc9AV9q.js",
1960
- "_Icon-BCKS3hPB.js",
1961
- "_SotaBadges-D5Rygs2E.js",
1962
- "_LatexTitle-YKOmpgD5.js",
1963
- "_preferences-BdWonpOv.js",
1964
- "_transform-yHyLdRgB.js",
1965
  "_paperReader-D1y30HyW.js",
1966
- "_useDocumentTitle-Dgxi21fr.js",
1967
  "_safeExternalHref-CkBrsh84.js",
1968
- "_mlIntern-BWyozZfZ.js",
1969
- "_skeleton-BkAt4a_A.js",
1970
- "_alert-CbcJsgVQ.js",
1971
- "_button-k_NH4ciO.js",
1972
- "_dialog-DxQjeKSp.js",
1973
- "_AgentLogos-Cm3YQ6TB.js",
1974
- "_copy-B-raWDut.js",
1975
- "_cacheSync-BaUSLOpe.js",
1976
- "_input-DaoHFpPY.js",
1977
- "_searchable-select-CfqOxthQ.js",
1978
- "_loader-circle-Cd5BHkxG.js",
1979
- "_trash-2-CcR0dxP7.js",
1980
- "_SignInToEditDialog-By7mFzd-.js",
1981
- "_useQueries-cMUjfdG4.js",
1982
- "_submissions-CIyYa4oU.js",
1983
- "_database-DZEp-NYz.js",
1984
- "_plus-CsPEBwC8.js",
1985
- "_search-CXZqc5xK.js",
1986
- "_badge-L_EHeT-o.js",
1987
- "_CatalogEntityPreviewLink-Pt3-UZ8j.js",
1988
- "_globe-eD910DAK.js",
1989
- "_github-DjuSO7M4.js",
1990
- "_index-BPlx9he0.js",
1991
- "_ExternalSourceEvalBadge-CJDvhRpF.js",
1992
- "_index-C_uAq02v.js",
1993
- "_index-DPECPebL.js",
1994
- "_useIntersectionObserver-BiqrXJxS.js",
1995
- "_savedPapersAuth-H1hgdsXP.js",
1996
  "_organizationNames-BVKzYEBp.js",
1997
- "_AuthorAvatar-CB9dFjtV.js",
1998
  "_colors-BkWRhvFI.js",
1999
- "_popover-BTut4e1S.js",
2000
- "_textarea-DZVopFEC.js",
2001
- "_hover-card-C0nRSsFV.js"
2002
  ],
2003
  "css": [
2004
  "assets/PaperDetailView-DOQP9hzn.css"
2005
  ]
2006
  },
2007
  "src/views/PaperReaderView.tsx": {
2008
- "file": "assets/PaperReaderView-x7MwOUS_.js",
2009
  "name": "PaperReaderView",
2010
  "src": "src/views/PaperReaderView.tsx",
2011
  "isDynamicEntry": true,
2012
  "imports": [
2013
  "index.html",
2014
- "_chatLifecycle-C463R-m5.js",
2015
- "_MarkdownText-WX3kW92g.js",
2016
  "_paperReader-D1y30HyW.js",
2017
- "_chat-DOACRtqV.js",
2018
  "_safeExternalHref-CkBrsh84.js",
2019
  "src/views/ChatView.tsx",
2020
- "_index-DdF_Us_6.js",
2021
- "_hover-card-C0nRSsFV.js",
2022
- "_CatalogEntityPreviewLink-Pt3-UZ8j.js",
2023
- "_github-DjuSO7M4.js",
2024
- "_file-text-Brc6F3oH.js",
2025
- "_PaperPreviewLink-CyaI4izq.js",
2026
- "_index-C_uAq02v.js",
2027
- "_index-DPECPebL.js",
2028
- "_useMutation-pFc9AV9q.js",
2029
- "_index-LFG-CrNl.js",
2030
  "node_modules/katex/dist/katex.mjs",
2031
- "_thumbs-up-Cez8oCuZ.js",
2032
- "_copy-B-raWDut.js",
2033
- "_arrow-left-CXkxRjJa.js",
2034
- "_external-link-C27iK9fF.js",
2035
- "_plus-CsPEBwC8.js",
2036
- "_search-CXZqc5xK.js",
2037
- "_chevron-up-Dd1OUf8-.js",
2038
- "_AuthorAvatar-CB9dFjtV.js",
2039
- "_trash-2-CcR0dxP7.js",
2040
- "_McpShowcase-aTKzx9IH.js",
2041
- "_AgentLogos-Cm3YQ6TB.js",
2042
- "_share-2-BlNTW9Lm.js",
2043
- "_Icon-BCKS3hPB.js",
2044
- "_mlIntern-BWyozZfZ.js",
2045
- "_openrouter-KxEsvD0W.js"
2046
  ],
2047
  "css": [
2048
  "assets/katex-wklAmtGL.css"
@@ -2110,44 +2120,44 @@
2110
  ]
2111
  },
2112
  "src/views/PapersListView.tsx": {
2113
- "file": "assets/PapersListView-DrBZoavI.js",
2114
  "name": "PapersListView",
2115
  "src": "src/views/PapersListView.tsx",
2116
  "isDynamicEntry": true,
2117
  "imports": [
2118
  "index.html",
2119
- "_SotaBadges-D5Rygs2E.js",
2120
- "_Icon-BCKS3hPB.js",
2121
- "_usePapers-CrZh8ngx.js",
2122
- "_transform-yHyLdRgB.js",
2123
- "_useDebounce-Biol71Ue.js",
2124
- "_skeleton-BkAt4a_A.js",
2125
- "_alert-CbcJsgVQ.js",
2126
  "_frameworks-DDA0P4Tf.js",
2127
- "_useDocumentTitle-Dgxi21fr.js",
2128
- "_pageTitles-DTKTKJOp.js",
2129
  "_colors-BkWRhvFI.js",
2130
- "_PaperCard-DXVTfuSM.js",
2131
- "_AuthorAvatar-CB9dFjtV.js",
2132
- "_LatexTitle-YKOmpgD5.js",
2133
  "_safeExternalHref-CkBrsh84.js",
2134
- "_popover-BTut4e1S.js",
2135
- "_useIntersectionObserver-BiqrXJxS.js",
2136
- "_useInfiniteQuery-DGk1REJi.js"
2137
  ]
2138
  },
2139
  "src/views/PrivacyView.tsx": {
2140
- "file": "assets/PrivacyView-BAwVg3e8.js",
2141
  "name": "PrivacyView",
2142
  "src": "src/views/PrivacyView.tsx",
2143
  "isDynamicEntry": true,
2144
  "imports": [
2145
  "index.html",
2146
- "_useDocumentTitle-Dgxi21fr.js"
2147
  ]
2148
  },
2149
  "src/views/RateLimitsView.tsx": {
2150
- "file": "assets/RateLimitsView-DVPCvQt-.js",
2151
  "name": "RateLimitsView",
2152
  "src": "src/views/RateLimitsView.tsx",
2153
  "isDynamicEntry": true,
@@ -2156,74 +2166,74 @@
2156
  ]
2157
  },
2158
  "src/views/SavedPapersView.tsx": {
2159
- "file": "assets/SavedPapersView-DHuD3Z3v.js",
2160
  "name": "SavedPapersView",
2161
  "src": "src/views/SavedPapersView.tsx",
2162
  "isDynamicEntry": true,
2163
  "imports": [
2164
  "index.html",
2165
- "_PaperCard-DXVTfuSM.js",
2166
- "_SotaBadges-D5Rygs2E.js",
2167
- "_skeleton-BkAt4a_A.js",
2168
- "_alert-CbcJsgVQ.js",
2169
- "_transform-yHyLdRgB.js",
2170
- "_savedPapersAuth-H1hgdsXP.js",
2171
- "_AuthorAvatar-CB9dFjtV.js",
2172
- "_Icon-BCKS3hPB.js",
2173
- "_LatexTitle-YKOmpgD5.js",
2174
  "_safeExternalHref-CkBrsh84.js",
2175
  "_colors-BkWRhvFI.js"
2176
  ]
2177
  },
2178
  "src/views/SettingsView.tsx": {
2179
- "file": "assets/SettingsView-D446lCYq.js",
2180
  "name": "SettingsView",
2181
  "src": "src/views/SettingsView.tsx",
2182
  "isDynamicEntry": true,
2183
  "imports": [
2184
  "index.html",
2185
- "_useMutation-pFc9AV9q.js",
2186
- "_researchTopic-D0w4lDHH.js",
2187
- "_switch-WsS9i_IX.js",
2188
- "_arrow-right-pTo64XGZ.js",
2189
- "_chat-DOACRtqV.js",
2190
- "_useDocumentTitle-Dgxi21fr.js",
2191
- "_openrouter-KxEsvD0W.js",
2192
- "_preferences-BdWonpOv.js",
2193
- "_external-link-C27iK9fF.js",
2194
- "_moon-DEPcyTHG.js",
2195
- "_index-BPlx9he0.js"
2196
  ]
2197
  },
2198
  "src/views/SharedChatView.tsx": {
2199
- "file": "assets/SharedChatView-ky4ihV0X.js",
2200
  "name": "SharedChatView",
2201
  "src": "src/views/SharedChatView.tsx",
2202
  "isDynamicEntry": true,
2203
  "imports": [
2204
  "index.html",
2205
- "_chatLifecycle-C463R-m5.js",
2206
- "_index-DdF_Us_6.js",
2207
- "_chat-DOACRtqV.js",
2208
- "_hover-card-C0nRSsFV.js",
2209
- "_CatalogEntityPreviewLink-Pt3-UZ8j.js",
2210
- "_github-DjuSO7M4.js",
2211
- "_file-text-Brc6F3oH.js",
2212
- "_PaperPreviewLink-CyaI4izq.js",
2213
- "_index-C_uAq02v.js",
2214
- "_index-DPECPebL.js",
2215
- "_useMutation-pFc9AV9q.js",
2216
- "_index-LFG-CrNl.js",
2217
  "node_modules/katex/dist/katex.mjs",
2218
- "_thumbs-up-Cez8oCuZ.js",
2219
- "_copy-B-raWDut.js",
2220
- "_arrow-left-CXkxRjJa.js",
2221
- "_external-link-C27iK9fF.js",
2222
- "_plus-CsPEBwC8.js",
2223
- "_search-CXZqc5xK.js",
2224
- "_chevron-up-Dd1OUf8-.js",
2225
- "_AuthorAvatar-CB9dFjtV.js",
2226
- "_trash-2-CcR0dxP7.js"
2227
  ],
2228
  "css": [
2229
  "assets/katex-wklAmtGL.css"
@@ -2291,166 +2301,166 @@
2291
  ]
2292
  },
2293
  "src/views/StagingAccessRequestView.tsx": {
2294
- "file": "assets/StagingAccessRequestView-7wMPh5RB.js",
2295
  "name": "StagingAccessRequestView",
2296
  "src": "src/views/StagingAccessRequestView.tsx",
2297
  "isDynamicEntry": true,
2298
  "imports": [
2299
  "index.html",
2300
- "_circle-check-K4AzWUKO.js"
2301
  ]
2302
  },
2303
  "src/views/SubmitView.tsx": {
2304
- "file": "assets/SubmitView-CInSthG2.js",
2305
  "name": "SubmitView",
2306
  "src": "src/views/SubmitView.tsx",
2307
  "isDynamicEntry": true,
2308
  "imports": [
2309
  "index.html",
2310
- "_useMutation-pFc9AV9q.js",
2311
- "_alert-CbcJsgVQ.js",
2312
- "_button-k_NH4ciO.js",
2313
- "_input-DaoHFpPY.js",
2314
- "_textarea-DZVopFEC.js",
2315
- "_cacheSync-BaUSLOpe.js"
2316
  ]
2317
  },
2318
  "src/views/TagBrowseView.tsx": {
2319
- "file": "assets/TagBrowseView-U0Y2LIFC.js",
2320
  "name": "TagBrowseView",
2321
  "src": "src/views/TagBrowseView.tsx",
2322
  "isDynamicEntry": true,
2323
  "imports": [
2324
  "index.html",
2325
- "_ResearchFollowButton-Jethi4Re.js",
2326
- "_SotaBadges-D5Rygs2E.js",
2327
- "_usePapers-CrZh8ngx.js",
2328
- "_arrow-right-pTo64XGZ.js",
2329
- "_BenchmarkTrendSparkline--B-upW1V.js",
2330
- "_MarkdownText-WX3kW92g.js",
2331
  "_frameworks-DDA0P4Tf.js",
2332
- "_preferences-BdWonpOv.js",
2333
  "_slug-BpH-Nkvz.js",
2334
- "_transform-yHyLdRgB.js",
2335
- "_skeleton-BkAt4a_A.js",
2336
  "src/pages/NotFound.tsx",
2337
- "_LoadFailurePage-C6rCculu.js",
2338
- "_useDocumentTitle-Dgxi21fr.js",
2339
- "_pageTitles-DTKTKJOp.js",
2340
- "_trophy-D0mSSUi2.js",
2341
- "_github-DjuSO7M4.js",
2342
- "_researchTopic-D0w4lDHH.js",
2343
- "_useMutation-pFc9AV9q.js",
2344
- "_plus-CsPEBwC8.js",
2345
  "_colors-BkWRhvFI.js",
2346
- "_PaperCard-DXVTfuSM.js",
2347
- "_AuthorAvatar-CB9dFjtV.js",
2348
- "_Icon-BCKS3hPB.js",
2349
- "_LatexTitle-YKOmpgD5.js",
2350
  "_safeExternalHref-CkBrsh84.js",
2351
- "_popover-BTut4e1S.js",
2352
- "_useIntersectionObserver-BiqrXJxS.js",
2353
- "_useInfiniteQuery-DGk1REJi.js",
2354
- "_PaperPreviewLink-CyaI4izq.js",
2355
- "_index-C_uAq02v.js",
2356
- "_index-DPECPebL.js",
2357
- "_hover-card-C0nRSsFV.js",
2358
- "_alert-CbcJsgVQ.js"
2359
  ]
2360
  },
2361
  "src/views/TagsIndexView.tsx": {
2362
- "file": "assets/TagsIndexView-DV3pTgP5.js",
2363
  "name": "TagsIndexView",
2364
  "src": "src/views/TagsIndexView.tsx",
2365
  "isDynamicEntry": true,
2366
  "imports": [
2367
  "index.html",
2368
  "_colors-BkWRhvFI.js",
2369
- "_transform-yHyLdRgB.js",
2370
  "_slug-BpH-Nkvz.js",
2371
- "_taskIcons-9fl0jLm1.js",
2372
- "_alert-CbcJsgVQ.js",
2373
- "_AreaSection-Cj-nzCCB.js",
2374
- "_TaxonomySuggestionTile-BRJohRi7.js",
2375
- "_useHashScrollOnReady-BovvYGlz.js",
2376
  "_areas-Dvi8w2dp.js",
2377
- "_useDocumentTitle-Dgxi21fr.js",
2378
- "_pageTitles-DTKTKJOp.js",
2379
- "_search-CXZqc5xK.js",
2380
- "_triangle-alert-99rDZz9U.js",
2381
- "_share-2-BlNTW9Lm.js",
2382
- "_trending-up-C4QuPkw3.js",
2383
- "_moon-DEPcyTHG.js",
2384
- "_thumbs-up-Cez8oCuZ.js",
2385
- "_database-DZEp-NYz.js",
2386
- "_link-2-3eIiK81e.js",
2387
- "_trophy-D0mSSUi2.js",
2388
- "_file-text-Brc6F3oH.js",
2389
- "_activity-BOriX-5O.js",
2390
- "_globe-eD910DAK.js",
2391
- "_skeleton-BkAt4a_A.js",
2392
- "_SignInToEditDialog-By7mFzd-.js",
2393
- "_button-k_NH4ciO.js",
2394
- "_input-DaoHFpPY.js",
2395
- "_textarea-DZVopFEC.js",
2396
- "_searchable-select-CfqOxthQ.js",
2397
- "_popover-BTut4e1S.js",
2398
- "_dialog-DxQjeKSp.js",
2399
- "_loader-circle-Cd5BHkxG.js",
2400
- "_useMutation-pFc9AV9q.js",
2401
- "_submissions-CIyYa4oU.js",
2402
- "_cacheSync-BaUSLOpe.js",
2403
- "_plus-CsPEBwC8.js"
2404
  ]
2405
  },
2406
  "src/views/TopicView.tsx": {
2407
- "file": "assets/TopicView-B2j-h43J.js",
2408
  "name": "TopicView",
2409
  "src": "src/views/TopicView.tsx",
2410
  "isDynamicEntry": true,
2411
  "imports": [
2412
  "index.html",
2413
- "_usePapers-CrZh8ngx.js",
2414
- "_skeleton-BkAt4a_A.js",
2415
- "_researchTopic-D0w4lDHH.js",
2416
- "_transform-yHyLdRgB.js",
2417
- "_plus-CsPEBwC8.js",
2418
- "_link-2-3eIiK81e.js",
2419
- "_PaperCard-DXVTfuSM.js",
2420
- "_AuthorAvatar-CB9dFjtV.js",
2421
- "_SotaBadges-D5Rygs2E.js",
2422
  "_colors-BkWRhvFI.js",
2423
- "_Icon-BCKS3hPB.js",
2424
- "_LatexTitle-YKOmpgD5.js",
2425
  "_safeExternalHref-CkBrsh84.js",
2426
- "_popover-BTut4e1S.js",
2427
- "_useIntersectionObserver-BiqrXJxS.js",
2428
- "_useInfiniteQuery-DGk1REJi.js",
2429
- "_useMutation-pFc9AV9q.js"
2430
  ]
2431
  },
2432
  "src/views/TrendsView.tsx": {
2433
- "file": "assets/TrendsView-kq4yRS8h.js",
2434
  "name": "TrendsView",
2435
  "src": "src/views/TrendsView.tsx",
2436
  "isDynamicEntry": true,
2437
  "imports": [
2438
  "index.html",
2439
- "_alert-CbcJsgVQ.js",
2440
- "_skeleton-BkAt4a_A.js",
2441
- "_useDocumentTitle-Dgxi21fr.js",
2442
- "_pageTitles-DTKTKJOp.js"
2443
  ]
2444
  },
2445
  "src/views/UserProfileView.tsx": {
2446
- "file": "assets/UserProfileView-BHFa5M7z.js",
2447
  "name": "UserProfileView",
2448
  "src": "src/views/UserProfileView.tsx",
2449
  "isDynamicEntry": true,
2450
  "imports": [
2451
  "index.html",
2452
- "_OrganizationContributionGraph-P1HEV0Zn.js",
2453
- "_skeleton-BkAt4a_A.js"
2454
  ]
2455
  }
2456
  }
 
1
  {
2
+ "_AgentLogos-C8ZXxWoe.js": {
3
+ "file": "assets/AgentLogos-C8ZXxWoe.js",
4
  "name": "AgentLogos",
5
  "imports": [
6
  "index.html"
7
  ]
8
  },
9
+ "_AreaSection-uCYjp549.js": {
10
+ "file": "assets/AreaSection-uCYjp549.js",
11
  "name": "AreaSection",
12
  "imports": [
13
  "index.html",
14
+ "_skeleton-Co0D0sKS.js"
15
  ]
16
  },
17
+ "_AuthorAvatar-!~{018}~.js": {
18
  "file": "assets/AuthorAvatar-o5W6pl_W.css",
19
+ "src": "_AuthorAvatar-!~{018}~.js"
20
  },
21
+ "_AuthorAvatar-BjZbMuV8.js": {
22
+ "file": "assets/AuthorAvatar-BjZbMuV8.js",
23
  "name": "AuthorAvatar",
24
  "imports": [
25
  "index.html"
 
28
  "assets/AuthorAvatar-o5W6pl_W.css"
29
  ]
30
  },
31
+ "_BenchmarkTrendSparkline-FNGhTOi0.js": {
32
+ "file": "assets/BenchmarkTrendSparkline-FNGhTOi0.js",
33
  "name": "BenchmarkTrendSparkline",
34
  "imports": [
35
  "index.html"
36
  ]
37
  },
38
+ "_CatalogEntityPreviewLink-Cz-PGV0F.js": {
39
+ "file": "assets/CatalogEntityPreviewLink-Cz-PGV0F.js",
40
  "name": "CatalogEntityPreviewLink",
41
  "imports": [
42
  "index.html",
43
+ "_hover-card-BPFTusQQ.js"
44
  ]
45
  },
46
+ "_CronDashboard-!~{023}~.js": {
47
  "file": "assets/CronDashboard-DwChfW9h.css",
48
+ "src": "_CronDashboard-!~{023}~.js"
49
  },
50
+ "_CronDashboard-BW4JZfWT.js": {
51
+ "file": "assets/CronDashboard-BW4JZfWT.js",
52
  "name": "CronDashboard",
53
  "imports": [
54
  "index.html"
 
57
  "assets/CronDashboard-DwChfW9h.css"
58
  ]
59
  },
60
+ "_ExternalSourceEvalBadge-!~{01M}~.js": {
61
  "file": "assets/ExternalSourceEvalBadge-CWUQ52cV.css",
62
+ "src": "_ExternalSourceEvalBadge-!~{01M}~.js"
63
  },
64
+ "_ExternalSourceEvalBadge-CDxpNEEw.js": {
65
+ "file": "assets/ExternalSourceEvalBadge-CDxpNEEw.js",
66
  "name": "ExternalSourceEvalBadge",
67
  "imports": [
68
  "index.html",
69
+ "_hover-card-BPFTusQQ.js",
70
  "_safeExternalHref-CkBrsh84.js"
71
  ],
72
  "css": [
73
  "assets/ExternalSourceEvalBadge-CWUQ52cV.css"
74
  ]
75
  },
76
+ "_Icon-DqGTBJZ9.js": {
77
+ "file": "assets/Icon-DqGTBJZ9.js",
78
  "name": "Icon",
79
  "imports": [
80
  "index.html"
81
  ]
82
  },
83
+ "_LatexTitle-CKwsnD2Q.js": {
84
+ "file": "assets/LatexTitle-CKwsnD2Q.js",
85
  "name": "LatexTitle",
86
  "imports": [
87
  "index.html"
 
90
  "node_modules/katex/dist/katex.mjs"
91
  ]
92
  },
93
+ "_LoadFailurePage-CyeoE8bL.js": {
94
+ "file": "assets/LoadFailurePage-CyeoE8bL.js",
95
  "name": "LoadFailurePage",
96
  "imports": [
97
  "index.html",
98
+ "_alert-Ccdfz8nH.js",
99
  "src/pages/NotFound.tsx"
100
  ]
101
  },
102
+ "_MarkdownText-DxIZLXr2.js": {
103
+ "file": "assets/MarkdownText-DxIZLXr2.js",
104
  "name": "MarkdownText",
105
  "imports": [
106
  "index.html",
107
+ "_PaperPreviewLink-Cn8gltdd.js",
108
+ "_index-DsTRem-i.js",
109
+ "_index-2X5IY5Iu.js"
110
  ],
111
  "dynamicImports": [
112
  "src/components/MathMarkdownText.tsx"
113
  ]
114
  },
115
+ "_McpShowcase-2nbI0Yx2.js": {
116
+ "file": "assets/McpShowcase-2nbI0Yx2.js",
117
  "name": "McpShowcase",
118
  "imports": [
119
  "index.html",
120
+ "_AgentLogos-C8ZXxWoe.js"
121
  ]
122
  },
123
+ "_OrganizationContributionGraph-BafN-XpT.js": {
124
+ "file": "assets/OrganizationContributionGraph-BafN-XpT.js",
125
  "name": "OrganizationContributionGraph",
126
  "imports": [
127
  "index.html",
128
+ "_skeleton-Co0D0sKS.js"
129
  ]
130
  },
131
+ "_PaperCard-VdH8pI7u.js": {
132
+ "file": "assets/PaperCard-VdH8pI7u.js",
133
  "name": "PaperCard",
134
  "imports": [
135
  "index.html",
136
+ "_AuthorAvatar-BjZbMuV8.js",
137
+ "_SotaBadges-DiZSUF6s.js",
138
+ "_Icon-DqGTBJZ9.js",
139
+ "_LatexTitle-CKwsnD2Q.js",
140
  "_safeExternalHref-CkBrsh84.js"
141
  ]
142
  },
143
+ "_PaperPreviewLink-Cn8gltdd.js": {
144
+ "file": "assets/PaperPreviewLink-Cn8gltdd.js",
145
  "name": "PaperPreviewLink",
146
  "imports": [
147
+ "_index-DsTRem-i.js",
148
+ "_index-2X5IY5Iu.js",
149
  "index.html",
150
+ "_hover-card-BPFTusQQ.js",
151
+ "_useMutation-s01kVLYP.js"
152
  ]
153
  },
154
+ "_ResearchFollowButton-Buglf0cW.js": {
155
+ "file": "assets/ResearchFollowButton-Buglf0cW.js",
156
  "name": "ResearchFollowButton",
157
  "imports": [
158
  "index.html",
159
+ "_researchTopic-CoMNa-1c.js",
160
+ "_plus-DSNQa55K.js"
161
  ]
162
  },
163
+ "_SignInToEditDialog-Bz47-2P3.js": {
164
+ "file": "assets/SignInToEditDialog-Bz47-2P3.js",
165
  "name": "SignInToEditDialog",
166
  "imports": [
167
  "index.html",
168
+ "_button-D3YZ2fyV.js",
169
+ "_input-DiH0Y4eI.js",
170
+ "_textarea-BswxiqHc.js",
171
+ "_searchable-select-D6Qsd47Z.js",
172
+ "_dialog-Wuv1Mb7q.js",
173
+ "_useMutation-s01kVLYP.js",
174
+ "_submissions-Ddtxe-7g.js",
175
+ "_cacheSync-DdcXqD8L.js",
176
+ "_loader-circle-D52ezBbD.js"
177
+ ]
178
+ },
179
+ "_SotaBadges-DiZSUF6s.js": {
180
+ "file": "assets/SotaBadges-DiZSUF6s.js",
181
  "name": "SotaBadges",
182
  "imports": [
183
  "index.html",
184
  "_colors-BkWRhvFI.js",
185
+ "_transform-CZk96jj7.js"
186
  ]
187
  },
188
+ "_TaxonomySuggestionTile-BidHQCms.js": {
189
+ "file": "assets/TaxonomySuggestionTile-BidHQCms.js",
190
  "name": "TaxonomySuggestionTile",
191
  "imports": [
192
  "index.html",
193
+ "_SignInToEditDialog-Bz47-2P3.js",
194
+ "_plus-DSNQa55K.js"
195
  ]
196
  },
197
  "__vite-browser-external": {
 
200
  "src": "__vite-browser-external",
201
  "isDynamicEntry": true
202
  },
203
+ "_activity-CMRWXS32.js": {
204
+ "file": "assets/activity-CMRWXS32.js",
205
  "name": "activity",
206
  "imports": [
207
  "index.html"
208
  ]
209
  },
210
+ "_alert-Ccdfz8nH.js": {
211
+ "file": "assets/alert-Ccdfz8nH.js",
212
  "name": "alert",
213
  "imports": [
214
  "index.html"
 
218
  "file": "assets/areas-Dvi8w2dp.js",
219
  "name": "areas"
220
  },
221
+ "_arrow-left-AHGVlBpG.js": {
222
+ "file": "assets/arrow-left-AHGVlBpG.js",
223
  "name": "arrow-left",
224
  "imports": [
225
  "index.html"
226
  ]
227
  },
228
+ "_arrow-right-D_glSYCT.js": {
229
+ "file": "assets/arrow-right-D_glSYCT.js",
230
  "name": "arrow-right",
231
  "imports": [
232
  "index.html"
233
  ]
234
  },
235
+ "_arrow-up-right-DW8s8d6m.js": {
236
+ "file": "assets/arrow-up-right-DW8s8d6m.js",
237
  "name": "arrow-up-right",
238
  "imports": [
239
  "index.html"
240
  ]
241
  },
242
+ "_badge-CpkuJKw3.js": {
243
+ "file": "assets/badge-CpkuJKw3.js",
244
  "name": "badge",
245
  "imports": [
246
  "index.html"
247
  ]
248
  },
249
+ "_button-D3YZ2fyV.js": {
250
+ "file": "assets/button-D3YZ2fyV.js",
251
  "name": "button",
252
  "imports": [
253
  "index.html"
254
  ]
255
  },
256
+ "_cacheSync-DdcXqD8L.js": {
257
+ "file": "assets/cacheSync-DdcXqD8L.js",
258
  "name": "cacheSync",
259
  "imports": [
260
  "index.html"
261
  ]
262
  },
263
+ "_chat-4qtVsasI.js": {
264
+ "file": "assets/chat-4qtVsasI.js",
265
  "name": "chat",
266
  "imports": [
267
  "index.html"
268
  ]
269
  },
270
+ "_chatLifecycle-!~{01m}~.js": {
271
  "file": "assets/chatLifecycle-Lr_OJaUk.css",
272
+ "src": "_chatLifecycle-!~{01m}~.js"
273
  },
274
+ "_chatLifecycle-C-gatgua.js": {
275
+ "file": "assets/chatLifecycle-C-gatgua.js",
276
  "name": "chatLifecycle",
277
  "imports": [
278
  "index.html",
279
+ "_index-CV2RBjLM.js",
280
+ "_hover-card-BPFTusQQ.js",
281
+ "_CatalogEntityPreviewLink-Cz-PGV0F.js",
282
+ "_github-DR_xiUHp.js",
283
+ "_file-text-DygGjiFE.js",
284
+ "_PaperPreviewLink-Cn8gltdd.js",
285
+ "_index-DsTRem-i.js",
286
+ "_index-DsUVuYlH.js",
287
+ "_index-2X5IY5Iu.js",
288
+ "_useMutation-s01kVLYP.js",
289
+ "_chat-4qtVsasI.js",
290
+ "_thumbs-up-O9YhH8YG.js",
291
+ "_copy-Csr_C_Aq.js",
292
+ "_arrow-left-AHGVlBpG.js",
293
+ "_external-link-CRXcmpbR.js",
294
+ "_plus-DSNQa55K.js",
295
+ "_search-D6MzDlxw.js",
296
+ "_chevron-up-CyF8Y8AT.js",
297
+ "_AuthorAvatar-BjZbMuV8.js",
298
+ "_trash-2-BXFf5wi-.js"
299
  ],
300
  "dynamicImports": [
301
  "__vite-browser-external",
 
370
  "assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf"
371
  ]
372
  },
373
+ "_chevron-up-CyF8Y8AT.js": {
374
+ "file": "assets/chevron-up-CyF8Y8AT.js",
375
  "name": "chevron-up",
376
  "imports": [
377
  "index.html"
378
  ]
379
  },
380
+ "_circle-check-BLQIDlmi.js": {
381
+ "file": "assets/circle-check-BLQIDlmi.js",
382
  "name": "circle-check",
383
  "imports": [
384
  "index.html"
 
392
  "file": "assets/conferenceListings-BnmhBx-_.js",
393
  "name": "conferenceListings"
394
  },
395
+ "_copy-Csr_C_Aq.js": {
396
+ "file": "assets/copy-Csr_C_Aq.js",
397
  "name": "copy",
398
  "imports": [
399
  "index.html"
400
  ]
401
  },
402
+ "_database-a8bVJz-T.js": {
403
+ "file": "assets/database-a8bVJz-T.js",
404
  "name": "database",
405
  "imports": [
406
  "index.html"
 
410
  "file": "assets/deadlines-BG5SWwEG.js",
411
  "name": "deadlines"
412
  },
413
+ "_dialog-Wuv1Mb7q.js": {
414
+ "file": "assets/dialog-Wuv1Mb7q.js",
415
  "name": "dialog",
416
  "imports": [
417
  "index.html"
418
  ]
419
  },
420
+ "_external-link-CRXcmpbR.js": {
421
+ "file": "assets/external-link-CRXcmpbR.js",
422
  "name": "external-link",
423
  "imports": [
424
  "index.html"
425
  ]
426
  },
427
+ "_file-text-DygGjiFE.js": {
428
+ "file": "assets/file-text-DygGjiFE.js",
429
  "name": "file-text",
430
  "imports": [
431
  "index.html"
 
435
  "file": "assets/frameworks-DDA0P4Tf.js",
436
  "name": "frameworks"
437
  },
438
+ "_github-DR_xiUHp.js": {
439
+ "file": "assets/github-DR_xiUHp.js",
440
  "name": "github",
441
  "imports": [
442
  "index.html"
443
  ]
444
  },
445
+ "_globe-C8su8imU.js": {
446
+ "file": "assets/globe-C8su8imU.js",
447
  "name": "globe",
448
  "imports": [
449
  "index.html"
450
  ]
451
  },
452
+ "_hover-card-BPFTusQQ.js": {
453
+ "file": "assets/hover-card-BPFTusQQ.js",
454
  "name": "hover-card",
455
  "imports": [
456
  "index.html"
457
  ]
458
  },
459
+ "_index-!~{00W}~.js": {
460
  "file": "assets/index-Cw6yAXSE.css",
461
+ "src": "_index-!~{00W}~.js"
462
  },
463
+ "_index-2X5IY5Iu.js": {
464
+ "file": "assets/index-2X5IY5Iu.js",
465
  "name": "index",
466
  "imports": [
467
+ "_index-DsTRem-i.js"
468
  ]
469
  },
470
+ "_index-4rRR7FSk.js": {
471
+ "file": "assets/index-4rRR7FSk.js",
472
  "name": "index",
473
  "imports": [
474
  "index.html"
475
  ]
476
  },
477
+ "_index-CV2RBjLM.js": {
478
+ "file": "assets/index-CV2RBjLM.js",
 
 
 
 
 
 
 
479
  "name": "index",
480
  "imports": [
481
  "index.html",
482
+ "_chat-4qtVsasI.js"
483
  ],
484
  "css": [
485
  "assets/index-Cw6yAXSE.css"
486
  ]
487
  },
488
+ "_index-DsTRem-i.js": {
489
+ "file": "assets/index-DsTRem-i.js",
490
+ "name": "index",
491
+ "imports": [
492
+ "index.html"
493
+ ]
494
+ },
495
+ "_index-DsUVuYlH.js": {
496
+ "file": "assets/index-DsUVuYlH.js",
497
  "name": "index",
498
  "imports": [
499
+ "_index-DsTRem-i.js",
500
  "node_modules/katex/dist/katex.mjs"
501
  ]
502
  },
503
+ "_input-DiH0Y4eI.js": {
504
+ "file": "assets/input-DiH0Y4eI.js",
505
  "name": "input",
506
  "imports": [
507
  "index.html"
508
  ]
509
  },
510
+ "_link-2-BVao7-2t.js": {
511
+ "file": "assets/link-2-BVao7-2t.js",
512
  "name": "link-2",
513
  "imports": [
514
  "index.html"
515
  ]
516
  },
517
+ "_loader-circle-D52ezBbD.js": {
518
+ "file": "assets/loader-circle-D52ezBbD.js",
519
  "name": "loader-circle",
520
  "imports": [
521
  "index.html"
522
  ]
523
  },
524
+ "_mlIntern-DECSlKey.js": {
525
+ "file": "assets/mlIntern-DECSlKey.js",
526
  "name": "mlIntern",
527
  "imports": [
528
  "index.html"
529
  ]
530
  },
531
+ "_moon-9co7u-sZ.js": {
532
+ "file": "assets/moon-9co7u-sZ.js",
533
  "name": "moon",
534
  "imports": [
535
  "index.html"
536
  ]
537
  },
538
+ "_openrouter-BQoIPEIl.js": {
539
+ "file": "assets/openrouter-BQoIPEIl.js",
540
  "name": "openrouter",
541
  "imports": [
542
  "index.html",
543
+ "_chat-4qtVsasI.js"
544
  ]
545
  },
546
  "_organizationNames-BVKzYEBp.js": {
547
  "file": "assets/organizationNames-BVKzYEBp.js",
548
  "name": "organizationNames"
549
  },
550
+ "_pageTitles-A2o-JnLx.js": {
551
+ "file": "assets/pageTitles-A2o-JnLx.js",
552
  "name": "pageTitles",
553
  "imports": [
554
+ "_useDocumentTitle-BkdH1nHb.js"
555
  ]
556
  },
557
  "_paperReader-D1y30HyW.js": {
 
561
  "_safeExternalHref-CkBrsh84.js"
562
  ]
563
  },
564
+ "_plus-DSNQa55K.js": {
565
+ "file": "assets/plus-DSNQa55K.js",
566
  "name": "plus",
567
  "imports": [
568
  "index.html"
569
  ]
570
  },
571
+ "_popover-BFaNN2oM.js": {
572
+ "file": "assets/popover-BFaNN2oM.js",
573
  "name": "popover",
574
  "imports": [
575
  "index.html"
576
  ]
577
  },
578
+ "_preferences-GewRyOaP.js": {
579
+ "file": "assets/preferences-GewRyOaP.js",
580
  "name": "preferences",
581
  "imports": [
582
  "index.html",
583
+ "_useMutation-s01kVLYP.js"
584
  ]
585
  },
586
+ "_refresh-cw-STXy0C1a.js": {
587
+ "file": "assets/refresh-cw-STXy0C1a.js",
588
  "name": "refresh-cw",
589
  "imports": [
590
  "index.html"
591
  ]
592
  },
593
+ "_researchTopic-CoMNa-1c.js": {
594
+ "file": "assets/researchTopic-CoMNa-1c.js",
595
  "name": "researchTopic",
596
  "imports": [
597
  "index.html",
598
+ "_useMutation-s01kVLYP.js"
599
  ]
600
  },
601
  "_safeExternalHref-CkBrsh84.js": {
602
  "file": "assets/safeExternalHref-CkBrsh84.js",
603
  "name": "safeExternalHref"
604
  },
605
+ "_savedPapersAuth-Chru3ugE.js": {
606
+ "file": "assets/savedPapersAuth-Chru3ugE.js",
607
  "name": "savedPapersAuth",
608
  "imports": [
609
  "index.html"
610
  ]
611
  },
612
+ "_search-D6MzDlxw.js": {
613
+ "file": "assets/search-D6MzDlxw.js",
614
  "name": "search",
615
  "imports": [
616
  "index.html"
617
  ]
618
  },
619
+ "_searchable-select-D6Qsd47Z.js": {
620
+ "file": "assets/searchable-select-D6Qsd47Z.js",
621
  "name": "searchable-select",
622
  "imports": [
623
  "index.html",
624
+ "_button-D3YZ2fyV.js",
625
+ "_popover-BFaNN2oM.js",
626
+ "_dialog-Wuv1Mb7q.js",
627
+ "_search-D6MzDlxw.js",
628
+ "_loader-circle-D52ezBbD.js"
629
  ]
630
  },
631
+ "_share-2-6MRpEA8D.js": {
632
+ "file": "assets/share-2-6MRpEA8D.js",
633
  "name": "share-2",
634
  "imports": [
635
  "index.html"
636
  ]
637
  },
638
+ "_skeleton-Co0D0sKS.js": {
639
+ "file": "assets/skeleton-Co0D0sKS.js",
640
  "name": "skeleton",
641
  "imports": [
642
  "index.html"
 
646
  "file": "assets/slug-BpH-Nkvz.js",
647
  "name": "slug"
648
  },
649
+ "_submissions-Ddtxe-7g.js": {
650
+ "file": "assets/submissions-Ddtxe-7g.js",
651
  "name": "submissions",
652
  "imports": [
653
  "index.html"
654
  ]
655
  },
656
+ "_switch-YFyOAE0-.js": {
657
+ "file": "assets/switch-YFyOAE0-.js",
658
  "name": "switch",
659
  "imports": [
660
  "index.html",
661
+ "_index-4rRR7FSk.js"
662
+ ]
663
+ },
664
+ "_tabs-CisePgtg.js": {
665
+ "file": "assets/tabs-CisePgtg.js",
666
+ "name": "tabs",
667
+ "imports": [
668
+ "index.html"
669
  ]
670
  },
671
+ "_taskIcons-Cie5gHYA.js": {
672
+ "file": "assets/taskIcons-Cie5gHYA.js",
673
  "name": "taskIcons",
674
  "imports": [
675
  "index.html",
676
+ "_search-D6MzDlxw.js",
677
+ "_triangle-alert-D-HRclph.js",
678
+ "_share-2-6MRpEA8D.js",
679
+ "_trending-up-DfsExUmr.js",
680
+ "_moon-9co7u-sZ.js",
681
+ "_thumbs-up-O9YhH8YG.js",
682
+ "_database-a8bVJz-T.js",
683
+ "_link-2-BVao7-2t.js",
684
+ "_trophy-BMD8z3-h.js",
685
+ "_file-text-DygGjiFE.js",
686
+ "_activity-CMRWXS32.js",
687
+ "_globe-C8su8imU.js"
688
+ ]
689
+ },
690
+ "_textarea-BswxiqHc.js": {
691
+ "file": "assets/textarea-BswxiqHc.js",
692
  "name": "textarea",
693
  "imports": [
694
  "index.html"
695
  ]
696
  },
697
+ "_thumbs-up-O9YhH8YG.js": {
698
+ "file": "assets/thumbs-up-O9YhH8YG.js",
699
  "name": "thumbs-up",
700
  "imports": [
701
  "index.html"
702
  ]
703
  },
704
+ "_transform-CZk96jj7.js": {
705
+ "file": "assets/transform-CZk96jj7.js",
706
  "name": "transform",
707
  "imports": [
708
  "index.html"
709
  ]
710
  },
711
+ "_trash-2-BXFf5wi-.js": {
712
+ "file": "assets/trash-2-BXFf5wi-.js",
713
  "name": "trash-2",
714
  "imports": [
715
  "index.html"
716
  ]
717
  },
718
+ "_trending-up-DfsExUmr.js": {
719
+ "file": "assets/trending-up-DfsExUmr.js",
720
  "name": "trending-up",
721
  "imports": [
722
  "index.html"
723
  ]
724
  },
725
+ "_triangle-alert-D-HRclph.js": {
726
+ "file": "assets/triangle-alert-D-HRclph.js",
727
  "name": "triangle-alert",
728
  "imports": [
729
  "index.html"
730
  ]
731
  },
732
+ "_trophy-BMD8z3-h.js": {
733
+ "file": "assets/trophy-BMD8z3-h.js",
734
  "name": "trophy",
735
  "imports": [
736
  "index.html"
737
  ]
738
  },
739
+ "_undo-2-Cs5_pAds.js": {
740
+ "file": "assets/undo-2-Cs5_pAds.js",
741
  "name": "undo-2",
742
  "imports": [
743
  "index.html"
744
  ]
745
  },
746
+ "_useDebounce-WuCmYjd8.js": {
747
+ "file": "assets/useDebounce-WuCmYjd8.js",
748
  "name": "useDebounce",
749
  "imports": [
750
  "index.html"
751
  ]
752
  },
753
+ "_useDocumentTitle-BkdH1nHb.js": {
754
+ "file": "assets/useDocumentTitle-BkdH1nHb.js",
755
  "name": "useDocumentTitle",
756
  "imports": [
757
  "index.html"
758
  ]
759
  },
760
+ "_useHashScrollOnReady-BpogQh8y.js": {
761
+ "file": "assets/useHashScrollOnReady-BpogQh8y.js",
762
  "name": "useHashScrollOnReady",
763
  "imports": [
764
  "index.html",
765
+ "_skeleton-Co0D0sKS.js",
766
+ "_alert-Ccdfz8nH.js",
767
+ "_trending-up-DfsExUmr.js"
768
  ]
769
  },
770
+ "_useInfiniteQuery-YJbg_oLc.js": {
771
+ "file": "assets/useInfiniteQuery-YJbg_oLc.js",
772
  "name": "useInfiniteQuery",
773
  "imports": [
774
  "index.html"
775
  ]
776
  },
777
+ "_useIntersectionObserver-BY6KvlsB.js": {
778
+ "file": "assets/useIntersectionObserver-BY6KvlsB.js",
779
  "name": "useIntersectionObserver",
780
  "imports": [
781
  "index.html"
782
  ]
783
  },
784
+ "_useMutation-s01kVLYP.js": {
785
+ "file": "assets/useMutation-s01kVLYP.js",
786
  "name": "useMutation",
787
  "imports": [
788
  "index.html"
789
  ]
790
  },
791
+ "_usePapers-DhjAXi7Z.js": {
792
+ "file": "assets/usePapers-DhjAXi7Z.js",
793
  "name": "usePapers",
794
  "imports": [
795
  "index.html",
796
+ "_PaperCard-VdH8pI7u.js",
797
+ "_popover-BFaNN2oM.js",
798
+ "_Icon-DqGTBJZ9.js",
799
+ "_skeleton-Co0D0sKS.js",
800
+ "_useIntersectionObserver-BY6KvlsB.js",
801
+ "_useInfiniteQuery-YJbg_oLc.js"
802
  ]
803
  },
804
+ "_useQueries-HHJZtX0R.js": {
805
+ "file": "assets/useQueries-HHJZtX0R.js",
806
  "name": "useQueries",
807
  "imports": [
808
  "index.html"
809
  ]
810
  },
811
  "index.html": {
812
+ "file": "assets/index-DqiWSKRu.js",
813
  "name": "index",
814
  "src": "index.html",
815
  "isEntry": true,
 
855
  "src/views/StagingAccessRequestView.tsx"
856
  ],
857
  "css": [
858
+ "assets/index-DIPUnXYA.css"
859
  ],
860
  "assets": [
861
  "assets/inter-normal-latin-Dx4kXJAl.woff2",
 
1201
  "src": "src/assets/fonts/newsreader-normal-vietnamese.woff2"
1202
  },
1203
  "src/components/MathMarkdownText.tsx": {
1204
+ "file": "assets/MathMarkdownText-D7CxppIF.js",
1205
  "name": "MathMarkdownText",
1206
  "src": "src/components/MathMarkdownText.tsx",
1207
  "isDynamicEntry": true,
1208
  "imports": [
1209
  "index.html",
1210
+ "_MarkdownText-DxIZLXr2.js",
1211
+ "_index-DsUVuYlH.js",
1212
+ "_PaperPreviewLink-Cn8gltdd.js",
1213
+ "_index-DsTRem-i.js",
1214
+ "_index-2X5IY5Iu.js",
1215
+ "_hover-card-BPFTusQQ.js",
1216
+ "_useMutation-s01kVLYP.js",
1217
  "node_modules/katex/dist/katex.mjs"
1218
  ],
1219
  "css": [
 
1282
  ]
1283
  },
1284
  "src/components/SearchOverlay.tsx": {
1285
+ "file": "assets/SearchOverlay-UtTIurHH.js",
1286
  "name": "SearchOverlay",
1287
  "src": "src/components/SearchOverlay.tsx",
1288
  "isDynamicEntry": true,
1289
  "imports": [
1290
  "index.html",
1291
+ "_LatexTitle-CKwsnD2Q.js",
1292
+ "_useDebounce-WuCmYjd8.js",
1293
  "_colors-BkWRhvFI.js",
1294
+ "_transform-CZk96jj7.js"
1295
  ]
1296
  },
1297
  "src/pages/AutonomousOperations.tsx": {
1298
+ "file": "assets/AutonomousOperations-CcI_H7-U.js",
1299
  "name": "AutonomousOperations",
1300
  "src": "src/pages/AutonomousOperations.tsx",
1301
  "isDynamicEntry": true,
1302
  "imports": [
1303
  "index.html",
1304
+ "_useMutation-s01kVLYP.js",
1305
+ "_CronDashboard-BW4JZfWT.js",
1306
+ "_badge-CpkuJKw3.js",
1307
+ "_button-D3YZ2fyV.js",
1308
+ "_input-DiH0Y4eI.js",
1309
+ "_activity-CMRWXS32.js",
1310
+ "_arrow-left-AHGVlBpG.js"
1311
  ]
1312
  },
1313
  "src/pages/CronDashboard.tsx": {
1314
+ "file": "assets/CronDashboard-aoQzJHeN.js",
1315
  "name": "CronDashboard",
1316
  "src": "src/pages/CronDashboard.tsx",
1317
  "isDynamicEntry": true,
1318
  "imports": [
1319
  "index.html",
1320
+ "_useMutation-s01kVLYP.js",
1321
+ "_CronDashboard-BW4JZfWT.js",
1322
+ "_badge-CpkuJKw3.js",
1323
+ "_button-D3YZ2fyV.js",
1324
+ "_tabs-CisePgtg.js",
1325
+ "_chevron-up-CyF8Y8AT.js",
1326
+ "_database-a8bVJz-T.js",
1327
+ "_trending-up-DfsExUmr.js",
1328
+ "_activity-CMRWXS32.js",
1329
+ "_file-text-DygGjiFE.js",
1330
+ "_triangle-alert-D-HRclph.js",
1331
+ "_external-link-CRXcmpbR.js",
1332
+ "_refresh-cw-STXy0C1a.js",
1333
+ "_loader-circle-D52ezBbD.js",
1334
+ "_circle-check-BLQIDlmi.js",
1335
+ "_useInfiniteQuery-YJbg_oLc.js",
1336
+ "_chat-4qtVsasI.js"
1337
  ]
1338
  },
1339
  "src/pages/NotFound.tsx": {
1340
+ "file": "assets/NotFound-Dscbr324.js",
1341
  "name": "NotFound",
1342
  "src": "src/pages/NotFound.tsx",
1343
  "isDynamicEntry": true,
 
1346
  ]
1347
  },
1348
  "src/pages/SubmissionsDashboard.tsx": {
1349
+ "file": "assets/SubmissionsDashboard-Bi97fG4V.js",
1350
  "name": "SubmissionsDashboard",
1351
  "src": "src/pages/SubmissionsDashboard.tsx",
1352
  "isDynamicEntry": true,
1353
  "imports": [
1354
  "index.html",
1355
+ "_cacheSync-DdcXqD8L.js",
1356
+ "_useMutation-s01kVLYP.js",
1357
+ "_useInfiniteQuery-YJbg_oLc.js",
1358
+ "_useQueries-HHJZtX0R.js",
1359
  "_safeExternalHref-CkBrsh84.js",
1360
+ "_submissions-Ddtxe-7g.js",
1361
+ "_refresh-cw-STXy0C1a.js",
1362
+ "_loader-circle-D52ezBbD.js",
1363
+ "_circle-check-BLQIDlmi.js",
1364
+ "_undo-2-Cs5_pAds.js"
1365
  ],
1366
  "css": [
1367
  "assets/SubmissionsDashboard-Dgd_CI1v.css"
1368
  ]
1369
  },
1370
  "src/views/AiDeadlinesView.tsx": {
1371
+ "file": "assets/AiDeadlinesView-DsBSDIOp.js",
1372
  "name": "AiDeadlinesView",
1373
  "src": "src/views/AiDeadlinesView.tsx",
1374
  "isDynamicEntry": true,
1375
  "imports": [
1376
  "index.html",
1377
+ "_switch-YFyOAE0-.js",
1378
+ "_skeleton-Co0D0sKS.js",
1379
+ "_alert-Ccdfz8nH.js",
1380
  "_safeExternalHref-CkBrsh84.js",
1381
+ "_dialog-Wuv1Mb7q.js",
1382
  "_deadlines-BG5SWwEG.js",
1383
+ "_useDocumentTitle-BkdH1nHb.js",
1384
+ "_pageTitles-A2o-JnLx.js",
1385
+ "_index-4rRR7FSk.js"
1386
  ]
1387
  },
1388
  "src/views/ApiDocsView.tsx": {
1389
+ "file": "assets/ApiDocsView-wg6yIkGv.js",
1390
  "name": "ApiDocsView",
1391
  "src": "src/views/ApiDocsView.tsx",
1392
  "isDynamicEntry": true,
1393
  "imports": [
1394
  "index.html",
1395
+ "_useDocumentTitle-BkdH1nHb.js",
1396
+ "_trophy-BMD8z3-h.js",
1397
+ "_database-a8bVJz-T.js",
1398
+ "_file-text-DygGjiFE.js",
1399
+ "_index-DsTRem-i.js"
1400
  ],
1401
  "css": [
1402
  "assets/ApiDocsView-D5oxGRv8.css"
1403
  ]
1404
  },
1405
  "src/views/AstraForRoboticsView.tsx": {
1406
+ "file": "assets/AstraForRoboticsView-DKkvKvD9.js",
1407
  "name": "AstraForRoboticsView",
1408
  "src": "src/views/AstraForRoboticsView.tsx",
1409
  "isDynamicEntry": true,
1410
  "imports": [
1411
  "index.html",
1412
+ "_usePapers-DhjAXi7Z.js",
1413
+ "_alert-Ccdfz8nH.js",
1414
+ "_useDocumentTitle-BkdH1nHb.js",
1415
+ "_transform-CZk96jj7.js",
1416
+ "_PaperCard-VdH8pI7u.js",
1417
+ "_AuthorAvatar-BjZbMuV8.js",
1418
+ "_SotaBadges-DiZSUF6s.js",
1419
  "_colors-BkWRhvFI.js",
1420
+ "_Icon-DqGTBJZ9.js",
1421
+ "_LatexTitle-CKwsnD2Q.js",
1422
  "_safeExternalHref-CkBrsh84.js",
1423
+ "_popover-BFaNN2oM.js",
1424
+ "_skeleton-Co0D0sKS.js",
1425
+ "_useIntersectionObserver-BY6KvlsB.js",
1426
+ "_useInfiniteQuery-YJbg_oLc.js"
1427
  ],
1428
  "css": [
1429
  "assets/AstraForRoboticsView-C_lTF_XB.css"
1430
  ]
1431
  },
1432
  "src/views/AuthorDetailView.tsx": {
1433
+ "file": "assets/AuthorDetailView-pQ7SiOfG.js",
1434
  "name": "AuthorDetailView",
1435
  "src": "src/views/AuthorDetailView.tsx",
1436
  "isDynamicEntry": true,
1437
  "imports": [
1438
  "index.html",
1439
+ "_AuthorAvatar-BjZbMuV8.js",
1440
+ "_usePapers-DhjAXi7Z.js",
1441
+ "_ResearchFollowButton-Buglf0cW.js",
1442
+ "_alert-Ccdfz8nH.js",
1443
+ "_skeleton-Co0D0sKS.js",
1444
+ "_transform-CZk96jj7.js",
1445
  "src/pages/NotFound.tsx",
1446
+ "_useDocumentTitle-BkdH1nHb.js",
1447
+ "_pageTitles-A2o-JnLx.js",
1448
+ "_PaperCard-VdH8pI7u.js",
1449
+ "_SotaBadges-DiZSUF6s.js",
1450
  "_colors-BkWRhvFI.js",
1451
+ "_Icon-DqGTBJZ9.js",
1452
+ "_LatexTitle-CKwsnD2Q.js",
1453
  "_safeExternalHref-CkBrsh84.js",
1454
+ "_popover-BFaNN2oM.js",
1455
+ "_useIntersectionObserver-BY6KvlsB.js",
1456
+ "_useInfiniteQuery-YJbg_oLc.js",
1457
+ "_researchTopic-CoMNa-1c.js",
1458
+ "_useMutation-s01kVLYP.js",
1459
+ "_plus-DSNQa55K.js"
1460
  ]
1461
  },
1462
  "src/views/AuthorizePaperEditView.tsx": {
1463
+ "file": "assets/AuthorizePaperEditView-BDHCnZXe.js",
1464
  "name": "AuthorizePaperEditView",
1465
  "src": "src/views/AuthorizePaperEditView.tsx",
1466
  "isDynamicEntry": true,
1467
  "imports": [
1468
  "index.html",
1469
+ "_useMutation-s01kVLYP.js",
1470
+ "_button-D3YZ2fyV.js"
1471
  ]
1472
  },
1473
  "src/views/BenchmarkDetailView.tsx": {
1474
+ "file": "assets/BenchmarkDetailView-lho6oAUw.js",
1475
  "name": "BenchmarkDetailView",
1476
  "src": "src/views/BenchmarkDetailView.tsx",
1477
  "isDynamicEntry": true,
1478
  "imports": [
1479
  "index.html",
1480
+ "_ResearchFollowButton-Buglf0cW.js",
1481
+ "_preferences-GewRyOaP.js",
1482
+ "_LatexTitle-CKwsnD2Q.js",
1483
+ "_ExternalSourceEvalBadge-CDxpNEEw.js",
1484
+ "_switch-YFyOAE0-.js",
1485
+ "_Icon-DqGTBJZ9.js",
1486
+ "_skeleton-Co0D0sKS.js",
1487
+ "_BenchmarkTrendSparkline-FNGhTOi0.js",
1488
  "_safeExternalHref-CkBrsh84.js",
1489
  "_slug-BpH-Nkvz.js",
1490
  "src/pages/NotFound.tsx",
1491
+ "_LoadFailurePage-CyeoE8bL.js",
1492
+ "_useDocumentTitle-BkdH1nHb.js",
1493
+ "_pageTitles-A2o-JnLx.js",
1494
+ "_researchTopic-CoMNa-1c.js",
1495
+ "_useMutation-s01kVLYP.js",
1496
+ "_plus-DSNQa55K.js",
1497
+ "_hover-card-BPFTusQQ.js",
1498
+ "_index-4rRR7FSk.js",
1499
+ "_alert-Ccdfz8nH.js"
1500
  ],
1501
  "css": [
1502
  "assets/BenchmarkDetailView-CXxK75GR.css"
1503
  ]
1504
  },
1505
  "src/views/ChatView.tsx": {
1506
+ "file": "assets/ChatView-WlFZxtHx.js",
1507
  "name": "ChatView",
1508
  "src": "src/views/ChatView.tsx",
1509
  "isDynamicEntry": true,
1510
  "imports": [
1511
  "index.html",
1512
+ "_chatLifecycle-C-gatgua.js",
1513
+ "_index-CV2RBjLM.js",
1514
+ "_chat-4qtVsasI.js",
1515
+ "_McpShowcase-2nbI0Yx2.js",
1516
+ "_share-2-6MRpEA8D.js",
1517
+ "_useMutation-s01kVLYP.js",
1518
+ "_Icon-DqGTBJZ9.js",
1519
+ "_mlIntern-DECSlKey.js",
1520
+ "_openrouter-BQoIPEIl.js",
1521
+ "_hover-card-BPFTusQQ.js",
1522
+ "_CatalogEntityPreviewLink-Cz-PGV0F.js",
1523
+ "_github-DR_xiUHp.js",
1524
+ "_file-text-DygGjiFE.js",
1525
+ "_PaperPreviewLink-Cn8gltdd.js",
1526
+ "_index-DsTRem-i.js",
1527
+ "_index-2X5IY5Iu.js",
1528
+ "_index-DsUVuYlH.js",
1529
  "node_modules/katex/dist/katex.mjs",
1530
+ "_thumbs-up-O9YhH8YG.js",
1531
+ "_copy-Csr_C_Aq.js",
1532
+ "_arrow-left-AHGVlBpG.js",
1533
+ "_external-link-CRXcmpbR.js",
1534
+ "_plus-DSNQa55K.js",
1535
+ "_search-D6MzDlxw.js",
1536
+ "_chevron-up-CyF8Y8AT.js",
1537
+ "_AuthorAvatar-BjZbMuV8.js",
1538
+ "_trash-2-BXFf5wi-.js",
1539
+ "_AgentLogos-C8ZXxWoe.js"
1540
  ],
1541
  "css": [
1542
  "assets/katex-wklAmtGL.css"
 
1604
  ]
1605
  },
1606
  "src/views/ConferenceDetailView.tsx": {
1607
+ "file": "assets/ConferenceDetailView-COjc0vVe.js",
1608
  "name": "ConferenceDetailView",
1609
  "src": "src/views/ConferenceDetailView.tsx",
1610
  "isDynamicEntry": true,
1611
  "imports": [
1612
  "index.html",
1613
+ "_AreaSection-uCYjp549.js",
1614
+ "_MarkdownText-DxIZLXr2.js",
1615
  "_areas-Dvi8w2dp.js",
1616
  "_colors-BkWRhvFI.js",
1617
  "_conferenceListings-BnmhBx-_.js",
1618
  "_deadlines-BG5SWwEG.js",
1619
+ "_transform-CZk96jj7.js",
1620
+ "_skeleton-Co0D0sKS.js",
1621
  "_safeExternalHref-CkBrsh84.js",
1622
+ "_LoadFailurePage-CyeoE8bL.js",
1623
+ "_useDocumentTitle-BkdH1nHb.js",
1624
+ "_pageTitles-A2o-JnLx.js",
1625
+ "_PaperPreviewLink-Cn8gltdd.js",
1626
+ "_index-DsTRem-i.js",
1627
+ "_index-2X5IY5Iu.js",
1628
+ "_hover-card-BPFTusQQ.js",
1629
+ "_useMutation-s01kVLYP.js",
1630
+ "_alert-Ccdfz8nH.js",
1631
  "src/pages/NotFound.tsx"
1632
  ]
1633
  },
1634
  "src/views/ConferenceTaskView.tsx": {
1635
+ "file": "assets/ConferenceTaskView-djYm1oC1.js",
1636
  "name": "ConferenceTaskView",
1637
  "src": "src/views/ConferenceTaskView.tsx",
1638
  "isDynamicEntry": true,
1639
  "imports": [
1640
  "index.html",
1641
+ "_usePapers-DhjAXi7Z.js",
1642
+ "_MarkdownText-DxIZLXr2.js",
1643
  "_conferenceListings-BnmhBx-_.js",
1644
+ "_transform-CZk96jj7.js",
1645
+ "_LoadFailurePage-CyeoE8bL.js",
1646
+ "_PaperCard-VdH8pI7u.js",
1647
+ "_AuthorAvatar-BjZbMuV8.js",
1648
+ "_SotaBadges-DiZSUF6s.js",
1649
  "_colors-BkWRhvFI.js",
1650
+ "_Icon-DqGTBJZ9.js",
1651
+ "_LatexTitle-CKwsnD2Q.js",
1652
  "_safeExternalHref-CkBrsh84.js",
1653
+ "_popover-BFaNN2oM.js",
1654
+ "_skeleton-Co0D0sKS.js",
1655
+ "_useIntersectionObserver-BY6KvlsB.js",
1656
+ "_useInfiniteQuery-YJbg_oLc.js",
1657
+ "_PaperPreviewLink-Cn8gltdd.js",
1658
+ "_index-DsTRem-i.js",
1659
+ "_index-2X5IY5Iu.js",
1660
+ "_hover-card-BPFTusQQ.js",
1661
+ "_useMutation-s01kVLYP.js",
1662
+ "_alert-Ccdfz8nH.js",
1663
  "src/pages/NotFound.tsx"
1664
  ]
1665
  },
1666
  "src/views/ConferencesIndexView.tsx": {
1667
+ "file": "assets/ConferencesIndexView-D1jA1Rdx.js",
1668
  "name": "ConferencesIndexView",
1669
  "src": "src/views/ConferencesIndexView.tsx",
1670
  "isDynamicEntry": true,
1671
  "imports": [
1672
  "index.html",
1673
  "_deadlines-BG5SWwEG.js",
1674
+ "_alert-Ccdfz8nH.js",
1675
+ "_AreaSection-uCYjp549.js",
1676
+ "_TaxonomySuggestionTile-BidHQCms.js",
1677
+ "_useDocumentTitle-BkdH1nHb.js",
1678
+ "_pageTitles-A2o-JnLx.js",
1679
+ "_skeleton-Co0D0sKS.js",
1680
+ "_SignInToEditDialog-Bz47-2P3.js",
1681
+ "_button-D3YZ2fyV.js",
1682
+ "_input-DiH0Y4eI.js",
1683
+ "_textarea-BswxiqHc.js",
1684
+ "_searchable-select-D6Qsd47Z.js",
1685
+ "_popover-BFaNN2oM.js",
1686
+ "_dialog-Wuv1Mb7q.js",
1687
+ "_search-D6MzDlxw.js",
1688
+ "_loader-circle-D52ezBbD.js",
1689
+ "_useMutation-s01kVLYP.js",
1690
+ "_submissions-Ddtxe-7g.js",
1691
+ "_cacheSync-DdcXqD8L.js",
1692
+ "_plus-DSNQa55K.js"
1693
  ]
1694
  },
1695
  "src/views/FeedView.tsx": {
1696
+ "file": "assets/FeedView-DR3f1Ub6.js",
1697
  "name": "FeedView",
1698
  "src": "src/views/FeedView.tsx",
1699
  "isDynamicEntry": true,
1700
  "imports": [
1701
  "index.html",
1702
+ "_taskIcons-Cie5gHYA.js",
1703
+ "_researchTopic-CoMNa-1c.js",
1704
+ "_plus-DSNQa55K.js",
1705
+ "_arrow-right-D_glSYCT.js",
1706
+ "_index-CV2RBjLM.js",
1707
+ "_dialog-Wuv1Mb7q.js",
1708
+ "_switch-YFyOAE0-.js",
1709
+ "_tabs-CisePgtg.js",
1710
+ "_useDebounce-WuCmYjd8.js",
1711
+ "_transform-CZk96jj7.js",
1712
+ "_trash-2-BXFf5wi-.js",
1713
+ "_undo-2-Cs5_pAds.js",
1714
+ "_arrow-up-right-DW8s8d6m.js",
1715
  "_colors-BkWRhvFI.js",
1716
+ "_usePapers-DhjAXi7Z.js",
1717
+ "_McpShowcase-2nbI0Yx2.js",
1718
+ "_chat-4qtVsasI.js",
1719
+ "_skeleton-Co0D0sKS.js",
1720
+ "_alert-Ccdfz8nH.js",
1721
+ "_useDocumentTitle-BkdH1nHb.js",
1722
+ "_pageTitles-A2o-JnLx.js",
1723
+ "_search-D6MzDlxw.js",
1724
+ "_triangle-alert-D-HRclph.js",
1725
+ "_share-2-6MRpEA8D.js",
1726
+ "_trending-up-DfsExUmr.js",
1727
+ "_moon-9co7u-sZ.js",
1728
+ "_thumbs-up-O9YhH8YG.js",
1729
+ "_database-a8bVJz-T.js",
1730
+ "_link-2-BVao7-2t.js",
1731
+ "_trophy-BMD8z3-h.js",
1732
+ "_file-text-DygGjiFE.js",
1733
+ "_activity-CMRWXS32.js",
1734
+ "_globe-C8su8imU.js",
1735
+ "_useMutation-s01kVLYP.js",
1736
+ "_index-4rRR7FSk.js",
1737
+ "_PaperCard-VdH8pI7u.js",
1738
+ "_AuthorAvatar-BjZbMuV8.js",
1739
+ "_SotaBadges-DiZSUF6s.js",
1740
+ "_Icon-DqGTBJZ9.js",
1741
+ "_LatexTitle-CKwsnD2Q.js",
1742
  "_safeExternalHref-CkBrsh84.js",
1743
+ "_popover-BFaNN2oM.js",
1744
+ "_useIntersectionObserver-BY6KvlsB.js",
1745
+ "_useInfiniteQuery-YJbg_oLc.js",
1746
+ "_AgentLogos-C8ZXxWoe.js"
1747
  ]
1748
  },
1749
  "src/views/FollowingView.tsx": {
1750
+ "file": "assets/FollowingView-D3KIcKQr.js",
1751
  "name": "FollowingView",
1752
  "src": "src/views/FollowingView.tsx",
1753
  "isDynamicEntry": true,
1754
  "imports": [
1755
  "index.html",
1756
  "src/views/FeedView.tsx",
1757
+ "_taskIcons-Cie5gHYA.js",
1758
+ "_search-D6MzDlxw.js",
1759
+ "_triangle-alert-D-HRclph.js",
1760
+ "_share-2-6MRpEA8D.js",
1761
+ "_trending-up-DfsExUmr.js",
1762
+ "_moon-9co7u-sZ.js",
1763
+ "_thumbs-up-O9YhH8YG.js",
1764
+ "_database-a8bVJz-T.js",
1765
+ "_link-2-BVao7-2t.js",
1766
+ "_trophy-BMD8z3-h.js",
1767
+ "_file-text-DygGjiFE.js",
1768
+ "_activity-CMRWXS32.js",
1769
+ "_globe-C8su8imU.js",
1770
+ "_researchTopic-CoMNa-1c.js",
1771
+ "_useMutation-s01kVLYP.js",
1772
+ "_plus-DSNQa55K.js",
1773
+ "_arrow-right-D_glSYCT.js",
1774
+ "_index-CV2RBjLM.js",
1775
+ "_chat-4qtVsasI.js",
1776
+ "_dialog-Wuv1Mb7q.js",
1777
+ "_switch-YFyOAE0-.js",
1778
+ "_index-4rRR7FSk.js",
1779
+ "_tabs-CisePgtg.js",
1780
+ "_useDebounce-WuCmYjd8.js",
1781
+ "_transform-CZk96jj7.js",
1782
+ "_trash-2-BXFf5wi-.js",
1783
+ "_undo-2-Cs5_pAds.js",
1784
+ "_arrow-up-right-DW8s8d6m.js",
1785
  "_colors-BkWRhvFI.js",
1786
+ "_usePapers-DhjAXi7Z.js",
1787
+ "_PaperCard-VdH8pI7u.js",
1788
+ "_AuthorAvatar-BjZbMuV8.js",
1789
+ "_SotaBadges-DiZSUF6s.js",
1790
+ "_Icon-DqGTBJZ9.js",
1791
+ "_LatexTitle-CKwsnD2Q.js",
1792
  "_safeExternalHref-CkBrsh84.js",
1793
+ "_popover-BFaNN2oM.js",
1794
+ "_skeleton-Co0D0sKS.js",
1795
+ "_useIntersectionObserver-BY6KvlsB.js",
1796
+ "_useInfiniteQuery-YJbg_oLc.js",
1797
+ "_McpShowcase-2nbI0Yx2.js",
1798
+ "_AgentLogos-C8ZXxWoe.js",
1799
+ "_alert-Ccdfz8nH.js",
1800
+ "_useDocumentTitle-BkdH1nHb.js",
1801
+ "_pageTitles-A2o-JnLx.js"
1802
  ]
1803
  },
1804
  "src/views/FrameworksIndexView.tsx": {
1805
+ "file": "assets/FrameworksIndexView-wyQa2J3D.js",
1806
  "name": "FrameworksIndexView",
1807
  "src": "src/views/FrameworksIndexView.tsx",
1808
  "isDynamicEntry": true,
1809
  "imports": [
1810
  "index.html",
1811
+ "_Icon-DqGTBJZ9.js",
1812
  "_colors-BkWRhvFI.js",
1813
  "_frameworks-DDA0P4Tf.js",
1814
+ "_useDocumentTitle-BkdH1nHb.js",
1815
+ "_pageTitles-A2o-JnLx.js"
1816
  ]
1817
  },
1818
  "src/views/McpView.tsx": {
1819
+ "file": "assets/McpView-B2bCep7F.js",
1820
  "name": "McpView",
1821
  "src": "src/views/McpView.tsx",
1822
  "isDynamicEntry": true,
1823
  "imports": [
1824
  "index.html",
1825
+ "_useDocumentTitle-BkdH1nHb.js",
1826
+ "_github-DR_xiUHp.js",
1827
+ "_arrow-up-right-DW8s8d6m.js",
1828
+ "_external-link-CRXcmpbR.js",
1829
+ "_copy-Csr_C_Aq.js"
1830
  ],
1831
  "css": [
1832
  "assets/McpView-EGeqkP46.css"
1833
  ]
1834
  },
1835
  "src/views/MethodDetailView.tsx": {
1836
+ "file": "assets/MethodDetailView-BY_sVybJ.js",
1837
  "name": "MethodDetailView",
1838
  "src": "src/views/MethodDetailView.tsx",
1839
  "isDynamicEntry": true,
1840
  "imports": [
1841
  "index.html",
1842
+ "_ResearchFollowButton-Buglf0cW.js",
1843
+ "_SotaBadges-DiZSUF6s.js",
1844
+ "_usePapers-DhjAXi7Z.js",
1845
+ "_MarkdownText-DxIZLXr2.js",
1846
  "_slug-BpH-Nkvz.js",
1847
+ "_transform-CZk96jj7.js",
1848
+ "_skeleton-Co0D0sKS.js",
1849
  "_safeExternalHref-CkBrsh84.js",
1850
  "src/pages/NotFound.tsx",
1851
+ "_LoadFailurePage-CyeoE8bL.js",
1852
+ "_useDocumentTitle-BkdH1nHb.js",
1853
+ "_pageTitles-A2o-JnLx.js",
1854
+ "_researchTopic-CoMNa-1c.js",
1855
+ "_useMutation-s01kVLYP.js",
1856
+ "_plus-DSNQa55K.js",
1857
  "_colors-BkWRhvFI.js",
1858
+ "_PaperCard-VdH8pI7u.js",
1859
+ "_AuthorAvatar-BjZbMuV8.js",
1860
+ "_Icon-DqGTBJZ9.js",
1861
+ "_LatexTitle-CKwsnD2Q.js",
1862
+ "_popover-BFaNN2oM.js",
1863
+ "_useIntersectionObserver-BY6KvlsB.js",
1864
+ "_useInfiniteQuery-YJbg_oLc.js",
1865
+ "_PaperPreviewLink-Cn8gltdd.js",
1866
+ "_index-DsTRem-i.js",
1867
+ "_index-2X5IY5Iu.js",
1868
+ "_hover-card-BPFTusQQ.js",
1869
+ "_alert-Ccdfz8nH.js"
1870
  ]
1871
  },
1872
  "src/views/MethodsIndexView.tsx": {
1873
+ "file": "assets/MethodsIndexView-BbgFBzW6.js",
1874
  "name": "MethodsIndexView",
1875
  "src": "src/views/MethodsIndexView.tsx",
1876
  "isDynamicEntry": true,
 
1878
  "index.html",
1879
  "_areas-Dvi8w2dp.js",
1880
  "_slug-BpH-Nkvz.js",
1881
+ "_alert-Ccdfz8nH.js",
1882
+ "_AreaSection-uCYjp549.js",
1883
+ "_TaxonomySuggestionTile-BidHQCms.js",
1884
+ "_useHashScrollOnReady-BpogQh8y.js",
1885
+ "_useDocumentTitle-BkdH1nHb.js",
1886
+ "_pageTitles-A2o-JnLx.js",
1887
+ "_skeleton-Co0D0sKS.js",
1888
+ "_SignInToEditDialog-Bz47-2P3.js",
1889
+ "_button-D3YZ2fyV.js",
1890
+ "_input-DiH0Y4eI.js",
1891
+ "_textarea-BswxiqHc.js",
1892
+ "_searchable-select-D6Qsd47Z.js",
1893
+ "_popover-BFaNN2oM.js",
1894
+ "_dialog-Wuv1Mb7q.js",
1895
+ "_search-D6MzDlxw.js",
1896
+ "_loader-circle-D52ezBbD.js",
1897
+ "_useMutation-s01kVLYP.js",
1898
+ "_submissions-Ddtxe-7g.js",
1899
+ "_cacheSync-DdcXqD8L.js",
1900
+ "_plus-DSNQa55K.js",
1901
+ "_trending-up-DfsExUmr.js"
1902
  ]
1903
  },
1904
  "src/views/OrganizationDetailView.tsx": {
1905
+ "file": "assets/OrganizationDetailView-C7Aoz1g6.js",
1906
  "name": "OrganizationDetailView",
1907
  "src": "src/views/OrganizationDetailView.tsx",
1908
  "isDynamicEntry": true,
1909
  "imports": [
1910
  "index.html",
1911
+ "_ResearchFollowButton-Buglf0cW.js",
1912
+ "_MarkdownText-DxIZLXr2.js",
1913
+ "_OrganizationContributionGraph-BafN-XpT.js",
1914
+ "_usePapers-DhjAXi7Z.js",
1915
+ "_searchable-select-D6Qsd47Z.js",
1916
+ "_skeleton-Co0D0sKS.js",
1917
+ "_transform-CZk96jj7.js",
1918
  "_organizationNames-BVKzYEBp.js",
1919
  "src/pages/NotFound.tsx",
1920
+ "_LoadFailurePage-CyeoE8bL.js",
1921
+ "_useDocumentTitle-BkdH1nHb.js",
1922
+ "_pageTitles-A2o-JnLx.js",
1923
+ "_researchTopic-CoMNa-1c.js",
1924
+ "_useMutation-s01kVLYP.js",
1925
+ "_plus-DSNQa55K.js",
1926
+ "_PaperPreviewLink-Cn8gltdd.js",
1927
+ "_index-DsTRem-i.js",
1928
+ "_index-2X5IY5Iu.js",
1929
+ "_hover-card-BPFTusQQ.js",
1930
+ "_PaperCard-VdH8pI7u.js",
1931
+ "_AuthorAvatar-BjZbMuV8.js",
1932
+ "_SotaBadges-DiZSUF6s.js",
1933
  "_colors-BkWRhvFI.js",
1934
+ "_Icon-DqGTBJZ9.js",
1935
+ "_LatexTitle-CKwsnD2Q.js",
1936
  "_safeExternalHref-CkBrsh84.js",
1937
+ "_popover-BFaNN2oM.js",
1938
+ "_useIntersectionObserver-BY6KvlsB.js",
1939
+ "_useInfiniteQuery-YJbg_oLc.js",
1940
+ "_button-D3YZ2fyV.js",
1941
+ "_dialog-Wuv1Mb7q.js",
1942
+ "_search-D6MzDlxw.js",
1943
+ "_loader-circle-D52ezBbD.js",
1944
+ "_alert-Ccdfz8nH.js"
1945
  ]
1946
  },
1947
  "src/views/OrganizationsIndexView.tsx": {
1948
+ "file": "assets/OrganizationsIndexView-CdY_6WL6.js",
1949
  "name": "OrganizationsIndexView",
1950
  "src": "src/views/OrganizationsIndexView.tsx",
1951
  "isDynamicEntry": true,
1952
  "imports": [
1953
  "index.html",
1954
+ "_alert-Ccdfz8nH.js",
1955
+ "_useDocumentTitle-BkdH1nHb.js",
1956
+ "_pageTitles-A2o-JnLx.js"
1957
  ],
1958
  "css": [
1959
  "assets/OrganizationsIndexView-CJnrfIkP.css"
1960
  ]
1961
  },
1962
  "src/views/PaperDetailView.tsx": {
1963
+ "file": "assets/PaperDetailView-BcOY-9rS.js",
1964
  "name": "PaperDetailView",
1965
  "src": "src/views/PaperDetailView.tsx",
1966
  "isDynamicEntry": true,
1967
  "imports": [
1968
  "index.html",
1969
+ "_useMutation-s01kVLYP.js",
1970
+ "_Icon-DqGTBJZ9.js",
1971
+ "_SotaBadges-DiZSUF6s.js",
1972
+ "_LatexTitle-CKwsnD2Q.js",
1973
+ "_preferences-GewRyOaP.js",
1974
+ "_transform-CZk96jj7.js",
1975
  "_paperReader-D1y30HyW.js",
1976
+ "_useDocumentTitle-BkdH1nHb.js",
1977
  "_safeExternalHref-CkBrsh84.js",
1978
+ "_mlIntern-DECSlKey.js",
1979
+ "_skeleton-Co0D0sKS.js",
1980
+ "_alert-Ccdfz8nH.js",
1981
+ "_button-D3YZ2fyV.js",
1982
+ "_dialog-Wuv1Mb7q.js",
1983
+ "_AgentLogos-C8ZXxWoe.js",
1984
+ "_copy-Csr_C_Aq.js",
1985
+ "_cacheSync-DdcXqD8L.js",
1986
+ "_input-DiH0Y4eI.js",
1987
+ "_searchable-select-D6Qsd47Z.js",
1988
+ "_loader-circle-D52ezBbD.js",
1989
+ "_trash-2-BXFf5wi-.js",
1990
+ "_SignInToEditDialog-Bz47-2P3.js",
1991
+ "_useQueries-HHJZtX0R.js",
1992
+ "_submissions-Ddtxe-7g.js",
1993
+ "_database-a8bVJz-T.js",
1994
+ "_plus-DSNQa55K.js",
1995
+ "_search-D6MzDlxw.js",
1996
+ "_badge-CpkuJKw3.js",
1997
+ "_CatalogEntityPreviewLink-Cz-PGV0F.js",
1998
+ "_globe-C8su8imU.js",
1999
+ "_github-DR_xiUHp.js",
2000
+ "_index-4rRR7FSk.js",
2001
+ "_ExternalSourceEvalBadge-CDxpNEEw.js",
2002
+ "_index-DsTRem-i.js",
2003
+ "_index-2X5IY5Iu.js",
2004
+ "_useIntersectionObserver-BY6KvlsB.js",
2005
+ "_savedPapersAuth-Chru3ugE.js",
2006
  "_organizationNames-BVKzYEBp.js",
2007
+ "_AuthorAvatar-BjZbMuV8.js",
2008
  "_colors-BkWRhvFI.js",
2009
+ "_popover-BFaNN2oM.js",
2010
+ "_textarea-BswxiqHc.js",
2011
+ "_hover-card-BPFTusQQ.js"
2012
  ],
2013
  "css": [
2014
  "assets/PaperDetailView-DOQP9hzn.css"
2015
  ]
2016
  },
2017
  "src/views/PaperReaderView.tsx": {
2018
+ "file": "assets/PaperReaderView-CyZ3sOmY.js",
2019
  "name": "PaperReaderView",
2020
  "src": "src/views/PaperReaderView.tsx",
2021
  "isDynamicEntry": true,
2022
  "imports": [
2023
  "index.html",
2024
+ "_chatLifecycle-C-gatgua.js",
2025
+ "_MarkdownText-DxIZLXr2.js",
2026
  "_paperReader-D1y30HyW.js",
2027
+ "_chat-4qtVsasI.js",
2028
  "_safeExternalHref-CkBrsh84.js",
2029
  "src/views/ChatView.tsx",
2030
+ "_index-CV2RBjLM.js",
2031
+ "_hover-card-BPFTusQQ.js",
2032
+ "_CatalogEntityPreviewLink-Cz-PGV0F.js",
2033
+ "_github-DR_xiUHp.js",
2034
+ "_file-text-DygGjiFE.js",
2035
+ "_PaperPreviewLink-Cn8gltdd.js",
2036
+ "_index-DsTRem-i.js",
2037
+ "_index-2X5IY5Iu.js",
2038
+ "_useMutation-s01kVLYP.js",
2039
+ "_index-DsUVuYlH.js",
2040
  "node_modules/katex/dist/katex.mjs",
2041
+ "_thumbs-up-O9YhH8YG.js",
2042
+ "_copy-Csr_C_Aq.js",
2043
+ "_arrow-left-AHGVlBpG.js",
2044
+ "_external-link-CRXcmpbR.js",
2045
+ "_plus-DSNQa55K.js",
2046
+ "_search-D6MzDlxw.js",
2047
+ "_chevron-up-CyF8Y8AT.js",
2048
+ "_AuthorAvatar-BjZbMuV8.js",
2049
+ "_trash-2-BXFf5wi-.js",
2050
+ "_McpShowcase-2nbI0Yx2.js",
2051
+ "_AgentLogos-C8ZXxWoe.js",
2052
+ "_share-2-6MRpEA8D.js",
2053
+ "_Icon-DqGTBJZ9.js",
2054
+ "_mlIntern-DECSlKey.js",
2055
+ "_openrouter-BQoIPEIl.js"
2056
  ],
2057
  "css": [
2058
  "assets/katex-wklAmtGL.css"
 
2120
  ]
2121
  },
2122
  "src/views/PapersListView.tsx": {
2123
+ "file": "assets/PapersListView-CL7-i5R7.js",
2124
  "name": "PapersListView",
2125
  "src": "src/views/PapersListView.tsx",
2126
  "isDynamicEntry": true,
2127
  "imports": [
2128
  "index.html",
2129
+ "_SotaBadges-DiZSUF6s.js",
2130
+ "_Icon-DqGTBJZ9.js",
2131
+ "_usePapers-DhjAXi7Z.js",
2132
+ "_transform-CZk96jj7.js",
2133
+ "_useDebounce-WuCmYjd8.js",
2134
+ "_skeleton-Co0D0sKS.js",
2135
+ "_alert-Ccdfz8nH.js",
2136
  "_frameworks-DDA0P4Tf.js",
2137
+ "_useDocumentTitle-BkdH1nHb.js",
2138
+ "_pageTitles-A2o-JnLx.js",
2139
  "_colors-BkWRhvFI.js",
2140
+ "_PaperCard-VdH8pI7u.js",
2141
+ "_AuthorAvatar-BjZbMuV8.js",
2142
+ "_LatexTitle-CKwsnD2Q.js",
2143
  "_safeExternalHref-CkBrsh84.js",
2144
+ "_popover-BFaNN2oM.js",
2145
+ "_useIntersectionObserver-BY6KvlsB.js",
2146
+ "_useInfiniteQuery-YJbg_oLc.js"
2147
  ]
2148
  },
2149
  "src/views/PrivacyView.tsx": {
2150
+ "file": "assets/PrivacyView-Bu693H9G.js",
2151
  "name": "PrivacyView",
2152
  "src": "src/views/PrivacyView.tsx",
2153
  "isDynamicEntry": true,
2154
  "imports": [
2155
  "index.html",
2156
+ "_useDocumentTitle-BkdH1nHb.js"
2157
  ]
2158
  },
2159
  "src/views/RateLimitsView.tsx": {
2160
+ "file": "assets/RateLimitsView-C5gtoPFL.js",
2161
  "name": "RateLimitsView",
2162
  "src": "src/views/RateLimitsView.tsx",
2163
  "isDynamicEntry": true,
 
2166
  ]
2167
  },
2168
  "src/views/SavedPapersView.tsx": {
2169
+ "file": "assets/SavedPapersView-DD8RGVMV.js",
2170
  "name": "SavedPapersView",
2171
  "src": "src/views/SavedPapersView.tsx",
2172
  "isDynamicEntry": true,
2173
  "imports": [
2174
  "index.html",
2175
+ "_PaperCard-VdH8pI7u.js",
2176
+ "_SotaBadges-DiZSUF6s.js",
2177
+ "_skeleton-Co0D0sKS.js",
2178
+ "_alert-Ccdfz8nH.js",
2179
+ "_transform-CZk96jj7.js",
2180
+ "_savedPapersAuth-Chru3ugE.js",
2181
+ "_AuthorAvatar-BjZbMuV8.js",
2182
+ "_Icon-DqGTBJZ9.js",
2183
+ "_LatexTitle-CKwsnD2Q.js",
2184
  "_safeExternalHref-CkBrsh84.js",
2185
  "_colors-BkWRhvFI.js"
2186
  ]
2187
  },
2188
  "src/views/SettingsView.tsx": {
2189
+ "file": "assets/SettingsView-8zv9hUE9.js",
2190
  "name": "SettingsView",
2191
  "src": "src/views/SettingsView.tsx",
2192
  "isDynamicEntry": true,
2193
  "imports": [
2194
  "index.html",
2195
+ "_useMutation-s01kVLYP.js",
2196
+ "_researchTopic-CoMNa-1c.js",
2197
+ "_switch-YFyOAE0-.js",
2198
+ "_arrow-right-D_glSYCT.js",
2199
+ "_chat-4qtVsasI.js",
2200
+ "_useDocumentTitle-BkdH1nHb.js",
2201
+ "_openrouter-BQoIPEIl.js",
2202
+ "_preferences-GewRyOaP.js",
2203
+ "_external-link-CRXcmpbR.js",
2204
+ "_moon-9co7u-sZ.js",
2205
+ "_index-4rRR7FSk.js"
2206
  ]
2207
  },
2208
  "src/views/SharedChatView.tsx": {
2209
+ "file": "assets/SharedChatView-BpJ0IyBN.js",
2210
  "name": "SharedChatView",
2211
  "src": "src/views/SharedChatView.tsx",
2212
  "isDynamicEntry": true,
2213
  "imports": [
2214
  "index.html",
2215
+ "_chatLifecycle-C-gatgua.js",
2216
+ "_index-CV2RBjLM.js",
2217
+ "_chat-4qtVsasI.js",
2218
+ "_hover-card-BPFTusQQ.js",
2219
+ "_CatalogEntityPreviewLink-Cz-PGV0F.js",
2220
+ "_github-DR_xiUHp.js",
2221
+ "_file-text-DygGjiFE.js",
2222
+ "_PaperPreviewLink-Cn8gltdd.js",
2223
+ "_index-DsTRem-i.js",
2224
+ "_index-2X5IY5Iu.js",
2225
+ "_useMutation-s01kVLYP.js",
2226
+ "_index-DsUVuYlH.js",
2227
  "node_modules/katex/dist/katex.mjs",
2228
+ "_thumbs-up-O9YhH8YG.js",
2229
+ "_copy-Csr_C_Aq.js",
2230
+ "_arrow-left-AHGVlBpG.js",
2231
+ "_external-link-CRXcmpbR.js",
2232
+ "_plus-DSNQa55K.js",
2233
+ "_search-D6MzDlxw.js",
2234
+ "_chevron-up-CyF8Y8AT.js",
2235
+ "_AuthorAvatar-BjZbMuV8.js",
2236
+ "_trash-2-BXFf5wi-.js"
2237
  ],
2238
  "css": [
2239
  "assets/katex-wklAmtGL.css"
 
2301
  ]
2302
  },
2303
  "src/views/StagingAccessRequestView.tsx": {
2304
+ "file": "assets/StagingAccessRequestView-C0VivyAq.js",
2305
  "name": "StagingAccessRequestView",
2306
  "src": "src/views/StagingAccessRequestView.tsx",
2307
  "isDynamicEntry": true,
2308
  "imports": [
2309
  "index.html",
2310
+ "_circle-check-BLQIDlmi.js"
2311
  ]
2312
  },
2313
  "src/views/SubmitView.tsx": {
2314
+ "file": "assets/SubmitView-D7FTiJoL.js",
2315
  "name": "SubmitView",
2316
  "src": "src/views/SubmitView.tsx",
2317
  "isDynamicEntry": true,
2318
  "imports": [
2319
  "index.html",
2320
+ "_useMutation-s01kVLYP.js",
2321
+ "_alert-Ccdfz8nH.js",
2322
+ "_button-D3YZ2fyV.js",
2323
+ "_input-DiH0Y4eI.js",
2324
+ "_textarea-BswxiqHc.js",
2325
+ "_cacheSync-DdcXqD8L.js"
2326
  ]
2327
  },
2328
  "src/views/TagBrowseView.tsx": {
2329
+ "file": "assets/TagBrowseView-2aj85GIi.js",
2330
  "name": "TagBrowseView",
2331
  "src": "src/views/TagBrowseView.tsx",
2332
  "isDynamicEntry": true,
2333
  "imports": [
2334
  "index.html",
2335
+ "_ResearchFollowButton-Buglf0cW.js",
2336
+ "_SotaBadges-DiZSUF6s.js",
2337
+ "_usePapers-DhjAXi7Z.js",
2338
+ "_arrow-right-D_glSYCT.js",
2339
+ "_BenchmarkTrendSparkline-FNGhTOi0.js",
2340
+ "_MarkdownText-DxIZLXr2.js",
2341
  "_frameworks-DDA0P4Tf.js",
2342
+ "_preferences-GewRyOaP.js",
2343
  "_slug-BpH-Nkvz.js",
2344
+ "_transform-CZk96jj7.js",
2345
+ "_skeleton-Co0D0sKS.js",
2346
  "src/pages/NotFound.tsx",
2347
+ "_LoadFailurePage-CyeoE8bL.js",
2348
+ "_useDocumentTitle-BkdH1nHb.js",
2349
+ "_pageTitles-A2o-JnLx.js",
2350
+ "_trophy-BMD8z3-h.js",
2351
+ "_github-DR_xiUHp.js",
2352
+ "_researchTopic-CoMNa-1c.js",
2353
+ "_useMutation-s01kVLYP.js",
2354
+ "_plus-DSNQa55K.js",
2355
  "_colors-BkWRhvFI.js",
2356
+ "_PaperCard-VdH8pI7u.js",
2357
+ "_AuthorAvatar-BjZbMuV8.js",
2358
+ "_Icon-DqGTBJZ9.js",
2359
+ "_LatexTitle-CKwsnD2Q.js",
2360
  "_safeExternalHref-CkBrsh84.js",
2361
+ "_popover-BFaNN2oM.js",
2362
+ "_useIntersectionObserver-BY6KvlsB.js",
2363
+ "_useInfiniteQuery-YJbg_oLc.js",
2364
+ "_PaperPreviewLink-Cn8gltdd.js",
2365
+ "_index-DsTRem-i.js",
2366
+ "_index-2X5IY5Iu.js",
2367
+ "_hover-card-BPFTusQQ.js",
2368
+ "_alert-Ccdfz8nH.js"
2369
  ]
2370
  },
2371
  "src/views/TagsIndexView.tsx": {
2372
+ "file": "assets/TagsIndexView-C2bd6mRX.js",
2373
  "name": "TagsIndexView",
2374
  "src": "src/views/TagsIndexView.tsx",
2375
  "isDynamicEntry": true,
2376
  "imports": [
2377
  "index.html",
2378
  "_colors-BkWRhvFI.js",
2379
+ "_transform-CZk96jj7.js",
2380
  "_slug-BpH-Nkvz.js",
2381
+ "_taskIcons-Cie5gHYA.js",
2382
+ "_alert-Ccdfz8nH.js",
2383
+ "_AreaSection-uCYjp549.js",
2384
+ "_TaxonomySuggestionTile-BidHQCms.js",
2385
+ "_useHashScrollOnReady-BpogQh8y.js",
2386
  "_areas-Dvi8w2dp.js",
2387
+ "_useDocumentTitle-BkdH1nHb.js",
2388
+ "_pageTitles-A2o-JnLx.js",
2389
+ "_search-D6MzDlxw.js",
2390
+ "_triangle-alert-D-HRclph.js",
2391
+ "_share-2-6MRpEA8D.js",
2392
+ "_trending-up-DfsExUmr.js",
2393
+ "_moon-9co7u-sZ.js",
2394
+ "_thumbs-up-O9YhH8YG.js",
2395
+ "_database-a8bVJz-T.js",
2396
+ "_link-2-BVao7-2t.js",
2397
+ "_trophy-BMD8z3-h.js",
2398
+ "_file-text-DygGjiFE.js",
2399
+ "_activity-CMRWXS32.js",
2400
+ "_globe-C8su8imU.js",
2401
+ "_skeleton-Co0D0sKS.js",
2402
+ "_SignInToEditDialog-Bz47-2P3.js",
2403
+ "_button-D3YZ2fyV.js",
2404
+ "_input-DiH0Y4eI.js",
2405
+ "_textarea-BswxiqHc.js",
2406
+ "_searchable-select-D6Qsd47Z.js",
2407
+ "_popover-BFaNN2oM.js",
2408
+ "_dialog-Wuv1Mb7q.js",
2409
+ "_loader-circle-D52ezBbD.js",
2410
+ "_useMutation-s01kVLYP.js",
2411
+ "_submissions-Ddtxe-7g.js",
2412
+ "_cacheSync-DdcXqD8L.js",
2413
+ "_plus-DSNQa55K.js"
2414
  ]
2415
  },
2416
  "src/views/TopicView.tsx": {
2417
+ "file": "assets/TopicView-CMCJ9Gdi.js",
2418
  "name": "TopicView",
2419
  "src": "src/views/TopicView.tsx",
2420
  "isDynamicEntry": true,
2421
  "imports": [
2422
  "index.html",
2423
+ "_usePapers-DhjAXi7Z.js",
2424
+ "_skeleton-Co0D0sKS.js",
2425
+ "_researchTopic-CoMNa-1c.js",
2426
+ "_transform-CZk96jj7.js",
2427
+ "_plus-DSNQa55K.js",
2428
+ "_link-2-BVao7-2t.js",
2429
+ "_PaperCard-VdH8pI7u.js",
2430
+ "_AuthorAvatar-BjZbMuV8.js",
2431
+ "_SotaBadges-DiZSUF6s.js",
2432
  "_colors-BkWRhvFI.js",
2433
+ "_Icon-DqGTBJZ9.js",
2434
+ "_LatexTitle-CKwsnD2Q.js",
2435
  "_safeExternalHref-CkBrsh84.js",
2436
+ "_popover-BFaNN2oM.js",
2437
+ "_useIntersectionObserver-BY6KvlsB.js",
2438
+ "_useInfiniteQuery-YJbg_oLc.js",
2439
+ "_useMutation-s01kVLYP.js"
2440
  ]
2441
  },
2442
  "src/views/TrendsView.tsx": {
2443
+ "file": "assets/TrendsView-iPrZXOsS.js",
2444
  "name": "TrendsView",
2445
  "src": "src/views/TrendsView.tsx",
2446
  "isDynamicEntry": true,
2447
  "imports": [
2448
  "index.html",
2449
+ "_alert-Ccdfz8nH.js",
2450
+ "_skeleton-Co0D0sKS.js",
2451
+ "_useDocumentTitle-BkdH1nHb.js",
2452
+ "_pageTitles-A2o-JnLx.js"
2453
  ]
2454
  },
2455
  "src/views/UserProfileView.tsx": {
2456
+ "file": "assets/UserProfileView-64omAYPO.js",
2457
  "name": "UserProfileView",
2458
  "src": "src/views/UserProfileView.tsx",
2459
  "isDynamicEntry": true,
2460
  "imports": [
2461
  "index.html",
2462
+ "_OrganizationContributionGraph-BafN-XpT.js",
2463
+ "_skeleton-Co0D0sKS.js"
2464
  ]
2465
  }
2466
  }
assets/{AgentLogos-Cm3YQ6TB.js → AgentLogos-C8ZXxWoe.js} RENAMED
@@ -1 +1 @@
1
- import{j as e}from"./index-D6aEInmu.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-DqiWSKRu.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-lKh8LMvb.js → AiDeadlinesView-DsBSDIOp.js} RENAMED
@@ -1,3 +1,3 @@
1
- import{i as y,j as t,b as A,v as L}from"./index-D6aEInmu.js";import{S as B}from"./switch-WsS9i_IX.js";import{S as W}from"./skeleton-BkAt4a_A.js";import{A as U,a as M}from"./alert-CbcJsgVQ.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-DxQjeKSp.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-Dgxi21fr.js";import{I as J}from"./pageTitles-DTKTKJOp.js";import"./index-BPlx9he0.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,x as L}from"./index-DqiWSKRu.js";import{S as B}from"./switch-YFyOAE0-.js";import{S as W}from"./skeleton-Co0D0sKS.js";import{A as U,a as M}from"./alert-Ccdfz8nH.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-Wuv1Mb7q.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-BkdH1nHb.js";import{I as J}from"./pageTitles-A2o-JnLx.js";import"./index-4rRR7FSk.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-DqyzLYIA.js → ApiDocsView-wg6yIkGv.js} RENAMED
@@ -1,4 +1,4 @@
1
- import{d as m,ay as I,i as x,b as E,j as e}from"./index-D6aEInmu.js";import{u as R}from"./useDocumentTitle-Dgxi21fr.js";import{T as O}from"./trophy-D0mSSUi2.js";import{D as T}from"./database-DZEp-NYz.js";import{F as S}from"./file-text-Brc6F3oH.js";import{M as C}from"./index-C_uAq02v.js";/**
2
  * @license lucide-react v0.462.0 - ISC
3
  *
4
  * This source code is licensed under the ISC license.
 
1
+ import{d as m,ay as I,i as x,b as E,j as e}from"./index-DqiWSKRu.js";import{u as R}from"./useDocumentTitle-BkdH1nHb.js";import{T as O}from"./trophy-BMD8z3-h.js";import{D as T}from"./database-a8bVJz-T.js";import{F as S}from"./file-text-DygGjiFE.js";import{M as C}from"./index-DsTRem-i.js";/**
2
  * @license lucide-react v0.462.0 - ISC
3
  *
4
  * This source code is licensed under the ISC license.
assets/{AreaSection-Cj-nzCCB.js → AreaSection-uCYjp549.js} RENAMED
@@ -1 +1 @@
1
- import{j as s}from"./index-D6aEInmu.js";import{S as l}from"./skeleton-BkAt4a_A.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-DqiWSKRu.js";import{S as l}from"./skeleton-Co0D0sKS.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-Bl1EiHhN.js → AstraForRoboticsView-DKkvKvD9.js} RENAMED
@@ -1 +1 @@
1
- import{w as p,i as u,j as a,L as o,B as g}from"./index-D6aEInmu.js";import{b as x,u as b,c as f,P as j}from"./usePapers-CrZh8ngx.js";import{A as y,a as v}from"./alert-CbcJsgVQ.js";import{u as k,f as w}from"./useDocumentTitle-Dgxi21fr.js";import{t as A}from"./transform-yHyLdRgB.js";import"./PaperCard-DXVTfuSM.js";import"./AuthorAvatar-CB9dFjtV.js";import"./SotaBadges-D5Rygs2E.js";import"./colors-BkWRhvFI.js";import"./Icon-BCKS3hPB.js";import"./LatexTitle-YKOmpgD5.js";import"./safeExternalHref-CkBrsh84.js";import"./popover-BTut4e1S.js";import"./skeleton-BkAt4a_A.js";import"./useIntersectionObserver-BiqrXJxS.js";import"./useInfiniteQuery-DGk1REJi.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{y as p,i as u,j as a,L as o,E as g}from"./index-DqiWSKRu.js";import{b as x,u as b,c as f,P as j}from"./usePapers-DhjAXi7Z.js";import{A as y,a as v}from"./alert-Ccdfz8nH.js";import{u as k,f as w}from"./useDocumentTitle-BkdH1nHb.js";import{t as A}from"./transform-CZk96jj7.js";import"./PaperCard-VdH8pI7u.js";import"./AuthorAvatar-BjZbMuV8.js";import"./SotaBadges-DiZSUF6s.js";import"./colors-BkWRhvFI.js";import"./Icon-DqGTBJZ9.js";import"./LatexTitle-CKwsnD2Q.js";import"./safeExternalHref-CkBrsh84.js";import"./popover-BFaNN2oM.js";import"./skeleton-Co0D0sKS.js";import"./useIntersectionObserver-BY6KvlsB.js";import"./useInfiniteQuery-YJbg_oLc.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))})]}),U=()=>{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{U as default};
assets/{AuthorAvatar-CB9dFjtV.js → AuthorAvatar-BjZbMuV8.js} RENAMED
@@ -1 +1 @@
1
- import{i as c,j as r}from"./index-D6aEInmu.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-DqiWSKRu.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-C5BtQK97.js → AuthorDetailView-pQ7SiOfG.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-D6aEInmu.js";import{A as S}from"./AuthorAvatar-CB9dFjtV.js";import{b as w,u as L,c as R,P as T}from"./usePapers-CrZh8ngx.js";import{R as z}from"./ResearchFollowButton-Jethi4Re.js";import{A as C,a as H}from"./alert-CbcJsgVQ.js";import{S as B}from"./skeleton-BkAt4a_A.js";import{t as D}from"./transform-yHyLdRgB.js";import f from"./NotFound-DGnhJDkz.js";import{u as M}from"./useDocumentTitle-Dgxi21fr.js";import{e as Q}from"./pageTitles-DTKTKJOp.js";import"./PaperCard-DXVTfuSM.js";import"./SotaBadges-D5Rygs2E.js";import"./colors-BkWRhvFI.js";import"./Icon-BCKS3hPB.js";import"./LatexTitle-YKOmpgD5.js";import"./safeExternalHref-CkBrsh84.js";import"./popover-BTut4e1S.js";import"./useIntersectionObserver-BiqrXJxS.js";import"./useInfiniteQuery-DGk1REJi.js";import"./researchTopic-D0w4lDHH.js";import"./useMutation-pFc9AV9q.js";import"./plus-CsPEBwC8.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,y as v,i as F,n as y,aN as A,L as P,O as k,E as $}from"./index-DqiWSKRu.js";import{A as S}from"./AuthorAvatar-BjZbMuV8.js";import{b as L,u as R,c as T,P as w}from"./usePapers-DhjAXi7Z.js";import{R as z}from"./ResearchFollowButton-Buglf0cW.js";import{A as C,a as H}from"./alert-Ccdfz8nH.js";import{S as D}from"./skeleton-Co0D0sKS.js";import{t as E}from"./transform-CZk96jj7.js";import f from"./NotFound-Dscbr324.js";import{u as Q}from"./useDocumentTitle-BkdH1nHb.js";import{e as B}from"./pageTitles-A2o-JnLx.js";import"./PaperCard-VdH8pI7u.js";import"./SotaBadges-DiZSUF6s.js";import"./colors-BkWRhvFI.js";import"./Icon-DqGTBJZ9.js";import"./LatexTitle-CKwsnD2Q.js";import"./safeExternalHref-CkBrsh84.js";import"./popover-BFaNN2oM.js";import"./useIntersectionObserver-BY6KvlsB.js";import"./useInfiniteQuery-YJbg_oLc.js";import"./researchTopic-CoMNa-1c.js";import"./useMutation-s01kVLYP.js";import"./plus-DSNQa55K.js";const M=({authorId:r})=>{var n,i,l,c,p,d,h,u,m;const o=L(),{searchParams:g}=o,e=N(k.author(r));Q(((n=e.data)==null?void 0:n.full_name)&&B(e.data.full_name));const s=R(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(E))},[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(D,{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(T,{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(w,{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(M,{authorId:r},r):a.jsx(f,{})};export{pa as default};
assets/{AuthorizePaperEditView-D5uMLzlp.js → AuthorizePaperEditView-BDHCnZXe.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-D6aEInmu.js";import{u as g}from"./useMutation-pFc9AV9q.js";import{B as x}from"./button-k_NH4ciO.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-DqiWSKRu.js";import{u as g}from"./useMutation-s01kVLYP.js";import{B as x}from"./button-D3YZ2fyV.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-CcI_H7-U.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{v as R,i as d,b as B,a1 as A,j as e,L as q,ag as g}from"./index-DqiWSKRu.js";import{u as Q}from"./useMutation-s01kVLYP.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-BW4JZfWT.js";import{B as I}from"./badge-CpkuJKw3.js";import{B as x}from"./button-D3YZ2fyV.js";import{I as h}from"./input-DiH0Y4eI.js";import{A as P}from"./activity-CMRWXS32.js";import{A as D}from"./arrow-left-AHGVlBpG.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,v]=d.useState(""),[f,_]=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(D,{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=>v(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=>_(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/AutonomousOperations-D6KN3s3k.js DELETED
@@ -1 +0,0 @@
1
- import{o as R,i as d,b as B,$ as A,j as e,L as q,ae as g}from"./index-D6aEInmu.js";import{u as Q}from"./useMutation-pFc9AV9q.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-FA5RkvGJ.js";import{B as I}from"./badge-L_EHeT-o.js";import{B as x}from"./button-k_NH4ciO.js";import{I as h}from"./input-DaoHFpPY.js";import{A as P}from"./activity-BOriX-5O.js";import{A as $}from"./arrow-left-CXkxRjJa.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-Duv0vS2p.js → BenchmarkDetailView-lho6oAUw.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-D6aEInmu.js";import{R as ft}from"./ResearchFollowButton-Jethi4Re.js";import{u as pt}from"./preferences-BdWonpOv.js";import{L as de}from"./LatexTitle-YKOmpgD5.js";import{C as gt,E as xt}from"./ExternalSourceEvalBadge-CJDvhRpF.js";import{S as Qe}from"./switch-WsS9i_IX.js";import{I as bt}from"./Icon-BCKS3hPB.js";import{S as me}from"./skeleton-BkAt4a_A.js";import{B as yt}from"./BenchmarkTrendSparkline--B-upW1V.js";import{s as wt}from"./safeExternalHref-CkBrsh84.js";import{s as vt}from"./slug-BpH-Nkvz.js";import jt from"./NotFound-DGnhJDkz.js";import{l as St}from"./LoadFailurePage-C6rCculu.js";import{u as _t}from"./useDocumentTitle-Dgxi21fr.js";import{b as kt}from"./pageTitles-DTKTKJOp.js";import"./researchTopic-D0w4lDHH.js";import"./useMutation-pFc9AV9q.js";import"./plus-CsPEBwC8.js";import"./hover-card-C0nRSsFV.js";import"./index-BPlx9he0.js";import"./alert-CbcJsgVQ.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,a5 as ce,L as le,t as ct,M as dt,u as mt,f as ut,b as te,N as ht,x as se}from"./index-DqiWSKRu.js";import{R as ft}from"./ResearchFollowButton-Buglf0cW.js";import{u as pt}from"./preferences-GewRyOaP.js";import{L as de}from"./LatexTitle-CKwsnD2Q.js";import{C as gt,E as xt}from"./ExternalSourceEvalBadge-CDxpNEEw.js";import{S as Qe}from"./switch-YFyOAE0-.js";import{I as bt}from"./Icon-DqGTBJZ9.js";import{S as me}from"./skeleton-Co0D0sKS.js";import{B as yt}from"./BenchmarkTrendSparkline-FNGhTOi0.js";import{s as wt}from"./safeExternalHref-CkBrsh84.js";import{s as vt}from"./slug-BpH-Nkvz.js";import jt from"./NotFound-Dscbr324.js";import{l as St}from"./LoadFailurePage-CyeoE8bL.js";import{u as _t}from"./useDocumentTitle-BkdH1nHb.js";import{b as kt}from"./pageTitles-A2o-JnLx.js";import"./researchTopic-CoMNa-1c.js";import"./useMutation-s01kVLYP.js";import"./plus-DSNQa55K.js";import"./hover-card-BPFTusQQ.js";import"./index-4rRR7FSk.js";import"./alert-Ccdfz8nH.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 Ye(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,Y;const{evaluations:t,tasks:r,taskSlug:s,highlightEvalId:n,parameterBound:i,showMoreMetrics:l,fittingMetricCount:d=1}=e,o=Ye(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:((Y=D.find(x=>x.isHighlighted))==null?void 0:Y.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),Y=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:()=>Y(c.data.paperRouteId),onKeyDown:P=>{L&&(P.key==="Enter"||P.key===" ")&&(P.preventDefault(),Y(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 K(e){const t=[];for(let r=0,s=e.length;r<s;r++)t.push(e[r]);return t}let ne=null;function Ke(e={}){return ne||(e.includeStyleProperties?(ne=e.includeStyleProperties,ne):(ne=K(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 Yt(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(t=>`data:image/svg+xml;charset=utf-8,${t}`)}async function Kt(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),Yt(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 Ke(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=K(e.assignedNodes()):B(e,HTMLIFrameElement)&&(!((s=e.contentDocument)===null||s===void 0)&&s.body)?i=K(e.contentDocument.body.childNodes):i=K(((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):Ke(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=K(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{K(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{K(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=K(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 Kt(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=Ye(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:Y,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&&!Y&&N.isSuccess?a.jsx("span",{className:"bm-parameter-unavailable",children:"Parameter metadata unavailable"}):null,a.jsx(it,{targetRef:h,label:"leaderboard"})]})]}),!X&&Y&&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--B-upW1V.js → BenchmarkTrendSparkline-FNGhTOi0.js} RENAMED
@@ -1 +1 @@
1
- import{i as C,j as t}from"./index-D6aEInmu.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-DqiWSKRu.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-Cz-PGV0F.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{as as d,ad as u,b as m,j as s,L as h,k as g,Q as l}from"./index-DqiWSKRu.js";import{H as f,a as w,b as k}from"./hover-card-BPFTusQQ.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),C={task:"/tasks/",method:"/methods/",benchmark:"/benchmark/",framework:"/papers?framework="},_={task:"Task",method:"Method",benchmark:"Benchmark",framework:"Framework"},b={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()} ${b[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:_[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:`${C[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/CatalogEntityPreviewLink-Pt3-UZ8j.js DELETED
@@ -1 +0,0 @@
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-D6aEInmu.js";import{H as f,a as w,b as k}from"./hover-card-C0nRSsFV.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-C2A0qsMW.js → ChatView-WlFZxtHx.js} RENAMED
@@ -1,4 +1,4 @@
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-D6aEInmu.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-C463R-m5.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-DdF_Us_6.js";import{c as ne}from"./chat-DOACRtqV.js";import{M as qs}from"./McpShowcase-aTKzx9IH.js";import{S as Ps}from"./share-2-BlNTW9Lm.js";import{u as He}from"./useMutation-pFc9AV9q.js";import{I as Us}from"./Icon-BCKS3hPB.js";import{m as Hs}from"./mlIntern-BWyozZfZ.js";import{u as Vs,O as Ks}from"./openrouter-KxEsvD0W.js";/* empty css */import"./hover-card-C0nRSsFV.js";import"./CatalogEntityPreviewLink-Pt3-UZ8j.js";import"./github-DjuSO7M4.js";import"./file-text-Brc6F3oH.js";import"./PaperPreviewLink-CyaI4izq.js";import"./index-C_uAq02v.js";import"./index-DPECPebL.js";import"./index-LFG-CrNl.js";import"./katex-DkKDou_j.js";import"./thumbs-up-Cez8oCuZ.js";import"./copy-B-raWDut.js";import"./arrow-left-CXkxRjJa.js";import"./external-link-C27iK9fF.js";import"./plus-CsPEBwC8.js";import"./search-CXZqc5xK.js";import"./chevron-up-Dd1OUf8-.js";import"./AuthorAvatar-CB9dFjtV.js";import"./trash-2-CcR0dxP7.js";import"./AgentLogos-Cm3YQ6TB.js";/**
2
  * @license lucide-react v0.462.0 - ISC
3
  *
4
  * This source code is licensed under the ISC license.
 
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,M as At,b as je,L as It,al as Xt,am as Jt,an as Zt,ao as pt,ad as Ue,f as Mt,t as Tt,G as Nt,v as Dt,m as es,a as Ft,u as ts,A as ss}from"./index-DqiWSKRu.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-C-gatgua.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,E as Rs,F as js,G as ks,H as As,I as tt,J as Is,K as vt,L as Ot,M as St,N as Ye,j as Ms,O as Ts,Q as Ns,R as qt,U as Ds,V as Fs,W as Ls,X as Bs,S as Os,Y as Pt}from"./index-CV2RBjLM.js";import{c as ne}from"./chat-4qtVsasI.js";import{M as qs}from"./McpShowcase-2nbI0Yx2.js";import{S as Ps}from"./share-2-6MRpEA8D.js";import{u as He}from"./useMutation-s01kVLYP.js";import{I as Us}from"./Icon-DqGTBJZ9.js";import{m as Hs}from"./mlIntern-DECSlKey.js";import{u as Vs,O as Ks}from"./openrouter-BQoIPEIl.js";/* empty css */import"./hover-card-BPFTusQQ.js";import"./CatalogEntityPreviewLink-Cz-PGV0F.js";import"./github-DR_xiUHp.js";import"./file-text-DygGjiFE.js";import"./PaperPreviewLink-Cn8gltdd.js";import"./index-DsTRem-i.js";import"./index-2X5IY5Iu.js";import"./index-DsUVuYlH.js";import"./katex-DkKDou_j.js";import"./thumbs-up-O9YhH8YG.js";import"./copy-Csr_C_Aq.js";import"./arrow-left-AHGVlBpG.js";import"./external-link-CRXcmpbR.js";import"./plus-DSNQa55K.js";import"./search-D6MzDlxw.js";import"./chevron-up-CyF8Y8AT.js";import"./AuthorAvatar-BjZbMuV8.js";import"./trash-2-BXFf5wi-.js";import"./AgentLogos-C8ZXxWoe.js";/**
2
  * @license lucide-react v0.462.0 - ISC
3
  *
4
  * This source code is licensed under the ISC license.
assets/{ConferenceDetailView-BH6OBx1-.js → ConferenceDetailView-COjc0vVe.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-D6aEInmu.js";import{a as j,A as C,b as E}from"./AreaSection-Cj-nzCCB.js";import{M as N}from"./MarkdownText-WX3kW92g.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-yHyLdRgB.js";import{S as w}from"./skeleton-BkAt4a_A.js";import{s as D}from"./safeExternalHref-CkBrsh84.js";import{l as R}from"./LoadFailurePage-C6rCculu.js";import{u as B}from"./useDocumentTitle-Dgxi21fr.js";import{e as M}from"./pageTitles-DTKTKJOp.js";import"./PaperPreviewLink-CyaI4izq.js";import"./index-C_uAq02v.js";import"./index-DPECPebL.js";import"./hover-card-C0nRSsFV.js";import"./useMutation-pFc9AV9q.js";import"./alert-CbcJsgVQ.js";import"./NotFound-DGnhJDkz.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 v,b as _,i as S,j as e,L as f,x as b}from"./index-DqiWSKRu.js";import{a as j,A as C,b as E}from"./AreaSection-uCYjp549.js";import{M as N}from"./MarkdownText-DxIZLXr2.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-CZk96jj7.js";import{S as w}from"./skeleton-Co0D0sKS.js";import{s as D}from"./safeExternalHref-CkBrsh84.js";import{l as R}from"./LoadFailurePage-CyeoE8bL.js";import{u as B}from"./useDocumentTitle-BkdH1nHb.js";import{e as M}from"./pageTitles-A2o-JnLx.js";import"./PaperPreviewLink-Cn8gltdd.js";import"./index-DsTRem-i.js";import"./index-2X5IY5Iu.js";import"./hover-card-BPFTusQQ.js";import"./useMutation-s01kVLYP.js";import"./alert-Ccdfz8nH.js";import"./NotFound-Dscbr324.js";const ie=()=>{var x,h;const{confSlug:c}=v(),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,y=$.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:y.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||"",k=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:k.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-CEZW30T_.js → ConferenceTaskView-djYm1oC1.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-D6aEInmu.js";import{b as M,u as T,c as B,P as O}from"./usePapers-CrZh8ngx.js";import{M as f}from"./MarkdownText-WX3kW92g.js";import{C as Q}from"./conferenceListings-BnmhBx-_.js";import{t as z,d as H}from"./transform-yHyLdRgB.js";import{l as I}from"./LoadFailurePage-C6rCculu.js";import"./PaperCard-DXVTfuSM.js";import"./AuthorAvatar-CB9dFjtV.js";import"./SotaBadges-D5Rygs2E.js";import"./colors-BkWRhvFI.js";import"./Icon-BCKS3hPB.js";import"./LatexTitle-YKOmpgD5.js";import"./safeExternalHref-CkBrsh84.js";import"./popover-BTut4e1S.js";import"./skeleton-BkAt4a_A.js";import"./useIntersectionObserver-BiqrXJxS.js";import"./useInfiniteQuery-DGk1REJi.js";import"./PaperPreviewLink-CyaI4izq.js";import"./index-C_uAq02v.js";import"./index-DPECPebL.js";import"./hover-card-C0nRSsFV.js";import"./useMutation-pFc9AV9q.js";import"./alert-CbcJsgVQ.js";import"./NotFound-DGnhJDkz.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,x as F,E as A,y as L,i as S,j as e,L as g}from"./index-DqiWSKRu.js";import{b as M,u as T,c as B,P as O}from"./usePapers-DhjAXi7Z.js";import{M as f}from"./MarkdownText-DxIZLXr2.js";import{C as Q}from"./conferenceListings-BnmhBx-_.js";import{t as z,d as H}from"./transform-CZk96jj7.js";import{l as I}from"./LoadFailurePage-CyeoE8bL.js";import"./PaperCard-VdH8pI7u.js";import"./AuthorAvatar-BjZbMuV8.js";import"./SotaBadges-DiZSUF6s.js";import"./colors-BkWRhvFI.js";import"./Icon-DqGTBJZ9.js";import"./LatexTitle-CKwsnD2Q.js";import"./safeExternalHref-CkBrsh84.js";import"./popover-BFaNN2oM.js";import"./skeleton-Co0D0sKS.js";import"./useIntersectionObserver-BY6KvlsB.js";import"./useInfiniteQuery-YJbg_oLc.js";import"./PaperPreviewLink-Cn8gltdd.js";import"./index-DsTRem-i.js";import"./index-2X5IY5Iu.js";import"./hover-card-BPFTusQQ.js";import"./useMutation-s01kVLYP.js";import"./alert-Ccdfz8nH.js";import"./NotFound-Dscbr324.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}),x=S.useMemo(()=>{var r;return((r=c.data)==null?void 0:r.pages.flatMap(n=>n.results))??[]},[c.data]),h=S.useMemo(()=>x.map(z),[x]),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(g,{to:"/",children:"Home"}),e.jsx("span",{children:" / "}),e.jsx(g,{to:"/conferences",children:"Conferences"}),e.jsx("span",{children:" / "}),e.jsx(g,{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=x[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-C9U7ydQA.js → ConferencesIndexView-D1jA1Rdx.js} RENAMED
@@ -1 +1 @@
1
- import{b as d,i as m,j as e,L as c,v as p}from"./index-D6aEInmu.js";import{f as u}from"./deadlines-BG5SWwEG.js";import{A as f,a as h}from"./alert-CbcJsgVQ.js";import{A as x,a as g}from"./AreaSection-Cj-nzCCB.js";import{T as j}from"./TaxonomySuggestionTile-BRJohRi7.js";import{u as v}from"./useDocumentTitle-Dgxi21fr.js";import{I as N}from"./pageTitles-DTKTKJOp.js";import"./skeleton-BkAt4a_A.js";import"./SignInToEditDialog-By7mFzd-.js";import"./button-k_NH4ciO.js";import"./input-DaoHFpPY.js";import"./textarea-DZVopFEC.js";import"./searchable-select-CfqOxthQ.js";import"./popover-BTut4e1S.js";import"./dialog-DxQjeKSp.js";import"./search-CXZqc5xK.js";import"./loader-circle-Cd5BHkxG.js";import"./useMutation-pFc9AV9q.js";import"./submissions-CIyYa4oU.js";import"./cacheSync-BaUSLOpe.js";import"./plus-CsPEBwC8.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)},U=()=>{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{U as default};
 
1
+ import{b as d,i as m,j as e,L as c,x as p}from"./index-DqiWSKRu.js";import{f as u}from"./deadlines-BG5SWwEG.js";import{A as f,a as h}from"./alert-Ccdfz8nH.js";import{A as x,a as g}from"./AreaSection-uCYjp549.js";import{T as j}from"./TaxonomySuggestionTile-BidHQCms.js";import{u as v}from"./useDocumentTitle-BkdH1nHb.js";import{I as N}from"./pageTitles-A2o-JnLx.js";import"./skeleton-Co0D0sKS.js";import"./SignInToEditDialog-Bz47-2P3.js";import"./button-D3YZ2fyV.js";import"./input-DiH0Y4eI.js";import"./textarea-BswxiqHc.js";import"./searchable-select-D6Qsd47Z.js";import"./popover-BFaNN2oM.js";import"./dialog-Wuv1Mb7q.js";import"./search-D6MzDlxw.js";import"./loader-circle-D52ezBbD.js";import"./useMutation-s01kVLYP.js";import"./submissions-Ddtxe-7g.js";import"./cacheSync-DdcXqD8L.js";import"./plus-DSNQa55K.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)},U=()=>{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{U as default};
assets/CronDashboard-BT2f77Tw.js DELETED
@@ -1,36 +0,0 @@
1
- import{d as B,i as x,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 Te,_ as $,b as K,$ as xe,o as pe,a0 as O,A as Fe,L as ge,ad as M,a1 as us,p as hs,O as me,c as xs,a as ps,ae as gs,E as js}from"./index-D6aEInmu.js";import{u as P}from"./useMutation-pFc9AV9q.js";import{t as je,f as g,a as S,S as Ee,C as _,b as N,c as b,d as R,e as v,g as C}from"./CronDashboard-FA5RkvGJ.js";import{B as J}from"./badge-L_EHeT-o.js";import{B as y}from"./button-k_NH4ciO.js";import{C as _s,a as vs}from"./chevron-up-Dd1OUf8-.js";import{D as Ne}from"./database-DZEp-NYz.js";import{T as fs}from"./trending-up-C4QuPkw3.js";import{A as ne}from"./activity-BOriX-5O.js";import{F as be}from"./file-text-Brc6F3oH.js";import{T as ue,I as Ns}from"./triangle-alert-99rDZz9U.js";import{E as q}from"./external-link-C27iK9fF.js";import{C as Y,R as ye}from"./refresh-cw-B_f4d2VU.js";import{L as T}from"./loader-circle-Cd5BHkxG.js";import{C as _e}from"./circle-check-K4AzWUKO.js";import{u as bs}from"./useInfiniteQuery-DGk1REJi.js";import{c as we}from"./chat-DOACRtqV.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 ke=B("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/**
7
- * @license lucide-react v0.462.0 - ISC
8
- *
9
- * This source code is licensed under the ISC license.
10
- * See the LICENSE file in the root directory of this source tree.
11
- */const ys=B("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
12
- * @license lucide-react v0.462.0 - ISC
13
- *
14
- * This source code is licensed under the ISC license.
15
- * See the LICENSE file in the root directory of this source tree.
16
- */const ws=B("CirclePlay",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polygon",{points:"10 8 16 12 10 16 10 8",key:"1cimsy"}]]);/**
17
- * @license lucide-react v0.462.0 - ISC
18
- *
19
- * This source code is licensed under the ISC license.
20
- * See the LICENSE file in the root directory of this source tree.
21
- */const ks=B("CircleSlash2",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M22 2 2 22",key:"y4kqgn"}]]);/**
22
- * @license lucide-react v0.462.0 - ISC
23
- *
24
- * This source code is licensed under the ISC license.
25
- * See the LICENSE file in the root directory of this source tree.
26
- */const Cs=B("Clock3",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16.5 12",key:"1aq6pp"}]]);/**
27
- * @license lucide-react v0.462.0 - ISC
28
- *
29
- * This source code is licensed under the ISC license.
30
- * See the LICENSE file in the root directory of this source tree.
31
- */const Me=B("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
32
- * @license lucide-react v0.462.0 - ISC
33
- *
34
- * This source code is licensed under the ISC license.
35
- * See the LICENSE file in the root directory of this source tree.
36
- */const Ss=B("FileClock",[["path",{d:"M16 22h2a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v3",key:"37hlfg"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"8",cy:"16",r:"6",key:"10v15b"}],["path",{d:"M9.5 17.5 8 16.25V14",key:"1o80t2"}]]);var ce="Tabs",[$s]=ms(ce,[Te]),De=Te(),[Ls,ve]=$s(ce),Ie=x.forwardRef((s,r)=>{const{__scopeTabs:n,value:l,onValueChange:i,defaultValue:d,orientation:m="horizontal",dir:f,activationMode:p="automatic",...h}=s,j=ts(f),[t,o]=is({prop:l,onChange:i,defaultProp:d??"",caller:ce});return e.jsx(Ls,{scope:n,baseId:cs(),value:t,onValueChange:o,orientation:m,dir:j,activationMode:p,children:e.jsx(ie.div,{dir:j,"data-orientation":m,...h,ref:r})})});Ie.displayName=ce;var Oe="TabsList",qe=x.forwardRef((s,r)=>{const{__scopeTabs:n,loop:l=!0,...i}=s,d=ve(Oe,n),m=De(n);return e.jsx(ls,{asChild:!0,...m,orientation:d.orientation,dir:d.dir,loop:l,children:e.jsx(ie.div,{role:"tablist","aria-orientation":d.orientation,...i,ref:r})})});qe.displayName=Oe;var Je="TabsTrigger",Be=x.forwardRef((s,r)=>{const{__scopeTabs:n,value:l,disabled:i=!1,...d}=s,m=ve(Je,n),f=De(n),p=We(m.baseId,l),h=ze(m.baseId,l),j=l===m.value;return e.jsx(ds,{asChild:!0,...f,focusable:!i,active:j,children:e.jsx(ie.button,{type:"button",role:"tab","aria-selected":j,"aria-controls":h,"data-state":j?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:p,...d,ref:r,onMouseDown:oe(s.onMouseDown,t=>{!i&&t.button===0&&t.ctrlKey===!1?m.onValueChange(l):t.preventDefault()}),onKeyDown:oe(s.onKeyDown,t=>{[" ","Enter"].includes(t.key)&&m.onValueChange(l)}),onFocus:oe(s.onFocus,()=>{const t=m.activationMode!=="manual";!j&&!i&&t&&m.onValueChange(l)})})})});Be.displayName=Je;var Ue="TabsContent",He=x.forwardRef((s,r)=>{const{__scopeTabs:n,value:l,forceMount:i,children:d,...m}=s,f=ve(Ue,n),p=We(f.baseId,l),h=ze(f.baseId,l),j=l===f.value,t=x.useRef(j);return x.useEffect(()=>{const o=requestAnimationFrame(()=>t.current=!1);return()=>cancelAnimationFrame(o)},[]),e.jsx(os,{present:i||j,children:({present:o})=>e.jsx(ie.div,{"data-state":j?"active":"inactive","data-orientation":f.orientation,role:"tabpanel","aria-labelledby":p,hidden:!o,id:h,tabIndex:0,...m,ref:r,style:{...s.style,animationDuration:t.current?"0s":void 0},children:o&&d})})});He.displayName=Ue;function We(s,r){return`${s}-trigger-${r}`}function ze(s,r){return`${s}-content-${r}`}var As=Ie,Ge=qe,Qe=Be,Ke=He;const Ps=As,Ve=x.forwardRef(({className:s,...r},n)=>e.jsx(Ge,{ref:n,className:$("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",s),...r}));Ve.displayName=Ge.displayName;const W=x.forwardRef(({className:s,...r},n)=>e.jsx(Qe,{ref:n,className:$("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",s),...r}));W.displayName=Qe.displayName;const z=x.forwardRef(({className:s,...r},n)=>e.jsx(Ke,{ref:n,className:$("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",s),...r}));z.displayName=Ke.displayName;function L({tone:s,className:r,...n}){return e.jsx(J,{variant:"outline",className:$(je(s),r),...n})}function te(s){return s==null?"N/A":s<60?`${s.toFixed(1)}s`:s<3600?`${(s/60).toFixed(1)}m`:`${(s/3600).toFixed(1)}h`}function Xe(s){return s.available?s.status==="completed"?s.conclusion??"completed":s.status??"unknown":"Unavailable"}function Z(s){return s.replace(/_/g," ").replace(/\b\w/g,r=>r.toUpperCase())}function Ce({title:s,budget:r,profile:n}){const l=r.cost_policy==="unmetered_hf"||r.budget_enforced===!1,i=Math.min(100,r.current_exposure_usd/r.ceiling_usd*100),d=l?"Unmetered HF":r.affordable_jobs===0&&r.desired_jobs>0?"No shard fits":r.affordable_jobs<r.desired_jobs?`${r.affordable_jobs} of ${r.desired_jobs} planned shards fit`:`${r.affordable_jobs} planned ${r.affordable_jobs===1?"shard fits":"shards fit"}`;return e.jsxs("div",{className:`cron-metric-card space-y-3 ${r.can_launch_planned?"":"cron-status--broken"}`,children:[e.jsxs("div",{className:"flex items-start justify-between gap-3",children:[e.jsxs("div",{children:[e.jsx("div",{className:"font-semibold",children:s}),e.jsx("div",{className:"text-xs cron-muted",children:r.window==="rolling_30_days"?"Rolling 30-day window":"All history · no automatic reset"})]}),e.jsx(L,{tone:r.can_launch_planned?"healthy":"broken",children:d})]}),!l&&e.jsx("div",{role:"progressbar","aria-label":`${s} current budget exposure`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round(i),className:"h-2 rounded bg-muted",children:e.jsx("div",{className:"h-2 rounded bg-primary",style:{width:`${i}%`}})}),e.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-3 text-sm",children:[e.jsxs("div",{children:[e.jsx("span",{className:"cron-label",children:"Completed-job estimate"}),e.jsx("div",{children:S(r.spent_usd)})]}),e.jsxs("div",{children:[e.jsx("span",{className:"cron-label",children:"Active reservations"}),e.jsx("div",{children:S(r.active_reserved_usd)})]}),e.jsxs("div",{children:[e.jsx("span",{className:"cron-label",children:"Current exposure"}),e.jsx("div",{children:S(r.current_exposure_usd)})]}),e.jsxs("div",{children:[e.jsx("span",{className:"cron-label",children:"Admission policy"}),e.jsx("div",{children:l?"HF-owned · no monetary gate":`${S(r.ceiling_usd)} cap · ${S(r.headroom_usd)} headroom`})]}),e.jsxs("div",{children:[e.jsx("span",{className:"cron-label",children:"Affordable plan reserves"}),e.jsx("div",{children:S(r.planned_reserved_usd)})]}),e.jsxs("div",{children:[e.jsx("span",{className:"cron-label",children:"Projected exposure"}),e.jsx("div",{children:S(r.projected_usd)})]}),e.jsxs("div",{children:[e.jsx("span",{className:"cron-label",children:"Rate assumption"}),e.jsxs("div",{children:[S(r.hourly_rate_usd),"/hour · ",r.reservation_hours_per_job,"h"]})]}),e.jsxs("div",{children:[e.jsx("span",{className:"cron-label",children:"Next admission"}),e.jsx("div",{children:l?"Now, subject to capacity":r.next_admission_at?g(r.next_admission_at):r.affordable_jobs>0?"Now":"No scheduled admission"})]}),e.jsxs("div",{children:[e.jsx("span",{className:"cron-label",children:"Unknown terminal reserve"}),e.jsxs("div",{children:[S(r.unknown_terminal_reservation_usd??0)," · ",(r.unknown_terminal_reservation_count??0).toLocaleString()," jobs"]})]})]}),n&&e.jsxs("div",{className:"text-xs cron-muted",children:["Profile ",e.jsx("strong",{children:n.profile_id})," · max ",n.max_papers.toLocaleString()," papers · hard ",te(n.hard_timeout_seconds)," · soft ",te(n.soft_deadline_seconds)]}),e.jsx("p",{className:"text-xs cron-muted",children:l?"HF owns this workload, so monetary admission is disabled; concurrency and timeout limits still apply. Runtime cost remains an operational estimate.":"Projected exposure is an admission-control estimate, not a provider invoice. Each launch reserves the full timeout until actual runtime is known."})]})}const Rs={healthy:_e,degraded:ue,broken:Y,running:T,stuck:Y,unknown:ys};function Ts({status:s,isRunning:r}){const n=r?"running":s,l=Rs[n];return e.jsx(l,{className:`cron-status-icon ${je(n)}${n==="running"?" animate-spin":""}`})}function Se({label:s,axis:r}){return e.jsxs(L,{tone:r.status,title:r.reason,children:[s,": ",r.status]})}function $e({icon:s,title:r,metrics:n}){return e.jsxs("div",{children:[e.jsxs("div",{className:"cron-section-heading",children:[e.jsx(s,{className:"h-4 w-4"}),e.jsx("h4",{children:r})]}),e.jsx("div",{className:"grid grid-cols-2 gap-3",children:Object.entries(n).map(([l,i])=>e.jsxs("div",{className:"cron-metric-card",children:[e.jsx("div",{className:"cron-label",children:Z(l)}),e.jsx("div",{className:"text-lg font-semibold",children:typeof i=="number"?i.toLocaleString():i})]},l))})]})}function Fs({workflow:s}){return e.jsxs("div",{children:[e.jsxs("div",{className:"cron-section-heading",children:[e.jsx(ne,{className:"h-4 w-4"}),e.jsx("h4",{children:"GitHub Actions"})]}),e.jsxs("div",{className:"cron-metric-card space-y-2 text-sm",children:[[["Workflow",s.workflow_file],["Run",s.run_id??"N/A"],["Status",Xe(s)],...s.updated_at?[["Updated",g(s.updated_at)]]:[]].map(([r,n])=>e.jsxs("div",{className:"flex items-center justify-between gap-3",children:[e.jsx("span",{className:"cron-label",children:r}),e.jsx("span",{className:r==="Workflow"?"font-mono text-xs":void 0,children:n})]},r)),s.failed_jobs&&s.failed_jobs.length>0&&e.jsxs("div",{children:[e.jsx("div",{className:"cron-label mb-1",children:"Failed jobs"}),e.jsx("div",{className:"flex gap-2 flex-wrap",children:s.failed_jobs.map(r=>e.jsx(L,{tone:"broken",children:r},r))})]}),s.job_conclusions&&Object.keys(s.job_conclusions).length>0&&e.jsxs("div",{children:[e.jsx("div",{className:"cron-label mb-1",children:"Job conclusions"}),e.jsx("div",{className:"flex gap-2 flex-wrap",children:Object.entries(s.job_conclusions).map(([r,n])=>e.jsxs(J,{variant:"outline",children:[r,": ",n??"running"]},r))})]}),(s.error||s.view_error)&&e.jsx("div",{className:"cron-message cron-message--error",children:s.error??s.view_error})]})]})}const Es={COMPLETED:"healthy",ERROR:"broken",CANCELED:"broken",RUNNING:"running"},Le={success:"healthy",partial:"degraded",interrupted:"degraded",infrastructure_failure:"broken",worker_failure:"broken",active:"running"};function Ms({job:s}){const r=s.progress,n=(r==null?void 0:r.omitted_images)??0,l=r!=null&&r.total_papers?Math.min(100,r.processed_papers/r.total_papers*100):0;return e.jsxs("div",{className:"cron-metric-card space-y-3",children:[e.jsxs("div",{className:"flex items-start justify-between gap-3",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsxs("div",{className:"font-semibold",children:[s.mode??"unknown"," · shard ",s.shard_id??"N/A"," · attempt ",s.provider_attempt??1]}),e.jsx("div",{className:"font-mono text-xs cron-muted truncate",children:s.id})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(L,{tone:Es[s.stage]??"unknown",children:s.stage.toLowerCase()}),s.effective_outcome&&e.jsxs(L,{tone:Le[s.effective_outcome]??"unknown",children:["output: ",s.effective_outcome.replace(/_/g," ")]}),s.failure_cause&&e.jsxs(L,{tone:Le[s.effective_outcome??""]??"unknown",children:["cause: ",s.failure_cause.replace(/_/g," ")]}),s.url&&e.jsx("a",{href:s.url,target:"_blank",rel:"noreferrer","aria-label":`Open Hugging Face Job ${s.id}`,className:"cron-info-text",children:e.jsx(q,{className:"h-4 w-4"})})]})]}),r?e.jsxs(e.Fragment,{children:[e.jsxs("div",{children:[e.jsxs("div",{className:"flex justify-between gap-3 text-xs cron-muted mb-1",children:[e.jsxs("span",{children:[r.processed_papers.toLocaleString()," / ",r.total_papers.toLocaleString()," papers"]}),e.jsxs("span",{children:[l.toFixed(0),"%"]})]}),e.jsx("div",{className:"cron-progress-track",children:e.jsx("div",{className:"cron-progress-value",style:{width:`${l}%`}})})]}),e.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-2 text-sm",children:[e.jsxs("span",{children:[e.jsx("strong",{children:r.succeeded_papers.toLocaleString()})," succeeded"]}),e.jsxs("span",{children:[e.jsx("strong",{children:r.failed_papers.toLocaleString()})," failed"]}),e.jsxs("span",{children:[e.jsx("strong",{children:r.already_existed_papers.toLocaleString()})," skipped"]}),e.jsxs("span",{children:[e.jsx("strong",{children:r.extracted_images.toLocaleString()})," images"]})]}),n>0&&e.jsxs("div",{className:"text-xs cron-muted",children:[e.jsx("strong",{children:n.toLocaleString()})," unresolved image references omitted after final retry"]}),r.updated_at&&e.jsxs("div",{className:"text-xs cron-muted",children:["Progress updated ",g(r.updated_at)]}),(r.fatal_error||r.error_samples.length>0)&&e.jsxs("div",{className:"cron-message cron-message--error space-y-1",children:[r.fatal_error&&e.jsx("div",{children:r.fatal_error}),r.error_samples.map(i=>e.jsxs("div",{children:[e.jsx("span",{className:"font-mono",children:i.arxiv_id}),": ",i.error]},`${i.arxiv_id}:${i.error}`))]})]}):e.jsx("div",{className:"text-sm cron-muted",children:"Waiting for the shard progress checkpoint."}),e.jsxs("div",{className:"flex flex-wrap gap-x-4 gap-y-1 text-xs cron-muted",children:[s.hardware&&e.jsx("span",{children:s.hardware}),s.created_at&&e.jsxs("span",{children:["Created ",g(s.created_at)]}),s.duration_seconds!=null&&e.jsxs("span",{children:["Duration ",te(s.duration_seconds)]})]}),s.stage_message&&e.jsx("div",{className:"cron-message cron-message--warning",children:s.stage_message})]})}function Ds({monitor:s,loading:r,error:n}){var l,i;return e.jsxs("div",{className:"md:col-span-2",children:[e.jsxs("div",{className:"cron-section-heading",children:[e.jsx(Ns,{className:"h-4 w-4"}),e.jsx("h4",{children:"Hugging Face OCR shards"})]}),r&&e.jsxs("div",{className:"cron-metric-card flex items-center gap-2 text-sm cron-muted",children:[e.jsx(T,{className:"h-4 w-4 animate-spin"})," Loading remote Jobs…"]}),!!n&&e.jsx("div",{className:"cron-message cron-message--error",children:"Could not load Hugging Face Jobs."}),s&&!s.available&&e.jsx("div",{className:"cron-message cron-message--warning",children:s.error??"Hugging Face monitoring is unavailable."}),(s==null?void 0:s.available)&&e.jsxs(e.Fragment,{children:[s.budgets.live&&s.budgets.backfill&&e.jsxs("div",{className:"grid grid-cols-1 xl:grid-cols-2 gap-3 mb-3",children:[e.jsx(Ce,{title:"Live paper Markdown GPU policy",budget:s.budgets.live,profile:(l=s.selected_profiles)==null?void 0:l.live}),e.jsx(Ce,{title:"Full backfill GPU policy",budget:s.budgets.backfill,profile:(i=s.selected_profiles)==null?void 0:i.backfill})]}),e.jsxs("div",{className:`cron-message mb-3 ${(s.summary.unresolved_mount_failures??0)>0?"cron-message--error":""}`,children:[e.jsx("strong",{children:"Logical shard health:"})," ",(s.summary.logical_shards??0).toLocaleString()," logical shards / ",(s.summary.provider_attempts??0).toLocaleString()," provider attempts · ",(s.summary.recovered_mount_failures??0).toLocaleString()," recovered mount failures · ",(s.summary.unresolved_mount_failures??0).toLocaleString()," unresolved"]}),e.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-3 mb-3",children:Object.entries(s.summary).map(([d,m])=>e.jsxs("div",{className:"cron-metric-card",children:[e.jsx("div",{className:"cron-label",children:Z(d)}),e.jsx("div",{className:"text-lg font-semibold",children:m.toLocaleString()})]},d))}),e.jsx("p",{className:"text-xs cron-muted mb-3",children:"Efficiency and backlog-clearance costs are admission-control estimates, not provider invoices."}),s.coverage&&Object.keys(s.coverage).length>0&&e.jsx("div",{className:"grid grid-cols-1 xl:grid-cols-2 gap-3 mb-3",children:Object.values(s.coverage).map(d=>e.jsxs("div",{className:"cron-metric-card space-y-2 text-sm",children:[e.jsx("div",{className:"font-semibold",children:d.scope==="full"?"Full catalog coverage":"Recent 14-day coverage"}),e.jsxs("div",{className:"text-lg font-semibold",children:[d.coverage_percentage.toFixed(2),"%"]}),e.jsxs("div",{children:[d.canonical_markdown_count.toLocaleString()," canonical / ",d.eligible_papers.toLocaleString()," eligible · ",d.missing_count.toLocaleString()," missing"]}),e.jsxs("div",{className:"cron-muted",children:["Copied from upstream this reconciliation: ",d.copied_from_upstream_count.toLocaleString()]}),e.jsxs("div",{className:"cron-muted",children:["7-day Δ eligible ",d.eligible_delta_7d??"collecting"," · canonical ",d.canonical_delta_7d??"collecting"," · missing ",d.missing_delta_7d??"collecting"]})]},d.scope))}),s.jobs.length===0?e.jsx("div",{className:"cron-metric-card text-sm cron-muted",children:"No OCR shards have been launched yet."}):e.jsx("div",{className:"grid grid-cols-1 xl:grid-cols-2 gap-3",children:s.jobs.map(d=>e.jsx(Ms,{job:d},d.id))})]})]})}function Is({job:s,expanded:r,onToggle:n,autoRefresh:l=!1}){var j,t;const i=!!(s.work_metrics&&Object.keys(s.work_metrics).length),d=!!(s.db_metrics&&Object.keys(s.db_metrics).length),m=s.job_name==="paper_markdown_backfill",f=K({...xe.paperMarkdownJobs(),enabled:m,refetchInterval:l?3e4:!1,retry:!1}),p=m?(j=f.data)==null?void 0:j.budgets.live:void 0,h=(p==null?void 0:p.cost_policy)==="unmetered_hf"||(p==null?void 0:p.budget_enforced)===!1;return e.jsxs("div",{className:"cron-job-card",children:[e.jsx("button",{type:"button",className:"cron-job-summary",onClick:n,"aria-expanded":r,children:e.jsxs("div",{className:"flex items-start justify-between gap-3",children:[e.jsxs("div",{className:"flex items-start gap-3 flex-1 min-w-0",children:[e.jsx(Ts,{status:s.status,isRunning:s.is_running}),e.jsxs("div",{className:"flex-1 min-w-0 text-left",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-1 flex-wrap",children:[e.jsx("h3",{className:"font-semibold",children:s.display_name}),s.critical&&e.jsx(J,{variant:"outline",className:"text-[10px] uppercase tracking-wide",children:"Critical"}),s.lock_stale&&e.jsx(L,{tone:"broken",children:"Held lock"}),((t=s.failure_alert)==null?void 0:t.alerting)&&e.jsx(L,{tone:"broken",children:"Failure alert"}),e.jsx(Se,{label:"Execution",axis:s.execution_health}),e.jsx(Se,{label:"Output",axis:s.output_health}),r?e.jsx(_s,{className:"h-4 w-4 cron-muted"}):e.jsx(vs,{className:"h-4 w-4 cron-muted"})]}),e.jsx("p",{className:"text-sm cron-muted mb-2",children:s.status_reason}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-4 gap-2 text-sm cron-muted",children:[e.jsxs("span",{className:"cron-fact",children:[e.jsx(Me,{}),"Log: ",g(s.last_run)]}),e.jsxs("span",{className:"cron-fact",children:[e.jsx(Ne,{}),"DB: ",g(s.last_db_write)]}),s.recent_write_count!=null&&e.jsxs("span",{className:"cron-fact",children:[e.jsx(fs,{}),"Recent writes: ",s.recent_write_count.toLocaleString()]}),s.duration!=null&&e.jsxs("span",{className:"cron-fact",children:[e.jsx(ne,{}),"Duration: ",te(s.duration)]}),s.schedule&&e.jsxs("span",{className:"cron-fact md:col-span-2",children:[e.jsx(ke,{}),e.jsx("span",{className:"font-mono text-xs",children:s.schedule})]}),s.log_status&&e.jsxs("span",{className:"cron-fact",children:[e.jsx(be,{}),"Log status: ",s.log_status]}),s.workflow_status&&e.jsxs("span",{className:"cron-fact",children:[e.jsx(ne,{}),"Actions: ",Xe(s.workflow_status)]}),s.failure_alert&&e.jsxs("span",{className:"cron-fact md:col-span-2",children:[e.jsx(ue,{}),s.failure_alert.alerting?`Last ${s.failure_alert.consecutive_failures} runs failed (alert at ${s.failure_alert.after_consecutive_failures}); latest ${g(s.failure_alert.last_failure_at)}`:`Alerts after ${s.failure_alert.after_consecutive_failures} consecutive failures (now ${s.failure_alert.consecutive_failures})`]})]}),s.work_summary&&e.jsx("div",{className:"cron-message",children:s.work_summary}),s.error&&e.jsxs("div",{className:"cron-message cron-message--error",children:[e.jsx("strong",{children:"Error: "}),s.error]}),s.diagnostics&&e.jsx("div",{className:"cron-message cron-message--warning",children:s.diagnostics}),p&&e.jsxs("div",{className:`cron-message ${p.can_launch_planned?"":"cron-message--error"}`,children:[e.jsx("strong",{children:"Live GPU policy:"})," ",h?"unmetered on HF":`${S(p.current_exposure_usd)} current / ${S(p.ceiling_usd)} cap`," · ",p.affordable_jobs," of ",p.desired_jobs," planned",h?"":` · projects ${S(p.projected_usd)} · rolling 30 days`]})]})]}),e.jsx(L,{tone:s.status,children:s.status})]})}),r&&e.jsx("div",{className:"cron-job-details",children:e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"cron-section-heading",children:[e.jsx(ke,{className:"h-4 w-4"}),e.jsx("h4",{children:"Scheduler evidence"})]}),e.jsx("div",{className:"cron-metric-card space-y-2 text-sm",children:[["Scheduler",s.execution_health.scheduler??"unknown"],["Last expected",g(s.execution_health.last_expected_at??null)],["Last started",g(s.execution_health.last_started_at??null)],["Last completed",g(s.execution_health.last_completed_at??null)],["Next expected",g(s.execution_health.next_expected_at??null)]].map(([o,w])=>e.jsxs("div",{className:"flex items-center justify-between gap-3",children:[e.jsx("span",{className:"cron-label",children:o}),e.jsx("span",{children:w})]},o))})]}),s.work_metrics&&i&&e.jsx($e,{icon:be,title:"Log Metrics",metrics:s.work_metrics}),s.db_metrics&&d&&e.jsx($e,{icon:Ne,title:"Database Metrics",metrics:s.db_metrics}),s.workflow_status&&e.jsx(Fs,{workflow:s.workflow_status}),m&&e.jsx(Ds,{monitor:f.data,loading:f.isLoading,error:f.error}),s.diagnostic_groups&&Object.values(s.diagnostic_groups).some(o=>o.length>0)&&e.jsxs("div",{className:"md:col-span-2",children:[e.jsxs("div",{className:"cron-section-heading",children:[e.jsx(ue,{className:"h-4 w-4"}),e.jsx("h4",{children:"Diagnostics by cause"})]}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:Object.entries(s.diagnostic_groups).filter(([,o])=>o.length>0).map(([o,w])=>e.jsxs("div",{className:"cron-metric-card",children:[e.jsx("div",{className:"cron-label mb-1",children:Z(o)}),e.jsx("ul",{className:"list-disc pl-4 text-sm space-y-1",children:w.map(A=>e.jsx("li",{children:A},A))})]},o))})]}),s.health_findings&&s.health_findings.some(o=>o.state!=="healthy")&&e.jsxs("div",{className:"md:col-span-2",children:[e.jsxs("div",{className:"cron-section-heading",children:[e.jsx(Ee,{className:"h-4 w-4"}),e.jsx("h4",{children:"Deterministic contract findings"})]}),e.jsxs("div",{className:"cron-metric-card space-y-3 text-sm",children:[s.health_findings.filter(o=>o.state!=="healthy").map(o=>e.jsxs("div",{children:[e.jsx(L,{tone:o.state,children:o.state})," ",e.jsx("strong",{children:Z(o.contract)}),": ",o.summary,Object.entries(o.evidence).length>0&&e.jsx("div",{className:"mt-1 text-xs cron-muted",children:Object.entries(o.evidence).map(([w,A])=>e.jsxs("span",{className:"mr-3",children:[Z(w),": ",String(A)]},w))})]},`${o.plane}-${o.contract}`)),e.jsxs("div",{className:"flex gap-4",children:[s.operator_url&&e.jsxs("a",{className:"cron-info-text inline-flex items-center gap-1",href:s.operator_url,children:["Open operator ",e.jsx(q,{className:"h-3.5 w-3.5"})]}),s.run_url&&e.jsxs("a",{className:"cron-info-text inline-flex items-center gap-1",href:s.run_url,target:"_blank",rel:"noreferrer",children:["Open run ",e.jsx(q,{className:"h-3.5 w-3.5"})]})]})]})]})]})})]})}const Ze=x.forwardRef(({className:s,...r},n)=>e.jsx("div",{className:"relative w-full overflow-auto",children:e.jsx("table",{ref:n,className:$("w-full caption-bottom text-sm",s),...r})}));Ze.displayName="Table";const Ye=x.forwardRef(({className:s,...r},n)=>e.jsx("thead",{ref:n,className:$("[&_tr]:border-b",s),...r}));Ye.displayName="TableHeader";const es=x.forwardRef(({className:s,...r},n)=>e.jsx("tbody",{ref:n,className:$("[&_tr:last-child]:border-0",s),...r}));es.displayName="TableBody";const Os=x.forwardRef(({className:s,...r},n)=>e.jsx("tfoot",{ref:n,className:$("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",s),...r}));Os.displayName="TableFooter";const he=x.forwardRef(({className:s,...r},n)=>e.jsx("tr",{ref:n,className:$("border-b transition-colors data-[state=selected]:bg-muted hover:bg-muted/50",s),...r}));he.displayName="TableRow";const G=x.forwardRef(({className:s,...r},n)=>e.jsx("th",{ref:n,className:$("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",s),...r}));G.displayName="TableHead";const Q=x.forwardRef(({className:s,...r},n)=>e.jsx("td",{ref:n,className:$("p-4 align-middle [&:has([role=checkbox])]:pr-0",s),...r}));Q.displayName="TableCell";const qs=x.forwardRef(({className:s,...r},n)=>e.jsx("caption",{ref:n,className:$("mt-4 text-sm text-muted-foreground",s),...r}));qs.displayName="TableCaption";const ss={queued:"unknown",dispatching:"running",running:"running",completed:"healthy",failed:"broken",canceled:"unknown",awaiting_markdown:"unknown"},as={queued:"queued",dispatching:"dispatching",running:"running",completed:"completed",failed:"failed",canceled:"canceled",awaiting_markdown:"waiting for Markdown"},Ae={"add-evals":"Add evals","enrich-paper":"Enrich paper","resolve-model-paper":"Resolve model release","review-benchmark-gaps":"Review benchmark gaps","add-benchmark":"Add benchmark"},Js={queued:Cs,dispatching:T,running:ws,completed:_e,failed:Y,canceled:ks,awaiting_markdown:Ss};function Bs({status:s}){const r=Js[s];return e.jsxs(L,{tone:ss[s],children:[e.jsx(r,{className:`mr-1 h-3.5 w-3.5 ${s==="dispatching"?"animate-spin":""}`}),as[s]]})}function Us(s){return s.status==="awaiting_markdown"?us:s.error?s.error:s.report?s.report:s.status==="completed"&&s.applied_at?"Changes applied to the paper.":s.status==="completed"?"Completed without a recorded mutation.":null}function Pe({mutationResult:s}){const r=s==null?void 0:s.skipped_configured_leaderboards;return!Array.isArray(r)||r.length===0?null:e.jsxs("div",{className:"mt-2 rounded border border-amber-500 bg-amber-50 p-2 text-xs text-amber-900",children:[e.jsxs("div",{className:"font-medium",children:["Skipped configured leaderboards (",r.length,")"]}),e.jsx("ul",{className:"mt-1 list-disc space-y-1 pl-4",children:r.map((n,l)=>e.jsxs("li",{children:[n.benchmark," · ",n.disposition," · task ",n.task_id," / dataset ",n.dataset_id,n.metric?` / ${n.metric}`:"",n.value!=null?` = ${n.value}`:"",n.detail?` — ${n.detail}`:""]},l))})]})}function Hs({autoRefresh:s}){var I;const r=pe(),[n,l]=x.useState(""),[i,d]=x.useState(""),[m,f]=x.useState(""),[p,h]=x.useState(""),[j,t]=x.useState(""),[o,w]=x.useState({}),A={trigger:n,status:i,policy_version:m,cohort_date:p,review_status:j},{data:u,isLoading:V,isFetching:ee,error:U}=K({...xe.codexPaperJobs(A),refetchInterval:s?1e4:!1,retry:!1}),F=()=>r.invalidateQueries({queryKey:M.codexPaperJobs}),se=P({mutationFn:a=>O.retryJob(a),onSuccess:F}),le=P({mutationFn:a=>O.cancelJob(a),onSuccess:F}),de=P({mutationFn:a=>O.retryTrace(a),onSuccess:F}),X=P({mutationFn:a=>O.setScheduler(a),onSuccess:F}),D=P({mutationFn:({id:a,dataset:c,task:k,metric:re})=>O.promoteBenchmarkCandidate(a,{dataset_id:Number(c),task_id:Number(k),best_metric:re.trim()}),onSuccess:F}),E=P({mutationFn:a=>O.rollbackBenchmarkCandidate(a),onSuccess:F}),ae=U instanceof Fe&&U.status===404;return e.jsxs(_,{className:"mb-8",children:[e.jsx(N,{children:e.jsxs("div",{className:"flex flex-wrap items-start justify-between gap-3",children:[e.jsxs("div",{children:[e.jsx(b,{className:"text-xl",children:"Codex paper jobs"}),e.jsx(R,{children:"Durable queue, two-stage daily workflows, traces, and benchmark-gap follow-up"})]}),ee&&!V&&e.jsxs("span",{className:"flex items-center gap-2 text-xs cron-muted",children:[e.jsx(T,{className:"h-3.5 w-3.5 animate-spin"})," Syncing with Hugging Face"]})]})}),e.jsxs(v,{children:[V&&e.jsxs("div",{className:"flex items-center justify-center py-10 cron-muted",children:[e.jsx(T,{className:"mr-2 h-5 w-5 animate-spin"})," Loading paper jobs…"]}),U&&!ae&&e.jsx("div",{className:"cron-message cron-message--error mb-4",children:U.message}),ae&&e.jsx("p",{className:"py-4 text-sm cron-muted",children:"Codex paper jobs are not enabled in this environment."}),u&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:`cron-message mb-5 ${u.scheduler.paused_at?"cron-message--error":""}`,children:e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[e.jsxs("div",{children:[e.jsxs("strong",{children:["Scheduled dispatch: ",u.scheduler.paused_at?"paused":u.scheduler.dispatch_enabled?"enabled":"disabled"]}),u.scheduler.pause_reason&&e.jsx("div",{className:"mt-1 text-xs",children:u.scheduler.pause_reason}),e.jsxs("div",{className:"mt-1 text-xs cron-muted",children:["Canary ",u.scheduler.canary_released?"released":"active"," · Queue age ",u.scheduler.queue_age_level]}),e.jsxs("div",{className:"mt-1 text-xs cron-muted",children:["Scheduled usage today ",u.scheduler.usage.current_day_tokens.toLocaleString()," tokens · ",u.scheduler.usage.mode==="enforced"?`pause threshold ${((I=u.scheduler.usage.pause_threshold_tokens)==null?void 0:I.toLocaleString())??"not established"}`:"first-week alert-only baseline"," · trailing median ",u.scheduler.usage.trailing_seven_day_median_tokens.toLocaleString()]})]}),e.jsx(y,{size:"sm",variant:u.scheduler.paused_at||!u.scheduler.dispatch_enabled?"default":"outline",disabled:X.isPending,onClick:()=>X.mutate(u.scheduler.paused_at||!u.scheduler.dispatch_enabled?"resume":"pause"),children:u.scheduler.paused_at?"Acknowledge & resume":u.scheduler.dispatch_enabled?"Pause scheduled dispatch":"Enable scheduled dispatch"})]})}),e.jsxs("div",{className:"mb-5 grid grid-cols-2 gap-3 sm:grid-cols-4 lg:grid-cols-8",children:[["queued","awaiting_markdown","dispatching","running","completed","failed","canceled"].map(a=>e.jsxs("div",{className:"cron-metric-card",children:[e.jsx("div",{className:"cron-label capitalize",children:as[a]}),e.jsx("div",{className:"mt-1 text-xl font-semibold",children:u.summary[a]})]},a)),e.jsxs("div",{className:"cron-metric-card",children:[e.jsx("div",{className:"cron-label",children:"Total"}),e.jsx("div",{className:"mt-1 text-xl font-semibold",children:u.summary.total})]})]}),e.jsxs("div",{className:"mb-5 grid gap-3 sm:grid-cols-5",children:[e.jsxs("select",{"aria-label":"Trigger",className:"rounded border px-2 py-1 text-sm",value:n,onChange:a=>l(a.target.value),children:[e.jsx("option",{value:"",children:"All triggers"}),e.jsx("option",{value:"admin",children:"Admin"}),e.jsx("option",{value:"hf-daily-cron",children:"HF daily cron"}),e.jsx("option",{value:"hf-trending-cron",children:"HF trending cron"}),e.jsx("option",{value:"benchmark-gap-cron",children:"Benchmark gap cron"}),e.jsx("option",{value:"model-release-radar",children:"Release radar"})]}),e.jsxs("select",{"aria-label":"Status",className:"rounded border px-2 py-1 text-sm",value:i,onChange:a=>d(a.target.value),children:[e.jsx("option",{value:"",children:"All statuses"}),Object.keys(ss).map(a=>e.jsx("option",{children:a},a))]}),e.jsx("input",{"aria-label":"Policy version",className:"rounded border px-2 py-1 text-sm",placeholder:"Policy version",value:m,onChange:a=>f(a.target.value)}),e.jsx("input",{"aria-label":"Cohort date",type:"date",className:"rounded border px-2 py-1 text-sm",value:p,onChange:a=>h(a.target.value)}),e.jsxs("select",{"aria-label":"Review status",className:"rounded border px-2 py-1 text-sm",value:j,onChange:a=>t(a.target.value),children:[e.jsx("option",{value:"",children:"All review states"}),e.jsx("option",{value:"unreviewed",children:"Unreviewed"}),e.jsx("option",{value:"approved",children:"Approved"}),e.jsx("option",{value:"corrected",children:"Corrected"})]})]}),u.jobs.length===0?e.jsx("p",{className:"py-8 text-center text-sm cron-muted",children:"No paper curation jobs have been submitted yet."}):e.jsxs(Ze,{children:[e.jsx(Ye,{children:e.jsxs(he,{children:[e.jsx(G,{children:"Status"}),e.jsx(G,{children:"Paper"}),e.jsx(G,{children:"Action"}),e.jsx(G,{children:"Requested"}),e.jsx(G,{children:"Execution"})]})}),e.jsx(es,{children:u.jobs.map(a=>{const c=Us(a);return e.jsxs(he,{children:[e.jsx(Q,{className:"align-top",children:e.jsx(Bs,{status:a.status})}),e.jsx(Q,{className:"min-w-[260px] align-top",children:a.paper_route?e.jsxs(e.Fragment,{children:[e.jsx(ge,{to:`/paper/${encodeURIComponent(a.paper_route)}`,className:"font-medium hover:underline",children:a.paper_title}),e.jsxs("div",{className:"mt-1 text-xs cron-muted",children:["Paper #",a.paper_id]})]}):a.kind==="review-benchmark-gaps"?e.jsx("span",{className:"font-medium",children:"Benchmark-gap backlog"}):a.kind==="add-benchmark"?e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"font-medium",children:"Benchmark candidate"}),e.jsx("div",{className:"mt-1 text-xs cron-muted",children:a.benchmark_candidate_id})]}):a.release_signal_id?e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"font-medium",children:"Release radar signal"}),e.jsxs("div",{className:"mt-1 text-xs cron-muted",children:["Signal ",a.release_signal_id]})]}):e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"font-medium",children:"Trending model discovery"}),e.jsxs("div",{className:"mt-1 text-xs cron-muted",children:["Candidate ",a.candidate_id]})]})}),e.jsxs(Q,{className:"whitespace-nowrap align-top",children:[Ae[a.kind],a.applied_at&&e.jsxs("div",{className:"mt-1 flex items-center gap-1 text-xs cron-status--healthy",children:[e.jsx(_e,{className:"h-3.5 w-3.5"})," Applied"]})]}),e.jsxs(Q,{className:"whitespace-nowrap align-top",children:[e.jsx("div",{children:g(a.created_at)}),e.jsxs("div",{className:"mt-1 text-xs cron-muted",children:["@",a.requested_by]})]}),e.jsxs(Q,{className:"max-w-[360px] align-top",children:[a.hf_job_url?e.jsxs("a",{href:a.hf_job_url,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-1 hover:underline",children:["Hugging Face Job ",e.jsx(q,{className:"h-3.5 w-3.5"})]}):e.jsx("span",{className:"cron-muted",children:"Waiting to dispatch"}),c&&e.jsx("p",{className:`mt-2 line-clamp-3 text-xs ${a.error&&a.status!=="awaiting_markdown"?"text-red-700":"cron-muted"}`,title:c,children:c}),e.jsx(Pe,{mutationResult:a.mutation_result}),e.jsxs("div",{className:"mt-2 flex gap-2",children:[["failed","canceled"].includes(a.status)&&e.jsx(y,{size:"sm",variant:"outline",onClick:()=>se.mutate(a.id),children:"Retry"}),["queued","awaiting_markdown","dispatching","running"].includes(a.status)&&e.jsx(y,{size:"sm",variant:"outline",onClick:()=>le.mutate(a.id),children:"Cancel"}),a.trace_status==="finalize_failed"&&e.jsx(y,{size:"sm",variant:"outline",onClick:()=>de.mutate(a.id),children:"Retry trace"})]})]})]},a.id)})})]}),u.workflows.length>0&&e.jsxs("div",{className:"mt-8 space-y-3",children:[e.jsx("h3",{className:"text-base font-semibold",children:"Scheduled paper workflows"}),u.workflows.map(a=>e.jsxs("details",{className:"rounded-md border p-3",children:[e.jsxs("summary",{className:"cursor-pointer text-sm font-medium",children:["Paper #",a.paper_id," · ",a.cohort_date," · ",a.status," · ",a.policy_version]}),e.jsxs("div",{className:"mt-3 space-y-3 text-xs",children:[a.error&&e.jsx("div",{className:"text-red-700",children:a.error}),a.stages.map(c=>{var k;return e.jsxs("div",{className:"rounded border p-3",children:[e.jsxs("div",{className:"font-medium",children:[Ae[c.kind]," · ",c.status," · trace ",c.trace_status," · review ",c.audit_status]}),e.jsxs("div",{className:"mt-1 cron-muted",children:["model ",c.model??"—"," · reasoning ",c.reasoning_effort??"—"," · tokens ",(c.input_tokens??0)+(c.output_tokens??0)," · duration ",c.duration_ms??0," ms · attempts ",c.attempt_count]}),c.error&&e.jsx("div",{className:"mt-2 text-red-700",children:c.error}),c.report&&e.jsx("div",{className:"mt-2 whitespace-pre-wrap rounded border p-2",children:c.report}),c.url_candidates&&e.jsxs("details",{className:"mt-2",children:[e.jsx("summary",{children:"URL candidates and provenance"}),e.jsx("pre",{className:"mt-2 max-h-52 overflow-auto whitespace-pre-wrap",children:JSON.stringify(c.url_candidates,null,2)})]}),c.validation_summary&&e.jsx("pre",{className:"mt-2 max-h-40 overflow-auto whitespace-pre-wrap",children:JSON.stringify(c.validation_summary,null,2)}),Array.isArray((k=c.validation_summary)==null?void 0:k.manual_or_legacy_evaluation_rows_affected)&&c.validation_summary.manual_or_legacy_evaluation_rows_affected.length>0&&e.jsxs("div",{className:"mt-2 rounded border border-amber-500 bg-amber-50 p-2 font-medium text-amber-900",children:["Manual or legacy evaluation rows changed: ",c.validation_summary.manual_or_legacy_evaluation_rows_affected.join(", "),". Review the evidence and before/after diff."]}),c.proposal&&e.jsx("pre",{className:"mt-2 max-h-52 overflow-auto whitespace-pre-wrap",children:JSON.stringify(c.proposal,null,2)}),e.jsx(Pe,{mutationResult:c.mutation_result}),c.mutation_result&&e.jsxs("details",{className:"mt-2",children:[e.jsx("summary",{children:"Accepted callback result and before/after state"}),e.jsx("pre",{className:"mt-2 max-h-64 overflow-auto whitespace-pre-wrap",children:JSON.stringify(c.mutation_result,null,2)})]}),c.trace_status==="complete"&&e.jsxs("a",{className:"mt-2 inline-flex items-center gap-1 hover:underline",href:O.traceUrl(c.id),target:"_blank",rel:"noreferrer",children:["Authenticated trace manifest ",e.jsx(q,{className:"h-3.5 w-3.5"})]}),c.agent_trace_url&&e.jsxs("a",{className:"mt-2 ml-3 inline-flex items-center gap-1 hover:underline",href:c.agent_trace_url,target:"_blank",rel:"noreferrer",children:["Agent trace ",e.jsx(q,{className:"h-3.5 w-3.5"})]}),c.trace_files_url&&e.jsxs("a",{className:"mt-2 ml-3 inline-flex items-center gap-1 hover:underline",href:c.trace_files_url,target:"_blank",rel:"noreferrer",children:["Trace files ",e.jsx(q,{className:"h-3.5 w-3.5"})]})]},c.id)})]})]},a.id))]}),u.benchmark_candidates.length>0&&e.jsxs("div",{className:"mt-8 space-y-3",children:[e.jsx("h3",{className:"text-base font-semibold",children:"Benchmark-gap backlog"}),u.benchmark_candidates.map(a=>{var re,fe;const c=o[a.id]??{dataset:"",task:((re=a.task_ids[0])==null?void 0:re.toString())??"",metric:""},k=Number(c.dataset)>0&&Number(c.task)>0&&c.metric.trim().length>0;return e.jsxs("div",{className:"rounded-md border p-3 text-xs",children:[e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[e.jsxs("div",{className:"font-medium",children:[a.canonical_name," · ",a.gap_type," · ",a.status]}),e.jsxs("div",{className:"cron-muted",children:[a.distinct_paper_count," paper",a.distinct_paper_count===1?"":"s"," · ",a.confidence??"unknown"," confidence"]})]}),a.canonical_url&&e.jsx("a",{className:"mt-1 block hover:underline",href:a.canonical_url,target:"_blank",rel:"noreferrer",children:a.canonical_url}),e.jsxs("div",{className:"mt-1 cron-muted",children:["Task evidence: ",a.task_ids.join(", ")||"none"," · Papers: ",a.evidence_paper_ids.join(", ")]}),a.review_reason&&e.jsxs("div",{className:"mt-1",children:["Review",a.reviewed_at?` ${g(a.reviewed_at)}`:"",": ",a.review_reason,a.deferred_until&&` · deferred until ${g(a.deferred_until)}`]}),a.resolution&&e.jsxs("div",{className:"mt-1 cron-muted",children:["Dataset #",a.resolution.dataset_id," · task #",a.resolution.task_id," · ",a.resolution.primary_metric,a.resolution.rolled_back_at&&` · rolled back ${g(a.resolution.rolled_back_at)}`]}),a.status==="promoted"&&((fe=a.resolution)==null?void 0:fe.created)&&!a.resolution.rolled_back_at&&e.jsx(y,{className:"mt-2",size:"sm",variant:"outline",disabled:E.isPending,onClick:()=>E.mutate(a.id),children:"Roll back automatic benchmark"}),!["promoted","merged"].includes(a.status)&&e.jsxs("div",{className:"mt-3 flex flex-wrap gap-2",children:[["dataset","task","metric"].map(H=>e.jsx("input",{"aria-label":`${a.canonical_name} ${H}`,className:"w-36 rounded border px-2 py-1",placeholder:H==="metric"?"Exact metric":`${H} ID`,value:c[H],onChange:rs=>w(ns=>({...ns,[a.id]:{...c,[H]:rs.target.value}}))},H)),e.jsx(y,{size:"sm",variant:"outline",disabled:!k||D.isPending,onClick:()=>D.mutate({id:a.id,...c}),children:"Promote & requeue evidence papers"})]})]},a.id)}),D.error&&e.jsx("div",{className:"cron-message cron-message--error",children:D.error.message}),E.error&&e.jsx("div",{className:"cron-message cron-message--error",children:E.error.message})]}),e.jsxs("p",{className:"mt-4 text-xs cron-muted",children:["Showing the 100 most recent jobs · Queue totals include full history · Updated ",g(u.timestamp)]})]})]})]})}function Ws(){const[s,r]=x.useState(()=>new Date().toISOString().slice(0,10)),[n,l]=x.useState(1),i=K(hs.digest(s,n));return e.jsxs("section",{className:"space-y-3 rounded border p-4",children:[e.jsx("h2",{className:"text-lg font-semibold",children:"Daily paper edits"}),e.jsxs("label",{className:"flex items-center gap-2",children:["UTC date ",e.jsx("input",{type:"date",value:s,onChange:d=>{r(d.target.value),l(1)}})]}),i.isLoading&&e.jsx("p",{children:"Loading daily summary…"}),i.error&&e.jsx("p",{role:"alert",children:i.error.message}),i.data&&e.jsxs(e.Fragment,{children:[e.jsxs("p",{children:[i.data.edits," published changes · ",i.data.papers," papers · ",i.data.contributors," contributors"]}),e.jsx("ul",{className:"space-y-1",children:i.data.rows.map((d,m)=>e.jsxs("li",{children:[e.jsxs(ge,{className:"underline",to:`/paper/${d.paper_id}`,children:["Paper ",d.paper_id]})," · @",d.actor_username??"admin"," · ",d.edits," changes"]},m))}),e.jsxs("div",{className:"flex gap-2",children:[n>1&&e.jsx(y,{variant:"outline",onClick:()=>l(n-1),children:"Previous"}),i.data.has_more&&e.jsx(y,{variant:"outline",onClick:()=>l(n+1),children:"Next"})]})]})]})}const zs=()=>{var f,p,h,j;const s=pe(),r=bs({queryKey:M.catalogAudit,queryFn:({pageParam:t})=>me.audit(t),initialPageParam:void 0,getNextPageParam:t=>t.next_cursor??void 0}),n=((f=r.data)==null?void 0:f.pages.flatMap(t=>t.events))??[],l=()=>s.invalidateQueries({queryKey:M.catalogAudit}),i=P({mutationFn:()=>me.acknowledgeAudit(),onSuccess:l}),d=P({mutationFn:t=>me.rollbackEvent(t),onSuccess:l}),m=P({mutationFn:({subject:t,suspended:o})=>xs.suspend(t,o),onSuccess:l});return e.jsxs("div",{className:"space-y-4",children:[e.jsx(Ws,{}),(d.error||m.error)&&e.jsx("p",{role:"alert",children:(p=d.error||m.error)==null?void 0:p.message}),e.jsxs(_,{children:[e.jsxs(N,{className:"flex-row items-center justify-between",children:[e.jsx(b,{children:"Catalog mutation audit"}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsxs("span",{className:"text-sm font-medium",children:[((j=(h=r.data)==null?void 0:h.pages[0])==null?void 0:j.unread_contributor_count)??0," unread contributor changes"]}),e.jsx(y,{variant:"outline",size:"sm",onClick:()=>i.mutate(),disabled:i.isPending,children:"Mark read"})]})]}),e.jsxs(v,{className:"space-y-3",children:[r.isLoading&&e.jsx("p",{children:"Loading audit history…"}),r.error&&e.jsx("p",{className:"text-destructive",children:"Audit history unavailable."}),n.map(t=>e.jsxs("article",{className:`rounded-md border p-3 ${t.operation==="delete"||t.rollback_eligible===!1?"border-red-500 bg-red-50/50":""}`,children:[e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[e.jsxs("strong",{children:[t.operation," ",t.entity_type," ",t.entity_id]}),e.jsxs("span",{className:"text-xs text-muted-foreground",children:["@",t.actor_username??t.actor_role," ·"," ",new Date(t.created_at).toLocaleString()]})]}),e.jsxs("details",{className:"mt-2 text-xs",children:[e.jsx("summary",{children:"Inspect snapshots"}),e.jsx("pre",{className:"mt-2 max-h-80 overflow-auto rounded bg-muted p-3",children:JSON.stringify({before:t.before,after:t.after},null,2)})]}),t.actor_role==="contributor"&&t.actor_hf_subject&&e.jsx(y,{className:"mt-3 mr-2",variant:"outline",size:"sm",disabled:m.isPending,onClick:()=>m.mutate({subject:t.actor_hf_subject,suspended:!t.editing_suspended}),children:t.editing_suspended?"Restore editing access":"Suspend editing access"}),!t.rollback_of_event_id&&e.jsx(y,{className:"mt-3",variant:"outline",size:"sm",onClick:()=>d.mutate(t.id),disabled:d.isPending||t.rollback_eligible===!1,children:t.rollback_eligible===!1?"Rollback conflict":"Roll back if unchanged"})]},t.id)),r.hasNextPage&&e.jsx(y,{variant:"outline",onClick:()=>r.fetchNextPage(),disabled:r.isFetchingNextPage,children:r.isFetchingNextPage?"Loading…":"Load older events"})]})]})]})},Re={hourly:"running",daily:"healthy",weekly:"degraded",systemd:"running"},Gs=({data:s,loading:r,error:n})=>{const[l,i]=x.useState("staging-current"),d={"staging-current":"Starter staging · $75 warning / $100 trip / no Environment cap","staging-production-era":"Staging with production · $15 / $20 / $25",production:"Production · $175 / $200 / $225"};if(r)return e.jsxs("div",{className:"flex items-center py-12",children:[e.jsx(T,{className:"h-6 w-6 animate-spin mr-3"}),"Loading chat compute…"]});if(n||!s)return e.jsx(_,{className:"cron-status--broken",children:e.jsx(v,{className:"pt-6",children:"Chat compute accounting is unavailable."})});const m=Math.min(100,s.effective_microusd/s.application_cap_microusd*100),f=s.circuit_state==="tripped"?"Chat disabled":s.circuit_state==="warning"?"Operator warning":"Enabled",p=s.reconciliation_state==="fresh"?"Fresh":s.reconciliation_state==="stale"?"Stale":"Unavailable";return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"grid md:grid-cols-4 gap-4",children:[e.jsxs(_,{className:s.circuit_state==="tripped"?"cron-status--broken":s.circuit_state==="warning"?"cron-status--degraded":"",children:[e.jsx(N,{children:e.jsx(b,{className:"text-sm",children:"Circuit"})}),e.jsxs(v,{children:[e.jsx("div",{className:"text-2xl font-bold",children:f}),e.jsx("p",{className:"text-xs cron-muted",children:s.trip_reason??"Policy armed"})]})]}),e.jsxs(_,{children:[e.jsx(N,{children:e.jsx(b,{className:"text-sm",children:"Month to date"})}),e.jsxs(v,{children:[e.jsx("div",{className:"text-2xl font-bold",children:C(s.effective_microusd)}),e.jsx("div",{role:"progressbar","aria-label":"Application cap used","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round(m),className:"h-2 rounded bg-muted mt-3",children:e.jsx("div",{className:"h-2 rounded bg-primary",style:{width:`${m}%`}})})]})]}),e.jsxs(_,{children:[e.jsx(N,{children:e.jsx(b,{className:"text-sm",children:"Application headroom"})}),e.jsxs(v,{children:[e.jsx("div",{className:"text-2xl font-bold",children:C(s.remaining_microusd)}),e.jsxs("p",{className:"text-xs cron-muted",children:["Cap ",C(s.application_cap_microusd)]})]})]}),e.jsxs(_,{children:[e.jsx(N,{children:e.jsx(b,{className:"text-sm",children:"Live compute"})}),e.jsxs(v,{children:[e.jsx("div",{className:"text-2xl font-bold",children:s.live_count}),e.jsxs("p",{className:"text-xs cron-muted",children:[s.termination_uncertain_count," termination uncertain"]})]})]})]}),e.jsxs(_,{children:[e.jsxs(N,{children:[e.jsx(b,{children:"Accounting and policy"}),e.jsxs(R,{children:[s.environment," · cycle ",s.billing_cycle]})]}),e.jsxs(v,{className:"grid md:grid-cols-3 gap-4 text-sm",children:[e.jsxs("div",{children:[e.jsx("strong",{children:"Environment record"}),e.jsx("br",{}),s.environment," · ",s.provider_mode==="starter_workspace"?"Starter Workspace":"Team isolated"]}),e.jsxs("label",{children:[e.jsx("strong",{children:"Policy profile"}),e.jsxs("select",{"aria-label":"Chat compute policy profile",value:l,onChange:h=>i(h.target.value),className:"block mt-1",children:[e.jsx("option",{value:"staging-current",children:"Staging now"}),e.jsx("option",{value:"staging-production-era",children:"Staging with production"}),e.jsx("option",{value:"production",children:"Production"})]}),e.jsxs("span",{className:"text-xs cron-muted",children:[d[l]," · Workspace $250"]})]}),e.jsxs("div",{children:[e.jsx("strong",{children:"Conservative estimate"}),e.jsx("br",{}),C(s.estimated_microusd)]}),e.jsxs("div",{children:[e.jsx("strong",{children:"Provider-reported floor"}),e.jsx("br",{}),C(s.provider_floor_microusd)," · ",e.jsx(J,{children:p})]}),e.jsxs("div",{children:[e.jsx("strong",{children:"Provider backstops"}),e.jsx("br",{}),s.environment_cap_microusd===null?"Starter: no Environment cap":`Environment ${C(s.environment_cap_microusd)}`," · Workspace ",C(s.workspace_cap_microusd)]}),e.jsxs("div",{children:[e.jsx("strong",{children:"Active thresholds"}),e.jsx("br",{}),"Warning ",C(s.warning_microusd)," · trip ",C(s.application_cap_microusd)]}),e.jsxs("div",{children:[e.jsx("strong",{children:"Policy allocation"}),e.jsx("br",{}),"Starter staging $75/$100 with no Environment cap · future Team staging $15/$20/$25 · production $175/$200/$225 · workspace $250"]}),e.jsxs("div",{children:[e.jsx("strong",{children:"Cycle end"}),e.jsx("br",{}),g(s.cycle_end_at)]}),e.jsxs("div",{children:[e.jsx("strong",{children:"Last metered"}),e.jsx("br",{}),s.last_metered_at?g(s.last_metered_at):"Unavailable"]}),e.jsxs("div",{children:[e.jsx("strong",{children:"Provider reconciliation"}),e.jsx("br",{}),s.last_reconciled_at?g(s.last_reconciled_at):"Unavailable",s.last_reconciliation_attempt_at?` · attempted ${g(s.last_reconciliation_attempt_at)}`:"",s.next_reconciliation_at?` · next ${g(s.next_reconciliation_at)}`:""]}),e.jsxs("div",{children:[e.jsx("strong",{children:"Burn projection"}),e.jsx("br",{}),s.burn_rate_microusd_per_hour===null?"Not enough data":`${C(s.burn_rate_microusd_per_hour)}/hour${s.projected_cap_hit_at?` · cap ${g(s.projected_cap_hit_at)}`:""}`]}),e.jsxs("div",{children:[e.jsx("strong",{children:"Prior cycle"}),e.jsx("br",{}),s.prior_cycle?`${s.prior_cycle.billing_cycle} · ${C(s.prior_cycle.effective_microusd)}`:"Not enough data"]})]})]}),e.jsxs(_,{children:[e.jsx(N,{children:e.jsx(b,{children:"Live lifecycle"})}),e.jsx(v,{className:"text-sm",children:Object.entries(s.live_states).map(([h,j])=>e.jsxs("span",{className:"mr-4",children:[h,": ",j]},h))})]}),e.jsxs(_,{children:[e.jsx(N,{children:e.jsx(b,{children:"Daily spend"})}),e.jsx(v,{children:s.daily_spend.length?e.jsx("ul",{className:"space-y-1 text-sm",children:s.daily_spend.map(h=>e.jsxs("li",{children:[h.date,": blank ",C(h.blank_pool_microusd)," · assigned ",C(h.assigned_microusd)]},h.date))}):e.jsx("p",{className:"cron-muted",children:"No compute recorded in this cycle."})})]}),e.jsxs(_,{children:[e.jsxs(N,{children:[e.jsx(b,{children:"Recent circuit events"}),e.jsx(R,{children:"Runbook: docs/chat-sandbox-spend-runbook.md"})]}),e.jsx(v,{children:s.events.length?e.jsx("ul",{className:"space-y-2 text-sm",children:s.events.map(h=>e.jsxs("li",{children:[e.jsx(J,{children:h.severity})," ",h.type," · ",g(h.created_at)]},h.id))}):e.jsx("p",{className:"cron-muted",children:"No events in this cycle."})})]})]})},Qs=({data:s,loading:r,error:n})=>{if(r)return e.jsxs("div",{className:"flex items-center py-8",children:[e.jsx(T,{className:"h-5 w-5 animate-spin mr-3"}),"Loading web-search budget…"]});if(n||!s)return e.jsx(_,{className:"cron-status--broken",children:e.jsx(v,{className:"pt-6",children:"Web-search budget accounting is unavailable."})});const l=Math.min(100,s.call_count/s.hard_limit_calls*100);return e.jsxs(_,{className:s.circuit_state==="tripped"?"cron-status--broken":s.circuit_state==="warning"||s.circuit_state==="cooldown"?"cron-status--degraded":"",children:[e.jsxs(N,{children:[e.jsx(b,{children:"Web search"}),e.jsxs(R,{children:[s.environment," · UTC cycle ",s.billing_cycle," · provider details are admin-only"]})]}),e.jsxs(v,{className:"space-y-4",children:[e.jsxs("div",{className:"grid md:grid-cols-4 gap-4 text-sm",children:[e.jsxs("div",{children:[e.jsx("strong",{children:"Circuit"}),e.jsx("br",{}),s.circuit_state,s.trip_reason?` · ${s.trip_reason}`:""]}),e.jsxs("div",{children:[e.jsx("strong",{children:"Calls"}),e.jsx("br",{}),s.call_count," / ",s.hard_limit_calls," · ",s.success_count," successful"]}),e.jsxs("div",{children:[e.jsx("strong",{children:"Remaining"}),e.jsx("br",{}),s.remaining_calls]}),e.jsxs("div",{children:[e.jsx("strong",{children:"Warning"}),e.jsx("br",{}),s.warning_calls," calls"]})]}),e.jsx("div",{role:"progressbar","aria-label":"Web-search monthly budget used","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round(l),className:"h-2 rounded bg-muted",children:e.jsx("div",{className:"h-2 rounded bg-primary",style:{width:`${l}%`}})}),e.jsxs("p",{className:"text-xs cron-muted",children:["Cycle ends ",g(s.cycle_end_at)," · provider-reported cost $",(s.provider_cost_microusd/1e6).toFixed(4),s.last_latency_ms!==null?` · last ${s.last_latency_ms} ms / ${s.last_result_count??0} results`:"",s.cooldown_until?` · cooldown until ${g(s.cooldown_until)}`:"",s.last_provider_error_class?` · last provider error ${s.last_provider_error_class}`:""]}),s.events.length>0&&e.jsx("ul",{className:"space-y-1 text-sm",children:s.events.map(i=>e.jsxs("li",{children:[i.type," · ",g(i.created_at),i.error_class?` · ${i.error_class}`:""]},i.id))})]})]})},Ks=({data:s})=>s!=null&&s.snapshot_stale?e.jsx(_,{className:"mb-6 cron-status--degraded",role:"status",children:e.jsx(v,{className:"pt-6",children:e.jsxs("div",{className:"flex items-center gap-3 text-sm",children:[e.jsx(T,{className:"h-4 w-4 animate-spin"}),e.jsxs("span",{children:["Refreshing status… Current snapshot is ",Math.ceil(s.snapshot_age_seconds)," seconds old."]})]})})}):null,Vs=(s,r)=>s!=null&&s.snapshot_stale||s!=null&&s.refreshing?5e3:r?3e4:!1,xa=()=>{const s=js(),r=pe(),[n,l]=x.useState(!0),[i,d]=x.useState(""),[m,f]=x.useState(""),[p,h]=x.useState(new Set),{user:j}=ps(),{data:t,isLoading:o,error:w}=K({...xe.cronStatus(),refetchInterval:a=>Vs(a.state.data,n),retry:!1}),A=K({queryKey:M.chatSandboxSpend(m),queryFn:()=>we.getSandboxSpend(m||void 0),refetchInterval:n?3e4:!1,retry:!1}),u=K({queryKey:M.chatWebSearchBudget,queryFn:()=>we.getWebSearchBudget(),enabled:s,refetchInterval:n?3e4:!1,retry:!1}),V=P({mutationFn:()=>Promise.all([r.cancelQueries({queryKey:M.cronStatus}).then(()=>r.fetchQuery({queryKey:M.cronStatus,queryFn:()=>gs.getCronStatus(!0),retry:!1})),r.refetchQueries({queryKey:M.all,type:"active",predicate:a=>a.queryKey[1]!==M.cronStatus[1]})])}),ee=w instanceof Fe&&w.status===401?"Unauthorized. Sign in with an allowlisted Hugging Face admin account.":w instanceof Error?w.message:void 0,U=a=>{h(c=>{const k=new Set(c);return k.has(a)?k.delete(a):k.add(a),k})},F=(t==null?void 0:t.jobs.filter(a=>a.dashboard_group==="leaderboard_sync"))??[],se=(t==null?void 0:t.jobs.filter(a=>a.category!=="manual"&&a.dashboard_group!=="leaderboard_sync"))??[],le=se.filter(a=>a.critical),de=se.filter(a=>!a.critical),X=(t==null?void 0:t.manual_operations)??[],D=!!(o||V.isPending||t!=null&&t.refreshing),E=de.reduce((a,c)=>(a[c.category]||(a[c.category]=[]),a[c.category].push(c),a),{}),ae=Object.keys(E).sort((a,c)=>{const k=["systemd","hourly","daily","weekly","backfill"];return k.indexOf(a)-k.indexOf(c)}),I=a=>e.jsx(Is,{job:a,expanded:p.has(a.job_name),onToggle:()=>U(a.job_name),autoRefresh:n},a.job_name);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",children:[e.jsx("div",{className:"mb-8",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(ne,{className:"h-8 w-8 cron-info-text"}),"Admin Dashboard"]}),e.jsx("p",{className:"mt-2 cron-muted",children:"Paper curation queue and operational health for scheduled jobs"})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(y,{asChild:!0,variant:"outline",size:"sm",children:e.jsx(ge,{to:"/autonomous-operations",children:"Autonomous operations"})}),e.jsxs(y,{variant:"outline",size:"sm",onClick:()=>l(!n),className:n?"cron-status--running":"",children:[e.jsx(ye,{className:`h-4 w-4 mr-2 ${n?"animate-spin":""}`}),"Auto-refresh ",n?"ON":"OFF"]}),e.jsxs(y,{variant:"outline",size:"sm",onClick:()=>V.mutate(),disabled:D,children:[e.jsx(ye,{className:`h-4 w-4 mr-2 ${D?"animate-spin":""}`}),"Refresh"]})]})]})}),e.jsx(_,{className:"mb-6",children:e.jsx(v,{className:"pt-6",children:e.jsxs("p",{className:"text-sm cron-muted",children:["Signed in as ",e.jsxs("span",{className:"font-semibold",children:["@",j==null?void 0:j.username]}),". Health checks prefer database freshness over log completion so silent no-work failures surface as degraded or broken. Expanded jobs include deterministic scheduler, log, lock, durable-data, throughput, backlog, and semantic contract evidence with direct operator and run links."]})})}),e.jsx(Ks,{data:t}),e.jsxs(Ps,{defaultValue:"critical-jobs",children:[e.jsxs(Ve,{className:"grid h-auto w-full grid-cols-2 sm:w-auto sm:grid-cols-5",children:[e.jsx(W,{value:"critical-jobs",children:"Critical Jobs"}),e.jsx(W,{value:"leaderboard-syncs",children:"Leaderboard Syncs"}),e.jsx(W,{value:"codex-paper-jobs",children:"Codex Paper Jobs"}),e.jsx(W,{value:"catalog-audit",children:"Catalog Audit"}),e.jsx(W,{value:"chat-compute",children:"Chat Compute"})]}),e.jsxs(z,{value:"critical-jobs",className:"mt-6",children:[o&&e.jsxs("div",{className:"flex items-center justify-center py-12",children:[e.jsx(T,{className:"h-8 w-8 animate-spin cron-info-text"}),e.jsx("span",{className:"ml-3 cron-muted",children:"Loading CRON jobs status..."})]}),w&&e.jsx(_,{className:"cron-status--broken",children:e.jsx(v,{className:"pt-6",children:e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(Y,{className:"h-5 w-5"}),e.jsx("p",{children:ee??"Failed to load CRON jobs status. Please try again."})]})})}),t&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-6 gap-4 mb-6",children:["healthy","degraded","broken","running","stuck","unknown"].map(a=>e.jsxs(_,{children:[e.jsx(N,{className:"pb-2",children:e.jsx(b,{className:"text-sm font-medium cron-muted capitalize",children:a})}),e.jsx(v,{children:e.jsx("div",{className:"text-2xl font-bold",children:t.summary[a]})})]},a))}),t.summary.critical_issues.length>0&&e.jsxs(_,{className:"mb-6 cron-status--broken",children:[e.jsx(N,{children:e.jsxs(b,{className:"flex items-center gap-2",children:[e.jsx(Ee,{className:"h-5 w-5"}),"Critical job issues"]})}),e.jsx(v,{children:e.jsx("ul",{className:"list-disc pl-5 space-y-1 text-sm",children:t.summary.critical_issues.map(a=>e.jsx("li",{children:a},a))})})]}),e.jsxs(_,{className:"mb-8",children:[e.jsx(N,{children:e.jsx(b,{className:"text-base",children:"What to check next"})}),e.jsxs(v,{children:[e.jsx("p",{className:"text-sm cron-muted",children:t.summary.what_to_check_next}),e.jsxs("p",{className:"mt-2 text-xs cron-muted flex items-center gap-2",children:[e.jsx(Me,{className:"h-4 w-4"}),"Last updated: ",g(t.timestamp)," · Health score:"," ",t.summary.health_score.toFixed(0),"%"]})]})]}),e.jsxs(_,{className:`mb-8 ${t.summary.coverage.coverage_gaps?"cron-status--broken":""}`,children:[e.jsxs(N,{children:[e.jsx(b,{className:"text-base",children:"Coverage"}),e.jsx(R,{children:"Registry and deployed scheduler inventory"})]}),e.jsxs(v,{className:"grid grid-cols-2 md:grid-cols-4 gap-4 text-sm",children:[e.jsxs("div",{children:[e.jsx("span",{className:"cron-label",children:"Registered"}),e.jsx("div",{className:"text-2xl font-bold",children:t.summary.coverage.registered_scheduled_duties})]}),e.jsxs("div",{children:[e.jsx("span",{className:"cron-label",children:"Discovered"}),e.jsx("div",{className:"text-2xl font-bold",children:t.summary.coverage.discovered_scheduled_duties})]}),e.jsxs("div",{children:[e.jsx("span",{className:"cron-label",children:"Monitored"}),e.jsx("div",{className:"text-2xl font-bold",children:t.summary.coverage.monitored_duties})]}),e.jsxs("div",{children:[e.jsx("span",{className:"cron-label",children:"Gaps"}),e.jsx("div",{className:"text-2xl font-bold",children:t.summary.coverage.coverage_gaps})]})]})]}),e.jsxs(_,{className:"mb-8",children:[e.jsxs(N,{children:[e.jsx(b,{className:"text-xl",children:"Critical jobs"}),e.jsx(R,{children:"Writers whose stale output breaks the live site"})]}),e.jsx(v,{className:"space-y-4",children:le.map(I)})]}),e.jsx("div",{className:"space-y-6",children:ae.map(a=>e.jsxs(_,{children:[e.jsx(N,{children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs(b,{className:"text-xl capitalize flex items-center gap-2",children:[e.jsx(J,{className:je(Re[a]??Re.hourly),children:a}),e.jsx("span",{children:"Supporting jobs"})]}),e.jsxs(R,{children:[E[a].length," job",E[a].length!==1?"s":""]})]})}),e.jsx(v,{className:"space-y-4",children:E[a].map(I)})]},a))}),X.length>0&&e.jsxs(_,{className:"mt-6",children:[e.jsxs(N,{children:[e.jsx(b,{className:"text-xl",children:"Manual operations"}),e.jsx(R,{children:"Visible invocation history; excluded from scheduled health and coverage"})]}),e.jsx(v,{className:"space-y-4",children:X.map(I)})]})]})]}),e.jsxs(z,{value:"leaderboard-syncs",className:"mt-6",children:[o&&e.jsxs("div",{className:"flex items-center justify-center py-12",children:[e.jsx(T,{className:"h-8 w-8 animate-spin cron-info-text"}),e.jsx("span",{className:"ml-3 cron-muted",children:"Loading leaderboard sync status..."})]}),w&&e.jsx(_,{className:"cron-status--broken",children:e.jsx(v,{className:"pt-6",children:e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(Y,{className:"h-5 w-5"}),e.jsx("p",{children:ee??"Failed to load leaderboard sync status. Please try again."})]})})}),t&&e.jsxs(_,{children:[e.jsx(N,{children:e.jsxs("div",{className:"flex items-center justify-between gap-4",children:[e.jsxs("div",{children:[e.jsx(b,{className:"text-xl",children:"Leaderboard syncs"}),e.jsx(R,{children:"Recurring imports from externally maintained benchmark leaderboards"})]}),e.jsxs(J,{children:[F.length," jobs"]})]})}),e.jsx(v,{className:"space-y-4",children:F.map(I)})]})]}),e.jsx(z,{value:"codex-paper-jobs",className:"mt-6",children:e.jsx(Hs,{autoRefresh:n})}),e.jsx(z,{value:"catalog-audit",className:"mt-6",children:e.jsx(zs,{})}),e.jsxs(z,{value:"chat-compute",className:"mt-6",children:[e.jsxs(_,{className:"mb-6",children:[e.jsxs(N,{children:[e.jsx(b,{children:"Environment record"}),e.jsx(R,{children:"Leave blank for live staging, or enter the isolated environment printed by the spend qualification command."})]}),e.jsxs(v,{className:"flex gap-2",children:[e.jsx("input",{"aria-label":"Chat compute environment record",value:i,onChange:a=>d(a.target.value),placeholder:"staging-q-example",className:"flex-1 rounded border px-3 py-2"}),e.jsx(y,{onClick:()=>f(i.trim()),children:"Load"})]})]}),e.jsx(Gs,{data:A.data,loading:A.isLoading,error:A.error}),s&&e.jsx("div",{className:"mt-6",children:e.jsx(Qs,{data:u.data,loading:u.isLoading,error:u.error})})]})]})]})})};export{Gs as ChatComputePanel,Ks as CronSnapshotNotice,Vs as cronStatusRefetchInterval,xa as default};
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/{CronDashboard-FA5RkvGJ.js → CronDashboard-BW4JZfWT.js} RENAMED
@@ -1,4 +1,4 @@
1
- import{d as c,i as r,j as s,_ as o}from"./index-D6aEInmu.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,a0 as o}from"./index-DqiWSKRu.js";/**
2
  * @license lucide-react v0.462.0 - ISC
3
  *
4
  * This source code is licensed under the ISC license.
assets/CronDashboard-aoQzJHeN.js ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import{d as U,j as e,a0 as O,b as Q,a1 as me,i as _,v as he,a2 as D,A as Le,L as ue,af as E,a3 as Je,p as Be,Q as ce,c as Ue,a as Ie,ag as He,G as We}from"./index-DqiWSKRu.js";import{u as P}from"./useMutation-s01kVLYP.js";import{t as xe,f as h,a as S,S as Pe,C as u,b as v,c as f,d as A,e as x,g as C}from"./CronDashboard-BW4JZfWT.js";import{B}from"./badge-CpkuJKw3.js";import{B as N}from"./button-D3YZ2fyV.js";import{T as ze,a as Qe,b as V,c as X}from"./tabs-CisePgtg.js";import{C as Ke,a as Ge}from"./chevron-up-CyF8Y8AT.js";import{D as ge}from"./database-a8bVJz-T.js";import{T as Ve}from"./trending-up-DfsExUmr.js";import{A as ne}from"./activity-CMRWXS32.js";import{F as _e}from"./file-text-DygGjiFE.js";import{T as de,I as Xe}from"./triangle-alert-D-HRclph.js";import{E as J}from"./external-link-CRXcmpbR.js";import{C as Z,R as ve}from"./refresh-cw-STXy0C1a.js";import{L as F}from"./loader-circle-D52ezBbD.js";import{C as pe}from"./circle-check-BLQIDlmi.js";import{u as Ye}from"./useInfiniteQuery-YJbg_oLc.js";import{c as fe}from"./chat-4qtVsasI.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 Ne=U("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/**
7
+ * @license lucide-react v0.462.0 - ISC
8
+ *
9
+ * This source code is licensed under the ISC license.
10
+ * See the LICENSE file in the root directory of this source tree.
11
+ */const Ze=U("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
12
+ * @license lucide-react v0.462.0 - ISC
13
+ *
14
+ * This source code is licensed under the ISC license.
15
+ * See the LICENSE file in the root directory of this source tree.
16
+ */const es=U("CirclePlay",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polygon",{points:"10 8 16 12 10 16 10 8",key:"1cimsy"}]]);/**
17
+ * @license lucide-react v0.462.0 - ISC
18
+ *
19
+ * This source code is licensed under the ISC license.
20
+ * See the LICENSE file in the root directory of this source tree.
21
+ */const ss=U("CircleSlash2",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M22 2 2 22",key:"y4kqgn"}]]);/**
22
+ * @license lucide-react v0.462.0 - ISC
23
+ *
24
+ * This source code is licensed under the ISC license.
25
+ * See the LICENSE file in the root directory of this source tree.
26
+ */const as=U("Clock3",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16.5 12",key:"1aq6pp"}]]);/**
27
+ * @license lucide-react v0.462.0 - ISC
28
+ *
29
+ * This source code is licensed under the ISC license.
30
+ * See the LICENSE file in the root directory of this source tree.
31
+ */const Ae=U("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
32
+ * @license lucide-react v0.462.0 - ISC
33
+ *
34
+ * This source code is licensed under the ISC license.
35
+ * See the LICENSE file in the root directory of this source tree.
36
+ */const rs=U("FileClock",[["path",{d:"M16 22h2a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v3",key:"37hlfg"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"8",cy:"16",r:"6",key:"10v15b"}],["path",{d:"M9.5 17.5 8 16.25V14",key:"1o80t2"}]]);function $({tone:s,className:r,...n}){return e.jsx(B,{variant:"outline",className:O(xe(s),r),...n})}function ie(s){return s==null?"N/A":s<60?`${s.toFixed(1)}s`:s<3600?`${(s/60).toFixed(1)}m`:`${(s/3600).toFixed(1)}h`}function Fe(s){return s.available?s.status==="completed"?s.conclusion??"completed":s.status??"unknown":"Unavailable"}function Y(s){return s.replace(/_/g," ").replace(/\b\w/g,r=>r.toUpperCase())}function be({title:s,budget:r,profile:n}){const c=r.cost_policy==="unmetered_hf"||r.budget_enforced===!1,l=Math.min(100,r.current_exposure_usd/r.ceiling_usd*100),d=c?"Unmetered HF":r.affordable_jobs===0&&r.desired_jobs>0?"No shard fits":r.affordable_jobs<r.desired_jobs?`${r.affordable_jobs} of ${r.desired_jobs} planned shards fit`:`${r.affordable_jobs} planned ${r.affordable_jobs===1?"shard fits":"shards fit"}`;return e.jsxs("div",{className:`cron-metric-card space-y-3 ${r.can_launch_planned?"":"cron-status--broken"}`,children:[e.jsxs("div",{className:"flex items-start justify-between gap-3",children:[e.jsxs("div",{children:[e.jsx("div",{className:"font-semibold",children:s}),e.jsx("div",{className:"text-xs cron-muted",children:r.window==="rolling_30_days"?"Rolling 30-day window":"All history · no automatic reset"})]}),e.jsx($,{tone:r.can_launch_planned?"healthy":"broken",children:d})]}),!c&&e.jsx("div",{role:"progressbar","aria-label":`${s} current budget exposure`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round(l),className:"h-2 rounded bg-muted",children:e.jsx("div",{className:"h-2 rounded bg-primary",style:{width:`${l}%`}})}),e.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-3 text-sm",children:[e.jsxs("div",{children:[e.jsx("span",{className:"cron-label",children:"Completed-job estimate"}),e.jsx("div",{children:S(r.spent_usd)})]}),e.jsxs("div",{children:[e.jsx("span",{className:"cron-label",children:"Active reservations"}),e.jsx("div",{children:S(r.active_reserved_usd)})]}),e.jsxs("div",{children:[e.jsx("span",{className:"cron-label",children:"Current exposure"}),e.jsx("div",{children:S(r.current_exposure_usd)})]}),e.jsxs("div",{children:[e.jsx("span",{className:"cron-label",children:"Admission policy"}),e.jsx("div",{children:c?"HF-owned · no monetary gate":`${S(r.ceiling_usd)} cap · ${S(r.headroom_usd)} headroom`})]}),e.jsxs("div",{children:[e.jsx("span",{className:"cron-label",children:"Affordable plan reserves"}),e.jsx("div",{children:S(r.planned_reserved_usd)})]}),e.jsxs("div",{children:[e.jsx("span",{className:"cron-label",children:"Projected exposure"}),e.jsx("div",{children:S(r.projected_usd)})]}),e.jsxs("div",{children:[e.jsx("span",{className:"cron-label",children:"Rate assumption"}),e.jsxs("div",{children:[S(r.hourly_rate_usd),"/hour · ",r.reservation_hours_per_job,"h"]})]}),e.jsxs("div",{children:[e.jsx("span",{className:"cron-label",children:"Next admission"}),e.jsx("div",{children:c?"Now, subject to capacity":r.next_admission_at?h(r.next_admission_at):r.affordable_jobs>0?"Now":"No scheduled admission"})]}),e.jsxs("div",{children:[e.jsx("span",{className:"cron-label",children:"Unknown terminal reserve"}),e.jsxs("div",{children:[S(r.unknown_terminal_reservation_usd??0)," · ",(r.unknown_terminal_reservation_count??0).toLocaleString()," jobs"]})]})]}),n&&e.jsxs("div",{className:"text-xs cron-muted",children:["Profile ",e.jsx("strong",{children:n.profile_id})," · max ",n.max_papers.toLocaleString()," papers · hard ",ie(n.hard_timeout_seconds)," · soft ",ie(n.soft_deadline_seconds)]}),e.jsx("p",{className:"text-xs cron-muted",children:c?"HF owns this workload, so monetary admission is disabled; concurrency and timeout limits still apply. Runtime cost remains an operational estimate.":"Projected exposure is an admission-control estimate, not a provider invoice. Each launch reserves the full timeout until actual runtime is known."})]})}const ns={healthy:pe,degraded:de,broken:Z,running:F,stuck:Z,unknown:Ze};function is({status:s,isRunning:r}){const n=r?"running":s,c=ns[n];return e.jsx(c,{className:`cron-status-icon ${xe(n)}${n==="running"?" animate-spin":""}`})}function ye({label:s,axis:r}){return e.jsxs($,{tone:r.status,title:r.reason,children:[s,": ",r.status]})}function ke({icon:s,title:r,metrics:n}){return e.jsxs("div",{children:[e.jsxs("div",{className:"cron-section-heading",children:[e.jsx(s,{className:"h-4 w-4"}),e.jsx("h4",{children:r})]}),e.jsx("div",{className:"grid grid-cols-2 gap-3",children:Object.entries(n).map(([c,l])=>e.jsxs("div",{className:"cron-metric-card",children:[e.jsx("div",{className:"cron-label",children:Y(c)}),e.jsx("div",{className:"text-lg font-semibold",children:typeof l=="number"?l.toLocaleString():l})]},c))})]})}function ts({workflow:s}){return e.jsxs("div",{children:[e.jsxs("div",{className:"cron-section-heading",children:[e.jsx(ne,{className:"h-4 w-4"}),e.jsx("h4",{children:"GitHub Actions"})]}),e.jsxs("div",{className:"cron-metric-card space-y-2 text-sm",children:[[["Workflow",s.workflow_file],["Run",s.run_id??"N/A"],["Status",Fe(s)],...s.updated_at?[["Updated",h(s.updated_at)]]:[]].map(([r,n])=>e.jsxs("div",{className:"flex items-center justify-between gap-3",children:[e.jsx("span",{className:"cron-label",children:r}),e.jsx("span",{className:r==="Workflow"?"font-mono text-xs":void 0,children:n})]},r)),s.failed_jobs&&s.failed_jobs.length>0&&e.jsxs("div",{children:[e.jsx("div",{className:"cron-label mb-1",children:"Failed jobs"}),e.jsx("div",{className:"flex gap-2 flex-wrap",children:s.failed_jobs.map(r=>e.jsx($,{tone:"broken",children:r},r))})]}),s.job_conclusions&&Object.keys(s.job_conclusions).length>0&&e.jsxs("div",{children:[e.jsx("div",{className:"cron-label mb-1",children:"Job conclusions"}),e.jsx("div",{className:"flex gap-2 flex-wrap",children:Object.entries(s.job_conclusions).map(([r,n])=>e.jsxs(B,{variant:"outline",children:[r,": ",n??"running"]},r))})]}),(s.error||s.view_error)&&e.jsx("div",{className:"cron-message cron-message--error",children:s.error??s.view_error})]})]})}const ls={COMPLETED:"healthy",ERROR:"broken",CANCELED:"broken",RUNNING:"running"},we={success:"healthy",partial:"degraded",interrupted:"degraded",infrastructure_failure:"broken",worker_failure:"broken",active:"running"};function cs({job:s}){const r=s.progress,n=(r==null?void 0:r.omitted_images)??0,c=r!=null&&r.total_papers?Math.min(100,r.processed_papers/r.total_papers*100):0;return e.jsxs("div",{className:"cron-metric-card space-y-3",children:[e.jsxs("div",{className:"flex items-start justify-between gap-3",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsxs("div",{className:"font-semibold",children:[s.mode??"unknown"," · shard ",s.shard_id??"N/A"," · attempt ",s.provider_attempt??1]}),e.jsx("div",{className:"font-mono text-xs cron-muted truncate",children:s.id})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx($,{tone:ls[s.stage]??"unknown",children:s.stage.toLowerCase()}),s.effective_outcome&&e.jsxs($,{tone:we[s.effective_outcome]??"unknown",children:["output: ",s.effective_outcome.replace(/_/g," ")]}),s.failure_cause&&e.jsxs($,{tone:we[s.effective_outcome??""]??"unknown",children:["cause: ",s.failure_cause.replace(/_/g," ")]}),s.url&&e.jsx("a",{href:s.url,target:"_blank",rel:"noreferrer","aria-label":`Open Hugging Face Job ${s.id}`,className:"cron-info-text",children:e.jsx(J,{className:"h-4 w-4"})})]})]}),r?e.jsxs(e.Fragment,{children:[e.jsxs("div",{children:[e.jsxs("div",{className:"flex justify-between gap-3 text-xs cron-muted mb-1",children:[e.jsxs("span",{children:[r.processed_papers.toLocaleString()," / ",r.total_papers.toLocaleString()," papers"]}),e.jsxs("span",{children:[c.toFixed(0),"%"]})]}),e.jsx("div",{className:"cron-progress-track",children:e.jsx("div",{className:"cron-progress-value",style:{width:`${c}%`}})})]}),e.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-2 text-sm",children:[e.jsxs("span",{children:[e.jsx("strong",{children:r.succeeded_papers.toLocaleString()})," succeeded"]}),e.jsxs("span",{children:[e.jsx("strong",{children:r.failed_papers.toLocaleString()})," failed"]}),e.jsxs("span",{children:[e.jsx("strong",{children:r.already_existed_papers.toLocaleString()})," skipped"]}),e.jsxs("span",{children:[e.jsx("strong",{children:r.extracted_images.toLocaleString()})," images"]})]}),n>0&&e.jsxs("div",{className:"text-xs cron-muted",children:[e.jsx("strong",{children:n.toLocaleString()})," unresolved image references omitted after final retry"]}),r.updated_at&&e.jsxs("div",{className:"text-xs cron-muted",children:["Progress updated ",h(r.updated_at)]}),(r.fatal_error||r.error_samples.length>0)&&e.jsxs("div",{className:"cron-message cron-message--error space-y-1",children:[r.fatal_error&&e.jsx("div",{children:r.fatal_error}),r.error_samples.map(l=>e.jsxs("div",{children:[e.jsx("span",{className:"font-mono",children:l.arxiv_id}),": ",l.error]},`${l.arxiv_id}:${l.error}`))]})]}):e.jsx("div",{className:"text-sm cron-muted",children:"Waiting for the shard progress checkpoint."}),e.jsxs("div",{className:"flex flex-wrap gap-x-4 gap-y-1 text-xs cron-muted",children:[s.hardware&&e.jsx("span",{children:s.hardware}),s.created_at&&e.jsxs("span",{children:["Created ",h(s.created_at)]}),s.duration_seconds!=null&&e.jsxs("span",{children:["Duration ",ie(s.duration_seconds)]})]}),s.stage_message&&e.jsx("div",{className:"cron-message cron-message--warning",children:s.stage_message})]})}function ds({monitor:s,loading:r,error:n}){var c,l;return e.jsxs("div",{className:"md:col-span-2",children:[e.jsxs("div",{className:"cron-section-heading",children:[e.jsx(Xe,{className:"h-4 w-4"}),e.jsx("h4",{children:"Hugging Face OCR shards"})]}),r&&e.jsxs("div",{className:"cron-metric-card flex items-center gap-2 text-sm cron-muted",children:[e.jsx(F,{className:"h-4 w-4 animate-spin"})," Loading remote Jobs…"]}),!!n&&e.jsx("div",{className:"cron-message cron-message--error",children:"Could not load Hugging Face Jobs."}),s&&!s.available&&e.jsx("div",{className:"cron-message cron-message--warning",children:s.error??"Hugging Face monitoring is unavailable."}),(s==null?void 0:s.available)&&e.jsxs(e.Fragment,{children:[s.budgets.live&&s.budgets.backfill&&e.jsxs("div",{className:"grid grid-cols-1 xl:grid-cols-2 gap-3 mb-3",children:[e.jsx(be,{title:"Live paper Markdown GPU policy",budget:s.budgets.live,profile:(c=s.selected_profiles)==null?void 0:c.live}),e.jsx(be,{title:"Full backfill GPU policy",budget:s.budgets.backfill,profile:(l=s.selected_profiles)==null?void 0:l.backfill})]}),e.jsxs("div",{className:`cron-message mb-3 ${(s.summary.unresolved_mount_failures??0)>0?"cron-message--error":""}`,children:[e.jsx("strong",{children:"Logical shard health:"})," ",(s.summary.logical_shards??0).toLocaleString()," logical shards / ",(s.summary.provider_attempts??0).toLocaleString()," provider attempts · ",(s.summary.recovered_mount_failures??0).toLocaleString()," recovered mount failures · ",(s.summary.unresolved_mount_failures??0).toLocaleString()," unresolved"]}),e.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-3 mb-3",children:Object.entries(s.summary).map(([d,g])=>e.jsxs("div",{className:"cron-metric-card",children:[e.jsx("div",{className:"cron-label",children:Y(d)}),e.jsx("div",{className:"text-lg font-semibold",children:g.toLocaleString()})]},d))}),e.jsx("p",{className:"text-xs cron-muted mb-3",children:"Efficiency and backlog-clearance costs are admission-control estimates, not provider invoices."}),s.coverage&&Object.keys(s.coverage).length>0&&e.jsx("div",{className:"grid grid-cols-1 xl:grid-cols-2 gap-3 mb-3",children:Object.values(s.coverage).map(d=>e.jsxs("div",{className:"cron-metric-card space-y-2 text-sm",children:[e.jsx("div",{className:"font-semibold",children:d.scope==="full"?"Full catalog coverage":"Recent 14-day coverage"}),e.jsxs("div",{className:"text-lg font-semibold",children:[d.coverage_percentage.toFixed(2),"%"]}),e.jsxs("div",{children:[d.canonical_markdown_count.toLocaleString()," canonical / ",d.eligible_papers.toLocaleString()," eligible · ",d.missing_count.toLocaleString()," missing"]}),e.jsxs("div",{className:"cron-muted",children:["Copied from upstream this reconciliation: ",d.copied_from_upstream_count.toLocaleString()]}),e.jsxs("div",{className:"cron-muted",children:["7-day Δ eligible ",d.eligible_delta_7d??"collecting"," · canonical ",d.canonical_delta_7d??"collecting"," · missing ",d.missing_delta_7d??"collecting"]})]},d.scope))}),s.jobs.length===0?e.jsx("div",{className:"cron-metric-card text-sm cron-muted",children:"No OCR shards have been launched yet."}):e.jsx("div",{className:"grid grid-cols-1 xl:grid-cols-2 gap-3",children:s.jobs.map(d=>e.jsx(cs,{job:d},d.id))})]})]})}function os({job:s,expanded:r,onToggle:n,autoRefresh:c=!1}){var y,i;const l=!!(s.work_metrics&&Object.keys(s.work_metrics).length),d=!!(s.db_metrics&&Object.keys(s.db_metrics).length),g=s.job_name==="paper_markdown_backfill",w=Q({...me.paperMarkdownJobs(),enabled:g,refetchInterval:c?3e4:!1,retry:!1}),j=g?(y=w.data)==null?void 0:y.budgets.live:void 0,p=(j==null?void 0:j.cost_policy)==="unmetered_hf"||(j==null?void 0:j.budget_enforced)===!1;return e.jsxs("div",{className:"cron-job-card",children:[e.jsx("button",{type:"button",className:"cron-job-summary",onClick:n,"aria-expanded":r,children:e.jsxs("div",{className:"flex items-start justify-between gap-3",children:[e.jsxs("div",{className:"flex items-start gap-3 flex-1 min-w-0",children:[e.jsx(is,{status:s.status,isRunning:s.is_running}),e.jsxs("div",{className:"flex-1 min-w-0 text-left",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-1 flex-wrap",children:[e.jsx("h3",{className:"font-semibold",children:s.display_name}),s.critical&&e.jsx(B,{variant:"outline",className:"text-[10px] uppercase tracking-wide",children:"Critical"}),s.lock_stale&&e.jsx($,{tone:"broken",children:"Held lock"}),((i=s.failure_alert)==null?void 0:i.alerting)&&e.jsx($,{tone:"broken",children:"Failure alert"}),e.jsx(ye,{label:"Execution",axis:s.execution_health}),e.jsx(ye,{label:"Output",axis:s.output_health}),r?e.jsx(Ke,{className:"h-4 w-4 cron-muted"}):e.jsx(Ge,{className:"h-4 w-4 cron-muted"})]}),e.jsx("p",{className:"text-sm cron-muted mb-2",children:s.status_reason}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-4 gap-2 text-sm cron-muted",children:[e.jsxs("span",{className:"cron-fact",children:[e.jsx(Ae,{}),"Log: ",h(s.last_run)]}),e.jsxs("span",{className:"cron-fact",children:[e.jsx(ge,{}),"DB: ",h(s.last_db_write)]}),s.recent_write_count!=null&&e.jsxs("span",{className:"cron-fact",children:[e.jsx(Ve,{}),"Recent writes: ",s.recent_write_count.toLocaleString()]}),s.duration!=null&&e.jsxs("span",{className:"cron-fact",children:[e.jsx(ne,{}),"Duration: ",ie(s.duration)]}),s.schedule&&e.jsxs("span",{className:"cron-fact md:col-span-2",children:[e.jsx(Ne,{}),e.jsx("span",{className:"font-mono text-xs",children:s.schedule})]}),s.log_status&&e.jsxs("span",{className:"cron-fact",children:[e.jsx(_e,{}),"Log status: ",s.log_status]}),s.workflow_status&&e.jsxs("span",{className:"cron-fact",children:[e.jsx(ne,{}),"Actions: ",Fe(s.workflow_status)]}),s.failure_alert&&e.jsxs("span",{className:"cron-fact md:col-span-2",children:[e.jsx(de,{}),s.failure_alert.alerting?`Last ${s.failure_alert.consecutive_failures} runs failed (alert at ${s.failure_alert.after_consecutive_failures}); latest ${h(s.failure_alert.last_failure_at)}`:`Alerts after ${s.failure_alert.after_consecutive_failures} consecutive failures (now ${s.failure_alert.consecutive_failures})`]})]}),s.work_summary&&e.jsx("div",{className:"cron-message",children:s.work_summary}),s.error&&e.jsxs("div",{className:"cron-message cron-message--error",children:[e.jsx("strong",{children:"Error: "}),s.error]}),s.diagnostics&&e.jsx("div",{className:"cron-message cron-message--warning",children:s.diagnostics}),j&&e.jsxs("div",{className:`cron-message ${j.can_launch_planned?"":"cron-message--error"}`,children:[e.jsx("strong",{children:"Live GPU policy:"})," ",p?"unmetered on HF":`${S(j.current_exposure_usd)} current / ${S(j.ceiling_usd)} cap`," · ",j.affordable_jobs," of ",j.desired_jobs," planned",p?"":` · projects ${S(j.projected_usd)} · rolling 30 days`]})]})]}),e.jsx($,{tone:s.status,children:s.status})]})}),r&&e.jsx("div",{className:"cron-job-details",children:e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"cron-section-heading",children:[e.jsx(Ne,{className:"h-4 w-4"}),e.jsx("h4",{children:"Scheduler evidence"})]}),e.jsx("div",{className:"cron-metric-card space-y-2 text-sm",children:[["Scheduler",s.execution_health.scheduler??"unknown"],["Last expected",h(s.execution_health.last_expected_at??null)],["Last started",h(s.execution_health.last_started_at??null)],["Last completed",h(s.execution_health.last_completed_at??null)],["Next expected",h(s.execution_health.next_expected_at??null)]].map(([m,b])=>e.jsxs("div",{className:"flex items-center justify-between gap-3",children:[e.jsx("span",{className:"cron-label",children:m}),e.jsx("span",{children:b})]},m))})]}),s.work_metrics&&l&&e.jsx(ke,{icon:_e,title:"Log Metrics",metrics:s.work_metrics}),s.db_metrics&&d&&e.jsx(ke,{icon:ge,title:"Database Metrics",metrics:s.db_metrics}),s.workflow_status&&e.jsx(ts,{workflow:s.workflow_status}),g&&e.jsx(ds,{monitor:w.data,loading:w.isLoading,error:w.error}),s.diagnostic_groups&&Object.values(s.diagnostic_groups).some(m=>m.length>0)&&e.jsxs("div",{className:"md:col-span-2",children:[e.jsxs("div",{className:"cron-section-heading",children:[e.jsx(de,{className:"h-4 w-4"}),e.jsx("h4",{children:"Diagnostics by cause"})]}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:Object.entries(s.diagnostic_groups).filter(([,m])=>m.length>0).map(([m,b])=>e.jsxs("div",{className:"cron-metric-card",children:[e.jsx("div",{className:"cron-label mb-1",children:Y(m)}),e.jsx("ul",{className:"list-disc pl-4 text-sm space-y-1",children:b.map(L=>e.jsx("li",{children:L},L))})]},m))})]}),s.health_findings&&s.health_findings.some(m=>m.state!=="healthy")&&e.jsxs("div",{className:"md:col-span-2",children:[e.jsxs("div",{className:"cron-section-heading",children:[e.jsx(Pe,{className:"h-4 w-4"}),e.jsx("h4",{children:"Deterministic contract findings"})]}),e.jsxs("div",{className:"cron-metric-card space-y-3 text-sm",children:[s.health_findings.filter(m=>m.state!=="healthy").map(m=>e.jsxs("div",{children:[e.jsx($,{tone:m.state,children:m.state})," ",e.jsx("strong",{children:Y(m.contract)}),": ",m.summary,Object.entries(m.evidence).length>0&&e.jsx("div",{className:"mt-1 text-xs cron-muted",children:Object.entries(m.evidence).map(([b,L])=>e.jsxs("span",{className:"mr-3",children:[Y(b),": ",String(L)]},b))})]},`${m.plane}-${m.contract}`)),e.jsxs("div",{className:"flex gap-4",children:[s.operator_url&&e.jsxs("a",{className:"cron-info-text inline-flex items-center gap-1",href:s.operator_url,children:["Open operator ",e.jsx(J,{className:"h-3.5 w-3.5"})]}),s.run_url&&e.jsxs("a",{className:"cron-info-text inline-flex items-center gap-1",href:s.run_url,target:"_blank",rel:"noreferrer",children:["Open run ",e.jsx(J,{className:"h-3.5 w-3.5"})]})]})]})]})]})})]})}const Re=_.forwardRef(({className:s,...r},n)=>e.jsx("div",{className:"relative w-full overflow-auto",children:e.jsx("table",{ref:n,className:O("w-full caption-bottom text-sm",s),...r})}));Re.displayName="Table";const Te=_.forwardRef(({className:s,...r},n)=>e.jsx("thead",{ref:n,className:O("[&_tr]:border-b",s),...r}));Te.displayName="TableHeader";const Ee=_.forwardRef(({className:s,...r},n)=>e.jsx("tbody",{ref:n,className:O("[&_tr:last-child]:border-0",s),...r}));Ee.displayName="TableBody";const ms=_.forwardRef(({className:s,...r},n)=>e.jsx("tfoot",{ref:n,className:O("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",s),...r}));ms.displayName="TableFooter";const oe=_.forwardRef(({className:s,...r},n)=>e.jsx("tr",{ref:n,className:O("border-b transition-colors data-[state=selected]:bg-muted hover:bg-muted/50",s),...r}));oe.displayName="TableRow";const W=_.forwardRef(({className:s,...r},n)=>e.jsx("th",{ref:n,className:O("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",s),...r}));W.displayName="TableHead";const z=_.forwardRef(({className:s,...r},n)=>e.jsx("td",{ref:n,className:O("p-4 align-middle [&:has([role=checkbox])]:pr-0",s),...r}));z.displayName="TableCell";const hs=_.forwardRef(({className:s,...r},n)=>e.jsx("caption",{ref:n,className:O("mt-4 text-sm text-muted-foreground",s),...r}));hs.displayName="TableCaption";const Oe={queued:"unknown",dispatching:"running",running:"running",completed:"healthy",failed:"broken",canceled:"unknown",awaiting_markdown:"unknown"},Me={queued:"queued",dispatching:"dispatching",running:"running",completed:"completed",failed:"failed",canceled:"canceled",awaiting_markdown:"waiting for Markdown"},Ce={"add-evals":"Add evals","enrich-paper":"Enrich paper","resolve-model-paper":"Resolve model release","review-benchmark-gaps":"Review benchmark gaps","add-benchmark":"Add benchmark"},us={queued:as,dispatching:F,running:es,completed:pe,failed:Z,canceled:ss,awaiting_markdown:rs};function xs({status:s}){const r=us[s];return e.jsxs($,{tone:Oe[s],children:[e.jsx(r,{className:`mr-1 h-3.5 w-3.5 ${s==="dispatching"?"animate-spin":""}`}),Me[s]]})}function ps(s){return s.status==="awaiting_markdown"?Je:s.error?s.error:s.report?s.report:s.status==="completed"&&s.applied_at?"Changes applied to the paper.":s.status==="completed"?"Completed without a recorded mutation.":null}function Se({mutationResult:s}){const r=s==null?void 0:s.skipped_configured_leaderboards;return!Array.isArray(r)||r.length===0?null:e.jsxs("div",{className:"mt-2 rounded border border-amber-500 bg-amber-50 p-2 text-xs text-amber-900",children:[e.jsxs("div",{className:"font-medium",children:["Skipped configured leaderboards (",r.length,")"]}),e.jsx("ul",{className:"mt-1 list-disc space-y-1 pl-4",children:r.map((n,c)=>e.jsxs("li",{children:[n.benchmark," · ",n.disposition," · task ",n.task_id," / dataset ",n.dataset_id,n.metric?` / ${n.metric}`:"",n.value!=null?` = ${n.value}`:"",n.detail?` — ${n.detail}`:""]},c))})]})}function js({autoRefresh:s}){var q;const r=he(),[n,c]=_.useState(""),[l,d]=_.useState(""),[g,w]=_.useState(""),[j,p]=_.useState(""),[y,i]=_.useState(""),[m,b]=_.useState({}),L={trigger:n,status:l,policy_version:g,cohort_date:j,review_status:y},{data:o,isLoading:K,isFetching:ee,error:I}=Q({...me.codexPaperJobs(L),refetchInterval:s?1e4:!1,retry:!1}),R=()=>r.invalidateQueries({queryKey:E.codexPaperJobs}),se=P({mutationFn:a=>D.retryJob(a),onSuccess:R}),te=P({mutationFn:a=>D.cancelJob(a),onSuccess:R}),le=P({mutationFn:a=>D.retryTrace(a),onSuccess:R}),G=P({mutationFn:a=>D.setScheduler(a),onSuccess:R}),M=P({mutationFn:({id:a,dataset:t,task:k,metric:re})=>D.promoteBenchmarkCandidate(a,{dataset_id:Number(t),task_id:Number(k),best_metric:re.trim()}),onSuccess:R}),T=P({mutationFn:a=>D.rollbackBenchmarkCandidate(a),onSuccess:R}),ae=I instanceof Le&&I.status===404;return e.jsxs(u,{className:"mb-8",children:[e.jsx(v,{children:e.jsxs("div",{className:"flex flex-wrap items-start justify-between gap-3",children:[e.jsxs("div",{children:[e.jsx(f,{className:"text-xl",children:"Codex paper jobs"}),e.jsx(A,{children:"Durable queue, two-stage daily workflows, traces, and benchmark-gap follow-up"})]}),ee&&!K&&e.jsxs("span",{className:"flex items-center gap-2 text-xs cron-muted",children:[e.jsx(F,{className:"h-3.5 w-3.5 animate-spin"})," Syncing with Hugging Face"]})]})}),e.jsxs(x,{children:[K&&e.jsxs("div",{className:"flex items-center justify-center py-10 cron-muted",children:[e.jsx(F,{className:"mr-2 h-5 w-5 animate-spin"})," Loading paper jobs…"]}),I&&!ae&&e.jsx("div",{className:"cron-message cron-message--error mb-4",children:I.message}),ae&&e.jsx("p",{className:"py-4 text-sm cron-muted",children:"Codex paper jobs are not enabled in this environment."}),o&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:`cron-message mb-5 ${o.scheduler.paused_at?"cron-message--error":""}`,children:e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[e.jsxs("div",{children:[e.jsxs("strong",{children:["Scheduled dispatch: ",o.scheduler.paused_at?"paused":o.scheduler.dispatch_enabled?"enabled":"disabled"]}),o.scheduler.pause_reason&&e.jsx("div",{className:"mt-1 text-xs",children:o.scheduler.pause_reason}),e.jsxs("div",{className:"mt-1 text-xs cron-muted",children:["Canary ",o.scheduler.canary_released?"released":"active"," · Queue age ",o.scheduler.queue_age_level]}),e.jsxs("div",{className:"mt-1 text-xs cron-muted",children:["Scheduled usage today ",o.scheduler.usage.current_day_tokens.toLocaleString()," tokens · ",o.scheduler.usage.mode==="enforced"?`pause threshold ${((q=o.scheduler.usage.pause_threshold_tokens)==null?void 0:q.toLocaleString())??"not established"}`:"first-week alert-only baseline"," · trailing median ",o.scheduler.usage.trailing_seven_day_median_tokens.toLocaleString()]})]}),e.jsx(N,{size:"sm",variant:o.scheduler.paused_at||!o.scheduler.dispatch_enabled?"default":"outline",disabled:G.isPending,onClick:()=>G.mutate(o.scheduler.paused_at||!o.scheduler.dispatch_enabled?"resume":"pause"),children:o.scheduler.paused_at?"Acknowledge & resume":o.scheduler.dispatch_enabled?"Pause scheduled dispatch":"Enable scheduled dispatch"})]})}),e.jsxs("div",{className:"mb-5 grid grid-cols-2 gap-3 sm:grid-cols-4 lg:grid-cols-8",children:[["queued","awaiting_markdown","dispatching","running","completed","failed","canceled"].map(a=>e.jsxs("div",{className:"cron-metric-card",children:[e.jsx("div",{className:"cron-label capitalize",children:Me[a]}),e.jsx("div",{className:"mt-1 text-xl font-semibold",children:o.summary[a]})]},a)),e.jsxs("div",{className:"cron-metric-card",children:[e.jsx("div",{className:"cron-label",children:"Total"}),e.jsx("div",{className:"mt-1 text-xl font-semibold",children:o.summary.total})]})]}),e.jsxs("div",{className:"mb-5 grid gap-3 sm:grid-cols-5",children:[e.jsxs("select",{"aria-label":"Trigger",className:"rounded border px-2 py-1 text-sm",value:n,onChange:a=>c(a.target.value),children:[e.jsx("option",{value:"",children:"All triggers"}),e.jsx("option",{value:"admin",children:"Admin"}),e.jsx("option",{value:"hf-daily-cron",children:"HF daily cron"}),e.jsx("option",{value:"hf-trending-cron",children:"HF trending cron"}),e.jsx("option",{value:"benchmark-gap-cron",children:"Benchmark gap cron"}),e.jsx("option",{value:"model-release-radar",children:"Release radar"})]}),e.jsxs("select",{"aria-label":"Status",className:"rounded border px-2 py-1 text-sm",value:l,onChange:a=>d(a.target.value),children:[e.jsx("option",{value:"",children:"All statuses"}),Object.keys(Oe).map(a=>e.jsx("option",{children:a},a))]}),e.jsx("input",{"aria-label":"Policy version",className:"rounded border px-2 py-1 text-sm",placeholder:"Policy version",value:g,onChange:a=>w(a.target.value)}),e.jsx("input",{"aria-label":"Cohort date",type:"date",className:"rounded border px-2 py-1 text-sm",value:j,onChange:a=>p(a.target.value)}),e.jsxs("select",{"aria-label":"Review status",className:"rounded border px-2 py-1 text-sm",value:y,onChange:a=>i(a.target.value),children:[e.jsx("option",{value:"",children:"All review states"}),e.jsx("option",{value:"unreviewed",children:"Unreviewed"}),e.jsx("option",{value:"approved",children:"Approved"}),e.jsx("option",{value:"corrected",children:"Corrected"})]})]}),o.jobs.length===0?e.jsx("p",{className:"py-8 text-center text-sm cron-muted",children:"No paper curation jobs have been submitted yet."}):e.jsxs(Re,{children:[e.jsx(Te,{children:e.jsxs(oe,{children:[e.jsx(W,{children:"Status"}),e.jsx(W,{children:"Paper"}),e.jsx(W,{children:"Action"}),e.jsx(W,{children:"Requested"}),e.jsx(W,{children:"Execution"})]})}),e.jsx(Ee,{children:o.jobs.map(a=>{const t=ps(a);return e.jsxs(oe,{children:[e.jsx(z,{className:"align-top",children:e.jsx(xs,{status:a.status})}),e.jsx(z,{className:"min-w-[260px] align-top",children:a.paper_route?e.jsxs(e.Fragment,{children:[e.jsx(ue,{to:`/paper/${encodeURIComponent(a.paper_route)}`,className:"font-medium hover:underline",children:a.paper_title}),e.jsxs("div",{className:"mt-1 text-xs cron-muted",children:["Paper #",a.paper_id]})]}):a.kind==="review-benchmark-gaps"?e.jsx("span",{className:"font-medium",children:"Benchmark-gap backlog"}):a.kind==="add-benchmark"?e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"font-medium",children:"Benchmark candidate"}),e.jsx("div",{className:"mt-1 text-xs cron-muted",children:a.benchmark_candidate_id})]}):a.release_signal_id?e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"font-medium",children:"Release radar signal"}),e.jsxs("div",{className:"mt-1 text-xs cron-muted",children:["Signal ",a.release_signal_id]})]}):e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"font-medium",children:"Trending model discovery"}),e.jsxs("div",{className:"mt-1 text-xs cron-muted",children:["Candidate ",a.candidate_id]})]})}),e.jsxs(z,{className:"whitespace-nowrap align-top",children:[Ce[a.kind],a.applied_at&&e.jsxs("div",{className:"mt-1 flex items-center gap-1 text-xs cron-status--healthy",children:[e.jsx(pe,{className:"h-3.5 w-3.5"})," Applied"]})]}),e.jsxs(z,{className:"whitespace-nowrap align-top",children:[e.jsx("div",{children:h(a.created_at)}),e.jsxs("div",{className:"mt-1 text-xs cron-muted",children:["@",a.requested_by]})]}),e.jsxs(z,{className:"max-w-[360px] align-top",children:[a.hf_job_url?e.jsxs("a",{href:a.hf_job_url,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-1 hover:underline",children:["Hugging Face Job ",e.jsx(J,{className:"h-3.5 w-3.5"})]}):e.jsx("span",{className:"cron-muted",children:"Waiting to dispatch"}),t&&e.jsx("p",{className:`mt-2 line-clamp-3 text-xs ${a.error&&a.status!=="awaiting_markdown"?"text-red-700":"cron-muted"}`,title:t,children:t}),e.jsx(Se,{mutationResult:a.mutation_result}),e.jsxs("div",{className:"mt-2 flex gap-2",children:[["failed","canceled"].includes(a.status)&&e.jsx(N,{size:"sm",variant:"outline",onClick:()=>se.mutate(a.id),children:"Retry"}),["queued","awaiting_markdown","dispatching","running"].includes(a.status)&&e.jsx(N,{size:"sm",variant:"outline",onClick:()=>te.mutate(a.id),children:"Cancel"}),a.trace_status==="finalize_failed"&&e.jsx(N,{size:"sm",variant:"outline",onClick:()=>le.mutate(a.id),children:"Retry trace"})]})]})]},a.id)})})]}),o.workflows.length>0&&e.jsxs("div",{className:"mt-8 space-y-3",children:[e.jsx("h3",{className:"text-base font-semibold",children:"Scheduled paper workflows"}),o.workflows.map(a=>e.jsxs("details",{className:"rounded-md border p-3",children:[e.jsxs("summary",{className:"cursor-pointer text-sm font-medium",children:["Paper #",a.paper_id," · ",a.cohort_date," · ",a.status," · ",a.policy_version]}),e.jsxs("div",{className:"mt-3 space-y-3 text-xs",children:[a.error&&e.jsx("div",{className:"text-red-700",children:a.error}),a.stages.map(t=>{var k;return e.jsxs("div",{className:"rounded border p-3",children:[e.jsxs("div",{className:"font-medium",children:[Ce[t.kind]," · ",t.status," · trace ",t.trace_status," · review ",t.audit_status]}),e.jsxs("div",{className:"mt-1 cron-muted",children:["model ",t.model??"—"," · reasoning ",t.reasoning_effort??"—"," · tokens ",(t.input_tokens??0)+(t.output_tokens??0)," · duration ",t.duration_ms??0," ms · attempts ",t.attempt_count]}),t.error&&e.jsx("div",{className:"mt-2 text-red-700",children:t.error}),t.report&&e.jsx("div",{className:"mt-2 whitespace-pre-wrap rounded border p-2",children:t.report}),t.url_candidates&&e.jsxs("details",{className:"mt-2",children:[e.jsx("summary",{children:"URL candidates and provenance"}),e.jsx("pre",{className:"mt-2 max-h-52 overflow-auto whitespace-pre-wrap",children:JSON.stringify(t.url_candidates,null,2)})]}),t.validation_summary&&e.jsx("pre",{className:"mt-2 max-h-40 overflow-auto whitespace-pre-wrap",children:JSON.stringify(t.validation_summary,null,2)}),Array.isArray((k=t.validation_summary)==null?void 0:k.manual_or_legacy_evaluation_rows_affected)&&t.validation_summary.manual_or_legacy_evaluation_rows_affected.length>0&&e.jsxs("div",{className:"mt-2 rounded border border-amber-500 bg-amber-50 p-2 font-medium text-amber-900",children:["Manual or legacy evaluation rows changed: ",t.validation_summary.manual_or_legacy_evaluation_rows_affected.join(", "),". Review the evidence and before/after diff."]}),t.proposal&&e.jsx("pre",{className:"mt-2 max-h-52 overflow-auto whitespace-pre-wrap",children:JSON.stringify(t.proposal,null,2)}),e.jsx(Se,{mutationResult:t.mutation_result}),t.mutation_result&&e.jsxs("details",{className:"mt-2",children:[e.jsx("summary",{children:"Accepted callback result and before/after state"}),e.jsx("pre",{className:"mt-2 max-h-64 overflow-auto whitespace-pre-wrap",children:JSON.stringify(t.mutation_result,null,2)})]}),t.trace_status==="complete"&&e.jsxs("a",{className:"mt-2 inline-flex items-center gap-1 hover:underline",href:D.traceUrl(t.id),target:"_blank",rel:"noreferrer",children:["Authenticated trace manifest ",e.jsx(J,{className:"h-3.5 w-3.5"})]}),t.agent_trace_url&&e.jsxs("a",{className:"mt-2 ml-3 inline-flex items-center gap-1 hover:underline",href:t.agent_trace_url,target:"_blank",rel:"noreferrer",children:["Agent trace ",e.jsx(J,{className:"h-3.5 w-3.5"})]}),t.trace_files_url&&e.jsxs("a",{className:"mt-2 ml-3 inline-flex items-center gap-1 hover:underline",href:t.trace_files_url,target:"_blank",rel:"noreferrer",children:["Trace files ",e.jsx(J,{className:"h-3.5 w-3.5"})]})]},t.id)})]})]},a.id))]}),o.benchmark_candidates.length>0&&e.jsxs("div",{className:"mt-8 space-y-3",children:[e.jsx("h3",{className:"text-base font-semibold",children:"Benchmark-gap backlog"}),o.benchmark_candidates.map(a=>{var re,je;const t=m[a.id]??{dataset:"",task:((re=a.task_ids[0])==null?void 0:re.toString())??"",metric:""},k=Number(t.dataset)>0&&Number(t.task)>0&&t.metric.trim().length>0;return e.jsxs("div",{className:"rounded-md border p-3 text-xs",children:[e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[e.jsxs("div",{className:"font-medium",children:[a.canonical_name," · ",a.gap_type," · ",a.status]}),e.jsxs("div",{className:"cron-muted",children:[a.distinct_paper_count," paper",a.distinct_paper_count===1?"":"s"," · ",a.confidence??"unknown"," confidence"]})]}),a.canonical_url&&e.jsx("a",{className:"mt-1 block hover:underline",href:a.canonical_url,target:"_blank",rel:"noreferrer",children:a.canonical_url}),e.jsxs("div",{className:"mt-1 cron-muted",children:["Task evidence: ",a.task_ids.join(", ")||"none"," · Papers: ",a.evidence_paper_ids.join(", ")]}),a.review_reason&&e.jsxs("div",{className:"mt-1",children:["Review",a.reviewed_at?` ${h(a.reviewed_at)}`:"",": ",a.review_reason,a.deferred_until&&` · deferred until ${h(a.deferred_until)}`]}),a.resolution&&e.jsxs("div",{className:"mt-1 cron-muted",children:["Dataset #",a.resolution.dataset_id," · task #",a.resolution.task_id," · ",a.resolution.primary_metric,a.resolution.rolled_back_at&&` · rolled back ${h(a.resolution.rolled_back_at)}`]}),a.status==="promoted"&&((je=a.resolution)==null?void 0:je.created)&&!a.resolution.rolled_back_at&&e.jsx(N,{className:"mt-2",size:"sm",variant:"outline",disabled:T.isPending,onClick:()=>T.mutate(a.id),children:"Roll back automatic benchmark"}),!["promoted","merged"].includes(a.status)&&e.jsxs("div",{className:"mt-3 flex flex-wrap gap-2",children:[["dataset","task","metric"].map(H=>e.jsx("input",{"aria-label":`${a.canonical_name} ${H}`,className:"w-36 rounded border px-2 py-1",placeholder:H==="metric"?"Exact metric":`${H} ID`,value:t[H],onChange:qe=>b(De=>({...De,[a.id]:{...t,[H]:qe.target.value}}))},H)),e.jsx(N,{size:"sm",variant:"outline",disabled:!k||M.isPending,onClick:()=>M.mutate({id:a.id,...t}),children:"Promote & requeue evidence papers"})]})]},a.id)}),M.error&&e.jsx("div",{className:"cron-message cron-message--error",children:M.error.message}),T.error&&e.jsx("div",{className:"cron-message cron-message--error",children:T.error.message})]}),e.jsxs("p",{className:"mt-4 text-xs cron-muted",children:["Showing the 100 most recent jobs · Queue totals include full history · Updated ",h(o.timestamp)]})]})]})]})}function gs(){const[s,r]=_.useState(()=>new Date().toISOString().slice(0,10)),[n,c]=_.useState(1),l=Q(Be.digest(s,n));return e.jsxs("section",{className:"space-y-3 rounded border p-4",children:[e.jsx("h2",{className:"text-lg font-semibold",children:"Daily paper edits"}),e.jsxs("label",{className:"flex items-center gap-2",children:["UTC date ",e.jsx("input",{type:"date",value:s,onChange:d=>{r(d.target.value),c(1)}})]}),l.isLoading&&e.jsx("p",{children:"Loading daily summary…"}),l.error&&e.jsx("p",{role:"alert",children:l.error.message}),l.data&&e.jsxs(e.Fragment,{children:[e.jsxs("p",{children:[l.data.edits," published changes · ",l.data.papers," papers · ",l.data.contributors," contributors"]}),e.jsx("ul",{className:"space-y-1",children:l.data.rows.map((d,g)=>e.jsxs("li",{children:[e.jsxs(ue,{className:"underline",to:`/paper/${d.paper_id}`,children:["Paper ",d.paper_id]})," · @",d.actor_username??"admin"," · ",d.edits," changes"]},g))}),e.jsxs("div",{className:"flex gap-2",children:[n>1&&e.jsx(N,{variant:"outline",onClick:()=>c(n-1),children:"Previous"}),l.data.has_more&&e.jsx(N,{variant:"outline",onClick:()=>c(n+1),children:"Next"})]})]})]})}const _s=()=>{var w,j,p,y;const s=he(),r=Ye({queryKey:E.catalogAudit,queryFn:({pageParam:i})=>ce.audit(i),initialPageParam:void 0,getNextPageParam:i=>i.next_cursor??void 0}),n=((w=r.data)==null?void 0:w.pages.flatMap(i=>i.events))??[],c=()=>s.invalidateQueries({queryKey:E.catalogAudit}),l=P({mutationFn:()=>ce.acknowledgeAudit(),onSuccess:c}),d=P({mutationFn:i=>ce.rollbackEvent(i),onSuccess:c}),g=P({mutationFn:({subject:i,suspended:m})=>Ue.suspend(i,m),onSuccess:c});return e.jsxs("div",{className:"space-y-4",children:[e.jsx(gs,{}),(d.error||g.error)&&e.jsx("p",{role:"alert",children:(j=d.error||g.error)==null?void 0:j.message}),e.jsxs(u,{children:[e.jsxs(v,{className:"flex-row items-center justify-between",children:[e.jsx(f,{children:"Catalog mutation audit"}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsxs("span",{className:"text-sm font-medium",children:[((y=(p=r.data)==null?void 0:p.pages[0])==null?void 0:y.unread_contributor_count)??0," unread contributor changes"]}),e.jsx(N,{variant:"outline",size:"sm",onClick:()=>l.mutate(),disabled:l.isPending,children:"Mark read"})]})]}),e.jsxs(x,{className:"space-y-3",children:[r.isLoading&&e.jsx("p",{children:"Loading audit history…"}),r.error&&e.jsx("p",{className:"text-destructive",children:"Audit history unavailable."}),n.map(i=>e.jsxs("article",{className:`rounded-md border p-3 ${i.operation==="delete"||i.rollback_eligible===!1?"border-red-500 bg-red-50/50":""}`,children:[e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[e.jsxs("strong",{children:[i.operation," ",i.entity_type," ",i.entity_id]}),e.jsxs("span",{className:"text-xs text-muted-foreground",children:["@",i.actor_username??i.actor_role," ·"," ",new Date(i.created_at).toLocaleString()]})]}),e.jsxs("details",{className:"mt-2 text-xs",children:[e.jsx("summary",{children:"Inspect snapshots"}),e.jsx("pre",{className:"mt-2 max-h-80 overflow-auto rounded bg-muted p-3",children:JSON.stringify({before:i.before,after:i.after},null,2)})]}),i.actor_role==="contributor"&&i.actor_hf_subject&&e.jsx(N,{className:"mt-3 mr-2",variant:"outline",size:"sm",disabled:g.isPending,onClick:()=>g.mutate({subject:i.actor_hf_subject,suspended:!i.editing_suspended}),children:i.editing_suspended?"Restore editing access":"Suspend editing access"}),!i.rollback_of_event_id&&e.jsx(N,{className:"mt-3",variant:"outline",size:"sm",onClick:()=>d.mutate(i.id),disabled:d.isPending||i.rollback_eligible===!1,children:i.rollback_eligible===!1?"Rollback conflict":"Roll back if unchanged"})]},i.id)),r.hasNextPage&&e.jsx(N,{variant:"outline",onClick:()=>r.fetchNextPage(),disabled:r.isFetchingNextPage,children:r.isFetchingNextPage?"Loading…":"Load older events"})]})]})]})},$e={hourly:"running",daily:"healthy",weekly:"degraded",systemd:"running"},vs=({data:s,loading:r,error:n})=>{const[c,l]=_.useState("staging-current"),d={"staging-current":"Starter staging · $75 warning / $100 trip / no Environment cap","staging-production-era":"Staging with production · $15 / $20 / $25",production:"Production · $175 / $200 / $225"};if(r)return e.jsxs("div",{className:"flex items-center py-12",children:[e.jsx(F,{className:"h-6 w-6 animate-spin mr-3"}),"Loading chat compute…"]});if(n||!s)return e.jsx(u,{className:"cron-status--broken",children:e.jsx(x,{className:"pt-6",children:"Chat compute accounting is unavailable."})});const g=Math.min(100,s.effective_microusd/s.application_cap_microusd*100),w=s.circuit_state==="tripped"?"Chat disabled":s.circuit_state==="warning"?"Operator warning":"Enabled",j=s.reconciliation_state==="fresh"?"Fresh":s.reconciliation_state==="stale"?"Stale":"Unavailable";return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"grid md:grid-cols-4 gap-4",children:[e.jsxs(u,{className:s.circuit_state==="tripped"?"cron-status--broken":s.circuit_state==="warning"?"cron-status--degraded":"",children:[e.jsx(v,{children:e.jsx(f,{className:"text-sm",children:"Circuit"})}),e.jsxs(x,{children:[e.jsx("div",{className:"text-2xl font-bold",children:w}),e.jsx("p",{className:"text-xs cron-muted",children:s.trip_reason??"Policy armed"})]})]}),e.jsxs(u,{children:[e.jsx(v,{children:e.jsx(f,{className:"text-sm",children:"Month to date"})}),e.jsxs(x,{children:[e.jsx("div",{className:"text-2xl font-bold",children:C(s.effective_microusd)}),e.jsx("div",{role:"progressbar","aria-label":"Application cap used","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round(g),className:"h-2 rounded bg-muted mt-3",children:e.jsx("div",{className:"h-2 rounded bg-primary",style:{width:`${g}%`}})})]})]}),e.jsxs(u,{children:[e.jsx(v,{children:e.jsx(f,{className:"text-sm",children:"Application headroom"})}),e.jsxs(x,{children:[e.jsx("div",{className:"text-2xl font-bold",children:C(s.remaining_microusd)}),e.jsxs("p",{className:"text-xs cron-muted",children:["Cap ",C(s.application_cap_microusd)]})]})]}),e.jsxs(u,{children:[e.jsx(v,{children:e.jsx(f,{className:"text-sm",children:"Live compute"})}),e.jsxs(x,{children:[e.jsx("div",{className:"text-2xl font-bold",children:s.live_count}),e.jsxs("p",{className:"text-xs cron-muted",children:[s.termination_uncertain_count," termination uncertain"]})]})]})]}),e.jsxs(u,{children:[e.jsxs(v,{children:[e.jsx(f,{children:"Accounting and policy"}),e.jsxs(A,{children:[s.environment," · cycle ",s.billing_cycle]})]}),e.jsxs(x,{className:"grid md:grid-cols-3 gap-4 text-sm",children:[e.jsxs("div",{children:[e.jsx("strong",{children:"Environment record"}),e.jsx("br",{}),s.environment," · ",s.provider_mode==="starter_workspace"?"Starter Workspace":"Team isolated"]}),e.jsxs("label",{children:[e.jsx("strong",{children:"Policy profile"}),e.jsxs("select",{"aria-label":"Chat compute policy profile",value:c,onChange:p=>l(p.target.value),className:"block mt-1",children:[e.jsx("option",{value:"staging-current",children:"Staging now"}),e.jsx("option",{value:"staging-production-era",children:"Staging with production"}),e.jsx("option",{value:"production",children:"Production"})]}),e.jsxs("span",{className:"text-xs cron-muted",children:[d[c]," · Workspace $250"]})]}),e.jsxs("div",{children:[e.jsx("strong",{children:"Conservative estimate"}),e.jsx("br",{}),C(s.estimated_microusd)]}),e.jsxs("div",{children:[e.jsx("strong",{children:"Provider-reported floor"}),e.jsx("br",{}),C(s.provider_floor_microusd)," · ",e.jsx(B,{children:j})]}),e.jsxs("div",{children:[e.jsx("strong",{children:"Provider backstops"}),e.jsx("br",{}),s.environment_cap_microusd===null?"Starter: no Environment cap":`Environment ${C(s.environment_cap_microusd)}`," · Workspace ",C(s.workspace_cap_microusd)]}),e.jsxs("div",{children:[e.jsx("strong",{children:"Active thresholds"}),e.jsx("br",{}),"Warning ",C(s.warning_microusd)," · trip ",C(s.application_cap_microusd)]}),e.jsxs("div",{children:[e.jsx("strong",{children:"Policy allocation"}),e.jsx("br",{}),"Starter staging $75/$100 with no Environment cap · future Team staging $15/$20/$25 · production $175/$200/$225 · workspace $250"]}),e.jsxs("div",{children:[e.jsx("strong",{children:"Cycle end"}),e.jsx("br",{}),h(s.cycle_end_at)]}),e.jsxs("div",{children:[e.jsx("strong",{children:"Last metered"}),e.jsx("br",{}),s.last_metered_at?h(s.last_metered_at):"Unavailable"]}),e.jsxs("div",{children:[e.jsx("strong",{children:"Provider reconciliation"}),e.jsx("br",{}),s.last_reconciled_at?h(s.last_reconciled_at):"Unavailable",s.last_reconciliation_attempt_at?` · attempted ${h(s.last_reconciliation_attempt_at)}`:"",s.next_reconciliation_at?` · next ${h(s.next_reconciliation_at)}`:""]}),e.jsxs("div",{children:[e.jsx("strong",{children:"Burn projection"}),e.jsx("br",{}),s.burn_rate_microusd_per_hour===null?"Not enough data":`${C(s.burn_rate_microusd_per_hour)}/hour${s.projected_cap_hit_at?` · cap ${h(s.projected_cap_hit_at)}`:""}`]}),e.jsxs("div",{children:[e.jsx("strong",{children:"Prior cycle"}),e.jsx("br",{}),s.prior_cycle?`${s.prior_cycle.billing_cycle} · ${C(s.prior_cycle.effective_microusd)}`:"Not enough data"]})]})]}),e.jsxs(u,{children:[e.jsx(v,{children:e.jsx(f,{children:"Live lifecycle"})}),e.jsx(x,{className:"text-sm",children:Object.entries(s.live_states).map(([p,y])=>e.jsxs("span",{className:"mr-4",children:[p,": ",y]},p))})]}),e.jsxs(u,{children:[e.jsx(v,{children:e.jsx(f,{children:"Daily spend"})}),e.jsx(x,{children:s.daily_spend.length?e.jsx("ul",{className:"space-y-1 text-sm",children:s.daily_spend.map(p=>e.jsxs("li",{children:[p.date,": blank ",C(p.blank_pool_microusd)," · assigned ",C(p.assigned_microusd)]},p.date))}):e.jsx("p",{className:"cron-muted",children:"No compute recorded in this cycle."})})]}),e.jsxs(u,{children:[e.jsxs(v,{children:[e.jsx(f,{children:"Recent circuit events"}),e.jsx(A,{children:"Runbook: docs/chat-sandbox-spend-runbook.md"})]}),e.jsx(x,{children:s.events.length?e.jsx("ul",{className:"space-y-2 text-sm",children:s.events.map(p=>e.jsxs("li",{children:[e.jsx(B,{children:p.severity})," ",p.type," · ",h(p.created_at)]},p.id))}):e.jsx("p",{className:"cron-muted",children:"No events in this cycle."})})]})]})},fs=({data:s,loading:r,error:n})=>{if(r)return e.jsxs("div",{className:"flex items-center py-8",children:[e.jsx(F,{className:"h-5 w-5 animate-spin mr-3"}),"Loading web-search budget…"]});if(n||!s)return e.jsx(u,{className:"cron-status--broken",children:e.jsx(x,{className:"pt-6",children:"Web-search budget accounting is unavailable."})});const c=Math.min(100,s.call_count/s.hard_limit_calls*100);return e.jsxs(u,{className:s.circuit_state==="tripped"?"cron-status--broken":s.circuit_state==="warning"||s.circuit_state==="cooldown"?"cron-status--degraded":"",children:[e.jsxs(v,{children:[e.jsx(f,{children:"Web search"}),e.jsxs(A,{children:[s.environment," · UTC cycle ",s.billing_cycle," · provider details are admin-only"]})]}),e.jsxs(x,{className:"space-y-4",children:[e.jsxs("div",{className:"grid md:grid-cols-4 gap-4 text-sm",children:[e.jsxs("div",{children:[e.jsx("strong",{children:"Circuit"}),e.jsx("br",{}),s.circuit_state,s.trip_reason?` · ${s.trip_reason}`:""]}),e.jsxs("div",{children:[e.jsx("strong",{children:"Calls"}),e.jsx("br",{}),s.call_count," / ",s.hard_limit_calls," · ",s.success_count," successful"]}),e.jsxs("div",{children:[e.jsx("strong",{children:"Remaining"}),e.jsx("br",{}),s.remaining_calls]}),e.jsxs("div",{children:[e.jsx("strong",{children:"Warning"}),e.jsx("br",{}),s.warning_calls," calls"]})]}),e.jsx("div",{role:"progressbar","aria-label":"Web-search monthly budget used","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round(c),className:"h-2 rounded bg-muted",children:e.jsx("div",{className:"h-2 rounded bg-primary",style:{width:`${c}%`}})}),e.jsxs("p",{className:"text-xs cron-muted",children:["Cycle ends ",h(s.cycle_end_at)," · provider-reported cost $",(s.provider_cost_microusd/1e6).toFixed(4),s.last_latency_ms!==null?` · last ${s.last_latency_ms} ms / ${s.last_result_count??0} results`:"",s.cooldown_until?` · cooldown until ${h(s.cooldown_until)}`:"",s.last_provider_error_class?` · last provider error ${s.last_provider_error_class}`:""]}),s.events.length>0&&e.jsx("ul",{className:"space-y-1 text-sm",children:s.events.map(l=>e.jsxs("li",{children:[l.type," · ",h(l.created_at),l.error_class?` · ${l.error_class}`:""]},l.id))})]})]})},Ns=({data:s})=>s!=null&&s.snapshot_stale?e.jsx(u,{className:"mb-6 cron-status--degraded",role:"status",children:e.jsx(x,{className:"pt-6",children:e.jsxs("div",{className:"flex items-center gap-3 text-sm",children:[e.jsx(F,{className:"h-4 w-4 animate-spin"}),e.jsxs("span",{children:["Refreshing status… Current snapshot is ",Math.ceil(s.snapshot_age_seconds)," seconds old."]})]})})}):null,bs=(s,r)=>s!=null&&s.snapshot_stale||s!=null&&s.refreshing?5e3:r?3e4:!1,Bs=()=>{const s=We(),r=he(),[n,c]=_.useState(!0),[l,d]=_.useState(""),[g,w]=_.useState(""),[j,p]=_.useState(new Set),{user:y}=Ie(),{data:i,isLoading:m,error:b}=Q({...me.cronStatus(),refetchInterval:a=>bs(a.state.data,n),retry:!1}),L=Q({queryKey:E.chatSandboxSpend(g),queryFn:()=>fe.getSandboxSpend(g||void 0),refetchInterval:n?3e4:!1,retry:!1}),o=Q({queryKey:E.chatWebSearchBudget,queryFn:()=>fe.getWebSearchBudget(),enabled:s,refetchInterval:n?3e4:!1,retry:!1}),K=P({mutationFn:()=>Promise.all([r.cancelQueries({queryKey:E.cronStatus}).then(()=>r.fetchQuery({queryKey:E.cronStatus,queryFn:()=>He.getCronStatus(!0),retry:!1})),r.refetchQueries({queryKey:E.all,type:"active",predicate:a=>a.queryKey[1]!==E.cronStatus[1]})])}),ee=b instanceof Le&&b.status===401?"Unauthorized. Sign in with an allowlisted Hugging Face admin account.":b instanceof Error?b.message:void 0,I=a=>{p(t=>{const k=new Set(t);return k.has(a)?k.delete(a):k.add(a),k})},R=(i==null?void 0:i.jobs.filter(a=>a.dashboard_group==="leaderboard_sync"))??[],se=(i==null?void 0:i.jobs.filter(a=>a.category!=="manual"&&a.dashboard_group!=="leaderboard_sync"))??[],te=se.filter(a=>a.critical),le=se.filter(a=>!a.critical),G=(i==null?void 0:i.manual_operations)??[],M=!!(m||K.isPending||i!=null&&i.refreshing),T=le.reduce((a,t)=>(a[t.category]||(a[t.category]=[]),a[t.category].push(t),a),{}),ae=Object.keys(T).sort((a,t)=>{const k=["systemd","hourly","daily","weekly","backfill"];return k.indexOf(a)-k.indexOf(t)}),q=a=>e.jsx(os,{job:a,expanded:j.has(a.job_name),onToggle:()=>I(a.job_name),autoRefresh:n},a.job_name);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",children:[e.jsx("div",{className:"mb-8",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(ne,{className:"h-8 w-8 cron-info-text"}),"Admin Dashboard"]}),e.jsx("p",{className:"mt-2 cron-muted",children:"Paper curation queue and operational health for scheduled jobs"})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(N,{asChild:!0,variant:"outline",size:"sm",children:e.jsx(ue,{to:"/autonomous-operations",children:"Autonomous operations"})}),e.jsxs(N,{variant:"outline",size:"sm",onClick:()=>c(!n),className:n?"cron-status--running":"",children:[e.jsx(ve,{className:`h-4 w-4 mr-2 ${n?"animate-spin":""}`}),"Auto-refresh ",n?"ON":"OFF"]}),e.jsxs(N,{variant:"outline",size:"sm",onClick:()=>K.mutate(),disabled:M,children:[e.jsx(ve,{className:`h-4 w-4 mr-2 ${M?"animate-spin":""}`}),"Refresh"]})]})]})}),e.jsx(u,{className:"mb-6",children:e.jsx(x,{className:"pt-6",children:e.jsxs("p",{className:"text-sm cron-muted",children:["Signed in as ",e.jsxs("span",{className:"font-semibold",children:["@",y==null?void 0:y.username]}),". Health checks prefer database freshness over log completion so silent no-work failures surface as degraded or broken. Expanded jobs include deterministic scheduler, log, lock, durable-data, throughput, backlog, and semantic contract evidence with direct operator and run links."]})})}),e.jsx(Ns,{data:i}),e.jsxs(ze,{defaultValue:"critical-jobs",children:[e.jsxs(Qe,{className:"grid h-auto w-full grid-cols-2 sm:w-auto sm:grid-cols-5",children:[e.jsx(V,{value:"critical-jobs",children:"Critical Jobs"}),e.jsx(V,{value:"leaderboard-syncs",children:"Leaderboard Syncs"}),e.jsx(V,{value:"codex-paper-jobs",children:"Codex Paper Jobs"}),e.jsx(V,{value:"catalog-audit",children:"Catalog Audit"}),e.jsx(V,{value:"chat-compute",children:"Chat Compute"})]}),e.jsxs(X,{value:"critical-jobs",className:"mt-6",children:[m&&e.jsxs("div",{className:"flex items-center justify-center py-12",children:[e.jsx(F,{className:"h-8 w-8 animate-spin cron-info-text"}),e.jsx("span",{className:"ml-3 cron-muted",children:"Loading CRON jobs status..."})]}),b&&e.jsx(u,{className:"cron-status--broken",children:e.jsx(x,{className:"pt-6",children:e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(Z,{className:"h-5 w-5"}),e.jsx("p",{children:ee??"Failed to load CRON jobs status. Please try again."})]})})}),i&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-6 gap-4 mb-6",children:["healthy","degraded","broken","running","stuck","unknown"].map(a=>e.jsxs(u,{children:[e.jsx(v,{className:"pb-2",children:e.jsx(f,{className:"text-sm font-medium cron-muted capitalize",children:a})}),e.jsx(x,{children:e.jsx("div",{className:"text-2xl font-bold",children:i.summary[a]})})]},a))}),i.summary.critical_issues.length>0&&e.jsxs(u,{className:"mb-6 cron-status--broken",children:[e.jsx(v,{children:e.jsxs(f,{className:"flex items-center gap-2",children:[e.jsx(Pe,{className:"h-5 w-5"}),"Critical job issues"]})}),e.jsx(x,{children:e.jsx("ul",{className:"list-disc pl-5 space-y-1 text-sm",children:i.summary.critical_issues.map(a=>e.jsx("li",{children:a},a))})})]}),e.jsxs(u,{className:"mb-8",children:[e.jsx(v,{children:e.jsx(f,{className:"text-base",children:"What to check next"})}),e.jsxs(x,{children:[e.jsx("p",{className:"text-sm cron-muted",children:i.summary.what_to_check_next}),e.jsxs("p",{className:"mt-2 text-xs cron-muted flex items-center gap-2",children:[e.jsx(Ae,{className:"h-4 w-4"}),"Last updated: ",h(i.timestamp)," · Health score:"," ",i.summary.health_score.toFixed(0),"%"]})]})]}),e.jsxs(u,{className:`mb-8 ${i.summary.coverage.coverage_gaps?"cron-status--broken":""}`,children:[e.jsxs(v,{children:[e.jsx(f,{className:"text-base",children:"Coverage"}),e.jsx(A,{children:"Registry and deployed scheduler inventory"})]}),e.jsxs(x,{className:"grid grid-cols-2 md:grid-cols-4 gap-4 text-sm",children:[e.jsxs("div",{children:[e.jsx("span",{className:"cron-label",children:"Registered"}),e.jsx("div",{className:"text-2xl font-bold",children:i.summary.coverage.registered_scheduled_duties})]}),e.jsxs("div",{children:[e.jsx("span",{className:"cron-label",children:"Discovered"}),e.jsx("div",{className:"text-2xl font-bold",children:i.summary.coverage.discovered_scheduled_duties})]}),e.jsxs("div",{children:[e.jsx("span",{className:"cron-label",children:"Monitored"}),e.jsx("div",{className:"text-2xl font-bold",children:i.summary.coverage.monitored_duties})]}),e.jsxs("div",{children:[e.jsx("span",{className:"cron-label",children:"Gaps"}),e.jsx("div",{className:"text-2xl font-bold",children:i.summary.coverage.coverage_gaps})]})]})]}),e.jsxs(u,{className:"mb-8",children:[e.jsxs(v,{children:[e.jsx(f,{className:"text-xl",children:"Critical jobs"}),e.jsx(A,{children:"Writers whose stale output breaks the live site"})]}),e.jsx(x,{className:"space-y-4",children:te.map(q)})]}),e.jsx("div",{className:"space-y-6",children:ae.map(a=>e.jsxs(u,{children:[e.jsx(v,{children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs(f,{className:"text-xl capitalize flex items-center gap-2",children:[e.jsx(B,{className:xe($e[a]??$e.hourly),children:a}),e.jsx("span",{children:"Supporting jobs"})]}),e.jsxs(A,{children:[T[a].length," job",T[a].length!==1?"s":""]})]})}),e.jsx(x,{className:"space-y-4",children:T[a].map(q)})]},a))}),G.length>0&&e.jsxs(u,{className:"mt-6",children:[e.jsxs(v,{children:[e.jsx(f,{className:"text-xl",children:"Manual operations"}),e.jsx(A,{children:"Visible invocation history; excluded from scheduled health and coverage"})]}),e.jsx(x,{className:"space-y-4",children:G.map(q)})]})]})]}),e.jsxs(X,{value:"leaderboard-syncs",className:"mt-6",children:[m&&e.jsxs("div",{className:"flex items-center justify-center py-12",children:[e.jsx(F,{className:"h-8 w-8 animate-spin cron-info-text"}),e.jsx("span",{className:"ml-3 cron-muted",children:"Loading leaderboard sync status..."})]}),b&&e.jsx(u,{className:"cron-status--broken",children:e.jsx(x,{className:"pt-6",children:e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(Z,{className:"h-5 w-5"}),e.jsx("p",{children:ee??"Failed to load leaderboard sync status. Please try again."})]})})}),i&&e.jsxs(u,{children:[e.jsx(v,{children:e.jsxs("div",{className:"flex items-center justify-between gap-4",children:[e.jsxs("div",{children:[e.jsx(f,{className:"text-xl",children:"Leaderboard syncs"}),e.jsx(A,{children:"Recurring imports from externally maintained benchmark leaderboards"})]}),e.jsxs(B,{children:[R.length," jobs"]})]})}),e.jsx(x,{className:"space-y-4",children:R.map(q)})]})]}),e.jsx(X,{value:"codex-paper-jobs",className:"mt-6",children:e.jsx(js,{autoRefresh:n})}),e.jsx(X,{value:"catalog-audit",className:"mt-6",children:e.jsx(_s,{})}),e.jsxs(X,{value:"chat-compute",className:"mt-6",children:[e.jsxs(u,{className:"mb-6",children:[e.jsxs(v,{children:[e.jsx(f,{children:"Environment record"}),e.jsx(A,{children:"Leave blank for live staging, or enter the isolated environment printed by the spend qualification command."})]}),e.jsxs(x,{className:"flex gap-2",children:[e.jsx("input",{"aria-label":"Chat compute environment record",value:l,onChange:a=>d(a.target.value),placeholder:"staging-q-example",className:"flex-1 rounded border px-3 py-2"}),e.jsx(N,{onClick:()=>w(l.trim()),children:"Load"})]})]}),e.jsx(vs,{data:L.data,loading:L.isLoading,error:L.error}),s&&e.jsx("div",{className:"mt-6",children:e.jsx(fs,{data:o.data,loading:o.isLoading,error:o.error})})]})]})]})})};export{vs as ChatComputePanel,Ns as CronSnapshotNotice,bs as cronStatusRefetchInterval,Bs as default};
assets/{ExternalSourceEvalBadge-CJDvhRpF.js → ExternalSourceEvalBadge-CDxpNEEw.js} RENAMED
@@ -1 +1 @@
1
- import{j as e,L as n}from"./index-D6aEInmu.js";import{H as o,a as l,b as i}from"./hover-card-C0nRSsFV.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-DqiWSKRu.js";import{H as o,a as l,b as i}from"./hover-card-BPFTusQQ.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-B_tdgnbh.js DELETED
@@ -1,16 +0,0 @@
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-D6aEInmu.js";import{S as Nt,t as Ut}from"./taskIcons-9fl0jLm1.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-D0w4lDHH.js";import{P as De}from"./plus-CsPEBwC8.js";import{D as Jt,a as es,b as ts}from"./dialog-DxQjeKSp.js";import{S as ss}from"./switch-WsS9i_IX.js";import{u as os}from"./useDebounce-Biol71Ue.js";import{d as Xe,t as ns}from"./transform-yHyLdRgB.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-DdF_Us_6.js";import{T as gs}from"./trash-2-CcR0dxP7.js";import{U as ws}from"./undo-2-lzOlsuTo.js";import{A as xs}from"./arrow-up-right-DW6w7lkJ.js";import{A as bs}from"./arrow-right-pTo64XGZ.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-CrZh8ngx.js";import{M as Cs}from"./McpShowcase-aTKzx9IH.js";import{c as _s}from"./chat-DOACRtqV.js";import{S as dt}from"./skeleton-BkAt4a_A.js";import{A as Be,a as He}from"./alert-CbcJsgVQ.js";import{u as Ps}from"./useDocumentTitle-Dgxi21fr.js";import{H as Es}from"./pageTitles-DTKTKJOp.js";import"./search-CXZqc5xK.js";import"./triangle-alert-99rDZz9U.js";import"./share-2-BlNTW9Lm.js";import"./trending-up-C4QuPkw3.js";import"./moon-DEPcyTHG.js";import"./thumbs-up-Cez8oCuZ.js";import"./database-DZEp-NYz.js";import"./link-2-3eIiK81e.js";import"./trophy-D0mSSUi2.js";import"./file-text-Brc6F3oH.js";import"./activity-BOriX-5O.js";import"./globe-eD910DAK.js";import"./useMutation-pFc9AV9q.js";import"./index-BPlx9he0.js";import"./PaperCard-DXVTfuSM.js";import"./AuthorAvatar-CB9dFjtV.js";import"./SotaBadges-D5Rygs2E.js";import"./Icon-BCKS3hPB.js";import"./LatexTitle-YKOmpgD5.js";import"./safeExternalHref-CkBrsh84.js";import"./popover-BTut4e1S.js";import"./useIntersectionObserver-BiqrXJxS.js";import"./useInfiniteQuery-DGk1REJi.js";import"./AgentLogos-Cm3YQ6TB.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 Fs=tt("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);/**
7
- * @license lucide-react v0.462.0 - ISC
8
- *
9
- * This source code is licensed under the ISC license.
10
- * See the LICENSE file in the root directory of this source tree.
11
- */const Is=tt("GripVertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]);/**
12
- * @license lucide-react v0.462.0 - ISC
13
- *
14
- * This source code is licensed under the ISC license.
15
- * See the LICENSE file in the root directory of this source tree.
16
- */const Ls=tt("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);function Ds({onBuild:o}){return e.jsxs("section",{className:"following-intro","aria-labelledby":"following-intro-title",children:[e.jsx("h2",{id:"following-intro-title",children:"Build your personal research feed"}),e.jsx("p",{className:"following-intro-lead",children:"Describe topics in your own words, or follow the tasks, benchmarks, authors, and organizations you care about, and this page collects their latest papers and results in one place."}),o&&e.jsxs("button",{type:"button",className:"research-topic-save following-intro-topic",onClick:o,children:[e.jsx(Nt,{"aria-hidden":"true"}),"Build your feed"]}),e.jsxs("p",{className:"following-intro-note",children:["Matching papers also arrive as a weekly email, which you can turn off in"," ",e.jsx(se,{to:"/settings",children:"Settings"}),"."]})]})}const It="pwc:home-follow-card:dismissed",As=5;function Rs(){try{return localStorage.getItem(It)==="1"}catch{return!1}}function Ms({onBuild:o}){var p;const s=(p=jt())==null?void 0:p.user,r=Ue(),h=J(ne.featuredTopics()),a=st(),j=St(),[C,u]=d.useState(!1),[S,F]=d.useState(Rs);if(S)return null;const A=w=>{if(!s){Tt([w]),window.location.href=vt("/following");return}u(!0),j.mutateAsync([w]).then(()=>Promise.all([a.refetchQueries({queryKey:ne.topics(s.hf_subject).queryKey}),a.refetchQueries({queryKey:ne.follows(s.hf_subject).queryKey})])).then(()=>r(`/following?topic=${w}`),()=>u(!1))},I=()=>{try{localStorage.setItem(It,"1")}catch{}F(!0)},E=(h.data??[]).slice(0,As);return e.jsxs("section",{className:"home-follow-card","aria-labelledby":"home-follow-card-title",children:[e.jsx("button",{type:"button",className:"home-follow-card-close","aria-label":"Dismiss",onClick:I,children:e.jsx(Rt,{"aria-hidden":"true"})}),e.jsx("h2",{id:"home-follow-card-title",children:"Get a feed for your research"}),e.jsx("p",{children:"Follow topics, tasks, authors and labs, and their new papers collect on your following page and in a weekly email."}),E.length>0&&e.jsx("div",{className:"topic-dialog-chips home-follow-card-topics",children:E.map(w=>e.jsxs("button",{type:"button",className:"topic-dialog-chip","aria-pressed":"false",disabled:C,onClick:()=>A(w.id),children:[e.jsx(De,{"aria-hidden":"true"}),Y(w)]},w.id))}),j.isError&&e.jsx("p",{className:"home-follow-card-error",role:"alert",children:"Could not follow that topic. Please try again."}),e.jsxs("button",{type:"button",className:"research-topic-save",onClick:o,children:[e.jsx(Nt,{"aria-hidden":"true"}),"Build your feed"]})]})}const Ze=180,ut=`transform ${Ze}ms cubic-bezier(0.2, 0, 0, 1), box-shadow ${Ze}ms ease`,pt=()=>{var o;return((o=window.matchMedia)==null?void 0:o.call(window,"(prefers-reduced-motion: reduce)").matches)??!1};function $s(o){const s=getComputedStyle(o).transform.match(/matrix(3d)?\(([^)]+)\)/);if(!s)return 0;const r=s[2].split(",").map(Number);return(s[1]?r[13]:r[5])||0}function Os({items:o,itemKey:s,itemLabel:r,onReorder:h,renderItem:a,className:j,disabled:C=!1}){const[u,S]=d.useState(null),[F,A]=d.useState(null),[I,E]=d.useState(null),p=d.useRef(new Map),w=d.useRef(new Map),$=d.useRef({y:0,grab:0}),x=(u==null?void 0:u.order)??((I==null?void 0:I.from)===o?I.order:o),U=(T,g)=>T.length===g.length&&T.every((N,P)=>s(N)===s(g[P])),O=T=>{T.style.transition="none",T.style.transform=`translateY(${$.current.y-$.current.grab-T.offsetTop}px)`};d.useLayoutEffect(()=>{const T=!pt();p.current.forEach((g,N)=>{const P=g.offsetTop,i=w.current.get(N);if(w.current.set(N,P),N===(u==null?void 0:u.key))return O(g);if(!T||i===void 0||i===P)return;const l=i+$s(g)-P;g.style.transition="none",g.style.transform=`translateY(${l}px)`,g.offsetHeight,g.style.transition=ut,g.style.transform=""})});const R=d.useRef({items:o,onReorder:h,drag:u});R.current={items:o,onReorder:h,drag:u};const y=u!==null;d.useEffect(()=>{if(!y)return;const T=i=>{var q;const l=i.clientY;$.current.y=l;const v=(q=R.current.drag)==null?void 0:q.key,L=v===void 0?void 0:p.current.get(v);L&&O(L);const M=l-$.current.grab+((L==null?void 0:L.offsetHeight)??0)/2;S(D=>{if(!D)return D;const X=D.order.find(ee=>s(ee)===D.key),B=D.order.filter(ee=>s(ee)!==D.key),b=B.filter(ee=>{const ae=p.current.get(s(ee));return ae?ae.offsetTop+ae.offsetHeight/2<M:!1}).length,ce=[...B.slice(0,b),X,...B.slice(b)];return U(ce,D.order)?D:{...D,order:ce}})},g=i=>{const{drag:l,items:v,onReorder:L}=R.current,M=l?p.current.get(l.key):void 0;if(M&&l){const q=!pt();M.style.transition=q?ut:"none",M.style.transform="",q&&(A(l.key),window.setTimeout(()=>A(D=>D===l.key?null:D),Ze))}i&&l&&!U(l.order,v)&&(E({from:v,order:l.order}),L(l.order)),S(null)},N=()=>g(!0),P=()=>g(!1);return window.addEventListener("pointermove",T),window.addEventListener("pointerup",N),window.addEventListener("pointercancel",P),()=>{window.removeEventListener("pointermove",T),window.removeEventListener("pointerup",N),window.removeEventListener("pointercancel",P)}},[y]);const V=(T,g)=>{const N=o.findIndex(l=>s(l)===T),P=N+g;if(P<0||P>=o.length)return;const i=[...o];i.splice(P,0,...i.splice(N,1)),E({from:o,order:i}),h(i)};return e.jsx("ul",{className:["sortable-list",j].filter(Boolean).join(" "),children:x.map(T=>{const g=s(T),N=(u==null?void 0:u.key)===g,P=N||F===g,i=e.jsx("button",{type:"button",className:"sortable-handle",disabled:C||o.length<2,"aria-label":`Reorder ${r(T)}. Use the up and down arrow keys to move it.`,onPointerDown:l=>{if(l.button!==0)return;l.preventDefault();const v=p.current.get(g);$.current={y:l.clientY,grab:l.clientY-((v==null?void 0:v.offsetTop)??0)},S({key:g,order:o})},onKeyDown:l=>{l.key!=="ArrowUp"&&l.key!=="ArrowDown"||(l.preventDefault(),V(g,l.key==="ArrowUp"?-1:1))},children:e.jsx(Is,{"aria-hidden":"true"})});return e.jsx("li",{className:P?"sortable-item is-dragging":"sortable-item",ref:l=>{l?p.current.set(g,l):p.current.delete(g)},children:a(T,i,N)},g)})})}const ht=16,Bs=5;function Hs({open:o,topicId:s=null,afterSavePath:r,onOpenChange:h}){return e.jsx(Jt,{open:o,onOpenChange:h,children:e.jsx(es,{className:"topic-dialog","aria-describedby":void 0,children:e.jsx(zs,{topicId:s,afterSavePath:r,onDone:()=>h(!1)},s??"new")})})}function ze({to:o,name:s}){return e.jsx("a",{className:"topic-dialog-chip-open",href:o,target:"_blank",rel:"noopener noreferrer","aria-label":`Open the ${s} page`,title:"Open its page in a new tab",children:e.jsx(xs,{"aria-hidden":"true"})})}function zs({topicId:o,afterSavePath:s,onDone:r}){var Pe,Ee,Fe,Ie,Le,n,m,z;const{user:h}=Mt(),a=$t(),j=Ue(),C=st(),u=Ct(),S=_t(),F=J(qe.trendingTasks({limit:ht,level:0})),A=J(qe.trendingMethods({limit:ht})),I=J(ne.followSuggestions()),E=J(ne.featuredTopics()),p=(t=[])=>t.map(c=>({id:String(c.entity_id),name:c.name,image:c.image_url,url:c.url})),[w,$]=d.useState(o),[x,U]=d.useState(null),[O,R]=d.useState([]),[y,V]=d.useState([]),[T,g]=d.useState([]),[N,P]=d.useState(null),[i,l]=d.useState({}),v=Pt(),L=Kt(),M=Et(),q=Gt(),D=Qt(),X=Wt(),B=u.data??[],b=B.find(t=>t.id===w),ce=os(mt(x??(b==null?void 0:b.text)??"").toLowerCase()),ee=J({...ne.topicMatches(ce),enabled:ce.length>=3}),ae=(N==null?void 0:N.length)===B.length&&N.every(t=>B.some(c=>c.id===t.id)),ue=N&&ae?N:B,oe=ue.some((t,c)=>{var f;return t.id!==((f=B[c])==null?void 0:f.id)}),Z=y.filter(t=>B.some(c=>c.id===t)),we=Object.entries(i).map(([t,c])=>({id:Number(t),isPublic:c})).filter(({id:t,isPublic:c})=>!Z.includes(t)&&B.some(f=>f.id===t&&f.is_creator&&f.is_public!==c)),xe=(E.data??[]).filter(t=>!B.some(c=>c.id===t.id)).slice(0,Bs),ie=T.filter(t=>xe.some(c=>c.id===t)),be=(b==null?void 0:b.text)??"",K=x??be,G=mt(K),Q=ce===G.toLowerCase()&&!ee.isFetching?ee.data??[]:[],pe=Ve(v.error)&&((Pe=v.variables)==null?void 0:Pe.text)===G?v.error:null,ye=(b==null?void 0:b.status)==="failed"&&G===be,je=B.length-Z.length+ie.length>=nt,me=G.length>=3&&(G!==be||ye)&&!Q.length&&(b?!Z.includes(b.id):!je),[ve,Ae]=d.useState(!1),ke=d.useRef(!0);d.useEffect(()=>(ke.current=!0,()=>{ke.current=!1}),[]);const H=v.isPending||L.isPending||M.isPending||q.isPending||D.isPending||X.isPending||ve,fe=(t,c)=>{var f;return((f=S.data)==null?void 0:f.some(k=>k.kind===t&&String(k.entity_id)===c))??!1},ge=(t,c)=>{var f;return((f=O.find(k=>k.kind===t&&k.id===c))==null?void 0:f.follow)??fe(t,c)},te=O.filter(t=>t.follow!==fe(t.kind,t.id)),Re=Z.length+ie.length+we.length+(oe?1:0),Ne=!H&&(me||te.length>0||Re>0),Se=(t,c,f)=>R(k=>[...k.filter(le=>le.kind!==t||le.id!==c),{kind:t,id:c,name:f,follow:!ge(t,c)}]),Te=t=>{$(t),U(null)},Ce=()=>{if(!Ne)return;if(!h){me&&Yt(G),te.length&&Vt(te),ie.length&&Tt(ie),window.location.href=vt(s??`${a.pathname}${a.search}`);return}const t=Z.length?L.mutateAsync(Z):Promise.resolve(),c=ue.filter(W=>!Z.includes(W.id)),f=t.catch(()=>{}).then(()=>oe?D.mutateAsync(c):void 0),k=f.catch(()=>{}),le=[...te.length?[M.mutateAsync(te)]:[],t,f,...we.map(W=>X.mutateAsync(W)),...me?[k.then(()=>v.mutateAsync({id:b==null?void 0:b.id,text:G}))]:[],...ie.map(W=>k.then(()=>q.mutateAsync(W)))];Promise.allSettled(le).then(async W=>{if(W.every(_=>_.status==="fulfilled")){if(s){if(Ae(!0),await Promise.all([C.refetchQueries({queryKey:ne.follows(h.hf_subject).queryKey}),C.refetchQueries({queryKey:ne.topics(h.hf_subject).queryKey})]),!ke.current)return;r(),j(s);return}r()}})},re=(t,c,f,k)=>{const W=[...(S.data??[]).filter(_=>_.kind===c).map(_=>({id:String(_.entity_id),name:_.name,slug:_.url.split("/").pop(),image:_.image_url,url:_.url})),...f.filter(_=>!fe(c,_.id)).map(_=>({..._,suggested:!0}))];return W.length>0&&e.jsxs("div",{className:"topic-dialog-group",children:[e.jsx("h3",{children:t}),e.jsxs(qs,{children:[W.map(_=>{const ot=ge(c,_.id),Me=c==="task"?Xe(_.name,_.slug??void 0):_.name,At=_.url??`/${c==="task"?"tasks":"methods"}/${_.slug??_.id}`;return e.jsxs("span",{className:"topic-dialog-chip-wrap","data-suggested":"suggested"in _||void 0,children:[e.jsxs("button",{type:"button",className:"topic-dialog-chip","aria-pressed":ot,disabled:H,onClick:()=>Se(c,_.id,Me),children:[ot?e.jsx($e,{"aria-hidden":"true"}):e.jsx(De,{"aria-hidden":"true"}),(c==="author"||c==="organization")&&e.jsx(Us,{kind:c,name:Me,src:_.image}),Me]}),e.jsx(ze,{to:At,name:Me})]},_.id)}),k&&e.jsxs(se,{to:k.to,className:"topic-dialog-browse",children:[k.label,e.jsx(bs,{"aria-hidden":"true"})]})]})]})},_e=b?i[b.id]??b.is_public:!0;return e.jsxs("form",{className:"topic-dialog-form",onSubmit:t=>{t.preventDefault(),Ce()},children:[e.jsx(ts,{className:"topic-dialog-title",children:(Ee=u.data)!=null&&Ee.length||(Fe=S.data)!=null&&Fe.length?"Edit your research feed":"Build your research feed"}),e.jsxs("div",{className:"topic-dialog-group",children:[e.jsx("h3",{children:e.jsx("label",{htmlFor:"topic-dialog-input",children:b?`Reword “${Y(b)}”`:(Ie=u.data)!=null&&Ie.length?"Add a topic in your own words":"Describe a topic in your own words"})}),e.jsx("p",{className:"topic-dialog-hint",children:!b&&je?`You follow ${nt} topics, the most allowed. Remove one below to add another.`:"A model reads every new paper and adds the ones that match to your Following feed. New topics are public and show your Hugging Face username; make one private from its ✎ button below, or remove one with its trash button."}),e.jsx("textarea",{id:"topic-dialog-input",className:"research-topic-input",rows:4,maxLength:at,"aria-label":"Research topic",placeholder:"e.g. diffusion policies for robot manipulation, or speculative decoding for LLM inference",value:K,onChange:t=>U(t.target.value),onKeyDown:t=>{t.key==="Enter"&&!t.shiftKey&&!t.nativeEvent.isComposing&&(t.preventDefault(),Ce())}}),e.jsxs("span",{className:"research-topic-count",children:[K.length,"/",at]}),Q.length>0&&e.jsxs("div",{className:"topic-dialog-duplicate",role:"status",children:[e.jsxs("p",{children:["Papers with Code already has ",Q.length>1?"pages":`a ${Q[0].kind} page`," for “",G,"”. Follow ",Q.length>1?"one":"it"," instead of adding a topic:"]}),e.jsx("div",{className:"topic-dialog-chips",children:Q.map(t=>{const c=String(t.entity_id),f=ge(t.kind,c);return e.jsxs("span",{className:"topic-dialog-chip-wrap",children:[e.jsxs("button",{type:"button",className:"topic-dialog-chip","aria-pressed":f,disabled:H,onClick:()=>Se(t.kind,c,t.name),children:[f?e.jsx($e,{"aria-hidden":"true"}):e.jsx(De,{"aria-hidden":"true"}),t.name]}),e.jsx(ze,{to:t.url,name:t.name})]},`${t.kind}:${c}`)})})]}),b&&e.jsxs("div",{className:"topic-dialog-editing",children:[b.is_creator&&e.jsxs("label",{className:"topic-dialog-privacy",children:[e.jsx(ss,{checked:_e,disabled:H,"aria-label":"Public topic",onCheckedChange:t=>l(c=>({...c,[b.id]:t}))}),_e?"Public: anyone can find and follow it":"Private: only you see it"]}),e.jsx("button",{type:"button",className:"link-button",disabled:H,onClick:()=>Te(null),children:"Add a new topic instead"})]})]}),B.length>0&&e.jsxs("div",{className:"topic-dialog-group",children:[e.jsx("h3",{children:"Your topics"}),e.jsx(Os,{className:"topic-dialog-topic-list",items:ue,itemKey:t=>t.id,itemLabel:t=>Y(t),disabled:H,onReorder:P,renderItem:(t,c)=>{const f=!y.includes(t.id),k=()=>V(le=>f?[...le,t.id]:le.filter(W=>W!==t.id));return e.jsxs("div",{className:`topic-dialog-topic ${t.id===w?"is-editing":""} ${f?"":"is-removed"}`,children:[c,e.jsxs("span",{className:"topic-dialog-chip-wrap",children:[e.jsxs("button",{type:"button",className:"topic-dialog-chip","aria-pressed":f,disabled:H,title:t.text,onClick:k,children:[f?e.jsx($e,{"aria-hidden":"true"}):e.jsx(De,{"aria-hidden":"true"}),Y(t),t.creator&&e.jsxs("span",{className:"topic-dialog-chip-creator",children:["@",t.creator.username]})]}),e.jsx("button",{type:"button",className:"topic-dialog-chip-open",disabled:H||t.id===w,"aria-label":`Reword ${Y(t)}`,title:"Reword this topic",onClick:()=>Te(t.id),children:e.jsx(Ft,{"aria-hidden":"true"})}),e.jsx(ze,{to:rt(t),name:Y(t)}),e.jsx("button",{type:"button",className:"topic-dialog-chip-open topic-dialog-chip-remove",disabled:H,"aria-label":f?`Remove ${Y(t)}`:`Keep ${Y(t)}`,title:f?"Remove from your feed on Save":"Keep this topic",onClick:k,children:f?e.jsx(gs,{"aria-hidden":"true"}):e.jsx(ws,{"aria-hidden":"true"})})]})]})}})]}),xe.length>0&&e.jsxs("div",{className:"topic-dialog-group",children:[e.jsx("h3",{children:"Popular topics"}),e.jsx("div",{className:"topic-dialog-chips",children:xe.map(t=>{const c=T.includes(t.id);return e.jsxs("span",{className:"topic-dialog-chip-wrap",children:[e.jsxs("button",{type:"button",className:"topic-dialog-chip","aria-pressed":c,disabled:H||!c&&je,title:t.text,onClick:()=>g(f=>c?f.filter(k=>k!==t.id):[...f,t.id]),children:[c?e.jsx($e,{"aria-hidden":"true"}):e.jsx(De,{"aria-hidden":"true"}),Y(t),t.creator&&e.jsxs("span",{className:"topic-dialog-chip-creator",children:["@",t.creator.username]})]}),e.jsx(ze,{to:rt(t),name:Y(t)})]},t.id)})})]}),re("Trending tasks","task",((Le=F.data)==null?void 0:Le.results)??[],{to:"/tasks",label:"Browse tasks"}),re("Trending methods","method",((n=A.data)==null?void 0:n.results)??[],{to:"/methods",label:"Browse methods"}),re("Benchmarks","benchmark",[],{to:"/tasks",label:"Browse benchmarks"}),re("Popular authors","author",p((m=I.data)==null?void 0:m.authors)),re("Popular organizations","organization",p((z=I.data)==null?void 0:z.organizations),{to:"/organizations",label:"Browse organizations"}),pe&&e.jsxs("p",{className:"settings-token-error",role:"alert",children:[pe.message,"."]}),(v.error&&!Ve(v.error)||L.error||M.error||q.error||D.error||X.error)&&e.jsx("p",{className:"settings-token-error",role:"alert",children:"Could not save your feed. Please try again."}),e.jsxs("div",{className:"topic-dialog-actions",children:[e.jsx("button",{type:"button",className:"research-follow-action",disabled:H,onClick:r,children:"Cancel"}),e.jsx("button",{type:"submit",className:"research-topic-save",disabled:!Ne,children:te.some(t=>t.follow===!1)||Z.length||oe||we.length?"Save":te.length||ie.length?"Follow":ye?"Retry":b?"Update topic":"Follow"})]})]})}function qs({children:o}){const s=d.useRef(null);return d.useLayoutEffect(()=>{const r=s.current;if(!r)return;const h=()=>{const a=[...r.children],j=a.filter(u=>u.dataset.suggested);j.forEach(u=>{u.hidden=!1});const C=()=>new Set(a.filter(u=>!u.hidden).map(u=>u.offsetTop)).size;for(let u=j.length-1;u>=0&&C()>2;u--)j[u].hidden=!0};return h(),window.addEventListener("resize",h),()=>window.removeEventListener("resize",h)}),e.jsx("div",{ref:s,className:"topic-dialog-chips",children:o})}function Us({kind:o,name:s,src:r}){const[h,a]=d.useState(!1);if(r&&!h)return e.jsx("img",{className:`topic-dialog-chip-image is-${o}`,src:r,alt:"",loading:"lazy",onError:()=>a(!0)});if(o!=="author")return null;const j=s.split(/\s+/).filter(Boolean).map(C=>C[0]).slice(0,2).join("").toUpperCase();return e.jsx("span",{className:"topic-dialog-chip-image is-author is-initials","aria-hidden":"true",children:j})}const mt=o=>o.trim().replace(/\s+/g," "),ft=12,gt=["organization","author","task","method","benchmark"],Ks={task:"Task",method:"Method",benchmark:"Benchmark",author:"Author",organization:"Organization"},Gs={topicIds:[],follows:[]},We=o=>`${o.kind}:${o.entity_id}`;function Qs(o){return[...o].sort((s,r)=>gt.indexOf(s.kind)-gt.indexOf(r.kind)||r.created_at.localeCompare(s.created_at))}function Ws({follow:o}){if(o.kind==="task"){const s=o.url.split("/").pop()??"",r=Ut(s,o.parent_slug??void 0);return e.jsx(r,{size:14,strokeWidth:2,"aria-hidden":"true",style:{color:ys(js(s)).dot}})}if(o.kind==="author"||o.kind==="organization"){if(o.image_url)return e.jsx("img",{src:o.image_url,alt:"",width:18,height:18,loading:"lazy"});const s=o.kind==="author"?Ls:Fs;return e.jsx(s,{size:14,"aria-hidden":"true"})}return null}const wt=(o,s)=>o.includes(s)?o.filter(r=>r!==s):[...o,s];function Ys({topics:o,follows:s,active:r,hrefFor:h,onEdit:a,editLabel:j}){const[C,u]=d.useState(!1),S=[...o.map(p=>({key:`topic:${p.id}`,filter:{...r,topicIds:wt(r.topicIds,p.id)},name:Y(p),title:p.text,mark:null,on:r.topicIds.includes(p.id)})),...Qs(s).map(p=>({key:We(p),filter:{...r,follows:wt(r.follows,We(p))},name:p.name,title:`${Ks[p.kind]} · ${p.name}`,mark:e.jsx(Ws,{follow:p}),on:r.follows.includes(We(p))}))],F=r.topicIds.length===0&&r.follows.length===0,I=!C&&S.length>ft+1?S.filter((p,w)=>w<ft||p.on):S,E=S.length-I.length;return e.jsxs("nav",{className:"topic-bubbles follow-bubbles","aria-label":"Filter your feed",children:[S.length>0&&e.jsx(se,{className:`topic-bubble ${F?"active":""}`,to:h(Gs),"aria-current":F?"true":void 0,children:e.jsx("span",{className:"topic-bubble-name",children:"All"})}),I.map(p=>e.jsxs(se,{className:`topic-bubble ${p.on?"active":""}`,to:h(p.filter),title:p.title,"aria-current":p.on?"true":void 0,children:[p.mark,e.jsx("span",{className:"topic-bubble-name",children:p.name})]},p.key)),E>0&&e.jsx("button",{type:"button",className:"topic-bubble topic-bubble-more",onClick:()=>u(!0),children:e.jsxs("span",{className:"topic-bubble-name",children:["+",E," more"]})}),a&&e.jsxs("button",{type:"button",className:"topic-bubble topic-bubble-add",onClick:a,children:[e.jsx(Ft,{size:13,"aria-hidden":"true"}),e.jsx("span",{className:"topic-bubble-name",children:j})]})]})}const xt=45,Vs=1800,Xs=25,Zs=350,Js=o=>{const[s,r]=d.useState(de[0].slice(0,1)),[h,a]=d.useState(0);return d.useEffect(()=>{var A,I;if(!o)return;if((I=(A=window.matchMedia)==null?void 0:A.call(window,"(prefers-reduced-motion: reduce)"))!=null&&I.matches){r(de[0]),a(0);return}let j=0,C=1,u=!1,S;r(de[0].slice(0,C)),a(0);const F=()=>{const E=de[j];if(!u){if(C+=1,r(E.slice(0,C)),C===E.length){u=!0,S=window.setTimeout(F,Vs);return}S=window.setTimeout(F,xt);return}if(C-=1,r(E.slice(0,C)),C===0){u=!1,j=(j+1)%de.length,a(j),S=window.setTimeout(F,Zs);return}S=window.setTimeout(F,Xs)};return S=window.setTimeout(F,xt),()=>window.clearTimeout(S)},[o]),{placeholder:s,prompt:de[h]}},eo=()=>{var P;const o=Ue(),s=kt(),[r,h]=d.useState({text:"",paperMentions:[]}),a=r.text,[j,C]=d.useState(0),[u,S]=d.useState(!1),[F,A]=d.useState(null),{placeholder:I,prompt:E}=Js(!a),p=d.useRef(null),w=J({queryKey:["chatAvailability"],queryFn:()=>_s.getAvailability(),retry:!1,enabled:Ye()}),$=Ye()&&((P=w.data)==null?void 0:P.paper_mentions_enabled)!==!1,x=as({draft:r,onChange:h,enabled:$,textareaRef:p}),U=d.useRef(!1),[O,R]=d.useState(!1),y=is({draft:r,onChange:h,textareaRef:p,onEnd:i=>{U.current&&!i&&R(!0),U.current=!1}}),V=()=>{U.current=!0,y.finish()},T=rs(r,x.open),g=a?T.completion:E;d.useLayoutEffect(()=>{const i=p.current;if(!i)return;const l=()=>{if(i.style.height="auto",a){i.style.height=`${Math.min(fs(i),160)}px`;return}const v=i.placeholder,L=de.reduce((M,q)=>(i.placeholder=q,Math.max(M,i.scrollHeight)),0);i.placeholder=v,i.style.height=`${Math.min(L,160)}px`};return l(),window.addEventListener("resize",l),()=>window.removeEventListener("resize",l)},[a,g]),d.useEffect(()=>{O&&(R(!1),N())},[O]);const N=async(i=r)=>{const l=i.text.trim();if(!(!l||u)){if(s){const v=new URLSearchParams({q:l,model:Qe}),L=`${Ht}?${v}`,M=window.open(L,"_blank");if(!M){A(L);return}M.opener=null,A(null),h({text:"",paperMentions:[]});return}S(!0),ls(i,Qe);try{const v=await cs(Qe);o(`/chat/${v.id}`)}catch{o("/chat")}}};return e.jsx(e.Fragment,{children:e.jsxs("div",{className:"ask-home",children:[e.jsxs("div",{className:"ask-home-row",children:[e.jsxs("div",{className:"ask-home-textarea-wrap",children:[e.jsx(ds,{text:r.text,mentions:r.paperMentions,scrollTop:j,variant:"home",completion:a?g:""}),e.jsx("textarea",{ref:p,rows:1,value:a,placeholder:I,"aria-label":"Ask the assistant",disabled:u,readOnly:y.active,onChange:i=>{x.updateText(i.target.value,i.target.selectionStart),T.trackCaret(i.target)},onSelect:i=>{x.refresh(i.currentTarget.selectionStart),T.trackCaret(i.currentTarget)},onClick:i=>{x.refresh(i.currentTarget.selectionStart),T.trackCaret(i.currentTarget)},onScroll:i=>C(i.currentTarget.scrollTop),onBlur:i=>{var l,v;(v=(l=i.relatedTarget)==null?void 0:l.closest)!=null&&v.call(l,".chat-paper-picker")||window.setTimeout(x.close,0)},onKeyDown:i=>{if(y.active){i.key==="Enter"&&!i.shiftKey&&(i.preventDefault(),y.phase==="recording"&&V());return}if(!x.keyDown(i)){if(us(i)&&g){i.preventDefault();const l=a+g;x.updateText(l,l.length),window.requestAnimationFrame(()=>{var v;return(v=p.current)==null?void 0:v.setSelectionRange(l.length,l.length)});return}i.key==="Enter"&&!i.shiftKey&&(i.preventDefault(),N())}},role:$?"combobox":void 0,"aria-expanded":$?x.open:void 0,"aria-controls":x.open?x.pickerId:void 0,"aria-activedescendant":x.open&&x.results.length?`${x.optionIdPrefix}-${x.activeIndex}`:void 0,"aria-autocomplete":$?"list":void 0,"aria-describedby":x.message?"ask-home-paper-mention-message":void 0})]}),!s&&e.jsx(ps,{dictation:y,disabled:u}),e.jsx("button",{type:"button",className:`chat-send${a.trim()||y.phase==="recording"?" chat-send-on":""}`,onClick:()=>y.active?V():void N(),disabled:u||(y.active?y.phase!=="recording":!a.trim()),"aria-label":"Ask the assistant",children:e.jsx(hs,{})})]}),F&&e.jsx("div",{className:"chat-paper-mention-message",role:"alert",children:e.jsx("a",{href:F,target:"_blank",rel:"noreferrer",children:"Open this question on paperswithcode.co"})}),y.error&&e.jsx("div",{className:"chat-paper-mention-message",role:"alert",children:y.error}),x.message&&e.jsx("div",{id:"ask-home-paper-mention-message",className:"chat-paper-mention-message",role:"alert",children:x.message}),e.jsx(ms,{open:x.open,query:x.query,results:x.results,activeIndex:x.activeIndex,loading:x.loading,error:x.error,onSelect:x.select,id:x.pickerId,optionIdPrefix:x.optionIdPrefix})]})})},to=30,so=6,Je="pwc:following-last-seen",Lt="pwc:following-new-since",oo=60*60*1e3;function et(o){try{return localStorage.getItem(o)}catch{return null}}function bt(o,s){try{localStorage.setItem(o,s)}catch{}}const Dt=(o,s)=>s-Date.parse(o)>oo;function no(o=Date.now()){const s=et(Je);return s?Dt(s,o)?s:et(Lt):null}function ao(o,s=Date.now()){const r=et(Je);r&&!(o&&Dt(r,s))||(r&&bt(Lt,r),bt(Je,new Date(s).toISOString()))}const yt=40,io=100,ro=async o=>{const s=await o;return{results:s.results.map(r=>({paper:r})),next_page:s.next_page}},lo=({mode:o})=>{var fe,ge,te,Re,Ne,Se,Te,Ce,re,_e,Pe,Ee,Fe,Ie,Le;const s=o==="following",r=Ue(),h=jt(),a=h==null?void 0:h.user,[j,C]=Ot(),u=vs(j,void 0,o==="trending"?"week":"month"),S=n=>{const m=new URLSearchParams(j);m.delete("order_by"),m.delete("only"),m.delete("topic"),m.delete("follow");const z=m.toString();r(z?`${n}?${z}`:n)},F={topicIds:[],follows:[]},A=n=>{const m=new URLSearchParams(j);m.delete("only"),m.delete("topic"),m.delete("follow"),n.topicIds.forEach(t=>m.append("topic",String(t))),n.follows.forEach(t=>m.append("follow",t));const z=m.toString();return z?`/following?${z}`:"/following"},I=J(qe.topTasks(8)),E=J(qe.trendingTasks({limit:8,min_recent_papers:10})),p=s&&j.get("only")==="topic",w=s?{topicIds:[...new Set(j.getAll("topic").map(Number).filter(Number.isInteger))],follows:[...new Set(j.getAll("follow").filter(n=>/^(task|method|benchmark|author|organization):\d+$/.test(n)))]}:F,$=w.topicIds.length>0||w.follows.length>0,x={start_date:u.startDate,end_date:u.endDate},U={...u,topicOnly:p,...w},O=ks(s?Oe.following(a==null?void 0:a.hf_subject,U):Oe.trending(x),async n=>{if(s){const z=await it.following(n,U),t=z.length===yt?n+yt:null;return{results:z,next_page:t}}const m={...x,page:n,page_size:to,include_resources:!0};return ro(zt.list({...m,order_by:"trending",order_dir:"desc",latest_only:!0}))},{enabled:!s||!!a,initialPage:s?0:1}),R=_t(),y=Ct(!0,1e4),V=!!((fe=R.data)!=null&&fe.length)||!!((ge=y.data)!=null&&ge.length),T=Y,g=((te=y.data)==null?void 0:te.filter(Xt))??[],N=g.filter(n=>w.topicIds.length?w.topicIds.includes(n.id):!w.follows.length),P=w.topicIds.length===1&&!w.follows.length?(Re=y.data)==null?void 0:Re.find(n=>n.id===w.topicIds[0]):void 0,[i,l]=d.useState(()=>s&&j.get("edit")==="1"?null:void 0),v=st(),L=g.map(n=>n.id).join(","),M=d.useRef([]);d.useEffect(()=>{const n=L?L.split(","):[];M.current.some(m=>!n.includes(m))&&v.invalidateQueries({queryKey:Oe.following(a==null?void 0:a.hf_subject)}),M.current=n},[L,v,a==null?void 0:a.hf_subject]);const q=s&&!!a&&((Ne=R.data)==null?void 0:Ne.length)===0&&y.isSuccess&&y.data.length===0,D=s&&!(h!=null&&h.isLoading)&&!a||q,X=!!a||!Bt(),B=!s&&X&&!(h!=null&&h.isLoading)&&(!a||R.isSuccess&&y.isSuccess&&!V),[b]=d.useState(()=>no());d.useEffect(()=>{a&&(s||V)&&ao(s)},[a,s,V]);const ee=((Se=J({...ne.followingNewCount(a==null?void 0:a.hf_subject,b??""),enabled:!!a&&V&&!!b}).data)==null?void 0:Se.count)??0,ae=s&&b?Date.parse(b):NaN,ue={topicOnly:p,...w,addedAfter:b??void 0},oe=J({queryKey:[...Oe.following(a==null?void 0:a.hf_subject),"new",ue],queryFn:()=>it.following(0,ue,io),enabled:s&&!!a&&!!b,staleTime:5*60*1e3,placeholderData:qt}),[Z,we]=d.useState(!1),[xe]=d.useState(()=>!!lt()||ct().length>0||Ge().length>0),[ie,be]=d.useState(!1);!Z&&((Te=y.data)!=null&&Te.length||(Ce=R.data)!=null&&Ce.length)&&we(!0),D&&!ie&&(be(!0),X&&!Z&&!xe&&l(null));const K=Pt(),{mutate:G}=K,Ke=d.useRef(!1);d.useEffect(()=>{const n=lt();!a||!y.isSuccess||!n||Ke.current||(Ke.current=!0,y.data.some(m=>m.text===n)?Zt():G({text:n}))},[a,y.isSuccess,y.data,G]);const Q=Et(),{mutate:pe}=Q,ye=d.useRef(!1);d.useEffect(()=>{const n=ct();!a||!n.length||ye.current||(ye.current=!0,pe(n))},[a,pe]);const he=$&&y.isSuccess&&R.isSuccess?{topicIds:w.topicIds.filter(n=>y.data.some(m=>m.id===n)),follows:w.follows.filter(n=>R.data.some(m=>`${m.kind}:${m.entity_id}`===n))}:void 0,je=!!he&&(he.topicIds.length<w.topicIds.length||he.follows.length<w.follows.length);d.useEffect(()=>{je&&he&&r(A(he),{replace:!0})});const me=St(),{mutate:ve}=me,Ae=d.useRef(!1);d.useEffect(()=>{const n=Ge();!a||!n.length||Ae.current||(Ae.current=!0,ve(n))},[a,ve]);const ke=d.useMemo(()=>{var f;const n=k=>({...ns(k.paper),followReasons:k.reasons,isNew:!!k.added_at&&Date.parse(k.added_at)>ae}),m=oe.isPlaceholderData?void 0:oe.data,z=O.data&&m?m.map(n).filter(k=>k.isNew):[],t=new Set(z.map(k=>k.id)),c=((f=O.data)==null?void 0:f.pages.flatMap(k=>k.results.map(n)))??[];return[...z,...c.filter(k=>!t.has(k.id))]},[O.data,oe.data,oe.isPlaceholderData,ae]),H=O.error;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:["Trending ",e.jsx("em",{children:"Research"})]}),e.jsx("div",{className:"feed-subtitle",children:"Curated daily from arXiv and Hugging Face"})]})}),e.jsxs("div",{className:"layout-with-sidebar",children:[e.jsxs("aside",{className:"sidebar feed-sidebar",children:[e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"sidebar-section sidebar-section-top-domains",children:[e.jsx("div",{className:"sidebar-label",children:"Top Domains"}),I.isLoading&&e.jsx("div",{style:{display:"flex",flexDirection:"column",gap:8},children:Array.from({length:6}).map((n,m)=>e.jsx(dt,{className:"h-5 w-full"},m))}),e.jsxs("div",{className:"sidebar-links",children:[(re=I.data)==null?void 0:re.map(n=>e.jsxs(se,{to:`/tasks/${n.slug}`,className:"sidebar-link",children:[Xe(n.name,n.slug),n.paper_count!=null&&e.jsx("span",{className:"count",children:n.paper_count})]},n.id)),e.jsx(se,{to:"/tasks",className:"sidebar-link sidebar-link-more",children:"all domains →"})]})]}),e.jsxs("div",{className:"sidebar-section sidebar-section-trending-domains",children:[e.jsx("div",{className:"sidebar-label",children:"Trending Domains"}),E.isLoading&&e.jsx("div",{style:{display:"flex",flexDirection:"column",gap:8},children:Array.from({length:6}).map((n,m)=>e.jsx(dt,{className:"h-5 w-full"},m))}),((Pe=(_e=E.data)==null?void 0:_e.results)==null?void 0:Pe.length)===0&&!E.isLoading&&e.jsx("div",{style:{fontSize:12,color:"var(--ink-faint)"},children:"No domains gaining momentum right now."}),e.jsx("div",{className:"sidebar-links",children:(Fe=(Ee=E.data)==null?void 0:Ee.results)==null?void 0:Fe.map(n=>e.jsxs(se,{to:`/tasks/${n.slug}`,className:"sidebar-link",children:[Xe(n.name,n.slug),e.jsxs("span",{className:"count",children:[n.share_lift.toFixed(1),"x"]})]},n.id))})]})]}),e.jsx(Cs,{})]}),e.jsxs("div",{className:"feed-main",children:[(Ye()||kt())&&e.jsx("div",{className:"feed-chat",children:e.jsx(eo,{})}),e.jsxs("div",{className:"feed-content",children:[e.jsxs("div",{className:"sort-bar home-feed-sort-bar",children:[e.jsx("div",{className:"paper-feed-toolbar-controls",children:e.jsxs("div",{className:"sort-options",children:[e.jsx("button",{className:`sort-btn ${o==="trending"?"active":""}`,onClick:()=>S("/"),children:"trending"}),e.jsxs("button",{className:`sort-btn ${s?"active":""}`,onClick:()=>S("/following"),children:["following",ee>0&&e.jsx("span",{className:"nav-new-badge feed-tab-new",title:"New papers since your last visit",children:"New"})]})]})}),e.jsx(Ns,{startDate:u.startDate,endDate:u.endDate,onChange:n=>C(Ss(j,n))})]}),s&&(!!a||!(h!=null&&h.isLoading))&&e.jsx(Ys,{topics:y.data??[],follows:R.data??[],active:w,hrefFor:A,onEdit:X?()=>l(null):void 0,editLabel:(Ie=y.data)!=null&&Ie.length||(Le=R.data)!=null&&Le.length?"Edit feed":"Build feed"}),H&&e.jsx(Be,{variant:"destructive",className:"mb-4",children:e.jsxs(He,{children:["Failed to load papers. ",e.jsx("button",{type:"button",onClick:()=>void O.refetch(),children:"Try again"})]})}),K.isError&&K.variables&&e.jsx(Be,{variant:"destructive",className:"mb-4",children:e.jsx(He,{children:Ve(K.error)?e.jsxs(e.Fragment,{children:["Could not follow “",K.variables.text,"”: ",K.error.message,"."]}):e.jsxs(e.Fragment,{children:["Could not follow “",K.variables.text,"”. ",e.jsx("button",{type:"button",onClick:()=>G(K.variables),children:"Try again"})]})})}),Q.isError&&Q.variables&&e.jsx(Be,{variant:"destructive",className:"mb-4",children:e.jsxs(He,{children:["Could not follow ",Q.variables.map(n=>n.name).join(", "),". ",e.jsx("button",{type:"button",onClick:()=>pe(Q.variables),children:"Try again"})]})}),me.isError&&e.jsx(Be,{variant:"destructive",className:"mb-4",children:e.jsxs(He,{children:["Could not follow the popular topics you picked. ",e.jsx("button",{type:"button",onClick:()=>ve(Ge()),children:"Try again"})]})}),s&&N.length>0&&e.jsxs("div",{className:"following-topic-note",role:"status",children:["Showing the closest papers about ",N.map(n=>`“${T(n)}”`).join(" and ")," now. A model is reading papers to refine these matches, which takes a few minutes."]}),X&&e.jsx(Hs,{open:i!==void 0,topicId:i??null,afterSavePath:s?void 0:"/following",onOpenChange:n=>{if(!n&&(l(void 0),j.has("edit"))){const m=new URLSearchParams(j);m.delete("edit"),C(m,{replace:!0})}}}),p&&!$&&e.jsxs("div",{className:"following-topic-note following-topic-filter",role:"status",children:["Showing only papers about your topics. ",e.jsx(se,{to:A(F),children:"Show everything you follow"})]}),D?e.jsx(Ds,{onBuild:X?()=>l(null):void 0}):e.jsx(Ts,{query:O,isLoading:O.isLoading||oe.isLoading||s&&!!(h!=null&&h.isLoading),cards:ke,skeleton:"card",rootMargin:"400px",cardHeader:B?n=>n===so&&e.jsx(Ms,{onBuild:()=>l(null)}):void 0,empty:H?null:P?e.jsxs(e.Fragment,{children:["No papers about this topic match these filters. Widen the date range or ",e.jsx("button",{type:"button",className:"link-button",onClick:()=>l(P.id),children:"edit the topic"}),"."]}):$?e.jsx(e.Fragment,{children:"No papers match the selected bubbles in this window. Widen the date range or pick more bubbles."}):p?e.jsx(e.Fragment,{children:"No papers about your topics match these filters. Widen the date range or follow more topics."}):s?e.jsxs(e.Fragment,{children:["No papers from your topics or follows match these filters. Widen the date range, or follow more from ",e.jsx(se,{to:"/tasks",children:"tasks"}),", ",e.jsx(se,{to:"/methods",children:"methods"}),", benchmark, author, or organization pages."]}):"No papers in this window."})]})]})]})]})},tn=()=>(Ps(Es),e.jsx(lo,{mode:"trending"}));export{eo as AskAssistant,lo as HomeFeed,tn as default};
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/FeedView-DR3f1Ub6.js ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import{d as at,j as e,L as W,b as X,i as c,X as Bt,r as me,k as Ht,o as qe,q as qt,C as Re,a as Gt,s as Kt,t as nt,v as _t,w as lt,m as Wt,x as Ge,e as Yt,f as Qt,y as ze,l as Xt,z as Ve,B as Ft,D as Vt,g as ct,E as Zt,F as Jt}from"./index-DqiWSKRu.js";import{S as Et,U as es,t as ts}from"./taskIcons-Cie5gHYA.js";import{c as Lt,F as Ze,t as le,a as ss,d as Pt,e as Dt,f as It,b as os,g as At,u as as,h as ns,i as is,j as Ke,k as rs,l as ls,m as cs,n as ds,o as dt,p as ut,q as Ye,v as us,w as ps}from"./researchTopic-CoMNa-1c.js";import{P as be}from"./plus-DSNQa55K.js";import{A as Rt}from"./arrow-right-D_glSYCT.js";import{C as hs,P as $t,u as ms,a as fs,b as gs,D as Qe,q as xs,c as ws,d as bs,i as js,e as ys,A as vs,f as Ns,S as we,g as ks}from"./index-CV2RBjLM.js";import{D as Ss,a as Ts,b as Cs}from"./dialog-Wuv1Mb7q.js";import{S as _s}from"./switch-YFyOAE0-.js";import{T as Fs,a as Es,b as pt,c as ht}from"./tabs-CisePgtg.js";import{u as Ls}from"./useDebounce-WuCmYjd8.js";import{d as Je,t as Ps}from"./transform-CZk96jj7.js";import{T as Ds}from"./trash-2-BXFf5wi-.js";import{U as Is}from"./undo-2-Cs5_pAds.js";import{A as As}from"./arrow-up-right-DW8s8d6m.js";import{c as Rs,h as $s}from"./colors-BkWRhvFI.js";import{r as Ms,u as Os,a as Us,w as zs,P as Bs}from"./usePapers-DhjAXi7Z.js";import{M as Hs}from"./McpShowcase-2nbI0Yx2.js";import{c as qs}from"./chat-4qtVsasI.js";import{S as mt}from"./skeleton-Co0D0sKS.js";import{A as Be,a as He}from"./alert-Ccdfz8nH.js";import{u as Gs}from"./useDocumentTitle-BkdH1nHb.js";import{H as Ks}from"./pageTitles-A2o-JnLx.js";import"./search-D6MzDlxw.js";import"./triangle-alert-D-HRclph.js";import"./share-2-6MRpEA8D.js";import"./trending-up-DfsExUmr.js";import"./moon-9co7u-sZ.js";import"./thumbs-up-O9YhH8YG.js";import"./database-a8bVJz-T.js";import"./link-2-BVao7-2t.js";import"./trophy-BMD8z3-h.js";import"./file-text-DygGjiFE.js";import"./activity-CMRWXS32.js";import"./globe-C8su8imU.js";import"./useMutation-s01kVLYP.js";import"./index-4rRR7FSk.js";import"./PaperCard-VdH8pI7u.js";import"./AuthorAvatar-BjZbMuV8.js";import"./SotaBadges-DiZSUF6s.js";import"./Icon-DqGTBJZ9.js";import"./LatexTitle-CKwsnD2Q.js";import"./safeExternalHref-CkBrsh84.js";import"./popover-BFaNN2oM.js";import"./useIntersectionObserver-BY6KvlsB.js";import"./useInfiniteQuery-YJbg_oLc.js";import"./AgentLogos-C8ZXxWoe.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=at("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);/**
7
+ * @license lucide-react v0.462.0 - ISC
8
+ *
9
+ * This source code is licensed under the ISC license.
10
+ * See the LICENSE file in the root directory of this source tree.
11
+ */const Ys=at("GripVertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]);/**
12
+ * @license lucide-react v0.462.0 - ISC
13
+ *
14
+ * This source code is licensed under the ISC license.
15
+ * See the LICENSE file in the root directory of this source tree.
16
+ */const Qs=at("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);function Xs({onBuild:t}){return e.jsxs("section",{className:"following-intro","aria-labelledby":"following-intro-title",children:[e.jsx("h2",{id:"following-intro-title",children:"Build your personal research feed"}),e.jsx("p",{className:"following-intro-lead",children:"Describe topics in your own words, or follow the tasks, benchmarks, authors, and organizations you care about, and this page collects their latest papers and results in one place."}),t&&e.jsxs("button",{type:"button",className:"research-topic-save following-intro-topic",onClick:t,children:[e.jsx(Et,{"aria-hidden":"true"}),"Build your feed"]}),e.jsxs("p",{className:"following-intro-note",children:["Matching papers also arrive as a weekly email, which you can turn off in"," ",e.jsx(W,{to:"/settings",children:"Settings"}),"."]})]})}const Mt="pwc:home-follow-card:dismissed",Vs=5;function Zs(){try{return localStorage.getItem(Mt)==="1"}catch{return!1}}function Js({onBuild:t}){const s=X(me.featuredTopics()),{follow:a,finishing:d,failed:n}=Lt(),[N,C]=c.useState(Zs);if(N)return null;const p=()=>{try{localStorage.setItem(Mt,"1")}catch{}C(!0)},m=(s.data??[]).slice(Ze,Ze+Vs);return e.jsxs("section",{className:"home-follow-card","aria-labelledby":"home-follow-card-title",children:[e.jsx("button",{type:"button",className:"home-follow-card-close","aria-label":"Dismiss",onClick:p,children:e.jsx(Bt,{"aria-hidden":"true"})}),e.jsx("h2",{id:"home-follow-card-title",children:"Get a feed for your research"}),e.jsx("p",{children:"Follow topics, tasks, authors and labs, and their new papers collect on your following page and in a weekly email."}),m.length>0&&e.jsx("div",{className:"topic-dialog-chips home-follow-card-topics",children:m.map(_=>e.jsxs("button",{type:"button",className:"topic-dialog-chip","aria-pressed":"false",disabled:d,onClick:()=>a(_.id),children:[e.jsx(be,{"aria-hidden":"true"}),le(_)]},_.id))}),n&&e.jsx("p",{className:"home-follow-card-error",role:"alert",children:"Could not follow that topic. Please try again."}),e.jsxs("button",{type:"button",className:"research-topic-save",onClick:t,children:[e.jsx(Et,{"aria-hidden":"true"}),"Build your feed"]})]})}function et({topic:t,action:s,newTab:a=!1,showCreator:d=!1,as:n="li",className:N}){const C=t.follower_avatars??[],p=t.top_paper;return e.jsxs(n,{className:["home-topic-card",N].filter(Boolean).join(" "),children:[e.jsx(ft,{to:ss(t),newTab:a,className:"home-topic-title",children:le(t)}),d&&t.creator&&e.jsxs("div",{className:"home-topic-creator",children:["by @",t.creator.username]}),t.followers!=null&&e.jsxs("div",{className:"home-topic-followers",children:[C.length>0&&e.jsx("span",{className:"home-topic-avatars","aria-hidden":"true",children:C.map(m=>e.jsx(eo,{person:m},m.username))}),t.followers," ",t.followers===1?"follower":"followers"]}),!!t.week_papers&&e.jsxs("div",{className:"home-topic-meta",children:[t.week_papers," new ",t.week_papers===1?"paper":"papers"," this week"]}),p&&e.jsx(ft,{to:`/paper/${p.arxiv_id||p.id}`,newTab:a,className:"home-topic-paper",title:p.title,children:p.title}),s]})}function ft({to:t,newTab:s,className:a,title:d,children:n}){return s?e.jsx("a",{href:t,target:"_blank",rel:"noopener noreferrer",className:a,title:d,children:n}):e.jsx(W,{to:t,className:a,title:d,children:n})}function eo({person:t}){const[s,a]=c.useState(!1);return s?e.jsx("span",{className:"topic-avatar home-topic-avatar-initial",children:t.username.charAt(0).toUpperCase()}):e.jsx("img",{className:"topic-avatar",src:Ht(t.avatar_url)??void 0,alt:"",width:20,height:20,loading:"lazy",onError:()=>a(!0)})}function to({followedIds:t,onBuild:s}){const a=X(me.featuredTopics()),{follow:d,finishing:n,failed:N}=Lt(),C=(a.data??[]).slice(0,Ze),p=((t==null?void 0:t.size)??0)>=qe,m=c.useRef(null),[_,A]=c.useState({start:!0,end:!0});c.useEffect(()=>{const b=m.current;if(!b)return;const u=()=>A({start:b.scrollLeft<=1,end:b.scrollLeft+b.clientWidth>=b.scrollWidth-1});return u(),b.addEventListener("scroll",u,{passive:!0}),window.addEventListener("resize",u),()=>{b.removeEventListener("scroll",u),window.removeEventListener("resize",u)}},[C.length]);const I=b=>{const u=m.current;if(!u)return;const T=parseFloat(getComputedStyle(u).columnGap)||0;u.scrollBy({left:b*(u.clientWidth+T),behavior:"smooth"})};return C.length===0?null:e.jsxs("section",{className:"home-topics","aria-labelledby":"home-topics-title",children:[e.jsxs("div",{className:"home-topics-header",children:[e.jsxs("h2",{id:"home-topics-title",children:[e.jsx(es,{"aria-hidden":"true"}),"Popular topics to follow"]}),e.jsxs("div",{className:"home-topics-actions",children:[e.jsxs("button",{type:"button",className:"home-topics-own",onClick:s,children:["Create your own topic",e.jsx(Rt,{"aria-hidden":"true"})]}),!(_.start&&_.end)&&e.jsxs(e.Fragment,{children:[e.jsx("button",{type:"button",className:"home-topics-page","aria-label":"Previous topics",disabled:_.start,onClick:()=>I(-1),children:e.jsx(hs,{"aria-hidden":"true"})}),e.jsx("button",{type:"button",className:"home-topics-page","aria-label":"More topics",disabled:_.end,onClick:()=>I(1),children:e.jsx(qt,{"aria-hidden":"true"})})]})]})]}),e.jsx("ul",{ref:m,className:"home-topics-list is-scroller",children:C.map(b=>e.jsx(et,{topic:b,action:t?t.has(b.id)?e.jsxs(W,{to:`/following?topic=${b.id}`,className:"home-topic-follow is-following",children:[e.jsx(Re,{"aria-hidden":"true"}),"Following"]}):e.jsxs("button",{type:"button",className:"home-topic-follow",disabled:n||p,title:p?`You follow ${qe} topics, the most allowed. Remove one to add another.`:void 0,onClick:()=>d(b.id),"aria-label":`Follow ${le(b)}`,children:[e.jsx(be,{"aria-hidden":"true"}),"Follow"]}):e.jsxs("span",{className:"home-topic-follow is-pending","aria-hidden":"true",children:[e.jsx(be,{}),"Follow"]})},b.id))}),N&&e.jsx("p",{className:"home-topics-error",role:"alert",children:"Could not follow that topic. Please try again."})]})}const tt=180,gt=`transform ${tt}ms cubic-bezier(0.2, 0, 0, 1), box-shadow ${tt}ms ease`,xt=()=>{var t;return((t=window.matchMedia)==null?void 0:t.call(window,"(prefers-reduced-motion: reduce)").matches)??!1};function so(t){const s=getComputedStyle(t).transform.match(/matrix(3d)?\(([^)]+)\)/);if(!s)return{x:0,y:0};const a=s[2].split(",").map(Number);return s[1]?{x:a[12]||0,y:a[13]||0}:{x:a[4]||0,y:a[5]||0}}function oo({items:t,itemKey:s,itemLabel:a,onReorder:d,renderItem:n,className:N,disabled:C=!1,grid:p=!1}){const[m,_]=c.useState(null),[A,I]=c.useState(null),[b,u]=c.useState(null),T=c.useRef(new Map),q=c.useRef(new Map),f=c.useRef({x:0,y:0,grabX:0,grabY:0}),V=(m==null?void 0:m.order)??((b==null?void 0:b.from)===t?b.order:t),R=(S,x)=>S.length===x.length&&S.every((l,h)=>s(l)===s(x[h])),$=(S,x)=>p?`translate(${S}px, ${x}px)`:`translateY(${x}px)`,j=S=>{S.style.transition="none";const{x,y:l,grabX:h,grabY:y}=f.current;S.style.transform=$(x-h-S.offsetLeft,l-y-S.offsetTop)};c.useLayoutEffect(()=>{const S=!xt();T.current.forEach((x,l)=>{const h={x:x.offsetLeft,y:x.offsetTop},y=q.current.get(l);if(q.current.set(l,h),l===(m==null?void 0:m.key))return j(x);if(!S||y===void 0||y.x===h.x&&y.y===h.y)return;const g=so(x);x.style.transition="none",x.style.transform=$(y.x+g.x-h.x,y.y+g.y-h.y),x.offsetHeight,x.style.transition=gt,x.style.transform=""})});const G=c.useRef({items:t,onReorder:d,drag:m});G.current={items:t,onReorder:d,drag:m};const Y=m!==null;c.useEffect(()=>{if(!Y)return;const S=y=>{var J;f.current.x=y.clientX,f.current.y=y.clientY;const g=(J=G.current.drag)==null?void 0:J.key,k=g===void 0?void 0:T.current.get(g);k&&j(k);const M=f.current.y-f.current.grabY+((k==null?void 0:k.offsetHeight)??0)/2,z=f.current.x-f.current.grabX+((k==null?void 0:k.offsetWidth)??0)/2,U=(F,P)=>p?F.offsetTop+F.offsetHeight<M?!0:F.offsetTop>M?!1:F.offsetLeft<=z&&z<=F.offsetLeft+F.offsetWidth?P:F.offsetLeft+F.offsetWidth/2<z:F.offsetTop+F.offsetHeight/2<M;_(F=>{if(!F)return F;const P=F.order.findIndex(O=>s(O)===F.key),E=F.order[P],ne=F.order.filter(O=>s(O)!==F.key),ce=ne.filter(O=>{const ie=T.current.get(s(O));return ie?U(ie,F.order.indexOf(O)>P):!1}).length,fe=[...ne.slice(0,ce),E,...ne.slice(ce)];return R(fe,F.order)?F:{...F,order:fe}})},x=y=>{const{drag:g,items:k,onReorder:M}=G.current,z=g?T.current.get(g.key):void 0;if(z&&g){const U=!xt();z.style.transition=U?gt:"none",z.style.transform="",U&&(I(g.key),window.setTimeout(()=>I(J=>J===g.key?null:J),tt))}y&&g&&!R(g.order,k)&&(u({from:k,order:g.order}),M(g.order)),_(null)},l=()=>x(!0),h=()=>x(!1);return window.addEventListener("pointermove",S),window.addEventListener("pointerup",l),window.addEventListener("pointercancel",h),()=>{window.removeEventListener("pointermove",S),window.removeEventListener("pointerup",l),window.removeEventListener("pointercancel",h)}},[Y]);const Z=(S,x)=>{const l=t.findIndex(g=>s(g)===S),h=l+x;if(h<0||h>=t.length)return;const y=[...t];y.splice(h,0,...y.splice(l,1)),u({from:t,order:y}),d(y)};return e.jsx("ul",{className:["sortable-list",N].filter(Boolean).join(" "),children:V.map(S=>{const x=s(S),l=(m==null?void 0:m.key)===x,h=l||A===x,y=e.jsx("button",{type:"button",className:"sortable-handle",disabled:C||t.length<2,"aria-label":`Reorder ${a(S)}. Use the ${p?"arrow":"up and down arrow"} keys to move it.`,onPointerDown:g=>{if(g.button!==0)return;g.preventDefault();const k=T.current.get(x);f.current={x:g.clientX,y:g.clientY,grabX:g.clientX-((k==null?void 0:k.offsetLeft)??0),grabY:g.clientY-((k==null?void 0:k.offsetTop)??0)},_({key:x,order:t})},onKeyDown:g=>{const M=(p?{ArrowUp:-1,ArrowDown:1,ArrowLeft:-1,ArrowRight:1}:{ArrowUp:-1,ArrowDown:1})[g.key];M&&(g.preventDefault(),Z(x,M))},children:e.jsx(Ys,{"aria-hidden":"true"})});return e.jsx("li",{className:h?"sortable-item is-dragging":"sortable-item",ref:g=>{g?T.current.set(x,g):T.current.delete(x)},children:n(S,y,l)},x)})})}const wt=16,ao=6;function no({open:t,topicId:s=null,afterSavePath:a,onOpenChange:d}){return e.jsx(Ss,{open:t,onOpenChange:d,children:e.jsx(Ts,{className:"topic-dialog","aria-describedby":void 0,children:e.jsx(io,{topicId:s,afterSavePath:a,onDone:()=>d(!1)},s??"new")})})}function bt({to:t,name:s}){return e.jsx("a",{className:"topic-dialog-chip-open",href:t,target:"_blank",rel:"noopener noreferrer","aria-label":`Open the ${s} page`,title:"Open its page in a new tab",children:e.jsx(As,{"aria-hidden":"true"})})}function io({topicId:t,afterSavePath:s,onDone:a}){var Pe,De,Ie,Ae,i,w,H,ae,Oe;const{user:d}=Gt(),n=Kt(),N=nt(),C=_t(),p=Pt(),m=Dt(),_=X(Ge.trendingTasks({limit:wt,level:0})),A=X(Ge.trendingMethods({limit:wt})),I=X(me.followSuggestions()),b=X(me.featuredTopics()),u=(o=[])=>o.map(r=>({id:String(r.entity_id),name:r.name,image:r.image_url,url:r.url})),[T,q]=c.useState(t),[f,V]=c.useState(null),[R,$]=c.useState([]),[j,G]=c.useState([]),[Y,Z]=c.useState([]),[S,x]=c.useState(null),[l,h]=c.useState({}),[y,g]=c.useState("topics"),k=It(),M=os(),z=At(),U=as(),J=ns(),F=is(),P=p.data??[],E=P.find(o=>o.id===T),ne=Ls(yt(f??(E==null?void 0:E.text)??"").toLowerCase()),ce=X({...me.topicMatches(ne),enabled:ne.length>=3}),fe=(S==null?void 0:S.length)===P.length&&S.every(o=>P.some(r=>r.id===o.id)),O=S&&fe?S:P,ie=O.some((o,r)=>{var v;return o.id!==((v=P[r])==null?void 0:v.id)}),ee=j.filter(o=>P.some(r=>r.id===o)),ke=Object.entries(l).map(([o,r])=>({id:Number(o),isPublic:r})).filter(({id:o,isPublic:r})=>!ee.includes(o)&&P.some(v=>v.id===o&&v.is_creator&&v.is_public!==r)),Se=(b.data??[]).filter(o=>!P.some(r=>r.id===o.id)).slice(0,ao),re=Y.filter(o=>Se.some(r=>r.id===o)),Q=(E==null?void 0:E.text)??"",ge=f??Q,te=yt(ge),oe=ne===te.toLowerCase()&&!ce.isFetching?ce.data??[]:[],Te=Ke(k.error)&&((Pe=k.variables)==null?void 0:Pe.text)===te?k.error:null,de=(E==null?void 0:E.status)==="failed"&&te===Q,ue=P.length-ee.length+re.length>=qe,xe=te.length>=3&&(te!==Q||de)&&!oe.length&&(E?!ee.includes(E.id):!ue),[$e,We]=c.useState(!1),ye=c.useRef(!0);c.useEffect(()=>(ye.current=!0,()=>{ye.current=!1}),[]);const B=k.isPending||M.isPending||z.isPending||U.isPending||J.isPending||F.isPending||$e,ve=(o,r)=>{var v;return((v=m.data)==null?void 0:v.some(D=>D.kind===o&&String(D.entity_id)===r))??!1},Ne=(o,r)=>{var v;return((v=R.find(D=>D.kind===o&&D.id===r))==null?void 0:v.follow)??ve(o,r)},se=R.filter(o=>o.follow!==ve(o.kind,o.id)),Me=ee.length+re.length+ke.length+(ie?1:0),Ce=!B&&(xe||se.length>0||Me>0),_e=(o,r,v)=>$(D=>[...D.filter(he=>he.kind!==o||he.id!==r),{kind:o,id:r,name:v,follow:!Ne(o,r)}]),Fe=o=>{q(o),V(null)},Ee=()=>{if(!Ce)return;if(!d){xe&&rs(te),se.length&&ls(se),re.length&&cs(re),window.location.href=Wt(s??`${n.pathname}${n.search}`);return}const o=ee.length?M.mutateAsync(ee):Promise.resolve(),r=O.filter(K=>!ee.includes(K.id)),v=o.catch(()=>{}).then(()=>ie?J.mutateAsync(r):void 0),D=v.catch(()=>{}),he=[...se.length?[z.mutateAsync(se)]:[],o,v,...ke.map(K=>F.mutateAsync(K)),...xe?[D.then(()=>k.mutateAsync({id:E==null?void 0:E.id,text:te}))]:[],...re.map(K=>D.then(()=>U.mutateAsync(K)))];Promise.allSettled(he).then(async K=>{if(K.every(L=>L.status==="fulfilled")){if(s){if(We(!0),await Promise.all([C.refetchQueries({queryKey:me.follows(d.hf_subject).queryKey}),C.refetchQueries({queryKey:me.topics(d.hf_subject).queryKey})]),!ye.current)return;a(),N(s);return}a()}})},pe=(o,r,v,D)=>{const K=[...(m.data??[]).filter(L=>L.kind===r).map(L=>({id:String(L.entity_id),name:L.name,slug:L.url.split("/").pop(),image:L.image_url,url:L.url})),...v.filter(L=>!ve(r,L.id)).map(L=>({...L,suggested:!0}))];return K.length>0&&e.jsxs("div",{className:"topic-dialog-group",children:[e.jsx("h3",{children:o}),e.jsxs(ro,{children:[K.map(L=>{const rt=Ne(r,L.id),Ue=r==="task"?Je(L.name,L.slug??void 0):L.name,zt=L.url??`/${r==="task"?"tasks":"methods"}/${L.slug??L.id}`;return e.jsxs("span",{className:"topic-dialog-chip-wrap","data-suggested":"suggested"in L||void 0,children:[e.jsxs("button",{type:"button",className:"topic-dialog-chip","aria-pressed":rt,disabled:B,onClick:()=>_e(r,L.id,Ue),children:[rt?e.jsx(Re,{"aria-hidden":"true"}):e.jsx(be,{"aria-hidden":"true"}),(r==="author"||r==="organization")&&e.jsx(lo,{kind:r,name:Ue,src:L.image}),Ue]}),e.jsx(bt,{to:zt,name:Ue})]},L.id)}),D&&e.jsxs(W,{to:D.to,className:"topic-dialog-browse",children:[D.label,e.jsx(Rt,{"aria-hidden":"true"})]})]})]})},Le=E?l[E.id]??E.is_public:!0;return e.jsxs("form",{className:"topic-dialog-form",onSubmit:o=>{o.preventDefault(),Ee()},children:[e.jsx(Cs,{className:"topic-dialog-title",children:(De=p.data)!=null&&De.length||(Ie=m.data)!=null&&Ie.length?"Edit your research feed":"Build your research feed"}),e.jsxs(Fs,{value:y,onValueChange:g,className:"topic-dialog-tabs",children:[e.jsxs(Es,{className:"topic-dialog-tab-list",children:[e.jsxs(pt,{value:"topics",className:"topic-dialog-tab",children:["Topics",e.jsx(jt,{count:re.length+ee.length})]}),e.jsxs(pt,{value:"catalog",className:"topic-dialog-tab",children:["Tasks, methods & more",e.jsx(jt,{count:se.length})]})]}),e.jsxs(ht,{value:"topics",className:"topic-dialog-panel",children:[e.jsxs("div",{className:"topic-dialog-group",children:[e.jsx("h3",{children:e.jsx("label",{htmlFor:"topic-dialog-input",children:E?`Reword “${le(E)}”`:(Ae=p.data)!=null&&Ae.length?"Add a topic in your own words":"Describe a topic in your own words"})}),e.jsx("p",{className:"topic-dialog-hint",children:!E&&ue?`You follow ${qe} topics, the most allowed. Remove one below to add another.`:e.jsxs(e.Fragment,{children:["A model reads every new paper and adds the ones that match to your ",d?e.jsx(W,{to:"/following",className:"topic-dialog-feed-link",onClick:a,children:"Following feed"}):"Following feed",". New topics are public and show your Hugging Face username; make one private from its ✎ button below, or remove one with its trash button."]})}),e.jsx("textarea",{id:"topic-dialog-input",className:"research-topic-input",rows:4,maxLength:lt,"aria-label":"Research topic",placeholder:"e.g. diffusion policies for robot manipulation, or speculative decoding for LLM inference",value:ge,onChange:o=>V(o.target.value),onKeyDown:o=>{o.key==="Enter"&&!o.shiftKey&&!o.nativeEvent.isComposing&&(o.preventDefault(),Ee())}}),e.jsxs("span",{className:"research-topic-count",children:[ge.length,"/",lt]}),oe.length>0&&e.jsxs("div",{className:"topic-dialog-duplicate",role:"status",children:[e.jsxs("p",{children:["Papers with Code already has ",oe.length>1?"pages":`a ${oe[0].kind} page`," for “",te,"”. Follow ",oe.length>1?"one":"it"," instead of adding a topic:"]}),e.jsx("div",{className:"topic-dialog-chips",children:oe.map(o=>{const r=String(o.entity_id),v=Ne(o.kind,r);return e.jsxs("span",{className:"topic-dialog-chip-wrap",children:[e.jsxs("button",{type:"button",className:"topic-dialog-chip","aria-pressed":v,disabled:B,onClick:()=>_e(o.kind,r,o.name),children:[v?e.jsx(Re,{"aria-hidden":"true"}):e.jsx(be,{"aria-hidden":"true"}),o.name]}),e.jsx(bt,{to:o.url,name:o.name})]},`${o.kind}:${r}`)})})]}),E&&e.jsxs("div",{className:"topic-dialog-editing",children:[E.is_creator&&e.jsxs("label",{className:"topic-dialog-privacy",children:[e.jsx(_s,{checked:Le,disabled:B,"aria-label":"Public topic",onCheckedChange:o=>h(r=>({...r,[E.id]:o}))}),Le?"Public: anyone can find and follow it":"Private: only you see it"]}),e.jsx("button",{type:"button",className:"link-button",disabled:B,onClick:()=>Fe(null),children:"Add a new topic instead"})]})]}),P.length>0&&e.jsxs("div",{className:"topic-dialog-group",children:[e.jsx("h3",{children:"Your topics"}),e.jsx(oo,{className:"home-topics-list topic-dialog-topic-cards",grid:!0,items:O,itemKey:o=>o.id,itemLabel:o=>le(o),disabled:B,onReorder:x,renderItem:(o,r)=>{const v=!j.includes(o.id),D=le(o),he=()=>G(K=>v?[...K,o.id]:K.filter(L=>L!==o.id));return e.jsx(et,{as:"div",topic:o,newTab:!0,showCreator:!0,className:`topic-dialog-own-topic ${o.id===T?"is-editing":""} ${v?"":"is-removed"}`,action:e.jsxs("div",{className:"topic-dialog-card-actions",children:[e.jsxs("button",{type:"button",className:`home-topic-follow ${v?"is-following":""}`,"aria-pressed":v,"aria-label":D,title:v?"Remove from your feed on Save":"Keep this topic",disabled:B,onClick:he,children:[v?e.jsx(Re,{"aria-hidden":"true"}):e.jsx(be,{"aria-hidden":"true"}),v?"Following":"Follow"]}),e.jsx("button",{type:"button",className:"topic-dialog-chip-open",disabled:B||o.id===T,"aria-label":`Reword ${D}`,title:"Reword this topic",onClick:()=>Fe(o.id),children:e.jsx($t,{"aria-hidden":"true"})}),e.jsx("button",{type:"button",className:"topic-dialog-chip-open topic-dialog-chip-remove",disabled:B,"aria-label":v?`Remove ${D}`:`Keep ${D}`,title:v?"Remove from your feed on Save":"Keep this topic",onClick:he,children:v?e.jsx(Ds,{"aria-hidden":"true"}):e.jsx(Is,{"aria-hidden":"true"})}),e.jsx("span",{className:"topic-dialog-card-handle",children:r})]})})}})]}),Se.length>0&&e.jsxs("div",{className:"topic-dialog-group",children:[e.jsx("h3",{children:"Popular topics"}),e.jsx("ul",{className:"home-topics-list topic-dialog-topic-cards",children:Se.map(o=>{const r=Y.includes(o.id);return e.jsx(et,{topic:o,newTab:!0,showCreator:!0,action:e.jsxs("button",{type:"button",className:`home-topic-follow ${r?"is-following":""}`,"aria-pressed":r,"aria-label":`Follow ${le(o)}`,disabled:B||!r&&ue,onClick:()=>Z(v=>r?v.filter(D=>D!==o.id):[...v,o.id]),children:[r?e.jsx(Re,{"aria-hidden":"true"}):e.jsx(be,{"aria-hidden":"true"}),r?"Following":"Follow"]})},o.id)})})]})]}),e.jsxs(ht,{value:"catalog",className:"topic-dialog-panel",children:[pe("Trending tasks","task",((i=_.data)==null?void 0:i.results)??[],{to:"/tasks",label:"Browse tasks"}),pe("Trending methods","method",((w=A.data)==null?void 0:w.results)??[],{to:"/methods",label:"Browse methods"}),pe("Popular benchmarks","benchmark",u((H=I.data)==null?void 0:H.benchmarks),{to:"/tasks",label:"Browse benchmarks"}),pe("Popular authors","author",u((ae=I.data)==null?void 0:ae.authors)),pe("Popular organizations","organization",u((Oe=I.data)==null?void 0:Oe.organizations),{to:"/organizations",label:"Browse organizations"})]})]}),Te&&e.jsxs("p",{className:"settings-token-error",role:"alert",children:[Te.message,"."]}),(k.error&&!Ke(k.error)||M.error||z.error||U.error||J.error||F.error)&&e.jsx("p",{className:"settings-token-error",role:"alert",children:"Could not save your feed. Please try again."}),e.jsxs("div",{className:"topic-dialog-actions",children:[e.jsx("button",{type:"button",className:"research-follow-action",disabled:B,onClick:a,children:"Cancel"}),e.jsx("button",{type:"submit",className:"research-topic-save",disabled:!Ce,children:se.some(o=>o.follow===!1)||ee.length||ie||ke.length?"Save":se.length||re.length?"Follow":de?"Retry":E?"Update topic":"Follow"})]})]})}function jt({count:t}){return t>0?e.jsx("span",{className:"topic-dialog-tab-count","aria-label":`${t} unsaved`,children:t}):null}function ro({children:t}){const s=c.useRef(null);return c.useLayoutEffect(()=>{const a=s.current;if(!a)return;const d=()=>{const n=[...a.children],N=n.filter(p=>p.dataset.suggested);N.forEach(p=>{p.hidden=!1});const C=()=>new Set(n.filter(p=>!p.hidden).map(p=>p.offsetTop)).size;for(let p=N.length-1;p>=0&&C()>2;p--)N[p].hidden=!0};return d(),window.addEventListener("resize",d),()=>window.removeEventListener("resize",d)}),e.jsx("div",{ref:s,className:"topic-dialog-chips",children:t})}function lo({kind:t,name:s,src:a}){const[d,n]=c.useState(!1);if(a&&!d)return e.jsx("img",{className:`topic-dialog-chip-image is-${t}`,src:a,alt:"",loading:"lazy",onError:()=>n(!0)});if(t!=="author")return null;const N=s.split(/\s+/).filter(Boolean).map(C=>C[0]).slice(0,2).join("").toUpperCase();return e.jsx("span",{className:"topic-dialog-chip-image is-author is-initials","aria-hidden":"true",children:N})}const yt=t=>t.trim().replace(/\s+/g," "),vt=12,Nt=["organization","author","task","method","benchmark"],co={task:"Task",method:"Method",benchmark:"Benchmark",author:"Author",organization:"Organization"},uo={topicIds:[],follows:[]},Xe=t=>`${t.kind}:${t.entity_id}`;function po(t){return[...t].sort((s,a)=>Nt.indexOf(s.kind)-Nt.indexOf(a.kind)||a.created_at.localeCompare(s.created_at))}function ho({follow:t}){if(t.kind==="task"){const s=t.url.split("/").pop()??"",a=ts(s,t.parent_slug??void 0);return e.jsx(a,{size:14,strokeWidth:2,"aria-hidden":"true",style:{color:Rs($s(s)).dot}})}if(t.kind==="author"||t.kind==="organization"){if(t.image_url)return e.jsx("img",{src:t.image_url,alt:"",width:18,height:18,loading:"lazy"});const s=t.kind==="author"?Qs:Ws;return e.jsx(s,{size:14,"aria-hidden":"true"})}return null}const kt=(t,s)=>t.includes(s)?t.filter(a=>a!==s):[...t,s];function mo({topics:t,follows:s,active:a,hrefFor:d,onEdit:n,editLabel:N}){const[C,p]=c.useState(!1),m=[...t.map(u=>({key:`topic:${u.id}`,filter:{...a,topicIds:kt(a.topicIds,u.id)},name:le(u),title:u.text,mark:null,on:a.topicIds.includes(u.id)})),...po(s).map(u=>({key:Xe(u),filter:{...a,follows:kt(a.follows,Xe(u))},name:u.name,title:`${co[u.kind]} · ${u.name}`,mark:e.jsx(ho,{follow:u}),on:a.follows.includes(Xe(u))}))],_=a.topicIds.length===0&&a.follows.length===0,I=!C&&m.length>vt+1?m.filter((u,T)=>T<vt||u.on):m,b=m.length-I.length;return e.jsxs("nav",{className:"topic-bubbles follow-bubbles","aria-label":"Filter your feed",children:[m.length>0&&e.jsx(W,{className:`topic-bubble ${_?"active":""}`,to:d(uo),"aria-current":_?"true":void 0,children:e.jsx("span",{className:"topic-bubble-name",children:"All"})}),I.map(u=>e.jsxs(W,{className:`topic-bubble ${u.on?"active":""}`,to:d(u.filter),title:u.title,"aria-current":u.on?"true":void 0,children:[u.mark,e.jsx("span",{className:"topic-bubble-name",children:u.name})]},u.key)),b>0&&e.jsx("button",{type:"button",className:"topic-bubble topic-bubble-more",onClick:()=>p(!0),children:e.jsxs("span",{className:"topic-bubble-name",children:["+",b," more"]})}),n&&e.jsxs("button",{type:"button",className:"topic-bubble topic-bubble-add",onClick:n,children:[e.jsx($t,{size:13,"aria-hidden":"true"}),e.jsx("span",{className:"topic-bubble-name",children:N})]})]})}const St=45,fo=1800,go=25,xo=350,wo=t=>{const[s,a]=c.useState(we[0].slice(0,1)),[d,n]=c.useState(0);return c.useEffect(()=>{var A,I;if(!t)return;if((I=(A=window.matchMedia)==null?void 0:A.call(window,"(prefers-reduced-motion: reduce)"))!=null&&I.matches){a(we[0]),n(0);return}let N=0,C=1,p=!1,m;a(we[0].slice(0,C)),n(0);const _=()=>{const b=we[N];if(!p){if(C+=1,a(b.slice(0,C)),C===b.length){p=!0,m=window.setTimeout(_,fo);return}m=window.setTimeout(_,St);return}if(C-=1,a(b.slice(0,C)),C===0){p=!1,N=(N+1)%we.length,n(N),m=window.setTimeout(_,xo);return}m=window.setTimeout(_,go)};return m=window.setTimeout(_,St),()=>window.clearTimeout(m)},[t]),{placeholder:s,prompt:we[d]}},bo=()=>{var x;const t=nt(),s=Ft(),[a,d]=c.useState({text:"",paperMentions:[]}),n=a.text,[N,C]=c.useState(0),[p,m]=c.useState(!1),[_,A]=c.useState(null),{placeholder:I,prompt:b}=wo(!n),u=c.useRef(null),T=X({queryKey:["chatAvailability"],queryFn:()=>qs.getAvailability(),retry:!1,enabled:Ve()}),q=Ve()&&((x=T.data)==null?void 0:x.paper_mentions_enabled)!==!1,f=ms({draft:a,onChange:d,enabled:q,textareaRef:u}),V=c.useRef(!1),[R,$]=c.useState(!1),j=fs({draft:a,onChange:d,textareaRef:u,onEnd:l=>{V.current&&!l&&$(!0),V.current=!1}}),G=()=>{V.current=!0,j.finish()},Y=gs(a,f.open),Z=n?Y.completion:b;c.useLayoutEffect(()=>{const l=u.current;if(!l)return;const h=()=>{if(l.style.height="auto",n){l.style.height=`${Math.min(ks(l),160)}px`;return}const y=l.placeholder,g=we.reduce((k,M)=>(l.placeholder=M,Math.max(k,l.scrollHeight)),0);l.placeholder=y,l.style.height=`${Math.min(g,160)}px`};return h(),window.addEventListener("resize",h),()=>window.removeEventListener("resize",h)},[n,Z]),c.useEffect(()=>{R&&($(!1),S())},[R]);const S=async(l=a)=>{const h=l.text.trim();if(!(!h||p)){if(s){const y=new URLSearchParams({q:h,model:Qe}),g=`${Vt}?${y}`,k=window.open(g,"_blank");if(!k){A(g);return}k.opener=null,A(null),d({text:"",paperMentions:[]});return}m(!0),xs(l,Qe);try{const y=await ws(Qe);t(`/chat/${y.id}`)}catch{t("/chat")}}};return e.jsx(e.Fragment,{children:e.jsxs("div",{className:"ask-home",children:[e.jsxs("div",{className:"ask-home-row",children:[e.jsxs("div",{className:"ask-home-textarea-wrap",children:[e.jsx(bs,{text:a.text,mentions:a.paperMentions,scrollTop:N,variant:"home",completion:n?Z:""}),e.jsx("textarea",{ref:u,rows:1,value:n,placeholder:I,"aria-label":"Ask the assistant",disabled:p,readOnly:j.active,onChange:l=>{f.updateText(l.target.value,l.target.selectionStart),Y.trackCaret(l.target)},onSelect:l=>{f.refresh(l.currentTarget.selectionStart),Y.trackCaret(l.currentTarget)},onClick:l=>{f.refresh(l.currentTarget.selectionStart),Y.trackCaret(l.currentTarget)},onScroll:l=>C(l.currentTarget.scrollTop),onBlur:l=>{var h,y;(y=(h=l.relatedTarget)==null?void 0:h.closest)!=null&&y.call(h,".chat-paper-picker")||window.setTimeout(f.close,0)},onKeyDown:l=>{if(j.active){l.key==="Enter"&&!l.shiftKey&&(l.preventDefault(),j.phase==="recording"&&G());return}if(!f.keyDown(l)){if(js(l)&&Z){l.preventDefault();const h=n+Z;f.updateText(h,h.length),window.requestAnimationFrame(()=>{var y;return(y=u.current)==null?void 0:y.setSelectionRange(h.length,h.length)});return}l.key==="Enter"&&!l.shiftKey&&(l.preventDefault(),S())}},role:q?"combobox":void 0,"aria-expanded":q?f.open:void 0,"aria-controls":f.open?f.pickerId:void 0,"aria-activedescendant":f.open&&f.results.length?`${f.optionIdPrefix}-${f.activeIndex}`:void 0,"aria-autocomplete":q?"list":void 0,"aria-describedby":f.message?"ask-home-paper-mention-message":void 0})]}),!s&&e.jsx(ys,{dictation:j,disabled:p}),e.jsx("button",{type:"button",className:`chat-send${n.trim()||j.phase==="recording"?" chat-send-on":""}`,onClick:()=>j.active?G():void S(),disabled:p||(j.active?j.phase!=="recording":!n.trim()),"aria-label":"Ask the assistant",children:e.jsx(vs,{})})]}),_&&e.jsx("div",{className:"chat-paper-mention-message",role:"alert",children:e.jsx("a",{href:_,target:"_blank",rel:"noreferrer",children:"Open this question on paperswithcode.co"})}),j.error&&e.jsx("div",{className:"chat-paper-mention-message",role:"alert",children:j.error}),f.message&&e.jsx("div",{id:"ask-home-paper-mention-message",className:"chat-paper-mention-message",role:"alert",children:f.message}),e.jsx(Ns,{open:f.open,query:f.query,results:f.results,activeIndex:f.activeIndex,loading:f.loading,error:f.error,onSelect:f.select,id:f.pickerId,optionIdPrefix:f.optionIdPrefix})]})})},jo=30,yo=6,st="pwc:following-last-seen",Ot="pwc:following-new-since",vo=60*60*1e3;function ot(t){try{return localStorage.getItem(t)}catch{return null}}function Tt(t,s){try{localStorage.setItem(t,s)}catch{}}const Ut=(t,s)=>s-Date.parse(t)>vo;function No(t=Date.now()){const s=ot(st);return s?Ut(s,t)?s:ot(Ot):null}function ko(t,s=Date.now()){const a=ot(st);a&&!(t&&Ut(a,s))||(a&&Tt(Ot,a),Tt(st,new Date(s).toISOString()))}const Ct=40,So=100,To=async t=>{const s=await t;return{results:s.results.map(a=>({paper:a})),next_page:s.next_page}},Co=({mode:t})=>{var B,ve,Ne,se,Me,Ce,_e,Fe,Ee,pe,Le,Pe,De,Ie,Ae;const s=t==="following",a=nt(),d=Yt(),n=d==null?void 0:d.user,[N,C]=Qt(),p=Ms(N,void 0,t==="trending"?"week":"month"),m=i=>{const w=new URLSearchParams(N);w.delete("order_by"),w.delete("only"),w.delete("topic"),w.delete("follow");const H=w.toString();a(H?`${i}?${H}`:i)},_={topicIds:[],follows:[]},A=i=>{const w=new URLSearchParams(N);w.delete("only"),w.delete("topic"),w.delete("follow"),i.topicIds.forEach(ae=>w.append("topic",String(ae))),i.follows.forEach(ae=>w.append("follow",ae));const H=w.toString();return H?`/following?${H}`:"/following"},I=X(Ge.topTasks(8)),b=X(Ge.trendingTasks({limit:8,min_recent_papers:10})),u=s&&N.get("only")==="topic",T=s?{topicIds:[...new Set(N.getAll("topic").map(Number).filter(Number.isInteger))],follows:[...new Set(N.getAll("follow").filter(i=>/^(task|method|benchmark|author|organization):\d+$/.test(i)))]}:_,q=T.topicIds.length>0||T.follows.length>0,f={start_date:p.startDate,end_date:p.endDate},V={...p,topicOnly:u,...T},R=Os(s?ze.following(n==null?void 0:n.hf_subject,V):ze.trending(f),async i=>{if(s){const H=await ct.following(i,V),ae=H.length===Ct?i+Ct:null;return{results:H,next_page:ae}}const w={...f,page:i,page_size:jo,include_resources:!0};return To(Zt.list({...w,order_by:"trending",order_dir:"desc",latest_only:!0}))},{enabled:!s||!!n,initialPage:s?0:1}),$=Dt(),j=Pt(!0,1e4),G=!!((B=$.data)!=null&&B.length)||!!((ve=j.data)!=null&&ve.length),Y=le,Z=((Ne=j.data)==null?void 0:Ne.filter(ds))??[],S=Z.filter(i=>T.topicIds.length?T.topicIds.includes(i.id):!T.follows.length),x=T.topicIds.length===1&&!T.follows.length?(se=j.data)==null?void 0:se.find(i=>i.id===T.topicIds[0]):void 0,[l,h]=c.useState(()=>s&&N.get("edit")==="1"?null:void 0),y=_t(),g=Z.map(i=>i.id).join(","),k=c.useRef([]);c.useEffect(()=>{const i=g?g.split(","):[];k.current.some(w=>!i.includes(w))&&y.invalidateQueries({queryKey:ze.following(n==null?void 0:n.hf_subject)}),k.current=i},[g,y,n==null?void 0:n.hf_subject]);const M=s&&!!n&&((Me=$.data)==null?void 0:Me.length)===0&&j.isSuccess&&j.data.length===0,z=s&&!(d!=null&&d.isLoading)&&!n||M,U=!!n||!Xt(),J=c.useMemo(()=>{var i;return new Set((i=j.data)==null?void 0:i.map(w=>w.id))},[j.data]),F=!s&&U&&!(d!=null&&d.isLoading)&&(!n||$.isSuccess&&j.isSuccess&&!G),[P]=c.useState(()=>No());c.useEffect(()=>{n&&(s||G)&&ko(s)},[n,s,G]);const ne=((Ce=X({...me.followingNewCount(n==null?void 0:n.hf_subject,P??""),enabled:!!n&&G&&!!P}).data)==null?void 0:Ce.count)??0,ce=s&&P?Date.parse(P):NaN,fe={topicOnly:u,...T,addedAfter:P??void 0},O=X({queryKey:[...ze.following(n==null?void 0:n.hf_subject),"new",fe],queryFn:()=>ct.following(0,fe,So),enabled:s&&!!n&&!!P,staleTime:5*60*1e3,placeholderData:Jt}),[ie,ee]=c.useState(!1),[ke]=c.useState(()=>!!dt()||ut().length>0||Ye().length>0),[Se,re]=c.useState(!1);!ie&&((_e=j.data)!=null&&_e.length||(Fe=$.data)!=null&&Fe.length)&&ee(!0),z&&!Se&&(re(!0),U&&!ie&&!ke&&h(null));const Q=It(),{mutate:ge}=Q,te=c.useRef(!1);c.useEffect(()=>{const i=dt();!n||!j.isSuccess||!i||te.current||(te.current=!0,j.data.some(w=>w.text===i)?us():ge({text:i}))},[n,j.isSuccess,j.data,ge]);const je=At(),{mutate:oe}=je,Te=c.useRef(!1);c.useEffect(()=>{const i=ut();!n||!i.length||Te.current||(Te.current=!0,oe(i))},[n,oe]);const de=q&&j.isSuccess&&$.isSuccess?{topicIds:T.topicIds.filter(i=>j.data.some(w=>w.id===i)),follows:T.follows.filter(i=>$.data.some(w=>`${w.kind}:${w.entity_id}`===i))}:void 0,it=!!de&&(de.topicIds.length<T.topicIds.length||de.follows.length<T.follows.length);c.useEffect(()=>{it&&de&&a(A(de),{replace:!0})});const ue=ps(),{mutate:xe}=ue,$e=c.useRef(!1);c.useEffect(()=>{const i=Ye();!n||!i.length||$e.current||($e.current=!0,xe(i))},[n,xe]);const We=c.useMemo(()=>{var o;const i=r=>({...Ps(r.paper),followReasons:r.reasons,isNew:!!r.added_at&&Date.parse(r.added_at)>ce}),w=O.isPlaceholderData?void 0:O.data,H=R.data&&w?w.map(i).filter(r=>r.isNew):[],ae=new Set(H.map(r=>r.id)),Oe=((o=R.data)==null?void 0:o.pages.flatMap(r=>r.results.map(i)))??[];return[...H,...Oe.filter(r=>!ae.has(r.id))]},[R.data,O.data,O.isPlaceholderData,ce]),ye=R.error;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:["Trending ",e.jsx("em",{children:"Research"})]}),e.jsx("div",{className:"feed-subtitle",children:"Curated daily from arXiv and Hugging Face"})]})}),e.jsxs("div",{className:"layout-with-sidebar",children:[e.jsxs("aside",{className:"sidebar feed-sidebar",children:[e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"sidebar-section sidebar-section-top-domains",children:[e.jsx("div",{className:"sidebar-label",children:"Top Domains"}),I.isLoading&&e.jsx("div",{style:{display:"flex",flexDirection:"column",gap:8},children:Array.from({length:6}).map((i,w)=>e.jsx(mt,{className:"h-5 w-full"},w))}),e.jsxs("div",{className:"sidebar-links",children:[(Ee=I.data)==null?void 0:Ee.map(i=>e.jsxs(W,{to:`/tasks/${i.slug}`,className:"sidebar-link",children:[Je(i.name,i.slug),i.paper_count!=null&&e.jsx("span",{className:"count",children:i.paper_count})]},i.id)),e.jsx(W,{to:"/tasks",className:"sidebar-link sidebar-link-more",children:"all domains →"})]})]}),e.jsxs("div",{className:"sidebar-section sidebar-section-trending-domains",children:[e.jsx("div",{className:"sidebar-label",children:"Trending Domains"}),b.isLoading&&e.jsx("div",{style:{display:"flex",flexDirection:"column",gap:8},children:Array.from({length:6}).map((i,w)=>e.jsx(mt,{className:"h-5 w-full"},w))}),((Le=(pe=b.data)==null?void 0:pe.results)==null?void 0:Le.length)===0&&!b.isLoading&&e.jsx("div",{style:{fontSize:12,color:"var(--ink-faint)"},children:"No domains gaining momentum right now."}),e.jsx("div",{className:"sidebar-links",children:(De=(Pe=b.data)==null?void 0:Pe.results)==null?void 0:De.map(i=>e.jsxs(W,{to:`/tasks/${i.slug}`,className:"sidebar-link",children:[Je(i.name,i.slug),e.jsxs("span",{className:"count",children:[i.share_lift.toFixed(1),"x"]})]},i.id))})]})]}),e.jsx(Hs,{})]}),e.jsxs("div",{className:"feed-main",children:[(Ve()||Ft())&&e.jsx("div",{className:"feed-chat",children:e.jsx(bo,{})}),e.jsxs("div",{className:"feed-content",children:[!s&&U&&e.jsx(to,{followedIds:!(d!=null&&d.isLoading)&&(!n||j.isSuccess)?J:null,onBuild:()=>h(null)}),e.jsxs("div",{className:"sort-bar home-feed-sort-bar",children:[e.jsx("div",{className:"paper-feed-toolbar-controls",children:e.jsxs("div",{className:"sort-options",children:[e.jsx("button",{className:`sort-btn ${t==="trending"?"active":""}`,onClick:()=>m("/"),children:"trending"}),e.jsxs("button",{className:`sort-btn ${s?"active":""}`,onClick:()=>m("/following"),children:["following",ne>0&&e.jsx("span",{className:"nav-new-badge feed-tab-new",title:"New papers since your last visit",children:"New"})]})]})}),e.jsx(Us,{startDate:p.startDate,endDate:p.endDate,onChange:i=>C(zs(N,i))})]}),s&&(!!n||!(d!=null&&d.isLoading))&&e.jsx(mo,{topics:j.data??[],follows:$.data??[],active:T,hrefFor:A,onEdit:U?()=>h(null):void 0,editLabel:(Ie=j.data)!=null&&Ie.length||(Ae=$.data)!=null&&Ae.length?"Edit feed":"Build feed"}),ye&&e.jsx(Be,{variant:"destructive",className:"mb-4",children:e.jsxs(He,{children:["Failed to load papers. ",e.jsx("button",{type:"button",onClick:()=>void R.refetch(),children:"Try again"})]})}),Q.isError&&Q.variables&&e.jsx(Be,{variant:"destructive",className:"mb-4",children:e.jsx(He,{children:Ke(Q.error)?e.jsxs(e.Fragment,{children:["Could not follow “",Q.variables.text,"”: ",Q.error.message,"."]}):e.jsxs(e.Fragment,{children:["Could not follow “",Q.variables.text,"”. ",e.jsx("button",{type:"button",onClick:()=>ge(Q.variables),children:"Try again"})]})})}),je.isError&&je.variables&&e.jsx(Be,{variant:"destructive",className:"mb-4",children:e.jsxs(He,{children:["Could not follow ",je.variables.map(i=>i.name).join(", "),". ",e.jsx("button",{type:"button",onClick:()=>oe(je.variables),children:"Try again"})]})}),ue.isError&&e.jsx(Be,{variant:"destructive",className:"mb-4",children:e.jsx(He,{children:Ke(ue.error)?e.jsxs(e.Fragment,{children:["Could not follow the popular topics you picked: ",ue.error.message,"."]}):e.jsxs(e.Fragment,{children:["Could not follow the popular topics you picked. ",e.jsx("button",{type:"button",onClick:()=>xe(Ye()),children:"Try again"})]})})}),s&&S.length>0&&e.jsxs("div",{className:"following-topic-note",role:"status",children:["Showing the closest papers about ",S.map(i=>`“${Y(i)}”`).join(" and ")," now. A model is reading papers to refine these matches, which takes a few minutes."]}),U&&e.jsx(no,{open:l!==void 0,topicId:l??null,afterSavePath:s?void 0:"/following",onOpenChange:i=>{if(!i&&(h(void 0),N.has("edit"))){const w=new URLSearchParams(N);w.delete("edit"),C(w,{replace:!0})}}}),u&&!q&&e.jsxs("div",{className:"following-topic-note following-topic-filter",role:"status",children:["Showing only papers about your topics. ",e.jsx(W,{to:A(_),children:"Show everything you follow"})]}),z?e.jsx(Xs,{onBuild:U?()=>h(null):void 0}):e.jsx(Bs,{query:R,isLoading:R.isLoading||O.isLoading||s&&!!(d!=null&&d.isLoading),cards:We,skeleton:"card",rootMargin:"400px",cardHeader:F?i=>i===yo&&e.jsx(Js,{onBuild:()=>h(null)}):void 0,empty:ye?null:x?e.jsxs(e.Fragment,{children:["No papers about this topic match these filters. Widen the date range or ",e.jsx("button",{type:"button",className:"link-button",onClick:()=>h(x.id),children:"edit the topic"}),"."]}):q?e.jsx(e.Fragment,{children:"No papers match the selected bubbles in this window. Widen the date range or pick more bubbles."}):u?e.jsx(e.Fragment,{children:"No papers about your topics match these filters. Widen the date range or follow more topics."}):s?e.jsxs(e.Fragment,{children:["No papers from your topics or follows match these filters. Widen the date range, or follow more from ",e.jsx(W,{to:"/tasks",children:"tasks"}),", ",e.jsx(W,{to:"/methods",children:"methods"}),", benchmark, author, or organization pages."]}):"No papers in this window."})]})]})]})]})},ja=()=>(Gs(Ks),e.jsx(Co,{mode:"trending"}));export{bo as AskAssistant,Co as HomeFeed,ja as default};
assets/FollowingView-BeszOQDK.js DELETED
@@ -1 +0,0 @@
1
- import{j as o}from"./index-D6aEInmu.js";import{HomeFeed as r}from"./FeedView-B_tdgnbh.js";import"./taskIcons-9fl0jLm1.js";import"./search-CXZqc5xK.js";import"./triangle-alert-99rDZz9U.js";import"./share-2-BlNTW9Lm.js";import"./trending-up-C4QuPkw3.js";import"./moon-DEPcyTHG.js";import"./thumbs-up-Cez8oCuZ.js";import"./database-DZEp-NYz.js";import"./link-2-3eIiK81e.js";import"./trophy-D0mSSUi2.js";import"./file-text-Brc6F3oH.js";import"./activity-BOriX-5O.js";import"./globe-eD910DAK.js";import"./researchTopic-D0w4lDHH.js";import"./useMutation-pFc9AV9q.js";import"./plus-CsPEBwC8.js";import"./dialog-DxQjeKSp.js";import"./switch-WsS9i_IX.js";import"./index-BPlx9he0.js";import"./useDebounce-Biol71Ue.js";import"./transform-yHyLdRgB.js";import"./index-DdF_Us_6.js";import"./chat-DOACRtqV.js";import"./trash-2-CcR0dxP7.js";import"./undo-2-lzOlsuTo.js";import"./arrow-up-right-DW6w7lkJ.js";import"./arrow-right-pTo64XGZ.js";import"./colors-BkWRhvFI.js";import"./usePapers-CrZh8ngx.js";import"./PaperCard-DXVTfuSM.js";import"./AuthorAvatar-CB9dFjtV.js";import"./SotaBadges-D5Rygs2E.js";import"./Icon-BCKS3hPB.js";import"./LatexTitle-YKOmpgD5.js";import"./safeExternalHref-CkBrsh84.js";import"./popover-BTut4e1S.js";import"./skeleton-BkAt4a_A.js";import"./useIntersectionObserver-BiqrXJxS.js";import"./useInfiniteQuery-DGk1REJi.js";import"./McpShowcase-aTKzx9IH.js";import"./AgentLogos-Cm3YQ6TB.js";import"./alert-CbcJsgVQ.js";import"./useDocumentTitle-Dgxi21fr.js";import"./pageTitles-DTKTKJOp.js";function W(){return o.jsx(r,{mode:"following"})}export{W as default};
 
 
assets/FollowingView-D3KIcKQr.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{j as o}from"./index-DqiWSKRu.js";import{HomeFeed as r}from"./FeedView-DR3f1Ub6.js";import"./taskIcons-Cie5gHYA.js";import"./search-D6MzDlxw.js";import"./triangle-alert-D-HRclph.js";import"./share-2-6MRpEA8D.js";import"./trending-up-DfsExUmr.js";import"./moon-9co7u-sZ.js";import"./thumbs-up-O9YhH8YG.js";import"./database-a8bVJz-T.js";import"./link-2-BVao7-2t.js";import"./trophy-BMD8z3-h.js";import"./file-text-DygGjiFE.js";import"./activity-CMRWXS32.js";import"./globe-C8su8imU.js";import"./researchTopic-CoMNa-1c.js";import"./useMutation-s01kVLYP.js";import"./plus-DSNQa55K.js";import"./arrow-right-D_glSYCT.js";import"./index-CV2RBjLM.js";import"./chat-4qtVsasI.js";import"./dialog-Wuv1Mb7q.js";import"./switch-YFyOAE0-.js";import"./index-4rRR7FSk.js";import"./tabs-CisePgtg.js";import"./useDebounce-WuCmYjd8.js";import"./transform-CZk96jj7.js";import"./trash-2-BXFf5wi-.js";import"./undo-2-Cs5_pAds.js";import"./arrow-up-right-DW8s8d6m.js";import"./colors-BkWRhvFI.js";import"./usePapers-DhjAXi7Z.js";import"./PaperCard-VdH8pI7u.js";import"./AuthorAvatar-BjZbMuV8.js";import"./SotaBadges-DiZSUF6s.js";import"./Icon-DqGTBJZ9.js";import"./LatexTitle-CKwsnD2Q.js";import"./safeExternalHref-CkBrsh84.js";import"./popover-BFaNN2oM.js";import"./skeleton-Co0D0sKS.js";import"./useIntersectionObserver-BY6KvlsB.js";import"./useInfiniteQuery-YJbg_oLc.js";import"./McpShowcase-2nbI0Yx2.js";import"./AgentLogos-C8ZXxWoe.js";import"./alert-Ccdfz8nH.js";import"./useDocumentTitle-BkdH1nHb.js";import"./pageTitles-A2o-JnLx.js";function X(){return o.jsx(r,{mode:"following"})}export{X as default};
assets/{FrameworksIndexView-37ptGtep.js → FrameworksIndexView-wyQa2J3D.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-D6aEInmu.js";import{I as p}from"./Icon-BCKS3hPB.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-Dgxi21fr.js";import{I as _}from"./pageTitles-DTKTKJOp.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{t as d,j as e,L as o,b as m,ad as h,x as u}from"./index-DqiWSKRu.js";import{I as p}from"./Icon-DqGTBJZ9.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-BkdH1nHb.js";import{I as _}from"./pageTitles-A2o-JnLx.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-BCKS3hPB.js → Icon-DqGTBJZ9.js} RENAMED
@@ -1 +1 @@
1
- import{j as o}from"./index-D6aEInmu.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-DqiWSKRu.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-YKOmpgD5.js → LatexTitle-CKwsnD2Q.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-D6aEInmu.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-DqiWSKRu.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-C6rCculu.js → LoadFailurePage-CyeoE8bL.js} RENAMED
@@ -1 +1 @@
1
- import{m as t,j as r}from"./index-D6aEInmu.js";import{A as i,a as s}from"./alert-CbcJsgVQ.js";import a from"./NotFound-DGnhJDkz.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{n as t,j as r}from"./index-DqiWSKRu.js";import{A as i,a as s}from"./alert-Ccdfz8nH.js";import n from"./NotFound-Dscbr324.js";function u(e,o){return e.some(t)?r.jsx(n,{}):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-WX3kW92g.js → MarkdownText-DxIZLXr2.js} RENAMED
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/MathMarkdownText-1MS5q-3T.js","assets/index-D6aEInmu.js","assets/index-Wx4xO8QJ.css","assets/index-LFG-CrNl.js","assets/index-C_uAq02v.js","assets/katex-DkKDou_j.js","assets/PaperPreviewLink-CyaI4izq.js","assets/index-DPECPebL.js","assets/hover-card-C0nRSsFV.js","assets/useMutation-pFc9AV9q.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-D6aEInmu.js";import{r as x,P as f}from"./PaperPreviewLink-CyaI4izq.js";import{M as w}from"./index-C_uAq02v.js";import{r as k}from"./index-DPECPebL.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-1MS5q-3T.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-D7CxppIF.js","assets/index-DqiWSKRu.js","assets/index-DIPUnXYA.css","assets/index-DsUVuYlH.js","assets/index-DsTRem-i.js","assets/katex-DkKDou_j.js","assets/PaperPreviewLink-Cn8gltdd.js","assets/index-2X5IY5Iu.js","assets/hover-card-BPFTusQQ.js","assets/useMutation-s01kVLYP.js","assets/katex-wklAmtGL.css"])))=>i.map(i=>d[i]);
2
+ import{K as d,j as a,i as m,L as p,au as h}from"./index-DqiWSKRu.js";import{r as x,P as f}from"./PaperPreviewLink-Cn8gltdd.js";import{M as w}from"./index-DsTRem-i.js";import{r as k}from"./index-2X5IY5Iu.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-D7CxppIF.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-1MS5q-3T.js DELETED
@@ -1 +0,0 @@
1
- import{j as o}from"./index-D6aEInmu.js";/* empty css */import{a as t}from"./MarkdownText-WX3kW92g.js";import{r as m}from"./index-LFG-CrNl.js";import"./PaperPreviewLink-CyaI4izq.js";import"./index-C_uAq02v.js";import"./index-DPECPebL.js";import"./hover-card-C0nRSsFV.js";import"./useMutation-pFc9AV9q.js";import"./katex-DkKDou_j.js";const j=r=>o.jsx(t,{...r,rehypePlugins:[m]});export{j as default};
 
 
assets/MathMarkdownText-D7CxppIF.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{j as o}from"./index-DqiWSKRu.js";/* empty css */import{a as t}from"./MarkdownText-DxIZLXr2.js";import{r as m}from"./index-DsUVuYlH.js";import"./PaperPreviewLink-Cn8gltdd.js";import"./index-DsTRem-i.js";import"./index-2X5IY5Iu.js";import"./hover-card-BPFTusQQ.js";import"./useMutation-s01kVLYP.js";import"./katex-DkKDou_j.js";const j=r=>o.jsx(t,{...r,rehypePlugins:[m]});export{j as default};
assets/{McpShowcase-aTKzx9IH.js → McpShowcase-2nbI0Yx2.js} RENAMED
@@ -1 +1 @@
1
- import{j as e,L as t}from"./index-D6aEInmu.js";import{A as a}from"./AgentLogos-Cm3YQ6TB.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-DqiWSKRu.js";import{A as a}from"./AgentLogos-C8ZXxWoe.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-BuSGzB0f.js → McpView-B2bCep7F.js} RENAMED
@@ -1 +1 @@
1
- import{as as b,b as x,ab as m,j as e,C as j}from"./index-D6aEInmu.js";import{u as g,f}from"./useDocumentTitle-Dgxi21fr.js";import{G as y}from"./github-DjuSO7M4.js";import{A as v}from"./arrow-up-right-DW6w7lkJ.js";import{E as o}from"./external-link-C27iK9fF.js";import{C as w}from"./copy-B-raWDut.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{at as b,b as x,ad as m,j as e,C as j}from"./index-DqiWSKRu.js";import{u as g,f}from"./useDocumentTitle-BkdH1nHb.js";import{G as y}from"./github-DR_xiUHp.js";import{A as v}from"./arrow-up-right-DW8s8d6m.js";import{E as o}from"./external-link-CRXcmpbR.js";import{C as w}from"./copy-Csr_C_Aq.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-BY_sVybJ.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{j as e,i as L,u as P,b as k,x as v,E as $,y as B,L as _}from"./index-DqiWSKRu.js";import{R as H}from"./ResearchFollowButton-Buglf0cW.js";import{M as R}from"./SotaBadges-DiZSUF6s.js";import{b as V,u as Q,c as G,P as O}from"./usePapers-DhjAXi7Z.js";import{r as U,M as z}from"./MarkdownText-DxIZLXr2.js";import{s as W}from"./slug-BpH-Nkvz.js";import{t as K}from"./transform-CZk96jj7.js";import{S as b}from"./skeleton-Co0D0sKS.js";import{s as Z}from"./safeExternalHref-CkBrsh84.js";import q from"./NotFound-Dscbr324.js";import{l as X}from"./LoadFailurePage-CyeoE8bL.js";import{u as Y}from"./useDocumentTitle-BkdH1nHb.js";import{e as J}from"./pageTitles-A2o-JnLx.js";import"./researchTopic-CoMNa-1c.js";import"./useMutation-s01kVLYP.js";import"./plus-DSNQa55K.js";import"./colors-BkWRhvFI.js";import"./PaperCard-VdH8pI7u.js";import"./AuthorAvatar-BjZbMuV8.js";import"./Icon-DqGTBJZ9.js";import"./LatexTitle-CKwsnD2Q.js";import"./popover-BFaNN2oM.js";import"./useIntersectionObserver-BY6KvlsB.js";import"./useInfiniteQuery-YJbg_oLc.js";import"./PaperPreviewLink-Cn8gltdd.js";import"./index-DsTRem-i.js";import"./index-2X5IY5Iu.js";import"./hover-card-BPFTusQQ.js";import"./alert-Ccdfz8nH.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},E=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]=L.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?E(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,D=x.left+c*m+(c-a)/2,I=x.top+h-S,C=l===m,T=m===s.length-1,F=E(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:D,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(B.method(s,r.filters),u=>$.forMethod(s,{...r.filters,page:u,page_size:20,repository_limit:1}),{enabled:!!s}),h=k(v.relatedMethods(s)),c=L.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/MethodDetailView-By5dCsx2.js DELETED
@@ -1 +0,0 @@
1
- import{j as e,i as D,u as P,b as k,v,B,w as $,L as _}from"./index-D6aEInmu.js";import{R as H}from"./ResearchFollowButton-Jethi4Re.js";import{M as R}from"./SotaBadges-D5Rygs2E.js";import{b as V,u as Q,c as G,P as O}from"./usePapers-CrZh8ngx.js";import{r as U,M as z}from"./MarkdownText-WX3kW92g.js";import{s as W}from"./slug-BpH-Nkvz.js";import{t as K}from"./transform-yHyLdRgB.js";import{S as b}from"./skeleton-BkAt4a_A.js";import{s as Z}from"./safeExternalHref-CkBrsh84.js";import q from"./NotFound-DGnhJDkz.js";import{l as X}from"./LoadFailurePage-C6rCculu.js";import{u as Y}from"./useDocumentTitle-Dgxi21fr.js";import{e as J}from"./pageTitles-DTKTKJOp.js";import"./researchTopic-D0w4lDHH.js";import"./useMutation-pFc9AV9q.js";import"./plus-CsPEBwC8.js";import"./colors-BkWRhvFI.js";import"./PaperCard-DXVTfuSM.js";import"./AuthorAvatar-CB9dFjtV.js";import"./Icon-BCKS3hPB.js";import"./LatexTitle-YKOmpgD5.js";import"./popover-BTut4e1S.js";import"./useIntersectionObserver-BiqrXJxS.js";import"./useInfiniteQuery-DGk1REJi.js";import"./PaperPreviewLink-CyaI4izq.js";import"./index-C_uAq02v.js";import"./index-DPECPebL.js";import"./hover-card-C0nRSsFV.js";import"./alert-CbcJsgVQ.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-DcCWv5JL.js → MethodsIndexView-BbgFBzW6.js} RENAMED
@@ -1,6 +1,6 @@
1
- import{d as f,b as c,v as l,i as m,j as s,L as _}from"./index-D6aEInmu.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-CbcJsgVQ.js";import{A as T,a as M}from"./AreaSection-Cj-nzCCB.js";import{T as A}from"./TaxonomySuggestionTile-BRJohRi7.js";import{u as I,T as S}from"./useHashScrollOnReady-BovvYGlz.js";import{u as E}from"./useDocumentTitle-Dgxi21fr.js";import{I as F}from"./pageTitles-DTKTKJOp.js";import"./skeleton-BkAt4a_A.js";import"./SignInToEditDialog-By7mFzd-.js";import"./button-k_NH4ciO.js";import"./input-DaoHFpPY.js";import"./textarea-DZVopFEC.js";import"./searchable-select-CfqOxthQ.js";import"./popover-BTut4e1S.js";import"./dialog-DxQjeKSp.js";import"./search-CXZqc5xK.js";import"./loader-circle-Cd5BHkxG.js";import"./useMutation-pFc9AV9q.js";import"./submissions-CIyYa4oU.js";import"./cacheSync-BaUSLOpe.js";import"./plus-CsPEBwC8.js";import"./trending-up-C4QuPkw3.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 D=f("Flame",[["path",{d:"M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z",key:"96xj49"}]]),ae=()=>{var p,u,h;E(F.methods);const n=c(l.areas()),o=c({...l.methodIndex(),select:r=>r.results}),i=c(l.trendingMethods({limit:12})),x=m.useMemo(()=>{var t,a;const r=new Map((((t=n.data)==null?void 0:t.results)??[]).map(e=>[e.id,e.name]));return(a=i.data)==null?void 0:a.results.map(e=>({id:e.id,name:e.name,href:`/methods/${e.slug||e.id}`,areaName:e.area_id?r.get(e.area_id):void 0,recentPaperCount:e.recent_paper_count,shareLift:e.share_lift}))},[i.data,n.data]),d=m.useMemo(()=>{if(!o.data||!n.data)return null;const r={};return o.data.forEach(t=>{const a=t.area_id??"_unassigned";(r[a]||(r[a]=[])).push(t)}),Object.values(r).forEach(t=>t.sort((a,e)=>(e.trend_score||0)-(a.trend_score||0)||(e.paper_count||0)-(a.paper_count||0)||a.name.localeCompare(e.name))),r},[o.data,n.data]),g=m.useMemo(()=>{const r=(o.data||[]).filter(a=>(a.trend_score||0)>0).sort((a,e)=>(e.trend_score||0)-(a.trend_score||0)),t=Math.ceil(r.length*.25);return new Set(r.slice(0,t).map(a=>a.id))},[o.data]);return I(!!n.data&&!!o.data&&!i.isLoading),n.error||o.error?s.jsx("div",{className:"page",children:s.jsx(N,{variant:"destructive",children:s.jsx(L,{children:"Failed to load methods."})})}):s.jsxs("div",{className:"page",children:[s.jsx("div",{className:"feed-header",children:s.jsxs("div",{children:[s.jsxs("h1",{className:"feed-title",children:["Methods ",s.jsx("em",{children:"library"})]}),s.jsx("div",{className:"feed-subtitle",children:"Common techniques used across AI research. Trend scores show papers using each method per 30 days, measured over the latest 90 days; the flame marks the top quartile."})]})}),s.jsx(S,{noun:"method",items:x,recentDays:(p=i.data)==null?void 0:p.recent_days,baselineDays:(u=i.data)==null?void 0:u.baseline_days,isLoading:i.isLoading,error:i.error,mono:!0}),n.isLoading||o.isLoading?s.jsx(T,{tiles:8,tileClassName:"h-20"}):y(((h=n.data)==null?void 0:h.results)??[]).map(r=>{const t=(d==null?void 0:d[r.id])||[];if(t.length===0)return null;const a=t.reduce((e,j)=>e+(j.paper_count||0),0);return s.jsxs(M,{id:`area-${v(r.name)}`,title:r.name,meta:`${t.length} methods · ${a.toLocaleString()} papers`,children:[t.map(e=>s.jsxs(_,{to:`/methods/${e.slug||e.id}`,className:"tag-cell",children:[s.jsxs("div",{className:"name",style:{fontFamily:"var(--mono)",fontSize:15},children:[e.name,g.has(e.id)&&s.jsx(D,{className:"method-trending-icon",size:15,"aria-label":"Top quartile by recent method mentions"})]}),s.jsxs("div",{className:"meta",children:[s.jsxs("span",{children:[(e.paper_count??0).toLocaleString()," papers"]}),(e.trend_score??0)>0&&s.jsxs(s.Fragment,{children:[s.jsx("span",{children:"·"}),s.jsxs("span",{className:"method-trend-score",children:[(e.trend_score??0).toFixed(1),"/mo"]})]}),e.introduced_year!=null&&s.jsxs(s.Fragment,{children:[s.jsx("span",{children:"·"}),s.jsx("span",{children:e.introduced_year})]})]})]},e.id)),s.jsx(A,{kind:"method"})]},r.id)})]})};export{ae as default};
 
1
+ import{d as f,b as c,x as l,i as m,j as s,L as _}from"./index-DqiWSKRu.js";import{s as y}from"./areas-Dvi8w2dp.js";import{s as N}from"./slug-BpH-Nkvz.js";import{A as v,a as L}from"./alert-Ccdfz8nH.js";import{A as T,a as M}from"./AreaSection-uCYjp549.js";import{T as A}from"./TaxonomySuggestionTile-BidHQCms.js";import{u as I,T as S}from"./useHashScrollOnReady-BpogQh8y.js";import{u as E}from"./useDocumentTitle-BkdH1nHb.js";import{I as F}from"./pageTitles-A2o-JnLx.js";import"./skeleton-Co0D0sKS.js";import"./SignInToEditDialog-Bz47-2P3.js";import"./button-D3YZ2fyV.js";import"./input-DiH0Y4eI.js";import"./textarea-BswxiqHc.js";import"./searchable-select-D6Qsd47Z.js";import"./popover-BFaNN2oM.js";import"./dialog-Wuv1Mb7q.js";import"./search-D6MzDlxw.js";import"./loader-circle-D52ezBbD.js";import"./useMutation-s01kVLYP.js";import"./submissions-Ddtxe-7g.js";import"./cacheSync-DdcXqD8L.js";import"./plus-DSNQa55K.js";import"./trending-up-DfsExUmr.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 D=f("Flame",[["path",{d:"M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z",key:"96xj49"}]]),ae=()=>{var p,u,h;E(F.methods);const n=c(l.areas()),o=c({...l.methodIndex(),select:r=>r.results}),i=c(l.trendingMethods({limit:12})),x=m.useMemo(()=>{var t,a;const r=new Map((((t=n.data)==null?void 0:t.results)??[]).map(e=>[e.id,e.name]));return(a=i.data)==null?void 0:a.results.map(e=>({id:e.id,name:e.name,href:`/methods/${e.slug||e.id}`,areaName:e.area_id?r.get(e.area_id):void 0,recentPaperCount:e.recent_paper_count,shareLift:e.share_lift}))},[i.data,n.data]),d=m.useMemo(()=>{if(!o.data||!n.data)return null;const r={};return o.data.forEach(t=>{const a=t.area_id??"_unassigned";(r[a]||(r[a]=[])).push(t)}),Object.values(r).forEach(t=>t.sort((a,e)=>(e.trend_score||0)-(a.trend_score||0)||(e.paper_count||0)-(a.paper_count||0)||a.name.localeCompare(e.name))),r},[o.data,n.data]),g=m.useMemo(()=>{const r=(o.data||[]).filter(a=>(a.trend_score||0)>0).sort((a,e)=>(e.trend_score||0)-(a.trend_score||0)),t=Math.ceil(r.length*.25);return new Set(r.slice(0,t).map(a=>a.id))},[o.data]);return I(!!n.data&&!!o.data&&!i.isLoading),n.error||o.error?s.jsx("div",{className:"page",children:s.jsx(v,{variant:"destructive",children:s.jsx(L,{children:"Failed to load methods."})})}):s.jsxs("div",{className:"page",children:[s.jsx("div",{className:"feed-header",children:s.jsxs("div",{children:[s.jsxs("h1",{className:"feed-title",children:["Methods ",s.jsx("em",{children:"library"})]}),s.jsx("div",{className:"feed-subtitle",children:"Common techniques used across AI research. Trend scores show papers using each method per 30 days, measured over the latest 90 days; the flame marks the top quartile."})]})}),s.jsx(S,{noun:"method",items:x,recentDays:(p=i.data)==null?void 0:p.recent_days,baselineDays:(u=i.data)==null?void 0:u.baseline_days,isLoading:i.isLoading,error:i.error,mono:!0}),n.isLoading||o.isLoading?s.jsx(T,{tiles:8,tileClassName:"h-20"}):y(((h=n.data)==null?void 0:h.results)??[]).map(r=>{const t=(d==null?void 0:d[r.id])||[];if(t.length===0)return null;const a=t.reduce((e,j)=>e+(j.paper_count||0),0);return s.jsxs(M,{id:`area-${N(r.name)}`,title:r.name,meta:`${t.length} methods · ${a.toLocaleString()} papers`,children:[t.map(e=>s.jsxs(_,{to:`/methods/${e.slug||e.id}`,className:"tag-cell",children:[s.jsxs("div",{className:"name",style:{fontFamily:"var(--mono)",fontSize:15},children:[e.name,g.has(e.id)&&s.jsx(D,{className:"method-trending-icon",size:15,"aria-label":"Top quartile by recent method mentions"})]}),s.jsxs("div",{className:"meta",children:[s.jsxs("span",{children:[(e.paper_count??0).toLocaleString()," papers"]}),(e.trend_score??0)>0&&s.jsxs(s.Fragment,{children:[s.jsx("span",{children:"·"}),s.jsxs("span",{className:"method-trend-score",children:[(e.trend_score??0).toFixed(1),"/mo"]})]}),e.introduced_year!=null&&s.jsxs(s.Fragment,{children:[s.jsx("span",{children:"·"}),s.jsx("span",{children:e.introduced_year})]})]})]},e.id)),s.jsx(A,{kind:"method"})]},r.id)})]})};export{ae as default};
assets/{NotFound-DGnhJDkz.js → NotFound-Dscbr324.js} RENAMED
@@ -1 +1 @@
1
- import{q as o,i as s,j as t,L as a}from"./index-D6aEInmu.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{s as o,i as s,j as t,L as a}from"./index-DqiWSKRu.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-P1HEV0Zn.js → OrganizationContributionGraph-BafN-XpT.js} RENAMED
@@ -1 +1 @@
1
- import{i as b,j as o,b as z,v as T}from"./index-D6aEInmu.js";import{S as v}from"./skeleton-BkAt4a_A.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,x as T}from"./index-DqiWSKRu.js";import{S as w}from"./skeleton-Co0D0sKS.js";const x=24*60*60*1e3,f=12,v=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)*v;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(w,{className:"organization-contributions-skeleton"}):i.data?o.jsx(D,{data:i.data,organizationName:a}):null};export{D as C,E as O};
assets/{OrganizationDetailView-BKgEoM1B.js → OrganizationDetailView-C7Aoz1g6.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-D6aEInmu.js";import{R}from"./ResearchFollowButton-Jethi4Re.js";import{M as q}from"./MarkdownText-WX3kW92g.js";import{O as B}from"./OrganizationContributionGraph-P1HEV0Zn.js";import{b as G,u as H,c as S,P as W}from"./usePapers-CrZh8ngx.js";import{S as D}from"./searchable-select-CfqOxthQ.js";import{S as K}from"./skeleton-BkAt4a_A.js";import{d as v,t as U}from"./transform-yHyLdRgB.js";import{o as V,i as Z}from"./organizationNames-BVKzYEBp.js";import k from"./NotFound-DGnhJDkz.js";import{l as J}from"./LoadFailurePage-C6rCculu.js";import{u as X}from"./useDocumentTitle-Dgxi21fr.js";import{e as Y}from"./pageTitles-DTKTKJOp.js";import"./researchTopic-D0w4lDHH.js";import"./useMutation-pFc9AV9q.js";import"./plus-CsPEBwC8.js";import"./PaperPreviewLink-CyaI4izq.js";import"./index-C_uAq02v.js";import"./index-DPECPebL.js";import"./hover-card-C0nRSsFV.js";import"./PaperCard-DXVTfuSM.js";import"./AuthorAvatar-CB9dFjtV.js";import"./SotaBadges-D5Rygs2E.js";import"./colors-BkWRhvFI.js";import"./Icon-BCKS3hPB.js";import"./LatexTitle-YKOmpgD5.js";import"./safeExternalHref-CkBrsh84.js";import"./popover-BTut4e1S.js";import"./useIntersectionObserver-BiqrXJxS.js";import"./useInfiniteQuery-DGk1REJi.js";import"./button-k_NH4ciO.js";import"./dialog-DxQjeKSp.js";import"./search-CXZqc5xK.js";import"./loader-circle-Cd5BHkxG.js";import"./alert-CbcJsgVQ.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{t as C,i as d,b as y,E as z,y as Q,n as E,j as a,L as F,x as L,u as I}from"./index-DqiWSKRu.js";import{R}from"./ResearchFollowButton-Buglf0cW.js";import{M as q}from"./MarkdownText-DxIZLXr2.js";import{O as G}from"./OrganizationContributionGraph-BafN-XpT.js";import{b as H,u as S,c as W,P as B}from"./usePapers-DhjAXi7Z.js";import{S as D}from"./searchable-select-D6Qsd47Z.js";import{S as K}from"./skeleton-Co0D0sKS.js";import{d as k,t as U}from"./transform-CZk96jj7.js";import{o as V,i as Z}from"./organizationNames-BVKzYEBp.js";import v from"./NotFound-Dscbr324.js";import{l as J}from"./LoadFailurePage-CyeoE8bL.js";import{u as X}from"./useDocumentTitle-BkdH1nHb.js";import{e as Y}from"./pageTitles-A2o-JnLx.js";import"./researchTopic-CoMNa-1c.js";import"./useMutation-s01kVLYP.js";import"./plus-DSNQa55K.js";import"./PaperPreviewLink-Cn8gltdd.js";import"./index-DsTRem-i.js";import"./index-2X5IY5Iu.js";import"./hover-card-BPFTusQQ.js";import"./PaperCard-VdH8pI7u.js";import"./AuthorAvatar-BjZbMuV8.js";import"./SotaBadges-DiZSUF6s.js";import"./colors-BkWRhvFI.js";import"./Icon-DqGTBJZ9.js";import"./LatexTitle-CKwsnD2Q.js";import"./safeExternalHref-CkBrsh84.js";import"./popover-BFaNN2oM.js";import"./useIntersectionObserver-BY6KvlsB.js";import"./useInfiniteQuery-YJbg_oLc.js";import"./button-D3YZ2fyV.js";import"./dialog-Wuv1Mb7q.js";import"./search-D6MzDlxw.js";import"./loader-circle-D52ezBbD.js";import"./alert-Ccdfz8nH.js";const ee=({organizationSlug:t,taskSlug:n})=>{var x,_,j,b,N;const P=C(),c=H({defaultToLastMonth:!0}),{searchParams:$}=c,[w,u]=d.useState(!1),h=y(L.organization(t)),l=y(L.organizationAreasWithTasks(t)),p=S(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:k(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(E(h.error))return a.jsx(v,{});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:k(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(G,{organizationSlug:t,organizationName:(e==null?void 0:e.name)??t})]}),a.jsx(W,{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(B,{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}=I();return t?a.jsx(ee,{organizationSlug:t,taskSlug:n}):a.jsx(v,{})};export{Qe as default};
assets/{OrganizationsIndexView-D5R_8uqp.js → OrganizationsIndexView-CdY_6WL6.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-D6aEInmu.js";import{A as N,a as y}from"./alert-CbcJsgVQ.js";import{u as f}from"./useDocumentTitle-Dgxi21fr.js";import{I as _}from"./pageTitles-DTKTKJOp.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,x as j}from"./index-DqiWSKRu.js";import{A as N,a as y}from"./alert-Ccdfz8nH.js";import{u as f}from"./useDocumentTitle-BkdH1nHb.js";import{I as _}from"./pageTitles-A2o-JnLx.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-DXVTfuSM.js → PaperCard-VdH8pI7u.js} RENAMED
@@ -1 +1 @@
1
- import{o as M,ab as g,M as L,j as a,L as d}from"./index-D6aEInmu.js";import{A as Z}from"./AuthorAvatar-CB9dFjtV.js";import{P as k,S as A,T as P,M as y}from"./SotaBadges-D5Rygs2E.js";import{I as C}from"./Icon-BCKS3hPB.js";import{L as E,a as U}from"./LatexTitle-YKOmpgD5.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{v as M,ad as g,O as L,j as a,L as d}from"./index-DqiWSKRu.js";import{A as Z}from"./AuthorAvatar-BjZbMuV8.js";import{P as k,S as A,T as P,M as y}from"./SotaBadges-DiZSUF6s.js";import{I as C}from"./Icon-DqGTBJZ9.js";import{L as E,a as U}from"./LatexTitle-CKwsnD2Q.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)})})},_=({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{_ as P};
assets/{PaperDetailView-BRXTv_cJ.js → PaperDetailView-BcOY-9rS.js} RENAMED
@@ -1,4 +1,4 @@
1
- import{d as $e,b as B,F as ea,G as ne,I as ta,n as ts,J as K,i as x,K as sa,M as me,B as z,N as ht,j as e,C as pt,o as Q,v as V,O as Ce,P as Re,X as ss,Q as aa,R as as,S as Y,U as rs,V as ge,W as pe,Y as ns,Z as ft,_ as Se,$ as Ee,a0 as ot,a1 as ra,a2 as is,L as O,a3 as na,a4 as ia,a5 as oa,a6 as la,a7 as os,a8 as ca,l as da,a9 as ua,A as fe,x as ma,a as Le,aa as ls,ab as Pe,ac as At,k as cs,ad as ha,ae as pa,u as fa,af as Tt,ag as ga,ah as Dt,ai as xa,E as Ft,aj as ba,ak as ja,al as va,am as _a,an as Ut,ao as ya,ap as ka}from"./index-D6aEInmu.js";import{u as J}from"./useMutation-pFc9AV9q.js";import{I as D}from"./Icon-BCKS3hPB.js";import{T as Na,M as wa,S as Ca,P as Sa}from"./SotaBadges-D5Rygs2E.js";import{L as Ne,a as lt}from"./LatexTitle-YKOmpgD5.js";import{u as ds}from"./preferences-BdWonpOv.js";import{s as Ea,a as Pa}from"./transform-yHyLdRgB.js";import{r as us,p as $a}from"./paperReader-D1y30HyW.js";import{u as Ra,f as La}from"./useDocumentTitle-Dgxi21fr.js";import{s as W}from"./safeExternalHref-CkBrsh84.js";import{m as Ia}from"./mlIntern-BWyozZfZ.js";import{S as he}from"./skeleton-BkAt4a_A.js";import{A as Aa,a as Ta}from"./alert-CbcJsgVQ.js";import{B as A}from"./button-k_NH4ciO.js";import{D as Ie,a as Ae,c as Te,b as De,d as Fe,e as gt}from"./dialog-DxQjeKSp.js";import{A as Da,a as Fa}from"./AgentLogos-Cm3YQ6TB.js";import{C as Ua}from"./copy-B-raWDut.js";import{r as za,a as Ma,e as Ba,i as Ha,b as Oa,p as qa}from"./cacheSync-BaUSLOpe.js";import{I as U}from"./input-DaoHFpPY.js";import{S as zt}from"./searchable-select-CfqOxthQ.js";import{L as xt}from"./loader-circle-Cd5BHkxG.js";import{T as Ue}from"./trash-2-CcR0dxP7.js";import{r as Ga,S as ms,L as q,a as Xa}from"./SignInToEditDialog-By7mFzd-.js";import{u as _e}from"./useQueries-cMUjfdG4.js";import{s as hs,p as ps}from"./submissions-CIyYa4oU.js";import{D as Ka}from"./database-DZEp-NYz.js";import{P as xe}from"./plus-CsPEBwC8.js";import{S as ct}from"./search-CXZqc5xK.js";import{B as Qa}from"./badge-L_EHeT-o.js";import{n as Va,C as Wa}from"./CatalogEntityPreviewLink-Pt3-UZ8j.js";import{G as Ja}from"./globe-eD910DAK.js";import{G as Ya}from"./github-DjuSO7M4.js";import{u as fs}from"./index-BPlx9he0.js";import{C as Za,E as er}from"./ExternalSourceEvalBadge-CJDvhRpF.js";import{M as tr}from"./index-C_uAq02v.js";import{r as sr}from"./index-DPECPebL.js";import{u as ar}from"./useIntersectionObserver-BiqrXJxS.js";import{S as Mt,s as rr}from"./savedPapersAuth-H1hgdsXP.js";import{o as nr}from"./organizationNames-BVKzYEBp.js";import{A as ir}from"./AuthorAvatar-CB9dFjtV.js";import"./colors-BkWRhvFI.js";import"./popover-BTut4e1S.js";import"./textarea-DZVopFEC.js";import"./hover-card-C0nRSsFV.js";/**
2
  * @license lucide-react v0.462.0 - ISC
3
  *
4
  * This source code is licensed under the ISC license.
 
1
+ import{d as $e,b as B,I as ea,J as ne,K as ta,t as ts,M as K,i as x,N as sa,O as me,E as z,P as ht,j as e,C as pt,v as Q,x as V,Q as Ce,R as Re,X as ss,S as aa,U as as,V as Y,W as rs,Y as ge,Z as pe,_ as ns,$ as ft,a0 as Se,a1 as Ee,a2 as ot,a3 as ra,a4 as is,L as O,a5 as na,a6 as ia,a7 as oa,a8 as la,a9 as os,aa as ca,m as da,ab as ua,A as fe,z as ma,a as Le,ac as ls,ad as Pe,ae as At,l as cs,af as ha,ag as pa,u as fa,ah as Tt,ai as ga,aj as Dt,ak as xa,G as Ft,al as ba,am as ja,an as va,ao as _a,ap as Ut,k as ya,aq as ka}from"./index-DqiWSKRu.js";import{u as J}from"./useMutation-s01kVLYP.js";import{I as D}from"./Icon-DqGTBJZ9.js";import{T as Na,M as wa,S as Ca,P as Sa}from"./SotaBadges-DiZSUF6s.js";import{L as Ne,a as lt}from"./LatexTitle-CKwsnD2Q.js";import{u as ds}from"./preferences-GewRyOaP.js";import{s as Ea,a as Pa}from"./transform-CZk96jj7.js";import{r as us,p as $a}from"./paperReader-D1y30HyW.js";import{u as Ra,f as La}from"./useDocumentTitle-BkdH1nHb.js";import{s as W}from"./safeExternalHref-CkBrsh84.js";import{m as Ia}from"./mlIntern-DECSlKey.js";import{S as he}from"./skeleton-Co0D0sKS.js";import{A as Aa,a as Ta}from"./alert-Ccdfz8nH.js";import{B as A}from"./button-D3YZ2fyV.js";import{D as Ie,a as Ae,c as Te,b as De,d as Fe,e as gt}from"./dialog-Wuv1Mb7q.js";import{A as Da,a as Fa}from"./AgentLogos-C8ZXxWoe.js";import{C as Ua}from"./copy-Csr_C_Aq.js";import{r as za,a as Ma,e as Ba,i as Ha,b as Oa,p as qa}from"./cacheSync-DdcXqD8L.js";import{I as U}from"./input-DiH0Y4eI.js";import{S as zt}from"./searchable-select-D6Qsd47Z.js";import{L as xt}from"./loader-circle-D52ezBbD.js";import{T as Ue}from"./trash-2-BXFf5wi-.js";import{r as Ga,S as ms,L as q,a as Xa}from"./SignInToEditDialog-Bz47-2P3.js";import{u as _e}from"./useQueries-HHJZtX0R.js";import{s as hs,p as ps}from"./submissions-Ddtxe-7g.js";import{D as Ka}from"./database-a8bVJz-T.js";import{P as xe}from"./plus-DSNQa55K.js";import{S as ct}from"./search-D6MzDlxw.js";import{B as Qa}from"./badge-CpkuJKw3.js";import{n as Va,C as Wa}from"./CatalogEntityPreviewLink-Cz-PGV0F.js";import{G as Ja}from"./globe-C8su8imU.js";import{G as Ya}from"./github-DR_xiUHp.js";import{u as fs}from"./index-4rRR7FSk.js";import{C as Za,E as er}from"./ExternalSourceEvalBadge-CDxpNEEw.js";import{M as tr}from"./index-DsTRem-i.js";import{r as sr}from"./index-2X5IY5Iu.js";import{u as ar}from"./useIntersectionObserver-BY6KvlsB.js";import{S as Mt,s as rr}from"./savedPapersAuth-Chru3ugE.js";import{o as nr}from"./organizationNames-BVKzYEBp.js";import{A as ir}from"./AuthorAvatar-BjZbMuV8.js";import"./colors-BkWRhvFI.js";import"./popover-BFaNN2oM.js";import"./textarea-BswxiqHc.js";import"./hover-card-BPFTusQQ.js";/**
2
  * @license lucide-react v0.462.0 - ISC
3
  *
4
  * This source code is licensed under the ISC license.
assets/{PaperPreviewLink-CyaI4izq.js → PaperPreviewLink-Cn8gltdd.js} RENAMED
@@ -1,5 +1,5 @@
1
- import{o as b,f as k,m as y}from"./index-C_uAq02v.js";import{l as U}from"./index-DPECPebL.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-D6aEInmu.js";import{H,a as V,b as K}from"./hover-card-C0nRSsFV.js";import{u as X}from"./useMutation-pFc9AV9q.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+`
5
- `)),x+=p.move(d),w(),x}function t(h,m,c){let a=h.value||"",l=1;for(r||l++;new RegExp("(^|[^$])"+"\\$".repeat(l)+"([^$]|$)").test(a);)l++;const p="$".repeat(l);/[^ \r\n]/.test(a)&&(/^[ \r\n]/.test(a)&&/[ \r\n]$/.test(a)||/^\$|\$$/.test(a))&&(a=" "+a+" ");let d=-1;for(;++d<c.unsafe.length;){const w=c.unsafe[d];if(!w.atBreak)continue;const x=c.compilePattern(w);let v;for(;v=x.exec(a);){let u=v.index;a.codePointAt(u)===10&&a.codePointAt(u-1)===13&&u--,a=a.slice(0,u)+" "+a.slice(v.index+1)}}return p+a+p}function n(){return"$"}}const J={tokenize:W,concrete:!0,name:"mathFlow"},_={tokenize:Y,partial:!0};function W(e,r,s){const t=this,n=t.events[t.events.length-1],h=n&&n[1].type==="linePrefix"?n[2].sliceSerialize(n[1],!0).length:0;let m=0;return c;function c(i){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),a(i)}function a(i){return i===36?(e.consume(i),m++,a):m<2?s(i):(e.exit("mathFlowFenceSequence"),k(e,l,"whitespace")(i))}function l(i){return i===null||y(i)?d(i):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(i))}function p(i){return i===null||y(i)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),d(i)):i===36?s(i):(e.consume(i),p)}function d(i){return e.exit("mathFlowFence"),t.interrupt?r(i):e.attempt(_,w,g)(i)}function w(i){return e.attempt({tokenize:C,partial:!0},g,x)(i)}function x(i){return(h?k(e,v,"linePrefix",h+1):v)(i)}function v(i){return i===null?g(i):y(i)?e.attempt(_,w,g)(i):(e.enter("mathFlowValue"),u(i))}function u(i){return i===null||y(i)?(e.exit("mathFlowValue"),v(i)):(e.consume(i),u)}function g(i){return e.exit("mathFlow"),r(i)}function C(i,F,P){let E=0;return k(i,R,"linePrefix",t.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function R(f){return i.enter("mathFlowFence"),i.enter("mathFlowFenceSequence"),q(f)}function q(f){return f===36?(E++,i.consume(f),q):E<m?P(f):(i.exit("mathFlowFenceSequence"),k(i,L,"whitespace")(f))}function L(f){return f===null||y(f)?(i.exit("mathFlowFence"),F(f)):P(f)}}}function Y(e,r,s){const t=this;return n;function n(m){return m===null?r(m):(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),h)}function h(m){return t.parser.lazy[t.now().line]?s(m):r(m)}}function ee(e){let s=(e||{}).singleDollarTextMath;return s==null&&(s=!0),{tokenize:t,resolve:te,previous:ne,name:"mathText"};function t(n,h,m){let c=0,a,l;return p;function p(u){return n.enter("mathText"),n.enter("mathTextSequence"),d(u)}function d(u){return u===36?(n.consume(u),c++,d):c<2&&!s?m(u):(n.exit("mathTextSequence"),w(u))}function w(u){return u===null?m(u):u===36?(l=n.enter("mathTextSequence"),a=0,v(u)):u===32?(n.enter("space"),n.consume(u),n.exit("space"),w):y(u)?(n.enter("lineEnding"),n.consume(u),n.exit("lineEnding"),w):(n.enter("mathTextData"),x(u))}function x(u){return u===null||u===32||u===36||y(u)?(n.exit("mathTextData"),w(u)):(n.consume(u),x)}function v(u){return u===36?(n.consume(u),a++,v):a===c?(n.exit("mathTextSequence"),n.exit("mathText"),h(u)):(l.type="mathTextData",x(u))}}}function te(e){let r=e.length-4,s=3,t,n;if((e[s][1].type==="lineEnding"||e[s][1].type==="space")&&(e[r][1].type==="lineEnding"||e[r][1].type==="space")){for(t=s;++t<r;)if(e[t][1].type==="mathTextData"){e[r][1].type="mathTextPadding",e[s][1].type="mathTextPadding",s+=2,r-=2;break}}for(t=s-1,r++;++t<=r;)n===void 0?t!==r&&e[t][1].type!=="lineEnding"&&(n=t):(t===r||e[t][1].type==="lineEnding")&&(e[n][1].type="mathTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e}function ne(e){return e!==36||this.events[this.events.length-1][1].type==="characterEscape"}function re(e){return{flow:{36:J},text:{36:ee(e)}}}const ie={};function ge(e){const r=this,s=e||ie,t=r.data(),n=t.micromarkExtensions||(t.micromarkExtensions=[]),h=t.fromMarkdownExtensions||(t.fromMarkdownExtensions=[]),m=t.toMarkdownExtensions||(t.toMarkdownExtensions=[]);n.push(re(s)),h.push(Z()),m.push(G(s))}function ae(e,r=e.arxiv_id??e.id){return{routeId:r,title:e.title,arxivId:e.arxiv_id,source:e.source??(e.arxiv_id?"arxiv":"external"),sourceUrl:e.source_url??e.url_abs,thumbnailUrl:e.thumbnail_url??null,authors:e.authors,published:e.published??null,conference:e.conference_name??e.conference??null,citationCount:e.citation_count,tasks:(e.tasks??[]).map(s=>({name:s.name,slug:s.slug??""}))}}function se(e){if(!e.authors.length)return"";const r=e.authors.slice(0,3).join(", ");return e.authors.length>3?`${r}, et al.`:r}function oe(e){var s;if(e.conference)return e.conference;const r=(s=e.published)==null?void 0:s.slice(0,4);if(e.arxivId)return r?`arXiv ${r}`:"arXiv";if(e.sourceUrl)try{return new URL(e.sourceUrl).hostname.replace(/^www\./,"")}catch{}return r??"external"}const ue=({seed:e=0})=>o.jsxs("div",{className:"paper-preview-thumb","aria-hidden":"true","data-testid":"faux-paper-thumb",children:[o.jsxs("div",{className:"paper-preview-thumb-title",children:[o.jsx("span",{}),o.jsx("span",{})]}),o.jsx("div",{className:"paper-preview-thumb-auth"}),o.jsxs("div",{className:"paper-preview-thumb-cols",children:[o.jsx("div",{className:"paper-preview-thumb-col"}),o.jsx("div",{className:"paper-preview-thumb-col"})]}),o.jsx("div",{className:"paper-preview-thumb-fig",style:{top:62+e%3*8}})]}),le=({thumbnailUrl:e,seed:r})=>{const[s,t]=T.useState(!1),n=D(e);return T.useEffect(()=>t(!1),[n]),!n||s?o.jsx(ue,{seed:r}):o.jsx("div",{className:"paper-preview-thumb paper-preview-thumb-real",children:o.jsx("img",{"data-testid":"paper-preview-image",src:n,alt:"",loading:"lazy",decoding:"async",onError:()=>t(!0)})})},$=({data:e})=>{const r=e.routeId.split("").reduce((t,n)=>t+n.charCodeAt(0),0),s=se(e);return o.jsxs("div",{className:"paper-preview-inner",children:[o.jsx(le,{thumbnailUrl:e.thumbnailUrl,seed:r}),o.jsxs("div",{className:"paper-preview-meta",children:[o.jsx("div",{className:"paper-preview-title",children:e.title}),s&&o.jsx("div",{className:"paper-preview-auth",children:s}),o.jsxs("div",{className:"paper-preview-venue",children:[oe(e),e.arxivId&&o.jsxs(o.Fragment,{children:[" · arXiv:",e.arxivId]}),e.citationCount!=null&&o.jsxs(o.Fragment,{children:[" · ↑ ",e.citationCount.toLocaleString()]})]}),e.tasks.length>0&&o.jsx("div",{className:"paper-preview-tags",children:e.tasks.map(t=>o.jsx("span",{className:"paper-preview-tag",children:t.name},t.slug||t.name))})]})]})},N=e=>I.summary(j(e)).queryKey,ce=e=>e.arxiv_id??e.id,z=200;function ye(e,r=S){const s=new Set,t=async h=>{const m=new Map;for(const c of h)c.arxiv_id&&s.add(j(c.arxiv_id));for(let c=0;c<h.length;c+=z){const{references:a}=await r.lookup(h.slice(c,c+z));for(const l of a){if(!l.paper)continue;const p=ce(l.paper);e.setQueryData(N(p),l.paper),m.set(l.key,p)}}return m};return{lookup:t,warm:h=>{const m=h.filter(c=>{const a=j(c);return s.has(a)||e.getQueryData(N(a))?!1:(s.add(a),!0)});m.length&&t(m.map(c=>({key:c,arxiv_id:c}))).catch(()=>{})}}}const he=/^(\d{4}\.\d{4,5}|[a-z-]+(\.[A-Z]{2})?\/\d{7})$/i,me=({arxivId:e})=>{var n;const r=O(),s=A(),t=X({mutationFn:()=>S.submit({arxiv_id:e}),onSuccess:h=>{h.pending_review||s.invalidateQueries({queryKey:N(e)})}});return(n=t.data)!=null&&n.pending_review?o.jsxs("div",{className:"paper-preview-status paper-preview-index-request",children:[o.jsx("span",{children:"Indexing request queued for review."}),o.jsx(M,{to:"/submissions",target:"_blank",rel:"noopener noreferrer",children:"View submissions ↗"})]}):o.jsxs("div",{className:"paper-preview-status paper-preview-index-request",children:[o.jsx("span",{children:"Not indexed on Papers with Code yet."}),r!=null&&r.user?o.jsx("button",{type:"button",disabled:t.isPending,onClick:()=>t.mutate(),children:t.isPending?"Requesting…":"Request indexing"}):o.jsx(M,{to:`/submit?arxiv_id=${encodeURIComponent(e)}`,target:"_blank",rel:"noopener noreferrer",children:"Request indexing ↗"}),t.isError&&o.jsx("span",{role:"alert",children:t.error.message})]})},pe=()=>typeof window.matchMedia=="function"&&window.matchMedia("(hover: none), (pointer: coarse)").matches,Fe=({routeId:e,to:r,initialData:s,className:t,children:n,target:h,title:m,ariaLabel:c,onClick:a,previewFooter:l,cardOpensPaper:p=!1})=>{const d=j(e),[w,x]=T.useState(!1),v=!!(s!=null&&s.title.trim()),u=Q({...I.summary(d),enabled:w&&!v,gcTime:30*60*1e3,retry:!1}),g=s??(u.data?ae(u.data,d):void 0),C=B(u.error)&&he.test(d),i=o.jsx(M,{className:t,to:r??`/paper/${d}`,target:h,title:m,"aria-label":c,onClick:F=>{x(!1),a==null||a(F)},rel:h==="_blank"?"noopener noreferrer":void 0,children:n});return o.jsxs(H,{open:w,onOpenChange:F=>{(!F||!pe())&&x(F)},openDelay:150,closeDelay:100,children:[o.jsx(V,{asChild:!0,children:i}),o.jsx(K,{className:"paper-preview-pop",side:"bottom",align:"start",collisionPadding:12,children:g?o.jsxs(o.Fragment,{children:[p?o.jsx(M,{className:"paper-preview-card-link",to:`/paper/${encodeURIComponent(d)}`,target:"_blank",rel:"noopener noreferrer",onClick:()=>x(!1),children:o.jsx($,{data:g})}):o.jsx($,{data:g}),l==null?void 0:l(g)]}):C?o.jsx(me,{arxivId:d}):u.isError?o.jsx("div",{className:"paper-preview-status",children:"Preview unavailable"}):o.jsx("div",{className:"paper-preview-status","aria-live":"polite",children:"Loading preview…"})})]})};export{Fe as P,ye as c,ge as r};
 
1
+ import{o as k,f as b,m as y}from"./index-DsTRem-i.js";import{l as U}from"./index-2X5IY5Iu.js";import{j as o,ad as T,k as D,E as S,K as j,O as I,e as O,v as A,L as M,b as Q,n as B}from"./index-DqiWSKRu.js";import{H,a as K,b as V}from"./hover-card-BPFTusQQ.js";import{u as X}from"./useMutation-s01kVLYP.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];k(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];k(p.type==="math"),this.exit(a),p.value=l;const d=p.data.hChildren[0];k(d.type==="element"),k(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];k(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+`
5
+ `)),x+=p.move(d),w(),x}function t(h,m,c){let a=h.value||"",l=1;for(r||l++;new RegExp("(^|[^$])"+"\\$".repeat(l)+"([^$]|$)").test(a);)l++;const p="$".repeat(l);/[^ \r\n]/.test(a)&&(/^[ \r\n]/.test(a)&&/[ \r\n]$/.test(a)||/^\$|\$$/.test(a))&&(a=" "+a+" ");let d=-1;for(;++d<c.unsafe.length;){const w=c.unsafe[d];if(!w.atBreak)continue;const x=c.compilePattern(w);let v;for(;v=x.exec(a);){let u=v.index;a.codePointAt(u)===10&&a.codePointAt(u-1)===13&&u--,a=a.slice(0,u)+" "+a.slice(v.index+1)}}return p+a+p}function n(){return"$"}}const J={tokenize:W,concrete:!0,name:"mathFlow"},_={tokenize:Y,partial:!0};function W(e,r,s){const t=this,n=t.events[t.events.length-1],h=n&&n[1].type==="linePrefix"?n[2].sliceSerialize(n[1],!0).length:0;let m=0;return c;function c(i){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),a(i)}function a(i){return i===36?(e.consume(i),m++,a):m<2?s(i):(e.exit("mathFlowFenceSequence"),b(e,l,"whitespace")(i))}function l(i){return i===null||y(i)?d(i):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(i))}function p(i){return i===null||y(i)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),d(i)):i===36?s(i):(e.consume(i),p)}function d(i){return e.exit("mathFlowFence"),t.interrupt?r(i):e.attempt(_,w,g)(i)}function w(i){return e.attempt({tokenize:C,partial:!0},g,x)(i)}function x(i){return(h?b(e,v,"linePrefix",h+1):v)(i)}function v(i){return i===null?g(i):y(i)?e.attempt(_,w,g)(i):(e.enter("mathFlowValue"),u(i))}function u(i){return i===null||y(i)?(e.exit("mathFlowValue"),v(i)):(e.consume(i),u)}function g(i){return e.exit("mathFlow"),r(i)}function C(i,F,E){let P=0;return b(i,R,"linePrefix",t.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function R(f){return i.enter("mathFlowFence"),i.enter("mathFlowFenceSequence"),q(f)}function q(f){return f===36?(P++,i.consume(f),q):P<m?E(f):(i.exit("mathFlowFenceSequence"),b(i,L,"whitespace")(f))}function L(f){return f===null||y(f)?(i.exit("mathFlowFence"),F(f)):E(f)}}}function Y(e,r,s){const t=this;return n;function n(m){return m===null?r(m):(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),h)}function h(m){return t.parser.lazy[t.now().line]?s(m):r(m)}}function ee(e){let s=(e||{}).singleDollarTextMath;return s==null&&(s=!0),{tokenize:t,resolve:te,previous:ne,name:"mathText"};function t(n,h,m){let c=0,a,l;return p;function p(u){return n.enter("mathText"),n.enter("mathTextSequence"),d(u)}function d(u){return u===36?(n.consume(u),c++,d):c<2&&!s?m(u):(n.exit("mathTextSequence"),w(u))}function w(u){return u===null?m(u):u===36?(l=n.enter("mathTextSequence"),a=0,v(u)):u===32?(n.enter("space"),n.consume(u),n.exit("space"),w):y(u)?(n.enter("lineEnding"),n.consume(u),n.exit("lineEnding"),w):(n.enter("mathTextData"),x(u))}function x(u){return u===null||u===32||u===36||y(u)?(n.exit("mathTextData"),w(u)):(n.consume(u),x)}function v(u){return u===36?(n.consume(u),a++,v):a===c?(n.exit("mathTextSequence"),n.exit("mathText"),h(u)):(l.type="mathTextData",x(u))}}}function te(e){let r=e.length-4,s=3,t,n;if((e[s][1].type==="lineEnding"||e[s][1].type==="space")&&(e[r][1].type==="lineEnding"||e[r][1].type==="space")){for(t=s;++t<r;)if(e[t][1].type==="mathTextData"){e[r][1].type="mathTextPadding",e[s][1].type="mathTextPadding",s+=2,r-=2;break}}for(t=s-1,r++;++t<=r;)n===void 0?t!==r&&e[t][1].type!=="lineEnding"&&(n=t):(t===r||e[t][1].type==="lineEnding")&&(e[n][1].type="mathTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e}function ne(e){return e!==36||this.events[this.events.length-1][1].type==="characterEscape"}function re(e){return{flow:{36:J},text:{36:ee(e)}}}const ie={};function ge(e){const r=this,s=e||ie,t=r.data(),n=t.micromarkExtensions||(t.micromarkExtensions=[]),h=t.fromMarkdownExtensions||(t.fromMarkdownExtensions=[]),m=t.toMarkdownExtensions||(t.toMarkdownExtensions=[]);n.push(re(s)),h.push(Z()),m.push(G(s))}function ae(e,r=e.arxiv_id??e.id){return{routeId:r,title:e.title,arxivId:e.arxiv_id,source:e.source??(e.arxiv_id?"arxiv":"external"),sourceUrl:e.source_url??e.url_abs,thumbnailUrl:e.thumbnail_url??null,authors:e.authors,published:e.published??null,conference:e.conference_name??e.conference??null,citationCount:e.citation_count,tasks:(e.tasks??[]).map(s=>({name:s.name,slug:s.slug??""}))}}function se(e){if(!e.authors.length)return"";const r=e.authors.slice(0,3).join(", ");return e.authors.length>3?`${r}, et al.`:r}function oe(e){var s;if(e.conference)return e.conference;const r=(s=e.published)==null?void 0:s.slice(0,4);if(e.arxivId)return r?`arXiv ${r}`:"arXiv";if(e.sourceUrl)try{return new URL(e.sourceUrl).hostname.replace(/^www\./,"")}catch{}return r??"external"}const ue=({seed:e=0})=>o.jsxs("div",{className:"paper-preview-thumb","aria-hidden":"true","data-testid":"faux-paper-thumb",children:[o.jsxs("div",{className:"paper-preview-thumb-title",children:[o.jsx("span",{}),o.jsx("span",{})]}),o.jsx("div",{className:"paper-preview-thumb-auth"}),o.jsxs("div",{className:"paper-preview-thumb-cols",children:[o.jsx("div",{className:"paper-preview-thumb-col"}),o.jsx("div",{className:"paper-preview-thumb-col"})]}),o.jsx("div",{className:"paper-preview-thumb-fig",style:{top:62+e%3*8}})]}),le=({thumbnailUrl:e,seed:r})=>{const[s,t]=T.useState(!1),n=D(e);return T.useEffect(()=>t(!1),[n]),!n||s?o.jsx(ue,{seed:r}):o.jsx("div",{className:"paper-preview-thumb paper-preview-thumb-real",children:o.jsx("img",{"data-testid":"paper-preview-image",src:n,alt:"",loading:"lazy",decoding:"async",onError:()=>t(!0)})})},$=({data:e})=>{const r=e.routeId.split("").reduce((t,n)=>t+n.charCodeAt(0),0),s=se(e);return o.jsxs("div",{className:"paper-preview-inner",children:[o.jsx(le,{thumbnailUrl:e.thumbnailUrl,seed:r}),o.jsxs("div",{className:"paper-preview-meta",children:[o.jsx("div",{className:"paper-preview-title",children:e.title}),s&&o.jsx("div",{className:"paper-preview-auth",children:s}),o.jsxs("div",{className:"paper-preview-venue",children:[oe(e),e.arxivId&&o.jsxs(o.Fragment,{children:[" · arXiv:",e.arxivId]}),e.citationCount!=null&&o.jsxs(o.Fragment,{children:[" · ↑ ",e.citationCount.toLocaleString()]})]}),e.tasks.length>0&&o.jsx("div",{className:"paper-preview-tags",children:e.tasks.map(t=>o.jsx("span",{className:"paper-preview-tag",children:t.name},t.slug||t.name))})]})]})},N=e=>I.summary(j(e)).queryKey,ce=e=>e.arxiv_id??e.id,z=200;function ye(e,r=S){const s=new Set,t=async h=>{const m=new Map;for(const c of h)c.arxiv_id&&s.add(j(c.arxiv_id));for(let c=0;c<h.length;c+=z){const{references:a}=await r.lookup(h.slice(c,c+z));for(const l of a){if(!l.paper)continue;const p=ce(l.paper);e.setQueryData(N(p),l.paper),m.set(l.key,p)}}return m};return{lookup:t,warm:h=>{const m=h.filter(c=>{const a=j(c);return s.has(a)||e.getQueryData(N(a))?!1:(s.add(a),!0)});m.length&&t(m.map(c=>({key:c,arxiv_id:c}))).catch(()=>{})}}}const he=/^(\d{4}\.\d{4,5}|[a-z-]+(\.[A-Z]{2})?\/\d{7})$/i,me=({arxivId:e})=>{var n;const r=O(),s=A(),t=X({mutationFn:()=>S.submit({arxiv_id:e}),onSuccess:h=>{h.pending_review||s.invalidateQueries({queryKey:N(e)})}});return(n=t.data)!=null&&n.pending_review?o.jsxs("div",{className:"paper-preview-status paper-preview-index-request",children:[o.jsx("span",{children:"Indexing request queued for review."}),o.jsx(M,{to:"/submissions",target:"_blank",rel:"noopener noreferrer",children:"View submissions ↗"})]}):o.jsxs("div",{className:"paper-preview-status paper-preview-index-request",children:[o.jsx("span",{children:"Not indexed on Papers with Code yet."}),r!=null&&r.user?o.jsx("button",{type:"button",disabled:t.isPending,onClick:()=>t.mutate(),children:t.isPending?"Requesting…":"Request indexing"}):o.jsx(M,{to:`/submit?arxiv_id=${encodeURIComponent(e)}`,target:"_blank",rel:"noopener noreferrer",children:"Request indexing ↗"}),t.isError&&o.jsx("span",{role:"alert",children:t.error.message})]})},pe=()=>typeof window.matchMedia=="function"&&window.matchMedia("(hover: none), (pointer: coarse)").matches,Fe=({routeId:e,to:r,initialData:s,className:t,children:n,target:h,title:m,ariaLabel:c,onClick:a,previewFooter:l,cardOpensPaper:p=!1})=>{const d=j(e),[w,x]=T.useState(!1),v=!!(s!=null&&s.title.trim()),u=Q({...I.summary(d),enabled:w&&!v,gcTime:30*60*1e3,retry:!1}),g=s??(u.data?ae(u.data,d):void 0),C=B(u.error)&&he.test(d),i=o.jsx(M,{className:t,to:r??`/paper/${d}`,target:h,title:m,"aria-label":c,onClick:F=>{x(!1),a==null||a(F)},rel:h==="_blank"?"noopener noreferrer":void 0,children:n});return o.jsxs(H,{open:w,onOpenChange:F=>{(!F||!pe())&&x(F)},openDelay:150,closeDelay:100,children:[o.jsx(K,{asChild:!0,children:i}),o.jsx(V,{className:"paper-preview-pop",side:"bottom",align:"start",collisionPadding:12,children:g?o.jsxs(o.Fragment,{children:[p?o.jsx(M,{className:"paper-preview-card-link",to:`/paper/${encodeURIComponent(d)}`,target:"_blank",rel:"noopener noreferrer",onClick:()=>x(!1),children:o.jsx($,{data:g})}):o.jsx($,{data:g}),l==null?void 0:l(g)]}):C?o.jsx(me,{arxivId:d}):u.isError?o.jsx("div",{className:"paper-preview-status",children:"Preview unavailable"}):o.jsx("div",{className:"paper-preview-status","aria-live":"polite",children:"Loading preview…"})})]})};export{Fe as P,ye as c,ge as r};
assets/PaperReaderView-CyZ3sOmY.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{i as s,b as E,O as F,j as a,A as te,u as Fe,K as Ke,t as Ue,k as _e,ak as De,L as J}from"./index-DqiWSKRu.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-C-gatgua.js";import{M as et}from"./MarkdownText-DxIZLXr2.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-4qtVsasI.js";import{s as ae}from"./safeExternalHref-CkBrsh84.js";import{ChatExperience as ot}from"./ChatView-WlFZxtHx.js";import"./index-CV2RBjLM.js";/* empty css */import"./hover-card-BPFTusQQ.js";import"./CatalogEntityPreviewLink-Cz-PGV0F.js";import"./github-DR_xiUHp.js";import"./file-text-DygGjiFE.js";import"./PaperPreviewLink-Cn8gltdd.js";import"./index-DsTRem-i.js";import"./index-2X5IY5Iu.js";import"./useMutation-s01kVLYP.js";import"./index-DsUVuYlH.js";import"./katex-DkKDou_j.js";import"./thumbs-up-O9YhH8YG.js";import"./copy-Csr_C_Aq.js";import"./arrow-left-AHGVlBpG.js";import"./external-link-CRXcmpbR.js";import"./plus-DSNQa55K.js";import"./search-D6MzDlxw.js";import"./chevron-up-CyF8Y8AT.js";import"./AuthorAvatar-BjZbMuV8.js";import"./trash-2-BXFf5wi-.js";import"./McpShowcase-2nbI0Yx2.js";import"./AgentLogos-C8ZXxWoe.js";import"./share-2-6MRpEA8D.js";import"./Icon-DqGTBJZ9.js";import"./mlIntern-DECSlKey.js";import"./openrouter-BQoIPEIl.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-x7MwOUS_.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-D6aEInmu.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-C463R-m5.js";import{M as et}from"./MarkdownText-WX3kW92g.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-DOACRtqV.js";import{s as ae}from"./safeExternalHref-CkBrsh84.js";import{ChatExperience as ot}from"./ChatView-C2A0qsMW.js";import"./index-DdF_Us_6.js";/* empty css */import"./hover-card-C0nRSsFV.js";import"./CatalogEntityPreviewLink-Pt3-UZ8j.js";import"./github-DjuSO7M4.js";import"./file-text-Brc6F3oH.js";import"./PaperPreviewLink-CyaI4izq.js";import"./index-C_uAq02v.js";import"./index-DPECPebL.js";import"./useMutation-pFc9AV9q.js";import"./index-LFG-CrNl.js";import"./katex-DkKDou_j.js";import"./thumbs-up-Cez8oCuZ.js";import"./copy-B-raWDut.js";import"./arrow-left-CXkxRjJa.js";import"./external-link-C27iK9fF.js";import"./plus-CsPEBwC8.js";import"./search-CXZqc5xK.js";import"./chevron-up-Dd1OUf8-.js";import"./AuthorAvatar-CB9dFjtV.js";import"./trash-2-CcR0dxP7.js";import"./McpShowcase-aTKzx9IH.js";import"./AgentLogos-Cm3YQ6TB.js";import"./share-2-BlNTW9Lm.js";import"./Icon-BCKS3hPB.js";import"./mlIntern-BWyozZfZ.js";import"./openrouter-KxEsvD0W.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-CL7-i5R7.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{f as Q,i as u,E as B,y as I,n as U,j as e,L as f,z as K,b as V,x as X}from"./index-DqiWSKRu.js";import{T as J}from"./SotaBadges-DiZSUF6s.js";import{I as q}from"./Icon-DqGTBJZ9.js";import{b as W,u as M,a as Y,c as Z,d as ee,P as se}from"./usePapers-DhjAXi7Z.js";import{t as re,d as ae}from"./transform-CZk96jj7.js";import{u as te}from"./useDebounce-WuCmYjd8.js";import{S as ne}from"./skeleton-Co0D0sKS.js";import{A as ie,a as le}from"./alert-Ccdfz8nH.js";import{f as oe}from"./frameworks-DDA0P4Tf.js";import{u as de}from"./useDocumentTitle-BkdH1nHb.js";import{p as ce}from"./pageTitles-A2o-JnLx.js";import"./colors-BkWRhvFI.js";import"./PaperCard-VdH8pI7u.js";import"./AuthorAvatar-BjZbMuV8.js";import"./LatexTitle-CKwsnD2Q.js";import"./safeExternalHref-CkBrsh84.js";import"./popover-BFaNN2oM.js";import"./useIntersectionObserver-BY6KvlsB.js";import"./useInfiniteQuery-YJbg_oLc.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]),z=((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,O=((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 ${O}`: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:z,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/PapersListView-DrBZoavI.js DELETED
@@ -1 +0,0 @@
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-D6aEInmu.js";import{T as J}from"./SotaBadges-D5Rygs2E.js";import{I as q}from"./Icon-BCKS3hPB.js";import{b as W,u as M,a as Y,c as Z,d as ee,P as se}from"./usePapers-CrZh8ngx.js";import{t as re,d as ae}from"./transform-yHyLdRgB.js";import{u as te}from"./useDebounce-Biol71Ue.js";import{S as ne}from"./skeleton-BkAt4a_A.js";import{A as ie,a as le}from"./alert-CbcJsgVQ.js";import{f as oe}from"./frameworks-DDA0P4Tf.js";import{u as de}from"./useDocumentTitle-Dgxi21fr.js";import{p as ce}from"./pageTitles-DTKTKJOp.js";import"./colors-BkWRhvFI.js";import"./PaperCard-DXVTfuSM.js";import"./AuthorAvatar-CB9dFjtV.js";import"./LatexTitle-YKOmpgD5.js";import"./safeExternalHref-CkBrsh84.js";import"./popover-BTut4e1S.js";import"./useIntersectionObserver-BiqrXJxS.js";import"./useInfiniteQuery-DGk1REJi.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};