@p4code/cli 0.8.21 → 0.8.22

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.
Files changed (323) hide show
  1. package/LICENSE +1 -1
  2. package/dist/{AcpMcpStdioBridge-BL9bAh79.mjs → AcpMcpStdioBridge-BuIIHL4p.mjs} +18 -18
  3. package/dist/{AcpMcpStdioBridge-DxwEM6O4.mjs → AcpMcpStdioBridge-BvUHCq9r.mjs} +1 -1
  4. package/dist/{Effect-B-zvTJgX.mjs → Effect-Dxd2t1f5.mjs} +34 -2
  5. package/dist/{Schema-inVr7S-v.mjs → Schema-CoZlakRf.mjs} +2 -2
  6. package/dist/{Stream-CX7G9D0M.mjs → Stream-CdSxHO_5.mjs} +2 -2
  7. package/dist/bin.mjs +4 -4
  8. package/dist/{binCli-7vuQm4vY.mjs → binCli-CfXLOppT.mjs} +3452 -2670
  9. package/dist/claude-history-worker.mjs +1 -1
  10. package/dist/{claudeHistoryWorker-BvaF6m2o.mjs → claudeHistoryWorker-js6Jgg9C.mjs} +2 -2
  11. package/dist/client/.vite/manifest.json +2211 -2211
  12. package/dist/client/assets/AlertDialogRoot-DCfR_LaK.js +2 -0
  13. package/dist/client/assets/{AnimatedHeight-B1LdeRxh.js → AnimatedHeight-DcrvwWWb.js} +2 -2
  14. package/dist/client/assets/{AuthSurfaceShell-BwoVNx9S.js → AuthSurfaceShell-CFBHG1UK.js} +2 -2
  15. package/dist/client/assets/{CSPContext-Bn8q5RdR.js → CSPContext-BP4s0CJv.js} +2 -2
  16. package/dist/client/assets/{ChatGptUsageButton-BKwNHMSp.js → ChatGptUsageButton-CoiZRjaS.js} +2 -2
  17. package/dist/client/assets/ChatMarkdown-C6I8N1IH.js +65 -0
  18. package/dist/client/assets/{CheckboxIndicator-DUUgNp1r.js → CheckboxIndicator-DcH9EpvK.js} +2 -2
  19. package/dist/client/assets/{CodexSetupSection.logic-CGR92Snb.js → CodexSetupSection.logic-sXohw-MK.js} +2 -2
  20. package/dist/client/assets/{CollapsiblePanel-D1aZAbsh.js → CollapsiblePanel-FknKvWoA.js} +2 -2
  21. package/dist/client/assets/{ComboboxClear-CMNv82AR.js → ComboboxClear-RsGmZUJN.js} +2 -2
  22. package/dist/client/assets/{ComboboxGroupLabel-BqpdqndG.js → ComboboxGroupLabel-DO1lnPnr.js} +2 -2
  23. package/dist/client/assets/{CommandBlock-BGFFySU3.js → CommandBlock-B5S9so33.js} +2 -2
  24. package/dist/client/assets/{ComposerPromptEditor-DlIuiQ2e.js → ComposerPromptEditor-C7ZRV_6P.js} +5 -5
  25. package/dist/client/assets/{CompositeRoot-BP063J4d.js → CompositeRoot-DDZcK2m0.js} +2 -2
  26. package/dist/client/assets/{ConnectionStatusDot-DvalNlEr.js → ConnectionStatusDot-Bz5Ps6Bm.js} +2 -2
  27. package/dist/client/assets/{DevicePanel-FC3DPqLr.js → DevicePanel-DmfTFNuU.js} +2 -2
  28. package/dist/client/assets/{DeviceSetup-ERWR4ZzH.js → DeviceSetup-Br_kHy6n.js} +2 -2
  29. package/dist/client/assets/{DialogTitle-OaePW-Ih.js → DialogTitle-Dr-LJLpq.js} +2 -2
  30. package/dist/client/assets/{DiffCommentAnnotation-YjjFdEbc.js → DiffCommentAnnotation-FcSG-wBG.js} +2 -2
  31. package/dist/client/assets/{DiffFileTree-DynXKsOn.js → DiffFileTree-IIdU6CqP.js} +2 -2
  32. package/dist/client/assets/{DiffPanel-BpuFnTQ7.js → DiffPanel-CEx8f_mo.js} +2 -2
  33. package/dist/client/assets/{DiffWorkerPoolProvider-DDWtmCyP.js → DiffWorkerPoolProvider-C_VbNhAr.js} +2 -2
  34. package/dist/client/assets/{EmbeddedDesign-B1fJ5Mbz.js → EmbeddedDesign-Hba9k7LF.js} +2 -2
  35. package/dist/client/assets/{EnvironmentMachineIcon-DszKXxD_.js → EnvironmentMachineIcon-b_kKEeAf.js} +2 -2
  36. package/dist/client/assets/{ExpandableText-hoL-6ubc.js → ExpandableText-anFaXhXF.js} +2 -2
  37. package/dist/client/assets/{FieldControl-DDVVfmpB.js → FieldControl-w2_zp1DT.js} +2 -2
  38. package/dist/client/assets/{FileDiff-BAjD8hTV.js → FileDiff-B-9keGlb.js} +2 -2
  39. package/dist/client/assets/{FilePreviewPanel-BjYyaBX0.js → FilePreviewPanel-C1f_ibuL.js} +3 -3
  40. package/dist/client/assets/{FoldedSettingsSection-CoyiJ_Zj.js → FoldedSettingsSection-gN3w1sSZ.js} +2 -2
  41. package/dist/client/assets/{FormContext-B0PXExmu.js → FormContext-BWWAKTFF.js} +2 -2
  42. package/dist/client/assets/{Icons-CX6xNdVb.js → Icons-DzTpHpn1.js} +2 -2
  43. package/dist/client/assets/Input-DCMTYdrA.js +2 -0
  44. package/dist/client/assets/{KeybindingsSettings.logic-6FRd2ilb.js → KeybindingsSettings.logic-D8LAdmvB.js} +2 -2
  45. package/dist/client/assets/{NoProjectsHero-A1VZ7ogx.js → NoProjectsHero-CtzChQ7p.js} +2 -2
  46. package/dist/client/assets/{T3ConnectAccountPages-Cfc33ihi.js → P4ConnectAccountPages-B3SBsg6B.js} +2 -2
  47. package/dist/client/assets/{T3ConnectSidebarSignIn-HRtCfmCk.js → P4ConnectSidebarSignIn-DKcaDv93.js} +2 -2
  48. package/dist/client/assets/PanelLayoutControls-CCYVBazN.js +216 -0
  49. package/dist/client/assets/{PierreEntryIcon-Ds39h2AA.js → PierreEntryIcon-CjZ8gyJq.js} +2 -2
  50. package/dist/client/assets/{PopoverHandle-DRjGw1Yt.js → PopoverHandle-1bqR8KHF.js} +2 -2
  51. package/dist/client/assets/{PreviewPanel-ChNkAjUz.js → PreviewPanel-Kq4mVufQ.js} +2 -2
  52. package/dist/client/assets/{ProjectDefaultsSettings-Df_lGEeD.js → ProjectDefaultsSettings-DUCUj4oc.js} +2 -2
  53. package/dist/client/assets/{ProjectFavicon-BtNx7IEw.js → ProjectFavicon-va5UQPLo.js} +3 -3
  54. package/dist/client/assets/{ProjectIconPickerDialog-CODB2BT9.js → ProjectIconPickerDialog-CN2gK_o7.js} +2 -2
  55. package/dist/client/assets/{ProjectMonogram-IuYJI7zN.js → ProjectMonogram-B3Dkc8yq.js} +2 -2
  56. package/dist/client/assets/{ProviderAuthTerminal-78p4XZgL.js → ProviderAuthTerminal-BSIgib7h.js} +2 -2
  57. package/dist/client/assets/{ProviderModelPicker-C3S7ixLD.js → ProviderModelPicker-BrEkNDPF.js} +2 -2
  58. package/dist/client/assets/{ProviderSettingsForm-j7_6yEo7.js → ProviderSettingsForm-D6zHGIeN.js} +2 -2
  59. package/dist/client/assets/{PullRequestCodeTab-DkUNpmvf.js → PullRequestCodeTab-DA-5pWeg.js} +2 -2
  60. package/dist/client/assets/{ReadOnlySourcePreview-kG5bicDV.js → ReadOnlySourcePreview-BSCVTdYH.js} +2 -2
  61. package/dist/client/assets/{RenderErrorBoundary-BbYl2ykS.js → RenderErrorBoundary-yWjbnzsc.js} +2 -2
  62. package/dist/client/assets/{ScheduledTasksSettings-YdKTaY5U.js → ScheduledTasksSettings-B1bSNXTP.js} +3 -3
  63. package/dist/client/assets/{ScopedSwitch-D9a9Wx-e.js → ScopedSwitch-D3fAHI1-.js} +2 -2
  64. package/dist/client/assets/{ScrollAreaCorner-Ck3L5tlH.js → ScrollAreaCorner-CNzfnpwK.js} +2 -2
  65. package/dist/client/assets/{SecretInput-UofV3Jxx.js → SecretInput-D7hYUoFA.js} +2 -2
  66. package/dist/client/assets/{SelectScrollUpArrow-C_YHAw_f.js → SelectScrollUpArrow-kQBsA9rk.js} +2 -2
  67. package/dist/client/assets/{SettingsPanels-BoUeQYqp.js → SettingsPanels-6SOZMWhg.js} +5 -5
  68. package/dist/client/assets/{SettingsPanels.logic-BE_JM5Fc.js → SettingsPanels.logic-CMErdEeV.js} +2 -2
  69. package/dist/client/assets/{SettingsScopeNotice-CHsOo_U6.js → SettingsScopeNotice-CyzbYUPJ.js} +2 -2
  70. package/dist/client/assets/ThemeEditorPanel-vZ4MSCBx.js +5 -0
  71. package/dist/client/assets/{ThreadTerminalDrawer-D_GQQ1Ly.js → ThreadTerminalDrawer-BU_DR6wu.js} +2 -2
  72. package/dist/client/assets/{TooltipViewport-B_Oz-gLq.js → TooltipViewport-CG7gtflQ.js} +2 -2
  73. package/dist/client/assets/{Virtualizer-DRAoNAc2.js → Virtualizer-CoK0zXAG.js} +2 -2
  74. package/dist/client/assets/{WorkspaceBreadcrumb-CpHuVRke.js → WorkspaceBreadcrumb-qAYKTgm8.js} +2 -2
  75. package/dist/client/assets/{WorkspacePageContainer-BQ0Bk5Qy.js → WorkspacePageContainer-D6i--Hwz.js} +2 -2
  76. package/dist/client/assets/{WorkspacePageHeader-Cx1gpU1l.js → WorkspacePageHeader-covOFYhv.js} +2 -2
  77. package/dist/client/assets/_chat-DMXSEEst.js +45 -0
  78. package/dist/client/assets/{_chat.index-T3ADOYa1.js → _chat.index-C3PnT6ae.js} +2 -2
  79. package/dist/client/assets/{_chat.new-egywwPr3.js → _chat.new-CxErZ7CC.js} +2 -2
  80. package/dist/client/assets/{_chat.pull-requests-CkgRG9UN.js → _chat.pull-requests-w2FCKIZ8.js} +2 -2
  81. package/dist/client/assets/{abnfDiagram-VCTEODGH-BctM0h9j.js → abnfDiagram-VCTEODGH-CWxKS58m.js} +2 -2
  82. package/dist/client/assets/{alert-CNni4aGm.js → alert-DsgAHDNi.js} +2 -2
  83. package/dist/client/assets/architecture-7GRP2DOG-BVExhwPq.js +1 -0
  84. package/dist/client/assets/{architectureDiagram-5GKGNRK7-T6dn-Aw8.js → architectureDiagram-5GKGNRK7-kc6KNP-H.js} +2 -2
  85. package/dist/client/assets/{assets-B_A7RkiF.js → assets-DW8sK93I.js} +2 -2
  86. package/dist/client/assets/{blockDiagram-I7D4REHJ-2KUW7DJ1.js → blockDiagram-I7D4REHJ-CFJYOAbd.js} +2 -2
  87. package/dist/client/assets/{browserHistoryStore-hEHIMltt.js → browserHistoryStore-DjDw15jq.js} +2 -2
  88. package/dist/client/assets/{browserLinkTarget-CdzL1FA-.js → browserLinkTarget-Br8BmA6w.js} +2 -2
  89. package/dist/client/assets/{c4Diagram-7LVT6UL2-1uZnjRIl.js → c4Diagram-7LVT6UL2-Sxaodxxv.js} +2 -2
  90. package/dist/client/assets/channel-BLnKdGtk.js +2 -0
  91. package/dist/client/assets/{checkbox-BpAfakhx.js → checkbox-D33R1soh.js} +2 -2
  92. package/dist/client/assets/{chunk-4HAMMTFA-DTdSC_bt.js → chunk-4HAMMTFA-CxocYFD0.js} +2 -2
  93. package/dist/client/assets/{chunk-75Z2AOVW-D8m_ip6d.js → chunk-75Z2AOVW-CBCO5Noa.js} +2 -2
  94. package/dist/client/assets/{chunk-DU6HZSFF-cx0FIxcU.js → chunk-DU6HZSFF-CEaklbmE.js} +2 -2
  95. package/dist/client/assets/{chunk-F27PBJKO-CLaT5xm4.js → chunk-F27PBJKO-Iw-0qjF9.js} +2 -2
  96. package/dist/client/assets/{chunk-GMAD6QVW-Dh_22wYw.js → chunk-GMAD6QVW-CbDVrypn.js} +2 -2
  97. package/dist/client/assets/{chunk-GVQU2GXP-Cl592Z8q.js → chunk-GVQU2GXP-BEqmpgLD.js} +2 -2
  98. package/dist/client/assets/{chunk-IMKFNOWR-b4olkqo9.js → chunk-IMKFNOWR-bgZmQWS5.js} +2 -2
  99. package/dist/client/assets/{chunk-L3NEJ4N5-C3zHyNed.js → chunk-L3NEJ4N5-LW_IXl13.js} +2 -2
  100. package/dist/client/assets/{chunk-OSK3NFVY-DfOyV50p.js → chunk-OSK3NFVY-DvGdSD7J.js} +2 -2
  101. package/dist/client/assets/{chunk-P2QGCYS3-CtwwhFBb.js → chunk-P2QGCYS3-BAXEcEik.js} +2 -2
  102. package/dist/client/assets/{chunk-POPQ4Y6H-Bn_dv1-6.js → chunk-POPQ4Y6H-yM2kH99r.js} +2 -2
  103. package/dist/client/assets/{chunk-PWAF6VOD-DB5x5BPu.js → chunk-PWAF6VOD-B19ZyrVH.js} +2 -2
  104. package/dist/client/assets/{chunk-SHT3W25Y-4SWCrL8G.js → chunk-SHT3W25Y-BhcwXJOc.js} +2 -2
  105. package/dist/client/assets/{chunk-SVP7TREG-B9UQB6rs.js → chunk-SVP7TREG-B9xbRF9R.js} +2 -2
  106. package/dist/client/assets/{chunk-TICWLB2K-I0Ma7uE4.js → chunk-TICWLB2K-D_VEGQbw.js} +2 -2
  107. package/dist/client/assets/classDiagram-ZZMXUADV-B839piSM.js +2 -0
  108. package/dist/client/assets/classDiagram-v2-VYDZK3BY-B839piSM.js +2 -0
  109. package/dist/client/assets/{color-picker-KVitc2gM.js → color-picker-D3b0sEoy.js} +2 -2
  110. package/dist/client/assets/{combobox-DiUoVqyf.js → combobox-DzFRsaks.js} +2 -2
  111. package/dist/client/assets/{command-CMR1n6Uf.js → command-IDMJ6pXc.js} +2 -2
  112. package/dist/client/assets/{composer-logic-D76QXdUM.js → composer-logic-CEsP6SV6.js} +2 -2
  113. package/dist/client/assets/{composerDraftUploads-Vg0GXwnb.js → composerDraftUploads-Qq0xOGEc.js} +2 -2
  114. package/dist/client/assets/{connect-C-gMnpNs.js → connect-BTIPE2au.js} +2 -2
  115. package/dist/client/assets/{connect-agent-C4zyA6ta.js → connect-agent-hbkOBaFx.js} +2 -2
  116. package/dist/client/assets/{cynefin-OW5HDTMX-BJCfymNy.js → cynefin-OW5HDTMX-CWOcHmwk.js} +1 -1
  117. package/dist/client/assets/{cynefinDiagram-5FMLGOSQ-Cxc8iWLh.js → cynefinDiagram-5FMLGOSQ-ksIfZeWS.js} +2 -2
  118. package/dist/client/assets/{dagre-GXQ25YYZ-DvjGFTC6.js → dagre-GXQ25YYZ-D7qz-Azr.js} +2 -2
  119. package/dist/client/assets/{design-Cvqy5-YM.js → design-B7V20I1i.js} +2 -2
  120. package/dist/client/assets/{device-CHTG1mA3.js → device-DX-G6J1j.js} +2 -2
  121. package/dist/client/assets/{diagram-S7CK7UJ4-DQ3d5nRG.js → diagram-S7CK7UJ4-IBhHReDK.js} +2 -2
  122. package/dist/client/assets/{diagram-UQ7AKVKN-Hzoc39HG.js → diagram-UQ7AKVKN-EX7tFJEV.js} +2 -2
  123. package/dist/client/assets/{diagram-VSXAHHWV-BiAz9eK3.js → diagram-VSXAHHWV-BEHOoBER.js} +2 -2
  124. package/dist/client/assets/{diagram-VX7I27RA-ZvxW6orI.js → diagram-VX7I27RA-Df_ThjhC.js} +2 -2
  125. package/dist/client/assets/{diagram-Z3DM3KII-DYVNNS6J.js → diagram-Z3DM3KII-DudywHX4.js} +2 -2
  126. package/dist/client/assets/{dialog-D--IO2tX.js → dialog-YpQOq7Ug.js} +2 -2
  127. package/dist/client/assets/{diffRendering-CH8Pp2NZ.js → diffRendering-CgLbOp0J.js} +2 -2
  128. package/dist/client/assets/{discovery-list-E9mW3ie9.js → discovery-list-CnlrZrDo.js} +2 -2
  129. package/dist/client/assets/{dist-D_us60iU.js → dist-usNgCtd_.js} +3 -3
  130. package/dist/client/assets/{draft-input-BqhTvFTz.js → draft-input-DW6EgVbF.js} +2 -2
  131. package/dist/client/assets/{duoViewer-C1ysZzHj.js → duoViewer-CgVOZcYe.js} +2 -2
  132. package/dist/client/assets/{dynamic-D3BvMY7V.js → dynamic-C1qIL2Wy.js} +2 -2
  133. package/dist/client/assets/{ebnfDiagram-PWID7BFC-ARv-iUm5.js → ebnfDiagram-PWID7BFC-DPJg2C3n.js} +2 -2
  134. package/dist/client/assets/{embeddedScripts-iET5Slgf.js → embeddedScripts-CAZM4r8Y.js} +2 -2
  135. package/dist/client/assets/{empty-IIGW45Hv.js → empty-QSN6WiRO.js} +2 -2
  136. package/dist/client/assets/entities-Bj5ceyfn.js +2 -0
  137. package/dist/client/assets/{erDiagram-RLTQ6QDP-BbhShOfn.js → erDiagram-RLTQ6QDP-BySDEjHG.js} +2 -2
  138. package/dist/client/assets/eventmodeling-NTZA5JFV-CrSSBuUT.js +1 -0
  139. package/dist/client/assets/{fileLinks-BVZWyXb4.js → fileLinks-ShhGM_AF.js} +2 -2
  140. package/dist/client/assets/{fileTreeExpansion-CWBDW5x7.js → fileTreeExpansion-DZnEBuaB.js} +5 -5
  141. package/dist/client/assets/flowDiagram-HODETNUW-GdATwCAd.js +1 -0
  142. package/dist/client/assets/{ganttDiagram-EL5Y4UJY-YyvVQr9f.js → ganttDiagram-EL5Y4UJY-CJAhE7we.js} +2 -2
  143. package/dist/client/assets/{getDiffFileInput-CqWRYbh0.js → getDiffFileInput-BxuEGdnM.js} +2 -2
  144. package/dist/client/assets/{gitGraph-4MIJSDKK-B1sT41xD.js → gitGraph-4MIJSDKK-BqKoI8Rd.js} +1 -1
  145. package/dist/client/assets/{gitGraphDiagram-WWUBYQGX-2YfTeJPY.js → gitGraphDiagram-WWUBYQGX-BPFwoaRw.js} +2 -2
  146. package/dist/client/assets/{guideRunStore-C8EitNtt.js → guideRunStore-CYD68wqk.js} +2 -2
  147. package/dist/client/assets/{htmlRender-n-z4ejOb.js → htmlRender-p6atQGoW.js} +2 -2
  148. package/dist/client/assets/{index-D5grnFOh.js → index-CnQWjeBY.js} +3 -3
  149. package/dist/client/assets/{info-A6RAGUB7-Bxvrguok.js → info-A6RAGUB7-R8j64K2s.js} +1 -1
  150. package/dist/client/assets/{infoDiagram-27XIBGKW-Ci9YhEz1.js → infoDiagram-27XIBGKW-DFqL9n-v.js} +2 -2
  151. package/dist/client/assets/{input-DX_wpYEr.js → input-Df_UyHLk.js} +2 -2
  152. package/dist/client/assets/{input-group-B7App4HX.js → input-group-CpRPTpIU.js} +2 -2
  153. package/dist/client/assets/{ishikawaDiagram-5VMMS53U-DrTMtdZr.js → ishikawaDiagram-5VMMS53U-C-786VMl.js} +2 -2
  154. package/dist/client/assets/{journeyDiagram-3NMN7TZE-Cad85NEf.js → journeyDiagram-3NMN7TZE-lzAoDD4e.js} +2 -2
  155. package/dist/client/assets/{kanban-definition-UXKFOSKX-CyPoc7fr.js → kanban-definition-UXKFOSKX-CJDCWAxz.js} +2 -2
  156. package/dist/client/assets/{kbd-CBsCsK1C.js → kbd-BWmfbdyt.js} +2 -2
  157. package/dist/client/assets/{keybindings-DQLn36Qh.js → keybindings-Cwx4RZou.js} +2 -2
  158. package/dist/client/assets/{lazyRouteComponent-F8XJwdjp.js → lazyRouteComponent-AWcDof8d.js} +2 -2
  159. package/dist/client/assets/{line-D-vamv77.js → line-BV7EkscB.js} +2 -2
  160. package/dist/client/assets/{link-Dsk-mMeT.js → link-ymnjoepm.js} +2 -2
  161. package/dist/client/assets/{linkedPrompt-QuSBC7T4.js → linkedPrompt-D1v0zLjD.js} +2 -2
  162. package/dist/client/assets/{main-B3UqEpE9.css → main-Byysx0nX.css} +1 -1
  163. package/dist/client/assets/main-D8FWUaO_.js +26 -0
  164. package/dist/client/assets/{mediaReference-CyhWqXsL.js → mediaReference-DjHCSaNZ.js} +2 -2
  165. package/dist/client/assets/{mediaSource-DzNyV4QZ.js → mediaSource-DrVcMaQl.js} +2 -2
  166. package/dist/client/assets/{mermaid-parser.core-DPipy20D.js → mermaid-parser.core-dhHCExtt.js} +4 -4
  167. package/dist/client/assets/{mermaid.core-BhvlRFAw.js → mermaid.core-DixI3w-9.js} +5 -5
  168. package/dist/client/assets/{mindmap-definition-YA3MSWOX-BmaL4P3W.js → mindmap-definition-YA3MSWOX-BHehI_9I.js} +2 -2
  169. package/dist/client/assets/{number-field-CO0djGoZ.js → number-field-BHWzsgFF.js} +2 -2
  170. package/dist/client/assets/{observeResize-DnTxIA8M.js → observeResize-uogErzin.js} +2 -2
  171. package/dist/client/assets/{onboarding-Bk1fay_k.js → onboarding-BkSIwdaJ.js} +2 -2
  172. package/dist/client/assets/{openFileInPreview-BoDixD_F.js → openFileInPreview-3vlmqdKv.js} +2 -2
  173. package/dist/client/assets/{p4ProjectFile-Cvz5u0b7.js → p4ProjectFile-B9fwmcbM.js} +2 -2
  174. package/dist/client/assets/{packet-AYTQ26CC-Dv1A4BvT.js → packet-AYTQ26CC-DhFsyjVR.js} +1 -1
  175. package/dist/client/assets/{pair-Bvx1yb_1.js → pair-DJbA4cVs.js} +2 -2
  176. package/dist/client/assets/{pegDiagram-XKGWAZYB-BSldN3hU.js → pegDiagram-XKGWAZYB-DBKpIU8U.js} +2 -2
  177. package/dist/client/assets/{phoneViewer-CEU-YPRt.js → phoneViewer-CywOkDco.js} +2 -2
  178. package/dist/client/assets/{pie-WAS4IAKB-iLUxjnvf.js → pie-WAS4IAKB-cW3as8Lm.js} +1 -1
  179. package/dist/client/assets/{pieDiagram-E7YTZNPT-4ZtbrRQa.js → pieDiagram-E7YTZNPT-CuM-4V4_.js} +2 -2
  180. package/dist/client/assets/{pierre-icons-duX6avqL.js → pierre-icons-Bhwlc2rO.js} +22 -22
  181. package/dist/client/assets/{popover-BJ6nvlLO.js → popover-2GkuSL2i.js} +2 -2
  182. package/dist/client/assets/{preview-Cf8NQ1hB.js → preview-BnLuRquy.js} +2 -2
  183. package/dist/client/assets/{preview-iwQ6KbXA.js → preview-DWVmLubs.js} +2 -2
  184. package/dist/client/assets/{previewMiniPlayerStore-C-S6Z_7R.js → previewMiniPlayerStore-B2cko9-z.js} +2 -2
  185. package/dist/client/assets/{primary-BWLl-lP0.js → primary-CKEI970r.js} +2 -2
  186. package/dist/client/assets/primaryCloudLinkState-CwxbxrZn.js +2 -0
  187. package/dist/client/assets/projectFilesQueryState-45r9sIZp.js +2 -0
  188. package/dist/client/assets/{projectScriptEditor-BI4TQzLb.js → projectScriptEditor-CI1LZs9V.js} +2 -2
  189. package/dist/client/assets/{providerSkills-h-0NbrXw.js → providerSkills-OICI2srI.js} +2 -2
  190. package/dist/client/assets/{pullRequestDetail.logic-w9YCNM32.js → pullRequestDetail.logic-DT8Qo5OA.js} +3 -3
  191. package/dist/client/assets/{pullRequestIcons-BjW5TUsG.js → pullRequestIcons-BBzWaymE.js} +2 -2
  192. package/dist/client/assets/{pullRequestReviewStore-CfDcNEFp.js → pullRequestReviewStore-DKeU327h.js} +2 -2
  193. package/dist/client/assets/{pullRequests-PrPMEuwL.js → pullRequests-DLPX2CY-.js} +2 -2
  194. package/dist/client/assets/{quadrantDiagram-AXDQQJYC-BA_0gIwm.js → quadrantDiagram-AXDQQJYC-DSJ5VFnE.js} +2 -2
  195. package/dist/client/assets/queries-lVyDrFzk.js +2 -0
  196. package/dist/client/assets/{query-MZn8giyP.js → query-tgXMuDtS.js} +2 -2
  197. package/dist/client/assets/{radar-RG4KPBEZ-ClHSGc5G.js → radar-RG4KPBEZ-CfIGvIx_.js} +1 -1
  198. package/dist/client/assets/{radio-group-Ca6IMyWa.js → radio-group-CJu78gKo.js} +2 -2
  199. package/dist/client/assets/{railroad-74A4TZTK-CLfqlsOS.js → railroad-74A4TZTK-DB4Av5dd.js} +1 -1
  200. package/dist/client/assets/railroad-abnf-HS5TGJTU-Ce_EhWE2.js +1 -0
  201. package/dist/client/assets/railroad-ebnf-LZEXJU2U-BWrImE-J.js +1 -0
  202. package/dist/client/assets/railroad-peg-WCYAUIDC-BydBUlqT.js +1 -0
  203. package/dist/client/assets/{railroadDiagram-O6MQD6OU-C3O0sd3N.js → railroadDiagram-O6MQD6OU-cpv2Uyk5.js} +2 -2
  204. package/dist/client/assets/{renderScheduler-C_PxJDPT.js → renderScheduler-h5pQXGNH.js} +2 -2
  205. package/dist/client/assets/{requirementDiagram-BXWQKSXE-DTD2i006.js → requirementDiagram-BXWQKSXE-DYwMIoLP.js} +2 -2
  206. package/dist/client/assets/rightPanelStore-Csibei0O.js +2 -0
  207. package/dist/client/assets/{runtime-CvGlGrbH.js → runtime-DATbE5vH.js} +5 -5
  208. package/dist/client/assets/runtime-Dks8Wo5P.js +2 -0
  209. package/dist/client/assets/{runtimeModeConfig-CTQ97M7F.js → runtimeModeConfig-n1vq0Zzd.js} +2 -2
  210. package/dist/client/assets/{sankeyDiagram-P5KCCOFB-DN-FD0Rw.js → sankeyDiagram-P5KCCOFB-BqmXJBYG.js} +2 -2
  211. package/dist/client/assets/{scheduledTasksSettings.logic-V_IgyOeJ.js → scheduledTasksSettings.logic-Cg8SF9mr.js} +2 -2
  212. package/dist/client/assets/{scroll-area-BStafc_O.js → scroll-area-0-l4q4Pk.js} +2 -2
  213. package/dist/client/assets/{select-BIK-KVyd.js → select-Dhapqr3j.js} +2 -2
  214. package/dist/client/assets/{sequenceDiagram-WJ2MYXX4-BpTwzO_D.js → sequenceDiagram-WJ2MYXX4-h3AJox3t.js} +2 -2
  215. package/dist/client/assets/{server-h8-LTzsE.js → server-rxH1493J.js} +2 -2
  216. package/dist/client/assets/{session-BnZv-sUV.js → session-Bgs0dTwK.js} +2 -2
  217. package/dist/client/assets/session-logic-BuYRdtPc.js +26 -0
  218. package/dist/client/assets/{settings-CX5J7KOC.js → settings-CGf9Ad5Y.js} +2 -2
  219. package/dist/client/assets/{settings.appearance-CX8WldRu.js → settings.appearance-DV608fbL.js} +2 -2
  220. package/dist/client/assets/settings.archived-Cav4CAd_.js +2 -0
  221. package/dist/client/assets/{settings.computer-use-CYOpSx3u.js → settings.computer-use-C3SE4DHj.js} +2 -2
  222. package/dist/client/assets/settings.connections-C9Kh1b2k.js +2 -0
  223. package/dist/client/assets/{settings.data-controls-Dw1t2NUy.js → settings.data-controls-DjgZVIMy.js} +2 -2
  224. package/dist/client/assets/{settings.decisions-CjQBlU5H.js → settings.decisions-z3RVOG7-.js} +2 -2
  225. package/dist/client/assets/{settings.designs-CdUp5EKA.js → settings.designs-DgLVIZOE.js} +2 -2
  226. package/dist/client/assets/{settings.diagnostics-CChxKGXN.js → settings.diagnostics-CaXx9YEU.js} +2 -2
  227. package/dist/client/assets/{settings.general-fPNbGy-A.js → settings.general-BOpvFj1F.js} +2 -2
  228. package/dist/client/assets/{settings.integrations-lsI9Ds_Z.js → settings.integrations-MHjX-SLC.js} +2 -2
  229. package/dist/client/assets/{settings.keybindings-BYfmXPXW.js → settings.keybindings-D78CWKIy.js} +2 -2
  230. package/dist/client/assets/{settings.open-source-licenses-Cmww0egR.js → settings.open-source-licenses-BhpBR1nY.js} +2 -2
  231. package/dist/client/assets/{settings.plugins-DOL0xzP_.js → settings.plugins-d9-jrUr-.js} +3 -3
  232. package/dist/client/assets/{settings.projects-BmPcRKSU.js → settings.projects-BiDMtruF.js} +3 -3
  233. package/dist/client/assets/{settings.providers-BmXJRxVY.js → settings.providers-BarMZxaG.js} +3 -3
  234. package/dist/client/assets/{settings.scheduled-tasks-DIrqKW18.js → settings.scheduled-tasks-BA_O1-Fn.js} +2 -2
  235. package/dist/client/assets/{settings.snap-shot-cYlYvsZa.js → settings.snap-shot-Crh49RtQ.js} +2 -2
  236. package/dist/client/assets/{settings.source-control-DiCRUoZ-.js → settings.source-control-DIrrX9Dt.js} +2 -2
  237. package/dist/client/assets/{settings.storage-_Qk3Am6V.js → settings.storage-D6vDu4vG.js} +2 -2
  238. package/dist/client/assets/settingsLayout-BQsOdImg.js +3 -0
  239. package/dist/client/assets/{sidebar-CilourkR.js → sidebar-DTT0HQ9J.js} +2 -2
  240. package/dist/client/assets/{sidebarProjectGrouping-Bk_4pOCF.js → sidebarProjectGrouping-JqsedUb6.js} +2 -2
  241. package/dist/client/assets/{skeleton-DoQ8WJ33.js → skeleton-D-FcvmF0.js} +2 -2
  242. package/dist/client/assets/{sourceControl-CbwbzP2H.js → sourceControl-CrjTZJC-.js} +2 -2
  243. package/dist/client/assets/{sourceControlClients-Bqx0yIVC.js → sourceControlClients-DYQ3gMZ2.js} +2 -2
  244. package/dist/client/assets/{spinner-dBHTxMdw.js → spinner-AJeHmaWN.js} +2 -2
  245. package/dist/client/assets/{standalone-page-7u6OMfTi.js → standalone-page-Df29sgRU.js} +2 -2
  246. package/dist/client/assets/{stateDiagram-D77RDMKH-B5DXt7YQ.js → stateDiagram-D77RDMKH-C0KiABVq.js} +2 -2
  247. package/dist/client/assets/stateDiagram-v2-MP3YSRHH-DlcRyn96.js +2 -0
  248. package/dist/client/assets/{swimlanes-42K2YHIH-BwtHh4XF.js → swimlanes-42K2YHIH-BdAWIkuy.js} +2 -2
  249. package/dist/client/assets/swimlanesDiagram-VR7AAH4N-lbxQDJ07.js +9 -0
  250. package/dist/client/assets/{terminal-links-DaTgSxq7.js → terminal-links-BjKL3dH7.js} +2 -2
  251. package/dist/client/assets/{terminalSessions-BH4SsD0n.js → terminalSessions-dkFe-6qM.js} +2 -2
  252. package/dist/client/assets/{textarea-DyCJe8OO.js → textarea-CqADnND1.js} +2 -2
  253. package/dist/client/assets/themePalette-Co4xeJnW.js +5 -0
  254. package/dist/client/assets/{timeline-definition-24CTP7MA-DcZAbrWX.js → timeline-definition-24CTP7MA-CkYp2QT_.js} +2 -2
  255. package/dist/client/assets/toast-gFAddE-Q.js +2 -0
  256. package/dist/client/assets/{toggle-C4iGKTHY.js → toggle-BM8lnQ29.js} +2 -2
  257. package/dist/client/assets/{toggle-group-CM-lVPv_.js → toggle-group-DaqkIApY.js} +2 -2
  258. package/dist/client/assets/{tooltip-C85X81rS.js → tooltip-ngKqo-lA.js} +2 -2
  259. package/dist/client/assets/{treeView-Q6P3EWNA-Bi9LlHgf.js → treeView-Q6P3EWNA-YWYRI1IG.js} +1 -1
  260. package/dist/client/assets/{treemap-WGGIJYW6-Ddxv0kaw.js → treemap-WGGIJYW6-DOqHNCbg.js} +1 -1
  261. package/dist/client/assets/{uiStateStore-BQNw2Dqk.js → uiStateStore-Ddhpg65j.js} +3 -3
  262. package/dist/client/assets/{usage-D_p-kdF1.js → usage-B3PzCXST.js} +2 -2
  263. package/dist/client/assets/{usageAccess-BS7RH41F.js → usageAccess-AcIxVQqJ.js} +2 -2
  264. package/dist/client/assets/{usageFormat-neDCKBUu.js → usageFormat-BXW38hCK.js} +2 -2
  265. package/dist/client/assets/{usageShortcuts-BXE7khxl.js → usageShortcuts-Qkdifm3k.js} +2 -2
  266. package/dist/client/assets/{use-atom-command-BZ0heqC5.js → use-atom-command-BJxdfyHC.js} +2 -2
  267. package/dist/client/assets/{useAriaLabelledBy-0jbiz1G5.js → useAriaLabelledBy-C0a8QEEb.js} +2 -2
  268. package/dist/client/assets/{useHandleNewThread-xDPfeiE8.js → useHandleNewThread-BUYzfgdc.js} +2 -2
  269. package/dist/client/assets/{useLocation-CEeuom34.js → useLocation-BQDC59xg.js} +2 -2
  270. package/dist/client/assets/useNavigate-BziZQ-Vx.js +2 -0
  271. package/dist/client/assets/{useNavigateBack-B1hKrkap.js → useNavigateBack-BH5As9D1.js} +2 -2
  272. package/dist/client/assets/{useT3ConnectAuthPrompt-xAWzgrFw.js → useP4ConnectAuthPrompt-DHu7R38-.js} +2 -2
  273. package/dist/client/assets/{useParams-DPNRViD9.js → useParams-BMa26XZG.js} +2 -2
  274. package/dist/client/assets/{usePermissionStatus-DhHAmOgT.js → usePermissionStatus-CUViQRYY.js} +2 -2
  275. package/dist/client/assets/{usePullRequestActions-BxkTyNnd.js → usePullRequestActions-DGkavykA.js} +2 -2
  276. package/dist/client/assets/{useRegisterFieldControl-DHg4qk95.js → useRegisterFieldControl-CosvijuC.js} +2 -2
  277. package/dist/client/assets/{useScopedModelAvailability-6832Pqao.js → useScopedModelAvailability-DOJzIjns.js} +2 -2
  278. package/dist/client/assets/useSettings-B_WzhJqU.js +3 -0
  279. package/dist/client/assets/utils-BctiQ4Ue.js +37 -0
  280. package/dist/client/assets/{vcsRefInvalidation-C1-o4QR4.js → vcsRefInvalidation-cn2N4Xey.js} +2 -2
  281. package/dist/client/assets/{vennDiagram-4TSXK5OY-gRgKfcwz.js → vennDiagram-4TSXK5OY-DvpVodA1.js} +2 -2
  282. package/dist/client/assets/{wardley-WFR3VGLG-DcrHek4R.js → wardley-WFR3VGLG-CW8u1RAF.js} +1 -1
  283. package/dist/client/assets/{wardleyDiagram-VM6X3IG4-Dy8jwPMm.js → wardleyDiagram-VM6X3IG4-B34GmEPm.js} +2 -2
  284. package/dist/client/assets/{welcome-Bx0ykTSW.js → welcome-DEFnpzjQ.js} +2 -2
  285. package/dist/client/assets/{xychartDiagram-S5SC5T6Z-BE_oCBL1.js → xychartDiagram-S5SC5T6Z-Ds5Ioly5.js} +2 -2
  286. package/dist/client/index.html +9 -31
  287. package/dist/{renderer-5lNN05tA.mjs → renderer-ClrN4p2R.mjs} +2 -2
  288. package/dist/resource-monitor/darwin-arm64/{t3-resource-monitor → p4-resource-monitor} +0 -0
  289. package/dist/{runtime-BuR0otfT.mjs → runtime-BQydA64s.mjs} +117 -41
  290. package/package.json +1 -1
  291. package/dist/client/assets/AlertDialogRoot-CI-BT04n.js +0 -2
  292. package/dist/client/assets/ChatMarkdown-DvwRAy0e.js +0 -65
  293. package/dist/client/assets/Input-C7aWgRC_.js +0 -2
  294. package/dist/client/assets/PanelLayoutControls-Bp96ytbx.js +0 -216
  295. package/dist/client/assets/ThemeEditorPanel-ezln4yFM.js +0 -5
  296. package/dist/client/assets/_chat-COwukFSB.js +0 -45
  297. package/dist/client/assets/architecture-7GRP2DOG-5VIB8Eba.js +0 -1
  298. package/dist/client/assets/channel-B7HSUXfW.js +0 -2
  299. package/dist/client/assets/classDiagram-ZZMXUADV-9HCpqDrm.js +0 -2
  300. package/dist/client/assets/classDiagram-v2-VYDZK3BY-9HCpqDrm.js +0 -2
  301. package/dist/client/assets/entities-BNeCRVLN.js +0 -2
  302. package/dist/client/assets/eventmodeling-NTZA5JFV-7Qy1WUdw.js +0 -1
  303. package/dist/client/assets/flowDiagram-HODETNUW-WrRfiKZh.js +0 -1
  304. package/dist/client/assets/main-D398MK8V.js +0 -26
  305. package/dist/client/assets/primaryCloudLinkState-_2yJcM8W.js +0 -2
  306. package/dist/client/assets/projectFilesQueryState-Dnhdh9Fp.js +0 -2
  307. package/dist/client/assets/queries-WzVTFKPw.js +0 -2
  308. package/dist/client/assets/railroad-abnf-HS5TGJTU-D6sBNrTv.js +0 -1
  309. package/dist/client/assets/railroad-ebnf-LZEXJU2U-DQmVNLBf.js +0 -1
  310. package/dist/client/assets/railroad-peg-WCYAUIDC-BmxuO4Yw.js +0 -1
  311. package/dist/client/assets/rightPanelStore-UcehuwgS.js +0 -2
  312. package/dist/client/assets/runtime-DgUiDuq4.js +0 -2
  313. package/dist/client/assets/session-logic-Chq6Fhx9.js +0 -26
  314. package/dist/client/assets/settings.archived-BLphtU6e.js +0 -2
  315. package/dist/client/assets/settings.connections-CPZLelaw.js +0 -2
  316. package/dist/client/assets/settingsLayout-BxEP0uF3.js +0 -3
  317. package/dist/client/assets/stateDiagram-v2-MP3YSRHH-DKxchkZ_.js +0 -2
  318. package/dist/client/assets/swimlanesDiagram-VR7AAH4N-DcmT28cJ.js +0 -9
  319. package/dist/client/assets/themePalette-mGukKeaJ.js +0 -5
  320. package/dist/client/assets/toast-CylvOlB4.js +0 -2
  321. package/dist/client/assets/useNavigate-B5WzUZJ7.js +0 -2
  322. package/dist/client/assets/useSettings-CHo-Nv-3.js +0 -3
  323. package/dist/client/assets/utils-ChK8VEFC.js +0 -37
