purplemux 0.2.4 → 0.2.6
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/standalone/.next/BUILD_ID +1 -1
- package/.next/standalone/.next/build-manifest.json +70 -70
- package/.next/standalone/.next/prerender-manifest.json +3 -3
- package/.next/standalone/.next/required-server-files.json +1 -1
- package/.next/standalone/.next/routes-manifest.json +7 -7
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0-qfa-x._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__00nrs0h._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__03x8rds._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__04cr_m8._.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__06j59n1._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__07gfnob._.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__07xijrd._.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__08tdlcm._.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__09_6_.~._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__09gkm_6._.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0_uldiw._.js +15 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0a4t.z5._.js +52 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0bo-su1._.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0c-bb5d._.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0dvelfj._.js +52 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0e.7isl._.js +5 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0gcec.8._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0ihlt6s._.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0qvunc5._.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0r77-u1._.js +52 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0vi8p6v._.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0w3m-oz._.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0zh8xur._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0~iu3jq._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__12nr~pb._.js +1 -1
- package/.next/standalone/.next/server/chunks/{_0v81st0._.js → _0.pa6m1._.js} +1 -1
- package/.next/standalone/.next/server/chunks/_05ib7yu._.js +3 -0
- package/.next/standalone/.next/server/chunks/{_0ll-5~7._.js → _09y8.gr._.js} +1 -1
- package/.next/standalone/.next/server/chunks/{_0.5a4bu._.js → _0mwq11h._.js} +1 -1
- package/.next/standalone/.next/server/chunks/_0y4b49w._.js +3 -0
- package/.next/standalone/.next/server/chunks/_0zcb2f0._.js +3 -0
- package/.next/standalone/.next/server/chunks/{node_modules_ws_124xx2_._.js → _106a~ya._.js} +2 -2
- package/.next/standalone/.next/server/chunks/node_modules_next_dist_esm_build_templates_pages-api_00-t8sq.js +1 -1
- package/.next/standalone/.next/server/chunks/src_lib_00fhuqb._.js +3 -0
- package/.next/standalone/.next/server/chunks/src_lib_0dvlmi4._.js +15 -0
- package/.next/standalone/.next/server/chunks/src_lib_0ojl2hg._.js +52 -0
- package/.next/standalone/.next/server/chunks/src_lib_layout-store_ts_0fanx7c._.js +1 -1
- package/.next/standalone/.next/server/chunks/src_lib_status-manager_ts_003hlhy._.js +1 -13
- package/.next/standalone/.next/server/chunks/src_lib_workspace-store_ts_0vqt073._.js +1 -40
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0t9ru13._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{_0o8h1fd._.js → _0-kyl7i._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/_017c8be._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/{_0c1yivm._.js → _070zc_o._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/_07jud1p._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_0_uqm-4._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/{_0ftinmo._.js → _0ed.wmt._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/_0lpqhot._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/_0pg-q18._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_0pp3e5j._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_0ttiybw._.js +18 -0
- package/.next/standalone/.next/server/chunks/ssr/_0w.1ts8._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_0w6jc9p._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_0xp3-y6._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/{_11v_6.6._.js → _0y7o.rg._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/_0ytb_c0._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/{_02jzd5g._.js → _13gee5r._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/messages_de_terminal_json_[json]_cjs_05jirtw._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/messages_en_terminal_json_[json]_cjs_0~ls3g-._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/messages_es_terminal_json_[json]_cjs_04g2b1_._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/messages_fr_terminal_json_[json]_cjs_0uhakya._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/messages_ja_terminal_json_[json]_cjs_0776z4f._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/messages_ko_terminal_json_[json]_cjs_06611.3._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/messages_pt-BR_terminal_json_[json]_cjs_034yyg9._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/messages_ru_terminal_json_[json]_cjs_0emk8~n._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/messages_tr_terminal_json_[json]_cjs_0xpix8g._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/messages_zh-CN_terminal_json_[json]_cjs_12vwl8a._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/messages_zh-TW_terminal_json_[json]_cjs_0spg5z5._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{src_components_0_aiven._.js → src_components_0_nzv1r._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{src_components_0geizrr._.js → src_components_0bqqfju._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{src_components_11_1i~k._.js → src_components_0rqxlj-._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{src_components_12mrirb._.js → src_components_0s~.n3e._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/src_components_features_mobile_mobile-terminal-page_tsx_02chzch._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/src_components_features_workspace_terminal-page_tsx_0wuq-jl._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/src_lib_workspace-store_ts_00x-rec._.js +10 -0
- package/.next/standalone/.next/server/middleware-build-manifest.js +70 -70
- package/.next/standalone/.next/server/pages/_app/build-manifest.json +3 -3
- package/.next/standalone/.next/server/pages/_app/client-build-manifest.json +1 -1
- package/.next/standalone/.next/server/pages/api/auth/login.js +2 -2
- package/.next/standalone/.next/server/pages/api/auth/login.js.nft.json +1 -1
- package/.next/standalone/.next/server/pages/api/auth/preflight.js +2 -2
- package/.next/standalone/.next/server/pages/api/auth/preflight.js.nft.json +1 -1
- package/.next/standalone/.next/server/pages/api/auth/setup.js +2 -2
- package/.next/standalone/.next/server/pages/api/auth/setup.js.nft.json +1 -1
- package/.next/standalone/.next/server/pages/api/check-claude.js +5 -1
- package/.next/standalone/.next/server/pages/api/check-claude.js.nft.json +1 -1
- package/.next/standalone/.next/server/pages/api/cli/tabs/[tabId]/browser/console.js +2 -2
- package/.next/standalone/.next/server/pages/api/cli/tabs/[tabId]/browser/console.js.nft.json +1 -1
- package/.next/standalone/.next/server/pages/api/cli/tabs/[tabId]/browser/eval.js +2 -2
- package/.next/standalone/.next/server/pages/api/cli/tabs/[tabId]/browser/eval.js.nft.json +1 -1
- package/.next/standalone/.next/server/pages/api/cli/tabs/[tabId]/browser/network.js +2 -2
- package/.next/standalone/.next/server/pages/api/cli/tabs/[tabId]/browser/network.js.nft.json +1 -1
- package/.next/standalone/.next/server/pages/api/cli/tabs/[tabId]/browser/screenshot.js +2 -2
- package/.next/standalone/.next/server/pages/api/cli/tabs/[tabId]/browser/screenshot.js.nft.json +1 -1
- package/.next/standalone/.next/server/pages/api/cli/tabs/[tabId]/browser/url.js +2 -2
- package/.next/standalone/.next/server/pages/api/cli/tabs/[tabId]/browser/url.js.nft.json +1 -1
- package/.next/standalone/.next/server/pages/api/cli/tabs/[tabId]/result.js +2 -2
- package/.next/standalone/.next/server/pages/api/cli/tabs/[tabId]/result.js.nft.json +1 -1
- package/.next/standalone/.next/server/pages/api/cli/tabs/[tabId]/send.js +2 -2
- package/.next/standalone/.next/server/pages/api/cli/tabs/[tabId]/send.js.nft.json +1 -1
- package/.next/standalone/.next/server/pages/api/cli/tabs/[tabId]/status.js +2 -2
- package/.next/standalone/.next/server/pages/api/cli/tabs/[tabId]/status.js.nft.json +1 -1
- package/.next/standalone/.next/server/pages/api/cli/tabs/[tabId].js +2 -2
- package/.next/standalone/.next/server/pages/api/cli/tabs/[tabId].js.nft.json +1 -1
- package/.next/standalone/.next/server/pages/api/cli/tabs.js +2 -2
- package/.next/standalone/.next/server/pages/api/cli/tabs.js.nft.json +1 -1
- package/.next/standalone/.next/server/pages/api/cli/workspaces.js +2 -2
- package/.next/standalone/.next/server/pages/api/cli/workspaces.js.nft.json +1 -1
- package/.next/standalone/.next/server/pages/api/config.js +2 -2
- package/.next/standalone/.next/server/pages/api/config.js.nft.json +1 -1
- package/.next/standalone/.next/server/pages/api/layout/diff.js +1 -1
- package/.next/standalone/.next/server/pages/api/layout/diff.js.nft.json +1 -1
- package/.next/standalone/.next/server/pages/api/layout/pane/[paneId]/tabs/[tabId]/move.js +2 -2
- package/.next/standalone/.next/server/pages/api/layout/pane/[paneId]/tabs/[tabId]/move.js.nft.json +1 -1
- package/.next/standalone/.next/server/pages/api/layout/pane/[paneId]/tabs/[tabId].js +5 -5
- package/.next/standalone/.next/server/pages/api/layout/pane/[paneId]/tabs/[tabId].js.nft.json +1 -1
- package/.next/standalone/.next/server/pages/api/layout/pane/[paneId]/tabs/order.js +2 -2
- package/.next/standalone/.next/server/pages/api/layout/pane/[paneId]/tabs/order.js.nft.json +1 -1
- package/.next/standalone/.next/server/pages/api/layout/pane/[paneId]/tabs.js +5 -5
- package/.next/standalone/.next/server/pages/api/layout/pane/[paneId]/tabs.js.nft.json +1 -1
- package/.next/standalone/.next/server/pages/api/layout/pane/[paneId].js +2 -2
- package/.next/standalone/.next/server/pages/api/layout/pane/[paneId].js.nft.json +1 -1
- package/.next/standalone/.next/server/pages/api/layout/pane.js +2 -2
- package/.next/standalone/.next/server/pages/api/layout/pane.js.nft.json +1 -1
- package/.next/standalone/.next/server/pages/api/layout.js +2 -2
- package/.next/standalone/.next/server/pages/api/layout.js.nft.json +1 -1
- package/.next/standalone/.next/server/pages/api/message-history.js +2 -2
- package/.next/standalone/.next/server/pages/api/message-history.js.nft.json +1 -1
- package/.next/standalone/.next/server/pages/api/preflight/runtime.js.nft.json +1 -1
- package/.next/standalone/.next/server/pages/api/stats/daily-report/cache.js.nft.json +1 -1
- package/.next/standalone/.next/server/pages/api/stats/daily-report/generate.js.nft.json +1 -1
- package/.next/standalone/.next/server/pages/api/stats/daily-report/list.js.nft.json +1 -1
- package/.next/standalone/.next/server/pages/api/stats/projects.js.nft.json +1 -1
- package/.next/standalone/.next/server/pages/api/stats/sessions.js.nft.json +1 -1
- package/.next/standalone/.next/server/pages/api/stats/uptime.js.nft.json +1 -1
- package/.next/standalone/.next/server/pages/api/status/hook.js +6 -6
- package/.next/standalone/.next/server/pages/api/status/hook.js.nft.json +1 -1
- package/.next/standalone/.next/server/pages/api/status/statusline.js +6 -6
- package/.next/standalone/.next/server/pages/api/status/statusline.js.nft.json +1 -1
- package/.next/standalone/.next/server/pages/api/timeline/sessions.js.nft.json +1 -1
- package/.next/standalone/.next/server/pages/api/tmux/permission-options.js +3 -2
- package/.next/standalone/.next/server/pages/api/tmux/permission-options.js.nft.json +1 -1
- package/.next/standalone/.next/server/pages/api/tmux/plan-options.js +3 -2
- package/.next/standalone/.next/server/pages/api/tmux/plan-options.js.nft.json +1 -1
- package/.next/standalone/.next/server/pages/api/tmux/recover-unknown.js +5 -5
- package/.next/standalone/.next/server/pages/api/tmux/recover-unknown.js.nft.json +1 -1
- package/.next/standalone/.next/server/pages/api/tmux/reset.js +5 -5
- package/.next/standalone/.next/server/pages/api/tmux/reset.js.nft.json +1 -1
- package/.next/standalone/.next/server/pages/api/workspace/[workspaceId].js +2 -2
- package/.next/standalone/.next/server/pages/api/workspace/[workspaceId].js.nft.json +1 -1
- package/.next/standalone/.next/server/pages/api/workspace/active.js +2 -2
- package/.next/standalone/.next/server/pages/api/workspace/active.js.nft.json +1 -1
- package/.next/standalone/.next/server/pages/api/workspace/group/[groupId].js +2 -2
- package/.next/standalone/.next/server/pages/api/workspace/group/[groupId].js.nft.json +1 -1
- package/.next/standalone/.next/server/pages/api/workspace/group/reorder.js +2 -2
- package/.next/standalone/.next/server/pages/api/workspace/group/reorder.js.nft.json +1 -1
- package/.next/standalone/.next/server/pages/api/workspace/group.js +2 -2
- package/.next/standalone/.next/server/pages/api/workspace/group.js.nft.json +1 -1
- package/.next/standalone/.next/server/pages/api/workspace/reorder.js +2 -2
- package/.next/standalone/.next/server/pages/api/workspace/reorder.js.nft.json +1 -1
- package/.next/standalone/.next/server/pages/api/workspace/validate.js +2 -2
- package/.next/standalone/.next/server/pages/api/workspace/validate.js.nft.json +1 -1
- package/.next/standalone/.next/server/pages/api/workspace.js +5 -5
- package/.next/standalone/.next/server/pages/api/workspace.js.nft.json +1 -1
- package/.next/standalone/.next/server/pages/de/404.html +1 -1
- package/.next/standalone/.next/server/pages/de/500.html +1 -1
- package/.next/standalone/.next/server/pages/en/404.html +1 -1
- package/.next/standalone/.next/server/pages/en/500.html +1 -1
- package/.next/standalone/.next/server/pages/es/404.html +1 -1
- package/.next/standalone/.next/server/pages/es/500.html +1 -1
- package/.next/standalone/.next/server/pages/fr/404.html +1 -1
- package/.next/standalone/.next/server/pages/fr/500.html +1 -1
- package/.next/standalone/.next/server/pages/index/build-manifest.json +15 -15
- package/.next/standalone/.next/server/pages/index/client-build-manifest.json +1 -1
- package/.next/standalone/.next/server/pages/index/react-loadable-manifest.json +6 -6
- package/.next/standalone/.next/server/pages/index.js +8 -8
- package/.next/standalone/.next/server/pages/index.js.nft.json +1 -1
- package/.next/standalone/.next/server/pages/ja/404.html +1 -1
- package/.next/standalone/.next/server/pages/ja/500.html +1 -1
- package/.next/standalone/.next/server/pages/ko/404.html +1 -1
- package/.next/standalone/.next/server/pages/ko/500.html +1 -1
- package/.next/standalone/.next/server/pages/login/build-manifest.json +6 -6
- package/.next/standalone/.next/server/pages/login/client-build-manifest.json +1 -1
- package/.next/standalone/.next/server/pages/login.js +4 -4
- package/.next/standalone/.next/server/pages/login.js.nft.json +1 -1
- package/.next/standalone/.next/server/pages/pt-BR/404.html +1 -1
- package/.next/standalone/.next/server/pages/pt-BR/500.html +1 -1
- package/.next/standalone/.next/server/pages/reports/build-manifest.json +14 -14
- package/.next/standalone/.next/server/pages/reports/client-build-manifest.json +1 -1
- package/.next/standalone/.next/server/pages/reports.js +9 -9
- package/.next/standalone/.next/server/pages/reports.js.nft.json +1 -1
- package/.next/standalone/.next/server/pages/reset.js.nft.json +1 -1
- package/.next/standalone/.next/server/pages/ru/404.html +1 -1
- package/.next/standalone/.next/server/pages/ru/500.html +1 -1
- package/.next/standalone/.next/server/pages/stats/build-manifest.json +12 -12
- package/.next/standalone/.next/server/pages/stats/client-build-manifest.json +1 -1
- package/.next/standalone/.next/server/pages/stats.js +9 -9
- package/.next/standalone/.next/server/pages/stats.js.nft.json +1 -1
- package/.next/standalone/.next/server/pages/tools-required/build-manifest.json +4 -4
- package/.next/standalone/.next/server/pages/tools-required/client-build-manifest.json +1 -1
- package/.next/standalone/.next/server/pages/tools-required.js +4 -4
- package/.next/standalone/.next/server/pages/tools-required.js.nft.json +1 -1
- package/.next/standalone/.next/server/pages/tr/404.html +1 -1
- package/.next/standalone/.next/server/pages/tr/500.html +1 -1
- package/.next/standalone/.next/server/pages/webview/build-manifest.json +13 -13
- package/.next/standalone/.next/server/pages/webview/client-build-manifest.json +1 -1
- package/.next/standalone/.next/server/pages/webview.js +6 -6
- package/.next/standalone/.next/server/pages/webview.js.nft.json +1 -1
- package/.next/standalone/.next/server/pages/zh-CN/404.html +1 -1
- package/.next/standalone/.next/server/pages/zh-CN/500.html +1 -1
- package/.next/standalone/.next/server/pages/zh-TW/404.html +1 -1
- package/.next/standalone/.next/server/pages/zh-TW/500.html +1 -1
- package/.next/standalone/.next/static/{CjJlqsAWYyyu76AJtHaqt → X30D5nlXld8jLdlpsowJj}/_buildManifest.js +6 -6
- package/.next/standalone/.next/static/chunks/{11tnyk0iystp1.js → 0--r5y9cw3.0z.js} +1 -1
- package/.next/standalone/.next/static/chunks/{08.6.1cg_x8r-.js → 00gxls80r--_0.js} +6 -6
- package/.next/standalone/.next/static/chunks/{0w0qmu364g~xt.js → 01rmp.m_ls7z_.js} +1 -1
- package/.next/standalone/.next/static/chunks/03y_zdpu9ete~.js +16 -0
- package/.next/standalone/.next/static/chunks/{0zmym5gg0bnkg.js → 06ak74s111wx-.js} +1 -1
- package/.next/standalone/.next/static/chunks/{0g-71jn3elu8f.js → 08d6vee5l~1wn.js} +1 -1
- package/.next/standalone/.next/static/chunks/{16.twr9cx.kle.js → 08gfz_nte45du.js} +1 -1
- package/.next/standalone/.next/static/chunks/{00s78xqkxglkv.js → 0a1xt.enr50l5.js} +1 -1
- package/.next/standalone/.next/static/chunks/{0p~_~afvrxx99.js → 0am7rh7xdv5lw.js} +3 -3
- package/.next/standalone/.next/static/chunks/{0cmg_jvd.7c43.js → 0awrd.oo446gi.js} +1 -1
- package/.next/standalone/.next/static/chunks/{0._2l5v1hwkfn.js → 0cuy2cz7-e4u3.js} +12 -12
- package/.next/standalone/.next/static/chunks/{09lb6md956bhb.js → 0eu25r354hciy.js} +1 -1
- package/.next/standalone/.next/static/chunks/{0thg_6bh34-xa.js → 0f3q6qhpk.i_r.js} +1 -1
- package/.next/standalone/.next/static/chunks/0gfhd.gsbt9qg.js +1 -0
- package/.next/standalone/.next/static/chunks/0ic.mcu6-9din.js +1 -0
- package/.next/standalone/.next/static/chunks/0k4b.~5c4nvtm.js +1 -0
- package/.next/standalone/.next/static/chunks/{0q9y8zysz~put.js → 0ox.7nphcgp6k.js} +15 -15
- package/.next/standalone/.next/static/chunks/{13j5zp717ie6d.js → 0px6~g-besoaa.js} +13 -13
- package/.next/standalone/.next/static/chunks/{0batq-3sj.qi1.js → 0qbonuf--0q6w.js} +14 -14
- package/.next/standalone/.next/static/chunks/0qqsez8ir1.fs.js +1 -0
- package/.next/standalone/.next/static/chunks/{0pxbg4s8a4y54.js → 0rb41e1r1urhx.js} +1 -1
- package/.next/standalone/.next/static/chunks/0uii4rziiew3_.js +1 -0
- package/.next/standalone/.next/static/chunks/0vtkq~yk_1~gv.js +1 -0
- package/.next/standalone/.next/static/chunks/0vx2hhzc46h_7.js +1 -0
- package/.next/standalone/.next/static/chunks/0xpr6vw-p8oxk.js +1 -0
- package/.next/standalone/.next/static/chunks/{0s7sv9xe3e1c9.js → 0zn1jt__-t51p.js} +1 -1
- package/.next/standalone/.next/static/chunks/0zrhxc96zwjuv.js +1 -0
- package/.next/standalone/.next/static/chunks/0z~yy1lqrvp_a.js +1 -0
- package/.next/standalone/.next/static/chunks/0~cgr_3dpx0vl.js +1 -0
- package/.next/standalone/.next/static/chunks/{0b.a4_8picceu.js → 0~g0t2q6o3r-7.js} +4 -4
- package/.next/standalone/.next/static/chunks/0~u-xp3xwzx8m.js +1 -0
- package/.next/standalone/.next/static/chunks/14if5vtky.3sn.js +1 -0
- package/.next/standalone/.next/static/chunks/15i_n03eg5uyp.js +1 -0
- package/.next/standalone/.next/static/chunks/{0r69~xx12-zsq.js → 167xy7alpfxbv.js} +1 -1
- package/.next/standalone/.next/static/chunks/1756nfyulu.9h.css +1 -0
- package/.next/standalone/.next/static/chunks/{turbopack-0vv2_r1br0hyc.js → turbopack-092b2t67-z3ds.js} +1 -1
- package/.next/standalone/.next/static/chunks/{turbopack-06o7eaf8n1nth.js → turbopack-0edd0f8i0vas2.js} +1 -1
- package/.next/standalone/.next/static/chunks/{turbopack-0-ooli-pimh-6.js → turbopack-0ser1ty-sh2jk.js} +1 -1
- package/.next/standalone/.next/static/chunks/{turbopack-0sa282u154fdk.js → turbopack-0thw2b7slv80v.js} +1 -1
- package/.next/standalone/.next/static/chunks/{turbopack-0duv.5cir9jm5.js → turbopack-0zouy.~ram.7g.js} +1 -1
- package/.next/standalone/.next/static/chunks/{turbopack-0f2cool0ub~vp.js → turbopack-10_7kfeyza-k-.js} +1 -1
- package/.next/standalone/.next/static/chunks/{turbopack-0q6z-bk-atg2w.js → turbopack-189zx7uuxfxm6.js} +1 -1
- package/.next/standalone/messages/de/terminal.json +4 -0
- package/.next/standalone/messages/en/terminal.json +4 -0
- package/.next/standalone/messages/es/terminal.json +4 -0
- package/.next/standalone/messages/fr/terminal.json +4 -0
- package/.next/standalone/messages/ja/terminal.json +4 -0
- package/.next/standalone/messages/ko/terminal.json +4 -0
- package/.next/standalone/messages/pt-BR/terminal.json +4 -0
- package/.next/standalone/messages/ru/terminal.json +4 -0
- package/.next/standalone/messages/tr/terminal.json +4 -0
- package/.next/standalone/messages/zh-CN/terminal.json +4 -0
- package/.next/standalone/messages/zh-TW/terminal.json +4 -0
- package/.next/standalone/package.json +1 -1
- package/.next/standalone/server.js +1 -1
- package/.next/standalone/src/config/tmux.conf +17 -7
- package/.next/standalone/src/lib/providers/claude/index.ts +44 -0
- package/.next/standalone/src/pages/api/layout/pane/[paneId]/tabs/index.ts +13 -6
- package/README.de.md +1 -1
- package/README.es.md +1 -1
- package/README.fr.md +1 -1
- package/README.ja.md +1 -1
- package/README.ko.md +1 -1
- package/README.md +1 -1
- package/README.pt-BR.md +1 -1
- package/README.ru.md +1 -1
- package/README.tr.md +1 -1
- package/README.zh-CN.md +1 -1
- package/README.zh-TW.md +1 -1
- package/dist/server.js +970 -851
- package/package.json +1 -1
- package/src/config/tmux.conf +17 -7
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__01.~37j._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__016s4a9._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__03l15.f._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__05ij_ys._.js +0 -42
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__06h3gzy._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0auutl5._.js +0 -5
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0d-inw8._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0i-jyh3._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0l~_wd0._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0ovn6yp._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0un_g-o._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__12ksl6n._.js +0 -42
- package/.next/standalone/.next/server/chunks/_03-duro._.js +0 -3
- package/.next/standalone/.next/server/chunks/_07097f~._.js +0 -3
- package/.next/standalone/.next/server/chunks/_0z7d6.z._.js +0 -3
- package/.next/standalone/.next/server/chunks/src_lib_0p.xsqi._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/_016o9_-._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/_0a64og5._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/_0ccg0_z._.js +0 -18
- package/.next/standalone/.next/server/chunks/ssr/_0fnzfs-._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/_0hat6~g._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/_0hp8_ck._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/_0hq29bt._.js +0 -3
- package/.next/standalone/.next/static/chunks/02ncyh-v8g~cs.css +0 -1
- package/.next/standalone/.next/static/chunks/08d4u-qlylmde.js +0 -1
- package/.next/standalone/.next/static/chunks/08f708~_7uy_i.js +0 -1
- package/.next/standalone/.next/static/chunks/08ojbbzi2ergt.js +0 -16
- package/.next/standalone/.next/static/chunks/0cvx059r5hgj1.js +0 -1
- package/.next/standalone/.next/static/chunks/0gn-f6_m696k0.js +0 -1
- package/.next/standalone/.next/static/chunks/0u.snf3d~5nvq.js +0 -1
- package/.next/standalone/.next/static/chunks/0v.l~.~v98c2c.js +0 -1
- package/.next/standalone/.next/static/chunks/0wu~4k-l8otuy.js +0 -1
- package/.next/standalone/.next/static/chunks/0y441gn709g7u.js +0 -1
- package/.next/standalone/.next/static/chunks/0yb~gw6ukzdmo.js +0 -1
- package/.next/standalone/.next/static/chunks/0yg3hj1g~k1ip.js +0 -1
- package/.next/standalone/.next/static/chunks/0~c6h8j7ut2ca.js +0 -1
- package/.next/standalone/.next/static/chunks/13i76gpwz2k5a.js +0 -1
- package/.next/standalone/.next/static/chunks/15m4y6otktj8z.js +0 -1
- package/.next/standalone/.next/static/chunks/17ebdp-_o5o30.js +0 -1
- /package/.next/standalone/.next/static/{CjJlqsAWYyyu76AJtHaqt → X30D5nlXld8jLdlpsowJj}/_clientMiddlewareManifest.js +0 -0
- /package/.next/standalone/.next/static/{CjJlqsAWYyyu76AJtHaqt → X30D5nlXld8jLdlpsowJj}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,162591,202526,34776,638084,92684,e=>{"use strict";e.s([],162591),e.i(350461);var t=e.i(191788),r=e.i(536394),n=e.i(656124),l=e.i(25104),a=e.i(95349),i=e.i(232897),s=e.i(772610),o=e.i(360233),c=e.i(426984),d=e.i(848328),u=e.i(855604),h=e.i(967529),m=e.i(475048),p=e.i(85150),f=e.i(536164);function x(e,t,r){switch(e){case"vertical":return t;case"horizontal":return r;default:return t||r}}function g(e,t){return x(t,e===f.ARROW_UP||e===f.ARROW_DOWN,e===f.ARROW_LEFT||e===f.ARROW_RIGHT)}function v(e,t,r){return x(t,e===f.ARROW_DOWN,r?e===f.ARROW_LEFT:e===f.ARROW_RIGHT)||"Enter"===e||" "===e||""===e}e.s(["useListNavigation",0,function(e,y){let b="rootStore"in e?e.rootStore:e,w=b.useState("open"),k=b.useState("floatingElement"),j=b.useState("domReferenceElement"),S=b.context.dataRef,{listRef:C,activeIndex:M,onNavigate:N=()=>{},enabled:E=!0,selectedIndex:R=null,allowEscape:D=!1,loopFocus:A=!1,nested:T=!1,rtl:I=!1,virtual:L=!1,focusItemOnOpen:P="auto",focusItemOnHover:O=!0,openOnArrowKeyDown:z=!0,disabledIndices:F,orientation:B="vertical",parentOrientation:V,cols:H=1,id:q,resetOnPointerLeave:U=!0,externalTree:K}=y,G=(0,o.getFloatingFocusElement)(k),W=(0,n.useValueAsRef)(G),_=(0,u.useFloatingParentNodeId)(),Y=(0,u.useFloatingTree)(K);(0,a.useIsoLayoutEffect)(()=>{S.current.orientation=B},[S,B]);let $=(0,o.isTypeableCombobox)(j),X=t.useRef(P),J=t.useRef(R??-1),Z=t.useRef(null),Q=t.useRef(!0),ee=(0,l.useStableCallback)(e=>{N(-1===J.current?null:J.current,e)}),et=t.useRef(ee),er=t.useRef(!!k),en=t.useRef(w),el=t.useRef(!1),ea=t.useRef(!1),ei=t.useRef(null),es=(0,n.useValueAsRef)(F),eo=(0,n.useValueAsRef)(w),ec=(0,n.useValueAsRef)(R),ed=(0,n.useValueAsRef)(U),eu=(0,l.useStableCallback)(()=>{function e(e){L?Y?.events.emit("virtualfocus",e):ei.current=(0,p.enqueueFocus)(e,{sync:el.current,preventScroll:!0})}let t=C.current[J.current],r=ea.current;t&&e(t),(el.current?e=>e():requestAnimationFrame)(()=>{let n=C.current[J.current]||t;!n||(t||e(n),ep&&(r||!Q.current)&&n.scrollIntoView?.({block:"nearest",inline:"nearest"}))})});(0,a.useIsoLayoutEffect)(()=>{E&&(w&&k?(J.current=R??-1,X.current&&null!=R&&(ea.current=!0,ee())):er.current&&(J.current=-1,et.current()))},[E,w,k,R,ee]),(0,a.useIsoLayoutEffect)(()=>{if(E){if(!w){el.current=!1;return}if(k)if(null==M){if(el.current=!1,null!=ec.current)return;if(er.current&&(J.current=-1,eu()),(!en.current||!er.current)&&X.current&&(null!=Z.current||!0===X.current&&null==Z.current)){let e=0,t=()=>{null==C.current[0]?(e<2&&(e?requestAnimationFrame:queueMicrotask)(t),e+=1):(J.current=null==Z.current||v(Z.current,B,I)||T?(0,d.getMinListIndex)(C):(0,d.getMaxListIndex)(C),Z.current=null,ee())};t()}}else(0,d.isIndexOutOfListBounds)(C.current,M)||(J.current=M,eu(),ea.current=!1)}},[E,w,k,M,ec,T,C,B,I,ee,eu,es]),(0,a.useIsoLayoutEffect)(()=>{if(!E||k||!Y||L||!er.current)return;let e=Y.nodesRef.current,t=e.find(e=>e.id===_)?.context?.elements.floating,r=(0,s.activeElement)((0,i.ownerDocument)(k)),n=e.some(e=>e.context&&(0,s.contains)(e.context.elements.floating,r));t&&!n&&Q.current&&t.focus({preventScroll:!0})},[E,k,Y,_,L]),(0,a.useIsoLayoutEffect)(()=>{et.current=ee,en.current=w,er.current=!!k}),(0,a.useIsoLayoutEffect)(()=>{w||(Z.current=null,X.current=P)},[w,P]);let eh=null!=M,em=(0,l.useStableCallback)(e=>{if(!eo.current)return;let t=C.current.indexOf(e.currentTarget);-1!==t&&(J.current!==t||M!==t)&&(J.current=t,ee(e))}),ep=t.useMemo(()=>({onFocus(e){el.current=!0,em(e)},onClick:({currentTarget:e})=>e.focus({preventScroll:!0}),onMouseMove(e){el.current=!0,ea.current=!1,O&&em(e)},onPointerLeave(e){let t;if(!eo.current||!Q.current||"touch"===e.pointerType)return;el.current=!0;let r=e.relatedTarget;if(!((t=e.currentTarget.getBoundingClientRect()).top+1<=e.clientY&&e.clientY<=t.bottom-1&&t.left+1<=e.clientX&&e.clientX<=t.right-1||!O||C.current.includes(r))&&ed.current&&(ei.current?.(),ei.current=null,J.current=-1,ee(e),!L)){let e=W.current,t=(0,s.activeElement)((0,i.ownerDocument)(e));e&&(0,s.contains)(e,t)&&e.focus({preventScroll:!0})}}}),[em,eo,W,O,C,ee,ed,L]),ef=t.useCallback(()=>V??Y?.nodesRef.current.find(e=>e.id===_)?.context?.dataRef?.current.orientation,[_,Y,V]),ex=(0,l.useStableCallback)(e=>{var t;let n,l;if(Q.current=!1,el.current=!0,229===e.which||!eo.current&&e.currentTarget===W.current)return;if(T&&(t=e.key,n=I?t===f.ARROW_RIGHT:t===f.ARROW_LEFT,l=t===f.ARROW_UP,"both"===B||"horizontal"===B&&H&&H>1?"Escape"===t:x(B,n,l))){g(e.key,ef())||(0,c.stopEvent)(e),b.setOpen(!1,(0,h.createChangeEventDetails)(m.REASONS.listNavigation,e.nativeEvent)),(0,r.isHTMLElement)(j)&&(L?Y?.events.emit("virtualfocus",j):j.focus());return}let a=J.current,i=(0,d.getMinListIndex)(C,F),o=(0,d.getMaxListIndex)(C,F);if($||("Home"===e.key&&((0,c.stopEvent)(e),J.current=i,ee(e)),"End"===e.key&&((0,c.stopEvent)(e),J.current=o,ee(e))),H>1){let t=Array.from({length:C.current.length},()=>({width:1,height:1})),r=(0,d.createGridCellMap)(t,H,!1),n=r.findIndex(e=>null!=e&&!(0,d.isListIndexDisabled)(C.current,e,F)),l=r.reduce((e,t,r)=>null==t||(0,d.isListIndexDisabled)(C.current,t,F)?e:r,-1),a=r[(0,d.getGridNavigatedIndex)(r.map(e=>null!=e?C.current[e]:null),{event:e,orientation:B,loopFocus:A,rtl:I,cols:H,disabledIndices:(0,d.getGridCellIndices)([...("function"!=typeof F?F:null)||C.current.map((e,t)=>(0,d.isListIndexDisabled)(C.current,t,F)?t:void 0),void 0],r),minIndex:n,maxIndex:l,prevIndex:(0,d.getGridCellIndexOfCorner)(J.current>o?i:J.current,t,r,H,e.key===f.ARROW_DOWN?"bl":e.key===(I?f.ARROW_LEFT:f.ARROW_RIGHT)?"tr":"tl"),stopEvent:!0})];if(null!=a&&(J.current=a,ee(e)),"both"===B)return}if(g(e.key,B)){if((0,c.stopEvent)(e),w&&!L&&(0,s.activeElement)(e.currentTarget.ownerDocument)===e.currentTarget){J.current=v(e.key,B,I)?i:o,ee(e);return}v(e.key,B,I)?A?a>=o?D&&a!==C.current.length?J.current=-1:(el.current=!1,J.current=i):J.current=(0,d.findNonDisabledListIndex)(C.current,{startingIndex:a,disabledIndices:F}):J.current=Math.min(o,(0,d.findNonDisabledListIndex)(C.current,{startingIndex:a,disabledIndices:F})):A?a<=i?D&&-1!==a?J.current=C.current.length:(el.current=!1,J.current=o):J.current=(0,d.findNonDisabledListIndex)(C.current,{startingIndex:a,decrement:!0,disabledIndices:F}):J.current=Math.max(i,(0,d.findNonDisabledListIndex)(C.current,{startingIndex:a,decrement:!0,disabledIndices:F})),(0,d.isIndexOutOfListBounds)(C.current,J.current)&&(J.current=-1),ee(e)}}),eg=t.useMemo(()=>L&&w&&eh&&{"aria-activedescendant":`${q}-${M}`},[L,w,eh,q,M]),ev=t.useMemo(()=>({"aria-orientation":"both"===B?void 0:B,...!$?eg:{},onKeyDown(e){if("Tab"===e.key&&e.shiftKey&&w&&!L){let t=(0,s.getTarget)(e.nativeEvent);if(t&&!(0,s.contains)(W.current,t))return;(0,c.stopEvent)(e),b.setOpen(!1,(0,h.createChangeEventDetails)(m.REASONS.focusOut,e.nativeEvent)),(0,r.isHTMLElement)(j)&&j.focus();return}ex(e)},onPointerMove(){Q.current=!0}}),[eg,ex,W,B,$,b,w,L,j]),ey=t.useMemo(()=>{function e(e){"auto"===P&&(0,c.isVirtualClick)(e.nativeEvent)&&(X.current=!L)}function t(e){X.current=P,"auto"===P&&(0,c.isVirtualPointerEvent)(e.nativeEvent)&&(X.current=!0)}return{onKeyDown(e){var t,r;let n=b.select("open");Q.current=!1;let l=e.key.startsWith("Arrow"),a=(t=e.key,r=ef(),x(r,I?t===f.ARROW_LEFT:t===f.ARROW_RIGHT,t===f.ARROW_DOWN)),i=g(e.key,B),s=(T?a:i)||"Enter"===e.key||""===e.key.trim();if(L&&n)return ex(e);if(n||z||!l){if(s){let t=g(e.key,ef());Z.current=T&&t?null:e.key}if(T){a&&((0,c.stopEvent)(e),n?(J.current=(0,d.getMinListIndex)(C,es.current),ee(e)):b.setOpen(!0,(0,h.createChangeEventDetails)(m.REASONS.listNavigation,e.nativeEvent,e.currentTarget)));return}i&&(null!=ec.current&&(J.current=ec.current),(0,c.stopEvent)(e),!n&&z?b.setOpen(!0,(0,h.createChangeEventDetails)(m.REASONS.listNavigation,e.nativeEvent,e.currentTarget)):ex(e),n&&ee(e))}},onFocus(e){b.select("open")&&!L&&(J.current=-1,ee(e))},onPointerDown:t,onPointerEnter:t,onMouseDown:e,onClick:e}},[ex,es,P,C,T,ee,b,z,B,ef,I,ec,L]),eb=t.useMemo(()=>({...eg,...ey}),[eg,ey]);return t.useMemo(()=>E?{reference:eb,floating:ev,item:ep,trigger:ey}:{},[E,eb,ev,ey,ep])}],202526);var y=e.i(242608);e.s(["useTypeahead",0,function(e,r){let n="rootStore"in e?e.rootStore:e,i=n.context.dataRef,o=n.useState("open"),{listRef:u,elementsRef:h,activeIndex:m,onMatch:p,onTypingChange:f,enabled:x=!0,resetMs:g=750,selectedIndex:v=null}=r,b=(0,y.useTimeout)(),w=t.useRef(""),k=t.useRef(v??m??-1),j=t.useRef(null);(0,a.useIsoLayoutEffect)(()=>{(o||null===v)&&(b.clear(),j.current=null,""!==w.current&&(w.current=""))},[o,v,b]),(0,a.useIsoLayoutEffect)(()=>{o&&""===w.current&&(k.current=v??m??-1)},[o,v,m]);let S=(0,l.useStableCallback)(e=>{e?i.current.typing||(i.current.typing=e,f?.(e)):i.current.typing&&(i.current.typing=e,f?.(e))}),C=(0,l.useStableCallback)(e=>{function t(e,r,n=0){if(0===e.length)return -1;let l=(n%e.length+e.length)%e.length,a=r.toLocaleLowerCase();for(let t=0;t<e.length;t+=1){let r=(l+t)%e.length,n=e[r];if(n?.toLocaleLowerCase().startsWith(a)&&function(e){let t=h?.current[e];return!t||(0,d.isElementVisible)(t)}(r))return r}return -1}let r=u.current;if(w.current.length>0&&" "===e.key&&((0,c.stopEvent)(e),S(!0)),w.current.length>0&&" "!==w.current[0]&&-1===t(r,w.current)&&" "!==e.key&&S(!1),null==r||1!==e.key.length||e.ctrlKey||e.metaKey||e.altKey)return;o&&" "!==e.key&&((0,c.stopEvent)(e),S(!0));let n=""===w.current;n&&(k.current=v??m??-1),r.every(e=>!e||e[0]?.toLocaleLowerCase()!==e[1]?.toLocaleLowerCase())&&w.current===e.key&&(w.current="",k.current=j.current),w.current+=e.key,b.start(g,()=>{w.current="",k.current=j.current,S(!1)});let l=n?v??m??-1:k.current,a=t(r,w.current,(l??0)+1);-1!==a?(p?.(a),j.current=a):" "!==e.key&&(w.current="",S(!1))}),M=(0,l.useStableCallback)(e=>{let t=e.relatedTarget,r=n.select("domReferenceElement"),l=n.select("floatingElement"),a=(0,s.contains)(r,t),i=(0,s.contains)(l,t);a||i||(b.clear(),w.current="",k.current=j.current,S(!1))}),N=t.useMemo(()=>({onKeyDown:C,onBlur:M}),[C,M]),E=t.useMemo(()=>({onKeyDown:C,onBlur:M}),[C,M]);return t.useMemo(()=>x?{reference:N,floating:E}:{},[x,N,E])}],34776);var b=e.i(579907);let w=t.createContext(null),k=t.createContext(null);function j(e,t,r){return null==e||null==t?Object.is(e,t):r(e,t)}e.s(["SelectFloatingContext",0,k,"SelectRootContext",0,w,"useSelectFloatingContext",0,function(){let e=t.useContext(k);if(null===e)throw Error((0,b.default)(61));return e},"useSelectRootContext",0,function(){let e=t.useContext(w);if(null===e)throw Error((0,b.default)(60));return e}],638084),e.s(["compareItemEquality",0,j,"defaultItemEquality",0,(e,t)=>Object.is(e,t),"findItemIndex",0,function(e,t,r){return e&&0!==e.length?e.findIndex(e=>void 0!==e&&j(e,t,r)):-1},"removeItem",0,function(e,t,r){return e.filter(e=>!j(t,e,r))},"selectedValueIncludes",0,function(e,t,r){return!!e&&0!==e.length&&e.some(e=>void 0!==e&&j(t,e,r))}],92684)},567284,e=>{"use strict";e.s(["serializeValue",0,function(e){if(null==e)return"";if("string"==typeof e)return e;try{return JSON.stringify(e)}catch{return String(e)}}])},851410,356840,327421,81798,822022,667499,33478,587015,348594,917268,968515,419203,258281,818235,926616,466570,535274,48665,87474,e=>{"use strict";var t=e.i(191788),r=e.i(931497),n=e.i(978054),l=e.i(713579),a=e.i(937425),i=e.i(532932),s=e.i(176955),o=e.i(95349),c=e.i(25104),d=e.i(656124),u=e.i(225644),h=e.i(978730),m=e.i(735859),p=e.i(674316),f=e.i(105721),x=e.i(414224),g=e.i(202526),v=e.i(34776),y=e.i(638084),b=e.i(663735),w=e.i(560023),k=e.i(112572),j=e.i(994142),S=e.i(659594),C=e.i(92684),M=e.i(567284),N=e.i(391398);function E(e){return null!=e&&e.length>0&&"object"==typeof e[0]&&null!=e[0]&&"items"in e[0]}function R(e,t){if(t&&null!=e)return t(e)??"";if(e&&"object"==typeof e){if("label"in e&&null!=e.label)return String(e.label);if("value"in e)return String(e.value)}return(0,M.serializeValue)(e)}function D(e,t){return t&&null!=e?t(e)??"":e&&"object"==typeof e&&"value"in e&&"label"in e?(0,M.serializeValue)(e.value):(0,M.serializeValue)(e)}function A(e,t,r){if(r&&null!=e)return r(e);if(e&&"object"==typeof e&&"label"in e&&null!=e.label)return e.label;if(t&&!Array.isArray(t))return t[e]??R(e,r);if(Array.isArray(t)){let n=E(t)?t.flatMap(e=>e.items):t;if(null==e||"object"!=typeof e){let t=n.find(t=>t.value===e);return t&&null!=t.label?t.label:R(e,r)}if("value"in e){let t=n.find(t=>t&&t.value===e.value);if(t&&null!=t.label)return t.label}}return R(e,r)}let T={id:(0,S.createSelector)(e=>e.id),labelId:(0,S.createSelector)(e=>e.labelId),modal:(0,S.createSelector)(e=>e.modal),multiple:(0,S.createSelector)(e=>e.multiple),items:(0,S.createSelector)(e=>e.items),itemToStringLabel:(0,S.createSelector)(e=>e.itemToStringLabel),itemToStringValue:(0,S.createSelector)(e=>e.itemToStringValue),isItemEqualToValue:(0,S.createSelector)(e=>e.isItemEqualToValue),value:(0,S.createSelector)(e=>e.value),hasSelectedValue:(0,S.createSelector)(e=>{let{value:t,multiple:r,itemToStringValue:n}=e;return null!=t&&(r&&Array.isArray(t)?t.length>0:""!==D(t,n))}),hasNullItemLabel:(0,S.createSelector)((e,t)=>!!t&&function(e){if(!Array.isArray(e))return null!=e&&"null"in e;if(E(e)){for(let t of e)for(let e of t.items)if(e&&null==e.value&&null!=e.label)return!0;return!1}for(let t of e)if(t&&null==t.value&&null!=t.label)return!0;return!1}(e.items)),open:(0,S.createSelector)(e=>e.open),mounted:(0,S.createSelector)(e=>e.mounted),forceMount:(0,S.createSelector)(e=>e.forceMount),transitionStatus:(0,S.createSelector)(e=>e.transitionStatus),openMethod:(0,S.createSelector)(e=>e.openMethod),activeIndex:(0,S.createSelector)(e=>e.activeIndex),selectedIndex:(0,S.createSelector)(e=>e.selectedIndex),isActive:(0,S.createSelector)((e,t)=>e.activeIndex===t),isSelected:(0,S.createSelector)((e,t,r)=>{let n=e.isItemEqualToValue,l=e.value;return e.multiple?Array.isArray(l)&&l.some(e=>(0,C.compareItemEquality)(r,e,n)):e.selectedIndex===t&&null!==e.selectedIndex||(0,C.compareItemEquality)(r,l,n)}),isSelectedByFocus:(0,S.createSelector)((e,t)=>e.selectedIndex===t),popupProps:(0,S.createSelector)(e=>e.popupProps),triggerProps:(0,S.createSelector)(e=>e.triggerProps),triggerElement:(0,S.createSelector)(e=>e.triggerElement),positionerElement:(0,S.createSelector)(e=>e.positionerElement),listElement:(0,S.createSelector)(e=>e.listElement),scrollUpArrowVisible:(0,S.createSelector)(e=>e.scrollUpArrowVisible),scrollDownArrowVisible:(0,S.createSelector)(e=>e.scrollDownArrowVisible),hasScrollArrows:(0,S.createSelector)(e=>e.hasScrollArrows)};var I=e.i(967529),L=e.i(475048),P=e.i(118303),O=e.i(508430),z=e.i(562912),F=e.i(138252),B=e.i(748030);function V(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function H(e,t){return Math.max(0,e-t)}function q(e,t){if(t<=0)return 0;let r=V(e,0,t),n=t-r,l=r<=1,a=n<=1;return l&&a?r<=n?0:t:l?0:a?t:r}var U=e.i(977848);e.s(["SelectRoot",0,function(e){let{id:S,value:M,defaultValue:E=null,onValueChange:A,open:V,defaultOpen:K=!1,onOpenChange:G,name:W,form:_,autoComplete:Y,disabled:$=!1,readOnly:X=!1,required:J=!1,modal:Z=!0,actionsRef:Q,inputRef:ee,onOpenChangeComplete:et,items:er,multiple:en=!1,itemToStringLabel:el,itemToStringValue:ea,isItemEqualToValue:ei=C.defaultItemEquality,highlightItemOnHover:es=!0,children:eo}=e,{clearErrors:ec}=(0,O.useFormContext)(),{setDirty:ed,setTouched:eu,setFocused:eh,shouldValidateOnChange:em,validityData:ep,setFilled:ef,name:ex,disabled:eg,validation:ev,validationMode:ey}=(0,b.useFieldRootContext)(),eb=(0,k.useLabelableId)({id:S}),ew=eg||$,ek=ex??W,[ej,eS]=(0,s.useControlled)({controlled:M,default:en?E??z.EMPTY_ARRAY:E,name:"Select",state:"value"}),[eC,eM]=(0,s.useControlled)({controlled:V,default:K,name:"Select",state:"open"}),eN=t.useRef([]),eE=t.useRef([]),eR=t.useRef(null),eD=t.useRef(null),eA=t.useRef(0),eT=t.useRef(null),eI=t.useRef([]),eL=t.useRef(!1),eP=t.useRef(!1),eO=t.useRef(null),ez=t.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1}),eF=t.useRef(!1),{mounted:eB,setMounted:eV,transitionStatus:eH}=(0,j.useTransitionStatus)(eC),{openMethod:eq,triggerProps:eU}=(0,B.useOpenInteractionType)(eC),eK=(0,l.useRefWithInit)(()=>new h.Store({id:eb,labelId:void 0,modal:Z,multiple:en,itemToStringLabel:el,itemToStringValue:ea,isItemEqualToValue:ei,value:ej,open:eC,mounted:eB,transitionStatus:eH,items:er,forceMount:!1,openMethod:null,activeIndex:null,selectedIndex:null,popupProps:{},triggerProps:{},triggerElement:null,positionerElement:null,listElement:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1,hasScrollArrows:!1})).current,eG=(0,u.useStore)(eK,T.activeIndex),eW=(0,u.useStore)(eK,T.selectedIndex),e_=(0,u.useStore)(eK,T.triggerElement),eY=(0,u.useStore)(eK,T.positionerElement),e$=(0,i.usePreviousValue)(eq),eX=eq??e$,eJ=t.useMemo(()=>en&&Array.isArray(ej)&&0===ej.length?"":D(ej,ea),[en,ej,ea]),eZ=t.useMemo(()=>en&&Array.isArray(ej)?ej.map(e=>D(e,ea)):D(ej,ea),[en,ej,ea]),eQ=(0,d.useValueAsRef)(eK.state.triggerElement),e0=(0,c.useStableCallback)(()=>eZ);(0,w.useRegisterFieldControl)(eQ,{id:eb,value:ej,getValue:e0});let e1=t.useRef(ej);(0,o.useIsoLayoutEffect)(()=>{ej!==e1.current&&eK.set("forceMount",!0)},[eK,ej]),(0,o.useIsoLayoutEffect)(()=>{ef(en?Array.isArray(ej)&&ej.length>0:null!=ej)},[en,ej,ef]),(0,o.useIsoLayoutEffect)(function(){if(eC)return;let e=eI.current;if(en){let t=Array.isArray(ej)?ej:[];if(0===t.length)return void eK.set("selectedIndex",null);let r=t[t.length-1],n=(0,C.findItemIndex)(e,r,ei);return void eK.set("selectedIndex",-1===n?null:n)}let t=(0,C.findItemIndex)(e,ej,ei);eK.set("selectedIndex",-1===t?null:t)},[en,eC,ej,eI,ei,eK]),(0,F.useValueChanged)(ej,()=>{ec(ek),ed(ej!==ep.initialValue),em()?ev.commit(ej):ev.commit(ej,!0)});let e2=(0,c.useStableCallback)((e,t)=>{if(G?.(e,t),!t.isCanceled&&(eM(e),e||t.reason!==L.REASONS.focusOut&&t.reason!==L.REASONS.outsidePress||(eu(!0),eh(!1),"onBlur"===ey&&ev.commit(ej)),!e&&null!==eK.state.activeIndex)){let e=eN.current[eK.state.activeIndex];queueMicrotask(()=>{e?.setAttribute("tabindex","-1")})}}),e3=(0,c.useStableCallback)(()=>{eV(!1),eK.update({activeIndex:null,openMethod:null}),et?.(!1)});(0,P.useOpenChangeComplete)({enabled:!Q,open:eC,ref:eR,onComplete(){eC||e3()}}),t.useImperativeHandle(Q,()=>({unmount:e3}),[e3]);let e5=(0,c.useStableCallback)((e,t)=>{A?.(e,t),t.isCanceled||eS(e)}),e4=(0,c.useStableCallback)(()=>{let e=eK.state.listElement||eR.current;if(!e)return;let t=H(e.scrollHeight,e.clientHeight),r=q(e.scrollTop,t),n=r>0,l=r<t;eK.state.scrollUpArrowVisible!==n&&eK.set("scrollUpArrowVisible",n),eK.state.scrollDownArrowVisible!==l&&eK.set("scrollDownArrowVisible",l)}),e6=(0,f.useFloatingRootContext)({open:eC,onOpenChange:e2,elements:{reference:e_,floating:eY}}),e8=(0,m.useClick)(e6,{enabled:!X&&!ew,event:"mousedown"}),e9=(0,p.useDismiss)(e6,{bubbles:!1}),e7=(0,g.useListNavigation)(e6,{enabled:!X&&!ew,listRef:eN,activeIndex:eG,selectedIndex:eW,disabledIndices:z.EMPTY_ARRAY,onNavigate(e){(null!==e||eC)&&eK.set("activeIndex",e)},focusItemOnHover:es}),te=(0,v.useTypeahead)(e6,{enabled:!X&&!ew&&(eC||!en),listRef:eE,activeIndex:eG,selectedIndex:eW,onMatch(e){eC?eK.set("activeIndex",e):e5(eI.current[e],(0,I.createChangeEventDetails)("none"))},onTypingChange(e){eL.current=e}}),{getReferenceProps:tt,getFloatingProps:tr,getItemProps:tn}=(0,x.useInteractions)([e8,e9,e7,te]),tl=t.useMemo(()=>(0,U.mergeProps)(tt(),eU,eb?{id:eb}:z.EMPTY_OBJECT),[tt,eU,eb]);(0,a.useOnFirstRender)(()=>{eK.update({popupProps:tr(),triggerProps:tl})}),(0,o.useIsoLayoutEffect)(()=>{eK.update({id:eb,modal:Z,multiple:en,value:ej,open:eC,mounted:eB,transitionStatus:eH,popupProps:tr(),triggerProps:tl,items:er,itemToStringLabel:el,itemToStringValue:ea,isItemEqualToValue:ei,openMethod:eX})},[eK,eb,Z,en,ej,eC,eB,eH,tr,tl,er,el,ea,ei,eX]);let ta=t.useMemo(()=>({store:eK,name:ek,required:J,disabled:ew,readOnly:X,multiple:en,itemToStringLabel:el,itemToStringValue:ea,highlightItemOnHover:es,setValue:e5,setOpen:e2,listRef:eN,popupRef:eR,scrollHandlerRef:eD,handleScrollArrowVisibility:e4,scrollArrowsMountedCountRef:eA,getItemProps:tn,events:e6.context.events,valueRef:eT,valuesRef:eI,labelsRef:eE,typingRef:eL,selectionRef:ez,selectedItemTextRef:eO,validation:ev,onOpenChangeComplete:et,keyboardActiveRef:eP,alignItemWithTriggerActiveRef:eF,initialValueRef:e1}),[eK,ek,J,ew,X,en,el,ea,es,e5,e2,tn,e6.context.events,ev,et,e4]),ti=(0,n.useMergedRefs)(ee,ev.inputRef),ts=en&&Array.isArray(ej)&&ej.length>0,to=en?void 0:ek,tc=t.useMemo(()=>en&&Array.isArray(ej)&&ek?ej.map(e=>{let t=D(e,ea);return(0,N.jsx)("input",{type:"hidden",form:_,name:ek,value:t},t)}):null,[en,ej,_,ek,ea]);return(0,N.jsx)(y.SelectRootContext.Provider,{value:ta,children:(0,N.jsxs)(y.SelectFloatingContext.Provider,{value:e6,children:[eo,(0,N.jsx)("input",{...ev.getInputValidationProps({onFocus(){eK.state.triggerElement?.focus({focusVisible:!0})},onChange(e){if(e.nativeEvent.defaultPrevented)return;let t=e.currentTarget.value,r=(0,I.createChangeEventDetails)(L.REASONS.none,e.nativeEvent);eK.set("forceMount",!0),queueMicrotask(function(){if(en)return;let e=eI.current.find(e=>D(e,ea).toLowerCase()===t.toLowerCase()||R(e,el).toLowerCase()===t.toLowerCase());null!=e&&(ed(e!==ep.initialValue),e5(e,r),em()&&ev.commit(e))})}}),id:eb&&null==to?`${eb}-hidden-input`:void 0,form:_,name:to,autoComplete:Y,value:eJ,disabled:ew,required:J&&!ts,readOnly:X,ref:ti,style:ek?r.visuallyHiddenInput:r.visuallyHidden,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),tc]})})}],851410),e.i(350461);var K=e.i(950438),G=e.i(963934),W=e.i(841807);let _=t.forwardRef(function(e,t){let{render:r,className:n,style:l,...a}=e;delete a.id;let i=(0,b.useFieldRootContext)(),{store:s}=(0,y.useSelectRootContext)(),o=(0,u.useStore)(s,T.triggerElement),c=(0,u.useStore)(s,T.id),d=null==c?void 0:`${c}-label`,h=(0,W.useLabel)({id:d,fallbackControlId:o?.id??c,setLabelId(e){s.set("labelId",e)}});return(0,K.useRenderElement)("div",e,{ref:t,state:i.state,props:[h,a],stateAttributesMapping:G.fieldValidityMapping})});e.s(["SelectLabel",0,_],356840);var Y=e.i(232897),$=e.i(242608),X=e.i(630260),J=e.i(469843),Z=e.i(537349);function Q(e){let t=e.getBoundingClientRect(),r=(0,Z.ownerWindow)(e),n=r.getComputedStyle(e,"::before"),l=r.getComputedStyle(e,"::after");if("none"===n.content&&"none"===l.content)return t;let a=parseFloat(n.width)||0,i=parseFloat(n.height)||0,s=parseFloat(l.width)||0,o=parseFloat(l.height)||0,c=Math.max(t.width,a,s),d=Math.max(t.height,i,o),u=c-t.width,h=d-t.height;return{left:t.left-u/2,right:t.right+u/2,top:t.top-h/2,bottom:t.bottom+h/2}}e.s(["getPseudoElementBounds",0,Q],327421);var ee=e.i(772610),et=e.i(360233),er=e.i(768802);let en={...J.pressableTriggerOpenStateMapping,...G.fieldValidityMapping,value:()=>null},el=t.forwardRef(function(e,r){let{render:l,className:a,id:i,disabled:s=!1,nativeButton:o=!0,style:h,...m}=e,{setTouched:p,setFocused:f,validationMode:x,state:g,disabled:v}=(0,b.useFieldRootContext)(),{labelId:w}=(0,X.useLabelableContext)(),{store:j,setOpen:S,selectionRef:C,validation:M,readOnly:N,required:E,alignItemWithTriggerActiveRef:R,disabled:D,keyboardActiveRef:A}=(0,y.useSelectRootContext)(),P=v||D||s,O=(0,u.useStore)(j,T.open),z=(0,u.useStore)(j,T.value),F=(0,u.useStore)(j,T.triggerProps),B=(0,u.useStore)(j,T.positionerElement),V=(0,u.useStore)(j,T.listElement),H=(0,u.useStore)(j,T.id),q=(0,u.useStore)(j,T.labelId),G=(0,u.useStore)(j,T.hasSelectedValue),W=!G&&O,_=(0,u.useStore)(j,T.hasNullItemLabel,W),J=i??H;(0,k.useLabelableId)({id:J});let Z=(0,d.useValueAsRef)(B),el=t.useRef(null),{getButtonProps:ea,buttonRef:ei}=(0,er.useButton)({disabled:P,native:o}),es=(0,c.useStableCallback)(e=>{j.set("triggerElement",e)}),eo=(0,n.useMergedRefs)(r,el,ei,es),ec=(0,$.useTimeout)(),ed=(0,$.useTimeout)(),eu=(0,$.useTimeout)(),eh=(0,$.useTimeout)();t.useEffect(()=>{if(O)return G||_?eh.start(200,()=>{C.current.allowUnselectedMouseUp=!0,eu.start(200,()=>{C.current.allowSelectedMouseUp=!0})}):eu.start(400,()=>{C.current.allowUnselectedMouseUp=!0,C.current.allowSelectedMouseUp=!0}),()=>{eu.clear(),eh.clear()};C.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1},ed.clear()},[O,G,_,C,ed,eu,eh]);let em=t.useMemo(()=>V?.id??(0,et.getFloatingFocusElement)(B)?.id,[V,B]),ep=(0,U.mergeProps)(F,{id:J,role:"combobox","aria-expanded":O?"true":"false","aria-haspopup":"listbox","aria-controls":O?em:void 0,"aria-labelledby":w??q,"aria-readonly":N||void 0,"aria-required":E||void 0,tabIndex:P?-1:0,ref:eo,onFocus(e){f(!0),O&&R.current&&S(!1,(0,I.createChangeEventDetails)(L.REASONS.none,e.nativeEvent)),ec.start(0,()=>{j.set("forceMount",!0)})},onBlur(e){(0,ee.contains)(B,e.relatedTarget)||(p(!0),f(!1),"onBlur"===x&&M.commit(z))},onPointerMove(){A.current=!1},onKeyDown(){A.current=!0},onMouseDown(e){if(O)return;let t=(0,Y.ownerDocument)(e.currentTarget);function r(e){if(!el.current)return;let t=e.target;if((0,ee.contains)(el.current,t)||(0,ee.contains)(Z.current,t)||t===el.current)return;let r=Q(el.current);e.clientX>=r.left-2&&e.clientX<=r.right+2&&e.clientY>=r.top-2&&e.clientY<=r.bottom+2||S(!1,(0,I.createChangeEventDetails)(L.REASONS.cancelOpen,e))}ed.start(0,()=>{t.addEventListener("mouseup",r,{once:!0})})}},M.getValidationProps,m,ea);ep.role="combobox";let ef={...g,open:O,disabled:P,value:z,readOnly:N,placeholder:!G};return(0,K.useRenderElement)("button",e,{ref:[r,el],state:ef,stateAttributesMapping:en,props:ep})});e.s(["SelectTrigger",0,el],81798);let ea={value:()=>null},ei=t.forwardRef(function(e,r){let{className:n,render:l,children:a,placeholder:i,style:s,...o}=e,{store:c,valueRef:d}=(0,y.useSelectRootContext)(),h=(0,u.useStore)(c,T.value),m=(0,u.useStore)(c,T.items),p=(0,u.useStore)(c,T.itemToStringLabel),f=(0,u.useStore)(c,T.hasSelectedValue),x=(0,u.useStore)(c,T.hasNullItemLabel,!f&&null!=i&&null==a),g=null;if("function"==typeof a)g=a(h);else if(null!=a)g=a;else if(f||null==i||x)if(Array.isArray(h))g=h.reduce((e,r,n)=>(n>0&&e.push(", "),e.push((0,N.jsx)(t.Fragment,{children:A(r,m,p)},n)),e),[]);else g=A(h,m,p);else g=i;return(0,K.useRenderElement)("span",e,{state:{value:h,placeholder:!f},ref:[r,d],props:[{children:g},o],stateAttributesMapping:ea})});e.s(["SelectValue",0,ei],822022);let es=t.forwardRef(function(e,t){let{className:r,render:n,style:l,...a}=e,{store:i}=(0,y.useSelectRootContext)(),s=(0,u.useStore)(i,T.open);return(0,K.useRenderElement)("span",e,{state:{open:s},ref:t,props:[{"aria-hidden":!0,children:"▼"},a],stateAttributesMapping:J.triggerOpenStateMapping})});e.s(["SelectIcon",0,es],667499);var eo=e.i(117767);let ec=t.createContext(void 0),ed=t.forwardRef(function(e,t){let{store:r}=(0,y.useSelectRootContext)(),n=(0,u.useStore)(r,T.mounted),l=(0,u.useStore)(r,T.forceMount);return n||l?(0,N.jsx)(ec.Provider,{value:!0,children:(0,N.jsx)(eo.FloatingPortal,{ref:t,...e})}):null});e.s(["SelectPortal",0,ed],33478);var eu=e.i(810377);let eh={...J.popupStateMapping,...eu.transitionStatusMapping},em=t.forwardRef(function(e,t){let{className:r,render:n,style:l,...a}=e,{store:i}=(0,y.useSelectRootContext)(),s=(0,u.useStore)(i,T.open),o=(0,u.useStore)(i,T.mounted),c=(0,u.useStore)(i,T.transitionStatus);return(0,K.useRenderElement)("div",e,{state:{open:s,transitionStatus:c},ref:t,props:[{role:"presentation",hidden:!o,style:{userSelect:"none",WebkitUserSelect:"none"}},a],stateAttributesMapping:eh})});e.s(["SelectBackdrop",0,em],587015);var ep=e.i(455577),ef=e.i(751778),ex=e.i(23461),eg=e.i(579907);let ev=t.createContext(void 0);function ey(){let e=t.useContext(ev);if(!e)throw Error((0,eg.default)(59));return e}var eb=e.i(556856),ew=e.i(666971);function ek(e,t){e&&Object.assign(e.style,t)}let ej={position:"relative",maxHeight:"100%",overflowX:"hidden",overflowY:"auto"};var eS=e.i(914935),eC=e.i(187663);let eM={position:"fixed"},eN=t.forwardRef(function(e,r){let{anchor:n,positionMethod:l="absolute",className:a,render:i,side:s="bottom",align:d="center",sideOffset:h=0,alignOffset:m=0,collisionBoundary:p="clipping-ancestors",collisionPadding:f,arrowPadding:x=5,sticky:g=!1,disableAnchorTracking:v,alignItemWithTrigger:b=!0,collisionAvoidance:w=ew.DROPDOWN_COLLISION_AVOIDANCE,style:k,...j}=e,{store:S,listRef:M,labelsRef:E,alignItemWithTriggerActiveRef:R,selectedItemTextRef:D,valuesRef:A,initialValueRef:P,popupRef:O,setValue:z}=(0,y.useSelectRootContext)(),F=(0,y.useSelectFloatingContext)(),B=(0,u.useStore)(S,T.open),V=(0,u.useStore)(S,T.mounted),H=(0,u.useStore)(S,T.modal),q=(0,u.useStore)(S,T.value),U=(0,u.useStore)(S,T.openMethod),K=(0,u.useStore)(S,T.positionerElement),G=(0,u.useStore)(S,T.triggerElement),W=(0,u.useStore)(S,T.isItemEqualToValue),_=(0,u.useStore)(S,T.transitionStatus),Y=t.useRef(null),$=t.useRef(null),[X,J]=t.useState(b),Z=V&&X&&"touch"!==U;V||X===b||J(b),(0,o.useIsoLayoutEffect)(()=>{!V&&(T.scrollUpArrowVisible(S.state)&&S.set("scrollUpArrowVisible",!1),T.scrollDownArrowVisible(S.state)&&S.set("scrollDownArrowVisible",!1))},[S,V]),t.useImperativeHandle(R,()=>Z),(0,eC.useAnchoredPopupScrollLock)((Z||H)&&B,"touch"===U,K,G);let Q=(0,ex.useAnchorPositioning)({anchor:n,floatingRootContext:F,positionMethod:l,mounted:V,side:s,sideOffset:h,align:d,alignOffset:m,arrowPadding:x,collisionBoundary:p,collisionPadding:f,sticky:g,disableAnchorTracking:v??Z,collisionAvoidance:w,keepMounted:!0}),ee=Z?"none":Q.side,et=Z?eM:Q.positionerStyles,er={open:B,side:ee,align:Q.align,anchorHidden:Q.anchorHidden},en=(0,c.useStableCallback)(e=>{S.set("positionerElement",e)}),el=(0,eS.usePositioner)(e,er,{styles:et,transitionStatus:_,props:j,refs:[r,en],hidden:!V,inert:!B}),ea=t.useRef(0),ei=(0,c.useStableCallback)(e=>{if(0===e.size&&0===ea.current||0===A.current.length)return;let t=ea.current;if(ea.current=e.size,e.size===t)return;let r=(0,I.createChangeEventDetails)(L.REASONS.none);if(0!==t&&!S.state.multiple&&null!==q&&-1===(0,C.findItemIndex)(A.current,q,W)){let e=P.current,t=null!=e&&-1!==(0,C.findItemIndex)(A.current,e,W)?e:null;z(t,r),null===t&&(S.set("selectedIndex",null),D.current=null)}if(0!==t&&S.state.multiple&&Array.isArray(q)){let e=q.filter(e=>-1!==(0,C.findItemIndex)(A.current,e,W));(e.length!==q.length||e.some(e=>!(0,C.selectedValueIncludes)(q,e,W)))&&(z(e,r),0===e.length&&(S.set("selectedIndex",null),D.current=null))}if(B&&Z){S.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});let e={height:""};ek(K,e),ek(O.current,e)}}),es=t.useMemo(()=>({...Q,side:ee,alignItemWithTriggerActive:Z,setControlledAlignItemWithTrigger:J,scrollUpArrowRef:Y,scrollDownArrowRef:$}),[Q,ee,Z,J]);return(0,N.jsx)(ef.CompositeList,{elementsRef:M,labelsRef:E,onMapChange:ei,children:(0,N.jsxs)(ev.Provider,{value:es,children:[V&&H&&(0,N.jsx)(eb.InternalBackdrop,{inert:(0,ep.inertValue)(!B),cutout:G}),el]})})});e.s(["SelectPositioner",0,eN],348594);var eE=e.i(32572),eR=e.i(152628),eD=e.i(473121),eA=e.i(988915),eT=e.i(245041),eI=e.i(95963);let eL="base-ui-disable-scrollbar";var eP=e.i(729718),eO=e.i(317575),ez=e.i(613580),eF=e.i(240787),eB=e.i(498800);let eV={...J.popupStateMapping,...eu.transitionStatusMapping},eH=t.forwardRef(function(e,r){let n,{render:l,className:a,style:i,finalFocus:s,...d}=e,{store:h,popupRef:m,onOpenChangeComplete:p,setOpen:f,valueRef:x,selectedItemTextRef:g,keyboardActiveRef:v,multiple:b,handleScrollArrowVisibility:w,scrollHandlerRef:k,listRef:j,highlightItemOnHover:S}=(0,y.useSelectRootContext)(),{side:C,align:M,alignItemWithTriggerActive:E,isPositioned:R,setControlledAlignItemWithTrigger:D,scrollDownArrowRef:A,scrollUpArrowRef:O}=ey(),z=null!=(0,eP.useToolbarRootContext)(!0),F=(0,y.useSelectFloatingContext)(),B=(0,eB.useDirection)(),{nonce:H,disableStyleElements:q}=(0,eF.useCSPContext)(),U=(0,u.useStore)(h,T.id),G=(0,u.useStore)(h,T.open),W=(0,u.useStore)(h,T.mounted),_=(0,u.useStore)(h,T.popupProps),$=(0,u.useStore)(h,T.transitionStatus),X=(0,u.useStore)(h,T.triggerElement),J=(0,u.useStore)(h,T.positionerElement),Q=(0,u.useStore)(h,T.listElement),ee=t.useRef(!1),et=t.useRef(!1),er=t.useRef({}),en=(0,eA.useAnimationFrame)(),el=(0,c.useStableCallback)(e=>{var t;if(!J||!m.current||!et.current)return;if(ee.current||!E)return void w();let r="0px"===J.style.top,n="0px"===J.style.bottom;if(!r&&!n)return void w();let l=eK(J),a=(t=J.getBoundingClientRect().height,t/l.y),i=(0,Y.ownerDocument)(J),s=getComputedStyle(J),o=parseFloat(s.marginTop),c=parseFloat(s.marginBottom),d=eq(getComputedStyle(m.current)),u=Math.min(i.documentElement.clientHeight-o-c,d),h=e.scrollTop,p=eU(e),f=0,x=null,g=!1,v=!1,y=e=>{J.style.height=`${e}px`},b=r?p-h:h,k=Math.min(a+b,u);if(f=k,b<=1){let t;return void((t=V(b,0,u-a))>0&&y(a+t),e.scrollTop=r?p:0,u-(a+t)<=1&&(ee.current=!0),w())}if(u-k>1)r?v=!0:x=0;else if(g=!0,n&&h<p){let e=a+b-u;x=h-(b-e)}if(0!==(f=Math.ceil(f))&&y(f),v||null!=x){let t=eU(e),r=v?t:V(x,0,t);Math.abs(e.scrollTop-r)>1&&(e.scrollTop=r)}(g||f>=u-1)&&(ee.current=!0),w()});t.useImperativeHandle(k,()=>el,[el]),(0,P.useOpenChangeComplete)({open:G,ref:m,onComplete(){G&&p?.(!0)}}),(0,o.useIsoLayoutEffect)(()=>{J&&m.current&&!Object.keys(er.current).length&&(er.current={top:J.style.top||"0",left:J.style.left||"0",right:J.style.right,height:J.style.height,bottom:J.style.bottom,minHeight:J.style.minHeight,maxHeight:J.style.maxHeight,marginTop:J.style.marginTop,marginBottom:J.style.marginBottom})},[m,J]),(0,o.useIsoLayoutEffect)(()=>{G||E||(et.current=!1,ee.current=!1,ek(J,er.current))},[G,E,J,m]),(0,o.useIsoLayoutEffect)(()=>{let e=m.current;if(!G||!X||!J||!e||E&&!R||"ending"===h.state.transitionStatus)return;if(!E){et.current=!0,en.request(w),e.style.removeProperty("--transform-origin");return}let t=function(e){let{style:t}=e,r={};for(let[e,n]of eW)r[e]=t.getPropertyValue(e),t.setProperty(e,n,"important");return()=>{for(let[e]of eW){let n=r[e];n?t.setProperty(e,n):t.removeProperty(e)}}}(e);e.style.removeProperty("--transform-origin");try{let t,r=g.current,n=x.current,l=getComputedStyle(J),a=getComputedStyle(e),i=(0,Y.ownerDocument)(X),s=(0,Z.ownerWindow)(J),o=eK(X),c=eG(X.getBoundingClientRect(),o),d=eG(J.getBoundingClientRect(),o),u=c.height,m=Q||e,p=m.scrollHeight,f=parseFloat(a.borderBottomWidth),v=parseFloat(l.marginTop)||10,y=parseFloat(l.marginBottom)||10,b=parseFloat(l.minHeight)||100,k=eq(a),C=i.documentElement.clientHeight-v-y,M=i.documentElement.clientWidth,N=C-c.bottom+u,E="rtl"===B?c.right-d.width:c.left,R=0;if(r&&n){let e=eG(n.getBoundingClientRect(),o);t=eG(r.getBoundingClientRect(),o),E=d.left+("rtl"===B?e.right-t.right:e.left-t.left);let l=e.top-c.top+e.height/2;R=t.top-d.top+t.height/2-l}let A=N+R+y+f,T=Math.min(C,A),I=C-v-y,L=A-T;J.style.left=`${V(E,5,M-5-d.width)}px`,J.style.height=`${T}px`,J.style.maxHeight="auto",J.style.marginTop=`${v}px`,J.style.marginBottom=`${y}px`,e.style.height="100%";let P=eU(m),O=L>=P-1;O&&(T=Math.min(C,d.height)-(L-P));let z=c.top<20||c.bottom>C-20||Math.ceil(T)+1<Math.min(p,b),F=(s.visualViewport?.scale??1)!==1&&eD.isWebKit;if(z||F){et.current=!0,ek(J,er.current),D(!1);return}let H=Math.max(b,T);if(O){let e=Math.max(0,C-A);J.style.top=d.height>=I?"0":`${e}px`,J.style.height=`${T}px`,m.scrollTop=eU(m)}else J.style.bottom="0",m.scrollTop=L;if(t){let r=d.top,n=d.height,l=t.top+t.height/2,a=V(n>0?(l-r)/n*100:50,0,100);e.style.setProperty("--transform-origin",`50% ${a}%`)}(H===C||T>=k)&&(ee.current=!0),w(),S&&null===h.state.selectedIndex&&null===h.state.activeIndex&&null!=j.current[0]&&h.set("activeIndex",0),et.current=!0}finally{t()}},[h,G,J,X,x,g,m,w,E,D,en,A,O,Q,j,S,B,R]),t.useEffect(()=>{if(!E||!J||!G)return;let e=(0,Z.ownerWindow)(J);return(0,eR.addEventListener)(e,"resize",function(e){f(!1,(0,I.createChangeEventDetails)(L.REASONS.windowResize,e))})},[f,E,J,G]);let ea={...Q?{role:"presentation","aria-orientation":void 0}:{role:"listbox","aria-multiselectable":b||void 0,id:`${U}-list`},onKeyDown(e){v.current=!0,z&&eO.COMPOSITE_KEYS.has(e.key)&&e.stopPropagation()},onMouseMove(){v.current=!1},onScroll(e){Q||el(e.currentTarget)},...E&&{style:Q?{height:"100%"}:ej}},ei=(0,K.useRenderElement)("div",e,{ref:[r,m],state:{open:G,transitionStatus:$,side:C,align:M},stateAttributesMapping:eV,props:[_,ea,(0,ez.getDisabledMountTransitionStyles)($),{className:!Q&&E?eL:void 0},d]});return(0,N.jsxs)(t.Fragment,{children:[!q&&(n=H,(0,N.jsx)("style",{nonce:n,href:eL,precedence:"base-ui:low",children:`.${eL}{scrollbar-width:none}.${eL}::-webkit-scrollbar{display:none}`})),(0,N.jsx)(eT.FloatingFocusManager,{context:F,modal:!1,disabled:!W,returnFocus:s,restoreFocus:!0,children:ei})]})});function eq(e){let t=e.maxHeight||"";return t.endsWith("px")&&parseFloat(t)||1/0}function eU(e){return H(e.scrollHeight,e.clientHeight)}function eK(e){return eI.platform.getScale(e)}function eG(e,t){return(0,eE.rectToClientRect)({x:e.x/t.x,y:e.y/t.y,width:e.width/t.x,height:e.height/t.y})}let eW=[["transform","none"],["scale","1"],["translate","0 0"]];e.s(["SelectPopup",0,eH],917268);let e_=t.forwardRef(function(e,t){let{className:r,render:n,style:l,...a}=e,{store:i,scrollHandlerRef:s}=(0,y.useSelectRootContext)(),{alignItemWithTriggerActive:o}=ey(),d=(0,u.useStore)(i,T.hasScrollArrows),h=(0,u.useStore)(i,T.openMethod),m=(0,u.useStore)(i,T.multiple),p=(0,u.useStore)(i,T.id),f={id:`${p}-list`,role:"listbox","aria-multiselectable":m||void 0,onScroll(e){s.current?.(e.currentTarget)},...o&&{style:ej},className:d&&"touch"!==h?eL:void 0},x=(0,c.useStableCallback)(e=>{i.set("listElement",e)});return(0,K.useRenderElement)("div",e,{ref:[t,x],props:[f,a]})});e.s(["SelectList",0,e_],968515);var eY=e.i(898052);let e$=t.createContext(void 0);function eX(){let e=t.useContext(e$);if(!e)throw Error((0,eg.default)(57));return e}let eJ=t.memo(t.forwardRef(function(e,r){let{render:n,className:l,value:a=null,label:i,disabled:s=!1,nativeButton:c=!1,style:h,...m}=e,p=t.useRef(null),f=(0,eY.useCompositeListItem)({label:i,textRef:p,indexGuessBehavior:eY.IndexGuessBehavior.GuessFromOrder}),{store:x,getItemProps:g,setOpen:v,setValue:b,selectionRef:w,typingRef:k,valuesRef:j,multiple:S,selectedItemTextRef:M}=(0,y.useSelectRootContext)(),E=(0,u.useStore)(x,T.isActive,f.index),R=(0,u.useStore)(x,T.isSelected,f.index,a),D=(0,u.useStore)(x,T.isSelectedByFocus,f.index),A=(0,u.useStore)(x,T.isItemEqualToValue),P=f.index,O=-1!==P,z=t.useRef(null),F=(0,d.useValueAsRef)(P);(0,o.useIsoLayoutEffect)(()=>{if(!O)return;let e=j.current;return e[P]=a,()=>{delete e[P]}},[O,P,a,j]),(0,o.useIsoLayoutEffect)(()=>{if(!O)return;let e=x.state.value,t=e;S&&Array.isArray(e)&&e.length>0&&(t=e[e.length-1]),void 0!==t&&(0,C.compareItemEquality)(a,t,A)&&(x.set("selectedIndex",P),p.current&&(M.current=p.current))},[O,P,S,A,x,a,M]);let B=g({active:E,selected:R});B.id=void 0;let V=t.useRef(null),H=t.useRef("mouse"),q=t.useRef(!1),{getButtonProps:U,buttonRef:G}=(0,er.useButton)({disabled:s,focusableWhenDisabled:!0,native:c,composite:!0}),W=(0,K.useRenderElement)("div",e,{ref:[G,r,f.ref,z],state:{disabled:s,selected:R,highlighted:E},props:[B,{role:"option","aria-selected":R,tabIndex:E?0:-1,onTouchStart(){w.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1}},onKeyDown(e){V.current=e.key,x.set("activeIndex",P)," "===e.key&&k.current&&e.preventDefault()},onClick(e){if((q.current=!1,"keydown"!==e.type||null!==V.current)&&!s&&("keydown"!==e.type||" "!==V.current||!k.current)&&("touch"===H.current||E)){V.current=null;var t=e.nativeEvent;let r=x.state.value;if(S){let e=Array.isArray(r)?r:[];b(R?(0,C.removeItem)(e,a,A):[...e,a],(0,I.createChangeEventDetails)(L.REASONS.itemPress,t))}else b(a,(0,I.createChangeEventDetails)(L.REASONS.itemPress,t)),v(!1,(0,I.createChangeEventDetails)(L.REASONS.itemPress,t))}},onPointerEnter(e){H.current=e.pointerType},onPointerDown(e){H.current=e.pointerType,q.current=!0},onMouseUp(){if(s)return;if(q.current){q.current=!1;return}let e=!w.current.allowSelectedMouseUp&&R,t=!w.current.allowUnselectedMouseUp&&!R;e||t||"touch"!==H.current&&!E||z.current?.click()}},m,U]}),_=t.useMemo(()=>({selected:R,indexRef:F,textRef:p,selectedByFocus:D,hasRegistered:O}),[R,F,p,D,O]);return(0,N.jsx)(e$.Provider,{value:_,children:W})}));e.s(["SelectItem",0,eJ],419203);let eZ=t.forwardRef(function(e,t){let r=e.keepMounted??!1,{selected:n}=eX();return r||n?(0,N.jsx)(eQ,{...e,ref:t}):null}),eQ=t.memo(t.forwardRef((e,r)=>{let{render:n,className:l,style:a,keepMounted:i,...s}=e,{selected:o}=eX(),c=t.useRef(null),{transitionStatus:d,setMounted:u}=(0,j.useTransitionStatus)(o),h=(0,K.useRenderElement)("span",e,{ref:[r,c],state:{selected:o,transitionStatus:d},props:[{"aria-hidden":!0,children:"✔️"},s],stateAttributesMapping:eu.transitionStatusMapping});return(0,P.useOpenChangeComplete)({open:o,ref:c,onComplete(){o||u(!1)}}),h}));e.s(["SelectItemIndicator",0,eZ],258281);let e0=t.memo(t.forwardRef(function(e,r){let{indexRef:n,textRef:l,selectedByFocus:a,hasRegistered:i}=eX(),{selectedItemTextRef:s}=(0,y.useSelectRootContext)(),{className:o,render:c,style:d,...u}=e,h=t.useCallback(e=>{if(!e||!i)return;let t=null===s.current||!s.current.isConnected;(a||t&&0===n.current)&&(s.current=e)},[s,n,a,i]);return(0,K.useRenderElement)("div",e,{ref:[h,r,l],props:u})}));e.s(["SelectItemText",0,e0],818235);let e1={...J.popupStateMapping,...eu.transitionStatusMapping},e2=t.forwardRef(function(e,t){let{className:r,render:n,style:l,...a}=e,{store:i}=(0,y.useSelectRootContext)(),{side:s,align:o,arrowRef:c,arrowStyles:d,arrowUncentered:h,alignItemWithTriggerActive:m}=ey(),p=(0,u.useStore)(i,T.open,!0),f=(0,K.useRenderElement)("div",e,{state:{open:p,side:s,align:o,uncentered:h},ref:[c,t],props:[{style:d,"aria-hidden":!0},a],stateAttributesMapping:e1});return m?null:f});e.s(["SelectArrow",0,e2],926616);let e3=t.forwardRef(function(e,t){let{render:r,className:n,style:l,direction:a,keepMounted:i=!1,...s}=e,c="up"===a,{store:d,popupRef:h,listRef:m,handleScrollArrowVisibility:p,scrollArrowsMountedCountRef:f}=(0,y.useSelectRootContext)(),{side:x,scrollDownArrowRef:g,scrollUpArrowRef:v}=ey(),b=c?T.scrollUpArrowVisible:T.scrollDownArrowVisible,w=(0,u.useStore)(d,b),k=(0,u.useStore)(d,T.openMethod),S=w&&"touch"!==k,C=(0,$.useTimeout)(),M=c?v:g,{transitionStatus:N,setMounted:E}=(0,j.useTransitionStatus)(S);(0,o.useIsoLayoutEffect)(()=>(f.current+=1,d.state.hasScrollArrows||d.set("hasScrollArrows",!0),()=>{f.current=Math.max(0,f.current-1),0===f.current&&d.state.hasScrollArrows&&d.set("hasScrollArrows",!1)}),[d,f]),(0,P.useOpenChangeComplete)({open:S,ref:M,onComplete(){S||E(!1)}});let R=(0,K.useRenderElement)("div",e,{ref:[t,M],state:{direction:a,visible:S,side:x,transitionStatus:N},props:[{"aria-hidden":!0,children:c?"▲":"▼",style:{position:"absolute"},onMouseMove(e){0===e.movementX&&0===e.movementY||C.isStarted()||(d.set("activeIndex",null),C.start(40,function e(){let t=d.state.listElement??h.current;if(!t)return;d.set("activeIndex",null),p();let r=H(t.scrollHeight,t.clientHeight),n=q(t.scrollTop,r),l=n===(c?0:r),a=m.current;if(n!==t.scrollTop&&(t.scrollTop=n),0===a.length&&d.set(c?"scrollUpArrowVisible":"scrollDownArrowVisible",!l),l)return void C.clear();if(a.length>0){let e=M.current?.offsetHeight||0;t.scrollTop=function(e,t,r,n,l,a){if(t){let t=0,n=r+l-1;for(let r=0;r<e.length;r+=1){let l=e[r];if(l&&l.offsetTop>=n){t=r;break}}let i=Math.max(0,t-1),s=e[i];return i<t&&s?q(s.offsetTop-l,a):0}let i=e.length-1,s=r+n-l+1;for(let t=0;t<e.length;t+=1){let r=e[t];if(r&&r.offsetTop+r.offsetHeight>s){i=Math.max(0,t-1);break}}let o=Math.min(e.length-1,i+1),c=e[o];return o>i&&c?q(c.offsetTop+c.offsetHeight-n+l,a):a}(a,c,n,t.clientHeight,e,r)}C.start(40,e)}))},onMouseLeave(){C.clear()}},s]});return S||i?R:null}),e5=t.forwardRef(function(e,t){return(0,N.jsx)(e3,{...e,ref:t,direction:"down"})});e.s(["SelectScrollDownArrow",0,e5],466570);let e4=t.forwardRef(function(e,t){return(0,N.jsx)(e3,{...e,ref:t,direction:"up"})});e.s(["SelectScrollUpArrow",0,e4],535274);let e6=t.createContext(void 0),e8=t.forwardRef(function(e,r){let{className:n,render:l,style:a,...i}=e,[s,o]=t.useState(),c=t.useMemo(()=>({labelId:s,setLabelId:o}),[s,o]),d=(0,K.useRenderElement)("div",e,{ref:r,props:[{role:"group","aria-labelledby":s},i]});return(0,N.jsx)(e6.Provider,{value:c,children:d})});e.s(["SelectGroup",0,e8],48665);var e9=e.i(147652);let e7=t.forwardRef(function(e,r){let{className:n,render:l,id:a,style:i,...s}=e,{setLabelId:c}=function(){let e=t.useContext(e6);if(void 0===e)throw Error((0,eg.default)(56));return e}(),d=(0,e9.useBaseUiId)(a);return(0,o.useIsoLayoutEffect)(()=>{c(d)},[d,c]),(0,K.useRenderElement)("div",e,{ref:r,props:[{id:d},s]})});e.s(["SelectGroupLabel",0,e7],87474)},227384,e=>{"use strict";var t=e.i(191788),r=e.i(950438);let n=t.forwardRef(function(e,t){let{className:n,render:l,orientation:a="horizontal",style:i,...s}=e;return(0,r.useRenderElement)("div",e,{state:{orientation:a},ref:t,props:[{role:"separator","aria-orientation":a},s]})});e.s(["Separator",0,n])},690176,e=>{"use strict";var t=e.i(391398);e.i(162591);var r=e.i(851410),n=e.i(356840),l=e.i(81798),a=e.i(822022),i=e.i(667499),s=e.i(33478),o=e.i(587015),c=e.i(348594),d=e.i(917268),u=e.i(968515),h=e.i(419203),m=e.i(258281),p=e.i(818235),f=e.i(926616),x=e.i(466570),g=e.i(535274),v=e.i(48665),y=e.i(87474),b=e.i(227384);e.s(["Arrow",()=>f.SelectArrow,"Backdrop",()=>o.SelectBackdrop,"Group",()=>v.SelectGroup,"GroupLabel",()=>y.SelectGroupLabel,"Icon",()=>i.SelectIcon,"Item",()=>h.SelectItem,"ItemIndicator",()=>m.SelectItemIndicator,"ItemText",()=>p.SelectItemText,"Label",()=>n.SelectLabel,"List",()=>u.SelectList,"Popup",()=>d.SelectPopup,"Portal",()=>s.SelectPortal,"Positioner",()=>c.SelectPositioner,"Root",()=>r.SelectRoot,"ScrollDownArrow",()=>x.SelectScrollDownArrow,"ScrollUpArrow",()=>g.SelectScrollUpArrow,"Separator",()=>b.Separator,"Trigger",()=>l.SelectTrigger,"Value",()=>a.SelectValue],105575);var w=e.i(105575),w=w,k=e.i(353533),j=e.i(801923),j=j,S=e.i(589348),C=e.i(943270),C=C;let M=w.Root;function N({className:e,...r}){return(0,t.jsx)(w.ScrollUpArrow,{"data-slot":"select-scroll-up-button",className:(0,k.cn)("top-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",e),...r,children:(0,t.jsx)(C.default,{})})}function E({className:e,...r}){return(0,t.jsx)(w.ScrollDownArrow,{"data-slot":"select-scroll-down-button",className:(0,k.cn)("bottom-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",e),...r,children:(0,t.jsx)(j.default,{})})}e.s(["Select",0,M,"SelectContent",0,function({className:e,children:r,side:n="bottom",sideOffset:l=4,align:a="start",alignOffset:i=0,alignItemWithTrigger:s=!1,...o}){return(0,t.jsx)(w.Portal,{children:(0,t.jsx)(w.Positioner,{side:n,sideOffset:l,align:a,alignOffset:i,alignItemWithTrigger:s,className:"isolate z-50",children:(0,t.jsxs)(w.Popup,{"data-slot":"select-content","data-align-trigger":s,className:(0,k.cn)("relative isolate z-50 max-h-(--available-height) w-(--anchor-width) min-w-36 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[align-trigger=true]:animate-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...o,children:[(0,t.jsx)(N,{}),(0,t.jsx)(w.List,{children:r}),(0,t.jsx)(E,{})]})})})},"SelectItem",0,function({className:e,children:r,...n}){return(0,t.jsxs)(w.Item,{"data-slot":"select-item",className:(0,k.cn)("relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...n,children:[(0,t.jsx)(w.ItemText,{className:"flex flex-1 shrink-0 gap-2 whitespace-nowrap",children:r}),(0,t.jsx)(w.ItemIndicator,{render:(0,t.jsx)("span",{className:"pointer-events-none absolute right-2 flex size-4 items-center justify-center"}),children:(0,t.jsx)(S.CheckIcon,{className:"pointer-events-none"})})]})},"SelectTrigger",0,function({className:e,size:r="default",children:n,...l}){return(0,t.jsxs)(w.Trigger,{"data-slot":"select-trigger","data-size":r,className:(0,k.cn)("flex w-fit items-center justify-between gap-1.5 rounded-lg border border-input bg-transparent py-2 pr-2 pl-2.5 text-sm whitespace-nowrap transition-colors outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...l,children:[n,(0,t.jsx)(w.Icon,{render:(0,t.jsx)(j.default,{className:"pointer-events-none size-4 text-muted-foreground"})})]})},"SelectValue",0,function({className:e,...r}){return(0,t.jsx)(w.Value,{"data-slot":"select-value",className:(0,k.cn)("flex flex-1 text-left",e),...r})}],690176)},181474,e=>{"use strict";let t=(0,e.i(369547).default)("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"}]]);e.s(["Settings",0,t],181474)},734549,771573,127630,236597,587346,858013,e=>{"use strict";var t=e.i(191788),r=e.i(950323),n=e.i(679935),l=e.i(844044);let a=e=>fetch(e).then(e=>{if(!e.ok)throw Error("fetch failed");return e.json()}),i={builtins:[],custom:[],order:[]},s=(e,t)=>{if(0===t.length)return e;let r=new Map(e.map(e=>[e.id,e])),n=[];for(let e of t){let t=r.get(e);t&&(n.push(t),r.delete(e))}for(let e of r.values())n.push(e);return n};e.s(["default",0,()=>{let{data:e,isLoading:o,mutate:c}=(0,r.default)("/api/sidebar-items",a,{revalidateOnFocus:!1}),d=e??i,u=(0,t.useMemo)(()=>s([...d.builtins,...d.custom].filter(e=>e.enabled),d.order),[d]),h=(0,t.useMemo)(()=>s([...d.builtins,...d.custom],d.order),[d]),m=(0,t.useCallback)(async(e,t,r)=>{let n=e.filter(e=>!e.enabled).map(e=>e.id);if(!(await fetch("/api/sidebar-items",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({custom:t,disabledBuiltinIds:n,order:r})})).ok)throw Error("save failed")},[]),p=(0,t.useCallback)(async(e,t)=>{let r=r=>({...r,builtins:r.builtins.map(r=>r.id===e?{...r,enabled:t}:r)});await c(async e=>{let t=r(e??i);return await m(t.builtins,t.custom,t.order),t},{optimisticData:e=>r(e??i),rollbackOnError:!0,revalidate:!1}).catch(()=>n.toast.error((0,l.t)("settings","saveFailed")))},[c,m]),f=(0,t.useCallback)(async e=>{let t=t=>({...t,custom:e});await c(async e=>{let r=t(e??i);return await m(r.builtins,r.custom,r.order),r},{optimisticData:e=>t(e??i),rollbackOnError:!0,revalidate:!1}).catch(()=>n.toast.error((0,l.t)("settings","saveFailed")))},[c,m]),x=(0,t.useCallback)(async e=>{let t=t=>({...t,order:e});await c(async e=>{let r=t(e??i);return await m(r.builtins,r.custom,r.order),r},{optimisticData:e=>t(e??i),rollbackOnError:!0,revalidate:!1}).catch(()=>n.toast.error((0,l.t)("settings","saveFailed")))},[c,m]),g=(0,t.useCallback)(async e=>{let t=t=>({...t,custom:t.custom.filter(t=>t.id!==e),order:t.order.filter(t=>t!==e)});await c(async e=>{let r=t(e??i);return await m(r.builtins,r.custom,r.order),r},{optimisticData:e=>t(e??i),rollbackOnError:!0,revalidate:!1}).catch(()=>n.toast.error((0,l.t)("settings","saveFailed")))},[c,m]),v=(0,t.useCallback)(async()=>{let e=e=>({builtins:e.builtins.map(e=>({...e,enabled:!0})),custom:[],order:[]});await c(async t=>{let r=e(t??i);return await m(r.builtins,r.custom,r.order),r},{optimisticData:t=>e(t??i),rollbackOnError:!0,revalidate:!1}).catch(()=>n.toast.error((0,l.t)("settings","saveFailed")))},[c,m]);return{items:u,allOrderedItems:h,builtinItems:d.builtins,customItems:d.custom,order:d.order,isLoading:o,toggleBuiltin:p,saveCustom:f,saveOrder:x,deleteItem:g,resetAll:v}}],734549);var o=e.i(369547);let c=(0,o.default)("link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]);e.s(["Link",0,c],771573);let d=(0,o.default)("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);e.s(["ExternalLink",0,d],127630);let u=(0,o.default)("bookmark",[["path",{d:"M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z",key:"oz39mx"}]]);e.s(["Bookmark",0,u],236597);let h=(0,o.default)("star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);e.s(["Star",0,h],587346);let m=(0,o.default)("house",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]]);e.s(["Home",0,m],858013)},72538,e=>{"use strict";let t=(0,e.i(369547).default)("chart-column",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);e.s(["BarChart3",0,t],72538)},953553,374433,657334,649249,298421,546456,726331,185849,582646,e=>{"use strict";var t=e.i(369547);let r=(0,t.default)("chart-pie",[["path",{d:"M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z",key:"pzmjnu"}],["path",{d:"M21.21 15.89A10 10 0 1 1 8 2.83",key:"k2fpak"}]]);e.s(["PieChart",0,r],953553);let n=(0,t.default)("chart-line",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}]]);e.s(["LineChart",0,n],374433);let l=(0,t.default)("code",[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]]);e.s(["Code",0,l],657334);let a=(0,t.default)("database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);e.s(["Database",0,a],649249);let i=(0,t.default)("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"}]]);e.s(["Server",0,i],298421);let s=(0,t.default)("cloud",[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]]);e.s(["Cloud",0,s],546456);let o=(0,t.default)("key",[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]]);e.s(["Key",0,o],726331);let c=(0,t.default)("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);e.s(["User",0,c],185849);let d=(0,t.default)("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]);e.s(["Mail",0,d],582646)},447903,e=>{"use strict";let t=(0,e.i(369547).default)("bell",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]]);e.s(["Bell",0,t],447903)},151670,465420,e=>{"use strict";var t=e.i(369547);let r=(0,t.default)("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);e.s(["Calendar",0,r],151670);let n=(0,t.default)("camera",[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",key:"18u6gg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]);e.s(["Camera",0,n],465420)},966954,e=>{"use strict";let t=(0,e.i(369547).default)("image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);e.s(["default",0,t])},405328,905585,90610,17119,503680,742152,783462,759279,990032,916989,944598,758418,e=>{"use strict";var t=e.i(966954);e.s(["Image",()=>t.default],405328);var r=e.i(369547);let n=(0,r.default)("film",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 3v18",key:"bbkbws"}],["path",{d:"M3 7.5h4",key:"zfgn84"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 16.5h4",key:"1230mu"}],["path",{d:"M17 3v18",key:"in4fa5"}],["path",{d:"M17 7.5h4",key:"myr1c1"}],["path",{d:"M17 16.5h4",key:"go4c1d"}]]);e.s(["Film",0,n],905585);let l=(0,r.default)("music",[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]]);e.s(["Music",0,l],90610);let a=(0,r.default)("headphones",[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3",key:"1xhozi"}]]);e.s(["Headphones",0,a],17119);let i=(0,r.default)("mic",[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]]);e.s(["Mic",0,i],503680);let s=(0,r.default)("folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);e.s(["Folder",0,s],742152);let o=(0,r.default)("file",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]]);e.s(["File",0,o],783462);let c=(0,r.default)("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"}]]);e.s(["Upload",0,c],759279);let d=(0,r.default)("git-pull-request",[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M13 6h3a2 2 0 0 1 2 2v7",key:"1yeb86"}],["line",{x1:"6",x2:"6",y1:"9",y2:"21",key:"rroup"}]]);e.s(["GitPullRequest",0,d],990032);let u=(0,r.default)("git-fork",[["circle",{cx:"12",cy:"18",r:"3",key:"1mpf1b"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["path",{d:"M18 9v2c0 .6-.4 1-1 1H7c-.6 0-1-.4-1-1V9",key:"1uq4wg"}],["path",{d:"M12 12v3",key:"158kv8"}]]);e.s(["GitFork",0,u],916989);let h=(0,r.default)("bug",[["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z",key:"uouzyp"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M21 21a4 4 0 0 0-3.81-4",key:"1b0z45"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4",key:"1fjd4g"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97",key:"1d7oge"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13",key:"1vgav8"}]]);e.s(["Bug",0,h],944598);let m=(0,r.default)("sliders-vertical",[["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M12 21v-9",key:"17s77i"}],["path",{d:"M12 8V3",key:"13r4qs"}],["path",{d:"M17 16h4",key:"h1uq16"}],["path",{d:"M19 12V3",key:"o1uvq1"}],["path",{d:"M19 21v-5",key:"qua636"}],["path",{d:"M3 14h4",key:"bcjad9"}],["path",{d:"M5 10V3",key:"cb8scm"}],["path",{d:"M5 21v-7",key:"1w1uti"}]]);e.s(["Sliders",0,m],758418)},117690,e=>{"use strict";let t=(0,e.i(369547).default)("palette",[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]]);e.s(["Palette",0,t],117690)},706303,49025,697878,113826,875707,606299,533575,539913,93608,82030,310,515147,21498,294723,145089,946599,638279,363823,263213,e=>{"use strict";var t=e.i(369547);let r=(0,t.default)("brush",[["path",{d:"m11 10 3 3",key:"fzmg1i"}],["path",{d:"M6.5 21A3.5 3.5 0 1 0 3 17.5a2.62 2.62 0 0 1-.708 1.792A1 1 0 0 0 3 21z",key:"p4q2r7"}],["path",{d:"M9.969 17.031 21.378 5.624a1 1 0 0 0-3.002-3.002L6.967 14.031",key:"wy6l02"}]]);e.s(["Brush",0,r],706303);let n=(0,t.default)("map",[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]]);e.s(["Map",0,n],49025);let l=(0,t.default)("map-pin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);e.s(["MapPin",0,l],697878);let a=(0,t.default)("navigation",[["polygon",{points:"3 11 22 2 13 21 11 13 3 11",key:"1ltx0t"}]]);e.s(["Navigation",0,a],113826);let i=(0,t.default)("compass",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}]]);e.s(["Compass",0,i],875707);let s=(0,t.default)("wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]);e.s(["Wifi",0,s],606299);let o=(0,t.default)("tablet",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2",key:"76otgf"}],["line",{x1:"12",x2:"12.01",y1:"18",y2:"18",key:"1dp563"}]]);e.s(["Tablet",0,o],533575);let c=(0,t.default)("laptop",[["path",{d:"M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z",key:"1pdavp"}],["path",{d:"M20.054 15.987H3.946",key:"14rxg9"}]]);e.s(["Laptop",0,c],539913);let d=(0,t.default)("cpu",[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]]);e.s(["Cpu",0,d],93608);let u=(0,t.default)("hard-drive",[["path",{d:"M10 16h.01",key:"1bzywj"}],["path",{d:"M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"18tbho"}],["path",{d:"M21.946 12.013H2.054",key:"zqlbp7"}],["path",{d:"M6 16h.01",key:"1pmjb7"}]]);e.s(["HardDrive",0,u],82030);let h=(0,t.default)("memory-stick",[["path",{d:"M12 12v-2",key:"fwoke6"}],["path",{d:"M12 18v-2",key:"qj6yno"}],["path",{d:"M16 12v-2",key:"heuere"}],["path",{d:"M16 18v-2",key:"s1ct0w"}],["path",{d:"M2 11h1.5",key:"15p63e"}],["path",{d:"M20 18v-2",key:"12ehxp"}],["path",{d:"M20.5 11H22",key:"khsy7a"}],["path",{d:"M4 18v-2",key:"1c3oqr"}],["path",{d:"M8 12v-2",key:"1mwtfd"}],["path",{d:"M8 18v-2",key:"qcmpov"}],["rect",{x:"2",y:"6",width:"20",height:"10",rx:"2",key:"1qcswk"}]]);e.s(["MemoryStick",0,h],310);let m=(0,t.default)("circuit-board",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M11 9h4a2 2 0 0 0 2-2V3",key:"1ve2rv"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"M7 21v-4a2 2 0 0 1 2-2h4",key:"1fwkro"}],["circle",{cx:"15",cy:"15",r:"2",key:"3i40o0"}]]);e.s(["CircuitBoard",0,m],515147);let p=(0,t.default)("radio",[["path",{d:"M16.247 7.761a6 6 0 0 1 0 8.478",key:"1fwjs5"}],["path",{d:"M19.075 4.933a10 10 0 0 1 0 14.134",key:"ehdyv1"}],["path",{d:"M4.925 19.067a10 10 0 0 1 0-14.134",key:"1q22gi"}],["path",{d:"M7.753 16.239a6 6 0 0 1 0-8.478",key:"r2q7qm"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);e.s(["Radio",0,p],21498);let f=(0,t.default)("bluetooth",[["path",{d:"m7 7 10 10-5 5V2l5 5L7 17",key:"1q5490"}]]);e.s(["Bluetooth",0,f],294723);let x=(0,t.default)("heart",[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]]);e.s(["Heart",0,x],145089);let g=(0,t.default)("thumbs-up",[["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}],["path",{d:"M7 10v12",key:"1qc93n"}]]);e.s(["ThumbsUp",0,g],946599);let v=(0,t.default)("smile",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 14s1.5 2 4 2 4-2 4-2",key:"1y1vjs"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]]);e.s(["Smile",0,v],638279);let y=(0,t.default)("coffee",[["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M14 2v2",key:"6buw04"}],["path",{d:"M16 8a1 1 0 0 1 1 1v8a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1h14a4 4 0 1 1 0 8h-1",key:"pwadti"}],["path",{d:"M6 2v2",key:"colzsn"}]]);e.s(["Coffee",0,y],363823);let b=(0,t.default)("rocket",[["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}],["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09",key:"u4xsad"}],["path",{d:"M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z",key:"676m9"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05",key:"92ym6u"}]]);e.s(["Rocket",0,b],263213)},947710,e=>{"use strict";let t=(0,e.i(369547).default)("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]]);e.s(["Sparkles",0,t],947710)},186122,347735,540983,102966,594168,e=>{"use strict";var t=e.i(369547);let r=(0,t.default)("award",[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]]);e.s(["Award",0,r],186122);let n=(0,t.default)("target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);e.s(["Target",0,n],347735);let l=(0,t.default)("flag",[["path",{d:"M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528",key:"1jaruq"}]]);e.s(["Flag",0,l],540983);let a=(0,t.default)("crosshair",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"22",x2:"18",y1:"12",y2:"12",key:"l9bcsi"}],["line",{x1:"6",x2:"2",y1:"12",y2:"12",key:"13hhkx"}],["line",{x1:"12",x2:"12",y1:"6",y2:"2",key:"10w3f3"}],["line",{x1:"12",x2:"12",y1:"22",y2:"18",key:"15g9kq"}]]);e.s(["Crosshair",0,a],102966);let i=(0,t.default)("layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]);e.s(["Layers",0,i],594168)},438970,e=>{"use strict";let t=(0,e.i(369547).default)("panels-top-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M9 21V9",key:"1oto5p"}]]);e.s(["Layout",0,t],438970)},274489,e=>{"use strict";var t=e.i(191788),r=e.i(240614),n=e.i(771573),l=e.i(127630),a=e.i(236597),i=e.i(587346),s=e.i(858013),o=e.i(576255),c=e.i(72538),d=e.i(953553),u=e.i(374433),h=e.i(243638),m=e.i(602889),p=e.i(875284),f=e.i(657334),x=e.i(649249),g=e.i(298421),v=e.i(546456),y=e.i(66311),b=e.i(835707),w=e.i(726331),k=e.i(185849),j=e.i(295746),S=e.i(582646),C=e.i(235090),M=e.i(447903),N=e.i(151670),E=e.i(756043),R=e.i(533538),D=e.i(450095),A=e.i(465420),T=e.i(405328),I=e.i(905585),L=e.i(90610),P=e.i(17119),O=e.i(503680),z=e.i(742152),F=e.i(783462),B=e.i(8820),V=e.i(687072),H=e.i(759279),q=e.i(172738),U=e.i(452945),K=e.i(990032),G=e.i(916989),W=e.i(944598),_=e.i(722896),Y=e.i(181474),$=e.i(758418),X=e.i(117690),J=e.i(706303),Z=e.i(49025),Q=e.i(697878),ee=e.i(113826),et=e.i(875707),er=e.i(606299),en=e.i(482192),el=e.i(650128),ea=e.i(533575),ei=e.i(539913),es=e.i(93608),eo=e.i(82030),ec=e.i(310),ed=e.i(515147),eu=e.i(21498),eh=e.i(294723),em=e.i(145089),ep=e.i(946599),ef=e.i(638279),ex=e.i(363823),eg=e.i(263213),ev=e.i(136646),ey=e.i(639131),eb=e.i(283303),ew=e.i(947710),ek=e.i(186122),ej=e.i(403299),eS=e.i(347735),eC=e.i(540983),eM=e.i(102966),eN=e.i(594168),eE=e.i(438970),eR=e.i(369547);let eD=(0,eR.default)("grid-3x3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]]),eA=(0,eR.default)("list",[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]]),eT=(0,eR.default)("table",[["path",{d:"M12 3v18",key:"108xh3"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}]]),eI=(0,eR.default)("kanban",[["path",{d:"M5 3v14",key:"9nsxs2"}],["path",{d:"M12 3v8",key:"1h2ygw"}],["path",{d:"M19 3v18",key:"1sk56x"}]]);var eL=e.i(970597);let eP=(0,eR.default)("brain",[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]]),eO=(0,eR.default)("lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]),ez=(0,eR.default)("graduation-cap",[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]]),eF=(0,eR.default)("book-open",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]),eB={Globe:r.Globe,Link:n.Link,ExternalLink:l.ExternalLink,Bookmark:a.Bookmark,Star:i.Star,Home:s.Home,FileText:o.FileText,BarChart3:c.BarChart3,PieChart:d.PieChart,LineChart:u.LineChart,Activity:h.Activity,Zap:m.Zap,Terminal:p.Terminal,Code:f.Code,Database:x.Database,Server:g.Server,Cloud:v.Cloud,Shield:y.Shield,Lock:b.Lock,Key:w.Key,User:k.User,Users:j.Users,Mail:S.Mail,MessageSquare:C.MessageSquare,Bell:M.Bell,Calendar:N.Calendar,Clock:E.Clock,Search:R.Search,Eye:D.Eye,Camera:A.Camera,Image:T.Image,Film:I.Film,Music:L.Music,Headphones:P.Headphones,Mic:O.Mic,Folder:z.Folder,File:F.File,Archive:B.Archive,Download:V.Download,Upload:H.Upload,GitBranch:q.GitBranch,GitCommit:U.GitCommit,GitPullRequest:K.GitPullRequest,GitFork:G.GitFork,Bug:W.Bug,Wrench:_.Wrench,Settings:Y.Settings,Sliders:$.Sliders,Palette:X.Palette,Brush:J.Brush,Map:Z.Map,MapPin:Q.MapPin,Navigation:ee.Navigation,Compass:et.Compass,Wifi:er.Wifi,Monitor:en.Monitor,Smartphone:el.Smartphone,Tablet:ea.Tablet,Laptop:ei.Laptop,Cpu:es.Cpu,HardDrive:eo.HardDrive,MemoryStick:ec.MemoryStick,CircuitBoard:ed.CircuitBoard,Radio:eu.Radio,Bluetooth:eh.Bluetooth,Heart:em.Heart,ThumbsUp:ep.ThumbsUp,Smile:ef.Smile,Coffee:ex.Coffee,Rocket:eg.Rocket,Flame:ev.Flame,Sun:ey.Sun,Moon:eb.Moon,Sparkles:ew.Sparkles,Award:ek.Award,Trophy:ej.Trophy,Target:eS.Target,Flag:eC.Flag,Crosshair:eM.Crosshair,Layers:eN.Layers,Layout:eE.Layout,Grid:eD,List:eA,Table:eT,Kanban:eI,Bot:eL.Bot,Brain:eP,Lightbulb:eO,GraduationCap:ez,BookOpen:eF};e.s(["default",0,({name:e,className:r,style:n})=>{let l=eB[e];return l?(0,t.createElement)(l,{className:r,style:n}):null},"getIcon",0,e=>eB[e]],274489)},436254,e=>{"use strict";let t=(0,e.i(369547).default)("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);e.s(["Pencil",0,t],436254)},524845,(e,t,r)=>{t.exports={name:"purplemux",version:"0.2.4",description:"Manage multiple Claude Code sessions from your browser",license:"MIT",author:"subicura",repository:{type:"git",url:"https://github.com/subicura/purplemux.git"},homepage:"https://github.com/subicura/purplemux",bugs:{url:"https://github.com/subicura/purplemux/issues"},keywords:["claude","terminal","multiplexer","tmux","claude-code"],engines:{node:">=20.0.0"},packageManager:"pnpm@10.32.1",main:"dist-electron/main.js",bin:{purplemux:"./bin/purplemux.js",pmux:"./bin/purplemux.js"},files:["bin/","dist/",".next/standalone/","src/config/tmux.conf"],scripts:{dev:"tsx watch server.ts",build:"next build && node scripts/post-build.js && tsup","build:landing":"eleventy","dev:landing":"eleventy --serve","build:server":"tsup","build:electron:main":"tsup --config electron/tsup.config.ts","build:electron":"next build && node scripts/post-build.js --electron && tsup && pnpm build:electron:main","dev:electron":"ELECTRON_DEV_URL=http://localhost:8022 electron .","pack:electron":"pnpm build:electron && electron-builder --mac","pack:electron:dev":"pnpm build:electron && CSC_IDENTITY_AUTO_DISCOVERY=false electron-builder --mac -c.mac.identity=null -c.mac.notarize=false",start:"NODE_ENV=production tsx server.ts",lint:"eslint",test:"vitest run","test:watch":"vitest",ralph:"node ralph-loop.js",prepublishOnly:"rm -rf .next dist dist-electron && pnpm build",postinstall:"chmod +x node_modules/.pnpm/node-pty@*/node_modules/node-pty/prebuilds/*/spawn-helper 2>/dev/null; exit 0"},dependencies:{"@base-ui/react":"^1.3.0","@dnd-kit/core":"^6.3.1","@dnd-kit/sortable":"^10.0.0","@dnd-kit/utilities":"^3.2.2","@git-diff-view/core":"^0.1.3","@git-diff-view/file":"^0.1.3","@git-diff-view/react":"^0.1.3","@tailwindcss/typography":"^0.5.19","@xterm/addon-clipboard":"^0.2.0","@xterm/addon-fit":"^0.11.0","@xterm/addon-unicode11":"^0.9.0","@xterm/addon-web-links":"^0.12.0","@xterm/xterm":"^6.0.0","class-variance-authority":"^0.7.1",clsx:"^2.1.1",cmdk:"^1.1.1",dayjs:"^1.11.20",diff:"^9.0.0","electron-updater":"^6.8.3",jose:"^6.2.2","lucide-react":"^1.7.0",motion:"^12.38.0",nanoid:"^5.1.7",next:"16.2.4","next-intl":"^4.9.1","next-themes":"^0.4.6","node-pty":"1.2.0-beta.12",pino:"^10.3.1","pino-pretty":"^13.1.3","pino-roll":"^4.0.0",react:"19.2.5","react-dom":"19.2.5","react-hotkeys-hook":"^5.2.4","react-icons":"^5.6.0","react-markdown":"^10.1.0","react-resizable-panels":"^4.10.0",recharts:"^3.8.0","rehype-highlight":"^7.0.2","rehype-raw":"^7.0.0","remark-gfm":"^4.0.1",sonner:"^2.0.7",swr:"^2.4.1","tailwind-merge":"^3.5.0","tw-animate-css":"^1.4.0","update-notifier":"^7.3.1","use-stick-to-bottom":"^1.1.3",vaul:"^1.1.2","web-push":"^3.6.7",ws:"^8.20.0",zod:"^4.3.6",zustand:"^5.0.12"},devDependencies:{"@11ty/eleventy":"^3.1.5","@electron/rebuild":"^4.0.3","@tailwindcss/postcss":"^4","@types/node":"^24.12.0","@types/react":"^19","@types/react-dom":"^19","@types/web-push":"^3.6.4","@types/ws":"^8.18.1",chalk:"^5.6.2",electron:"^41.1.1","electron-builder":"^26.8.1",eslint:"^9","eslint-config-next":"16.2.3",shadcn:"^4.1.2",tailwindcss:"^4",tsup:"^8.5.1",tsx:"^4.21.0",typescript:"^5.9.3",vitest:"^4.1.4"},pnpm:{onlyBuiltDependencies:["electron","node-pty"],overrides:{hono:">=4.12.14","@hono/node-server":">=1.19.13",lodash:">=4.18.0","@xmldom/xmldom":"^0.8.13","picomatch@>=2.0.0 <3.0.0":">=2.3.2","picomatch@>=4.0.0 <5.0.0":">=4.0.4"}}}},211308,e=>{"use strict";let t=(0,e.i(369547).default)("dices",[["rect",{width:"12",height:"12",x:"2",y:"10",rx:"2",ry:"2",key:"6agr2n"}],["path",{d:"m17.92 14 3.5-3.5a2.24 2.24 0 0 0 0-3l-5-4.92a2.24 2.24 0 0 0-3 0L10 6",key:"1o487t"}],["path",{d:"M6 18h.01",key:"uhywen"}],["path",{d:"M10 14h.01",key:"ssrbsk"}],["path",{d:"M15 6h.01",key:"cblpky"}],["path",{d:"M18 9h.01",key:"2061c0"}]]);e.s(["Dices",0,t],211308)},978517,e=>{"use strict";var t=e.i(966954);e.s(["ImageIcon",()=>t.default])},909289,124726,962311,e=>{"use strict";let t=(0,e.i(369547).default)("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]);e.s(["Trash2",0,t],909289);var r=e.i(391398);e.s(["default",0,e=>(0,r.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M4.709 15.955l4.72-2.647.08-.23-.08-.128H9.2l-.79-.048-2.698-.073-2.339-.097-2.266-.122-.571-.121L0 11.784l.055-.352.48-.321.686.06 1.52.103 2.278.158 1.652.097 2.449.255h.389l.055-.157-.134-.098-.103-.097-2.358-1.596-2.552-1.688-1.336-.972-.724-.491-.364-.462-.158-1.008.656-.722.881.06.225.061.893.686 1.908 1.476 2.491 1.833.365.304.145-.103.019-.073-.164-.274-1.355-2.446-1.446-2.49-.644-1.032-.17-.619a2.97 2.97 0 01-.104-.729L6.283.134 6.696 0l.996.134.42.364.62 1.414 1.002 2.229 1.555 3.03.456.898.243.832.091.255h.158V9.01l.128-1.706.237-2.095.23-2.695.08-.76.376-.91.747-.492.584.28.48.685-.067.444-.286 1.851-.559 2.903-.364 1.942h.212l.243-.242.985-1.306 1.652-2.064.73-.82.85-.904.547-.431h1.033l.76 1.129-.34 1.166-1.064 1.347-.881 1.142-1.264 1.7-.79 1.36.073.11.188-.02 2.856-.606 1.543-.28 1.841-.315.833.388.091.395-.328.807-1.969.486-2.309.462-3.439.813-.042.03.049.061 1.549.146.662.036h1.622l3.02.225.79.522.474.638-.079.485-1.215.62-1.64-.389-3.829-.91-1.312-.329h-.182v.11l1.093 1.068 2.006 1.81 2.509 2.33.127.578-.322.455-.34-.049-2.205-1.657-.851-.747-1.926-1.62h-.128v.17l.444.649 2.345 3.521.122 1.08-.17.353-.608.213-.667-.122-1.374-1.925-1.415-2.167-1.143-1.943-.14.08-.674 7.254-.316.37-.729.28-.607-.461-.322-.747.322-1.476.389-1.924.315-1.53.286-1.9.17-.632-.012-.042-.14.018-1.434 1.967-2.18 2.945-1.726 1.845-.414.164-.717-.37.067-.662.401-.589 2.388-3.036 1.44-1.882.93-1.086-.006-.158h-.055L4.132 18.56l-1.13.146-.487-.456.061-.746.231-.243 1.908-1.312-.006.006z"})})],124726);var n=e.i(950438);e.s(["useRender",0,function(e){return(0,n.useRenderElement)(e.defaultTagName??"div",e,e)}],962311)},208501,621504,48543,562020,458325,117385,e=>{"use strict";var t,r=e.i(391398);e.i(977848),e.i(962311);var n=e.i(648684),l=e.i(353533);e.i(227384);let a=(0,n.cva)("flex w-fit items-stretch *:focus-visible:relative *:focus-visible:z-10 has-[>[data-slot=button-group]]:gap-2 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-lg [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1",{variants:{orientation:{horizontal:"*:data-slot:rounded-r-none [&>[data-slot]:not(:has(~[data-slot]))]:rounded-r-lg! [&>[data-slot]~[data-slot]]:rounded-l-none [&>[data-slot]~[data-slot]]:border-l-0",vertical:"flex-col *:data-slot:rounded-b-none [&>[data-slot]:not(:has(~[data-slot]))]:rounded-b-lg! [&>[data-slot]~[data-slot]]:rounded-t-none [&>[data-slot]~[data-slot]]:border-t-0"}},defaultVariants:{orientation:"horizontal"}});e.s(["ButtonGroup",0,function({className:e,orientation:t,...n}){return(0,r.jsx)("div",{role:"group","data-slot":"button-group","data-orientation":t,className:(0,l.cn)(a({orientation:t}),e),...n})}],208501);var i=e.i(191788),s=e.i(91762);let o=(0,n.cva)("group/field flex w-full gap-3 data-[invalid=true]:text-destructive",{variants:{orientation:{vertical:["flex-col [&>*]:w-full [&>.sr-only]:w-auto"],horizontal:["flex-row items-center","[&>[data-slot=field-label]]:flex-auto","has-[>[data-slot=field-content]]:items-start has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"],responsive:["flex-col [&>*]:w-full [&>.sr-only]:w-auto @md/field-group:flex-row @md/field-group:items-center @md/field-group:[&>*]:w-auto","@md/field-group:[&>[data-slot=field-label]]:flex-auto","@md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"]}},defaultVariants:{orientation:"vertical"}});e.s(["Field",0,function({className:e,orientation:t="vertical",...n}){return(0,r.jsx)("div",{role:"group","data-slot":"field","data-orientation":t,className:(0,l.cn)(o({orientation:t}),e),...n})},"FieldDescription",0,function({className:e,...t}){return(0,r.jsx)("p",{"data-slot":"field-description",className:(0,l.cn)("text-muted-foreground text-sm leading-normal font-normal group-has-[[data-orientation=horizontal]]/field:text-balance","last:mt-0 nth-last-2:-mt-1 [[data-variant=legend]+&]:-mt-1.5","[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4",e),...t})},"FieldLabel",0,function({className:e,...t}){return(0,r.jsx)(s.Label,{"data-slot":"field-label",className:(0,l.cn)("group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50","has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border [&>*]:data-[slot=field]:p-4","has-data-[state=checked]:bg-primary/5 has-data-[state=checked]:border-primary dark:has-data-[state=checked]:bg-primary/10",e),...t})}],621504),e.s([],48543);var c=e.i(810377),d=e.i(963934);let u=((t={}).checked="data-checked",t.unchecked="data-unchecked",t.disabled="data-disabled",t.readonly="data-readonly",t.required="data-required",t.valid="data-valid",t.invalid="data-invalid",t.touched="data-touched",t.dirty="data-dirty",t.filled="data-filled",t.focused="data-focused",t),h={checked:e=>e?{[u.checked]:""}:{[u.unchecked]:""},...c.transitionStatusMapping,...d.fieldValidityMapping};e.s(["stateAttributesMapping",0,h],562020);var m=e.i(950438),p=e.i(874519),f=e.i(562912);e.s(["CompositeItem",0,function(e){let{render:t,className:r,style:n,state:l=f.EMPTY_OBJECT,props:a=f.EMPTY_ARRAY,refs:i=f.EMPTY_ARRAY,metadata:s,stateAttributesMapping:o,tag:c="div",...d}=e,{compositeProps:u,compositeRef:h}=(0,p.useCompositeItem)({metadata:s});return(0,m.useRenderElement)(c,e,{state:l,ref:[...i,h],props:[u,...a,d],stateAttributesMapping:o})}],458325),e.i(350461);let x=i.createContext(void 0);e.s(["RadioGroupContext",0,x,"useRadioGroupContext",0,function(){return i.useContext(x)}],117385)},636989,e=>{"use strict";var t=e.i(391398);e.i(48543),e.i(350461);var r=e.i(191788),n=e.i(978054),l=e.i(95349),a=e.i(25104),i=e.i(931497),s=e.i(967529),o=e.i(475048),c=e.i(562912),d=e.i(562020),u=e.i(147652),h=e.i(950438),m=e.i(768802),p=e.i(405979),f=e.i(458325),x=e.i(663735),g=e.i(699140),v=e.i(630260),y=e.i(540574),b=e.i(112572),w=e.i(117385),k=e.i(567284),j=e.i(579907);let S=r.createContext(void 0),C=r.forwardRef(function(e,j){let{render:C,className:M,disabled:N=!1,readOnly:E=!1,required:R=!1,"aria-labelledby":D,value:A,inputRef:T,nativeButton:I=!1,id:L,style:P,...O}=e,z=(0,w.useRadioGroupContext)(),{disabled:F,readOnly:B,required:V,form:H,checkedValue:q,touched:U=!1,validation:K,name:G}=z??{},W=z?.setCheckedValue??c.NOOP,_=z?.setTouched??c.NOOP,Y=z?.registerControlRef??c.NOOP,$=z?.registerInputRef??c.NOOP,{setDirty:X,validityData:J,setTouched:Z,setFilled:Q,state:ee,disabled:et}=(0,x.useFieldRootContext)(),er=(0,g.useFieldItemContext)(),{labelId:en,getDescriptionProps:el}=(0,v.useLabelableContext)(),ea=et||er.disabled||F||N,ei=B||E,es=V||R,eo=z?q===A:""===A,ec=r.useMemo(()=>(0,k.serializeValue)(A),[A]),ed=r.useRef(null),eu=r.useRef(null),eh=(0,a.useStableCallback)(e=>{e&&Y(e,ea)}),em=(0,n.useMergedRefs)(T,eu,$);(0,l.useIsoLayoutEffect)(()=>{eu.current?.checked&&Q(!0)},[Q]),(0,l.useIsoLayoutEffect)(()=>{if(eu.current){if(ea&&eo)return void $(null);ed.current&&Y(ed.current,ea),$(eu.current)}},[eo,ea,Y,$]);let ep=(0,u.useBaseUiId)(),ef=(0,b.useLabelableId)({id:L,implicit:!1,controlRef:ed}),ex=I?void 0:ef,eg={role:"radio","aria-checked":eo,"aria-required":es||void 0,"aria-readonly":ei||void 0,"aria-labelledby":(0,y.useAriaLabelledBy)(D,en,eu,!I,ex),[p.ACTIVE_COMPOSITE_ITEM]:eo?"":void 0,id:I?ef:ep,onKeyDown(e){"Enter"===e.key&&e.preventDefault()},onClick(e){e.defaultPrevented||ea||ei||(e.preventDefault(),eu.current?.dispatchEvent(new PointerEvent("click",{bubbles:!0,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,altKey:e.altKey,metaKey:e.metaKey})))},onFocus(e){e.defaultPrevented||ea||ei||!U||(eu.current?.click(),_(!1))}},{getButtonProps:ev,buttonRef:ey}=(0,m.useButton)({disabled:ea,native:I}),eb={type:"radio",ref:em,form:H,id:ex,name:G,tabIndex:-1,style:G?i.visuallyHiddenInput:i.visuallyHidden,"aria-hidden":!0,...void 0!==A?{value:ec}:c.EMPTY_OBJECT,disabled:ea,checked:eo,required:es,readOnly:ei,onChange(e){if(e.nativeEvent.defaultPrevented||ea||ei||void 0===A)return;let t=(0,s.createChangeEventDetails)(o.REASONS.none,e.nativeEvent);t.isCanceled||(Z(!0),X(A!==J.initialValue),Q(!0),W(A,t))},onFocus(){ed.current?.focus()}},ew=r.useMemo(()=>({...ee,required:es,disabled:ea,readOnly:ei,checked:eo}),[ee,ea,ei,eo,es]),ek=void 0!==z,ej=[j,ed,ey,eh],eS=[eg,el,K?.getValidationProps??c.EMPTY_OBJECT,O,ev],eC=(0,h.useRenderElement)("span",e,{enabled:!ek,state:ew,ref:ej,props:eS,stateAttributesMapping:d.stateAttributesMapping});return(0,t.jsxs)(S.Provider,{value:ew,children:[ek?(0,t.jsx)(f.CompositeItem,{tag:"span",render:C,className:M,style:P,state:ew,refs:ej,props:eS,stateAttributesMapping:d.stateAttributesMapping}):eC,(0,t.jsx)("input",{...eb,suppressHydrationWarning:!0})]})});var M=e.i(118303),N=e.i(994142);let E=r.forwardRef(function(e,t){let{render:n,className:l,style:a,keepMounted:i=!1,...s}=e,o=function(){let e=r.useContext(S);if(void 0===e)throw Error((0,j.default)(52));return e}(),c=o.checked,{mounted:u,transitionStatus:m,setMounted:p}=(0,N.useTransitionStatus)(c),f={...o,transitionStatus:m},x=r.useRef(null),g=(0,h.useRenderElement)("span",e,{ref:[t,x],state:f,props:s,stateAttributesMapping:d.stateAttributesMapping});return((0,M.useOpenChangeComplete)({open:c,ref:x,onComplete(){c||p(!1)}}),i||u)?g:null});e.s(["Indicator",0,E,"Root",0,C],648646);var R=e.i(648646),R=R,D=e.i(176955),A=e.i(772610),T=e.i(317575),I=e.i(66149),L=e.i(560023),P=e.i(963934),O=e.i(935942),z=e.i(508430),F=e.i(138252);let B=[T.SHIFT],V=r.forwardRef(function(e,n){let{render:l,className:i,disabled:s,readOnly:o,required:c,onValueChange:d,value:h,defaultValue:m,form:p,name:f,inputRef:g,id:y,style:b,...k}=e,{setTouched:j,setFocused:S,shouldValidateOnChange:C,validationMode:M,name:N,disabled:E,state:R,validation:T,setDirty:V,setFilled:H,validityData:q}=(0,x.useFieldRootContext)(),{labelId:U}=(0,v.useLabelableContext)(),{clearErrors:K}=(0,z.useFormContext)(),G=(0,O.useFieldsetRootContext)(!0),W=E||s,_=N??f,Y=(0,u.useBaseUiId)(y),[$,X]=(0,D.useControlled)({controlled:h,default:m,name:"RadioGroup",state:"value"}),J=(0,a.useStableCallback)(d),Z=(0,a.useStableCallback)((e,t)=>{J(e,t),t.isCanceled||X(e)}),Q=r.useRef(null),ee=r.useRef(null),et=r.useRef(null);function er(e){let t;return g&&("function"==typeof g?t=g(e):g.current=e),ee.current=e,T.inputRef.current=e,t}let en=(0,a.useStableCallback)((e,t=!1)=>{if(e){if(t){Q.current===e&&(Q.current=null);return}null==Q.current&&(Q.current=e)}}),el=(0,a.useStableCallback)(e=>{if(!e||e.disabled)return;et.current||(et.current=e);let t=ee.current;if(e.checked||null==t||t.disabled)return er(e)}),ea=(0,a.useStableCallback)(()=>$??null);(0,L.useRegisterFieldControl)(Q,{id:Y,value:$,getValue:ea}),(0,F.useValueChanged)($,()=>{K(_),V($!==q.initialValue),H(null!=$),C()?T.commit($):T.commit($,!0);let e=et.current;null==$&&e&&!e.disabled&&er(e)});let[ei,es]=r.useState(!1),eo=k["aria-labelledby"]??U??G?.legendId,ec={...R,disabled:W??!1,required:c??!1,readOnly:o??!1},ed=r.useMemo(()=>({...R,checkedValue:$,disabled:W,form:p,validation:T,name:_,onValueChange:J,readOnly:o,registerControlRef:en,registerInputRef:el,required:c,setCheckedValue:Z,setTouched:es,touched:ei}),[$,W,p,T,R,_,J,o,en,el,c,Z,es,ei]);return(0,t.jsx)(w.RadioGroupContext.Provider,{value:ed,children:(0,t.jsx)(I.CompositeRoot,{render:l,className:i,style:b,state:ec,props:[{role:"radiogroup","aria-required":c||void 0,"aria-disabled":W||void 0,"aria-readonly":o||void 0,"aria-labelledby":eo,onFocus(){S(!0)},onBlur(e){(0,A.contains)(e.currentTarget,e.relatedTarget)||(j(!0),S(!1),"onBlur"===M&&T.commit($))},onKeyDownCapture(e){e.key.startsWith("Arrow")&&(j(!0),es(!0),S(!0))}},T.getValidationProps,k],refs:[n],stateAttributesMapping:P.fieldValidityMapping,enableHomeAndEndKeys:!1,modifierKeys:B})})});var H=e.i(353533);e.s(["RadioGroup",0,function({className:e,...r}){return(0,t.jsx)(V,{"data-slot":"radio-group",className:(0,H.cn)("grid w-full gap-2",e),...r})},"RadioGroupItem",0,function({className:e,...r}){return(0,t.jsx)(R.Root,{"data-slot":"radio-group-item",className:(0,H.cn)("group/radio-group-item peer relative flex aspect-square size-4 shrink-0 rounded-full border border-input outline-none after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary",e),...r,children:(0,t.jsx)(R.Indicator,{"data-slot":"radio-group-indicator",className:"flex size-4 items-center justify-center",children:(0,t.jsx)("span",{className:"absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2 rounded-full bg-primary-foreground"})})})}],636989)},170004,146341,59295,706277,269356,e=>{"use strict";let t;e.s(["TOAST_POSITIONS",0,["top-left","top-center","top-right","bottom-left","bottom-center","bottom-right"]],170004);var r,n,l,a,i,s,o,c,d,u,h,m,p,f,x,g,v,y,b,w=e.i(191788),k=e.i(730943);function j(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,w.useMemo)(()=>e=>{t.forEach(t=>t(e))},t)}let S="u">typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function C(e){let t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function M(e){return"nodeType"in e}function N(e){var t,r;return e?C(e)?e:M(e)&&null!=(t=null==(r=e.ownerDocument)?void 0:r.defaultView)?t:window:window}function E(e){let{Document:t}=N(e);return e instanceof t}function R(e){return!C(e)&&e instanceof N(e).HTMLElement}function D(e){return e instanceof N(e).SVGElement}function A(e){return e?C(e)?e.document:M(e)?E(e)?e:R(e)||D(e)?e.ownerDocument:document:document:document}let T=S?w.useLayoutEffect:w.useEffect;function I(e){let t=(0,w.useRef)(e);return T(()=>{t.current=e}),(0,w.useCallback)(function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];return null==t.current?void 0:t.current(...r)},[])}function L(){let e=(0,w.useRef)(null);return[(0,w.useCallback)((t,r)=>{e.current=setInterval(t,r)},[]),(0,w.useCallback)(()=>{null!==e.current&&(clearInterval(e.current),e.current=null)},[])]}function P(e,t){void 0===t&&(t=[e]);let r=(0,w.useRef)(e);return T(()=>{r.current!==e&&(r.current=e)},t),r}function O(e,t){let r=(0,w.useRef)();return(0,w.useMemo)(()=>{let t=e(r.current);return r.current=t,t},[...t])}function z(e){let t=I(e),r=(0,w.useRef)(null),n=(0,w.useCallback)(e=>{e!==r.current&&(null==t||t(e,r.current)),r.current=e},[]);return[r,n]}function F(e){let t=(0,w.useRef)();return(0,w.useEffect)(()=>{t.current=e},[e]),t.current}let B={};function V(e,t){return(0,w.useMemo)(()=>{if(t)return t;let r=null==B[e]?0:B[e]+1;return B[e]=r,e+"-"+r},[e,t])}function H(e){return function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),l=1;l<r;l++)n[l-1]=arguments[l];return n.reduce((t,r)=>{for(let[n,l]of Object.entries(r)){let r=t[n];null!=r&&(t[n]=r+e*l)}return t},{...t})}}let q=H(1),U=H(-1);function K(e){if(!e)return!1;let{KeyboardEvent:t}=N(e.target);return t&&e instanceof t}function G(e){if(function(e){if(!e)return!1;let{TouchEvent:t}=N(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){let{clientX:t,clientY:r}=e.touches[0];return{x:t,y:r}}else if(e.changedTouches&&e.changedTouches.length){let{clientX:t,clientY:r}=e.changedTouches[0];return{x:t,y:r}}}return"clientX"in e&&"clientY"in e?{x:e.clientX,y:e.clientY}:null}let W=Object.freeze({Translate:{toString(e){if(!e)return;let{x:t,y:r}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(r?Math.round(r):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;let{scaleX:t,scaleY:r}=e;return"scaleX("+t+") scaleY("+r+")"}},Transform:{toString(e){if(e)return[W.Translate.toString(e),W.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:r,easing:n}=e;return t+" "+r+"ms "+n}}}),_="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function Y(e){return e.matches(_)?e:e.querySelector(_)}e.s(["CSS",0,W,"add",0,q,"canUseDOM",0,S,"findFirstFocusableNode",0,Y,"getEventCoordinates",0,G,"getOwnerDocument",0,A,"getWindow",0,N,"isDocument",0,E,"isHTMLElement",0,R,"isKeyboardEvent",0,K,"isNode",0,M,"isSVGElement",0,D,"isWindow",0,C,"subtract",0,U,"useCombinedRefs",0,j,"useEvent",0,I,"useInterval",0,L,"useIsomorphicLayoutEffect",0,T,"useLatestValue",0,P,"useLazyMemo",0,O,"useNodeRef",0,z,"usePrevious",0,F,"useUniqueId",0,V],146341);let $={display:"none"};function X(e){let{id:t,value:r}=e;return w.default.createElement("div",{id:t,style:$},r)}function J(e){let{id:t,announcement:r,ariaLiveType:n="assertive"}=e;return w.default.createElement("div",{id:t,style:{position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":n,"aria-atomic":!0},r)}let Z=(0,w.createContext)(null),Q={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},ee={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:r}=e;return r?"Draggable item "+t.id+" was moved over droppable area "+r.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:r}=e;return r?"Draggable item "+t.id+" was dropped over droppable area "+r.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function et(e){var t;let r,{announcements:n=ee,container:l,hiddenTextDescribedById:a,screenReaderInstructions:i=Q}=e,{announce:s,announcement:o}=function(){let[e,t]=(0,w.useState)("");return{announce:(0,w.useCallback)(e=>{null!=e&&t(e)},[]),announcement:e}}(),c=V("DndLiveRegion"),[d,u]=(0,w.useState)(!1);if((0,w.useEffect)(()=>{u(!0)},[]),t=(0,w.useMemo)(()=>({onDragStart(e){let{active:t}=e;s(n.onDragStart({active:t}))},onDragMove(e){let{active:t,over:r}=e;n.onDragMove&&s(n.onDragMove({active:t,over:r}))},onDragOver(e){let{active:t,over:r}=e;s(n.onDragOver({active:t,over:r}))},onDragEnd(e){let{active:t,over:r}=e;s(n.onDragEnd({active:t,over:r}))},onDragCancel(e){let{active:t,over:r}=e;s(n.onDragCancel({active:t,over:r}))}}),[s,n]),r=(0,w.useContext)(Z),(0,w.useEffect)(()=>{if(!r)throw Error("useDndMonitor must be used within a children of <DndContext>");return r(t)},[t,r]),!d)return null;let h=w.default.createElement(w.default.Fragment,null,w.default.createElement(X,{id:a,value:i.draggable}),w.default.createElement(J,{id:c,announcement:o}));return l?(0,k.createPortal)(h,l):h}function er(){}(r=u||(u={})).DragStart="dragStart",r.DragMove="dragMove",r.DragEnd="dragEnd",r.DragCancel="dragCancel",r.DragOver="dragOver",r.RegisterDroppable="registerDroppable",r.SetDroppableDisabled="setDroppableDisabled",r.UnregisterDroppable="unregisterDroppable";let en=Object.freeze({x:0,y:0});function el(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function ea(e,t){let{data:{value:r}}=e,{data:{value:n}}=t;return r-n}function ei(e,t){let{data:{value:r}}=e,{data:{value:n}}=t;return n-r}function es(e){let{left:t,top:r,height:n,width:l}=e;return[{x:t,y:r},{x:t+l,y:r},{x:t,y:r+n},{x:t+l,y:r+n}]}function eo(e,t){if(!e||0===e.length)return null;let[r]=e;return t?r[t]:r}function ec(e,t,r){return void 0===t&&(t=e.left),void 0===r&&(r=e.top),{x:t+.5*e.width,y:r+.5*e.height}}let ed=e=>{let{collisionRect:t,droppableRects:r,droppableContainers:n}=e,l=[];for(let e of n){let{id:n}=e,a=r.get(n);if(a){let r=function(e,t){let r=Math.max(t.top,e.top),n=Math.max(t.left,e.left),l=Math.min(t.left+t.width,e.left+e.width),a=Math.min(t.top+t.height,e.top+e.height);if(n<l&&r<a){let i=t.width*t.height,s=e.width*e.height,o=(l-n)*(a-r);return Number((o/(i+s-o)).toFixed(4))}return 0}(a,t);r>0&&l.push({id:n,data:{droppableContainer:e,value:r}})}}return l.sort(ei)};function eu(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:en}let eh=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return r.reduce((e,t)=>({...e,top:e.top+ +t.y,bottom:e.bottom+ +t.y,left:e.left+ +t.x,right:e.right+ +t.x}),{...e})},em={ignoreTransform:!1};function ep(e,t){void 0===t&&(t=em);let r=e.getBoundingClientRect();if(t.ignoreTransform){let{transform:t,transformOrigin:n}=N(e).getComputedStyle(e);t&&(r=function(e,t,r){let n=function(e){if(e.startsWith("matrix3d(")){let t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){let t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}(t);if(!n)return e;let{scaleX:l,scaleY:a,x:i,y:s}=n,o=e.left-i-(1-l)*parseFloat(r),c=e.top-s-(1-a)*parseFloat(r.slice(r.indexOf(" ")+1)),d=l?e.width/l:e.width,u=a?e.height/a:e.height;return{width:d,height:u,top:c,right:o+d,bottom:c+u,left:o}}(r,t,n))}let{top:n,left:l,width:a,height:i,bottom:s,right:o}=r;return{top:n,left:l,width:a,height:i,bottom:s,right:o}}function ef(e){return ep(e,{ignoreTransform:!0})}function ex(e,t){let r=[];return e?function n(l){var a,i;let s;if(null!=t&&r.length>=t||!l)return r;if(E(l)&&null!=l.scrollingElement&&!r.includes(l.scrollingElement))return r.push(l.scrollingElement),r;if(!R(l)||D(l)||r.includes(l))return r;let o=N(e).getComputedStyle(l);return(l!==e&&(void 0===(a=o)&&(a=N(l).getComputedStyle(l)),s=/(auto|scroll|overlay)/,["overflow","overflowX","overflowY"].some(e=>{let t=a[e];return"string"==typeof t&&s.test(t)}))&&r.push(l),void 0===(i=o)&&(i=N(l).getComputedStyle(l)),"fixed"===i.position)?r:n(l.parentNode)}(e):r}function eg(e){let[t]=ex(e,1);return null!=t?t:null}function ev(e){return S&&e?C(e)?e:M(e)?E(e)||e===A(e).scrollingElement?window:R(e)?e:null:null:null}function ey(e){return C(e)?e.scrollX:e.scrollLeft}function eb(e){return C(e)?e.scrollY:e.scrollTop}function ew(e){return{x:ey(e),y:eb(e)}}function ek(e){return!!S&&!!e&&e===document.scrollingElement}function ej(e){let t={x:0,y:0},r=ek(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},n={x:e.scrollWidth-r.width,y:e.scrollHeight-r.height},l=e.scrollTop<=t.y,a=e.scrollLeft<=t.x;return{isTop:l,isLeft:a,isBottom:e.scrollTop>=n.y,isRight:e.scrollLeft>=n.x,maxScroll:n,minScroll:t}}(n=h||(h={}))[n.Forward=1]="Forward",n[n.Backward=-1]="Backward";let eS={x:.2,y:.2};function eC(e){return e.reduce((e,t)=>q(e,ew(t)),en)}let eM=[["x",["left","right"],function(e){return e.reduce((e,t)=>e+ey(t),0)}],["y",["top","bottom"],function(e){return e.reduce((e,t)=>e+eb(t),0)}]];class eN{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=ex(t),n=eC(r);for(const[t,l,a]of(this.rect={...e},this.width=e.width,this.height=e.height,eM))for(const e of l)Object.defineProperty(this,e,{get:()=>{let l=a(r),i=n[t]-l;return this.rect[e]+i},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class eE{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)})},this.target=e}add(e,t,r){var n;null==(n=this.target)||n.addEventListener(e,t,r),this.listeners.push([e,t,r])}}function eR(e,t){let r=Math.abs(e.x),n=Math.abs(e.y);return"number"==typeof t?Math.sqrt(r**2+n**2)>t:"x"in t&&"y"in t?r>t.x&&n>t.y:"x"in t?r>t.x:"y"in t&&n>t.y}function eD(e){e.preventDefault()}function eA(e){e.stopPropagation()}(l=m||(m={})).Click="click",l.DragStart="dragstart",l.Keydown="keydown",l.ContextMenu="contextmenu",l.Resize="resize",l.SelectionChange="selectionchange",l.VisibilityChange="visibilitychange",(a=p||(p={})).Space="Space",a.Down="ArrowDown",a.Right="ArrowRight",a.Left="ArrowLeft",a.Up="ArrowUp",a.Esc="Escape",a.Enter="Enter",a.Tab="Tab";let eT={start:[p.Space,p.Enter],cancel:[p.Esc],end:[p.Space,p.Enter,p.Tab]},eI=(e,t)=>{let{currentCoordinates:r}=t;switch(e.code){case p.Right:return{...r,x:r.x+25};case p.Left:return{...r,x:r.x-25};case p.Down:return{...r,y:r.y+25};case p.Up:return{...r,y:r.y-25}}};class eL{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new eE(A(t)),this.windowListeners=new eE(N(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(m.Resize,this.handleCancel),this.windowListeners.add(m.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(m.Keydown,this.handleKeyDown))}handleStart(){let{activeNode:e,onStart:t}=this.props,r=e.node.current;r&&function(e,t){if(void 0===t&&(t=ep),!e)return;let{top:r,left:n,bottom:l,right:a}=t(e);eg(e)&&(l<=0||a<=0||r>=window.innerHeight||n>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}(r),t(en)}handleKeyDown(e){if(K(e)){let{active:t,context:r,options:n}=this.props,{keyboardCodes:l=eT,coordinateGetter:a=eI,scrollBehavior:i="smooth"}=n,{code:s}=e;if(l.end.includes(s))return void this.handleEnd(e);if(l.cancel.includes(s))return void this.handleCancel(e);let{collisionRect:o}=r.current,c=o?{x:o.left,y:o.top}:en;this.referenceCoordinates||(this.referenceCoordinates=c);let d=a(e,{active:t,context:r.current,currentCoordinates:c});if(d){let t=U(d,c),n={x:0,y:0},{scrollableAncestors:l}=r.current;for(let r of l){let l=e.code,{isTop:a,isRight:s,isLeft:o,isBottom:c,maxScroll:u,minScroll:h}=ej(r),m=function(e){if(e===document.scrollingElement){let{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}let{top:t,left:r,right:n,bottom:l}=e.getBoundingClientRect();return{top:t,left:r,right:n,bottom:l,width:e.clientWidth,height:e.clientHeight}}(r),f={x:Math.min(l===p.Right?m.right-m.width/2:m.right,Math.max(l===p.Right?m.left:m.left+m.width/2,d.x)),y:Math.min(l===p.Down?m.bottom-m.height/2:m.bottom,Math.max(l===p.Down?m.top:m.top+m.height/2,d.y))},x=l===p.Right&&!s||l===p.Left&&!o,g=l===p.Down&&!c||l===p.Up&&!a;if(x&&f.x!==d.x){let e=r.scrollLeft+t.x,a=l===p.Right&&e<=u.x||l===p.Left&&e>=h.x;if(a&&!t.y)return void r.scrollTo({left:e,behavior:i});a?n.x=r.scrollLeft-e:n.x=l===p.Right?r.scrollLeft-u.x:r.scrollLeft-h.x,n.x&&r.scrollBy({left:-n.x,behavior:i});break}if(g&&f.y!==d.y){let e=r.scrollTop+t.y,a=l===p.Down&&e<=u.y||l===p.Up&&e>=h.y;if(a&&!t.x)return void r.scrollTo({top:e,behavior:i});a?n.y=r.scrollTop-e:n.y=l===p.Down?r.scrollTop-u.y:r.scrollTop-h.y,n.y&&r.scrollBy({top:-n.y,behavior:i});break}}this.handleMove(e,q(U(d,this.referenceCoordinates),n))}}}handleMove(e,t){let{onMove:r}=this.props;e.preventDefault(),r(t)}handleEnd(e){let{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){let{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function eP(e){return!!(e&&"distance"in e)}function eO(e){return!!(e&&"delay"in e)}eL.activators=[{eventName:"onKeyDown",handler:(e,t,r)=>{let{keyboardCodes:n=eT,onActivation:l}=t,{active:a}=r,{code:i}=e.nativeEvent;if(n.start.includes(i)){let t=a.activatorNode.current;return(!t||e.target===t)&&(e.preventDefault(),null==l||l({event:e.nativeEvent}),!0)}return!1}}];class ez{constructor(e,t,r){var n;void 0===r&&(r=function(e){let{EventTarget:t}=N(e);return e instanceof t?e:A(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:l}=e,{target:a}=l;this.props=e,this.events=t,this.document=A(a),this.documentListeners=new eE(this.document),this.listeners=new eE(r),this.windowListeners=new eE(N(a)),this.initialCoordinates=null!=(n=G(l))?n:en,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){let{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:r}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(m.Resize,this.handleCancel),this.windowListeners.add(m.DragStart,eD),this.windowListeners.add(m.VisibilityChange,this.handleCancel),this.windowListeners.add(m.ContextMenu,eD),this.documentListeners.add(m.Keydown,this.handleKeydown),t){if(null!=r&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(eO(t)){this.timeoutId=setTimeout(this.handleStart,t.delay),this.handlePending(t);return}if(eP(t))return void this.handlePending(t)}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,t){let{active:r,onPending:n}=this.props;n(r,e,this.initialCoordinates,t)}handleStart(){let{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(m.Click,eA,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(m.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;let{activated:r,initialCoordinates:n,props:l}=this,{onMove:a,options:{activationConstraint:i}}=l;if(!n)return;let s=null!=(t=G(e))?t:en,o=U(n,s);if(!r&&i){if(eP(i)){if(null!=i.tolerance&&eR(o,i.tolerance))return this.handleCancel();if(eR(o,i.distance))return this.handleStart()}return eO(i)&&eR(o,i.tolerance)?this.handleCancel():void this.handlePending(i,o)}e.cancelable&&e.preventDefault(),a(s)}handleEnd(){let{onAbort:e,onEnd:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleCancel(){let{onAbort:e,onCancel:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleKeydown(e){e.code===p.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}let eF={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class eB extends ez{constructor(e){const{event:t}=e;super(e,eF,A(t.target))}}eB.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:n}=t;return!!r.isPrimary&&0===r.button&&(null==n||n({event:r}),!0)}}];(i=f||(f={}))[i.RightClick=2]="RightClick";(s=x||(x={}))[s.Pointer=0]="Pointer",s[s.DraggableRect=1]="DraggableRect",(o=g||(g={}))[o.TreeOrder=0]="TreeOrder",o[o.ReversedTreeOrder=1]="ReversedTreeOrder";let eV={x:{[h.Backward]:!1,[h.Forward]:!1},y:{[h.Backward]:!1,[h.Forward]:!1}};(c=v||(v={}))[c.Always=0]="Always",c[c.BeforeDragging=1]="BeforeDragging",c[c.WhileDragging=2]="WhileDragging",(y||(y={})).Optimized="optimized";let eH=new Map;function eq(e,t){return O(r=>e?r||("function"==typeof t?t(e):e):null,[t,e])}function eU(e){let{callback:t,disabled:r}=e,n=I(t),l=(0,w.useMemo)(()=>{if(r||"u"<typeof window||void 0===window.ResizeObserver)return;let{ResizeObserver:e}=window;return new e(n)},[r]);return(0,w.useEffect)(()=>()=>null==l?void 0:l.disconnect(),[l]),l}function eK(e){return new eN(ep(e),e)}function eG(e,t,r){void 0===t&&(t=eK);let[n,l]=(0,w.useState)(null);function a(){l(n=>{if(!e)return null;if(!1===e.isConnected){var l;return null!=(l=null!=n?n:r)?l:null}let a=t(e);return JSON.stringify(n)===JSON.stringify(a)?n:a})}let i=function(e){let{callback:t,disabled:r}=e,n=I(t),l=(0,w.useMemo)(()=>{if(r||"u"<typeof window||void 0===window.MutationObserver)return;let{MutationObserver:e}=window;return new e(n)},[n,r]);return(0,w.useEffect)(()=>()=>null==l?void 0:l.disconnect(),[l]),l}({callback(t){if(e)for(let r of t){let{type:t,target:n}=r;if("childList"===t&&n instanceof HTMLElement&&n.contains(e)){a();break}}}}),s=eU({callback:a});return T(()=>{a(),e?(null==s||s.observe(e),null==i||i.observe(document.body,{childList:!0,subtree:!0})):(null==s||s.disconnect(),null==i||i.disconnect())},[e]),n}let eW=[];function e_(e,t){void 0===t&&(t=[]);let r=(0,w.useRef)(null);return(0,w.useEffect)(()=>{r.current=null},t),(0,w.useEffect)(()=>{let t=e!==en;t&&!r.current&&(r.current=e),!t&&r.current&&(r.current=null)},[e]),r.current?U(e,r.current):en}function eY(e){return(0,w.useMemo)(()=>{let t,r;return e?(t=e.innerWidth,{top:0,left:0,right:t,bottom:r=e.innerHeight,width:t,height:r}):null},[e])}let e$=[],eX=[{sensor:eB,options:{}},{sensor:eL,options:{}}],eJ={current:{}},eZ={draggable:{measure:ef},droppable:{measure:ef,strategy:v.WhileDragging,frequency:y.Optimized},dragOverlay:{measure:ep}};class eQ extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){var t,r;return null!=(t=null==(r=this.get(e))?void 0:r.node.current)?t:void 0}}let e0={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new eQ,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:er},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:eZ,measureDroppableContainers:er,windowRect:null,measuringScheduled:!1},e1={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:er,draggableNodes:new Map,over:null,measureDroppableContainers:er},e2=(0,w.createContext)(e1),e3=(0,w.createContext)(e0);function e5(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new eQ}}}function e4(e,t){switch(t.type){case u.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case u.DragMove:if(null==e.draggable.active)return e;return{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case u.DragEnd:case u.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case u.RegisterDroppable:{let{element:r}=t,{id:n}=r,l=new eQ(e.droppable.containers);return l.set(n,r),{...e,droppable:{...e.droppable,containers:l}}}case u.SetDroppableDisabled:{let{id:r,key:n,disabled:l}=t,a=e.droppable.containers.get(r);if(!a||n!==a.key)return e;let i=new eQ(e.droppable.containers);return i.set(r,{...a,disabled:l}),{...e,droppable:{...e.droppable,containers:i}}}case u.UnregisterDroppable:{let{id:r,key:n}=t,l=e.droppable.containers.get(r);if(!l||n!==l.key)return e;let a=new eQ(e.droppable.containers);return a.delete(r),{...e,droppable:{...e.droppable,containers:a}}}default:return e}}function e6(e){let{disabled:t}=e,{active:r,activatorEvent:n,draggableNodes:l}=(0,w.useContext)(e2),a=F(n),i=F(null==r?void 0:r.id);return(0,w.useEffect)(()=>{if(!t&&!n&&a&&null!=i){if(!K(a)||document.activeElement===a.target)return;let e=l.get(i);if(!e)return;let{activatorNode:t,node:r}=e;(t.current||r.current)&&requestAnimationFrame(()=>{for(let e of[t.current,r.current]){if(!e)continue;let t=Y(e);if(t){t.focus();break}}})}},[n,t,l,i,a]),null}let e8=(0,w.createContext)({...en,scaleX:1,scaleY:1});(d=b||(b={}))[d.Uninitialized=0]="Uninitialized",d[d.Initializing=1]="Initializing",d[d.Initialized=2]="Initialized";let e9=(0,w.memo)(function(e){var t,r,n,l,a,i,s,o;let c,d,m,p,f,y,j,C,{id:M,accessibility:E,autoScroll:D=!0,children:A,sensors:I=eX,collisionDetection:B=ed,measuring:H,modifiers:U,...K}=e,[W,_]=(0,w.useReducer)(e4,void 0,e5),[Y,$]=function(){let[e]=(0,w.useState)(()=>new Set),t=(0,w.useCallback)(t=>(e.add(t),()=>e.delete(t)),[e]);return[(0,w.useCallback)(t=>{let{type:r,event:n}=t;e.forEach(e=>{var t;return null==(t=e[r])?void 0:t.call(e,n)})},[e]),t]}(),[X,J]=(0,w.useState)(b.Uninitialized),Q=X===b.Initialized,{draggable:{active:ee,nodes:er,translate:el},droppable:{containers:ea}}=W,ei=null!=ee?er.get(ee):null,es=(0,w.useRef)({initial:null,translated:null}),ec=(0,w.useMemo)(()=>{var e;return null!=ee?{id:ee,data:null!=(e=null==ei?void 0:ei.data)?e:eJ,rect:es}:null},[ee,ei]),em=(0,w.useRef)(null),[ef,ey]=(0,w.useState)(null),[eb,eM]=(0,w.useState)(null),eE=P(K,Object.values(K)),eR=V("DndDescribedBy",M),eD=(0,w.useMemo)(()=>ea.getEnabled(),[ea]),eA=(0,w.useMemo)(()=>({draggable:{...eZ.draggable,...null==H?void 0:H.draggable},droppable:{...eZ.droppable,...null==H?void 0:H.droppable},dragOverlay:{...eZ.dragOverlay,...null==H?void 0:H.dragOverlay}}),[null==H?void 0:H.draggable,null==H?void 0:H.droppable,null==H?void 0:H.dragOverlay]),{droppableRects:eT,measureDroppableContainers:eI,measuringScheduled:eL}=function(e,t){let{dragging:r,dependencies:n,config:l}=t,[a,i]=(0,w.useState)(null),{frequency:s,measure:o,strategy:c}=l,d=(0,w.useRef)(e),u=function(){switch(c){case v.Always:return!1;case v.BeforeDragging:return r;default:return!r}}(),h=P(u),m=(0,w.useCallback)(function(e){void 0===e&&(e=[]),h.current||i(t=>null===t?e:t.concat(e.filter(e=>!t.includes(e))))},[h]),p=(0,w.useRef)(null),f=O(t=>{if(u&&!r)return eH;if(!t||t===eH||d.current!==e||null!=a){let t=new Map;for(let r of e){if(!r)continue;if(a&&a.length>0&&!a.includes(r.id)&&r.rect.current){t.set(r.id,r.rect.current);continue}let e=r.node.current,n=e?new eN(o(e),e):null;r.rect.current=n,n&&t.set(r.id,n)}return t}return t},[e,a,r,u,o]);return(0,w.useEffect)(()=>{d.current=e},[e]),(0,w.useEffect)(()=>{u||m()},[r,u]),(0,w.useEffect)(()=>{a&&a.length>0&&i(null)},[JSON.stringify(a)]),(0,w.useEffect)(()=>{u||"number"!=typeof s||null!==p.current||(p.current=setTimeout(()=>{m(),p.current=null},s))},[s,u,m,...n]),{droppableRects:f,measureDroppableContainers:m,measuringScheduled:null!=a}}(eD,{dragging:Q,dependencies:[el.x,el.y],config:eA.droppable}),eP=O(e=>{var t;return null==ee?null:null!=(t=null!=f?f:e)?t:null},[f=(p=null!=ee?er.get(ee):void 0)?p.node.current:null,ee]),eO=(0,w.useMemo)(()=>eb?G(eb):null,[eb]),ez=(c=(null==ef?void 0:ef.autoScrollEnabled)===!1,d="object"==typeof D?!1===D.enabled:!1===D,m=Q&&!c&&!d,"object"==typeof D?{...D,enabled:m}:{enabled:m}),eF=eq(eP,eA.draggable.measure);!function(e){let{activeNode:t,measure:r,initialRect:n,config:l=!0}=e,a=(0,w.useRef)(!1),{x:i,y:s}="boolean"==typeof l?{x:l,y:l}:l;T(()=>{if(!i&&!s||!t){a.current=!1;return}if(a.current||!n)return;let e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;let l=eu(r(e),n);if(i||(l.x=0),s||(l.y=0),a.current=!0,Math.abs(l.x)>0||Math.abs(l.y)>0){let t=eg(e);t&&t.scrollBy({top:l.y,left:l.x})}},[t,i,s,n,r])}({activeNode:null!=ee?er.get(ee):null,config:ez.layoutShiftCompensation,initialRect:eF,measure:eA.draggable.measure});let eB=eG(eP,eA.draggable.measure,eF),eK=eG(eP?eP.parentElement:null),eQ=(0,w.useRef)({activatorEvent:null,active:null,activeNode:eP,collisionRect:null,collisions:null,droppableRects:eT,draggableNodes:er,draggingNode:null,draggingNodeRect:null,droppableContainers:ea,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),e0=ea.getNodeFor(null==(t=eQ.current.over)?void 0:t.id),e1=function(e){let{measure:t}=e,[r,n]=(0,w.useState)(null),l=eU({callback:(0,w.useCallback)(e=>{for(let{target:r}of e)if(R(r)){n(e=>{let n=t(r);return e?{...e,width:n.width,height:n.height}:n});break}},[t])}),[a,i]=z((0,w.useCallback)(e=>{let r=function(e){if(!e)return null;if(e.children.length>1)return e;let t=e.children[0];return R(t)?t:e}(e);null==l||l.disconnect(),r&&(null==l||l.observe(r)),n(r?t(r):null)},[t,l]));return(0,w.useMemo)(()=>({nodeRef:a,rect:r,setRef:i}),[r,a,i])}({measure:eA.dragOverlay.measure}),e9=null!=(r=e1.nodeRef.current)?r:eP,e7=Q?null!=(n=e1.rect)?n:eB:null,te=!!(e1.nodeRef.current&&e1.rect),tt=(y=eq(a=te?null:eB),eu(a,y)),tr=eY(e9?N(e9):null),tn=(i=Q?null!=e0?e0:eP:null,j=(0,w.useRef)(i),C=O(e=>i?e&&e!==eW&&i&&j.current&&i.parentNode===j.current.parentNode?e:ex(i):eW,[i]),(0,w.useEffect)(()=>{j.current=i},[i]),C),tl=function(e,t){void 0===t&&(t=ep);let[r]=e,n=eY(r?N(r):null),[l,a]=(0,w.useState)(e$);function i(){a(()=>e.length?e.map(e=>ek(e)?n:new eN(t(e),e)):e$)}let s=eU({callback:i});return T(()=>{null==s||s.disconnect(),i(),e.forEach(e=>null==s?void 0:s.observe(e))},[e]),l}(tn),ta=function(e,t){let{transform:r,...n}=t;return null!=e&&e.length?e.reduce((e,t)=>t({transform:e,...n}),r):r}(U,{transform:{x:el.x-tt.x,y:el.y-tt.y,scaleX:1,scaleY:1},activatorEvent:eb,active:ec,activeNodeRect:eB,containerNodeRect:eK,draggingNodeRect:e7,over:eQ.current.over,overlayNodeRect:e1.rect,scrollableAncestors:tn,scrollableAncestorRects:tl,windowRect:tr}),ti=eO?q(eO,el):null,ts=function(e){let[t,r]=(0,w.useState)(null),n=(0,w.useRef)(e),l=(0,w.useCallback)(e=>{let t=ev(e.target);t&&r(e=>e?(e.set(t,ew(t)),new Map(e)):null)},[]);return(0,w.useEffect)(()=>{let t=n.current;if(e!==t){a(t);let i=e.map(e=>{let t=ev(e);return t?(t.addEventListener("scroll",l,{passive:!0}),[t,ew(t)]):null}).filter(e=>null!=e);r(i.length?new Map(i):null),n.current=e}return()=>{a(e),a(t)};function a(e){e.forEach(e=>{let t=ev(e);null==t||t.removeEventListener("scroll",l)})}},[l,e]),(0,w.useMemo)(()=>e.length?t?Array.from(t.values()).reduce((e,t)=>q(e,t),en):eC(e):en,[e,t])}(tn),to=e_(ts),tc=e_(ts,[eB]),td=q(ta,to),tu=e7?eh(e7,ta):null,th=ec&&tu?B({active:ec,collisionRect:tu,droppableRects:eT,droppableContainers:eD,pointerCoordinates:ti}):null,tm=eo(th,"id"),[tp,tf]=(0,w.useState)(null),tx=(s=te?ta:q(ta,tc),o=null!=(l=null==tp?void 0:tp.rect)?l:null,{...s,scaleX:o&&eB?o.width/eB.width:1,scaleY:o&&eB?o.height/eB.height:1}),tg=(0,w.useRef)(null),tv=(0,w.useCallback)((e,t)=>{let{sensor:r,options:n}=t;if(null==em.current)return;let l=er.get(em.current);if(!l)return;let a=e.nativeEvent,i=new r({active:em.current,activeNode:l,event:a,options:n,context:eQ,onAbort(e){if(!er.get(e))return;let{onDragAbort:t}=eE.current,r={id:e};null==t||t(r),Y({type:"onDragAbort",event:r})},onPending(e,t,r,n){if(!er.get(e))return;let{onDragPending:l}=eE.current,a={id:e,constraint:t,initialCoordinates:r,offset:n};null==l||l(a),Y({type:"onDragPending",event:a})},onStart(e){let t=em.current;if(null==t)return;let r=er.get(t);if(!r)return;let{onDragStart:n}=eE.current,l={activatorEvent:a,active:{id:t,data:r.data,rect:es}};(0,k.unstable_batchedUpdates)(()=>{null==n||n(l),J(b.Initializing),_({type:u.DragStart,initialCoordinates:e,active:t}),Y({type:"onDragStart",event:l}),ey(tg.current),eM(a)})},onMove(e){_({type:u.DragMove,coordinates:e})},onEnd:s(u.DragEnd),onCancel:s(u.DragCancel)});function s(e){return async function(){let{active:t,collisions:r,over:n,scrollAdjustedTranslate:l}=eQ.current,i=null;if(t&&l){let{cancelDrop:s}=eE.current;i={activatorEvent:a,active:t,collisions:r,delta:l,over:n},e===u.DragEnd&&"function"==typeof s&&await Promise.resolve(s(i))&&(e=u.DragCancel)}em.current=null,(0,k.unstable_batchedUpdates)(()=>{_({type:e}),J(b.Uninitialized),tf(null),ey(null),eM(null),tg.current=null;let t=e===u.DragEnd?"onDragEnd":"onDragCancel";if(i){let e=eE.current[t];null==e||e(i),Y({type:t,event:i})}})}}tg.current=i},[er]),ty=(0,w.useCallback)((e,t)=>(r,n)=>{let l=r.nativeEvent,a=er.get(n);null!==em.current||!a||l.dndKit||l.defaultPrevented||!0===e(r,t.options,{active:a})&&(l.dndKit={capturedBy:t.sensor},em.current=n,tv(r,t))},[er,tv]),tb=(0,w.useMemo)(()=>I.reduce((e,t)=>{let{sensor:r}=t;return[...e,...r.activators.map(e=>({eventName:e.eventName,handler:ty(e.handler,t)}))]},[]),[I,ty]);(0,w.useEffect)(()=>{if(!S)return;let e=I.map(e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()});return()=>{for(let t of e)null==t||t()}},I.map(e=>{let{sensor:t}=e;return t})),T(()=>{eB&&X===b.Initializing&&J(b.Initialized)},[eB,X]),(0,w.useEffect)(()=>{let{onDragMove:e}=eE.current,{active:t,activatorEvent:r,collisions:n,over:l}=eQ.current;if(!t||!r)return;let a={active:t,activatorEvent:r,collisions:n,delta:{x:td.x,y:td.y},over:l};(0,k.unstable_batchedUpdates)(()=>{null==e||e(a),Y({type:"onDragMove",event:a})})},[td.x,td.y]),(0,w.useEffect)(()=>{let{active:e,activatorEvent:t,collisions:r,droppableContainers:n,scrollAdjustedTranslate:l}=eQ.current;if(!e||null==em.current||!t||!l)return;let{onDragOver:a}=eE.current,i=n.get(tm),s=i&&i.rect.current?{id:i.id,rect:i.rect.current,data:i.data,disabled:i.disabled}:null,o={active:e,activatorEvent:t,collisions:r,delta:{x:l.x,y:l.y},over:s};(0,k.unstable_batchedUpdates)(()=>{tf(s),null==a||a(o),Y({type:"onDragOver",event:o})})},[tm]),T(()=>{eQ.current={activatorEvent:eb,active:ec,activeNode:eP,collisionRect:tu,collisions:th,droppableRects:eT,draggableNodes:er,draggingNode:e9,draggingNodeRect:e7,droppableContainers:ea,over:tp,scrollableAncestors:tn,scrollAdjustedTranslate:td},es.current={initial:e7,translated:tu}},[ec,eP,th,tu,er,e9,e7,eT,ea,tp,tn,td]),function(e){let{acceleration:t,activator:r=x.Pointer,canScroll:n,draggingRect:l,enabled:a,interval:i=5,order:s=g.TreeOrder,pointerCoordinates:o,scrollableAncestors:c,scrollableAncestorRects:d,delta:u,threshold:m}=e,p=function(e){let{delta:t,disabled:r}=e,n=F(t);return O(e=>{if(r||!n||!e)return eV;let l={x:Math.sign(t.x-n.x),y:Math.sign(t.y-n.y)};return{x:{[h.Backward]:e.x[h.Backward]||-1===l.x,[h.Forward]:e.x[h.Forward]||1===l.x},y:{[h.Backward]:e.y[h.Backward]||-1===l.y,[h.Forward]:e.y[h.Forward]||1===l.y}}},[r,t,n])}({delta:u,disabled:!a}),[f,v]=L(),y=(0,w.useRef)({x:0,y:0}),b=(0,w.useRef)({x:0,y:0}),k=(0,w.useMemo)(()=>{switch(r){case x.Pointer:return o?{top:o.y,bottom:o.y,left:o.x,right:o.x}:null;case x.DraggableRect:return l}},[r,l,o]),j=(0,w.useRef)(null),S=(0,w.useCallback)(()=>{let e=j.current;if(!e)return;let t=y.current.x*b.current.x,r=y.current.y*b.current.y;e.scrollBy(t,r)},[]),C=(0,w.useMemo)(()=>s===g.TreeOrder?[...c].reverse():c,[s,c]);(0,w.useEffect)(()=>{if(!a||!c.length||!k)return void v();for(let e of C){if((null==n?void 0:n(e))===!1)continue;let r=d[c.indexOf(e)];if(!r)continue;let{direction:l,speed:a}=function(e,t,r,n,l){let{top:a,left:i,right:s,bottom:o}=r;void 0===n&&(n=10),void 0===l&&(l=eS);let{isTop:c,isBottom:d,isLeft:u,isRight:m}=ej(e),p={x:0,y:0},f={x:0,y:0},x={height:t.height*l.y,width:t.width*l.x};return!c&&a<=t.top+x.height?(p.y=h.Backward,f.y=n*Math.abs((t.top+x.height-a)/x.height)):!d&&o>=t.bottom-x.height&&(p.y=h.Forward,f.y=n*Math.abs((t.bottom-x.height-o)/x.height)),!m&&s>=t.right-x.width?(p.x=h.Forward,f.x=n*Math.abs((t.right-x.width-s)/x.width)):!u&&i<=t.left+x.width&&(p.x=h.Backward,f.x=n*Math.abs((t.left+x.width-i)/x.width)),{direction:p,speed:f}}(e,r,k,t,m);for(let e of["x","y"])p[e][l[e]]||(a[e]=0,l[e]=0);if(a.x>0||a.y>0){v(),j.current=e,f(S,i),y.current=a,b.current=l;return}}y.current={x:0,y:0},b.current={x:0,y:0},v()},[t,S,n,v,a,i,JSON.stringify(k),JSON.stringify(p),f,c,C,d,JSON.stringify(m)])}({...ez,delta:el,draggingRect:tu,pointerCoordinates:ti,scrollableAncestors:tn,scrollableAncestorRects:tl});let tw=(0,w.useMemo)(()=>({active:ec,activeNode:eP,activeNodeRect:eB,activatorEvent:eb,collisions:th,containerNodeRect:eK,dragOverlay:e1,draggableNodes:er,droppableContainers:ea,droppableRects:eT,over:tp,measureDroppableContainers:eI,scrollableAncestors:tn,scrollableAncestorRects:tl,measuringConfiguration:eA,measuringScheduled:eL,windowRect:tr}),[ec,eP,eB,eb,th,eK,e1,er,ea,eT,tp,eI,tn,tl,eA,eL,tr]),tk=(0,w.useMemo)(()=>({activatorEvent:eb,activators:tb,active:ec,activeNodeRect:eB,ariaDescribedById:{draggable:eR},dispatch:_,draggableNodes:er,over:tp,measureDroppableContainers:eI}),[eb,tb,ec,eB,_,eR,er,tp,eI]);return w.default.createElement(Z.Provider,{value:$},w.default.createElement(e2.Provider,{value:tk},w.default.createElement(e3.Provider,{value:tw},w.default.createElement(e8.Provider,{value:tx},A)),w.default.createElement(e6,{disabled:(null==E?void 0:E.restoreFocus)===!1})),w.default.createElement(et,{...E,hiddenTextDescribedById:eR}))}),e7=(0,w.createContext)(null),te="button";function tt(e){let{id:t,data:r,disabled:n=!1,attributes:l}=e,a=V("Draggable"),{activators:i,activatorEvent:s,active:o,activeNodeRect:c,ariaDescribedById:d,draggableNodes:u,over:h}=(0,w.useContext)(e2),{role:m=te,roleDescription:p="draggable",tabIndex:f=0}=null!=l?l:{},x=(null==o?void 0:o.id)===t,g=(0,w.useContext)(x?e8:e7),[v,y]=z(),[b,k]=z(),j=(0,w.useMemo)(()=>i.reduce((e,r)=>{let{eventName:n,handler:l}=r;return e[n]=e=>{l(e,t)},e},{}),[i,t]),S=P(r);return T(()=>(u.set(t,{id:t,key:a,node:v,activatorNode:b,data:S}),()=>{let e=u.get(t);e&&e.key===a&&u.delete(t)}),[u,t]),{active:o,activatorEvent:s,activeNodeRect:c,attributes:(0,w.useMemo)(()=>({role:m,tabIndex:f,"aria-disabled":n,"aria-pressed":!!x&&m===te||void 0,"aria-roledescription":p,"aria-describedby":d.draggable}),[n,m,f,x,p,d.draggable]),isDragging:x,listeners:n?void 0:j,node:v,over:h,setNodeRef:y,setActivatorNodeRef:k,transform:g}}function tr(){return(0,w.useContext)(e3)}let tn={timeout:25};function tl(e){let{data:t,disabled:r=!1,id:n,resizeObserverConfig:l}=e,a=V("Droppable"),{active:i,dispatch:s,over:o,measureDroppableContainers:c}=(0,w.useContext)(e2),d=(0,w.useRef)({disabled:r}),h=(0,w.useRef)(!1),m=(0,w.useRef)(null),p=(0,w.useRef)(null),{disabled:f,updateMeasurementsFor:x,timeout:g}={...tn,...l},v=P(null!=x?x:n),y=eU({callback:(0,w.useCallback)(()=>{if(!h.current){h.current=!0;return}null!=p.current&&clearTimeout(p.current),p.current=setTimeout(()=>{c(Array.isArray(v.current)?v.current:[v.current]),p.current=null},g)},[g]),disabled:f||!i}),[b,k]=z((0,w.useCallback)((e,t)=>{y&&(t&&(y.unobserve(t),h.current=!1),e&&y.observe(e))},[y])),j=P(t);return(0,w.useEffect)(()=>{y&&b.current&&(y.disconnect(),h.current=!1,y.observe(b.current))},[b,y]),(0,w.useEffect)(()=>(s({type:u.RegisterDroppable,element:{id:n,key:a,disabled:r,node:b,rect:m,data:j}}),()=>s({type:u.UnregisterDroppable,key:a,id:n})),[n]),(0,w.useEffect)(()=>{r!==d.current.disabled&&(s({type:u.SetDroppableDisabled,id:n,key:a,disabled:r}),d.current.disabled=r)},[n,a,r,s]),{active:i,rect:m,isOver:(null==o?void 0:o.id)===n,node:b,over:o,setNodeRef:k}}let ta={position:"fixed",touchAction:"none"},ti=e=>K(e)?"transform 250ms ease":void 0;function ts(e,t,r){let n=e.slice();return n.splice(r<0?n.length+r:r,0,n.splice(t,1)[0]),n}function to(e){return null!==e&&e>=0}t={styles:{active:{opacity:"0"}}},e.s(["DndContext",0,e9,"KeyboardCode",0,p,"PointerSensor",0,eB,"closestCenter",0,e=>{let{collisionRect:t,droppableRects:r,droppableContainers:n}=e,l=ec(t,t.left,t.top),a=[];for(let e of n){let{id:t}=e,n=r.get(t);if(n){let r=el(ec(n),l);a.push({id:t,data:{droppableContainer:e,value:r}})}}return a.sort(ea)},"closestCorners",0,e=>{let{collisionRect:t,droppableRects:r,droppableContainers:n}=e,l=es(t),a=[];for(let e of n){let{id:t}=e,n=r.get(t);if(n){let r=es(n),i=Number((l.reduce((e,t,n)=>e+el(r[n],t),0)/4).toFixed(4));a.push({id:t,data:{droppableContainer:e,value:i}})}}return a.sort(ea)},"getClientRect",0,ep,"getFirstCollision",0,eo,"getScrollableAncestors",0,ex,"useDndContext",0,tr,"useDraggable",0,tt,"useDroppable",0,tl,"useSensor",0,function(e,t){return(0,w.useMemo)(()=>({sensor:e,options:null!=t?t:{}}),[e,t])},"useSensors",0,function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,w.useMemo)(()=>[...t].filter(e=>null!=e),[...t])}],59295);let tc=e=>{let{rects:t,activeIndex:r,overIndex:n,index:l}=e,a=ts(t,n,r),i=t[l],s=a[l];return s&&i?{x:s.left-i.left,y:s.top-i.top,scaleX:s.width/i.width,scaleY:s.height/i.height}:null},td={scaleX:1,scaleY:1},tu="Sortable",th=w.default.createContext({activeIndex:-1,containerId:tu,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:tc,disabled:{draggable:!1,droppable:!1}}),tm=e=>{let{id:t,items:r,activeIndex:n,overIndex:l}=e;return ts(r,n,l).indexOf(t)},tp=e=>{let{containerId:t,isSorting:r,wasDragging:n,index:l,items:a,newIndex:i,previousItems:s,previousContainerId:o,transition:c}=e;return!!c&&!!n&&(s===a||l!==i)&&(!!r||i!==l&&t===o)},tf={duration:200,easing:"ease"},tx="transform",tg=W.Transition.toString({property:tx,duration:0,easing:"linear"}),tv={roleDescription:"sortable"};p.Down,p.Right,p.Up,p.Left,e.s(["SortableContext",0,function(e){let{children:t,id:r,items:n,strategy:l=tc,disabled:a=!1}=e,{active:i,dragOverlay:s,droppableRects:o,over:c,measureDroppableContainers:d}=tr(),u=V(tu,r),h=null!==s.rect,m=(0,w.useMemo)(()=>n.map(e=>"object"==typeof e&&"id"in e?e.id:e),[n]),p=null!=i,f=i?m.indexOf(i.id):-1,x=c?m.indexOf(c.id):-1,g=(0,w.useRef)(m),v=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}(m,g.current),y=-1!==x&&-1===f||v,b="boolean"==typeof a?{draggable:a,droppable:a}:a;T(()=>{v&&p&&d(m)},[v,m,p,d]),(0,w.useEffect)(()=>{g.current=m},[m]);let k=(0,w.useMemo)(()=>({activeIndex:f,containerId:u,disabled:b,disableTransforms:y,items:m,overIndex:x,useDragOverlay:h,sortedRects:m.reduce((e,t,r)=>{let n=o.get(t);return n&&(e[r]=n),e},Array(m.length)),strategy:l}),[f,u,b.draggable,b.droppable,y,m,x,o,h,l]);return w.default.createElement(th.Provider,{value:k},t)},"arrayMove",0,ts,"useSortable",0,function(e){var t,r,n,l;let{animateLayoutChanges:a=tp,attributes:i,disabled:s,data:o,getNewIndex:c=tm,id:d,strategy:u,resizeObserverConfig:h,transition:m=tf}=e,{items:p,containerId:f,activeIndex:x,disabled:g,disableTransforms:v,sortedRects:y,overIndex:b,useDragOverlay:k,strategy:S}=(0,w.useContext)(th),C=(t=s,r=g,"boolean"==typeof t?{draggable:t,droppable:!1}:{draggable:null!=(n=null==t?void 0:t.draggable)?n:r.draggable,droppable:null!=(l=null==t?void 0:t.droppable)?l:r.droppable}),M=p.indexOf(d),N=(0,w.useMemo)(()=>({sortable:{containerId:f,index:M,items:p},...o}),[f,o,M,p]),E=(0,w.useMemo)(()=>p.slice(p.indexOf(d)),[p,d]),{rect:R,node:D,isOver:A,setNodeRef:I}=tl({id:d,data:N,disabled:C.droppable,resizeObserverConfig:{updateMeasurementsFor:E,...h}}),{active:L,activatorEvent:P,activeNodeRect:O,attributes:z,setNodeRef:F,listeners:B,isDragging:V,over:H,setActivatorNodeRef:q,transform:U}=tt({id:d,data:N,attributes:{...tv,...i},disabled:C.draggable}),G=j(I,F),_=!!L,Y=_&&!v&&to(x)&&to(b),$=!k&&V,X=$&&Y?U:null,J=Y?null!=X?X:(null!=u?u:S)({rects:y,activeNodeRect:O,activeIndex:x,overIndex:b,index:M}):null,Z=to(x)&&to(b)?c({id:d,items:p,activeIndex:x,overIndex:b}):M,Q=null==L?void 0:L.id,ee=(0,w.useRef)({activeId:Q,items:p,newIndex:Z,containerId:f}),et=p!==ee.current.items,er=a({active:L,containerId:f,isDragging:V,isSorting:_,id:d,index:M,items:p,newIndex:ee.current.newIndex,previousItems:ee.current.items,previousContainerId:ee.current.containerId,transition:m,wasDragging:null!=ee.current.activeId}),en=function(e){let{disabled:t,index:r,node:n,rect:l}=e,[a,i]=(0,w.useState)(null),s=(0,w.useRef)(r);return T(()=>{if(!t&&r!==s.current&&n.current){let e=l.current;if(e){let t=ep(n.current,{ignoreTransform:!0}),r={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(r.x||r.y)&&i(r)}}r!==s.current&&(s.current=r)},[t,r,n,l]),(0,w.useEffect)(()=>{a&&i(null)},[a]),a}({disabled:!er,index:M,node:D,rect:R});return(0,w.useEffect)(()=>{_&&ee.current.newIndex!==Z&&(ee.current.newIndex=Z),f!==ee.current.containerId&&(ee.current.containerId=f),p!==ee.current.items&&(ee.current.items=p)},[_,Z,f,p]),(0,w.useEffect)(()=>{if(Q===ee.current.activeId)return;if(null!=Q&&null==ee.current.activeId){ee.current.activeId=Q;return}let e=setTimeout(()=>{ee.current.activeId=Q},50);return()=>clearTimeout(e)},[Q]),{active:L,activeIndex:x,attributes:z,data:N,rect:R,index:M,newIndex:Z,items:p,isOver:A,isSorting:_,isDragging:V,listeners:B,node:D,overIndex:b,over:H,setNodeRef:G,setActivatorNodeRef:q,setDroppableNodeRef:I,setDraggableNodeRef:F,transform:null!=en?en:J,transition:en||et&&ee.current.newIndex===M?tg:(!$||K(P))&&m&&(_||er)?W.Transition.toString({...m,property:tx}):void 0}},"verticalListSortingStrategy",0,e=>{var t,r,n,l;let a,i,s,{activeIndex:o,activeNodeRect:c,index:d,rects:u,overIndex:h}=e,m=null!=(t=u[o])?t:c;if(!m)return null;if(d===o){let e=u[h];return e?{x:0,y:o<h?e.top+e.height-(m.top+m.height):e.top-m.top,...td}:null}let p=(r=u,n=d,l=o,a=r[n],i=r[n-1],s=r[n+1],a?l<n?i?a.top-(i.top+i.height):s?s.top-(a.top+a.height):0:s?s.top-(a.top+a.height):i?a.top-(i.top+i.height):0:0);return d>o&&d<=h?{x:0,y:-m.height-p,...td}:d<o&&d>=h?{x:0,y:m.height+p,...td}:{x:0,y:0,...td}}],706277);let ty=(0,e.i(369547).default)("grip-vertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]);e.s(["GripVertical",0,ty],269356)},468528,e=>{"use strict";var t=e.i(391398),r=e.i(191788),n=e.i(352819),l=e.i(745725),a=e.i(59295),i=e.i(706277),s=e.i(146341),o=e.i(269356),c=e.i(436254),d=e.i(972733),u=e.i(871138),h=e.i(909289),m=e.i(939310),p=e.i(45124),f=e.i(130027),x=e.i(443915),g=e.i(212283),v=e.i(639530);let y=({transform:e})=>({...e,x:0}),b=({prompt:e,onToggle:r})=>{let{attributes:n,listeners:l,setNodeRef:a,setActivatorNodeRef:c,transform:d,transition:u,isDragging:h}=(0,i.useSortable)({id:e.id}),m={transform:s.CSS.Translate.toString(d),transition:u,zIndex:h?1:void 0,position:h?"relative":void 0};return(0,t.jsxs)("div",{ref:a,className:"flex items-center gap-1 bg-background py-2.5 pl-1 pr-3",style:m,children:[(0,t.jsx)("div",{ref:c,...n,...l,className:"flex shrink-0 cursor-grab items-center text-muted-foreground/50 active:cursor-grabbing",children:(0,t.jsx)(o.GripVertical,{className:"h-4 w-4"})}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e.name}),(0,t.jsx)("p",{className:"truncate font-mono text-xs text-muted-foreground",children:e.prompt})]}),(0,t.jsx)("div",{className:"flex shrink-0 items-center",children:(0,t.jsx)(f.Switch,{checked:e.enabled,onCheckedChange:t=>r(e.id,t)})})]})},w=({prompt:e,onEdit:r,onDelete:n,onToggle:l})=>{let{attributes:a,listeners:d,setNodeRef:u,setActivatorNodeRef:p,transform:x,transition:g,isDragging:v}=(0,i.useSortable)({id:e.id}),y={transform:s.CSS.Translate.toString(x),transition:g,zIndex:v?1:void 0,position:v?"relative":void 0};return(0,t.jsxs)("div",{ref:u,className:"flex items-center gap-1 bg-background py-2.5 pl-1 pr-3",style:y,children:[(0,t.jsx)("div",{ref:p,...a,...d,className:"flex shrink-0 cursor-grab items-center text-muted-foreground/50 active:cursor-grabbing",children:(0,t.jsx)(o.GripVertical,{className:"h-4 w-4"})}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e.name}),(0,t.jsx)("p",{className:"truncate font-mono text-xs text-muted-foreground",children:e.prompt})]}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-1",children:[(0,t.jsx)(m.Button,{variant:"ghost",size:"sm",className:"h-7 w-7 p-0",onClick:()=>r(e),children:(0,t.jsx)(c.Pencil,{className:"h-3.5 w-3.5"})}),(0,t.jsx)(m.Button,{variant:"ghost",size:"sm",className:"h-7 w-7 p-0 text-ui-red hover:text-ui-red/80",onClick:()=>n(e.id),children:(0,t.jsx)(h.Trash2,{className:"h-3.5 w-3.5"})}),(0,t.jsx)(f.Switch,{checked:e.enabled,onCheckedChange:t=>l(e.id,t)})]})]})};e.s(["default",0,()=>{let e=(0,n.useTranslations)("settings.quickPrompts"),{allOrderedPrompts:s,customPrompts:o,toggleBuiltin:c,saveCustom:h,saveOrder:f,deletePrompt:k,resetAll:j}=(0,v.default)(),[S,C]=(0,r.useState)(null),[M,N]=(0,r.useState)(!1),[E,R]=(0,r.useState)(null),D=(0,a.useSensors)((0,a.useSensor)(a.PointerSensor,{activationConstraint:{distance:5}})),A=(0,r.useCallback)((e,t)=>{e.startsWith("builtin-")?c(e,t):h(o.map(r=>r.id===e?{...r,enabled:t}:r))},[o,c,h]),T=(0,r.useCallback)(e=>{R(e)},[]),I=(0,r.useCallback)(()=>{E&&(k(E),R(null))},[E,k]),L=(0,r.useCallback)(e=>{C({mode:"edit",id:e.id,name:e.name,prompt:e.prompt})},[]),P=(0,r.useCallback)(()=>{C({mode:"add",name:"",prompt:""})},[]),O=(0,r.useCallback)(()=>{S&&S.name.trim()&&S.prompt.trim()&&("edit"===S.mode&&S.id?h(o.map(e=>e.id===S.id?{...e,name:S.name.trim(),prompt:S.prompt}:e)):h([...o,{id:`custom-${(0,l.nanoid)(8)}`,name:S.name.trim(),prompt:S.prompt,enabled:!0}]),C(null))},[S,o,h]),z=(0,r.useCallback)(()=>{j(),N(!1)},[j]),F=(0,r.useCallback)(e=>{let{active:t,over:r}=e;if(!r||t.id===r.id)return;let n=s.findIndex(e=>e.id===t.id),l=s.findIndex(e=>e.id===r.id);-1===n||-1===l||f((0,i.arrayMove)(s,n,l).map(e=>e.id))},[s,f]),B=!!S&&S.name.trim().length>0&&S.prompt.trim().length>0;return(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e("title")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("description")})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("p",{className:"text-xs font-medium text-muted-foreground",children:e("itemsSection")}),s.length>0&&(0,t.jsx)(a.DndContext,{sensors:D,collisionDetection:a.closestCenter,modifiers:[y],onDragEnd:F,children:(0,t.jsx)(i.SortableContext,{items:s.map(e=>e.id),strategy:i.verticalListSortingStrategy,children:(0,t.jsx)("div",{className:"overflow-hidden rounded-lg border",children:s.map(e=>e.id.startsWith("builtin-")?(0,t.jsx)(b,{prompt:e,onToggle:A},e.id):(0,t.jsx)(w,{prompt:e,onEdit:L,onDelete:T,onToggle:A},e.id))})})}),S&&(0,t.jsxs)("div",{className:"space-y-3 rounded-lg border p-3",children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e("add"===S.mode?"addPrompt":"editPrompt")}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("label",{className:"text-xs text-muted-foreground",children:e("nameLabel")}),(0,t.jsx)(p.Input,{value:S.name,onChange:e=>C({...S,name:e.target.value}),placeholder:e("namePlaceholder"),autoFocus:!0})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("label",{className:"text-xs text-muted-foreground",children:e("promptLabel")}),(0,t.jsx)(x.Textarea,{value:S.prompt,onChange:e=>C({...S,prompt:e.target.value}),placeholder:e("promptPlaceholder"),rows:3})]}),(0,t.jsxs)("div",{className:"flex justify-end gap-2",children:[(0,t.jsx)(m.Button,{variant:"outline",size:"sm",onClick:()=>C(null),children:e("cancel")}),(0,t.jsx)(m.Button,{size:"sm",onClick:O,disabled:!B,children:e("save")})]})]}),!S&&(0,t.jsxs)(m.Button,{variant:"outline",size:"sm",onClick:P,children:[(0,t.jsx)(d.Plus,{className:"mr-1 h-3.5 w-3.5"}),e("addButton")]})]}),(0,t.jsxs)(m.Button,{variant:"ghost",size:"sm",className:"text-muted-foreground",onClick:()=>N(!0),children:[(0,t.jsx)(u.RotateCcw,{className:"mr-1 h-3.5 w-3.5"}),e("resetToDefault")]}),(0,t.jsx)(g.AlertDialog,{open:!!E,onOpenChange:e=>!e&&R(null),children:(0,t.jsxs)(g.AlertDialogContent,{children:[(0,t.jsxs)(g.AlertDialogHeader,{children:[(0,t.jsx)(g.AlertDialogTitle,{children:e("deleteTitle")}),(0,t.jsx)(g.AlertDialogDescription,{children:e("deleteDescription")})]}),(0,t.jsxs)(g.AlertDialogFooter,{children:[(0,t.jsx)(g.AlertDialogCancel,{children:e("deleteCancel")}),(0,t.jsx)(g.AlertDialogAction,{onClick:I,children:e("deleteConfirm")})]})]})}),(0,t.jsx)(g.AlertDialog,{open:M,onOpenChange:N,children:(0,t.jsxs)(g.AlertDialogContent,{children:[(0,t.jsxs)(g.AlertDialogHeader,{children:[(0,t.jsx)(g.AlertDialogTitle,{children:e("resetTitle")}),(0,t.jsx)(g.AlertDialogDescription,{children:e("resetDescription")})]}),(0,t.jsxs)(g.AlertDialogFooter,{children:[(0,t.jsx)(g.AlertDialogCancel,{children:e("resetCancel")}),(0,t.jsx)(g.AlertDialogAction,{onClick:z,children:e("resetConfirm")})]})]})})]})}])},934048,e=>{"use strict";e.i(350461);var t=e.i(391398),r=e.i(191788),n=e.i(352819),l=e.i(679935),a=e.i(603331),i=e.i(524845),s=e.i(29803),o=e.i(447903),c=e.i(918324),d=e.i(721614),u=e.i(211308),h=e.i(660255),m=e.i(240614),p=e.i(978517),f=e.i(661371),x=e.i(438970),g=e.i(835707),v=e.i(482192),y=e.i(283303),b=e.i(17585),w=e.i(117690),k=e.i(871138),j=e.i(181474),S=e.i(639131),C=e.i(875284),M=e.i(909289),N=e.i(722896),E=e.i(868462),R=e.i(602889),D=e.i(124726),A=e.i(939310),T=e.i(208501),I=e.i(45124),L=e.i(130027),P=e.i(621504),O=e.i(91762),z=e.i(636989),F=e.i(550292),B=e.i(296202),V=e.i(212283),H=e.i(690176),q=e.i(353533),U=e.i(117369),K=e.i(31050),G=e.i(170004),W=e.i(490034),_=e.i(998234),Y=e.i(700599),$=e.i(468528),X=e.i(745725),J=e.i(59295),Z=e.i(706277),Q=e.i(146341),ee=e.i(269356),et=e.i(436254),er=e.i(972733),en=e.i(734549),el=e.i(348370),ea=e.i(274489);let ei=["Globe","Link","ExternalLink","Bookmark","Star","Home","FileText","BarChart3","PieChart","LineChart","Activity","Zap","Terminal","Code","Database","Server","Cloud","Shield","Lock","Key","User","Users","Mail","MessageSquare","Bell","Calendar","Clock","Search","Eye","Camera","Image","Film","Music","Headphones","Mic","Folder","File","Archive","Download","Upload","GitBranch","GitCommit","GitPullRequest","GitFork","Bug","Wrench","Settings","Sliders","Palette","Brush","Map","MapPin","Navigation","Compass","Wifi","Monitor","Smartphone","Tablet","Laptop","Cpu","HardDrive","MemoryStick","CircuitBoard","Radio","Bluetooth","Heart","ThumbsUp","Smile","Coffee","Rocket","Flame","Sun","Moon","Sparkles","Award","Trophy","Target","Flag","Crosshair","Layers","Layout","Grid","List","Table","Kanban","Bot","Brain","Lightbulb","GraduationCap","BookOpen"],es=({value:e,onChange:l,readonly:a,size:i=16})=>{let s=(0,n.useTranslations)("settings.sidebarItems"),[o,c]=(0,r.useState)(!1),[d,u]=(0,r.useState)(""),h=(0,r.useMemo)(()=>{if(!d.trim())return ei;let e=d.toLowerCase();return ei.filter(t=>t.toLowerCase().includes(e))},[d]);return a?(0,t.jsx)(ea.default,{name:e,className:"shrink-0 text-muted-foreground",style:{width:i,height:i}}):(0,t.jsxs)(el.Popover,{open:o,onOpenChange:c,children:[(0,t.jsxs)(el.PopoverTrigger,{className:"inline-flex h-9 items-center justify-center gap-2 rounded-md border border-input bg-background px-3 text-sm font-medium shadow-xs transition-colors hover:bg-accent hover:text-accent-foreground",children:[(0,t.jsx)(ea.default,{name:e,className:"h-4 w-4"}),(0,t.jsx)("span",{className:"text-xs text-muted-foreground",children:e})]}),(0,t.jsxs)(el.PopoverContent,{className:"w-72 p-2",align:"start",children:[(0,t.jsx)(I.Input,{placeholder:s("iconSearch"),value:d,onChange:e=>u(e.target.value),className:"mb-2 h-8 text-xs",autoFocus:!0}),(0,t.jsx)("div",{className:"grid max-h-48 grid-cols-8 gap-0.5 overflow-y-auto p-1",children:h.map(r=>(0,ea.getIcon)(r)?(0,t.jsx)("button",{type:"button",className:(0,q.cn)("flex h-8 w-8 items-center justify-center rounded transition-colors hover:bg-accent",e===r&&"bg-accent ring-1 ring-primary"),onClick:()=>{l?.(r),c(!1),u("")},title:r,children:(0,t.jsx)(ea.default,{name:r,className:"h-4 w-4"})},r):null)}),0===h.length&&(0,t.jsx)("p",{className:"py-4 text-center text-xs text-muted-foreground",children:s("iconNotFound")})]})]})},eo=({transform:e})=>({...e,x:0}),ec=({item:e,onEdit:r,onDelete:n,onToggle:l})=>{let{attributes:a,listeners:i,setNodeRef:s,setActivatorNodeRef:o,transform:c,transition:d,isDragging:u}=(0,Z.useSortable)({id:e.id}),h={transform:Q.CSS.Translate.toString(c),transition:d,zIndex:u?1:void 0,position:u?"relative":void 0};return(0,t.jsxs)("div",{ref:s,className:"flex items-center gap-1 bg-background py-2.5 pl-1 pr-3",style:h,children:[(0,t.jsx)("div",{ref:o,...a,...i,className:"flex shrink-0 cursor-grab items-center text-muted-foreground/50 active:cursor-grabbing",children:(0,t.jsx)(ee.GripVertical,{className:"h-4 w-4"})}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsx)(es,{value:e.icon,readonly:!0,size:14}),(0,t.jsx)("p",{className:"text-sm font-medium",children:e.name})]}),(0,t.jsx)("p",{className:"truncate font-mono text-xs text-muted-foreground",children:e.url})]}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-1",children:[(0,t.jsx)(A.Button,{variant:"ghost",size:"sm",className:"h-7 w-7 p-0",onClick:()=>r(e),children:(0,t.jsx)(et.Pencil,{className:"h-3.5 w-3.5"})}),(0,t.jsx)(A.Button,{variant:"ghost",size:"sm",className:"h-7 w-7 p-0 text-ui-red hover:text-ui-red/80",onClick:()=>n(e.id),children:(0,t.jsx)(M.Trash2,{className:"h-3.5 w-3.5"})}),(0,t.jsx)(L.Switch,{checked:e.enabled,onCheckedChange:t=>l(e.id,t)})]})]})},ed=({item:e,onToggle:r})=>{let{attributes:n,listeners:l,setNodeRef:a,setActivatorNodeRef:i,transform:s,transition:o,isDragging:c}=(0,Z.useSortable)({id:e.id}),d={transform:Q.CSS.Translate.toString(s),transition:o,zIndex:c?1:void 0,position:c?"relative":void 0};return(0,t.jsxs)("div",{ref:a,className:"flex items-center gap-1 bg-background py-2.5 pl-1 pr-3",style:d,children:[(0,t.jsx)("div",{ref:i,...n,...l,className:"flex shrink-0 cursor-grab items-center text-muted-foreground/50 active:cursor-grabbing",children:(0,t.jsx)(ee.GripVertical,{className:"h-4 w-4"})}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsx)(es,{value:e.icon,readonly:!0,size:14}),(0,t.jsx)("p",{className:"text-sm font-medium",children:e.name})]}),(0,t.jsx)("p",{className:"truncate font-mono text-xs text-muted-foreground",children:e.url})]}),(0,t.jsx)("div",{className:"flex shrink-0 items-center",children:(0,t.jsx)(L.Switch,{checked:e.enabled,onCheckedChange:t=>r(e.id,t)})})]})},eu=()=>{let e=(0,n.useTranslations)("settings.sidebarItems"),{allOrderedItems:l,customItems:a,toggleBuiltin:i,saveCustom:s,saveOrder:o,deleteItem:c,resetAll:d}=(0,en.default)(),[u,h]=(0,r.useState)(null),[m,p]=(0,r.useState)(!1),[f,x]=(0,r.useState)(null),g=(0,J.useSensors)((0,J.useSensor)(J.PointerSensor,{activationConstraint:{distance:5}})),v=(0,r.useCallback)((e,t)=>{e.startsWith("builtin-")?i(e,t):s(a.map(r=>r.id===e?{...r,enabled:t}:r))},[a,i,s]),y=(0,r.useCallback)(e=>{x(e)},[]),b=(0,r.useCallback)(()=>{f&&(c(f),x(null))},[f,c]),w=(0,r.useCallback)(e=>{h({mode:"edit",id:e.id,name:e.name,icon:e.icon,url:e.url})},[]),j=(0,r.useCallback)(()=>{h({mode:"add",name:"",icon:"Globe",url:""})},[]),S=(0,r.useCallback)(()=>{u&&u.name.trim()&&u.url.trim()&&("edit"===u.mode&&u.id?s(a.map(e=>e.id===u.id?{...e,name:u.name.trim(),icon:u.icon,url:u.url.trim()}:e)):s([...a,{id:`custom-${(0,X.nanoid)(8)}`,name:u.name.trim(),icon:u.icon,url:u.url.trim(),enabled:!0}]),h(null))},[u,a,s]),C=(0,r.useCallback)(()=>{d(),p(!1)},[d]),M=(0,r.useCallback)(e=>{let{active:t,over:r}=e;if(!r||t.id===r.id)return;let n=l.findIndex(e=>e.id===t.id),a=l.findIndex(e=>e.id===r.id);-1===n||-1===a||o((0,Z.arrayMove)(l,n,a).map(e=>e.id))},[l,o]),N=!!u&&u.name.trim().length>0&&u.url.trim().length>0;return(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e("title")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("description")})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("p",{className:"text-xs font-medium text-muted-foreground",children:e("itemsSection")}),l.length>0&&(0,t.jsx)(J.DndContext,{sensors:g,collisionDetection:J.closestCenter,modifiers:[eo],onDragEnd:M,children:(0,t.jsx)(Z.SortableContext,{items:l.map(e=>e.id),strategy:Z.verticalListSortingStrategy,children:(0,t.jsx)("div",{className:"overflow-hidden rounded-lg border",children:l.map(e=>e.id.startsWith("builtin-")?(0,t.jsx)(ed,{item:e,onToggle:v},e.id):(0,t.jsx)(ec,{item:e,onEdit:w,onDelete:y,onToggle:v},e.id))})})}),u&&(0,t.jsxs)("div",{className:"space-y-3 rounded-lg border p-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(es,{value:u.icon,onChange:e=>h({...u,icon:e})}),(0,t.jsx)(I.Input,{value:u.name,onChange:e=>h({...u,name:e.target.value}),placeholder:e("namePlaceholder"),autoFocus:!0})]}),(0,t.jsx)(I.Input,{value:u.url,onChange:e=>h({...u,url:e.target.value}),placeholder:e("urlPlaceholder")}),(0,t.jsxs)("div",{className:"flex justify-end gap-2",children:[(0,t.jsx)(A.Button,{variant:"outline",size:"sm",onClick:()=>h(null),children:e("cancel")}),(0,t.jsx)(A.Button,{size:"sm",onClick:S,disabled:!N,children:e("save")})]})]}),!u&&(0,t.jsxs)(A.Button,{variant:"outline",size:"sm",onClick:j,children:[(0,t.jsx)(er.Plus,{className:"mr-1 h-3.5 w-3.5"}),e("addButton")]})]}),(0,t.jsxs)(A.Button,{variant:"ghost",size:"sm",className:"text-muted-foreground",onClick:()=>p(!0),children:[(0,t.jsx)(k.RotateCcw,{className:"mr-1 h-3.5 w-3.5"}),e("resetToDefault")]}),(0,t.jsx)(V.AlertDialog,{open:!!f,onOpenChange:e=>!e&&x(null),children:(0,t.jsxs)(V.AlertDialogContent,{children:[(0,t.jsxs)(V.AlertDialogHeader,{children:[(0,t.jsx)(V.AlertDialogTitle,{children:e("deleteTitle")}),(0,t.jsx)(V.AlertDialogDescription,{children:e("deleteDescription")})]}),(0,t.jsxs)(V.AlertDialogFooter,{children:[(0,t.jsx)(V.AlertDialogCancel,{children:e("deleteCancel")}),(0,t.jsx)(V.AlertDialogAction,{onClick:b,children:e("deleteConfirm")})]})]})}),(0,t.jsx)(V.AlertDialog,{open:m,onOpenChange:p,children:(0,t.jsxs)(V.AlertDialogContent,{children:[(0,t.jsxs)(V.AlertDialogHeader,{children:[(0,t.jsx)(V.AlertDialogTitle,{children:e("resetTitle")}),(0,t.jsx)(V.AlertDialogDescription,{children:e("resetDescription")})]}),(0,t.jsxs)(V.AlertDialogFooter,{children:[(0,t.jsx)(V.AlertDialogCancel,{children:e("resetCancel")}),(0,t.jsx)(V.AlertDialogAction,{onClick:C,children:e("resetConfirm")})]})]})})]})};var eh=e.i(770084),em=e.i(876208),ep=e.i(127630),ef=e.i(600300),ex=e.i(398957),eg=e.i(432237),ev=e.i(199648);let ey=({text:e})=>{let[n,l]=(0,r.useState)(!1);return(0,t.jsx)(A.Button,{variant:"ghost",size:"icon",className:"h-6 w-6 shrink-0",onClick:()=>{navigator.clipboard.writeText(e),l(!0),setTimeout(()=>l(!1),1500)},children:n?(0,t.jsx)(eh.Check,{className:"h-3 w-3 text-positive"}):(0,t.jsx)(em.Copy,{className:"h-3 w-3"})})},eb=()=>{let e=(0,n.useTranslations)("settings.tailscale");return(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"flex items-start gap-3 rounded-md border border-ui-amber/30 bg-ui-amber/5 p-4",children:[(0,t.jsx)(eg.AlertTriangle,{className:"mt-0.5 h-5 w-5 shrink-0 text-ui-amber"}),(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e("notInstalled")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("notInstalledDescription")})]})]}),(0,t.jsxs)("div",{className:"rounded-md bg-muted p-3 font-mono text-xs leading-relaxed",children:[(0,t.jsx)("p",{className:"text-muted-foreground/60",children:e("commentMac")}),(0,t.jsx)("p",{children:"brew install tailscale"}),(0,t.jsx)("p",{className:"mt-2 text-muted-foreground/60",children:e("commentMacAppStore")}),(0,t.jsx)("p",{className:"mt-2 text-muted-foreground/60",children:e("commentLinux")}),(0,t.jsx)("p",{children:"curl -fsSL https://tailscale.com/install.sh | sh"}),(0,t.jsx)("p",{className:"mt-2 text-muted-foreground/60",children:e("commentAfterInstall")}),(0,t.jsx)("p",{children:"tailscale up"})]}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e.rich("installGuide",{link:e=>(0,t.jsxs)("a",{href:"https://tailscale.com/download",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 underline hover:text-foreground",children:[e,(0,t.jsx)(ep.ExternalLink,{className:"h-3 w-3"})]})})})]})},ew=()=>{let e=(0,n.useTranslations)("settings.tailscale"),[a,i]=(0,r.useState)(null),[o,c]=(0,r.useState)(!0),[d,u]=(0,r.useState)(null),h=(0,r.useCallback)(async()=>{try{let e=await fetch("/api/tailscale/status");if(!e.ok)throw Error();let t=await e.json();i(t)}catch{i(null)}finally{c(!1)}},[]);(0,r.useEffect)(()=>{h()},[h]);let m=async t=>{u(`remove-${t}`);try{let r=await fetch("/api/tailscale/serve",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({httpsPort:t})});if(!r.ok){let t=await r.json();throw Error(t.error||e("removeFailed"))}l.toast.success(e("removedToast",{httpsPort:t})),await h()}catch(t){l.toast.error(t instanceof Error?t.message:e("removeFailed"))}finally{u(null)}};if(o)return(0,t.jsx)("div",{className:"flex items-center justify-center py-12",children:(0,t.jsx)(ev.default,{className:"h-4 w-4 text-muted-foreground"})});if(!a||!a.installed)return(0,t.jsx)(eb,{});if(!a.running)return(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"flex items-start gap-3 rounded-md border border-ui-amber/30 bg-ui-amber/5 p-4",children:[(0,t.jsx)(eg.AlertTriangle,{className:"mt-0.5 h-5 w-5 shrink-0 text-ui-amber"}),(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e("notRunning")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("notRunningDescription")})]})]}),(0,t.jsx)("div",{className:"rounded-md bg-muted p-3 font-mono text-xs leading-relaxed",children:(0,t.jsx)("p",{children:"tailscale up"})})]});let p=a.serveEntries,f=a.serverPort,x=8022!==f;return(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e("deviceInfo")}),(0,t.jsx)(A.Button,{variant:"ghost",size:"icon",className:"h-7 w-7",onClick:()=>{c(!0),h()},children:(0,t.jsx)(ex.RefreshCw,{className:"h-3.5 w-3.5"})})]}),(0,t.jsx)("div",{className:"rounded-md border p-3 text-sm",children:(0,t.jsxs)("div",{className:"grid grid-cols-[auto_1fr] items-center gap-x-4 gap-y-1.5",children:[(0,t.jsx)("span",{className:"text-muted-foreground",children:e("host")}),(0,t.jsx)("span",{className:"font-mono text-xs",children:a.hostname}),(0,t.jsx)("span",{className:"text-muted-foreground",children:"DNS"}),(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsx)("span",{className:"font-mono text-xs",children:a.dnsName}),a.dnsName&&(0,t.jsx)(ey,{text:a.dnsName})]}),(0,t.jsx)("span",{className:"text-muted-foreground",children:"IP"}),(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsx)("span",{className:"font-mono text-xs",children:a.tailscaleIp}),a.tailscaleIp&&(0,t.jsx)(ey,{text:a.tailscaleIp})]}),(0,t.jsx)("span",{className:"text-muted-foreground",children:e("version")}),(0,t.jsx)("span",{className:"font-mono text-xs",children:a.version})]})})]}),x&&(0,t.jsxs)("div",{className:"flex items-start gap-3 rounded-md border border-accent-color/30 bg-accent-color/5 p-4",children:[(0,t.jsx)(ef.Info,{className:"mt-0.5 h-5 w-5 shrink-0 text-accent-color"}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e("nonDefaultPortTitle",{port:f})}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("nonDefaultPortDescription",{defaultPort:8022,currentPort:f,restartAction:s.default?e("appRestart"):e("serverRestart")})}),(0,t.jsxs)("div",{className:"rounded-md bg-muted p-2.5 font-mono text-xs leading-relaxed",children:[(0,t.jsx)("p",{className:"text-muted-foreground/60",children:e("commentFixedPort",{port:8022})}),(0,t.jsxs)("p",{children:["PORT=",8022," purplemux"]}),(0,t.jsx)("p",{className:"mt-1.5 text-muted-foreground/60",children:e("commentOrTerminate",{port:8022})})]})]})]}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e("serveStatus")}),0===p.length?(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("noActiveServe")}):(0,t.jsx)("div",{className:"rounded-md border",children:(0,t.jsxs)("table",{className:"w-full text-sm",children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{className:"border-b text-muted-foreground",children:[(0,t.jsx)("th",{className:"px-3 py-2 text-left font-medium",children:e("httpsPort")}),(0,t.jsx)("th",{className:"px-3 py-2 text-left font-medium",children:e("proxyTarget")}),(0,t.jsx)("th",{className:"px-3 py-2 text-left font-medium",children:e("url")}),(0,t.jsx)("th",{className:"w-10 px-3 py-2"})]})}),(0,t.jsx)("tbody",{children:p.map(e=>{let r="443"===e.httpsPort?`https://${a.dnsName}`:`https://${a.dnsName}:${e.httpsPort}`;return(0,t.jsxs)("tr",{className:"border-b last:border-b-0",children:[(0,t.jsx)("td",{className:"px-3 py-2 font-mono text-xs",children:e.httpsPort}),(0,t.jsx)("td",{className:"px-3 py-2 font-mono text-xs",children:e.proxy}),(0,t.jsx)("td",{className:"px-3 py-2",children:(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsx)("a",{href:r,target:"_blank",rel:"noopener noreferrer",className:"font-mono text-xs underline hover:text-foreground",children:r}),(0,t.jsx)(ey,{text:r})]})}),(0,t.jsx)("td",{className:"px-3 py-2",children:(0,t.jsx)(A.Button,{variant:"ghost",size:"icon",className:"h-7 w-7 text-destructive hover:text-destructive",disabled:null!==d,onClick:()=>m(e.httpsPort),children:d===`remove-${e.httpsPort}`?(0,t.jsx)(ev.default,{className:"h-3 w-3"}):(0,t.jsx)(M.Trash2,{className:"h-3.5 w-3.5"})})})]},e.httpsPort)})})]})})]}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e("setupGuide")}),(0,t.jsxs)("div",{className:"rounded-md bg-muted p-3 font-mono text-xs leading-relaxed",children:[(0,t.jsx)("p",{className:"text-muted-foreground/60",children:e("commentStep1Install")}),(0,t.jsx)("p",{children:"brew install tailscale"}),(0,t.jsx)("p",{className:"mt-2 text-muted-foreground/60",children:e("commentStep2Activate")}),(0,t.jsx)("p",{children:"tailscale up"}),(0,t.jsx)("p",{className:"mt-2 text-muted-foreground/60",children:e("commentStep3Add")}),(0,t.jsxs)("p",{children:["tailscale serve --bg --https=443 http://localhost:",f]})]})]})]})},ek=[{id:"general",labelKey:"general",icon:(0,t.jsx)(j.Settings,{className:"h-4 w-4"})},{id:"appearance",labelKey:"appearance",icon:(0,t.jsx)(w.Palette,{className:"h-4 w-4"})},{id:"terminal",labelKey:"terminal",icon:(0,t.jsx)(C.Terminal,{className:"h-4 w-4"})},{id:"notification",labelKey:"notification",icon:(0,t.jsx)(o.Bell,{className:"h-4 w-4"})},{id:"editor",labelKey:"editor",icon:(0,t.jsx)(h.FolderCode,{className:"h-4 w-4"})},{id:"claude",labelKey:"claude",icon:(0,t.jsx)(D.default,{className:"h-4 w-4"})},{id:"auth",labelKey:"auth",icon:(0,t.jsx)(g.Lock,{className:"h-4 w-4"})},{id:"tailscale",labelKey:"tailscale",icon:(0,t.jsx)(m.Globe,{className:"h-4 w-4"})},{id:"quick-prompts",labelKey:"quickPrompts",icon:(0,t.jsx)(R.Zap,{className:"h-4 w-4"})},{id:"sidebar-items",labelKey:"sidebarItems",icon:(0,t.jsx)(x.Layout,{className:"h-4 w-4"})},{id:"system",labelKey:"system",icon:(0,t.jsx)(N.Wrench,{className:"h-4 w-4"})}],ej=[{id:"en",label:"English"},{id:"ko",label:"한국어"},{id:"ja",label:"日本語"},{id:"zh-CN",label:"中文(简体)"},{id:"zh-TW",label:"中文(繁體)"},{id:"es",label:"Español"},{id:"fr",label:"Français"},{id:"de",label:"Deutsch"},{id:"pt-BR",label:"Português (BR)"},{id:"ru",label:"Русский"},{id:"tr",label:"Türkçe"}],eS=[{id:"normal",labelKey:"fontSizeNormal"},{id:"large",labelKey:"fontSizeLarge"},{id:"x-large",labelKey:"fontSizeXLarge"}],eC=()=>{let e=(0,n.useTranslations)("settings.general"),r=(0,n.useTranslations)("common"),{theme:l,setTheme:s}=(0,a.useTheme)(),o=(0,K.default)(e=>e.locale),c=(0,K.default)(e=>e.setLocale),u=(0,K.default)(e=>e.fontSize),h=(0,K.default)(e=>e.setFontSize),m=(0,W.default)(e=>e.setSettingsDialogOpen),p=(0,W.default)(e=>e.setCheatSheetOpen),x=e=>{s(e),fetch("/api/config",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({appTheme:e})}).catch(()=>{}),window.electronAPI&&window.electronAPI.setNativeTheme(e)};return(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-3 md:flex-row md:items-center md:justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e("language")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("languageDescription")})]}),(0,t.jsxs)(H.Select,{items:ej.map(e=>({label:e.label,value:e.id})),value:o,onValueChange:e=>e&&c(e),children:[(0,t.jsx)(H.SelectTrigger,{className:"min-w-[200px]",children:(0,t.jsx)(H.SelectValue,{})}),(0,t.jsx)(H.SelectContent,{children:ej.map(e=>(0,t.jsx)(H.SelectItem,{value:e.id,children:e.label},e.id))})]})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-3 md:flex-row md:items-center md:justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e("theme")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("themeDescription")})]}),(0,t.jsxs)(T.ButtonGroup,{children:[(0,t.jsxs)(A.Button,{variant:"light"===l?"default":"outline",size:"sm",onClick:()=>x("light"),children:[(0,t.jsx)(S.Sun,{className:"h-4 w-4"}),r("light")]}),(0,t.jsxs)(A.Button,{variant:"dark"===l?"default":"outline",size:"sm",onClick:()=>x("dark"),children:[(0,t.jsx)(y.Moon,{className:"h-4 w-4"}),r("dark")]}),(0,t.jsxs)(A.Button,{variant:"system"===l?"default":"outline",size:"sm",onClick:()=>x("system"),children:[(0,t.jsx)(v.Monitor,{className:"h-4 w-4"}),r("system")]})]})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-3 md:flex-row md:items-center md:justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e("fontSize")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("fontSizeDescription")})]}),(0,t.jsx)(T.ButtonGroup,{children:eS.map(r=>(0,t.jsx)(A.Button,{variant:u===r.id?"default":"outline",size:"sm",onClick:()=>h(r.id),children:e(r.labelKey)},r.id))})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-3 md:flex-row md:items-center md:justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e("keyboardShortcuts")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("keyboardShortcutsDescription")})]}),(0,t.jsxs)(A.Button,{variant:"outline",size:"sm",onClick:()=>{m(!1),p(!0)},children:[(0,t.jsx)(f.Keyboard,{className:"h-4 w-4"}),e("openShortcuts"),(0,t.jsx)(d.ChevronRight,{className:"h-3.5 w-3.5"})]})]}),(0,t.jsxs)("a",{href:"https://github.com/subicura/purplemux/releases",target:"_blank",rel:"noopener noreferrer",className:"text-xs text-muted-foreground/50 hover:text-muted-foreground hover:underline w-fit",children:[i.default.version,"(","6bfad72",")"]})]})},eM=[{label:"Surface",vars:["--background","--card","--popover","--muted","--secondary","--accent","--sidebar"]},{label:"Text",vars:["--foreground","--card-foreground","--popover-foreground","--muted-foreground","--secondary-foreground","--accent-foreground","--sidebar-foreground"]},{label:"Interactive",vars:["--primary","--primary-foreground","--destructive"]},{label:"Border",vars:["--border","--input","--ring"]},{label:"Palette",vars:["--ui-blue","--ui-teal","--ui-coral","--ui-amber","--ui-purple","--ui-pink","--ui-green","--ui-gray","--ui-red"]},{label:"Semantic",vars:["--positive","--negative","--accent-color","--brand","--focus-indicator","--claude-active"]}],eN=()=>{let e=(0,n.useTranslations)("settings.appearance"),a=(0,n.useTranslations)("common"),i=(0,K.default)(e=>e.customCSS),s=(0,K.default)(e=>e.setCustomCSS),[o,d]=(0,r.useState)(i),[u,h]=(0,r.useState)(!1);(0,r.useEffect)(()=>{d(i)},[i]);let m=o!==i;return(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e("customCSS")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("customCSSDescription")})]}),(0,t.jsx)("textarea",{className:"h-56 w-full resize-y rounded-md border border-input bg-muted/30 p-3 font-mono text-xs leading-relaxed text-foreground placeholder:text-muted-foreground/40 focus:border-ring focus:outline-none",placeholder:e("placeholder"),value:o,onChange:e=>d(e.target.value),spellCheck:!1}),(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)(V.AlertDialog,{children:[(0,t.jsx)(V.AlertDialogTrigger,{render:(0,t.jsx)(A.Button,{variant:"outline",size:"sm",disabled:!i,children:e("reset")})}),(0,t.jsxs)(V.AlertDialogContent,{children:[(0,t.jsxs)(V.AlertDialogHeader,{children:[(0,t.jsx)(V.AlertDialogTitle,{children:e("reset")}),(0,t.jsx)(V.AlertDialogDescription,{children:e("resetConfirm")})]}),(0,t.jsxs)(V.AlertDialogFooter,{children:[(0,t.jsx)(V.AlertDialogCancel,{children:a("cancel")}),(0,t.jsx)(V.AlertDialogAction,{onClick:()=>{d(""),s("")},children:e("reset")})]})]})]}),(0,t.jsx)(A.Button,{size:"sm",disabled:!m,onClick:()=>{s(o),l.toast.success(e("applied"))},children:e("apply")})]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("button",{type:"button",className:"flex items-center gap-1.5 text-xs text-muted-foreground hover:text-foreground",onClick:()=>h(!u),children:[(0,t.jsx)(c.ChevronDown,{className:(0,q.cn)("h-3.5 w-3.5 transition-transform",u&&"rotate-180")}),e("availableVariables")]}),u&&(0,t.jsx)("div",{className:"mt-2 space-y-3",children:eM.map(e=>(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"mb-1 text-[11px] font-medium text-muted-foreground",children:e.label}),(0,t.jsx)("div",{className:"flex flex-wrap gap-1",children:e.vars.map(e=>(0,t.jsx)("code",{className:"rounded bg-muted px-1.5 py-0.5 text-[11px]",children:e},e))})]},e.label))})]})]})},eE=({list:e,selectedId:r,onSelect:n})=>(0,t.jsx)("div",{className:"grid grid-cols-2 gap-2 md:grid-cols-3",children:e.map(e=>{let l;return(0,t.jsxs)("button",{type:"button",onClick:()=>n(e.id),className:(0,q.cn)("flex flex-col gap-2 rounded-lg border p-3 text-left transition-colors",r===e.id?"border-primary bg-accent":"border-border hover:border-muted-foreground/50"),children:[(0,t.jsx)("span",{className:"text-xs font-medium",children:e.name}),(0,t.jsx)("div",{className:"flex h-5 items-center gap-1 rounded px-2",style:{backgroundColor:e.colors.background},children:[(l=e.colors).red,l.green,l.yellow,l.blue,l.magenta,l.cyan,l.white].map((e,r)=>(0,t.jsx)("div",{className:"h-2.5 w-2.5 rounded-full",style:{backgroundColor:e}},r))})]},e.id)})}),eR=()=>{let e=(0,n.useTranslations)("settings.terminal"),r=(0,n.useTranslations)("common"),{mode:l,themeIds:a,setTerminalTheme:i,themes:s}=(0,U.default)(),o=s.filter(e=>"dark"===e.variant),c=s.filter(e=>"light"===e.variant);return(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e("theme")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("themeDescription")})]}),(0,t.jsxs)(F.Tabs,{defaultValue:l,children:[(0,t.jsxs)(F.TabsList,{children:[(0,t.jsx)(F.TabsTrigger,{value:"dark",children:r("dark")}),(0,t.jsx)(F.TabsTrigger,{value:"light",children:r("light")})]}),(0,t.jsx)(F.TabsContent,{value:"dark",className:"mt-3",children:(0,t.jsx)(eE,{list:o,selectedId:a.dark,onSelect:e=>i("dark",e)})}),(0,t.jsx)(F.TabsContent,{value:"light",className:"mt-3",children:(0,t.jsx)(eE,{list:c,selectedId:a.light,onSelect:e=>i("light",e)})})]})]})},eD=()=>{let e=(0,n.useTranslations)("settings.editor"),a=(0,n.useTranslations)("common"),i=(0,K.default)(e=>e.editorUrl),s=(0,K.default)(e=>e.editorPreset),o=(0,K.default)(e=>e.setEditorUrl),c=(0,K.default)(e=>e.setEditorPreset),[d,u]=(0,r.useState)(i),[h,m]=(0,r.useState)(s),p="code-server"===h||"custom"===h,f=h!==s||p&&d.trim()!==i,x=(0,_.buildEditorUrl)(h,d,"/Users/me/project"),g=()=>{let t=p?d.trim():"";if("code-server"===h&&t)try{let r=new URL(t);if("http:"!==r.protocol&&"https:"!==r.protocol)return void l.toast.error(e("errorHttpRequired"))}catch{l.toast.error(e("errorHttpRequired"));return}"custom"!==h||!t||t.includes("{folder}")||t.includes("{folderEncoded}")?(u(t),o(t),c(h),l.toast.success(a("saved"))):l.toast.error(e("errorCustomTemplate"))};return(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e("preset")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("presetDescription")})]}),(0,t.jsx)(z.RadioGroup,{value:h,onValueChange:e=>m(e),className:"grid grid-cols-1 gap-2 sm:grid-cols-2",children:_.EDITOR_PRESETS.map(r=>(0,t.jsxs)(O.Label,{htmlFor:`editor-preset-${r}`,className:(0,q.cn)("flex cursor-pointer items-center gap-2 rounded-md border border-border px-3 py-2 text-sm font-normal",h===r&&"border-foreground/30 bg-accent"),children:[(0,t.jsx)(z.RadioGroupItem,{id:`editor-preset-${r}`,value:r}),(0,t.jsx)(Y.EditorIcon,{preset:r,className:"h-5 w-5 shrink-0"}),e(`presets.${r}`)]},r))})]}),p&&(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:"custom"===h?e("customTemplate"):e("url")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"custom"===h?e("customTemplateDescription"):e("urlDescription")}),(0,t.jsx)(I.Input,{placeholder:"custom"===h?"myeditor://open?path={folderEncoded}":"https://example.com:8080",value:d,onChange:e=>u(e.target.value),onKeyDown:e=>{"Enter"===e.key&&g()}}),"code-server"===h&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e.rich("urlHelp",{link:e=>(0,t.jsx)("a",{href:"https://github.com/coder/code-server",target:"_blank",rel:"noopener noreferrer",className:"underline hover:text-foreground",children:e}),code:()=>(0,t.jsx)("code",{className:"rounded bg-muted px-1 py-0.5 text-xs",children:"?folder="})})}),(0,t.jsxs)("div",{className:"rounded-md bg-muted p-3 font-mono text-xs leading-relaxed",children:[(0,t.jsx)("p",{className:"text-muted-foreground/60",children:"# Install on macOS"}),(0,t.jsx)("p",{children:"brew install code-server"}),(0,t.jsx)("p",{className:"mt-2 text-muted-foreground/60",children:"# Run"}),(0,t.jsx)("p",{children:"code-server --port 8080"}),(0,t.jsx)("p",{className:"mt-2 text-muted-foreground/60",children:"# External access via Tailscale (optional)"}),(0,t.jsx)("p",{children:"tailscale serve --bg --https=8443 http://localhost:8080"})]})]}),"custom"===h&&(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e.rich("customHelp",{folder:()=>(0,t.jsx)("code",{className:"rounded bg-muted px-1 py-0.5 text-xs",children:"{folder}"}),folderEncoded:()=>(0,t.jsx)("code",{className:"rounded bg-muted px-1 py-0.5 text-xs",children:"{folderEncoded}"})})})]}),!p&&"off"!==h&&(0,t.jsx)("p",{className:"rounded-md border border-border bg-muted/30 p-3 text-sm text-muted-foreground",children:e("localIdeHint")}),"off"===h&&(0,t.jsx)("p",{className:"rounded-md border border-border bg-muted/30 p-3 text-sm text-muted-foreground",children:e("offHint")}),x&&(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsx)("p",{className:"text-xs font-medium text-muted-foreground",children:e("preview")}),(0,t.jsx)("code",{className:"block break-all rounded-md bg-muted p-2 font-mono text-xs",children:x})]}),(0,t.jsx)("div",{className:"flex justify-end",children:(0,t.jsx)(A.Button,{disabled:!f,onClick:g,children:a("save")})})]})},eA=()=>{let e=(0,n.useTranslations)("settings.claude"),r=(0,K.default)(e=>e.dangerouslySkipPermissions),l=(0,K.default)(e=>e.setDangerouslySkipPermissions),a=(0,K.default)(e=>e.claudeShowTerminal),i=(0,K.default)(e=>e.setClaudeShowTerminal);return(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"space-y-0.5",children:[(0,t.jsx)(O.Label,{htmlFor:"skip-permissions",className:"text-sm font-medium",children:e("skipPermissions")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("skipPermissionsDescription")})]}),(0,t.jsx)(L.Switch,{id:"skip-permissions",checked:r,onCheckedChange:l})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"space-y-0.5",children:[(0,t.jsx)(O.Label,{htmlFor:"show-terminal",className:"text-sm font-medium",children:e("showTerminal")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("showTerminalDescription")})]}),(0,t.jsx)(L.Switch,{id:"show-terminal",checked:a,onCheckedChange:i})]})]})},eT=({value:e,onChange:r,ariaLabel:l})=>{let a=(0,n.useTranslations)("settings.notification"),i=G.TOAST_POSITIONS.map(e=>({label:a(`positions.${e}`),value:e}));return(0,t.jsxs)(H.Select,{items:i,value:e,onValueChange:e=>e&&r(e),children:[(0,t.jsx)(H.SelectTrigger,{"aria-label":l,className:"min-w-[160px]",children:(0,t.jsx)(H.SelectValue,{})}),(0,t.jsx)(H.SelectContent,{children:i.map(e=>(0,t.jsx)(H.SelectItem,{value:e.value,children:e.label},e.value))})]})},eI=()=>{let e=(0,n.useTranslations)("settings.notification"),l=(0,K.default)(e=>e.notificationsEnabled),a=(0,K.default)(e=>e.setNotificationsEnabled),i=(0,K.default)(e=>e.toastOnCompleteEnabled),s=(0,K.default)(e=>e.setToastOnCompleteEnabled),o=(0,K.default)(e=>e.toastDuration),c=(0,K.default)(e=>e.setToastDuration),d=(0,K.default)(e=>e.toastPositionDesktop),u=(0,K.default)(e=>e.setToastPositionDesktop),h=(0,K.default)(e=>e.toastPositionMobile),m=(0,K.default)(e=>e.setToastPositionMobile),[p,f]=(0,r.useState)(null),x=p??String(Math.round(o/1e3)),g=!window.electronAPI&&!("PushManager"in window),v=!window.electronAPI&&"Notification"in window&&"denied"===Notification.permission;return(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"space-y-0.5",children:[(0,t.jsx)(O.Label,{htmlFor:"notifications-enabled",className:"text-sm font-medium",children:e("enable")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("enableDescription")})]}),(0,t.jsx)(L.Switch,{id:"notifications-enabled",checked:l,onCheckedChange:a,disabled:g||v})]}),v&&(0,t.jsx)("p",{className:"text-sm text-destructive",children:e("permissionDenied")}),g&&(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("notSupported")})]}),(0,t.jsxs)("div",{className:"border-t pt-6 space-y-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e("toastSection")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("toastSectionDescription")})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"space-y-0.5",children:[(0,t.jsx)(O.Label,{htmlFor:"toast-enabled",className:"text-sm font-medium",children:e("toastEnable")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("toastEnableDescription")})]}),(0,t.jsx)(L.Switch,{id:"toast-enabled",checked:i,onCheckedChange:s})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-3 md:flex-row md:items-center md:justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e("toastDuration")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("toastDurationDescription")})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(I.Input,{type:"number",min:1,max:60,step:1,value:x,onChange:e=>f(e.target.value),onBlur:()=>{let e=Number(p);if(f(null),!Number.isFinite(e))return;let t=1e3*Math.min(60,Math.max(1,Math.round(e)));t!==o&&c(t)},onKeyDown:e=>{"Enter"===e.key&&e.target.blur()},disabled:!i,className:"h-8 w-20 text-sm"}),(0,t.jsx)("span",{className:"text-sm text-muted-foreground",children:e("toastDurationUnit")})]})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-3 md:flex-row md:items-center md:justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e("toastPositionDesktop")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("toastPositionDesktopDescription")})]}),(0,t.jsx)(eT,{value:d,onChange:u,ariaLabel:e("toastPositionDesktop")})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-3 md:flex-row md:items-center md:justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e("toastPositionMobile")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("toastPositionMobileDescription")})]}),(0,t.jsx)(eT,{value:h,onChange:m,ariaLabel:e("toastPositionMobile")})]})]})]})},eL=()=>{let e=(0,n.useTranslations)("settings.auth"),a=(0,n.useTranslations)("common"),i=(0,K.default)(e=>e.hasAuthPassword),o=(0,K.default)(e=>e.changePassword),[c,d]=(0,r.useState)(""),[h,m]=(0,r.useState)(!1),p=h&&c.trim().length>=4,f=e=>{d(e),m(!0)};return(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsxs)(P.Field,{children:[(0,t.jsx)(P.FieldLabel,{htmlFor:"auth-password",children:e("changePassword")}),(0,t.jsx)(P.FieldDescription,{children:e("changePasswordDescription")}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(I.Input,{id:"auth-password",placeholder:i?e("newPasswordPlaceholder"):e("passwordPlaceholder"),value:c,onChange:e=>f(e.target.value)}),(0,t.jsx)(A.Button,{variant:"outline",size:"icon",className:"shrink-0",onClick:()=>{let e;return f((e=new Uint8Array(8),crypto.getRandomValues(e),Array.from(e,e=>e.toString(16).padStart(2,"0")).join("").slice(0,8)))},children:(0,t.jsx)(u.Dices,{className:"h-4 w-4"})})]})]}),(0,t.jsx)(P.FieldDescription,{children:e("resetHint",{action:s.default?e("restartApp"):e("restartServer")})}),(0,t.jsx)("div",{className:"flex justify-end",children:(0,t.jsx)(A.Button,{disabled:!p,onClick:()=>{o(c.trim()),d(""),m(!1),l.toast.success(e("savedRestart",{action:s.default?e("restartAppAction"):e("restartServerAction")}))},children:a("save")})})]})},eP=()=>{let e=(0,n.useTranslations)("settings.system"),a=(0,n.useTranslations)("common"),i=(0,K.default)(e=>e.systemResourcesEnabled),o=(0,K.default)(e=>e.setSystemResourcesEnabled),c=(0,K.default)(e=>e.networkAccess),d=(0,K.default)(e=>e.setNetworkAccess),u=(0,K.default)(e=>e.hostEnvLocked),h=(0,K.default)(e=>e.bindHostIsLocal),[m,f]=(0,r.useState)(!1),x=async()=>{f(!0);try{let t=await fetch("/api/uploads/cleanup",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({mode:"all"})});if(!t.ok)throw Error(`HTTP ${t.status}`);let r=await t.json();r.deleted>0?l.toast.success(e("attachedImagesCleaned",{count:r.deleted})):l.toast.info(e("attachedImagesNothing"))}catch{l.toast.error(a("error"))}finally{f(!1)}},[g,v]=(0,r.useState)(c);(0,r.useEffect)(()=>{v(c)},[c]);let y=g!==c,w=h&&"localhost"!==g;return(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsxs)("div",{className:"flex items-start gap-2",children:[(0,t.jsx)(b.Network,{className:"mt-0.5 h-4 w-4 text-muted-foreground"}),(0,t.jsxs)("div",{className:"flex-1 space-y-0.5",children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e("networkAccess")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:u?e("networkAccessLocked"):e("networkAccessDescription")})]})]}),(0,t.jsx)(z.RadioGroup,{value:g,onValueChange:e=>v(e),disabled:u,className:"gap-2",children:["localhost","tailscale","all"].map(r=>(0,t.jsxs)("label",{htmlFor:`network-access-${r}`,className:"flex cursor-pointer items-start gap-3 rounded-md border bg-background px-3 py-2.5 aria-disabled:cursor-not-allowed aria-disabled:opacity-60","aria-disabled":u||void 0,children:[(0,t.jsx)(z.RadioGroupItem,{value:r,id:`network-access-${r}`,className:"mt-0.5"}),(0,t.jsxs)("div",{className:"flex-1 space-y-0.5",children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e(`networkAccessOptions.${r}.label`)}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:e(`networkAccessOptions.${r}.description`)})]})]},r))}),!u&&(0,t.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:w?e("restartRequired"):""}),(0,t.jsx)(A.Button,{size:"sm",onClick:()=>{d(g),l.toast.success(w?e("restartRequired"):a("saved"))},disabled:!y,children:a("save")})]})]}),s.default&&(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"space-y-0.5",children:[(0,t.jsx)(O.Label,{htmlFor:"system-resources",className:"text-sm font-medium",children:e("showResources")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("showResourcesDescription")})]}),(0,t.jsx)(L.Switch,{id:"system-resources",checked:i,onCheckedChange:o})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-3 md:flex-row md:items-center md:justify-between",children:[(0,t.jsxs)("div",{className:"flex items-start gap-2",children:[(0,t.jsx)(p.ImageIcon,{className:"mt-0.5 h-4 w-4 shrink-0 text-muted-foreground"}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e("attachedImages")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("attachedImagesDescription")})]})]}),(0,t.jsxs)(A.Button,{variant:"outline",size:"sm",className:"gap-1.5 shrink-0",onClick:x,disabled:m,children:[(0,t.jsx)(M.Trash2,{className:"h-3.5 w-3.5"}),e("cleanAttachedImages")]})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-3 md:flex-row md:items-center md:justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e("tmuxReset")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("tmuxResetDescription",{action:s.default?e("restartApp"):e("restartServer")})})]}),(0,t.jsxs)(V.AlertDialog,{children:[(0,t.jsx)(V.AlertDialogTrigger,{render:(0,t.jsxs)(A.Button,{variant:"destructive",size:"sm",className:"gap-1.5 shrink-0",children:[(0,t.jsx)(k.RotateCcw,{className:"h-3.5 w-3.5"}),a("reset")]})}),(0,t.jsxs)(V.AlertDialogContent,{children:[(0,t.jsxs)(V.AlertDialogHeader,{children:[(0,t.jsx)(V.AlertDialogTitle,{children:e("tmuxReset")}),(0,t.jsx)(V.AlertDialogDescription,{children:e("tmuxResetConfirm")})]}),(0,t.jsxs)(V.AlertDialogFooter,{children:[(0,t.jsx)(V.AlertDialogCancel,{children:a("cancel")}),(0,t.jsx)(V.AlertDialogAction,{className:"bg-ui-red hover:bg-ui-red/80",onClick:()=>{window.location.href="/reset"},children:a("reset")})]})]})]})]})]})};e.s(["default",0,({open:e,onOpenChange:l})=>{let a=(0,n.useTranslations)("settings"),i=(0,n.useTranslations)("common"),[o,c]=(0,r.useState)("general"),d=ek.find(e=>e.id===o);return(0,t.jsx)(B.Dialog,{open:e,onOpenChange:l,children:(0,t.jsx)(B.DialogContent,{className:"inset-0 max-w-none sm:max-w-none translate-x-0 translate-y-0 gap-0 overflow-hidden rounded-none p-0 md:inset-auto md:top-1/2 md:left-1/2 md:h-auto md:w-[calc(100%-2rem)] md:min-w-3xl md:max-w-3xl md:-translate-x-1/2 md:-translate-y-1/2 md:rounded-xl",showCloseButton:!1,children:(0,t.jsxs)("div",{className:"flex h-full min-h-0 min-w-0 w-full flex-col overflow-hidden md:h-[520px] md:flex-row",children:[(0,t.jsxs)("div",{className:"flex shrink-0 flex-col border-b bg-muted/30 px-3 pt-3 pb-0 md:p-3 md:w-48 md:border-b-0 md:border-r",children:[(0,t.jsxs)("div",{className:"mb-2 flex items-center justify-between px-2 md:mb-4",children:[(0,t.jsx)(B.DialogTitle,{className:"text-base font-semibold",children:a("title")}),(0,t.jsxs)(A.Button,{variant:"ghost",size:"icon",onClick:()=>l(!1),className:"h-6 w-6 opacity-70 hover:opacity-100",children:[(0,t.jsx)(E.X,{className:"h-[18px] w-[18px]"}),(0,t.jsx)("span",{className:"sr-only",children:i("close")})]})]}),(0,t.jsx)("nav",{className:"flex gap-1 overflow-x-auto px-1 pb-2 md:flex-col md:px-0 md:pb-0",children:ek.filter(e=>!e.electronOnly||s.default).map(e=>(0,t.jsxs)(A.Button,{variant:"ghost",onClick:()=>c(e.id),className:(0,q.cn)("shrink-0 justify-start gap-2 whitespace-nowrap px-3 py-2 text-sm font-medium md:gap-3",o===e.id?"bg-accent text-accent-foreground":"text-muted-foreground hover:bg-accent/50 hover:text-accent-foreground"),children:[e.icon,a(`tabs.${e.labelKey}`)]},e.id))})]}),(0,t.jsxs)("div",{className:"min-h-0 min-w-0 flex-1 overflow-x-hidden overflow-y-auto p-4 md:p-6",children:[(0,t.jsx)("h2",{className:"mb-6 text-lg font-semibold",children:d?a(`tabs.${d.labelKey}`):""}),"general"===o&&(0,t.jsx)(eC,{}),"appearance"===o&&(0,t.jsx)(eN,{}),"terminal"===o&&(0,t.jsx)(eR,{}),"notification"===o&&(0,t.jsx)(eI,{}),"editor"===o&&(0,t.jsx)(eD,{}),"claude"===o&&(0,t.jsx)(eA,{}),"auth"===o&&(0,t.jsx)(eL,{}),"tailscale"===o&&(0,t.jsx)(ew,{}),"quick-prompts"===o&&(0,t.jsx)($.default,{}),"sidebar-items"===o&&(0,t.jsx)(eu,{}),"system"===o&&(0,t.jsx)(eP,{})]})]})})})}],934048)}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,162591,202526,34776,638084,92684,e=>{"use strict";e.s([],162591),e.i(350461);var t=e.i(191788),r=e.i(536394),n=e.i(656124),l=e.i(25104),a=e.i(95349),i=e.i(232897),s=e.i(772610),o=e.i(360233),c=e.i(426984),d=e.i(848328),u=e.i(855604),h=e.i(967529),m=e.i(475048),p=e.i(85150),f=e.i(536164);function x(e,t,r){switch(e){case"vertical":return t;case"horizontal":return r;default:return t||r}}function g(e,t){return x(t,e===f.ARROW_UP||e===f.ARROW_DOWN,e===f.ARROW_LEFT||e===f.ARROW_RIGHT)}function v(e,t,r){return x(t,e===f.ARROW_DOWN,r?e===f.ARROW_LEFT:e===f.ARROW_RIGHT)||"Enter"===e||" "===e||""===e}e.s(["useListNavigation",0,function(e,y){let b="rootStore"in e?e.rootStore:e,w=b.useState("open"),k=b.useState("floatingElement"),j=b.useState("domReferenceElement"),S=b.context.dataRef,{listRef:C,activeIndex:M,onNavigate:N=()=>{},enabled:E=!0,selectedIndex:R=null,allowEscape:D=!1,loopFocus:A=!1,nested:T=!1,rtl:I=!1,virtual:L=!1,focusItemOnOpen:P="auto",focusItemOnHover:O=!0,openOnArrowKeyDown:z=!0,disabledIndices:F,orientation:B="vertical",parentOrientation:V,cols:H=1,id:q,resetOnPointerLeave:U=!0,externalTree:K}=y,G=(0,o.getFloatingFocusElement)(k),W=(0,n.useValueAsRef)(G),_=(0,u.useFloatingParentNodeId)(),Y=(0,u.useFloatingTree)(K);(0,a.useIsoLayoutEffect)(()=>{S.current.orientation=B},[S,B]);let $=(0,o.isTypeableCombobox)(j),X=t.useRef(P),J=t.useRef(R??-1),Z=t.useRef(null),Q=t.useRef(!0),ee=(0,l.useStableCallback)(e=>{N(-1===J.current?null:J.current,e)}),et=t.useRef(ee),er=t.useRef(!!k),en=t.useRef(w),el=t.useRef(!1),ea=t.useRef(!1),ei=t.useRef(null),es=(0,n.useValueAsRef)(F),eo=(0,n.useValueAsRef)(w),ec=(0,n.useValueAsRef)(R),ed=(0,n.useValueAsRef)(U),eu=(0,l.useStableCallback)(()=>{function e(e){L?Y?.events.emit("virtualfocus",e):ei.current=(0,p.enqueueFocus)(e,{sync:el.current,preventScroll:!0})}let t=C.current[J.current],r=ea.current;t&&e(t),(el.current?e=>e():requestAnimationFrame)(()=>{let n=C.current[J.current]||t;!n||(t||e(n),ep&&(r||!Q.current)&&n.scrollIntoView?.({block:"nearest",inline:"nearest"}))})});(0,a.useIsoLayoutEffect)(()=>{E&&(w&&k?(J.current=R??-1,X.current&&null!=R&&(ea.current=!0,ee())):er.current&&(J.current=-1,et.current()))},[E,w,k,R,ee]),(0,a.useIsoLayoutEffect)(()=>{if(E){if(!w){el.current=!1;return}if(k)if(null==M){if(el.current=!1,null!=ec.current)return;if(er.current&&(J.current=-1,eu()),(!en.current||!er.current)&&X.current&&(null!=Z.current||!0===X.current&&null==Z.current)){let e=0,t=()=>{null==C.current[0]?(e<2&&(e?requestAnimationFrame:queueMicrotask)(t),e+=1):(J.current=null==Z.current||v(Z.current,B,I)||T?(0,d.getMinListIndex)(C):(0,d.getMaxListIndex)(C),Z.current=null,ee())};t()}}else(0,d.isIndexOutOfListBounds)(C.current,M)||(J.current=M,eu(),ea.current=!1)}},[E,w,k,M,ec,T,C,B,I,ee,eu,es]),(0,a.useIsoLayoutEffect)(()=>{if(!E||k||!Y||L||!er.current)return;let e=Y.nodesRef.current,t=e.find(e=>e.id===_)?.context?.elements.floating,r=(0,s.activeElement)((0,i.ownerDocument)(k)),n=e.some(e=>e.context&&(0,s.contains)(e.context.elements.floating,r));t&&!n&&Q.current&&t.focus({preventScroll:!0})},[E,k,Y,_,L]),(0,a.useIsoLayoutEffect)(()=>{et.current=ee,en.current=w,er.current=!!k}),(0,a.useIsoLayoutEffect)(()=>{w||(Z.current=null,X.current=P)},[w,P]);let eh=null!=M,em=(0,l.useStableCallback)(e=>{if(!eo.current)return;let t=C.current.indexOf(e.currentTarget);-1!==t&&(J.current!==t||M!==t)&&(J.current=t,ee(e))}),ep=t.useMemo(()=>({onFocus(e){el.current=!0,em(e)},onClick:({currentTarget:e})=>e.focus({preventScroll:!0}),onMouseMove(e){el.current=!0,ea.current=!1,O&&em(e)},onPointerLeave(e){let t;if(!eo.current||!Q.current||"touch"===e.pointerType)return;el.current=!0;let r=e.relatedTarget;if(!((t=e.currentTarget.getBoundingClientRect()).top+1<=e.clientY&&e.clientY<=t.bottom-1&&t.left+1<=e.clientX&&e.clientX<=t.right-1||!O||C.current.includes(r))&&ed.current&&(ei.current?.(),ei.current=null,J.current=-1,ee(e),!L)){let e=W.current,t=(0,s.activeElement)((0,i.ownerDocument)(e));e&&(0,s.contains)(e,t)&&e.focus({preventScroll:!0})}}}),[em,eo,W,O,C,ee,ed,L]),ef=t.useCallback(()=>V??Y?.nodesRef.current.find(e=>e.id===_)?.context?.dataRef?.current.orientation,[_,Y,V]),ex=(0,l.useStableCallback)(e=>{var t;let n,l;if(Q.current=!1,el.current=!0,229===e.which||!eo.current&&e.currentTarget===W.current)return;if(T&&(t=e.key,n=I?t===f.ARROW_RIGHT:t===f.ARROW_LEFT,l=t===f.ARROW_UP,"both"===B||"horizontal"===B&&H&&H>1?"Escape"===t:x(B,n,l))){g(e.key,ef())||(0,c.stopEvent)(e),b.setOpen(!1,(0,h.createChangeEventDetails)(m.REASONS.listNavigation,e.nativeEvent)),(0,r.isHTMLElement)(j)&&(L?Y?.events.emit("virtualfocus",j):j.focus());return}let a=J.current,i=(0,d.getMinListIndex)(C,F),o=(0,d.getMaxListIndex)(C,F);if($||("Home"===e.key&&((0,c.stopEvent)(e),J.current=i,ee(e)),"End"===e.key&&((0,c.stopEvent)(e),J.current=o,ee(e))),H>1){let t=Array.from({length:C.current.length},()=>({width:1,height:1})),r=(0,d.createGridCellMap)(t,H,!1),n=r.findIndex(e=>null!=e&&!(0,d.isListIndexDisabled)(C.current,e,F)),l=r.reduce((e,t,r)=>null==t||(0,d.isListIndexDisabled)(C.current,t,F)?e:r,-1),a=r[(0,d.getGridNavigatedIndex)(r.map(e=>null!=e?C.current[e]:null),{event:e,orientation:B,loopFocus:A,rtl:I,cols:H,disabledIndices:(0,d.getGridCellIndices)([...("function"!=typeof F?F:null)||C.current.map((e,t)=>(0,d.isListIndexDisabled)(C.current,t,F)?t:void 0),void 0],r),minIndex:n,maxIndex:l,prevIndex:(0,d.getGridCellIndexOfCorner)(J.current>o?i:J.current,t,r,H,e.key===f.ARROW_DOWN?"bl":e.key===(I?f.ARROW_LEFT:f.ARROW_RIGHT)?"tr":"tl"),stopEvent:!0})];if(null!=a&&(J.current=a,ee(e)),"both"===B)return}if(g(e.key,B)){if((0,c.stopEvent)(e),w&&!L&&(0,s.activeElement)(e.currentTarget.ownerDocument)===e.currentTarget){J.current=v(e.key,B,I)?i:o,ee(e);return}v(e.key,B,I)?A?a>=o?D&&a!==C.current.length?J.current=-1:(el.current=!1,J.current=i):J.current=(0,d.findNonDisabledListIndex)(C.current,{startingIndex:a,disabledIndices:F}):J.current=Math.min(o,(0,d.findNonDisabledListIndex)(C.current,{startingIndex:a,disabledIndices:F})):A?a<=i?D&&-1!==a?J.current=C.current.length:(el.current=!1,J.current=o):J.current=(0,d.findNonDisabledListIndex)(C.current,{startingIndex:a,decrement:!0,disabledIndices:F}):J.current=Math.max(i,(0,d.findNonDisabledListIndex)(C.current,{startingIndex:a,decrement:!0,disabledIndices:F})),(0,d.isIndexOutOfListBounds)(C.current,J.current)&&(J.current=-1),ee(e)}}),eg=t.useMemo(()=>L&&w&&eh&&{"aria-activedescendant":`${q}-${M}`},[L,w,eh,q,M]),ev=t.useMemo(()=>({"aria-orientation":"both"===B?void 0:B,...!$?eg:{},onKeyDown(e){if("Tab"===e.key&&e.shiftKey&&w&&!L){let t=(0,s.getTarget)(e.nativeEvent);if(t&&!(0,s.contains)(W.current,t))return;(0,c.stopEvent)(e),b.setOpen(!1,(0,h.createChangeEventDetails)(m.REASONS.focusOut,e.nativeEvent)),(0,r.isHTMLElement)(j)&&j.focus();return}ex(e)},onPointerMove(){Q.current=!0}}),[eg,ex,W,B,$,b,w,L,j]),ey=t.useMemo(()=>{function e(e){"auto"===P&&(0,c.isVirtualClick)(e.nativeEvent)&&(X.current=!L)}function t(e){X.current=P,"auto"===P&&(0,c.isVirtualPointerEvent)(e.nativeEvent)&&(X.current=!0)}return{onKeyDown(e){var t,r;let n=b.select("open");Q.current=!1;let l=e.key.startsWith("Arrow"),a=(t=e.key,r=ef(),x(r,I?t===f.ARROW_LEFT:t===f.ARROW_RIGHT,t===f.ARROW_DOWN)),i=g(e.key,B),s=(T?a:i)||"Enter"===e.key||""===e.key.trim();if(L&&n)return ex(e);if(n||z||!l){if(s){let t=g(e.key,ef());Z.current=T&&t?null:e.key}if(T){a&&((0,c.stopEvent)(e),n?(J.current=(0,d.getMinListIndex)(C,es.current),ee(e)):b.setOpen(!0,(0,h.createChangeEventDetails)(m.REASONS.listNavigation,e.nativeEvent,e.currentTarget)));return}i&&(null!=ec.current&&(J.current=ec.current),(0,c.stopEvent)(e),!n&&z?b.setOpen(!0,(0,h.createChangeEventDetails)(m.REASONS.listNavigation,e.nativeEvent,e.currentTarget)):ex(e),n&&ee(e))}},onFocus(e){b.select("open")&&!L&&(J.current=-1,ee(e))},onPointerDown:t,onPointerEnter:t,onMouseDown:e,onClick:e}},[ex,es,P,C,T,ee,b,z,B,ef,I,ec,L]),eb=t.useMemo(()=>({...eg,...ey}),[eg,ey]);return t.useMemo(()=>E?{reference:eb,floating:ev,item:ep,trigger:ey}:{},[E,eb,ev,ey,ep])}],202526);var y=e.i(242608);e.s(["useTypeahead",0,function(e,r){let n="rootStore"in e?e.rootStore:e,i=n.context.dataRef,o=n.useState("open"),{listRef:u,elementsRef:h,activeIndex:m,onMatch:p,onTypingChange:f,enabled:x=!0,resetMs:g=750,selectedIndex:v=null}=r,b=(0,y.useTimeout)(),w=t.useRef(""),k=t.useRef(v??m??-1),j=t.useRef(null);(0,a.useIsoLayoutEffect)(()=>{(o||null===v)&&(b.clear(),j.current=null,""!==w.current&&(w.current=""))},[o,v,b]),(0,a.useIsoLayoutEffect)(()=>{o&&""===w.current&&(k.current=v??m??-1)},[o,v,m]);let S=(0,l.useStableCallback)(e=>{e?i.current.typing||(i.current.typing=e,f?.(e)):i.current.typing&&(i.current.typing=e,f?.(e))}),C=(0,l.useStableCallback)(e=>{function t(e,r,n=0){if(0===e.length)return -1;let l=(n%e.length+e.length)%e.length,a=r.toLocaleLowerCase();for(let t=0;t<e.length;t+=1){let r=(l+t)%e.length,n=e[r];if(n?.toLocaleLowerCase().startsWith(a)&&function(e){let t=h?.current[e];return!t||(0,d.isElementVisible)(t)}(r))return r}return -1}let r=u.current;if(w.current.length>0&&" "===e.key&&((0,c.stopEvent)(e),S(!0)),w.current.length>0&&" "!==w.current[0]&&-1===t(r,w.current)&&" "!==e.key&&S(!1),null==r||1!==e.key.length||e.ctrlKey||e.metaKey||e.altKey)return;o&&" "!==e.key&&((0,c.stopEvent)(e),S(!0));let n=""===w.current;n&&(k.current=v??m??-1),r.every(e=>!e||e[0]?.toLocaleLowerCase()!==e[1]?.toLocaleLowerCase())&&w.current===e.key&&(w.current="",k.current=j.current),w.current+=e.key,b.start(g,()=>{w.current="",k.current=j.current,S(!1)});let l=n?v??m??-1:k.current,a=t(r,w.current,(l??0)+1);-1!==a?(p?.(a),j.current=a):" "!==e.key&&(w.current="",S(!1))}),M=(0,l.useStableCallback)(e=>{let t=e.relatedTarget,r=n.select("domReferenceElement"),l=n.select("floatingElement"),a=(0,s.contains)(r,t),i=(0,s.contains)(l,t);a||i||(b.clear(),w.current="",k.current=j.current,S(!1))}),N=t.useMemo(()=>({onKeyDown:C,onBlur:M}),[C,M]),E=t.useMemo(()=>({onKeyDown:C,onBlur:M}),[C,M]);return t.useMemo(()=>x?{reference:N,floating:E}:{},[x,N,E])}],34776);var b=e.i(579907);let w=t.createContext(null),k=t.createContext(null);function j(e,t,r){return null==e||null==t?Object.is(e,t):r(e,t)}e.s(["SelectFloatingContext",0,k,"SelectRootContext",0,w,"useSelectFloatingContext",0,function(){let e=t.useContext(k);if(null===e)throw Error((0,b.default)(61));return e},"useSelectRootContext",0,function(){let e=t.useContext(w);if(null===e)throw Error((0,b.default)(60));return e}],638084),e.s(["compareItemEquality",0,j,"defaultItemEquality",0,(e,t)=>Object.is(e,t),"findItemIndex",0,function(e,t,r){return e&&0!==e.length?e.findIndex(e=>void 0!==e&&j(e,t,r)):-1},"removeItem",0,function(e,t,r){return e.filter(e=>!j(t,e,r))},"selectedValueIncludes",0,function(e,t,r){return!!e&&0!==e.length&&e.some(e=>void 0!==e&&j(t,e,r))}],92684)},567284,e=>{"use strict";e.s(["serializeValue",0,function(e){if(null==e)return"";if("string"==typeof e)return e;try{return JSON.stringify(e)}catch{return String(e)}}])},851410,356840,327421,81798,822022,667499,33478,587015,348594,917268,968515,419203,258281,818235,926616,466570,535274,48665,87474,e=>{"use strict";var t=e.i(191788),r=e.i(931497),n=e.i(978054),l=e.i(713579),a=e.i(937425),i=e.i(532932),s=e.i(176955),o=e.i(95349),c=e.i(25104),d=e.i(656124),u=e.i(225644),h=e.i(978730),m=e.i(735859),p=e.i(674316),f=e.i(105721),x=e.i(414224),g=e.i(202526),v=e.i(34776),y=e.i(638084),b=e.i(663735),w=e.i(560023),k=e.i(112572),j=e.i(994142),S=e.i(659594),C=e.i(92684),M=e.i(567284),N=e.i(391398);function E(e){return null!=e&&e.length>0&&"object"==typeof e[0]&&null!=e[0]&&"items"in e[0]}function R(e,t){if(t&&null!=e)return t(e)??"";if(e&&"object"==typeof e){if("label"in e&&null!=e.label)return String(e.label);if("value"in e)return String(e.value)}return(0,M.serializeValue)(e)}function D(e,t){return t&&null!=e?t(e)??"":e&&"object"==typeof e&&"value"in e&&"label"in e?(0,M.serializeValue)(e.value):(0,M.serializeValue)(e)}function A(e,t,r){if(r&&null!=e)return r(e);if(e&&"object"==typeof e&&"label"in e&&null!=e.label)return e.label;if(t&&!Array.isArray(t))return t[e]??R(e,r);if(Array.isArray(t)){let n=E(t)?t.flatMap(e=>e.items):t;if(null==e||"object"!=typeof e){let t=n.find(t=>t.value===e);return t&&null!=t.label?t.label:R(e,r)}if("value"in e){let t=n.find(t=>t&&t.value===e.value);if(t&&null!=t.label)return t.label}}return R(e,r)}let T={id:(0,S.createSelector)(e=>e.id),labelId:(0,S.createSelector)(e=>e.labelId),modal:(0,S.createSelector)(e=>e.modal),multiple:(0,S.createSelector)(e=>e.multiple),items:(0,S.createSelector)(e=>e.items),itemToStringLabel:(0,S.createSelector)(e=>e.itemToStringLabel),itemToStringValue:(0,S.createSelector)(e=>e.itemToStringValue),isItemEqualToValue:(0,S.createSelector)(e=>e.isItemEqualToValue),value:(0,S.createSelector)(e=>e.value),hasSelectedValue:(0,S.createSelector)(e=>{let{value:t,multiple:r,itemToStringValue:n}=e;return null!=t&&(r&&Array.isArray(t)?t.length>0:""!==D(t,n))}),hasNullItemLabel:(0,S.createSelector)((e,t)=>!!t&&function(e){if(!Array.isArray(e))return null!=e&&"null"in e;if(E(e)){for(let t of e)for(let e of t.items)if(e&&null==e.value&&null!=e.label)return!0;return!1}for(let t of e)if(t&&null==t.value&&null!=t.label)return!0;return!1}(e.items)),open:(0,S.createSelector)(e=>e.open),mounted:(0,S.createSelector)(e=>e.mounted),forceMount:(0,S.createSelector)(e=>e.forceMount),transitionStatus:(0,S.createSelector)(e=>e.transitionStatus),openMethod:(0,S.createSelector)(e=>e.openMethod),activeIndex:(0,S.createSelector)(e=>e.activeIndex),selectedIndex:(0,S.createSelector)(e=>e.selectedIndex),isActive:(0,S.createSelector)((e,t)=>e.activeIndex===t),isSelected:(0,S.createSelector)((e,t,r)=>{let n=e.isItemEqualToValue,l=e.value;return e.multiple?Array.isArray(l)&&l.some(e=>(0,C.compareItemEquality)(r,e,n)):e.selectedIndex===t&&null!==e.selectedIndex||(0,C.compareItemEquality)(r,l,n)}),isSelectedByFocus:(0,S.createSelector)((e,t)=>e.selectedIndex===t),popupProps:(0,S.createSelector)(e=>e.popupProps),triggerProps:(0,S.createSelector)(e=>e.triggerProps),triggerElement:(0,S.createSelector)(e=>e.triggerElement),positionerElement:(0,S.createSelector)(e=>e.positionerElement),listElement:(0,S.createSelector)(e=>e.listElement),scrollUpArrowVisible:(0,S.createSelector)(e=>e.scrollUpArrowVisible),scrollDownArrowVisible:(0,S.createSelector)(e=>e.scrollDownArrowVisible),hasScrollArrows:(0,S.createSelector)(e=>e.hasScrollArrows)};var I=e.i(967529),L=e.i(475048),P=e.i(118303),O=e.i(508430),z=e.i(562912),F=e.i(138252),B=e.i(748030);function V(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function H(e,t){return Math.max(0,e-t)}function q(e,t){if(t<=0)return 0;let r=V(e,0,t),n=t-r,l=r<=1,a=n<=1;return l&&a?r<=n?0:t:l?0:a?t:r}var U=e.i(977848);e.s(["SelectRoot",0,function(e){let{id:S,value:M,defaultValue:E=null,onValueChange:A,open:V,defaultOpen:K=!1,onOpenChange:G,name:W,form:_,autoComplete:Y,disabled:$=!1,readOnly:X=!1,required:J=!1,modal:Z=!0,actionsRef:Q,inputRef:ee,onOpenChangeComplete:et,items:er,multiple:en=!1,itemToStringLabel:el,itemToStringValue:ea,isItemEqualToValue:ei=C.defaultItemEquality,highlightItemOnHover:es=!0,children:eo}=e,{clearErrors:ec}=(0,O.useFormContext)(),{setDirty:ed,setTouched:eu,setFocused:eh,shouldValidateOnChange:em,validityData:ep,setFilled:ef,name:ex,disabled:eg,validation:ev,validationMode:ey}=(0,b.useFieldRootContext)(),eb=(0,k.useLabelableId)({id:S}),ew=eg||$,ek=ex??W,[ej,eS]=(0,s.useControlled)({controlled:M,default:en?E??z.EMPTY_ARRAY:E,name:"Select",state:"value"}),[eC,eM]=(0,s.useControlled)({controlled:V,default:K,name:"Select",state:"open"}),eN=t.useRef([]),eE=t.useRef([]),eR=t.useRef(null),eD=t.useRef(null),eA=t.useRef(0),eT=t.useRef(null),eI=t.useRef([]),eL=t.useRef(!1),eP=t.useRef(!1),eO=t.useRef(null),ez=t.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1}),eF=t.useRef(!1),{mounted:eB,setMounted:eV,transitionStatus:eH}=(0,j.useTransitionStatus)(eC),{openMethod:eq,triggerProps:eU}=(0,B.useOpenInteractionType)(eC),eK=(0,l.useRefWithInit)(()=>new h.Store({id:eb,labelId:void 0,modal:Z,multiple:en,itemToStringLabel:el,itemToStringValue:ea,isItemEqualToValue:ei,value:ej,open:eC,mounted:eB,transitionStatus:eH,items:er,forceMount:!1,openMethod:null,activeIndex:null,selectedIndex:null,popupProps:{},triggerProps:{},triggerElement:null,positionerElement:null,listElement:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1,hasScrollArrows:!1})).current,eG=(0,u.useStore)(eK,T.activeIndex),eW=(0,u.useStore)(eK,T.selectedIndex),e_=(0,u.useStore)(eK,T.triggerElement),eY=(0,u.useStore)(eK,T.positionerElement),e$=(0,i.usePreviousValue)(eq),eX=eq??e$,eJ=t.useMemo(()=>en&&Array.isArray(ej)&&0===ej.length?"":D(ej,ea),[en,ej,ea]),eZ=t.useMemo(()=>en&&Array.isArray(ej)?ej.map(e=>D(e,ea)):D(ej,ea),[en,ej,ea]),eQ=(0,d.useValueAsRef)(eK.state.triggerElement),e0=(0,c.useStableCallback)(()=>eZ);(0,w.useRegisterFieldControl)(eQ,{id:eb,value:ej,getValue:e0});let e1=t.useRef(ej);(0,o.useIsoLayoutEffect)(()=>{ej!==e1.current&&eK.set("forceMount",!0)},[eK,ej]),(0,o.useIsoLayoutEffect)(()=>{ef(en?Array.isArray(ej)&&ej.length>0:null!=ej)},[en,ej,ef]),(0,o.useIsoLayoutEffect)(function(){if(eC)return;let e=eI.current;if(en){let t=Array.isArray(ej)?ej:[];if(0===t.length)return void eK.set("selectedIndex",null);let r=t[t.length-1],n=(0,C.findItemIndex)(e,r,ei);return void eK.set("selectedIndex",-1===n?null:n)}let t=(0,C.findItemIndex)(e,ej,ei);eK.set("selectedIndex",-1===t?null:t)},[en,eC,ej,eI,ei,eK]),(0,F.useValueChanged)(ej,()=>{ec(ek),ed(ej!==ep.initialValue),em()?ev.commit(ej):ev.commit(ej,!0)});let e2=(0,c.useStableCallback)((e,t)=>{if(G?.(e,t),!t.isCanceled&&(eM(e),e||t.reason!==L.REASONS.focusOut&&t.reason!==L.REASONS.outsidePress||(eu(!0),eh(!1),"onBlur"===ey&&ev.commit(ej)),!e&&null!==eK.state.activeIndex)){let e=eN.current[eK.state.activeIndex];queueMicrotask(()=>{e?.setAttribute("tabindex","-1")})}}),e3=(0,c.useStableCallback)(()=>{eV(!1),eK.update({activeIndex:null,openMethod:null}),et?.(!1)});(0,P.useOpenChangeComplete)({enabled:!Q,open:eC,ref:eR,onComplete(){eC||e3()}}),t.useImperativeHandle(Q,()=>({unmount:e3}),[e3]);let e5=(0,c.useStableCallback)((e,t)=>{A?.(e,t),t.isCanceled||eS(e)}),e4=(0,c.useStableCallback)(()=>{let e=eK.state.listElement||eR.current;if(!e)return;let t=H(e.scrollHeight,e.clientHeight),r=q(e.scrollTop,t),n=r>0,l=r<t;eK.state.scrollUpArrowVisible!==n&&eK.set("scrollUpArrowVisible",n),eK.state.scrollDownArrowVisible!==l&&eK.set("scrollDownArrowVisible",l)}),e6=(0,f.useFloatingRootContext)({open:eC,onOpenChange:e2,elements:{reference:e_,floating:eY}}),e8=(0,m.useClick)(e6,{enabled:!X&&!ew,event:"mousedown"}),e9=(0,p.useDismiss)(e6,{bubbles:!1}),e7=(0,g.useListNavigation)(e6,{enabled:!X&&!ew,listRef:eN,activeIndex:eG,selectedIndex:eW,disabledIndices:z.EMPTY_ARRAY,onNavigate(e){(null!==e||eC)&&eK.set("activeIndex",e)},focusItemOnHover:es}),te=(0,v.useTypeahead)(e6,{enabled:!X&&!ew&&(eC||!en),listRef:eE,activeIndex:eG,selectedIndex:eW,onMatch(e){eC?eK.set("activeIndex",e):e5(eI.current[e],(0,I.createChangeEventDetails)("none"))},onTypingChange(e){eL.current=e}}),{getReferenceProps:tt,getFloatingProps:tr,getItemProps:tn}=(0,x.useInteractions)([e8,e9,e7,te]),tl=t.useMemo(()=>(0,U.mergeProps)(tt(),eU,eb?{id:eb}:z.EMPTY_OBJECT),[tt,eU,eb]);(0,a.useOnFirstRender)(()=>{eK.update({popupProps:tr(),triggerProps:tl})}),(0,o.useIsoLayoutEffect)(()=>{eK.update({id:eb,modal:Z,multiple:en,value:ej,open:eC,mounted:eB,transitionStatus:eH,popupProps:tr(),triggerProps:tl,items:er,itemToStringLabel:el,itemToStringValue:ea,isItemEqualToValue:ei,openMethod:eX})},[eK,eb,Z,en,ej,eC,eB,eH,tr,tl,er,el,ea,ei,eX]);let ta=t.useMemo(()=>({store:eK,name:ek,required:J,disabled:ew,readOnly:X,multiple:en,itemToStringLabel:el,itemToStringValue:ea,highlightItemOnHover:es,setValue:e5,setOpen:e2,listRef:eN,popupRef:eR,scrollHandlerRef:eD,handleScrollArrowVisibility:e4,scrollArrowsMountedCountRef:eA,getItemProps:tn,events:e6.context.events,valueRef:eT,valuesRef:eI,labelsRef:eE,typingRef:eL,selectionRef:ez,selectedItemTextRef:eO,validation:ev,onOpenChangeComplete:et,keyboardActiveRef:eP,alignItemWithTriggerActiveRef:eF,initialValueRef:e1}),[eK,ek,J,ew,X,en,el,ea,es,e5,e2,tn,e6.context.events,ev,et,e4]),ti=(0,n.useMergedRefs)(ee,ev.inputRef),ts=en&&Array.isArray(ej)&&ej.length>0,to=en?void 0:ek,tc=t.useMemo(()=>en&&Array.isArray(ej)&&ek?ej.map(e=>{let t=D(e,ea);return(0,N.jsx)("input",{type:"hidden",form:_,name:ek,value:t},t)}):null,[en,ej,_,ek,ea]);return(0,N.jsx)(y.SelectRootContext.Provider,{value:ta,children:(0,N.jsxs)(y.SelectFloatingContext.Provider,{value:e6,children:[eo,(0,N.jsx)("input",{...ev.getInputValidationProps({onFocus(){eK.state.triggerElement?.focus({focusVisible:!0})},onChange(e){if(e.nativeEvent.defaultPrevented)return;let t=e.currentTarget.value,r=(0,I.createChangeEventDetails)(L.REASONS.none,e.nativeEvent);eK.set("forceMount",!0),queueMicrotask(function(){if(en)return;let e=eI.current.find(e=>D(e,ea).toLowerCase()===t.toLowerCase()||R(e,el).toLowerCase()===t.toLowerCase());null!=e&&(ed(e!==ep.initialValue),e5(e,r),em()&&ev.commit(e))})}}),id:eb&&null==to?`${eb}-hidden-input`:void 0,form:_,name:to,autoComplete:Y,value:eJ,disabled:ew,required:J&&!ts,readOnly:X,ref:ti,style:ek?r.visuallyHiddenInput:r.visuallyHidden,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),tc]})})}],851410),e.i(350461);var K=e.i(950438),G=e.i(963934),W=e.i(841807);let _=t.forwardRef(function(e,t){let{render:r,className:n,style:l,...a}=e;delete a.id;let i=(0,b.useFieldRootContext)(),{store:s}=(0,y.useSelectRootContext)(),o=(0,u.useStore)(s,T.triggerElement),c=(0,u.useStore)(s,T.id),d=null==c?void 0:`${c}-label`,h=(0,W.useLabel)({id:d,fallbackControlId:o?.id??c,setLabelId(e){s.set("labelId",e)}});return(0,K.useRenderElement)("div",e,{ref:t,state:i.state,props:[h,a],stateAttributesMapping:G.fieldValidityMapping})});e.s(["SelectLabel",0,_],356840);var Y=e.i(232897),$=e.i(242608),X=e.i(630260),J=e.i(469843),Z=e.i(537349);function Q(e){let t=e.getBoundingClientRect(),r=(0,Z.ownerWindow)(e),n=r.getComputedStyle(e,"::before"),l=r.getComputedStyle(e,"::after");if("none"===n.content&&"none"===l.content)return t;let a=parseFloat(n.width)||0,i=parseFloat(n.height)||0,s=parseFloat(l.width)||0,o=parseFloat(l.height)||0,c=Math.max(t.width,a,s),d=Math.max(t.height,i,o),u=c-t.width,h=d-t.height;return{left:t.left-u/2,right:t.right+u/2,top:t.top-h/2,bottom:t.bottom+h/2}}e.s(["getPseudoElementBounds",0,Q],327421);var ee=e.i(772610),et=e.i(360233),er=e.i(768802);let en={...J.pressableTriggerOpenStateMapping,...G.fieldValidityMapping,value:()=>null},el=t.forwardRef(function(e,r){let{render:l,className:a,id:i,disabled:s=!1,nativeButton:o=!0,style:h,...m}=e,{setTouched:p,setFocused:f,validationMode:x,state:g,disabled:v}=(0,b.useFieldRootContext)(),{labelId:w}=(0,X.useLabelableContext)(),{store:j,setOpen:S,selectionRef:C,validation:M,readOnly:N,required:E,alignItemWithTriggerActiveRef:R,disabled:D,keyboardActiveRef:A}=(0,y.useSelectRootContext)(),P=v||D||s,O=(0,u.useStore)(j,T.open),z=(0,u.useStore)(j,T.value),F=(0,u.useStore)(j,T.triggerProps),B=(0,u.useStore)(j,T.positionerElement),V=(0,u.useStore)(j,T.listElement),H=(0,u.useStore)(j,T.id),q=(0,u.useStore)(j,T.labelId),G=(0,u.useStore)(j,T.hasSelectedValue),W=!G&&O,_=(0,u.useStore)(j,T.hasNullItemLabel,W),J=i??H;(0,k.useLabelableId)({id:J});let Z=(0,d.useValueAsRef)(B),el=t.useRef(null),{getButtonProps:ea,buttonRef:ei}=(0,er.useButton)({disabled:P,native:o}),es=(0,c.useStableCallback)(e=>{j.set("triggerElement",e)}),eo=(0,n.useMergedRefs)(r,el,ei,es),ec=(0,$.useTimeout)(),ed=(0,$.useTimeout)(),eu=(0,$.useTimeout)(),eh=(0,$.useTimeout)();t.useEffect(()=>{if(O)return G||_?eh.start(200,()=>{C.current.allowUnselectedMouseUp=!0,eu.start(200,()=>{C.current.allowSelectedMouseUp=!0})}):eu.start(400,()=>{C.current.allowUnselectedMouseUp=!0,C.current.allowSelectedMouseUp=!0}),()=>{eu.clear(),eh.clear()};C.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1},ed.clear()},[O,G,_,C,ed,eu,eh]);let em=t.useMemo(()=>V?.id??(0,et.getFloatingFocusElement)(B)?.id,[V,B]),ep=(0,U.mergeProps)(F,{id:J,role:"combobox","aria-expanded":O?"true":"false","aria-haspopup":"listbox","aria-controls":O?em:void 0,"aria-labelledby":w??q,"aria-readonly":N||void 0,"aria-required":E||void 0,tabIndex:P?-1:0,ref:eo,onFocus(e){f(!0),O&&R.current&&S(!1,(0,I.createChangeEventDetails)(L.REASONS.none,e.nativeEvent)),ec.start(0,()=>{j.set("forceMount",!0)})},onBlur(e){(0,ee.contains)(B,e.relatedTarget)||(p(!0),f(!1),"onBlur"===x&&M.commit(z))},onPointerMove(){A.current=!1},onKeyDown(){A.current=!0},onMouseDown(e){if(O)return;let t=(0,Y.ownerDocument)(e.currentTarget);function r(e){if(!el.current)return;let t=e.target;if((0,ee.contains)(el.current,t)||(0,ee.contains)(Z.current,t)||t===el.current)return;let r=Q(el.current);e.clientX>=r.left-2&&e.clientX<=r.right+2&&e.clientY>=r.top-2&&e.clientY<=r.bottom+2||S(!1,(0,I.createChangeEventDetails)(L.REASONS.cancelOpen,e))}ed.start(0,()=>{t.addEventListener("mouseup",r,{once:!0})})}},M.getValidationProps,m,ea);ep.role="combobox";let ef={...g,open:O,disabled:P,value:z,readOnly:N,placeholder:!G};return(0,K.useRenderElement)("button",e,{ref:[r,el],state:ef,stateAttributesMapping:en,props:ep})});e.s(["SelectTrigger",0,el],81798);let ea={value:()=>null},ei=t.forwardRef(function(e,r){let{className:n,render:l,children:a,placeholder:i,style:s,...o}=e,{store:c,valueRef:d}=(0,y.useSelectRootContext)(),h=(0,u.useStore)(c,T.value),m=(0,u.useStore)(c,T.items),p=(0,u.useStore)(c,T.itemToStringLabel),f=(0,u.useStore)(c,T.hasSelectedValue),x=(0,u.useStore)(c,T.hasNullItemLabel,!f&&null!=i&&null==a),g=null;if("function"==typeof a)g=a(h);else if(null!=a)g=a;else if(f||null==i||x)if(Array.isArray(h))g=h.reduce((e,r,n)=>(n>0&&e.push(", "),e.push((0,N.jsx)(t.Fragment,{children:A(r,m,p)},n)),e),[]);else g=A(h,m,p);else g=i;return(0,K.useRenderElement)("span",e,{state:{value:h,placeholder:!f},ref:[r,d],props:[{children:g},o],stateAttributesMapping:ea})});e.s(["SelectValue",0,ei],822022);let es=t.forwardRef(function(e,t){let{className:r,render:n,style:l,...a}=e,{store:i}=(0,y.useSelectRootContext)(),s=(0,u.useStore)(i,T.open);return(0,K.useRenderElement)("span",e,{state:{open:s},ref:t,props:[{"aria-hidden":!0,children:"▼"},a],stateAttributesMapping:J.triggerOpenStateMapping})});e.s(["SelectIcon",0,es],667499);var eo=e.i(117767);let ec=t.createContext(void 0),ed=t.forwardRef(function(e,t){let{store:r}=(0,y.useSelectRootContext)(),n=(0,u.useStore)(r,T.mounted),l=(0,u.useStore)(r,T.forceMount);return n||l?(0,N.jsx)(ec.Provider,{value:!0,children:(0,N.jsx)(eo.FloatingPortal,{ref:t,...e})}):null});e.s(["SelectPortal",0,ed],33478);var eu=e.i(810377);let eh={...J.popupStateMapping,...eu.transitionStatusMapping},em=t.forwardRef(function(e,t){let{className:r,render:n,style:l,...a}=e,{store:i}=(0,y.useSelectRootContext)(),s=(0,u.useStore)(i,T.open),o=(0,u.useStore)(i,T.mounted),c=(0,u.useStore)(i,T.transitionStatus);return(0,K.useRenderElement)("div",e,{state:{open:s,transitionStatus:c},ref:t,props:[{role:"presentation",hidden:!o,style:{userSelect:"none",WebkitUserSelect:"none"}},a],stateAttributesMapping:eh})});e.s(["SelectBackdrop",0,em],587015);var ep=e.i(455577),ef=e.i(751778),ex=e.i(23461),eg=e.i(579907);let ev=t.createContext(void 0);function ey(){let e=t.useContext(ev);if(!e)throw Error((0,eg.default)(59));return e}var eb=e.i(556856),ew=e.i(666971);function ek(e,t){e&&Object.assign(e.style,t)}let ej={position:"relative",maxHeight:"100%",overflowX:"hidden",overflowY:"auto"};var eS=e.i(914935),eC=e.i(187663);let eM={position:"fixed"},eN=t.forwardRef(function(e,r){let{anchor:n,positionMethod:l="absolute",className:a,render:i,side:s="bottom",align:d="center",sideOffset:h=0,alignOffset:m=0,collisionBoundary:p="clipping-ancestors",collisionPadding:f,arrowPadding:x=5,sticky:g=!1,disableAnchorTracking:v,alignItemWithTrigger:b=!0,collisionAvoidance:w=ew.DROPDOWN_COLLISION_AVOIDANCE,style:k,...j}=e,{store:S,listRef:M,labelsRef:E,alignItemWithTriggerActiveRef:R,selectedItemTextRef:D,valuesRef:A,initialValueRef:P,popupRef:O,setValue:z}=(0,y.useSelectRootContext)(),F=(0,y.useSelectFloatingContext)(),B=(0,u.useStore)(S,T.open),V=(0,u.useStore)(S,T.mounted),H=(0,u.useStore)(S,T.modal),q=(0,u.useStore)(S,T.value),U=(0,u.useStore)(S,T.openMethod),K=(0,u.useStore)(S,T.positionerElement),G=(0,u.useStore)(S,T.triggerElement),W=(0,u.useStore)(S,T.isItemEqualToValue),_=(0,u.useStore)(S,T.transitionStatus),Y=t.useRef(null),$=t.useRef(null),[X,J]=t.useState(b),Z=V&&X&&"touch"!==U;V||X===b||J(b),(0,o.useIsoLayoutEffect)(()=>{!V&&(T.scrollUpArrowVisible(S.state)&&S.set("scrollUpArrowVisible",!1),T.scrollDownArrowVisible(S.state)&&S.set("scrollDownArrowVisible",!1))},[S,V]),t.useImperativeHandle(R,()=>Z),(0,eC.useAnchoredPopupScrollLock)((Z||H)&&B,"touch"===U,K,G);let Q=(0,ex.useAnchorPositioning)({anchor:n,floatingRootContext:F,positionMethod:l,mounted:V,side:s,sideOffset:h,align:d,alignOffset:m,arrowPadding:x,collisionBoundary:p,collisionPadding:f,sticky:g,disableAnchorTracking:v??Z,collisionAvoidance:w,keepMounted:!0}),ee=Z?"none":Q.side,et=Z?eM:Q.positionerStyles,er={open:B,side:ee,align:Q.align,anchorHidden:Q.anchorHidden},en=(0,c.useStableCallback)(e=>{S.set("positionerElement",e)}),el=(0,eS.usePositioner)(e,er,{styles:et,transitionStatus:_,props:j,refs:[r,en],hidden:!V,inert:!B}),ea=t.useRef(0),ei=(0,c.useStableCallback)(e=>{if(0===e.size&&0===ea.current||0===A.current.length)return;let t=ea.current;if(ea.current=e.size,e.size===t)return;let r=(0,I.createChangeEventDetails)(L.REASONS.none);if(0!==t&&!S.state.multiple&&null!==q&&-1===(0,C.findItemIndex)(A.current,q,W)){let e=P.current,t=null!=e&&-1!==(0,C.findItemIndex)(A.current,e,W)?e:null;z(t,r),null===t&&(S.set("selectedIndex",null),D.current=null)}if(0!==t&&S.state.multiple&&Array.isArray(q)){let e=q.filter(e=>-1!==(0,C.findItemIndex)(A.current,e,W));(e.length!==q.length||e.some(e=>!(0,C.selectedValueIncludes)(q,e,W)))&&(z(e,r),0===e.length&&(S.set("selectedIndex",null),D.current=null))}if(B&&Z){S.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});let e={height:""};ek(K,e),ek(O.current,e)}}),es=t.useMemo(()=>({...Q,side:ee,alignItemWithTriggerActive:Z,setControlledAlignItemWithTrigger:J,scrollUpArrowRef:Y,scrollDownArrowRef:$}),[Q,ee,Z,J]);return(0,N.jsx)(ef.CompositeList,{elementsRef:M,labelsRef:E,onMapChange:ei,children:(0,N.jsxs)(ev.Provider,{value:es,children:[V&&H&&(0,N.jsx)(eb.InternalBackdrop,{inert:(0,ep.inertValue)(!B),cutout:G}),el]})})});e.s(["SelectPositioner",0,eN],348594);var eE=e.i(32572),eR=e.i(152628),eD=e.i(473121),eA=e.i(988915),eT=e.i(245041),eI=e.i(95963);let eL="base-ui-disable-scrollbar";var eP=e.i(729718),eO=e.i(317575),ez=e.i(613580),eF=e.i(240787),eB=e.i(498800);let eV={...J.popupStateMapping,...eu.transitionStatusMapping},eH=t.forwardRef(function(e,r){let n,{render:l,className:a,style:i,finalFocus:s,...d}=e,{store:h,popupRef:m,onOpenChangeComplete:p,setOpen:f,valueRef:x,selectedItemTextRef:g,keyboardActiveRef:v,multiple:b,handleScrollArrowVisibility:w,scrollHandlerRef:k,listRef:j,highlightItemOnHover:S}=(0,y.useSelectRootContext)(),{side:C,align:M,alignItemWithTriggerActive:E,isPositioned:R,setControlledAlignItemWithTrigger:D,scrollDownArrowRef:A,scrollUpArrowRef:O}=ey(),z=null!=(0,eP.useToolbarRootContext)(!0),F=(0,y.useSelectFloatingContext)(),B=(0,eB.useDirection)(),{nonce:H,disableStyleElements:q}=(0,eF.useCSPContext)(),U=(0,u.useStore)(h,T.id),G=(0,u.useStore)(h,T.open),W=(0,u.useStore)(h,T.mounted),_=(0,u.useStore)(h,T.popupProps),$=(0,u.useStore)(h,T.transitionStatus),X=(0,u.useStore)(h,T.triggerElement),J=(0,u.useStore)(h,T.positionerElement),Q=(0,u.useStore)(h,T.listElement),ee=t.useRef(!1),et=t.useRef(!1),er=t.useRef({}),en=(0,eA.useAnimationFrame)(),el=(0,c.useStableCallback)(e=>{var t;if(!J||!m.current||!et.current)return;if(ee.current||!E)return void w();let r="0px"===J.style.top,n="0px"===J.style.bottom;if(!r&&!n)return void w();let l=eK(J),a=(t=J.getBoundingClientRect().height,t/l.y),i=(0,Y.ownerDocument)(J),s=getComputedStyle(J),o=parseFloat(s.marginTop),c=parseFloat(s.marginBottom),d=eq(getComputedStyle(m.current)),u=Math.min(i.documentElement.clientHeight-o-c,d),h=e.scrollTop,p=eU(e),f=0,x=null,g=!1,v=!1,y=e=>{J.style.height=`${e}px`},b=r?p-h:h,k=Math.min(a+b,u);if(f=k,b<=1){let t;return void((t=V(b,0,u-a))>0&&y(a+t),e.scrollTop=r?p:0,u-(a+t)<=1&&(ee.current=!0),w())}if(u-k>1)r?v=!0:x=0;else if(g=!0,n&&h<p){let e=a+b-u;x=h-(b-e)}if(0!==(f=Math.ceil(f))&&y(f),v||null!=x){let t=eU(e),r=v?t:V(x,0,t);Math.abs(e.scrollTop-r)>1&&(e.scrollTop=r)}(g||f>=u-1)&&(ee.current=!0),w()});t.useImperativeHandle(k,()=>el,[el]),(0,P.useOpenChangeComplete)({open:G,ref:m,onComplete(){G&&p?.(!0)}}),(0,o.useIsoLayoutEffect)(()=>{J&&m.current&&!Object.keys(er.current).length&&(er.current={top:J.style.top||"0",left:J.style.left||"0",right:J.style.right,height:J.style.height,bottom:J.style.bottom,minHeight:J.style.minHeight,maxHeight:J.style.maxHeight,marginTop:J.style.marginTop,marginBottom:J.style.marginBottom})},[m,J]),(0,o.useIsoLayoutEffect)(()=>{G||E||(et.current=!1,ee.current=!1,ek(J,er.current))},[G,E,J,m]),(0,o.useIsoLayoutEffect)(()=>{let e=m.current;if(!G||!X||!J||!e||E&&!R||"ending"===h.state.transitionStatus)return;if(!E){et.current=!0,en.request(w),e.style.removeProperty("--transform-origin");return}let t=function(e){let{style:t}=e,r={};for(let[e,n]of eW)r[e]=t.getPropertyValue(e),t.setProperty(e,n,"important");return()=>{for(let[e]of eW){let n=r[e];n?t.setProperty(e,n):t.removeProperty(e)}}}(e);e.style.removeProperty("--transform-origin");try{let t,r=g.current,n=x.current,l=getComputedStyle(J),a=getComputedStyle(e),i=(0,Y.ownerDocument)(X),s=(0,Z.ownerWindow)(J),o=eK(X),c=eG(X.getBoundingClientRect(),o),d=eG(J.getBoundingClientRect(),o),u=c.height,m=Q||e,p=m.scrollHeight,f=parseFloat(a.borderBottomWidth),v=parseFloat(l.marginTop)||10,y=parseFloat(l.marginBottom)||10,b=parseFloat(l.minHeight)||100,k=eq(a),C=i.documentElement.clientHeight-v-y,M=i.documentElement.clientWidth,N=C-c.bottom+u,E="rtl"===B?c.right-d.width:c.left,R=0;if(r&&n){let e=eG(n.getBoundingClientRect(),o);t=eG(r.getBoundingClientRect(),o),E=d.left+("rtl"===B?e.right-t.right:e.left-t.left);let l=e.top-c.top+e.height/2;R=t.top-d.top+t.height/2-l}let A=N+R+y+f,T=Math.min(C,A),I=C-v-y,L=A-T;J.style.left=`${V(E,5,M-5-d.width)}px`,J.style.height=`${T}px`,J.style.maxHeight="auto",J.style.marginTop=`${v}px`,J.style.marginBottom=`${y}px`,e.style.height="100%";let P=eU(m),O=L>=P-1;O&&(T=Math.min(C,d.height)-(L-P));let z=c.top<20||c.bottom>C-20||Math.ceil(T)+1<Math.min(p,b),F=(s.visualViewport?.scale??1)!==1&&eD.isWebKit;if(z||F){et.current=!0,ek(J,er.current),D(!1);return}let H=Math.max(b,T);if(O){let e=Math.max(0,C-A);J.style.top=d.height>=I?"0":`${e}px`,J.style.height=`${T}px`,m.scrollTop=eU(m)}else J.style.bottom="0",m.scrollTop=L;if(t){let r=d.top,n=d.height,l=t.top+t.height/2,a=V(n>0?(l-r)/n*100:50,0,100);e.style.setProperty("--transform-origin",`50% ${a}%`)}(H===C||T>=k)&&(ee.current=!0),w(),S&&null===h.state.selectedIndex&&null===h.state.activeIndex&&null!=j.current[0]&&h.set("activeIndex",0),et.current=!0}finally{t()}},[h,G,J,X,x,g,m,w,E,D,en,A,O,Q,j,S,B,R]),t.useEffect(()=>{if(!E||!J||!G)return;let e=(0,Z.ownerWindow)(J);return(0,eR.addEventListener)(e,"resize",function(e){f(!1,(0,I.createChangeEventDetails)(L.REASONS.windowResize,e))})},[f,E,J,G]);let ea={...Q?{role:"presentation","aria-orientation":void 0}:{role:"listbox","aria-multiselectable":b||void 0,id:`${U}-list`},onKeyDown(e){v.current=!0,z&&eO.COMPOSITE_KEYS.has(e.key)&&e.stopPropagation()},onMouseMove(){v.current=!1},onScroll(e){Q||el(e.currentTarget)},...E&&{style:Q?{height:"100%"}:ej}},ei=(0,K.useRenderElement)("div",e,{ref:[r,m],state:{open:G,transitionStatus:$,side:C,align:M},stateAttributesMapping:eV,props:[_,ea,(0,ez.getDisabledMountTransitionStyles)($),{className:!Q&&E?eL:void 0},d]});return(0,N.jsxs)(t.Fragment,{children:[!q&&(n=H,(0,N.jsx)("style",{nonce:n,href:eL,precedence:"base-ui:low",children:`.${eL}{scrollbar-width:none}.${eL}::-webkit-scrollbar{display:none}`})),(0,N.jsx)(eT.FloatingFocusManager,{context:F,modal:!1,disabled:!W,returnFocus:s,restoreFocus:!0,children:ei})]})});function eq(e){let t=e.maxHeight||"";return t.endsWith("px")&&parseFloat(t)||1/0}function eU(e){return H(e.scrollHeight,e.clientHeight)}function eK(e){return eI.platform.getScale(e)}function eG(e,t){return(0,eE.rectToClientRect)({x:e.x/t.x,y:e.y/t.y,width:e.width/t.x,height:e.height/t.y})}let eW=[["transform","none"],["scale","1"],["translate","0 0"]];e.s(["SelectPopup",0,eH],917268);let e_=t.forwardRef(function(e,t){let{className:r,render:n,style:l,...a}=e,{store:i,scrollHandlerRef:s}=(0,y.useSelectRootContext)(),{alignItemWithTriggerActive:o}=ey(),d=(0,u.useStore)(i,T.hasScrollArrows),h=(0,u.useStore)(i,T.openMethod),m=(0,u.useStore)(i,T.multiple),p=(0,u.useStore)(i,T.id),f={id:`${p}-list`,role:"listbox","aria-multiselectable":m||void 0,onScroll(e){s.current?.(e.currentTarget)},...o&&{style:ej},className:d&&"touch"!==h?eL:void 0},x=(0,c.useStableCallback)(e=>{i.set("listElement",e)});return(0,K.useRenderElement)("div",e,{ref:[t,x],props:[f,a]})});e.s(["SelectList",0,e_],968515);var eY=e.i(898052);let e$=t.createContext(void 0);function eX(){let e=t.useContext(e$);if(!e)throw Error((0,eg.default)(57));return e}let eJ=t.memo(t.forwardRef(function(e,r){let{render:n,className:l,value:a=null,label:i,disabled:s=!1,nativeButton:c=!1,style:h,...m}=e,p=t.useRef(null),f=(0,eY.useCompositeListItem)({label:i,textRef:p,indexGuessBehavior:eY.IndexGuessBehavior.GuessFromOrder}),{store:x,getItemProps:g,setOpen:v,setValue:b,selectionRef:w,typingRef:k,valuesRef:j,multiple:S,selectedItemTextRef:M}=(0,y.useSelectRootContext)(),E=(0,u.useStore)(x,T.isActive,f.index),R=(0,u.useStore)(x,T.isSelected,f.index,a),D=(0,u.useStore)(x,T.isSelectedByFocus,f.index),A=(0,u.useStore)(x,T.isItemEqualToValue),P=f.index,O=-1!==P,z=t.useRef(null),F=(0,d.useValueAsRef)(P);(0,o.useIsoLayoutEffect)(()=>{if(!O)return;let e=j.current;return e[P]=a,()=>{delete e[P]}},[O,P,a,j]),(0,o.useIsoLayoutEffect)(()=>{if(!O)return;let e=x.state.value,t=e;S&&Array.isArray(e)&&e.length>0&&(t=e[e.length-1]),void 0!==t&&(0,C.compareItemEquality)(a,t,A)&&(x.set("selectedIndex",P),p.current&&(M.current=p.current))},[O,P,S,A,x,a,M]);let B=g({active:E,selected:R});B.id=void 0;let V=t.useRef(null),H=t.useRef("mouse"),q=t.useRef(!1),{getButtonProps:U,buttonRef:G}=(0,er.useButton)({disabled:s,focusableWhenDisabled:!0,native:c,composite:!0}),W=(0,K.useRenderElement)("div",e,{ref:[G,r,f.ref,z],state:{disabled:s,selected:R,highlighted:E},props:[B,{role:"option","aria-selected":R,tabIndex:E?0:-1,onTouchStart(){w.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1}},onKeyDown(e){V.current=e.key,x.set("activeIndex",P)," "===e.key&&k.current&&e.preventDefault()},onClick(e){if((q.current=!1,"keydown"!==e.type||null!==V.current)&&!s&&("keydown"!==e.type||" "!==V.current||!k.current)&&("touch"===H.current||E)){V.current=null;var t=e.nativeEvent;let r=x.state.value;if(S){let e=Array.isArray(r)?r:[];b(R?(0,C.removeItem)(e,a,A):[...e,a],(0,I.createChangeEventDetails)(L.REASONS.itemPress,t))}else b(a,(0,I.createChangeEventDetails)(L.REASONS.itemPress,t)),v(!1,(0,I.createChangeEventDetails)(L.REASONS.itemPress,t))}},onPointerEnter(e){H.current=e.pointerType},onPointerDown(e){H.current=e.pointerType,q.current=!0},onMouseUp(){if(s)return;if(q.current){q.current=!1;return}let e=!w.current.allowSelectedMouseUp&&R,t=!w.current.allowUnselectedMouseUp&&!R;e||t||"touch"!==H.current&&!E||z.current?.click()}},m,U]}),_=t.useMemo(()=>({selected:R,indexRef:F,textRef:p,selectedByFocus:D,hasRegistered:O}),[R,F,p,D,O]);return(0,N.jsx)(e$.Provider,{value:_,children:W})}));e.s(["SelectItem",0,eJ],419203);let eZ=t.forwardRef(function(e,t){let r=e.keepMounted??!1,{selected:n}=eX();return r||n?(0,N.jsx)(eQ,{...e,ref:t}):null}),eQ=t.memo(t.forwardRef((e,r)=>{let{render:n,className:l,style:a,keepMounted:i,...s}=e,{selected:o}=eX(),c=t.useRef(null),{transitionStatus:d,setMounted:u}=(0,j.useTransitionStatus)(o),h=(0,K.useRenderElement)("span",e,{ref:[r,c],state:{selected:o,transitionStatus:d},props:[{"aria-hidden":!0,children:"✔️"},s],stateAttributesMapping:eu.transitionStatusMapping});return(0,P.useOpenChangeComplete)({open:o,ref:c,onComplete(){o||u(!1)}}),h}));e.s(["SelectItemIndicator",0,eZ],258281);let e0=t.memo(t.forwardRef(function(e,r){let{indexRef:n,textRef:l,selectedByFocus:a,hasRegistered:i}=eX(),{selectedItemTextRef:s}=(0,y.useSelectRootContext)(),{className:o,render:c,style:d,...u}=e,h=t.useCallback(e=>{if(!e||!i)return;let t=null===s.current||!s.current.isConnected;(a||t&&0===n.current)&&(s.current=e)},[s,n,a,i]);return(0,K.useRenderElement)("div",e,{ref:[h,r,l],props:u})}));e.s(["SelectItemText",0,e0],818235);let e1={...J.popupStateMapping,...eu.transitionStatusMapping},e2=t.forwardRef(function(e,t){let{className:r,render:n,style:l,...a}=e,{store:i}=(0,y.useSelectRootContext)(),{side:s,align:o,arrowRef:c,arrowStyles:d,arrowUncentered:h,alignItemWithTriggerActive:m}=ey(),p=(0,u.useStore)(i,T.open,!0),f=(0,K.useRenderElement)("div",e,{state:{open:p,side:s,align:o,uncentered:h},ref:[c,t],props:[{style:d,"aria-hidden":!0},a],stateAttributesMapping:e1});return m?null:f});e.s(["SelectArrow",0,e2],926616);let e3=t.forwardRef(function(e,t){let{render:r,className:n,style:l,direction:a,keepMounted:i=!1,...s}=e,c="up"===a,{store:d,popupRef:h,listRef:m,handleScrollArrowVisibility:p,scrollArrowsMountedCountRef:f}=(0,y.useSelectRootContext)(),{side:x,scrollDownArrowRef:g,scrollUpArrowRef:v}=ey(),b=c?T.scrollUpArrowVisible:T.scrollDownArrowVisible,w=(0,u.useStore)(d,b),k=(0,u.useStore)(d,T.openMethod),S=w&&"touch"!==k,C=(0,$.useTimeout)(),M=c?v:g,{transitionStatus:N,setMounted:E}=(0,j.useTransitionStatus)(S);(0,o.useIsoLayoutEffect)(()=>(f.current+=1,d.state.hasScrollArrows||d.set("hasScrollArrows",!0),()=>{f.current=Math.max(0,f.current-1),0===f.current&&d.state.hasScrollArrows&&d.set("hasScrollArrows",!1)}),[d,f]),(0,P.useOpenChangeComplete)({open:S,ref:M,onComplete(){S||E(!1)}});let R=(0,K.useRenderElement)("div",e,{ref:[t,M],state:{direction:a,visible:S,side:x,transitionStatus:N},props:[{"aria-hidden":!0,children:c?"▲":"▼",style:{position:"absolute"},onMouseMove(e){0===e.movementX&&0===e.movementY||C.isStarted()||(d.set("activeIndex",null),C.start(40,function e(){let t=d.state.listElement??h.current;if(!t)return;d.set("activeIndex",null),p();let r=H(t.scrollHeight,t.clientHeight),n=q(t.scrollTop,r),l=n===(c?0:r),a=m.current;if(n!==t.scrollTop&&(t.scrollTop=n),0===a.length&&d.set(c?"scrollUpArrowVisible":"scrollDownArrowVisible",!l),l)return void C.clear();if(a.length>0){let e=M.current?.offsetHeight||0;t.scrollTop=function(e,t,r,n,l,a){if(t){let t=0,n=r+l-1;for(let r=0;r<e.length;r+=1){let l=e[r];if(l&&l.offsetTop>=n){t=r;break}}let i=Math.max(0,t-1),s=e[i];return i<t&&s?q(s.offsetTop-l,a):0}let i=e.length-1,s=r+n-l+1;for(let t=0;t<e.length;t+=1){let r=e[t];if(r&&r.offsetTop+r.offsetHeight>s){i=Math.max(0,t-1);break}}let o=Math.min(e.length-1,i+1),c=e[o];return o>i&&c?q(c.offsetTop+c.offsetHeight-n+l,a):a}(a,c,n,t.clientHeight,e,r)}C.start(40,e)}))},onMouseLeave(){C.clear()}},s]});return S||i?R:null}),e5=t.forwardRef(function(e,t){return(0,N.jsx)(e3,{...e,ref:t,direction:"down"})});e.s(["SelectScrollDownArrow",0,e5],466570);let e4=t.forwardRef(function(e,t){return(0,N.jsx)(e3,{...e,ref:t,direction:"up"})});e.s(["SelectScrollUpArrow",0,e4],535274);let e6=t.createContext(void 0),e8=t.forwardRef(function(e,r){let{className:n,render:l,style:a,...i}=e,[s,o]=t.useState(),c=t.useMemo(()=>({labelId:s,setLabelId:o}),[s,o]),d=(0,K.useRenderElement)("div",e,{ref:r,props:[{role:"group","aria-labelledby":s},i]});return(0,N.jsx)(e6.Provider,{value:c,children:d})});e.s(["SelectGroup",0,e8],48665);var e9=e.i(147652);let e7=t.forwardRef(function(e,r){let{className:n,render:l,id:a,style:i,...s}=e,{setLabelId:c}=function(){let e=t.useContext(e6);if(void 0===e)throw Error((0,eg.default)(56));return e}(),d=(0,e9.useBaseUiId)(a);return(0,o.useIsoLayoutEffect)(()=>{c(d)},[d,c]),(0,K.useRenderElement)("div",e,{ref:r,props:[{id:d},s]})});e.s(["SelectGroupLabel",0,e7],87474)},227384,e=>{"use strict";var t=e.i(191788),r=e.i(950438);let n=t.forwardRef(function(e,t){let{className:n,render:l,orientation:a="horizontal",style:i,...s}=e;return(0,r.useRenderElement)("div",e,{state:{orientation:a},ref:t,props:[{role:"separator","aria-orientation":a},s]})});e.s(["Separator",0,n])},690176,e=>{"use strict";var t=e.i(391398);e.i(162591);var r=e.i(851410),n=e.i(356840),l=e.i(81798),a=e.i(822022),i=e.i(667499),s=e.i(33478),o=e.i(587015),c=e.i(348594),d=e.i(917268),u=e.i(968515),h=e.i(419203),m=e.i(258281),p=e.i(818235),f=e.i(926616),x=e.i(466570),g=e.i(535274),v=e.i(48665),y=e.i(87474),b=e.i(227384);e.s(["Arrow",()=>f.SelectArrow,"Backdrop",()=>o.SelectBackdrop,"Group",()=>v.SelectGroup,"GroupLabel",()=>y.SelectGroupLabel,"Icon",()=>i.SelectIcon,"Item",()=>h.SelectItem,"ItemIndicator",()=>m.SelectItemIndicator,"ItemText",()=>p.SelectItemText,"Label",()=>n.SelectLabel,"List",()=>u.SelectList,"Popup",()=>d.SelectPopup,"Portal",()=>s.SelectPortal,"Positioner",()=>c.SelectPositioner,"Root",()=>r.SelectRoot,"ScrollDownArrow",()=>x.SelectScrollDownArrow,"ScrollUpArrow",()=>g.SelectScrollUpArrow,"Separator",()=>b.Separator,"Trigger",()=>l.SelectTrigger,"Value",()=>a.SelectValue],105575);var w=e.i(105575),w=w,k=e.i(353533),j=e.i(801923),j=j,S=e.i(589348),C=e.i(943270),C=C;let M=w.Root;function N({className:e,...r}){return(0,t.jsx)(w.ScrollUpArrow,{"data-slot":"select-scroll-up-button",className:(0,k.cn)("top-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",e),...r,children:(0,t.jsx)(C.default,{})})}function E({className:e,...r}){return(0,t.jsx)(w.ScrollDownArrow,{"data-slot":"select-scroll-down-button",className:(0,k.cn)("bottom-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",e),...r,children:(0,t.jsx)(j.default,{})})}e.s(["Select",0,M,"SelectContent",0,function({className:e,children:r,side:n="bottom",sideOffset:l=4,align:a="start",alignOffset:i=0,alignItemWithTrigger:s=!1,...o}){return(0,t.jsx)(w.Portal,{children:(0,t.jsx)(w.Positioner,{side:n,sideOffset:l,align:a,alignOffset:i,alignItemWithTrigger:s,className:"isolate z-50",children:(0,t.jsxs)(w.Popup,{"data-slot":"select-content","data-align-trigger":s,className:(0,k.cn)("relative isolate z-50 max-h-(--available-height) w-(--anchor-width) min-w-36 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[align-trigger=true]:animate-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...o,children:[(0,t.jsx)(N,{}),(0,t.jsx)(w.List,{children:r}),(0,t.jsx)(E,{})]})})})},"SelectItem",0,function({className:e,children:r,...n}){return(0,t.jsxs)(w.Item,{"data-slot":"select-item",className:(0,k.cn)("relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...n,children:[(0,t.jsx)(w.ItemText,{className:"flex flex-1 shrink-0 gap-2 whitespace-nowrap",children:r}),(0,t.jsx)(w.ItemIndicator,{render:(0,t.jsx)("span",{className:"pointer-events-none absolute right-2 flex size-4 items-center justify-center"}),children:(0,t.jsx)(S.CheckIcon,{className:"pointer-events-none"})})]})},"SelectTrigger",0,function({className:e,size:r="default",children:n,...l}){return(0,t.jsxs)(w.Trigger,{"data-slot":"select-trigger","data-size":r,className:(0,k.cn)("flex w-fit items-center justify-between gap-1.5 rounded-lg border border-input bg-transparent py-2 pr-2 pl-2.5 text-sm whitespace-nowrap transition-colors outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...l,children:[n,(0,t.jsx)(w.Icon,{render:(0,t.jsx)(j.default,{className:"pointer-events-none size-4 text-muted-foreground"})})]})},"SelectValue",0,function({className:e,...r}){return(0,t.jsx)(w.Value,{"data-slot":"select-value",className:(0,k.cn)("flex flex-1 text-left",e),...r})}],690176)},181474,e=>{"use strict";let t=(0,e.i(369547).default)("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"}]]);e.s(["Settings",0,t],181474)},734549,771573,127630,236597,587346,858013,e=>{"use strict";var t=e.i(191788),r=e.i(950323),n=e.i(679935),l=e.i(844044);let a=e=>fetch(e).then(e=>{if(!e.ok)throw Error("fetch failed");return e.json()}),i={builtins:[],custom:[],order:[]},s=(e,t)=>{if(0===t.length)return e;let r=new Map(e.map(e=>[e.id,e])),n=[];for(let e of t){let t=r.get(e);t&&(n.push(t),r.delete(e))}for(let e of r.values())n.push(e);return n};e.s(["default",0,()=>{let{data:e,isLoading:o,mutate:c}=(0,r.default)("/api/sidebar-items",a,{revalidateOnFocus:!1}),d=e??i,u=(0,t.useMemo)(()=>s([...d.builtins,...d.custom].filter(e=>e.enabled),d.order),[d]),h=(0,t.useMemo)(()=>s([...d.builtins,...d.custom],d.order),[d]),m=(0,t.useCallback)(async(e,t,r)=>{let n=e.filter(e=>!e.enabled).map(e=>e.id);if(!(await fetch("/api/sidebar-items",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({custom:t,disabledBuiltinIds:n,order:r})})).ok)throw Error("save failed")},[]),p=(0,t.useCallback)(async(e,t)=>{let r=r=>({...r,builtins:r.builtins.map(r=>r.id===e?{...r,enabled:t}:r)});await c(async e=>{let t=r(e??i);return await m(t.builtins,t.custom,t.order),t},{optimisticData:e=>r(e??i),rollbackOnError:!0,revalidate:!1}).catch(()=>n.toast.error((0,l.t)("settings","saveFailed")))},[c,m]),f=(0,t.useCallback)(async e=>{let t=t=>({...t,custom:e});await c(async e=>{let r=t(e??i);return await m(r.builtins,r.custom,r.order),r},{optimisticData:e=>t(e??i),rollbackOnError:!0,revalidate:!1}).catch(()=>n.toast.error((0,l.t)("settings","saveFailed")))},[c,m]),x=(0,t.useCallback)(async e=>{let t=t=>({...t,order:e});await c(async e=>{let r=t(e??i);return await m(r.builtins,r.custom,r.order),r},{optimisticData:e=>t(e??i),rollbackOnError:!0,revalidate:!1}).catch(()=>n.toast.error((0,l.t)("settings","saveFailed")))},[c,m]),g=(0,t.useCallback)(async e=>{let t=t=>({...t,custom:t.custom.filter(t=>t.id!==e),order:t.order.filter(t=>t!==e)});await c(async e=>{let r=t(e??i);return await m(r.builtins,r.custom,r.order),r},{optimisticData:e=>t(e??i),rollbackOnError:!0,revalidate:!1}).catch(()=>n.toast.error((0,l.t)("settings","saveFailed")))},[c,m]),v=(0,t.useCallback)(async()=>{let e=e=>({builtins:e.builtins.map(e=>({...e,enabled:!0})),custom:[],order:[]});await c(async t=>{let r=e(t??i);return await m(r.builtins,r.custom,r.order),r},{optimisticData:t=>e(t??i),rollbackOnError:!0,revalidate:!1}).catch(()=>n.toast.error((0,l.t)("settings","saveFailed")))},[c,m]);return{items:u,allOrderedItems:h,builtinItems:d.builtins,customItems:d.custom,order:d.order,isLoading:o,toggleBuiltin:p,saveCustom:f,saveOrder:x,deleteItem:g,resetAll:v}}],734549);var o=e.i(369547);let c=(0,o.default)("link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]);e.s(["Link",0,c],771573);let d=(0,o.default)("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);e.s(["ExternalLink",0,d],127630);let u=(0,o.default)("bookmark",[["path",{d:"M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z",key:"oz39mx"}]]);e.s(["Bookmark",0,u],236597);let h=(0,o.default)("star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);e.s(["Star",0,h],587346);let m=(0,o.default)("house",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]]);e.s(["Home",0,m],858013)},72538,e=>{"use strict";let t=(0,e.i(369547).default)("chart-column",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);e.s(["BarChart3",0,t],72538)},953553,374433,657334,649249,298421,546456,726331,185849,582646,e=>{"use strict";var t=e.i(369547);let r=(0,t.default)("chart-pie",[["path",{d:"M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z",key:"pzmjnu"}],["path",{d:"M21.21 15.89A10 10 0 1 1 8 2.83",key:"k2fpak"}]]);e.s(["PieChart",0,r],953553);let n=(0,t.default)("chart-line",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}]]);e.s(["LineChart",0,n],374433);let l=(0,t.default)("code",[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]]);e.s(["Code",0,l],657334);let a=(0,t.default)("database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);e.s(["Database",0,a],649249);let i=(0,t.default)("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"}]]);e.s(["Server",0,i],298421);let s=(0,t.default)("cloud",[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]]);e.s(["Cloud",0,s],546456);let o=(0,t.default)("key",[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]]);e.s(["Key",0,o],726331);let c=(0,t.default)("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);e.s(["User",0,c],185849);let d=(0,t.default)("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]);e.s(["Mail",0,d],582646)},447903,e=>{"use strict";let t=(0,e.i(369547).default)("bell",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]]);e.s(["Bell",0,t],447903)},151670,465420,e=>{"use strict";var t=e.i(369547);let r=(0,t.default)("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);e.s(["Calendar",0,r],151670);let n=(0,t.default)("camera",[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",key:"18u6gg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]);e.s(["Camera",0,n],465420)},966954,e=>{"use strict";let t=(0,e.i(369547).default)("image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);e.s(["default",0,t])},405328,905585,90610,17119,503680,742152,783462,759279,990032,916989,944598,758418,e=>{"use strict";var t=e.i(966954);e.s(["Image",()=>t.default],405328);var r=e.i(369547);let n=(0,r.default)("film",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 3v18",key:"bbkbws"}],["path",{d:"M3 7.5h4",key:"zfgn84"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 16.5h4",key:"1230mu"}],["path",{d:"M17 3v18",key:"in4fa5"}],["path",{d:"M17 7.5h4",key:"myr1c1"}],["path",{d:"M17 16.5h4",key:"go4c1d"}]]);e.s(["Film",0,n],905585);let l=(0,r.default)("music",[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]]);e.s(["Music",0,l],90610);let a=(0,r.default)("headphones",[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3",key:"1xhozi"}]]);e.s(["Headphones",0,a],17119);let i=(0,r.default)("mic",[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]]);e.s(["Mic",0,i],503680);let s=(0,r.default)("folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);e.s(["Folder",0,s],742152);let o=(0,r.default)("file",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]]);e.s(["File",0,o],783462);let c=(0,r.default)("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"}]]);e.s(["Upload",0,c],759279);let d=(0,r.default)("git-pull-request",[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M13 6h3a2 2 0 0 1 2 2v7",key:"1yeb86"}],["line",{x1:"6",x2:"6",y1:"9",y2:"21",key:"rroup"}]]);e.s(["GitPullRequest",0,d],990032);let u=(0,r.default)("git-fork",[["circle",{cx:"12",cy:"18",r:"3",key:"1mpf1b"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["path",{d:"M18 9v2c0 .6-.4 1-1 1H7c-.6 0-1-.4-1-1V9",key:"1uq4wg"}],["path",{d:"M12 12v3",key:"158kv8"}]]);e.s(["GitFork",0,u],916989);let h=(0,r.default)("bug",[["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z",key:"uouzyp"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M21 21a4 4 0 0 0-3.81-4",key:"1b0z45"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4",key:"1fjd4g"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97",key:"1d7oge"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13",key:"1vgav8"}]]);e.s(["Bug",0,h],944598);let m=(0,r.default)("sliders-vertical",[["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M12 21v-9",key:"17s77i"}],["path",{d:"M12 8V3",key:"13r4qs"}],["path",{d:"M17 16h4",key:"h1uq16"}],["path",{d:"M19 12V3",key:"o1uvq1"}],["path",{d:"M19 21v-5",key:"qua636"}],["path",{d:"M3 14h4",key:"bcjad9"}],["path",{d:"M5 10V3",key:"cb8scm"}],["path",{d:"M5 21v-7",key:"1w1uti"}]]);e.s(["Sliders",0,m],758418)},117690,e=>{"use strict";let t=(0,e.i(369547).default)("palette",[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]]);e.s(["Palette",0,t],117690)},706303,49025,697878,113826,875707,606299,533575,539913,93608,82030,310,515147,21498,294723,145089,946599,638279,363823,263213,e=>{"use strict";var t=e.i(369547);let r=(0,t.default)("brush",[["path",{d:"m11 10 3 3",key:"fzmg1i"}],["path",{d:"M6.5 21A3.5 3.5 0 1 0 3 17.5a2.62 2.62 0 0 1-.708 1.792A1 1 0 0 0 3 21z",key:"p4q2r7"}],["path",{d:"M9.969 17.031 21.378 5.624a1 1 0 0 0-3.002-3.002L6.967 14.031",key:"wy6l02"}]]);e.s(["Brush",0,r],706303);let n=(0,t.default)("map",[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]]);e.s(["Map",0,n],49025);let l=(0,t.default)("map-pin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);e.s(["MapPin",0,l],697878);let a=(0,t.default)("navigation",[["polygon",{points:"3 11 22 2 13 21 11 13 3 11",key:"1ltx0t"}]]);e.s(["Navigation",0,a],113826);let i=(0,t.default)("compass",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}]]);e.s(["Compass",0,i],875707);let s=(0,t.default)("wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]);e.s(["Wifi",0,s],606299);let o=(0,t.default)("tablet",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2",key:"76otgf"}],["line",{x1:"12",x2:"12.01",y1:"18",y2:"18",key:"1dp563"}]]);e.s(["Tablet",0,o],533575);let c=(0,t.default)("laptop",[["path",{d:"M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z",key:"1pdavp"}],["path",{d:"M20.054 15.987H3.946",key:"14rxg9"}]]);e.s(["Laptop",0,c],539913);let d=(0,t.default)("cpu",[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]]);e.s(["Cpu",0,d],93608);let u=(0,t.default)("hard-drive",[["path",{d:"M10 16h.01",key:"1bzywj"}],["path",{d:"M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"18tbho"}],["path",{d:"M21.946 12.013H2.054",key:"zqlbp7"}],["path",{d:"M6 16h.01",key:"1pmjb7"}]]);e.s(["HardDrive",0,u],82030);let h=(0,t.default)("memory-stick",[["path",{d:"M12 12v-2",key:"fwoke6"}],["path",{d:"M12 18v-2",key:"qj6yno"}],["path",{d:"M16 12v-2",key:"heuere"}],["path",{d:"M16 18v-2",key:"s1ct0w"}],["path",{d:"M2 11h1.5",key:"15p63e"}],["path",{d:"M20 18v-2",key:"12ehxp"}],["path",{d:"M20.5 11H22",key:"khsy7a"}],["path",{d:"M4 18v-2",key:"1c3oqr"}],["path",{d:"M8 12v-2",key:"1mwtfd"}],["path",{d:"M8 18v-2",key:"qcmpov"}],["rect",{x:"2",y:"6",width:"20",height:"10",rx:"2",key:"1qcswk"}]]);e.s(["MemoryStick",0,h],310);let m=(0,t.default)("circuit-board",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M11 9h4a2 2 0 0 0 2-2V3",key:"1ve2rv"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"M7 21v-4a2 2 0 0 1 2-2h4",key:"1fwkro"}],["circle",{cx:"15",cy:"15",r:"2",key:"3i40o0"}]]);e.s(["CircuitBoard",0,m],515147);let p=(0,t.default)("radio",[["path",{d:"M16.247 7.761a6 6 0 0 1 0 8.478",key:"1fwjs5"}],["path",{d:"M19.075 4.933a10 10 0 0 1 0 14.134",key:"ehdyv1"}],["path",{d:"M4.925 19.067a10 10 0 0 1 0-14.134",key:"1q22gi"}],["path",{d:"M7.753 16.239a6 6 0 0 1 0-8.478",key:"r2q7qm"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);e.s(["Radio",0,p],21498);let f=(0,t.default)("bluetooth",[["path",{d:"m7 7 10 10-5 5V2l5 5L7 17",key:"1q5490"}]]);e.s(["Bluetooth",0,f],294723);let x=(0,t.default)("heart",[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]]);e.s(["Heart",0,x],145089);let g=(0,t.default)("thumbs-up",[["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}],["path",{d:"M7 10v12",key:"1qc93n"}]]);e.s(["ThumbsUp",0,g],946599);let v=(0,t.default)("smile",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 14s1.5 2 4 2 4-2 4-2",key:"1y1vjs"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]]);e.s(["Smile",0,v],638279);let y=(0,t.default)("coffee",[["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M14 2v2",key:"6buw04"}],["path",{d:"M16 8a1 1 0 0 1 1 1v8a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1h14a4 4 0 1 1 0 8h-1",key:"pwadti"}],["path",{d:"M6 2v2",key:"colzsn"}]]);e.s(["Coffee",0,y],363823);let b=(0,t.default)("rocket",[["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}],["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09",key:"u4xsad"}],["path",{d:"M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z",key:"676m9"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05",key:"92ym6u"}]]);e.s(["Rocket",0,b],263213)},947710,e=>{"use strict";let t=(0,e.i(369547).default)("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]]);e.s(["Sparkles",0,t],947710)},186122,347735,540983,102966,594168,e=>{"use strict";var t=e.i(369547);let r=(0,t.default)("award",[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]]);e.s(["Award",0,r],186122);let n=(0,t.default)("target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);e.s(["Target",0,n],347735);let l=(0,t.default)("flag",[["path",{d:"M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528",key:"1jaruq"}]]);e.s(["Flag",0,l],540983);let a=(0,t.default)("crosshair",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"22",x2:"18",y1:"12",y2:"12",key:"l9bcsi"}],["line",{x1:"6",x2:"2",y1:"12",y2:"12",key:"13hhkx"}],["line",{x1:"12",x2:"12",y1:"6",y2:"2",key:"10w3f3"}],["line",{x1:"12",x2:"12",y1:"22",y2:"18",key:"15g9kq"}]]);e.s(["Crosshair",0,a],102966);let i=(0,t.default)("layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]);e.s(["Layers",0,i],594168)},438970,e=>{"use strict";let t=(0,e.i(369547).default)("panels-top-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M9 21V9",key:"1oto5p"}]]);e.s(["Layout",0,t],438970)},274489,e=>{"use strict";var t=e.i(191788),r=e.i(240614),n=e.i(771573),l=e.i(127630),a=e.i(236597),i=e.i(587346),s=e.i(858013),o=e.i(576255),c=e.i(72538),d=e.i(953553),u=e.i(374433),h=e.i(243638),m=e.i(602889),p=e.i(875284),f=e.i(657334),x=e.i(649249),g=e.i(298421),v=e.i(546456),y=e.i(66311),b=e.i(835707),w=e.i(726331),k=e.i(185849),j=e.i(295746),S=e.i(582646),C=e.i(235090),M=e.i(447903),N=e.i(151670),E=e.i(756043),R=e.i(533538),D=e.i(450095),A=e.i(465420),T=e.i(405328),I=e.i(905585),L=e.i(90610),P=e.i(17119),O=e.i(503680),z=e.i(742152),F=e.i(783462),B=e.i(8820),V=e.i(687072),H=e.i(759279),q=e.i(172738),U=e.i(452945),K=e.i(990032),G=e.i(916989),W=e.i(944598),_=e.i(722896),Y=e.i(181474),$=e.i(758418),X=e.i(117690),J=e.i(706303),Z=e.i(49025),Q=e.i(697878),ee=e.i(113826),et=e.i(875707),er=e.i(606299),en=e.i(482192),el=e.i(650128),ea=e.i(533575),ei=e.i(539913),es=e.i(93608),eo=e.i(82030),ec=e.i(310),ed=e.i(515147),eu=e.i(21498),eh=e.i(294723),em=e.i(145089),ep=e.i(946599),ef=e.i(638279),ex=e.i(363823),eg=e.i(263213),ev=e.i(136646),ey=e.i(639131),eb=e.i(283303),ew=e.i(947710),ek=e.i(186122),ej=e.i(403299),eS=e.i(347735),eC=e.i(540983),eM=e.i(102966),eN=e.i(594168),eE=e.i(438970),eR=e.i(369547);let eD=(0,eR.default)("grid-3x3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]]),eA=(0,eR.default)("list",[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]]),eT=(0,eR.default)("table",[["path",{d:"M12 3v18",key:"108xh3"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}]]),eI=(0,eR.default)("kanban",[["path",{d:"M5 3v14",key:"9nsxs2"}],["path",{d:"M12 3v8",key:"1h2ygw"}],["path",{d:"M19 3v18",key:"1sk56x"}]]);var eL=e.i(970597);let eP=(0,eR.default)("brain",[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]]),eO=(0,eR.default)("lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]),ez=(0,eR.default)("graduation-cap",[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]]),eF=(0,eR.default)("book-open",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]),eB={Globe:r.Globe,Link:n.Link,ExternalLink:l.ExternalLink,Bookmark:a.Bookmark,Star:i.Star,Home:s.Home,FileText:o.FileText,BarChart3:c.BarChart3,PieChart:d.PieChart,LineChart:u.LineChart,Activity:h.Activity,Zap:m.Zap,Terminal:p.Terminal,Code:f.Code,Database:x.Database,Server:g.Server,Cloud:v.Cloud,Shield:y.Shield,Lock:b.Lock,Key:w.Key,User:k.User,Users:j.Users,Mail:S.Mail,MessageSquare:C.MessageSquare,Bell:M.Bell,Calendar:N.Calendar,Clock:E.Clock,Search:R.Search,Eye:D.Eye,Camera:A.Camera,Image:T.Image,Film:I.Film,Music:L.Music,Headphones:P.Headphones,Mic:O.Mic,Folder:z.Folder,File:F.File,Archive:B.Archive,Download:V.Download,Upload:H.Upload,GitBranch:q.GitBranch,GitCommit:U.GitCommit,GitPullRequest:K.GitPullRequest,GitFork:G.GitFork,Bug:W.Bug,Wrench:_.Wrench,Settings:Y.Settings,Sliders:$.Sliders,Palette:X.Palette,Brush:J.Brush,Map:Z.Map,MapPin:Q.MapPin,Navigation:ee.Navigation,Compass:et.Compass,Wifi:er.Wifi,Monitor:en.Monitor,Smartphone:el.Smartphone,Tablet:ea.Tablet,Laptop:ei.Laptop,Cpu:es.Cpu,HardDrive:eo.HardDrive,MemoryStick:ec.MemoryStick,CircuitBoard:ed.CircuitBoard,Radio:eu.Radio,Bluetooth:eh.Bluetooth,Heart:em.Heart,ThumbsUp:ep.ThumbsUp,Smile:ef.Smile,Coffee:ex.Coffee,Rocket:eg.Rocket,Flame:ev.Flame,Sun:ey.Sun,Moon:eb.Moon,Sparkles:ew.Sparkles,Award:ek.Award,Trophy:ej.Trophy,Target:eS.Target,Flag:eC.Flag,Crosshair:eM.Crosshair,Layers:eN.Layers,Layout:eE.Layout,Grid:eD,List:eA,Table:eT,Kanban:eI,Bot:eL.Bot,Brain:eP,Lightbulb:eO,GraduationCap:ez,BookOpen:eF};e.s(["default",0,({name:e,className:r,style:n})=>{let l=eB[e];return l?(0,t.createElement)(l,{className:r,style:n}):null},"getIcon",0,e=>eB[e]],274489)},436254,e=>{"use strict";let t=(0,e.i(369547).default)("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);e.s(["Pencil",0,t],436254)},524845,(e,t,r)=>{t.exports={name:"purplemux",version:"0.2.6",description:"Manage multiple Claude Code sessions from your browser",license:"MIT",author:"subicura",repository:{type:"git",url:"https://github.com/subicura/purplemux.git"},homepage:"https://github.com/subicura/purplemux",bugs:{url:"https://github.com/subicura/purplemux/issues"},keywords:["claude","terminal","multiplexer","tmux","claude-code"],engines:{node:">=20.0.0"},packageManager:"pnpm@10.32.1",main:"dist-electron/main.js",bin:{purplemux:"./bin/purplemux.js",pmux:"./bin/purplemux.js"},files:["bin/","dist/",".next/standalone/","src/config/tmux.conf"],scripts:{dev:"tsx watch server.ts",build:"next build && node scripts/post-build.js && tsup","build:landing":"eleventy","dev:landing":"eleventy --serve","build:server":"tsup","build:electron:main":"tsup --config electron/tsup.config.ts","build:electron":"next build && node scripts/post-build.js --electron && tsup && pnpm build:electron:main","dev:electron":"ELECTRON_DEV_URL=http://localhost:8022 electron .","pack:electron":"pnpm build:electron && electron-builder --mac","pack:electron:dev":"pnpm build:electron && CSC_IDENTITY_AUTO_DISCOVERY=false electron-builder --mac -c.mac.identity=null -c.mac.notarize=false",start:"NODE_ENV=production tsx server.ts",lint:"eslint",test:"vitest run","test:watch":"vitest",ralph:"node ralph-loop.js",prepublishOnly:"rm -rf .next dist dist-electron && pnpm build",postinstall:"chmod +x node_modules/.pnpm/node-pty@*/node_modules/node-pty/prebuilds/*/spawn-helper 2>/dev/null; exit 0"},dependencies:{"@base-ui/react":"^1.3.0","@dnd-kit/core":"^6.3.1","@dnd-kit/sortable":"^10.0.0","@dnd-kit/utilities":"^3.2.2","@git-diff-view/core":"^0.1.3","@git-diff-view/file":"^0.1.3","@git-diff-view/react":"^0.1.3","@tailwindcss/typography":"^0.5.19","@xterm/addon-clipboard":"^0.2.0","@xterm/addon-fit":"^0.11.0","@xterm/addon-unicode11":"^0.9.0","@xterm/addon-web-links":"^0.12.0","@xterm/xterm":"^6.0.0","class-variance-authority":"^0.7.1",clsx:"^2.1.1",cmdk:"^1.1.1",dayjs:"^1.11.20",diff:"^9.0.0","electron-updater":"^6.8.3",jose:"^6.2.2","lucide-react":"^1.7.0",motion:"^12.38.0",nanoid:"^5.1.7",next:"16.2.4","next-intl":"^4.9.1","next-themes":"^0.4.6","node-pty":"1.2.0-beta.12",pino:"^10.3.1","pino-pretty":"^13.1.3","pino-roll":"^4.0.0",react:"19.2.5","react-dom":"19.2.5","react-hotkeys-hook":"^5.2.4","react-icons":"^5.6.0","react-markdown":"^10.1.0","react-resizable-panels":"^4.10.0",recharts:"^3.8.0","rehype-highlight":"^7.0.2","rehype-raw":"^7.0.0","remark-gfm":"^4.0.1",sonner:"^2.0.7",swr:"^2.4.1","tailwind-merge":"^3.5.0","tw-animate-css":"^1.4.0","update-notifier":"^7.3.1","use-stick-to-bottom":"^1.1.3",vaul:"^1.1.2","web-push":"^3.6.7",ws:"^8.20.0",zod:"^4.3.6",zustand:"^5.0.12"},devDependencies:{"@11ty/eleventy":"^3.1.5","@electron/rebuild":"^4.0.3","@tailwindcss/postcss":"^4","@types/node":"^24.12.0","@types/react":"^19","@types/react-dom":"^19","@types/web-push":"^3.6.4","@types/ws":"^8.18.1",chalk:"^5.6.2",electron:"^41.1.1","electron-builder":"^26.8.1",eslint:"^9","eslint-config-next":"16.2.3",shadcn:"^4.1.2",tailwindcss:"^4",tsup:"^8.5.1",tsx:"^4.21.0",typescript:"^5.9.3",vitest:"^4.1.4"},pnpm:{onlyBuiltDependencies:["electron","node-pty"],overrides:{hono:">=4.12.14","@hono/node-server":">=1.19.13",lodash:">=4.18.0","@xmldom/xmldom":"^0.8.13","picomatch@>=2.0.0 <3.0.0":">=2.3.2","picomatch@>=4.0.0 <5.0.0":">=4.0.4"}}}},211308,e=>{"use strict";let t=(0,e.i(369547).default)("dices",[["rect",{width:"12",height:"12",x:"2",y:"10",rx:"2",ry:"2",key:"6agr2n"}],["path",{d:"m17.92 14 3.5-3.5a2.24 2.24 0 0 0 0-3l-5-4.92a2.24 2.24 0 0 0-3 0L10 6",key:"1o487t"}],["path",{d:"M6 18h.01",key:"uhywen"}],["path",{d:"M10 14h.01",key:"ssrbsk"}],["path",{d:"M15 6h.01",key:"cblpky"}],["path",{d:"M18 9h.01",key:"2061c0"}]]);e.s(["Dices",0,t],211308)},978517,e=>{"use strict";var t=e.i(966954);e.s(["ImageIcon",()=>t.default])},909289,124726,962311,e=>{"use strict";let t=(0,e.i(369547).default)("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]);e.s(["Trash2",0,t],909289);var r=e.i(391398);e.s(["default",0,e=>(0,r.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M4.709 15.955l4.72-2.647.08-.23-.08-.128H9.2l-.79-.048-2.698-.073-2.339-.097-2.266-.122-.571-.121L0 11.784l.055-.352.48-.321.686.06 1.52.103 2.278.158 1.652.097 2.449.255h.389l.055-.157-.134-.098-.103-.097-2.358-1.596-2.552-1.688-1.336-.972-.724-.491-.364-.462-.158-1.008.656-.722.881.06.225.061.893.686 1.908 1.476 2.491 1.833.365.304.145-.103.019-.073-.164-.274-1.355-2.446-1.446-2.49-.644-1.032-.17-.619a2.97 2.97 0 01-.104-.729L6.283.134 6.696 0l.996.134.42.364.62 1.414 1.002 2.229 1.555 3.03.456.898.243.832.091.255h.158V9.01l.128-1.706.237-2.095.23-2.695.08-.76.376-.91.747-.492.584.28.48.685-.067.444-.286 1.851-.559 2.903-.364 1.942h.212l.243-.242.985-1.306 1.652-2.064.73-.82.85-.904.547-.431h1.033l.76 1.129-.34 1.166-1.064 1.347-.881 1.142-1.264 1.7-.79 1.36.073.11.188-.02 2.856-.606 1.543-.28 1.841-.315.833.388.091.395-.328.807-1.969.486-2.309.462-3.439.813-.042.03.049.061 1.549.146.662.036h1.622l3.02.225.79.522.474.638-.079.485-1.215.62-1.64-.389-3.829-.91-1.312-.329h-.182v.11l1.093 1.068 2.006 1.81 2.509 2.33.127.578-.322.455-.34-.049-2.205-1.657-.851-.747-1.926-1.62h-.128v.17l.444.649 2.345 3.521.122 1.08-.17.353-.608.213-.667-.122-1.374-1.925-1.415-2.167-1.143-1.943-.14.08-.674 7.254-.316.37-.729.28-.607-.461-.322-.747.322-1.476.389-1.924.315-1.53.286-1.9.17-.632-.012-.042-.14.018-1.434 1.967-2.18 2.945-1.726 1.845-.414.164-.717-.37.067-.662.401-.589 2.388-3.036 1.44-1.882.93-1.086-.006-.158h-.055L4.132 18.56l-1.13.146-.487-.456.061-.746.231-.243 1.908-1.312-.006.006z"})})],124726);var n=e.i(950438);e.s(["useRender",0,function(e){return(0,n.useRenderElement)(e.defaultTagName??"div",e,e)}],962311)},208501,621504,48543,562020,458325,117385,e=>{"use strict";var t,r=e.i(391398);e.i(977848),e.i(962311);var n=e.i(648684),l=e.i(353533);e.i(227384);let a=(0,n.cva)("flex w-fit items-stretch *:focus-visible:relative *:focus-visible:z-10 has-[>[data-slot=button-group]]:gap-2 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-lg [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1",{variants:{orientation:{horizontal:"*:data-slot:rounded-r-none [&>[data-slot]:not(:has(~[data-slot]))]:rounded-r-lg! [&>[data-slot]~[data-slot]]:rounded-l-none [&>[data-slot]~[data-slot]]:border-l-0",vertical:"flex-col *:data-slot:rounded-b-none [&>[data-slot]:not(:has(~[data-slot]))]:rounded-b-lg! [&>[data-slot]~[data-slot]]:rounded-t-none [&>[data-slot]~[data-slot]]:border-t-0"}},defaultVariants:{orientation:"horizontal"}});e.s(["ButtonGroup",0,function({className:e,orientation:t,...n}){return(0,r.jsx)("div",{role:"group","data-slot":"button-group","data-orientation":t,className:(0,l.cn)(a({orientation:t}),e),...n})}],208501);var i=e.i(191788),s=e.i(91762);let o=(0,n.cva)("group/field flex w-full gap-3 data-[invalid=true]:text-destructive",{variants:{orientation:{vertical:["flex-col [&>*]:w-full [&>.sr-only]:w-auto"],horizontal:["flex-row items-center","[&>[data-slot=field-label]]:flex-auto","has-[>[data-slot=field-content]]:items-start has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"],responsive:["flex-col [&>*]:w-full [&>.sr-only]:w-auto @md/field-group:flex-row @md/field-group:items-center @md/field-group:[&>*]:w-auto","@md/field-group:[&>[data-slot=field-label]]:flex-auto","@md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"]}},defaultVariants:{orientation:"vertical"}});e.s(["Field",0,function({className:e,orientation:t="vertical",...n}){return(0,r.jsx)("div",{role:"group","data-slot":"field","data-orientation":t,className:(0,l.cn)(o({orientation:t}),e),...n})},"FieldDescription",0,function({className:e,...t}){return(0,r.jsx)("p",{"data-slot":"field-description",className:(0,l.cn)("text-muted-foreground text-sm leading-normal font-normal group-has-[[data-orientation=horizontal]]/field:text-balance","last:mt-0 nth-last-2:-mt-1 [[data-variant=legend]+&]:-mt-1.5","[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4",e),...t})},"FieldLabel",0,function({className:e,...t}){return(0,r.jsx)(s.Label,{"data-slot":"field-label",className:(0,l.cn)("group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50","has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border [&>*]:data-[slot=field]:p-4","has-data-[state=checked]:bg-primary/5 has-data-[state=checked]:border-primary dark:has-data-[state=checked]:bg-primary/10",e),...t})}],621504),e.s([],48543);var c=e.i(810377),d=e.i(963934);let u=((t={}).checked="data-checked",t.unchecked="data-unchecked",t.disabled="data-disabled",t.readonly="data-readonly",t.required="data-required",t.valid="data-valid",t.invalid="data-invalid",t.touched="data-touched",t.dirty="data-dirty",t.filled="data-filled",t.focused="data-focused",t),h={checked:e=>e?{[u.checked]:""}:{[u.unchecked]:""},...c.transitionStatusMapping,...d.fieldValidityMapping};e.s(["stateAttributesMapping",0,h],562020);var m=e.i(950438),p=e.i(874519),f=e.i(562912);e.s(["CompositeItem",0,function(e){let{render:t,className:r,style:n,state:l=f.EMPTY_OBJECT,props:a=f.EMPTY_ARRAY,refs:i=f.EMPTY_ARRAY,metadata:s,stateAttributesMapping:o,tag:c="div",...d}=e,{compositeProps:u,compositeRef:h}=(0,p.useCompositeItem)({metadata:s});return(0,m.useRenderElement)(c,e,{state:l,ref:[...i,h],props:[u,...a,d],stateAttributesMapping:o})}],458325),e.i(350461);let x=i.createContext(void 0);e.s(["RadioGroupContext",0,x,"useRadioGroupContext",0,function(){return i.useContext(x)}],117385)},636989,e=>{"use strict";var t=e.i(391398);e.i(48543),e.i(350461);var r=e.i(191788),n=e.i(978054),l=e.i(95349),a=e.i(25104),i=e.i(931497),s=e.i(967529),o=e.i(475048),c=e.i(562912),d=e.i(562020),u=e.i(147652),h=e.i(950438),m=e.i(768802),p=e.i(405979),f=e.i(458325),x=e.i(663735),g=e.i(699140),v=e.i(630260),y=e.i(540574),b=e.i(112572),w=e.i(117385),k=e.i(567284),j=e.i(579907);let S=r.createContext(void 0),C=r.forwardRef(function(e,j){let{render:C,className:M,disabled:N=!1,readOnly:E=!1,required:R=!1,"aria-labelledby":D,value:A,inputRef:T,nativeButton:I=!1,id:L,style:P,...O}=e,z=(0,w.useRadioGroupContext)(),{disabled:F,readOnly:B,required:V,form:H,checkedValue:q,touched:U=!1,validation:K,name:G}=z??{},W=z?.setCheckedValue??c.NOOP,_=z?.setTouched??c.NOOP,Y=z?.registerControlRef??c.NOOP,$=z?.registerInputRef??c.NOOP,{setDirty:X,validityData:J,setTouched:Z,setFilled:Q,state:ee,disabled:et}=(0,x.useFieldRootContext)(),er=(0,g.useFieldItemContext)(),{labelId:en,getDescriptionProps:el}=(0,v.useLabelableContext)(),ea=et||er.disabled||F||N,ei=B||E,es=V||R,eo=z?q===A:""===A,ec=r.useMemo(()=>(0,k.serializeValue)(A),[A]),ed=r.useRef(null),eu=r.useRef(null),eh=(0,a.useStableCallback)(e=>{e&&Y(e,ea)}),em=(0,n.useMergedRefs)(T,eu,$);(0,l.useIsoLayoutEffect)(()=>{eu.current?.checked&&Q(!0)},[Q]),(0,l.useIsoLayoutEffect)(()=>{if(eu.current){if(ea&&eo)return void $(null);ed.current&&Y(ed.current,ea),$(eu.current)}},[eo,ea,Y,$]);let ep=(0,u.useBaseUiId)(),ef=(0,b.useLabelableId)({id:L,implicit:!1,controlRef:ed}),ex=I?void 0:ef,eg={role:"radio","aria-checked":eo,"aria-required":es||void 0,"aria-readonly":ei||void 0,"aria-labelledby":(0,y.useAriaLabelledBy)(D,en,eu,!I,ex),[p.ACTIVE_COMPOSITE_ITEM]:eo?"":void 0,id:I?ef:ep,onKeyDown(e){"Enter"===e.key&&e.preventDefault()},onClick(e){e.defaultPrevented||ea||ei||(e.preventDefault(),eu.current?.dispatchEvent(new PointerEvent("click",{bubbles:!0,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,altKey:e.altKey,metaKey:e.metaKey})))},onFocus(e){e.defaultPrevented||ea||ei||!U||(eu.current?.click(),_(!1))}},{getButtonProps:ev,buttonRef:ey}=(0,m.useButton)({disabled:ea,native:I}),eb={type:"radio",ref:em,form:H,id:ex,name:G,tabIndex:-1,style:G?i.visuallyHiddenInput:i.visuallyHidden,"aria-hidden":!0,...void 0!==A?{value:ec}:c.EMPTY_OBJECT,disabled:ea,checked:eo,required:es,readOnly:ei,onChange(e){if(e.nativeEvent.defaultPrevented||ea||ei||void 0===A)return;let t=(0,s.createChangeEventDetails)(o.REASONS.none,e.nativeEvent);t.isCanceled||(Z(!0),X(A!==J.initialValue),Q(!0),W(A,t))},onFocus(){ed.current?.focus()}},ew=r.useMemo(()=>({...ee,required:es,disabled:ea,readOnly:ei,checked:eo}),[ee,ea,ei,eo,es]),ek=void 0!==z,ej=[j,ed,ey,eh],eS=[eg,el,K?.getValidationProps??c.EMPTY_OBJECT,O,ev],eC=(0,h.useRenderElement)("span",e,{enabled:!ek,state:ew,ref:ej,props:eS,stateAttributesMapping:d.stateAttributesMapping});return(0,t.jsxs)(S.Provider,{value:ew,children:[ek?(0,t.jsx)(f.CompositeItem,{tag:"span",render:C,className:M,style:P,state:ew,refs:ej,props:eS,stateAttributesMapping:d.stateAttributesMapping}):eC,(0,t.jsx)("input",{...eb,suppressHydrationWarning:!0})]})});var M=e.i(118303),N=e.i(994142);let E=r.forwardRef(function(e,t){let{render:n,className:l,style:a,keepMounted:i=!1,...s}=e,o=function(){let e=r.useContext(S);if(void 0===e)throw Error((0,j.default)(52));return e}(),c=o.checked,{mounted:u,transitionStatus:m,setMounted:p}=(0,N.useTransitionStatus)(c),f={...o,transitionStatus:m},x=r.useRef(null),g=(0,h.useRenderElement)("span",e,{ref:[t,x],state:f,props:s,stateAttributesMapping:d.stateAttributesMapping});return((0,M.useOpenChangeComplete)({open:c,ref:x,onComplete(){c||p(!1)}}),i||u)?g:null});e.s(["Indicator",0,E,"Root",0,C],648646);var R=e.i(648646),R=R,D=e.i(176955),A=e.i(772610),T=e.i(317575),I=e.i(66149),L=e.i(560023),P=e.i(963934),O=e.i(935942),z=e.i(508430),F=e.i(138252);let B=[T.SHIFT],V=r.forwardRef(function(e,n){let{render:l,className:i,disabled:s,readOnly:o,required:c,onValueChange:d,value:h,defaultValue:m,form:p,name:f,inputRef:g,id:y,style:b,...k}=e,{setTouched:j,setFocused:S,shouldValidateOnChange:C,validationMode:M,name:N,disabled:E,state:R,validation:T,setDirty:V,setFilled:H,validityData:q}=(0,x.useFieldRootContext)(),{labelId:U}=(0,v.useLabelableContext)(),{clearErrors:K}=(0,z.useFormContext)(),G=(0,O.useFieldsetRootContext)(!0),W=E||s,_=N??f,Y=(0,u.useBaseUiId)(y),[$,X]=(0,D.useControlled)({controlled:h,default:m,name:"RadioGroup",state:"value"}),J=(0,a.useStableCallback)(d),Z=(0,a.useStableCallback)((e,t)=>{J(e,t),t.isCanceled||X(e)}),Q=r.useRef(null),ee=r.useRef(null),et=r.useRef(null);function er(e){let t;return g&&("function"==typeof g?t=g(e):g.current=e),ee.current=e,T.inputRef.current=e,t}let en=(0,a.useStableCallback)((e,t=!1)=>{if(e){if(t){Q.current===e&&(Q.current=null);return}null==Q.current&&(Q.current=e)}}),el=(0,a.useStableCallback)(e=>{if(!e||e.disabled)return;et.current||(et.current=e);let t=ee.current;if(e.checked||null==t||t.disabled)return er(e)}),ea=(0,a.useStableCallback)(()=>$??null);(0,L.useRegisterFieldControl)(Q,{id:Y,value:$,getValue:ea}),(0,F.useValueChanged)($,()=>{K(_),V($!==q.initialValue),H(null!=$),C()?T.commit($):T.commit($,!0);let e=et.current;null==$&&e&&!e.disabled&&er(e)});let[ei,es]=r.useState(!1),eo=k["aria-labelledby"]??U??G?.legendId,ec={...R,disabled:W??!1,required:c??!1,readOnly:o??!1},ed=r.useMemo(()=>({...R,checkedValue:$,disabled:W,form:p,validation:T,name:_,onValueChange:J,readOnly:o,registerControlRef:en,registerInputRef:el,required:c,setCheckedValue:Z,setTouched:es,touched:ei}),[$,W,p,T,R,_,J,o,en,el,c,Z,es,ei]);return(0,t.jsx)(w.RadioGroupContext.Provider,{value:ed,children:(0,t.jsx)(I.CompositeRoot,{render:l,className:i,style:b,state:ec,props:[{role:"radiogroup","aria-required":c||void 0,"aria-disabled":W||void 0,"aria-readonly":o||void 0,"aria-labelledby":eo,onFocus(){S(!0)},onBlur(e){(0,A.contains)(e.currentTarget,e.relatedTarget)||(j(!0),S(!1),"onBlur"===M&&T.commit($))},onKeyDownCapture(e){e.key.startsWith("Arrow")&&(j(!0),es(!0),S(!0))}},T.getValidationProps,k],refs:[n],stateAttributesMapping:P.fieldValidityMapping,enableHomeAndEndKeys:!1,modifierKeys:B})})});var H=e.i(353533);e.s(["RadioGroup",0,function({className:e,...r}){return(0,t.jsx)(V,{"data-slot":"radio-group",className:(0,H.cn)("grid w-full gap-2",e),...r})},"RadioGroupItem",0,function({className:e,...r}){return(0,t.jsx)(R.Root,{"data-slot":"radio-group-item",className:(0,H.cn)("group/radio-group-item peer relative flex aspect-square size-4 shrink-0 rounded-full border border-input outline-none after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary",e),...r,children:(0,t.jsx)(R.Indicator,{"data-slot":"radio-group-indicator",className:"flex size-4 items-center justify-center",children:(0,t.jsx)("span",{className:"absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2 rounded-full bg-primary-foreground"})})})}],636989)},170004,146341,59295,706277,269356,e=>{"use strict";let t;e.s(["TOAST_POSITIONS",0,["top-left","top-center","top-right","bottom-left","bottom-center","bottom-right"]],170004);var r,n,l,a,i,s,o,c,d,u,h,m,p,f,x,g,v,y,b,w=e.i(191788),k=e.i(730943);function j(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,w.useMemo)(()=>e=>{t.forEach(t=>t(e))},t)}let S="u">typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function C(e){let t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function M(e){return"nodeType"in e}function N(e){var t,r;return e?C(e)?e:M(e)&&null!=(t=null==(r=e.ownerDocument)?void 0:r.defaultView)?t:window:window}function E(e){let{Document:t}=N(e);return e instanceof t}function R(e){return!C(e)&&e instanceof N(e).HTMLElement}function D(e){return e instanceof N(e).SVGElement}function A(e){return e?C(e)?e.document:M(e)?E(e)?e:R(e)||D(e)?e.ownerDocument:document:document:document}let T=S?w.useLayoutEffect:w.useEffect;function I(e){let t=(0,w.useRef)(e);return T(()=>{t.current=e}),(0,w.useCallback)(function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];return null==t.current?void 0:t.current(...r)},[])}function L(){let e=(0,w.useRef)(null);return[(0,w.useCallback)((t,r)=>{e.current=setInterval(t,r)},[]),(0,w.useCallback)(()=>{null!==e.current&&(clearInterval(e.current),e.current=null)},[])]}function P(e,t){void 0===t&&(t=[e]);let r=(0,w.useRef)(e);return T(()=>{r.current!==e&&(r.current=e)},t),r}function O(e,t){let r=(0,w.useRef)();return(0,w.useMemo)(()=>{let t=e(r.current);return r.current=t,t},[...t])}function z(e){let t=I(e),r=(0,w.useRef)(null),n=(0,w.useCallback)(e=>{e!==r.current&&(null==t||t(e,r.current)),r.current=e},[]);return[r,n]}function F(e){let t=(0,w.useRef)();return(0,w.useEffect)(()=>{t.current=e},[e]),t.current}let B={};function V(e,t){return(0,w.useMemo)(()=>{if(t)return t;let r=null==B[e]?0:B[e]+1;return B[e]=r,e+"-"+r},[e,t])}function H(e){return function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),l=1;l<r;l++)n[l-1]=arguments[l];return n.reduce((t,r)=>{for(let[n,l]of Object.entries(r)){let r=t[n];null!=r&&(t[n]=r+e*l)}return t},{...t})}}let q=H(1),U=H(-1);function K(e){if(!e)return!1;let{KeyboardEvent:t}=N(e.target);return t&&e instanceof t}function G(e){if(function(e){if(!e)return!1;let{TouchEvent:t}=N(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){let{clientX:t,clientY:r}=e.touches[0];return{x:t,y:r}}else if(e.changedTouches&&e.changedTouches.length){let{clientX:t,clientY:r}=e.changedTouches[0];return{x:t,y:r}}}return"clientX"in e&&"clientY"in e?{x:e.clientX,y:e.clientY}:null}let W=Object.freeze({Translate:{toString(e){if(!e)return;let{x:t,y:r}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(r?Math.round(r):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;let{scaleX:t,scaleY:r}=e;return"scaleX("+t+") scaleY("+r+")"}},Transform:{toString(e){if(e)return[W.Translate.toString(e),W.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:r,easing:n}=e;return t+" "+r+"ms "+n}}}),_="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function Y(e){return e.matches(_)?e:e.querySelector(_)}e.s(["CSS",0,W,"add",0,q,"canUseDOM",0,S,"findFirstFocusableNode",0,Y,"getEventCoordinates",0,G,"getOwnerDocument",0,A,"getWindow",0,N,"isDocument",0,E,"isHTMLElement",0,R,"isKeyboardEvent",0,K,"isNode",0,M,"isSVGElement",0,D,"isWindow",0,C,"subtract",0,U,"useCombinedRefs",0,j,"useEvent",0,I,"useInterval",0,L,"useIsomorphicLayoutEffect",0,T,"useLatestValue",0,P,"useLazyMemo",0,O,"useNodeRef",0,z,"usePrevious",0,F,"useUniqueId",0,V],146341);let $={display:"none"};function X(e){let{id:t,value:r}=e;return w.default.createElement("div",{id:t,style:$},r)}function J(e){let{id:t,announcement:r,ariaLiveType:n="assertive"}=e;return w.default.createElement("div",{id:t,style:{position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":n,"aria-atomic":!0},r)}let Z=(0,w.createContext)(null),Q={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},ee={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:r}=e;return r?"Draggable item "+t.id+" was moved over droppable area "+r.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:r}=e;return r?"Draggable item "+t.id+" was dropped over droppable area "+r.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function et(e){var t;let r,{announcements:n=ee,container:l,hiddenTextDescribedById:a,screenReaderInstructions:i=Q}=e,{announce:s,announcement:o}=function(){let[e,t]=(0,w.useState)("");return{announce:(0,w.useCallback)(e=>{null!=e&&t(e)},[]),announcement:e}}(),c=V("DndLiveRegion"),[d,u]=(0,w.useState)(!1);if((0,w.useEffect)(()=>{u(!0)},[]),t=(0,w.useMemo)(()=>({onDragStart(e){let{active:t}=e;s(n.onDragStart({active:t}))},onDragMove(e){let{active:t,over:r}=e;n.onDragMove&&s(n.onDragMove({active:t,over:r}))},onDragOver(e){let{active:t,over:r}=e;s(n.onDragOver({active:t,over:r}))},onDragEnd(e){let{active:t,over:r}=e;s(n.onDragEnd({active:t,over:r}))},onDragCancel(e){let{active:t,over:r}=e;s(n.onDragCancel({active:t,over:r}))}}),[s,n]),r=(0,w.useContext)(Z),(0,w.useEffect)(()=>{if(!r)throw Error("useDndMonitor must be used within a children of <DndContext>");return r(t)},[t,r]),!d)return null;let h=w.default.createElement(w.default.Fragment,null,w.default.createElement(X,{id:a,value:i.draggable}),w.default.createElement(J,{id:c,announcement:o}));return l?(0,k.createPortal)(h,l):h}function er(){}(r=u||(u={})).DragStart="dragStart",r.DragMove="dragMove",r.DragEnd="dragEnd",r.DragCancel="dragCancel",r.DragOver="dragOver",r.RegisterDroppable="registerDroppable",r.SetDroppableDisabled="setDroppableDisabled",r.UnregisterDroppable="unregisterDroppable";let en=Object.freeze({x:0,y:0});function el(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function ea(e,t){let{data:{value:r}}=e,{data:{value:n}}=t;return r-n}function ei(e,t){let{data:{value:r}}=e,{data:{value:n}}=t;return n-r}function es(e){let{left:t,top:r,height:n,width:l}=e;return[{x:t,y:r},{x:t+l,y:r},{x:t,y:r+n},{x:t+l,y:r+n}]}function eo(e,t){if(!e||0===e.length)return null;let[r]=e;return t?r[t]:r}function ec(e,t,r){return void 0===t&&(t=e.left),void 0===r&&(r=e.top),{x:t+.5*e.width,y:r+.5*e.height}}let ed=e=>{let{collisionRect:t,droppableRects:r,droppableContainers:n}=e,l=[];for(let e of n){let{id:n}=e,a=r.get(n);if(a){let r=function(e,t){let r=Math.max(t.top,e.top),n=Math.max(t.left,e.left),l=Math.min(t.left+t.width,e.left+e.width),a=Math.min(t.top+t.height,e.top+e.height);if(n<l&&r<a){let i=t.width*t.height,s=e.width*e.height,o=(l-n)*(a-r);return Number((o/(i+s-o)).toFixed(4))}return 0}(a,t);r>0&&l.push({id:n,data:{droppableContainer:e,value:r}})}}return l.sort(ei)};function eu(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:en}let eh=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return r.reduce((e,t)=>({...e,top:e.top+ +t.y,bottom:e.bottom+ +t.y,left:e.left+ +t.x,right:e.right+ +t.x}),{...e})},em={ignoreTransform:!1};function ep(e,t){void 0===t&&(t=em);let r=e.getBoundingClientRect();if(t.ignoreTransform){let{transform:t,transformOrigin:n}=N(e).getComputedStyle(e);t&&(r=function(e,t,r){let n=function(e){if(e.startsWith("matrix3d(")){let t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){let t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}(t);if(!n)return e;let{scaleX:l,scaleY:a,x:i,y:s}=n,o=e.left-i-(1-l)*parseFloat(r),c=e.top-s-(1-a)*parseFloat(r.slice(r.indexOf(" ")+1)),d=l?e.width/l:e.width,u=a?e.height/a:e.height;return{width:d,height:u,top:c,right:o+d,bottom:c+u,left:o}}(r,t,n))}let{top:n,left:l,width:a,height:i,bottom:s,right:o}=r;return{top:n,left:l,width:a,height:i,bottom:s,right:o}}function ef(e){return ep(e,{ignoreTransform:!0})}function ex(e,t){let r=[];return e?function n(l){var a,i;let s;if(null!=t&&r.length>=t||!l)return r;if(E(l)&&null!=l.scrollingElement&&!r.includes(l.scrollingElement))return r.push(l.scrollingElement),r;if(!R(l)||D(l)||r.includes(l))return r;let o=N(e).getComputedStyle(l);return(l!==e&&(void 0===(a=o)&&(a=N(l).getComputedStyle(l)),s=/(auto|scroll|overlay)/,["overflow","overflowX","overflowY"].some(e=>{let t=a[e];return"string"==typeof t&&s.test(t)}))&&r.push(l),void 0===(i=o)&&(i=N(l).getComputedStyle(l)),"fixed"===i.position)?r:n(l.parentNode)}(e):r}function eg(e){let[t]=ex(e,1);return null!=t?t:null}function ev(e){return S&&e?C(e)?e:M(e)?E(e)||e===A(e).scrollingElement?window:R(e)?e:null:null:null}function ey(e){return C(e)?e.scrollX:e.scrollLeft}function eb(e){return C(e)?e.scrollY:e.scrollTop}function ew(e){return{x:ey(e),y:eb(e)}}function ek(e){return!!S&&!!e&&e===document.scrollingElement}function ej(e){let t={x:0,y:0},r=ek(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},n={x:e.scrollWidth-r.width,y:e.scrollHeight-r.height},l=e.scrollTop<=t.y,a=e.scrollLeft<=t.x;return{isTop:l,isLeft:a,isBottom:e.scrollTop>=n.y,isRight:e.scrollLeft>=n.x,maxScroll:n,minScroll:t}}(n=h||(h={}))[n.Forward=1]="Forward",n[n.Backward=-1]="Backward";let eS={x:.2,y:.2};function eC(e){return e.reduce((e,t)=>q(e,ew(t)),en)}let eM=[["x",["left","right"],function(e){return e.reduce((e,t)=>e+ey(t),0)}],["y",["top","bottom"],function(e){return e.reduce((e,t)=>e+eb(t),0)}]];class eN{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=ex(t),n=eC(r);for(const[t,l,a]of(this.rect={...e},this.width=e.width,this.height=e.height,eM))for(const e of l)Object.defineProperty(this,e,{get:()=>{let l=a(r),i=n[t]-l;return this.rect[e]+i},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class eE{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)})},this.target=e}add(e,t,r){var n;null==(n=this.target)||n.addEventListener(e,t,r),this.listeners.push([e,t,r])}}function eR(e,t){let r=Math.abs(e.x),n=Math.abs(e.y);return"number"==typeof t?Math.sqrt(r**2+n**2)>t:"x"in t&&"y"in t?r>t.x&&n>t.y:"x"in t?r>t.x:"y"in t&&n>t.y}function eD(e){e.preventDefault()}function eA(e){e.stopPropagation()}(l=m||(m={})).Click="click",l.DragStart="dragstart",l.Keydown="keydown",l.ContextMenu="contextmenu",l.Resize="resize",l.SelectionChange="selectionchange",l.VisibilityChange="visibilitychange",(a=p||(p={})).Space="Space",a.Down="ArrowDown",a.Right="ArrowRight",a.Left="ArrowLeft",a.Up="ArrowUp",a.Esc="Escape",a.Enter="Enter",a.Tab="Tab";let eT={start:[p.Space,p.Enter],cancel:[p.Esc],end:[p.Space,p.Enter,p.Tab]},eI=(e,t)=>{let{currentCoordinates:r}=t;switch(e.code){case p.Right:return{...r,x:r.x+25};case p.Left:return{...r,x:r.x-25};case p.Down:return{...r,y:r.y+25};case p.Up:return{...r,y:r.y-25}}};class eL{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new eE(A(t)),this.windowListeners=new eE(N(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(m.Resize,this.handleCancel),this.windowListeners.add(m.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(m.Keydown,this.handleKeyDown))}handleStart(){let{activeNode:e,onStart:t}=this.props,r=e.node.current;r&&function(e,t){if(void 0===t&&(t=ep),!e)return;let{top:r,left:n,bottom:l,right:a}=t(e);eg(e)&&(l<=0||a<=0||r>=window.innerHeight||n>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}(r),t(en)}handleKeyDown(e){if(K(e)){let{active:t,context:r,options:n}=this.props,{keyboardCodes:l=eT,coordinateGetter:a=eI,scrollBehavior:i="smooth"}=n,{code:s}=e;if(l.end.includes(s))return void this.handleEnd(e);if(l.cancel.includes(s))return void this.handleCancel(e);let{collisionRect:o}=r.current,c=o?{x:o.left,y:o.top}:en;this.referenceCoordinates||(this.referenceCoordinates=c);let d=a(e,{active:t,context:r.current,currentCoordinates:c});if(d){let t=U(d,c),n={x:0,y:0},{scrollableAncestors:l}=r.current;for(let r of l){let l=e.code,{isTop:a,isRight:s,isLeft:o,isBottom:c,maxScroll:u,minScroll:h}=ej(r),m=function(e){if(e===document.scrollingElement){let{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}let{top:t,left:r,right:n,bottom:l}=e.getBoundingClientRect();return{top:t,left:r,right:n,bottom:l,width:e.clientWidth,height:e.clientHeight}}(r),f={x:Math.min(l===p.Right?m.right-m.width/2:m.right,Math.max(l===p.Right?m.left:m.left+m.width/2,d.x)),y:Math.min(l===p.Down?m.bottom-m.height/2:m.bottom,Math.max(l===p.Down?m.top:m.top+m.height/2,d.y))},x=l===p.Right&&!s||l===p.Left&&!o,g=l===p.Down&&!c||l===p.Up&&!a;if(x&&f.x!==d.x){let e=r.scrollLeft+t.x,a=l===p.Right&&e<=u.x||l===p.Left&&e>=h.x;if(a&&!t.y)return void r.scrollTo({left:e,behavior:i});a?n.x=r.scrollLeft-e:n.x=l===p.Right?r.scrollLeft-u.x:r.scrollLeft-h.x,n.x&&r.scrollBy({left:-n.x,behavior:i});break}if(g&&f.y!==d.y){let e=r.scrollTop+t.y,a=l===p.Down&&e<=u.y||l===p.Up&&e>=h.y;if(a&&!t.x)return void r.scrollTo({top:e,behavior:i});a?n.y=r.scrollTop-e:n.y=l===p.Down?r.scrollTop-u.y:r.scrollTop-h.y,n.y&&r.scrollBy({top:-n.y,behavior:i});break}}this.handleMove(e,q(U(d,this.referenceCoordinates),n))}}}handleMove(e,t){let{onMove:r}=this.props;e.preventDefault(),r(t)}handleEnd(e){let{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){let{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function eP(e){return!!(e&&"distance"in e)}function eO(e){return!!(e&&"delay"in e)}eL.activators=[{eventName:"onKeyDown",handler:(e,t,r)=>{let{keyboardCodes:n=eT,onActivation:l}=t,{active:a}=r,{code:i}=e.nativeEvent;if(n.start.includes(i)){let t=a.activatorNode.current;return(!t||e.target===t)&&(e.preventDefault(),null==l||l({event:e.nativeEvent}),!0)}return!1}}];class ez{constructor(e,t,r){var n;void 0===r&&(r=function(e){let{EventTarget:t}=N(e);return e instanceof t?e:A(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:l}=e,{target:a}=l;this.props=e,this.events=t,this.document=A(a),this.documentListeners=new eE(this.document),this.listeners=new eE(r),this.windowListeners=new eE(N(a)),this.initialCoordinates=null!=(n=G(l))?n:en,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){let{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:r}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(m.Resize,this.handleCancel),this.windowListeners.add(m.DragStart,eD),this.windowListeners.add(m.VisibilityChange,this.handleCancel),this.windowListeners.add(m.ContextMenu,eD),this.documentListeners.add(m.Keydown,this.handleKeydown),t){if(null!=r&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(eO(t)){this.timeoutId=setTimeout(this.handleStart,t.delay),this.handlePending(t);return}if(eP(t))return void this.handlePending(t)}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,t){let{active:r,onPending:n}=this.props;n(r,e,this.initialCoordinates,t)}handleStart(){let{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(m.Click,eA,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(m.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;let{activated:r,initialCoordinates:n,props:l}=this,{onMove:a,options:{activationConstraint:i}}=l;if(!n)return;let s=null!=(t=G(e))?t:en,o=U(n,s);if(!r&&i){if(eP(i)){if(null!=i.tolerance&&eR(o,i.tolerance))return this.handleCancel();if(eR(o,i.distance))return this.handleStart()}return eO(i)&&eR(o,i.tolerance)?this.handleCancel():void this.handlePending(i,o)}e.cancelable&&e.preventDefault(),a(s)}handleEnd(){let{onAbort:e,onEnd:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleCancel(){let{onAbort:e,onCancel:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleKeydown(e){e.code===p.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}let eF={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class eB extends ez{constructor(e){const{event:t}=e;super(e,eF,A(t.target))}}eB.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:n}=t;return!!r.isPrimary&&0===r.button&&(null==n||n({event:r}),!0)}}];(i=f||(f={}))[i.RightClick=2]="RightClick";(s=x||(x={}))[s.Pointer=0]="Pointer",s[s.DraggableRect=1]="DraggableRect",(o=g||(g={}))[o.TreeOrder=0]="TreeOrder",o[o.ReversedTreeOrder=1]="ReversedTreeOrder";let eV={x:{[h.Backward]:!1,[h.Forward]:!1},y:{[h.Backward]:!1,[h.Forward]:!1}};(c=v||(v={}))[c.Always=0]="Always",c[c.BeforeDragging=1]="BeforeDragging",c[c.WhileDragging=2]="WhileDragging",(y||(y={})).Optimized="optimized";let eH=new Map;function eq(e,t){return O(r=>e?r||("function"==typeof t?t(e):e):null,[t,e])}function eU(e){let{callback:t,disabled:r}=e,n=I(t),l=(0,w.useMemo)(()=>{if(r||"u"<typeof window||void 0===window.ResizeObserver)return;let{ResizeObserver:e}=window;return new e(n)},[r]);return(0,w.useEffect)(()=>()=>null==l?void 0:l.disconnect(),[l]),l}function eK(e){return new eN(ep(e),e)}function eG(e,t,r){void 0===t&&(t=eK);let[n,l]=(0,w.useState)(null);function a(){l(n=>{if(!e)return null;if(!1===e.isConnected){var l;return null!=(l=null!=n?n:r)?l:null}let a=t(e);return JSON.stringify(n)===JSON.stringify(a)?n:a})}let i=function(e){let{callback:t,disabled:r}=e,n=I(t),l=(0,w.useMemo)(()=>{if(r||"u"<typeof window||void 0===window.MutationObserver)return;let{MutationObserver:e}=window;return new e(n)},[n,r]);return(0,w.useEffect)(()=>()=>null==l?void 0:l.disconnect(),[l]),l}({callback(t){if(e)for(let r of t){let{type:t,target:n}=r;if("childList"===t&&n instanceof HTMLElement&&n.contains(e)){a();break}}}}),s=eU({callback:a});return T(()=>{a(),e?(null==s||s.observe(e),null==i||i.observe(document.body,{childList:!0,subtree:!0})):(null==s||s.disconnect(),null==i||i.disconnect())},[e]),n}let eW=[];function e_(e,t){void 0===t&&(t=[]);let r=(0,w.useRef)(null);return(0,w.useEffect)(()=>{r.current=null},t),(0,w.useEffect)(()=>{let t=e!==en;t&&!r.current&&(r.current=e),!t&&r.current&&(r.current=null)},[e]),r.current?U(e,r.current):en}function eY(e){return(0,w.useMemo)(()=>{let t,r;return e?(t=e.innerWidth,{top:0,left:0,right:t,bottom:r=e.innerHeight,width:t,height:r}):null},[e])}let e$=[],eX=[{sensor:eB,options:{}},{sensor:eL,options:{}}],eJ={current:{}},eZ={draggable:{measure:ef},droppable:{measure:ef,strategy:v.WhileDragging,frequency:y.Optimized},dragOverlay:{measure:ep}};class eQ extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){var t,r;return null!=(t=null==(r=this.get(e))?void 0:r.node.current)?t:void 0}}let e0={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new eQ,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:er},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:eZ,measureDroppableContainers:er,windowRect:null,measuringScheduled:!1},e1={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:er,draggableNodes:new Map,over:null,measureDroppableContainers:er},e2=(0,w.createContext)(e1),e3=(0,w.createContext)(e0);function e5(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new eQ}}}function e4(e,t){switch(t.type){case u.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case u.DragMove:if(null==e.draggable.active)return e;return{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case u.DragEnd:case u.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case u.RegisterDroppable:{let{element:r}=t,{id:n}=r,l=new eQ(e.droppable.containers);return l.set(n,r),{...e,droppable:{...e.droppable,containers:l}}}case u.SetDroppableDisabled:{let{id:r,key:n,disabled:l}=t,a=e.droppable.containers.get(r);if(!a||n!==a.key)return e;let i=new eQ(e.droppable.containers);return i.set(r,{...a,disabled:l}),{...e,droppable:{...e.droppable,containers:i}}}case u.UnregisterDroppable:{let{id:r,key:n}=t,l=e.droppable.containers.get(r);if(!l||n!==l.key)return e;let a=new eQ(e.droppable.containers);return a.delete(r),{...e,droppable:{...e.droppable,containers:a}}}default:return e}}function e6(e){let{disabled:t}=e,{active:r,activatorEvent:n,draggableNodes:l}=(0,w.useContext)(e2),a=F(n),i=F(null==r?void 0:r.id);return(0,w.useEffect)(()=>{if(!t&&!n&&a&&null!=i){if(!K(a)||document.activeElement===a.target)return;let e=l.get(i);if(!e)return;let{activatorNode:t,node:r}=e;(t.current||r.current)&&requestAnimationFrame(()=>{for(let e of[t.current,r.current]){if(!e)continue;let t=Y(e);if(t){t.focus();break}}})}},[n,t,l,i,a]),null}let e8=(0,w.createContext)({...en,scaleX:1,scaleY:1});(d=b||(b={}))[d.Uninitialized=0]="Uninitialized",d[d.Initializing=1]="Initializing",d[d.Initialized=2]="Initialized";let e9=(0,w.memo)(function(e){var t,r,n,l,a,i,s,o;let c,d,m,p,f,y,j,C,{id:M,accessibility:E,autoScroll:D=!0,children:A,sensors:I=eX,collisionDetection:B=ed,measuring:H,modifiers:U,...K}=e,[W,_]=(0,w.useReducer)(e4,void 0,e5),[Y,$]=function(){let[e]=(0,w.useState)(()=>new Set),t=(0,w.useCallback)(t=>(e.add(t),()=>e.delete(t)),[e]);return[(0,w.useCallback)(t=>{let{type:r,event:n}=t;e.forEach(e=>{var t;return null==(t=e[r])?void 0:t.call(e,n)})},[e]),t]}(),[X,J]=(0,w.useState)(b.Uninitialized),Q=X===b.Initialized,{draggable:{active:ee,nodes:er,translate:el},droppable:{containers:ea}}=W,ei=null!=ee?er.get(ee):null,es=(0,w.useRef)({initial:null,translated:null}),ec=(0,w.useMemo)(()=>{var e;return null!=ee?{id:ee,data:null!=(e=null==ei?void 0:ei.data)?e:eJ,rect:es}:null},[ee,ei]),em=(0,w.useRef)(null),[ef,ey]=(0,w.useState)(null),[eb,eM]=(0,w.useState)(null),eE=P(K,Object.values(K)),eR=V("DndDescribedBy",M),eD=(0,w.useMemo)(()=>ea.getEnabled(),[ea]),eA=(0,w.useMemo)(()=>({draggable:{...eZ.draggable,...null==H?void 0:H.draggable},droppable:{...eZ.droppable,...null==H?void 0:H.droppable},dragOverlay:{...eZ.dragOverlay,...null==H?void 0:H.dragOverlay}}),[null==H?void 0:H.draggable,null==H?void 0:H.droppable,null==H?void 0:H.dragOverlay]),{droppableRects:eT,measureDroppableContainers:eI,measuringScheduled:eL}=function(e,t){let{dragging:r,dependencies:n,config:l}=t,[a,i]=(0,w.useState)(null),{frequency:s,measure:o,strategy:c}=l,d=(0,w.useRef)(e),u=function(){switch(c){case v.Always:return!1;case v.BeforeDragging:return r;default:return!r}}(),h=P(u),m=(0,w.useCallback)(function(e){void 0===e&&(e=[]),h.current||i(t=>null===t?e:t.concat(e.filter(e=>!t.includes(e))))},[h]),p=(0,w.useRef)(null),f=O(t=>{if(u&&!r)return eH;if(!t||t===eH||d.current!==e||null!=a){let t=new Map;for(let r of e){if(!r)continue;if(a&&a.length>0&&!a.includes(r.id)&&r.rect.current){t.set(r.id,r.rect.current);continue}let e=r.node.current,n=e?new eN(o(e),e):null;r.rect.current=n,n&&t.set(r.id,n)}return t}return t},[e,a,r,u,o]);return(0,w.useEffect)(()=>{d.current=e},[e]),(0,w.useEffect)(()=>{u||m()},[r,u]),(0,w.useEffect)(()=>{a&&a.length>0&&i(null)},[JSON.stringify(a)]),(0,w.useEffect)(()=>{u||"number"!=typeof s||null!==p.current||(p.current=setTimeout(()=>{m(),p.current=null},s))},[s,u,m,...n]),{droppableRects:f,measureDroppableContainers:m,measuringScheduled:null!=a}}(eD,{dragging:Q,dependencies:[el.x,el.y],config:eA.droppable}),eP=O(e=>{var t;return null==ee?null:null!=(t=null!=f?f:e)?t:null},[f=(p=null!=ee?er.get(ee):void 0)?p.node.current:null,ee]),eO=(0,w.useMemo)(()=>eb?G(eb):null,[eb]),ez=(c=(null==ef?void 0:ef.autoScrollEnabled)===!1,d="object"==typeof D?!1===D.enabled:!1===D,m=Q&&!c&&!d,"object"==typeof D?{...D,enabled:m}:{enabled:m}),eF=eq(eP,eA.draggable.measure);!function(e){let{activeNode:t,measure:r,initialRect:n,config:l=!0}=e,a=(0,w.useRef)(!1),{x:i,y:s}="boolean"==typeof l?{x:l,y:l}:l;T(()=>{if(!i&&!s||!t){a.current=!1;return}if(a.current||!n)return;let e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;let l=eu(r(e),n);if(i||(l.x=0),s||(l.y=0),a.current=!0,Math.abs(l.x)>0||Math.abs(l.y)>0){let t=eg(e);t&&t.scrollBy({top:l.y,left:l.x})}},[t,i,s,n,r])}({activeNode:null!=ee?er.get(ee):null,config:ez.layoutShiftCompensation,initialRect:eF,measure:eA.draggable.measure});let eB=eG(eP,eA.draggable.measure,eF),eK=eG(eP?eP.parentElement:null),eQ=(0,w.useRef)({activatorEvent:null,active:null,activeNode:eP,collisionRect:null,collisions:null,droppableRects:eT,draggableNodes:er,draggingNode:null,draggingNodeRect:null,droppableContainers:ea,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),e0=ea.getNodeFor(null==(t=eQ.current.over)?void 0:t.id),e1=function(e){let{measure:t}=e,[r,n]=(0,w.useState)(null),l=eU({callback:(0,w.useCallback)(e=>{for(let{target:r}of e)if(R(r)){n(e=>{let n=t(r);return e?{...e,width:n.width,height:n.height}:n});break}},[t])}),[a,i]=z((0,w.useCallback)(e=>{let r=function(e){if(!e)return null;if(e.children.length>1)return e;let t=e.children[0];return R(t)?t:e}(e);null==l||l.disconnect(),r&&(null==l||l.observe(r)),n(r?t(r):null)},[t,l]));return(0,w.useMemo)(()=>({nodeRef:a,rect:r,setRef:i}),[r,a,i])}({measure:eA.dragOverlay.measure}),e9=null!=(r=e1.nodeRef.current)?r:eP,e7=Q?null!=(n=e1.rect)?n:eB:null,te=!!(e1.nodeRef.current&&e1.rect),tt=(y=eq(a=te?null:eB),eu(a,y)),tr=eY(e9?N(e9):null),tn=(i=Q?null!=e0?e0:eP:null,j=(0,w.useRef)(i),C=O(e=>i?e&&e!==eW&&i&&j.current&&i.parentNode===j.current.parentNode?e:ex(i):eW,[i]),(0,w.useEffect)(()=>{j.current=i},[i]),C),tl=function(e,t){void 0===t&&(t=ep);let[r]=e,n=eY(r?N(r):null),[l,a]=(0,w.useState)(e$);function i(){a(()=>e.length?e.map(e=>ek(e)?n:new eN(t(e),e)):e$)}let s=eU({callback:i});return T(()=>{null==s||s.disconnect(),i(),e.forEach(e=>null==s?void 0:s.observe(e))},[e]),l}(tn),ta=function(e,t){let{transform:r,...n}=t;return null!=e&&e.length?e.reduce((e,t)=>t({transform:e,...n}),r):r}(U,{transform:{x:el.x-tt.x,y:el.y-tt.y,scaleX:1,scaleY:1},activatorEvent:eb,active:ec,activeNodeRect:eB,containerNodeRect:eK,draggingNodeRect:e7,over:eQ.current.over,overlayNodeRect:e1.rect,scrollableAncestors:tn,scrollableAncestorRects:tl,windowRect:tr}),ti=eO?q(eO,el):null,ts=function(e){let[t,r]=(0,w.useState)(null),n=(0,w.useRef)(e),l=(0,w.useCallback)(e=>{let t=ev(e.target);t&&r(e=>e?(e.set(t,ew(t)),new Map(e)):null)},[]);return(0,w.useEffect)(()=>{let t=n.current;if(e!==t){a(t);let i=e.map(e=>{let t=ev(e);return t?(t.addEventListener("scroll",l,{passive:!0}),[t,ew(t)]):null}).filter(e=>null!=e);r(i.length?new Map(i):null),n.current=e}return()=>{a(e),a(t)};function a(e){e.forEach(e=>{let t=ev(e);null==t||t.removeEventListener("scroll",l)})}},[l,e]),(0,w.useMemo)(()=>e.length?t?Array.from(t.values()).reduce((e,t)=>q(e,t),en):eC(e):en,[e,t])}(tn),to=e_(ts),tc=e_(ts,[eB]),td=q(ta,to),tu=e7?eh(e7,ta):null,th=ec&&tu?B({active:ec,collisionRect:tu,droppableRects:eT,droppableContainers:eD,pointerCoordinates:ti}):null,tm=eo(th,"id"),[tp,tf]=(0,w.useState)(null),tx=(s=te?ta:q(ta,tc),o=null!=(l=null==tp?void 0:tp.rect)?l:null,{...s,scaleX:o&&eB?o.width/eB.width:1,scaleY:o&&eB?o.height/eB.height:1}),tg=(0,w.useRef)(null),tv=(0,w.useCallback)((e,t)=>{let{sensor:r,options:n}=t;if(null==em.current)return;let l=er.get(em.current);if(!l)return;let a=e.nativeEvent,i=new r({active:em.current,activeNode:l,event:a,options:n,context:eQ,onAbort(e){if(!er.get(e))return;let{onDragAbort:t}=eE.current,r={id:e};null==t||t(r),Y({type:"onDragAbort",event:r})},onPending(e,t,r,n){if(!er.get(e))return;let{onDragPending:l}=eE.current,a={id:e,constraint:t,initialCoordinates:r,offset:n};null==l||l(a),Y({type:"onDragPending",event:a})},onStart(e){let t=em.current;if(null==t)return;let r=er.get(t);if(!r)return;let{onDragStart:n}=eE.current,l={activatorEvent:a,active:{id:t,data:r.data,rect:es}};(0,k.unstable_batchedUpdates)(()=>{null==n||n(l),J(b.Initializing),_({type:u.DragStart,initialCoordinates:e,active:t}),Y({type:"onDragStart",event:l}),ey(tg.current),eM(a)})},onMove(e){_({type:u.DragMove,coordinates:e})},onEnd:s(u.DragEnd),onCancel:s(u.DragCancel)});function s(e){return async function(){let{active:t,collisions:r,over:n,scrollAdjustedTranslate:l}=eQ.current,i=null;if(t&&l){let{cancelDrop:s}=eE.current;i={activatorEvent:a,active:t,collisions:r,delta:l,over:n},e===u.DragEnd&&"function"==typeof s&&await Promise.resolve(s(i))&&(e=u.DragCancel)}em.current=null,(0,k.unstable_batchedUpdates)(()=>{_({type:e}),J(b.Uninitialized),tf(null),ey(null),eM(null),tg.current=null;let t=e===u.DragEnd?"onDragEnd":"onDragCancel";if(i){let e=eE.current[t];null==e||e(i),Y({type:t,event:i})}})}}tg.current=i},[er]),ty=(0,w.useCallback)((e,t)=>(r,n)=>{let l=r.nativeEvent,a=er.get(n);null!==em.current||!a||l.dndKit||l.defaultPrevented||!0===e(r,t.options,{active:a})&&(l.dndKit={capturedBy:t.sensor},em.current=n,tv(r,t))},[er,tv]),tb=(0,w.useMemo)(()=>I.reduce((e,t)=>{let{sensor:r}=t;return[...e,...r.activators.map(e=>({eventName:e.eventName,handler:ty(e.handler,t)}))]},[]),[I,ty]);(0,w.useEffect)(()=>{if(!S)return;let e=I.map(e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()});return()=>{for(let t of e)null==t||t()}},I.map(e=>{let{sensor:t}=e;return t})),T(()=>{eB&&X===b.Initializing&&J(b.Initialized)},[eB,X]),(0,w.useEffect)(()=>{let{onDragMove:e}=eE.current,{active:t,activatorEvent:r,collisions:n,over:l}=eQ.current;if(!t||!r)return;let a={active:t,activatorEvent:r,collisions:n,delta:{x:td.x,y:td.y},over:l};(0,k.unstable_batchedUpdates)(()=>{null==e||e(a),Y({type:"onDragMove",event:a})})},[td.x,td.y]),(0,w.useEffect)(()=>{let{active:e,activatorEvent:t,collisions:r,droppableContainers:n,scrollAdjustedTranslate:l}=eQ.current;if(!e||null==em.current||!t||!l)return;let{onDragOver:a}=eE.current,i=n.get(tm),s=i&&i.rect.current?{id:i.id,rect:i.rect.current,data:i.data,disabled:i.disabled}:null,o={active:e,activatorEvent:t,collisions:r,delta:{x:l.x,y:l.y},over:s};(0,k.unstable_batchedUpdates)(()=>{tf(s),null==a||a(o),Y({type:"onDragOver",event:o})})},[tm]),T(()=>{eQ.current={activatorEvent:eb,active:ec,activeNode:eP,collisionRect:tu,collisions:th,droppableRects:eT,draggableNodes:er,draggingNode:e9,draggingNodeRect:e7,droppableContainers:ea,over:tp,scrollableAncestors:tn,scrollAdjustedTranslate:td},es.current={initial:e7,translated:tu}},[ec,eP,th,tu,er,e9,e7,eT,ea,tp,tn,td]),function(e){let{acceleration:t,activator:r=x.Pointer,canScroll:n,draggingRect:l,enabled:a,interval:i=5,order:s=g.TreeOrder,pointerCoordinates:o,scrollableAncestors:c,scrollableAncestorRects:d,delta:u,threshold:m}=e,p=function(e){let{delta:t,disabled:r}=e,n=F(t);return O(e=>{if(r||!n||!e)return eV;let l={x:Math.sign(t.x-n.x),y:Math.sign(t.y-n.y)};return{x:{[h.Backward]:e.x[h.Backward]||-1===l.x,[h.Forward]:e.x[h.Forward]||1===l.x},y:{[h.Backward]:e.y[h.Backward]||-1===l.y,[h.Forward]:e.y[h.Forward]||1===l.y}}},[r,t,n])}({delta:u,disabled:!a}),[f,v]=L(),y=(0,w.useRef)({x:0,y:0}),b=(0,w.useRef)({x:0,y:0}),k=(0,w.useMemo)(()=>{switch(r){case x.Pointer:return o?{top:o.y,bottom:o.y,left:o.x,right:o.x}:null;case x.DraggableRect:return l}},[r,l,o]),j=(0,w.useRef)(null),S=(0,w.useCallback)(()=>{let e=j.current;if(!e)return;let t=y.current.x*b.current.x,r=y.current.y*b.current.y;e.scrollBy(t,r)},[]),C=(0,w.useMemo)(()=>s===g.TreeOrder?[...c].reverse():c,[s,c]);(0,w.useEffect)(()=>{if(!a||!c.length||!k)return void v();for(let e of C){if((null==n?void 0:n(e))===!1)continue;let r=d[c.indexOf(e)];if(!r)continue;let{direction:l,speed:a}=function(e,t,r,n,l){let{top:a,left:i,right:s,bottom:o}=r;void 0===n&&(n=10),void 0===l&&(l=eS);let{isTop:c,isBottom:d,isLeft:u,isRight:m}=ej(e),p={x:0,y:0},f={x:0,y:0},x={height:t.height*l.y,width:t.width*l.x};return!c&&a<=t.top+x.height?(p.y=h.Backward,f.y=n*Math.abs((t.top+x.height-a)/x.height)):!d&&o>=t.bottom-x.height&&(p.y=h.Forward,f.y=n*Math.abs((t.bottom-x.height-o)/x.height)),!m&&s>=t.right-x.width?(p.x=h.Forward,f.x=n*Math.abs((t.right-x.width-s)/x.width)):!u&&i<=t.left+x.width&&(p.x=h.Backward,f.x=n*Math.abs((t.left+x.width-i)/x.width)),{direction:p,speed:f}}(e,r,k,t,m);for(let e of["x","y"])p[e][l[e]]||(a[e]=0,l[e]=0);if(a.x>0||a.y>0){v(),j.current=e,f(S,i),y.current=a,b.current=l;return}}y.current={x:0,y:0},b.current={x:0,y:0},v()},[t,S,n,v,a,i,JSON.stringify(k),JSON.stringify(p),f,c,C,d,JSON.stringify(m)])}({...ez,delta:el,draggingRect:tu,pointerCoordinates:ti,scrollableAncestors:tn,scrollableAncestorRects:tl});let tw=(0,w.useMemo)(()=>({active:ec,activeNode:eP,activeNodeRect:eB,activatorEvent:eb,collisions:th,containerNodeRect:eK,dragOverlay:e1,draggableNodes:er,droppableContainers:ea,droppableRects:eT,over:tp,measureDroppableContainers:eI,scrollableAncestors:tn,scrollableAncestorRects:tl,measuringConfiguration:eA,measuringScheduled:eL,windowRect:tr}),[ec,eP,eB,eb,th,eK,e1,er,ea,eT,tp,eI,tn,tl,eA,eL,tr]),tk=(0,w.useMemo)(()=>({activatorEvent:eb,activators:tb,active:ec,activeNodeRect:eB,ariaDescribedById:{draggable:eR},dispatch:_,draggableNodes:er,over:tp,measureDroppableContainers:eI}),[eb,tb,ec,eB,_,eR,er,tp,eI]);return w.default.createElement(Z.Provider,{value:$},w.default.createElement(e2.Provider,{value:tk},w.default.createElement(e3.Provider,{value:tw},w.default.createElement(e8.Provider,{value:tx},A)),w.default.createElement(e6,{disabled:(null==E?void 0:E.restoreFocus)===!1})),w.default.createElement(et,{...E,hiddenTextDescribedById:eR}))}),e7=(0,w.createContext)(null),te="button";function tt(e){let{id:t,data:r,disabled:n=!1,attributes:l}=e,a=V("Draggable"),{activators:i,activatorEvent:s,active:o,activeNodeRect:c,ariaDescribedById:d,draggableNodes:u,over:h}=(0,w.useContext)(e2),{role:m=te,roleDescription:p="draggable",tabIndex:f=0}=null!=l?l:{},x=(null==o?void 0:o.id)===t,g=(0,w.useContext)(x?e8:e7),[v,y]=z(),[b,k]=z(),j=(0,w.useMemo)(()=>i.reduce((e,r)=>{let{eventName:n,handler:l}=r;return e[n]=e=>{l(e,t)},e},{}),[i,t]),S=P(r);return T(()=>(u.set(t,{id:t,key:a,node:v,activatorNode:b,data:S}),()=>{let e=u.get(t);e&&e.key===a&&u.delete(t)}),[u,t]),{active:o,activatorEvent:s,activeNodeRect:c,attributes:(0,w.useMemo)(()=>({role:m,tabIndex:f,"aria-disabled":n,"aria-pressed":!!x&&m===te||void 0,"aria-roledescription":p,"aria-describedby":d.draggable}),[n,m,f,x,p,d.draggable]),isDragging:x,listeners:n?void 0:j,node:v,over:h,setNodeRef:y,setActivatorNodeRef:k,transform:g}}function tr(){return(0,w.useContext)(e3)}let tn={timeout:25};function tl(e){let{data:t,disabled:r=!1,id:n,resizeObserverConfig:l}=e,a=V("Droppable"),{active:i,dispatch:s,over:o,measureDroppableContainers:c}=(0,w.useContext)(e2),d=(0,w.useRef)({disabled:r}),h=(0,w.useRef)(!1),m=(0,w.useRef)(null),p=(0,w.useRef)(null),{disabled:f,updateMeasurementsFor:x,timeout:g}={...tn,...l},v=P(null!=x?x:n),y=eU({callback:(0,w.useCallback)(()=>{if(!h.current){h.current=!0;return}null!=p.current&&clearTimeout(p.current),p.current=setTimeout(()=>{c(Array.isArray(v.current)?v.current:[v.current]),p.current=null},g)},[g]),disabled:f||!i}),[b,k]=z((0,w.useCallback)((e,t)=>{y&&(t&&(y.unobserve(t),h.current=!1),e&&y.observe(e))},[y])),j=P(t);return(0,w.useEffect)(()=>{y&&b.current&&(y.disconnect(),h.current=!1,y.observe(b.current))},[b,y]),(0,w.useEffect)(()=>(s({type:u.RegisterDroppable,element:{id:n,key:a,disabled:r,node:b,rect:m,data:j}}),()=>s({type:u.UnregisterDroppable,key:a,id:n})),[n]),(0,w.useEffect)(()=>{r!==d.current.disabled&&(s({type:u.SetDroppableDisabled,id:n,key:a,disabled:r}),d.current.disabled=r)},[n,a,r,s]),{active:i,rect:m,isOver:(null==o?void 0:o.id)===n,node:b,over:o,setNodeRef:k}}let ta={position:"fixed",touchAction:"none"},ti=e=>K(e)?"transform 250ms ease":void 0;function ts(e,t,r){let n=e.slice();return n.splice(r<0?n.length+r:r,0,n.splice(t,1)[0]),n}function to(e){return null!==e&&e>=0}t={styles:{active:{opacity:"0"}}},e.s(["DndContext",0,e9,"KeyboardCode",0,p,"PointerSensor",0,eB,"closestCenter",0,e=>{let{collisionRect:t,droppableRects:r,droppableContainers:n}=e,l=ec(t,t.left,t.top),a=[];for(let e of n){let{id:t}=e,n=r.get(t);if(n){let r=el(ec(n),l);a.push({id:t,data:{droppableContainer:e,value:r}})}}return a.sort(ea)},"closestCorners",0,e=>{let{collisionRect:t,droppableRects:r,droppableContainers:n}=e,l=es(t),a=[];for(let e of n){let{id:t}=e,n=r.get(t);if(n){let r=es(n),i=Number((l.reduce((e,t,n)=>e+el(r[n],t),0)/4).toFixed(4));a.push({id:t,data:{droppableContainer:e,value:i}})}}return a.sort(ea)},"getClientRect",0,ep,"getFirstCollision",0,eo,"getScrollableAncestors",0,ex,"useDndContext",0,tr,"useDraggable",0,tt,"useDroppable",0,tl,"useSensor",0,function(e,t){return(0,w.useMemo)(()=>({sensor:e,options:null!=t?t:{}}),[e,t])},"useSensors",0,function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,w.useMemo)(()=>[...t].filter(e=>null!=e),[...t])}],59295);let tc=e=>{let{rects:t,activeIndex:r,overIndex:n,index:l}=e,a=ts(t,n,r),i=t[l],s=a[l];return s&&i?{x:s.left-i.left,y:s.top-i.top,scaleX:s.width/i.width,scaleY:s.height/i.height}:null},td={scaleX:1,scaleY:1},tu="Sortable",th=w.default.createContext({activeIndex:-1,containerId:tu,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:tc,disabled:{draggable:!1,droppable:!1}}),tm=e=>{let{id:t,items:r,activeIndex:n,overIndex:l}=e;return ts(r,n,l).indexOf(t)},tp=e=>{let{containerId:t,isSorting:r,wasDragging:n,index:l,items:a,newIndex:i,previousItems:s,previousContainerId:o,transition:c}=e;return!!c&&!!n&&(s===a||l!==i)&&(!!r||i!==l&&t===o)},tf={duration:200,easing:"ease"},tx="transform",tg=W.Transition.toString({property:tx,duration:0,easing:"linear"}),tv={roleDescription:"sortable"};p.Down,p.Right,p.Up,p.Left,e.s(["SortableContext",0,function(e){let{children:t,id:r,items:n,strategy:l=tc,disabled:a=!1}=e,{active:i,dragOverlay:s,droppableRects:o,over:c,measureDroppableContainers:d}=tr(),u=V(tu,r),h=null!==s.rect,m=(0,w.useMemo)(()=>n.map(e=>"object"==typeof e&&"id"in e?e.id:e),[n]),p=null!=i,f=i?m.indexOf(i.id):-1,x=c?m.indexOf(c.id):-1,g=(0,w.useRef)(m),v=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}(m,g.current),y=-1!==x&&-1===f||v,b="boolean"==typeof a?{draggable:a,droppable:a}:a;T(()=>{v&&p&&d(m)},[v,m,p,d]),(0,w.useEffect)(()=>{g.current=m},[m]);let k=(0,w.useMemo)(()=>({activeIndex:f,containerId:u,disabled:b,disableTransforms:y,items:m,overIndex:x,useDragOverlay:h,sortedRects:m.reduce((e,t,r)=>{let n=o.get(t);return n&&(e[r]=n),e},Array(m.length)),strategy:l}),[f,u,b.draggable,b.droppable,y,m,x,o,h,l]);return w.default.createElement(th.Provider,{value:k},t)},"arrayMove",0,ts,"useSortable",0,function(e){var t,r,n,l;let{animateLayoutChanges:a=tp,attributes:i,disabled:s,data:o,getNewIndex:c=tm,id:d,strategy:u,resizeObserverConfig:h,transition:m=tf}=e,{items:p,containerId:f,activeIndex:x,disabled:g,disableTransforms:v,sortedRects:y,overIndex:b,useDragOverlay:k,strategy:S}=(0,w.useContext)(th),C=(t=s,r=g,"boolean"==typeof t?{draggable:t,droppable:!1}:{draggable:null!=(n=null==t?void 0:t.draggable)?n:r.draggable,droppable:null!=(l=null==t?void 0:t.droppable)?l:r.droppable}),M=p.indexOf(d),N=(0,w.useMemo)(()=>({sortable:{containerId:f,index:M,items:p},...o}),[f,o,M,p]),E=(0,w.useMemo)(()=>p.slice(p.indexOf(d)),[p,d]),{rect:R,node:D,isOver:A,setNodeRef:I}=tl({id:d,data:N,disabled:C.droppable,resizeObserverConfig:{updateMeasurementsFor:E,...h}}),{active:L,activatorEvent:P,activeNodeRect:O,attributes:z,setNodeRef:F,listeners:B,isDragging:V,over:H,setActivatorNodeRef:q,transform:U}=tt({id:d,data:N,attributes:{...tv,...i},disabled:C.draggable}),G=j(I,F),_=!!L,Y=_&&!v&&to(x)&&to(b),$=!k&&V,X=$&&Y?U:null,J=Y?null!=X?X:(null!=u?u:S)({rects:y,activeNodeRect:O,activeIndex:x,overIndex:b,index:M}):null,Z=to(x)&&to(b)?c({id:d,items:p,activeIndex:x,overIndex:b}):M,Q=null==L?void 0:L.id,ee=(0,w.useRef)({activeId:Q,items:p,newIndex:Z,containerId:f}),et=p!==ee.current.items,er=a({active:L,containerId:f,isDragging:V,isSorting:_,id:d,index:M,items:p,newIndex:ee.current.newIndex,previousItems:ee.current.items,previousContainerId:ee.current.containerId,transition:m,wasDragging:null!=ee.current.activeId}),en=function(e){let{disabled:t,index:r,node:n,rect:l}=e,[a,i]=(0,w.useState)(null),s=(0,w.useRef)(r);return T(()=>{if(!t&&r!==s.current&&n.current){let e=l.current;if(e){let t=ep(n.current,{ignoreTransform:!0}),r={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(r.x||r.y)&&i(r)}}r!==s.current&&(s.current=r)},[t,r,n,l]),(0,w.useEffect)(()=>{a&&i(null)},[a]),a}({disabled:!er,index:M,node:D,rect:R});return(0,w.useEffect)(()=>{_&&ee.current.newIndex!==Z&&(ee.current.newIndex=Z),f!==ee.current.containerId&&(ee.current.containerId=f),p!==ee.current.items&&(ee.current.items=p)},[_,Z,f,p]),(0,w.useEffect)(()=>{if(Q===ee.current.activeId)return;if(null!=Q&&null==ee.current.activeId){ee.current.activeId=Q;return}let e=setTimeout(()=>{ee.current.activeId=Q},50);return()=>clearTimeout(e)},[Q]),{active:L,activeIndex:x,attributes:z,data:N,rect:R,index:M,newIndex:Z,items:p,isOver:A,isSorting:_,isDragging:V,listeners:B,node:D,overIndex:b,over:H,setNodeRef:G,setActivatorNodeRef:q,setDroppableNodeRef:I,setDraggableNodeRef:F,transform:null!=en?en:J,transition:en||et&&ee.current.newIndex===M?tg:(!$||K(P))&&m&&(_||er)?W.Transition.toString({...m,property:tx}):void 0}},"verticalListSortingStrategy",0,e=>{var t,r,n,l;let a,i,s,{activeIndex:o,activeNodeRect:c,index:d,rects:u,overIndex:h}=e,m=null!=(t=u[o])?t:c;if(!m)return null;if(d===o){let e=u[h];return e?{x:0,y:o<h?e.top+e.height-(m.top+m.height):e.top-m.top,...td}:null}let p=(r=u,n=d,l=o,a=r[n],i=r[n-1],s=r[n+1],a?l<n?i?a.top-(i.top+i.height):s?s.top-(a.top+a.height):0:s?s.top-(a.top+a.height):i?a.top-(i.top+i.height):0:0);return d>o&&d<=h?{x:0,y:-m.height-p,...td}:d<o&&d>=h?{x:0,y:m.height+p,...td}:{x:0,y:0,...td}}],706277);let ty=(0,e.i(369547).default)("grip-vertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]);e.s(["GripVertical",0,ty],269356)},468528,e=>{"use strict";var t=e.i(391398),r=e.i(191788),n=e.i(352819),l=e.i(745725),a=e.i(59295),i=e.i(706277),s=e.i(146341),o=e.i(269356),c=e.i(436254),d=e.i(972733),u=e.i(871138),h=e.i(909289),m=e.i(939310),p=e.i(45124),f=e.i(130027),x=e.i(443915),g=e.i(212283),v=e.i(639530);let y=({transform:e})=>({...e,x:0}),b=({prompt:e,onToggle:r})=>{let{attributes:n,listeners:l,setNodeRef:a,setActivatorNodeRef:c,transform:d,transition:u,isDragging:h}=(0,i.useSortable)({id:e.id}),m={transform:s.CSS.Translate.toString(d),transition:u,zIndex:h?1:void 0,position:h?"relative":void 0};return(0,t.jsxs)("div",{ref:a,className:"flex items-center gap-1 bg-background py-2.5 pl-1 pr-3",style:m,children:[(0,t.jsx)("div",{ref:c,...n,...l,className:"flex shrink-0 cursor-grab items-center text-muted-foreground/50 active:cursor-grabbing",children:(0,t.jsx)(o.GripVertical,{className:"h-4 w-4"})}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e.name}),(0,t.jsx)("p",{className:"truncate font-mono text-xs text-muted-foreground",children:e.prompt})]}),(0,t.jsx)("div",{className:"flex shrink-0 items-center",children:(0,t.jsx)(f.Switch,{checked:e.enabled,onCheckedChange:t=>r(e.id,t)})})]})},w=({prompt:e,onEdit:r,onDelete:n,onToggle:l})=>{let{attributes:a,listeners:d,setNodeRef:u,setActivatorNodeRef:p,transform:x,transition:g,isDragging:v}=(0,i.useSortable)({id:e.id}),y={transform:s.CSS.Translate.toString(x),transition:g,zIndex:v?1:void 0,position:v?"relative":void 0};return(0,t.jsxs)("div",{ref:u,className:"flex items-center gap-1 bg-background py-2.5 pl-1 pr-3",style:y,children:[(0,t.jsx)("div",{ref:p,...a,...d,className:"flex shrink-0 cursor-grab items-center text-muted-foreground/50 active:cursor-grabbing",children:(0,t.jsx)(o.GripVertical,{className:"h-4 w-4"})}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e.name}),(0,t.jsx)("p",{className:"truncate font-mono text-xs text-muted-foreground",children:e.prompt})]}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-1",children:[(0,t.jsx)(m.Button,{variant:"ghost",size:"sm",className:"h-7 w-7 p-0",onClick:()=>r(e),children:(0,t.jsx)(c.Pencil,{className:"h-3.5 w-3.5"})}),(0,t.jsx)(m.Button,{variant:"ghost",size:"sm",className:"h-7 w-7 p-0 text-ui-red hover:text-ui-red/80",onClick:()=>n(e.id),children:(0,t.jsx)(h.Trash2,{className:"h-3.5 w-3.5"})}),(0,t.jsx)(f.Switch,{checked:e.enabled,onCheckedChange:t=>l(e.id,t)})]})]})};e.s(["default",0,()=>{let e=(0,n.useTranslations)("settings.quickPrompts"),{allOrderedPrompts:s,customPrompts:o,toggleBuiltin:c,saveCustom:h,saveOrder:f,deletePrompt:k,resetAll:j}=(0,v.default)(),[S,C]=(0,r.useState)(null),[M,N]=(0,r.useState)(!1),[E,R]=(0,r.useState)(null),D=(0,a.useSensors)((0,a.useSensor)(a.PointerSensor,{activationConstraint:{distance:5}})),A=(0,r.useCallback)((e,t)=>{e.startsWith("builtin-")?c(e,t):h(o.map(r=>r.id===e?{...r,enabled:t}:r))},[o,c,h]),T=(0,r.useCallback)(e=>{R(e)},[]),I=(0,r.useCallback)(()=>{E&&(k(E),R(null))},[E,k]),L=(0,r.useCallback)(e=>{C({mode:"edit",id:e.id,name:e.name,prompt:e.prompt})},[]),P=(0,r.useCallback)(()=>{C({mode:"add",name:"",prompt:""})},[]),O=(0,r.useCallback)(()=>{S&&S.name.trim()&&S.prompt.trim()&&("edit"===S.mode&&S.id?h(o.map(e=>e.id===S.id?{...e,name:S.name.trim(),prompt:S.prompt}:e)):h([...o,{id:`custom-${(0,l.nanoid)(8)}`,name:S.name.trim(),prompt:S.prompt,enabled:!0}]),C(null))},[S,o,h]),z=(0,r.useCallback)(()=>{j(),N(!1)},[j]),F=(0,r.useCallback)(e=>{let{active:t,over:r}=e;if(!r||t.id===r.id)return;let n=s.findIndex(e=>e.id===t.id),l=s.findIndex(e=>e.id===r.id);-1===n||-1===l||f((0,i.arrayMove)(s,n,l).map(e=>e.id))},[s,f]),B=!!S&&S.name.trim().length>0&&S.prompt.trim().length>0;return(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e("title")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("description")})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("p",{className:"text-xs font-medium text-muted-foreground",children:e("itemsSection")}),s.length>0&&(0,t.jsx)(a.DndContext,{sensors:D,collisionDetection:a.closestCenter,modifiers:[y],onDragEnd:F,children:(0,t.jsx)(i.SortableContext,{items:s.map(e=>e.id),strategy:i.verticalListSortingStrategy,children:(0,t.jsx)("div",{className:"overflow-hidden rounded-lg border",children:s.map(e=>e.id.startsWith("builtin-")?(0,t.jsx)(b,{prompt:e,onToggle:A},e.id):(0,t.jsx)(w,{prompt:e,onEdit:L,onDelete:T,onToggle:A},e.id))})})}),S&&(0,t.jsxs)("div",{className:"space-y-3 rounded-lg border p-3",children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e("add"===S.mode?"addPrompt":"editPrompt")}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("label",{className:"text-xs text-muted-foreground",children:e("nameLabel")}),(0,t.jsx)(p.Input,{value:S.name,onChange:e=>C({...S,name:e.target.value}),placeholder:e("namePlaceholder"),autoFocus:!0})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("label",{className:"text-xs text-muted-foreground",children:e("promptLabel")}),(0,t.jsx)(x.Textarea,{value:S.prompt,onChange:e=>C({...S,prompt:e.target.value}),placeholder:e("promptPlaceholder"),rows:3})]}),(0,t.jsxs)("div",{className:"flex justify-end gap-2",children:[(0,t.jsx)(m.Button,{variant:"outline",size:"sm",onClick:()=>C(null),children:e("cancel")}),(0,t.jsx)(m.Button,{size:"sm",onClick:O,disabled:!B,children:e("save")})]})]}),!S&&(0,t.jsxs)(m.Button,{variant:"outline",size:"sm",onClick:P,children:[(0,t.jsx)(d.Plus,{className:"mr-1 h-3.5 w-3.5"}),e("addButton")]})]}),(0,t.jsxs)(m.Button,{variant:"ghost",size:"sm",className:"text-muted-foreground",onClick:()=>N(!0),children:[(0,t.jsx)(u.RotateCcw,{className:"mr-1 h-3.5 w-3.5"}),e("resetToDefault")]}),(0,t.jsx)(g.AlertDialog,{open:!!E,onOpenChange:e=>!e&&R(null),children:(0,t.jsxs)(g.AlertDialogContent,{children:[(0,t.jsxs)(g.AlertDialogHeader,{children:[(0,t.jsx)(g.AlertDialogTitle,{children:e("deleteTitle")}),(0,t.jsx)(g.AlertDialogDescription,{children:e("deleteDescription")})]}),(0,t.jsxs)(g.AlertDialogFooter,{children:[(0,t.jsx)(g.AlertDialogCancel,{children:e("deleteCancel")}),(0,t.jsx)(g.AlertDialogAction,{onClick:I,children:e("deleteConfirm")})]})]})}),(0,t.jsx)(g.AlertDialog,{open:M,onOpenChange:N,children:(0,t.jsxs)(g.AlertDialogContent,{children:[(0,t.jsxs)(g.AlertDialogHeader,{children:[(0,t.jsx)(g.AlertDialogTitle,{children:e("resetTitle")}),(0,t.jsx)(g.AlertDialogDescription,{children:e("resetDescription")})]}),(0,t.jsxs)(g.AlertDialogFooter,{children:[(0,t.jsx)(g.AlertDialogCancel,{children:e("resetCancel")}),(0,t.jsx)(g.AlertDialogAction,{onClick:z,children:e("resetConfirm")})]})]})})]})}])},934048,e=>{"use strict";e.i(350461);var t=e.i(391398),r=e.i(191788),n=e.i(352819),l=e.i(679935),a=e.i(603331),i=e.i(524845),s=e.i(29803),o=e.i(447903),c=e.i(918324),d=e.i(721614),u=e.i(211308),h=e.i(660255),m=e.i(240614),p=e.i(978517),f=e.i(661371),x=e.i(438970),g=e.i(835707),v=e.i(482192),y=e.i(283303),b=e.i(17585),w=e.i(117690),k=e.i(871138),j=e.i(181474),S=e.i(639131),C=e.i(875284),M=e.i(909289),N=e.i(722896),E=e.i(868462),R=e.i(602889),D=e.i(124726),A=e.i(939310),T=e.i(208501),I=e.i(45124),L=e.i(130027),P=e.i(621504),O=e.i(91762),z=e.i(636989),F=e.i(550292),B=e.i(296202),V=e.i(212283),H=e.i(690176),q=e.i(353533),U=e.i(117369),K=e.i(31050),G=e.i(170004),W=e.i(490034),_=e.i(998234),Y=e.i(700599),$=e.i(468528),X=e.i(745725),J=e.i(59295),Z=e.i(706277),Q=e.i(146341),ee=e.i(269356),et=e.i(436254),er=e.i(972733),en=e.i(734549),el=e.i(348370),ea=e.i(274489);let ei=["Globe","Link","ExternalLink","Bookmark","Star","Home","FileText","BarChart3","PieChart","LineChart","Activity","Zap","Terminal","Code","Database","Server","Cloud","Shield","Lock","Key","User","Users","Mail","MessageSquare","Bell","Calendar","Clock","Search","Eye","Camera","Image","Film","Music","Headphones","Mic","Folder","File","Archive","Download","Upload","GitBranch","GitCommit","GitPullRequest","GitFork","Bug","Wrench","Settings","Sliders","Palette","Brush","Map","MapPin","Navigation","Compass","Wifi","Monitor","Smartphone","Tablet","Laptop","Cpu","HardDrive","MemoryStick","CircuitBoard","Radio","Bluetooth","Heart","ThumbsUp","Smile","Coffee","Rocket","Flame","Sun","Moon","Sparkles","Award","Trophy","Target","Flag","Crosshair","Layers","Layout","Grid","List","Table","Kanban","Bot","Brain","Lightbulb","GraduationCap","BookOpen"],es=({value:e,onChange:l,readonly:a,size:i=16})=>{let s=(0,n.useTranslations)("settings.sidebarItems"),[o,c]=(0,r.useState)(!1),[d,u]=(0,r.useState)(""),h=(0,r.useMemo)(()=>{if(!d.trim())return ei;let e=d.toLowerCase();return ei.filter(t=>t.toLowerCase().includes(e))},[d]);return a?(0,t.jsx)(ea.default,{name:e,className:"shrink-0 text-muted-foreground",style:{width:i,height:i}}):(0,t.jsxs)(el.Popover,{open:o,onOpenChange:c,children:[(0,t.jsxs)(el.PopoverTrigger,{className:"inline-flex h-9 items-center justify-center gap-2 rounded-md border border-input bg-background px-3 text-sm font-medium shadow-xs transition-colors hover:bg-accent hover:text-accent-foreground",children:[(0,t.jsx)(ea.default,{name:e,className:"h-4 w-4"}),(0,t.jsx)("span",{className:"text-xs text-muted-foreground",children:e})]}),(0,t.jsxs)(el.PopoverContent,{className:"w-72 p-2",align:"start",children:[(0,t.jsx)(I.Input,{placeholder:s("iconSearch"),value:d,onChange:e=>u(e.target.value),className:"mb-2 h-8 text-xs",autoFocus:!0}),(0,t.jsx)("div",{className:"grid max-h-48 grid-cols-8 gap-0.5 overflow-y-auto p-1",children:h.map(r=>(0,ea.getIcon)(r)?(0,t.jsx)("button",{type:"button",className:(0,q.cn)("flex h-8 w-8 items-center justify-center rounded transition-colors hover:bg-accent",e===r&&"bg-accent ring-1 ring-primary"),onClick:()=>{l?.(r),c(!1),u("")},title:r,children:(0,t.jsx)(ea.default,{name:r,className:"h-4 w-4"})},r):null)}),0===h.length&&(0,t.jsx)("p",{className:"py-4 text-center text-xs text-muted-foreground",children:s("iconNotFound")})]})]})},eo=({transform:e})=>({...e,x:0}),ec=({item:e,onEdit:r,onDelete:n,onToggle:l})=>{let{attributes:a,listeners:i,setNodeRef:s,setActivatorNodeRef:o,transform:c,transition:d,isDragging:u}=(0,Z.useSortable)({id:e.id}),h={transform:Q.CSS.Translate.toString(c),transition:d,zIndex:u?1:void 0,position:u?"relative":void 0};return(0,t.jsxs)("div",{ref:s,className:"flex items-center gap-1 bg-background py-2.5 pl-1 pr-3",style:h,children:[(0,t.jsx)("div",{ref:o,...a,...i,className:"flex shrink-0 cursor-grab items-center text-muted-foreground/50 active:cursor-grabbing",children:(0,t.jsx)(ee.GripVertical,{className:"h-4 w-4"})}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsx)(es,{value:e.icon,readonly:!0,size:14}),(0,t.jsx)("p",{className:"text-sm font-medium",children:e.name})]}),(0,t.jsx)("p",{className:"truncate font-mono text-xs text-muted-foreground",children:e.url})]}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-1",children:[(0,t.jsx)(A.Button,{variant:"ghost",size:"sm",className:"h-7 w-7 p-0",onClick:()=>r(e),children:(0,t.jsx)(et.Pencil,{className:"h-3.5 w-3.5"})}),(0,t.jsx)(A.Button,{variant:"ghost",size:"sm",className:"h-7 w-7 p-0 text-ui-red hover:text-ui-red/80",onClick:()=>n(e.id),children:(0,t.jsx)(M.Trash2,{className:"h-3.5 w-3.5"})}),(0,t.jsx)(L.Switch,{checked:e.enabled,onCheckedChange:t=>l(e.id,t)})]})]})},ed=({item:e,onToggle:r})=>{let{attributes:n,listeners:l,setNodeRef:a,setActivatorNodeRef:i,transform:s,transition:o,isDragging:c}=(0,Z.useSortable)({id:e.id}),d={transform:Q.CSS.Translate.toString(s),transition:o,zIndex:c?1:void 0,position:c?"relative":void 0};return(0,t.jsxs)("div",{ref:a,className:"flex items-center gap-1 bg-background py-2.5 pl-1 pr-3",style:d,children:[(0,t.jsx)("div",{ref:i,...n,...l,className:"flex shrink-0 cursor-grab items-center text-muted-foreground/50 active:cursor-grabbing",children:(0,t.jsx)(ee.GripVertical,{className:"h-4 w-4"})}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsx)(es,{value:e.icon,readonly:!0,size:14}),(0,t.jsx)("p",{className:"text-sm font-medium",children:e.name})]}),(0,t.jsx)("p",{className:"truncate font-mono text-xs text-muted-foreground",children:e.url})]}),(0,t.jsx)("div",{className:"flex shrink-0 items-center",children:(0,t.jsx)(L.Switch,{checked:e.enabled,onCheckedChange:t=>r(e.id,t)})})]})},eu=()=>{let e=(0,n.useTranslations)("settings.sidebarItems"),{allOrderedItems:l,customItems:a,toggleBuiltin:i,saveCustom:s,saveOrder:o,deleteItem:c,resetAll:d}=(0,en.default)(),[u,h]=(0,r.useState)(null),[m,p]=(0,r.useState)(!1),[f,x]=(0,r.useState)(null),g=(0,J.useSensors)((0,J.useSensor)(J.PointerSensor,{activationConstraint:{distance:5}})),v=(0,r.useCallback)((e,t)=>{e.startsWith("builtin-")?i(e,t):s(a.map(r=>r.id===e?{...r,enabled:t}:r))},[a,i,s]),y=(0,r.useCallback)(e=>{x(e)},[]),b=(0,r.useCallback)(()=>{f&&(c(f),x(null))},[f,c]),w=(0,r.useCallback)(e=>{h({mode:"edit",id:e.id,name:e.name,icon:e.icon,url:e.url})},[]),j=(0,r.useCallback)(()=>{h({mode:"add",name:"",icon:"Globe",url:""})},[]),S=(0,r.useCallback)(()=>{u&&u.name.trim()&&u.url.trim()&&("edit"===u.mode&&u.id?s(a.map(e=>e.id===u.id?{...e,name:u.name.trim(),icon:u.icon,url:u.url.trim()}:e)):s([...a,{id:`custom-${(0,X.nanoid)(8)}`,name:u.name.trim(),icon:u.icon,url:u.url.trim(),enabled:!0}]),h(null))},[u,a,s]),C=(0,r.useCallback)(()=>{d(),p(!1)},[d]),M=(0,r.useCallback)(e=>{let{active:t,over:r}=e;if(!r||t.id===r.id)return;let n=l.findIndex(e=>e.id===t.id),a=l.findIndex(e=>e.id===r.id);-1===n||-1===a||o((0,Z.arrayMove)(l,n,a).map(e=>e.id))},[l,o]),N=!!u&&u.name.trim().length>0&&u.url.trim().length>0;return(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e("title")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("description")})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("p",{className:"text-xs font-medium text-muted-foreground",children:e("itemsSection")}),l.length>0&&(0,t.jsx)(J.DndContext,{sensors:g,collisionDetection:J.closestCenter,modifiers:[eo],onDragEnd:M,children:(0,t.jsx)(Z.SortableContext,{items:l.map(e=>e.id),strategy:Z.verticalListSortingStrategy,children:(0,t.jsx)("div",{className:"overflow-hidden rounded-lg border",children:l.map(e=>e.id.startsWith("builtin-")?(0,t.jsx)(ed,{item:e,onToggle:v},e.id):(0,t.jsx)(ec,{item:e,onEdit:w,onDelete:y,onToggle:v},e.id))})})}),u&&(0,t.jsxs)("div",{className:"space-y-3 rounded-lg border p-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(es,{value:u.icon,onChange:e=>h({...u,icon:e})}),(0,t.jsx)(I.Input,{value:u.name,onChange:e=>h({...u,name:e.target.value}),placeholder:e("namePlaceholder"),autoFocus:!0})]}),(0,t.jsx)(I.Input,{value:u.url,onChange:e=>h({...u,url:e.target.value}),placeholder:e("urlPlaceholder")}),(0,t.jsxs)("div",{className:"flex justify-end gap-2",children:[(0,t.jsx)(A.Button,{variant:"outline",size:"sm",onClick:()=>h(null),children:e("cancel")}),(0,t.jsx)(A.Button,{size:"sm",onClick:S,disabled:!N,children:e("save")})]})]}),!u&&(0,t.jsxs)(A.Button,{variant:"outline",size:"sm",onClick:j,children:[(0,t.jsx)(er.Plus,{className:"mr-1 h-3.5 w-3.5"}),e("addButton")]})]}),(0,t.jsxs)(A.Button,{variant:"ghost",size:"sm",className:"text-muted-foreground",onClick:()=>p(!0),children:[(0,t.jsx)(k.RotateCcw,{className:"mr-1 h-3.5 w-3.5"}),e("resetToDefault")]}),(0,t.jsx)(V.AlertDialog,{open:!!f,onOpenChange:e=>!e&&x(null),children:(0,t.jsxs)(V.AlertDialogContent,{children:[(0,t.jsxs)(V.AlertDialogHeader,{children:[(0,t.jsx)(V.AlertDialogTitle,{children:e("deleteTitle")}),(0,t.jsx)(V.AlertDialogDescription,{children:e("deleteDescription")})]}),(0,t.jsxs)(V.AlertDialogFooter,{children:[(0,t.jsx)(V.AlertDialogCancel,{children:e("deleteCancel")}),(0,t.jsx)(V.AlertDialogAction,{onClick:b,children:e("deleteConfirm")})]})]})}),(0,t.jsx)(V.AlertDialog,{open:m,onOpenChange:p,children:(0,t.jsxs)(V.AlertDialogContent,{children:[(0,t.jsxs)(V.AlertDialogHeader,{children:[(0,t.jsx)(V.AlertDialogTitle,{children:e("resetTitle")}),(0,t.jsx)(V.AlertDialogDescription,{children:e("resetDescription")})]}),(0,t.jsxs)(V.AlertDialogFooter,{children:[(0,t.jsx)(V.AlertDialogCancel,{children:e("resetCancel")}),(0,t.jsx)(V.AlertDialogAction,{onClick:C,children:e("resetConfirm")})]})]})})]})};var eh=e.i(770084),em=e.i(876208),ep=e.i(127630),ef=e.i(600300),ex=e.i(398957),eg=e.i(432237),ev=e.i(199648),ey=e.i(13628);let eb=({text:e})=>{let[n,l]=(0,r.useState)(!1),a=async()=>{await (0,ey.copyToClipboard)(e)&&(l(!0),setTimeout(()=>l(!1),1500))};return(0,t.jsx)(A.Button,{variant:"ghost",size:"icon",className:"h-6 w-6 shrink-0",onClick:a,children:n?(0,t.jsx)(eh.Check,{className:"h-3 w-3 text-positive"}):(0,t.jsx)(em.Copy,{className:"h-3 w-3"})})},ew=()=>{let e=(0,n.useTranslations)("settings.tailscale");return(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"flex items-start gap-3 rounded-md border border-ui-amber/30 bg-ui-amber/5 p-4",children:[(0,t.jsx)(eg.AlertTriangle,{className:"mt-0.5 h-5 w-5 shrink-0 text-ui-amber"}),(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e("notInstalled")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("notInstalledDescription")})]})]}),(0,t.jsxs)("div",{className:"rounded-md bg-muted p-3 font-mono text-xs leading-relaxed",children:[(0,t.jsx)("p",{className:"text-muted-foreground/60",children:e("commentMac")}),(0,t.jsx)("p",{children:"brew install tailscale"}),(0,t.jsx)("p",{className:"mt-2 text-muted-foreground/60",children:e("commentMacAppStore")}),(0,t.jsx)("p",{className:"mt-2 text-muted-foreground/60",children:e("commentLinux")}),(0,t.jsx)("p",{children:"curl -fsSL https://tailscale.com/install.sh | sh"}),(0,t.jsx)("p",{className:"mt-2 text-muted-foreground/60",children:e("commentAfterInstall")}),(0,t.jsx)("p",{children:"tailscale up"})]}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e.rich("installGuide",{link:e=>(0,t.jsxs)("a",{href:"https://tailscale.com/download",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 underline hover:text-foreground",children:[e,(0,t.jsx)(ep.ExternalLink,{className:"h-3 w-3"})]})})})]})},ek=()=>{let e=(0,n.useTranslations)("settings.tailscale"),[a,i]=(0,r.useState)(null),[o,c]=(0,r.useState)(!0),[d,u]=(0,r.useState)(null),h=(0,r.useCallback)(async()=>{try{let e=await fetch("/api/tailscale/status");if(!e.ok)throw Error();let t=await e.json();i(t)}catch{i(null)}finally{c(!1)}},[]);(0,r.useEffect)(()=>{h()},[h]);let m=async t=>{u(`remove-${t}`);try{let r=await fetch("/api/tailscale/serve",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({httpsPort:t})});if(!r.ok){let t=await r.json();throw Error(t.error||e("removeFailed"))}l.toast.success(e("removedToast",{httpsPort:t})),await h()}catch(t){l.toast.error(t instanceof Error?t.message:e("removeFailed"))}finally{u(null)}};if(o)return(0,t.jsx)("div",{className:"flex items-center justify-center py-12",children:(0,t.jsx)(ev.default,{className:"h-4 w-4 text-muted-foreground"})});if(!a||!a.installed)return(0,t.jsx)(ew,{});if(!a.running)return(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"flex items-start gap-3 rounded-md border border-ui-amber/30 bg-ui-amber/5 p-4",children:[(0,t.jsx)(eg.AlertTriangle,{className:"mt-0.5 h-5 w-5 shrink-0 text-ui-amber"}),(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e("notRunning")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("notRunningDescription")})]})]}),(0,t.jsx)("div",{className:"rounded-md bg-muted p-3 font-mono text-xs leading-relaxed",children:(0,t.jsx)("p",{children:"tailscale up"})})]});let p=a.serveEntries,f=a.serverPort,x=8022!==f;return(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e("deviceInfo")}),(0,t.jsx)(A.Button,{variant:"ghost",size:"icon",className:"h-7 w-7",onClick:()=>{c(!0),h()},children:(0,t.jsx)(ex.RefreshCw,{className:"h-3.5 w-3.5"})})]}),(0,t.jsx)("div",{className:"rounded-md border p-3 text-sm",children:(0,t.jsxs)("div",{className:"grid grid-cols-[auto_1fr] items-center gap-x-4 gap-y-1.5",children:[(0,t.jsx)("span",{className:"text-muted-foreground",children:e("host")}),(0,t.jsx)("span",{className:"font-mono text-xs",children:a.hostname}),(0,t.jsx)("span",{className:"text-muted-foreground",children:"DNS"}),(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsx)("span",{className:"font-mono text-xs",children:a.dnsName}),a.dnsName&&(0,t.jsx)(eb,{text:a.dnsName})]}),(0,t.jsx)("span",{className:"text-muted-foreground",children:"IP"}),(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsx)("span",{className:"font-mono text-xs",children:a.tailscaleIp}),a.tailscaleIp&&(0,t.jsx)(eb,{text:a.tailscaleIp})]}),(0,t.jsx)("span",{className:"text-muted-foreground",children:e("version")}),(0,t.jsx)("span",{className:"font-mono text-xs",children:a.version})]})})]}),x&&(0,t.jsxs)("div",{className:"flex items-start gap-3 rounded-md border border-accent-color/30 bg-accent-color/5 p-4",children:[(0,t.jsx)(ef.Info,{className:"mt-0.5 h-5 w-5 shrink-0 text-accent-color"}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e("nonDefaultPortTitle",{port:f})}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("nonDefaultPortDescription",{defaultPort:8022,currentPort:f,restartAction:s.default?e("appRestart"):e("serverRestart")})}),(0,t.jsxs)("div",{className:"rounded-md bg-muted p-2.5 font-mono text-xs leading-relaxed",children:[(0,t.jsx)("p",{className:"text-muted-foreground/60",children:e("commentFixedPort",{port:8022})}),(0,t.jsxs)("p",{children:["PORT=",8022," purplemux"]}),(0,t.jsx)("p",{className:"mt-1.5 text-muted-foreground/60",children:e("commentOrTerminate",{port:8022})})]})]})]}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e("serveStatus")}),0===p.length?(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("noActiveServe")}):(0,t.jsx)("div",{className:"rounded-md border",children:(0,t.jsxs)("table",{className:"w-full text-sm",children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{className:"border-b text-muted-foreground",children:[(0,t.jsx)("th",{className:"px-3 py-2 text-left font-medium",children:e("httpsPort")}),(0,t.jsx)("th",{className:"px-3 py-2 text-left font-medium",children:e("proxyTarget")}),(0,t.jsx)("th",{className:"px-3 py-2 text-left font-medium",children:e("url")}),(0,t.jsx)("th",{className:"w-10 px-3 py-2"})]})}),(0,t.jsx)("tbody",{children:p.map(e=>{let r="443"===e.httpsPort?`https://${a.dnsName}`:`https://${a.dnsName}:${e.httpsPort}`;return(0,t.jsxs)("tr",{className:"border-b last:border-b-0",children:[(0,t.jsx)("td",{className:"px-3 py-2 font-mono text-xs",children:e.httpsPort}),(0,t.jsx)("td",{className:"px-3 py-2 font-mono text-xs",children:e.proxy}),(0,t.jsx)("td",{className:"px-3 py-2",children:(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsx)("a",{href:r,target:"_blank",rel:"noopener noreferrer",className:"font-mono text-xs underline hover:text-foreground",children:r}),(0,t.jsx)(eb,{text:r})]})}),(0,t.jsx)("td",{className:"px-3 py-2",children:(0,t.jsx)(A.Button,{variant:"ghost",size:"icon",className:"h-7 w-7 text-destructive hover:text-destructive",disabled:null!==d,onClick:()=>m(e.httpsPort),children:d===`remove-${e.httpsPort}`?(0,t.jsx)(ev.default,{className:"h-3 w-3"}):(0,t.jsx)(M.Trash2,{className:"h-3.5 w-3.5"})})})]},e.httpsPort)})})]})})]}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e("setupGuide")}),(0,t.jsxs)("div",{className:"rounded-md bg-muted p-3 font-mono text-xs leading-relaxed",children:[(0,t.jsx)("p",{className:"text-muted-foreground/60",children:e("commentStep1Install")}),(0,t.jsx)("p",{children:"brew install tailscale"}),(0,t.jsx)("p",{className:"mt-2 text-muted-foreground/60",children:e("commentStep2Activate")}),(0,t.jsx)("p",{children:"tailscale up"}),(0,t.jsx)("p",{className:"mt-2 text-muted-foreground/60",children:e("commentStep3Add")}),(0,t.jsxs)("p",{children:["tailscale serve --bg --https=443 http://localhost:",f]})]})]})]})},ej=[{id:"general",labelKey:"general",icon:(0,t.jsx)(j.Settings,{className:"h-4 w-4"})},{id:"appearance",labelKey:"appearance",icon:(0,t.jsx)(w.Palette,{className:"h-4 w-4"})},{id:"terminal",labelKey:"terminal",icon:(0,t.jsx)(C.Terminal,{className:"h-4 w-4"})},{id:"notification",labelKey:"notification",icon:(0,t.jsx)(o.Bell,{className:"h-4 w-4"})},{id:"editor",labelKey:"editor",icon:(0,t.jsx)(h.FolderCode,{className:"h-4 w-4"})},{id:"claude",labelKey:"claude",icon:(0,t.jsx)(D.default,{className:"h-4 w-4"})},{id:"auth",labelKey:"auth",icon:(0,t.jsx)(g.Lock,{className:"h-4 w-4"})},{id:"tailscale",labelKey:"tailscale",icon:(0,t.jsx)(m.Globe,{className:"h-4 w-4"})},{id:"quick-prompts",labelKey:"quickPrompts",icon:(0,t.jsx)(R.Zap,{className:"h-4 w-4"})},{id:"sidebar-items",labelKey:"sidebarItems",icon:(0,t.jsx)(x.Layout,{className:"h-4 w-4"})},{id:"system",labelKey:"system",icon:(0,t.jsx)(N.Wrench,{className:"h-4 w-4"})}],eS=[{id:"en",label:"English"},{id:"ko",label:"한국어"},{id:"ja",label:"日本語"},{id:"zh-CN",label:"中文(简体)"},{id:"zh-TW",label:"中文(繁體)"},{id:"es",label:"Español"},{id:"fr",label:"Français"},{id:"de",label:"Deutsch"},{id:"pt-BR",label:"Português (BR)"},{id:"ru",label:"Русский"},{id:"tr",label:"Türkçe"}],eC=[{id:"normal",labelKey:"fontSizeNormal"},{id:"large",labelKey:"fontSizeLarge"},{id:"x-large",labelKey:"fontSizeXLarge"}],eM=()=>{let e=(0,n.useTranslations)("settings.general"),r=(0,n.useTranslations)("common"),{theme:l,setTheme:s}=(0,a.useTheme)(),o=(0,K.default)(e=>e.locale),c=(0,K.default)(e=>e.setLocale),u=(0,K.default)(e=>e.fontSize),h=(0,K.default)(e=>e.setFontSize),m=(0,W.default)(e=>e.setSettingsDialogOpen),p=(0,W.default)(e=>e.setCheatSheetOpen),x=e=>{s(e),fetch("/api/config",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({appTheme:e})}).catch(()=>{}),window.electronAPI&&window.electronAPI.setNativeTheme(e)};return(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-3 md:flex-row md:items-center md:justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e("language")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("languageDescription")})]}),(0,t.jsxs)(H.Select,{items:eS.map(e=>({label:e.label,value:e.id})),value:o,onValueChange:e=>e&&c(e),children:[(0,t.jsx)(H.SelectTrigger,{className:"min-w-[200px]",children:(0,t.jsx)(H.SelectValue,{})}),(0,t.jsx)(H.SelectContent,{children:eS.map(e=>(0,t.jsx)(H.SelectItem,{value:e.id,children:e.label},e.id))})]})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-3 md:flex-row md:items-center md:justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e("theme")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("themeDescription")})]}),(0,t.jsxs)(T.ButtonGroup,{children:[(0,t.jsxs)(A.Button,{variant:"light"===l?"default":"outline",size:"sm",onClick:()=>x("light"),children:[(0,t.jsx)(S.Sun,{className:"h-4 w-4"}),r("light")]}),(0,t.jsxs)(A.Button,{variant:"dark"===l?"default":"outline",size:"sm",onClick:()=>x("dark"),children:[(0,t.jsx)(y.Moon,{className:"h-4 w-4"}),r("dark")]}),(0,t.jsxs)(A.Button,{variant:"system"===l?"default":"outline",size:"sm",onClick:()=>x("system"),children:[(0,t.jsx)(v.Monitor,{className:"h-4 w-4"}),r("system")]})]})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-3 md:flex-row md:items-center md:justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e("fontSize")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("fontSizeDescription")})]}),(0,t.jsx)(T.ButtonGroup,{children:eC.map(r=>(0,t.jsx)(A.Button,{variant:u===r.id?"default":"outline",size:"sm",onClick:()=>h(r.id),children:e(r.labelKey)},r.id))})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-3 md:flex-row md:items-center md:justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e("keyboardShortcuts")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("keyboardShortcutsDescription")})]}),(0,t.jsxs)(A.Button,{variant:"outline",size:"sm",onClick:()=>{m(!1),p(!0)},children:[(0,t.jsx)(f.Keyboard,{className:"h-4 w-4"}),e("openShortcuts"),(0,t.jsx)(d.ChevronRight,{className:"h-3.5 w-3.5"})]})]}),(0,t.jsxs)("a",{href:"https://github.com/subicura/purplemux/releases",target:"_blank",rel:"noopener noreferrer",className:"text-xs text-muted-foreground/50 hover:text-muted-foreground hover:underline w-fit",children:[i.default.version,"(","69ae76c",")"]})]})},eN=[{label:"Surface",vars:["--background","--card","--popover","--muted","--secondary","--accent","--sidebar"]},{label:"Text",vars:["--foreground","--card-foreground","--popover-foreground","--muted-foreground","--secondary-foreground","--accent-foreground","--sidebar-foreground"]},{label:"Interactive",vars:["--primary","--primary-foreground","--destructive"]},{label:"Border",vars:["--border","--input","--ring"]},{label:"Palette",vars:["--ui-blue","--ui-teal","--ui-coral","--ui-amber","--ui-purple","--ui-pink","--ui-green","--ui-gray","--ui-red"]},{label:"Semantic",vars:["--positive","--negative","--accent-color","--brand","--focus-indicator","--claude-active"]}],eE=()=>{let e=(0,n.useTranslations)("settings.appearance"),a=(0,n.useTranslations)("common"),i=(0,K.default)(e=>e.customCSS),s=(0,K.default)(e=>e.setCustomCSS),[o,d]=(0,r.useState)(i),[u,h]=(0,r.useState)(!1);(0,r.useEffect)(()=>{d(i)},[i]);let m=o!==i;return(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e("customCSS")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("customCSSDescription")})]}),(0,t.jsx)("textarea",{className:"h-56 w-full resize-y rounded-md border border-input bg-muted/30 p-3 font-mono text-xs leading-relaxed text-foreground placeholder:text-muted-foreground/40 focus:border-ring focus:outline-none",placeholder:e("placeholder"),value:o,onChange:e=>d(e.target.value),spellCheck:!1}),(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)(V.AlertDialog,{children:[(0,t.jsx)(V.AlertDialogTrigger,{render:(0,t.jsx)(A.Button,{variant:"outline",size:"sm",disabled:!i,children:e("reset")})}),(0,t.jsxs)(V.AlertDialogContent,{children:[(0,t.jsxs)(V.AlertDialogHeader,{children:[(0,t.jsx)(V.AlertDialogTitle,{children:e("reset")}),(0,t.jsx)(V.AlertDialogDescription,{children:e("resetConfirm")})]}),(0,t.jsxs)(V.AlertDialogFooter,{children:[(0,t.jsx)(V.AlertDialogCancel,{children:a("cancel")}),(0,t.jsx)(V.AlertDialogAction,{onClick:()=>{d(""),s("")},children:e("reset")})]})]})]}),(0,t.jsx)(A.Button,{size:"sm",disabled:!m,onClick:()=>{s(o),l.toast.success(e("applied"))},children:e("apply")})]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("button",{type:"button",className:"flex items-center gap-1.5 text-xs text-muted-foreground hover:text-foreground",onClick:()=>h(!u),children:[(0,t.jsx)(c.ChevronDown,{className:(0,q.cn)("h-3.5 w-3.5 transition-transform",u&&"rotate-180")}),e("availableVariables")]}),u&&(0,t.jsx)("div",{className:"mt-2 space-y-3",children:eN.map(e=>(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"mb-1 text-[11px] font-medium text-muted-foreground",children:e.label}),(0,t.jsx)("div",{className:"flex flex-wrap gap-1",children:e.vars.map(e=>(0,t.jsx)("code",{className:"rounded bg-muted px-1.5 py-0.5 text-[11px]",children:e},e))})]},e.label))})]})]})},eR=({list:e,selectedId:r,onSelect:n})=>(0,t.jsx)("div",{className:"grid grid-cols-2 gap-2 md:grid-cols-3",children:e.map(e=>{let l;return(0,t.jsxs)("button",{type:"button",onClick:()=>n(e.id),className:(0,q.cn)("flex flex-col gap-2 rounded-lg border p-3 text-left transition-colors",r===e.id?"border-primary bg-accent":"border-border hover:border-muted-foreground/50"),children:[(0,t.jsx)("span",{className:"text-xs font-medium",children:e.name}),(0,t.jsx)("div",{className:"flex h-5 items-center gap-1 rounded px-2",style:{backgroundColor:e.colors.background},children:[(l=e.colors).red,l.green,l.yellow,l.blue,l.magenta,l.cyan,l.white].map((e,r)=>(0,t.jsx)("div",{className:"h-2.5 w-2.5 rounded-full",style:{backgroundColor:e}},r))})]},e.id)})}),eD=()=>{let e=(0,n.useTranslations)("settings.terminal"),r=(0,n.useTranslations)("common"),{mode:l,themeIds:a,setTerminalTheme:i,themes:s}=(0,U.default)(),o=s.filter(e=>"dark"===e.variant),c=s.filter(e=>"light"===e.variant);return(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e("theme")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("themeDescription")})]}),(0,t.jsxs)(F.Tabs,{defaultValue:l,children:[(0,t.jsxs)(F.TabsList,{children:[(0,t.jsx)(F.TabsTrigger,{value:"dark",children:r("dark")}),(0,t.jsx)(F.TabsTrigger,{value:"light",children:r("light")})]}),(0,t.jsx)(F.TabsContent,{value:"dark",className:"mt-3",children:(0,t.jsx)(eR,{list:o,selectedId:a.dark,onSelect:e=>i("dark",e)})}),(0,t.jsx)(F.TabsContent,{value:"light",className:"mt-3",children:(0,t.jsx)(eR,{list:c,selectedId:a.light,onSelect:e=>i("light",e)})})]})]})},eA=()=>{let e=(0,n.useTranslations)("settings.editor"),a=(0,n.useTranslations)("common"),i=(0,K.default)(e=>e.editorUrl),s=(0,K.default)(e=>e.editorPreset),o=(0,K.default)(e=>e.setEditorUrl),c=(0,K.default)(e=>e.setEditorPreset),[d,u]=(0,r.useState)(i),[h,m]=(0,r.useState)(s),p="code-server"===h||"custom"===h,f=h!==s||p&&d.trim()!==i,x=(0,_.buildEditorUrl)(h,d,"/Users/me/project"),g=()=>{let t=p?d.trim():"";if("code-server"===h&&t)try{let r=new URL(t);if("http:"!==r.protocol&&"https:"!==r.protocol)return void l.toast.error(e("errorHttpRequired"))}catch{l.toast.error(e("errorHttpRequired"));return}"custom"!==h||!t||t.includes("{folder}")||t.includes("{folderEncoded}")?(u(t),o(t),c(h),l.toast.success(a("saved"))):l.toast.error(e("errorCustomTemplate"))};return(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e("preset")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("presetDescription")})]}),(0,t.jsx)(z.RadioGroup,{value:h,onValueChange:e=>m(e),className:"grid grid-cols-1 gap-2 sm:grid-cols-2",children:_.EDITOR_PRESETS.map(r=>(0,t.jsxs)(O.Label,{htmlFor:`editor-preset-${r}`,className:(0,q.cn)("flex cursor-pointer items-center gap-2 rounded-md border border-border px-3 py-2 text-sm font-normal",h===r&&"border-foreground/30 bg-accent"),children:[(0,t.jsx)(z.RadioGroupItem,{id:`editor-preset-${r}`,value:r}),(0,t.jsx)(Y.EditorIcon,{preset:r,className:"h-5 w-5 shrink-0"}),e(`presets.${r}`)]},r))})]}),p&&(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:"custom"===h?e("customTemplate"):e("url")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"custom"===h?e("customTemplateDescription"):e("urlDescription")}),(0,t.jsx)(I.Input,{placeholder:"custom"===h?"myeditor://open?path={folderEncoded}":"https://example.com:8080",value:d,onChange:e=>u(e.target.value),onKeyDown:e=>{"Enter"===e.key&&g()}}),"code-server"===h&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e.rich("urlHelp",{link:e=>(0,t.jsx)("a",{href:"https://github.com/coder/code-server",target:"_blank",rel:"noopener noreferrer",className:"underline hover:text-foreground",children:e}),code:()=>(0,t.jsx)("code",{className:"rounded bg-muted px-1 py-0.5 text-xs",children:"?folder="})})}),(0,t.jsxs)("div",{className:"rounded-md bg-muted p-3 font-mono text-xs leading-relaxed",children:[(0,t.jsx)("p",{className:"text-muted-foreground/60",children:"# Install on macOS"}),(0,t.jsx)("p",{children:"brew install code-server"}),(0,t.jsx)("p",{className:"mt-2 text-muted-foreground/60",children:"# Run"}),(0,t.jsx)("p",{children:"code-server --port 8080"}),(0,t.jsx)("p",{className:"mt-2 text-muted-foreground/60",children:"# External access via Tailscale (optional)"}),(0,t.jsx)("p",{children:"tailscale serve --bg --https=8443 http://localhost:8080"})]})]}),"custom"===h&&(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e.rich("customHelp",{folder:()=>(0,t.jsx)("code",{className:"rounded bg-muted px-1 py-0.5 text-xs",children:"{folder}"}),folderEncoded:()=>(0,t.jsx)("code",{className:"rounded bg-muted px-1 py-0.5 text-xs",children:"{folderEncoded}"})})})]}),!p&&"off"!==h&&(0,t.jsx)("p",{className:"rounded-md border border-border bg-muted/30 p-3 text-sm text-muted-foreground",children:e("localIdeHint")}),"off"===h&&(0,t.jsx)("p",{className:"rounded-md border border-border bg-muted/30 p-3 text-sm text-muted-foreground",children:e("offHint")}),x&&(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsx)("p",{className:"text-xs font-medium text-muted-foreground",children:e("preview")}),(0,t.jsx)("code",{className:"block break-all rounded-md bg-muted p-2 font-mono text-xs",children:x})]}),(0,t.jsx)("div",{className:"flex justify-end",children:(0,t.jsx)(A.Button,{disabled:!f,onClick:g,children:a("save")})})]})},eT=()=>{let e=(0,n.useTranslations)("settings.claude"),r=(0,K.default)(e=>e.dangerouslySkipPermissions),l=(0,K.default)(e=>e.setDangerouslySkipPermissions),a=(0,K.default)(e=>e.claudeShowTerminal),i=(0,K.default)(e=>e.setClaudeShowTerminal);return(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"space-y-0.5",children:[(0,t.jsx)(O.Label,{htmlFor:"skip-permissions",className:"text-sm font-medium",children:e("skipPermissions")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("skipPermissionsDescription")})]}),(0,t.jsx)(L.Switch,{id:"skip-permissions",checked:r,onCheckedChange:l})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"space-y-0.5",children:[(0,t.jsx)(O.Label,{htmlFor:"show-terminal",className:"text-sm font-medium",children:e("showTerminal")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("showTerminalDescription")})]}),(0,t.jsx)(L.Switch,{id:"show-terminal",checked:a,onCheckedChange:i})]})]})},eI=({value:e,onChange:r,ariaLabel:l})=>{let a=(0,n.useTranslations)("settings.notification"),i=G.TOAST_POSITIONS.map(e=>({label:a(`positions.${e}`),value:e}));return(0,t.jsxs)(H.Select,{items:i,value:e,onValueChange:e=>e&&r(e),children:[(0,t.jsx)(H.SelectTrigger,{"aria-label":l,className:"min-w-[160px]",children:(0,t.jsx)(H.SelectValue,{})}),(0,t.jsx)(H.SelectContent,{children:i.map(e=>(0,t.jsx)(H.SelectItem,{value:e.value,children:e.label},e.value))})]})},eL=()=>{let e=(0,n.useTranslations)("settings.notification"),l=(0,K.default)(e=>e.notificationsEnabled),a=(0,K.default)(e=>e.setNotificationsEnabled),i=(0,K.default)(e=>e.toastOnCompleteEnabled),s=(0,K.default)(e=>e.setToastOnCompleteEnabled),o=(0,K.default)(e=>e.toastDuration),c=(0,K.default)(e=>e.setToastDuration),d=(0,K.default)(e=>e.toastPositionDesktop),u=(0,K.default)(e=>e.setToastPositionDesktop),h=(0,K.default)(e=>e.toastPositionMobile),m=(0,K.default)(e=>e.setToastPositionMobile),[p,f]=(0,r.useState)(null),x=p??String(Math.round(o/1e3)),g=!window.electronAPI&&!("PushManager"in window),v=!window.electronAPI&&"Notification"in window&&"denied"===Notification.permission;return(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"space-y-0.5",children:[(0,t.jsx)(O.Label,{htmlFor:"notifications-enabled",className:"text-sm font-medium",children:e("enable")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("enableDescription")})]}),(0,t.jsx)(L.Switch,{id:"notifications-enabled",checked:l,onCheckedChange:a,disabled:g||v})]}),v&&(0,t.jsx)("p",{className:"text-sm text-destructive",children:e("permissionDenied")}),g&&(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("notSupported")})]}),(0,t.jsxs)("div",{className:"border-t pt-6 space-y-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e("toastSection")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("toastSectionDescription")})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"space-y-0.5",children:[(0,t.jsx)(O.Label,{htmlFor:"toast-enabled",className:"text-sm font-medium",children:e("toastEnable")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("toastEnableDescription")})]}),(0,t.jsx)(L.Switch,{id:"toast-enabled",checked:i,onCheckedChange:s})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-3 md:flex-row md:items-center md:justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e("toastDuration")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("toastDurationDescription")})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(I.Input,{type:"number",min:1,max:60,step:1,value:x,onChange:e=>f(e.target.value),onBlur:()=>{let e=Number(p);if(f(null),!Number.isFinite(e))return;let t=1e3*Math.min(60,Math.max(1,Math.round(e)));t!==o&&c(t)},onKeyDown:e=>{"Enter"===e.key&&e.target.blur()},disabled:!i,className:"h-8 w-20 text-sm"}),(0,t.jsx)("span",{className:"text-sm text-muted-foreground",children:e("toastDurationUnit")})]})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-3 md:flex-row md:items-center md:justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e("toastPositionDesktop")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("toastPositionDesktopDescription")})]}),(0,t.jsx)(eI,{value:d,onChange:u,ariaLabel:e("toastPositionDesktop")})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-3 md:flex-row md:items-center md:justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e("toastPositionMobile")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("toastPositionMobileDescription")})]}),(0,t.jsx)(eI,{value:h,onChange:m,ariaLabel:e("toastPositionMobile")})]})]})]})},eP=()=>{let e=(0,n.useTranslations)("settings.auth"),a=(0,n.useTranslations)("common"),i=(0,K.default)(e=>e.hasAuthPassword),o=(0,K.default)(e=>e.changePassword),[c,d]=(0,r.useState)(""),[h,m]=(0,r.useState)(!1),p=h&&c.trim().length>=4,f=e=>{d(e),m(!0)};return(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsxs)(P.Field,{children:[(0,t.jsx)(P.FieldLabel,{htmlFor:"auth-password",children:e("changePassword")}),(0,t.jsx)(P.FieldDescription,{children:e("changePasswordDescription")}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(I.Input,{id:"auth-password",placeholder:i?e("newPasswordPlaceholder"):e("passwordPlaceholder"),value:c,onChange:e=>f(e.target.value)}),(0,t.jsx)(A.Button,{variant:"outline",size:"icon",className:"shrink-0",onClick:()=>{let e;return f((e=new Uint8Array(8),crypto.getRandomValues(e),Array.from(e,e=>e.toString(16).padStart(2,"0")).join("").slice(0,8)))},children:(0,t.jsx)(u.Dices,{className:"h-4 w-4"})})]})]}),(0,t.jsx)(P.FieldDescription,{children:e("resetHint",{action:s.default?e("restartApp"):e("restartServer")})}),(0,t.jsx)("div",{className:"flex justify-end",children:(0,t.jsx)(A.Button,{disabled:!p,onClick:()=>{o(c.trim()),d(""),m(!1),l.toast.success(e("savedRestart",{action:s.default?e("restartAppAction"):e("restartServerAction")}))},children:a("save")})})]})},eO=()=>{let e=(0,n.useTranslations)("settings.system"),a=(0,n.useTranslations)("common"),i=(0,K.default)(e=>e.systemResourcesEnabled),o=(0,K.default)(e=>e.setSystemResourcesEnabled),c=(0,K.default)(e=>e.networkAccess),d=(0,K.default)(e=>e.setNetworkAccess),u=(0,K.default)(e=>e.hostEnvLocked),h=(0,K.default)(e=>e.bindHostIsLocal),[m,f]=(0,r.useState)(!1),x=async()=>{f(!0);try{let t=await fetch("/api/uploads/cleanup",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({mode:"all"})});if(!t.ok)throw Error(`HTTP ${t.status}`);let r=await t.json();r.deleted>0?l.toast.success(e("attachedImagesCleaned",{count:r.deleted})):l.toast.info(e("attachedImagesNothing"))}catch{l.toast.error(a("error"))}finally{f(!1)}},[g,v]=(0,r.useState)(c);(0,r.useEffect)(()=>{v(c)},[c]);let y=g!==c,w=h&&"localhost"!==g;return(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsxs)("div",{className:"flex items-start gap-2",children:[(0,t.jsx)(b.Network,{className:"mt-0.5 h-4 w-4 text-muted-foreground"}),(0,t.jsxs)("div",{className:"flex-1 space-y-0.5",children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e("networkAccess")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:u?e("networkAccessLocked"):e("networkAccessDescription")})]})]}),(0,t.jsx)(z.RadioGroup,{value:g,onValueChange:e=>v(e),disabled:u,className:"gap-2",children:["localhost","tailscale","all"].map(r=>(0,t.jsxs)("label",{htmlFor:`network-access-${r}`,className:"flex cursor-pointer items-start gap-3 rounded-md border bg-background px-3 py-2.5 aria-disabled:cursor-not-allowed aria-disabled:opacity-60","aria-disabled":u||void 0,children:[(0,t.jsx)(z.RadioGroupItem,{value:r,id:`network-access-${r}`,className:"mt-0.5"}),(0,t.jsxs)("div",{className:"flex-1 space-y-0.5",children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e(`networkAccessOptions.${r}.label`)}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:e(`networkAccessOptions.${r}.description`)})]})]},r))}),!u&&(0,t.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:w?e("restartRequired"):""}),(0,t.jsx)(A.Button,{size:"sm",onClick:()=>{d(g),l.toast.success(w?e("restartRequired"):a("saved"))},disabled:!y,children:a("save")})]})]}),s.default&&(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"space-y-0.5",children:[(0,t.jsx)(O.Label,{htmlFor:"system-resources",className:"text-sm font-medium",children:e("showResources")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("showResourcesDescription")})]}),(0,t.jsx)(L.Switch,{id:"system-resources",checked:i,onCheckedChange:o})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-3 md:flex-row md:items-center md:justify-between",children:[(0,t.jsxs)("div",{className:"flex items-start gap-2",children:[(0,t.jsx)(p.ImageIcon,{className:"mt-0.5 h-4 w-4 shrink-0 text-muted-foreground"}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e("attachedImages")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("attachedImagesDescription")})]})]}),(0,t.jsxs)(A.Button,{variant:"outline",size:"sm",className:"gap-1.5 shrink-0",onClick:x,disabled:m,children:[(0,t.jsx)(M.Trash2,{className:"h-3.5 w-3.5"}),e("cleanAttachedImages")]})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-3 md:flex-row md:items-center md:justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e("tmuxReset")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("tmuxResetDescription",{action:s.default?e("restartApp"):e("restartServer")})})]}),(0,t.jsxs)(V.AlertDialog,{children:[(0,t.jsx)(V.AlertDialogTrigger,{render:(0,t.jsxs)(A.Button,{variant:"destructive",size:"sm",className:"gap-1.5 shrink-0",children:[(0,t.jsx)(k.RotateCcw,{className:"h-3.5 w-3.5"}),a("reset")]})}),(0,t.jsxs)(V.AlertDialogContent,{children:[(0,t.jsxs)(V.AlertDialogHeader,{children:[(0,t.jsx)(V.AlertDialogTitle,{children:e("tmuxReset")}),(0,t.jsx)(V.AlertDialogDescription,{children:e("tmuxResetConfirm")})]}),(0,t.jsxs)(V.AlertDialogFooter,{children:[(0,t.jsx)(V.AlertDialogCancel,{children:a("cancel")}),(0,t.jsx)(V.AlertDialogAction,{className:"bg-ui-red hover:bg-ui-red/80",onClick:()=>{window.location.href="/reset"},children:a("reset")})]})]})]})]})]})};e.s(["default",0,({open:e,onOpenChange:l})=>{let a=(0,n.useTranslations)("settings"),i=(0,n.useTranslations)("common"),[o,c]=(0,r.useState)("general"),d=ej.find(e=>e.id===o);return(0,t.jsx)(B.Dialog,{open:e,onOpenChange:l,children:(0,t.jsx)(B.DialogContent,{className:"inset-0 max-w-none sm:max-w-none translate-x-0 translate-y-0 gap-0 overflow-hidden rounded-none p-0 md:inset-auto md:top-1/2 md:left-1/2 md:h-auto md:w-[calc(100%-2rem)] md:min-w-3xl md:max-w-3xl md:-translate-x-1/2 md:-translate-y-1/2 md:rounded-xl",showCloseButton:!1,children:(0,t.jsxs)("div",{className:"flex h-full min-h-0 min-w-0 w-full flex-col overflow-hidden md:h-[520px] md:flex-row",children:[(0,t.jsxs)("div",{className:"flex shrink-0 flex-col border-b bg-muted/30 px-3 pt-3 pb-0 md:p-3 md:w-48 md:border-b-0 md:border-r",children:[(0,t.jsxs)("div",{className:"mb-2 flex items-center justify-between px-2 md:mb-4",children:[(0,t.jsx)(B.DialogTitle,{className:"text-base font-semibold",children:a("title")}),(0,t.jsxs)(A.Button,{variant:"ghost",size:"icon",onClick:()=>l(!1),className:"h-6 w-6 opacity-70 hover:opacity-100",children:[(0,t.jsx)(E.X,{className:"h-[18px] w-[18px]"}),(0,t.jsx)("span",{className:"sr-only",children:i("close")})]})]}),(0,t.jsx)("nav",{className:"flex gap-1 overflow-x-auto px-1 pb-2 md:flex-col md:px-0 md:pb-0",children:ej.filter(e=>!e.electronOnly||s.default).map(e=>(0,t.jsxs)(A.Button,{variant:"ghost",onClick:()=>c(e.id),className:(0,q.cn)("shrink-0 justify-start gap-2 whitespace-nowrap px-3 py-2 text-sm font-medium md:gap-3",o===e.id?"bg-accent text-accent-foreground":"text-muted-foreground hover:bg-accent/50 hover:text-accent-foreground"),children:[e.icon,a(`tabs.${e.labelKey}`)]},e.id))})]}),(0,t.jsxs)("div",{className:"min-h-0 min-w-0 flex-1 overflow-x-hidden overflow-y-auto p-4 md:p-6",children:[(0,t.jsx)("h2",{className:"mb-6 text-lg font-semibold",children:d?a(`tabs.${d.labelKey}`):""}),"general"===o&&(0,t.jsx)(eM,{}),"appearance"===o&&(0,t.jsx)(eE,{}),"terminal"===o&&(0,t.jsx)(eD,{}),"notification"===o&&(0,t.jsx)(eL,{}),"editor"===o&&(0,t.jsx)(eA,{}),"claude"===o&&(0,t.jsx)(eT,{}),"auth"===o&&(0,t.jsx)(eP,{}),"tailscale"===o&&(0,t.jsx)(ek,{}),"quick-prompts"===o&&(0,t.jsx)($.default,{}),"sidebar-items"===o&&(0,t.jsx)(eu,{}),"system"===o&&(0,t.jsx)(eO,{})]})]})})})}],934048)}]);
|