@1agh/maude 2.4.0 → 2.4.2
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var eRt=Object.create;var{getPrototypeOf:tRt,defineProperty:nP,getOwnPropertyNames:nRt}=Object;var pye=Object.prototype.hasOwnProperty;function oRt(e){return this[e]}var rRt,aRt,sRt=(e,t,n)=>{var o=e!=null&&typeof e==="object";if(o){var r=t?rRt??=new WeakMap:aRt??=new WeakMap,a=r.get(e);if(a)return a}n=e!=null?eRt(tRt(e)):{};let s=t||!e||!e.__esModule||!pye.call(e,"default")?nP(n,"default",{value:e,enumerable:!0}):n;if(e&&typeof e==="object"||typeof e==="function"){for(let l of nRt(e))if(!pye.call(s,l))nP(s,l,{get:oRt.bind(e,l),enumerable:!0})}if(o)r.set(e,s);return s};var iRt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var lRt=(e)=>e;function cRt(e,t){this[e]=lRt.bind(null,t)}var GG=(e,t)=>{for(var n in t)nP(e,n,{get:t[n],enumerable:!0,configurable:!0,set:cRt.bind(t,n)})};var Ke=(e,t,n)=>()=>{if(e)try{t=e(e=0)}catch(o){n=[o]}if(n)throw n[0];return t};var fye=(e,t,n)=>{for(var o in t)nP(e,o,{get:t[o],set:n[o],enumerable:!0,configurable:!0})},zS=((e)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,n)=>(typeof require<"u"?require:t)[n]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var _a={};fye(_a,{Activity:()=>Tye,Children:()=>nT,Component:()=>rP,Fragment:()=>_s,Profiler:()=>Iye,PureComponent:()=>Eye,StrictMode:()=>$ye,Suspense:()=>Rye,__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:()=>jS,__COMPILER_RUNTIME:()=>Mye,cache:()=>Oye,cacheSignal:()=>Lye,cloneElement:()=>jc,createContext:()=>bl,createElement:()=>ar,createRef:()=>Pye,forwardRef:()=>jn,isValidElement:()=>Js,lazy:()=>Dye,memo:()=>Vr,startTransition:()=>zye,unstable_useCacheRefresh:()=>Fye,use:()=>eq,useActionState:()=>Bye,useCallback:()=>ee,useContext:()=>Ir,useDebugValue:()=>tq,useDeferredValue:()=>jye,useEffect:()=>M,useEffectEvent:()=>Uye,useId:()=>ra,useImperativeHandle:()=>Hye,useInsertionEffect:()=>oT,useLayoutEffect:()=>eo,useMemo:()=>fe,useOptimistic:()=>Wye,useReducer:()=>US,useRef:()=>U,useState:()=>T,useSyncExternalStore:()=>Ve,useTransition:()=>Vye,version:()=>aP},{Activity:(AOn)=>Tye=AOn,Children:(AOn)=>nT=AOn,Component:(AOn)=>rP=AOn,Fragment:(AOn)=>_s=AOn,Profiler:(AOn)=>Iye=AOn,PureComponent:(AOn)=>Eye=AOn,StrictMode:(AOn)=>$ye=AOn,Suspense:(AOn)=>Rye=AOn,__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:(AOn)=>jS=AOn,__COMPILER_RUNTIME:(AOn)=>Mye=AOn,cache:(AOn)=>Oye=AOn,cacheSignal:(AOn)=>Lye=AOn,cloneElement:(AOn)=>jc=AOn,createContext:(AOn)=>bl=AOn,createElement:(AOn)=>ar=AOn,createRef:(AOn)=>Pye=AOn,forwardRef:(AOn)=>jn=AOn,isValidElement:(AOn)=>Js=AOn,lazy:(AOn)=>Dye=AOn,memo:(AOn)=>Vr=AOn,startTransition:(AOn)=>zye=AOn,unstable_useCacheRefresh:(AOn)=>Fye=AOn,use:(AOn)=>eq=AOn,useActionState:(AOn)=>Bye=AOn,useCallback:(AOn)=>ee=AOn,useContext:(AOn)=>Ir=AOn,useDebugValue:(AOn)=>tq=AOn,useDeferredValue:(AOn)=>jye=AOn,useEffect:(AOn)=>M=AOn,useEffectEvent:(AOn)=>Uye=AOn,useId:(AOn)=>ra=AOn,useImperativeHandle:(AOn)=>Hye=AOn,useInsertionEffect:(AOn)=>oT=AOn,useLayoutEffect:(AOn)=>eo=AOn,useMemo:(AOn)=>fe=AOn,useOptimistic:(AOn)=>Wye=AOn,useReducer:(AOn)=>US=AOn,useRef:(AOn)=>U=AOn,useState:(AOn)=>T=AOn,useSyncExternalStore:(AOn)=>Ve=AOn,useTransition:(AOn)=>Vye=AOn,version:(AOn)=>aP=AOn});function NRt(e){if(e===null||typeof e!=="object")return null;return e=yye&&e[yye]||e["@@iterator"],typeof e==="function"?e:null}function BS(e,t,n){this.props=e,this.context=t,this.refs=Cye,this.updater=n||Sye}function Nye(){}function XG(e,t,n){this.props=e,this.context=t,this.refs=Cye,this.updater=n||Sye}function KG(){}function JG(e,t,n){var o=n.ref;return{$$typeof:YG,type:e,key:t,ref:o!==void 0?o:null,props:n}}function ARt(e,t){return JG(e.type,t,e.props)}function QG(e){return typeof e==="object"&&e!==null&&e.$$typeof===YG}function TRt(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}function qG(e,t){return typeof e==="object"&&e!==null&&e.key!=null?TRt(""+e.key):t.toString(36)}function IRt(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status==="string"?e.then(KG,KG):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function FS(e,t,n,o,r){var a=typeof e;if(a==="undefined"||a==="boolean")e=null;var s=!1;if(e===null)s=!0;else switch(a){case"bigint":case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case YG:case gRt:s=!0;break;case kye:return s=e._init,FS(s(e._payload),t,n,o,r)}}if(s)return r=r(e),s=o===""?"."+qG(e,0):o,vye(r)?(n="",s!=null&&(n=s.replace(wye,"$&/")+"/"),FS(r,t,n,"",function(u){return u})):r!=null&&(QG(r)&&(r=ARt(r,n+(r.key==null||e&&e.key===r.key?"":(""+r.key).replace(wye,"$&/")+"/")+s)),t.push(r)),1;s=0;var l=o===""?".":o+":";if(vye(e))for(var c=0;c<e.length;c++)o=e[c],a=l+qG(o,c),s+=FS(o,t,n,a,r);else if(c=NRt(e),typeof c==="function")for(e=c.call(e),c=0;!(o=e.next()).done;)o=o.value,a=l+qG(o,c++),s+=FS(o,t,n,a,r);else if(a==="object"){if(typeof e.then==="function")return FS(IRt(e),t,n,o,r);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return s}function oP(e,t,n){if(e==null)return e;var o=[],r=0;return FS(e,o,"","",function(a){return t.call(n,a,r++)}),o}function ERt(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){if(e._status===0||e._status===-1)e._status=1,e._result=n},function(n){if(e._status===0||e._status===-1)e._status=2,e._result=n}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var YG,gRt,bRt,yRt,vRt,wRt,xRt,kRt,SRt,_Rt,kye,CRt,yye,Sye,_ye,Cye,ZG,vye,za,Aye,wye,xye,$Rt,Tye,nT,rP,_s,Iye,Eye,$ye,Rye,jS,Mye,Oye=function(e){return function(){return e.apply(null,arguments)}},Lye=function(){return null},jc=function(e,t,n){if(e===null||e===void 0)throw Error("The argument must be a React element, but you passed "+e+".");var o=_ye({},e.props),r=e.key;if(t!=null)for(a in t.key!==void 0&&(r=""+t.key),t)!Aye.call(t,a)||a==="key"||a==="__self"||a==="__source"||a==="ref"&&t.ref===void 0||(o[a]=t[a]);var a=arguments.length-2;if(a===1)o.children=n;else if(1<a){for(var s=Array(a),l=0;l<a;l++)s[l]=arguments[l+2];o.children=s}return JG(e.type,r,o)},bl=function(e){return e={$$typeof:xRt,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:wRt,_context:e},e},ar=function(e,t,n){var o,r={},a=null;if(t!=null)for(o in t.key!==void 0&&(a=""+t.key),t)Aye.call(t,o)&&o!=="key"&&o!=="__self"&&o!=="__source"&&(r[o]=t[o]);var s=arguments.length-2;if(s===1)r.children=n;else if(1<s){for(var l=Array(s),c=0;c<s;c++)l[c]=arguments[c+2];r.children=l}if(e&&e.defaultProps)for(o in s=e.defaultProps,s)r[o]===void 0&&(r[o]=s[o]);return JG(e,a,r)},Pye=function(){return{current:null}},jn=function(e){return{$$typeof:kRt,render:e}},Js,Dye=function(e){return{$$typeof:kye,_payload:{_status:-1,_result:e},_init:ERt}},Vr=function(e,t){return{$$typeof:_Rt,type:e,compare:t===void 0?null:t}},zye=function(e){var t=za.T,n={};za.T=n;try{var o=e(),r=za.S;r!==null&&r(n,o),typeof o==="object"&&o!==null&&typeof o.then==="function"&&o.then(KG,xye)}catch(a){xye(a)}finally{t!==null&&n.types!==null&&(t.types=n.types),za.T=t}},Fye=function(){return za.H.useCacheRefresh()},eq=function(e){return za.H.use(e)},Bye=function(e,t,n){return za.H.useActionState(e,t,n)},ee=function(e,t){return za.H.useCallback(e,t)},Ir=function(e){return za.H.useContext(e)},tq=function(){},jye=function(e,t){return za.H.useDeferredValue(e,t)},M=function(e,t){return za.H.useEffect(e,t)},Uye=function(e){return za.H.useEffectEvent(e)},ra=function(){return za.H.useId()},Hye=function(e,t,n){return za.H.useImperativeHandle(e,t,n)},oT=function(e,t){return za.H.useInsertionEffect(e,t)},eo=function(e,t){return za.H.useLayoutEffect(e,t)},fe=function(e,t){return za.H.useMemo(e,t)},Wye=function(e,t){return za.H.useOptimistic(e,t)},US=function(e,t,n){return za.H.useReducer(e,t,n)},U=function(e){return za.H.useRef(e)},T=function(e){return za.H.useState(e)},Ve=function(e,t,n){return za.H.useSyncExternalStore(e,t,n)},Vye=function(){return za.H.useTransition()},aP="19.2.7";var re=Ke(()=>{YG=Symbol.for("react.transitional.element"),gRt=Symbol.for("react.portal"),bRt=Symbol.for("react.fragment"),yRt=Symbol.for("react.strict_mode"),vRt=Symbol.for("react.profiler"),wRt=Symbol.for("react.consumer"),xRt=Symbol.for("react.context"),kRt=Symbol.for("react.forward_ref"),SRt=Symbol.for("react.suspense"),_Rt=Symbol.for("react.memo"),kye=Symbol.for("react.lazy"),CRt=Symbol.for("react.activity"),yye=Symbol.iterator;Sye={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_ye=Object.assign,Cye={};BS.prototype.isReactComponent={};BS.prototype.setState=function(e,t){if(typeof e!=="object"&&typeof e!=="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};BS.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};Nye.prototype=BS.prototype;ZG=XG.prototype=new Nye;ZG.constructor=XG;_ye(ZG,BS.prototype);ZG.isPureReactComponent=!0;vye=Array.isArray;za={H:null,A:null,T:null,S:null},Aye=Object.prototype.hasOwnProperty;wye=/\/+/g;xye=typeof reportError==="function"?reportError:function(e){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e==="object"&&e!==null&&typeof e.message==="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",e);return}console.error(e)},$Rt={map:oP,forEach:function(e,t,n){oP(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return oP(e,function(){t++}),t},toArray:function(e){return oP(e,function(t){return t})||[]},only:function(e){if(!QG(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Tye=CRt,nT=$Rt,rP=BS,_s=bRt,Iye=vRt,Eye=XG,$ye=yRt,Rye=SRt,jS=za,Mye={__proto__:null,c:function(e){return za.H.useMemoCache(e)}},Js=QG});function Gye(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function ty(){}function MRt(e,t,n){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:RRt,key:o==null?null:""+o,children:e,containerInfo:t,implementation:n}}var rT,RRt,nq,oq,fm=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(Gye(299));return MRt(e,t,null,n)},rq=function(e){var t=nq.T,n=rT.p;try{if(nq.T=null,rT.p=2,e)return e()}finally{nq.T=t,rT.p=n,rT.d.f()}};var qye=Ke(()=>{re();rT={d:{f:ty,r:function(){throw Error(Gye(522))},D:ty,C:ty,L:ty,m:ty,X:ty,S:ty,M:ty},p:0,findDOMNode:null},RRt=Symbol.for("react.portal");nq=jS;oq=rT});function Kye(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=="function")return;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Kye)}catch(e){console.error(e)}}var mm=Ke(()=>{qye();Kye()});function dg(e,t){let n=String(e??"").replace(/[\p{Cc}\p{Cf}]/gu,"").replace(/\s+/g," ").trim();if(!n)return t;return n.length>60?`${n.slice(0,60)}…`:n}function Ux(e,t){let n=String(e??"").replace(/[\p{Cc}\p{Cf}]/gu,"").replace(/\s+/g," ").trim();if(!n)return t;return n.length>160?`${n.slice(0,160)}…`:n}function K9(e){return(e??[]).slice(0,3).map((t)=>dg(t,"(unnamed)"))}function NLt(e){if(!e)return null;let t=(n)=>typeof n==="number"&&Number.isInteger(n)&&n>=0;if(!t(e.synced)||!t(e.pending)||!t(e.rejected))return null;return{synced:e.synced,pending:e.pending,rejected:e.rejected}}function ALt(e){let t={unreadable:!1,sourceSlugs:[],failedFiles:0,tooLarge:0,blockedOther:0,held:0,failedMedia:0,moving:null,paused:!1},{conflicts:n,files:o,assets:r}=e;if(n!==void 0){if(!Array.isArray(n))t.unreadable=!0;else for(let a of n)if(Ty(a)&&a.kind==="body-rejected")t.sourceSlugs.push(typeof a.slug==="string"?a.slug:"(unnamed)")}if(o!==void 0)if(!Ty(o))t.unreadable=!0;else{for(let l of["synced","pulled","conflicts","pushed","failed"])if(o[l]!==void 0&&!xm(o[l]))t.unreadable=!0;if(xm(o.failed))t.failedFiles=o.failed;if(Array.isArray(o.held))for(let l of o.held){if(Ty(l)&&(l.kind==="hub-older"||l.kind==="hub-refused"))continue;t.held+=Ty(l)&&xm(l.count)?l.count:1}let a=0;if(Ty(o.rateLimited)){if(t.paused=!0,xm(o.rateLimited.waiting))a=o.rateLimited.waiting;if(a>0)t.failedFiles=0}let s=o.progress;if(Ty(s)){if(Array.isArray(s.blocked))for(let l of s.blocked){if(!Ty(l)||!xm(l.count))continue;if(l.class==="too-large")t.tooLarge+=l.count;else t.blockedOther+=l.count}if(s.phase==="paused")t.paused=!0;if(s.phase==="scanning"||s.phase==="seeding"||s.phase==="paused")t.moving=xm(s.delivered)&&xm(s.tracked)?{delivered:Math.min(s.delivered,s.tracked),tracked:s.tracked}:{delivered:0,tracked:0}}else if(s!==void 0)t.unreadable=!0;if(a>0&&!t.moving)t.moving={delivered:0,tracked:a}}if(r!==void 0)if(!Ty(r))t.unreadable=!0;else{if(xm(r.failedCount))t.failedMedia=r.failedCount;else if(r.failedCount!==void 0)t.unreadable=!0;if(r.finished===!1&&!t.moving)t.moving={media:{done:xm(r.done)?r.done:0,total:xm(r.total)?r.total:0}}}return t}function Sl(e,t={}){if(!e||e.linked===!1)return null;let n=dg(t.project,"the workspace"),o=typeof t.now==="number"?t.now:Date.now(),r=typeof e.startedAt==="number"&&Number.isFinite(e.startedAt)&&e.startedAt>0?e.startedAt:null,a=(N=!1)=>{let C=Math.max(1,Math.round((o-(r??o))/60000));return{phase:"stalled",online:!1,label:"stalled",title:`Nothing has synced with ${n} in the ${C} minute${C===1?"":"s"} since Maude started trying.`,next:N?"Maude keeps retrying. If it persists, reconnect the workspace — the sign-in may have expired.":"Maude keeps retrying — the workspace is reachable but is not completing handshakes.",names:[]}},s=r!==null&&o-r>300000;if(e.notSyncable){let N=e.tsxCount??0;return{phase:"nothing-syncable",online:!1,label:`0 syncable${N>0?` · ${N} tsx`:""}`,title:e.reason?dg(e.reason,"No canvases in this project are syncable yet."):`Connected to ${n} — no canvases here are syncable yet.`,next:"Create a canvas — it will start syncing on its own.",names:[]}}let l=e.queuedOps??0,c=l>0?` ${l} local edit${l===1?"":"s"} are queued.`:"",u=e.state==="offline"||e.state==="offline-long",d=ALt(e),p=(N)=>{let C=[],I=0,R=(H,B)=>{if(H<=0)return;C.push(B),I+=H},O=d.sourceSlugs.length;if(R(O,`${O1(O,"source change")} ${O===1?"was":"were"} not applied`),!N)R(d.failedFiles,`${O1(d.failedFiles,"file")} could not be delivered`),R(d.tooLarge,`${O1(d.tooLarge,"file")} ${d.tooLarge===1?"is":"are"} too large to sync`),R(d.blockedOther,`${O1(d.blockedOther,"file")} ${d.blockedOther===1?"is":"are"} blocked`),R(d.held,`${O1(d.held,"change")} ${d.held===1?"is":"are"} held for your decision`),R(d.failedMedia,`${O1(d.failedMedia,"media upload")} failed`);if(I===0)return null;return{phase:"attention",online:!1,label:`${I} to review`,title:`${I===1?"A change needs":`${I} changes need`} your attention in ${n}: ${C.join("; ")}.`+(u?" The hub is also unreachable right now.":"")+c,next:"Open the Sync panel to see what is waiting and why.",names:K9(d.sourceSlugs)}},f=NLt(e.docs),h=e.docs!==void 0&&f===null;if(f&&f.rejected>0){let N=f.synced+f.pending+f.rejected;return{phase:"refused",online:!1,label:`${f.rejected} refused`,title:`${f.rejected} of ${N} canvas${N===1?"":"es"} were refused by ${n} — their edits are not syncing.`+(u?" The hub is also unreachable right now.":""),next:"Reconnect the workspace — the credential may have been rotated.",names:K9(e.rejectedSlugs)}}let g=ILt(e.accepted);if(g){let N=g.pending;return{phase:"refused",online:!1,label:"sign in again",title:`${n} no longer accepts your sign-in — `+(N>0?`${N} change${N===1?" is":"s are"} kept on this device and not shared.`:"your changes are not shared."),next:"Sign in again to share them.",names:[]}}if(d.sourceSlugs.length>0){let N=p(u);if(N)return N}let b=e.parked?.since;if(typeof b==="number"&&Number.isFinite(b)&&b>0){let N=p(!1);if(N)return N;return{phase:"parked",online:!1,label:"asleep",title:"Cloud project asleep. Wakes on your next change.",next:"Nothing to do — edit or click anywhere and it reconnects.",names:[]}}if(u)return{phase:"offline",online:!1,label:l>0?`offline · ${l} ↑`:"offline",title:`Not reachable: ${n}. Your edits are safe on this machine and queued.${c}`,next:"Nothing to do — syncing resumes by itself when the hub is back.",names:[]};if(h||d.unreadable)return{phase:"connecting",online:!1,label:"status unreadable",title:`Cannot read the sync status for ${n} — the counts on disk are malformed.`,next:"Reconnect the workspace; if it persists, restart Maude.",names:[]};if(!f){let N=e.state==="online"||e.flash==="synced";if(!N&&s)return a(!0);let C=N?p(!1):null;if(C)return C;return{phase:N?"synced":"connecting",online:N,label:N?l>0?`${l} ↑`:"synced":"connecting…",title:N?`Syncing with ${n}.${c}`:`Connecting to ${n}…`,next:N?null:"Nothing to do — this usually takes a moment.",names:[]}}let v=f.synced+f.pending+f.rejected;if(v===0){if(s)return a();return{phase:"connecting",online:!1,label:"connecting…",title:`Connecting to ${n}…`,next:"Nothing to do — this usually takes a moment.",names:[]}}let y=p(!1);if(y)return y;let w=ELt(e.aiAction);if(w?.state==="held"){let N=w.canvases;return{phase:"attention",online:!0,label:"AI edit held",title:`An unfinished AI edit to ${N} canvas${N===1?"":"es"} is kept on this device — it is not shared with ${n} yet.`,next:"Open the Sync panel to publish it as it stands or discard it.",names:[]}}if(f.pending>0){let N=f.synced>0;if(!N&&s)return a();return{phase:N?"syncing":"connecting",online:!1,label:N?`${f.synced}/${v}`:"connecting…",title:N?`Syncing with ${n} — ${f.synced} of ${v} canvas${v===1?"":"es"} so far.`:`Connecting to ${n}…`,next:"Nothing to do — this usually takes a moment.",names:[]}}if(d.moving){let N=d.moving,C="media"in N?`uploading media (${N.media.done} of ${N.media.total})`:N.tracked>0?`files ${N.delivered} of ${N.tracked} delivered`:"checking project files";return{phase:"syncing",online:!0,label:"media"in N?"media ↑":N.tracked>0?`${N.delivered}/${N.tracked} files`:"files…",title:`Syncing with ${n} — all ${v} canvas${v===1?"":"es"} in step, ${C}.`+(d.paused?" Paused while the hub asks us to wait.":"")+c,next:"Nothing to do — this continues on its own.",names:[]}}if(w?.state==="open")return{phase:"syncing",online:!0,label:"AI editing",title:`An AI edit is in progress — its changes are shared with ${n} together when it finishes.`,next:null,names:[]};let x=TLt(e.accepted);if(x){let N=x.oldestPendingAt?Math.max(0,Math.round((Date.now()-x.oldestPendingAt)/1000)):0;return{phase:"syncing",online:!0,label:`saving ${x.pending}`,title:`Saving ${x.pending} change${x.pending===1?"":"s"} to ${n}`+(N>=10?` — the oldest has waited ${N} s.`:".")+" They are kept on this device until the project confirms them.",next:N>=60?"Maude keeps trying. If this persists, check your connection.":null,names:[]}}let k=e.pulled?.count,_=typeof k==="number"&&Number.isInteger(k)&&k>=0?Math.min(k,v):0;return{phase:"synced",online:!0,label:l>0?`${l} ↑`:"synced",title:`Synced with ${n} — all ${v} canvas${v===1?"":"es"}.`+(_>0?` ${_} came down from the project on this connect.`:"")+c,next:_>0?"They are new to this machine — look them over before editing.":null,names:_>0?K9(e.pulled?.names):[]}}function TLt(e){if(!e||typeof e!=="object")return null;let t=e,n=t.pending;if(typeof n!=="number"||!Number.isInteger(n)||n<=0||n>1e6)return null;let o=t.oldestPendingAt;return{pending:n,oldestPendingAt:typeof o==="number"&&Number.isFinite(o)&&o>0?o:null}}function ILt(e){if(!e||typeof e!=="object")return null;let t=e;if(t.credentialRefused!==!0)return null;let n=t.pending;return{pending:typeof n==="number"&&Number.isInteger(n)&&n>0&&n<=1e6?n:0}}function ELt(e){if(!e||typeof e!=="object")return null;let t=e;if(t.state!=="open"&&t.state!=="held")return null;let n=Array.isArray(t.canvases)?Math.min(t.canvases.length,1e4):0;return{state:t.state,canvases:n}}var xm=(e)=>typeof e==="number"&&Number.isInteger(e)&&e>=0,Ty=(e)=>e!==null&&typeof e==="object"&&!Array.isArray(e),O1=(e,t,n=`${t}s`)=>`${e} ${e===1?t:n}`;function Iy(e,t){let n=e?.access;if(!n||typeof n!=="object")return e?.cloud?.role??void 0;let o=(l,c)=>l===null||Yd[c]>Yd[l]?c:l,r=(Array.isArray(n.grants)?n.grants:[]).filter((l)=>typeof l?.r==="string"&&(l.r in Yd)),a=typeof n.role==="string"&&n.role in Yd?n.role:null,s=r.filter((l)=>t&&l.c===t);for(let l of s.length||a!==null?s:r)a=o(a,l.r);return a??void 0}function S0e(e,t){if(C0e(e))return!1;if(!e?.readOnly)return!0;if(e.formatGate||e.readOnlyReason!=="role")return!1;let n=e.access;if(!n||typeof n!=="object"||!t)return!1;if(Yd[n.role]>=X9)return!0;return(Array.isArray(n.grants)?n.grants:[]).some((o)=>o?.c===t&&Yd[o?.r]>=X9)}function _0e(e,t){if(typeof t!=="string"||!t)return null;let n=(e?.designRel||".design").replace(/^\/+|\/+$/g,"");return t.startsWith(`${n}/`)?t.slice(n.length+1):t}function VD(e,t){return!S0e(e,_0e(e,t))}function Hx(e){let t=e?.access;return!!t&&typeof t==="object"&&t.role==null&&Array.isArray(t.grants)&&t.grants.length>0}function GD(e,t){if(!C0e(e)||e.formatGate||!t)return!1;return(Array.isArray(e.access?.grants)?e.access.grants:[]).some((n)=>n?.c===t&&Yd[n?.r]>=X9)}function N0e(e,t){let n=_0e(e,t),o=!S0e(e,n);if(!o)return{ro:!1,cm:!1};let r=!!e.access&&typeof e.access==="object"&&(Array.isArray(e.access.grants)?e.access.grants:[]).some((s)=>s?.c===n&&Yd[s?.r]>=Yd.viewer),a=!!e.canComment||r;return{ro:o,cm:a,...a&&e.formatGate?{cg:!0}:{}}}function w0e(e){let t=typeof e==="string"?e.trim():"";if(!t)return"";return t.split(/\s+/)[0]}function Yc(e){if(typeof e!=="string"||!e)return"";return(e.split("/").pop()||e).replace(/\.(tsx|jsx|html)$/i,"")}function ef(e,t=".design"){if(typeof e!=="string"||!e||e.startsWith("__"))return null;let n=String(t||".design").replace(/\/+$/,""),o=e.startsWith(`${n}/`)?e.slice(n.length+1):e;if(!/\.(tsx|jsx|html)$/i.test(o)||o.split("/").some((r)=>r===""||r===".."))return null;return o}async function e7(e,t,n,o){try{let r=await e(n,{method:t,headers:o===void 0?{}:{"content-type":"application/json"},...o===void 0?{}:{body:JSON.stringify(o)}}),a=await r.text().catch(()=>""),s=null;try{s=a?JSON.parse(a):null}catch{s=null}return{status:r.status,body:s}}catch{return{status:0,body:null}}}async function LLt({canvas:e=null}={},t=fetch){let o=await e7(t,"POST","/_api/share/requests",typeof e==="string"&&e?{canvas:e}:{}),r=o.body?.reason;if(o.status===201)return{ok:!0,state:"asked",words:er.asked};if(o.status===202&&o.body?.queued)return{ok:!0,state:"queued",words:fI({error:o.body.words},er.queued)};if(r==="pending")return{ok:!0,state:"pending",words:fI(o.body,er.asked)};if(r==="already-can-edit")return{ok:!0,state:"already",words:er.alreadyCan};if(o.status===429)return{ok:!1,state:"limited",words:fI(o.body,er.unavailable)};if(r==="not-linked")return{ok:!1,state:"not-linked",words:er.notLinked};if(o.status===404||o.status===405)return{ok:!1,state:"not-linked",words:er.notLinked};if(o.status===0||o.status>=500)return{ok:!1,state:"unavailable",words:er.unavailable};return{ok:!1,state:"refused",words:fI(o.body,er.notLinked)}}async function A0e(e=fetch){let t=await e7(e,"GET","/_api/share/requests");return t.status===200&&Array.isArray(t.body?.requests)?t.body.requests:[]}async function WD(e,t,n=fetch){if(t!=="approve"&&t!=="decline")throw Error(`answerAccessRequest: ${t}`);if(typeof e!=="string"||!/^[A-Za-z0-9_-]{1,128}$/.test(e))return{ok:!1,words:er.answered};let o=await e7(n,"POST",`/_api/share/requests/${encodeURIComponent(e)}/${t}`,{});if(o.status>=200&&o.status<300)return{ok:!0,words:""};return{ok:!1,words:fI(o.body,er.answered)}}function PLt(e,t){let n=typeof t?.reason==="string"?t.reason:null;if(n==="link-off")return{kind:"link-off"};if(n==="access-withdrawn"||n==="removed"||n==="access-removed"||n==="expired"||n==="no-access")return{kind:"ended",reason:n==="expired"?"expired":"removed"};if(e===404||n==="not-in-scope"||n==="gone")return{kind:"missing"};return null}function t7(e,t){if(e!==401)return null;let n=PLt(e,t);return n&&(n.kind==="link-off"||n.kind==="ended")?n:null}function T0e(e,t){let n=e?.fetch;if(typeof n!=="function"||n[x0e])return()=>{};let o=async(...r)=>{let a=await n.apply(e,r);try{if(a?.status===401&&DLt(r[0],e.location?.origin)&&(a.headers?.get?.("content-type")??"").includes("json"))a.clone().json().then((s)=>{let l=t7(401,s);if(l)t(l)}).catch(()=>{})}catch{}return a};return o[x0e]=!0,e.fetch=o,()=>{if(e.fetch===o)e.fetch=n}}function zLt(e){if(e?.type!=="maude.access")return null;if(e.change==="raised")return{kind:"raised"};if(e.change==="narrowed"){let t=typeof e.by?.name==="string"?e.by.name.slice(0,80):"",n=Y9(e.role)?e.role:null;return{kind:"narrowed",...t?{by:t}:{},...n?{role:n}:{}}}if(e.change==="ended")return e.reason==="link-off"?{kind:"link-off"}:{kind:"ended",reason:e.reason==="expired"?"expired":"removed"};return null}function FLt(e){if(e?.type!=="maude.access-request"||typeof e.id!=="string")return null;let t=typeof e.from?.name==="string"?e.from.name.slice(0,80):"",n=typeof e.canvas==="string"?e.canvas:null;return{id:e.id,text:er.asksToEdit(t,n?Yc(n):""),action:er.review}}function I0e(e){if(e?.type==="access")return zLt({type:"maude.access",change:e.change,reason:e.reason,by:e.by,role:e.role});if(e?.type==="access-request"){let t=FLt({type:"maude.access-request",id:e.id,from:e.from,canvas:e.canvas});return t?{kind:"request",...t}:null}return null}function a7(e){let t=typeof e==="string"&&e?e:null;if(t===Z9)return;Z9=t;for(let n of J9)n()}function $0e(e){return J9.add(e),()=>J9.delete(e)}function R0e(e,t=(...n)=>fetch(...n)){return{"share.ask-to-edit":async()=>{let n=ef(e.activePath,e.designRel),o=await LLt({canvas:n},t);return e.toast?.(o.words,o.ok),o},"share.request-approve":async(n)=>{let o=await WD(n?.id,"approve",t);if(!o.ok)e.toast?.(o.words);return o},"share.request-decline":async(n)=>{let o=await WD(n?.id,"decline",t);if(!o.ok)e.toast?.(o.words);return o}}}var OLt,Y9=(e)=>typeof e==="string"&&OLt[e]||"",Yd,L1=(e)=>typeof e==="string"&&(e in Yd)?Yd[e]:void 0,k0e=(e,t)=>Iy(e,t)==="observer",X9,C0e=(e)=>!!e?.cloud&&!e.canvasToken&&Hx(e),Q9=(e)=>e?.canComment===!0&&!e.formatGate,er,fI=(e,t)=>typeof e?.error==="string"&&e.error&&e.error.length<=200?e.error:t,n7,o7,r7=(e,t)=>e==="observer"&&!t?.ended&&!t?.linkOff,x0e,DLt=(e,t)=>{let n=typeof e==="string"?e:typeof e?.url==="string"?e.url:String(e??"");if(n.startsWith("/")&&!n.startsWith("//"))return!0;return!!t&&(n===t||n.startsWith(`${t}/`))},mI="maude:access-frame",hI="maude:view-only-gesture",Z9=null,J9,E0e=()=>Z9;var oi=Ke(()=>{OLt=Object.freeze({owner:"Owner",member:"Can edit",viewer:"Can comment",observer:"Can view"}),Yd=Object.freeze({observer:0,viewer:1,member:2,owner:3});X9=Yd.member;er=Object.freeze({asked:"Asked. The owner will see your request.",queued:"Queued — sends when this Mac is online.",alreadyCan:"You can already edit this.",unavailable:"Could not ask right now. Try again in a minute.",notLinked:"Ask a project owner for edit access.",answered:"That request is no longer open.",tipTitle:(e)=>`You can look at ${e||"this canvas"}, not change it.`,tipLine:"Ask to edit, top right, sends a request to its owner.",appOnlyTitle:(e)=>`You can look at ${e||"this canvas"} here, not change it.`,appOnlyLine:"You can edit it in the desktop app. Editing one canvas in a browser comes later.",asksToEdit:(e,t)=>`${e||"Someone"} asks to edit ${t||"this project"}`,canViewNow:"can view it now",letEdit:(e)=>`Let ${w0e(e)||"them"} edit`,notNow:"Not now",review:"Review",raised:(e)=>`You can edit ${e||"this project"} now.`,narrowedTo:(e,t)=>`${w0e(e)||"Someone"} changed you to ${Y9(t)}. Your changes were saved first.`,endedTitle:(e)=>`You no longer have access to ${e||"this project"}.`,endedLine:"Your last changes were saved first. If this is a surprise, ask someone on the team.",backHome:"Back to Home",linkOffTitle:"This link was turned off.",linkOffLine:(e)=>`Ask the person who shared ${e||"it"} for a new one.`,trashedTitle:(e,t)=>`${e||"Someone"} moved ${t||"this canvas"} to the trash`,trashedLine:"You can keep looking. Your unsent changes stay with it.",restore:"Restore",restoredAs:(e)=>`Restored as ${e}. A canvas with the old name already exists.`,sharedWithYou:(e)=>`Shared with you · ${Y9(e)}`,onlyOne:(e)=>`Only ${e} was shared with you.`,onlyMany:(e)=>`Only these ${e} canvases were shared with you.`});n7=Object.freeze({path:"/_health",ms:30000}),o7=Object.freeze({path:"/_api/share/me",ms:60000}),x0e=Symbol.for("maude.access.refusal-watch");J9=new Set});function X0e(e=globalThis.window){b7=!0,e?.dispatchEvent?.(new CustomEvent("maude:open-trash"))}function x7(){let e=b7;return b7=!1,e}function Vx(e,t=globalThis.window){y7.push(e),t?.dispatchEvent?.(new CustomEvent(XD))}function Z0e(){let e=y7;return y7=[],e}function tf(e,t,n,o=globalThis.window){o?.dispatchEvent?.(new CustomEvent(gI,{detail:{op:e,path:t,label:n}}))}function pg(e,t,n=globalThis.window){n?.dispatchEvent?.(new CustomEvent(gI,{detail:{op:"jump",path:e,artboardId:t}}))}function J0e(e=globalThis.window){v7=!0,e?.dispatchEvent?.(new CustomEvent(ZD))}function Q0e(){let e=v7;return v7=!1,e}var w7="maude:open-trash",b7=!1,XD="maude:canvases-op",y7,gI="maude:canvas-op",ZD="maude:focus-selector",v7=!1;var qu=Ke(()=>{y7=[]});var nf=(...e)=>e,Gx;var JD=Ke(()=>{Gx=Object.freeze([{id:"kanban",title:"Kanban",desc:"To do · Doing · Done",thumb:"kanban",board:{groups:[{title:"To do",cards:nf("","")},{title:"Doing",cards:nf("")},{title:"Done",cards:nf("")}]}},{id:"retro",title:"Retro",desc:"Went well · To improve · Actions",thumb:"retro",board:{groups:[{title:"Went well",cards:nf("","")},{title:"To improve",cards:nf("","")},{title:"Actions",cards:nf("")}]}},{id:"flow",title:"Flowchart",desc:"Steps and decisions",thumb:"flow",board:{layout:"flow",nodes:[{id:"start",label:"Start"},{id:"decide",label:"Decision?",shape:"diamond"},{id:"yes",label:"Yes"},{id:"no",label:"No"}],edges:[{from:"start",to:"decide"},{from:"decide",to:"yes",label:"Yes"},{from:"decide",to:"no",label:"No"}]}},{id:"calendar",title:"Content calendar",desc:"One column a day",thumb:"cal",board:{groups:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"].map((e)=>({title:e,cards:nf("")}))}},{id:"roadmap",title:"Roadmap",desc:"One column a month",thumb:"road",board:{groups:[{title:"This month",cards:nf("","")},{title:"Next month",cards:nf("","")},{title:"The month after",cards:nf("")}]}},{id:"brainstorm",title:"Brainstorm",desc:"A topic and ideas round it",thumb:"brain",board:{title:"Topic",layout:"radial",groups:[{title:"Ideas",cards:nf("","","","","","")}]}},{id:"checklist",title:"Checklist",desc:"One section, ticks",thumb:"check",board:{groups:[{title:"Checklist",cards:[{text:"Checklist",items:["","",""]}]}]}},{id:"blank",title:"Blank section",desc:"Draw it, name it",thumb:"blank",board:{groups:[{title:"Section"}]}}])});var bI,yI,eSe;var tSe=Ke(()=>{bI={shell:["desktop"],minRole:"edit"},yI={hidden:!0},eSe=[{id:"ai.runs.list",label:"AI runs",kind:"command",icon:"sparkle",exec:"shell",visible:bI,search:yI},{id:"ai.stop",label:"Stop",kind:"command",exec:"shell",visible:bI,search:yI},{id:"ai.cancel-waiting",label:"Cancel the waiting prompt",kind:"command",exec:"shell",visible:bI,search:yI},{id:"ai.run-on-copy",label:"Run on a copy",kind:"command",exec:"shell",visible:bI,search:yI},{id:"ai.keep-going",label:"Keep going",kind:"command",exec:"shell",visible:bI,search:yI}]});function oSe(e){if(e===" ")return"Space";let t=String(e).trim();if(!t||/\b(click|hover|drag|scroll)\b/i.test(t))return null;let n=new Set;t=t.replace(/\b(cmd|command|meta|ctrl|control|alt|opt|option|shift)\s*\+\s*/gi,(r,a)=>(n.add(oPt[a.toLowerCase()]),""));for(;;){t=t.replace(/^\s+/,"");let r=QD.find((a)=>t.startsWith(a));if(!r||t.trim().length===r.length)break;n.add(r),t=t.slice(r.length)}let o=t.trim();if(e3[o])o=e3[o];else if(/^[a-z]$/i.test(o))o=o.toUpperCase();else if(/^f\d{1,2}$/i.test(o))o=o.toUpperCase();if(!o)return null;return QD.filter((r)=>n.has(r)).join("")+o}function D1(e){let t=oSe(e);if(!t)throw Error(`actions/keys: '${e}' is not a key chord`);return t}function z1(e){let t=new Set;if(e.metaKey||e.ctrlKey)t.add("⌘");if(e.altKey)t.add("⌥");let n=e.key??"";if(e3[n])n=e3[n];else if(/^F\d{1,2}$/.test(n));else if(/^[\x21-\x7e]$/.test(n)){if(/^[a-z]$/i.test(n))n=n.toUpperCase();else if(n==="/"&&e.shiftKey&&e.code==="Slash"&&!e.altKey)n="?"}else if(e.code){let a=/^Key([A-Z])$/.exec(e.code)??/^Digit(\d)$/.exec(e.code);n=a?a[1]:rPt[e.code]??n}let o=e.shiftKey&&t.size===0?/^Digit(\d)$/.exec(e.code??""):null;if(o)n=o[1];let r=!!o||/^[A-Z]$/.test(n)||nSe.has(n)||/^F\d/.test(n);if(e.shiftKey&&r)t.add("⇧");return QD.filter((a)=>t.has(a)).join("")+n}function rSe(e){let{mods:t,key:n}=sSe(e);if(t.some((o)=>o!=="⇧"))return!1;if(nSe.has(n)||/^F\d{1,2}$/.test(n))return!1;return n.length===1}function aSe(e){return e.includes("⌘")||e.includes("⌃")}function sSe(e){let t=[],n=e;for(;;){let o=QD.find((r)=>n.startsWith(r)&&n.length>r.length);if(!o)break;t.push(o),n=n.slice(o.length)}return{mods:t,key:n}}function km(e,t={}){let{mods:n,key:o}=sSe(oSe(e)??e),r=o==="="&&n.includes("⌘")?"+":o;return t.spaced?[...n,r].join(" "):n.join("")+r}var QD,e3,nSe,oPt,rPt,iSe,lSe;var of=Ke(()=>{QD=["⌃","⌥","⇧","⌘"],e3={Enter:"↵",Return:"↵","↩":"↵",Escape:"esc",Esc:"esc",esc:"esc"," ":"Space",Space:"Space",Spacebar:"Space",ArrowLeft:"←",ArrowRight:"→",ArrowUp:"↑",ArrowDown:"↓",Backspace:"⌫",Delete:"⌦",Del:"⌦",Tab:"tab",tab:"tab",Home:"Home",End:"End",PageUp:"PageUp",PageDown:"PageDown","-":"−","–":"−"},nSe=new Set(["↵","esc","Space","tab","⌫","⌦","←","→","↑","↓","Home","End","PageUp","PageDown"]),oPt={cmd:"⌘",command:"⌘",meta:"⌘",ctrl:"⌃",control:"⌃",alt:"⌥",opt:"⌥",option:"⌥",shift:"⇧"};rPt={Minus:"−",Equal:"=",Slash:"/",Backslash:"\\",BracketLeft:"[",BracketRight:"]",Comma:",",Period:".",Semicolon:";",Quote:"'",Backquote:"`",Space:"Space"};iSe=new Set(["⌘Z","⇧⌘Z","⌘Y","⌘A","⌘C","⌘X","⌘V","⇧⌘V","⌥⇧⌘V","⌘B","⌘I","⌘U","⌘←","⌘→","⌘↑","⌘↓","⇧⌘←","⇧⌘→","⌥←","⌥→","⌘⌫","⌥⌫"].map(D1)),lSe=new Set(["⌘N","⇧⌘N","⌘T","⌘W","⌘Q","⌘L"].map(D1))});function Et(e,t,n={}){return{chord:D1(e),layer:t,...n}}function Kr(e,t,n,o={}){let r=[...t],a=[];for(let s=0;s<1<<r.length;s++){let l=r.filter((u,d)=>s&1<<d).join(""),c=Et(l+e,n,o);a.push(s===0?c:{...c,alias:!0})}return a}var Zd,vI,t3,Xc,qx;var Jd=Ke(()=>{of();Zd=["chrome","timeline","text"],vI={focus:["chrome","timeline"],notFacts:["rangeFocused"]},t3={notFacts:["selectFocused"]},Xc={focus:["canvas"]},qx={focus:["canvas","text"]}});var My,$y,Kx,k7,cSe,Zc=(e,t,n)=>({id:e,label:t,kind:"command",exec:"canvas",keys:n}),Ry=(e,t,n,o={})=>({id:e,label:t,kind:"command",exec:"canvas",enabled:{minRole:"edit",selection:["annotation"]},keys:n,...o}),aPt,uSe,dSe,pSe;var fSe=Ke(()=>{JD();Jd();My={...Xc,selection:["annotation"]},$y={...My,mode:["preview"]},Kx={focus:["canvas"],selection:["annotation"],facts:["checkItemFocused"]},k7={...Kx,focus:["text"]},cSe={...My,notFacts:["checkItemFocused"]},aPt=[{id:"annotation.make-checklist",label:"Turn into checklist",kind:"command",exec:"canvas",enabled:{minRole:"edit",selection:["annotation"]},search:{keywords:["checklist","todo","to-do","tasks","tick","sticky","list"]}},Ry("checklist.toggle","Tick / untick",[Et("Space","selection",{when:Kx}),Et("⌘↵","selection",{when:k7,inText:!0})],{search:{keywords:["tick","check","done","todo","checklist"]}}),Ry("checklist.edit","Edit item",[Et("↵","selection",{when:Kx})],{search:{keywords:["checklist","item","rename","reword"]}}),Ry("checklist.add-below","Add an item",[Et("↵","selection",{when:k7,inText:!0})],{search:{keywords:["checklist","item","add","todo","new"]}}),Ry("checklist.remove-empty","Remove the empty item",[Et("⌫","selection",{when:k7,inText:!0})],{search:{keywords:["checklist","item","remove","delete"]}}),Ry("checklist.move-up","Move item up",[Et("⌥⌘↑","selection",{when:{...Kx,focus:["canvas","text"]},inText:!0})],{search:{keywords:["checklist","reorder","up"]}}),Ry("checklist.move-down","Move item down",[Et("⌥⌘↓","selection",{when:{...Kx,focus:["canvas","text"]},inText:!0})],{search:{keywords:["checklist","reorder","down"]}}),Ry("checklist.focus-prev","Previous item",[Et("↑","selection",{when:Kx})],{search:{hidden:!0}}),Ry("checklist.focus-next","Next item",[Et("↓","selection",{when:Kx})],{search:{hidden:!0}})],uSe=[Zc("annotation.group","Group",[Et("⌘G","selection",{when:$y})]),Zc("annotation.ungroup","Ungroup",[Et("⇧⌘G","selection",{when:$y})]),Zc("annotation.lock","Lock / unlock",[Et("⇧⌘L","selection",{when:$y})]),Zc("annotation.duplicate","Duplicate",[Et("⌘D","selection",{when:My})]),Zc("annotation.to-front","Bring to front",[Et("]","selection",{when:$y})]),Zc("annotation.forward","Bring forward",[Et("⌘]","selection",{when:$y})]),Zc("annotation.to-back","Send to back",[Et("[","selection",{when:$y})]),Zc("annotation.backward","Send backward",[Et("⌘[","selection",{when:$y})]),Zc("annotation.copy","Copy",[Et("⌘C","selection",{when:My})]),Zc("annotation.cut","Cut",[Et("⌘X","selection",{when:My})]),Zc("annotation.chain","Add the next one",[Et("⌘↵","selection",{when:My})]),Zc("annotation.edit-text","Edit text",[Et("↵","selection",{when:cSe})]),Zc("annotation.nudge","Nudge",["←","→","↑","↓"].flatMap((e)=>Kr(e,"⇧","selection",{when:cSe}))),Zc("annotation.remove","Remove",[...Kr("⌫","⇧","selection",{when:My}),...Kr("⌦","⇧","selection",{when:My})]),{id:"annotation.point-to",label:"Point to…",kind:"command",exec:"canvas",enabled:{minRole:"edit",selection:["annotation"]},search:{keywords:["arrow","point","bind","re-aim","dangling"]}},{id:"annotation.resolve",label:"Resolve",kind:"command",exec:"canvas",enabled:{minRole:"edit",selection:["annotation"]},search:{keywords:["resolve","reopen","done","sticky","strike"]}},{id:"annotation.fan-out",label:"Fan out",kind:"command",exec:"canvas",enabled:{minRole:"edit",selection:["annotation"]},search:{keywords:["stack","spread","sticky","row"]}},{id:"annotation.to-comment",label:"Turn into a comment",kind:"command",exec:"canvas",icon:"comment",enabled:{minRole:"edit",selection:["annotation"]},search:{keywords:["comment","thread","sticky","convert","answer"]}},{id:"annotation.fold",label:"Fold section",kind:"command",exec:"canvas",enabled:{minRole:"edit",selection:["annotation"]},search:{keywords:["fold","unfold","collapse","section","expand"]}},{id:"annotation.ask-ai",label:"Ask AI about this",kind:"command",exec:"canvas",icon:"sparkle",enabled:{minRole:"edit",selection:["annotation"]},keys:[Et("⌘/","selection",{when:$y})],search:{keywords:["ask ai","sticky","section","selection"]}},...aPt],dSe=[{id:"annotations.hide-resolved",label:"Hide resolved stickies",kind:"command",exec:"canvas",visible:{minRole:"view"},search:{keywords:["resolved","done","sticky","hide","show"]}},{id:"annotations.trash-resolved",label:"Move resolved stickies to the trash",kind:"command",exec:"canvas",icon:"trash",enabled:{minRole:"edit",facts:["canvasOpen"]},search:{keywords:["resolved","trash","clear","sticky","done","delete"]}},{id:"annotations.start-vote",label:"Start a vote…",kind:"command",exec:"canvas",enabled:{minRole:"edit",facts:["canvasOpen"]},search:{keywords:["vote","poll","dot","decide","ballot","pick"]}},{id:"annotations.end-vote",label:"End vote",kind:"command",exec:"shell",enabled:{minRole:"edit",facts:["canvasOpen"]},search:{keywords:["vote","end","finish","results","count"]}},{id:"annotations.select-resolved",label:"Select resolved stickies",kind:"command",exec:"canvas",enabled:{facts:["canvasOpen"]},search:{keywords:["resolved","select","sticky","done"]}}],pSe=Gx.map((e)=>({id:`annotation.template-${e.id}`,label:`${e.title} template`,kind:"command",exec:"shell",enabled:{minRole:"edit",facts:["canvasOpen"]},search:{keywords:["template","start","section"]}}))});var mSe,hSe;var gSe=Ke(()=>{Jd();mSe={focus:["chrome","timeline","canvas"],notFacts:["rangeFocused"]},hSe=[{id:"settings.open",label:"Settings…",kind:"command",icon:"sliders",exec:"shell",fromCanvas:!0,keys:[Et("⌘,","global",{inText:!0,when:{focus:[...Zd,"canvas"]}})],legacy:{palette:"Settings…",menu:"Settings…"}},{id:"settings.reset-panel-layout",label:"Reset panel layout",kind:"command",exec:"shell",visible:{shell:["desktop","browser"],minRole:"edit"},search:{keywords:["panels","sides","dock","layout","left","right"]}},{id:"settings.reset-all",label:"Reset all settings…",kind:"command",exec:"shell",visible:{shell:["desktop","browser"],minRole:"edit"},search:{keywords:["defaults","preferences","fresh"]}},{id:"settings.use-own-plugin-copy",label:"Use my own plugin copy",kind:"toggle",exec:"shell",visible:{shell:["desktop","browser"],minRole:"edit"},search:{keywords:["plugins","claude code","bundled","marketplace"]}},{id:"settings.experimental-teams",label:"AI reviews argue it out (teams)",kind:"toggle",exec:"shell",visible:{shell:["desktop","browser"],minRole:"edit"},search:{keywords:["teams","debate","review","experimental"]}},{id:"connections.replace-hub-token",label:"Replace the team server’s access token…",kind:"command",exec:"shell",visible:{shell:["desktop","browser"]},search:{keywords:["hub","token","team server","self-hosted","credential","access"]}},{id:"connections.figma-test",label:"Test the Figma connection",kind:"command",exec:"shell",visible:{shell:["desktop","browser"],minRole:"edit"},search:{keywords:["figma","token","import","check"]}},{id:"connections.cloud-project-connect",label:"Connect this folder to a cloud project…",kind:"command",exec:"shell",visible:{shell:["desktop","browser"],minRole:"edit"},search:{keywords:["cloud","link","attach","sync","workspace"]}},{id:"connections.cloud-project-disconnect",label:"Disconnect this folder from its server…",kind:"command",exec:"shell",visible:{shell:["desktop","browser"]},search:{keywords:["cloud","unlink","detach","stop syncing","sign out"]}},{id:"account.switch",label:"Switch account…",kind:"command",exec:"shell",visible:{shell:["desktop","cloud"]},search:{keywords:["account","sign in","profile","no account","this mac only"]}},{id:"account.add-cloud",label:"Add a Maude Cloud account…",kind:"command",exec:"shell",visible:{shell:["desktop"]},search:{keywords:["cloud","sign in","account","login"]}},{id:"account.link-server",label:"Link your server…",kind:"command",exec:"shell",visible:{shell:["desktop","browser"]},search:{keywords:["team server","hub","self-hosted","custom server","sign in","link"]}},{id:"account.github-signin",label:"Sign in with GitHub…",kind:"command",exec:"shell",visible:{shell:["desktop"]},search:{keywords:["github","sign in","login","publish","connect"]}},{id:"ai.chat",label:"AI chat",kind:"toggle",icon:"sparkle",exec:"shell",visible:{shell:["desktop","cloud"]},enabled:{shell:["desktop"]},search:{note:"in the desktop app"},keys:[Et("⌘/","global",{inText:!0,when:{focus:Zd,facts:["native"]}})],legacy:{menu:"Assistant"}},{id:"help.shortcuts",label:"Keyboard shortcuts",kind:"toggle",icon:"help",exec:"shell",fromCanvas:!0,keys:[Et("?","global",{inText:!1,when:mSe}),Et("⌘?","global",{inText:!1,alias:!0,when:mSe})],legacy:{palette:"Keyboard shortcuts",menu:"Keyboard shortcuts",sheet:"This cheat sheet · help"}},{id:"help.guides",label:"Help and guides",kind:"command",icon:"help",exec:"shell",keys:Kr("F1","⌥⇧⌘","global",{inText:!1,when:vI}),legacy:{palette:"Help · commands & flows",menu:"Help · commands & flows",sheet:"This cheat sheet · help"}},{id:"help.add-guides",label:"Add the guide canvases to this project",kind:"command",icon:"help",exec:"shell",visible:{shell:["desktop","browser"],minRole:"edit"},search:{keywords:["guides","how to use maude","how to make video","tutorial","examples"],where:"Help and guides"}},{id:"ai.ask-fill-artboard",label:"Ask AI to fill this artboard",kind:"command",icon:"sparkle",exec:"shell",visible:{shell:["desktop"],minRole:"edit"},search:{keywords:["fill","empty artboard","draft","ask ai"],where:"Empty artboard › Ask AI"}},{id:"ai.generate",label:"Ask AI to generate…",kind:"command",icon:"sparkle",exec:"shell",legacy:{palette:"Ask AI to generate…",menu:"Ask AI to generate…"}},{id:"ai.draw-mark",label:"Draw a mark",kind:"command",icon:"pen",exec:"shell",legacy:{palette:"Draw a mark with the SVG agent"}},{id:"help.whats-new",label:"What's new",kind:"command",icon:"sparkle",exec:"shell",legacy:{palette:"What's new in maude",menu:"What's new"}},{id:"help.tour",label:"Take the tour",kind:"command",exec:"shell",legacy:{menu:"Take the tour"}},{id:"help.intro",label:"Watch the intro",kind:"command",exec:"shell",legacy:{menu:"Watch the intro"}},{id:"help.sharing",label:"How sharing works",kind:"command",exec:"shell",legacy:{menu:"How sharing works"}},{id:"help.setup",label:"Set up Maude…",kind:"command",exec:"shell",legacy:{menu:"Quick setup"}},{id:"help.ai-readiness",label:"Check AI setup again",kind:"command",exec:"shell",legacy:{menu:"Check AI editing readiness…"}},{id:"help.report-bug",label:"Report a bug…",kind:"command",icon:"help",exec:"shell",native:{menu:"Help",order:1},legacy:{palette:"Report a bug…",menu:"Report a bug…"}}]});var bSe;var ySe=Ke(()=>{Jd();bSe=[{id:"canvas.new",label:"New canvas",kind:"command",icon:"plus",exec:"shell",search:{hint:"An empty canvas, ready to draw on"},visible:{minRole:"edit"},keys:[Et("⌘N","global",{inText:!0,when:{shell:["desktop"]}})],legacy:{palette:"New canvas",menu:"New canvas…",sheet:"New brief board"}},{id:"canvas.new-brief",label:"New brief canvas",kind:"command",icon:"plus",exec:"shell",search:{hint:"A board to write a brief on, for AI to draft from"},visible:{minRole:"edit"}},{id:"home.ask",label:"Ask AI for a new canvas…",kind:"command",icon:"sparkle",exec:"shell",visible:{minRole:"edit"},search:{hidden:!0}},{id:"canvas.reload",label:"Reload canvas",kind:"command",icon:"reload",exec:"shell",fromCanvas:!0,keys:[Et("⌘R","global",{inText:!0})],legacy:{palette:"Reload active canvas",menu:"Reload canvas",sheet:"Reload canvas"}},{id:"canvas.new-video",label:"New video",kind:"command",icon:"plus",exec:"shell",search:{hint:"A canvas for a video, with its timeline"},visible:{minRole:"edit"},legacy:{palette:"New video…"}},{id:"canvas.close",label:"Close canvas",kind:"command",exec:"shell",visible:{minRole:"comment"},enabled:{facts:["canvasOpen"]},legacy:{menu:"Close canvas"}},{id:"canvas.duplicate",label:"Duplicate canvas",kind:"command",exec:"shell",visible:{minRole:"edit"},enabled:{facts:["canvasOpen"]}},{id:"canvas.rename",label:"Rename canvas",kind:"command",exec:"shell",visible:{minRole:"edit"},enabled:{facts:["canvasOpen"]}},{id:"canvas.move",label:"Move to…",kind:"command",exec:"shell",visible:{minRole:"edit"},enabled:{facts:["canvasOpen"]}},{id:"canvas.copy-link",label:"Copy canvas link",kind:"command",exec:"shell",search:{where:"Canvases panel › row menu"},enabled:{facts:["canvasOpen"]}},{id:"canvas.trash",label:"Move canvas to trash",kind:"command",icon:"trash",exec:"shell",visible:{minRole:"edit"},enabled:{facts:["canvasOpen"]}},{id:"canvas.view-code",label:"View code",kind:"command",icon:"code",exec:"shell",visible:{minRole:"comment"},enabled:{facts:["canvasOpen"]},search:{keywords:["code","source","tsx","developer","read only"],where:"Canvases panel › row menu › View code"}},{id:"canvas.reveal-in-finder",label:"Reveal in Finder",kind:"command",icon:"folder",exec:"native",visible:{shell:["desktop"],facts:["native"],minRole:"edit"},enabled:{facts:["canvasOpen"]},search:{keywords:["finder","show","file","folder","explorer"],where:"Canvases › Advanced"}},{id:"canvas.open-in-editor",label:"Open in editor",kind:"command",icon:"edit",exec:"native",visible:{shell:["desktop"],facts:["native"],minRole:"edit"},enabled:{facts:["canvasOpen"]},search:{keywords:["editor","code","vscode","file","tsx"],where:"Canvases › Advanced"}},{id:"canvas.copy-file-path",label:"Copy file path",kind:"command",icon:"duplicate",exec:"shell",visible:{minRole:"comment"},enabled:{facts:["canvasOpen"]},search:{keywords:["path","file","copy","location"],where:"Canvases › Advanced"}},{id:"canvas.rename-file",label:"Rename file…",kind:"command",exec:"shell",visible:{minRole:"edit"},enabled:{facts:["canvasOpen"]},search:{keywords:["rename","file","name"],where:"Canvases › Advanced"}},{id:"canvas.copy-error",label:"Copy error",kind:"command",exec:"shell",visible:{minRole:"comment"},search:{hidden:!0}},{id:"canvas.ask-ai-fix",label:"Ask AI to fix it",kind:"command",exec:"shell",visible:{shell:["desktop"],minRole:"edit"},search:{hidden:!0}},{id:"canvas.last-good",label:"Last good version",kind:"command",exec:"shell",visible:{minRole:"edit"},search:{hidden:!0}},{id:"import.figma",label:"Import from Figma…",kind:"command",exec:"shell",visible:{minRole:"edit"},search:{keywords:["figma","frames","dev mode","access token"]}},{id:"import.brand",label:"Import a brand…",kind:"command",exec:"shell",visible:{minRole:"edit"}},{id:"video.assemble",label:"Assemble clips into a video",kind:"command",exec:"shell",visible:{minRole:"edit"},legacy:{menu:"Assemble dropped clips → video"}},...[["desktop","Desktop"],["laptop","Laptop"],["tablet","Tablet"],["mobile","Mobile"],["a4","A4 (print)"],["letter","Letter (print)"]].map(([e,t])=>({id:`artboard.new-${e}`,label:`New artboard: ${t.replace(" (print)","")}`,kind:"command",exec:"shell",visible:{minRole:"edit"},legacy:{menu:`New artboard: ${t}`}})),{id:"artboard.new-video",label:"New artboard: Video",kind:"command",exec:"shell",visible:{minRole:"edit"}}]});function Xx(e,t,n){return{id:`chat.advanced.${e}`,label:t,kind:"command",exec:"shell",visible:S7,search:{keywords:n,where:"AI chat panel › Advanced"}}}var S7,Yx,Sm,vSe;var wSe=Ke(()=>{S7={shell:["desktop"]},Yx={shell:["desktop"],minRole:"edit"},Sm={hidden:!0};vSe=[{id:"chat.new",label:"New chat",kind:"command",icon:"plus",exec:"shell",visible:S7,search:Sm},{id:"chat.rename",label:"Rename…",kind:"command",exec:"shell",visible:Yx,search:Sm},{id:"chat.archive",label:"Archive",kind:"command",exec:"shell",visible:Yx,search:Sm},{id:"chat.trash",label:"Move to trash",kind:"command",icon:"trash",exec:"shell",visible:Yx,search:Sm},{id:"chat.undo",label:"Undo this chat",kind:"command",exec:"shell",visible:Yx,search:Sm},{id:"chat.copy-transcript",label:"Copy transcript",kind:"command",exec:"shell",visible:S7,search:Sm},{id:"chat.open-in-terminal",label:"Open in terminal",kind:"command",exec:"native",visible:{shell:["desktop"],facts:["native"],minRole:"edit"},search:{keywords:["terminal","resume","claude"],where:"AI chat panel › Advanced"}},Xx("ask-before","Permissions",["ask before","mode","permission","plan","suggest only","bypass","auto"]),Xx("model","Model",["opus","sonnet","haiku","claude"]),Xx("effort","Effort",["thinking","think harder","low","high"]),Xx("fast-mode","Fast mode",["fast","speed"]),Xx("show-in-chat","Show in chat",["verbose","thinking","transcript","detail","view"]),Xx("suggestions","Suggestions",["chips","suggest","quick"]),Xx("raw-log","Raw log",["tool log","tools","calls","debug","log"]),{id:"ai.attach-files",label:"Attach files…",kind:"command",icon:"file",exec:"shell",visible:Yx,search:Sm},{id:"ai.attach-folder",label:"Choose a folder…",kind:"command",icon:"folder",exec:"shell",visible:{shell:["desktop"],minRole:"edit",facts:["native"]},search:Sm},{id:"ai.attach-assets",label:"From Assets",kind:"command",icon:"image",exec:"shell",visible:Yx,search:Sm},{id:"ai.attach-screenshot",label:"Paste a screenshot",kind:"command",exec:"shell",visible:Yx,search:Sm}]});var rf=(e,t,n={})=>({id:e,label:t,kind:"command",exec:"shell",...n}),xSe;var kSe=Ke(()=>{xSe=[rf("diag.sync","Sync"),rf("diag.server","Server"),rf("diag.ai","AI setup"),rf("diag.logs","Logs"),rf("diag.copy-logs","Copy logs",{search:{where:"Menu › Diagnostics › Logs"}}),{id:"diag.logs-show-in-finder",label:"Show logs in Finder",kind:"command",exec:"native",search:{where:"Menu › Diagnostics › Logs"}},rf("diag.ai-recheck","Check AI setup again"),rf("diag.address","Address"),rf("diag.process","Process"),rf("diag.project-folder","Project folder"),rf("sync.resync","Resync now",{visible:{minRole:"edit"},enabled:{facts:["online"]}}),rf("sync.download-all","Download all",{enabled:{facts:["online"]}})]});var SSe,sPt,wI,_Se,mr=(e,t,n=SSe)=>({id:e,label:t,kind:"command",exec:"shell",visible:n,search:_Se}),CSe;var NSe=Ke(()=>{SSe={minRole:"edit"},sPt={minRole:"owner"},wI={minRole:"view"},_Se={hidden:!0},CSe=[mr("ds.publish","Update canvases"),mr("ds.cancel-pending","Cancel"),mr("ds.keep-outside","Keep"),mr("ds.undo-outside","Undo"),mr("ds.pick","Use this"),mr("ds.canvas-update","Update"),mr("ds.canvas-leave","Keep this version"),mr("ds.trash-token","Move to Trash"),mr("ds.restore-token","Restore"),mr("ds.clear-token","Clear out",sPt),mr("ds.open","Design system",wI),mr("ds.set-theme-preview","Show the system in Light or Dark",wI),mr("ds.show-reach","Show where it lands",wI),mr("ds.review-update","Update for every canvas…"),mr("ds.go-to","Go to the design system",wI),mr("ds.instance-update","Update to the current look"),mr("ds.set-token","Change a token"),mr("ds.set-dark-follows","Dark follows Light"),mr("ds.set-master","Change a component"),mr("ds.make","Make a design system"),mr("ds.draft","Write a direction"),mr("ds.use-direction","Use this direction"),mr("ds.mix","Mix directions"),mr("ds.make-done","Finish the design system"),mr("ds.set-default","Use for new canvases"),mr("ds.rename","Rename…"),mr("ds.switch","Switch canvases to another system…"),mr("ds.preview","Preview in another system…",wI),mr("ds.convert","Turn into a Design system canvas"),mr("ds.convert-restore","Restore the system folder"),mr("ds.fix-contrast","Lighten to 4.5:1"),mr("ds.add-colour","Add it to the system"),mr("ds.use-nearest","Use the system colour"),mr("ds.check-system","Check the system"),{id:"ds.reveal-files",label:"Reveal in Finder",kind:"command",exec:"shell",visible:{shell:["desktop"],facts:["native"],minRole:"edit"},search:_Se},mr("ds.handoff-tokens","Hand off tokens"),{id:"ds.upgrade",label:"Bring it up to the schema",kind:"command",exec:"shell",visible:{minRole:"edit",facts:["dsUpgradeOffered"]},search:{keywords:["design system","schema","upgrade","bring up","conformant","tokens"]}},{id:"ds.library-link",label:"Link a team library",kind:"command",exec:"shell",visible:SSe,search:{keywords:["team","library","share","shared","brand kit","design system"]}},mr("ds.library-update","Update from the library"),mr("ds.library-unlink","Unlink the library")]});var ASe,TSe,ISe,Ln,Ni,_7,Oy=(e,t={})=>Et(e,"selection",{when:_7,...t}),Ly=(e,t,n)=>({id:e,label:t,kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},...n.length?{keys:n}:{}}),ESe;var $Se=Ke(()=>{Jd();ASe={focus:["chrome"],facts:["canvasOpen"],notFacts:["rangeFocused"]},TSe={when:t3,inText:!1},ISe={focus:["chrome","timeline"],facts:["canvasOpen"],notFacts:["rangeFocused"]},Ln={minRole:"edit"},Ni=Xc,_7={...Ni,mode:["edit"],selection:["object"]},ESe=[{id:"edit.undo",label:"Undo",kind:"command",exec:"canvas",enabled:Ln,keys:[Et("⌘Z","global",{inText:!1,when:ASe}),Et("⌘Z","timeline",TSe),Et("⌘Z","global",{when:Xc})],legacy:{menu:"Undo",sheet:"Undo / redo"}},{id:"edit.redo",label:"Redo",kind:"command",exec:"canvas",enabled:Ln,keys:[Et("⇧⌘Z","global",{inText:!1,when:ASe}),Et("⇧⌘Z","timeline",TSe),Et("⌘Y","global",{inText:!1,alias:!0,when:ISe}),Et("⇧⌘Y","global",{inText:!1,alias:!0,when:ISe}),Et("⇧⌘Z","global",{when:Xc}),Et("⌘Y","global",{alias:!0,when:Xc})],legacy:{menu:"Redo",sheet:"Undo / redo"}},{id:"edit.undo-history",label:"Undo history…",kind:"command",exec:"shell",visible:{minRole:"comment"},enabled:{...Ln,facts:["canvasOpen"]}},{id:"edit.copy",label:"Copy",kind:"command",exec:"shell",visible:{minRole:"comment"},keys:[Et("⌘C","global",{inText:!0,when:{focus:Zd}})]},{id:"edit.cut",label:"Cut",kind:"command",exec:"shell",visible:{minRole:"comment"},enabled:Ln,keys:[Et("⌘X","global",{inText:!0,when:{focus:Zd}})]},{id:"edit.paste",label:"Paste",kind:"command",exec:"shell",visible:{minRole:"comment"},enabled:Ln,keys:[Et("⌘V","global",{inText:!0,when:{focus:Zd}})]},{id:"select.all",label:"Select all",kind:"command",exec:"canvas",visible:{minRole:"comment"},keys:[Et("⌘A","selection",{when:Ni})]},{id:"select.none",label:"Deselect all",kind:"command",exec:"canvas",visible:{minRole:"comment"},legacy:{menu:"Deselect all"}},{id:"select.all-annotations",label:"Select all annotations",kind:"command",exec:"canvas",visible:Ln,keys:[Et("⇧⌘A","global",{inText:!1,when:Xc})],legacy:{menu:"Select all annotations"}},{id:"object.duplicate",label:"Duplicate",kind:"command",exec:"canvas",keys:[Et("⌘D","selection",{when:{...Ni,selection:["object"]}})]},{id:"object.copy",label:"Copy",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},keys:[Et("⌘C","selection",{when:_7})],search:{hidden:!0},help:{group:"objects",order:901}},{id:"object.cut",label:"Cut",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},keys:[Et("⌘X","selection",{when:_7})],search:{hidden:!0},help:{group:"objects",order:902}},{id:"artboard.copy",label:"Copy artboard",kind:"command",exec:"canvas",enabled:{...Ln,selection:["artboard"]},keys:[Et("⌘C","selection",{when:{...Ni,mode:["edit"],selection:["artboard"]}})],search:{hidden:!0},help:{group:"objects",order:903}},{id:"artboard.cut",label:"Cut artboard",kind:"command",exec:"canvas",enabled:{...Ln,selection:["artboard"]},keys:[Et("⌘X","selection",{when:{...Ni,mode:["edit"],selection:["artboard"]}})],search:{hidden:!0},help:{group:"objects",order:904}},{id:"canvas.paste",label:"Paste objects",kind:"command",exec:"canvas",enabled:Ln,search:{keywords:["paste","clipboard","objects","artboard"]}},{id:"edit.copy-properties",label:"Copy properties",kind:"command",exec:"canvas",visible:{minRole:"comment"},keys:Kr("⌥⌘C","⇧","selection",{when:{...Ni,selection:["object"]}})},{id:"edit.paste-properties",label:"Paste properties",kind:"command",exec:"canvas",visible:{minRole:"comment"},enabled:Ln,keys:Kr("⌥⌘V","⇧","selection",{when:{...Ni,selection:["object"]}})},{id:"object.enter",label:"Go inside",kind:"command",exec:"canvas",keys:[Et("↵","selection",{when:{...Ni,mode:["edit"],selection:["object"],notFacts:["toolArmed"]}})]},{id:"object.step-out",label:"Step out",kind:"command",exec:"canvas",enabled:{selection:["object"]}},{id:"object.select-child",label:"Select first child",kind:"command",exec:"canvas"},{id:"object.select-parent",label:"Select parent",kind:"command",exec:"canvas",keys:[Et("⇧↵","selection",{when:{...Ni,selection:["object"]}})]},{id:"object.select-next",label:"Select next object",kind:"command",exec:"canvas",keys:[Et("tab","selection",{when:{...Ni,mode:["edit"]}})]},{id:"object.select-prev",label:"Select previous object",kind:"command",exec:"canvas",keys:[Et("⇧tab","selection",{when:{...Ni,mode:["edit"]}})]},{id:"object.remove",label:"Remove",kind:"command",exec:"canvas",keys:[...Kr("⌫","⇧","global",{when:{focus:["chrome","timeline"],notFacts:["selectFocused"]}}),...Kr("⌦","⇧","global",{when:{focus:["chrome","timeline"],notFacts:["selectFocused"]}}),...["⌘⌫","⇧⌘⌫","⌥⌫","⌥⇧⌫","⌥⌘⌫","⌥⇧⌘⌫","⌘⌦","⇧⌘⌦","⌥⌦","⌥⇧⌦","⌥⌘⌦","⌥⇧⌘⌦"].map((e)=>Et(e,"timeline",{inText:!1,alias:!0,when:{selection:["clip"],notFacts:["selectFocused"]}})),...Kr("⌫","⇧","selection",{when:{...Ni,selection:["object"]}}),...Kr("⌦","⇧","selection",{when:{...Ni,selection:["object"]}})]},{id:"object.nudge",label:"Nudge",kind:"command",exec:"canvas",keys:["←","→","↑","↓"].flatMap((e)=>Kr(e,"⇧","selection",{when:{...Ni,selection:["object","artboard"]}}).map((t)=>t.chord==="←"||t.chord==="→"?{...t,when:{...t.when,notFacts:["selectionHasTakes"]}}:t))},Ly("object.frame","Frame selection",[Oy("⌥⌘G"),Oy("⌘G",{alias:!0})]),Ly("object.unframe","Remove frame",[Oy("⇧⌘G")]),Ly("object.bring-front","Bring to front",[Oy("⌘]")]),Ly("object.bring-forward","Bring forward",[Oy("]")]),Ly("object.send-backward","Send backward",[Oy("[")]),Ly("object.send-back","Send to back",[Oy("⌘[")]),Ly("object.lock","Lock",[Oy("⇧⌘L")]),Ly("object.hide","Hide",[]),{id:"object.select-matching",label:"Select matching",kind:"command",exec:"canvas",enabled:{selection:["object"]}},...[["align.left","Align left",["align","left","edge"]],["align.hcentre","Align horizontal centres",["align","centre","center","middle"]],["align.right","Align right",["align","right","edge"]],["align.top","Align top",["align","top","edge"]],["align.vmiddle","Align vertical middles",["align","middle","centre","center"]],["align.bottom","Align bottom",["align","bottom","edge"]],["distribute.h","Distribute horizontally",["distribute","space","even","gaps"]],["distribute.v","Distribute vertically",["distribute","space","even","gaps"]]].map(([e,t,n])=>({id:e,label:t,kind:"command",exec:"canvas",enabled:{...Ln,selection:["object","artboard"]},search:{keywords:[...n]}})),{id:"object.rotate",label:"Rotate 90°",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{keywords:["rotate","turn","angle"]}},{id:"object.place-freely",label:"Place freely",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{keywords:["absolute","free","position","ignore auto layout","x y"]}},{id:"object.reorder-earlier",label:"Move earlier",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{keywords:["reorder","order","earlier","before","left","up"]}},{id:"object.reorder-later",label:"Move later",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{keywords:["reorder","order","later","after","right","down"]}},{id:"object.reorder-to",label:"Move next to…",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{hidden:!0}},{id:"object.constrain",label:"Constraints",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{hidden:!0}},{id:"layout.set-gap",label:"Set gap",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{hidden:!0}},{id:"layout.convert-to-absolute",label:"Convert children to absolute position",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{keywords:["remove auto layout","absolute","free","unlayout","convert layout"]}},{id:"object.insert-shape",label:"Draw a shape",kind:"command",exec:"canvas",enabled:Ln,search:{hidden:!0}},{id:"artboard.draw",label:"Draw an artboard",kind:"command",exec:"canvas",enabled:Ln,search:{hidden:!0}},{id:"artboard.insert-preset",label:"Add an artboard",kind:"command",exec:"canvas",enabled:Ln,search:{hidden:!0}},{id:"object.insert-path",label:"Draw a path",kind:"command",exec:"canvas",enabled:Ln,search:{hidden:!0}},{id:"path.edit",label:"Edit path points",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{hidden:!0}},...[["union","Union selection"],["subtract","Subtract selection"],["intersect","Intersect selection"],["exclude","Exclude selection"]].map(([e,t])=>({id:`shape.combine.${e}`,label:t,kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]}})),{id:"object.set-corner-radius",label:"Round a corner",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{hidden:!0}},{id:"text.set",label:"Set text",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{hidden:!0}},{id:"text.set-language",label:"Set language",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{hidden:!0}},{id:"text.set-case",label:"Set case",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{hidden:!0}},{id:"text.use-style",label:"Use a style",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{hidden:!0}},{id:"text.reset-style",label:"Reset text style",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{keywords:["reset","override","style","type","font","size"]}},{id:"component.insert",label:"Place a component",kind:"command",exec:"canvas",enabled:{...Ln},search:{hidden:!0}},{id:"image.place",label:"Place a picture",kind:"command",exec:"canvas",enabled:Ln,search:{hidden:!0}},{id:"image.crop",label:"Crop",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{keywords:["crop","fit","fill","tile","zoom","picture","image","photo"]}},{id:"image.replace",label:"Replace…",kind:"command",exec:"shell",enabled:{...Ln,selection:["object"]},search:{keywords:["replace","swap","picture","image","photo"]}},{id:"image.next-take",label:"Next take",kind:"command",exec:"shell",enabled:{...Ln},keys:[Et("→","selection",{when:{focus:["chrome"],facts:["selectionHasTakes"]}})],search:{hidden:!0}},{id:"image.prev-take",label:"Previous take",kind:"command",exec:"shell",enabled:{...Ln},keys:[Et("←","selection",{when:{focus:["chrome"],facts:["selectionHasTakes"]}})],search:{hidden:!0}},{id:"photo.use-edit",label:"Edit this use of the photo",kind:"command",exec:"shell",enabled:{...Ln,selection:["object"]},search:{hidden:!0}},{id:"photo.apply-every-use",label:"Apply to every use…",kind:"command",exec:"shell",enabled:{...Ln,selection:["object"]},search:{keywords:["apply","every","use","all","photo","picture","image","look"]}},{id:"figma.make-editable",label:"Make editable",kind:"command",exec:"shell",enabled:{...Ln,selection:["artboard"]},search:{hidden:!0}},{id:"component.swap-variant",label:"Swap variant or component",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{hidden:!0}},{id:"component.reset",label:"Reset to the main component",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{keywords:["reset","override","instance","component","changes","master"]}},{id:"component.detach",label:"Detach instance",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{keywords:["detach","unlink","instance","component","plain","frame"]}},{id:"component.go-to-main",label:"Go to the main component",kind:"command",exec:"shell",enabled:{selection:["object"]},search:{hidden:!0}},{id:"text.detach-style",label:"Detach text style",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{keywords:["detach","style","unlink","type","no style"]}},{id:"inspector.copy-css",label:"Copy CSS",kind:"command",exec:"shell",search:{where:"Inspector › Advanced"},enabled:{selection:["object"]}},{id:"element.copy-id",label:"Copy element id",kind:"command",exec:"shell",search:{where:"Inspector › Advanced"},enabled:{selection:["object"]}},{id:"element.set-id",label:"Edit element id…",kind:"command",exec:"shell",search:{where:"Inspector › Advanced"},enabled:{...Ln,selection:["object"]}},{id:"element.stamp",label:"Name element",kind:"command",exec:"canvas",enabled:Ln,search:{hidden:!0}},{id:"artboard.resize",label:"Resize artboard",kind:"command",exec:"canvas",enabled:{...Ln,selection:["artboard"]},search:{hidden:!0}},{id:"artboard.add-width",label:"Add a width",kind:"command",exec:"shell",enabled:{...Ln,selection:["artboard"]},search:{hidden:!0}},{id:"artboard.tidy",label:"Tidy up artboards",kind:"command",exec:"canvas",enabled:{...Ln,selection:["artboard"]},search:{keywords:["tidy","row","even","gaps","arrange","line up"]}},{id:"artboard.duplicate",label:"Duplicate artboard",kind:"command",exec:"canvas",enabled:{...Ln,selection:["artboard"]},keys:[Et("⌘D","selection",{when:{...Ni,mode:["edit"],selection:["artboard"]}})],search:{keywords:["copy","clone","duplicate","artboard"]}},{id:"artboard.duplicate-at-width",label:"Duplicate at another width",kind:"command",exec:"canvas",enabled:{...Ln,selection:["artboard"]},search:{hidden:!0}},{id:"artboard.set-safe-zones",label:"Set safe zones",kind:"command",exec:"canvas",enabled:{...Ln,selection:["artboard"]},search:{hidden:!0}},{id:"artboard.set-print",label:"Set paper, size, bleed or margin",kind:"command",exec:"canvas",enabled:{...Ln,selection:["artboard"]},search:{hidden:!0}},{id:"artboard.convert-kind",label:"Change kind",kind:"command",exec:"canvas",enabled:{...Ln,selection:["artboard"]},search:{hidden:!0}},{id:"warning.fix",label:"Fix what to check",kind:"command",exec:"canvas",enabled:{...Ln,selection:["artboard"]},search:{hidden:!0}},{id:"artboard.set-print-guides",label:"Print guides on this artboard",kind:"command",exec:"canvas",enabled:{...Ln,selection:["artboard"]},search:{hidden:!0}},{id:"artboard.set-guides",label:"Set layout guides",kind:"command",exec:"canvas",enabled:{...Ln,selection:["artboard"]},search:{hidden:!0}},{id:"artboard.rename",label:"Rename artboard",kind:"command",exec:"canvas",enabled:{...Ln,selection:["artboard"]},search:{keywords:["name","label","artboard"]}},{id:"artboard.reset-position",label:"Reset artboard position",kind:"command",exec:"canvas",enabled:{...Ln,selection:["artboard"]},search:{keywords:["position","grid","back","artboard"]}},{id:"artboard.trash",label:"Move artboard to the trash",kind:"command",exec:"canvas",enabled:{...Ln,selection:["artboard"]},keys:[...Kr("⌫","⇧","selection",{when:{...Ni,selection:["artboard"]}}),...Kr("⌦","⇧","selection",{when:{...Ni,selection:["artboard"]}})],search:{keywords:["delete","remove","trash","artboard"]}},{id:"artboard.ask-ai",label:"Ask AI about this artboard",kind:"command",exec:"shell",enabled:{...Ln,selection:["artboard"]},search:{hidden:!0}},{id:"ai.ask-selection",label:"Ask AI about the selection",kind:"command",icon:"sparkle",exec:"canvas",visible:Ln,enabled:{...Ln,selection:["object"]},keys:[Et("⌘/","selection",{when:{...Ni,mode:["edit"],selection:["object"]}})],search:{keywords:["ask ai","selection","in place","change these"]}},{id:"element.set-link",label:"Set link",kind:"command",exec:"shell",enabled:{...Ln,selection:["object"]}},{id:"element.clear-link",label:"Clear link",kind:"command",exec:"shell",enabled:{...Ln,selection:["object"]}},{id:"inspector.copy-code",label:"Copy code",kind:"command",exec:"shell",search:{where:"Inspector › Advanced"},enabled:{minRole:"comment",selection:["object"]}},{id:"inspector.edit-css-as-text",label:"Edit CSS as text…",kind:"command",exec:"shell",search:{where:"Inspector › Advanced"},enabled:{...Ln,selection:["object"]}},{id:"element.detach",label:"Detach from shared component",kind:"command",exec:"shell",search:{where:"Inspector › Advanced"},enabled:{...Ln,selection:["object"]}},{id:"inspect.copy-code",label:"Copy code",kind:"command",exec:"shell",enabled:{minRole:"comment",mode:["preview","viewing"],selection:["object"]}},{id:"inspect.edit",label:"Edit",kind:"command",exec:"canvas",enabled:{...Ln,mode:["preview","viewing"],selection:["object"]},keys:[Et("↵","selection",{when:{...Ni,mode:["preview","viewing"],selection:["object"]}})],search:{keywords:["inspect","switch","edit mode"]}},{id:"asset.relink",label:"Relink…",kind:"command",exec:"shell",enabled:{...Ln}}]});var RSe;var MSe=Ke(()=>{Jd();RSe=[{id:"export.open",label:"Export…",kind:"command",icon:"download",exec:"shell",fromCanvas:!0,visible:{minRole:"comment"},keys:[Et("⇧⌘E","global",{inText:!0})],legacy:{palette:"Export…",menu:"Export…",sheet:"Export…"}},{id:"export.copy-png",label:"Copy as PNG",kind:"command",icon:"image",exec:"shell",fromCanvas:!0,visible:{minRole:"comment"},enabled:{facts:["canvasOpen"]},keys:[Et("⇧⌘C","selection",{inText:!1,when:{selection:["artboard","object","video-artboard","generated-image"]}})],search:{keywords:["clipboard","image","paste","png"]}},{id:"export.copy-command",label:"Copy export command",kind:"command",exec:"shell",visible:{minRole:"comment"},enabled:{facts:["canvasOpen"]},search:{where:"Export › Advanced",keywords:["terminal","cli","command line","script"]}},{id:"handoff.open",label:"Handoff to production",kind:"command",icon:"external",exec:"shell",visible:{minRole:"comment"},fromCanvas:!0,enabled:{minRole:"edit",facts:["canvasOpen"]},keys:[Et("⇧⌘H","global",{inText:!0})],legacy:{palette:"Handoff to production",menu:"Handoff to production",sheet:"Handoff to production"}},{id:"export.rerun-last",label:"Export again",kind:"command",exec:"shell",visible:{minRole:"comment"},legacy:{sheet:"Export again"}},{id:"export.retry",label:"Retry",kind:"command",exec:"shell",visible:{minRole:"comment"},search:{hidden:!0}},{id:"export.cancel",label:"Cancel",kind:"command",exec:"shell",visible:{minRole:"comment"},search:{hidden:!0}},{id:"share.open",label:"Share…",kind:"command",icon:"share",exec:"shell",visible:{minRole:"comment"},enabled:{facts:["canvasOpen"]},legacy:{menu:"Share link…"}},{id:"share.copy-link",label:"Copy link",kind:"command",icon:"link",exec:"shell",search:{where:"Share"},legacy:{palette:"Copy link"}},{id:"share.move-to-cloud",label:"Move to Maude Cloud…",kind:"command",exec:"shell",visible:{shell:["desktop"],notFacts:["linkedHub"]}},{id:"sync.connect-link",label:"Connect",kind:"command",exec:"shell",visible:{minRole:"edit",notFacts:["linkedHub"]},search:{hidden:!0,where:"Share"}},{id:"share.link-settings",label:"Link settings…",kind:"command",icon:"link",exec:"shell",visible:{minRole:"owner",facts:["linkedHub"]},search:{keywords:["link","expires","anyone with the link","team only","turn off link"]}},{id:"share.invite",label:"Invite people…",kind:"command",icon:"people",exec:"shell",visible:{minRole:"owner",facts:["linkedHub"]},search:{keywords:["invite","add people","collaborator","email"]}},{id:"share.set-role",label:"Change what someone can do…",kind:"command",exec:"shell",visible:{minRole:"owner",facts:["linkedHub"]},search:{keywords:["role","permission","can edit","can comment","can view","make owner"]}},{id:"share.remove",label:"Remove someone…",kind:"command",exec:"shell",visible:{minRole:"owner",facts:["linkedHub"]},search:{keywords:["remove","revoke","access"]}},{id:"share.resend",label:"Resend an invite…",kind:"command",exec:"shell",visible:{minRole:"owner",facts:["linkedHub"]},search:{keywords:["resend","invitation","pending"]}},{id:"share.ask-to-edit",label:"Ask to edit",kind:"command",exec:"shell",visible:{minRole:"view",facts:["linkedHub"]},search:{keywords:["ask to edit","request access","edit access","permission"]}},{id:"share.request-approve",label:"Let them edit",kind:"command",exec:"shell",visible:{minRole:"owner",facts:["linkedHub"]},search:{hidden:!0}},{id:"share.request-decline",label:"Not now",kind:"command",exec:"shell",visible:{minRole:"owner",facts:["linkedHub"]},search:{hidden:!0}}]});var Ai,OSe;var LSe=Ke(()=>{Ai={hidden:!0},OSe=[{id:"history.filter",label:"Filter versions",kind:"command",exec:"shell",search:Ai},{id:"history.view-version",label:"View this version",kind:"command",exec:"shell",search:Ai},{id:"history.object",label:"Version history of this object",kind:"command",exec:"shell",search:Ai},{id:"history.compare",label:"Compare",kind:"command",exec:"shell",search:Ai},{id:"history.compare-pictures",label:"Compare pictures",kind:"command",exec:"shell",search:Ai},{id:"history.name",label:"Name this version…",kind:"command",exec:"shell",visible:{minRole:"edit"},search:Ai},{id:"history.restore",label:"Restore this version",kind:"command",exec:"shell",visible:{minRole:"edit"},search:Ai},{id:"history.restore-artboard",label:"Restore only this artboard",kind:"command",exec:"shell",visible:{minRole:"edit"},search:Ai},{id:"history.restore-object",label:"Restore this object",kind:"command",exec:"shell",visible:{minRole:"edit"},search:Ai},{id:"history.go-back",label:"Go back to the last good version",kind:"command",exec:"shell",visible:{minRole:"edit"},search:Ai},{id:"history.branch-switch",label:"Switch branch",kind:"command",exec:"shell",visible:{minRole:"edit"},search:Ai},{id:"history.new-branch",label:"New branch…",kind:"command",exec:"shell",visible:{minRole:"edit"},search:Ai},{id:"history.fetch",label:"Fetch",kind:"command",exec:"shell",search:Ai},{id:"history.publish",label:"Publish",kind:"command",exec:"shell",visible:{minRole:"edit"},search:Ai},{id:"history.save-with-note",label:"Save a version with a note…",kind:"command",exec:"shell",visible:{minRole:"edit"},search:Ai},{id:"history.open-pr",label:"Add to main · opens a pull request",kind:"command",exec:"shell",visible:{minRole:"edit"},search:Ai},{id:"history.discard-file",label:"Discard changes to a file",kind:"command",exec:"shell",visible:{minRole:"edit"},search:Ai},{id:"history.continue-draft",label:"Continue on your draft",kind:"command",exec:"shell",visible:{minRole:"edit"},search:Ai},{id:"history.undo-action",label:"Undo this change",kind:"command",exec:"shell",visible:{minRole:"edit"},search:Ai}]});var Jc,PSe;var DSe=Ke(()=>{Jd();Jc={shell:["desktop"]},PSe=[{id:"project.new",label:"New project…",kind:"command",exec:"shell",visible:{minRole:"comment"},keys:[Et("⇧⌘N","global",{inText:!0,when:Jc})],native:{menu:"File",order:2}},{id:"project.pull-copy",label:"Pull a local copy…",kind:"command",exec:"shell",visible:{...Jc,minRole:"comment"}},{id:"project.share-github",label:"Share on GitHub…",kind:"command",exec:"shell",visible:{...Jc,minRole:"comment"}},{id:"project.open",label:"Open project…",kind:"command",exec:"native",visible:{minRole:"comment"},keys:[Et("⌘O","global",{inText:!0,when:Jc})],help:{group:"finding",order:20},native:{menu:"File",order:3}},{id:"home.open",label:"Show Home",kind:"command",exec:"native",keys:[Et("⌘T","global",{inText:!0,when:Jc})],help:{group:"tabs-windows",order:30},native:{menu:"File",order:4}},{id:"home.search",label:"Search",kind:"command",icon:"search",exec:"shell",visible:{shell:["home"]},search:{hidden:!0},keys:[Et("⌘K","global",{inText:!0,when:{shell:["home"]}})]},{id:"cloud.open-remote",label:"Open",kind:"command",exec:"shell",visible:{shell:["home"]},search:{hidden:!0}},{id:"home.signin",label:"Sign in to Maude Cloud",kind:"command",icon:"cloud",exec:"shell",visible:{shell:["home"]},search:{hidden:!0}},{id:"invite.join",label:"Join",kind:"command",exec:"shell",visible:{shell:["home"]},search:{hidden:!0}},{id:"invite.leave",label:"Leave",kind:"command",exec:"shell",visible:{shell:["home"]},search:{hidden:!0}},{id:"hub.connect",label:"Connect to your own hub…",kind:"command",exec:"shell",visible:{shell:["home"]},search:{keywords:["hub","team server","self-hosted","address","sign in"]}},{id:"project.open-github",label:"Open a folder or a GitHub project…",kind:"command",exec:"shell",visible:{shell:["home"]},search:{keywords:["github","folder","repo","clone","open"]}},{id:"ai.connect",label:"Connect AI…",kind:"command",exec:"shell",visible:{shell:["home"]},search:{keywords:["api key","claude","anthropic","sign in","connect ai"]}},{id:"cli.install",label:"Install the maude command…",kind:"command",exec:"shell",visible:{shell:["home"]},search:{keywords:["terminal","cli","command","plugin","claude code","path"]}},{id:"nav.home",label:"Back to Home",kind:"command",icon:"home",exec:"native",visible:{shell:["desktop","cloud"]}},{id:"tab.close",label:"Close tab",kind:"command",exec:"native",keys:[Et("⌘W","global",{inText:!0,when:Jc})],help:{group:"tabs-windows",order:40},native:{menu:"File",order:5}},{id:"tab.next",label:"Show next tab",kind:"command",exec:"native",keys:[Et("⌃tab","global",{inText:!0,when:Jc}),Et("⇧⌘]","global",{inText:!0,alias:!0,when:Jc})],help:{group:"tabs-windows",order:10},native:{menu:"Window",order:1}},{id:"tab.prev",label:"Show previous tab",kind:"command",exec:"native",keys:[Et("⌃⇧tab","global",{inText:!0,when:Jc}),Et("⇧⌘[","global",{inText:!0,alias:!0,when:Jc})],help:{group:"tabs-windows",order:20},native:{menu:"Window",order:2}},{id:"tab.overview",label:"Show all tabs",kind:"command",exec:"native",keys:[Et("⇧⌘\\","global",{inText:!0,when:Jc})],help:{group:"tabs-windows",order:25},native:{menu:"Window",order:3}},{id:"tab.rename",label:"Rename…",kind:"command",exec:"native",visible:Jc},...[1,2,3,4,5,6,7,8].map((e)=>({id:`tab.select-${e}`,label:`Show tab ${e}`,kind:"command",exec:"native",keys:[Et(`⌘${e}`,"global",{inText:!0,when:Jc})],native:{menu:"Window",order:2+e}})),{id:"tab.select-last",label:"Show last tab",kind:"command",exec:"native",keys:[Et("⌘9","global",{inText:!0,when:Jc})],native:{menu:"Window",order:11}},{id:"app.check-updates",label:"Check for updates…",kind:"command",exec:"native",visible:{shell:["desktop"]},native:{menu:"App",order:1}}]});var C7,N7,zSe;var FSe=Ke(()=>{C7={facts:["canvasOpen"]},N7={hidden:!0},zSe=[{id:"presence.follow",label:"Follow",kind:"command",icon:"eye",exec:"canvas",visible:C7,search:N7},{id:"presence.go-to",label:"Go to",kind:"command",exec:"canvas",visible:C7,search:N7},{id:"presence.bring-everyone",label:"Bring everyone here",kind:"command",icon:"share",exec:"canvas",visible:{minRole:"edit",facts:["canvasOpen"]},search:{keywords:["summon","spotlight","follow me","gather","everyone","people"]}},{id:"presence.stop",label:"Stop following",kind:"command",exec:"canvas",visible:C7,search:N7}]});var BSe;var jSe=Ke(()=>{Jd();BSe=[{id:"search.open",label:"Search",kind:"command",icon:"search",exec:"shell",fromCanvas:!0,keys:[Et("⌘K","global",{inText:!0,when:{notShell:["home"]}}),Et("⇧⌘K","global",{inText:!0,alias:!0,when:{focus:Zd,notShell:["home"]}})],help:{group:"finding",order:10},legacy:{sheet:"Command palette"}},{id:"canvases.search",label:"Search canvases",kind:"command",exec:"shell",keys:[Et("/","global",{inText:!1,when:vI})],legacy:{sheet:"Search files"}},{id:"canvases.find",label:"Find a canvas",kind:"command",exec:"shell",keys:Kr("⌘F","⇧","global",{inText:!1,when:vI}),legacy:{sheet:"Search files"}},{id:"canvases.pin",label:"Pin canvas",kind:"command",exec:"shell",enabled:{facts:["canvasOpen"]}},{id:"canvases.unpin",label:"Unpin canvas",kind:"command",exec:"shell",enabled:{facts:["canvasOpen"]}},{id:"canvases.sort",label:"Sort canvases",kind:"command",exec:"shell"},{id:"canvases.filter-kind",label:"Filter canvases by kind",kind:"command",exec:"shell",search:{where:"Canvases panel"}},{id:"canvases.refresh",label:"Refresh canvases",kind:"command",exec:"shell",keys:[Et("⇧⌘R","global",{inText:!0,when:{focus:Zd}})]}]});var iPt,xI,Ti=(e,t,n)=>({id:e,label:t,kind:"command",...n?{icon:n}:{},exec:"shell",visible:iPt,search:xI}),USe;var HSe=Ke(()=>{iPt={minRole:"edit"},xI={hidden:!0},USe=[Ti("sync.conflict.keep-mine","Keep yours"),Ti("sync.conflict.keep-theirs","Keep theirs"),Ti("sync.conflict.keep-both","Keep both","duplicate"),Ti("save.retry-held","Retry saving"),Ti("sync.keep-mine","Keep mine"),Ti("sync.use-theirs","Use theirs"),Ti("sync.keep-both","Keep both","duplicate"),{id:"sync.compare",label:"Compare",kind:"command",exec:"shell",search:xI},Ti("sync.publish-ai-edit","Publish"),Ti("sync.discard-ai-edit","Discard"),Ti("sync.cancel-transfer","Cancel the transfer"),Ti("sync.allow-code","Allow shared code…"),Ti("sync.stop-code","Stop allowing shared code…"),Ti("sync.ignore-folder","Don’t sync this folder"),Ti("sync.sync-folder-again","Sync it again"),Ti("sync.delete-held-on-hub","Move to the hub’s trash too…"),Ti("sync.keep-held-on-hub","Keep on the hub"),Ti("sync.remove-held-here","Remove here too"),Ti("sync.keep-held-here","Keep them here"),Ti("sync.adopt-as-code","Adopt as code"),{id:"sync.open-canvas-folders",label:"Open canvas folders",kind:"command",icon:"folder",exec:"native",visible:{shell:["desktop"],facts:["native"],minRole:"edit"},search:xI},{id:"sync.get-latest",label:"Get latest",kind:"command",exec:"shell",search:xI},{id:"sync.sign-in-again",label:"Sign in again",kind:"command",exec:"shell",search:xI}]});var Ki,A7=(e,t,n)=>({id:e,label:t,kind:"command",exec:"shell",enabled:{minRole:"edit"},search:{hidden:!0,where:n,note:"a pointer gesture on the timeline"}}),lPt,WSe;var VSe=Ke(()=>{Jd();Ki={when:t3,inText:!1},lPt=[["comment","Comment on clip","comment"],["generate","Generate this clip","edit"],["adjust","Adjust the clip","edit"],["hide","Hide clip","edit"],["show","Show clip","edit"],["remove","Remove clip","edit"],["replace","Replace the clip’s media","edit"],["mute","Mute clip","edit"],["unmute","Unmute clip","edit"],["detach-audio","Detach audio","edit"],["to-overlay","Move to overlay layer","edit"],["to-storyline","Move to storyline","edit"],["layer-up","Move layer up","edit"],["layer-down","Move layer down","edit"],["earlier","Move clip earlier","edit"],["later","Move clip later","edit"],["replace-layer","Replace a layer’s media","edit"]],WSe=[{id:"timeline.play",label:"Play / pause",kind:"toggle",exec:"shell",keys:Kr("Space","⌥⇧⌘","timeline",Ki)},{id:"timeline.step",label:"Step a frame",kind:"command",exec:"shell",keys:[...Kr("←","⌥⇧⌘","timeline",Ki),...Kr("→","⌥⇧⌘","timeline",Ki)]},{id:"timeline.to-start",label:"Go to start",kind:"command",exec:"shell",keys:Kr("Home","⌥⇧⌘","timeline",Ki)},{id:"timeline.to-end",label:"Go to end",kind:"command",exec:"shell",keys:Kr("End","⌥⇧⌘","timeline",Ki)},{id:"timeline.prev-keyframe",label:"Previous keyframe",kind:"command",exec:"shell",keys:[Et(",","timeline",Ki)]},{id:"timeline.next-keyframe",label:"Next keyframe",kind:"command",exec:"shell",keys:[Et(".","timeline",Ki),Et("⌘.","timeline",{...Ki,alias:!0})]},{id:"timeline.split",label:"Split at playhead",kind:"command",exec:"shell",keys:[Et("S","timeline",Ki),...Kr("⌘B","⇧","timeline",Ki),Et("⌘B","global",{...Ki,alias:!0,when:{facts:["timelineVisible"]}})]},{id:"timeline.loop-in",label:"Loop starts here",kind:"command",exec:"shell",keys:[Et("I","timeline",Ki)]},{id:"timeline.loop-out",label:"Loop ends here",kind:"command",exec:"shell",keys:[Et("O","timeline",Ki)]},{id:"timeline.loop-clear",label:"Clear the loop range",kind:"command",exec:"shell"},{id:"timeline.zoom-in",label:"Zoom timeline in",kind:"command",exec:"shell",keys:[Et("⌘=","timeline",{...Ki,when:{notFacts:["selectFocused","rangeFocused"]}}),Et("⌘+","timeline",{...Ki,alias:!0,when:{notFacts:["selectFocused","rangeFocused"]}})]},{id:"timeline.zoom-out",label:"Zoom timeline out",kind:"command",exec:"shell",keys:[Et("⌘−","timeline",{...Ki,when:{notFacts:["selectFocused","rangeFocused"]}})]},{id:"timeline.zoom-fit",label:"Fit the timeline",kind:"command",exec:"shell",keys:[Et("0","timeline",{...Ki,when:{notFacts:["selectFocused","rangeFocused"]}})]},{id:"timeline.expand",label:"Expand the timeline",kind:"command",exec:"shell"},{id:"timeline.compact",label:"Make the timeline compact",kind:"command",exec:"shell"},{id:"timeline.add-track",label:"Add a track",kind:"command",exec:"shell",search:{where:"Timeline › Advanced",keywords:["track","video 2","music 2","layer","lane"]}},{id:"timeline.fold-track",label:"Fold a track",kind:"command",exec:"shell",search:{where:"Timeline",keywords:["fold","collapse","hide","track","text","graphics","lane"]}},{id:"timeline.marker.add",label:"Add a marker here",kind:"command",exec:"shell",enabled:{minRole:"edit"},search:{where:"Timeline › Markers",keywords:["marker","flag","chapter","bookmark","moment","name"]}},{id:"timeline.marker.remove",label:"Remove the marker here",kind:"command",exec:"shell",enabled:{minRole:"edit"},search:{where:"Timeline › Markers",keywords:["marker","flag","delete","remove"]}},{id:"timeline.marker.jump",label:"Jump to the next marker",kind:"command",exec:"shell",search:{where:"Timeline › Markers",keywords:["marker","next","previous","jump","chapter","flag"]}},{id:"timeline.comment-mode",label:"Comment on the timeline",kind:"toggle",exec:"shell",keys:Kr("C","⇧","timeline",{...Ki,when:{notFacts:["selectFocused","rangeFocused"]}})},A7("timeline.trim","Trim a clip","Timeline › Drag a clip’s edge"),A7("timeline.move-clip","Move a clip","Timeline › Drag a clip"),A7("timeline.add-clips","Add footage to the video","Timeline › Drop footage"),...lPt.map(([e,t,n])=>({id:`timeline.clip-menu.${e}`,label:t,kind:"command",exec:"shell",enabled:{minRole:n},search:{hidden:!0,where:"Timeline › Right-click a clip",note:"the clip menu runs it"}}))]});function cPt(e,t){if(e==="present")return t?.kind==="artboards"?"present-artboards":"present-canvas";return e}function mc(e,t,n){return uPt[e][cPt(t,n)]}function Zx(e,t,n){if(!e)return t==="measure"||t==="comment-pins"||t==="object-tools";return dPt[t](e,n)}var Qd=(e,t,n,o,r)=>Object.freeze({edit:e,preview:t,"present-artboards":n,"present-canvas":o,viewing:r}),uPt,dPt,GSe=(e,t)=>mc("left-panels",e,t)==="folded";var _m=Ke(()=>{uPt=Object.freeze({clicks:Qd("tool","live","next-artboard","pan-zoom","specs"),toolbar:Qd("edit","preview","none","none","viewing"),annotations:Qd("quiet","drawn","hidden","hidden","read-only"),"comment-pins":Qd("shown","shown","hidden","hidden","shown"),measure:Qd("on","on","off","off","on"),"ai-changes":Qd("live","live","held","live-unmarked","live"),"left-panels":Qd("shown","shown","hidden","hidden","shown"),"ai-panel":Qd("shown","shown","hidden","hidden","none"),"share-cluster":Qd("full","full","hidden","hidden","full-access"),inspect:Qd("inspector","panel-on-cmd-click","hidden","hidden","panel-on-click"),"project-menu":Qd("pill","pill","esc-first","esc-first","pill"),esc:Qd("steps-back","steps-back","settles-back","same-view","deselect")});dPt=Object.freeze({measure:(e,t)=>mc("measure",e,t)==="on","inspect-panel":(e,t)=>mc("inspect",e,t).startsWith("panel"),"comment-pins":(e,t)=>mc("comment-pins",e,t)==="shown","object-tools":(e,t)=>mc("clicks",e,t)==="tool","live-design":(e,t)=>mc("clicks",e,t)==="live","annotations-editable":(e,t)=>mc("annotations",e,t)==="drawn",chrome:(e,t)=>mc("share-cluster",e,t)!=="hidden"})});function Qx(e,t){if(e==="edit"&&!t.edit)return"viewing";if(e==="viewing"&&t.edit)return"edit";return e}function ZSe(e){if(e.edit||e.annotate)return"edit";return e.comment?"comment":"view"}function B1(e,t){for(let n of[e,...JSe[e]]){let o=af[n].slots.find((r)=>r.key===t);if(o)return{mode:n,slot:o}}return null}function R7(e,t,n,o){let r=B1(e,t);if(!r||r.slot.pending)return null;let{slot:a}=r,s=!!a.panel&&(a.tool===null||!!a.panelFirst),l=a.insert||a.panelFirst?null:a.tips&&o&&a.tips.includes(o)?o:a.tool,c=ZSe(n);if(n3[c]<n3[a.minRole]||r.mode==="edit"&&!n.edit){if(l)return{kind:"deny",mode:r.mode,tool:l};return s&&a.panel?{kind:"deny",mode:r.mode,panel:a.panel}:{kind:"deny",mode:r.mode}}if(r.mode!==e){let u={kind:"request",mode:r.mode};if(l)u.tool=l;if(s&&a.panel)u.panel=a.panel;return u}if(a.insert)return{kind:"insert",insert:a.insert};if(l)return{kind:"arm",tool:l};return a.panel?{kind:"panel",panel:a.panel}:null}function QSe(e){let t=[];for(let n of[e,...JSe[e]])for(let o of af[n].slots){if(!o.key||t.includes(o.key))continue;if(B1(e,o.key)?.slot===o&&!o.pending)t.push(o.key)}return t}function e1e(e,t,n){if(!YSe(t))return!1;let o=af[e].slots.find((r)=>r.tool===t||!!r.tips?.includes(t)||!!r.more?.some((a)=>a.tool===t));return!o||n3[ZSe(n)]>=n3[o.minRole]}function qSe(e,t){return af[e].slots.some((n)=>n.tool===t||n.tool!==null&&mPt[n.tool]===t||!!n.tips?.includes(t)||!!n.lights?.includes(t)||!!n.more?.some((o)=>o.tool===t))}function t1e(e,t,n){if(!YSe(e)||hPt.has(e))return null;if(qSe(n,e))return n;if(e==="move")return t.edit?"edit":"viewing";for(let o of["preview","edit"])if(qSe(o,e))return o;return null}function kI(e){let t=e&&typeof e==="object"?e:{};if(t.kind!=="artboards")return{kind:"canvas"};if(typeof t.from==="string"&&t.from&&t.from.length<=200)return t.only==="formats"&&t.from!=="start"?{kind:"artboards",from:t.from,only:"formats"}:{kind:"artboards",from:t.from};return{kind:"artboards",from:"start"}}var T7,KSe,I7,pPt,E7,MLn,fPt,YSe=(e)=>typeof e==="string"&&fPt.has(e),Jx,F1,XSe=(e)=>e.edit?"edit":"viewing",$7=(e)=>e.edit?"edit":"preview",OLn,LLn,n3,Na=(e)=>Object.freeze(e),af,mPt,JSe,hPt;var sf=Ke(()=>{_m();T7=["edit","viewing","preview","present"],KSe=["artboards","canvas"],I7=["browse","move","hand","comment","pen","highlighter","eraser","shape","sticky","section","arrow","text"],pPt=["inspect","frame","el-shape","el-pen","el-text","image","component","line","ellipse","polygon","crop","slice","pointer"],E7=[...I7,...pPt],MLn=new Set(T7),fPt=new Set(E7),Jx=Object.freeze({edit:!1,annotate:!1,comment:!1}),F1=Object.freeze({edit:!0,annotate:!0,comment:!0});OLn=Object.freeze({edit:"edit",viewing:"edit",preview:"preview",present:"preview"}),LLn=Object.freeze({edit:"move",viewing:"inspect",preview:"browse",present:"browse"}),n3=Object.freeze({view:0,comment:1,edit:2});af=Object.freeze({edit:Object.freeze({rest:"move",slots:Object.freeze([Na({key:"V",label:"Select",tool:"move",minRole:"edit"}),Na({key:"H",label:"Hand",tool:"hand",minRole:"edit"}),Na({key:"F",label:"Artboard / Frame",tool:"frame",minRole:"edit"}),Na({key:"R",label:"Shape",tool:"el-shape",minRole:"edit"}),Na({key:"P",label:"Pen",tool:"el-pen",minRole:"edit"}),Na({key:"T",label:"Text",tool:"el-text",minRole:"edit"}),Na({key:"I",label:"Image",tool:"image",minRole:"edit",panel:"image",panelFirst:!0}),Na({key:"⇧I",label:"Component",tool:null,minRole:"edit",panel:"components"}),Na({key:"",label:"More",tool:null,minRole:"edit",popover:"more",more:Object.freeze([Na({key:"",label:"Line",tool:"line",minRole:"edit"}),Na({key:"",label:"Ellipse",tool:"ellipse",minRole:"edit"}),Na({key:"",label:"Polygon",tool:"polygon",minRole:"edit"}),Na({key:"",label:"Crop",tool:"crop",minRole:"edit"}),Na({key:"",label:"Export area",tool:"slice",minRole:"edit"})])})])}),preview:Object.freeze({rest:"browse",slots:Object.freeze([Na({key:"V",label:"Select",tool:"browse",minRole:"view"}),Na({key:"H",label:"Hand",tool:"hand",minRole:"view"}),Na({key:"N",label:"Sticky",tool:"sticky",minRole:"edit",popover:"sticky-colours"}),Na({key:"C",label:"Comment",tool:"comment",minRole:"comment"}),Na({key:"M",label:"Marker",tool:"pen",minRole:"edit",popover:"marker-tips",tips:["pen","highlighter","eraser"]}),Na({key:"A",label:"Arrow",tool:"arrow",minRole:"edit"}),Na({key:"R",label:"Shape",tool:"shape",minRole:"edit",popover:"shape-kinds"}),Na({key:"T",label:"Text",tool:"text",minRole:"edit"}),Na({key:"E",label:"Stickers",tool:null,minRole:"edit",panel:"stickers"}),Na({key:"S",label:"Section",tool:"section",minRole:"edit",panel:"templates"})])}),viewing:Object.freeze({rest:"inspect",slots:Object.freeze([Na({key:"H",label:"Hand",tool:"inspect",minRole:"view"}),Na({key:"C",label:"Comment",tool:"comment",minRole:"comment"})])}),present:Object.freeze({rest:"browse",hidden:!0,slots:Object.freeze([Na({key:"L",label:"Pointer",tool:"pointer",minRole:"view"})])})}),mPt=Object.freeze({}),JSe=Object.freeze({edit:["preview"],preview:["edit"],viewing:["preview","edit"],present:[]});hPt=new Set(["hand"])});function n1e(e){if(e.tool==="move")return"tool.select";return`tool.${e.tool??e.panel??e.label.toLowerCase()}`}function vPt(){let e=new Map,t=0;for(let n of r1e)for(let o of af[n].slots){if(o.pending||o.more||!o.key)continue;let r=n1e(o);if(!e.has(r))e.set(r,{slot:o,home:n,order:t++,keys:new Map})}for(let n of r1e)for(let o of QSe(n)){let r=B1(n,o);if(!r)continue;let a=e.get(n1e(r.slot));if(!a)continue;let s=a.keys.get(o)??[];s.push(n),a.keys.set(o,s)}return[...e.entries()].map(([n,o])=>{let r=[...o.keys.entries()].map(([s,l])=>({chord:D1(s),layer:"tools",when:{focus:yPt,mode:l}})),a=bPt[o.home];return{id:n,label:gPt[n]??o.slot.label,kind:"tool",exec:"canvas",keys:r,...a?{help:{group:a,order:o.order}}:{},...o1e[n]?{legacy:{menu:o1e[n]}}:{}}})}var gPt,o1e,bPt,yPt,r1e,Py=(e,t,n)=>({id:e,label:t,kind:"tool",exec:"canvas",keys:[],...n?{legacy:{menu:n}}:{}}),a1e;var s1e=Ke(()=>{sf();of();Jd();gPt={"tool.browse":"Select","tool.inspect":"Inspect","tool.pen":"Marker"},o1e={"tool.select":"Select","tool.hand":"Hand","tool.comment":"Comment","tool.pen":"Pen","tool.arrow":"Arrow","tool.sticky":"Sticky","tool.text":"Text","tool.browse":"Browse (interact)"},bPt={edit:"edit-tools",preview:"preview-tools"},yPt=["canvas","chrome"],r1e=["edit","preview","viewing","present"];a1e=[...vPt(),{id:"tool.hand-hold",label:"Hand (hold Space)",kind:"tool",exec:"canvas",keys:Kr("Space","⌥⇧⌘","tools",{hold:!0,when:Xc})},{id:"tool.create-default",label:"Add one at its default size",kind:"command",exec:"canvas",enabled:{minRole:"edit"},keys:[Et("↵","tools",{when:{focus:["canvas"],mode:["edit","preview"],facts:["toolArmed"]}})],search:{hidden:!0}},Py("tool.highlighter","Highlighter"),Py("tool.eraser","Eraser","Eraser"),Py("tool.rect","Rectangle","Rect"),Py("tool.ellipse","Ellipse","Ellipse"),Py("tool.line","Line"),Py("tool.polygon","Polygon"),Py("tool.slice","Export area"),Py("tool.crop","Crop")]});var i1e;var l1e=Ke(()=>{Jd();i1e=[{id:"ui.step-back",label:"Step back",kind:"command",exec:"shell",keys:[...Kr("esc","⌥⇧⌘","global",{inText:!0,when:{focus:Zd}}),...Kr("esc","⌥⇧⌘","selection",{inText:!1,when:Xc})],legacy:{sheet:"Deselect · close menu"}},{id:"ui.cycle-region",label:"Move between the panels and the canvas",kind:"command",exec:"shell",fromCanvas:!0,keys:[Et("F6","global",{inText:!0}),Et("⇧F6","global",{inText:!0,alias:!0})],search:{keywords:["focus","panels","canvas","keyboard","f6"]}}]});var wPt,xPt=(e)=>({hidden:!0,where:e,note:"bound by its S7 surface"}),Ua=(e,t,n,o="edit")=>({id:e,label:t,kind:"command",exec:"shell",enabled:o==="edit"?wPt:{minRole:o},search:xPt(n)}),c1e;var u1e=Ke(()=>{wPt={minRole:"edit"},c1e=[{...Ua("video.captions.add","Captions from speech","Timeline › Captions"),search:{where:"Timeline › Captions",keywords:["captions","subtitles","speech","transcribe"]}},{...Ua("video.transcript.open","Transcript","Timeline › Transcript","comment"),search:{where:"Timeline › Transcript",keywords:["transcript","words","captions","text"]}},Ua("video.captions.style","Caption style","Inspector › Captions"),Ua("video.captions.fix-word","Fix a caption word","Transcript panel"),Ua("video.captions.export","Export captions","Export sheet","comment"),Ua("video.transcript.cut","Cut these words","Transcript panel"),Ua("video.transcript.find-speech","Find speech","Transcript panel"),Ua("video.music.beats","Find the beat","Inspector › Music"),Ua("video.music.duck","Lower under speech","Inspector › Music"),Ua("video.music.volume","Music volume","Inspector › Music"),Ua("video.cut-to-beat","Cut to the beat","Inspector › Music"),Ua("video.snap","Snap to the beat","Timeline"),{...Ua("video.reframe","Re-frame","Timeline › Re-frame"),search:{where:"Timeline › Re-frame",keywords:["reframe","crop","framing","vertical","focus","window"]}},{...Ua("video.frame-handle","Move and zoom on the canvas","Timeline › Clip"),search:{where:"Timeline › Clip",keywords:["move","zoom","pan","crop","position","scale","drag","video","framing"]}},{...Ua("video.poster.set","Set as poster frame","Timeline"),search:{where:"Timeline › Poster",keywords:["poster","cover","thumbnail"]}},{...Ua("video.format.add","Add a format","Inspector › Formats"),search:{where:"Inspector › Formats",keywords:["format","size","16:9","9:16","1:1","reels","linked","aspect"]}},{...Ua("video.format.unlink","Make an unlinked copy","Inspector › Formats"),search:{where:"Inspector › Formats",keywords:["unlink","copy","own cut","fork","format"]}},{...Ua("video.allow-longer","Allow longer videos","Timeline › Advanced"),search:{where:"Timeline › Advanced",keywords:["longer","length","limit","2 min","frames"]}},Ua("video.easing.set","Keyframe curve","Timeline › Advanced"),{...Ua("video.take.swap","Swap a take","Timeline › Other takes"),search:{where:"Timeline › Other takes",keywords:["take","other takes","swap","alternate"]}},Ua("video.fit","Fit the picture","Inspector › Clip"),Ua("video.place","Place the title","Inspector › Formats"),Ua("video.title.motion","Title motion","Inspector › Title"),Ua("video.title.style","Title font and colour","Inspector › Title"),Ua("video.transition.set","Set the transition","Timeline › Join")]});var o3="switch to Canvas first",d1e;var p1e=Ke(()=>{Jd();d1e=[{id:"mode.preview",label:"Preview",kind:"toggle",icon:"eye",exec:"canvas",keys:[Et("⌥⌘P","global",{inText:!0,when:{mode:["edit","preview","viewing"]}})],enabled:{notFacts:["pagesView"]},search:{keywords:["mode","live","interact","edit"],note:o3}},{id:"preview.back",label:"Back",kind:"command",exec:"shell",enabled:{mode:["preview"]},search:{keywords:["link","previous","return","canvas"]}},{id:"view.panels",label:"Hide panels",kind:"toggle",exec:"shell",keys:[Et("⌘\\","global",{inText:!0})],fromCanvas:!0,legacy:{menu:"Hide panels",sheet:"Hide / show panels"}},{id:"view.pin-panels",label:"Pin panels to the side",kind:"toggle",exec:"shell",legacy:{menu:"Pin panels to the side"}},{id:"view.hidden-files",label:"Hidden files",kind:"toggle",exec:"shell",legacy:{menu:"Show hidden files",sheet:"Hidden files"}},{id:"canvases.show-file-names",label:"Show file names",kind:"toggle",exec:"shell",search:{keywords:["file","names","tsx","files"],where:"Canvases › Advanced"}},{id:"layers.show-tags",label:"Show tags and ids",kind:"toggle",exec:"shell",search:{keywords:["tags","ids","layers","html"],where:"Layers panel › Advanced"}},{id:"layers.select-by-selector",label:"Select by selector",kind:"command",exec:"shell",enabled:{facts:["canvasOpen"]},search:{keywords:["selector","css","query","select","matching"],where:"Layers panel › Advanced"}},{id:"layers.filter-kind",label:"Filter layers by kind",kind:"command",exec:"shell",enabled:{facts:["canvasOpen"]},search:{where:"Layers panel"}},{id:"view.design-system",label:"Design system",kind:"toggle",icon:"sliders",exec:"shell",legacy:{palette:"Design system",sheet:"Design system view"}},{id:"view.assets",label:"Assets",kind:"toggle",icon:"image",exec:"shell"},{id:"assets.place",label:"Place",kind:"command",icon:"image",exec:"shell",enabled:{minRole:"edit"},keys:[Et("↵","selection",{when:{focus:["chrome","timeline"],facts:["assetTileSelected"]}})],search:{hidden:!0}},{id:"assets.add",label:"Add files…",kind:"command",icon:"plus",exec:"shell",enabled:{minRole:"edit"},search:{hidden:!0}},{id:"assets.add-link",label:"Add from a link…",kind:"command",icon:"link",exec:"shell",enabled:{minRole:"edit"},search:{keywords:["link","url","web","download","import","picture","video"]}},{id:"assets.generate",label:"Generate an image…",kind:"command",icon:"sparkle",exec:"shell",enabled:{minRole:"edit"},search:{keywords:["generate","ai","image","picture","takes"]}},{id:"assets.details",label:"Show details",kind:"command",exec:"shell",keys:[Et("⌘I","selection",{when:{focus:["chrome","timeline"],facts:["assetTileSelected"]}})],search:{hidden:!0}},{id:"assets.spotlight",label:"View larger",kind:"command",icon:"image",exec:"shell",keys:[Et("Space","selection",{when:{focus:["chrome"],facts:["assetTileSelected"]}})],search:{hidden:!0}},{id:"assets.trash",label:"Move to trash",kind:"command",icon:"trash",exec:"shell",enabled:{minRole:"edit"},search:{hidden:!0}},{id:"assets.rename",label:"Rename…",kind:"command",exec:"shell",enabled:{minRole:"edit"},search:{hidden:!0}},{id:"assets.describe",label:"Search in pictures",kind:"toggle",icon:"search",exec:"shell",search:{keywords:["describe","pictures","photos","what is in","ai","search"]}},{id:"assets.describe-stop",label:"Stop describing pictures",kind:"command",exec:"shell",search:{hidden:!0}},{id:"view.layers-panel",label:"Layers as a panel",kind:"toggle",exec:"shell"},{id:"view.trash",label:"Trash",kind:"command",icon:"trash",exec:"shell",visible:{minRole:"edit"}},{id:"trash.restore",label:"Restore",kind:"command",icon:"trash",exec:"shell",visible:{minRole:"edit"},search:{hidden:!0}},{id:"trash.clear",label:"Clear out the trash…",kind:"command",icon:"trash",exec:"shell",visible:{minRole:"owner"}},{id:"view.comments",label:"Comments",kind:"toggle",icon:"resolve",exec:"shell",fromCanvas:!0,keys:[Et("⇧⌘M","global",{inText:!0})],legacy:{palette:"Toggle comments panel",menu:"Comments Sidebar",sheet:"Comments sidebar"}},{id:"comments.filter-open",label:"Show open comments",kind:"command",exec:"shell"},{id:"comments.filter-mine",label:"Show my comments",kind:"command",exec:"shell"},{id:"comments.filter-resolved",label:"Show resolved comments",kind:"command",exec:"shell"},{id:"comments.filter-all",label:"Show all comments",kind:"command",exec:"shell"},{id:"comments.open-thread",label:"Open comment thread",kind:"command",exec:"shell"},{id:"view.exports",label:"Exports",kind:"toggle",icon:"export",exec:"shell",visible:{minRole:"comment"}},{id:"history.open",label:"Version history",kind:"toggle",exec:"shell",fromCanvas:!0,keys:[Et("⌥⌘H","global",{inText:!0})],help:{group:"finding",order:30},legacy:{menu:"Changes"}},{id:"view.inspector",label:"Inspector",kind:"toggle",icon:"sliders",exec:"shell",fromCanvas:!0,keys:[Et("⇧⌘I","global",{inText:!0})],legacy:{palette:"Open inspector",menu:"Inspector",sheet:"Inspector"}},{id:"view.timeline-keep-open",label:"Keep timeline open",kind:"toggle",exec:"shell",fromCanvas:!0,keys:[Et("⇧⌘T","global",{inText:!0})],legacy:{menu:"Timeline"}},{id:"view.annotations",label:"Annotations",kind:"toggle",exec:"canvas",keys:[Et("⇧P","global",{inText:!1,when:Xc})],legacy:{menu:"Annotations",sheet:"Annotations"}},{id:"view.layers",label:"Layers",kind:"toggle",exec:"shell",legacy:{menu:"Layers"}},{id:"view.inspector-on-select",label:"Open inspector on select",kind:"toggle",exec:"shell",legacy:{menu:"Auto-open Inspector on select"}},{id:"view.minimap",label:"Minimap",kind:"toggle",exec:"shell",legacy:{menu:"Minimap"}},{id:"view.zoom-controls",label:"Zoom controls",kind:"toggle",exec:"shell",legacy:{menu:"Zoom controls"}},{id:"view.print-guides",label:"Print guides",kind:"toggle",exec:"shell",legacy:{menu:"Show print guides"}},{id:"present.from-selection",label:"Present",kind:"command",exec:"shell",fromCanvas:!0,keys:[Et("⌥⌘↵","global",{when:{mode:["edit","viewing","preview"]}})],enabled:{notFacts:["pagesView"]},search:{keywords:["presentation","slideshow","artboards","selected"],note:o3}},{id:"present.from-start",label:"Present from the start",kind:"command",exec:"shell",fromCanvas:!0,keys:[Et("⇧⌥⌘↵","global",{when:{mode:["edit","viewing","preview"]}})],enabled:{notFacts:["pagesView"]},search:{keywords:["presentation","slideshow","beginning","first"],note:o3}},{id:"present.next",label:"Next artboard",kind:"command",exec:"shell",keys:[Et("→","global",{when:{mode:["present"]}}),Et("Space","global",{when:{mode:["present"]}})],search:{keywords:["presentation","slideshow","advance","forward"]}},{id:"present.prev",label:"Previous artboard",kind:"command",exec:"shell",keys:[Et("←","global",{when:{mode:["present"]}}),Et("⇧Space","global",{when:{mode:["present"]}})],search:{keywords:["presentation","slideshow","back","backward"]}},{id:"present.canvas",label:"Present the canvas",kind:"toggle",exec:"shell",enabled:{notFacts:["pagesView"]},search:{note:o3},legacy:{menu:"Presentation Mode"}},{id:"present.order-notes",label:"Order and notes…",kind:"command",exec:"shell",visible:{minRole:"edit"},enabled:{facts:["canvasOpen"]},search:{keywords:["presentation","slides","speaker notes","skip","reorder"]}},{id:"present.presenter-view",label:"Presenter view on another display",kind:"toggle",exec:"shell",visible:{shell:["desktop"],facts:["native"]},search:{keywords:["presentation","second screen","audience","notes","projector"]}},{id:"present.copy-link",label:"Copy presentation link",kind:"command",icon:"link",exec:"shell",visible:{minRole:"edit"},enabled:{facts:["online"],any:[{facts:["linkedHub"]},{shell:["cloud"]}]},search:{keywords:["presentation","slideshow","audience","follow","share","link","url"],note:"in a Maude Cloud project"}},{id:"settings.theme",label:"Theme",kind:"toggle",icon:"sun",exec:"shell",legacy:{palette:"Toggle light / dark theme"}},{id:"view.zoom-in",label:"Zoom in",kind:"command",exec:"canvas",keys:[Et("⌘=","global",{inText:!0,when:qx}),Et("⌘+","global",{inText:!0,alias:!0,when:qx})],legacy:{menu:"Zoom In",sheet:"Zoom in / out"}},{id:"view.zoom-out",label:"Zoom out",kind:"command",exec:"canvas",keys:[Et("⌘−","global",{inText:!0,when:qx})],legacy:{menu:"Zoom Out",sheet:"Zoom in / out"}},{id:"view.zoom-fit",label:"Zoom to fit",kind:"command",exec:"canvas",keys:[Et("⌘0","global",{inText:!0,when:qx})],legacy:{menu:"Fit to Screen",sheet:"Fit · actual size"}},{id:"view.zoom-actual",label:"Actual size",kind:"command",exec:"canvas",keys:[Et("⇧0","global",{inText:!1,when:qx})],legacy:{menu:"Actual Size · 100 %",sheet:"Fit · actual size"}},{id:"view.zoom-to-artboard",label:"Zoom to artboard",kind:"command",exec:"canvas"},{id:"view.jump-artboard",label:"Go to artboard",kind:"command",exec:"canvas",keys:["1","2","3","4","5","6","7","8","9"].map((e,t)=>Et(`⌥⌘${e}`,"global",{inText:!0,alias:t>0,when:qx}))},{id:"view.pages",label:"Pages",kind:"toggle",exec:"canvas",enabled:{facts:["canvasOpen"],mode:["edit","viewing"]},help:{group:"canvas",order:60},search:{keywords:["pages","one at a time","artboards","page","canvas","slides"]}},{id:"pages.next",label:"Next page",kind:"command",exec:"canvas",enabled:{facts:["canvasOpen","pagesView"]},keys:[Et("PageDown","global",{when:{focus:["canvas"],mode:["edit","viewing"]}}),Et("→","global",{alias:!0,when:{focus:["canvas"],mode:["edit","viewing"],selection:["none"]}})],help:{group:"canvas",order:61},search:{keywords:["pages","forward","artboard","page"]}},{id:"pages.prev",label:"Previous page",kind:"command",exec:"canvas",enabled:{facts:["canvasOpen","pagesView"]},keys:[Et("PageUp","global",{when:{focus:["canvas"],mode:["edit","viewing"]}}),Et("←","global",{alias:!0,when:{focus:["canvas"],mode:["edit","viewing"],selection:["none"]}})],help:{group:"canvas",order:62},search:{keywords:["pages","back","artboard","page"]}},{id:"view.advanced-open-all",label:"Open all Advanced sections",kind:"command",exec:"shell",search:{where:"Once · every panel"}},{id:"view.advanced-close-all",label:"Close all Advanced sections",kind:"command",exec:"shell",search:{where:"Settings › Advanced › Reset"}}]});var Cm,ir;var Ii=Ke(()=>{tSe();fSe();gSe();ySe();wSe();kSe();NSe();$Se();MSe();LSe();DSe();FSe();jSe();HSe();VSe();s1e();l1e();u1e();p1e();Cm=Object.freeze([...BSe,...bSe,...ESe,...d1e,...a1e,...i1e,...WSe,...c1e,...RSe,...hSe,...eSe,...xSe,...uSe,...pSe,...dSe,...PSe,...vSe,...OSe,...zSe,...USe,...CSe]),ir=new Map(Cm.map((e)=>[e.id,e]))});function O7(e){let t=Array.isArray(e)?e.filter((n)=>typeof n==="string"&&n):[];if(t.length===SI.length&&t.every((n,o)=>n===SI[o]))return;SI=t;for(let n of[...M7])n(SI)}function r3(){return[...SI]}function f1e(e){return M7.add(e),()=>{M7.delete(e)}}var SI,M7;var a3=Ke(()=>{SI=[],M7=new Set});var L7,m1e;var h1e=Ke(()=>{L7={view:0,comment:1,edit:2,owner:3},m1e=["timeline","selection","tools","global"]});function Qc(e,t){if(!e)return!0;if(e.minRole&&L7[t.role]<L7[e.minRole])return!1;if(e.shell&&!e.shell.includes(t.shell))return!1;if(e.notShell?.includes(t.shell))return!1;if(e.mode&&!e.mode.includes(t.mode))return!1;if(e.focus&&!e.focus.includes(t.focus))return!1;if(e.selection&&!e.selection.includes(t.selection))return!1;if(e.facts&&!e.facts.every((n)=>t.facts.has(n)))return!1;if(e.notFacts?.some((n)=>t.facts.has(n)))return!1;if(e.any&&!e.any.some((n)=>Qc(n,t)))return!1;return!0}function Kl(e,t){return Qc(e.visible,t)}function j1(e,t){return Kl(e,t)&&Qc(e.enabled,t)}function g1e(e,t=()=>!0){let n=new Map;for(let o of e)for(let r of o.keys??[]){if(!t(o,r))continue;let a=n.get(r.chord)??[];a.push({action:o,binding:r}),n.set(r.chord,a)}return n}function kPt(e){return e.inText??(aSe(e.chord)&&!iSe.has(e.chord))}function SPt(e,t){if(t.focus==="text"&&!kPt(e.binding))return!1;if(t.focus==="modal"&&!e.binding.inModal)return!1;if(e.binding.layer==="timeline"&&t.focus!=="timeline")return!1;return Kl(e.action,t)&&Qc(e.binding.when,t)}function U1(e,t,n,o="tap"){if(n.singleKeys===!1&&rSe(t))return null;let r=e.get(t);if(!r?.length)return null;let a=r.filter((s)=>o==="hold"===!!s.binding.hold&&SPt(s,n));if(!a.length)return null;for(let s of m1e){let l=a.filter((c)=>c.binding.layer===s);if(l.length)return{action:l[0].action,binding:l[0].binding,ambiguous:l.slice(1)}}return null}var Ku=Ke(()=>{of();h1e()});function _Pt(e,t){let n=e.when?.focus;if(t==="shell")return e.layer==="timeline"||!n||n.some((o)=>o==="chrome"||o==="timeline"||o==="modal");return e.layer!=="timeline"&&(!n||n.includes("canvas")||n.every((o)=>o==="text"))}function H1(e,t,n){return g1e(e,(o,r)=>n(o.id)&&_Pt(r,t))}var s3=Ke(()=>{Ku()});function _I(e,t=120){if(typeof e!=="string")return null;return e.replace(CPt,"").trim().slice(0,t).trim()||null}function P7(e,t={}){if(!Array.isArray(e)||e.length===0)return null;let{artboardId:n=null,total:o=0}=t,r=(Array.isArray(n)?n:[n]).filter(Boolean);for(let a of r){let s=e.find((l)=>l.artboardId===a);if(s)return s.id}for(let a of r){let s=e.find((l)=>l.id===a);if(s)return s.id}if(o>0){let a=e.filter((s)=>s.durationInFrames===o);if(a.length===1)return a[0].id}return e[0].id}function ek(e,t){if(!Array.isArray(e)||e.length===0)return null;return e.find((n)=>n.id===t)??e[0]}var CPt;var W1=Ke(()=>{CPt=/[\u202a-\u202e\u2066-\u2069\u200b-\u200f\u2060\u00ad\ufeff\u0000-\u001f\u007f-\u009f]/g});var i3="mdcc-usage-tour-seen",l3="mdcc-collab-tour-seen",St="__system__",CI="mdcc-theme",NI="mdcc-show-hidden",c3="maude-cp-mode",AI="mdcc-sidebar-open",TI="mdcc-minimap-visible",II="mdcc-zoomctl-visible",EI="mdcc-annotations-visible",D7=30000,$I="mdcc-panel-sides",RI="mdcc-layers-mode",os,MI=(e)=>/\.(tsx|jsx)$/i.test(String(e||"")),Nm="2.4.0",z7;var Ho=Ke(()=>{os=/\.(tsx|html?)$/i,z7=[]});function NPt(){return typeof window<"u"?window.__TAURI__:null}function APt(){let e=typeof window<"u"?window:null;if(!e)return null;if(e.__maudeShellBus)return e.__maudeShellBus;let t=NPt(),n=t?.core?.Channel;if(!n||!t?.core?.invoke)return null;let o=new Map,r=new n;r.onmessage=(s)=>{let l=s&&typeof s.kind==="string"?o.get(s.kind):null;if(!l)return;for(let c of[...l])try{c(s.payload)}catch(u){console.error("[maude] shell message handler failed",u)}};let a={handlers:o,ready:null};return a.ready=Promise.resolve().then(()=>t.core.invoke("shell_subscribe",{onMessage:r})).then(()=>!0,(s)=>{if(e.__maudeShellBus===a)delete e.__maudeShellBus;throw s}),e.__maudeShellBus=a,a}function tk(e,t){let n=APt();if(!n)return Promise.resolve(()=>{});let o=n.handlers.get(e);if(!o)o=new Set,n.handlers.set(e,o);o.add(t);let r=()=>{o.delete(t)};return n.ready.then(()=>r,(a)=>{throw r(),a})}function $Pt(e){return e.length<=63&&TPt.test(e)&&e!=="canvas"&&!e.startsWith("view-")&&!e.startsWith("canvas-")}function RPt(e){if(!e||e.length>512||EPt.test(e)||/^[A-Za-z]:/.test(e))return null;let t=e.startsWith(".design/")?e.slice(8):e;if(t.split("/").some((n)=>n===""||n==="."||n===".."))return null;return t}function MPt(e){try{return decodeURIComponent(e)}catch{return null}}function y1e(e){if(typeof e!=="string"||e===""||IPt.test(e))return null;if(new TextEncoder().encode(e).length>2048)return null;let t;try{t=new URL(e)}catch{return null}if(t.protocol!=="https:"||t.port!==""||t.username!==""||t.password!=="")return null;let n=".cloud.maude.sh";if(!t.hostname.endsWith(n))return null;let o=t.hostname.slice(0,-n.length);if(!$Pt(o))return null;let r=`https://${o}.cloud.maude.sh`;if(t.origin!==r)return null;if(t.pathname===""||t.pathname==="/")return`${r}/`;if(!t.pathname.startsWith("/c/"))return null;let a=t.pathname.slice(3).split("/").map(MPt);if(a.some((l)=>l===null||l.includes("/")||l.includes("\\")))return null;let s=RPt(a.join("/"));if(!s)return null;return`${r}/c/${s.split("/").map(encodeURIComponent).join("/")}`}function u3(e,t){if(!e||typeof e!=="object")return null;let n=e;if(n.reason!=="browser-door")return null;let o=y1e(n.url);if(!o)return null;if(t&&new URL(o).hostname!==`${t}.cloud.maude.sh`)return null;return{url:o}}function OPt(e){try{globalThis.window?.open?.(e,"_blank","noopener,noreferrer")}catch{}}async function d3({url:e,profile:t},{invoke:n,openInBrowser:o=OPt}){let r=y1e(e);if(!r)return{ok:!1,error:"That isn't a Maude Cloud project address."};if(!n)return o(r),{ok:!0,via:"browser"};try{return await n("open_cell_tab",typeof t==="string"&&t?{url:r,profile:t}:{url:r}),{ok:!0,via:"tab"}}catch(a){let s=b1e(a);if(!s.includes("Open this project in your browser."))return{ok:!1,error:s||"That isn't a Maude Cloud project address."}}try{return await n("open_cloud_url",{url:new URL(r).origin}),{ok:!0,via:"browser"}}catch(a){return{ok:!1,error:b1e(a)||"Open this project in your browser."}}}var TPt,IPt,EPt,b1e=(e)=>String((e&&typeof e==="object"&&"message"in e?e.message:e)??"").trim();var p3=Ke(()=>{TPt=/^[a-z0-9]+(?:-[a-z0-9]+)*$/,IPt=/[\s\u0000-\u001f\u007f-\u009f\\@?#]/,EPt=/[\u0000-\u001f\u007f-\u009f\\]/});function Kt(){return typeof window<"u"&&!!window.__TAURI__}function LPt(){let e=typeof window<"u"?window.__TAURI__:null;if(!e)throw Error("GitHub sign-in is only available in the Maude desktop app.");return e}function Co(e,t){return LPt().core.invoke(e,t)}function PPt(e,t){return tk(e,t)}function fg(e,t){return tk(e,t)}async function mg(e,t={}){let n={...t.headers||{}};if(t.body)n["Content-Type"]="application/json";let o;try{o=await fetch(e,{...t,headers:n})}catch{return{ok:!1,status:0,json:{error:"Maude isn’t reachable right now."}}}let r=null;try{r=await o.json()}catch{r=null}return{ok:o.ok,status:o.status,json:r}}function q1(e){if(Kt())return Co("open_team_server_signin",{url:e}).then(()=>"ok",(t)=>/Refusing/i.test(String(t))?"refused":"failed");try{return window.open(e,"_blank","noopener"),Promise.resolve("ok")}catch{return Promise.resolve("failed")}}async function nk(e){let t=await DPt(e),n=u3(t.json);if(n)return d3({url:n.url},{invoke:Kt()?Co:null});if(!t.ok||!t.json?.ok)return{ok:!1,error:t.json?.error||"The project could not be opened.",status:t.status};try{return{ok:!0,path:await F7(t.json),project:t.json}}catch(o){return{ok:!1,error:String(o?.message||o||"The project could not be opened.")}}}function gg(e,t){return{size:e.size,type:t||"",name:e.name,async read(n,o){let r=await Co("read_picked_media",{token:e.token,offset:n,len:o-n});return new Uint8Array(r)},release:()=>Co("release_picked_media",{token:e.token}).catch(()=>{})}}async function w3(e,t){let n=gg(e,t);try{return new Blob([await n.read(0,e.size)],t?{type:t}:void 0)}finally{n.release()}}var f3=()=>Co("github_sign_in"),m3=()=>Co("github_sign_out"),Dy=()=>Kt()?Co("cloud_sign_in_prepare"):Promise.resolve(!1),V1=()=>Kt()?Co("cloud_signed_in"):Promise.resolve(!1),v1e=()=>Kt()?Promise.resolve().then(()=>Co("accounts_list")).then((e)=>Array.isArray(e)?e:null,()=>null):Promise.resolve(null),h3=()=>Co("github_is_signed_in"),w1e=()=>Co("github_open_verification",{url:"https://github.com/login/device"}),OI=(e)=>Co("open_github_url",{url:e}),g3=(e)=>Co("open_cloud_url",{url:e}),b3=(e)=>fg("github://device-code",e),y3=(e)=>fg("github://signed-in",e),G1=(e)=>fg("menu://action",(t)=>e(t?.id)),zy=()=>mg("/_api/github/identity"),x1e=()=>mg("/_api/github/repos"),k1e=(e)=>mg("/_api/github/invite",{method:"POST",body:JSON.stringify({username:e})}),S1e=(e)=>mg("/_api/github/clone",{method:"POST",body:JSON.stringify(e)}),_1e=(e)=>mg("/_api/github/create-project",{method:"POST",body:JSON.stringify(e)}),C1e=(e)=>mg("/_api/project/create-local",{method:"POST",body:JSON.stringify(e)}),N1e=(e)=>mg("/_api/design/init",{method:"POST",body:JSON.stringify({dir:e})}),A1e=(e)=>mg("/_api/hub/link",{method:"POST",body:JSON.stringify(e)}),DPt=(e)=>mg("/_api/projects/prepare",{method:"POST",body:JSON.stringify(e)}),F7=(e)=>Co("managed_project_open",{serverUrl:e.serverUrl,projectId:e.projectId,name:e.name||e.projectId,canvasGroups:e.canvasGroups||[]}),v3=()=>Kt()?Co("managed_projects_list"):Promise.resolve([]),T1e=()=>Co("app_recent_projects"),LI=()=>Co("pick_directory"),hg=(e,t)=>Co("open_local_project",{path:e,open:t}),I1e=(e)=>Co("resolve_project_for_link",{project:e}),Fy=()=>Co("pick_media_file"),ok=()=>Co("pick_media_files"),B7=(e)=>PPt("update-ready",e),rk=()=>Co("restart_to_update"),E1e=()=>Co("check_for_updates"),$1e=()=>Co("prefs_get_claude_auto_setup"),R1e=(e)=>Co("prefs_set_claude_auto_setup",{enabled:e}),M1e=()=>Co("prefs_get_terminal_opens"),O1e=(e)=>Co("prefs_set_terminal_opens",{enabled:e});var Mo=Ke(()=>{p3()});function zPt(e){if(!e||typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}class z1e{constructor(){this.subscribe=(e)=>(this.subscribers.push(e),this.getActiveToasts().forEach((t)=>e(t)),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=(e)=>{this.subscribers.forEach((t)=>t(e))},this.addToast=(e)=>{this.publish(e),this.toasts=[...this.toasts,e],this.trimHistory()},this.trimHistory=()=>{let e=this.toasts.length-YPt;if(e<=0)return;this.toasts=this.toasts.filter((t)=>{if(e>0&&this.dismissedToasts.has(t.id))return this.dismissedToasts.delete(t.id),e--,!1;return!0})},this.create=(e)=>{let{message:t,...n}=e,o=L1e(e),r=this.pendingDismissals.get(o);if(r!==void 0)cancelAnimationFrame(r),this.pendingDismissals.delete(o),this.dismissedToasts.delete(o);let a=this.dismissedToasts.has(o),s=e.dismissible===void 0?!0:e.dismissible;if(a)this.dismissedToasts.delete(o),this.toasts=this.toasts.filter((c)=>c.id!==o);if(a?void 0:this.toasts.find((c)=>c.id===o))this.toasts=this.toasts.map((c)=>{if(c.id===o)return this.publish({...c,...e,id:o,title:t}),{...c,...e,id:o,dismissible:s,title:t};return c});else this.addToast({title:t,...n,dismissible:s,id:o});return o},this.dismiss=(e)=>{if(e===void 0||e===null)return this.getActiveToasts().forEach((n)=>{this.dismissedToasts.add(n.id),this.subscribers.forEach((o)=>o({id:n.id,dismiss:!0}))}),e;this.dismissedToasts.add(e);let t=this.pendingDismissals.get(e);if(t!==void 0)cancelAnimationFrame(t);return this.pendingDismissals.set(e,requestAnimationFrame(()=>{this.pendingDismissals.delete(e),this.subscribers.forEach((n)=>n({id:e,dismiss:!0}))})),e},this.message=(e,t)=>this.create({...t,message:e,type:void 0}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n=void 0;if(t.loading!==void 0)n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!=="function"?t.description:void 0});let o=Promise.resolve(e instanceof Function?e():e),r=n!==void 0,a,s=o.then(async(c)=>{if(a=["resolve",c],Js(c))r=!1,this.create({id:n,type:"default",message:c});else if(ZPt(c)&&!c.ok){r=!1;let d=typeof t.error==="function"?await t.error(`HTTP error! status: ${c.status}`):t.error,p=typeof t.description==="function"?await t.description(`HTTP error! status: ${c.status}`):t.description,h=typeof d==="object"&&!Js(d)?d:{message:d};this.create({id:n,type:"error",description:p,...h})}else if(c instanceof Error){r=!1;let d=typeof t.error==="function"?await t.error(c):t.error,p=typeof t.description==="function"?await t.description(c):t.description,h=typeof d==="object"&&!Js(d)?d:{message:d};this.create({id:n,type:"error",description:p,...h})}else if(t.success!==void 0){r=!1;let d=typeof t.success==="function"?await t.success(c):t.success,p=typeof t.description==="function"?await t.description(c):t.description,h=typeof d==="object"&&!Js(d)?d:{message:d};this.create({id:n,type:"success",description:p,...h})}}).catch(async(c)=>{if(a=["reject",c],t.error!==void 0){r=!1;let u=typeof t.error==="function"?await t.error(c):t.error,d=typeof t.description==="function"?await t.description(c):t.description,f=typeof u==="object"&&!Js(u)?u:{message:u};this.create({id:n,type:"error",description:d,...f})}}).finally(()=>{if(r)this.dismiss(n),n=void 0;t.finally==null||t.finally.call(t)}),l=()=>new Promise((c,u)=>s.then(()=>a[0]==="reject"?u(a[1]):c(a[1])).catch(u));if(typeof n!=="string"&&typeof n!=="number")return{unwrap:l};else return Object.assign(n,{unwrap:l})},this.custom=(e,t)=>{let n=L1e(t);return this.create({...t,jsx:e(n),id:n,type:void 0}),n},this.getActiveToasts=()=>this.toasts.filter((e)=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set,this.pendingDismissals=new Map}}function x3(e){return e.label!==void 0}function Am(...e){return e.filter(Boolean).join(" ")}function lDt(e){let[t,n]=e.split("-"),o=[];if(t)o.push(t);if(n)o.push(n);return o}function D1e(){if(typeof window>"u")return"ltr";if(typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");if(e==="auto"||!e)return window.getComputedStyle(document.documentElement).direction;return e}function uDt(e,t){let n={};return[e,t].forEach((o,r)=>{let a=r===1,s=a?"--mobile-offset":"--offset",l=a?oDt:nDt;function c(u){["top","right","bottom","left"].forEach((d)=>{n[`${s}-${d}`]=typeof u==="number"?`${u}px`:u})}if(typeof o==="number"||typeof o==="string")c(o);else if(typeof o==="object")["top","right","bottom","left"].forEach((u)=>{if(o[u]===void 0)n[`${s}-${u}`]=l;else n[`${s}-${u}`]=typeof o[u]==="number"?`${o[u]}px`:o[u]});else c(l)}),n}var FPt=(e)=>{switch(e){case"success":return UPt;case"info":return WPt;case"warning":return HPt;case"error":return VPt;default:return null}},BPt,jPt=({visible:e,className:t})=>ar("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},ar("div",{className:"sonner-spinner"},BPt.map((n,o)=>ar("div",{className:"sonner-loading-bar",key:`spinner-bar-${o}`})))),UPt,HPt,WPt,VPt,GPt,qPt=()=>{let[e,t]=T(document.hidden);return M(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>document.removeEventListener("visibilitychange",n)},[]),e},KPt=1,YPt=100,L1e=(e)=>{var t;return typeof(e==null?void 0:e.id)==="number"||(e==null?void 0:(t=e.id)==null?void 0:t.length)>0?e.id:KPt++},eu,XPt=(e,t)=>eu.message(e,t),ZPt=(e)=>e&&typeof e==="object"&&("ok"in e)&&typeof e.ok==="boolean"&&("status"in e)&&typeof e.status==="number",JPt,QPt=()=>eu.toasts,eDt=()=>eu.getActiveToasts(),k3,tDt=3,nDt="24px",oDt="16px",P1e=4000,rDt=356,aDt=14,sDt=45,iDt=200,cDt=(e)=>{var t,n,o,r,a,s,l,c,u;let{invert:d,toast:p,unstyled:f,interacting:h,setHeights:g,visibleToasts:b,heights:v,index:y,toasts:w,expanded:x,removeToast:k,defaultRichColors:_,closeButton:N,style:C,cancelButtonStyle:I,actionButtonStyle:R,className:O="",descriptionClassName:H="",duration:B,position:j,gap:F,expandByDefault:G,classNames:X,icons:Y,closeButtonAriaLabel:W="Close toast"}=e,[D,K]=T(null),[P,q]=T(null),[Z,te]=T(!1),[ne,pe]=T(!1),[ae,ve]=T(!1),[_e,Ae]=T(!1),[He,ie]=T(!1),[ke,me]=T(0),[ye,Oe]=T(0),$t=U(p.duration||B||P1e),Be=U(null),ft=U(null),we=y===0,lt=y+1<=b,Ue=p.type,It=Ue!=null?Ue:"default",mn=p.dismissible!==!1,Tt=p.className||"",ct=p.descriptionClassName||"",Se=fe(()=>v.findIndex((Vt)=>Vt.toastId===p.id)||0,[v,p.id]),We=fe(()=>{var Vt;return(Vt=p.closeButton)!=null?Vt:N},[p.closeButton,N]),Me=fe(()=>p.duration||B||P1e,[p.duration,B]),ut=U(0),Ee=U(0),nt=U(0),ze=U(null),[Je,yt]=j.split("-"),Pt=fe(()=>v.reduce((Vt,Bt,En)=>{if(En>=Se)return Vt;return Vt+Bt.height},0),[v,Se]),At=qPt(),on=fe(()=>{var Vt;return(Vt=e.swipeDirections)!=null?Vt:lDt(j)},[e.swipeDirections,j]),tn=p.invert||d,Wt=Ue==="loading";Ee.current=fe(()=>Se*F+Pt,[Se,Pt]),M(()=>{$t.current=Me},[Me]),M(()=>{te(!0)},[]),M(()=>{let Vt=ft.current;if(Vt){let Bt=Vt.getBoundingClientRect().height;return Oe(Bt),g((En)=>[{toastId:p.id,height:Bt,position:p.position},...En]),()=>g((En)=>En.filter((Yt)=>Yt.toastId!==p.id))}},[g,p.id]),eo(()=>{if(!Z)return;let Vt=ft.current,Bt=Vt.style.height;Vt.style.height="auto";let En=Vt.getBoundingClientRect().height;Vt.style.height=Bt,Oe(En),g((Yt)=>{if(!Yt.find((Gt)=>Gt.toastId===p.id))return[{toastId:p.id,height:En,position:p.position},...Yt];else return Yt.map((Gt)=>Gt.toastId===p.id?{...Gt,height:En}:Gt)})},[Z,p.title,p.description,g,p.id,p.jsx,p.action,p.cancel]);let dt=ee(()=>{pe(!0),me(Ee.current),g((Vt)=>Vt.filter((Bt)=>Bt.toastId!==p.id)),setTimeout(()=>{k(p)},iDt)},[p,k,g,Ee]);M(()=>{if(p.promise&&Ue==="loading"||p.duration===1/0||p.type==="loading")return;let Vt,Bt=()=>{if(nt.current<ut.current){let Yt=new Date().getTime()-ut.current;$t.current=$t.current-Yt}nt.current=new Date().getTime()},En=()=>{if($t.current===1/0)return;ut.current=new Date().getTime(),Vt=setTimeout(()=>{p.onAutoClose==null||p.onAutoClose.call(p,p),dt()},$t.current)};if(x||h||At)Bt();else En();return()=>clearTimeout(Vt)},[x,h,p,Ue,At,dt]),M(()=>{if(p.delete)dt(),p.onDismiss==null||p.onDismiss.call(p,p)},[dt,p.delete]);function vt(){var Vt;if(Y==null?void 0:Y.loading){var Bt;return ar("div",{className:Am(X==null?void 0:X.loader,p==null?void 0:(Bt=p.classNames)==null?void 0:Bt.loader,"sonner-loader"),"data-visible":Ue==="loading"},Y.loading)}return ar(jPt,{className:Am(X==null?void 0:X.loader,p==null?void 0:(Vt=p.classNames)==null?void 0:Vt.loader),visible:Ue==="loading"})}let mt=p.icon||(Y==null?void 0:Y[Ue])||FPt(Ue);var ht,vn;return ar("li",{tabIndex:0,ref:ft,className:Am(O,Tt,X==null?void 0:X.toast,p==null?void 0:(t=p.classNames)==null?void 0:t.toast,X==null?void 0:X[It],p==null?void 0:(n=p.classNames)==null?void 0:n[It]),"data-sonner-toast":"","data-rich-colors":(ht=p.richColors)!=null?ht:_,"data-styled":!Boolean(p.jsx||p.unstyled||f),"data-mounted":Z,"data-promise":Boolean(p.promise),"data-swiped":He,"data-removed":ne,"data-visible":lt,"data-y-position":Je,"data-x-position":yt,"data-index":y,"data-front":we,"data-swiping":ae,"data-dismissible":mn,"data-type":Ue,"data-invert":tn,"data-swipe-out":_e,"data-swipe-direction":P,"data-expanded":Boolean(x||G&&Z),"data-testid":p.testId,style:{"--index":y,"--toasts-before":y,"--z-index":w.length-y,"--offset":`${ne?ke:Ee.current}px`,"--initial-height":G?"auto":`${ye}px`,...C,...p.style},onDragEnd:()=>{ve(!1),K(null),ze.current=null},onPointerDown:(Vt)=>{if(Vt.button===2)return;if(Wt||!mn)return;if(Be.current=new Date,me(Ee.current),Vt.target.setPointerCapture(Vt.pointerId),Vt.target.tagName==="BUTTON")return;ve(!0),ze.current={x:Vt.clientX,y:Vt.clientY}},onPointerUp:()=>{var Vt,Bt,En;if(_e||!mn)return;ze.current=null;let Yt=Number(((Vt=ft.current)==null?void 0:Vt.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),_n=Number(((Bt=ft.current)==null?void 0:Bt.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Gt=new Date().getTime()-((En=Be.current)==null?void 0:En.getTime()),Xe=D==="x"?Yt:_n,Jt=Math.abs(Xe)/Gt;if((D==="x"?on.includes(Yt>0?"right":"left"):on.includes(_n>0?"bottom":"top"))&&(Math.abs(Xe)>=sDt||Jt>0.11)){if(me(Ee.current),p.onDismiss==null||p.onDismiss.call(p,p),D==="x")q(Yt>0?"right":"left");else q(_n>0?"down":"up");dt(),Ae(!0);return}else{var Kn,de;(Kn=ft.current)==null||Kn.style.setProperty("--swipe-amount-x","0px"),(de=ft.current)==null||de.style.setProperty("--swipe-amount-y","0px")}ie(!1),ve(!1),K(null)},onPointerMove:(Vt)=>{var Bt,En,Yt;if(!ze.current||!mn)return;if(((Bt=window.getSelection())==null?void 0:Bt.toString().length)>0)return;let Gt=Vt.clientY-ze.current.y,Xe=Vt.clientX-ze.current.x;if(!D&&(Math.abs(Xe)>1||Math.abs(Gt)>1))K(Math.abs(Xe)>Math.abs(Gt)?"x":"y");let Jt={x:0,y:0},Rn=(Kn)=>1/(1.5+Math.abs(Kn)/20);if(D==="y"){if(on.includes("top")||on.includes("bottom"))if(on.includes("top")&&Gt<0||on.includes("bottom")&&Gt>0)Jt.y=Gt;else{let Kn=Gt*Rn(Gt);Jt.y=Math.abs(Kn)<Math.abs(Gt)?Kn:Gt}}else if(D==="x"){if(on.includes("left")||on.includes("right"))if(on.includes("left")&&Xe<0||on.includes("right")&&Xe>0)Jt.x=Xe;else{let Kn=Xe*Rn(Xe);Jt.x=Math.abs(Kn)<Math.abs(Xe)?Kn:Xe}}if(Math.abs(Jt.x)>0||Math.abs(Jt.y)>0)ie(!0);(En=ft.current)==null||En.style.setProperty("--swipe-amount-x",`${Jt.x}px`),(Yt=ft.current)==null||Yt.style.setProperty("--swipe-amount-y",`${Jt.y}px`)}},We&&!p.jsx&&Ue!=="loading"?ar("button",{"aria-label":W,"data-disabled":Wt,"data-close-button":!0,onClick:Wt||!mn?()=>{}:()=>{dt(),p.onDismiss==null||p.onDismiss.call(p,p)},className:Am(X==null?void 0:X.closeButton,p==null?void 0:(o=p.classNames)==null?void 0:o.closeButton)},(vn=Y==null?void 0:Y.close)!=null?vn:GPt):null,(Ue||p.icon||p.promise)&&p.icon!==null&&((Y==null?void 0:Y[Ue])!==null||p.icon)?ar("div",{"data-icon":"",className:Am(X==null?void 0:X.icon,p==null?void 0:(r=p.classNames)==null?void 0:r.icon)},Ue==="loading"?p.icon||vt():p.promise?vt():null,Ue!=="loading"?mt:null):null,ar("div",{"data-content":"",className:Am(X==null?void 0:X.content,p==null?void 0:(a=p.classNames)==null?void 0:a.content)},ar("div",{"data-title":"",className:Am(X==null?void 0:X.title,p==null?void 0:(s=p.classNames)==null?void 0:s.title)},p.jsx?p.jsx:typeof p.title==="function"?p.title():p.title),p.description?ar("div",{"data-description":"",className:Am(H,ct,X==null?void 0:X.description,p==null?void 0:(l=p.classNames)==null?void 0:l.description)},typeof p.description==="function"?p.description():p.description):null),Js(p.cancel)?p.cancel:p.cancel&&x3(p.cancel)?ar("button",{"data-button":!0,"data-cancel":!0,style:p.cancelButtonStyle||I,onClick:(Vt)=>{if(!x3(p.cancel))return;if(!mn)return;p.cancel.onClick==null||p.cancel.onClick.call(p.cancel,Vt),dt()},className:Am(X==null?void 0:X.cancelButton,p==null?void 0:(c=p.classNames)==null?void 0:c.cancelButton)},p.cancel.label):null,Js(p.action)?p.action:p.action&&x3(p.action)?ar("button",{"data-button":!0,"data-action":!0,style:p.actionButtonStyle||R,onClick:(Vt)=>{if(!x3(p.action))return;if(p.action.onClick==null||p.action.onClick.call(p.action,Vt),Vt.defaultPrevented)return;dt()},className:Am(X==null?void 0:X.actionButton,p==null?void 0:(u=p.classNames)==null?void 0:u.actionButton)},p.action.label):null)},F1e;var B1e=Ke(()=>{re();mm();BPt=Array(12).fill(0),UPt=ar("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20","aria-hidden":"true"},ar("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),HPt=ar("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20","aria-hidden":"true"},ar("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),WPt=ar("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20","aria-hidden":"true"},ar("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),VPt=ar("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20","aria-hidden":"true"},ar("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),GPt=ar("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true"},ar("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),ar("line",{x1:"6",y1:"6",x2:"18",y2:"18"}));eu=new z1e,JPt=XPt,k3=Object.assign(JPt,{success:eu.success,info:eu.info,warning:eu.warning,error:eu.error,custom:eu.custom,message:eu.message,promise:eu.promise,dismiss:eu.dismiss,loading:eu.loading},{getHistory:QPt,getToasts:eDt});zPt("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--normal-text);background:var(--normal-bg);border:1px solid var(--normal-border);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{-webkit-user-select:none;user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");F1e=jn(function(t,n){let{id:o,invert:r,position:a="bottom-right",hotkey:s=["altKey","KeyT"],expand:l,closeButton:c,className:u,offset:d,mobileOffset:p,theme:f="light",richColors:h,duration:g,style:b,visibleToasts:v=tDt,toastOptions:y,dir:w=D1e(),gap:x=aDt,icons:k,customAriaLabel:_,containerAriaLabel:N="Notifications"}=t,[C,I]=T([]),R=fe(()=>{if(o)return C.filter((te)=>te.toasterId===o);return C.filter((te)=>!te.toasterId)},[C,o]),O=fe(()=>Array.from(new Set([a].concat(R.filter((te)=>te.position).map((te)=>te.position)))),[R,a]),[H,B]=T([]),[j,F]=T(!1),[G,X]=T(!1),[Y,W]=T(f!=="system"?f:typeof window<"u"?window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":"light"),D=U(null),K=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),P=U(null),q=U(!1),Z=ee((te)=>{I((ne)=>{var pe;if(!((pe=ne.find((ae)=>ae.id===te.id))==null?void 0:pe.delete))eu.dismiss(te.id);return ne.filter(({id:ae})=>ae!==te.id)})},[]);return M(()=>eu.subscribe((te)=>{if(te.dismiss){requestAnimationFrame(()=>{I((ne)=>ne.map((pe)=>pe.id===te.id?{...pe,delete:!0}:pe))});return}setTimeout(()=>{rq(()=>{I((ne)=>{let pe=ne.findIndex((ae)=>ae.id===te.id);if(pe!==-1)return[...ne.slice(0,pe),{...ne[pe],...te},...ne.slice(pe+1)];return[te,...ne]})})})}),[]),M(()=>{if(f!=="system"){W(f);return}if(f==="system")if(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches)W("dark");else W("light");if(typeof window>"u")return;let te=window.matchMedia("(prefers-color-scheme: dark)");try{te.addEventListener("change",({matches:ne})=>{if(ne)W("dark");else W("light")})}catch(ne){te.addListener(({matches:pe})=>{try{if(pe)W("dark");else W("light")}catch(ae){console.error(ae)}})}},[f]),M(()=>{if(C.length<=1)F(!1)},[C]),M(()=>{let te=(ne)=>{var pe;if(s.length>0&&s.every((_e)=>ne[_e]||ne.code===_e)){var ve;F(!0),(ve=D.current)==null||ve.focus()}if(ne.code==="Escape"&&(document.activeElement===D.current||((pe=D.current)==null?void 0:pe.contains(document.activeElement))))F(!1)};return document.addEventListener("keydown",te),()=>document.removeEventListener("keydown",te)},[s]),M(()=>{if(D.current)return()=>{if(P.current)P.current.focus({preventScroll:!0}),P.current=null,q.current=!1}},[D.current]),ar("section",{ref:n,"aria-label":_!=null?_:`${N} ${K}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0,"data-react-aria-top-layer":!0},O.map((te,ne)=>{var pe;let[ae,ve]=te.split("-");if(!R.length)return null;return ar("ol",{key:te,dir:w==="auto"?D1e():w,tabIndex:-1,ref:D,className:u,"data-sonner-toaster":!0,"data-sonner-theme":Y,"data-y-position":ae,"data-x-position":ve,style:{"--front-toast-height":`${((pe=H[0])==null?void 0:pe.height)||0}px`,"--width":`${rDt}px`,"--gap":`${x}px`,...b,...uDt(d,p)},onBlur:(_e)=>{if(q.current&&!_e.currentTarget.contains(_e.relatedTarget)){if(q.current=!1,P.current)P.current.focus({preventScroll:!0}),P.current=null}},onFocus:(_e)=>{if(_e.target instanceof HTMLElement&&_e.target.dataset.dismissible==="false")return;if(!q.current)q.current=!0,P.current=_e.relatedTarget},onMouseEnter:()=>F(!0),onMouseMove:()=>F(!0),onMouseLeave:()=>{if(!G)F(!1)},onDragEnd:()=>F(!1),onPointerDown:(_e)=>{if(_e.target instanceof HTMLElement&&_e.target.dataset.dismissible==="false")return;X(!0)},onPointerUp:()=>X(!1)},R.filter((_e)=>!_e.position&&ne===0||_e.position===te).map((_e,Ae)=>{var He,ie;return ar(cDt,{key:_e.id,icons:k,index:Ae,toast:_e,defaultRichColors:h,duration:(He=y==null?void 0:y.duration)!=null?He:g,className:y==null?void 0:y.className,descriptionClassName:y==null?void 0:y.descriptionClassName,invert:r,visibleToasts:v,closeButton:(ie=y==null?void 0:y.closeButton)!=null?ie:c,interacting:G,position:te,style:y==null?void 0:y.style,unstyled:y==null?void 0:y.unstyled,classNames:y==null?void 0:y.classNames,cancelButtonStyle:y==null?void 0:y.cancelButtonStyle,actionButtonStyle:y==null?void 0:y.actionButtonStyle,closeButtonAriaLabel:y==null?void 0:y.closeButtonAriaLabel,removeToast:Z,toasts:R.filter((ke)=>ke.position==_e.position),heights:H.filter((ke)=>ke.position==_e.position),setHeights:B,expandByDefault:l,gap:x,expanded:j,swipeDirections:t.swipeDirections})}))}))})});function j1e(e,t,n){var o=null;if(n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),"key"in t){n={};for(var r in t)r!=="key"&&(n[r]=t[r])}else n=t;return t=n.ref,{$$typeof:dDt,type:e,key:o,ref:t!==void 0?t:null,props:n}}var dDt,pDt,J,i,m;var V=Ke(()=>{dDt=Symbol.for("react.transitional.element"),pDt=Symbol.for("react.fragment");J=pDt,i=j1e,m=j1e});function K1({d:e,size:t=14,color:n}){return i("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:n||"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",style:{flex:"none"},children:i("path",{d:e})})}function ce({name:e,size:t=16,className:n}){return i("svg",{className:n,width:t,height:t,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",style:{flex:"none"},children:PI[e]})}function By(e){if(!e||typeof e!=="string")return"?";let t=e.trim().split(/[\s._-]+/).filter(Boolean);if(!t.length)return"?";if(t.length===1)return t[0].slice(0,2).toUpperCase();return((t[0][0]||"")+(t[t.length-1][0]||"")).toUpperCase()||"?"}function tr({children:e}){return i("span",{className:"kbd",children:e})}var Er=({as:e,size:t=14})=>i(e,{size:t,strokeWidth:1.75,style:{display:"block"}}),PI;var Dt=Ke(()=>{V();PI={"chevron-down":i("polyline",{points:"3.5 6 8 10.5 12.5 6"}),"chevron-right":i("polyline",{points:"6 3.5 10.5 8 6 12.5"}),chevron:i("path",{d:"M5 6.5l3 3 3-3"}),submenu:i("path",{d:"M6 4.5l3.5 3.5L6 11.5"}),tab:i("path",{d:"M1.5 13.5h2v-7A2.5 2.5 0 0 1 6 4h4a2.5 2.5 0 0 1 2.5 2.5v7h2"}),more:m("g",{fill:"currentColor",stroke:"none",children:[i("circle",{cx:"3.5",cy:"8",r:"1.1"}),i("circle",{cx:"8",cy:"8",r:"1.1"}),i("circle",{cx:"12.5",cy:"8",r:"1.1"})]}),undo:i("path",{d:"M6 3.5L3 6.5l3 3M3 6.5h6.25a3.75 3.75 0 0 1 0 7.5H7.5"}),redo:i("path",{d:"M10 3.5l3 3-3 3M13 6.5H6.75a3.75 3.75 0 0 0 0 7.5H8.5"}),history:i("path",{d:"M2.75 8A5.25 5.25 0 1 0 4.3 4.3M4.3 1.8v2.5h2.5M8 5.25V8l2 1.5"}),pin:i("path",{d:"M6 2.5h4l-.5 4 2.5 2.5H4l2.5-2.5zM8 9v4.5"}),duplicate:m(J,{children:[i("rect",{x:"5.5",y:"5.5",width:"8",height:"8",rx:"1.75"}),i("path",{d:"M10.5 5.5V4a1.5 1.5 0 0 0-1.5-1.5H4A1.5 1.5 0 0 0 2.5 4v5A1.5 1.5 0 0 0 4 10.5h1.5"})]}),home:i("path",{d:"M2.5 7.25L8 2.75l5.5 4.5v5.25a1 1 0 0 1-1 1h-2.75V10h-3.5v3.5H3.5a1 1 0 0 1-1-1z"}),trash:i("path",{d:"M3 4.5h10M6.5 4.5V3h3v1.5M4.5 4.5l.6 8.1a1 1 0 0 0 1 .9h3.8a1 1 0 0 0 1-.9l.6-8.1"}),settings:m(J,{children:[i("path",{d:"M2.5 5h4.5M10 5h3.5M2.5 11h1.5M7 11h6.5"}),i("circle",{cx:"8.5",cy:"5",r:"1.5"}),i("circle",{cx:"5.5",cy:"11",r:"1.5"})]}),corner:i("path",{d:"M3.5 12.5V8a4.5 4.5 0 0 1 4.5-4.5h4.5"}),done:m(J,{children:[i("circle",{cx:"8",cy:"8",r:"5.75"}),i("path",{d:"M5.5 8.25l1.75 1.75 3.25-3.75"})]}),view:m(J,{children:[i("path",{d:"M1.75 8S4 3.75 8 3.75 14.25 8 14.25 8 12 12.25 8 12.25 1.75 8 1.75 8z"}),i("circle",{cx:"8",cy:"8",r:"1.75"})]}),minus:i("path",{d:"M3 8h10"}),spark:i("path",{d:"M16 3L19.309 12.691L29 16L19.309 19.309L16 29L12.691 19.309L3 16L12.691 12.691Z",transform:"scale(0.5)",fill:"currentColor",stroke:"none"}),file:m(J,{children:[i("path",{d:"M4 2h5l3 3v9H4z"}),i("polyline",{points:"9 2 9 5 12 5"})]}),folder:i("path",{d:"M2 4.5h4l1.3 1.5H14V13H2z"}),"folder-plus":m(J,{children:[i("path",{d:"M2 4.5h4l1.3 1.5H14V13H2z"}),i("path",{d:"M8 7.5v3.5M6.25 9.25h3.5"})]}),warn:m(J,{children:[i("path",{d:"M8 2.2 14.2 13H1.8z"}),i("path",{d:"M8 6.4v3.2"}),i("path",{d:"M8 11.3h.01"})]}),lock:m(J,{children:[i("rect",{x:"3.5",y:"7",width:"9",height:"6.5",rx:"1"}),i("path",{d:"M5.5 7V5a2.5 2.5 0 015 0v2"})]}),unlock:m(J,{children:[i("rect",{x:"3.5",y:"7",width:"9",height:"6.5",rx:"1"}),i("path",{d:"M5.5 7V5a2.5 2.5 0 015-.7"})]}),search:m(J,{children:[i("circle",{cx:"7",cy:"7",r:"4"}),i("line",{x1:"10",y1:"10",x2:"13.5",y2:"13.5"})]}),plus:m(J,{children:[i("line",{x1:"8",y1:"3",x2:"8",y2:"13"}),i("line",{x1:"3",y1:"8",x2:"13",y2:"8"})]}),check:i("polyline",{points:"3 8.2 6.4 11.5 13 4.2"}),x:m(J,{children:[i("line",{x1:"4.3",y1:"4.3",x2:"11.7",y2:"11.7"}),i("line",{x1:"11.7",y1:"4.3",x2:"4.3",y2:"11.7"})]}),sun:m(J,{children:[i("circle",{cx:"8",cy:"8",r:"2.6"}),i("line",{x1:"8",y1:"1.5",x2:"8",y2:"3"}),i("line",{x1:"8",y1:"13",x2:"8",y2:"14.5"}),i("line",{x1:"1.5",y1:"8",x2:"3",y2:"8"}),i("line",{x1:"13",y1:"8",x2:"14.5",y2:"8"}),i("line",{x1:"3.4",y1:"3.4",x2:"4.4",y2:"4.4"}),i("line",{x1:"11.6",y1:"11.6",x2:"12.6",y2:"12.6"}),i("line",{x1:"12.6",y1:"3.4",x2:"11.6",y2:"4.4"}),i("line",{x1:"4.4",y1:"11.6",x2:"3.4",y2:"12.6"})]}),moon:i("path",{d:"M12.5 9.6A5 5 0 1 1 7 3a4 4 0 0 0 5.5 6.6z"}),sparkle:i("path",{d:"M8 1.8l1.4 4.8L14 8l-4.6 1.4L8 14.2l-1.4-4.8L2 8l4.6-1.4z",fill:"currentColor",stroke:"none"}),megaphone:m(J,{children:[i("path",{d:"M2 6.7 11 4v8L2 9.3z"}),i("path",{d:"M11 5.2a2.4 2.4 0 0 1 0 5.6"}),i("path",{d:"M4.3 9.5v2.3a1.2 1.2 0 0 0 2.4 0v-1.7"})]}),bug:m(J,{children:[i("circle",{cx:"8",cy:"9",r:"3.6"}),i("circle",{cx:"8",cy:"4.4",r:"1.3"}),i("path",{d:"M6.2 3.4 5.2 2M9.8 3.4l1-1.4"}),i("path",{d:"M4.6 7.6H2.2M4.6 9H2.2M4.6 10.6H2.5M11.4 7.6h2.4M11.4 9h2.4M11.4 10.6h2.3"})]}),"panel-left":m(J,{children:[i("rect",{x:"2.5",y:"3",width:"11",height:"10",rx:"1.5"}),i("line",{x1:"6.4",y1:"3",x2:"6.4",y2:"13"})]}),resolve:m(J,{children:[i("circle",{cx:"8",cy:"8",r:"5.6"}),i("polyline",{points:"5.4 8 7.2 9.9 10.6 6"})]}),reopen:m(J,{children:[i("path",{d:"M3.2 8a5 5 0 1 1 1.4 3.5"}),i("polyline",{points:"3.2 11.4 3.2 8 6.6 8"})]}),layers:m(J,{children:[i("polygon",{points:"8 2.2 13.8 5.5 8 8.8 2.2 5.5"}),i("polyline",{points:"2.2 9 8 12.3 13.8 9"})]}),box:i("rect",{x:"3",y:"3",width:"10",height:"10",rx:"1.2"}),type:m(J,{children:[i("polyline",{points:"4 4 12 4"}),i("line",{x1:"8",y1:"4",x2:"8",y2:"12"})]}),button:m(J,{children:[i("rect",{x:"2.5",y:"5",width:"11",height:"6",rx:"3"}),i("line",{x1:"6",y1:"8",x2:"10",y2:"8"})]}),input:m(J,{children:[i("rect",{x:"2.5",y:"5",width:"11",height:"6",rx:"1.2"}),i("line",{x1:"5",y1:"8",x2:"5",y2:"8"})]}),link:m(J,{children:[i("path",{d:"M6.5 9.5a2.5 2.5 0 0 1 0-3.5l1.5-1.5a2.5 2.5 0 0 1 3.5 3.5l-1 1"}),i("path",{d:"M9.5 6.5a2.5 2.5 0 0 1 0 3.5l-1.5 1.5a2.5 2.5 0 0 1-3.5-3.5l1-1"})]}),list:m(J,{children:[i("line",{x1:"6",y1:"4.5",x2:"13",y2:"4.5"}),i("line",{x1:"6",y1:"8",x2:"13",y2:"8"}),i("line",{x1:"6",y1:"11.5",x2:"13",y2:"11.5"}),i("circle",{cx:"3.2",cy:"4.5",r:"0.8",fill:"currentColor"}),i("circle",{cx:"3.2",cy:"8",r:"0.8",fill:"currentColor"}),i("circle",{cx:"3.2",cy:"11.5",r:"0.8",fill:"currentColor"})]}),eye:m(J,{children:[i("path",{d:"M1.5 8S4 3.5 8 3.5 14.5 8 14.5 8 12 12.5 8 12.5 1.5 8 1.5 8z"}),i("circle",{cx:"8",cy:"8",r:"2"})]}),eyedropper:m(J,{children:[i("path",{d:"M11 2.6a1.7 1.7 0 0 1 2.4 2.4l-1.2 1.2-2.4-2.4z"}),i("path",{d:"M9.5 4.6 4 10.1V12h1.9l5.5-5.5"})]}),"p-corner":i("path",{d:"M3.5 12.5V7a3.5 3.5 0 0 1 3.5-3.5h5.5"}),"p-opacity":m(J,{children:[i("rect",{x:"3",y:"3",width:"10",height:"10",rx:"1.5"}),i("path",{d:"M3 8h10M8 3v10",strokeWidth:"0.9",opacity:"0.55"})]}),"p-lineheight":m(J,{children:[i("line",{x1:"6.5",y1:"4",x2:"13",y2:"4"}),i("line",{x1:"6.5",y1:"8",x2:"13",y2:"8"}),i("line",{x1:"6.5",y1:"12",x2:"13",y2:"12"}),i("path",{d:"M3.2 4.6 3.2 11.4M2 6 3.2 4.5 4.4 6M2 10 3.2 11.5 4.4 10"})]}),"p-letterspacing":m(J,{children:[i("path",{d:"M3 4v8M13 4v8"}),i("path",{d:"M6 11.5 8 5l2 6.5M6.7 9.3h2.6",strokeWidth:"1.1"})]}),"p-gap":m(J,{children:[i("rect",{x:"2",y:"4.5",width:"3.6",height:"7",rx:"0.6"}),i("rect",{x:"10.4",y:"4.5",width:"3.6",height:"7",rx:"0.6"}),i("path",{d:"M6.8 8h2.4M7.4 6.9 6.4 8l1 1.1M8.6 6.9 9.6 8l-1 1.1",strokeWidth:"1"})]}),"p-border":i("rect",{x:"3",y:"3",width:"10",height:"10",rx:"1"}),"p-size":m(J,{children:[i("path",{d:"M3 13 6.6 3l3.6 10"}),i("path",{d:"M4.3 9.6h4.6"})]}),"eye-off":m(J,{children:[i("path",{d:"M6.3 4A6.7 6.7 0 0 1 8 3.5C12 3.5 14.5 8 14.5 8a12 12 0 0 1-2 2.4M4.4 5.3A12 12 0 0 0 1.5 8S4 12.5 8 12.5a6.5 6.5 0 0 0 2.1-.35"}),i("line",{x1:"2.5",y1:"2.5",x2:"13.5",y2:"13.5"})]}),sliders:m(J,{children:[i("line",{x1:"3",y1:"5",x2:"13",y2:"5"}),i("circle",{cx:"6",cy:"5",r:"1.7",fill:"currentColor"}),i("line",{x1:"3",y1:"11",x2:"13",y2:"11"}),i("circle",{cx:"10",cy:"11",r:"1.7",fill:"currentColor"})]}),code:m(J,{children:[i("polyline",{points:"6 5 3 8 6 11"}),i("polyline",{points:"10 5 13 8 10 11"})]}),download:m(J,{children:[i("line",{x1:"8",y1:"2.5",x2:"8",y2:"10"}),i("polyline",{points:"4.5 7 8 10.5 11.5 7"}),i("polyline",{points:"3 12.8 3 13.6 13 13.6 13 12.8"})]}),reload:m(J,{children:[i("path",{d:"M14 8a6 6 0 1 1-2-4.47L14 5.33"}),i("path",{d:"M14 2v3.33h-3.33"})]}),help:m(J,{children:[i("circle",{cx:"8",cy:"8",r:"6"}),i("path",{d:"M6.3 6.2a1.8 1.8 0 1 1 2.3 1.9c-.5.2-.6.5-.6 1v.3"}),i("line",{x1:"8",y1:"11.4",x2:"8",y2:"11.5"})]}),image:m(J,{children:[i("rect",{x:"2.5",y:"3",width:"11",height:"10",rx:"1.5"}),i("circle",{cx:"6",cy:"6.3",r:"1.1"}),i("path",{d:"M3 12l3-2.8 2.2 1.8 2.4-3L13.5 12"})]}),vector:m(J,{children:[i("path",{d:"M3.6 11.2C6 5 10 5 12.4 11.2"}),i("rect",{x:"1.7",y:"9.8",width:"2.6",height:"2.6",rx:"0.4"}),i("rect",{x:"11.7",y:"9.8",width:"2.6",height:"2.6",rx:"0.4"}),i("rect",{x:"6.7",y:"2.6",width:"2.6",height:"2.6",rx:"0.4"})]}),presentation:m(J,{children:[i("rect",{x:"2.5",y:"3",width:"11",height:"7.4",rx:"1"}),i("line",{x1:"8",y1:"10.4",x2:"8",y2:"13"}),i("line",{x1:"5.6",y1:"13.4",x2:"10.4",y2:"13.4"})]}),archive:m(J,{children:[i("rect",{x:"2.5",y:"3",width:"11",height:"3",rx:"0.8"}),i("path",{d:"M3.6 6v6.2a1 1 0 0 0 1 1h6.8a1 1 0 0 0 1-1V6"}),i("line",{x1:"6.6",y1:"8.8",x2:"9.4",y2:"8.8"})]}),external:m(J,{children:[i("path",{d:"M11 8.5V12a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h3.5"}),i("polyline",{points:"9.5 3 13 3 13 6.5"}),i("line",{x1:"13",y1:"3",x2:"7.6",y2:"8.4"})]}),share:m(J,{children:[i("circle",{cx:"4",cy:"8",r:"1.9"}),i("circle",{cx:"11.6",cy:"3.6",r:"1.9"}),i("circle",{cx:"11.6",cy:"12.4",r:"1.9"}),i("line",{x1:"5.7",y1:"7",x2:"9.9",y2:"4.6"}),i("line",{x1:"5.7",y1:"9",x2:"9.9",y2:"11.4"})]}),pen:m(J,{children:[i("path",{d:"M3 13l.8-3L10.6 3.2a1.1 1.1 0 0 1 1.6 0l.6.6a1.1 1.1 0 0 1 0 1.6L6 12.2z"}),i("line",{x1:"9.6",y1:"4.2",x2:"11.8",y2:"6.4"})]}),square:i("rect",{x:"3.5",y:"3.5",width:"9",height:"9",rx:"1"}),cloud:i("path",{d:"M4.75 12.5a2.75 2.75 0 0 1-.4-5.47A3.75 3.75 0 0 1 11.6 6a3.25 3.25 0 0 1 .15 6.5zM6.25 9.5l1.25 1.25 2.25-2.5"}),sync:i("path",{d:"M3 7.25a5 5 0 0 1 8.6-3L13 5.5M13 2.5v3h-3M13 8.75a5 5 0 0 1-8.6 3L3 10.5M3 13.5v-3h3"}),offline:m(J,{children:[i("path",{d:"M4.75 12.5a2.75 2.75 0 0 1-.4-5.47A3.75 3.75 0 0 1 11.6 6a3.25 3.25 0 0 1 .15 6.5z"}),i("path",{d:"M2.5 2.5l11 11"})]}),laptop:m(J,{children:[i("rect",{x:"3.5",y:"3.5",width:"9",height:"6.5",rx:"1.25"}),i("path",{d:"M1.75 12.5h12.5"})]}),problem:m(J,{children:[i("path",{d:"M8 2.75l5.75 10H2.25z"}),i("path",{d:"M8 6.75v2.5M8 11h.01"})]}),"panel-right":m(J,{children:[i("rect",{x:"2",y:"3",width:"12",height:"10",rx:"2.5"}),i("path",{d:"M10 3v10"})]}),comment:i("path",{d:"M5 2.5h6A2.5 2.5 0 0 1 13.5 5v3.5A2.5 2.5 0 0 1 11 11H8l-3 2.5V11A2.5 2.5 0 0 1 2.5 8.5V5A2.5 2.5 0 0 1 5 2.5z"}),"comment-bubble":i("path",{d:"M5 2.5h6A2.5 2.5 0 0 1 13.5 5v3.5A2.5 2.5 0 0 1 11 11H8l-3 2.5V11A2.5 2.5 0 0 1 2.5 8.5V5A2.5 2.5 0 0 1 5 2.5z"}),export:m(J,{children:[i("path",{d:"M8 2.5V10M5.25 7.25L8 10l2.75-2.75"}),i("path",{d:"M2.75 10.5V12a1.5 1.5 0 0 0 1.5 1.5h7.5a1.5 1.5 0 0 0 1.5-1.5v-1.5"})]}),clock:m(J,{children:[i("circle",{cx:"8",cy:"8",r:"5.75"}),i("path",{d:"M8 4.75V8l2.25 1.5"})]}),"share-up":m(J,{children:[i("path",{d:"M8 9.5v-7M5.25 5.25L8 2.5l2.75 2.75"}),i("path",{d:"M5 7.5h-.5A1.5 1.5 0 0 0 3 9v3a1.5 1.5 0 0 0 1.5 1.5h7a1.5 1.5 0 0 0 1.5-1.5V9a1.5 1.5 0 0 0-1.5-1.5H11"})]}),frame:i("path",{d:"M5 2.5v11M11 2.5v11M2.5 5h11M2.5 11h11"}),print:m(J,{children:[i("path",{d:"M4.5 6V2.5h7V6M4.5 11.5h-1A1.5 1.5 0 0 1 2 10V7.5A1.5 1.5 0 0 1 3.5 6h9A1.5 1.5 0 0 1 14 7.5V10a1.5 1.5 0 0 1-1.5 1.5h-1"}),i("path",{d:"M4.5 9.5h7v4h-7z"})]}),system:m(J,{children:[i("rect",{x:"2.5",y:"2.5",width:"4.75",height:"4.75",rx:"1.25"}),i("rect",{x:"8.75",y:"2.5",width:"4.75",height:"4.75",rx:"1.25"}),i("rect",{x:"2.5",y:"8.75",width:"4.75",height:"4.75",rx:"1.25"}),i("circle",{cx:"11.125",cy:"11.125",r:"2.375"})]}),insert:m(J,{children:[i("rect",{x:"2.5",y:"2.5",width:"11",height:"11",rx:"2.5"}),i("path",{d:"M8 5.5v5M5.5 8h5"})]})}});var Q1e={};GG(Q1e,{MAX_NOTICE_ENTRIES:()=>W1e,NoticeCard:()=>X1e,NotificationHost:()=>K7,dismissCanvasNotices:()=>gDt,dismissNotice:()=>Yl,noticeDuration:()=>q7,noticeEntries:()=>mDt,noticePlacement:()=>Y1e,notify:()=>Yo,notifyCanvasText:()=>DI,notifyCanvasTriggered:()=>Tm,notifyUndo:()=>G7,setCanvasPopoverOpen:()=>A3,shownNoticeIds:()=>Z1e,summarizeNoticeText:()=>Y1});function hDt(){while(Vs.length>W1e){let e=Vs.findIndex(V1e);if(e<0)e=Vs.findIndex((t)=>t.kind!=="error"&&!t.paused&&q7(t)!==1/0);if(e<0)e=0;Vs=[...Vs.slice(0,e),...Vs.slice(e+1)]}}function G1e(e,t){let n={...e,title:S3(e.title),...e.description!==void 0?{description:S3(e.description)}:{}},o=n.id??`notice-${++N3}`,r=t?{...n,id:o,canvasTriggered:t}:{...n,id:o},a=n.action?.armAfterMs;if(typeof a==="number"&&a>0)r.actionArmedAt=Date.now()+a;if(Vs.findIndex((l)=>l.id===o)<0)Vs=[...Vs,r];else Vs=Vs.map((l)=>l.id===o?r:l);return hDt(),V7(),o}function Yo(e){return G1e(e,!1)}function K1e(){let e=Date.now();if(e<j7||e-j7>=1000)j7=e,U7=0;if(U7>=5)return!1;return U7++,!0}function Tm(e){if(!K1e())return null;return G1e(e,!0)}function DI(e,t="info"){if(!K1e())return null;let o=(t==="undo"?Vs.find((r)=>r.group==="canvas"&&r.kind==="undo"):void 0)?.id??`canvas-notice-${q1e++%2}`;return Yo({id:o,title:S3(e).slice(0,4000),kind:t,group:"canvas",timerKey:`${++N3}`})}function G7(e,t){let n=Vs.find((o)=>o.group==="canvas"&&o.kind==="undo");return Yo({id:n?.id??`canvas-notice-${q1e++%2}`,title:e,kind:"undo",group:"canvas",timerKey:`${++N3}`,...t?{action:t}:{}})}function gDt(){if(!Vs.some((e)=>e.group==="canvas"))return;Vs=Vs.filter((e)=>e.group!=="canvas"),V7()}function Yl(e){Vs=Vs.filter((t)=>t.id!==e),V7()}function _3(e){let t=Vs.find((n)=>n.id===e);Yl(e),t?.onDismiss?.()}function q7(e){return e.duration??(e.action||["error","warning","undo"].includes(e.kind??"")?1e4:5000)}function Y1(e){let t=S3(e).trim().replace(/\s+/g," ");return t.length>280?`${t.slice(0,279)}…`:t}function A3(e){if(C3===e)return;C3=e;for(let t of W7)t()}function bDt(e){return W7.add(e),()=>W7.delete(e)}function Y1e(e){if(C3)return"top";if(e.placement)return e.placement;return typeof document<"u"&&document.querySelector(".tl-track")?"top":"bottom"}function X1e({entry:e}){let t=e.icon??yDt[e.kind??"info"],n=e.actionArmedAt??0,[o,r]=T(()=>Date.now()>=n);return M(()=>{let a=n-Date.now();if(r(a<=0),a<=0)return;let s=setTimeout(()=>r(!0),a);return()=>clearTimeout(s)},[n]),m("div",{className:"maude-notice","data-kind":e.kind??"info","data-testid":`notice-${e.id}`,children:[t?i("span",{className:`maude-notice-ic maude-notice-ic--${t}`,"aria-hidden":"true",children:i(ce,{name:t,size:16,className:"maude-notice-glyph"})}):null,m("div",{className:"maude-notice-txt",children:[i("div",{className:"maude-notice-title",children:Y1(e.title)}),e.description&&i("div",{className:"maude-notice-summary",children:Y1(e.description)}),e.content]}),e.action&&i("button",{type:"button",className:"maude-notice-action",disabled:!o,onClick:(a)=>{if(Date.now()<n)return;a.currentTarget.blur(),e.action?.onClick(),_3(e.id)},children:e.action.label}),i("button",{type:"button",className:"maude-notice-close","aria-label":"Dismiss notification",onClick:(a)=>{a.currentTarget.blur(),_3(e.id)},children:"×"})]})}function vDt({entry:e,visible:t,paused:n}){let o=q7(e),r=Ve(bDt,H1e,H1e),a=U(null),s=U(o);return M(()=>{s.current=o},[o,e.timerKey]),M(()=>{if(!t||n||e.paused||o===1/0)return;let l=Date.now(),c=setTimeout(()=>_3(e.id),Math.max(0,s.current));return()=>{clearTimeout(c),s.current=Math.max(0,s.current-(Date.now()-l))}},[t,n,e.paused,o,e.timerKey,e.id]),M(()=>{if(t){let l=a.current??`${e.id}:view-${++N3}`;a.current=l,k3.custom(()=>i(X1e,{entry:e}),{id:l,duration:1/0,position:Y1e(e)==="top"?"top-center":"bottom-center",onDismiss:()=>{if(a.current===l)_3(e.id)}})}else if(a.current){let l=a.current;a.current=null,k3.dismiss(l)}},[e,t,r]),M(()=>()=>{let l=a.current;if(a.current=null,l)k3.dismiss(l)},[]),null}function Z1e(e){let t=e.filter((s)=>!V1e(s)),n=e.filter((s)=>s.group!=="canvas"&&s.canvasTriggered),o=t.length?t:n.length?n:e,r=o.filter((s)=>s.kind==="error"),a=o.filter((s)=>s.kind!=="error").reverse();return[...r,...a].slice(0,J1e).map((s)=>s.id)}function K7({paused:e=!1,hiddenGroups:t=xDt}){let n=Ve(fDt,U1e,U1e),o=U(null),[r,a]=T(!1),[s,l]=T(!1),[c,u]=T(()=>typeof document<"u"&&document.hidden);M(()=>{let f=()=>u(document.hidden);return document.addEventListener("visibilitychange",f),()=>document.removeEventListener("visibilitychange",f)},[]),M(()=>{if(!n.length)a(!1),l(!1);if(s&&!o.current?.contains(document.activeElement))l(!1)},[n,s]);let d=n.filter((f)=>!t.includes(f.group??"")),p=new Set(Z1e(d));return m("div",{ref:o,className:"maude-notifications","data-paused":e,onPointerEnter:()=>a(!0),onPointerLeave:()=>a(!1),onFocusCapture:()=>l(!0),onBlurCapture:(f)=>{if(!f.currentTarget.contains(f.relatedTarget))l(!1)},children:[i("style",{children:wDt}),i(F1e,{position:"bottom-center",offset:{bottom:84,top:16},mobileOffset:{left:16,right:16,bottom:84,top:16},visibleToasts:J1e,expand:s,style:{"--width":"min(640px, calc(100vw - 32px))"},containerAriaLabel:"Notifications"}),n.map((f)=>i(vDt,{entry:f,visible:p.has(f.id),paused:e||r||s||c||!p.has(f.id)},f.id))]})}var Vs,N3=0,H7,V7=()=>{for(let e of H7)e()},fDt=(e)=>(H7.add(e),()=>{H7.delete(e)}),U1e=()=>Vs,mDt=()=>Vs,W1e=40,V1e=(e)=>e.group==="canvas"||!!e.canvasTriggered,S3=(e)=>typeof e==="string"?e:e===null||e===void 0?"":String(e),q1e=0,j7=-1/0,U7=0,C3=!1,W7,H1e=()=>C3,yDt,wDt=`
|
|
1
|
+
var eRt=Object.create;var{getPrototypeOf:tRt,defineProperty:nP,getOwnPropertyNames:nRt}=Object;var pye=Object.prototype.hasOwnProperty;function oRt(e){return this[e]}var rRt,aRt,sRt=(e,t,n)=>{var o=e!=null&&typeof e==="object";if(o){var r=t?rRt??=new WeakMap:aRt??=new WeakMap,a=r.get(e);if(a)return a}n=e!=null?eRt(tRt(e)):{};let s=t||!e||!e.__esModule||!pye.call(e,"default")?nP(n,"default",{value:e,enumerable:!0}):n;if(e&&typeof e==="object"||typeof e==="function"){for(let l of nRt(e))if(!pye.call(s,l))nP(s,l,{get:oRt.bind(e,l),enumerable:!0})}if(o)r.set(e,s);return s};var iRt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var lRt=(e)=>e;function cRt(e,t){this[e]=lRt.bind(null,t)}var GG=(e,t)=>{for(var n in t)nP(e,n,{get:t[n],enumerable:!0,configurable:!0,set:cRt.bind(t,n)})};var Ke=(e,t,n)=>()=>{if(e)try{t=e(e=0)}catch(o){n=[o]}if(n)throw n[0];return t};var fye=(e,t,n)=>{for(var o in t)nP(e,o,{get:t[o],set:n[o],enumerable:!0,configurable:!0})},zS=((e)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,n)=>(typeof require<"u"?require:t)[n]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var _a={};fye(_a,{Activity:()=>Tye,Children:()=>nT,Component:()=>rP,Fragment:()=>_s,Profiler:()=>Iye,PureComponent:()=>Eye,StrictMode:()=>$ye,Suspense:()=>Rye,__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:()=>jS,__COMPILER_RUNTIME:()=>Mye,cache:()=>Oye,cacheSignal:()=>Lye,cloneElement:()=>jc,createContext:()=>bl,createElement:()=>ar,createRef:()=>Pye,forwardRef:()=>jn,isValidElement:()=>Js,lazy:()=>Dye,memo:()=>Vr,startTransition:()=>zye,unstable_useCacheRefresh:()=>Fye,use:()=>eq,useActionState:()=>Bye,useCallback:()=>ee,useContext:()=>Ir,useDebugValue:()=>tq,useDeferredValue:()=>jye,useEffect:()=>M,useEffectEvent:()=>Uye,useId:()=>ra,useImperativeHandle:()=>Hye,useInsertionEffect:()=>oT,useLayoutEffect:()=>eo,useMemo:()=>fe,useOptimistic:()=>Wye,useReducer:()=>US,useRef:()=>U,useState:()=>T,useSyncExternalStore:()=>Ve,useTransition:()=>Vye,version:()=>aP},{Activity:(AOn)=>Tye=AOn,Children:(AOn)=>nT=AOn,Component:(AOn)=>rP=AOn,Fragment:(AOn)=>_s=AOn,Profiler:(AOn)=>Iye=AOn,PureComponent:(AOn)=>Eye=AOn,StrictMode:(AOn)=>$ye=AOn,Suspense:(AOn)=>Rye=AOn,__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:(AOn)=>jS=AOn,__COMPILER_RUNTIME:(AOn)=>Mye=AOn,cache:(AOn)=>Oye=AOn,cacheSignal:(AOn)=>Lye=AOn,cloneElement:(AOn)=>jc=AOn,createContext:(AOn)=>bl=AOn,createElement:(AOn)=>ar=AOn,createRef:(AOn)=>Pye=AOn,forwardRef:(AOn)=>jn=AOn,isValidElement:(AOn)=>Js=AOn,lazy:(AOn)=>Dye=AOn,memo:(AOn)=>Vr=AOn,startTransition:(AOn)=>zye=AOn,unstable_useCacheRefresh:(AOn)=>Fye=AOn,use:(AOn)=>eq=AOn,useActionState:(AOn)=>Bye=AOn,useCallback:(AOn)=>ee=AOn,useContext:(AOn)=>Ir=AOn,useDebugValue:(AOn)=>tq=AOn,useDeferredValue:(AOn)=>jye=AOn,useEffect:(AOn)=>M=AOn,useEffectEvent:(AOn)=>Uye=AOn,useId:(AOn)=>ra=AOn,useImperativeHandle:(AOn)=>Hye=AOn,useInsertionEffect:(AOn)=>oT=AOn,useLayoutEffect:(AOn)=>eo=AOn,useMemo:(AOn)=>fe=AOn,useOptimistic:(AOn)=>Wye=AOn,useReducer:(AOn)=>US=AOn,useRef:(AOn)=>U=AOn,useState:(AOn)=>T=AOn,useSyncExternalStore:(AOn)=>Ve=AOn,useTransition:(AOn)=>Vye=AOn,version:(AOn)=>aP=AOn});function NRt(e){if(e===null||typeof e!=="object")return null;return e=yye&&e[yye]||e["@@iterator"],typeof e==="function"?e:null}function BS(e,t,n){this.props=e,this.context=t,this.refs=Cye,this.updater=n||Sye}function Nye(){}function XG(e,t,n){this.props=e,this.context=t,this.refs=Cye,this.updater=n||Sye}function KG(){}function JG(e,t,n){var o=n.ref;return{$$typeof:YG,type:e,key:t,ref:o!==void 0?o:null,props:n}}function ARt(e,t){return JG(e.type,t,e.props)}function QG(e){return typeof e==="object"&&e!==null&&e.$$typeof===YG}function TRt(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}function qG(e,t){return typeof e==="object"&&e!==null&&e.key!=null?TRt(""+e.key):t.toString(36)}function IRt(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status==="string"?e.then(KG,KG):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function FS(e,t,n,o,r){var a=typeof e;if(a==="undefined"||a==="boolean")e=null;var s=!1;if(e===null)s=!0;else switch(a){case"bigint":case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case YG:case gRt:s=!0;break;case kye:return s=e._init,FS(s(e._payload),t,n,o,r)}}if(s)return r=r(e),s=o===""?"."+qG(e,0):o,vye(r)?(n="",s!=null&&(n=s.replace(wye,"$&/")+"/"),FS(r,t,n,"",function(u){return u})):r!=null&&(QG(r)&&(r=ARt(r,n+(r.key==null||e&&e.key===r.key?"":(""+r.key).replace(wye,"$&/")+"/")+s)),t.push(r)),1;s=0;var l=o===""?".":o+":";if(vye(e))for(var c=0;c<e.length;c++)o=e[c],a=l+qG(o,c),s+=FS(o,t,n,a,r);else if(c=NRt(e),typeof c==="function")for(e=c.call(e),c=0;!(o=e.next()).done;)o=o.value,a=l+qG(o,c++),s+=FS(o,t,n,a,r);else if(a==="object"){if(typeof e.then==="function")return FS(IRt(e),t,n,o,r);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return s}function oP(e,t,n){if(e==null)return e;var o=[],r=0;return FS(e,o,"","",function(a){return t.call(n,a,r++)}),o}function ERt(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){if(e._status===0||e._status===-1)e._status=1,e._result=n},function(n){if(e._status===0||e._status===-1)e._status=2,e._result=n}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var YG,gRt,bRt,yRt,vRt,wRt,xRt,kRt,SRt,_Rt,kye,CRt,yye,Sye,_ye,Cye,ZG,vye,za,Aye,wye,xye,$Rt,Tye,nT,rP,_s,Iye,Eye,$ye,Rye,jS,Mye,Oye=function(e){return function(){return e.apply(null,arguments)}},Lye=function(){return null},jc=function(e,t,n){if(e===null||e===void 0)throw Error("The argument must be a React element, but you passed "+e+".");var o=_ye({},e.props),r=e.key;if(t!=null)for(a in t.key!==void 0&&(r=""+t.key),t)!Aye.call(t,a)||a==="key"||a==="__self"||a==="__source"||a==="ref"&&t.ref===void 0||(o[a]=t[a]);var a=arguments.length-2;if(a===1)o.children=n;else if(1<a){for(var s=Array(a),l=0;l<a;l++)s[l]=arguments[l+2];o.children=s}return JG(e.type,r,o)},bl=function(e){return e={$$typeof:xRt,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:wRt,_context:e},e},ar=function(e,t,n){var o,r={},a=null;if(t!=null)for(o in t.key!==void 0&&(a=""+t.key),t)Aye.call(t,o)&&o!=="key"&&o!=="__self"&&o!=="__source"&&(r[o]=t[o]);var s=arguments.length-2;if(s===1)r.children=n;else if(1<s){for(var l=Array(s),c=0;c<s;c++)l[c]=arguments[c+2];r.children=l}if(e&&e.defaultProps)for(o in s=e.defaultProps,s)r[o]===void 0&&(r[o]=s[o]);return JG(e,a,r)},Pye=function(){return{current:null}},jn=function(e){return{$$typeof:kRt,render:e}},Js,Dye=function(e){return{$$typeof:kye,_payload:{_status:-1,_result:e},_init:ERt}},Vr=function(e,t){return{$$typeof:_Rt,type:e,compare:t===void 0?null:t}},zye=function(e){var t=za.T,n={};za.T=n;try{var o=e(),r=za.S;r!==null&&r(n,o),typeof o==="object"&&o!==null&&typeof o.then==="function"&&o.then(KG,xye)}catch(a){xye(a)}finally{t!==null&&n.types!==null&&(t.types=n.types),za.T=t}},Fye=function(){return za.H.useCacheRefresh()},eq=function(e){return za.H.use(e)},Bye=function(e,t,n){return za.H.useActionState(e,t,n)},ee=function(e,t){return za.H.useCallback(e,t)},Ir=function(e){return za.H.useContext(e)},tq=function(){},jye=function(e,t){return za.H.useDeferredValue(e,t)},M=function(e,t){return za.H.useEffect(e,t)},Uye=function(e){return za.H.useEffectEvent(e)},ra=function(){return za.H.useId()},Hye=function(e,t,n){return za.H.useImperativeHandle(e,t,n)},oT=function(e,t){return za.H.useInsertionEffect(e,t)},eo=function(e,t){return za.H.useLayoutEffect(e,t)},fe=function(e,t){return za.H.useMemo(e,t)},Wye=function(e,t){return za.H.useOptimistic(e,t)},US=function(e,t,n){return za.H.useReducer(e,t,n)},U=function(e){return za.H.useRef(e)},T=function(e){return za.H.useState(e)},Ve=function(e,t,n){return za.H.useSyncExternalStore(e,t,n)},Vye=function(){return za.H.useTransition()},aP="19.2.7";var re=Ke(()=>{YG=Symbol.for("react.transitional.element"),gRt=Symbol.for("react.portal"),bRt=Symbol.for("react.fragment"),yRt=Symbol.for("react.strict_mode"),vRt=Symbol.for("react.profiler"),wRt=Symbol.for("react.consumer"),xRt=Symbol.for("react.context"),kRt=Symbol.for("react.forward_ref"),SRt=Symbol.for("react.suspense"),_Rt=Symbol.for("react.memo"),kye=Symbol.for("react.lazy"),CRt=Symbol.for("react.activity"),yye=Symbol.iterator;Sye={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_ye=Object.assign,Cye={};BS.prototype.isReactComponent={};BS.prototype.setState=function(e,t){if(typeof e!=="object"&&typeof e!=="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};BS.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};Nye.prototype=BS.prototype;ZG=XG.prototype=new Nye;ZG.constructor=XG;_ye(ZG,BS.prototype);ZG.isPureReactComponent=!0;vye=Array.isArray;za={H:null,A:null,T:null,S:null},Aye=Object.prototype.hasOwnProperty;wye=/\/+/g;xye=typeof reportError==="function"?reportError:function(e){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e==="object"&&e!==null&&typeof e.message==="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",e);return}console.error(e)},$Rt={map:oP,forEach:function(e,t,n){oP(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return oP(e,function(){t++}),t},toArray:function(e){return oP(e,function(t){return t})||[]},only:function(e){if(!QG(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Tye=CRt,nT=$Rt,rP=BS,_s=bRt,Iye=vRt,Eye=XG,$ye=yRt,Rye=SRt,jS=za,Mye={__proto__:null,c:function(e){return za.H.useMemoCache(e)}},Js=QG});function Gye(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function ty(){}function MRt(e,t,n){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:RRt,key:o==null?null:""+o,children:e,containerInfo:t,implementation:n}}var rT,RRt,nq,oq,fm=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(Gye(299));return MRt(e,t,null,n)},rq=function(e){var t=nq.T,n=rT.p;try{if(nq.T=null,rT.p=2,e)return e()}finally{nq.T=t,rT.p=n,rT.d.f()}};var qye=Ke(()=>{re();rT={d:{f:ty,r:function(){throw Error(Gye(522))},D:ty,C:ty,L:ty,m:ty,X:ty,S:ty,M:ty},p:0,findDOMNode:null},RRt=Symbol.for("react.portal");nq=jS;oq=rT});function Kye(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=="function")return;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Kye)}catch(e){console.error(e)}}var mm=Ke(()=>{qye();Kye()});function dg(e,t){let n=String(e??"").replace(/[\p{Cc}\p{Cf}]/gu,"").replace(/\s+/g," ").trim();if(!n)return t;return n.length>60?`${n.slice(0,60)}…`:n}function Ux(e,t){let n=String(e??"").replace(/[\p{Cc}\p{Cf}]/gu,"").replace(/\s+/g," ").trim();if(!n)return t;return n.length>160?`${n.slice(0,160)}…`:n}function K9(e){return(e??[]).slice(0,3).map((t)=>dg(t,"(unnamed)"))}function NLt(e){if(!e)return null;let t=(n)=>typeof n==="number"&&Number.isInteger(n)&&n>=0;if(!t(e.synced)||!t(e.pending)||!t(e.rejected))return null;return{synced:e.synced,pending:e.pending,rejected:e.rejected}}function ALt(e){let t={unreadable:!1,sourceSlugs:[],failedFiles:0,tooLarge:0,blockedOther:0,held:0,failedMedia:0,moving:null,paused:!1},{conflicts:n,files:o,assets:r}=e;if(n!==void 0){if(!Array.isArray(n))t.unreadable=!0;else for(let a of n)if(Ty(a)&&a.kind==="body-rejected")t.sourceSlugs.push(typeof a.slug==="string"?a.slug:"(unnamed)")}if(o!==void 0)if(!Ty(o))t.unreadable=!0;else{for(let l of["synced","pulled","conflicts","pushed","failed"])if(o[l]!==void 0&&!xm(o[l]))t.unreadable=!0;if(xm(o.failed))t.failedFiles=o.failed;if(Array.isArray(o.held))for(let l of o.held){if(Ty(l)&&(l.kind==="hub-older"||l.kind==="hub-refused"))continue;t.held+=Ty(l)&&xm(l.count)?l.count:1}let a=0;if(Ty(o.rateLimited)){if(t.paused=!0,xm(o.rateLimited.waiting))a=o.rateLimited.waiting;if(a>0)t.failedFiles=0}let s=o.progress;if(Ty(s)){if(Array.isArray(s.blocked))for(let l of s.blocked){if(!Ty(l)||!xm(l.count))continue;if(l.class==="too-large")t.tooLarge+=l.count;else t.blockedOther+=l.count}if(s.phase==="paused")t.paused=!0;if(s.phase==="scanning"||s.phase==="seeding"||s.phase==="paused")t.moving=xm(s.delivered)&&xm(s.tracked)?{delivered:Math.min(s.delivered,s.tracked),tracked:s.tracked}:{delivered:0,tracked:0}}else if(s!==void 0)t.unreadable=!0;if(a>0&&!t.moving)t.moving={delivered:0,tracked:a}}if(r!==void 0)if(!Ty(r))t.unreadable=!0;else{if(xm(r.failedCount))t.failedMedia=r.failedCount;else if(r.failedCount!==void 0)t.unreadable=!0;if(r.finished===!1&&!t.moving)t.moving={media:{done:xm(r.done)?r.done:0,total:xm(r.total)?r.total:0}}}return t}function Sl(e,t={}){if(!e||e.linked===!1)return null;let n=dg(t.project,"the workspace"),o=typeof t.now==="number"?t.now:Date.now(),r=typeof e.startedAt==="number"&&Number.isFinite(e.startedAt)&&e.startedAt>0?e.startedAt:null,a=(N=!1)=>{let C=Math.max(1,Math.round((o-(r??o))/60000));return{phase:"stalled",online:!1,label:"stalled",title:`Nothing has synced with ${n} in the ${C} minute${C===1?"":"s"} since Maude started trying.`,next:N?"Maude keeps retrying. If it persists, reconnect the workspace — the sign-in may have expired.":"Maude keeps retrying — the workspace is reachable but is not completing handshakes.",names:[]}},s=r!==null&&o-r>300000;if(e.notSyncable){let N=e.tsxCount??0;return{phase:"nothing-syncable",online:!1,label:`0 syncable${N>0?` · ${N} tsx`:""}`,title:e.reason?dg(e.reason,"No canvases in this project are syncable yet."):`Connected to ${n} — no canvases here are syncable yet.`,next:"Create a canvas — it will start syncing on its own.",names:[]}}let l=e.queuedOps??0,c=l>0?` ${l} local edit${l===1?"":"s"} are queued.`:"",u=e.state==="offline"||e.state==="offline-long",d=ALt(e),p=(N)=>{let C=[],I=0,R=(H,B)=>{if(H<=0)return;C.push(B),I+=H},O=d.sourceSlugs.length;if(R(O,`${O1(O,"source change")} ${O===1?"was":"were"} not applied`),!N)R(d.failedFiles,`${O1(d.failedFiles,"file")} could not be delivered`),R(d.tooLarge,`${O1(d.tooLarge,"file")} ${d.tooLarge===1?"is":"are"} too large to sync`),R(d.blockedOther,`${O1(d.blockedOther,"file")} ${d.blockedOther===1?"is":"are"} blocked`),R(d.held,`${O1(d.held,"change")} ${d.held===1?"is":"are"} held for your decision`),R(d.failedMedia,`${O1(d.failedMedia,"media upload")} failed`);if(I===0)return null;return{phase:"attention",online:!1,label:`${I} to review`,title:`${I===1?"A change needs":`${I} changes need`} your attention in ${n}: ${C.join("; ")}.`+(u?" The hub is also unreachable right now.":"")+c,next:"Open the Sync panel to see what is waiting and why.",names:K9(d.sourceSlugs)}},f=NLt(e.docs),h=e.docs!==void 0&&f===null;if(f&&f.rejected>0){let N=f.synced+f.pending+f.rejected;return{phase:"refused",online:!1,label:`${f.rejected} refused`,title:`${f.rejected} of ${N} canvas${N===1?"":"es"} were refused by ${n} — their edits are not syncing.`+(u?" The hub is also unreachable right now.":""),next:"Reconnect the workspace — the credential may have been rotated.",names:K9(e.rejectedSlugs)}}let g=ILt(e.accepted);if(g){let N=g.pending;return{phase:"refused",online:!1,label:"sign in again",title:`${n} no longer accepts your sign-in — `+(N>0?`${N} change${N===1?" is":"s are"} kept on this device and not shared.`:"your changes are not shared."),next:"Sign in again to share them.",names:[]}}if(d.sourceSlugs.length>0){let N=p(u);if(N)return N}let b=e.parked?.since;if(typeof b==="number"&&Number.isFinite(b)&&b>0){let N=p(!1);if(N)return N;return{phase:"parked",online:!1,label:"asleep",title:"Cloud project asleep. Wakes on your next change.",next:"Nothing to do — edit or click anywhere and it reconnects.",names:[]}}if(u)return{phase:"offline",online:!1,label:l>0?`offline · ${l} ↑`:"offline",title:`Not reachable: ${n}. Your edits are safe on this machine and queued.${c}`,next:"Nothing to do — syncing resumes by itself when the hub is back.",names:[]};if(h||d.unreadable)return{phase:"connecting",online:!1,label:"status unreadable",title:`Cannot read the sync status for ${n} — the counts on disk are malformed.`,next:"Reconnect the workspace; if it persists, restart Maude.",names:[]};if(!f){let N=e.state==="online"||e.flash==="synced";if(!N&&s)return a(!0);let C=N?p(!1):null;if(C)return C;return{phase:N?"synced":"connecting",online:N,label:N?l>0?`${l} ↑`:"synced":"connecting…",title:N?`Syncing with ${n}.${c}`:`Connecting to ${n}…`,next:N?null:"Nothing to do — this usually takes a moment.",names:[]}}let v=f.synced+f.pending+f.rejected;if(v===0){if(s)return a();return{phase:"connecting",online:!1,label:"connecting…",title:`Connecting to ${n}…`,next:"Nothing to do — this usually takes a moment.",names:[]}}let y=p(!1);if(y)return y;let w=ELt(e.aiAction);if(w?.state==="held"){let N=w.canvases;return{phase:"attention",online:!0,label:"AI edit held",title:`An unfinished AI edit to ${N} canvas${N===1?"":"es"} is kept on this device — it is not shared with ${n} yet.`,next:"Open the Sync panel to publish it as it stands or discard it.",names:[]}}if(f.pending>0){let N=f.synced>0;if(!N&&s)return a();return{phase:N?"syncing":"connecting",online:!1,label:N?`${f.synced}/${v}`:"connecting…",title:N?`Syncing with ${n} — ${f.synced} of ${v} canvas${v===1?"":"es"} so far.`:`Connecting to ${n}…`,next:"Nothing to do — this usually takes a moment.",names:[]}}if(d.moving){let N=d.moving,C="media"in N?`uploading media (${N.media.done} of ${N.media.total})`:N.tracked>0?`files ${N.delivered} of ${N.tracked} delivered`:"checking project files";return{phase:"syncing",online:!0,label:"media"in N?"media ↑":N.tracked>0?`${N.delivered}/${N.tracked} files`:"files…",title:`Syncing with ${n} — all ${v} canvas${v===1?"":"es"} in step, ${C}.`+(d.paused?" Paused while the hub asks us to wait.":"")+c,next:"Nothing to do — this continues on its own.",names:[]}}if(w?.state==="open")return{phase:"syncing",online:!0,label:"AI editing",title:`An AI edit is in progress — its changes are shared with ${n} together when it finishes.`,next:null,names:[]};let x=TLt(e.accepted);if(x){let N=x.oldestPendingAt?Math.max(0,Math.round((Date.now()-x.oldestPendingAt)/1000)):0;return{phase:"syncing",online:!0,label:`saving ${x.pending}`,title:`Saving ${x.pending} change${x.pending===1?"":"s"} to ${n}`+(N>=10?` — the oldest has waited ${N} s.`:".")+" They are kept on this device until the project confirms them.",next:N>=60?"Maude keeps trying. If this persists, check your connection.":null,names:[]}}let k=e.pulled?.count,_=typeof k==="number"&&Number.isInteger(k)&&k>=0?Math.min(k,v):0;return{phase:"synced",online:!0,label:l>0?`${l} ↑`:"synced",title:`Synced with ${n} — all ${v} canvas${v===1?"":"es"}.`+(_>0?` ${_} came down from the project on this connect.`:"")+c,next:_>0?"They are new to this machine — look them over before editing.":null,names:_>0?K9(e.pulled?.names):[]}}function TLt(e){if(!e||typeof e!=="object")return null;let t=e,n=t.pending;if(typeof n!=="number"||!Number.isInteger(n)||n<=0||n>1e6)return null;let o=t.oldestPendingAt;return{pending:n,oldestPendingAt:typeof o==="number"&&Number.isFinite(o)&&o>0?o:null}}function ILt(e){if(!e||typeof e!=="object")return null;let t=e;if(t.credentialRefused!==!0)return null;let n=t.pending;return{pending:typeof n==="number"&&Number.isInteger(n)&&n>0&&n<=1e6?n:0}}function ELt(e){if(!e||typeof e!=="object")return null;let t=e;if(t.state!=="open"&&t.state!=="held")return null;let n=Array.isArray(t.canvases)?Math.min(t.canvases.length,1e4):0;return{state:t.state,canvases:n}}var xm=(e)=>typeof e==="number"&&Number.isInteger(e)&&e>=0,Ty=(e)=>e!==null&&typeof e==="object"&&!Array.isArray(e),O1=(e,t,n=`${t}s`)=>`${e} ${e===1?t:n}`;function Iy(e,t){let n=e?.access;if(!n||typeof n!=="object")return e?.cloud?.role??void 0;let o=(l,c)=>l===null||Yd[c]>Yd[l]?c:l,r=(Array.isArray(n.grants)?n.grants:[]).filter((l)=>typeof l?.r==="string"&&(l.r in Yd)),a=typeof n.role==="string"&&n.role in Yd?n.role:null,s=r.filter((l)=>t&&l.c===t);for(let l of s.length||a!==null?s:r)a=o(a,l.r);return a??void 0}function S0e(e,t){if(C0e(e))return!1;if(!e?.readOnly)return!0;if(e.formatGate||e.readOnlyReason!=="role")return!1;let n=e.access;if(!n||typeof n!=="object"||!t)return!1;if(Yd[n.role]>=X9)return!0;return(Array.isArray(n.grants)?n.grants:[]).some((o)=>o?.c===t&&Yd[o?.r]>=X9)}function _0e(e,t){if(typeof t!=="string"||!t)return null;let n=(e?.designRel||".design").replace(/^\/+|\/+$/g,"");return t.startsWith(`${n}/`)?t.slice(n.length+1):t}function VD(e,t){return!S0e(e,_0e(e,t))}function Hx(e){let t=e?.access;return!!t&&typeof t==="object"&&t.role==null&&Array.isArray(t.grants)&&t.grants.length>0}function GD(e,t){if(!C0e(e)||e.formatGate||!t)return!1;return(Array.isArray(e.access?.grants)?e.access.grants:[]).some((n)=>n?.c===t&&Yd[n?.r]>=X9)}function N0e(e,t){let n=_0e(e,t),o=!S0e(e,n);if(!o)return{ro:!1,cm:!1};let r=!!e.access&&typeof e.access==="object"&&(Array.isArray(e.access.grants)?e.access.grants:[]).some((s)=>s?.c===n&&Yd[s?.r]>=Yd.viewer),a=!!e.canComment||r;return{ro:o,cm:a,...a&&e.formatGate?{cg:!0}:{}}}function w0e(e){let t=typeof e==="string"?e.trim():"";if(!t)return"";return t.split(/\s+/)[0]}function Yc(e){if(typeof e!=="string"||!e)return"";return(e.split("/").pop()||e).replace(/\.(tsx|jsx|html)$/i,"")}function ef(e,t=".design"){if(typeof e!=="string"||!e||e.startsWith("__"))return null;let n=String(t||".design").replace(/\/+$/,""),o=e.startsWith(`${n}/`)?e.slice(n.length+1):e;if(!/\.(tsx|jsx|html)$/i.test(o)||o.split("/").some((r)=>r===""||r===".."))return null;return o}async function e7(e,t,n,o){try{let r=await e(n,{method:t,headers:o===void 0?{}:{"content-type":"application/json"},...o===void 0?{}:{body:JSON.stringify(o)}}),a=await r.text().catch(()=>""),s=null;try{s=a?JSON.parse(a):null}catch{s=null}return{status:r.status,body:s}}catch{return{status:0,body:null}}}async function LLt({canvas:e=null}={},t=fetch){let o=await e7(t,"POST","/_api/share/requests",typeof e==="string"&&e?{canvas:e}:{}),r=o.body?.reason;if(o.status===201)return{ok:!0,state:"asked",words:er.asked};if(o.status===202&&o.body?.queued)return{ok:!0,state:"queued",words:fI({error:o.body.words},er.queued)};if(r==="pending")return{ok:!0,state:"pending",words:fI(o.body,er.asked)};if(r==="already-can-edit")return{ok:!0,state:"already",words:er.alreadyCan};if(o.status===429)return{ok:!1,state:"limited",words:fI(o.body,er.unavailable)};if(r==="not-linked")return{ok:!1,state:"not-linked",words:er.notLinked};if(o.status===404||o.status===405)return{ok:!1,state:"not-linked",words:er.notLinked};if(o.status===0||o.status>=500)return{ok:!1,state:"unavailable",words:er.unavailable};return{ok:!1,state:"refused",words:fI(o.body,er.notLinked)}}async function A0e(e=fetch){let t=await e7(e,"GET","/_api/share/requests");return t.status===200&&Array.isArray(t.body?.requests)?t.body.requests:[]}async function WD(e,t,n=fetch){if(t!=="approve"&&t!=="decline")throw Error(`answerAccessRequest: ${t}`);if(typeof e!=="string"||!/^[A-Za-z0-9_-]{1,128}$/.test(e))return{ok:!1,words:er.answered};let o=await e7(n,"POST",`/_api/share/requests/${encodeURIComponent(e)}/${t}`,{});if(o.status>=200&&o.status<300)return{ok:!0,words:""};return{ok:!1,words:fI(o.body,er.answered)}}function PLt(e,t){let n=typeof t?.reason==="string"?t.reason:null;if(n==="link-off")return{kind:"link-off"};if(n==="access-withdrawn"||n==="removed"||n==="access-removed"||n==="expired"||n==="no-access")return{kind:"ended",reason:n==="expired"?"expired":"removed"};if(e===404||n==="not-in-scope"||n==="gone")return{kind:"missing"};return null}function t7(e,t){if(e!==401)return null;let n=PLt(e,t);return n&&(n.kind==="link-off"||n.kind==="ended")?n:null}function T0e(e,t){let n=e?.fetch;if(typeof n!=="function"||n[x0e])return()=>{};let o=async(...r)=>{let a=await n.apply(e,r);try{if(a?.status===401&&DLt(r[0],e.location?.origin)&&(a.headers?.get?.("content-type")??"").includes("json"))a.clone().json().then((s)=>{let l=t7(401,s);if(l)t(l)}).catch(()=>{})}catch{}return a};return o[x0e]=!0,e.fetch=o,()=>{if(e.fetch===o)e.fetch=n}}function zLt(e){if(e?.type!=="maude.access")return null;if(e.change==="raised")return{kind:"raised"};if(e.change==="narrowed"){let t=typeof e.by?.name==="string"?e.by.name.slice(0,80):"",n=Y9(e.role)?e.role:null;return{kind:"narrowed",...t?{by:t}:{},...n?{role:n}:{}}}if(e.change==="ended")return e.reason==="link-off"?{kind:"link-off"}:{kind:"ended",reason:e.reason==="expired"?"expired":"removed"};return null}function FLt(e){if(e?.type!=="maude.access-request"||typeof e.id!=="string")return null;let t=typeof e.from?.name==="string"?e.from.name.slice(0,80):"",n=typeof e.canvas==="string"?e.canvas:null;return{id:e.id,text:er.asksToEdit(t,n?Yc(n):""),action:er.review}}function I0e(e){if(e?.type==="access")return zLt({type:"maude.access",change:e.change,reason:e.reason,by:e.by,role:e.role});if(e?.type==="access-request"){let t=FLt({type:"maude.access-request",id:e.id,from:e.from,canvas:e.canvas});return t?{kind:"request",...t}:null}return null}function a7(e){let t=typeof e==="string"&&e?e:null;if(t===Z9)return;Z9=t;for(let n of J9)n()}function $0e(e){return J9.add(e),()=>J9.delete(e)}function R0e(e,t=(...n)=>fetch(...n)){return{"share.ask-to-edit":async()=>{let n=ef(e.activePath,e.designRel),o=await LLt({canvas:n},t);return e.toast?.(o.words,o.ok),o},"share.request-approve":async(n)=>{let o=await WD(n?.id,"approve",t);if(!o.ok)e.toast?.(o.words);return o},"share.request-decline":async(n)=>{let o=await WD(n?.id,"decline",t);if(!o.ok)e.toast?.(o.words);return o}}}var OLt,Y9=(e)=>typeof e==="string"&&OLt[e]||"",Yd,L1=(e)=>typeof e==="string"&&(e in Yd)?Yd[e]:void 0,k0e=(e,t)=>Iy(e,t)==="observer",X9,C0e=(e)=>!!e?.cloud&&!e.canvasToken&&Hx(e),Q9=(e)=>e?.canComment===!0&&!e.formatGate,er,fI=(e,t)=>typeof e?.error==="string"&&e.error&&e.error.length<=200?e.error:t,n7,o7,r7=(e,t)=>e==="observer"&&!t?.ended&&!t?.linkOff,x0e,DLt=(e,t)=>{let n=typeof e==="string"?e:typeof e?.url==="string"?e.url:String(e??"");if(n.startsWith("/")&&!n.startsWith("//"))return!0;return!!t&&(n===t||n.startsWith(`${t}/`))},mI="maude:access-frame",hI="maude:view-only-gesture",Z9=null,J9,E0e=()=>Z9;var oi=Ke(()=>{OLt=Object.freeze({owner:"Owner",member:"Can edit",viewer:"Can comment",observer:"Can view"}),Yd=Object.freeze({observer:0,viewer:1,member:2,owner:3});X9=Yd.member;er=Object.freeze({asked:"Asked. The owner will see your request.",queued:"Queued — sends when this Mac is online.",alreadyCan:"You can already edit this.",unavailable:"Could not ask right now. Try again in a minute.",notLinked:"Ask a project owner for edit access.",answered:"That request is no longer open.",tipTitle:(e)=>`You can look at ${e||"this canvas"}, not change it.`,tipLine:"Ask to edit, top right, sends a request to its owner.",appOnlyTitle:(e)=>`You can look at ${e||"this canvas"} here, not change it.`,appOnlyLine:"You can edit it in the desktop app. Editing one canvas in a browser comes later.",asksToEdit:(e,t)=>`${e||"Someone"} asks to edit ${t||"this project"}`,canViewNow:"can view it now",letEdit:(e)=>`Let ${w0e(e)||"them"} edit`,notNow:"Not now",review:"Review",raised:(e)=>`You can edit ${e||"this project"} now.`,narrowedTo:(e,t)=>`${w0e(e)||"Someone"} changed you to ${Y9(t)}. Your changes were saved first.`,endedTitle:(e)=>`You no longer have access to ${e||"this project"}.`,endedLine:"Your last changes were saved first. If this is a surprise, ask someone on the team.",backHome:"Back to Home",linkOffTitle:"This link was turned off.",linkOffLine:(e)=>`Ask the person who shared ${e||"it"} for a new one.`,trashedTitle:(e,t)=>`${e||"Someone"} moved ${t||"this canvas"} to the trash`,trashedLine:"You can keep looking. Your unsent changes stay with it.",restore:"Restore",restoredAs:(e)=>`Restored as ${e}. A canvas with the old name already exists.`,sharedWithYou:(e)=>`Shared with you · ${Y9(e)}`,onlyOne:(e)=>`Only ${e} was shared with you.`,onlyMany:(e)=>`Only these ${e} canvases were shared with you.`});n7=Object.freeze({path:"/_health",ms:30000}),o7=Object.freeze({path:"/_api/share/me",ms:60000}),x0e=Symbol.for("maude.access.refusal-watch");J9=new Set});function X0e(e=globalThis.window){b7=!0,e?.dispatchEvent?.(new CustomEvent("maude:open-trash"))}function x7(){let e=b7;return b7=!1,e}function Vx(e,t=globalThis.window){y7.push(e),t?.dispatchEvent?.(new CustomEvent(XD))}function Z0e(){let e=y7;return y7=[],e}function tf(e,t,n,o=globalThis.window){o?.dispatchEvent?.(new CustomEvent(gI,{detail:{op:e,path:t,label:n}}))}function pg(e,t,n=globalThis.window){n?.dispatchEvent?.(new CustomEvent(gI,{detail:{op:"jump",path:e,artboardId:t}}))}function J0e(e=globalThis.window){v7=!0,e?.dispatchEvent?.(new CustomEvent(ZD))}function Q0e(){let e=v7;return v7=!1,e}var w7="maude:open-trash",b7=!1,XD="maude:canvases-op",y7,gI="maude:canvas-op",ZD="maude:focus-selector",v7=!1;var qu=Ke(()=>{y7=[]});var nf=(...e)=>e,Gx;var JD=Ke(()=>{Gx=Object.freeze([{id:"kanban",title:"Kanban",desc:"To do · Doing · Done",thumb:"kanban",board:{groups:[{title:"To do",cards:nf("","")},{title:"Doing",cards:nf("")},{title:"Done",cards:nf("")}]}},{id:"retro",title:"Retro",desc:"Went well · To improve · Actions",thumb:"retro",board:{groups:[{title:"Went well",cards:nf("","")},{title:"To improve",cards:nf("","")},{title:"Actions",cards:nf("")}]}},{id:"flow",title:"Flowchart",desc:"Steps and decisions",thumb:"flow",board:{layout:"flow",nodes:[{id:"start",label:"Start"},{id:"decide",label:"Decision?",shape:"diamond"},{id:"yes",label:"Yes"},{id:"no",label:"No"}],edges:[{from:"start",to:"decide"},{from:"decide",to:"yes",label:"Yes"},{from:"decide",to:"no",label:"No"}]}},{id:"calendar",title:"Content calendar",desc:"One column a day",thumb:"cal",board:{groups:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"].map((e)=>({title:e,cards:nf("")}))}},{id:"roadmap",title:"Roadmap",desc:"One column a month",thumb:"road",board:{groups:[{title:"This month",cards:nf("","")},{title:"Next month",cards:nf("","")},{title:"The month after",cards:nf("")}]}},{id:"brainstorm",title:"Brainstorm",desc:"A topic and ideas round it",thumb:"brain",board:{title:"Topic",layout:"radial",groups:[{title:"Ideas",cards:nf("","","","","","")}]}},{id:"checklist",title:"Checklist",desc:"One section, ticks",thumb:"check",board:{groups:[{title:"Checklist",cards:[{text:"Checklist",items:["","",""]}]}]}},{id:"blank",title:"Blank section",desc:"Draw it, name it",thumb:"blank",board:{groups:[{title:"Section"}]}}])});var bI,yI,eSe;var tSe=Ke(()=>{bI={shell:["desktop"],minRole:"edit"},yI={hidden:!0},eSe=[{id:"ai.runs.list",label:"AI runs",kind:"command",icon:"sparkle",exec:"shell",visible:bI,search:yI},{id:"ai.stop",label:"Stop",kind:"command",exec:"shell",visible:bI,search:yI},{id:"ai.cancel-waiting",label:"Cancel the waiting prompt",kind:"command",exec:"shell",visible:bI,search:yI},{id:"ai.run-on-copy",label:"Run on a copy",kind:"command",exec:"shell",visible:bI,search:yI},{id:"ai.keep-going",label:"Keep going",kind:"command",exec:"shell",visible:bI,search:yI}]});function oSe(e){if(e===" ")return"Space";let t=String(e).trim();if(!t||/\b(click|hover|drag|scroll)\b/i.test(t))return null;let n=new Set;t=t.replace(/\b(cmd|command|meta|ctrl|control|alt|opt|option|shift)\s*\+\s*/gi,(r,a)=>(n.add(oPt[a.toLowerCase()]),""));for(;;){t=t.replace(/^\s+/,"");let r=QD.find((a)=>t.startsWith(a));if(!r||t.trim().length===r.length)break;n.add(r),t=t.slice(r.length)}let o=t.trim();if(e3[o])o=e3[o];else if(/^[a-z]$/i.test(o))o=o.toUpperCase();else if(/^f\d{1,2}$/i.test(o))o=o.toUpperCase();if(!o)return null;return QD.filter((r)=>n.has(r)).join("")+o}function D1(e){let t=oSe(e);if(!t)throw Error(`actions/keys: '${e}' is not a key chord`);return t}function z1(e){let t=new Set;if(e.metaKey||e.ctrlKey)t.add("⌘");if(e.altKey)t.add("⌥");let n=e.key??"";if(e3[n])n=e3[n];else if(/^F\d{1,2}$/.test(n));else if(/^[\x21-\x7e]$/.test(n)){if(/^[a-z]$/i.test(n))n=n.toUpperCase();else if(n==="/"&&e.shiftKey&&e.code==="Slash"&&!e.altKey)n="?"}else if(e.code){let a=/^Key([A-Z])$/.exec(e.code)??/^Digit(\d)$/.exec(e.code);n=a?a[1]:rPt[e.code]??n}let o=e.shiftKey&&t.size===0?/^Digit(\d)$/.exec(e.code??""):null;if(o)n=o[1];let r=!!o||/^[A-Z]$/.test(n)||nSe.has(n)||/^F\d/.test(n);if(e.shiftKey&&r)t.add("⇧");return QD.filter((a)=>t.has(a)).join("")+n}function rSe(e){let{mods:t,key:n}=sSe(e);if(t.some((o)=>o!=="⇧"))return!1;if(nSe.has(n)||/^F\d{1,2}$/.test(n))return!1;return n.length===1}function aSe(e){return e.includes("⌘")||e.includes("⌃")}function sSe(e){let t=[],n=e;for(;;){let o=QD.find((r)=>n.startsWith(r)&&n.length>r.length);if(!o)break;t.push(o),n=n.slice(o.length)}return{mods:t,key:n}}function km(e,t={}){let{mods:n,key:o}=sSe(oSe(e)??e),r=o==="="&&n.includes("⌘")?"+":o;return t.spaced?[...n,r].join(" "):n.join("")+r}var QD,e3,nSe,oPt,rPt,iSe,lSe;var of=Ke(()=>{QD=["⌃","⌥","⇧","⌘"],e3={Enter:"↵",Return:"↵","↩":"↵",Escape:"esc",Esc:"esc",esc:"esc"," ":"Space",Space:"Space",Spacebar:"Space",ArrowLeft:"←",ArrowRight:"→",ArrowUp:"↑",ArrowDown:"↓",Backspace:"⌫",Delete:"⌦",Del:"⌦",Tab:"tab",tab:"tab",Home:"Home",End:"End",PageUp:"PageUp",PageDown:"PageDown","-":"−","–":"−"},nSe=new Set(["↵","esc","Space","tab","⌫","⌦","←","→","↑","↓","Home","End","PageUp","PageDown"]),oPt={cmd:"⌘",command:"⌘",meta:"⌘",ctrl:"⌃",control:"⌃",alt:"⌥",opt:"⌥",option:"⌥",shift:"⇧"};rPt={Minus:"−",Equal:"=",Slash:"/",Backslash:"\\",BracketLeft:"[",BracketRight:"]",Comma:",",Period:".",Semicolon:";",Quote:"'",Backquote:"`",Space:"Space"};iSe=new Set(["⌘Z","⇧⌘Z","⌘Y","⌘A","⌘C","⌘X","⌘V","⇧⌘V","⌥⇧⌘V","⌘B","⌘I","⌘U","⌘←","⌘→","⌘↑","⌘↓","⇧⌘←","⇧⌘→","⌥←","⌥→","⌘⌫","⌥⌫"].map(D1)),lSe=new Set(["⌘N","⇧⌘N","⌘T","⌘W","⌘Q","⌘L"].map(D1))});function Et(e,t,n={}){return{chord:D1(e),layer:t,...n}}function Kr(e,t,n,o={}){let r=[...t],a=[];for(let s=0;s<1<<r.length;s++){let l=r.filter((u,d)=>s&1<<d).join(""),c=Et(l+e,n,o);a.push(s===0?c:{...c,alias:!0})}return a}var Zd,vI,t3,Xc,qx;var Jd=Ke(()=>{of();Zd=["chrome","timeline","text"],vI={focus:["chrome","timeline"],notFacts:["rangeFocused"]},t3={notFacts:["selectFocused"]},Xc={focus:["canvas"]},qx={focus:["canvas","text"]}});var My,$y,Kx,k7,cSe,Zc=(e,t,n)=>({id:e,label:t,kind:"command",exec:"canvas",keys:n}),Ry=(e,t,n,o={})=>({id:e,label:t,kind:"command",exec:"canvas",enabled:{minRole:"edit",selection:["annotation"]},keys:n,...o}),aPt,uSe,dSe,pSe;var fSe=Ke(()=>{JD();Jd();My={...Xc,selection:["annotation"]},$y={...My,mode:["preview"]},Kx={focus:["canvas"],selection:["annotation"],facts:["checkItemFocused"]},k7={...Kx,focus:["text"]},cSe={...My,notFacts:["checkItemFocused"]},aPt=[{id:"annotation.make-checklist",label:"Turn into checklist",kind:"command",exec:"canvas",enabled:{minRole:"edit",selection:["annotation"]},search:{keywords:["checklist","todo","to-do","tasks","tick","sticky","list"]}},Ry("checklist.toggle","Tick / untick",[Et("Space","selection",{when:Kx}),Et("⌘↵","selection",{when:k7,inText:!0})],{search:{keywords:["tick","check","done","todo","checklist"]}}),Ry("checklist.edit","Edit item",[Et("↵","selection",{when:Kx})],{search:{keywords:["checklist","item","rename","reword"]}}),Ry("checklist.add-below","Add an item",[Et("↵","selection",{when:k7,inText:!0})],{search:{keywords:["checklist","item","add","todo","new"]}}),Ry("checklist.remove-empty","Remove the empty item",[Et("⌫","selection",{when:k7,inText:!0})],{search:{keywords:["checklist","item","remove","delete"]}}),Ry("checklist.move-up","Move item up",[Et("⌥⌘↑","selection",{when:{...Kx,focus:["canvas","text"]},inText:!0})],{search:{keywords:["checklist","reorder","up"]}}),Ry("checklist.move-down","Move item down",[Et("⌥⌘↓","selection",{when:{...Kx,focus:["canvas","text"]},inText:!0})],{search:{keywords:["checklist","reorder","down"]}}),Ry("checklist.focus-prev","Previous item",[Et("↑","selection",{when:Kx})],{search:{hidden:!0}}),Ry("checklist.focus-next","Next item",[Et("↓","selection",{when:Kx})],{search:{hidden:!0}})],uSe=[Zc("annotation.group","Group",[Et("⌘G","selection",{when:$y})]),Zc("annotation.ungroup","Ungroup",[Et("⇧⌘G","selection",{when:$y})]),Zc("annotation.lock","Lock / unlock",[Et("⇧⌘L","selection",{when:$y})]),Zc("annotation.duplicate","Duplicate",[Et("⌘D","selection",{when:My})]),Zc("annotation.to-front","Bring to front",[Et("]","selection",{when:$y})]),Zc("annotation.forward","Bring forward",[Et("⌘]","selection",{when:$y})]),Zc("annotation.to-back","Send to back",[Et("[","selection",{when:$y})]),Zc("annotation.backward","Send backward",[Et("⌘[","selection",{when:$y})]),Zc("annotation.copy","Copy",[Et("⌘C","selection",{when:My})]),Zc("annotation.cut","Cut",[Et("⌘X","selection",{when:My})]),Zc("annotation.chain","Add the next one",[Et("⌘↵","selection",{when:My})]),Zc("annotation.edit-text","Edit text",[Et("↵","selection",{when:cSe})]),Zc("annotation.nudge","Nudge",["←","→","↑","↓"].flatMap((e)=>Kr(e,"⇧","selection",{when:cSe}))),Zc("annotation.remove","Remove",[...Kr("⌫","⇧","selection",{when:My}),...Kr("⌦","⇧","selection",{when:My})]),{id:"annotation.point-to",label:"Point to…",kind:"command",exec:"canvas",enabled:{minRole:"edit",selection:["annotation"]},search:{keywords:["arrow","point","bind","re-aim","dangling"]}},{id:"annotation.resolve",label:"Resolve",kind:"command",exec:"canvas",enabled:{minRole:"edit",selection:["annotation"]},search:{keywords:["resolve","reopen","done","sticky","strike"]}},{id:"annotation.fan-out",label:"Fan out",kind:"command",exec:"canvas",enabled:{minRole:"edit",selection:["annotation"]},search:{keywords:["stack","spread","sticky","row"]}},{id:"annotation.to-comment",label:"Turn into a comment",kind:"command",exec:"canvas",icon:"comment",enabled:{minRole:"edit",selection:["annotation"]},search:{keywords:["comment","thread","sticky","convert","answer"]}},{id:"annotation.fold",label:"Fold section",kind:"command",exec:"canvas",enabled:{minRole:"edit",selection:["annotation"]},search:{keywords:["fold","unfold","collapse","section","expand"]}},{id:"annotation.ask-ai",label:"Ask AI about this",kind:"command",exec:"canvas",icon:"sparkle",enabled:{minRole:"edit",selection:["annotation"]},keys:[Et("⌘/","selection",{when:$y})],search:{keywords:["ask ai","sticky","section","selection"]}},...aPt],dSe=[{id:"annotations.hide-resolved",label:"Hide resolved stickies",kind:"command",exec:"canvas",visible:{minRole:"view"},search:{keywords:["resolved","done","sticky","hide","show"]}},{id:"annotations.trash-resolved",label:"Move resolved stickies to the trash",kind:"command",exec:"canvas",icon:"trash",enabled:{minRole:"edit",facts:["canvasOpen"]},search:{keywords:["resolved","trash","clear","sticky","done","delete"]}},{id:"annotations.start-vote",label:"Start a vote…",kind:"command",exec:"canvas",enabled:{minRole:"edit",facts:["canvasOpen"]},search:{keywords:["vote","poll","dot","decide","ballot","pick"]}},{id:"annotations.end-vote",label:"End vote",kind:"command",exec:"shell",enabled:{minRole:"edit",facts:["canvasOpen"]},search:{keywords:["vote","end","finish","results","count"]}},{id:"annotations.select-resolved",label:"Select resolved stickies",kind:"command",exec:"canvas",enabled:{facts:["canvasOpen"]},search:{keywords:["resolved","select","sticky","done"]}}],pSe=Gx.map((e)=>({id:`annotation.template-${e.id}`,label:`${e.title} template`,kind:"command",exec:"shell",enabled:{minRole:"edit",facts:["canvasOpen"]},search:{keywords:["template","start","section"]}}))});var mSe,hSe;var gSe=Ke(()=>{Jd();mSe={focus:["chrome","timeline","canvas"],notFacts:["rangeFocused"]},hSe=[{id:"settings.open",label:"Settings…",kind:"command",icon:"sliders",exec:"shell",fromCanvas:!0,keys:[Et("⌘,","global",{inText:!0,when:{focus:[...Zd,"canvas"]}})],legacy:{palette:"Settings…",menu:"Settings…"}},{id:"settings.reset-panel-layout",label:"Reset panel layout",kind:"command",exec:"shell",visible:{shell:["desktop","browser"],minRole:"edit"},search:{keywords:["panels","sides","dock","layout","left","right"]}},{id:"settings.reset-all",label:"Reset all settings…",kind:"command",exec:"shell",visible:{shell:["desktop","browser"],minRole:"edit"},search:{keywords:["defaults","preferences","fresh"]}},{id:"settings.use-own-plugin-copy",label:"Use my own plugin copy",kind:"toggle",exec:"shell",visible:{shell:["desktop","browser"],minRole:"edit"},search:{keywords:["plugins","claude code","bundled","marketplace"]}},{id:"settings.experimental-teams",label:"AI reviews argue it out (teams)",kind:"toggle",exec:"shell",visible:{shell:["desktop","browser"],minRole:"edit"},search:{keywords:["teams","debate","review","experimental"]}},{id:"connections.replace-hub-token",label:"Replace the team server’s access token…",kind:"command",exec:"shell",visible:{shell:["desktop","browser"]},search:{keywords:["hub","token","team server","self-hosted","credential","access"]}},{id:"connections.figma-test",label:"Test the Figma connection",kind:"command",exec:"shell",visible:{shell:["desktop","browser"],minRole:"edit"},search:{keywords:["figma","token","import","check"]}},{id:"connections.cloud-project-connect",label:"Connect this folder to a cloud project…",kind:"command",exec:"shell",visible:{shell:["desktop","browser"],minRole:"edit"},search:{keywords:["cloud","link","attach","sync","workspace"]}},{id:"connections.cloud-project-disconnect",label:"Disconnect this folder from its server…",kind:"command",exec:"shell",visible:{shell:["desktop","browser"]},search:{keywords:["cloud","unlink","detach","stop syncing","sign out"]}},{id:"account.switch",label:"Switch account…",kind:"command",exec:"shell",visible:{shell:["desktop","cloud"]},search:{keywords:["account","sign in","profile","no account","this mac only"]}},{id:"account.add-cloud",label:"Add a Maude Cloud account…",kind:"command",exec:"shell",visible:{shell:["desktop"]},search:{keywords:["cloud","sign in","account","login"]}},{id:"account.link-server",label:"Link your server…",kind:"command",exec:"shell",visible:{shell:["desktop","browser"]},search:{keywords:["team server","hub","self-hosted","custom server","sign in","link"]}},{id:"account.github-signin",label:"Sign in with GitHub…",kind:"command",exec:"shell",visible:{shell:["desktop"]},search:{keywords:["github","sign in","login","publish","connect"]}},{id:"ai.chat",label:"AI chat",kind:"toggle",icon:"sparkle",exec:"shell",visible:{shell:["desktop","cloud"]},enabled:{shell:["desktop"]},search:{note:"in the desktop app"},keys:[Et("⌘/","global",{inText:!0,when:{focus:Zd,facts:["native"]}})],legacy:{menu:"Assistant"}},{id:"help.shortcuts",label:"Keyboard shortcuts",kind:"toggle",icon:"help",exec:"shell",fromCanvas:!0,keys:[Et("?","global",{inText:!1,when:mSe}),Et("⌘?","global",{inText:!1,alias:!0,when:mSe})],legacy:{palette:"Keyboard shortcuts",menu:"Keyboard shortcuts",sheet:"This cheat sheet · help"}},{id:"help.guides",label:"Help and guides",kind:"command",icon:"help",exec:"shell",keys:Kr("F1","⌥⇧⌘","global",{inText:!1,when:vI}),legacy:{palette:"Help · commands & flows",menu:"Help · commands & flows",sheet:"This cheat sheet · help"}},{id:"help.add-guides",label:"Add the guide canvases to this project",kind:"command",icon:"help",exec:"shell",visible:{shell:["desktop","browser"],minRole:"edit"},search:{keywords:["guides","how to use maude","how to make video","tutorial","examples"],where:"Help and guides"}},{id:"ai.ask-fill-artboard",label:"Ask AI to fill this artboard",kind:"command",icon:"sparkle",exec:"shell",visible:{shell:["desktop"],minRole:"edit"},search:{keywords:["fill","empty artboard","draft","ask ai"],where:"Empty artboard › Ask AI"}},{id:"ai.generate",label:"Ask AI to generate…",kind:"command",icon:"sparkle",exec:"shell",legacy:{palette:"Ask AI to generate…",menu:"Ask AI to generate…"}},{id:"ai.draw-mark",label:"Draw a mark",kind:"command",icon:"pen",exec:"shell",legacy:{palette:"Draw a mark with the SVG agent"}},{id:"help.whats-new",label:"What's new",kind:"command",icon:"sparkle",exec:"shell",legacy:{palette:"What's new in maude",menu:"What's new"}},{id:"help.tour",label:"Take the tour",kind:"command",exec:"shell",legacy:{menu:"Take the tour"}},{id:"help.intro",label:"Watch the intro",kind:"command",exec:"shell",legacy:{menu:"Watch the intro"}},{id:"help.sharing",label:"How sharing works",kind:"command",exec:"shell",legacy:{menu:"How sharing works"}},{id:"help.setup",label:"Set up Maude…",kind:"command",exec:"shell",legacy:{menu:"Quick setup"}},{id:"help.ai-readiness",label:"Check AI setup again",kind:"command",exec:"shell",legacy:{menu:"Check AI editing readiness…"}},{id:"help.report-bug",label:"Report a bug…",kind:"command",icon:"help",exec:"shell",native:{menu:"Help",order:1},legacy:{palette:"Report a bug…",menu:"Report a bug…"}}]});var bSe;var ySe=Ke(()=>{Jd();bSe=[{id:"canvas.new",label:"New canvas",kind:"command",icon:"plus",exec:"shell",search:{hint:"An empty canvas, ready to draw on"},visible:{minRole:"edit"},keys:[Et("⌘N","global",{inText:!0,when:{shell:["desktop"]}})],legacy:{palette:"New canvas",menu:"New canvas…",sheet:"New brief board"}},{id:"canvas.new-brief",label:"New brief canvas",kind:"command",icon:"plus",exec:"shell",search:{hint:"A board to write a brief on, for AI to draft from"},visible:{minRole:"edit"}},{id:"home.ask",label:"Ask AI for a new canvas…",kind:"command",icon:"sparkle",exec:"shell",visible:{minRole:"edit"},search:{hidden:!0}},{id:"canvas.reload",label:"Reload canvas",kind:"command",icon:"reload",exec:"shell",fromCanvas:!0,keys:[Et("⌘R","global",{inText:!0})],legacy:{palette:"Reload active canvas",menu:"Reload canvas",sheet:"Reload canvas"}},{id:"canvas.new-video",label:"New video",kind:"command",icon:"plus",exec:"shell",search:{hint:"A canvas for a video, with its timeline"},visible:{minRole:"edit"},legacy:{palette:"New video…"}},{id:"canvas.close",label:"Close canvas",kind:"command",exec:"shell",visible:{minRole:"comment"},enabled:{facts:["canvasOpen"]},legacy:{menu:"Close canvas"}},{id:"canvas.duplicate",label:"Duplicate canvas",kind:"command",exec:"shell",visible:{minRole:"edit"},enabled:{facts:["canvasOpen"]}},{id:"canvas.rename",label:"Rename canvas",kind:"command",exec:"shell",visible:{minRole:"edit"},enabled:{facts:["canvasOpen"]}},{id:"canvas.move",label:"Move to…",kind:"command",exec:"shell",visible:{minRole:"edit"},enabled:{facts:["canvasOpen"]}},{id:"canvas.copy-link",label:"Copy canvas link",kind:"command",exec:"shell",search:{where:"Canvases panel › row menu"},enabled:{facts:["canvasOpen"]}},{id:"canvas.trash",label:"Move canvas to trash",kind:"command",icon:"trash",exec:"shell",visible:{minRole:"edit"},enabled:{facts:["canvasOpen"]}},{id:"canvas.view-code",label:"View code",kind:"command",icon:"code",exec:"shell",visible:{minRole:"comment"},enabled:{facts:["canvasOpen"]},search:{keywords:["code","source","tsx","developer","read only"],where:"Canvases panel › row menu › View code"}},{id:"canvas.reveal-in-finder",label:"Reveal in Finder",kind:"command",icon:"folder",exec:"native",visible:{shell:["desktop"],facts:["native"],minRole:"edit"},enabled:{facts:["canvasOpen"]},search:{keywords:["finder","show","file","folder","explorer"],where:"Canvases › Advanced"}},{id:"canvas.open-in-editor",label:"Open in editor",kind:"command",icon:"edit",exec:"native",visible:{shell:["desktop"],facts:["native"],minRole:"edit"},enabled:{facts:["canvasOpen"]},search:{keywords:["editor","code","vscode","file","tsx"],where:"Canvases › Advanced"}},{id:"canvas.copy-file-path",label:"Copy file path",kind:"command",icon:"duplicate",exec:"shell",visible:{minRole:"comment"},enabled:{facts:["canvasOpen"]},search:{keywords:["path","file","copy","location"],where:"Canvases › Advanced"}},{id:"canvas.rename-file",label:"Rename file…",kind:"command",exec:"shell",visible:{minRole:"edit"},enabled:{facts:["canvasOpen"]},search:{keywords:["rename","file","name"],where:"Canvases › Advanced"}},{id:"canvas.copy-error",label:"Copy error",kind:"command",exec:"shell",visible:{minRole:"comment"},search:{hidden:!0}},{id:"canvas.ask-ai-fix",label:"Ask AI to fix it",kind:"command",exec:"shell",visible:{shell:["desktop"],minRole:"edit"},search:{hidden:!0}},{id:"canvas.last-good",label:"Last good version",kind:"command",exec:"shell",visible:{minRole:"edit"},search:{hidden:!0}},{id:"import.figma",label:"Import from Figma…",kind:"command",exec:"shell",visible:{minRole:"edit"},search:{keywords:["figma","frames","dev mode","access token"]}},{id:"import.brand",label:"Import a brand…",kind:"command",exec:"shell",visible:{minRole:"edit"}},{id:"video.assemble",label:"Assemble clips into a video",kind:"command",exec:"shell",visible:{minRole:"edit"},legacy:{menu:"Assemble dropped clips → video"}},...[["desktop","Desktop"],["laptop","Laptop"],["tablet","Tablet"],["mobile","Mobile"],["a4","A4 (print)"],["letter","Letter (print)"]].map(([e,t])=>({id:`artboard.new-${e}`,label:`New artboard: ${t.replace(" (print)","")}`,kind:"command",exec:"shell",visible:{minRole:"edit"},legacy:{menu:`New artboard: ${t}`}})),{id:"artboard.new-video",label:"New artboard: Video",kind:"command",exec:"shell",visible:{minRole:"edit"}}]});function Xx(e,t,n){return{id:`chat.advanced.${e}`,label:t,kind:"command",exec:"shell",visible:S7,search:{keywords:n,where:"AI chat panel › Advanced"}}}var S7,Yx,Sm,vSe;var wSe=Ke(()=>{S7={shell:["desktop"]},Yx={shell:["desktop"],minRole:"edit"},Sm={hidden:!0};vSe=[{id:"chat.new",label:"New chat",kind:"command",icon:"plus",exec:"shell",visible:S7,search:Sm},{id:"chat.rename",label:"Rename…",kind:"command",exec:"shell",visible:Yx,search:Sm},{id:"chat.archive",label:"Archive",kind:"command",exec:"shell",visible:Yx,search:Sm},{id:"chat.trash",label:"Move to trash",kind:"command",icon:"trash",exec:"shell",visible:Yx,search:Sm},{id:"chat.undo",label:"Undo this chat",kind:"command",exec:"shell",visible:Yx,search:Sm},{id:"chat.copy-transcript",label:"Copy transcript",kind:"command",exec:"shell",visible:S7,search:Sm},{id:"chat.open-in-terminal",label:"Open in terminal",kind:"command",exec:"native",visible:{shell:["desktop"],facts:["native"],minRole:"edit"},search:{keywords:["terminal","resume","claude"],where:"AI chat panel › Advanced"}},Xx("ask-before","Permissions",["ask before","mode","permission","plan","suggest only","bypass","auto"]),Xx("model","Model",["opus","sonnet","haiku","claude"]),Xx("effort","Effort",["thinking","think harder","low","high"]),Xx("fast-mode","Fast mode",["fast","speed"]),Xx("show-in-chat","Show in chat",["verbose","thinking","transcript","detail","view"]),Xx("suggestions","Suggestions",["chips","suggest","quick"]),Xx("raw-log","Raw log",["tool log","tools","calls","debug","log"]),{id:"ai.attach-files",label:"Attach files…",kind:"command",icon:"file",exec:"shell",visible:Yx,search:Sm},{id:"ai.attach-folder",label:"Choose a folder…",kind:"command",icon:"folder",exec:"shell",visible:{shell:["desktop"],minRole:"edit",facts:["native"]},search:Sm},{id:"ai.attach-assets",label:"From Assets",kind:"command",icon:"image",exec:"shell",visible:Yx,search:Sm},{id:"ai.attach-screenshot",label:"Paste a screenshot",kind:"command",exec:"shell",visible:Yx,search:Sm}]});var rf=(e,t,n={})=>({id:e,label:t,kind:"command",exec:"shell",...n}),xSe;var kSe=Ke(()=>{xSe=[rf("diag.sync","Sync"),rf("diag.server","Server"),rf("diag.ai","AI setup"),rf("diag.logs","Logs"),rf("diag.copy-logs","Copy logs",{search:{where:"Menu › Diagnostics › Logs"}}),{id:"diag.logs-show-in-finder",label:"Show logs in Finder",kind:"command",exec:"native",search:{where:"Menu › Diagnostics › Logs"}},rf("diag.ai-recheck","Check AI setup again"),rf("diag.address","Address"),rf("diag.process","Process"),rf("diag.project-folder","Project folder"),rf("sync.resync","Resync now",{visible:{minRole:"edit"},enabled:{facts:["online"]}}),rf("sync.download-all","Download all",{enabled:{facts:["online"]}})]});var SSe,sPt,wI,_Se,mr=(e,t,n=SSe)=>({id:e,label:t,kind:"command",exec:"shell",visible:n,search:_Se}),CSe;var NSe=Ke(()=>{SSe={minRole:"edit"},sPt={minRole:"owner"},wI={minRole:"view"},_Se={hidden:!0},CSe=[mr("ds.publish","Update canvases"),mr("ds.cancel-pending","Cancel"),mr("ds.keep-outside","Keep"),mr("ds.undo-outside","Undo"),mr("ds.pick","Use this"),mr("ds.canvas-update","Update"),mr("ds.canvas-leave","Keep this version"),mr("ds.trash-token","Move to Trash"),mr("ds.restore-token","Restore"),mr("ds.clear-token","Clear out",sPt),mr("ds.open","Design system",wI),mr("ds.set-theme-preview","Show the system in Light or Dark",wI),mr("ds.show-reach","Show where it lands",wI),mr("ds.review-update","Update for every canvas…"),mr("ds.go-to","Go to the design system",wI),mr("ds.instance-update","Update to the current look"),mr("ds.set-token","Change a token"),mr("ds.set-dark-follows","Dark follows Light"),mr("ds.set-master","Change a component"),mr("ds.make","Make a design system"),mr("ds.draft","Write a direction"),mr("ds.use-direction","Use this direction"),mr("ds.mix","Mix directions"),mr("ds.make-done","Finish the design system"),mr("ds.set-default","Use for new canvases"),mr("ds.rename","Rename…"),mr("ds.switch","Switch canvases to another system…"),mr("ds.preview","Preview in another system…",wI),mr("ds.convert","Turn into a Design system canvas"),mr("ds.convert-restore","Restore the system folder"),mr("ds.fix-contrast","Lighten to 4.5:1"),mr("ds.add-colour","Add it to the system"),mr("ds.use-nearest","Use the system colour"),mr("ds.check-system","Check the system"),{id:"ds.reveal-files",label:"Reveal in Finder",kind:"command",exec:"shell",visible:{shell:["desktop"],facts:["native"],minRole:"edit"},search:_Se},mr("ds.handoff-tokens","Hand off tokens"),{id:"ds.upgrade",label:"Bring it up to the schema",kind:"command",exec:"shell",visible:{minRole:"edit",facts:["dsUpgradeOffered"]},search:{keywords:["design system","schema","upgrade","bring up","conformant","tokens"]}},{id:"ds.library-link",label:"Link a team library",kind:"command",exec:"shell",visible:SSe,search:{keywords:["team","library","share","shared","brand kit","design system"]}},mr("ds.library-update","Update from the library"),mr("ds.library-unlink","Unlink the library")]});var ASe,TSe,ISe,Ln,Ni,_7,Oy=(e,t={})=>Et(e,"selection",{when:_7,...t}),Ly=(e,t,n)=>({id:e,label:t,kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},...n.length?{keys:n}:{}}),ESe;var $Se=Ke(()=>{Jd();ASe={focus:["chrome"],facts:["canvasOpen"],notFacts:["rangeFocused"]},TSe={when:t3,inText:!1},ISe={focus:["chrome","timeline"],facts:["canvasOpen"],notFacts:["rangeFocused"]},Ln={minRole:"edit"},Ni=Xc,_7={...Ni,mode:["edit"],selection:["object"]},ESe=[{id:"edit.undo",label:"Undo",kind:"command",exec:"canvas",enabled:Ln,keys:[Et("⌘Z","global",{inText:!1,when:ASe}),Et("⌘Z","timeline",TSe),Et("⌘Z","global",{when:Xc})],legacy:{menu:"Undo",sheet:"Undo / redo"}},{id:"edit.redo",label:"Redo",kind:"command",exec:"canvas",enabled:Ln,keys:[Et("⇧⌘Z","global",{inText:!1,when:ASe}),Et("⇧⌘Z","timeline",TSe),Et("⌘Y","global",{inText:!1,alias:!0,when:ISe}),Et("⇧⌘Y","global",{inText:!1,alias:!0,when:ISe}),Et("⇧⌘Z","global",{when:Xc}),Et("⌘Y","global",{alias:!0,when:Xc})],legacy:{menu:"Redo",sheet:"Undo / redo"}},{id:"edit.undo-history",label:"Undo history…",kind:"command",exec:"shell",visible:{minRole:"comment"},enabled:{...Ln,facts:["canvasOpen"]}},{id:"edit.copy",label:"Copy",kind:"command",exec:"shell",visible:{minRole:"comment"},keys:[Et("⌘C","global",{inText:!0,when:{focus:Zd}})]},{id:"edit.cut",label:"Cut",kind:"command",exec:"shell",visible:{minRole:"comment"},enabled:Ln,keys:[Et("⌘X","global",{inText:!0,when:{focus:Zd}})]},{id:"edit.paste",label:"Paste",kind:"command",exec:"shell",visible:{minRole:"comment"},enabled:Ln,keys:[Et("⌘V","global",{inText:!0,when:{focus:Zd}})]},{id:"select.all",label:"Select all",kind:"command",exec:"canvas",visible:{minRole:"comment"},keys:[Et("⌘A","selection",{when:Ni})]},{id:"select.none",label:"Deselect all",kind:"command",exec:"canvas",visible:{minRole:"comment"},legacy:{menu:"Deselect all"}},{id:"select.all-annotations",label:"Select all annotations",kind:"command",exec:"canvas",visible:Ln,keys:[Et("⇧⌘A","global",{inText:!1,when:Xc})],legacy:{menu:"Select all annotations"}},{id:"object.duplicate",label:"Duplicate",kind:"command",exec:"canvas",keys:[Et("⌘D","selection",{when:{...Ni,selection:["object"]}})]},{id:"object.copy",label:"Copy",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},keys:[Et("⌘C","selection",{when:_7})],search:{hidden:!0},help:{group:"objects",order:901}},{id:"object.cut",label:"Cut",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},keys:[Et("⌘X","selection",{when:_7})],search:{hidden:!0},help:{group:"objects",order:902}},{id:"artboard.copy",label:"Copy artboard",kind:"command",exec:"canvas",enabled:{...Ln,selection:["artboard"]},keys:[Et("⌘C","selection",{when:{...Ni,mode:["edit"],selection:["artboard"]}})],search:{hidden:!0},help:{group:"objects",order:903}},{id:"artboard.cut",label:"Cut artboard",kind:"command",exec:"canvas",enabled:{...Ln,selection:["artboard"]},keys:[Et("⌘X","selection",{when:{...Ni,mode:["edit"],selection:["artboard"]}})],search:{hidden:!0},help:{group:"objects",order:904}},{id:"canvas.paste",label:"Paste objects",kind:"command",exec:"canvas",enabled:Ln,search:{keywords:["paste","clipboard","objects","artboard"]}},{id:"edit.copy-properties",label:"Copy properties",kind:"command",exec:"canvas",visible:{minRole:"comment"},keys:Kr("⌥⌘C","⇧","selection",{when:{...Ni,selection:["object"]}})},{id:"edit.paste-properties",label:"Paste properties",kind:"command",exec:"canvas",visible:{minRole:"comment"},enabled:Ln,keys:Kr("⌥⌘V","⇧","selection",{when:{...Ni,selection:["object"]}})},{id:"object.enter",label:"Go inside",kind:"command",exec:"canvas",keys:[Et("↵","selection",{when:{...Ni,mode:["edit"],selection:["object"],notFacts:["toolArmed"]}})]},{id:"object.step-out",label:"Step out",kind:"command",exec:"canvas",enabled:{selection:["object"]}},{id:"object.select-child",label:"Select first child",kind:"command",exec:"canvas"},{id:"object.select-parent",label:"Select parent",kind:"command",exec:"canvas",keys:[Et("⇧↵","selection",{when:{...Ni,selection:["object"]}})]},{id:"object.select-next",label:"Select next object",kind:"command",exec:"canvas",keys:[Et("tab","selection",{when:{...Ni,mode:["edit"]}})]},{id:"object.select-prev",label:"Select previous object",kind:"command",exec:"canvas",keys:[Et("⇧tab","selection",{when:{...Ni,mode:["edit"]}})]},{id:"object.remove",label:"Remove",kind:"command",exec:"canvas",keys:[...Kr("⌫","⇧","global",{when:{focus:["chrome","timeline"],notFacts:["selectFocused"]}}),...Kr("⌦","⇧","global",{when:{focus:["chrome","timeline"],notFacts:["selectFocused"]}}),...["⌘⌫","⇧⌘⌫","⌥⌫","⌥⇧⌫","⌥⌘⌫","⌥⇧⌘⌫","⌘⌦","⇧⌘⌦","⌥⌦","⌥⇧⌦","⌥⌘⌦","⌥⇧⌘⌦"].map((e)=>Et(e,"timeline",{inText:!1,alias:!0,when:{selection:["clip"],notFacts:["selectFocused"]}})),...Kr("⌫","⇧","selection",{when:{...Ni,selection:["object"]}}),...Kr("⌦","⇧","selection",{when:{...Ni,selection:["object"]}})]},{id:"object.nudge",label:"Nudge",kind:"command",exec:"canvas",keys:["←","→","↑","↓"].flatMap((e)=>Kr(e,"⇧","selection",{when:{...Ni,selection:["object","artboard"]}}).map((t)=>t.chord==="←"||t.chord==="→"?{...t,when:{...t.when,notFacts:["selectionHasTakes"]}}:t))},Ly("object.frame","Frame selection",[Oy("⌥⌘G"),Oy("⌘G",{alias:!0})]),Ly("object.unframe","Remove frame",[Oy("⇧⌘G")]),Ly("object.bring-front","Bring to front",[Oy("⌘]")]),Ly("object.bring-forward","Bring forward",[Oy("]")]),Ly("object.send-backward","Send backward",[Oy("[")]),Ly("object.send-back","Send to back",[Oy("⌘[")]),Ly("object.lock","Lock",[Oy("⇧⌘L")]),Ly("object.hide","Hide",[]),{id:"object.select-matching",label:"Select matching",kind:"command",exec:"canvas",enabled:{selection:["object"]}},...[["align.left","Align left",["align","left","edge"]],["align.hcentre","Align horizontal centres",["align","centre","center","middle"]],["align.right","Align right",["align","right","edge"]],["align.top","Align top",["align","top","edge"]],["align.vmiddle","Align vertical middles",["align","middle","centre","center"]],["align.bottom","Align bottom",["align","bottom","edge"]],["distribute.h","Distribute horizontally",["distribute","space","even","gaps"]],["distribute.v","Distribute vertically",["distribute","space","even","gaps"]]].map(([e,t,n])=>({id:e,label:t,kind:"command",exec:"canvas",enabled:{...Ln,selection:["object","artboard"]},search:{keywords:[...n]}})),{id:"object.rotate",label:"Rotate 90°",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{keywords:["rotate","turn","angle"]}},{id:"object.place-freely",label:"Place freely",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{keywords:["absolute","free","position","ignore auto layout","x y"]}},{id:"object.reorder-earlier",label:"Move earlier",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{keywords:["reorder","order","earlier","before","left","up"]}},{id:"object.reorder-later",label:"Move later",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{keywords:["reorder","order","later","after","right","down"]}},{id:"object.reorder-to",label:"Move next to…",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{hidden:!0}},{id:"object.constrain",label:"Constraints",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{hidden:!0}},{id:"layout.set-gap",label:"Set gap",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{hidden:!0}},{id:"layout.convert-to-absolute",label:"Convert children to absolute position",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{keywords:["remove auto layout","absolute","free","unlayout","convert layout"]}},{id:"object.insert-shape",label:"Draw a shape",kind:"command",exec:"canvas",enabled:Ln,search:{hidden:!0}},{id:"artboard.draw",label:"Draw an artboard",kind:"command",exec:"canvas",enabled:Ln,search:{hidden:!0}},{id:"artboard.insert-preset",label:"Add an artboard",kind:"command",exec:"canvas",enabled:Ln,search:{hidden:!0}},{id:"object.insert-path",label:"Draw a path",kind:"command",exec:"canvas",enabled:Ln,search:{hidden:!0}},{id:"path.edit",label:"Edit path points",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{hidden:!0}},...[["union","Union selection"],["subtract","Subtract selection"],["intersect","Intersect selection"],["exclude","Exclude selection"]].map(([e,t])=>({id:`shape.combine.${e}`,label:t,kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]}})),{id:"object.set-corner-radius",label:"Round a corner",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{hidden:!0}},{id:"text.set",label:"Set text",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{hidden:!0}},{id:"text.set-language",label:"Set language",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{hidden:!0}},{id:"text.set-case",label:"Set case",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{hidden:!0}},{id:"text.use-style",label:"Use a style",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{hidden:!0}},{id:"text.reset-style",label:"Reset text style",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{keywords:["reset","override","style","type","font","size"]}},{id:"component.insert",label:"Place a component",kind:"command",exec:"canvas",enabled:{...Ln},search:{hidden:!0}},{id:"image.place",label:"Place a picture",kind:"command",exec:"canvas",enabled:Ln,search:{hidden:!0}},{id:"image.crop",label:"Crop",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{keywords:["crop","fit","fill","tile","zoom","picture","image","photo"]}},{id:"image.replace",label:"Replace…",kind:"command",exec:"shell",enabled:{...Ln,selection:["object"]},search:{keywords:["replace","swap","picture","image","photo"]}},{id:"image.next-take",label:"Next take",kind:"command",exec:"shell",enabled:{...Ln},keys:[Et("→","selection",{when:{focus:["chrome"],facts:["selectionHasTakes"]}})],search:{hidden:!0}},{id:"image.prev-take",label:"Previous take",kind:"command",exec:"shell",enabled:{...Ln},keys:[Et("←","selection",{when:{focus:["chrome"],facts:["selectionHasTakes"]}})],search:{hidden:!0}},{id:"photo.use-edit",label:"Edit this use of the photo",kind:"command",exec:"shell",enabled:{...Ln,selection:["object"]},search:{hidden:!0}},{id:"photo.apply-every-use",label:"Apply to every use…",kind:"command",exec:"shell",enabled:{...Ln,selection:["object"]},search:{keywords:["apply","every","use","all","photo","picture","image","look"]}},{id:"figma.make-editable",label:"Make editable",kind:"command",exec:"shell",enabled:{...Ln,selection:["artboard"]},search:{hidden:!0}},{id:"component.swap-variant",label:"Swap variant or component",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{hidden:!0}},{id:"component.reset",label:"Reset to the main component",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{keywords:["reset","override","instance","component","changes","master"]}},{id:"component.detach",label:"Detach instance",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{keywords:["detach","unlink","instance","component","plain","frame"]}},{id:"component.go-to-main",label:"Go to the main component",kind:"command",exec:"shell",enabled:{selection:["object"]},search:{hidden:!0}},{id:"text.detach-style",label:"Detach text style",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{keywords:["detach","style","unlink","type","no style"]}},{id:"inspector.copy-css",label:"Copy CSS",kind:"command",exec:"shell",search:{where:"Inspector › Advanced"},enabled:{selection:["object"]}},{id:"element.copy-id",label:"Copy element id",kind:"command",exec:"shell",search:{where:"Inspector › Advanced"},enabled:{selection:["object"]}},{id:"element.set-id",label:"Edit element id…",kind:"command",exec:"shell",search:{where:"Inspector › Advanced"},enabled:{...Ln,selection:["object"]}},{id:"element.stamp",label:"Name element",kind:"command",exec:"canvas",enabled:Ln,search:{hidden:!0}},{id:"artboard.resize",label:"Resize artboard",kind:"command",exec:"canvas",enabled:{...Ln,selection:["artboard"]},search:{hidden:!0}},{id:"artboard.add-width",label:"Add a width",kind:"command",exec:"shell",enabled:{...Ln,selection:["artboard"]},search:{hidden:!0}},{id:"artboard.tidy",label:"Tidy up artboards",kind:"command",exec:"canvas",enabled:{...Ln,selection:["artboard"]},search:{keywords:["tidy","row","even","gaps","arrange","line up"]}},{id:"artboard.duplicate",label:"Duplicate artboard",kind:"command",exec:"canvas",enabled:{...Ln,selection:["artboard"]},keys:[Et("⌘D","selection",{when:{...Ni,mode:["edit"],selection:["artboard"]}})],search:{keywords:["copy","clone","duplicate","artboard"]}},{id:"artboard.duplicate-at-width",label:"Duplicate at another width",kind:"command",exec:"canvas",enabled:{...Ln,selection:["artboard"]},search:{hidden:!0}},{id:"artboard.set-safe-zones",label:"Set safe zones",kind:"command",exec:"canvas",enabled:{...Ln,selection:["artboard"]},search:{hidden:!0}},{id:"artboard.set-print",label:"Set paper, size, bleed or margin",kind:"command",exec:"canvas",enabled:{...Ln,selection:["artboard"]},search:{hidden:!0}},{id:"artboard.convert-kind",label:"Change kind",kind:"command",exec:"canvas",enabled:{...Ln,selection:["artboard"]},search:{hidden:!0}},{id:"warning.fix",label:"Fix what to check",kind:"command",exec:"canvas",enabled:{...Ln,selection:["artboard"]},search:{hidden:!0}},{id:"artboard.set-print-guides",label:"Print guides on this artboard",kind:"command",exec:"canvas",enabled:{...Ln,selection:["artboard"]},search:{hidden:!0}},{id:"artboard.set-guides",label:"Set layout guides",kind:"command",exec:"canvas",enabled:{...Ln,selection:["artboard"]},search:{hidden:!0}},{id:"artboard.rename",label:"Rename artboard",kind:"command",exec:"canvas",enabled:{...Ln,selection:["artboard"]},search:{keywords:["name","label","artboard"]}},{id:"artboard.reset-position",label:"Reset artboard position",kind:"command",exec:"canvas",enabled:{...Ln,selection:["artboard"]},search:{keywords:["position","grid","back","artboard"]}},{id:"artboard.trash",label:"Move artboard to the trash",kind:"command",exec:"canvas",enabled:{...Ln,selection:["artboard"]},keys:[...Kr("⌫","⇧","selection",{when:{...Ni,selection:["artboard"]}}),...Kr("⌦","⇧","selection",{when:{...Ni,selection:["artboard"]}})],search:{keywords:["delete","remove","trash","artboard"]}},{id:"artboard.ask-ai",label:"Ask AI about this artboard",kind:"command",exec:"shell",enabled:{...Ln,selection:["artboard"]},search:{hidden:!0}},{id:"ai.ask-selection",label:"Ask AI about the selection",kind:"command",icon:"sparkle",exec:"canvas",visible:Ln,enabled:{...Ln,selection:["object"]},keys:[Et("⌘/","selection",{when:{...Ni,mode:["edit"],selection:["object"]}})],search:{keywords:["ask ai","selection","in place","change these"]}},{id:"element.set-link",label:"Set link",kind:"command",exec:"shell",enabled:{...Ln,selection:["object"]}},{id:"element.clear-link",label:"Clear link",kind:"command",exec:"shell",enabled:{...Ln,selection:["object"]}},{id:"inspector.copy-code",label:"Copy code",kind:"command",exec:"shell",search:{where:"Inspector › Advanced"},enabled:{minRole:"comment",selection:["object"]}},{id:"inspector.edit-css-as-text",label:"Edit CSS as text…",kind:"command",exec:"shell",search:{where:"Inspector › Advanced"},enabled:{...Ln,selection:["object"]}},{id:"element.detach",label:"Detach from shared component",kind:"command",exec:"shell",search:{where:"Inspector › Advanced"},enabled:{...Ln,selection:["object"]}},{id:"inspect.copy-code",label:"Copy code",kind:"command",exec:"shell",enabled:{minRole:"comment",mode:["preview","viewing"],selection:["object"]}},{id:"inspect.edit",label:"Edit",kind:"command",exec:"canvas",enabled:{...Ln,mode:["preview","viewing"],selection:["object"]},keys:[Et("↵","selection",{when:{...Ni,mode:["preview","viewing"],selection:["object"]}})],search:{keywords:["inspect","switch","edit mode"]}},{id:"asset.relink",label:"Relink…",kind:"command",exec:"shell",enabled:{...Ln}}]});var RSe;var MSe=Ke(()=>{Jd();RSe=[{id:"export.open",label:"Export…",kind:"command",icon:"download",exec:"shell",fromCanvas:!0,visible:{minRole:"comment"},keys:[Et("⇧⌘E","global",{inText:!0})],legacy:{palette:"Export…",menu:"Export…",sheet:"Export…"}},{id:"export.copy-png",label:"Copy as PNG",kind:"command",icon:"image",exec:"shell",fromCanvas:!0,visible:{minRole:"comment"},enabled:{facts:["canvasOpen"]},keys:[Et("⇧⌘C","selection",{inText:!1,when:{selection:["artboard","object","video-artboard","generated-image"]}})],search:{keywords:["clipboard","image","paste","png"]}},{id:"export.copy-command",label:"Copy export command",kind:"command",exec:"shell",visible:{minRole:"comment"},enabled:{facts:["canvasOpen"]},search:{where:"Export › Advanced",keywords:["terminal","cli","command line","script"]}},{id:"handoff.open",label:"Handoff to production",kind:"command",icon:"external",exec:"shell",visible:{minRole:"comment"},fromCanvas:!0,enabled:{minRole:"edit",facts:["canvasOpen"]},keys:[Et("⇧⌘H","global",{inText:!0})],legacy:{palette:"Handoff to production",menu:"Handoff to production",sheet:"Handoff to production"}},{id:"export.rerun-last",label:"Export again",kind:"command",exec:"shell",visible:{minRole:"comment"},legacy:{sheet:"Export again"}},{id:"export.retry",label:"Retry",kind:"command",exec:"shell",visible:{minRole:"comment"},search:{hidden:!0}},{id:"export.cancel",label:"Cancel",kind:"command",exec:"shell",visible:{minRole:"comment"},search:{hidden:!0}},{id:"share.open",label:"Share…",kind:"command",icon:"share",exec:"shell",visible:{minRole:"comment"},enabled:{facts:["canvasOpen"]},legacy:{menu:"Share link…"}},{id:"share.copy-link",label:"Copy link",kind:"command",icon:"link",exec:"shell",search:{where:"Share"},legacy:{palette:"Copy link"}},{id:"share.move-to-cloud",label:"Move to Maude Cloud…",kind:"command",exec:"shell",visible:{shell:["desktop"],notFacts:["linkedHub"]}},{id:"sync.connect-link",label:"Connect",kind:"command",exec:"shell",visible:{minRole:"edit",notFacts:["linkedHub"]},search:{hidden:!0,where:"Share"}},{id:"share.link-settings",label:"Link settings…",kind:"command",icon:"link",exec:"shell",visible:{minRole:"owner",facts:["linkedHub"]},search:{keywords:["link","expires","anyone with the link","team only","turn off link"]}},{id:"share.invite",label:"Invite people…",kind:"command",icon:"people",exec:"shell",visible:{minRole:"owner",facts:["linkedHub"]},search:{keywords:["invite","add people","collaborator","email"]}},{id:"share.set-role",label:"Change what someone can do…",kind:"command",exec:"shell",visible:{minRole:"owner",facts:["linkedHub"]},search:{keywords:["role","permission","can edit","can comment","can view","make owner"]}},{id:"share.remove",label:"Remove someone…",kind:"command",exec:"shell",visible:{minRole:"owner",facts:["linkedHub"]},search:{keywords:["remove","revoke","access"]}},{id:"share.resend",label:"Resend an invite…",kind:"command",exec:"shell",visible:{minRole:"owner",facts:["linkedHub"]},search:{keywords:["resend","invitation","pending"]}},{id:"share.ask-to-edit",label:"Ask to edit",kind:"command",exec:"shell",visible:{minRole:"view",facts:["linkedHub"]},search:{keywords:["ask to edit","request access","edit access","permission"]}},{id:"share.request-approve",label:"Let them edit",kind:"command",exec:"shell",visible:{minRole:"owner",facts:["linkedHub"]},search:{hidden:!0}},{id:"share.request-decline",label:"Not now",kind:"command",exec:"shell",visible:{minRole:"owner",facts:["linkedHub"]},search:{hidden:!0}}]});var Ai,OSe;var LSe=Ke(()=>{Ai={hidden:!0},OSe=[{id:"history.filter",label:"Filter versions",kind:"command",exec:"shell",search:Ai},{id:"history.view-version",label:"View this version",kind:"command",exec:"shell",search:Ai},{id:"history.object",label:"Version history of this object",kind:"command",exec:"shell",search:Ai},{id:"history.compare",label:"Compare",kind:"command",exec:"shell",search:Ai},{id:"history.compare-pictures",label:"Compare pictures",kind:"command",exec:"shell",search:Ai},{id:"history.name",label:"Name this version…",kind:"command",exec:"shell",visible:{minRole:"edit"},search:Ai},{id:"history.restore",label:"Restore this version",kind:"command",exec:"shell",visible:{minRole:"edit"},search:Ai},{id:"history.restore-artboard",label:"Restore only this artboard",kind:"command",exec:"shell",visible:{minRole:"edit"},search:Ai},{id:"history.restore-object",label:"Restore this object",kind:"command",exec:"shell",visible:{minRole:"edit"},search:Ai},{id:"history.go-back",label:"Go back to the last good version",kind:"command",exec:"shell",visible:{minRole:"edit"},search:Ai},{id:"history.branch-switch",label:"Switch branch",kind:"command",exec:"shell",visible:{minRole:"edit"},search:Ai},{id:"history.new-branch",label:"New branch…",kind:"command",exec:"shell",visible:{minRole:"edit"},search:Ai},{id:"history.fetch",label:"Fetch",kind:"command",exec:"shell",search:Ai},{id:"history.publish",label:"Publish",kind:"command",exec:"shell",visible:{minRole:"edit"},search:Ai},{id:"history.save-with-note",label:"Save a version with a note…",kind:"command",exec:"shell",visible:{minRole:"edit"},search:Ai},{id:"history.open-pr",label:"Add to main · opens a pull request",kind:"command",exec:"shell",visible:{minRole:"edit"},search:Ai},{id:"history.discard-file",label:"Discard changes to a file",kind:"command",exec:"shell",visible:{minRole:"edit"},search:Ai},{id:"history.continue-draft",label:"Continue on your draft",kind:"command",exec:"shell",visible:{minRole:"edit"},search:Ai},{id:"history.undo-action",label:"Undo this change",kind:"command",exec:"shell",visible:{minRole:"edit"},search:Ai}]});var Jc,PSe;var DSe=Ke(()=>{Jd();Jc={shell:["desktop"]},PSe=[{id:"project.new",label:"New project…",kind:"command",exec:"shell",visible:{minRole:"comment"},keys:[Et("⇧⌘N","global",{inText:!0,when:Jc})],native:{menu:"File",order:2}},{id:"project.pull-copy",label:"Pull a local copy…",kind:"command",exec:"shell",visible:{...Jc,minRole:"comment"}},{id:"project.share-github",label:"Share on GitHub…",kind:"command",exec:"shell",visible:{...Jc,minRole:"comment"}},{id:"project.open",label:"Open project…",kind:"command",exec:"native",visible:{minRole:"comment"},keys:[Et("⌘O","global",{inText:!0,when:Jc})],help:{group:"finding",order:20},native:{menu:"File",order:3}},{id:"home.open",label:"Show Home",kind:"command",exec:"native",keys:[Et("⌘T","global",{inText:!0,when:Jc})],help:{group:"tabs-windows",order:30},native:{menu:"File",order:4}},{id:"home.search",label:"Search",kind:"command",icon:"search",exec:"shell",visible:{shell:["home"]},search:{hidden:!0},keys:[Et("⌘K","global",{inText:!0,when:{shell:["home"]}})]},{id:"cloud.open-remote",label:"Open",kind:"command",exec:"shell",visible:{shell:["home"]},search:{hidden:!0}},{id:"home.signin",label:"Sign in to Maude Cloud",kind:"command",icon:"cloud",exec:"shell",visible:{shell:["home"]},search:{hidden:!0}},{id:"invite.join",label:"Join",kind:"command",exec:"shell",visible:{shell:["home"]},search:{hidden:!0}},{id:"invite.leave",label:"Leave",kind:"command",exec:"shell",visible:{shell:["home"]},search:{hidden:!0}},{id:"hub.connect",label:"Connect to your own hub…",kind:"command",exec:"shell",visible:{shell:["home"]},search:{keywords:["hub","team server","self-hosted","address","sign in"]}},{id:"project.open-github",label:"Open a folder or a GitHub project…",kind:"command",exec:"shell",visible:{shell:["home"]},search:{keywords:["github","folder","repo","clone","open"]}},{id:"ai.connect",label:"Connect AI…",kind:"command",exec:"shell",visible:{shell:["home"]},search:{keywords:["api key","claude","anthropic","sign in","connect ai"]}},{id:"cli.install",label:"Install the maude command…",kind:"command",exec:"shell",visible:{shell:["home"]},search:{keywords:["terminal","cli","command","plugin","claude code","path"]}},{id:"nav.home",label:"Back to Home",kind:"command",icon:"home",exec:"native",visible:{shell:["desktop","cloud"]}},{id:"tab.close",label:"Close tab",kind:"command",exec:"native",keys:[Et("⌘W","global",{inText:!0,when:Jc})],help:{group:"tabs-windows",order:40},native:{menu:"File",order:5}},{id:"tab.next",label:"Show next tab",kind:"command",exec:"native",keys:[Et("⌃tab","global",{inText:!0,when:Jc}),Et("⇧⌘]","global",{inText:!0,alias:!0,when:Jc})],help:{group:"tabs-windows",order:10},native:{menu:"Window",order:1}},{id:"tab.prev",label:"Show previous tab",kind:"command",exec:"native",keys:[Et("⌃⇧tab","global",{inText:!0,when:Jc}),Et("⇧⌘[","global",{inText:!0,alias:!0,when:Jc})],help:{group:"tabs-windows",order:20},native:{menu:"Window",order:2}},{id:"tab.overview",label:"Show all tabs",kind:"command",exec:"native",keys:[Et("⇧⌘\\","global",{inText:!0,when:Jc})],help:{group:"tabs-windows",order:25},native:{menu:"Window",order:3}},{id:"tab.rename",label:"Rename…",kind:"command",exec:"native",visible:Jc},...[1,2,3,4,5,6,7,8].map((e)=>({id:`tab.select-${e}`,label:`Show tab ${e}`,kind:"command",exec:"native",keys:[Et(`⌘${e}`,"global",{inText:!0,when:Jc})],native:{menu:"Window",order:2+e}})),{id:"tab.select-last",label:"Show last tab",kind:"command",exec:"native",keys:[Et("⌘9","global",{inText:!0,when:Jc})],native:{menu:"Window",order:11}},{id:"app.check-updates",label:"Check for updates…",kind:"command",exec:"native",visible:{shell:["desktop"]},native:{menu:"App",order:1}}]});var C7,N7,zSe;var FSe=Ke(()=>{C7={facts:["canvasOpen"]},N7={hidden:!0},zSe=[{id:"presence.follow",label:"Follow",kind:"command",icon:"eye",exec:"canvas",visible:C7,search:N7},{id:"presence.go-to",label:"Go to",kind:"command",exec:"canvas",visible:C7,search:N7},{id:"presence.bring-everyone",label:"Bring everyone here",kind:"command",icon:"share",exec:"canvas",visible:{minRole:"edit",facts:["canvasOpen"]},search:{keywords:["summon","spotlight","follow me","gather","everyone","people"]}},{id:"presence.stop",label:"Stop following",kind:"command",exec:"canvas",visible:C7,search:N7}]});var BSe;var jSe=Ke(()=>{Jd();BSe=[{id:"search.open",label:"Search",kind:"command",icon:"search",exec:"shell",fromCanvas:!0,keys:[Et("⌘K","global",{inText:!0,when:{notShell:["home"]}}),Et("⇧⌘K","global",{inText:!0,alias:!0,when:{focus:Zd,notShell:["home"]}})],help:{group:"finding",order:10},legacy:{sheet:"Command palette"}},{id:"canvases.search",label:"Search canvases",kind:"command",exec:"shell",keys:[Et("/","global",{inText:!1,when:vI})],legacy:{sheet:"Search files"}},{id:"canvases.find",label:"Find a canvas",kind:"command",exec:"shell",keys:Kr("⌘F","⇧","global",{inText:!1,when:vI}),legacy:{sheet:"Search files"}},{id:"canvases.pin",label:"Pin canvas",kind:"command",exec:"shell",enabled:{facts:["canvasOpen"]}},{id:"canvases.unpin",label:"Unpin canvas",kind:"command",exec:"shell",enabled:{facts:["canvasOpen"]}},{id:"canvases.sort",label:"Sort canvases",kind:"command",exec:"shell"},{id:"canvases.filter-kind",label:"Filter canvases by kind",kind:"command",exec:"shell",search:{where:"Canvases panel"}},{id:"canvases.refresh",label:"Refresh canvases",kind:"command",exec:"shell",keys:[Et("⇧⌘R","global",{inText:!0,when:{focus:Zd}})]}]});var iPt,xI,Ti=(e,t,n)=>({id:e,label:t,kind:"command",...n?{icon:n}:{},exec:"shell",visible:iPt,search:xI}),USe;var HSe=Ke(()=>{iPt={minRole:"edit"},xI={hidden:!0},USe=[Ti("sync.conflict.keep-mine","Keep yours"),Ti("sync.conflict.keep-theirs","Keep theirs"),Ti("sync.conflict.keep-both","Keep both","duplicate"),Ti("save.retry-held","Retry saving"),Ti("sync.keep-mine","Keep mine"),Ti("sync.use-theirs","Use theirs"),Ti("sync.keep-both","Keep both","duplicate"),{id:"sync.compare",label:"Compare",kind:"command",exec:"shell",search:xI},Ti("sync.publish-ai-edit","Publish"),Ti("sync.discard-ai-edit","Discard"),Ti("sync.cancel-transfer","Cancel the transfer"),Ti("sync.allow-code","Allow shared code…"),Ti("sync.stop-code","Stop allowing shared code…"),Ti("sync.ignore-folder","Don’t sync this folder"),Ti("sync.sync-folder-again","Sync it again"),Ti("sync.delete-held-on-hub","Move to the hub’s trash too…"),Ti("sync.keep-held-on-hub","Keep on the hub"),Ti("sync.remove-held-here","Remove here too"),Ti("sync.keep-held-here","Keep them here"),Ti("sync.adopt-as-code","Adopt as code"),{id:"sync.open-canvas-folders",label:"Open canvas folders",kind:"command",icon:"folder",exec:"native",visible:{shell:["desktop"],facts:["native"],minRole:"edit"},search:xI},{id:"sync.get-latest",label:"Get latest",kind:"command",exec:"shell",search:xI},{id:"sync.sign-in-again",label:"Sign in again",kind:"command",exec:"shell",search:xI}]});var Ki,A7=(e,t,n)=>({id:e,label:t,kind:"command",exec:"shell",enabled:{minRole:"edit"},search:{hidden:!0,where:n,note:"a pointer gesture on the timeline"}}),lPt,WSe;var VSe=Ke(()=>{Jd();Ki={when:t3,inText:!1},lPt=[["comment","Comment on clip","comment"],["generate","Generate this clip","edit"],["adjust","Adjust the clip","edit"],["hide","Hide clip","edit"],["show","Show clip","edit"],["remove","Remove clip","edit"],["replace","Replace the clip’s media","edit"],["mute","Mute clip","edit"],["unmute","Unmute clip","edit"],["detach-audio","Detach audio","edit"],["to-overlay","Move to overlay layer","edit"],["to-storyline","Move to storyline","edit"],["layer-up","Move layer up","edit"],["layer-down","Move layer down","edit"],["earlier","Move clip earlier","edit"],["later","Move clip later","edit"],["replace-layer","Replace a layer’s media","edit"]],WSe=[{id:"timeline.play",label:"Play / pause",kind:"toggle",exec:"shell",keys:Kr("Space","⌥⇧⌘","timeline",Ki)},{id:"timeline.step",label:"Step a frame",kind:"command",exec:"shell",keys:[...Kr("←","⌥⇧⌘","timeline",Ki),...Kr("→","⌥⇧⌘","timeline",Ki)]},{id:"timeline.to-start",label:"Go to start",kind:"command",exec:"shell",keys:Kr("Home","⌥⇧⌘","timeline",Ki)},{id:"timeline.to-end",label:"Go to end",kind:"command",exec:"shell",keys:Kr("End","⌥⇧⌘","timeline",Ki)},{id:"timeline.prev-keyframe",label:"Previous keyframe",kind:"command",exec:"shell",keys:[Et(",","timeline",Ki)]},{id:"timeline.next-keyframe",label:"Next keyframe",kind:"command",exec:"shell",keys:[Et(".","timeline",Ki),Et("⌘.","timeline",{...Ki,alias:!0})]},{id:"timeline.split",label:"Split at playhead",kind:"command",exec:"shell",keys:[Et("S","timeline",Ki),...Kr("⌘B","⇧","timeline",Ki),Et("⌘B","global",{...Ki,alias:!0,when:{facts:["timelineVisible"]}})]},{id:"timeline.loop-in",label:"Loop starts here",kind:"command",exec:"shell",keys:[Et("I","timeline",Ki)]},{id:"timeline.loop-out",label:"Loop ends here",kind:"command",exec:"shell",keys:[Et("O","timeline",Ki)]},{id:"timeline.loop-clear",label:"Clear the loop range",kind:"command",exec:"shell"},{id:"timeline.zoom-in",label:"Zoom timeline in",kind:"command",exec:"shell",keys:[Et("⌘=","timeline",{...Ki,when:{notFacts:["selectFocused","rangeFocused"]}}),Et("⌘+","timeline",{...Ki,alias:!0,when:{notFacts:["selectFocused","rangeFocused"]}})]},{id:"timeline.zoom-out",label:"Zoom timeline out",kind:"command",exec:"shell",keys:[Et("⌘−","timeline",{...Ki,when:{notFacts:["selectFocused","rangeFocused"]}})]},{id:"timeline.zoom-fit",label:"Fit the timeline",kind:"command",exec:"shell",keys:[Et("0","timeline",{...Ki,when:{notFacts:["selectFocused","rangeFocused"]}})]},{id:"timeline.expand",label:"Expand the timeline",kind:"command",exec:"shell"},{id:"timeline.compact",label:"Make the timeline compact",kind:"command",exec:"shell"},{id:"timeline.add-track",label:"Add a track",kind:"command",exec:"shell",search:{where:"Timeline › Advanced",keywords:["track","video 2","music 2","layer","lane"]}},{id:"timeline.fold-track",label:"Fold a track",kind:"command",exec:"shell",search:{where:"Timeline",keywords:["fold","collapse","hide","track","text","graphics","lane"]}},{id:"timeline.marker.add",label:"Add a marker here",kind:"command",exec:"shell",enabled:{minRole:"edit"},search:{where:"Timeline › Markers",keywords:["marker","flag","chapter","bookmark","moment","name"]}},{id:"timeline.marker.remove",label:"Remove the marker here",kind:"command",exec:"shell",enabled:{minRole:"edit"},search:{where:"Timeline › Markers",keywords:["marker","flag","delete","remove"]}},{id:"timeline.marker.jump",label:"Jump to the next marker",kind:"command",exec:"shell",search:{where:"Timeline › Markers",keywords:["marker","next","previous","jump","chapter","flag"]}},{id:"timeline.comment-mode",label:"Comment on the timeline",kind:"toggle",exec:"shell",keys:Kr("C","⇧","timeline",{...Ki,when:{notFacts:["selectFocused","rangeFocused"]}})},A7("timeline.trim","Trim a clip","Timeline › Drag a clip’s edge"),A7("timeline.move-clip","Move a clip","Timeline › Drag a clip"),A7("timeline.add-clips","Add footage to the video","Timeline › Drop footage"),...lPt.map(([e,t,n])=>({id:`timeline.clip-menu.${e}`,label:t,kind:"command",exec:"shell",enabled:{minRole:n},search:{hidden:!0,where:"Timeline › Right-click a clip",note:"the clip menu runs it"}}))]});function cPt(e,t){if(e==="present")return t?.kind==="artboards"?"present-artboards":"present-canvas";return e}function mc(e,t,n){return uPt[e][cPt(t,n)]}function Zx(e,t,n){if(!e)return t==="measure"||t==="comment-pins"||t==="object-tools";return dPt[t](e,n)}var Qd=(e,t,n,o,r)=>Object.freeze({edit:e,preview:t,"present-artboards":n,"present-canvas":o,viewing:r}),uPt,dPt,GSe=(e,t)=>mc("left-panels",e,t)==="folded";var _m=Ke(()=>{uPt=Object.freeze({clicks:Qd("tool","live","next-artboard","pan-zoom","specs"),toolbar:Qd("edit","preview","none","none","viewing"),annotations:Qd("quiet","drawn","hidden","hidden","read-only"),"comment-pins":Qd("shown","shown","hidden","hidden","shown"),measure:Qd("on","on","off","off","on"),"ai-changes":Qd("live","live","held","live-unmarked","live"),"left-panels":Qd("shown","shown","hidden","hidden","shown"),"ai-panel":Qd("shown","shown","hidden","hidden","none"),"share-cluster":Qd("full","full","hidden","hidden","full-access"),inspect:Qd("inspector","panel-on-cmd-click","hidden","hidden","panel-on-click"),"project-menu":Qd("pill","pill","esc-first","esc-first","pill"),esc:Qd("steps-back","steps-back","settles-back","same-view","deselect")});dPt=Object.freeze({measure:(e,t)=>mc("measure",e,t)==="on","inspect-panel":(e,t)=>mc("inspect",e,t).startsWith("panel"),"comment-pins":(e,t)=>mc("comment-pins",e,t)==="shown","object-tools":(e,t)=>mc("clicks",e,t)==="tool","live-design":(e,t)=>mc("clicks",e,t)==="live","annotations-editable":(e,t)=>mc("annotations",e,t)==="drawn",chrome:(e,t)=>mc("share-cluster",e,t)!=="hidden"})});function Qx(e,t){if(e==="edit"&&!t.edit)return"viewing";if(e==="viewing"&&t.edit)return"edit";return e}function ZSe(e){if(e.edit||e.annotate)return"edit";return e.comment?"comment":"view"}function B1(e,t){for(let n of[e,...JSe[e]]){let o=af[n].slots.find((r)=>r.key===t);if(o)return{mode:n,slot:o}}return null}function R7(e,t,n,o){let r=B1(e,t);if(!r||r.slot.pending)return null;let{slot:a}=r,s=!!a.panel&&(a.tool===null||!!a.panelFirst),l=a.insert||a.panelFirst?null:a.tips&&o&&a.tips.includes(o)?o:a.tool,c=ZSe(n);if(n3[c]<n3[a.minRole]||r.mode==="edit"&&!n.edit){if(l)return{kind:"deny",mode:r.mode,tool:l};return s&&a.panel?{kind:"deny",mode:r.mode,panel:a.panel}:{kind:"deny",mode:r.mode}}if(r.mode!==e){let u={kind:"request",mode:r.mode};if(l)u.tool=l;if(s&&a.panel)u.panel=a.panel;return u}if(a.insert)return{kind:"insert",insert:a.insert};if(l)return{kind:"arm",tool:l};return a.panel?{kind:"panel",panel:a.panel}:null}function QSe(e){let t=[];for(let n of[e,...JSe[e]])for(let o of af[n].slots){if(!o.key||t.includes(o.key))continue;if(B1(e,o.key)?.slot===o&&!o.pending)t.push(o.key)}return t}function e1e(e,t,n){if(!YSe(t))return!1;let o=af[e].slots.find((r)=>r.tool===t||!!r.tips?.includes(t)||!!r.more?.some((a)=>a.tool===t));return!o||n3[ZSe(n)]>=n3[o.minRole]}function qSe(e,t){return af[e].slots.some((n)=>n.tool===t||n.tool!==null&&mPt[n.tool]===t||!!n.tips?.includes(t)||!!n.lights?.includes(t)||!!n.more?.some((o)=>o.tool===t))}function t1e(e,t,n){if(!YSe(e)||hPt.has(e))return null;if(qSe(n,e))return n;if(e==="move")return t.edit?"edit":"viewing";for(let o of["preview","edit"])if(qSe(o,e))return o;return null}function kI(e){let t=e&&typeof e==="object"?e:{};if(t.kind!=="artboards")return{kind:"canvas"};if(typeof t.from==="string"&&t.from&&t.from.length<=200)return t.only==="formats"&&t.from!=="start"?{kind:"artboards",from:t.from,only:"formats"}:{kind:"artboards",from:t.from};return{kind:"artboards",from:"start"}}var T7,KSe,I7,pPt,E7,MLn,fPt,YSe=(e)=>typeof e==="string"&&fPt.has(e),Jx,F1,XSe=(e)=>e.edit?"edit":"viewing",$7=(e)=>e.edit?"edit":"preview",OLn,LLn,n3,Na=(e)=>Object.freeze(e),af,mPt,JSe,hPt;var sf=Ke(()=>{_m();T7=["edit","viewing","preview","present"],KSe=["artboards","canvas"],I7=["browse","move","hand","comment","pen","highlighter","eraser","shape","sticky","section","arrow","text"],pPt=["inspect","frame","el-shape","el-pen","el-text","image","component","line","ellipse","polygon","crop","slice","pointer"],E7=[...I7,...pPt],MLn=new Set(T7),fPt=new Set(E7),Jx=Object.freeze({edit:!1,annotate:!1,comment:!1}),F1=Object.freeze({edit:!0,annotate:!0,comment:!0});OLn=Object.freeze({edit:"edit",viewing:"edit",preview:"preview",present:"preview"}),LLn=Object.freeze({edit:"move",viewing:"inspect",preview:"browse",present:"browse"}),n3=Object.freeze({view:0,comment:1,edit:2});af=Object.freeze({edit:Object.freeze({rest:"move",slots:Object.freeze([Na({key:"V",label:"Select",tool:"move",minRole:"edit"}),Na({key:"H",label:"Hand",tool:"hand",minRole:"edit"}),Na({key:"F",label:"Artboard / Frame",tool:"frame",minRole:"edit"}),Na({key:"R",label:"Shape",tool:"el-shape",minRole:"edit"}),Na({key:"P",label:"Pen",tool:"el-pen",minRole:"edit"}),Na({key:"T",label:"Text",tool:"el-text",minRole:"edit"}),Na({key:"I",label:"Image",tool:"image",minRole:"edit",panel:"image",panelFirst:!0}),Na({key:"⇧I",label:"Component",tool:null,minRole:"edit",panel:"components"}),Na({key:"",label:"More",tool:null,minRole:"edit",popover:"more",more:Object.freeze([Na({key:"",label:"Line",tool:"line",minRole:"edit"}),Na({key:"",label:"Ellipse",tool:"ellipse",minRole:"edit"}),Na({key:"",label:"Polygon",tool:"polygon",minRole:"edit"}),Na({key:"",label:"Crop",tool:"crop",minRole:"edit"}),Na({key:"",label:"Export area",tool:"slice",minRole:"edit"})])})])}),preview:Object.freeze({rest:"browse",slots:Object.freeze([Na({key:"V",label:"Select",tool:"browse",minRole:"view"}),Na({key:"H",label:"Hand",tool:"hand",minRole:"view"}),Na({key:"N",label:"Sticky",tool:"sticky",minRole:"edit",popover:"sticky-colours"}),Na({key:"C",label:"Comment",tool:"comment",minRole:"comment"}),Na({key:"M",label:"Marker",tool:"pen",minRole:"edit",popover:"marker-tips",tips:["pen","highlighter","eraser"]}),Na({key:"A",label:"Arrow",tool:"arrow",minRole:"edit"}),Na({key:"R",label:"Shape",tool:"shape",minRole:"edit",popover:"shape-kinds"}),Na({key:"T",label:"Text",tool:"text",minRole:"edit"}),Na({key:"E",label:"Stickers",tool:null,minRole:"edit",panel:"stickers"}),Na({key:"S",label:"Section",tool:"section",minRole:"edit",panel:"templates"})])}),viewing:Object.freeze({rest:"inspect",slots:Object.freeze([Na({key:"H",label:"Hand",tool:"inspect",minRole:"view"}),Na({key:"C",label:"Comment",tool:"comment",minRole:"comment"})])}),present:Object.freeze({rest:"browse",hidden:!0,slots:Object.freeze([Na({key:"L",label:"Pointer",tool:"pointer",minRole:"view"})])})}),mPt=Object.freeze({}),JSe=Object.freeze({edit:["preview"],preview:["edit"],viewing:["preview","edit"],present:[]});hPt=new Set(["hand"])});function n1e(e){if(e.tool==="move")return"tool.select";return`tool.${e.tool??e.panel??e.label.toLowerCase()}`}function vPt(){let e=new Map,t=0;for(let n of r1e)for(let o of af[n].slots){if(o.pending||o.more||!o.key)continue;let r=n1e(o);if(!e.has(r))e.set(r,{slot:o,home:n,order:t++,keys:new Map})}for(let n of r1e)for(let o of QSe(n)){let r=B1(n,o);if(!r)continue;let a=e.get(n1e(r.slot));if(!a)continue;let s=a.keys.get(o)??[];s.push(n),a.keys.set(o,s)}return[...e.entries()].map(([n,o])=>{let r=[...o.keys.entries()].map(([s,l])=>({chord:D1(s),layer:"tools",when:{focus:yPt,mode:l}})),a=bPt[o.home];return{id:n,label:gPt[n]??o.slot.label,kind:"tool",exec:"canvas",keys:r,...a?{help:{group:a,order:o.order}}:{},...o1e[n]?{legacy:{menu:o1e[n]}}:{}}})}var gPt,o1e,bPt,yPt,r1e,Py=(e,t,n)=>({id:e,label:t,kind:"tool",exec:"canvas",keys:[],...n?{legacy:{menu:n}}:{}}),a1e;var s1e=Ke(()=>{sf();of();Jd();gPt={"tool.browse":"Select","tool.inspect":"Inspect","tool.pen":"Marker"},o1e={"tool.select":"Select","tool.hand":"Hand","tool.comment":"Comment","tool.pen":"Pen","tool.arrow":"Arrow","tool.sticky":"Sticky","tool.text":"Text","tool.browse":"Browse (interact)"},bPt={edit:"edit-tools",preview:"preview-tools"},yPt=["canvas","chrome"],r1e=["edit","preview","viewing","present"];a1e=[...vPt(),{id:"tool.hand-hold",label:"Hand (hold Space)",kind:"tool",exec:"canvas",keys:Kr("Space","⌥⇧⌘","tools",{hold:!0,when:Xc})},{id:"tool.create-default",label:"Add one at its default size",kind:"command",exec:"canvas",enabled:{minRole:"edit"},keys:[Et("↵","tools",{when:{focus:["canvas"],mode:["edit","preview"],facts:["toolArmed"]}})],search:{hidden:!0}},Py("tool.highlighter","Highlighter"),Py("tool.eraser","Eraser","Eraser"),Py("tool.rect","Rectangle","Rect"),Py("tool.ellipse","Ellipse","Ellipse"),Py("tool.line","Line"),Py("tool.polygon","Polygon"),Py("tool.slice","Export area"),Py("tool.crop","Crop")]});var i1e;var l1e=Ke(()=>{Jd();i1e=[{id:"ui.step-back",label:"Step back",kind:"command",exec:"shell",keys:[...Kr("esc","⌥⇧⌘","global",{inText:!0,when:{focus:Zd}}),...Kr("esc","⌥⇧⌘","selection",{inText:!1,when:Xc})],legacy:{sheet:"Deselect · close menu"}},{id:"ui.cycle-region",label:"Move between the panels and the canvas",kind:"command",exec:"shell",fromCanvas:!0,keys:[Et("F6","global",{inText:!0}),Et("⇧F6","global",{inText:!0,alias:!0})],search:{keywords:["focus","panels","canvas","keyboard","f6"]}}]});var wPt,xPt=(e)=>({hidden:!0,where:e,note:"bound by its S7 surface"}),Ua=(e,t,n,o="edit")=>({id:e,label:t,kind:"command",exec:"shell",enabled:o==="edit"?wPt:{minRole:o},search:xPt(n)}),c1e;var u1e=Ke(()=>{wPt={minRole:"edit"},c1e=[{...Ua("video.captions.add","Captions from speech","Timeline › Captions"),search:{where:"Timeline › Captions",keywords:["captions","subtitles","speech","transcribe"]}},{...Ua("video.transcript.open","Transcript","Timeline › Transcript","comment"),search:{where:"Timeline › Transcript",keywords:["transcript","words","captions","text"]}},Ua("video.captions.style","Caption style","Inspector › Captions"),Ua("video.captions.fix-word","Fix a caption word","Transcript panel"),Ua("video.captions.export","Export captions","Export sheet","comment"),Ua("video.transcript.cut","Cut these words","Transcript panel"),Ua("video.transcript.find-speech","Find speech","Transcript panel"),Ua("video.music.beats","Find the beat","Inspector › Music"),Ua("video.music.duck","Lower under speech","Inspector › Music"),Ua("video.music.volume","Music volume","Inspector › Music"),Ua("video.cut-to-beat","Cut to the beat","Inspector › Music"),Ua("video.snap","Snap to the beat","Timeline"),{...Ua("video.reframe","Re-frame","Timeline › Re-frame"),search:{where:"Timeline › Re-frame",keywords:["reframe","crop","framing","vertical","focus","window"]}},{...Ua("video.frame-handle","Move and zoom on the canvas","Timeline › Clip"),search:{where:"Timeline › Clip",keywords:["move","zoom","pan","crop","position","scale","drag","video","framing"]}},{...Ua("video.poster.set","Set as poster frame","Timeline"),search:{where:"Timeline › Poster",keywords:["poster","cover","thumbnail"]}},{...Ua("video.format.add","Add a format","Inspector › Formats"),search:{where:"Inspector › Formats",keywords:["format","size","16:9","9:16","1:1","reels","linked","aspect"]}},{...Ua("video.format.unlink","Make an unlinked copy","Inspector › Formats"),search:{where:"Inspector › Formats",keywords:["unlink","copy","own cut","fork","format"]}},{...Ua("video.allow-longer","Allow longer videos","Timeline › Advanced"),search:{where:"Timeline › Advanced",keywords:["longer","length","limit","2 min","frames"]}},Ua("video.easing.set","Keyframe curve","Timeline › Advanced"),{...Ua("video.take.swap","Swap a take","Timeline › Other takes"),search:{where:"Timeline › Other takes",keywords:["take","other takes","swap","alternate"]}},Ua("video.fit","Fit the picture","Inspector › Clip"),Ua("video.place","Place the title","Inspector › Formats"),Ua("video.title.motion","Title motion","Inspector › Title"),Ua("video.title.style","Title font and colour","Inspector › Title"),Ua("video.transition.set","Set the transition","Timeline › Join")]});var o3="switch to Canvas first",d1e;var p1e=Ke(()=>{Jd();d1e=[{id:"mode.preview",label:"Preview",kind:"toggle",icon:"eye",exec:"canvas",keys:[Et("⌥⌘P","global",{inText:!0,when:{mode:["edit","preview","viewing"]}})],enabled:{notFacts:["pagesView"]},search:{keywords:["mode","live","interact","edit"],note:o3}},{id:"preview.back",label:"Back",kind:"command",exec:"shell",enabled:{mode:["preview"]},search:{keywords:["link","previous","return","canvas"]}},{id:"view.panels",label:"Hide panels",kind:"toggle",exec:"shell",keys:[Et("⌘\\","global",{inText:!0})],fromCanvas:!0,legacy:{menu:"Hide panels",sheet:"Hide / show panels"}},{id:"view.pin-panels",label:"Pin panels to the side",kind:"toggle",exec:"shell",legacy:{menu:"Pin panels to the side"}},{id:"view.hidden-files",label:"Hidden files",kind:"toggle",exec:"shell",legacy:{menu:"Show hidden files",sheet:"Hidden files"}},{id:"canvases.show-file-names",label:"Show file names",kind:"toggle",exec:"shell",search:{keywords:["file","names","tsx","files"],where:"Canvases › Advanced"}},{id:"layers.show-tags",label:"Show tags and ids",kind:"toggle",exec:"shell",search:{keywords:["tags","ids","layers","html"],where:"Layers panel › Advanced"}},{id:"layers.select-by-selector",label:"Select by selector",kind:"command",exec:"shell",enabled:{facts:["canvasOpen"]},search:{keywords:["selector","css","query","select","matching"],where:"Layers panel › Advanced"}},{id:"layers.filter-kind",label:"Filter layers by kind",kind:"command",exec:"shell",enabled:{facts:["canvasOpen"]},search:{where:"Layers panel"}},{id:"view.design-system",label:"Design system",kind:"toggle",icon:"sliders",exec:"shell",legacy:{palette:"Design system",sheet:"Design system view"}},{id:"view.assets",label:"Assets",kind:"toggle",icon:"image",exec:"shell"},{id:"assets.place",label:"Place",kind:"command",icon:"image",exec:"shell",enabled:{minRole:"edit"},keys:[Et("↵","selection",{when:{focus:["chrome","timeline"],facts:["assetTileSelected"]}})],search:{hidden:!0}},{id:"assets.add",label:"Add files…",kind:"command",icon:"plus",exec:"shell",enabled:{minRole:"edit"},search:{hidden:!0}},{id:"assets.add-link",label:"Add from a link…",kind:"command",icon:"link",exec:"shell",enabled:{minRole:"edit"},search:{keywords:["link","url","web","download","import","picture","video"]}},{id:"assets.generate",label:"Generate an image…",kind:"command",icon:"sparkle",exec:"shell",enabled:{minRole:"edit"},search:{keywords:["generate","ai","image","picture","takes"]}},{id:"assets.details",label:"Show details",kind:"command",exec:"shell",keys:[Et("⌘I","selection",{when:{focus:["chrome","timeline"],facts:["assetTileSelected"]}})],search:{hidden:!0}},{id:"assets.spotlight",label:"View larger",kind:"command",icon:"image",exec:"shell",keys:[Et("Space","selection",{when:{focus:["chrome"],facts:["assetTileSelected"]}})],search:{hidden:!0}},{id:"assets.trash",label:"Move to trash",kind:"command",icon:"trash",exec:"shell",enabled:{minRole:"edit"},search:{hidden:!0}},{id:"assets.rename",label:"Rename…",kind:"command",exec:"shell",enabled:{minRole:"edit"},search:{hidden:!0}},{id:"assets.describe",label:"Search in pictures",kind:"toggle",icon:"search",exec:"shell",search:{keywords:["describe","pictures","photos","what is in","ai","search"]}},{id:"assets.describe-stop",label:"Stop describing pictures",kind:"command",exec:"shell",search:{hidden:!0}},{id:"view.layers-panel",label:"Layers as a panel",kind:"toggle",exec:"shell"},{id:"view.trash",label:"Trash",kind:"command",icon:"trash",exec:"shell",visible:{minRole:"edit"}},{id:"trash.restore",label:"Restore",kind:"command",icon:"trash",exec:"shell",visible:{minRole:"edit"},search:{hidden:!0}},{id:"trash.clear",label:"Clear out the trash…",kind:"command",icon:"trash",exec:"shell",visible:{minRole:"owner"}},{id:"view.comments",label:"Comments",kind:"toggle",icon:"resolve",exec:"shell",fromCanvas:!0,keys:[Et("⇧⌘M","global",{inText:!0})],legacy:{palette:"Toggle comments panel",menu:"Comments Sidebar",sheet:"Comments sidebar"}},{id:"comments.filter-open",label:"Show open comments",kind:"command",exec:"shell"},{id:"comments.filter-mine",label:"Show my comments",kind:"command",exec:"shell"},{id:"comments.filter-resolved",label:"Show resolved comments",kind:"command",exec:"shell"},{id:"comments.filter-all",label:"Show all comments",kind:"command",exec:"shell"},{id:"comments.open-thread",label:"Open comment thread",kind:"command",exec:"shell"},{id:"view.exports",label:"Exports",kind:"toggle",icon:"export",exec:"shell",visible:{minRole:"comment"}},{id:"history.open",label:"Version history",kind:"toggle",exec:"shell",fromCanvas:!0,keys:[Et("⌥⌘H","global",{inText:!0})],help:{group:"finding",order:30},legacy:{menu:"Changes"}},{id:"view.inspector",label:"Inspector",kind:"toggle",icon:"sliders",exec:"shell",fromCanvas:!0,keys:[Et("⇧⌘I","global",{inText:!0})],legacy:{palette:"Open inspector",menu:"Inspector",sheet:"Inspector"}},{id:"view.timeline-keep-open",label:"Keep timeline open",kind:"toggle",exec:"shell",fromCanvas:!0,keys:[Et("⇧⌘T","global",{inText:!0})],legacy:{menu:"Timeline"}},{id:"view.annotations",label:"Annotations",kind:"toggle",exec:"canvas",keys:[Et("⇧P","global",{inText:!1,when:Xc})],legacy:{menu:"Annotations",sheet:"Annotations"}},{id:"view.layers",label:"Layers",kind:"toggle",exec:"shell",legacy:{menu:"Layers"}},{id:"view.inspector-on-select",label:"Open inspector on select",kind:"toggle",exec:"shell",legacy:{menu:"Auto-open Inspector on select"}},{id:"view.minimap",label:"Minimap",kind:"toggle",exec:"shell",legacy:{menu:"Minimap"}},{id:"view.zoom-controls",label:"Zoom controls",kind:"toggle",exec:"shell",legacy:{menu:"Zoom controls"}},{id:"view.print-guides",label:"Print guides",kind:"toggle",exec:"shell",legacy:{menu:"Show print guides"}},{id:"present.from-selection",label:"Present",kind:"command",exec:"shell",fromCanvas:!0,keys:[Et("⌥⌘↵","global",{when:{mode:["edit","viewing","preview"]}})],enabled:{notFacts:["pagesView"]},search:{keywords:["presentation","slideshow","artboards","selected"],note:o3}},{id:"present.from-start",label:"Present from the start",kind:"command",exec:"shell",fromCanvas:!0,keys:[Et("⇧⌥⌘↵","global",{when:{mode:["edit","viewing","preview"]}})],enabled:{notFacts:["pagesView"]},search:{keywords:["presentation","slideshow","beginning","first"],note:o3}},{id:"present.next",label:"Next artboard",kind:"command",exec:"shell",keys:[Et("→","global",{when:{mode:["present"]}}),Et("Space","global",{when:{mode:["present"]}})],search:{keywords:["presentation","slideshow","advance","forward"]}},{id:"present.prev",label:"Previous artboard",kind:"command",exec:"shell",keys:[Et("←","global",{when:{mode:["present"]}}),Et("⇧Space","global",{when:{mode:["present"]}})],search:{keywords:["presentation","slideshow","back","backward"]}},{id:"present.canvas",label:"Present the canvas",kind:"toggle",exec:"shell",enabled:{notFacts:["pagesView"]},search:{note:o3},legacy:{menu:"Presentation Mode"}},{id:"present.order-notes",label:"Order and notes…",kind:"command",exec:"shell",visible:{minRole:"edit"},enabled:{facts:["canvasOpen"]},search:{keywords:["presentation","slides","speaker notes","skip","reorder"]}},{id:"present.presenter-view",label:"Presenter view on another display",kind:"toggle",exec:"shell",visible:{shell:["desktop"],facts:["native"]},search:{keywords:["presentation","second screen","audience","notes","projector"]}},{id:"present.copy-link",label:"Copy presentation link",kind:"command",icon:"link",exec:"shell",visible:{minRole:"edit"},enabled:{facts:["online"],any:[{facts:["linkedHub"]},{shell:["cloud"]}]},search:{keywords:["presentation","slideshow","audience","follow","share","link","url"],note:"in a Maude Cloud project"}},{id:"settings.theme",label:"Theme",kind:"toggle",icon:"sun",exec:"shell",legacy:{palette:"Toggle light / dark theme"}},{id:"view.zoom-in",label:"Zoom in",kind:"command",exec:"canvas",keys:[Et("⌘=","global",{inText:!0,when:qx}),Et("⌘+","global",{inText:!0,alias:!0,when:qx})],legacy:{menu:"Zoom In",sheet:"Zoom in / out"}},{id:"view.zoom-out",label:"Zoom out",kind:"command",exec:"canvas",keys:[Et("⌘−","global",{inText:!0,when:qx})],legacy:{menu:"Zoom Out",sheet:"Zoom in / out"}},{id:"view.zoom-fit",label:"Zoom to fit",kind:"command",exec:"canvas",keys:[Et("⌘0","global",{inText:!0,when:qx})],legacy:{menu:"Fit to Screen",sheet:"Fit · actual size"}},{id:"view.zoom-actual",label:"Actual size",kind:"command",exec:"canvas",keys:[Et("⇧0","global",{inText:!1,when:qx})],legacy:{menu:"Actual Size · 100 %",sheet:"Fit · actual size"}},{id:"view.zoom-to-artboard",label:"Zoom to artboard",kind:"command",exec:"canvas"},{id:"view.jump-artboard",label:"Go to artboard",kind:"command",exec:"canvas",keys:["1","2","3","4","5","6","7","8","9"].map((e,t)=>Et(`⌥⌘${e}`,"global",{inText:!0,alias:t>0,when:qx}))},{id:"view.pages",label:"Pages",kind:"toggle",exec:"canvas",enabled:{facts:["canvasOpen"],mode:["edit","viewing"]},help:{group:"canvas",order:60},search:{keywords:["pages","one at a time","artboards","page","canvas","slides"]}},{id:"pages.next",label:"Next page",kind:"command",exec:"canvas",enabled:{facts:["canvasOpen","pagesView"]},keys:[Et("PageDown","global",{when:{focus:["canvas"],mode:["edit","viewing"]}}),Et("→","global",{alias:!0,when:{focus:["canvas"],mode:["edit","viewing"],selection:["none"]}})],help:{group:"canvas",order:61},search:{keywords:["pages","forward","artboard","page"]}},{id:"pages.prev",label:"Previous page",kind:"command",exec:"canvas",enabled:{facts:["canvasOpen","pagesView"]},keys:[Et("PageUp","global",{when:{focus:["canvas"],mode:["edit","viewing"]}}),Et("←","global",{alias:!0,when:{focus:["canvas"],mode:["edit","viewing"],selection:["none"]}})],help:{group:"canvas",order:62},search:{keywords:["pages","back","artboard","page"]}},{id:"view.advanced-open-all",label:"Open all Advanced sections",kind:"command",exec:"shell",search:{where:"Once · every panel"}},{id:"view.advanced-close-all",label:"Close all Advanced sections",kind:"command",exec:"shell",search:{where:"Settings › Advanced › Reset"}}]});var Cm,ir;var Ii=Ke(()=>{tSe();fSe();gSe();ySe();wSe();kSe();NSe();$Se();MSe();LSe();DSe();FSe();jSe();HSe();VSe();s1e();l1e();u1e();p1e();Cm=Object.freeze([...BSe,...bSe,...ESe,...d1e,...a1e,...i1e,...WSe,...c1e,...RSe,...hSe,...eSe,...xSe,...uSe,...pSe,...dSe,...PSe,...vSe,...OSe,...zSe,...USe,...CSe]),ir=new Map(Cm.map((e)=>[e.id,e]))});function O7(e){let t=Array.isArray(e)?e.filter((n)=>typeof n==="string"&&n):[];if(t.length===SI.length&&t.every((n,o)=>n===SI[o]))return;SI=t;for(let n of[...M7])n(SI)}function r3(){return[...SI]}function f1e(e){return M7.add(e),()=>{M7.delete(e)}}var SI,M7;var a3=Ke(()=>{SI=[],M7=new Set});var L7,m1e;var h1e=Ke(()=>{L7={view:0,comment:1,edit:2,owner:3},m1e=["timeline","selection","tools","global"]});function Qc(e,t){if(!e)return!0;if(e.minRole&&L7[t.role]<L7[e.minRole])return!1;if(e.shell&&!e.shell.includes(t.shell))return!1;if(e.notShell?.includes(t.shell))return!1;if(e.mode&&!e.mode.includes(t.mode))return!1;if(e.focus&&!e.focus.includes(t.focus))return!1;if(e.selection&&!e.selection.includes(t.selection))return!1;if(e.facts&&!e.facts.every((n)=>t.facts.has(n)))return!1;if(e.notFacts?.some((n)=>t.facts.has(n)))return!1;if(e.any&&!e.any.some((n)=>Qc(n,t)))return!1;return!0}function Kl(e,t){return Qc(e.visible,t)}function j1(e,t){return Kl(e,t)&&Qc(e.enabled,t)}function g1e(e,t=()=>!0){let n=new Map;for(let o of e)for(let r of o.keys??[]){if(!t(o,r))continue;let a=n.get(r.chord)??[];a.push({action:o,binding:r}),n.set(r.chord,a)}return n}function kPt(e){return e.inText??(aSe(e.chord)&&!iSe.has(e.chord))}function SPt(e,t){if(t.focus==="text"&&!kPt(e.binding))return!1;if(t.focus==="modal"&&!e.binding.inModal)return!1;if(e.binding.layer==="timeline"&&t.focus!=="timeline")return!1;return Kl(e.action,t)&&Qc(e.binding.when,t)}function U1(e,t,n,o="tap"){if(n.singleKeys===!1&&rSe(t))return null;let r=e.get(t);if(!r?.length)return null;let a=r.filter((s)=>o==="hold"===!!s.binding.hold&&SPt(s,n));if(!a.length)return null;for(let s of m1e){let l=a.filter((c)=>c.binding.layer===s);if(l.length)return{action:l[0].action,binding:l[0].binding,ambiguous:l.slice(1)}}return null}var Ku=Ke(()=>{of();h1e()});function _Pt(e,t){let n=e.when?.focus;if(t==="shell")return e.layer==="timeline"||!n||n.some((o)=>o==="chrome"||o==="timeline"||o==="modal");return e.layer!=="timeline"&&(!n||n.includes("canvas")||n.every((o)=>o==="text"))}function H1(e,t,n){return g1e(e,(o,r)=>n(o.id)&&_Pt(r,t))}var s3=Ke(()=>{Ku()});function _I(e,t=120){if(typeof e!=="string")return null;return e.replace(CPt,"").trim().slice(0,t).trim()||null}function P7(e,t={}){if(!Array.isArray(e)||e.length===0)return null;let{artboardId:n=null,total:o=0}=t,r=(Array.isArray(n)?n:[n]).filter(Boolean);for(let a of r){let s=e.find((l)=>l.artboardId===a);if(s)return s.id}for(let a of r){let s=e.find((l)=>l.id===a);if(s)return s.id}if(o>0){let a=e.filter((s)=>s.durationInFrames===o);if(a.length===1)return a[0].id}return e[0].id}function ek(e,t){if(!Array.isArray(e)||e.length===0)return null;return e.find((n)=>n.id===t)??e[0]}var CPt;var W1=Ke(()=>{CPt=/[\u202a-\u202e\u2066-\u2069\u200b-\u200f\u2060\u00ad\ufeff\u0000-\u001f\u007f-\u009f]/g});var i3="mdcc-usage-tour-seen",l3="mdcc-collab-tour-seen",St="__system__",CI="mdcc-theme",NI="mdcc-show-hidden",c3="maude-cp-mode",AI="mdcc-sidebar-open",TI="mdcc-minimap-visible",II="mdcc-zoomctl-visible",EI="mdcc-annotations-visible",D7=30000,$I="mdcc-panel-sides",RI="mdcc-layers-mode",os,MI=(e)=>/\.(tsx|jsx)$/i.test(String(e||"")),Nm="2.4.2",z7;var Ho=Ke(()=>{os=/\.(tsx|html?)$/i,z7=[]});function NPt(){return typeof window<"u"?window.__TAURI__:null}function APt(){let e=typeof window<"u"?window:null;if(!e)return null;if(e.__maudeShellBus)return e.__maudeShellBus;let t=NPt(),n=t?.core?.Channel;if(!n||!t?.core?.invoke)return null;let o=new Map,r=new n;r.onmessage=(s)=>{let l=s&&typeof s.kind==="string"?o.get(s.kind):null;if(!l)return;for(let c of[...l])try{c(s.payload)}catch(u){console.error("[maude] shell message handler failed",u)}};let a={handlers:o,ready:null};return a.ready=Promise.resolve().then(()=>t.core.invoke("shell_subscribe",{onMessage:r})).then(()=>!0,(s)=>{if(e.__maudeShellBus===a)delete e.__maudeShellBus;throw s}),e.__maudeShellBus=a,a}function tk(e,t){let n=APt();if(!n)return Promise.resolve(()=>{});let o=n.handlers.get(e);if(!o)o=new Set,n.handlers.set(e,o);o.add(t);let r=()=>{o.delete(t)};return n.ready.then(()=>r,(a)=>{throw r(),a})}function $Pt(e){return e.length<=63&&TPt.test(e)&&e!=="canvas"&&!e.startsWith("view-")&&!e.startsWith("canvas-")}function RPt(e){if(!e||e.length>512||EPt.test(e)||/^[A-Za-z]:/.test(e))return null;let t=e.startsWith(".design/")?e.slice(8):e;if(t.split("/").some((n)=>n===""||n==="."||n===".."))return null;return t}function MPt(e){try{return decodeURIComponent(e)}catch{return null}}function y1e(e){if(typeof e!=="string"||e===""||IPt.test(e))return null;if(new TextEncoder().encode(e).length>2048)return null;let t;try{t=new URL(e)}catch{return null}if(t.protocol!=="https:"||t.port!==""||t.username!==""||t.password!=="")return null;let n=".cloud.maude.sh";if(!t.hostname.endsWith(n))return null;let o=t.hostname.slice(0,-n.length);if(!$Pt(o))return null;let r=`https://${o}.cloud.maude.sh`;if(t.origin!==r)return null;if(t.pathname===""||t.pathname==="/")return`${r}/`;if(!t.pathname.startsWith("/c/"))return null;let a=t.pathname.slice(3).split("/").map(MPt);if(a.some((l)=>l===null||l.includes("/")||l.includes("\\")))return null;let s=RPt(a.join("/"));if(!s)return null;return`${r}/c/${s.split("/").map(encodeURIComponent).join("/")}`}function u3(e,t){if(!e||typeof e!=="object")return null;let n=e;if(n.reason!=="browser-door")return null;let o=y1e(n.url);if(!o)return null;if(t&&new URL(o).hostname!==`${t}.cloud.maude.sh`)return null;return{url:o}}function OPt(e){try{globalThis.window?.open?.(e,"_blank","noopener,noreferrer")}catch{}}async function d3({url:e,profile:t},{invoke:n,openInBrowser:o=OPt}){let r=y1e(e);if(!r)return{ok:!1,error:"That isn't a Maude Cloud project address."};if(!n)return o(r),{ok:!0,via:"browser"};try{return await n("open_cell_tab",typeof t==="string"&&t?{url:r,profile:t}:{url:r}),{ok:!0,via:"tab"}}catch(a){let s=b1e(a);if(!s.includes("Open this project in your browser."))return{ok:!1,error:s||"That isn't a Maude Cloud project address."}}try{return await n("open_cloud_url",{url:new URL(r).origin}),{ok:!0,via:"browser"}}catch(a){return{ok:!1,error:b1e(a)||"Open this project in your browser."}}}var TPt,IPt,EPt,b1e=(e)=>String((e&&typeof e==="object"&&"message"in e?e.message:e)??"").trim();var p3=Ke(()=>{TPt=/^[a-z0-9]+(?:-[a-z0-9]+)*$/,IPt=/[\s\u0000-\u001f\u007f-\u009f\\@?#]/,EPt=/[\u0000-\u001f\u007f-\u009f\\]/});function Kt(){return typeof window<"u"&&!!window.__TAURI__}function LPt(){let e=typeof window<"u"?window.__TAURI__:null;if(!e)throw Error("GitHub sign-in is only available in the Maude desktop app.");return e}function Co(e,t){return LPt().core.invoke(e,t)}function PPt(e,t){return tk(e,t)}function fg(e,t){return tk(e,t)}async function mg(e,t={}){let n={...t.headers||{}};if(t.body)n["Content-Type"]="application/json";let o;try{o=await fetch(e,{...t,headers:n})}catch{return{ok:!1,status:0,json:{error:"Maude isn’t reachable right now."}}}let r=null;try{r=await o.json()}catch{r=null}return{ok:o.ok,status:o.status,json:r}}function q1(e){if(Kt())return Co("open_team_server_signin",{url:e}).then(()=>"ok",(t)=>/Refusing/i.test(String(t))?"refused":"failed");try{return window.open(e,"_blank","noopener"),Promise.resolve("ok")}catch{return Promise.resolve("failed")}}async function nk(e){let t=await DPt(e),n=u3(t.json);if(n)return d3({url:n.url},{invoke:Kt()?Co:null});if(!t.ok||!t.json?.ok)return{ok:!1,error:t.json?.error||"The project could not be opened.",status:t.status};try{return{ok:!0,path:await F7(t.json),project:t.json}}catch(o){return{ok:!1,error:String(o?.message||o||"The project could not be opened.")}}}function gg(e,t){return{size:e.size,type:t||"",name:e.name,async read(n,o){let r=await Co("read_picked_media",{token:e.token,offset:n,len:o-n});return new Uint8Array(r)},release:()=>Co("release_picked_media",{token:e.token}).catch(()=>{})}}async function w3(e,t){let n=gg(e,t);try{return new Blob([await n.read(0,e.size)],t?{type:t}:void 0)}finally{n.release()}}var f3=()=>Co("github_sign_in"),m3=()=>Co("github_sign_out"),Dy=()=>Kt()?Co("cloud_sign_in_prepare"):Promise.resolve(!1),V1=()=>Kt()?Co("cloud_signed_in"):Promise.resolve(!1),v1e=()=>Kt()?Promise.resolve().then(()=>Co("accounts_list")).then((e)=>Array.isArray(e)?e:null,()=>null):Promise.resolve(null),h3=()=>Co("github_is_signed_in"),w1e=()=>Co("github_open_verification",{url:"https://github.com/login/device"}),OI=(e)=>Co("open_github_url",{url:e}),g3=(e)=>Co("open_cloud_url",{url:e}),b3=(e)=>fg("github://device-code",e),y3=(e)=>fg("github://signed-in",e),G1=(e)=>fg("menu://action",(t)=>e(t?.id)),zy=()=>mg("/_api/github/identity"),x1e=()=>mg("/_api/github/repos"),k1e=(e)=>mg("/_api/github/invite",{method:"POST",body:JSON.stringify({username:e})}),S1e=(e)=>mg("/_api/github/clone",{method:"POST",body:JSON.stringify(e)}),_1e=(e)=>mg("/_api/github/create-project",{method:"POST",body:JSON.stringify(e)}),C1e=(e)=>mg("/_api/project/create-local",{method:"POST",body:JSON.stringify(e)}),N1e=(e)=>mg("/_api/design/init",{method:"POST",body:JSON.stringify({dir:e})}),A1e=(e)=>mg("/_api/hub/link",{method:"POST",body:JSON.stringify(e)}),DPt=(e)=>mg("/_api/projects/prepare",{method:"POST",body:JSON.stringify(e)}),F7=(e)=>Co("managed_project_open",{serverUrl:e.serverUrl,projectId:e.projectId,name:e.name||e.projectId,canvasGroups:e.canvasGroups||[]}),v3=()=>Kt()?Co("managed_projects_list"):Promise.resolve([]),T1e=()=>Co("app_recent_projects"),LI=()=>Co("pick_directory"),hg=(e,t)=>Co("open_local_project",{path:e,open:t}),I1e=(e)=>Co("resolve_project_for_link",{project:e}),Fy=()=>Co("pick_media_file"),ok=()=>Co("pick_media_files"),B7=(e)=>PPt("update-ready",e),rk=()=>Co("restart_to_update"),E1e=()=>Co("check_for_updates"),$1e=()=>Co("prefs_get_claude_auto_setup"),R1e=(e)=>Co("prefs_set_claude_auto_setup",{enabled:e}),M1e=()=>Co("prefs_get_terminal_opens"),O1e=(e)=>Co("prefs_set_terminal_opens",{enabled:e});var Mo=Ke(()=>{p3()});function zPt(e){if(!e||typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}class z1e{constructor(){this.subscribe=(e)=>(this.subscribers.push(e),this.getActiveToasts().forEach((t)=>e(t)),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=(e)=>{this.subscribers.forEach((t)=>t(e))},this.addToast=(e)=>{this.publish(e),this.toasts=[...this.toasts,e],this.trimHistory()},this.trimHistory=()=>{let e=this.toasts.length-YPt;if(e<=0)return;this.toasts=this.toasts.filter((t)=>{if(e>0&&this.dismissedToasts.has(t.id))return this.dismissedToasts.delete(t.id),e--,!1;return!0})},this.create=(e)=>{let{message:t,...n}=e,o=L1e(e),r=this.pendingDismissals.get(o);if(r!==void 0)cancelAnimationFrame(r),this.pendingDismissals.delete(o),this.dismissedToasts.delete(o);let a=this.dismissedToasts.has(o),s=e.dismissible===void 0?!0:e.dismissible;if(a)this.dismissedToasts.delete(o),this.toasts=this.toasts.filter((c)=>c.id!==o);if(a?void 0:this.toasts.find((c)=>c.id===o))this.toasts=this.toasts.map((c)=>{if(c.id===o)return this.publish({...c,...e,id:o,title:t}),{...c,...e,id:o,dismissible:s,title:t};return c});else this.addToast({title:t,...n,dismissible:s,id:o});return o},this.dismiss=(e)=>{if(e===void 0||e===null)return this.getActiveToasts().forEach((n)=>{this.dismissedToasts.add(n.id),this.subscribers.forEach((o)=>o({id:n.id,dismiss:!0}))}),e;this.dismissedToasts.add(e);let t=this.pendingDismissals.get(e);if(t!==void 0)cancelAnimationFrame(t);return this.pendingDismissals.set(e,requestAnimationFrame(()=>{this.pendingDismissals.delete(e),this.subscribers.forEach((n)=>n({id:e,dismiss:!0}))})),e},this.message=(e,t)=>this.create({...t,message:e,type:void 0}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n=void 0;if(t.loading!==void 0)n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!=="function"?t.description:void 0});let o=Promise.resolve(e instanceof Function?e():e),r=n!==void 0,a,s=o.then(async(c)=>{if(a=["resolve",c],Js(c))r=!1,this.create({id:n,type:"default",message:c});else if(ZPt(c)&&!c.ok){r=!1;let d=typeof t.error==="function"?await t.error(`HTTP error! status: ${c.status}`):t.error,p=typeof t.description==="function"?await t.description(`HTTP error! status: ${c.status}`):t.description,h=typeof d==="object"&&!Js(d)?d:{message:d};this.create({id:n,type:"error",description:p,...h})}else if(c instanceof Error){r=!1;let d=typeof t.error==="function"?await t.error(c):t.error,p=typeof t.description==="function"?await t.description(c):t.description,h=typeof d==="object"&&!Js(d)?d:{message:d};this.create({id:n,type:"error",description:p,...h})}else if(t.success!==void 0){r=!1;let d=typeof t.success==="function"?await t.success(c):t.success,p=typeof t.description==="function"?await t.description(c):t.description,h=typeof d==="object"&&!Js(d)?d:{message:d};this.create({id:n,type:"success",description:p,...h})}}).catch(async(c)=>{if(a=["reject",c],t.error!==void 0){r=!1;let u=typeof t.error==="function"?await t.error(c):t.error,d=typeof t.description==="function"?await t.description(c):t.description,f=typeof u==="object"&&!Js(u)?u:{message:u};this.create({id:n,type:"error",description:d,...f})}}).finally(()=>{if(r)this.dismiss(n),n=void 0;t.finally==null||t.finally.call(t)}),l=()=>new Promise((c,u)=>s.then(()=>a[0]==="reject"?u(a[1]):c(a[1])).catch(u));if(typeof n!=="string"&&typeof n!=="number")return{unwrap:l};else return Object.assign(n,{unwrap:l})},this.custom=(e,t)=>{let n=L1e(t);return this.create({...t,jsx:e(n),id:n,type:void 0}),n},this.getActiveToasts=()=>this.toasts.filter((e)=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set,this.pendingDismissals=new Map}}function x3(e){return e.label!==void 0}function Am(...e){return e.filter(Boolean).join(" ")}function lDt(e){let[t,n]=e.split("-"),o=[];if(t)o.push(t);if(n)o.push(n);return o}function D1e(){if(typeof window>"u")return"ltr";if(typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");if(e==="auto"||!e)return window.getComputedStyle(document.documentElement).direction;return e}function uDt(e,t){let n={};return[e,t].forEach((o,r)=>{let a=r===1,s=a?"--mobile-offset":"--offset",l=a?oDt:nDt;function c(u){["top","right","bottom","left"].forEach((d)=>{n[`${s}-${d}`]=typeof u==="number"?`${u}px`:u})}if(typeof o==="number"||typeof o==="string")c(o);else if(typeof o==="object")["top","right","bottom","left"].forEach((u)=>{if(o[u]===void 0)n[`${s}-${u}`]=l;else n[`${s}-${u}`]=typeof o[u]==="number"?`${o[u]}px`:o[u]});else c(l)}),n}var FPt=(e)=>{switch(e){case"success":return UPt;case"info":return WPt;case"warning":return HPt;case"error":return VPt;default:return null}},BPt,jPt=({visible:e,className:t})=>ar("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},ar("div",{className:"sonner-spinner"},BPt.map((n,o)=>ar("div",{className:"sonner-loading-bar",key:`spinner-bar-${o}`})))),UPt,HPt,WPt,VPt,GPt,qPt=()=>{let[e,t]=T(document.hidden);return M(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>document.removeEventListener("visibilitychange",n)},[]),e},KPt=1,YPt=100,L1e=(e)=>{var t;return typeof(e==null?void 0:e.id)==="number"||(e==null?void 0:(t=e.id)==null?void 0:t.length)>0?e.id:KPt++},eu,XPt=(e,t)=>eu.message(e,t),ZPt=(e)=>e&&typeof e==="object"&&("ok"in e)&&typeof e.ok==="boolean"&&("status"in e)&&typeof e.status==="number",JPt,QPt=()=>eu.toasts,eDt=()=>eu.getActiveToasts(),k3,tDt=3,nDt="24px",oDt="16px",P1e=4000,rDt=356,aDt=14,sDt=45,iDt=200,cDt=(e)=>{var t,n,o,r,a,s,l,c,u;let{invert:d,toast:p,unstyled:f,interacting:h,setHeights:g,visibleToasts:b,heights:v,index:y,toasts:w,expanded:x,removeToast:k,defaultRichColors:_,closeButton:N,style:C,cancelButtonStyle:I,actionButtonStyle:R,className:O="",descriptionClassName:H="",duration:B,position:j,gap:F,expandByDefault:G,classNames:X,icons:Y,closeButtonAriaLabel:W="Close toast"}=e,[D,K]=T(null),[P,q]=T(null),[Z,te]=T(!1),[ne,pe]=T(!1),[ae,ve]=T(!1),[_e,Ae]=T(!1),[He,ie]=T(!1),[ke,me]=T(0),[ye,Oe]=T(0),$t=U(p.duration||B||P1e),Be=U(null),ft=U(null),we=y===0,lt=y+1<=b,Ue=p.type,It=Ue!=null?Ue:"default",mn=p.dismissible!==!1,Tt=p.className||"",ct=p.descriptionClassName||"",Se=fe(()=>v.findIndex((Vt)=>Vt.toastId===p.id)||0,[v,p.id]),We=fe(()=>{var Vt;return(Vt=p.closeButton)!=null?Vt:N},[p.closeButton,N]),Me=fe(()=>p.duration||B||P1e,[p.duration,B]),ut=U(0),Ee=U(0),nt=U(0),ze=U(null),[Je,yt]=j.split("-"),Pt=fe(()=>v.reduce((Vt,Bt,En)=>{if(En>=Se)return Vt;return Vt+Bt.height},0),[v,Se]),At=qPt(),on=fe(()=>{var Vt;return(Vt=e.swipeDirections)!=null?Vt:lDt(j)},[e.swipeDirections,j]),tn=p.invert||d,Wt=Ue==="loading";Ee.current=fe(()=>Se*F+Pt,[Se,Pt]),M(()=>{$t.current=Me},[Me]),M(()=>{te(!0)},[]),M(()=>{let Vt=ft.current;if(Vt){let Bt=Vt.getBoundingClientRect().height;return Oe(Bt),g((En)=>[{toastId:p.id,height:Bt,position:p.position},...En]),()=>g((En)=>En.filter((Yt)=>Yt.toastId!==p.id))}},[g,p.id]),eo(()=>{if(!Z)return;let Vt=ft.current,Bt=Vt.style.height;Vt.style.height="auto";let En=Vt.getBoundingClientRect().height;Vt.style.height=Bt,Oe(En),g((Yt)=>{if(!Yt.find((Gt)=>Gt.toastId===p.id))return[{toastId:p.id,height:En,position:p.position},...Yt];else return Yt.map((Gt)=>Gt.toastId===p.id?{...Gt,height:En}:Gt)})},[Z,p.title,p.description,g,p.id,p.jsx,p.action,p.cancel]);let dt=ee(()=>{pe(!0),me(Ee.current),g((Vt)=>Vt.filter((Bt)=>Bt.toastId!==p.id)),setTimeout(()=>{k(p)},iDt)},[p,k,g,Ee]);M(()=>{if(p.promise&&Ue==="loading"||p.duration===1/0||p.type==="loading")return;let Vt,Bt=()=>{if(nt.current<ut.current){let Yt=new Date().getTime()-ut.current;$t.current=$t.current-Yt}nt.current=new Date().getTime()},En=()=>{if($t.current===1/0)return;ut.current=new Date().getTime(),Vt=setTimeout(()=>{p.onAutoClose==null||p.onAutoClose.call(p,p),dt()},$t.current)};if(x||h||At)Bt();else En();return()=>clearTimeout(Vt)},[x,h,p,Ue,At,dt]),M(()=>{if(p.delete)dt(),p.onDismiss==null||p.onDismiss.call(p,p)},[dt,p.delete]);function vt(){var Vt;if(Y==null?void 0:Y.loading){var Bt;return ar("div",{className:Am(X==null?void 0:X.loader,p==null?void 0:(Bt=p.classNames)==null?void 0:Bt.loader,"sonner-loader"),"data-visible":Ue==="loading"},Y.loading)}return ar(jPt,{className:Am(X==null?void 0:X.loader,p==null?void 0:(Vt=p.classNames)==null?void 0:Vt.loader),visible:Ue==="loading"})}let mt=p.icon||(Y==null?void 0:Y[Ue])||FPt(Ue);var ht,vn;return ar("li",{tabIndex:0,ref:ft,className:Am(O,Tt,X==null?void 0:X.toast,p==null?void 0:(t=p.classNames)==null?void 0:t.toast,X==null?void 0:X[It],p==null?void 0:(n=p.classNames)==null?void 0:n[It]),"data-sonner-toast":"","data-rich-colors":(ht=p.richColors)!=null?ht:_,"data-styled":!Boolean(p.jsx||p.unstyled||f),"data-mounted":Z,"data-promise":Boolean(p.promise),"data-swiped":He,"data-removed":ne,"data-visible":lt,"data-y-position":Je,"data-x-position":yt,"data-index":y,"data-front":we,"data-swiping":ae,"data-dismissible":mn,"data-type":Ue,"data-invert":tn,"data-swipe-out":_e,"data-swipe-direction":P,"data-expanded":Boolean(x||G&&Z),"data-testid":p.testId,style:{"--index":y,"--toasts-before":y,"--z-index":w.length-y,"--offset":`${ne?ke:Ee.current}px`,"--initial-height":G?"auto":`${ye}px`,...C,...p.style},onDragEnd:()=>{ve(!1),K(null),ze.current=null},onPointerDown:(Vt)=>{if(Vt.button===2)return;if(Wt||!mn)return;if(Be.current=new Date,me(Ee.current),Vt.target.setPointerCapture(Vt.pointerId),Vt.target.tagName==="BUTTON")return;ve(!0),ze.current={x:Vt.clientX,y:Vt.clientY}},onPointerUp:()=>{var Vt,Bt,En;if(_e||!mn)return;ze.current=null;let Yt=Number(((Vt=ft.current)==null?void 0:Vt.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),_n=Number(((Bt=ft.current)==null?void 0:Bt.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Gt=new Date().getTime()-((En=Be.current)==null?void 0:En.getTime()),Xe=D==="x"?Yt:_n,Jt=Math.abs(Xe)/Gt;if((D==="x"?on.includes(Yt>0?"right":"left"):on.includes(_n>0?"bottom":"top"))&&(Math.abs(Xe)>=sDt||Jt>0.11)){if(me(Ee.current),p.onDismiss==null||p.onDismiss.call(p,p),D==="x")q(Yt>0?"right":"left");else q(_n>0?"down":"up");dt(),Ae(!0);return}else{var Kn,de;(Kn=ft.current)==null||Kn.style.setProperty("--swipe-amount-x","0px"),(de=ft.current)==null||de.style.setProperty("--swipe-amount-y","0px")}ie(!1),ve(!1),K(null)},onPointerMove:(Vt)=>{var Bt,En,Yt;if(!ze.current||!mn)return;if(((Bt=window.getSelection())==null?void 0:Bt.toString().length)>0)return;let Gt=Vt.clientY-ze.current.y,Xe=Vt.clientX-ze.current.x;if(!D&&(Math.abs(Xe)>1||Math.abs(Gt)>1))K(Math.abs(Xe)>Math.abs(Gt)?"x":"y");let Jt={x:0,y:0},Rn=(Kn)=>1/(1.5+Math.abs(Kn)/20);if(D==="y"){if(on.includes("top")||on.includes("bottom"))if(on.includes("top")&&Gt<0||on.includes("bottom")&&Gt>0)Jt.y=Gt;else{let Kn=Gt*Rn(Gt);Jt.y=Math.abs(Kn)<Math.abs(Gt)?Kn:Gt}}else if(D==="x"){if(on.includes("left")||on.includes("right"))if(on.includes("left")&&Xe<0||on.includes("right")&&Xe>0)Jt.x=Xe;else{let Kn=Xe*Rn(Xe);Jt.x=Math.abs(Kn)<Math.abs(Xe)?Kn:Xe}}if(Math.abs(Jt.x)>0||Math.abs(Jt.y)>0)ie(!0);(En=ft.current)==null||En.style.setProperty("--swipe-amount-x",`${Jt.x}px`),(Yt=ft.current)==null||Yt.style.setProperty("--swipe-amount-y",`${Jt.y}px`)}},We&&!p.jsx&&Ue!=="loading"?ar("button",{"aria-label":W,"data-disabled":Wt,"data-close-button":!0,onClick:Wt||!mn?()=>{}:()=>{dt(),p.onDismiss==null||p.onDismiss.call(p,p)},className:Am(X==null?void 0:X.closeButton,p==null?void 0:(o=p.classNames)==null?void 0:o.closeButton)},(vn=Y==null?void 0:Y.close)!=null?vn:GPt):null,(Ue||p.icon||p.promise)&&p.icon!==null&&((Y==null?void 0:Y[Ue])!==null||p.icon)?ar("div",{"data-icon":"",className:Am(X==null?void 0:X.icon,p==null?void 0:(r=p.classNames)==null?void 0:r.icon)},Ue==="loading"?p.icon||vt():p.promise?vt():null,Ue!=="loading"?mt:null):null,ar("div",{"data-content":"",className:Am(X==null?void 0:X.content,p==null?void 0:(a=p.classNames)==null?void 0:a.content)},ar("div",{"data-title":"",className:Am(X==null?void 0:X.title,p==null?void 0:(s=p.classNames)==null?void 0:s.title)},p.jsx?p.jsx:typeof p.title==="function"?p.title():p.title),p.description?ar("div",{"data-description":"",className:Am(H,ct,X==null?void 0:X.description,p==null?void 0:(l=p.classNames)==null?void 0:l.description)},typeof p.description==="function"?p.description():p.description):null),Js(p.cancel)?p.cancel:p.cancel&&x3(p.cancel)?ar("button",{"data-button":!0,"data-cancel":!0,style:p.cancelButtonStyle||I,onClick:(Vt)=>{if(!x3(p.cancel))return;if(!mn)return;p.cancel.onClick==null||p.cancel.onClick.call(p.cancel,Vt),dt()},className:Am(X==null?void 0:X.cancelButton,p==null?void 0:(c=p.classNames)==null?void 0:c.cancelButton)},p.cancel.label):null,Js(p.action)?p.action:p.action&&x3(p.action)?ar("button",{"data-button":!0,"data-action":!0,style:p.actionButtonStyle||R,onClick:(Vt)=>{if(!x3(p.action))return;if(p.action.onClick==null||p.action.onClick.call(p.action,Vt),Vt.defaultPrevented)return;dt()},className:Am(X==null?void 0:X.actionButton,p==null?void 0:(u=p.classNames)==null?void 0:u.actionButton)},p.action.label):null)},F1e;var B1e=Ke(()=>{re();mm();BPt=Array(12).fill(0),UPt=ar("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20","aria-hidden":"true"},ar("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),HPt=ar("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20","aria-hidden":"true"},ar("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),WPt=ar("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20","aria-hidden":"true"},ar("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),VPt=ar("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20","aria-hidden":"true"},ar("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),GPt=ar("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true"},ar("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),ar("line",{x1:"6",y1:"6",x2:"18",y2:"18"}));eu=new z1e,JPt=XPt,k3=Object.assign(JPt,{success:eu.success,info:eu.info,warning:eu.warning,error:eu.error,custom:eu.custom,message:eu.message,promise:eu.promise,dismiss:eu.dismiss,loading:eu.loading},{getHistory:QPt,getToasts:eDt});zPt("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--normal-text);background:var(--normal-bg);border:1px solid var(--normal-border);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{-webkit-user-select:none;user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");F1e=jn(function(t,n){let{id:o,invert:r,position:a="bottom-right",hotkey:s=["altKey","KeyT"],expand:l,closeButton:c,className:u,offset:d,mobileOffset:p,theme:f="light",richColors:h,duration:g,style:b,visibleToasts:v=tDt,toastOptions:y,dir:w=D1e(),gap:x=aDt,icons:k,customAriaLabel:_,containerAriaLabel:N="Notifications"}=t,[C,I]=T([]),R=fe(()=>{if(o)return C.filter((te)=>te.toasterId===o);return C.filter((te)=>!te.toasterId)},[C,o]),O=fe(()=>Array.from(new Set([a].concat(R.filter((te)=>te.position).map((te)=>te.position)))),[R,a]),[H,B]=T([]),[j,F]=T(!1),[G,X]=T(!1),[Y,W]=T(f!=="system"?f:typeof window<"u"?window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":"light"),D=U(null),K=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),P=U(null),q=U(!1),Z=ee((te)=>{I((ne)=>{var pe;if(!((pe=ne.find((ae)=>ae.id===te.id))==null?void 0:pe.delete))eu.dismiss(te.id);return ne.filter(({id:ae})=>ae!==te.id)})},[]);return M(()=>eu.subscribe((te)=>{if(te.dismiss){requestAnimationFrame(()=>{I((ne)=>ne.map((pe)=>pe.id===te.id?{...pe,delete:!0}:pe))});return}setTimeout(()=>{rq(()=>{I((ne)=>{let pe=ne.findIndex((ae)=>ae.id===te.id);if(pe!==-1)return[...ne.slice(0,pe),{...ne[pe],...te},...ne.slice(pe+1)];return[te,...ne]})})})}),[]),M(()=>{if(f!=="system"){W(f);return}if(f==="system")if(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches)W("dark");else W("light");if(typeof window>"u")return;let te=window.matchMedia("(prefers-color-scheme: dark)");try{te.addEventListener("change",({matches:ne})=>{if(ne)W("dark");else W("light")})}catch(ne){te.addListener(({matches:pe})=>{try{if(pe)W("dark");else W("light")}catch(ae){console.error(ae)}})}},[f]),M(()=>{if(C.length<=1)F(!1)},[C]),M(()=>{let te=(ne)=>{var pe;if(s.length>0&&s.every((_e)=>ne[_e]||ne.code===_e)){var ve;F(!0),(ve=D.current)==null||ve.focus()}if(ne.code==="Escape"&&(document.activeElement===D.current||((pe=D.current)==null?void 0:pe.contains(document.activeElement))))F(!1)};return document.addEventListener("keydown",te),()=>document.removeEventListener("keydown",te)},[s]),M(()=>{if(D.current)return()=>{if(P.current)P.current.focus({preventScroll:!0}),P.current=null,q.current=!1}},[D.current]),ar("section",{ref:n,"aria-label":_!=null?_:`${N} ${K}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0,"data-react-aria-top-layer":!0},O.map((te,ne)=>{var pe;let[ae,ve]=te.split("-");if(!R.length)return null;return ar("ol",{key:te,dir:w==="auto"?D1e():w,tabIndex:-1,ref:D,className:u,"data-sonner-toaster":!0,"data-sonner-theme":Y,"data-y-position":ae,"data-x-position":ve,style:{"--front-toast-height":`${((pe=H[0])==null?void 0:pe.height)||0}px`,"--width":`${rDt}px`,"--gap":`${x}px`,...b,...uDt(d,p)},onBlur:(_e)=>{if(q.current&&!_e.currentTarget.contains(_e.relatedTarget)){if(q.current=!1,P.current)P.current.focus({preventScroll:!0}),P.current=null}},onFocus:(_e)=>{if(_e.target instanceof HTMLElement&&_e.target.dataset.dismissible==="false")return;if(!q.current)q.current=!0,P.current=_e.relatedTarget},onMouseEnter:()=>F(!0),onMouseMove:()=>F(!0),onMouseLeave:()=>{if(!G)F(!1)},onDragEnd:()=>F(!1),onPointerDown:(_e)=>{if(_e.target instanceof HTMLElement&&_e.target.dataset.dismissible==="false")return;X(!0)},onPointerUp:()=>X(!1)},R.filter((_e)=>!_e.position&&ne===0||_e.position===te).map((_e,Ae)=>{var He,ie;return ar(cDt,{key:_e.id,icons:k,index:Ae,toast:_e,defaultRichColors:h,duration:(He=y==null?void 0:y.duration)!=null?He:g,className:y==null?void 0:y.className,descriptionClassName:y==null?void 0:y.descriptionClassName,invert:r,visibleToasts:v,closeButton:(ie=y==null?void 0:y.closeButton)!=null?ie:c,interacting:G,position:te,style:y==null?void 0:y.style,unstyled:y==null?void 0:y.unstyled,classNames:y==null?void 0:y.classNames,cancelButtonStyle:y==null?void 0:y.cancelButtonStyle,actionButtonStyle:y==null?void 0:y.actionButtonStyle,closeButtonAriaLabel:y==null?void 0:y.closeButtonAriaLabel,removeToast:Z,toasts:R.filter((ke)=>ke.position==_e.position),heights:H.filter((ke)=>ke.position==_e.position),setHeights:B,expandByDefault:l,gap:x,expanded:j,swipeDirections:t.swipeDirections})}))}))})});function j1e(e,t,n){var o=null;if(n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),"key"in t){n={};for(var r in t)r!=="key"&&(n[r]=t[r])}else n=t;return t=n.ref,{$$typeof:dDt,type:e,key:o,ref:t!==void 0?t:null,props:n}}var dDt,pDt,J,i,m;var V=Ke(()=>{dDt=Symbol.for("react.transitional.element"),pDt=Symbol.for("react.fragment");J=pDt,i=j1e,m=j1e});function K1({d:e,size:t=14,color:n}){return i("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:n||"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",style:{flex:"none"},children:i("path",{d:e})})}function ce({name:e,size:t=16,className:n}){return i("svg",{className:n,width:t,height:t,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",style:{flex:"none"},children:PI[e]})}function By(e){if(!e||typeof e!=="string")return"?";let t=e.trim().split(/[\s._-]+/).filter(Boolean);if(!t.length)return"?";if(t.length===1)return t[0].slice(0,2).toUpperCase();return((t[0][0]||"")+(t[t.length-1][0]||"")).toUpperCase()||"?"}function tr({children:e}){return i("span",{className:"kbd",children:e})}var Er=({as:e,size:t=14})=>i(e,{size:t,strokeWidth:1.75,style:{display:"block"}}),PI;var Dt=Ke(()=>{V();PI={"chevron-down":i("polyline",{points:"3.5 6 8 10.5 12.5 6"}),"chevron-right":i("polyline",{points:"6 3.5 10.5 8 6 12.5"}),chevron:i("path",{d:"M5 6.5l3 3 3-3"}),submenu:i("path",{d:"M6 4.5l3.5 3.5L6 11.5"}),tab:i("path",{d:"M1.5 13.5h2v-7A2.5 2.5 0 0 1 6 4h4a2.5 2.5 0 0 1 2.5 2.5v7h2"}),more:m("g",{fill:"currentColor",stroke:"none",children:[i("circle",{cx:"3.5",cy:"8",r:"1.1"}),i("circle",{cx:"8",cy:"8",r:"1.1"}),i("circle",{cx:"12.5",cy:"8",r:"1.1"})]}),undo:i("path",{d:"M6 3.5L3 6.5l3 3M3 6.5h6.25a3.75 3.75 0 0 1 0 7.5H7.5"}),redo:i("path",{d:"M10 3.5l3 3-3 3M13 6.5H6.75a3.75 3.75 0 0 0 0 7.5H8.5"}),history:i("path",{d:"M2.75 8A5.25 5.25 0 1 0 4.3 4.3M4.3 1.8v2.5h2.5M8 5.25V8l2 1.5"}),pin:i("path",{d:"M6 2.5h4l-.5 4 2.5 2.5H4l2.5-2.5zM8 9v4.5"}),duplicate:m(J,{children:[i("rect",{x:"5.5",y:"5.5",width:"8",height:"8",rx:"1.75"}),i("path",{d:"M10.5 5.5V4a1.5 1.5 0 0 0-1.5-1.5H4A1.5 1.5 0 0 0 2.5 4v5A1.5 1.5 0 0 0 4 10.5h1.5"})]}),home:i("path",{d:"M2.5 7.25L8 2.75l5.5 4.5v5.25a1 1 0 0 1-1 1h-2.75V10h-3.5v3.5H3.5a1 1 0 0 1-1-1z"}),trash:i("path",{d:"M3 4.5h10M6.5 4.5V3h3v1.5M4.5 4.5l.6 8.1a1 1 0 0 0 1 .9h3.8a1 1 0 0 0 1-.9l.6-8.1"}),settings:m(J,{children:[i("path",{d:"M2.5 5h4.5M10 5h3.5M2.5 11h1.5M7 11h6.5"}),i("circle",{cx:"8.5",cy:"5",r:"1.5"}),i("circle",{cx:"5.5",cy:"11",r:"1.5"})]}),corner:i("path",{d:"M3.5 12.5V8a4.5 4.5 0 0 1 4.5-4.5h4.5"}),done:m(J,{children:[i("circle",{cx:"8",cy:"8",r:"5.75"}),i("path",{d:"M5.5 8.25l1.75 1.75 3.25-3.75"})]}),view:m(J,{children:[i("path",{d:"M1.75 8S4 3.75 8 3.75 14.25 8 14.25 8 12 12.25 8 12.25 1.75 8 1.75 8z"}),i("circle",{cx:"8",cy:"8",r:"1.75"})]}),minus:i("path",{d:"M3 8h10"}),spark:i("path",{d:"M16 3L19.309 12.691L29 16L19.309 19.309L16 29L12.691 19.309L3 16L12.691 12.691Z",transform:"scale(0.5)",fill:"currentColor",stroke:"none"}),file:m(J,{children:[i("path",{d:"M4 2h5l3 3v9H4z"}),i("polyline",{points:"9 2 9 5 12 5"})]}),folder:i("path",{d:"M2 4.5h4l1.3 1.5H14V13H2z"}),"folder-plus":m(J,{children:[i("path",{d:"M2 4.5h4l1.3 1.5H14V13H2z"}),i("path",{d:"M8 7.5v3.5M6.25 9.25h3.5"})]}),warn:m(J,{children:[i("path",{d:"M8 2.2 14.2 13H1.8z"}),i("path",{d:"M8 6.4v3.2"}),i("path",{d:"M8 11.3h.01"})]}),lock:m(J,{children:[i("rect",{x:"3.5",y:"7",width:"9",height:"6.5",rx:"1"}),i("path",{d:"M5.5 7V5a2.5 2.5 0 015 0v2"})]}),unlock:m(J,{children:[i("rect",{x:"3.5",y:"7",width:"9",height:"6.5",rx:"1"}),i("path",{d:"M5.5 7V5a2.5 2.5 0 015-.7"})]}),search:m(J,{children:[i("circle",{cx:"7",cy:"7",r:"4"}),i("line",{x1:"10",y1:"10",x2:"13.5",y2:"13.5"})]}),plus:m(J,{children:[i("line",{x1:"8",y1:"3",x2:"8",y2:"13"}),i("line",{x1:"3",y1:"8",x2:"13",y2:"8"})]}),check:i("polyline",{points:"3 8.2 6.4 11.5 13 4.2"}),x:m(J,{children:[i("line",{x1:"4.3",y1:"4.3",x2:"11.7",y2:"11.7"}),i("line",{x1:"11.7",y1:"4.3",x2:"4.3",y2:"11.7"})]}),sun:m(J,{children:[i("circle",{cx:"8",cy:"8",r:"2.6"}),i("line",{x1:"8",y1:"1.5",x2:"8",y2:"3"}),i("line",{x1:"8",y1:"13",x2:"8",y2:"14.5"}),i("line",{x1:"1.5",y1:"8",x2:"3",y2:"8"}),i("line",{x1:"13",y1:"8",x2:"14.5",y2:"8"}),i("line",{x1:"3.4",y1:"3.4",x2:"4.4",y2:"4.4"}),i("line",{x1:"11.6",y1:"11.6",x2:"12.6",y2:"12.6"}),i("line",{x1:"12.6",y1:"3.4",x2:"11.6",y2:"4.4"}),i("line",{x1:"4.4",y1:"11.6",x2:"3.4",y2:"12.6"})]}),moon:i("path",{d:"M12.5 9.6A5 5 0 1 1 7 3a4 4 0 0 0 5.5 6.6z"}),sparkle:i("path",{d:"M8 1.8l1.4 4.8L14 8l-4.6 1.4L8 14.2l-1.4-4.8L2 8l4.6-1.4z",fill:"currentColor",stroke:"none"}),megaphone:m(J,{children:[i("path",{d:"M2 6.7 11 4v8L2 9.3z"}),i("path",{d:"M11 5.2a2.4 2.4 0 0 1 0 5.6"}),i("path",{d:"M4.3 9.5v2.3a1.2 1.2 0 0 0 2.4 0v-1.7"})]}),bug:m(J,{children:[i("circle",{cx:"8",cy:"9",r:"3.6"}),i("circle",{cx:"8",cy:"4.4",r:"1.3"}),i("path",{d:"M6.2 3.4 5.2 2M9.8 3.4l1-1.4"}),i("path",{d:"M4.6 7.6H2.2M4.6 9H2.2M4.6 10.6H2.5M11.4 7.6h2.4M11.4 9h2.4M11.4 10.6h2.3"})]}),"panel-left":m(J,{children:[i("rect",{x:"2.5",y:"3",width:"11",height:"10",rx:"1.5"}),i("line",{x1:"6.4",y1:"3",x2:"6.4",y2:"13"})]}),resolve:m(J,{children:[i("circle",{cx:"8",cy:"8",r:"5.6"}),i("polyline",{points:"5.4 8 7.2 9.9 10.6 6"})]}),reopen:m(J,{children:[i("path",{d:"M3.2 8a5 5 0 1 1 1.4 3.5"}),i("polyline",{points:"3.2 11.4 3.2 8 6.6 8"})]}),layers:m(J,{children:[i("polygon",{points:"8 2.2 13.8 5.5 8 8.8 2.2 5.5"}),i("polyline",{points:"2.2 9 8 12.3 13.8 9"})]}),box:i("rect",{x:"3",y:"3",width:"10",height:"10",rx:"1.2"}),type:m(J,{children:[i("polyline",{points:"4 4 12 4"}),i("line",{x1:"8",y1:"4",x2:"8",y2:"12"})]}),button:m(J,{children:[i("rect",{x:"2.5",y:"5",width:"11",height:"6",rx:"3"}),i("line",{x1:"6",y1:"8",x2:"10",y2:"8"})]}),input:m(J,{children:[i("rect",{x:"2.5",y:"5",width:"11",height:"6",rx:"1.2"}),i("line",{x1:"5",y1:"8",x2:"5",y2:"8"})]}),link:m(J,{children:[i("path",{d:"M6.5 9.5a2.5 2.5 0 0 1 0-3.5l1.5-1.5a2.5 2.5 0 0 1 3.5 3.5l-1 1"}),i("path",{d:"M9.5 6.5a2.5 2.5 0 0 1 0 3.5l-1.5 1.5a2.5 2.5 0 0 1-3.5-3.5l1-1"})]}),list:m(J,{children:[i("line",{x1:"6",y1:"4.5",x2:"13",y2:"4.5"}),i("line",{x1:"6",y1:"8",x2:"13",y2:"8"}),i("line",{x1:"6",y1:"11.5",x2:"13",y2:"11.5"}),i("circle",{cx:"3.2",cy:"4.5",r:"0.8",fill:"currentColor"}),i("circle",{cx:"3.2",cy:"8",r:"0.8",fill:"currentColor"}),i("circle",{cx:"3.2",cy:"11.5",r:"0.8",fill:"currentColor"})]}),eye:m(J,{children:[i("path",{d:"M1.5 8S4 3.5 8 3.5 14.5 8 14.5 8 12 12.5 8 12.5 1.5 8 1.5 8z"}),i("circle",{cx:"8",cy:"8",r:"2"})]}),eyedropper:m(J,{children:[i("path",{d:"M11 2.6a1.7 1.7 0 0 1 2.4 2.4l-1.2 1.2-2.4-2.4z"}),i("path",{d:"M9.5 4.6 4 10.1V12h1.9l5.5-5.5"})]}),"p-corner":i("path",{d:"M3.5 12.5V7a3.5 3.5 0 0 1 3.5-3.5h5.5"}),"p-opacity":m(J,{children:[i("rect",{x:"3",y:"3",width:"10",height:"10",rx:"1.5"}),i("path",{d:"M3 8h10M8 3v10",strokeWidth:"0.9",opacity:"0.55"})]}),"p-lineheight":m(J,{children:[i("line",{x1:"6.5",y1:"4",x2:"13",y2:"4"}),i("line",{x1:"6.5",y1:"8",x2:"13",y2:"8"}),i("line",{x1:"6.5",y1:"12",x2:"13",y2:"12"}),i("path",{d:"M3.2 4.6 3.2 11.4M2 6 3.2 4.5 4.4 6M2 10 3.2 11.5 4.4 10"})]}),"p-letterspacing":m(J,{children:[i("path",{d:"M3 4v8M13 4v8"}),i("path",{d:"M6 11.5 8 5l2 6.5M6.7 9.3h2.6",strokeWidth:"1.1"})]}),"p-gap":m(J,{children:[i("rect",{x:"2",y:"4.5",width:"3.6",height:"7",rx:"0.6"}),i("rect",{x:"10.4",y:"4.5",width:"3.6",height:"7",rx:"0.6"}),i("path",{d:"M6.8 8h2.4M7.4 6.9 6.4 8l1 1.1M8.6 6.9 9.6 8l-1 1.1",strokeWidth:"1"})]}),"p-border":i("rect",{x:"3",y:"3",width:"10",height:"10",rx:"1"}),"p-size":m(J,{children:[i("path",{d:"M3 13 6.6 3l3.6 10"}),i("path",{d:"M4.3 9.6h4.6"})]}),"eye-off":m(J,{children:[i("path",{d:"M6.3 4A6.7 6.7 0 0 1 8 3.5C12 3.5 14.5 8 14.5 8a12 12 0 0 1-2 2.4M4.4 5.3A12 12 0 0 0 1.5 8S4 12.5 8 12.5a6.5 6.5 0 0 0 2.1-.35"}),i("line",{x1:"2.5",y1:"2.5",x2:"13.5",y2:"13.5"})]}),sliders:m(J,{children:[i("line",{x1:"3",y1:"5",x2:"13",y2:"5"}),i("circle",{cx:"6",cy:"5",r:"1.7",fill:"currentColor"}),i("line",{x1:"3",y1:"11",x2:"13",y2:"11"}),i("circle",{cx:"10",cy:"11",r:"1.7",fill:"currentColor"})]}),code:m(J,{children:[i("polyline",{points:"6 5 3 8 6 11"}),i("polyline",{points:"10 5 13 8 10 11"})]}),download:m(J,{children:[i("line",{x1:"8",y1:"2.5",x2:"8",y2:"10"}),i("polyline",{points:"4.5 7 8 10.5 11.5 7"}),i("polyline",{points:"3 12.8 3 13.6 13 13.6 13 12.8"})]}),reload:m(J,{children:[i("path",{d:"M14 8a6 6 0 1 1-2-4.47L14 5.33"}),i("path",{d:"M14 2v3.33h-3.33"})]}),help:m(J,{children:[i("circle",{cx:"8",cy:"8",r:"6"}),i("path",{d:"M6.3 6.2a1.8 1.8 0 1 1 2.3 1.9c-.5.2-.6.5-.6 1v.3"}),i("line",{x1:"8",y1:"11.4",x2:"8",y2:"11.5"})]}),image:m(J,{children:[i("rect",{x:"2.5",y:"3",width:"11",height:"10",rx:"1.5"}),i("circle",{cx:"6",cy:"6.3",r:"1.1"}),i("path",{d:"M3 12l3-2.8 2.2 1.8 2.4-3L13.5 12"})]}),vector:m(J,{children:[i("path",{d:"M3.6 11.2C6 5 10 5 12.4 11.2"}),i("rect",{x:"1.7",y:"9.8",width:"2.6",height:"2.6",rx:"0.4"}),i("rect",{x:"11.7",y:"9.8",width:"2.6",height:"2.6",rx:"0.4"}),i("rect",{x:"6.7",y:"2.6",width:"2.6",height:"2.6",rx:"0.4"})]}),presentation:m(J,{children:[i("rect",{x:"2.5",y:"3",width:"11",height:"7.4",rx:"1"}),i("line",{x1:"8",y1:"10.4",x2:"8",y2:"13"}),i("line",{x1:"5.6",y1:"13.4",x2:"10.4",y2:"13.4"})]}),archive:m(J,{children:[i("rect",{x:"2.5",y:"3",width:"11",height:"3",rx:"0.8"}),i("path",{d:"M3.6 6v6.2a1 1 0 0 0 1 1h6.8a1 1 0 0 0 1-1V6"}),i("line",{x1:"6.6",y1:"8.8",x2:"9.4",y2:"8.8"})]}),external:m(J,{children:[i("path",{d:"M11 8.5V12a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h3.5"}),i("polyline",{points:"9.5 3 13 3 13 6.5"}),i("line",{x1:"13",y1:"3",x2:"7.6",y2:"8.4"})]}),share:m(J,{children:[i("circle",{cx:"4",cy:"8",r:"1.9"}),i("circle",{cx:"11.6",cy:"3.6",r:"1.9"}),i("circle",{cx:"11.6",cy:"12.4",r:"1.9"}),i("line",{x1:"5.7",y1:"7",x2:"9.9",y2:"4.6"}),i("line",{x1:"5.7",y1:"9",x2:"9.9",y2:"11.4"})]}),pen:m(J,{children:[i("path",{d:"M3 13l.8-3L10.6 3.2a1.1 1.1 0 0 1 1.6 0l.6.6a1.1 1.1 0 0 1 0 1.6L6 12.2z"}),i("line",{x1:"9.6",y1:"4.2",x2:"11.8",y2:"6.4"})]}),square:i("rect",{x:"3.5",y:"3.5",width:"9",height:"9",rx:"1"}),cloud:i("path",{d:"M4.75 12.5a2.75 2.75 0 0 1-.4-5.47A3.75 3.75 0 0 1 11.6 6a3.25 3.25 0 0 1 .15 6.5zM6.25 9.5l1.25 1.25 2.25-2.5"}),sync:i("path",{d:"M3 7.25a5 5 0 0 1 8.6-3L13 5.5M13 2.5v3h-3M13 8.75a5 5 0 0 1-8.6 3L3 10.5M3 13.5v-3h3"}),offline:m(J,{children:[i("path",{d:"M4.75 12.5a2.75 2.75 0 0 1-.4-5.47A3.75 3.75 0 0 1 11.6 6a3.25 3.25 0 0 1 .15 6.5z"}),i("path",{d:"M2.5 2.5l11 11"})]}),laptop:m(J,{children:[i("rect",{x:"3.5",y:"3.5",width:"9",height:"6.5",rx:"1.25"}),i("path",{d:"M1.75 12.5h12.5"})]}),problem:m(J,{children:[i("path",{d:"M8 2.75l5.75 10H2.25z"}),i("path",{d:"M8 6.75v2.5M8 11h.01"})]}),"panel-right":m(J,{children:[i("rect",{x:"2",y:"3",width:"12",height:"10",rx:"2.5"}),i("path",{d:"M10 3v10"})]}),comment:i("path",{d:"M5 2.5h6A2.5 2.5 0 0 1 13.5 5v3.5A2.5 2.5 0 0 1 11 11H8l-3 2.5V11A2.5 2.5 0 0 1 2.5 8.5V5A2.5 2.5 0 0 1 5 2.5z"}),"comment-bubble":i("path",{d:"M5 2.5h6A2.5 2.5 0 0 1 13.5 5v3.5A2.5 2.5 0 0 1 11 11H8l-3 2.5V11A2.5 2.5 0 0 1 2.5 8.5V5A2.5 2.5 0 0 1 5 2.5z"}),export:m(J,{children:[i("path",{d:"M8 2.5V10M5.25 7.25L8 10l2.75-2.75"}),i("path",{d:"M2.75 10.5V12a1.5 1.5 0 0 0 1.5 1.5h7.5a1.5 1.5 0 0 0 1.5-1.5v-1.5"})]}),clock:m(J,{children:[i("circle",{cx:"8",cy:"8",r:"5.75"}),i("path",{d:"M8 4.75V8l2.25 1.5"})]}),"share-up":m(J,{children:[i("path",{d:"M8 9.5v-7M5.25 5.25L8 2.5l2.75 2.75"}),i("path",{d:"M5 7.5h-.5A1.5 1.5 0 0 0 3 9v3a1.5 1.5 0 0 0 1.5 1.5h7a1.5 1.5 0 0 0 1.5-1.5V9a1.5 1.5 0 0 0-1.5-1.5H11"})]}),frame:i("path",{d:"M5 2.5v11M11 2.5v11M2.5 5h11M2.5 11h11"}),print:m(J,{children:[i("path",{d:"M4.5 6V2.5h7V6M4.5 11.5h-1A1.5 1.5 0 0 1 2 10V7.5A1.5 1.5 0 0 1 3.5 6h9A1.5 1.5 0 0 1 14 7.5V10a1.5 1.5 0 0 1-1.5 1.5h-1"}),i("path",{d:"M4.5 9.5h7v4h-7z"})]}),system:m(J,{children:[i("rect",{x:"2.5",y:"2.5",width:"4.75",height:"4.75",rx:"1.25"}),i("rect",{x:"8.75",y:"2.5",width:"4.75",height:"4.75",rx:"1.25"}),i("rect",{x:"2.5",y:"8.75",width:"4.75",height:"4.75",rx:"1.25"}),i("circle",{cx:"11.125",cy:"11.125",r:"2.375"})]}),insert:m(J,{children:[i("rect",{x:"2.5",y:"2.5",width:"11",height:"11",rx:"2.5"}),i("path",{d:"M8 5.5v5M5.5 8h5"})]})}});var Q1e={};GG(Q1e,{MAX_NOTICE_ENTRIES:()=>W1e,NoticeCard:()=>X1e,NotificationHost:()=>K7,dismissCanvasNotices:()=>gDt,dismissNotice:()=>Yl,noticeDuration:()=>q7,noticeEntries:()=>mDt,noticePlacement:()=>Y1e,notify:()=>Yo,notifyCanvasText:()=>DI,notifyCanvasTriggered:()=>Tm,notifyUndo:()=>G7,setCanvasPopoverOpen:()=>A3,shownNoticeIds:()=>Z1e,summarizeNoticeText:()=>Y1});function hDt(){while(Vs.length>W1e){let e=Vs.findIndex(V1e);if(e<0)e=Vs.findIndex((t)=>t.kind!=="error"&&!t.paused&&q7(t)!==1/0);if(e<0)e=0;Vs=[...Vs.slice(0,e),...Vs.slice(e+1)]}}function G1e(e,t){let n={...e,title:S3(e.title),...e.description!==void 0?{description:S3(e.description)}:{}},o=n.id??`notice-${++N3}`,r=t?{...n,id:o,canvasTriggered:t}:{...n,id:o},a=n.action?.armAfterMs;if(typeof a==="number"&&a>0)r.actionArmedAt=Date.now()+a;if(Vs.findIndex((l)=>l.id===o)<0)Vs=[...Vs,r];else Vs=Vs.map((l)=>l.id===o?r:l);return hDt(),V7(),o}function Yo(e){return G1e(e,!1)}function K1e(){let e=Date.now();if(e<j7||e-j7>=1000)j7=e,U7=0;if(U7>=5)return!1;return U7++,!0}function Tm(e){if(!K1e())return null;return G1e(e,!0)}function DI(e,t="info"){if(!K1e())return null;let o=(t==="undo"?Vs.find((r)=>r.group==="canvas"&&r.kind==="undo"):void 0)?.id??`canvas-notice-${q1e++%2}`;return Yo({id:o,title:S3(e).slice(0,4000),kind:t,group:"canvas",timerKey:`${++N3}`})}function G7(e,t){let n=Vs.find((o)=>o.group==="canvas"&&o.kind==="undo");return Yo({id:n?.id??`canvas-notice-${q1e++%2}`,title:e,kind:"undo",group:"canvas",timerKey:`${++N3}`,...t?{action:t}:{}})}function gDt(){if(!Vs.some((e)=>e.group==="canvas"))return;Vs=Vs.filter((e)=>e.group!=="canvas"),V7()}function Yl(e){Vs=Vs.filter((t)=>t.id!==e),V7()}function _3(e){let t=Vs.find((n)=>n.id===e);Yl(e),t?.onDismiss?.()}function q7(e){return e.duration??(e.action||["error","warning","undo"].includes(e.kind??"")?1e4:5000)}function Y1(e){let t=S3(e).trim().replace(/\s+/g," ");return t.length>280?`${t.slice(0,279)}…`:t}function A3(e){if(C3===e)return;C3=e;for(let t of W7)t()}function bDt(e){return W7.add(e),()=>W7.delete(e)}function Y1e(e){if(C3)return"top";if(e.placement)return e.placement;return typeof document<"u"&&document.querySelector(".tl-track")?"top":"bottom"}function X1e({entry:e}){let t=e.icon??yDt[e.kind??"info"],n=e.actionArmedAt??0,[o,r]=T(()=>Date.now()>=n);return M(()=>{let a=n-Date.now();if(r(a<=0),a<=0)return;let s=setTimeout(()=>r(!0),a);return()=>clearTimeout(s)},[n]),m("div",{className:"maude-notice","data-kind":e.kind??"info","data-testid":`notice-${e.id}`,children:[t?i("span",{className:`maude-notice-ic maude-notice-ic--${t}`,"aria-hidden":"true",children:i(ce,{name:t,size:16,className:"maude-notice-glyph"})}):null,m("div",{className:"maude-notice-txt",children:[i("div",{className:"maude-notice-title",children:Y1(e.title)}),e.description&&i("div",{className:"maude-notice-summary",children:Y1(e.description)}),e.content]}),e.action&&i("button",{type:"button",className:"maude-notice-action",disabled:!o,onClick:(a)=>{if(Date.now()<n)return;a.currentTarget.blur(),e.action?.onClick(),_3(e.id)},children:e.action.label}),i("button",{type:"button",className:"maude-notice-close","aria-label":"Dismiss notification",onClick:(a)=>{a.currentTarget.blur(),_3(e.id)},children:"×"})]})}function vDt({entry:e,visible:t,paused:n}){let o=q7(e),r=Ve(bDt,H1e,H1e),a=U(null),s=U(o);return M(()=>{s.current=o},[o,e.timerKey]),M(()=>{if(!t||n||e.paused||o===1/0)return;let l=Date.now(),c=setTimeout(()=>_3(e.id),Math.max(0,s.current));return()=>{clearTimeout(c),s.current=Math.max(0,s.current-(Date.now()-l))}},[t,n,e.paused,o,e.timerKey,e.id]),M(()=>{if(t){let l=a.current??`${e.id}:view-${++N3}`;a.current=l,k3.custom(()=>i(X1e,{entry:e}),{id:l,duration:1/0,position:Y1e(e)==="top"?"top-center":"bottom-center",onDismiss:()=>{if(a.current===l)_3(e.id)}})}else if(a.current){let l=a.current;a.current=null,k3.dismiss(l)}},[e,t,r]),M(()=>()=>{let l=a.current;if(a.current=null,l)k3.dismiss(l)},[]),null}function Z1e(e){let t=e.filter((s)=>!V1e(s)),n=e.filter((s)=>s.group!=="canvas"&&s.canvasTriggered),o=t.length?t:n.length?n:e,r=o.filter((s)=>s.kind==="error"),a=o.filter((s)=>s.kind!=="error").reverse();return[...r,...a].slice(0,J1e).map((s)=>s.id)}function K7({paused:e=!1,hiddenGroups:t=xDt}){let n=Ve(fDt,U1e,U1e),o=U(null),[r,a]=T(!1),[s,l]=T(!1),[c,u]=T(()=>typeof document<"u"&&document.hidden);M(()=>{let f=()=>u(document.hidden);return document.addEventListener("visibilitychange",f),()=>document.removeEventListener("visibilitychange",f)},[]),M(()=>{if(!n.length)a(!1),l(!1);if(s&&!o.current?.contains(document.activeElement))l(!1)},[n,s]);let d=n.filter((f)=>!t.includes(f.group??"")),p=new Set(Z1e(d));return m("div",{ref:o,className:"maude-notifications","data-paused":e,onPointerEnter:()=>a(!0),onPointerLeave:()=>a(!1),onFocusCapture:()=>l(!0),onBlurCapture:(f)=>{if(!f.currentTarget.contains(f.relatedTarget))l(!1)},children:[i("style",{children:wDt}),i(F1e,{position:"bottom-center",offset:{bottom:84,top:16},mobileOffset:{left:16,right:16,bottom:84,top:16},visibleToasts:J1e,expand:s,style:{"--width":"min(640px, calc(100vw - 32px))"},containerAriaLabel:"Notifications"}),n.map((f)=>i(vDt,{entry:f,visible:p.has(f.id),paused:e||r||s||c||!p.has(f.id)},f.id))]})}var Vs,N3=0,H7,V7=()=>{for(let e of H7)e()},fDt=(e)=>(H7.add(e),()=>{H7.delete(e)}),U1e=()=>Vs,mDt=()=>Vs,W1e=40,V1e=(e)=>e.group==="canvas"||!!e.canvasTriggered,S3=(e)=>typeof e==="string"?e:e===null||e===void 0?"":String(e),q1e=0,j7=-1/0,U7=0,C3=!1,W7,H1e=()=>C3,yDt,wDt=`
|
|
2
2
|
.maude-notifications [data-sonner-toaster] { --width: min(640px, calc(100vw - 32px)); z-index: 8000; }
|
|
3
3
|
/* the kit pill hugs its sentence (one line, up to the list's width); it does not stretch to a fixed card */
|
|
4
4
|
/* P8 C9 (01 cf-open-big): the toast is absolutely positioned in its toaster, so margin-inline: auto centres only
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@1agh/maude",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.2",
|
|
4
4
|
"description": "Marketplace of Claude Code plugins by Michal Dovrtěl: `design` (canvas-first design iteration) + `flow` (generic agentic workflow loop with .ai second brain). Ships the `maude` CLI (with `mdcc` legacy alias) to scaffold workspace, run the design dev server, and manage configs.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -73,13 +73,13 @@
|
|
|
73
73
|
"test:e2e:desktop:parity:cloud": "pnpm --filter @maude/desktop-e2e e2e:parity:cloud"
|
|
74
74
|
},
|
|
75
75
|
"optionalDependencies": {
|
|
76
|
-
"@1agh/maude-darwin-arm64": "2.4.
|
|
77
|
-
"@1agh/maude-darwin-x64": "2.4.
|
|
78
|
-
"@1agh/maude-linux-arm64": "2.4.
|
|
79
|
-
"@1agh/maude-linux-arm64-musl": "2.4.
|
|
80
|
-
"@1agh/maude-linux-x64": "2.4.
|
|
81
|
-
"@1agh/maude-linux-x64-musl": "2.4.
|
|
82
|
-
"@1agh/maude-win32-x64": "2.4.
|
|
76
|
+
"@1agh/maude-darwin-arm64": "2.4.2",
|
|
77
|
+
"@1agh/maude-darwin-x64": "2.4.2",
|
|
78
|
+
"@1agh/maude-linux-arm64": "2.4.2",
|
|
79
|
+
"@1agh/maude-linux-arm64-musl": "2.4.2",
|
|
80
|
+
"@1agh/maude-linux-x64": "2.4.2",
|
|
81
|
+
"@1agh/maude-linux-x64-musl": "2.4.2",
|
|
82
|
+
"@1agh/maude-win32-x64": "2.4.2"
|
|
83
83
|
},
|
|
84
84
|
"files": [
|
|
85
85
|
"cli",
|