@@ -1,2 +1,2 @@
1
- import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{r as t}from"./Icon-l19w4AjM.js";import{$a as n,$i as r,Ca as i,Eo as a,Fa as o,Ia as s,Ln as c,NE as l,Na as u,Nn as d,Pn as f,Pp as p,Qa as m,Ra as h,Sa as g,To as _,Va as v,Wa as y,Xa as b,Ya as x,Za as S,br as ee,ea as te,fa as ne,ia as C,io as w,ja as re,lE as T,ma as E,na as D,no as O,pa as k,sa as A,sp as j,t as M,ta as ie,vo as N,wa as P,wo as ae,zn as F}from"./utils-ChK8VEFC.js";import{t as oe}from"./useRegisterFieldControl-DHg4qk95.js";import{t as se}from"./FormContext-B0PXExmu.js";import{a as ce}from"./CSPContext-Bn8q5RdR.js";var I=e(t());function le(){let[,e]=I.useState({});return I.useCallback(()=>{e({})},[])}var ue=I.createContext(void 0);function de(){let e=I.useContext(ue);if(e===void 0)throw Error(a(43));return e}var L={inputValue:()=>null,value:()=>null,...F},fe=new Map;function R(e,t){let n=JSON.stringify({locale:e,options:t}),r=fe.get(n);if(r)return r;let i=new Intl.NumberFormat(e,t);return fe.set(n,i),i}function z(e,t,n){return e==null?``:R(t,n).format(e)}function pe(e,t,n){return z(e,t,{...n,maximumFractionDigits:20})}var B=[`零`,`〇`,`一`,`二`,`三`,`四`,`五`,`六`,`七`,`八`,`九`],me={零:`0`,〇:`0`,一:`1`,二:`2`,三:`3`,四:`4`,五:`5`,六:`6`,七:`7`,八:`8`,九:`9`},he=[`٠`,`١`,`٢`,`٣`,`٤`,`٥`,`٦`,`٧`,`٨`,`٩`],V=[`۰`,`۱`,`۲`,`۳`,`۴`,`۵`,`۶`,`۷`,`۸`,`۹`],H=[`0`,`1`,`2`,`3`,`4`,`5`,`6`,`7`,`8`,`9`],ge=[`%`,`٪`,`%`,`﹪`],_e=[`‰`,`؉`],ve=[`−`,`-`,`‒`,`–`,`—`,`﹣`],U=[`+`,`﹢`],ye=RegExp(`[${he.join(``)}]`,`g`),W=RegExp(`[${V.join(``)}]`,`g`),be=RegExp(`[${H.join(``)}]`,`g`),xe=RegExp(`[${B.join(``)}]`,`g`),G=RegExp(`[${ge.join(``)}]`),K=RegExp(`[${_e.join(``)}]`),Se=/[٠١٢٣٤٥٦٧٨٩]/,Ce=/[۰۱۲۳۴۵۶۷۸۹]/,we=/[零〇一二三四五六七八九]/,Te=RegExp(`[${H.join(``)}]`),Ee=[`.`,`,`,`.`,`,`,`٫`,`٬`],De=/\p{Zs}/u,Oe=[`+`,...U],ke=[`-`,...ve],q=e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`),Ae=e=>e.replace(/[-\\\]^]/g,e=>`\\${e}`),je=e=>`[${e.map(Ae).join(``)}]`,Me=je([`-`].concat(ve)),Ne=je([`+`].concat(U)),Pe=new RegExp(Me,`gu`),J=new RegExp(Ne,`gu`),Y=new RegExp(Me),X=new RegExp(Ne);function Fe(e,t){let n=R(e,t).formatToParts(11111.1),r={};return n.forEach(e=>{r[e.type]=e.value}),R(e).formatToParts(.1).forEach(e=>{e.type===`decimal`&&(r[e.type]=e.value)}),r}function Z(e,t,n){if(e==null)return null;let r=String(e).replace(/\p{Cf}/gu,``).trim();r=r.replace(Pe,`-`).replace(J,`+`);let i=!1,a=r.match(/([+-])\s*$/);a&&(a[1]===`-`&&(i=!0),r=r.replace(/([+-])\s*$/,``));let o=r.match(/^\s*([+-])/);o&&(o[1]===`-`&&(i=!0),r=r.replace(/^\s*[+-]/,``));let s=t;s===void 0&&(Se.test(r)||Ce.test(r)?s=`ar`:we.test(r)&&(s=`zh`));let{group:c,decimal:l,currency:u}=Fe(s,n),d=R(s,n).formatToParts(1).filter(e=>e.type===`unit`).map(e=>q(e.value)),f=d.length?new RegExp(d.join(`|`),`g`):null,p=null;c&&(p=/\p{Zs}/u.test(c)?/\p{Zs}/gu:c===`'`||c===`’`?/['’]/g:new RegExp(q(c),`g`));let m=[{regex:c?p:null,replacement:``},{regex:l?new RegExp(q(l),`g`):null,replacement:`.`},{regex:/./g,replacement:`.`},{regex:/,/g,replacement:``},{regex:/٫/g,replacement:`.`},{regex:/٬/g,replacement:``},{regex:u?new RegExp(q(u),`g`):null,replacement:``},{regex:f,replacement:``},{regex:ye,replacement:e=>String(he.indexOf(e))},{regex:W,replacement:e=>String(V.indexOf(e))},{regex:be,replacement:e=>String(H.indexOf(e))},{regex:xe,replacement:e=>me[e]}].reduce((e,{regex:t,replacement:n})=>t?e.replace(t,n):e,r),h=m.lastIndexOf(`.`);if(h!==-1&&(m=`${m.slice(0,h).replace(/\./g,``)}.${m.slice(h+1).replace(/\./g,``)}`),/^[-+]?Infinity$/i.test(r)||/[∞]/.test(r))return null;let g=(i?`-`:``)+m,_=parseFloat(g),v=n?.style,y=v===`unit`&&n?.unit===`percent`,b=G.test(e)||v===`percent`;return K.test(e)?_/=1e3:!y&&b&&(_/=100),Number.isNaN(_)?null:_}var Ie=1e-10;function Le(e){let t=R(`en-US`).resolvedOptions(),n=e?.minimumFractionDigits??t.minimumFractionDigits??0;return{maximumFractionDigits:Math.max(e?.maximumFractionDigits??t.maximumFractionDigits??20,n),minimumFractionDigits:n}}function Re(e,t){if(!Number.isFinite(e))return e;let n=Math.min(Math.max(t,0),20);return Number(e.toFixed(n))}function Q(e,t){let{maximumFractionDigits:n}=Le(t);return Re(e,n)}function ze(e,t,n,r=`directional`){if(n===0)return e;let i=Math.abs(n),a=Math.sign(n),o=i*Ie*a,s=r===`nearest`?n:i,c=(e-t+o)/s,l;return l=r===`nearest`?Math.round(c):a>0?Math.floor(c):Math.ceil(c),t+l*(r===`nearest`?n:i)}function Be(e,{step:t,minWithDefault:n,maxWithDefault:r,minWithZeroDefault:i,format:a,snapOnStep:o,small:s,clamp:c}){if(e===null)return e;let l=c?ce(e,n,r):e;if(t!=null&&o){if(t===0)return Q(l,a);let e=i;return!s&&n!==-(2**53-1)&&(e=n),Q(ze(l,e,t,s?`nearest`:`directional`),a)}return Q(l,a)}var $=e(T()),Ve=I.forwardRef(function(e,t){let{id:n,min:a,max:l,smallStep:u=.1,step:f=1,largeStep:p=10,required:m=!1,disabled:h=!1,readOnly:g=!1,form:_,name:y,defaultValue:b,value:x,onValueChange:S,onValueCommitted:ee,allowWheelScrub:ne=!1,snapOnStep:T=!1,allowOutOfRange:E=!1,format:O,locale:k,render:j,className:M,inputRef:P,style:F,...oe}=e,{setDirty:se,validityData:ce,disabled:de,setFilled:fe,invalid:R,name:pe,state:B,validation:me,shouldValidateOnChange:he}=c(),V=de||h,H=pe??y,ve=f===`any`?1:f,[U,ye]=I.useState(!1),W=a??-(2**53-1),be=l??2**53-1,xe=a??0,G=O?.style,K=I.useRef(null),Se=ae(P,me.inputRef),Ce=d({id:n}),[we,Te]=v({controlled:x,default:b,name:`NumberField`,state:`value`}),q=we??null,Ae=D(q);o(()=>{fe(q!==null)},[fe,q]);let je=le(),Me=D(O),Ne=I.useRef(!1),Pe=s((e,t)=>{Ne.current=!1,ee?.(e,t)}),J=I.useRef(!0),Y=I.useRef(null),[X,Z]=I.useState(()=>x===void 0?z(q,k,O):He(q,k,O)),[Ie,Le]=I.useState(`numeric`),Re=s(()=>{let{decimal:e,group:t,currency:n,literal:r}=Fe(k,O),i=new Set;Ee.forEach(e=>i.add(e)),e&&i.add(e),t&&(i.add(t),De.test(t)&&i.add(` `));let a=G===`percent`||G===`unit`&&O?.unit===`percent`,o=G===`percent`||G===`unit`&&O?.unit===`permille`;return a&&ge.forEach(e=>i.add(e)),o&&_e.forEach(e=>i.add(e)),G===`currency`&&n&&i.add(n),r&&(Array.from(r).forEach(e=>i.add(e)),De.test(r)&&i.add(` `)),Oe.forEach(e=>i.add(e)),W<0&&ke.forEach(e=>i.add(e)),i}),Q=s(e=>e?.altKey?u:e?.shiftKey?p:ve),ze=s((e,t)=>{let n=t.event,r=t.direction,i=t.reason,a=!E||i!==`input-change`&&i!==`input-blur`&&i!==`input-paste`&&i!==`input-clear`&&i!==`none`,o=Be(e,{step:r?Q(n)*r:void 0,format:Me.current,minWithDefault:W,maxWithDefault:be,minWithZeroDefault:xe,snapOnStep:T,small:n?.altKey??!1,clamp:a}),s=t.reason===`input-change`||t.reason===`input-clear`||t.reason===`input-blur`||t.reason===`input-paste`||t.reason===`none`,c=o!==q||s&&(e!==q||J.current===!1);if(c){if(Y.current=o,S?.(o,t),t.isCanceled)return c;Te(o),se(o!==ce.initialValue),Ne.current=!0}return J.current&&Z(z(o,k,O)),je(),c}),Ve=s((e,{direction:t,currentValue:n,event:r,reason:o})=>{let s=n??Ae.current,c=typeof s==`number`?s+e*t:Math.max(0,a??0);return ze(c,i(o,r,void 0,{direction:t}))});o(function(){if(!J.current)return;let e=x===void 0?z(q,k,O):He(q,k,O);e!==X&&Z(e)}),o(function(){if(!re)return;let e=`text`;W>=0&&(e=`decimal`),Le(e)},[W,G]),I.useEffect(function(){let e=K.current;if(V||g||!ne||!e)return;function t(e){if(e.ctrlKey||A(ie(K.current))!==K.current)return;e.preventDefault(),J.current=!0;let t=Q(e)??1;Ve(t,{direction:e.deltaY>0?-1:1,event:e,reason:`wheel`})}return C(e,`wheel`,t)},[ne,Ve,V,g,Q]);let Ue=I.useMemo(()=>({...B,disabled:V,readOnly:g,required:m,value:q,inputValue:X,scrubbing:U}),[B,V,g,m,q,X,U]),We=I.useMemo(()=>({inputRef:K,inputValue:X,value:q,minWithDefault:W,maxWithDefault:be,disabled:V,readOnly:g,id:Ce,setValue:ze,incrementValue:Ve,getStepAmount:Q,allowInputSyncRef:J,formatOptionsRef:Me,valueRef:Ae,lastChangedValueRef:Y,hasPendingCommitRef:Ne,name:H,required:m,invalid:R,inputMode:Ie,getAllowedNonNumericKeys:Re,min:a,max:l,setInputValue:Z,locale:k,isScrubbing:U,setIsScrubbing:ye,state:Ue,onValueCommitted:Pe}),[K,X,q,W,be,V,g,Ce,ze,Ve,Q,Me,Ae,H,m,R,Ie,Re,a,l,Z,k,U,Ue,Pe]),Ge=N(`div`,e,{ref:t,state:Ue,props:oe,stateAttributesMapping:L});return(0,$.jsxs)(ue.Provider,{value:We,children:[Ge,(0,$.jsx)(`input`,{...me.getInputValidationProps({onFocus(){K.current?.focus()},onChange(e){if(e.nativeEvent.defaultPrevented||V||g){e.preventBaseUIHandler?.();return}let t=e.currentTarget.valueAsNumber,n=Number.isNaN(t)?null:t,r=i(w,e.nativeEvent);se(n!==ce.initialValue),ze(n,r),he()&&me.commit(n)}}),ref:Se,type:`number`,form:_,name:H,value:q??``,min:a,max:l,step:f,disabled:V,required:m,"aria-hidden":!0,tabIndex:-1,style:H?te:r,suppressHydrationWarning:!0})]})});function He(e,t,n){return n?.maximumFractionDigits!=null||n?.minimumFractionDigits!=null?z(e,t,n):pe(e,t,n)}var Ue=I.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{state:o}=de();return N(`div`,e,{ref:t,state:o,props:[{role:`group`},a],stateAttributesMapping:L})}),We=0,Ge=class e extends k{static create(){return new e}start(e,t){this.clear(),this.currentId=setInterval(()=>{t()},e)}clear=()=>{this.currentId!==We&&(clearInterval(this.currentId),this.currentId=We)}};function Ke(){let e=_(Ge.create).current;return g(e.disposeEffect),e}var qe=60,Je=400,Ye=8,Xe=50,Ze=3;function Qe(e){return e===`touch`||e===`pen`}function $e(e){let{disabled:t,readOnly:n=!1,tick:r,onStop:i,tickDelay:a=qe,startDelay:o=Je,scrollDistance:c=Ye,elementRef:l}=e,u=E(),d=Ke(),f=E(),p=I.useRef(!1),m=I.useRef(0),g=I.useRef({x:0,y:0}),_=I.useRef(!1),v=I.useRef(!1),y=I.useRef(``),b=I.useRef(()=>{}),x=s(()=>{f.clear(),u.clear(),d.clear(),b.current(),m.current=0});function S(e){x();let t=l.current;if(!t)return;let n=h(t);function s(e){e.preventDefault()}if(b.current=C(n,`contextmenu`,s),C(n,`pointerup`,e=>{p.current=!1,x(),i?.(e)},{once:!0}),!r(e)){x();return}u.start(o,()=>{d.start(a,()=>{r(e)||x()})})}return I.useEffect(()=>()=>x(),[x]),{pointerHandlers:{onTouchStart(){_.current=!0},onTouchEnd(){_.current=!1},onPointerDown(e){let r=!e.button||e.button===0;e.defaultPrevented||!r||t||n||(y.current=e.pointerType,v.current=!1,p.current=!0,g.current={x:e.clientX,y:e.clientY},Qe(e.pointerType)?f.start(Xe,()=>{let t=m.current;m.current=0,p.current&&t<Ze?(S(e.nativeEvent),v.current=!0):(v.current=!1,x())}):(e.preventDefault(),S(e.nativeEvent)))},onPointerUp(e){Qe(e.pointerType)&&(p.current=!1)},onPointerMove(e){if(t||n||!Qe(e.pointerType)||!p.current)return;m.current!=null&&(m.current+=1);let{x:r,y:i}=g.current,a=r-e.clientX,o=i-e.clientY;a**2+o**2>c**2&&x()},onMouseEnter(e){e.defaultPrevented||t||n||!p.current||_.current||Qe(y.current)||S(e.nativeEvent)},onMouseLeave(){_.current||x()},onMouseUp(){_.current||x()}},shouldSkipClick:s(e=>e.defaultPrevented?!0:Qe(y.current)?v.current:e.detail!==0)}}function et(e){return e===`touch`||e===`pen`}function tt(e){let{allowInputSyncRef:t,disabled:n,formatOptionsRef:r,getStepAmount:a,id:o,incrementValue:s,inputRef:c,inputValue:l,isIncrement:u,locale:d,readOnly:f,setValue:p,valueRef:m,lastChangedValueRef:h,onValueCommitted:g}=e,_=u?x:y;function v(e){t.current=!0;let n=Z(l,d,r.current);n!==null&&(m.current=n,p(n,i(_,e,void 0,{direction:u?1:-1})))}let{pointerHandlers:b,shouldSkipClick:S}=$e({disabled:n||f,elementRef:c,tickDelay:60,startDelay:400,scrollDistance:8,tick(e){let t=a(e)??1;return s(t,{direction:u?1:-1,event:e,reason:_})},onStop(e){let t=h.current??m.current;g(t,P(_,e))}});return{disabled:n,"aria-readonly":f||void 0,"aria-label":u?`Increase`:`Decrease`,"aria-controls":o,tabIndex:-1,style:{WebkitUserSelect:`none`,userSelect:`none`},...b,onClick(e){let t=n||f;if(e.defaultPrevented||t||S(e))return;v(e.nativeEvent);let r=a(e)??1,i=m.current;s(r,{direction:u?1:-1,event:e.nativeEvent,reason:_});let o=h.current??m.current;o!==i&&g(o,P(_,e.nativeEvent))},onPointerDown(e){let t=!e.button||e.button===0;e.defaultPrevented||f||!t||n||(v(e.nativeEvent),et(e.pointerType)||c.current?.focus(),b.onPointerDown(e))}}}var nt=I.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,nativeButton:a=!0,style:o,...s}=e,{allowInputSyncRef:c,disabled:l,formatOptionsRef:d,getStepAmount:f,id:p,incrementValue:m,inputRef:h,inputValue:g,locale:_,maxWithDefault:v,readOnly:y,setValue:b,state:x,value:S,valueRef:ee,lastChangedValueRef:te,onValueCommitted:ne}=de(),C=i||l||S!=null&&S>=v,w=tt({isIncrement:!0,inputRef:h,inputValue:g,disabled:C,readOnly:y,id:p,setValue:b,getStepAmount:f,incrementValue:m,allowInputSyncRef:c,formatOptionsRef:d,valueRef:ee,locale:_,lastChangedValueRef:te,onValueCommitted:ne}),{getButtonProps:re,buttonRef:T}=u({disabled:C,native:a,focusableWhenDisabled:!0}),E=I.useMemo(()=>({...x,disabled:C}),[x,C]);return N(`button`,e,{ref:[t,T],state:E,props:[w,s,re],stateAttributesMapping:L})}),rt=I.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,nativeButton:a=!0,style:o,...s}=e,{allowInputSyncRef:c,disabled:l,formatOptionsRef:d,getStepAmount:f,id:p,incrementValue:m,inputRef:h,inputValue:g,minWithDefault:_,readOnly:v,setValue:y,state:b,value:x,valueRef:S,locale:ee,lastChangedValueRef:te,onValueCommitted:ne}=de(),C=i||l||x!=null&&x<=_,w=tt({isIncrement:!1,inputRef:h,inputValue:g,disabled:C,readOnly:v,id:p,setValue:y,getStepAmount:f,incrementValue:m,allowInputSyncRef:c,formatOptionsRef:d,valueRef:S,locale:ee,lastChangedValueRef:te,onValueCommitted:ne}),{getButtonProps:re,buttonRef:T}=u({disabled:C,native:a,focusableWhenDisabled:!0}),E=I.useMemo(()=>({...b,disabled:C}),[b,C]);return N(`button`,e,{ref:[t,T],state:E,props:[w,s,re],stateAttributesMapping:L})}),it={...F,...L},at=new Set([`Backspace`,`Delete`,`ArrowLeft`,`ArrowRight`,`Tab`,`Enter`,`Escape`]),ot=I.forwardRef(function(e,t){let{render:r,className:a,style:o,...s}=e,{allowInputSyncRef:l,disabled:u,formatOptionsRef:d,getAllowedNonNumericKeys:p,getStepAmount:h,id:g,incrementValue:_,inputMode:v,inputValue:y,max:x,min:te,name:C,readOnly:w,required:re,setValue:T,state:E,setInputValue:D,locale:k,inputRef:A,value:j,onValueCommitted:M,lastChangedValueRef:ie,hasPendingCommitRef:ae,valueRef:F}=de(),{clearErrors:ce}=se(),{validationMode:le,setTouched:ue,setFocused:L,invalid:fe,shouldValidateOnChange:R,validation:B}=c(),{labelId:me}=f(),he=I.useRef(!1),V=I.useRef(!1);return oe(A,g,j),ee(j,e=>{let t=R();if(ce(C),t&&B.commit(j),!(e===j||t)){if(V.current){V.current=!1;return}B.commit(j,!0)}}),N(`input`,e,{ref:[t,A],state:E,props:[{id:g,required:re,disabled:u,readOnly:w,inputMode:v,value:y,type:`text`,autoComplete:`off`,autoCorrect:`off`,spellCheck:`false`,"aria-roledescription":`Number field`,"aria-invalid":fe||void 0,"aria-labelledby":me,suppressHydrationWarning:!0,onFocus(e){if(e.defaultPrevented||w||u||(L(!0),he.current))return;he.current=!0;let t=e.currentTarget,n=t.value.length;t.setSelectionRange(n,n)},onBlur(e){if(e.defaultPrevented||w||u)return;ue(!0),L(!1);let t=!l.current,n=ae.current;if(l.current=!0,y.trim()===``){T(null,i(m,e.nativeEvent)),le===`onBlur`&&B.commit(null),M(null,P(m,e.nativeEvent));return}let r=d.current,a=Z(y,k,r);if(a===null)return;let o=r?.maximumFractionDigits!=null||r?.minimumFractionDigits!=null,s=r?.maximumFractionDigits,c=o&&typeof s==`number`?Number(a.toFixed(s)):a,f=P(b,e.nativeEvent),p=j!==c,h=t||p||n;le===`onBlur`&&B.commit(c),p&&(V.current=!0,T(c,i(b,e.nativeEvent))),h&&M(c,f);let g=z(c,k,r);(o||a!==j||y!==pe(a,k,r))&&y!==g&&D(g)},onChange(e){if(e.nativeEvent.defaultPrevented)return;l.current=!1;let t=e.currentTarget.value;if(t.trim()===``){D(t),T(null,i(m,e.nativeEvent));return}let n=p();if(!Array.from(t).every(e=>{let t=e>=`0`&&e<=`9`,r=Se.test(e),i=we.test(e),a=Ce.test(e),o=Te.test(e),s=Y.test(e);return t||r||i||a||o||s||n.has(e)}))return;let r=Z(t,k,d.current);D(t),r!==null&&T(r,i(S,e.nativeEvent))},onKeyDown(e){if(e.defaultPrevented||w||u)return;let t=e.nativeEvent;l.current=!0;let n=p(),r=n.has(e.key),{decimal:a,currency:o,percentSign:s}=Fe(k,d.current),c=e.currentTarget.selectionStart,f=e.currentTarget.selectionEnd,m=c===0&&f===y.length,g=e=>c!=null&&f!=null&&e>=c&&e<f;if(Y.test(e.key)&&Array.from(n).some(e=>Y.test(e||``))){let e=y.search(Pe),t=e!=null&&e!==-1&&g(e);r=!(Y.test(y)||X.test(y))||m||t}if(X.test(e.key)&&Array.from(n).some(e=>X.test(e||``))){let e=y.search(J),t=e!=null&&e!==-1&&g(e);r=!(Y.test(y)||X.test(y))||m||t}[a,o,s].forEach(t=>{if(e.key===t){let e=y.indexOf(t),n=g(e);r=!y.includes(t)||m||n}});let v=e.key>=`0`&&e.key<=`9`,b=Se.test(e.key),S=we.test(e.key),ee=Ce.test(e.key),C=Te.test(e.key),re=at.has(e.key);if(e.which===229||e.altKey||e.ctrlKey||e.metaKey||r||v||b||C||S||ee||re)return;let E=Z(y,k,d.current),D=h(e)??1;ne(e);let A=P(O,t);e.key===`ArrowUp`?(_(D,{direction:1,currentValue:E,event:t,reason:O}),M(ie.current??F.current,A)):e.key===`ArrowDown`?(_(D,{direction:-1,currentValue:E,event:t,reason:O}),M(ie.current??F.current,A)):e.key===`Home`&&te!=null?(T(te,i(O,t)),M(ie.current??F.current,A)):e.key===`End`&&x!=null&&(T(x,i(O,t)),M(ie.current??F.current,A))},onPaste(e){if(e.defaultPrevented||w||u)return;e.preventDefault();let t=(e.clipboardData||window.Clipboard).getData(`text/plain`),r=Z(t,k,d.current);r!==null&&(l.current=!1,T(r,i(n,e.nativeEvent)),D(t))}},B.getValidationProps(),s],stateAttributesMapping:it})}),st=l();function ct(e){let t=(0,st.c)(12),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({id:r,className:n,size:a,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o=a===void 0?`default`:a,s=I.useId(),c=r??s,l;t[5]===n?l=t[6]:(l=M(`flex w-full flex-col items-start gap-2`,n),t[5]=n,t[6]=l);let u;return t[7]!==c||t[8]!==i||t[9]!==o||t[10]!==l?(u=(0,$.jsx)(Ve,{className:l,"data-size":o,"data-slot":`number-field`,id:c,...i}),t[7]=c,t[8]=i,t[9]=o,t[10]=l,t[11]=u):u=t[11],u}function lt(e){let t=(0,st.c)(11),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,shape:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=i===void 0?`default`:i,o=a===`pill`&&`overflow-hidden rounded-xl before:rounded-xl`,s=a===`soft`&&`rounded-lg border-transparent bg-accent shadow-none before:hidden dark:bg-accent`,c;t[4]!==n||t[5]!==o||t[6]!==s?(c=M(`relative flex w-full justify-between rounded-lg border border-input bg-background not-dark:bg-clip-padding text-base text-foreground shadow-xs/5 ring-ring/24 transition-shadow before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-lg)-1px)] not-data-disabled:not-focus-within:not-aria-invalid:before:shadow-[0_1px_--theme(--color-black/4%)] focus-within:border-ring focus-within:ring-[3px] focus-within:ring-inset has-aria-invalid:border-destructive/36 has-autofill:bg-foreground/4 focus-within:has-aria-invalid:border-destructive/64 focus-within:has-aria-invalid:ring-destructive/48 data-disabled:pointer-events-none data-disabled:opacity-64 sm:text-sm dark:bg-input/32 dark:has-autofill:bg-foreground/8 dark:has-aria-invalid:ring-destructive/24 dark:not-data-disabled:not-focus-within:not-aria-invalid:before:shadow-[0_-1px_--theme(--color-white/6%)] [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0 [[data-disabled],:focus-within,[aria-invalid]]:shadow-none`,o,s,n),t[4]=n,t[5]=o,t[6]=s,t[7]=c):c=t[7];let l;return t[8]!==r||t[9]!==c?(l=(0,$.jsx)(Ue,{className:c,"data-slot":`number-field-group`,...r}),t[8]=r,t[9]=c,t[10]=l):l=t[10],l}function ut(e){let t=(0,st.c)(9),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=M(`relative flex shrink-0 cursor-pointer items-center justify-center rounded-s-[calc(var(--radius-lg)-1px)] in-data-[size=sm]:px-[calc(--spacing(2.5)-1px)] in-data-[size=compact]:w-8 in-data-[size=compact]:px-0 px-[calc(--spacing(3)-1px)] transition-colors pointer-coarse:after:absolute pointer-coarse:after:size-full pointer-coarse:after:min-h-11 pointer-coarse:after:min-w-11 hover:bg-accent`,n),t[3]=n,t[4]=i);let a;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,$.jsx)(j,{}),t[5]=a):a=t[5];let o;return t[6]!==r||t[7]!==i?(o=(0,$.jsx)(rt,{className:i,"data-slot":`number-field-decrement`,...r,children:a}),t[6]=r,t[7]=i,t[8]=o):o=t[8],o}function dt(e){let t=(0,st.c)(9),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=M(`relative flex shrink-0 cursor-pointer items-center justify-center rounded-e-[calc(var(--radius-lg)-1px)] in-data-[size=sm]:px-[calc(--spacing(2.5)-1px)] in-data-[size=compact]:w-8 in-data-[size=compact]:px-0 px-[calc(--spacing(3)-1px)] transition-colors pointer-coarse:after:absolute pointer-coarse:after:size-full pointer-coarse:after:min-h-11 pointer-coarse:after:min-w-11 hover:bg-accent`,n),t[3]=n,t[4]=i);let a;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,$.jsx)(p,{}),t[5]=a):a=t[5];let o;return t[6]!==r||t[7]!==i?(o=(0,$.jsx)(nt,{className:i,"data-slot":`number-field-increment`,...r,children:a}),t[6]=r,t[7]=i,t[8]=o):o=t[8],o}function ft(e){let t=(0,st.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=M(`h-8.5 in-data-[size=compact]:h-8 in-data-[size=compact]:px-0 in-data-[size=compact]:leading-8 sm:in-data-[size=compact]:h-8 sm:in-data-[size=compact]:leading-8 in-data-[size=lg]:h-9.5 in-data-[size=sm]:h-7.5 w-full min-w-0 grow bg-transparent in-data-[size=sm]:px-[calc(--spacing(2.5)-1px)] px-[calc(--spacing(3)-1px)] text-center tabular-nums in-data-[size=lg]:leading-9.5 in-data-[size=sm]:leading-7.5 leading-8.5 outline-none [transition:background-color_5000000s_ease-in-out_0s] sm:h-7.5 sm:in-data-[size=lg]:h-8.5 sm:in-data-[size=sm]:h-6.5 sm:in-data-[size=lg]:leading-8.5 sm:in-data-[size=sm]:leading-8.5 sm:leading-7.5`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,$.jsx)(ot,{className:i,"data-slot":`number-field-input`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}export{ft as a,dt as i,ut as n,lt as r,ct as t};
2
- //# sourceMappingURL=number-field-CO0djGoZ.js.map
1
+ import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{r as t}from"./Icon-l19w4AjM.js";import{$a as n,$i as r,Ca as i,Eo as a,Fa as o,Ia as s,Ln as c,NE as l,Na as u,Nn as d,Pn as f,Pp as p,Qa as m,Ra as h,Sa as g,To as _,Va as v,Wa as y,Xa as b,Ya as x,Za as S,br as ee,ea as te,fa as ne,ia as C,io as w,ja as re,lE as T,ma as E,na as D,no as O,pa as k,sa as A,sp as j,t as M,ta as ie,vo as N,wa as P,wo as ae,zn as F}from"./utils-BctiQ4Ue.js";import{t as oe}from"./useRegisterFieldControl-CosvijuC.js";import{t as se}from"./FormContext-BWWAKTFF.js";import{a as ce}from"./CSPContext-BP4s0CJv.js";var I=e(t());function le(){let[,e]=I.useState({});return I.useCallback(()=>{e({})},[])}var ue=I.createContext(void 0);function de(){let e=I.useContext(ue);if(e===void 0)throw Error(a(43));return e}var L={inputValue:()=>null,value:()=>null,...F},fe=new Map;function R(e,t){let n=JSON.stringify({locale:e,options:t}),r=fe.get(n);if(r)return r;let i=new Intl.NumberFormat(e,t);return fe.set(n,i),i}function z(e,t,n){return e==null?``:R(t,n).format(e)}function pe(e,t,n){return z(e,t,{...n,maximumFractionDigits:20})}var B=[`零`,`〇`,`一`,`二`,`三`,`四`,`五`,`六`,`七`,`八`,`九`],me={零:`0`,〇:`0`,一:`1`,二:`2`,三:`3`,四:`4`,五:`5`,六:`6`,七:`7`,八:`8`,九:`9`},he=[`٠`,`١`,`٢`,`٣`,`٤`,`٥`,`٦`,`٧`,`٨`,`٩`],V=[`۰`,`۱`,`۲`,`۳`,`۴`,`۵`,`۶`,`۷`,`۸`,`۹`],H=[`0`,`1`,`2`,`3`,`4`,`5`,`6`,`7`,`8`,`9`],ge=[`%`,`٪`,`%`,`﹪`],_e=[`‰`,`؉`],ve=[`−`,`-`,`‒`,`–`,`—`,`﹣`],U=[`+`,`﹢`],ye=RegExp(`[${he.join(``)}]`,`g`),W=RegExp(`[${V.join(``)}]`,`g`),be=RegExp(`[${H.join(``)}]`,`g`),xe=RegExp(`[${B.join(``)}]`,`g`),G=RegExp(`[${ge.join(``)}]`),K=RegExp(`[${_e.join(``)}]`),Se=/[٠١٢٣٤٥٦٧٨٩]/,Ce=/[۰۱۲۳۴۵۶۷۸۹]/,we=/[零〇一二三四五六七八九]/,Te=RegExp(`[${H.join(``)}]`),Ee=[`.`,`,`,`.`,`,`,`٫`,`٬`],De=/\p{Zs}/u,Oe=[`+`,...U],ke=[`-`,...ve],q=e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`),Ae=e=>e.replace(/[-\\\]^]/g,e=>`\\${e}`),je=e=>`[${e.map(Ae).join(``)}]`,Me=je([`-`].concat(ve)),Ne=je([`+`].concat(U)),Pe=new RegExp(Me,`gu`),J=new RegExp(Ne,`gu`),Y=new RegExp(Me),X=new RegExp(Ne);function Fe(e,t){let n=R(e,t).formatToParts(11111.1),r={};return n.forEach(e=>{r[e.type]=e.value}),R(e).formatToParts(.1).forEach(e=>{e.type===`decimal`&&(r[e.type]=e.value)}),r}function Z(e,t,n){if(e==null)return null;let r=String(e).replace(/\p{Cf}/gu,``).trim();r=r.replace(Pe,`-`).replace(J,`+`);let i=!1,a=r.match(/([+-])\s*$/);a&&(a[1]===`-`&&(i=!0),r=r.replace(/([+-])\s*$/,``));let o=r.match(/^\s*([+-])/);o&&(o[1]===`-`&&(i=!0),r=r.replace(/^\s*[+-]/,``));let s=t;s===void 0&&(Se.test(r)||Ce.test(r)?s=`ar`:we.test(r)&&(s=`zh`));let{group:c,decimal:l,currency:u}=Fe(s,n),d=R(s,n).formatToParts(1).filter(e=>e.type===`unit`).map(e=>q(e.value)),f=d.length?new RegExp(d.join(`|`),`g`):null,p=null;c&&(p=/\p{Zs}/u.test(c)?/\p{Zs}/gu:c===`'`||c===`’`?/['’]/g:new RegExp(q(c),`g`));let m=[{regex:c?p:null,replacement:``},{regex:l?new RegExp(q(l),`g`):null,replacement:`.`},{regex:/./g,replacement:`.`},{regex:/,/g,replacement:``},{regex:/٫/g,replacement:`.`},{regex:/٬/g,replacement:``},{regex:u?new RegExp(q(u),`g`):null,replacement:``},{regex:f,replacement:``},{regex:ye,replacement:e=>String(he.indexOf(e))},{regex:W,replacement:e=>String(V.indexOf(e))},{regex:be,replacement:e=>String(H.indexOf(e))},{regex:xe,replacement:e=>me[e]}].reduce((e,{regex:t,replacement:n})=>t?e.replace(t,n):e,r),h=m.lastIndexOf(`.`);if(h!==-1&&(m=`${m.slice(0,h).replace(/\./g,``)}.${m.slice(h+1).replace(/\./g,``)}`),/^[-+]?Infinity$/i.test(r)||/[∞]/.test(r))return null;let g=(i?`-`:``)+m,_=parseFloat(g),v=n?.style,y=v===`unit`&&n?.unit===`percent`,b=G.test(e)||v===`percent`;return K.test(e)?_/=1e3:!y&&b&&(_/=100),Number.isNaN(_)?null:_}var Ie=1e-10;function Le(e){let t=R(`en-US`).resolvedOptions(),n=e?.minimumFractionDigits??t.minimumFractionDigits??0;return{maximumFractionDigits:Math.max(e?.maximumFractionDigits??t.maximumFractionDigits??20,n),minimumFractionDigits:n}}function Re(e,t){if(!Number.isFinite(e))return e;let n=Math.min(Math.max(t,0),20);return Number(e.toFixed(n))}function Q(e,t){let{maximumFractionDigits:n}=Le(t);return Re(e,n)}function ze(e,t,n,r=`directional`){if(n===0)return e;let i=Math.abs(n),a=Math.sign(n),o=i*Ie*a,s=r===`nearest`?n:i,c=(e-t+o)/s,l;return l=r===`nearest`?Math.round(c):a>0?Math.floor(c):Math.ceil(c),t+l*(r===`nearest`?n:i)}function Be(e,{step:t,minWithDefault:n,maxWithDefault:r,minWithZeroDefault:i,format:a,snapOnStep:o,small:s,clamp:c}){if(e===null)return e;let l=c?ce(e,n,r):e;if(t!=null&&o){if(t===0)return Q(l,a);let e=i;return!s&&n!==-(2**53-1)&&(e=n),Q(ze(l,e,t,s?`nearest`:`directional`),a)}return Q(l,a)}var $=e(T()),Ve=I.forwardRef(function(e,t){let{id:n,min:a,max:l,smallStep:u=.1,step:f=1,largeStep:p=10,required:m=!1,disabled:h=!1,readOnly:g=!1,form:_,name:y,defaultValue:b,value:x,onValueChange:S,onValueCommitted:ee,allowWheelScrub:ne=!1,snapOnStep:T=!1,allowOutOfRange:E=!1,format:O,locale:k,render:j,className:M,inputRef:P,style:F,...oe}=e,{setDirty:se,validityData:ce,disabled:de,setFilled:fe,invalid:R,name:pe,state:B,validation:me,shouldValidateOnChange:he}=c(),V=de||h,H=pe??y,ve=f===`any`?1:f,[U,ye]=I.useState(!1),W=a??-(2**53-1),be=l??2**53-1,xe=a??0,G=O?.style,K=I.useRef(null),Se=ae(P,me.inputRef),Ce=d({id:n}),[we,Te]=v({controlled:x,default:b,name:`NumberField`,state:`value`}),q=we??null,Ae=D(q);o(()=>{fe(q!==null)},[fe,q]);let je=le(),Me=D(O),Ne=I.useRef(!1),Pe=s((e,t)=>{Ne.current=!1,ee?.(e,t)}),J=I.useRef(!0),Y=I.useRef(null),[X,Z]=I.useState(()=>x===void 0?z(q,k,O):He(q,k,O)),[Ie,Le]=I.useState(`numeric`),Re=s(()=>{let{decimal:e,group:t,currency:n,literal:r}=Fe(k,O),i=new Set;Ee.forEach(e=>i.add(e)),e&&i.add(e),t&&(i.add(t),De.test(t)&&i.add(` `));let a=G===`percent`||G===`unit`&&O?.unit===`percent`,o=G===`percent`||G===`unit`&&O?.unit===`permille`;return a&&ge.forEach(e=>i.add(e)),o&&_e.forEach(e=>i.add(e)),G===`currency`&&n&&i.add(n),r&&(Array.from(r).forEach(e=>i.add(e)),De.test(r)&&i.add(` `)),Oe.forEach(e=>i.add(e)),W<0&&ke.forEach(e=>i.add(e)),i}),Q=s(e=>e?.altKey?u:e?.shiftKey?p:ve),ze=s((e,t)=>{let n=t.event,r=t.direction,i=t.reason,a=!E||i!==`input-change`&&i!==`input-blur`&&i!==`input-paste`&&i!==`input-clear`&&i!==`none`,o=Be(e,{step:r?Q(n)*r:void 0,format:Me.current,minWithDefault:W,maxWithDefault:be,minWithZeroDefault:xe,snapOnStep:T,small:n?.altKey??!1,clamp:a}),s=t.reason===`input-change`||t.reason===`input-clear`||t.reason===`input-blur`||t.reason===`input-paste`||t.reason===`none`,c=o!==q||s&&(e!==q||J.current===!1);if(c){if(Y.current=o,S?.(o,t),t.isCanceled)return c;Te(o),se(o!==ce.initialValue),Ne.current=!0}return J.current&&Z(z(o,k,O)),je(),c}),Ve=s((e,{direction:t,currentValue:n,event:r,reason:o})=>{let s=n??Ae.current,c=typeof s==`number`?s+e*t:Math.max(0,a??0);return ze(c,i(o,r,void 0,{direction:t}))});o(function(){if(!J.current)return;let e=x===void 0?z(q,k,O):He(q,k,O);e!==X&&Z(e)}),o(function(){if(!re)return;let e=`text`;W>=0&&(e=`decimal`),Le(e)},[W,G]),I.useEffect(function(){let e=K.current;if(V||g||!ne||!e)return;function t(e){if(e.ctrlKey||A(ie(K.current))!==K.current)return;e.preventDefault(),J.current=!0;let t=Q(e)??1;Ve(t,{direction:e.deltaY>0?-1:1,event:e,reason:`wheel`})}return C(e,`wheel`,t)},[ne,Ve,V,g,Q]);let Ue=I.useMemo(()=>({...B,disabled:V,readOnly:g,required:m,value:q,inputValue:X,scrubbing:U}),[B,V,g,m,q,X,U]),We=I.useMemo(()=>({inputRef:K,inputValue:X,value:q,minWithDefault:W,maxWithDefault:be,disabled:V,readOnly:g,id:Ce,setValue:ze,incrementValue:Ve,getStepAmount:Q,allowInputSyncRef:J,formatOptionsRef:Me,valueRef:Ae,lastChangedValueRef:Y,hasPendingCommitRef:Ne,name:H,required:m,invalid:R,inputMode:Ie,getAllowedNonNumericKeys:Re,min:a,max:l,setInputValue:Z,locale:k,isScrubbing:U,setIsScrubbing:ye,state:Ue,onValueCommitted:Pe}),[K,X,q,W,be,V,g,Ce,ze,Ve,Q,Me,Ae,H,m,R,Ie,Re,a,l,Z,k,U,Ue,Pe]),Ge=N(`div`,e,{ref:t,state:Ue,props:oe,stateAttributesMapping:L});return(0,$.jsxs)(ue.Provider,{value:We,children:[Ge,(0,$.jsx)(`input`,{...me.getInputValidationProps({onFocus(){K.current?.focus()},onChange(e){if(e.nativeEvent.defaultPrevented||V||g){e.preventBaseUIHandler?.();return}let t=e.currentTarget.valueAsNumber,n=Number.isNaN(t)?null:t,r=i(w,e.nativeEvent);se(n!==ce.initialValue),ze(n,r),he()&&me.commit(n)}}),ref:Se,type:`number`,form:_,name:H,value:q??``,min:a,max:l,step:f,disabled:V,required:m,"aria-hidden":!0,tabIndex:-1,style:H?te:r,suppressHydrationWarning:!0})]})});function He(e,t,n){return n?.maximumFractionDigits!=null||n?.minimumFractionDigits!=null?z(e,t,n):pe(e,t,n)}var Ue=I.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{state:o}=de();return N(`div`,e,{ref:t,state:o,props:[{role:`group`},a],stateAttributesMapping:L})}),We=0,Ge=class e extends k{static create(){return new e}start(e,t){this.clear(),this.currentId=setInterval(()=>{t()},e)}clear=()=>{this.currentId!==We&&(clearInterval(this.currentId),this.currentId=We)}};function Ke(){let e=_(Ge.create).current;return g(e.disposeEffect),e}var qe=60,Je=400,Ye=8,Xe=50,Ze=3;function Qe(e){return e===`touch`||e===`pen`}function $e(e){let{disabled:t,readOnly:n=!1,tick:r,onStop:i,tickDelay:a=qe,startDelay:o=Je,scrollDistance:c=Ye,elementRef:l}=e,u=E(),d=Ke(),f=E(),p=I.useRef(!1),m=I.useRef(0),g=I.useRef({x:0,y:0}),_=I.useRef(!1),v=I.useRef(!1),y=I.useRef(``),b=I.useRef(()=>{}),x=s(()=>{f.clear(),u.clear(),d.clear(),b.current(),m.current=0});function S(e){x();let t=l.current;if(!t)return;let n=h(t);function s(e){e.preventDefault()}if(b.current=C(n,`contextmenu`,s),C(n,`pointerup`,e=>{p.current=!1,x(),i?.(e)},{once:!0}),!r(e)){x();return}u.start(o,()=>{d.start(a,()=>{r(e)||x()})})}return I.useEffect(()=>()=>x(),[x]),{pointerHandlers:{onTouchStart(){_.current=!0},onTouchEnd(){_.current=!1},onPointerDown(e){let r=!e.button||e.button===0;e.defaultPrevented||!r||t||n||(y.current=e.pointerType,v.current=!1,p.current=!0,g.current={x:e.clientX,y:e.clientY},Qe(e.pointerType)?f.start(Xe,()=>{let t=m.current;m.current=0,p.current&&t<Ze?(S(e.nativeEvent),v.current=!0):(v.current=!1,x())}):(e.preventDefault(),S(e.nativeEvent)))},onPointerUp(e){Qe(e.pointerType)&&(p.current=!1)},onPointerMove(e){if(t||n||!Qe(e.pointerType)||!p.current)return;m.current!=null&&(m.current+=1);let{x:r,y:i}=g.current,a=r-e.clientX,o=i-e.clientY;a**2+o**2>c**2&&x()},onMouseEnter(e){e.defaultPrevented||t||n||!p.current||_.current||Qe(y.current)||S(e.nativeEvent)},onMouseLeave(){_.current||x()},onMouseUp(){_.current||x()}},shouldSkipClick:s(e=>e.defaultPrevented?!0:Qe(y.current)?v.current:e.detail!==0)}}function et(e){return e===`touch`||e===`pen`}function tt(e){let{allowInputSyncRef:t,disabled:n,formatOptionsRef:r,getStepAmount:a,id:o,incrementValue:s,inputRef:c,inputValue:l,isIncrement:u,locale:d,readOnly:f,setValue:p,valueRef:m,lastChangedValueRef:h,onValueCommitted:g}=e,_=u?x:y;function v(e){t.current=!0;let n=Z(l,d,r.current);n!==null&&(m.current=n,p(n,i(_,e,void 0,{direction:u?1:-1})))}let{pointerHandlers:b,shouldSkipClick:S}=$e({disabled:n||f,elementRef:c,tickDelay:60,startDelay:400,scrollDistance:8,tick(e){let t=a(e)??1;return s(t,{direction:u?1:-1,event:e,reason:_})},onStop(e){let t=h.current??m.current;g(t,P(_,e))}});return{disabled:n,"aria-readonly":f||void 0,"aria-label":u?`Increase`:`Decrease`,"aria-controls":o,tabIndex:-1,style:{WebkitUserSelect:`none`,userSelect:`none`},...b,onClick(e){let t=n||f;if(e.defaultPrevented||t||S(e))return;v(e.nativeEvent);let r=a(e)??1,i=m.current;s(r,{direction:u?1:-1,event:e.nativeEvent,reason:_});let o=h.current??m.current;o!==i&&g(o,P(_,e.nativeEvent))},onPointerDown(e){let t=!e.button||e.button===0;e.defaultPrevented||f||!t||n||(v(e.nativeEvent),et(e.pointerType)||c.current?.focus(),b.onPointerDown(e))}}}var nt=I.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,nativeButton:a=!0,style:o,...s}=e,{allowInputSyncRef:c,disabled:l,formatOptionsRef:d,getStepAmount:f,id:p,incrementValue:m,inputRef:h,inputValue:g,locale:_,maxWithDefault:v,readOnly:y,setValue:b,state:x,value:S,valueRef:ee,lastChangedValueRef:te,onValueCommitted:ne}=de(),C=i||l||S!=null&&S>=v,w=tt({isIncrement:!0,inputRef:h,inputValue:g,disabled:C,readOnly:y,id:p,setValue:b,getStepAmount:f,incrementValue:m,allowInputSyncRef:c,formatOptionsRef:d,valueRef:ee,locale:_,lastChangedValueRef:te,onValueCommitted:ne}),{getButtonProps:re,buttonRef:T}=u({disabled:C,native:a,focusableWhenDisabled:!0}),E=I.useMemo(()=>({...x,disabled:C}),[x,C]);return N(`button`,e,{ref:[t,T],state:E,props:[w,s,re],stateAttributesMapping:L})}),rt=I.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,nativeButton:a=!0,style:o,...s}=e,{allowInputSyncRef:c,disabled:l,formatOptionsRef:d,getStepAmount:f,id:p,incrementValue:m,inputRef:h,inputValue:g,minWithDefault:_,readOnly:v,setValue:y,state:b,value:x,valueRef:S,locale:ee,lastChangedValueRef:te,onValueCommitted:ne}=de(),C=i||l||x!=null&&x<=_,w=tt({isIncrement:!1,inputRef:h,inputValue:g,disabled:C,readOnly:v,id:p,setValue:y,getStepAmount:f,incrementValue:m,allowInputSyncRef:c,formatOptionsRef:d,valueRef:S,locale:ee,lastChangedValueRef:te,onValueCommitted:ne}),{getButtonProps:re,buttonRef:T}=u({disabled:C,native:a,focusableWhenDisabled:!0}),E=I.useMemo(()=>({...b,disabled:C}),[b,C]);return N(`button`,e,{ref:[t,T],state:E,props:[w,s,re],stateAttributesMapping:L})}),it={...F,...L},at=new Set([`Backspace`,`Delete`,`ArrowLeft`,`ArrowRight`,`Tab`,`Enter`,`Escape`]),ot=I.forwardRef(function(e,t){let{render:r,className:a,style:o,...s}=e,{allowInputSyncRef:l,disabled:u,formatOptionsRef:d,getAllowedNonNumericKeys:p,getStepAmount:h,id:g,incrementValue:_,inputMode:v,inputValue:y,max:x,min:te,name:C,readOnly:w,required:re,setValue:T,state:E,setInputValue:D,locale:k,inputRef:A,value:j,onValueCommitted:M,lastChangedValueRef:ie,hasPendingCommitRef:ae,valueRef:F}=de(),{clearErrors:ce}=se(),{validationMode:le,setTouched:ue,setFocused:L,invalid:fe,shouldValidateOnChange:R,validation:B}=c(),{labelId:me}=f(),he=I.useRef(!1),V=I.useRef(!1);return oe(A,g,j),ee(j,e=>{let t=R();if(ce(C),t&&B.commit(j),!(e===j||t)){if(V.current){V.current=!1;return}B.commit(j,!0)}}),N(`input`,e,{ref:[t,A],state:E,props:[{id:g,required:re,disabled:u,readOnly:w,inputMode:v,value:y,type:`text`,autoComplete:`off`,autoCorrect:`off`,spellCheck:`false`,"aria-roledescription":`Number field`,"aria-invalid":fe||void 0,"aria-labelledby":me,suppressHydrationWarning:!0,onFocus(e){if(e.defaultPrevented||w||u||(L(!0),he.current))return;he.current=!0;let t=e.currentTarget,n=t.value.length;t.setSelectionRange(n,n)},onBlur(e){if(e.defaultPrevented||w||u)return;ue(!0),L(!1);let t=!l.current,n=ae.current;if(l.current=!0,y.trim()===``){T(null,i(m,e.nativeEvent)),le===`onBlur`&&B.commit(null),M(null,P(m,e.nativeEvent));return}let r=d.current,a=Z(y,k,r);if(a===null)return;let o=r?.maximumFractionDigits!=null||r?.minimumFractionDigits!=null,s=r?.maximumFractionDigits,c=o&&typeof s==`number`?Number(a.toFixed(s)):a,f=P(b,e.nativeEvent),p=j!==c,h=t||p||n;le===`onBlur`&&B.commit(c),p&&(V.current=!0,T(c,i(b,e.nativeEvent))),h&&M(c,f);let g=z(c,k,r);(o||a!==j||y!==pe(a,k,r))&&y!==g&&D(g)},onChange(e){if(e.nativeEvent.defaultPrevented)return;l.current=!1;let t=e.currentTarget.value;if(t.trim()===``){D(t),T(null,i(m,e.nativeEvent));return}let n=p();if(!Array.from(t).every(e=>{let t=e>=`0`&&e<=`9`,r=Se.test(e),i=we.test(e),a=Ce.test(e),o=Te.test(e),s=Y.test(e);return t||r||i||a||o||s||n.has(e)}))return;let r=Z(t,k,d.current);D(t),r!==null&&T(r,i(S,e.nativeEvent))},onKeyDown(e){if(e.defaultPrevented||w||u)return;let t=e.nativeEvent;l.current=!0;let n=p(),r=n.has(e.key),{decimal:a,currency:o,percentSign:s}=Fe(k,d.current),c=e.currentTarget.selectionStart,f=e.currentTarget.selectionEnd,m=c===0&&f===y.length,g=e=>c!=null&&f!=null&&e>=c&&e<f;if(Y.test(e.key)&&Array.from(n).some(e=>Y.test(e||``))){let e=y.search(Pe),t=e!=null&&e!==-1&&g(e);r=!(Y.test(y)||X.test(y))||m||t}if(X.test(e.key)&&Array.from(n).some(e=>X.test(e||``))){let e=y.search(J),t=e!=null&&e!==-1&&g(e);r=!(Y.test(y)||X.test(y))||m||t}[a,o,s].forEach(t=>{if(e.key===t){let e=y.indexOf(t),n=g(e);r=!y.includes(t)||m||n}});let v=e.key>=`0`&&e.key<=`9`,b=Se.test(e.key),S=we.test(e.key),ee=Ce.test(e.key),C=Te.test(e.key),re=at.has(e.key);if(e.which===229||e.altKey||e.ctrlKey||e.metaKey||r||v||b||C||S||ee||re)return;let E=Z(y,k,d.current),D=h(e)??1;ne(e);let A=P(O,t);e.key===`ArrowUp`?(_(D,{direction:1,currentValue:E,event:t,reason:O}),M(ie.current??F.current,A)):e.key===`ArrowDown`?(_(D,{direction:-1,currentValue:E,event:t,reason:O}),M(ie.current??F.current,A)):e.key===`Home`&&te!=null?(T(te,i(O,t)),M(ie.current??F.current,A)):e.key===`End`&&x!=null&&(T(x,i(O,t)),M(ie.current??F.current,A))},onPaste(e){if(e.defaultPrevented||w||u)return;e.preventDefault();let t=(e.clipboardData||window.Clipboard).getData(`text/plain`),r=Z(t,k,d.current);r!==null&&(l.current=!1,T(r,i(n,e.nativeEvent)),D(t))}},B.getValidationProps(),s],stateAttributesMapping:it})}),st=l();function ct(e){let t=(0,st.c)(12),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({id:r,className:n,size:a,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o=a===void 0?`default`:a,s=I.useId(),c=r??s,l;t[5]===n?l=t[6]:(l=M(`flex w-full flex-col items-start gap-2`,n),t[5]=n,t[6]=l);let u;return t[7]!==c||t[8]!==i||t[9]!==o||t[10]!==l?(u=(0,$.jsx)(Ve,{className:l,"data-size":o,"data-slot":`number-field`,id:c,...i}),t[7]=c,t[8]=i,t[9]=o,t[10]=l,t[11]=u):u=t[11],u}function lt(e){let t=(0,st.c)(11),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,shape:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=i===void 0?`default`:i,o=a===`pill`&&`overflow-hidden rounded-xl before:rounded-xl`,s=a===`soft`&&`rounded-lg border-transparent bg-accent shadow-none before:hidden dark:bg-accent`,c;t[4]!==n||t[5]!==o||t[6]!==s?(c=M(`relative flex w-full justify-between rounded-lg border border-input bg-background not-dark:bg-clip-padding text-base text-foreground shadow-xs/5 ring-ring/24 transition-shadow before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-lg)-1px)] not-data-disabled:not-focus-within:not-aria-invalid:before:shadow-[0_1px_--theme(--color-black/4%)] focus-within:border-ring focus-within:ring-[3px] focus-within:ring-inset has-aria-invalid:border-destructive/36 has-autofill:bg-foreground/4 focus-within:has-aria-invalid:border-destructive/64 focus-within:has-aria-invalid:ring-destructive/48 data-disabled:pointer-events-none data-disabled:opacity-64 sm:text-sm dark:bg-input/32 dark:has-autofill:bg-foreground/8 dark:has-aria-invalid:ring-destructive/24 dark:not-data-disabled:not-focus-within:not-aria-invalid:before:shadow-[0_-1px_--theme(--color-white/6%)] [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0 [[data-disabled],:focus-within,[aria-invalid]]:shadow-none`,o,s,n),t[4]=n,t[5]=o,t[6]=s,t[7]=c):c=t[7];let l;return t[8]!==r||t[9]!==c?(l=(0,$.jsx)(Ue,{className:c,"data-slot":`number-field-group`,...r}),t[8]=r,t[9]=c,t[10]=l):l=t[10],l}function ut(e){let t=(0,st.c)(9),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=M(`relative flex shrink-0 cursor-pointer items-center justify-center rounded-s-[calc(var(--radius-lg)-1px)] in-data-[size=sm]:px-[calc(--spacing(2.5)-1px)] in-data-[size=compact]:w-8 in-data-[size=compact]:px-0 px-[calc(--spacing(3)-1px)] transition-colors pointer-coarse:after:absolute pointer-coarse:after:size-full pointer-coarse:after:min-h-11 pointer-coarse:after:min-w-11 hover:bg-accent`,n),t[3]=n,t[4]=i);let a;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,$.jsx)(j,{}),t[5]=a):a=t[5];let o;return t[6]!==r||t[7]!==i?(o=(0,$.jsx)(rt,{className:i,"data-slot":`number-field-decrement`,...r,children:a}),t[6]=r,t[7]=i,t[8]=o):o=t[8],o}function dt(e){let t=(0,st.c)(9),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=M(`relative flex shrink-0 cursor-pointer items-center justify-center rounded-e-[calc(var(--radius-lg)-1px)] in-data-[size=sm]:px-[calc(--spacing(2.5)-1px)] in-data-[size=compact]:w-8 in-data-[size=compact]:px-0 px-[calc(--spacing(3)-1px)] transition-colors pointer-coarse:after:absolute pointer-coarse:after:size-full pointer-coarse:after:min-h-11 pointer-coarse:after:min-w-11 hover:bg-accent`,n),t[3]=n,t[4]=i);let a;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,$.jsx)(p,{}),t[5]=a):a=t[5];let o;return t[6]!==r||t[7]!==i?(o=(0,$.jsx)(nt,{className:i,"data-slot":`number-field-increment`,...r,children:a}),t[6]=r,t[7]=i,t[8]=o):o=t[8],o}function ft(e){let t=(0,st.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=M(`h-8.5 in-data-[size=compact]:h-8 in-data-[size=compact]:px-0 in-data-[size=compact]:leading-8 sm:in-data-[size=compact]:h-8 sm:in-data-[size=compact]:leading-8 in-data-[size=lg]:h-9.5 in-data-[size=sm]:h-7.5 w-full min-w-0 grow bg-transparent in-data-[size=sm]:px-[calc(--spacing(2.5)-1px)] px-[calc(--spacing(3)-1px)] text-center tabular-nums in-data-[size=lg]:leading-9.5 in-data-[size=sm]:leading-7.5 leading-8.5 outline-none [transition:background-color_5000000s_ease-in-out_0s] sm:h-7.5 sm:in-data-[size=lg]:h-8.5 sm:in-data-[size=sm]:h-6.5 sm:in-data-[size=lg]:leading-8.5 sm:in-data-[size=sm]:leading-8.5 sm:leading-7.5`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,$.jsx)(ot,{className:i,"data-slot":`number-field-input`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}export{ft as a,dt as i,ut as n,lt as r,ct as t};
2
+ //# sourceMappingURL=number-field-BHWzsgFF.js.map
@@ -1,2 +1,2 @@
1
- import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{va as t}from"./utils-ChK8VEFC.js";var n=e(t(),1),r=null,i=new Map;function a(e){let t=new Map;for(let n of e){let e=i.get(n.target);if(!e)continue;let r=e.subscriptions;if(e.waiting){let t=e.last?.contentRect;t?.width===n.contentRect.width&&t.height===n.contentRect.height&&(r=e.waiting),e.waiting=null}e.last=n;for(let e of r){let r=t.get(e);r?r.push(n):t.set(e,[n])}}t.size!==0&&(0,n.flushSync)(()=>{for(let[e,n]of t)if(e.active)try{e.callback(n)}catch(e){queueMicrotask(()=>{throw e})}})}function o(e,t){if(typeof ResizeObserver>`u`)return()=>{};let n=r??=new ResizeObserver(a),o={callback:t,active:!0},s=Array.isArray(e)?e:[e];for(let e of s){let t=i.get(e);if(!t){i.set(e,{subscriptions:new Set([o]),waiting:null,last:null}),n.observe(e);continue}t.subscriptions.add(o),t.last&&((t.waiting??=new Set).add(o),n.unobserve(e),n.observe(e))}return()=>{if(!o.active)return;o.active=!1;let e=s.filter(e=>{let t=i.get(e);return t?.subscriptions.delete(o)?(t.waiting?.delete(o),t.subscriptions.size===0&&i.delete(e)):!1});if(i.size>0)for(let t of e)n.unobserve(t);else r?.disconnect(),r=null}}export{o as t};
2
- //# sourceMappingURL=observeResize-DnTxIA8M.js.map
1
+ import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{va as t}from"./utils-BctiQ4Ue.js";var n=e(t(),1),r=null,i=new Map;function a(e){let t=new Map;for(let n of e){let e=i.get(n.target);if(!e)continue;let r=e.subscriptions;if(e.waiting){let t=e.last?.contentRect;t?.width===n.contentRect.width&&t.height===n.contentRect.height&&(r=e.waiting),e.waiting=null}e.last=n;for(let e of r){let r=t.get(e);r?r.push(n):t.set(e,[n])}}t.size!==0&&(0,n.flushSync)(()=>{for(let[e,n]of t)if(e.active)try{e.callback(n)}catch(e){queueMicrotask(()=>{throw e})}})}function o(e,t){if(typeof ResizeObserver>`u`)return()=>{};let n=r??=new ResizeObserver(a),o={callback:t,active:!0},s=Array.isArray(e)?e:[e];for(let e of s){let t=i.get(e);if(!t){i.set(e,{subscriptions:new Set([o]),waiting:null,last:null}),n.observe(e);continue}t.subscriptions.add(o),t.last&&((t.waiting??=new Set).add(o),n.unobserve(e),n.observe(e))}return()=>{if(!o.active)return;o.active=!1;let e=s.filter(e=>{let t=i.get(e);return t?.subscriptions.delete(o)?(t.waiting?.delete(o),t.subscriptions.size===0&&i.delete(e)):!1});if(i.size>0)for(let t of e)n.unobserve(t);else r?.disconnect(),r=null}}export{o as t};
2
+ //# sourceMappingURL=observeResize-uogErzin.js.map
@@ -1,2 +1,2 @@
1
- import{Ox as e}from"./utils-ChK8VEFC.js";import{I as t,k as n}from"./runtime-CvGlGrbH.js";import{t as r,wt as i}from"./runtime-DgUiDuq4.js";var a=n(),o=t(r,{label:`web:connection:connect-pairing`,scheduler:a,concurrency:{mode:`singleFlight`,key:e=>JSON.stringify(e)},execute:t=>i.pipe(e(e=>e.registerPairing(t)))}),s=t(r,{label:`web:connection:connect-ssh`,scheduler:a,concurrency:{mode:`serial`,key:e=>JSON.stringify(e.target)},execute:t=>i.pipe(e(e=>e.registerSsh(t)))});export{s as n,o as t};
2
- //# sourceMappingURL=onboarding-Bk1fay_k.js.map
1
+ import{Ox as e}from"./utils-BctiQ4Ue.js";import{I as t,k as n}from"./runtime-DATbE5vH.js";import{t as r,wt as i}from"./runtime-Dks8Wo5P.js";var a=n(),o=t(r,{label:`web:connection:connect-pairing`,scheduler:a,concurrency:{mode:`singleFlight`,key:e=>JSON.stringify(e)},execute:t=>i.pipe(e(e=>e.registerPairing(t)))}),s=t(r,{label:`web:connection:connect-ssh`,scheduler:a,concurrency:{mode:`serial`,key:e=>JSON.stringify(e.target)},execute:t=>i.pipe(e(e=>e.registerSsh(t)))});export{s as n,o as t};
2
+ //# sourceMappingURL=onboarding-BkSIwdaJ.js.map
@@ -1,2 +1,2 @@
1
- import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{r as t}from"./Icon-l19w4AjM.js";import{Bo as n,Io as r,NE as i,Ro as a,Vw as o,Xo as s,Yo as c,dw as l,fw as u,jo as d,ms as f,ys as p,zo as m}from"./utils-ChK8VEFC.js";import{L as h,W as g,z as _}from"./runtime-CvGlGrbH.js";import{s as v}from"./vcsRefInvalidation-C1-o4QR4.js";import{s as y}from"./session-BnZv-sUV.js";import{l as b,o as x}from"./rightPanelStore-UcehuwgS.js";import{t as S}from"./mediaReference-CyhWqXsL.js";import{a as C,c as w,l as T,s as E,t as D}from"./assets-B_A7RkiF.js";import{S as O,c as k,d as A,s as j,x as M}from"./browserHistoryStore-hEHIMltt.js";var N=i(),P=e(t(),1);function F(e,t){let n=(0,N.c)(7),r=(0,P.useContext)(s),i=typeof t==`string`?t:t?.label,a=typeof t==`string`?!0:t?.reportFailure??!0,o=typeof t==`string`?!0:t?.reportDefect??!0,c=typeof t==`string`?!1:t?.refresh??!1,l;return n[0]!==i||n[1]!==e||n[2]!==c||n[3]!==r||n[4]!==o||n[5]!==a?(l=t=>{let n=e(t);return h(r,n,{label:i??n.label?.[0]??`atom query`,reportFailure:a,reportDefect:o,refresh:c})},n[0]=i,n[1]=e,n[2]=c,n[3]=r,n[4]=o,n[5]=a,n[6]=l):l=n[6],l}function I(e,t){let n=(0,N.c)(10),r=v(e),i;n[0]!==t||n[1]!==r?(i=w(t,r),n[0]=t,n[1]=r,n[2]=i):i=n[2];let a=i,o=y(e),s;n[3]!==a||n[4]!==e||n[5]!==t?(s=a!==null||e===null||t===null?C:D.createUrl({environmentId:e,input:{resource:t}}),n[3]=a,n[4]=e,n[5]=t,n[6]=s):s=n[6];let l=c(s);if(a!==null)return a;let u=o._tag===`Some`?o.value.httpBaseUrl:null,d;return n[7]!==l||n[8]!==u?(d=E(l,u),n[7]=l,n[8]=u,n[9]=d):d=n[9],d}function L(e,t){let n=(0,N.c)(6),r=y(e),i=r._tag===`Some`?r.value.httpBaseUrl:null,a;n[0]===Symbol.for(`react.memo_cache_sentinel`)?(a={reportFailure:!1,refresh:!0},n[0]=a):a=n[0];let o=F(D.createUrl,a),s;return n[1]!==e||n[2]!==i||n[3]!==o||n[4]!==t?(s=async()=>{if(e===null||t===null||i===null)return null;let n=await o({environmentId:e,input:{resource:t}});if(n._tag===`Failure`)throw g(n);return T(i,n.value.relativeUrl)},n[1]=e,n[2]=i,n[3]=o,n[4]=t,n[5]=s):s=n[5],s}function R(e,t){let n=y(e),{canReadFiles:r}=v(e),i=(0,P.useMemo)(()=>r?t:t.filter(e=>e._tag!==`workspace-file`&&e._tag!==`media-file`&&e._tag!==`draft-workspace-file`),[r,t]),a=c(D.createUrls({environmentId:e,resources:i}));return(0,P.useMemo)(()=>{if(n._tag===`None`)return t.map(()=>null);let e=0;return t.map(t=>{if(!r&&(t._tag===`workspace-file`||t._tag===`media-file`||t._tag===`draft-workspace-file`))return null;let i=a[e++];return i&&p(i)?T(n.value.httpBaseUrl,i.value.relativeUrl):null})},[r,n,t,a])}var z=e=>/\.(?:html?|pdf)$/i.test(e.split(/[?#]/,1)[0]??``),B=class extends o(`BrowserPreviewUnavailableError`){},V=class extends o(`BrowserSettingsReadError`){get message(){return`Saved browser settings could not be loaded.`}};async function H(e){let t=await A().catch(e=>new V({cause:e}));if(t instanceof V)return f(u(t));let i=O(e.threadRef.environmentId),o=r(e.threadRef).activeTabId,s=()=>x(b.getState().byThreadKey,e.threadRef)?.id??null,c=s(),l=await e.openPreview({environmentId:e.threadRef.environmentId,input:{threadId:e.threadRef.threadId,url:e.url,viewport:k(t),profileId:e.profileId??j(t),...i===void 0?{}:{runtime:i}}});return _(l,t=>{if(a(e.threadRef,e.url),e.background){n(e.threadRef,t),o&&r(e.threadRef).activeTabId===t.tabId&&s()===c&&m(e.threadRef,o);return}d(e.threadRef,t),b.getState().openBrowser(e.threadRef,t.tabId)})}async function U(e){if(!M(e.threadRef.environmentId))return f(u(new B({message:`The integrated browser is unavailable in this runtime.`})));let t=S(e.filePath,e.workspaceRoot).relativePath!==void 0,n=await e.createAssetUrl({environmentId:e.threadRef.environmentId,input:{resource:{_tag:t?`workspace-file`:`media-file`,threadId:e.threadRef.threadId,path:e.filePath}}});if(n._tag===`Failure`)return f(n.cause);let r=T(e.httpBaseUrl,n.value.relativeUrl);return r===null?f(l(Error(`The environment returned an invalid asset URL.`))):H({threadRef:e.threadRef,url:r,openPreview:e.openPreview})}export{H as a,R as c,U as i,F as l,V as n,L as o,z as r,I as s,B as t};
2
- //# sourceMappingURL=openFileInPreview-BoDixD_F.js.map
1
+ import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{r as t}from"./Icon-l19w4AjM.js";import{Bo as n,Io as r,NE as i,Ro as a,Vw as o,Xo as s,Yo as c,dw as l,fw as u,jo as d,ms as f,ys as p,zo as m}from"./utils-BctiQ4Ue.js";import{L as h,W as g,z as _}from"./runtime-DATbE5vH.js";import{s as v}from"./vcsRefInvalidation-cn2N4Xey.js";import{s as y}from"./session-Bgs0dTwK.js";import{l as b,o as x}from"./rightPanelStore-Csibei0O.js";import{t as S}from"./mediaReference-DjHCSaNZ.js";import{a as C,c as w,l as T,s as E,t as D}from"./assets-DW8sK93I.js";import{S as O,c as k,d as A,s as j,x as M}from"./browserHistoryStore-DjDw15jq.js";var N=i(),P=e(t(),1);function F(e,t){let n=(0,N.c)(7),r=(0,P.useContext)(s),i=typeof t==`string`?t:t?.label,a=typeof t==`string`?!0:t?.reportFailure??!0,o=typeof t==`string`?!0:t?.reportDefect??!0,c=typeof t==`string`?!1:t?.refresh??!1,l;return n[0]!==i||n[1]!==e||n[2]!==c||n[3]!==r||n[4]!==o||n[5]!==a?(l=t=>{let n=e(t);return h(r,n,{label:i??n.label?.[0]??`atom query`,reportFailure:a,reportDefect:o,refresh:c})},n[0]=i,n[1]=e,n[2]=c,n[3]=r,n[4]=o,n[5]=a,n[6]=l):l=n[6],l}function I(e,t){let n=(0,N.c)(10),r=v(e),i;n[0]!==t||n[1]!==r?(i=w(t,r),n[0]=t,n[1]=r,n[2]=i):i=n[2];let a=i,o=y(e),s;n[3]!==a||n[4]!==e||n[5]!==t?(s=a!==null||e===null||t===null?C:D.createUrl({environmentId:e,input:{resource:t}}),n[3]=a,n[4]=e,n[5]=t,n[6]=s):s=n[6];let l=c(s);if(a!==null)return a;let u=o._tag===`Some`?o.value.httpBaseUrl:null,d;return n[7]!==l||n[8]!==u?(d=E(l,u),n[7]=l,n[8]=u,n[9]=d):d=n[9],d}function L(e,t){let n=(0,N.c)(6),r=y(e),i=r._tag===`Some`?r.value.httpBaseUrl:null,a;n[0]===Symbol.for(`react.memo_cache_sentinel`)?(a={reportFailure:!1,refresh:!0},n[0]=a):a=n[0];let o=F(D.createUrl,a),s;return n[1]!==e||n[2]!==i||n[3]!==o||n[4]!==t?(s=async()=>{if(e===null||t===null||i===null)return null;let n=await o({environmentId:e,input:{resource:t}});if(n._tag===`Failure`)throw g(n);return T(i,n.value.relativeUrl)},n[1]=e,n[2]=i,n[3]=o,n[4]=t,n[5]=s):s=n[5],s}function R(e,t){let n=y(e),{canReadFiles:r}=v(e),i=(0,P.useMemo)(()=>r?t:t.filter(e=>e._tag!==`workspace-file`&&e._tag!==`media-file`&&e._tag!==`draft-workspace-file`),[r,t]),a=c(D.createUrls({environmentId:e,resources:i}));return(0,P.useMemo)(()=>{if(n._tag===`None`)return t.map(()=>null);let e=0;return t.map(t=>{if(!r&&(t._tag===`workspace-file`||t._tag===`media-file`||t._tag===`draft-workspace-file`))return null;let i=a[e++];return i&&p(i)?T(n.value.httpBaseUrl,i.value.relativeUrl):null})},[r,n,t,a])}var z=e=>/\.(?:html?|pdf)$/i.test(e.split(/[?#]/,1)[0]??``),B=class extends o(`BrowserPreviewUnavailableError`){},V=class extends o(`BrowserSettingsReadError`){get message(){return`Saved browser settings could not be loaded.`}};async function H(e){let t=await A().catch(e=>new V({cause:e}));if(t instanceof V)return f(u(t));let i=O(e.threadRef.environmentId),o=r(e.threadRef).activeTabId,s=()=>x(b.getState().byThreadKey,e.threadRef)?.id??null,c=s(),l=await e.openPreview({environmentId:e.threadRef.environmentId,input:{threadId:e.threadRef.threadId,url:e.url,viewport:k(t),profileId:e.profileId??j(t),...i===void 0?{}:{runtime:i}}});return _(l,t=>{if(a(e.threadRef,e.url),e.background){n(e.threadRef,t),o&&r(e.threadRef).activeTabId===t.tabId&&s()===c&&m(e.threadRef,o);return}d(e.threadRef,t),b.getState().openBrowser(e.threadRef,t.tabId)})}async function U(e){if(!M(e.threadRef.environmentId))return f(u(new B({message:`The integrated browser is unavailable in this runtime.`})));let t=S(e.filePath,e.workspaceRoot).relativePath!==void 0,n=await e.createAssetUrl({environmentId:e.threadRef.environmentId,input:{resource:{_tag:t?`workspace-file`:`media-file`,threadId:e.threadRef.threadId,path:e.filePath}}});if(n._tag===`Failure`)return f(n.cause);let r=T(e.httpBaseUrl,n.value.relativeUrl);return r===null?f(l(Error(`The environment returned an invalid asset URL.`))):H({threadRef:e.threadRef,url:r,openPreview:e.openPreview})}export{H as a,R as c,U as i,F as l,V as n,L as o,z as r,I as s,B as t};
2
+ //# sourceMappingURL=openFileInPreview-3vlmqdKv.js.map
@@ -1,2 +1,2 @@
1
- import{Gs as e,Jg as t,Jy as n,cw as r,mh as i,qg as a,qs as o,rl as s,tl as c,wh as l}from"./utils-ChK8VEFC.js";import"./entities-BNeCRVLN.js";import{Sn as u}from"./runtime-DgUiDuq4.js";import{B as d,M as f}from"./useSettings-CHo-Nv-3.js";var p=`\0no-project`;function m(e){return{sidebarProjectGroupingMode:e.sidebarProjectGroupingMode,sidebarProjectGroupingOverrides:e.sidebarProjectGroupingOverrides}}function h(e){let t=new Set,n=[];for(let r of e){let e=r?.trim();e&&!t.has(e)&&(t.add(e),n.push(e))}return n}function g(e){let t=e.repositoryIdentity?.rootPath?.trim();if(!t)return null;let n=u(e.workspaceRoot),r=u(t);if(n.length===0||r.length===0)return null;if(n===r)return``;let i=`${r}${r.includes(`\\`)?`\\`:`/`}`;return n.startsWith(i)?n.slice(i.length).replaceAll(`\\`,`/`):null}function _(e,t){return`${e}:${u(t)}`}function v(e){return _(e.environmentId,e.workspaceRoot)}function y(e){return v(e)}function b(e){return v(e)}function x(e,t){return t.sidebarProjectGroupingOverrides?.[y(e)]??t.sidebarProjectGroupingMode}function S(e,n){let r=e.repositoryIdentity?t(e.repositoryIdentity):null;if(!r||r.includes(`\0`))return null;if(n===`repository`)return r;let i=g(e);return i===null||i.length===0?r:`${r}::${i}`}function C(t,n){if(n?.groupScratchProjects&&t.isScratch)return p;let r=n?.groupingMode??`repository`;return r===`separate`?v(t):S(t,r)??v(t)??o(e(t.environmentId,t.id))}function w(e,t,n){return C(e,{groupingMode:x(e,t),groupScratchProjects:n?.groupScratchProjects??!1})}function T(e){let t=h(e.members.map(e=>e.title)),n=h(e.members.map(e=>e.repositoryIdentity?a(e.repositoryIdentity):null)),r=h(e.members.map(e=>e.repositoryIdentity?.name)),i=t[0];return t.length===1&&i!==void 0&&!n.includes(i)&&!r.includes(i)?i:n.length===1?n[0]:r.length===1?r[0]:e.representative.title}function E(e){let t=Date.parse(e.updatedAt);if(Number.isFinite(t))return t;let n=Date.parse(e.createdAt);return Number.isFinite(n)?n:0}function D(e,t){let n=E(t)-E(e);return n>0||n===0&&t.id>e.id}function O(e,t){if(t.repositoryIdentity!==null)return t;let n=null;for(let t of e)t.repositoryIdentity!==null&&(n===null||D(n,t))&&(n=t);return n??t}function k(t){let n=new Map;for(let e of t.projects){let t=v(e),r=n.get(t);r?r.push(e):n.set(t,[e])}let r=new Map,i=new Map;for(let[e,a]of n){let n=a.reduce((e,t)=>D(e,t)?t:e),o=C(O(a,n),{groupingMode:x(n,t.settings),groupScratchProjects:t.groupScratchProjects??!1});r.set(e,o);let s={physicalProjectKey:e,project:n},c=i.get(o);c?c.push(s):i.set(o,[s])}let a=new Map,s=new Set;for(let n of t.projects){let i=v(n),c=r.get(i)??w(n,t.settings,{groupScratchProjects:t.groupScratchProjects??!1}),l=o(e(n.environmentId,n.id));if(s.has(l))continue;s.add(l);let u=e(n.environmentId,n.id),d=a.get(c);d?d.push(u):a.set(c,[u])}let c=t.preferredEnvironmentId??null;return Array.from(i,([e,n])=>{let r=(c?n.find(e=>e.project.environmentId===c)?.project:null)??n[0].project;return{key:e,label:t.groupScratchProjects&&r.isScratch?`No project`:n.length>1?T({representative:r,members:n.map(e=>e.project)}):r.title,representative:r,members:n,memberProjectRefs:a.get(e)??[]}})}function A(e,t){let n=new Map;t.forEach((e,t)=>{for(let r of e.memberProjectRefs){let e=`${r.environmentId}\0${r.projectId}`;n.has(e)||n.set(e,t)}});let r=e=>n.get(`${e.environmentId}\0${e.id}`)??t.length;return[...e].sort((e,t)=>r(e)-r(t))}var j={},M=Object.fromEntries(i.map(e=>[e,`environment`]));function N(e,t,n,r){let i=I(e,t,n);return r===void 0?i:P(i,r)}function P(e,t){let n=null,r=null;for(let i of Object.keys(s)){if(e.settings[i]!==null)continue;let{value:a,source:o}=F(i,null,t);n??={...e.settings},r??={...e.sources},n[i]=a,r[i]=o}return n===null||r===null?e:{...e,settings:n,sources:r}}function F(e,t,n){if(t!==null)return{value:t,source:`environment`};let{field:r,builtIn:i}=s[e],a=n?.[r];return a===void 0?{value:i,source:`environment`}:{value:a,source:`p4.json`}}function I(e,t,n){let r=t===null?void 0:e.projectSettingsOverrides[t],a=n==null||e.projectSettingsFolded?r??j:{...n.defaultModelSelection==null?{}:{defaultModelSelection:n.defaultModelSelection},...n.defaultThreadEnvMode==null?{}:{defaultThreadEnvMode:n.defaultThreadEnvMode},...r};if(Object.keys(a).length===0)return{settings:e,sources:M,overrides:j};let o={...M},s={...e};for(let n of i){if(!Object.hasOwn(a,n))continue;let r=a[n];r!==void 0&&(n!==`textGenerationModelSelection`&&n!==`defaultModelSelection`||r==null||l(e,t,r.instanceId))&&(s[n]=r,o[n]=`project`)}let c=s.textGenerationModelSelection;if(!l(e,t,c.instanceId)){let n=f(e.providerInstances,n=>l(e,t,n),{includeConfiguredInstances:!0,defaultModelSelection:s.defaultModelSelection});n!==null&&(s.textGenerationModelSelection=n)}return{settings:s,sources:o,overrides:a}}function L(e){let t=e.projectSettings.settings.defaultThreadEnvMode;if(t===`local`||e.projectHasThreads||e.projectSettings.sources.defaultThreadEnvMode!==`environment`||e.workspaceRoot===null||e.newProjectsRoot==null)return t;let n=u(e.newProjectsRoot),r=u(e.workspaceRoot),i=n.includes(`\\`)?`\\`:`/`,a=n.endsWith(i)?n:`${n}${i}`;return r.startsWith(a)&&r.length>a.length&&!r.slice(a.length).includes(i)?`local`:t}function R(e,t,n){let r=e.projectSettingsOverrides[t];if(r===void 0)return null;let i={...r};for(let e of n)delete i[e];return Object.keys(i).length===0?null:i}function z(e,t){let n=N(e,t).settings.worktreeCleanup;if(n?.mode===`custom`)return n.rules;if(n?.mode===`off`)return{worktreeKeepWhen:e.storageCleanup.worktreeKeepWhen,worktreeAfterDays:null,worktreeOnMerge:!1,worktreeOnDelete:!1,worktreeUnchanged:!1};let{worktreeKeepWhen:r,worktreeAfterDays:i,worktreeOnMerge:a,worktreeOnDelete:o,worktreeUnchanged:s}=e.storageCleanup;return{worktreeKeepWhen:r,worktreeAfterDays:i,worktreeOnMerge:a,worktreeOnDelete:o,worktreeUnchanged:s}}var B=d(c),V=n(B);function H(e){let t=V(e);return r(t)?t.value:null}export{z as a,v as c,b as d,m as f,N as i,_ as l,R as n,k as o,A as p,L as r,w as s,H as t,y as u};
2
- //# sourceMappingURL=p4ProjectFile-Cvz5u0b7.js.map
1
+ import{Gs as e,Jg as t,Jy as n,cw as r,el as i,mh as a,nl as o,qg as s,qs as c,wh as l}from"./utils-BctiQ4Ue.js";import"./entities-Bj5ceyfn.js";import{Sn as u}from"./runtime-Dks8Wo5P.js";import{B as d,M as f}from"./useSettings-B_WzhJqU.js";var p=`\0no-project`;function m(e){return{sidebarProjectGroupingMode:e.sidebarProjectGroupingMode,sidebarProjectGroupingOverrides:e.sidebarProjectGroupingOverrides}}function h(e){let t=new Set,n=[];for(let r of e){let e=r?.trim();e&&!t.has(e)&&(t.add(e),n.push(e))}return n}function g(e){let t=e.repositoryIdentity?.rootPath?.trim();if(!t)return null;let n=u(e.workspaceRoot),r=u(t);if(n.length===0||r.length===0)return null;if(n===r)return``;let i=`${r}${r.includes(`\\`)?`\\`:`/`}`;return n.startsWith(i)?n.slice(i.length).replaceAll(`\\`,`/`):null}function _(e,t){return`${e}:${u(t)}`}function v(e){return _(e.environmentId,e.workspaceRoot)}function y(e){return v(e)}function b(e){return v(e)}function x(e,t){return t.sidebarProjectGroupingOverrides?.[y(e)]??t.sidebarProjectGroupingMode}function S(e,n){let r=e.repositoryIdentity?t(e.repositoryIdentity):null;if(!r||r.includes(`\0`))return null;if(n===`repository`)return r;let i=g(e);return i===null||i.length===0?r:`${r}::${i}`}function C(t,n){if(n?.groupScratchProjects&&t.isScratch)return p;let r=n?.groupingMode??`repository`;return r===`separate`?v(t):S(t,r)??v(t)??c(e(t.environmentId,t.id))}function w(e,t,n){return C(e,{groupingMode:x(e,t),groupScratchProjects:n?.groupScratchProjects??!1})}function T(e){let t=h(e.members.map(e=>e.title)),n=h(e.members.map(e=>e.repositoryIdentity?s(e.repositoryIdentity):null)),r=h(e.members.map(e=>e.repositoryIdentity?.name)),i=t[0];return t.length===1&&i!==void 0&&!n.includes(i)&&!r.includes(i)?i:n.length===1?n[0]:r.length===1?r[0]:e.representative.title}function E(e){let t=Date.parse(e.updatedAt);if(Number.isFinite(t))return t;let n=Date.parse(e.createdAt);return Number.isFinite(n)?n:0}function D(e,t){let n=E(t)-E(e);return n>0||n===0&&t.id>e.id}function O(e,t){if(t.repositoryIdentity!==null)return t;let n=null;for(let t of e)t.repositoryIdentity!==null&&(n===null||D(n,t))&&(n=t);return n??t}function k(t){let n=new Map;for(let e of t.projects){let t=v(e),r=n.get(t);r?r.push(e):n.set(t,[e])}let r=new Map,i=new Map;for(let[e,a]of n){let n=a.reduce((e,t)=>D(e,t)?t:e),o=C(O(a,n),{groupingMode:x(n,t.settings),groupScratchProjects:t.groupScratchProjects??!1});r.set(e,o);let s={physicalProjectKey:e,project:n},c=i.get(o);c?c.push(s):i.set(o,[s])}let a=new Map,o=new Set;for(let n of t.projects){let i=v(n),s=r.get(i)??w(n,t.settings,{groupScratchProjects:t.groupScratchProjects??!1}),l=c(e(n.environmentId,n.id));if(o.has(l))continue;o.add(l);let u=e(n.environmentId,n.id),d=a.get(s);d?d.push(u):a.set(s,[u])}let s=t.preferredEnvironmentId??null;return Array.from(i,([e,n])=>{let r=(s?n.find(e=>e.project.environmentId===s)?.project:null)??n[0].project;return{key:e,label:t.groupScratchProjects&&r.isScratch?`No project`:n.length>1?T({representative:r,members:n.map(e=>e.project)}):r.title,representative:r,members:n,memberProjectRefs:a.get(e)??[]}})}function A(e,t){let n=new Map;t.forEach((e,t)=>{for(let r of e.memberProjectRefs){let e=`${r.environmentId}\0${r.projectId}`;n.has(e)||n.set(e,t)}});let r=e=>n.get(`${e.environmentId}\0${e.id}`)??t.length;return[...e].sort((e,t)=>r(e)-r(t))}var j={},M=Object.fromEntries(a.map(e=>[e,`environment`]));function N(e,t,n,r){let i=I(e,t,n);return r===void 0?i:P(i,r)}function P(e,t){let n=null,r=null;for(let i of Object.keys(o)){if(e.settings[i]!==null)continue;let{value:a,source:o}=F(i,null,t);n??={...e.settings},r??={...e.sources},n[i]=a,r[i]=o}return n===null||r===null?e:{...e,settings:n,sources:r}}function F(e,t,n){if(t!==null)return{value:t,source:`environment`};let{field:r,builtIn:i}=o[e],a=n?.[r];return a===void 0?{value:i,source:`environment`}:{value:a,source:`p4.json`}}function I(e,t,n){let r=t===null?void 0:e.projectSettingsOverrides[t],i=n==null||e.projectSettingsFolded?r??j:{...n.defaultModelSelection==null?{}:{defaultModelSelection:n.defaultModelSelection},...n.defaultThreadEnvMode==null?{}:{defaultThreadEnvMode:n.defaultThreadEnvMode},...r};if(Object.keys(i).length===0)return{settings:e,sources:M,overrides:j};let o={...M},s={...e};for(let n of a){if(!Object.hasOwn(i,n))continue;let r=i[n];r!==void 0&&(n!==`textGenerationModelSelection`&&n!==`defaultModelSelection`||r==null||l(e,t,r.instanceId))&&(s[n]=r,o[n]=`project`)}let c=s.textGenerationModelSelection;if(!l(e,t,c.instanceId)){let n=f(e.providerInstances,n=>l(e,t,n),{includeConfiguredInstances:!0,defaultModelSelection:s.defaultModelSelection});n!==null&&(s.textGenerationModelSelection=n)}return{settings:s,sources:o,overrides:i}}function L(e){let t=e.projectSettings.settings.defaultThreadEnvMode;if(t===`local`||e.projectHasThreads||e.projectSettings.sources.defaultThreadEnvMode!==`environment`||e.workspaceRoot===null||e.newProjectsRoot==null)return t;let n=u(e.newProjectsRoot),r=u(e.workspaceRoot),i=n.includes(`\\`)?`\\`:`/`,a=n.endsWith(i)?n:`${n}${i}`;return r.startsWith(a)&&r.length>a.length&&!r.slice(a.length).includes(i)?`local`:t}function R(e,t,n){let r=e.projectSettingsOverrides[t];if(r===void 0)return null;let i={...r};for(let e of n)delete i[e];return Object.keys(i).length===0?null:i}function z(e,t){let n=N(e,t).settings.worktreeCleanup;if(n?.mode===`custom`)return n.rules;if(n?.mode===`off`)return{worktreeKeepWhen:e.storageCleanup.worktreeKeepWhen,worktreeAfterDays:null,worktreeOnMerge:!1,worktreeOnDelete:!1,worktreeUnchanged:!1};let{worktreeKeepWhen:r,worktreeAfterDays:i,worktreeOnMerge:a,worktreeOnDelete:o,worktreeUnchanged:s}=e.storageCleanup;return{worktreeKeepWhen:r,worktreeAfterDays:i,worktreeOnMerge:a,worktreeOnDelete:o,worktreeUnchanged:s}}var B=d(i),V=n(B);function H(e){let t=V(e);return r(t)?t.value:null}export{z as a,v as c,b as d,m as f,N as i,_ as l,R as n,k as o,A as p,L as r,w as s,H as t,y as u};
2
+ //# sourceMappingURL=p4ProjectFile-B9fwmcbM.js.map
@@ -1 +1 @@
1
- import"./chunk-FOHPRMQF-DzxwRta7.js";import{S as e}from"./mermaid-parser.core-DPipy20D.js";export{e as createPacketServices};
1
+ import"./chunk-FOHPRMQF-DzxwRta7.js";import{S as e}from"./mermaid-parser.core-dhHCExtt.js";export{e as createPacketServices};
@@ -1,2 +1,2 @@
1
- import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{NE as t,lE as n}from"./utils-ChK8VEFC.js";import{a as r}from"./useParams-DPNRViD9.js";import{c as i,l as a,u as o}from"./main-D398MK8V.js";var s=t(),c=e(n());function l(){let e=(0,s.c)(9),t=r(),{authGateState:n}=i.useRouteContext();if(!n)return null;if(n.status===`hosted-pairing`){let t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,c.jsx)(a,{}),e[0]=t):t=e[0],t}let l;e[1]===t.history?l=e[2]:(l=()=>{t.history.replace(`/`),t.history.flush(),window.location.reload()},e[1]=t.history,e[2]=l);let u;e[3]===n.errorMessage?u=e[4]:(u=n.errorMessage?{initialErrorMessage:n.errorMessage}:{},e[3]=n.errorMessage,e[4]=u);let d;return e[5]!==n.auth||e[6]!==l||e[7]!==u?(d=(0,c.jsx)(o,{auth:n.auth,onAuthenticated:l,...u}),e[5]=n.auth,e[6]=l,e[7]=u,e[8]=d):d=e[8],d}export{l as component};
2
- //# sourceMappingURL=pair-Bvx1yb_1.js.map
1
+ import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{NE as t,lE as n}from"./utils-BctiQ4Ue.js";import{a as r}from"./useParams-BMa26XZG.js";import{c as i,l as a,u as o}from"./main-D8FWUaO_.js";var s=t(),c=e(n());function l(){let e=(0,s.c)(9),t=r(),{authGateState:n}=i.useRouteContext();if(!n)return null;if(n.status===`hosted-pairing`){let t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,c.jsx)(a,{}),e[0]=t):t=e[0],t}let l;e[1]===t.history?l=e[2]:(l=()=>{t.history.replace(`/`),t.history.flush(),window.location.reload()},e[1]=t.history,e[2]=l);let u;e[3]===n.errorMessage?u=e[4]:(u=n.errorMessage?{initialErrorMessage:n.errorMessage}:{},e[3]=n.errorMessage,e[4]=u);let d;return e[5]!==n.auth||e[6]!==l||e[7]!==u?(d=(0,c.jsx)(o,{auth:n.auth,onAuthenticated:l,...u}),e[5]=n.auth,e[6]=l,e[7]=u,e[8]=d):d=e[8],d}export{l as component};
2
+ //# sourceMappingURL=pair-DJbA4cVs.js.map
@@ -1,2 +1,2 @@
1
- import{t as e,u as t}from"./mermaid-parser.core-DPipy20D.js";import{n}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{m as r}from"./src-oBChb5qS.js";import"./chunk-DU6HZSFF-cx0FIxcU.js";import{n as i,r as a,t as o}from"./chunk-SVP7TREG-B9UQB6rs.js";import{t as s}from"./chunk-JWPE2WC7-DVXcaiue.js";import"./mermaid.core-BhvlRFAw.js";var c=t().RailroadPeg.parser.LangiumParser,l=n(e=>{let t=e.alternatives.map(u);return t.length===1?t[0]:{type:`choice`,alternatives:t}},`transformOrderedChoice`),u=n(e=>{let t=e.elements.map(d);return t.length===1?t[0]:{type:`sequence`,elements:t}},`transformSequence`),d=n(e=>{let t=p(e.suffix);return e.operator?{type:`special`,text:e.operator===`&`?`&${f(t)}`:`!${f(t)}`}:t},`transformPrefix`),f=n(e=>{switch(e.type){case`terminal`:return`"${e.value}"`;case`nonterminal`:return e.name;case`special`:return e.text;default:return`(...)`}},`nodeToLabel`),p=n(e=>{let t=m(e.primary);if(!e.operator)return t;switch(e.operator){case`?`:return{type:`optional`,element:t};case`*`:return{type:`repetition`,element:t,min:0,max:1/0};case`+`:return{type:`repetition`,element:t,min:1,max:1/0};default:throw Error(`Unsupported PEG suffix operator: ${e.operator}`)}},`transformSuffix`),m=n(e=>{switch(e.$type){case`PegLiteral`:return{type:`terminal`,value:e.value};case`PegIdentifier`:return{type:`nonterminal`,name:e.name};case`PegGroup`:return l(e.element);case`PegAny`:return{type:`special`,text:e.dot};default:throw Error(`Unsupported PEG primary node: ${e.$type}`)}},`transformPrimary`),h=n(e=>({name:e.name,definition:l(e.definition)}),`transformRule`),g=n(e=>{s(e,o),e.title&&o.setTitle(e.title),e.rules.map(e=>o.addRule(h(e)))},`populateDb`),_={parser:{parse:n(t=>{o.clear(),r.debug(`[PEG Parser] Starting Langium parse`);let n=c.parse(t);if(n.lexerErrors.length>0||n.parserErrors.length>0)throw new e(n);let i=n.value;r.debug(`[PEG Parser] Parsed rules:`,i.rules.length),g(i),r.debug(`[PEG Parser] Parse complete`)},`parse`),parser:{yy:o}},db:o,renderer:a,styles:i};export{_ as diagram};
2
- //# sourceMappingURL=pegDiagram-XKGWAZYB-BSldN3hU.js.map
1
+ import{t as e,u as t}from"./mermaid-parser.core-dhHCExtt.js";import{n}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{m as r}from"./src-oBChb5qS.js";import"./chunk-DU6HZSFF-CEaklbmE.js";import{n as i,r as a,t as o}from"./chunk-SVP7TREG-B9xbRF9R.js";import{t as s}from"./chunk-JWPE2WC7-DVXcaiue.js";import"./mermaid.core-DixI3w-9.js";var c=t().RailroadPeg.parser.LangiumParser,l=n(e=>{let t=e.alternatives.map(u);return t.length===1?t[0]:{type:`choice`,alternatives:t}},`transformOrderedChoice`),u=n(e=>{let t=e.elements.map(d);return t.length===1?t[0]:{type:`sequence`,elements:t}},`transformSequence`),d=n(e=>{let t=p(e.suffix);return e.operator?{type:`special`,text:e.operator===`&`?`&${f(t)}`:`!${f(t)}`}:t},`transformPrefix`),f=n(e=>{switch(e.type){case`terminal`:return`"${e.value}"`;case`nonterminal`:return e.name;case`special`:return e.text;default:return`(...)`}},`nodeToLabel`),p=n(e=>{let t=m(e.primary);if(!e.operator)return t;switch(e.operator){case`?`:return{type:`optional`,element:t};case`*`:return{type:`repetition`,element:t,min:0,max:1/0};case`+`:return{type:`repetition`,element:t,min:1,max:1/0};default:throw Error(`Unsupported PEG suffix operator: ${e.operator}`)}},`transformSuffix`),m=n(e=>{switch(e.$type){case`PegLiteral`:return{type:`terminal`,value:e.value};case`PegIdentifier`:return{type:`nonterminal`,name:e.name};case`PegGroup`:return l(e.element);case`PegAny`:return{type:`special`,text:e.dot};default:throw Error(`Unsupported PEG primary node: ${e.$type}`)}},`transformPrimary`),h=n(e=>({name:e.name,definition:l(e.definition)}),`transformRule`),g=n(e=>{s(e,o),e.title&&o.setTitle(e.title),e.rules.map(e=>o.addRule(h(e)))},`populateDb`),_={parser:{parse:n(t=>{o.clear(),r.debug(`[PEG Parser] Starting Langium parse`);let n=c.parse(t);if(n.lexerErrors.length>0||n.parserErrors.length>0)throw new e(n);let i=n.value;r.debug(`[PEG Parser] Parsed rules:`,i.rules.length),g(i),r.debug(`[PEG Parser] Parse complete`)},`parse`),parser:{yy:o}},db:o,renderer:a,styles:i};export{_ as diagram};
2
+ //# sourceMappingURL=pegDiagram-XKGWAZYB-DBKpIU8U.js.map
@@ -1,2 +1,2 @@
1
- import{S as e,x as t}from"./_chat-COwukFSB.js";import{B as n,C as r,E as i,F as a,H as o,I as s,L as c,N as l,O as u,R as d,T as f,U as p,_ as m,a as ee,b as te,c as h,d as g,f as _,g as ne,h as v,i as re,j as ie,k as ae,n as oe,o as y,p as se,r as ce,s as b,t as le,u as ue,v as x,w as de,x as S,z as C}from"./renderScheduler-C_PxJDPT.js";var w=2.2,T=.075,E=.026,D=.004,O=.008,k=.042499999999999996,A=.07799999999999999,fe=2076/2152,j=e=>Number.isFinite(e)&&e>.75&&e<1.5;function M(e,t,n,r,i=0){let a=t===`left`?-e+n:D/2+i,o=t===`left`?-.004/2-i:e-n,s=-2.2/2+n,c=w/2-n,l=new C;return t===`left`?(l.moveTo(a+r,s),l.lineTo(o,s),l.lineTo(o,c),l.lineTo(a+r,c),l.quadraticCurveTo(a,c,a,c-r),l.lineTo(a,s+r),l.quadraticCurveTo(a,s,a+r,s)):(l.moveTo(a,s),l.lineTo(o-r,s),l.quadraticCurveTo(o,s,o,s+r),l.lineTo(o,c-r),l.quadraticCurveTo(o,c,o-r,c),l.lineTo(a,c)),l.closePath(),l}function N(e,t,n){let r=new C;return r.moveTo(-e/2+n,-t/2),r.lineTo(e/2-n,-t/2),r.quadraticCurveTo(e/2,-t/2,e/2,-t/2+n),r.lineTo(e/2,t/2-n),r.quadraticCurveTo(e/2,t/2,e/2-n,t/2),r.lineTo(-e/2+n,t/2),r.quadraticCurveTo(-e/2,t/2,-e/2,t/2-n),r.lineTo(-e/2,-t/2+n),r.quadraticCurveTo(-e/2,-t/2,-e/2+n,-t/2),r.closePath(),r}function P(e){return N(e-E*2-.02,w-E*2-.04,.07)}function pe(e,t,r,a=fe){let c=w-2*E,d=a*c/2+E,ee=new S,h=new S;ee.add(h);let g=new S,_=new S;h.add(g,_);let v=new ae({color:10726322,metalness:.9,roughness:.28}),re=new ae({color:12896976,metalness:.95,roughness:.16}),ie=new u({color:724240,metalness:.1,roughness:.2,clearcoat:1}),oe=new u({color:2896439,metalness:.35,roughness:.52,clearcoat:.4,clearcoatRoughness:.6}),y=new u({color:1711650,metalness:.55,roughness:.3,clearcoat:1}),ce=new u({color:397346,metalness:.6,roughness:.1,clearcoat:1}),b=new i({color:15919830}),le=new i({map:e,toneMapped:!1}),ue=new i({colorWrite:!1,depthWrite:!1}),x=new i({map:e,toneMapped:!1}),de=[v,re,ie,oe,y,ce,b,le,ue,x];g.position.z=k;let C=new S;C.position.z=-.042499999999999996,g.add(C);function D(e,t,r){let i=new f(new te(M(d,t,O,.1,O),{depth:T-O*2,bevelEnabled:!0,bevelSize:O,bevelThickness:O,bevelSegments:3,curveSegments:12}),v);i.position.z=-.0295,e.add(i);let a=new f(new n(M(d,t,.01,.095,.002),12),ie);a.position.z=.0385,e.add(a);let o=new f(new n(M(d,t===`left`?`right`:`left`,.01,.095,.002),12),r);o.name=`${t}-back`,o.rotation.y=Math.PI,o.position.set(0,0,-.075/2-.001),e.add(o);let s=new n(M(d,t,E,.076));s.computeBoundingBox();let c=new f(s,ue);return c.name=`${t}-inner-screen`,c.position.z=.0405,e.add(c),c}let j=D(C,`left`,ie),pe=D(_,`right`,oe),F=2*(d-E),I=new l(F,c,40,48),L=I.getAttribute(`position`),R=I.getAttribute(`uv`),z=new Float32Array(L.count);for(let e=0;e<L.count;e++){let t=L.getY(e),n=F/2,r=.076,i=Math.max(0,Math.abs(t)-.9980000000000001),a=n-r+Math.sqrt(Math.max(0,r*r-i*i)),o=Math.max(-a,Math.min(a,L.getX(e)));z[e]=o,R.setXY(e,o/F+.5,t/c+.5)}R.needsUpdate=!0;let B=new f(I,le);B.name=`continuous-inner-screen`,h.add(B);let V=.15,H=new f(new m(A,A,2.188,32,1,!1,Math.PI/2+V,Math.PI-V*2),re);H.name=`hinge-spine`,H.position.z=k,h.add(H);let U=new f(new n(P(d)),x);U.name=`cover-screen`,U.position.set(-d/2,0,-.075/2-.003),U.rotation.y=Math.PI,C.add(U);let W=new S;W.name=`rear-camera`;let G=.46,K=.2;W.position.set(d-.07-G/2,w/2-.08-K/2,-.075/2-.002),W.rotation.y=Math.PI,_.add(W);let q=new f(new te(N(G,K,.07),{depth:.02,bevelEnabled:!0,bevelSize:.008,bevelThickness:.006,bevelSegments:3,curveSegments:12}),y);q.name=`camera-plate`,W.add(q);for(let[e,t]of[[-.14,.05],[-.01,.05],[.105,.036]]){let n=new f(new m(t+.012,t+.012,.012,32),v);n.rotation.x=Math.PI/2,n.position.set(e,0,.030000000000000002),W.add(n);let r=new f(new ne(t,32),ce);r.name=`camera-lens`,r.position.set(e,0,.036500000000000005),W.add(r)}let J=new f(new ne(.018,20),b);J.position.set(.185,.045,.026500000000000003),W.add(J);for(let[e,t]of[[.52,.16],[.2,.3]]){let n=new f(new se(.02,t,T*.45),v);n.position.set(d+.008,e,0),_.add(n)}let Y=new s,me=new o,X=new p,Z=null,he=t,Q=r,$=()=>{let e=Q>=90;B.visible=e,j.visible=e,pe.visible=e,U.visible=!e},ge=e=>{Q=Math.max(0,Math.min(180,e)),g.rotation.y=Math.PI*(1-Q/180),H.rotation.y=g.rotation.y/2;let t=g.rotation.y,n=Math.cos(t),r=Math.sin(t),i=-.0010000000000000009;for(let e=0;e<L.count;e++){let t=z[e];t<0?L.setXYZ(e,t*n+i*r,L.getY(e),-t*r+i*n+k):L.setXYZ(e,t,L.getY(e),.041499999999999995)}L.needsUpdate=!0,I.computeBoundingBox(),I.computeBoundingSphere(),$()},_e=(e,t)=>{he=t,le.map=e,x.map=e,U.geometry.computeBoundingBox();let n=U.geometry.boundingBox,r=U.geometry.getAttribute(`uv`),i=U.geometry.getAttribute(`position`);for(let e=0;e<r.count;e++){let t=(i.getX(e)-n.min.x)/(n.max.x-n.min.x),a=(i.getY(e)-n.min.y)/(n.max.y-n.min.y);r.setXY(e,t,a)}r.needsUpdate=!0,$()};return ge(r),_e(e,t),{root:ee,orientation:h,width:d*2,height:w,innerAspect:a,setAngle:ge,setDisplay:_e,screenPoint(e,t,n,r=!1){h.updateWorldMatrix(!0,!0),n.updateMatrixWorld(!0),me.set(e*2-1,1-t*2),Y.setFromCamera(me,n);let i=U.visible?[U]:[j,pe],a=Y.intersectObjects(i,!1)[0];if(!a&&!r)return Z=null,null;let o=a?.object??(Z?.visible?Z:i[0]);if(!o)return null;if(a&&(Z=o),a)X.copy(a.point);else{let e=new p(0,0,1).transformDirection(o.matrixWorld),t=new p().setFromMatrixPosition(o.matrixWorld),n=e.dot(t.clone().sub(Y.ray.origin))/e.dot(Y.ray.direction);if(!Number.isFinite(n))return null;X.copy(Y.ray.direction).multiplyScalar(n).add(Y.ray.origin)}o.worldToLocal(X);let s=o.geometry.boundingBox,c=Math.max(0,Math.min(1,(X.x-s.min.x)/(s.max.x-s.min.x))),l=Math.max(0,Math.min(1,(s.max.y-X.y)/(s.max.y-s.min.y))),u=o===U?c:(o===j?c:1+c)/2;return he.rotation===Math.PI?{x:1-u,y:1-l}:{x:u,y:l}},dispose(){ee.traverse(e=>{e instanceof f&&e.geometry.dispose()});for(let e of de)e.dispose()}}}var F=450,I=850;function L(n){let i=new ue({canvas:n.canvas,alpha:!0,antialias:!0,powerPreference:`low-power`});i.outputColorSpace=c;let o=()=>{let e=new v(n.source);return e.colorSpace=c,e.minFilter=r,e.magFilter=r,e.generateMipmaps=!1,e},s=o(),l=n.source.width,u=n.source.height,f=new d,m=new ie(32,1,.1,30);m.position.z=5.5;let te=new g(16777215,2.4),ne=new x(15003135,5);ne.position.set(-3,4,5);let ae=new x(16777215,4);ae.position.set(3,1,-3);let se=new x(10464468,2);se.position.set(-2,-2,-4),f.add(te,ne,ae,se);let S=null,C=h(S,n.source.width,n.source.height),w=n.profile??e,T=n.foldAngle??null,E=T!==null&&w.id.startsWith(`android`)?0:C.rotation,D=null,O=null,k=n.model??null,A=null,M=null,N=null,P=()=>n.source.width/n.source.height,L=j(P())?P():fe,R=(e,t=C)=>pe(s,t,e,L),z=e=>{if(!N)return e;let t=Math.min(1,(performance.now()-N.startedAt)/I),n=t*t*(3-2*t);return N.from+(N.to-N.from)*n},B=T!==null&&w.id.startsWith(`android`)?R(T):b(s,C,w);f.add(B.root);let V=!1,H=new a,U=ce({choose:e=>oe(e,[{rotation:new a,yawLimit:Math.PI/3}]).rotation});U.setPose(H,performance.now(),!0);let W=re(),G=()=>globalThis.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches??!1,K={width:0,height:0,pixelRatio:1},q={width:0,height:0,pixelRatio:0},J=null,Y=(e=!1)=>{if(!K.width||!K.height)return;m.aspect=K.width/K.height;let t=new _(new p(-B.width/2,-B.height/2,0),new p(B.width/2,B.height/2,0));O&&M&&t.union(M),t.applyMatrix4(new de().makeRotationZ(E));let r=t.getSize(new p),i=r.x/r.y;i!==J&&(J=i,n.onFramingAspect?.(i)),B.root.updateMatrixWorld(!0),W.setBounds(new _().setFromObject(B.root),m.fov*Math.PI/360,m.aspect,performance.now(),e),me()},me=()=>{m.position.set(W.center.x,W.center.y,W.distance()),m.lookAt(W.center.x,W.center.y,0),m.updateProjectionMatrix()},X=()=>{B.root.quaternion.copy(U.rotation),B.orientation.rotation.z=E},Z=le(()=>{if(!V&&K.width&&K.height)try{(q.width!==K.width||q.height!==K.height||q.pixelRatio!==K.pixelRatio)&&(i.setDrawingBufferSize(K.width,K.height,K.pixelRatio),q=K);let e=performance.now();if(U.advance(e,G())&&(X(),Y(G())),D){let t=Math.min(1,(e-D.startedAt)/F),n=t*t*(3-2*t);E=D.from+(D.to-D.from)*n,t===1&&(D=null),X(),Y(G())}if(N&&`setAngle`in B){let t=Math.min(1,(e-N.startedAt)/I),n=t*t*(3-2*t);B.setAngle(N.from+(N.to-N.from)*n),t===1&&(N=null),Y(G())}W.advance(e,G()),me(),i.render(f,m),(U.needsFrame()||W.needsFrame()||D||N)&&Z.invalidate()}catch{n.onUnavailable()}}),he=(e=w)=>{let t=h(S,n.source.width,n.source.height),r=l!==n.source.width||u!==n.source.height;if(r||e!==w||t.aspect!==C.aspect||t.rawLandscape!==C.rawLandscape||t.rotation!==C.rotation){if(r){let e=s;s=o(),l=n.source.width,u=n.source.height,B.setDisplay(s,t),e.dispose()}let i=P(),a=j(i)&&i!==L;if(a&&(L=i),!O&&`setAngle`in B&&a){let e=z(T??180);f.remove(B.root),B.dispose(),B=R(e,t),f.add(B.root)}else!O&&!(`setAngle`in B)&&(e!==w||t.aspect!==C.aspect)?(f.remove(B.root),B.dispose(),B=b(s,t,e),f.add(B.root)):B.setDisplay(s,t);if(t.rotation!==C.rotation){if(e.id.startsWith(`android`)&&!(`setAngle`in B)&&!G()){let e=Math.atan2(Math.sin(t.rotation-E),Math.cos(t.rotation-E));D={from:E,to:E+e,startedAt:performance.now()}}else D=null,E=`setAngle`in B?0:t.rotation}C=t,w=e,X(),Y(!D)}X()},Q=t({load:y,onError:n.onModelError,install(e){let t=V?null:e?ee(e.asset,s,C):T!==null&&w.id.startsWith(`android`)?R(T):b(s,C,w);N=null,f.remove(B.root),B.dispose(),O=e,t&&(B=t,f.add(B.root),A&&(O?B.orientation.add(A.asset):A.asset.removeFromParent()),X(),Y(!0),Z.invalidate())}}),$=t({load:y,onError:n.onModelError,install(e){let t=e?new _().setFromObject(e.asset):null;if(t&&(t.isEmpty()||![...t.min.toArray(),...t.max.toArray()].every(Number.isFinite)))throw Error(`Device accessory has invalid bounds`);A?.asset.removeFromParent(),A=e,M=t,!V&&(O&&A&&B.orientation.add(A.asset),Y(!0),Z.invalidate())}}),ge=e=>{$.set(e?.modelId===k?.id?e:null)},_e=e=>{e.preventDefault(),n.onUnavailable()};return n.canvas.addEventListener(`webglcontextlost`,_e),X(),Q.set(n.model??null),ge(n.accessory??null),{setModel(e){(e?.id!==k?.id||e?.url!==k?.url)&&$.set(null),k=e,Q.set(e)},setAccessory:ge,setFoldAngle(e){if(V||e===T)return;let t=T;if(T=e,!O){if(e===null||!(`setAngle`in B))f.remove(B.root),B.dispose(),B=e===null?b(s,C,w):R(e),f.add(B.root),D=null,E=e===null?C.rotation:0,N=null,X(),Y(!0);else{let n=z(t??e);G()?(N=null,B.setAngle(e),Y(!0)):N={from:n,to:e,startedAt:performance.now()}}Z.invalidate()}},frameUpdated(){V||(he(),s.needsUpdate=!0,Z.invalidate())},setScreen(e,t=w){V||(S=e,he(t),Z.invalidate())},resize(e,t,n){if(V||![e,t,n].every(Number.isFinite)||e<=0||t<=0)return;let r=Math.min(2,Math.max(1,n));(K.width!==e||K.height!==t||K.pixelRatio!==r)&&(K={width:e,height:t,pixelRatio:r},Y(!0),Z.invalidate())},screenPoint(e,t,n=!1){return V?null:(X(),B.screenPoint(e,t,m,n))},orbit(e,t){V||(U.orbit(e*K.width,t*K.height,performance.now()),Z.invalidate())},setInteractionActive(e,t){if(V)return;let n=performance.now();t===`orbit`?U.dragActive(e,n):(U.hold(e,n),W.hold(e,n)),Z.invalidate()},resetPose(){V||(U.reset(H,performance.now()),Z.invalidate())},dispose(){if(V)return;V=!0,Z.dispose();let e=O!==null;$.dispose(),Q.dispose(),n.canvas.removeEventListener(`webglcontextlost`,_e),f.remove(B.root),e||B.dispose(),s.dispose(),i.dispose(),i.forceContextLoss()}}}export{L as createPhoneViewer};
2
- //# sourceMappingURL=phoneViewer-CEU-YPRt.js.map
1
+ import{S as e,x as t}from"./_chat-DMXSEEst.js";import{B as n,C as r,E as i,F as a,H as o,I as s,L as c,N as l,O as u,R as d,T as f,U as p,_ as m,a as ee,b as te,c as h,d as g,f as _,g as ne,h as v,i as re,j as ie,k as ae,n as oe,o as y,p as se,r as ce,s as b,t as le,u as ue,v as x,w as de,x as S,z as C}from"./renderScheduler-h5pQXGNH.js";var w=2.2,T=.075,E=.026,D=.004,O=.008,k=.042499999999999996,A=.07799999999999999,fe=2076/2152,j=e=>Number.isFinite(e)&&e>.75&&e<1.5;function M(e,t,n,r,i=0){let a=t===`left`?-e+n:D/2+i,o=t===`left`?-.004/2-i:e-n,s=-2.2/2+n,c=w/2-n,l=new C;return t===`left`?(l.moveTo(a+r,s),l.lineTo(o,s),l.lineTo(o,c),l.lineTo(a+r,c),l.quadraticCurveTo(a,c,a,c-r),l.lineTo(a,s+r),l.quadraticCurveTo(a,s,a+r,s)):(l.moveTo(a,s),l.lineTo(o-r,s),l.quadraticCurveTo(o,s,o,s+r),l.lineTo(o,c-r),l.quadraticCurveTo(o,c,o-r,c),l.lineTo(a,c)),l.closePath(),l}function N(e,t,n){let r=new C;return r.moveTo(-e/2+n,-t/2),r.lineTo(e/2-n,-t/2),r.quadraticCurveTo(e/2,-t/2,e/2,-t/2+n),r.lineTo(e/2,t/2-n),r.quadraticCurveTo(e/2,t/2,e/2-n,t/2),r.lineTo(-e/2+n,t/2),r.quadraticCurveTo(-e/2,t/2,-e/2,t/2-n),r.lineTo(-e/2,-t/2+n),r.quadraticCurveTo(-e/2,-t/2,-e/2+n,-t/2),r.closePath(),r}function P(e){return N(e-E*2-.02,w-E*2-.04,.07)}function pe(e,t,r,a=fe){let c=w-2*E,d=a*c/2+E,ee=new S,h=new S;ee.add(h);let g=new S,_=new S;h.add(g,_);let v=new ae({color:10726322,metalness:.9,roughness:.28}),re=new ae({color:12896976,metalness:.95,roughness:.16}),ie=new u({color:724240,metalness:.1,roughness:.2,clearcoat:1}),oe=new u({color:2896439,metalness:.35,roughness:.52,clearcoat:.4,clearcoatRoughness:.6}),y=new u({color:1711650,metalness:.55,roughness:.3,clearcoat:1}),ce=new u({color:397346,metalness:.6,roughness:.1,clearcoat:1}),b=new i({color:15919830}),le=new i({map:e,toneMapped:!1}),ue=new i({colorWrite:!1,depthWrite:!1}),x=new i({map:e,toneMapped:!1}),de=[v,re,ie,oe,y,ce,b,le,ue,x];g.position.z=k;let C=new S;C.position.z=-.042499999999999996,g.add(C);function D(e,t,r){let i=new f(new te(M(d,t,O,.1,O),{depth:T-O*2,bevelEnabled:!0,bevelSize:O,bevelThickness:O,bevelSegments:3,curveSegments:12}),v);i.position.z=-.0295,e.add(i);let a=new f(new n(M(d,t,.01,.095,.002),12),ie);a.position.z=.0385,e.add(a);let o=new f(new n(M(d,t===`left`?`right`:`left`,.01,.095,.002),12),r);o.name=`${t}-back`,o.rotation.y=Math.PI,o.position.set(0,0,-.075/2-.001),e.add(o);let s=new n(M(d,t,E,.076));s.computeBoundingBox();let c=new f(s,ue);return c.name=`${t}-inner-screen`,c.position.z=.0405,e.add(c),c}let j=D(C,`left`,ie),pe=D(_,`right`,oe),F=2*(d-E),I=new l(F,c,40,48),L=I.getAttribute(`position`),R=I.getAttribute(`uv`),z=new Float32Array(L.count);for(let e=0;e<L.count;e++){let t=L.getY(e),n=F/2,r=.076,i=Math.max(0,Math.abs(t)-.9980000000000001),a=n-r+Math.sqrt(Math.max(0,r*r-i*i)),o=Math.max(-a,Math.min(a,L.getX(e)));z[e]=o,R.setXY(e,o/F+.5,t/c+.5)}R.needsUpdate=!0;let B=new f(I,le);B.name=`continuous-inner-screen`,h.add(B);let V=.15,H=new f(new m(A,A,2.188,32,1,!1,Math.PI/2+V,Math.PI-V*2),re);H.name=`hinge-spine`,H.position.z=k,h.add(H);let U=new f(new n(P(d)),x);U.name=`cover-screen`,U.position.set(-d/2,0,-.075/2-.003),U.rotation.y=Math.PI,C.add(U);let W=new S;W.name=`rear-camera`;let G=.46,K=.2;W.position.set(d-.07-G/2,w/2-.08-K/2,-.075/2-.002),W.rotation.y=Math.PI,_.add(W);let q=new f(new te(N(G,K,.07),{depth:.02,bevelEnabled:!0,bevelSize:.008,bevelThickness:.006,bevelSegments:3,curveSegments:12}),y);q.name=`camera-plate`,W.add(q);for(let[e,t]of[[-.14,.05],[-.01,.05],[.105,.036]]){let n=new f(new m(t+.012,t+.012,.012,32),v);n.rotation.x=Math.PI/2,n.position.set(e,0,.030000000000000002),W.add(n);let r=new f(new ne(t,32),ce);r.name=`camera-lens`,r.position.set(e,0,.036500000000000005),W.add(r)}let J=new f(new ne(.018,20),b);J.position.set(.185,.045,.026500000000000003),W.add(J);for(let[e,t]of[[.52,.16],[.2,.3]]){let n=new f(new se(.02,t,T*.45),v);n.position.set(d+.008,e,0),_.add(n)}let Y=new s,me=new o,X=new p,Z=null,he=t,Q=r,$=()=>{let e=Q>=90;B.visible=e,j.visible=e,pe.visible=e,U.visible=!e},ge=e=>{Q=Math.max(0,Math.min(180,e)),g.rotation.y=Math.PI*(1-Q/180),H.rotation.y=g.rotation.y/2;let t=g.rotation.y,n=Math.cos(t),r=Math.sin(t),i=-.0010000000000000009;for(let e=0;e<L.count;e++){let t=z[e];t<0?L.setXYZ(e,t*n+i*r,L.getY(e),-t*r+i*n+k):L.setXYZ(e,t,L.getY(e),.041499999999999995)}L.needsUpdate=!0,I.computeBoundingBox(),I.computeBoundingSphere(),$()},_e=(e,t)=>{he=t,le.map=e,x.map=e,U.geometry.computeBoundingBox();let n=U.geometry.boundingBox,r=U.geometry.getAttribute(`uv`),i=U.geometry.getAttribute(`position`);for(let e=0;e<r.count;e++){let t=(i.getX(e)-n.min.x)/(n.max.x-n.min.x),a=(i.getY(e)-n.min.y)/(n.max.y-n.min.y);r.setXY(e,t,a)}r.needsUpdate=!0,$()};return ge(r),_e(e,t),{root:ee,orientation:h,width:d*2,height:w,innerAspect:a,setAngle:ge,setDisplay:_e,screenPoint(e,t,n,r=!1){h.updateWorldMatrix(!0,!0),n.updateMatrixWorld(!0),me.set(e*2-1,1-t*2),Y.setFromCamera(me,n);let i=U.visible?[U]:[j,pe],a=Y.intersectObjects(i,!1)[0];if(!a&&!r)return Z=null,null;let o=a?.object??(Z?.visible?Z:i[0]);if(!o)return null;if(a&&(Z=o),a)X.copy(a.point);else{let e=new p(0,0,1).transformDirection(o.matrixWorld),t=new p().setFromMatrixPosition(o.matrixWorld),n=e.dot(t.clone().sub(Y.ray.origin))/e.dot(Y.ray.direction);if(!Number.isFinite(n))return null;X.copy(Y.ray.direction).multiplyScalar(n).add(Y.ray.origin)}o.worldToLocal(X);let s=o.geometry.boundingBox,c=Math.max(0,Math.min(1,(X.x-s.min.x)/(s.max.x-s.min.x))),l=Math.max(0,Math.min(1,(s.max.y-X.y)/(s.max.y-s.min.y))),u=o===U?c:(o===j?c:1+c)/2;return he.rotation===Math.PI?{x:1-u,y:1-l}:{x:u,y:l}},dispose(){ee.traverse(e=>{e instanceof f&&e.geometry.dispose()});for(let e of de)e.dispose()}}}var F=450,I=850;function L(n){let i=new ue({canvas:n.canvas,alpha:!0,antialias:!0,powerPreference:`low-power`});i.outputColorSpace=c;let o=()=>{let e=new v(n.source);return e.colorSpace=c,e.minFilter=r,e.magFilter=r,e.generateMipmaps=!1,e},s=o(),l=n.source.width,u=n.source.height,f=new d,m=new ie(32,1,.1,30);m.position.z=5.5;let te=new g(16777215,2.4),ne=new x(15003135,5);ne.position.set(-3,4,5);let ae=new x(16777215,4);ae.position.set(3,1,-3);let se=new x(10464468,2);se.position.set(-2,-2,-4),f.add(te,ne,ae,se);let S=null,C=h(S,n.source.width,n.source.height),w=n.profile??e,T=n.foldAngle??null,E=T!==null&&w.id.startsWith(`android`)?0:C.rotation,D=null,O=null,k=n.model??null,A=null,M=null,N=null,P=()=>n.source.width/n.source.height,L=j(P())?P():fe,R=(e,t=C)=>pe(s,t,e,L),z=e=>{if(!N)return e;let t=Math.min(1,(performance.now()-N.startedAt)/I),n=t*t*(3-2*t);return N.from+(N.to-N.from)*n},B=T!==null&&w.id.startsWith(`android`)?R(T):b(s,C,w);f.add(B.root);let V=!1,H=new a,U=ce({choose:e=>oe(e,[{rotation:new a,yawLimit:Math.PI/3}]).rotation});U.setPose(H,performance.now(),!0);let W=re(),G=()=>globalThis.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches??!1,K={width:0,height:0,pixelRatio:1},q={width:0,height:0,pixelRatio:0},J=null,Y=(e=!1)=>{if(!K.width||!K.height)return;m.aspect=K.width/K.height;let t=new _(new p(-B.width/2,-B.height/2,0),new p(B.width/2,B.height/2,0));O&&M&&t.union(M),t.applyMatrix4(new de().makeRotationZ(E));let r=t.getSize(new p),i=r.x/r.y;i!==J&&(J=i,n.onFramingAspect?.(i)),B.root.updateMatrixWorld(!0),W.setBounds(new _().setFromObject(B.root),m.fov*Math.PI/360,m.aspect,performance.now(),e),me()},me=()=>{m.position.set(W.center.x,W.center.y,W.distance()),m.lookAt(W.center.x,W.center.y,0),m.updateProjectionMatrix()},X=()=>{B.root.quaternion.copy(U.rotation),B.orientation.rotation.z=E},Z=le(()=>{if(!V&&K.width&&K.height)try{(q.width!==K.width||q.height!==K.height||q.pixelRatio!==K.pixelRatio)&&(i.setDrawingBufferSize(K.width,K.height,K.pixelRatio),q=K);let e=performance.now();if(U.advance(e,G())&&(X(),Y(G())),D){let t=Math.min(1,(e-D.startedAt)/F),n=t*t*(3-2*t);E=D.from+(D.to-D.from)*n,t===1&&(D=null),X(),Y(G())}if(N&&`setAngle`in B){let t=Math.min(1,(e-N.startedAt)/I),n=t*t*(3-2*t);B.setAngle(N.from+(N.to-N.from)*n),t===1&&(N=null),Y(G())}W.advance(e,G()),me(),i.render(f,m),(U.needsFrame()||W.needsFrame()||D||N)&&Z.invalidate()}catch{n.onUnavailable()}}),he=(e=w)=>{let t=h(S,n.source.width,n.source.height),r=l!==n.source.width||u!==n.source.height;if(r||e!==w||t.aspect!==C.aspect||t.rawLandscape!==C.rawLandscape||t.rotation!==C.rotation){if(r){let e=s;s=o(),l=n.source.width,u=n.source.height,B.setDisplay(s,t),e.dispose()}let i=P(),a=j(i)&&i!==L;if(a&&(L=i),!O&&`setAngle`in B&&a){let e=z(T??180);f.remove(B.root),B.dispose(),B=R(e,t),f.add(B.root)}else!O&&!(`setAngle`in B)&&(e!==w||t.aspect!==C.aspect)?(f.remove(B.root),B.dispose(),B=b(s,t,e),f.add(B.root)):B.setDisplay(s,t);if(t.rotation!==C.rotation){if(e.id.startsWith(`android`)&&!(`setAngle`in B)&&!G()){let e=Math.atan2(Math.sin(t.rotation-E),Math.cos(t.rotation-E));D={from:E,to:E+e,startedAt:performance.now()}}else D=null,E=`setAngle`in B?0:t.rotation}C=t,w=e,X(),Y(!D)}X()},Q=t({load:y,onError:n.onModelError,install(e){let t=V?null:e?ee(e.asset,s,C):T!==null&&w.id.startsWith(`android`)?R(T):b(s,C,w);N=null,f.remove(B.root),B.dispose(),O=e,t&&(B=t,f.add(B.root),A&&(O?B.orientation.add(A.asset):A.asset.removeFromParent()),X(),Y(!0),Z.invalidate())}}),$=t({load:y,onError:n.onModelError,install(e){let t=e?new _().setFromObject(e.asset):null;if(t&&(t.isEmpty()||![...t.min.toArray(),...t.max.toArray()].every(Number.isFinite)))throw Error(`Device accessory has invalid bounds`);A?.asset.removeFromParent(),A=e,M=t,!V&&(O&&A&&B.orientation.add(A.asset),Y(!0),Z.invalidate())}}),ge=e=>{$.set(e?.modelId===k?.id?e:null)},_e=e=>{e.preventDefault(),n.onUnavailable()};return n.canvas.addEventListener(`webglcontextlost`,_e),X(),Q.set(n.model??null),ge(n.accessory??null),{setModel(e){(e?.id!==k?.id||e?.url!==k?.url)&&$.set(null),k=e,Q.set(e)},setAccessory:ge,setFoldAngle(e){if(V||e===T)return;let t=T;if(T=e,!O){if(e===null||!(`setAngle`in B))f.remove(B.root),B.dispose(),B=e===null?b(s,C,w):R(e),f.add(B.root),D=null,E=e===null?C.rotation:0,N=null,X(),Y(!0);else{let n=z(t??e);G()?(N=null,B.setAngle(e),Y(!0)):N={from:n,to:e,startedAt:performance.now()}}Z.invalidate()}},frameUpdated(){V||(he(),s.needsUpdate=!0,Z.invalidate())},setScreen(e,t=w){V||(S=e,he(t),Z.invalidate())},resize(e,t,n){if(V||![e,t,n].every(Number.isFinite)||e<=0||t<=0)return;let r=Math.min(2,Math.max(1,n));(K.width!==e||K.height!==t||K.pixelRatio!==r)&&(K={width:e,height:t,pixelRatio:r},Y(!0),Z.invalidate())},screenPoint(e,t,n=!1){return V?null:(X(),B.screenPoint(e,t,m,n))},orbit(e,t){V||(U.orbit(e*K.width,t*K.height,performance.now()),Z.invalidate())},setInteractionActive(e,t){if(V)return;let n=performance.now();t===`orbit`?U.dragActive(e,n):(U.hold(e,n),W.hold(e,n)),Z.invalidate()},resetPose(){V||(U.reset(H,performance.now()),Z.invalidate())},dispose(){if(V)return;V=!0,Z.dispose();let e=O!==null;$.dispose(),Q.dispose(),n.canvas.removeEventListener(`webglcontextlost`,_e),f.remove(B.root),e||B.dispose(),s.dispose(),i.dispose(),i.forceContextLoss()}}}export{L as createPhoneViewer};
2
+ //# sourceMappingURL=phoneViewer-CywOkDco.js.map
@@ -1 +1 @@
1
- import"./chunk-FOHPRMQF-DzxwRta7.js";import{b as e}from"./mermaid-parser.core-DPipy20D.js";export{e as createPieServices};
1
+ import"./chunk-FOHPRMQF-DzxwRta7.js";import{b as e}from"./mermaid-parser.core-dhHCExtt.js";export{e as createPieServices};
@@ -1,4 +1,4 @@
1
- import{n as e}from"./mermaid-parser.core-DPipy20D.js";import{n as t}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{m as n}from"./src-oBChb5qS.js";import{H as r,K as i,U as a,a as o,c as s,f as c,v as l,w as u,x as d,y as f}from"./chunk-DU6HZSFF-cx0FIxcU.js";import{t as p}from"./ordinal-BDEzSJ7C.js";import{n as m}from"./path-fybaL0A-.js";import{m as h}from"./dist-B_J_HbC0.js";import{t as g}from"./arc-DgcGdgmL.js";import{t as _}from"./array-BifhSqXX.js";import{i as v,p as y}from"./chunk-75Z2AOVW-D8m_ip6d.js";import{t as b}from"./chunk-JWPE2WC7-DVXcaiue.js";import{f as x}from"./mermaid.core-BhvlRFAw.js";function S(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function C(e){return e}function w(){var e=C,t=S,n=null,r=m(0),i=m(h),a=m(0);function o(o){var s,c=(o=_(o)).length,l,u,d=0,f=Array(c),p=Array(c),m=+r.apply(this,arguments),g=Math.min(h,Math.max(-h,i.apply(this,arguments)-m)),v,y=Math.min(Math.abs(g)/c,a.apply(this,arguments)),b=y*(g<0?-1:1),x;for(s=0;s<c;++s)(x=p[f[s]=s]=+e(o[s],s,o))>0&&(d+=x);for(t==null?n!=null&&f.sort(function(e,t){return n(o[e],o[t])}):f.sort(function(e,n){return t(p[e],p[n])}),s=0,u=d?(g-c*b)/d:0;s<c;++s,m=v)l=f[s],x=p[l],v=m+(x>0?x*u:0)+b,p[l]={data:o[l],index:s,value:x,startAngle:m,endAngle:v,padAngle:y};return p}return o.value=function(t){return arguments.length?(e=typeof t==`function`?t:m(+t),o):e},o.sortValues=function(e){return arguments.length?(t=e,n=null,o):t},o.sort=function(e){return arguments.length?(n=e,t=null,o):n},o.startAngle=function(e){return arguments.length?(r=typeof e==`function`?e:m(+e),o):r},o.endAngle=function(e){return arguments.length?(i=typeof e==`function`?e:m(+e),o):i},o.padAngle=function(e){return arguments.length?(a=typeof e==`function`?e:m(+e),o):a},o}var T=c.pie,E={sections:new Map,showData:!1,config:T},D=E.sections,O=E.showData,k=structuredClone(T),A={getConfig:t(()=>structuredClone(k),`getConfig`),clear:t(()=>{D=new Map,O=E.showData,o()},`clear`),setDiagramTitle:i,getDiagramTitle:u,setAccTitle:a,getAccTitle:f,setAccDescription:r,getAccDescription:l,addSection:t(({label:e,value:t})=>{if(t<0)throw Error(`"${e}" has invalid value: ${t}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);D.has(e)||(D.set(e,t),n.debug(`added new section: ${e}, with value: ${t}`))},`addSection`),getSections:t(()=>D,`getSections`),setShowData:t(e=>{O=e},`setShowData`),getShowData:t(()=>O,`getShowData`)},j=t((e,t)=>{b(e,t),t.setShowData(e.showData),e.sections.map(t.addSection)},`populateDb`),M={parse:t(async t=>{let r=await e(`pie`,t);n.debug(r),j(r,A)},`parse`)},N=t(e=>`
1
+ import{n as e}from"./mermaid-parser.core-dhHCExtt.js";import{n as t}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{m as n}from"./src-oBChb5qS.js";import{H as r,K as i,U as a,a as o,c as s,f as c,v as l,w as u,x as d,y as f}from"./chunk-DU6HZSFF-CEaklbmE.js";import{t as p}from"./ordinal-BDEzSJ7C.js";import{n as m}from"./path-fybaL0A-.js";import{m as h}from"./dist-B_J_HbC0.js";import{t as g}from"./arc-DgcGdgmL.js";import{t as _}from"./array-BifhSqXX.js";import{i as v,p as y}from"./chunk-75Z2AOVW-CBCO5Noa.js";import{t as b}from"./chunk-JWPE2WC7-DVXcaiue.js";import{f as x}from"./mermaid.core-DixI3w-9.js";function S(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function C(e){return e}function w(){var e=C,t=S,n=null,r=m(0),i=m(h),a=m(0);function o(o){var s,c=(o=_(o)).length,l,u,d=0,f=Array(c),p=Array(c),m=+r.apply(this,arguments),g=Math.min(h,Math.max(-h,i.apply(this,arguments)-m)),v,y=Math.min(Math.abs(g)/c,a.apply(this,arguments)),b=y*(g<0?-1:1),x;for(s=0;s<c;++s)(x=p[f[s]=s]=+e(o[s],s,o))>0&&(d+=x);for(t==null?n!=null&&f.sort(function(e,t){return n(o[e],o[t])}):f.sort(function(e,n){return t(p[e],p[n])}),s=0,u=d?(g-c*b)/d:0;s<c;++s,m=v)l=f[s],x=p[l],v=m+(x>0?x*u:0)+b,p[l]={data:o[l],index:s,value:x,startAngle:m,endAngle:v,padAngle:y};return p}return o.value=function(t){return arguments.length?(e=typeof t==`function`?t:m(+t),o):e},o.sortValues=function(e){return arguments.length?(t=e,n=null,o):t},o.sort=function(e){return arguments.length?(n=e,t=null,o):n},o.startAngle=function(e){return arguments.length?(r=typeof e==`function`?e:m(+e),o):r},o.endAngle=function(e){return arguments.length?(i=typeof e==`function`?e:m(+e),o):i},o.padAngle=function(e){return arguments.length?(a=typeof e==`function`?e:m(+e),o):a},o}var T=c.pie,E={sections:new Map,showData:!1,config:T},D=E.sections,O=E.showData,k=structuredClone(T),A={getConfig:t(()=>structuredClone(k),`getConfig`),clear:t(()=>{D=new Map,O=E.showData,o()},`clear`),setDiagramTitle:i,getDiagramTitle:u,setAccTitle:a,getAccTitle:f,setAccDescription:r,getAccDescription:l,addSection:t(({label:e,value:t})=>{if(t<0)throw Error(`"${e}" has invalid value: ${t}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);D.has(e)||(D.set(e,t),n.debug(`added new section: ${e}, with value: ${t}`))},`addSection`),getSections:t(()=>D,`getSections`),setShowData:t(e=>{O=e},`setShowData`),getShowData:t(()=>O,`getShowData`)},j=t((e,t)=>{b(e,t),t.setShowData(e.showData),e.sections.map(t.addSection)},`populateDb`),M={parse:t(async t=>{let r=await e(`pie`,t);n.debug(r),j(r,A)},`parse`)},N=t(e=>`
2
2
  .pieCircle{
3
3
  stroke: ${e.pieStrokeColor};
4
4
  stroke-width : ${e.pieStrokeWidth};
@@ -37,4 +37,4 @@ import{n as e}from"./mermaid-parser.core-DPipy20D.js";import{n as t}from"./chunk
37
37
  }
38
38
  `,`getStyles`),P=t(e=>{let t=[...e.values()].reduce((e,t)=>e+t,0),n=[...e.entries()].map(([e,t])=>({label:e,value:t})).filter(e=>e.value/t*100>=1);return w().value(e=>e.value).sort(null)(n)},`createPieArcs`),F={parser:M,db:A,renderer:{draw:t((e,t,r,i)=>{n.debug(`rendering pie chart
39
39
  `+e);let a=i.db,o=d(),c=v(a.getConfig(),o.pie),l=x(t),u=l.append(`g`);u.attr(`transform`,`translate(225,225)`);let{themeVariables:f}=o,[m]=y(f.pieOuterStrokeWidth);m??=2;let h=c.legendPosition,_=c.textPosition,b=c.donutHole>0&&c.donutHole<=.9?c.donutHole:0,S=g().innerRadius(b*185).outerRadius(185),C=g().innerRadius(185*_).outerRadius(185*_),w=u.append(`g`);w.append(`circle`).attr(`cx`,0).attr(`cy`,0).attr(`r`,185+m/2).attr(`class`,`pieOuterCircle`);let T=a.getSections(),E=P(T),D=[f.pie1,f.pie2,f.pie3,f.pie4,f.pie5,f.pie6,f.pie7,f.pie8,f.pie9,f.pie10,f.pie11,f.pie12],O=0;T.forEach(e=>{O+=e});let k=E.filter(e=>(e.data.value/O*100).toFixed(0)!==`0`),A=p(D).domain([...T.keys()]);w.selectAll(`mySlices`).data(k).enter().append(`path`).attr(`d`,S).attr(`fill`,e=>A(e.data.label)).attr(`class`,e=>{let t=`pieCircle`;return c.highlightSlice===`hover`?t+=` highlightedOnHover`:c.highlightSlice===e.data.label&&(t+=` highlighted`),t}),w.selectAll(`mySlices`).data(k).enter().append(`text`).text(e=>(e.data.value/O*100).toFixed(0)+`%`).attr(`transform`,e=>`translate(`+C.centroid(e)+`)`).style(`text-anchor`,`middle`).attr(`class`,`slice`);let j=u.append(`text`).text(a.getDiagramTitle()).attr(`x`,0).attr(`y`,-200).attr(`class`,`pieTitleText`),M=[...T.entries()].map(([e,t])=>({label:e,value:t})),N=u.selectAll(`.legend`).data(M).enter().append(`g`).attr(`class`,`legend`);N.append(`rect`).attr(`width`,18).attr(`height`,18).style(`fill`,e=>A(e.label)).style(`stroke`,e=>A(e.label)),N.append(`text`).attr(`x`,22).attr(`y`,14).text(e=>a.getShowData()?`${e.label} [${e.value}]`:e.label);let F=Math.max(...N.selectAll(`text`).nodes().map(e=>e?.getBoundingClientRect().width??0)),I=450,L=490,R=M.length*22;switch(h){case`center`:N.attr(`transform`,(e,t)=>{let n=22*M.length/2,r=-F/2-22,i=t*22-n;return`translate(`+r+`,`+i+`)`});break;case`top`:I+=R,N.attr(`transform`,(e,t)=>`translate(${-F/2-22}, ${t*22-185})`),w.attr(`transform`,()=>`translate(0, ${R+22})`);break;case`bottom`:I+=R,N.attr(`transform`,(e,t)=>{let n=-F/2-22,r=t*22- -207;return`translate(`+n+`,`+r+`)`});break;case`left`:L+=22+F,N.attr(`transform`,(e,t)=>{let n=22*M.length/2;return`translate(-207,`+(t*22-n)+`)`}),w.attr(`transform`,()=>`translate(${F+18+4}, 0)`);break;default:L+=22+F,N.attr(`transform`,(e,t)=>{let n=22*M.length/2;return`translate(216,`+(t*22-n)+`)`})}let z=j.node()?.getBoundingClientRect().width??0,B=225-z/2,V=225+z/2,H=Math.min(0,B),U=Math.max(L,V)-H;l.attr(`viewBox`,`${H} 0 ${U} ${I}`),s(l,I,U,c.useMaxWidth)},`draw`)},styles:N};export{F as diagram};
40
- //# sourceMappingURL=pieDiagram-E7YTZNPT-4ZtbrRQa.js.map
40
+ //# sourceMappingURL=pieDiagram-E7YTZNPT-CuM-4V4_.js.map
@@ -1,4 +1,4 @@
1
- import{At as e}from"./utils-ChK8VEFC.js";import{c as t}from"./runtime-DgUiDuq4.js";var n=`<svg data-icon-sprite aria-hidden="true" width="0" height="0">
1
+ import{At as e}from"./utils-BctiQ4Ue.js";import{c as t}from"./runtime-Dks8Wo5P.js";var n=`<svg data-icon-sprite aria-hidden="true" width="0" height="0">
2
2
  <symbol id="file-tree-icon-chevron" viewBox="0 0 16 16">
3
3
  <path d="M12.4697 5.46973C12.7626 5.17684 13.2374 5.17684 13.5303 5.46973C13.8232 5.76262 13.8232 6.23738 13.5303 6.53028L8.53028 11.5303C8.23738 11.8232 7.76262 11.8232 7.46973 11.5303L2.46973 6.53028C2.17684 6.23738 2.17684 5.76262 2.46973 5.46973C2.76262 5.17684 3.23738 5.17684 3.53028 5.46973L8 9.93946L12.4697 5.46973Z" fill="currentcolor"/>
4
4
  </symbol>
@@ -165,70 +165,70 @@ import{At as e}from"./utils-ChK8VEFC.js";import{c as t}from"./runtime-DgUiDuq4.j
165
165
  <path fill="currentColor" d="M4.585 2a2 2 0 0 1 1.028.285l1.788 1.072a1 1 0 0 0 .514.143H12A2 2 0 0 1 13.935 5H0V4a2 2 0 0 1 2-2z" class="bg" opacity=".5"/>
166
166
  <path fill="currentColor" fill-rule="evenodd" d="M14 12a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-1.25h1v-1H0V6h14zM9.9 8.25c-.883 0-1.9.5-1.9.5H7v1h1v1s1.017.5 1.9.5c.884 0 1.6-.672 1.6-1.5s-.716-1.5-1.6-1.5M2 9.75v1h1v-1zm2 0v1h1v-1zm2 0v1h1v-1zm-5-1v1h1v-1zm2 0v1h1v-1zm2 0v1h1v-1z" class="fg" clip-rule="evenodd"/>
167
167
  </symbol>`],me=[r,i,o,s,c,l,d,re,ie,ce,h,g,_,v,y,x,w,T,E,D,O,j,M,F,I,L,R,z,B,V];function H(e,t){return t.length===0?e:e.replace(`</svg>`,`\n ${t.join(`
168
- `)}\n</svg>`)}var U=H(n,pe),he={minimal:n,standard:U,complete:H(U,me)},ge={".babelrc":`babel`,".babelrc.json":`babel`,".bash_profile":`bash`,".bashrc":`bash`,".browserslistrc":`browserslist`,".dockerignore":`docker`,".eslintignore":`eslint`,".eslintrc":`eslint`,".eslintrc.cjs":`eslint`,".eslintrc.js":`eslint`,".eslintrc.json":`eslint`,".eslintrc.yaml":`eslint`,".eslintrc.yml":`eslint`,".gitattributes":`git`,".gitignore":`git`,".gitkeep":`git`,".gitmodules":`git`,".oxlintrc.json":`oxc`,".postcssrc":`postcss`,".postcssrc.json":`postcss`,".postcssrc.yaml":`postcss`,".postcssrc.yml":`postcss`,".prettierignore":`prettier`,".prettierrc":`prettier`,".prettierrc.cjs":`prettier`,".prettierrc.js":`prettier`,".prettierrc.json":`prettier`,".prettierrc.mjs":`prettier`,".prettierrc.toml":`prettier`,".prettierrc.yaml":`prettier`,".prettierrc.yml":`prettier`,".stylelintignore":`stylelint`,".stylelintrc":`stylelint`,".stylelintrc.cjs":`stylelint`,".stylelintrc.js":`stylelint`,".stylelintrc.json":`stylelint`,".stylelintrc.mjs":`stylelint`,".stylelintrc.yaml":`stylelint`,".stylelintrc.yml":`stylelint`,".terraform.lock.hcl":`terraform`,".zprofile":`bash`,".zshenv":`bash`,".zshrc":`bash`,"babel.config.cjs":`babel`,"babel.config.js":`babel`,"babel.config.json":`babel`,"babel.config.mjs":`babel`,"biome.json":`biome`,"biome.jsonc":`biome`,"bootstrap.bundle.js":`bootstrap`,"bootstrap.bundle.min.js":`bootstrap`,"bootstrap.css":`bootstrap`,"bootstrap.js":`bootstrap`,"bootstrap.min.css":`bootstrap`,"bootstrap.min.js":`bootstrap`,"bun.lock":`bun`,"bun.lockb":`bun`,"bunfig.toml":`bun`,"claude.md":`claude`,"compose.yaml":`docker`,"compose.yml":`docker`,"docker-compose.override.yml":`docker`,"docker-compose.yaml":`docker`,"docker-compose.yml":`docker`,dockerfile:`docker`,"eslint.config.cjs":`eslint`,"eslint.config.js":`eslint`,"eslint.config.mjs":`eslint`,"eslint.config.mts":`eslint`,"eslint.config.ts":`eslint`,gemfile:`ruby`,"next.config.js":`nextjs`,"next.config.mjs":`nextjs`,"next.config.mts":`nextjs`,"next.config.ts":`nextjs`,"postcss.config.cjs":`postcss`,"postcss.config.js":`postcss`,"postcss.config.mjs":`postcss`,"postcss.config.ts":`postcss`,"prettier.config.cjs":`prettier`,"prettier.config.js":`prettier`,"prettier.config.mjs":`prettier`,rakefile:`ruby`,"readme.md":`markdown`,"stylelint.config.cjs":`stylelint`,"stylelint.config.js":`stylelint`,"stylelint.config.mjs":`stylelint`,"svgo.config.cjs":`svgo`,"svgo.config.js":`svgo`,"svgo.config.mjs":`svgo`,"svgo.config.ts":`svgo`,"tailwind.config.cjs":`tailwind`,"tailwind.config.js":`tailwind`,"tailwind.config.mjs":`tailwind`,"tailwind.config.ts":`tailwind`,"vite.config.js":`vite`,"vite.config.mjs":`vite`,"vite.config.mts":`vite`,"vite.config.ts":`vite`,"webpack.config.babel.js":`webpack`,"webpack.config.cjs":`webpack`,"webpack.config.js":`webpack`,"webpack.config.mjs":`webpack`,"webpack.config.ts":`webpack`},_e={"7z":`zip`,astro:`astro`,AUTHORS:`text`,avif:`image`,bash:`bash`,bmp:`image`,bz2:`zip`,c:`c`,cc:`cpp`,cfg:`text`,CHANGELOG:`text`,cjs:`javascript`,"code-workspace":`vscode`,conf:`text`,CONTRIBUTORS:`text`,cpp:`cpp`,csh:`bash`,css:`css`,csv:`table`,cts:`typescript`,cxx:`cpp`,db:`database`,editorconfig:`text`,env:`text`,"env.development":`text`,"env.local":`text`,"env.production":`text`,eot:`font`,erb:`ruby`,fish:`bash`,gemspec:`ruby`,gif:`image`,go:`go`,gql:`graphql`,graphql:`graphql`,gz:`zip`,h:`c`,hh:`cpp`,hpp:`cpp`,htm:`html`,html:`html`,hxx:`cpp`,icns:`image`,ico:`image`,ini:`text`,inl:`cpp`,jar:`zip`,jpeg:`image`,jpg:`image`,js:`javascript`,json:`json`,json5:`json`,jsonc:`json`,jsonl:`json`,jsx:`javascript`,ksh:`bash`,less:`css`,LICENSE:`text`,log:`text`,markdown:`markdown`,mcp:`mcp`,md:`markdown`,mdx:`markdown`,"mdx.tsx":`markdown`,mjs:`javascript`,mm:`cpp`,mts:`typescript`,ods:`table`,otf:`font`,png:`image`,postcss:`css`,py:`python`,pyi:`python`,pyw:`python`,pyx:`python`,rake:`ruby`,rar:`zip`,rb:`ruby`,rs:`rust`,rst:`text`,rtf:`text`,sass:`css`,scss:`css`,sh:`bash`,sql:`database`,sqlite:`database`,sqlite3:`database`,styl:`css`,svelte:`svelte`,svg:`svg`,swift:`swift`,tar:`zip`,tf:`terraform`,tfstate:`terraform`,tfvars:`terraform`,tgz:`zip`,tif:`image`,tiff:`image`,ts:`typescript`,tsv:`table`,tsx:`typescript`,ttf:`font`,txt:`text`,vue:`vue`,war:`zip`,wasm:`wasm`,wast:`wasm`,wat:`wasm`,webp:`image`,woff:`font`,woff2:`font`,xhtml:`html`,xls:`table`,xlsx:`table`,xz:`zip`,yaml:`yml`,yml:`yml`,zig:`zig`,zip:`zip`,zsh:`bash`},ve={jsx:`react`,sass:`sass`,scss:`sass`,tsx:`react`},W=new Set([`bash`,`c`,`cpp`,`css`,`database`,`default`,`font`,`git`,`go`,`html`,`image`,`javascript`,`json`,`markdown`,`mcp`,`python`,`ruby`,`rust`,`swift`,`table`,`text`,`typescript`,`zip`]),ye=new Set([`complete`]);function G(e){return he[e===`none`?`minimal`:e]}function be(e){return`file-tree-builtin-${e}`}function xe(e){return e!==`none`&&ye.has(e)}function Se(e,t,n){if(e===`minimal`||e===`none`)return;let r=e===`complete`,i=ge[t.toLowerCase()];if(i!=null&&(r||W.has(i)))return i;for(let e of n){if(r){let t=ve[e];if(t!=null)return t}let t=_e[e];if(t!=null&&(r||W.has(t)))return t}return`default`}function Ce(e){return e.spriteSheet!=null||e.remap!=null||e.byFileName!=null||e.byFileExtension!=null||e.byFileNameContains!=null}function K(e){return e==null?{set:`complete`,colored:!0}:typeof e==`string`?{set:e,colored:!0}:{...e,set:e.set??(Ce(e)?`none`:`complete`),colored:e.colored??!0}}var we=e=>e.trim().toLowerCase(),Te=e=>e.split(`/`).at(-1)??e,Ee=e=>{let t=e.toLowerCase().split(`.`),n=[];for(let e=1;e<t.length;e+=1)n.push(t.slice(e).join(`.`));return n};function q(e,t){return typeof e==`string`?{name:e,remappedFrom:t}:{...e,remappedFrom:t}}function J(e){let t=K(e),n=t.remap,r=new Map;for(let[e,n]of Object.entries(t.byFileName??{}))r.set(e.toLowerCase(),n);let i=new Map;for(let[e,n]of Object.entries(t.byFileExtension??{}))i.set(we(e),n);let a=Object.entries(t.byFileNameContains??{}).map(([e,t])=>[e.toLowerCase(),t]);return{resolveIcon:(e,o)=>{if(e===`file-tree-icon-file`&&o!=null){let s=Te(o),c=s.toLowerCase(),l=r.get(c);if(l!=null)return q(l,e);for(let[t,n]of a)if(c.includes(t))return q(n,e);let u=Ee(s);for(let t of u){let n=i.get(t);if(n!=null)return q(n,e)}let d=Se(t.set,s,u);if(d!=null&&t.set!==`none`){if(d==="default"){let t=n?.[e];if(t!=null)return q(t,e)}return{name:be(d),remappedFrom:e,token:d}}}let s=n?.[e];return s==null?{name:e}:q(s,e)}}}var Y=`t3code-pierre-file-icon-sprite`,X=`
168
+ `)}\n</svg>`)}var U=H(n,pe),he={minimal:n,standard:U,complete:H(U,me)},ge={".babelrc":`babel`,".babelrc.json":`babel`,".bash_profile":`bash`,".bashrc":`bash`,".browserslistrc":`browserslist`,".dockerignore":`docker`,".eslintignore":`eslint`,".eslintrc":`eslint`,".eslintrc.cjs":`eslint`,".eslintrc.js":`eslint`,".eslintrc.json":`eslint`,".eslintrc.yaml":`eslint`,".eslintrc.yml":`eslint`,".gitattributes":`git`,".gitignore":`git`,".gitkeep":`git`,".gitmodules":`git`,".oxlintrc.json":`oxc`,".postcssrc":`postcss`,".postcssrc.json":`postcss`,".postcssrc.yaml":`postcss`,".postcssrc.yml":`postcss`,".prettierignore":`prettier`,".prettierrc":`prettier`,".prettierrc.cjs":`prettier`,".prettierrc.js":`prettier`,".prettierrc.json":`prettier`,".prettierrc.mjs":`prettier`,".prettierrc.toml":`prettier`,".prettierrc.yaml":`prettier`,".prettierrc.yml":`prettier`,".stylelintignore":`stylelint`,".stylelintrc":`stylelint`,".stylelintrc.cjs":`stylelint`,".stylelintrc.js":`stylelint`,".stylelintrc.json":`stylelint`,".stylelintrc.mjs":`stylelint`,".stylelintrc.yaml":`stylelint`,".stylelintrc.yml":`stylelint`,".terraform.lock.hcl":`terraform`,".zprofile":`bash`,".zshenv":`bash`,".zshrc":`bash`,"babel.config.cjs":`babel`,"babel.config.js":`babel`,"babel.config.json":`babel`,"babel.config.mjs":`babel`,"biome.json":`biome`,"biome.jsonc":`biome`,"bootstrap.bundle.js":`bootstrap`,"bootstrap.bundle.min.js":`bootstrap`,"bootstrap.css":`bootstrap`,"bootstrap.js":`bootstrap`,"bootstrap.min.css":`bootstrap`,"bootstrap.min.js":`bootstrap`,"bun.lock":`bun`,"bun.lockb":`bun`,"bunfig.toml":`bun`,"claude.md":`claude`,"compose.yaml":`docker`,"compose.yml":`docker`,"docker-compose.override.yml":`docker`,"docker-compose.yaml":`docker`,"docker-compose.yml":`docker`,dockerfile:`docker`,"eslint.config.cjs":`eslint`,"eslint.config.js":`eslint`,"eslint.config.mjs":`eslint`,"eslint.config.mts":`eslint`,"eslint.config.ts":`eslint`,gemfile:`ruby`,"next.config.js":`nextjs`,"next.config.mjs":`nextjs`,"next.config.mts":`nextjs`,"next.config.ts":`nextjs`,"postcss.config.cjs":`postcss`,"postcss.config.js":`postcss`,"postcss.config.mjs":`postcss`,"postcss.config.ts":`postcss`,"prettier.config.cjs":`prettier`,"prettier.config.js":`prettier`,"prettier.config.mjs":`prettier`,rakefile:`ruby`,"readme.md":`markdown`,"stylelint.config.cjs":`stylelint`,"stylelint.config.js":`stylelint`,"stylelint.config.mjs":`stylelint`,"svgo.config.cjs":`svgo`,"svgo.config.js":`svgo`,"svgo.config.mjs":`svgo`,"svgo.config.ts":`svgo`,"tailwind.config.cjs":`tailwind`,"tailwind.config.js":`tailwind`,"tailwind.config.mjs":`tailwind`,"tailwind.config.ts":`tailwind`,"vite.config.js":`vite`,"vite.config.mjs":`vite`,"vite.config.mts":`vite`,"vite.config.ts":`vite`,"webpack.config.babel.js":`webpack`,"webpack.config.cjs":`webpack`,"webpack.config.js":`webpack`,"webpack.config.mjs":`webpack`,"webpack.config.ts":`webpack`},_e={"7z":`zip`,astro:`astro`,AUTHORS:`text`,avif:`image`,bash:`bash`,bmp:`image`,bz2:`zip`,c:`c`,cc:`cpp`,cfg:`text`,CHANGELOG:`text`,cjs:`javascript`,"code-workspace":`vscode`,conf:`text`,CONTRIBUTORS:`text`,cpp:`cpp`,csh:`bash`,css:`css`,csv:`table`,cts:`typescript`,cxx:`cpp`,db:`database`,editorconfig:`text`,env:`text`,"env.development":`text`,"env.local":`text`,"env.production":`text`,eot:`font`,erb:`ruby`,fish:`bash`,gemspec:`ruby`,gif:`image`,go:`go`,gql:`graphql`,graphql:`graphql`,gz:`zip`,h:`c`,hh:`cpp`,hpp:`cpp`,htm:`html`,html:`html`,hxx:`cpp`,icns:`image`,ico:`image`,ini:`text`,inl:`cpp`,jar:`zip`,jpeg:`image`,jpg:`image`,js:`javascript`,json:`json`,json5:`json`,jsonc:`json`,jsonl:`json`,jsx:`javascript`,ksh:`bash`,less:`css`,LICENSE:`text`,log:`text`,markdown:`markdown`,mcp:`mcp`,md:`markdown`,mdx:`markdown`,"mdx.tsx":`markdown`,mjs:`javascript`,mm:`cpp`,mts:`typescript`,ods:`table`,otf:`font`,png:`image`,postcss:`css`,py:`python`,pyi:`python`,pyw:`python`,pyx:`python`,rake:`ruby`,rar:`zip`,rb:`ruby`,rs:`rust`,rst:`text`,rtf:`text`,sass:`css`,scss:`css`,sh:`bash`,sql:`database`,sqlite:`database`,sqlite3:`database`,styl:`css`,svelte:`svelte`,svg:`svg`,swift:`swift`,tar:`zip`,tf:`terraform`,tfstate:`terraform`,tfvars:`terraform`,tgz:`zip`,tif:`image`,tiff:`image`,ts:`typescript`,tsv:`table`,tsx:`typescript`,ttf:`font`,txt:`text`,vue:`vue`,war:`zip`,wasm:`wasm`,wast:`wasm`,wat:`wasm`,webp:`image`,woff:`font`,woff2:`font`,xhtml:`html`,xls:`table`,xlsx:`table`,xz:`zip`,yaml:`yml`,yml:`yml`,zig:`zig`,zip:`zip`,zsh:`bash`},ve={jsx:`react`,sass:`sass`,scss:`sass`,tsx:`react`},W=new Set([`bash`,`c`,`cpp`,`css`,`database`,`default`,`font`,`git`,`go`,`html`,`image`,`javascript`,`json`,`markdown`,`mcp`,`python`,`ruby`,`rust`,`swift`,`table`,`text`,`typescript`,`zip`]),ye=new Set([`complete`]);function G(e){return he[e===`none`?`minimal`:e]}function be(e){return`file-tree-builtin-${e}`}function xe(e){return e!==`none`&&ye.has(e)}function Se(e,t,n){if(e===`minimal`||e===`none`)return;let r=e===`complete`,i=ge[t.toLowerCase()];if(i!=null&&(r||W.has(i)))return i;for(let e of n){if(r){let t=ve[e];if(t!=null)return t}let t=_e[e];if(t!=null&&(r||W.has(t)))return t}return`default`}function Ce(e){return e.spriteSheet!=null||e.remap!=null||e.byFileName!=null||e.byFileExtension!=null||e.byFileNameContains!=null}function K(e){return e==null?{set:`complete`,colored:!0}:typeof e==`string`?{set:e,colored:!0}:{...e,set:e.set??(Ce(e)?`none`:`complete`),colored:e.colored??!0}}var we=e=>e.trim().toLowerCase(),Te=e=>e.split(`/`).at(-1)??e,Ee=e=>{let t=e.toLowerCase().split(`.`),n=[];for(let e=1;e<t.length;e+=1)n.push(t.slice(e).join(`.`));return n};function q(e,t){return typeof e==`string`?{name:e,remappedFrom:t}:{...e,remappedFrom:t}}function J(e){let t=K(e),n=t.remap,r=new Map;for(let[e,n]of Object.entries(t.byFileName??{}))r.set(e.toLowerCase(),n);let i=new Map;for(let[e,n]of Object.entries(t.byFileExtension??{}))i.set(we(e),n);let a=Object.entries(t.byFileNameContains??{}).map(([e,t])=>[e.toLowerCase(),t]);return{resolveIcon:(e,o)=>{if(e===`file-tree-icon-file`&&o!=null){let s=Te(o),c=s.toLowerCase(),l=r.get(c);if(l!=null)return q(l,e);for(let[t,n]of a)if(c.includes(t))return q(n,e);let u=Ee(s);for(let t of u){let n=i.get(t);if(n!=null)return q(n,e)}let d=Se(t.set,s,u);if(d!=null&&t.set!==`none`){if(d==="default"){let t=n?.[e];if(t!=null)return q(t,e)}return{name:be(d),remappedFrom:e,token:d}}}let s=n?.[e];return s==null?{name:e}:q(s,e)}}}var Y=`p4code-pierre-file-icon-sprite`,X=`
169
169
  <svg xmlns="http://www.w3.org/2000/svg" width="0" height="0" aria-hidden="true">
170
170
  <!-- Lucide Film icon, ISC license. -->
171
- <symbol id="t3-file-icon-video" viewBox="0 0 24 24">
171
+ <symbol id="p4-file-icon-video" viewBox="0 0 24 24">
172
172
  <g fill="none" stroke="#a631be" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
173
173
  <rect width="18" height="18" x="3" y="3" rx="2" />
174
174
  <path d="M7 3v18M3 7.5h4M3 12h18M3 16.5h4M17 3v18M17 7.5h4M17 16.5h4" />
175
175
  </g>
176
176
  </symbol>
177
- <symbol id="t3-file-icon-agents" viewBox="0 0 32 32">
177
+ <symbol id="p4-file-icon-agents" viewBox="0 0 32 32">
178
178
  <path fill="currentColor" d="M27.2 16c0-6.19-5.01-11.2-11.2-11.2C9.81 4.8 4.8 9.81 4.8 16S9.81 27.2 16 27.2c6.19 0 11.2-5.01 11.2-11.2Zm-5.6 2.1a1.4 1.4 0 1 1 0 2.8h-4.2a1.4 1.4 0 1 1 0-2.8Zm-11.2-6.8c.622-.373 1.42-.208 1.84.361l.079.119 2.1 3.5.088.171c.15.351.15.748 0 1.1l-.088.171-2.1 3.5a1.4 1.4 0 0 1-2.4-1.44L11.59 16l-1.67-2.78-.067-.127c-.302-.642-.075-1.42.547-1.79ZM30 16c0 7.73-6.27 14-14 14S2 23.73 2 16 8.27 2 16 2s14 6.27 14 14Z" />
179
179
  </symbol>
180
- <symbol id="t3-file-icon-pnpm" viewBox="0 0 32 32">
180
+ <symbol id="p4-file-icon-pnpm" viewBox="0 0 32 32">
181
181
  <path fill="#f9ad00" d="M30 10.75h-8.749V2H30Zm-9.626 0h-8.75V2h8.75Zm-9.625 0H2V2h8.749ZM30 20.375h-8.749v-8.75H30Z" />
182
182
  <path fill="currentColor" d="M20.374 20.375h-8.75v-8.75h8.75Zm0 9.625h-8.75v-8.75h8.75ZM30 30h-8.749v-8.75H30Zm-19.251 0H2v-8.75h8.749Z" />
183
183
  </symbol>
184
184
  <!-- Lucide Loader Circle icon, ISC license. -->
185
- <symbol id="t3-tree-icon-loading" viewBox="0 0 24 24">
185
+ <symbol id="p4-tree-icon-loading" viewBox="0 0 24 24">
186
186
  <path fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" d="M21 12a9 9 0 1 1-6.219-8.56" />
187
187
  </symbol>
188
188
  <!-- Lucide Diff icon, ISC license. -->
189
- <symbol id="t3-file-icon-diff" viewBox="0 0 24 24">
189
+ <symbol id="p4-file-icon-diff" viewBox="0 0 24 24">
190
190
  <path fill="none" style="stroke: light-dark(#199f43, #5ecc71)" stroke-width="2" stroke-linecap="round" d="M12 3v14M5 10h14M5 21h14" />
191
191
  </symbol>
192
192
  <!-- Lucide Code Xml icon, ISC license. -->
193
- <symbol id="t3-file-icon-xml" viewBox="0 0 24 24">
193
+ <symbol id="p4-file-icon-xml" viewBox="0 0 24 24">
194
194
  <path fill="none" style="stroke: light-dark(#d47628, #ffa359)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="m18 16 4-4-4-4M6 8l-4 4 4 4M14.5 4l-5 16" />
195
195
  </symbol>
196
196
  <!-- Language logos from Simple Icons, CC0. -->
197
- <symbol id="t3-file-icon-csharp" viewBox="0 0 24 24">
197
+ <symbol id="p4-file-icon-csharp" viewBox="0 0 24 24">
198
198
  <path style="fill: light-dark(#693acf, #9d6afb)" d="M1.194 7.543v8.913c0 1.103.588 2.122 1.544 2.674l7.718 4.456a3.086 3.086 0 0 0 3.088 0l7.718-4.456a3.087 3.087 0 0 0 1.544-2.674V7.543a3.084 3.084 0 0 0-1.544-2.673L13.544.414a3.086 3.086 0 0 0-3.088 0L2.738 4.87a3.085 3.085 0 0 0-1.544 2.673Zm5.403 2.914v3.087a.77.77 0 0 0 .772.772.773.773 0 0 0 .772-.772.773.773 0 0 1 1.317-.546.775.775 0 0 1 .226.546 2.314 2.314 0 1 1-4.631 0v-3.087c0-.615.244-1.203.679-1.637a2.312 2.312 0 0 1 3.274 0c.434.434.678 1.023.678 1.637a.769.769 0 0 1-.226.545.767.767 0 0 1-1.091 0 .77.77 0 0 1-.226-.545.77.77 0 0 0-.772-.772.771.771 0 0 0-.772.772Zm12.35 3.087a.77.77 0 0 1-.772.772h-.772v.772a.773.773 0 0 1-1.544 0v-.772h-1.544v.772a.773.773 0 0 1-1.317.546.775.775 0 0 1-.226-.546v-.772H12a.771.771 0 1 1 0-1.544h.772v-1.543H12a.77.77 0 1 1 0-1.544h.772v-.772a.773.773 0 0 1 1.317-.546.775.775 0 0 1 .226.546v.772h1.544v-.772a.773.773 0 0 1 1.544 0v.772h.772a.772.772 0 0 1 0 1.544h-.772v1.543h.772a.776.776 0 0 1 .772.772Zm-3.088-2.315h-1.544v1.543h1.544v-1.543Z" />
199
199
  </symbol>
200
- <symbol id="t3-file-icon-dart" viewBox="0 0 24 24">
200
+ <symbol id="p4-file-icon-dart" viewBox="0 0 24 24">
201
201
  <path style="fill: light-dark(#1ca1c7, #68cdf2)" d="M4.105 4.105S9.158 1.58 11.684.316a3.079 3.079 0 0 1 1.481-.315c.766.047 1.677.788 1.677.788L24 9.948v9.789h-4.263V24H9.789l-9-9C.303 14.5 0 13.795 0 13.105c0-.319.18-.818.316-1.105l3.789-7.895zm.679.679v11.787c.002.543.021 1.024.498 1.508L10.204 23h8.533v-4.263L4.784 4.784zm12.055-.678c-.899-.896-1.809-1.78-2.74-2.643-.302-.267-.567-.468-1.07-.462-.37.014-.87.195-.87.195L6.341 4.105l10.498.001z" />
202
202
  </symbol>
203
- <symbol id="t3-file-icon-elixir" viewBox="0 0 24 24">
203
+ <symbol id="p4-file-icon-elixir" viewBox="0 0 24 24">
204
204
  <path style="fill: light-dark(#a631be, #d568ea)" d="M19.793 16.575c0 3.752-2.927 7.426-7.743 7.426-5.249 0-7.843-3.71-7.843-8.29 0-5.21 3.892-12.952 8-15.647a.397.397 0 0 1 .61.371 9.716 9.716 0 0 0 1.694 6.518c.522.795 1.092 1.478 1.763 2.352.94 1.227 1.637 1.906 2.644 3.842l.015.028a7.107 7.107 0 0 1 .86 3.4z" />
205
205
  </symbol>
206
- <symbol id="t3-file-icon-haskell" viewBox="0 0 24 24">
206
+ <symbol id="p4-file-icon-haskell" viewBox="0 0 24 24">
207
207
  <path style="fill: light-dark(#693acf, #9d6afb)" d="M0 3.535L5.647 12 0 20.465h4.235L9.883 12 4.235 3.535zm5.647 0L11.294 12l-5.647 8.465h4.235l3.53-5.29 3.53 5.29h4.234L9.883 3.535zm8.941 4.938l1.883 2.822H24V8.473zm2.824 4.232l1.882 2.822H24v-2.822z" />
208
208
  </symbol>
209
- <symbol id="t3-file-icon-java" viewBox="0 0 24 24">
209
+ <symbol id="p4-file-icon-java" viewBox="0 0 24 24">
210
210
  <path style="fill: light-dark(#d47628, #ffa359)" d="M11.915 0 11.7.215C9.515 2.4 7.47 6.39 6.046 10.483c-1.064 1.024-3.633 2.81-3.711 3.551-.093.87 1.746 2.611 1.55 3.235-.198.625-1.304 1.408-1.014 1.939.1.188.823.011 1.277-.491a13.389 13.389 0 0 0-.017 2.14c.076.906.27 1.668.643 2.232.372.563.956.911 1.667.911.397 0 .727-.114 1.024-.264.298-.149.571-.33.91-.5.68-.34 1.634-.666 3.53-.604 1.903.062 2.872.39 3.559.704.687.314 1.15.664 1.925.664.767 0 1.395-.336 1.807-.9.412-.563.631-1.33.72-2.24.06-.623.055-1.32 0-2.066.454.45 1.117.604 1.213.424.29-.53-.816-1.314-1.013-1.937-.198-.624 1.642-2.366 1.549-3.236-.08-.748-2.707-2.568-3.748-3.586C16.428 6.374 14.308 2.394 12.13.215zm.175 6.038a2.95 2.95 0 0 1 2.943 2.942 2.95 2.95 0 0 1-2.943 2.943A2.95 2.95 0 0 1 9.148 8.98a2.95 2.95 0 0 1 2.942-2.942zM8.685 7.983a3.515 3.515 0 0 0-.145.997c0 1.951 1.6 3.55 3.55 3.55 1.95 0 3.55-1.598 3.55-3.55 0-.329-.046-.648-.132-.951.334.095.64.208.915.336a42.699 42.699 0 0 1 2.042 5.829c.678 2.545 1.01 4.92.846 6.607-.082.844-.29 1.51-.606 1.94-.315.431-.713.651-1.315.651-.593 0-.932-.27-1.673-.61-.741-.338-1.825-.694-3.792-.758-1.974-.064-3.073.293-3.821.669-.375.188-.659.373-.911.5s-.466.2-.752.2c-.53 0-.876-.209-1.16-.64-.285-.43-.474-1.101-.545-1.948-.141-1.693.176-4.069.823-6.614a43.155 43.155 0 0 1 1.934-5.783c.348-.167.749-.31 1.192-.425zm-3.382 4.362a.216.216 0 0 1 .13.031c-.166.56-.323 1.116-.463 1.665a33.849 33.849 0 0 0-.547 2.555 3.9 3.9 0 0 0-.2-.39c-.58-1.012-.914-1.642-1.16-2.08.315-.24 1.679-1.755 2.24-1.781zm13.394.01c.562.027 1.926 1.543 2.24 1.783-.246.438-.58 1.068-1.16 2.08a4.428 4.428 0 0 0-.163.309 32.354 32.354 0 0 0-.562-2.49 40.579 40.579 0 0 0-.482-1.652.216.216 0 0 1 .127-.03z" />
211
211
  </symbol>
212
- <symbol id="t3-file-icon-kotlin" viewBox="0 0 24 24">
212
+ <symbol id="p4-file-icon-kotlin" viewBox="0 0 24 24">
213
213
  <path style="fill: light-dark(#693acf, #9d6afb)" d="M24 24H0V0h24L12 12Z" />
214
214
  </symbol>
215
- <symbol id="t3-file-icon-lua" viewBox="0 0 24 24">
215
+ <symbol id="p4-file-icon-lua" viewBox="0 0 24 24">
216
216
  <path style="fill: light-dark(#1a85d4, #69b1ff)" d="M.38 10.377l-.272-.037c-.048.344-.082.695-.101 1.041l.275.016c.018-.34.051-.682.098-1.02zM4.136 3.289l-.184-.205c-.258.232-.509.48-.746.734l.202.188c.231-.248.476-.49.728-.717zM5.769 2.059l-.146-.235c-.296.186-.586.385-.863.594l.166.219c.27-.203.554-.399.843-.578zM1.824 18.369c.185.297.384.586.593.863l.22-.164c-.205-.271-.399-.555-.58-.844l-.233.145zM1.127 16.402l-.255.104c.129.318.274.635.431.943l.005.01.245-.125-.005-.01c-.153-.301-.295-.611-.421-.922zM.298 9.309l.269.063c.076-.332.168-.664.272-.986l-.261-.087c-.108.332-.202.672-.28 1.01zM.274 12.42l-.275.01c.012.348.04.699.083 1.043l.273-.033c-.042-.336-.069-.68-.081-1.02zM.256 14.506c.073.34.162.682.264 1.014l.263-.08c-.1-.326-.187-.658-.258-.99l-.269.056zM11.573.275L11.563 0c-.348.012-.699.039-1.044.082l.034.273c.338-.041.68-.068 1.02-.08zM23.221 8.566c.1.326.186.66.256.992l.27-.059c-.072-.34-.16-.682-.262-1.014l-.264.081zM17.621 1.389c-.309-.164-.627-.314-.947-.449l-.107.252c.314.133.625.281.926.439l.128-.242zM15.693.572c-.332-.105-.67-.199-1.01-.277l-.063.268c.332.076.664.168.988.273l.085-.264zM6.674 1.545c.298-.15.606-.291.916-.418L7.486.873c-.317.127-.632.272-.937.428l-.015.008.125.244.015-.008zM23.727 11.588l.275-.01a11.797 11.797 0 0 0-.082-1.045l-.273.033c.041.338.068.682.08 1.022zM13.654.105c-.346-.047-.696-.08-1.043-.098l-.014.273c.339.018.683.051 1.019.098l.038-.273zM9.544.527l-.058-.27c-.34.072-.681.16-1.014.264l.081.262c.325-.099.659-.185.991-.256zM1.921 5.469l.231.15c.185-.285.384-.566.592-.834l-.217-.17c-.213.276-.417.563-.606.854zM.943 7.318l.253.107c.132-.313.28-.625.439-.924l-.243-.128c-.163.307-.314.625-.449.945zM18.223 21.943l.145.234c.295-.186.586-.385.863-.594l-.164-.219c-.272.204-.557.4-.844.579zM21.248 19.219l.217.17c.215-.273.418-.561.607-.854l-.23-.148c-.186.285-.385.564-.594.832zM19.855 20.715l.184.203c.258-.23.51-.479.746-.732l-.201-.188c-.23.248-.477.488-.729.717zM22.359 17.504l.244.129c.162-.307.314-.625.449-.945l-.254-.107a11.27 11.27 0 0 1-.439.923zM23.617 13.629l.273.039c.049-.346.082-.695.102-1.043l-.275-.014c-.018.338-.051.682-.1 1.018zM23.156 15.621l.264.086c.107-.332.201-.67.279-1.01l-.268-.063c-.077.333-.169.665-.275.987zM22.453 6.672c.154.303.297.617.424.932l.256-.104c-.131-.322-.277-.643-.436-.953l-.244.125zM8.296 23.418c.331.107.67.201 1.009.279l.062-.268c-.331-.076-.663-.168-.986-.273l-.085.262zM10.335 23.889c.345.049.696.082 1.043.102l.014-.275c-.339-.018-.682-.051-1.019-.098l-.038.271zM17.326 22.449c-.303.154-.613.297-.926.424l.104.256c.318-.131.639-.275.947-.434l.004-.002-.123-.246-.006.002zM4.613 21.467c.274.213.562.418.854.605l.149-.23c-.285-.184-.565-.385-.833-.592l-.17.217zM12.417 23.725l.009.275c.348-.014.699-.041 1.045-.084l-.035-.271c-.336.041-.68.068-1.019.08zM6.37 22.604c.307.162.625.314.946.449l.107-.254c-.313-.133-.624-.279-.924-.439l-.129.244zM3.083 20.041c.233.258.48.51.734.746l.188-.201c-.249-.23-.49-.477-.717-.729l-.205.184zM14.445 23.475l.059.27c.34-.074.68-.162 1.014-.266l-.082-.262c-.325.099-.659.185-.991.258zM21.18.129A2.689 2.689 0 1 0 21.18 5.507 2.689 2.689 0 1 0 21.18.129zM15.324 15.447c0 .471.314.66.852.66.67 0 1.297-.396 1.297-1.016v-.645c-.23.107-.379.141-1.107.24-.735.109-1.042.306-1.042.761zM12 2.818c-5.07 0-9.18 4.109-9.18 9.18 0 5.068 4.11 9.18 9.18 9.18 5.07 0 9.18-4.111 9.18-9.18 0-5.07-4.11-9.18-9.18-9.18zm-2.487 13.77H5.771v-6.023h.769v5.346h2.974v.677zm4.13 0h-.619v-.67c-.405.57-.811.793-1.446.793-.843 0-1.38-.463-1.38-1.182v-3.271h.686v3c0 .52.347.85.893.85.719 0 1.181-.578 1.181-1.461v-2.389h.686v4.33zm-.53-8.393c0-1.484 1.205-2.689 2.689-2.689s2.688 1.205 2.688 2.689-1.203 2.688-2.688 2.688-2.689-1.203-2.689-2.688zm5.567 7.856v.52c-.223.059-.33.074-.471.074-.34 0-.637-.238-.711-.57-.381.406-.918.637-1.471.637-.877 0-1.422-.463-1.422-1.248 0-.527.256-.916.76-1.123.266-.107.414-.141 1.389-.264.545-.066.719-.191.719-.48v-.182c0-.412-.348-.645-.967-.645-.645 0-.957.24-1.016.77h-.693c.041-1 .686-1.404 1.734-1.404 1.066 0 1.627.412 1.627 1.182v2.412c0 .215.133.338.373.338.041-.002.074-.002.149-.017z" />
217
217
  </symbol>
218
- <symbol id="t3-file-icon-php" viewBox="0 0 24 24">
218
+ <symbol id="p4-file-icon-php" viewBox="0 0 24 24">
219
219
  <path style="fill: light-dark(#693acf, #9d6afb)" d="M7.01 10.207h-.944l-.515 2.648h.838c.556 0 .97-.105 1.242-.314.272-.21.455-.559.55-1.049.092-.47.05-.802-.124-.995-.175-.193-.523-.29-1.047-.29zM12 5.688C5.373 5.688 0 8.514 0 12s5.373 6.313 12 6.313S24 15.486 24 12c0-3.486-5.373-6.312-12-6.312zm-3.26 7.451c-.261.25-.575.438-.917.551-.336.108-.765.164-1.285.164H5.357l-.327 1.681H3.652l1.23-6.326h2.65c.797 0 1.378.209 1.744.628.366.418.476 1.002.33 1.752a2.836 2.836 0 0 1-.305.847c-.143.255-.33.49-.561.703zm4.024.715l.543-2.799c.063-.318.039-.536-.068-.651-.107-.116-.336-.174-.687-.174H11.46l-.704 3.625H9.388l1.23-6.327h1.367l-.327 1.682h1.218c.767 0 1.295.134 1.586.401s.378.7.263 1.299l-.572 2.944h-1.389zm7.597-2.265a2.782 2.782 0 0 1-.305.847c-.143.255-.33.49-.561.703a2.44 2.44 0 0 1-.917.551c-.336.108-.765.164-1.286.164h-1.18l-.327 1.682h-1.378l1.23-6.326h2.649c.797 0 1.378.209 1.744.628.366.417.477 1.001.331 1.751zM17.766 10.207h-.943l-.516 2.648h.838c.557 0 .971-.105 1.242-.314.272-.21.455-.559.551-1.049.092-.47.049-.802-.125-.995s-.524-.29-1.047-.29z" />
220
220
  </symbol>
221
- <symbol id="t3-file-icon-powershell" viewBox="0 0 24 24">
221
+ <symbol id="p4-file-icon-powershell" viewBox="0 0 24 24">
222
222
  <path style="fill: light-dark(#1a85d4, #69b1ff)" d="M23.181 2.974c.568 0 .923.463.792 1.035l-3.659 15.982c-.13.572-.697 1.035-1.265 1.035H.819c-.568 0-.923-.463-.792-1.035L3.686 4.009c.13-.572.697-1.035 1.265-1.035zm-8.375 9.346c.251-.394.227-.905-.09-1.243L9.122 5.125c-.38-.404-1.037-.407-1.466-.003-.429.402-.468 1.056-.088 1.46l4.662 4.96v.11l-7.42 5.374c-.45.327-.533.977-.187 1.453.346.476.991.597 1.44.27l8.229-5.91c.28-.196.438-.365.514-.52zm-2.796 4.399a.928.928 0 00-.934.923c0 .51.418.923.934.923h4.433a.928.928 0 00.934-.923.928.928 0 00-.934-.923z" />
223
223
  </symbol>
224
- <symbol id="t3-file-icon-r" viewBox="0 0 24 24">
224
+ <symbol id="p4-file-icon-r" viewBox="0 0 24 24">
225
225
  <path style="fill: light-dark(#1a85d4, #69b1ff)" d="M12 2.746c-6.627 0-12 3.599-12 8.037 0 3.897 4.144 7.144 9.64 7.88V16.26c-2.924-.915-4.925-2.755-4.925-4.877 0-3.035 4.084-5.494 9.12-5.494 5.038 0 8.757 1.683 8.757 5.494 0 1.976-.999 3.379-2.662 4.272.09.066.174.128.258.216.169.149.25.363.372.544 2.128-1.45 3.44-3.437 3.44-5.631 0-4.44-5.373-8.038-12-8.038zm-2.111 4.99v13.516l4.093-.002-.002-5.291h1.1c.225 0 .321.066.549.25.272.22.715.982.715.982l2.164 4.063 4.627-.002-2.864-4.826s-.086-.193-.265-.383a2.22 2.22 0 00-.582-.416c-.422-.214-1.149-.434-1.149-.434s3.578-.264 3.578-3.826c0-3.562-3.744-3.63-3.744-3.63zm4.127 2.93l2.478.002s1.149-.062 1.149 1.127c0 1.165-1.149 1.17-1.149 1.17h-2.478zm1.754 6.119c-.494.049-1.012.079-1.54.088v1.807a16.622 16.622 0 002.37-.473l-.471-.891s-.108-.183-.248-.394c-.039-.054-.08-.098-.111-.137z" />
226
226
  </symbol>
227
- <symbol id="t3-file-icon-scala" viewBox="0 0 24 24">
227
+ <symbol id="p4-file-icon-scala" viewBox="0 0 24 24">
228
228
  <path style="fill: light-dark(#d52c36, #ff6762)" d="M4.589 24c4.537 0 13.81-1.516 14.821-3v-5.729c-.957 1.408-10.284 2.912-14.821 2.912V24zM4.589 16.365c4.537 0 13.81-1.516 14.821-3V7.636c-.957 1.408-10.284 2.912-14.821 2.912v5.817zM4.589 8.729c4.537 0 13.81-1.516 14.821-3V0C18.453 1.408 9.126 2.912 4.589 2.912v5.817z" />
229
229
  </symbol>
230
- <symbol id="t3-file-icon-toml" viewBox="0 0 24 24">
230
+ <symbol id="p4-file-icon-toml" viewBox="0 0 24 24">
231
231
  <path style="fill: light-dark(#84848a, #adadb1)" d="M.014 0h5.34v2.652H2.888v18.681h2.468V24H.015V0Zm17.622 5.049v2.78h-4.274v12.935h-3.008V7.83H6.059V5.05h11.577ZM23.986 24h-5.34v-2.652h2.467V2.667h-2.468V0h5.34v24Z" />
232
232
  </symbol>
233
- </svg>`,Z={set:`complete`,colored:!0,spriteSheet:X,byFileName:{"package.json":`file-tree-builtin-npm`,"tsconfig.json":`file-tree-builtin-typescript`,"agents.md":`t3-file-icon-agents`,"pnpm-lock.yaml":`t3-file-icon-pnpm`,"pnpm-workspace.yaml":`t3-file-icon-pnpm`},byFileExtension:{...Object.fromEntries(e.map(e=>[e,`t3-file-icon-video`])),cs:`t3-file-icon-csharp`,csx:`t3-file-icon-csharp`,dart:`t3-file-icon-dart`,diff:`t3-file-icon-diff`,patch:`t3-file-icon-diff`,ex:`t3-file-icon-elixir`,exs:`t3-file-icon-elixir`,hs:`t3-file-icon-haskell`,lhs:`t3-file-icon-haskell`,java:`t3-file-icon-java`,kt:`t3-file-icon-kotlin`,kts:`t3-file-icon-kotlin`,lua:`t3-file-icon-lua`,php:`t3-file-icon-php`,ps1:`t3-file-icon-powershell`,psm1:`t3-file-icon-powershell`,psd1:`t3-file-icon-powershell`,r:`t3-file-icon-r`,scala:`t3-file-icon-scala`,toml:`t3-file-icon-toml`,xml:`t3-file-icon-xml`}},Q=J(Z),De={bash:`sh`,csharp:`cs`,elixir:`ex`,haskell:`hs`,javascript:`js`,jsx:`jsx`,kotlin:`kt`,markdown:`md`,mdx:`mdx`,plaintext:`txt`,powershell:`ps1`,python:`py`,ruby:`rb`,rust:`rs`,shell:`sh`,shellscript:`sh`,swift:`swift`,typescript:`ts`,tsx:`tsx`,yaml:`yml`};function Oe(e){let t=e.lastIndexOf(`/`);return t===-1?e:e.slice(t+1)}var ke={dockerfile:`Dockerfile`};function Ae(e){let t=e.toLowerCase();return ke[t]??`file.${De[t]??t}`}function $(e,n,r){if(n===`directory`)return null;let i=Q.resolveIcon(`file-tree-icon-file`,e);return i?.token==="default"&&r?Q.resolveIcon(`file-tree-icon-file`,t(e,r)):i}function je(e){return $(e,`file`)?.token!=="default"}function Me(){if(typeof document>`u`||document.getElementById(Y))return;let e=document.createElement(`div`);e.id=Y,e.setAttribute(`aria-hidden`,`true`),e.style.position=`absolute`,e.style.width=`0`,e.style.height=`0`,e.style.overflow=`hidden`,e.style.pointerEvents=`none`,e.innerHTML=`${G(`complete`)}${X}`,document.body.prepend(e)}export{$ as a,K as c,je as i,G as l,Oe as n,Ae as o,Me as r,J as s,Z as t,xe as u};
234
- //# sourceMappingURL=pierre-icons-duX6avqL.js.map
233
+ </svg>`,Z={set:`complete`,colored:!0,spriteSheet:X,byFileName:{"package.json":`file-tree-builtin-npm`,"tsconfig.json":`file-tree-builtin-typescript`,"agents.md":`p4-file-icon-agents`,"pnpm-lock.yaml":`p4-file-icon-pnpm`,"pnpm-workspace.yaml":`p4-file-icon-pnpm`},byFileExtension:{...Object.fromEntries(e.map(e=>[e,`p4-file-icon-video`])),cs:`p4-file-icon-csharp`,csx:`p4-file-icon-csharp`,dart:`p4-file-icon-dart`,diff:`p4-file-icon-diff`,patch:`p4-file-icon-diff`,ex:`p4-file-icon-elixir`,exs:`p4-file-icon-elixir`,hs:`p4-file-icon-haskell`,lhs:`p4-file-icon-haskell`,java:`p4-file-icon-java`,kt:`p4-file-icon-kotlin`,kts:`p4-file-icon-kotlin`,lua:`p4-file-icon-lua`,php:`p4-file-icon-php`,ps1:`p4-file-icon-powershell`,psm1:`p4-file-icon-powershell`,psd1:`p4-file-icon-powershell`,r:`p4-file-icon-r`,scala:`p4-file-icon-scala`,toml:`p4-file-icon-toml`,xml:`p4-file-icon-xml`}},Q=J(Z),De={bash:`sh`,csharp:`cs`,elixir:`ex`,haskell:`hs`,javascript:`js`,jsx:`jsx`,kotlin:`kt`,markdown:`md`,mdx:`mdx`,plaintext:`txt`,powershell:`ps1`,python:`py`,ruby:`rb`,rust:`rs`,shell:`sh`,shellscript:`sh`,swift:`swift`,typescript:`ts`,tsx:`tsx`,yaml:`yml`};function Oe(e){let t=e.lastIndexOf(`/`);return t===-1?e:e.slice(t+1)}var ke={dockerfile:`Dockerfile`};function Ae(e){let t=e.toLowerCase();return ke[t]??`file.${De[t]??t}`}function $(e,n,r){if(n===`directory`)return null;let i=Q.resolveIcon(`file-tree-icon-file`,e);return i?.token==="default"&&r?Q.resolveIcon(`file-tree-icon-file`,t(e,r)):i}function je(e){return $(e,`file`)?.token!=="default"}function Me(){if(typeof document>`u`||document.getElementById(Y))return;let e=document.createElement(`div`);e.id=Y,e.setAttribute(`aria-hidden`,`true`),e.style.position=`absolute`,e.style.width=`0`,e.style.height=`0`,e.style.overflow=`hidden`,e.style.pointerEvents=`none`,e.innerHTML=`${G(`complete`)}${X}`,document.body.prepend(e)}export{$ as a,K as c,je as i,G as l,Oe as n,Ae as o,Me as r,J as s,Z as t,xe as u};
234
+ //# sourceMappingURL=pierre-icons-Bhwlc2rO.js.map
@@ -1,2 +1,2 @@
1
- import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{r as t}from"./Icon-l19w4AjM.js";import{Ca as n,NE as r,Na as i,Ta as a,Ua as o,lE as s,t as c,vo as l}from"./utils-ChK8VEFC.js";import{a as u,c as d,i as f,l as p,n as m,o as h,r as g,s as _,t as v}from"./PopoverHandle-DRjGw1Yt.js";var y=e(t()),b=y.forwardRef(function(e,t){let{render:n,className:r,style:i,...o}=e,{store:s}=p(),c=a(o.id);return s.useSyncedValueWithCleanup(`titleElementId`,c),l(`h2`,e,{ref:t,props:[{id:c},o]})}),x=y.forwardRef(function(e,t){let{render:r,className:a,style:s,disabled:c=!1,nativeButton:u=!0,...d}=e,{buttonRef:m,getButtonProps:h}=i({disabled:c,focusableWhenDisabled:!1,native:u}),{store:g}=p();return f(),l(`button`,e,{ref:[t,m],props:[{onClick(e){g.setOpen(!1,n(o,e.nativeEvent))}},d,h]})}),S=r(),C=e(s(),1),w=v,T=d;function E(e){let t=(0,S.c)(8),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:r,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;return t[4]!==n||t[5]!==r||t[6]!==i?(a=(0,C.jsx)(_,{className:r,"data-slot":`popover-trigger`,...i,children:n}),t[4]=n,t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var D={auto:``,sm:`w-64`,md:`w-80`,lg:`w-96`},O={default:`py-4 [--viewport-inline-padding:--spacing(4)]`,compact:`py-2 [--viewport-inline-padding:--spacing(3)]`,none:`rounded-[calc(var(--radius-2xl)-1px)] py-0 [--viewport-inline-padding:0px]`};function k(e){let t=(0,S.c)(51),n,r,i,a,o,s,l,d,f,p,_,v,y,b,x;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],l=t[7],d=t[8],f=t[9],p=t[10],_=t[11],v=t[12],y=t[13],b=t[14],x=t[15]):({children:r,className:i,padding:s,scrollbar:d,variant:f,width:p,side:_,align:v,sideOffset:y,alignOffset:b,collisionAvoidance:a,tooltipStyle:x,keepMounted:l,anchor:n,...o}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=l,t[8]=d,t[9]=f,t[10]=p,t[11]=_,t[12]=v,t[13]=y,t[14]=b,t[15]=x);let w=s===void 0?`default`:s,T=d===void 0?`auto`:d,E=f===void 0?`default`:f,k=p===void 0?`auto`:p,A=_===void 0?`bottom`:_,j=v===void 0?`center`:v,M=y===void 0?4:y,N=b===void 0?0:b,P=x!==void 0&&x,F=l!==void 0&&l,I=F?`div`:m,L=E===`panel`?0:void 0,R=E===`panel`?`z-(--z-sheet) w-[min(calc(var(--thread-details-panel-width)+--spacing(4)),calc(var(--anchor-width)---spacing(2)))] transition-[top] duration-150 ease-out data-instant:transition-[top] motion-reduce:transition-none motion-reduce:data-instant:transition-none`:`z-[130]`,z;t[16]===R?z=t[17]:(z=c(`h-(--positioner-height) w-(--positioner-width) max-w-(--available-width) transition-transform data-instant:transition-none`,R),t[16]=R,t[17]=z);let B=E!==`panel`&&`dropdown-glass`,V=P&&`w-fit text-balance rounded-md text-xs shadow-md/5 before:rounded-[calc(var(--radius-md)-1px)]`,H=!P&&E!==`panel`&&`shadow-[0_16px_40px_-18px_rgb(0_0_0/55%)] dark:shadow-[0_18px_44px_-18px_rgb(0_0_0/80%)]`,U;t[18]!==i||t[19]!==B||t[20]!==V||t[21]!==H||t[22]!==E||t[23]!==k?(U=c(`relative flex h-(--popup-height,auto) w-(--popup-width,auto) origin-(--transform-origin) rounded-2xl text-popover-foreground outline-none transition-[width,height,scale,opacity] motion-reduce:transition-none before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-2xl)-1px)] before:shadow-[0_1px_--theme(--color-black/4%)] has-data-[slot=calendar]:rounded-xl has-data-[slot=calendar]:before:rounded-[calc(var(--radius-xl)-1px)] data-ending-style:scale-98 data-starting-style:scale-98 data-ending-style:opacity-0 data-starting-style:opacity-0 dark:before:shadow-[0_-1px_--theme(--color-white/6%)]`,B,V,H,k!==`auto`&&[`max-w-[calc(100vw-2rem)]`,D[k]],E===`panel`&&`w-full overflow-visible rounded-none border-0 bg-transparent shadow-none before:hidden [backdrop-filter:none] [-webkit-backdrop-filter:none]`,i),t[18]=i,t[19]=B,t[20]=V,t[21]=H,t[22]=E,t[23]=k,t[24]=U):U=t[24];let W=P&&w==="default"?`py-1 [--viewport-inline-padding:--spacing(2)]`:O[w],G=!P&&`not-data-transitioning:overflow-y-auto`,K=T===`hidden`&&`[scrollbar-width:none] [&::-webkit-scrollbar]:hidden`,q=E===`panel`&&`overflow-visible py-2 [--viewport-inline-padding:--spacing(2)]`,J;t[25]!==W||t[26]!==G||t[27]!==K||t[28]!==q?(J=c(`relative size-full max-h-(--available-height) overflow-clip px-(--viewport-inline-padding) has-data-[slot=calendar]:p-2 data-instant:transition-none **:data-current:data-ending-style:opacity-0 **:data-current:data-starting-style:opacity-0 **:data-previous:data-ending-style:opacity-0 **:data-previous:data-starting-style:opacity-0 **:data-current:w-[calc(var(--popup-width)-2*var(--viewport-inline-padding)-2px)] **:data-previous:w-[calc(var(--popup-width)-2*var(--viewport-inline-padding)-2px)] **:data-current:opacity-100 **:data-previous:opacity-100 **:data-current:transition-opacity **:data-previous:transition-opacity`,W,G,K,q),t[25]=W,t[26]=G,t[27]=K,t[28]=q,t[29]=J):J=t[29];let Y;t[30]!==I||t[31]!==r||t[32]!==J?(Y=(0,C.jsx)(I,{className:J,"data-slot":`popover-viewport`,children:r}),t[30]=I,t[31]=r,t[32]=J,t[33]=Y):Y=t[33];let X;t[34]!==o||t[35]!==U||t[36]!==Y?(X=(0,C.jsx)(g,{className:U,"data-slot":`popover-popup`,...o,children:Y}),t[34]=o,t[35]=U,t[36]=Y,t[37]=X):X=t[37];let Z;t[38]!==j||t[39]!==N||t[40]!==n||t[41]!==a||t[42]!==A||t[43]!==M||t[44]!==L||t[45]!==z||t[46]!==X?(Z=(0,C.jsx)(u,{align:j,alignOffset:N,anchor:n,collisionAvoidance:a,collisionPadding:L,className:z,"data-slot":`popover-positioner`,side:A,sideOffset:M,children:X}),t[38]=j,t[39]=N,t[40]=n,t[41]=a,t[42]=A,t[43]=M,t[44]=L,t[45]=z,t[46]=X,t[47]=Z):Z=t[47];let Q;return t[48]!==F||t[49]!==Z?(Q=(0,C.jsx)(h,{keepMounted:F,children:Z}),t[48]=F,t[49]=Z,t[50]=Q):Q=t[50],Q}function A(e){let t=(0,S.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,C.jsx)(x,{"data-slot":`popover-close`,...n}),t[2]=n,t[3]=r),r}function j(e){let t=(0,S.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=c(`font-semibold text-sm leading-none`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,C.jsx)(b,{className:i,"data-slot":`popover-title`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}export{j as a,k as i,A as n,E as o,w as r,T as t};
2
- //# sourceMappingURL=popover-BJ6nvlLO.js.map
1
+ import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{r as t}from"./Icon-l19w4AjM.js";import{Ca as n,NE as r,Na as i,Ta as a,Ua as o,lE as s,t as c,vo as l}from"./utils-BctiQ4Ue.js";import{a as u,c as d,i as f,l as p,n as m,o as h,r as g,s as _,t as v}from"./PopoverHandle-1bqR8KHF.js";var y=e(t()),b=y.forwardRef(function(e,t){let{render:n,className:r,style:i,...o}=e,{store:s}=p(),c=a(o.id);return s.useSyncedValueWithCleanup(`titleElementId`,c),l(`h2`,e,{ref:t,props:[{id:c},o]})}),x=y.forwardRef(function(e,t){let{render:r,className:a,style:s,disabled:c=!1,nativeButton:u=!0,...d}=e,{buttonRef:m,getButtonProps:h}=i({disabled:c,focusableWhenDisabled:!1,native:u}),{store:g}=p();return f(),l(`button`,e,{ref:[t,m],props:[{onClick(e){g.setOpen(!1,n(o,e.nativeEvent))}},d,h]})}),S=r(),C=e(s(),1),w=v,T=d;function E(e){let t=(0,S.c)(8),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:r,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;return t[4]!==n||t[5]!==r||t[6]!==i?(a=(0,C.jsx)(_,{className:r,"data-slot":`popover-trigger`,...i,children:n}),t[4]=n,t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var D={auto:``,sm:`w-64`,md:`w-80`,lg:`w-96`},O={default:`py-4 [--viewport-inline-padding:--spacing(4)]`,compact:`py-2 [--viewport-inline-padding:--spacing(3)]`,none:`rounded-[calc(var(--radius-2xl)-1px)] py-0 [--viewport-inline-padding:0px]`};function k(e){let t=(0,S.c)(51),n,r,i,a,o,s,l,d,f,p,_,v,y,b,x;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],l=t[7],d=t[8],f=t[9],p=t[10],_=t[11],v=t[12],y=t[13],b=t[14],x=t[15]):({children:r,className:i,padding:s,scrollbar:d,variant:f,width:p,side:_,align:v,sideOffset:y,alignOffset:b,collisionAvoidance:a,tooltipStyle:x,keepMounted:l,anchor:n,...o}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=l,t[8]=d,t[9]=f,t[10]=p,t[11]=_,t[12]=v,t[13]=y,t[14]=b,t[15]=x);let w=s===void 0?`default`:s,T=d===void 0?`auto`:d,E=f===void 0?`default`:f,k=p===void 0?`auto`:p,A=_===void 0?`bottom`:_,j=v===void 0?`center`:v,M=y===void 0?4:y,N=b===void 0?0:b,P=x!==void 0&&x,F=l!==void 0&&l,I=F?`div`:m,L=E===`panel`?0:void 0,R=E===`panel`?`z-(--z-sheet) w-[min(calc(var(--thread-details-panel-width)+--spacing(4)),calc(var(--anchor-width)---spacing(2)))] transition-[top] duration-150 ease-out data-instant:transition-[top] motion-reduce:transition-none motion-reduce:data-instant:transition-none`:`z-[130]`,z;t[16]===R?z=t[17]:(z=c(`h-(--positioner-height) w-(--positioner-width) max-w-(--available-width) transition-transform data-instant:transition-none`,R),t[16]=R,t[17]=z);let B=E!==`panel`&&`dropdown-glass`,V=P&&`w-fit text-balance rounded-md text-xs shadow-md/5 before:rounded-[calc(var(--radius-md)-1px)]`,H=!P&&E!==`panel`&&`shadow-[0_16px_40px_-18px_rgb(0_0_0/55%)] dark:shadow-[0_18px_44px_-18px_rgb(0_0_0/80%)]`,U;t[18]!==i||t[19]!==B||t[20]!==V||t[21]!==H||t[22]!==E||t[23]!==k?(U=c(`relative flex h-(--popup-height,auto) w-(--popup-width,auto) origin-(--transform-origin) rounded-2xl text-popover-foreground outline-none transition-[width,height,scale,opacity] motion-reduce:transition-none before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-2xl)-1px)] before:shadow-[0_1px_--theme(--color-black/4%)] has-data-[slot=calendar]:rounded-xl has-data-[slot=calendar]:before:rounded-[calc(var(--radius-xl)-1px)] data-ending-style:scale-98 data-starting-style:scale-98 data-ending-style:opacity-0 data-starting-style:opacity-0 dark:before:shadow-[0_-1px_--theme(--color-white/6%)]`,B,V,H,k!==`auto`&&[`max-w-[calc(100vw-2rem)]`,D[k]],E===`panel`&&`w-full overflow-visible rounded-none border-0 bg-transparent shadow-none before:hidden [backdrop-filter:none] [-webkit-backdrop-filter:none]`,i),t[18]=i,t[19]=B,t[20]=V,t[21]=H,t[22]=E,t[23]=k,t[24]=U):U=t[24];let W=P&&w==="default"?`py-1 [--viewport-inline-padding:--spacing(2)]`:O[w],G=!P&&`not-data-transitioning:overflow-y-auto`,K=T===`hidden`&&`[scrollbar-width:none] [&::-webkit-scrollbar]:hidden`,q=E===`panel`&&`overflow-visible py-2 [--viewport-inline-padding:--spacing(2)]`,J;t[25]!==W||t[26]!==G||t[27]!==K||t[28]!==q?(J=c(`relative size-full max-h-(--available-height) overflow-clip px-(--viewport-inline-padding) has-data-[slot=calendar]:p-2 data-instant:transition-none **:data-current:data-ending-style:opacity-0 **:data-current:data-starting-style:opacity-0 **:data-previous:data-ending-style:opacity-0 **:data-previous:data-starting-style:opacity-0 **:data-current:w-[calc(var(--popup-width)-2*var(--viewport-inline-padding)-2px)] **:data-previous:w-[calc(var(--popup-width)-2*var(--viewport-inline-padding)-2px)] **:data-current:opacity-100 **:data-previous:opacity-100 **:data-current:transition-opacity **:data-previous:transition-opacity`,W,G,K,q),t[25]=W,t[26]=G,t[27]=K,t[28]=q,t[29]=J):J=t[29];let Y;t[30]!==I||t[31]!==r||t[32]!==J?(Y=(0,C.jsx)(I,{className:J,"data-slot":`popover-viewport`,children:r}),t[30]=I,t[31]=r,t[32]=J,t[33]=Y):Y=t[33];let X;t[34]!==o||t[35]!==U||t[36]!==Y?(X=(0,C.jsx)(g,{className:U,"data-slot":`popover-popup`,...o,children:Y}),t[34]=o,t[35]=U,t[36]=Y,t[37]=X):X=t[37];let Z;t[38]!==j||t[39]!==N||t[40]!==n||t[41]!==a||t[42]!==A||t[43]!==M||t[44]!==L||t[45]!==z||t[46]!==X?(Z=(0,C.jsx)(u,{align:j,alignOffset:N,anchor:n,collisionAvoidance:a,collisionPadding:L,className:z,"data-slot":`popover-positioner`,side:A,sideOffset:M,children:X}),t[38]=j,t[39]=N,t[40]=n,t[41]=a,t[42]=A,t[43]=M,t[44]=L,t[45]=z,t[46]=X,t[47]=Z):Z=t[47];let Q;return t[48]!==F||t[49]!==Z?(Q=(0,C.jsx)(h,{keepMounted:F,children:Z}),t[48]=F,t[49]=Z,t[50]=Q):Q=t[50],Q}function A(e){let t=(0,S.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,C.jsx)(x,{"data-slot":`popover-close`,...n}),t[2]=n,t[3]=r),r}function j(e){let t=(0,S.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=c(`font-semibold text-sm leading-none`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,C.jsx)(b,{className:i,"data-slot":`popover-title`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}export{j as a,k as i,A as n,E as o,w as r,T as t};
2
+ //# sourceMappingURL=popover-2GkuSL2i.js.map
@@ -1,2 +1,2 @@
1
- import{By as e,Cy as t,Iy as n,Ny as r,Oy as i,db as a,ib as o}from"./utils-ChK8VEFC.js";var s=new Set([`localhost`,`127.0.0.1`,`0.0.0.0`,`::1`]);[...s];var c=/^(?:localhost|127\.0\.0\.1|0\.0\.0\.0|\[::1?\])(?::|\/|$)/i;function l(e){return!!(s.has(e)||e===`[::1]`)}var u=class extends e()(`PreviewUrlNormalizationError`,{inputLength:r,reason:i([`empty`,`parse`,`unsupported-protocol`]),protocol:a(n),cause:a(t())}){get message(){let e=this.protocol===void 0?``:`: ${this.protocol}`;return`Invalid preview URL (${this.reason}${e}; input length ${this.inputLength}).`}};o(u);function d(e){return/^([A-Za-z][A-Za-z\d+.-]*):/.exec(e)?.[1]?.toLowerCase().concat(`:`)}var f=`https://duckduckgo.com/?q=`,p=/^(?:localhost|\d{1,3}(?:\.\d{1,3}){3}|\[[\da-f:.]+\])$/i,m=/^[^/?#:@]+:\d+(?:[/?#]|$)/,h=new Set([`about:`,`blob:`,`chrome:`,`data:`,`file:`,`ftp:`,`javascript:`,`mailto:`,`sms:`,`ssh:`,`tel:`,`view-source:`,`ws:`,`wss:`]);function g(e){let t=e.trim();if(/^[a-z][a-z\d+.-]*:\/\//i.test(t)||t.length===0)return _(t);if(!/\s/.test(t)){let n=d(t);if(n!==void 0&&(h.has(n)||!m.test(t))){if(n!==`http:`&&n!==`https:`)throw new u({inputLength:e.length,reason:`unsupported-protocol`,protocol:n});return _(t)}let r=t.split(/[/?#]/,1)[0]??``,i=r.replace(/^[^@]*@/,``).replace(/:\d+$/,``);if(i.length<r.replace(/^[^@]*@/,``).length||p.test(i)||/^[^.]+(?:\.[^.]+)+\.?$/.test(i))try{return _(t)}catch{}}return`${f}${encodeURIComponent(t)}`}function _(e){let t=e.trim();if(t.length===0)throw new u({inputLength:e.length,reason:`empty`});let n=c.test(t),r=t.includes(`://`)?t:`${n?`http`:`https`}://${t}`,i;try{i=new URL(r)}catch(t){throw new u({inputLength:e.length,reason:`parse`,protocol:d(r),cause:t})}if(i.protocol!==`http:`&&i.protocol!==`https:`)throw new u({inputLength:e.length,reason:`unsupported-protocol`,protocol:i.protocol});return i.href}export{_ as n,g as r,l as t};
2
- //# sourceMappingURL=preview-Cf8NQ1hB.js.map
1
+ import{By as e,Cy as t,Iy as n,Ny as r,Oy as i,db as a,ib as o}from"./utils-BctiQ4Ue.js";var s=new Set([`localhost`,`127.0.0.1`,`0.0.0.0`,`::1`]);[...s];var c=/^(?:localhost|127\.0\.0\.1|0\.0\.0\.0|\[::1?\])(?::|\/|$)/i;function l(e){return!!(s.has(e)||e===`[::1]`)}var u=class extends e()(`PreviewUrlNormalizationError`,{inputLength:r,reason:i([`empty`,`parse`,`unsupported-protocol`]),protocol:a(n),cause:a(t())}){get message(){let e=this.protocol===void 0?``:`: ${this.protocol}`;return`Invalid preview URL (${this.reason}${e}; input length ${this.inputLength}).`}};o(u);function d(e){return/^([A-Za-z][A-Za-z\d+.-]*):/.exec(e)?.[1]?.toLowerCase().concat(`:`)}var f=`https://duckduckgo.com/?q=`,p=/^(?:localhost|\d{1,3}(?:\.\d{1,3}){3}|\[[\da-f:.]+\])$/i,m=/^[^/?#:@]+:\d+(?:[/?#]|$)/,h=new Set([`about:`,`blob:`,`chrome:`,`data:`,`file:`,`ftp:`,`javascript:`,`mailto:`,`sms:`,`ssh:`,`tel:`,`view-source:`,`ws:`,`wss:`]);function g(e){let t=e.trim();if(/^[a-z][a-z\d+.-]*:\/\//i.test(t)||t.length===0)return _(t);if(!/\s/.test(t)){let n=d(t);if(n!==void 0&&(h.has(n)||!m.test(t))){if(n!==`http:`&&n!==`https:`)throw new u({inputLength:e.length,reason:`unsupported-protocol`,protocol:n});return _(t)}let r=t.split(/[/?#]/,1)[0]??``,i=r.replace(/^[^@]*@/,``).replace(/:\d+$/,``);if(i.length<r.replace(/^[^@]*@/,``).length||p.test(i)||/^[^.]+(?:\.[^.]+)+\.?$/.test(i))try{return _(t)}catch{}}return`${f}${encodeURIComponent(t)}`}function _(e){let t=e.trim();if(t.length===0)throw new u({inputLength:e.length,reason:`empty`});let n=c.test(t),r=t.includes(`://`)?t:`${n?`http`:`https`}://${t}`,i;try{i=new URL(r)}catch(t){throw new u({inputLength:e.length,reason:`parse`,protocol:d(r),cause:t})}if(i.protocol!==`http:`&&i.protocol!==`https:`)throw new u({inputLength:e.length,reason:`unsupported-protocol`,protocol:i.protocol});return i.href}export{_ as n,g as r,l as t};
2
+ //# sourceMappingURL=preview-BnLuRquy.js.map
@@ -1,2 +1,2 @@
1
- import{Lc as e}from"./utils-ChK8VEFC.js";import{M as t,N as n,P as r,k as i}from"./runtime-CvGlGrbH.js";import{t as a}from"./runtime-DgUiDuq4.js";function o(a){let o=i(),s=i(),c={mode:`serial`,key:({environmentId:e,input:t})=>JSON.stringify([e,t.threadId])};return{list:n(a,{label:`environment-data:preview:list`,tag:e.previewList,staleTimeMs:5e3}),events:r(a,{label:`environment-data:preview:events`,tag:e.subscribePreviewEvents}),discoveredServers:r(a,{label:`environment-data:preview:discovered-servers`,tag:e.subscribeDiscoveredLocalServers,idleTtlMs:0}),open:t(a,{label:`environment-data:preview:open`,tag:e.previewOpen,scheduler:o,concurrency:c}),navigate:t(a,{label:`environment-data:preview:navigate`,tag:e.previewNavigate,scheduler:o,concurrency:c}),resize:t(a,{label:`environment-data:preview:resize`,tag:e.previewResize,scheduler:o,concurrency:c}),adjust:t(a,{label:`environment-data:preview:adjust`,tag:e.previewAdjust,scheduler:o,concurrency:c}),refresh:t(a,{label:`environment-data:preview:refresh`,tag:e.previewRefresh,scheduler:o,concurrency:c}),close:t(a,{label:`environment-data:preview:close`,tag:e.previewClose,scheduler:o,concurrency:c}),clearProfile:t(a,{label:`environment-data:preview:clear-profile`,tag:e.previewClearProfile}),reportProfiles:t(a,{label:`environment-data:preview:report-profiles`,tag:e.previewReportProfiles,concurrency:{mode:`latest`,key:({environmentId:e})=>e}}),reportStatus:t(a,{label:`environment-data:preview:report-status`,tag:e.previewReportStatus,scheduler:s,concurrency:{mode:`latest`,key:({environmentId:e,input:t})=>JSON.stringify([e,t.threadId,t.tabId])}})}}var s=o(a);export{s as t};
2
- //# sourceMappingURL=preview-iwQ6KbXA.js.map
1
+ import{Lc as e}from"./utils-BctiQ4Ue.js";import{M as t,N as n,P as r,k as i}from"./runtime-DATbE5vH.js";import{t as a}from"./runtime-Dks8Wo5P.js";function o(a){let o=i(),s=i(),c={mode:`serial`,key:({environmentId:e,input:t})=>JSON.stringify([e,t.threadId])};return{list:n(a,{label:`environment-data:preview:list`,tag:e.previewList,staleTimeMs:5e3}),events:r(a,{label:`environment-data:preview:events`,tag:e.subscribePreviewEvents}),discoveredServers:r(a,{label:`environment-data:preview:discovered-servers`,tag:e.subscribeDiscoveredLocalServers,idleTtlMs:0}),open:t(a,{label:`environment-data:preview:open`,tag:e.previewOpen,scheduler:o,concurrency:c}),navigate:t(a,{label:`environment-data:preview:navigate`,tag:e.previewNavigate,scheduler:o,concurrency:c}),resize:t(a,{label:`environment-data:preview:resize`,tag:e.previewResize,scheduler:o,concurrency:c}),adjust:t(a,{label:`environment-data:preview:adjust`,tag:e.previewAdjust,scheduler:o,concurrency:c}),refresh:t(a,{label:`environment-data:preview:refresh`,tag:e.previewRefresh,scheduler:o,concurrency:c}),close:t(a,{label:`environment-data:preview:close`,tag:e.previewClose,scheduler:o,concurrency:c}),clearProfile:t(a,{label:`environment-data:preview:clear-profile`,tag:e.previewClearProfile}),reportProfiles:t(a,{label:`environment-data:preview:report-profiles`,tag:e.previewReportProfiles,concurrency:{mode:`latest`,key:({environmentId:e})=>e}}),reportStatus:t(a,{label:`environment-data:preview:report-status`,tag:e.previewReportStatus,scheduler:s,concurrency:{mode:`latest`,key:({environmentId:e,input:t})=>JSON.stringify([e,t.threadId,t.tabId])}})}}var s=o(a);export{s as t};
2
+ //# sourceMappingURL=preview-DWVmLubs.js.map
@@ -1,2 +1,2 @@
1
- import{Js as e,W as t}from"./utils-ChK8VEFC.js";var n=(e,t)=>{let n=Object.entries(t.query);return n.length===0?e:`${e}${e.includes(`?`)?`&`:`?`}${new URLSearchParams(n).toString()}`};function r(e){return e.kind===`browser`?`browser:${e.tabId}`:`device:${encodeURIComponent(e.hostId)}:${encodeURIComponent(e.deviceId)}`}var i=e=>({kind:`browser`,tabId:e}),a=t()(t=>({byThreadKey:{},open:(n,i)=>t(t=>{let a=e(n),o=t.byThreadKey[a];return o&&r(o.source)===r(i)?t:{byThreadKey:{...t.byThreadKey,[a]:{source:i,position:o?.position??null,width:o?.width??null,lastInteraction:o?.lastInteraction??`drag`}}}}),close:n=>t(t=>{let r=e(n);if(!(r in t.byThreadKey))return t;let{[r]:i,...a}=t.byThreadKey;return{byThreadKey:a}}),move:(n,i,a)=>t(t=>{let o=e(n),s=t.byThreadKey[o];return!s||r(s.source)!==i||s.position?.x===a.x&&s.position.y===a.y&&s.lastInteraction===`drag`?t:{byThreadKey:{...t.byThreadKey,[o]:{...s,position:a,lastInteraction:`drag`}}}}),resize:(n,i,a,o)=>t(t=>{let s=e(n),c=t.byThreadKey[s];return!c||r(c.source)!==i||c.width===a&&c.lastInteraction===`resize`&&(!o||c.position?.x===o.x&&c.position.y===o.y)?t:{byThreadKey:{...t.byThreadKey,[s]:{...c,width:a,position:o??c.position,lastInteraction:`resize`}}}}),removeThread:n=>t(t=>{let r=e(n);if(!(r in t.byThreadKey))return t;let{[r]:i,...a}=t.byThreadKey;return{byThreadKey:a}})}));function o(t,n){return n?t[e(n)]??null:null}export{n as a,a as i,r as n,o as r,i as t};
2
- //# sourceMappingURL=previewMiniPlayerStore-C-S6Z_7R.js.map
1
+ import{Js as e,W as t}from"./utils-BctiQ4Ue.js";var n=(e,t)=>{let n=Object.entries(t.query);return n.length===0?e:`${e}${e.includes(`?`)?`&`:`?`}${new URLSearchParams(n).toString()}`};function r(e){return e.kind===`browser`?`browser:${e.tabId}`:`device:${encodeURIComponent(e.hostId)}:${encodeURIComponent(e.deviceId)}`}var i=e=>({kind:`browser`,tabId:e}),a=t()(t=>({byThreadKey:{},open:(n,i)=>t(t=>{let a=e(n),o=t.byThreadKey[a];return o&&r(o.source)===r(i)?t:{byThreadKey:{...t.byThreadKey,[a]:{source:i,position:o?.position??null,width:o?.width??null,lastInteraction:o?.lastInteraction??`drag`}}}}),close:n=>t(t=>{let r=e(n);if(!(r in t.byThreadKey))return t;let{[r]:i,...a}=t.byThreadKey;return{byThreadKey:a}}),move:(n,i,a)=>t(t=>{let o=e(n),s=t.byThreadKey[o];return!s||r(s.source)!==i||s.position?.x===a.x&&s.position.y===a.y&&s.lastInteraction===`drag`?t:{byThreadKey:{...t.byThreadKey,[o]:{...s,position:a,lastInteraction:`drag`}}}}),resize:(n,i,a,o)=>t(t=>{let s=e(n),c=t.byThreadKey[s];return!c||r(c.source)!==i||c.width===a&&c.lastInteraction===`resize`&&(!o||c.position?.x===o.x&&c.position.y===o.y)?t:{byThreadKey:{...t.byThreadKey,[s]:{...c,width:a,position:o??c.position,lastInteraction:`resize`}}}}),removeThread:n=>t(t=>{let r=e(n);if(!(r in t.byThreadKey))return t;let{[r]:i,...a}=t.byThreadKey;return{byThreadKey:a}})}));function o(t,n){return n?t[e(n)]??null:null}export{n as a,a as i,r as n,o as r,i as t};
2
+ //# sourceMappingURL=previewMiniPlayerStore-B2cko9-z.js.map