wrong-notebook 2026.10.26 → 2026.10.30-1
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/prerender-manifest.json +3 -3
- package/.next/routes-manifest.json +8 -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/dashboard/route.js +4 -4
- package/.next/server/app/api/admin/dashboard/route.js.nft.json +1 -1
- package/.next/server/app/api/admin/migrate-tags/route.js.nft.json +1 -1
- 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 +4 -4
- 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.nft.json +1 -1
- package/.next/server/app/api/admin/users/route.js.nft.json +1 -1
- package/.next/server/app/api/ai/models/route.js +3 -3
- package/.next/server/app/api/ai/models/route.js.nft.json +1 -1
- package/.next/server/app/api/ai/test/route.js +7 -7
- package/.next/server/app/api/ai/test/route.js.nft.json +1 -1
- package/.next/server/app/api/analytics/route.js +11 -2
- package/.next/server/app/api/analytics/route.js.nft.json +1 -1
- package/.next/server/app/api/analyze/route.js +6 -6
- 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.nft.json +1 -1
- package/.next/server/app/api/error-items/[id]/figure/route.js +5 -5
- 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 +5 -5
- 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 +4 -4
- 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.nft.json +1 -1
- 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.nft.json +1 -1
- package/.next/server/app/api/error-items/[id]/reanswer/route.js +5 -5
- 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 +4 -4
- 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.nft.json +1 -1
- package/.next/server/app/api/error-items/[id]/svg-animation/narration/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/error-items/[id]/svg-animation/narration/route/build-manifest.json +12 -0
- package/.next/server/app/api/error-items/[id]/svg-animation/narration/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/error-items/[id]/svg-animation/narration/route.js +21 -0
- package/.next/server/app/api/error-items/[id]/svg-animation/narration/route.js.map +5 -0
- package/.next/server/app/api/error-items/[id]/svg-animation/narration/route.js.nft.json +1 -0
- package/.next/server/app/api/error-items/[id]/svg-animation/narration/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/error-items/[id]/svg-animation/route.js +5 -5
- package/.next/server/app/api/error-items/[id]/svg-animation/route.js.nft.json +1 -1
- 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.nft.json +1 -1
- package/.next/server/app/api/error-items/list/route.js.nft.json +1 -1
- package/.next/server/app/api/error-items/route.js +5 -5
- package/.next/server/app/api/error-items/route.js.nft.json +1 -1
- 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.nft.json +1 -1
- package/.next/server/app/api/exams/[id]/questions/[questionId]/regenerate/route.js +14 -13
- 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 +8 -8
- package/.next/server/app/api/exams/[id]/results/route.js.nft.json +1 -1
- package/.next/server/app/api/exams/[id]/retry/route.js +14 -13
- package/.next/server/app/api/exams/[id]/retry/route.js.nft.json +1 -1
- package/.next/server/app/api/exams/[id]/route.js +12 -11
- package/.next/server/app/api/exams/[id]/route.js.nft.json +1 -1
- package/.next/server/app/api/exams/route.js +11 -10
- package/.next/server/app/api/exams/route.js.nft.json +1 -1
- package/.next/server/app/api/export/route.js.nft.json +1 -1
- package/.next/server/app/api/geogebra-analyze/route.js +5 -5
- 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 +10 -10
- package/.next/server/app/api/import/route.js.nft.json +1 -1
- package/.next/server/app/api/logs/frontend/route.js.nft.json +1 -1
- package/.next/server/app/api/minimax-code/checkin/route.js.nft.json +1 -1
- package/.next/server/app/api/minimax-code/login/route.js.nft.json +1 -1
- package/.next/server/app/api/minimax-code/route.js.nft.json +1 -1
- package/.next/server/app/api/notebooks/[id]/retag/route.js +6 -6
- package/.next/server/app/api/notebooks/[id]/retag/route.js.nft.json +1 -1
- package/.next/server/app/api/notebooks/[id]/route.js.nft.json +1 -1
- package/.next/server/app/api/notebooks/route.js.nft.json +1 -1
- package/.next/server/app/api/openclaw/batch-upload/route.js +11 -11
- package/.next/server/app/api/openclaw/batch-upload/route.js.nft.json +1 -1
- package/.next/server/app/api/practice/generate/route.js +4 -4
- package/.next/server/app/api/practice/generate/route.js.nft.json +1 -1
- package/.next/server/app/api/practice/grade/route.js +4 -4
- package/.next/server/app/api/practice/grade/route.js.nft.json +1 -1
- package/.next/server/app/api/practice/record/[id]/route.js +7 -7
- package/.next/server/app/api/practice/record/[id]/route.js.nft.json +1 -1
- package/.next/server/app/api/practice/record/route.js +4 -4
- package/.next/server/app/api/practice/record/route.js.nft.json +1 -1
- package/.next/server/app/api/reanswer/route.js +4 -4
- package/.next/server/app/api/reanswer/route.js.nft.json +1 -1
- package/.next/server/app/api/register/route.js.nft.json +1 -1
- package/.next/server/app/api/review/due/route.js +14 -5
- package/.next/server/app/api/review/due/route.js.nft.json +1 -1
- package/.next/server/app/api/settings/route.js.nft.json +1 -1
- package/.next/server/app/api/setup/route.js.nft.json +1 -1
- package/.next/server/app/api/stats/practice/clear/route.js.nft.json +1 -1
- package/.next/server/app/api/stats/practice/route.js.nft.json +1 -1
- package/.next/server/app/api/tags/route.js.nft.json +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.nft.json +1 -1
- package/.next/server/app/api/user/route.js +14 -4
- package/.next/server/app/api/user/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/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/1jng_app_api_error-items_[id]_svg-animation_narration_route_actions_0p9r8ebr7d00l.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__0gql12o_mf7e8._.js → [root-of-the-server]__0-_fe0i5gihj2._.js} +2 -2
- package/.next/server/chunks/{[root-of-the-server]__1hrdz_-5s3775._.js → [root-of-the-server]__0-mtuz1y2hrt_._.js} +2 -2
- package/.next/server/chunks/{[root-of-the-server]__0lt6zgk4xq6fk._.js → [root-of-the-server]__01zmywofxv44d._.js} +2 -2
- package/.next/server/chunks/{[root-of-the-server]__067bnq3j3z-3_._.js → [root-of-the-server]__02w4yny5gt2b4._.js} +1 -1
- package/.next/server/chunks/{[root-of-the-server]__0vqtidz1lisc6._.js → [root-of-the-server]__038gf2djjn0rg._.js} +2 -2
- package/.next/server/chunks/{[root-of-the-server]__04vkejt7399qm._.js → [root-of-the-server]__03_hg4dbjr6gm._.js} +2 -2
- package/.next/server/chunks/{[root-of-the-server]__0f505ene-6a0j._.js → [root-of-the-server]__040kfzc4zv5ji._.js} +2 -2
- package/.next/server/chunks/{[root-of-the-server]__015ejcb8twm6c._.js → [root-of-the-server]__04r2yjj4knt9x._.js} +1 -1
- package/.next/server/chunks/{[root-of-the-server]__077qr39ck1pcs._.js → [root-of-the-server]__061x45fxd07dm._.js} +1 -1
- package/.next/server/chunks/{[root-of-the-server]__09944y8f_7dhf._.js → [root-of-the-server]__07k4_ion4ou6d._.js} +1 -1
- package/.next/server/chunks/[root-of-the-server]__07ztt1wy26yvz._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__08fwru7fkvvl6._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__0uzkv_2-76muc._.js → [root-of-the-server]__0aos0p_8a5gky._.js} +2 -2
- package/.next/server/chunks/{[root-of-the-server]__1930xo407ogqu._.js → [root-of-the-server]__0aq32mo414sro._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__0c0x5d85vbcbv._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0c4jdg0ga4zfe._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0dqbew6anw2kd._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0e7_0-o90esy-._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__1wjrhbs_gcrzx._.js → [root-of-the-server]__0f5t2o0i9tjar._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__0fn8r9f73fzd3._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0i_w6t6qj_061._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__05d1rfm7p02tv._.js → [root-of-the-server]__0ih72ek59msql._.js} +2 -2
- package/.next/server/chunks/{[root-of-the-server]__1-9hu4j35d9ao._.js → [root-of-the-server]__0of1031_q21po._.js} +1 -1
- package/.next/server/chunks/[root-of-the-server]__0p-cdsmp78i6-._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__0zjg773epx4r_._.js → [root-of-the-server]__0qo744v4hy8lp._.js} +1 -1
- package/.next/server/chunks/[root-of-the-server]__0rdo2-j-gxelt._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0suoe7tm4396u._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0tflseuizxpen._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0ue14np4llg3a._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0ufhocguvoxt4._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0uwpcliduox5r._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0uyibcf2mejgf._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__118rtr0shk1ii._.js → [root-of-the-server]__0v93i_mmy7uws._.js} +2 -2
- package/.next/server/chunks/{[root-of-the-server]__1awckh2w31m-1._.js → [root-of-the-server]__0wbt3upu-nuk1._.js} +2 -2
- package/.next/server/chunks/{[root-of-the-server]__0q_db5a74evdw._.js → [root-of-the-server]__0wm4qw5cu0956._.js} +1 -1
- package/.next/server/chunks/[root-of-the-server]__0zb48en2m8yk0._.js +7 -7
- package/.next/server/chunks/{[root-of-the-server]__17aiova74blq9._.js → [root-of-the-server]__0zvdl3gsgb2ll._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__11l6a17qelkj9._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__13m9-20223lsw._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__041tflu88yv18._.js → [root-of-the-server]__15fllrli2pdl7._.js} +1 -1
- package/.next/server/chunks/[root-of-the-server]__15t37vaiu6w-o._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__0y48od_b_qxct._.js → [root-of-the-server]__169hdi7jji3vn._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__171ybavo0fgfi._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__17_l38epg4gtn._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__18ok9-8819efr._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__03g_n15zojhn2._.js → [root-of-the-server]__19uj-sk5cp6hw._.js} +2 -2
- package/.next/server/chunks/{[root-of-the-server]__1jhz19cuxjpmb._.js → [root-of-the-server]__1_8btngjew64q._.js} +1 -1
- package/.next/server/chunks/[root-of-the-server]__1_d4relv8gw0p._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1auvj24i6np5g._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1bvjyahgm4s-0._.js +1 -1
- package/.next/server/chunks/{[root-of-the-server]__1f1o5gbmw9gv7._.js → [root-of-the-server]__1dkb17rbhyexw._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__1dnyhpafiwmyb._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1euogp-jmbdbn._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1gg8lq2q9gzg2._.js +7 -7
- package/.next/server/chunks/[root-of-the-server]__1h2gs1l_ocut-._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1k750v6l878d9._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1ks5l0ekcojb6._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1l-xwnx9zl7n6._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__0a62guogezjl6._.js → [root-of-the-server]__1l5g6cixzgviv._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__1o82fhau9qctf._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__035mztvplnh0_._.js → [root-of-the-server]__1qb-t64xfqxeo._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__1sat028hivrbm._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1sfc4ds1btvga._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1stqxoanvvams._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__0v0mt3v8gyonn._.js → [root-of-the-server]__1v3wvxwq41y9e._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__1z6kziwgi04qw._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1zu5sxvfb5vuo._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__1pfiautl3zc2f._.js → [root-of-the-server]__213biwztbhh9-._.js} +2 -2
- package/.next/server/chunks/_0-ne-bwuvd_6w._.js +1 -1
- package/.next/server/chunks/_08i9pskmlafnp._.js +3 -0
- package/.next/server/chunks/_0_rhee7wb6tcg._.js +1 -1
- package/.next/server/chunks/_0gxi3zrkhyvx_._.js +1 -1
- package/.next/server/chunks/{_0geyrqrvyak26._.js → _0hkdm23o05kvp._.js} +6 -6
- package/.next/server/chunks/{_0kkvpy2s_y3-n._.js → _0lsw6_-5hpp0x._.js} +6 -6
- package/.next/server/chunks/_0tz5wpjdgntj3._.js +1 -1
- package/.next/server/chunks/_12w5k19rc45j_._.js +1 -1
- package/.next/server/chunks/_1_273cgnpyl9j._.js +1 -1
- package/.next/server/chunks/_1_ns7o3cqznv6._.js +1 -1
- package/.next/server/chunks/_1hj7iit2u6xez._.js +1 -1
- package/.next/server/chunks/{_0ne4rbj35w-io._.js → _1w_arlbn0o07b._.js} +6 -6
- package/.next/server/chunks/{src_lib_ai_prompts_ts_0z36zms4djibp._.js → src_lib_0es8upktx5_5c._.js} +77 -51
- package/.next/server/chunks/src_lib_15kwif87cuv22._.js +1 -1
- package/.next/server/chunks/src_lib_1k0xki4wmn54_._.js +1 -1
- package/.next/server/chunks/src_lib_1wm8ay-jqxakc._.js +1 -1
- package/.next/server/chunks/src_lib_exam_ts_0d3a4q4r41hcf._.js +1 -1
- package/.next/server/chunks/src_lib_mastery_ts_0ybi94uxn8ut6._.js +1 -1
- package/.next/server/chunks/ssr/_00np6xqvkg6u-._.js +1 -1
- package/.next/server/chunks/ssr/_0h6qsip9mphaq._.js +1 -1
- package/.next/server/chunks/ssr/_1g8mzz6qxv2mr._.js +1 -1
- package/.next/server/chunks/ssr/{node_modules_207wmjzllytiz._.js → _1gjb-bqi25yci._.js} +2 -2
- package/.next/server/chunks/ssr/{_1yaa5p1rk6i7c._.js → _1mw-oovvzrn8_._.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_components_mastery-panel_tsx_1--j5c7mhomdp._.js +1 -1
- package/.next/server/chunks/ssr/src_components_providers_tsx_09kw-mv3nb6xs._.js +10 -10
- package/.next/server/middleware-build-manifest.js +3 -3
- package/.next/server/middleware-manifest.json +5 -5
- package/.next/server/pages/500.html +1 -1
- package/.next/server/preview-props.json +3 -3
- package/.next/server/server-reference-manifest.js +1 -1
- package/.next/server/server-reference-manifest.json +1 -1
- package/.next/static/chunks/0152ije6oxbik.js +1 -0
- package/.next/static/chunks/{45c1obyfb78ht.js → 0t58h5wfgi75w.js} +1 -1
- package/.next/static/chunks/{29ctahruklp-r.js → 0znojfm3iv2d7.js} +1 -1
- package/.next/static/chunks/{0hfox3n5lesf0.js → 1kx-lcqi4aref.js} +10 -10
- package/.next/static/chunks/22inup6g2i-7n.js +1 -0
- package/.next/static/chunks/{1zplgew-00wdz.js → 29cafv3hz5hzj.js} +1 -1
- package/.next/static/chunks/3zt-rwod7li6h.js +1 -0
- package/package.json +1 -1
- package/prisma/migrations/20261029000000_add_mastery_threshold/migration.sql +2 -0
- package/prisma/schema.prisma +1 -0
- package/prisma/seed.db +0 -0
- package/.next/server/chunks/[root-of-the-server]__00l2rz_disfkg._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0aequ2pnoemzu._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0msiy_bvtvaqo._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0ul_64h5yov45._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0vqoda1k-uvtz._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0zxrtk19v5vnf._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0zxxkvf-ns40a._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1-i5zhzxr_18g._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__10_vi76_sexvg._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__10lamgabz68ix._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__11nevdba2vhtt._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__17o-ysd_xsch6._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__17pktht8hd051._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1a1fr6o2wf7qx._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1d39wr4nvawz9._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1lbtlpnl59fx4._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1n00d73k7_qf5._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1nos0_eby5gj4._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1np0y-f3_9a11._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1q-qp9_6drnjc._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1r0p8cbxayfm4._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1uamx3r_5niri._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1ubqs9ptth-gi._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1ve3j8ooyhjgv._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1wvpsikw739ko._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1y4bactsi95qg._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1yribihoxvucv._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1zt-23c4kv6ca._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1zyka21s1ahtj._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__20al_f02-oyfd._.js +0 -3
- package/.next/server/chunks/_0qsjdkq-39qbo._.js +0 -11
- package/.next/server/chunks/_1lrt8e26anbnm._.js +0 -11
- package/.next/server/chunks/node_modules_zod_v4_classic_external_19886v847zvfd.js +0 -3
- package/.next/static/chunks/1cp-v-3d-80iz.js +0 -1
- package/.next/static/chunks/23v229-qd9o6o.js +0 -1
- package/.next/static/chunks/2ods71pgjc-e2.js +0 -1
- /package/.next/static/{RKk8t6MmArFLi1wGSWXua → KvipY98Rm0kvPB-UaObQu}/_buildManifest.js +0 -0
- /package/.next/static/{RKk8t6MmArFLi1wGSWXua → KvipY98Rm0kvPB-UaObQu}/_clientMiddlewareManifest.js +0 -0
- /package/.next/static/{RKk8t6MmArFLi1wGSWXua → KvipY98Rm0kvPB-UaObQu}/_ssgManifest.js +0 -0
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
module.exports=[418175,a=>{"use strict";var b=a.i(187924),c=a.i(550194),d=a.i(875003),e=a.i(529759),f=a.i(16644),g=a.i(238246),h=a.i(50944),i=a.i(839761),j=a.i(953722),k=a.i(327999),l=a.i(104720),m=a.i(220005),n=a.i(170106);let o=(0,n.f)("circle-plus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]]),p=(0,n.f)("shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);var q=a.i(572131);let r=(0,n.f)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),s=(0,n.f)("bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]),t=(0,n.f)("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);var u=a.i(149625),v=a.i(596221);let w=(0,n.f)("message-square-text",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M7 11h10",key:"1twpyw"}],["path",{d:"M7 15h6",key:"d9of3u"}],["path",{d:"M7 7h8",key:"af5zfr"}]]),x=(0,n.f)("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);var y=a.i(546842),z=a.i(154933),A=a.i(699570),B=a.i(814574),C=a.i(875083),D=a.i(986705),E=a.i(786304),F=a.i(563658),G=a.i(866718),H=a.i(870430),I=a.i(368114);let J=q.forwardRef(({className:a,...c},d)=>(0,b.jsx)("div",{className:"relative w-full overflow-auto",children:(0,b.jsx)("table",{ref:d,className:(0,I.f)("w-full caption-bottom text-sm",a),...c})}));J.displayName="Table";let K=q.forwardRef(({className:a,...c},d)=>(0,b.jsx)("thead",{ref:d,className:(0,I.f)("[&_tr]:border-b",a),...c}));K.displayName="TableHeader";let L=q.forwardRef(({className:a,...c},d)=>(0,b.jsx)("tbody",{ref:d,className:(0,I.f)("[&_tr:last-child]:border-0",a),...c}));L.displayName="TableBody",(q.forwardRef(({className:a,...c},d)=>(0,b.jsx)("tfoot",{ref:d,className:(0,I.f)("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",a),...c}))).displayName="TableFooter";let M=q.forwardRef(({className:a,...c},d)=>(0,b.jsx)("tr",{ref:d,className:(0,I.f)("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",a),...c}));M.displayName="TableRow";let N=q.forwardRef(({className:a,...c},d)=>(0,b.jsx)("th",{ref:d,className:(0,I.f)("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",a),...c}));N.displayName="TableHead";let O=q.forwardRef(({className:a,...c},d)=>(0,b.jsx)("td",{ref:d,className:(0,I.f)("p-4 align-middle [&:has([role=checkbox])]:pr-0",a),...c}));O.displayName="TableCell",(q.forwardRef(({className:a,...c},d)=>(0,b.jsx)("caption",{ref:d,className:(0,I.f)("mt-4 text-sm text-muted-foreground",a),...c}))).displayName="TableCaption";var P=a.i(781560);let Q=(0,n.f)("ban",[["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);var R=a.i(816201),S=a.i(291938),T=a.i(710302),U=a.i(630534),V=a.i(960927);function W(){let{timeZone:a}=(0,e.M)(),{data:f}=(0,d.useSession)(),{t:g}=(0,c.b)(),[h,i]=(0,q.useState)([]),[j,k]=(0,q.useState)(!0),[l,m]=(0,q.useState)(!1),[n,o]=(0,q.useState)(!1),[p,r]=(0,q.useState)("0"),[s,t]=(0,q.useState)(!1),u=(0,q.useCallback)(async()=>{k(!0);try{let a=await S.f.get("/api/admin/users");i(a)}catch(a){U.f.error("[UserManagement]","Failed to fetch users",{error:a})}finally{k(!1)}},[]),w=(0,q.useCallback)(async()=>{try{let a=await S.f.get("/api/settings");m(!0===a.allowRegistration),r(String(a.aiDailyLimit??0))}catch(a){U.f.error("[UserManagement]","Failed to fetch config",{error:a})}},[]);(0,q.useEffect)(()=>{u(),w()},[u,w]);let x=async a=>{o(!0);try{await S.f.post("/api/settings",{allowRegistration:a}),m(a)}catch(a){U.f.error("[UserManagement]","Failed to update registration setting",{error:a}),T.c.error(g.common.error)}finally{o(!1)}},y=Number(p),z=""!==p.trim()&&Number.isInteger(y)&&y>=0,B=async()=>{if(z){t(!0);try{await S.f.post("/api/settings",{aiDailyLimit:y}),T.c.success(g.admin.aiDailyLimitSaved)}catch(a){U.f.error("[UserManagement]","Failed to update AI daily limit",{error:a}),T.c.error(g.common.error)}finally{t(!1)}}},C=async a=>{let b=a.isActive?g.admin.confirmDisable:g.admin.confirmEnable;if(await (0,T.u)(b))try{await S.f.patch(`/api/admin/users/${a.id}`,{isActive:!a.isActive}),u()}catch(a){U.f.error("[UserManagement]","Failed to update user status",{error:a}),T.c.error(g.common.error)}},I=async a=>{if(await (0,T.u)(g.admin.confirmDelete,{destructive:!0}))try{await S.f.delete(`/api/admin/users/${a.id}`),u()}catch(b){U.f.error("[UserManagement]","Failed to delete user",{error:b});let a=(0,V.d)(b)||g.common.error;T.c.error(a)}};return j?(0,b.jsx)("div",{className:"flex justify-center py-8",children:(0,b.jsx)(v.f,{className:"h-8 w-8 animate-spin text-muted-foreground"})}):(0,b.jsxs)("div",{className:"space-y-4",children:[(0,b.jsxs)("div",{className:"flex items-center justify-between p-4 border rounded-lg bg-muted/30",children:[(0,b.jsxs)("div",{className:"space-y-0.5",children:[(0,b.jsx)(H.f,{className:"text-base",children:g.admin?.allowRegistration||"Allow New Registrations"}),(0,b.jsx)("p",{className:"text-sm text-muted-foreground",children:g.admin?.allowRegistrationDesc||"When disabled, new users cannot register"})]}),(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[n&&(0,b.jsx)(v.f,{className:"h-4 w-4 animate-spin"}),(0,b.jsx)(F.f,{checked:l,onCheckedChange:x,disabled:n})]})]}),(0,b.jsxs)("div",{className:"flex flex-col gap-3 p-4 border rounded-lg bg-muted/30 sm:flex-row sm:items-center sm:justify-between",children:[(0,b.jsxs)("div",{className:"space-y-0.5",children:[(0,b.jsx)(H.f,{htmlFor:"ai-daily-limit",className:"text-base",children:g.admin.aiDailyLimit}),(0,b.jsx)("p",{className:"text-sm text-muted-foreground",children:g.admin.aiDailyLimitDesc})]}),(0,b.jsxs)("div",{className:"flex shrink-0 items-center gap-2",children:[(0,b.jsx)(G.f,{id:"ai-daily-limit",type:"number",min:0,step:1,inputMode:"numeric",value:p,onChange:a=>r(a.target.value),"aria-invalid":!z,className:"w-24"}),(0,b.jsxs)(A.f,{size:"sm",onClick:B,disabled:s||!z,children:[s&&(0,b.jsx)(v.f,{className:"mr-2 h-4 w-4 animate-spin"}),g.common.save]})]})]}),(0,b.jsx)("div",{className:"sm:hidden space-y-3",children:h.map(c=>(0,b.jsxs)("div",{className:"border rounded-lg p-4 bg-card space-y-3",children:[(0,b.jsxs)("div",{className:"flex justify-between items-start",children:[(0,b.jsxs)("div",{children:[(0,b.jsx)("div",{className:"font-medium",children:c.name||"N/A"}),(0,b.jsx)("div",{className:"text-sm text-muted-foreground",children:c.email})]}),(0,b.jsx)(E.f,{variant:"admin"===c.role?"default":"secondary",children:"admin"===c.role?g.admin.admin:g.admin.user})]}),(0,b.jsxs)("div",{className:"flex justify-between text-sm",children:[(0,b.jsxs)("div",{className:"text-muted-foreground",children:[g.admin.errors,": ",c._count.errorItems," | ",g.admin.practiceCount,": ",c._count.practiceRecords," | ",g.admin.aiUsageToday,": ",c.aiUsageToday]}),(0,b.jsx)(E.f,{variant:c.isActive?"default":"destructive",className:"text-xs",children:c.isActive?g.admin.active:g.admin.disabled})]}),(0,b.jsxs)("div",{className:"flex justify-between items-center pt-2 border-t",children:[(0,b.jsx)("div",{className:"text-xs text-muted-foreground",children:(0,D.r)(c.createdAt,"yyyy-MM-dd",a)}),(0,b.jsxs)("div",{className:"flex gap-2",children:[(0,b.jsx)(A.f,{variant:"ghost",size:"sm",onClick:()=>C(c),disabled:c.id===f?.user?.id,children:c.isActive?(0,b.jsx)(Q,{className:"h-4 w-4 text-orange-500"}):(0,b.jsx)(R.f,{className:"h-4 w-4 text-green-500"})}),(0,b.jsx)(A.f,{variant:"ghost",size:"sm",onClick:()=>I(c),disabled:c.id===f?.user?.id,children:(0,b.jsx)(P.f,{className:"h-4 w-4 text-destructive"})})]})]})]},c.id))}),(0,b.jsx)("div",{className:"hidden sm:block border rounded-lg overflow-hidden",children:(0,b.jsxs)(J,{children:[(0,b.jsx)(K,{children:(0,b.jsxs)(M,{children:[(0,b.jsx)(N,{children:g.admin.nameEmail}),(0,b.jsx)(N,{children:g.admin.role}),(0,b.jsx)(N,{children:g.admin.stats}),(0,b.jsx)(N,{children:g.admin.createdAt}),(0,b.jsx)(N,{children:g.admin.status}),(0,b.jsx)(N,{className:"text-right",children:g.admin.actions})]})}),(0,b.jsx)(L,{children:h.map(c=>(0,b.jsxs)(M,{children:[(0,b.jsxs)(O,{children:[(0,b.jsx)("div",{className:"font-medium",children:c.name||"N/A"}),(0,b.jsx)("div",{className:"text-sm text-muted-foreground",children:c.email})]}),(0,b.jsx)(O,{children:(0,b.jsx)(E.f,{variant:"admin"===c.role?"default":"secondary",children:"admin"===c.role?g.admin.admin:g.admin.user})}),(0,b.jsxs)(O,{children:[(0,b.jsxs)("div",{className:"text-sm",children:[g.admin.errors,": ",c._count.errorItems]}),(0,b.jsxs)("div",{className:"text-sm",children:[g.admin.practiceCount,": ",c._count.practiceRecords]}),(0,b.jsxs)("div",{className:"text-sm",children:[g.admin.aiUsageToday,": ",c.aiUsageToday]})]}),(0,b.jsx)(O,{children:(0,D.r)(c.createdAt,"yyyy-MM-dd",a)}),(0,b.jsx)(O,{children:(0,b.jsx)(E.f,{variant:c.isActive?"default":"destructive",children:c.isActive?g.admin.active:g.admin.disabled})}),(0,b.jsxs)(O,{className:"text-right space-x-2",children:[(0,b.jsx)(A.f,{variant:"ghost",size:"sm",onClick:()=>C(c),disabled:c.id===f?.user?.id,title:c.isActive?g.admin.disable:g.admin.enable,children:c.isActive?(0,b.jsx)(Q,{className:"h-4 w-4 text-orange-500"}):(0,b.jsx)(R.f,{className:"h-4 w-4 text-green-500"})}),(0,b.jsx)(A.f,{variant:"ghost",size:"sm",onClick:()=>I(c),disabled:c.id===f?.user?.id,title:g.admin.delete,children:(0,b.jsx)(P.f,{className:"h-4 w-4 text-destructive"})})]})]},c.id))})]})})]})}var X=a.i(452495);let Y=(0,n.f)("github",[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]]),Z=(0,n.f)("scroll-text",[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]]),$=(0,n.f)("server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]);function _(){return null}let aa=()=>()=>void 0;function ab(){let{t:a}=(0,c.b)(),d=(0,q.useSyncExternalStore)(aa,_,()=>null);return d?d.isStandalone?.()?(0,b.jsx)("p",{className:"text-center text-sm text-muted-foreground",children:a.settings?.about?.androidStandalone||"Running on this device. Data is stored only on this device."}):(0,b.jsxs)("div",{className:"flex flex-col items-center gap-2 text-sm text-muted-foreground",children:[(0,b.jsxs)("span",{className:"break-all",children:[a.settings?.about?.androidServer||"Server",": ",d.getServerUrl()]}),(0,b.jsxs)(A.f,{variant:"outline",className:"gap-2",onClick:()=>d.changeServer(),children:[(0,b.jsx)($,{className:"h-4 w-4"}),a.settings?.about?.changeServer||"Change server"]})]}):null}let ac="https://github.com/margrop/wrong-notebook";function ad(){let{t:a}=(0,c.b)(),[d,e]=(0,q.useState)("");(0,q.useEffect)(()=>{fetch("/api/version").then(a=>a.json()).then(a=>e(a.version)).catch(()=>{})},[]);let f=[{href:ac,icon:Y,label:a.settings?.about?.github||"GitHub Repository"},{href:`${ac}/releases`,icon:Z,label:a.settings?.about?.releaseNotes||"Release Notes"},{href:`${ac}/issues`,icon:w,label:a.settings?.about?.feedback||"Feedback"}];return(0,b.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-6 py-8 text-center bg-muted/30 rounded-lg border",children:[(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)("h3",{className:"text-2xl font-bold",children:a.app?.title||"Smart Error Notebook"}),(0,b.jsx)("p",{className:"text-muted-foreground",children:a.settings?.about?.desc||"AI-powered learning assistant"})]}),(0,b.jsxs)("div",{className:"flex items-center space-x-2 text-sm text-muted-foreground border px-4 py-2 rounded-full bg-background",children:[(0,b.jsx)(t,{className:"h-4 w-4"}),(0,b.jsxs)("span",{children:[a.settings?.about?.version||"Version",": v",d||"unknown"]})]}),(0,b.jsx)(ab,{}),(0,b.jsx)("div",{className:"flex flex-col sm:flex-row flex-wrap justify-center gap-4 w-full sm:w-auto px-4 sm:px-0",children:f.map(({href:a,icon:c,label:d})=>(0,b.jsx)(A.f,{variant:"outline",asChild:!0,className:"gap-2 w-full sm:w-auto",children:(0,b.jsxs)("a",{href:a,target:"_blank",rel:"noopener noreferrer",children:[(0,b.jsx)(c,{className:"h-4 w-4"}),d,(0,b.jsx)(X.f,{className:"h-3 w-3 ml-1 opacity-50"})]})},a))}),(0,b.jsx)("p",{className:"text-xs text-muted-foreground mt-8",children:a.settings?.about?.copyright||"© 2026 margrop · Based on wttwins/wrong-notebook · MIT License"})]})}var ae=a.i(152679),af=a.i(580701);let ag={name:"",email:"",educationStage:"",enrollmentYear:"",password:""};function ah(){let{t:a}=(0,c.b)(),[d,e]=(0,q.useState)(ag),[f,g]=(0,q.useState)(""),[h,i]=(0,q.useState)(!0),[j,k]=(0,q.useState)(!1),l=(0,q.useCallback)(async()=>{try{let a=await S.f.get("/api/user");e({name:a.name||"",email:a.email||"",educationStage:a.educationStage||"",enrollmentYear:a.enrollmentYear||"",password:""})}catch(a){U.f.error("[AccountSettings]","Failed to fetch profile",{error:a})}finally{i(!1)}},[]);(0,q.useEffect)(()=>{l()},[l]);let m=async()=>{if(d.password&&d.password!==f)return void T.c.error(a.settings?.messages?.passwordMismatch||"Passwords do not match");k(!0);try{let b={name:d.name,email:d.email,educationStage:d.educationStage};d.enrollmentYear&&(b.enrollmentYear=parseInt(d.enrollmentYear.toString())),d.password&&(b.password=d.password),await S.f.patch("/api/user",b),T.c.success(a.settings?.messages?.profileUpdated||"Profile updated"),e(a=>({...a,password:""})),g(""),window.location.reload()}catch(b){U.f.error("[AccountSettings]","Failed to update profile",{error:(0,V.d)(b)??(0,V.Z)(b)}),T.c.error((0,V.d)(b)||a.settings?.messages?.updateFailed||"Update failed")}finally{k(!1)}};return h?(0,b.jsx)("div",{className:"flex justify-center py-8",children:(0,b.jsx)(v.f,{className:"h-8 w-8 animate-spin text-muted-foreground"})}):(0,b.jsxs)("div",{className:"space-y-4 border rounded-lg p-4 bg-muted/30",children:[(0,b.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)(H.f,{children:a.auth?.name||"Name"}),(0,b.jsx)(G.f,{value:d.name||"",onChange:a=>e({...d,name:a.target.value})})]}),(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)(H.f,{children:a.auth?.email||"Email"}),(0,b.jsx)(G.f,{value:d.email||"",onChange:a=>e({...d,email:a.target.value}),type:"email"})]})]}),(0,b.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)(H.f,{children:a.auth?.educationStage||"Education Stage"}),(0,b.jsxs)(af.d,{value:d.educationStage||"",onValueChange:a=>e({...d,educationStage:a}),children:[(0,b.jsx)(af.P,{children:(0,b.jsx)(af.U,{placeholder:a.auth?.selectStage||"Select Stage"})}),(0,b.jsxs)(af.r,{children:[(0,b.jsx)(af.T,{value:"primary",children:a.auth?.primary||"Primary School"}),(0,b.jsx)(af.T,{value:"junior_high",children:a.auth?.juniorHigh||"Junior High"}),(0,b.jsx)(af.T,{value:"senior_high",children:a.auth?.seniorHigh||"Senior High"}),(0,b.jsx)(af.T,{value:"university",children:a.auth?.university||"University"})]})]})]}),(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)(H.f,{children:a.auth?.enrollmentYear||"Enrollment Year"}),(0,b.jsx)(G.f,{type:"number",value:d.enrollmentYear||"",onChange:a=>e({...d,enrollmentYear:a.target.value}),placeholder:"YYYY"})]})]}),(0,b.jsxs)("div",{className:"space-y-3 pt-2 border-t",children:[(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)(H.f,{children:a.settings?.account?.changePassword||"Change Password (Leave empty to keep)"}),(0,b.jsx)(ae.f,{value:d.password,onChange:a=>e({...d,password:a.target.value}),placeholder:"******",minLength:6})]}),d.password&&(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)(H.f,{children:a.auth?.confirmPassword||"Confirm Password"}),(0,b.jsx)(ae.f,{value:f,onChange:a=>g(a.target.value),placeholder:"******",minLength:6})]})]}),(0,b.jsxs)(A.f,{onClick:m,disabled:j,className:"w-full",children:[j&&(0,b.jsx)(v.f,{className:"mr-2 h-4 w-4 animate-spin"}),a.settings?.account?.update||"Update Profile"]})]})}var ai=a.i(151304),aj=a.i(669520);let ak={info:{card:"border-blue-200 bg-blue-50",title:"text-blue-900 font-bold",desc:"text-blue-800 font-medium",button:"bg-blue-100 hover:bg-blue-200 text-blue-900 border-blue-300"},danger:{card:"border-red-200 bg-red-50",title:"text-red-700 font-medium",desc:"text-red-600",button:""},critical:{card:"border-red-600/50 bg-red-100/50",title:"text-red-900 font-bold",desc:"text-red-800 font-medium",button:"bg-red-700 hover:bg-red-800"}};function al({title:a,description:c,tone:d,busy:e,icon:f,onClick:g}){let h=ak[d];return(0,b.jsxs)("div",{className:`p-4 border rounded-lg ${h.card}`,children:[(0,b.jsxs)("div",{className:"flex items-center justify-between",children:[(0,b.jsx)("span",{className:`text-sm flex items-center gap-2 ${h.title}`,children:a}),(0,b.jsx)(A.f,{variant:"info"===d?"outline":"destructive",size:"sm",onClick:g,disabled:e,className:h.button,children:e?(0,b.jsx)(v.f,{className:"h-4 w-4 animate-spin"}):f})]}),(0,b.jsx)("p",{className:`text-xs mt-2 ${h.desc}`,children:c})]})}function am({isAdmin:a}){let{t:d}=(0,c.b)(),[e,f]=(0,q.useState)(null),g=async(a,b,c,d)=>{f(a);try{T.c.success(await b()),d&&window.location.reload()}catch(b){U.f.error("[DangerZoneSettings]",`${a} failed`,{error:b}),T.c.error(c)}finally{f(null)}},h=d.settings?.clearSuccess||"Success",i=d.settings?.clearError||"Failed",j=async()=>{await (0,T.u)(d.settings?.migrateTagsConfirm||"This will reset system tags. Confirm?",{destructive:!0})&&await g("migrateTags",async()=>{let a=await S.f.post("/api/admin/migrate-tags",{});return`${h}: ${a.count||0} tags migrated.`},d.settings?.clearError||"Failed to migrate tags",!1)},k=async()=>{await (0,T.u)(d.settings?.clearDataConfirm||"Are you sure?",{destructive:!0})&&await g("clearPractice",async()=>(await S.f.delete("/api/stats/practice/clear"),h),i,!0)},l=async()=>{await (0,T.u)(d.settings?.clearErrorDataConfirm||"Are you sure?",{destructive:!0})&&await g("clearErrors",async()=>(await S.f.delete("/api/error-items/clear"),h),i,!0)},m=async()=>{if(!await (0,T.u)(d.settings?.systemResetConfirm||"WARNING: Deleting ALL data. Undoing is impossible. Are you sure?",{destructive:!0}))return;let a=prompt(d.settings?.systemResetPrompt||"Type 'RESET' to confirm system initialization:","");if("RESET"!==a){null!==a&&T.c.error(d.common?.error||"Confirmation failed");return}await g("systemReset",async()=>(await S.f.post("/api/admin/system-reset",{}),d.settings?.clearSuccess||"Success - System Reset Complete"),d.settings?.clearError||"Failed to reset system",!0)};return(0,b.jsxs)(b.Fragment,{children:[a&&(0,b.jsx)(al,{tone:"info",title:(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(aj.f,{className:"h-4 w-4"}),d.settings?.migrateTags||"Migrate Tags"]}),description:d.settings?.migrateTagsDesc||"Re-populates standard tags from file",busy:"migrateTags"===e,icon:(0,b.jsx)(aj.f,{className:"h-4 w-4"}),onClick:j}),(0,b.jsx)(al,{tone:"danger",title:d.settings?.clearData||"Clear Practice Data",description:d.settings?.clearDataDesc||"This will permanently delete all practice history. Irreversible.",busy:"clearPractice"===e,icon:(0,b.jsx)(P.f,{className:"h-4 w-4"}),onClick:k}),(0,b.jsx)(al,{tone:"danger",title:d.settings?.clearErrorData||"Clear Error Data",description:d.settings?.clearErrorDataDesc||"This will permanently delete all error items. Irreversible.",busy:"clearErrors"===e,icon:(0,b.jsx)(P.f,{className:"h-4 w-4"}),onClick:l}),a&&(0,b.jsx)(al,{tone:"critical",title:(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(r,{className:"h-4 w-4"}),d.settings?.systemReset||"System Initialization"]}),description:d.settings?.systemResetDesc||"Resets the system to factory state. Deletes ALL data.",busy:"systemReset"===e,icon:(0,b.jsx)(P.f,{className:"h-4 w-4"}),onClick:m})]})}var an=a.i(167453),ao=a.i(284505);let ap=(0,n.f)("upload",[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]]);async function aq(a,b){let c=await fetch(a);if(!c.ok)throw Error((await c.json().catch(()=>({}))).message||"Export failed");let d=await c.blob(),e=window.URL.createObjectURL(d),f=document.createElement("a");f.href=e;let g=c.headers.get("Content-Disposition")?.match(/filename="(.+)"/);f.download=g?g[1]:b,document.body.appendChild(f),f.click(),document.body.removeChild(f),window.URL.revokeObjectURL(e)}function ar({isAdmin:a}){let{t:d}=(0,c.b)(),[e,f]=(0,q.useState)(!1),[g,h]=(0,q.useState)(!1),[i,j]=(0,q.useState)(null),k=async a=>{if(!a||await (0,T.u)(d.settings?.exportAllConfirm||"Export all users' data? This may take a while.")){f(!0);try{await aq(a?"/api/export?all=true":"/api/export",a?"wrong-notebook-export-all.json":"wrong-notebook-export.json"),T.c.success(d.settings?.exportSuccess||"Export successful")}catch(b){U.f.error("[DataBackupSettings]",a?"Export all failed":"Export failed",{error:b}),T.c.error(d.settings?.exportFailed||"Export failed")}finally{f(!1)}}},l=async a=>{if(!i)return;let b=a?d.settings?.importAllConfirm||"Import all users' data? This will restore data for all users from the export file.":d.settings?.importConfirm||"Are you sure you want to import?";if(await (0,T.u)(b)){h(!0);try{let b=JSON.parse(await i.text()),{stats:c}=await S.f.post(a?"/api/import?all=true":"/api/import",b);T.c.success((d.settings?.importResultDesc||"Imported {subjects} notebooks, {tags} tags, {items} error items, {schedules} review schedules, {records} practice records, {papers} exam papers.").replace("{subjects}",String(c.subjectsCreated)).replace("{tags}",String(c.tagsCreated)).replace("{items}",String(c.errorItemsCreated)).replace("{schedules}",String(c.reviewSchedulesCreated)).replace("{records}",String(c.practiceRecordsCreated)).replace("{papers}",String(c.examPapersCreated??0)).replace("{duplicates}",String(c.duplicateErrorItems??0))),j(null),window.location.reload()}catch(b){U.f.error("[DataBackupSettings]",a?"Import all failed":"Import failed",{error:b}),T.c.error(d.settings?.importFailed||"Import failed")}finally{h(!1)}}},m=(a,c)=>a?(0,b.jsx)(v.f,{className:"mr-2 h-4 w-4 animate-spin"}):c;return(0,b.jsxs)("div",{className:"p-4 border border-blue-200 rounded-lg bg-blue-50",children:[(0,b.jsx)("h4",{className:"text-sm font-bold text-blue-900 mb-3",children:d.settings?.dataManagement||"Data Management"}),(0,b.jsxs)("div",{className:"mb-4",children:[(0,b.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,b.jsx)("span",{className:"text-sm text-blue-800 font-medium",children:d.settings?.exportData||"Export Data"}),(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[(0,b.jsxs)(A.f,{variant:"outline",size:"sm",onClick:()=>k(!1),disabled:e,className:"bg-blue-100 hover:bg-blue-200 text-blue-900 border-blue-300",children:[m(e,(0,b.jsx)(ao.f,{className:"mr-2 h-4 w-4"})),d.settings?.exportData||"Export"]}),a&&(0,b.jsxs)(A.f,{variant:"outline",size:"sm",onClick:()=>k(!0),disabled:e,className:"bg-orange-100 hover:bg-orange-200 text-orange-900 border-orange-300",children:[m(e,(0,b.jsx)(ao.f,{className:"mr-2 h-4 w-4"})),d.settings?.exportAllData||"Export All"]})]})]}),(0,b.jsx)("p",{className:"text-xs text-blue-700",children:d.settings?.exportDataDesc||"Export all data as JSON file."})]}),(0,b.jsxs)("div",{children:[(0,b.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,b.jsx)("span",{className:"text-sm text-blue-800 font-medium",children:d.settings?.importData||"Import Data"}),(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[(0,b.jsx)("input",{type:"file",accept:".json",onChange:a=>j(a.target.files?.[0]??i),className:"hidden",id:"import-file-input",disabled:g}),(0,b.jsxs)(A.f,{variant:"outline",size:"sm",onClick:()=>document.getElementById("import-file-input")?.click(),disabled:g,className:"bg-blue-100 hover:bg-blue-200 text-blue-900 border-blue-300",children:[m(g,(0,b.jsx)(ap,{className:"mr-2 h-4 w-4"})),i?.name||d.settings?.selectFile||"Select File"]}),i&&(0,b.jsxs)(A.f,{variant:"outline",size:"sm",onClick:()=>l(!1),disabled:g,className:"bg-green-100 hover:bg-green-200 text-green-900 border-green-300",children:[m(g,(0,b.jsx)(an.f,{className:"mr-2 h-4 w-4"})),d.settings?.importData||"Import"]}),i&&a&&(0,b.jsxs)(A.f,{variant:"outline",size:"sm",onClick:()=>l(!0),disabled:g,className:"bg-orange-100 hover:bg-orange-200 text-orange-900 border-orange-300",children:[m(g,(0,b.jsx)(an.f,{className:"mr-2 h-4 w-4"})),d.settings?.importAllData||"Import All"]})]})]}),(0,b.jsx)("p",{className:"text-xs text-blue-700",children:d.settings?.importDataDesc||"Import data from JSON file. Existing data will be skipped."})]})]})}var as=a.i(225949);function at({field:a,label:d,description:e}){let{t:f}=(0,c.b)(),[g,h]=(0,q.useState)(!1),[i,j]=(0,q.useState)(!1),[k,l]=(0,q.useState)(!1),[m,n]=(0,q.useState)(null),o=`preference-${a}`;(0,q.useEffect)(()=>{S.f.get("/api/user").then(b=>h(!!b[a])).catch(()=>void 0).finally(()=>j(!0))},[a]);let p=async b=>{h(b),l(!0);try{await S.f.patch("/api/user",{[a]:b}),n(f.importFlow.preferenceSaved)}catch(c){h(!b),n(f.importFlow.preferenceSaveFailed),U.f.error("[Settings]","Failed to save user preference",{field:a,error:c instanceof Error?c.message:String(c)})}finally{l(!1)}};return(0,b.jsxs)("div",{className:"space-y-2 pt-4 border-t",children:[(0,b.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[(0,b.jsx)(H.f,{htmlFor:o,children:d}),(0,b.jsx)(F.f,{id:o,checked:g,onCheckedChange:p,disabled:!i||k})]}),(0,b.jsx)("p",{className:"text-xs text-muted-foreground",children:e}),m&&(0,b.jsx)("p",{className:"text-xs text-muted-foreground",children:m})]})}function au(){let{t:a}=(0,c.b)();return(0,b.jsx)(at,{field:"enableGeogebra",label:a.importFlow.enableGeogebra,description:a.importFlow.enableGeogebraDesc})}function av(){let{t:a}=(0,c.b)();return(0,b.jsx)(at,{field:"confirmBeforeImport",label:a.importFlow.confirmBeforeImport,description:a.importFlow.confirmBeforeImportDesc})}function aw(){let{t:a}=(0,c.b)();return(0,b.jsx)(at,{field:"enableSvgAnimation",label:a.importFlow.enableSvgAnimation,description:a.importFlow.enableSvgAnimationDesc})}function ax({value:a,onChange:d,disabled:e}){let{t:f}=(0,c.b)();return(0,b.jsxs)("div",{className:"space-y-2 pt-4 border-t",children:[(0,b.jsx)(H.f,{htmlFor:"app-time-zone",children:f.settings.general.timeZoneLabel}),(0,b.jsx)(G.f,{id:"app-time-zone",value:a,onChange:a=>d(a.target.value),disabled:e,list:"app-time-zones",placeholder:"Asia/Shanghai"}),(0,b.jsx)("datalist",{id:"app-time-zones",children:["Asia/Shanghai","Asia/Hong_Kong","Asia/Tokyo","Asia/Singapore","Europe/London","America/New_York","America/Los_Angeles","UTC"].map(a=>(0,b.jsx)("option",{value:a},a))}),(0,b.jsx)("p",{className:"text-xs text-muted-foreground",children:f.settings.general.timeZoneDesc})]})}function ay({config:a,setConfig:d,isAdmin:f,disabled:g}){let{t:h,language:i,setLanguage:j}=(0,c.b)(),{timeZone:k}=(0,e.M)(),l=a=>d(b=>({...b,timeouts:{...b.timeouts,analyze:1e3*a}}));return(0,b.jsxs)("div",{className:"space-y-4 border rounded-lg p-4 bg-muted/30",children:[(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)(H.f,{children:h.settings?.language||"Language"}),(0,b.jsxs)(af.d,{value:i,onValueChange:a=>j(a),children:[(0,b.jsx)(af.P,{children:(0,b.jsx)(af.U,{})}),(0,b.jsxs)(af.r,{children:[(0,b.jsx)(af.T,{value:"zh",children:"中文 (Chinese)"}),(0,b.jsx)(af.T,{value:"en",children:"English"})]})]})]}),(0,b.jsx)(ax,{value:a.timeZone??k,onChange:a=>d(b=>({...b,timeZone:a})),disabled:!f||g}),f&&(0,b.jsxs)("div",{className:"space-y-2 pt-4 border-t",children:[(0,b.jsx)(H.f,{children:h.settings?.general?.timeoutLabel||"AI Analysis Timeout (Seconds)"}),(0,b.jsx)(G.f,{type:"number",value:a.timeouts?.analyze?a.timeouts.analyze/1e3:"",onChange:a=>{let b=""===a.target.value?0:parseInt(a.target.value);l(isNaN(b)?0:b)},onBlur:()=>{let b=(a.timeouts?.analyze||0)/1e3,c=Math.min(600,Math.max(120,b));c!==b&&l(c)},min:120,max:600}),(0,b.jsx)("p",{className:"text-xs text-muted-foreground",children:h.settings?.general?.timeoutDesc||"Increase this value if you experience frequent timeouts during AI analysis."})]}),(0,b.jsx)(av,{}),(0,b.jsx)(aw,{}),(0,b.jsx)(au,{}),(0,b.jsx)(as.f,{})]})}var az=a.i(429246);let aA={trace:10,debug:20,info:30,warn:40,error:50,fatal:60};function aB(a,b={}){let c,d=aA[a],e=(c=process.env.LOG_LEVEL?.toLowerCase())&&void 0!==aA[c]?aA[c]:aA.info;return(c,f)=>{let g,h;if(d<e)return;let i=new Date;"string"==typeof c?(g={},h=c):(g=c,h=f||"");{let c=JSON.stringify({level:a,time:i.toISOString(),...b,...g,msg:h});switch(a){case"error":case"fatal":console.error(c);break;case"warn":console.warn(c);break;default:console.log(c)}}}}(function a(b={}){return b.module,{trace:aB("trace",b),debug:aB("debug",b),info:aB("info",b),warn:aB("warn",b),error:aB("error",b),fatal:aB("fatal",b),child:c=>a({...b,...c}),box:(a,c,d="📋")=>{console.log(JSON.stringify({level:"info",time:new Date().toISOString(),...b,title:a,..."string"==typeof c?{content:c}:c||{},msg:a}))},divider:(a="-")=>{}}})({env:"production"}).child({module:"ai:prompts"});let aC=`请参考《高思学校竞赛数学导引》(每讲分兴趣篇、拓展篇、超越篇,题目左侧标 1~5 颗星)的星级标准,结合题目所在年级评定难度:
|
|
1
|
+
module.exports=[418175,a=>{"use strict";var b=a.i(187924),c=a.i(550194),d=a.i(875003),e=a.i(529759),f=a.i(16644),g=a.i(238246),h=a.i(50944),i=a.i(839761),j=a.i(953722),k=a.i(327999),l=a.i(104720),m=a.i(220005),n=a.i(170106);let o=(0,n.f)("circle-plus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]]),p=(0,n.f)("shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);var q=a.i(572131);let r=(0,n.f)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),s=(0,n.f)("bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]),t=(0,n.f)("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);var u=a.i(149625),v=a.i(596221);let w=(0,n.f)("message-square-text",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M7 11h10",key:"1twpyw"}],["path",{d:"M7 15h6",key:"d9of3u"}],["path",{d:"M7 7h8",key:"af5zfr"}]]),x=(0,n.f)("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);var y=a.i(546842),z=a.i(154933),A=a.i(699570),B=a.i(814574),C=a.i(875083),D=a.i(986705),E=a.i(786304),F=a.i(563658),G=a.i(866718),H=a.i(870430),I=a.i(368114);let J=q.forwardRef(({className:a,...c},d)=>(0,b.jsx)("div",{className:"relative w-full overflow-auto",children:(0,b.jsx)("table",{ref:d,className:(0,I.f)("w-full caption-bottom text-sm",a),...c})}));J.displayName="Table";let K=q.forwardRef(({className:a,...c},d)=>(0,b.jsx)("thead",{ref:d,className:(0,I.f)("[&_tr]:border-b",a),...c}));K.displayName="TableHeader";let L=q.forwardRef(({className:a,...c},d)=>(0,b.jsx)("tbody",{ref:d,className:(0,I.f)("[&_tr:last-child]:border-0",a),...c}));L.displayName="TableBody",(q.forwardRef(({className:a,...c},d)=>(0,b.jsx)("tfoot",{ref:d,className:(0,I.f)("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",a),...c}))).displayName="TableFooter";let M=q.forwardRef(({className:a,...c},d)=>(0,b.jsx)("tr",{ref:d,className:(0,I.f)("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",a),...c}));M.displayName="TableRow";let N=q.forwardRef(({className:a,...c},d)=>(0,b.jsx)("th",{ref:d,className:(0,I.f)("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",a),...c}));N.displayName="TableHead";let O=q.forwardRef(({className:a,...c},d)=>(0,b.jsx)("td",{ref:d,className:(0,I.f)("p-4 align-middle [&:has([role=checkbox])]:pr-0",a),...c}));O.displayName="TableCell",(q.forwardRef(({className:a,...c},d)=>(0,b.jsx)("caption",{ref:d,className:(0,I.f)("mt-4 text-sm text-muted-foreground",a),...c}))).displayName="TableCaption";var P=a.i(781560);let Q=(0,n.f)("ban",[["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);var R=a.i(816201),S=a.i(291938),T=a.i(710302),U=a.i(630534),V=a.i(960927);function W(){let{timeZone:a}=(0,e.M)(),{data:f}=(0,d.useSession)(),{t:g}=(0,c.b)(),[h,i]=(0,q.useState)([]),[j,k]=(0,q.useState)(!0),[l,m]=(0,q.useState)(!1),[n,o]=(0,q.useState)(!1),[p,r]=(0,q.useState)("0"),[s,t]=(0,q.useState)(!1),u=(0,q.useCallback)(async()=>{k(!0);try{let a=await S.f.get("/api/admin/users");i(a)}catch(a){U.f.error("[UserManagement]","Failed to fetch users",{error:a})}finally{k(!1)}},[]),w=(0,q.useCallback)(async()=>{try{let a=await S.f.get("/api/settings");m(!0===a.allowRegistration),r(String(a.aiDailyLimit??0))}catch(a){U.f.error("[UserManagement]","Failed to fetch config",{error:a})}},[]);(0,q.useEffect)(()=>{u(),w()},[u,w]);let x=async a=>{o(!0);try{await S.f.post("/api/settings",{allowRegistration:a}),m(a)}catch(a){U.f.error("[UserManagement]","Failed to update registration setting",{error:a}),T.c.error(g.common.error)}finally{o(!1)}},y=Number(p),z=""!==p.trim()&&Number.isInteger(y)&&y>=0,B=async()=>{if(z){t(!0);try{await S.f.post("/api/settings",{aiDailyLimit:y}),T.c.success(g.admin.aiDailyLimitSaved)}catch(a){U.f.error("[UserManagement]","Failed to update AI daily limit",{error:a}),T.c.error(g.common.error)}finally{t(!1)}}},C=async a=>{let b=a.isActive?g.admin.confirmDisable:g.admin.confirmEnable;if(await (0,T.u)(b))try{await S.f.patch(`/api/admin/users/${a.id}`,{isActive:!a.isActive}),u()}catch(a){U.f.error("[UserManagement]","Failed to update user status",{error:a}),T.c.error(g.common.error)}},I=async a=>{if(await (0,T.u)(g.admin.confirmDelete,{destructive:!0}))try{await S.f.delete(`/api/admin/users/${a.id}`),u()}catch(b){U.f.error("[UserManagement]","Failed to delete user",{error:b});let a=(0,V.d)(b)||g.common.error;T.c.error(a)}};return j?(0,b.jsx)("div",{className:"flex justify-center py-8",children:(0,b.jsx)(v.f,{className:"h-8 w-8 animate-spin text-muted-foreground"})}):(0,b.jsxs)("div",{className:"space-y-4",children:[(0,b.jsxs)("div",{className:"flex items-center justify-between p-4 border rounded-lg bg-muted/30",children:[(0,b.jsxs)("div",{className:"space-y-0.5",children:[(0,b.jsx)(H.f,{className:"text-base",children:g.admin?.allowRegistration||"Allow New Registrations"}),(0,b.jsx)("p",{className:"text-sm text-muted-foreground",children:g.admin?.allowRegistrationDesc||"When disabled, new users cannot register"})]}),(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[n&&(0,b.jsx)(v.f,{className:"h-4 w-4 animate-spin"}),(0,b.jsx)(F.f,{checked:l,onCheckedChange:x,disabled:n})]})]}),(0,b.jsxs)("div",{className:"flex flex-col gap-3 p-4 border rounded-lg bg-muted/30 sm:flex-row sm:items-center sm:justify-between",children:[(0,b.jsxs)("div",{className:"space-y-0.5",children:[(0,b.jsx)(H.f,{htmlFor:"ai-daily-limit",className:"text-base",children:g.admin.aiDailyLimit}),(0,b.jsx)("p",{className:"text-sm text-muted-foreground",children:g.admin.aiDailyLimitDesc})]}),(0,b.jsxs)("div",{className:"flex shrink-0 items-center gap-2",children:[(0,b.jsx)(G.f,{id:"ai-daily-limit",type:"number",min:0,step:1,inputMode:"numeric",value:p,onChange:a=>r(a.target.value),"aria-invalid":!z,className:"w-24"}),(0,b.jsxs)(A.f,{size:"sm",onClick:B,disabled:s||!z,children:[s&&(0,b.jsx)(v.f,{className:"mr-2 h-4 w-4 animate-spin"}),g.common.save]})]})]}),(0,b.jsx)("div",{className:"sm:hidden space-y-3",children:h.map(c=>(0,b.jsxs)("div",{className:"border rounded-lg p-4 bg-card space-y-3",children:[(0,b.jsxs)("div",{className:"flex justify-between items-start",children:[(0,b.jsxs)("div",{children:[(0,b.jsx)("div",{className:"font-medium",children:c.name||"N/A"}),(0,b.jsx)("div",{className:"text-sm text-muted-foreground",children:c.email})]}),(0,b.jsx)(E.f,{variant:"admin"===c.role?"default":"secondary",children:"admin"===c.role?g.admin.admin:g.admin.user})]}),(0,b.jsxs)("div",{className:"flex justify-between text-sm",children:[(0,b.jsxs)("div",{className:"text-muted-foreground",children:[g.admin.errors,": ",c._count.errorItems," | ",g.admin.practiceCount,": ",c._count.practiceRecords," | ",g.admin.aiUsageToday,": ",c.aiUsageToday]}),(0,b.jsx)(E.f,{variant:c.isActive?"default":"destructive",className:"text-xs",children:c.isActive?g.admin.active:g.admin.disabled})]}),(0,b.jsxs)("div",{className:"flex justify-between items-center pt-2 border-t",children:[(0,b.jsx)("div",{className:"text-xs text-muted-foreground",children:(0,D.r)(c.createdAt,"yyyy-MM-dd",a)}),(0,b.jsxs)("div",{className:"flex gap-2",children:[(0,b.jsx)(A.f,{variant:"ghost",size:"sm",onClick:()=>C(c),disabled:c.id===f?.user?.id,children:c.isActive?(0,b.jsx)(Q,{className:"h-4 w-4 text-orange-500"}):(0,b.jsx)(R.f,{className:"h-4 w-4 text-green-500"})}),(0,b.jsx)(A.f,{variant:"ghost",size:"sm",onClick:()=>I(c),disabled:c.id===f?.user?.id,children:(0,b.jsx)(P.f,{className:"h-4 w-4 text-destructive"})})]})]})]},c.id))}),(0,b.jsx)("div",{className:"hidden sm:block border rounded-lg overflow-hidden",children:(0,b.jsxs)(J,{children:[(0,b.jsx)(K,{children:(0,b.jsxs)(M,{children:[(0,b.jsx)(N,{children:g.admin.nameEmail}),(0,b.jsx)(N,{children:g.admin.role}),(0,b.jsx)(N,{children:g.admin.stats}),(0,b.jsx)(N,{children:g.admin.createdAt}),(0,b.jsx)(N,{children:g.admin.status}),(0,b.jsx)(N,{className:"text-right",children:g.admin.actions})]})}),(0,b.jsx)(L,{children:h.map(c=>(0,b.jsxs)(M,{children:[(0,b.jsxs)(O,{children:[(0,b.jsx)("div",{className:"font-medium",children:c.name||"N/A"}),(0,b.jsx)("div",{className:"text-sm text-muted-foreground",children:c.email})]}),(0,b.jsx)(O,{children:(0,b.jsx)(E.f,{variant:"admin"===c.role?"default":"secondary",children:"admin"===c.role?g.admin.admin:g.admin.user})}),(0,b.jsxs)(O,{children:[(0,b.jsxs)("div",{className:"text-sm",children:[g.admin.errors,": ",c._count.errorItems]}),(0,b.jsxs)("div",{className:"text-sm",children:[g.admin.practiceCount,": ",c._count.practiceRecords]}),(0,b.jsxs)("div",{className:"text-sm",children:[g.admin.aiUsageToday,": ",c.aiUsageToday]})]}),(0,b.jsx)(O,{children:(0,D.r)(c.createdAt,"yyyy-MM-dd",a)}),(0,b.jsx)(O,{children:(0,b.jsx)(E.f,{variant:c.isActive?"default":"destructive",children:c.isActive?g.admin.active:g.admin.disabled})}),(0,b.jsxs)(O,{className:"text-right space-x-2",children:[(0,b.jsx)(A.f,{variant:"ghost",size:"sm",onClick:()=>C(c),disabled:c.id===f?.user?.id,title:c.isActive?g.admin.disable:g.admin.enable,children:c.isActive?(0,b.jsx)(Q,{className:"h-4 w-4 text-orange-500"}):(0,b.jsx)(R.f,{className:"h-4 w-4 text-green-500"})}),(0,b.jsx)(A.f,{variant:"ghost",size:"sm",onClick:()=>I(c),disabled:c.id===f?.user?.id,title:g.admin.delete,children:(0,b.jsx)(P.f,{className:"h-4 w-4 text-destructive"})})]})]},c.id))})]})})]})}var X=a.i(452495);let Y=(0,n.f)("github",[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]]),Z=(0,n.f)("scroll-text",[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]]),$=(0,n.f)("server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]);function _(){return null}let aa=()=>()=>void 0;function ab(){let{t:a}=(0,c.b)(),d=(0,q.useSyncExternalStore)(aa,_,()=>null);return d?d.isStandalone?.()?(0,b.jsx)("p",{className:"text-center text-sm text-muted-foreground",children:a.settings?.about?.androidStandalone||"Running on this device. Data is stored only on this device."}):(0,b.jsxs)("div",{className:"flex flex-col items-center gap-2 text-sm text-muted-foreground",children:[(0,b.jsxs)("span",{className:"break-all",children:[a.settings?.about?.androidServer||"Server",": ",d.getServerUrl()]}),(0,b.jsxs)(A.f,{variant:"outline",className:"gap-2",onClick:()=>d.changeServer(),children:[(0,b.jsx)($,{className:"h-4 w-4"}),a.settings?.about?.changeServer||"Change server"]})]}):null}let ac="https://github.com/margrop/wrong-notebook";function ad(){let{t:a}=(0,c.b)(),[d,e]=(0,q.useState)("");(0,q.useEffect)(()=>{fetch("/api/version").then(a=>a.json()).then(a=>e(a.version)).catch(()=>{})},[]);let f=[{href:ac,icon:Y,label:a.settings?.about?.github||"GitHub Repository"},{href:`${ac}/releases`,icon:Z,label:a.settings?.about?.releaseNotes||"Release Notes"},{href:`${ac}/issues`,icon:w,label:a.settings?.about?.feedback||"Feedback"}];return(0,b.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-6 py-8 text-center bg-muted/30 rounded-lg border",children:[(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)("h3",{className:"text-2xl font-bold",children:a.app?.title||"Smart Error Notebook"}),(0,b.jsx)("p",{className:"text-muted-foreground",children:a.settings?.about?.desc||"AI-powered learning assistant"})]}),(0,b.jsxs)("div",{className:"flex items-center space-x-2 text-sm text-muted-foreground border px-4 py-2 rounded-full bg-background",children:[(0,b.jsx)(t,{className:"h-4 w-4"}),(0,b.jsxs)("span",{children:[a.settings?.about?.version||"Version",": v",d||"unknown"]})]}),(0,b.jsx)(ab,{}),(0,b.jsx)("div",{className:"flex flex-col sm:flex-row flex-wrap justify-center gap-4 w-full sm:w-auto px-4 sm:px-0",children:f.map(({href:a,icon:c,label:d})=>(0,b.jsx)(A.f,{variant:"outline",asChild:!0,className:"gap-2 w-full sm:w-auto",children:(0,b.jsxs)("a",{href:a,target:"_blank",rel:"noopener noreferrer",children:[(0,b.jsx)(c,{className:"h-4 w-4"}),d,(0,b.jsx)(X.f,{className:"h-3 w-3 ml-1 opacity-50"})]})},a))}),(0,b.jsx)("p",{className:"text-xs text-muted-foreground mt-8",children:a.settings?.about?.copyright||"© 2026 margrop · Based on wttwins/wrong-notebook · MIT License"})]})}var ae=a.i(152679),af=a.i(580701);let ag={name:"",email:"",educationStage:"",enrollmentYear:"",password:""};function ah(){let{t:a}=(0,c.b)(),[d,e]=(0,q.useState)(ag),[f,g]=(0,q.useState)(""),[h,i]=(0,q.useState)(!0),[j,k]=(0,q.useState)(!1),l=(0,q.useCallback)(async()=>{try{let a=await S.f.get("/api/user");e({name:a.name||"",email:a.email||"",educationStage:a.educationStage||"",enrollmentYear:a.enrollmentYear||"",password:""})}catch(a){U.f.error("[AccountSettings]","Failed to fetch profile",{error:a})}finally{i(!1)}},[]);(0,q.useEffect)(()=>{l()},[l]);let m=async()=>{if(d.password&&d.password!==f)return void T.c.error(a.settings?.messages?.passwordMismatch||"Passwords do not match");k(!0);try{let b={name:d.name,email:d.email,educationStage:d.educationStage};d.enrollmentYear&&(b.enrollmentYear=parseInt(d.enrollmentYear.toString())),d.password&&(b.password=d.password),await S.f.patch("/api/user",b),T.c.success(a.settings?.messages?.profileUpdated||"Profile updated"),e(a=>({...a,password:""})),g(""),window.location.reload()}catch(b){U.f.error("[AccountSettings]","Failed to update profile",{error:(0,V.d)(b)??(0,V.Z)(b)}),T.c.error((0,V.d)(b)||a.settings?.messages?.updateFailed||"Update failed")}finally{k(!1)}};return h?(0,b.jsx)("div",{className:"flex justify-center py-8",children:(0,b.jsx)(v.f,{className:"h-8 w-8 animate-spin text-muted-foreground"})}):(0,b.jsxs)("div",{className:"space-y-4 border rounded-lg p-4 bg-muted/30",children:[(0,b.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)(H.f,{children:a.auth?.name||"Name"}),(0,b.jsx)(G.f,{value:d.name||"",onChange:a=>e({...d,name:a.target.value})})]}),(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)(H.f,{children:a.auth?.email||"Email"}),(0,b.jsx)(G.f,{value:d.email||"",onChange:a=>e({...d,email:a.target.value}),type:"email"})]})]}),(0,b.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)(H.f,{children:a.auth?.educationStage||"Education Stage"}),(0,b.jsxs)(af.d,{value:d.educationStage||"",onValueChange:a=>e({...d,educationStage:a}),children:[(0,b.jsx)(af.P,{children:(0,b.jsx)(af.U,{placeholder:a.auth?.selectStage||"Select Stage"})}),(0,b.jsxs)(af.r,{children:[(0,b.jsx)(af.T,{value:"primary",children:a.auth?.primary||"Primary School"}),(0,b.jsx)(af.T,{value:"junior_high",children:a.auth?.juniorHigh||"Junior High"}),(0,b.jsx)(af.T,{value:"senior_high",children:a.auth?.seniorHigh||"Senior High"}),(0,b.jsx)(af.T,{value:"university",children:a.auth?.university||"University"})]})]})]}),(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)(H.f,{children:a.auth?.enrollmentYear||"Enrollment Year"}),(0,b.jsx)(G.f,{type:"number",value:d.enrollmentYear||"",onChange:a=>e({...d,enrollmentYear:a.target.value}),placeholder:"YYYY"})]})]}),(0,b.jsxs)("div",{className:"space-y-3 pt-2 border-t",children:[(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)(H.f,{children:a.settings?.account?.changePassword||"Change Password (Leave empty to keep)"}),(0,b.jsx)(ae.f,{value:d.password,onChange:a=>e({...d,password:a.target.value}),placeholder:"******",minLength:6})]}),d.password&&(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)(H.f,{children:a.auth?.confirmPassword||"Confirm Password"}),(0,b.jsx)(ae.f,{value:f,onChange:a=>g(a.target.value),placeholder:"******",minLength:6})]})]}),(0,b.jsxs)(A.f,{onClick:m,disabled:j,className:"w-full",children:[j&&(0,b.jsx)(v.f,{className:"mr-2 h-4 w-4 animate-spin"}),a.settings?.account?.update||"Update Profile"]})]})}var ai=a.i(151304),aj=a.i(669520);let ak={info:{card:"border-blue-200 bg-blue-50",title:"text-blue-900 font-bold",desc:"text-blue-800 font-medium",button:"bg-blue-100 hover:bg-blue-200 text-blue-900 border-blue-300"},danger:{card:"border-red-200 bg-red-50",title:"text-red-700 font-medium",desc:"text-red-600",button:""},critical:{card:"border-red-600/50 bg-red-100/50",title:"text-red-900 font-bold",desc:"text-red-800 font-medium",button:"bg-red-700 hover:bg-red-800"}};function al({title:a,description:c,tone:d,busy:e,icon:f,onClick:g}){let h=ak[d];return(0,b.jsxs)("div",{className:`p-4 border rounded-lg ${h.card}`,children:[(0,b.jsxs)("div",{className:"flex items-center justify-between",children:[(0,b.jsx)("span",{className:`text-sm flex items-center gap-2 ${h.title}`,children:a}),(0,b.jsx)(A.f,{variant:"info"===d?"outline":"destructive",size:"sm",onClick:g,disabled:e,className:h.button,children:e?(0,b.jsx)(v.f,{className:"h-4 w-4 animate-spin"}):f})]}),(0,b.jsx)("p",{className:`text-xs mt-2 ${h.desc}`,children:c})]})}function am({isAdmin:a}){let{t:d}=(0,c.b)(),[e,f]=(0,q.useState)(null),g=async(a,b,c,d)=>{f(a);try{T.c.success(await b()),d&&window.location.reload()}catch(b){U.f.error("[DangerZoneSettings]",`${a} failed`,{error:b}),T.c.error(c)}finally{f(null)}},h=d.settings?.clearSuccess||"Success",i=d.settings?.clearError||"Failed",j=async()=>{await (0,T.u)(d.settings?.migrateTagsConfirm||"This will reset system tags. Confirm?",{destructive:!0})&&await g("migrateTags",async()=>{let a=await S.f.post("/api/admin/migrate-tags",{});return`${h}: ${a.count||0} tags migrated.`},d.settings?.clearError||"Failed to migrate tags",!1)},k=async()=>{await (0,T.u)(d.settings?.clearDataConfirm||"Are you sure?",{destructive:!0})&&await g("clearPractice",async()=>(await S.f.delete("/api/stats/practice/clear"),h),i,!0)},l=async()=>{await (0,T.u)(d.settings?.clearErrorDataConfirm||"Are you sure?",{destructive:!0})&&await g("clearErrors",async()=>(await S.f.delete("/api/error-items/clear"),h),i,!0)},m=async()=>{if(!await (0,T.u)(d.settings?.systemResetConfirm||"WARNING: Deleting ALL data. Undoing is impossible. Are you sure?",{destructive:!0}))return;let a=prompt(d.settings?.systemResetPrompt||"Type 'RESET' to confirm system initialization:","");if("RESET"!==a){null!==a&&T.c.error(d.common?.error||"Confirmation failed");return}await g("systemReset",async()=>(await S.f.post("/api/admin/system-reset",{}),d.settings?.clearSuccess||"Success - System Reset Complete"),d.settings?.clearError||"Failed to reset system",!0)};return(0,b.jsxs)(b.Fragment,{children:[a&&(0,b.jsx)(al,{tone:"info",title:(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(aj.f,{className:"h-4 w-4"}),d.settings?.migrateTags||"Migrate Tags"]}),description:d.settings?.migrateTagsDesc||"Re-populates standard tags from file",busy:"migrateTags"===e,icon:(0,b.jsx)(aj.f,{className:"h-4 w-4"}),onClick:j}),(0,b.jsx)(al,{tone:"danger",title:d.settings?.clearData||"Clear Practice Data",description:d.settings?.clearDataDesc||"This will permanently delete all practice history. Irreversible.",busy:"clearPractice"===e,icon:(0,b.jsx)(P.f,{className:"h-4 w-4"}),onClick:k}),(0,b.jsx)(al,{tone:"danger",title:d.settings?.clearErrorData||"Clear Error Data",description:d.settings?.clearErrorDataDesc||"This will permanently delete all error items. Irreversible.",busy:"clearErrors"===e,icon:(0,b.jsx)(P.f,{className:"h-4 w-4"}),onClick:l}),a&&(0,b.jsx)(al,{tone:"critical",title:(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(r,{className:"h-4 w-4"}),d.settings?.systemReset||"System Initialization"]}),description:d.settings?.systemResetDesc||"Resets the system to factory state. Deletes ALL data.",busy:"systemReset"===e,icon:(0,b.jsx)(P.f,{className:"h-4 w-4"}),onClick:m})]})}var an=a.i(167453),ao=a.i(284505);let ap=(0,n.f)("upload",[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]]);async function aq(a,b){let c=await fetch(a);if(!c.ok)throw Error((await c.json().catch(()=>({}))).message||"Export failed");let d=await c.blob(),e=window.URL.createObjectURL(d),f=document.createElement("a");f.href=e;let g=c.headers.get("Content-Disposition")?.match(/filename="(.+)"/);f.download=g?g[1]:b,document.body.appendChild(f),f.click(),document.body.removeChild(f),window.URL.revokeObjectURL(e)}function ar({isAdmin:a}){let{t:d}=(0,c.b)(),[e,f]=(0,q.useState)(!1),[g,h]=(0,q.useState)(!1),[i,j]=(0,q.useState)(null),k=async a=>{if(!a||await (0,T.u)(d.settings?.exportAllConfirm||"Export all users' data? This may take a while.")){f(!0);try{await aq(a?"/api/export?all=true":"/api/export",a?"wrong-notebook-export-all.json":"wrong-notebook-export.json"),T.c.success(d.settings?.exportSuccess||"Export successful")}catch(b){U.f.error("[DataBackupSettings]",a?"Export all failed":"Export failed",{error:b}),T.c.error(d.settings?.exportFailed||"Export failed")}finally{f(!1)}}},l=async a=>{if(!i)return;let b=a?d.settings?.importAllConfirm||"Import all users' data? This will restore data for all users from the export file.":d.settings?.importConfirm||"Are you sure you want to import?";if(await (0,T.u)(b)){h(!0);try{let b=JSON.parse(await i.text()),{stats:c}=await S.f.post(a?"/api/import?all=true":"/api/import",b);T.c.success((d.settings?.importResultDesc||"Imported {subjects} notebooks, {tags} tags, {items} error items, {schedules} review schedules, {records} practice records, {papers} exam papers.").replace("{subjects}",String(c.subjectsCreated)).replace("{tags}",String(c.tagsCreated)).replace("{items}",String(c.errorItemsCreated)).replace("{schedules}",String(c.reviewSchedulesCreated)).replace("{records}",String(c.practiceRecordsCreated)).replace("{papers}",String(c.examPapersCreated??0)).replace("{duplicates}",String(c.duplicateErrorItems??0))),j(null),window.location.reload()}catch(b){U.f.error("[DataBackupSettings]",a?"Import all failed":"Import failed",{error:b}),T.c.error(d.settings?.importFailed||"Import failed")}finally{h(!1)}}},m=(a,c)=>a?(0,b.jsx)(v.f,{className:"mr-2 h-4 w-4 animate-spin"}):c;return(0,b.jsxs)("div",{className:"p-4 border border-blue-200 rounded-lg bg-blue-50",children:[(0,b.jsx)("h4",{className:"text-sm font-bold text-blue-900 mb-3",children:d.settings?.dataManagement||"Data Management"}),(0,b.jsxs)("div",{className:"mb-4",children:[(0,b.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,b.jsx)("span",{className:"text-sm text-blue-800 font-medium",children:d.settings?.exportData||"Export Data"}),(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[(0,b.jsxs)(A.f,{variant:"outline",size:"sm",onClick:()=>k(!1),disabled:e,className:"bg-blue-100 hover:bg-blue-200 text-blue-900 border-blue-300",children:[m(e,(0,b.jsx)(ao.f,{className:"mr-2 h-4 w-4"})),d.settings?.exportData||"Export"]}),a&&(0,b.jsxs)(A.f,{variant:"outline",size:"sm",onClick:()=>k(!0),disabled:e,className:"bg-orange-100 hover:bg-orange-200 text-orange-900 border-orange-300",children:[m(e,(0,b.jsx)(ao.f,{className:"mr-2 h-4 w-4"})),d.settings?.exportAllData||"Export All"]})]})]}),(0,b.jsx)("p",{className:"text-xs text-blue-700",children:d.settings?.exportDataDesc||"Export all data as JSON file."})]}),(0,b.jsxs)("div",{children:[(0,b.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,b.jsx)("span",{className:"text-sm text-blue-800 font-medium",children:d.settings?.importData||"Import Data"}),(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[(0,b.jsx)("input",{type:"file",accept:".json",onChange:a=>j(a.target.files?.[0]??i),className:"hidden",id:"import-file-input",disabled:g}),(0,b.jsxs)(A.f,{variant:"outline",size:"sm",onClick:()=>document.getElementById("import-file-input")?.click(),disabled:g,className:"bg-blue-100 hover:bg-blue-200 text-blue-900 border-blue-300",children:[m(g,(0,b.jsx)(ap,{className:"mr-2 h-4 w-4"})),i?.name||d.settings?.selectFile||"Select File"]}),i&&(0,b.jsxs)(A.f,{variant:"outline",size:"sm",onClick:()=>l(!1),disabled:g,className:"bg-green-100 hover:bg-green-200 text-green-900 border-green-300",children:[m(g,(0,b.jsx)(an.f,{className:"mr-2 h-4 w-4"})),d.settings?.importData||"Import"]}),i&&a&&(0,b.jsxs)(A.f,{variant:"outline",size:"sm",onClick:()=>l(!0),disabled:g,className:"bg-orange-100 hover:bg-orange-200 text-orange-900 border-orange-300",children:[m(g,(0,b.jsx)(an.f,{className:"mr-2 h-4 w-4"})),d.settings?.importAllData||"Import All"]})]})]}),(0,b.jsx)("p",{className:"text-xs text-blue-700",children:d.settings?.importDataDesc||"Import data from JSON file. Existing data will be skipped."})]})]})}var as=a.i(225949);function at({field:a,label:d,description:e}){let{t:f}=(0,c.b)(),[g,h]=(0,q.useState)(!1),[i,j]=(0,q.useState)(!1),[k,l]=(0,q.useState)(!1),[m,n]=(0,q.useState)(null),o=`preference-${a}`;(0,q.useEffect)(()=>{S.f.get("/api/user").then(b=>h(!!b[a])).catch(()=>void 0).finally(()=>j(!0))},[a]);let p=async b=>{h(b),l(!0);try{await S.f.patch("/api/user",{[a]:b}),n(f.importFlow.preferenceSaved)}catch(c){h(!b),n(f.importFlow.preferenceSaveFailed),U.f.error("[Settings]","Failed to save user preference",{field:a,error:c instanceof Error?c.message:String(c)})}finally{l(!1)}};return(0,b.jsxs)("div",{className:"space-y-2 pt-4 border-t",children:[(0,b.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[(0,b.jsx)(H.f,{htmlFor:o,children:d}),(0,b.jsx)(F.f,{id:o,checked:g,onCheckedChange:p,disabled:!i||k})]}),(0,b.jsx)("p",{className:"text-xs text-muted-foreground",children:e}),m&&(0,b.jsx)("p",{className:"text-xs text-muted-foreground",children:m})]})}function au(){let{t:a}=(0,c.b)();return(0,b.jsx)(at,{field:"enableGeogebra",label:a.importFlow.enableGeogebra,description:a.importFlow.enableGeogebraDesc})}function av(){let{t:a}=(0,c.b)();return(0,b.jsx)(at,{field:"confirmBeforeImport",label:a.importFlow.confirmBeforeImport,description:a.importFlow.confirmBeforeImportDesc})}var aw=a.i(249479);function ax(){let{t:a}=(0,c.b)(),[d,e]=(0,q.useState)(String(aw.z)),[f,g]=(0,q.useState)(null),[h,i]=(0,q.useState)(!0),[j,k]=(0,q.useState)(!1),[l,m]=(0,q.useState)(null),n=Number(d),o=""!==d.trim()&&Number.isInteger(n)&&n>=aw.P&&n<=aw.o,p=(0,q.useCallback)(async()=>{i(!0),m(null);try{let a=(await S.f.get("/api/user")).masteryThreshold??aw.z;e(String(a)),g(a)}catch(b){m(a.mastery.thresholdLoadFailed),U.f.error("[Settings]","加载已掌握阈值失败",{error:b instanceof Error?b.message:String(b)})}finally{i(!1)}},[a.mastery.thresholdLoadFailed]);(0,q.useEffect)(()=>{p()},[p]);let r=async()=>{if(o&&null!==f){k(!0),m(null);try{let b=(await S.f.patch("/api/user",{masteryThreshold:n})).masteryThreshold??n;g(b),e(String(b)),m(a.importFlow.preferenceSaved)}catch(b){m(a.importFlow.preferenceSaveFailed),U.f.error("[Settings]","保存已掌握阈值失败",{error:b instanceof Error?b.message:String(b)})}finally{k(!1)}}};return(0,b.jsxs)("div",{className:"space-y-2 border-t pt-4",children:[(0,b.jsx)(H.f,{htmlFor:"mastery-threshold",children:a.mastery.thresholdLabel}),(0,b.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,b.jsx)(G.f,{id:"mastery-threshold",type:"number",min:aw.P,max:aw.o,step:1,value:d,onChange:a=>{e(a.target.value),m(null)},disabled:h||j||null===f,className:"w-28","aria-describedby":"mastery-threshold-hint"}),(0,b.jsx)("span",{"aria-hidden":"true",children:"%"}),(0,b.jsxs)(A.f,{type:"button",size:"sm",variant:"outline",onClick:r,disabled:h||j||null===f||!o||n===f,children:[(h||j)&&(0,b.jsx)(v.f,{className:"mr-2 h-4 w-4 animate-spin"}),a.importFlow.saveThreshold]}),!h&&null===f&&(0,b.jsx)(A.f,{type:"button",size:"sm",variant:"outline",onClick:p,children:a.importFlow.retryLoad})]}),(0,b.jsx)("p",{id:"mastery-threshold-hint",className:"text-xs text-muted-foreground",children:a.mastery.thresholdDescription}),null!==f&&!o&&(0,b.jsx)("p",{className:"text-xs text-destructive",role:"alert",children:a.mastery.thresholdInvalid}),l&&(0,b.jsx)("p",{className:"text-xs text-muted-foreground",role:"status",children:l})]})}function ay(){let{t:a}=(0,c.b)();return(0,b.jsx)(at,{field:"enableSvgAnimation",label:a.importFlow.enableSvgAnimation,description:a.importFlow.enableSvgAnimationDesc})}function az({value:a,onChange:d,disabled:e}){let{t:f}=(0,c.b)();return(0,b.jsxs)("div",{className:"space-y-2 pt-4 border-t",children:[(0,b.jsx)(H.f,{htmlFor:"app-time-zone",children:f.settings.general.timeZoneLabel}),(0,b.jsx)(G.f,{id:"app-time-zone",value:a,onChange:a=>d(a.target.value),disabled:e,list:"app-time-zones",placeholder:"Asia/Shanghai"}),(0,b.jsx)("datalist",{id:"app-time-zones",children:["Asia/Shanghai","Asia/Hong_Kong","Asia/Tokyo","Asia/Singapore","Europe/London","America/New_York","America/Los_Angeles","UTC"].map(a=>(0,b.jsx)("option",{value:a},a))}),(0,b.jsx)("p",{className:"text-xs text-muted-foreground",children:f.settings.general.timeZoneDesc})]})}function aA({config:a,setConfig:d,isAdmin:f,disabled:g}){let{t:h,language:i,setLanguage:j}=(0,c.b)(),{timeZone:k}=(0,e.M)(),l=a=>d(b=>({...b,timeouts:{...b.timeouts,analyze:1e3*a}}));return(0,b.jsxs)("div",{className:"space-y-4 border rounded-lg p-4 bg-muted/30",children:[(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)(H.f,{children:h.settings?.language||"Language"}),(0,b.jsxs)(af.d,{value:i,onValueChange:a=>j(a),children:[(0,b.jsx)(af.P,{children:(0,b.jsx)(af.U,{})}),(0,b.jsxs)(af.r,{children:[(0,b.jsx)(af.T,{value:"zh",children:"中文 (Chinese)"}),(0,b.jsx)(af.T,{value:"en",children:"English"})]})]})]}),(0,b.jsx)(az,{value:a.timeZone??k,onChange:a=>d(b=>({...b,timeZone:a})),disabled:!f||g}),f&&(0,b.jsxs)("div",{className:"space-y-2 pt-4 border-t",children:[(0,b.jsx)(H.f,{children:h.settings?.general?.timeoutLabel||"AI Analysis Timeout (Seconds)"}),(0,b.jsx)(G.f,{type:"number",value:a.timeouts?.analyze?a.timeouts.analyze/1e3:"",onChange:a=>{let b=""===a.target.value?0:parseInt(a.target.value);l(isNaN(b)?0:b)},onBlur:()=>{let b=(a.timeouts?.analyze||0)/1e3,c=Math.min(600,Math.max(120,b));c!==b&&l(c)},min:120,max:600}),(0,b.jsx)("p",{className:"text-xs text-muted-foreground",children:h.settings?.general?.timeoutDesc||"Increase this value if you experience frequent timeouts during AI analysis."})]}),(0,b.jsx)(av,{}),(0,b.jsx)(ay,{}),(0,b.jsx)(au,{}),(0,b.jsx)(as.f,{}),(0,b.jsx)(ax,{})]})}var aB=a.i(429246);let aC={trace:10,debug:20,info:30,warn:40,error:50,fatal:60};function aD(a,b={}){let c,d=aC[a],e=(c=process.env.LOG_LEVEL?.toLowerCase())&&void 0!==aC[c]?aC[c]:aC.info;return(c,f)=>{let g,h;if(d<e)return;let i=new Date;"string"==typeof c?(g={},h=c):(g=c,h=f||"");{let c=JSON.stringify({level:a,time:i.toISOString(),...b,...g,msg:h});switch(a){case"error":case"fatal":console.error(c);break;case"warn":console.warn(c);break;default:console.log(c)}}}}(function a(b={}){return b.module,{trace:aD("trace",b),debug:aD("debug",b),info:aD("info",b),warn:aD("warn",b),error:aD("error",b),fatal:aD("fatal",b),child:c=>a({...b,...c}),box:(a,c,d="📋")=>{console.log(JSON.stringify({level:"info",time:new Date().toISOString(),...b,title:a,..."string"==typeof c?{content:c}:c||{},msg:a}))},divider:(a="-")=>{}}})({env:"production"}).child({module:"ai:prompts"});let aE=`请参考《高思学校竞赛数学导引》(每讲分兴趣篇、拓展篇、超越篇,题目左侧标 1~5 颗星)的星级标准,结合题目所在年级评定难度:
|
|
2
2
|
- 1 星:课本基础题,直接套用概念、公式或简单计算即可(相当于兴趣篇前几题)。
|
|
3
3
|
- 2 星:校内拔高题,需要两三步推理或简单综合(相当于兴趣篇后几题)。
|
|
4
4
|
- 3 星:常规奥数题,小升初、杯赛常见难度,需要掌握该专题的典型方法(相当于拓展篇)。
|
|
5
5
|
- 4 星:较难奥数题,需要构造、分类讨论、转化或多种方法综合(相当于拓展篇末题、超越篇前几题)。
|
|
6
6
|
- 5 星:竞赛压轴题,集训队水平,思路巧妙、步骤长(相当于超越篇难题)。
|
|
7
|
-
非数学学科按同样的 1~5 级划分:1 星为基础识记,3 星为综合应用,5 星为竞赛或压轴难度。`,
|
|
7
|
+
非数学学科按同样的 1~5 级划分:1 星为基础识记,3 星为综合应用,5 星为竞赛或压轴难度。`,aF=`- 输出一个完整的 <svg> 元素,包含 xmlns="http://www.w3.org/2000/svg" 和 viewBox(建议宽 400~600),不要用 Markdown 代码块包裹。
|
|
8
8
|
- 白色背景、黑色线条(stroke="#000",线宽 1.5~2),需要区分的区域可用浅灰填充;不要使用彩色装饰。
|
|
9
9
|
- 按原图比例和相对位置绘制,保留所有标注:顶点字母、数字、长度、角度、单位、箭头和虚线等,文字用 <text>(font-size 14~18)。
|
|
10
10
|
- 只使用基本图形元素:line、polyline、polygon、rect、circle、ellipse、path、text、g、defs、marker。
|
|
11
|
-
- 严禁使用 <image>、<script>、<foreignObject>、外部链接、外部字体或事件属性。`,
|
|
11
|
+
- 严禁使用 <image>、<script>、<foreignObject>、外部链接、外部字体或事件属性。`,aG=String.raw`- 行内公式用 $...$,独立公式用 $$...$$;不要用 \(...\) 或 \[...\],每个 $ 必须成对出现。
|
|
12
12
|
- 所有 LaTeX 命令(如 \frac、\sqrt、\times、\angle)都必须写在 $...$ 内,公式外不能出现反斜杠命令。
|
|
13
13
|
- 只使用 KaTeX 支持的命令和环境:方程组用 \begin{cases}...\end{cases},多行推导用 \begin{aligned}...\end{aligned}(放在 $$...$$ 中),不要用 align、eqnarray、\newcommand、\usepackage、\label、\tag 等。
|
|
14
14
|
- 大括号 {} 必须成对,\left 与 \right 必须成对,\begin{...} 与 \end{...} 必须对应。
|
|
15
15
|
- 公式中的中文写在 \text{...} 里,或放到公式外;百分号写成 \%,美元符号写成 \$。
|
|
16
|
-
- 反斜杠只写一个(\frac),不要写成 \\frac;换行符 \\ 只能用在 cases、aligned 等环境里。`,
|
|
16
|
+
- 反斜杠只写一个(\frac),不要写成 \\frac;换行符 \\ 只能用在 cases、aligned 等环境里。`,aH=`【角色与核心任务 (ROLE AND CORE TASK)】
|
|
17
17
|
你是一位世界顶尖的、经验丰富的、专业的跨学科考试分析专家(Interdisciplinary Exam Analysis Expert)。你的核心任务是极致准确地分析用户提供的考试题目图片,全面理解所有文本、图表和隐含约束,并提供一个完整、高度结构化且专业的解决方案。
|
|
18
18
|
|
|
19
19
|
{{language_instruction}}
|
|
@@ -41,7 +41,7 @@ module.exports=[418175,a=>{"use strict";var b=a.i(187924),c=a.i(550194),d=a.i(87
|
|
|
41
41
|
|
|
42
42
|
<figure_svg>
|
|
43
43
|
如果 has_figure 为 true,用 SVG 重新绘制题目配图:
|
|
44
|
-
${
|
|
44
|
+
${aF}
|
|
45
45
|
如果 has_figure 为 false,请留空。
|
|
46
46
|
</figure_svg>
|
|
47
47
|
|
|
@@ -55,7 +55,7 @@ ${aD}
|
|
|
55
55
|
|
|
56
56
|
<difficulty_stars>
|
|
57
57
|
只填写 1 到 5 之间的一个整数,表示题目难度星级。
|
|
58
|
-
${
|
|
58
|
+
${aE}
|
|
59
59
|
</difficulty_stars>
|
|
60
60
|
|
|
61
61
|
<mistake_analysis>
|
|
@@ -130,10 +130,10 @@ ${aC}
|
|
|
130
130
|
3. **内容完整**:如果包含子问题,请在 question_text 中完整列出。
|
|
131
131
|
4. **禁止图片**:严禁包含任何图片链接或 markdown 图片语法。
|
|
132
132
|
5. **LaTeX 规范**:
|
|
133
|
-
${
|
|
133
|
+
${aG}
|
|
134
134
|
|
|
135
135
|
{{grade_instruction}}
|
|
136
|
-
{{provider_hints}}`,
|
|
136
|
+
{{provider_hints}}`,aI=`你是一位资深的K12教育题目生成专家,具备跨学科的题目创作能力。你的核心任务是**根据以下原题和知识点,举一反三生成高质量教学题目**,帮助学生巩固知识并拓展解题思路。
|
|
137
137
|
### 角色定义
|
|
138
138
|
1. **学科全能专家**
|
|
139
139
|
- 精通K12阶段所有学科(数学/语文/英语/物理/化学/生物/历史/地理/政治)
|
|
@@ -185,9 +185,9 @@ ${aE}
|
|
|
185
185
|
###关键格式与内容约束 (CRITICAL RULES) !!!
|
|
186
186
|
1. **纯文本**:内容作为纯文本处理,**不要转义反斜杠**。
|
|
187
187
|
2. **LaTeX 规范**:
|
|
188
|
-
${
|
|
188
|
+
${aG}
|
|
189
189
|
|
|
190
190
|
{{grade_instruction}}
|
|
191
|
-
{{provider_hints}}`;var aH=a.i(787654);function aI({name:a,description:c}){return(0,b.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-start gap-1 sm:gap-2 text-xs py-1",children:[(0,b.jsx)("code",{className:"bg-muted px-1.5 py-0.5 rounded font-mono text-primary shrink-0 w-fit",children:`{{${a}}}`}),(0,b.jsx)("span",{className:"text-muted-foreground",children:c})]})}function aJ(){let{t:a}=(0,c.b)();return(0,b.jsxs)("div",{className:"bg-amber-50 border border-amber-200 rounded-md p-3 flex items-start gap-3 text-amber-900 text-sm mb-4",children:[(0,b.jsx)(r,{className:"h-5 w-5 shrink-0 text-amber-600"}),(0,b.jsxs)("div",{className:"space-y-1",children:[(0,b.jsx)("p",{className:"font-medium",children:a.settings?.prompts?.caution||"Modify with Caution"}),(0,b.jsx)("p",{className:"text-amber-800/90 text-xs",children:a.settings?.prompts?.warning||"Variables in {{brackets}} are used to inject dynamic content. Please preserve these variables, otherwise the AI providing may fail to get question context or return invalid formats."})]})]})}function aK({config:a,onUpdate:d}){let{t:e}=(0,c.b)(),f=a.prompts?.analyze||aF,g=a.prompts?.similar||aG,h=async a=>{await (0,T.u)(e.settings?.prompts?.resetConfirm||"Are you sure you want to reset to default?",{destructive:!0})&&d(a,"analyze"===a?aF:aG)},i=(a,b)=>{d(a,b)};return(0,b.jsx)("div",{className:"space-y-4 border rounded-lg p-4 bg-muted/30",children:(0,b.jsxs)(C.i,{defaultValue:"analyze",className:"w-full",children:[(0,b.jsxs)(C.U,{className:"grid w-full grid-cols-2",children:[(0,b.jsx)(C.k,{value:"analyze",children:e.settings?.prompts?.analysisTab||"Analysis Prompt"}),(0,b.jsx)(C.k,{value:"similar",children:e.settings?.prompts?.similarTab||"Similar Question Prompt"})]}),(0,b.jsx)(C.S,{value:"analyze",className:"space-y-4 py-4",children:(0,b.jsxs)("div",{className:"space-y-4",children:[(0,b.jsxs)("div",{className:"flex justify-between items-center",children:[(0,b.jsx)(H.f,{className:"text-base font-semibold",children:e.settings?.prompts?.customAnalysis||"Custom Analysis Template"}),(0,b.jsxs)(A.f,{variant:"outline",size:"sm",onClick:()=>h("analyze"),children:[(0,b.jsx)(aH.f,{className:"w-4 h-4 mr-2"}),e.settings?.prompts?.reset||"Reset Default"]})]}),(0,b.jsx)(aJ,{}),(0,b.jsxs)("div",{className:"space-y-2 border rounded-md p-3 bg-background",children:[(0,b.jsxs)("h4",{className:"text-xs font-medium flex items-center gap-1.5 mb-2",children:[(0,b.jsx)(t,{className:"h-3.5 w-3.5"}),e.settings?.prompts?.variables||"Available Variables"]}),(0,b.jsxs)("div",{className:"space-y-1.5",children:[(0,b.jsx)(aI,{name:"language_instruction",description:e.settings?.prompts?.vars?.languageInstruction||"Injects instructions based on target language (e.g., keep English questions in English but analysis in Chinese)."}),(0,b.jsx)(aI,{name:"knowledge_points_list",description:e.settings?.prompts?.vars?.knowledgePointsList||"Injects the standard list of knowledge point tags for the specific subject."}),(0,b.jsx)(aI,{name:"provider_hints",description:e.settings?.prompts?.vars?.providerHints||"System-injected hints (e.g., enforcing JSON format)."})]})]}),(0,b.jsx)(az.f,{value:f,onChange:a=>i("analyze",a.target.value),className:"font-mono text-xs min-h-[400px]",placeholder:aF})]})}),(0,b.jsx)(C.S,{value:"similar",className:"space-y-4 py-4",children:(0,b.jsxs)("div",{className:"space-y-4",children:[(0,b.jsxs)("div",{className:"flex justify-between items-center",children:[(0,b.jsx)(H.f,{className:"text-base font-semibold",children:e.settings?.prompts?.customSimilar||"Custom Similar Question Template"}),(0,b.jsxs)(A.f,{variant:"outline",size:"sm",onClick:()=>h("similar"),children:[(0,b.jsx)(aH.f,{className:"w-4 h-4 mr-2"}),e.settings?.prompts?.reset||"Reset Default"]})]}),(0,b.jsx)(aJ,{}),(0,b.jsxs)("div",{className:"space-y-2 border rounded-md p-3 bg-background",children:[(0,b.jsxs)("h4",{className:"text-xs font-medium flex items-center gap-1.5 mb-2",children:[(0,b.jsx)(t,{className:"h-3.5 w-3.5"}),e.settings?.prompts?.variables||"Available Variables"]}),(0,b.jsxs)("div",{className:"space-y-1.5",children:[(0,b.jsx)(aI,{name:"difficulty_level",description:e.settings?.prompts?.vars?.difficultyLevel||"Target difficulty level."}),(0,b.jsx)(aI,{name:"difficulty_instruction",description:e.settings?.prompts?.vars?.difficultyInstruction||"Specific writing instructions for the target difficulty."}),(0,b.jsx)(aI,{name:"original_question",description:e.settings?.prompts?.vars?.originalQuestion||"The full text of the original question."}),(0,b.jsx)(aI,{name:"knowledge_points",description:e.settings?.prompts?.vars?.knowledgePoints||"List of knowledge points to test."}),(0,b.jsx)(aI,{name:"language_instruction",description:e.settings?.prompts?.vars?.languageInstructionShort||"Language formatting instructions."})]})]}),(0,b.jsx)(az.f,{value:g,onChange:a=>i("similar",a.target.value),className:"font-mono text-xs min-h-[400px]",placeholder:aG})]})})]})})}var aL=a.i(439830);function aM({value:a,icon:c,label:d}){return(0,b.jsxs)(C.k,{value:a,className:"px-2 sm:px-3",children:[c,(0,b.jsx)("span",{className:"hidden sm:inline",children:d})]})}function aN(){let{setTimeZone:a}=(0,e.M)(),{data:f}=(0,d.useSession)(),g=f?.user?.role==="admin",{t:j}=(0,c.b)(),k=(0,h.useRouter)(),[l,m]=(0,q.useState)(!1),n=(0,q.useRef)(null),[o,E]=(0,q.useState)(!1),[F,G]=(0,q.useState)(!1),[H,I]=(0,q.useState)({aiProvider:"minimax"}),J=(0,q.useCallback)(async()=>{G(!0);try{I(await S.f.get("/api/settings"))}catch(a){U.f.error("[SettingsDialog]","Failed to fetch settings",{error:a})}finally{G(!1)}},[]);(0,q.useEffect)(()=>{l&&J()},[l,J]);let K=async()=>{let b=(0,aL.f)(H,j);if(b)return void T.c.error(b);E(!0);try{let b=await S.f.post("/api/settings",H);I(b),a(b.timeZone||D.J),T.c.success(j.settings?.messages?.saved||"Settings saved"),n.current?.scrollTo({top:0,behavior:"smooth"})}catch(a){U.f.error("[SettingsDialog]","Failed to save settings",{error:a}),T.c.error(j.settings?.messages?.saveFailed||"Failed to save")}finally{E(!1)}},L=a=>(0,b.jsxs)(A.f,{onClick:K,disabled:o,className:"w-full",children:[o&&(0,b.jsx)(v.f,{className:"mr-2 h-4 w-4 animate-spin"}),a]});return(0,b.jsxs)(B.N,{open:l,onOpenChange:m,children:[(0,b.jsx)(B.a,{asChild:!0,children:(0,b.jsxs)(A.f,{variant:"ghost",size:"icon",className:"rounded-full",children:[(0,b.jsx)(x,{className:"h-5 w-5"}),(0,b.jsx)("span",{className:"sr-only",children:j.settings?.title||"Settings"})]})}),(0,b.jsxs)(B.d,{ref:n,className:"w-[calc(100vw-2rem)] sm:max-w-[900px] max-h-[85vh] overflow-y-auto",children:[(0,b.jsxs)(B.s,{children:[(0,b.jsx)(B.F,{children:j.settings?.title||"Settings"}),(0,b.jsx)(B.C,{children:j.settings?.desc||"Manage your preferences and data."})]}),(0,b.jsxs)(C.i,{defaultValue:"general",className:"w-full",children:[(0,b.jsxs)(C.U,{className:`grid w-full grid-cols-4 ${g?"sm:grid-cols-7":"sm:grid-cols-4"} gap-1 h-auto`,children:[(0,b.jsx)(aM,{value:"general",icon:(0,b.jsx)(u.f,{className:"h-4 w-4 sm:mr-2"}),label:j.settings?.tabs?.general||"General"}),(0,b.jsx)(aM,{value:"account",icon:(0,b.jsx)(y.f,{className:"h-4 w-4 sm:mr-2"}),label:j.settings?.tabs?.account||"Account"}),g&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(aM,{value:"ai",icon:(0,b.jsx)(s,{className:"h-4 w-4 sm:mr-2"}),label:j.settings?.tabs?.ai||"AI Provider"}),(0,b.jsx)(aM,{value:"prompts",icon:(0,b.jsx)(w,{className:"h-4 w-4 sm:mr-2"}),label:j.settings?.tabs?.prompts||"Prompts"}),(0,b.jsx)(aM,{value:"admin",icon:(0,b.jsx)(p,{className:"h-4 w-4 sm:mr-2"}),label:j.settings?.tabs?.admin||"User Management"})]}),(0,b.jsx)(aM,{value:"danger",icon:(0,b.jsx)(r,{className:"h-4 w-4 sm:mr-2"}),label:j.settings?.tabs?.danger||"Danger"}),(0,b.jsx)(aM,{value:"about",icon:(0,b.jsx)(t,{className:"h-4 w-4 sm:mr-2"}),label:j.settings?.tabs?.about||"About"})]}),(0,b.jsxs)(C.S,{value:"general",className:"space-y-4 py-4",children:[(0,b.jsx)(ay,{config:H,setConfig:I,isAdmin:g,disabled:F||o}),g&&L(j.settings?.save||"Save Settings")]}),(0,b.jsx)(C.S,{value:"account",className:"space-y-4 py-4",children:(0,b.jsx)(ah,{})}),(0,b.jsx)(C.S,{value:"ai",className:"space-y-4 py-4",children:(0,b.jsx)(ai.f,{config:H,setConfig:I,loading:F,saving:o,onSave:K})}),(0,b.jsxs)(C.S,{value:"prompts",className:"space-y-4 py-4",children:[(0,b.jsx)(aK,{config:H,onUpdate:(a,b)=>I(c=>({...c,prompts:{...c.prompts,[a]:b}}))}),L(j.settings?.prompts?.save||"Save Prompt Settings")]}),g&&(0,b.jsxs)(C.S,{value:"admin",className:"space-y-4 py-4",children:[(0,b.jsxs)(A.f,{variant:"outline",className:"w-full justify-start gap-2",onClick:()=>{m(!1),k.push("/admin")},children:[(0,b.jsx)(i.f,{className:"h-4 w-4"}),j.admin?.dashboard?.title||"Admin Dashboard"]}),(0,b.jsxs)(A.f,{variant:"outline",className:"w-full justify-start gap-2",onClick:()=>{m(!1),k.push("/setup")},children:[(0,b.jsx)(z.f,{className:"h-4 w-4"}),j.setup.rerun]}),(0,b.jsx)("div",{className:"border-t pt-4",children:(0,b.jsx)(W,{})})]}),(0,b.jsx)(C.S,{value:"danger",className:"space-y-4 py-4",children:(0,b.jsxs)("div",{className:"space-y-3",children:[(0,b.jsx)(ar,{isAdmin:g}),(0,b.jsx)(am,{isAdmin:g})]})}),(0,b.jsx)(C.S,{value:"about",className:"space-y-4 py-4",children:(0,b.jsx)(ad,{})})]})]})]})}let aO=[/^\/login/,/^\/register/,/^\/setup/,/^\/print-preview/,/^\/exams\/[^/]+\/print/],aP=[{key:"home",href:"/",icon:o,match:a=>"/"===a},{key:"notebooks",href:"/notebooks",icon:j.f,match:a=>a.startsWith("/notebooks")||a.startsWith("/error-items")||a.startsWith("/practice")},{key:"review",href:"/review",icon:k.f,match:a=>a.startsWith("/review")},{key:"stats",href:"/stats",icon:i.f,match:a=>a.startsWith("/stats")||a.startsWith("/tags")},{key:"exams",href:"/exams",icon:l.f,match:a=>a.startsWith("/exams")}];function aQ({children:a}){var e;let i,j,k=(0,h.usePathname)()||"/",{t:l}=(0,c.b)(),{data:n,status:o}=(0,d.useSession)(),r=n?.user?.role==="admin",s=aO.some(a=>a.test(k));if(e=r&&!s,i=(0,h.useRouter)(),j=(0,q.useRef)(!1),(0,q.useEffect)(()=>{e&&!j.current&&(j.current=!0,S.f.get("/api/setup").then(a=>{a.needsSetup&&i.replace("/setup")}).catch(a=>U.f.warn("[Setup]","Failed to check setup status",{error:a})))},[e,i]),s||"unauthenticated"===o)return(0,b.jsx)(b.Fragment,{children:a});let t=n?.user?.name||n?.user?.email||"";return(0,b.jsxs)("div",{className:"min-h-screen",children:[(0,b.jsx)("header",{className:"sticky top-0 z-40 border-b bg-card/80 backdrop-blur-md supports-[backdrop-filter]:bg-card/70 print:hidden",children:(0,b.jsxs)("div",{className:"mx-auto flex h-14 max-w-6xl items-center gap-3 px-4 md:h-16 md:px-8",children:[(0,b.jsxs)(g.default,{href:"/",className:"flex shrink-0 items-center gap-2",children:[(0,b.jsx)(f.default,{src:"/icons/icon.png",alt:"",width:32,height:32,className:"rounded-lg",priority:!0,unoptimized:!0}),(0,b.jsx)("span",{className:"text-base font-semibold tracking-tight",children:l.pageTitle.base})]}),(0,b.jsx)("nav",{className:"ml-4 hidden items-center gap-1 md:flex",children:aP.map(a=>{let c=a.match(k),d=a.icon;return(0,b.jsxs)(g.default,{href:a.href,className:(0,I.f)("flex items-center gap-1.5 rounded-lg px-3 py-2 text-sm font-medium transition-colors",c?"bg-accent text-accent-foreground":"text-muted-foreground hover:bg-muted hover:text-foreground"),"aria-current":c?"page":void 0,children:[(0,b.jsx)(d,{className:"h-4 w-4"}),l.nav[a.key]]},a.key)})}),(0,b.jsxs)("div",{className:"ml-auto flex items-center gap-1",children:[t&&(0,b.jsxs)("span",{className:"mr-2 hidden max-w-40 items-center gap-2 truncate text-sm text-muted-foreground lg:flex",children:[(0,b.jsx)("span",{className:"flex h-7 w-7 shrink-0 items-center justify-center rounded-full bg-primary/10 text-xs font-semibold text-primary",children:t.slice(0,1).toUpperCase()}),(0,b.jsx)("span",{className:"truncate",children:t})]}),r&&(0,b.jsx)(g.default,{href:"/admin",title:l.nav.admin,children:(0,b.jsxs)(A.f,{variant:"ghost",size:"icon",className:"rounded-full",children:[(0,b.jsx)(p,{className:"h-5 w-5"}),(0,b.jsx)("span",{className:"sr-only",children:l.nav.admin})]})}),(0,b.jsx)(aN,{}),(0,b.jsx)(A.f,{variant:"ghost",size:"icon",className:"rounded-full text-muted-foreground hover:text-destructive",onClick:()=>(0,d.signOut)({callbackUrl:"/login"}),title:l.app.logout,children:(0,b.jsx)(m.f,{className:"h-5 w-5"})})]})]})}),(0,b.jsx)("div",{className:"pb-20 md:pb-0",children:a}),(0,b.jsx)("nav",{className:"pb-safe fixed inset-x-0 bottom-0 z-40 border-t bg-card/90 backdrop-blur-md md:hidden print:hidden",children:(0,b.jsx)("div",{className:"grid h-16 grid-cols-5",children:aP.map(a=>{let c=a.match(k),d=a.icon;return(0,b.jsxs)(g.default,{href:a.href,className:(0,I.f)("flex flex-col items-center justify-center gap-1 text-[11px] font-medium transition-colors",c?"text-primary":"text-muted-foreground"),"aria-current":c?"page":void 0,children:[(0,b.jsx)("span",{className:(0,I.f)("flex h-7 w-12 items-center justify-center rounded-full transition-colors",c&&"bg-accent"),children:(0,b.jsx)(d,{className:"h-5 w-5"})}),l.nav[a.key]]},a.key)})})})]})}let aR=(0,n.f)("list-todo",[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["rect",{x:"3",y:"4",width:"6",height:"6",rx:"1",key:"cif1o7"}]]);var aS=a.i(862722);let aT=[/^\/login/,/^\/register/,/^\/print-preview/,/^\/exams\/[^/]+\/print/];function aU(){let{t:a}=(0,c.b)(),{timeZone:f}=(0,e.M)(),{status:i}=(0,d.useSession)(),j=(0,h.usePathname)(),[k,l]=(0,q.useState)(!1),[m,n]=(0,q.useState)([]),[o,p]=(0,q.useState)(()=>Date.now()),r="authenticated"!==i||aT.some(a=>a.test(j||"")),s=(0,q.useCallback)(async()=>{if("u"<typeof document||"hidden"!==document.visibilityState)try{let a=await S.f.get("/api/tasks");n(a.tasks),p(Date.now())}catch{}},[]);if((0,q.useEffect)(()=>{if(r)return;let a=setTimeout(s,0),b=setInterval(s,k?2e3:15e3);return()=>{clearTimeout(a),clearInterval(b)}},[r,k,s]),r)return null;let t=m.filter(a=>"running"===a.status).length,u=m.some(a=>"running"!==a.status),w=async()=>{try{let a=await S.f.delete("/api/tasks");n(a.tasks)}catch{}};return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)(A.f,{variant:"outline",size:"icon",className:"fixed bottom-20 right-4 z-40 h-11 w-11 rounded-full shadow-lg md:bottom-6 md:right-6 print:hidden",onClick:()=>l(!0),"aria-label":a.backgroundTasks.title,title:a.backgroundTasks.title,children:[t>0?(0,b.jsx)(v.f,{className:"h-5 w-5 animate-spin"}):(0,b.jsx)(aR,{className:"h-5 w-5"}),t>0&&(0,b.jsx)("span",{className:"absolute -right-1 -top-1 flex h-5 min-w-5 items-center justify-center rounded-full bg-primary px-1 text-xs text-primary-foreground",children:t})]}),(0,b.jsx)(B.N,{open:k,onOpenChange:l,children:(0,b.jsxs)(B.d,{className:"max-h-[85vh] overflow-y-auto sm:max-w-lg",children:[(0,b.jsxs)(B.s,{children:[(0,b.jsx)(B.F,{children:a.backgroundTasks.title}),(0,b.jsx)(B.C,{children:a.backgroundTasks.description})]}),0===m.length?(0,b.jsx)("p",{className:"py-6 text-center text-sm text-muted-foreground",children:a.backgroundTasks.empty}):(0,b.jsx)("ul",{className:"space-y-2",children:m.map(c=>{var d,e;let h;return(0,b.jsx)("li",{className:"rounded-md border p-3 text-sm",children:(0,b.jsxs)("div",{className:"flex items-start gap-2",children:["running"===c.status&&(0,b.jsx)(v.f,{className:"mt-0.5 h-4 w-4 shrink-0 animate-spin text-primary"}),"succeeded"===c.status&&(0,b.jsx)(an.f,{className:"mt-0.5 h-4 w-4 shrink-0 text-green-600"}),"failed"===c.status&&(0,b.jsx)(aS.f,{className:"mt-0.5 h-4 w-4 shrink-0 text-destructive"}),(0,b.jsxs)("div",{className:"min-w-0 flex-1 space-y-1",children:[(0,b.jsxs)("div",{className:"font-medium",children:[a.backgroundTasks.kinds[c.kind],(0,b.jsxs)("span",{className:"font-normal text-muted-foreground",children:[" · ",a.backgroundTasks.status[c.status]]})]}),c.subject&&(0,b.jsx)("div",{className:"break-words text-muted-foreground",children:c.subject}),c.progress&&c.progress.total>0&&(0,b.jsxs)("div",{className:"space-y-1",children:[(0,b.jsx)("div",{className:"h-1.5 overflow-hidden rounded bg-muted",children:(0,b.jsx)("div",{className:"h-full bg-primary transition-all",style:{width:`${Math.round(c.progress.done/c.progress.total*100)}%`}})}),(0,b.jsxs)("div",{className:"text-xs text-muted-foreground",children:[a.backgroundTasks.progress.replace("{done}",String(c.progress.done)).replace("{total}",String(c.progress.total)),c.progress.failed>0&&` \xb7 ${a.backgroundTasks.failedCount.replace("{count}",String(c.progress.failed))}`]})]}),c.error&&(0,b.jsx)("div",{className:"text-xs text-destructive",children:(b=>{if(!b)return null;let c=a.backgroundTasks.errors[b]??a.errors[b];return"string"==typeof c?c:b})(c.error)}),(0,b.jsxs)("div",{className:"flex flex-wrap items-center gap-x-3 text-xs text-muted-foreground",children:[(0,b.jsx)("span",{children:a.backgroundTasks.startedAt.replace("{time}",(0,D.r)(c.startedAt,"HH:mm:ss",f))}),(0,b.jsx)("span",{children:a.backgroundTasks.elapsed.replace("{time}",(d=c.startedAt,e=c.finishedAt,h=Math.max(0,Math.round(((e?Date.parse(e):o)-Date.parse(d))/1e3)),`${Math.floor(h/60)}:${String(h%60).padStart(2,"0")}`))}),c.link&&(0,b.jsx)(g.default,{href:c.link,className:"text-primary hover:underline",onClick:()=>l(!1),children:a.backgroundTasks.view})]})]})]})},c.id)})}),(0,b.jsxs)("div",{className:"flex items-center justify-between gap-2 pt-1",children:[(0,b.jsx)("p",{className:"text-xs text-muted-foreground",children:a.backgroundTasks.retentionHint}),u&&(0,b.jsx)(A.f,{variant:"ghost",size:"sm",onClick:w,children:a.backgroundTasks.clearFinished})]})]})})]})}var aV=a.i(633508);let aW={success:{icon:an.f,className:"text-success"},error:{icon:aS.f,className:"text-destructive"},warning:{icon:r,className:"text-warning"},info:{icon:t,className:"text-primary"}};function aX(){let{t:a}=(0,c.b)(),[d,e]=(0,q.useState)([]),[f,g]=(0,q.useState)(null);return(0,q.useEffect)(()=>(0,T.M)(a=>{e(a.toasts),g(a.confirm)}),[]),(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{className:"pointer-events-none fixed inset-x-0 top-3 z-[100] flex flex-col items-center gap-2 px-4 print:hidden",role:"status","aria-live":"polite",children:d.map(c=>{let{icon:d,className:e}=aW[c.type];return(0,b.jsxs)("div",{className:"pointer-events-auto flex w-full max-w-sm items-start gap-3 rounded-xl border bg-card/95 px-4 py-3 text-sm shadow-lg backdrop-blur animate-in fade-in slide-in-from-top-2 duration-200",children:[(0,b.jsx)(d,{className:(0,I.f)("mt-0.5 h-4 w-4 shrink-0",e)}),(0,b.jsx)("p",{className:"min-w-0 flex-1 whitespace-pre-line break-words leading-relaxed",children:c.message}),(0,b.jsx)("button",{type:"button",className:"shrink-0 rounded p-0.5 text-muted-foreground transition-colors hover:text-foreground",onClick:()=>(0,T.p)(c.id),"aria-label":a.common.close,children:(0,b.jsx)(aV.X,{className:"h-3.5 w-3.5"})})]},c.id)})}),(0,b.jsx)(B.N,{open:!!f,onOpenChange:a=>{a||f?.resolve(!1)},children:(0,b.jsxs)(B.d,{className:"sm:max-w-md",children:[(0,b.jsxs)(B.s,{children:[(0,b.jsxs)(B.F,{className:"flex items-center gap-2",children:[f?.destructive&&(0,b.jsx)(r,{className:"h-5 w-5 text-destructive"}),f?.title||a.common.confirmTitle]}),(0,b.jsx)(B.C,{className:"whitespace-pre-line pt-1 text-left leading-relaxed",children:f?.message})]}),(0,b.jsxs)(B.c,{className:"gap-2",children:[(0,b.jsx)(A.f,{variant:"outline",onClick:()=>f?.resolve(!1),children:f?.cancelText||a.common.cancel}),(0,b.jsx)(A.f,{variant:f?.destructive?"destructive":"default",onClick:()=>f?.resolve(!0),autoFocus:!0,children:f?.confirmText||a.common.confirm})]})]})})]})}function aY(){return(0,q.useEffect)(()=>{"serviceWorker"in navigator&&navigator.serviceWorker.register("/sw.js",{scope:"/"}).catch(a=>{U.f.warn("[PWA]","Service worker registration failed",{error:String(a)})})},[]),null}a.s(["Providers",0,function({children:a,timeZone:f}){return(0,b.jsx)(d.SessionProvider,{children:(0,b.jsx)(c.w,{children:(0,b.jsxs)(e.n,{initialTimeZone:f,children:[(0,b.jsx)(aQ,{children:a}),(0,b.jsx)(aU,{}),(0,b.jsx)(aX,{}),(0,b.jsx)(aY,{})]})})})}],418175)}];
|
|
191
|
+
{{provider_hints}}`;var aJ=a.i(787654);function aK({name:a,description:c}){return(0,b.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-start gap-1 sm:gap-2 text-xs py-1",children:[(0,b.jsx)("code",{className:"bg-muted px-1.5 py-0.5 rounded font-mono text-primary shrink-0 w-fit",children:`{{${a}}}`}),(0,b.jsx)("span",{className:"text-muted-foreground",children:c})]})}function aL(){let{t:a}=(0,c.b)();return(0,b.jsxs)("div",{className:"bg-amber-50 border border-amber-200 rounded-md p-3 flex items-start gap-3 text-amber-900 text-sm mb-4",children:[(0,b.jsx)(r,{className:"h-5 w-5 shrink-0 text-amber-600"}),(0,b.jsxs)("div",{className:"space-y-1",children:[(0,b.jsx)("p",{className:"font-medium",children:a.settings?.prompts?.caution||"Modify with Caution"}),(0,b.jsx)("p",{className:"text-amber-800/90 text-xs",children:a.settings?.prompts?.warning||"Variables in {{brackets}} are used to inject dynamic content. Please preserve these variables, otherwise the AI providing may fail to get question context or return invalid formats."})]})]})}function aM({config:a,onUpdate:d}){let{t:e}=(0,c.b)(),f=a.prompts?.analyze||aH,g=a.prompts?.similar||aI,h=async a=>{await (0,T.u)(e.settings?.prompts?.resetConfirm||"Are you sure you want to reset to default?",{destructive:!0})&&d(a,"analyze"===a?aH:aI)},i=(a,b)=>{d(a,b)};return(0,b.jsx)("div",{className:"space-y-4 border rounded-lg p-4 bg-muted/30",children:(0,b.jsxs)(C.i,{defaultValue:"analyze",className:"w-full",children:[(0,b.jsxs)(C.U,{className:"grid w-full grid-cols-2",children:[(0,b.jsx)(C.k,{value:"analyze",children:e.settings?.prompts?.analysisTab||"Analysis Prompt"}),(0,b.jsx)(C.k,{value:"similar",children:e.settings?.prompts?.similarTab||"Similar Question Prompt"})]}),(0,b.jsx)(C.S,{value:"analyze",className:"space-y-4 py-4",children:(0,b.jsxs)("div",{className:"space-y-4",children:[(0,b.jsxs)("div",{className:"flex justify-between items-center",children:[(0,b.jsx)(H.f,{className:"text-base font-semibold",children:e.settings?.prompts?.customAnalysis||"Custom Analysis Template"}),(0,b.jsxs)(A.f,{variant:"outline",size:"sm",onClick:()=>h("analyze"),children:[(0,b.jsx)(aJ.f,{className:"w-4 h-4 mr-2"}),e.settings?.prompts?.reset||"Reset Default"]})]}),(0,b.jsx)(aL,{}),(0,b.jsxs)("div",{className:"space-y-2 border rounded-md p-3 bg-background",children:[(0,b.jsxs)("h4",{className:"text-xs font-medium flex items-center gap-1.5 mb-2",children:[(0,b.jsx)(t,{className:"h-3.5 w-3.5"}),e.settings?.prompts?.variables||"Available Variables"]}),(0,b.jsxs)("div",{className:"space-y-1.5",children:[(0,b.jsx)(aK,{name:"language_instruction",description:e.settings?.prompts?.vars?.languageInstruction||"Injects instructions based on target language (e.g., keep English questions in English but analysis in Chinese)."}),(0,b.jsx)(aK,{name:"knowledge_points_list",description:e.settings?.prompts?.vars?.knowledgePointsList||"Injects the standard list of knowledge point tags for the specific subject."}),(0,b.jsx)(aK,{name:"provider_hints",description:e.settings?.prompts?.vars?.providerHints||"System-injected hints (e.g., enforcing JSON format)."})]})]}),(0,b.jsx)(aB.f,{value:f,onChange:a=>i("analyze",a.target.value),className:"font-mono text-xs min-h-[400px]",placeholder:aH})]})}),(0,b.jsx)(C.S,{value:"similar",className:"space-y-4 py-4",children:(0,b.jsxs)("div",{className:"space-y-4",children:[(0,b.jsxs)("div",{className:"flex justify-between items-center",children:[(0,b.jsx)(H.f,{className:"text-base font-semibold",children:e.settings?.prompts?.customSimilar||"Custom Similar Question Template"}),(0,b.jsxs)(A.f,{variant:"outline",size:"sm",onClick:()=>h("similar"),children:[(0,b.jsx)(aJ.f,{className:"w-4 h-4 mr-2"}),e.settings?.prompts?.reset||"Reset Default"]})]}),(0,b.jsx)(aL,{}),(0,b.jsxs)("div",{className:"space-y-2 border rounded-md p-3 bg-background",children:[(0,b.jsxs)("h4",{className:"text-xs font-medium flex items-center gap-1.5 mb-2",children:[(0,b.jsx)(t,{className:"h-3.5 w-3.5"}),e.settings?.prompts?.variables||"Available Variables"]}),(0,b.jsxs)("div",{className:"space-y-1.5",children:[(0,b.jsx)(aK,{name:"difficulty_level",description:e.settings?.prompts?.vars?.difficultyLevel||"Target difficulty level."}),(0,b.jsx)(aK,{name:"difficulty_instruction",description:e.settings?.prompts?.vars?.difficultyInstruction||"Specific writing instructions for the target difficulty."}),(0,b.jsx)(aK,{name:"original_question",description:e.settings?.prompts?.vars?.originalQuestion||"The full text of the original question."}),(0,b.jsx)(aK,{name:"knowledge_points",description:e.settings?.prompts?.vars?.knowledgePoints||"List of knowledge points to test."}),(0,b.jsx)(aK,{name:"language_instruction",description:e.settings?.prompts?.vars?.languageInstructionShort||"Language formatting instructions."})]})]}),(0,b.jsx)(aB.f,{value:g,onChange:a=>i("similar",a.target.value),className:"font-mono text-xs min-h-[400px]",placeholder:aI})]})})]})})}var aN=a.i(439830);function aO({value:a,icon:c,label:d}){return(0,b.jsxs)(C.k,{value:a,className:"px-2 sm:px-3",children:[c,(0,b.jsx)("span",{className:"hidden sm:inline",children:d})]})}function aP(){let{setTimeZone:a}=(0,e.M)(),{data:f}=(0,d.useSession)(),g=f?.user?.role==="admin",{t:j}=(0,c.b)(),k=(0,h.useRouter)(),[l,m]=(0,q.useState)(!1),n=(0,q.useRef)(null),[o,E]=(0,q.useState)(!1),[F,G]=(0,q.useState)(!1),[H,I]=(0,q.useState)({aiProvider:"minimax"}),J=(0,q.useCallback)(async()=>{G(!0);try{I(await S.f.get("/api/settings"))}catch(a){U.f.error("[SettingsDialog]","Failed to fetch settings",{error:a})}finally{G(!1)}},[]);(0,q.useEffect)(()=>{l&&J()},[l,J]);let K=async()=>{let b=(0,aN.f)(H,j);if(b)return void T.c.error(b);E(!0);try{let b=await S.f.post("/api/settings",H);I(b),a(b.timeZone||D.J),T.c.success(j.settings?.messages?.saved||"Settings saved"),n.current?.scrollTo({top:0,behavior:"smooth"})}catch(a){U.f.error("[SettingsDialog]","Failed to save settings",{error:a}),T.c.error(j.settings?.messages?.saveFailed||"Failed to save")}finally{E(!1)}},L=a=>(0,b.jsxs)(A.f,{onClick:K,disabled:o,className:"w-full",children:[o&&(0,b.jsx)(v.f,{className:"mr-2 h-4 w-4 animate-spin"}),a]});return(0,b.jsxs)(B.N,{open:l,onOpenChange:m,children:[(0,b.jsx)(B.a,{asChild:!0,children:(0,b.jsxs)(A.f,{variant:"ghost",size:"icon",className:"rounded-full",children:[(0,b.jsx)(x,{className:"h-5 w-5"}),(0,b.jsx)("span",{className:"sr-only",children:j.settings?.title||"Settings"})]})}),(0,b.jsxs)(B.d,{ref:n,className:"w-[calc(100vw-2rem)] sm:max-w-[900px] max-h-[85vh] overflow-y-auto",children:[(0,b.jsxs)(B.s,{children:[(0,b.jsx)(B.F,{children:j.settings?.title||"Settings"}),(0,b.jsx)(B.C,{children:j.settings?.desc||"Manage your preferences and data."})]}),(0,b.jsxs)(C.i,{defaultValue:"general",className:"w-full",children:[(0,b.jsxs)(C.U,{className:`grid w-full grid-cols-4 ${g?"sm:grid-cols-7":"sm:grid-cols-4"} gap-1 h-auto`,children:[(0,b.jsx)(aO,{value:"general",icon:(0,b.jsx)(u.f,{className:"h-4 w-4 sm:mr-2"}),label:j.settings?.tabs?.general||"General"}),(0,b.jsx)(aO,{value:"account",icon:(0,b.jsx)(y.f,{className:"h-4 w-4 sm:mr-2"}),label:j.settings?.tabs?.account||"Account"}),g&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(aO,{value:"ai",icon:(0,b.jsx)(s,{className:"h-4 w-4 sm:mr-2"}),label:j.settings?.tabs?.ai||"AI Provider"}),(0,b.jsx)(aO,{value:"prompts",icon:(0,b.jsx)(w,{className:"h-4 w-4 sm:mr-2"}),label:j.settings?.tabs?.prompts||"Prompts"}),(0,b.jsx)(aO,{value:"admin",icon:(0,b.jsx)(p,{className:"h-4 w-4 sm:mr-2"}),label:j.settings?.tabs?.admin||"User Management"})]}),(0,b.jsx)(aO,{value:"danger",icon:(0,b.jsx)(r,{className:"h-4 w-4 sm:mr-2"}),label:j.settings?.tabs?.danger||"Danger"}),(0,b.jsx)(aO,{value:"about",icon:(0,b.jsx)(t,{className:"h-4 w-4 sm:mr-2"}),label:j.settings?.tabs?.about||"About"})]}),(0,b.jsxs)(C.S,{value:"general",className:"space-y-4 py-4",children:[(0,b.jsx)(aA,{config:H,setConfig:I,isAdmin:g,disabled:F||o}),g&&L(j.settings?.save||"Save Settings")]}),(0,b.jsx)(C.S,{value:"account",className:"space-y-4 py-4",children:(0,b.jsx)(ah,{})}),(0,b.jsx)(C.S,{value:"ai",className:"space-y-4 py-4",children:(0,b.jsx)(ai.f,{config:H,setConfig:I,loading:F,saving:o,onSave:K})}),(0,b.jsxs)(C.S,{value:"prompts",className:"space-y-4 py-4",children:[(0,b.jsx)(aM,{config:H,onUpdate:(a,b)=>I(c=>({...c,prompts:{...c.prompts,[a]:b}}))}),L(j.settings?.prompts?.save||"Save Prompt Settings")]}),g&&(0,b.jsxs)(C.S,{value:"admin",className:"space-y-4 py-4",children:[(0,b.jsxs)(A.f,{variant:"outline",className:"w-full justify-start gap-2",onClick:()=>{m(!1),k.push("/admin")},children:[(0,b.jsx)(i.f,{className:"h-4 w-4"}),j.admin?.dashboard?.title||"Admin Dashboard"]}),(0,b.jsxs)(A.f,{variant:"outline",className:"w-full justify-start gap-2",onClick:()=>{m(!1),k.push("/setup")},children:[(0,b.jsx)(z.f,{className:"h-4 w-4"}),j.setup.rerun]}),(0,b.jsx)("div",{className:"border-t pt-4",children:(0,b.jsx)(W,{})})]}),(0,b.jsx)(C.S,{value:"danger",className:"space-y-4 py-4",children:(0,b.jsxs)("div",{className:"space-y-3",children:[(0,b.jsx)(ar,{isAdmin:g}),(0,b.jsx)(am,{isAdmin:g})]})}),(0,b.jsx)(C.S,{value:"about",className:"space-y-4 py-4",children:(0,b.jsx)(ad,{})})]})]})]})}let aQ=[/^\/login/,/^\/register/,/^\/setup/,/^\/print-preview/,/^\/exams\/[^/]+\/print/],aR=[{key:"home",href:"/",icon:o,match:a=>"/"===a},{key:"notebooks",href:"/notebooks",icon:j.f,match:a=>a.startsWith("/notebooks")||a.startsWith("/error-items")||a.startsWith("/practice")},{key:"review",href:"/review",icon:k.f,match:a=>a.startsWith("/review")},{key:"stats",href:"/stats",icon:i.f,match:a=>a.startsWith("/stats")||a.startsWith("/tags")},{key:"exams",href:"/exams",icon:l.f,match:a=>a.startsWith("/exams")}];function aS({children:a}){var e;let i,j,k=(0,h.usePathname)()||"/",{t:l}=(0,c.b)(),{data:n,status:o}=(0,d.useSession)(),r=n?.user?.role==="admin",s=aQ.some(a=>a.test(k));if(e=r&&!s,i=(0,h.useRouter)(),j=(0,q.useRef)(!1),(0,q.useEffect)(()=>{e&&!j.current&&(j.current=!0,S.f.get("/api/setup").then(a=>{a.needsSetup&&i.replace("/setup")}).catch(a=>U.f.warn("[Setup]","Failed to check setup status",{error:a})))},[e,i]),s||"unauthenticated"===o)return(0,b.jsx)(b.Fragment,{children:a});let t=n?.user?.name||n?.user?.email||"";return(0,b.jsxs)("div",{className:"min-h-screen",children:[(0,b.jsx)("header",{className:"sticky top-0 z-40 border-b bg-card/80 backdrop-blur-md supports-[backdrop-filter]:bg-card/70 print:hidden",children:(0,b.jsxs)("div",{className:"mx-auto flex h-14 max-w-6xl items-center gap-3 px-4 md:h-16 md:px-8",children:[(0,b.jsxs)(g.default,{href:"/",className:"flex shrink-0 items-center gap-2",children:[(0,b.jsx)(f.default,{src:"/icons/icon.png",alt:"",width:32,height:32,className:"rounded-lg",priority:!0,unoptimized:!0}),(0,b.jsx)("span",{className:"text-base font-semibold tracking-tight",children:l.pageTitle.base})]}),(0,b.jsx)("nav",{className:"ml-4 hidden items-center gap-1 md:flex",children:aR.map(a=>{let c=a.match(k),d=a.icon;return(0,b.jsxs)(g.default,{href:a.href,className:(0,I.f)("flex items-center gap-1.5 rounded-lg px-3 py-2 text-sm font-medium transition-colors",c?"bg-accent text-accent-foreground":"text-muted-foreground hover:bg-muted hover:text-foreground"),"aria-current":c?"page":void 0,children:[(0,b.jsx)(d,{className:"h-4 w-4"}),l.nav[a.key]]},a.key)})}),(0,b.jsxs)("div",{className:"ml-auto flex items-center gap-1",children:[t&&(0,b.jsxs)("span",{className:"mr-2 hidden max-w-40 items-center gap-2 truncate text-sm text-muted-foreground lg:flex",children:[(0,b.jsx)("span",{className:"flex h-7 w-7 shrink-0 items-center justify-center rounded-full bg-primary/10 text-xs font-semibold text-primary",children:t.slice(0,1).toUpperCase()}),(0,b.jsx)("span",{className:"truncate",children:t})]}),r&&(0,b.jsx)(g.default,{href:"/admin",title:l.nav.admin,children:(0,b.jsxs)(A.f,{variant:"ghost",size:"icon",className:"rounded-full",children:[(0,b.jsx)(p,{className:"h-5 w-5"}),(0,b.jsx)("span",{className:"sr-only",children:l.nav.admin})]})}),(0,b.jsx)(aP,{}),(0,b.jsx)(A.f,{variant:"ghost",size:"icon",className:"rounded-full text-muted-foreground hover:text-destructive",onClick:()=>(0,d.signOut)({callbackUrl:"/login"}),title:l.app.logout,children:(0,b.jsx)(m.f,{className:"h-5 w-5"})})]})]})}),(0,b.jsx)("div",{className:"pb-20 md:pb-0",children:a}),(0,b.jsx)("nav",{className:"pb-safe fixed inset-x-0 bottom-0 z-40 border-t bg-card/90 backdrop-blur-md md:hidden print:hidden",children:(0,b.jsx)("div",{className:"grid h-16 grid-cols-5",children:aR.map(a=>{let c=a.match(k),d=a.icon;return(0,b.jsxs)(g.default,{href:a.href,className:(0,I.f)("flex flex-col items-center justify-center gap-1 text-[11px] font-medium transition-colors",c?"text-primary":"text-muted-foreground"),"aria-current":c?"page":void 0,children:[(0,b.jsx)("span",{className:(0,I.f)("flex h-7 w-12 items-center justify-center rounded-full transition-colors",c&&"bg-accent"),children:(0,b.jsx)(d,{className:"h-5 w-5"})}),l.nav[a.key]]},a.key)})})})]})}let aT=(0,n.f)("list-todo",[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["rect",{x:"3",y:"4",width:"6",height:"6",rx:"1",key:"cif1o7"}]]);var aU=a.i(862722);let aV=[/^\/login/,/^\/register/,/^\/print-preview/,/^\/exams\/[^/]+\/print/];function aW(){let{t:a}=(0,c.b)(),{timeZone:f}=(0,e.M)(),{status:i}=(0,d.useSession)(),j=(0,h.usePathname)(),[k,l]=(0,q.useState)(!1),[m,n]=(0,q.useState)([]),[o,p]=(0,q.useState)(()=>Date.now()),r="authenticated"!==i||aV.some(a=>a.test(j||"")),s=(0,q.useCallback)(async()=>{if("u"<typeof document||"hidden"!==document.visibilityState)try{let a=await S.f.get("/api/tasks");n(a.tasks),p(Date.now())}catch{}},[]);if((0,q.useEffect)(()=>{if(r)return;let a=setTimeout(s,0),b=setInterval(s,k?2e3:15e3);return()=>{clearTimeout(a),clearInterval(b)}},[r,k,s]),r)return null;let t=m.filter(a=>"running"===a.status).length,u=m.some(a=>"running"!==a.status),w=async()=>{try{let a=await S.f.delete("/api/tasks");n(a.tasks)}catch{}};return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)(A.f,{variant:"outline",size:"icon",className:"fixed bottom-20 right-4 z-40 h-11 w-11 rounded-full shadow-lg md:bottom-6 md:right-6 print:hidden",onClick:()=>l(!0),"aria-label":a.backgroundTasks.title,title:a.backgroundTasks.title,children:[t>0?(0,b.jsx)(v.f,{className:"h-5 w-5 animate-spin"}):(0,b.jsx)(aT,{className:"h-5 w-5"}),t>0&&(0,b.jsx)("span",{className:"absolute -right-1 -top-1 flex h-5 min-w-5 items-center justify-center rounded-full bg-primary px-1 text-xs text-primary-foreground",children:t})]}),(0,b.jsx)(B.N,{open:k,onOpenChange:l,children:(0,b.jsxs)(B.d,{className:"max-h-[85vh] overflow-y-auto sm:max-w-lg",children:[(0,b.jsxs)(B.s,{children:[(0,b.jsx)(B.F,{children:a.backgroundTasks.title}),(0,b.jsx)(B.C,{children:a.backgroundTasks.description})]}),0===m.length?(0,b.jsx)("p",{className:"py-6 text-center text-sm text-muted-foreground",children:a.backgroundTasks.empty}):(0,b.jsx)("ul",{className:"space-y-2",children:m.map(c=>{var d,e;let h;return(0,b.jsx)("li",{className:"rounded-md border p-3 text-sm",children:(0,b.jsxs)("div",{className:"flex items-start gap-2",children:["running"===c.status&&(0,b.jsx)(v.f,{className:"mt-0.5 h-4 w-4 shrink-0 animate-spin text-primary"}),"succeeded"===c.status&&(0,b.jsx)(an.f,{className:"mt-0.5 h-4 w-4 shrink-0 text-green-600"}),"failed"===c.status&&(0,b.jsx)(aU.f,{className:"mt-0.5 h-4 w-4 shrink-0 text-destructive"}),(0,b.jsxs)("div",{className:"min-w-0 flex-1 space-y-1",children:[(0,b.jsxs)("div",{className:"font-medium",children:[a.backgroundTasks.kinds[c.kind],(0,b.jsxs)("span",{className:"font-normal text-muted-foreground",children:[" · ",a.backgroundTasks.status[c.status]]})]}),c.subject&&(0,b.jsx)("div",{className:"break-words text-muted-foreground",children:c.subject}),c.progress&&c.progress.total>0&&(0,b.jsxs)("div",{className:"space-y-1",children:[(0,b.jsx)("div",{className:"h-1.5 overflow-hidden rounded bg-muted",children:(0,b.jsx)("div",{className:"h-full bg-primary transition-all",style:{width:`${Math.round(c.progress.done/c.progress.total*100)}%`}})}),(0,b.jsxs)("div",{className:"text-xs text-muted-foreground",children:[a.backgroundTasks.progress.replace("{done}",String(c.progress.done)).replace("{total}",String(c.progress.total)),c.progress.failed>0&&` \xb7 ${a.backgroundTasks.failedCount.replace("{count}",String(c.progress.failed))}`]})]}),c.error&&(0,b.jsx)("div",{className:"text-xs text-destructive",children:(b=>{if(!b)return null;let c=a.backgroundTasks.errors[b]??a.errors[b];return"string"==typeof c?c:b})(c.error)}),(0,b.jsxs)("div",{className:"flex flex-wrap items-center gap-x-3 text-xs text-muted-foreground",children:[(0,b.jsx)("span",{children:a.backgroundTasks.startedAt.replace("{time}",(0,D.r)(c.startedAt,"HH:mm:ss",f))}),(0,b.jsx)("span",{children:a.backgroundTasks.elapsed.replace("{time}",(d=c.startedAt,e=c.finishedAt,h=Math.max(0,Math.round(((e?Date.parse(e):o)-Date.parse(d))/1e3)),`${Math.floor(h/60)}:${String(h%60).padStart(2,"0")}`))}),c.link&&(0,b.jsx)(g.default,{href:c.link,className:"text-primary hover:underline",onClick:()=>l(!1),children:a.backgroundTasks.view})]})]})]})},c.id)})}),(0,b.jsxs)("div",{className:"flex items-center justify-between gap-2 pt-1",children:[(0,b.jsx)("p",{className:"text-xs text-muted-foreground",children:a.backgroundTasks.retentionHint}),u&&(0,b.jsx)(A.f,{variant:"ghost",size:"sm",onClick:w,children:a.backgroundTasks.clearFinished})]})]})})]})}var aX=a.i(633508);let aY={success:{icon:an.f,className:"text-success"},error:{icon:aU.f,className:"text-destructive"},warning:{icon:r,className:"text-warning"},info:{icon:t,className:"text-primary"}};function aZ(){let{t:a}=(0,c.b)(),[d,e]=(0,q.useState)([]),[f,g]=(0,q.useState)(null);return(0,q.useEffect)(()=>(0,T.M)(a=>{e(a.toasts),g(a.confirm)}),[]),(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{className:"pointer-events-none fixed inset-x-0 top-3 z-[100] flex flex-col items-center gap-2 px-4 print:hidden",role:"status","aria-live":"polite",children:d.map(c=>{let{icon:d,className:e}=aY[c.type];return(0,b.jsxs)("div",{className:"pointer-events-auto flex w-full max-w-sm items-start gap-3 rounded-xl border bg-card/95 px-4 py-3 text-sm shadow-lg backdrop-blur animate-in fade-in slide-in-from-top-2 duration-200",children:[(0,b.jsx)(d,{className:(0,I.f)("mt-0.5 h-4 w-4 shrink-0",e)}),(0,b.jsx)("p",{className:"min-w-0 flex-1 whitespace-pre-line break-words leading-relaxed",children:c.message}),(0,b.jsx)("button",{type:"button",className:"shrink-0 rounded p-0.5 text-muted-foreground transition-colors hover:text-foreground",onClick:()=>(0,T.p)(c.id),"aria-label":a.common.close,children:(0,b.jsx)(aX.X,{className:"h-3.5 w-3.5"})})]},c.id)})}),(0,b.jsx)(B.N,{open:!!f,onOpenChange:a=>{a||f?.resolve(!1)},children:(0,b.jsxs)(B.d,{className:"sm:max-w-md",children:[(0,b.jsxs)(B.s,{children:[(0,b.jsxs)(B.F,{className:"flex items-center gap-2",children:[f?.destructive&&(0,b.jsx)(r,{className:"h-5 w-5 text-destructive"}),f?.title||a.common.confirmTitle]}),(0,b.jsx)(B.C,{className:"whitespace-pre-line pt-1 text-left leading-relaxed",children:f?.message})]}),(0,b.jsxs)(B.c,{className:"gap-2",children:[(0,b.jsx)(A.f,{variant:"outline",onClick:()=>f?.resolve(!1),children:f?.cancelText||a.common.cancel}),(0,b.jsx)(A.f,{variant:f?.destructive?"destructive":"default",onClick:()=>f?.resolve(!0),autoFocus:!0,children:f?.confirmText||a.common.confirm})]})]})})]})}function a$(){return(0,q.useEffect)(()=>{"serviceWorker"in navigator&&navigator.serviceWorker.register("/sw.js",{scope:"/"}).catch(a=>{U.f.warn("[PWA]","Service worker registration failed",{error:String(a)})})},[]),null}a.s(["Providers",0,function({children:a,timeZone:f}){return(0,b.jsx)(d.SessionProvider,{children:(0,b.jsx)(c.w,{children:(0,b.jsxs)(e.n,{initialTimeZone:f,children:[(0,b.jsx)(aS,{children:a}),(0,b.jsx)(aW,{}),(0,b.jsx)(aZ,{}),(0,b.jsx)(a$,{})]})})})}],418175)}];
|
|
192
192
|
|
|
193
193
|
//# sourceMappingURL=src_components_providers_tsx_09kw-mv3nb6xs._.js.map
|
|
@@ -7,9 +7,9 @@ globalThis.__BUILD_MANIFEST = {
|
|
|
7
7
|
"static/chunks/0cz1d0mv5g_q7.js"
|
|
8
8
|
],
|
|
9
9
|
"lowPriorityFiles": [
|
|
10
|
-
"static/
|
|
11
|
-
"static/
|
|
12
|
-
"static/
|
|
10
|
+
"static/KvipY98Rm0kvPB-UaObQu/_buildManifest.js",
|
|
11
|
+
"static/KvipY98Rm0kvPB-UaObQu/_ssgManifest.js",
|
|
12
|
+
"static/KvipY98Rm0kvPB-UaObQu/_clientMiddlewareManifest.js"
|
|
13
13
|
],
|
|
14
14
|
"rootMainFiles": [
|
|
15
15
|
"static/chunks/263d57goy87o4.js",
|
|
@@ -21,11 +21,11 @@
|
|
|
21
21
|
"wasm": [],
|
|
22
22
|
"assets": [],
|
|
23
23
|
"env": {
|
|
24
|
-
"__NEXT_BUILD_ID": "
|
|
25
|
-
"NEXT_SERVER_ACTIONS_ENCRYPTION_KEY": "
|
|
26
|
-
"__NEXT_PREVIEW_MODE_ID": "
|
|
27
|
-
"__NEXT_PREVIEW_MODE_ENCRYPTION_KEY": "
|
|
28
|
-
"__NEXT_PREVIEW_MODE_SIGNING_KEY": "
|
|
24
|
+
"__NEXT_BUILD_ID": "KvipY98Rm0kvPB-UaObQu",
|
|
25
|
+
"NEXT_SERVER_ACTIONS_ENCRYPTION_KEY": "/ZUKPvIVARyoBE8PiEhcaR4zLpXY6jQRJ6QC7ylyX58=",
|
|
26
|
+
"__NEXT_PREVIEW_MODE_ID": "e2f8bbbcad38f782a1e2bf74c7765192",
|
|
27
|
+
"__NEXT_PREVIEW_MODE_ENCRYPTION_KEY": "77e680a91b97b966260312e3bfaee255747d403acad37a2cfddc27b394aacb27",
|
|
28
|
+
"__NEXT_PREVIEW_MODE_SIGNING_KEY": "abd182ff077d92b0d90d9120d62683a757c41d1fdc55af8b96e1f13b55062282"
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html id="__next_error__"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/263d57goy87o4.js"/><script src="/_next/static/chunks/242x7dx0zu3hf.js" async=""></script><script src="/_next/static/chunks/0ykhi6pk49so-.js" async=""></script><script src="/_next/static/chunks/1fkaya2t7r343.js" async=""></script><script src="/_next/static/chunks/turbopack-2c3mg3r-05n1w.js" async=""></script><script src="/_next/static/chunks/0a-rekt06v0sv.js" async=""></script><link rel="manifest" href="/manifest.webmanifest"/><link rel="icon" href="/favicon.ico?favicon.2vob68tjqpejf.ico" sizes="256x256" type="image/x-icon"/><meta name="next-size-adjust" content=""/><title>500: This page couldn’t load</title><style>:root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }</style><script src="/_next/static/chunks/0cz1d0mv5g_q7.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;display:flex;align-items:center;justify-content:center"><div style="margin-top:-32px;max-width:325px;padding:32px 28px;text-align:left"><svg width="32" height="32" viewBox="-0.2 -1.5 32 32" fill="none" style="margin-bottom:24px"><path d="M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z" fill="var(--next-error-title)"></path></svg><h1 style="font-size:24px;font-weight:500;letter-spacing:-0.02em;line-height:32px;margin:0 0 12px 0;color:var(--next-error-title)">This page couldn’t load</h1><p style="font-size:14px;font-weight:400;line-height:21px;margin:0 0 20px 0;color:var(--next-error-message)">A server error occurred. Reload to try again.</p><form style="margin:0"><button type="submit" style="display:inline-flex;align-items:center;justify-content:center;height:32px;padding:0 12px;font-size:14px;font-weight:500;line-height:20px;border-radius:6px;cursor:pointer;color:var(--next-error-btn-text);background:var(--next-error-btn-bg);border:var(--next-error-btn-border)">Reload</button></form></div></div><!--$--><!--/$--><script id="_R_">(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push({"otherChunks":["static/chunks/263d57goy87o4.js","static/chunks/242x7dx0zu3hf.js","static/chunks/0ykhi6pk49so-.js","static/chunks/1fkaya2t7r343.js"],"runtimeModuleIds":[494553]});</script><script src="/_next/static/chunks/263d57goy87o4.js" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:\"/_next/static/chunks/0a-rekt06v0sv.js\"\n3:I[339756,[\"$2\"],\"default\"]\n4:I[837457,[\"$2\"],\"default\"]\n7:I[897367,[\"$2\"],\"OutletBoundary\"]\n8:\"$Sreact.suspense\"\na:\"ViewportBoundary\"\nb:I[897367,[\"$2\"],\"$a\"]\nd:\"MetadataBoundary\"\ne:I[897367,[\"$2\"],\"$d\"]\n10:I[168027,[\"$2\"],\"default\",1]\n5:X\n6:[[\"children\",{\"s\":\"__PAGE__\",\"h\":528,\"d\":{\"r\":[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"html\",null,{\"id\":\"__next_error__\",\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"title\",null,{\"children\":\"500: This page couldn’t load\"}],[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\":root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }\"}}]]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"display\":\"flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"style\":{\"marginTop\":\"-32px\",\"maxWidth\":\"325px\",\"padding\":\"32px 28px\",\"textAlign\":\"left\"},\"children\":[[\"$\",\"svg\",null,{\"width\":\"32\",\"height\":\"32\",\"viewBox\":\"-0.2 -1.5 32 32\",\"fill\":\"none\",\"style\":{\"marginBottom\":\"24px\"},\"children\":[\"$\",\"path\",null,{\"d\":\"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z\",\"fill\":\"var(--next-error-title)\"}]}],[\"$\",\"h1\",null,{\"style\":{\"fontSize\":\"24px\",\"fontWeight\":500,\"letterSpacing\":\"-0.02em\",\"lineHeight\":\"32px\",\"margin\":\"0 0 12px 0\",\"color\":\"var(--next-error-title)\"},\"children\":\"This page couldn’t load\"}],[\"$\",\"p\",null,{\"style\":{\"fontSize\":\"14px\",\"fontWeight\":400,\"lineHeight\":\"21px\",\"margin\":\"0 0 20px 0\",\"color\":\"var(--next-error-message)\"},\"children\":\"A server error occurred. Reload to try again.\"}],[\"$\",\"form\",null,{\"style\":{\"margin\":0},\"children\":[\"$\",\"button\",null,{\"type\":\"submit\",\"style\":{\"display\":\"inline-flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\",\"height\":\"32px\",\"padding\":\"0 12px\",\"fontSize\":\"14px\",\"fontWeight\":500,\"lineHeight\":\"20px\",\"borderRadius\":\"6px\",\"cursor\":\"pointer\",\"color\":\"var(--next-error-btn-text)\",\"background\":\"var(--next-error-btn-bg)\",\"border\":\"var(--next-error-btn-border)\"},\"children\":\"Reload\"}]}]]}]}]}]]}],null,[\"$\",\"$L7\",null,{\"children\":[\"$\",\"$8\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@9\"}]}]]}],\"p\":false,\"v\":null}}]]\n0:{\"P\":null,\"c\":[\"\",\"_global-error\"],\"q\":\"\",\"i\":false,\"t\":{\"t\":{\"s\":\"\",\"h\":528,\"d\":{\"r\":[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],\"p\":false,\"v\":\"$5\"},\"c\":\"$Q6\"},\"h\":{\"r\":[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$Lb\",null,{\"children\":\"$Lc\"}],[\"$\",\"$Le\",null,{\"children\":[[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$8\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lf\"}]}],null]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],\"p\":false,\"v\":null}},\"m\":\"$undefined\",\"G\":[\"$10\",[]],\"S\":true,\"r\":\"$undefined\",\"s\":\"$undefined\",\"a\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"
|
|
1
|
+
<!DOCTYPE html><html id="__next_error__"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/263d57goy87o4.js"/><script src="/_next/static/chunks/242x7dx0zu3hf.js" async=""></script><script src="/_next/static/chunks/0ykhi6pk49so-.js" async=""></script><script src="/_next/static/chunks/1fkaya2t7r343.js" async=""></script><script src="/_next/static/chunks/turbopack-2c3mg3r-05n1w.js" async=""></script><script src="/_next/static/chunks/0a-rekt06v0sv.js" async=""></script><link rel="manifest" href="/manifest.webmanifest"/><link rel="icon" href="/favicon.ico?favicon.2vob68tjqpejf.ico" sizes="256x256" type="image/x-icon"/><meta name="next-size-adjust" content=""/><title>500: This page couldn’t load</title><style>:root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }</style><script src="/_next/static/chunks/0cz1d0mv5g_q7.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;display:flex;align-items:center;justify-content:center"><div style="margin-top:-32px;max-width:325px;padding:32px 28px;text-align:left"><svg width="32" height="32" viewBox="-0.2 -1.5 32 32" fill="none" style="margin-bottom:24px"><path d="M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z" fill="var(--next-error-title)"></path></svg><h1 style="font-size:24px;font-weight:500;letter-spacing:-0.02em;line-height:32px;margin:0 0 12px 0;color:var(--next-error-title)">This page couldn’t load</h1><p style="font-size:14px;font-weight:400;line-height:21px;margin:0 0 20px 0;color:var(--next-error-message)">A server error occurred. Reload to try again.</p><form style="margin:0"><button type="submit" style="display:inline-flex;align-items:center;justify-content:center;height:32px;padding:0 12px;font-size:14px;font-weight:500;line-height:20px;border-radius:6px;cursor:pointer;color:var(--next-error-btn-text);background:var(--next-error-btn-bg);border:var(--next-error-btn-border)">Reload</button></form></div></div><!--$--><!--/$--><script id="_R_">(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push({"otherChunks":["static/chunks/263d57goy87o4.js","static/chunks/242x7dx0zu3hf.js","static/chunks/0ykhi6pk49so-.js","static/chunks/1fkaya2t7r343.js"],"runtimeModuleIds":[494553]});</script><script src="/_next/static/chunks/263d57goy87o4.js" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:\"/_next/static/chunks/0a-rekt06v0sv.js\"\n3:I[339756,[\"$2\"],\"default\"]\n4:I[837457,[\"$2\"],\"default\"]\n7:I[897367,[\"$2\"],\"OutletBoundary\"]\n8:\"$Sreact.suspense\"\na:\"ViewportBoundary\"\nb:I[897367,[\"$2\"],\"$a\"]\nd:\"MetadataBoundary\"\ne:I[897367,[\"$2\"],\"$d\"]\n10:I[168027,[\"$2\"],\"default\",1]\n5:X\n6:[[\"children\",{\"s\":\"__PAGE__\",\"h\":528,\"d\":{\"r\":[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"html\",null,{\"id\":\"__next_error__\",\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"title\",null,{\"children\":\"500: This page couldn’t load\"}],[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\":root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }\"}}]]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"display\":\"flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"style\":{\"marginTop\":\"-32px\",\"maxWidth\":\"325px\",\"padding\":\"32px 28px\",\"textAlign\":\"left\"},\"children\":[[\"$\",\"svg\",null,{\"width\":\"32\",\"height\":\"32\",\"viewBox\":\"-0.2 -1.5 32 32\",\"fill\":\"none\",\"style\":{\"marginBottom\":\"24px\"},\"children\":[\"$\",\"path\",null,{\"d\":\"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z\",\"fill\":\"var(--next-error-title)\"}]}],[\"$\",\"h1\",null,{\"style\":{\"fontSize\":\"24px\",\"fontWeight\":500,\"letterSpacing\":\"-0.02em\",\"lineHeight\":\"32px\",\"margin\":\"0 0 12px 0\",\"color\":\"var(--next-error-title)\"},\"children\":\"This page couldn’t load\"}],[\"$\",\"p\",null,{\"style\":{\"fontSize\":\"14px\",\"fontWeight\":400,\"lineHeight\":\"21px\",\"margin\":\"0 0 20px 0\",\"color\":\"var(--next-error-message)\"},\"children\":\"A server error occurred. Reload to try again.\"}],[\"$\",\"form\",null,{\"style\":{\"margin\":0},\"children\":[\"$\",\"button\",null,{\"type\":\"submit\",\"style\":{\"display\":\"inline-flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\",\"height\":\"32px\",\"padding\":\"0 12px\",\"fontSize\":\"14px\",\"fontWeight\":500,\"lineHeight\":\"20px\",\"borderRadius\":\"6px\",\"cursor\":\"pointer\",\"color\":\"var(--next-error-btn-text)\",\"background\":\"var(--next-error-btn-bg)\",\"border\":\"var(--next-error-btn-border)\"},\"children\":\"Reload\"}]}]]}]}]}]]}],null,[\"$\",\"$L7\",null,{\"children\":[\"$\",\"$8\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@9\"}]}]]}],\"p\":false,\"v\":null}}]]\n0:{\"P\":null,\"c\":[\"\",\"_global-error\"],\"q\":\"\",\"i\":false,\"t\":{\"t\":{\"s\":\"\",\"h\":528,\"d\":{\"r\":[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],\"p\":false,\"v\":\"$5\"},\"c\":\"$Q6\"},\"h\":{\"r\":[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$Lb\",null,{\"children\":\"$Lc\"}],[\"$\",\"$Le\",null,{\"children\":[[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$8\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lf\"}]}],null]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],\"p\":false,\"v\":null}},\"m\":\"$undefined\",\"G\":[\"$10\",[]],\"S\":true,\"r\":\"$undefined\",\"s\":\"$undefined\",\"a\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"KvipY98Rm0kvPB-UaObQu\"}\n5:C\nc:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n11:I[27201,[\"$2\"],\"IconMark\"]\n9:null\nf:[[\"$\",\"link\",\"0\",{\"rel\":\"manifest\",\"href\":\"/manifest.webmanifest\",\"crossOrigin\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"icon\",\"href\":\"/favicon.ico?favicon.2vob68tjqpejf.ico\",\"sizes\":\"256x256\",\"type\":\"image/x-icon\"}],[\"$\",\"$L11\",\"2\",{}]]\n"])</script></body></html>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"previewModeId": "
|
|
3
|
-
"previewModeSigningKey": "
|
|
4
|
-
"previewModeEncryptionKey": "
|
|
2
|
+
"previewModeId": "e2f8bbbcad38f782a1e2bf74c7765192",
|
|
3
|
+
"previewModeSigningKey": "abd182ff077d92b0d90d9120d62683a757c41d1fdc55af8b96e1f13b55062282",
|
|
4
|
+
"previewModeEncryptionKey": "77e680a91b97b966260312e3bfaee255747d403acad37a2cfddc27b394aacb27"
|
|
5
5
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
self.__RSC_SERVER_MANIFEST="{\n \"node\": {},\n \"edge\": {},\n \"encryptionKey\": \"
|
|
1
|
+
self.__RSC_SERVER_MANIFEST="{\n \"node\": {},\n \"edge\": {},\n \"encryptionKey\": \"/ZUKPvIVARyoBE8PiEhcaR4zLpXY6jQRJ6QC7ylyX58=\"\n}"
|