ryugi-artifacts 1.111.1 → 1.111.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.cjs +178 -189
- package/dist/document-engine.cjs +365 -364
- package/dist/output-bootstrap.cjs +6 -0
- package/dist/viewer/{AgentDock-CWoAyInJ.js → AgentDock-DNQqAhwL.js} +1 -1
- package/dist/viewer/{ArtboardLayout-Gi_Rb33T.js → ArtboardLayout-DhDkHbEZ.js} +4 -4
- package/dist/viewer/ArtifactList-CIJ397ab.js +2 -0
- package/dist/viewer/{ArtifactModal-C88A7DQU.js → ArtifactModal-DB0IYuC1.js} +1 -1
- package/dist/viewer/{BottomSheet-mEENQhXo.js → BottomSheet-BW_wJMFp.js} +1 -1
- package/dist/viewer/{Canvas-TaGtArM2.js → Canvas-BYQwIEp8.js} +1 -1
- package/dist/viewer/{CommentPopover-C2IPynrs.js → CommentPopover-BAVI14g5.js} +1 -1
- package/dist/viewer/{DocumentExportMenu-BIqKgWsa.js → DocumentExportMenu-DTlIM3RY.js} +1 -1
- package/dist/viewer/DocumentLayout-GC7V-r9x.js +2 -0
- package/dist/viewer/DocumentPage-DGJI3MRN.css +1 -0
- package/dist/viewer/DocumentPage-VGYT1dwv.js +6 -0
- package/dist/viewer/{DraggablePanel-EaBQZRKM.js → DraggablePanel-C65i2w84.js} +1 -1
- package/dist/viewer/{DropdownMenu-DQ7lEE6T.js → DropdownMenu-BEm1VKG4.js} +1 -1
- package/dist/viewer/{GroupVerdict-DD1kDk8G.js → GroupVerdict-xCvmjuHr.js} +1 -1
- package/dist/viewer/{HtmlLayout-D-TZERzu.js → HtmlLayout-1FNzV2aF.js} +1 -1
- package/dist/viewer/{Input-CvF3Kvcn.js → Input-BYW6s1Mp.js} +1 -1
- package/dist/viewer/{MenuSubmenuTrigger-Demi4IDi.js → MenuSubmenuTrigger-N0gSsCFu.js} +1 -1
- package/dist/viewer/{PhoneArtboardBar-rLQn_4q_.js → PhoneArtboardBar-BE4COguE.js} +1 -1
- package/dist/viewer/{Popover-D_u_4_wg.js → Popover-wYD9C76P.js} +1 -1
- package/dist/viewer/{PreviewArtifactLayout-BHUwzgBB.js → PreviewArtifactLayout-DY0PE_JD.js} +1 -1
- package/dist/viewer/{PreviewLayout-BpjXLdCG.js → PreviewLayout-CGXVZ8O9.js} +2 -2
- package/dist/viewer/{ReportLayout-D1LIgrVQ.js → ReportLayout-DVS4Wlj7.js} +1 -1
- package/dist/viewer/{RyugiMark-9R6vd--o.js → RyugiMark-DX0a4DCl.js} +1 -1
- package/dist/viewer/{Segmented-3bO8HJP9.js → Segmented-VP3SXRwN.js} +1 -1
- package/dist/viewer/{SelectScrollUpArrow-fVYlV_Df.js → SelectScrollUpArrow-BX3R94uY.js} +1 -1
- package/dist/viewer/{SlidesLayout-Dz_-IKMP.js → SlidesLayout-DgbjE9Lt.js} +3 -3
- package/dist/viewer/SnapshotDocument-C9TX-FSh.js +1 -0
- package/dist/viewer/{SplitFrame-DA4AAPDo.js → SplitFrame-Dcnaq8wP.js} +1 -1
- package/dist/viewer/StoryboardLayout-CdmQ6orB.js +1 -0
- package/dist/viewer/{StoryboardRender-jleZrgMT.js → StoryboardRender-BIze6SXX.js} +1 -1
- package/dist/viewer/{ThreadView-CnA6USm2.js → ThreadView-DaFQCgD2.js} +1 -1
- package/dist/viewer/{Tooltip-CQeEn1SV.js → Tooltip-o_rfP_HJ.js} +1 -1
- package/dist/viewer/{VerifyLayout-BNP7tqV0.js → VerifyLayout-Bb3jG9Vs.js} +1 -1
- package/dist/viewer/{VirtualizedEditor-uWe43zaI-BIkoRwQ3.js → VirtualizedEditor-uWe43zaI-p6Poo88k.js} +1 -1
- package/dist/viewer/{VirtualizedRenderer-C_d95FXi-2b7OPnwv.js → VirtualizedRenderer-C_d95FXi-CdfZNPLY.js} +1 -1
- package/dist/viewer/{WarningsBadge-CeG9Jeoy.js → WarningsBadge-Dt9B62Lv.js} +1 -1
- package/dist/viewer/{WhiteboardEditor-cZ32fLqJ-CMLA7-B_.js → WhiteboardEditor-cZ32fLqJ-C-752weL.js} +1 -1
- package/dist/viewer/{WhiteboardLayout-DGtgw74y.js → WhiteboardLayout-D8rRjx28.js} +1 -1
- package/dist/viewer/{WritingCursor-DZpsfmLk.js → WritingCursor-CuFX07E7.js} +1 -1
- package/dist/viewer/{agentLook-CyO4F8iU.js → agentLook-DzniHdua.js} +1 -1
- package/dist/viewer/{artifact-list-RN5CJrRv.js → artifact-list-Fr-KUEdX.js} +1 -1
- package/dist/viewer/{auto-publish-Bi0UDEtZ.js → auto-publish-BbOfF73B.js} +1 -1
- package/dist/viewer/{channel-jqGSR_Ro.js → channel-DzrkQcu7.js} +3 -3
- package/dist/viewer/{crop-encode-rl31nonY.js → crop-encode-8R9JhWDY.js} +1 -1
- package/dist/viewer/{dist-pKV4elMd.js → dist-8kRZ-DmY.js} +1 -1
- package/dist/viewer/{dist-GpRxkRbr.js → dist-B2rD-K_b.js} +1 -1
- package/dist/viewer/{dist-DhndGvXA.js → dist-B7SeU7ls.js} +1 -1
- package/dist/viewer/{dist-Bvr9dBEb.js → dist-BJn9XX5G.js} +1 -1
- package/dist/viewer/{dist-BsfWp4zX.js → dist-BK0zW4F0.js} +1 -1
- package/dist/viewer/{dist-DNSLZUo8.js → dist-BSyKGs4m.js} +1 -1
- package/dist/viewer/{dist-CkTGObPZ.js → dist-BUaNTx10.js} +1 -1
- package/dist/viewer/{dist-CH_GsY4T.js → dist-B_6mmPhT.js} +1 -1
- package/dist/viewer/{dist-B84p7FkF.js → dist-BbFtHTx9.js} +1 -1
- package/dist/viewer/{dist-BRrJTxFx.js → dist-Beb0G_di.js} +1 -1
- package/dist/viewer/{dist-LCUvGvSd.js → dist-BgX4ookx.js} +1 -1
- package/dist/viewer/{dist-qW6Hen-W.js → dist-BnLvwQQv.js} +1 -1
- package/dist/viewer/{dist-DUMptS_V.js → dist-C3Jl33ad.js} +1 -1
- package/dist/viewer/{dist-SasXS60E.js → dist-CkvFIvPX.js} +1 -1
- package/dist/viewer/{dist-DNSe9Tqv.js → dist-Co9GKPVW.js} +1 -1
- package/dist/viewer/dist-D-zeJRi5.js +1 -0
- package/dist/viewer/{dist-BIffztgU.js → dist-D34ELCHp.js} +1 -1
- package/dist/viewer/{dist-DiUH0Im9.js → dist-DSE1NhEg.js} +1 -1
- package/dist/viewer/{dist-Bdr0VszO.js → dist-Ej0VEvln.js} +1 -1
- package/dist/viewer/{dist-BjhOApyG.js → dist-HluXHMoM.js} +1 -1
- package/dist/viewer/{dist-COgrXfeD.js → dist-L574jNIk.js} +1 -1
- package/dist/viewer/{dist-CwMTizME.js → dist-XV6aBGVF.js} +1 -1
- package/dist/viewer/{dist-Bqk2YFn6.js → dist-fvv20E5w.js} +1 -1
- package/dist/viewer/{dist-CwJVXdNr.js → dist-rCp_POQS.js} +1 -1
- package/dist/viewer/{editor-CAV9B3e1.js → editor-BzAfOnLe.js} +5 -5
- package/dist/viewer/{fit-NVG3gpEF.js → fit-DtKQjpsd.js} +1 -1
- package/dist/viewer/icons-BProV5Cr.js +1 -0
- package/dist/viewer/{imperative-Bgl4gxul.js → imperative-Cc6u4cUf.js} +1 -1
- package/dist/viewer/index.html +12 -12
- package/dist/viewer/index.js +2 -2
- package/dist/viewer/index5.css +0 -12
- package/dist/viewer/{local-Ddss5kK8.js → local-PYhzTkSH.js} +1 -1
- package/dist/viewer/{local-split-host-B1wOJhAJ.js → local-split-host-CQr5Kx5o.js} +1 -1
- package/dist/viewer/plugin-_bGVeqI0-BAx35_0K.js +2 -0
- package/dist/viewer/preview.html +3 -3
- package/dist/viewer/preview.js +1 -1
- package/dist/viewer/{printDocument-DAPZIhL_.js → printDocument-0PkGX8aJ.js} +1 -1
- package/dist/viewer/read-marks-CVVWpIvf.js +1 -0
- package/dist/viewer/{ref-Uot1XMTG.js → ref-BO544fjh.js} +1 -1
- package/dist/viewer/{route-B8QJSEdc.js → route-NVsY7tZE.js} +2 -2
- package/dist/viewer/{route-messages-CYk6OU35.js → route-messages-B1nbhOTn.js} +1 -1
- package/dist/viewer/settings-Z8yxICUI.js +1 -0
- package/dist/viewer/{snap-BuSVhxlu.js → snap-CAEDxoxY.js} +1 -1
- package/dist/viewer/{split-C0-FEpZ1.js → split-DALiSmeN.js} +2 -2
- package/dist/viewer/{stable-DBbxyzYt.js → stable-XuL29MqL.js} +1 -1
- package/dist/viewer/{styles-nBCP51Nu.js → styles-ziPlW3pq.js} +1 -1
- package/dist/viewer/{transport-t54pV_UD.js → transport-C6XSYsDg.js} +1 -1
- package/dist/viewer/{url-Bohryzyz.js → url-QVKv57mN.js} +1 -1
- package/dist/viewer/{useArtifactFeed-BQ5jbUBc.js → useArtifactFeed-Cm5-G2K3.js} +1 -1
- package/dist/viewer/{useArtifactSocket-Cvc_b9W2.js → useArtifactSocket-rdqBV2Ob.js} +1 -1
- package/dist/viewer/{useLayerZIndex-BIk9IpLI.js → useLayerZIndex-wejHdLn7.js} +1 -1
- package/dist/viewer/useStoryboardData-C36Xuri-.js +1 -0
- package/dist/viewer/{view-DXjSeYap.js → view-fl5_d-HX.js} +1 -1
- package/dist/viewer/{viewport-CFJHn_Y6-BbuENZ6x.js → viewport-CFJHn_Y6-UhXd2UV_.js} +1 -1
- package/package.json +2 -3
- package/dist/AppIcon.icns +0 -0
- package/dist/viewer/ArtifactList-B4vaV4LL.js +0 -2
- package/dist/viewer/DocumentLayout-Bhou7Erz.js +0 -2
- package/dist/viewer/DocumentPage-BAy4583P.css +0 -1
- package/dist/viewer/DocumentPage-CL8BHzvE.js +0 -3
- package/dist/viewer/SnapshotDocument-CfCZZ3Dl.js +0 -1
- package/dist/viewer/StoryboardLayout-Cx34TvDt.js +0 -1
- package/dist/viewer/dist-TjJSNbUu.js +0 -1
- package/dist/viewer/icons-CVwBATSw.js +0 -1
- package/dist/viewer/plugin-_bGVeqI0-BmwQlHbk.js +0 -2
- package/dist/viewer/settings-CZhwGDxV.js +0 -1
- package/dist/viewer/useStoryboardData-CwcNnZr7.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{t}from"./react-DlmbjZJV.js";import{B as n,n as r,o as i,z as a}from"./index.js";import{t as o}from"./useArtifactFeed-BQ5jbUBc.js";import{S as s,_ as c,a as l,b as u,c as d,d as f,f as p,g as m,h,i as g,l as _,m as v,n as y,o as b,p as x,r as S,s as C,t as w,v as T,x as E,y as D}from"./useStoryboardData-CwcNnZr7.js";import{_ as O,b as k}from"./route-B8QJSEdc.js";import{t as A}from"./WarningsBadge-CeG9Jeoy.js";import{t as ee}from"./useTypeFavicon-yXOsFZBx.js";import{t as j}from"./cssVar.stylex-CGbpAC1Y.js";import{t as te}from"./jsx-runtime-LKYXHABd.js";/* empty css */import{u as M}from"./stable-DBbxyzYt.js";import{cn as N,ln as P,pr as F,sn as I,sr as ne,un as re}from"./url-Bohryzyz.js";import{t as ie}from"./Segmented-3bO8HJP9.js";import{t as L}from"./clapperboard-BfpJ7tpa.js";import{t as R}from"./play-6FAfeM1L.js";import{t as ae}from"./video-DKoRqEZW.js";import{n as z}from"./imperative-Bgl4gxul.js";import{c as oe,n as se,o as ce}from"./ThreadView-CnA6USm2.js";import{t as le}from"./message-square-Yl8PoPy_.js";import{t as ue}from"./upload-DffL3XsM.js";import{En as de}from"./useLayerZIndex-BIk9IpLI.js";import{Dt as B}from"./MotionConfigContext-HC2vqcJO.js";import{t as fe}from"./DraggablePanel-EaBQZRKM.js";import{t as pe}from"./sliders-horizontal-CuS3-UwA.js";import{n as me,t as V}from"./styles-nBCP51Nu.js";import{t as he}from"./DropdownMenu-DQ7lEE6T.js";import{t as ge}from"./local-Ddss5kK8.js";import{i as _e,n as ve,r as ye,t as be}from"./zoom-out-DsmGFv1v.js";import{t as xe}from"./plus-DZJ2BVkK.js";import{t as Se}from"./maximize-2-Bc0lXBg6.js";import{t as Ce}from"./PlaybackIcon-D-vfZnSv.js";import{t as we}from"./Input-CvF3Kvcn.js";import{F as Te,P as Ee}from"./SelectScrollUpArrow-fVYlV_Df.js";import{i as De,n as Oe,r as ke}from"./stringifyLocale-D0juOOnH.js";import{t as Ae}from"./mouse-pointer-2-B-OF_fcG.js";import{t as je}from"./film-A6SU1RGC.js";var Me={name:`blend`,size:24,node:[[`circle`,{cx:`15`,cy:`9`,r:`7`,key:`1i12rt`}],[`circle`,{cx:`9`,cy:`15`,r:`7`,key:`19bs8k`}]]};Me.node;var Ne=B(Me),Pe={name:`captions-off`,size:24,node:[[`path`,{d:`M10.5 5H19a2 2 0 0 1 2 2v8.5`,key:`jqtk4d`}],[`path`,{d:`M17 11h-.5`,key:`1961ue`}],[`path`,{d:`M19 19H5a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2`,key:`1keqsi`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M7 11h4`,key:`1o1z6v`}],[`path`,{d:`M7 15h2.5`,key:`1ina1g`}]]};Pe.node;var Fe=B(Pe),Ie={name:`captions`,size:24,node:[[`rect`,{width:`18`,height:`14`,x:`3`,y:`5`,rx:`2`,ry:`2`,key:`12ruh7`}],[`path`,{d:`M7 15h4M15 15h2M7 11h2M13 11h4`,key:`1ueiar`}]],aliases:[`subtitles`]};Ie.node;var Le=B(Ie),Re={name:`git-compare`,size:24,node:[[`circle`,{cx:`18`,cy:`18`,r:`3`,key:`1xkwt0`}],[`circle`,{cx:`6`,cy:`6`,r:`3`,key:`1lh9wr`}],[`path`,{d:`M13 6h3a2 2 0 0 1 2 2v7`,key:`1yeb86`}],[`path`,{d:`M11 18H8a2 2 0 0 1-2-2V9`,key:`19pyzm`}]]};Re.node;var ze=B(Re),Be={name:`magnet`,size:24,node:[[`path`,{d:`m12 15 4 4`,key:`lnac28`}],[`path`,{d:`M2.352 10.648a1.205 1.205 0 0 0 0 1.704l2.296 2.296a1.205 1.205 0 0 0 1.704 0l6.029-6.029a1 1 0 1 1 3 3l-6.029 6.029a1.205 1.205 0 0 0 0 1.704l2.296 2.296a1.205 1.205 0 0 0 1.704 0l6.365-6.367A1 1 0 0 0 8.716 4.282z`,key:`nlhkjb`}],[`path`,{d:`m5 8 4 4`,key:`j6kj7e`}]]};Be.node;var Ve=B(Be),He={name:`message-square-plus`,size:24,node:[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}],[`path`,{d:`M12 8v6`,key:`1ib9pf`}],[`path`,{d:`M9 11h6`,key:`1fldmi`}]]};He.node;var Ue=B(He),We={name:`move-horizontal`,size:24,node:[[`path`,{d:`m18 8 4 4-4 4`,key:`1ak13k`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}],[`path`,{d:`m6 8-4 4 4 4`,key:`15zrgr`}]]};We.node;var Ge=B(We),Ke={name:`scan`,size:24,node:[[`path`,{d:`M3 7V5a2 2 0 0 1 2-2h2`,key:`aa7l1z`}],[`path`,{d:`M17 3h2a2 2 0 0 1 2 2v2`,key:`4qcy5o`}],[`path`,{d:`M21 17v2a2 2 0 0 1-2 2h-2`,key:`6vwrx8`}],[`path`,{d:`M7 21H5a2 2 0 0 1-2-2v-2`,key:`ioqczr`}]]};Ke.node;var qe=B(Ke),Je={name:`scissors`,size:24,node:[[`circle`,{cx:`6`,cy:`6`,r:`3`,key:`1lh9wr`}],[`path`,{d:`M8.12 8.12 12 12`,key:`1alkpv`}],[`path`,{d:`M20 4 8.12 15.88`,key:`xgtan2`}],[`circle`,{cx:`6`,cy:`18`,r:`3`,key:`fqmcym`}],[`path`,{d:`M14.8 14.8 20 20`,key:`ptml3r`}]]};Je.node;var Ye=B(Je),Xe={name:`skip-back`,size:24,node:[[`path`,{d:`M17.971 4.285A2 2 0 0 1 21 6v12a2 2 0 0 1-3.029 1.715l-9.997-5.998a2 2 0 0 1-.003-3.432z`,key:`15892j`}],[`path`,{d:`M3 20V4`,key:`1ptbpl`}]]};Xe.node;var Ze=B(Xe),Qe={name:`skip-forward`,size:24,node:[[`path`,{d:`M21 4v16`,key:`7j8fe9`}],[`path`,{d:`M6.029 4.285A2 2 0 0 0 3 6v12a2 2 0 0 0 3.029 1.715l9.997-5.998a2 2 0 0 0 .003-3.432z`,key:`zs4d6`}]]};Qe.node;var $e=B(Qe),et={name:`step-back`,size:24,node:[[`path`,{d:`M13.971 4.285A2 2 0 0 1 17 6v12a2 2 0 0 1-3.029 1.715l-9.997-5.998a2 2 0 0 1-.003-3.432z`,key:`19qhus`}],[`path`,{d:`M21 20V4`,key:`cb8qj8`}]]};et.node;var tt=B(et),nt={name:`step-forward`,size:24,node:[[`path`,{d:`M10.029 4.285A2 2 0 0 0 7 6v12a2 2 0 0 0 3.029 1.715l9.997-5.998a2 2 0 0 0 .003-3.432z`,key:`1ystz2`}],[`path`,{d:`M3 4v16`,key:`1ph11n`}]]};nt.node;var rt=B(nt),it={name:`volume-2`,size:24,node:[[`path`,{d:`M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z`,key:`uqj9uw`}],[`path`,{d:`M16 9a5 5 0 0 1 0 6`,key:`1q6k2b`}],[`path`,{d:`M19.364 18.364a9 9 0 0 0 0-12.728`,key:`ijwkga`}]]};it.node;var at=B(it),ot={name:`volume-x`,size:24,node:[[`path`,{d:`M11 4.702a.7.7 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.7.7 0 0 0 11 19.298z`,key:`1p7khw`}],[`path`,{d:`m16.5 14.5 5-5`,key:`cul3yw`}],[`path`,{d:`m16.5 9.5 5 5`,key:`1akey5`}]]};ot.node;var st=B(ot),H=e(t(),1);j.colorBorderSecondary;var U={threads:{k1xSpc:`x78zum5`,kXwgrk:`xdt5ytf`,kOIVth:`x17d4w8g`,kmVPX3:`x927fz6`,kt9PQ7:`xso031l`,kfdmCh:`x1q0q8m5`,kL6WhQ:`xtrfj0v`,$$css:!0},threadsDense:{kE3dHu:`xf18ygs`,kpe85a:`xnuq7ks`,$$css:!0},heading:{kmVPX3:`xlqrw7o`,kMwMTN:`xddlp02`,kGuDYH:`x1j6dyjg`,k63SB2:`x1s688f`,kP9fke:`xtvhhri`,kb6lSQ:`x1vyo3qp`,$$css:!0},card:{kmVPX3:`x2lkgqm`,kMzoRj:`xmkeg23`,ksu8eU:`x1y0btm7`,kVAM5u:`x12xov25`,kaIpWk:`xur7f20`,kWkggS:`x1rozbrz`,kkrTdU:`x1ypdohk`,kGuDYH:`xfifm61`,$$css:!0},open:{kmVPX3:`x1717udv`,kkrTdU:`xt0e3qv`,$$css:!0},resolved:{kSiTet:`x197sbye`,$$css:!0},meta:{k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kOIVth:`x17d4w8g`,kMwMTN:`xddlp02`,kGuDYH:`x1j6dyjg`,$$css:!0},chip:{k1xSpc:`x3nfvp2`,kGNEyG:`x6s0dn4`,kZKoxP:`xlup9mm`,kg3NbH:`xm9j1uf`,kaIpWk:`x12oqio5`,kWkggS:`xahzvm9`,kMwMTN:`x1bo0w0s`,kMv6JI:`x1b02387`,kGuDYH:`x1k6wstc`,$$css:!0},text:{keoZOQ:`xr9ek0c`,kMwMTN:`xo2rkog`,kHjlTd:`xj0a0fe`,$$css:!0},draft:{kMzoRj:`xmkeg23`,ksu8eU:`x1y0btm7`,kVAM5u:`x11cp7ww`,kaIpWk:`xur7f20`,kWkggS:`x1rozbrz`,$$css:!0},draftLabel:{kmVPX3:`x149dozy`,kMwMTN:`xddlp02`,kGuDYH:`x1j6dyjg`,$$css:!0},rowDraft:{kmVPX3:`x927fz6`,$$css:!0},button:{k1xSpc:`xwz0xwf`,kgQiWS:`x1ku5rj1`,kzqmXN:`x17z2i9w`,kZKoxP:`x17rw0jw`,kmVPX3:`x1717udv`,kMzoRj:`xc342km`,kaIpWk:`x1sxf85j`,kWkggS:`xjbqb8w xj0l527`,kMwMTN:`xddlp02`,kkrTdU:`x1ypdohk`,$$css:!0},layer:{kVAEAm:`x10l6tqk`,kpwlN0:`x10a8y8t`,kY2c9j:`xzkaem6`,kkrTdU:`xsid9ct`,kFalU9:`x5ve5x3`,$$css:!0},box:{kVAEAm:`x10l6tqk`,kMzoRj:`xdh2fpr`,ksu8eU:`x1y0btm7`,kVAM5u:`x11cp7ww`,kaIpWk:`x18zih8k`,kWkggS:`x8897o3`,kfzvcC:`x47corl`,$$css:!0}},W=te(),ct=e=>Math.round(Math.min(Math.max(e,0),1)*1e3)/1e3;function lt({mark:e,onMark:t}){let n=(0,H.useRef)(null),[r,i]=(0,H.useState)(null),a=(e,t,n)=>{let r=e.getBoundingClientRect();return{x:r.width?(t-r.left)/r.width:0,y:r.height?(n-r.top)/r.height:0}},o=(e,t)=>({x:ct(Math.min(e.x,t.x)),y:ct(Math.min(e.y,t.y)),w:ct(Math.abs(t.x-e.x)),h:ct(Math.abs(t.y-e.y))}),s=r??e;return(0,W.jsx)(`div`,{"data-mark-layer":``,onPointerDown:e=>{e.currentTarget.setPointerCapture?.(e.pointerId),n.current=a(e.currentTarget,e.clientX,e.clientY),i(null)},onPointerMove:e=>{n.current&&i(o(n.current,a(e.currentTarget,e.clientX,e.clientY)))},onPointerUp:e=>{if(!n.current)return;let r=o(n.current,a(e.currentTarget,e.clientX,e.clientY));n.current=null,i(null),t(r.w>.01&&r.h>.01?r:null)},...O(U.layer),children:s?(0,W.jsx)(`div`,{style:{left:`${s.x*100}%`,top:`${s.y*100}%`,width:`${s.w*100}%`,height:`${s.h*100}%`},...O(U.box)}):null})}j.colorBorderSecondary;var ut=`#0D99FF`,dt=`#7B61FF`,G={root:{kVAEAm:`xixxii4`,kpwlN0:`x10a8y8t`,k1xSpc:`xrvj5dj`,k9llMU:`x1swazf2`,kumcoG:`x1mkdm3x`,kWkggS:`x1rozbrz`,kMwMTN:`xo2rkog`,kMv6JI:`xqfszdh`,kGuDYH:`x4z9k3i`,$$css:!0},fill:{kVAEAm:`x1n2onr6`,kpwlN0:`x1anvkwx`,kUk6DE:`x98rzlu`,kAzted:`x2lwn1j`,kzqmXN:`xh8yej3`,kZKoxP:`x5yr21d`,$$css:!0},upper:{k1xSpc:`xrvj5dj`,kumcoG:`xx9t13c`,kAzted:`x2lwn1j`,$$css:!0},panel:{k1xSpc:`x78zum5`,kXwgrk:`xdt5ytf`,kZKoxP:`x5yr21d`,kAzted:`x2lwn1j`,k7Eaqz:`xeuugli`,$$css:!0},left:{kWqL5O:`xs1s249`,kSWEuD:`x32b0ac`,k26BEO:`x1vnv1x`,$$css:!0},right:{kZ1KPB:`xe0pwq`,k4WBpm:`x19ypqd9`,kaZRDh:`x1ukcur6`,$$css:!0},tabs:{kUk6DE:`x1okw0bk`,k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kOIVth:`x195vfkc`,kZKoxP:`x90ne7k`,kg3NbH:`xdqyycr`,kXHlph:`xw2csxc`,k5wCbM:`x1rohswg`,kWkggS:`x1rozbrz`,kt9PQ7:`xso031l`,kfdmCh:`x1q0q8m5`,kL6WhQ:`xtrfj0v`,$$css:!0},tab:{kUk6DE:`x1okw0bk`,khDVqt:`xuxw1ft`,k1xSpc:`x3nfvp2`,kGNEyG:`x6s0dn4`,kOIVth:`x1nejdyq`,kZKoxP:`xxk0z11`,kg3NbH:`xdqyycr`,kMzoRj:`xc342km`,kaIpWk:`x1sxf85j`,kWkggS:`xjbqb8w`,kMwMTN:`xddlp02`,kGuDYH:`xfifm61`,kkrTdU:`x1ypdohk`,$$css:!0},tabOn:{kMwMTN:`xo2rkog`,kWkggS:`xahzvm9`,$$css:!0},scroll:{k1xSpc:`x78zum5`,kUk6DE:`x98rzlu`,k7Eaqz:`xeuugli`,kAzted:`x2lwn1j`,$$css:!0},scrollViewport:{kUk6DE:`x98rzlu`,k7Eaqz:`xeuugli`,kAzted:`x2lwn1j`,kXHlph:`x6ikm8r`,kI3sdo:`x1a2a7pz`,$$css:!0},row:{k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kOIVth:`x167g77z`,kzqmXN:`xh8yej3`,k8WAf4:`x1t0vds8`,kg3NbH:`x1awh872`,kMzoRj:`xc342km`,kaIpWk:`x1kogg8i`,kWkggS:`xjbqb8w x9jwiqo`,kMwMTN:`x1bo0w0s`,kGuDYH:`xfifm61`,k9WMMc:`xdpxx8g`,kkrTdU:`x1ypdohk`,$$css:!0},rowOn:{kWkggS:`x1aw8e8p`,kMwMTN:`xo2rkog`,$$css:!0},rowName:{kUk6DE:`x98rzlu`,k7Eaqz:`xeuugli`,kVQacm:`xb3r6kr`,kg5iWk:`xlyipyv`,khDVqt:`xuxw1ft`,$$css:!0},chip:{kUk6DE:`x1okw0bk`,k1xSpc:`x3nfvp2`,kGNEyG:`x6s0dn4`,kOIVth:`x1jnr06f`,kZKoxP:`xmix8c7`,kg3NbH:`x1xijbu4`,kaIpWk:`x12oqio5`,kWkggS:`xahzvm9`,kMwMTN:`x1bo0w0s`,kMv6JI:`x1b02387`,kGuDYH:`x1j6dyjg`,kcqcaj:`xss6m8b`,$$css:!0},viewer:{k1xSpc:`x78zum5`,kXwgrk:`xdt5ytf`,k7Eaqz:`xeuugli`,kAzted:`x2lwn1j`,$$css:!0},panelTitle:{k1xSpc:`x3nfvp2`,kGNEyG:`x6s0dn4`,kOIVth:`x17d4w8g`,kg3NbH:`xdqyycr`,kMwMTN:`xo2rkog`,kGuDYH:`xfifm61`,k63SB2:`xk50ysn`,$$css:!0},viewerTitle:{k7Eaqz:`xeuugli`,kg3NbH:`xdqyycr`,kVQacm:`xb3r6kr`,kg5iWk:`xlyipyv`,khDVqt:`xuxw1ft`,kMwMTN:`xo2rkog`,kGuDYH:`xfifm61`,k63SB2:`xk50ysn`,$$css:!0},viewerIndex:{kMwMTN:`xddlp02`,k63SB2:`xo1l8bm`,$$css:!0},monitor:{kUk6DE:`x98rzlu`,k1xSpc:`x78zum5`,kXwgrk:`xdt5ytf`,kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,kOIVth:`x883omv`,k7Eaqz:`xeuugli`,kAzted:`x2lwn1j`,kmVPX3:`x1tamke2`,kWkggS:`x184qs1t`,$$css:!0},stage:{k9g6sI:`x12h1iku`,kVAEAm:`x1n2onr6`,kzqmXN:`xh8yej3`,kskxy:`x168i30x`,kVQacm:`xb3r6kr`,kaIpWk:`x1kogg8i`,kWkggS:`x15cjo92`,$$css:!0},transport:{k1xSpc:`xrvj5dj`,kumcoG:`x134kloy`,kGNEyG:`x6s0dn4`,kOIVth:`x17d4w8g`,kzqmXN:`xh8yej3`,$$css:!0},transportStart:{kFhvOy:`x1lqcxt8`,$$css:!0},transportGroup:{k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kOIVth:`x17d4w8g`,$$css:!0},transportEnd:{kFhvOy:`x1qab1bc`,$$css:!0},timecode:{kMv6JI:`x1b02387`,kGuDYH:`x4z9k3i`,k63SB2:`x1s688f`,kcqcaj:`xss6m8b`,$$css:!0},timecodeDim:{k63SB2:`xo1l8bm`,kMwMTN:`xddlp02`,$$css:!0},spacer:{kUk6DE:`x98rzlu`,$$css:!0},tool:{k1xSpc:`x3nfvp2`,kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,kOIVth:`x1jnr06f`,kZKoxP:`xd7y6wv`,k7Eaqz:`xlrd64x`,kg3NbH:`xm9j1uf`,kMzoRj:`xc342km`,kaIpWk:`x1kogg8i`,kWkggS:`xjbqb8w xj0l527`,kMwMTN:`x1bo0w0s`,kGuDYH:`xfifm61`,kkrTdU:`x1ypdohk xtgyt42`,kSiTet:`x1hc1fzr x1lfpgzf`,$$css:!0},toolOn:{kWkggS:`x1rozbrz`,kMwMTN:`xo2rkog`,kGVxlE:`xs625wh`,$$css:!0},play:{k1xSpc:`x3nfvp2`,kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,kzqmXN:`x1849jeq`,kZKoxP:`x1gnnpzl`,kMzoRj:`xc342km`,kaIpWk:`x16rqkct`,kWkggS:`x19ckca5`,kMwMTN:`xs0jrwl`,kkrTdU:`x1ypdohk`,$$css:!0},section:{kmVPX3:`x1gqud3g`,kt9PQ7:`xso031l`,kfdmCh:`x1q0q8m5`,kL6WhQ:`xtrfj0v`,$$css:!0},sectionTitle:{kogj98:`x1q6ys4k`,kGuDYH:`x1j6dyjg`,k63SB2:`xk50ysn`,kMwMTN:`xddlp02`,$$css:!0},fields:{k1xSpc:`xrvj5dj`,kumcoG:`x1kq99cu`,kGNEyG:`x6s0dn4`,kOIVth:`xbc5af1`,kogj98:`x1ghz6dp`,kGuDYH:`xfifm61`,$$css:!0},label:{kMwMTN:`xddlp02`,$$css:!0},value:{kogj98:`x1ghz6dp`,k1xSpc:`x3nfvp2`,kGNEyG:`x6s0dn4`,kZKoxP:`xxk0z11`,kg3NbH:`xlkn9b3`,kaIpWk:`x1sxf85j`,kWkggS:`x2fo67v`,kMv6JI:`x1b02387`,kcqcaj:`xss6m8b`,kFhvOy:`x1lqcxt8`,$$css:!0},panelBg:{kWkggS:`x12ilycc`,kMwMTN:`xo2rkog`,$$css:!0},binFoot:{kmVPX3:`x1ruevkc`,kEafiO:`x178xt8z`,kPef9Z:`x13fuv20`,kLZC3w:`xxu5053`,$$css:!0},hint:{kmVPX3:`x1tamke2`,kMwMTN:`xddlp02`,kGuDYH:`xfifm61`,kLWn49:`x1dbl2gt`,$$css:!0},timeline:{k1xSpc:`x78zum5`,kXwgrk:`xdt5ytf`,k7Eaqz:`xeuugli`,kfSwDN:`x87ps6o`,kEafiO:`x178xt8z`,kPef9Z:`x13fuv20`,kLZC3w:`xxu5053`,$$css:!0},toolbar:{k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kOIVth:`x17d4w8g`,kZKoxP:`xc9qbxq`,kg3NbH:`x1awh872`,kWkggS:`x184qs1t`,kt9PQ7:`xso031l`,kfdmCh:`x1q0q8m5`,kL6WhQ:`xtrfj0v`,$$css:!0},divider:{kzqmXN:`x1i1rx1s`,kZKoxP:`xlup9mm`,kUOVxO:`xjgtzcg`,kWkggS:`xh6qj2i`,$$css:!0},tracks:{kVAEAm:`x1n2onr6`,k7Eaqz:`xeuugli`,kXHlph:`xw2csxc`,kORKVm:`x10wlt62`,kvh3hx:`x7p5m3t`,$$css:!0},range:{kVAEAm:`x10l6tqk`,k87sOh:`x13vifvy`,krVfgx:`x1ey2m1c`,kWkggS:`xthf0r2`,kjGldf:`x1l0rsgs`,kJRH4f:`x1vxew43`,kzOINU:`x1l8qhl3`,kfzvcC:`x47corl`,$$css:!0},rangeShade:{kVAEAm:`x10l6tqk`,k87sOh:`xd402qu`,krVfgx:`x1ey2m1c`,kY2c9j:`xhtitgo`,kWkggS:`x12w3c0i`,kfzvcC:`x47corl`,$$css:!0},ruler:{kVAEAm:`x1n2onr6`,kZKoxP:`xd7y6wv`,kt9PQ7:`xso031l`,kfdmCh:`x1q0q8m5`,kL6WhQ:`xtrfj0v`,kkrTdU:`xsid9ct`,$$css:!0},tick:{kVAEAm:`x10l6tqk`,k87sOh:`x13vifvy`,kZKoxP:`xd7y6wv`,kZ1KPB:`xe0pwq`,k4WBpm:`x19ypqd9`,kaZRDh:`x1ukcur6`,$$css:!0},tickLabel:{kVAEAm:`x10l6tqk`,kbCHJM:`xcqyyxr`,k87sOh:`x1jzctok`,kMv6JI:`x1b02387`,kGuDYH:`x1k6wstc`,kMwMTN:`xddlp02`,$$css:!0},marker:{kVAEAm:`x10l6tqk`,k87sOh:`xfyf068`,kzqmXN:`x1wc42o8`,kZKoxP:`xegnrdp`,koQZXg:`x181ai7j`,kaIpWk:`x983p9h`,k3aq6I:`x1rr8tx7`,kWkggS:`x1f1btkr`,$$css:!0},track:{kVAEAm:`x1n2onr6`,k1xSpc:`x78zum5`,kt9PQ7:`xso031l`,kfdmCh:`x1q0q8m5`,kL6WhQ:`xtrfj0v`,$$css:!0},head:{kVAEAm:`x7wzq59`,kbCHJM:`xu96u03`,kY2c9j:`x16tb26j`,kUk6DE:`x1okw0bk`,k1xSpc:`xrvj5dj`,kumcoG:`x1gwc4ly`,kGNEyG:`x6s0dn4`,k1C7PZ:`x17zd0t2`,kzqmXN:`xylgo91`,kB7OPa:`x9f619`,kg3NbH:`x1awh872`,kWkggS:`x184qs1t`,kWqL5O:`xs1s249`,kSWEuD:`x32b0ac`,k26BEO:`x1vnv1x`,kGuDYH:`x1j6dyjg`,kMwMTN:`x1bo0w0s`,$$css:!0},code:{kMv6JI:`x1b02387`,k63SB2:`x1s688f`,kMwMTN:`xo2rkog`,$$css:!0},headName:{k7Eaqz:`xeuugli`,kVQacm:`xb3r6kr`,kg5iWk:`xlyipyv`,khDVqt:`xuxw1ft`,$$css:!0},headTool:{kzqmXN:`xw4jnvo`,kZKoxP:`x1qx5ct2`,k7Eaqz:`xt4ypqs`,kg3NbH:`xnjsko4`,$$css:!0},lane:{kVAEAm:`x1n2onr6`,kUk6DE:`x98rzlu`,$$css:!0},clip:{kVAEAm:`x10l6tqk`,k87sOh:`xxk6nc9`,krVfgx:`xy1j3rs`,kB7OPa:`x9f619`,kVQacm:`xb3r6kr`,k8WAf4:`xf4egzd`,kg3NbH:`x1xijbu4`,kMzoRj:`xc342km`,kaIpWk:`x12oqio5`,kGuDYH:`x1s31vzs`,k63SB2:`xk50ysn`,k9WMMc:`xdpxx8g`,khDVqt:`xuxw1ft`,kg5iWk:`xlyipyv`,kkrTdU:`x1ypdohk`,$$css:!0},picture:{kWkggS:`x1i3ricu`,kMwMTN:`x19qjqk`,$$css:!0},overlay:{kWkggS:`x1o5s4od`,kMwMTN:`x1elt9gp`,kGVxlE:`x1gulszm`,$$css:!0},captions:{kWkggS:`x1rozbrz`,kMwMTN:`x1bo0w0s`,kGVxlE:`xbot34g`,$$css:!0},voice:{kWkggS:`x1aw8e8p`,kMwMTN:`xlf6a2o`,kGVxlE:`x1o6ojoi`,$$css:!0},music:{kWkggS:`xrax2ds`,kMwMTN:`x1vjbsg6`,kGVxlE:`xpmlbop`,$$css:!0},sfx:{kWkggS:`x1oz5lax`,kMwMTN:`x29mykp`,kGVxlE:`xca7vp3`,$$css:!0},selected:{kI3sdo:`x1er58js`,kInvED:`x1wfwxd8`,$$css:!0},playhead:{kVAEAm:`x10l6tqk`,k87sOh:`x13vifvy`,krVfgx:`x1ey2m1c`,kY2c9j:`xoegz02`,kzqmXN:`xnalus7`,kZ1KPB:`xaqn3yn`,k4WBpm:`x19ypqd9`,kaZRDh:`x125f4ab`,kfzvcC:`x47corl`,$$css:!0}},ft=`application/x-ryugi-sound`;function pt(e,t,n){let{t:r}=k(),i=(0,H.useRef)(null);(0,H.useEffect)(()=>()=>i.current?.pause(),[]);let a=async t=>{if(!e.storyboardSound)return null;let{status:n,body:i}=await e.storyboardSound(t.name,t).catch(()=>({status:0,body:{}}));return n===200&&typeof i.file==`string`?i.file:(z.error(r(`storyboard.edSoundFailed`,{error:String(i.error??n)})),null)};return{preview:e=>{let n=i.current;if(n?.pause(),n?.dataset.file===e){i.current=null;return}let r=new Audio(t+e);r.dataset.file=e,i.current=r,r.play().catch(()=>{})},drop:async(e,t,r)=>{if(!n||e!==`music`&&e!==`sfx`)return;let i=r.getData(ft),o=r.files?.[0],s=i||(o?await a(o):null);s&&n.addSound(e,s,t)}}}var mt=new Set;function ht({current:e,cuts:t,onShot:n,script:r,onPreview:i,sounds:a,storyboard:o,timeline:s}){let{t:c}=k(),[l,u]=(0,H.useState)(`shots`),d=[...new Set(o.shots.flatMap(e=>[e.take,e.src].filter(e=>!!e)))],f=[[`script`,c(`storyboard.edScript`)],[`shots`,c(`storyboard.edShots`)],[`media`,c(`storyboard.edMedia`)],[`sound`,c(`storyboard.edSound`)]];return(0,W.jsxs)(`div`,{...O(G.panel,G.left),children:[(0,W.jsx)(`div`,{...O(G.tabs),children:(0,W.jsx)(ie,{block:!0,size:`small`,value:l,variant:`filled`,options:f.map(([e,t])=>({value:e,title:t,label:(0,W.jsx)(`span`,{"data-bin-tab":e,children:t})})),onChange:e=>u(e)})}),(0,W.jsxs)(I,{...O(G.scroll),children:[(0,W.jsxs)(re,{tabIndex:-1,...O(G.scrollViewport),children:[l===`script`?r:null,l===`shots`?(0,W.jsx)(`div`,{style:{padding:6},children:o.shots.map((t,r)=>(0,W.jsxs)(`button`,{"data-bin-shot":t.id,type:`button`,onClick:()=>n(r),...O(G.row,r===e&&G.rowOn),children:[(0,W.jsx)(`span`,{...O(G.chip),children:r+1}),(0,W.jsx)(`span`,{...O(G.rowName),children:t.title}),(0,W.jsx)(`span`,{...O(G.chip),children:c(`storyboard.ed${{card:`Card`,frame:`Page`,take:`Take`}[_(t,mt)]}`)}),(0,W.jsx)(`span`,{...O(G.chip),children:p(s.shots[r].end-s.shots[r].start)})]},t.id))}):null,l===`media`?(0,W.jsx)(`div`,{style:{padding:6},children:d.map(e=>(0,W.jsxs)(`div`,{...O(G.row),children:[e.startsWith(`takes/`)?(0,W.jsx)(ae,{size:13}):(0,W.jsx)(L,{size:13}),(0,W.jsx)(`span`,{...O(G.rowName),children:e})]},e))}):null,l===`sound`?(0,W.jsxs)(`div`,{style:{padding:6},children:[a.length===0?(0,W.jsx)(`div`,{...O(G.hint),children:c(`storyboard.edNoSound`)}):null,a.map(e=>(0,W.jsxs)(`div`,{draggable:!0,"data-bin-sound":e.file,onDragStart:t=>{t.dataTransfer.setData(ft,e.file),t.dataTransfer.effectAllowed=`copy`},...O(G.row),children:[(0,W.jsx)(M,{icon:R,size:`small`,title:c(`storyboard.edPreviewSound`),onClick:()=>i?.(e.file)}),(0,W.jsx)(`span`,{...O(G.rowName),children:e.file.replace(/^sound\//,``)}),e.bytes===void 0?null:(0,W.jsx)(`span`,{...O(G.chip),children:`${Math.max(1,Math.round(e.bytes/1024))} KB`})]},e.file))]}):null]}),(0,W.jsx)(N,{children:(0,W.jsx)(P,{})})]}),t.length?(0,W.jsx)(`div`,{...O(G.binFoot),children:t.map(e=>(0,W.jsxs)(`div`,{...O(G.row),children:[(0,W.jsx)(L,{size:13}),(0,W.jsx)(`span`,{...O(G.rowName),children:c(`storyboard.cutNumber`,{n:e.n})})]},e.n))}):null]})}var gt=[{kind:`captions`,code:`C1`},{kind:`overlay`,code:`V2`},{kind:`picture`,code:`V1`},{kind:`voice`,code:`A1`},{kind:`music`,code:`A2`},{kind:`sfx`,code:`A3`}],_t=e=>`${e.track}:${e.id}`,vt=.5,yt=new Set;function bt(e,t,n={}){let r=new Map(e.shots.flatMap(e=>e.lines.map(e=>[e.id,e.caption]))),i=e.shots.map((e,n)=>({track:`picture`,id:e.id,shot:e.id,start:t.shots[n].start,end:t.shots[n].end,label:`${n+1} ${e.title}`,picture:_(e,yt)})),a=t.lines.flatMap(e=>[{track:`captions`,id:e.id,shot:e.shot,start:e.start,end:e.end,label:r.get(e.id)??``},{track:`voice`,id:e.id,shot:e.shot,start:e.start,end:e.end,label:``}]),o=e.shots.flatMap((e,r)=>{if(_(e,yt)!==`frame`)return[];let i=t.shots[r],a=e.speed>0?e.speed:1;return(n[e.id]??[]).flatMap(t=>{let n=i.start+(t.start-e.srcIn)/a,r=t.end===null?i.end:i.start+(t.end-e.srcIn)/a;return r<=i.start||n>=i.end?[]:[{track:`overlay`,id:`${e.id}#${t.index}`,shot:e.id,index:t.index,start:Math.max(n,i.start),end:Math.min(r,i.end),label:t.kind}]})}),c=E(e).map(e=>({track:`music`,id:e.id,start:e.start,end:e.end??t.total,label:e.src.replace(/^sound\//,``)})),l=s(e,t).map(e=>({track:`sfx`,id:e.id,shot:e.shot,start:e.start,end:e.start+vt,label:e.src.replace(/^sound\//,``)}));return[...i,...a,...o,...c,...l]}function xt({initial:e,label:t,onCancel:n,onChange:r,onSubmit:i}){let{t:a}=k();return(0,W.jsxs)(`div`,{"data-comment-draft":``,...O(U.draft),children:[(0,W.jsx)(`div`,{...O(U.draftLabel),children:t}),(0,W.jsx)(ce,{autoFocus:!0,initial:e,placeholder:a(`storyboard.commentPlaceholder`),onCancel:n,onChange:r,onSubmit:async e=>{let t=await i(e);return t&&n(),t}})]})}var St=340,K=8;function Ct(e){return e.place===`player`?`player`:e.anchor.line?`line:${e.anchor.line}`:`shot:${e.anchor.shot}`}function wt(e){if(e===`player`)return document.querySelector(`[data-comment-moment]`);let[t,n]=e.split(`:`);return document.querySelector(t===`line`?`[data-line="${n}"]`:`[role="list"] [data-shot="${n}"]`)}function Tt(e){let t=wt(e)?.getBoundingClientRect(),n=window.innerWidth-St-K;return t?e===`player`?{left:Math.max(K,Math.min(n,t.right-St)),bottom:window.innerHeight-t.top+K}:{left:Math.max(K,Math.min(n,t.right+K)),top:Math.max(K,Math.min(window.innerHeight-180,t.top))}:{left:K,top:K}}function Et({draft:e,memory:t,onCancel:n,onSubmit:r}){let i=Ct(e),a=(0,H.useRef)(null),[o,s]=(0,H.useState)(()=>Tt(i));(0,H.useLayoutEffect)(()=>{let e=()=>s(Tt(i));return e(),window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[i]);let c=e.place===`player`;return(0,H.useEffect)(()=>{let e=e=>{let t=e.target;a.current?.contains(t)||c&&t.closest?.(`[data-player]`)||n()};return document.addEventListener(`pointerdown`,e,!0),()=>document.removeEventListener(`pointerdown`,e,!0)},[c,n]),(0,W.jsx)(`div`,{"data-comment-popover":i,ref:a,style:o,className:`xixxii4 x68pp3s xj6ak53 xur7f20 x1gah8l2 xi1bcxy x1shwlz2 xatqbsq x1u6ievf`,children:(0,W.jsx)(xt,{initial:t.get(i),label:e.label,onCancel:n,onChange:e=>t.set(i,e),onSubmit:e=>r(e).then(e=>(e&&t.delete(i),e))},i)})}function Dt(e,t,n){return[...n?.byShot.values()??[]].flat().flatMap(n=>{let r=t.shots[e.shots.findIndex(e=>e.id===n.anchor.shot)];return!r||n.anchor.cut!==void 0?[]:[{id:n.id,time:r.start+(n.anchor.t??0),agent:n.messages[0]?.author===`agent`}]})}function Ot(e,t=[]){let n=new Map(t.map(e=>[e.file,e])),r=[...e.music.map(e=>e.src),...e.shots.flatMap(e=>e.sfx.map(e=>e.src))];for(let e of r)n.has(e)||n.set(e,{file:e});return[...n.values()]}var kt=(e,t)=>t.shots.map(t=>({track:`picture`,id:t.id,shot:t.id,start:t.start,end:t.end,label:e.shots.find(e=>e.id===t.id)?.title??t.id})),At=(e={})=>Object.fromEntries(Object.entries(e).map(([e,t])=>[e,t.items])),jt=(e,t)=>!!(e?.target&&e.target!==`invalid`&&t&&(t.total<e.target.min||t.total>e.target.max));function Mt({actions:e,dense:t,heading:n,onJump:r,orphan:i,threads:a}){let{t:o}=k(),[s,c]=(0,H.useState)(null);return a.length?(0,W.jsxs)(`div`,{"data-orphan-threads":i?``:void 0,children:[n?(0,W.jsx)(`div`,{...O(U.heading),children:n}):null,(0,W.jsx)(`div`,{...O(U.threads,t&&U.threadsDense),children:a.map(t=>{let n=[i?o(`storyboard.shotDeleted`):null,t.anchor.cut?o(`storyboard.cutNumber`,{n:t.anchor.cut}):null,t.anchor.t===void 0?null:f(t.anchor.t),t.anchor.line?o(`storyboard.onLine`):null,t.anchor.mark?o(`storyboard.marked`):null].filter(e=>!!e);if(s===t.id)return(0,W.jsx)(`div`,{"data-thread":t.id,...O(U.card,U.open),children:(0,W.jsx)(se,{actions:e,label:n.join(` · `),thread:t})},t.id);let a=t.messages.filter(e=>!e.deleted);return(0,W.jsxs)(`div`,{"data-thread":t.id,role:`button`,tabIndex:0,onClick:()=>{c(t.id),i||r(t)},onKeyDown:e=>{e.key===`Enter`&&(c(t.id),i||r(t))},...O(U.card,t.status===`resolved`&&U.resolved),children:[(0,W.jsxs)(`div`,{...O(U.meta),children:[n.map(e=>(0,W.jsx)(`span`,{...O(U.chip),children:e},e)),a.length>1?(0,W.jsx)(`span`,{children:o(`storyboard.replies`,{count:a.length-1})}):null]}),(0,W.jsx)(`div`,{...O(U.text),children:a[0]?.text})]},t.id)})})]}):null}var Nt={box:{kVAEAm:`x10l6tqk`,k87sOh:`x1qqtqlb`,kCIrl2:`x3m8u43`,kY2c9j:`x1355qak`,kzqmXN:`xwl9fdd`,kskxy:`x12f24lm`,kORKVm:`x1odjw0f`,kGO01o:`x10b6aqq`,kaIpWk:`x1q4ynmn`,kGVxlE:`x1vdxzzn`,$$css:!0}};function Pt({comments:e,onSeek:t,storyboard:n,timeline:r}){let{t:i}=k(),[a,o]=(0,H.useState)(!1),s=(0,H.useRef)(null);(0,H.useEffect)(()=>{if(!a)return;let e=e=>{s.current?.contains(e.target)||o(!1)},t=e=>{e.key===`Escape`&&o(!1)};return document.addEventListener(`pointerdown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`pointerdown`,e),document.removeEventListener(`keydown`,t)}},[a]);let c=n?.shots??[],l=[...e?.byShot.values()??[]].reduce((e,t)=>e+t.length,0)+(e?.orphans.length??0),u=e=>{let n=r?.shots[c.findIndex(t=>t.id===e.anchor.shot)];n&&t(n.start+(e.anchor.cut===void 0?e.anchor.t??0:0))};return(0,W.jsxs)(`span`,{ref:s,className:`x1n2onr6 x3nfvp2`,children:[(0,W.jsxs)(`button`,{"aria-expanded":a,"aria-label":i(`storyboard.edComments`),"data-comments-menu":``,disabled:!e,type:`button`,onClick:()=>o(e=>!e),...O(G.tool,a&&G.toolOn),children:[(0,W.jsx)(le,{size:14}),l]}),a&&e?(0,W.jsxs)(`div`,{"data-comments-list":``,...O(Nt.box,G.panelBg),children:[l?null:(0,W.jsx)(`div`,{...O(G.hint),children:i(`storyboard.edNoComments`)}),c.map((t,n)=>(0,W.jsx)(Mt,{dense:!0,actions:e.actions,heading:`${n+1} · ${t.title}`,threads:e.byShot.get(t.id)??[],onJump:u},t.id)),(0,W.jsx)(Mt,{dense:!0,orphan:!0,actions:e.actions,heading:i(`storyboard.shotDeleted`),threads:e.orphans,onJump:u})]}):null]})}var Ft={box:{kVAEAm:`x10l6tqk`,k87sOh:`x1qqtqlb`,kCIrl2:`x3m8u43`,kY2c9j:`x1355qak`,kzqmXN:`x1dz1jew`,kmVPX3:`xc7ga6q`,kaIpWk:`x1q4ynmn`,kGVxlE:`x1vdxzzn`,kGuDYH:`x1ct8sxb`,kLWn49:`x1jjo3f5`,$$css:!0}};function It({cards:e,feed:t,latest:n,pending:r,status:i}){let{t:a}=k(),[o,s]=(0,H.useState)(!1),c=t.storyboardExport,l=i?.state===`running`,u=l?i.n:(n??0)+1,d=async()=>{s(!1);let e=await c?.(`POST`).catch(()=>({status:0,body:{}}));e&&(e.status<200||e.status>=300)&&z.error(a(`storyboard.edExportFailed`,{error:String(e.body.error??e.status)}))};return(0,W.jsxs)(`span`,{className:`x1n2onr6 x3nfvp2 x6s0dn4 x17d4w8g`,children:[i?.state===`failed`?(0,W.jsx)(`span`,{"data-export-error":``,title:i.error,className:`x1va8c73 xb3r6kr xlyipyv xuxw1ft x12rwjr2 xfifm61`,children:a(`storyboard.edExportFailed`,{error:i.error??``})}):null,(0,W.jsxs)(`button`,{"data-export":``,disabled:!c||l,type:`button`,onClick:()=>s(e=>!e),...O(G.tool,G.toolOn),children:[(0,W.jsx)(ue,{size:13}),l?a(`storyboard.edExporting`,{n:u,percent:Math.round(i.progress*100)}):a(`storyboard.edExport`,{n:u})]}),l?(0,W.jsx)(`button`,{"aria-label":a(`storyboard.edExportCancel`),"data-export-cancel":``,type:`button`,onClick:()=>void c?.(`DELETE`),...O(G.tool),children:(0,W.jsx)(de,{size:13})}):null,o&&!l?(0,W.jsxs)(`div`,{"data-export-panel":``,...O(Ft.box,G.panelBg),children:[(0,W.jsx)(`div`,{style:{fontWeight:600,marginBottom:6},children:a(`storyboard.edExport`,{n:u})}),e?(0,W.jsx)(`div`,{children:a(`storyboard.edExportCards`,{count:e})}):null,r?(0,W.jsx)(`div`,{children:a(`storyboard.edExportVoice`,{count:r})}):null,!e&&!r?(0,W.jsx)(`div`,{children:a(`storyboard.edExportReady`)}):null,(0,W.jsxs)(`div`,{style:{display:`flex`,justifyContent:`flex-end`,gap:6,marginTop:10},children:[(0,W.jsx)(`button`,{type:`button`,onClick:()=>s(!1),...O(G.tool),children:a(`storyboard.edCancel`)}),(0,W.jsx)(`button`,{"data-export-go":``,type:`button`,onClick:()=>void d(),...O(G.tool,G.toolOn),children:a(`storyboard.edExportGo`)})]})]}):null]})}var Lt={box:{kVAEAm:`x10l6tqk`,k87sOh:`x1qqtqlb`,kCIrl2:`x3m8u43`,kY2c9j:`x1355qak`,kzqmXN:`xdzyupr`,kmVPX3:`x1ruevkc`,kaIpWk:`x1q4ynmn`,kGVxlE:`x1vdxzzn`,$$css:!0}};function Rt({cuts:e,versions:t}){let{t:r}=k(),[i,o]=(0,H.useState)(!1),{viewing:s}=t,c=e=>{t.view(e),o(!1)};return(0,W.jsxs)(`span`,{className:`x1n2onr6 x3nfvp2 x6s0dn4 x17d4w8g`,children:[s?(0,W.jsxs)(`span`,{"data-viewing":``,className:`xfifm61 x29mykp`,children:[r(`storyboard.edViewing`,{n:s.n}),` · `,(0,W.jsx)(`button`,{"data-back":``,type:`button`,onClick:()=>c(null),...O(G.tool),children:r(`storyboard.edBackToTimeline`)})]}):null,(0,W.jsxs)(`button`,{"data-versions":``,type:`button`,onClick:()=>o(e=>!e),...O(G.tool),children:[(0,W.jsx)(n,{size:14}),s?r(`storyboard.cutNumber`,{n:s.n}):r(`storyboard.edTimeline`)]}),i?(0,W.jsxs)(`div`,{role:`menu`,...O(Lt.box,G.panelBg),children:[(0,W.jsxs)(`button`,{"aria-checked":!s,"data-version":`timeline`,role:`menuitemradio`,type:`button`,onClick:()=>c(null),...O(G.row,!s&&G.rowOn),children:[(0,W.jsx)(`span`,{...O(G.rowName),children:r(`storyboard.edTimeline`)}),t.changedNow!==null&&t.latest?(0,W.jsx)(`span`,{...O(G.chip),children:r(`storyboard.edChanged`,{count:t.changedNow,n:t.latest.n})}):null]}),[...e].reverse().map(e=>(0,W.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`},children:[(0,W.jsx)(`button`,{"aria-checked":s?.n===e.n,"data-version":String(e.n),role:`menuitemradio`,type:`button`,onClick:()=>c(e.n),...O(G.row,s?.n===e.n&&G.rowOn),children:(0,W.jsx)(`span`,{...O(G.rowName),children:r(`storyboard.cutNumber`,{n:e.n})})}),(0,W.jsx)(`button`,{"aria-label":r(`storyboard.edCompareWith`,{n:e.n}),"aria-pressed":t.compare?.n===e.n,"data-compare":String(e.n),disabled:!e.hashes,type:`button`,title:e.hashes?r(`storyboard.edCompareWith`,{n:e.n}):r(`storyboard.edNoHashes`),onClick:()=>t.toggleCompare(e.n),...O(G.tool,t.compare?.n===e.n&&G.toolOn),children:(0,W.jsx)(ze,{size:13})}),(0,W.jsx)(`button`,{"aria-label":r(`storyboard.edSideBySide`,{n:e.n}),"aria-pressed":t.side?.n===e.n,"data-side":String(e.n),disabled:!!s,type:`button`,onClick:()=>{t.toggleSide(e.n),o(!1)},...O(G.tool,t.side?.n===e.n&&G.toolOn),children:(0,W.jsx)(a,{size:13})})]},e.n))]}):null]})}function zt({actions:e,comments:t,cuts:n,feed:r,onSeek:i,pending:a,status:o,storyboard:s,timeline:c,title:l,versions:u}){let{t:p}=k(),m=n.at(-1)?.n??null;return(0,W.jsxs)(`div`,{...O(d.header),children:[(0,W.jsx)(`span`,{...O(d.title),children:l}),(0,W.jsxs)(`span`,{"data-total":``,...O(d.total,jt(s,c)&&d.over),children:[p(`storyboard.shots`,{count:s?.shots.length??0}),` ·`,` `,f(c?.total??0),` · `,s?.aspect??`16:9`]}),(0,W.jsx)(`span`,{...O(G.spacer)}),(0,W.jsx)(Pt,{comments:t,storyboard:s,timeline:c,onSeek:i}),(0,W.jsx)(Rt,{cuts:n,versions:u}),(0,W.jsx)(It,{cards:s?.shots.filter(e=>!e.src&&!e.take).length??0,feed:r,latest:m,pending:a,status:o}),e]})}var Bt=(e,t,n,r)=>{let i=Number(globalThis.localStorage?.getItem(e));return Number.isFinite(i)&&i>=t&&i<=n?i:r};function Vt({children:e,initial:t,max:n,min:r,placement:i,storageKey:a}){return(0,W.jsx)(fe,{showHandleWideArea:!0,defaultSize:{width:Bt(a,r,n,t)},expandable:!1,maxWidth:n,minWidth:r,mode:`fixed`,placement:i,showBorder:!1,onSizeChange:(e,t)=>{typeof t?.width==`number`&&globalThis.localStorage?.setItem(a,String(Math.round(t.width)))},children:e})}function Ht({label:e,marker:t,max:n,min:r,onCommit:i,step:a,style:o,suffix:s,value:c}){let[l,u]=(0,H.useState)(void 0),d=()=>{l!==void 0&&l!==(c??null)&&i(l),u(void 0)};return(0,W.jsx)(me,{...t,"aria-label":e,controls:!1,max:n,min:r,size:`small`,step:a,style:{width:`100%`,...o},suffix:s,value:l===void 0?c??null:l,onBlur:d,onChange:e=>u(e),onPressEnter:d,onKeyDown:e=>{e.key===`Escape`&&u(void 0)}})}var Ut={row:{kAzted:`xe0p6wg`,keoZOQ:`xdj266r`,$$css:!0},heading:{kGuDYH:`x4z9k3i`,k63SB2:`x1s688f`,kMwMTN:`xo2rkog`,$$css:!0},value:{kGuDYH:`xfifm61`,kMwMTN:`xo2rkog`,kcqcaj:`xss6m8b`,kHjlTd:`xj0a0fe`,$$css:!0}};function q({children:e,heading:t,title:n}){return(0,W.jsxs)(`div`,{...O(G.section),children:[n?(0,W.jsx)(`h4`,{...O(G.sectionTitle,t&&Ut.heading),children:n}):null,e]})}function J({children:e,label:t,name:n}){return(0,W.jsxs)(`div`,{...O(V.field,Ut.row),children:[(0,W.jsx)(`span`,{...O(V.fieldLabel),children:t}),(0,W.jsx)(`div`,{"data-field":n,...O(V.fieldControl,Ut.value),children:e})]})}function Y({editable:e,label:t,name:n,onValue:r,step:i,suffix:a,text:o,value:s}){return e?(0,W.jsxs)(`div`,{...O(V.field,Ut.row),children:[(0,W.jsx)(`span`,{...O(V.fieldLabel),children:t}),(0,W.jsx)(`div`,{...O(V.fieldControl),children:(0,W.jsx)(Ht,{label:t,marker:{"data-control":n},step:i,suffix:a,value:s,onCommit:r})})]}):(0,W.jsx)(J,{label:t,name:n,children:o})}var Wt=(e,t)=>Math.abs(e-t)<.001,X=e=>Math.round(e*1e3)/1e3,Gt={track:{kVAEAm:`x1n2onr6`,kUk6DE:`x98rzlu`,k7Eaqz:`x900493`,kZKoxP:`xmix8c7`,kaIpWk:`x12oqio5`,$$css:!0},name:{kzqmXN:`xvni27`,kmuXW:`x2lah0s`,$$css:!0}};function Kt({keys:e,length:t,local:n,onKey:r,onSeek:i,rows:a}){let{t:o}=k(),s=e.filter(e=>Wt(e.at,n)),c=a.filter(t=>e.some(e=>e.prop===t.prop)),l=a.filter(e=>!c.includes(e)),d=Math.max(t,.001);return(0,W.jsxs)(`div`,{...O(G.section),children:[(0,W.jsxs)(`h4`,{...O(G.sectionTitle),style:{display:`flex`,alignItems:`center`},children:[(0,W.jsx)(`span`,{style:{flex:1},children:o(`storyboard.edKeys`)}),l.length?(0,W.jsx)(he,{items:l.map(t=>({key:t.prop,label:t.label,onClick:()=>r(t.prop,X(n),X(u(e,t.prop,n,t.fallback)))})),children:(0,W.jsx)(M,{"data-key-add":``,icon:xe,size:`small`,title:o(`storyboard.edAddKey`)})}):null]}),c.map(t=>{let a=e.filter(e=>e.prop===t.prop),s=a.find(e=>Wt(e.at,n)),c=u(e,t.prop,n,t.fallback);return(0,W.jsxs)(`div`,{className:`x78zum5 x6s0dn4 x17d4w8g x21xpn4`,children:[(0,W.jsx)(M,{active:!!s,"aria-pressed":!!s,"data-key-toggle":t.prop,icon:_e,size:`small`,title:o(`storyboard.edKeyToggle`,{prop:t.label}),onClick:()=>r(t.prop,X(n),s?null:X(c))}),(0,W.jsx)(`span`,{...O(V.fieldLabel,Gt.name),children:t.label}),(0,W.jsx)(`div`,{className:`xni59qk x2lah0s`,children:(0,W.jsx)(Ht,{label:t.label,marker:{"data-key-value":t.prop},step:t.step,value:X(c),onCommit:e=>{e!==null&&r(t.prop,X(n),e,s&&s.ease!==`linear`?s.ease:void 0)}})}),(0,W.jsxs)(`span`,{...O(G.chip,Gt.track),children:[a.map(e=>(0,W.jsx)(`button`,{"aria-label":`${t.label} ${e.at}s`,"data-key":`${e.prop}@${e.at}`,type:`button`,style:{left:`calc(${e.at/d*100}% - 5px)`,borderColor:ut,background:Wt(e.at,n)?ut:`transparent`},onClick:()=>i(e.at),className:`x10l6tqk xndqk7f x1wc42o8 xegnrdp x1717udv xvndefy x1y0btm7 x1158fpu x1ypdohk`},e.at)),(0,W.jsx)(`span`,{style:{left:`${n/d*100}%`,borderLeftColor:ut},className:`x10l6tqk x1qiirwl x1t1qrwb xaqn3yn x19ypqd9`})]})]},t.prop)}),s.length?(0,W.jsxs)(`div`,{...O(V.field),style:{minHeight:32},children:[(0,W.jsx)(`span`,{...O(V.fieldLabel),children:o(`storyboard.edEase`)}),(0,W.jsx)(`div`,{"data-key-ease":``,...O(V.fieldControl),children:(0,W.jsx)(ge,{size:`small`,style:{width:`100%`},value:s[0]?.ease??`linear`,options:D.map(e=>({value:e,label:o(`storyboard.edEase_${e.replace(`-`,``)}`)})),onChange:e=>{if(typeof e==`string`)for(let t of s)r(t.prop,t.at,t.value,e)}})})]}):null]})}var qt={card:`storyboard.edCard`,frame:`storyboard.edPage`,take:`storyboard.edTake`},Jt={cut:`storyboard.edCut`,dissolve:`storyboard.edDissolve`,black:`storyboard.edBlack`},Yt=new Set,Xt=e=>e===void 0?`—`:`${e>0?`+`:``}${e} dB`,Zt=(e,t,n)=>r=>e?.send([{op:`attr`,target:t,name:n,value:r}]),Qt=(e,t)=>(n,r,i,a)=>e?.send([{op:`key`,owner:t,prop:n,at:r,value:i,...a?{ease:a}:{}}]);function $t({clip:e,edit:t,storyboard:n,timeline:r}){let{t:i}=k(),a=n.shots.findIndex(t=>t.id===e.id),o=n.shots[a],s=r.shots[a];if(!o||!s)return null;let c=_(o,Yt),l=n.shots[a+1],u={kind:`shot`,id:o.id},d=!!t,f=(e,t)=>!e||e===`cut`?i(Jt.cut):`${i(Jt[e]??Jt.cut)} · ${t}s`,p=[{prop:`x`,label:i(`storyboard.edKeyX`),fallback:0,step:10},{prop:`y`,label:i(`storyboard.edKeyY`),fallback:0,step:10},{prop:`scale`,label:i(`storyboard.edKeyScale`),fallback:1,step:.01},{prop:`opacity`,label:i(`storyboard.edKeyOpacity`),fallback:1,step:.05},...o.take?[{prop:`gain`,label:i(`storyboard.edGain`),fallback:o.gain??0,step:1}]:[]];return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{heading:!0,title:`${a+1} · ${o.title}`,children:(0,W.jsxs)(J,{label:i(`storyboard.edSource`),name:`source`,children:[i(qt[c]),c===`frame`?` · ${o.src}`:c===`take`?` · ${o.take}`:``]})}),(0,W.jsxs)(q,{title:i(`storyboard.edTime`),children:[(0,W.jsx)(J,{label:i(`storyboard.edIn`),name:`in`,children:v(s.start)}),(0,W.jsx)(J,{label:i(`storyboard.edOut`),name:`out`,children:v(s.end)}),(0,W.jsx)(J,{label:i(`storyboard.edLength`),name:`dur`,children:`${o.dur}s`}),(0,W.jsx)(Y,{editable:d,label:i(`storyboard.edSpeed`),name:`speed`,step:.25,text:`${o.speed}×`,value:o.speed,onValue:e=>Zt(t,u,`speed`)(e===1?null:e)})]}),(0,W.jsxs)(q,{title:i(`storyboard.edTransitions`),children:[(0,W.jsx)(J,{label:i(`storyboard.edTransitionIn`),name:`transition-in`,children:f(a>0?o.transition:void 0,o.transitionDur)}),(0,W.jsx)(J,{label:i(`storyboard.edTransitionOut`),name:`transition-out`,children:f(l?.transition,l?.transitionDur)})]}),c===`take`?(0,W.jsx)(q,{title:i(`storyboard.edSound`),children:(0,W.jsx)(Y,{editable:d,label:i(`storyboard.edGain`),name:`gain`,step:1,suffix:`dB`,text:o.gain===void 0?i(`storyboard.edMuted`):Xt(o.gain),value:o.gain,onValue:Zt(t,u,`gain`)})}):null,o.actions.length?(0,W.jsx)(q,{title:i(`storyboard.edActions`),children:(0,W.jsx)(`ul`,{style:{margin:0,paddingLeft:16,fontSize:12},children:o.actions.map((e,t)=>(0,W.jsx)(`li`,{children:e},t))})}):null,t?(0,W.jsx)(Kt,{keys:o.keys,length:o.dur,local:Math.min(Math.max(0,t.time-s.start),o.dur),rows:p,onKey:Qt(t,u),onSeek:e=>t.onSeek(s.start+e)}):null]})}function en({clip:e,edit:t,storyboard:n}){let{t:r}=k(),i=!!t,a=e.track===`music`?n.music.find(t=>t.id===e.id):void 0,o=e.track===`sfx`?n.shots.flatMap(e=>e.sfx).find(t=>t.id===e.id):void 0,s=e.track===`voice`||e.track===`captions`?n.shots.flatMap(e=>e.lines).find(t=>t.id===e.id):void 0,c=a??o,l=a?{kind:`music`,id:a.id}:o?{kind:`sfx`,id:o.id}:s?{kind:`line`,id:s.id}:null,u=e=>n=>l?Zt(t,l,e)(n):void 0;return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(q,{heading:!0,title:e.label||e.id,children:[c?(0,W.jsx)(J,{label:r(`storyboard.edFile`),name:`file`,children:c.src}):null,s?(0,W.jsx)(J,{label:r(`storyboard.edLine`),name:`text`,children:s.text}):null,(0,W.jsx)(J,{label:r(`storyboard.edStart`),name:`start`,children:v(e.start)}),(0,W.jsx)(Y,{editable:i&&!!l,label:r(`storyboard.edGain`),name:`gain`,step:1,suffix:`dB`,text:Xt(c?.gain??s?.gain??0),value:c?.gain??s?.gain,onValue:u(`gain`)}),c?(0,W.jsx)(Y,{editable:i,label:r(`storyboard.edFadeIn`),name:`fade-in`,step:.1,suffix:`s`,text:`${c.fadeIn}s`,value:c.fadeIn,onValue:u(`fade-in`)}):null,c?(0,W.jsx)(Y,{editable:i&&!!a,label:r(`storyboard.edFadeOut`),name:`fade-out`,step:.1,suffix:`s`,text:`${c.fadeOut}s`,value:c.fadeOut,onValue:u(`fade-out`)}):null,a?(0,W.jsx)(Y,{editable:i,label:r(`storyboard.edDuck`),name:`duck`,step:1,suffix:`dB`,text:Xt(a.duck),value:a.duck,onValue:u(`duck`)}):null]}),t&&a?(0,W.jsx)(Kt,{keys:a.keys,length:e.end-e.start,local:Math.max(0,t.time-a.at),rows:[{prop:`gain`,label:r(`storyboard.edGain`),fallback:a.gain,step:1}],onKey:Qt(t,{kind:`music`,id:a.id}),onSeek:e=>t.onSeek(a.at+e)}):null]})}function tn({clip:e,edit:t,storyboard:n,timeline:r}){let{t:i}=k();return(0,W.jsxs)(`div`,{"data-inspector":``,...O(G.panel,G.right),children:[(0,W.jsx)(`div`,{...O(G.tabs),children:(0,W.jsxs)(`span`,{...O(G.panelTitle),children:[(0,W.jsx)(pe,{size:13}),i(`storyboard.edInspector`)]})}),(0,W.jsxs)(I,{...O(G.scroll),children:[(0,W.jsx)(re,{tabIndex:-1,...O(G.scrollViewport),children:e?e.track===`picture`?(0,W.jsx)($t,{clip:e,edit:t,storyboard:n,timeline:r}):(0,W.jsx)(en,{clip:e,edit:t,storyboard:n}):(0,W.jsx)(`div`,{...O(G.hint),children:i(`storyboard.edNothing`)})}),(0,W.jsx)(N,{children:(0,W.jsx)(P,{})})]})]})}var nn={width:`auto`,maxWidth:`100%`,height:`calc(50% - 40px)`};function rn({captions:e,clock:t,compare:n,cut:r,muted:i,onCaptions:a,onComment:o,onMute:s,overlay:c,picture:u,stage:d,storyboard:f,timeline:p}){let{t:h}=k(),_=(0,H.useRef)(null),[v,S]=(0,H.useState)(0),C=l(f.aspect)[0];(0,H.useEffect)(()=>{let e=_.current;if(!e)return;let t=()=>S(e.clientWidth/C);if(t(),typeof ResizeObserver>`u`)return;let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[C]);let w=e?x(p.lines,t.time):null,T=w?f.shots.flatMap(e=>e.lines).find(e=>e.id===w.id)?.caption:void 0,E=e=>{t.pause(),t.seek(t.time+e/30)},D=p.shots.find(e=>t.time<e.end)??p.shots.at(-1),A=f.shots.findIndex(e=>e.id===D?.id);return(0,W.jsxs)(`div`,{"data-viewer":``,...O(G.panel,G.viewer),children:[(0,W.jsx)(`div`,{...O(G.tabs),children:A>=0?(0,W.jsxs)(`span`,{"data-viewer-title":``,...O(G.viewerTitle),children:[(0,W.jsxs)(`span`,{...O(G.viewerIndex),children:[A+1,` · `]}),f.shots[A].title]}):null}),(0,W.jsxs)(`div`,{...O(G.monitor),children:[(0,W.jsxs)(`div`,{"data-player":``,ref:_,style:{aspectRatio:f.aspect.replace(`:`,` / `),...n?nn:{}},...O(G.stage),onClick:()=>{c||t.toggle()},children:[r?(0,W.jsx)(g,{active:!0,audible:!i,marker:`cut`,playing:t.playing,seeks:t.seeks,src:r.src,start:0,time:t.time,onLength:r.onLength,onTime:t.follow}):d??(0,W.jsx)(y,{...u,muted:i,playing:t.playing,scale:v,seeks:t.seeks,storyboard:f,time:t.time,timeline:p}),T&&!d&&!r?(0,W.jsx)(`div`,{"data-caption":``,...O(b.caption),children:T}):null,c]}),n?(0,W.jsxs)(`div`,{"data-compare-stage":``,style:{display:`flex`,flexDirection:`column`,alignItems:`center`,gap:4,width:`100%`,minHeight:0},children:[(0,W.jsx)(`span`,{...O(G.timecode,G.timecodeDim),children:n.label}),(0,W.jsx)(`div`,{style:{aspectRatio:f.aspect.replace(`:`,` / `),...nn},...O(G.stage),children:(0,W.jsx)(g,{active:!0,marker:`compare`,playing:t.playing,seeks:t.seeks,src:n.src,start:0,time:n.time})})]}):null,(0,W.jsxs)(`div`,{...O(G.transport),children:[(0,W.jsx)(`span`,{"data-timecode":``,...O(G.timecode,G.transportStart),children:m(t.time)}),(0,W.jsxs)(`div`,{"data-transport-center":``,...O(G.transportGroup),children:[(0,W.jsx)(`button`,{"aria-label":h(`storyboard.edToStart`),type:`button`,onClick:()=>t.seek(0),...O(G.tool),children:(0,W.jsx)(Ze,{size:14})}),(0,W.jsx)(`button`,{"aria-label":h(`storyboard.edPrevFrame`),type:`button`,onClick:()=>E(-1),...O(G.tool),children:(0,W.jsx)(tt,{size:14})}),(0,W.jsx)(`button`,{"aria-label":t.playing?h(`storyboard.pause`):h(`storyboard.play`),"data-play":``,type:`button`,onClick:t.toggle,...O(G.play),children:(0,W.jsx)(Ce,{playing:t.playing,size:14})}),(0,W.jsx)(`button`,{"aria-label":h(`storyboard.edNextFrame`),type:`button`,onClick:()=>E(1),...O(G.tool),children:(0,W.jsx)(rt,{size:14})}),(0,W.jsx)(`button`,{"aria-label":h(`storyboard.edToEnd`),type:`button`,onClick:()=>t.seek(p.total),...O(G.tool),children:(0,W.jsx)($e,{size:14})})]}),(0,W.jsxs)(`div`,{...O(G.transportGroup,G.transportEnd),children:[o?(0,W.jsx)(`button`,{"aria-label":h(`storyboard.commentMoment`),"data-comment-moment":``,type:`button`,onClick:o,...O(G.tool),children:(0,W.jsx)(Ue,{size:15})}):null,(0,W.jsx)(`button`,{"aria-label":h(`storyboard.mute`),"aria-pressed":i,type:`button`,onClick:s,...O(G.tool),children:i?(0,W.jsx)(st,{size:15}):(0,W.jsx)(at,{size:15})}),(0,W.jsx)(`button`,{"aria-label":h(`storyboard.captions`),"aria-pressed":e,"data-monitor-captions":``,type:`button`,onClick:a,...O(G.tool),children:e?(0,W.jsx)(Le,{size:15}):(0,W.jsx)(Fe,{size:15})}),(0,W.jsx)(`button`,{"aria-label":h(`storyboard.fullscreen`),type:`button`,onClick:()=>void _.current?.requestFullscreen?.(),...O(G.tool),children:(0,W.jsx)(Se,{size:14})}),(0,W.jsx)(`span`,{...O(G.timecode,G.timecodeDim),children:m(p.total)})]})]})]})]})}j.colorBorderSecondary;var Z={editable:{kaIpWk:`x18zih8k`,kkrTdU:`x1ed109x`,kI3sdo:`x1a2a7pz`,kWkggS:`xjbqb8w xj0l527 x1pv8c5z`,$$css:!0},dur:{kkrTdU:`x7eptgl`,kfSwDN:`x87ps6o`,kFalU9:`x5ve5x3`,$$css:!0},handle:{kkrTdU:`x1jm3nie`,$$css:!0},dropBefore:{kGVxlE:`x1ptyweu`,$$css:!0},dropAfter:{kGVxlE:`x1epkt1z`,$$css:!0},gap:{kVAEAm:`x1n2onr6`,kZKoxP:`xqtp20y`,kY2c9j:`x1vjfegm`,$$css:!0},add:{kVAEAm:`x10l6tqk`,kbCHJM:`x1nrll8i`,k87sOh:`x122giso`,k1xSpc:`xrvj5dj`,kgQiWS:`x1ku5rj1`,kzqmXN:`x1xp8n7a`,kZKoxP:`xmix8c7`,koQZXg:`x125l10s`,kmVPX3:`x1717udv`,kMzoRj:`xmkeg23`,ksu8eU:`x1y0btm7`,kVAM5u:`x12xov25`,kaIpWk:`x16rqkct`,kWkggS:`x1rozbrz`,kMwMTN:`x1bo0w0s`,kkrTdU:`x1ypdohk`,kSiTet:`xg01cxk x1o7uuvo x25t5g8`,k1ekBW:`x19991ni`,kIyJzY:`xgdialr`,$$css:!0},menuWrap:{kVAEAm:`x1n2onr6`,kUk6DE:`x1okw0bk`,kSGwAc:`xqcrz7y`,$$css:!0},menuButton:{k1xSpc:`xrvj5dj`,kgQiWS:`x1ku5rj1`,kzqmXN:`x17z2i9w`,kZKoxP:`x17rw0jw`,kmVPX3:`x1717udv`,kMzoRj:`xc342km`,kaIpWk:`x1sxf85j`,kWkggS:`xjbqb8w xj0l527`,kMwMTN:`xddlp02`,kkrTdU:`x1ypdohk`,$$css:!0},menu:{kVAEAm:`x10l6tqk`,kCIrl2:`x3m8u43`,k87sOh:`x8l1umf`,kY2c9j:`x1u8a7rm`,k1xSpc:`x78zum5`,kXwgrk:`xdt5ytf`,k7Eaqz:`x1i9suas`,kmVPX3:`xfawy5m`,kMzoRj:`xmkeg23`,ksu8eU:`x1y0btm7`,kVAM5u:`x12xov25`,kaIpWk:`xur7f20`,kWkggS:`x12ilycc`,kGVxlE:`x1xto9b0`,$$css:!0},menuItem:{k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kOIVth:`x167g77z`,kZKoxP:`x1fgtraw`,kg3NbH:`xdqyycr`,kMzoRj:`xc342km`,kaIpWk:`x1sxf85j`,kWkggS:`xjbqb8w xj0l527`,kMwMTN:`xo2rkog`,kGuDYH:`xfifm61`,k9WMMc:`xdpxx8g`,kkrTdU:`x1ypdohk`,$$css:!0},danger:{kMwMTN:`x12vcgws`,$$css:!0}},an=8,on=.1,sn=e=>Math.max(on,Math.round(e*10)/10);function cn({dur:e,onSave:t}){let{t:n}=k(),[r,i]=(0,H.useState)(null),[a,o]=(0,H.useState)(!1);return t?a?(0,W.jsx)(`span`,{"data-chip":``,"data-dur":``,...O(C.chip),children:(0,W.jsx)(ln,{dur:e,onDone:n=>{o(!1),n!==null&&n!==e&&t(n)}})}):(0,W.jsx)(`span`,{"data-chip":``,"data-dur":``,title:n(`storyboard.editDur`),onClick:e=>e.stopPropagation(),onPointerDown:n=>{n.stopPropagation();let r=n.clientX,a=!1,s=e,c=t=>{let n=Math.round((t.clientX-r)/an);n!==0&&(a=!0),s=sn(e+n*on),i(s)},l=()=>{window.removeEventListener(`pointermove`,c),window.removeEventListener(`pointerup`,l),i(null),a?s!==e&&t(s):o(!0)};window.addEventListener(`pointermove`,c),window.addEventListener(`pointerup`,l)},...O(C.chip,Z.dur),children:p(r??e)}):(0,W.jsx)(`span`,{"data-chip":``,"data-dur":``,...O(C.chip),children:p(e)})}function ln({dur:e,onDone:t}){let[n,r]=(0,H.useState)(String(e)),i=(0,H.useRef)(!1),a=e=>{if(i.current)return;i.current=!0;let n=Number((e??``).trim().replace(/s$/i,``));t(e&&Number.isFinite(n)&&n>0?sn(n):null)};return(0,W.jsx)(we,{autoFocus:!0,inputMode:`decimal`,size:`small`,style:{width:64},value:n,onBlur:()=>a(n),onChange:e=>r(e.target.value),onClick:e=>e.stopPropagation(),onKeyDown:e=>{e.key===`Enter`?(e.preventDefault(),a(n)):e.key===`Escape`&&a(null)}})}function un({allowEmpty:e,children:t,multiline:n,onSave:r,value:i}){let[a,o]=(0,H.useState)(null),s=(0,H.useRef)(!1);if(!r)return(0,W.jsx)(W.Fragment,{children:t??i});if(a===null)return(0,W.jsx)(`span`,{"data-editable":``,role:`button`,tabIndex:0,onClick:()=>{s.current=!1,o(i)},onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),s.current=!1,o(i))},...O(Z.editable),children:t??i});let c=t=>{if(s.current)return;s.current=!0;let n=a.trim();t&&n!==i.trim()&&(n||e)&&r(n),o(null)},l={autoFocus:!0,value:a,onBlur:()=>c(!0),onChange:e=>o(e.target.value),onClick:e=>e.stopPropagation(),onKeyDown:e=>{e.key===`Enter`&&!e.shiftKey?(e.preventDefault(),c(!0)):e.key===`Escape`&&(e.preventDefault(),c(!1))}};return n?(0,W.jsx)(oe,{autoSize:{minRows:2},style:{fontStyle:`italic`},...l}):(0,W.jsx)(we,{size:`small`,...l})}function dn({onDelete:e,onDuplicate:t}){let{t:n}=k(),[r,i]=(0,H.useState)(!1),a=(0,H.useRef)(null);(0,H.useEffect)(()=>{if(!r)return;let e=e=>{a.current?.contains(e.target)||i(!1)};return window.addEventListener(`pointerdown`,e),()=>window.removeEventListener(`pointerdown`,e)},[r]);let o=e=>()=>{i(!1),e()};return(0,W.jsxs)(`div`,{ref:a,onClick:e=>e.stopPropagation(),...O(Z.menuWrap),children:[(0,W.jsx)(`button`,{"aria-expanded":r,"aria-label":n(`storyboard.rowMenu`),"data-row-menu":``,type:`button`,onClick:()=>i(e=>!e),...O(Z.menuButton),children:(0,W.jsx)(ke,{size:14})}),r?(0,W.jsxs)(`div`,{role:`menu`,...O(Z.menu),children:[(0,W.jsxs)(`button`,{"data-menu-item":`duplicate`,role:`menuitem`,type:`button`,onClick:o(t),...O(Z.menuItem),children:[(0,W.jsx)(Te,{size:13}),n(`storyboard.duplicate`)]}),(0,W.jsxs)(`button`,{"data-menu-item":`delete`,role:`menuitem`,type:`button`,onClick:o(e),...O(Z.menuItem,Z.danger),children:[(0,W.jsx)(Oe,{size:13}),n(`storyboard.delete`)]})]}):null]})}var fn=e=>{let t=e.currentTarget.getBoundingClientRect();return e.clientY>t.top+t.height/2?`after`:`before`};function pn({aspect:e,current:t,drag:n,edit:r,failures:i,follow:a,index:o,onComment:s,onPreview:c,onSeek:l,pending:u,shot:d,span:p,stacked:m,voiced:h}){let{t:g}=k(),_=(0,H.useRef)(null);(0,H.useEffect)(()=>{t&&a&&_.current?.scrollIntoView?.({block:`nearest`})},[t,a]);let v=(0,W.jsxs)(W.Fragment,{children:[s?(0,W.jsx)(`button`,{"aria-label":g(`storyboard.commentShot`),"data-comment-shot":``,title:g(`storyboard.commentShot`),type:`button`,onClick:e=>{e.stopPropagation(),s()},...O(U.button),children:(0,W.jsx)(Ue,{size:14})}):null,r?(0,W.jsx)(dn,{onDelete:r.onDelete,onDuplicate:r.onDuplicate}):null]});return(0,W.jsxs)(`div`,{"aria-current":t,"aria-label":g(`storyboard.shot`,{number:o+1,title:d.title}),"data-shot":d.id,ref:_,role:`listitem`,tabIndex:-1,onClick:l,onDragOver:n?e=>{e.preventDefault(),n.onDragOver(fn(e))}:void 0,onDrop:n?e=>{e.preventDefault(),n.onDrop(fn(e))}:void 0,...O(C.row,m&&C.stacked,t&&C.current,m&&C.flat,n?.side===`before`&&Z.dropBefore,n?.side===`after`&&Z.dropAfter),children:[(0,W.jsx)(`div`,{"data-drag":n?``:void 0,draggable:!!n,title:n?g(`storyboard.dragShot`):void 0,onDragEnd:n?.onDragEnd,onDragStart:n?e=>{e.dataTransfer?.setData(`text/plain`,d.id),e.dataTransfer&&(e.dataTransfer.effectAllowed=`move`),n.onDragStart()}:void 0,...O(C.number,t&&C.numberOn,n&&Z.handle),children:String(o+1).padStart(2,`0`)}),(0,W.jsxs)(`div`,{...O(C.thumb,m&&C.thumbStacked),children:[(0,W.jsx)(`div`,{style:{aspectRatio:e.replace(`:`,` / `)},...O(b.stage),children:(0,W.jsx)(S,{shot:d})}),(0,W.jsxs)(`div`,{...O(C.chips),children:[(0,W.jsx)(`span`,{"data-chip":``,...O(C.chip),children:f(p.start)}),(0,W.jsx)(cn,{dur:d.dur,onSave:r?.onDur})]})]}),(0,W.jsxs)(`div`,{...O(C.main),children:[(0,W.jsx)(`div`,{"data-title":``,...O(C.title),children:(0,W.jsx)(un,{value:d.title,onSave:r?.onTitle})}),d.actions.length?(0,W.jsx)(`ul`,{...O(C.actions),children:d.actions.map((e,t)=>(0,W.jsx)(`li`,{"data-action":t,children:(0,W.jsx)(un,{allowEmpty:!0,value:e,onSave:r&&(e=>r.onAction(t,e))})},`${t}:${e}`))}):null,d.lines.map(e=>(0,W.jsxs)(`div`,{"data-failed":e.id in i,"data-line":e.id,title:i[e.id],...O(C.line,u.has(e.id)&&C.pending,e.id in i&&C.failed),children:[h.has(e.id)?(0,W.jsx)(`button`,{"aria-label":g(`storyboard.playLine`),type:`button`,onClick:t=>{t.stopPropagation(),c(e.id)},...O(C.linePlay),children:(0,W.jsx)(R,{size:9})}):null,(0,W.jsx)(`span`,{...O(C.lineText),children:(0,W.jsxs)(un,{multiline:!0,value:e.text,onSave:r&&(t=>r.onLine(e.id,t)),children:[`“`,e.text,`”`]})}),s?(0,W.jsx)(`button`,{"aria-label":g(`storyboard.commentLine`),"data-comment-line":``,type:`button`,onClick:t=>{t.stopPropagation(),s(e.id)},...O(U.button),children:(0,W.jsx)(le,{size:11})}):null]},e.id))]}),m?(0,W.jsx)(`span`,{...O(C.tailStacked),children:v}):v]})}function mn({current:e,editing:t,failures:n,follow:r,onComment:i,onPreview:a,onSeek:o,pending:s,storyboard:c,timeline:l,voiced:u}){let{t:d}=k();return(0,W.jsx)(`div`,{role:`list`,children:c.shots.map((f,p)=>(0,W.jsxs)(H.Fragment,{children:[(0,W.jsx)(pn,{stacked:!0,aspect:c.aspect,current:p===e,drag:t?.drag(p),edit:t?.edit(p),failures:n,follow:r,index:p,pending:s,shot:f,span:l.shots[p],voiced:u,onComment:i?.(p),onPreview:e=>a(p,e),onSeek:()=>o(p)}),t?(0,W.jsx)(`div`,{...O(Z.gap),children:(0,W.jsx)(`button`,{"aria-label":d(`storyboard.addShot`),"data-add-after":f.id,type:`button`,onClick:()=>t.add(f.id),...O(Z.add),children:(0,W.jsx)(xe,{size:11})})}):null]},f.id))})}var hn=[{tool:`select`,label:`storyboard.edSelect`,icon:(0,W.jsx)(Ae,{size:13})},{tool:`razor`,label:`storyboard.edRazor`,icon:(0,W.jsx)(Ye,{size:13})},{tool:`slip`,label:`storyboard.edSlip`,icon:(0,W.jsx)(Ge,{size:13})}];function gn({edit:e,onZoom:t,pps:n}){let{t:r}=k(),i=e?.tool??`select`;return(0,W.jsxs)(`div`,{...O(G.toolbar),children:[hn.map(t=>(0,W.jsx)(`button`,{"aria-label":r(t.label),"aria-pressed":i===t.tool,"data-tool":t.tool,disabled:!e,type:`button`,onClick:()=>e?.setTool(t.tool),...O(G.tool,i===t.tool&&G.toolOn),children:t.icon},t.tool)),(0,W.jsx)(`span`,{...O(G.divider)}),(0,W.jsx)(`button`,{"aria-label":r(`storyboard.edSnap`),"aria-pressed":!!e?.snap,disabled:!e,type:`button`,onClick:e?.toggleSnap,...O(G.tool,e?.snap&&G.toolOn),children:(0,W.jsx)(Ve,{size:13})}),(0,W.jsx)(`span`,{...O(G.spacer)}),(0,W.jsx)(`button`,{"aria-label":r(`storyboard.edZoomOut`),type:`button`,onClick:()=>t(Math.max(4,n/1.5)),...O(G.tool),children:(0,W.jsx)(be,{size:13})}),(0,W.jsx)(`button`,{"aria-label":r(`storyboard.edZoomIn`),type:`button`,onClick:()=>t(Math.min(400,n*1.5)),...O(G.tool),children:(0,W.jsx)(ve,{size:13})}),(0,W.jsx)(`button`,{"aria-label":r(`storyboard.edFit`),"data-fit":``,type:`button`,onClick:()=>t(0),...O(G.tool),children:(0,W.jsx)(qe,{size:13})})]})}var _n={captions:`storyboard.edTrackCaptions`,overlay:`storyboard.edTrackOverlay`,picture:`storyboard.edTrackPicture`,voice:`storyboard.edTrackVoice`,music:`storyboard.edTrackMusic`,sfx:`storyboard.edTrackSfx`};function vn({captions:e,code:t,kind:n,locked:r,mute:i,onLock:a}){let{t:o}=k();return(0,W.jsxs)(`div`,{"data-track-head":``,...O(G.head),children:[(0,W.jsx)(`span`,{...O(G.code),children:t}),(0,W.jsx)(`span`,{...O(G.headName),children:o(_n[n])}),e?(0,W.jsx)(`button`,{"aria-label":o(`storyboard.captions`),"aria-pressed":e.on,"data-captions-track":``,type:`button`,onClick:e.toggle,...O(G.tool,G.headTool),children:e.on?(0,W.jsx)(Le,{size:11}):(0,W.jsx)(Fe,{size:11})}):i?(0,W.jsx)(`button`,{"aria-label":o(`storyboard.mute`),"aria-pressed":i.on,"data-mute":n,type:`button`,onClick:i.toggle,...O(G.tool,G.headTool),children:i.on?(0,W.jsx)(st,{size:11}):(0,W.jsx)(at,{size:11})}):(0,W.jsx)(`span`,{}),(0,W.jsx)(`button`,{"aria-label":o(`storyboard.edLock`),"aria-pressed":r,"data-lock":n,type:`button`,onClick:a,...O(G.tool,G.headTool),children:r?(0,W.jsx)(Ee,{size:11}):(0,W.jsx)(ye,{size:11})})]})}function yn({changed:e,children:t,clip:n,onDrag:r,onPick:i,pps:a,selected:o,style:s}){let c=(0,H.useRef)(!1),l=e=>t=>{if(t.button!==0)return;t.stopPropagation();let i=t.clientX,o=t.altKey;c.current=!1;let s=e=>{Math.abs(e.clientX-i)>2&&(c.current=!0)},l=t=>{window.removeEventListener(`pointermove`,s),window.removeEventListener(`pointerup`,l),c.current&&r(n,e,(t.clientX-i)/a,o)};window.addEventListener(`pointermove`,s),window.addEventListener(`pointerup`,l)};return(0,W.jsxs)(`button`,{"aria-pressed":o,"data-changed":e?`true`:void 0,"data-clip":n.id,"data-end":String(n.end),"data-start":String(n.start),style:s,title:n.label,type:`button`,onPointerDown:l(`move`),onClick:e=>{if(c.current){c.current=!1;return}let t=e.currentTarget.getBoundingClientRect();i(n,(e.clientX-t.left)/a)},...O(G.clip,G[n.track],o&&G.selected),children:[t,e?(0,W.jsx)(`span`,{"aria-hidden":`true`,style:{position:`absolute`,top:4,right:8,width:7,height:7,borderRadius:4,background:`#f59e0b`}}):null,n.track===`picture`?(0,W.jsx)(`span`,{"aria-hidden":`true`,"data-trim":``,style:{position:`absolute`,top:18,right:0,bottom:0,width:6,cursor:`ew-resize`},onPointerDown:l(`trim`)}):null]})}var bn=[{kind:`cut`,label:`storyboard.edCut`,icon:(0,W.jsx)(F,{size:13})},{kind:`dissolve`,label:`storyboard.edDissolve`,icon:(0,W.jsx)(Ne,{size:13})},{kind:`black`,label:`storyboard.edBlack`,icon:(0,W.jsx)(De,{size:13})}];function xn({dur:e,kind:t,left:n,onAll:r,onDur:i,onKind:a}){let{t:o}=k(),[s,c]=(0,H.useState)(t);return(0,W.jsxs)(`div`,{"data-transition-menu":``,role:`menu`,style:{left:Math.max(0,n-110)},className:`x10l6tqk x1w7g3bh x1w0boku x16grhtn x1ruevkc x1q4ynmn x12ilycc x1c5gc91 x1ct8sxb`,children:[bn.map(e=>(0,W.jsxs)(`button`,{"aria-checked":s===e.kind,"data-transition":e.kind,role:`menuitemradio`,type:`button`,onClick:()=>{c(e.kind),a(e.kind)},...O(G.row,s===e.kind&&G.rowOn),children:[e.icon,(0,W.jsx)(`span`,{...O(G.rowName),children:o(e.label)})]},e.kind)),(0,W.jsxs)(`div`,{className:`x78zum5 x6s0dn4 x167g77z xtybu7z x1gslohp x178xt8z x13fuv20 xxu5053`,children:[(0,W.jsx)(`span`,{children:o(`storyboard.edLength`)}),(0,W.jsx)(me,{"aria-label":o(`storyboard.edLength`),controls:!1,"data-transition-dur":``,defaultValue:e,min:.1,size:`small`,step:.1,style:{width:64},suffix:`s`,onChange:e=>{e!==null&&Number.isFinite(e)&&e>0&&i(e)}}),(0,W.jsx)(`span`,{...O(G.spacer)}),(0,W.jsx)(ne,{"data-transition-all":``,size:`small`,onClick:()=>r(s),children:o(`storyboard.edAllSeams`)})]})]})}var Sn=4,Cn=400,wn=.008,Tn=3,En=e=>Math.round(e*30)/30,Dn=e=>Math.min(Cn,Math.max(Sn,e)),On=e=>Math.hypot(e[1].clientX-e[0].clientX,e[1].clientY-e[0].clientY);function kn({onRange:e,onSeek:t,pps:n,range:r,total:i}){let a=(0,H.useRef)(!1);(0,H.useEffect)(()=>{if(!r)return;let t=t=>{t.key===`Escape`&&e(null)};return window.addEventListener(`keydown`,t),()=>window.removeEventListener(`keydown`,t)},[r,e]);let o=(e,t)=>En(Math.min(Math.max(0,(e-t)/n),i));return{onPointerDown:n=>{if(n.button!==0)return;let r=n.currentTarget.getBoundingClientRect().left,i=n.clientX;a.current=!1;let s=n=>{if(!a.current&&Math.abs(n.clientX-i)<=Tn)return;a.current=!0;let s=o(n.clientX,r),[c,l]=[o(i,r),s].sort((e,t)=>e-t);e(l>c?{in:c,out:l}:null),t(s)},c=()=>{window.removeEventListener(`pointermove`,s),window.removeEventListener(`pointerup`,c)};window.addEventListener(`pointermove`,s),window.addEventListener(`pointerup`,c)},onClick:n=>{a.current?a.current=!1:(e(null),t(o(n.clientX,n.currentTarget.getBoundingClientRect().left)))}}}function An(e,t,n){let r=(0,H.useRef)(t),i=(0,H.useRef)(n);i.current=n;let a=(0,H.useRef)(null);r.current=t,(0,H.useLayoutEffect)(()=>{let n=e.current,r=a.current;n&&r&&(a.current=null,n.scrollLeft=Math.max(0,r.time*t-r.offset))},[e,t]),(0,H.useEffect)(()=>{let t=e.current;if(!t)return;let n=(e,n)=>{let o=Dn(e);if(o===r.current)return;let s=n-t.getBoundingClientRect().left-156;a.current={offset:s,time:(t.scrollLeft+s)/r.current},r.current=o,i.current(o)},o=e=>{(e.ctrlKey||e.metaKey)&&(e.preventDefault(),n(r.current*Math.exp(-e.deltaY*wn),e.clientX))},s=null,c=e=>{s=e.touches.length===2?{gap:On(e.touches),pps:r.current}:null},l=e=>{if(!s||e.touches.length!==2||!s.gap)return;e.preventDefault();let t=(e.touches[0].clientX+e.touches[1].clientX)/2;n(s.pps*On(e.touches)/s.gap,t)},u=e=>{e.touches.length<2&&(s=null)},d=r.current,f=e=>{e.preventDefault(),d=r.current},p=e=>{e.preventDefault();let t=e;n(d*(t.scale??1),t.clientX??0)};return t.addEventListener(`wheel`,o,{passive:!1}),t.addEventListener(`touchstart`,c,{passive:!0}),t.addEventListener(`touchmove`,l,{passive:!1}),t.addEventListener(`touchend`,u),t.addEventListener(`gesturestart`,f),t.addEventListener(`gesturechange`,p),()=>{t.removeEventListener(`wheel`,o),t.removeEventListener(`touchstart`,c),t.removeEventListener(`touchmove`,l),t.removeEventListener(`touchend`,u),t.removeEventListener(`gesturestart`,f),t.removeEventListener(`gesturechange`,p)}},[e])}var jn={captions:26,overlay:30,picture:56,voice:40,music:34,sfx:26},Mn=[1,2,5,10,15,30,60],Nn={voice:`voice`,music:`music`,sfx:`sfx`};function Pn({changed:e,clips:t,dim:n,edit:r,onDropSound:i,onRange:a,lanes:o,markers:s,onSeek:c,onSelect:l,onZoom:u,pps:d,range:p,selected:m,storyboard:h,time:g,total:_}){let{t:v}=k(),[y,b]=(0,H.useState)(null),x=Math.max(_,1)*d,S=Mn.find(e=>e*d>=64)??120,C=Array.from({length:Math.floor(_/S)+1},(e,t)=>t*S),w=(0,H.useRef)(null),T=kn({onRange:a,onSeek:c,pps:d,range:p,total:_});An(w,d,u);let E=(e,t)=>{r?.tool===`razor`?r.razor(e,t):l(e)},D=t.filter(e=>e.track===`picture`&&e.start>0),A=h.shots.find(e=>e.id===y);return(0,W.jsxs)(`div`,{"data-pps":d,"data-timeline":``,...O(G.timeline),children:[(0,W.jsx)(gn,{edit:r,pps:d,onZoom:u}),(0,W.jsx)(`div`,{"data-timeline-tracks":``,ref:w,...O(G.tracks),children:(0,W.jsxs)(`div`,{style:{position:`relative`,width:156+x},children:[(0,W.jsxs)(`div`,{...O(G.track),children:[(0,W.jsx)(`div`,{...O(G.head)}),(0,W.jsxs)(`div`,{"data-ruler":``,style:{width:x},onClick:T.onClick,onPointerDown:T.onPointerDown,...O(G.lane,G.ruler),children:[p?(0,W.jsx)(`div`,{"data-in":String(p.in),"data-out":String(p.out),"data-range":``,style:{left:p.in*d,width:(p.out-p.in)*d},...O(G.range)}):null,C.map(e=>(0,W.jsx)(`div`,{style:{left:e*d},...O(G.tick),children:(0,W.jsx)(`span`,{...O(G.tickLabel),children:f(e)})},e)),s.map(e=>(0,W.jsx)(`div`,{"data-marker":e.id,style:{left:e.time*d,...e.agent?{backgroundColor:dt}:{}},...O(G.marker)},e.id))]})]}),gt.map(a=>{let s=Nn[a.kind];return(0,W.jsxs)(`div`,{"data-track":a.kind,style:{height:jn[a.kind],...n&&a.kind!==`picture`?{opacity:.4}:{}},...O(G.track),children:[(0,W.jsx)(vn,{code:a.code,kind:a.kind,locked:!!r?.locks.has(a.kind),captions:a.kind===`captions`&&r?{on:h.captions,toggle:r.captions}:void 0,mute:s&&r?{on:h.mute.includes(s),toggle:()=>r.mute(s)}:void 0,onLock:()=>r?.toggleLock(a.kind)}),(0,W.jsxs)(`div`,{style:{width:x},onDragOver:e=>{i&&(a.kind===`music`||a.kind===`sfx`)&&e.preventDefault()},onDrop:e=>{if(!i||a.kind!==`music`&&a.kind!==`sfx`)return;e.preventDefault();let t=e.currentTarget.getBoundingClientRect();i(a.kind,Math.max(0,(e.clientX-t.left)/d),e.dataTransfer)},...O(G.lane),children:[t.filter(e=>e.track===a.kind).map(t=>(0,W.jsx)(yn,{changed:a.kind===`picture`&&!!e?.has(t.id),clip:t,pps:d,selected:m===_t(t),style:{left:t.start*d,width:Math.max(2,(t.end-t.start)*d-2)},onDrag:(e,t,n,i)=>r?.drag(e,t,n,i),onPick:E,children:o?.[a.kind]?.(t)??t.label},t.id)),a.kind===`picture`&&r?D.map(e=>(0,W.jsx)(`button`,{"aria-label":v(`storyboard.edTransitions`),"data-seam":e.id,type:`button`,style:{position:`absolute`,left:e.start*d-8,top:2,zIndex:5,width:16,height:16,borderRadius:8,borderWidth:0,padding:0,background:`#0D99FF`,color:`#fff`,display:`flex`,alignItems:`center`,justifyContent:`center`,cursor:`pointer`},onClick:()=>b(t=>t===e.id?null:e.id),children:(0,W.jsx)(xe,{size:11})},`seam:${e.id}`)):null,a.kind===`picture`&&r&&A?(0,W.jsx)(xn,{dur:A.transitionDur,kind:A.transition,left:(t.find(e=>e.track===`picture`&&e.id===y)?.start??0)*d,onAll:r.transitionAll,onDur:e=>r.transition(A.id,`transition-dur`,e),onKind:e=>r.transition(A.id,`transition`,e)}):null]})]},a.kind)}),p?(0,W.jsx)(`div`,{style:{left:156+p.in*d,width:(p.out-p.in)*d},...O(G.rangeShade)}):null,(0,W.jsx)(`div`,{style:{left:156+g*d},...O(G.playhead)})]})})]})}var Fn=e=>e instanceof HTMLElement&&(e.isContentEditable||/^(INPUT|TEXTAREA|SELECT)$/.test(e.tagName)),In=({edit:e,history:t})=>n=>{if(!e||!t)return!1;let r=n.metaKey||n.ctrlKey,i=n.key.toLowerCase();if(r&&i===`z`)n.shiftKey?t.redo():t.undo();else if(r&&i===`k`)e.splitAtPlayhead();else if(!r&&(n.key===`Backspace`||n.key===`Delete`))return e.remove();else return!1;return!0};function Ln({clock:e,extra:t,timeline:n}){let r=(0,H.useRef)({clock:e,extra:t,timeline:n});r.current={clock:e,extra:t,timeline:n},(0,H.useEffect)(()=>{let e=e=>{let{clock:t,extra:n,timeline:i}=r.current;if(!i||Fn(e.target))return;if(n?.(e)){e.preventDefault();return}if(e.metaKey||e.ctrlKey||e.altKey)return;let a=i.shots.map(e=>e.start);if(e.key===` `||e.key===`k`||e.key===`K`)e.preventDefault(),e.key===` `?t.toggle():t.pause();else if(e.key===`l`||e.key===`L`)t.play();else if(e.key===`j`||e.key===`J`)t.pause(),t.seek(t.time-1);else if(e.key===`ArrowRight`||e.key===`ArrowLeft`){e.preventDefault();let n=e.key===`ArrowRight`;if(!e.shiftKey){t.pause(),t.seek(t.time+(n?1:-1)/30);return}let r=n?a.find(e=>e>t.time+1e-6):[...a].reverse().find(e=>e<t.time-1e-6);t.seek(r??(n?i.total:0))}};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[])}function Rn({feed:e,overlays:t,record:n,storyboard:r}){let{t:i}=k(),a=(0,H.useRef)({});(0,H.useEffect)(()=>{a.current=Object.fromEntries(Object.entries(t??{}).map(([e,t])=>[e,t.hash]))},[t]);let o=e.storyboardOverlay,s=(0,H.useCallback)(async(e,t,n,r)=>{if(!o)return null;let s=r??a.current[e],{status:c,body:l}=await o({shot:e,hash:s,index:t,delta:n}).catch(()=>({status:0,body:{}}));return typeof l.hash==`string`&&(a.current={...a.current,[e]:l.hash}),c===200?{applied:typeof l.applied==`number`?l.applied:n,hash:String(l.hash)}:(z.error(c===409?i(`storyboard.stale`):i(`storyboard.editFailed`,{error:String(l.error??c)})),null)},[o,i]);if(!o||!r)return null;let c=(e,t,n,r)=>{let i;return{undo:async()=>{let a=await s(e,t,-n,r);return i=a?.hash,a!==null},redo:async()=>{let r=await s(e,t,n,i);return r&&c(e,t,r.applied,r.hash)}}};return async(e,t)=>{let i=r.shots.find(t=>t.id===e.shot);if(!i||e.index===void 0)return;let a=Math.round(Math.round(t*10)/10*i.speed*1e3)/1e3;if(a===0)return;let o=await s(i.id,e.index,a);o?.applied&&n?.(c(i.id,e.index,o.applied,o.hash))}}var zn=8,Q=e=>Math.round(e*10)/10,Bn=e=>Math.round(e*1e3)/1e3;function Vn({clock:e,onOverlay:t,pps:n,run:r,selected:i,storyboard:a,timeline:o}){let[s,c]=(0,H.useState)(`select`),[l,u]=(0,H.useState)(()=>new Set),[d,f]=(0,H.useState)(!0);if(!r||!a||!o)return null;let p=e=>{e.length&&r(e)},m=e=>a.shots.findIndex(t=>t.id===e),g=(t,r)=>{if(!d)return r;let i=a.shots[t];return[...o.lines.filter(e=>e.shot===i.id).map(e=>e.end),e.time].map(e=>({at:e,gap:Math.abs(e-r)*n})).filter(e=>e.gap<=zn).sort((e,t)=>e.gap-t.gap)[0]?.at??r},_=(e,t,r,i)=>{if(l.has(e.track)||Math.abs(r)*n<2)return[];if(e.track===`picture`){let n=m(e.id),c=a.shots[n];if(t===`trim`){let t=g(n,e.end+r);return[{op:`dur`,shot:c.id,dur:Math.max(.1,Q(t-e.start))}]}if(i||s===`slip`){let e=Bn(Math.max(0,(c.take?c.takeIn??0:c.srcIn)-r*c.speed));return[{op:`attr`,target:{kind:`shot`,id:c.id},name:c.take?`take-in`:`src-in`,value:e}]}let l=(e.start+e.end)/2+r,u=a.shots.find((e,t)=>t!==n&&(o.shots[t].start+o.shots[t].end)/2>l),d=a.shots[n+1];return(u?.id??null)===(d?.id??null)?[]:[{op:`move`,shot:c.id,before:u?.id??null}]}if(e.track===`music`){let t=a.music.find(t=>t.id===e.id);return t?[{op:`attr`,target:{kind:`music`,id:e.id},name:`at`,value:Math.max(0,Q(t.at+r))}]:[]}if(e.track===`sfx`){let t=m(e.shot),n=a.shots[t],i=n?.sfx.find(t=>t.id===e.id);return!n||!i?[]:[{op:`attr`,target:{kind:`sfx`,id:e.id},name:`at`,value:Math.min(Math.max(0,Q(i.at+r)),n.dur)}]}if(e.track===`voice`||e.track===`captions`){let t=m(e.shot),n=o.shots[t];if(!n)return[];let i=e.start-n.start+r;return[{op:`attr`,target:{kind:`line`,id:e.id},name:`at`,value:Math.min(Math.max(0,Q(i)),n.end-n.start)}]}return[]},v=(e,t)=>{let n=a.shots.find(t=>t.id===e);!n||l.has(`picture`)||t<=.05||t>=n.dur-.05||p([{op:`split`,shot:e,at:Q(t)}])};return{tool:s,setTool:c,locks:l,toggleLock:e=>u(t=>{let n=new Set(t);return n.delete(e)||n.add(e),n}),snap:d,toggleSnap:()=>f(e=>!e),drag:(e,n,r,i)=>{e.track===`overlay`?l.has(`overlay`)||t?.(e,r):p(_(e,n,r,i))},razor:(e,t)=>{e.track===`picture`&&v(e.id,t)},splitAtPlayhead:()=>{let t=h(o,e.time),n=o.shots[t];n&&v(a.shots[t].id,e.time-n.start)},remove:()=>{if(!i||l.has(i.track))return!1;if(i.track===`picture`)p([{op:`delete`,shot:i.id}]);else if(i.track===`music`||i.track===`sfx`)p([{op:`remove`,kind:i.track,id:i.id}]);else return!1;return!0},addSound:(e,t,n)=>{if(l.has(e))return;if(e===`music`){p([{op:`add-sound`,kind:e,src:t,at:Math.max(0,Q(n))}]);return}let r=h(o,n),i=o.shots[r];i&&p([{op:`add-sound`,kind:e,shot:a.shots[r].id,src:t,at:Math.max(0,Q(n-i.start))}])},transition:(e,t,n)=>p([{op:`attr`,target:{kind:`shot`,id:e},name:t,value:n}]),transitionAll:e=>p(a.shots.slice(1).map(t=>({op:`attr`,target:{kind:`shot`,id:t.id},name:`transition`,value:e}))),mute:e=>{let t=new Set(a.mute);t.delete(e)||t.add(e),p([{op:`attr`,target:{kind:`root`},name:`mute`,value:[...t].join(` `)||null}])},captions:()=>p([{op:`attr`,target:{kind:`root`},name:`captions`,value:a.captions?`off`:`on`}]),send:p}}function Hn(e){let t=(0,H.useRef)([]),n=(0,H.useRef)([]),r=(0,H.useCallback)(e=>{t.current=[...t.current,e].slice(-100),n.current=[]},[]),i=(0,H.useCallback)(async t=>{if(!e||t.length===0)return null;let n=({hash:r,undo:i})=>{let a;return{undo:async()=>{if(i.length===0)return!1;let t=await e(i,r);return a=t?.hash,t!==null},redo:async()=>{let r=await e(t,a);return r?n(r):null}}},i=await e(t);return i&&r(n(i)),i?.undo??null},[e,r]),a=(0,H.useCallback)(async()=>{let e=t.current.at(-1);e&&(t.current=t.current.slice(0,-1),await e.undo()&&(n.current=[...n.current,e]))},[]),o=(0,H.useCallback)(async()=>{let e=n.current.at(-1);if(!e)return;n.current=n.current.slice(0,-1);let r=await e.redo();r&&(t.current=[...t.current,r])},[]);return e?{record:r,redo:o,run:i,undo:a}:null}function Un(e,t={}){let[n,r]=(0,H.useState)(null),[i,a]=(0,H.useState)(null),[o,s]=(0,H.useState)(null),[c,l]=(0,H.useState)({}),u=t=>t===null?null:e.find(e=>e.n===t)??null,d=e=>{let n=e?.hashes;return n?new Set(Object.keys(t).filter(e=>n[e]!==t[e])):new Set},f=[...e].reverse().find(e=>e.hashes)??null,p=e=>t=>e(e=>e===t?null:t);return{viewing:u(n),compare:u(i),side:u(o),latest:f,changedNow:f?d(f).size:null,changedSince:d,view:e=>{r(e),e!==null&&s(null)},toggleCompare:p(a),toggleSide:p(s),lengthOf:e=>e?c[e.n]:void 0,setLength:(e,t)=>l(n=>n[e]===t?n:{...n,[e]:t})}}var Wn=.35;function Gn(e,t,{paced:n=!1}={}){let[r,i]=(0,H.useState)(0),[a,o]=(0,H.useState)(!1),[s,c]=(0,H.useState)(0),l=(0,H.useRef)({at:0,from:0}),u=(0,H.useRef)(1/0),d=(0,H.useRef)({time:r,playing:a,total:e,range:t,paced:n});d.current={time:r,playing:a,total:e,range:t,paced:n};let f=e=>{l.current={at:performance.now(),from:e},u.current=d.current.paced?e+Wn:1/0};(0,H.useEffect)(()=>{if(!a)return;let e=0,t=()=>{let n=Math.min(l.current.from+(performance.now()-l.current.at)/1e3,u.current),r=d.current.range;r&&n>=r.out?(f(r.in),i(r.in),e=requestAnimationFrame(t)):n>=d.current.total?(i(d.current.total),o(!1)):(i(n),e=requestAnimationFrame(t))};return e=requestAnimationFrame(t),()=>cancelAnimationFrame(e)},[a]);let p=(0,H.useCallback)(e=>{let t=Math.min(Math.max(0,e),d.current.total);f(t),i(t),c(e=>e+1)},[]),m=(0,H.useCallback)(e=>{let t=Math.min(Math.max(0,e),d.current.total);f(t),i(t)},[]),h=(0,H.useCallback)(()=>{let{time:e,total:t,range:n}=d.current,r=n&&(e<n.in||e>=n.out)?n.in:e>=t?0:e;f(r),i(r),o(t>0)},[]),g=(0,H.useCallback)(()=>o(!1),[]);return{time:r,playing:a,seek:p,seeks:s,play:h,pause:g,toggle:(0,H.useCallback)(()=>d.current.playing?g():h(),[g,h]),follow:m}}var Kn=640;function qn(e,t){if(!e||e.readyState<2||!e.videoWidth||!e.videoHeight)return;let n=e.getBoundingClientRect();if(!n.width||!n.height)return;let r=Math.max(n.width/e.videoWidth,n.height/e.videoHeight),i=n.width/r,a=n.height/r,o=(e.videoWidth-i)/2,s=(e.videoHeight-a)/2,c=o+t.x*i,l=s+t.y*a,u=t.w*i,d=t.h*a,f=Math.min(1,Kn/u),p=document.createElement(`canvas`);p.width=Math.max(1,Math.round(u*f)),p.height=Math.max(1,Math.round(d*f));let m=p.getContext(`2d`);if(m)try{return m.drawImage(e,c,l,u,d,0,0,p.width,p.height),p.toDataURL(`image/jpeg`,.8)}catch{return}}var Jn=()=>document.querySelector(`[data-player] video[data-crop-source="true"]`);function Yn({clock:e,comments:t,current:n,cut:r,spans:i,storyboard:a}){let{t:o}=k(),[s,c]=(0,H.useState)(null),[l,u]=(0,H.useState)(null),d=(0,H.useRef)(new Map).current;return!t||!a||!i?null:{draft:s,memory:d,mark:l,setMark:u,cancel:()=>{c(null),u(null)},onShot:e=>t=>{let n=a.shots[e];u(null),c({place:`row`,anchor:t?{shot:n.id,line:t}:{shot:n.id},label:t?o(`storyboard.commentLine`):o(`storyboard.commentOnShot`,{title:n.title})})},onMoment:()=>{let t=a.shots[n],s=i.ranges[n];if(!t||!s)return;e.pause();let l=Math.round((r?e.time:Math.max(0,e.time-s.start))*1e3)/1e3;u(null),c({place:`player`,anchor:r?{shot:t.id,cut:r,t:l}:{shot:t.id,t:l},label:r?o(`storyboard.commentAtCut`,{time:f(l),n:r}):o(`storyboard.commentAt`,{time:f(l),title:t.title})})},submit:e=>{if(!s)return Promise.resolve(!1);let n=s.place===`player`&&l?{...s.anchor,mark:l}:s.anchor,r=n.mark?qn(Jn(),n.mark):void 0;return t.create(n,e,r).then(e=>(e&&u(null),e))}}}function $(e,t,n,r){if(!n)return{ranges:t.shots,strip:t,total:t.total};let i=new Map(n.shots.map(e=>[e.id,e])),a=e.shots.map(e=>{let t=i.get(e.id);return t?{id:t.id,start:t.start,end:t.end}:null}),o=r??n.shots.reduce((e,t)=>Math.max(e,t.end),0);return{ranges:a,strip:{shots:n.shots.map(({id:e,start:t,end:n})=>({id:e,start:t,end:n})),lines:[],total:o},total:o}}function Xn({ranges:e},t){let n=-1,r=-1/0;return e.forEach((e,i)=>{e&&e.start<=t+1e-6&&e.start>r&&(n=i,r=e.start)}),n===-1?e.findIndex(Boolean):n}function Zn(e){let[t,n]=(0,H.useState)(`cut`),[r,i]=(0,H.useState)(null),[a,o]=(0,H.useState)(!1),[s,c]=(0,H.useState)({}),l=t=>t===`cut`?e.find(e=>e.n===r)??e.at(-1)??null:null,u=l(t),d=u?e.filter(e=>e.n<u.n).at(-1)??null:null;return{mode:u?t:`animatic`,cut:u,previous:d,comparing:a&&!!d,setMode:n,cutFor:l,pick:e=>i(e),lengthOf:e=>e?s[e.n]:void 0,setLength:(e,t)=>c(n=>n[e]===t?n:{...n,[e]:t}),toggleCompare:()=>o(e=>!e)}}function Qn(e,t,n,r){let i=e.ranges[n],a=t.ranges[n];return!i||!a?Math.min(r,t.total):Math.min(a.start+Math.max(0,r-i.start),a.end)}var $n=e=>e?[...e.voice,...e.music,...e.sfx]:[];function er({base:e,clock:t,muted:n,plan:r}){let i=(0,H.useRef)(new Map),a=(0,H.useRef)(new Set),o=(0,H.useRef)(t.seeks),s=t=>{let n=`${e}${t.file}`,r=i.current.get(t.key);return r&&r.dataset.src===n||(r?.pause(),r=new Audio(n),r.preload=`auto`,r.dataset.src=n,i.current.set(t.key,r)),r},l=e=>{i.current.get(e)?.pause(),a.current.delete(e)};(0,H.useEffect)(()=>{let e=o.current!==t.seeks;if(o.current=t.seeks,!t.playing||!r){for(let e of[...a.current])l(e);return}let i=new Set;for(let o of $n(r)){if(!(t.time>=o.start&&t.time<o.end))continue;i.add(o.key);let l=s(o);l.volume=n?0:Math.min(1,c(o,r,t.time)),(e||!a.current.has(o.key))&&(l.currentTime=o.from+(t.time-o.start),a.current.add(o.key),l.play()?.catch(()=>{}))}for(let e of[...a.current])i.has(e)||l(e)}),(0,H.useEffect)(()=>()=>{for(let e of i.current.values())e.pause();a.current.clear()},[])}function tr(e,t){let{t:n}=k(),r=(0,H.useRef)(null),[i,a]=(0,H.useState)(null);if(!e||!t)return null;let{shots:o}=t,s=(t,n)=>{let i=r.current;r.current=null,a(null);let s=o[t].id;if(!i||i===s)return;let c=n===`before`?s:o[t+1]?.id??null,l=o.findIndex(e=>e.id===i);c===i||l>=0&&(o[l+1]?.id??null)===c||e([{op:`move`,shot:i,before:c}])};return{add:t=>void e([{op:`add`,after:t,title:n(`storyboard.newShot`)}]),drag:e=>{let t=o[e].id;return{side:i?.shot===t?i.side:null,onDragStart:()=>{r.current=t},onDragEnd:()=>{r.current=null,a(null)},onDragOver:e=>{r.current&&r.current!==t&&a({shot:t,side:e})},onDrop:t=>s(e,t)}},edit:t=>{let r=o[t];return{onTitle:t=>void e([{op:`title`,shot:r.id,text:t}]),onAction:(t,n)=>void e([{op:`action`,shot:r.id,index:t,text:n}]),onLine:(t,n)=>void e([{op:`line`,line:t,text:n}]),onDur:t=>void e([{op:`dur`,shot:r.id,dur:t}]),onDuplicate:()=>void e([{op:`duplicate`,shot:r.id}]),onDelete:()=>{window.confirm(n(`storyboard.deleteConfirm`,{title:r.title}))&&e([{op:`delete`,shot:r.id}])}}}}}function nr(e){let t=e.storyboardComments,n=e.storyboardComment;return(0,H.useMemo)(()=>{if(!n)return null;let e=e=>n(e).then(()=>!0,()=>!1),r=new Set(t?.orphans??[]),i=new Map,a=[];for(let e of t?.comments.threads??[])e.messages.every(e=>e.deleted)||(r.has(e.id)?a.push(e):i.set(e.anchor.shot,[...i.get(e.anchor.shot)??[],e]));return{byShot:i,orphans:a,create:(t,n,r)=>e({op:`create`,anchor:t,text:n,...r?{crop:r}:{}}),actions:{reply:(t,n)=>e({op:`reply`,threadId:t,text:n}),resolve:t=>void e({op:`resolve`,threadId:t}),reopen:t=>void e({op:`reopen`,threadId:t}),edit:(t,n,r)=>void e({op:`edit`,threadId:t,messageId:n,text:r}),remove:(t,n)=>void e({op:`delete`,threadId:t,messageId:n})}}},[n,t])}function rr(e,t,n){let r=(0,H.useRef)(!1);(0,H.useEffect)(()=>{if(r.current||!e||!t)return;r.current=!0;let i=new URLSearchParams(location.search).get(`shot`),a=i?e.shots.findIndex(e=>e.id===i):-1,o=t.ranges[a];o&&n.seek(o.start)},[e,t,n])}function ir(e,t){let{t:n}=k(),r=(0,H.useRef)(t);(0,H.useEffect)(()=>{t&&(r.current=t)},[t]);let i=(0,H.useRef)(Promise.resolve()),a=e.storyboardEdit,o=(0,H.useCallback)((e,t)=>{let o=i.current.then(async()=>{let i=t??r.current;if(!a||!i)return null;let{status:o,body:s}=await a({hash:i,ops:e}).catch(()=>({status:0,body:{}}));return typeof s.hash==`string`&&(r.current=s.hash),o===200?{hash:String(s.hash),undo:Array.isArray(s.undo)?s.undo:[]}:(o===409?z.error(n(`storyboard.stale`)):z.error(n(`storyboard.editFailed`,{error:String(s.error??o)})),null)});return i.current=o.catch(()=>null),o},[a,n]);return a?o:null}function ar({audio:e,base:t,clock:n}){let r=(0,H.useRef)(null),i=(0,H.useCallback)(()=>{r.current?.pause(),r.current=null},[]);return(0,H.useEffect)(()=>{n.playing&&i()},[n.playing,i]),(0,H.useEffect)(()=>i,[i]),{preview:(0,H.useCallback)(a=>{let o=e[a];if(n.pause(),i(),!o)return;let s=new Audio(`${t}${o.file}`);r.current=s,s.play()?.catch(()=>{})},[e,t,n,i])}}var or=16;function sr({actions:e,feed:t,fill:n=!1,id:r}){let{t:i}=k(),a=w(r,t),o=a?.storyboard??null,s=a?.timeline??null,c=Un(a?.cuts??[],a?.shotHashes),{viewing:l}=c,u=o&&s?$(o,s,l,c.lengthOf(l)):null,[f,p]=(0,H.useState)(null),m=Gn(u?.total??s?.total??0,f,{paced:!!l}),[h,g]=(0,H.useState)(null),_=h??o?.captions??!0,[v,y]=(0,H.useState)(!1),[b,x]=(0,H.useState)(or),[S,C]=(0,H.useState)(null),E=a?.contentBase??``,D=Hn(ir(t,a?.hash)),j=tr(D?.run??null,o),{preview:te}=ar({audio:a?.audio??{},base:E,clock:m});er({base:E,clock:m,muted:v,plan:o&&s&&!l?T(o,s,a?.audio??{}):null});let M=u?Xn(u,m.time):-1,N=nr(t),P=Yn({clock:m,comments:N,current:M,cut:l?.n??null,spans:u,storyboard:o}),F=Vn({clock:m,onOverlay:Rn({feed:t,overlays:a?.overlays,record:D?.record,storyboard:o}),pps:b,run:l?null:D?.run??null,selected:S,storyboard:o,timeline:s}),I=pt(t,E,F);Ln({clock:m,timeline:s,extra:In({edit:F,history:D})}),rr(o,u,m),ee(`storyboard`),(0,H.useEffect)(()=>{document.title=a?.title||r},[a?.title,r]);let ne=(0,W.jsx)(zt,{actions:e,comments:N,cuts:a?.cuts??[],feed:t,pending:a?.voicePending.length??0,status:a?.export??null,storyboard:o,timeline:s,title:a?.title??r,versions:c,onSeek:m.seek});if(!o||!s||!u)return(0,W.jsxs)(`div`,{...O(d.root,n&&d.fill),children:[ne,(0,W.jsx)(`div`,{...O(d.message),children:a?a.warnings[0]??i(`storyboard.waiting`):i(`storyboard.connecting`)})]});let re=bt(o,s,At(a?.overlays)),ie=l?[...kt(o,l),...re.filter(e=>e.track!==`picture`)]:re,L=c.side,R=e=>{let t=s.shots[e];t&&m.seek(t.start)},ae=Dt(o,s,N),z=new Set(a?.voicePending??[]),oe=new Set(Object.keys(a?.audio??{})),se=Ot(o,a?.sounds);return(0,W.jsxs)(`div`,{...O(G.root,n&&G.fill),children:[ne,(0,W.jsxs)(`div`,{...O(G.upper),children:[(0,W.jsx)(Vt,{initial:300,max:520,min:240,placement:`left`,storageKey:`ryugi:storyboard-bin-width`,children:(0,W.jsx)(ht,{current:M,cuts:a?.cuts??[],sounds:se,storyboard:o,timeline:s,script:(0,W.jsx)(mn,{current:M,editing:j,failures:a?.voiceFailures??{},follow:m.playing,pending:z,storyboard:o,timeline:s,voiced:oe,onComment:P?e=>P.onShot(e):void 0,onSeek:R,onPreview:(e,t)=>{R(e),te(t)}}),onPreview:I.preview,onShot:R})}),(0,W.jsx)(rn,{captions:_,clock:m,muted:v,storyboard:o,timeline:l?u.strip:s,compare:L?{label:i(`storyboard.cutNumber`,{n:L.n}),src:`${E}${L.file}`,time:Qn(u,$(o,s,L,c.lengthOf(L)),M,m.time)}:null,cut:l?{src:`${E}${l.file}`,onLength:e=>c.setLength(l.n,e)}:null,overlay:P?.draft?.place===`player`?(0,W.jsx)(lt,{mark:P.mark,onMark:P.setMark}):null,picture:{base:E,motion:new Set,report:e=>t.send({...e,artifact:`storyboard/${r}`}),version:a?.version??0},onCaptions:()=>F&&!l?F.captions():g(!_),onComment:P?.onMoment,onMute:()=>y(e=>!e)}),(0,W.jsx)(Vt,{initial:300,max:480,min:260,placement:`right`,storageKey:`ryugi:storyboard-inspector-width`,children:(0,W.jsx)(tn,{clip:S,edit:F?{send:F.send,time:m.time,onSeek:m.seek}:void 0,storyboard:o,timeline:s})})]}),(0,W.jsx)(Pn,{changed:c.compare?c.changedSince(c.compare):void 0,clips:ie,dim:!!l,edit:F,markers:ae,pps:b,range:f,selected:S?_t(S):null,storyboard:o,time:m.time,total:u.total,onDropSound:F?I.drop:void 0,onRange:p,onSeek:m.seek,onSelect:C,onZoom:e=>x(e||or)}),P?.draft?(0,W.jsx)(Et,{draft:P.draft,memory:P.memory,onCancel:P.cancel,onSubmit:P.submit}):null,(0,W.jsx)(A,{warnings:a?.warnings??[]})]})}var cr={controls:{k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kOIVth:`x167g77z`,$$css:!0},label:{kMwMTN:`xddlp02`,kGuDYH:`x1j6dyjg`,$$css:!0}};function lr({aspect:e,clock:t,current:n,previous:r,spans:i,src:a}){let{t:o}=k();return(0,W.jsxs)(`div`,{children:[(0,W.jsx)(`div`,{...O(cr.label),children:o(`storyboard.previousCut`)}),(0,W.jsx)(`div`,{style:{aspectRatio:e.replace(`:`,` / `)},...O(b.stage),children:(0,W.jsx)(g,{active:!0,marker:`compare`,playing:t.playing,seeks:t.seeks,src:a,start:0,time:Qn(i,r,n,t.time)})})]})}function ur({comparing:e,cut:t,cuts:n,onCompare:r,onPick:i,previous:o}){let{t:s,i18n:c}=k(),l=e=>e?new Date(e).toLocaleString(c.language,{month:`short`,day:`numeric`,hour:`2-digit`,minute:`2-digit`}):``;return(0,W.jsxs)(`div`,{...O(cr.controls),children:[(0,W.jsx)(`div`,{"data-cut-version":``,children:(0,W.jsx)(ge,{"aria-label":s(`storyboard.cutVersion`),size:`small`,value:String(t.n),options:[...n].reverse().map(e=>({value:String(e.n),label:`${s(`storyboard.cutNumber`,{n:e.n})}${e.registeredAt?` · ${l(e.registeredAt)}`:``}`})),onChange:e=>{typeof e==`string`&&i(Number(e))}})}),o?(0,W.jsx)(ne,{"aria-pressed":e,"data-compare":``,icon:(0,W.jsx)(a,{size:13}),size:`small`,type:e?`primary`:`default`,onClick:r,children:s(`storyboard.compareWith`,{n:o.n})}):null]})}function dr({current:e,number:t,onSeek:n,time:r,timeline:i}){let a=i.total||1,o=e=>{let t=e.currentTarget.getBoundingClientRect();t.width>0&&n((e.clientX-t.left)/t.width*i.total)};return(0,W.jsxs)(`div`,{"data-strip":``,...O(b.strip),onClick:o,children:[i.shots.map((r,i)=>(0,W.jsx)(`span`,{"aria-current":i===e,"data-strip-shot":r.id,style:{flex:Math.max(r.end-r.start,.01)},onClick:e=>{e.stopPropagation(),n(r.start)},...O(b.segment,i===e&&b.segmentOn),children:t?.(r.id)||i+1},r.id)),(0,W.jsx)(`span`,{style:{left:`${Math.min(r,a)/a*100}%`},...O(b.playhead)})]})}function fr({captions:e,clock:t,cut:n,current:r,muted:i,onCaptions:a,onComment:o,onCutLength:s,onMute:c,overlay:u,picture:d,storyboard:p,timeline:m}){let{t:h}=k(),_=(0,H.useRef)(null),[v,S]=(0,H.useState)(0),C=l(p.aspect)[0];(0,H.useEffect)(()=>{let e=_.current;if(!e)return;let t=()=>S(e.clientWidth/C);if(t(),typeof ResizeObserver>`u`)return;let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[C]);let w=e?x(m.lines,t.time):null,T=w?p.shots.flatMap(e=>e.lines).find(e=>e.id===w.id)?.caption:void 0;return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(`div`,{"data-player":``,ref:_,style:{aspectRatio:p.aspect.replace(`:`,` / `)},...O(b.stage),children:[n?(0,W.jsx)(g,{active:!0,audible:!i,marker:`cut`,playing:t.playing,seeks:t.seeks,src:n,start:0,time:t.time,onLength:s,onTime:t.follow}):(0,W.jsx)(y,{...d,muted:i,playing:t.playing,scale:v,seeks:t.seeks,storyboard:p,time:t.time,timeline:m}),T&&!n?(0,W.jsx)(`div`,{"data-caption":``,...O(b.caption),children:T}):null,u]}),(0,W.jsxs)(`div`,{...O(b.transport),children:[(0,W.jsx)(`button`,{"aria-label":t.playing?h(`storyboard.pause`):h(`storyboard.play`),type:`button`,onClick:t.toggle,...O(b.play),children:(0,W.jsx)(Ce,{playing:t.playing,size:14})}),(0,W.jsxs)(`span`,{"data-clock":``,...O(b.clock),children:[f(t.time),` / `,f(m.total)]}),(0,W.jsx)(`span`,{style:{flex:1}}),o?(0,W.jsx)(`button`,{"aria-label":h(`storyboard.commentMoment`),"data-comment-moment":``,title:h(`storyboard.commentMoment`),type:`button`,onClick:o,...O(b.tool),children:(0,W.jsx)(Ue,{size:16})}):null,(0,W.jsx)(`button`,{"aria-label":h(`storyboard.mute`),"aria-pressed":i,type:`button`,onClick:c,...O(b.tool,!i&&b.toolOn),children:i?(0,W.jsx)(st,{size:16}):(0,W.jsx)(at,{size:16})}),(0,W.jsx)(`button`,{"aria-label":h(`storyboard.captions`),"aria-pressed":e,type:`button`,onClick:a,...O(b.tool,e&&b.toolOn),children:e?(0,W.jsx)(Le,{size:16}):(0,W.jsx)(Fe,{size:16})}),(0,W.jsx)(`button`,{"aria-label":h(`storyboard.fullscreen`),type:`button`,onClick:()=>void _.current?.requestFullscreen?.(),...O(b.tool),children:(0,W.jsx)(Se,{size:15})})]}),(0,W.jsx)(dr,{current:m.shots.findIndex(e=>e.id===p.shots[r]?.id),number:e=>p.shots.findIndex(t=>t.id===e)+1,time:t.time,timeline:m,onSeek:t.seek})]})}function pr({actions:e,hasCut:t,mode:n,onMode:r,over:i,shots:a,title:o,total:s}){let{t:c}=k();return(0,W.jsxs)(`header`,{...O(d.header),children:[(0,W.jsx)(`span`,{...O(d.title),children:o}),a!==null&&s!==null?(0,W.jsxs)(`span`,{"data-over":i,"data-total":``,...O(d.total,i&&d.over),children:[c(`storyboard.shots`,{count:a}),` · `,f(s)]}):null,(0,W.jsx)(`span`,{...O(d.spacer)}),(0,W.jsxs)(`span`,{...O(d.segment),children:[(0,W.jsxs)(`button`,{"aria-pressed":n===`animatic`,"data-mode":`animatic`,type:`button`,onClick:()=>r(`animatic`),...O(d.segmentItem,n===`animatic`&&d.segmentOn),children:[(0,W.jsx)(L,{size:13}),c(`storyboard.animatic`)]}),(0,W.jsxs)(`button`,{"aria-pressed":n===`cut`,"data-mode":`cut`,disabled:!t,title:t?void 0:c(`storyboard.noCut`),type:`button`,onClick:()=>r(`cut`),...O(d.segmentItem,n===`cut`&&d.segmentOn),children:[(0,W.jsx)(je,{size:13}),c(`storyboard.cut`)]})]}),e]})}var mr=e=>e instanceof HTMLElement&&(e.isContentEditable||/^(INPUT|TEXTAREA|SELECT)$/.test(e.tagName));function hr({clock:e,onCaptions:t,spans:n}){(0,H.useEffect)(()=>{if(!n)return;let r=n.ranges.flatMap(e=>e?[e]:[]).sort((e,t)=>e.start-t.start),i=i=>{if(i.metaKey||i.ctrlKey||i.altKey||mr(i.target))return;let a=n.ranges[Xn(n,e.time)],o=a?r.indexOf(a):-1;if(i.key===` `)i.preventDefault(),e.toggle();else if(i.key===`ArrowRight`&&o<r.length-1)i.preventDefault(),e.seek(r[o+1].start);else if(i.key===`ArrowLeft`&&o>=0){i.preventDefault();let t=r[o].start;e.seek(e.time-t>.5||o===0?t:r[o-1].start)}else(i.key===`c`||i.key===`C`)&&t()};return window.addEventListener(`keydown`,i),()=>window.removeEventListener(`keydown`,i)},[n,e,t])}function gr({actions:e,feed:t,fill:n=!1,id:r}){let{t:i}=k(),a=w(r,t),o=a?.storyboard??null,s=a?.timeline??null,c=a?.cuts??[],l=Zn(c),u=o&&s?$(o,s,l.cut,l.lengthOf(l.cut)):null,f=Gn(u?.total??0,null,{paced:!!l.cut}),[p,m]=(0,H.useState)(null),h=p??o?.captions??!0,[g,_]=(0,H.useState)(!1),v=(0,H.useCallback)(e=>t.send({...e,artifact:`storyboard/${r}`}),[t,r]),y=a?.contentBase??``;er({base:y,clock:f,muted:g,plan:o&&s&&!l.cut?T(o,s,a?.audio??{}):null});let b=u?Xn(u,f.time):-1,x=nr(t),S=Yn({clock:f,comments:x,current:b,cut:l.cut?.n??null,spans:u,storyboard:o}),C=(0,H.useRef)(null);(0,H.useEffect)(()=>{C.current!==null&&(f.seek(C.current),C.current=null)});let E=e=>{if(!o||!s||!u||e===l.mode)return;let t=u.ranges[b],n=t?f.time-t.start:0,r=l.cutFor(e),i=$(o,s,r,l.lengthOf(r)).ranges[b];C.current=i?Math.min(i.start+Math.max(0,n),i.end):0,f.pause(),l.setMode(e)};ee(`storyboard`),(0,H.useEffect)(()=>{document.title=a?.title||r},[a?.title,r]),hr({clock:f,spans:u,onCaptions:()=>m(!h)}),rr(o,u,f);let D=o?.target&&o.target!==`invalid`?o.target:null,j=!!(D&&s&&(s.total<D.min||s.total>D.max)),te=o?.shots[b];return(0,W.jsxs)(`div`,{...O(d.root,n&&d.fill),children:[(0,W.jsx)(pr,{actions:e,hasCut:c.length>0,mode:l.mode,over:j,shots:o?.shots.length??null,title:a?.title??r,total:s?.total??null,onMode:E}),o&&s&&u?(0,W.jsxs)(`div`,{className:`x78zum5 xdt5ytf x1v2ro7d xh8yej3 x104f9w2 x2lwn1j xvueqy4 x1qhigcl x9f619 x1odjw0f`,children:[(0,W.jsx)(fr,{captions:h,clock:f,current:b,cut:l.cut?`${y}${l.cut.file}`:void 0,muted:g,picture:{base:y,motion:new Set,report:v,version:a?.version??0},storyboard:o,timeline:u.strip,overlay:S?.draft?.place===`player`?(0,W.jsx)(lt,{mark:S.mark,onMark:S.setMark}):null,onCaptions:()=>m(!h),onComment:S?.onMoment,onCutLength:e=>l.cut&&l.setLength(l.cut.n,e),onMute:()=>_(e=>!e)}),l.cut?(0,W.jsx)(ur,{comparing:l.comparing,cut:l.cut,cuts:c,previous:l.previous,onCompare:l.toggleCompare,onPick:e=>{f.pause(),C.current=0,l.pick(e)}}):null,l.comparing&&l.previous?(0,W.jsx)(lr,{aspect:o.aspect,clock:f,current:b,spans:u,src:`${y}${l.previous.file}`,previous:$(o,s,l.previous,l.lengthOf(l.previous))}):null,S?.draft?.place===`player`?(0,W.jsx)(xt,{label:S.draft.label,onCancel:S.cancel,onSubmit:S.submit}):null,x&&te?(0,W.jsx)(`div`,{"data-shot-threads":``,children:(0,W.jsx)(Mt,{actions:x.actions,threads:x.byShot.get(te.id)??[],onJump:e=>{let t=u.ranges[b],{cut:n,t:r}=e.anchor;n!==void 0&&n===l.cut?.n&&r!==void 0?f.seek(r):t&&f.seek(Math.min(t.start+(n===void 0?r??0:0),t.end))}})}):null,x?(0,W.jsx)(Mt,{orphan:!0,actions:x.actions,heading:i(`storyboard.deletedShots`),threads:x.orphans,onJump:()=>{}}):null]}):(0,W.jsx)(`div`,{...O(d.message),children:a?a.warnings[0]??i(`storyboard.waiting`):i(`storyboard.connecting`)}),(0,W.jsx)(A,{warnings:a?.warnings??[]})]})}var _r=`(max-width: 900px)`;function vr(){let[e,t]=(0,H.useState)(()=>window.matchMedia?.(_r).matches??!1);return(0,H.useEffect)(()=>{let e=window.matchMedia?.(_r);if(!e)return;let n=()=>t(e.matches);return e.addEventListener(`change`,n),()=>e.removeEventListener(`change`,n)},[]),e}function yr({id:e}){let t=o(`storyboard`,e),n=r(),a=n?void 0:(0,W.jsx)(i,{artifact:`storyboard/${e}`});return vr()?(0,W.jsx)(gr,{local:!0,actions:a,feed:t,fill:n,id:e}):(0,W.jsx)(sr,{actions:a,feed:t,fill:n,id:e})}export{yr as StoryboardLayout};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{E as e}from"./editor-CAV9B3e1.js";var t=[e];export{t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{D as t,v as n}from"./route-B8QJSEdc.js";import{t as r}from"./react-DlmbjZJV.js";import{t as i}from"./jsx-runtime-LKYXHABd.js";import{Et as a,Tt as o}from"./MotionConfigContext-HC2vqcJO.js";var s={"Claude Code":`ClaudeCode`,"Claude Cowork":`Claude`,Codex:`Codex`,Cursor:`Cursor`,"Gemini CLI":`GeminiCLI`,Grok:`Grok`,"GitHub Copilot":`GithubCopilot`,"Kilo Code":`KiloCode`,OMP:`Pi`,OpenCode:`OpenCode`,"Qwen Code":`Qwen`,Antigravity:`Antigravity`,Goose:`Goose`,Amp:`Amp`,Cline:`Cline`,"Roo Code":`RooCode`,Devin:`Devin`,Replit:`Replit`,v0:`V0`},c=e=>s[e];function l({author:e,name:t}){let r=t??(e===`human`?n.t(`common.you`):`Agent`);return{label:r,initial:[...r][0].toUpperCase()}}var u=.8,d=.3,f=`#F34E3F`,p=`#000`,m=f,ee=.6,h=e(r(),1),g=i(),_=(0,h.memo)(({size:e=`1em`,style:t,...n})=>(0,g.jsxs)(`svg`,{fill:`currentColor`,fillRule:`evenodd`,height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 24 24`,width:e,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,g.jsx)(`title`,{children:`Amp`}),(0,g.jsx)(`path`,{d:`M15.087 23.18L12.03 24l-2.097-7.823-5.738 5.738-2.251-2.251 5.718-5.719-7.769-2.082.82-3.057 11.294 3.08 3.08 11.295z`}),(0,g.jsx)(`path`,{d:`M19.505 18.762l-3.057.82-2.564-9.573-9.572-2.564.819-3.057 11.295 3.079 3.08 11.295z`}),(0,g.jsx)(`path`,{d:`M23.893 14.374l-3.057.82-2.565-9.572L8.7 3.057 9.52 0l11.295 3.08 3.079 11.294z`})]})),te=(e,t)=>{if(t){if(e&&t===`#000`)return`0 0 0 1px rgba(255,255,255,0.1) inset`;if(!e&&t===`#fff`)return`0 0 0 1px rgba(0,0,0,0.05) inset`}},v=(0,h.memo)(({shape:e=`circle`,color:n=`#fff`,background:r,size:i,style:a,iconMultiple:s=.75,Icon:c,iconStyle:l,iconClassName:u,...d})=>{let{isDarkMode:f}=t();return(0,g.jsx)(o,{flex:`none`,style:{background:r,borderRadius:e===`circle`?`50%`:Math.floor(i*.1),boxShadow:te(f,r),color:n,height:i,overflow:`hidden`,width:i,...a},...d,children:c&&(0,g.jsx)(c,{className:u,color:n,size:i,style:{transform:`scale(${s})`,...l}})})}),ne=(0,h.memo)(({...e})=>(0,g.jsx)(v,{Icon:_,"aria-label":`Amp`,background:p,color:m,iconMultiple:ee,...e})),re=(0,h.memo)(({size:e=`1em`,style:t,...n})=>(0,g.jsxs)(`svg`,{height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 24 24`,width:e,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,g.jsx)(`title`,{children:`Amp`}),(0,g.jsx)(`path`,{d:`M15.087 23.18L12.03 24l-2.097-7.823-5.738 5.738-2.251-2.251 5.718-5.719-7.769-2.082.82-3.057 11.294 3.08 3.08 11.295z`,fill:`#F34E3F`}),(0,g.jsx)(`path`,{d:`M19.505 18.762l-3.057.82-2.564-9.573-9.572-2.564.819-3.057 11.295 3.079 3.08 11.295z`,fill:`#F34E3F`}),(0,g.jsx)(`path`,{d:`M23.893 14.374l-3.057.82-2.565-9.572L8.7 3.057 9.52 0l11.295 3.08 3.079 11.294z`,fill:`#F34E3F`})]})),ie=(0,h.memo)(({size:e=`1em`,style:t,...n})=>(0,g.jsxs)(`svg`,{fill:`currentColor`,fillRule:`evenodd`,height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 54 24`,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,g.jsx)(`title`,{children:`Amp`}),(0,g.jsx)(`path`,{d:`M44.055 2C48.405 2 52 5.114 52 10.002c0 5.149-3.66 8.838-8.39 8.838-1.668 0-3.186-.311-4.435-1.015a6.072 6.072 0 01-2.443-2.53l-1.212 8.492-.03.213h-2.447l.041-.285 3.087-21.269h2.424l-.256 1.581C39.801 2.69 41.772 2 44.055 2zm-33.666.028c1.668 0 3.193.312 4.45 1.018a6.084 6.084 0 012.454 2.546l.409-2.932.03-.214h2.419l-2.264 15.763-.03.213h-2.42l.234-1.604c-1.45 1.359-3.443 2.05-5.726 2.05-4.35 0-7.945-3.114-7.945-8.002 0-5.149 3.66-8.838 8.39-8.838zm12.292 16.394h-2.42L22.555 2.66l.03-.213h2.417l-2.32 15.976zm4.354 0h-2.419L26.91 2.66l.03-.213h2.417l-2.32 15.976zM33.71 2.446l-2.32 15.976h-2.42L31.264 2.66l.03-.213h2.417zM10.64 4.143c-3.675 0-6.143 2.932-6.143 6.612 0 1.58.498 3.08 1.48 4.181.976 1.097 2.449 1.817 4.44 1.817 3.674 0 6.143-2.959 6.143-6.64 0-1.78-.617-3.27-1.657-4.314-1.04-1.043-2.517-1.656-4.264-1.656zm32.942-.027c-3.673 0-6.142 2.958-6.142 6.639 0 1.78.617 3.27 1.657 4.313 1.04 1.044 2.517 1.657 4.263 1.657 3.675 0 6.143-2.932 6.143-6.611 0-1.581-.498-3.081-1.479-4.182-.977-1.097-2.45-1.817-4.442-1.817z`})]})),y=(0,h.memo)(({Icon:e,style:t,Text:n,color:r,size:i=24,spaceMultiple:o=1,textMultiple:s=1,extra:c,extraStyle:l,showText:u=!0,showLogo:d=!0,extraClassName:f,iconProps:p,inverse:m,...ee})=>{let h=e&&d&&(0,g.jsx)(e,{size:i,...p,style:m?{marginLeft:i*o,...p?.style}:{marginRight:i*o,...p?.style}}),_=u&&n&&(0,g.jsx)(n,{size:i*s});return(0,g.jsxs)(a,{horizontal:!0,align:`center`,flex:`none`,justify:`flex-start`,style:{color:r,...t},...ee,children:[m?(0,g.jsxs)(g.Fragment,{children:[_,h]}):(0,g.jsxs)(g.Fragment,{children:[h,_]}),c&&(0,g.jsx)(`span`,{className:f,style:{fontSize:i*s*.95,lineHeight:1,...l},children:c})]})}),ae=(0,h.memo)(({type:e=`mono`,...t})=>(0,g.jsx)(y,{Icon:e===`color`?re:_,Text:ie,"aria-label":`Amp`,spaceMultiple:d,textMultiple:u,...t})),b=_;b.Color=re,b.Text=ie,b.Combine=ae,b.Avatar=ne,b.colorPrimary=f,b.title=`Amp`;var x=`Antigravity`,oe=.3,se=`#fff`,ce=se,le=`#fff`,ue=.7,de=/\p{Lu}?\p{Ll}+|[0-9]+|\p{Lu}+(?!\p{Ll})|\p{Emoji_Presentation}|\p{Extended_Pictographic}|\p{L}+/gu;function fe(e){return Array.from(e.match(de)??[])}function pe(e){return fe(e).map(e=>e.toLowerCase()).join(`-`)}var me=e=>{let t=(0,h.useId)(),n=`lobe-icons-${pe(e)}-${t}`;return(0,h.useMemo)(()=>({fill:`url(#${n})`,id:n}),[e])},he=(e,t)=>{let n=(0,h.useId)();return(0,h.useMemo)(()=>Array.from({length:t},(t,r)=>{let i=`lobe-icons-${pe(e)}-${r}-${n}`;return{fill:`url(#${i})`,id:i}}),[e,t,n])},ge=(0,h.memo)(({size:e=`1em`,style:t,...n})=>{let[r,i,a,o,s,c,l,u,d,f,p,m]=he(x,12);return(0,g.jsxs)(`svg`,{height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 24 24`,width:e,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,g.jsx)(`title`,{children:x}),(0,g.jsx)(`mask`,{height:`23`,id:r.id,maskUnits:`userSpaceOnUse`,width:`24`,x:`0`,y:`1`,children:(0,g.jsx)(`path`,{d:`M21.751 22.607c1.34 1.005 3.35.335 1.508-1.508C17.73 15.74 18.904 1 12.037 1 5.17 1 6.342 15.74.815 21.1c-2.01 2.009.167 2.511 1.507 1.506 5.192-3.517 4.857-9.714 9.715-9.714 4.857 0 4.522 6.197 9.714 9.715z`,fill:`#fff`})}),(0,g.jsxs)(`g`,{mask:r.fill,children:[(0,g.jsx)(`g`,{filter:i.fill,children:(0,g.jsx)(`path`,{d:`M-1.018-3.992c-.408 3.591 2.686 6.89 6.91 7.37 4.225.48 7.98-2.043 8.387-5.633.408-3.59-2.686-6.89-6.91-7.37-4.225-.479-7.98 2.043-8.387 5.633z`,fill:`#FFE432`})}),(0,g.jsx)(`g`,{filter:a.fill,children:(0,g.jsx)(`path`,{d:`M15.269 7.747c1.058 4.557 5.691 7.374 10.348 6.293 4.657-1.082 7.575-5.653 6.516-10.21-1.058-4.556-5.691-7.374-10.348-6.292-4.657 1.082-7.575 5.653-6.516 10.21z`,fill:`#FC413D`})}),(0,g.jsx)(`g`,{filter:o.fill,children:(0,g.jsx)(`path`,{d:`M-12.443 10.804c1.338 4.703 7.36 7.11 13.453 5.378 6.092-1.733 9.947-6.95 8.61-11.652C8.282-.173 2.26-2.58-3.833-.848-9.925.884-13.78 6.1-12.443 10.804z`,fill:`#00B95C`})}),(0,g.jsx)(`g`,{filter:s.fill,children:(0,g.jsx)(`path`,{d:`M-12.443 10.804c1.338 4.703 7.36 7.11 13.453 5.378 6.092-1.733 9.947-6.95 8.61-11.652C8.282-.173 2.26-2.58-3.833-.848-9.925.884-13.78 6.1-12.443 10.804z`,fill:`#00B95C`})}),(0,g.jsx)(`g`,{filter:c.fill,children:(0,g.jsx)(`path`,{d:`M-7.608 14.703c3.352 3.424 9.126 3.208 12.896-.483 3.77-3.69 4.108-9.459.756-12.883C2.69-2.087-3.083-1.871-6.853 1.82c-3.77 3.69-4.108 9.458-.755 12.883z`,fill:`#00B95C`})}),(0,g.jsx)(`g`,{filter:l.fill,children:(0,g.jsx)(`path`,{d:`M9.932 27.617c1.04 4.482 5.384 7.303 9.7 6.3 4.316-1.002 6.971-5.448 5.93-9.93-1.04-4.483-5.384-7.304-9.7-6.301-4.316 1.002-6.971 5.448-5.93 9.93z`,fill:`#3186FF`})}),(0,g.jsx)(`g`,{filter:u.fill,children:(0,g.jsx)(`path`,{d:`M2.572-8.185C.392-3.329 2.778 2.472 7.9 4.771c5.122 2.3 11.042.227 13.222-4.63 2.18-4.855-.205-10.656-5.327-12.955-5.122-2.3-11.042-.227-13.222 4.63z`,fill:`#FBBC04`})}),(0,g.jsx)(`g`,{filter:d.fill,children:(0,g.jsx)(`path`,{d:`M-3.267 38.686c-5.277-2.072 3.742-19.117 5.984-24.83 2.243-5.712 8.34-8.664 13.616-6.592 5.278 2.071 11.533 13.482 9.29 19.195-2.242 5.713-23.613 14.298-28.89 12.227z`,fill:`#3186FF`})}),(0,g.jsx)(`g`,{filter:f.fill,children:(0,g.jsx)(`path`,{d:`M28.71 17.471c-1.413 1.649-5.1.808-8.236-1.878-3.135-2.687-4.531-6.201-3.118-7.85 1.412-1.649 5.1-.808 8.235 1.878s4.532 6.2 3.119 7.85z`,fill:`#749BFF`})}),(0,g.jsx)(`g`,{filter:p.fill,children:(0,g.jsx)(`path`,{d:`M18.163 9.077c5.81 3.93 12.502 4.19 14.946.577 2.443-3.612-.287-9.727-6.098-13.658-5.81-3.931-12.502-4.19-14.946-.577-2.443 3.612.287 9.727 6.098 13.658z`,fill:`#FC413D`})}),(0,g.jsx)(`g`,{filter:m.fill,children:(0,g.jsx)(`path`,{d:`M-.915 2.684c-1.44 3.473-.97 6.967 1.05 7.804 2.02.837 4.824-1.3 6.264-4.772 1.44-3.473.97-6.967-1.05-7.804-2.02-.837-4.824 1.3-6.264 4.772z`,fill:`#FFEE48`})})]}),(0,g.jsxs)(`defs`,{children:[(0,g.jsxs)(`filter`,{colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,height:`17.587`,id:i.id,width:`19.838`,x:`-3.288`,y:`-11.917`,children:[(0,g.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),(0,g.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,g.jsx)(`feGaussianBlur`,{result:`effect1_foregroundBlur_977_115`,stdDeviation:`1.117`})]}),(0,g.jsxs)(`filter`,{colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,height:`38.565`,id:a.id,width:`38.9`,x:`4.251`,y:`-13.493`,children:[(0,g.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),(0,g.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,g.jsx)(`feGaussianBlur`,{result:`effect1_foregroundBlur_977_115`,stdDeviation:`5.4`})]}),(0,g.jsxs)(`filter`,{colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,height:`36.517`,id:o.id,width:`40.955`,x:`-21.889`,y:`-10.592`,children:[(0,g.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),(0,g.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,g.jsx)(`feGaussianBlur`,{result:`effect1_foregroundBlur_977_115`,stdDeviation:`4.591`})]}),(0,g.jsxs)(`filter`,{colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,height:`36.517`,id:s.id,width:`40.955`,x:`-21.889`,y:`-10.592`,children:[(0,g.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),(0,g.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,g.jsx)(`feGaussianBlur`,{result:`effect1_foregroundBlur_977_115`,stdDeviation:`4.591`})]}),(0,g.jsxs)(`filter`,{colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,height:`36.595`,id:c.id,width:`36.632`,x:`-19.099`,y:`-10.278`,children:[(0,g.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),(0,g.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,g.jsx)(`feGaussianBlur`,{result:`effect1_foregroundBlur_977_115`,stdDeviation:`4.591`})]}),(0,g.jsxs)(`filter`,{colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,height:`34.087`,id:l.id,width:`33.533`,x:`.981`,y:`8.758`,children:[(0,g.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),(0,g.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,g.jsx)(`feGaussianBlur`,{result:`effect1_foregroundBlur_977_115`,stdDeviation:`4.363`})]}),(0,g.jsxs)(`filter`,{colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,height:`35.276`,id:u.id,width:`35.978`,x:`-6.143`,y:`-21.659`,children:[(0,g.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),(0,g.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,g.jsx)(`feGaussianBlur`,{result:`effect1_foregroundBlur_977_115`,stdDeviation:`3.954`})]}),(0,g.jsxs)(`filter`,{colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,height:`46.523`,id:d.id,width:`45.114`,x:`-11.96`,y:`-.46`,children:[(0,g.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),(0,g.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,g.jsx)(`feGaussianBlur`,{result:`effect1_foregroundBlur_977_115`,stdDeviation:`3.531`})]}),(0,g.jsxs)(`filter`,{colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,height:`24.054`,id:f.id,width:`25.094`,x:`10.485`,y:`.58`,children:[(0,g.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),(0,g.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,g.jsx)(`feGaussianBlur`,{result:`effect1_foregroundBlur_977_115`,stdDeviation:`3.159`})]}),(0,g.jsxs)(`filter`,{colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,height:`30.007`,id:p.id,width:`33.508`,x:`5.833`,y:`-12.467`,children:[(0,g.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),(0,g.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,g.jsx)(`feGaussianBlur`,{result:`effect1_foregroundBlur_977_115`,stdDeviation:`2.669`})]}),(0,g.jsxs)(`filter`,{colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,height:`26.151`,id:m.id,width:`22.194`,x:`-8.355`,y:`-8.876`,children:[(0,g.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),(0,g.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,g.jsx)(`feGaussianBlur`,{result:`effect1_foregroundBlur_977_115`,stdDeviation:`3.303`})]})]})]})}),_e=(0,h.memo)(({...e})=>(0,g.jsx)(v,{Icon:ge,"aria-label":x,background:ce,color:le,iconMultiple:ue,...e})),ve=(0,h.memo)(({size:e=`1em`,style:t,...n})=>(0,g.jsxs)(`svg`,{fill:`currentColor`,fillRule:`evenodd`,height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 24 24`,width:e,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,g.jsx)(`title`,{children:x}),(0,g.jsx)(`path`,{d:`M21.751 22.607c1.34 1.005 3.35.335 1.508-1.508C17.73 15.74 18.904 1 12.037 1 5.17 1 6.342 15.74.815 21.1c-2.01 2.009.167 2.511 1.507 1.506 5.192-3.517 4.857-9.714 9.715-9.714 4.857 0 4.522 6.197 9.714 9.715z`})]})),ye=(0,h.memo)(({size:e=`1em`,style:t,...n})=>(0,g.jsxs)(`svg`,{fill:`currentColor`,fillRule:`evenodd`,height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 174 24`,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,g.jsx)(`title`,{children:x}),(0,g.jsx)(`path`,{d:`M165.834 22.734a6.851 6.851 0 01-.148.317 8.749 8.749 0 01-.105.232h-1.856c.085-.183.176-.387.274-.612.099-.21.218-.47.359-.78l.232-.506c.07-.155.147-.33.232-.527.098-.183.211-.415.337-.696l.97-2.108-4.449-10.078h1.94l3.373 7.99h.042l3.247-7.99h1.94l-5.566 12.84c-.056.126-.148.323-.274.59-.113.281-.225.548-.337.801a6.679 6.679 0 01-.211.527zM154.865 9.6V7.976h1.898V4.94h1.792v3.036h2.635V9.6h-2.635v5.861c0 .604.119 1.054.358 1.35.253.28.625.421 1.117.421.225 0 .436-.028.633-.084.197-.07.387-.162.569-.274v1.75a3.916 3.916 0 01-.696.19 3.392 3.392 0 01-.78.084c-.899 0-1.623-.267-2.171-.802-.548-.548-.822-1.279-.822-2.192V9.6h-1.898zM151.661 18.729V7.976h1.792V18.73h-1.792zm.885-12.734a1.24 1.24 0 01-.907-.38 1.24 1.24 0 01-.379-.907c0-.365.127-.667.379-.906a1.24 1.24 0 01.907-.38c.366 0 .668.127.907.38.253.239.379.541.379.906 0 .352-.126.654-.379.907-.239.253-.541.38-.907.38zM144.496 18.729l-4.343-10.753h1.918l3.332 8.644h.042l3.373-8.644h1.876l-4.385 10.753h-1.813zM134.384 19.066c-.801 0-1.503-.154-2.108-.463a3.696 3.696 0 01-1.434-1.266 3.471 3.471 0 01-.506-1.855c0-.787.204-1.447.612-1.982.408-.548.956-.955 1.644-1.223.689-.28 1.448-.421 2.277-.421.478 0 .921.042 1.329.126.407.07.759.162 1.054.274.309.099.541.197.696.296v-.654c0-.815-.289-1.462-.865-1.94-.576-.478-1.279-.716-2.108-.716-.591 0-1.146.133-1.666.4a2.964 2.964 0 00-1.201 1.075l-1.35-1.012a4.344 4.344 0 011.054-1.096c.422-.31.9-.548 1.434-.717a5.848 5.848 0 011.729-.253c1.462 0 2.607.387 3.436 1.16.83.773 1.244 1.813 1.244 3.12v6.81h-1.707v-1.54h-.085c-.182.31-.443.612-.78.907a4.347 4.347 0 01-1.202.696 3.938 3.938 0 01-1.497.274zm.169-1.58c.619 0 1.181-.155 1.687-.465.52-.309.935-.724 1.244-1.244.309-.52.464-1.089.464-1.707-.324-.225-.731-.408-1.223-.549a5.592 5.592 0 00-1.581-.21c-1.027 0-1.779.21-2.256.632-.478.422-.717.942-.717 1.56 0 .59.225 1.069.674 1.434.45.365 1.02.548 1.708.548zM123.833 18.729V7.976h1.708v1.73h.084c.14-.408.372-.76.696-1.055.337-.31.716-.548 1.138-.717a3.312 3.312 0 011.286-.274c.324 0 .577.021.759.063.183.029.352.078.506.148v1.94a3.05 3.05 0 00-.738-.253 3.584 3.584 0 00-.78-.085 2.5 2.5 0 00-1.433.443 3.297 3.297 0 00-1.055 1.18 3.508 3.508 0 00-.379 1.624v6.009h-1.792zM116.438 23.62c-.913 0-1.7-.154-2.361-.464-.646-.295-1.173-.674-1.581-1.138-.394-.464-.675-.935-.843-1.413l1.644-.695c.225.59.604 1.082 1.139 1.476.548.407 1.215.61 2.002.61 1.125 0 1.989-.33 2.594-.99.604-.646.906-1.553.906-2.72v-1.202h-.084c-.337.52-.822.963-1.455 1.329-.632.351-1.37.527-2.213.527a4.76 4.76 0 01-2.552-.717c-.759-.478-1.363-1.139-1.813-1.982-.45-.857-.674-1.841-.674-2.951s.224-2.088.674-2.931c.45-.857 1.054-1.525 1.813-2.003a4.76 4.76 0 012.552-.717c.843 0 1.581.183 2.213.548.633.352 1.118.794 1.455 1.329h.084v-1.54h1.708v10.331c0 1.195-.232 2.186-.696 2.973a4.201 4.201 0 01-1.855 1.75c-.773.394-1.658.59-2.657.59zm0-6.304a3.43 3.43 0 001.75-.463c.535-.324.956-.788 1.265-1.392.324-.604.485-1.328.485-2.171 0-.872-.161-1.603-.485-2.193-.309-.604-.73-1.061-1.265-1.37a3.43 3.43 0 00-1.75-.464c-.632 0-1.215.161-1.749.485-.535.309-.963.766-1.287 1.37-.323.59-.484 1.314-.484 2.171 0 .858.161 1.589.484 2.193.324.59.752 1.047 1.287 1.37a3.43 3.43 0 001.749.464zM107.731 18.729V7.976h1.792V18.73h-1.792zm.886-12.734c-.352 0-.654-.127-.907-.38a1.237 1.237 0 01-.379-.907c0-.365.126-.667.379-.906.253-.253.555-.38.907-.38.365 0 .667.127.906.38.254.239.38.541.38.906 0 .352-.126.654-.38.907-.239.253-.541.38-.906.38zM99.693 9.6V7.976h1.898V4.94h1.792v3.036h2.635V9.6h-2.635v5.861c0 .604.119 1.054.358 1.35.253.28.626.421 1.117.421.225 0 .436-.028.633-.084.197-.07.387-.162.569-.274v1.75a3.916 3.916 0 01-.696.19 3.39 3.39 0 01-.779.084c-.9 0-1.624-.267-2.172-.802-.548-.548-.822-1.279-.822-2.192V9.6h-1.898zM89.427 18.729V7.977h1.707v1.58h.085c.28-.52.738-.97 1.37-1.349.647-.38 1.35-.569 2.108-.569 1.322 0 2.313.387 2.973 1.16.675.759 1.012 1.77 1.012 3.036v6.894H96.89v-6.62c0-1.04-.253-1.771-.759-2.193-.492-.436-1.131-.653-1.918-.653-.59 0-1.11.168-1.56.506-.45.323-.802.745-1.055 1.265a3.713 3.713 0 00-.38 1.644v6.051h-1.791zM74.733 18.729l5.735-15.096h2.024l5.735 15.096h-1.961l-1.54-4.153h-6.493l-1.54 4.153h-1.96zm9.382-5.84l-2.003-5.44-.59-1.623h-.084l-.59 1.623-2.004 5.44h5.271zM10.653 19.068C5.951 19.068 2 15.237 2 10.534 2 5.832 5.95 2 10.653 2c2.601 0 4.45 1.02 5.844 2.351l-1.643 1.643c-1-.937-2.351-1.666-4.2-1.666-3.431 0-6.115 2.769-6.115 6.204 0 3.435 2.684 6.201 6.114 6.201 2.226 0 3.495-.894 4.306-1.707.665-.667 1.103-1.623 1.27-2.936h-5.635V9.76h7.901c.083.417.124.916.124 1.457 0 1.749-.479 3.914-2.017 5.454-1.496 1.56-3.41 2.393-5.949 2.393v.004zM30.454 13.573c0 3.164-2.473 5.495-5.505 5.495s-5.505-2.33-5.505-5.495 2.473-5.496 5.505-5.496 5.505 2.31 5.505 5.496zm-2.411 0c0-1.978-1.435-3.33-3.096-3.33-1.662 0-3.096 1.352-3.096 3.33 0 1.977 1.434 3.33 3.096 3.33 1.661 0 3.096-1.373 3.096-3.33zM42.437 13.573c0 3.164-2.473 5.495-5.505 5.495s-5.505-2.33-5.505-5.495 2.473-5.496 5.505-5.496 5.505 2.31 5.505 5.496zm-2.411 0c0-1.978-1.435-3.33-3.096-3.33-1.662 0-3.096 1.352-3.096 3.33 0 1.977 1.434 3.33 3.096 3.33 1.661 0 3.096-1.373 3.096-3.33zM53.9 8.41v9.865c0 4.059-2.393 5.725-5.22 5.725-2.664 0-4.266-1.79-4.868-3.247l2.101-.874c.374.896 1.29 1.957 2.766 1.957 1.81 0 2.934-1.123 2.934-3.226v-.791h-.083c-.54.667-1.581 1.249-2.892 1.249-2.745 0-5.262-2.393-5.262-5.475s2.517-5.516 5.262-5.516c1.31 0 2.351.582 2.892 1.228h.083V8.41H53.9zm-2.122 5.183c0-1.936-1.29-3.35-2.934-3.35-1.643 0-3.057 1.416-3.057 3.35 0 1.934 1.393 3.31 3.057 3.31s2.934-1.396 2.934-3.31zM58.047 2.582v16.152h-2.413V2.582h2.413zM67.4 15.383l1.872 1.249c-.603.896-2.06 2.436-4.576 2.436-3.12 0-5.45-2.415-5.45-5.495 0-3.268 2.351-5.496 5.18-5.496 2.827 0 4.241 2.269 4.7 3.497l.25.624-7.343 3.038c.561 1.103 1.434 1.666 2.663 1.666 1.228 0 2.08-.602 2.704-1.519zm-5.762-1.978l4.91-2.04c-.271-.687-1.082-1.166-2.038-1.166-1.226 0-2.933 1.082-2.87 3.206h-.002z`})]})),be=(0,h.memo)(({type:e=`mono`,...t})=>(0,g.jsx)(y,{Icon:e===`color`?ge:ve,Text:ye,"aria-label":x,spaceMultiple:oe,textMultiple:1,...t})),S=ve;S.Color=ge,S.Text=ye,S.Combine=be,S.Avatar=_e,S.colorPrimary=se,S.title=x;var C=`Claude`,xe=.8,Se=.1,Ce=`#D97757`,we=Ce,Te=`#fff`,Ee=.75,De=(0,h.memo)(({size:e=`1em`,style:t,...n})=>(0,g.jsxs)(`svg`,{fill:`currentColor`,fillRule:`evenodd`,height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 24 24`,width:e,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,g.jsx)(`title`,{children:C}),(0,g.jsx)(`path`,{d:`M4.709 15.955l4.72-2.647.08-.23-.08-.128H9.2l-.79-.048-2.698-.073-2.339-.097-2.266-.122-.571-.121L0 11.784l.055-.352.48-.321.686.06 1.52.103 2.278.158 1.652.097 2.449.255h.389l.055-.157-.134-.098-.103-.097-2.358-1.596-2.552-1.688-1.336-.972-.724-.491-.364-.462-.158-1.008.656-.722.881.06.225.061.893.686 1.908 1.476 2.491 1.833.365.304.145-.103.019-.073-.164-.274-1.355-2.446-1.446-2.49-.644-1.032-.17-.619a2.97 2.97 0 01-.104-.729L6.283.134 6.696 0l.996.134.42.364.62 1.414 1.002 2.229 1.555 3.03.456.898.243.832.091.255h.158V9.01l.128-1.706.237-2.095.23-2.695.08-.76.376-.91.747-.492.584.28.48.685-.067.444-.286 1.851-.559 2.903-.364 1.942h.212l.243-.242.985-1.306 1.652-2.064.73-.82.85-.904.547-.431h1.033l.76 1.129-.34 1.166-1.064 1.347-.881 1.142-1.264 1.7-.79 1.36.073.11.188-.02 2.856-.606 1.543-.28 1.841-.315.833.388.091.395-.328.807-1.969.486-2.309.462-3.439.813-.042.03.049.061 1.549.146.662.036h1.622l3.02.225.79.522.474.638-.079.485-1.215.62-1.64-.389-3.829-.91-1.312-.329h-.182v.11l1.093 1.068 2.006 1.81 2.509 2.33.127.578-.322.455-.34-.049-2.205-1.657-.851-.747-1.926-1.62h-.128v.17l.444.649 2.345 3.521.122 1.08-.17.353-.608.213-.668-.122-1.374-1.925-1.415-2.167-1.143-1.943-.14.08-.674 7.254-.316.37-.729.28-.607-.461-.322-.747.322-1.476.389-1.924.315-1.53.286-1.9.17-.632-.012-.042-.14.018-1.434 1.967-2.18 2.945-1.726 1.845-.414.164-.717-.37.067-.662.401-.589 2.388-3.036 1.44-1.882.93-1.086-.006-.158h-.055L4.132 18.56l-1.13.146-.487-.456.061-.746.231-.243 1.908-1.312-.006.006z`})]})),Oe=(0,h.memo)(({...e})=>(0,g.jsx)(v,{Icon:De,"aria-label":C,background:we,color:Te,iconMultiple:Ee,...e})),ke=(0,h.memo)(({size:e=`1em`,style:t,...n})=>(0,g.jsxs)(`svg`,{height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 24 24`,width:e,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,g.jsx)(`title`,{children:C}),(0,g.jsx)(`path`,{d:`M4.709 15.955l4.72-2.647.08-.23-.08-.128H9.2l-.79-.048-2.698-.073-2.339-.097-2.266-.122-.571-.121L0 11.784l.055-.352.48-.321.686.06 1.52.103 2.278.158 1.652.097 2.449.255h.389l.055-.157-.134-.098-.103-.097-2.358-1.596-2.552-1.688-1.336-.972-.724-.491-.364-.462-.158-1.008.656-.722.881.06.225.061.893.686 1.908 1.476 2.491 1.833.365.304.145-.103.019-.073-.164-.274-1.355-2.446-1.446-2.49-.644-1.032-.17-.619a2.97 2.97 0 01-.104-.729L6.283.134 6.696 0l.996.134.42.364.62 1.414 1.002 2.229 1.555 3.03.456.898.243.832.091.255h.158V9.01l.128-1.706.237-2.095.23-2.695.08-.76.376-.91.747-.492.584.28.48.685-.067.444-.286 1.851-.559 2.903-.364 1.942h.212l.243-.242.985-1.306 1.652-2.064.73-.82.85-.904.547-.431h1.033l.76 1.129-.34 1.166-1.064 1.347-.881 1.142-1.264 1.7-.79 1.36.073.11.188-.02 2.856-.606 1.543-.28 1.841-.315.833.388.091.395-.328.807-1.969.486-2.309.462-3.439.813-.042.03.049.061 1.549.146.662.036h1.622l3.02.225.79.522.474.638-.079.485-1.215.62-1.64-.389-3.829-.91-1.312-.329h-.182v.11l1.093 1.068 2.006 1.81 2.509 2.33.127.578-.322.455-.34-.049-2.205-1.657-.851-.747-1.926-1.62h-.128v.17l.444.649 2.345 3.521.122 1.08-.17.353-.608.213-.668-.122-1.374-1.925-1.415-2.167-1.143-1.943-.14.08-.674 7.254-.316.37-.729.28-.607-.461-.322-.747.322-1.476.389-1.924.315-1.53.286-1.9.17-.632-.012-.042-.14.018-1.434 1.967-2.18 2.945-1.726 1.845-.414.164-.717-.37.067-.662.401-.589 2.388-3.036 1.44-1.882.93-1.086-.006-.158h-.055L4.132 18.56l-1.13.146-.487-.456.061-.746.231-.243 1.908-1.312-.006.006z`,fill:`#D97757`,fillRule:`nonzero`})]})),Ae=(0,h.memo)(({size:e=`1em`,style:t,...n})=>(0,g.jsxs)(`svg`,{fill:`currentColor`,fillRule:`nonzero`,height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 97 24`,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,g.jsx)(`title`,{children:C}),(0,g.jsx)(`path`,{d:`M13.623 20.222c-3.417 0-5.753-1.901-6.855-4.827a12.992 12.992 0 01-.838-4.772c0-4.907 2.206-8.315 7.08-8.315 3.275 0 5.297 1.425 6.448 4.826h1.402l-.19-4.69C18.709 1.18 16.258.543 13.276.543c-4.2 0-7.775 1.874-9.763 5.254a11.357 11.357 0 00-1.511 5.872c0 3.753 1.777 7.08 5.113 8.926a11.95 11.95 0 005.943 1.398c3.254 0 5.835-.617 8.122-1.697l.593-5.172h-1.43c-.858 2.362-1.88 3.78-3.574 4.534-.831.373-1.88.564-3.146.564zm14.74-17.914L28.499 0h-.967L23.23 1.29v.699l1.907.882v16.142c0 1.1-.565 1.344-2.043 1.528v1.18h7.319v-1.18c-1.484-.184-2.042-.428-2.042-1.528V2.315l-.007-.007zm29.104 19.685h.565l4.95-.937v-1.208l-.695-.054c-1.157-.109-1.457-.346-1.457-1.29V9.897l.137-2.763h-.783l-4.678.672v1.181l.457.082c1.266.183 1.64.536 1.64 1.419v7.67c-1.212.937-2.369 1.527-3.744 1.527-1.525 0-2.471-.774-2.471-2.58V9.905l.136-2.763h-.804l-4.684.672v1.181l.484.082c1.266.183 1.64.536 1.64 1.418v7.08c0 3 1.703 4.426 4.412 4.426 2.07 0 3.765-1.1 5.038-2.627L57.474 22l-.007-.007zm-13.602-9.55c0-3.836-2.043-5.309-5.733-5.309-3.254 0-5.616 1.344-5.616 3.57 0 .666.238 1.175.721 1.528l2.478-.326c-.109-.746-.163-1.201-.163-1.391 0-1.263.674-1.901 2.042-1.901 2.022 0 3.044 1.419 3.044 3.7v.746l-5.106 1.527c-1.702.462-2.67.863-3.316 1.8a3.386 3.386 0 00-.476 1.9c0 2.172 1.497 3.706 4.057 3.706 1.852 0 3.493-.835 4.922-2.416.51 1.581 1.294 2.416 2.69 2.416 1.13 0 2.15-.455 3.063-1.344l-.272-.937a4.363 4.363 0 01-1.178.163c-.783 0-1.157-.617-1.157-1.826v-5.607zm-6.536 7.378c-1.396 0-2.26-.808-2.26-2.226 0-.964.456-1.528 1.43-1.854l4.139-1.31v3.965c-1.321.997-2.097 1.425-3.31 1.425zm43.095 1.235v-1.208l-.701-.054c-1.158-.109-1.45-.346-1.45-1.29V2.308L78.409 0h-.974l-4.302 1.29v.699l1.906.882V8.18a6.024 6.024 0 00-3.656-1.046c-4.276 0-7.612 3.245-7.612 8.098 0 3.998 2.397 6.761 6.346 6.761 2.042 0 3.819-.99 4.922-2.525l-.136 2.525h.571l4.95-.937zm-8.96-12.313c2.043 0 3.575 1.181 3.575 3.353v6.11a4.91 4.91 0 01-3.547 1.425c-2.928 0-4.412-2.308-4.412-5.39 0-3.462 1.695-5.498 4.385-5.498zm19.424 3.055c-.381-1.792-1.484-2.81-3.016-2.81-2.288 0-3.874 1.717-3.874 4.18 0 3.646 1.934 6.008 5.059 6.008a5.858 5.858 0 005.03-2.953l.913.245c-.408 3.163-3.281 5.525-6.808 5.525-4.14 0-6.992-3.054-6.992-7.399 0-4.378 3.098-7.46 7.237-7.46 3.09 0 5.27 1.853 5.97 5.07l-10.783 3.3V14.05l7.264-2.247v-.006z`})]})),je=(0,h.memo)(({type:e=`mono`,...t})=>(0,g.jsx)(y,{Icon:e===`color`?ke:De,Text:Ae,"aria-label":C,spaceMultiple:Se,textMultiple:xe,...t})),w=De;w.Color=ke,w.Text=Ae,w.Combine=je,w.Avatar=Oe,w.colorPrimary=Ce,w.title=C;var T=`Claude Code`,Me=.75,Ne=.3,Pe=`#D97757`,Fe=`#09090B`,Ie=Pe,Le=.7,Re=(0,h.memo)(({size:e=`1em`,style:t,...n})=>(0,g.jsxs)(`svg`,{fill:`currentColor`,fillRule:`evenodd`,height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 24 24`,width:e,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,g.jsx)(`title`,{children:T}),(0,g.jsx)(`path`,{clipRule:`evenodd`,d:`M20.998 10.949H24v3.102h-3v3.028h-1.487V20H18v-2.921h-1.487V20H15v-2.921H9V20H7.488v-2.921H6V20H4.487v-2.921H3V14.05H0V10.95h3V5h17.998v5.949zM6 10.949h1.488V8.102H6v2.847zm10.51 0H18V8.102h-1.49v2.847z`})]})),ze=(0,h.memo)(({...e})=>(0,g.jsx)(v,{Icon:Re,"aria-label":T,background:Fe,color:Ie,iconMultiple:Le,...e})),Be=(0,h.memo)(({size:e=`1em`,style:t,...n})=>(0,g.jsxs)(`svg`,{height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 24 24`,width:e,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,g.jsx)(`title`,{children:T}),(0,g.jsx)(`path`,{clipRule:`evenodd`,d:`M20.998 10.949H24v3.102h-3v3.028h-1.487V20H18v-2.921h-1.487V20H15v-2.921H9V20H7.488v-2.921H6V20H4.487v-2.921H3V14.05H0V10.95h3V5h17.998v5.949zM6 10.949h1.488V8.102H6v2.847zm10.51 0H18V8.102h-1.49v2.847z`,fill:`#D97757`,fillRule:`evenodd`})]})),Ve=(0,h.memo)(({size:e=`1em`,style:t,...n})=>(0,g.jsxs)(`svg`,{fill:`currentColor`,fillRule:`evenodd`,height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 56 24`,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,g.jsx)(`title`,{children:T}),(0,g.jsx)(`path`,{clipRule:`evenodd`,d:`M8.786 14.088h.67v2.31H4.614v4.506h4.172v.785h.67V24h-6.19v-1.138h-.298V22.1h-.67V20.96H2v-5.758h.968v-1.9h5.818v.785zm0 7.875h.417v1.763H3.519v-.864h-.126v1.001h5.936v-2.037h-.543v.137zm0 .899h-5.14v.728h5.43V22.1h-.29v.762zm-6.362-.9h.544v-.136h-.417v-.865h-.127v1.002zm.253-.273h.291v-.728h-.29v.728zm6.109-6.429H3.944v5.644h.29v-4.916h4.842v-1.49h-.29v.762zm0-.898h.417v1.763H4.36v4.779h.126v-4.642H9.33v-2.037h-.543v.137zM17.5 14.088h.671v1.115h.298v.785h.67V22.1h-.968V24h-6.19v-1.138h-.297V22.1h-.671V20.96h-.298v-5.758h.969v-1.9H17.5v.785zm.97 2.174h.416v5.564h-.968v1.9h-5.684v-.864h-.126v1.001h5.936v-1.9h.969v-5.838h-.544v.137zm0 4.7h-.97v1.9h-5.14v.728h5.431v-1.9h.969v-5.291h-.29v4.562zm-7.33 1h.544v-.136h-.418v-.865h-.127v1.002zm.252-.273h.292v-.728h-.291v.728zm1.267-.785h.29v-4.916h3.576v-.728H12.66v5.644zm.417 0h.127v-4.642h3.322v-.137h-3.449v4.779zm.253 0h3.196v-4.505H13.33v4.505zm4.172-5.701h.29v-.705h-.29v.705zm0-.841h.417v.84h.126v-.977h-.543v.137zM26.216 14.088h.67v1.115h.298v.785h.67V22.1h-.968V24h-6.19v-1.138H20.4v-9.56h5.817v.786zm.968 2.174h.417v5.564h-.968v1.9H20.95v-.864h-.127v1.001h5.936v-1.9h.969v-5.838h-.544v.137zm0 4.7h-.968v1.9h-5.14v.728h5.43v-1.9h.969v-5.291h-.29v4.562zm-4.841-.058h.29v-4.916h2.607v-.728h-2.897v5.644zm.416 0h.127v-4.642h2.354v-.137h-2.48v4.779zm.254 0h2.227v-4.505h-2.227v4.505zm3.203-5.701h.29v-.705h-.29v.705zm0-.841h.417v.84h.127v-.977h-.544v.137zM35.9 14.088h.67v2.31h-4.842v.705h2.235v.786h.67v2.31h-2.905v.704H35.9v.786h.67V24H29.41v-1.138h-.297v-9.56H35.9v.786zm0 7.875h.416v1.763h-6.651v-.864h-.127v1.001h6.905v-2.037H35.9v.137zm0 .899H29.79v.728h6.399V22.1h-.29v.762zm-1.937-3.801h-2.905v1.843h.29v-1.115h2.905v-1.49h-.29v.762zm0-.899h.417v1.764h-2.905v.978h.126v-.841h2.905v-2.037h-.543v.136zM35.9 15.26h-4.842v1.843h.29v-1.115h4.842v-1.49h-.29v.762zm0-.898h.416v1.763h-4.841v.978h.126v-.841h4.842v-2.037H35.9v.137zM8.786 0v.786h.67v2.31H4.614v4.505h4.172v.786h.67v2.31h-6.19V9.56h-.298v-.762h-.67V7.66H2V1.9h.968V0h5.818zm0 8.66h.417v1.764H3.519V9.56h-.126v1.002h5.936V8.524h-.543v.137zm0 .9h-5.14v.727h5.43v-1.49h-.29v.762zm-6.362-.9h.544v-.136h-.417v-.865h-.127v1.002zm.253-.273h.291V7.66h-.29v.728zm6.109-6.429H3.944v5.643h.29V2.686h4.842v-1.49h-.29v.762zm0-.899h.417v1.764H4.36V7.6h.126V2.96H9.33V.923h-.543v.136zM12.66.786h.67V7.6h4.17v.786h.671v2.31h-7.158V9.56h-.298V0h1.944v.786zM17.5 8.66h.418v1.763h-6.652V9.56h-.127v1.002h6.905V8.524h-.543v.137zm0 .898h-6.107v.728h6.398v-1.49h-.29v.762zm-4.84-1.958h.29V1.196h-.29v6.405zm0-6.542h.416v6.542h.127V.923h-.544v.136zM25.248.786h.67V1.9h.298v.786h.67v8.012H24.57V9.559h-.298V6.897h-2.228v3.8h-2.316V9.56h-.298V1.9h.969V0h4.849v.786zm-3.457 9.638h-1.81V9.56h-.127v1.002h2.064v-3.8h2.354v-.137h-2.48v3.8zm4.425-7.464h.417v7.464h-1.81V9.56h-.127v1.002h2.063V2.823h-.543v.137zm-4.842 6.6h-1.266v.727h1.556v-3.8h2.608v-.728h-2.898v3.8zm4.842 0h-1.267v.727h1.557v-7.19h-.29v6.462zM21.374 3.8h.29V2.687h2.608v-.728h-2.898v1.843zm.417 0h.127v-.84h2.354v-.137h-2.48V3.8zm.253 0h2.228v-.704h-2.228v.705zm3.204-1.9h.29v-.704h-.29V1.9zm0-.84h.416v.84h.127V.923h-.543v.136zM30.09.786h.67V7.6h3.196V0H35.9v.786h.67v8.011H35.6v1.9h-6.19V9.56h-.297v-.762h-.671V7.66h-.298V0h1.945v.786zm5.81.273h.416v7.465h-.968v1.9h-5.683V9.56h-.127v1.002h5.937v-1.9h.968V.923H35.9v.136zm0 6.6h-.969v1.9h-5.14v.728h5.43v-1.9h.969v-7.19h-.29v6.462zm-7.33 1.002h.544v-.137h-.418v-.865h-.126v1.002zm.253-.274h.29V7.66h-.29v.728zm1.267-.786h.29V1.196h-.29v6.405zm0-6.542h.416v6.542h.127V.923h-.543v.136zM43.647.786h.67V1.9h.298v.786h.67v6.111h-.969v1.9h-6.19V9.56h-.297V0h5.818v.786zm.968 2.174h.417v5.564h-.969v1.9H38.38V9.56h-.127v1.002h5.937v-1.9h.968V2.823h-.543v.137zm0 4.7h-.968v1.9h-5.14v.727h5.43v-1.9h.968v-5.29h-.29v4.562zM39.773 7.6h.29V2.686h2.608v-.728h-2.898v5.643zm.417 0h.127V2.96h2.354v-.137H40.19V7.6zm.253 0h2.228V3.096h-2.228v4.505zm3.204-5.7h.29v-.705h-.29V1.9zm0-.842h.416V1.9h.127V.923h-.543v.136zM53.33.786H54v2.31h-4.842v.705h2.235v.785h.67v2.311h-2.905v.704h4.172v.786H54v2.31h-7.158V9.56h-.298V0h6.786v.786zm0 7.875h.417v1.763h-6.652V9.56h-.127v1.002h6.905V8.524h-.543v.137zm0 .898h-6.108v.728h6.398v-1.49h-.29v.762zm-1.937-3.8h-2.905V7.6h.29V6.487h2.906v-1.49h-.29v.762zm0-.899h.417v1.764h-2.905V7.6h.127v-.84h2.905V4.722h-.544v.137zm1.937-2.902h-4.842v1.843h.29V2.686h4.842v-1.49h-.29v.762zm0-.899h.417v1.764h-4.842V3.8h.127V2.96h4.841V.923h-.543v.136z`})]})),He=(0,h.memo)(({type:e=`mono`,...t})=>(0,g.jsx)(y,{Icon:e===`color`?Be:Re,Text:Ve,"aria-label":T,spaceMultiple:Ne,textMultiple:Me,...t})),E=Re;E.Color=Be,E.Text=Ve,E.Combine=He,E.Avatar=ze,E.colorPrimary=Pe,E.title=T;var D=`Cline`,Ue=.7,We=.2,Ge=`#323B43`,Ke=Ge,qe=`#fff`,Je=.6,Ye=(0,h.memo)(({size:e=`1em`,style:t,...n})=>(0,g.jsxs)(`svg`,{fill:`currentColor`,fillRule:`evenodd`,height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 24 24`,width:e,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,g.jsx)(`title`,{children:D}),(0,g.jsx)(`path`,{d:`M17.035 3.991c2.75 0 4.98 2.24 4.98 5.003v1.667l1.45 2.896a1.01 1.01 0 01-.002.909l-1.448 2.864v1.668c0 2.762-2.23 5.002-4.98 5.002H7.074c-2.751 0-4.98-2.24-4.98-5.002V17.33l-1.48-2.855a1.01 1.01 0 01-.003-.927l1.482-2.887V8.994c0-2.763 2.23-5.003 4.98-5.003h9.962zM8.265 9.6a2.274 2.274 0 00-2.274 2.274v4.042a2.274 2.274 0 004.547 0v-4.042A2.274 2.274 0 008.265 9.6zm7.326 0a2.274 2.274 0 00-2.274 2.274v4.042a2.274 2.274 0 104.548 0v-4.042A2.274 2.274 0 0015.59 9.6z`}),(0,g.jsx)(`path`,{d:`M12.054 5.558a2.779 2.779 0 100-5.558 2.779 2.779 0 000 5.558z`})]})),Xe=(0,h.memo)(({...e})=>(0,g.jsx)(v,{Icon:Ye,"aria-label":D,background:Ke,color:qe,iconMultiple:Je,...e})),Ze=(0,h.memo)(({size:e=`1em`,style:t,...n})=>(0,g.jsxs)(`svg`,{fill:`currentColor`,fillRule:`evenodd`,height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 88 24`,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,g.jsx)(`title`,{children:D}),(0,g.jsx)(`path`,{d:`M79.558 21.986c-1.13 0-2.167-.189-3.108-.565a7.128 7.128 0 01-2.403-1.569 6.933 6.933 0 01-1.554-2.331 7.876 7.876 0 01-.537-2.925v-.58c0-1.196.189-2.279.566-3.25.376-.97.894-1.798 1.554-2.486a6.84 6.84 0 012.289-1.582 7.005 7.005 0 012.797-.566c1.103 0 2.078.189 2.925.566.848.367 1.56.88 2.134 1.54.575.668 1.008 1.464 1.3 2.388.292.923.438 1.93.438 3.023v1.456H75.362v.07c.103.67.263 1.23.48 1.682.217.452.513.857.89 1.215.377.377.82.669 1.328.876.518.207 1.084.31 1.696.31.838 0 1.62-.16 2.346-.48a4.71 4.71 0 001.794-1.398l1.808 1.752c-.508.734-1.29 1.394-2.345 1.978-1.046.584-2.313.876-3.8.876zm-.41-13.113c-.48 0-.927.09-1.342.269-.405.17-.768.414-1.088.735-.32.33-.589.725-.805 1.187a6.25 6.25 0 00-.48 1.568h7.191v-.226c0-.443-.08-.88-.24-1.314a3.545 3.545 0 00-.678-1.159 3.004 3.004 0 00-1.074-.763c-.424-.198-.919-.297-1.484-.297zM55.043 21.703V6.415h3.052l.212 2.176c.207-.292.433-.56.678-.805.255-.255.523-.48.806-.679a5.555 5.555 0 013.179-.975 6.5 6.5 0 012.148.34 4.11 4.11 0 011.667 1.073c.461.49.82 1.117 1.074 1.88.254.753.381 1.667.381 2.74v9.538h-3.377v-9.48c0-.632-.07-1.16-.212-1.583-.141-.424-.348-.763-.621-1.018a2.3 2.3 0 00-.99-.537 4.736 4.736 0 00-1.328-.17c-.414 0-.8.057-1.158.17a3.421 3.421 0 00-1.611 1.004 4.282 4.282 0 00-.523.706v10.908h-3.377zM38.44 6.415h8.111v12.49h4.493v2.798H38.441v-2.797h4.705v-9.68H38.44V6.416zm4.395-3.956c0-.274.047-.523.141-.75a1.69 1.69 0 01.41-.607c.17-.16.372-.282.607-.367.245-.094.519-.141.82-.141.509 0 .918.131 1.23.395.32.254.503.584.55.99.066.414-.004.776-.212 1.087-.207.302-.508.504-.904.608a1.48 1.48 0 01-.706.353c-.273.057-.575.033-.905-.07a1.396 1.396 0 01-.777-.552 1.758 1.758 0 01-.254-.946zM20.934 0h8.238v18.906h4.634v2.797H20.934v-2.797h4.832V2.812h-4.832V0zM16.71 15.373c-.095.999-.33 1.908-.707 2.727a6.672 6.672 0 01-1.484 2.077 6.542 6.542 0 01-2.218 1.357c-.848.31-1.79.466-2.826.466-.848 0-1.63-.113-2.346-.339a6.467 6.467 0 01-1.893-.99 6.55 6.55 0 01-1.413-1.426 9.438 9.438 0 01-1.003-1.851c-.274-.66-.48-1.375-.622-2.148A14.34 14.34 0 012 12.83v-2.812c0-.8.066-1.573.198-2.317.132-.744.33-1.446.593-2.106A8.284 8.284 0 013.88 3.603a7.296 7.296 0 011.555-1.54 6.953 6.953 0 011.836-.904A7.256 7.256 0 019.49.834c1.083 0 2.049.16 2.896.48.858.32 1.588.773 2.19 1.357a6.337 6.337 0 011.442 2.147c.358.839.588 1.771.692 2.798h-3.391a6.568 6.568 0 00-.353-1.653c-.17-.5-.405-.923-.707-1.272a2.977 2.977 0 00-1.144-.791c-.453-.188-.994-.283-1.625-.283-.443 0-.843.062-1.201.184-.349.122-.66.297-.933.523a3.385 3.385 0 00-.947 1.074 7.033 7.033 0 00-.607 1.455c-.123.471-.217.975-.283 1.512a15.25 15.25 0 00-.084 1.625v2.84c0 .688.037 1.333.113 1.936.084.602.212 1.154.381 1.653.132.414.297.791.495 1.13.207.34.452.631.734.876.292.264.627.466 1.004.608.386.132.824.198 1.314.198.584 0 1.102-.085 1.554-.255.452-.17.838-.419 1.159-.749.31-.32.56-.72.748-1.2.189-.481.311-1.032.368-1.654h3.405z`})]})),Qe=(0,h.memo)(({...e})=>(0,g.jsx)(y,{Icon:Ye,Text:Ze,"aria-label":D,spaceMultiple:We,textMultiple:Ue,iconProps:{shape:`square`},...e})),O=Ye;O.Text=Ze,O.Combine=Qe,O.Avatar=Xe,O.colorPrimary=Ge,O.title=D;var k=`Codex`,$e=.8,et=.2,tt=`#fff`,nt=tt,rt=`#fff`,it=.7,at=(0,h.memo)(({size:e=`1em`,style:t,...n})=>{let{id:r,fill:i}=me(k);return(0,g.jsxs)(`svg`,{height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 24 24`,width:e,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,g.jsx)(`title`,{children:k}),(0,g.jsx)(`path`,{clipRule:`evenodd`,d:`M8.086.457a6.105 6.105 0 013.046-.415c1.333.153 2.521.72 3.564 1.7a.117.117 0 00.107.029c1.408-.346 2.762-.224 4.061.366l.063.03.154.076c1.357.703 2.33 1.77 2.918 3.198.278.679.418 1.388.421 2.126a5.655 5.655 0 01-.18 1.631.167.167 0 00.04.155 5.982 5.982 0 011.578 2.891c.385 1.901-.01 3.615-1.183 5.14l-.182.22a6.063 6.063 0 01-2.934 1.851.162.162 0 00-.108.102c-.255.736-.511 1.364-.987 1.992-1.199 1.582-2.962 2.462-4.948 2.451-1.583-.008-2.986-.587-4.21-1.736a.145.145 0 00-.14-.032c-.518.167-1.04.191-1.604.185a5.924 5.924 0 01-2.595-.622 6.058 6.058 0 01-2.146-1.781c-.203-.269-.404-.522-.551-.821a7.74 7.74 0 01-.495-1.283 6.11 6.11 0 01-.017-3.064.166.166 0 00.008-.074.115.115 0 00-.037-.064 5.958 5.958 0 01-1.38-2.202 5.196 5.196 0 01-.333-1.589 6.915 6.915 0 01.188-2.132c.45-1.484 1.309-2.648 2.577-3.493.282-.188.55-.334.802-.438.286-.12.573-.22.861-.304a.129.129 0 00.087-.087A6.016 6.016 0 015.635 2.31C6.315 1.464 7.132.846 8.086.457zm-.804 7.85a.848.848 0 00-1.473.842l1.694 2.965-1.688 2.848a.849.849 0 001.46.864l1.94-3.272a.849.849 0 00.007-.854l-1.94-3.393zm5.446 6.24a.849.849 0 000 1.695h4.848a.849.849 0 000-1.696h-4.848z`,fill:i,fillRule:`evenodd`}),(0,g.jsx)(`defs`,{children:(0,g.jsxs)(`linearGradient`,{gradientUnits:`userSpaceOnUse`,id:r,x1:`12`,x2:`12`,y1:`0`,y2:`24`,children:[(0,g.jsx)(`stop`,{stopColor:`#B1A7FF`}),(0,g.jsx)(`stop`,{offset:`.5`,stopColor:`#7A9DFF`}),(0,g.jsx)(`stop`,{offset:`1`,stopColor:`#3941FF`})]})})]})}),ot=(0,h.memo)(({...e})=>(0,g.jsx)(v,{Icon:at,"aria-label":k,background:nt,color:rt,iconMultiple:it,...e})),st=(0,h.memo)(({size:e=`1em`,style:t,...n})=>{let{id:r,fill:i}=me(k);return(0,g.jsxs)(`svg`,{height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 24 24`,width:e,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,g.jsx)(`title`,{children:k}),(0,g.jsx)(`path`,{d:`M19.503 0H4.496A4.496 4.496 0 000 4.496v15.007A4.496 4.496 0 004.496 24h15.007A4.496 4.496 0 0024 19.503V4.496A4.496 4.496 0 0019.503 0z`,fill:`#fff`}),(0,g.jsx)(`path`,{d:`M9.064 3.344a4.578 4.578 0 012.285-.312c1 .115 1.891.54 2.673 1.275.01.01.024.017.037.021a.09.09 0 00.043 0 4.55 4.55 0 013.046.275l.047.022.116.057a4.581 4.581 0 012.188 2.399c.209.51.313 1.041.315 1.595a4.24 4.24 0 01-.134 1.223.123.123 0 00.03.115c.594.607.988 1.33 1.183 2.17.289 1.425-.007 2.71-.887 3.854l-.136.166a4.548 4.548 0 01-2.201 1.388.123.123 0 00-.081.076c-.191.551-.383 1.023-.74 1.494-.9 1.187-2.222 1.846-3.711 1.838-1.187-.006-2.239-.44-3.157-1.302a.107.107 0 00-.105-.024c-.388.125-.78.143-1.204.138a4.441 4.441 0 01-1.945-.466 4.544 4.544 0 01-1.61-1.335c-.152-.202-.303-.392-.414-.617a5.81 5.81 0 01-.37-.961 4.582 4.582 0 01-.014-2.298.124.124 0 00.006-.056.085.085 0 00-.027-.048 4.467 4.467 0 01-1.034-1.651 3.896 3.896 0 01-.251-1.192 5.189 5.189 0 01.141-1.6c.337-1.112.982-1.985 1.933-2.618.212-.141.413-.251.601-.33.215-.089.43-.164.646-.227a.098.098 0 00.065-.066 4.51 4.51 0 01.829-1.615 4.535 4.535 0 011.837-1.388zm3.482 10.565a.637.637 0 000 1.272h3.636a.637.637 0 100-1.272h-3.636zM8.462 9.23a.637.637 0 00-1.106.631l1.272 2.224-1.266 2.136a.636.636 0 101.095.649l1.454-2.455a.636.636 0 00.005-.64L8.462 9.23z`,fill:i}),(0,g.jsx)(`defs`,{children:(0,g.jsxs)(`linearGradient`,{gradientUnits:`userSpaceOnUse`,id:r,x1:`12`,x2:`12`,y1:`3`,y2:`21`,children:[(0,g.jsx)(`stop`,{stopColor:`#B1A7FF`}),(0,g.jsx)(`stop`,{offset:`.5`,stopColor:`#7A9DFF`}),(0,g.jsx)(`stop`,{offset:`1`,stopColor:`#3941FF`})]})})]})}),ct=(0,h.memo)(({size:e=`1em`,style:t,...n})=>(0,g.jsxs)(`svg`,{fill:`currentColor`,fillRule:`evenodd`,height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 24 24`,width:e,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,g.jsx)(`title`,{children:k}),(0,g.jsx)(`path`,{clipRule:`evenodd`,d:`M8.086.457a6.105 6.105 0 013.046-.415c1.333.153 2.521.72 3.564 1.7a.117.117 0 00.107.029c1.408-.346 2.762-.224 4.061.366l.063.03.154.076c1.357.703 2.33 1.77 2.918 3.198.278.679.418 1.388.421 2.126a5.655 5.655 0 01-.18 1.631.167.167 0 00.04.155 5.982 5.982 0 011.578 2.891c.385 1.901-.01 3.615-1.183 5.14l-.182.22a6.063 6.063 0 01-2.934 1.851.162.162 0 00-.108.102c-.255.736-.511 1.364-.987 1.992-1.199 1.582-2.962 2.462-4.948 2.451-1.583-.008-2.986-.587-4.21-1.736a.145.145 0 00-.14-.032c-.518.167-1.04.191-1.604.185a5.924 5.924 0 01-2.595-.622 6.058 6.058 0 01-2.146-1.781c-.203-.269-.404-.522-.551-.821a7.74 7.74 0 01-.495-1.283 6.11 6.11 0 01-.017-3.064.166.166 0 00.008-.074.115.115 0 00-.037-.064 5.958 5.958 0 01-1.38-2.202 5.196 5.196 0 01-.333-1.589 6.915 6.915 0 01.188-2.132c.45-1.484 1.309-2.648 2.577-3.493.282-.188.55-.334.802-.438.286-.12.573-.22.861-.304a.129.129 0 00.087-.087A6.016 6.016 0 015.635 2.31C6.315 1.464 7.132.846 8.086.457zm-.804 7.85a.848.848 0 00-1.473.842l1.694 2.965-1.688 2.848a.849.849 0 001.46.864l1.94-3.272a.849.849 0 00.007-.854l-1.94-3.393zm5.446 6.24a.849.849 0 000 1.695h4.848a.849.849 0 000-1.696h-4.848z`})]})),lt=(0,h.memo)(({size:e=`1em`,style:t,...n})=>(0,g.jsxs)(`svg`,{fill:`currentColor`,fillRule:`evenodd`,height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 91 24`,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,g.jsx)(`title`,{children:k}),(0,g.jsx)(`path`,{d:`M79.915 14.964l-5.53-7.548h3.33l3.88 5.256 3.88-5.256h3.24l-5.5 7.486 5.683 7.792h-3.361l-4.003-5.5-4.064 5.5H74.2l5.715-7.73zM66.368 23c-1.345 0-2.567-.326-3.667-.978-1.08-.652-1.935-1.579-2.567-2.78-.631-1.203-.947-2.608-.947-4.217 0-1.59.316-2.974.947-4.156.652-1.202 1.518-2.129 2.597-2.78 1.08-.652 2.272-.978 3.575-.978 1.813 0 3.33.55 4.553 1.65 1.222 1.1 1.956 2.597 2.2 4.491.082.693.112 1.477.092 2.353H62.09c.06 1.548.489 2.76 1.283 3.636.815.876 1.793 1.314 2.933 1.314h.184c.855 0 1.599-.224 2.23-.672.632-.448 1.06-1.06 1.284-1.833h2.933a6.147 6.147 0 01-2.322 3.575C69.433 22.54 68.018 23 66.368 23zm3.819-9.687c-.082-1.16-.469-2.077-1.161-2.75-.693-.692-1.558-1.038-2.597-1.038h-.214c-.978 0-1.844.315-2.597.947-.734.611-1.212 1.558-1.437 2.841h8.006zM47.834 23c-1.324 0-2.516-.326-3.575-.978-1.039-.652-1.854-1.579-2.444-2.78-.591-1.202-.887-2.598-.887-4.187 0-1.588.306-2.984.917-4.186.611-1.201 1.446-2.128 2.506-2.78 1.08-.652 2.281-.978 3.605-.978 1.08 0 2.047.224 2.903.672.855.449 1.497 1.019 1.925 1.711V1.306h2.903v21.388h-2.903v-2.108c-.408.672-1.06 1.242-1.956 1.711-.896.469-1.894.703-2.994.703zm.58-2.475c.856 0 1.62-.234 2.292-.703.672-.468 1.192-1.11 1.558-1.925.387-.835.58-1.782.58-2.841 0-1.06-.193-1.997-.58-2.812-.366-.835-.886-1.487-1.558-1.955a3.911 3.911 0 00-2.292-.703h-.183c-1.304 0-2.363.51-3.178 1.528-.794 1.018-1.191 2.332-1.191 3.941 0 1.61.397 2.924 1.191 3.942.815 1.019 1.874 1.528 3.178 1.528h.183zM31.022 23c-1.406 0-2.679-.337-3.82-1.009a7.367 7.367 0 01-2.688-2.841c-.652-1.223-.978-2.587-.978-4.095 0-1.507.326-2.862.978-4.064.651-1.222 1.548-2.17 2.688-2.841 1.141-.693 2.414-1.04 3.82-1.04 1.405 0 2.668.347 3.789 1.04 1.14.672 2.037 1.62 2.688 2.841.652 1.202.978 2.557.978 4.064 0 1.508-.326 2.872-.977 4.095a7.367 7.367 0 01-2.69 2.841C33.69 22.663 32.428 23 31.023 23zm.06-2.476c.857 0 1.62-.224 2.293-.672.672-.468 1.201-1.11 1.589-1.925.386-.835.58-1.792.58-2.872 0-1.08-.194-2.027-.58-2.841-.388-.836-.917-1.477-1.59-1.925a3.911 3.911 0 00-2.291-.703H30.9c-1.304 0-2.373.51-3.209 1.528-.814.998-1.222 2.312-1.222 3.941 0 1.63.407 2.954 1.222 3.972.835.998 1.905 1.497 3.209 1.497h.183zM12.053 23c-2.037 0-3.82-.469-5.348-1.406-1.507-.957-2.668-2.271-3.483-3.941S2 14.098 2 12c0-2.098.407-3.982 1.222-5.653.835-1.67 2.017-2.974 3.545-3.91C8.294 1.478 10.057 1 12.053 1c1.609 0 3.055.316 4.338.947 1.304.611 2.363 1.477 3.178 2.597.815 1.1 1.304 2.374 1.467 3.82h-3.117c-.244-1.365-.876-2.465-1.894-3.3-1.019-.856-2.302-1.283-3.85-1.283h-.245c-1.385 0-2.597.356-3.636 1.069-1.039.713-1.833 1.69-2.383 2.933-.55 1.243-.825 2.648-.825 4.217 0 1.568.275 2.974.825 4.216.55 1.243 1.344 2.22 2.383 2.934 1.04.713 2.251 1.07 3.636 1.07h.245c1.548 0 2.831-.418 3.85-1.254 1.039-.855 1.68-1.976 1.925-3.36h3.086c-.184 1.446-.683 2.729-1.497 3.85-.795 1.12-1.844 1.996-3.148 2.627-1.303.611-2.75.917-4.338.917z`})]})),ut=(0,h.memo)(({type:e=`mono`,...t})=>(0,g.jsx)(y,{Icon:e===`color`?st:ct,Text:lt,"aria-label":k,spaceMultiple:et,textMultiple:$e,...t})),A=ct;A.Color=st,A.Text=lt,A.Combine=ut,A.Avatar=ot,A.colorPrimary=tt,A.title=k;var j=`Cursor`,dt=.7,ft=.1,pt=`#000`,mt=pt,ht=`#fff`,gt=.6,_t=(0,h.memo)(({size:e=`1em`,style:t,...n})=>(0,g.jsxs)(`svg`,{fill:`currentColor`,fillRule:`evenodd`,height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 24 24`,width:e,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,g.jsx)(`title`,{children:j}),(0,g.jsx)(`path`,{d:`M22.106 5.68L12.5.135a.998.998 0 00-.998 0L1.893 5.68a.84.84 0 00-.419.726v11.186c0 .3.16.577.42.727l9.607 5.547a.999.999 0 00.998 0l9.608-5.547a.84.84 0 00.42-.727V6.407a.84.84 0 00-.42-.726zm-.603 1.176L12.228 22.92c-.063.108-.228.064-.228-.061V12.34a.59.59 0 00-.295-.51l-9.11-5.26c-.107-.062-.063-.228.062-.228h18.55c.264 0 .428.286.296.514z`})]})),vt=(0,h.memo)(({...e})=>(0,g.jsx)(v,{Icon:_t,"aria-label":j,background:mt,color:ht,iconMultiple:gt,...e})),yt=(0,h.memo)(({size:e=`1em`,style:t,...n})=>(0,g.jsxs)(`svg`,{fill:`currentColor`,fillRule:`evenodd`,height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 123 24`,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,g.jsx)(`title`,{children:j}),(0,g.jsx)(`path`,{d:`M11.995 2.33h6.516v3.582h-6.295C8.82 5.912 6.169 7.868 6.169 12c0 4.133 2.65 6.089 6.047 6.089h6.295v3.581H11.72C6.03 21.67 2 18.336 2 12c0-6.337 4.307-9.67 9.995-9.67zm9.829 0h4.03V14.15c0 2.947 1.354 4.325 4.53 4.325 3.175 0 4.528-1.377 4.528-4.325V2.33h4.03v12.644c0 4.297-2.733 7.025-8.559 7.025-5.826 0-8.56-2.755-8.56-7.052V2.33zm38.185 5.483c0 2.149-1.243 3.801-2.9 4.518v.055c1.74.248 2.624 1.488 2.65 3.169l.084 6.115h-4.031l-.083-5.454c-.027-1.212-.745-1.956-2.181-1.956h-6.71v7.41h-4.03V2.33h11.127c3.644 0 6.074 1.846 6.074 5.483zm-4.059.55c0-1.652-.883-2.561-2.54-2.561H46.84v5.123h6.626c1.518 0 2.485-.909 2.485-2.562zm19.3 7.66c0-1.378-.884-1.957-2.209-2.067l-4.473-.413c-3.866-.358-5.881-1.873-5.881-5.537 0-3.664 2.485-5.675 6.046-5.675h9.885V5.8h-9.609c-1.38 0-2.263.717-2.263 2.094 0 1.378.91 2.039 2.291 2.15l4.556.385c3.452.303 5.715 1.874 5.715 5.565 0 3.691-2.402 5.675-5.798 5.675H63.184V18.2h9.94c1.297 0 2.126-.882 2.126-2.177zM91.097 2c6.074 0 9.912 3.884 9.912 9.972C101.01 18.061 97.006 22 90.932 22s-9.912-3.94-9.912-10.028C81.02 5.884 85.024 2 91.098 2zm5.743 10c0-4.077-2.374-6.474-5.826-6.474-3.451 0-5.826 2.397-5.826 6.474s2.375 6.473 5.826 6.473c3.452 0 5.826-2.396 5.826-6.473zM121 7.813c0 2.149-1.242 3.801-2.899 4.518v.055c1.739.248 2.623 1.488 2.65 3.169l.083 6.115h-4.031l-.083-5.454c-.027-1.212-.745-1.956-2.181-1.956h-6.709v7.41h-4.031V2.33h11.127c3.645 0 6.074 1.846 6.074 5.483zm-4.059.55c0-1.652-.883-2.561-2.54-2.561h-6.571v5.123h6.626c1.518 0 2.485-.909 2.485-2.562z`})]})),bt=(0,h.memo)(({...e})=>(0,g.jsx)(y,{Icon:_t,Text:yt,"aria-label":j,spaceMultiple:ft,textMultiple:dt,...e})),M=_t;M.Text=yt,M.Combine=bt,M.Avatar=vt,M.colorPrimary=pt,M.title=j;var N=`Devin`,xt=.55,St=.2,Ct=`#fff`,wt=Ct,Tt=`#fff`,Et=.65,Dt=(0,h.memo)(({size:e=`1em`,style:t,...n})=>(0,g.jsxs)(`svg`,{height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 24 24`,width:e,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,g.jsx)(`title`,{children:N}),(0,g.jsx)(`path`,{d:`M2.033 9.867l2.554 1.483a.589.589 0 00.592 0l2.554-1.483.01-.008a.608.608 0 00.11-.084l.013-.015a.631.631 0 00.076-.1c.003-.005.008-.01.01-.016a.558.558 0 00.052-.125l.007-.028a.611.611 0 00.019-.14V7.868c0-.572.307-1.105.8-1.392a1.595 1.595 0 011.598 0l1.277.742a.54.54 0 00.129.053l.028.01c.044.01.088.015.133.016h.006l.013-.002a.587.587 0 00.27-.074l.011-.004 2.554-1.483a.596.596 0 00.297-.516V2.253a.595.595 0 00-.297-.516L12.293.257a.587.587 0 00-.591 0L9.148 1.737l-.01.01a.609.609 0 00-.109.083l-.014.015a.632.632 0 00-.076.1c-.003.005-.008.01-.01.016a.57.57 0 00-.052.124l-.007.028a.612.612 0 00-.018.14v1.483c0 .572-.307 1.105-.8 1.393a1.597 1.597 0 01-1.599 0l-1.276-.742a.603.603 0 00-.13-.053l-.028-.008a.658.658 0 00-.133-.018h-.02a.57.57 0 00-.269.074c-.003.002-.008.002-.012.005L2.033 5.872a.596.596 0 00-.297.515v2.966c0 .213.113.41.297.515z`,fill:`#3969CA`}),(0,g.jsx)(`path`,{d:`M15.943 10.607a1.596 1.596 0 011.599 0l1.276.74c.041.025.085.04.13.055l.028.008c.043.01.088.016.133.018h.005c.005 0 .01-.002.014-.003a.474.474 0 00.122-.016l.021-.005a.616.616 0 00.126-.052c.004-.002.009-.002.013-.005l2.554-1.482a.597.597 0 00.297-.516V6.383a.596.596 0 00-.297-.515l-2.552-1.483a.587.587 0 00-.592 0l-2.553 1.482-.011.008a.61.61 0 00-.108.084l-.014.016a.637.637 0 00-.076.1c-.003.005-.008.01-.01.016a.57.57 0 00-.052.124l-.007.029a.612.612 0 00-.018.14v1.482c0 .572-.307 1.105-.8 1.393a1.597 1.597 0 01-1.599 0l-1.276-.742a.584.584 0 00-.13-.053l-.028-.008a.62.62 0 00-.133-.018h-.02a.587.587 0 00-.269.074l-.012.004L9.15 10a.596.596 0 00-.296.516v2.966c0 .212.112.409.296.515l2.554 1.483s.008.002.012.005c.04.022.082.04.126.052l.02.004a.57.57 0 00.123.017l.014.002h.006c.054 0 .108-.01.16-.025a.587.587 0 00.13-.054l1.277-.741a1.597 1.597 0 012.398 1.392v1.482c0 .049.007.095.019.14l.007.028a.619.619 0 00.051.125c.004.006.008.01.01.016a.6.6 0 00.076.1l.014.015c.033.032.069.06.108.084.004.002.006.006.011.008l2.554 1.483a.59.59 0 00.593 0l2.554-1.483a.597.597 0 00.296-.516v-2.965a.595.595 0 00-.296-.516l-2.554-1.483s-.008-.002-.012-.005a.54.54 0 00-.126-.051c-.007-.003-.013-.003-.02-.005a.635.635 0 00-.125-.017h-.018a.557.557 0 00-.16.026.588.588 0 00-.13.053l-1.276.742a1.595 1.595 0 01-1.598 0 1.615 1.615 0 010-2.785l-.005-.001z`,fill:`#21C19A`}),(0,g.jsx)(`path`,{d:`M14.848 18.265l-2.554-1.482-.012-.005a.526.526 0 00-.126-.052c-.007-.002-.014-.002-.02-.005a.64.64 0 00-.124-.017h-.02a.56.56 0 00-.16.026.588.588 0 00-.13.053l-1.276.742a1.594 1.594 0 01-1.598 0c-.493-.286-.8-.82-.8-1.393V14.65a.563.563 0 00-.018-.14l-.008-.028a.604.604 0 00-.051-.124l-.01-.017a.603.603 0 00-.076-.1l-.014-.015a.596.596 0 00-.109-.084c-.003-.002-.005-.006-.01-.008L5.178 12.65a.587.587 0 00-.591 0l-2.554 1.483a.596.596 0 00-.297.516v2.965c0 .213.113.41.297.516l2.554 1.483.012.004a.618.618 0 00.267.074l.016.002h.007a.55.55 0 00.16-.026.584.584 0 00.129-.053l1.277-.742a1.597 1.597 0 012.398 1.393v1.482c0 .05.007.095.019.14l.007.028c.013.044.03.085.051.125l.01.016c.022.036.047.07.076.1l.014.015c.032.032.069.06.109.084l.01.008 2.554 1.483a.587.587 0 00.593 0l2.554-1.483a.596.596 0 00.296-.515v-2.966a.596.596 0 00-.296-.516h-.002z`,fill:`#0294DE`})]})),Ot=(0,h.memo)(({...e})=>(0,g.jsx)(v,{Icon:Dt,"aria-label":N,background:wt,color:Tt,iconMultiple:Et,...e})),kt=(0,h.memo)(({size:e=`1em`,style:t,...n})=>(0,g.jsxs)(`svg`,{fill:`currentColor`,fillRule:`evenodd`,height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 24 24`,width:e,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,g.jsx)(`title`,{children:N}),(0,g.jsx)(`path`,{d:`M2.033 9.867l2.554 1.483a.589.589 0 00.592 0l2.554-1.483.01-.008a.608.608 0 00.11-.084l.013-.015a.631.631 0 00.076-.1c.003-.005.008-.01.01-.016a.558.558 0 00.052-.125l.007-.028a.611.611 0 00.019-.14V7.868c0-.572.307-1.105.8-1.392a1.595 1.595 0 011.598 0l1.277.742a.54.54 0 00.129.053l.028.01c.044.01.088.015.133.016h.006l.013-.002a.587.587 0 00.27-.074l.011-.004 2.554-1.483a.596.596 0 00.297-.516V2.253a.595.595 0 00-.297-.516L12.293.257a.587.587 0 00-.591 0L9.148 1.737l-.01.01a.609.609 0 00-.109.083l-.014.015a.632.632 0 00-.076.1c-.003.005-.008.01-.01.016a.57.57 0 00-.052.124l-.007.028a.612.612 0 00-.018.14v1.483c0 .572-.307 1.105-.8 1.393a1.597 1.597 0 01-1.599 0l-1.276-.742a.603.603 0 00-.13-.053l-.028-.008a.658.658 0 00-.133-.018h-.02a.57.57 0 00-.269.074c-.003.002-.008.002-.012.005L2.033 5.872a.596.596 0 00-.297.515v2.966c0 .213.113.41.297.515z`}),(0,g.jsx)(`path`,{d:`M15.943 10.607a1.596 1.596 0 011.599 0l1.276.74c.041.025.085.04.13.055l.028.008c.043.01.088.016.133.018h.005c.005 0 .01-.002.014-.003a.474.474 0 00.122-.016l.021-.005a.616.616 0 00.126-.052c.004-.002.009-.002.013-.005l2.554-1.482a.597.597 0 00.297-.516V6.383a.596.596 0 00-.297-.515l-2.552-1.483a.587.587 0 00-.592 0l-2.553 1.482-.011.008a.61.61 0 00-.108.084l-.014.016a.637.637 0 00-.076.1c-.003.005-.008.01-.01.016a.57.57 0 00-.052.124l-.007.029a.612.612 0 00-.018.14v1.482c0 .572-.307 1.105-.8 1.393a1.597 1.597 0 01-1.599 0l-1.276-.742a.584.584 0 00-.13-.053l-.028-.008a.62.62 0 00-.133-.018h-.02a.587.587 0 00-.269.074l-.012.004L9.15 10a.596.596 0 00-.296.516v2.966c0 .212.112.409.296.515l2.554 1.483s.008.002.012.005c.04.022.082.04.126.052l.02.004a.57.57 0 00.123.017l.014.002h.006c.054 0 .108-.01.16-.025a.587.587 0 00.13-.054l1.277-.741a1.597 1.597 0 012.398 1.392v1.482c0 .049.007.095.019.14l.007.028a.619.619 0 00.051.125c.004.006.008.01.01.016a.6.6 0 00.076.1l.014.015c.033.032.069.06.108.084.004.002.006.006.011.008l2.554 1.483a.59.59 0 00.593 0l2.554-1.483a.597.597 0 00.296-.516v-2.965a.595.595 0 00-.296-.516l-2.554-1.483s-.008-.002-.012-.005a.54.54 0 00-.126-.051c-.007-.003-.013-.003-.02-.005a.635.635 0 00-.125-.017h-.018a.557.557 0 00-.16.026.588.588 0 00-.13.053l-1.276.742a1.595 1.595 0 01-1.598 0 1.615 1.615 0 010-2.785l-.005-.001z`}),(0,g.jsx)(`path`,{d:`M14.848 18.265l-2.554-1.482-.012-.005a.526.526 0 00-.126-.052c-.007-.002-.014-.002-.02-.005a.64.64 0 00-.124-.017h-.02a.56.56 0 00-.16.026.588.588 0 00-.13.053l-1.276.742a1.594 1.594 0 01-1.598 0c-.493-.286-.8-.82-.8-1.393V14.65a.563.563 0 00-.018-.14l-.008-.028a.604.604 0 00-.051-.124l-.01-.017a.603.603 0 00-.076-.1l-.014-.015a.596.596 0 00-.109-.084c-.003-.002-.005-.006-.01-.008L5.178 12.65a.587.587 0 00-.591 0l-2.554 1.483a.596.596 0 00-.297.516v2.965c0 .213.113.41.297.516l2.554 1.483.012.004a.618.618 0 00.267.074l.016.002h.007a.55.55 0 00.16-.026.584.584 0 00.129-.053l1.277-.742a1.597 1.597 0 012.398 1.393v1.482c0 .05.007.095.019.14l.007.028c.013.044.03.085.051.125l.01.016c.022.036.047.07.076.1l.014.015c.032.032.069.06.109.084l.01.008 2.554 1.483a.587.587 0 00.593 0l2.554-1.483a.596.596 0 00.296-.515v-2.966a.596.596 0 00-.296-.516h-.002z`})]})),At=(0,h.memo)(({size:e=`1em`,style:t,...n})=>(0,g.jsxs)(`svg`,{fill:`currentColor`,height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 80 24`,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,g.jsx)(`title`,{children:N}),(0,g.jsx)(`path`,{d:`M69.069 13.524v10.135h-3.325V6.589h3.191v2.779h.211a4.88 4.88 0 011.846-2.178c.845-.549 1.909-.823 3.191-.823 1.164 0 2.183.245 3.057.734.875.481 1.553 1.2 2.035 2.156.482.955.723 2.137.723 3.545v10.857h-3.325V13.202c0-1.238-.322-2.204-.967-2.9-.645-.705-1.53-1.057-2.657-1.057-.771 0-1.457.167-2.057.5-.593.334-1.064.823-1.412 1.467-.341.638-.511 1.408-.511 2.312zM57.95 23.67V6.602h3.324v17.07H57.95zm1.679-19.703a2.114 2.114 0 01-1.49-.578c-.408-.392-.612-.859-.612-1.4 0-.548.204-1.015.612-1.4A2.092 2.092 0 0159.629 0c.578 0 1.07.196 1.479.589.415.385.622.852.622 1.4 0 .541-.207 1.008-.622 1.4-.408.386-.901.578-1.48.578zM54.824 6.59l-6.193 17.07h-3.558L38.87 6.59h3.57l4.324 13.135h.178L51.255 6.59h3.569zM29.69 24.003c-1.683 0-3.132-.359-4.347-1.078-1.209-.726-2.142-1.744-2.802-3.056-.652-1.318-.979-2.863-.979-4.634 0-1.748.327-3.29.979-4.623.66-1.333 1.579-2.374 2.757-3.122 1.186-.749 2.572-1.123 4.159-1.123.963 0 1.897.16 2.801.478a6.787 6.787 0 012.435 1.5c.72.682 1.286 1.567 1.701 2.656.416 1.082.623 2.397.623 3.945v1.178H23.441v-2.489H33.76c0-.874-.178-1.648-.533-2.323a4.034 4.034 0 00-1.501-1.61c-.638-.394-1.386-.59-2.246-.59-.934 0-1.75.23-2.446.69a4.625 4.625 0 00-1.601 1.777 5.131 5.131 0 00-.556 2.367v1.945c0 1.14.2 2.111.6 2.911.408.8.975 1.412 1.701 1.834.727.415 1.575.623 2.546.623a5.29 5.29 0 001.724-.267c.519-.186.967-.46 1.345-.823.378-.363.667-.81.867-1.344l3.147.567a5.694 5.694 0 01-1.357 2.433c-.645.69-1.456 1.226-2.435 1.612-.97.377-2.079.566-3.324.566zM7.371 23.666H0V.905h7.605c2.231 0 4.147.456 5.748 1.367 1.601.904 2.828 2.204 3.68 3.9.86 1.69 1.29 3.716 1.29 6.08 0 2.37-.434 4.408-1.3 6.112-.86 1.704-2.106 3.015-3.737 3.934-1.63.91-3.602 1.367-5.915 1.367zm-3.935-3.001h3.746c1.735 0 3.177-.326 4.325-.978 1.15-.66 2.01-1.611 2.58-2.856.57-1.252.856-2.778.856-4.579 0-1.785-.285-3.3-.856-4.545-.563-1.244-1.405-2.189-2.524-2.833-1.12-.645-2.509-.967-4.17-.967H3.437v16.758z`})]})),jt=(0,h.memo)(({type:e=`mono`,...t})=>(0,g.jsx)(y,{Icon:e===`color`?Dt:kt,Text:At,"aria-label":N,spaceMultiple:St,textMultiple:xt,...t})),P=kt;P.Color=Dt,P.Text=At,P.Combine=jt,P.Avatar=Ot,P.colorPrimary=Ct,P.title=N;var F=`Gemini CLI`,Mt=.75,Nt=.3,Pt=`#1E1E2E`,Ft=Pt,It=`#fff`,Lt=.7,Rt=(0,h.memo)(({size:e=`1em`,style:t,...n})=>{let{fill:r,id:i}=me(F);return(0,g.jsxs)(`svg`,{height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 24 24`,width:e,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,g.jsx)(`title`,{children:F}),(0,g.jsx)(`path`,{d:`M0 4.391A4.391 4.391 0 014.391 0h15.217A4.391 4.391 0 0124 4.391v15.217A4.391 4.391 0 0119.608 24H4.391A4.391 4.391 0 010 19.608V4.391z`,fill:r}),(0,g.jsx)(`path`,{clipRule:`evenodd`,d:`M19.74 1.444a2.816 2.816 0 012.816 2.816v15.48a2.816 2.816 0 01-2.816 2.816H4.26a2.816 2.816 0 01-2.816-2.816V4.26A2.816 2.816 0 014.26 1.444h15.48zM7.236 8.564l7.752 3.728-7.752 3.727v2.802l9.557-4.596v-3.866L7.236 5.763v2.801z`,fill:`#1E1E2E`,fillRule:`evenodd`}),(0,g.jsx)(`defs`,{children:(0,g.jsxs)(`linearGradient`,{gradientUnits:`userSpaceOnUse`,id:i,x1:`24`,x2:`0`,y1:`6.587`,y2:`16.494`,children:[(0,g.jsx)(`stop`,{stopColor:`#EE4D5D`}),(0,g.jsx)(`stop`,{offset:`.328`,stopColor:`#B381DD`}),(0,g.jsx)(`stop`,{offset:`.476`,stopColor:`#207CFE`})]})})]})}),zt=(0,h.memo)(({...e})=>(0,g.jsx)(v,{Icon:Rt,"aria-label":F,background:Ft,color:It,iconMultiple:Lt,...e})),Bt=(0,h.memo)(({size:e=`1em`,style:t,...n})=>(0,g.jsxs)(`svg`,{fill:`currentColor`,fillRule:`evenodd`,height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 24 24`,width:e,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,g.jsx)(`title`,{children:F}),(0,g.jsx)(`path`,{d:`M16.793 10.358v3.867L7.236 18.82v-2.8l7.751-3.728-7.75-3.728V5.763l9.556 4.595z`}),(0,g.jsx)(`path`,{clipRule:`evenodd`,d:`M19.608 0A4.392 4.392 0 0124 4.392v15.216A4.392 4.392 0 0119.608 24H4.392A4.392 4.392 0 010 19.608V4.392A4.392 4.392 0 014.392 0h15.216zM4.26 1.444A2.816 2.816 0 001.444 4.26v15.48a2.816 2.816 0 002.816 2.816h15.48a2.816 2.816 0 002.816-2.816V4.26a2.816 2.816 0 00-2.816-2.816H4.26z`})]})),Vt=(0,h.memo)(({size:e=`1em`,style:t,...n})=>(0,g.jsxs)(`svg`,{fill:`currentColor`,fillRule:`evenodd`,height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 152 24`,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,g.jsx)(`title`,{children:F}),(0,g.jsx)(`path`,{d:`M146.467 1.472h3.294V22.53h-3.294V1.472zM130.814 1.472h3.294v17.911h9.029v3.147h-12.323V1.472zM118.754 23c-2.039 0-3.902-.48-5.588-1.442a10.433 10.433 0 01-3.971-3.97c-.961-1.686-1.441-3.549-1.441-5.588 0-2.04.48-3.902 1.441-5.588a10.434 10.434 0 013.971-3.97C114.852 1.48 116.715 1 118.754 1c1.588 0 3.029.294 4.323.882a10.234 10.234 0 013.471 2.56l-2.353 2.264c-.726-.863-1.529-1.5-2.412-1.912-.882-.431-1.892-.647-3.029-.647-1.412 0-2.706.324-3.882.97-1.157.648-2.079 1.57-2.765 2.765-.686 1.177-1.03 2.55-1.03 4.118 0 1.568.344 2.95 1.03 4.147a7.258 7.258 0 002.765 2.735c1.176.647 2.47.97 3.882.97 2.353 0 4.353-.98 6-2.94l2.382 2.294A10.73 10.73 0 01123.46 22c-1.432.666-3 1-4.706 1zM96.321 5.353a2.177 2.177 0 01-1.559-.618 2.177 2.177 0 01-.617-1.559c0-.607.206-1.117.617-1.529A2.125 2.125 0 0196.321 1a2.03 2.03 0 011.53.647c.43.412.646.922.646 1.53 0 .607-.215 1.127-.647 1.558-.411.412-.921.618-1.529.618zm-1.618 2.176h3.236v15h-3.236v-15zM77.35 7.53h3.088V9.5h.147c.431-.706 1.069-1.284 1.912-1.735a5.63 5.63 0 012.735-.706c1.824 0 3.206.54 4.147 1.618.96 1.059 1.441 2.51 1.441 4.353v9.5h-3.235v-9.06c0-1.176-.294-2.039-.882-2.588-.569-.548-1.363-.823-2.383-.823-.725 0-1.372.206-1.94.618a3.902 3.902 0 00-1.324 1.588 4.979 4.979 0 00-.47 2.147v8.117H77.35v-15zM71.706 5.353a2.177 2.177 0 01-1.558-.618 2.176 2.176 0 01-.618-1.559c0-.607.206-1.117.618-1.529A2.125 2.125 0 0171.706 1a2.03 2.03 0 011.53.647c.431.412.647.922.647 1.53 0 .607-.216 1.127-.647 1.558-.412.412-.922.618-1.53.618zM70.09 7.529h3.235v15h-3.235v-15zM43.487 7.53h3.088V9.5h.147c.451-.725 1.088-1.313 1.912-1.764a5.426 5.426 0 012.647-.677c1.078 0 2.02.255 2.823.765.804.49 1.383 1.147 1.736 1.97a5.747 5.747 0 012.029-1.97c.863-.51 1.872-.765 3.03-.765 1.725 0 3.029.53 3.91 1.588.903 1.04 1.354 2.461 1.354 4.265v9.617h-3.235v-9.058c0-2.275-.97-3.412-2.912-3.412-1.04 0-1.892.422-2.559 1.265-.666.843-1 1.882-1 3.117v8.088h-3.235v-9.058c0-2.275-1-3.412-3-3.412-1.02 0-1.863.422-2.53 1.265-.646.843-.97 1.882-.97 3.117v8.088h-3.235v-15zM33.394 23c-1.47 0-2.794-.343-3.97-1.03a7.421 7.421 0 01-2.736-2.823c-.647-1.216-.97-2.578-.97-4.088 0-1.431.313-2.755.94-3.97.648-1.236 1.54-2.216 2.677-2.942 1.137-.725 2.431-1.088 3.882-1.088 1.51 0 2.814.333 3.912 1a6.425 6.425 0 012.53 2.735c.587 1.157.882 2.461.882 3.912 0 .274-.03.618-.089 1.03h-11.5c.118 1.392.608 2.47 1.471 3.235a4.6 4.6 0 003.059 1.117c.922 0 1.716-.206 2.382-.617a4.827 4.827 0 001.647-1.736l2.735 1.294c-.705 1.236-1.627 2.206-2.764 2.912-1.137.706-2.5 1.059-4.088 1.059zm3.853-9.735a3.635 3.635 0 00-.5-1.559c-.294-.53-.745-.97-1.353-1.323-.588-.353-1.314-.53-2.177-.53-1.039 0-1.921.314-2.647.941-.706.608-1.196 1.432-1.47 2.47h8.147zM13.03 23c-2 0-3.844-.48-5.53-1.442a10.94 10.94 0 01-4.03-3.94C2.49 15.93 2 14.057 2 12c0-2.059.49-3.922 1.47-5.588a10.87 10.87 0 014.03-3.97C9.186 1.48 11.03 1 13.03 1c1.587 0 3.068.284 4.44.853 1.373.569 2.52 1.363 3.441 2.382L18.617 6.53a6.96 6.96 0 00-2.47-1.764c-.941-.412-1.99-.618-3.147-.618a7.75 7.75 0 00-3.794.97c-1.177.648-2.118 1.57-2.824 2.765C5.676 9.078 5.323 10.451 5.323 12c0 1.549.353 2.921 1.06 4.117.705 1.196 1.646 2.118 2.823 2.765a7.806 7.806 0 003.823.97c1.255 0 2.304-.186 3.147-.558a7.996 7.996 0 002.265-1.5c.431-.432.794-.97 1.088-1.618a6.8 6.8 0 00.618-2.117H13v-2.941h10.264c.098.548.147 1.117.147 1.705 0 1.334-.206 2.618-.617 3.853a8.113 8.113 0 01-1.97 3.177C18.842 21.95 16.243 23 13.028 23z`})]})),Ht=(0,h.memo)(({type:e=`mono`,...t})=>(0,g.jsx)(y,{Icon:e===`color`?Rt:Bt,Text:Vt,"aria-label":F,spaceMultiple:Nt,textMultiple:Mt,...t})),I=Bt;I.Color=Rt,I.Text=Vt,I.Combine=Ht,I.Avatar=zt,I.colorPrimary=Pt,I.title=F;var L=`GithubCopilot`,Ut=.75,Wt=.3,Gt=`#000`,Kt=Gt,qt=`#fff`,Jt=.75,Yt=(0,h.memo)(({size:e=`1em`,style:t,...n})=>(0,g.jsxs)(`svg`,{fill:`currentColor`,fillRule:`evenodd`,height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 24 24`,width:e,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,g.jsx)(`title`,{children:L}),(0,g.jsx)(`path`,{d:`M19.245 5.364c1.322 1.36 1.877 3.216 2.11 5.817.622 0 1.2.135 1.592.654l.73.964c.21.278.323.61.323.955v2.62c0 .339-.173.669-.453.868C20.239 19.602 16.157 21.5 12 21.5c-4.6 0-9.205-2.583-11.547-4.258-.28-.2-.452-.53-.453-.868v-2.62c0-.345.113-.679.321-.956l.73-.963c.392-.517.974-.654 1.593-.654l.029-.297c.25-2.446.81-4.213 2.082-5.52 2.461-2.54 5.71-2.851 7.146-2.864h.198c1.436.013 4.685.323 7.146 2.864zm-7.244 4.328c-.284 0-.613.016-.962.05-.123.447-.305.85-.57 1.108-1.05 1.023-2.316 1.18-2.994 1.18-.638 0-1.306-.13-1.851-.464-.516.165-1.012.403-1.044.996a65.882 65.882 0 00-.063 2.884l-.002.48c-.002.563-.005 1.126-.013 1.69.002.326.204.63.51.765 2.482 1.102 4.83 1.657 6.99 1.657 2.156 0 4.504-.555 6.985-1.657a.854.854 0 00.51-.766c.03-1.682.006-3.372-.076-5.053-.031-.596-.528-.83-1.046-.996-.546.333-1.212.464-1.85.464-.677 0-1.942-.157-2.993-1.18-.266-.258-.447-.661-.57-1.108-.32-.032-.64-.049-.96-.05zm-2.525 4.013c.539 0 .976.426.976.95v1.753c0 .525-.437.95-.976.95a.964.964 0 01-.976-.95v-1.752c0-.525.437-.951.976-.951zm5 0c.539 0 .976.426.976.95v1.753c0 .525-.437.95-.976.95a.964.964 0 01-.976-.95v-1.752c0-.525.437-.951.976-.951zM7.635 5.087c-1.05.102-1.935.438-2.385.906-.975 1.037-.765 3.668-.21 4.224.405.394 1.17.657 1.995.657h.09c.649-.013 1.785-.176 2.73-1.11.435-.41.705-1.433.675-2.47-.03-.834-.27-1.52-.63-1.813-.39-.336-1.275-.482-2.265-.394zm6.465.394c-.36.292-.6.98-.63 1.813-.03 1.037.24 2.06.675 2.47.968.957 2.136 1.104 2.776 1.11h.044c.825 0 1.59-.263 1.995-.657.555-.556.765-3.187-.21-4.224-.45-.468-1.335-.804-2.385-.906-.99-.088-1.875.058-2.265.394zM12 7.615c-.24 0-.525.015-.84.044.03.16.045.336.06.526l-.001.159a2.94 2.94 0 01-.014.25c.225-.022.425-.027.612-.028h.366c.187 0 .387.006.612.028-.015-.146-.015-.277-.015-.409.015-.19.03-.365.06-.526a9.29 9.29 0 00-.84-.044z`})]})),Xt=(0,h.memo)(({...e})=>(0,g.jsx)(v,{Icon:Yt,"aria-label":L,background:Kt,color:qt,iconMultiple:Jt,...e})),Zt=(0,h.memo)(({size:e=`1em`,style:t,...n})=>(0,g.jsxs)(`svg`,{fill:`currentColor`,fillRule:`evenodd`,height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 154 24`,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,g.jsx)(`title`,{children:L}),(0,g.jsx)(`path`,{d:`M2 11.875c0 5.256 3.013 8.506 8.19 8.506 4.76 0 8.027-2.72 8.027-7.722v-1.545h-7.982v2.928h4.095c-.161 1.96-1.68 3.25-4.049 3.25-2.6 0-4.347-1.498-4.347-4.334V10.7c0-2.582 1.518-4.31 4.186-4.31 1.91 0 3.267.922 3.68 2.374h3.865c-.437-3.366-3.427-5.625-7.499-5.625C5.29 3.138 2 6.366 2 11.875zm17.308-5.44h3.496V3h-3.496v3.435zm0 13.715h3.496V7.795h-3.496V20.15zm10.544-9.52h2.438V7.795h-2.438V3.922h-3.496v3.873H24.17v2.835h2.186v6.8c0 1.637.69 2.72 2.76 2.72h3.174v-2.766h-2.438V10.63zm3.994 9.52h3.727v-7.076h7.568v7.076h3.726V3.346h-3.726v6.777h-7.568V3.346h-3.727V20.15zM62.385 7.795h-3.497v6.523c0 1.868-1.012 3.205-2.668 3.205-1.38 0-2.162-.83-2.162-2.56V7.796h-3.52v7.722c0 2.95 1.357 4.864 4.118 4.864 1.955 0 3.29-.945 4.002-2.49h.207l.46 2.26h3.06V7.794zm1.698 12.355h3.06l.436-2.213h.207c.713 1.591 2.3 2.444 4.072 2.444 3.174 0 5.015-2.374 5.015-6.385 0-4.057-1.887-6.432-5.084-6.432-1.978 0-3.428 1.014-4.003 2.49h-.207V3h-3.496v17.15zm3.496-5.624v-1.06c0-1.845 1.173-3.043 2.99-3.043 1.657 0 2.738.853 2.738 2.581v1.983c0 1.521-.874 2.559-2.714 2.559-1.864 0-3.014-1.222-3.014-3.02zm21.8 5.855c4.21 0 7.177-2.351 7.683-6.063h-3.151c-.46 2.098-2.186 3.389-4.486 3.389-2.852 0-4.67-1.867-4.67-4.518v-2.743c0-2.882 1.887-4.634 4.716-4.634 2.53 0 4.072 1.36 4.44 3.366h3.151c-.368-3.665-3.243-6.063-7.499-6.063-5.038 0-7.982 3.274-7.982 8.668 0 5.348 2.898 8.598 7.798 8.598zm8.533-6.34c0 3.92 2.346 6.34 5.98 6.34 3.796 0 6.004-2.536 6.004-6.34 0-4.056-2.484-6.338-6.003-6.338-3.635 0-5.981 2.397-5.981 6.339zm2.898.992V13.12c0-1.89 1.22-3.066 3.083-3.066 1.817 0 3.082 1.152 3.082 3.066v1.913c0 1.96-1.288 2.997-3.082 2.997-1.749 0-3.083-1.015-3.083-2.997zM111.018 24h2.853v-6.132h.184c.667 1.453 2.116 2.398 4.186 2.398 3.083 0 4.992-2.26 4.992-6.293 0-3.942-1.863-6.27-4.992-6.27-1.863 0-3.427.852-4.186 2.397h-.184l-.345-2.167h-2.508V24zm6.211-6.063c-2.024 0-3.358-1.314-3.358-3.342v-1.222c0-2.005 1.31-3.342 3.381-3.342 2.002 0 3.037 1.152 3.037 2.881v2.144c0 1.815-1.16 2.849-2.973 2.88l-.087.001zm7.1-11.733h2.83V3.115h-2.83v3.09zm0 13.946h2.83V7.933h-2.83V20.15zm4.338 0h2.83V3.115h-2.83V20.15zm9.927-12.447c3.52 0 6.004 2.282 6.004 6.339 0 3.803-2.208 6.339-6.004 6.339-3.634 0-5.98-2.42-5.98-6.34 0-3.941 2.346-6.338 5.98-6.338zm10.922-3.689v3.919H152v2.328h-2.484v7.607H152v2.282h-2.99c-1.749 0-2.324-.922-2.324-2.282v-7.607h-2.185V7.933h2.185V4.014h2.83zm-10.922 6.04c-1.863 0-3.082 1.175-3.082 3.066v1.913c0 1.982 1.334 2.997 3.082 2.997 1.795 0 3.083-1.038 3.083-2.997V13.12c0-1.914-1.265-3.066-3.083-3.066z`})]})),Qt=(0,h.memo)(({...e})=>(0,g.jsx)(y,{Icon:Yt,Text:Zt,"aria-label":L,spaceMultiple:Wt,textMultiple:Ut,...e})),R=Yt;R.Text=Zt,R.Combine=Qt,R.Avatar=Xt,R.colorPrimary=Gt,R.title=L;var z=`Goose`,$t=.7,en=.2,tn=`#fff`,nn=tn,rn=`#000`,an=.65,on=(0,h.memo)(({size:e=`1em`,style:t,...n})=>(0,g.jsxs)(`svg`,{fill:`currentColor`,fillRule:`evenodd`,height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 24 24`,width:e,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,g.jsx)(`title`,{children:z}),(0,g.jsx)(`path`,{d:`M21.595 23.61c1.167-.254 2.405-.944 2.405-.944l-2.167-1.784a12.124 12.124 0 01-2.695-3.131 12.127 12.127 0 00-3.97-4.049l-.794-.462a1.115 1.115 0 01-.488-.815.844.844 0 01.154-.575c.413-.582 2.548-3.115 2.94-3.44.503-.416 1.065-.762 1.586-1.159.074-.056.148-.112.221-.17.003-.002.007-.004.009-.007.167-.131.325-.272.45-.438.453-.524.563-.988.59-1.193-.061-.197-.244-.639-.753-1.148.319.02.705.272 1.056.569.235-.376.481-.773.727-1.171.165-.266-.08-.465-.086-.471h-.001V3.22c-.007-.007-.206-.25-.471-.086-.567.35-1.134.702-1.639 1.021 0 0-.597-.012-1.305.599a2.464 2.464 0 00-.438.45l-.007.009c-.058.072-.114.147-.17.221-.397.521-.743 1.083-1.16 1.587-.323.391-2.857 2.526-3.44 2.94a.842.842 0 01-.574.153 1.115 1.115 0 01-.815-.488l-.462-.794a12.123 12.123 0 00-4.049-3.97 12.133 12.133 0 01-3.13-2.695L1.332 0S.643 1.238.39 2.405c.352.428 1.27 1.49 2.34 2.302C1.58 4.167.73 3.75.06 3.4c-.103.765-.063 1.92.043 2.816.726.317 1.961.806 3.219 1.066-1.006.236-2.11.278-2.961.262.15.554.358 1.119.64 1.688.119.263.25.52.39.77.452.125 2.222.383 3.164.171l-2.51.897a27.776 27.776 0 002.544 2.726c2.031-1.092 2.494-1.241 4.018-2.238-2.467 2.008-3.108 2.828-3.8 3.67l-.483.678c-.25.351-.469.725-.65 1.117-.61 1.31-1.47 4.1-1.47 4.1-.154.486.202.842.674.674 0 0 2.79-.861 4.1-1.47.392-.182.766-.4 1.118-.65l.677-.483c.227-.187.453-.37.701-.586 0 0 1.705 2.02 3.458 3.349l.896-2.511c-.211.942.046 2.712.17 3.163.252.142.509.272.772.392.569.28 1.134.49 1.688.64-.016-.853.026-1.956.261-2.962.26 1.258.75 2.493 1.067 3.219.895.106 2.051.146 2.816.043a73.87 73.87 0 01-1.308-2.67c.811 1.07 1.874 1.988 2.302 2.34h-.001z`})]})),sn=(0,h.memo)(({...e})=>(0,g.jsx)(v,{Icon:on,"aria-label":z,background:nn,color:rn,iconMultiple:an,...e})),cn=(0,h.memo)(({size:e=`1em`,style:t,...n})=>(0,g.jsxs)(`svg`,{fill:`currentColor`,fillRule:`evenodd`,height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 87 24`,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,g.jsx)(`title`,{children:z}),(0,g.jsx)(`path`,{d:`M17.122 16.607c0 4.696-3.219 7.393-7.774 7.393-3.674 0-6.255-1.546-7.257-4.637l3.401-1.21c.486 1.786 1.852 2.907 3.856 2.907 2.46 0 4.13-1.211 4.13-4.12v-1.122c-.85 1.121-2.46 2-4.494 2C4.61 17.818 2 14.273 2 9.909 2 5.546 4.611 2 8.984 2c2.004 0 3.644.879 4.494 2V2.303h3.644v14.303zm-3.583-6.85c0-2.908-1.58-4.575-3.857-4.575-2.52 0-4.008 1.757-4.008 4.727 0 2.94 1.488 4.727 4.008 4.727 2.278 0 3.857-1.666 3.857-4.515v-.363zM35.546 10.273c0 4.94-3.188 8.273-7.683 8.273-4.494 0-7.682-3.334-7.682-8.273C20.181 5.333 23.37 2 27.863 2c4.495 0 7.683 3.333 7.683 8.273zm-11.69 0c0 3.242 1.548 5.212 4.007 5.212 2.46 0 4.009-1.97 4.009-5.212 0-3.243-1.549-5.212-4.009-5.212-2.46 0-4.008 1.97-4.008 5.212zM52.957 10.273c0 4.94-3.188 8.273-7.682 8.273s-7.682-3.334-7.682-8.273C37.593 5.333 40.78 2 45.275 2s7.682 3.333 7.682 8.273zm-11.69 0c0 3.242 1.548 5.212 4.008 5.212s4.008-1.97 4.008-5.212c0-3.243-1.549-5.212-4.008-5.212-2.46 0-4.008 1.97-4.008 5.212zM54.336 15.182L57.069 13c.941 1.546 2.763 2.576 4.615 2.576 1.549 0 2.976-.546 2.976-1.97 0-1.364-1.336-1.515-3.856-2.03-2.52-.515-5.405-1.152-5.405-4.546 0-2.909 2.55-5.03 6.224-5.03 2.794 0 5.284 1.242 6.438 3L65.6 7.212c-.91-1.424-2.429-2.242-4.19-2.242-1.488 0-2.46.666-2.46 1.727 0 1.152 1.154 1.364 3.158 1.788 2.703.576 6.104 1.151 6.104 4.788 0 3.211-2.946 5.273-6.56 5.273-2.945 0-5.89-1.182-7.317-3.364zM77.965 18.546c-4.555 0-7.743-3.364-7.743-8.273 0-4.667 3.157-8.273 7.59-8.273 4.616 0 7.076 3.485 7.076 7.849v1.212H73.713c.274 2.727 1.913 4.394 4.252 4.394 1.791 0 3.218-.91 3.704-2.546l3.128 1.182c-1.124 2.787-3.644 4.455-6.832 4.455zm-.183-13.485c-1.882 0-3.34 1.12-3.886 3.272h7.318c-.03-1.757-1.124-3.272-3.432-3.272z`})]})),ln=(0,h.memo)(({...e})=>(0,g.jsx)(y,{Icon:on,Text:cn,"aria-label":z,spaceMultiple:en,textMultiple:$t,iconProps:{shape:`square`},...e})),B=on;B.Text=cn,B.Combine=ln,B.Avatar=sn,B.colorPrimary=tn,B.title=z;var V=`Grok`,un=.75,dn=.2,fn=`#000`,pn=fn,mn=`#fff`,hn=.75,gn=(0,h.memo)(({size:e=`1em`,style:t,...n})=>(0,g.jsxs)(`svg`,{fill:`currentColor`,fillRule:`evenodd`,height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 24 24`,width:e,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,g.jsx)(`title`,{children:V}),(0,g.jsx)(`path`,{d:`M9.27 15.29l7.978-5.897c.391-.29.95-.177 1.137.272.98 2.369.542 5.215-1.41 7.169-1.951 1.954-4.667 2.382-7.149 1.406l-2.711 1.257c3.889 2.661 8.611 2.003 11.562-.953 2.341-2.344 3.066-5.539 2.388-8.42l.006.007c-.983-4.232.242-5.924 2.75-9.383.06-.082.12-.164.179-.248l-3.301 3.305v-.01L9.267 15.292M7.623 16.723c-2.792-2.67-2.31-6.801.071-9.184 1.761-1.763 4.647-2.483 7.166-1.425l2.705-1.25a7.808 7.808 0 00-1.829-1A8.975 8.975 0 005.984 5.83c-2.533 2.536-3.33 6.436-1.962 9.764 1.022 2.487-.653 4.246-2.34 6.022-.599.63-1.199 1.259-1.682 1.925l7.62-6.815`})]})),_n=(0,h.memo)(({...e})=>(0,g.jsx)(v,{Icon:gn,"aria-label":V,background:pn,color:mn,iconMultiple:hn,...e})),vn=(0,h.memo)(({size:e=`1em`,style:t,...n})=>(0,g.jsxs)(`svg`,{fill:`currentColor`,fillRule:`evenodd`,height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 63 24`,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,g.jsx)(`title`,{children:V}),(0,g.jsx)(`path`,{d:`M47.419 21.645V2.457h3.033V15.12l6.415-7.369h3.678l-5.772 6.316 5.825 7.578h-3.624l-4.717-6.512-1.805-.012v6.524h-3.033zM38.22 21.968c-4.51 0-6.952-3.198-6.952-7.283 0-4.112 2.443-7.283 6.952-7.283 4.537 0 6.952 3.17 6.952 7.283 0 4.085-2.415 7.283-6.952 7.283zm-3.785-7.283c0 3.17 1.718 4.756 3.785 4.756 2.094 0 3.785-1.585 3.785-4.756 0-3.172-1.691-4.784-3.785-4.784-2.067 0-3.785 1.612-3.785 4.784zM22.826 21.645V9.955l2.55-2.204h5.422v2.58H25.86v11.314h-3.033zM11.228 22C5.447 22 2 17.802 2 12.078 2 6.3 5.57 2 11.341 2c4.51 0 7.811 2.311 8.59 6.611h-3.463c-.51-2.445-2.55-3.816-5.127-3.816-4.16 0-5.986 3.601-5.986 7.283 0 3.682 1.826 7.256 5.986 7.256 3.973 0 5.717-2.876 5.852-5.267h-5.986v-2.783h9.046l-.015 1.455c0 5.406-2.203 9.261-9.01 9.261z`})]})),yn=(0,h.memo)(({...e})=>(0,g.jsx)(y,{Icon:gn,Text:vn,"aria-label":V,spaceMultiple:dn,textMultiple:un,...e})),H=gn;H.Text=vn,H.Combine=yn,H.Avatar=_n,H.colorPrimary=fn,H.title=V;var U=`Kilo Code`,bn=.75,xn=.4,Sn=`#F8F676`,Cn=Sn,wn=`#1A1A18`,Tn=.7,En=(0,h.memo)(({size:e=`1em`,style:t,...n})=>(0,g.jsxs)(`svg`,{fill:`currentColor`,fillRule:`evenodd`,height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 24 24`,width:e,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,g.jsx)(`title`,{children:U}),(0,g.jsx)(`path`,{d:`M16.4 21.016h3.667V24h-4.61l-1.99-2.025v-4.689H16.4v3.73zm6.6 0h-2.933v-3.73H16.4v-2.984h4.61L23 16.327v4.689zm-12.467-4.35H7.6v-2.984h2.933v2.984zM1 13.682h2.933v6.714h6.6v2.984H2.99L1 21.355v-7.673zm22-5.968v2.984h-9.533V7.714h3.278v-3.73h-3.278V1h4.22l1.991 2.025v4.689H23zM3.933 4.357H7.6l2.933 2.984v3.357H7.6V7.341H3.933v3.357H1V1h2.933v3.357zm6.6 0H7.6V1h2.933v3.357z`})]})),Dn=(0,h.memo)(({...e})=>(0,g.jsx)(v,{Icon:En,"aria-label":U,background:Cn,color:wn,iconMultiple:Tn,...e})),On=(0,h.memo)(({size:e=`1em`,style:t,...n})=>(0,g.jsxs)(`svg`,{fill:`currentColor`,fillRule:`evenodd`,height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 24 24`,width:e,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,g.jsx)(`title`,{children:U}),(0,g.jsx)(`path`,{d:`M0 0v24h24V0H0zm22.222 22.222H1.778V1.778h20.444v20.444zm-7.555-4.964h2.222v1.778h-2.794L12.89 17.83v-2.794h1.778v2.222zm4 0h-1.778v-2.222h-2.222v-1.778h2.793l1.207 1.207v2.793zm-7.556-2.591H9.333v-1.778h1.778v1.778zm-5.778-1.778h1.778v4h4v1.778H6.54L5.333 17.46V12.89zm13.334-3.556v1.778h-5.778V9.333h1.987V7.111h-1.987V5.333h2.558l1.206 1.207v2.793h2.014zm-11.556-2h2.222l1.778 1.778v2H9.333v-2H7.111v2H5.333V5.333h1.778v2zm4 0H9.333v-2h1.778v2z`})]})),kn=(0,h.memo)(({size:e=`1em`,style:t,...n})=>(0,g.jsxs)(`svg`,{fill:`currentColor`,fillRule:`evenodd`,height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 147 24`,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,g.jsx)(`title`,{children:U}),(0,g.jsx)(`path`,{d:`M138.579 21.999c-1.289 0-2.413-.249-3.371-.746-.959-.498-1.705-1.189-2.239-2.073-.516-.903-.774-1.953-.774-3.15v-3.815c0-1.197.258-2.238.774-3.123a5.467 5.467 0 012.239-2.1c.958-.498 2.082-.746 3.371-.746 1.272 0 2.377.248 3.317.746.958.497 1.695 1.197 2.211 2.1.534.885.801 1.926.801 3.123v2.736h-9.369v1.078c0 1.069.258 1.88.774 2.432.516.535 1.281.802 2.294.802.774 0 1.4-.13 1.879-.387.479-.277.783-.673.912-1.189h3.4c-.258 1.308-.958 2.359-2.101 3.151-1.124.774-2.496 1.16-4.118 1.16zm2.985-8.982v-.83c0-1.05-.249-1.851-.746-2.404-.498-.571-1.244-.857-2.239-.857-.995 0-1.75.286-2.266.857s-.774 1.382-.774 2.432v.58l6.274-.055-.249.277zM120.958 22c-1.511 0-2.736-.525-3.676-1.576-.921-1.05-1.382-2.46-1.382-4.228v-4.118c0-1.787.461-3.206 1.382-4.256.921-1.05 2.146-1.575 3.676-1.575 1.253 0 2.247.359 2.984 1.077.737.7 1.106 1.668 1.106 2.902l-.774-.801h.802l-.111-3.62V1.547h3.455v20.176h-3.372v-2.902h-.774l.774-.802c0 1.235-.369 2.211-1.106 2.93-.737.7-1.731 1.05-2.984 1.05zm1.216-2.985c.884 0 1.566-.258 2.045-.774.497-.534.746-1.271.746-2.21v-3.815c0-.94-.249-1.667-.746-2.183-.479-.534-1.161-.802-2.045-.802-.885 0-1.576.258-2.073.774-.498.516-.746 1.253-.746 2.211v3.814c0 .958.248 1.695.746 2.211.497.516 1.188.774 2.073.774zM105.961 21.972c-1.289 0-2.413-.24-3.371-.719a5.573 5.573 0 01-2.211-2.073c-.516-.902-.774-1.962-.774-3.178v-3.758c0-1.216.258-2.267.774-3.151a5.327 5.327 0 012.211-2.073c.958-.497 2.082-.746 3.371-.746 1.309 0 2.433.249 3.372.746a5.155 5.155 0 012.184 2.073c.534.884.801 1.925.801 3.123v3.786c0 1.216-.267 2.276-.801 3.178a5.386 5.386 0 01-2.184 2.073c-.939.48-2.063.719-3.372.719zm0-3.013c.922 0 1.631-.248 2.129-.746.515-.516.773-1.253.773-2.21v-3.76c0-.976-.258-1.713-.773-2.21-.498-.498-1.207-.747-2.129-.747-.902 0-1.612.25-2.128.747-.515.497-.773 1.234-.773 2.21v3.76c0 .957.258 1.694.773 2.21.516.498 1.226.746 2.128.746zM89.777 22c-1.29 0-2.423-.24-3.4-.719-.958-.497-1.704-1.188-2.238-2.072-.516-.903-.774-1.963-.774-3.179V7.242c0-1.235.258-2.294.774-3.179a5.347 5.347 0 012.239-2.045c.976-.497 2.11-.746 3.399-.746 1.308 0 2.432.249 3.372.746a5.347 5.347 0 012.238 2.045c.535.885.802 1.944.802 3.179h-3.483c0-.958-.258-1.686-.773-2.184-.498-.497-1.216-.746-2.156-.746-.94 0-1.668.249-2.183.746-.516.498-.774 1.216-.774 2.156v8.816c0 .94.258 1.668.774 2.183.516.498 1.243.747 2.183.747.94 0 1.658-.249 2.156-.747.515-.515.773-1.243.773-2.183h3.483c0 1.198-.267 2.248-.802 3.15a5.473 5.473 0 01-2.238 2.101c-.94.48-2.064.719-3.372.719zM57.076 21.972c-1.29 0-2.413-.24-3.372-.719a5.576 5.576 0 01-2.21-2.073c-.517-.902-.774-1.962-.774-3.178v-3.758c0-1.216.258-2.267.773-3.151a5.33 5.33 0 012.211-2.073c.959-.497 2.082-.746 3.372-.746 1.308 0 2.432.249 3.372.746a5.155 5.155 0 012.183 2.073c.535.884.802 1.925.802 3.123v3.786c0 1.216-.267 2.276-.802 3.178a5.385 5.385 0 01-2.183 2.073c-.94.48-2.064.719-3.372.719zm0-3.013c.921 0 1.63-.248 2.128-.746.516-.516.774-1.253.774-2.21v-3.76c0-.976-.258-1.713-.774-2.21-.497-.498-1.207-.747-2.128-.747-.903 0-1.612.25-2.128.747s-.774 1.234-.774 2.21v3.76c0 .957.258 1.694.774 2.21.516.498 1.225.746 2.128.746zM43.102 21.724c-.994 0-1.87-.203-2.625-.609a4.446 4.446 0 01-1.741-1.713c-.424-.756-.636-1.621-.636-2.598V4.671h-4.864V1.548h8.319v15.256c0 .553.157.995.47 1.327.331.313.773.47 1.326.47h4.588v3.123h-4.837zM18.295 21.723v-3.15h5.306V9.644h-4.615V6.522h7.932v12.05h4.698v3.15h-13.32zM24.983 3.98c-.7 0-1.253-.175-1.658-.525-.405-.369-.608-.857-.608-1.465 0-.608.203-1.087.608-1.437C23.73.184 24.283 0 24.983 0s1.253.184 1.659.553c.405.35.608.829.608 1.437 0 .608-.203 1.096-.608 1.465-.406.35-.959.525-1.659.525zM2 21.724V1.548h3.455v8.153h2.404l3.786-8.153h3.759l-4.505 9.673 4.726 10.503h-3.841l-3.98-8.872h-2.35v8.872H2z`})]})),An=(0,h.memo)(({...e})=>(0,g.jsx)(y,{Icon:On,Text:kn,"aria-label":U,spaceMultiple:xn,textMultiple:bn,...e})),W=On;W.Text=kn,W.Combine=An,W.Avatar=Dn,W.colorPrimary=Sn,W.title=U;var G=`opencode`,jn=.6,Mn=.2,Nn=`#000`,Pn=Nn,Fn=`#fff`,In=.75,Ln=(0,h.memo)(({size:e=`1em`,style:t,...n})=>(0,g.jsxs)(`svg`,{fill:`currentColor`,fillRule:`evenodd`,height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 24 24`,width:e,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,g.jsx)(`title`,{children:G}),(0,g.jsx)(`path`,{d:`M16 6H8v12h8V6zm4 16H4V2h16v20z`})]})),Rn=(0,h.memo)(({...e})=>(0,g.jsx)(v,{Icon:Ln,"aria-label":G,background:Pn,color:Fn,iconMultiple:In,...e})),zn=(0,h.memo)(({size:e=`1em`,style:t,...n})=>(0,g.jsxs)(`svg`,{fill:`currentColor`,fillRule:`evenodd`,height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 138 24`,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,g.jsx)(`title`,{children:G}),(0,g.jsx)(`path`,{d:`M12.429 17.143H5.57v-6.857h6.858v6.857z`,fillOpacity:`.25`}),(0,g.jsx)(`path`,{d:`M12.428 6.857H5.571v10.286h6.857V6.857zm3.43 13.715H2.142V3.429h13.714v17.143z`,fillOpacity:`.75`}),(0,g.jsx)(`path`,{d:`M29.571 17.143h-6.857v-6.857h6.857v6.857z`,fillOpacity:`.25`}),(0,g.jsx)(`path`,{d:`M22.714 17.143h6.858V6.857h-6.858v10.286zM33 20.572H22.714V24h-3.428V3.43H33v17.143z`,fillOpacity:`.75`}),(0,g.jsx)(`path`,{d:`M50.143 13.714v3.429H39.857v-3.429h10.286z`,fillOpacity:`.25`}),(0,g.jsx)(`path`,{d:`M50.143 13.714H39.857v3.429h10.286v3.429H36.429V3.429h13.714v10.285zm-10.286-3.428h6.857V6.857h-6.857v3.429z`,fillOpacity:`.75`}),(0,g.jsx)(`path`,{d:`M63.857 20.571H57V10.286h6.857V20.57z`,fillOpacity:`.25`}),(0,g.jsx)(`path`,{d:`M63.857 6.857H57v13.715h-3.429V3.429h10.286v3.428zm3.429 13.715h-3.429V6.857h3.429v13.715z`,fillOpacity:`.75`}),(0,g.jsx)(`path`,{d:`M84.428 17.143H74.144v-6.857h10.285v6.857z`,fillOpacity:`.25`}),(0,g.jsx)(`path`,{d:`M84.428 6.857H74.144v10.286h10.285v3.429H70.715V3.429H84.43v3.428z`}),(0,g.jsx)(`path`,{d:`M98.143 17.143h-6.857v-6.857h6.857v6.857z`,fillOpacity:`.25`}),(0,g.jsx)(`path`,{d:`M98.143 6.857h-6.857v10.286h6.857V6.857zm3.428 13.715H87.857V3.429h13.714v17.143z`}),(0,g.jsx)(`path`,{d:`M115.286 17.143h-6.857v-6.857h6.857v6.857z`,fillOpacity:`.25`}),(0,g.jsx)(`path`,{d:`M115.286 6.857h-6.857v10.286h6.857V6.857zm3.428 13.714H105V3.43h10.286V0h3.428v20.571z`}),(0,g.jsx)(`path`,{d:`M135.857 13.714v3.429h-10.286v-3.429h10.286z`,fillOpacity:`.25`}),(0,g.jsx)(`path`,{d:`M125.571 6.857v3.429h6.858V6.857h-6.858zm10.286 6.857h-10.286v3.429h10.286v3.429h-13.714V3.429h13.714v10.285z`})]})),Bn=(0,h.memo)(({...e})=>(0,g.jsx)(y,{Text:zn,"aria-label":G,spaceMultiple:Mn,textMultiple:jn,...e})),K=Ln;K.Text=zn,K.Combine=Bn,K.Avatar=Rn,K.colorPrimary=Nn,K.title=G;var Vn=.8,Hn=.2,Un=`#000`,Wn=Un,Gn=`#fff`,Kn=.65,qn=(0,h.memo)(({size:e=`1em`,style:t,...n})=>(0,g.jsxs)(`svg`,{fill:`currentColor`,fillRule:`evenodd`,height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 24 24`,width:e,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,g.jsx)(`title`,{children:`Pi`}),(0,g.jsx)(`path`,{clipRule:`evenodd`,d:`M1 1h16.5v11H12v5.5H6.5V23H1V1zm5.5 5.5V12H12V6.5H6.5z`}),(0,g.jsx)(`path`,{d:`M17.5 12H23v11h-5.5V12z`})]})),Jn=(0,h.memo)(({...e})=>(0,g.jsx)(v,{Icon:qn,"aria-label":`Pi`,background:Wn,color:Gn,iconMultiple:Kn,...e})),Yn=(0,h.memo)(({...e})=>(0,g.jsx)(y,{Text:qn,"aria-label":`Pi`,spaceMultiple:Hn,textMultiple:Vn,...e})),q=qn;q.Text=qn,q.Combine=Yn,q.Avatar=Jn,q.colorPrimary=Un,q.title=`Pi`;var J=`Qwen`,Xn=.7,Zn=.2,Qn=`#082dff`,$n=Qn,er=`#fff`,tr=.6,nr=(0,h.memo)(({size:e=`1em`,style:t,...n})=>(0,g.jsxs)(`svg`,{fill:`currentColor`,fillRule:`evenodd`,height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 24 24`,width:e,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,g.jsx)(`title`,{children:J}),(0,g.jsx)(`path`,{d:`M19.713 2.825h-5.907c0-.251-.066-.503-.196-.728L12.819.728A1.46 1.46 0 0 0 11.559 0h-1.58c-.52 0-1 .275-1.26.728l-2.42 4.19a1.45 1.45 0 0 0 0 1.453l.791 1.37c.26.448.74.727 1.26.727h11.36c.52 0 1-.275 1.26-.728l.79-1.37a1.45 1.45 0 0 0 0-1.451l-.79-1.37a1.46 1.46 0 0 0-1.26-.728zM.195 9.905l2.951 5.115a1.46 1.46 0 0 0-.531.531l-.791 1.37a1.45 1.45 0 0 0 0 1.452l.79 1.37c.26.448.74.727 1.26.727h4.84c.52 0 1-.275 1.26-.728l.79-1.37a1.45 1.45 0 0 0 0-1.451L5.086 7.083a1.46 1.46 0 0 0-1.26-.728h-1.58c-.52 0-1 .276-1.26.728l-.79 1.37a1.45 1.45 0 0 0 0 1.452m15.888 13.367 2.951-5.115c.217.125.469.196.728.196h1.582c.52 0 1-.275 1.26-.728l.79-1.37a1.45 1.45 0 0 0 0-1.451l-2.42-4.191a1.46 1.46 0 0 0-1.259-.728h-1.582c-.52 0-1 .276-1.259.728l-5.678 9.838a1.45 1.45 0 0 0 0 1.452l.79 1.37c.26.448.74.727 1.26.727h1.582c.52 0 1-.275 1.26-.728z`})]})),rr=(0,h.memo)(({...e})=>(0,g.jsx)(v,{Icon:nr,"aria-label":J,background:$n,color:er,iconMultiple:tr,...e})),ir=(0,h.memo)(({size:e=`1em`,style:t,...n})=>(0,g.jsxs)(`svg`,{height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 24 24`,width:e,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,g.jsx)(`title`,{children:J}),(0,g.jsx)(`path`,{d:`M19.713 2.825h-5.907c0-.251-.066-.503-.196-.728L12.819.728A1.46 1.46 0 0 0 11.559 0h-1.58c-.52 0-1 .275-1.26.728l-2.42 4.19a1.45 1.45 0 0 0 0 1.453l.791 1.37c.26.448.74.727 1.26.727h11.36c.52 0 1-.275 1.26-.728l.79-1.37a1.45 1.45 0 0 0 0-1.451l-.79-1.37a1.46 1.46 0 0 0-1.26-.728zM.195 9.905l2.951 5.115a1.46 1.46 0 0 0-.531.531l-.791 1.37a1.45 1.45 0 0 0 0 1.452l.79 1.37c.26.448.74.727 1.26.727h4.84c.52 0 1-.275 1.26-.728l.79-1.37a1.45 1.45 0 0 0 0-1.451L5.086 7.083a1.46 1.46 0 0 0-1.26-.728h-1.58c-.52 0-1 .276-1.26.728l-.79 1.37a1.45 1.45 0 0 0 0 1.452m15.888 13.367 2.951-5.115c.217.125.469.196.728.196h1.582c.52 0 1-.275 1.26-.728l.79-1.37a1.45 1.45 0 0 0 0-1.451l-2.42-4.191a1.46 1.46 0 0 0-1.259-.728h-1.582c-.52 0-1 .276-1.259.728l-5.678 9.838a1.45 1.45 0 0 0 0 1.452l.79 1.37c.26.448.74.727 1.26.727h1.582c.52 0 1-.275 1.26-.728z`,fill:`#082dff`})]})),ar=(0,h.memo)(({size:e=`1em`,style:t,...n})=>(0,g.jsxs)(`svg`,{fill:`currentColor`,fillRule:`evenodd`,height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 85 24`,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,g.jsx)(`title`,{children:J}),(0,g.jsx)(`path`,{d:`M49.123 5.939h-3.046a.58.58 0 0 0-.555.412l-3.194 10.701L38.934 6.33a.57.57 0 0 0-.55-.4h-2.55a.57.57 0 0 0-.548.4l-3.422 10.734L28.666 6.34a.58.58 0 0 0-.554-.412h-3.047a.41.41 0 0 0-.39.533l5.174 16.742a.57.57 0 0 0 .549.406h2.544a.57.57 0 0 0 .55-.406l3.61-11.536 3.564 11.536a.57.57 0 0 0 .55.406h2.57a.57.57 0 0 0 .55-.406l5.173-16.731a.41.41 0 0 0-.39-.533zm28.378-.422a7 7 0 0 0-4.793 1.885v-.988a.493.493 0 0 0-.491-.49h-2.64a.493.493 0 0 0-.491.49v16.7c0 .268.222.49.49.49h2.64c.27 0 .492-.222.492-.49v-9.858c0-2.613 1.79-4.16 4.091-4.16s4.092 1.489 4.092 4.16v9.857c0 .27.221.491.49.491h2.64c.27 0 .491-.222.491-.49v-10.48c0-4.303-2.877-7.123-7.01-7.123zM24.777 22.844l-3.39-3.39a11.96 11.96 0 0 0 2.587-8.082C23.663 5.279 18.711.327 12.618.016 5.502-.344-.348 5.5.016 12.618.328 18.71 5.28 23.662 11.372 23.974a11.95 11.95 0 0 0 7.106-1.885l1.225 1.225a.98.98 0 0 0 .692.285h4.07c.396 0 .597-.48.317-.76zm-12.782-2.777A8.066 8.066 0 0 1 3.928 12a8.066 8.066 0 0 1 8.067-8.067 8.066 8.066 0 0 1 6.589 12.718l-3.432-3.431a.98.98 0 0 0-.691-.285h-4.07a.446.446 0 0 0-.318.76l5.523 5.522a8 8 0 0 1-3.606.85zm46.526-14.54c-4.968-.063-9.133 3.86-9.35 8.822a9.239 9.239 0 0 0 17.496 4.535.446.446 0 0 0-.4-.644H63.31a.98.98 0 0 0-.729.328c-1.035 1.145-2.524 1.906-4.181 1.906-2.635 0-4.905-1.838-5.549-4.288h14.043c.248 0 .46-.19.486-.438.037-.322.058-.654.058-.987 0-5.063-3.87-9.17-8.912-9.239zm-.792 3.57c2.798-.323 5.079 1.404 5.845 3.848H52.967a5.75 5.75 0 0 1 4.768-3.849z`})]})),or=(0,h.memo)(({type:e=`mono`,extraStyle:t,...n})=>(0,g.jsx)(y,{Icon:e===`color`?ir:nr,Text:ar,"aria-label":J,extraStyle:{fontWeight:500,...t},spaceMultiple:Zn,textMultiple:Xn,...n})),Y=nr;Y.Color=ir,Y.Text=ar,Y.Combine=or,Y.Avatar=rr,Y.colorPrimary=Qn,Y.title=J;var X=`Replit`,sr=.75,cr=.2,lr=`#FD5402`,ur=lr,dr=`#fff`,fr=.6,pr=(0,h.memo)(({size:e=`1em`,style:t,...n})=>(0,g.jsxs)(`svg`,{fill:`currentColor`,fillRule:`evenodd`,height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 24 24`,width:e,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,g.jsx)(`title`,{children:X}),(0,g.jsx)(`path`,{d:`M11.878 7.761H3.482A1.469 1.469 0 012 6.304V1.457C2 .644 2.67 0 3.482 0h6.913c.827 0 1.483.658 1.483 1.457v6.304zM20.882 16.215h-8.995V7.75h8.995c.87 0 1.588.717 1.588 1.586v5.294c0 .885-.717 1.586-1.588 1.586zM10.395 24H3.482C2.67 24 2 23.343 2 22.546v-4.853c0-.797.67-1.454 1.482-1.454h8.396v6.307c0 .797-.67 1.454-1.483 1.454z`})]})),mr=(0,h.memo)(({...e})=>(0,g.jsx)(v,{Icon:pr,"aria-label":X,background:ur,color:dr,iconMultiple:fr,...e})),hr=(0,h.memo)(({size:e=`1em`,style:t,...n})=>(0,g.jsxs)(`svg`,{height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 24 24`,width:e,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,g.jsx)(`title`,{children:X}),(0,g.jsx)(`path`,{d:`M11.878 7.761H3.482A1.469 1.469 0 012 6.304V1.457C2 .644 2.67 0 3.482 0h6.913c.827 0 1.483.658 1.483 1.457v6.304zM20.882 16.215h-8.995V7.75h8.995c.87 0 1.588.717 1.588 1.586v5.294c0 .885-.717 1.586-1.588 1.586zM10.395 24H3.482C2.67 24 2 23.343 2 22.546v-4.853c0-.797.67-1.454 1.482-1.454h8.396v6.307c0 .797-.67 1.454-1.483 1.454z`,fill:`#FD5402`})]})),gr=(0,h.memo)(({size:e=`1em`,style:t,...n})=>(0,g.jsxs)(`svg`,{fill:`currentColor`,fillRule:`evenodd`,height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 92 24`,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,g.jsx)(`title`,{children:X}),(0,g.jsx)(`path`,{d:`M10.831 6.145l-.822.768h-.823L8.93 5.94c-.055-.24-.293-.393-.567-.393H3.097c-.33 0-.585.239-.585.512V7.75c0 .29.256.512.585.512h3.108v7.924h-3.62c-.329 0-.585.24-.585.513v1.69c0 .29.256.513.585.513h11.391c.33 0 .585-.24.585-.512v-1.691c0-.29-.256-.513-.585-.513H9.79v-5.601c0-1.571.988-2.391 2.926-2.391h3.145c.329 0 .585-.24.585-.512V5.82c0-.29-.256-.512-.585-.512h-1.865c-1.372-.017-2.45.222-3.164.837zM24.348 5.307c-4.596 0-7.059 2.38-7.059 7.213 0 4.85 2.444 7.232 6.968 7.232 3.502 0 5.763-1.422 6.365-3.856.091-.338-.2-.657-.565-.657h-2.189a.598.598 0 00-.547.355c-.383 1.048-1.478 1.546-2.955 1.546-2.298 0-3.392-1.226-3.538-4.087h9.976c.548-5.347-1.732-7.746-6.456-7.746zm-3.41 5.579c.346-2.097 1.422-3.074 3.392-3.074 2.097 0 3.082 1.084 3.137 3.074h-6.53zM41.517 5.307c-1.187 0-2.042.255-2.706.867l-.82.766h-.751l-.28-.987a.564.564 0 00-.54-.39h-1.572c-.314 0-.559.237-.559.51V23.49c0 .289.245.51.56.51h2.304c.314 0 .558-.238.558-.51v-3.776l-.296-2.024.768-.17.82.765c.646.578 1.432.867 2.602.867 3.387 0 5.43-2.279 5.43-6.922-.018-4.644-2.043-6.923-5.517-6.923zm-1.134 11.056c-1.729 0-2.689-.867-2.689-2.517V10.58c0-1.65.943-2.518 2.689-2.518 2.112 0 3.072 1.293 3.072 4.134-.017 2.874-.96 4.167-3.072 4.167zM89.517 7.305v-1.76c0-.301-.25-.532-.57-.532h-6.172V1.6c0-.302-.25-.533-.57-.533h-2.347c-.32 0-.57.25-.57.533v3.413h-3.646c-.32 0-.57.249-.57.533v1.76c0 .301.25.532.57.532h3.647v5.226c0 3.998 1.885 5.847 5.94 5.847h3.31c.32 0 .569-.25.569-.534v-1.759c0-.302-.25-.533-.57-.533h-2.774c-2.207 0-2.99-.871-2.99-3.04V7.857h6.174c.32-.018.569-.266.569-.55zM60.926 16.17H57.36V.734c0-.293-.245-.517-.56-.517h-6.993c-.315 0-.56.241-.56.517v1.708c0 .293.245.517.56.517h4.126v13.21H49.3c-.315 0-.56.24-.56.516v1.708c0 .293.245.517.56.517h11.626c.315 0 .56-.241.56-.517v-1.707c0-.294-.245-.518-.56-.518zM71.009 0h-3.164c-.317 0-.563.246-.563.527V2.76c0 .299.246.527.563.527h3.164c.316 0 .562-.246.562-.527V.527A.56.56 0 0071.01 0zM71.436 16.259V5.834c0-.298-.246-.527-.563-.527H63.79c-.316 0-.562.246-.562.527v1.74c0 .3.246.528.562.528h4.201v8.157h-4.2c-.317 0-.563.246-.563.527v1.74c0 .3.246.528.562.528h11.954c.316 0 .562-.246.562-.528v-1.74c0-.299-.246-.527-.562-.527h-4.307z`})]})),_r=(0,h.memo)(({type:e=`mono`,...t})=>(0,g.jsx)(y,{Icon:e===`color`?hr:pr,Text:gr,"aria-label":X,spaceMultiple:cr,textMultiple:sr,...t})),Z=pr;Z.Color=hr,Z.Text=gr,Z.Combine=_r,Z.Avatar=mr,Z.colorPrimary=lr,Z.title=X;var Q=`RooCode`,vr=.6,yr=.4,br=`#000`,xr=br,Sr=`#fff`,Cr=.75,wr=(0,h.memo)(({size:e=`1em`,style:t,...n})=>(0,g.jsxs)(`svg`,{fill:`currentColor`,fillRule:`evenodd`,height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 24 24`,width:e,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,g.jsx)(`title`,{children:Q}),(0,g.jsx)(`path`,{d:`M20.113 5.5l-.442 1.557a.157.157 0 01-.196.106l-7.414-2.157a.16.16 0 00-.143.028l-7.342 5.74a.159.159 0 01-.074.032l-4.37.656a.154.154 0 00-.132.162l.02.245c.005.078.071.14.152.141l5.074.128.058.002 3.75-1.953a.16.16 0 01.164.01l2.657 1.847a.152.152 0 01.066.125l-.023 2.45c0 .032.01.063.028.089l3.737 5.227c.03.04.077.065.129.065h1.182a.153.153 0 00.14-.224l-2.664-4.919a.15.15 0 01.005-.152l1.389-2.169a.156.156 0 01.062-.055l4.965-2.456a.16.16 0 01.158.01l1.418.921a.16.16 0 00.087.026h1.289c.125 0 .2-.136.13-.237l-3.578-5.29c-.074-.109-.246-.082-.282.044z`})]})),Tr=(0,h.memo)(({...e})=>(0,g.jsx)(v,{Icon:wr,"aria-label":Q,background:xr,color:Sr,iconMultiple:Cr,...e})),Er=(0,h.memo)(({size:e=`1em`,style:t,...n})=>(0,g.jsxs)(`svg`,{fill:`currentColor`,fillRule:`evenodd`,height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 132 24`,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,g.jsx)(`title`,{children:Q}),(0,g.jsx)(`path`,{d:`M6.666 11.013h5.111c1.07 0 1.872-.235 2.407-.707.535-.47.803-1.237.803-2.297 0-1.02-.268-1.757-.803-2.209-.535-.47-1.337-.706-2.407-.706H6.666v5.92zM2 1.5h11.441c.951 0 1.803.158 2.556.472a5.552 5.552 0 011.961 1.237c.555.53.971 1.148 1.248 1.855.298.687.446 1.433.446 2.238 0 1.237-.267 2.307-.802 3.21-.515.904-1.367 1.59-2.556 2.062v.059c.575.157 1.05.403 1.427.736.376.314.683.697.92 1.149.239.432.407.913.506 1.443.119.53.198 1.06.238 1.59.02.334.04.727.06 1.178.019.452.049.913.088 1.385.06.47.139.922.238 1.354.119.413.287.766.505 1.06h-4.665c-.258-.667-.416-1.462-.476-2.385a35.211 35.211 0 00-.267-2.65c-.159-1.1-.496-1.905-1.01-2.415-.516-.511-1.358-.766-2.527-.766H6.666v8.217H2V1.5zM25.26 14.93c0 .61.059 1.208.177 1.797.12.57.317 1.09.595 1.561.297.452.683.815 1.159 1.09.475.275 1.07.412 1.783.412.713 0 1.307-.137 1.783-.412a3.086 3.086 0 001.159-1.09c.297-.471.505-.991.624-1.56a9.049 9.049 0 00.178-1.797c0-.609-.06-1.208-.178-1.797a4.383 4.383 0 00-.624-1.56 3.085 3.085 0 00-1.16-1.09c-.475-.295-1.069-.442-1.782-.442-.713 0-1.308.147-1.783.442a3.408 3.408 0 00-1.16 1.09 4.75 4.75 0 00-.593 1.56 9.056 9.056 0 00-.179 1.797zm-4.22 0c0-1.216.188-2.316.564-3.298.376-1.001.911-1.845 1.605-2.533a6.928 6.928 0 012.496-1.62c.97-.392 2.06-.588 3.269-.588s2.298.196 3.269.589c.99.373 1.832.913 2.526 1.62.693.687 1.228 1.53 1.605 2.532.376.982.564 2.082.564 3.299s-.188 2.317-.564 3.298a7.302 7.302 0 01-1.605 2.533c-.694.687-1.536 1.217-2.526 1.59-.971.374-2.06.56-3.269.56s-2.298-.186-3.27-.56a7.13 7.13 0 01-2.495-1.59 7.298 7.298 0 01-1.605-2.533c-.377-.981-.565-2.081-.565-3.298zM41.94 14.93c0 .61.06 1.208.179 1.797.119.57.317 1.09.594 1.561a3.41 3.41 0 001.16 1.09c.474.275 1.069.412 1.782.412.713 0 1.308-.137 1.783-.412a3.085 3.085 0 001.16-1.09c.296-.471.505-.991.623-1.56a9.063 9.063 0 00.179-1.797c0-.609-.06-1.208-.179-1.797a4.384 4.384 0 00-.624-1.56 3.084 3.084 0 00-1.159-1.09c-.475-.295-1.07-.442-1.783-.442-.713 0-1.308.147-1.783.442a3.408 3.408 0 00-1.159 1.09 4.748 4.748 0 00-.594 1.56 9.056 9.056 0 00-.179 1.797zm-4.22 0c0-1.216.189-2.316.565-3.298.377-1.001.912-1.845 1.605-2.533a6.928 6.928 0 012.496-1.62c.971-.392 2.06-.588 3.27-.588 1.208 0 2.297.196 3.268.589.99.373 1.833.913 2.526 1.62.694.687 1.228 1.53 1.605 2.532.376.982.564 2.082.564 3.299s-.188 2.317-.564 3.298a7.3 7.3 0 01-1.605 2.533c-.693.687-1.535 1.217-2.526 1.59-.97.374-2.06.56-3.269.56-1.208 0-2.298-.186-3.269-.56a7.13 7.13 0 01-2.496-1.59 7.297 7.297 0 01-1.605-2.533c-.376-.981-.564-2.081-.564-3.298zM76.254 8.569a3.632 3.632 0 00-.535-1.443 4.525 4.525 0 00-2.466-1.944 4.55 4.55 0 00-1.635-.294c-1.05 0-1.942.206-2.675.618a4.857 4.857 0 00-1.783 1.62 7.126 7.126 0 00-1.01 2.297 11.954 11.954 0 00-.297 2.68c0 .884.099 1.748.297 2.592.218.824.554 1.57 1.01 2.238a5.22 5.22 0 001.783 1.62c.733.392 1.625.589 2.675.589 1.426 0 2.536-.432 3.328-1.296.812-.864 1.308-2.003 1.486-3.416h4.517c-.119 1.315-.426 2.503-.921 3.563a8.537 8.537 0 01-1.962 2.71 8.349 8.349 0 01-2.853 1.708c-1.089.393-2.288.589-3.595.589-1.625 0-3.09-.275-4.398-.825-1.288-.569-2.378-1.345-3.27-2.326a10.24 10.24 0 01-2.05-3.446c-.475-1.335-.713-2.768-.713-4.3 0-1.57.238-3.024.713-4.359.476-1.354 1.16-2.532 2.05-3.534.892-1.001 1.982-1.787 3.27-2.356C68.527 1.284 69.993 1 71.618 1c1.169 0 2.268.167 3.299.5a8.62 8.62 0 012.793 1.473 7.635 7.635 0 012.05 2.356c.535.943.872 2.023 1.01 3.24h-4.516zM85.948 14.93c0 .61.06 1.208.178 1.797.12.57.317 1.09.594 1.561.298.452.684.815 1.16 1.09.475.275 1.07.412 1.783.412.713 0 1.307-.137 1.783-.412a3.085 3.085 0 001.159-1.09c.297-.471.505-.991.624-1.56a9.063 9.063 0 00.178-1.797c0-.609-.06-1.208-.178-1.797a4.387 4.387 0 00-.624-1.56 3.084 3.084 0 00-1.16-1.09c-.475-.295-1.07-.442-1.782-.442-.714 0-1.308.147-1.784.442a3.408 3.408 0 00-1.159 1.09 4.755 4.755 0 00-.594 1.56 9.063 9.063 0 00-.178 1.797zm-4.22 0c0-1.216.188-2.316.565-3.298.376-1.001.91-1.845 1.604-2.533a6.928 6.928 0 012.497-1.62c.97-.392 2.06-.588 3.269-.588 1.208 0 2.298.196 3.269.589.99.373 1.832.913 2.525 1.62.694.687 1.229 1.53 1.606 2.532.375.982.563 2.082.563 3.299s-.188 2.317-.563 3.298a7.307 7.307 0 01-1.606 2.533c-.693.687-1.535 1.217-2.525 1.59-.971.374-2.06.56-3.27.56-1.208 0-2.298-.186-3.268-.56a7.13 7.13 0 01-2.497-1.59 7.298 7.298 0 01-1.604-2.533c-.377-.981-.565-2.081-.565-3.298zM109.79 14.871c0-.628-.058-1.227-.178-1.796a4.088 4.088 0 00-.623-1.532 3.225 3.225 0 00-1.1-1.09c-.456-.274-1.03-.412-1.724-.412-.693 0-1.277.138-1.753.413a3.425 3.425 0 00-1.16 1.09 5.283 5.283 0 00-.622 1.56 8.696 8.696 0 00-.179 1.797c0 .589.069 1.178.207 1.767.14.589.357 1.119.655 1.59.316.452.703.825 1.158 1.12.476.274 1.04.412 1.694.412.694 0 1.268-.138 1.724-.413a3.15 3.15 0 001.129-1.09 5.06 5.06 0 00.594-1.59c.12-.589.178-1.197.178-1.826zm.061 5.714h-.061c-.494.825-1.147 1.423-1.96 1.796-.793.354-1.695.53-2.705.53-1.149 0-2.159-.216-3.031-.648a6.425 6.425 0 01-2.169-1.796 8.75 8.75 0 01-1.279-2.621 11.264 11.264 0 01-.415-3.063c0-1.021.14-2.003.415-2.945.298-.962.724-1.806 1.28-2.533a6.35 6.35 0 012.138-1.738c.852-.451 1.843-.677 2.972-.677a5.86 5.86 0 012.585.59 4.407 4.407 0 011.962 1.678h.059V1.5h4.219V22.53h-4.01v-1.944zM125.908 13.281c-.199-1.06-.555-1.865-1.07-2.415-.495-.55-1.258-.824-2.289-.824-.673 0-1.237.118-1.693.353-.436.216-.793.491-1.071.825a3.407 3.407 0 00-.563 1.06 5.3 5.3 0 00-.179 1.002h6.865zm-6.865 2.651c.059 1.355.406 2.336 1.04 2.945.635.609 1.545.913 2.733.913.854 0 1.586-.206 2.2-.618.614-.432.991-.884 1.129-1.355h3.714c-.594 1.826-1.504 3.132-2.733 3.917-1.228.785-2.714 1.178-4.458 1.178-1.208 0-2.297-.186-3.268-.56-.971-.392-1.794-.942-2.467-1.649a7.55 7.55 0 01-1.575-2.533c-.357-.981-.536-2.061-.536-3.24 0-1.138.189-2.198.566-3.18a7.269 7.269 0 011.604-2.533 7.483 7.483 0 012.467-1.708c.971-.412 2.041-.618 3.209-.618 1.308 0 2.447.255 3.418.765a6.522 6.522 0 012.377 2.003 8.125 8.125 0 011.368 2.886c.277 1.08.375 2.21.296 3.387h-11.084z`})]})),Dr=(0,h.memo)(({...e})=>(0,g.jsx)(y,{Icon:wr,Text:Er,"aria-label":Q,spaceMultiple:yr,textMultiple:vr,...e})),$=wr;$.Text=Er,$.Combine=Dr,$.Avatar=Tr,$.colorPrimary=br,$.title=Q;var Or=`#000`,kr=Or,Ar=`#fff`,jr=.75,Mr=(0,h.memo)(({size:e=`1em`,style:t,...n})=>(0,g.jsxs)(`svg`,{fill:`currentColor`,fillRule:`evenodd`,height:e,style:{flex:`none`,lineHeight:1,...t},viewBox:`0 0 24 24`,width:e,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,g.jsx)(`title`,{children:`V0`}),(0,g.jsx)(`path`,{clipRule:`evenodd`,d:`M14.252 8.25h5.624c.088 0 .176.006.26.018l-5.87 5.87a1.889 1.889 0 01-.019-.265V8.25h-2.25v5.623a4.124 4.124 0 004.125 4.125h5.624v-2.25h-5.624c-.09 0-.179-.006-.265-.018l5.874-5.875a1.9 1.9 0 01.02.27v5.623H24v-5.624A4.124 4.124 0 0019.876 6h-5.624v2.25zM0 7.5v.006l7.686 9.788c.924 1.176 2.813.523 2.813-.973V7.5H8.25v6.87L2.856 7.5H0z`})]})),Nr=(0,h.memo)(({...e})=>(0,g.jsx)(v,{Icon:Mr,"aria-label":`V0`,background:kr,color:Ar,iconMultiple:jr,...e})),Pr=Mr;Pr.Avatar=Nr,Pr.colorPrimary=Or,Pr.title=`V0`;var Fr={Amp:b,Antigravity:S,Claude:w,ClaudeCode:E,Cline:O,Codex:A,Cursor:M,Devin:P,GeminiCLI:I,GithubCopilot:R,Goose:B,Grok:H,KiloCode:W,OpenCode:K,Pi:q,Qwen:Y,Replit:Z,RooCode:$,V0:Pr};export{c as n,l as r,Fr as t};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./VirtualizedRenderer-C_d95FXi-2b7OPnwv.js","./rolldown-runtime-XKyaHtl9.js","./react-DlmbjZJV.js","./jsx-runtime-LKYXHABd.js","./editor-CAV9B3e1.js","./route-B8QJSEdc.js","./bem-vbke-3KC.js","./types-BCsOeYI6.js","./index2.css","./url-Bohryzyz.js","./useLayerZIndex-BIk9IpLI.js","./MotionConfigContext-HC2vqcJO.js","./is-html-element-DvgHo_1h.js","./WhiteboardEditor-cZ32fLqJ-CMLA7-B_.js","./Popover-D_u_4_wg.js","./chevron-right-xNdXLJg6.js","./stringifyLocale-D0juOOnH.js","./code-DnmQyGiF.js","./SelectScrollUpArrow-fVYlV_Df.js","./zoom-out-DsmGFv1v.js","./text-align-start-CRhecbJR.js","./ruler-CYb0HZGT.js","./maximize-2-Bc0lXBg6.js","./mouse-pointer-2-B-OF_fcG.js","./undo-2-B-JiyKIl.js","./plus-DZJ2BVkK.js","./MenuSubmenuTrigger-Demi4IDi.js","./index3.css","./Tooltip-CQeEn1SV.js","./pen-tool-BfwjhXQW.js","./underline-CT_nGhA9.js","./external-link-D382oEvK.js","./table-2-D90vZ04E.js","./message-square-Yl8PoPy_.js","./presentation-DXrcAbwM.js","./ThreadView-CnA6USm2.js","./stable-DBbxyzYt.js","./comments-DUAz1Q9X.js","./icons-CVwBATSw.js","./index5.css","./search-DTrfkTpJ.js","./sliders-horizontal-CuS3-UwA.js","./upload-DffL3XsM.js","./video-DKoRqEZW.js","./agentLook-CyO4F8iU.js","./DotGrid-DKKr_PyM.js","./rounds-BLj-tfMG.js","./useMedia-CFebB4XU.js","./BottomSheet-mEENQhXo.js","./motion-Cy65kd7X.js","./preference-oNdcNeml.js","./ref-Uot1XMTG.js","./useSandboxFrame-CJmSnwgG.js","./index4.css","./viewport-CFJHn_Y6-BbuENZ6x.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{t}from"./react-DlmbjZJV.js";import{t as n}from"./jsx-runtime-LKYXHABd.js";import{T as r}from"./route-B8QJSEdc.js";var i=e(t(),1),a=n(),o=(0,i.lazy)(()=>r(()=>import(`./VirtualizedRenderer-C_d95FXi-2b7OPnwv.js`).then(e=>({default:e.VirtualizedRenderer})),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54]),import.meta.url));function s({document:e}){return(0,a.jsx)(a.Fragment,{children:e.rows.slice(0,12).map((t,n)=>e.render(n))})}function c(e={}){return function(t){return(0,a.jsx)(i.Suspense,{fallback:(0,a.jsx)(s,{...t}),children:(0,a.jsx)(o,{...t,options:e})})}}export{c as n,s as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";/* empty css */import{M as t,P as n,S as r,d as i,f as a,g as o,h as s,m as c,p as l,v as u,x as d}from"./index.js";import{B as f,G as p,H as m,I as h,K as g,L as _,U as v,W as y,ot as b,q as x,sr as S,z as ee}from"./url-Bohryzyz.js";import{t as te}from"./maximize-2-Bc0lXBg6.js";import{Dt as C,i as w}from"./MotionConfigContext-HC2vqcJO.js";import{En as ne,Tn as re,ri as T}from"./useLayerZIndex-BIk9IpLI.js";import{t as E}from"./react-DlmbjZJV.js";import{n as ie}from"./bem-vbke-3KC.js";import{t as D}from"./jsx-runtime-LKYXHABd.js";import{t as O}from"./Segmented-3bO8HJP9.js";import{t as k}from"./arrow-up-right-0KreI6kY.js";import{b as A}from"./route-B8QJSEdc.js";import{n as j,t as M}from"./preference-oNdcNeml.js";var N={name:`minimize-2`,size:24,node:[[`path`,{d:`m14 10 7-7`,key:`oa77jy`}],[`path`,{d:`M20 10h-6V4`,key:`mjg0md`}],[`path`,{d:`m3 21 7-7`,key:`tjx5ai`}],[`path`,{d:`M4 14h6v6`,key:`rmj7iw`}]]};N.node;var ae=C(N),P=class{constructor(){this.componentControls=new Set}subscribe(e){return this.componentControls.add(e),()=>this.componentControls.delete(e)}start(e,t){this.componentControls.forEach(n=>{n.start(e.nativeEvent||e,t)})}cancel(){this.componentControls.forEach(e=>{e.cancel()})}stop(){this.componentControls.forEach(e=>{e.stop()})}},F=()=>new P;function oe(){return w(F)}var I=e(E(),1),L=D(),se=({confirmLoading:e,okButtonProps:t,okText:n,onOk:r})=>{let{onClick:i,...a}=t??{};return(0,L.jsx)(S,{loading:e,type:`primary`,...a,onClick:e=>{r(e),i?.(e)},children:n})},ce=({cancelButtonProps:e,cancelText:t,onCancel:n})=>{let{onClick:r,...i}=e??{};return(0,L.jsx)(S,{...i,onClick:e=>{n(e),r?.(e)},children:t})},R=(0,I.memo)(({open:e,title:n,children:r,onOk:i,onCancel:a,okText:o=`OK`,cancelText:s=`Cancel`,okButtonProps:c,cancelButtonProps:l,confirmLoading:u,footer:d,width:b,height:S,maskClosable:C=!0,closable:w=!0,closeIcon:E,className:D,style:O,classNames:k,styles:A,zIndex:j,afterClose:M,afterOpenChange:N,loading:P,getContainer:F,mask:R=!0,keyboard:z,draggable:B=!0,allowFullscreen:V=!1})=>{let H=oe(),U=(0,I.useRef)(null),[W,G]=(0,I.useState)(!1),[le,K]=(0,I.useState)(!1),[ue,q]=(0,I.useState)(!1),J=(0,I.useRef)(void 0);(0,I.useEffect)(()=>()=>clearTimeout(J.current),[]);let Y=(0,I.useCallback)(()=>{clearTimeout(J.current),q(!0),J.current=setTimeout(()=>q(!1),300)},[]),de=(0,I.useCallback)((t,n)=>{e&&(t||z!==!1||n.reason!==`escape-key`)&&(!t&&!C&&n.reason===`outside-press`?Y():t||a?.(new MouseEvent(`click`)))},[a,z,C,e,Y]),fe=(0,I.useCallback)(()=>{G(!1),M?.(),N?.(!1)},[M,N]),pe=(0,I.useCallback)(()=>{e&&N?.(!0)},[e,N]),me=(0,I.useCallback)(e=>{B&&!W&&(H.start(e),K(!0))},[B,H,W]),X=(0,I.useCallback)(()=>{K(!1)},[]),he=(0,I.useCallback)(e=>{i?.(e)},[i]),Z=(0,I.useCallback)(e=>{a?.(e)},[a]),ge=(0,I.useMemo)(()=>{if(d===!1||d===null)return null;let e=(0,L.jsx)(ce,{cancelButtonProps:l,cancelText:s,onCancel:Z}),t=(0,L.jsx)(se,{confirmLoading:u,okButtonProps:c,okText:o,onOk:he}),n=(0,L.jsxs)(L.Fragment,{children:[e,t]});return typeof d==`function`?d(n,{CancelBtn:()=>e,OkBtn:()=>t}):d??n},[d,l,s,Z,u,c,o,he]),_e=F===!1?void 0:F??void 0,Q=B&&!W,ve=Q?{drag:!0,dragConstraints:U,dragControls:H,dragElastic:0,dragListener:!1,dragMomentum:!1,whileDrag:{cursor:`grabbing`}}:{},ye=n!==void 0&&n!==!1&&n!==null,be=ye||w||V,xe=S!==void 0,$=ie({draggable:Q,fullscreen:W}),Se={...xe&&!W?{height:S}:{},...O};return(0,L.jsx)(y,{open:e??!1,zIndex:j,onExitComplete:fe,onOpenChange:de,children:(0,L.jsxs)(v,{container:_e,children:[R&&(0,L.jsx)(h,{className:k?.mask,style:A?.mask,...$}),(0,L.jsxs)(m,{className:k?.wrapper,panelClassName:D,panelData:$,...$,popupStyle:A?.wrapper,ref:U,style:Se,width:W?void 0:b,motionProps:{...ve,onAnimationComplete:pe},panelXstyle:[W&&g.fullscreenPopupInner,ue&&g.denyAnimation],children:[be&&(0,L.jsxs)(f,{className:k?.header,xstyle:Q&&g.headerDraggable,style:{...le?{cursor:`grabbing`}:{},...A?.header},onPointerCancel:X,onPointerDown:me,onPointerUp:X,children:[ye?(0,L.jsx)(p,{className:k?.title,style:A?.title,children:n}):(0,L.jsx)(`span`,{}),(0,L.jsxs)(`div`,{...T(g.headerActions,x(`header-actions`)),onPointerDown:t,children:[V&&(0,L.jsx)(`button`,{"aria-label":W?`Exit fullscreen`:`Fullscreen`,...T([g.fullscreenToggle,re.info],x(`fullscreen-toggle`)),type:`button`,onClick:()=>G(e=>!e),children:W?(0,L.jsx)(ae,{size:14}):(0,L.jsx)(te,{size:14})}),w&&(0,L.jsx)(`button`,{"aria-label":`Close`,...T([g.closeInline,re.info],x(`close`)),type:`button`,onClick:Z,children:E??(0,L.jsx)(ne,{size:16})})]})]}),(0,L.jsx)(_,{className:k?.body,xstyle:!be&&g.contentNoHeader,style:{...xe||W?{flex:1}:{},...A?.body},children:P?(0,L.jsx)(`div`,{...T(g.loading,x(`loading`)),children:(0,L.jsx)(`span`,{...T([g.loadingSpinner,g.loadingSpinnerLarge])})}):r}),ge!==null&&(0,L.jsx)(ee,{className:k?.footer,style:A?.footer,children:ge})]})]})})});R.displayName=`Modal`;function z(){let{t:e}=A(),t=j();return(0,L.jsxs)(`section`,{"data-reading-preferences":!0,className:`x78zum5 xdt5ytf x1v2ro7d xqfszdh`,children:[(0,L.jsx)(`h3`,{className:`x1ghz6dp xfifm61 xk50ysn x1bo0w0s`,children:e(`settings.reading`)}),(0,L.jsxs)(`div`,{className:`x78zum5 xdt5ytf x167g77z`,children:[(0,L.jsxs)(`div`,{className:`x78zum5 x6s0dn4 x1qughib x1a02dak x1v2ro7d`,children:[(0,L.jsx)(`span`,{className:`x4z9k3i xk50ysn x1evy7pa xo2rkog`,children:e(`settings.diagramFont`)}),(0,L.jsx)(O,{"aria-label":e(`settings.diagramFont`),size:`small`,value:t?`system`:`original`,options:[{label:e(`settings.originalFont`),value:`original`},{label:e(`settings.systemFont`),value:`system`}],onChange:e=>M(e===`system`),className:`x2lah0s`})]}),(0,L.jsx)(`p`,{className:`x1ghz6dp xfifm61 x1evy7pa x1bo0w0s`,children:e(`settings.diagramFontHint`)})]})]})}var B={inherit:null,on:!0,off:!1},V=e=>e===!0?`on`:e===!1?`off`:`inherit`;function H(e){return(0,L.jsxs)(`div`,{className:`x78zum5 xdt5ytf xou54vl xqfszdh x4z9k3i xo2rkog`,children:[(0,L.jsx)(z,{}),(0,L.jsx)(U,{...e})]})}function U({status:e,project:t,waitingForLogin:r,onAutoPublish:o,onSignIn:u,onSignOut:d}){let{t:f,i18n:p}=A(),[m,h]=(0,I.useState)(!1),g=async e=>{h(!0),await e(),h(!1)};if(!e.signedIn||!e.login){let t=c(e.origin,p.language);return(0,L.jsxs)(`div`,{className:`x78zum5 xdt5ytf xou54vl xqfszdh x4z9k3i xo2rkog`,children:[(0,L.jsx)(`h3`,{className:`x1ghz6dp x4z9k3i x1s688f x1bo0w0s`,children:f(`settings.cloud`)}),(0,L.jsxs)(`div`,{className:`x78zum5 xdt5ytf xmkeg23 x1y0btm7 x12xov25 x1q4ynmn`,children:[(0,L.jsxs)(`div`,{className:`x78zum5 x6s0dn4 x1af02g3 x10dr8xq xqin4a2`,children:[(0,L.jsx)(`span`,{className:`x98rzlu xeuugli x78zum5 xdt5ytf x1ed6fcf x1bo0w0s xfifm61 x1dbl2gt`,children:f(`settings.signedOut`)}),(0,L.jsx)(S,{loading:r,type:`primary`,onClick:u,children:f(r?`settings.waitingLogin`:`common.signInGithub`)})]}),t?(0,L.jsx)(`div`,{className:`x78zum5 x1a02dak x6s0dn4 x1af02g3 x1m7iz9m xqin4a2 x2fo67v xfifm61 x178xt8z x13fuv20 xxu5053`,children:(0,L.jsxs)(`a`,{href:t,rel:`noopener noreferrer`,target:`_blank`,className:`x3nfvp2 x6s0dn4 x1jnr06f x1cge3fn xh88oxj x1hl2dhg`,children:[f(`cloudEntry.learnMore`),(0,L.jsx)(k,{"aria-hidden":`true`,size:12})]})}):null,(0,L.jsx)(`div`,{className:`x78zum5 x6s0dn4 x1af02g3 x10dr8xq xqin4a2 x178xt8z x13fuv20 xxu5053`,children:(0,L.jsx)(i,{origin:e.origin})})]})]})}let _=e.login,v=l(e.origin),y=s(e.origin,_),x=a(e.origin);return(0,L.jsxs)(`div`,{className:`x78zum5 xdt5ytf xou54vl xqfszdh x4z9k3i xo2rkog`,children:[(0,L.jsx)(`h3`,{className:`x1ghz6dp x4z9k3i x1s688f x1bo0w0s`,children:f(`settings.cloud`)}),(0,L.jsxs)(`div`,{className:`x78zum5 xdt5ytf xmkeg23 x1y0btm7 x12xov25 x1q4ynmn`,children:[(0,L.jsxs)(`div`,{className:`x78zum5 x6s0dn4 x1af02g3 x10dr8xq xqin4a2`,children:[(0,L.jsx)(n,{alt:``,avatar:`/api/avatar/github/${_}`,shape:`circle`,size:32}),(0,L.jsxs)(`span`,{className:`x98rzlu xeuugli x78zum5 xdt5ytf x1ed6fcf`,children:[(0,L.jsx)(`span`,{className:`x1s688f`,children:_}),(0,L.jsx)(`span`,{className:`x1bo0w0s xfifm61 x1dbl2gt`,children:f(`settings.signedInAs`,{login:_})})]}),(0,L.jsx)(S,{disabled:m,size:`small`,onClick:()=>void g(d),children:f(`settings.signOut`)})]}),v&&y&&x?(0,L.jsxs)(`div`,{className:`x78zum5 x1a02dak x6s0dn4 x1af02g3 x1m7iz9m xqin4a2 x2fo67v xfifm61 x178xt8z x13fuv20 xxu5053`,children:[(0,L.jsxs)(`a`,{href:v,rel:`noopener noreferrer`,target:`_blank`,className:`x3nfvp2 x6s0dn4 x1jnr06f x1cge3fn xh88oxj x1hl2dhg`,children:[f(`cloudEntry.openCloud`),(0,L.jsx)(k,{"aria-hidden":`true`,size:12})]}),(0,L.jsxs)(`a`,{href:y,rel:`noopener noreferrer`,target:`_blank`,className:`x3nfvp2 x6s0dn4 x1jnr06f x1bo0w0s xytdrwj x1hl2dhg`,children:[`/u/${_}`,(0,L.jsx)(k,{"aria-hidden":`true`,size:11})]}),(0,L.jsxs)(`a`,{href:x,rel:`noopener noreferrer`,target:`_blank`,className:`x3nfvp2 x6s0dn4 x1jnr06f x1bo0w0s xytdrwj x1hl2dhg`,children:[f(`cloudEntry.plans`),(0,L.jsx)(k,{"aria-hidden":`true`,size:11})]})]}):null]}),(0,L.jsxs)(`div`,{className:`x78zum5 xdt5ytf xmkeg23 x1y0btm7 x12xov25 x1q4ynmn`,children:[(0,L.jsxs)(`div`,{className:`x78zum5 x6s0dn4 x1af02g3 x10dr8xq xqin4a2`,children:[(0,L.jsxs)(`span`,{className:`x98rzlu xeuugli x78zum5 xdt5ytf x1ed6fcf`,children:[(0,L.jsx)(`span`,{className:`x1s688f`,children:f(`settings.autoPublish`)}),(0,L.jsx)(`span`,{className:`x1bo0w0s xfifm61 x1dbl2gt`,children:f(`settings.autoPublishHint`)})]}),(0,L.jsx)(b,{"aria-label":f(`settings.autoPublish`),checked:!!e.autoPublish?.global,disabled:m,onChange:e=>void g(()=>o({scope:`global`,value:e}))})]}),(0,L.jsxs)(`div`,{className:`x78zum5 x6s0dn4 x1af02g3 x10dr8xq xqin4a2 x178xt8z x13fuv20 xxu5053`,children:[(0,L.jsxs)(`span`,{className:`x98rzlu xeuugli x78zum5 xdt5ytf x1ed6fcf`,children:[(0,L.jsx)(`span`,{className:`x1s688f`,children:f(`settings.projectOverride`,{project:t})}),(0,L.jsx)(`span`,{className:`x1bo0w0s xfifm61 x1dbl2gt`,children:f(`settings.projectOverrideHint`)})]}),(0,L.jsx)(O,{disabled:m,size:`small`,value:V(e.autoPublish?.project),options:[{label:f(`settings.inherit`),value:`inherit`},{label:f(`settings.on`),value:`on`},{label:f(`settings.off`),value:`off`}],onChange:e=>void g(()=>o({scope:`project`,value:B[e]}))})]})]})]})}function W(){let{t:e}=A(),t=u(),{status:n,refresh:i,login:a,waitingForLogin:s}=r(),[c,l]=(0,I.useState)(``);return(0,I.useEffect)(()=>{if(!t)return;i();let e=new AbortController;return fetch(`/api/artifacts`,{cache:`no-store`,signal:e.signal}).then(e=>e.ok?e.json():null).then(e=>l(e?.project??``)).catch(()=>{}),()=>e.abort()},[t,i]),(0,L.jsx)(R,{footer:null,open:t,title:e(`settings.title`),width:560,onCancel:o,children:n?(0,L.jsx)(H,{project:c||e(`common.project`),status:n,waitingForLogin:s,onSignIn:()=>void a(),onAutoPublish:async e=>{await d(`POST`,`auto-publish`,e),await i()},onSignOut:async()=>{await d(`POST`,`logout`),await i()}}):(0,L.jsx)(z,{})})}export{W as SettingsDialog};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{_ as t,b as n}from"./route-B8QJSEdc.js";import{t as r}from"./react-DlmbjZJV.js";import{t as i}from"./jsx-runtime-LKYXHABd.js";import{t as a}from"./cssVar.stylex-CGbpAC1Y.js";import{t as o}from"./index.js";import{n as s}from"./useSandboxFrame-CJmSnwgG.js";var c=[`linear`,`in`,`out`,`in-out`],l=[`cut`,`dissolve`,`black`],u=.2,d=.4,f=e=>Math.round(e*1e3)/1e3,p={linear:e=>e,in:e=>e**3,out:e=>1-(1-e)**3,"in-out":e=>e<.5?4*e**3:1-(-2*e+2)**3/2};function m(e,t,n,r){let i=e.filter(e=>e.prop===t).sort((e,t)=>e.at-t.at),a=i[0];if(!a)return r;if(n<=a.at)return a.value;for(let e=1;e<i.length;e+=1){let t=i[e];if(n>=t.at)continue;let r=i[e-1],a=t.at-r.at,o=a>0?(p[t.ease]??p.linear)((n-r.at)/a):1;return r.value+(t.value-r.value)*o}return i.at(-1).value}var h=(e,t)=>Math.min(e.dur,t.dur)/2;function g(e,t,n){let r=e.shots[n],i=e.shots[n-1],a=t.shots[n];if(!r||!i||!a||r.transition===`cut`||!l.includes(r.transition))return null;let o=Math.min(r.transitionDur,h(i,r));return o>0?{kind:r.transition,start:f(a.start-o/2),end:f(a.start+o/2)}:null}function _(e,t){return e.shots.flatMap((e,n)=>e.sfx.map(r=>({id:r.id,shot:e.id,src:r.src,start:f((t.shots[n]?.start??0)+r.at),gain:r.gain,fadeIn:r.fadeIn,fadeOut:r.fadeOut})))}function v(e){return e.music.map(e=>{let t=e.from??0;return{id:e.id,src:e.src,start:e.at,from:t,...e.to===void 0?{}:{end:f(e.at+e.to-t)},gain:e.gain,duck:e.duck,fadeIn:e.fadeIn,fadeOut:e.fadeOut,keys:e.keys}})}function y(e,t,n){if(n===0)return 0;let r=0;for(let n of e){let e=0;t>=n.start&&t<=n.end?e=1:t<n.start&&t>n.start-u?e=1-(n.start-t)/u:t>n.end&&t<n.end+d&&(e=1-(t-n.end)/d),r=Math.max(r,e)}return r===0?0:n*r}var b=e=>10**(e/20);function x(e,t,n){let r=new Map(e.shots.flatMap(e=>e.lines.map(e=>[e.id,e])));return{voice:t.lines.flatMap(e=>{let t=n[e.id];return t?[{kind:`voice`,key:`voice:${e.id}`,file:t.file,start:e.start,end:e.start+t.duration,from:0,gain:r.get(e.id)?.gain??0,fadeIn:0,fadeOut:0,keys:[]}]:[]}),music:v(e).map(e=>({kind:`music`,key:`music:${e.id}`,file:e.src,start:e.start,end:e.end??t.total,from:e.from,gain:e.gain,duck:e.duck,fadeIn:e.fadeIn,fadeOut:e.fadeOut,keys:e.keys})),sfx:_(e,t).map(e=>({kind:`sfx`,key:`sfx:${e.id}`,file:e.src,start:e.start,end:t.total,from:0,gain:e.gain,fadeIn:e.fadeIn,fadeOut:e.fadeOut,keys:[]})),takes:e.shots.flatMap((e,n)=>e.take&&e.gain!==void 0?[{kind:`take`,key:`take:${e.id}`,file:e.take,start:t.shots[n]?.start??0,end:t.shots[n]?.end??0,from:e.takeIn??0,speed:e.speed,gain:e.gain,fadeIn:0,fadeOut:0,keys:e.keys.filter(e=>e.prop===`gain`)}]:[]),mute:e.mute,total:t.total}}function S(e,t){let n=1;return e.fadeIn>0&&t<e.start+e.fadeIn&&(n=Math.min(n,(t-e.start)/e.fadeIn)),e.fadeOut>0&&t>e.end-e.fadeOut&&(n=Math.min(n,(e.end-t)/e.fadeOut)),Math.max(0,n)}function C(e,t,n){if(n<e.start||n>=e.end||e.kind!==`take`&&t.mute.includes(e.kind))return 0;let r=n-e.start,i=m(e.keys,`gain`,r,e.gain);return e.kind===`music`&&e.duck&&(i+=y(t.voice,n,e.duck)),b(i)*S(e,n)}var w=e=>{let t=Math.max(0,Math.floor(e+1e-6));return`${Math.floor(t/60)}:${String(t%60).padStart(2,`0`)}`},T=e=>{let t=Math.max(0,Math.round(e*30)),n=e=>String(e).padStart(2,`0`),r=Math.floor(t/30);return`${n(Math.floor(r/3600))}:${n(Math.floor(r/60)%60)}:${n(r%60)}:${n(t%30)}`},E=e=>{let t=Math.max(0,Math.round(e*10)),n=Math.floor(t/10);return`${Math.floor(n/60)}:${String(n%60).padStart(2,`0`)}.${t%10}`},D=e=>`${Number.isInteger(e)?e:Math.round(e*10)/10}s`;function O(e,t){let{shots:n}=e;if(n.length===0)return-1;for(let e=n.length-1;e>=0;--e)if(t>=n[e].start-1e-6)return e;return 0}var k=(e,t)=>e.find(e=>t>=e.start&&t<e.end)??null,A=(e,t)=>e.take&&!(e.src&&t.has(e.id))?`take`:e.src?`frame`:`card`,j=e=>Math.round(e*1e6)/1e6;function M(e,t,n,r,i){let a=e.shots[n],o=r-(t.shots[n]?.start??0),s=Math.min(Math.max(o,0),a.dur),c=a.speed>0?a.speed:1;return{shot:a.id,index:n,local:j(s),frozen:o<1e-9||o>a.dur-1e-9,pageTime:j(a.srcIn+s*c),takeTime:j(Math.max(o*c,-(a.takeIn??0))),opacity:j(i*m(a.keys,`opacity`,s,1)),scale:m(a.keys,`scale`,s,1),x:m(a.keys,`x`,s,0),y:m(a.keys,`y`,s,0)}}function N(e,t,n){let r=O(t,n);if(r<0)return[];for(let i of[r,r+1]){let r=g(e,t,i);if(!r||n<r.start||n>=r.end)continue;let a=(n-r.start)/(r.end-r.start);return(r.kind===`dissolve`?[M(e,t,i-1,n,1),M(e,t,i,n,a)]:a<.5?[M(e,t,i-1,n,1-a*2)]:[M(e,t,i,n,(a-.5)*2)]).filter(e=>e.opacity>1e-6)}let i=M(e,t,r,n,1);return i.opacity>1e-6?[i]:[]}var P=e(r(),1),F=i();a.colorBorderSecondary;var I={root:{kVAEAm:`xixxii4`,kpwlN0:`x10a8y8t`,k1xSpc:`x78zum5`,kXwgrk:`xdt5ytf`,kWkggS:`x1rozbrz`,kMwMTN:`xo2rkog`,kMv6JI:`xqfszdh`,kGuDYH:`x4z9k3i`,$$css:!0},fill:{kVAEAm:`x1n2onr6`,kpwlN0:`x1anvkwx`,kUk6DE:`x98rzlu`,kAzted:`x2lwn1j`,kzqmXN:`xh8yej3`,kZKoxP:`x5yr21d`,$$css:!0},header:{kUk6DE:`x1okw0bk`,k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kOIVth:`x167g77z`,kZKoxP:`xn3w4p2`,kg3NbH:`x1hr3lfm`,kt9PQ7:`xso031l`,kfdmCh:`x1q0q8m5`,kL6WhQ:`xtrfj0v`,$$css:!0},title:{k7Eaqz:`xeuugli`,kVQacm:`xb3r6kr`,kg5iWk:`xlyipyv`,khDVqt:`xuxw1ft`,k63SB2:`xk50ysn`,$$css:!0},total:{kUk6DE:`x1okw0bk`,kMwMTN:`xddlp02`,kcqcaj:`xss6m8b`,khDVqt:`xuxw1ft`,k1xSpc:`xt0psk2 xl0nte0`,$$css:!0},over:{kMwMTN:`x1t7tgwp`,$$css:!0},spacer:{kUk6DE:`x98rzlu`,$$css:!0},segment:{kUk6DE:`x1okw0bk`,k1xSpc:`x3nfvp2`,kOIVth:`x195vfkc`,kmVPX3:`x1i3ajwb`,kaIpWk:`xu4hgxq`,kWkggS:`xahzvm9`,$$css:!0},segmentItem:{k1xSpc:`x3nfvp2`,kGNEyG:`x6s0dn4`,kOIVth:`x1nejdyq`,kZKoxP:`xxk0z11`,kg3NbH:`x1q4txso`,kMzoRj:`xc342km`,kaIpWk:`x1sxf85j`,kWkggS:`xjbqb8w`,kMwMTN:`x1bo0w0s`,kGuDYH:`xfifm61`,kkrTdU:`x1ypdohk xtgyt42`,kSiTet:`x1hc1fzr x1t5pwa4`,$$css:!0},segmentOn:{kWkggS:`x1rozbrz`,kMwMTN:`xo2rkog`,kGVxlE:`xs625wh`,$$css:!0},body:{kUk6DE:`x98rzlu`,kAzted:`x2lwn1j`,k1xSpc:`x78zum5`,kXwgrk:`x1q0g3np xgzqdeg`,$$css:!0},script:{kUk6DE:`x98rzlu`,k7Eaqz:`xeuugli`,kAzted:`x2lwn1j`,kORKVm:`x1odjw0f`,kWqL5O:`xs1s249 x1w3mbok`,kSWEuD:`x32b0ac`,k26BEO:`x1vnv1x`,$$css:!0},side:{kUk6DE:`x1okw0bk`,kzqmXN:`x1dyolok x34mqrq`,k1xSpc:`x78zum5`,kXwgrk:`xdt5ytf`,kOIVth:`x1af02g3`,kmVPX3:`x1yijxmr x1ejvdr6`,kWkggS:`x184qs1t`,kt9PQ7:`x1qhh985 xwd3hym`,kfdmCh:`x1q0q8m5`,kL6WhQ:`xtrfj0v`,$$css:!0},message:{kmVPX3:`xggk2y7`,kMwMTN:`xddlp02`,$$css:!0}},L={row:{k1xSpc:`x78zum5`,kOIVth:`x1af02g3`,kmVPX3:`xiu437s`,kt9PQ7:`xso031l`,kfdmCh:`x1q0q8m5`,kL6WhQ:`xtrfj0v`,kkrTdU:`x1ypdohk`,kGVxlE:`xsyaaqz`,kWkggS:`xjbqb8w x9jwiqo`,kI3sdo:`x1a2a7pz`,$$css:!0},current:{kWkggS:`x1mzvsll`,kGVxlE:`x1o5pu4p`,$$css:!0},number:{kUk6DE:`x1okw0bk`,kzqmXN:`x23j0i4`,kLKAdn:`x4p5aij`,kMv6JI:`x1b02387`,k63SB2:`x1s688f`,kMwMTN:`xddlp02`,kcqcaj:`xss6m8b`,$$css:!0},numberOn:{kMwMTN:`xo2rkog`,$$css:!0},thumb:{kUk6DE:`x1okw0bk`,kzqmXN:`x1fznrkb`,$$css:!0},stacked:{kVAEAm:`x1n2onr6`,kXwgrk:`xdt5ytf`,kOIVth:`x167g77z`,kg3NbH:`x1hr3lfm`,$$css:!0},thumbStacked:{kzqmXN:`xh8yej3`,$$css:!0},flat:{kGVxlE:`x1gnnqk1`,$$css:!0},tailStacked:{kVAEAm:`x10l6tqk`,k87sOh:`x1eu8d0j`,kCIrl2:`x131sewu`,k1xSpc:`x78zum5`,kOIVth:`x195vfkc`,$$css:!0},chips:{k1xSpc:`x78zum5`,kOIVth:`x1jnr06f`,keoZOQ:`x1k70j0n`,$$css:!0},chip:{k1xSpc:`x3nfvp2`,kGNEyG:`x6s0dn4`,kZKoxP:`xmix8c7`,kg3NbH:`x1xijbu4`,kaIpWk:`x12oqio5`,kWkggS:`xahzvm9`,kMwMTN:`x1bo0w0s`,kMv6JI:`x1b02387`,kGuDYH:`x1j6dyjg`,kcqcaj:`xss6m8b`,$$css:!0},chipButton:{kOIVth:`x1ed6fcf`,kMzoRj:`xc342km`,kkrTdU:`x1ypdohk`,kMwMTN:`x1bo0w0s xytdrwj`,$$css:!0},main:{kUk6DE:`x98rzlu`,k7Eaqz:`xeuugli`,k1xSpc:`x78zum5`,kXwgrk:`xdt5ytf`,kOIVth:`x1j9xkj6`,$$css:!0},title:{k63SB2:`x1s688f`,$$css:!0},actions:{kogj98:`x1ghz6dp`,kZCmMZ:`xf7dkkf`,kMwMTN:`x1bo0w0s`,$$css:!0},line:{k1xSpc:`x78zum5`,kGNEyG:`x1cy8zhl`,kOIVth:`x167g77z`,kMwMTN:`xo2rkog`,$$css:!0},lineText:{kKX8nH:`x1k4tb9n`,$$css:!0},pending:{kMwMTN:`xddlp02`,$$css:!0},failed:{kMwMTN:`x12vcgws`,$$css:!0},linePlay:{kUk6DE:`x1okw0bk`,k1xSpc:`xrvj5dj`,kgQiWS:`x1ku5rj1`,kzqmXN:`x1xp8n7a`,kZKoxP:`xmix8c7`,keoZOQ:`xvijh9v`,kmVPX3:`x1717udv`,kMzoRj:`xmkeg23`,ksu8eU:`x1y0btm7`,kVAM5u:`x12xov25`,kaIpWk:`x16rqkct`,kWkggS:`x1rozbrz`,kMwMTN:`x1bo0w0s`,kkrTdU:`x1ypdohk`,$$css:!0}},R={stage:{k9g6sI:`x12h1iku`,kVAEAm:`x1n2onr6`,kzqmXN:`xh8yej3`,kskxy:`x1mjq1iu`,kUOVxO:`xvueqy4`,kVQacm:`xb3r6kr`,kaIpWk:`xu4hgxq`,kWkggS:`x15cjo92`,$$css:!0},card:{kVAEAm:`x10l6tqk`,kpwlN0:`x10a8y8t`,k1xSpc:`x78zum5`,kXwgrk:`xdt5ytf`,kjj79g:`xl56j7k`,kOIVth:`x1xmt9ub`,kmVPX3:`xzjkb4c`,kWkggS:`xi9d82p`,kMwMTN:`x19ti5lm`,$$css:!0},cardTitle:{kGuDYH:`xnq45mz`,k63SB2:`x1s688f`,kLWn49:`x1u7k74`,$$css:!0},cardActions:{kogj98:`x1ghz6dp`,kZCmMZ:`xyhpvq0`,kGuDYH:`x17h412`,kMwMTN:`x1nkb0rk`,$$css:!0},caption:{kVAEAm:`x10l6tqk`,kbCHJM:`x1nrll8i`,krVfgx:`x1t8ds6e`,k3aq6I:`xuuh30`,ks0D6T:`x616ay3`,kmVPX3:`x132quj`,kaIpWk:`x1kogg8i`,kWkggS:`x1m9af4x`,kMwMTN:`xfungia`,kGuDYH:`xkbov0j`,k63SB2:`xk50ysn`,k9WMMc:`x2b8uid`,$$css:!0},transport:{k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kOIVth:`x883omv`,$$css:!0},play:{kUk6DE:`x1okw0bk`,k1xSpc:`xrvj5dj`,kgQiWS:`x1ku5rj1`,kzqmXN:`x1849jeq`,kZKoxP:`x1gnnpzl`,kmVPX3:`x1717udv`,kMzoRj:`xc342km`,kaIpWk:`x16rqkct`,kWkggS:`x19ckca5`,kMwMTN:`xs0jrwl`,kkrTdU:`x1ypdohk`,$$css:!0},clock:{kMv6JI:`x1b02387`,kGuDYH:`xfifm61`,kcqcaj:`xss6m8b`,kMwMTN:`x1bo0w0s`,$$css:!0},tool:{kUk6DE:`x1okw0bk`,k1xSpc:`xrvj5dj`,kgQiWS:`x1ku5rj1`,kzqmXN:`xgd8bvy`,kZKoxP:`x1fgtraw`,kmVPX3:`x1717udv`,kMzoRj:`xc342km`,kaIpWk:`x1kogg8i`,kWkggS:`xjbqb8w xj0l527`,kMwMTN:`x1bo0w0s`,kkrTdU:`x1ypdohk`,$$css:!0},toolOn:{kMwMTN:`xo2rkog`,$$css:!0},strip:{kVAEAm:`x1n2onr6`,k1xSpc:`x78zum5`,kOIVth:`x195vfkc`,kZKoxP:`x17rw0jw`,kkrTdU:`x1ypdohk`,$$css:!0},segment:{k7Eaqz:`xeuugli`,kaIpWk:`x18zih8k`,kWkggS:`x15dg6x3`,kMwMTN:`xddlp02`,kMv6JI:`x1b02387`,kGuDYH:`x1k6wstc`,kLWn49:`x19v9tvf`,k9WMMc:`x2b8uid`,kVQacm:`xb3r6kr`,$$css:!0},segmentOn:{kWkggS:`x19ckca5`,kMwMTN:`xs0jrwl`,$$css:!0},playhead:{kVAEAm:`x10l6tqk`,k87sOh:`x1fo6t33`,krVfgx:`x1o583il`,kzqmXN:`xfo62xy`,koQZXg:`xh9i6ac`,kaIpWk:`x1nj7uno`,kWkggS:`xudn41b`,kfzvcC:`x47corl`,$$css:!0},stats:{k1xSpc:`x78zum5`,kOIVth:`xou54vl`,kMwMTN:`xddlp02`,kGuDYH:`xfifm61`,$$css:!0},strong:{kMwMTN:`xo2rkog`,kcqcaj:`xss6m8b`,$$css:!0}},z={"16:9":[1920,1080],"9:16":[1080,1920],"1:1":[1080,1080]},B=e=>z[e]??z[`16:9`],V=8e3,H=e=>Promise.race([e,new Promise(e=>setTimeout(e,V))]);function U(e,t){let n=0,r=!1,i=()=>{},a=new Promise(e=>i=e),o=new Map,s=t=>e.contentWindow?.postMessage({type:`ryugi-storyboard`,...t},`*`),c=n=>{n.source===e.contentWindow&&n.data&&(n.data.type===`ryugi-storyboard:ready`?(r=!0,i(),t()):n.data.type===`ryugi-storyboard:seeked`&&typeof n.data.seq==`number`&&(o.get(n.data.seq)?.(),o.delete(n.data.seq)))};return window.addEventListener(`message`,c),{isReady:()=>r,reset(){r&&(r=!1,a=new Promise(e=>i=e)),s({op:`hello`})},play:(e,t=1)=>s({op:`play`,t:e,rate:t}),async seek(e){await H(a),n+=1;let t=n;await H(new Promise(n=>{o.set(t,n),s({op:`seek`,t:e,seq:t})})),o.delete(t)},dispose(){window.removeEventListener(`message`,c);for(let e of o.values())e();o.clear(),i()}}}function W(e,t){return!e||(e.pause(),e.readyState>=2&&!e.seeking&&Math.abs(e.currentTime-t)<.001)?Promise.resolve():H(new Promise(n=>{let r=()=>{e.removeEventListener(`seeked`,r),e.removeEventListener(`error`,r),n()};e.addEventListener(`seeked`,r),e.addEventListener(`error`,r),e.currentTime=t}))}function G({active:e,driven:t,frozen:n=!1,onError:r,onLink:i,onLoaded:a,playing:o,rate:c=1,scale:l,seeks:u,size:d,src:f,time:p}){let{frameRef:m,src:h,onLoad:g}=s(f,{onError:r,onLoaded:a}),_=(0,P.useRef)(null),v=(0,P.useRef)({active:e,driven:t,frozen:n,playing:o,rate:c,time:p});v.current={active:e,driven:t,frozen:n,playing:o,rate:c,time:p};let y=(0,P.useCallback)(()=>{let e=_.current,{active:t,driven:n,frozen:r,playing:i,rate:a,time:o}=v.current;!n&&e?.isReady()&&(t&&i&&!r?e.play(o,a):e.seek(o))},[]),b=(0,P.useRef)(i);b.current=i,(0,P.useEffect)(()=>{let e=m.current;if(!e)return;let t=U(e,y);return _.current=t,b.current?.(t),()=>{t.dispose(),_.current=null,b.current?.(null)}},[m,y]),(0,P.useEffect)(y,[e,n,o,c,u,y]);let x={width:d[0],height:d[1],pointerEvents:`none`};return(0,F.jsx)(`iframe`,{"data-active":e,ref:m,sandbox:`allow-scripts`,src:h??void 0,style:{...x,transform:`scale(${l})`},tabIndex:-1,title:f,onLoad:()=>{_.current?.reset(),g()},...{0:{className:`x10l6tqk xu96u03 x13vifvy xc342km x1hj3fc7 x83z2og`},1:{className:`x10l6tqk xu96u03 x13vifvy xc342km x1hj3fc7 x83z2og xlshs6z`}}[!e|0]})}var K=.3;function q({active:e,audible:t,driven:r,marker:i=`take`,onLength:a,onLink:o,onTime:s,playing:c,rate:l=1,seeks:u,src:d,start:f,time:p,volume:m=0}){let{t:h}=n(),g=(0,P.useRef)(null),[_,v]=(0,P.useState)(null),y=(0,P.useRef)(p);y.current=p;let b=(0,P.useRef)(o);b.current=o;let x=(0,P.useRef)(s);x.current=s;let S=s!==void 0;return(0,P.useEffect)(()=>(b.current?.({seek:e=>W(g.current,f+e)}),()=>b.current?.(null)),[f]),(0,P.useEffect)(()=>{let t=g.current;t&&!r&&(t.playbackRate=l,t.currentTime=f+(e?y.current:0),e&&c?t.play().catch(()=>{}):t.pause())},[e,r,c,l,u,f]),(0,P.useEffect)(()=>{g.current&&t===void 0&&(g.current.volume=m)},[t,m]),(0,P.useEffect)(()=>{let t=g.current;t&&!r&&!S&&e&&c&&Math.abs(t.currentTime-(f+p))>K&&(t.currentTime=f+p)},[e,r,S,c,f,p]),(0,P.useEffect)(()=>{let t=g.current;if(!t||r||!S||!e||!c)return;let n=()=>{t.seeking||x.current?.(Math.max(0,t.currentTime-f))},i=0,a=()=>{n(),i=t.requestVideoFrameCallback(a)},o=typeof t.requestVideoFrameCallback==`function`;return o&&(i=t.requestVideoFrameCallback(a)),t.addEventListener(`timeupdate`,n),()=>{o&&t.cancelVideoFrameCallback(i),t.removeEventListener(`timeupdate`,n)}},[e,r,S,c,f]),_===d?e?(0,F.jsx)(`div`,{"data-take-unavailable":``,className:`x10l6tqk x10a8y8t x78zum5 x6s0dn4 xl56j7k xggk2y7 x1bo0w0s xif65rj x2b8uid`,children:h(`storyboard.takeUnavailable`)}):null:(0,F.jsx)(`video`,{playsInline:!0,"data-active":e,"data-compare-video":i===`compare`?``:void 0,"data-crop-source":i!==`compare`&&e,"data-cut":i===`cut`?``:void 0,"data-take":i===`take`?``:void 0,muted:t===void 0?m<=0:!t,preload:`auto`,ref:g,src:d,onError:()=>v(d),onLoadedMetadata:e=>{let t=e.currentTarget.duration;Number.isFinite(t)&&t>0&&a?.(t)},...{0:{className:`x10l6tqk x10a8y8t xh8yej3 x5yr21d xl1xv1r`},1:{className:`x10l6tqk x10a8y8t xh8yej3 x5yr21d xl1xv1r xlshs6z`}}[!e|0]})}function J({shot:e}){return(0,F.jsxs)(`div`,{"data-title-card":``,...t(R.card),children:[(0,F.jsx)(`div`,{...t(R.cardTitle),children:e.title}),e.actions.length?(0,F.jsx)(`ul`,{...t(R.cardActions),children:e.actions.map((e,t)=>(0,F.jsx)(`li`,{children:e},t))}):null]})}var Y=(e,t)=>e?{position:`absolute`,inset:0,opacity:e.opacity,transform:e.x||e.y||e.scale!==1?`translate(${e.x*t}px, ${e.y*t}px) scale(${e.scale})`:void 0}:{position:`absolute`,inset:0,visibility:`hidden`};function X({base:e,driven:t,motion:n,muted:r=!0,onLink:i,playing:a,report:o,scale:s,seeks:c,storyboard:l,time:u,timeline:d,version:f}){let p=B(l.aspect),h=N(l,d,u),g=new Map(h.map(e=>[e.index,e])),_=O(d,u),v=[...[_-1,_,_+1].filter(e=>e>=0&&e<l.shots.length&&!g.has(e)),...h.map(e=>e.index)];return(0,F.jsx)(F.Fragment,{children:v.map(u=>{let d=l.shots[u],h=g.get(u),_=A(d,n);return _===`card`&&!h?null:(0,F.jsxs)(`div`,{"data-layer":h?d.id:void 0,"data-preload":h?void 0:d.id,style:Y(h,s),children:[_===`card`?(0,F.jsx)(J,{shot:d}):null,_===`take`?(0,F.jsx)(q,{active:!!h,driven:t,playing:a,rate:d.speed,seeks:c,src:`${e}${d.take}`,start:d.takeIn??0,time:h?.takeTime??0,volume:r||d.gain===void 0||!h?0:Math.min(1,b(m(d.keys,`gain`,h.local,d.gain))*h.opacity),onLink:e=>i?.(d.id,e)}):null,_===`frame`?(0,F.jsx)(G,{active:!!h,driven:t,frozen:h?.frozen??!0,playing:a,rate:d.speed,scale:s,seeks:c,size:p,src:`${e}${d.src}?v=${f}`,time:h?.pageTime??d.srcIn,onError:e=>o({type:`runtime-error`,file:d.src,message:e}),onLink:e=>i?.(d.id,e),onLoaded:()=>o({type:`loaded`,file:d.src})}):null]},`${_}:${d.id}`)})})}function Z(e,{load:t,revision:n}){let[r,i]=(0,P.useState)(null);return(0,P.useEffect)(()=>{let n=!1;return t().then(({found:t,data:r})=>{if(n)return;let a=r;i({title:a.title??e,warnings:a.warnings??[],version:a.version??0,hash:a.hash??``,contentBase:a.contentBase??``,storyboard:a.storyboard??null,timeline:a.timeline??null,audio:a.audio??{},cuts:a.cuts??[],overlays:a.overlays??{},sounds:a.sounds??[],export:a.export??null,shotHashes:a.shotHashes??{},voicePending:a.voicePending??[],voiceFailures:a.voiceFailures??{},found:t})},()=>{}),()=>{n=!0}},[e,t,n]),o(r!==null),r}export{_ as S,C as _,B as a,m as b,I as c,w as d,D as f,T as g,O as h,q as i,A as l,E as m,X as n,R as o,k as p,J as r,L as s,Z as t,N as u,x as v,v as x,c as y};
|