wrong-notebook 2026.11.4-2 → 2026.11.4-4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.next/BUILD_ID +1 -1
- package/.next/app-path-routes-manifest.json +1 -0
- package/.next/build-manifest.json +3 -3
- package/.next/routes-manifest.json +6 -0
- package/.next/server/app/_global-error.html +1 -1
- package/.next/server/app/_global-error.rsc +1 -1
- package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/server/app/admin/page.js.nft.json +1 -1
- package/.next/server/app/admin/page_client-reference-manifest.js +1 -1
- package/.next/server/app/admin/user/[id]/page.js.nft.json +1 -1
- package/.next/server/app/admin/user/[id]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/api/admin/cnm-tags/route.js +8 -6
- package/.next/server/app/api/admin/cnm-tags/route.js.nft.json +1 -1
- package/.next/server/app/api/admin/dashboard/route.js +16 -14
- package/.next/server/app/api/admin/dashboard/route.js.nft.json +1 -1
- package/.next/server/app/api/admin/debug-logs/export/route.js +7 -6
- package/.next/server/app/api/admin/debug-logs/export/route.js.nft.json +1 -1
- package/.next/server/app/api/admin/debug-logs/route.js +6 -5
- package/.next/server/app/api/admin/debug-logs/route.js.nft.json +1 -1
- package/.next/server/app/api/admin/migrate-tags/route.js +5 -3
- package/.next/server/app/api/admin/migrate-tags/route.js.nft.json +1 -1
- package/.next/server/app/api/admin/system-reset/route.js +5 -5
- package/.next/server/app/api/admin/system-reset/route.js.nft.json +1 -1
- package/.next/server/app/api/admin/users/[id]/detail/route.js +16 -14
- package/.next/server/app/api/admin/users/[id]/detail/route.js.nft.json +1 -1
- package/.next/server/app/api/admin/users/[id]/route.js +7 -5
- package/.next/server/app/api/admin/users/[id]/route.js.nft.json +1 -1
- package/.next/server/app/api/admin/users/route.js +8 -7
- package/.next/server/app/api/admin/users/route.js.nft.json +1 -1
- package/.next/server/app/api/ai/models/route.js +15 -14
- package/.next/server/app/api/ai/models/route.js.nft.json +1 -1
- package/.next/server/app/api/ai/test/route.js +16 -13
- package/.next/server/app/api/ai/test/route.js.nft.json +1 -1
- package/.next/server/app/api/analytics/route.js +15 -14
- package/.next/server/app/api/analytics/route.js.nft.json +1 -1
- package/.next/server/app/api/analyze/route.js +20 -18
- package/.next/server/app/api/analyze/route.js.nft.json +1 -1
- package/.next/server/app/api/auth/[...nextauth]/route.js.nft.json +1 -1
- package/.next/server/app/api/error-items/[id]/delete/route.js +5 -5
- package/.next/server/app/api/error-items/[id]/delete/route.js.nft.json +1 -1
- package/.next/server/app/api/error-items/[id]/figure/route.js +20 -18
- package/.next/server/app/api/error-items/[id]/figure/route.js.nft.json +1 -1
- package/.next/server/app/api/error-items/[id]/fix-latex/route.js +18 -16
- package/.next/server/app/api/error-items/[id]/fix-latex/route.js.nft.json +1 -1
- package/.next/server/app/api/error-items/[id]/geogebra/route.js +20 -17
- package/.next/server/app/api/error-items/[id]/geogebra/route.js.nft.json +1 -1
- package/.next/server/app/api/error-items/[id]/image/route.js +6 -5
- package/.next/server/app/api/error-items/[id]/image/route.js.nft.json +1 -1
- package/.next/server/app/api/error-items/[id]/notes/route.js +8 -5
- package/.next/server/app/api/error-items/[id]/notes/route.js.nft.json +1 -1
- package/.next/server/app/api/error-items/[id]/practice-records/route.js +5 -4
- package/.next/server/app/api/error-items/[id]/practice-records/route.js.nft.json +1 -1
- package/.next/server/app/api/error-items/[id]/reanswer/route.js +18 -15
- package/.next/server/app/api/error-items/[id]/reanswer/route.js.nft.json +1 -1
- package/.next/server/app/api/error-items/[id]/retag/route.js +18 -16
- package/.next/server/app/api/error-items/[id]/retag/route.js.nft.json +1 -1
- package/.next/server/app/api/error-items/[id]/route.js +13 -9
- package/.next/server/app/api/error-items/[id]/route.js.nft.json +1 -1
- package/.next/server/app/api/error-items/[id]/svg-animation/narration/route.js +18 -15
- package/.next/server/app/api/error-items/[id]/svg-animation/narration/route.js.nft.json +1 -1
- package/.next/server/app/api/error-items/[id]/svg-animation/route.js +18 -15
- package/.next/server/app/api/error-items/[id]/svg-animation/route.js.nft.json +1 -1
- package/.next/server/app/api/error-items/answer-space/route.js +6 -6
- package/.next/server/app/api/error-items/answer-space/route.js.nft.json +1 -1
- package/.next/server/app/api/error-items/batch-delete/route.js +8 -5
- package/.next/server/app/api/error-items/batch-delete/route.js.nft.json +1 -1
- package/.next/server/app/api/error-items/clear/route.js +5 -5
- package/.next/server/app/api/error-items/clear/route.js.nft.json +1 -1
- package/.next/server/app/api/error-items/export-questions/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/error-items/export-questions/route/build-manifest.json +12 -0
- package/.next/server/app/api/error-items/export-questions/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/error-items/export-questions/route.js +17 -0
- package/.next/server/app/api/error-items/export-questions/route.js.map +5 -0
- package/.next/server/app/api/error-items/export-questions/route.js.nft.json +1 -0
- package/.next/server/app/api/error-items/export-questions/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/error-items/list/route.js +8 -7
- package/.next/server/app/api/error-items/list/route.js.nft.json +1 -1
- package/.next/server/app/api/error-items/route.js +22 -21
- package/.next/server/app/api/error-items/route.js.nft.json +1 -1
- package/.next/server/app/api/error-items/short/[shortId]/route.js +5 -4
- package/.next/server/app/api/error-items/short/[shortId]/route.js.nft.json +1 -1
- package/.next/server/app/api/error-items/similarity/route.js +4 -3
- package/.next/server/app/api/error-items/similarity/route.js.nft.json +1 -1
- package/.next/server/app/api/exams/[id]/questions/[questionId]/regenerate/route.js +20 -18
- package/.next/server/app/api/exams/[id]/questions/[questionId]/regenerate/route.js.nft.json +1 -1
- package/.next/server/app/api/exams/[id]/results/route.js +19 -18
- package/.next/server/app/api/exams/[id]/results/route.js.nft.json +1 -1
- package/.next/server/app/api/exams/[id]/retry/route.js +18 -17
- package/.next/server/app/api/exams/[id]/retry/route.js.nft.json +1 -1
- package/.next/server/app/api/exams/[id]/route.js +21 -19
- package/.next/server/app/api/exams/[id]/route.js.nft.json +1 -1
- package/.next/server/app/api/exams/route.js +20 -19
- package/.next/server/app/api/exams/route.js.nft.json +1 -1
- package/.next/server/app/api/export/route.js +9 -7
- package/.next/server/app/api/export/route.js.nft.json +1 -1
- package/.next/server/app/api/geogebra-analyze/route.js +18 -16
- package/.next/server/app/api/geogebra-analyze/route.js.nft.json +1 -1
- package/.next/server/app/api/health/route.js.nft.json +1 -1
- package/.next/server/app/api/import/route.js +22 -20
- package/.next/server/app/api/import/route.js.nft.json +1 -1
- package/.next/server/app/api/import-batches/[id]/confirm-all/route.js +25 -22
- package/.next/server/app/api/import-batches/[id]/confirm-all/route.js.nft.json +1 -1
- package/.next/server/app/api/import-batches/[id]/fix-text/route.js +19 -18
- package/.next/server/app/api/import-batches/[id]/fix-text/route.js.nft.json +1 -1
- package/.next/server/app/api/import-batches/[id]/read/route.js +27 -24
- package/.next/server/app/api/import-batches/[id]/read/route.js.nft.json +1 -1
- package/.next/server/app/api/import-batches/[id]/retry/route.js +25 -22
- package/.next/server/app/api/import-batches/[id]/retry/route.js.nft.json +1 -1
- package/.next/server/app/api/import-batches/[id]/route.js +27 -24
- package/.next/server/app/api/import-batches/[id]/route.js.nft.json +1 -1
- package/.next/server/app/api/import-batches/[id]/start/route.js +27 -24
- package/.next/server/app/api/import-batches/[id]/start/route.js.nft.json +1 -1
- package/.next/server/app/api/import-batches/route.js +27 -24
- package/.next/server/app/api/import-batches/route.js.nft.json +1 -1
- package/.next/server/app/api/import-tasks/[id]/confirm/route.js +25 -22
- package/.next/server/app/api/import-tasks/[id]/confirm/route.js.nft.json +1 -1
- package/.next/server/app/api/import-tasks/[id]/read/route.js +25 -22
- package/.next/server/app/api/import-tasks/[id]/read/route.js.nft.json +1 -1
- package/.next/server/app/api/import-tasks/[id]/retry/route.js +25 -22
- package/.next/server/app/api/import-tasks/[id]/retry/route.js.nft.json +1 -1
- package/.next/server/app/api/import-tasks/[id]/route.js +25 -22
- package/.next/server/app/api/import-tasks/[id]/route.js.nft.json +1 -1
- package/.next/server/app/api/import-tasks/route.js +27 -24
- package/.next/server/app/api/import-tasks/route.js.nft.json +1 -1
- package/.next/server/app/api/initialize/route.js +1 -1
- package/.next/server/app/api/initialize/route.js.nft.json +1 -1
- package/.next/server/app/api/logs/frontend/route.js +6 -4
- package/.next/server/app/api/logs/frontend/route.js.nft.json +1 -1
- package/.next/server/app/api/minimax-code/checkin/route.js +6 -5
- package/.next/server/app/api/minimax-code/checkin/route.js.nft.json +1 -1
- package/.next/server/app/api/minimax-code/login/route.js +6 -5
- package/.next/server/app/api/minimax-code/login/route.js.nft.json +1 -1
- package/.next/server/app/api/minimax-code/route.js +7 -6
- package/.next/server/app/api/minimax-code/route.js.nft.json +1 -1
- package/.next/server/app/api/notebooks/[id]/retag/route.js +18 -17
- package/.next/server/app/api/notebooks/[id]/retag/route.js.nft.json +1 -1
- package/.next/server/app/api/notebooks/[id]/route.js +8 -4
- package/.next/server/app/api/notebooks/[id]/route.js.nft.json +1 -1
- package/.next/server/app/api/notebooks/route.js +8 -6
- package/.next/server/app/api/notebooks/route.js.nft.json +1 -1
- package/.next/server/app/api/openclaw/batch-upload/route.js +21 -19
- package/.next/server/app/api/openclaw/batch-upload/route.js.nft.json +1 -1
- package/.next/server/app/api/paper-groups/[id]/route.js +5 -4
- package/.next/server/app/api/paper-groups/[id]/route.js.nft.json +1 -1
- package/.next/server/app/api/paper-groups/route.js +4 -3
- package/.next/server/app/api/paper-groups/route.js.nft.json +1 -1
- package/.next/server/app/api/practice/generate/route.js +18 -16
- package/.next/server/app/api/practice/generate/route.js.nft.json +1 -1
- package/.next/server/app/api/practice/grade/route.js +15 -13
- package/.next/server/app/api/practice/grade/route.js.nft.json +1 -1
- package/.next/server/app/api/practice/record/[id]/route.js +18 -16
- package/.next/server/app/api/practice/record/[id]/route.js.nft.json +1 -1
- package/.next/server/app/api/practice/record/route.js +16 -14
- package/.next/server/app/api/practice/record/route.js.nft.json +1 -1
- package/.next/server/app/api/reanswer/route.js +19 -17
- package/.next/server/app/api/reanswer/route.js.nft.json +1 -1
- package/.next/server/app/api/register/route.js +5 -5
- package/.next/server/app/api/register/route.js.nft.json +1 -1
- package/.next/server/app/api/register/status/route.js +5 -5
- package/.next/server/app/api/register/status/route.js.nft.json +1 -1
- package/.next/server/app/api/requests/[id]/route.js +5 -4
- package/.next/server/app/api/requests/[id]/route.js.nft.json +1 -1
- package/.next/server/app/api/review/due/route.js +17 -15
- package/.next/server/app/api/review/due/route.js.nft.json +1 -1
- package/.next/server/app/api/settings/route.js +8 -7
- package/.next/server/app/api/settings/route.js.nft.json +1 -1
- package/.next/server/app/api/setup/route.js +7 -6
- package/.next/server/app/api/setup/route.js.nft.json +1 -1
- package/.next/server/app/api/stats/activity/route.js +7 -6
- package/.next/server/app/api/stats/activity/route.js.nft.json +1 -1
- package/.next/server/app/api/stats/practice/clear/route.js +5 -5
- package/.next/server/app/api/stats/practice/clear/route.js.nft.json +1 -1
- package/.next/server/app/api/stats/practice/route.js +7 -6
- package/.next/server/app/api/stats/practice/route.js.nft.json +1 -1
- package/.next/server/app/api/stats/repeated-mistakes/route.js +17 -16
- package/.next/server/app/api/stats/repeated-mistakes/route.js.nft.json +1 -1
- package/.next/server/app/api/stats/weak-tags/route.js +17 -16
- package/.next/server/app/api/stats/weak-tags/route.js.nft.json +1 -1
- package/.next/server/app/api/tags/route.js +7 -4
- package/.next/server/app/api/tags/route.js.nft.json +1 -1
- package/.next/server/app/api/tags/stats/route.js +1 -1
- package/.next/server/app/api/tags/stats/route.js.nft.json +1 -1
- package/.next/server/app/api/tags/suggestions/route.js.nft.json +1 -1
- package/.next/server/app/api/tasks/route.js +5 -4
- package/.next/server/app/api/tasks/route.js.nft.json +1 -1
- package/.next/server/app/api/tts/[id]/route.js +9 -8
- package/.next/server/app/api/tts/[id]/route.js.nft.json +1 -1
- package/.next/server/app/api/tts/batch/route.js +10 -9
- package/.next/server/app/api/tts/batch/route.js.nft.json +1 -1
- package/.next/server/app/api/tts/route.js +11 -10
- package/.next/server/app/api/tts/route.js.nft.json +1 -1
- package/.next/server/app/api/tts/status/route.js +11 -10
- package/.next/server/app/api/tts/status/route.js.nft.json +1 -1
- package/.next/server/app/api/user/route.js +16 -15
- package/.next/server/app/api/user/route.js.nft.json +1 -1
- package/.next/server/app/api/version/route.js.nft.json +1 -1
- package/.next/server/app/error-items/[id]/page.js.nft.json +1 -1
- package/.next/server/app/error-items/[id]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/exams/[id]/page.js.nft.json +1 -1
- package/.next/server/app/exams/[id]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/exams/[id]/print/page.js.nft.json +1 -1
- package/.next/server/app/exams/[id]/print/page_client-reference-manifest.js +1 -1
- package/.next/server/app/exams/page.js.nft.json +1 -1
- package/.next/server/app/exams/page_client-reference-manifest.js +1 -1
- package/.next/server/app/import-batches/[id]/page.js.nft.json +1 -1
- package/.next/server/app/import-batches/[id]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/import-tasks/[id]/page.js.nft.json +1 -1
- package/.next/server/app/import-tasks/[id]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/import-tasks/page.js.nft.json +1 -1
- package/.next/server/app/import-tasks/page_client-reference-manifest.js +1 -1
- package/.next/server/app/initialize/page.js.nft.json +1 -1
- package/.next/server/app/initialize/page_client-reference-manifest.js +1 -1
- package/.next/server/app/login/page.js.nft.json +1 -1
- package/.next/server/app/login/page_client-reference-manifest.js +1 -1
- package/.next/server/app/notebooks/[id]/add/page.js.nft.json +1 -1
- package/.next/server/app/notebooks/[id]/add/page_client-reference-manifest.js +1 -1
- package/.next/server/app/notebooks/[id]/page.js.nft.json +1 -1
- package/.next/server/app/notebooks/[id]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/notebooks/page.js.nft.json +1 -1
- package/.next/server/app/notebooks/page_client-reference-manifest.js +1 -1
- package/.next/server/app/page.js.nft.json +1 -1
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/app/practice/page.js.nft.json +1 -1
- package/.next/server/app/practice/page_client-reference-manifest.js +1 -1
- package/.next/server/app/print-preview/page.js.nft.json +1 -1
- package/.next/server/app/print-preview/page_client-reference-manifest.js +1 -1
- package/.next/server/app/register/page.js.nft.json +1 -1
- package/.next/server/app/register/page_client-reference-manifest.js +1 -1
- package/.next/server/app/review/page.js.nft.json +1 -1
- package/.next/server/app/review/page_client-reference-manifest.js +1 -1
- package/.next/server/app/setup/page.js.nft.json +1 -1
- package/.next/server/app/setup/page_client-reference-manifest.js +1 -1
- package/.next/server/app/stats/page.js.nft.json +1 -1
- package/.next/server/app/stats/page_client-reference-manifest.js +1 -1
- package/.next/server/app/tags/page.js.nft.json +1 -1
- package/.next/server/app/tags/page_client-reference-manifest.js +1 -1
- package/.next/server/app-paths-manifest.json +1 -0
- package/.next/server/chunks/1oeh_server_app_api_error-items_export-questions_route_actions_02nsquej76mp1.js +3 -0
- package/.next/server/chunks/[externals]__1j5vgk-wr4vpe._.js +3 -0
- package/.next/server/chunks/[externals]_fs_0pplqgcyv2l7l._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0-d_vh1kcmw7g._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__001wdwos9fkgg._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__00cl_lnn-40t3._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__05tyrbfzivoeq._.js → [root-of-the-server]__00w9qhjl8kvr4._.js} +1 -1
- package/.next/server/chunks/{[root-of-the-server]__01-14hxale6jz._.js → [root-of-the-server]__00w_kxg7h-9_p._.js} +1 -1
- package/.next/server/chunks/[root-of-the-server]__00x5ad3w5zwfp._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__01rm65xnqj0z-._.js → [root-of-the-server]__01jxyfokd6l4_._.js} +1 -1
- package/.next/server/chunks/{[root-of-the-server]__02nbzp-n9g9_o._.js → [root-of-the-server]__025dluj5es8w4._.js} +1 -1
- package/.next/server/chunks/{[root-of-the-server]__09pkxauucdf_0._.js → [root-of-the-server]__02fu_lp66613e._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__04w57bdna9ax0._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__0z0knsep33lsx._.js → [root-of-the-server]__05a4j8yu5_bg1._.js} +2 -2
- package/.next/server/chunks/{[root-of-the-server]__006u92h_madgn._.js → [root-of-the-server]__05pxdy586nh8a._.js} +1 -1
- package/.next/server/chunks/{[root-of-the-server]__0n5l60oyv1n-1._.js → [root-of-the-server]__06i2kswg2zb80._.js} +1 -1
- package/.next/server/chunks/[root-of-the-server]__07i32k2sv285o._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__0k4cyyyh6z6_p._.js → [root-of-the-server]__0855dkhk7zs77._.js} +2 -2
- package/.next/server/chunks/{[root-of-the-server]__0lqv0n5j2fg24._.js → [root-of-the-server]__08iizowhy6p3l._.js} +2 -2
- package/.next/server/chunks/{[root-of-the-server]__1eu_g0k_nr3i-._.js → [root-of-the-server]__094ybs6y_fmt5._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__09aolocrwucnt._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0_le78e9b2yno._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0_uup9ppknahw._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0b8rxaox_x2n1._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0bvf731upd2_w._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0cgpuhmu87blm._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0dqy62vnjwvwp._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__0bmczgpuggwki._.js → [root-of-the-server]__0ef-17j7yp2n5._.js} +1 -1
- package/.next/server/chunks/[root-of-the-server]__0ej9lsrmus5m4._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0evv12a34qcy6._.js +27 -0
- package/.next/server/chunks/[root-of-the-server]__0fdkyswheen4o._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__0eba9rni-2_tw._.js → [root-of-the-server]__0fhi9g3nqu6k3._.js} +1 -1
- package/.next/server/chunks/{[root-of-the-server]__0fx0s5_6sjw-d._.js → [root-of-the-server]__0g3w0_9__ljck._.js} +1 -1
- package/.next/server/chunks/[root-of-the-server]__0g848ha1gy56h._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0hcbw1sliw973._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__0ig1r6paxqzt0._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0j7ua4rsijb4c._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0jh610iscvrmp._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0kehix4ojdnhw._.js +1 -1
- package/.next/server/chunks/{[root-of-the-server]__0imuc7gi1ii-e._.js → [root-of-the-server]__0l3io0vyav4if._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__0l7jho_lr2z5g._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0lgbdth9-z6qg._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0llbkrw8l2ib9._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0mfr1ne23y4yo._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__0geynfn2xmdle._.js → [root-of-the-server]__0mslax132s9jp._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__0nin5p-dwlpf9._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0nye-53zadylr._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0p8cwd_go8pid._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0pojh2d6n1kp6._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0rspref34j958._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0si2-m5an9zl7._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0svdqovwfpro2._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0tsi6_qmtro9q._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0tvp4sm4zx3wt._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0u1fu9dvxmlxd._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0ujhx0glgcxja._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__029n0r2v92pcc._.js → [root-of-the-server]__0v8mfczhz1ax1._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__0vf3rgatj1f3u._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0vrag-4p6eznc._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0vt48u-0ebzdv._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0w9f5-xtpane-._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0wea836zkhvlj._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0wex3czgya39o._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0x8ehtaj_x2pf._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0xobqdj2u2s67._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0y3ui5-k9baec._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0yq7jm5ja3r6t._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0zrg03ldx65tk._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1-1ld657rjip5._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1-6r_3pmgkz13._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__10ngcci8pf29l._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__11-fk0-4iuf_k._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__11x5u4zg5i2c6._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__120o1w9mcwgta._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__12f6t_ozjtn42._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__13a3izu1xb4m4._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__1kiolpvl5u4e-._.js → [root-of-the-server]__14e45mqzb1vjt._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__14jf33wwjqbw1._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__14n0eki4tdk02._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__15a3t94ps7jx2._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__15dipxocczlvx._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__15r55xy6cyrg3._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__176zyagwjex4i._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__17ed9rw-rhun-._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__19kic_glbz32b._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1ae5zzeo8_c2s._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1b-acwmm5hhg0._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1d6ftxzea6h0a._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1dovdb1wrr_0e._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1e7_e83zxstdw._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1e81i8l09skcp._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1e8_j43j1t1m3._.js +27 -0
- package/.next/server/chunks/[root-of-the-server]__1f-ve8idsq57l._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1f0zocrmsd5p8._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1f5_yaclxhuvj._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1gf_vv57qtjh0._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1h0tye6lfskvl._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1hn69stngi4kc._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1hnyj47zdzrxo._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1k0fuhrt1iiad._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1kxecl8v-_px5._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1l6v9x8xm11pl._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1m8m5io-tr21e._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1pfhgjwnx_--j._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1r5lj-ffov9r0._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1rxi33p9h8zrj._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1uqnotrppylmw._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1utvl-1o6mb8y._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1vc89u7_xxhyf._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1x_kq-6h3utmo._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1xqcu4ft3d7id._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1xuw793xxu29t._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1yaf9vp_o6cro._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1ybmwcbaqk63j._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1yyezurgy7e3k._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1z4-5hlzq34fw._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1z9hl9qdokxpu._.js +3 -0
- package/.next/server/chunks/_0-ne-bwuvd_6w._.js +1 -1
- package/.next/server/chunks/_011-ll5i30j2e._.js +1 -1
- package/.next/server/chunks/_01bayc6kg7upi._.js +1 -1
- package/.next/server/chunks/_029zt0rilrwvt._.js +1 -1
- package/.next/server/chunks/_03ovgh1-4xf3f._.js +1 -1
- package/.next/server/chunks/_0431fxnqiloso._.js +1 -1
- package/.next/server/chunks/_04vbgvl2gl5bc._.js +3 -0
- package/.next/server/chunks/_055vhdh_7iydn._.js +3 -0
- package/.next/server/chunks/_05ans30vcd4s-._.js +1 -1
- package/.next/server/chunks/{_04rjm4ctjqrba._.js → _06pseal2zu-71._.js} +2 -2
- package/.next/server/chunks/_076-jjzrfdsdk._.js +1 -1
- package/.next/server/chunks/_07amw8ha9rney._.js +1 -1
- package/.next/server/chunks/{_1fki7pamd4s-7._.js → _087uva8dkvxwz._.js} +2 -2
- package/.next/server/chunks/_08i9pskmlafnp._.js +1 -1
- package/.next/server/chunks/_09o9zamz75n5d._.js +1 -1
- package/.next/server/chunks/_0_3_65z6ak-5i._.js +1 -1
- package/.next/server/chunks/_0_5s2mrhxb3-u._.js +3 -0
- package/.next/server/chunks/_0_e736ff6uhew._.js +1 -1
- package/.next/server/chunks/_0anbzuivml30d._.js +1 -1
- package/.next/server/chunks/{_0edfmbz_jbxsu._.js → _0b9gke5b17vzh._.js} +2 -2
- package/.next/server/chunks/_0d66myj_8567o._.js +1 -1
- package/.next/server/chunks/_0gxi3zrkhyvx_._.js +1 -1
- package/.next/server/chunks/_0h1rbua_hqkox._.js +1 -1
- package/.next/server/chunks/_0hk9z9rqga4x-._.js +1 -1
- package/.next/server/chunks/_0i58-g30ox5-8._.js +3 -0
- package/.next/server/chunks/_0kjatc7pcrkvz._.js +1 -1
- package/.next/server/chunks/_0kreo-8xn80hb._.js +1 -1
- package/.next/server/chunks/_0l2j3br2g32zp._.js +1 -1
- package/.next/server/chunks/_0lepv-j_r8kfv._.js +3 -0
- package/.next/server/chunks/_0lmh33cdt_1fr._.js +1 -1
- package/.next/server/chunks/_0lob14xk0ko5z._.js +1 -1
- package/.next/server/chunks/_0mt2ctbvzfero._.js +1 -1
- package/.next/server/chunks/_0numcpxd_n25x._.js +3 -0
- package/.next/server/chunks/_0p-sas2zxy3iv._.js +1 -1
- package/.next/server/chunks/_0po48rvqz03dg._.js +1 -1
- package/.next/server/chunks/_0pzdohc1mz5ts._.js +1 -1
- package/.next/server/chunks/_0qaoat396e0_3._.js +1 -1
- package/.next/server/chunks/_0r8u30vd4lix4._.js +3 -0
- package/.next/server/chunks/_0r9ejvgz0l0-0._.js +1 -1
- package/.next/server/chunks/_0s8v0xiwcw6od._.js +3 -0
- package/.next/server/chunks/_0suqhfy3e5sv6._.js +1 -1
- package/.next/server/chunks/_0ta62b-tktnk8._.js +3 -0
- package/.next/server/chunks/{_03dn7v_h3d-v8._.js → _0tkov27xr068i._.js} +11 -7
- package/.next/server/chunks/_0tl0cy5j96d7h._.js +1 -1
- package/.next/server/chunks/_0tz5wpjdgntj3._.js +1 -1
- package/.next/server/chunks/_0wegi_sv1s4wx._.js +1 -1
- package/.next/server/chunks/_0xv7-7d6dyo9-._.js +1 -1
- package/.next/server/chunks/_0xx4y9tk1qclc._.js +1 -1
- package/.next/server/chunks/_0zs7jfzzshbfq._.js +1 -1
- package/.next/server/chunks/_11w6ynlxuzl55._.js +1 -1
- package/.next/server/chunks/_12fz_vwm9jemi._.js +3 -0
- package/.next/server/chunks/_12i51zlq-xxrl._.js +1 -1
- package/.next/server/chunks/_12w5k19rc45j_._.js +1 -1
- package/.next/server/chunks/_12xi_xqvtrn3k._.js +3 -0
- package/.next/server/chunks/_13ffmxv8qrwi0._.js +1 -1
- package/.next/server/chunks/_14w9nrdlajz24._.js +1 -1
- package/.next/server/chunks/_15fpgekhvv214._.js +1 -1
- package/.next/server/chunks/{_043-r529chcri._.js → _1638xaazsmf2m._.js} +11 -7
- package/.next/server/chunks/_1647rfjflw_iq._.js +1 -1
- package/.next/server/chunks/_16jdov0rxh99d._.js +1 -1
- package/.next/server/chunks/_17zw8m241gfs3._.js +1 -1
- package/.next/server/chunks/_18amra5328v90._.js +1 -1
- package/.next/server/chunks/_18hm5aaxkr500._.js +1 -1
- package/.next/server/chunks/_1_273cgnpyl9j._.js +1 -1
- package/.next/server/chunks/_1a1aqmie1d3u_._.js +1 -1
- package/.next/server/chunks/_1a1udq0c4_6ad._.js +1 -1
- package/.next/server/chunks/_1ab7h8-how0le._.js +3 -0
- package/.next/server/chunks/_1ahi8466v1b3l._.js +1 -1
- package/.next/server/chunks/_1almac7c09mp4._.js +3 -0
- package/.next/server/chunks/_1b-7g4thtxfnp._.js +3 -0
- package/.next/server/chunks/_1b0269xt-c8f7._.js +1 -1
- package/.next/server/chunks/_1b7qjlv0nxovi._.js +1 -1
- package/.next/server/chunks/_1be-y660a8z-q._.js +1 -1
- package/.next/server/chunks/_1cydcmia78z15._.js +1 -1
- package/.next/server/chunks/_1e8w9uuebtrcb._.js +1 -1
- package/.next/server/chunks/_1ev3hw7jrpp8r._.js +3 -0
- package/.next/server/chunks/_1gdet1v2zk2gy._.js +1 -1
- package/.next/server/chunks/_1hj7iit2u6xez._.js +1 -1
- package/.next/server/chunks/_1hp9mnz19v199._.js +1 -1
- package/.next/server/chunks/_1j10upti9l6da._.js +1 -1
- package/.next/server/chunks/_1j8kqz21_i728._.js +1 -1
- package/.next/server/chunks/_1lesklvhr_pfq._.js +3 -0
- package/.next/server/chunks/_1muwmr6j76v3m._.js +1 -1
- package/.next/server/chunks/_1pvqo-qnv-nqm._.js +1 -1
- package/.next/server/chunks/_1q65ai1_dwgjp._.js +1 -1
- package/.next/server/chunks/_1qcv4muwnx82-._.js +3 -0
- package/.next/server/chunks/_1s5-ldt8xhtpp._.js +1 -1
- package/.next/server/chunks/_1s55l1bx-1cxp._.js +1 -1
- package/.next/server/chunks/_1sp0xk1c5jx5r._.js +1 -1
- package/.next/server/chunks/_1srq5kxah38r6._.js +1 -1
- package/.next/server/chunks/_1t632kndbc0tj._.js +3 -0
- package/.next/server/chunks/_1tahh9ric8la3._.js +1 -1
- package/.next/server/chunks/_1tvl0cm629nyc._.js +1 -1
- package/.next/server/chunks/_1u6r2cuueltfn._.js +3 -0
- package/.next/server/chunks/{_1-6i59jd1zhly._.js → _1vddun9dxzaqo._.js} +11 -7
- package/.next/server/chunks/_1xpj9uk-9zhl8._.js +1 -1
- package/.next/server/chunks/_1xx5l4x084brt._.js +3 -0
- package/.next/server/chunks/_1z_ujac_e_65s._.js +1 -1
- package/.next/server/chunks/_1zbkha-v5mkk0._.js +3 -0
- package/.next/server/chunks/_1zvf_gki7-g0n._.js +1 -1
- package/.next/server/chunks/{_0r0hnbjdq-k9-._.js → _20snsd6f1xc63._.js} +2 -2
- package/.next/server/chunks/_20tjujotvor53._.js +1 -1
- package/.next/server/chunks/node_modules_zod_v4_classic_external_0qoqh-q5drsgn.js +4 -4
- package/.next/server/chunks/node_modules_zod_v4_classic_external_14kwlambv9opd.js +3 -0
- package/.next/server/chunks/node_modules_zod_v4_classic_external_17gmk506tz413.js +3 -0
- package/.next/server/chunks/node_modules_zod_v4_classic_external_1b_q1zc0x8d76.js +3 -0
- package/.next/server/chunks/node_modules_zod_v4_classic_external_1exeae-p81c94.js +3 -0
- package/.next/server/chunks/node_modules_zod_v4_classic_external_1giv406od1whf.js +3 -0
- package/.next/server/chunks/node_modules_zod_v4_classic_external_1wq100x5o7-hi.js +3 -0
- package/.next/server/chunks/node_modules_zod_v4_classic_external_1x8fhte3frhrw.js +3 -0
- package/.next/server/chunks/src_lib_0dxltm34zaclb._.js +3 -0
- package/.next/server/chunks/src_lib_0g4wu08m-gibu._.js +3 -0
- package/.next/server/chunks/src_lib_0l0j89xrerf8m._.js +3 -0
- package/.next/server/chunks/src_lib_0osgsup3n2ypg._.js +3 -0
- package/.next/server/chunks/src_lib_0so-2topfosjo._.js +3 -0
- package/.next/server/chunks/src_lib_0whd_w99i5vmm._.js +3 -0
- package/.next/server/chunks/src_lib_0z4je8wchtdws._.js +3 -0
- package/.next/server/chunks/src_lib_0zeksho3data7._.js +3 -0
- package/.next/server/chunks/src_lib_15op6xa369-51._.js +3 -0
- package/.next/server/chunks/src_lib_1_m3-y2t3e4xi._.js +143 -131
- package/.next/server/chunks/src_lib_1d0nldjpxxl8t._.js +3 -0
- package/.next/server/chunks/src_lib_1d99xj4d-pofa._.js +3 -0
- package/.next/server/chunks/src_lib_1v7rk87xys5cb._.js +3 -0
- package/.next/server/chunks/src_lib_1w0niu4i8hnaq._.js +3 -0
- package/.next/server/chunks/src_lib_ai_index_ts_0m0hlq4d9zy9i._.js +1 -1
- package/.next/server/chunks/src_lib_exam_1vzmn90_kh7eg._.js +3 -0
- package/.next/server/chunks/src_lib_exam_exam_ts_18c3t7bnr1z5k._.js +3 -0
- package/.next/server/chunks/src_lib_import_import-batches_ts_0nq3mn0v5uj28._.js +5 -0
- package/.next/server/chunks/src_lib_import_import-tasks_ts_01f-g_upv7llt._.js +3 -0
- package/.next/server/chunks/src_lib_mastery-status_ts_0e9jnp-14tby5._.js +3 -0
- package/.next/server/chunks/src_lib_minimax-code_checkin_ts_1j1mpuxc1vgoz._.js +1 -1
- package/.next/server/chunks/src_lib_notebook-scope_ts_06eipvr6xztlf._.js +3 -0
- package/.next/server/chunks/src_lib_question_0uw17e6at-i_h._.js +3 -0
- package/.next/server/chunks/src_lib_question_question-analysis_ts_1-3x2cfxlr3fs._.js +3 -0
- package/.next/server/chunks/src_lib_question_question-deduplication_ts_0gumctesi3szc._.js +3 -0
- package/.next/server/chunks/src_lib_recoverable-response_ts_00y54idhlj_0e._.js +3 -0
- package/.next/server/chunks/src_lib_schemas_error-items_ts_0vdof4417rd3y._.js +3 -0
- package/.next/server/chunks/src_lib_short-id_0adg7-htn2dq_._.js +3 -0
- package/.next/server/chunks/src_lib_svg-animation_ts_0-noskwg6sysg._.js +3 -0
- package/.next/server/chunks/src_lib_tags_retag_ts_09s5xwrzcy144._.js +3 -0
- package/.next/server/chunks/src_lib_tags_seed_1_ej3w-2450a0._.js +3 -0
- package/.next/server/chunks/src_lib_tts_19zri-v8-l_4u._.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__032-uso7x2eqk._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0ks-9bza_y-tn._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0te5kr0_7nmrv._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0uezowk-9l0x4._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0x4us8rfvt68s._.js +3 -0
- package/.next/server/chunks/ssr/{[root-of-the-server]__0mqo18mv_ooyq._.js → [root-of-the-server]__0xjcdrflb40xr._.js} +2 -2
- package/.next/server/chunks/ssr/{[root-of-the-server]__0x_ihemma9171._.js → [root-of-the-server]__0z7upqzuqtse6._.js} +2 -2
- package/.next/server/chunks/ssr/[root-of-the-server]__10y8dor72926b._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__12jk2bmesr4gc._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__1rrcp_77jpv98._.js +3 -0
- package/.next/server/chunks/ssr/_05k02824g2tpo._.js +3 -0
- package/.next/server/chunks/ssr/_0cmd1ubdlo_by._.js +1 -1
- package/.next/server/chunks/ssr/_0fp_p60hb9ex8._.js +3 -0
- package/.next/server/chunks/ssr/_0gsk7ce3mjc-h._.js +3 -0
- package/.next/server/chunks/ssr/_0haie2cnycj6w._.js +32 -0
- package/.next/server/chunks/ssr/{_01qu892bisrf0._.js → _0j-r3zhz2ucmg._.js} +2 -2
- package/.next/server/chunks/ssr/_0m1jjbrzk71io._.js +3 -0
- package/.next/server/chunks/ssr/_0mvuvawj5-r--._.js +1 -1
- package/.next/server/chunks/ssr/_0rd-teluypcd2._.js +1 -1
- package/.next/server/chunks/ssr/_0xlbgtld9_r3o._.js +3 -0
- package/.next/server/chunks/ssr/{_186fwf-hcr_ua._.js → _101w__e2w9gr0._.js} +2 -2
- package/.next/server/chunks/ssr/_126p5i1ynlykc._.js +3 -0
- package/.next/server/chunks/ssr/_127aw5h992s9d._.js +4 -0
- package/.next/server/chunks/ssr/_19hxsrrruepym._.js +1 -1
- package/.next/server/chunks/ssr/_1bhvzfiuz3s7j._.js +3 -0
- package/.next/server/chunks/ssr/_1d3pxsso6zv_w._.js +3 -0
- package/.next/server/chunks/ssr/_1hp3fw-gk2r-3._.js +3 -0
- package/.next/server/chunks/ssr/_1k45xb7mu-emd._.js +3 -0
- package/.next/server/chunks/ssr/_1lltqgoq4vqfe._.js +3 -0
- package/.next/server/chunks/ssr/_1ore70w45768b._.js +3 -0
- package/.next/server/chunks/ssr/{_1xv0q8o3g3r5d._.js → _1s3gqrczubor-._.js} +2 -2
- package/.next/server/chunks/ssr/_1t-o815u40ng2._.js +3 -0
- package/.next/server/chunks/ssr/{_1pdnzaad7hk0d._.js → _1x_zn17exkc4t._.js} +2 -2
- package/.next/server/chunks/ssr/_1yclgq1umgl4p._.js +4 -0
- package/.next/server/chunks/ssr/node_modules_08vtqzu_wfcb5._.js +3 -0
- package/.next/server/chunks/ssr/node_modules_0y-9u3ez_29oz._.js +3 -0
- package/.next/server/chunks/ssr/node_modules_109z-y1z_gtxg._.js +3 -0
- package/.next/server/chunks/ssr/node_modules_docx_dist_index_mjs_07znba89yz2vi._.js +3 -0
- package/.next/server/chunks/ssr/{node_modules_heic-to_dist_csp_heic-to_0byqh-lbfcigr.js → node_modules_heic-to_dist_csp_heic-to_1_jdv4y0yz52i.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_heic-to_dist_csp_heic-to_19_dv9gdzg_e7.js → node_modules_heic-to_dist_csp_heic-to_1zqrtb3kykd7q.js} +1 -1
- package/.next/server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_printer_mjs_0jbt269gi19_7._.js +3 -0
- package/.next/server/chunks/ssr/node_modules_pdfjs-dist_build_pdf_mjs_0z37jkkqfce7_._.js +47 -0
- package/.next/server/chunks/ssr/node_modules_read-excel-file_universal_index_0ayslfrutmja5.js +3 -0
- package/.next/server/chunks/ssr/node_modules_write-excel-file_browser_index_0l2-di6rcng1b.js +3 -0
- package/.next/server/chunks/ssr/node_modules_zod_v4_classic_external_0veaboc415l0m.js +3 -3
- package/.next/server/chunks/ssr/src_0_qzoo_03n_v-._.js +3 -0
- package/.next/server/chunks/ssr/src_130ww76krpws_._.js +1 -1
- package/.next/server/chunks/ssr/src_1gayunqs8u2e2._.js +1 -1
- package/.next/server/chunks/ssr/src_1nbi4yrww3r1m._.js +3 -0
- package/.next/server/chunks/ssr/{src_1jhctayt9gxoc._.js → src_1o5f_wr8vv-x0._.js} +2 -2
- package/.next/server/chunks/ssr/src_1rmus42s388dk._.js +3 -0
- package/.next/server/chunks/ssr/src_1seqsa8jiwu83._.js +3 -0
- package/.next/server/chunks/ssr/src_1xvnkkhvub372._.js +1 -1
- package/.next/server/chunks/ssr/src_app_error-items_[id]_page_tsx_04xwwdmyh7_9q._.js +1 -1
- package/.next/server/chunks/ssr/src_app_exams_[id]_page_tsx_0xcjflkgkwzgd._.js +1 -1
- package/.next/server/chunks/ssr/src_app_exams_[id]_print_page_tsx_1i-xvhk8ul1l1._.js +11 -6
- package/.next/server/chunks/ssr/src_app_exams_page_tsx_17_d4_gy2i1ds._.js +1 -1
- package/.next/server/chunks/ssr/src_app_import-batches_[id]_page_tsx_0mhg_vriwmkkw._.js +1 -1
- package/.next/server/chunks/ssr/src_app_import-tasks_[id]_page_tsx_0_grj11-jdqqc._.js +1 -1
- package/.next/server/chunks/ssr/src_app_import-tasks_page_tsx_01983hytm-x08._.js +1 -1
- package/.next/server/chunks/ssr/src_app_notebooks_[id]_add_page_tsx_179tow1ql6vc_._.js +1 -1
- package/.next/server/chunks/ssr/src_app_notebooks_[id]_page_tsx_08njm-5-txm8_._.js +1 -1
- package/.next/server/chunks/ssr/src_app_notebooks_page_tsx_1p9src5gnz_40._.js +1 -1
- package/.next/server/chunks/ssr/src_app_page_tsx_1chiuahujsxm1._.js +6 -1
- package/.next/server/chunks/ssr/src_app_print-preview_page_tsx_001yt-fzrj7tf._.js +1 -1
- package/.next/server/chunks/ssr/src_components_correction-editor_tsx_1p7z02t66tndx._.js +3 -3
- package/.next/server/chunks/ssr/src_components_error-list_error-item-card_tsx_1zsiqsrj-jjd7._.js +1 -1
- package/.next/server/chunks/ssr/src_components_exam_exam-figure-scale-bar_tsx_1dxk6lzvp_d28._.js +1 -1
- package/.next/server/chunks/ssr/src_components_import-tasks_import-task-card_tsx_01r47qh8ryspb._.js +1 -1
- package/.next/server/chunks/ssr/src_components_providers_tsx_09kw-mv3nb6xs._.js +15 -10
- package/.next/server/chunks/ssr/src_components_ui_switch_tsx_054tyo61pehla._.js +3 -0
- package/.next/server/chunks/ssr/src_lib_0773v8b5gb93o._.js +9 -0
- package/.next/server/chunks/ssr/src_lib_1qhs590-z9xnh._.js +9 -0
- package/.next/server/chunks/ssr/src_lib_1z8akixo3j8ti._.js +9 -0
- package/.next/server/chunks/ssr/src_lib_api-client_ts_04r2_ex-gua5i._.js +1 -1
- package/.next/server/chunks/ssr/src_lib_i18n_en_ts_08zkpwnoqey5s._.js +3 -0
- package/.next/server/chunks/ssr/src_lib_short-id_short-id-client_ts_03nnd3s0tat3l._.js +3 -0
- package/.next/server/middleware-build-manifest.js +3 -3
- package/.next/server/pages/500.html +1 -1
- package/.next/static/chunks/01zokrwums-fz.js +55 -0
- package/.next/static/chunks/{1pdlii0oox0-7.js → 037g92rz3qjm_.js} +1 -1
- package/.next/static/chunks/040et8v6_v-s6.js +1 -0
- package/.next/static/chunks/{2cfz0fumc6ghe.js → 045cs_rolnmjd.js} +1 -1
- package/.next/static/chunks/079f88y9j6sf-.js +45 -0
- package/.next/static/chunks/0g1lk2opoyqly.js +1 -0
- package/.next/static/chunks/0ge9zqd21b4xd.js +15 -0
- package/.next/static/chunks/0gu34v572tj7o.js +1 -0
- package/.next/static/chunks/0mnb66hvp3czv.js +2 -0
- package/.next/static/chunks/0mun2h4uaj4eh.js +1 -0
- package/.next/static/chunks/{02wft51kf3t9f.js → 0ovv_fq59i4y4.js} +1 -1
- package/.next/static/chunks/0sl4wa-ghh5g7.js +2 -0
- package/.next/static/chunks/0xbohpfp7x9jn.js +1 -0
- package/.next/static/chunks/{31-r0kqqw-wfd.js → 0xwz3h9d_e7kb.js} +1 -1
- package/.next/static/chunks/{0_xcjg47jv3ur.js → 1-qu_z3i5b8ul.js} +1 -1
- package/.next/static/chunks/10hk15u8jc7o1.js +38 -0
- package/.next/static/chunks/113lhm-f9le_y.js +2 -0
- package/.next/static/chunks/{42rupczfyygo1.js → 15zro21ycjjle.js} +1 -1
- package/.next/static/chunks/{3difxy8vzqlxn.js → 1fmrzsulv-ddd.js} +1 -1
- package/.next/static/chunks/{3fh32b9da9l_5.js → 1k2m_f0nu22fb.js} +1 -1
- package/.next/static/chunks/1uso50ewx5j8v.js +1 -0
- package/.next/static/chunks/1vtq_er8xir3c.css +3 -0
- package/.next/static/chunks/1y0cjudvnz4la.js +6 -0
- package/.next/static/chunks/20f7m1txoey_w.js +1 -0
- package/.next/static/chunks/21ghhv1twe4or.js +12 -0
- package/.next/static/chunks/23h8i_poncr7i.js +1 -0
- package/.next/static/chunks/28bc-wd48lcls.js +1 -0
- package/.next/static/chunks/2acga0__tn9yl.js +1 -0
- package/.next/static/chunks/2j3bisradcgfv.js +1 -0
- package/.next/static/chunks/2lhxk-8dpncxq.js +1 -0
- package/.next/static/chunks/2xww3vrggzkc3.js +15 -0
- package/.next/static/chunks/3-5otbeiq86n5.js +1 -0
- package/.next/static/chunks/31uxxyexyu66p.js +198 -0
- package/.next/static/chunks/33z7oz1790x50.js +1 -0
- package/.next/static/chunks/37309r9ttt-oa.js +1 -0
- package/.next/static/chunks/3_w-p8241f5rv.js +1 -0
- package/.next/static/chunks/{1uaqnxl-xshw6.js → 3f9t8cne6yfyl.js} +1 -1
- package/.next/static/chunks/{3wch6vphcivq5.js → 3j92h-4k4_o_f.js} +1 -1
- package/.next/static/chunks/3jkntcd5fwsid.js +1 -0
- package/.next/static/chunks/3ldaxwwj8i1r_.js +9 -0
- package/.next/static/chunks/3nq-bgq8lumv9.js +1 -0
- package/.next/static/chunks/{4441xuc3i-yb7.js → 3rnbnqcge4lza.js} +1 -1
- package/.next/static/chunks/3t9tbm4atwmw8.js +1 -0
- package/.next/static/chunks/3u-qpv02dkpmu.js +1 -0
- package/.next/static/chunks/438pvifm_o4g_.js +1 -0
- package/.next/static/media/pdf.worker.min.0zcq5mj7t-qsr.mjs +28 -0
- package/dist-scripts/scripts/rebuild-system-tags.js +11 -107
- package/dist-scripts/scripts/seed-chinese-primary.js +1 -1
- package/dist-scripts/src/lib/logger.js +1 -0
- package/dist-scripts/src/lib/tags/seed/rebuild.js +103 -0
- package/dist-scripts/src/lib/{seed-chinese-tags.js → tags/seed/seed-chinese-tags.js} +2 -1
- package/package.json +1 -1
- package/prisma/migrations/20261104033404_add_question_type/migration.sql +2 -0
- package/prisma/migrations/20261104040208_exam_question_score/migration.sql +2 -0
- package/prisma/migrations/20261104044246_exam_group_by_question_type/migration.sql +29 -0
- package/prisma/schema.prisma +7 -0
- package/prisma/seed.db +0 -0
- package/.next/server/chunks/[root-of-the-server]__012pau7crikop._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__01jc87mm42cex._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__01newhoirvvb2._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__02oqd6w58wymi._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__057qz9ucs7lib._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__06_pvs6rg70ri._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__06jad9cnzeci-._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0_uvtfu0yr-na._.js +0 -27
- package/.next/server/chunks/[root-of-the-server]__0_vinl1oembls._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0ahni9caaouya._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0aq01totjzgkp._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0b5mh_vi6e246._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0b5qyqwq6mk5v._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0b79cd6lae7ep._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0b_zf20owrv7l._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0cel4yig3zcho._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0cu5jz9b3f0i1._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0d818ux928r5h._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0dclcdg0hwxxj._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0e13o3ny66zb3._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0fg20m1i6x4y9._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0fhy87hr0_glw._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0fnte1x8xdn5o._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0glupa52ge074._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0gphporvvjc0d._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0gs7-3gi0pdws._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0i2mt6zjxbq--._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0ijq_d0gr5zo8._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0iqp1f0-yvbhw._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0jk-9m6ra-_um._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0jvusk64khb-a._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0k0c90ih7n0te._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0maxg52nxqrzi._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0ml-m3il4unb6._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0nkrql6or-tf_._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0nujsu6qbn-8o._.js +0 -27
- package/.next/server/chunks/[root-of-the-server]__0ovdiut1h8kkt._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0p5_lv_pjxr5f._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0p8wlug4uvmvi._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0ptn9j1rleieh._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0r7f34_38kmvk._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0u3m78xhq8b3l._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0ualui9b50ufh._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0ujfft7untkmq._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0vw7u-y__gk7p._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0w53aflmo1keg._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0wdjzoxwwh6bn._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0wx65sza19ou-._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0xj_313186tqc._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0yv_kznxz5qzn._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0zldj8zxo-hvc._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1-djdd7tnb-n7._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__109pj952qxtan._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__10gp75p89v9a2._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__111jxitdjhuoj._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__112w8xm57okk5._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__12h4ckd6f76pb._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__12ig6-5hpb7s-._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__13_k7w8nrx7ie._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__14c50fhuh_abo._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__14jpfgwnpc9gl._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__14m8fewwq1xs6._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__15qkqztuygnfg._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__166997w1su5wq._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__16xl11-irmhu3._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__19i64i9v32y8o._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__19jqc7tzna13p._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1asgy7sah0mo6._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1av1l48rnghpa._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1azaa45m60iqm._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1d159cxbdta68._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1dmp3ynxbcyjz._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1dom1le7wqh7d._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1e5tjfwab0exu._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1f-7-l2abs15s._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1fe2v2mv5-rgo._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1fepss7g57apj._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1ff3h7ockrpdf._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1g11271g0z55n._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1g6jrwm72xr8a._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1he8kk4382-0h._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1hk5kgctlp2wn._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1j44_t992y-1-._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1k4f33-z95_7c._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1k4pnhbw4rgzs._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1kx3a0dm7l2wl._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1lea5m7hl1n7f._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1m7pja8jp27eh._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1m_y4afrn94oy._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1ruzcenko2gi1._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1sf2oa2wkqf_0._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1t6aypqxgjkg_._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1tffqae521gxo._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1to25zgnk7xk-._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1u5c7agj_phnb._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1vbof6uu4he_-._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1wfhdwfdvc6j3._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1y0n2tg-0l636._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1zc0bmdyn1lg4._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1zqfz2rc4i280._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__207c97dbcdb0z._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__20cdqectwle3j._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__20dy4zclqbnw8._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__212aaltyh6kc2._.js +0 -3
- package/.next/server/chunks/_01y7-j4vx6cu5._.js +0 -3
- package/.next/server/chunks/_0_rhee7wb6tcg._.js +0 -3
- package/.next/server/chunks/_0at03z7sgwdv3._.js +0 -3
- package/.next/server/chunks/_0ge95_bkwrkmc._.js +0 -3
- package/.next/server/chunks/_0lj59y-ytysr5._.js +0 -3
- package/.next/server/chunks/_0v762_h-sp94d._.js +0 -3
- package/.next/server/chunks/_0vshwghrjetxu._.js +0 -3
- package/.next/server/chunks/_0z0zrluul2idw._.js +0 -3
- package/.next/server/chunks/_1a1oatugfke1p._.js +0 -3
- package/.next/server/chunks/_1ex6ovo_j2jzv._.js +0 -3
- package/.next/server/chunks/_1fgb9ve_nfat4._.js +0 -3
- package/.next/server/chunks/_1fsfy4c3rj36b._.js +0 -3
- package/.next/server/chunks/_1hc_es1a3cl6a._.js +0 -3
- package/.next/server/chunks/_1m-yyz-pl9-03._.js +0 -3
- package/.next/server/chunks/_1ns6y6y2tq8sh._.js +0 -3
- package/.next/server/chunks/_1yujnc0thk8ab._.js +0 -3
- package/.next/server/chunks/_211va-dk9519v._.js +0 -3
- package/.next/server/chunks/src_lib_0_g_0q-n01g-x._.js +0 -3
- package/.next/server/chunks/src_lib_0au5a9-5rxkab._.js +0 -3
- package/.next/server/chunks/src_lib_0d7kmnt7v2np8._.js +0 -3
- package/.next/server/chunks/src_lib_0fedb0fkc3km1._.js +0 -3
- package/.next/server/chunks/src_lib_0okewfjk6p2ci._.js +0 -3
- package/.next/server/chunks/src_lib_0ptvn4_15zxu0._.js +0 -3
- package/.next/server/chunks/src_lib_0rb6u4i7kn30r._.js +0 -3
- package/.next/server/chunks/src_lib_0svj7bkzyw9oc._.js +0 -3
- package/.next/server/chunks/src_lib_10is5pyogge95._.js +0 -3
- package/.next/server/chunks/src_lib_12j7n__96zd0q._.js +0 -3
- package/.next/server/chunks/src_lib_13hd5uoi-53hn._.js +0 -3
- package/.next/server/chunks/src_lib_1chbt4n9_vpoj._.js +0 -3
- package/.next/server/chunks/src_lib_1geq39r7va9gy._.js +0 -3
- package/.next/server/chunks/src_lib_1h4xeb9lyx31r._.js +0 -3
- package/.next/server/chunks/src_lib_1mno8g5cqmaet._.js +0 -3
- package/.next/server/chunks/src_lib_1qvj-3jt4jbq7._.js +0 -3
- package/.next/server/chunks/src_lib_1smlosz37xitx._.js +0 -3
- package/.next/server/chunks/src_lib_1squodf4swo_a._.js +0 -3
- package/.next/server/chunks/src_lib_1uei_xjjj3g7_._.js +0 -3
- package/.next/server/chunks/src_lib_1vt5vsj108u_q._.js +0 -3
- package/.next/server/chunks/src_lib_api-errors_ts_1gfd4ojz7efro._.js +0 -3
- package/.next/server/chunks/src_lib_exam_ts_0d3a4q4r41hcf._.js +0 -3
- package/.next/server/chunks/src_lib_figure-scale_ts_215n0ebzz7mr7._.js +0 -3
- package/.next/server/chunks/src_lib_import-batches_ts_0aekmggdwo_9-._.js +0 -3
- package/.next/server/chunks/src_lib_import-tasks_ts_1f4ejsy00-v1t._.js +0 -3
- package/.next/server/chunks/src_lib_question-analysis_ts_15_8r_pxmtd06._.js +0 -3
- package/.next/server/chunks/src_lib_question-deduplication_ts_1p1bik-vwl9ue._.js +0 -3
- package/.next/server/chunks/src_lib_retag_ts_0eu8ld_86kt3a._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__00_c9kpvx5075._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__03208_liub81h._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__08j-3_6cl3898._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__0ht0nkzazbnl9._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__0r18qmblwuijm._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__0sb3jhytba2xr._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__1o5pa8m50qyqa._.js +0 -3
- package/.next/server/chunks/ssr/_01rfvhncgnpvl._.js +0 -3
- package/.next/server/chunks/ssr/_0qgs--x99c558._.js +0 -3
- package/.next/server/chunks/ssr/_0w83jztp72o20._.js +0 -3
- package/.next/server/chunks/ssr/_0zacgi5-qgqwr._.js +0 -3
- package/.next/server/chunks/ssr/_11820i-k62560._.js +0 -3
- package/.next/server/chunks/ssr/_1a4u3f5sc05kb._.js +0 -3
- package/.next/server/chunks/ssr/_1j3yr2arbxd6a._.js +0 -3
- package/.next/server/chunks/ssr/_1qgg_ll5hkjaf._.js +0 -3
- package/.next/server/chunks/ssr/_1ujx-n3muyaxs._.js +0 -32
- package/.next/server/chunks/ssr/_1ux6eqqkupo6v._.js +0 -3
- package/.next/server/chunks/ssr/node_modules_02k42jp0_uoqr._.js +0 -3
- package/.next/server/chunks/ssr/node_modules_17lx40fyvpom3._.js +0 -3
- package/.next/server/chunks/ssr/node_modules_react-image-crop_dist_index_0khmp4mv3j9zr.js +0 -3
- package/.next/server/chunks/ssr/src_0z149pjrheeb7._.js +0 -3
- package/.next/server/chunks/ssr/src_1vhiktxz2_jj3._.js +0 -3
- package/.next/server/chunks/ssr/src_components_exam_exam-status-badge_tsx_0rozdbhlqsq71._.js +0 -3
- package/.next/server/chunks/ssr/src_components_print-preview_answer-space-control_tsx_02kuswyxklzp_._.js +0 -3
- package/.next/server/chunks/ssr/src_lib_0-wirad5ziskp._.js +0 -6
- package/.next/server/chunks/ssr/src_lib_1vv0-aje_e-zh._.js +0 -6
- package/.next/server/chunks/ssr/src_lib_short-id-client_ts_1v7n6pg50kguj._.js +0 -3
- package/.next/static/chunks/0-hqh6zs3hidn.js +0 -12
- package/.next/static/chunks/02xikk3wlibg1.js +0 -1
- package/.next/static/chunks/0e6ximjg-pqgt.js +0 -1
- package/.next/static/chunks/0wcwopwk4us6h.js +0 -9
- package/.next/static/chunks/0x9-b30mhne-_.js +0 -1
- package/.next/static/chunks/0y5zywo-ll2w3.js +0 -1
- package/.next/static/chunks/17-num1x7o1m2.js +0 -1
- package/.next/static/chunks/1746y345zti-9.js +0 -33
- package/.next/static/chunks/17dk_oppf9-hv.js +0 -12
- package/.next/static/chunks/1egd1e1483_lj.js +0 -1
- package/.next/static/chunks/1o_q928xcfjs3.js +0 -1
- package/.next/static/chunks/25flylmb_qz91.js +0 -1
- package/.next/static/chunks/2924d0kl-68z7.js +0 -193
- package/.next/static/chunks/2cpsg6e2vg7fx.css +0 -3
- package/.next/static/chunks/2ebh36q8lvor_.js +0 -1
- package/.next/static/chunks/2j0linvpqza7u.js +0 -55
- package/.next/static/chunks/2qqyq-iqkv_oa.js +0 -9
- package/.next/static/chunks/2r5aeenvfl93p.js +0 -1
- package/.next/static/chunks/38vt_4ntvy02e.js +0 -1
- package/.next/static/chunks/3c3cp7uzfhnyr.js +0 -1
- package/.next/static/chunks/3gy-_kb72v5lr.js +0 -1
- package/.next/static/chunks/3oz37kz8n7y3b.js +0 -1
- package/.next/static/chunks/3s_fq__cff-ps.js +0 -2
- package/.next/static/chunks/3tv07cyoo_hat.js +0 -1
- /package/.next/static/{E10D9dv115hLNvX7vE6qA → bFQJMw9c1NJ6NSOY8pN2N}/_buildManifest.js +0 -0
- /package/.next/static/{E10D9dv115hLNvX7vE6qA → bFQJMw9c1NJ6NSOY8pN2N}/_clientMiddlewareManifest.js +0 -0
- /package/.next/static/{E10D9dv115hLNvX7vE6qA → bFQJMw9c1NJ6NSOY8pN2N}/_ssgManifest.js +0 -0
- /package/dist-scripts/src/lib/{tag-data → tags/data}/biology.js +0 -0
- /package/dist-scripts/src/lib/{tag-data → tags/data}/chemistry.js +0 -0
- /package/dist-scripts/src/lib/{tag-data → tags/data}/chinese.js +0 -0
- /package/dist-scripts/src/lib/{tag-data → tags/data}/english.js +0 -0
- /package/dist-scripts/src/lib/{tag-data → tags/data}/geography.js +0 -0
- /package/dist-scripts/src/lib/{tag-data → tags/data}/history.js +0 -0
- /package/dist-scripts/src/lib/{tag-data → tags/data}/index.js +0 -0
- /package/dist-scripts/src/lib/{tag-data → tags/data}/math-gaosi.js +0 -0
- /package/dist-scripts/src/lib/{tag-data → tags/data}/math.js +0 -0
- /package/dist-scripts/src/lib/{tag-data → tags/data}/physics.js +0 -0
- /package/dist-scripts/src/lib/{tag-data → tags/data}/politics.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,[728298,(e,t,r)=>{e.i(247167),Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useRouterBFCache",{enumerable:!0,get:function(){return l}});let n=e.r(271645);function l(e,t,r){let[l,a]=(0,n.useState)(()=>({tree:e,renderTree:t,stateKey:r,next:null}));if(l.tree===e)return l;let u={tree:e,renderTree:t,stateKey:r,next:null},o=1,d=l,i=u;for(;null!==d&&o<1;){if(d.stateKey===r){i.next=d.next;break}{o++;let e={tree:d.tree,renderTree:d.renderTree,stateKey:d.stateKey,next:null};i.next=e,i=e}d=d.next}return a(u),u}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},15783,(e,t,r)=>{Object.defineProperty(r,"__esModule",{value:!0});var n={createClientParams:function(){return a.createRenderParamsFromClient},createClientSearchParams:function(){return u.createRenderSearchParamsFromClient}};for(var l in n)Object.defineProperty(r,l,{enumerable:!0,get:n[l]});let a=e.r(797689),u=e.r(266996);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},347257,(e,t,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"ClientPageRoot",{enumerable:!0,get:function(){return i}});let n=e.r(843476),l=e.r(8372),a=e.r(271645),u=e.r(33906),o=e.r(261994),d=e.r(15783);function i({Component:e,serverProvidedParams:t}){let r,s;if(null!==t)r=t.searchParams,s=t.params;else{let e=(0,a.use)(l.LayoutRouterContext);s=null!==e?e.parentParams:{},r=(0,u.urlSearchParamsToParsedUrlQuery)((0,a.use)(o.SearchParamsContext))}let f=(0,d.createClientSearchParams)(r),c=(0,d.createClientParams)(s);return(0,n.jsx)(e,{params:c,searchParams:f})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},92825,(e,t,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"ClientSegmentRoot",{enumerable:!0,get:function(){return o}});let n=e.r(843476),l=e.r(8372),a=e.r(271645),u=e.r(15783);function o({Component:e,slots:t,serverProvidedParams:r}){let d;if(null!==r)d=r.params;else{let e=(0,a.use)(l.LayoutRouterContext);d=null!==e?e.parentParams:{}}let i=(0,u.createClientParams)(d);return(0,n.jsx)(e,{...t,params:i})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},768017,(e,t,r)=>{e.i(247167),Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"HTTPAccessFallbackBoundary",{enumerable:!0,get:function(){return s}});let n=e.r(190809),l=e.r(843476),a=n._(e.r(271645)),u=e.r(590373),o=e.r(754394),d=e.r(8372);class i extends a.default.Component{constructor(e){super(e),this.state={triggeredStatus:void 0,previousPathname:e.pathname}}componentDidCatch(){}static getDerivedStateFromError(e){if((0,o.isHTTPAccessFallbackError)(e))return{triggeredStatus:(0,o.getAccessFallbackHTTPStatus)(e)};throw e}static getDerivedStateFromProps(e,t){return e.pathname!==t.previousPathname&&t.triggeredStatus?{triggeredStatus:void 0,previousPathname:e.pathname}:{triggeredStatus:t.triggeredStatus,previousPathname:e.pathname}}render(){let{notFound:e,forbidden:t,unauthorized:r,children:n}=this.props,{triggeredStatus:a}=this.state,u={[o.HTTPAccessErrorStatus.NOT_FOUND]:e,[o.HTTPAccessErrorStatus.FORBIDDEN]:t,[o.HTTPAccessErrorStatus.UNAUTHORIZED]:r};if(a){let d=a===o.HTTPAccessErrorStatus.NOT_FOUND&&e,i=a===o.HTTPAccessErrorStatus.FORBIDDEN&&t,s=a===o.HTTPAccessErrorStatus.UNAUTHORIZED&&r;return d||i||s?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("meta",{name:"robots",content:"noindex"}),!1,u[a]]}):n}return n}}function s({notFound:e,forbidden:t,unauthorized:r,children:n}){let o=(0,u.useUntrackedPathname)(),f=(0,a.useContext)(d.MissingSlotContext);return e||t||r?(0,l.jsx)(i,{pathname:o,notFound:e,forbidden:t,unauthorized:r,missingSlots:f,children:n}):(0,l.jsx)(l.Fragment,{children:n})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},877694,(e,t,r)=>{Object.defineProperty(r,"__esModule",{value:!0});var n={InstantValidationBoundaryContext:function(){return a.InstantValidationBoundaryContext},PlaceValidationBoundaryBelowThisLevel:function(){return a.PlaceValidationBoundaryBelowThisLevel},RenderValidationBoundaryAtThisLevel:function(){return a.RenderValidationBoundaryAtThisLevel},SlotMarker:function(){return a.SlotMarker}};for(var l in n)Object.defineProperty(r,l,{enumerable:!0,get:n[l]});let a=e.r(722976);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},722976,(e,t,r)=>{Object.defineProperty(r,"__esModule",{value:!0});var n={InstantValidationBoundaryContext:function(){return a},PlaceValidationBoundaryBelowThisLevel:function(){return u},RenderValidationBoundaryAtThisLevel:function(){return o},SlotMarker:function(){return d}};for(var l in n)Object.defineProperty(r,l,{enumerable:!0,get:n[l]});let a=null,u=null,o=null,d=null;("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},339756,(e,t,r)=>{e.i(247167),Object.defineProperty(r,"__esModule",{value:!0});var n={LoadingBoundaryProvider:function(){return x},default:function(){return T}};for(var l in n)Object.defineProperty(r,l,{enumerable:!0,get:n[l]});let a=e.r(190809),u=e.r(843476),o=a._(e.r(271645)),d=e.r(8372),i=e.r(201244),s=e.r(972383),f=e.r(491915),c=e.r(358442),p=e.r(768017);e.r(877694);let m=e.r(127828),y=e.r(728298);e.r(174180);let b=e.r(261994),P=e.r(33906),h=e.r(924988);function v(e,t,r){let n=e.getClientRects();if(0===n.length)return 0;let l=1/0;for(let e=0;e<n.length;e++){let t=n[e];t.top<l&&(l=t.top)}return l>=r()&&l<=t?1:2}function g(e){let t=o.default.useRef(null);return(0,o.useLayoutEffect)(()=>{let{scrollRef:r,renderTree:n}=e,l=r.forceScroll?r.scrollRef:n.data.scrollRef;if(null===l||!l.current)return;let a=null,u=r.hashFragment;if(u){if(null===(a="top"===u?document.body:document.getElementById(u)??document.getElementsByName(u)[0]??null)){l.current=!1,r.onlyHashChange=!1,r.hashFragment=null;return}}else a=t.current;if(null===a)return;let o=!1;(0,f.disableSmoothScrollDuringRouteTransition)(()=>{let e=document.documentElement,t=null,r=null,n=null,d=()=>{var r;let l,a;return null===n&&(r=t,n=!Number.isFinite(a=Number.parseFloat(l=getComputedStyle(e).scrollPaddingTop))||a<0?0:l.endsWith("px")?a:l.endsWith("%")?a/100*r:0),n};(u||(t=e.clientHeight,0!==(r=v(a,t,d))))&&((o=!0,l.current=!1,u)?a.scrollIntoView():1!==r&&(e.scrollTop=0,2===v(a,t,d)&&a.scrollIntoView()))},{dontForceLayout:!0,onlyHashChange:r.onlyHashChange}),o&&(r.onlyHashChange=!1,r.hashFragment=null)},void 0),(0,u.jsx)(o.Fragment,{ref:t,children:e.children})}function j({children:e,renderTree:t}){let r=(0,o.useContext)(d.GlobalLayoutRouterContext);if(!r)throw Error("invariant global layout router not mounted");return(0,u.jsx)(g,{scrollRef:r.scrollRef,renderTree:t,children:e})}function _({tree:e,segmentPath:t,debugNameContext:r,renderTree:n,params:l,url:a,isActive:s}){let f,c=(0,o.useContext)(d.GlobalLayoutRouterContext);if((0,o.useContext)(b.NavigationPromisesContext),!c)throw Error("invariant global layout router not mounted");let p=null!==n.data.prefetchRsc?n.data.prefetchRsc:n.data.rsc,m=(0,o.useDeferredValue)(n.data.rsc,p);if((0,h.isDeferredRsc)(m)){let e=(0,o.use)(m);null===e&&(0,o.use)(i.unresolvedThenable),f=e}else null===m&&(0,o.use)(i.unresolvedThenable),f=m;let y=f;return(0,u.jsx)(d.LayoutRouterContext.Provider,{value:{parentTree:e,parentRenderTree:n,parentSegmentPath:t,parentParams:l,parentLoadingData:null,debugNameContext:r,url:a,isActive:s},children:y})}function x({loading:e,children:t}){let r=(0,o.use)(d.LayoutRouterContext);return null===r?t:(0,u.jsx)(d.LayoutRouterContext.Provider,{value:{parentTree:r.parentTree,parentRenderTree:r.parentRenderTree,parentSegmentPath:r.parentSegmentPath,parentParams:r.parentParams,parentLoadingData:e,debugNameContext:r.debugNameContext,url:r.url,isActive:r.isActive},children:t})}function O({name:e,loading:t,children:r}){if(null!==t){let n=t[0],l=t[1],a=t[2];return(0,u.jsx)(o.Suspense,{name:e,fallback:(0,u.jsxs)(u.Fragment,{children:[l,a,n]}),children:r})}return(0,u.jsx)(u.Fragment,{children:r})}function T({parallelRouterKey:e,error:t,errorStyles:r,errorScripts:n,templateStyles:l,templateScripts:a,template:f,notFound:b,forbidden:h,unauthorized:v,segmentViewBoundaries:g}){let x=(0,o.useContext)(d.LayoutRouterContext);if(!x)throw Error("invariant expected layout router to be mounted");let{parentTree:C,parentRenderTree:M,parentSegmentPath:R,parentParams:S,parentLoadingData:F,url:B,isActive:A,debugNameContext:E}=x,L=C[0],H=null===R?[e]:R.concat([L,e]),D=C[1][e],N=M.slots?.get(e);(void 0===D||void 0===N)&&(0,o.use)(i.unresolvedThenable);let k=D[0],w=(0,m.createSegmentKey)(k),V=(0,y.useRouterBFCache)(D,N,w),I=[];do{let e=V.tree,o=V.renderTree,i=V.stateKey,m=e[0],y=S;if(Array.isArray(m)){let e=m[0],t=m[1],r=m[2],n=(0,P.getParamValueFromCacheKey)(t,r);null!==n&&(y={...S,[e]:n})}let g=function(e){if("/"===e)return"/";if("string"==typeof e)if("(__SLOT__)"===e)return;else return e+"/";return e[1]+"/"}(m),x=g??E,T=void 0===g?void 0:E,C=(0,u.jsxs)(j,{renderTree:o,children:[(0,u.jsx)(s.ErrorBoundary,{errorComponent:t,errorStyles:r,errorScripts:n,children:(0,u.jsx)(O,{name:T,loading:F,children:(0,u.jsx)(p.HTTPAccessFallbackBoundary,{notFound:b,forbidden:h,unauthorized:v,children:(0,u.jsxs)(c.RedirectBoundary,{children:[(0,u.jsx)(_,{url:B,tree:e,params:y,renderTree:o,segmentPath:H,debugNameContext:x,isActive:A&&i===w}),null]})})})}),null]}),M=(0,u.jsxs)(d.TemplateContext.Provider,{value:C,children:[l,a,f]},i);I.push(M),V=V.next}while(null!==V)return I}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},837457,(e,t,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return o}});let n=e.r(190809),l=e.r(843476),a=n._(e.r(271645)),u=e.r(8372);function o(){let e=(0,a.useContext)(u.TemplateContext);return(0,l.jsx)(l.Fragment,{children:e})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},797689,(e,t,r)=>{e.i(247167),Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createRenderParamsFromClient",{enumerable:!0,get:function(){return n}});let n=e.r(806831).createRenderParamsFromClient;("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},806831,(e,t,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createRenderParamsFromClient",{enumerable:!0,get:function(){return l}});let n=new WeakMap;function l(e){let t=n.get(e);if(t)return t;let r=Promise.resolve(e);return r.status="fulfilled",r.value=e,n.set(e,r),r}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},266996,(e,t,r)=>{e.i(247167),Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createRenderSearchParamsFromClient",{enumerable:!0,get:function(){return n}});let n=e.r(793504).createRenderSearchParamsFromClient;("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},793504,(e,t,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createRenderSearchParamsFromClient",{enumerable:!0,get:function(){return l}});let n=new WeakMap;function l(e){let t=n.get(e);if(t)return t;let r=Promise.resolve(e);return r.status="fulfilled",r.value=e,n.set(e,r),r}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},27201,(e,t,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"IconMark",{enumerable:!0,get:function(){return l}});let n=e.r(843476),l=()=>"u">typeof window?null:(0,n.jsx)("meta",{name:"«nxt-icon»"})},491915,(e,t,r)=>{function n(e,t={}){if(t.onlyHashChange)return void e();let r=document.documentElement;if("smooth"!==r.dataset.scrollBehavior)return void e();let l=r.style.scrollBehavior;r.style.scrollBehavior="auto",t.dontForceLayout||r.getClientRects(),e(),r.style.scrollBehavior=l}e.i(247167),Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"disableSmoothScrollDuringRouteTransition",{enumerable:!0,get:function(){return n}})}],837639,e=>{e.v(t=>Promise.all(["static/chunks/438pvifm_o4g_.js"].map(t=>e.l(t))).then(()=>t(233041)))}]);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
(()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,314381,3198,e=>{var t=e.i(456420);let s={name:"box",size:24,node:[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]]};s.node;let r=(0,t.f)(s);e.s(["f",0,r],314381);var a=e.i(843476),i=e.i(271645),n=e.i(632781);let l={name:"maximize-2",size:24,node:[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]]};l.node;let o=(0,t.f)(l),d={name:"minimize-2",size:24,node:[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]]};d.node;let c=(0,t.f)(d);var u=e.i(395925),m=e.i(741120),f=e.i(759659),h=e.i(519455),g=e.i(111110),x=e.i(294114),p=e.i(201276),v=e.i(113381);let y=null;function j(e,t,s){let r=e?.firstElementChild;r&&(r.style.width="100%",r.style.height=`${s}px`,t?.setSize(e?.offsetWidth||r.offsetWidth||800,s))}function b(e,t){let s=(0,v.L)(e,t);for(let e of s)p.V.warn("[GGB]","命令执行失败",{...e});return s.map(e=>e.command+":"+e.message).join("\n")||void 0}e.s(["f",0,function({commands:e,height:t=700,showToolBar:s=!1,showAlgebraInput:r=!1,showMenuBar:l=!1,className:d="",onRegenerate:w,onDelete:k}){let{t:N}=(0,g.b)(),S=(0,i.useRef)(null),_=(0,i.useRef)(null),T=(0,i.useRef)(void 0),A=(0,i.useId)(),E=(0,i.useRef)(`ggb-${A.replace(/[^a-zA-Z0-9_-]/g,"")}`),[I,C]=(0,i.useState)(!0),[R,z]=(0,i.useState)(null),[V,O]=(0,i.useState)(!0),[$,M]=(0,i.useState)(!1),[L,P]=(0,i.useState)(!1),q=(0,i.useMemo)(()=>(0,v.i)(e),[e]);(0,i.useEffect)(()=>{if(0===q.length)return;let e=!1,a=E.current,i=S.current;return(y||(y=new Promise((e,t)=>{if(window.GGBApplet)return void e();let s=document.createElement("script");s.src="https://www.geogebra.org/apps/deployggb.js",s.async=!0,s.onload=()=>e(),s.onerror=()=>{y=null,t(Error("Failed to load GeoGebra"))},document.head.appendChild(s)}))).then(()=>{if(e)return;let n=window.GGBApplet;if(!n){z(N.geogebra.notLoaded),C(!1);return}if(i){i.innerHTML=`<div id="${a}" style="width:100%;height:${t}px"></div>`;try{new n({appName:"classic",width:"100%",height:t,showToolBar:s,showAlgebraInput:r,showMenuBar:l,showResetIcon:!0,enableRightClick:!0,enableShiftDragZoom:!0,language:"zh",appletOnLoad:s=>{e||(_.current=s,j(i,s,t),T.current=b(s,q),C(!1))}},!0).inject(a)}catch(t){p.V.error("[GGB]","Init failed",{error:t}),e||(z(N.geogebra.initFailed),C(!1))}}}).catch(t=>{p.V.error("[GGB]","Script load failed",{error:t}),e||(z(N.geogebra.scriptFailed),C(!1))}),()=>{e=!0;try{let e=_.current;e?.remove&&e.remove()}catch(e){p.V.warn("[GGB]","Cleanup failed",{error:e})}_.current=null,i&&(i.innerHTML="")}},[q,s,r,l]),(0,i.useEffect)(()=>{j(S.current,_.current,V?700:t)},[V,t]);let G=(0,i.useCallback)(()=>{let e=_.current;if(e)try{e.resetConstruction(),setTimeout(()=>{_.current&&(T.current=b(_.current,q))},300)}catch(e){p.V.warn("[GGB]","Reset failed",{error:e})}},[q]),F=(0,i.useCallback)(async()=>{if(w&&!$){M(!0);try{await w(T.current)}finally{M(!1)}}},[w,$]),U=(0,i.useCallback)(async()=>{if(k&&!L&&await (0,x.u)(N.geogebra.confirmDelete,{destructive:!0})){P(!0);try{await k()}catch{x.c.error(N.geogebra.deleteFailed)}finally{P(!1)}}},[k,L,N]);return 0===q.length?null:(0,a.jsxs)("div",{className:`relative rounded-lg border bg-card ${d}`,children:[(0,a.jsxs)("div",{className:"flex items-center justify-between px-3 py-2 border-b bg-muted/30",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{className:"text-xs font-medium text-muted-foreground",children:N.geogebra.title}),I&&(0,a.jsx)(n.f,{className:"h-3 w-3 animate-spin text-muted-foreground"})]}),(0,a.jsxs)("div",{className:"flex items-center gap-1",children:[w&&(0,a.jsxs)(h.f,{variant:"ghost",size:"sm",className:"h-7 px-2 text-xs gap-1",onClick:F,title:N.geogebra.regenerate,disabled:$||I,children:[$?(0,a.jsx)(n.f,{className:"h-3.5 w-3.5 animate-spin"}):(0,a.jsx)(m.f,{className:"h-3.5 w-3.5"}),(0,a.jsx)("span",{children:N.geogebra.regenerate})]}),k&&(0,a.jsxs)(h.f,{variant:"ghost",size:"sm",className:"h-7 px-2 text-xs gap-1 text-destructive hover:text-destructive",onClick:U,title:N.geogebra.delete,disabled:L||$,children:[L?(0,a.jsx)(n.f,{className:"h-3.5 w-3.5 animate-spin"}):(0,a.jsx)(f.f,{className:"h-3.5 w-3.5"}),(0,a.jsx)("span",{children:N.geogebra.delete})]}),(0,a.jsx)(h.f,{variant:"ghost",size:"sm",className:"h-7 w-7 p-0",onClick:G,title:N.geogebra.reset,disabled:I,children:(0,a.jsx)(u.f,{className:"h-3.5 w-3.5"})}),(0,a.jsx)(h.f,{variant:"ghost",size:"sm",className:"h-7 w-7 p-0",onClick:()=>O(e=>!e),title:V?N.geogebra.shrink:N.geogebra.enlarge,children:V?(0,a.jsx)(c,{className:"h-3.5 w-3.5"}):(0,a.jsx)(o,{className:"h-3.5 w-3.5"})})]})]}),(0,a.jsx)("div",{ref:S,style:{width:"100%"}}),I&&(0,a.jsx)("div",{className:"absolute inset-0 z-10 flex items-center justify-center bg-background/80 rounded-b-lg",style:{top:37},children:(0,a.jsxs)("div",{className:"flex flex-col items-center gap-2",children:[(0,a.jsx)(n.f,{className:"h-6 w-6 animate-spin text-primary"}),(0,a.jsx)("span",{className:"text-sm text-muted-foreground",children:N.geogebra.loading})]})}),R&&(0,a.jsx)("div",{className:"flex items-center justify-center text-sm text-destructive",style:{minHeight:t},children:R})]})}],3198)},399847,e=>{var t=e.i(456420);let s={name:"circle-alert",size:24,node:[["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"}]],aliases:["alert-circle"]};s.node;let r=(0,t.f)(s);e.s(["f",0,r],399847)},615568,168148,e=>{var t=e.i(456420);let s={name:"pencil-line",size:24,node:[["path",{d:"M13 21h8",key:"1jsn5i"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}],["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]]};s.node;let r=(0,t.f)(s);e.s(["f",0,r],615568);var a=e.i(843476),i=e.i(271645),n=e.i(30030),l=e.i(248425),o=Object.defineProperty,d=(e,t)=>o(e,"name",{value:t,configurable:!0}),c="Progress",[u,m]=(0,n.f)(c),[f,h]=u(c),g=i.forwardRef(d(function(e,t){let{__scopeProgress:s,value:r=null,max:i,getValueLabel:n=p,...o}=e;(i||0===i)&&!j(i)&&console.error(w(`${i}`,"Progress"));let d=j(i)?i:100;null===r||b(r,d)||console.error(k(`${r}`,"Progress"));let c=b(r,d)?r:null,u=y(c)?n(c,d):void 0;return(0,a.jsx)(f,{scope:s,value:c,max:d,children:(0,a.jsx)(l.V.div,{"aria-valuemax":d,"aria-valuemin":0,"aria-valuenow":y(c)?c:void 0,"aria-valuetext":u,role:"progressbar","data-state":v(c,d),"data-value":c??void 0,"data-max":d,...o,ref:t})})},"Progress")),x=i.forwardRef(d(function(e,t){let{__scopeProgress:s,...r}=e,i=h("ProgressIndicator",s);return(0,a.jsx)(l.V.div,{"data-state":v(i.value,i.max),"data-value":i.value??void 0,"data-max":i.max,...r,ref:t})},"ProgressIndicator"));function p(e,t){return`${Math.round(e/t*100)}%`}function v(e,t){return null==e?"indeterminate":e===t?"complete":"loading"}function y(e){return"number"==typeof e}function j(e){return y(e)&&!isNaN(e)&&e>0}function b(e,t){return y(e)&&!isNaN(e)&&e<=t&&e>=0}function w(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`100\`.`}function k(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
|
|
2
|
+
- a positive number
|
|
3
|
+
- less than the value passed to \`max\` (or 100 if no \`max\` prop is set)
|
|
4
|
+
- \`null\` or \`undefined\` if the progress is indeterminate.
|
|
5
|
+
|
|
6
|
+
Defaulting to \`null\`.`}d(p,"defaultGetValueLabel"),d(v,"getProgressState"),d(y,"isNumber"),d(j,"isValidMaxNumber"),d(b,"isValidValueNumber"),d(w,"getInvalidMaxError"),d(k,"getInvalidValueError");var N=e.i(975157);let S=i.forwardRef(({className:e,value:t,...s},r)=>(0,a.jsx)(g,{ref:r,value:t,className:(0,N.f)("relative h-4 w-full overflow-hidden rounded-full bg-secondary",e),...s,children:(0,a.jsx)(x,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));S.displayName=g.displayName,e.s(["f",0,S],168148)},856522,e=>{var t=e.i(456420);let s={name:"save",size:24,node:[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]};s.node;let r=(0,t.f)(s);e.s(["f",0,r],856522)},786563,e=>{var t=e.i(456420);let s={name:"star",size:24,node:[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]};s.node;let r=(0,t.f)(s);e.s(["f",0,r],786563)},866531,497346,183444,e=>{var t=e.i(843476),s=e.i(271645),r=e.i(632781),a=e.i(741120),i=e.i(856522),n=e.i(314381),l=e.i(3198),o=e.i(519455),d=e.i(111110),c=e.i(41931),u=e.i(294114),m=e.i(201276);function f({data:e,onChange:a}){let{t:i}=(0,d.b)(),[h,g]=(0,s.useState)(!1),[x,p]=(0,s.useState)(null),v=async()=>{if(!e.questionText.trim())return void u.c.warning(i.editor.enterQuestionFirst||"Please enter question text first");if(!e.answerText.trim())return void u.c.warning(i.geogebra.answerRequired);g(!0),p(null);try{let t=await c.k.post("/api/geogebra-analyze",{questionText:e.questionText,answerText:e.answerText,analysis:e.analysis},{timeout:18e4,recoverable:!0});t.suitable&&t.commands&&t.commands.length>0?a({geogebraCommands:JSON.stringify(t.commands)}):p(t.description||i.geogebra.notSuitable)}catch(e){m.V.error("[CorrectionEditor]","GeoGebra analysis failed",{error:e}),p(i.geogebra.analyzeFailed)}finally{g(!1)}};return e.geogebraCommands?(0,t.jsx)(l.f,{commands:e.geogebraCommands,height:350,onRegenerate:v,onDelete:async()=>a({geogebraCommands:void 0})}):e.questionText.trim()&&e.answerText.trim()?(0,t.jsxs)("div",{className:"rounded-lg border border-dashed p-4",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,t.jsx)(n.f,{className:"h-4 w-4"}),(0,t.jsx)("span",{children:i.geogebra.title})]}),(0,t.jsx)(o.f,{variant:"outline",size:"sm",onClick:v,disabled:h,children:h?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.f,{className:"mr-2 h-4 w-4 animate-spin"}),i.geogebra.analyzing]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.f,{className:"mr-2 h-4 w-4"}),i.geogebra.generate]})})]}),x&&(0,t.jsx)("p",{className:"text-xs text-muted-foreground mt-2",children:x}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground mt-2",children:i.geogebra.hint})]}):null}var h=e.i(469937),g=e.i(28342),x=e.i(438465),p=e.i(674166),v=e.i(110204),y=e.i(967489),j=e.i(401280);function b({data:e,paperLevel:s,onChange:r}){let{t:a}=(0,d.b)();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(v.f,{children:a.editor.selectNotebook||"Select Notebook"}),(0,t.jsx)(x.f,{value:e.subjectId,onChange:e=>r({subjectId:e})})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(v.f,{children:a.questionType.label||"Question Type"}),(0,t.jsxs)(y.d,{value:e.questionType||"",onValueChange:e=>r({questionType:e===j.O?null:e}),children:[(0,t.jsx)(y.P,{children:(0,t.jsx)(y.U,{placeholder:a.questionType.notSet||"Not set"})}),(0,t.jsxs)(y.r,{children:[(0,t.jsx)(y.T,{value:j.O,children:a.questionType.clear||"Clear"}),j.V.map(e=>(0,t.jsx)(y.T,{value:e,children:a.questionType.names?.[e]||e},e))]})]})]}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(v.f,{htmlFor:"correction-grade-semester",children:a.editor.gradeSemester||"Grade/Semester"}),(0,t.jsx)(g.f,{id:"correction-grade-semester",value:e.gradeSemester||"",onChange:e=>r({gradeSemester:e})})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(v.f,{children:a.editor.paperLevel||"Paper Level"}),(0,t.jsx)(p.f,{value:s,onChange:e=>r({paperLevel:e})})]})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(v.f,{children:a.difficulty.label}),(0,t.jsx)("div",{children:(0,t.jsx)(h.f,{size:"md",value:e.difficultyStars,onChange:e=>r({difficultyStars:e})})})]})]})}var w=e.i(141176),k=e.i(515288);function N({data:e,onChange:s}){let{t:r}=(0,d.b)();return(0,t.jsxs)(k.N,{children:[(0,t.jsx)(k.Y,{children:(0,t.jsx)(k.v,{children:r.editor.mistakeAnalysisTitle||"Mistake Analysis"})}),(0,t.jsxs)(k.O,{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(v.f,{children:r.editor.mistakeStatus||"Attempt Status"}),(0,t.jsxs)(y.d,{value:e.mistakeStatus||"unknown",onValueChange:e=>s({mistakeStatus:e}),children:[(0,t.jsx)(y.P,{children:(0,t.jsx)(y.U,{})}),(0,t.jsxs)(y.r,{children:[(0,t.jsx)(y.T,{value:"not_attempted",children:r.editor.mistakeStatuses?.notAttempted||"Not attempted"}),(0,t.jsx)(y.T,{value:"wrong_attempt",children:r.editor.mistakeStatuses?.wrongAttempt||"Wrong attempt"}),(0,t.jsx)(y.T,{value:"unknown",children:r.editor.mistakeStatuses?.unknown||"Unknown"})]})]})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(v.f,{children:r.editor.wrongAnswerText||"Wrong Answer / Work"}),(0,t.jsx)(w.f,{value:e.wrongAnswerText||"",onChange:t=>s({wrongAnswerText:t,mistakeStatus:t.trim()?"wrong_attempt":e.mistakeStatus}),className:"min-h-[100px] font-mono text-sm",placeholder:r.editor.wrongAnswerPlaceholder||"Leave blank if no wrong answer is visible"})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(v.f,{children:r.editor.mistakeAnalysis||"Mistake Cause Analysis"}),(0,t.jsx)(w.f,{value:e.mistakeAnalysis||"",onChange:e=>s({mistakeAnalysis:e}),className:"min-h-[140px] font-mono text-sm",placeholder:r.editor.mistakeAnalysisPlaceholder||"Explain where and why the mistake happened"})]})]})]})}var S=e.i(511445),_=e.i(149704);function T({title:e,children:s,className:r}){return(0,t.jsxs)(k.N,{children:[(0,t.jsx)(k.Y,{children:(0,t.jsx)(k.v,{children:e})}),(0,t.jsx)(k.O,{className:r,children:s})]})}function A({data:e,children:s}){let{t:r}=(0,d.b)(),a={wrong_attempt:r.editor.mistakeStatuses?.wrongAttempt||"Wrong attempt",not_attempted:r.editor.mistakeStatuses?.notAttempted||"Not attempted",unknown:r.editor.mistakeStatuses?.unknown||"Unknown"};return(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsxs)(T,{title:r.editor.preview?.question||"Question Preview",children:[(0,t.jsx)(S.f,{content:e.questionText}),(0,t.jsx)(_.f,{svg:e.figureSvg})]}),s,(0,t.jsx)(T,{title:r.editor.preview?.answer||"Answer Preview",children:(0,t.jsx)(S.f,{content:e.answerText})}),(0,t.jsx)(T,{title:r.editor.preview?.analysis||"Analysis Preview",children:(0,t.jsx)(S.f,{content:e.analysis})}),(0,t.jsxs)(T,{title:r.editor.preview?.mistakeAnalysis||"Mistake Analysis Preview",className:"space-y-3 text-sm",children:[(0,t.jsxs)("div",{className:"text-muted-foreground",children:[r.editor.mistakeStatus||"Attempt Status",r.common.colon,a[e.mistakeStatus]??a.unknown]}),e.wrongAnswerText&&(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"font-medium mb-1",children:r.editor.wrongAnswerText||"Wrong Answer / Work"}),(0,t.jsx)(S.f,{content:e.wrongAnswerText})]}),e.mistakeAnalysis&&(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"font-medium mb-1",children:r.editor.mistakeAnalysis||"Mistake Cause Analysis"}),(0,t.jsx)(S.f,{content:e.mistakeAnalysis})]})]})]})}var E=e.i(574041),I=e.i(215519),C=e.i(306831);e.i(676167);var R=e.i(597138),z=e.i(991722),V=e.i(470279),O=e.i(303163);e.s(["f",0,function({initialData:e,onSave:n,onCancel:l,imagePreview:h,initialSubjectId:g,aiTimeout:x}){let{timeZone:p}=(0,I.M)(),{t:y,language:j}=(0,d.b)(),S=e=>e.trim()?e:"",[_,T]=(0,s.useState)({...e,answerText:S(e.answerText),analysis:S(e.analysis),wrongAnswerText:e.wrongAnswerText||"",mistakeAnalysis:e.mistakeAnalysis||"",mistakeStatus:e.mistakeStatus||"unknown",subjectId:g,gradeSemester:e.gradeSemester||""}),$=(0,s.useRef)(!1),M=e=>{"gradeSemester"in e&&($.current=!0),T(t=>({...t,...e}))},{groups:L}=(0,V.f)(),P=(()=>{if(_.paperLevel)return _.paperLevel;let e="number"==typeof _.difficultyStars&&_.difficultyStars>=4?"b":"a";return L.find(t=>t.key===e&&t.isActive)?.id||""})(),q=_.paperLevel??P,[G,F]=(0,s.useState)(!1),[U,D]=(0,s.useState)(!1),[H,Q]=(0,s.useState)(!1),[B,W]=(0,s.useState)(void 0),[Z,J]=(0,s.useState)([]);(0,s.useEffect)(()=>{c.k.get("/api/notebooks").then(J).catch(e=>m.V.error("[CorrectionEditor]","Failed to fetch notebooks",{error:e})),c.k.get("/api/user").then(e=>{if(Q(!!e?.enableGeogebra),e){let t=function(e,t=C.J){return"ai"===e.gradeRecognitionMode?null:e.fixedGradeSemester?e.fixedGradeSemester:e.educationStage&&e.enrollmentYear?function(e,t,s=new Date,r="en",a=C.J){let i=(0,C.c)(s,a),n=i.getFullYear(),l=i.getMonth()+1,o=n-t,d="2nd";l>=9?(o+=1,d="1st"):d=l<2?"1st":"2nd";let c="zh"===r,u=c?"1st"===d?"上期":"下期":"1st"===d?"1st Semester":"2nd Semester",m=(c?{primary:["一年级","二年级","三年级","四年级","五年级","六年级"],junior_high:["初一","初二","初三"],senior_high:["高一","高二","高三"],university:["大一","大二","大三","大四"]}:{primary:["Grade 1","Grade 2","Grade 3","Grade 4","Grade 5","Grade 6"],junior_high:["Junior High Grade 1","Junior High Grade 2","Junior High Grade 3"],senior_high:["Senior High Grade 1","Senior High Grade 2","Senior High Grade 3"],university:["Freshman","Sophomore","Junior","Senior"]})[e]||[],f=`${o}`;if(f=o>0&&o<=m.length?m[o-1]:o>m.length?c?"已毕业":"Graduated":c?"学前":"Pre-school",!c)return`${f}, ${u}`;{let e="1st"===d?"上":"下";return`${f}${e}`}}(e.educationStage,e.enrollmentYear,new Date,"zh",t):null}(e,p);T(e=>e.gradeSemester||$.current?e:{...e,gradeSemester:t||""}),W(e.educationStage||void 0)}}).catch(e=>m.V.error("[CorrectionEditor]","Failed to fetch user info for grade calculation",{error:e}))},[j,p]);let Y=async()=>{if(!_.questionText.trim())return void u.c.warning(y.editor.enterQuestionFirst||"Please enter question text first");F(!0);try{let e=function({questionText:e,language:t,subject:s,imagePreview:r,gradeSemester:a,subjectId:i}){let n={questionText:e,language:t,subject:s};return r&&(n.imageBase64=r),a&&(n.gradeSemester=a),i&&(n.subjectId=i),n}({questionText:_.questionText,language:j,subject:_.subject,imagePreview:h,gradeSemester:_.gradeSemester??void 0,subjectId:_.subjectId});m.V.info("[Reanswer]",e.imageBase64?"Sending image + text (image available for mistake analysis)":"Sending text only (no image available)",{timeout:x});let t=await c.k.post("/api/reanswer",e,{timeout:x||18e4,recoverable:!0});T(e=>({...e,answerText:t.answerText,analysis:t.analysis,knowledgePoints:t.knowledgePoints,wrongAnswerText:t.wrongAnswerText||"",mistakeAnalysis:t.mistakeAnalysis||"",mistakeStatus:(0,z.x)(t.mistakeStatus,t.wrongAnswerText),difficultyStars:t.difficultyStars??e.difficultyStars,questionType:t.questionType??e.questionType})),u.c.success(y.editor.reanswerSuccess||"✅ Answer and analysis updated!")}catch(r){let e,t,s;m.V.error("[CorrectionEditor]","Reanswer failed",{error:r}),u.c.error((e=(0,O.d)(r)||"",s=(t=y.errors?.reanswer||{}).default||"Reanswer failed",e.includes("AI_AUTH_ERROR")?t.authError||y.errors?.AI_AUTH_ERROR||s:e.includes("AI_CONNECTION_FAILED")?t.connectionFailed||y.errors?.AI_CONNECTION_FAILED||s:e.includes("AI_RESPONSE_ERROR")&&(t.responseError||y.errors?.AI_RESPONSE_ERROR)||s))}finally{F(!1)}},K=async()=>{if(!_.subjectId)return void u.c.warning(y.editor.messages?.selectNotebook||"Please select a notebook");if(!U){D(!0);try{await n({..._,paperLevel:q,mistakeStatus:(0,z.x)(_.mistakeStatus,_.wrongAnswerText)})}finally{D(!1)}}},X=y.editor.placeholder||"Supports Markdown and LaTeX...",ee=(0,R.f)(Z.find(e=>e.id===_.subjectId)?.name||null)||(0,R.f)(_.subject||null)||void 0;return(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("h2",{className:"text-2xl font-bold",children:y.editor.title}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(o.f,{variant:"outline",onClick:l,children:y.editor.cancel}),(0,t.jsxs)(o.f,{onClick:K,disabled:U,children:[U?(0,t.jsx)(r.f,{className:"mr-2 h-4 w-4 animate-spin"}):(0,t.jsx)(i.f,{className:"mr-2 h-4 w-4"}),U?y.common?.pleaseWait||"Please wait...":y.editor.save]})]})]}),(0,t.jsxs)("div",{className:"grid gap-6 lg:grid-cols-2",children:[(0,t.jsxs)("div",{className:"space-y-6",children:[h&&(0,t.jsx)(k.N,{children:(0,t.jsx)(k.O,{className:"p-4",children:(0,t.jsx)("img",{src:h,alt:"Original",className:"w-full rounded-md"})})}),(0,t.jsx)(b,{data:_,paperLevel:q,onChange:M}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(v.f,{children:y.editor.question}),(0,t.jsx)(w.f,{value:_.questionText,onChange:e=>M({questionText:e}),className:"min-h-[150px] font-mono text-sm",placeholder:X}),(0,t.jsx)(o.f,{variant:"default",size:"sm",onClick:Y,disabled:G||!_.questionText.trim(),className:"w-full bg-gradient-to-r from-indigo-600 to-violet-500 hover:from-indigo-700 hover:to-violet-600 text-white font-medium",children:G?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.f,{className:"mr-2 h-4 w-4 animate-spin"}),y.editor.reanswering||"AI solving..."]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.f,{className:"mr-2 h-4 w-4"}),y.editor.reanswer||"🔄 Reanswer (based on corrected question)"]})}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:y.editor.reanswerHint||"💡 If the question was misrecognized, correct it and click to regenerate answer"})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(v.f,{children:y.editor.tags}),(0,t.jsx)(E.f,{value:_.knowledgePoints,onChange:e=>M({knowledgePoints:e}),placeholder:y.editor.tagsPlaceholder||"Enter knowledge tags...",enterHint:y.editor.createTagHint,subject:ee,gradeStage:B}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:y.editor.tagsHint||"💡 Tag suggestions will appear as you type"})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(v.f,{children:y.editor.answer}),(0,t.jsx)(w.f,{value:_.answerText,onChange:e=>M({answerText:e}),className:"min-h-[100px] font-mono text-sm",placeholder:X})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(v.f,{children:y.editor.analysis}),(0,t.jsx)(w.f,{value:_.analysis,onChange:e=>M({analysis:e}),className:"min-h-[200px] font-mono text-sm",placeholder:X})]}),(0,t.jsx)(N,{data:_,onChange:M})]}),(0,t.jsx)(A,{data:_,children:H&&(0,t.jsx)(f,{data:_,onChange:M})})]})]})}],866531);var $=e.i(853138),M=e.i(263676);e.s(["f",0,function({message:e,onDismiss:s}){let{t:r}=(0,d.b)();return e?(0,t.jsxs)("div",{role:"alert",className:"flex items-start gap-3 rounded-xl border border-destructive/30 bg-destructive/5 p-4 text-sm text-destructive",children:[(0,t.jsx)($.f,{"aria-hidden":"true",className:"mt-0.5 h-4 w-4 shrink-0"}),(0,t.jsx)("p",{className:"min-w-0 flex-1 whitespace-pre-line break-words leading-relaxed",children:e}),(0,t.jsx)("button",{type:"button",onClick:s,"aria-label":r.common.close,className:"shrink-0 rounded p-1 hover:bg-destructive/10",children:(0,t.jsx)(M.X,{"aria-hidden":"true",className:"h-4 w-4"})})]}):null}],497346);var L=e.i(618566);function P(e){return"object"!=typeof e||null===e||Array.isArray(e)?void 0:e}function q(e,t){if("string"!=typeof e||!/^(QUESTION_SAVE_|AI_)[A-Z_]+$/.test(e))return;let s=t.errors[e];return"string"==typeof s?s:void 0}e.s(["f",0,function(e){let{t}=(0,d.b)(),r=(0,L.useRouter)(),[a,i]=(0,s.useState)(null),n=async(s,a,n=!0)=>{i(null);try{let e=await s();return u.c.success(e.duplicate?t.importFlow.duplicate:t.common.messages.saveSuccess),n&&(e.duplicate?r.push(`/error-items/${e.id}`):a&&r.push(`/notebooks/${a}`)),!0}catch(r){m.V.error(e,"Save failed",{errorMessage:(0,O.d)(r)??(0,O.Z)(r)});let s=function(e,t){let s=P(e),r=P(s?.data),a="number"==typeof s?.status?s.status:void 0,i=(0,O.d)(e),n=q(i,t)??q(r?.code,t),l={400:t.errors.QUESTION_SAVE_INVALID_INPUT,401:t.errors.QUESTION_SAVE_UNAUTHORIZED,403:t.errors.QUESTION_SAVE_FORBIDDEN,408:t.errors.QUESTION_SAVE_TIMEOUT,409:t.errors.QUESTION_SAVE_CONFLICT,413:t.errors.QUESTION_SAVE_TOO_LARGE,429:t.errors.QUESTION_SAVE_RATE_LIMITED,502:t.errors.QUESTION_SAVE_SERVER_UNAVAILABLE,503:t.errors.QUESTION_SAVE_SERVER_UNAVAILABLE,504:t.errors.QUESTION_SAVE_TIMEOUT},o=n??(a?l[a]:void 0)??t.errors.QUESTION_SAVE_FAILED;!a&&(e instanceof TypeError||/fetch|network|load failed/i.test((0,O.Z)(e)))&&(o=t.errors.QUESTION_SAVE_NETWORK_ERROR);let d=P(r?.details);if("QUESTION_SAVE_GRADE_FAILED"===i){let e=q(d?.reason,t);e&&(o+=`
|
|
7
|
+
${e}`)}return 400===a&&(o+=(function(e,t){if(!Array.isArray(e))return[];let s={questionText:t.editor.question,answerText:t.editor.answer,analysis:t.editor.analysis,wrongAnswerText:t.editor.wrongAnswerText,mistakeAnalysis:t.editor.mistakeAnalysis,knowledgePoints:t.editor.tags,subjectId:t.editor.selectNotebook,gradeSemester:t.editor.gradeSemester,paperLevel:t.editor.paperLevel};return e.slice(0,3).flatMap(e=>{let r=P(e),a=r?.path,i=Array.isArray(a)&&"string"==typeof a[0]?s[a[0]]:void 0;if(!i)return[];let n=r?.maximum,l=t.questionSave.invalidField;return r?.code==="too_big"&&"number"==typeof n&&Number.isSafeInteger(n)&&n>=0&&(l="array"===r.origin?t.questionSave.tooMany:t.questionSave.tooLong),[l.replace("{field}",i).replace("{maximum}",String(n))]})})(r?.details,t).map(e=>`
|
|
8
|
+
${e}`).join("")),"string"==typeof d?.databaseCode&&/^P\d{4}$/.test(d.databaseCode)&&(o+=`
|
|
9
|
+
${t.questionSave.databaseCode.replace("{code}",d.databaseCode)}`),a&&(o+=` (HTTP ${a})`),o}(r,t);return i(s),"AI_DAILY_LIMIT_EXCEEDED"!==(0,O.d)(r)&&u.c.error(s),!1}};return{saveError:a,setSaveError:i,dismissSaveError:()=>i(null),run:n}}],183444)},469937,e=>{var t=e.i(843476),s=e.i(786563),r=e.i(111110),a=e.i(975157);let i=[1,2,3,4,5];e.s(["f",0,function({value:e,onChange:n,disabled:l,size:o="sm",showUnrated:d=!0,className:c}){let{t:u}=(0,r.b)(),m=e??0,f="sm"===o?"h-3.5 w-3.5":"h-5 w-5",h=m?u.difficulty.starsLabel.replace("{n}",String(m)):u.difficulty.unrated;return n?(0,t.jsxs)("span",{className:(0,a.f)("inline-flex items-center gap-0.5",c),role:"group","aria-label":`${u.difficulty.label}${u.common.colon}${h}`,title:u.difficulty.clearHint,children:[i.map(e=>(0,t.jsx)("button",{type:"button",disabled:l,onClick:()=>n(e===m?null:e),"aria-label":u.difficulty.setStars.replace("{n}",String(e)),"aria-pressed":e<=m,className:"rounded p-0.5 hover:bg-muted disabled:opacity-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:(0,t.jsx)(s.f,{className:(0,a.f)(f,e<=m?"fill-amber-400 text-amber-400":"text-muted-foreground/40")})},e)),!m&&d&&(0,t.jsx)("span",{className:"ml-1 text-xs text-muted-foreground",children:u.difficulty.unrated})]}):m?(0,t.jsx)("span",{className:(0,a.f)("inline-flex items-center",c),role:"img","aria-label":`${u.difficulty.label}${u.common.colon}${h}`,title:h,children:i.map(e=>(0,t.jsx)(s.f,{className:(0,a.f)(f,e<=m?"fill-amber-400 text-amber-400":"text-muted-foreground/30"),"aria-hidden":!0},e))}):d?(0,t.jsx)("span",{className:(0,a.f)("text-xs text-muted-foreground",c),children:u.difficulty.unrated}):null}])},731335,532377,339501,e=>{var t=e.i(843476),s=e.i(399847),r=e.i(551757),a=e.i(456420);let i={name:"clock-3",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6h4",key:"135r8i"}]]};i.node;let n=(0,a.f)(i);var l=e.i(632781),o=e.i(615568),d=e.i(487486),c=e.i(519455),u=e.i(168148),m=e.i(111110),f=e.i(215519),h=e.i(306831);let g=["read","convert","crop","compress","upload"],x=["receive","analyze","save"];function p(e){if(!Number.isFinite(e)||e<0)return"-";if(e<1e3)return`${Math.round(e)}ms`;let t=e/1e3;if(t<60)return`${t.toFixed(+(t<10))}s`;let s=Math.round(t);return`${Math.floor(s/60)}:${String(s%60).padStart(2,"0")}`}var v=e.i(975157);let y={analyzing:50,saving:90},j={analyzing:l.f,saving:l.f,review:o.f,saved:r.f,failed:s.f};e.s(["f",0,function({task:e,now:s,onReview:r,onViewItem:a,onRetry:i,onDiscard:l}){let{t:o}=(0,m.b)(),{timeZone:b}=(0,f.M)(),w=j[e.status],k="analyzing"===e.status||"saving"===e.status,N=o.errors,S=e.error?"string"==typeof N[e.error]?N[e.error]:e.error:null,_=function(e){let t=[];for(let s of g){let r=e?.client?.[s];"number"==typeof r&&t.push({stage:s,ms:r})}for(let s of x){let r=e?.server?.[s];"number"==typeof r&&t.push({stage:s,ms:r})}return t}(e.timings),T=k&&s?s-Date.parse(e.createdAt):null;return(0,t.jsxs)("div",{className:(0,v.f)("space-y-2 rounded-lg border p-3 text-sm",e.unread&&"border-primary/50 bg-primary/5"),"data-testid":"import-task-card","data-status":e.status,children:[(0,t.jsxs)("div",{className:"flex items-start gap-2",children:[(0,t.jsx)(w,{className:(0,v.f)("mt-0.5 h-4 w-4 shrink-0",k&&"animate-spin text-primary","saved"===e.status&&"text-green-600","failed"===e.status&&"text-destructive","review"===e.status&&"text-primary")}),(0,t.jsxs)("div",{className:"min-w-0 flex-1 space-y-1",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,t.jsx)("span",{className:"font-medium",children:o.importTasks.status[e.status]}),(0,t.jsx)("span",{className:"text-xs text-muted-foreground",children:o.importTasks.mode[e.mode]}),e.unread&&(0,t.jsx)(d.f,{children:o.importTasks.unread})]}),k&&(0,t.jsx)(u.f,{value:y[e.status],"aria-label":o.importTasks.stageEstimate,"aria-valuetext":o.common.progress.estimated.replace("{percent}",String(y[e.status])),className:"h-1.5"}),e.excerpt&&(0,t.jsx)("p",{className:"break-words text-muted-foreground",children:e.excerpt}),"saved"===e.status&&!e.errorItemId&&(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:o.importTasks.itemDeleted}),"saved"===e.status&&e.errorItemId&&(0,t.jsx)("p",{className:"text-xs text-green-700 dark:text-green-300",children:e.duplicate?o.importTasks.duplicateSaved:o.importTasks.savedTo.replace("{notebook}",e.notebookName||"-").replace("{id}",e.errorItemShortId||"-")}),S&&(0,t.jsx)("p",{className:"text-xs text-destructive",children:S}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1 text-xs text-muted-foreground",children:[(0,t.jsxs)("span",{className:"flex items-center gap-1",children:[(0,t.jsx)(n,{className:"h-3 w-3"}),o.importTasks.createdAt.replace("{time}",(0,h.r)(e.createdAt,"MM-dd HH:mm",b))]}),null!==T&&(0,t.jsx)("span",{children:o.importTasks.elapsed.replace("{time}",p(T))}),e.attempts>1&&(0,t.jsx)("span",{children:o.importTasks.attempts.replace("{count}",String(e.attempts))})]}),_.length>0&&(0,t.jsx)("ul",{className:"flex flex-wrap gap-x-3 gap-y-1 text-xs text-muted-foreground tabular-nums","aria-label":"timings",children:_.map(({stage:e,ms:s})=>(0,t.jsxs)("li",{children:[o.importTasks.timings[e]," ",p(s)]},e))})]})]}),(0,t.jsxs)("div",{className:"flex flex-wrap justify-end gap-2",children:["review"===e.status&&r&&(0,t.jsx)(c.f,{size:"sm",onClick:r,children:o.importTasks.continueReview}),"saved"===e.status&&e.errorItemId&&a&&(0,t.jsx)(c.f,{size:"sm",variant:"outline",onClick:a,children:o.importTasks.viewItem}),"failed"===e.status&&i&&(0,t.jsx)(c.f,{size:"sm",onClick:i,children:o.importTasks.retry}),"saving"!==e.status&&"saved"!==e.status&&l&&(0,t.jsx)(c.f,{size:"sm",variant:"ghost",onClick:l,children:o.importTasks.discard})]})]})}],731335);var b=e.i(618566),w=e.i(767077),k=e.i(294114),N=e.i(201276),S=e.i(127175);e.s(["f",0,function(e){let{t}=(0,m.b)(),s=(0,b.useRouter)(),r=e=>{e.unread&&(0,S.N)(e.id).catch(e=>N.V.warn("[ImportTasks]","Mark read failed",{error:e}))};return{openReview:e=>{r(e),s.push(`/import-tasks/${e.id}`)},viewItem:e=>{e.errorItemId&&(r(e),s.push(`/error-items/${e.errorItemId}`))},markRead:r,retry:async s=>{try{await (0,S.R)(s.id),k.c.info(t.importTasks.retried)}catch(e){k.c.error((0,w.f)(e,t))}e?.()},discard:async s=>{if(!await (0,k.u)(t.importTasks.discardConfirm))return!1;let r=!1;try{await (0,S.x)(s.id),k.c.success(t.importTasks.discarded),r=!0}catch(e){k.c.error((0,w.f)(e,t))}return e?.(),r}}}],532377);var _=e.i(271645);e.s(["f",0,function(e,t=1e3){let[s,r]=(0,_.useState)(()=>Date.now());return(0,_.useEffect)(()=>{if(!e)return;let s=setInterval(()=>r(Date.now()),t);return()=>clearInterval(s)},[e,t]),s}],339501)},141176,e=>{var t=e.i(843476),s=e.i(271645),r=e.i(456420);let a={name:"code-xml",size:24,node:[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]],aliases:["code-2"]};a.node;let i=(0,r.f)(a);var n=e.i(772382),l=e.i(511445),o=e.i(624687),d=e.i(111110),c=e.i(975157);e.s(["f",0,function({value:e,onChange:r,className:a,...u}){let{t:m}=(0,d.b)(),[f,h]=(0,s.useState)("source"),g=(0,s.useId)(),x=[{mode:"source",label:m.markdownEditor.source,icon:i},{mode:"preview",label:m.markdownEditor.preview,icon:n.f}];return(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)("div",{role:"tablist","aria-label":m.markdownEditor.modeLabel,className:"flex justify-end",children:(0,t.jsx)("div",{className:"inline-flex rounded-md border bg-muted/40 p-0.5",children:x.map(({mode:e,label:s,icon:r})=>(0,t.jsxs)("button",{type:"button",role:"tab","aria-selected":f===e,"aria-controls":g,onClick:()=>h(e),className:(0,c.f)("flex items-center gap-1 rounded px-2.5 py-1 text-xs transition-colors",f===e?"bg-background font-medium shadow-sm":"text-muted-foreground hover:text-foreground"),children:[(0,t.jsx)(r,{className:"h-3.5 w-3.5"}),s]},e))})}),(0,t.jsx)("div",{id:g,role:"tabpanel",children:"source"===f?(0,t.jsx)(o.f,{value:e,onChange:e=>r(e.target.value),className:a,...u}):(0,t.jsx)("div",{className:"min-h-24 cursor-text rounded-md border bg-muted/20 px-3 py-2",onDoubleClick:()=>h("source"),title:m.markdownEditor.doubleClickToEdit,children:e.trim()?(0,t.jsx)(l.f,{content:e}):(0,t.jsx)("p",{className:"text-sm italic text-muted-foreground",children:m.markdownEditor.empty})})})]})}],141176)},438465,674166,e=>{var t=e.i(843476),s=e.i(271645),r=e.i(967489),a=e.i(856423),i=e.i(41931),n=e.i(201276),l=e.i(111110);e.s(["f",0,function({value:e,onChange:o,className:d}){let[c,u]=(0,s.useState)([]),{t:m}=(0,l.b)();return(0,s.useEffect)(()=>{(async()=>{try{let e=await i.k.get("/api/notebooks");u(e)}catch(e){n.V.error("[NotebookSelector]","Failed to fetch notebooks",{error:e})}})()},[]),(0,t.jsxs)(r.d,{value:e,onValueChange:o,children:[(0,t.jsx)(r.P,{className:d,children:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(a.f,{className:"h-4 w-4 text-muted-foreground"}),(0,t.jsx)(r.U,{placeholder:m.notebooks?.selector?.placeholder||"Select Notebook"})]})}),(0,t.jsx)(r.r,{children:0===c.length?(0,t.jsx)("div",{className:"p-2 text-sm text-muted-foreground text-center",children:m.notebooks?.selector?.empty||"No notebooks available"}):c.map(e=>(0,t.jsx)(r.T,{value:e.id,children:e.name},e.id))})]})}],438465);var o=e.i(470279);e.s(["f",0,function({value:e,onChange:s,disabled:a}){let{groups:i,loading:n}=(0,o.f)(),l=i.filter(e=>e.isActive);return(0,t.jsxs)(r.d,{value:e,onValueChange:s,disabled:a||n,children:[(0,t.jsx)(r.P,{children:(0,t.jsx)(r.U,{placeholder:"选择卷别"})}),(0,t.jsx)(r.r,{children:l.map(e=>(0,t.jsx)(r.T,{value:e.id,children:e.name},e.id))})]})}],674166)},149704,e=>{var t=e.i(843476),s=e.i(111110),r=e.i(398019),a=e.i(184110),i=e.i(975157);let n={left:"mr-auto",center:"mx-auto",right:"ml-auto"};e.s(["f",0,function({svg:e,scale:l,align:o,className:d}){let{t:c}=(0,s.b)();if(!e)return null;let u=(0,a.V)(l),m=(0,a.o)(o);return(0,t.jsx)("figure",{className:(0,i.f)("question-figure my-3",d),children:(0,t.jsx)("img",{src:(0,r.d)(e),alt:c.figure.alt,className:(0,i.f)(n[m],"block h-auto max-w-full rounded border bg-white p-2"),style:{..."left"===m?{marginLeft:0,marginRight:"auto"}:"right"===m?{marginLeft:"auto",marginRight:0}:{},maxHeight:360,zoom:u/100,maxWidth:`${Math.min(u,100)}%`}})})}])},574041,e=>{var t=e.i(843476),s=e.i(271645),r=e.i(263676),a=e.i(487486),i=e.i(793479),n=e.i(41931),l=e.i(201276);e.s(["f",0,function({value:e=[],onChange:o,placeholder:d="Enter tags...",className:c="",enterHint:u,subject:m,gradeStage:f}){let[h,g]=(0,s.useState)(""),[x,p]=(0,s.useState)([]),[v,y]=(0,s.useState)(!1),[j,b]=(0,s.useState)(0),w=(0,s.useRef)(null),k=(0,s.useRef)(null),N=(0,s.useCallback)(async t=>{try{let s=new URLSearchParams({q:t});m&&s.append("subject",m),f&&s.append("stage",f);let r=((await n.k.get(`/api/tags/suggestions?${s.toString()}`)).suggestions||[]).filter(t=>!e.includes(t));p(r.slice(0,20)),y(r.length>0),b(0)}catch(e){l.V.error("[TagInput]","Failed to fetch suggestions",{error:e})}},[m,f,e]);(0,s.useEffect)(()=>{h.trim()&&N(h)},[h,N]);let S=t=>{t.trim()&&!e.includes(t.trim())&&(o([...e,t.trim()]),g(""),p([]),y(!1),b(0))},_=t=>{o(e.filter(e=>e!==t))};return(0,s.useEffect)(()=>{let e=e=>{!k.current||k.current.contains(e.target)||w.current?.contains(e.target)||y(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),(0,t.jsxs)("div",{className:`relative ${c}`,children:[(0,t.jsxs)("div",{className:"flex flex-wrap gap-2 p-2 border rounded-lg bg-background min-h-[42px]",children:[e.map(e=>(0,t.jsxs)(a.f,{variant:"secondary",className:"flex items-center gap-1 px-2 py-1",children:[e,(0,t.jsx)("button",{type:"button",onClick:()=>_(e),className:"hover:text-destructive ml-1",children:(0,t.jsx)(r.X,{className:"h-3 w-3"})})]},e)),(0,t.jsx)(i.f,{ref:w,type:"text",value:h,onChange:e=>{g(e.target.value),e.target.value.trim()||(p([]),y(!1))},onKeyDown:t=>{"Enter"===t.key?(t.preventDefault(),j>=0&&x[j]?S(x[j]):h.trim()&&S(h)):"ArrowDown"===t.key?(t.preventDefault(),b(e=>Math.min(e+1,x.length-1))):"ArrowUp"===t.key?(t.preventDefault(),b(e=>Math.max(e-1,0))):"Escape"===t.key?(y(!1),b(0)):"Backspace"===t.key&&!h&&e.length>0&&_(e[e.length-1])},onFocus:()=>{x.length>0&&y(!0)},placeholder:0===e.length?d:"",className:"flex-1 min-w-[120px] border-none focus-visible:ring-0 focus-visible:ring-offset-0 h-8 px-0"})]}),v&&x.length>0&&(0,t.jsx)("div",{ref:k,className:"absolute z-50 w-full mt-1 bg-popover border rounded-md shadow-md max-h-48 overflow-y-auto",children:x.map((e,s)=>(0,t.jsx)("div",{className:`px-3 py-2 cursor-pointer hover:bg-accent ${s===j?"bg-accent":""}`,onClick:()=>S(e),onMouseEnter:()=>b(s),children:e},e))}),h&&!v&&(0,t.jsx)("div",{className:"text-xs text-muted-foreground mt-1",children:u?`${u} "${h}"`:`Press Enter to create "${h}"`})]})}])},184110,e=>{let t=["left","center","right"],s="center";function r(e){return"number"==typeof e&&Number.isInteger(e)&&e>=10&&e<=200}e.s(["E",0,s,"n",0,100,"j",0,t,"a",0,200,"_",0,10,"x",0,r,"o",0,function(e){return"string"==typeof e&&t.includes(e)?e:s},"V",0,function(e){return r(e)?e:100}])},398019,e=>{e.s(["K",0,1e5,"d",0,function(e){return`data:image/svg+xml;charset=utf-8,${encodeURIComponent(e)}`}])},767077,e=>{var t=e.i(303163);e.s(["f",0,function(e,s){let r=s.common?.messages?.analysisFailed||"Analysis failed, please try again",a=(0,t.d)(e);if(a){let e=s.errors??{};if(!(a in e))return a;let t=e[a];return"string"==typeof t?t:r}let i=(0,t.Z)(e);if(i.includes("fetch")||i.includes("network"))return s.errors?.AI_CONNECTION_FAILED||"网络连接失败";if("object"==typeof e&&null!==e&&"data"in e&&"string"==typeof e.data){let t="status"in e&&"number"==typeof e.status?e.status:"Error";return`${r} (${t})`}return r}])},991722,e=>{function t(e){return"not_attempted"===e||"wrong_attempt"===e||"unknown"===e?e:"unknown"}e.s(["i",0,function(e,s="zh"){return("en"===s?{not_attempted:"Not attempted",wrong_attempt:"Wrong attempt",unknown:"Unknown"}:{not_attempted:"不会做",wrong_attempt:"做错了",unknown:"未判断"})[t(e)]},"h",0,t,"x",0,function(e,s){return(s||"").trim()?"wrong_attempt":t(e)}])},401280,e=>{let t={single_choice:"single_choice",singlechoice:"single_choice","single choice":"single_choice","single-choice":"single_choice",multiple_choice:"multiple_choice",multiplechoice:"multiple_choice","multiple choice":"multiple_choice","multiple-choice":"multiple_choice",multichoice:"multiple_choice","multi choice":"multiple_choice",true_false:"true_false",truefalse:"true_false","true/false":"true_false","true false":"true_false","true-false":"true_false","true / false":"true_false",fill_blank:"fill_blank",fillblank:"fill_blank","fill in the blank":"fill_blank","fill-in-the-blank":"fill_blank",fillintheblank:"fill_blank",calculation:"calculation",solution:"solution",reading:"reading",cloze:"cloze",writing:"writing",other:"other",选择题:"single_choice",单项选择:"single_choice",单选:"single_choice",单选题:"single_choice",不定项:"multiple_choice",不定项选择:"multiple_choice",多项选择:"multiple_choice",多选:"multiple_choice",多选题:"multiple_choice",判断:"true_false",判断题:"true_false",是非:"true_false",是非题:"true_false",填空:"fill_blank",填空题:"fill_blank",口算:"calculation",计算:"calculation",计算题:"calculation",解答:"solution",解答题:"solution",应用:"solution",应用题:"solution",证明:"solution",证明题:"solution",简答:"solution",简答题:"solution",阅读:"reading",阅读理解:"reading",完形:"cloze",完形填空:"cloze",作文:"writing",写作:"writing",书面表达:"writing",其他:"other"};e.s(["O",0,"__none__","V",0,["single_choice","multiple_choice","true_false","fill_blank","calculation","solution","reading","cloze","writing","other"],"u",0,{single_choice:"Single Choice",multiple_choice:"Multiple Choice",true_false:"True / False",fill_blank:"Fill in the Blank",calculation:"Calculation",solution:"Solution",reading:"Reading Comprehension",cloze:"Cloze",writing:"Writing",other:"Other"},"H",0,{single_choice:"单选题",multiple_choice:"多选题",true_false:"判断题",fill_blank:"填空题",calculation:"计算题",solution:"解答题",reading:"阅读理解",cloze:"完形填空",writing:"写作",other:"其他"},"P",0,function(e){if("string"!=typeof e)return null;let s=e.trim().toLowerCase();return s?t[s]??null:null}])},597138,e=>{e.i(306831),e.s(["f",0,function(e){if(!e)return null;let t=e.toLowerCase();return t.includes("math")||t.includes("数学")?"math":t.includes("physics")||t.includes("物理")?"physics":t.includes("chemistry")||t.includes("化学")?"chemistry":t.includes("biology")||t.includes("生物")?"biology":t.includes("english")||t.includes("英语")?"english":t.includes("chinese")||t.includes("语文")?"chinese":t.includes("history")||t.includes("历史")?"history":t.includes("geography")||t.includes("地理")?"geography":t.includes("politics")||t.includes("政治")?"politics":null}])}])})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,467034,(t,r,e)=>{var n={872:function(t,r){"use strict";r.byteLength=function(t){var r=s(t),e=r[0],n=r[1];return(e+n)*3/4-n},r.toByteArray=function(t){var r,e,i=s(t),f=i[0],u=i[1],h=new o((f+u)*3/4-u),a=0,p=u>0?f-4:f;for(e=0;e<p;e+=4)r=n[t.charCodeAt(e)]<<18|n[t.charCodeAt(e+1)]<<12|n[t.charCodeAt(e+2)]<<6|n[t.charCodeAt(e+3)],h[a++]=r>>16&255,h[a++]=r>>8&255,h[a++]=255&r;return 2===u&&(r=n[t.charCodeAt(e)]<<2|n[t.charCodeAt(e+1)]>>4,h[a++]=255&r),1===u&&(r=n[t.charCodeAt(e)]<<10|n[t.charCodeAt(e+1)]<<4|n[t.charCodeAt(e+2)]>>2,h[a++]=r>>8&255,h[a++]=255&r),h},r.fromByteArray=function(t){for(var r,n=t.length,o=n%3,i=[],f=0,u=n-o;f<u;f+=16383)i.push(function(t,r,n){for(var o,i=[],f=r;f<n;f+=3)o=(t[f]<<16&0xff0000)+(t[f+1]<<8&65280)+(255&t[f+2]),i.push(e[o>>18&63]+e[o>>12&63]+e[o>>6&63]+e[63&o]);return i.join("")}(t,f,f+16383>u?u:f+16383));return 1===o?i.push(e[(r=t[n-1])>>2]+e[r<<4&63]+"=="):2===o&&i.push(e[(r=(t[n-2]<<8)+t[n-1])>>10]+e[r>>4&63]+e[r<<2&63]+"="),i.join("")};for(var e=[],n=[],o="u">typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=0,u=i.length;f<u;++f)e[f]=i[f],n[i.charCodeAt(f)]=f;function s(t){var r=t.length;if(r%4>0)throw Error("Invalid string. Length must be a multiple of 4");var e=t.indexOf("=");-1===e&&(e=r);var n=e===r?0:4-e%4;return[e,n]}n[45]=62,n[95]=63},230:function(t,r,e){"use strict";var n=e(872),o=e(321),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function f(t){if(t>0x7fffffff)throw RangeError('The value "'+t+'" is invalid for option "size"');var r=new Uint8Array(t);return Object.setPrototypeOf(r,u.prototype),r}function u(t,r,e){if("number"==typeof t){if("string"==typeof r)throw TypeError('The "string" argument must be of type string. Received type number');return a(t)}return s(t,r,e)}function s(t,r,e){if("string"==typeof t){var n=t,o=r;if(("string"!=typeof o||""===o)&&(o="utf8"),!u.isEncoding(o))throw TypeError("Unknown encoding: "+o);var i=0|l(n,o),s=f(i),h=s.write(n,o);return h!==i&&(s=s.slice(0,h)),s}if(ArrayBuffer.isView(t))return p(t);if(null==t)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(S(t,ArrayBuffer)||t&&S(t.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(S(t,SharedArrayBuffer)||t&&S(t.buffer,SharedArrayBuffer)))return function(t,r,e){var n;if(r<0||t.byteLength<r)throw RangeError('"offset" is outside of buffer bounds');if(t.byteLength<r+(e||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===r&&void 0===e?new Uint8Array(t):void 0===e?new Uint8Array(t,r):new Uint8Array(t,r,e),u.prototype),n}(t,r,e);if("number"==typeof t)throw TypeError('The "value" argument must not be of type number. Received type number');var a=t.valueOf&&t.valueOf();if(null!=a&&a!==t)return u.from(a,r,e);var y=function(t){if(u.isBuffer(t)){var r=0|c(t.length),e=f(r);return 0===e.length||t.copy(e,0,0,r),e}return void 0!==t.length?"number"!=typeof t.length||function(t){return t!=t}(t.length)?f(0):p(t):"Buffer"===t.type&&Array.isArray(t.data)?p(t.data):void 0}(t);if(y)return y;if("u">typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return u.from(t[Symbol.toPrimitive]("string"),r,e);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function h(t){if("number"!=typeof t)throw TypeError('"size" argument must be of type number');if(t<0)throw RangeError('The value "'+t+'" is invalid for option "size"')}function a(t){return h(t),f(t<0?0:0|c(t))}function p(t){for(var r=t.length<0?0:0|c(t.length),e=f(r),n=0;n<r;n+=1)e[n]=255&t[n];return e}r.Buffer=u,r.SlowBuffer=function(t){return+t!=t&&(t=0),u.alloc(+t)},r.INSPECT_MAX_BYTES=50,r.kMaxLength=0x7fffffff,u.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(t,r),42===t.foo()}catch(t){return!1}}(),!u.TYPED_ARRAY_SUPPORT&&"u">typeof console&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),u.poolSize=8192,u.from=function(t,r,e){return s(t,r,e)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(t,r,e){return(h(t),t<=0)?f(t):void 0!==r?"string"==typeof e?f(t).fill(r,e):f(t).fill(r):f(t)},u.allocUnsafe=function(t){return a(t)},u.allocUnsafeSlow=function(t){return a(t)};function c(t){if(t>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|t}function l(t,r){if(u.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||S(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var e=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===e)return 0;for(var o=!1;;)switch(r){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":return x(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*e;case"hex":return e>>>1;case"base64":return I(t).length;default:if(o)return n?-1:x(t).length;r=(""+r).toLowerCase(),o=!0}}function y(t,r,e){var o,i,f,u=!1;if((void 0===r||r<0)&&(r=0),r>this.length||((void 0===e||e>this.length)&&(e=this.length),e<=0||(e>>>=0)<=(r>>>=0)))return"";for(t||(t="utf8");;)switch(t){case"hex":return function(t,r,e){var n=t.length;(!r||r<0)&&(r=0),(!e||e<0||e>n)&&(e=n);for(var o="",i=r;i<e;++i)o+=R[t[i]];return o}(this,r,e);case"utf8":case"utf-8":return b(this,r,e);case"ascii":return function(t,r,e){var n="";e=Math.min(t.length,e);for(var o=r;o<e;++o)n+=String.fromCharCode(127&t[o]);return n}(this,r,e);case"latin1":case"binary":return function(t,r,e){var n="";e=Math.min(t.length,e);for(var o=r;o<e;++o)n+=String.fromCharCode(t[o]);return n}(this,r,e);case"base64":return o=this,i=r,f=e,0===i&&f===o.length?n.fromByteArray(o):n.fromByteArray(o.slice(i,f));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(t,r,e){for(var n=t.slice(r,e),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}(this,r,e);default:if(u)throw TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),u=!0}}function g(t,r,e){var n=t[r];t[r]=t[e],t[e]=n}function d(t,r,e,n,o){var i;if(0===t.length)return -1;if("string"==typeof e?(n=e,e=0):e>0x7fffffff?e=0x7fffffff:e<-0x80000000&&(e=-0x80000000),(i=e*=1)!=i&&(e=o?0:t.length-1),e<0&&(e=t.length+e),e>=t.length)if(o)return -1;else e=t.length-1;else if(e<0)if(!o)return -1;else e=0;if("string"==typeof r&&(r=u.from(r,n)),u.isBuffer(r))return 0===r.length?-1:v(t,r,e,n,o);if("number"==typeof r){if(r&=255,"function"==typeof Uint8Array.prototype.indexOf)if(o)return Uint8Array.prototype.indexOf.call(t,r,e);else return Uint8Array.prototype.lastIndexOf.call(t,r,e);return v(t,[r],e,n,o)}throw TypeError("val must be string, number or Buffer")}function v(t,r,e,n,o){var i,f=1,u=t.length,s=r.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||r.length<2)return -1;f=2,u/=2,s/=2,e/=2}function h(t,r){return 1===f?t[r]:t.readUInt16BE(r*f)}if(o){var a=-1;for(i=e;i<u;i++)if(h(t,i)===h(r,-1===a?0:i-a)){if(-1===a&&(a=i),i-a+1===s)return a*f}else -1!==a&&(i-=i-a),a=-1}else for(e+s>u&&(e=u-s),i=e;i>=0;i--){for(var p=!0,c=0;c<s;c++)if(h(t,i+c)!==h(r,c)){p=!1;break}if(p)return i}return -1}u.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==u.prototype},u.compare=function(t,r){if(S(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),S(r,Uint8Array)&&(r=u.from(r,r.offset,r.byteLength)),!u.isBuffer(t)||!u.isBuffer(r))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;for(var e=t.length,n=r.length,o=0,i=Math.min(e,n);o<i;++o)if(t[o]!==r[o]){e=t[o],n=r[o];break}return e<n?-1:+(n<e)},u.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(t,r){if(!Array.isArray(t))throw TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return u.alloc(0);if(void 0===r)for(e=0,r=0;e<t.length;++e)r+=t[e].length;var e,n=u.allocUnsafe(r),o=0;for(e=0;e<t.length;++e){var i=t[e];if(S(i,Uint8Array)&&(i=u.from(i)),!u.isBuffer(i))throw TypeError('"list" argument must be an Array of Buffers');i.copy(n,o),o+=i.length}return n},u.byteLength=l,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<t;r+=2)g(this,r,r+1);return this},u.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<t;r+=4)g(this,r,r+3),g(this,r+1,r+2);return this},u.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<t;r+=8)g(this,r,r+7),g(this,r+1,r+6),g(this,r+2,r+5),g(this,r+3,r+4);return this},u.prototype.toString=function(){var t=this.length;return 0===t?"":0==arguments.length?b(this,0,t):y.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(t){if(!u.isBuffer(t))throw TypeError("Argument must be a Buffer");return this===t||0===u.compare(this,t)},u.prototype.inspect=function(){var t="",e=r.INSPECT_MAX_BYTES;return t=this.toString("hex",0,e).replace(/(.{2})/g,"$1 ").trim(),this.length>e&&(t+=" ... "),"<Buffer "+t+">"},i&&(u.prototype[i]=u.prototype.inspect),u.prototype.compare=function(t,r,e,n,o){if(S(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(t))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===r&&(r=0),void 0===e&&(e=t?t.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),r<0||e>t.length||n<0||o>this.length)throw RangeError("out of range index");if(n>=o&&r>=e)return 0;if(n>=o)return -1;if(r>=e)return 1;if(r>>>=0,e>>>=0,n>>>=0,o>>>=0,this===t)return 0;for(var i=o-n,f=e-r,s=Math.min(i,f),h=this.slice(n,o),a=t.slice(r,e),p=0;p<s;++p)if(h[p]!==a[p]){i=h[p],f=a[p];break}return i<f?-1:+(f<i)},u.prototype.includes=function(t,r,e){return -1!==this.indexOf(t,r,e)},u.prototype.indexOf=function(t,r,e){return d(this,t,r,e,!0)},u.prototype.lastIndexOf=function(t,r,e){return d(this,t,r,e,!1)};function b(t,r,e){e=Math.min(t.length,e);for(var n=[],o=r;o<e;){var i,f,u,s,h=t[o],a=null,p=h>239?4:h>223?3:h>191?2:1;if(o+p<=e)switch(p){case 1:h<128&&(a=h);break;case 2:(192&(i=t[o+1]))==128&&(s=(31&h)<<6|63&i)>127&&(a=s);break;case 3:i=t[o+1],f=t[o+2],(192&i)==128&&(192&f)==128&&(s=(15&h)<<12|(63&i)<<6|63&f)>2047&&(s<55296||s>57343)&&(a=s);break;case 4:i=t[o+1],f=t[o+2],u=t[o+3],(192&i)==128&&(192&f)==128&&(192&u)==128&&(s=(15&h)<<18|(63&i)<<12|(63&f)<<6|63&u)>65535&&s<1114112&&(a=s)}null===a?(a=65533,p=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|1023&a),n.push(a),o+=p}var c=n,l=c.length;if(l<=4096)return String.fromCharCode.apply(String,c);for(var y="",g=0;g<l;)y+=String.fromCharCode.apply(String,c.slice(g,g+=4096));return y}function w(t,r,e){if(t%1!=0||t<0)throw RangeError("offset is not uint");if(t+r>e)throw RangeError("Trying to access beyond buffer length")}function m(t,r,e,n,o,i){if(!u.isBuffer(t))throw TypeError('"buffer" argument must be a Buffer instance');if(r>o||r<i)throw RangeError('"value" argument is out of bounds');if(e+n>t.length)throw RangeError("Index out of range")}function E(t,r,e,n,o,i){if(e+n>t.length||e<0)throw RangeError("Index out of range")}function A(t,r,e,n,i){return r*=1,e>>>=0,i||E(t,r,e,4,34028234663852886e22,-34028234663852886e22),o.write(t,r,e,n,23,4),e+4}function B(t,r,e,n,i){return r*=1,e>>>=0,i||E(t,r,e,8,17976931348623157e292,-17976931348623157e292),o.write(t,r,e,n,52,8),e+8}u.prototype.write=function(t,r,e,n){if(void 0===r)n="utf8",e=this.length,r=0;else if(void 0===e&&"string"==typeof r)n=r,e=this.length,r=0;else if(isFinite(r))r>>>=0,isFinite(e)?(e>>>=0,void 0===n&&(n="utf8")):(n=e,e=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o,i,f,u,s,h,a,p,c=this.length-r;if((void 0===e||e>c)&&(e=c),t.length>0&&(e<0||r<0)||r>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var l=!1;;)switch(n){case"hex":return function(t,r,e,n){e=Number(e)||0;var o=t.length-e;n?(n=Number(n))>o&&(n=o):n=o;var i=r.length;n>i/2&&(n=i/2);for(var f=0;f<n;++f){var u,s=parseInt(r.substr(2*f,2),16);if((u=s)!=u)break;t[e+f]=s}return f}(this,t,r,e);case"utf8":case"utf-8":return o=r,i=e,O(x(t,this.length-o),this,o,i);case"ascii":return f=r,u=e,O(T(t),this,f,u);case"latin1":case"binary":return function(t,r,e,n){return O(T(r),t,e,n)}(this,t,r,e);case"base64":return s=r,h=e,O(I(t),this,s,h);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return a=r,p=e,O(function(t,r){for(var e,n,o=[],i=0;i<t.length&&!((r-=2)<0);++i)n=(e=t.charCodeAt(i))>>8,o.push(e%256),o.push(n);return o}(t,this.length-a),this,a,p);default:if(l)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),l=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},u.prototype.slice=function(t,r){var e=this.length;t=~~t,r=void 0===r?e:~~r,t<0?(t+=e)<0&&(t=0):t>e&&(t=e),r<0?(r+=e)<0&&(r=0):r>e&&(r=e),r<t&&(r=t);var n=this.subarray(t,r);return Object.setPrototypeOf(n,u.prototype),n},u.prototype.readUIntLE=function(t,r,e){t>>>=0,r>>>=0,e||w(t,r,this.length);for(var n=this[t],o=1,i=0;++i<r&&(o*=256);)n+=this[t+i]*o;return n},u.prototype.readUIntBE=function(t,r,e){t>>>=0,r>>>=0,e||w(t,r,this.length);for(var n=this[t+--r],o=1;r>0&&(o*=256);)n+=this[t+--r]*o;return n},u.prototype.readUInt8=function(t,r){return t>>>=0,r||w(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,r){return t>>>=0,r||w(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,r){return t>>>=0,r||w(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,r){return t>>>=0,r||w(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+0x1000000*this[t+3]},u.prototype.readUInt32BE=function(t,r){return t>>>=0,r||w(t,4,this.length),0x1000000*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,r,e){t>>>=0,r>>>=0,e||w(t,r,this.length);for(var n=this[t],o=1,i=0;++i<r&&(o*=256);)n+=this[t+i]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*r)),n},u.prototype.readIntBE=function(t,r,e){t>>>=0,r>>>=0,e||w(t,r,this.length);for(var n=r,o=1,i=this[t+--n];n>0&&(o*=256);)i+=this[t+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*r)),i},u.prototype.readInt8=function(t,r){return(t>>>=0,r||w(t,1,this.length),128&this[t])?-((255-this[t]+1)*1):this[t]},u.prototype.readInt16LE=function(t,r){t>>>=0,r||w(t,2,this.length);var e=this[t]|this[t+1]<<8;return 32768&e?0xffff0000|e:e},u.prototype.readInt16BE=function(t,r){t>>>=0,r||w(t,2,this.length);var e=this[t+1]|this[t]<<8;return 32768&e?0xffff0000|e:e},u.prototype.readInt32LE=function(t,r){return t>>>=0,r||w(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,r){return t>>>=0,r||w(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,r){return t>>>=0,r||w(t,4,this.length),o.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,r){return t>>>=0,r||w(t,4,this.length),o.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,r){return t>>>=0,r||w(t,8,this.length),o.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,r){return t>>>=0,r||w(t,8,this.length),o.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,r,e,n){if(t*=1,r>>>=0,e>>>=0,!n){var o=Math.pow(2,8*e)-1;m(this,t,r,e,o,0)}var i=1,f=0;for(this[r]=255&t;++f<e&&(i*=256);)this[r+f]=t/i&255;return r+e},u.prototype.writeUIntBE=function(t,r,e,n){if(t*=1,r>>>=0,e>>>=0,!n){var o=Math.pow(2,8*e)-1;m(this,t,r,e,o,0)}var i=e-1,f=1;for(this[r+i]=255&t;--i>=0&&(f*=256);)this[r+i]=t/f&255;return r+e},u.prototype.writeUInt8=function(t,r,e){return t*=1,r>>>=0,e||m(this,t,r,1,255,0),this[r]=255&t,r+1},u.prototype.writeUInt16LE=function(t,r,e){return t*=1,r>>>=0,e||m(this,t,r,2,65535,0),this[r]=255&t,this[r+1]=t>>>8,r+2},u.prototype.writeUInt16BE=function(t,r,e){return t*=1,r>>>=0,e||m(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=255&t,r+2},u.prototype.writeUInt32LE=function(t,r,e){return t*=1,r>>>=0,e||m(this,t,r,4,0xffffffff,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=255&t,r+4},u.prototype.writeUInt32BE=function(t,r,e){return t*=1,r>>>=0,e||m(this,t,r,4,0xffffffff,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t,r+4},u.prototype.writeIntLE=function(t,r,e,n){if(t*=1,r>>>=0,!n){var o=Math.pow(2,8*e-1);m(this,t,r,e,o-1,-o)}var i=0,f=1,u=0;for(this[r]=255&t;++i<e&&(f*=256);)t<0&&0===u&&0!==this[r+i-1]&&(u=1),this[r+i]=(t/f|0)-u&255;return r+e},u.prototype.writeIntBE=function(t,r,e,n){if(t*=1,r>>>=0,!n){var o=Math.pow(2,8*e-1);m(this,t,r,e,o-1,-o)}var i=e-1,f=1,u=0;for(this[r+i]=255&t;--i>=0&&(f*=256);)t<0&&0===u&&0!==this[r+i+1]&&(u=1),this[r+i]=(t/f|0)-u&255;return r+e},u.prototype.writeInt8=function(t,r,e){return t*=1,r>>>=0,e||m(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=255&t,r+1},u.prototype.writeInt16LE=function(t,r,e){return t*=1,r>>>=0,e||m(this,t,r,2,32767,-32768),this[r]=255&t,this[r+1]=t>>>8,r+2},u.prototype.writeInt16BE=function(t,r,e){return t*=1,r>>>=0,e||m(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=255&t,r+2},u.prototype.writeInt32LE=function(t,r,e){return t*=1,r>>>=0,e||m(this,t,r,4,0x7fffffff,-0x80000000),this[r]=255&t,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4},u.prototype.writeInt32BE=function(t,r,e){return t*=1,r>>>=0,e||m(this,t,r,4,0x7fffffff,-0x80000000),t<0&&(t=0xffffffff+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t,r+4},u.prototype.writeFloatLE=function(t,r,e){return A(this,t,r,!0,e)},u.prototype.writeFloatBE=function(t,r,e){return A(this,t,r,!1,e)},u.prototype.writeDoubleLE=function(t,r,e){return B(this,t,r,!0,e)},u.prototype.writeDoubleBE=function(t,r,e){return B(this,t,r,!1,e)},u.prototype.copy=function(t,r,e,n){if(!u.isBuffer(t))throw TypeError("argument should be a Buffer");if(e||(e=0),n||0===n||(n=this.length),r>=t.length&&(r=t.length),r||(r=0),n>0&&n<e&&(n=e),n===e||0===t.length||0===this.length)return 0;if(r<0)throw RangeError("targetStart out of bounds");if(e<0||e>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-r<n-e&&(n=t.length-r+e);var o=n-e;if(this===t&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(r,e,n);else if(this===t&&e<r&&r<n)for(var i=o-1;i>=0;--i)t[i+r]=this[i+e];else Uint8Array.prototype.set.call(t,this.subarray(e,n),r);return o},u.prototype.fill=function(t,r,e,n){if("string"==typeof t){if("string"==typeof r?(n=r,r=0,e=this.length):"string"==typeof e&&(n=e,e=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!u.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===t.length){var o,i=t.charCodeAt(0);("utf8"===n&&i<128||"latin1"===n)&&(t=i)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(r<0||this.length<r||this.length<e)throw RangeError("Out of range index");if(e<=r)return this;if(r>>>=0,e=void 0===e?this.length:e>>>0,t||(t=0),"number"==typeof t)for(o=r;o<e;++o)this[o]=t;else{var f=u.isBuffer(t)?t:u.from(t,n),s=f.length;if(0===s)throw TypeError('The value "'+t+'" is invalid for argument "value"');for(o=0;o<e-r;++o)this[o+r]=f[o%s]}return this};var U=/[^+/0-9A-Za-z-_]/g;function x(t,r){r=r||1/0;for(var e,n=t.length,o=null,i=[],f=0;f<n;++f){if((e=t.charCodeAt(f))>55295&&e<57344){if(!o){if(e>56319||f+1===n){(r-=3)>-1&&i.push(239,191,189);continue}o=e;continue}if(e<56320){(r-=3)>-1&&i.push(239,191,189),o=e;continue}e=(o-55296<<10|e-56320)+65536}else o&&(r-=3)>-1&&i.push(239,191,189);if(o=null,e<128){if((r-=1)<0)break;i.push(e)}else if(e<2048){if((r-=2)<0)break;i.push(e>>6|192,63&e|128)}else if(e<65536){if((r-=3)<0)break;i.push(e>>12|224,e>>6&63|128,63&e|128)}else if(e<1114112){if((r-=4)<0)break;i.push(e>>18|240,e>>12&63|128,e>>6&63|128,63&e|128)}else throw Error("Invalid code point")}return i}function T(t){for(var r=[],e=0;e<t.length;++e)r.push(255&t.charCodeAt(e));return r}function I(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(U,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function O(t,r,e,n){for(var o=0;o<n&&!(o+e>=r.length)&&!(o>=t.length);++o)r[o+e]=t[o];return o}function S(t,r){return t instanceof r||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===r.name}var R=function(){for(var t="0123456789abcdef",r=Array(256),e=0;e<16;++e)for(var n=16*e,o=0;o<16;++o)r[n+o]=t[e]+t[o];return r}()},321:function(t,r){r.read=function(t,r,e,n,o){var i,f,u=8*o-n-1,s=(1<<u)-1,h=s>>1,a=-7,p=e?o-1:0,c=e?-1:1,l=t[r+p];for(p+=c,i=l&(1<<-a)-1,l>>=-a,a+=u;a>0;i=256*i+t[r+p],p+=c,a-=8);for(f=i&(1<<-a)-1,i>>=-a,a+=n;a>0;f=256*f+t[r+p],p+=c,a-=8);if(0===i)i=1-h;else{if(i===s)return f?0/0:(l?-1:1)*2e308;f+=Math.pow(2,n),i-=h}return(l?-1:1)*f*Math.pow(2,i-n)},r.write=function(t,r,e,n,o,i){var f,u,s,h=8*i-o-1,a=(1<<h)-1,p=a>>1,c=5960464477539062e-23*(23===o),l=n?0:i-1,y=n?1:-1,g=+(r<0||0===r&&1/r<0);for(isNaN(r=Math.abs(r))||1/0===r?(u=+!!isNaN(r),f=a):(f=Math.floor(Math.log(r)/Math.LN2),r*(s=Math.pow(2,-f))<1&&(f--,s*=2),f+p>=1?r+=c/s:r+=c*Math.pow(2,1-p),r*s>=2&&(f++,s/=2),f+p>=a?(u=0,f=a):f+p>=1?(u=(r*s-1)*Math.pow(2,o),f+=p):(u=r*Math.pow(2,p-1)*Math.pow(2,o),f=0));o>=8;t[e+l]=255&u,l+=y,u/=256,o-=8);for(f=f<<o|u,h+=o;h>0;t[e+l]=255&f,l+=y,f/=256,h-=8);t[e+l-y]|=128*g}}},o={};function i(t){var r=o[t];if(void 0!==r)return r.exports;var e=o[t]={exports:{}},f=!0;try{n[t](e,e.exports,i),f=!1}finally{f&&delete o[t]}return e.exports}i.ab="/ROOT/node_modules/next/dist/compiled/buffer/",r.exports=i(230)}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,711241,e=>{var t=e.i(456420);let s={name:"arrow-left",size:24,node:[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]};s.node;let i=(0,t.f)(s);e.s(["f",0,i],711241)},422337,e=>{var t=e.i(843476),s=e.i(271645),i=e.i(522016),a=e.i(618566),r=e.i(980105),n=e.i(866531),l=e.i(731335),c=e.i(497346),d=e.i(519455),m=e.i(912505),u=e.i(393842),o=e.i(86963),f=e.i(111110),x=e.i(41931),h=e.i(201276),p=e.i(
|
|
1
|
+
(()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,711241,e=>{var t=e.i(456420);let s={name:"arrow-left",size:24,node:[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]};s.node;let i=(0,t.f)(s);e.s(["f",0,i],711241)},422337,e=>{var t=e.i(843476),s=e.i(271645),i=e.i(522016),a=e.i(618566),r=e.i(980105),n=e.i(866531),l=e.i(731335),c=e.i(497346),d=e.i(519455),m=e.i(912505),u=e.i(393842),o=e.i(86963),f=e.i(111110),x=e.i(41931),h=e.i(201276),p=e.i(127175),j=e.i(35209),v=e.i(532377),b=e.i(901219),g=e.i(339501),k=e.i(183444);e.s(["default",0,function(){let e=(0,a.useParams)(),w=(0,a.useRouter)(),y=e.id,{t:N}=(0,f.b)();(0,j.f)(N.importTasks.title);let{task:I,notFound:T,refresh:S}=(0,b.a)(y),R=(0,v.f)(S),E=(0,k.f)("[ImportTask]"),z=(0,g.f)(I?.status==="analyzing"||I?.status==="saving"),C=(0,s.useRef)(null),[D,P]=(0,s.useState)(null),B=I?.status==="review";(0,s.useEffect)(()=>{if(!B)return;let e=!1;return(0,p.h)(y,{image:!0}).then(t=>{e||P({id:y,data:t.imageData})}).catch(e=>h.V.error("[ImportTask]","Failed to load task image",{error:e})),()=>{e=!0}},[y,B]);let[F,U]=(0,s.useState)(null);if((0,s.useEffect)(()=>{x.k.get("/api/notebooks").then(U).catch(e=>{h.V.error("[ImportTask]","Failed to fetch notebooks",{error:e}),U([])})},[]),(0,s.useEffect)(()=>{I&&C.current!==I.id&&I.unread&&(C.current=I.id,R.markRead(I))},[I,R]),T)return(0,t.jsx)("main",{className:"mx-auto max-w-3xl px-4 py-6 md:px-8 md:py-8",children:(0,t.jsx)(m.f,{icon:r.f,title:N.importTasks.notFound,action:(0,t.jsx)(i.default,{href:"/import-tasks",children:(0,t.jsx)(d.f,{children:N.importTasks.viewTasks})})})});if(!I||"review"===I.status&&(!F||D?.id!==y))return(0,t.jsx)(o.f,{});let V=I.result?.subject,A=V?F?.find(e=>e.name.includes(V)||V.includes(e.name)):void 0,H=I.batchId?`/import-batches/${I.batchId}`:"/import-tasks",K=async e=>{let t=I.targetSubjectId??e.subjectId??null,s=await E.run(()=>(0,p.I)(I.id,{...e,subjectId:t}),t,!I.batchId);s&&(I.batchId||!t)&&w.push(H),s||S()};return(0,t.jsxs)("main",{className:`mx-auto space-y-4 px-4 py-6 md:px-8 md:py-8 ${"review"===I.status?"max-w-6xl":"max-w-3xl"}`,children:[(0,t.jsx)(u.f,{backHref:H,title:I.batchId?N.importBatch.title:N.importTasks.title,description:N.importTasks.status[I.status]}),(0,t.jsx)(c.f,{message:E.saveError,onDismiss:E.dismissSaveError}),"review"===I.status&&I.result?(0,t.jsx)(n.f,{initialData:I.result,imagePreview:D?.data??null,onSave:K,onCancel:()=>w.push(H),initialSubjectId:I.targetSubjectId||I.subjectId||A?.id}):(0,t.jsx)(l.f,{task:I,now:z,onViewItem:()=>R.viewItem(I),onRetry:()=>R.retry(I),onDiscard:async()=>{await R.discard(I)&&w.push(H)}})]})}])},590546,e=>{var t=e.i(843476),s=e.i(618566),i=e.i(519455),a=e.i(711241);e.s(["f",0,function({fallbackUrl:e,className:r}){let n=(0,s.useRouter)();return(0,t.jsx)(i.f,{variant:"ghost",size:"icon",onClick:()=>{n.push(e)},className:r,children:(0,t.jsx)(a.f,{className:"h-5 w-5"})})}])},912505,e=>{var t=e.i(843476),s=e.i(975157);e.s(["f",0,function({icon:e,title:i,description:a,action:r,className:n}){return(0,t.jsxs)("div",{className:(0,s.f)("flex flex-col items-center justify-center rounded-2xl border border-dashed bg-card/50 px-6 py-14 text-center",n),children:[(0,t.jsx)("div",{className:"mb-4 flex h-14 w-14 items-center justify-center rounded-2xl bg-accent text-accent-foreground",children:(0,t.jsx)(e,{className:"h-7 w-7"})}),(0,t.jsx)("p",{className:"font-medium",children:i}),a&&(0,t.jsx)("p",{className:"mt-1 max-w-sm text-sm text-muted-foreground",children:a}),r&&(0,t.jsx)("div",{className:"mt-5",children:r})]})}])},393842,e=>{var t=e.i(843476),s=e.i(590546),i=e.i(975157);e.s(["f",0,function({title:e,description:a,backHref:r,actions:n,titleAddon:l,className:c}){return(0,t.jsxs)("div",{className:(0,i.f)("flex items-start gap-3",c),children:[r&&(0,t.jsx)(s.f,{fallbackUrl:r,className:"-ml-2 shrink-0"}),(0,t.jsxs)("div",{className:"min-w-0 flex-1 space-y-1",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsx)("h1",{className:"truncate text-2xl font-bold tracking-tight sm:text-3xl",children:e}),l]}),a&&(0,t.jsx)("p",{className:"text-sm text-muted-foreground sm:text-base",children:a})]}),n&&(0,t.jsx)("div",{className:"flex shrink-0 items-center gap-2",children:n})]})}])},86963,e=>{var t=e.i(843476),s=e.i(632781);e.s(["f",0,function({label:e}){return(0,t.jsxs)("div",{className:"flex min-h-[50vh] flex-col items-center justify-center gap-3 text-muted-foreground",children:[(0,t.jsx)(s.f,{className:"h-7 w-7 animate-spin text-primary"}),e&&(0,t.jsx)("p",{className:"text-sm",children:e})]})}])},35209,e=>{var t=e.i(271645),s=e.i(111110);e.s(["f",0,function(...e){let{t:i}=(0,s.b)(),a=[i.pageTitle.base,...e.map(e=>"string"==typeof e?e.trim():"").filter(e=>e.length>0)].join("-");(0,t.useEffect)(()=>{document.title=a},[a])}])}])})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,229969,t=>{"use strict";var n={},i=function(t,i,r,e,s){var o=new Worker(n[i]||(n[i]=URL.createObjectURL(new Blob([t+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return o.onmessage=function(t){var n=t.data,i=n.$e$;if(i){var r=Error(i[0]);r.code=i[1],r.stack=i[2],s(r,null)}else s(null,n)},o.postMessage(r,e),o},r=Uint8Array,e=Uint16Array,s=Int32Array,o=new r([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),a=new r([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),h=new r([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),f=function(t,n){for(var i=new e(31),r=0;r<31;++r)i[r]=n+=1<<t[r-1];for(var o=new s(i[30]),r=1;r<30;++r)for(var a=i[r];a<i[r+1];++a)o[a]=a-i[r]<<5|r;return{b:i,r:o}},u=f(o,2),l=u.b,c=u.r;l[28]=258,c[258]=28;for(var p=f(a,0),v=p.b,d=p.r,g=new e(32768),y=0;y<32768;++y){var m=(43690&y)>>1|(21845&y)<<1;m=(61680&(m=(52428&m)>>2|(13107&m)<<2))>>4|(3855&m)<<4,g[y]=((65280&m)>>8|(255&m)<<8)>>1}for(var b=function(t,n,i){for(var r,s=t.length,o=0,a=new e(n);o<s;++o)t[o]&&++a[t[o]-1];var h=new e(n);for(o=1;o<n;++o)h[o]=h[o-1]+a[o-1]<<1;if(i){r=new e(1<<n);var f=15-n;for(o=0;o<s;++o)if(t[o])for(var u=o<<4|t[o],l=n-t[o],c=h[t[o]-1]++<<l,p=c|(1<<l)-1;c<=p;++c)r[g[c]>>f]=u}else for(r=new e(s),o=0;o<s;++o)t[o]&&(r[o]=g[h[t[o]-1]++]>>15-t[o]);return r},w=new r(288),y=0;y<144;++y)w[y]=8;for(var y=144;y<256;++y)w[y]=9;for(var y=256;y<280;++y)w[y]=7;for(var y=280;y<288;++y)w[y]=8;for(var x=new r(32),y=0;y<32;++y)x[y]=5;var z=b(w,9,0),k=b(w,9,1),M=b(x,5,0),S=b(x,5,1),A=function(t){for(var n=t[0],i=1;i<t.length;++i)t[i]>n&&(n=t[i]);return n},C=function(t,n,i){var r=n/8|0;return(t[r]|t[r+1]<<8)>>(7&n)&i},T=function(t,n){var i=n/8|0;return(t[i]|t[i+1]<<8|t[i+2]<<16)>>(7&n)},O=function(t){return(t+7)/8|0},D=function(t,n,i){return(null==n||n<0)&&(n=0),(null==i||i>t.length)&&(i=t.length),new r(t.subarray(n,i))},q=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,i){var r=Error(n||q[t]);if(r.code=t,Error.captureStackTrace&&Error.captureStackTrace(r,E),!i)throw r;return r},I=function(t,n,i,e){var s=t.length,f=e?e.length:0;if(!s||n.f&&!n.l)return i||new r(0);var u=!i,c=u||2!=n.i,p=n.i;u&&(i=new r(3*s));var d=function(t){var n=i.length;if(t>n){var e=new r(Math.max(2*n,t));e.set(i),i=e}},g=n.f||0,y=n.p||0,m=n.b||0,w=n.l,x=n.d,z=n.m,M=n.n,q=8*s;do{if(!w){g=C(t,y,1);var I=C(t,y+1,3);if(y+=3,I)if(1==I)w=k,x=S,z=9,M=5;else if(2==I){var U=C(t,y,31)+257,B=C(t,y+10,15)+4,j=U+C(t,y+5,31)+1;y+=14;for(var R=new r(j),$=new r(19),F=0;F<B;++F)$[h[F]]=C(t,y+3*F,7);y+=3*B;for(var G=A($),L=(1<<G)-1,Z=b($,G,1),F=0;F<j;){var K=Z[C(t,y,L)];y+=15&K;var P=K>>4;if(P<16)R[F++]=P;else{var H=0,J=0;for(16==P?(J=3+C(t,y,3),y+=2,H=R[F-1]):17==P?(J=3+C(t,y,7),y+=3):18==P&&(J=11+C(t,y,127),y+=7);J--;)R[F++]=H}}var V=R.subarray(0,U),W=R.subarray(U);z=A(V),M=A(W),w=b(V,z,1),x=b(W,M,1)}else E(1);else{var P=O(y)+4,Y=t[P-4]|t[P-3]<<8,N=P+Y;if(N>s){p&&E(0);break}c&&d(m+Y),i.set(t.subarray(P,N),m),n.b=m+=Y,n.p=y=8*N,n.f=g;continue}if(y>q){p&&E(0);break}}c&&d(m+131072);for(var Q=(1<<z)-1,X=(1<<M)-1,_=y;;_=y){var H=w[T(t,y)&Q],tt=H>>4;if((y+=15&H)>q){p&&E(0);break}if(H||E(2),tt<256)i[m++]=tt;else if(256==tt){_=y,w=null;break}else{var tn=tt-254;if(tt>264){var F=tt-257,ti=o[F];tn=C(t,y,(1<<ti)-1)+l[F],y+=ti}var tr=x[T(t,y)&X],te=tr>>4;tr||E(3),y+=15&tr;var W=v[te];if(te>3){var ti=a[te];W+=T(t,y)&(1<<ti)-1,y+=ti}if(y>q){p&&E(0);break}c&&d(m+131072);var ts=m+tn;if(m<W){var to=f-W,ta=Math.min(W,ts);for(to+m<0&&E(3);m<ta;++m)i[m]=e[to+m]}for(;m<ts;++m)i[m]=i[m-W]}}n.l=w,n.p=_,n.b=m,n.f=g,w&&(g=1,n.m=z,n.d=x,n.n=M)}while(!g)return m!=i.length&&u?D(i,0,m):i.subarray(0,m)},U=function(t,n,i){i<<=7&n;var r=n/8|0;t[r]|=i,t[r+1]|=i>>8},B=function(t,n,i){i<<=7&n;var r=n/8|0;t[r]|=i,t[r+1]|=i>>8,t[r+2]|=i>>16},j=function(t,n){for(var i=[],s=0;s<t.length;++s)t[s]&&i.push({s:s,f:t[s]});var o=i.length,a=i.slice();if(!o)return{t:K,l:0};if(1==o){var h=new r(i[0].s+1);return h[i[0].s]=1,{t:h,l:1}}i.sort(function(t,n){return t.f-n.f}),i.push({s:-1,f:25001});var f=i[0],u=i[1],l=0,c=1,p=2;for(i[0]={s:-1,f:f.f+u.f,l:f,r:u};c!=o-1;)f=i[i[l].f<i[p].f?l++:p++],u=i[l!=c&&i[l].f<i[p].f?l++:p++],i[c++]={s:-1,f:f.f+u.f,l:f,r:u};for(var v=a[0].s,s=1;s<o;++s)a[s].s>v&&(v=a[s].s);var d=new e(v+1),g=R(i[c-1],d,0);if(g>n){var s=0,y=0,m=g-n,b=1<<m;for(a.sort(function(t,n){return d[n.s]-d[t.s]||t.f-n.f});s<o;++s){var w=a[s].s;if(d[w]>n)y+=b-(1<<g-d[w]),d[w]=n;else break}for(y>>=m;y>0;){var x=a[s].s;d[x]<n?y-=1<<n-d[x]++-1:++s}for(;s>=0&&y;--s){var z=a[s].s;d[z]==n&&(--d[z],++y)}g=n}return{t:new r(d),l:g}},R=function(t,n,i){return -1==t.s?Math.max(R(t.l,n,i+1),R(t.r,n,i+1)):n[t.s]=i},$=function(t){for(var n=t.length;n&&!t[--n];);for(var i=new e(++n),r=0,s=t[0],o=1,a=function(t){i[r++]=t},h=1;h<=n;++h)if(t[h]==s&&h!=n)++o;else{if(!s&&o>2){for(;o>138;o-=138)a(32754);o>2&&(a(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(a(s),--o;o>6;o-=6)a(8304);o>2&&(a(o-3<<5|8208),o=0)}for(;o--;)a(s);o=1,s=t[h]}return{c:i.subarray(0,r),n:n}},F=function(t,n){for(var i=0,r=0;r<n.length;++r)i+=t[r]*n[r];return i},G=function(t,n,i){var r=i.length,e=O(n+2);t[e]=255&r,t[e+1]=r>>8,t[e+2]=255^t[e],t[e+3]=255^t[e+1];for(var s=0;s<r;++s)t[e+s+4]=i[s];return(e+4+r)*8},L=function(t,n,i,r,s,f,u,l,c,p,v){U(n,v++,i),++s[256];for(var d,g,y,m,k=j(s,15),S=k.t,A=k.l,C=j(f,15),T=C.t,O=C.l,D=$(S),q=D.c,E=D.n,I=$(T),R=I.c,L=I.n,Z=new e(19),K=0;K<q.length;++K)++Z[31&q[K]];for(var K=0;K<R.length;++K)++Z[31&R[K]];for(var P=j(Z,7),H=P.t,J=P.l,V=19;V>4&&!H[h[V-1]];--V);var W=p+5<<3,Y=F(s,w)+F(f,x)+u,N=F(s,S)+F(f,T)+u+14+3*V+F(Z,H)+2*Z[16]+3*Z[17]+7*Z[18];if(c>=0&&W<=Y&&W<=N)return G(n,v,t.subarray(c,c+p));if(U(n,v,1+(N<Y)),v+=2,N<Y){d=b(S,A,0),g=S,y=b(T,O,0),m=T;var Q=b(H,J,0);U(n,v,E-257),U(n,v+5,L-1),U(n,v+10,V-4),v+=14;for(var K=0;K<V;++K)U(n,v+3*K,H[h[K]]);v+=3*V;for(var X=[q,R],_=0;_<2;++_)for(var tt=X[_],K=0;K<tt.length;++K){var tn=31&tt[K];U(n,v,Q[tn]),v+=H[tn],tn>15&&(U(n,v,tt[K]>>5&127),v+=tt[K]>>12)}}else d=z,g=w,y=M,m=x;for(var K=0;K<l;++K){var ti=r[K];if(ti>255){var tn=ti>>18&31;B(n,v,d[tn+257]),v+=g[tn+257],tn>7&&(U(n,v,ti>>23&31),v+=o[tn]);var tr=31&ti;B(n,v,y[tr]),v+=m[tr],tr>3&&(B(n,v,ti>>5&8191),v+=a[tr])}else B(n,v,d[ti]),v+=g[ti]}return B(n,v,d[256]),v+g[256]},Z=new s([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),K=new r(0),P=function(t,n,i,h,f,u){var l=u.z||t.length,p=new r(h+l+5*(1+Math.ceil(l/7e3))+f),v=p.subarray(h,p.length-f),g=u.l,y=7&(u.r||0);if(n){y&&(v[0]=u.r>>3);for(var m=Z[n-1],b=m>>13,w=8191&m,x=(1<<i)-1,z=u.p||new e(32768),k=u.h||new e(x+1),M=Math.ceil(i/3),S=2*M,A=function(n){return(t[n]^t[n+1]<<M^t[n+2]<<S)&x},C=new s(25e3),T=new e(288),q=new e(32),E=0,I=0,U=u.i||0,B=0,j=u.w||0,R=0;U+2<l;++U){var $=A(U),F=32767&U,K=k[$];if(z[F]=K,k[$]=F,j<=U){var P=l-U;if((E>7e3||B>24576)&&(P>423||!g)){y=L(t,v,0,C,T,q,I,B,R,U-R,y),B=E=I=0,R=U;for(var H=0;H<286;++H)T[H]=0;for(var H=0;H<30;++H)q[H]=0}var J=2,V=0,W=w,Y=F-K&32767;if(P>2&&$==A(U-Y))for(var N=Math.min(b,P)-1,Q=Math.min(32767,U),X=Math.min(258,P);Y<=Q&&--W&&F!=K;){if(t[U+J]==t[U+J-Y]){for(var _=0;_<X&&t[U+_]==t[U+_-Y];++_);if(_>J){if(J=_,V=Y,_>N)break;for(var tt=Math.min(Y,_-2),tn=0,H=0;H<tt;++H){var ti=U-Y+H&32767,tr=z[ti],te=ti-tr&32767;te>tn&&(tn=te,K=ti)}}}K=z[F=K],Y+=F-K&32767}if(V){C[B++]=0x10000000|c[J]<<18|d[V];var ts=31&c[J],to=31&d[V];I+=o[ts]+a[to],++T[257+ts],++q[to],j=U+J,++E}else C[B++]=t[U],++T[t[U]]}}for(U=Math.max(U,j);U<l;++U)C[B++]=t[U],++T[t[U]];y=L(t,v,g,C,T,q,I,B,R,U-R,y),g||(u.r=7&y|v[y/8|0]<<3,y-=7,u.h=k,u.p=z,u.i=U,u.w=j)}else{for(var U=u.w||0;U<l+g;U+=65535){var ta=U+65535;ta>=l&&(v[y/8|0]=g,ta=l),y=G(v,y+1,t.subarray(U,ta))}u.i=l}return D(p,0,h+O(y)+f)},H=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var i=n,r=9;--r;)i=(1&i&&-0x12477ce0)^i>>>1;t[n]=i}return t}(),J=function(){var t=-1;return{p:function(n){for(var i=t,r=0;r<n.length;++r)i=H[255&i^n[r]]^i>>>8;t=i},d:function(){return~t}}},V=function(){var t=1,n=0;return{p:function(i){for(var r=t,e=n,s=0|i.length,o=0;o!=s;){for(var a=Math.min(o+2655,s);o<a;++o)e+=r+=i[o];r=(65535&r)+15*(r>>16),e=(65535&e)+15*(e>>16)}t=r,n=e},d:function(){return t%=65521,n%=65521,(255&t)<<24|(65280&t)<<8|(255&n)<<8|n>>8}}},W=function(t,n,i,e,s){if(!s&&(s={l:1},n.dictionary)){var o=n.dictionary.subarray(-32768),a=new r(o.length+t.length);a.set(o),a.set(t,o.length),t=a,s.w=o.length}return P(t,null==n.level?6:n.level,null==n.mem?s.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(t.length)))):20:12+n.mem,i,e,s)},Y=function(t,n){var i={};for(var r in t)i[r]=t[r];for(var r in n)i[r]=n[r];return i},N=function(t,n,i){for(var r=t(),e=t.toString(),s=e.slice(e.indexOf("[")+1,e.lastIndexOf("]")).replace(/\s+/g,"").split(","),o=0;o<r.length;++o){var a=r[o],h=s[o];if("function"==typeof a){n+=";"+h+"=";var f=a.toString();if(a.prototype)if(-1!=f.indexOf("[native code]")){var u=f.indexOf(" ",8)+1;n+=f.slice(u,f.indexOf("(",u))}else for(var l in n+=f,a.prototype)n+=";"+h+".prototype."+l+"="+a.prototype[l].toString();else n+=f}else i[h]=a}return n},Q=[],X=function(t){var n=[];for(var i in t)t[i].buffer&&n.push((t[i]=new t[i].constructor(t[i])).buffer);return n},_=function(t,n,r,e){if(!Q[r]){for(var s="",o={},a=t.length-1,h=0;h<a;++h)s=N(t[h],s,o);Q[r]={c:N(t[a],s,o),e:o}}var f=Y({},Q[r].e);return i(Q[r].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+n.toString()+"}",r,f,X(f),e)},tt=function(){return[r,e,s,o,a,h,l,v,k,S,g,q,b,A,C,T,O,D,E,I,tS,te,ts]},tn=function(){return[r,e,s,o,a,h,c,d,z,w,M,x,g,Z,K,b,U,B,j,R,$,F,G,L,O,D,P,W,tz,te]},ti=function(){return[tv,td]},tr=function(){return[tm]},te=function(t){return postMessage(t,[t.buffer])},ts=function(t){return t&&{out:t.size&&new r(t.size),dictionary:t.dictionary}},to=function(t,n,i,r,e,s){var o=_(i,r,e,function(t,n){o.terminate(),s(t,n)});return o.postMessage([t,n],n.consume?[t.buffer]:[]),function(){o.terminate()}},ta=function(t){return t.ondata=function(t,n){return postMessage([t,n],[t.buffer])},function(n){n.data[0]?(t.push(n.data[0],n.data[1]),postMessage([n.data[0].length])):t.flush(n.data[1])}},th=function(t,n,i,r,e,s,o){var a,h=_(t,r,e,function(t,i){t?(h.terminate(),n.ondata.call(n,t)):Array.isArray(i)?1==i.length?(n.queuedSize-=i[0],n.ondrain&&n.ondrain(i[0])):(i[1]&&h.terminate(),n.ondata.call(n,t,i[0],i[1])):o(i)});h.postMessage(i),n.queuedSize=0,n.push=function(t,i){n.ondata||E(5),a&&n.ondata(E(4,0,1),null,!!i),n.queuedSize+=t.length,h.postMessage([t,a=i],t.buffer instanceof ArrayBuffer?[t.buffer]:[])},n.terminate=function(){h.terminate()},s&&(n.flush=function(t){h.postMessage([0,t])})},tf=function(t,n){return t[n]|t[n+1]<<8},tu=function(t,n){return(t[n]|t[n+1]<<8|t[n+2]<<16|t[n+3]<<24)>>>0},tl=function(t,n){return tu(t,n)+0x100000000*tu(t,n+4)},tc=function(t,n,i){for(;i;++n)t[n]=i,i>>>=8},tp=function(t,n){var i=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:2*(9==n.level),t[9]=3,0!=n.mtime&&tc(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),i){t[3]=8;for(var r=0;r<=i.length;++r)t[r+10]=i.charCodeAt(r)}},tv=function(t){(31!=t[0]||139!=t[1]||8!=t[2])&&E(6,"invalid gzip data");var n=t[3],i=10;4&n&&(i+=(t[10]|t[11]<<8)+2);for(var r=(n>>3&1)+(n>>4&1);r>0;r-=!t[i++]);return i+(2&n)},td=function(t){var n=t.length;return(t[n-4]|t[n-3]<<8|t[n-2]<<16|t[n-1]<<24)>>>0},tg=function(t){return 10+(t.filename?t.filename.length+1:0)},ty=function(t,n){var i=n.level;if(t[0]=120,t[1]=(0==i?0:i<6?1:9==i?3:2)<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var r=V();r.p(n.dictionary),tc(t,2,r.d())}},tm=function(t,n){return((15&t[0])!=8||t[0]>>4>7||(t[0]<<8|t[1])%31)&&E(6,"invalid zlib data"),(t[1]>>5&1)==+!n&&E(6,"invalid zlib data: "+(32&t[1]?"need":"unexpected")+" dictionary"),(t[1]>>3&4)+2};function tb(t,n){return"function"==typeof t&&(n=t,t={}),this.ondata=n,t}var tw=function(){function t(t,n){if("function"==typeof t&&(n=t,t={}),this.ondata=n,this.o=t||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new r(98304),this.o.dictionary){var i=this.o.dictionary.subarray(-32768);this.b.set(i,32768-i.length),this.s.i=32768-i.length}}return t.prototype.p=function(t,n){this.ondata(W(t,this.o,0,0,this.s),n)},t.prototype.push=function(t,n){this.ondata||E(5),this.s.l&&E(4);var i=t.length+this.s.z;if(i>this.b.length){if(i>2*this.b.length-32768){var e=new r(-32768&i);e.set(this.b.subarray(0,this.s.z)),this.b=e}var s=this.b.length-this.s.z;this.b.set(t.subarray(0,s),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(t.subarray(s),32768),this.s.z=t.length-s+32768,this.s.i=32766,this.s.w=32768}else this.b.set(t,this.s.z),this.s.z+=t.length;this.s.l=1&n,(this.s.z>this.s.w+8191||n)&&(this.p(this.b,n||!1),this.s.w=this.s.i,this.s.i-=2),n&&(this.s=this.o={},this.b=K)},t.prototype.flush=function(t){if(this.ondata||E(5),this.s.l&&E(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2,t){var n=new r(6);n[0]=this.s.r>>3;var i=G(n,this.s.r,K);this.s.r=0,this.ondata(n.subarray(0,i>>3),!1)}},t}(),tx=function(t,n){th([tn,function(){return[ta,tw]}],this,tb.call(this,t,n),function(t){onmessage=ta(new tw(t.data))},6,1)};function tz(t,n){return W(t,n||{},0,0)}var tk=function(){function t(t,n){"function"==typeof t&&(n=t,t={}),this.ondata=n;var i=t&&t.dictionary&&t.dictionary.subarray(-32768);this.s={i:0,b:i?i.length:0},this.o=new r(32768),this.p=new r(0),i&&this.o.set(i)}return t.prototype.e=function(t){if(this.ondata||E(5),this.d&&E(4),this.p.length){if(t.length){var n=new r(this.p.length+t.length);n.set(this.p),n.set(t,this.p.length),this.p=n}}else this.p=t},t.prototype.c=function(t){this.s.i=+(this.d=t||!1);var n=this.s.b,i=I(this.p,this.s,this.o);this.ondata(D(i,n,this.s.b),this.d),this.o=D(i,this.s.b-32768),this.s.b=this.o.length,this.p=D(this.p,this.s.p/8|0),this.s.p&=7},t.prototype.push=function(t,n){this.e(t),this.c(n)},t}(),tM=function(t,n){th([tt,function(){return[ta,tk]}],this,tb.call(this,t,n),function(t){onmessage=ta(new tk(t.data))},7,0)};function tS(t,n){return I(t,{i:2},n&&n.out,n&&n.dictionary)}(function(){function t(t,n){this.c=J(),this.l=0,this.v=1,tw.call(this,t,n)}t.prototype.push=function(t,n){this.c.p(t),this.l+=t.length,tw.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var i=W(t,this.o,this.v&&tg(this.o),n&&8,this.s);this.v&&(tp(i,this.o),this.v=0),n&&(tc(i,i.length-8,this.c.d()),tc(i,i.length-4,this.l)),this.ondata(i,n)},t.prototype.flush=function(t){tw.prototype.flush.call(this,t)}})();var tA=function(){function t(t,n){this.v=1,this.r=0,tk.call(this,t,n)}return t.prototype.push=function(t,n){if(tk.prototype.e.call(this,t),this.r+=t.length,this.v){var i=this.p.subarray(this.v-1),e=i.length>3?tv(i):4;if(e>i.length){if(!n)return}else this.v>1&&this.onmember&&this.onmember(this.r-i.length);this.p=i.subarray(e),this.v=0}tk.prototype.c.call(this,0),this.s.f&&!this.s.l?(this.v=O(this.s.p)+9,this.s={i:0},this.o=new r(0),this.push(new r(0),n)):n&&tk.prototype.c.call(this,n)},t}(),tC=function(t,n){var i=this;th([tt,ti,function(){return[ta,tk,tA]}],this,tb.call(this,t,n),function(t){var n=new tA(t.data);n.onmember=function(t){return postMessage(t)},onmessage=ta(n)},9,0,function(t){return i.onmember&&i.onmember(t)})},tT=(function(){function t(t,n){this.c=V(),this.v=1,tw.call(this,t,n)}t.prototype.push=function(t,n){this.c.p(t),tw.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var i=W(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(ty(i,this.o),this.v=0),n&&tc(i,i.length-4,this.c.d()),this.ondata(i,n)},t.prototype.flush=function(t){tw.prototype.flush.call(this,t)}}(),function(){function t(t,n){tk.call(this,t,n),this.v=t&&t.dictionary?2:1}return t.prototype.push=function(t,n){if(tk.prototype.e.call(this,t),this.v){if(this.p.length<6&&!n)return;this.p=this.p.subarray(tm(this.p,this.v-1)),this.v=0}n&&(this.p.length<4&&E(6,"invalid zlib data"),this.p=this.p.subarray(0,-4)),tk.prototype.c.call(this,n)},t}()),tO=function(t,n){th([tt,tr,function(){return[ta,tk,tT]}],this,tb.call(this,t,n),function(t){onmessage=ta(new tT(t.data))},11,0)},tD=function(){function t(t,n){this.o=tb.call(this,t,n)||{},this.G=tA,this.I=tk,this.Z=tT}return t.prototype.i=function(){var t=this;this.s.ondata=function(n,i){t.ondata(n,i)}},t.prototype.push=function(t,n){if(this.ondata||E(5),this.s)this.s.push(t,n);else{if(this.p&&this.p.length){var i=new r(this.p.length+t.length);i.set(this.p),i.set(t,this.p.length)}else this.p=t;this.p.length>2&&(this.s=31==this.p[0]&&139==this.p[1]&&8==this.p[2]?new this.G(this.o):(15&this.p[0])!=8||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(this.o):new this.Z(this.o),this.i(),this.s.push(this.p,n),this.p=null)}},t}();function tq(t,n){tD.call(this,t,n),this.queuedSize=0,this.G=tC,this.I=tM,this.Z=tO}tq.prototype.i=function(){var t=this;this.s.ondata=function(n,i,r){t.ondata(n,i,r)},this.s.ondrain=function(n){t.queuedSize-=n,t.ondrain&&t.ondrain(n)}},tq.prototype.push=function(t,n){this.queuedSize+=t.length,tD.prototype.push.call(this,t,n)};var tE=function(t,n,i,e){for(var s in t){var o=t[s],a=n+s,h=e;Array.isArray(o)&&(h=Y(e,o[1]),o=o[0]),ArrayBuffer.isView(o)?i[a]=[o,h]:(i[a+="/"]=[new r(0),h],tE(o,a,i,e))}},tI="u">typeof TextEncoder&&new TextEncoder,tU="u">typeof TextDecoder&&new TextDecoder,tB=0;try{tU.decode(K,{stream:!0}),tB=1}catch(t){}var tj=function(t){for(var n="",i=0;;){var r=t[i++],e=(r>127)+(r>223)+(r>239);if(i+e>t.length)return{s:n,r:D(t,i-1)};e?3==e?n+=String.fromCharCode(55296|(r=((15&r)<<18|(63&t[i++])<<12|(63&t[i++])<<6|63&t[i++])-65536)>>10,56320|1023&r):1&e?n+=String.fromCharCode((31&r)<<6|63&t[i++]):n+=String.fromCharCode((15&r)<<12|(63&t[i++])<<6|63&t[i++]):n+=String.fromCharCode(r)}};function tR(t,n){if(n){for(var i=new r(t.length),e=0;e<t.length;++e)i[e]=t.charCodeAt(e);return i}if(tI)return tI.encode(t);for(var s=t.length,o=new r(t.length+(t.length>>1)),a=0,h=function(t){o[a++]=t},e=0;e<s;++e){if(a+5>o.length){var f=new r(a+8+(s-e<<1));f.set(o),o=f}var u=t.charCodeAt(e);u<128||n?h(u):(u<2048?h(192|u>>6):(u>55295&&u<57344?(h(240|(u=65536+(1047552&u)|1023&t.charCodeAt(++e))>>18),h(128|u>>12&63)):h(224|u>>12),h(128|u>>6&63)),h(128|63&u))}return D(o,0,a)}function t$(t,n){if(n){for(var i="",r=0;r<t.length;r+=16384)i+=String.fromCharCode.apply(null,t.subarray(r,r+16384));return i}if(tU)return tU.decode(t);var e=tj(t),s=e.s,i=e.r;return i.length&&E(8),s}(function(t){this.ondata=t,tB?this.t=new TextDecoder:this.p=K}).prototype.push=function(t,n){if(this.ondata||E(5),n=!!n,this.t){this.ondata(this.t.decode(t,{stream:!0}),n),n&&(this.t.decode().length&&E(8),this.t=null);return}this.p||E(4);var i=new r(this.p.length+t.length);i.set(this.p),i.set(t,this.p.length);var e=tj(i),s=e.s,o=e.r;n?(o.length&&E(8),this.p=null):this.p=o,this.ondata(s,n)},(function(t){this.ondata=t}).prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(tR(t),this.d=n||!1)};var tF=function(t){return 1==t?3:t<6?2:+(9==t)},tG=function(t,n){return n+30+tf(t,n+26)+tf(t,n+28)},tL=function(t,n,i){var r=tf(t,n+28),e=tf(t,n+30),s=t$(t.subarray(n+46,n+46+r),!(2048&tf(t,n+8))),o=n+46+r,a=tZ(t,o,e,i,tu(t,n+20),tu(t,n+24),tu(t,n+42)),h=a[0],f=a[1],u=a[2];return[tf(t,n+10),h,f,s,o+e+tf(t,n+32),u]},tZ=function(t,n,i,r,e,s,o){var a=0xffffffff==e,h=0xffffffff==s,f=0xffffffff==o,u=n+i;if(r&&a+h+f){for(;n+4<u;n+=4+tf(t,n+2))if(1==tf(t,n))return[a?tl(t,n+4+8*h):e,h?tl(t,n+4):s,f?tl(t,n+4+8*(h+a)):o,1];r<2&&E(13)}return[e,s,o,0]},tK=function(t){var n=0;if(t)for(var i in t){var r=t[i].length;r>65535&&E(9),n+=r+4}return n},tP=function(t,n,i,r,e,s,o,a){var h=r.length,f=i.extra,u=a&&a.length,l=tK(f);tc(t,n,null!=o?0x2014b50:0x4034b50),n+=4,null!=o&&(t[n++]=20,t[n++]=i.os),t[n]=20,n+=2,t[n++]=i.flag<<1|(s<0&&8),t[n++]=e&&8,t[n++]=255&i.compression,t[n++]=i.compression>>8;var c=new Date(null==i.mtime?Date.now():i.mtime),p=c.getFullYear()-1980;if((p<0||p>119)&&E(10),tc(t,n,p<<25|c.getMonth()+1<<21|c.getDate()<<16|c.getHours()<<11|c.getMinutes()<<5|c.getSeconds()>>1),n+=4,-1!=s&&(tc(t,n,i.crc),tc(t,n+4,s<0?-s-2:s),tc(t,n+8,i.size)),tc(t,n+12,h),tc(t,n+14,l),n+=16,null!=o&&(tc(t,n,u),tc(t,n+6,i.attrs),tc(t,n+10,o),n+=14),t.set(r,n),n+=h,l)for(var v in f){var d=f[v],g=d.length;tc(t,n,+v),tc(t,n+2,g),t.set(d,n+4),n+=4+g}return u&&(t.set(a,n),n+=u),n},tH=function(t,n,i,r,e){tc(t,n,0x6054b50),tc(t,n+8,i),tc(t,n+10,i),tc(t,n+12,r),tc(t,n+16,e)},tJ=function(){function t(t){this.filename=t,this.c=J(),this.size=0,this.compression=0}return t.prototype.process=function(t,n){this.ondata(null,t,n)},t.prototype.push=function(t,n){this.ondata||E(5),this.c.p(t),this.size+=t.length,n&&(this.crc=this.c.d()),this.process(t,n||!1)},t}();function tV(t,n){var i=this;n||(n={}),tJ.call(this,t),this.d=new tw(n,function(t,n){i.ondata(null,t,n)}),this.compression=8,this.flag=tF(n.level)}function tW(t,n){var i=this;n||(n={}),tJ.call(this,t),this.d=new tx(n,function(t,n,r){i.ondata(t,n,r)}),this.compression=8,this.flag=tF(n.level),this.terminate=this.d.terminate}function tY(t){this.ondata=t,this.u=[],this.d=1}tV.prototype.process=function(t,n){try{this.d.push(t,n)}catch(t){this.ondata(t,null,n)}},tV.prototype.push=function(t,n){tJ.prototype.push.call(this,t,n)},tW.prototype.process=function(t,n){this.d.push(t,n)},tW.prototype.push=function(t,n){tJ.prototype.push.call(this,t,n)},tY.prototype.add=function(t){var n=this;if(this.ondata||E(5),2&this.d)this.ondata(E(4+(1&this.d)*8,0,1),null,!1);else{var i=tR(t.filename),e=i.length,s=t.comment,o=s&&tR(s),a=e!=t.filename.length||o&&s.length!=o.length,h=e+tK(t.extra)+30;e>65535&&this.ondata(E(11,0,1),null,!1);var f=new r(h);tP(f,0,t,i,a,-1);var u=[f],l=function(){for(var t=0,i=u;t<i.length;t++){var r=i[t];n.ondata(null,r,!1)}u=[]},c=this.d;this.d=0;var p=this.u.length,v=Y(t,{f:i,u:a,o:o,t:function(){t.terminate&&t.terminate()},r:function(){if(l(),c){var t=n.u[p+1];t?t.r():n.d=1}c=1}}),d=0;t.ondata=function(i,e,s){if(i)n.ondata(i,e,s),n.terminate();else if(d+=e.length,u.push(e),s){var o=new r(16);tc(o,0,0x8074b50),tc(o,4,t.crc),tc(o,8,d),tc(o,12,t.size),u.push(o),v.c=d,v.b=h+d+16,v.crc=t.crc,v.size=t.size,c&&v.r(),c=1}else c&&l()},this.u.push(v)}},tY.prototype.end=function(){var t=this;2&this.d?this.ondata(E(4+(1&this.d)*8,0,1),null,!0):(this.d?this.e():this.u.push({r:function(){1&t.d&&(t.u.splice(-1,1),t.e())},t:function(){}}),this.d=3)},tY.prototype.e=function(){for(var t=0,n=0,i=0,e=0,s=this.u;e<s.length;e++){var o=s[e];i+=46+o.f.length+tK(o.extra)+(o.o?o.o.length:0)}for(var a=new r(i+22),h=0,f=this.u;h<f.length;h++){var o=f[h];tP(a,t,o,o.f,o.u,-o.c-2,n,o.o),t+=46+o.f.length+tK(o.extra)+(o.o?o.o.length:0),n+=o.b}tH(a,t,this.u.length,i,n),this.ondata(null,a,!0),this.d=2},tY.prototype.terminate=function(){for(var t=0,n=this.u;t<n.length;t++)n[t].t();this.d=2};var tN=function(){function t(){}return t.prototype.push=function(t,n){this.ondata(null,t,n)},t.compression=0,t}();function tQ(){var t=this;this.i=new tk(function(n,i){t.ondata(null,n,i)})}function tX(t,n){var i=this;n<32e4?this.i=new tk(function(t,n){i.ondata(null,t,n)}):(this.i=new tM(function(t,n,r){i.ondata(t,n,r)}),this.terminate=this.i.terminate)}function t_(t){this.onfile=t,this.k=[],this.o={0:tN},this.p=K}tQ.prototype.push=function(t,n){try{this.i.push(t,n)}catch(t){this.ondata(t,null,n)}},tQ.compression=8,tX.prototype.push=function(t,n){this.i.terminate&&(t=D(t,0)),this.i.push(t,n)},tX.compression=8,t_.prototype.push=function(t,n){var i=this;if(this.onfile||E(5),this.p||E(4),this.c>0){var e=Math.min(this.c,t.length),s=t.subarray(0,e);if(this.c-=e,this.d?this.d.push(s,!this.c):this.k[0].push(s),(t=t.subarray(e)).length)return this.push(t,n)}else{var o=0,a=0,h=void 0,f=void 0;this.p.length?t.length?((f=new r(this.p.length+t.length)).set(this.p),f.set(t,this.p.length)):f=this.p:f=t;for(var u=f.length,l=this.c,c=l&&this.d,p=this;a<u-4&&"break"!==function(){var t=tu(f,a);if(0x4034b50==t){o=1,h=a,p.d=null,p.c=0;var n=tf(f,a+6),r=tf(f,a+8),e=tf(f,a+26),s=tf(f,a+28);if(u>a+30+e+s){var c,v=[];p.k.unshift(v),o=2;var d=tu(f,a+18),g=tu(f,a+22),y=t$(f.subarray(a+30,a+=30+e),!(2048&n)),m=tZ(f,a,s,2,d,g,0),b=m[0],w=m[1],x=m[3];8&n&&(b=-1-x),a+=s,p.c=b;var z={name:y,compression:r,start:function(){if(z.ondata||E(5),b){var t=i.o[r];t||z.ondata(E(14,"unknown compression type "+r,1),null,!1),(c=b<0?new t(y):new t(y,b,w)).ondata=function(t,n,i){z.ondata(t,n,i)};for(var n=0;n<v.length;n++){var e=v[n];c.push(e,!1)}i.k[0]==v&&i.c?i.d=c:c.push(K,!0)}else z.ondata(null,K,!0)},terminate:function(){c&&c.terminate&&c.terminate()}};b>=0&&(z.size=b,z.originalSize=w),p.onfile(z)}return"break"}if(l){if(0x8074b50==t)return h=a+=12+(-2==l&&8),o=3,p.c=0,"break";else if(0x2014b50==t)return h=a-=4,o=3,p.c=0,"break"}}();++a);if(this.p=K,l<0){var v=o?f.subarray(0,h-12-(-2==l&&8)-(0x8074b50==tu(f,h-16)&&4)):f.subarray(0,a);c?c.push(v,!!o):this.k[+(2==o)].push(v)}if(2&o)return this.push(f.subarray(a),n);this.p=f.subarray(a)}n&&(this.c&&E(13),this.p=null)},t_.prototype.register=function(t){this.o[t.compression]=t};var t0="function"==typeof queueMicrotask?queueMicrotask:"function"==typeof setTimeout?setTimeout:function(t){t()};t.s(["I",0,t$,"D",0,tR,"t",0,function(t,n,i){i||(i=n,n={}),"function"!=typeof i&&E(7);var e=[],s=function(){for(var t=0;t<e.length;++t)e[t]()},o={},a=function(t,n){t0(function(){i(t,n)})};t0(function(){a=i});for(var h=t.length-22;0x6054b50!=tu(t,h);--h)if(!h||t.length-h>65558)return a(E(13,0,1),null),s;var f=tf(t,h+8);if(f){var u=f,l=tu(t,h+16),c=0x7064b50==tu(t,h-20);if(c){var p=tu(t,h-12);(c=0x6064b50==tu(t,p))&&(u=f=tu(t,p+32),l=tu(t,p+48))}for(var v=n&&n.filter,d=0;d<u;++d)!function(){var n=tL(t,l,c),i=n[0],h=n[1],u=n[2],p=n[3],d=n[4],g=tG(t,n[5]);l=d;var y=function(t,n){t?(s(),a(t,null)):(n&&(o[p]=n),--f||a(null,o))};if(!v||v({name:p,size:h,originalSize:u,compression:i}))if(i)if(8==i){var m,b,w=t.subarray(g,g+h);if(u<524288||h>.8*u)try{y(null,tS(w,{out:new r(u)}))}catch(t){y(t,null)}else e.push((m={size:u},(b=y)||(b=m,m={}),"function"!=typeof b&&E(7),to(w,m,[tt],function(t){return te(tS(t.data[0],ts(t.data[1])))},1,b)))}else y(E(14,"unknown compression type "+i,1),null);else y(null,D(t,g,g+h));else y(null,null)}()}else a(null,{});return s},"r",0,function(t,n){for(var i={},e=t.length-22;0x6054b50!=tu(t,e);--e)(!e||t.length-e>65558)&&E(13);var s=tf(t,e+8);if(!s)return{};var o=tu(t,e+16),a=0x7064b50==tu(t,e-20);if(a){var h=tu(t,e-12);(a=0x6064b50==tu(t,h))&&(s=tu(t,h+32),o=tu(t,h+48))}for(var f=n&&n.filter,u=0;u<s;++u){var l=tL(t,o,a),c=l[0],p=l[1],v=l[2],d=l[3],g=l[4],y=tG(t,l[5]);o=g,(!f||f({name:d,size:p,originalSize:v,compression:c}))&&(c?8==c?i[d]=tS(t.subarray(y,y+p),{out:new r(v)}):E(14,"unknown compression type "+c):i[d]=D(t,y,y+p))}return i},"J",0,function(t,n,i){i||(i=n,n={}),"function"!=typeof i&&E(7);var e={};tE(t,"",e,n);var s=Object.keys(e),o=s.length,a=0,h=0,f=o,u=Array(o),l=[],c=function(){for(var t=0;t<l.length;++t)l[t]()},p=function(t,n){t0(function(){i(t,n)})};t0(function(){p=i});var v=function(){var t=new r(h+22),n=a,i=h-a;h=0;for(var e=0;e<f;++e){var s=u[e];try{var o=s.c.length;tP(t,h,s,s.f,s.u,o);var l=30+s.f.length+tK(s.extra),c=h+l;t.set(s.c,c),tP(t,a,s,s.f,s.u,o,h,s.m),a+=16+l+(s.m?s.m.length:0),h=c+o}catch(t){return p(t,null)}}tH(t,a,u.length,i,n),p(null,t)};o||v();for(var d=function(t){var n,i,r=s[t],f=e[r],d=f[0],g=f[1],y=J(),m=d.length;y.p(d);var b=tR(r),w=b.length,x=g.comment,z=x&&tR(x),k=z&&z.length,M=tK(g.extra),S=8*(0!=g.level),A=function(n,i){if(n)c(),p(n,null);else{var e=i.length;u[t]=Y(g,{size:m,crc:y.d(),c:i,f:b,m:z,u:w!=r.length||z&&x.length!=k,compression:S}),a+=30+w+M+e,h+=76+2*(w+M)+(k||0)+e,--o||v()}};if(w>65535&&A(E(11,0,1),null),S)if(m<16e4)try{A(null,tz(d,g))}catch(t){A(t,null)}else l.push((n=g,(i=A)||(i=n,n={}),"function"!=typeof i&&E(7),to(d,n,[tn],function(t){return te(tz(t.data[0],t.data[1]))},0,i)));else A(null,d)},g=0;g<f;++g)d(g);return c}])}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,367784,e=>{var s=e.i(456420);let i={name:"log-out",size:24,node:[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]]};i.node;let a=(0,s.f)(i);e.s(["f",0,a],367784)},713452,753817,128093,e=>{var s=e.i(843476),i=e.i(271645),a=e.i(551757),n=e.i(632781),t=e.i(583967),r=e.i(456420);let l={name:"zap",size:24,node:[["path",{d:"M15.914 4a1.5 1.5 0 00-2.474-1.561l-9 9A1.5 1.5 0 005.5 14h4.002a.5.5 0 01.471.666L8.086 20a1.5 1.5 0 002.475 1.56l9-9A1.5 1.5 0 0018.5 10h-3.997a.5.5 0 01-.472-.667z",key:"1v7up4"}]]};l.node;let o=(0,r.f)(l);var c=e.i(519455),d=e.i(111110);function m({detail:e}){let{t:i}=(0,d.b)();return e?(0,s.jsxs)("p",{className:"mt-1 rounded bg-background/60 px-2 py-1 font-mono text-[11px] leading-relaxed text-red-700 dark:text-red-300 break-all select-text",children:[(0,s.jsx)("span",{className:"font-sans text-muted-foreground",children:i.settings.ai.providerErrorDetail}),e]}):null}e.s(["f",0,m],753817);let p={minimax:{name:"MiniMax",nameEn:"MiniMax",baseUrl:"https://api.minimax.cn/v1",model:"MiniMax-M3.1-Flash",envPrefix:"MINIMAX",consoleUrl:"https://platform.minimax.cn",docs:{cn:"https://platform.minimax.cn/docs/api-reference/api-overview",intl:"https://platform.minimax.io/docs/api-reference/api-overview",apiKey:"https://platform.minimax.cn/docs/guides/quickstart-preparation",models:"https://platform.minimax.cn/docs/guides/models-intro"}},glm:{name:"智谱 GLM",nameEn:"Zhipu GLM",baseUrl:"https://open.bigmodel.cn/api/paas/v4",model:"glm-5.3-flash",envPrefix:"GLM",consoleUrl:"https://open.bigmodel.cn",docs:{cn:"https://docs.bigmodel.cn/cn/guide/start/quick-start",intl:"https://docs.z.ai/guides/overview/quick-start",apiKey:"https://docs.bigmodel.cn/cn/guide/start/quick-start",models:"https://docs.bigmodel.cn/cn/guide/start/model-overview"}},deepseek:{name:"DeepSeek",nameEn:"DeepSeek",baseUrl:"https://api.deepseek.com",model:"deepseek-v4-flash",envPrefix:"DEEPSEEK",consoleUrl:"https://platform.deepseek.com",docs:{cn:"https://api-docs.deepseek.com/zh-cn/",apiKey:"https://api-docs.deepseek.com/zh-cn/",models:"https://api-docs.deepseek.com/zh-cn/quick_start/pricing"}},kimi:{name:"Kimi",nameEn:"Kimi",baseUrl:"https://api.moonshot.cn/v1",model:"kimi-k3.1-pro",envPrefix:"KIMI",consoleUrl:"https://platform.kimi.com",docs:{cn:"https://platform.moonshot.cn/docs/introduction",intl:"https://platform.moonshot.ai/docs/introduction",apiKey:"https://platform.moonshot.cn/docs/introduction",models:"https://platform.moonshot.cn/docs/pricing/chat"}},qwen:{name:"千问 Qwen",nameEn:"Qwen",baseUrl:"https://token-plan.cn-beijing.maas.aliyuncs.com/compatible-mode/v1",model:"qwen3.8-max",envPrefix:"QWEN",consoleUrl:"https://bailian.console.aliyun.com",docs:{cn:"https://help.aliyun.com/zh/model-studio/token-plan-personal-quick-start",intl:"https://www.alibabacloud.com/help/en/model-studio/token-plan-personal-quick-start",apiKey:"https://help.aliyun.com/zh/model-studio/token-plan-personal-quick-start",models:"https://help.aliyun.com/zh/model-studio/models"}},stepfun:{name:"阶跃星辰 StepFun",nameEn:"StepFun",baseUrl:"https://api.stepfun.com/step_plan/v1",model:"step-5-preview",envPrefix:"STEPFUN",consoleUrl:"https://platform.stepfun.com",docs:{cn:"https://platform.stepfun.com/docs/zh/guides/developer/openai",intl:"https://platform.stepfun.ai/docs/en/guides/developer/openai",apiKey:"https://platform.stepfun.com/docs/zh/guides/developer/openai",models:"https://platform.stepfun.com/docs/zh/guides/models/list"}},volcengine:{name:"火山引擎 豆包",nameEn:"Volcengine Doubao",baseUrl:"https://ark.cn-beijing.volces.com/api/v3",model:"doubao-seed-evolving",envPrefix:"VOLCENGINE",consoleUrl:"https://console.volcengine.com/ark",docs:{cn:"https://www.volcengine.com/docs/82379/1330626",intl:"https://docs.byteplus.com/en/docs/ModelArk/1330626",apiKey:"https://www.volcengine.com/docs/82379/1541594",models:"https://www.volcengine.com/docs/82379/1330310"}},"volcengine-agent":{name:"火山引擎 Agent Plan",nameEn:"Volcengine Agent Plan",baseUrl:"https://ark.cn-beijing.volces.com/api/plan/v3",model:"doubao-seed-evolving",envPrefix:"VOLCENGINE_AGENT",consoleUrl:"https://console.volcengine.com/ark",docs:{cn:"https://ark.volcengine.com/region:cn-beijing/docs/82379/2160841?lang=zh",apiKey:"https://ark.volcengine.com/region:cn-beijing/docs/82379/2160841?lang=zh",models:"https://www.volcengine.com/docs/82379/2366394"}},"volcengine-coding":{name:"火山引擎 Coding Plan",nameEn:"Volcengine Coding Plan",baseUrl:"https://ark.cn-beijing.volces.com/api/coding/v3",model:"doubao-seed-evolving",envPrefix:"VOLCENGINE_CODING",consoleUrl:"https://console.volcengine.com/ark",docs:{cn:"https://www.volcengine.com/docs/82379/1928261",apiKey:"https://www.volcengine.com/docs/82379/1928261",models:"https://www.volcengine.com/docs/82379/1928261"}},"volcengine-free":{name:"火山引擎(免费试用)",nameEn:"Volcengine (free trial)",baseUrl:"https://ark.cn-beijing.volces.com/api/v3",model:"doubao-seed-evolving",envPrefix:"VOLCENGINE_FREE",consoleUrl:"https://console.volcengine.com/ark",docs:{cn:"https://www.volcengine.com/docs/82379/1399514",apiKey:"https://www.volcengine.com/docs/82379/1541594",models:"https://www.volcengine.com/docs/82379/1330310"}}},x=Object.keys(p);function u(e){return"string"==typeof e&&Object.prototype.hasOwnProperty.call(p,e)}e.s(["$",0,p,"U",0,x,"z",0,function(e,s){let i=p[e];return"zh"===s?i.name:i.nameEn},"j",0,u,"k",0,function(e,s){let i=p[e];return{apiKey:s?.apiKey||"",baseUrl:s?.baseUrl||i.baseUrl,model:s?.model||i.model}}],128093);var h=e.i(41931),g=e.i(303163),f=e.i(201276);e.s(["f",0,function({config:e,saving:r,saveButton:l}){let{t:p,language:x}=(0,d.b)(),[v,j]=(0,i.useState)(!1),[y,N]=(0,i.useState)(null),b=e=>p.settings?.ai?.errors?.[e]||e.replace("UNKNOWN:",""),k=async()=>{let s=function(e,s){let i=e.aiProvider;if("openai"===i){let a=e.openai?.instances?.find(s=>s.id===e.openai?.activeInstanceId);return a?.apiKey?{ok:!0,body:{provider:i,apiKey:a.apiKey,baseUrl:a.baseUrl,model:a.model,language:s}}:{ok:!1,error:"API_KEY_REQUIRED"}}if("azure"===i){let a=e.azure;return a?.apiKey&&a.endpoint&&a.deploymentName?{ok:!0,body:{provider:i,apiKey:a.apiKey,endpoint:a.endpoint,deploymentName:a.deploymentName,apiVersion:a.apiVersion,model:a.model,language:s}}:{ok:!1,error:"AZURE_CONFIG_INCOMPLETE"}}if("minimax-code"===i)return{ok:!0,body:{provider:i,model:e.minimaxCode?.model,language:s}};if("gemini"===i||"anthropic"===i||u(i)){let a=e[i];return a?.apiKey?{ok:!0,body:{provider:i,apiKey:a.apiKey,baseUrl:a.baseUrl,model:a.model,language:s}}:{ok:!1,error:"API_KEY_REQUIRED"}}return{ok:!1,error:"UNSUPPORTED_PROVIDER"}}(e,x);if(!s.ok){if("UNSUPPORTED_PROVIDER"===s.error)return;N({success:!1,textSupport:!1,visionSupport:!1,textError:"AZURE_CONFIG_INCOMPLETE"===s.error?p.settings?.ai?.validationAzureEndpointRequired||"Azure config is incomplete":p.settings?.ai?.validationApiKeyRequired||"API Key is required"});return}j(!0),N(null);try{N(await h.k.post("/api/ai/test",s.body))}catch(e){f.V.error("[AiConnectionTest]","AI connection test failed",{error:e}),N({success:!1,textSupport:!1,visionSupport:!1,textError:(0,g.Z)(e)})}finally{j(!1)}};return(0,s.jsxs)("div",{className:"space-y-3 pt-3 border-t",children:[(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsxs)(c.f,{type:"button",variant:"outline",onClick:k,disabled:v||r,className:"flex-1",children:[v?(0,s.jsx)(n.f,{className:"mr-2 h-4 w-4 animate-spin"}):(0,s.jsx)(o,{className:"mr-2 h-4 w-4"}),v?p.settings?.ai?.testing||"Testing...":p.settings?.ai?.testConnection||"Test Connection"]}),l]}),y&&(0,s.jsxs)("div",{className:`p-3 rounded-md text-sm ${y.success?"bg-green-50 dark:bg-green-950/40 border border-green-200 dark:border-green-900":"bg-red-50 dark:bg-red-950/40 border border-red-200 dark:border-red-900"}`,children:[(0,s.jsx)("div",{className:"flex items-center gap-2 font-medium mb-2",children:y.success?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.f,{className:"h-4 w-4 text-green-600"}),(0,s.jsx)("span",{className:"text-green-700 dark:text-green-300",children:p.settings?.ai?.testSuccess||"Connection Successful"}),y.modelInfo&&(0,s.jsxs)("span",{className:"text-green-600 text-xs",children:["(",y.modelInfo,")"]})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(t.f,{className:"h-4 w-4 text-red-600"}),(0,s.jsx)("span",{className:"text-red-700 dark:text-red-300",children:p.settings?.ai?.testFailed||"Connection Failed"})]})}),y.success&&(0,s.jsxs)("div",{className:"space-y-1 text-xs",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsxs)("span",{className:"text-muted-foreground",children:[p.settings?.ai?.textSupport||"Text Generation",":"]}),(0,s.jsxs)("span",{className:"text-green-600",children:["✓ ",p.settings?.ai?.supported||"Supported"]})]}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsxs)("span",{className:"text-muted-foreground",children:[p.settings?.ai?.visionSupport||"Vision/Multimodal",":"]}),y.visionSupport?(0,s.jsxs)("span",{className:"text-green-600",children:["✓ ",p.settings?.ai?.supported||"Supported"]}):(0,s.jsxs)("span",{className:"text-amber-600",children:["✗ ",y.visionError?b(y.visionError):p.settings?.ai?.notSupported||"Not Supported"]})]}),!y.visionSupport&&(0,s.jsx)(m,{detail:y.visionErrorDetail}),(0,s.jsx)("p",{className:"text-muted-foreground/60 text-[10px] pl-1",children:p.settings?.ai?.testNetworkNote})]}),!y.success&&y.textError&&(0,s.jsx)("p",{className:"text-red-600 text-xs mt-1",children:b(y.textError)}),!y.success&&(0,s.jsx)(m,{detail:y.textErrorDetail})]})]})}],713452)},10038,835467,e=>{var s=e.i(843476),i=e.i(632781),a=e.i(519455),n=e.i(110204),t=e.i(967489),r=e.i(713452),l=e.i(459649),o=e.i(118585),c=e.i(75977),d=e.i(482022),m=e.i(97923),p=e.i(367784),x=e.i(741120),u=e.i(487486),h=e.i(793479),g=e.i(975153),f=e.i(699375),v=e.i(111110),j=e.i(215519),y=e.i(306831);function N({checkin:e,autoCheckin:t,onAutoCheckinChange:r,busy:l,onCheckin:o}){let c,{t:d}=(0,v.b)(),{timeZone:m}=(0,j.M)(),p=d.settings?.ai?.minimaxCode,{today:x,last:h}=e,b=h&&"failed"!==h.status?h:null,k=!!(x?.checkedToday||b),w=String(b?.points??(x?x.points+x.bonusPoints:0)),C=String(b?.streakDays??x?.streakDays??0);return c=b?.trigger==="auto"&&"checked-in"===b.status?(p?.checkinAuto||"Checked in automatically today at {time} (+{points} credits, day {days} in a row)").replace("{time}",(0,y.r)(b.at,"HH:mm",m)).replace("{points}",w).replace("{days}",C):k?(p?.checkinDone||"Checked in today (+{points} credits, day {days} in a row)").replace("{points}",w).replace("{days}",C):h?.status==="failed"?(p?.checkinFailed||"Check-in failed: {error}").replace("{error}",h.error||""):e.autoCheckin?p?.checkinWillAuto||"Not checked in yet today. The app will check in automatically within the hour.":p?.checkinNotYet||"Not checked in yet today",(0,s.jsxs)("div",{className:"space-y-3 border-t pt-3",children:[(0,s.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-2 text-sm",children:[(0,s.jsxs)("div",{className:"flex min-w-0 items-center gap-2",children:[(0,s.jsx)("span",{className:"text-muted-foreground",children:p?.checkinToday||"Today's check-in"}),(0,s.jsxs)(u.f,{variant:k?"default":h?.status==="failed"?"destructive":"secondary",children:[(0,s.jsx)(g.f,{className:"mr-1 h-3 w-3"}),k?p?.checkinSuccess||"Checked in":p?.checkinNotYet||"Not yet"]})]}),!k&&(0,s.jsxs)(a.f,{size:"sm",variant:"outline",onClick:o,disabled:l,children:[l&&(0,s.jsx)(i.f,{className:"mr-2 h-4 w-4 animate-spin"}),p?.checkinNow||"Check in now"]})]}),(0,s.jsx)("p",{className:"text-xs text-muted-foreground break-words",children:c}),(0,s.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,s.jsxs)("div",{className:"space-y-1",children:[(0,s.jsx)(n.f,{htmlFor:"minimax-code-auto-checkin",children:p?.autoCheckin||"Daily auto check-in"}),(0,s.jsx)("p",{className:"text-xs text-muted-foreground",children:p?.autoCheckinHint})]}),(0,s.jsx)(f.f,{id:"minimax-code-auto-checkin",checked:t,onCheckedChange:r})]})]})}let b=["MiniMax-M3.1-Flash","MiniMax-M3","MiniMax-M2.7-highspeed","MiniMax-M2.7"];var k=e.i(271645),w=e.i(41931),C=e.i(303163),K=e.i(294114),U=e.i(201276);function M({value:e,onChange:t}){let{t:r}=(0,v.b)(),l=r.settings?.ai?.minimaxCode,{status:o,loading:c,pending:g,busy:f,refresh:j,login:y,logout:P,checkin:S}=function(){let{t:e}=(0,v.b)(),s=e.settings?.ai?.minimaxCode,[i,a]=(0,k.useState)(null),[n,t]=(0,k.useState)(!0),[r,l]=(0,k.useState)(null),[o,c]=(0,k.useState)(!1),d=(0,k.useRef)(null),m=(0,k.useCallback)(async()=>{t(!0);try{let e=await w.k.get("/api/minimax-code");a(e),e.pendingLogin&&l(e.pendingLogin)}catch(e){U.V.error("[MiniMaxCode]","Failed to load status",{error:e})}finally{t(!1)}},[]);(0,k.useEffect)(()=>{m()},[m]),(0,k.useEffect)(()=>{if(!r)return;let e=!1,i=async()=>{try{let a=await w.k.get("/api/minimax-code/login");if(e)return;if("pending"===a.status){d.current=setTimeout(i,r.intervalMs);return}l(null),"ok"===a.status?K.c.success(s?.loginSuccess||"Signed in"):"expired"===a.status?K.c.error(s?.loginExpired||"Authorization timed out"):"denied"===a.status&&K.c.error(s?.loginDenied||"Authorization declined"),m()}catch(i){if(e)return;l(null),K.c.error(`${s?.loginFailed||"Sign-in failed"}: ${(0,C.Z)(i)}`)}};return d.current=setTimeout(i,r.intervalMs),()=>{e=!0,d.current&&clearTimeout(d.current)}},[r,m,s]);let p=async()=>{c(!0);try{await w.k.delete("/api/minimax-code"),l(null),await m()}catch(e){K.c.error((0,C.Z)(e))}finally{c(!1)}},x=async()=>{c(!0);try{let e=await w.k.post("/api/minimax-code/checkin",{});"failed"===e.status?K.c.error((s?.checkinFailed||"Check-in failed: {error}").replace("{error}",e.error||"")):K.c.success(s?.checkinSuccess||"Checked in"),await m()}catch(e){K.c.error((0,C.Z)(e))}finally{c(!1)}};return{status:i,loading:n,pending:r,busy:o,refresh:m,login:async()=>{c(!0);try{let e=await w.k.post("/api/minimax-code/login",{});l(e),window.open(e.url,"_blank","noopener,noreferrer")}catch(e){K.c.error(`${s?.loginFailed||"Sign-in failed"}: ${(0,C.Z)(e)}`)}finally{c(!1)}},logout:p,checkin:x}}(),E=o?.login??"none",z=o?.account,I=o?.credits,A={none:l?.statusNone||"Not signed in",active:l?.statusActive||"Signed in",expired:l?.statusExpired||"Login expired"}[E];return(0,s.jsxs)("div",{className:"space-y-3 animate-in fade-in slide-in-from-top-2",children:[(0,s.jsx)("p",{className:"text-xs text-muted-foreground",children:l?.intro}),(0,s.jsxs)("section",{className:"space-y-3 rounded-md border bg-background p-3","aria-label":l?.title||"MiniMax Code account",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,s.jsx)("h4",{className:"text-sm font-medium",children:l?.title||"MiniMax Code account"}),(0,s.jsx)(a.f,{variant:"ghost",size:"sm",onClick:()=>void j(),disabled:c,"aria-label":l?.refresh||"Refresh",children:(0,s.jsx)(x.f,{className:`h-4 w-4 ${c?"animate-spin":""}`})})]}),(0,s.jsxs)("dl",{className:"grid grid-cols-[auto_1fr] gap-x-4 gap-y-2 text-sm",children:[(0,s.jsx)("dt",{className:"text-muted-foreground",children:l?.loginStatus||"Login status"}),(0,s.jsxs)("dd",{className:"flex min-w-0 flex-wrap items-center gap-2",children:[(0,s.jsx)(u.f,{variant:"active"===E?"default":"expired"===E?"destructive":"secondary",children:A}),z&&(0,s.jsx)("span",{className:"truncate text-muted-foreground",children:z.name||z.email||z.userId})]}),"active"===E&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("dt",{className:"text-muted-foreground",children:l?.credits||"Remaining credits"}),(0,s.jsx)("dd",{children:I?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"font-medium tabular-nums",children:I.total}),(0,s.jsx)("span",{className:"ml-2 text-xs text-muted-foreground",children:(l?.creditsDetail||"Free {free} · Purchased {purchased}").replace("{free}",String(I.free)).replace("{purchased}",String(I.purchased))})]}):(0,s.jsx)("span",{className:"text-muted-foreground",children:l?.creditsUnavailable||"Unavailable"})})]})]}),"active"===E&&o&&(0,s.jsx)(N,{checkin:o.checkin,autoCheckin:e?.autoCheckin!==!1,onAutoCheckinChange:s=>t({...e,autoCheckin:s}),busy:f,onCheckin:()=>void S()}),g?(0,s.jsxs)("div",{className:"space-y-1 rounded-md bg-muted/50 p-3 text-sm",children:[(0,s.jsxs)("p",{className:"flex items-center gap-2",children:[(0,s.jsx)(i.f,{className:"h-4 w-4 animate-spin"}),l?.waiting]}),g.userCode&&(0,s.jsxs)("p",{children:[l?.userCode||"Verification code",": ",(0,s.jsx)("span",{className:"font-mono font-medium",children:g.userCode})]}),(0,s.jsxs)("a",{href:g.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 underline",children:[l?.openLink||"Open the authorization page"," ",(0,s.jsx)(d.f,{className:"h-3 w-3"})]})]}):(0,s.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,s.jsxs)(a.f,{size:"sm",onClick:()=>void y(),disabled:f,children:[f?(0,s.jsx)(i.f,{className:"mr-2 h-4 w-4 animate-spin"}):(0,s.jsx)(m.f,{className:"mr-2 h-4 w-4"}),"none"===E?l?.login||"Sign in with browser":l?.relogin||"Sign in again"]}),"none"!==E&&(0,s.jsxs)(a.f,{size:"sm",variant:"outline",onClick:()=>void P(),disabled:f,children:[(0,s.jsx)(p.f,{className:"mr-2 h-4 w-4"}),l?.logout||"Sign out"]})]})]}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)(n.f,{htmlFor:"minimax-code-model",children:l?.model||"Model"}),(0,s.jsx)(h.f,{id:"minimax-code-model",list:"minimax-code-models",value:e?.model||"",onChange:s=>t({...e,model:s.target.value}),placeholder:"MiniMax-M3.1-Flash"}),(0,s.jsx)("datalist",{id:"minimax-code-models",children:b.map(e=>(0,s.jsx)("option",{value:e},e))}),(0,s.jsx)("p",{className:"text-xs text-muted-foreground",children:l?.modelHint})]}),(0,s.jsx)("p",{className:"text-xs text-muted-foreground",children:l?.risk})]})}var P=e.i(77071),S=e.i(759659),E=e.i(464034),z=e.i(434901),I=e.i(37038),A=e.i(62189);function T({value:e,onChange:i}){let{t:r}=(0,v.b)(),l=(0,A.f)("openai"),o=e?.instances||[],c=e?.activeInstanceId,d=o.find(e=>e.id===c),m=(s,a)=>{i({...e,instances:o.map(e=>e.id===c?{...e,[s]:a}:e)})},p=async()=>{if(!c||!await (0,K.u)(r.settings?.ai?.confirmDelete||"Delete this instance?",{destructive:!0}))return;let e=o.filter(e=>e.id!==c);i({instances:e,activeInstanceId:e[0]?.id})};return(0,s.jsxs)("div",{className:"space-y-3 animate-in fade-in slide-in-from-top-2",children:[(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)(n.f,{children:r.settings?.ai?.instances||"Instance"}),(0,s.jsxs)(a.f,{type:"button",variant:"outline",size:"sm",onClick:()=>{if(o.length>=10)return;let e={id:"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let s=16*Math.random()|0;return("x"===e?s:3&s|8).toString(16)}),name:`Instance ${o.length+1}`,apiKey:"",baseUrl:"https://api.openai.com/v1",model:"gpt-6.1-sol"};i({instances:[...o,e],activeInstanceId:e.id})},disabled:o.length>=10,className:"h-7 px-2 text-xs",children:[(0,s.jsx)(P.f,{className:"h-3 w-3 mr-1"}),r.settings?.ai?.addInstance||"Add"]})]}),o.length>0?(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsxs)(t.d,{value:c||"",onValueChange:s=>i({...e,activeInstanceId:s}),children:[(0,s.jsx)(t.P,{className:"flex-1",children:(0,s.jsx)(t.U,{placeholder:r.settings?.ai?.selectInstance||"Select Instance"})}),(0,s.jsx)(t.r,{children:o.map(e=>(0,s.jsx)(t.T,{value:e.id,children:e.name},e.id))})]}),o.length>1&&(0,s.jsx)(a.f,{type:"button",variant:"outline",size:"icon",onClick:p,className:"h-10 w-10 text-destructive hover:text-destructive",children:(0,s.jsx)(S.f,{className:"h-4 w-4"})})]}):(0,s.jsx)("p",{className:"text-sm text-muted-foreground",children:r.settings?.ai?.noInstances||"No instances configured. Click 'Add' to create one."}),o.length>=10&&(0,s.jsx)("p",{className:"text-xs text-amber-600",children:r.settings?.ai?.maxInstancesReached||"Maximum instances reached (10)"})]}),d&&(0,s.jsxs)("div",{className:"space-y-3 p-3 border rounded-md bg-background",children:[(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsxs)(n.f,{children:[r.settings?.ai?.instanceName||"Instance Name"," ",(0,s.jsx)("span",{className:"text-destructive",children:"*"})]}),(0,s.jsx)(h.f,{value:d.name||"",onChange:e=>m("name",e.target.value),placeholder:"e.g. GLM-4V",className:d.name?.trim()?"":"border-destructive"})]}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)(z.f,{label:(0,s.jsxs)(s.Fragment,{children:["API Key ",(0,s.jsx)("span",{className:"text-destructive",children:"*"})]}),href:l?.apiKey,linkText:r.settings.ai.docLinks.apiKey}),(0,s.jsx)(I.f,{value:d.apiKey||"",onChange:e=>m("apiKey",e.target.value),placeholder:"sk-...",className:d.apiKey?.trim()?"":"border-destructive"})]}),(0,s.jsxs)("div",{className:"space-y-2 pt-4 border-t",children:[(0,s.jsxs)(n.f,{children:["Base URL ",(0,s.jsx)("span",{className:"text-destructive",children:"*"})]}),(0,s.jsx)(h.f,{value:d.baseUrl||"",onChange:e=>m("baseUrl",e.target.value),placeholder:"https://api.openai.com/v1",className:d.baseUrl?.trim()?"":"border-destructive"})]}),(0,s.jsx)(E.f,{provider:"openai",apiKey:d.apiKey,baseUrl:d.baseUrl,currentModel:d.model,onModelChange:e=>m("model",e),docsHref:l?.models})]})]})}function F({provider:e}){let{t:i}=(0,v.b)(),a=i.settings.ai.providerDocs,n=(0,A.f)(e);if(!n)return null;let t=[n.cn&&{href:n.cn,label:n.intl?a.cn:a.official},n.intl&&{href:n.intl,label:n.cn?a.intl:a.official}].filter(e=>!!e);return(0,s.jsxs)("p",{className:"flex flex-wrap items-center gap-x-3 gap-y-1 text-xs text-muted-foreground",children:[(0,s.jsx)("span",{children:a.title}),t.map(e=>(0,s.jsxs)("a",{href:e.href,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 underline",children:[e.label,(0,s.jsx)(d.f,{className:"h-3 w-3"})]},e.href))]})}var R=e.i(128093);function L({provider:e,value:i,onChange:a}){let{t}=(0,v.b)(),r=R.$[e],l=(e,s)=>a({...i,[e]:s}),o={qwen:t.settings?.ai?.qwenBaseUrlHint,stepfun:t.settings?.ai?.stepfunBaseUrlHint,volcengine:t.settings?.ai?.volcengineBaseUrlHint,"volcengine-agent":t.settings?.ai?.volcengineAgentBaseUrlHint,"volcengine-coding":t.settings?.ai?.volcengineCodingBaseUrlHint};return(0,s.jsxs)("div",{className:"space-y-3 animate-in fade-in slide-in-from-top-2",children:["volcengine-free"===e&&(0,s.jsxs)("div",{className:"rounded-md border border-green-200 bg-green-50 p-3 text-xs text-green-800 dark:border-green-900 dark:bg-green-950/40 dark:text-green-300",children:[(0,s.jsx)("p",{className:"font-medium",children:t.settings.ai.volcengineFree.title}),(0,s.jsx)("p",{className:"mt-1",children:t.settings.ai.volcengineFree.body})]}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)(z.f,{label:"API Key",href:r.docs.apiKey,linkText:t.settings.ai.docLinks.apiKey}),(0,s.jsx)(I.f,{value:i?.apiKey||"",onChange:e=>l("apiKey",e.target.value),placeholder:"sk-..."}),(0,s.jsxs)("p",{className:"text-xs text-muted-foreground",children:[t.settings?.ai?.vendorApiKeyHint||"Get an API key from the console:"," ",(0,s.jsx)("a",{href:r.consoleUrl,target:"_blank",rel:"noopener noreferrer",className:"underline break-all",children:r.consoleUrl})]})]}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)(n.f,{children:"Base URL (Optional)"}),(0,s.jsx)(h.f,{value:i?.baseUrl||"",onChange:e=>l("baseUrl",e.target.value),placeholder:r.baseUrl}),(0,s.jsx)("p",{className:"text-xs text-muted-foreground",children:o[e]??t.settings?.ai?.vendorBaseUrlHint})]}),(0,s.jsx)(E.f,{provider:e,apiKey:i?.apiKey,baseUrl:i?.baseUrl,currentModel:i?.model||r.model,onModelChange:e=>l("model",e),docsHref:r.docs.models})]})}e.s(["f",0,function({config:e,setConfig:d,loading:m,saving:p,onSave:x}){let{t:u,language:h}=(0,v.b)();return m?(0,s.jsx)("div",{className:"flex justify-center py-4",children:(0,s.jsx)(i.f,{className:"h-6 w-6 animate-spin text-muted-foreground"})}):(0,s.jsxs)("div",{className:"space-y-4 border rounded-lg p-4 bg-muted/30",children:[(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)(n.f,{children:u.settings?.tabs?.ai||"AI Provider"}),(0,s.jsxs)(t.d,{value:e.aiProvider,onValueChange:e=>d(s=>({...s,aiProvider:e})),children:[(0,s.jsx)(t.P,{children:(0,s.jsx)(t.U,{})}),(0,s.jsxs)(t.r,{children:[(0,s.jsx)(t.T,{value:"minimax",children:(0,R.z)("minimax",h)}),(0,s.jsx)(t.T,{value:"minimax-code",children:"MiniMax Code OAuth"}),R.U.filter(e=>"minimax"!==e).map(e=>(0,s.jsx)(t.T,{value:e,children:(0,R.z)(e,h)},e)),(0,s.jsx)(t.T,{value:"anthropic",children:"Anthropic / Compatible"}),(0,s.jsx)(t.T,{value:"azure",children:"Azure OpenAI"}),(0,s.jsx)(t.T,{value:"openai",children:"OpenAI / Compatible"}),(0,s.jsx)(t.T,{value:"gemini",children:"Google Gemini"})]})]}),(0,s.jsx)(F,{provider:e.aiProvider})]}),"openai"===e.aiProvider&&(0,s.jsx)(T,{value:e.openai,onChange:e=>d(s=>({...s,openai:e}))}),"gemini"===e.aiProvider&&(0,s.jsx)(c.f,{value:e.gemini,onChange:e=>d(s=>({...s,gemini:e}))}),"minimax-code"===e.aiProvider&&(0,s.jsx)(M,{value:e.minimaxCode,onChange:e=>d(s=>({...s,minimaxCode:e}))}),"anthropic"===e.aiProvider&&(0,s.jsx)(l.f,{value:e.anthropic,onChange:e=>d(s=>({...s,anthropic:e}))}),(0,R.j)(e.aiProvider)&&(0,s.jsx)(L,{provider:e.aiProvider,value:e[e.aiProvider],onChange:e=>d(s=>({...s,[s.aiProvider]:e}))},e.aiProvider),"azure"===e.aiProvider&&(0,s.jsx)(o.f,{value:e.azure,onChange:e=>d(s=>({...s,azure:e}))}),(0,s.jsx)(r.f,{config:e,saving:p,saveButton:(0,s.jsxs)(a.f,{onClick:x,disabled:p,className:"flex-1",children:[p&&(0,s.jsx)(i.f,{className:"mr-2 h-4 w-4 animate-spin"}),u.settings?.ai?.save||"Save AI Settings"]})})]})}],10038),e.s(["f",0,function(e,s){if(!(0,y.L)(e.timeZone??y.J))return s.settings.general.invalidTimeZone;if("openai"===e.aiProvider)for(let i of e.openai?.instances||[]){if(!i.name?.trim())return s.settings?.ai?.validationNameRequired||"Instance name is required";if(!i.apiKey?.trim())return s.settings?.ai?.validationApiKeyRequired||"API Key is required";if(!i.baseUrl?.trim())return s.settings?.ai?.validationBaseUrlRequired||"Base URL is required";if(!i.model?.trim())return s.settings?.ai?.validationModelRequired||"Model name is required"}if("azure"===e.aiProvider){if(!e.azure?.endpoint?.trim())return s.settings?.ai?.validationAzureEndpointRequired||"Azure Endpoint is required";if(!e.azure?.deploymentName?.trim())return s.settings?.ai?.validationAzureDeploymentRequired||"Deployment Name is required";if(!e.azure?.apiKey?.trim())return s.settings?.ai?.validationApiKeyRequired||"API Key is required"}return null}],835467)},459649,464034,434901,62189,118585,75977,97923,e=>{var s=e.i(843476),i=e.i(793479),a=e.i(37038),n=e.i(110204),t=e.i(271645),r=e.i(519455),l=e.i(967489),o=e.i(482022),c=e.i(741120),d=e.i(632781),m=e.i(41931),p=e.i(111110),x=e.i(128093),u=e.i(201276);function h({provider:e,apiKey:a,baseUrl:g,currentModel:f,onModelChange:v,docsHref:j}){let{t:y}=(0,p.b)(),[N,b]=(0,t.useState)([]),[k,w]=(0,t.useState)(!1),[C,K]=(0,t.useState)(null),[U,M]=(0,t.useState)(f||""),[P,S]=(0,t.useState)(!1),[E,z]=(0,t.useState)(f);f!==E&&(z(f),M(f||""));let I=async()=>{if(!a)return void K(y.modelSelector?.enterApiKeyFirst||"Please enter API Key first");w(!0),K(null);try{let s=await m.k.post("/api/ai/models",{provider:e,apiKey:a,...g&&{baseUrl:g}});if("error"in s&&"string"==typeof s.error){K(s.error),S(!0),b([]);return}b(s.models),0===s.models.length&&(K(y.modelSelector?.noVisionModel||"No vision model found, please enter manually"),S(!0))}catch(s){u.V.error("[ModelSelector]","Failed to fetch models",{error:s});let e=s instanceof Error&&s.message||y.modelSelector?.fetchFailed||"Failed to fetch models";K(e+(y.modelSelector?.enterManually||", please enter manually")),S(!0)}finally{w(!1)}};return(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(n.f,{className:"flex-1",children:y.modelSelector?.modelName||"Model Name"}),j&&(0,s.jsxs)("a",{href:j,target:"_blank",rel:"noopener noreferrer",className:"inline-flex shrink-0 items-center gap-1 text-xs text-muted-foreground underline",children:[y.settings.ai.docLinks.models,(0,s.jsx)(o.f,{className:"h-3 w-3"})]}),(0,s.jsx)(r.f,{type:"button",variant:"outline",size:"sm",onClick:I,disabled:k||!a,children:k?(0,s.jsx)(d.f,{className:"h-3 w-3 animate-spin"}):(0,s.jsx)(c.f,{className:"h-3 w-3"})})]}),C&&(0,s.jsx)("p",{className:"text-xs text-yellow-600",children:C}),P||0===N.length?(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)(i.f,{value:U,onChange:e=>{var s;M(s=e.target.value),v(s)},placeholder:(0,x.j)(e)?x.$[e].model:"openai"===e?"gpt-6.1-sol":"gemini-1.5-flash"}),N.length>0&&(0,s.jsx)(r.f,{type:"button",variant:"link",size:"sm",className:"h-auto p-0 text-xs",onClick:()=>S(!1),children:y.modelSelector?.selectFromList||"Select from List"})]}):(0,s.jsx)("div",{className:"space-y-2",children:(0,s.jsxs)(l.d,{value:f,onValueChange:e=>{"_custom"===e?S(!0):(S(!1),M(e),v(e))},children:[(0,s.jsx)(l.P,{children:(0,s.jsx)(l.U,{placeholder:y.modelSelector?.selectModel||"Select Model"})}),(0,s.jsxs)(l.r,{children:[N.map(e=>(0,s.jsxs)(l.T,{value:e.id,children:[e.name,e.owned_by&&` (${e.owned_by})`]},e.id)),(0,s.jsx)(l.T,{value:"_custom",children:y.modelSelector?.customInput||"Custom Input..."})]})]})})]})}function g({label:e,href:i,linkText:a}){return i?(0,s.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,s.jsx)(n.f,{children:e}),(0,s.jsxs)("a",{href:i,target:"_blank",rel:"noopener noreferrer",className:"inline-flex shrink-0 items-center gap-1 text-xs text-muted-foreground underline",children:[a,(0,s.jsx)(o.f,{className:"h-3 w-3"})]})]}):(0,s.jsx)(n.f,{children:e})}e.s(["f",0,h],464034),e.s(["f",0,g],434901);let f={openai:{intl:"https://platform.openai.com/docs/api-reference",apiKey:"https://platform.openai.com/docs/quickstart",models:"https://platform.openai.com/docs/models"},anthropic:{intl:"https://docs.anthropic.com/en/api/overview",apiKey:"https://docs.anthropic.com/en/api/getting-started",models:"https://docs.anthropic.com/en/docs/about-claude/models/overview"},azure:{intl:"https://learn.microsoft.com/azure/ai-foundry/openai/reference",apiKey:"https://learn.microsoft.com/azure/ai-foundry/openai/how-to/create-resource",models:"https://learn.microsoft.com/azure/ai-foundry/openai/concepts/models"},gemini:{intl:"https://ai.google.dev/gemini-api/docs",apiKey:"https://ai.google.dev/gemini-api/docs/api-key",models:"https://ai.google.dev/gemini-api/docs/models"}};function v(e){return(0,x.j)(e)?x.$[e].docs:f[e]??null}e.s(["f",0,v],62189),e.s(["f",0,function({value:e,onChange:t}){let{t:r}=(0,p.b)(),l=v("anthropic"),o=(s,i)=>t({...e,[s]:i});return(0,s.jsxs)("div",{className:"space-y-3 animate-in fade-in slide-in-from-top-2",children:[(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)(g,{label:"API Key",href:l?.apiKey,linkText:r.settings.ai.docLinks.apiKey}),(0,s.jsx)(a.f,{value:e?.apiKey||"",onChange:e=>o("apiKey",e.target.value),placeholder:"sk-ant-..."})]}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)(n.f,{children:"Base URL (Optional)"}),(0,s.jsx)(i.f,{value:e?.baseUrl||"",onChange:e=>o("baseUrl",e.target.value),placeholder:"https://api.anthropic.com"}),(0,s.jsx)("p",{className:"text-xs text-muted-foreground",children:r.settings?.ai?.anthropicBaseUrlHint})]}),(0,s.jsx)(h,{provider:"anthropic",apiKey:e?.apiKey,baseUrl:e?.baseUrl,currentModel:e?.model,onModelChange:e=>o("model",e),docsHref:l?.models})]})}],459649),e.s(["f",0,function({value:e,onChange:t}){let{t:r}=(0,p.b)(),l=v("azure"),o=(s,i)=>t({...e,[s]:i}),c=e=>e?.trim()?"":"border-destructive";return(0,s.jsxs)("div",{className:"space-y-3 animate-in fade-in slide-in-from-top-2",children:[(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsxs)(n.f,{children:[r.settings?.ai?.azureEndpoint||"Azure Endpoint"," ",(0,s.jsx)("span",{className:"text-destructive",children:"*"})]}),(0,s.jsx)(i.f,{value:e?.endpoint||"",onChange:e=>o("endpoint",e.target.value),placeholder:r.settings?.ai?.azureEndpointPlaceholder||"https://your-resource.openai.azure.com",className:c(e?.endpoint)})]}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)(g,{label:(0,s.jsxs)(s.Fragment,{children:[r.settings?.ai?.azureDeployment||"Deployment Name"," ",(0,s.jsx)("span",{className:"text-destructive",children:"*"})]}),href:l?.models,linkText:r.settings.ai.docLinks.models}),(0,s.jsx)(i.f,{value:e?.deploymentName||"",onChange:e=>o("deploymentName",e.target.value),placeholder:r.settings?.ai?.azureDeploymentPlaceholder||"gpt-4o-deployment",className:c(e?.deploymentName)})]}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)(g,{label:(0,s.jsxs)(s.Fragment,{children:["API Key ",(0,s.jsx)("span",{className:"text-destructive",children:"*"})]}),href:l?.apiKey,linkText:r.settings.ai.docLinks.apiKey}),(0,s.jsx)(a.f,{value:e?.apiKey||"",onChange:e=>o("apiKey",e.target.value),placeholder:"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",className:c(e?.apiKey)})]}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)(n.f,{children:r.settings?.ai?.azureApiVersion||"API Version"}),(0,s.jsx)(i.f,{value:e?.apiVersion||"",onChange:e=>o("apiVersion",e.target.value),placeholder:r.settings?.ai?.azureApiVersionPlaceholder||"2024-02-15-preview"})]}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)(n.f,{children:r.settings?.ai?.azureModel||"Model Display Name"}),(0,s.jsx)(i.f,{value:e?.model||"",onChange:e=>o("model",e.target.value),placeholder:"gpt-4o"})]})]})}],118585),e.s(["f",0,function({value:e,onChange:t}){let{t:r}=(0,p.b)(),l=v("gemini"),o=(s,i)=>t({...e,[s]:i});return(0,s.jsxs)("div",{className:"space-y-3 animate-in fade-in slide-in-from-top-2",children:[(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)(g,{label:"API Key",href:l?.apiKey,linkText:r.settings.ai.docLinks.apiKey}),(0,s.jsx)(a.f,{value:e?.apiKey||"",onChange:e=>o("apiKey",e.target.value),placeholder:"AIza..."})]}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)(n.f,{children:"Base URL (Optional)"}),(0,s.jsx)(i.f,{value:e?.baseUrl||"",onChange:e=>o("baseUrl",e.target.value),placeholder:"https://generativelanguage.googleapis.com"})]}),(0,s.jsx)(h,{provider:"gemini",apiKey:e?.apiKey,baseUrl:e?.baseUrl,currentModel:e?.model,onModelChange:e=>o("model",e),docsHref:l?.models})]})}],75977);var j=e.i(456420);let y={name:"log-in",size:24,node:[["path",{d:"m10 17 5-5-5-5",key:"1bsop3"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}]]};y.node;let N=(0,j.f)(y);e.s(["f",0,N],97923)},37038,e=>{var s=e.i(843476),i=e.i(271645),a=e.i(772382),n=e.i(580860),t=e.i(519455),r=e.i(793479),l=e.i(111110),o=e.i(975157);e.s(["f",0,function({className:e,...c}){let{t:d}=(0,l.b)(),[m,p]=(0,i.useState)(!1);return(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)(r.f,{type:m?"text":"password",className:(0,o.f)("pr-10",e),...c}),(0,s.jsx)(t.f,{type:"button",variant:"ghost",size:"icon",className:"absolute right-0 top-0 h-full px-3 py-2 hover:bg-transparent",onClick:()=>p(!m),"aria-label":m?d.common.hidePassword:d.common.showPassword,tabIndex:-1,children:m?(0,s.jsx)(n.f,{className:"h-4 w-4 text-muted-foreground"}):(0,s.jsx)(a.f,{className:"h-4 w-4 text-muted-foreground"})})]})}])}])})();
|