@inkeep/open-knowledge 0.89.1-beta.3 → 0.89.3-beta.0

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 (321) hide show
  1. package/dist/{cli-BNTVA4cX.mjs → cli-CQfCrneK.mjs} +6 -6
  2. package/dist/cli.mjs +1 -1
  3. package/dist/constants-CpsSLH8K.mjs +1 -0
  4. package/dist/index.mjs +1 -1
  5. package/dist/init-C53kUCVN.mjs +1 -0
  6. package/dist/{init-DQMXb7pz.mjs → init-DMEgsCO_.mjs} +2 -2
  7. package/dist/{launch-json-removal-XzwmH8VA.mjs → launch-json-removal-BRGir6sa.mjs} +1 -1
  8. package/dist/{loader-DZHQrNG-.mjs → loader-CA-sFbfB.mjs} +1 -1
  9. package/dist/loader-ozL1G3tH.mjs +1 -0
  10. package/dist/{preview-COH7UFVW.mjs → preview-BNeOtuYk.mjs} +1 -1
  11. package/dist/preview-eXuw0ZsX.mjs +1 -0
  12. package/dist/public/assets/{AboutSection-tRd4zWnA.js → AboutSection-Wga6ljal.js} +1 -1
  13. package/dist/public/assets/{AccountSection-D-Zall4m.js → AccountSection-BxA3npGg.js} +1 -1
  14. package/dist/public/assets/{ActivityModeContent-Df-RqhPu.js → ActivityModeContent-gpbFdkTU.js} +1 -1
  15. package/dist/public/assets/{AddPropertiesButton-BrWvNG4i.js → AddPropertiesButton-V-9pfunh.js} +2 -2
  16. package/dist/public/assets/{AgentConnectionsSection-zBXwBiiA.js → AgentConnectionsSection-BGriqiir.js} +1 -1
  17. package/dist/public/assets/{AgentDiffPane-sAkF_NLr.js → AgentDiffPane-yQbqJfsi.js} +1 -1
  18. package/dist/public/assets/{AgentIconCluster-B9rTFji5.js → AgentIconCluster-DJYZ5s2f.js} +1 -1
  19. package/dist/public/assets/{AgentThreadClientBinder-BXRVPDki.js → AgentThreadClientBinder-CzUmSXiH.js} +1 -1
  20. package/dist/public/assets/{AppMenubar-VrP4K7e4.js → AppMenubar-N_LouakH.js} +1 -1
  21. package/dist/public/assets/{AttachmentsSection-D76XKrhk.js → AttachmentsSection-B_OUperC.js} +1 -1
  22. package/dist/public/assets/{AuthModal-B9y3bqhO.js → AuthModal-CJedoV6p.js} +1 -1
  23. package/dist/public/assets/{BugReportHistory-BsyHsVNu.js → BugReportHistory-D-crQhE_.js} +1 -1
  24. package/dist/public/assets/{BugReportHistoryDialog-Bm48RkG0.js → BugReportHistoryDialog-C44scJWu.js} +1 -1
  25. package/dist/public/assets/{CodeMirrorEditor-UCMRAMCV-jW_2l0nP.js → CodeMirrorEditor-UCMRAMCV-BjEQv2x_.js} +1 -1
  26. package/dist/public/assets/{CodeMirrorPropInput-CpXyhdyX.js → CodeMirrorPropInput-BjXlLQ_X.js} +3 -3
  27. package/dist/public/assets/{ConfigSharingInfoTooltip-CI5Q4134.js → ConfigSharingInfoTooltip-CmaSkr99.js} +1 -1
  28. package/dist/public/assets/{ConsentDialogBody-Dfwwu4vC.js → ConsentDialogBody-B20jtW8L.js} +1 -1
  29. package/dist/public/assets/{ContentRulesSection-ciIo1Fox.js → ContentRulesSection-BsUQ0zJF.js} +1 -1
  30. package/dist/public/assets/{CopyButton-CTEyT6XZ.js → CopyButton-BGXlB8sP.js} +1 -1
  31. package/dist/public/assets/{DeleteConfirmationDialog-BmShNEdj.js → DeleteConfirmationDialog-DJ6Qtngd.js} +1 -1
  32. package/dist/public/assets/{DiffViewBoundary-CQYIlOsP.js → DiffViewBoundary-hs_VDrka.js} +1 -1
  33. package/dist/public/assets/DocumentContext-C3d3aPqq.js +110 -0
  34. package/dist/public/assets/{EditorModeToggle-BNWcaoac.js → EditorModeToggle-Bgispkgy.js} +1 -1
  35. package/dist/public/assets/{ExcalidrawDocEditor-zJYliunZ.js → ExcalidrawDocEditor-CL1aJRLt.js} +1 -1
  36. package/dist/public/assets/FeedbackForm-D0ym4bbj.js +1 -0
  37. package/dist/public/assets/{GraphPanel-BTP-s4xS.js → GraphPanel-CA7VLMPM.js} +1 -1
  38. package/dist/public/assets/{HotkeysSection-B7aU1Xml.js → HotkeysSection-DrZRSXKK.js} +1 -1
  39. package/dist/public/assets/{ImageAttachments-DtqOrDVB.js → ImageAttachments-DLQC8k-Z.js} +1 -1
  40. package/dist/public/assets/{ImportSkillDialog-BQCpvSBy.js → ImportSkillDialog-BMeOmhlC.js} +1 -1
  41. package/dist/public/assets/{InstallInClaudeDesktopDialog-BmZRe4ai.js → InstallInClaudeDesktopDialog-C_RQYp3V.js} +1 -1
  42. package/dist/public/assets/{IntegrationsSection-BhYEcdaY.js → IntegrationsSection-gn7Gi9_7.js} +1 -1
  43. package/dist/public/assets/{LinkPreviewsSection-CKiImo2e.js → LinkPreviewsSection-DJl-IPy_.js} +1 -1
  44. package/dist/public/assets/{LintConfigEditor-CvXRnn-2.js → LintConfigEditor-BaIj6Zsp.js} +1 -1
  45. package/dist/public/assets/LintingSection-Dpym-WwL.js +1 -0
  46. package/dist/public/assets/ManagedArtifactProperties-BKGAnhMk.js +1 -0
  47. package/dist/public/assets/{ManagedArtifactProperties-CzlNCWxw.js → ManagedArtifactProperties-DAKwfoMZ.js} +1 -1
  48. package/dist/public/assets/{McpConsentDialogBody-9-QJlWro.js → McpConsentDialogBody-CpTyyWwe.js} +1 -1
  49. package/dist/public/assets/Mermaid--NaGL3Jp.js +2 -0
  50. package/dist/public/assets/MermaidDocEditor-BIvYQTbS.js +1 -0
  51. package/dist/public/assets/{NetworkAccessSection-CVtdkBHf.js → NetworkAccessSection-Bhvpr6OE.js} +1 -1
  52. package/dist/public/assets/{OkCliPathRow-Cp6iztN6.js → OkCliPathRow-S85j6YMf.js} +1 -1
  53. package/dist/public/assets/{OkignoreSection-DnoLrVcI.js → OkignoreSection-BfbduXqI.js} +1 -1
  54. package/dist/public/assets/{OpenInAgentMenuItem-N6xIhi4p.js → OpenInAgentMenuItem-BBBy2Gy8.js} +1 -1
  55. package/dist/public/assets/{PageListContext-BlD9uQe7.js → PageListContext-DpKyZSYI.js} +1 -1
  56. package/dist/public/assets/{ProjectTemplatesSection-s7icbspb.js → ProjectTemplatesSection-DnNyoDmD.js} +1 -1
  57. package/dist/public/assets/{PropertyDisplayRow-H7bj6f5t.js → PropertyDisplayRow-DCVZcKLb.js} +2 -2
  58. package/dist/public/assets/PublishToGitHubDialog-UHsZa7GM.js +1 -0
  59. package/dist/public/assets/{RegisteredAgentIcon-B5-umwTf.js → RegisteredAgentIcon-DtQ0KEVm.js} +1 -1
  60. package/dist/public/assets/{ReportBugDialogBody-BcTojqR0.js → ReportBugDialogBody-BAr884FO.js} +1 -1
  61. package/dist/public/assets/{ReportBugMenuTrigger-78gwrqdl.js → ReportBugMenuTrigger-B1Y-51y_.js} +1 -1
  62. package/dist/public/assets/{SchemaConfigEditor-Bf5cqDaq.js → SchemaConfigEditor-D3s5A49m.js} +1 -1
  63. package/dist/public/assets/{SearchSection-DRdyZQZf.js → SearchSection-Bi3VBSp6.js} +1 -1
  64. package/dist/public/assets/{SessionsHost-mRrdjGIy.js → SessionsHost-2SfG2-Gc.js} +2 -2
  65. package/dist/public/assets/{SettingsDialogBody-DmZz1LOo.js → SettingsDialogBody-wJKOE5mL.js} +2 -2
  66. package/dist/public/assets/{SettingsSectionHeader-B2_3E9FZ.js → SettingsSectionHeader-DoDCqZE9.js} +1 -1
  67. package/dist/public/assets/{ShareBranchSwitchDialog-DWQTjLZ-.js → ShareBranchSwitchDialog-CHuKbT9D.js} +1 -1
  68. package/dist/public/assets/{ShareReceiveDialog-BdppBZDP.js → ShareReceiveDialog-2iD7YbAG.js} +1 -1
  69. package/dist/public/assets/{ShareReceiveMissDialog-Dbjg3K-r.js → ShareReceiveMissDialog-BPBSQEGy.js} +1 -1
  70. package/dist/public/assets/{SharingSection-MyaUcheU.js → SharingSection-CmvBaP1e.js} +1 -1
  71. package/dist/public/assets/{SkillCostValue-DGFAhums.js → SkillCostValue-DvhkGtxl.js} +1 -1
  72. package/dist/public/assets/{SkillEditBanner-Ci6hp9qh.js → SkillEditBanner-DgXHGu5U.js} +1 -1
  73. package/dist/public/assets/{SkillForkDialog-CKEK2MLM.js → SkillForkDialog-DRFCczwZ.js} +1 -1
  74. package/dist/public/assets/{SkillInstallMenu-Fmrl12N7.js → SkillInstallMenu-yZ2LF3xI.js} +1 -1
  75. package/dist/public/assets/{SkillOriginInline-h0ecHbks.js → SkillOriginInline-CtCMa2BK.js} +2 -2
  76. package/dist/public/assets/{SkillPluginBundleDialog-0PDRSlc7.js → SkillPluginBundleDialog-3QRGH28G.js} +1 -1
  77. package/dist/public/assets/{SkillToolbarControls-zISw8oZn.js → SkillToolbarControls-CBBLRFMf.js} +1 -1
  78. package/dist/public/assets/{SkillUpdateConflictDialog-B2amDEg5.js → SkillUpdateConflictDialog-BRuajj8h.js} +1 -1
  79. package/dist/public/assets/{SkillsManagerSection-CXbSw1oW.js → SkillsManagerSection-CfotG9eR.js} +1 -1
  80. package/dist/public/assets/{SlidesPluginSection-sGWfjtzJ.js → SlidesPluginSection-BpeI6naA.js} +1 -1
  81. package/dist/public/assets/{SlidesToolbarControls-BVK9CgWY.js → SlidesToolbarControls-DsTwYCvs.js} +1 -1
  82. package/dist/public/assets/SourceEditor-xm588PrA.js +1 -0
  83. package/dist/public/assets/{SpellingSettings-DYtxL6uE.js → SpellingSettings-DS0iCc6q.js} +1 -1
  84. package/dist/public/assets/{SyncSection-Eyz1tj40.js → SyncSection-Bu7cBZQC.js} +1 -1
  85. package/dist/public/assets/{SyncStatusBadge-CE7Y2cCh.js → SyncStatusBadge-5xYsRIZu.js} +1 -1
  86. package/dist/public/assets/{TemplateRow-W3JPZI1f.js → TemplateRow-CH88SaaS.js} +1 -1
  87. package/dist/public/assets/{TerminalLaunchContext-P5-tdwl5.js → TerminalLaunchContext-DknxkMP_.js} +1 -1
  88. package/dist/public/assets/{TerminalPanel-BXCRCaq6.js → TerminalPanel-CzYCOqZx.js} +1 -1
  89. package/dist/public/assets/{TerminalSection-xwZM2Hgh.js → TerminalSection-CxJHg3uk.js} +1 -1
  90. package/dist/public/assets/{TerminalStartingNotice-CdvEXHch.js → TerminalStartingNotice-eW111Pr-.js} +1 -1
  91. package/dist/public/assets/{TerminalWindowApp-D8l7JsRd.js → TerminalWindowApp-ElLsKjvU.js} +1 -1
  92. package/dist/public/assets/{TextDocEditor-BG9kfQtX.js → TextDocEditor-B3Xv0IEB.js} +1 -1
  93. package/dist/public/assets/{ThemePicker-c5au2kY3.js → ThemePicker-l4igefke.js} +1 -1
  94. package/dist/public/assets/{ThemePluginSection-Fo_U0vAO.js → ThemePluginSection-C3QmAxSy.js} +1 -1
  95. package/dist/public/assets/ThreadView-D4rEicmI.js +28 -0
  96. package/dist/public/assets/{TimelineDiffPane-DE5qL-Hx.js → TimelineDiffPane-pWimxwSf.js} +1 -1
  97. package/dist/public/assets/{_envelope-DuFpUEag-Beu481Zb.js → _envelope-DuFpUEag-DIV0rnvM.js} +1 -1
  98. package/dist/public/assets/{acp-tool-call-input-4D1kgN9C.js → acp-tool-call-input-BAHxmJVC.js} +1 -1
  99. package/dist/public/assets/{agent-connections-CgDvLLC0.js → agent-connections-Bk1le3Hp.js} +1 -1
  100. package/dist/public/assets/{agent-diff-store-Dk1ZsJcI.js → agent-diff-store-lpiSKA5i.js} +1 -1
  101. package/dist/public/assets/{agent-registry-U8NZfQJI.js → agent-registry-DAlpnuPI.js} +1 -1
  102. package/dist/public/assets/arrow-right-9zZjHMAu.js +1 -0
  103. package/dist/public/assets/{arrow-up-BGHhPj4y.js → arrow-up-VsvqTAMX.js} +1 -1
  104. package/dist/public/assets/arrow-up-right-BuM5_PNk.js +1 -0
  105. package/dist/public/assets/{braces--g9Mwtim.js → braces-BuqU1wEY.js} +1 -1
  106. package/dist/public/assets/{bridge-RmbYCE1j.js → bridge-C3zpQGKh.js} +1 -1
  107. package/dist/public/assets/{bug-report-send-manager-D9UBUsIi.js → bug-report-send-manager-BOS3d4vT.js} +1 -1
  108. package/dist/public/assets/{calendar-D8X69oI3.js → calendar-GZZrn9oy.js} +1 -1
  109. package/dist/public/assets/{case-sensitive-DIxypOE0.js → case-sensitive-CON108GM.js} +1 -1
  110. package/dist/public/assets/{catalog-qUDNhRiX.js → catalog-BIFRvQrT.js} +1 -1
  111. package/dist/public/assets/channel-cli-copy-BE13Ri4Z.js +1 -0
  112. package/dist/public/assets/check-x3deoXUY.js +1 -0
  113. package/dist/public/assets/{checkbox-CKD8LETI.js → checkbox-CYP7ZXBH.js} +1 -1
  114. package/dist/public/assets/{chevron-down-CEv6N8LG.js → chevron-down-COI0lQ_Z.js} +1 -1
  115. package/dist/public/assets/chevron-left-az_PtXMd.js +1 -0
  116. package/dist/public/assets/chevron-right-B3hLba9m.js +1 -0
  117. package/dist/public/assets/{circle-alert-eBm4JPxY.js → circle-alert-dBeNuHbp.js} +1 -1
  118. package/dist/public/assets/circle-check-CGCTZ_86.js +1 -0
  119. package/dist/public/assets/{client-version-BOmJe1SA.js → client-version-CE1HFR4D.js} +1 -1
  120. package/dist/public/assets/{cm-theme-jJbc1zUE.js → cm-theme-DHJ4FCK8.js} +1 -1
  121. package/dist/public/assets/comment-chips-CCtWVMI5.js +8 -0
  122. package/dist/public/assets/{config-errors-d-4C2SfD.js → config-errors-BXj4CTPy.js} +1 -1
  123. package/dist/public/assets/{config-provider-t8yPjJNx.js → config-provider-DzD_5rVC.js} +1 -1
  124. package/dist/public/assets/config-schema-CmT2Ao7f.js +1 -0
  125. package/dist/public/assets/{constants-editors-DmmORwNP.js → constants-editors-IUfUQiPg.js} +1 -1
  126. package/dist/public/assets/{context-menu-DJEXk_NV.js → context-menu-v1ORxy1K.js} +1 -1
  127. package/dist/public/assets/{copy-DpWa6i2v.js → copy-C2v-T-2G.js} +1 -1
  128. package/dist/public/assets/{css-color-to-hex-BSfwCuBg.js → css-color-to-hex-B2zwblEY.js} +1 -1
  129. package/dist/public/assets/{diagnostic-breadcrumb-Mg7sdCfQ.js → diagnostic-breadcrumb-DJHixy9_.js} +1 -1
  130. package/dist/public/assets/{dialog-CAxu_6pu.js → dialog-BPbtQmOL.js} +1 -1
  131. package/dist/public/assets/{dist-CALMvI24.js → dist-B3l4eYse.js} +1 -1
  132. package/dist/public/assets/{dist-D3OAk9962.js → dist-CDI_AHNY2.js} +1 -1
  133. package/dist/public/assets/{dist-D7OhjHST.js → dist-CUgGmlsn.js} +1 -1
  134. package/dist/public/assets/{dist-Dc8tD1th.js → dist-CdgIFD0J.js} +1 -1
  135. package/dist/public/assets/{dist-DC3MtD_U.js → dist-CitzgyZk.js} +1 -1
  136. package/dist/public/assets/{dist-CuciuUd8.js → dist-DPg4Sze-.js} +1 -1
  137. package/dist/public/assets/{dist-C2kRm2yU.js → dist-DQuOA3vR.js} +1 -1
  138. package/dist/public/assets/{dist-1WMiywBY.js → dist-DlTJY48Q.js} +1 -1
  139. package/dist/public/assets/{dist-B2xcxFKA.js → dist-DqqLfr8L.js} +1 -1
  140. package/dist/public/assets/{dist-BB-_bX4W.js → dist-LtbcyjB7.js} +1 -1
  141. package/dist/public/assets/{dist-CTgYxMvL.js → dist-McVxqaQr.js} +1 -1
  142. package/dist/public/assets/{dist-CEcVCo7N.js → dist-R7QC_kjf.js} +1 -1
  143. package/dist/public/assets/{dist-BMKoCRsq.js → dist-XOMICCBT.js} +1 -1
  144. package/dist/public/assets/{dist-BJEecnun.js → dist-oYievw6e.js} +1 -1
  145. package/dist/public/assets/{dist-BDK1JLMM.js → dist-qfZ4Zkay.js} +1 -1
  146. package/dist/public/assets/{doc-hash-BT2I193z.js → doc-hash-BDtDlqpM.js} +1 -1
  147. package/dist/public/assets/{doc-undo-manager-CfgPgnPl.js → doc-undo-manager-yavvIgvD.js} +1 -1
  148. package/dist/public/assets/{documents-events-C1uYbecE.js → documents-events-DD7-XBOS.js} +1 -1
  149. package/dist/public/assets/{download-BouT3__0.js → download-D-kvS_hz.js} +1 -1
  150. package/dist/public/assets/{dropdown-menu-DH6UNmuX.js → dropdown-menu-480HwyVz.js} +1 -1
  151. package/dist/public/assets/field-controls-ZSTvXteZ.js +1 -0
  152. package/dist/public/assets/{field-controls-DVDZIfO-.js → field-controls-hRoeLiNf.js} +1 -1
  153. package/dist/public/assets/{file-plus-DKxOZh2k.js → file-plus-DBpEVY_Q.js} +1 -1
  154. package/dist/public/assets/{file-tree-adapter-swxoGL5Y.js → file-tree-adapter-CCs0BTVj.js} +1 -1
  155. package/dist/public/assets/{file-tree-utils-4_QK0cZe.js → file-tree-utils-Chf8oKT-.js} +1 -1
  156. package/dist/public/assets/{folder-QqUoFRPR.js → folder-DSkyRNas.js} +1 -1
  157. package/dist/public/assets/{folder-config-api-CzgwDsGQ.js → folder-config-api-DIgyKHZD.js} +1 -1
  158. package/dist/public/assets/{folder-open-COGOeTzI.js → folder-open-a_XLAh8h.js} +1 -1
  159. package/dist/public/assets/{git-branch-CeTudSak.js → git-branch-EQxRRYB4.js} +1 -1
  160. package/dist/public/assets/{git-merge-VDBzSZBV.js → git-merge-Cmg8y0YC.js} +1 -1
  161. package/dist/public/assets/{grip-vertical-DNbkgWZL.js → grip-vertical-DDCmIcxh.js} +1 -1
  162. package/dist/public/assets/{handoff-DsHaP2rA.js → handoff-rTg39zAU.js} +1 -1
  163. package/dist/public/assets/{hash-C4CJQURT.js → hash-Cm4xjMc9.js} +1 -1
  164. package/dist/public/assets/{image-attachment-dml6C4FH.js → image-attachment-DFK2cqaC.js} +1 -1
  165. package/dist/public/assets/{ime-composition-ga8qmx5E.js → ime-composition-CGhNlGxT.js} +1 -1
  166. package/dist/public/assets/index-ceo-9NqS.js +2209 -0
  167. package/dist/public/assets/{info-CyR0W2SK.js → info-CTtlruwn.js} +1 -1
  168. package/dist/public/assets/{keyboard-shortcuts-D5fo2XHL.js → keyboard-shortcuts-BqVfFaC6.js} +1 -1
  169. package/dist/public/assets/{lint-config-client-DTbxVXNu.js → lint-config-client-Cwihn-uv.js} +1 -1
  170. package/dist/public/assets/{lint-plugin-meta-CtDE2R0v.js → lint-plugin-meta-6QZWEsvL.js} +1 -1
  171. package/dist/public/assets/lint-plugins-Bvo_3j4n.js +1 -0
  172. package/dist/public/assets/{list-plus-CYMJBvrm.js → list-plus-BF2ESfO9.js} +1 -1
  173. package/dist/public/assets/{local-menu-action-bus-Dyh2UJJF.js → local-menu-action-bus-BRwk7KU_.js} +1 -1
  174. package/dist/public/assets/{markdown-lint-yCmtY_Fk.js → markdown-lint-BHJCn8aG.js} +1 -1
  175. package/dist/public/assets/{markdownlint-rule-browser-DCZOAJHa.js → markdownlint-rule-browser-BljNWP0X.js} +1 -1
  176. package/dist/public/assets/minus-BUHNVRuZ.js +1 -0
  177. package/dist/public/assets/{miss-dialog-store-CsiJb9Ou.js → miss-dialog-store-9W8qZPsI.js} +1 -1
  178. package/dist/public/assets/{monitor-IXzxTnmk.js → monitor-Ddo728b9.js} +1 -1
  179. package/dist/public/assets/{navigation-targets-24nBe7eF.js → navigation-targets-CDgtiaAU.js} +1 -1
  180. package/dist/public/assets/{ok-bT2YVjQO.js → ok-Bc_I9i6o.js} +1 -1
  181. package/dist/public/assets/{open-managed-artifact-tab-CU-PLDYS.js → open-managed-artifact-tab-Iri08bTq.js} +1 -1
  182. package/dist/public/assets/{package-PkCmIx3S.js → package-C9LVxBgR.js} +1 -1
  183. package/dist/public/assets/{page-list-cache-QYahbazR.js → page-list-cache-tOaID4O4.js} +1 -1
  184. package/dist/public/assets/{panel-right-close-Bsh1pCmh.js → panel-right-close-D50eEzbs.js} +1 -1
  185. package/dist/public/assets/{panel-right-open-D4M8nGPT.js → panel-right-open-Bf2A8riD.js} +1 -1
  186. package/dist/public/assets/{paperclip-FfP_WlTp.js → paperclip-CToLKs9f.js} +1 -1
  187. package/dist/public/assets/{pending-receive-nav-store-BrZXdyHa.js → pending-receive-nav-store-NVntzFTK.js} +1 -1
  188. package/dist/public/assets/{perf-CYJlqBBt.js → perf-B1ng3teX.js} +1 -1
  189. package/dist/public/assets/{platform-labels-Bz5YiQUO.js → platform-labels-aUYOyjZS.js} +1 -1
  190. package/dist/public/assets/{plus-CXQ-oViZ.js → plus-CTeS7j4Q.js} +1 -1
  191. package/dist/public/assets/{preferred-session-events-DmjJhoQV.js → preferred-session-events-DoI6Nltj.js} +1 -1
  192. package/dist/public/assets/{prod-y4DljgL_.js → prod-CxmLlnTC.js} +2 -2
  193. package/dist/public/assets/{progress-BW0rUQqg.js → progress-DLhlLXF7.js} +4 -4
  194. package/dist/public/assets/{project-paths-apPSrrqd.js → project-paths-DjS_hY_q.js} +1 -1
  195. package/dist/public/assets/{prop-types-ZtKgQMRh.js → prop-types-CLb0dK7M.js} +1 -1
  196. package/dist/public/assets/{receive-store-BxNGsbg2.js → receive-store-DG-FxM8p.js} +1 -1
  197. package/dist/public/assets/{refresh-cw-BVQchE6b.js → refresh-cw-kK6tPJpw.js} +1 -1
  198. package/dist/public/assets/{restart-collab-server-J9LBNmz1.js → restart-collab-server-D7TSZeVB.js} +1 -1
  199. package/dist/public/assets/{rotate-ccw-DeMl2ou7.js → rotate-ccw-LkVEzPHf.js} +1 -1
  200. package/dist/public/assets/{save-held-message-EDUNzH4a.js → save-held-message-BxyYPArP.js} +1 -1
  201. package/dist/public/assets/{saved-themes-client-CekgvN2w.js → saved-themes-client-BESiCu3n.js} +1 -1
  202. package/dist/public/assets/{schema-section-UHYsIbh2.js → schema-section-CufFaxte.js} +1 -1
  203. package/dist/public/assets/{schemas-api-DlZNlpBW.js → schemas-api-6ufosDur.js} +1 -1
  204. package/dist/public/assets/{schemas-cc1-DAVdMZdU.js → schemas-cc1-tjl2gPeT.js} +1 -1
  205. package/dist/public/assets/search-DtAlL42D.js +1 -0
  206. package/dist/public/assets/{select-BsDvTs6I.js → select-BELkoEB6.js} +1 -1
  207. package/dist/public/assets/{selection-context-CL5DJJ5J.js → selection-context-D-6Wx6n8.js} +1 -1
  208. package/dist/public/assets/{settings-2-DoBlNQMk.js → settings-2-wYPq-LU9.js} +1 -1
  209. package/dist/public/assets/{share-D-LUU2aX-rZ2lBHef.js → share-D-LUU2aX-iU4CJWyG.js} +1 -1
  210. package/dist/public/assets/{sign-in-terminal-events-Cq-Ff47d.js → sign-in-terminal-events-BDhZsuH0.js} +1 -1
  211. package/dist/public/assets/{skill-scope-B5R5dnia.js → skill-scope-C6c798PF.js} +1 -1
  212. package/dist/public/assets/skill-targets-schema-CqL94mYR.js +1 -0
  213. package/dist/public/assets/{skills-api-BfE5FOtO.js → skills-api-BW6egGED.js} +1 -1
  214. package/dist/public/assets/{sparkles-lfxw6YO9.js → sparkles-CLa9Bco7.js} +1 -1
  215. package/dist/public/assets/{spinner-Bx8xD6f8.js → spinner-CeYJkImG.js} +1 -1
  216. package/dist/public/assets/{square-pen-DU3t-IcD.js → square-pen-5YkKFkKE.js} +1 -1
  217. package/dist/public/assets/{src-DZLuBGc4.js → src-BnRkOYT2.js} +1 -1
  218. package/dist/public/assets/{startup-marks-BTf4KsuH.js → startup-marks-iW0WPaQZ.js} +1 -1
  219. package/dist/public/assets/storage-scope-CM5DIkjP.js +1 -0
  220. package/dist/public/assets/{tag-pill-input-CsGX3LfF.js → tag-pill-input-BaWWdgLz.js} +1 -1
  221. package/dist/public/assets/{target-navigation-intent-C5UVyTyO.js → target-navigation-intent-CwpBpDqj.js} +1 -1
  222. package/dist/public/assets/{telemetry-impl-B31Ncjxi.js → telemetry-impl-xdjXYvb5.js} +1 -1
  223. package/dist/public/assets/{telemetry-startup-B6ziimEZ.js → telemetry-startup-Dzg-IDUr.js} +1 -1
  224. package/dist/public/assets/terminal-BaAWoXQi.js +1 -0
  225. package/dist/public/assets/terminal-cli-display-nqMvU4tr.js +1 -0
  226. package/dist/public/assets/{terminal-command-events-DChb4IWc.js → terminal-command-events-DHW8vnqr.js} +1 -1
  227. package/dist/public/assets/{terminal-launch-events-C4fI5alv.js → terminal-launch-events-CzHSWWOd.js} +1 -1
  228. package/dist/public/assets/{text-viewer-languages-CEIKqAO0.js → text-viewer-languages-5aC_46ro.js} +2 -2
  229. package/dist/public/assets/{theme-token-colors-BdA7xOfE.js → theme-token-colors-BHO3FRsE.js} +1 -1
  230. package/dist/public/assets/{thread-client-RjSMZyu3.js → thread-client-Dpm0z74_.js} +1 -1
  231. package/dist/public/assets/{trash-2-Blf9Cydx.js → trash-2-Dx-L6HlB.js} +1 -1
  232. package/dist/public/assets/{triangle-alert-DFWRwfH7.js → triangle-alert-COKT45NU.js} +1 -1
  233. package/dist/public/assets/typing-burst-detector-xtgLhjHi.js +6 -0
  234. package/dist/public/assets/{undo-2-opKemDpM.js → undo-2-DFO1_Si-.js} +1 -1
  235. package/dist/public/assets/{uninstall-QtbRPTPw.js → uninstall-8hUOVLi8.js} +1 -1
  236. package/dist/public/assets/use-activity-panel-No-V0vGV.js +1 -0
  237. package/dist/public/assets/{use-app-color-mode-IuaS2l9q.js → use-app-color-mode-D01Vqp07.js} +1 -1
  238. package/dist/public/assets/{use-apply-config-color-theme-DtZYKd4S.js → use-apply-config-color-theme-Dp4XXsd0.js} +1 -1
  239. package/dist/public/assets/{use-apply-config-language-2osa4BZp.js → use-apply-config-language-zbymJk7K.js} +1 -1
  240. package/dist/public/assets/{use-collab-url-cdu23GKm.js → use-collab-url-KnAEFuX9.js} +1 -1
  241. package/dist/public/assets/{use-conflicts-DYDVgnHm.js → use-conflicts-BjdOWvm-.js} +1 -1
  242. package/dist/public/assets/{use-git-sync-status-QF4fPT1l.js → use-git-sync-status-D8KvdiBj.js} +1 -1
  243. package/dist/public/assets/{use-installed-clis-CuUHppPf.js → use-installed-clis-CJz4xwue.js} +2 -2
  244. package/dist/public/assets/{use-live-xterm-theme-C44W14gS.js → use-live-xterm-theme-BeWdaIDt.js} +1 -1
  245. package/dist/public/assets/use-open-skill-BqX8C4Fb.js +1 -0
  246. package/dist/public/assets/{use-semantic-search-status-CtwmKCOY.js → use-semantic-search-status-H3Lc3w3y.js} +1 -1
  247. package/dist/public/assets/{use-settings-route-BGtkup9E.js → use-settings-route-9jEucaC_.js} +1 -1
  248. package/dist/public/assets/{use-skill-origin-CqdAI0LE.js → use-skill-origin-CevMDiz2.js} +1 -1
  249. package/dist/public/assets/{use-skill-targets-L7eMluIp.js → use-skill-targets-Bm-1Jayt.js} +1 -1
  250. package/dist/public/assets/{use-skills-CjskC_gs.js → use-skills-BWN24_tx.js} +1 -1
  251. package/dist/public/assets/{use-terminal-enabled-CNxLndWK.js → use-terminal-enabled-C38kf-nC.js} +1 -1
  252. package/dist/public/assets/use-timeline-entry-diff-BBU349EG.js +7 -0
  253. package/dist/public/assets/{use-workspace-DyJIW5z6.js → use-workspace-gZ0GtHN-.js} +1 -1
  254. package/dist/public/assets/{wrench-DmtZXcHB.js → wrench-DX4SUik6.js} +1 -1
  255. package/dist/public/assets/x-B-DmMnJT.js +1 -0
  256. package/dist/public/index.html +180 -180
  257. package/dist/public/uninstall.html +9 -9
  258. package/dist/{registry-probes-CYNi5qIQ.mjs → registry-probes-i8THON1F.mjs} +1 -1
  259. package/dist/{removal-file-path-DZLkET7b.mjs → removal-file-path-C6ummtKf.mjs} +1 -1
  260. package/dist/{repair-launch-json-B7OnJBuU.mjs → repair-launch-json-D13WJKpY.mjs} +1 -1
  261. package/dist/{repair-mcp-configs-C4dUbuGT.mjs → repair-mcp-configs-Dpcbr0O1.mjs} +1 -1
  262. package/dist/src-C7iKm_nG.mjs +1 -0
  263. package/dist/{src-CbhsFfxZ.mjs → src-Cdv7Ww9e.mjs} +1 -1
  264. package/dist/{start-DjdNCY_w.mjs → start-BUPWWrZ2.mjs} +2 -2
  265. package/dist/start-CFBtSeQO.mjs +1 -0
  266. package/package.json +4 -4
  267. package/dist/constants-CDIC_0E3.mjs +0 -1
  268. package/dist/init-DksPCBxe.mjs +0 -1
  269. package/dist/loader-mvKq5eBt.mjs +0 -1
  270. package/dist/preview-C7MzdJar.mjs +0 -1
  271. package/dist/public/assets/DocumentContext-Dd5YjJ75.js +0 -110
  272. package/dist/public/assets/FeedbackForm-CuhSXZwR.js +0 -1
  273. package/dist/public/assets/LintingSection-Bu0KWPM4.js +0 -1
  274. package/dist/public/assets/ManagedArtifactProperties-Pum7Yl2Z.js +0 -1
  275. package/dist/public/assets/Mermaid-BtwwoOWv.js +0 -2
  276. package/dist/public/assets/MermaidDocEditor-CkzKNCRL.js +0 -1
  277. package/dist/public/assets/PublishToGitHubDialog-B8k76ixS.js +0 -1
  278. package/dist/public/assets/SourceEditor-Ch9WvIrp.js +0 -1
  279. package/dist/public/assets/ThreadView-D014DKw-.js +0 -28
  280. package/dist/public/assets/arrow-right-NOQZeKIW.js +0 -1
  281. package/dist/public/assets/arrow-up-right-nJaICi16.js +0 -1
  282. package/dist/public/assets/channel-cli-copy-B2cLpMLf.js +0 -1
  283. package/dist/public/assets/check-B2OLRY33.js +0 -1
  284. package/dist/public/assets/chevron-left-C5T97PNU.js +0 -1
  285. package/dist/public/assets/chevron-right-Bofu4lib.js +0 -1
  286. package/dist/public/assets/circle-check-nK1yRBIw.js +0 -1
  287. package/dist/public/assets/comment-chips-HHEqRWai.js +0 -8
  288. package/dist/public/assets/config-schema-B0ILVL9I.js +0 -1
  289. package/dist/public/assets/field-controls-CERlEL35.js +0 -1
  290. package/dist/public/assets/index-Cc2cEgpA.js +0 -2209
  291. package/dist/public/assets/lint-plugins-MY8H8P61.js +0 -1
  292. package/dist/public/assets/minus-DdRxss3A.js +0 -1
  293. package/dist/public/assets/search-BoiwnBpA.js +0 -1
  294. package/dist/public/assets/skill-targets-schema-DIfTaAkM.js +0 -1
  295. package/dist/public/assets/storage-scope-BxY5pL8X.js +0 -1
  296. package/dist/public/assets/terminal-B38K-KMo.js +0 -1
  297. package/dist/public/assets/terminal-cli-display-F8P1rJOv.js +0 -1
  298. package/dist/public/assets/typing-burst-detector-Cdgni4Wx.js +0 -6
  299. package/dist/public/assets/use-activity-panel-CSJGf6vZ.js +0 -1
  300. package/dist/public/assets/use-open-skill-Bw3rOfos.js +0 -1
  301. package/dist/public/assets/use-timeline-entry-diff-BlZZ9rzl.js +0 -7
  302. package/dist/public/assets/x-wldAHzfP.js +0 -1
  303. package/dist/src-LKeE7di1.mjs +0 -1
  304. package/dist/start-DjDw3VK-.mjs +0 -1
  305. /package/dist/public/assets/{config-context-Dr6ezl8P.js → config-context-DmzX_4s_.js} +0 -0
  306. /package/dist/public/assets/{constants-cc1-Bt4QPTUe.js → constants-cc1-DSBEUyZb.js} +0 -0
  307. /package/dist/public/assets/{constants-github-B7yhDvQc.js → constants-github-CG_3Vnhk.js} +0 -0
  308. /package/dist/public/assets/{constants-product-BVSOzxVs.js → constants-product-DTeqlnBa.js} +0 -0
  309. /package/dist/public/assets/{constants-upload-DZP-sCdl.js → constants-upload-kkBkFBty.js} +0 -0
  310. /package/dist/public/assets/{createLucideIcon-DdBzwsHe.js → createLucideIcon-CB3nKwwz.js} +0 -0
  311. /package/dist/public/assets/{desktop-bridge-types-BxqZkaz9.js → desktop-bridge-types-B8voP7ui.js} +0 -0
  312. /package/dist/public/assets/{dist-BGzUo_18.js → dist-Bs8bPT30.js} +0 -0
  313. /package/dist/public/assets/{dist-C_FzPxEX2.js → dist-XgwTV-oh2.js} +0 -0
  314. /package/dist/public/assets/{doc-extensions-CcO7K8uD-DG9uHV54.js → doc-extensions-CcO7K8uD-BsCiKh3N.js} +0 -0
  315. /package/dist/public/assets/{logging-renderer-log-CqIZVUIQ.js → logging-renderer-log-BxHgdJfM.js} +0 -0
  316. /package/dist/public/assets/{note-window-mode-CI3Yju9B.js → note-window-mode-DK36peY8.js} +0 -0
  317. /package/dist/public/assets/{parse-api-error-CeEVOj25.js → parse-api-error-B-hICRsf.js} +0 -0
  318. /package/dist/public/assets/{schemas-CxFhJLAM.js → schemas-DN_HD0k4.js} +0 -0
  319. /package/dist/public/assets/{util-doc-name-DRKmy6g9.js → util-doc-name-ICsmfVCh.js} +0 -0
  320. /package/dist/public/assets/{w3c-keyname-C7Rznu6R.js → w3c-keyname-DElaZB74.js} +0 -0
  321. /package/dist/public/assets/{workspace-paths-BjilyZF6.js → workspace-paths-C2i9A8jM.js} +0 -0
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./ar-SA-PQUY64WN-DYuxhToO.js","./chunk-SRAX5OIU-DB-b0Ha1.js","./chunk-CYidjpOJ.js","./az-AZ-OXJXL76K-BySQeNg2.js","./bg-BG-W2GKIJDF-CKqeQQSA.js","./bn-BD-TGL7M4PJ-Ckr8R1k_.js","./bn-IN-BKETKYEH-DSAtxIce.js","./ca-ES-LD5SCRVV-DgJq7kZP.js","./cs-CZ-OFPU5DBV-B3KaScUn.js","./da-DK-FRDJFYWF-D8Rpm4rK.js","./de-CH-ZG7H3QK3-C9ysaFIc.js","./de-DE-SIJYH4IH-B9QHfeLl.js","./el-GR-IEE2CGI2-KFL97KNN.js","./en-SJ2YIMFF-Bpc_09Sc.js","./chunk-FLYJHZSQ-C_Rdp8g6.js","./es-ES-TVVPWKV5-DgfnmIQF.js","./eu-ES-CGBMFQDT-BB920Uv6.js","./fa-IR-IE6XAPR4-CC4Ab8w1.js","./fi-FI-P7TKNHRM-BUukeg7n.js","./fr-FR-QI2XZNT7-6vVbDnWC.js","./gl-ES-TLYCNOZZ-CjDMbjS2.js","./he-IL-ZX43XLGP-DIcqc4e9.js","./hi-IN-UTYRMTUF-BYJxB-PV.js","./hu-HU-AJOSEBW6-eBeH5bQq.js","./id-ID-ETLTVG6C-BMcMAW7s.js","./it-IT-B4B6TP6L-DA_lQ37-.js","./ja-JP-IYKVURR5-DYHbv1He.js","./kaa-SE2BUIKX-BwtwrI7R.js","./kab-KAB-Y3GLKXLR-DRCna81E.js","./kk-KZ-ABWUFVOH-Cxj3ynIB.js","./km-KH-PCWDKPHP-DZAhXJCJ.js","./ko-KR-7JQDXKGM-C536tDao.js","./ku-TR-NAH2Q5B7-1aEuKzUR.js","./lt-LT-VQFYRSNQ-KC3X22NE.js","./lv-LV-T62VSYUM-BJRLNoYb.js","./mr-IN-V4FHLCJE-D63D3xFD.js","./my-MM-E3SQ6E54-DLiFMfby.js","./nb-NO-MLNOFN5H-DSMSq2D8.js","./nl-NL-D5L3ZV4M-BXGnVfF6.js","./nn-NO-NNHDGPKB-BLXtmnK7.js","./oc-FR-DWCRF55G-y49BCg50.js","./pa-IN-3JSAY44M-cILFRwFO.js","./percentages-ETZPVQEE-wFMtNE0U.js","./chunk-7XWMRXBY-wx08Kkrk.js","./pl-PL-ACURYKP3-Ly8ADv2z.js","./pt-BR-LOX7MLGD-B_-UeSLp.js","./pt-PT-CZ2U2RFQ-Bl3_CO8K.js","./ro-RO-2HECL2X6-DzB5YxTl.js","./ru-RU-HAYNXO46-CIY1uG0L.js","./si-LK-W5KNS4H6-hoNx2dpG.js","./sk-SK-7K2CFGDV-BZ7Ti6j5.js","./sl-SI-OXV2QZWW-CM7rKzfZ.js","./sv-SE-JTOBZRGL-BMvNzn7Y.js","./ta-IN-KFAVKXGT-CGUK3scu.js","./th-TH-VDMSCPDL-cY9nRXwD.js","./tr-TR-CEZ6GX45-wB7SWq4M.js","./uk-UA-Q3H3OXQC-BsmY4BM1.js","./uz-UZ-NGCSWWPX-CcM2ewUF.js","./vi-VN-P3NDEVPS-B23kwAZK.js","./zh-CN-SS3O57GA-CbZ3Qa2K.js","./zh-HK-LWJT3VCF-B65VThuQ.js","./zh-TW-VJXC72RT-Ca_1bKig.js","./image-ZVKINSPA-CKM4b_n6.js","./chunk-RM4UPSZO-BGEtdTtg.js","./preload-helper-Chd9yIcd.js","./chunk-A66AFZZU-B7qepDvh.js","./CodeMirrorEditor-UCMRAMCV-jW_2l0nP.js","./dist-BDK1JLMM.js","./dist-CuciuUd8.js","./w3c-keyname-C7Rznu6R.js","./jsx-runtime-BUgB2tll.js","./react-f2sANaYj.js","./dist-D_dQNF0K.js","./dist-CciNuCIL.js","./mermaid.core-C1pV7pFj.js","./chunk-4I5QYGJK-BtRhJQs0.js","./src-DtJTPbvx.js","./src-CRQ5KxEn.js","./chunk-Y2CYZVJY-DJ1a3HTM.js","./chunk-I66GZJ75-1GpD1Evq.js","./chunk-NSK5VX7P-BAlfXdYB.js","./dist-DHG9q9Ip.js","./chunk-WRU74C26-RHBFsKRR.js","./chunk-3NCLNEKW-Ct6OlfL3.js","./chunk-7BUUIJ7U-DQ0nFgNI.js","./chunk-7Z6QIM7H-b4yloMtW.js","./line-DoROdmk1.js","./path-BbWDqGwO.js","./array-bMSnH1hX.js","./chunk-QR6OTTB3-BjEUuOYU.js","./chunk-UBXNYLIW-dFk0qjFo.js","./chunk-W5SLKNZC-ClOrRF-o.js","./rough.esm-jZ25JwGn.js","./chunk-J7OUQ5F2-BlFOzCdt.js","./chunk-ZIRB5QZD-DiJrEIu7.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./ar-SA-PQUY64WN-DYuxhToO.js","./chunk-SRAX5OIU-DB-b0Ha1.js","./chunk-CYidjpOJ.js","./az-AZ-OXJXL76K-BySQeNg2.js","./bg-BG-W2GKIJDF-CKqeQQSA.js","./bn-BD-TGL7M4PJ-Ckr8R1k_.js","./bn-IN-BKETKYEH-DSAtxIce.js","./ca-ES-LD5SCRVV-DgJq7kZP.js","./cs-CZ-OFPU5DBV-B3KaScUn.js","./da-DK-FRDJFYWF-D8Rpm4rK.js","./de-CH-ZG7H3QK3-C9ysaFIc.js","./de-DE-SIJYH4IH-B9QHfeLl.js","./el-GR-IEE2CGI2-KFL97KNN.js","./en-SJ2YIMFF-Bpc_09Sc.js","./chunk-FLYJHZSQ-C_Rdp8g6.js","./es-ES-TVVPWKV5-DgfnmIQF.js","./eu-ES-CGBMFQDT-BB920Uv6.js","./fa-IR-IE6XAPR4-CC4Ab8w1.js","./fi-FI-P7TKNHRM-BUukeg7n.js","./fr-FR-QI2XZNT7-6vVbDnWC.js","./gl-ES-TLYCNOZZ-CjDMbjS2.js","./he-IL-ZX43XLGP-DIcqc4e9.js","./hi-IN-UTYRMTUF-BYJxB-PV.js","./hu-HU-AJOSEBW6-eBeH5bQq.js","./id-ID-ETLTVG6C-BMcMAW7s.js","./it-IT-B4B6TP6L-DA_lQ37-.js","./ja-JP-IYKVURR5-DYHbv1He.js","./kaa-SE2BUIKX-BwtwrI7R.js","./kab-KAB-Y3GLKXLR-DRCna81E.js","./kk-KZ-ABWUFVOH-Cxj3ynIB.js","./km-KH-PCWDKPHP-DZAhXJCJ.js","./ko-KR-7JQDXKGM-C536tDao.js","./ku-TR-NAH2Q5B7-1aEuKzUR.js","./lt-LT-VQFYRSNQ-KC3X22NE.js","./lv-LV-T62VSYUM-BJRLNoYb.js","./mr-IN-V4FHLCJE-D63D3xFD.js","./my-MM-E3SQ6E54-DLiFMfby.js","./nb-NO-MLNOFN5H-DSMSq2D8.js","./nl-NL-D5L3ZV4M-BXGnVfF6.js","./nn-NO-NNHDGPKB-BLXtmnK7.js","./oc-FR-DWCRF55G-y49BCg50.js","./pa-IN-3JSAY44M-cILFRwFO.js","./percentages-ETZPVQEE-wFMtNE0U.js","./chunk-7XWMRXBY-wx08Kkrk.js","./pl-PL-ACURYKP3-Ly8ADv2z.js","./pt-BR-LOX7MLGD-B_-UeSLp.js","./pt-PT-CZ2U2RFQ-Bl3_CO8K.js","./ro-RO-2HECL2X6-DzB5YxTl.js","./ru-RU-HAYNXO46-CIY1uG0L.js","./si-LK-W5KNS4H6-hoNx2dpG.js","./sk-SK-7K2CFGDV-BZ7Ti6j5.js","./sl-SI-OXV2QZWW-CM7rKzfZ.js","./sv-SE-JTOBZRGL-BMvNzn7Y.js","./ta-IN-KFAVKXGT-CGUK3scu.js","./th-TH-VDMSCPDL-cY9nRXwD.js","./tr-TR-CEZ6GX45-wB7SWq4M.js","./uk-UA-Q3H3OXQC-BsmY4BM1.js","./uz-UZ-NGCSWWPX-CcM2ewUF.js","./vi-VN-P3NDEVPS-B23kwAZK.js","./zh-CN-SS3O57GA-CbZ3Qa2K.js","./zh-HK-LWJT3VCF-B65VThuQ.js","./zh-TW-VJXC72RT-Ca_1bKig.js","./image-ZVKINSPA-CKM4b_n6.js","./chunk-RM4UPSZO-BGEtdTtg.js","./preload-helper-Chd9yIcd.js","./chunk-A66AFZZU-B7qepDvh.js","./CodeMirrorEditor-UCMRAMCV-BjEQv2x_.js","./dist-qfZ4Zkay.js","./dist-DPg4Sze-.js","./w3c-keyname-DElaZB74.js","./jsx-runtime-BUgB2tll.js","./react-f2sANaYj.js","./dist-D_dQNF0K.js","./dist-CciNuCIL.js","./mermaid.core-C1pV7pFj.js","./chunk-4I5QYGJK-BtRhJQs0.js","./src-DtJTPbvx.js","./src-CRQ5KxEn.js","./chunk-Y2CYZVJY-DJ1a3HTM.js","./chunk-I66GZJ75-1GpD1Evq.js","./chunk-NSK5VX7P-BAlfXdYB.js","./dist-DHG9q9Ip.js","./chunk-WRU74C26-RHBFsKRR.js","./chunk-3NCLNEKW-Ct6OlfL3.js","./chunk-7BUUIJ7U-DQ0nFgNI.js","./chunk-7Z6QIM7H-b4yloMtW.js","./line-DoROdmk1.js","./path-BbWDqGwO.js","./array-bMSnH1hX.js","./chunk-QR6OTTB3-BjEUuOYU.js","./chunk-UBXNYLIW-dFk0qjFo.js","./chunk-W5SLKNZC-ClOrRF-o.js","./rough.esm-jZ25JwGn.js","./chunk-J7OUQ5F2-BlFOzCdt.js","./chunk-ZIRB5QZD-DiJrEIu7.js"])))=>i.map(i=>d[i]);
2
2
  import{o as e,r as t,t as n}from"./chunk-CYidjpOJ.js";import{t as r}from"./preload-helper-Chd9yIcd.js";import{t as i}from"./jsx-runtime-BUgB2tll.js";import{t as a}from"./react-f2sANaYj.js";import{t as o}from"./react-dom-DPxgxlDT.js";import{t as s}from"./with-selector-zVo3Fruj.js";import{c,i as l,n as u,p as d,s as f}from"./dist-BzicVdNV.js";import{f as p,h as m,i as h,m as g,n as _,p as v,u as y}from"./dist-C0nuYMFu.js";import{a as b,i as x,n as S,o as C,r as w,s as T}from"./dist-Cj3Bpren.js";import{i as E,n as ee,r as te,t as ne}from"./dist-wWBxplcG2.js";import{t as re}from"./chunk-A66AFZZU-B7qepDvh.js";import{i as D,n as ie,r as ae}from"./chunk-SRAX5OIU-DB-b0Ha1.js";import{$ as oe,$a as se,$c as ce,$i as le,$n as ue,$o as de,$r as fe,$s as pe,$t as me,A as he,Aa as ge,Ac as _e,Ai as ve,An as ye,Ao as be,Ar as xe,As as Se,At as Ce,B as we,Ba as Te,Bc as Ee,Bi as De,Bn as Oe,Bo as ke,Br as Ae,Bs as je,Bt as Me,C as Ne,Ca as Pe,Cc as Fe,Ci as Ie,Cl as Le,Cn as Re,Co as ze,Cr as Be,Cs as Ve,Ct as He,D as Ue,Da as We,Dc as Ge,Di as Ke,Dl as qe,Dn as Je,Do as Ye,Dr as Xe,Ds as Ze,Dt as Qe,E as $e,Ea as et,Ec as tt,Ei as nt,El as O,En as rt,Eo as it,Er as at,Es as ot,Et as st,F as ct,Fa as lt,Fc as ut,Fi as dt,Fn as ft,Fo as pt,Fr as mt,Fs as ht,Ft as gt,G as _t,Ga as vt,Gc as k,Gi as yt,Gn as bt,Go as xt,Gr as St,Gs as Ct,Gt as wt,H as Tt,Ha as Et,Hc as Dt,Hi as Ot,Hn as kt,Ho as At,Hr as jt,Hs as Mt,Ht as Nt,I as Pt,Ia as Ft,Ic as It,Ii as Lt,In as Rt,Io as zt,Ir as Bt,Is as Vt,It as Ht,J as Ut,Ja as Wt,Jc as Gt,Ji as Kt,Jn as qt,Jo as Jt,Jr as Yt,Js as Xt,Jt as Zt,K as Qt,Ka as $t,Kc as en,Ki as tn,Kn as nn,Ko as rn,Kr as an,Ks as on,Kt as sn,L as cn,La as ln,Lc as un,Li as A,Ln as dn,Lo as fn,Lr as pn,Ls as mn,Lt as hn,M as gn,Ma as _n,Mc as vn,Mi as yn,Mn as bn,Mo as xn,Mr as Sn,Ms as Cn,Mt as wn,N as Tn,Na as j,Nc as En,Ni as Dn,Nn as On,No as kn,Nr as An,Ns as jn,Nt as Mn,O as Nn,Oa as Pn,Oc as Fn,Oi as In,On as Ln,Oo as Rn,Or as zn,Os as Bn,Ot as Vn,P as Hn,Pa as Un,Pc as Wn,Pi as Gn,Pn as Kn,Po as qn,Pr as Jn,Ps as Yn,Pt as Xn,Q as Zn,Qa as Qn,Qc as $n,Qi as er,Qn as tr,Qo as nr,Qr as rr,Qs as ir,Qt as ar,R as or,Ra as sr,Rc as cr,Ri as lr,Rn as ur,Ro as dr,Rr as fr,Rs as pr,Rt as mr,S as hr,Sa as gr,Sc as _r,Si as vr,Sl as yr,Sn as br,So as xr,Sr,Ss as Cr,St as wr,T as Tr,Ta as Er,Tc as Dr,Ti as Or,Tl as kr,Tn as Ar,To as jr,Tr as Mr,Ts as Nr,Tt as Pr,U as Fr,Ua as Ir,Uc as M,Ui as Lr,Un as Rr,Uo as zr,Ur as Br,Us as Vr,Ut as Hr,V as Ur,Va as Wr,Vc as Gr,Vi as Kr,Vn as qr,Vo as Jr,Vr as Yr,Vs as Xr,Vt as Zr,W as Qr,Wa as $r,Wc as ei,Wi as ti,Wn as ni,Wo as ri,Wr as ii,Ws as ai,Wt as oi,X as si,Xa as ci,Xc as li,Xi as ui,Xn as N,Xo as di,Xr as fi,Xs as pi,Xt as mi,Y as hi,Ya as gi,Yc as _i,Yi as vi,Yn as yi,Yo as bi,Yr as xi,Ys as Si,Yt as Ci,Z as wi,Za as Ti,Zc as Ei,Zi as Di,Zn as Oi,Zo as ki,Zr as Ai,Zs as ji,Zt as Mi,_ as Ni,_a as Pi,_c as Fi,_i as Ii,_l as Li,_n as Ri,_o as zi,_r as Bi,_s as Vi,_t as Hi,a as Ui,aa as Wi,ac as Gi,ai as Ki,al as qi,an as Ji,ao as Yi,ar as Xi,at as Zi,b as Qi,ba as $i,bc as P,bi as ea,bl as ta,bn as na,bo as ra,br as ia,bs as aa,bt as oa,c as sa,ca,cc as la,ci as ua,cl as da,cn as F,cr as fa,cs as pa,ct as ma,d as ha,da as ga,dc as _a,di as va,dl as ya,dn as ba,do as xa,dr as Sa,ds as Ca,dt as wa,ea as I,ec as Ta,ei as Ea,el as Da,en as Oa,eo as ka,er as Aa,es as ja,et as Ma,f as Na,fa as Pa,fc as Fa,fi as Ia,fl as La,fn as Ra,fo as za,fr as Ba,ft as Va,g as Ha,ga as Ua,gc as Wa,gi as Ga,gl as Ka,gn as qa,go as Ja,gr as Ya,gs as Xa,gt as Za,ha as Qa,hc as $a,hi as eo,hl as to,hn as no,ho as ro,hr as io,hs as ao,ht as oo,i as so,ia as co,ic as lo,ii as uo,il as fo,in as po,io as mo,ir as ho,is as go,it as _o,j as vo,ja as yo,jc as bo,ji as xo,jn as So,jo as Co,jr as wo,js as To,jt as Eo,k as Do,ka as Oo,kc as ko,ki as Ao,kn as jo,ko as Mo,kr as No,ks as Po,kt as Fo,l as Io,la as Lo,lc as Ro,li as zo,ll as Bo,ln as Vo,lo as Ho,lr as Uo,ls as Wo,lt as Go,m as Ko,ma as qo,mc as Jo,mi as Yo,ml as Xo,mn as Zo,mo as Qo,mr as $o,ms as es,mt as ts,n as ns,na as rs,nc as is,ni as as,nl as os,nn as ss,no as cs,nr as ls,ns as us,nt as ds,o as fs,oa as ps,oc as ms,oi as hs,ol as gs,on as _s,oo as vs,or as ys,os as bs,ot as xs,p as Ss,pa as Cs,pc as ws,pi as Ts,pl as Es,pn as Ds,po as Os,pr as ks,ps as As,pt as js,q as Ms,qa as Ns,qc as Ps,qi as Fs,qn as Is,qo as L,qr as Ls,qs as Rs,qt as zs,r as Bs,ra as Vs,rc as Hs,ri as Us,rl as Ws,rn as Gs,ro as Ks,rr as qs,rs as Js,s as Ys,sa as Xs,sc as Zs,si as Qs,sl as $s,sn as ec,so as tc,sr as nc,ss as rc,st as ic,t as ac,ta as oc,tc as sc,ti as cc,tl as lc,tn as uc,to as dc,tr as fc,ts as pc,tt as mc,u as hc,ua as gc,uc as _c,ui as vc,ul as yc,un as bc,uo as xc,ur as Sc,us as Cc,ut as wc,v as Tc,va as Ec,vc as R,vi as Dc,vl as Oc,vn as kc,vo as Ac,vr as jc,vs as Mc,vt as Nc,w as Pc,wa as Fc,wc as Ic,wi as Lc,wl as Rc,wn as zc,wo as z,wr as Bc,ws as Vc,wt as Hc,x as Uc,xa as Wc,xc as Gc,xi as Kc,xl as qc,xn as Jc,xo as Yc,xr as Xc,xs as Zc,xt as Qc,y as $c,ya as el,yc as tl,yi as nl,yl as rl,yn as B,yo as il,yr as al,ys as ol,yt as sl,z as cl,za as ll,zc as ul,zi as dl,zn as fl,zo as pl,zr as ml,zs as hl,zt as gl}from"./chunk-RM4UPSZO-BGEtdTtg.js";import{_ as _l}from"./chunk-FLYJHZSQ-C_Rdp8g6.js";import{r as vl}from"./chunk-7XWMRXBY-wx08Kkrk.js";import{t as yl}from"./dist-CciNuCIL.js";var V=e(a(),1);function bl(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=bl(e[t]))&&(r&&(r+=` `),r+=n);else for(t in e)e[t]&&(r&&(r+=` `),r+=t);return r}function H(){for(var e=0,t,n,r=``;e<arguments.length;)(t=arguments[e++])&&(n=bl(t))&&(r&&(r+=` `),r+=n);return r}var xl=n(((e,t)=>{var n=`Expected a function`,r=NaN,i=`[object Symbol]`,a=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt,u=typeof global==`object`&&global&&global.Object===Object&&global,d=typeof self==`object`&&self&&self.Object===Object&&self,f=u||d||Function(`return this`)(),p=Object.prototype.toString,m=Math.max,h=Math.min,g=function(){return f.Date.now()};function _(e,t,r){var i,a,o,s,c,l,u=0,d=!1,f=!1,p=!0;if(typeof e!=`function`)throw TypeError(n);t=S(t)||0,y(r)&&(d=!!r.leading,f=`maxWait`in r,o=f?m(S(r.maxWait)||0,t):o,p=`trailing`in r?!!r.trailing:p);function _(t){var n=i,r=a;return i=a=void 0,u=t,s=e.apply(r,n),s}function v(e){return u=e,c=setTimeout(C,t),d?_(e):s}function b(e){var n=e-l,r=e-u,i=t-n;return f?h(i,o-r):i}function x(e){var n=e-l,r=e-u;return l===void 0||n>=t||n<0||f&&r>=o}function C(){var e=g();if(x(e))return w(e);c=setTimeout(C,b(e))}function w(e){return c=void 0,p&&i?_(e):(i=a=void 0,s)}function T(){c!==void 0&&clearTimeout(c),u=0,i=l=a=c=void 0}function E(){return c===void 0?s:w(g())}function ee(){var e=g(),n=x(e);if(i=arguments,a=this,l=e,n){if(c===void 0)return v(l);if(f)return c=setTimeout(C,t),_(l)}return c===void 0&&(c=setTimeout(C,t)),s}return ee.cancel=T,ee.flush=E,ee}function v(e,t,r){var i=!0,a=!0;if(typeof e!=`function`)throw TypeError(n);return y(r)&&(i=`leading`in r?!!r.leading:i,a=`trailing`in r?!!r.trailing:a),_(e,t,{leading:i,maxWait:t,trailing:a})}function y(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function b(e){return!!e&&typeof e==`object`}function x(e){return typeof e==`symbol`||b(e)&&p.call(e)==i}function S(e){if(typeof e==`number`)return e;if(x(e))return r;if(y(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=y(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=e.replace(a,``);var n=s.test(e);return n||c.test(e)?l(e.slice(2),n?2:8):o.test(e)?r:+e}t.exports=v})),U=i(),Sl=e(o(),1),Cl=e(xl(),1),wl=0;function Tl(e,t){let n=`atom${++wl}`,r={toString(){return n}};return typeof e==`function`?r.read=e:(r.init=e,r.read=El,r.write=Dl),t&&(r.write=t),r}function El(e){return e(this)}function Dl(e,t,n){return t(this,typeof n==`function`?n(e(this)):n)}var Ol=(e,t)=>e.unstable_is?e.unstable_is(t):t===e,kl=e=>`init`in e,Al=e=>!!e.write,jl=new WeakMap,Ml=e=>Fl(e)&&!jl.get(e)?.[1],Nl=(e,t)=>{let n=jl.get(e);n&&(n[1]=!0,n[0].forEach(e=>e(t)))},Pl=e=>{if(jl.has(e))return;let t=[new Set,!1];jl.set(e,t);let n=()=>{t[1]=!0};e.then(n,n),e.onCancel=e=>{t[0].add(e)}},Fl=e=>typeof e?.then==`function`,Il=e=>`v`in e||`e`in e,Ll=e=>{if(`e`in e)throw e.e;return e.v},Rl=(e,t,n)=>{n.p.has(e)||(n.p.add(e),t.then(()=>{n.p.delete(e)},()=>{n.p.delete(e)}))},zl=(e,t,n,r,i)=>{var a;n.d.set(r,i.n),Ml(n.v)&&Rl(t,n.v,i),(a=i.m)==null||a.t.add(t),e&&Ul(e,r,t)},Bl=()=>({D:new Map,H:new Set,M:new Set,L:new Set}),Vl=(e,t,n)=>{e[t].add(n)},Hl=(e,t,n)=>{e.D.has(t)||(e.D.set(t,new Set),Vl(e,`M`,()=>{var t;(t=n.m)==null||t.l.forEach(t=>Vl(e,`M`,t))}))},Ul=(e,t,n)=>{let r=e.D.get(t);r&&r.add(n)},Wl=(e,t)=>e.D.get(t),Gl=e=>{let t,n=!1,r=e=>{try{e()}catch(e){n||=(t=e,!0)}};for(;e.H.size||e.M.size||e.L.size;)e.D.clear(),e.H.forEach(r),e.H.clear(),e.M.forEach(r),e.M.clear(),e.L.forEach(r),e.L.clear();if(n)throw t},Kl=(...[e,t,n,r])=>{let i=(t,n,r)=>{let i=`v`in n,a=n.v,o=Ml(n.v)?n.v:null;if(Fl(r)){Pl(r);for(let i of n.d.keys())Rl(t,r,e(i));n.v=r}else n.v=r;delete n.e,delete n.x,(!i||!Object.is(a,n.v))&&(++n.n,o&&Nl(o,r))},a=(n,r)=>{var o;let s=e(r);if(Il(s)&&(s.m&&!s.x||Array.from(s.d).every(([e,t])=>a(n,e).n===t)))return s;s.d.clear();let c=!0,l=t=>{if(Ol(r,t)){let n=e(t);if(!Il(n))if(kl(t))i(t,n,t.init);else throw Error(`no atom init`);return Ll(n)}let o=a(n,t);try{return Ll(o)}finally{if(c)zl(n,r,s,t,o);else{let e=Bl();zl(e,r,s,t,o),d(e,r,s),Gl(e)}}},f,p,m={get signal(){return f||=new AbortController,f.signal},get setSelf(){return!p&&Al(r)&&(p=(...e)=>{if(!c)return u(r,...e)}),p}};try{let e=t(r,l,m);if(i(r,s,e),Fl(e)){(o=e.onCancel)==null||o.call(e,()=>f?.abort());let t=()=>{if(s.m){let e=Bl();d(e,r,s),Gl(e)}};e.then(t,t)}return s}catch(e){return delete s.v,s.e=e,delete s.x,++s.n,s}finally{c=!1}},o=e=>Ll(a(void 0,e)),s=(t,n,r)=>{var i;let a=new Map;for(let t of r.m?.t||[]){let n=e(t);n.m&&a.set(t,n)}for(let t of r.p)a.set(t,e(t));return(i=Wl(t,n))==null||i.forEach(t=>{a.set(t,e(t))}),a},c=(e,t,n)=>{let r=[],i=new Set,o=new Set,c=[[t,n]];for(;c.length>0;){let[t,n]=c[c.length-1];if(o.has(t)){c.pop();continue}if(i.has(t)){r.push([t,n,n.n]),o.add(t),n.x=!0,c.pop();continue}i.add(t);for(let[r,a]of s(e,t,n))t!==r&&!i.has(r)&&c.push([r,a])}Vl(e,`H`,()=>{let n=new Set([t]);for(let t=r.length-1;t>=0;--t){let[i,o,s]=r[t],c=!1;for(let e of o.d.keys())if(e!==i&&n.has(e)){c=!0;break}c&&(a(e,i),d(e,i,o),s!==o.n&&(Hl(e,i,o),n.add(i))),delete o.x}})},l=(t,r,...o)=>{let s=!0,u=e=>Ll(a(t,e)),f=(n,...a)=>{let o=e(n);try{if(Ol(r,n)){if(!kl(n))throw Error(`atom not writable`);let e=o.n,r=a[0];i(n,o,r),d(t,n,o),e!==o.n&&(Hl(t,n,o),c(t,n,o));return}else return l(t,n,...a)}finally{s||Gl(t)}};try{return n(r,u,f,...o)}finally{s=!1}},u=(e,...t)=>{let n=Bl();try{return l(n,e,...t)}finally{Gl(n)}},d=(t,n,r)=>{if(r.m&&!Ml(r.v)){for(let i of r.d.keys())r.m.d.has(i)||(f(t,i,e(i)).t.add(n),r.m.d.add(i));for(let i of r.m.d||[])r.d.has(i)||(r.m.d.delete(i),p(t,i,e(i))?.t.delete(n))}},f=(t,n,i)=>{if(!i.m){a(t,n);for(let r of i.d.keys())f(t,r,e(r)).t.add(n);if(i.m={l:new Set,d:new Set(i.d.keys()),t:new Set},Al(n)){let e=i.m,a,o=(e,t)=>{let r=!0;a=(...t)=>{try{return l(e,n,...t)}finally{r||Gl(e)}};try{return t()}finally{r=!1}};Vl(t,`L`,()=>{let i=o(t,()=>r(n,(...e)=>a(...e)));i&&(e.u=e=>o(e,i))})}}return i.m},p=(t,n,r)=>{if(r.m&&!r.m.l.size&&!Array.from(r.m.t).some(t=>e(t).m?.d.has(n))){let i=r.m.u;i&&Vl(t,`L`,()=>i(t)),delete r.m;for(let i of r.d.keys())p(t,i,e(i))?.t.delete(n);return}return r.m};return{get:o,set:u,sub:(t,n)=>{let r=Bl(),i=e(t),a=f(r,t,i).l;return a.add(n),Gl(r),()=>{a.delete(n);let e=Bl();p(e,t,i),Gl(e)}},unstable_derive:i=>Kl(...i(e,t,n,r))}},ql=()=>{let e=new WeakMap;return Kl(t=>{let n=e.get(t);return n||(n={d:new Map,p:new Set,n:0},e.set(t,n)),n},(e,...t)=>e.read(...t),(e,...t)=>e.write(...t),(e,...t)=>e.onMount?.call(e,...t))},Jl,Yl=()=>(Jl||=ql(),Jl),Xl=(0,V.createContext)(void 0),Zl=e=>{let t=(0,V.useContext)(Xl);return e?.store||t||Yl()},Ql=e=>typeof e?.then==`function`,$l=e=>{e.status=`pending`,e.then(t=>{e.status=`fulfilled`,e.value=t},t=>{e.status=`rejected`,e.reason=t})},eu=V.use||(e=>{if(e.status===`pending`)throw e;if(e.status===`fulfilled`)return e.value;throw e.status===`rejected`?e.reason:($l(e),e)}),tu=new WeakMap,nu=e=>{let t=tu.get(e);return t||(t=new Promise((n,r)=>{let i=e,a=e=>t=>{i===e&&n(t)},o=e=>t=>{i===e&&r(t)},s=e=>{`onCancel`in e&&typeof e.onCancel==`function`&&e.onCancel(e=>{Ql(e)?(tu.set(e,t),i=e,e.then(a(e),o(e)),s(e)):n(e)})};e.then(a(e),o(e)),s(e)}),tu.set(e,t)),t};function ru(e,t){let n=Zl(t),[[r,i,a],o]=(0,V.useReducer)(t=>{let r=n.get(e);return Object.is(t[0],r)&&t[1]===n&&t[2]===e?t:[r,n,e]},void 0,()=>[n.get(e),n,e]),s=r;(i!==n||a!==e)&&(o(),s=n.get(e));let c=t?.delay;return(0,V.useEffect)(()=>{let t=n.sub(e,()=>{if(typeof c==`number`){let t=n.get(e);Ql(t)&&$l(nu(t)),setTimeout(o,c);return}o()});return o(),t},[n,e,c]),(0,V.useDebugValue)(s),Ql(s)?eu(nu(s)):s}function iu(e,t){let n=Zl(t);return(0,V.useCallback)((...t)=>n.set(e,...t),[n,e])}function au(e,t){return[ru(e,t),iu(e,t)]}var ou=new WeakMap;function su(e,t){let n=Zl(t),r=cu(n);for(let[i,a]of e)(!r.has(i)||t?.dangerouslyForceHydrate)&&(r.add(i),n.set(i,a))}var cu=e=>{let t=ou.get(e);return t||(t=new WeakSet,ou.set(e,t)),t};function lu(){return lu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lu.apply(this,arguments)}function uu(){let e=(0,V.createContext)(null);function t({store:t,initialValues:n=[],children:r}){let i=(0,V.useRef)(t);return i.current||=ql(),su(n,{store:i.current}),(0,U.jsx)(e.Provider,{value:i.current,children:r})}let n=t=>{let n=(0,V.useContext)(e);if(!n)throw Error(`Missing Provider from createIsolation`);return Zl(lu({store:n},t))};return{Provider:t,useStore:n,useAtom:(e,t)=>{let r=n();return au(e,lu({store:r},t))},useAtomValue:(e,t)=>{let r=n();return ru(e,lu({store:r},t))},useSetAtom:(e,t)=>{let r=n();return iu(e,lu({store:r},t))}}}var{read:du,write:fu}=Tl(null);(0,V.createContext)({scope:void 0,baseStore:void 0});var pu=e(n(((e,t)=>{(function(){var n=this,r={};e===void 0?n.fuzzy=r:t.exports=r,r.simpleFilter=function(e,t){return t.filter(function(t){return r.test(e,t)})},r.test=function(e,t){return r.match(e,t)!==null},r.match=function(e,t,n){n||={};var r=0,i=[],a=t.length,o=0,s=0,c=n.pre||``,l=n.post||``,u=n.caseSensitive&&t||t.toLowerCase(),d;e=n.caseSensitive&&e||e.toLowerCase();for(var f=0;f<a;f++)d=t[f],u[f]===e[r]?(d=c+d+l,r+=1,s+=1+s):s=0,o+=s,i[i.length]=d;return r===e.length?(o=u===e?1/0:o,{rendered:i.join(``),score:o}):null},r.filter=function(e,t,n){return!t||t.length===0?[]:typeof e==`string`?(n||={},t.reduce(function(t,i,a,o){var s=i;n.extract&&(s=n.extract(i));var c=r.match(e,s,n);return c!=null&&(t[t.length]={string:c.rendered,score:c.score,index:a,original:i}),t},[]).sort(function(e,t){return t.score-e.score||e.index-t.index})):t}})()}))(),1);function mu(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2}function hu(e,t,n){let r=mu(t,n);if(r===0)return mu(e,t);let i=((e[0]-t[0])*(n[0]-t[0])+(e[1]-t[1])*(n[1]-t[1]))/r;return i=Math.max(0,Math.min(1,i)),mu(e,gu(t,n,i))}function gu(e,t,n){return[e[0]+(t[0]-e[0])*n,e[1]+(t[1]-e[1])*n]}function _u(e,t){return vu(e,0,e.length,t)}function vu(e,t,n,r,i){let a=i||[],o=e[t],s=e[n-1],c=0,l=1;for(let r=t+1;r<n-1;++r){let t=hu(e[r],o,s);t>c&&(c=t,l=r)}return Math.sqrt(c)>r?(vu(e,t,l+1,r,a),vu(e,l,n,r,a)):(a.length||a.push(o),a.push(s)),a}function yu(e,t,n,r=e=>e){return e*r(.5-t*(.5-n))}function bu(e){return[-e[0],-e[1]]}function xu(e,t){return[e[0]+t[0],e[1]+t[1]]}function Su(e,t){return[e[0]-t[0],e[1]-t[1]]}function Cu(e,t){return[e[0]*t,e[1]*t]}function wu(e,t){return[e[0]/t,e[1]/t]}function Tu(e){return[e[1],-e[0]]}function Eu(e,t){return e[0]*t[0]+e[1]*t[1]}function Du(e,t){return e[0]===t[0]&&e[1]===t[1]}function Ou(e){return Math.hypot(e[0],e[1])}function ku(e){return e[0]*e[0]+e[1]*e[1]}function Au(e,t){return ku(Su(e,t))}function ju(e){return wu(e,Ou(e))}function Mu(e,t){return Math.hypot(e[1]-t[1],e[0]-t[0])}function Nu(e,t,n){let r=Math.sin(n),i=Math.cos(n),a=e[0]-t[0],o=e[1]-t[1],s=a*i-o*r,c=a*r+o*i;return[s+t[0],c+t[1]]}function Pu(e,t,n){return xu(e,Cu(Su(t,e),n))}function Fu(e,t,n){return xu(e,Cu(t,n))}var{min:Iu,PI:Lu}=Math,Ru=.275,zu=Lu+1e-4;function Bu(e,t={}){let{size:n=16,smoothing:r=.5,thinning:i=.5,simulatePressure:a=!0,easing:o=e=>e,start:s={},end:c={},last:l=!1}=t,{cap:u=!0,easing:d=e=>e*(2-e)}=s,{cap:f=!0,easing:p=e=>--e*e*e+1}=c;if(e.length===0||n<=0)return[];let m=e[e.length-1].runningLength,h=s.taper===!1?0:s.taper===!0?Math.max(n,m):s.taper,g=c.taper===!1?0:c.taper===!0?Math.max(n,m):c.taper,_=(n*r)**2,v=[],y=[],b=e.slice(0,10).reduce((e,t)=>{let r=t.pressure;if(a){let i=Iu(1,t.distance/n);r=Iu(1,e+(Iu(1,1-i)-e)*(i*Ru))}return(e+r)/2},e[0].pressure),x=yu(n,i,e[e.length-1].pressure,o),S,C=e[0].vector,w=e[0].point,T=w,E=w,ee=T,te=!1;for(let t=0;t<e.length;t++){let{pressure:r}=e[t],{point:s,vector:c,distance:l,runningLength:u}=e[t];if(t<e.length-1&&m-u<3)continue;if(i){if(a){let e=Iu(1,l/n),t=Iu(1,1-e);r=Iu(1,b+(t-b)*(e*Ru))}x=yu(n,i,r,o)}else x=n/2;S===void 0&&(S=x);let f=u<h?d(u/h):1,ne=m-u<g?p((m-u)/g):1;x=Math.max(.01,x*Math.min(f,ne));let re=(t<e.length-1?e[t+1]:e[t]).vector,D=t<e.length-1?Eu(c,re):1,ie=Eu(c,C)<0&&!te,ae=D!==null&&D<0;if(ie||ae){let e=Cu(Tu(C),x);for(let t=0;t<=1;t+=.07692307692307693)E=Nu(Su(s,e),s,zu*t),v.push(E),ee=Nu(xu(s,e),s,zu*-t),y.push(ee);w=E,T=ee,ae&&(te=!0);continue}if(te=!1,t===e.length-1){let e=Cu(Tu(c),x);v.push(Su(s,e)),y.push(xu(s,e));continue}let oe=Cu(Tu(Pu(re,c,D)),x);E=Su(s,oe),(t<=1||Au(w,E)>_)&&(v.push(E),w=E),ee=xu(s,oe),(t<=1||Au(T,ee)>_)&&(y.push(ee),T=ee),b=r,C=c}let ne=e[0].point.slice(0,2),re=e.length>1?e[e.length-1].point.slice(0,2):xu(e[0].point,[1,1]),D=[],ie=[];if(e.length===1){if(!(h||g)||l){let e=Fu(ne,ju(Tu(Su(ne,re))),-(S||x)),t=[];for(let n=1/13,r=n;r<=1;r+=n)t.push(Nu(e,ne,zu*2*r));return t}}else{if(!(h||g&&e.length===1))if(u)for(let e=1/13,t=e;t<=1;t+=e){let e=Nu(y[0],ne,zu*t);D.push(e)}else{let e=Su(v[0],y[0]),t=Cu(e,.5),n=Cu(e,.51);D.push(Su(ne,t),Su(ne,n),xu(ne,n),xu(ne,t))}let t=Tu(bu(e[e.length-1].vector));if(g||h&&e.length===1)ie.push(re);else if(f){let e=Fu(re,t,x);for(let t=1/29,n=t;n<1;n+=t)ie.push(Nu(e,re,zu*3*n))}else ie.push(xu(re,Cu(t,x)),xu(re,Cu(t,x*.99)),Su(re,Cu(t,x*.99)),Su(re,Cu(t,x)))}return v.concat(ie,y.reverse(),D)}function Vu(e,t={}){let{streamline:n=.5,size:r=16,last:i=!1}=t;if(e.length===0)return[];let a=.15+(1-n)*.85,o=Array.isArray(e[0])?e:e.map(({x:e,y:t,pressure:n=.5})=>[e,t,n]);if(o.length===2){let e=o[1];o=o.slice(0,-1);for(let t=1;t<5;t++)o.push(Pu(o[0],e,t/4))}o.length===1&&(o=[...o,[...xu(o[0],[1,1]),...o[0].slice(2)]]);let s=[{point:[o[0][0],o[0][1]],pressure:o[0][2]>=0?o[0][2]:.25,vector:[1,1],distance:0,runningLength:0}],c=!1,l=0,u=s[0],d=o.length-1;for(let e=1;e<o.length;e++){let t=i&&e===d?o[e].slice(0,2):Pu(u.point,o[e],a);if(Du(u.point,t))continue;let n=Mu(t,u.point);if(l+=n,e<d&&!c){if(l<r)continue;c=!0}u={point:t,pressure:o[e][2]>=0?o[e][2]:.5,vector:ju(Su(u.point,t)),distance:n,runningLength:l},s.push(u)}return s[0].vector=s[1]?.vector||[0,0],s}function Hu(e,t={}){return Bu(Vu(e,t),t)}var Uu=e=>{let t,n=new Set,r=(e,r)=>{let i=typeof e==`function`?e(t):e;if(!Object.is(i,t)){let e=t;t=r??(typeof i!=`object`||!i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,a={setState:r,getState:i,getInitialState:()=>o,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{n.clear()}},o=t=e(r,i,a);return a},Wu=e=>e?Uu(e):Uu,Gu=e(s(),1),{useDebugValue:Ku}=V.default,{useSyncExternalStoreWithSelector:qu}=Gu.default,Ju=e=>e;function Yu(e,t=Ju,n){let r=qu(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return Ku(r),r}var Xu=e=>{let t=typeof e==`function`?Wu(e):e,n=(e,n)=>Yu(t,e,n);return Object.assign(n,t),n},Zu=e=>e?Xu(e):Xu,Qu,$u=typeof window<`u`&&((Qu=window.document)!=null&&Qu.createElement||window.navigator?.product===`ReactNative`)?V.useLayoutEffect:V.useEffect;function ed(){let e=Zu(e=>({current:[],version:0,set:e}));return{In:({children:t})=>{let n=e(e=>e.set),r=e(e=>e.version);return $u(()=>{n(e=>({version:e.version+1}))},[]),$u(()=>(n(({current:e})=>({current:[...e,t]})),()=>n(({current:e})=>({current:e.filter(e=>e!==t)}))),[t,r]),null},Out:()=>{let t=e(e=>e.current);return V.createElement(V.Fragment,null,t)}}}var td=n(((e,t)=>{var n=`Expected a function`,r=NaN,i=`[object Symbol]`,a=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt,u=typeof global==`object`&&global&&global.Object===Object&&global,d=typeof self==`object`&&self&&self.Object===Object&&self,f=u||d||Function(`return this`)(),p=Object.prototype.toString,m=Math.max,h=Math.min,g=function(){return f.Date.now()};function _(e,t,r){var i,a,o,s,c,l,u=0,d=!1,f=!1,p=!0;if(typeof e!=`function`)throw TypeError(n);t=x(t)||0,v(r)&&(d=!!r.leading,f=`maxWait`in r,o=f?m(x(r.maxWait)||0,t):o,p=`trailing`in r?!!r.trailing:p);function _(t){var n=i,r=a;return i=a=void 0,u=t,s=e.apply(r,n),s}function y(e){return u=e,c=setTimeout(C,t),d?_(e):s}function b(e){var n=e-l,r=e-u,i=t-n;return f?h(i,o-r):i}function S(e){var n=e-l,r=e-u;return l===void 0||n>=t||n<0||f&&r>=o}function C(){var e=g();if(S(e))return w(e);c=setTimeout(C,b(e))}function w(e){return c=void 0,p&&i?_(e):(i=a=void 0,s)}function T(){c!==void 0&&clearTimeout(c),u=0,i=l=a=c=void 0}function E(){return c===void 0?s:w(g())}function ee(){var e=g(),n=S(e);if(i=arguments,a=this,l=e,n){if(c===void 0)return y(l);if(f)return c=setTimeout(C,t),_(l)}return c===void 0&&(c=setTimeout(C,t)),s}return ee.cancel=T,ee.flush=E,ee}function v(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function y(e){return!!e&&typeof e==`object`}function b(e){return typeof e==`symbol`||y(e)&&p.call(e)==i}function x(e){if(typeof e==`number`)return e;if(b(e))return r;if(v(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=v(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=e.replace(a,``);var n=s.test(e);return n||c.test(e)?l(e.slice(2),n?2:8):o.test(e)?r:+e}t.exports=_})),nd=t({Button:()=>Mx,CaptureUpdateAction:()=>j,CommandPalette:()=>bS,DEFAULT_LASER_COLOR:()=>`red`,DEFAULT_OVERSCROLL:()=>150,DefaultSidebar:()=>JO,DiagramToCodePlugin:()=>lP,Ellipsify:()=>cg,Excalidraw:()=>dP,ExcalidrawAPIContext:()=>rN,ExcalidrawAPIProvider:()=>uP,FONT_FAMILY:()=>As,Fonts:()=>Zn,Footer:()=>PN,LiveCollaborationTrigger:()=>IN,MIME_TYPES:()=>R,MainMenu:()=>kO,ROUNDNESS:()=>Ta,Sidebar:()=>$D,Stats:()=>dj,THEME:()=>P,TTDDialog:()=>yA,TTDDialogTrigger:()=>aP,TTDStreamFetch:()=>cP,UserIdleState:()=>ri,WelcomeScreen:()=>eP,applyDarkModeFilter:()=>xr,bumpVersion:()=>$r,convertToExcalidrawElements:()=>$i,defaultLang:()=>pd,elementsOverlappingBBox:()=>kc,exportToBlob:()=>ub,exportToCanvas:()=>lb,exportToClipboard:()=>fb,exportToSvg:()=>db,getCommonBounds:()=>bc,getDataURL:()=>$e,getFormFactor:()=>tt,getLibraryItemsHash:()=>Nb,getNonDeletedElements:()=>A,getSceneVersion:()=>gl,getStrokeWidthByKey:()=>tl,getTextFromElements:()=>wc,getVisibleSceneBounds:()=>He,hashElementsVersion:()=>Ri,hashString:()=>Xs,isElementLink:()=>ps,isInvisiblySmallElement:()=>ys,isLinearElement:()=>Zo,isSpreadsheetValidForChartType:()=>rE,languages:()=>md,loadFromBlob:()=>hi,loadLibraryFromBlob:()=>Uc,loadSceneOrLibraryFromBlob:()=>hr,mergeLibraryItems:()=>Sb,mutateElement:()=>Hr,newElementWith:()=>B,normalizeLink:()=>ao,parseLibraryTokensFromUrl:()=>Db,reconcileElements:()=>iP,renderSpreadsheet:()=>PE,restoreAppState:()=>_o,restoreElement:()=>Qt,restoreElements:()=>_t,restoreLibraryItems:()=>Hn,sceneCoordsToViewportCoords:()=>Wn,serializeAsJSON:()=>Pc,serializeLibraryAsJSON:()=>he,setCustomTextMetricsProvider:()=>fc,throttleRAF:()=>lc,tryParseSpreadsheet:()=>ME,useEditorInterface:()=>sN,useExcalidrawAPI:()=>mN,useExcalidrawStateValue:()=>fP,useHandleLibrary:()=>Fb,useI18n:()=>Sd,useOnExcalidrawStateChange:()=>Qg,useStylesPanelMode:()=>cN,viewportCoordsToSceneCoords:()=>Ic,zoomToFitBounds:()=>Ui}),rd=e(td(),1),id=uu(),{useAtom:ad,useSetAtom:od,useAtomValue:sd,useStore:cd}=id,ld=id.Provider,ud=ql(),dd=ie({"./locales/ar-SA.json":()=>r(()=>import(`./ar-SA-PQUY64WN-DYuxhToO.js`),__vite__mapDeps([0,1,2]),import.meta.url),"./locales/az-AZ.json":()=>r(()=>import(`./az-AZ-OXJXL76K-BySQeNg2.js`),__vite__mapDeps([3,1,2]),import.meta.url),"./locales/bg-BG.json":()=>r(()=>import(`./bg-BG-W2GKIJDF-CKqeQQSA.js`),__vite__mapDeps([4,1,2]),import.meta.url),"./locales/bn-BD.json":()=>r(()=>import(`./bn-BD-TGL7M4PJ-Ckr8R1k_.js`),__vite__mapDeps([5,1,2]),import.meta.url),"./locales/bn-IN.json":()=>r(()=>import(`./bn-IN-BKETKYEH-DSAtxIce.js`),__vite__mapDeps([6,1,2]),import.meta.url),"./locales/ca-ES.json":()=>r(()=>import(`./ca-ES-LD5SCRVV-DgJq7kZP.js`),__vite__mapDeps([7,1,2]),import.meta.url),"./locales/cs-CZ.json":()=>r(()=>import(`./cs-CZ-OFPU5DBV-B3KaScUn.js`),__vite__mapDeps([8,1,2]),import.meta.url),"./locales/da-DK.json":()=>r(()=>import(`./da-DK-FRDJFYWF-D8Rpm4rK.js`),__vite__mapDeps([9,1,2]),import.meta.url),"./locales/de-CH.json":()=>r(()=>import(`./de-CH-ZG7H3QK3-C9ysaFIc.js`),__vite__mapDeps([10,1,2]),import.meta.url),"./locales/de-DE.json":()=>r(()=>import(`./de-DE-SIJYH4IH-B9QHfeLl.js`),__vite__mapDeps([11,1,2]),import.meta.url),"./locales/el-GR.json":()=>r(()=>import(`./el-GR-IEE2CGI2-KFL97KNN.js`),__vite__mapDeps([12,1,2]),import.meta.url),"./locales/en.json":()=>r(()=>import(`./en-SJ2YIMFF-Bpc_09Sc.js`),__vite__mapDeps([13,14,1,2]),import.meta.url),"./locales/es-ES.json":()=>r(()=>import(`./es-ES-TVVPWKV5-DgfnmIQF.js`),__vite__mapDeps([15,1,2]),import.meta.url),"./locales/eu-ES.json":()=>r(()=>import(`./eu-ES-CGBMFQDT-BB920Uv6.js`),__vite__mapDeps([16,1,2]),import.meta.url),"./locales/fa-IR.json":()=>r(()=>import(`./fa-IR-IE6XAPR4-CC4Ab8w1.js`),__vite__mapDeps([17,1,2]),import.meta.url),"./locales/fi-FI.json":()=>r(()=>import(`./fi-FI-P7TKNHRM-BUukeg7n.js`),__vite__mapDeps([18,1,2]),import.meta.url),"./locales/fr-FR.json":()=>r(()=>import(`./fr-FR-QI2XZNT7-6vVbDnWC.js`),__vite__mapDeps([19,1,2]),import.meta.url),"./locales/gl-ES.json":()=>r(()=>import(`./gl-ES-TLYCNOZZ-CjDMbjS2.js`),__vite__mapDeps([20,1,2]),import.meta.url),"./locales/he-IL.json":()=>r(()=>import(`./he-IL-ZX43XLGP-DIcqc4e9.js`),__vite__mapDeps([21,1,2]),import.meta.url),"./locales/hi-IN.json":()=>r(()=>import(`./hi-IN-UTYRMTUF-BYJxB-PV.js`),__vite__mapDeps([22,1,2]),import.meta.url),"./locales/hu-HU.json":()=>r(()=>import(`./hu-HU-AJOSEBW6-eBeH5bQq.js`),__vite__mapDeps([23,1,2]),import.meta.url),"./locales/id-ID.json":()=>r(()=>import(`./id-ID-ETLTVG6C-BMcMAW7s.js`),__vite__mapDeps([24,1,2]),import.meta.url),"./locales/it-IT.json":()=>r(()=>import(`./it-IT-B4B6TP6L-DA_lQ37-.js`),__vite__mapDeps([25,1,2]),import.meta.url),"./locales/ja-JP.json":()=>r(()=>import(`./ja-JP-IYKVURR5-DYHbv1He.js`),__vite__mapDeps([26,1,2]),import.meta.url),"./locales/kaa.json":()=>r(()=>import(`./kaa-SE2BUIKX-BwtwrI7R.js`),__vite__mapDeps([27,1,2]),import.meta.url),"./locales/kab-KAB.json":()=>r(()=>import(`./kab-KAB-Y3GLKXLR-DRCna81E.js`),__vite__mapDeps([28,1,2]),import.meta.url),"./locales/kk-KZ.json":()=>r(()=>import(`./kk-KZ-ABWUFVOH-Cxj3ynIB.js`),__vite__mapDeps([29,1,2]),import.meta.url),"./locales/km-KH.json":()=>r(()=>import(`./km-KH-PCWDKPHP-DZAhXJCJ.js`),__vite__mapDeps([30,1,2]),import.meta.url),"./locales/ko-KR.json":()=>r(()=>import(`./ko-KR-7JQDXKGM-C536tDao.js`),__vite__mapDeps([31,1,2]),import.meta.url),"./locales/ku-TR.json":()=>r(()=>import(`./ku-TR-NAH2Q5B7-1aEuKzUR.js`),__vite__mapDeps([32,1,2]),import.meta.url),"./locales/lt-LT.json":()=>r(()=>import(`./lt-LT-VQFYRSNQ-KC3X22NE.js`),__vite__mapDeps([33,1,2]),import.meta.url),"./locales/lv-LV.json":()=>r(()=>import(`./lv-LV-T62VSYUM-BJRLNoYb.js`),__vite__mapDeps([34,1,2]),import.meta.url),"./locales/mr-IN.json":()=>r(()=>import(`./mr-IN-V4FHLCJE-D63D3xFD.js`),__vite__mapDeps([35,1,2]),import.meta.url),"./locales/my-MM.json":()=>r(()=>import(`./my-MM-E3SQ6E54-DLiFMfby.js`),__vite__mapDeps([36,1,2]),import.meta.url),"./locales/nb-NO.json":()=>r(()=>import(`./nb-NO-MLNOFN5H-DSMSq2D8.js`),__vite__mapDeps([37,1,2]),import.meta.url),"./locales/nl-NL.json":()=>r(()=>import(`./nl-NL-D5L3ZV4M-BXGnVfF6.js`),__vite__mapDeps([38,1,2]),import.meta.url),"./locales/nn-NO.json":()=>r(()=>import(`./nn-NO-NNHDGPKB-BLXtmnK7.js`),__vite__mapDeps([39,1,2]),import.meta.url),"./locales/oc-FR.json":()=>r(()=>import(`./oc-FR-DWCRF55G-y49BCg50.js`),__vite__mapDeps([40,1,2]),import.meta.url),"./locales/pa-IN.json":()=>r(()=>import(`./pa-IN-3JSAY44M-cILFRwFO.js`),__vite__mapDeps([41,1,2]),import.meta.url),"./locales/percentages.json":()=>r(()=>import(`./percentages-ETZPVQEE-wFMtNE0U.js`),__vite__mapDeps([42,43,1,2]),import.meta.url),"./locales/pl-PL.json":()=>r(()=>import(`./pl-PL-ACURYKP3-Ly8ADv2z.js`),__vite__mapDeps([44,1,2]),import.meta.url),"./locales/pt-BR.json":()=>r(()=>import(`./pt-BR-LOX7MLGD-B_-UeSLp.js`),__vite__mapDeps([45,1,2]),import.meta.url),"./locales/pt-PT.json":()=>r(()=>import(`./pt-PT-CZ2U2RFQ-Bl3_CO8K.js`),__vite__mapDeps([46,1,2]),import.meta.url),"./locales/ro-RO.json":()=>r(()=>import(`./ro-RO-2HECL2X6-DzB5YxTl.js`),__vite__mapDeps([47,1,2]),import.meta.url),"./locales/ru-RU.json":()=>r(()=>import(`./ru-RU-HAYNXO46-CIY1uG0L.js`),__vite__mapDeps([48,1,2]),import.meta.url),"./locales/si-LK.json":()=>r(()=>import(`./si-LK-W5KNS4H6-hoNx2dpG.js`),__vite__mapDeps([49,1,2]),import.meta.url),"./locales/sk-SK.json":()=>r(()=>import(`./sk-SK-7K2CFGDV-BZ7Ti6j5.js`),__vite__mapDeps([50,1,2]),import.meta.url),"./locales/sl-SI.json":()=>r(()=>import(`./sl-SI-OXV2QZWW-CM7rKzfZ.js`),__vite__mapDeps([51,1,2]),import.meta.url),"./locales/sv-SE.json":()=>r(()=>import(`./sv-SE-JTOBZRGL-BMvNzn7Y.js`),__vite__mapDeps([52,1,2]),import.meta.url),"./locales/ta-IN.json":()=>r(()=>import(`./ta-IN-KFAVKXGT-CGUK3scu.js`),__vite__mapDeps([53,1,2]),import.meta.url),"./locales/th-TH.json":()=>r(()=>import(`./th-TH-VDMSCPDL-cY9nRXwD.js`),__vite__mapDeps([54,1,2]),import.meta.url),"./locales/tr-TR.json":()=>r(()=>import(`./tr-TR-CEZ6GX45-wB7SWq4M.js`),__vite__mapDeps([55,1,2]),import.meta.url),"./locales/uk-UA.json":()=>r(()=>import(`./uk-UA-Q3H3OXQC-BsmY4BM1.js`),__vite__mapDeps([56,1,2]),import.meta.url),"./locales/uz-UZ.json":()=>r(()=>import(`./uz-UZ-NGCSWWPX-CcM2ewUF.js`),__vite__mapDeps([57,1,2]),import.meta.url),"./locales/vi-VN.json":()=>r(()=>import(`./vi-VN-P3NDEVPS-B23kwAZK.js`),__vite__mapDeps([58,1,2]),import.meta.url),"./locales/zh-CN.json":()=>r(()=>import(`./zh-CN-SS3O57GA-CbZ3Qa2K.js`),__vite__mapDeps([59,1,2]),import.meta.url),"./locales/zh-HK.json":()=>r(()=>import(`./zh-HK-LWJT3VCF-B65VThuQ.js`),__vite__mapDeps([60,1,2]),import.meta.url),"./locales/zh-TW.json":()=>r(()=>import(`./zh-TW-VJXC72RT-Ca_1bKig.js`),__vite__mapDeps([61,1,2]),import.meta.url)}),fd=85,pd={code:`en`,label:`English`},md=[pd,...[{code:`ar-SA`,label:`العربية`,rtl:!0},{code:`bg-BG`,label:`Български`},{code:`ca-ES`,label:`Català`},{code:`cs-CZ`,label:`Česky`},{code:`de-DE`,label:`Deutsch`},{code:`el-GR`,label:`Ελληνικά`},{code:`es-ES`,label:`Español`},{code:`eu-ES`,label:`Euskara`},{code:`fa-IR`,label:`فارسی`,rtl:!0},{code:`fi-FI`,label:`Suomi`},{code:`fr-FR`,label:`Français`},{code:`gl-ES`,label:`Galego`},{code:`he-IL`,label:`עברית`,rtl:!0},{code:`hi-IN`,label:`हिन्दी`},{code:`hu-HU`,label:`Magyar`},{code:`id-ID`,label:`Bahasa Indonesia`},{code:`it-IT`,label:`Italiano`},{code:`ja-JP`,label:`日本語`},{code:`kab-KAB`,label:`Taqbaylit`},{code:`kk-KZ`,label:`Қазақ тілі`},{code:`ko-KR`,label:`한국어`},{code:`ku-TR`,label:`Kurdî`},{code:`lt-LT`,label:`Lietuvių`},{code:`lv-LV`,label:`Latviešu`},{code:`my-MM`,label:`Burmese`},{code:`nb-NO`,label:`Norsk bokmål`},{code:`nl-NL`,label:`Nederlands`},{code:`nn-NO`,label:`Norsk nynorsk`},{code:`oc-FR`,label:`Occitan`},{code:`pa-IN`,label:`ਪੰਜਾਬੀ`},{code:`pl-PL`,label:`Polski`},{code:`pt-BR`,label:`Português Brasileiro`},{code:`pt-PT`,label:`Português`},{code:`ro-RO`,label:`Română`},{code:`ru-RU`,label:`Русский`},{code:`sk-SK`,label:`Slovenčina`},{code:`sv-SE`,label:`Svenska`},{code:`sl-SI`,label:`Slovenščina`},{code:`tr-TR`,label:`Türkçe`},{code:`uk-UA`,label:`Українська`},{code:`zh-CN`,label:`简体中文`},{code:`zh-TW`,label:`繁體中文`},{code:`vi-VN`,label:`Tiếng Việt`},{code:`mr-IN`,label:`मराठी`}].filter(e=>vl[e.code]>=fd).sort((e,t)=>e.label>t.label?1:-1)],hd=`__test__`;Jt()&&md.unshift({code:hd,label:`test language`},{code:`${hd}.rtl`,label:`‪test language (rtl)‬`,rtl:!0});var gd=pd,_d={},vd=async e=>{if(gd=e,document.documentElement.dir=gd.rtl?`rtl`:`ltr`,document.documentElement.lang=gd.code,e.code.startsWith(hd))_d={};else try{_d=await dd(`./locales/${gd.code}.json`)}catch(t){console.error(`Failed to load language ${e.code}:`,t.message),_d=_l}ud.set(xd,e.code)},yd=()=>gd,bd=(e,t)=>{for(let n=0;n<t.length;++n){let r=t[n];if(e[r]===void 0)return;e=e[r]}if(typeof e==`string`)return e},W=(e,t,n)=>{if(gd.code.startsWith(hd))return`\u202A[[${t?`${e}(${JSON.stringify(t).slice(1,-1)})`:e}]]\u202C`;let r=e.split(`.`),i=bd(_d,r)||bd(_l,r)||n;if(i===void 0){let t=`Can't find translation for ${e}`;if(re.PROD)return console.warn(t),``;throw Error(t)}if(t)for(let e in t)i=i.replace(`{{${e}}}`,String(t[e]));return i},xd=Tl(pd.code),Sd=()=>({t:W,langCode:sd(xd)}),Cd=e=>`var(--icon-fill-color)`,wd=e=>e===P.LIGHT?`#fff`:`#1e1e1e`,G=(e,t=512)=>{let{width:n=512,height:r=n,mirror:i,style:a,...o}=typeof t==`number`?{width:t}:t;return(0,U.jsx)(`svg`,{"aria-hidden":`true`,focusable:`false`,role:`img`,viewBox:`0 0 ${n} ${r}`,className:H({"rtl-mirror":i}),style:a,...o,children:typeof e==`string`?(0,U.jsx)(`path`,{fill:`currentColor`,d:e}):e})},K={width:24,height:24,fill:`none`,strokeWidth:2,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`},q={width:20,height:20,fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`},Td={width:40,height:20};G((0,U.jsxs)(`g`,{strokeWidth:`1.5`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`rect`,{x:3,y:8,width:18,height:4,rx:1}),(0,U.jsx)(`line`,{x1:12,y1:8,x2:12,y2:21}),(0,U.jsx)(`path`,{d:`M19 12v7a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-7`}),(0,U.jsx)(`path`,{d:`M7.5 8a2.5 2.5 0 0 1 0 -5a4.8 8 0 0 1 4.5 5a4.8 8 0 0 1 4.5 -5a2.5 2.5 0 0 1 0 5`})]}),K);var Ed=G((0,U.jsxs)(`g`,{strokeWidth:`1.25`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M3 19a9 9 0 0 1 9 0a9 9 0 0 1 9 0`}),(0,U.jsx)(`path`,{d:`M3 6a9 9 0 0 1 9 0a9 9 0 0 1 9 0`}),(0,U.jsx)(`line`,{x1:`3`,y1:`6`,x2:`3`,y2:`19`}),(0,U.jsx)(`line`,{x1:`12`,y1:`6`,x2:`12`,y2:`19`}),(0,U.jsx)(`line`,{x1:`21`,y1:`6`,x2:`21`,y2:`19`})]}),K),Dd=G((0,U.jsxs)(`svg`,{strokeWidth:`1.5`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`line`,{x1:`12`,y1:`5`,x2:`12`,y2:`19`}),(0,U.jsx)(`line`,{x1:`5`,y1:`12`,x2:`19`,y2:`12`})]}),K),Od=G((0,U.jsxs)(`g`,{strokeWidth:`1.5`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`circle`,{cx:`12`,cy:`12`,r:`1`}),(0,U.jsx)(`circle`,{cx:`12`,cy:`19`,r:`1`}),(0,U.jsx)(`circle`,{cx:`12`,cy:`5`,r:`1`})]}),K),kd=G((0,U.jsxs)(`g`,{strokeWidth:`1.5`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M5 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`}),(0,U.jsx)(`path`,{d:`M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`}),(0,U.jsx)(`path`,{d:`M19 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`})]}),K),Ad=G((0,U.jsxs)(`svg`,{strokeWidth:`1.5`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M9 4v6l-2 4v2h10v-2l-2 -4v-6`}),(0,U.jsx)(`line`,{x1:`12`,y1:`16`,x2:`12`,y2:`21`}),(0,U.jsx)(`line`,{x1:`8`,y1:`4`,x2:`16`,y2:`4`})]}),K),jd=G((0,U.jsxs)(`g`,{strokeWidth:1.25,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M12 5m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`}),(0,U.jsx)(`path`,{d:`M19 8m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`}),(0,U.jsx)(`path`,{d:`M5 11m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`}),(0,U.jsx)(`path`,{d:`M15 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`}),(0,U.jsx)(`path`,{d:`M6.5 9.5l3.5 -3`}),(0,U.jsx)(`path`,{d:`M14 5.5l3 1.5`}),(0,U.jsx)(`path`,{d:`M18.5 10l-2.5 7`}),(0,U.jsx)(`path`,{d:`M13.5 17.5l-7 -5`})]}),K),Md=G((0,U.jsxs)(`g`,{children:[(0,U.jsx)(`path`,{d:`M13.542 8.542H6.458a2.5 2.5 0 0 0-2.5 2.5v3.75a2.5 2.5 0 0 0 2.5 2.5h7.084a2.5 2.5 0 0 0 2.5-2.5v-3.75a2.5 2.5 0 0 0-2.5-2.5Z`,stroke:`currentColor`,strokeWidth:`1.25`}),(0,U.jsx)(`path`,{d:`M10 13.958a1.042 1.042 0 1 0 0-2.083 1.042 1.042 0 0 0 0 2.083Z`,stroke:`currentColor`,strokeWidth:`1.25`}),(0,U.jsx)(`mask`,{id:`UnlockedIcon`,style:{maskType:`alpha`},maskUnits:`userSpaceOnUse`,x:6,y:1,width:9,height:9,children:(0,U.jsx)(`path`,{stroke:`none`,d:`M6.399 9.561V5.175c0-.93.401-1.823 1.116-2.48a3.981 3.981 0 0 1 2.693-1.028c1.01 0 1.98.37 2.694 1.027.715.658 1.116 1.55 1.116 2.481`,fill:`#fff`})}),(0,U.jsx)(`g`,{mask:`url(#UnlockedIcon)`,children:(0,U.jsx)(`path`,{stroke:`none`,d:`M5.149 9.561v1.25h2.5v-1.25h-2.5Zm5.06-7.894V.417v1.25Zm2.559 3.508v1.25h2.5v-1.25h-2.5ZM7.648 8.51V5.175h-2.5V8.51h2.5Zm0-3.334c0-.564.243-1.128.713-1.561L6.668 1.775c-.959.883-1.52 2.104-1.52 3.4h2.5Zm.713-1.561a2.732 2.732 0 0 1 1.847-.697v-2.5c-1.31 0-2.585.478-3.54 1.358L8.36 3.614Zm1.847-.697c.71 0 1.374.26 1.847.697l1.694-1.839a5.231 5.231 0 0 0-3.54-1.358v2.5Zm1.847.697c.47.433.713.997.713 1.561h2.5c0-1.296-.56-2.517-1.52-3.4l-1.693 1.839Z`,fill:`currentColor`})})]}),q),Nd=G((0,U.jsxs)(`g`,{strokeWidth:`1.25`,children:[(0,U.jsx)(`path`,{d:`M13.542 8.542H6.458a2.5 2.5 0 0 0-2.5 2.5v3.75a2.5 2.5 0 0 0 2.5 2.5h7.084a2.5 2.5 0 0 0 2.5-2.5v-3.75a2.5 2.5 0 0 0-2.5-2.5Z`}),(0,U.jsx)(`path`,{d:`M10 13.958a1.042 1.042 0 1 0 0-2.083 1.042 1.042 0 0 0 0 2.083Z`}),(0,U.jsx)(`path`,{d:`M6.667 8.333V5.417C6.667 3.806 8.159 2.5 10 2.5c1.841 0 3.333 1.306 3.333 2.917v2.916`})]}),q),Pd=G((0,U.jsx)(`g`,{fill:`currentColor`,children:(0,U.jsx)(`path`,{d:`M12 2a5 5 0 0 1 5 5v3a3 3 0 0 1 3 3v6a3 3 0 0 1 -3 3h-10a3 3 0 0 1 -3 -3v-6a3 3 0 0 1 3 -3v-3a5 5 0 0 1 5 -5m0 12a2 2 0 0 0 -1.995 1.85l-.005 .15a2 2 0 1 0 2 -2m0 -10a3 3 0 0 0 -3 3v3h6v-3a3 3 0 0 0 -3 -3`})}),{width:24,height:24}),Fd=G((0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`path`,{d:`M38.5 83.5c-14-2-17.833-10.473-21-22.5C14.333 48.984 12 22 12 12.5`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`}),(0,U.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`m12.005 10.478 7.905 14.423L6 25.75l6.005-15.273Z`,fill:`currentColor`}),(0,U.jsx)(`path`,{d:`M12.005 10.478c1.92 3.495 3.838 7 7.905 14.423m-7.905-14.423c3.11 5.683 6.23 11.368 7.905 14.423m0 0c-3.68.226-7.35.455-13.91.85m13.91-.85c-5.279.33-10.566.647-13.91.85m0 0c1.936-4.931 3.882-9.86 6.005-15.273M6 25.75c2.069-5.257 4.135-10.505 6.005-15.272`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`})]}),{width:41,height:94,fill:`none`}),Id=G((0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`path`,{d:`M18.026 1.232c-5.268 13.125-5.548 33.555 3.285 42.311 8.823 8.75 33.31 12.304 42.422 13.523`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`}),(0,U.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`m72.181 59.247-13.058-10-2.948 13.62 16.006-3.62Z`,fill:`currentColor`}),(0,U.jsx)(`path`,{d:`M72.181 59.247c-3.163-2.429-6.337-4.856-13.058-10m13.058 10c-5.145-3.936-10.292-7.882-13.058-10m0 0c-.78 3.603-1.563 7.196-2.948 13.62m2.948-13.62c-1.126 5.168-2.24 10.346-2.948 13.62m0 0c5.168-1.166 10.334-2.343 16.006-3.62m-16.006 3.62c5.51-1.248 11.01-2.495 16.006-3.62`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`})]}),{width:85,height:71,fill:`none`}),Ld=G((0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`path`,{d:`M1 77c14-2 31.833-11.973 35-24 3.167-12.016-6-35-9.5-43.5`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`}),(0,U.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`m24.165 1.093-2.132 16.309 13.27-4.258-11.138-12.05Z`,fill:`currentColor`}),(0,U.jsx)(`path`,{d:`M24.165 1.093c-.522 3.953-1.037 7.916-2.132 16.309m2.131-16.309c-.835 6.424-1.68 12.854-2.13 16.308m0 0c3.51-1.125 7.013-2.243 13.27-4.257m-13.27 4.257c5.038-1.608 10.08-3.232 13.27-4.257m0 0c-3.595-3.892-7.197-7.777-11.14-12.05m11.14 12.05c-3.837-4.148-7.667-8.287-11.14-12.05`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`})]}),{width:38,height:78,fill:`none`});G((0,U.jsx)(`g`,{fill:`currentColor`,children:(0,U.jsx)(`path`,{d:`M39.9 32.889a.326.326 0 0 0-.279-.056c-2.094-3.083-4.774-6-7.343-8.833l-.419-.472a.212.212 0 0 0-.056-.139.586.586 0 0 0-.167-.111l-.084-.083-.056-.056c-.084-.167-.28-.278-.475-.167-.782.39-1.507.973-2.206 1.528-.92.722-1.842 1.445-2.708 2.25a8.405 8.405 0 0 0-.977 1.028c-.14.194-.028.361.14.444-.615.611-1.23 1.223-1.843 1.861a.315.315 0 0 0-.084.223c0 .083.056.166.111.194l1.09.833v.028c1.535 1.528 4.244 3.611 7.12 5.861.418.334.865.667 1.284 1 .195.223.39.473.558.695.084.11.28.139.391.055.056.056.14.111.196.167a.398.398 0 0 0 .167.056.255.255 0 0 0 .224-.111.394.394 0 0 0 .055-.167c.029 0 .028.028.056.028a.318.318 0 0 0 .224-.084l5.082-5.528a.309.309 0 0 0 0-.444Zm-14.63-1.917a.485.485 0 0 0 .111.14c.586.5 1.2 1 1.843 1.555l-2.569-1.945-.251-.166c-.056-.028-.112-.084-.168-.111l-.195-.167.056-.056.055-.055.112-.111c.866-.861 2.346-2.306 3.1-3.028-.81.805-2.43 3.167-2.095 3.944Zm8.767 6.89-2.122-1.612a44.713 44.713 0 0 0-2.625-2.5c1.145.861 2.122 1.611 2.262 1.75 1.117.972 1.06.806 1.815 1.445l.921.666a1.06 1.06 0 0 1-.251.25Zm.558.416-.056-.028c.084-.055.168-.111.252-.194l-.196.222ZM1.089 5.75c.055.361.14.722.195 1.056.335 1.833.67 3.5 1.284 4.75l.252.944c.084.361.223.806.363.917 1.424 1.25 3.602 3.11 5.947 4.889a.295.295 0 0 0 .363 0s0 .027.028.027a.254.254 0 0 0 .196.084.318.318 0 0 0 .223-.084c2.988-3.305 5.221-6.027 6.813-8.305.112-.111.14-.278.14-.417.111-.111.195-.25.307-.333.111-.111.111-.306 0-.39l-.028-.027c0-.055-.028-.139-.084-.167-.698-.666-1.2-1.138-1.731-1.638-.922-.862-1.871-1.75-3.881-3.75l-.028-.028c-.028-.028-.056-.056-.112-.056-.558-.194-1.703-.389-3.127-.639C6.087 2.223 3.21 1.723.614.944c0 0-.168 0-.196.028l-.083.084c-.028.027-.056.055-.224.11h.056-.056c.028.167.028.278.084.473 0 .055.112.5.112.555l.782 3.556Zm15.496 3.278-.335-.334c.084.112.196.195.335.334Zm-3.546 4.666-.056.056c0-.028.028-.056.056-.056Zm-2.038-10c.168.167.866.834 1.033.973-.726-.334-2.54-1.167-3.379-1.445.838.167 1.983.334 2.346.472ZM1.424 2.306c.419.722.754 3.222 1.089 5.666-.196-.778-.335-1.555-.503-2.278-.251-1.277-.503-2.416-.838-3.416.056 0 .14 0 .252.028Zm-.168-.584c-.112 0-.223-.028-.307-.028 0-.027 0-.055-.028-.055.14 0 .223.028.335.083Zm-1.089.222c0-.027 0-.027 0 0ZM39.453 1.333c.028-.11-.558-.61-.363-.639.42-.027.42-.666 0-.666-.558.028-1.144.166-1.675.25-.977.194-1.982.389-2.96.61-2.205.473-4.383.973-6.561 1.557-.67.194-1.424.333-2.066.666-.224.111-.196.333-.084.472-.056.028-.084.028-.14.056-.195.028-.363.056-.558.083-.168.028-.252.167-.224.334 0 .027.028.083.028.11-1.173 1.556-2.485 3.195-3.909 4.945-1.396 1.611-2.876 3.306-4.356 5.056-4.719 5.5-10.052 11.75-15.943 17.25a.268.268 0 0 0 0 .389c.028.027.056.055.084.055-.084.084-.168.14-.252.222-.056.056-.084.111-.084.167a.605.605 0 0 0-.111.139c-.112.111-.112.305.028.389.111.11.307.11.39-.028.029-.028.029-.056.056-.056a.44.44 0 0 1 .615 0c.335.362.67.723.977 1.028l-.698-.583c-.112-.111-.307-.083-.39.028-.113.11-.085.305.027.389l7.427 6.194c.056.056.112.056.196.056s.14-.028.195-.084l.168-.166c.028.027.083.027.111.027.084 0 .14-.027.196-.083 10.052-10.055 18.15-17.639 27.42-24.417.083-.055.111-.166.111-.25.112 0 .196-.083.251-.194 1.704-5.194 2.039-9.806 2.15-12.083v-.028c0-.028.028-.056.028-.083.028-.056.028-.084.028-.084a1.626 1.626 0 0 0-.111-1.028ZM21.472 9.5c.446-.5.893-1.028 1.34-1.5-2.876 3.778-7.65 9.583-14.408 16.5 4.607-5.083 9.242-10.333 13.068-15ZM5.193 35.778h.084-.084Zm3.462 3.194c-.027-.028-.027-.028 0-.028v.028Zm4.16-3.583c.224-.25.448-.472.699-.722 0 0 0 .027.028.027-.252.223-.475.445-.726.695Zm1.146-1.111c.14-.14.279-.334.446-.5l.028-.028c1.648-1.694 3.351-3.389 5.082-5.111l.028-.028c.419-.333.921-.694 1.368-1.028a379.003 379.003 0 0 0-6.952 6.695ZM24.794 6.472c-.921 1.195-1.954 2.778-2.82 4.028-2.736 3.944-11.532 13.583-11.727 13.75a1976.983 1976.983 0 0 1-8.042 7.639l-.167.167c-.14-.167-.14-.417.028-.556C14.49 19.861 22.03 10.167 25.074 5.917c-.084.194-.14.36-.28.555Zm4.83 5.695c-1.116-.64-1.646-1.64-1.34-2.611l.084-.334c.028-.083.084-.194.14-.277.307-.5.754-.917 1.257-1.167.027 0 .055 0 .083-.028-.028-.056-.028-.139-.028-.222.028-.167.14-.278.335-.278.335 0 1.369.306 1.76.639.111.083.223.194.335.305.14.167.363.445.474.667.056.028.112.306.196.445.056.222.111.472.084.694-.028.028 0 .194-.028.194a2.668 2.668 0 0 1-.363 1.028c-.028.028-.028.056-.056.084l-.028.027c-.14.223-.335.417-.53.556-.643.444-1.369.583-2.095.389 0 0-.195-.084-.28-.111Zm8.154-.834a39.098 39.098 0 0 1-.893 3.167c0 .028-.028.083 0 .111-.056 0-.084.028-.14.056-2.206 1.61-4.356 3.305-6.506 5.028 1.843-1.64 3.686-3.306 5.613-4.945.558-.5.949-1.139 1.06-1.861l.28-1.667v-.055c.14-.334.67-.195.586.166Z`,fill:`currentColor`})}),{width:40,height:40,fill:`none`});var Rd=G((0,U.jsxs)(`g`,{stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M6 6l4.153 11.793a0.365 .365 0 0 0 .331 .207a0.366 .366 0 0 0 .332 -.207l2.184 -4.793l4.787 -1.994a0.355 .355 0 0 0 .213 -.323a0.355 .355 0 0 0 -.213 -.323l-11.787 -4.36z`}),(0,U.jsx)(`path`,{d:`M13.5 13.5l4.5 4.5`})]}),{fill:`none`,width:22,height:22,strokeWidth:1.25}),zd=G((0,U.jsxs)(`g`,{stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:1.5,children:[(0,U.jsx)(`path`,{d:`M4.028 13.252c-.657 -.972 -1.028 -2.078 -1.028 -3.252c0 -3.866 4.03 -7 9 -7s9 3.134 9 7s-4.03 7 -9 7c-1.913 0 -3.686 -.464 -5.144 -1.255`}),(0,U.jsx)(`path`,{d:`M5 15m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`}),(0,U.jsx)(`path`,{d:`M5 17c0 1.42 .316 2.805 1 4`})]}),{fill:`none`,width:22,height:22,strokeWidth:1.25}),Bd=G((0,U.jsxs)(`g`,{strokeWidth:`1.5`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`rect`,{x:`4`,y:`4`,width:`16`,height:`16`,rx:`2`})]}),K),Vd=G((0,U.jsxs)(`g`,{strokeWidth:`1.5`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M10.5 20.4l-6.9 -6.9c-.781 -.781 -.781 -2.219 0 -3l6.9 -6.9c.781 -.781 2.219 -.781 3 0l6.9 6.9c.781 .781 .781 2.219 0 3l-6.9 6.9c-.781 .781 -2.219 .781 -3 0z`})]}),K),Hd=G((0,U.jsxs)(`g`,{strokeWidth:`1.5`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`circle`,{cx:`12`,cy:`12`,r:`9`})]}),K),Ud=G((0,U.jsxs)(`g`,{strokeWidth:`1.5`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`line`,{x1:`5`,y1:`12`,x2:`19`,y2:`12`}),(0,U.jsx)(`line`,{x1:`15`,y1:`16`,x2:`19`,y2:`12`}),(0,U.jsx)(`line`,{x1:`15`,y1:`8`,x2:`19`,y2:`12`})]}),K),Wd=G((0,U.jsx)(`path`,{d:`M4.167 10h11.666`,strokeWidth:`1.5`}),q),Gd=G((0,U.jsxs)(`g`,{strokeWidth:`1.25`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M20 17v-12c0 -1.121 -.879 -2 -2 -2s-2 .879 -2 2v12l2 2l2 -2z`}),(0,U.jsx)(`path`,{d:`M16 7h4`}),(0,U.jsx)(`path`,{d:`M18 19h-13a2 2 0 1 1 0 -4h4a2 2 0 1 0 0 -4h-3`})]}),K),Kd=G((0,U.jsxs)(`g`,{strokeWidth:`1.25`,children:[(0,U.jsx)(`path`,{clipRule:`evenodd`,d:`m7.643 15.69 7.774-7.773a2.357 2.357 0 1 0-3.334-3.334L4.31 12.357a3.333 3.333 0 0 0-.977 2.357v1.953h1.953c.884 0 1.732-.352 2.357-.977Z`}),(0,U.jsx)(`path`,{d:`m11.25 5.417 3.333 3.333`})]}),q),qd=G((0,U.jsxs)(`g`,{strokeWidth:`1.5`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`line`,{x1:`4`,y1:`20`,x2:`7`,y2:`20`}),(0,U.jsx)(`line`,{x1:`14`,y1:`20`,x2:`21`,y2:`20`}),(0,U.jsx)(`line`,{x1:`6.9`,y1:`15`,x2:`13.8`,y2:`15`}),(0,U.jsx)(`line`,{x1:`10.2`,y1:`6.3`,x2:`16`,y2:`20`}),(0,U.jsx)(`polyline`,{points:`5 20 11 4 13 4 20 20`})]}),K),Jd=G((0,U.jsxs)(`g`,{stroke:`currentColor`,strokeWidth:`1.5`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M3 7v-2h13v2`}),(0,U.jsx)(`path`,{d:`M10 5v14`}),(0,U.jsx)(`path`,{d:`M12 19h-4`}),(0,U.jsx)(`path`,{d:`M15 13v-1h6v1`}),(0,U.jsx)(`path`,{d:`M18 12v7`}),(0,U.jsx)(`path`,{d:`M17 19h2`})]}),K),Yd=G((0,U.jsxs)(`g`,{strokeWidth:`1.25`,children:[(0,U.jsx)(`path`,{d:`M12.5 6.667h.01`}),(0,U.jsx)(`path`,{d:`M4.91 2.625h10.18a2.284 2.284 0 0 1 2.285 2.284v10.182a2.284 2.284 0 0 1-2.284 2.284H4.909a2.284 2.284 0 0 1-2.284-2.284V4.909a2.284 2.284 0 0 1 2.284-2.284Z`}),(0,U.jsx)(`path`,{d:`m3.333 12.5 3.334-3.333c.773-.745 1.726-.745 2.5 0l4.166 4.166`}),(0,U.jsx)(`path`,{d:`m11.667 11.667.833-.834c.774-.744 1.726-.744 2.5 0l1.667 1.667`})]}),q),Xd=G((0,U.jsxs)(`g`,{strokeWidth:`1.5`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M19 20h-10.5l-4.21 -4.3a1 1 0 0 1 0 -1.41l10 -10a1 1 0 0 1 1.41 0l5 5a1 1 0 0 1 0 1.41l-9.2 9.3`}),(0,U.jsx)(`path`,{d:`M18 13.3l-6.3 -6.3`})]}),K),Zd=G((0,U.jsx)(`path`,{strokeWidth:`1.25`,d:`M10 4.167v11.666M4.167 10h11.666`}),q),Qd=G((0,U.jsx)(`path`,{d:`M5 10h10`,strokeWidth:`1.25`}),q),$d=G((0,U.jsxs)(`g`,{strokeWidth:1.25,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M21 21l-6 -6`}),(0,U.jsx)(`path`,{d:`M3.268 12.043a7.017 7.017 0 0 0 6.634 4.957a7.012 7.012 0 0 0 7.043 -6.131a7 7 0 0 0 -5.314 -7.672a7.021 7.021 0 0 0 -8.241 4.403`}),(0,U.jsx)(`path`,{d:`M3 4v4h4`})]}),K),ef=G((0,U.jsx)(`path`,{strokeWidth:`1.25`,d:`M3.333 5.833h13.334M8.333 9.167v5M11.667 9.167v5M4.167 5.833l.833 10c0 .92.746 1.667 1.667 1.667h6.666c.92 0 1.667-.746 1.667-1.667l.833-10M7.5 5.833v-2.5c0-.46.373-.833.833-.833h3.334c.46 0 .833.373.833.833v2.5`}),q),tf=G((0,U.jsxs)(`g`,{strokeWidth:`1.5`,children:[(0,U.jsx)(`polyline`,{points:`12 16 18 10 12 4`}),(0,U.jsx)(`polyline`,{points:`8 4 2 10 8 16`})]}),q),nf=G((0,U.jsxs)(`g`,{strokeWidth:`1.25`,children:[(0,U.jsx)(`path`,{d:`M14.375 6.458H8.958a2.5 2.5 0 0 0-2.5 2.5v5.417a2.5 2.5 0 0 0 2.5 2.5h5.417a2.5 2.5 0 0 0 2.5-2.5V8.958a2.5 2.5 0 0 0-2.5-2.5Z`}),(0,U.jsx)(`path`,{clipRule:`evenodd`,d:`M11.667 3.125c.517 0 .986.21 1.325.55.34.338.55.807.55 1.325v1.458H8.333c-.485 0-.927.185-1.26.487-.343.312-.57.75-.609 1.24l-.005 5.357H5a1.87 1.87 0 0 1-1.326-.55 1.87 1.87 0 0 1-.549-1.325V5c0-.518.21-.987.55-1.326.338-.34.807-.549 1.325-.549h6.667Z`})]}),q),rf=G((0,U.jsx)(`path`,{clipRule:`evenodd`,d:`M10 2.5h.328a6.25 6.25 0 0 0 6.6 10.372A7.5 7.5 0 1 1 10 2.493V2.5Z`,stroke:`currentColor`}),q),af=G((0,U.jsx)(`g`,{stroke:`currentColor`,strokeLinejoin:`round`,children:(0,U.jsx)(`path`,{d:`M10 12.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5ZM10 4.167V2.5M14.167 5.833l1.166-1.166M15.833 10H17.5M14.167 14.167l1.166 1.166M10 15.833V17.5M5.833 14.167l-1.166 1.166M5 10H3.333M5.833 5.833 4.667 4.667`})}),{...q,strokeWidth:1.5}),of=G((0,U.jsxs)(`g`,{strokeWidth:`1.5`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`line`,{x1:`4`,y1:`6`,x2:`20`,y2:`6`}),(0,U.jsx)(`line`,{x1:`4`,y1:`12`,x2:`20`,y2:`12`}),(0,U.jsx)(`line`,{x1:`4`,y1:`18`,x2:`20`,y2:`18`})]}),K),sf=G((0,U.jsx)(`path`,{strokeWidth:`1.25`,d:`M3.333 14.167v1.666c0 .92.747 1.667 1.667 1.667h10c.92 0 1.667-.746 1.667-1.667v-1.666M5.833 9.167 10 13.333l4.167-4.166M10 3.333v10`}),q),cf=G((0,U.jsxs)(`g`,{strokeWidth:`1.5`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`circle`,{cx:`12`,cy:`12`,r:`9`}),(0,U.jsx)(`line`,{x1:`12`,y1:`17`,x2:`12`,y2:`17.01`}),(0,U.jsx)(`path`,{d:`M12 13.5a1.5 1.5 0 0 1 1 -1.5a2.6 2.6 0 1 0 -3 -4`})]}),K),lf=G((0,U.jsxs)(`g`,{strokeWidth:`1.25`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`circle`,{cx:`12`,cy:`12`,r:`9`}),(0,U.jsx)(`line`,{x1:`12`,y1:`17`,x2:`12`,y2:`17.01`}),(0,U.jsx)(`path`,{d:`M12 13.5a1.5 1.5 0 0 1 1 -1.5a2.6 2.6 0 1 0 -3 -4`})]}),K),uf=G((0,U.jsx)(`path`,{strokeWidth:`1.25`,d:`M9.167 5.833H5.833c-1.254 0-2.5 1.282-2.5 2.5v5.834c0 1.283 1.252 2.5 2.5 2.5h5.834c1.251 0 2.5-1.25 2.5-2.5v-3.334M8.333 11.667l8.334-8.334M12.5 3.333h4.167V7.5`}),q),df=G((0,U.jsx)(`path`,{d:`M7.5 15.833c-3.583 1.167-3.583-2.083-5-2.5m10 4.167v-2.917c0-.833.083-1.166-.417-1.666 2.334-.25 4.584-1.167 4.584-5a3.833 3.833 0 0 0-1.084-2.667 3.5 3.5 0 0 0-.083-2.667s-.917-.25-2.917 1.084a10.25 10.25 0 0 0-5.166 0C5.417 2.333 4.5 2.583 4.5 2.583a3.5 3.5 0 0 0-.083 2.667 3.833 3.833 0 0 0-1.084 2.667c0 3.833 2.25 4.75 4.584 5-.5.5-.5 1-.417 1.666V17.5`,strokeWidth:`1.25`}),q),ff=G((0,U.jsxs)(`g`,{strokeWidth:`1.25`,children:[(0,U.jsx)(`path`,{d:`M7.5 10.833a.833.833 0 1 0 0-1.666.833.833 0 0 0 0 1.666ZM12.5 10.833a.833.833 0 1 0 0-1.666.833.833 0 0 0 0 1.666ZM6.25 6.25c2.917-.833 4.583-.833 7.5 0M5.833 13.75c2.917.833 5.417.833 8.334 0`}),(0,U.jsx)(`path`,{d:`M12.917 14.167c0 .833 1.25 2.5 1.666 2.5 1.25 0 2.361-1.39 2.917-2.5.556-1.39.417-4.861-1.25-9.584-1.214-.846-2.5-1.116-3.75-1.25l-.833 2.084M7.083 14.167c0 .833-1.13 2.5-1.526 2.5-1.191 0-2.249-1.39-2.778-2.5-.529-1.39-.397-4.861 1.19-9.584 1.157-.846 2.318-1.116 3.531-1.25l.833 2.084`})]}),q),pf=G((0,U.jsxs)(`g`,{strokeWidth:`1.25`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M4 4l11.733 16h4.267l-11.733 -16z`}),(0,U.jsx)(`path`,{d:`M4 20l6.768 -6.768m2.46 -2.46l6.772 -6.772`})]}),K),mf=G((0,U.jsx)(`polyline`,{fill:`none`,stroke:`currentColor`,points:`20 6 9 17 4 12`}),{width:24,height:24}),hf=G((0,U.jsxs)(`g`,{strokeWidth:`1.25`,children:[(0,U.jsx)(`path`,{d:`M8.333 11.667a2.917 2.917 0 0 0 4.167 0l3.333-3.334a2.946 2.946 0 1 0-4.166-4.166l-.417.416`}),(0,U.jsx)(`path`,{d:`M11.667 8.333a2.917 2.917 0 0 0-4.167 0l-3.333 3.334a2.946 2.946 0 0 0 4.166 4.166l.417-.416`})]}),q),gf=G(`M433.941 129.941l-83.882-83.882A48 48 0 0 0 316.118 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V163.882a48 48 0 0 0-14.059-33.941zM224 416c-35.346 0-64-28.654-64-64 0-35.346 28.654-64 64-64s64 28.654 64 64c0 35.346-28.654 64-64 64zm96-304.52V212c0 6.627-5.373 12-12 12H76c-6.627 0-12-5.373-12-12V108c0-6.627 5.373-12 12-12h228.52c3.183 0 6.235 1.264 8.485 3.515l3.48 3.48A11.996 11.996 0 0 1 320 111.48z`,{width:448,height:512}),_f=G(`M252 54L203 8a28 27 0 00-20-8H28C12 0 0 12 0 27v195c0 15 12 26 28 26h204c15 0 28-11 28-26V73a28 27 0 00-8-19zM130 213c-21 0-37-16-37-36 0-19 16-35 37-35 20 0 37 16 37 35 0 20-17 36-37 36zm56-169v56c0 4-4 6-7 6H44c-4 0-7-2-7-6V42c0-4 3-7 7-7h133l4 2 3 2a7 7 0 012 5z M296 201l87 95-188 205-78 9c-10 1-19-8-18-20l9-84zm141-14l-41-44a31 31 0 00-46 0l-38 41 87 95 38-42c13-14 13-36 0-50z`,{width:448,height:512}),vf=G((0,U.jsx)(`path`,{d:`m9.257 6.351.183.183H15.819c.34 0 .727.182 1.051.506.323.323.505.708.505 1.05v5.819c0 .316-.183.7-.52 1.035-.337.338-.723.522-1.037.522H4.182c-.352 0-.74-.181-1.058-.5-.318-.318-.499-.705-.499-1.057V5.182c0-.351.181-.736.5-1.054.32-.321.71-.503 1.057-.503H6.53l2.726 2.726Z`,strokeWidth:`1.25`}),q);G(`M384 112v352c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h80c0-35.29 28.71-64 64-64s64 28.71 64 64h80c26.51 0 48 21.49 48 48zM192 40c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24m96 114v-20a6 6 0 0 0-6-6H102a6 6 0 0 0-6 6v20a6 6 0 0 0 6 6h180a6 6 0 0 0 6-6z`,{width:384,height:512}),G(`M204.3 5C104.9 24.4 24.8 104.3 5.2 203.4c-37 187 131.7 326.4 258.8 306.7 41.2-6.4 61.4-54.6 42.5-91.7-23.1-45.4 9.9-98.4 60.9-98.4h79.7c35.8 0 64.8-29.6 64.9-65.3C511.5 97.1 368.1-26.9 204.3 5zM96 320c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm32-128c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm128-64c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm128 64c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z`);var yf=[`M5 16l1.465 1.638a2 2 0 1 1 -3.015 .099l1.55 -1.737z`,`M13.737 9.737c2.299 -2.3 3.23 -5.095 2.081 -6.245c-1.15 -1.15 -3.945 -.217 -6.244 2.082c-2.3 2.299 -3.231 5.095 -2.082 6.244c1.15 1.15 3.946 .218 6.245 -2.081z`,`M7.492 11.818c.362 .362 .768 .676 1.208 .934l6.895 4.047c1.078 .557 2.255 -.075 3.692 -1.512c1.437 -1.437 2.07 -2.614 1.512 -3.692c-.372 -.718 -1.72 -3.017 -4.047 -6.895a6.015 6.015 0 0 0 -.934 -1.208`],bf=G((0,U.jsxs)(`g`,{strokeWidth:1.25,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),yf.map(e=>(0,U.jsx)(`path`,{d:e},e))]}),K),xf=G((0,U.jsx)(`g`,{strokeWidth:1.5,children:(0,U.jsx)(`path`,{d:`M6 18l12 -12`})}),K),Sf=G((0,U.jsxs)(`g`,{strokeWidth:`1.25`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M15 8h.01`}),(0,U.jsx)(`path`,{d:`M12 20h-5a3 3 0 0 1 -3 -3v-10a3 3 0 0 1 3 -3h10a3 3 0 0 1 3 3v5`}),(0,U.jsx)(`path`,{d:`M4 15l4 -4c.928 -.893 2.072 -.893 3 0l4 4`}),(0,U.jsx)(`path`,{d:`M14 14l1 -1c.617 -.593 1.328 -.793 2.009 -.598`}),(0,U.jsx)(`path`,{d:`M19 16v6`}),(0,U.jsx)(`path`,{d:`M22 19l-3 3l-3 -3`})]}),K),Cf=G(`M216 0h80c13.3 0 24 10.7 24 24v168h87.7c17.8 0 26.7 21.5 14.1 34.1L269.7 378.3c-7.5 7.5-19.8 7.5-27.3 0L90.1 226.1c-12.6-12.6-3.7-34.1 14.1-34.1H192V24c0-13.3 10.7-24 24-24zm296 376v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h146.7l49 49c20.1 20.1 52.5 20.1 72.6 0l49-49H488c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z`,{width:512,height:512});G(`M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z`,{width:448,height:512}),G(`M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z`,{width:448,height:512});var wf=G(`M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z`);G(`M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z`);var Tf=G((0,U.jsx)(`path`,{d:`M7.5 10.833 4.167 7.5 7.5 4.167M4.167 7.5h9.166a3.333 3.333 0 0 1 0 6.667H12.5`,strokeWidth:`1.25`}),q),Ef=G((0,U.jsx)(`path`,{d:`M12.5 10.833 15.833 7.5 12.5 4.167M15.833 7.5H6.667a3.333 3.333 0 1 0 0 6.667H7.5`,strokeWidth:`1.25`}),q),Df=G(`M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zM262.655 90c-54.497 0-89.255 22.957-116.549 63.758-3.536 5.286-2.353 12.415 2.715 16.258l34.699 26.31c5.205 3.947 12.621 3.008 16.665-2.122 17.864-22.658 30.113-35.797 57.303-35.797 20.429 0 45.698 13.148 45.698 32.958 0 14.976-12.363 22.667-32.534 33.976C247.128 238.528 216 254.941 216 296v4c0 6.627 5.373 12 12 12h56c6.627 0 12-5.373 12-12v-1.333c0-28.462 83.186-29.647 83.186-106.667 0-58.002-60.165-102-116.531-102zM256 338c-25.365 0-46 20.635-46 46 0 25.364 20.635 46 46 46s46-20.636 46-46c0-25.365-20.635-46-46-46z`,{mirror:!0}),Of=G((0,U.jsx)(`path`,{d:`M5 12.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5ZM15 7.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5ZM15 17.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5ZM7.25 8.917l5.5-2.834M7.25 11.083l5.5 2.834`,strokeWidth:`1.5`}),q);G(`M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480H40c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24V296c0 13.3 10.7 24 24 24s24-10.7 24-24V184c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z`),G(`M16 5l-1.42 1.42-1.59-1.59V16h-1.98V4.83L9.42 6.42 8 5l4-4 4 4zm4 5v11c0 1.1-.9 2-2 2H6c-1.11 0-2-.9-2-2V10c0-1.11.89-2 2-2h3v2H6v11h12V10h-3V8h3c1.1 0 2 .89 2 2z`,{width:24,height:24}),G((0,U.jsxs)(`g`,{strokeWidth:1.25,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M8 9h-1a2 2 0 0 0 -2 2v8a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-8a2 2 0 0 0 -2 -2h-1`}),(0,U.jsx)(`path`,{d:`M12 14v-11`}),(0,U.jsx)(`path`,{d:`M9 6l3 -3l3 3`})]}),K),G((0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`path`,{fill:`currentColor`,d:`M40 5.6v6.1l-4.1.7c-8.9 1.4-16.5 6.9-20.6 15C13 32 10.9 43 12.4 43c.4 0 2.4-1.3 4.4-3 5-3.9 12.1-7 18.2-7.7l5-.6v12.8l11.2-11.3L62.5 22 51.2 10.8 40-.5v6.1zm10.2 22.6L44 34.5v-6.8l-6.9.6c-3.9.3-9.8 1.7-13.2 3.1-3.5 1.4-6.5 2.4-6.7 2.2-.9-1 3-7.5 6.4-10.8C28 18.6 34.4 16 40.1 16c3.7 0 3.9-.1 3.9-3.2V9.5l6.2 6.3 6.3 6.2-6.3 6.2z`}),(0,U.jsx)(`path`,{stroke:`currentColor`,fill:`currentColor`,d:`M0 36v20h48v-6.2c0-6 0-6.1-2-4.3-1.1 1-2 2.9-2 4.2V52H4V34c0-17.3-.1-18-2-18s-2 .7-2 20z`})]}),{width:64,height:64}),G((0,U.jsx)(`path`,{stroke:`currentColor`,strokeWidth:`40`,fill:`currentColor`,d:`M148 560a318 318 0 0 0 522 110 316 316 0 0 0 0-450 316 316 0 0 0-450 0c-11 11-21 22-30 34v4h47c25 0 46 21 46 46s-21 45-46 45H90c-13 0-25-6-33-14-9-9-14-20-14-33V156c0-25 20-45 45-45s45 20 45 45v32l1 1a401 401 0 0 1 623 509l212 212a42 42 0 0 1-59 59L698 757A401 401 0 0 1 65 570a42 42 0 0 1 83-10z`}),{width:1024});var kf=(0,U.jsxs)(`g`,{strokeWidth:1.5,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M12 10l0 10`}),(0,U.jsx)(`path`,{d:`M12 10l4 4`}),(0,U.jsx)(`path`,{d:`M12 10l-4 4`}),(0,U.jsx)(`path`,{d:`M4 4l16 0`})]}),Af=(0,U.jsxs)(`g`,{strokeWidth:1.5,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M12 5l0 14`}),(0,U.jsx)(`path`,{d:`M16 9l-4 -4`}),(0,U.jsx)(`path`,{d:`M8 9l4 -4`})]}),jf=G(Af,K),Mf=G(Af,{...K,style:{transform:`rotate(180deg)`}}),Nf=G(kf,K),Pf=G(kf,{...K,style:{transform:`rotate(180deg)`}}),Ff=G((0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`g`,{clipPath:`url(#a)`,stroke:`currentColor`,strokeWidth:`1.25`,children:[(0,U.jsx)(`path`,{d:`M3.333 3.333h13.334`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M13.542 6.458h-.417c-.92 0-1.667.747-1.667 1.667v7.083c0 .92.746 1.667 1.667 1.667h.417c.92 0 1.666-.746 1.666-1.667V8.125c0-.92-.746-1.667-1.666-1.667ZM6.875 6.458h-.417c-.92 0-1.666.747-1.666 1.667v3.75c0 .92.746 1.667 1.666 1.667h.417c.92 0 1.667-.746 1.667-1.667v-3.75c0-.92-.747-1.667-1.667-1.667Z`})]}),(0,U.jsx)(`defs`,{children:(0,U.jsx)(`clipPath`,{id:`a`,children:(0,U.jsx)(`path`,{fill:`#fff`,d:`M0 0h20v20H0z`})})})]}),q),If=G((0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`g`,{clipPath:`url(#a)`,stroke:`currentColor`,strokeWidth:`1.25`,children:[(0,U.jsx)(`path`,{d:`M3.333 16.667h13.334`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M6.875 3.125h-.417c-.92 0-1.666.746-1.666 1.667v7.083c0 .92.746 1.667 1.666 1.667h.417c.92 0 1.667-.746 1.667-1.667V4.792c0-.92-.747-1.667-1.667-1.667ZM13.542 5.817h-.417c-.92 0-1.667.747-1.667 1.667v4.391c0 .92.746 1.667 1.667 1.667h.417c.92 0 1.666-.746 1.666-1.667V7.484c0-.92-.746-1.667-1.666-1.667Z`})]}),(0,U.jsx)(`defs`,{children:(0,U.jsx)(`clipPath`,{id:`a`,children:(0,U.jsx)(`path`,{fill:`#fff`,d:`M0 0h20v20H0z`})})})]}),q),Lf=G((0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`g`,{clipPath:`url(#a)`,stroke:`currentColor`,strokeWidth:`1.25`,children:[(0,U.jsx)(`path`,{d:`M3.333 3.333v13.334`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M15.208 4.792H8.125c-.92 0-1.667.746-1.667 1.666v.417c0 .92.747 1.667 1.667 1.667h7.083c.92 0 1.667-.747 1.667-1.667v-.417c0-.92-.746-1.666-1.667-1.666ZM12.516 11.458H8.125c-.92 0-1.667.746-1.667 1.667v.417c0 .92.747 1.666 1.667 1.666h4.391c.92 0 1.667-.746 1.667-1.666v-.417c0-.92-.746-1.667-1.667-1.667Z`})]}),(0,U.jsx)(`defs`,{children:(0,U.jsx)(`clipPath`,{id:`a`,children:(0,U.jsx)(`path`,{fill:`#fff`,d:`M0 0h20v20H0z`})})})]}),q),Rf=G((0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`g`,{clipPath:`url(#a)`,stroke:`currentColor`,strokeWidth:`1.25`,children:[(0,U.jsx)(`path`,{d:`M16.667 3.333v13.334`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M11.875 4.792H4.792c-.92 0-1.667.746-1.667 1.666v.417c0 .92.746 1.667 1.667 1.667h7.083c.92 0 1.667-.747 1.667-1.667v-.417c0-.92-.746-1.666-1.667-1.666ZM11.683 11.458H7.292c-.92 0-1.667.746-1.667 1.667v.417c0 .92.746 1.666 1.667 1.666h4.39c.921 0 1.667-.746 1.667-1.666v-.417c0-.92-.746-1.667-1.666-1.667Z`})]}),(0,U.jsx)(`defs`,{children:(0,U.jsx)(`clipPath`,{id:`a`,children:(0,U.jsx)(`path`,{fill:`#fff`,d:`M0 0h20v20H0z`})})})]}),q),zf=G((0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`g`,{clipPath:`url(#a)`,stroke:`currentColor`,strokeWidth:`1.25`,children:[(0,U.jsx)(`path`,{d:`M16.667 3.333v13.334M3.333 3.333v13.334`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M14.375 10.208v-.416c0-.92-.746-1.667-1.667-1.667H7.292c-.92 0-1.667.746-1.667 1.667v.416c0 .92.746 1.667 1.667 1.667h5.416c.92 0 1.667-.746 1.667-1.667Z`})]}),(0,U.jsx)(`defs`,{children:(0,U.jsx)(`clipPath`,{id:`a`,children:(0,U.jsx)(`path`,{fill:`#fff`,d:`M0 0h20v20H0z`})})})]}),q),Bf=G((0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`g`,{clipPath:`url(#a)`,stroke:`currentColor`,strokeWidth:`1.25`,children:[(0,U.jsx)(`path`,{d:`M3.333 3.333h13.334M3.333 16.667h13.334`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M10.208 5.625h-.416c-.92 0-1.667.746-1.667 1.667v5.416c0 .92.746 1.667 1.667 1.667h.416c.92 0 1.667-.746 1.667-1.667V7.292c0-.92-.746-1.667-1.667-1.667Z`})]}),(0,U.jsx)(`defs`,{children:(0,U.jsx)(`clipPath`,{id:`a`,children:(0,U.jsx)(`path`,{fill:`#fff`,d:`M0 0h20v20H0z`})})})]}),q),Vf=G((0,U.jsxs)(`g`,{stroke:`currentColor`,strokeWidth:`1.25`,children:[(0,U.jsx)(`path`,{d:`M1.667 10h2.916`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M8.333 10h3.334`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M15.417 10h2.916`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M6.875 4.792h-.417c-.92 0-1.666.746-1.666 1.666v7.084c0 .92.746 1.666 1.666 1.666h.417c.92 0 1.667-.746 1.667-1.666V6.458c0-.92-.747-1.666-1.667-1.666ZM13.542 6.458h-.417c-.92 0-1.667.747-1.667 1.667v3.75c0 .92.746 1.667 1.667 1.667h.417c.92 0 1.666-.746 1.666-1.667v-3.75c0-.92-.746-1.667-1.666-1.667Z`})]}),q),Hf=G((0,U.jsxs)(`g`,{stroke:`currentColor`,strokeWidth:`1.25`,children:[(0,U.jsx)(`path`,{d:`M10 18.333v-2.916`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M10 11.667V8.333`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M10 4.583V1.667`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M4.792 13.125v.417c0 .92.746 1.666 1.666 1.666h7.084c.92 0 1.666-.746 1.666-1.666v-.417c0-.92-.746-1.667-1.666-1.667H6.458c-.92 0-1.666.746-1.666 1.667ZM6.458 6.458v.417c0 .92.747 1.667 1.667 1.667h3.75c.92 0 1.667-.747 1.667-1.667v-.417c0-.92-.746-1.666-1.667-1.666h-3.75c-.92 0-1.667.746-1.667 1.666Z`})]}),q),Uf=G((0,U.jsxs)(`g`,{strokeWidth:`1.5`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`circle`,{cx:`9`,cy:`7`,r:`4`}),(0,U.jsx)(`path`,{d:`M3 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2`}),(0,U.jsx)(`path`,{d:`M16 3.13a4 4 0 0 1 0 7.75`}),(0,U.jsx)(`path`,{d:`M21 21v-2a4 4 0 0 0 -3 -3.85`})]}),K);G(`M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm115.7 272l-176 101c-15.8 8.8-35.7-2.5-35.7-21V152c0-18.4 19.8-29.8 35.7-21l176 107c16.4 9.2 16.4 32.9 0 42z`);var Wf=G(`M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm96 328c0 8.8-7.2 16-16 16H176c-8.8 0-16-7.2-16-16V176c0-8.8 7.2-16 16-16h160c8.8 0 16 7.2 16 16v160z`),Gf=G((0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`g`,{clipPath:`url(#a)`,stroke:`currentColor`,strokeWidth:`1.25`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,U.jsx)(`path`,{d:`M15 5 5 15M5 5l10 10`})}),(0,U.jsx)(`defs`,{children:(0,U.jsx)(`clipPath`,{id:`a`,children:(0,U.jsx)(`path`,{fill:`#fff`,d:`M0 0h20v20H0z`})})})]}),q);G(`M464 0c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48H176c-26.51 0-48-21.49-48-48V48c0-26.51 21.49-48 48-48h288M176 416c-44.112 0-80-35.888-80-80V128H48c-26.51 0-48 21.49-48 48v288c0 26.51 21.49 48 48 48h288c26.51 0 48-21.49 48-48v-48H176z`,{mirror:!0}),G(`M11.553 22.894a.998.998 0 00.894 0s3.037-1.516 5.465-4.097C19.616 16.987 21 14.663 21 12V5a1 1 0 00-.649-.936l-8-3a.998.998 0 00-.702 0l-8 3A1 1 0 003 5v7c0 2.663 1.384 4.987 3.088 6.797 2.428 2.581 5.465 4.097 5.465 4.097zm-1.303-8.481l6.644-6.644a.856.856 0 111.212 1.212l-7.25 7.25a.856.856 0 01-1.212 0l-3.75-3.75a.856.856 0 111.212-1.212l3.144 3.144z`,{width:24}),G(`M369.9 97.9L286 14C277 5 264.8-.1 252.1-.1H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V131.9c0-12.7-5.1-25-14.1-34zM332.1 128H256V51.9l76.1 76.1zM48 464V48h160v104c0 13.3 10.7 24 24 24h104v288H48zm32-48h224V288l-23.5-23.5c-4.7-4.7-12.3-4.7-17 0L176 352l-39.5-39.5c-4.7-4.7-12.3-4.7-17 0L80 352v64zm48-240c-26.5 0-48 21.5-48 48s21.5 48 48 48 48-21.5 48-48-21.5-48-48-48z`,{width:384,height:512});var Kf=V.memo(({theme:e})=>G((0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`path`,{d:`M25 26H111V111H25`,fill:Cd(e)}),(0,U.jsx)(`path`,{d:`M25 111C25 80.2068 25 49.4135 25 26M25 26C48.6174 26 72.2348 26 111 26H25ZM25 26C53.3671 26 81.7343 26 111 26H25ZM111 26C111 52.303 111 78.606 111 111V26ZM111 26C111 51.2947 111 76.5893 111 111V26ZM111 111C87.0792 111 63.1585 111 25 111H111ZM111 111C87.4646 111 63.9293 111 25 111H111ZM25 111C25 81.1514 25 51.3028 25 26V111Z`,stroke:Cd(e),strokeWidth:`2`}),(0,U.jsx)(`path`,{d:`M100 100H160V160H100`,fill:Cd(e)}),(0,U.jsx)(`path`,{d:`M100 160C100 144.106 100 128.211 100 100M100 100C117.706 100 135.412 100 160 100H100ZM100 100C114.214 100 128.428 100 160 100H100ZM160 100C160 120.184 160 140.369 160 160V100ZM160 100C160 113.219 160 126.437 160 160V100ZM160 160C145.534 160 131.068 160 100 160H160ZM160 160C143.467 160 126.934 160 100 160H160ZM100 160C100 143.661 100 127.321 100 100V160Z`,stroke:Cd(e),strokeWidth:`2`}),(0,U.jsxs)(`g`,{fill:wd(e),stroke:Cd(e),strokeWidth:`6`,children:[(0,U.jsx)(`rect`,{x:`2.5`,y:`2.5`,width:`30`,height:`30`}),(0,U.jsx)(`rect`,{x:`2.5`,y:`149.5`,width:`30`,height:`30`}),(0,U.jsx)(`rect`,{x:`147.5`,y:`149.5`,width:`30`,height:`30`}),(0,U.jsx)(`rect`,{x:`147.5`,y:`2.5`,width:`30`,height:`30`})]})]}),{width:182,height:182,mirror:!0})),qf=V.memo(({theme:e})=>G((0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`path`,{d:`M25 26H111V111H25`,fill:Cd(e)}),(0,U.jsx)(`path`,{d:`M25 111C25 80.2068 25 49.4135 25 26M25 26C48.6174 26 72.2348 26 111 26H25ZM25 26C53.3671 26 81.7343 26 111 26H25ZM111 26C111 52.303 111 78.606 111 111V26ZM111 26C111 51.2947 111 76.5893 111 111V26ZM111 111C87.0792 111 63.1585 111 25 111H111ZM111 111C87.4646 111 63.9293 111 25 111H111ZM25 111C25 81.1514 25 51.3028 25 26V111Z`,stroke:Cd(e),strokeWidth:`2`}),(0,U.jsx)(`path`,{d:`M100 100H160V160H100`,fill:Cd(e)}),(0,U.jsx)(`path`,{d:`M100 160C100 144.106 100 128.211 100 100M100 100C117.706 100 135.412 100 160 100H100ZM100 100C114.214 100 128.428 100 160 100H100ZM160 100C160 120.184 160 140.369 160 160V100ZM160 100C160 113.219 160 126.437 160 160V100ZM160 160C145.534 160 131.068 160 100 160H160ZM160 160C143.467 160 126.934 160 100 160H160ZM100 160C100 143.661 100 127.321 100 100V160Z`,stroke:Cd(e),strokeWidth:`2`}),(0,U.jsxs)(`g`,{fill:wd(e),stroke:Cd(e),strokeWidth:`6`,children:[(0,U.jsx)(`rect`,{x:`2.5`,y:`2.5`,width:`30`,height:`30`}),(0,U.jsx)(`rect`,{x:`78.5`,y:`149.5`,width:`30`,height:`30`}),(0,U.jsx)(`rect`,{x:`147.5`,y:`149.5`,width:`30`,height:`30`}),(0,U.jsx)(`rect`,{x:`147.5`,y:`78.5`,width:`30`,height:`30`}),(0,U.jsx)(`rect`,{x:`105.5`,y:`2.5`,width:`30`,height:`30`}),(0,U.jsx)(`rect`,{x:`2.5`,y:`102.5`,width:`30`,height:`30`})]})]}),{width:182,height:182,mirror:!0})),Jf=G((0,U.jsx)(`g`,{strokeWidth:1.25,children:(0,U.jsx)(`path`,{d:`M5.879 2.625h8.242a3.27 3.27 0 0 1 3.254 3.254v8.242a3.27 3.27 0 0 1-3.254 3.254H5.88a3.27 3.27 0 0 1-3.254-3.254V5.88A3.27 3.27 0 0 1 5.88 2.626l-.001-.001ZM4.518 16.118l7.608-12.83m.198 13.934 5.051-9.897M2.778 9.675l9.348-6.387m-7.608 12.83 12.857-8.793`})}),q),Yf=G((0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`path`,{d:`M5.879 2.625h8.242a3.254 3.254 0 0 1 3.254 3.254v8.242a3.254 3.254 0 0 1-3.254 3.254H5.88a3.254 3.254 0 0 1-3.254-3.254V5.88a3.254 3.254 0 0 1 3.254-3.254Z`,stroke:`currentColor`,strokeWidth:`1.25`}),(0,U.jsx)(`mask`,{id:`FillHachureIcon`,style:{maskType:`alpha`},maskUnits:`userSpaceOnUse`,x:2,y:2,width:16,height:16,children:(0,U.jsx)(`path`,{d:`M5.879 2.625h8.242a3.254 3.254 0 0 1 3.254 3.254v8.242a3.254 3.254 0 0 1-3.254 3.254H5.88a3.254 3.254 0 0 1-3.254-3.254V5.88a3.254 3.254 0 0 1 3.254-3.254Z`,fill:`currentColor`,stroke:`currentColor`,strokeWidth:`1.25`})}),(0,U.jsx)(`g`,{mask:`url(#FillHachureIcon)`,children:(0,U.jsx)(`path`,{d:`M2.258 15.156 15.156 2.258M7.324 20.222 20.222 7.325m-20.444 5.35L12.675-.222m-8.157 18.34L17.416 5.22`,stroke:`currentColor`,strokeWidth:`1.25`,strokeLinecap:`round`,strokeLinejoin:`round`})})]}),q),Xf=G((0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`g`,{clipPath:`url(#a)`,children:[(0,U.jsx)(`path`,{d:`M5.879 2.625h8.242a3.254 3.254 0 0 1 3.254 3.254v8.242a3.254 3.254 0 0 1-3.254 3.254H5.88a3.254 3.254 0 0 1-3.254-3.254V5.88a3.254 3.254 0 0 1 3.254-3.254Z`,stroke:`currentColor`,strokeWidth:`1.25`}),(0,U.jsx)(`mask`,{id:`FillCrossHatchIcon`,style:{maskType:`alpha`},maskUnits:`userSpaceOnUse`,x:-1,y:-1,width:22,height:22,children:(0,U.jsx)(`path`,{d:`M2.426 15.044 15.044 2.426M7.383 20 20 7.383M0 12.617 12.617 0m-7.98 17.941L17.256 5.324m-2.211 12.25L2.426 4.956M20 12.617 7.383 0m5.234 20L0 7.383m17.941 7.98L5.324 2.745`,stroke:`currentColor`,strokeWidth:`1.25`,strokeLinecap:`round`,strokeLinejoin:`round`})}),(0,U.jsx)(`g`,{mask:`url(#FillCrossHatchIcon)`,children:(0,U.jsx)(`path`,{d:`M14.121 2H5.88A3.879 3.879 0 0 0 2 5.879v8.242A3.879 3.879 0 0 0 5.879 18h8.242A3.879 3.879 0 0 0 18 14.121V5.88A3.879 3.879 0 0 0 14.121 2Z`,fill:`currentColor`})})]}),(0,U.jsx)(`defs`,{children:(0,U.jsx)(`clipPath`,{id:`a`,children:(0,U.jsx)(`path`,{fill:`#fff`,d:`M0 0h20v20H0z`})})})]}),q),Zf=G((0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`g`,{clipPath:`url(#a)`,children:(0,U.jsx)(`path`,{d:`M4.91 2.625h10.18a2.284 2.284 0 0 1 2.285 2.284v10.182a2.284 2.284 0 0 1-2.284 2.284H4.909a2.284 2.284 0 0 1-2.284-2.284V4.909a2.284 2.284 0 0 1 2.284-2.284Z`,stroke:`currentColor`,strokeWidth:`1.25`})}),(0,U.jsx)(`defs`,{children:(0,U.jsx)(`clipPath`,{id:`a`,children:(0,U.jsx)(`path`,{fill:`#fff`,d:`M0 0h20v20H0z`})})})]}),{...q,fill:`currentColor`}),Qf=G((0,U.jsx)(U.Fragment,{children:(0,U.jsx)(`path`,{d:`M4.167 10h11.666`,stroke:`currentColor`,strokeWidth:`1.25`,strokeLinecap:`round`,strokeLinejoin:`round`})}),q),$f=G((0,U.jsx)(`path`,{d:`M5 10h10`,stroke:`currentColor`,strokeWidth:`2.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),q),ep=G((0,U.jsx)(`path`,{d:`M5 10h10`,stroke:`currentColor`,strokeWidth:`3.75`,strokeLinecap:`round`,strokeLinejoin:`round`}),q);V.memo(({theme:e})=>G((0,U.jsx)(`path`,{d:`M6 10H34`,stroke:Cd(e),strokeWidth:2,fill:`none`,strokeLinecap:`round`}),{width:40,height:20}));var tp=G((0,U.jsxs)(`g`,{strokeWidth:`2`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M5 12h2`}),(0,U.jsx)(`path`,{d:`M17 12h2`}),(0,U.jsx)(`path`,{d:`M11 12h2`})]}),K),np=G((0,U.jsxs)(`g`,{strokeWidth:`2`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M4 12v.01`}),(0,U.jsx)(`path`,{d:`M8 12v.01`}),(0,U.jsx)(`path`,{d:`M12 12v.01`}),(0,U.jsx)(`path`,{d:`M16 12v.01`}),(0,U.jsx)(`path`,{d:`M20 12v.01`})]}),K),rp=G((0,U.jsx)(`path`,{d:`M2.5 12.038c1.655-.885 5.9-3.292 8.568-4.354 2.668-1.063.101 2.821 1.32 3.104 1.218.283 5.112-1.814 5.112-1.814`,strokeWidth:`1.25`}),q),ip=G((0,U.jsx)(`path`,{d:`M2.5 12.563c1.655-.886 5.9-3.293 8.568-4.355 2.668-1.062.101 2.822 1.32 3.105 1.218.283 5.112-1.814 5.112-1.814m-13.469 2.23c2.963-1.586 6.13-5.62 7.468-4.998 1.338.623-1.153 4.11-.132 5.595 1.02 1.487 6.133-1.43 6.133-1.43`,strokeWidth:`1.25`}),q),ap=G((0,U.jsx)(`path`,{d:`M2.5 11.936c1.737-.879 8.627-5.346 10.42-5.268 1.795.078-.418 5.138.345 5.736.763.598 3.53-1.789 4.235-2.147M2.929 9.788c1.164-.519 5.47-3.28 6.987-3.114 1.519.165 1 3.827 2.121 4.109 1.122.281 3.839-2.016 4.606-2.42`,strokeWidth:`1.25`}),q),op=G((0,U.jsxs)(`g`,{children:[(0,U.jsx)(`path`,{d:`M4 12 C 5 8, 6 8, 8 12`,fill:`none`,strokeWidth:`1`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M8 12 C 9 16, 10 16, 12 12`,fill:`none`,strokeWidth:`1`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M12 12 C 14 8, 15 8, 16 12`,fill:`none`,strokeWidth:`1`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M16 12 C 17 16, 18 16, 19 12`,fill:`none`,strokeWidth:`1`,strokeLinecap:`round`,strokeLinejoin:`round`})]}),K),sp=G((0,U.jsxs)(`g`,{children:[(0,U.jsx)(`path`,{d:`M4 12 C 5 8, 6 8, 8 12`,fill:`none`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M8 12 C 9 16, 10 16, 12 12`,fill:`none`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M12 12 C 14 8, 15 8, 16 12`,fill:`none`,strokeWidth:`2.75`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M16 12 C 17 16, 18 16, 19 12`,fill:`none`,strokeWidth:`3.25`,strokeLinecap:`round`,strokeLinejoin:`round`})]}),K),cp=G((0,U.jsxs)(`svg`,{strokeWidth:`1.5`,children:[(0,U.jsx)(`path`,{d:`M3.33334 9.99998V6.66665C3.33334 6.04326 3.33403 4.9332 3.33539 3.33646C4.95233 3.33436 6.06276 3.33331 6.66668 3.33331H10`}),(0,U.jsx)(`path`,{d:`M13.3333 3.33331V3.34331`}),(0,U.jsx)(`path`,{d:`M16.6667 3.33331V3.34331`}),(0,U.jsx)(`path`,{d:`M16.6667 6.66669V6.67669`}),(0,U.jsx)(`path`,{d:`M16.6667 10V10.01`}),(0,U.jsx)(`path`,{d:`M3.33334 13.3333V13.3433`}),(0,U.jsx)(`path`,{d:`M16.6667 13.3333V13.3433`}),(0,U.jsx)(`path`,{d:`M3.33334 16.6667V16.6767`}),(0,U.jsx)(`path`,{d:`M6.66666 16.6667V16.6767`}),(0,U.jsx)(`path`,{d:`M10 16.6667V16.6767`}),(0,U.jsx)(`path`,{d:`M13.3333 16.6667V16.6767`}),(0,U.jsx)(`path`,{d:`M16.6667 16.6667V16.6767`})]}),q),lp=G((0,U.jsxs)(`g`,{strokeWidth:`1.5`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M4 12v-4a4 4 0 0 1 4 -4h4`}),(0,U.jsx)(`line`,{x1:`16`,y1:`4`,x2:`16`,y2:`4.01`}),(0,U.jsx)(`line`,{x1:`20`,y1:`4`,x2:`20`,y2:`4.01`}),(0,U.jsx)(`line`,{x1:`20`,y1:`8`,x2:`20`,y2:`8.01`}),(0,U.jsx)(`line`,{x1:`20`,y1:`12`,x2:`20`,y2:`12.01`}),(0,U.jsx)(`line`,{x1:`4`,y1:`16`,x2:`4`,y2:`16.01`}),(0,U.jsx)(`line`,{x1:`20`,y1:`16`,x2:`20`,y2:`16.01`}),(0,U.jsx)(`line`,{x1:`4`,y1:`20`,x2:`4`,y2:`20.01`}),(0,U.jsx)(`line`,{x1:`8`,y1:`20`,x2:`8`,y2:`20.01`}),(0,U.jsx)(`line`,{x1:`12`,y1:`20`,x2:`12`,y2:`20.01`}),(0,U.jsx)(`line`,{x1:`16`,y1:`20`,x2:`16`,y2:`20.01`}),(0,U.jsx)(`line`,{x1:`20`,y1:`20`,x2:`20`,y2:`20.01`})]}),K),up=V.memo(({flip:e=!1})=>G((0,U.jsxs)(`g`,{transform:e?`translate(40, 0) scale(-1, 1)`:``,stroke:`currentColor`,opacity:.3,strokeWidth:2,fill:`none`,strokeLinecap:`round`,children:[(0,U.jsx)(`path`,{d:`M7,11 H19`}),(0,U.jsx)(`path`,{d:`M25,6 L33,16 M33,6 L25,16`})]}),Td)),dp=V.memo(({flip:e=!1})=>G((0,U.jsx)(`g`,{transform:e?`translate(40, 0) scale(-1, 1)`:``,stroke:`currentColor`,strokeWidth:2,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,U.jsx)(`path`,{d:`M7,11 H33 M23,5 L33,11 L23,17`})}),Td)),fp=V.memo(({flip:e=!1})=>G((0,U.jsxs)(`g`,{stroke:`currentColor`,fill:`currentColor`,transform:e?`translate(40, 0) scale(-1, 1)`:``,strokeLinejoin:`round`,children:[(0,U.jsx)(`path`,{d:`M7,11 H23`,strokeWidth:2,strokeLinecap:`round`}),(0,U.jsx)(`path`,{d:`M23,5 L35,11 L23,17 Z`})]}),Td)),pp=V.memo(({flip:e=!1})=>G((0,U.jsxs)(`g`,{stroke:`currentColor`,fill:`none`,transform:e?`translate(40, 0) scale(-1, 1)`:``,strokeWidth:2,strokeLinejoin:`round`,strokeLinecap:`round`,children:[(0,U.jsx)(`path`,{d:`M7,11 H23`}),(0,U.jsx)(`path`,{d:`M23,5 L35,11 L23,17 Z`})]}),Td)),mp=V.memo(({flip:e=!1})=>G((0,U.jsxs)(`g`,{stroke:`currentColor`,fill:`currentColor`,transform:e?`translate(40, 0) scale(-1, 1)`:``,children:[(0,U.jsx)(`path`,{d:`M7,11 H25`,strokeWidth:2,strokeLinecap:`round`}),(0,U.jsx)(`circle`,{cx:`29`,cy:`11`,r:`4`})]}),Td)),hp=V.memo(({flip:e=!1})=>G((0,U.jsxs)(`g`,{stroke:`currentColor`,fill:`none`,transform:e?`translate(40, 0) scale(-1, 1)`:``,strokeWidth:2,children:[(0,U.jsx)(`path`,{d:`M7,11 H25`,strokeLinecap:`round`}),(0,U.jsx)(`circle`,{cx:`29`,cy:`11`,r:`4`})]}),Td)),gp=V.memo(({flip:e=!1})=>G((0,U.jsxs)(`g`,{stroke:`currentColor`,fill:`currentColor`,transform:e?`translate(40, 0) scale(-1, 1)`:``,strokeLinejoin:`round`,children:[(0,U.jsx)(`path`,{d:`M7,11 H21`,strokeWidth:2,strokeLinecap:`round`}),(0,U.jsx)(`path`,{d:`M21,11 L28,5 L35,11 L28,17 Z`})]}),Td)),_p=V.memo(({flip:e=!1})=>G((0,U.jsxs)(`g`,{stroke:`currentColor`,fill:`none`,transform:e?`translate(40, 0) scale(-1, 1)`:``,strokeLinejoin:`round`,strokeWidth:2,strokeLinecap:`round`,children:[(0,U.jsx)(`path`,{d:`M7,11 H21`}),(0,U.jsx)(`path`,{d:`M21,11 L28,5 L35,11 L28,17 Z`})]}),Td)),vp=V.memo(({flip:e=!1})=>G((0,U.jsx)(`g`,{transform:e?`translate(40, 0) scale(-1, 1)`:``,stroke:`currentColor`,strokeWidth:2,fill:`none`,strokeLinecap:`round`,children:(0,U.jsx)(`path`,{d:`M11,11 H31 M31,5 V17`})}),Td)),yp=V.memo(({flip:e=!1})=>G((0,U.jsx)(`g`,{stroke:`currentColor`,fill:`none`,transform:e?``:`translate(40, 0) scale(-1, 1)`,strokeLinejoin:`round`,strokeWidth:2,children:(0,U.jsx)(`path`,{d:`M35,11 H7 M15,5 V17`})}),Td)),bp=V.memo(({flip:e=!1})=>G((0,U.jsx)(`g`,{stroke:`currentColor`,fill:`none`,transform:e?``:`translate(40, 0) scale(-1, 1)`,strokeLinejoin:`round`,strokeWidth:2,children:(0,U.jsx)(`path`,{d:`M35,11 H7 M15,11 L7,5 M15,11 L7,17`})}),Td)),xp=V.memo(({flip:e=!1})=>G((0,U.jsx)(`g`,{stroke:`currentColor`,fill:`none`,transform:e?``:`translate(40, 0) scale(-1, 1)`,strokeLinejoin:`round`,strokeWidth:2,children:(0,U.jsx)(`path`,{d:`M35,11 H7 M23,5 V17 M15,11 L7,5 M15,11 L7,17`})}),Td)),Sp=V.memo(({flip:e=!1})=>G((0,U.jsx)(`g`,{stroke:`currentColor`,fill:`none`,transform:e?``:`translate(40, 0) scale(-1, 1)`,strokeLinejoin:`round`,strokeWidth:2,children:(0,U.jsx)(`path`,{d:`M35,11 H7 M15,5 V17 M7,5 V17`})}),Td)),Cp=V.memo(({flip:e=!1})=>G((0,U.jsxs)(`g`,{stroke:`currentColor`,fill:`none`,transform:e?``:`translate(40, 0) scale(-1, 1)`,strokeLinejoin:`round`,strokeWidth:2,children:[(0,U.jsx)(`path`,{d:`M35,11 H19 M11,11 H7 M7,5 V17`}),(0,U.jsx)(`circle`,{cx:`15`,cy:`11`,r:`4`})]}),Td)),wp=V.memo(({flip:e=!1})=>G((0,U.jsxs)(`g`,{stroke:`currentColor`,fill:`none`,transform:e?``:`translate(40, 0) scale(-1, 1)`,strokeLinejoin:`round`,strokeWidth:2,children:[(0,U.jsx)(`path`,{d:`M35,11 H27 M19,11 H7 M15,11 L7,5 M15,11 L7,17`}),(0,U.jsx)(`circle`,{cx:`23`,cy:`11`,r:`4`})]}),Td)),Tp=G((0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`g`,{clipPath:`url(#a)`,children:(0,U.jsx)(`path`,{d:`M14.167 6.667a3.333 3.333 0 0 0-3.334-3.334H9.167a3.333 3.333 0 0 0 0 6.667h1.666a3.333 3.333 0 0 1 0 6.667H9.167a3.333 3.333 0 0 1-3.334-3.334`,stroke:`currentColor`,strokeWidth:`1.25`,strokeLinecap:`round`,strokeLinejoin:`round`})}),(0,U.jsx)(`defs`,{children:(0,U.jsx)(`clipPath`,{id:`a`,children:(0,U.jsx)(`path`,{fill:`#fff`,d:`M0 0h20v20H0z`})})})]}),q),Ep=G((0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`g`,{clipPath:`url(#a)`,children:(0,U.jsx)(`path`,{d:`M5 16.667V3.333L10 15l5-11.667v13.334`,stroke:`currentColor`,strokeWidth:`1.25`,strokeLinecap:`round`,strokeLinejoin:`round`})}),(0,U.jsx)(`defs`,{children:(0,U.jsx)(`clipPath`,{id:`a`,children:(0,U.jsx)(`path`,{fill:`#fff`,d:`M0 0h20v20H0z`})})})]}),q),Dp=G((0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`g`,{clipPath:`url(#a)`,children:(0,U.jsx)(`path`,{d:`M5.833 3.333v13.334h8.334`,stroke:`currentColor`,strokeWidth:`1.25`,strokeLinecap:`round`,strokeLinejoin:`round`})}),(0,U.jsx)(`defs`,{children:(0,U.jsx)(`clipPath`,{id:`a`,children:(0,U.jsx)(`path`,{fill:`#fff`,d:`M0 0h20v20H0z`})})})]}),q),Op=G((0,U.jsx)(U.Fragment,{children:(0,U.jsx)(`path`,{d:`m1.667 3.333 6.666 13.334M8.333 3.333 1.667 16.667M11.667 3.333v13.334h6.666`,stroke:`currentColor`,strokeWidth:`1.25`,strokeLinecap:`round`,strokeLinejoin:`round`})}),q),kp=G((0,U.jsxs)(`g`,{strokeWidth:1.25,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M3 7v-2h13v2`}),(0,U.jsx)(`path`,{d:`M10 5v14`}),(0,U.jsx)(`path`,{d:`M12 19h-4`}),(0,U.jsx)(`path`,{d:`M15 13v-1h6v1`}),(0,U.jsx)(`path`,{d:`M18 12v7`}),(0,U.jsx)(`path`,{d:`M17 19h2`})]}),K),Ap=G((0,U.jsx)(U.Fragment,{children:(0,U.jsxs)(`g`,{stroke:`currentColor`,strokeWidth:`1.25`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M7 12h10`}),(0,U.jsx)(`path`,{d:`M7 5v14`}),(0,U.jsx)(`path`,{d:`M17 5v14`}),(0,U.jsx)(`path`,{d:`M15 19h4`}),(0,U.jsx)(`path`,{d:`M15 5h4`}),(0,U.jsx)(`path`,{d:`M5 19h4`}),(0,U.jsx)(`path`,{d:`M5 5h4`})]})}),K),jp=G((0,U.jsx)(U.Fragment,{children:(0,U.jsx)(`g`,{stroke:`currentColor`,strokeWidth:`1.25`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,U.jsx)(`path`,{d:`M5.833 16.667v-10a3.333 3.333 0 0 1 3.334-3.334h1.666a3.333 3.333 0 0 1 3.334 3.334v10M5.833 10.833h8.334`})})}),q),Mp=G((0,U.jsxs)(`g`,{strokeWidth:`1.5`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M7 8l-4 4l4 4`}),(0,U.jsx)(`path`,{d:`M17 8l4 4l-4 4`}),(0,U.jsx)(`path`,{d:`M14 4l-4 16`})]}),K),Np=Mp,Pp=G((0,U.jsxs)(`g`,{stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:2,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`line`,{x1:`4`,y1:`8`,x2:`20`,y2:`8`}),(0,U.jsx)(`line`,{x1:`4`,y1:`12`,x2:`12`,y2:`12`}),(0,U.jsx)(`line`,{x1:`4`,y1:`16`,x2:`16`,y2:`16`})]}),K),Fp=G((0,U.jsxs)(`g`,{stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`line`,{x1:`4`,y1:`8`,x2:`20`,y2:`8`}),(0,U.jsx)(`line`,{x1:`8`,y1:`12`,x2:`16`,y2:`12`}),(0,U.jsx)(`line`,{x1:`6`,y1:`16`,x2:`18`,y2:`16`})]}),K),Ip=G((0,U.jsxs)(`g`,{stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`line`,{x1:`4`,y1:`8`,x2:`20`,y2:`8`}),(0,U.jsx)(`line`,{x1:`10`,y1:`12`,x2:`20`,y2:`12`}),(0,U.jsx)(`line`,{x1:`8`,y1:`16`,x2:`20`,y2:`16`})]}),K),Lp=V.memo(({theme:e})=>G((0,U.jsxs)(`g`,{strokeWidth:`1.5`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`line`,{x1:`4`,y1:`4`,x2:`20`,y2:`4`}),(0,U.jsx)(`rect`,{x:`9`,y:`8`,width:`6`,height:`12`,rx:`2`})]}),K)),Rp=V.memo(({theme:e})=>G((0,U.jsxs)(`g`,{strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`line`,{x1:`4`,y1:`20`,x2:`20`,y2:`20`}),(0,U.jsx)(`rect`,{x:`9`,y:`4`,width:`6`,height:`12`,rx:`2`})]}),K)),zp=V.memo(({theme:e})=>G((0,U.jsxs)(`g`,{strokeWidth:`1.5`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`line`,{x1:`4`,y1:`12`,x2:`9`,y2:`12`}),(0,U.jsx)(`line`,{x1:`15`,y1:`12`,x2:`20`,y2:`12`}),(0,U.jsx)(`rect`,{x:`9`,y:`6`,width:`6`,height:`12`,rx:`2`})]}),K)),Bp=G((0,U.jsxs)(`g`,{children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M21 19h-18l9 -15`}),(0,U.jsx)(`path`,{d:`M20.615 15.171h.015`}),(0,U.jsx)(`path`,{d:`M19.515 11.771h.015`}),(0,U.jsx)(`path`,{d:`M17.715 8.671h.015`}),(0,U.jsx)(`path`,{d:`M15.415 5.971h.015`})]}),K),Vp=G((0,U.jsx)(`path`,{d:`M537.6 226.6c4.1-10.7 6.4-22.4 6.4-34.6 0-53-43-96-96-96-19.7 0-38.1 6-53.3 16.2C367 64.2 315.3 32 256 32c-88.4 0-160 71.6-160 160 0 2.7.1 5.4.2 8.1C40.2 219.8 0 273.2 0 336c0 79.5 64.5 144 144 144h368c70.7 0 128-57.3 128-128 0-61.9-44-113.6-102.4-125.4zM393.4 288H328v112c0 8.8-7.2 16-16 16h-48c-8.8 0-16-7.2-16-16V288h-65.4c-14.3 0-21.4-17.2-11.3-27.3l105.4-105.4c6.2-6.2 16.4-6.2 22.6 0l105.4 105.4c10.1 10.1 2.9 27.3-11.3 27.3z`,fill:`currentColor`}),{width:640,height:512});G((0,U.jsx)(`path`,{d:`M480 416C497.7 416 512 430.3 512 448C512 465.7 497.7 480 480 480H150.6C133.7 480 117.4 473.3 105.4 461.3L25.37 381.3C.3786 356.3 .3786 315.7 25.37 290.7L258.7 57.37C283.7 32.38 324.3 32.38 349.3 57.37L486.6 194.7C511.6 219.7 511.6 260.3 486.6 285.3L355.9 416H480zM265.4 416L332.7 348.7L195.3 211.3L70.63 336L150.6 416L265.4 416z`}));var Hp=G((0,U.jsxs)(`g`,{strokeWidth:1.25,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M8 13v-7.5a1.5 1.5 0 0 1 3 0v6.5`}),(0,U.jsx)(`path`,{d:`M11 5.5v-2a1.5 1.5 0 1 1 3 0v8.5`}),(0,U.jsx)(`path`,{d:`M14 5.5a1.5 1.5 0 0 1 3 0v6.5`}),(0,U.jsx)(`path`,{d:`M17 7.5a1.5 1.5 0 0 1 3 0v8.5a6 6 0 0 1 -6 6h-2h.208a6 6 0 0 1 -5.012 -2.7a69.74 69.74 0 0 1 -.196 -.3c-.312 -.479 -1.407 -2.388 -3.286 -5.728a1.5 1.5 0 0 1 .536 -2.022a1.867 1.867 0 0 1 2.28 .28l1.47 1.47`})]}),K),Up=G((0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2`}),(0,U.jsx)(`path`,{d:`M7 11l5 5l5 -5`}),(0,U.jsx)(`path`,{d:`M12 4l0 12`})]}),K),Wp=G((0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M8 8m0 2a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2z`}),(0,U.jsx)(`path`,{d:`M16 8v-2a2 2 0 0 0 -2 -2h-8a2 2 0 0 0 -2 2v8a2 2 0 0 0 2 2h2`})]}),K),Gp=G((0,U.jsxs)(`g`,{strokeWidth:1.25,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M7 17m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0`}),(0,U.jsx)(`path`,{d:`M17 17m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0`}),(0,U.jsx)(`path`,{d:`M9.15 14.85l8.85 -10.85`}),(0,U.jsx)(`path`,{d:`M6 4l8.85 10.85`})]}),K),Kp=G((0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0`}),(0,U.jsx)(`path`,{d:`M12 17l0 .01`}),(0,U.jsx)(`path`,{d:`M12 13.5a1.5 1.5 0 0 1 1 -1.5a2.6 2.6 0 1 0 -3 -4`})]}),K);G((0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M7 4v16l13 -8z`})]}),K),G((0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M17 4h-10a3 3 0 0 0 -3 3v10a3 3 0 0 0 3 3h10a3 3 0 0 0 3 -3v-10a3 3 0 0 0 -3 -3z`,strokeWidth:`0`,fill:`currentColor`})]}),K);var qp=G((0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M5 12l5 5l10 -10`})]}),K),Jp=G((0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M10.24 3.957l-8.422 14.06a1.989 1.989 0 0 0 1.7 2.983h16.845a1.989 1.989 0 0 0 1.7 -2.983l-8.423 -14.06a1.989 1.989 0 0 0 -3.4 0z`}),(0,U.jsx)(`path`,{d:`M12 9v4`}),(0,U.jsx)(`path`,{d:`M12 17h.01`})]}),K),Yp=[`M4 16l11.7 -11.7a1 1 0 0 1 1.4 0l2.6 2.6a1 1 0 0 1 0 1.4l-11.7 11.7h-4v-4z`,`M11 7l6 6`],Xp=G((0,U.jsxs)(`g`,{strokeWidth:1.25,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),Yp.map(e=>(0,U.jsx)(`path`,{d:e},e))]}),K),Zp=G((0,U.jsxs)(`g`,{strokeWidth:1.5,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M4 7l16 0`}),(0,U.jsx)(`path`,{d:`M4 17l16 0`}),(0,U.jsx)(`path`,{d:`M7 4l0 16`}),(0,U.jsx)(`path`,{d:`M17 4l0 16`})]}),K),Qp=G((0,U.jsx)(`path`,{fill:`currentColor`,d:`M407.48,111.18C335.587,108.103 269.573,152.338 245.08,220C220.587,152.338 154.573,108.103 82.68,111.18C80.285,168.229 107.577,222.632 154.74,254.82C178.908,271.419 193.35,298.951 193.27,328.27L193.27,379.13L296.9,379.13L296.9,328.27C296.816,298.953 311.255,271.42 335.42,254.82C382.596,222.644 409.892,168.233 407.48,111.18Z`})),$p=G((0,U.jsxs)(`g`,{strokeWidth:`1.5`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4`}),(0,U.jsx)(`path`,{d:`M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4`})]}),K),em=G((0,U.jsxs)(`g`,{children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M6 10l-2 1l8 4l8 -4l-2 -1`}),(0,U.jsx)(`path`,{d:`M4 15l8 4l8 -4`}),(0,U.jsx)(`path`,{d:`M12 4v7`}),(0,U.jsx)(`path`,{d:`M15 8l-3 3l-3 -3`})]}),K),tm=G((0,U.jsxs)(`g`,{strokeWidth:`1.25`,children:[(0,U.jsx)(`path`,{d:`M4.16602 10H15.8327`}),(0,U.jsx)(`path`,{d:`M12.5 13.3333L15.8333 10`}),(0,U.jsx)(`path`,{d:`M12.5 6.66666L15.8333 9.99999`})]}),q),nm=G((0,U.jsxs)(`g`,{strokeWidth:`1.5`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M3 9.5a6.5 6.5 0 1 0 13 0a6.5 6.5 0 1 0 -13 0`}),(0,U.jsx)(`path`,{d:`M10 12a2 2 0 0 1 2 -2h7a2 2 0 0 1 2 2v7a2 2 0 0 1 -2 2h-7a2 2 0 0 1 -2 -2l0 -7`})]}),K),rm=G((0,U.jsxs)(`g`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.25`,strokeLinecap:`round`,strokeLinejoin:`round`,transform:`rotate(90 10 10)`,children:[(0,U.jsx)(`path`,{clipRule:`evenodd`,d:`m9.644 13.69 7.774-7.773a2.357 2.357 0 0 0-3.334-3.334l-7.773 7.774L8 12l1.643 1.69Z`}),(0,U.jsx)(`path`,{d:`m13.25 3.417 3.333 3.333M10 10l2-2M5 15l3-3M2.156 17.894l1-1M5.453 19.029l-.144-1.407M2.377 11.887l.866 1.118M8.354 17.273l-1.194-.758M.953 14.652l1.408.13`})]}),20),im=G((0,U.jsxs)(`g`,{stroke:`currentColor`,fill:`none`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`}),(0,U.jsx)(`path`,{d:`M6 21l15 -15l-3 -3l-15 15l3 3`}),(0,U.jsx)(`path`,{d:`M15 6l3 3`}),(0,U.jsx)(`path`,{d:`M9 3a2 2 0 0 0 2 2a2 2 0 0 0 -2 2a2 2 0 0 0 -2 -2a2 2 0 0 0 2 -2`}),(0,U.jsx)(`path`,{d:`M19 13a2 2 0 0 0 2 2a2 2 0 0 0 -2 2a2 2 0 0 0 -2 -2a2 2 0 0 0 2 -2`})]}),K);G((0,U.jsxs)(`g`,{strokeWidth:1.25,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`}),(0,U.jsx)(`path`,{d:`M6 21l15 -15l-3 -3l-15 15l3 3`}),(0,U.jsx)(`path`,{d:`M15 6l3 3`}),(0,U.jsx)(`path`,{d:`M9 3a2 2 0 0 0 2 2a2 2 0 0 0 -2 2a2 2 0 0 0 -2 -2a2 2 0 0 0 2 -2`}),(0,U.jsx)(`path`,{d:`M19 13a2 2 0 0 0 2 2a2 2 0 0 0 -2 2a2 2 0 0 0 -2 -2a2 2 0 0 0 2 -2`})]}),K),G((0,U.jsxs)(`g`,{stroke:`currentColor`,fill:`none`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M11.217 19.384a3.501 3.501 0 0 0 6.783 -1.217v-5.167l-6 -3.35`}),(0,U.jsx)(`path`,{d:`M5.214 15.014a3.501 3.501 0 0 0 4.446 5.266l4.34 -2.534v-6.946`}),(0,U.jsx)(`path`,{d:`M6 7.63c-1.391 -.236 -2.787 .395 -3.534 1.689a3.474 3.474 0 0 0 1.271 4.745l4.263 2.514l6 -3.348`}),(0,U.jsx)(`path`,{d:`M12.783 4.616a3.501 3.501 0 0 0 -6.783 1.217v5.067l6 3.45`}),(0,U.jsx)(`path`,{d:`M18.786 8.986a3.501 3.501 0 0 0 -4.446 -5.266l-4.34 2.534v6.946`}),(0,U.jsx)(`path`,{d:`M18 16.302c1.391 .236 2.787 -.395 3.534 -1.689a3.474 3.474 0 0 0 -1.271 -4.745l-4.308 -2.514l-5.955 3.42`})]}),K);var am=G((0,U.jsxs)(`g`,{stroke:`currentColor`,fill:`none`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M4 8v-2a2 2 0 0 1 2 -2h2`}),(0,U.jsx)(`path`,{d:`M4 16v2a2 2 0 0 0 2 2h2`}),(0,U.jsx)(`path`,{d:`M16 4h2a2 2 0 0 1 2 2v2`}),(0,U.jsx)(`path`,{d:`M16 20h2a2 2 0 0 0 2 -2v-2`})]}),K),om=G((0,U.jsxs)(`g`,{stroke:`currentColor`,fill:`none`,strokeWidth:1.5,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M10 12a2 2 0 1 0 4 0a2 2 0 0 0 -4 0`}),(0,U.jsx)(`path`,{d:`M21 12c-2.4 4 -5.4 6 -9 6c-3.6 0 -6.6 -2 -9 -6c2.4 -4 5.4 -6 9 -6c3.6 0 6.6 2 9 6`})]}),K),sm=G((0,U.jsxs)(`g`,{stroke:`currentColor`,fill:`none`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M10.585 10.587a2 2 0 0 0 2.829 2.828`}),(0,U.jsx)(`path`,{d:`M16.681 16.673a8.717 8.717 0 0 1 -4.681 1.327c-3.6 0 -6.6 -2 -9 -6c1.272 -2.12 2.712 -3.678 4.32 -4.674m2.86 -1.146a9.055 9.055 0 0 1 1.82 -.18c3.6 0 6.6 2 9 6c-.666 1.11 -1.379 2.067 -2.138 2.87`}),(0,U.jsx)(`path`,{d:`M3 3l18 18`})]}),K),cm=G((0,U.jsxs)(`g`,{stroke:`currentColor`,fill:`none`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M15.5 13a3.5 3.5 0 0 0 -3.5 3.5v1a3.5 3.5 0 0 0 7 0v-1.8`}),(0,U.jsx)(`path`,{d:`M8.5 13a3.5 3.5 0 0 1 3.5 3.5v1a3.5 3.5 0 0 1 -7 0v-1.8`}),(0,U.jsx)(`path`,{d:`M17.5 16a3.5 3.5 0 0 0 0 -7h-.5`}),(0,U.jsx)(`path`,{d:`M19 9.3v-2.8a3.5 3.5 0 0 0 -7 0`}),(0,U.jsx)(`path`,{d:`M6.5 16a3.5 3.5 0 0 1 0 -7h.5`}),(0,U.jsx)(`path`,{d:`M5 9.3v-2.8a3.5 3.5 0 0 1 7 0v10`})]}),K),lm=G((0,U.jsxs)(`g`,{strokeWidth:1.25,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M15.5 13a3.5 3.5 0 0 0 -3.5 3.5v1a3.5 3.5 0 0 0 7 0v-1.8`}),(0,U.jsx)(`path`,{d:`M8.5 13a3.5 3.5 0 0 1 3.5 3.5v1a3.5 3.5 0 0 1 -7 0v-1.8`}),(0,U.jsx)(`path`,{d:`M17.5 16a3.5 3.5 0 0 0 0 -7h-.5`}),(0,U.jsx)(`path`,{d:`M19 9.3v-2.8a3.5 3.5 0 0 0 -7 0`}),(0,U.jsx)(`path`,{d:`M6.5 16a3.5 3.5 0 0 1 0 -7h.5`}),(0,U.jsx)(`path`,{d:`M5 9.3v-2.8a3.5 3.5 0 0 1 7 0v10`})]}),K),um=G((0,U.jsxs)(`g`,{strokeWidth:1.5,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0`}),(0,U.jsx)(`path`,{d:`M21 21l-6 -6`})]}),K),dm=G((0,U.jsxs)(`g`,{strokeWidth:1.5,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M20.984 12.53a9 9 0 1 0 -7.552 8.355`}),(0,U.jsx)(`path`,{d:`M12 7v5l3 3`}),(0,U.jsx)(`path`,{d:`M19 16l-2 3h4l-2 3`})]}),K),fm=G((0,U.jsxs)(`g`,{strokeWidth:1.5,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M12 8l0 4l2 2`}),(0,U.jsx)(`path`,{d:`M3.05 11a9 9 0 1 1 .5 4m-.5 5v-5h5`})]}),K),pm=G((0,U.jsxs)(`g`,{strokeWidth:1.5,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M9 2m0 3a3 3 0 0 1 3 -3h0a3 3 0 0 1 3 3v5a3 3 0 0 1 -3 3h0a3 3 0 0 1 -3 -3z`}),(0,U.jsx)(`path`,{d:`M5 10a7 7 0 0 0 14 0`}),(0,U.jsx)(`path`,{d:`M8 21l8 0`}),(0,U.jsx)(`path`,{d:`M12 17l0 4`})]}),K),mm=G((0,U.jsxs)(`g`,{strokeWidth:1.5,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M3 3l18 18`}),(0,U.jsx)(`path`,{d:`M9 5a3 3 0 0 1 6 0v5a3 3 0 0 1 -.13 .874m-2 2a3 3 0 0 1 -3.87 -2.872v-1`}),(0,U.jsx)(`path`,{d:`M5 10a7 7 0 0 0 10.846 5.85m2 -2a6.967 6.967 0 0 0 1.152 -3.85`}),(0,U.jsx)(`path`,{d:`M8 21l8 0`}),(0,U.jsx)(`path`,{d:`M12 17l0 4`})]}),K),hm=G((0,U.jsxs)(`g`,{strokeWidth:1.25,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M13 3l0 7l6 0l-8 11l0 -7l-6 0l8 -11`})]}),K),gm=G((0,U.jsxs)(`g`,{children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M8 8m0 1a1 1 0 0 1 1 -1h6a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-6a1 1 0 0 1 -1 -1z`}),(0,U.jsx)(`path`,{d:`M12 20v.01`}),(0,U.jsx)(`path`,{d:`M16 20v.01`}),(0,U.jsx)(`path`,{d:`M8 20v.01`}),(0,U.jsx)(`path`,{d:`M4 20v.01`}),(0,U.jsx)(`path`,{d:`M4 16v.01`}),(0,U.jsx)(`path`,{d:`M4 12v.01`}),(0,U.jsx)(`path`,{d:`M4 8v.01`}),(0,U.jsx)(`path`,{d:`M4 4v.01`}),(0,U.jsx)(`path`,{d:`M8 4v.01`}),(0,U.jsx)(`path`,{d:`M12 4v.01`}),(0,U.jsx)(`path`,{d:`M16 4v.01`}),(0,U.jsx)(`path`,{d:`M20 4v.01`}),(0,U.jsx)(`path`,{d:`M20 8v.01`}),(0,U.jsx)(`path`,{d:`M20 12v.01`}),(0,U.jsx)(`path`,{d:`M20 16v.01`}),(0,U.jsx)(`path`,{d:`M20 20v.01`})]}),K),_m=G((0,U.jsxs)(`g`,{strokeWidth:1.25,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M5 3v18`}),(0,U.jsx)(`path`,{d:`M19 21v-18`}),(0,U.jsx)(`path`,{d:`M5 7h14`}),(0,U.jsx)(`path`,{d:`M5 15h14`}),(0,U.jsx)(`path`,{d:`M8 13v4`}),(0,U.jsx)(`path`,{d:`M11 13v4`}),(0,U.jsx)(`path`,{d:`M16 13v4`}),(0,U.jsx)(`path`,{d:`M14 5v4`}),(0,U.jsx)(`path`,{d:`M11 5v4`}),(0,U.jsx)(`path`,{d:`M8 5v4`}),(0,U.jsx)(`path`,{d:`M3 21h18`})]}),K),vm=G((0,U.jsxs)(`g`,{strokeWidth:1.25,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M3 12l18 0`}),(0,U.jsx)(`path`,{d:`M7 16l10 0l-10 5l0 -5`}),(0,U.jsx)(`path`,{d:`M7 8l10 0l-10 -5l0 5`})]}),K),ym=G((0,U.jsxs)(`g`,{strokeWidth:1.25,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M12 3l0 18`}),(0,U.jsx)(`path`,{d:`M16 7l0 10l5 0l-5 -10`}),(0,U.jsx)(`path`,{d:`M8 7l0 10l-5 0l5 -10`})]}),K),bm=G((0,U.jsxs)(`g`,{strokeWidth:1.25,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M5 3m0 2a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2z`}),(0,U.jsx)(`path`,{d:`M19 6h1a2 2 0 0 1 2 2a5 5 0 0 1 -5 5l-5 0v2`}),(0,U.jsx)(`path`,{d:`M10 15m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z`})]}),K),xm=G((0,U.jsxs)(`g`,{strokeWidth:1.25,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M15 15m-5 0a5 5 0 1 0 10 0a5 5 0 1 0 -10 0`}),(0,U.jsx)(`path`,{d:`M22 22l-3 -3`}),(0,U.jsx)(`path`,{d:`M6 18h-1a2 2 0 0 1 -2 -2v-1`}),(0,U.jsx)(`path`,{d:`M3 11v-1`}),(0,U.jsx)(`path`,{d:`M3 6v-1a2 2 0 0 1 2 -2h1`}),(0,U.jsx)(`path`,{d:`M10 3h1`}),(0,U.jsx)(`path`,{d:`M15 3h1a2 2 0 0 1 2 2v1`})]}),K),Sm=G((0,U.jsxs)(`g`,{strokeWidth:1.25,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M14 3v4a1 1 0 0 0 1 1h4`}),(0,U.jsx)(`path`,{d:`M5 12v-7a2 2 0 0 1 2 -2h7l5 5v4`}),(0,U.jsx)(`path`,{d:`M4 20.25c0 .414 .336 .75 .75 .75h1.25a1 1 0 0 0 1 -1v-1a1 1 0 0 0 -1 -1h-1a1 1 0 0 1 -1 -1v-1a1 1 0 0 1 1 -1h1.25a.75 .75 0 0 1 .75 .75`}),(0,U.jsx)(`path`,{d:`M10 15l2 6l2 -6`}),(0,U.jsx)(`path`,{d:`M20 15h-1a2 2 0 0 0 -2 2v2a2 2 0 0 0 2 2h1v-3`})]}),K),Cm=G((0,U.jsxs)(`g`,{strokeWidth:1.25,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M14 3v4a1 1 0 0 0 1 1h4`}),(0,U.jsx)(`path`,{d:`M5 12v-7a2 2 0 0 1 2 -2h7l5 5v4`}),(0,U.jsx)(`path`,{d:`M20 15h-1a2 2 0 0 0 -2 2v2a2 2 0 0 0 2 2h1v-3`}),(0,U.jsx)(`path`,{d:`M5 18h1.5a1.5 1.5 0 0 0 0 -3h-1.5v6`}),(0,U.jsx)(`path`,{d:`M11 21v-6l3 6v-6`})]}),K),wm=G((0,U.jsxs)(`g`,{strokeWidth:1.25,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M4 13v-8a2 2 0 0 1 2 -2h1a2 2 0 0 1 2 2v8a2 2 0 0 0 6 0v-8a2 2 0 0 1 2 -2h1a2 2 0 0 1 2 2v8a8 8 0 0 1 -16 0`}),(0,U.jsx)(`path`,{d:`M4 8l5 0`}),(0,U.jsx)(`path`,{d:`M15 8l4 0`})]}),K),Tm=G((0,U.jsxs)(`g`,{strokeWidth:1.25,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M3 14c.83 .642 2.077 1.017 3.5 1c1.423 .017 2.67 -.358 3.5 -1c.83 -.642 2.077 -1.017 3.5 -1c1.423 -.017 2.67 .358 3.5 1`}),(0,U.jsx)(`path`,{d:`M8 3a2.4 2.4 0 0 0 -1 2a2.4 2.4 0 0 0 1 2`}),(0,U.jsx)(`path`,{d:`M12 3a2.4 2.4 0 0 0 -1 2a2.4 2.4 0 0 0 1 2`}),(0,U.jsx)(`path`,{d:`M3 10h14v5a6 6 0 0 1 -6 6h-2a6 6 0 0 1 -6 -6v-5z`}),(0,U.jsx)(`path`,{d:`M16.746 16.726a3 3 0 1 0 .252 -5.555`})]}),K),Em=G((0,U.jsxs)(`g`,{stroke:`currentColor`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M3 5a1 1 0 0 1 1-1h16a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1h-16a1 1 0 0 1-1-1v-10zM7 20h10M9 16v4M15 16v4`})]}),{...K,strokeWidth:1.5});G((0,U.jsxs)(`g`,{strokeWidth:1.5,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M15 8v-2a2 2 0 0 0 -2 -2h-7a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h7a2 2 0 0 0 2 -2v-2`}),(0,U.jsx)(`path`,{d:`M21 12h-13l3 -3`}),(0,U.jsx)(`path`,{d:`M11 15l-3 -3`})]}),K);var Dm=G((0,U.jsxs)(`g`,{children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M2 8a4 4 0 0 1 4 -4h12a4 4 0 0 1 4 4v8a4 4 0 0 1 -4 4h-12a4 4 0 0 1 -4 -4v-8z`}),(0,U.jsx)(`path`,{d:`M10 9l5 3l-5 3z`})]}),K),Om=G((0,U.jsxs)(`g`,{strokeWidth:1.5,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M3 6h18`}),(0,U.jsx)(`path`,{d:`M3 12h18`}),(0,U.jsx)(`path`,{d:`M3 18h18`}),(0,U.jsx)(`path`,{d:`M6 3v18`}),(0,U.jsx)(`path`,{d:`M12 3v18`}),(0,U.jsx)(`path`,{d:`M18 3v18`})]}),K),km=G((0,U.jsxs)(`g`,{strokeWidth:1.5,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M17 3m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z`}),(0,U.jsx)(`path`,{d:`M3 17m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z`}),(0,U.jsx)(`path`,{d:`M17 5c-6.627 0 -12 5.373 -12 12`})]}),K),Am=G((0,U.jsxs)(`g`,{children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M6 18l12 -12`}),(0,U.jsx)(`path`,{d:`M18 10v-4h-4`})]}),K),jm=G((0,U.jsxs)(`g`,{children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M4,19L10,19C11.097,19 12,18.097 12,17L12,9C12,7.903 12.903,7 14,7L21,7`}),(0,U.jsx)(`path`,{d:`M18 4l3 3l-3 3`})]}),K),Mm=G((0,U.jsxs)(`g`,{children:[(0,U.jsx)(`path`,{d:`M16,12L20,9L16,6`}),(0,U.jsx)(`path`,{d:`M6 20c0 -6.075 4.925 -11 11 -11h3`})]}),K),Nm=G((0,U.jsxs)(`g`,{children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M6 9l6 6l6 -6`})]}),K),Pm=G((0,U.jsxs)(`g`,{children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M6 15l6 -6l6 6`})]}),K),Fm=G((0,U.jsxs)(`g`,{children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M6 15l6 -6l6 6`})]}),K),Im=G((0,U.jsxs)(`g`,{strokeWidth:`1.25`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M8 5v10a1 1 0 0 0 1 1h10`}),(0,U.jsx)(`path`,{d:`M5 8h10a1 1 0 0 1 1 1v10`})]}),K),Lm=G((0,U.jsxs)(`g`,{children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M5 5m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`}),(0,U.jsx)(`path`,{d:`M19 5m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`}),(0,U.jsx)(`path`,{d:`M5 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`}),(0,U.jsx)(`path`,{d:`M19 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`}),(0,U.jsx)(`path`,{d:`M5 7l0 10`}),(0,U.jsx)(`path`,{d:`M7 5l10 0`}),(0,U.jsx)(`path`,{d:`M7 19l10 0`}),(0,U.jsx)(`path`,{d:`M19 7l0 10`})]}),K);G((0,U.jsxs)(`g`,{strokeWidth:1.5,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M4 11v8a1 1 0 0 0 1 1h8m-9 -14v-1a1 1 0 0 1 1 -1h1m5 0h2m5 0h1a1 1 0 0 1 1 1v1m0 5v2m0 5v1a1 1 0 0 1 -1 1h-1`}),(0,U.jsx)(`path`,{d:`M4 12h7a1 1 0 0 1 1 1v7`})]}),K);var Rm=G((0,U.jsxs)(`g`,{strokeWidth:1.5,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M14 6m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`}),(0,U.jsx)(`path`,{d:`M4 6l8 0`}),(0,U.jsx)(`path`,{d:`M16 6l4 0`}),(0,U.jsx)(`path`,{d:`M8 12m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`}),(0,U.jsx)(`path`,{d:`M4 12l2 0`}),(0,U.jsx)(`path`,{d:`M10 12l10 0`}),(0,U.jsx)(`path`,{d:`M17 18m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`}),(0,U.jsx)(`path`,{d:`M4 18l11 0`}),(0,U.jsx)(`path`,{d:`M19 18l1 0`})]}),K),zm=G((0,U.jsxs)(`g`,{strokeWidth:1,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M6 10l4 -4 L6 14l8 -8 L6 18l12 -12 L10 18l8 -8 L14 18l4 -4`})]}),K),Bm=G((0,U.jsxs)(`g`,{strokeWidth:1.25,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M4 20h4l10.5 -10.5a2.828 2.828 0 1 0 -4 -4l-10.5 10.5v4`}),(0,U.jsx)(`path`,{d:`M13.5 6.5l4 4`})]}),K);G((0,U.jsxs)(`g`,{strokeWidth:1,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M11 7l-5 5l5 5`}),(0,U.jsx)(`path`,{d:`M17 7l-5 5l5 5`})]}),K);var Vm=G((0,U.jsxs)(`g`,{strokeWidth:`1.75`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z`}),(0,U.jsx)(`path`,{d:`M15 4l0 16`})]}),K);G((0,U.jsxs)(`g`,{strokeWidth:`1.25`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M3 20l1.3 -3.9c-2.324 -3.437 -1.426 -7.872 2.1 -10.374c3.526 -2.501 8.59 -2.296 11.845 .48c3.255 2.777 3.695 7.266 1.029 10.501c-2.666 3.235 -7.615 4.215 -11.574 2.293l-4.7 1`})]}),K),G((0,U.jsxs)(`g`,{strokeWidth:`1.25`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M3 4l18 0`}),(0,U.jsx)(`path`,{d:`M4 4v10a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-10`}),(0,U.jsx)(`path`,{d:`M12 16l0 4`}),(0,U.jsx)(`path`,{d:`M9 20l6 0`}),(0,U.jsx)(`path`,{d:`M8 12l3 -3l2 2l3 -3`})]}),K);var Hm=(0,U.jsx)(`div`,{style:{width:`1rem`,height:`1rem`}}),Um=G((0,U.jsxs)(`g`,{strokeWidth:`1.5`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`polyline`,{points:`6 9 12 15 18 9`})]}),K),Wm=G((0,U.jsxs)(`g`,{strokeWidth:`1.5`,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`polyline`,{points:`9 6 15 12 9 18`})]}),K),Gm=G((0,U.jsxs)(`g`,{strokeWidth:1.25,children:[(0,U.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,U.jsx)(`path`,{d:`M14 6m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`}),(0,U.jsx)(`path`,{d:`M4 6l8 0`}),(0,U.jsx)(`path`,{d:`M16 6l4 0`}),(0,U.jsx)(`path`,{d:`M8 12m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`}),(0,U.jsx)(`path`,{d:`M4 12l2 0`}),(0,U.jsx)(`path`,{d:`M10 12l10 0`}),(0,U.jsx)(`path`,{d:`M17 18m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`}),(0,U.jsx)(`path`,{d:`M4 18l11 0`}),(0,U.jsx)(`path`,{d:`M19 18l1 0`})]}),K),Km=({size:e=`1em`,circleWidth:t=8,synchronized:n=!1,className:r=``})=>{let i=-(V.useRef(Date.now()).current%1600);return(0,U.jsx)(`div`,{className:`Spinner ${r}`,children:(0,U.jsx)(`svg`,{viewBox:`0 0 100 100`,style:{width:e,height:e,"--spinner-delay":n?`${i}ms`:0},children:(0,U.jsx)(`circle`,{cx:`50`,cy:`50`,r:50-t/2,strokeWidth:t,fill:`none`,strokeMiterlimit:`10`})})})},J=V.forwardRef(({size:e=`medium`,visible:t=!0,className:n=``,...r},i)=>{let a=V.useRef(null);V.useImperativeHandle(i,()=>a.current);let o=`ToolIcon_size_${e}`,[s,c]=(0,V.useState)(!1),l=(0,V.useRef)(!0),u=async e=>{let t=`onClick`in r&&r.onClick?.(e);if(kn(t))try{c(!0),await t}catch(e){if(e instanceof Ys)console.warn(e);else throw e}finally{l.current&&c(!1)}};(0,V.useEffect)(()=>(l.current=!0,()=>{l.current=!1}),[]);let d=(0,V.useRef)(null);return r.type===`button`||r.type===`icon`?(0,U.jsxs)(`button`,{className:H(`ToolIcon_type_button`,o,n,t&&!r.hidden?`ToolIcon_type_button--show`:`ToolIcon_type_button--hide`,{ToolIcon:!r.hidden,"ToolIcon--plain":r.type===`icon`}),style:r.style,"data-testid":r[`data-testid`],hidden:r.hidden,title:r.title,"aria-label":r[`aria-label`],type:`button`,onClick:u,ref:a,disabled:s||r.isLoading||!!r.disabled,children:[(r.icon||r.label)&&(0,U.jsxs)(`div`,{className:`ToolIcon__icon`,"aria-hidden":`true`,"aria-disabled":!!r.disabled,children:[r.icon||r.label,r.keyBindingLabel&&(0,U.jsx)(`span`,{className:`ToolIcon__keybinding`,children:r.keyBindingLabel}),r.isLoading&&(0,U.jsx)(Km,{})]}),r.showAriaLabel&&(0,U.jsxs)(`div`,{className:`ToolIcon__label`,children:[r[`aria-label`],` `,s&&(0,U.jsx)(Km,{})]}),r.children]}):(0,U.jsx)(`button`,{className:H(`ToolIcon`,`ToolIcon_type_toggle`,o,n,{"ToolIcon--checked":r.checked}),type:`button`,style:r.style,title:r.title,"aria-label":r[`aria-label`],"aria-keyshortcuts":r[`aria-keyshortcuts`],"aria-pressed":r.checked,"data-testid":r[`data-testid`],disabled:!!r.disabled,"aria-disabled":!!r.disabled,onPointerDown:e=>{d.current=e.pointerType||null},onPointerUp:()=>{requestAnimationFrame(()=>{d.current=null})},onClick:()=>{r.onSelect?.({pointerType:d.current})},ref:a,children:(0,U.jsxs)(`div`,{className:`ToolIcon__icon`,children:[r.icon,r.keyBindingLabel&&(0,U.jsx)(`span`,{className:`ToolIcon__keybinding`,children:r.keyBindingLabel})]})})});J.displayName=`IconButton`;var qm=[],Y=e=>(qm=qm.concat(e),e),Jm=(e,t,n)=>{let r=new Set(Ls(e.filter(e=>F(e)),t).map(e=>e.id)),i={},a=n.scene.getNonDeletedElementsMap(),o=new Set;for(let t of r){let n=Pr(e,t);for(let e of n)if(!o.has(e.id)){if(Gs(e)){let t=$o(e,a);t&&(i[t.id]=!0)}else i[e.id]=!0;o.add(e.id)}}let s=!0,c=e.map(e=>{if(t.selectedElementIds[e.id]){let t=Gs(e)?$o(e,a):null;return e.frameId&&r.has(e.frameId)?(s=!1,i[e.id]=!0,e):t?.frameId&&r.has(t?.frameId)?e:(e.boundElements&&e.boundElements.forEach(t=>{let r=n.scene.getNonDeletedElementsMap().get(t.id);r&&Ke(r)&&n.scene.mutateElement(r,{startBinding:e.id===r.startBinding?.elementId?null:r.startBinding,endBinding:e.id===r.endBinding?.elementId?null:r.endBinding})}),B(e,{isDeleted:!0}))}return e.frameId&&r.has(e.frameId)?(s=!1,Gs(e)||(i[e.id]=!0),B(e,{frameId:null})):Gs(e)&&t.selectedElementIds[e.containerId]?B(e,{isDeleted:!0}):e}),l=t.editingGroupId;if(s&&t.editingGroupId){let e=nn(c,t.editingGroupId).filter(e=>!e.isDeleted);if(e.length>1)e[0]&&(i[e[0].id]=!0);else{l=null,e[0]&&(i[e[0].id]=!0);let n=e[0];if(n){let e=n.groupIds.findIndex(e=>e===t.editingGroupId),r=n.groupIds[e+1];if(r){let e=nn(c,r).filter(e=>!e.isDeleted);e.length>1&&(l=r,e.forEach(e=>{i[e.id]=!0}))}}}}return{elements:c,appState:{...t,...ks({selectedElementIds:i,editingGroupId:l},A(c),t,null)}}},Ym=(e,t)=>{if(e.editingGroupId){let n=nn(A(t),e.editingGroupId);if(n.length)return{...e,selectedElementIds:{[n[0].id]:!0}}}return e},Xm=Y({name:`deleteSelectedElements`,label:`labels.delete`,icon:ef,trackEvent:{category:`element`,action:`delete`},perform:(e,t,n,r)=>{if(t.selectedLinearElement?.isEditing){let{elementId:n,selectedPointsIndices:i}=t.selectedLinearElement,a=r.scene.getNonDeletedElementsMap(),o=N.getElement(n,a);if(!o||i==null)return!1;if(i.length>=o.points.length){let n=e.map(e=>e.id===o.id?B(e,{isDeleted:!0}):e);return{elements:n,appState:{...Ym(t,n),selectedLinearElement:null},captureUpdate:j.IMMEDIATELY}}return N.deletePoints(o,r,i),{elements:e,appState:{...t,selectedLinearElement:{...t.selectedLinearElement,selectedPointsIndices:i?.[0]>0?[i[0]-1]:[0]}},captureUpdate:j.IMMEDIATELY}}let{elements:i,appState:a}=Jm(e,t,r);return Qs(i,i.filter(e=>e.isDeleted)),a=Ym(a,i),{elements:i,appState:{...a,activeTool:ji(t,{type:r.state.preferredSelectionTool.type}),multiElement:null,newElement:null,activeEmbeddable:null,selectedLinearElement:null},captureUpdate:wa(A(e),t)?j.IMMEDIATELY:j.EVENTUALLY}},keyTest:(e,t,n)=>(e.key===L.BACKSPACE||e.key===L.DELETE)&&!e[L.CTRL_OR_CMD],PanelComponent:({elements:e,appState:t,updateData:n,app:r})=>{let i=cN()===`mobile`;return(0,U.jsx)(J,{type:`button`,icon:ef,title:W(`labels.delete`),"aria-label":W(`labels.delete`),onClick:()=>n(null),disabled:!wa(A(e),t),style:{...i&&t.openPopup!==`compactOtherProperties`?pt:{}}})}}),X=e=>e.replace(/\b(Opt(?:ion)?|Alt)\b/i,W(Wo?`keys.option`:`keys.alt`)).replace(/\bShift\b/i,W(`keys.shift`)).replace(/\b(Enter|Return)\b/i,W(`keys.enter`)).replace(/\b(Ctrl|Cmd|Command|CtrlOrCmd)\b/gi,W(Wo?`keys.cmd`:`keys.ctrl`)).replace(/\b(Esc(?:ape)?)\b/i,W(`keys.escape`)).replace(/\b(Space(?:bar)?)\b/i,W(`keys.spacebar`)).replace(/\b(Del(?:ete)?)\b/i,W(`keys.delete`)),Zm=Y({name:`sendBackward`,label:`labels.sendBackward`,keywords:[`move down`,`zindex`,`layer`],icon:Mf,trackEvent:{category:`element`},perform:(e,t,n,r)=>({elements:Gn(e,t,r.scene),appState:t,captureUpdate:j.IMMEDIATELY}),keyPriority:40,keyTest:e=>e[L.CTRL_OR_CMD]&&!e.shiftKey&&e.code===M.BRACKET_LEFT,PanelComponent:({updateData:e,appState:t})=>(0,U.jsx)(`button`,{type:`button`,className:`zIndexButton`,onClick:()=>e(null),title:`${W(`labels.sendBackward`)} \u2014 ${X(`CtrlOrCmd+[`)}`,children:Mf})}),Qm=Y({name:`bringForward`,label:`labels.bringForward`,keywords:[`move up`,`zindex`,`layer`],icon:jf,trackEvent:{category:`element`},perform:(e,t,n,r)=>({elements:On(e,t,r.scene),appState:t,captureUpdate:j.IMMEDIATELY}),keyPriority:40,keyTest:e=>e[L.CTRL_OR_CMD]&&!e.shiftKey&&e.code===M.BRACKET_RIGHT,PanelComponent:({updateData:e,appState:t})=>(0,U.jsx)(`button`,{type:`button`,className:`zIndexButton`,onClick:()=>e(null),title:`${W(`labels.bringForward`)} \u2014 ${X(`CtrlOrCmd+]`)}`,children:jf})}),$m=Y({name:`sendToBack`,label:`labels.sendToBack`,keywords:[`move down`,`zindex`,`layer`],icon:Pf,trackEvent:{category:`element`},perform:(e,t)=>({elements:jo(e,t),appState:t,captureUpdate:j.IMMEDIATELY}),keyTest:e=>Wo?e[L.CTRL_OR_CMD]&&e.altKey&&e.code===M.BRACKET_LEFT:e[L.CTRL_OR_CMD]&&e.shiftKey&&e.code===M.BRACKET_LEFT,PanelComponent:({updateData:e,appState:t})=>(0,U.jsx)(`button`,{type:`button`,className:`zIndexButton`,onClick:()=>e(null),title:`${W(`labels.sendToBack`)} \u2014 ${X(Wo?`CtrlOrCmd+Alt+[`:`CtrlOrCmd+Shift+[`)}`,children:Pf})}),eh=Y({name:`bringToFront`,label:`labels.bringToFront`,keywords:[`move up`,`zindex`,`layer`],icon:Nf,trackEvent:{category:`element`},perform:(e,t)=>({elements:Nt(e,t),appState:t,captureUpdate:j.IMMEDIATELY}),keyTest:e=>Wo?e[L.CTRL_OR_CMD]&&e.altKey&&e.code===M.BRACKET_RIGHT:e[L.CTRL_OR_CMD]&&e.shiftKey&&e.code===M.BRACKET_RIGHT,PanelComponent:({updateData:e,appState:t})=>(0,U.jsx)(`button`,{type:`button`,className:`zIndexButton`,onClick:t=>e(null),title:`${W(`labels.bringToFront`)} \u2014 ${X(Wo?`CtrlOrCmd+Alt+]`:`CtrlOrCmd+Shift+]`)}`,children:Nf})}),th=Y({name:`selectAll`,label:`labels.selectAll`,icon:gm,trackEvent:{category:`canvas`},viewMode:!1,perform:(e,t,n,r)=>{if(t.selectedLinearElement?.isEditing)return!1;let i=e.filter(e=>!e.isDeleted&&!(I(e)&&e.containerId)&&!e.locked).reduce((e,t)=>(e[t.id]=!0,e),{});return{appState:{...t,...ks({editingGroupId:null,selectedElementIds:i},A(e),t,r),selectedLinearElement:Object.keys(i).length===1&&Zo(e[0])?new N(e[0],k(e)):null},captureUpdate:j.IMMEDIATELY}},keyTest:e=>e[L.CTRL_OR_CMD]&&e.key===L.A}),nh=Y({name:`duplicateSelection`,label:`labels.duplicateSelection`,icon:nf,trackEvent:{category:`element`},perform:(e,t,n,r)=>{if(t.selectedElementsAreBeingDragged)return!1;if(t.selectedLinearElement?.isEditing)try{return{elements:e,appState:N.duplicateSelectedPoints(t,r.scene),captureUpdate:j.IMMEDIATELY}}catch{return!1}let{duplicatedElements:i,elementsWithDuplicates:a}=ia({type:`in-place`,elements:e,idsOfElementsToDuplicate:k(Ls(e,t,{includeBoundTextElement:!0,includeElementsInFrames:!0})),appState:t,randomizeSeed:!0,overrides:({origElement:e,origIdToDuplicateId:t})=>{let n=e.frameId&&t.get(e.frameId);return{x:e.x+20/2,y:e.y+20/2,frameId:n??e.frameId}}});if(r.props.onDuplicate&&a){let t=r.props.onDuplicate(a,e);t&&(a=t)}return{elements:tn(a,k(i)),appState:{...t,...Yr(i,A(a),t)},captureUpdate:j.IMMEDIATELY}},keyTest:e=>e[L.CTRL_OR_CMD]&&e.key===L.D,PanelComponent:({elements:e,appState:t,updateData:n,app:r})=>{let i=cN()===`mobile`;return(0,U.jsx)(J,{type:`button`,icon:nf,title:`${W(`labels.duplicateSelection`)} \u2014 ${X(`CtrlOrCmd+D`)}`,"aria-label":W(`labels.duplicateSelection`),onClick:()=>n(null),disabled:!wa(A(e),t),style:{...i&&t.openPopup!==`compactOtherProperties`?pt:{}}})}}),rh=new Set([`command_palette`,`export`]),ih=(e,t,n,r)=>{try{if(typeof window>`u`||re.VITE_WORKER_ID||re.VITE_APP_ENABLE_TRACKING!==`true`||!rh.has(e)||Jt())return;re.PROD||console.info(`trackEvent`,{category:e,action:t,label:n,value:r}),window.sa_event&&window.sa_event(t,{category:e,label:n,value:r})}catch(e){console.error(`error during analytics`,e)}},ah=(0,V.forwardRef)((e,t)=>{let{title:n,className:r,testId:i,active:a,icon:o,onClick:s}=e;return(0,U.jsx)(`button`,{type:`button`,ref:t,title:n,"data-testid":i,className:H(r,{active:a}),onClick:s,style:e.style,children:o},n)}),oh=e=>(0,U.jsx)(U.Fragment,{children:e.options.map(t=>e.type===`button`?(0,U.jsx)(ah,{icon:t.icon,title:t.text,testId:t.testId,active:t.active??e.value===t.value,onClick:n=>e.onClick(t.value,n)},t.text):(0,U.jsxs)(`label`,{className:H({active:e.value===t.value}),title:t.text,children:[(0,U.jsx)(`input`,{type:`radio`,name:e.group,onChange:()=>e.onChange(t.value),checked:e.value===t.value,"data-testid":t.testId}),t.icon]},t.text))}),sh=()=>(0,U.jsx)(`div`,{style:{width:1,height:`1rem`,backgroundColor:`var(--default-border-color)`,margin:`0 auto`}}),ch=V.createContext(null),lh=()=>V.useContext(ch),uh=e=>{let[t,n]=(0,V.useState)(null),r=sN(),{theme:i}=lh(),{container:a}=lN();return(0,V.useLayoutEffect)(()=>{t&&(t.className=``,t.classList.add(`excalidraw`,...e?.className?.split(/\s+/)||[]),t.classList.toggle(`excalidraw--mobile`,r.formFactor===`phone`),t.classList.toggle(`theme--dark`,i===P.DARK))},[t,i,r.formFactor,e?.className]),(0,V.useLayoutEffect)(()=>{let t=e?.parentSelector?a?.querySelector(e.parentSelector):document.body;if(!t)return;let r=document.createElement(`div`);return t.appendChild(r),n(r),()=>{t.removeChild(r)}},[a,e?.parentSelector]),t};function dh(e,t,n){(0,V.useEffect)(()=>{function r(r){let i=r;if(!e.current)return;let a=n?.(i,e.current);if(a!==!0){if(a===!1)return t(i);e.current.contains(i.target)||!document.documentElement.contains(i.target)||i.target.closest(`[data-radix-portal]`)||i.target===document.documentElement&&document.body.style.pointerEvents===`none`||i.target.closest(`[data-prevent-outside-click]`)||t(i)}}return document.addEventListener(z.POINTER_DOWN,r),document.addEventListener(z.TOUCH_START,r),()=>{document.removeEventListener(z.POINTER_DOWN,r),document.removeEventListener(z.TOUCH_START,r)}},[e,t,n])}var fh=e=>{let t=(0,V.useRef)(e);return Object.assign(t.current,e),t.current},ph=({cursorPosition:e,elementSize:t,containerSize:n,gap:r})=>$s(e+r+t>n?e-r-t:e+r,0,Math.max(0,n-t)),mh=({cursor:e,element:t,container:n,gap:r})=>({left:ph({cursorPosition:e.x-n.left,elementSize:t.width,containerSize:n.width,gap:r}),top:ph({cursorPosition:e.y-n.top,elementSize:t.height,containerSize:n.height,gap:r})}),hh=Yp.map((e,t)=>`<path fill="${t===0?`#fff`:``}" d="${e}" />`).join(``),gh=`url(data:${R.svg},${encodeURIComponent(`<svg viewBox="0 0 24 24" width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg" stroke-linecap="round" stroke-linejoin="round"><g stroke="#fff" stroke-width="5">${hh}</g><g stroke="#1b1b1f" stroke-width="1.25">${hh}</g></svg>`)}) 2 21, auto`,_h=Tl(null),vh=({onCancel:e,onChange:t,onSelect:n,colorPickerType:r})=>{let i=uh({className:`excalidraw-eye-dropper-backdrop`,parentSelector:`.excalidraw-eye-dropper-container`}),a=lh(),o=uN(),s=aN(),c=fh({app:s,onCancel:e,onChange:t,onSelect:n,selectedElements:Ls(o,a)}),{container:l}=lN();(0,V.useLayoutEffect)(()=>{if(i)return i.style.cursor=gh,()=>{i.style.cursor=``}},[i]),(0,V.useEffect)(()=>{let e=u.current;if(!e||!s.canvas||!i)return;let t=!1,n=s.canvas.getContext(`2d`),o=({clientX:e,clientY:t})=>{let r=n.getImageData((e-a.offsetLeft)*window.devicePixelRatio,(t-a.offsetTop)*window.devicePixelRatio,1,1).data;return aa(r[0],r[1],r[2])},d=e=>a.theme===P.DARK?qn(e):e,f=({clientX:n,clientY:a,altKey:s})=>{let{top:l,left:u}=mh({cursor:{x:n,y:a},element:{width:e.offsetWidth,height:e.offsetHeight},container:i.getBoundingClientRect(),gap:7});e.style.top=`${l}px`,e.style.left=`${u}px`;let f=o({clientX:n,clientY:a});t&&c.onChange(r,d(f),c.selectedElements,{altKey:s}),e.style.background=f,e.style.setProperty(`--eye-dropper-preview-border-color`,ce(f)?`#fff`:`#222`)},p=()=>{c.onCancel()},m=(e,t)=>{c.onSelect(e,t)},h=e=>{t=!0,e.stopImmediatePropagation()},g=e=>{t=!1,l?.focus(),e.stopImmediatePropagation(),e.preventDefault(),m(d(o(e)),e)},_=e=>{e.key===L.ESCAPE&&(e.preventDefault(),e.stopImmediatePropagation(),p())};return i.tabIndex=-1,i.focus(),f({clientX:c.app.viewport.lastPosition.x,clientY:c.app.viewport.lastPosition.y,altKey:!1}),i.addEventListener(z.KEYDOWN,_),i.addEventListener(z.POINTER_DOWN,h),i.addEventListener(z.POINTER_UP,g),window.addEventListener(`pointermove`,f,{passive:!0}),window.addEventListener(z.BLUR,p),()=>{t=!1,i.removeEventListener(z.KEYDOWN,_),i.removeEventListener(z.POINTER_DOWN,h),i.removeEventListener(z.POINTER_UP,g),window.removeEventListener(`pointermove`,f),window.removeEventListener(z.BLUR,p)}},[c,s.canvas,i,r,l,a.offsetLeft,a.offsetTop,a.theme]);let u=(0,V.useRef)(null);return dh(u,()=>{e()},e=>!!e.target.closest(`.excalidraw-eye-dropper-trigger, .excalidraw-eye-dropper-backdrop`)),i?(0,Sl.createPortal)((0,U.jsx)(`div`,{ref:u,className:`excalidraw-eye-dropper-preview`}),i):null},yh=V.forwardRef(({children:e,padding:t,className:n,style:r,"data-viewport-ui":i,"data-viewport-ui-name":a},o)=>(0,U.jsx)(`div`,{className:H(`Island`,n),style:{"--padding":t,...r},"data-viewport-ui":i,"data-viewport-ui-name":a,ref:o,children:e})),bh=V.forwardRef(({className:e,container:t,children:n,style:r,onClose:i,onKeyDown:a,onFocusOutside:o,onPointerLeave:s,onPointerDownOutside:c,preventAutoFocusOnTouch:l=!1},u)=>{let d=sN(),f=d.formFactor===`phone`&&!d.isLandscape;return(0,U.jsx)(b,{container:t,children:(0,U.jsxs)(x,{ref:u,className:H(`focus-visible-none`,e),"data-prevent-outside-click":!0,side:f?`bottom`:`right`,align:f?`center`:`start`,alignOffset:-16,sideOffset:20,collisionBoundary:t??void 0,style:{zIndex:`var(--zIndex-ui-styles-popup)`,marginLeft:d.formFactor===`phone`?`0.5rem`:void 0},onPointerLeave:s,onKeyDown:a,onFocusOutside:o,onPointerDownOutside:c,onOpenAutoFocus:e=>{l&&d.isTouchScreen&&e.preventDefault()},onCloseAutoFocus:e=>{e.stopPropagation(),e.preventDefault(),t&&!zr(document.activeElement)&&t.focus(),i()},children:[(0,U.jsx)(yh,{padding:3,style:r,children:n}),(0,U.jsx)(S,{width:20,height:10,style:{fill:`var(--popup-bg-color)`,filter:`drop-shadow(rgba(0, 0, 0, 0.05) 0px 3px 2px)`}})]})})}),xh=()=>document.querySelector(`.excalidraw-wysiwyg`),Sh=()=>{let e=xh();return e?{start:e.selectionStart,end:e.selectionEnd}:null},Ch=e=>{setTimeout(()=>{let t=xh();t&&(t.focus(),e&&(t.selectionStart=e.start,t.selectionEnd=e.end))},0)},wh=(e,t,n,r)=>{t&&r&&r();let i=t&&n?Sh():null;e(),t&&n&&Ch(i)},Th=()=>{let[e,t]=(0,V.useState)(null);return{saveCaretPosition:(0,V.useCallback)(()=>{t(Sh())},[]),restoreCaretPosition:(0,V.useCallback)(()=>{setTimeout(()=>{let n=xh();n&&(n.focus(),e&&(n.selectionStart=e.start,n.selectionEnd=e.end,t(null)))},0)},[e]),clearSavedPosition:(0,V.useCallback)(()=>{t(null)},[]),hasSavedPosition:!!e}},Eh=(e=100)=>{let t=xh();if(t){let n=t.onblur;t.onblur=null,setTimeout(()=>{t.onblur=n},e)}},Dh=({palette:e,color:t})=>{if(!t)return null;for(let[n,r]of Object.entries(e))if(Array.isArray(r)){let e=r.indexOf(t);if(e>-1)return{colorName:n,shade:e}}else if(r===t)return{colorName:n,shade:null};return null},Oh=[[`q`,`w`,`e`,`r`,`t`],[`a`,`s`,`d`,`f`,`g`],[`z`,`x`,`c`,`v`,`b`]].flat(),kh=({color:e,palette:t})=>!Object.values(t).flat().includes(e),Ah=(e,t,n)=>{let r={elementBackground:`backgroundColor`,elementStroke:`strokeColor`},i=e.filter(e=>{if(e.isDeleted)return!1;let i=e[r[t]];return!lo(i)&&kh({color:i,palette:n})}),a=new Map;return i.forEach(e=>{let n=e[r[t]];a.has(n)?a.set(n,a.get(n)+1):a.set(n,1)}),[...a.entries()].sort((e,t)=>t[1]-e[1]).map(e=>e[0]).slice(0,5)},jh=Tl(null),Mh=({color:e,onChange:t,label:n,colorPickerType:r,placeholder:i})=>{let a=sN(),[o,s]=(0,V.useState)(e),[c,l]=(0,V.useState)(null),[u,d]=ad(jh);(0,V.useEffect)(()=>{s(e)},[e]);let f=(0,V.useCallback)(e=>{let n=e.toLowerCase().trim(),r=Bn(n);r?(t(r),l(null)):n.length===0?l(null):/^#?[0-9a-f]+$/.test(n)?l(W(`colorPicker.invalidHexLength`)):l(W(`colorPicker.invalidColor`)),s(n)},[t]),p=(0,V.useRef)(null),m=(0,V.useRef)(null);(0,V.useEffect)(()=>{p.current&&p.current.focus()},[u]);let[h,g]=ad(_h);return(0,V.useEffect)(()=>()=>{g(null)},[g]),(0,U.jsxs)(`div`,{className:`color-picker__input-label-container`,children:[(0,U.jsxs)(`div`,{className:H(`color-picker__input-label`,{"has-error":c}),children:[(0,U.jsx)(`div`,{className:`color-picker__input-hash`,children:`#`}),(0,U.jsx)(`input`,{ref:u===`hex`?p:void 0,style:{border:0,padding:0},spellCheck:!1,className:`color-picker-input`,"aria-label":n,"aria-invalid":!!c,onChange:e=>{f(e.target.value)},value:(o||``).replace(/^#/,``),onBlur:()=>{s(e),l(null)},tabIndex:-1,onFocus:()=>d(`hex`),onKeyDown:e=>{e.key!==L.TAB&&(e.key===L.ESCAPE&&m.current?.focus(),e.stopPropagation())},placeholder:i}),a.formFactor!==`phone`&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`div`,{style:{width:`1px`,height:`1.25rem`,backgroundColor:`var(--default-border-color)`}}),(0,U.jsx)(`div`,{ref:m,className:H(`excalidraw-eye-dropper-trigger`,{selected:h}),onClick:()=>g(e=>e?null:{keepOpenOnAlt:!1,onSelect:e=>t(e),colorPickerType:r}),title:`${W(`labels.eyeDropper`)} \u2014 ${L.I.toLocaleUpperCase()} or ${X(`Alt`)} `,children:Xp})]})]}),c&&(0,U.jsx)(`div`,{className:`color-picker__error-message`,role:`alert`,children:c})]})},Nh=({color:e,keyLabel:t,isShade:n=!1})=>(0,U.jsxs)(`div`,{className:`color-picker__button__hotkey-label`,style:{color:ce(e)?`#fff`:`#000`},children:[n&&`⇧`,t]}),Ph=`excalidraw-color-dnd-ghost`,Fh=`excalidraw-color-dnd-active`,Ih=10,Lh=100,Rh=(e,t)=>{if(e.toLowerCase()===t.toLowerCase())return!0;let n=Cr(e);return n!==null&&n===Cr(t)},zh=(0,V.createContext)(null),Bh=()=>(0,V.useContext)(zh),Vh=({enabled:e,picks:t,onPicksChange:n})=>{let[r,i]=(0,V.useState)(null),a=(0,V.useRef)(null),o=(0,V.useRef)({enabled:e,picks:t,onPicksChange:n});o.current={enabled:e,picks:t,onPicksChange:n};let s=(0,V.useMemo)(()=>{let e=null,t=()=>{e?.activated?i({color:e.color,origin:e.origin,overIndex:e.overIndex,duplicateIndex:e.duplicateIndex,slotSpan:e.slotSpan}):i(null)},n=()=>{let t=a.current;if(!t||!e)return!1;let n=Array.from(t.querySelectorAll(`[data-top-pick-index]`)).sort((e,t)=>Number(e.dataset.topPickIndex)-Number(t.dataset.topPickIndex));if(!n.length)return!1;e.slotRects=n.map(e=>e.getBoundingClientRect());let[r,i]=e.slotRects;e.slotSpan=i?i.left-r.left:r.width+4;let o=t.getBoundingClientRect(),s=Math.max(Math.abs(e.slotSpan)/2,10);return e.hitRect={left:o.left-s,right:o.right+s,top:o.top-14,bottom:o.bottom+14},!0},r=(t,n)=>{e?.ghost&&(e.ghost.style.transform=`translate(${t-e.ghostW/2}px, ${n-e.ghostH/2}px)`)},s=(t,n,i,a)=>{e?.ghost&&(e.ghostW!==t||e.ghostH!==n)&&(e.ghostW=t,e.ghostH=n,e.ghost.style.width=`${t}px`,e.ghost.style.height=`${n}px`,r(i,a))},c=(n,i)=>{if(!e)return;let{sourceRect:a,sourceEl:o,color:s}=e,c=document.createElement(`div`);c.className=Ph;let l=document.createElement(`div`);if(l.className=`${Ph}__swatch`,lo(s))l.classList.add(`is-transparent`);else{let e=getComputedStyle(o).backgroundColor;l.style.backgroundColor=e&&e!==`rgba(0, 0, 0, 0)`?e:s}c.appendChild(l),document.body.appendChild(c),e.ghost=c,e.ghostW=a.width,e.ghostH=a.height,c.style.width=`${a.width}px`,c.style.height=`${a.height}px`,r(n,i),requestAnimationFrame(()=>{e?.ghost===c&&c.classList.add(`${Ph}--lifted`)}),document.body.classList.add(Fh),e.activated=!0,t()},l=(n,r)=>{if(!e?.hitRect)return;let{hitRect:i,slotRects:a}=e,c=null,l=null;if(n>=i.left&&n<=i.right&&r>=i.top&&r<=i.bottom){let t=0,r=1/0;if(a.forEach((e,i)=>{let a=Math.abs(n-(e.left+e.width/2));a<r&&(r=a,t=i)}),e.origin.kind===`swatch`){let n=o.current.picks.findIndex(t=>Rh(t,e.color));n===-1?c=t:l=n}else c=t}if(c!==e.overIndex||l!==e.duplicateIndex){e.overIndex=c,e.duplicateIndex=l;let{ghost:n}=e;n&&(n.classList.toggle(`${Ph}--over`,c!==null),n.classList.toggle(`${Ph}--blocked`,l!==null)),t()}if(c!==null){let t=e.slotRects[c];s(t.width,t.height,n,r)}else s(e.sourceRect.width,e.sourceRect.height,n,r)},u=t=>{if(!e?.ghost)return;let{ghost:n}=e;e.ghost=null,n.classList.add(`${Ph}--dropping`);let r=t.rect;r&&(n.style.width=`${r.width}px`,n.style.height=`${r.height}px`,n.style.transform=`translate(${r.left}px, ${r.top}px)`),window.setTimeout(()=>{n.classList.add(`${Ph}--fade`)},160),window.setTimeout(()=>{n.remove()},340)},d=()=>{let t=a.current;if(!t||!e?.activated)return;let n=Array.from(t.querySelectorAll(`[data-top-pick-index]`));for(let e of n)e.style.transition=`none`,e.style.transform=`none`;t.offsetWidth;for(let e of n)e.style.transition=``},f=()=>{let e=e=>{e.preventDefault(),e.stopPropagation()};window.addEventListener(`click`,e,{capture:!0,once:!0}),window.setTimeout(()=>{window.removeEventListener(`click`,e,{capture:!0})},100)},p=()=>{window.removeEventListener(`pointermove`,_,!0),window.removeEventListener(`pointerup`,v,!0),window.removeEventListener(`pointercancel`,y,!0),window.removeEventListener(`keydown`,b,!0)},m=()=>{p(),document.body.classList.remove(Fh),e?.activationTimer!=null&&window.clearTimeout(e.activationTimer),e=null,i(null)},h=t=>{e&&(d(),e.ghost&&(t?u({rect:e.sourceRect}):(e.ghost.remove(),e.ghost=null)),m())},g=(t,r)=>{if(!(!e||e.activated)){if(!n()){m();return}c(t,r),l(t,r)}},_=t=>{if(!(!e||t.pointerId!==e.pointerId)){if(e.lastX=t.clientX,e.lastY=t.clientY,!e.activated){if(Math.hypot(t.clientX-e.startX,t.clientY-e.startY)<Ih){e.activationTimer!==null&&(window.clearTimeout(e.activationTimer),e.activationTimer=null);return}let n=performance.now()-e.startTime;if(n<Lh){e.activationTimer===null&&(e.activationTimer=window.setTimeout(()=>{e&&(e.activationTimer=null,Math.hypot(e.lastX-e.startX,e.lastY-e.startY)>=Ih&&g(e.lastX,e.lastY))},Lh-n));return}if(g(t.clientX,t.clientY),!e?.activated)return}t.preventDefault(),r(t.clientX,t.clientY),l(t.clientX,t.clientY)}},v=t=>{if(!e||t.pointerId!==e.pointerId)return;if(!e.activated){m();return}t.preventDefault(),t.stopPropagation(),f();let{overIndex:n,origin:r,color:i,slotRects:a}=e,{picks:s,onPicksChange:c}=o.current;if(d(),n!==null){if(r.kind===`swatch`){if(!s.some(e=>Rh(e,i))){let e=[...s];e[n]=i,c(e)}}else if(r.index!==n){let e=[...s],[t]=e.splice(r.index,1);e.splice(n,0,t),c(e)}u({rect:a[n]})}else u({rect:e.sourceRect});m()},y=t=>{e&&t.pointerId===e.pointerId&&h(!0)},b=t=>{e?.activated&&t.key===`Escape`&&(t.preventDefault(),t.stopPropagation(),h(!0))};return{begin:(t,n,r)=>{!o.current.enabled||e||t.button!==0||!n||(e={pointerId:t.pointerId,startX:t.clientX,startY:t.clientY,startTime:performance.now(),lastX:t.clientX,lastY:t.clientY,activationTimer:null,color:n,origin:r,sourceEl:t.currentTarget,sourceRect:t.currentTarget.getBoundingClientRect(),activated:!1,ghost:null,ghostW:0,ghostH:0,slotRects:[],slotSpan:0,hitRect:null,overIndex:null,duplicateIndex:null},window.addEventListener(`pointermove`,_,!0),window.addEventListener(`pointerup`,v,!0),window.addEventListener(`pointercancel`,y,!0),window.addEventListener(`keydown`,b,!0))},destroy:()=>h(!1)}},[]);return(0,V.useEffect)(()=>()=>s.destroy(),[s]),(0,V.useMemo)(()=>({dragState:r,startSwatchDrag:(e,t)=>s.begin(e,t,{kind:`swatch`}),startPickDrag:(e,t,n)=>s.begin(e,n,{kind:`pick`,index:t}),setStripEl:e=>{a.current=e}}),[r,s])},Hh=({theme:e,colors:t,color:n,onChange:r,label:i})=>{let[a,o]=ad(jh),s=Bh(),c=(0,V.useRef)(null);return(0,V.useEffect)(()=>{c.current&&c.current.focus()},[n,a]),(0,U.jsx)(`div`,{className:`color-picker-content--default`,children:t.map((t,a)=>{let l=xr(t,e===P.DARK);return(0,U.jsxs)(`button`,{ref:n===t?c:void 0,tabIndex:-1,type:`button`,className:H(`color-picker__button color-picker__button--large has-outline`,{active:n===t,"is-transparent":t===`transparent`||!t}),onClick:()=>{r(t),o(`custom`)},onPointerDown:s?e=>s.startSwatchDrag(e,t):void 0,title:t,"aria-label":i,style:{"--swatch-color":l},children:[(0,U.jsx)(`div`,{className:`color-picker__button-outline`}),(0,U.jsx)(Nh,{color:l,keyLabel:a+1})]},a)})})},Uh=({theme:e,palette:t,color:n,onChange:r,activeShade:i,showHotKey:a=!0,excludedColors:o})=>{let s=Dh({color:n,palette:t}),[c,l]=ad(jh),u=Bh(),d=(0,V.useRef)(null);return(0,V.useEffect)(()=>{d.current&&c===`baseColors`&&d.current.focus()},[s?.colorName,c]),(0,U.jsx)(`div`,{className:`color-picker-content--default`,children:Object.entries(t).map(([t,n],c)=>{let f=(Array.isArray(n)?n[i]:n)||`transparent`;if(o?.includes(f))return(0,U.jsx)(`div`,{className:`color-picker__button color-picker__button--large`,style:{visibility:`hidden`},"aria-hidden":`true`},t);let p=Oh[c],m=xr(f,e===P.DARK),h=W(`colors.${t.replace(/\d+/,``)}`,null,``);return(0,U.jsxs)(`button`,{ref:s?.colorName===t?d:void 0,tabIndex:-1,type:`button`,className:H(`color-picker__button color-picker__button--large`,{"has-outline":!ce(f,255),active:s?.colorName===t,"is-transparent":f===`transparent`||!f}),onClick:()=>{r(f),l(`baseColors`)},onPointerDown:u?e=>u.startSwatchDrag(e,f):void 0,title:`${h}${f.startsWith(`#`)?` ${f}`:``} \u2014 ${p}`,"aria-label":`${h} \u2014 ${p}`,style:f?{"--swatch-color":m}:void 0,"data-testid":`color-${t}`,children:[(0,U.jsx)(`div`,{className:`color-picker__button-outline`}),a&&(0,U.jsx)(Nh,{color:m,keyLabel:p})]},t)})})},Wh=({children:e})=>(0,U.jsx)(`div`,{className:`color-picker__heading`,children:e}),Gh=({theme:e,color:t,onChange:n,palette:r,showHotKey:i})=>{let a=Dh({color:t||`transparent`,palette:r}),[o,s]=ad(jh),c=Bh(),l=(0,V.useRef)(null);if((0,V.useEffect)(()=>{l.current&&o===`shades`&&l.current.focus()},[a,o]),a){let{colorName:t,shade:u}=a,d=r[t];if(Array.isArray(d))return(0,U.jsx)(`div`,{className:`color-picker-content--default shades`,children:d.map((r,a)=>{let d=xr(r,e===P.DARK);return(0,U.jsxs)(`button`,{ref:a===u&&o===`shades`?l:void 0,tabIndex:-1,type:`button`,className:H(`color-picker__button color-picker__button--large`,{active:a===u}),"aria-label":`Shade`,title:`${t} - ${a+1}`,style:r?{"--swatch-color":d}:void 0,onClick:()=>{n(r),s(`shades`)},onPointerDown:c?e=>c.startSwatchDrag(e,r):void 0,children:[(0,U.jsx)(`div`,{className:`color-picker__button-outline`}),i&&(0,U.jsx)(Nh,{color:d,keyLabel:a+1,isShade:!0})]},a)})})}return(0,U.jsxs)(`div`,{className:`color-picker-content--default`,style:{position:`relative`},tabIndex:-1,children:[(0,U.jsx)(`button`,{type:`button`,tabIndex:-1,className:`color-picker__button color-picker__button--large color-picker__button--no-focus-visible`}),(0,U.jsx)(`div`,{tabIndex:-1,style:{position:`absolute`,top:0,left:0,right:0,bottom:0,display:`flex`,alignItems:`center`,justifyContent:`center`,textAlign:`center`,fontSize:`0.75rem`},children:W(`colorPicker.noShades`)})]})},Kh=(e,t,n)=>{let r=Math.ceil(n/5);switch(t??=-1,e){case`ArrowLeft`:{let e=t-1;return e<0?n-1:e}case`ArrowRight`:return(t+1)%n;case`ArrowDown`:{let e=t+5;return e>=n?t%5:e}case`ArrowUp`:{let e=t-5,i=e<0?5*r+e:e;return i>=n?void 0:i}}},qh=({e,colorObj:t,onChange:n,palette:r,customColors:i,setActiveColorPickerSection:a,activeShade:o,excludedColors:s})=>{if(t?.shade!=null&&[`Digit1`,`Digit2`,`Digit3`,`Digit4`,`Digit5`].includes(e.code)&&e.shiftKey){let i=Number(e.code.slice(-1))-1;return n(r[t.colorName][i]),a(`shades`),!0}if([`1`,`2`,`3`,`4`,`5`].includes(e.key)&&i[Number(e.key)-1])return n(i[Number(e.key)-1]),a(`custom`),!0;if(Oh.includes(e.key)){let t=Oh.indexOf(e.key),i=r[Object.keys(r)[t]],c=Array.isArray(i)?i[o]:i;return c==null||s?.includes(c)||(n(c),a(`baseColors`)),!0}return!1},Jh=({event:e,activeColorPickerSection:t,palette:n,color:r,onChange:i,customColors:a,setActiveColorPickerSection:o,updateData:s,activeShade:c,onEyeDropperToggle:l,onEscape:u,excludedColors:d})=>{if(e[L.CTRL_OR_CMD])return!1;if(e.key===L.ESCAPE)return u(e),!0;if(e.key===L.ALT)return l(!0),!0;if(e.key===L.I)return l(),!0;let f=Dh({color:r,palette:n});if(e.key===L.TAB){let s={custom:!!a.length,baseColors:!0,shades:f?.shade!=null,hex:!0},c=Object.entries(s).reduce((e,[t,n])=>(n&&e.push(t),e),[]),l=c.indexOf(t),u=e.shiftKey?-1:1,d=c[l+u>c.length-1?0:l+u<0?c.length-1:l+u];return d&&o(d),d===`custom`?i(a[0]):d===`baseColors`&&(Object.entries(n).find(([e,t])=>Array.isArray(t)?t.includes(r):t===r?e:null)||i(on.black)),e.preventDefault(),e.stopPropagation(),!0}if(qh({e,colorObj:f,onChange:i,palette:n,customColors:a,setActiveColorPickerSection:o,activeShade:c,excludedColors:d}))return!0;if(t===`shades`&&f){let{shade:t}=f,r=Kh(e.key,t,5);if(r!==void 0)return i(n[f.colorName][r]),!0}if(t===`baseColors`&&f){let{colorName:t}=f,r=Object.keys(n),a=r.indexOf(t),o=Kh(e.key,a,r.length),s=0;for(;o!==void 0&&s++<r.length;){let t=n[r[o]],i=Array.isArray(t)?t[c]:t;if(!d?.includes(i))break;o=Kh(e.key,o,r.length)}if(o!==void 0){let e=n[r[o]];return i(Array.isArray(e)?e[c]:e),!0}}if(t===`custom`){let t=r==null?0:a.indexOf(r),n=Kh(e.key,t,a.length);if(n!==void 0){let e=a[n];return i(e),!0}}return!1},Yh=V.forwardRef(({theme:e,color:t,onChange:n,type:r,elements:i,palette:a,updateData:o,children:s,showTitle:c,onEyeDropperToggle:l,onEscape:u,showHotKey:d=!0,excludedColors:f},p)=>{let m=c?r===`elementStroke`?W(`labels.stroke`):r===`elementBackground`?W(`labels.background`):null:null,[h]=V.useState(()=>r===`canvasBackground`?[]:Ah(i,r,a)),[g,_]=ad(jh),v=Bh(),y=Dh({color:t,palette:a});(0,V.useEffect)(()=>{if(!g){let e=!!t&&kh({color:t,palette:a});_(e&&!h.includes(t)?null:e?`custom`:y?.shade==null?`baseColors`:`shades`)}},[g,t,a,_,y,h]);let[b,x]=(0,V.useState)(y?.shade??(r===`elementBackground`?1:4));(0,V.useEffect)(()=>{y?.shade!=null&&x(y.shade);let e=e=>{e.key===L.ALT&&l(!1)};return document.addEventListener(z.KEYUP,e,{capture:!0}),()=>{document.removeEventListener(z.KEYUP,e,{capture:!0})}},[y,l]);let S=V.useRef(null);return(0,V.useImperativeHandle)(p,()=>S.current),(0,V.useEffect)(()=>{S?.current?.focus()},[]),(0,U.jsx)(`div`,{role:`dialog`,"aria-modal":`true`,"aria-label":W(`labels.colorPicker`),children:(0,U.jsxs)(`div`,{ref:S,onKeyDown:e=>{Jh({event:e,activeColorPickerSection:g,palette:a,color:t,onChange:n,onEyeDropperToggle:l,customColors:h,setActiveColorPickerSection:_,updateData:o,activeShade:b,onEscape:u,excludedColors:f})&&(e.preventDefault(),e.stopPropagation())},className:`color-picker-content properties-content`,tabIndex:-1,children:[m&&(0,U.jsx)(`div`,{className:`color-picker__title`,children:m}),!!h.length&&(0,U.jsxs)(`div`,{children:[(0,U.jsx)(Wh,{children:W(`colorPicker.mostUsedCustomColors`)}),(0,U.jsx)(Hh,{theme:e,colors:h,color:t,label:W(`colorPicker.mostUsedCustomColors`),onChange:n})]}),(0,U.jsxs)(`div`,{children:[(0,U.jsx)(Wh,{children:W(`colorPicker.colors`)}),(0,U.jsx)(Uh,{theme:e,color:t,palette:a,onChange:n,activeShade:b,showHotKey:d,excludedColors:f})]}),(0,U.jsxs)(`div`,{children:[(0,U.jsx)(Wh,{children:W(`colorPicker.shades`)}),(0,U.jsx)(Gh,{theme:e,color:t,onChange:n,palette:a,showHotKey:d})]}),s,v&&(0,U.jsx)(`div`,{className:`color-picker__tip`,children:W(`colorPicker.topPicksTip`)})]})})}),Xh=({theme:e,onChange:t,type:n,activeColor:r,topPicks:i,onReset:a,isCustomized:o})=>{let s=Bh(),p=s?.dragState??null,{container:m}=lN(),h;if(n===`elementStroke`&&(h=ol),n===`elementBackground`&&(h=de),n===`canvasBackground`&&(h=Ye),i&&(h=i),!h)return console.error(`Invalid type for TopPicks`),null;let g=e=>{if(!p||p.origin.kind!==`pick`||p.overIndex===null)return 0;let t=p.origin.index,n=p.overIndex;if(t===n)return 0;let r=e;return e===t?r=n:(e>t&&--r,r>=n&&(r+=1)),(r-e)*p.slotSpan},_=(0,U.jsxs)(`div`,{className:H(`color-picker__top-picks`,{"is-dnd-active":!!p}),ref:s?.setStripEl,children:[p&&(0,U.jsx)(`svg`,{className:`color-picker__top-picks__dnd-outline`,"aria-hidden":`true`,children:(0,U.jsx)(`rect`,{})}),h.map((n,i)=>{let a=g(i),o=xr(n,e===P.DARK);return(0,U.jsx)(`button`,{className:H(`color-picker__button`,{active:n===r,"is-transparent":n===`transparent`||!n,"has-outline":!ce(n,240),"is-dnd-source":p?.origin.kind===`pick`&&p.origin.index===i,"is-dnd-target":p?.origin.kind===`swatch`&&p.overIndex===i,"is-dnd-duplicate":p?.duplicateIndex===i}),style:{"--swatch-color":o,transform:a?`translateX(${a}px)`:void 0},type:`button`,title:n,onClick:()=>t(n),onPointerDown:s?e=>s.startPickDrag(e,i,n):void 0,"data-testid":`color-top-pick-${n}`,"data-top-pick-index":i,children:(0,U.jsx)(`div`,{className:`color-picker__button-outline`})},n)})]});return a?(0,U.jsxs)(c,{children:[(0,U.jsx)(d,{asChild:!0,children:_}),(0,U.jsx)(f,{container:m,children:(0,U.jsx)(u,{className:`color-picker__context-menu`,style:{zIndex:`var(--zIndex-ui-styles-popup)`},children:(0,U.jsx)(l,{className:`color-picker__context-menu-item`,disabled:!o,onSelect:a,children:W(`colorPicker.resetTopPicks`)})})})]}):_},Zh=({type:e,color:t,onChange:n,label:r,elements:i,palette:a=on,updateData:o,getOpenPopup:s,appState:c,excludedColors:l})=>{let{container:u}=lN(),d=cN(),f=d!==`full`,p=d===`mobile`,[,m]=ad(jh),[h,g]=ad(_h),_=(0,U.jsxs)(`div`,{children:[(0,U.jsx)(Wh,{children:W(`colorPicker.hexCode`)}),(0,U.jsx)(Mh,{color:t||``,label:r,onChange:e=>{n(e)},colorPickerType:e,placeholder:W(`colorPicker.color`)})]}),v=(0,V.useRef)(null),y=()=>{v.current?.focus()};return(0,U.jsx)(bh,{container:u,style:{maxWidth:`13rem`},preventAutoFocusOnTouch:!!c.editingTextElement,onFocusOutside:e=>{if(e.target instanceof HTMLElement&&e.target.closest(`.color-picker__context-menu`)){e.preventDefault();return}ot(e.target)||(e.target instanceof HTMLElement&&e.target.matches(`:active`)?window.addEventListener(`pointerup`,y,{once:!0}):y()),e.preventDefault()},onPointerDownOutside:e=>{h&&e.preventDefault()},onClose:()=>{s()===e&&o({openPopup:null}),m(null),c.editingTextElement&&setTimeout(()=>{let e=document.querySelector(`.excalidraw-wysiwyg`);e&&e.focus()},0)},children:a?(0,U.jsx)(Yh,{ref:v,palette:a,excludedColors:l,color:t,theme:c.theme,onChange:e=>{let t=c.editingTextElement?Sh():null;n(e),c.editingTextElement&&t&&Ch(t)},onEyeDropperToggle:t=>{g(r=>t?(r||={keepOpenOnAlt:!0,onSelect:n,colorPickerType:e},r.keepOpenOnAlt=!0,r):t===!1||r?null:{keepOpenOnAlt:!1,onSelect:n,colorPickerType:e})},onEscape:e=>{h?g(null):o({openPopup:null})},type:e,elements:i,updateData:o,showTitle:f,showHotKey:!p,children:_}):_})},Qh=e=>e===`elementStroke`||e===`elementBackground`||e===`canvasBackground`,$h=({label:e,color:t,type:n,theme:r,mode:i=`background`,onToggle:a,editingTextElement:o})=>{let s=cN(),c=s!==`full`,l=s===`mobile`,u=Bh(),d=t?xr(t,r===P.DARK):null;return(0,U.jsxs)(T,{type:`button`,className:H(`color-picker__button active-color properties-trigger`,{"is-transparent":!t||t===`transparent`,"has-outline":!t||!ce(t,240),"compact-sizing":c,"mobile-border":l}),"aria-label":e,style:d?{"--swatch-color":d}:void 0,title:W(n===`elementStroke`?`labels.showStroke`:`labels.showBackground`),"data-openpopup":n,onClick:e=>{e.preventDefault(),e.stopPropagation(),o&&Eh(),a()},onPointerDown:u?e=>u.startSwatchDrag(e,t):void 0,children:[(0,U.jsx)(`div`,{className:`color-picker__button-outline`,children:!t&&xf}),c&&t&&i===`stroke`&&(0,U.jsx)(`div`,{className:`color-picker__button-background`,children:(0,U.jsx)(`span`,{style:{color:d&&ce(d,240)?`#fff`:`#111`},children:zm})})]})},eg=(0,V.memo)(({type:e,color:t,onChange:n,label:r,elements:i,palette:a=on,topPicks:o,updateData:s,appState:c,excludedColors:l,customizableTopPicks:u})=>{let d=(0,V.useRef)(c.openPopup);(0,V.useEffect)(()=>{d.current=c.openPopup},[c.openPopup]);let f=cN()!==`full`,p=!!u&&!f,m=p&&u?c.colorTopPicks?.[u]:null,h=Vh({enabled:p,picks:m?.length?m:o??(e===`elementStroke`?ol:de),onPicksChange:e=>{u&&s({colorTopPicks:{...c.colorTopPicks,[u]:e}})}});return(0,U.jsx)(zh.Provider,{value:p?h:null,children:(0,U.jsxs)(`div`,{role:`dialog`,"aria-modal":`true`,className:H(`color-picker-container`,{"color-picker-container--no-top-picks":f}),children:[!f&&(0,U.jsx)(Xh,{theme:c.theme,activeColor:t,onChange:t=>{n(t),Qh(c.openPopup)&&c.openPopup!==e&&setTimeout(()=>s({openPopup:e}),0)},type:e,topPicks:m?.length?m:o,isCustomized:!!m?.length,onReset:p&&u?()=>{s({colorTopPicks:{...c.colorTopPicks,[u]:null}})}:void 0}),!f&&(0,U.jsx)(sh,{}),(0,U.jsxs)(C,{open:c.openPopup===e,onOpenChange:t=>{t&&s({openPopup:e})},children:[(0,U.jsx)($h,{color:t,label:r,type:e,theme:c.theme,mode:e===`elementStroke`?`stroke`:`background`,editingTextElement:!!c.editingTextElement,onToggle:()=>{c.openPopup===e?s({openPopup:null}):(c.openPopup,s({openPopup:e}))}}),c.openPopup===e&&(0,U.jsx)(Zh,{type:e,color:t,onChange:n,label:r,elements:i,palette:a,excludedColors:l,updateData:s,getOpenPopup:()=>d.current,appState:c})]})]})})},(e,t)=>e.appState.openPopup===e.type||t.appState.openPopup===t.type?!1:e.type===t.type&&e.color===t.color&&e.label===t.label&&e.appState.openPopup===t.appState.openPopup&&e.palette===t.palette&&e.topPicks===t.topPicks&&e.excludedColors===t.excludedColors&&e.customizableTopPicks===t.customizableTopPicks&&e.appState.theme===t.appState.theme&&e.appState.colorTopPicks===t.appState.colorTopPicks&&!!e.appState.editingTextElement==!!t.appState.editingTextElement),tg=V.forwardRef(({className:e,placeholder:t,onChange:n},r)=>(0,U.jsxs)(`div`,{className:H(`QuickSearch__wrapper`,e),children:[um,(0,U.jsx)(`input`,{ref:r,className:`QuickSearch__input`,type:`text`,placeholder:t,onChange:e=>n(e.target.value.trim().toLowerCase())})]})),ng=({className:e,placeholder:t,children:n})=>{let r=!V.Children.count(n);return(0,U.jsx)(`div`,{className:H(`ScrollableList__wrapper`,e),role:`menu`,children:r?(0,U.jsx)(`div`,{className:`empty`,children:t}):n})},rg=({children:e,className:t=``,style:n,title:r})=>(0,U.jsxs)(`div`,{className:`dropdown-menu-group ${t}`,style:n,children:[r&&(0,U.jsx)(`p`,{className:`dropdown-menu-group-title`,children:r}),e]}),ig=rg;rg.displayName=`DropdownMenuGroup`;var ag=V.createContext({}),og=(e=``,t=!1,n=!1)=>`dropdown-menu-item dropdown-menu-item-base ${e} ${t?`dropdown-menu-item--selected`:``} ${n?`dropdown-menu-item--hovered`:``}`.trim(),sg=e=>{let t=(0,V.useContext)(ag);return us(e,e=>{t.onSelect?.(e)})},cg=({children:e,...t})=>(0,U.jsx)(`span`,{...t,style:{textOverflow:`ellipsis`,overflow:`hidden`,whiteSpace:`nowrap`,...t.style},children:e}),lg=({textStyle:e,icon:t,shortcut:n,children:r,badge:i})=>{let a=sN();return(0,U.jsxs)(U.Fragment,{children:[t&&(0,U.jsx)(`div`,{className:`dropdown-menu-item__icon`,children:t}),(0,U.jsx)(`div`,{style:e,className:`dropdown-menu-item__text`,children:(0,U.jsx)(cg,{children:r})}),i&&(0,U.jsx)(`div`,{className:`dropdown-menu-item__badge`,children:i}),n&&a.formFactor!==`phone`&&(0,U.jsx)(`div`,{className:`dropdown-menu-item__shortcut`,children:n})]})},ug=({icon:e,badge:t,value:n,children:r,shortcut:i,className:a,selected:o,onSelect:s,...c})=>{let l=sg(s);return(0,U.jsx)(h,{className:`radix-menu-item`,onSelect:l,asChild:!0,children:(0,U.jsx)(`button`,{...c,value:n,className:og(a,o),title:c.title??c[`aria-label`],children:(0,U.jsx)(lg,{icon:e,shortcut:i,badge:t,children:r})})})};ug.displayName=`DropdownMenuItem`;var dg={GREEN:`green`,RED:`red`,BLUE:`blue`},fg=({type:e=dg.BLUE,children:t})=>{let{theme:n}=dN(),r={display:`inline-flex`,marginLeft:`auto`,padding:`2px 4px`,borderRadius:6,fontSize:9,fontFamily:`Cascadia, monospace`,border:n===P.LIGHT?`1.5px solid white`:`none`};switch(e){case dg.GREEN:Object.assign(r,{backgroundColor:`var(--background-color-badge)`,color:`var(--color-badge)`});break;case dg.RED:Object.assign(r,{backgroundColor:`pink`,color:`darkred`});break;case dg.BLUE:default:Object.assign(r,{background:`var(--color-promo)`,color:`var(--color-surface-lowest)`})}return(0,U.jsx)(`div`,{className:`DropDownMenuItemBadge`,style:r,children:t})};fg.displayName=`DropdownMenuItemBadge`,ug.Badge=fg;var pg=ug,mg=({event:e,inputRef:t,hoveredFont:n,filteredFonts:r,onClose:i,onSelect:a,onHover:o})=>{if(!e[L.CTRL_OR_CMD]&&e.shiftKey&&e.key.toLowerCase()===L.F)return t.current?.focus(),!0;if(e.key===L.ESCAPE)return i(),!0;if(e.key===L.ENTER)return n?.value&&a(n.value),!0;if(e.key===L.ARROW_DOWN)return n?.next?o(n.next.value):r[0]?.value&&o(r[0].value),!0;if(e.key===L.ARROW_UP)return n?.prev?o(n.prev.value):r[r.length-1]?.value&&o(r[r.length-1].value),!0},hg=e=>{switch(e){case As.Excalifont:case As.Virgil:return Kd;case As.Nunito:case As.Helvetica:return jp;case As[`Lilita One`]:return Ap;case As[`Comic Shanns`]:case As.Cascadia:return Np;default:return jp}},gg=(e,t)=>Object.entries(As).find(([,t])=>t===e)?.[0]??t[0]?.fontFace?.family??`Unknown`,_g=V.memo(({selectedFontFamily:e,hoveredFontFamily:t,onSelect:n,onHover:r,onLeave:i,onOpen:a,onClose:o})=>{let{container:s}=lN(),c=aN(),{fonts:l}=c,{showDeprecatedFonts:u}=oN(),d=cN(),[f,p]=(0,V.useState)(``),m=(0,V.useRef)(null),h=(0,V.useMemo)(()=>Array.from(Zn.registered.entries()).filter(([e,{metadata:t}])=>!t.private&&!t.fallback).map(([e,{metadata:t,fontFaces:n}])=>{let r={value:e,icon:hg(e),text:gg(e,n)};return t.deprecated&&Object.assign(r,{deprecated:t.deprecated,badge:{type:dg.RED,placeholder:W(`fontList.badge.old`)}}),r}).sort((e,t)=>e.text.toLowerCase()>t.text.toLowerCase()?1:-1),[]),g=(0,V.useMemo)(()=>new Set(l.getSceneFamilies()),[e]),_=(0,V.useMemo)(()=>h.filter(e=>g.has(e.value)),[h,g]),v=(0,V.useMemo)(()=>h.filter(e=>!g.has(e.value)&&(u||!e.deprecated)),[h,g,u]),y=(0,V.useMemo)(()=>Ee([..._,...v].filter(e=>e.text?.toLowerCase().includes(f))),[_,v,f]),b=(0,V.useMemo)(()=>{let n;return t?n=y.find(e=>e.value===t):e&&(n=y.find(t=>t.value===e)),!n&&f&&(y[0]?.value?r(y[0].value):i()),n},[t,e,f,y,r,i]),x=(0,V.useCallback)(e=>{let t=null;if(c.state.editingTextElement){let e=document.querySelector(`.excalidraw-wysiwyg`);e&&(t={start:e.selectionStart,end:e.selectionEnd})}n(e),c.state.editingTextElement&&t&&setTimeout(()=>{let e=document.querySelector(`.excalidraw-wysiwyg`);e&&t&&(e.focus(),e.selectionStart=t.start,e.selectionEnd=t.end)},0)},[n,c.state.editingTextElement]),S=(0,V.useCallback)(e=>{mg({event:e,inputRef:m,hoveredFont:b,filteredFonts:y,onSelect:x,onHover:r,onClose:o})&&(e.preventDefault(),e.stopPropagation())},[b,y,x,r,o]);(0,V.useEffect)(()=>(a(),()=>{o()}),[]);let C=(0,V.useMemo)(()=>y.filter(e=>g.has(e.value)),[y,g]),w=(0,V.useMemo)(()=>y.filter(e=>!g.has(e.value)),[y,g]),T=({font:t,order:n})=>{let i=(0,V.useRef)(null),a=t.value===b?.value,o=t.value===e;return(0,V.useEffect)(()=>{a&&(n===0?i.current?.scrollIntoView?.({block:`end`}):i.current?.scrollIntoView?.({block:`nearest`}))},[a,n]),(0,U.jsx)(`button`,{ref:i,type:`button`,value:t.value,className:og(``,o,a),title:t.text,tabIndex:o?0:-1,onClick:e=>{x(Number(e.currentTarget.value))},onMouseMove:()=>{b?.value!==t.value&&r(t.value)},children:(0,U.jsx)(lg,{icon:t.icon,badge:t.badge&&(0,U.jsx)(fg,{type:t.badge.type,children:t.badge.placeholder}),textStyle:{fontFamily:pa({fontFamily:t.value})},children:t.text})})},E=[];return C.length&&E.push((0,U.jsx)(ig,{title:W(`fontList.sceneFonts`),children:C.map((e,t)=>(0,U.jsx)(T,{font:e,order:t},e.value))},`group_1`)),w.length&&E.push((0,U.jsx)(ig,{title:W(`fontList.availableFonts`),children:w.map((e,t)=>(0,U.jsx)(T,{font:e,order:t+C.length},e.value))},`group_2`)),(0,U.jsxs)(bh,{className:`properties-content`,container:s,style:{width:`15rem`},onClose:()=>{o(),c.state.editingTextElement&&setTimeout(()=>{let e=document.querySelector(`.excalidraw-wysiwyg`);e&&e.focus()},0)},onPointerLeave:i,onKeyDown:S,preventAutoFocusOnTouch:!!c.state.editingTextElement,children:[d===`full`&&(0,U.jsx)(tg,{ref:m,placeholder:W(`quickSearch.placeholder`),onChange:tc(p,20)}),(0,U.jsx)(ng,{className:`dropdown-menu fonts manual-hover`,placeholder:W(`fontList.empty`),children:E.length?E:null})]})},(e,t)=>e.selectedFontFamily===t.selectedFontFamily&&e.hoveredFontFamily===t.hoveredFontFamily),vg=({selectedFontFamily:e,isOpened:t=!1,compactMode:n=!1})=>{let r=fN(),i=n?{...pt,width:`2rem`,height:`2rem`}:{};return(0,U.jsx)(T,{asChild:!0,children:(0,U.jsx)(`div`,{"data-openpopup":`fontFamily`,className:`properties-trigger`,children:(0,U.jsx)(J,{type:`toggle`,icon:qd,title:W(`labels.showFonts`),"aria-label":W(`labels.showFonts`),className:`standalone properties-trigger`,"data-testid":`font-family-show-fonts`,checked:t,onSelect:()=>{r(e=>({openPopup:e.openPopup===`fontFamily`?null:e.openPopup}))},style:{border:`none`,...i}})})})},yg=[{value:As.Excalifont,icon:Kd,text:W(`labels.handDrawn`),testId:`font-family-hand-drawn`},{value:As.Nunito,icon:jp,text:W(`labels.normal`),testId:`font-family-normal`},{value:As[`Comic Shanns`],icon:Np,text:W(`labels.code`),testId:`font-family-code`}];new Set(yg.map(e=>e.value));var bg=V.memo(({isOpened:e,selectedFontFamily:t,hoveredFontFamily:n,onSelect:r,onHover:i,onLeave:a,onPopupChange:o,compactMode:s=!1})=>{let c=(0,V.useMemo)(()=>yg,[]),l=(0,V.useCallback)(e=>{e&&r(e)},[r]);return(0,U.jsxs)(`div`,{role:`dialog`,"aria-modal":`true`,className:H(`FontPicker__container`,{"FontPicker__container--compact":s}),children:[!s&&(0,U.jsx)(`div`,{className:`buttonList`,children:(0,U.jsx)(oh,{type:`button`,options:c,value:t,onClick:l})}),!s&&(0,U.jsx)(sh,{}),(0,U.jsxs)(C,{open:e,onOpenChange:o,children:[(0,U.jsx)(vg,{selectedFontFamily:t,isOpened:e,compactMode:s}),e&&(0,U.jsx)(_g,{selectedFontFamily:t,hoveredFontFamily:n,onSelect:l,onHover:i,onLeave:a,onOpen:()=>o(!0),onClose:()=>o(!1)})]})]})},(e,t)=>e.isOpened===t.isOpened&&e.selectedFontFamily===t.selectedFontFamily&&e.hoveredFontFamily===t.hoveredFontFamily),xg=({className:e,icon:t,size:n=`1em`})=>(0,U.jsx)(`span`,{className:e,style:{width:n,height:`100%`,margin:`0 0.5ex 0 0.5ex`,display:`inline-flex`,lineHeight:0,verticalAlign:`middle`,flex:`0 0 auto`},children:t}),Sg=({label:e,open:t,openTrigger:n,children:r,className:i,showCollapsedIcon:a=!0})=>(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`div`,{style:{cursor:`pointer`,display:`flex`,justifyContent:`space-between`,alignItems:`center`},className:i,onClick:n,children:[e,a&&(0,U.jsx)(xg,{icon:t?Pm:Nm})]}),t&&(0,U.jsx)(`div`,{style:{display:`flex`,flexDirection:`column`},children:r})]}),Cg=Tl(!1),wg=4,Tg=`default`,Eg=e=>e.flatMap(e=>e.options),Dg=(e,t)=>{for(let n of e){let e=n.options.find(t);if(e)return e}return null},Og=(e,t)=>e.some(e=>e.options.some(t)),kg=e=>e.flatMap(e=>Array.from({length:Math.ceil(e.options.length/wg)},(t,n)=>e.options.slice(n*wg,n*wg+wg)));function Ag({visibleSections:e,hiddenSections:t=[],value:n,label:r,onChange:i,onClose:a}){let{container:o}=lN(),[s,c]=ad(Cg),l=Eg([...e,...t]),u=kg([...e,...s?t:[]]),d=e=>{let t=l.find(t=>t.keyBinding===e.key.toLowerCase());if(!(e.metaKey||e.altKey||e.ctrlKey)&&t)i(t.value),e.preventDefault();else if(e.key===L.TAB){let t=l.findIndex(e=>e.value===n);i(l[e.shiftKey?(l.length+t-1)%l.length:(t+1)%l.length].value)}else if(is(e.key)){let t=yd().rtl,r=l.findIndex(e=>e.value===n);if(r!==-1){let a=l.length,o=r;switch(e.key){case t?L.ARROW_LEFT:L.ARROW_RIGHT:o=(r+1)%a;break;case t?L.ARROW_RIGHT:L.ARROW_LEFT:o=(a+r-1)%a;break;case L.ARROW_DOWN:{let t=u.findIndex(e=>e.some(e=>e.value===n)),a=u[t];if(t!==-1&&a){let o=a.findIndex(e=>e.value===n),s=u[(t+1)%u.length];i((s[Math.min(o,s.length-1)]??l[r]).value),e.preventDefault(),e.nativeEvent.stopImmediatePropagation(),e.stopPropagation();return}break}case L.ARROW_UP:{let t=u.findIndex(e=>e.some(e=>e.value===n)),a=u[t];if(t!==-1&&a){let o=a.findIndex(e=>e.value===n),s=u[(u.length+t-1)%u.length];i((s[Math.min(o,s.length-1)]??l[r]).value),e.preventDefault(),e.nativeEvent.stopImmediatePropagation(),e.stopPropagation();return}break}}i(l[o].value)}e.preventDefault()}else (e.key===L.ESCAPE||e.key===L.ENTER)&&(e.preventDefault(),a());e.nativeEvent.stopImmediatePropagation(),e.stopPropagation()};(0,V.useEffect)(()=>{Og(t,e=>e.value===n)&&c(!0)},[n,t,c]);let f=e=>(0,U.jsx)(`div`,{className:`picker-content`,children:e.map(e=>(0,U.jsxs)(`button`,{type:`button`,className:H(`picker-option`,{active:n===e.value}),onClick:()=>{i(e.value)},title:e.keyBinding?`${e.text} \u2014 ${e.keyBinding.toUpperCase()}`:e.text,"aria-label":e.text||`none`,"aria-keyshortcuts":e.keyBinding||void 0,ref:t=>{n===e.value&&setTimeout(()=>{t?.focus()},0)},children:[e.icon,e.keyBinding&&(0,U.jsx)(`span`,{className:`picker-keybinding`,children:e.keyBinding})]},e.text))}),p=e=>e.map((e,t)=>e.name===Tg?(0,U.jsx)(V.Fragment,{children:f(e.options)},`${e.name}-${t}`):(0,U.jsxs)(`div`,{className:`picker-section`,children:[(0,U.jsx)(`div`,{className:`picker-section-label`,children:e.name}),f(e.options)]},`${e.name}-${t}`));return(0,U.jsx)(x,{className:`picker`,role:`dialog`,"aria-modal":`true`,"aria-label":r,side:`bottom`,align:`start`,sideOffset:12,alignOffset:12,style:{zIndex:`var(--zIndex-ui-styles-popup)`},onKeyDown:d,collisionBoundary:o??void 0,children:(0,U.jsxs)(`div`,{className:`picker-sections`,children:[p(e),t.length>0&&(0,U.jsx)(Sg,{label:W(`labels.more_options`),open:s,openTrigger:()=>{c(e=>!e)},className:`picker-collapsible`,children:(0,U.jsx)(`div`,{className:`picker-sections`,children:p(t)})})]})})}function jg({value:e,label:t,visibleSections:n,hiddenSections:r,onChange:i}){let[a,o]=V.useState(!1),s=(0,V.useMemo)(()=>Dg(n,t=>t.value===e)??Dg(r??[],t=>t.value===e),[n,r,e]);return(0,U.jsx)(`div`,{children:(0,U.jsxs)(C,{open:a,onOpenChange:e=>o(e),children:[(0,U.jsx)(T,{type:`button`,"aria-label":t,onClick:()=>o(!a),className:a?`active`:``,children:s?.icon}),a&&(0,U.jsx)(Ag,{visibleSections:n,hiddenSections:r,value:e,label:t,onChange:i,onClose:()=>{o(!1)}})]})})}var Mg=({label:e,value:t,onChange:n,min:r=0,max:i=100,step:a=10,minLabel:o=r,hasCommonValue:s=!0,testId:c})=>{let l=V.useRef(null),u=V.useRef(null);return(0,V.useEffect)(()=>{if(l.current&&u.current){let e=l.current,n=u.current,a=e.offsetWidth,o=parseFloat(getComputedStyle(e).getPropertyValue(`--slider-thumb-size`))||16,s=(t-r)/(i-r||1)*100,c=s/100*(a-o)+o/2;n.style.left=`${c}px`,e.style.background=`linear-gradient(to right, var(--color-slider-track) 0%, var(--color-slider-track) ${s}%, var(--button-bg) ${s}%, var(--button-bg) 100%)`}},[i,r,t]),(0,U.jsxs)(`label`,{className:`control-label`,children:[e,(0,U.jsxs)(`div`,{className:`range-wrapper`,children:[(0,U.jsx)(`input`,{style:{"--color-slider-track":s?void 0:`var(--button-bg)`},ref:l,type:`range`,min:r,max:i,step:a,onChange:e=>{n(+e.target.value)},value:t,className:`range-input`,"data-testid":c}),(0,U.jsx)(`div`,{className:`value-bubble`,ref:u,children:t===r?null:t}),(0,U.jsx)(`div`,{className:`zero-label`,children:o})]})]})},Ng=.1,Pg=e=>{let t=It(e.editorInterface);return{stylesPanelMode:t,isCompact:t!==`full`,isMobile:t===`mobile`}},Fg=(e,t,n,r=!1)=>{let i=k(Ls(e,t,{includeBoundTextElement:r}));return e.map(e=>i.get(e.id)||e.id===t.editingTextElement?.id?(Sr(e)||console.error(`[NONDELETED][INVARIANT] changeProperty(): skipping deleted selected/editing element`),n(e)):e)},Ig=function(e,t,n,r,i){let a=t.state.editingTextElement,o=A(e),s=null;if(a&&(s=n(a)),!s)if(wa(o,t.state)){let e=t.scene.getSelectedElements(t.state);s=Ze(r===!0?e:e.filter(e=>r(e)),n)??(typeof i==`function`?i(!0):i)}else s=typeof i==`function`?i(!1):i;return s},Lg=(e,t,n)=>Gs(t)||!t.autoResize?t:n.mutateElement(t,{x:e.textAlign===`left`?e.x:e.x+(e.width-t.width)/(e.textAlign===`center`?2:1),y:e.y+(e.height-t.height)/2}),Rg=(e,t,n,r,i)=>{let a=new Set,o=Fg(e,t,e=>{if(I(e)){let t=r(e);a.add(t);let i=B(e,{fontSize:t});return Ya(i,n.scene.getContainerElement(e),n.scene),i=Lg(e,i,n.scene),i}return e},!0);return Ls(e,t,{includeBoundTextElement:!0}).forEach(e=>{I(e)&&yn(e,n.scene)}),{elements:o,appState:{...t,currentItemFontSize:a.size===1?[...a][0]:i??t.currentItemFontSize},captureUpdate:j.IMMEDIATELY}};Y({name:`changeStrokeColor`,label:`labels.stroke`,trackEvent:!1,perform:(e,t,n)=>({...n?.currentItemStrokeColor&&{elements:Fg(e,t,e=>ti(e.type)?B(e,{strokeColor:n.currentItemStrokeColor}):e,!0)},appState:{...t,...n},captureUpdate:n?.currentItemStrokeColor?j.IMMEDIATELY:j.EVENTUALLY}),PanelComponent:({elements:e,appState:t,updateData:n,app:r,data:i})=>{let{stylesPanelMode:a}=Pg(r);return(0,U.jsxs)(U.Fragment,{children:[a===`full`&&(0,U.jsx)(`h3`,{"aria-hidden":`true`,children:W(`labels.stroke`)}),(0,U.jsx)(eg,{topPicks:ol,palette:xa,customizableTopPicks:`elementStroke`,type:`elementStroke`,label:W(`labels.stroke`),color:Ig(e,r,e=>e.strokeColor,!0,e=>e?null:t.currentItemStrokeColor),onChange:e=>n({currentItemStrokeColor:e}),elements:e,appState:t,updateData:n})]})}}),Y({name:`changeBackgroundColor`,label:`labels.changeBackground`,trackEvent:!1,perform:(e,t,n,r)=>{if(!n?.currentItemBackgroundColor)return{appState:{...t,...n},captureUpdate:j.EVENTUALLY};let i,a=r.scene.getSelectedElements(t);if(!lo(n.currentItemBackgroundColor)&&a.every(e=>ft(e)&&Hc(e.points))){let t=k(a);i=e.map(e=>t.has(e.id)&&ft(e)?B(e,{backgroundColor:n.currentItemBackgroundColor,...mi(e,!0)}):e)}else i=Fg(e,t,e=>B(e,{backgroundColor:n.currentItemBackgroundColor}));return{elements:i,appState:{...t,...n},captureUpdate:j.IMMEDIATELY}},PanelComponent:({elements:e,appState:t,updateData:n,app:r,data:i})=>{let{stylesPanelMode:a}=Pg(r);return(0,U.jsxs)(U.Fragment,{children:[a===`full`&&(0,U.jsx)(`h3`,{"aria-hidden":`true`,children:W(`labels.background`)}),(0,U.jsx)(eg,{topPicks:de,palette:At,customizableTopPicks:`elementBackground`,type:`elementBackground`,label:W(`labels.background`),color:Ig(e,r,e=>e.backgroundColor,!0,e=>e?null:t.currentItemBackgroundColor),onChange:e=>n({currentItemBackgroundColor:e}),elements:e,appState:t,updateData:n})]})}});var zg=Y({name:`changeBucketFillBackgroundColor`,label:`labels.changeBackground`,trackEvent:!1,perform:(e,t,n)=>({appState:{...t,...n},captureUpdate:j.EVENTUALLY}),PanelComponent:({elements:e,appState:t,updateData:n,app:r})=>{let{stylesPanelMode:i}=Pg(r);return(0,U.jsxs)(U.Fragment,{children:[i===`full`&&(0,U.jsx)(`h3`,{"aria-hidden":`true`,children:W(`labels.background`)}),(0,U.jsx)(eg,{topPicks:Co,palette:At,excludedColors:[on.transparent],customizableTopPicks:`bucketFill`,type:`elementBackground`,label:W(`labels.background`),color:r.bucketFill.getBucketFillBackgroundColor(t.currentItemBackgroundColor),onChange:e=>n({currentItemBackgroundColor:e}),elements:e,appState:t,updateData:n})]})}});Y({name:`changeFillStyle`,label:`labels.fill`,trackEvent:!1,perform:(e,t,n,r)=>(ih(`element`,`changeFillStyle`,`${n} (${r.editorInterface.formFactor===`phone`?`mobile`:`desktop`})`),{elements:Fg(e,t,e=>B(e,{fillStyle:n})),appState:{...t,currentItemFillStyle:n},captureUpdate:j.IMMEDIATELY}),PanelComponent:({elements:e,appState:t,updateData:n,app:r})=>{let i=Ls(e,t),a=i.length>0&&i.every(e=>e.fillStyle===`zigzag`);return(0,U.jsxs)(`fieldset`,{children:[(0,U.jsx)(`legend`,{children:W(`labels.fill`)}),(0,U.jsx)(`div`,{className:`buttonList`,children:(0,U.jsx)(oh,{type:`button`,options:[{value:`hachure`,text:`${W(a?`labels.zigzag`:`labels.hachure`)} (${X(`Alt-Click`)})`,icon:a?Jf:Yf,active:a?!0:void 0,testId:`fill-hachure`},{value:`cross-hatch`,text:W(`labels.crossHatch`),icon:Xf,testId:`fill-cross-hatch`},{value:`solid`,text:W(`labels.solid`),icon:Zf,testId:`fill-solid`}],value:Ig(e,r,e=>e.fillStyle,e=>e.hasOwnProperty(`fillStyle`),e=>e?null:t.currentItemFillStyle),onClick:(e,t)=>{n(t.altKey&&e===`hachure`&&i.every(e=>e.fillStyle===`hachure`)?`zigzag`:e)}})})]})}});var Bg=e=>Gi.find(t=>tl(e.type,t)===e.strokeWidth)??null,Vg=(e,t)=>tl(e.type,t);Y({name:`changeStrokeWidth`,label:`labels.strokeWidth`,trackEvent:!1,perform:(e,t,n)=>(Jo(n,`actionChangeStrokeWidth: value must be defined`),{elements:Fg(e,t,e=>B(e,{strokeWidth:Vg(e,n)})),appState:{...t,currentItemStrokeWidthKey:n},captureUpdate:j.IMMEDIATELY}),PanelComponent:({elements:e,appState:t,updateData:n,app:r,data:i})=>(0,U.jsxs)(`fieldset`,{children:[(0,U.jsx)(`legend`,{children:W(`labels.strokeWidth`)}),(0,U.jsx)(`div`,{className:`buttonList`,children:(0,U.jsx)(oh,{group:`stroke-width`,options:[{value:`thin`,text:W(`labels.thin`),icon:Qf,testId:`strokeWidth-thin`},{value:`medium`,text:W(`labels.medium`),icon:$f,testId:`strokeWidth-medium`},{value:`bold`,text:W(`labels.bold`),icon:ep,testId:`strokeWidth-bold`}],value:Ig(e,r,Bg,e=>e.hasOwnProperty(`strokeWidth`),e=>e?null:t.currentItemStrokeWidthKey),onChange:e=>n(e)})})]})}),Y({name:`changeSloppiness`,label:`labels.sloppiness`,trackEvent:!1,perform:(e,t,n)=>({elements:Fg(e,t,e=>B(e,{seed:bo(),roughness:n})),appState:{...t,currentItemRoughness:n},captureUpdate:j.IMMEDIATELY}),PanelComponent:({elements:e,appState:t,updateData:n,app:r,data:i})=>(0,U.jsxs)(`fieldset`,{children:[(0,U.jsx)(`legend`,{children:W(`labels.sloppiness`)}),(0,U.jsx)(`div`,{className:`buttonList`,children:(0,U.jsx)(oh,{group:`sloppiness`,options:[{value:0,text:W(`labels.architect`),icon:rp},{value:1,text:W(`labels.artist`),icon:ip},{value:2,text:W(`labels.cartoonist`),icon:ap}],value:Ig(e,r,e=>e.roughness,e=>e.hasOwnProperty(`roughness`),e=>e?null:t.currentItemRoughness),onChange:e=>n(e)})})]})}),Y({name:`changeFreedrawMode`,label:`labels.pressure`,trackEvent:!1,perform:(e,t,n)=>{let r=n||`constant`;return{elements:Fg(e,t,e=>e.type===`freedraw`?B(e,{strokeOptions:{...e.strokeOptions,variability:r}}):e),appState:{...t,currentItemStrokeVariability:r},captureUpdate:j.IMMEDIATELY}},PanelComponent:({elements:e,appState:t,updateData:n,app:r,data:i})=>{let a=Ig(e,r,e=>e.strokeOptions?.variability,e=>e.type===`freedraw`,e=>e?null:t.currentItemStrokeVariability)??t.currentItemStrokeVariability;if(i?.cycle){let e=a===`variable`;return(0,U.jsx)(J,{type:`button`,icon:e?sp:op,title:W(`labels.pressure`),"aria-label":W(`labels.pressure`),onClick:()=>n(e?`constant`:`variable`)})}return(0,U.jsxs)(`fieldset`,{children:[(0,U.jsx)(`legend`,{children:W(`labels.pressure`)}),(0,U.jsx)(`div`,{className:`buttonList`,children:(0,U.jsx)(oh,{group:`strokeOptions.variability`,options:[{value:`constant`,text:W(`labels.pressure_constant`),icon:op},{value:`variable`,text:W(`labels.pressure_variable`),icon:sp}],value:a,onChange:e=>n(e)})})]})}}),Y({name:`changeStrokeStyle`,label:`labels.strokeStyle`,trackEvent:!1,perform:(e,t,n)=>({elements:Fg(e,t,e=>B(e,{strokeStyle:n})),appState:{...t,currentItemStrokeStyle:n},captureUpdate:j.IMMEDIATELY}),PanelComponent:({elements:e,appState:t,updateData:n,app:r,data:i})=>(0,U.jsxs)(`fieldset`,{children:[(0,U.jsx)(`legend`,{children:W(`labels.strokeStyle`)}),(0,U.jsx)(`div`,{className:`buttonList`,children:(0,U.jsx)(oh,{group:`strokeStyle`,options:[{value:`solid`,text:W(`labels.strokeStyle_solid`),icon:Qf},{value:`dashed`,text:W(`labels.strokeStyle_dashed`),icon:tp},{value:`dotted`,text:W(`labels.strokeStyle_dotted`),icon:np}],value:Ig(e,r,e=>e.strokeStyle,e=>e.hasOwnProperty(`strokeStyle`),e=>e?null:t.currentItemStrokeStyle),onChange:e=>n(e)})})]})}),Y({name:`changeOpacity`,label:`labels.opacity`,trackEvent:!1,perform:(e,t,n)=>({elements:Fg(e,t,e=>B(e,{opacity:n}),!0),appState:{...t,currentItemOpacity:n},captureUpdate:j.IMMEDIATELY}),PanelComponent:({elements:e,appState:t,app:n,updateData:r})=>{let i=Ig(e,n,e=>e.opacity,!0,e=>e?null:t.currentItemOpacity);return(0,U.jsx)(Mg,{label:W(`labels.opacity`),value:i??t.currentItemOpacity,hasCommonValue:i!==null,onChange:r,min:0,max:100,step:10,testId:`opacity`})}}),Y({name:`changeFontSize`,label:`labels.fontSize`,trackEvent:!1,perform:(e,t,n,r)=>Rg(e,t,r,()=>(Jo(n,`actionChangeFontSize: Expected a font size value`),n),n),PanelComponent:({elements:e,appState:t,updateData:n,app:r,data:i})=>{let{isCompact:a}=Pg(r);return(0,U.jsxs)(`fieldset`,{children:[(0,U.jsx)(`legend`,{children:W(`labels.fontSize`)}),(0,U.jsx)(`div`,{className:`buttonList`,children:(0,U.jsx)(oh,{group:`font-size`,options:[{value:ms.sm,text:W(`labels.small`),icon:Tp,testId:`fontSize-small`},{value:ms.md,text:W(`labels.medium`),icon:Ep,testId:`fontSize-medium`},{value:ms.lg,text:W(`labels.large`),icon:Dp,testId:`fontSize-large`},{value:ms.xl,text:W(`labels.veryLarge`),icon:Op,testId:`fontSize-veryLarge`}],value:Ig(e,r,e=>{if(I(e))return e.fontSize;let t=zo(e,r.scene.getNonDeletedElementsMap());return t?t.fontSize:null},e=>I(e)||zo(e,r.scene.getNonDeletedElementsMap())!==null,e=>e?null:t.currentItemFontSize||20),onChange:e=>{wh(()=>n(e),a,!!t.editingTextElement,i?.onPreventClose)}})})]})}});var Hg=Y({name:`decreaseFontSize`,label:`labels.decreaseFontSize`,icon:kp,trackEvent:!1,perform:(e,t,n,r)=>Rg(e,t,r,e=>Math.round(1/(1+Ng)*e.fontSize)),keyTest:e=>e[L.CTRL_OR_CMD]&&e.shiftKey&&(e.key===L.CHEVRON_LEFT||e.key===L.COMMA)}),Ug=Y({name:`increaseFontSize`,label:`labels.increaseFontSize`,icon:kp,trackEvent:!1,perform:(e,t,n,r)=>Rg(e,t,r,e=>Math.round(e.fontSize*(1+Ng))),keyTest:e=>e[L.CTRL_OR_CMD]&&e.shiftKey&&(e.key===L.CHEVRON_RIGHT||e.key===L.PERIOD)});Y({name:`changeFontFamily`,label:`labels.fontFamily`,trackEvent:!1,perform:(e,t,n,r)=>{let{cachedElements:i,resetAll:a,resetContainers:o,...s}=n;if(a)return{elements:Fg(e,t,e=>{let t=i?.get(e.id);return t?B(e,{...t}):e},!0),appState:{...t,...s},captureUpdate:j.NEVER};Jo(n,`actionChangeFontFamily: value must be defined`);let{currentItemFontFamily:c,currentHoveredFontFamily:l}=n,u=j.EVENTUALLY,d,f=!1;if(c)d=c,u=j.IMMEDIATELY;else if(l){d=l,u=j.EVENTUALLY;let n=Ls(e,t,{includeBoundTextElement:!0}).filter(e=>I(e));if(n.length>200)f=!0;else{let e=0,t=0;for(;e<n.length&&t<5e3;){let r=n[e];t+=r?.originalText.length||0,e++}t>5e3&&(f=!0)}}let p={appState:{...t,...s},captureUpdate:u};if(d&&!f){let n=new Map,a=new Set,s=!1,u=Array.from(Zn.loadedFontsCache.values()),f=Object.entries(As).find(([e,t])=>t===d)?.[0];l&&f&&u.some(e=>e.startsWith(f))&&(s=!0),Object.assign(p,{elements:Fg(e,t,e=>{if(I(e)&&(e.fontFamily!==d||c)){let t=B(e,{fontFamily:d,lineHeight:za(d)}),c=i?.get(e.containerId||``)||{},l=r.scene.getContainerElement(e);return o&&l&&c&&r.scene.mutateElement(l,{...c}),s||(a=new Set([...a,...Array.from(t.originalText)])),n.set(t,l),t}return e},!0)});let m=`10px ${pa({fontFamily:d})}`,h=Array.from(a.values()).join();if(s||window.document.fonts.check(m,h))for(let[e,t]of n)Ya(e,t,r.scene);else window.document.fonts.load(m,h).then(e=>{for(let[e,t]of n){let n=r.scene.getElement(e.id),i=t?r.scene.getElement(t.id):null;n&&Ya(n,i,r.scene)}r.fonts.onLoaded(e)})}return p},PanelComponent:({elements:e,appState:t,app:n,updateData:r})=>{let i=(0,V.useRef)(new Map),a=(0,V.useRef)(null),[o,s]=(0,V.useState)({}),c=(0,V.useRef)(!0),{stylesPanelMode:l,isCompact:u}=Pg(n),d=(0,V.useMemo)(()=>{let r=(e,r)=>Ig(e,n,e=>{if(I(e))return e.fontFamily;let t=zo(e,r);return t?t.fontFamily:null},e=>I(e)||zo(e,r)!==null,e=>e?null:t.currentItemFontFamily||mn);return o.openPopup===`fontFamily`&&t.openPopup===`fontFamily`?r(Array.from(i.current?.values()??[]),i.current):!o.openPopup&&t.openPopup!==`fontFamily`?r(e,n.scene.getNonDeletedElementsMap()):a.current},[o.openPopup,t,e,n]);return(0,V.useEffect)(()=>{a.current=d},[d]),(0,V.useEffect)(()=>{Object.keys(o).length&&(r(o),s({}))},[o]),(0,V.useEffect)(()=>(c.current=!1,()=>{c.current=!0}),[]),(0,U.jsxs)(U.Fragment,{children:[l===`full`&&(0,U.jsx)(`legend`,{children:W(`labels.fontFamily`)}),(0,U.jsx)(bg,{isOpened:t.openPopup===`fontFamily`,selectedFontFamily:d,hoveredFontFamily:t.currentHoveredFontFamily,compactMode:l!==`full`,onSelect:e=>{wh(()=>{s({openPopup:null,currentHoveredFontFamily:null,currentItemFontFamily:e}),i.current.clear()},u,!!t.editingTextElement)},onHover:e=>{s({currentHoveredFontFamily:e,cachedElements:new Map(i.current),resetContainers:!0})},onLeave:()=>{s({currentHoveredFontFamily:null,cachedElements:new Map(i.current),resetAll:!0})},onPopupChange:r=>{if(r){i.current.clear();let{editingTextElement:r}=t;if(r?.type===`text`){let e=n.scene.getElement(r.id);i.current.set(r.id,B(e||r,{},!0))}else{let n=Ls(e,t,{includeBoundTextElement:!0});for(let e of n)i.current.set(e.id,B(e,{},!0))}s({...o,openPopup:`fontFamily`})}else s({currentHoveredFontFamily:null,cachedElements:new Map(i.current),resetAll:!0}),i.current.clear(),u&&t.editingTextElement&&Ch(null)}})]})}}),Y({name:`changeTextAlign`,label:`Change text alignment`,trackEvent:!1,perform:(e,t,n,r)=>({elements:Fg(e,t,e=>{if(I(e)){let t=B(e,{textAlign:n});return Ya(t,r.scene.getContainerElement(e),r.scene),t}return e},!0),appState:{...t,currentItemTextAlign:n},captureUpdate:j.IMMEDIATELY}),PanelComponent:({elements:e,appState:t,updateData:n,app:r,data:i})=>{let a=r.scene.getNonDeletedElementsMap(),{isCompact:o}=Pg(r);return(0,U.jsxs)(`fieldset`,{children:[(0,U.jsx)(`legend`,{children:W(`labels.textAlign`)}),(0,U.jsx)(`div`,{className:`buttonList`,children:(0,U.jsx)(oh,{group:`text-align`,options:[{value:`left`,text:W(`labels.left`),icon:Pp,testId:`align-left`},{value:`center`,text:W(`labels.center`),icon:Fp,testId:`align-horizontal-center`},{value:`right`,text:W(`labels.right`),icon:Ip,testId:`align-right`}],value:Ig(e,r,e=>{if(I(e))return e.textAlign;let t=zo(e,a);return t?t.textAlign:null},e=>I(e)||zo(e,a)!==null,e=>e?null:t.currentItemTextAlign),onChange:e=>{wh(()=>n(e),o,!!t.editingTextElement,i?.onPreventClose)}})})]})}}),Y({name:`changeVerticalAlign`,label:`Change vertical alignment`,trackEvent:{category:`element`},perform:(e,t,n,r)=>({elements:Fg(e,t,e=>{if(I(e)){let t=B(e,{verticalAlign:n});return Ya(t,r.scene.getContainerElement(e),r.scene),t}return e},!0),appState:{...t},captureUpdate:j.IMMEDIATELY}),PanelComponent:({elements:e,appState:t,updateData:n,app:r,data:i})=>{let{isCompact:a}=Pg(r);return(0,U.jsx)(`fieldset`,{children:(0,U.jsx)(`div`,{className:`buttonList`,children:(0,U.jsx)(oh,{group:`text-align`,options:[{value:je.TOP,text:W(`labels.alignTop`),icon:(0,U.jsx)(Lp,{theme:t.theme}),testId:`align-top`},{value:je.MIDDLE,text:W(`labels.centerVertically`),icon:(0,U.jsx)(zp,{theme:t.theme}),testId:`align-middle`},{value:je.BOTTOM,text:W(`labels.alignBottom`),icon:(0,U.jsx)(Rp,{theme:t.theme}),testId:`align-bottom`}],value:Ig(e,r,e=>{if(I(e)&&e.containerId)return e.verticalAlign;let t=zo(e,r.scene.getNonDeletedElementsMap());return t?t.verticalAlign:null},e=>I(e)||zo(e,r.scene.getNonDeletedElementsMap())!==null,e=>e?null:je.MIDDLE),onChange:e=>{wh(()=>n(e),a,!!t.editingTextElement,i?.onPreventClose)}})})})}}),Y({name:`changeRoundness`,label:`Change edge roundness`,trackEvent:!1,perform:(e,t,n)=>({elements:Fg(e,t,e=>Ke(e)?e:B(e,{roundness:n===`round`?{type:Rt(e.type)?Ta.ADAPTIVE_RADIUS:Ta.PROPORTIONAL_RADIUS}:null})),appState:{...t,currentItemRoundness:n},captureUpdate:j.IMMEDIATELY}),PanelComponent:({elements:e,appState:t,updateData:n,app:r,renderAction:i})=>{let a=jc(A(e),t).some(e=>e.roundness?.type===Ta.LEGACY);return(0,U.jsxs)(`fieldset`,{children:[(0,U.jsx)(`legend`,{children:W(`labels.edges`)}),(0,U.jsxs)(`div`,{className:`buttonList`,children:[(0,U.jsx)(oh,{group:`edges`,options:[{value:`sharp`,text:W(`labels.sharp`),icon:cp},{value:`round`,text:W(`labels.round`),icon:lp}],value:Ig(e,r,e=>a?null:e.roundness?`round`:`sharp`,e=>!wo(e)&&e.hasOwnProperty(`roundness`),e=>e?null:t.currentItemRoundness),onChange:e=>n(e)}),i(`togglePolygon`)]})]})}});var Wg=e=>({visibleSections:[{name:`default`,options:[{value:null,text:W(`labels.arrowhead_none`),keyBinding:`q`,icon:(0,U.jsx)(up,{flip:e})},{value:`arrow`,text:W(`labels.arrowhead_arrow`),keyBinding:`w`,icon:(0,U.jsx)(dp,{flip:e})},{value:`triangle`,text:W(`labels.arrowhead_triangle`),icon:(0,U.jsx)(fp,{flip:e}),keyBinding:`e`},{value:`triangle_outline`,text:W(`labels.arrowhead_triangle_outline`),icon:(0,U.jsx)(pp,{flip:e}),keyBinding:`r`}]}],hiddenSections:[{name:`default`,options:[{value:`circle`,text:W(`labels.arrowhead_circle`),keyBinding:`a`,icon:(0,U.jsx)(mp,{flip:e})},{value:`circle_outline`,text:W(`labels.arrowhead_circle_outline`),keyBinding:`s`,icon:(0,U.jsx)(hp,{flip:e})},{value:`diamond`,text:W(`labels.arrowhead_diamond`),icon:(0,U.jsx)(gp,{flip:e}),keyBinding:`d`},{value:`diamond_outline`,text:W(`labels.arrowhead_diamond_outline`),icon:(0,U.jsx)(_p,{flip:e}),keyBinding:`f`},{value:`bar`,text:W(`labels.arrowhead_bar`),keyBinding:`z`,icon:(0,U.jsx)(vp,{flip:e})}]},{name:W(`labels.cardinality`),options:[{value:`cardinality_one`,text:W(`labels.arrowhead_cardinality_one`),icon:(0,U.jsx)(yp,{flip:e}),keyBinding:`x`},{value:`cardinality_many`,text:W(`labels.arrowhead_cardinality_many`),icon:(0,U.jsx)(bp,{flip:e}),keyBinding:`c`},{value:`cardinality_one_or_many`,text:W(`labels.arrowhead_cardinality_one_or_many`),icon:(0,U.jsx)(xp,{flip:e}),keyBinding:`v`},{value:`cardinality_exactly_one`,text:W(`labels.arrowhead_cardinality_exactly_one`),icon:(0,U.jsx)(Sp,{flip:e}),keyBinding:null},{value:`cardinality_zero_or_one`,text:W(`labels.arrowhead_cardinality_zero_or_one`),icon:(0,U.jsx)(Cp,{flip:e}),keyBinding:null},{value:`cardinality_zero_or_many`,text:W(`labels.arrowhead_cardinality_zero_or_many`),icon:(0,U.jsx)(wp,{flip:e}),keyBinding:null}]}]});Y({name:`changeArrowhead`,label:`Change arrowheads`,trackEvent:!1,perform:(e,t,n)=>(Jo(n,`actionChangeArrowhead: value must be defined`),{elements:Fg(e,t,e=>{if(Zo(e)){let{position:t,type:r}=n;if(t===`start`)return B(e,{startArrowhead:r});if(t===`end`)return B(e,{endArrowhead:r})}return e}),appState:{...t,[n.position===`start`?`currentItemStartArrowhead`:`currentItemEndArrowhead`]:n.type},captureUpdate:j.IMMEDIATELY}),PanelComponent:({elements:e,appState:t,updateData:n,app:r})=>{let i=yd().rtl,a=(0,V.useMemo)(()=>Wg(!i),[i]),o=(0,V.useMemo)(()=>Wg(!!i),[i]);return(0,U.jsxs)(`fieldset`,{children:[(0,U.jsx)(`legend`,{children:W(`labels.arrowheads`)}),(0,U.jsxs)(`div`,{className:`iconSelectList buttonList`,children:[(0,U.jsx)(jg,{visibleSections:a.visibleSections,hiddenSections:a.hiddenSections,label:`arrowhead_start`,value:Ig(e,r,e=>Zo(e)&&Ea(e.type)?Wi(e.startArrowhead):t.currentItemStartArrowhead,!0,e=>e?null:t.currentItemStartArrowhead),onChange:e=>n({position:`start`,type:e})}),(0,U.jsx)(jg,{visibleSections:o.visibleSections,hiddenSections:o.hiddenSections,label:`arrowhead_end`,value:Ig(e,r,e=>Zo(e)&&Ea(e.type)?Wi(e.endArrowhead):t.currentItemEndArrowhead,!0,e=>e?null:t.currentItemEndArrowhead),onChange:e=>n({position:`end`,type:e})})]})]})}}),Y({name:`changeArrowProperties`,label:`Change arrow properties`,trackEvent:!1,perform:(e,t,n,r)=>!1,PanelComponent:({elements:e,appState:t,updateData:n,app:r,renderAction:i})=>(0,U.jsxs)(`div`,{className:`selected-shape-actions`,children:[i(`changeArrowhead`),i(`changeArrowType`)]})}),Y({name:`changeArrowType`,label:`Change arrow types`,trackEvent:!1,perform:(e,t,n,r)=>{let i=Fg(e,t,e=>{if(!wo(e))return e;let i=r.scene.getNonDeletedElementsMap(),a=N.getPointAtIndexGlobalCoordinates(e,0,i),o=N.getPointAtIndexGlobalCoordinates(e,-1,i),s=B(e,{x:n===Ca.elbow?a[0]:e.x,y:n===Ca.elbow?a[1]:e.y,roundness:n===Ca.round?{type:Ta.PROPORTIONAL_RADIUS}:null,elbowed:n===Ca.elbow,angle:n===Ca.elbow?0:e.angle,points:n===Ca.elbow||e.elbowed?[N.pointFromAbsoluteCoords({...e,x:a[0],y:a[1],angle:0},a,i),N.pointFromAbsoluteCoords({...e,x:a[0],y:a[1],angle:0},o,i)]:e.points});if(Ke(s)){s.fixedSegments=null;let e=r.scene.getNonDeletedElementsMap();r.dismissLinearEditor();let n=N.getPointAtIndexGlobalCoordinates(s,0,e),i=N.getPointAtIndexGlobalCoordinates(s,-1,e),a=s.startBinding&&e.get(s.startBinding.elementId),o=s.endBinding&&e.get(s.endBinding.elementId),c=a&&s.startBinding?{...s.startBinding,...No(s,a,`start`,e,t.isBindingEnabled)}:null,l=o&&s.endBinding?{...s.endBinding,...No(s,o,`end`,e,t.isBindingEnabled)}:null;s={...s,startBinding:c,endBinding:l,...vt(s,e,{points:[n,i].map(e=>O(e[0]-s.x,e[1]-s.y)),startBinding:c,endBinding:l,fixedSegments:null})}}else{let e=r.scene.getNonDeletedElementsMap();if(s.startBinding){let n=e.get(s.startBinding.elementId);n&&Mr(s,n,t.bindMode===`inside`?`inside`:`orbit`,`start`,r.scene)}if(s.endBinding){let n=e.get(s.endBinding.elementId);n&&Mr(s,n,t.bindMode===`inside`?`inside`:`orbit`,`end`,r.scene)}}return s}),a={...t,currentItemArrowType:n},o=t.selectedLinearElement?.elementId;if(o){let t=i.find(e=>e.id===o);t&&(a.selectedLinearElement=new N(t,k(e)))}return{elements:i,appState:a,captureUpdate:j.IMMEDIATELY}},PanelComponent:({elements:e,appState:t,updateData:n,app:r})=>(0,U.jsxs)(`fieldset`,{children:[(0,U.jsx)(`legend`,{children:W(`labels.arrowtypes`)}),(0,U.jsx)(`div`,{className:`buttonList`,children:(0,U.jsx)(oh,{group:`arrowtypes`,options:[{value:Ca.sharp,text:W(`labels.arrowtype_sharp`),icon:Am,testId:`sharp-arrow`},{value:Ca.round,text:W(`labels.arrowtype_round`),icon:Mm,testId:`round-arrow`},{value:Ca.elbow,text:W(`labels.arrowtype_elbowed`),icon:jm,testId:`elbow-arrow`}],value:Ig(e,r,e=>wo(e)?e.elbowed?Ca.elbow:e.roundness?Ca.round:Ca.sharp:null,e=>wo(e),e=>e?null:t.currentItemArrowType),onChange:e=>n(e)})})]})});var Gg=()=>{let e=document.querySelector(`.excalidraw-tooltip`);if(e)return e;let t=document.createElement(`div`);return document.body.appendChild(t),t.classList.add(`excalidraw-tooltip`),t},Kg=(e,t,n=`bottom`)=>{let r=e.getBoundingClientRect(),i=window.innerWidth,a=window.innerHeight,o=t.left+t.width/2-r.width/2;o<0?o=5:o+r.width>=i&&(o=i-r.width-5);let s;n===`bottom`?(s=t.top+t.height+5,s+r.height>=a&&(s=t.top-r.height-5)):(s=t.top-r.height-5,s<0&&(s=t.top+t.height+5)),Object.assign(e.style,{top:`${s}px`,left:`${o}px`})},qg=(e,t,n,r)=>{t.classList.add(`excalidraw-tooltip--visible`),t.style.minWidth=r?`50ch`:`10ch`,t.style.maxWidth=r?`50ch`:`15ch`,t.textContent=n,Kg(t,e.getBoundingClientRect())},Jg=({children:e,label:t,long:n=!1,style:r,disabled:i})=>((0,V.useEffect)(()=>()=>Gg().classList.remove(`excalidraw-tooltip--visible`),[]),i?null:(0,U.jsx)(`div`,{className:`excalidraw-tooltip-wrapper`,onPointerEnter:e=>qg(e.currentTarget,Gg(),t,n),onPointerLeave:()=>Gg().classList.remove(`excalidraw-tooltip--visible`),style:r,children:e})),Yg=(e,t)=>typeof t==`function`?t(e):Array.isArray(t)?e:e[t],Xg=(e,t,n)=>{if(e?.isDestroyed)return;let r=e?.getAppState();if(!r){if(!n)return;console.warn(`useAppStateValue: excalidrawAPI not defined yet for internal component while it should always be defined. Are you sure you're rendering inside of <Excalidraw/> component tree?`),r=Object.assign({width:0,height:0,offsetLeft:0,offsetTop:0},si())}return Yg(r,t)};function Zg(e,t=!0){let n=mN(),[,r]=(0,V.useState)(0),i=(0,V.useRef)(null);return i.current||={selector:e,isInitialized:!!n,latestValue:Xg(n,e,t)},i.current.selector=e,!i.current.isInitialized&&n&&!n.isDestroyed&&(i.current.isInitialized=!0,i.current.latestValue=Xg(n,e,t)),(0,V.useEffect)(()=>{let e=i.current;if(!(!n||n.isDestroyed||!e))return n.onStateChange(e.selector,t=>{e.latestValue=t,r(e=>e+1)})},[n]),i.current.latestValue}function Qg(e,t){let n=mN(),r=(0,V.useRef)({selector:e,callback:t});r.current.selector=e,r.current.callback=t,(0,V.useEffect)(()=>{if(!(!n||n.isDestroyed))return r.current.callback(Xg(n,r.current.selector,!0),n.getAppState()),n.onStateChange(r.current.selector,(e,t)=>{r.current.callback(e,t)})},[n])}Y({name:`changeViewBackgroundColor`,label:`labels.canvasBackground`,trackEvent:!1,predicate:(e,t,n,r)=>!!r.props.UIOptions.canvasActions.changeViewBackgroundColor&&!t.viewModeEnabled,perform:(e,t,n)=>({appState:{...t,...n},captureUpdate:n?.viewBackgroundColor?j.IMMEDIATELY:j.EVENTUALLY}),PanelComponent:({elements:e,appState:t,updateData:n,appProps:r,data:i})=>(0,U.jsx)(eg,{palette:null,topPicks:Ye,label:W(`labels.canvasBackground`),type:`canvasBackground`,color:t.viewBackgroundColor,onChange:e=>n({viewBackgroundColor:e}),"data-testid":`canvas-background-picker`,elements:e,appState:t,updateData:n})});var $g=Y({name:`clearCanvas`,label:`labels.clearCanvas`,icon:ef,trackEvent:{category:`canvas`},predicate:(e,t,n,r)=>!!r.props.UIOptions.canvasActions.clearCanvas&&!t.viewModeEnabled&&t.openDialog?.name!==`elementLinkSelector`,perform:(e,t,n,r)=>(r.imageCache.clear(),{elements:e.map(e=>B(e,{isDeleted:!0})),appState:{...si(),files:{},theme:t.theme,penMode:t.penMode,penDetected:t.penDetected,exportBackground:t.exportBackground,exportEmbedScene:t.exportEmbedScene,gridSize:t.gridSize,gridStep:t.gridStep,gridModeEnabled:t.gridModeEnabled,stats:t.stats,colorTopPicks:t.colorTopPicks,activeTool:t.activeTool.type===`image`?{...t.activeTool,type:r.state.preferredSelectionTool.type}:t.activeTool},captureUpdate:j.IMMEDIATELY})}),e_=Y({name:`zoomIn`,label:`buttons.zoomIn`,viewMode:!0,navigation:!0,icon:Zd,trackEvent:{category:`canvas`},predicate:(e,t,n,r)=>r.isNavigationEnabled(),perform:(e,t,n,r)=>(r.requestUnfollow(),{appState:{...t,...ha({viewportX:t.width/2+t.offsetLeft,viewportY:t.height/2+t.offsetTop,nextZoom:Qi(t.zoom.value+Rn)},t)},captureUpdate:j.EVENTUALLY}),PanelComponent:({updateData:e})=>{let t=Zg(e=>e.zoom.value);return(0,U.jsx)(J,{type:`button`,className:`zoom-in-button zoom-button`,icon:Zd,title:`${W(`buttons.zoomIn`)} \u2014 ${X(`CtrlOrCmd++`)}`,"aria-label":W(`buttons.zoomIn`),disabled:t>=30,onClick:()=>{e(null)}})},keyTest:e=>(e.code===M.EQUAL||e.code===M.NUM_ADD)&&(e[L.CTRL_OR_CMD]||e.shiftKey)}),t_=Y({name:`zoomOut`,label:`buttons.zoomOut`,icon:Qd,viewMode:!0,navigation:!0,trackEvent:{category:`canvas`},predicate:(e,t,n,r)=>r.isNavigationEnabled(),perform:(e,t,n,r)=>(r.requestUnfollow(),{appState:{...t,...ha({viewportX:t.width/2+t.offsetLeft,viewportY:t.height/2+t.offsetTop,nextZoom:Qi(t.zoom.value-Rn)},t)},captureUpdate:j.EVENTUALLY}),PanelComponent:({updateData:e})=>{let t=Zg(e=>e.zoom.value);return(0,U.jsx)(J,{type:`button`,className:`zoom-out-button zoom-button`,icon:Qd,title:`${W(`buttons.zoomOut`)} \u2014 ${X(`CtrlOrCmd+-`)}`,"aria-label":W(`buttons.zoomOut`),disabled:t<=Os,onClick:()=>{e(null)}})},keyTest:e=>(e.code===M.MINUS||e.code===M.NUM_SUBTRACT)&&(e[L.CTRL_OR_CMD]||e.shiftKey)}),n_=Y({name:`resetZoom`,label:`buttons.resetZoom`,icon:$d,viewMode:!0,navigation:!0,trackEvent:{category:`canvas`},predicate:(e,t,n,r)=>r.isNavigationEnabled(),perform:(e,t,n,r)=>{r.requestUnfollow();let i=t.scrollConstraints?.lockZoom?t.scrollConstraints.zoom:1;return{appState:{...t,...ha({viewportX:t.width/2+t.offsetLeft,viewportY:t.height/2+t.offsetTop,nextZoom:Qi(i)},t)},captureUpdate:j.EVENTUALLY}},PanelComponent:({updateData:e})=>{let t=Zg(e=>e.zoom.value);return(0,U.jsx)(Jg,{label:W(`buttons.resetZoom`),style:{height:`100%`},children:(0,U.jsxs)(J,{type:`button`,className:`reset-zoom-button zoom-button`,title:W(`buttons.resetZoom`),"aria-label":W(`buttons.resetZoom`),onClick:()=>{e(null)},children:[(t*100).toFixed(0),`%`]})})},keyTest:e=>(e.code===M.ZERO||e.code===M.NUM_ZERO)&&(e[L.CTRL_OR_CMD]||e.shiftKey)}),r_=e=>[e.x,e.y,e.x+e.width,e.y+e.height];Y({name:`zoomToFitSelectionInViewport`,label:`labels.zoomToFitViewport`,icon:xm,viewMode:!0,navigation:!0,trackEvent:{category:`canvas`},predicate:(e,t,n,r)=>r.isNavigationEnabled(),perform:(e,t,n,r)=>{r.requestUnfollow();let i=r.scene.getSelectedElements(t),a=Ui({bounds:i.length?bc(A(i)):t.scrollConstraints?r_(t.scrollConstraints):bc(A(e)),appState:t,fit:`scale-down`,canvasOffsets:r.viewport.getOffsets()});return{...a,appState:{...a.appState,...$c(a.appState)}}},keyTest:e=>e.code===M.TWO&&e.shiftKey&&!e.altKey&&!e[L.CTRL_OR_CMD]}),Y({name:`zoomToFitSelection`,label:`helpDialog.zoomToSelection`,icon:xm,viewMode:!0,navigation:!0,trackEvent:{category:`canvas`},predicate:(e,t,n,r)=>r.isNavigationEnabled(),perform:(e,t,n,r)=>{r.requestUnfollow();let i=r.scene.getSelectedElements(t),a=Ui({bounds:i.length?bc(A(i)):t.scrollConstraints?r_(t.scrollConstraints):bc(A(e)),appState:t,fit:`contain`,canvasOffsets:r.viewport.getOffsets()});return{...a,appState:{...a.appState,...$c(a.appState)}}},keyTest:e=>e.code===M.THREE&&e.shiftKey&&!e.altKey&&!e[L.CTRL_OR_CMD]}),Y({name:`zoomToFit`,label:`helpDialog.zoomToFit`,icon:xm,viewMode:!0,navigation:!0,trackEvent:{category:`canvas`},predicate:(e,t,n,r)=>r.isNavigationEnabled(),perform:(e,t,n,r)=>{r.requestUnfollow();let i=Ui({bounds:t.scrollConstraints?r_(t.scrollConstraints):bc(A(e)),appState:t,fit:`scale-down`,canvasOffsets:r.viewport.getOffsets()});return{...i,appState:{...i.appState,...$c(i.appState)}}},keyTest:e=>e.code===M.ONE&&e.shiftKey&&!e.altKey&&!e[L.CTRL_OR_CMD]});var i_=Y({name:`toggleTheme`,label:(e,t)=>t.theme===P.DARK?`buttons.lightMode`:`buttons.darkMode`,keywords:[`toggle`,`dark`,`light`,`mode`,`theme`],icon:(e,t)=>e.theme===P.LIGHT?rf:af,viewMode:!0,trackEvent:{category:`canvas`},perform:(e,t,n,r)=>{let i=n||(t.theme===P.LIGHT?P.DARK:P.LIGHT);return r.props.onThemeChange?(r.props.onThemeChange(i),!1):{appState:{...t,theme:i},captureUpdate:j.EVENTUALLY}},keyTest:e=>!e[L.CTRL_OR_CMD]&&e.altKey&&e.shiftKey&&e.code===M.D,predicate:(e,t,n,r)=>!!r.props.UIOptions.canvasActions.toggleTheme}),a_=({app:e,options:t,activeTool:n,defaultOption:r,"data-testid":i,onToolChange:a,displayedOption:o})=>{let[s,c]=(0,V.useState)(!1),l=n.type,u=o.type===l,{container:d}=lN();return!t.some(e=>e.type===l)&&s&&c(!1),(0,V.useEffect)(()=>{let t=e.onPointerDownEmitter.on(()=>{c(!1)});return()=>t?.()},[e]),(0,U.jsxs)(C,{open:s,children:[(0,U.jsx)(T,{asChild:!0,children:(0,U.jsx)(J,{className:H({fillable:o.fillable}),type:`toggle`,icon:o.icon,checked:u,disabled:t.every(t=>d_(e,t.type)),title:Mo(o.title),"aria-label":Mo(o.title),"data-testid":i,onSelect:()=>{c(e=>!e),a(r)}})}),(0,U.jsx)(x,{className:`tool-popover-content`,sideOffset:16,collisionBoundary:d??void 0,children:t.map(({type:t,icon:n,title:r,fillable:i})=>(0,U.jsx)(J,{className:H({fillable:i}),type:`toggle`,icon:n,checked:l===t,disabled:d_(e,t),title:Mo(t),"aria-label":Mo(t),"data-testid":`toolbar-${t}`,onSelect:()=>{e.state.activeTool.type!==t&&(ih(`toolbar`,t,`ui`),e.setActiveTool({type:t}),a?.(t))}},t))})]})},o_=(e=>e)({hand:{icon:Hp,letterKey:L.H,toggle:!0},selection:{icon:Rd,letterKey:L.V,numericKey:L[1],fillable:!0},rectangle:{icon:Bd,letterKey:L.R,numericKey:L[2],fillable:!0},diamond:{icon:Vd,letterKey:L.D,numericKey:L[3],fillable:!0},ellipse:{icon:Hd,letterKey:L.O,numericKey:L[4],fillable:!0},arrow:{icon:Ud,letterKey:L.A,numericKey:L[5],fillable:!0},line:{icon:Wd,letterKey:L.L,numericKey:L[6],fillable:!0},freedraw:{icon:Kd,letterKey:[L.P,L.X],numericKey:L[7]},text:{icon:qd,letterKey:L.T,numericKey:L[8]},image:{icon:Yd,numericKey:L[9]},eraser:{icon:Xd,letterKey:L.E,numericKey:L[0],toggle:!0},frame:{icon:Zp,letterKey:L.F},autoshape:{icon:nm,letterKey:L.X,shiftKey:!0,fillable:!1},embeddable:{icon:tf},laser:{icon:rm,letterKey:L.K},bucketfill:{icon:bf,letterKey:L.B},lasso:{icon:zd,fillable:!1}}),s_=Object.keys(o_).filter(e=>o_[e].toggle),c_=e=>{let{letterKey:t,shiftKey:n}=o_[e];if(!t)return t;let r=Mo(typeof t==`string`?t:t[0]);return n?X(`Shift+${r}`):r},l_=e=>{let t=c_(e),{numericKey:n}=o_[e];return t&&n!=null?`${t} ${W(`helpDialog.or`)} ${n}`:`${t||n}`},u_=(e,t,n=!1)=>{let r=e.toLowerCase();for(let i of Object.keys(o_)){let{letterKey:a,numericKey:o,shiftKey:s}=o_[i];if(n===!!s&&(o!=null&&e===o||a&&(typeof a==`string`?a===r:a.includes(r))))return i===`selection`?t.state.preferredSelectionTool.type:i}return null},d_=(e,t)=>e.props.activeTool!=null&&e.props.activeTool.type!==t,f_=(e,t)=>{let n=o_[e],r=t?.shortcutType??e,i=({app:i,activeTool:a,hideKeyBinding:o,hideShortcut:s})=>{let c=Mo(W(`toolBar.${e}`)),l=s?null:l_(r);return(0,U.jsx)(J,{className:H({fillable:n.fillable}),type:`toggle`,icon:n.icon,checked:a.type===e,disabled:d_(i,e),title:l?`${c} \u2014 ${l}`:c,keyBindingLabel:o||s?void 0:o_[r].numericKey||c_(r),"aria-label":c,"aria-keyshortcuts":l??void 0,"data-testid":`toolbar-${e}`,onSelect:({pointerType:n})=>{if(!i.state.penDetected&&n===`pen`&&i.togglePenMode(!0),t?.onSelect){t.onSelect(i,{pointerType:n});return}i.state.activeTool.type!==e&&(ih(`toolbar`,e,`ui`),i.setActiveTool({type:e}))}})};return i.displayName=`${Mo(e)}IconButton`,i},p_=f_(`hand`),m_=f_(`rectangle`),h_=f_(`diamond`),g_=f_(`ellipse`),__=f_(`arrow`),v_=f_(`line`),y_=f_(`freedraw`),b_=f_(`text`),x_=f_(`image`),S_=f_(`eraser`),C_=f_(`frame`),w_=f_(`selection`,{onSelect:(e,{pointerType:t})=>{if(e.state.activeTool.type===`selection`&&t!==null){e.setActiveTool({type:`lasso`});return}e.state.activeTool.type!==`selection`&&(ih(`toolbar`,`selection`,`ui`),e.setActiveTool({type:`selection`}))}}),T_=f_(`lasso`,{shortcutType:`selection`}),E_=({app:e,activeTool:t,setAppState:n})=>{let r=[{type:`selection`,icon:o_.selection.icon,fillable:o_.selection.fillable,title:Mo(W(`toolBar.selection`))},{type:`lasso`,icon:o_.lasso.icon,fillable:o_.lasso.fillable,title:Mo(W(`toolBar.lasso`))}],i=r.find(t=>t.type===e.state.preferredSelectionTool.type)||r[0];return(0,U.jsx)(a_,{app:e,options:r,activeTool:t,defaultOption:e.state.preferredSelectionTool.type,"data-testid":`toolbar-selection`,onToolChange:t=>{(t===`selection`||t===`lasso`)&&(e.setActiveTool({type:t}),n({preferredSelectionTool:{type:t,initialized:!0}}))},displayedOption:i})},D_=({app:e,activeTool:t})=>{let n=[{type:`freedraw`,icon:o_.freedraw.icon,fillable:o_.freedraw.fillable,title:Mo(W(`toolBar.freedraw`))},{type:`autoshape`,icon:o_.autoshape.icon,fillable:o_.autoshape.fillable,title:Mo(W(`toolBar.autoshape`))}],[r,i]=(0,V.useState)(t.type===`autoshape`?`autoshape`:`freedraw`);return(0,V.useEffect)(()=>{(t.type===`freedraw`||t.type===`autoshape`)&&i(t.type)},[t.type]),(0,U.jsx)(a_,{app:e,options:n,activeTool:t,defaultOption:r,"data-testid":`toolbar-freedraw`,onToolChange:t=>{(t===`freedraw`||t===`autoshape`)&&(i(t),e.setActiveTool({type:t}))},displayedOption:n.find(e=>e.type===r)||n[0]})},O_=Y({name:`finalize`,label:``,trackEvent:!1,perform:(e,t,n,r)=>{let i=!0,a=e,{focusContainer:o,scene:s}=r,c=s.getNonDeletedElementsMap(),l=t.activeTool.type===`autoshape`;if(n&&t.selectedLinearElement){let{event:i,sceneCoords:o}=n,u=N.getElement(t.selectedLinearElement.elementId,c);Jo(u,`Arrow element should exist if selectedLinearElement is set`),Jo(o,`sceneCoords should be defined if actionFinalize is called with event`);let d=N.handlePointerUp(i,t.selectedLinearElement,t,r.scene);if(xi(u)&&!t.selectedLinearElement.segmentMidPointHoveredCoords){let e=!!t.newElement,n=e||!t.selectedLinearElement.selectedPointsIndices?[u.points.length-1]:t.selectedLinearElement.selectedPointsIndices,a=Yc(i),l=i[L.CTRL_OR_CMD]?null:r.getEffectiveGridSize();sn(u,n.reduce((e,t)=>(e.set(t,{point:a?u.points[t]:N.createPointAt(u,c,o.x-d.pointerOffset.x,o.y-d.pointerOffset.y,l)}),e),new Map)??new Map,o.x,o.y,s,t,{newArrow:e,altKey:i.altKey,angleLocked:a,gridSize:r.getEffectiveGridSize()})}else ft(u)&&t.selectedLinearElement?.isEditing&&!t.newElement&&!We(u.points)&&s.mutateElement(u,{polygon:!1});if(d!==t.selectedLinearElement){u&&ys(u)&&(a=a.map(e=>e.id===u.id?B(e,{isDeleted:!0}):e));let n=t.activeTool?.locked;return{elements:u.points.length<2||ys(u)?e.map(e=>e.id===u.id?B(e,{isDeleted:!0}):e):a,appState:{...t,cursorButton:`up`,selectedElementIds:l?{}:t.selectedElementIds,selectedLinearElement:n||l?null:{...d,selectedPointsIndices:null,isEditing:!1,initialState:{...d.initialState,lastClickedPoint:-1},pointerOffset:{x:0,y:0}},selectionElement:null,suggestedBinding:null,hoveredArrowTextAnchor:null,newElement:null,multiElement:null},captureUpdate:j.IMMEDIATELY}}}window.document.activeElement instanceof HTMLElement&&o();let u=r.drawShape.hasPendingGesture();(u||l)&&(r.drawShape.finalize(),u&&(a=r.scene.getElementsIncludingDeleted()));let d=null;if(t.multiElement)d=t.multiElement;else if(!l&&!u&&(t.newElement?.type===`freedraw`||xi(t.newElement)))d=t.newElement;else if(Object.keys(t.selectedElementIds).length===1){let e=c.get(Object.keys(t.selectedElementIds)[0]);e&&(d=e)}if(d){if(t.selectedLinearElement&&t.multiElement&&d.type!==`freedraw`&&t.lastPointerDownWith!==`touch`){let{points:e}=d,{lastCommittedPoint:n}=t.selectedLinearElement;if((!n||e[e.length-1]!==n)&&(i=!1,s.mutateElement(d,{points:d.points.slice(0,-1)}),xi(d)&&d.endBinding&&d.points.length>1)){let e=!!t.newElement,n=new Map([[d.points.length-1,{point:d.points[d.points.length-1],isDragging:!1}]]),r=N.getPointAtIndexGlobalCoordinates(d,-1,c);sn(d,n,r[0],r[1],s,t,{newArrow:e})}}if(d&&ys(d)&&(a=a.map(e=>e.id===d?.id?B(e,{isDeleted:!0}):e)),Zo(d)||uo(d)){if(Sc(d.points,t.zoom.value)&&(ft(d)||uo(d))){let e=d.points,t=e[0],n=e.map((n,r)=>r===e.length-1?O(t[0],t[1]):n);ft(d)?s.mutateElement(d,{points:n,polygon:!0}):s.mutateElement(d,{points:n})}ft(d)&&!We(d.points)&&s.mutateElement(d,{polygon:!1})}}let f;f=s_.includes(t.activeTool.type)?ji(t,{...t.activeTool.lastActiveTool||{type:r.state.preferredSelectionTool.type},lastActiveTool:null}):ji(t,{type:r.state.preferredSelectionTool.type});let p=r.isToolLocked(),m=t.activeTool.type===`autoshape`||(p||t.activeTool.type===`freedraw`)&&!!d;m||r.cursor.applyForTool(f);let h=d&&Zo(d)?new N(d,k(a)):t.selectedLinearElement;return h&&={...h,isEditing:t.newElement?!1:h.isEditing,initialState:{...h.initialState,lastClickedPoint:-1,origin:null}},{elements:a,appState:{...t,cursorButton:`up`,activeTool:m?t.activeTool:f,activeEmbeddable:null,newElement:null,selectionElement:null,multiElement:null,editingTextElement:null,suggestedBinding:null,hoveredArrowTextAnchor:null,frameToHighlight:null,selectedElementIds:l?{}:d&&!p&&t.activeTool.type!==`freedraw`?{...t.selectedElementIds,[d.id]:!0}:t.selectedElementIds,selectedLinearElement:l?null:h},captureUpdate:i?j.IMMEDIATELY:j.NEVER}},keyTest:(e,t)=>e.key===L.ESCAPE&&t.selectedLinearElement?.isEditing||(e.key===L.ESCAPE||e.key===L.ENTER)&&t.multiElement!==null,PanelComponent:({appState:e,updateData:t,data:n})=>(0,U.jsx)(J,{type:`button`,icon:wf,title:W(`buttons.done`),"aria-label":W(`buttons.done`),onClick:t,visible:e.multiElement!=null,size:n?.size||`medium`,style:{pointerEvents:`all`}})}),k_=(e,t)=>s_.includes(e.activeTool.type)?ji(e,{...e.activeTool.lastActiveTool||{type:t.state.preferredSelectionTool.type},lastActiveTool:null}):ji(e,{type:t.state.preferredSelectionTool.type}),A_=(e,t,n)=>{if(!e.editingGroupId)return null;let r=t.scene.getNonDeletedElements(),i=t.scene.getSelectedElements({selectedElementIds:n,elements:r}),a=i.length?i:nn(r,e.editingGroupId);for(let t of a){let n=t.groupIds.indexOf(e.editingGroupId);if(n!==-1&&t.groupIds[n+1])return t.groupIds[n+1]}return null};Y({name:`deselect`,label:``,trackEvent:!1,perform:(e,t,n,r)=>{let i=k_(t,r);if(r.cursor.applyForTool(i),t.editingGroupId){let e=r.scene.getNonDeletedElements(),n=Object.keys(t.selectedElementIds).length>0?t.selectedElementIds:nn(e,t.editingGroupId).reduce((e,t)=>(e[t.id]=!0,e),{});return{appState:{...t,...ks({editingGroupId:A_(t,r,n),selectedElementIds:n},e,t,r),activeEmbeddable:null,activeTool:i,selectedLinearElement:null,selectionElement:null,showHyperlinkPopup:!1,suggestedBinding:null,hoveredArrowTextAnchor:null,frameToHighlight:null},captureUpdate:j.IMMEDIATELY}}return{appState:{...t,activeEmbeddable:null,activeTool:i,editingGroupId:null,selectedElementIds:Bi({},t),selectedGroupIds:{},selectedLinearElement:null,selectionElement:null,showHyperlinkPopup:!1,suggestedBinding:null,hoveredArrowTextAnchor:null,frameToHighlight:null},captureUpdate:j.IMMEDIATELY}},keyTest:(e,t,n,r)=>e.key!==L.ESCAPE||ot(e.target)?!1:!t.newElement&&t.multiElement===null&&!t.selectedLinearElement?.isEditing&&(t.activeEmbeddable!==null||t.activeTool.type!==r.state.preferredSelectionTool.type||!!t.editingGroupId||!!t.selectedLinearElement||wa(r.scene.getNonDeletedElements(),t))});var j_=({children:e,checked:t,onChange:n,className:r})=>(0,U.jsxs)(`div`,{className:H(`Checkbox`,r,{"is-checked":t}),onClick:e=>{n(!t,e),e.currentTarget.querySelector(`.Checkbox-box`).focus()},children:[(0,U.jsx)(`button`,{type:`button`,className:`Checkbox-box`,role:`checkbox`,"aria-checked":t,children:mf}),(0,U.jsx)(`div`,{className:`Checkbox-label`,children:e})]}),M_=e=>{let t=e.title||(e.value===P.DARK?W(`buttons.lightMode`):W(`buttons.darkMode`));return(0,U.jsx)(J,{type:`icon`,icon:e.value===P.LIGHT?N_.MOON:N_.SUN,title:t,"aria-label":t,onClick:()=>e.onChange(e.value===P.DARK?P.LIGHT:P.DARK),"data-testid":`toggle-dark-mode`})},N_={SUN:(0,U.jsx)(`svg`,{width:`512`,height:`512`,className:`rtl-mirror`,viewBox:`0 0 512 512`,children:(0,U.jsx)(`path`,{fill:`currentColor`,d:`M256 160c-52.9 0-96 43.1-96 96s43.1 96 96 96 96-43.1 96-96-43.1-96-96-96zm246.4 80.5l-94.7-47.3 33.5-100.4c4.5-13.6-8.4-26.5-21.9-21.9l-100.4 33.5-47.4-94.8c-6.4-12.8-24.6-12.8-31 0l-47.3 94.7L92.7 70.8c-13.6-4.5-26.5 8.4-21.9 21.9l33.5 100.4-94.7 47.4c-12.8 6.4-12.8 24.6 0 31l94.7 47.3-33.5 100.5c-4.5 13.6 8.4 26.5 21.9 21.9l100.4-33.5 47.3 94.7c6.4 12.8 24.6 12.8 31 0l47.3-94.7 100.4 33.5c13.6 4.5 26.5-8.4 21.9-21.9l-33.5-100.4 94.7-47.3c13-6.5 13-24.7.2-31.1zm-155.9 106c-49.9 49.9-131.1 49.9-181 0-49.9-49.9-49.9-131.1 0-181 49.9-49.9 131.1-49.9 181 0 49.9 49.9 49.9 131.1 0 181z`})}),MOON:(0,U.jsx)(`svg`,{width:`512`,height:`512`,className:`rtl-mirror`,viewBox:`0 0 512 512`,children:(0,U.jsx)(`path`,{fill:`currentColor`,d:`M283.211 512c78.962 0 151.079-35.925 198.857-94.792 7.068-8.708-.639-21.43-11.562-19.35-124.203 23.654-238.262-71.576-238.262-196.954 0-72.222 38.662-138.635 101.498-174.394 9.686-5.512 7.25-20.197-3.756-22.23A258.156 258.156 0 0 0 283.211 0c-141.309 0-256 114.511-256 256 0 141.309 114.511 256 256 256z`})})},P_=e=>{let{id:t}=lN(),[n,r]=(0,V.useState)(e.value);return(0,U.jsxs)(`div`,{className:`ProjectName`,children:[(0,U.jsx)(`label`,{className:`ProjectName-label`,htmlFor:`filename`,children:`${e.label}:`}),(0,U.jsx)(`input`,{type:`text`,className:`TextInput`,onBlur:t=>{e.ignoreFocus||es(t.target);let n=t.target.value;n!==e.value&&e.onChange(n)},onKeyDown:e=>{if(e.key===L.ENTER){if(e.preventDefault(),e.nativeEvent.isComposing||e.keyCode===229)return;e.currentTarget.blur()}},id:`${t}-filename`,value:n,onChange:e=>r(e.target.value)})]})},F_=5e3,I_=Object.assign(({message:e,onClose:t,closable:n=!1,duration:r=F_,style:i})=>{let a=(0,V.useRef)(0),o=r!==1/0,s=(0,V.useCallback)(()=>{o&&(a.current=window.setTimeout(()=>t(),r))},[t,r,o]);return(0,V.useEffect)(()=>{if(o)return s(),()=>clearTimeout(a.current)},[s,e,r,o]),(0,U.jsxs)(`div`,{className:`Toast`,role:`status`,onMouseEnter:o?()=>clearTimeout(a?.current):void 0,onMouseLeave:o?s:void 0,style:i,children:[(0,U.jsx)(`div`,{className:`Toast__message`,children:e}),n&&(0,U.jsx)(J,{icon:Gf,"aria-label":`close`,type:`icon`,onClick:t,className:`close`})]})},{ProgressBar:({progress:e})=>(0,U.jsx)(`div`,{className:`Toast__progress-bar`,children:(0,U.jsx)(`div`,{className:`Toast__progress-bar-fill`,style:{width:`${Math.min(5,Math.round(e*100))}%`}})})});`clipboard`in navigator&&`readText`in navigator.clipboard;var L_=`clipboard`in navigator&&`writeText`in navigator.clipboard,R_=`clipboard`in navigator&&`write`in navigator.clipboard&&`ClipboardItem`in window&&`toBlob`in HTMLCanvasElement.prototype,z_=e=>!!([zt.excalidraw,zt.excalidrawClipboard,zt.excalidrawClipboardWithAPI].includes(e?.type)&&Array.isArray(e.elements)),B_=({types:e,files:t})=>{!e&&!t&&console.warn(`createPasteEvent: no types or files provided`);let n=new ClipboardEvent(z.PASTE,{clipboardData:new DataTransfer});if(e)for(let[r,i]of Object.entries(e)){if(typeof i!=`string`){t||=[],t.push(i);continue}try{if(n.clipboardData?.items.add(i,r),n.clipboardData?.getData(r)!==i)throw Error(`Failed to set "${r}" as clipboardData item`)}catch(e){throw Error(e.message)}}if(t){let e=-1;for(let r of t){e++;try{if(n.clipboardData?.items.add(r),n.clipboardData?.files[e]!==r)throw Error(`Failed to set file "${r.name}" as clipboardData item`)}catch(e){throw Error(e.message)}}}return n},V_=({elements:e,files:t})=>{let n=k(e),r=new Set(e.filter(e=>F(e))),i=!1,a=e.reduce((e,n)=>(Bc(n)&&(i=!0,t&&t[n.fileId]&&(e[n.fileId]=t[n.fileId])),e),{});i&&!t&&console.warn("copyToClipboard: attempting to file element(s) without providing associated `files` object.");let o={type:zt.excalidrawClipboard,elements:e.map(e=>{if(wn(e,n)&&!r.has(wn(e,n))){let t=Ii(e);return Hr(t,n,{frameId:null}),t}return e}),files:t?a:void 0};return JSON.stringify(o)},H_=async(e,t,n)=>{let r=V_({elements:e,files:t});await ev({[R.excalidrawClipboard]:r,[R.text]:r},n)};function U_(e){let t=[];for(let n of e.childNodes)if(n.nodeType===3){let e=n.textContent?.trim();e&&t.push({type:`text`,value:e})}else if(n instanceof HTMLImageElement){let e=n.getAttribute(`src`);e&&e.startsWith(`http`)&&t.push({type:`imageUrl`,value:e})}else t=t.concat(U_(n));return t}var W_=e=>{let t=e.value;try{let e=U_(new DOMParser().parseFromString(t,R.html).body);if(e.length)return{type:`mixedContent`,value:e}}catch(e){console.error(`error in parseHTMLFromPaste: ${e.message}`)}return null},G_=async()=>{let e={},t;try{t=await navigator.clipboard?.read()}catch(t){try{if(navigator.clipboard?.readText){console.warn(`navigator.clipboard.readText() failed (${t.message}). Failling back to navigator.clipboard.read()`);let e=await navigator.clipboard?.readText();if(e)return{[R.text]:e}}}catch(t){if(navigator.clipboard?.read)console.warn(`navigator.clipboard.readText() failed (${t.message}). Failling back to navigator.clipboard.read()`);else{if(t.name===`DataError`)return console.warn(`navigator.clipboard.read() error, clipboard is probably empty: ${t.message}`),e;throw t}}throw t}for(let n of t)for(let t of n.types)if(ki(ei,t))try{if(t===R.text||t===R.html)e[t]=await(await n.getType(t)).text();else if(or(t))e[t]=Pt(await n.getType(t),t,void 0);else throw new ds(`Unsupported clipboard type: ${t}`)}catch(e){console.warn(e instanceof ds?e.message:`Cannot retrieve ${t} from clipboardItem: ${e.message}`)}return Object.keys(e).length===0&&console.warn(`No clipboard data found from clipboard.read().`),e},K_=async(e,t=!1)=>{try{let n=e.findByType(R.html),r=!t&&n&&W_(n);return r?r.value.every(e=>e.type===`text`)?{type:`text`,value:e.getData(R.text)??r.value.map(e=>e.value).join(`
3
3
  `).trim()}:r:{type:`text`,value:(e.getData(R.text)||``).trim()}}catch{return{type:`text`,value:``}}},q_=function(e){return this.find(t=>t.type===e)||null},J_=function(e){return this.find(t=>t.type===e)?.value??null},Y_=function(){return this.filter(e=>e.kind===`file`)},X_=e=>{let t;t=nv(e)?e.clipboardData?.items:e.dataTransfer?.items;let n=new Set;for(let e of Array.from(t||[]))n.has(e.type)||n.add(e.type);return n},Z_=async e=>{let t;t=nv(e)?e.clipboardData?.items:e.dataTransfer?.items;let n=(await Promise.all(Array.from(t||[]).map(async t=>{if(t.kind===`file`){let e=t.getAsFile();if(e){let n=await oe(t);return e=await Ha(e),{type:e.type,kind:`file`,file:e,fileHandle:n}}}else if(t.kind===`string`){let{type:n}=t,r;return r=`clipboardData`in e&&e.clipboardData?e.clipboardData?.getData(n):await new Promise(e=>{t.getAsString(t=>e(t))}),{type:n,kind:`string`,value:r}}return null}))).filter(e=>e!=null);return Object.assign(n,{findByType:q_,getData:J_,getFiles:Y_})},Q_=async(e,t=!1)=>{let n=await K_(e,t);if(n.type===`mixedContent`)return{mixedContent:n.value};try{let e=JSON.parse(n.value),r=e.type===zt.excalidrawClipboardWithAPI;if(z_(e))return{elements:e.elements,files:e.files,text:t?JSON.stringify(e.elements,null,2):void 0,programmaticAPI:r}}catch{}return{text:n.value}},$_=async e=>{try{await navigator.clipboard.write([new ClipboardItem({[R.png]:e})])}catch(t){if(kn(e))await navigator.clipboard.write([new ClipboardItem({[R.png]:await e})]);else throw t}},ev=async(e,t)=>{e||=``;let n=Object.entries(typeof e==`string`?{[R.text]:e}:e);try{if(t){for(let[e,r]of n)if(t.clipboardData?.setData(e,r),t.clipboardData?.getData(e)!==r)throw Error(`Failed to setData on clipboardEvent`);return}}catch(e){console.error(e)}let r=n.find(([e])=>e===R.text);if(L_&&r)try{await navigator.clipboard.writeText(r[1]);return}catch(e){console.error(e)}if(r&&!tv(r[1]))throw Error(`Error copying to clipboard.`)},tv=e=>{e||=` `;let t=document.documentElement.getAttribute(`dir`)===`rtl`,n=document.createElement(`textarea`);n.style.border=`0`,n.style.padding=`0`,n.style.margin=`0`,n.style.position=`absolute`,n.style[t?`right`:`left`]=`-9999px`;let r=window.pageYOffset||document.documentElement.scrollTop;n.style.top=`${r}px`,n.style.fontSize=`12pt`,n.setAttribute(`readonly`,``),n.value=e,document.body.appendChild(n);let i=!1;try{n.select(),n.setSelectionRange(0,n.value.length),i=document.execCommand(`copy`)}catch(e){console.error(e)}return n.remove(),i},nv=e=>e.type===z.PASTE||e.type===z.COPY||e.type===z.CUT,rv=(e,{selectedElementIds:t},n)=>{let r=A(e),i=k(r),a=n&&wa(r,{selectedElementIds:t}),o=null,s=a?Ls(r,{selectedElementIds:t},{includeBoundTextElement:!0}):r;if(a){let e=s[0];s.length===1&&F(e)?(o=e,s=wr(r,e,i)):s.length>1&&(s=Ls(r,{selectedElementIds:t},{includeBoundTextElement:!0,includeElementsInFrames:!0}))}return{exportingFrame:o,exportedElements:be(s)}},iv=async(e,t,n,i,{exportBackground:a,exportPadding:o=10,viewBackgroundColor:s,name:c=n.name||`Untitled`,fileHandle:l=null,exportingFrame:u=null})=>{if(t.length===0)throw Error(W(`alerts.cannotExportEmptyCanvas`));if(e===`svg`||e===`clipboard-svg`){let r=Ne(t,{exportBackground:a,exportWithDarkMode:n.exportWithDarkMode,viewBackgroundColor:s,exportPadding:o,exportScale:n.exportScale,exportEmbedScene:n.exportEmbedScene&&e===`svg`},i,{exportingFrame:u});if(e===`svg`)return mc(r.then(e=>new Blob([ir+e.outerHTML],{type:R.svg})),{description:`Export to SVG`,name:c,extension:n.exportEmbedScene?`excalidraw.svg`:`svg`,mimeTypes:[en.svg],fileHandle:l});if(e===`clipboard-svg`){let e=await r.then(e=>e.outerHTML);try{await ev(e)}catch{throw Error(W(`errors.copyToSystemClipboardFailed`))}return}}let d=cl(t,n,i,{exportBackground:a,viewBackgroundColor:s,exportPadding:o,exportingFrame:u});if(e===`png`){let e=Tt(d);return n.exportEmbedScene&&(e=e.then(e=>r(async()=>{let{encodePngMetadata:e}=await import(`./image-ZVKINSPA-CKM4b_n6.js`);return{encodePngMetadata:e}},__vite__mapDeps([62,63,2,64,65,1]),import.meta.url).then(({encodePngMetadata:r})=>r({blob:e,metadata:Pc(t,n,i,`local`)})))),mc(e,{description:`Export to PNG`,name:c,extension:n.exportEmbedScene?`excalidraw.png`:`png`,mimeTypes:[en.png],fileHandle:l})}else if(e===`clipboard`)try{await $_(Tt(d))}catch(e){throw console.warn(e),e.name===`CANVAS_POSSIBLY_TOO_BIG`?Error(W(`canvasError.canvasTooBig`)):un&&e.name===`TypeError`?Error(`${W(`alerts.couldNotCopyToClipboard`)}
4
4
 
@@ -19,7 +19,7 @@ ${W(`hints.firefox_clipboard_write`)}`):Error(W(`alerts.couldNotCopyToClipboard`
19
19
  `).filter(e=>e.trim().length>0).map(e=>e.split(t).map(e=>e.trim())),n=[` `,`,`,`;`].map(e=>{let n=t(e),r=n[0]?.length??0;return{delimiter:e,parsed:n,numCols:r,isConsistent:n.length>0&&n.every(e=>e.length===r)}}),r=(n.find(e=>e.isConsistent&&e.numCols>1)??n.find(e=>e.isConsistent)??n[0]).parsed;if(r.length===0)return{ok:!1,reason:`No values`};let i=r[0].length;return r.every(e=>e.length===i)?jE(r):{ok:!1,reason:`All rows don't have same number of columns`}},NE=(e,t,n,r)=>{if(!rE(e,`radar`))return null;let i=e.labels??e.series[0].values.map((e,t)=>`Value ${t+1}`),a=e.series,{normalize:o,renderSteps:s}=fE(a,i.length),c=uE(r),l=dE(c),u=lE(a.length,c),{chartWidth:d,chartHeight:f}=sE(),p=t+d/2,m=n-f/2,h=HT/2,g=i.map((e,t)=>-Math.PI/2+Math.PI*2*t/i.length),{axisLabels:_,axisLabelTopY:v,axisLabelBottomY:y}=hE(i,g,p,m,h,l),b=As[`Lilita One`],x=ms.xl,S=za(b),C=Ve({fontFamily:b,fontSize:x}),w=e.title?mE(e.title,C,d+GT*2):null,T=w?eo(w,C,S):null,E=w?Pe({backgroundColor:l,...eE,text:w,originalText:e.title??w,x:t+d/2,y:v-GT-T.height/2,fontFamily:b,fontSize:x,lineHeight:S,textAlign:`center`}):null,ee=s?Array.from({length:WT},(e,t)=>{let n=h*((t+1)/WT),r=g.map(e=>O(Math.cos(e)*n,Math.sin(e)*n));return r.push(O(r[0][0],r[0][1])),Re({backgroundColor:`transparent`,...eE,type:`line`,x:p,y:m,width:n*2,height:n*2,strokeStyle:`solid`,roughness:ja.architect,opacity:UT,polygon:!0,points:r})}):[],te=g.map(e=>{let t=Math.cos(e)*h,n=Math.sin(e)*h;return Re({backgroundColor:`transparent`,...eE,type:`line`,x:p,y:m,width:Math.abs(t),height:Math.abs(n),strokeStyle:`solid`,roughness:ja.architect,opacity:UT,points:[O(0,0),O(t,n)]})}),ne=a.map((e,t)=>{let n=g.map((t,n)=>{let r=o(e.values[n]??0,n)*h;return O(Math.cos(t)*r,Math.sin(t)*r)});return n.push(O(n[0][0],n[0][1])),Re({backgroundColor:`transparent`,...eE,type:`line`,x:p,y:m,width:h*2,height:h*2,strokeColor:u[t],strokeWidth:2,polygon:!0,points:n})}),re=gE(a,u,p,y,n+VT*5,l);return[...E?[E]:[],..._,...ee,...te,...ne,...re]},PE=(e,t,n,r,i)=>e===`line`?OE(t,n,r,i):e===`radar`?NE(t,n,r,i):DE(t,n,r,i),FE=class{constructor(e){this.app=e,D(this,`updateHoveredAnchor`,e=>{let t=this.app.state.activeTool.type===`text`&&!this.app.state.editingTextElement&&!this.app.state.newElement?this.getAnchorAtPosition(e.x,e.y):null,n=this.app.state.hoveredArrowTextAnchor;return(n?.elementId!==t?.elementId||n?.anchor!==t?.anchor)&&this.app.setState({hoveredArrowTextAnchor:t}),t}),D(this,`refresh`,()=>{this.app.lastPointerMoveCoords&&this.updateHoveredAnchor(this.app.lastPointerMoveCoords)})}getBindableEndpointAtPosition(e,t){if(!Nc(this.app.state))return null;let n=nl(O(e,t),this.app.scene.getNonDeletedElements(),this.app.scene.getNonDeletedElementsMap(),this.app.state.zoom);if(!n||this.app.getTextElementAtPosition(e,t))return null;let r=this.app.getElementAtPosition(e,t,{includeLockedElements:!0});return r&&r.id!==n.arrow.id&&this.app.scene.getElementIndex(r.id)>this.app.scene.getElementIndex(n.arrow.id)?null:n}getAnchorAtPosition(e,t){let n=this.getBindableEndpointAtPosition(e,t);if(n)return{elementId:n.arrow.id,anchor:n.startOrEnd};let r=this.app.getTextBindableContainerAtPosition(e,t);return!wo(r)||zo(r,this.app.scene.getNonDeletedElementsMap())?null:this.app.getTextWysiwygSnappedToCenterPosition(e,t,this.app.state,r)?{elementId:r.id,anchor:`label`}:null}getTextBinding({arrow:e,startOrEnd:t},n){return Ga(e,t,this.app.scene.getNonDeletedElementsMap(),n)}bindText({arrow:e,startOrEnd:t},n,r){Oo(e,n,t,r,this.app.scene)}maybeDragNewText(e,t){return!I(e)||!Me(e,this.app.scene.getNonDeletedElementsMap())?!1:(Pn({newElement:e,...Ir(e),pointerX:t.x,zoom:this.app.state.zoom.value,scene:this.app.scene}),!0)}},IE=Co.filter(e=>e!==on.white),LE=class{constructor(e){this.app=e,D(this,`temporaryEyeDropper`,null),D(this,`pending`,null),D(this,`handlePointerDown`,e=>{this.pending=e}),D(this,`handlePointerUp`,()=>{let e=this.pending;this.pending=null,e&&this.fill(e)}),D(this,`cancel`,()=>{this.pending=null}),D(this,`cycleBackgroundColor`,()=>{let e=this.getBucketFillBackgroundColor(this.app.state.currentItemBackgroundColor),t=IE[(IE.indexOf(e)+1)%IE.length];this.app.actionManager.executeAction(zg,`keyboard`,{currentItemBackgroundColor:t})}),D(this,`openTemporaryEyeDropper`,()=>{if(ud.get(_h))return;let e={colorPickerType:`elementBackground`,keepOpenOnAlt:!0,onSelect:e=>{this.app.actionManager.executeAction(zg,`ui`,{currentItemBackgroundColor:e})}};this.temporaryEyeDropper=e,this.app.updateEditorAtom(_h,e)}),D(this,`closeTemporaryEyeDropper`,()=>{let e=this.temporaryEyeDropper;this.temporaryEyeDropper=null,e&&ud.get(_h)===e&&this.app.updateEditorAtom(_h,null)}),D(this,`restyle`,e=>{let t=this.getBucketFillBackgroundColor(this.app.state.currentItemBackgroundColor);e.backgroundColor===t&&e.fillStyle===this.app.state.currentItemFillStyle&&e.opacity===this.app.state.currentItemOpacity||(this.app.scene.mutateElement(e,{backgroundColor:t,fillStyle:this.app.state.currentItemFillStyle,opacity:this.app.state.currentItemOpacity}),Zr.delete(e),this.app.scheduleCapture())}),D(this,`fill`,e=>{let t=this.getBucketFillBackgroundColor(this.app.state.currentItemBackgroundColor),n=this.app.scene.getNonDeletedElements(),r=this.app.scene.getNonDeletedElementsMap(),i=O(e.x,e.y),a=this.app.getElementAtPosition(i[0],i[1]),o=Fo({point:i,elements:n,elementsMap:r});if(!o.ok){if(a&&Ba(a)){this.restyle(a);return}o.reason===`too_complex`?this.app.setToast({message:W(`bucketfill.tooComplex`),duration:3e3}):(o.reason===`open_region`||o.reason===`too_small`||o.reason===`invalid_polygon`)&&this.app.setToast({message:W(`bucketfill.noRegion`),duration:3e3});return}if(a&&wt({hitElement:a,scenePoints:o.scenePoints,elementsMap:r})){this.restyle(a);return}let{width:s,height:c}=pr(o.scenePoints),[l,u]=o.scenePoints[0],d=o.scenePoints.map(e=>O(e[0]-l,e[1]-u)),f=o.ownerId?r.get(o.ownerId):null,p=f?F(f)?f.id:f.frameId:this.app.getTopLayerFrameAtSceneCoords(e)?.id??null,m=f?f.groupIds:o.boundaryElementIds.map(e=>r.get(e)?.groupIds).filter(e=>!!e).reduce((e,t)=>e===null?t:e.filter(e=>t.includes(e)),null)??[],h=Re({type:`line`,x:l,y:u,width:s,height:c,points:d,polygon:!0,strokeColor:`transparent`,backgroundColor:t,fillStyle:this.app.state.currentItemFillStyle,strokeWidth:1,strokeStyle:`solid`,roughness:0,roundness:null,opacity:this.app.state.currentItemOpacity,frameId:p,groupIds:m}),g=this.app.scene.getElementsIncludingDeleted().findIndex(e=>e.id===o.insertion.elementId);this.app.scene.insertElementsAtIndex([h],g<0?null:o.insertion.placement===`above`?g+1:g),this.app.scheduleCapture()}),D(this,`getBucketFillBackgroundColor`,(e,t)=>lo(e)?on.green[1]:xr(e,t===P.DARK))}},RE=`<svg viewBox="0 0 24 24" stroke-width="1" width="28" height="28" xmlns="http://www.w3.org/2000/svg">`,zE=`<path d="M6.164 11.755a5.314 5.314 0 0 1-4.932-5.298 5.314 5.314 0 0 1 5.311-5.311 5.314 5.314 0 0 1 5.307 5.113l8.773 8.773a3.322 3.322 0 0 1 0 4.696l-.895.895a3.322 3.322 0 0 1-4.696 0l-8.868-8.868Z" style="fill:#fff"/>`,BE=`<path stroke="#1b1b1f" fill="#fff" d="m7.868 11.113 7.773 7.774a2.359 2.359 0 0 0 1.667.691 2.368 2.368 0 0 0 2.357-2.358c0-.625-.248-1.225-.69-1.667L11.201 7.78 9.558 9.469l-1.69 1.643v.001Zm10.273 3.606-3.333 3.333m-3.25-6.583 2 2m-7-7 3 3M3.664 3.625l1 1M2.529 6.922l1.407-.144m5.735-2.932-1.118.866M4.285 9.823l.758-1.194m1.863-6.207-.13 1.408"/>`,VE=`data:${R.svg},${encodeURIComponent(`${RE}${BE}</svg>`)}`,HE=`data:${R.svg},${encodeURIComponent(`${RE}${zE}${BE}</svg>`)}`,UE=e=>{let t=yf.map((t,n)=>`<path d="${t}" ${n<2?`fill="${e}"`:``} />`).join(``);return`data:${R.svg},${encodeURIComponent(`<svg viewBox="0 0 24 24" width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg" stroke-linecap="round" stroke-linejoin="round"><g stroke="#fff" fill="#fff" stroke-width="5">${t}</g><g stroke="#1b1b1f" stroke-width="1.25">${t}</g></svg>`)}`},WE=class{constructor(e){this.app=e,D(this,`toolCursorMemo`,null),D(this,`eraserCanvasCache`,null),D(this,`eraserPreviewDataURL`,null),D(this,`set`,e=>{this.toolCursorMemo=null,this.canvas&&(this.canvas.style.cursor=e)}),D(this,`reset`,()=>{this.app.state.viewModeEnabled&&!this.app.isActiveToolPointerCapturing()?this.app.isNavigationEnabled()?this.set(Ct.GRAB):this.clear():this.applyForTool()}),D(this,`applyForTool`,(e=this.app.state.activeTool)=>{let t=this.canvas;if(!t)return;let n=e.type===`eraser`||e.type===`laser`||e.type===`bucketfill`?this.app.state.theme:void 0,r=e.type===`bucketfill`?this.app.bucketFill.getBucketFillBackgroundColor(this.app.state.currentItemBackgroundColor,n):void 0,i=this.toolCursorMemo;if(!(i?.canvas===t&&i.type===e.type&&i.bucketFillColor===r&&i.theme===n)){if(e.type===`selection`)this.clear();else if(fs({activeTool:e}))this.set(Ct.GRAB);else if(Ni({activeTool:e}))this.applyEraser();else if(e.type===`autoshape`)this.set(Ct.CROSSHAIR);else if(e.type===`bucketfill`)this.set(`url(${UE(r)}) 5 18, auto`);else if(e.type===`laser`){let e=this.app.state.theme===P.LIGHT?VE:HE;this.set(`url(${e}), auto`)}else [`image`,`custom`].includes(e.type)?e.type!==`image`&&this.set(Ct.AUTO):this.set(Ct.CROSSHAIR);this.toolCursorMemo={canvas:t,type:e.type,bucketFillColor:r,theme:n}}}),D(this,`clear`,()=>{this.set(``)}),D(this,`applyEraser`,()=>{let e=this.app.state.theme;if(!this.eraserCanvasCache||this.eraserCanvasCache.theme!==e){let t=e===P.DARK;this.eraserCanvasCache=document.createElement(`canvas`),this.eraserCanvasCache.theme=e,this.eraserCanvasCache.height=20,this.eraserCanvasCache.width=20;let n=this.eraserCanvasCache.getContext(`2d`);n.lineWidth=1,n.beginPath(),n.arc(this.eraserCanvasCache.width/2,this.eraserCanvasCache.height/2,5,0,2*Math.PI),n.fillStyle=t?`#000`:`#fff`,n.fill(),n.strokeStyle=t?`#fff`:`#000`,n.stroke(),this.eraserPreviewDataURL=this.eraserCanvasCache.toDataURL(R.svg)}this.set(`url(${this.eraserPreviewDataURL}) ${20/2} ${20/2}, auto`)})}get canvas(){return this.app.interactiveCanvas}},GE=class{constructor(e){this.app=e,D(this,`trail`),this.trail=new qw(this.app,{...this.getTrailOptions(),fill:()=>e.state.theme===P.LIGHT?`rgba(0, 0, 0, 0.2)`:`rgba(255, 255, 255, 0.2)`})}getTrailOptions(){return{simplify:0,streamline:.4,size:1,sizeMapping:()=>$s(tl(`line`,this.app.state.currentItemStrokeWidthKey)*.65*this.app.state.zoom.value,1.25,4)}}startPath(e,t){this.trail.startPath(e,t)}addPointToPath(e,t){this.trail.addPointToPath(e,t)}endPath(){this.trail.endPath()}clearTrails(){this.trail.clearTrails()}getCurrentPoints(){let e=this.trail.getCurrentTrail();return e?e.originalPoints.map(([e,t])=>O(e,t)):[]}start(e){this.trail.start(e)}stop(){this.trail.stop()}},KE=class{constructor(e){this.app=e,D(this,`trail`),D(this,`gestureInProgress`,!1),D(this,`stop`,()=>{this.trail.stop()}),D(this,`hasPendingGesture`,()=>this.gestureInProgress),D(this,`handlePointerDown`,e=>{this.gestureInProgress&&this.app.actionManager.executeAction(O_),this.gestureInProgress=!0,this.trail.startPath(e.lastCoords.x,e.lastCoords.y)}),D(this,`handlePointerMove`,e=>ec(this.app,e)),D(this,`bindRecognizedArrow`,e=>{let{app:t}=this,n=t.scene.getNonDeletedElementsMap(),r=t.scene.getNonDeletedElements(),i=mr(t.state.zoom),a=[`start`,`end`].map(t=>{let a=N.getPointAtIndexGlobalCoordinates(e,t===`start`?0:-1,n);return{startOrEnd:t,globalPoint:a,target:Fc(a,r,n,i)}}),o=!!a[0].target&&a[0].target===a[1].target,s=t.state.isMidpointSnappingEnabled&&!t.state.gridModeEnabled;for(let{startOrEnd:n,globalPoint:r,target:i}of a)i&&Mr(e,i,o?`inside`:`orbit`,n,t.scene,r,t.state.isBindingEnabled,s);if(o)return;let c=new Map;for(let{startOrEnd:t,target:r}of a){if(!r)continue;let i=Xn(e,t===`start`?`startBinding`:`endBinding`,t===`start`?e.startBinding:e.endBinding,r,n);i&&c.set(t===`start`?0:e.points.length-1,{point:i})}c.size&&N.movePoints(e,t.scene,c)}),D(this,`maybeUpgradeLineToArrow`,e=>{let{app:t}=this,n=t.scene.getNonDeletedElementsMap(),r=t.scene.getNonDeletedElements(),i=mr(t.state.zoom),[a,o]=[0,-1].map(t=>Fc(N.getPointAtIndexGlobalCoordinates(e,t,n),r,n,i));return!a&&!o||a===o?null:Ki({type:`arrow`,x:e.x,y:e.y,width:e.width,height:e.height,startArrowhead:null,endArrowhead:t.state.currentItemEndArrowhead,points:e.points,groupIds:e.groupIds,frameId:e.frameId,locked:!1,angle:e.angle,strokeColor:e.strokeColor,backgroundColor:e.backgroundColor,fillStyle:e.fillStyle,roughness:e.roughness,opacity:e.opacity,strokeStyle:e.strokeStyle,strokeWidth:e.strokeWidth})}),D(this,`finalize`,()=>{let{app:e}=this,t=this.gestureInProgress?this.trail.getCurrentPoints():[];if(this.gestureInProgress=!1,this.trail.endPath(),t.length>=3){let n=e.state.newElement||ka(t,e.state,e.scene.getNonDeletedElementsMap(),e.state.newElement,e.scene.getNonDeletedFramesLikes());if(n){let t={...n,seed:bo(),opacity:e.state.currentItemOpacity};e.state.isBindingEnabled&&ft(t)&&(t=this.maybeUpgradeLineToArrow(t)??t),e.insertNewElement(t),e.state.isBindingEnabled&&xi(t)&&this.bindRecognizedArrow(t)}}this.trail.clearTrails()}),this.trail=new GE(e)}},qE=class e{constructor(e){this.app=e,D(this,`creator`,new ni),D(this,`navigator`,new Ti),D(this,`clear`,()=>{this.creator.clear(),this.navigator.clear()}),D(this,`handleKeyEvent`,e=>{let t=this.resolveKeyboardEventToOperation(e);switch(t.type){case`none`:return!1;case`canceled`:return this.app.triggerRender(!0),!0;case`creating`:return e.preventDefault(),t.pending.length&&this.app.revealIfHidden(t.pending),!0;case`navigating`:{e.preventDefault();let n=t.nodeId&&this.app.scene.getNonDeletedElementsMap().get(t.nodeId);return n&&this.selectAndReveal(n),!0}case`committed`:{t.nodes.length&&this.app.insertNewElements(t.nodes);let e=t.nodes[0];return e&&this.selectAndReveal(e),this.captureUpdate(),!0}case`navigationEnded`:return this.captureUpdate(),!0}})}get pendingNodes(){return this.creator.pendingNodes}get isCreatingChart(){return this.creator.isCreatingChart}resolveKeyboardEventToOperation(t){let{creator:n,navigator:r,app:i}=this;if(t.type===`keydown`){if(t.key===L.ESCAPE&&n.isCreatingChart)return n.clear(),{type:`canceled`};if(!is(t.key))return{type:`none`};if(t[L.CTRL_OR_CMD]&&!t.shiftKey){let r=Ls(i.scene.getNonDeletedElementsMap(),i.state);return r.length===1&&hn(r[0])&&n.createNodes(r[0],i.state,e.getLinkDirectionFromKey(t.key),i.scene),{type:`creating`,pending:n.pendingNodes??[]}}if(t.altKey){let n=i.scene.getNonDeletedElementsMap(),a=Ls(n,i.state);if(a.length===1)return{type:`navigating`,nodeId:r.exploreByDirection(a[0],n,e.getLinkDirectionFromKey(t.key))}}return{type:`none`}}let a=!t.altKey&&r.isExploring;if(a&&r.clear(),!t[L.CTRL_OR_CMD]&&n.isCreatingChart){let e=n.pendingNodes??[];return n.clear(),{type:`committed`,nodes:e}}return a?{type:`navigationEnded`}:{type:`none`}}selectAndReveal(e){this.app.setState(t=>({selectedElementIds:Bi({[e.id]:!0},t)})),this.app.revealIfHidden([e])}captureUpdate(){this.app.syncActionResult({captureUpdate:j.IMMEDIATELY})}static getLinkDirectionFromKey(e){switch(e){case L.ARROW_UP:return`up`;case L.ARROW_DOWN:return`down`;case L.ARROW_RIGHT:return`right`;case L.ARROW_LEFT:return`left`;default:return`right`}}},JE=`animateScrollToContent`,YE=`animateScrollConstraintsSnapBack`,XE=500,ZE=250,QE=200,$E=302,eD={full:216,compact:64},tD=e=>{if(!e||typeof e!=`object`||Array.isArray(e))return!1;let t=e;return typeof t.x==`number`&&typeof t.y==`number`&&(t.width==null||typeof t.width==`number`)&&(t.height==null||typeof t.height==`number`)},nD=(e,t)=>{let n=t.get(e);return n?[n]:nn(t,e)},rD=(e,t,n)=>{if(typeof e==`string`){let n=ps(e),r=n?`link`:`element`,i=n?bt(e):e,a=i?nD(i,t):[];return a.length?{bounds:bc(a,t),type:r}:{bounds:null,type:r}}if(li(e))return{bounds:e,type:`area`};if(tD(e)&&!fa(e)){let t=e.width??n.width,r=e.height??n.height;return{bounds:[e.x,e.y,e.x+t,e.y+r],type:`area`}}let r=Array.isArray(e)?e:[e],i=r.reduce((e,n)=>{if(n&&!n.isDeleted){let r=t.get(n.id);r&&e.push(r)}return e},[]),a=!i.length;return(i.length!==r.length||a)&&console.warn(`supplied element target(s) for setViewport contain deleted or non-existent elements which have been filtered out`),a?{bounds:null,type:`element`}:{bounds:bc(i,t),type:`element`}},iD=e=>e===!1?0:e===!0||e==null?150:Math.max(e,0),aD=(e,t,n=`scale-down`,r)=>{let{appState:i}=Ui({bounds:t,appState:e,fit:n,canvasOffsets:r,steppedZoom:!1});return{scrollX:i.scrollX,scrollY:i.scrollY,zoom:i.zoom}},oD=(e,t,{fit:n,offsets:r,lock:i})=>{let a=aD(e,t,n,r);if(!i?.scroll&&!i?.zoom)return{...a,scrollConstraints:null};let[o,s,c,l]=t,u={x:o,y:s,width:c-o,height:l-s,lockScroll:!!i.scroll,lockZoom:!!i.zoom,zoom:a.zoom.value,overscroll:iD(i.overscroll),offsets:r};return{...$c({...e,...a,scrollConstraints:u}),scrollConstraints:u}},sD=({from:e,target:t,factor:n})=>{if(n>=1)return{...t};let r=e.zoom.value*(t.zoom.value/e.zoom.value)**+n,i=t.zoom.value===e.zoom.value?n:(r-e.zoom.value)/(t.zoom.value-e.zoom.value);return{scrollX:((1-i)*e.scrollX*e.zoom.value+i*t.scrollX*t.zoom.value)/r,scrollY:((1-i)*e.scrollY*e.zoom.value+i*t.scrollY*t.zoom.value)/r,zoom:{value:r}}},cD=e=>e===!1?null:e===!0||e==null?XE:e.duration??XE,lD=(e,t,n,r,i)=>{Gw.start(JE,({deltaTime:a,state:o})=>{let s=(o?.elapsed??0)+a,c=Math.min(s/n,1),l=Se($s(c,0,1));return c<1?(r({...sD({from:e,target:t,factor:l}),shouldCacheIgnoreZoom:!0}),{elapsed:s}):(i(),null)})},uD=(e,t,n=ZE)=>{let r=$c(e);if(r.scrollX===e.scrollX&&r.scrollY===e.scrollY&&r.zoom.value===e.zoom.value||Gw.running(JE))return;let i=(e.scrollX-r.scrollX)*e.zoom.value,a=(e.scrollY-r.scrollY)*e.zoom.value;Gw.start(YE,({deltaTime:e,state:r})=>{let o=(r?.elapsed??0)+e,s=Math.min(o/n,1),c=1-Se($s(s,0,1));return t(e=>{if(!e.scrollConstraints)return null;let t=$c(e),n=t.zoom.value;return{scrollX:t.scrollX+i*c/n,scrollY:t.scrollY+a*c/n,zoom:t.zoom}}),s<1?{elapsed:o}:null})},dD=class{constructor(e,t){this.app=e,this.dependencies=t,D(this,`lastPosition`,{x:0,y:0}),D(this,`activeTransition`,null),D(this,`uiLastMeasured`,new Map),D(this,`invalidateUIOffset`,e=>{this.uiLastMeasured.delete(e)}),D(this,`resolveOffsets`,e=>{if(!e)return e;let{ui:t,...n}=e;if(!t)return n;let r=this.getOffsets(t===!0?void 0:t);return{top:n.top??r.top,right:n.right??r.right,bottom:n.bottom??r.bottom,left:n.left??r.left}}),D(this,`getOffsets`,e=>{let t=this.dependencies.getContainer(),n=t?.getBoundingClientRect(),r=yd().rtl,i={top:0,right:0,bottom:0,left:0},a=new Set;if(t&&n)for(let e of t.querySelectorAll(`[data-viewport-ui]`)){let t=e.getBoundingClientRect(),r={top:t.top-n.top,right:t.right-n.left,bottom:t.bottom-n.top,left:t.left-n.left,width:t.width};switch(e.dataset.viewportUi){case`top`:i.top=Math.max(i.top,r.bottom);break;case`bottom`:i.bottom=Math.max(i.bottom,this.app.state.height-r.top);break;case`side`:{let[t,n]=r.left+r.width/2<this.app.state.width/2?[`left`,r.right]:[`right`,this.app.state.width-r.left];i[t]=Math.max(i[t],n);let o=e.dataset.viewportUiName;o&&(a.add(o),n>0&&this.uiLastMeasured.set(o,{side:t,offset:n}));break}}}if(e?.reserve&&this.app.editorInterface.formFactor!==`phone`){let t=(e,t)=>{if(a.has(e))return;let{side:n,offset:r}=this.uiLastMeasured.get(e)??t;i[n]=Math.max(i[n],r)};e.reserve.stylesPanel&&t(`stylesPanel`,{side:r?`right`:`left`,offset:this.dependencies.getStylesPanelMode()===`compact`?eD.compact:eD.full}),e.reserve.sidebar&&t(`sidebar`,{side:r?`left`:`right`,offset:$E})}let o=e?.padding??24,s=e?.paddingTop??o,c=(r?e?.paddingLeft:e?.paddingRight)??o,l=e?.paddingBottom??o,u=(r?e?.paddingRight:e?.paddingLeft)??o,d={top:i.top+s,right:i.right+c,bottom:i.bottom+l,left:i.left+u};return{top:e?.top??d.top,right:(r?e?.left:e?.right)??d.right,bottom:e?.bottom??d.bottom,left:(r?e?.right:e?.left)??d.left}}),D(this,`resolveInitialViewport`,(e,t,n)=>{let{bounds:r}=rD(e.target,t,n);return r?oD(n,r,{...e,offsets:this.resolveOffsets(e.offsets)}):null}),D(this,`setViewport`,e=>{if(e===null){this.cancelTransition(),Gw.cancel(YE),this.snapBackDebounced.cancel(),this.app.setState({scrollConstraints:null,shouldCacheIgnoreZoom:!1});return}let{target:t,fit:n,lock:r,animation:i}=e,a=this.resolveOffsets(e.offsets),{bounds:o,type:s}=rD(t,this.app.scene.getNonDeletedElementsMap(),this.app.state);if(!o){s===`link`&&this.app.setState({toast:{message:W(`elementLink.notFound`),duration:3e3,closable:!0}});return}let c=oD(this.app.state,o,{fit:n,offsets:a,lock:r}),l=cD(i),u={scrollX:this.app.state.scrollX,scrollY:this.app.state.scrollY,zoom:this.app.state.zoom};if(this.cancelTransition(),Gw.cancel(YE),this.snapBackDebounced.cancel(),l===null){this.app.setState({...c,shouldCacheIgnoreZoom:!1});return}let d={target:c};this.activeTransition=d,this.app.state.scrollConstraints&&this.app.setState({scrollConstraints:null}),lD(u,c,l,e=>{this.activeTransition===d&&this.app.setState(e)},()=>{this.activeTransition===d&&(this.activeTransition=null,this.app.setState({...d.target,shouldCacheIgnoreZoom:!1}))})}),D(this,`translate`,(e,t)=>{if(this.isLockedTransitionPending)return!1;this.cancelTransition(),t?.preserveScrollConstraintsSnapBack||Gw.cancel(YE),this.app.setState({shouldCacheIgnoreZoom:!1}),this.app.requestUnfollow();let n=this.app.state.zoom.value;return this.app.setState(e),this.app.setState(e=>{if(!e.scrollConstraints)return null;let r=!t?.zoomPreConstrained&&e.zoom.value!==n?0:e.scrollConstraints.overscroll;return r>0&&this.snapBackDebounced(),$c(e,r)}),!0}),D(this,`constrain`,(e=0)=>{this.app.setState(t=>t.scrollConstraints?$c(t,e):null)}),D(this,`releaseOverscroll`,()=>{this.app.state.scrollConstraints&&(this.snapBackDebounced.cancel(),this.snapBack())}),D(this,`snapBack`,()=>{this.app.unmounted||this.dependencies.isGestureActive()||uD(this.app.state,e=>this.app.setState(t=>e(t)))}),D(this,`snapBackDebounced`,tc(this.snapBack,QE)),D(this,`cancelTransition`,()=>{this.activeTransition=null,Gw.cancel(JE)}),D(this,`destroy`,()=>{this.cancelTransition(),Gw.cancel(YE),this.snapBackDebounced.cancel()})}get isAnimating(){return Gw.running(JE)||Gw.running(YE)}get isLockedTransitionPending(){return!!this.activeTransition?.target.scrollConstraints}},fD=()=>(0,U.jsxs)(`div`,{"data-testid":`brave-measure-text-error`,children:[(0,U.jsx)(`p`,{children:(0,U.jsx)(Jb,{i18nKey:`errors.brave_measure_text_error.line1`,bold:e=>(0,U.jsx)(`span`,{style:{fontWeight:600},children:e})})}),(0,U.jsx)(`p`,{children:(0,U.jsx)(Jb,{i18nKey:`errors.brave_measure_text_error.line2`,bold:e=>(0,U.jsx)(`span`,{style:{fontWeight:600},children:e})})}),(0,U.jsx)(`p`,{children:(0,U.jsx)(Jb,{i18nKey:`errors.brave_measure_text_error.line3`,link:e=>(0,U.jsx)(`a`,{href:`http://docs.excalidraw.com/docs/@excalidraw/excalidraw/faq#turning-off-aggresive-block-fingerprinting-in-brave-browser`,children:e})})}),(0,U.jsx)(`p`,{children:(0,U.jsx)(Jb,{i18nKey:`errors.brave_measure_text_error.line4`,issueLink:e=>(0,U.jsx)(`a`,{href:`https://github.com/excalidraw/excalidraw/issues/new`,children:e}),discordLink:e=>(0,U.jsxs)(`a`,{href:`https://discord.gg/UexuTaE`,children:[e,`.`]})})})]}),pD=10,mD=({children:e,left:t,top:n,onCloseRequest:r,fitInViewport:i=!1,viewportWidth:a=window.innerWidth,viewportHeight:o=window.innerHeight,className:s})=>{let c=(0,V.useRef)(null);(0,V.useEffect)(()=>{let e=c.current;if(!e)return;e.contains(document.activeElement)||e.focus();let t=t=>{if(t.key===L.TAB){let n=Ja(e),{activeElement:r}=document,i=n.findIndex(e=>e===r);r===e?(t.shiftKey?n[n.length-1]?.focus():n[0].focus(),t.preventDefault(),t.stopImmediatePropagation()):i===0&&t.shiftKey?(n[n.length-1]?.focus(),t.preventDefault(),t.stopImmediatePropagation()):i===n.length-1&&!t.shiftKey&&(n[0]?.focus(),t.preventDefault(),t.stopImmediatePropagation())}};return e.addEventListener(`keydown`,t),()=>e.removeEventListener(`keydown`,t)},[]);let l=(0,V.useRef)(null);return(0,V.useLayoutEffect)(()=>{if(i&&c.current&&n!=null&&t!=null){let e=c.current,{width:r,height:i}=e.getBoundingClientRect();if(l.current?.top===n&&l.current?.left===t)return;l.current={top:n,left:t};let s=Math.max(0,a-pD*2);r>=s?(e.style.width=`${s}px`,e.style.left=`${pD}px`,e.style.overflowX=`scroll`):e.style.left=`${$s(t,pD,a-pD-r)}px`;let u=Math.max(0,o-pD*2);i>=u?(e.style.height=`${u}px`,e.style.top=`${pD}px`,e.style.overflowY=`scroll`):e.style.top=`${$s(n,pD,o-pD-i)}px`}},[n,t,i,a,o]),(0,V.useEffect)(()=>{if(r){let e=e=>{c.current?.contains(e.target)||(0,Sl.unstable_batchedUpdates)(()=>r(e))};return document.addEventListener(`pointerdown`,e,!1),()=>document.removeEventListener(`pointerdown`,e,!1)}},[r]),(0,U.jsx)(`div`,{className:H(`popover`,s),ref:c,tabIndex:-1,children:e})},hD=`separator`,gD=V.memo(({actionManager:e,items:t,top:n,left:r,onClose:i})=>{let a=dN(),o=uN(),s=t.reduce((t,n)=>(n&&(n===hD||!n.predicate||n.predicate(o,a,e.app.props,e.app))&&t.push(n),t),[]);return(0,U.jsx)(mD,{onCloseRequest:()=>{i()},top:n,left:r,fitInViewport:!0,viewportWidth:a.width,viewportHeight:a.height,className:`context-menu-popover`,children:(0,U.jsx)(`ul`,{className:`context-menu`,onContextMenu:e=>e.preventDefault(),children:s.map((t,n)=>{if(t===hD)return!s[n-1]||s[n-1]===hD?null:(0,U.jsx)(`hr`,{className:`context-menu-item-separator`},n);let r=t.name,c=``;return t.label&&(c=typeof t.label==`function`?W(t.label(o,a,e.app)):W(t.label)),(0,U.jsx)(`li`,{"data-testid":r,onClick:()=>{i(()=>{e.executeAction(t,`contextMenu`)})},children:(0,U.jsxs)(`button`,{type:`button`,className:H(`context-menu-item`,{dangerous:r===`deleteSelectedElements`,checkmark:t.checked?.(a)}),children:[(0,U.jsx)(`div`,{className:`context-menu-item__label`,children:c}),(0,U.jsx)(`kbd`,{className:`context-menu-item__shortcut`,children:r?rb(r):``})]})},n)})})})}),_D=({border:e,style:t})=>(0,U.jsx)(`div`,{className:`viewport-status-frame__border`,style:{borderColor:e,...t}}),vD=({label:e,border:t})=>{let n=(0,V.useId)(),r=(0,U.jsxs)(U.Fragment,{children:[e.icon&&(0,U.jsx)(`span`,{className:`viewport-status-frame__badge-icon`,children:e.icon}),e.label]});return(0,U.jsxs)(`div`,{className:H(`viewport-status-frame__badge`,{"viewport-status-frame__badge--clickable":e.onClick}),role:`status`,style:{"--viewport-status-frame-badge-background":e.background||t||`var(--color-primary)`,color:e.color},children:[e.onClick&&(0,U.jsx)(`button`,{type:`button`,className:`viewport-status-frame__badge-action`,"aria-labelledby":n,onClick:e.onClick}),(0,U.jsx)(`div`,{className:`viewport-status-frame__badge-label`,id:e.onClick?n:void 0,children:r}),e.onClose&&(0,U.jsx)(`button`,{type:`button`,className:`viewport-status-frame__badge-close`,"aria-label":W(`buttons.close`),onClick:e.onClose,children:Gf})]})},yD=V.createContext(null),bD=()=>V.useContext(yD),xD=uu(),SD=()=>V.useMemo(()=>({MainMenuTunnel:ed(),WelcomeScreenMenuHintTunnel:ed(),WelcomeScreenToolbarHintTunnel:ed(),WelcomeScreenHelpHintTunnel:ed(),WelcomeScreenCenterTunnel:ed(),FooterCenterTunnel:ed(),DefaultSidebarTriggerTunnel:ed(),DefaultSidebarTabTriggersTunnel:ed(),OverwriteConfirmDialogTunnel:ed(),TTDDialogTriggerTunnel:ed(),tunnelsJotai:xD}),[]),CD=({delay:e,theme:t})=>{let[n,r]=(0,V.useState)(!!e);return(0,V.useEffect)(()=>{if(!e)return;let t=setTimeout(()=>{r(!1)},e);return()=>clearTimeout(t)},[e]),n?null:(0,U.jsxs)(`div`,{className:H(`LoadingMessage`,{"LoadingMessage--dark":t===P.DARK}),children:[(0,U.jsx)(`div`,{children:(0,U.jsx)(Km,{})}),(0,U.jsx)(`div`,{className:`LoadingMessage-text`,children:W(`labels.loadingScene`)})]})},wD=({app:e,setAppState:t})=>{let n=e.state.activeTool,[r,i]=(0,V.useState)(!1),[a,o]=(0,V.useState)(`rectangle`),[s,c]=(0,V.useState)(`arrow`);(0,V.useEffect)(()=>{(n.type===`rectangle`||n.type===`diamond`||n.type===`ellipse`)&&o(n.type)},[n.type]),(0,V.useEffect)(()=>{(n.type===`arrow`||n.type===`line`)&&c(n.type)},[n.type]);let l=n.type===`frame`,u=n.type===`autoshape`,d=n.type===`laser`,f=n.type===`embeddable`,p=n.type===`bucketfill`,{TTDDialogTriggerTunnel:m}=bD(),h=[`rectangle`,`diamond`,`ellipse`].map(e=>({type:e,icon:o_[e].icon,title:Mo(W(`toolBar.${e}`)),fillable:o_[e].fillable})),g=[`arrow`,`line`].map(e=>({type:e,icon:o_[e].icon,title:Mo(W(`toolBar.${e}`)),fillable:o_[e].fillable})),[_,v]=(0,V.useState)(0),y=_>=316,b=_>=356,x=_>=396,S=[`text`,`frame`,`embeddable`,`laser`,`bucketfill`,`magicframe`].filter(e=>!(y&&e===`text`||x&&e===`frame`)).includes(n.type),C=S?n.type===`text`?qd:n.type===`image`?Yd:n.type===`frame`?Zp:n.type===`embeddable`?tf:n.type===`laser`?rm:n.type===`bucketfill`?bf:n.type===`magicframe`?im:Od:Od,w={app:e,activeTool:n};return(0,U.jsxs)(`div`,{className:`mobile-toolbar`,ref:e=>{e&&v(e.getBoundingClientRect().width)},children:[(0,U.jsx)(p_,{...w,hideKeyBinding:!0}),(0,U.jsx)(E_,{...w,setAppState:t}),(0,U.jsx)(D_,{...w}),(0,U.jsx)(S_,{...w,hideShortcut:!0}),(0,U.jsx)(a_,{app:e,options:h,activeTool:n,defaultOption:a,"data-testid":`toolbar-rectangle`,onToolChange:t=>{(t===`rectangle`||t===`diamond`||t===`ellipse`)&&(o(t),e.setActiveTool({type:t}))},displayedOption:h.find(e=>e.type===a)||h[0]}),(0,U.jsx)(a_,{app:e,options:g,activeTool:n,defaultOption:s,"data-testid":`toolbar-arrow`,onToolChange:t=>{(t===`arrow`||t===`line`)&&(c(t),e.setActiveTool({type:t}))},displayedOption:g.find(e=>e.type===s)||g[0]}),y&&(0,U.jsx)(b_,{...w,hideShortcut:!0}),b&&(0,U.jsx)(x_,{...w,hideShortcut:!0}),x&&(0,U.jsx)(C_,{...w,hideShortcut:!0}),(0,U.jsxs)(Z,{open:r,children:[(0,U.jsx)(Z.Trigger,{className:H(`App-toolbar__extra-tools-trigger App-toolbar__extra-tools-trigger--mobile`,{"App-toolbar__extra-tools-trigger--selected":S||r}),onToggle:()=>{i(!r),t({openMenu:null,openPopup:null})},title:W(`toolBar.extraTools`),style:{width:36,height:36,display:`flex`,alignItems:`center`,justifyContent:`center`},children:C}),(0,U.jsxs)(Z.Content,{onClickOutside:()=>i(!1),onSelect:()=>i(!1),className:`App-toolbar__extra-tools-dropdown`,align:`start`,children:[!y&&(0,U.jsx)(Z.Item,{onSelect:()=>e.setActiveTool({type:`text`}),icon:qd,shortcut:L.T.toLocaleUpperCase(),"data-testid":`toolbar-text`,selected:n.type===`text`,disabled:d_(e,`text`),children:W(`toolBar.text`)}),!b&&(0,U.jsx)(Z.Item,{onSelect:()=>e.setActiveTool({type:`image`}),icon:Yd,"data-testid":`toolbar-image`,selected:n.type===`image`,disabled:d_(e,`image`),children:W(`toolBar.image`)}),!x&&(0,U.jsx)(Z.Item,{onSelect:()=>e.setActiveTool({type:`frame`}),icon:Zp,shortcut:L.F.toLocaleUpperCase(),"data-testid":`toolbar-frame`,selected:l,disabled:d_(e,`frame`),children:W(`toolBar.frame`)}),(0,U.jsx)(Z.Item,{onSelect:()=>e.setActiveTool({type:`embeddable`}),icon:tf,"data-testid":`toolbar-embeddable`,selected:f,disabled:d_(e,`embeddable`),children:W(`toolBar.embeddable`)}),(0,U.jsx)(Z.Item,{onSelect:()=>e.setActiveTool({type:`autoshape`}),icon:nm,shortcut:l_(`autoshape`),"data-testid":`toolbar-autoshape`,selected:u,disabled:d_(e,`autoshape`),children:W(`toolBar.autoshape`)}),(0,U.jsx)(Z.Item,{onSelect:()=>e.setActiveTool({type:`laser`}),icon:rm,"data-testid":`toolbar-laser`,selected:d,shortcut:L.K.toLocaleUpperCase(),disabled:d_(e,`laser`),children:W(`toolBar.laser`)}),(0,U.jsx)(Z.Item,{onSelect:()=>e.setActiveTool({type:`bucketfill`}),icon:bf,"data-testid":`toolbar-bucketfill`,selected:p,shortcut:L.B.toLocaleUpperCase(),disabled:d_(e,`bucketfill`),children:W(`toolBar.bucketfill`)}),(0,U.jsx)(`div`,{style:{margin:`6px 0`,fontSize:14,fontWeight:600},children:`Generate`}),e.props.aiEnabled!==!1&&(0,U.jsx)(m.Out,{}),(0,U.jsx)(Z.Item,{onSelect:()=>e.setOpenDialog({name:`ttd`,tab:`mermaid`}),icon:Qp,"data-testid":`toolbar-embeddable`,children:W(`toolBar.mermaidToExcalidraw`)}),e.props.aiEnabled!==!1&&e.plugins.diagramToCode&&(0,U.jsx)(U.Fragment,{children:(0,U.jsx)(Z.Item,{onSelect:()=>e.onMagicframeToolSelect(),icon:im,"data-testid":`toolbar-magicframe`,badge:(0,U.jsx)(Z.Item.Badge,{children:`AI`}),disabled:d_(e,`magicframe`),children:W(`toolBar.magicframe`)})})]})]})]})},TD=({children:e,side:t,className:n})=>(0,U.jsx)(`div`,{className:H(`FixedSideContainer`,`FixedSideContainer_side_${t}`,n),children:e}),ED=e=>e.penDetected?(0,U.jsx)(J,{className:H(`ToolIcon__penMode`,{"is-mobile":e.isMobile}),type:`toggle`,icon:Gd,checked:e.checked,title:`${e.title}`,"aria-label":`${e.title}`,onSelect:()=>e.onChange?.()}):null,DD=({appState:e,elements:t,actionManager:n,setAppState:r,renderTopLeftUI:i,renderTopRightUI:a,renderSidebars:o,renderWelcomeScreen:s,defaultUIEnabled:c,scrollBackToContentUIEnabled:l,app:u,onPenModeToggle:d})=>{let{WelcomeScreenCenterTunnel:f,MainMenuTunnel:p,DefaultSidebarTriggerTunnel:m}=bD(),h=()=>{if(e.openDialog?.name===`elementLinkSelector`)return null;let t=(0,U.jsxs)(`div`,{className:`excalidraw-ui-top-right`,children:[a?.(!0,e)??(!e.viewModeEnabled&&(0,U.jsxs)(U.Fragment,{children:[c&&(0,U.jsx)(ED,{checked:e.penMode,onChange:()=>d(null),title:W(`toolBar.penMode`),isMobile:!0,penDetected:e.penDetected}),(0,U.jsx)(m.Out,{})]})),c&&e.viewModeEnabled&&u.isInteractionEnabled()&&(0,U.jsx)(uS,{actionManager:n})]});return(0,U.jsxs)(`div`,{className:`App-toolbar-content`,style:{display:`flex`,flexDirection:`row`,justifyContent:`space-between`},children:[(0,U.jsxs)(`div`,{className:`excalidraw-ui-top-left`,children:[i?.(!0,e),(0,U.jsx)(p.Out,{})]}),t]})},g=()=>(0,U.jsx)(wD,{app:u,setAppState:r}),_=l&&e.scrolledOutside,v=c&&!e.viewModeEnabled,y=_&&!e.openMenu&&!e.openSidebar?(0,U.jsx)(`button`,{type:`button`,className:`scroll-back-to-content`,onClick:()=>{r(e=>({...we(t,e)}))},children:W(`buttons.scrollBackToContent`)}):null,b=u.props.viewportStatusFrame?.label,x=b?(0,U.jsx)(vD,{label:b,border:u.props.viewportStatusFrame?.border}):null;return(0,U.jsxs)(U.Fragment,{children:[o(),(0,U.jsx)(`div`,{className:`App-welcome-screen`,children:s&&(0,U.jsx)(f.Out,{})}),v&&(0,U.jsxs)(`div`,{className:`App-bottom-bar`,style:{marginBottom:lT+cT},"data-viewport-ui":`bottom`,children:[y&&(0,U.jsx)(`div`,{className:`floating-status-stack`,children:y}),(0,U.jsx)(oS,{appState:e,elementsMap:u.scene.getNonDeletedElementsMap(),renderAction:n.renderAction,app:u,setAppState:r}),(0,U.jsx)(yh,{className:`App-toolbar`,children:e.openDialog?.name!==`elementLinkSelector`&&g()})]}),!v&&y&&(0,U.jsx)(`div`,{className:`floating-status-stack`,children:y}),x&&(0,U.jsx)(`div`,{className:`viewport-status-frame__badge-row`,children:x}),(0,U.jsx)(TD,{side:`top`,className:`App-top-bar`,children:h()})]})},OD=e=>{switch(e){case`bar`:return W(`labels.chartType_bar`);case`line`:return W(`labels.chartType_line`);case`radar`:return W(`labels.chartType_radar`);default:return e}},kD=e=>{let t=(0,V.useRef)(null),[n,r]=(0,V.useState)(null),{theme:i}=lh();(0,V.useLayoutEffect)(()=>{if(!e.spreadsheet){r(null);return}let n=PE(e.chartType,e.spreadsheet,0,0,e.colorSeed);if(!n){r(null),t.current?.replaceChildren();return}r(n);let a,o=t.current;return(async()=>(a=await Ne(n,{exportBackground:!1,viewBackgroundColor:`#fff`,exportWithDarkMode:i===`dark`},null,{skipInliningFonts:!0}),a.querySelector(`.style-fonts`)?.remove(),o.replaceChildren(),o.appendChild(a)))(),()=>{o.replaceChildren()}},[e.spreadsheet,e.chartType,e.colorSeed,i]);let a=OD(e.chartType);return(0,U.jsxs)(`button`,{type:`button`,className:`ChartPreview`,"aria-label":a,onClick:()=>{n&&e.onClick(e.chartType,n)},children:[(0,U.jsx)(`div`,{className:`ChartPreview__canvas`,ref:t}),(0,U.jsx)(`div`,{className:`ChartPreview__label`,children:a})]})},AD=e=>{let t=(0,V.useRef)(null),{theme:n}=lh();return(0,V.useLayoutEffect)(()=>{if(!e.rawText)return;let r=Pe({text:e.rawText,x:0,y:0}),i=t.current;return(async()=>{let e=await Ne([r],{exportBackground:!1,viewBackgroundColor:`#fff`,exportWithDarkMode:n===`dark`},null,{skipInliningFonts:!0});e.querySelector(`.style-fonts`)?.remove(),i.replaceChildren(),i.appendChild(e)})(),()=>{i.replaceChildren()}},[e.rawText,n]),(0,U.jsxs)(`button`,{type:`button`,className:`ChartPreview`,"aria-label":W(`labels.chartType_plaintext`),onClick:()=>{e.onClick(e.rawText)},children:[(0,U.jsx)(`div`,{className:`ChartPreview__canvas`,ref:t}),(0,U.jsx)(`div`,{className:`ChartPreview__label`,children:W(`labels.chartType_plaintext`)})]})},jD=({data:e,rawText:t,onClose:n})=>{let{onInsertElements:r,focusContainer:i}=aN(),[a,o]=(0,V.useState)(Math.random()),s=V.useCallback(()=>{o(Math.random())},[]),c=V.useCallback(()=>{n&&n()},[n]),l=(e,t)=>{r(t),ih(`paste`,`chart`,e),n(),i()};return(0,U.jsx)(Gx,{size:`regular`,onCloseRequest:c,title:(0,U.jsxs)(`div`,{className:`PasteChartDialog__title`,children:[(0,U.jsx)(`div`,{className:`PasteChartDialog__titleText`,children:W(`labels.pasteCharts`)}),(0,U.jsx)(`div`,{className:`PasteChartDialog__reshuffleBtn`,onClick:s,role:`button`,tabIndex:0,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),s())},children:bf})]}),className:`PasteChartDialog`,autofocus:!1,children:(0,U.jsxs)(`div`,{className:`container`,children:[[`bar`,`line`,`radar`].map(t=>rE(e,t)?(0,U.jsx)(kD,{chartType:t,spreadsheet:e,colorSeed:a,onClick:l},t):null),t&&(0,U.jsx)(AD,{rawText:t,onClick:e=>{r([Pe({text:e,x:0,y:0})]),ih(`paste`,`chart`,`plaintext`),n(),i()}})]})})},MD=({heading:e,children:t,...n})=>{let{id:r}=lN(),i=(0,U.jsx)(`h2`,{className:`visually-hidden`,id:`${r}-${e}-title`,children:W(`headings.${e}`)});return(0,U.jsx)(`section`,{...n,"aria-labelledby":`${r}-${e}-title`,children:typeof t==`function`?t(i):(0,U.jsxs)(U.Fragment,{children:[i,t]})})},ND=4,PD=8,FD=38,ID=21,LD=({shouldWrap:e,children:t,username:n})=>e?(0,U.jsx)(Jg,{label:n||`Unknown user`,children:t}):(0,U.jsx)(U.Fragment,{children:t}),RD=({actionManager:e,collaborator:t,socketId:n,withName:r=!1,shouldWrapWithTooltip:i=!1,isBeingFollowed:a})=>{let o={socketId:n,collaborator:t,withName:r,isBeingFollowed:a},s=e.renderAction(`goToCollaborator`,o);return(0,U.jsx)(LD,{username:t.username,shouldWrap:i,children:s},n)},zD=[`avatarUrl`,`id`,`socketId`,`username`,`isInCall`,`isSpeaking`,`isMuted`,`isCurrentUser`],BD=V.memo(({className:e,mobile:t,collaborators:n,userToFollow:r,currentUserControls:i})=>{let a=pN(),o=typeof i==`function`?i(!!t):i,s=Array.from(n,([e,t])=>({...t,socketId:e})).filter(e=>e.username?.trim()),c=s.find(e=>e.isCurrentUser),l=s.filter(e=>!e.isCurrentUser),[u,d]=V.useState(``),f=s.filter(e=>e.username?.toLowerCase().includes(u)),p=V.useRef(null);(0,V.useLayoutEffect)(()=>{if(p.current){let e=e=>{h(e)};if(e(p.current.clientWidth),!go)return;let t=new ResizeObserver(t=>{for(let n of t){let{width:t}=n.contentRect;e(t)}});return t.observe(p.current),()=>{t.disconnect()}}},[]);let[m,h]=V.useState(ND*FD),g=c?m-ID:m,_=Math.max(1,Math.min(8,Math.floor(g/FD))),v=c?Math.max(0,_-1):_,y=l.slice(0,v),b=c?[...y,c]:y,E=b.map(e=>{let t=RD({actionManager:a,collaborator:e,socketId:e.socketId,shouldWrapWithTooltip:!0,isBeingFollowed:e.socketId===r});return e.isCurrentUser?(0,U.jsxs)(C,{children:[(0,U.jsx)(T,{asChild:!0,children:(0,U.jsxs)(`div`,{className:`UserList__pill`,children:[t,(0,U.jsx)(`div`,{className:`UserList__pill-chevron`,children:Um})]})}),(0,U.jsx)(x,{className:`focus-visible-none`,style:{zIndex:2,width:`15rem`,textAlign:`left`},align:`end`,sideOffset:10,children:(0,U.jsxs)(yh,{padding:2,children:[s.length>=PD&&(0,U.jsx)(tg,{placeholder:W(`quickSearch.placeholder`),onChange:d}),(0,U.jsx)(ng,{className:`dropdown-menu UserList__collaborators`,placeholder:W(`userList.empty`),children:f.length>0?[(0,U.jsx)(`div`,{className:`hint`,children:W(`userList.hint.text`)},`hint`),f.map(e=>RD({actionManager:a,collaborator:e,socketId:e.socketId,withName:!0,isBeingFollowed:e.socketId===r}))]:[]}),o&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`div`,{className:`UserList__menu-divider`}),(0,U.jsx)(w,{asChild:!0,children:(0,U.jsx)(`div`,{className:`dropdown-menu`,children:o})})]}),(0,U.jsx)(S,{width:20,height:10,style:{fill:`var(--popup-bg-color)`,filter:`drop-shadow(rgba(0, 0, 0, 0.05) 0px 3px 2px)`}})]})})]},e.socketId):t});return t?(0,U.jsxs)(`div`,{className:H(`UserList UserList_mobile`,e),children:[(0,U.jsx)(`div`,{className:`UserList_mobile__avatars`,children:s.map(e=>RD({actionManager:a,collaborator:e,socketId:e.socketId,shouldWrapWithTooltip:!0,isBeingFollowed:e.socketId===r}))}),o&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`div`,{className:`UserList__menu-divider`}),o]})]}):(0,U.jsx)(`div`,{className:`UserList__wrapper`,ref:p,children:(0,U.jsx)(`div`,{className:H(`UserList`,e),style:{"--max-avatars":b.length+(c?ID/FD:0)},children:E})})},(e,t)=>{if(e.collaborators.size!==t.collaborators.size||e.mobile!==t.mobile||e.className!==t.className||e.userToFollow!==t.userToFollow||e.currentUserControls!==t.currentUserControls)return!1;let n=t.collaborators.keys();for(let[r,i]of e.collaborators){let e=t.collaborators.get(r);if(!e||r!==n.next().value||!Dr(i,e,zD))return!1}return!0}),VD=e=>(0,U.jsx)(Jg,{label:`${W(`helpDialog.title`)} \u2014 ?`,children:(0,U.jsx)(`button`,{className:`help-icon`,onClick:e.onClick,type:`button`,"aria-label":W(`helpDialog.title`),children:cf})}),HD=({appState:e,actionManager:t,showExitZenModeBtn:n,renderWelcomeScreen:r,defaultUIEnabled:i,zoomUIEnabled:a})=>{let{FooterCenterTunnel:o,WelcomeScreenHelpHintTunnel:s}=bD(),c=aN();return(0,U.jsxs)(`footer`,{role:`contentinfo`,className:`layer-ui__wrapper__footer App-menu App-menu_bottom`,children:[(i||a&&c.isNavigationEnabled())&&(0,U.jsx)(`div`,{className:H(`layer-ui__wrapper__footer-left zen-mode-transition`,{"layer-ui__wrapper__footer-left--transition-left":e.zenModeEnabled}),children:(0,U.jsx)(Qb.Col,{gap:2,children:(0,U.jsxs)(MD,{heading:`canvasActions`,children:[a&&c.isNavigationEnabled()&&(0,U.jsx)(sS,{renderAction:t.renderAction}),i&&!e.viewModeEnabled&&(0,U.jsx)(cS,{renderAction:t.renderAction,className:H(`zen-mode-transition`,{"layer-ui__wrapper__footer-left--transition-bottom":e.zenModeEnabled})})]})})}),(0,U.jsx)(o.Out,{}),(i||r)&&(0,U.jsx)(`div`,{className:H(`layer-ui__wrapper__footer-right zen-mode-transition`,{"transition-right":e.zenModeEnabled}),children:(0,U.jsxs)(`div`,{style:{position:`relative`},children:[r&&(0,U.jsx)(s.Out,{}),i&&(0,U.jsx)(VD,{onClick:()=>t.executeAction(xv)})]})}),i&&(0,U.jsx)(lS,{actionManager:t,showExitZenModeBtn:n})]})},UD=HD;HD.displayName=`Footer`;var WD=V.createContext({}),GD=({children:e,className:t})=>{let n=sN(),r=(0,V.useContext)(WD),i=!!(n.canFitSidebar&&r.shouldRenderDockButton);return(0,U.jsxs)(`div`,{className:H(`sidebar__header`,t),"data-testid":`sidebar-header`,children:[e,(0,U.jsxs)(`div`,{className:`sidebar__header__buttons`,children:[i&&(0,U.jsx)(Jg,{label:W(`labels.sidebarLock`),children:(0,U.jsx)(Mx,{onSelect:()=>r.onDock?.(!r.docked),selected:!!r.docked,className:`sidebar__dock`,"data-testid":`sidebar-dock`,"aria-label":W(`labels.sidebarLock`),children:Ad})}),(0,U.jsx)(Mx,{"data-testid":`sidebar-close`,className:`sidebar__close`,onSelect:r.onCloseRequest,"aria-label":W(`buttons.close`),children:Gf})]})]})};GD.displayName=`SidebarHeader`;var KD=({children:e,tab:t,onSelect:n,...r})=>(0,U.jsx)(E,{value:t,asChild:!0,onSelect:n,children:(0,U.jsx)(`button`,{type:`button`,className:`excalidraw-button sidebar-tab-trigger`,...r,children:e})});KD.displayName=`SidebarTabTrigger`;var qD=({children:e,...t})=>(0,U.jsx)(ee,{className:`sidebar-triggers`,...t,children:e});qD.displayName=`SidebarTabTriggers`;var JD=({name:e,tab:t,icon:n,title:r,children:i,onToggle:a,className:o,style:s})=>{let c=fN(),l=lh().openSidebar?.name===e;return(0,U.jsx)(`button`,{type:`button`,title:r,className:`sidebar-trigger__label-element`,"aria-label":r,"aria-keyshortcuts":`0`,"aria-pressed":l,onClick:()=>{document.querySelector(`.layer-ui__wrapper`)?.classList.remove(`animate`);let n=!l;c({openSidebar:n?{name:e,tab:t}:null,openMenu:null,openPopup:null}),a?.(n)},children:(0,U.jsxs)(`div`,{className:H(`sidebar-trigger`,o),style:s,children:[n&&(0,U.jsx)(`div`,{children:n}),i&&(0,U.jsx)(`div`,{className:`sidebar-trigger__label`,children:i})]})})};JD.displayName=`SidebarTrigger`;var YD=({children:e,...t})=>{let n=lh(),r=fN();if(!n.openSidebar)return null;let{name:i}=n.openSidebar;return(0,U.jsx)(te,{className:`sidebar-tabs-root`,value:n.openSidebar.tab,onValueChange:e=>r(t=>({...t,openSidebar:{...t.openSidebar,name:i,tab:e}})),...t,children:e})};YD.displayName=`SidebarTabs`;var XD=({tab:e,children:t,...n})=>(0,U.jsx)(ne,{...n,value:e,"data-testid":e,children:t});XD.displayName=`SidebarTab`;var ZD=Tl(!1),QD=(0,V.forwardRef)(({name:e,children:t,onDock:n,docked:r,className:i,...a},o)=>{Jt()&&n&&r==null&&console.warn("Sidebar: `docked` must be set when `onDock` is supplied for the sidebar to be user-dockable. To hide this message, either pass `docked` or remove `onDock`");let s=fN(),c=od(ZD);(0,V.useLayoutEffect)(()=>(c(!!r),()=>{c(!1)}),[c,r]);let l=(0,V.useRef)({});l.current.onCloseRequest=()=>{s({openSidebar:null})},l.current.onDock=e=>n?.(e),l.current=xt(l.current,{docked:r,shouldRenderDockButton:!!n&&r!=null});let u=(0,V.useRef)(null);(0,V.useImperativeHandle)(o,()=>u.current);let d=sN(),f=(0,V.useCallback)(()=>{document.querySelector(`.Dialog`)||s({openSidebar:null})},[s]);return dh(u,(0,V.useCallback)(e=>{e.target.closest(`.sidebar-trigger`)||(!r||!d.canFitSidebar)&&f()},[f,r,d.canFitSidebar])),(0,V.useEffect)(()=>{let e=e=>{e.key===L.ESCAPE&&(!r||!d.canFitSidebar)&&f()};return document.addEventListener(z.KEYDOWN,e),()=>{document.removeEventListener(z.KEYDOWN,e)}},[f,r,d.canFitSidebar]),(0,U.jsx)(yh,{...a,className:H(sc.SIDEBAR,{"sidebar--docked":r},i),"data-viewport-ui":d.formFactor===`phone`?void 0:`side`,"data-viewport-ui-name":d.formFactor===`phone`?void 0:`sidebar`,ref:u,children:(0,U.jsx)(WD.Provider,{value:l.current,children:t})})});QD.displayName=`SidebarInner`;var $D=Object.assign((0,V.forwardRef)((e,t)=>{let n=lh(),{onStateChange:r}=e,i=(0,V.useRef)(n.openSidebar);(0,V.useEffect)(()=>{(!n.openSidebar&&i?.current?.name===e.name||n.openSidebar?.name===e.name&&i?.current?.name!==e.name||i.current?.name===e.name)&&n.openSidebar!==i.current&&r?.(n.openSidebar?.name===e.name?n.openSidebar:null),i.current=n.openSidebar},[n.openSidebar,r,e.name]);let[a,o]=(0,V.useState)(!1);return(0,V.useLayoutEffect)(()=>(o(!0),()=>o(!1)),[]),a&&n.openSidebar?.name===e.name?(0,V.createElement)(QD,{...e,ref:t,key:e.name}):null}),{Header:GD,TabTriggers:qD,TabTrigger:KD,Tabs:YD,Tab:XD,Trigger:JD});$D.displayName=`Sidebar`;var eO=(e,t)=>{let n=Tl(0),r=e=>{let{tunnelsJotai:{useAtom:r}}=bD(),[,i]=r(n),a=(0,V.useRef)({preferHost:!1,counter:0});return(0,V.useLayoutEffect)(()=>{let e=a.current;return i(t=>{let n=t+1;return e.counter=n,n}),()=>{i(t=>{let n=t-1;return e.counter=n,n||(e.preferHost=!1),n})}},[i]),e.__fallback||(a.current.preferHost=!0),!a.current.counter&&e.__fallback&&a.current.preferHost||a.current.counter>1&&e.__fallback?null:(0,U.jsx)(t,{...e})};return r.displayName=e,r},tO={};ae(tO,{ChangeCanvasBackground:()=>hO,ClearCanvas:()=>pO,CommandPalette:()=>uO,Export:()=>gO,Help:()=>fO,LiveCollaborationTrigger:()=>vO,LoadScene:()=>sO,Preferences:()=>OO,PreferencesToggleGridModeItem:()=>wO,PreferencesToggleZenModeItem:()=>TO,SaveAsImage:()=>lO,SaveToActiveFile:()=>cO,SearchMenu:()=>dO,Socials:()=>_O,ToggleTheme:()=>mO});var nO=Tl({active:!1});async function rO({title:e,description:t,actionLabel:n,color:r}){return new Promise(i=>{ud.set(nO,{active:!0,onConfirm:()=>i(!0),onClose:()=>i(!1),onReject:()=>i(!1),title:e,description:t,actionLabel:n,color:r})})}var iO=function({onChange:e,value:t,choices:n,name:r}){return(0,U.jsx)(`div`,{className:`RadioGroup`,children:n.map(n=>(0,U.jsxs)(`div`,{className:H(`RadioGroup__choice`,{active:n.value===t}),title:n.ariaLabel,children:[(0,U.jsx)(`input`,{name:r,type:`radio`,checked:n.value===t,onChange:()=>e(n.value),"aria-label":n.ariaLabel}),n.label]},String(n.value)))})},aO=({value:e,shortcut:t,onChange:n,choices:r,children:i,name:a,icon:o})=>{let s=sN();return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`div`,{className:`dropdown-menu-item-base dropdown-menu-item-bare`,children:[o&&(0,U.jsx)(`div`,{className:`dropdown-menu-item__icon`,children:o}),(0,U.jsx)(`label`,{className:`dropdown-menu-item__text`,children:(0,U.jsx)(cg,{children:i})}),(0,U.jsx)(iO,{name:a,value:e,onChange:n,choices:r})]}),t&&s.formFactor!==`phone`&&(0,U.jsx)(`div`,{className:`dropdown-menu-item__shortcut dropdown-menu-item__shortcut--orphaned`,children:t})]})};aO.displayName=`DropdownMenuItemContentRadio`;var oO=aO,sO=()=>{let{t:e}=Sd(),t=pN(),n=uN();return t.isActionEnabled(gv)?(0,U.jsx)(pg,{icon:vf,onSelect:async()=>{(!n.length||await rO({title:e(`overwriteConfirm.modal.loadFromFile.title`),actionLabel:e(`overwriteConfirm.modal.loadFromFile.button`),color:`warning`,description:(0,U.jsx)(Jb,{i18nKey:`overwriteConfirm.modal.loadFromFile.description`,bold:e=>(0,U.jsx)(`strong`,{children:e}),br:()=>(0,U.jsx)(`br`,{})})}))&&t.executeAction(gv)},"data-testid":`load-button`,shortcut:rb(`loadScene`),"aria-label":e(`buttons.load`),children:e(`buttons.load`)}):null};sO.displayName=`LoadScene`;var cO=()=>{let{t:e}=Sd(),t=pN();return t.isActionEnabled(mv)?(0,U.jsx)(pg,{shortcut:rb(`saveScene`),"data-testid":`save-button`,onSelect:()=>t.executeAction(mv),icon:gf,"aria-label":`${e(`buttons.save`)}`,children:`${e(`buttons.save`)}`}):null};cO.displayName=`SaveToActiveFile`;var lO=()=>{let e=fN(),{t}=Sd();return(0,U.jsx)(pg,{icon:Sf,"data-testid":`image-export-button`,onSelect:()=>e({openDialog:{name:`imageExport`}}),shortcut:rb(`imageExport`),"aria-label":t(`buttons.exportImage`),children:t(`buttons.exportImage`)})};lO.displayName=`SaveAsImage`;var uO=e=>{let t=fN(),{t:n}=Sd();return(0,U.jsx)(pg,{icon:hm,"data-testid":`command-palette-button`,onSelect:()=>{ih(`command_palette`,`open`,`menu`),t({openDialog:{name:`commandPalette`}})},shortcut:rb(`commandPalette`),"aria-label":n(`commandPalette.title`),className:e?.className,children:n(`commandPalette.title`)})};uO.displayName=`CommandPalette`;var dO=e=>{let{t}=Sd(),n=pN();return(0,U.jsx)(pg,{icon:um,"data-testid":`search-menu-button`,onSelect:()=>{n.executeAction(JC)},shortcut:rb(`searchMenu`),"aria-label":t(`search.title`),className:e?.className,children:t(`search.title`)})};dO.displayName=`SearchMenu`;var fO=()=>{let{t:e}=Sd(),t=pN();return(0,U.jsx)(pg,{"data-testid":`help-menu-item`,icon:cf,onSelect:()=>t.executeAction(xv),shortcut:`?`,"aria-label":e(`helpDialog.title`),children:e(`helpDialog.title`)})};fO.displayName=`Help`;var pO=()=>{let{t:e}=Sd(),t=od(fS);return pN().isActionEnabled($g)?(0,U.jsx)(pg,{icon:ef,onSelect:()=>t(`clearCanvas`),"data-testid":`clear-canvas-button`,"aria-label":e(`buttons.clearReset`),children:e(`buttons.clearReset`)}):null};pO.displayName=`ClearCanvas`;var mO=e=>{let{t}=Sd(),n=lh(),r=pN(),i=rb(`toggleTheme`),a=oN();return r.isActionEnabled(i_)?e?.allowSystemTheme?(0,U.jsx)(oO,{name:`theme`,value:e.theme,onChange:e=>{if(a.onThemeChange){a.onThemeChange(e);return}console.warn("MainMenu.DefaultItems.ToggleTheme: `<Excalidraw/> props.onThemeChange` must be defined to use system theme selection.")},choices:[{value:P.LIGHT,label:af,ariaLabel:`${t(`buttons.lightMode`)} - ${i}`},{value:P.DARK,label:rf,ariaLabel:`${t(`buttons.darkMode`)} - ${i}`},{value:`system`,label:Em,ariaLabel:t(`buttons.systemMode`)}],children:t(`labels.theme`)}):(0,U.jsx)(pg,{onSelect:e=>{e.preventDefault(),r.executeAction(i_)},icon:n.theme===P.DARK?af:rf,"data-testid":`toggle-dark-mode`,shortcut:i,"aria-label":n.theme===P.DARK?t(`buttons.lightMode`):t(`buttons.darkMode`),children:n.theme===P.DARK?t(`buttons.lightMode`):t(`buttons.darkMode`)}):null};mO.displayName=`ToggleTheme`;var hO=()=>{let{t:e}=Sd(),t=lh(),n=pN(),r=oN();return t.viewModeEnabled||!r.UIOptions.canvasActions.changeViewBackgroundColor?null:(0,U.jsxs)(`div`,{style:{marginTop:`0.75rem`},children:[(0,U.jsx)(`div`,{"data-testid":`canvas-background-label`,style:{fontSize:`0.875rem`,marginBottom:`0.25rem`,marginLeft:`0.5rem`},children:e(`labels.canvasBackground`)}),(0,U.jsx)(`div`,{style:{padding:`0 0.625rem`},children:n.renderAction(`changeViewBackgroundColor`)})]})};hO.displayName=`ChangeCanvasBackground`;var gO=()=>{let{t:e}=Sd(),t=fN();return(0,U.jsx)(pg,{icon:sf,onSelect:()=>{t({openDialog:{name:`jsonExport`}})},"data-testid":`json-export-button`,"aria-label":e(`buttons.export`),children:e(`buttons.export`)})};gO.displayName=`Export`;var _O=()=>{let{t:e}=Sd();return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(rx,{icon:df,href:`https://github.com/excalidraw/excalidraw`,"aria-label":`GitHub`,children:`GitHub`}),(0,U.jsx)(rx,{icon:pf,href:`https://x.com/excalidraw`,"aria-label":`X`,children:e(`labels.followUs`)}),(0,U.jsx)(rx,{icon:ff,href:`https://discord.gg/UexuTaE`,"aria-label":`Discord`,children:e(`labels.discordChat`)})]})};_O.displayName=`Socials`;var vO=({onSelect:e,isCollaborating:t})=>{let{t:n}=Sd();return(0,U.jsx)(pg,{"data-testid":`collab-button`,icon:Uf,className:H({"active-collab":t}),onSelect:e,children:n(`labels.liveCollaboration`)})};vO.displayName=`LiveCollaborationTrigger`;var yO=()=>{let{t:e}=Sd(),t=aN();return(0,U.jsx)(xx,{checked:lh().activeTool.locked,shortcut:rb(`toolLock`),onSelect:e=>{t.toggleLock(),e.preventDefault()},children:e(`labels.preferences_toolLock`)})},bO=()=>{let{t:e}=Sd(),t=lh(),n=fN();return(0,U.jsx)(oO,{name:`boxSelectionMode`,icon:Hm,value:t.boxSelectionMode,onChange:e=>{n({boxSelectionMode:e})},choices:[{value:`contain`,label:e(`labels.boxSelectionContain`),ariaLabel:e(`labels.boxSelectionContain`)},{value:`overlap`,label:e(`labels.boxSelectionOverlap`),ariaLabel:e(`labels.boxSelectionOverlap`)}],children:e(`labels.boxSelectionMode`)})},xO=()=>{let{t:e}=Sd(),t=pN();return(0,U.jsx)(xx,{checked:lh().objectsSnapModeEnabled,shortcut:rb(`objectsSnapMode`),onSelect:e=>{t.executeAction(Yv),e.preventDefault()},children:e(`buttons.objectsSnapMode`)})},SO=()=>{let{t:e}=Sd(),t=pN();return(0,U.jsx)(xx,{checked:lh().bindingPreference===`enabled`,onSelect:e=>{t.executeAction(Xv),e.preventDefault()},children:e(`labels.arrowBinding`)})},CO=()=>{let{t:e}=Sd(),t=pN();return(0,U.jsx)(xx,{checked:lh().isMidpointSnappingEnabled,onSelect:e=>{t.executeAction(Zv),e.preventDefault()},children:e(`labels.midpointSnapping`)})},wO=()=>{let{t:e}=Sd(),t=pN();return(0,U.jsx)(xx,{checked:lh().gridModeEnabled,shortcut:rb(`gridMode`),onSelect:e=>{t.executeAction(qv),e.preventDefault()},children:e(`labels.toggleGrid`)})},TO=()=>{let{t:e}=Sd(),t=pN();return(0,U.jsx)(xx,{checked:lh().zenModeEnabled,shortcut:rb(`zenMode`),onSelect:e=>{t.executeAction(Jv),e.preventDefault()},children:e(`buttons.zenMode`)})},EO=()=>{let{t:e}=Sd(),t=pN(),n=lh();return t.isActionEnabled(Kx)?(0,U.jsx)(xx,{checked:n.viewModeEnabled,shortcut:rb(`viewMode`),onSelect:e=>{t.executeAction(Kx),e.preventDefault()},children:e(`labels.viewMode`)}):null},DO=()=>{let{t:e}=Sd(),t=pN();return(0,U.jsx)(xx,{checked:lh().stats.open,shortcut:rb(`stats`),onSelect:e=>{t.executeAction(Qv),e.preventDefault()},children:e(`stats.fullTitle`)})},OO=({children:e,additionalItems:t})=>{let{t:n}=Sd();return(0,U.jsxs)(vx,{children:[(0,U.jsx)(vx.Trigger,{icon:Gm,children:n(`labels.preferences`)}),(0,U.jsxs)(vx.Content,{className:`excalidraw-main-menu-preferences-submenu`,children:[e||(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(bO,{}),(0,U.jsx)(yO,{}),(0,U.jsx)(xO,{}),(0,U.jsx)(wO,{}),(0,U.jsx)(TO,{}),(0,U.jsx)(EO,{}),(0,U.jsx)(DO,{}),(0,U.jsx)(SO,{}),(0,U.jsx)(CO,{})]}),t]})]})};OO.ToggleToolLock=yO,OO.BoxSelectionMode=bO,OO.ToggleSnapMode=xO,OO.ToggleArrowBinding=SO,OO.ToggleMidpointSnapping=CO,OO.ToggleGridMode=wO,OO.ToggleZenMode=TO,OO.ToggleViewMode=EO,OO.ToggleElementProperties=DO,OO.displayName=`Preferences`;var kO=Object.assign(eO(`MainMenu`,({children:e,onSelect:t})=>{let{MainMenuTunnel:n}=bD(),r=sN(),i=lh(),a=oN(),o=fN();return(0,U.jsx)(n.In,{children:(0,U.jsxs)(Z,{open:i.openMenu===`canvas`,children:[(0,U.jsx)(Z.Trigger,{onToggle:()=>{o({openMenu:i.openMenu===`canvas`?null:`canvas`,openPopup:null,openDialog:null})},"data-testid":`main-menu-trigger`,className:`main-menu-trigger`,children:of}),(0,U.jsxs)(Z.Content,{onClickOutside:()=>o({openMenu:null}),onSelect:us(t,()=>{o({openMenu:null})}),className:`main-menu`,align:`start`,children:[e,r.formFactor===`phone`&&i.collaborators.size>0&&(0,U.jsxs)(`fieldset`,{className:`UserList-Wrapper`,children:[(0,U.jsx)(`legend`,{children:W(`labels.collaborators`)}),(0,U.jsx)(BD,{mobile:!0,collaborators:i.collaborators,userToFollow:a.userToFollow?.socketId||null,currentUserControls:a.currentUserControls})]})]})]})})}),{Trigger:Z.Trigger,Item:Z.Item,ItemLink:Z.ItemLink,ItemCustom:Z.ItemCustom,Group:Z.Group,Separator:Z.Separator,Sub:vx,DefaultItems:tO}),AO=(0,V.forwardRef)(({children:e,icon:t,onClick:n,label:r,variant:i=`filled`,color:a=`primary`,size:o=`medium`,fullWidth:s,className:c,status:l,disabled:u},d)=>{let[f,p]=(0,V.useState)(!1),m=async e=>{let t=n?.(e);if(kn(t)){let e=window.setTimeout(()=>{p(!0)},50);try{await t}catch(e){if(e instanceof Ys)console.warn(e);else throw e}finally{clearTimeout(e),p(!1)}}},h=f?`loading`:l;return a=h===`success`?`success`:a,(0,U.jsx)(`button`,{className:H(`ExcButton`,`ExcButton--color-${a}`,`ExcButton--variant-${i}`,`ExcButton--size-${o}`,`ExcButton--status-${h}`,{"ExcButton--fullWidth":s},c),onClick:m,type:`button`,"aria-label":r,ref:d,disabled:u||h===`loading`||h===`success`,children:(0,U.jsxs)(`div`,{className:`ExcButton__contents`,children:[h===`loading`?(0,U.jsx)(Km,{className:`ExcButton__statusIcon`}):h===`success`&&(0,U.jsx)(`div`,{className:`ExcButton__statusIcon`,children:qp}),t&&(0,U.jsx)(`div`,{className:`ExcButton__icon`,"aria-hidden":!0,children:t}),i!==`icon`&&(e??r)]})})}),jO=({title:e,children:t,actionLabel:n,onClick:r})=>(0,U.jsxs)(`div`,{className:`OverwriteConfirm__Actions__Action`,children:[(0,U.jsx)(`h4`,{children:e}),(0,U.jsx)(`div`,{className:`OverwriteConfirm__Actions__Action__content`,children:t}),(0,U.jsx)(AO,{variant:`outlined`,color:`muted`,label:n,size:`large`,fullWidth:!0,onClick:r})]}),MO=Object.assign(({children:e})=>(0,U.jsx)(`div`,{className:`OverwriteConfirm__Actions`,children:e}),{ExportToImage:()=>{let{t:e}=Sd(),t=pN(),n=fN();return(0,U.jsx)(jO,{title:e(`overwriteConfirm.action.exportToImage.title`),actionLabel:e(`overwriteConfirm.action.exportToImage.button`),onClick:()=>{t.executeAction(lv,`ui`,!0),n({openDialog:{name:`imageExport`}})},children:e(`overwriteConfirm.action.exportToImage.description`)})},SaveToDisk:()=>{let{t:e}=Sd(),t=pN();return(0,U.jsx)(jO,{title:e(`overwriteConfirm.action.saveToDisk.title`),actionLabel:e(`overwriteConfirm.action.saveToDisk.button`),onClick:()=>{t.executeAction(hv,`ui`)},children:e(`overwriteConfirm.action.saveToDisk.description`)})}}),NO=Object.assign(eO(`OverwriteConfirmDialog`,({children:e})=>{let{OverwriteConfirmDialogTunnel:t}=bD(),[n,r]=ad(nO);return n.active?(0,U.jsx)(t.In,{children:(0,U.jsx)(Gx,{onCloseRequest:()=>{n.onClose(),r(e=>({...e,active:!1}))},title:!1,size:916,children:(0,U.jsxs)(`div`,{className:`OverwriteConfirm`,children:[(0,U.jsx)(`h3`,{children:n.title}),(0,U.jsxs)(`div`,{className:`OverwriteConfirm__Description OverwriteConfirm__Description--color-${n.color}`,children:[(0,U.jsx)(`div`,{className:`OverwriteConfirm__Description__icon`,children:Jp}),(0,U.jsx)(`div`,{children:n.description}),(0,U.jsx)(`div`,{className:`OverwriteConfirm__Description__spacer`}),(0,U.jsx)(AO,{color:n.color,size:`large`,label:n.actionLabel,onClick:()=>{n.onConfirm(),r(e=>({...e,active:!1}))}})]}),(0,U.jsx)(MO,{children:e})]})})}):null}),{Actions:MO,Action:jO}),PO=Tl(``),FO=Tl(null),IO=350,LO=()=>{let e=aN(),t=fN(),n=(0,V.useRef)(null),[r,i]=ad(PO),a=r.trim(),[o,s]=(0,V.useState)(!1),[c,l]=(0,V.useState)({nonce:null,items:[]}),u=(0,V.useRef)(null),d=(0,V.useRef)(void 0),[f,p]=ad(FO);(0,V.useEffect)(()=>{o||(a!==u.current||e.scene.getSceneNonce()!==d.current)&&(u.current=null,GO(a,e,(n,r)=>{l({nonce:bo(),items:n}),u.current=a,d.current=e.scene.getSceneNonce(),t({searchMatches:n.length?{focusedId:null,matches:n.map(e=>({id:e.element.id,focus:!1,matchedLines:e.matchedLines}))}:null})}))},[o,a,e.scene.getNonDeletedElementsMap(),e,t,p,d]);let m=()=>{c.items.length>0&&p(e=>e===null?0:(e+1)%c.items.length)},h=()=>{c.items.length>0&&p(e=>e===null?0:e-1<0?c.items.length-1:e-1)};(0,V.useEffect)(()=>{t(e=>e.searchMatches?{searchMatches:{focusedId:f!==null&&e.searchMatches?.matches[f]?.id||null,matches:e.searchMatches.matches.map((e,t)=>t===f?{...e,focus:!0}:{...e,focus:!1})}}:null)},[f,t]),(0,V.useEffect)(()=>{if(c.items.length>0&&f!==null){let t=c.items[f];if(t){let n=e.state.zoom.value,r=Pe({text:t.searchQuery,x:t.element.x+(t.matchedLines[0]?.offsetX??0),y:t.element.y+(t.matchedLines[0]?.offsetY??0),width:t.matchedLines[0]?.width,height:t.matchedLines[0]?.height,fontSize:F(t.element)?Vi.nameFontSize:t.element.fontSize,fontFamily:F(t.element)?As.Assistant:t.element.fontFamily}),i=r.fontSize,a=i*n<14;if(!Oi([r],e.canvas.width/window.devicePixelRatio,e.canvas.height/window.devicePixelRatio,{offsetLeft:e.state.offsetLeft,offsetTop:e.state.offsetTop,scrollX:e.state.scrollX,scrollY:e.state.scrollY,zoom:e.state.zoom},e.scene.getNonDeletedElementsMap(),e.viewport.getOffsets())||a){let t=a&&i<14?`contain`:`scale-down`;e.viewport.setViewport({target:bc([r]),fit:t,animation:{duration:300},offsets:{ui:!0}})}}}},[f,c,e]),(0,V.useEffect)(()=>()=>{p(null),u.current=null,d.current=void 0,t({searchMatches:null}),s(!1)},[t,p]);let g=fh({goToNextItem:m,goToPreviousItem:h,searchMatches:c});(0,V.useEffect)(()=>xc(window,z.KEYDOWN,r=>{if(r.key===L.ESCAPE&&!e.state.openDialog&&!e.state.openPopup){r.preventDefault(),r.stopPropagation(),t({openSidebar:null});return}if(r[L.CTRL_OR_CMD]&&r.key===L.F){if(r.preventDefault(),r.stopPropagation(),e.state.openDialog)return;n.current?.matches(`:focus`)||(e.state.openDialog&&t({openDialog:null}),n.current?.focus(),n.current?.select())}r.target instanceof HTMLElement&&r.target.closest(`.layer-ui__search`)&&g.searchMatches.items.length&&(r.key===L.ENTER&&(r.stopPropagation(),g.goToNextItem()),r.key===L.ARROW_UP?(r.stopPropagation(),g.goToPreviousItem()):r.key===L.ARROW_DOWN&&(r.stopPropagation(),g.goToNextItem()))},{capture:!0,passive:!1}),[t,g,e]);let _=`${c.items.length} ${c.items.length===1?W(`search.singleResult`):W(`search.multipleResults`)}`;return(0,U.jsxs)(`div`,{className:`layer-ui__search`,children:[(0,U.jsx)(`div`,{className:`layer-ui__search-header`,children:(0,U.jsx)(Nx,{className:sc.SEARCH_MENU_INPUT_WRAPPER,value:r,ref:n,placeholder:W(`search.placeholder`),icon:um,onChange:n=>{i(n),s(!0);let r=n.trim();GO(r,e,(n,i)=>{l({nonce:bo(),items:n}),p(i),u.current=r,d.current=e.scene.getSceneNonce(),t({searchMatches:n.length?{focusedId:null,matches:n.map(e=>({id:e.element.id,focus:!1,matchedLines:e.matchedLines}))}:null}),s(!1)})},selectOnRender:!0})}),(0,U.jsxs)(`div`,{className:`layer-ui__search-count`,children:[c.items.length>0&&(0,U.jsxs)(U.Fragment,{children:[f!==null&&f>-1?(0,U.jsxs)(`div`,{children:[f+1,` / `,_]}):(0,U.jsx)(`div`,{children:_}),(0,U.jsxs)(`div`,{className:`result-nav`,children:[(0,U.jsx)(Mx,{onSelect:()=>{m()},className:`result-nav-btn`,children:Nm}),(0,U.jsx)(Mx,{onSelect:()=>{h()},className:`result-nav-btn`,children:Fm})]})]}),c.items.length===0&&a&&u.current&&(0,U.jsx)(`div`,{style:{margin:`1rem auto`},children:W(`search.noMatch`)})]}),(0,U.jsx)(zO,{matches:c,onItemClick:p,focusIndex:f,searchQuery:a})]})},RO=e=>{let t=[e.preview.moreBefore?`...`:``,e.preview.previewText.slice(0,e.preview.indexInSearchQuery),e.preview.previewText.slice(e.preview.indexInSearchQuery,e.preview.indexInSearchQuery+e.searchQuery.length),e.preview.previewText.slice(e.preview.indexInSearchQuery+e.searchQuery.length),e.preview.moreAfter?`...`:``];return(0,U.jsx)(`div`,{tabIndex:-1,className:H(`layer-ui__result-item`,{active:e.highlighted}),onClick:e.onClick,ref:t=>{e.highlighted&&t?.scrollIntoView({behavior:`auto`,block:`nearest`})},children:(0,U.jsx)(`div`,{className:`preview-text`,children:t.flatMap((e,t)=>(0,U.jsx)(V.Fragment,{children:t===2?(0,U.jsx)(`b`,{children:e}):e},t))})})},zO=(0,V.memo)(e=>{let t=(0,V.useMemo)(()=>e.matches.items.filter(e=>F(e.element)),[e.matches]),n=(0,V.useMemo)(()=>e.matches.items.filter(e=>I(e.element)),[e.matches]);return(0,U.jsxs)(`div`,{children:[t.length>0&&(0,U.jsxs)(`div`,{className:`layer-ui__search-result-container`,children:[(0,U.jsxs)(`div`,{className:`layer-ui__search-result-title`,children:[(0,U.jsx)(`div`,{className:`title-icon`,children:Zp}),(0,U.jsx)(`div`,{children:W(`search.frames`)})]}),t.map((t,n)=>(0,U.jsx)(RO,{searchQuery:e.searchQuery,preview:t.preview,highlighted:n===e.focusIndex,onClick:()=>e.onItemClick(n)},t.element.id+t.index)),n.length>0&&(0,U.jsx)(`div`,{className:`layer-ui__divider`})]}),n.length>0&&(0,U.jsxs)(`div`,{className:`layer-ui__search-result-container`,children:[(0,U.jsxs)(`div`,{className:`layer-ui__search-result-title`,children:[(0,U.jsx)(`div`,{className:`title-icon`,children:qd}),(0,U.jsx)(`div`,{children:W(`search.texts`)})]}),n.map((n,r)=>(0,U.jsx)(RO,{searchQuery:e.searchQuery,preview:n.preview,highlighted:r+t.length===e.focusIndex,onClick:()=>e.onItemClick(r+t.length)},n.element.id+n.index))]})]})},(e,t)=>e.matches.nonce===t.matches.nonce&&e.focusIndex===t.focusIndex),BO=(e,t,n)=>{let r=e.slice(0,t),i=r.split(/\s+/),a=r.endsWith(` `),o=i.length-2-1-!a,s=i.slice(o<=0?0:o).join(` `)+(a?` `:``);s=s.length>20?s.slice(-20):s;let c=e.slice(t+n.length),l=c.split(/\s+/),u=!c.startsWith(` `),d=u?6:5,f=(u?``:` `)+l.slice(0,d).join(` `);return{indexInSearchQuery:s.length,previewText:s+n+f,moreBefore:o>0,moreAfter:l.length>d}},VO=(e,t)=>{let n=e.split(`
20
20
  `),r=[],i=0;for(let e=0;e<n.length;e++){let a=n[e],o=n[e+1];if(o){let e=t.indexOf(o,i);if(e>a.length+i){let t=e-(a.length+i);for(;t>0;)a+=` `,t--}}r.push(a),i+=a.length}return r.join(`
21
21
  `)},HO=(e,t,n)=>{let r=VO(e.text,e.originalText).split(`
22
- `),i=[],a=0,o=0;for(let e of r){let t=a,n=t+e.length-1;i.push({line:e,startIndex:t,endIndex:n,lineNumber:o}),a=n+1,o++}let s=n,c=e.originalText.slice(n,n+t.length),l=[];for(let t of i){if(c===``)break;if(s>=t.startIndex&&s<=t.endIndex){let n=t.endIndex+1-s,r=t.line.slice(0,s-t.startIndex),i=c.slice(0,n);c=c.slice(n);let a=eo(r,Ve(e),e.lineHeight);if(r===``&&(a.width=0),e.textAlign!==`left`&&t.line.length>0){let n=eo(t.line,Ve(e),e.lineHeight),r=e.textAlign===`center`?(e.width-n.width)/2:e.width-n.width;a.width+=r}let{width:o,height:u}=eo(i,Ve(e),e.lineHeight),d=a.width,f=t.lineNumber*a.height;l.push({offsetX:d,offsetY:f,width:o,height:u,showOnCanvas:!0}),s+=n}}return l},UO=(e,t,n,r)=>{let i=e.name??nc(e),a=i.slice(n,n+t.length),o=i.slice(0,n),s=Ve({fontSize:Vi.nameFontSize,fontFamily:As.Assistant}),c=za(As.Assistant),l=eo(o,s,c);o===``&&(l.width=0);let u=eo(a,s,c),d=l.width,f=-l.height-Vi.strokeWidth,p=u.width;return[{offsetX:d,offsetY:f,width:p,height:u.height,showOnCanvas:d+p<=e.width*r}]},WO=e=>e.replace(/[.*+?^${}()|[\]\\-]/g,`\\$&`),GO=(0,rd.default)((e,t,n)=>{if(!e||e===``){n([],null);return}let r=t.scene.getNonDeletedElements(),i=r.filter(e=>I(e)),a=r.filter(e=>F(e));i.sort((e,t)=>e.y-t.y),a.sort((e,t)=>e.y-t.y);let o=[],s=new RegExp(WO(e),`gi`);for(let t of i){let n=null,r=t.originalText;for(;(n=s.exec(r))!==null;){let i=BO(r,n.index,e),a=HO(t,e,n.index);a.length>0&&o.push({element:t,searchQuery:e,preview:i,index:n.index,matchedLines:a})}}let c=[];for(let n of a){let r=null,i=n.name??nc(n);for(;(r=s.exec(i))!==null;){let a=BO(i,r.index,e),o=UO(n,e,r.index,t.state.zoom.value);o.length>0&&c.push({element:n,searchQuery:e,preview:a,index:r.index,matchedLines:o})}}let l=new Set(t.visibleElements.map(e=>e.id)),u=[...c,...o];n(u,u.findIndex(e=>l.has(e.element.id))??null)},IO),KO=eO(`DefaultSidebarTrigger`,e=>{let{DefaultSidebarTriggerTunnel:t}=bD();return(0,U.jsx)(t.In,{children:(0,U.jsx)($D.Trigger,{...e,className:`default-sidebar-trigger`,name:Vr.name})})});KO.displayName=`DefaultSidebarTrigger`;var qO=({children:e})=>{let{DefaultSidebarTabTriggersTunnel:t}=bD();return(0,U.jsx)(t.In,{children:e})};qO.displayName=`DefaultTabTriggers`;var JO=Object.assign(eO(`DefaultSidebar`,({children:e,className:t,onDock:n,docked:r,...i})=>{let a=lh(),o=fN(),{DefaultSidebarTabTriggersTunnel:s}=bD(),c=a.openSidebar?.tab===Xa;return(0,V.createElement)($D,{...i,name:`default`,key:`default`,className:H(`default-sidebar`,t),docked:c||(r??a.defaultSidebarDockedPreference),onDock:c||n===!1||!n&&r!=null?void 0:us(n,e=>{o({defaultSidebarDockedPreference:e})})},(0,U.jsxs)($D.Tabs,{children:[(0,U.jsx)($D.Header,{children:(0,U.jsxs)($D.TabTriggers,{children:[(0,U.jsx)($D.TabTrigger,{tab:Xa,children:um}),(0,U.jsx)($D.TabTrigger,{tab:ro,children:Ed}),(0,U.jsx)(s.Out,{})]})}),(0,U.jsx)($D.Tab,{tab:ro,children:(0,U.jsx)(Hx,{})}),(0,U.jsx)($D.Tab,{tab:Xa,children:(0,U.jsx)(LO,{})}),e]}))}),{Trigger:KO,TabTriggers:qO}),YO=300,XO=({input:e,placeholder:t,onChange:n,onKeyboardSubmit:i,errorLine:a})=>{let o=(0,V.useRef)(null),s=(0,V.useRef)(i);s.current=i;let[c,l]=(0,V.useState)({type:`loading`}),[u,d]=(0,V.useState)(!1),{theme:f}=lh();if((0,V.useEffect)(()=>{let e=!1,t=setTimeout(()=>{e||d(!0)},YO);return r(()=>import(`./CodeMirrorEditor-UCMRAMCV-jW_2l0nP.js`).then(t=>{e||l({type:`ready`,component:t.default})}),__vite__mapDeps([66,2,67,68,69,1,70,71]),import.meta.url).catch(()=>{e||l({type:`fallback`})}).finally(()=>{clearTimeout(t)}),()=>{e=!0,clearTimeout(t)}},[]),(0,V.useEffect)(()=>{if(c.type!==`fallback`||!s.current)return;let e=o.current;if(e){let t=e=>{e[L.CTRL_OR_CMD]&&e.key===L.ENTER&&(e.preventDefault(),s.current?.())};return e.focus(),e.addEventListener(z.KEYDOWN,t),()=>{e.removeEventListener(z.KEYDOWN,t)}}},[c.type]),c.type===`ready`){let r=c.component;return(0,U.jsx)(r,{value:e,onChange:n,onKeyboardSubmit:i,placeholder:t,theme:f,errorLine:a})}return c.type===`fallback`?(0,U.jsx)(`textarea`,{className:`ttd-dialog-input`,onChange:e=>n(e.target.value),value:e,placeholder:t,ref:o}):u?(0,U.jsx)(`div`,{className:`ttd-dialog-input ttd-dialog-input--loading`,children:(0,U.jsx)(Km,{})}):null},ZO=/(?:Parse|Lexical) error on line (\d+)[.:]/i,QO=/Trying to inactivate an inactive participant \((.+)\)/i,$O=/^\s*-+\^\s*$/,ek=e=>ZO.test(e),tk=e=>ek(e)||QO.test(e),nk=e=>$O.test(e),rk=e=>{let t=e.match(QO);return t?.[1]?t[1].trim():null},ik=e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`),ak=(e,t)=>{let n=rk(e);if(!n)return null;let r=RegExp(`^\\s*deactivate\\s+${ik(n)}(?:\\s+%%.*)?\\s*$`),i=t.split(/\r?\n/);for(let e=i.length-1;e>=0;e--)if(r.test(i[e]))return e+1;return null},ok=(e,t)=>{let n=e.match(ZO);return n?Number.parseInt(n[1],10):t?ak(e,t):null},sk=(e,t)=>(e.match(t)||[]).length,ck=(e,t)=>{if(!ek(e))return null;let n=ok(e,t),r=n?`Syntax error near line ${n}.`:`Syntax error in Mermaid diagram.`,i=[];return t&&(sk(t,/\[/g)!==sk(t,/\]/g)&&i.push(`Unbalanced square brackets in a node label.`),sk(t,/\(/g)!==sk(t,/\)/g)&&i.push(`Unbalanced parentheses in a node shape.`),sk(t,/\{/g)!==sk(t,/\}/g)&&i.push(`Unbalanced braces in a decision node.`),sk(t,/^\s*subgraph\b/gm)>sk(t,/^\s*end\s*$/gm)&&i.push("A block is missing an `end` statement.")),(/got 'NODE_STRING'/.test(e)||/got 'PS'/.test(e))&&i.push(`An extra character/token may appear after a node or label definition.`),i.length===0&&(i.push(`A node or edge line is malformed (missing/extra delimiters).`),i.push("A block (`subgraph`, `class`, etc.) may be incomplete.")),{summary:r,likelyCauses:[...new Set(i)]}},lk=e=>ek(e)?e.replace(/\n\s*Expecting[\s\S]*$/,``).trimEnd():e,uk=({error:e,canvasRef:t,loaded:n,hideErrorDetails:r,sourceText:i,autoFixAvailable:a,onApplyAutoFix:o})=>{let s=e?r?W(`chat.errors.mermaidParseError`):lk(e.message):null,c=e&&!r?ck(e.message,i):null,l=!!a&&!!o&&!r,u=s?.split(/\r?\n/)??[];return(0,U.jsxs)(`div`,{className:`ttd-dialog-output-wrapper ${e?`ttd-dialog-output-wrapper--error`:``}`,children:[e&&(0,U.jsx)(`div`,{"data-testid":`ttd-dialog-output-error`,className:`ttd-dialog-output-error`,children:(0,U.jsxs)(`div`,{className:`ttd-dialog-output-error-content`,children:[(0,U.jsx)(`div`,{className:`ttd-dialog-output-error-icon`,children:Jp}),c&&(0,U.jsxs)(`div`,{className:`ttd-dialog-output-error-summary`,children:[(0,U.jsx)(`div`,{className:`ttd-dialog-output-error-summary__headline`,children:c.summary}),(0,U.jsx)(`div`,{className:`ttd-dialog-output-error-summary__label`,children:`Likely causes:`}),(0,U.jsx)(`ul`,{className:`ttd-dialog-output-error-summary__causes`,children:c.likelyCauses.map(e=>(0,U.jsx)(`li`,{children:e},e))})]}),(0,U.jsx)(`div`,{className:`ttd-dialog-output-error-message`,children:u.map((e,t)=>(0,U.jsxs)(`span`,{className:nk(e)?`ttd-dialog-output-error-message__caret`:void 0,children:[e,t<u.length-1?`
22
+ `),i=[],a=0,o=0;for(let e of r){let t=a,n=t+e.length-1;i.push({line:e,startIndex:t,endIndex:n,lineNumber:o}),a=n+1,o++}let s=n,c=e.originalText.slice(n,n+t.length),l=[];for(let t of i){if(c===``)break;if(s>=t.startIndex&&s<=t.endIndex){let n=t.endIndex+1-s,r=t.line.slice(0,s-t.startIndex),i=c.slice(0,n);c=c.slice(n);let a=eo(r,Ve(e),e.lineHeight);if(r===``&&(a.width=0),e.textAlign!==`left`&&t.line.length>0){let n=eo(t.line,Ve(e),e.lineHeight),r=e.textAlign===`center`?(e.width-n.width)/2:e.width-n.width;a.width+=r}let{width:o,height:u}=eo(i,Ve(e),e.lineHeight),d=a.width,f=t.lineNumber*a.height;l.push({offsetX:d,offsetY:f,width:o,height:u,showOnCanvas:!0}),s+=n}}return l},UO=(e,t,n,r)=>{let i=e.name??nc(e),a=i.slice(n,n+t.length),o=i.slice(0,n),s=Ve({fontSize:Vi.nameFontSize,fontFamily:As.Assistant}),c=za(As.Assistant),l=eo(o,s,c);o===``&&(l.width=0);let u=eo(a,s,c),d=l.width,f=-l.height-Vi.strokeWidth,p=u.width;return[{offsetX:d,offsetY:f,width:p,height:u.height,showOnCanvas:d+p<=e.width*r}]},WO=e=>e.replace(/[.*+?^${}()|[\]\\-]/g,`\\$&`),GO=(0,rd.default)((e,t,n)=>{if(!e||e===``){n([],null);return}let r=t.scene.getNonDeletedElements(),i=r.filter(e=>I(e)),a=r.filter(e=>F(e));i.sort((e,t)=>e.y-t.y),a.sort((e,t)=>e.y-t.y);let o=[],s=new RegExp(WO(e),`gi`);for(let t of i){let n=null,r=t.originalText;for(;(n=s.exec(r))!==null;){let i=BO(r,n.index,e),a=HO(t,e,n.index);a.length>0&&o.push({element:t,searchQuery:e,preview:i,index:n.index,matchedLines:a})}}let c=[];for(let n of a){let r=null,i=n.name??nc(n);for(;(r=s.exec(i))!==null;){let a=BO(i,r.index,e),o=UO(n,e,r.index,t.state.zoom.value);o.length>0&&c.push({element:n,searchQuery:e,preview:a,index:r.index,matchedLines:o})}}let l=new Set(t.visibleElements.map(e=>e.id)),u=[...c,...o];n(u,u.findIndex(e=>l.has(e.element.id))??null)},IO),KO=eO(`DefaultSidebarTrigger`,e=>{let{DefaultSidebarTriggerTunnel:t}=bD();return(0,U.jsx)(t.In,{children:(0,U.jsx)($D.Trigger,{...e,className:`default-sidebar-trigger`,name:Vr.name})})});KO.displayName=`DefaultSidebarTrigger`;var qO=({children:e})=>{let{DefaultSidebarTabTriggersTunnel:t}=bD();return(0,U.jsx)(t.In,{children:e})};qO.displayName=`DefaultTabTriggers`;var JO=Object.assign(eO(`DefaultSidebar`,({children:e,className:t,onDock:n,docked:r,...i})=>{let a=lh(),o=fN(),{DefaultSidebarTabTriggersTunnel:s}=bD(),c=a.openSidebar?.tab===Xa;return(0,V.createElement)($D,{...i,name:`default`,key:`default`,className:H(`default-sidebar`,t),docked:c||(r??a.defaultSidebarDockedPreference),onDock:c||n===!1||!n&&r!=null?void 0:us(n,e=>{o({defaultSidebarDockedPreference:e})})},(0,U.jsxs)($D.Tabs,{children:[(0,U.jsx)($D.Header,{children:(0,U.jsxs)($D.TabTriggers,{children:[(0,U.jsx)($D.TabTrigger,{tab:Xa,children:um}),(0,U.jsx)($D.TabTrigger,{tab:ro,children:Ed}),(0,U.jsx)(s.Out,{})]})}),(0,U.jsx)($D.Tab,{tab:ro,children:(0,U.jsx)(Hx,{})}),(0,U.jsx)($D.Tab,{tab:Xa,children:(0,U.jsx)(LO,{})}),e]}))}),{Trigger:KO,TabTriggers:qO}),YO=300,XO=({input:e,placeholder:t,onChange:n,onKeyboardSubmit:i,errorLine:a})=>{let o=(0,V.useRef)(null),s=(0,V.useRef)(i);s.current=i;let[c,l]=(0,V.useState)({type:`loading`}),[u,d]=(0,V.useState)(!1),{theme:f}=lh();if((0,V.useEffect)(()=>{let e=!1,t=setTimeout(()=>{e||d(!0)},YO);return r(()=>import(`./CodeMirrorEditor-UCMRAMCV-BjEQv2x_.js`).then(t=>{e||l({type:`ready`,component:t.default})}),__vite__mapDeps([66,2,67,68,69,1,70,71]),import.meta.url).catch(()=>{e||l({type:`fallback`})}).finally(()=>{clearTimeout(t)}),()=>{e=!0,clearTimeout(t)}},[]),(0,V.useEffect)(()=>{if(c.type!==`fallback`||!s.current)return;let e=o.current;if(e){let t=e=>{e[L.CTRL_OR_CMD]&&e.key===L.ENTER&&(e.preventDefault(),s.current?.())};return e.focus(),e.addEventListener(z.KEYDOWN,t),()=>{e.removeEventListener(z.KEYDOWN,t)}}},[c.type]),c.type===`ready`){let r=c.component;return(0,U.jsx)(r,{value:e,onChange:n,onKeyboardSubmit:i,placeholder:t,theme:f,errorLine:a})}return c.type===`fallback`?(0,U.jsx)(`textarea`,{className:`ttd-dialog-input`,onChange:e=>n(e.target.value),value:e,placeholder:t,ref:o}):u?(0,U.jsx)(`div`,{className:`ttd-dialog-input ttd-dialog-input--loading`,children:(0,U.jsx)(Km,{})}):null},ZO=/(?:Parse|Lexical) error on line (\d+)[.:]/i,QO=/Trying to inactivate an inactive participant \((.+)\)/i,$O=/^\s*-+\^\s*$/,ek=e=>ZO.test(e),tk=e=>ek(e)||QO.test(e),nk=e=>$O.test(e),rk=e=>{let t=e.match(QO);return t?.[1]?t[1].trim():null},ik=e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`),ak=(e,t)=>{let n=rk(e);if(!n)return null;let r=RegExp(`^\\s*deactivate\\s+${ik(n)}(?:\\s+%%.*)?\\s*$`),i=t.split(/\r?\n/);for(let e=i.length-1;e>=0;e--)if(r.test(i[e]))return e+1;return null},ok=(e,t)=>{let n=e.match(ZO);return n?Number.parseInt(n[1],10):t?ak(e,t):null},sk=(e,t)=>(e.match(t)||[]).length,ck=(e,t)=>{if(!ek(e))return null;let n=ok(e,t),r=n?`Syntax error near line ${n}.`:`Syntax error in Mermaid diagram.`,i=[];return t&&(sk(t,/\[/g)!==sk(t,/\]/g)&&i.push(`Unbalanced square brackets in a node label.`),sk(t,/\(/g)!==sk(t,/\)/g)&&i.push(`Unbalanced parentheses in a node shape.`),sk(t,/\{/g)!==sk(t,/\}/g)&&i.push(`Unbalanced braces in a decision node.`),sk(t,/^\s*subgraph\b/gm)>sk(t,/^\s*end\s*$/gm)&&i.push("A block is missing an `end` statement.")),(/got 'NODE_STRING'/.test(e)||/got 'PS'/.test(e))&&i.push(`An extra character/token may appear after a node or label definition.`),i.length===0&&(i.push(`A node or edge line is malformed (missing/extra delimiters).`),i.push("A block (`subgraph`, `class`, etc.) may be incomplete.")),{summary:r,likelyCauses:[...new Set(i)]}},lk=e=>ek(e)?e.replace(/\n\s*Expecting[\s\S]*$/,``).trimEnd():e,uk=({error:e,canvasRef:t,loaded:n,hideErrorDetails:r,sourceText:i,autoFixAvailable:a,onApplyAutoFix:o})=>{let s=e?r?W(`chat.errors.mermaidParseError`):lk(e.message):null,c=e&&!r?ck(e.message,i):null,l=!!a&&!!o&&!r,u=s?.split(/\r?\n/)??[];return(0,U.jsxs)(`div`,{className:`ttd-dialog-output-wrapper ${e?`ttd-dialog-output-wrapper--error`:``}`,children:[e&&(0,U.jsx)(`div`,{"data-testid":`ttd-dialog-output-error`,className:`ttd-dialog-output-error`,children:(0,U.jsxs)(`div`,{className:`ttd-dialog-output-error-content`,children:[(0,U.jsx)(`div`,{className:`ttd-dialog-output-error-icon`,children:Jp}),c&&(0,U.jsxs)(`div`,{className:`ttd-dialog-output-error-summary`,children:[(0,U.jsx)(`div`,{className:`ttd-dialog-output-error-summary__headline`,children:c.summary}),(0,U.jsx)(`div`,{className:`ttd-dialog-output-error-summary__label`,children:`Likely causes:`}),(0,U.jsx)(`ul`,{className:`ttd-dialog-output-error-summary__causes`,children:c.likelyCauses.map(e=>(0,U.jsx)(`li`,{children:e},e))})]}),(0,U.jsx)(`div`,{className:`ttd-dialog-output-error-message`,children:u.map((e,t)=>(0,U.jsxs)(`span`,{className:nk(e)?`ttd-dialog-output-error-message__caret`:void 0,children:[e,t<u.length-1?`
23
23
  `:``]},`error-line-${t}`))}),!r&&(0,U.jsx)(`div`,{className:`ttd-dialog-output-error-autofix-slot`,children:l?(0,U.jsx)(Mx,{className:`ttd-dialog-panel-button ttd-dialog-output-error-autofix`,onSelect:o,children:W(`mermaid.autoFixAvailable`)}):null})]})},`error`),n?(0,U.jsx)(`div`,{className:H(`ttd-dialog-output-canvas-container`,{invisible:!!e}),children:(0,U.jsx)(`div`,{ref:t,className:`ttd-dialog-output-canvas-content`})},`canvas`):(0,U.jsx)(Km,{size:`2rem`})]})},dk=({label:e,children:t,panelActions:n=[],onTextSubmitInProgess:r,renderTopRight:i,renderSubmitShortcut:a,className:o,panelActionJustifyContent:s=`flex-start`})=>{let c=e=>{if(e?.variant===`link`)return(0,U.jsxs)(`button`,{className:H(`ttd-dialog-panel-action-link`,e.className),onClick:e.action,disabled:e?.disabled||r,type:`button`,children:[e.label,e.icon&&(0,U.jsx)(`span`,{className:`ttd-dialog-panel-action-link__icon`,children:e.icon})]});if(e?.variant===`button`)return(0,U.jsxs)(Mx,{className:H(`ttd-dialog-panel-button`,e.className),onSelect:e.action?e.action:()=>{},disabled:e?.disabled||r,children:[(0,U.jsxs)(`div`,{className:H({invisible:r}),children:[e?.label,e?.icon&&(0,U.jsx)(`span`,{children:e.icon})]}),r&&(0,U.jsx)(Km,{})]});if(e?.variant===`rateLimit`)return(0,U.jsx)(`div`,{className:H(`ttd-dialog-panel__rate-limit`,e.className),children:e.label})};return(0,U.jsxs)(`div`,{className:H(`ttd-dialog-panel`,o),children:[(e||i)&&(0,U.jsxs)(`div`,{className:`ttd-dialog-panel__header`,children:[typeof e==`string`?(0,U.jsx)(`label`,{children:e}):e,i?.()]}),t,(0,U.jsxs)(`div`,{className:H(`ttd-dialog-panel-button-container`,{invisible:!n.length}),style:{justifyContent:s},children:[n.filter(Boolean).map(e=>(0,U.jsx)(V.Fragment,{children:c(e)},e.label)),!r&&a?.()]})]})},fk=({children:e})=>(0,U.jsx)(`div`,{className:`ttd-dialog-panels`,children:e}),pk=()=>(0,U.jsxs)(`div`,{className:`ttd-dialog-submit-shortcut`,children:[(0,U.jsx)(`div`,{className:`ttd-dialog-submit-shortcut__key`,children:X(`CtrlOrCmd`)}),(0,U.jsx)(`div`,{className:`ttd-dialog-submit-shortcut__key`,children:X(`Enter`)})]}),mk=(e,t)=>{let n=ok(e,t);return n==null?null:n-1},hk=(e,t,n)=>{if(t<0||t>=e.length)return null;let r=n(e[t]);if(r===e[t])return null;let i=[...e];return i[t]=r,i.join(`
24
24
  `)},gk=e=>{let t=e.match(/^(.*(?:\[[^\]]*]|\([^)]*\)|\{[^}]*}|"(?:[^"]*)"|'(?:[^']*)'))([A-Za-z]+)\s*$/);if(t)return t[1];let n=e.match(/^(.*(?:\[[^\]]*]|\([^)]*\)|\{[^}]*}|"(?:[^"]*)"|'(?:[^']*)'))([,;:])\s*$/);return n?n[1]:e},_k=e=>e.replace(/(\|[^|\n]+\|)\s*>\s*(?=[A-Za-z0-9_("[{'`])/g,`$1 `),vk=e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`),yk=(e,t)=>{let n=RegExp(`^\\s*deactivate\\s+${vk(t)}(?:\\s+%%.*)?\\s*$`),r=e.split(/\r?\n/);for(let e=r.length-1;e>=0;e--)if(n.test(r[e]))return r.filter((t,n)=>n!==e).join(`
25
25
  `);return null},bk=(e,t)=>{let n=RegExp(`^\\s*deactivate\\s+${vk(t)}(?:\\s+%%.*)?\\s*$`),r=e.split(/\r?\n/),i=!1,a=r.filter(e=>n.test(e)?(i=!0,!1):!0);return i?a.join(`